match.pd: Implement more binary patterns exercised by fold_stmt.
[gcc.git] / gcc / ChangeLog
1 2014-11-14 Richard Biener <rguenther@suse.de>
2
3 * match.pd: Implement more binary patterns exercised by
4 fold_stmt.
5 * fold-const.c (sing_bit_p): Export.
6 (exact_inverse): Likewise.
7 (fold_binary_loc): Remove patterns here.
8 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
9 * fold-const.h (sing_bit_p): Declare.
10 (exact_inverse): Likewise.
11
12 2014-11-14 Marek Polacek <polacek@redhat.com>
13
14 * tree.c (build_common_builtin_nodes): Remove doubled ECF_LEAF.
15
16 2014-11-14 Richard Biener <rguenther@suse.de>
17
18 * genmatch.c (add_operator): Allow CONSTRUCTOR.
19 (dt_node::gen_kids): Handle CONSTRUCTOR not as GENERIC.
20 (parser::parse_op): Allow to iterate over predicates.
21
22 2014-11-14 Jakub Jelinek <jakub@redhat.com>
23
24 * configure.ac (--with-diagnostics-color): New configure
25 option, default to --with-diagnostics-color=auto.
26 * toplev.c (process_options): Use DIAGNOSTICS_COLOR_DEFAULT
27 to determine -fdiagnostics-color= option default.
28 * doc/invoke.texi (-fdiagnostics-color=): Document new
29 default.
30 * configure: Regenerated.
31 * config.in: Regenerated.
32
33 2014-11-13 Teresa Johnson <tejohnson@google.com>
34
35 PR tree-optimization/63841
36 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
37
38 2014-11-14 Bin Cheng <bin.cheng@arm.com>
39
40 * timevar.def (TV_SCHED_FUSION): New time var.
41 * passes.def (pass_sched_fusion): New pass.
42 * config/arm/arm.c (TARGET_SCHED_FUSION_PRIORITY): New.
43 (extract_base_offset_in_addr, fusion_load_store): New.
44 (arm_sched_fusion_priority): New.
45 (arm_option_override): Disable scheduling fusion by default
46 on non-armv7 processors or ldrd/strd isn't preferred.
47 * sched-int.h (struct _haifa_insn_data): New field.
48 (INSN_FUSION_PRIORITY, FUSION_MAX_PRIORITY, sched_fusion): New.
49 * sched-rgn.c (rest_of_handle_sched_fusion): New.
50 (pass_data_sched_fusion, pass_sched_fusion): New.
51 (make_pass_sched_fusion): New.
52 * haifa-sched.c (sched_fusion): New.
53 (insn_cost): Handle sched_fusion.
54 (priority): Handle sched_fusion by calling target hook.
55 (enum rfs_decision): New enum value.
56 (rfs_str): New element for RFS_FUSION.
57 (rank_for_schedule): Support sched_fusion.
58 (schedule_insn, max_issue, prune_ready_list): Handle sched_fusion.
59 (schedule_block, fix_tick_ready): Handle sched_fusion.
60 * common.opt (flag_schedule_fusion): New.
61 * tree-pass.h (make_pass_sched_fusion): New.
62 * target.def (fusion_priority): New.
63 * doc/tm.texi.in (TARGET_SCHED_FUSION_PRIORITY): New.
64 * doc/tm.texi: Regenerated.
65 * doc/invoke.texi (-fschedule-fusion): New.
66
67 2014-11-13 Rong Xu <xur@google.com>
68
69 PR debug/63581
70 * cfgrtl.c (emit_barrier_after_bb): Append the barrier to the
71 footer, instead of unconditionally overwritten.
72
73 2014-11-14 Martin Jambor <mjambor@suse.cz>
74
75 * cgraph.h (clear_outer_type): Make public. Fix comment.
76 * ipa-devirt.c (possible_polymorphic_call_targets): Use
77 clear_outer_type when resetting the context.
78
79 2014-11-13 Dominique Dhumieres <dominiq@lps.ens.fr>
80
81 PR bootstrap/63853
82 * gcc.c (handle_foffload_option): Replace strchrnul with strchr.
83 * lto-wrapper.c (parse_env_var, append_offload_options): Likewise.
84
85 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
86
87 * fold-const.c (const_binop): Remove code handling VEC_RSHIFT_EXPR.
88 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
89 * tree-inline.c (estimate_operator_cost): Likewise.
90 * tree-pretty-print.c (dump_generic_node, op_code_prio, op_symbol_code):
91 Likewise.
92
93 * tree-vect-generic.c (expand_vector_operations_1): Remove assertion
94 against VEC_RSHIFT_EXPR.
95
96 * optabs.h (expand_vec_shift_expr): Remove.
97 * optabs.c (optab_for_tree_code): Remove case VEC_RSHIFT_EXPR.
98 (expand_vec_shift_expr): Remove.
99 * tree.def (VEC_RSHIFT_EXPR): Remove
100
101 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
102
103 * optabs.c (can_vec_perm_p): Update comment, does not consider vec_shr.
104 (shift_amt_for_vec_perm_mask): New.
105 (expand_vec_perm_1): Use vec_shr_optab if second vector is const0_rtx
106 and mask appropriate.
107
108 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): New.
109 (have_whole_vector_shift): New.
110 (vect_model_reduction_cost): Call have_whole_vector_shift instead of
111 looking for vec_shr_optab.
112 (vect_create_epilog_for_reduction): Likewise; also rename local variable
113 have_whole_vector_shift to reduce_with_shift; output VEC_PERM_EXPRs
114 instead of VEC_RSHIFT_EXPRs.
115
116 * tree-vect-stmts.c (vect_gen_perm_mask_checked): Extend comment.
117
118 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
119
120 * tree-vectorizer.h (vect_gen_perm_mask): Remove.
121 (vect_gen_perm_mask_checked, vect_gen_perm_mask_any): New.
122
123 tree_vec_data_refs.c (vect_permute_load_chain, vec_permute_store_chain,
124 vec_shift_permute_load_chain): Replace vect_gen_perm_mask & assert
125 with vect_gen_perm_mask_checked.
126
127 * tree-vect-stmts.c (vectorizable_mask_load_store, vectorizable_load):
128 Likewise.
129
130 (vect_gen_perm_mask_checked): New.
131 (vect_gen_perm_mask): Remove can_vec_perm_p check, rename to...
132 (vect_gen_perm_mask_any): ...this.
133
134 (perm_mask_for_reverse): Call can_vec_perm_p and
135 vect_gen_perm_mask_checked.
136
137 2014-11-13 Felix Yang <felix.yang@huawei.com>
138
139 * ipa-utils.h: Fix typo in comments.
140 * ipa-profile.c: Likewise.
141 * tree-ssa-loop-ivcanon.c: Fix typo in comments and debugging dumps.
142
143 2014-11-13 Teresa Johnson <tejohnson@google.com>
144
145 PR tree-optimization/63841
146 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
147
148 2014-11-13 Teresa Johnson <tejohnson@google.com>
149
150 PR tree-optimization/63841
151 * tree.c (initializer_zerop): A clobber does not zero initialize.
152
153 2014-11-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
154
155 * optabs.c (prepare_operand): Gracefully fail if the mode of X
156 does not match the operand mode expected by the insn pattern.
157
158 2014-11-13 Richard Biener <rguenther@suse.de>
159
160 * match.pd: Add tcc_comparison, inverted_tcc_comparison
161 and inverted_tcc_comparison_with_nans operator lists.
162 Use tcc_comparison in the truth_valued_p predicate definition.
163 Restrict logical_inverted_value with bit_xor to integral types.
164 Build a boolean true for simplifying x |^ !x because of
165 vector types. Implement patterns from forward_propagate_comparison
166 * tree-ssa-forwprop.c (forward_propagate_comparison): Remove.
167 (get_prop_dest_stmt): Likewise.
168 (pass_forwprop::execute): Do not call it.
169 * fold-const.c (fold_unary_loc): Remove the pattern here.
170
171 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
172 Andrey Turetskiy <andrey.turetskiy@intel.com>
173
174 * config.gcc (*-intelmic-* | *-intelmicemul-*): Add i386/t-intelmic to
175 tmake_file.
176 (i[34567]86-*-* | x86_64-*-*): Build mkoffload$(exeext) with the
177 accelerator compiler.
178 * config/i386/intelmic-mkoffload.c: New file.
179 * config/i386/t-intelmic: Ditto.
180
181 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
182 Andrey Turetskiy <andrey.turetskiy@intel.com>
183 Ilya Verbin <ilya.verbin@intel.com>
184
185 * common.opt (foffload, foffload-abi): New options.
186 * config/i386/i386.c (ix86_offload_options): New static function.
187 (TARGET_OFFLOAD_OPTIONS): Define.
188 * coretypes.h (enum offload_abi): New enum.
189 * doc/tm.texi: Regenerate.
190 * doc/tm.texi.in (TARGET_OFFLOAD_OPTIONS): Document.
191 * gcc.c (offload_targets): New static variable.
192 (handle_foffload_option): New static function.
193 (driver_handle_option): Handle OPT_foffload_.
194 (driver::maybe_putenv_OFFLOAD_TARGETS): Set OFFLOAD_TARGET_NAMES
195 according to offload_targets.
196 * hooks.c (hook_charptr_void_null): New hook.
197 * hooks.h (hook_charptr_void_null): Declare.
198 * lto-opts.c: Include lto-section-names.h.
199 (lto_write_options): Append options from target offload_options hook and
200 store them to offload_lto section. Do not store target-specific,
201 driver and diagnostic options in offload_lto section.
202 * lto-wrapper.c (merge_and_complain): Handle OPT_foffload_ and
203 OPT_foffload_abi_.
204 (append_compiler_options, append_linker_options)
205 (append_offload_options): New static functions.
206 (compile_offload_image): Add new arguments with options.
207 Call append_compiler_options and append_offload_options.
208 (compile_images_for_offload_targets): Add new arguments with options.
209 (find_and_merge_options): New static function.
210 (run_gcc): Outline options handling into the new functions:
211 find_and_merge_options, append_compiler_options, append_linker_options.
212 * opts.c (common_handle_option): Don't handle OPT_foffload_.
213 Forbid OPT_foffload_abi_ for non-offload compiler.
214 * target.def (offload_options): New target hook.
215
216 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
217 Bernd Schmidt <bernds@codesourcery.com>
218 Andrey Turetskiy <andrey.turetskiy@intel.com>
219 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
220
221 * gcc.c (spec_host_machine, accel_dir_suffix): New variables.
222 (process_command): Tweak path construction for the possibility
223 of being configured as an offload compiler.
224 (driver::maybe_putenv_OFFLOAD_TARGETS): New function.
225 (driver::main): Call maybe_putenv_OFFLOAD_TARGETS.
226 (driver::set_up_specs): Tweak path construction for the possibility of
227 being configured as an offload compiler.
228 * lto-wrapper.c (OFFLOAD_TARGET_NAMES_ENV): Define.
229 (offload_names, offloadbegin, offloadend): New static variables.
230 (free_array_of_ptrs, parse_env_var, access_check, compile_offload_image)
231 (compile_images_for_offload_targets, copy_file, find_offloadbeginend):
232 New static functions.
233 (run_gcc): Determine whether offload sections are present. If so, run
234 compile_images_for_offload_targets and return the names of new generated
235 objects to linker. If there are offload sections, but no LTO sections,
236 then return the copies of input objects without link-time recompilation.
237
238 2014-11-13 Richard Biener <rguenther@suse.de>
239
240 * genmatch.c (dt_node::gen_kids): Fix placement of break statement.
241
242 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
243 Bernd Schmidt <bernds@codesourcery.com>
244 Andrey Turetskiy <andrey.turetskiy@intel.com>
245 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
246
247 * Makefile.in (GTFILES): Add omp-low.h to list of GC files.
248 * cgraphunit.c: Include omp-low.h.
249 * doc/tm.texi: Regenerate.
250 * doc/tm.texi.in (TARGET_RECORD_OFFLOAD_SYMBOL): Document.
251 * gengtype.c (open_base_files): Add omp-low.h to ifiles.
252 * lto-cgraph.c (output_offload_tables): New function.
253 (input_offload_tables): Likewise.
254 * lto-section-in.c (lto_section_name): Add "offload_table".
255 * lto-section-names.h (OFFLOAD_VAR_TABLE_SECTION_NAME): Define.
256 (OFFLOAD_FUNC_TABLE_SECTION_NAME): Likewise.
257 * lto-streamer-out.c (lto_output): Call output_offload_tables.
258 * lto-streamer.h (lto_section_type): Add LTO_section_offload_table.
259 (output_offload_tables, input_offload_tables): Declare.
260 * omp-low.c: Include common/common-target.h and lto-section-names.h.
261 (offload_funcs, offload_vars): New global <tree, va_gc> vectors.
262 (expand_omp_target): Add child_fn into offload_funcs vector.
263 (add_decls_addresses_to_decl_constructor): New function.
264 (omp_finish_file): Likewise.
265 * omp-low.h (omp_finish_file, offload_funcs, offload_vars): Declare.
266 * target.def (record_offload_symbol): New DEFHOOK.
267 * toplev.c: Include omp-low.h.
268 (compile_file): Call omp_finish_file.
269 * varpool.c: Include omp-low.h.
270 (varpool_node::get_create): Add decl into offload_vars vector.
271
272 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
273 Ilya Tocar <ilya.tocar@intel.com>
274 Andrey Turetskiy <andrey.turetskiy@intel.com>
275 Bernd Schmidt <bernds@codesourcery.com>
276
277 * cgraph.c: Include context.h.
278 (cgraph_node::create): Set node->offloadable and g->have_offload if
279 decl have "omp declare target" attribute.
280 * cgraph.h (symtab_node): Add need_lto_streaming and offloadable flags.
281 * cgraphunit.c: Include lto-section-names.h.
282 (ipa_passes): Call ipa_write_summaries if there is something to write to
283 OFFLOAD_SECTION_NAME_PREFIX sections.
284 (symbol_table::compile): Set flag_generate_lto if there is something to
285 offload.
286 Replace flag_lto with flag_generate_lto before lto_streamer_hooks_init.
287 * context.c (gcc::context::context): Initialize have_offload with false.
288 * context.h (class context): Add have_offload flag.
289 * ipa-inline-analysis.c (inline_generate_summary): Do not exit under
290 flag_generate_lto.
291 (inline_free_summary): Always remove hooks.
292 * lto-cgraph.c (referenced_from_other_partition_p): Ignore references
293 from non-offloadable nodes while streaming a node into offload section.
294 (reachable_from_other_partition_p): Likewise.
295 (select_what_to_stream): New function.
296 (compute_ltrans_boundary): Do not call
297 lto_set_symtab_encoder_in_partition if the node should not be streamed.
298 * lto-section-names.h (OFFLOAD_SECTION_NAME_PREFIX): Define.
299 (section_name_prefix): Declare.
300 * lto-streamer.c (section_name_prefix): New variable.
301 (lto_get_section_name): Use section_name_prefix instead of
302 LTO_SECTION_NAME_PREFIX.
303 * lto-streamer.h (select_what_to_stream): Declare.
304 * omp-low.c: Include context.h.
305 (is_targetreg_ctx): New function.
306 (scan_sharing_clauses): Use offloadable flag, instead of an attribute.
307 (create_omp_child_function, check_omp_nesting_restrictions): Use new
308 is_targetreg_ctx function. Replace usage of "omp declare target"
309 attribute with a cgraph_node flag offloadable.
310 (expand_omp_target): Set mark_force_output for offloadable functions.
311 (lower_omp_critical): Set offloadable flag for omp critical symbol.
312 * passes.c (ipa_write_summaries): New argument offload_lto_mode. Call
313 select_what_to_stream. Do not call lto_set_symtab_encoder_in_partition
314 if the node should not be streamed out.
315 * tree-pass.h (ipa_write_summaries): New bool argument.
316 * varpool.c: Include context.h.
317 (varpool_node::get_create): Set node->offloadable and g->have_offload if
318 decl have "omp declare target" attribute.
319
320 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
321 Thomas Schwinge <thomas@codesourcery.com>
322 Ilya Verbin <ilya.verbin@intel.com>
323 Andrey Turetskiy <andrey.turetskiy@intel.com>
324
325 * Makefile.in (real_target_noncanonical, accel_dir_suffix)
326 (enable_as_accelerator): New variables substituted by configure.
327 (libsubdir, libexecsubdir, unlibsubdir): Tweak for the possibility of
328 being configured as an offload compiler.
329 (DRIVER_DEFINES): Pass new defines DEFAULT_REAL_TARGET_MACHINE and
330 ACCEL_DIR_SUFFIX.
331 (install-cpp, install-common, install_driver, install-gcc-ar): Do not
332 install for the offload compiler.
333 * config.in: Regenerate.
334 * configure: Regenerate.
335 * configure.ac (real_target_noncanonical, accel_dir_suffix)
336 (enable_as_accelerator): Compute new variables.
337 (ACCEL_COMPILER): Define if the compiler is built as the accel compiler.
338 (OFFLOAD_TARGETS): List of target names suitable for offloading.
339 (ENABLE_OFFLOADING): Define if list of offload targets is not empty.
340 * doc/install.texi (Options specification): Document
341 --enable-as-accelerator-for and --enable-offload-targets.
342
343 2014-11-13 H.J. Lu <hongjiu.lu@intel.com>
344
345 PR tree-optimization/63828
346 * ipa-polymorphic-call.c (possible_placement_new): Check
347 POINTER_SIZE, instead of BITS_PER_WORD, for pointer size.
348
349 2014-11-13 Eric Botcazou <ebotcazou@adacore.com>
350
351 * doc/tm.texi.in (SELECT_CC_MODE): Update example.
352 (REVERSIBLE_CC_MODE): Fix example.
353 (REVERSE_CONDITION): Fix typo.
354 * doc/tm.texi: Regenerate.
355
356 2014-11-13 Tom de Vries <tom@codesourcery.com>
357
358 * omp-low.c (pass_data_expand_omp): Set properties_provided to
359 PROP_gimple_eomp.
360 (pass_expand_omp::gate): Remove function. Move gate expression to ...
361 (pass_expand_omp::execute): ... here, as new variable gate. Add early
362 exit if gate is false.
363 (pass_data pass_data_expand_omp_ssa): New pass_data.
364 (class pass_expand_omp_ssa): New pass.
365 (make_pass_expand_omp_ssa): New function.
366 * passes.def (pass_parallelize_loops): Use PUSH_INSERT_PASSES_WITHIN
367 instead of NEXT_PASS.
368 (pass_expand_omp_ssa): Add after pass_parallelize_loops.
369 * tree-parloops.c (gen_parallel_loop): Remove call to omp_expand_local.
370 (pass_parallelize_loops::execute): Don't do cleanups TODO_cleanup_cfg
371 and TODO_rebuild_alias yet. Add TODO_update_ssa. Set
372 cfun->omp_expand_needed.
373 * tree-pass.h: Add define PROP_gimple_eomp.
374 (make_pass_expand_omp_ssa): Declare.
375
376 2014-11-13 Marek Polacek <polacek@redhat.com>
377
378 * tree.h (TYPE_OVERFLOW_SANITIZED): Define.
379 * fold-const.c (fold_binary_loc): Use it.
380 * match.pd: Likewise.
381
382 2014-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
383
384 * lra-lives.c (struct bb_data): Rename to ...
385 (struct bb_data_pseudos): ... this.
386 (initiate_live_solver): Update struct name.
387
388 2014-11-13 Richard Biener <rguenther@suse.de>
389
390 * match.pd: Implement conditional expression patterns.
391 * tree-ssa-forwprop.c (forward_propagate_into_cond): Remove
392 them here.
393 (combine_cond_exprs): Remove.
394 (pass_forwprop::execute): Do not call combine_cond_exprs.
395 * fold-const.c (fold_ternary_loc): Remove patterns here.
396 (pedantic_omit_one_operand_loc): Remove.
397
398 2014-12-13 Richard Biener <rguenther@suse.de>
399
400 PR middle-end/61559
401 * match.pd: Implement bswap patterns for transforms checked by
402 gcc.dg/builtin-bswap-8.c.
403
404 2014-11-13 Vladimir Makarov <vmakarov@redhat.com>
405
406 * lra.c (lra): Switch off rematerialization pass.
407
408 2014-11-12 Vladimir Makarov <vmakarov@redhat.com>
409
410 * common.opt (flra-remat): New.
411 * opts.c (default_options_table): Add entry for flra_remat.
412 * timevar_def (TV_LRA_REMAT): New.
413 * doc/invoke.texi (-flra-remat): Add description of the new
414 option.
415 * doc/passes.texi (-flra-remat): Remove lra-equivs.c and
416 lra-saves.c. Add lra-remat.c.
417 * Makefile.in (OBJS): Add lra-remat.o.
418 * lra-remat.c: New file.
419 * lra.c: Add info about the rematerialization pass in the top
420 comment.
421 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info):
422 Process unallocatable regs too.
423 (lra_constraint_new_insn_uid_start): Remove.
424 (lra): Add code for calling rematerialization sub-pass.
425 * lra-int.h (lra_constraint_new_insn_uid_start): Remove.
426 (lra_constrain_insn, lra_remat): New prototypes.
427 (lra_eliminate_regs_1): Add parameter.
428 * lra-lives.c (make_hard_regno_born, make_hard_regno_dead):
429 Process unallocatable hard regs too.
430 (process_bb_lives): Ditto.
431 * lra-spills.c (remove_pseudos): Add argument to
432 lra_eliminate_regs_1 call.
433 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter. Use it
434 for sp offset calculation.
435 (lra_eliminate_regs): Add argument for lra_eliminate_regs_1 call.
436 (eliminate_regs_in_insn): Add parameter. Use it for sp offset
437 calculation.
438 (process_insn_for_elimination): Add argument for
439 eliminate_regs_in_insn call.
440 * lra-constraints.c (get_equiv_with_elimination): Add argument
441 for lra_eliminate_regs_1 call.
442 (process_addr_reg): Add parameter. Use it.
443 (process_address_1): Ditto. Add argument for process_addr_reg
444 call.
445 (process_address): Ditto.
446 (curr_insn_transform): Add parameter. Use it. Add argument for
447 process_address calls.
448 (lra_constrain_insn): New function.
449 (lra_constraints): Add argument for curr_insn_transform call.
450
451 2014-11-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
452
453 * opts-global.c (postpone_unknown_option_warning): Fix spelling.
454 (print_ignored_options): Fix quoting.
455 * opts.c (common_handle_option): Likewise.
456 (set_debug_level): Likewise.
457 * toplev.c (process_options): Likewise.
458
459 2014-11-12 Jakub Jelinek <jakub@redhat.com>
460
461 PR ipa/63838
462 * ipa-pure-const.c (propagate_nothrow): Walk w->indirect_calls
463 chain instead of node->indirect_calls. Put !can_throw into
464 conditions of all the loops.
465
466 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
467
468 * config/i386/i386.c (x86_output_mi_thunk): Use gen_rtx_REG to
469 set pic_offset_table_rtx.
470
471 2014-11-12 Matthew Fortune <matthew.fortune@imgtec.com>
472
473 * common/config/mips/mips-common.c (mips_handle_option): Ensure
474 that -mfp32, -mfp64 disable -mfpxx and -mfpxx disables -mfp64.
475 * config.gcc (--with-fp-32): New option.
476 (--with-odd-spreg-32): Likewise.
477 * config.in (HAVE_AS_DOT_MODULE): New config define.
478 * config/mips/mips-protos.h
479 (mips_secondary_memory_needed): New prototype.
480 (mips_hard_regno_caller_save_mode): Likewise.
481 * config/mips/mips.c (mips_get_reg_raw_mode): New static prototype.
482 (mips_get_arg_info): Assert that V2SFmode is only handled specially
483 with TARGET_PAIRED_SINGLE_FLOAT.
484 (mips_return_mode_in_fpr_p): Likewise.
485 (mips16_call_stub_mode_suffix): Likewise.
486 (mips_get_reg_raw_mode): New static function.
487 (mips_return_fpr_pair): O32 return values span two registers.
488 (mips16_build_call_stub): Likewise.
489 (mips_function_value_regno_p): Support both FP return registers.
490 (mips_output_64bit_xfer): Use mthc1 whenever TARGET_HAS_MXHC1. Add
491 specific cases for TARGET_FPXX to move via memory.
492 (mips_dwarf_register_span): For TARGET_FPXX pretend that modes larger
493 than UNITS_PER_FPREG 'span' one register.
494 (mips_dwarf_frame_reg_mode): New static function.
495 (mips_file_start): Switch to using .module instead of .gnu_attribute.
496 No longer support FP ABI 4 (-mips32r2 -mfp64), replace with FP ABI 6.
497 Add FP ABI 5 (-mfpxx) and FP ABI 7 (-mfp64 -mno-odd-spreg).
498 (mips_save_reg, mips_restore_reg): Always represent DFmode frame
499 slots with two CFI directives even for O32 FP64.
500 (mips_for_each_saved_gpr_and_fpr): Account for fixed_regs when
501 saving/restoring callee-saved registers.
502 (mips_hard_regno_mode_ok_p): Implement O32 FP64A extension.
503 (mips_secondary_memory_needed): New function.
504 (mips_option_override): ABI check for TARGET_FLOATXX. Disable
505 odd-numbered single-precision registers when using TARGET_FLOATXX.
506 Implement -modd-spreg and defaults.
507 (mips_conditional_register_usage): Redefine O32 FP64 to match O32 FP32
508 callee-saved behaviour.
509 (mips_hard_regno_caller_save_mode): Implement.
510 (TARGET_GET_RAW_RESULT_MODE): Define target hook.
511 (TARGET_GET_RAW_ARG_MODE): Define target hook.
512 (TARGET_DWARF_FRAME_REG_MODE): Define target hook.
513 * config/mips/mips.h (TARGET_FLOAT32): New macro.
514 (TARGET_O32_FP64A_ABI): Likewise.
515 (TARGET_CPU_CPP_BUILTINS): TARGET_FPXX is __mips_fpr==0. Add
516 _MIPS_SPFPSET builtin define.
517 (MIPS_FPXX_OPTION_SPEC): New macro.
518 (OPTION_DEFAULT_SPECS): Pass through --with-fp-32=* to -mfp and
519 --with-odd-spreg-32=* to -m[no-]odd-spreg.
520 (ISA_HAS_ODD_SPREG): New macro.
521 (ISA_HAS_MXHC1): True for anything other than -mfp32.
522 (ASM_SPEC): Pass through mfpxx, mfp64, -mno-odd-spreg and -modd-spreg.
523 (MIN_FPRS_PER_FMT): Redefine in terms of TARGET_ODD_SPREG.
524 (HARD_REGNO_CALLER_SAVE_MODE): Define. Implement O32 FPXX extension
525 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
526 (SECONDARY_MEMORY_NEEDED): Likewise.
527 (FUNCTION_ARG_REGNO_P): Update for O32 FPXX and FP64 extensions.
528 * config/mips/mips.md (define_attr enabled): Implement O32 FPXX and
529 FP64A ABI extensions.
530 (move_doubleword_fpr<mode>): Use ISA_HAS_MXHC1 instead of
531 TARGET_FLOAT64.
532 * config/mips/mips.opt (mfpxx): New target option.
533 (modd-spreg): Likewise.
534 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Infer FP ABI from arch.
535 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise and remove
536 fp64 sysroot.
537 * config/mips/t-mti-elf: Remove fp64 multilib.
538 * config/mips/t-mti-linux: Likewise.
539 * configure.ac: Detect .module support.
540 * configure: Regenerate.
541 * doc/invoke.texi: Document -mfpxx, -modd-spreg, -mno-odd-spreg option.
542 * doc/install.texi (--with-fp-32, --with-odd-spreg-32): Document new
543 options.
544
545 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
546
547 PR target/63815
548 * config/i386/i386.c (ix86_init_large_pic_reg): New. Extracted
549 from ...
550 (ix86_init_pic_reg): Here. Use ix86_init_large_pic_reg.
551 (x86_output_mi_thunk): Set PIC register to %r11. Call
552 ix86_init_large_pic_reg to initialize PIC register.
553
554 2014-11-12 Kai Tietz <ktietz@redhat.com>
555
556 * sdbout.c (sdbout_symbol): Eliminate register only
557 if decl isn't a global variable.
558
559 2014-11-12 Alan Lawrence <alan.lawrence@arm.com>
560
561 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Display indices.
562
563 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add
564 qualifier_lane_index.
565 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): Rename to...
566 (aarch64_types_quadop_lane_qualifiers, TYPES_QUADOP_LANE): ...these.
567 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): New.
568
569 (aarch64_types_getlane_qualifiers): Rename to...
570 (aarch64_types_binop_imm_qualifiers): ...this.
571 (TYPES_SHIFTIMM): Follow renaming.
572 (TYPES_GETLANE): Rename to...
573 (TYPE_GETREG): ...this.
574
575 (aarch64_types_setlane_qualifiers): Rename to...
576 (aarch64_type_ternop_imm_qualifiers): ...this.
577 (TYPES_SHIFTINSERT, TYPES_SHIFTACC): Follow renaming.
578 (TYPES_SETLANE): Follow renaming above, and rename self to...
579 (TYPE_SETREG): ...this.
580
581 (enum builtin_simd_arg): Add SIMD_ARG_LANE_INDEX.
582 (aarch64_simd_expand_args): Add range check and endianness-flip.
583
584 (aarch64_simd_expand_builtin): Add mapping for qualifier_lane_index.
585
586 * config/aarch64/aarch64-simd.md
587 (aarch64_sq<r>dmulh_lane<mode>_internal *2): Rename to...
588 (aarch64_sq<r>dmulh_lane<mode>): ...this, and remove lane bounds check.
589 (aarch64_sqdmulh_lane<mode> *2, aarch64_sqrdmulh_lane<mode> *2): Delete.
590
591 (aarch64_sq<r>dmulh_laneq<mode>_internal): Rename to...
592 (aarch64_sq<r>dmulh_lane<mode>): ...this.
593
594 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal *2): Rename to...
595 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): ...this.
596
597 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal *2): Rename to...
598 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): ...this.
599
600 (aarch64_sqdmull_lane<mode>_internal *2): Rename to...
601 (aarch64_sqdmull_lane<mode>): ...this.
602
603 (aarch64_sqdmull_laneq<mode>_internal *2): Rename to...
604 (aarch64_sqdmull_laneq<mode>): ...this.
605
606 (aarch64_sqdmulh_laneq<mode>, aarch64_sqrdmulh_laneq<mode>,
607 (aarch64_sqdmlal_lane<mode>, aarch64_sqdmlal_laneq<mode>,
608 aarch64_sqdmlsl_lane<mode>, aarch64_sqdmlsl_laneq<mode>,
609 aarch64_sqdmull_lane<mode>, aarch64_sqdmull_laneq<mode>): Delete.
610
611 (aarch64_sqdmlal2_lane<mode>, aarch64_sqdmlal2_laneq<mode>,
612 aarch64_sqdmlsl2_lane<mode>, aarch64_sqdmlsl2_laneq<mode>,
613 aarch64_sqdmull2_lane<mode>, aarch64_sqdmull2_laneq<mode>): Remove
614 bounds check and lane flip.
615
616 * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane,
617 get_dregoi, get_dregci, getdregxi, get_qregoi,get_qregci, get_qregxi,
618 set_qregoi, set_qregci, set_qregxi): Change qualifiers to GETREG.
619
620 (sqdmlal_lane, sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq,
621 sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq, sqdmlsl2_laneq): Follow
622 renaming of TERNOP_LANE to QUADOP_LANE.
623
624 (sqdmull_lane, sqdmull_laneq, sqdmull2_lane, sqdmull2_laneq,
625 sqdmulh_lane, sqdmulh_laneq, sqrdmulh_lane, sqrdmulh_laneq): Set
626 qualifiers to TERNOP_LANE.
627
628 2014-11-12 Tobias Burnus <burnus@net-b.de>
629
630 * Makefile.in (CLOOGLIBS, CLOOGINC): Remove.
631 * configure.ac: Ditto.
632 * graphite-interchange.c: Remove HAVE_CLOOG block.
633 * config.in: Regenerate.
634 * configure: Regenerate.
635
636 2014-11-12 Jiong Wang <jiong.wang@arm.com>
637
638 * config/aarch64/aarch64.h (CALL_USED_REGISTERS): Mark LR as
639 caller-save.
640 (EPILOGUE_USES): Guard the check by epilogue_completed.
641 * config/aarch64/aarch64.c (aarch64_layout_frame): Explictly check for
642 LR.
643 (aarch64_can_eliminate): Check LR_REGNUM liveness.
644
645 2014-11-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
646
647 * config/arm/arm.c (*<arith_shift_insn>_shiftsi): Fix typo.
648
649 2014-11-12 Marek Polacek <polacek@redhat.com>
650
651 * fold-const.c (fold_binary_loc): Don't fold if the result
652 is undefined.
653 * match.pd (A + (-B) -> A - B, A - (-B) -> A + B,
654 -(-A) -> A): Likewise.
655
656 2014-11-12 Richard Biener <rguenther@suse.de>
657
658 Merge from match-and-simplify branch
659 2014-11-04 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
660
661 * genmatch.c (user_id): Add new member is_oper_list.
662 (user_id::user_id): Add new default argument.
663 (parser::parse_operator_list): New function.
664 (parser::parse_for): Allow operator-list.
665 (parser::parse_pattern): Call parser::parse_operator_list.
666 (parser::parse_operation): Reject operator-list.
667 * match-builtin.pd: Define operator lists POWs, CBRTs and SQRTs.
668
669 2014-10-31 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
670
671 * genmatch.c (parser::parse_c_expr): Mark user-defined ops as used.
672
673 2014-10-30 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
674
675 * genmatch.c (parser::parse_op): Check if predicate is used in
676 result operand.
677
678 2014-10-29 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
679
680 * genmatch.c (parser::parse_for): Make sure to have a valid
681 token to report errors at.
682
683 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
684
685 * genmatch.c (parser): Add new member parsing_match_operand.
686 (parser::parse_operation): Check for conditional convert in result
687 operand.
688 (parser::parse_expr): Check for commutative operator in result operand.
689 Check for :type in match operand.
690 (parser::parse_simplify): Set/unset parsing_match_operand.
691 (parser::parser): Initialize parsing_match_operand.
692
693 2014-10-28 Richard Biener <rguenther@suse.de>
694
695 * genmatch.c (parser::parse_for): Properly check for already
696 defined operators.
697
698 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
699
700 * genmatch.c (error_cb): Adjust for printing warnings.
701 (warning_at): New function.
702 (user_id): Add new member used.
703 (get_operator): Mark user_id as used.
704 (parse_for): Warn for unused operators.
705
706 2014-11-12 Richard Biener <rguenther@suse.de>
707
708 * match.pd: Implement simple complex operations cancelling.
709 * fold-const.c (fold_unary_loc): Remove them here.
710
711 2014-11-12 Joseph Myers <joseph@codesourcery.com>
712
713 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
714 Define __NO_MATH_ERRNO__ if -fno-math-errno.
715 * doc/cpp.texi (__NO_MATH_ERRNO__): Document predefined macro.
716
717 2014-11-12 Richard Biener <rguenther@suse.de>
718
719 * genmatch.c (::gen_transform): Add capture_info and
720 expand_compares arguments.
721 (struct expr): Add is_generic flag.
722 (lower_cond): New functions lowering [VEC_]COND_EXPR
723 conditions to a GENERIC and a GIMPLE variant.
724 (lower): Call lower_cond.
725 (cmp_operand): Also compare the is_generic flag.
726 (capture_info::cinfo): Add cond_expr_cond_p flag.
727 (capture_info::capture_info): Pass down whether the
728 expression argument is a COND_EXPR condition.
729 (capture_info::walk_match): Likewise, mark captures
730 capturing COND_EXPR conditions with cond_expr_cond_p.
731 (expr::gen_transform): Pass down whether we need to
732 expand compares from COND_EXPR conditions.
733 (capture::gen_transform): Expand compares substituted
734 from COND_EXPR conditions into non-COND_EXPR conditions.
735 (dt_operand::gen_gimple_expr): Handle explicitely marked
736 GENERIC expressions as generic.
737 (dt_simplify::gen): Pass whether we need to expand
738 conditions to gen_transform. Handle capture results
739 which are from COND_EXPR conditions.
740 (main): Pass gimple flag down to lower.
741
742 2014-11-12 Jakub Jelinek <jakub@redhat.com>
743
744 PR c/59708
745 * builtin-attrs.def (ATTR_NOTHROW_TYPEGENERIC_LEAF): New attribute.
746 * builtins.c (fold_builtin_arith_overflow): New function.
747 (fold_builtin_3): Use it.
748 * builtins.def (BUILT_IN_ADD_OVERFLOW, BUILT_IN_SUB_OVERFLOW,
749 BUILT_IN_MUL_OVERFLOW, BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW,
750 BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW,
751 BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW,
752 BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW,
753 BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADDL_OVERFLOW,
754 BUILT_IN_UADDLL_OVERFLOW, BUILT_IN_USUB_OVERFLOW,
755 BUILT_IN_USUBL_OVERFLOW, BUILT_IN_USUBLL_OVERFLOW,
756 BUILT_IN_UMUL_OVERFLOW, BUILT_IN_UMULL_OVERFLOW,
757 BUILT_IN_UMULLL_OVERFLOW): New built-in functions.
758 * builtin-types.def (BT_PTR_UINT, BT_PTR_ULONG, BT_PTR_LONGLONG,
759 BT_FN_BOOL_INT_INT_INTPTR, BT_FN_BOOL_LONG_LONG_LONGPTR,
760 BT_FN_BOOL_LONGLONG_LONGLONG_LONGLONGPTR, BT_FN_BOOL_UINT_UINT_UINTPTR,
761 BT_FN_BOOL_ULONG_ULONG_ULONGPTR,
762 BT_FN_BOOL_ULONGLONG_ULONGLONG_ULONGLONGPTR, BT_FN_BOOL_VAR): New.
763 * expr.c (write_complex_part): Remove prototype, no longer static.
764 * expr.h (write_complex_part): New prototype.
765 * function.c (aggregate_value_p): For internal functions return 0.
766 * gimple-fold.c (arith_overflowed_p): New functions.
767 (gimple_fold_call): Fold {ADD,SUB,MUL}_OVERFLOW internal calls.
768 * gimple-fold.h (arith_overflowed_p): New prototype.
769 * tree-ssa-dce.c: Include tree-ssa-propagate.h and gimple-fold.h.
770 (find_non_realpart_uses, maybe_optimize_arith_overflow): New
771 functions.
772 (eliminate_unnecessary_stmts): Transform {ADD,SUB,MUL}_OVERFLOW
773 into COMPLEX_CST/COMPLEX_EXPR if IMAGPART_EXPR of the result is
774 never used.
775 * gimplify.c (gimplify_call_expr): Handle gimplification of
776 internal calls with lhs.
777 * internal-fn.c (get_range_pos_neg, get_min_precision,
778 expand_arith_overflow_result_store): New functions.
779 (ubsan_expand_si_overflow_addsub_check): Renamed to ...
780 (expand_addsub_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
781 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
782 Handle ADD_OVERFLOW and SUB_OVERFLOW expansion.
783 (ubsan_expand_si_overflow_neg_check): Renamed to ...
784 (expand_neg_overflow): ... this. Add LOC, LHS, ARG1, IS_UBSAN
785 arguments, remove STMT argument. Handle SUB_OVERFLOW with
786 0 as first argument expansion.
787 (ubsan_expand_si_overflow_mul_check): Renamed to ...
788 (expand_mul_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
789 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
790 Handle MUL_OVERFLOW expansion.
791 (expand_UBSAN_CHECK_ADD): Use expand_addsub_overflow, prepare
792 arguments for it.
793 (expand_UBSAN_CHECK_SUB): Use expand_addsub_overflow or
794 expand_neg_overflow, prepare arguments for it.
795 (expand_UBSAN_CHECK_MUL): Use expand_mul_overflow, prepare arguments
796 for it.
797 (expand_arith_overflow, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW,
798 expand_MUL_OVERFLOW): New functions.
799 * internal-fn.def (ADD_OVERFLOW, SUB_OVERFLOW, MUL_OVERFLOW): New
800 internal functions.
801 * tree-vrp.c (check_for_binary_op_overflow): New function.
802 (extract_range_basic): Handle {REAL,IMAG}PART_EXPR if the operand
803 is SSA_NAME set by {ADD,SUB,MUL}_OVERFLOW internal functions.
804 (simplify_internal_call_using_ranges): Handle {ADD,SUB,MUL}_OVERFLOW
805 internal functions.
806 * optabs.def (umulv4_optab): New optab.
807 * config/i386/i386.md (umulv<mode>4, <u>mulvqi4): New define_expands.
808 (*umulv<mode>4, *<u>mulvqi4): New define_insns.
809 * doc/extend.texi (Integer Overflow Builtins): Document
810 __builtin_*_overflow.
811
812 2014-11-12 Richard Biener <rguenther@suse.de>
813
814 * genmatch.c (capture_info::capture_info): Add missing
815 COND_EXPR handling.
816 (capture_info::walk_match): Fix COND_EXPR handling.
817 (capture_info::walk_result): Likewise.
818
819 2014-11-12 Richard Biener <rguenther@suse.de>
820
821 PR middle-end/63821
822 * match.pd: Add missing conversion to the -(T)-X pattern.
823
824 2014-11-12 Richard Biener <rguenther@suse.de>
825
826 PR bootstrap/63819
827 * hash-table.h: Include ggc.h also for generator programs.
828 * genmatch.c (ggc_internal_cleared_alloc): Properly define
829 using MEM_STAT_DECL instead of CXX_MEM_STAT_INFO.
830
831 2014-11-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
832
833 PR tree-optimization/63761
834 * tree-ssa-math-opts.c (bswap_replace): Construct gsi from cur_stmt
835 rather than taking it as a parameter. Add some comments to explain the
836 gsi_move_before in case of load and why canonicalization of bswap into
837 a rotation is only done for 16bit values.
838 (pass_optimize_bswap::execute): Adapt for loop via gsi to make gsi
839 refer to the statement just before cur_stmt. Ignore 16bit bswap that
840 are already in canonical form. Adapt bswap_replace to removal of its
841 gsi parameter.
842
843 2014-11-12 Richard Sandiford <richard.sandiford@arm.com>
844
845 * rtl.h (rtx_function, for_each_rtx, for_each_rtx_in_insn): Delete.
846 * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1, for_each_rtx):
847 (for_each_rtx_in_insn): Delete.
848 (init_rtlanal): Remove initialization of non_rtx_starting_operands.
849 * df-core.c: Remove reference to for_each_rtx in comment.
850
851 2014-11-12 Tejas Belagod <tejas.belagod@arm.com>
852
853 * Makefile.in (TEXI_GCC_FILES): Remove arm-acle-intrinsics.texi,
854 arm-neon-intrinsics.texi, aarch64-acle-intrinsics.texi.
855 * doc/aarch64-acle-intrinsics.texi: Remove.
856 * doc/arm-acle-intrinsics.texi: Remove.
857 * doc/arm-neon-intrinsics.texi: Remove.
858 * doc/extend.texi: Consolidate sections AArch64 intrinsics,
859 ARM NEON Intrinsics, ARM ACLE Intrinsics into one ARM C Language
860 Extension section. Add references to public ACLE specification.
861
862 2014-11-11 Patrick Palka <ppalka@gcc.gnu.org>
863
864 * tree-vrp.c (register_edge_assert_for_2): Change return type to
865 void and adjust accordingly.
866 (register_edge_assert_for_1): Likewise.
867 (register_edge_assert_for): Likewise.
868 (find_conditional_asserts): Likewise.
869 (find_switch_asserts): Likewise.
870 (find_assert_locations_1): Likewise.
871 (find_assert_locations): Likewise.
872 (insert_range_insertions): Inspect the need_assert_for bitmap.
873
874 2014-11-11 Andrew Pinski <apinski@cavium.com>
875
876 Bug target/61997
877 * config.gcc (aarch64*-*-*): Set target_gtfiles to include
878 aarch64-builtins.c.
879 * config/aarch64/aarch64-builtins.c: Include gt-aarch64-builtins.h
880 at the end of the file.
881
882 2014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
883 Manuel López-Ibáñez <manu@gcc.gnu.org>
884
885 PR driver/36312
886 * diagnostic-core.h: Add prototype for fatal_error.
887 * diagnostic.c (fatal_error): New function fatal_error.
888 * gcc.c (store_arg): Remove have_o_argbuf_index.
889 (process_command): Check if input and output files are the same.
890 * toplev.c (init_asm_output): Check if input and output files are
891 the same.
892
893 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
894
895 * reorg.c (fill_slots_from_thread): Do not copy frame-related insns.
896
897 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
898
899 PR target/61535
900 * config/sparc/sparc.c (function_arg_vector_value): Deal with vectors
901 smaller than 8 bytes.
902 (sparc_function_arg_1): Tweak.
903 (sparc_function_value_1): Tweak.
904
905 2014-11-11 David Malcolm <dmalcolm@redhat.com>
906
907 * ChangeLog.jit: New.
908 * Makefile.in (doc_build_sys): New variable, set to "sphinx" if
909 sphinx is installed, falling back to "texinfo" otherwise.
910 (FULL_DRIVER_NAME): New variable, adapted from the
911 install-driver target. New target, a symlink within the builddir,
912 linked to "xgcc", for use when running the JIT library from the
913 builddir.
914 (MOSTLYCLEANFILES): Add FULL_DRIVER_NAME.
915 (install-driver): Use $(FULL_DRIVER_NAME) rather than spelling it
916 out.
917 * configure.ac (doc_build_sys): New variable, set to "sphinx" if
918 sphinx is installed, falling back to "texinfo" otherwise.
919 (GCC_DRIVER_NAME): Generate a gcc-driver-name.h file containing
920 GCC_DRIVER_NAME for the benefit of jit/internal-api.c.
921 * configure: Regenerate.
922 * doc/install.texi (--enable-host-shared): Specify that this is
923 required when building libgccjit.
924 (Tools/packages necessary for modifying GCC): Add Sphinx.
925 * timevar.def (TV_JIT_REPLAY): New.
926 (TV_ASSEMBLE): New.
927 (TV_LINK): New.
928 (TV_LOAD): New.
929
930 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
931
932 PR target/63610
933 * configure: Regenerate.
934
935 2014-11-11 James Greenhalgh <james.greenhalgh@arm.com>
936
937 * config/aarch64/aarch64-simd.md
938 (aarch64_simd_bsl<mode>_internal): Remove float cases, canonicalize.
939 (aarch64_simd_bsl<mode>): Add gen_lowpart expressions where we
940 are punning between float vectors and integer vectors.
941
942 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
943
944 * config/alpha/alpha.c (alpha_emit_conditional_branch): Replace
945 open-coded swap with std::swap to swap values.
946 (alpha_emit_setcc): Ditto.
947 (alpha_emit_conditional_move): Ditto.
948 (alpha_split_tmode_pair): Ditto.
949
950 2014-11-11 Evgeny Stupachenko <evstupac@gmail.com>
951
952 * tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
953 permutations on power of 2 cases.
954
955 2014-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
956
957 * config/aarch64/aarch64.h (MACHMODE): Remove 'enum' keyword.
958 (CUMULATIVE_ARGS): Guard on !defined(USED_FOR_TARGET).
959
960 2014-11-11 Richard Biener <rguenther@suse.de>
961
962 * tree-core.h (pedantic_lvalues): Remove.
963 * fold-const.c (pedantic_lvalues): Likewise.
964 (pedantic_non_lvalue_loc): Remove conditional non_lvalue_loc call.
965
966 2014-11-11 Martin Liska <mliska@suse.cz>
967
968 PR ipa/63622
969 PR ipa/63795
970 * ipa-icf.c (sem_function::merge): Add new target symbol alias
971 support guard.
972 (sem_variable::merge): Likewise.
973 * ipa-icf.h (target_supports_symbol_aliases_p): New function.
974
975 2014-11-11 Richard Biener <rguenther@suse.de>
976
977 * match.pd: Implement patterns from associate_plusminus
978 and factor in differences from the fold-const.c implementation.
979 * fold-const.c (fold_binary_loc): Remove patterns here.
980 * tree-ssa-forwprop.c (associate_plusminus): Remove.
981 (pass_forwprop::execute): Don't call it.
982 * tree.c (tree_nop_conversion_p): New function, factored
983 from tree_nop_conversion.
984 * tree.h (tree_nop_conversion_p): Declare.
985
986 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
987
988 * system.h: Include algorithm and utility.
989 * rtl.h: Do not include utility here.
990 * wide-int.h: Ditto.
991 * tree-vect-data-refs.c (swap): Remove template.
992 (vect_prune_runtime_alias_test_list): Use std::swap instead of swap.
993
994 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
995
996 PR bootstrap/63699
997 PR bootstrap/63750
998 * system.h: Include <string> before "safe-ctype.h"
999 * wide-int.h (wi::smin, wi::smax, wi::umin, wi::umax): Prefix
1000 calls to min/max with wi namespace.
1001 * ipa-chkp.c: Don't include <string>.
1002
1003 2014-11-11 Terry Guo <terry.guo@arm.com>
1004
1005 * doc/invoke.texi (-masm-syntax-unified): Reword and fix typo.
1006 * config/arm/thumb1.md (*thumb_mulsi3): Use movs to move low
1007 registers.
1008 (*thumb1_movhf): Likewise.
1009
1010 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
1011
1012 * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)
1013 instead of INT64_MAX.
1014
1015 2014-11-11 Tobias Burnus <burnus@net-b.de>
1016
1017 * doc/install.texi (Prerequisites): Remove CLooG.
1018
1019 2014-11-10 Trevor Saunders <tsaunders@mozilla.com>
1020
1021 * ipa-inline.c (edge_badness): Adjust.
1022 (inline_small_functions): Likewise.
1023 * predict.c (propagate_freq): Likewise.
1024 (estimate_bb_frequencies): Likewise.
1025 * sreal.c (sreal::dump): Rename from dump_sreal.
1026 (debug): Adjust.
1027 (copy): Remove function.
1028 (sreal::shift_right): Rename from sreal_sift_right.
1029 (sreal::normalize): Rename from normalize.
1030 (sreal_init): Remove function.
1031 (sreal::to_int): Rename from sreal_to_int.
1032 (sreal_compare): Remove function.
1033 (sreal::operator+): Rename from sreal_add.
1034 (sreal::operator-): Rename from sreal_sub.
1035 (sreal::operator*): Rename from sreal_mul.
1036 (sreal::operator/): Rename from sreal_div.
1037 * sreal.h (class sreal): Adjust.
1038 (inline sreal &operator+=): New operator.
1039 (inline sreal &operator-=): Likewise.
1040 (inline sreal &operator/=): Likewise.
1041 (inline sreal &operator*=): Likewise.
1042 (inline bool operator!=): Likewise.
1043 (inline bool operator>): Likewise.
1044 (inline bool operator<=): Likewise.
1045 (inline bool operator>=): Likewise.
1046
1047 2014-11-11 Bin Cheng <bin.cheng@arm.com>
1048
1049 * sched-deps.c (sched_analyze_1): Check pending list if it is not
1050 less than MAX_PENDING_LIST_LENGTH.
1051 (sched_analyze_2, sched_analyze_insn, deps_analyze_insn): Ditto.
1052
1053 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
1054
1055 * config/i386/i386.c (ix86_decompose_address): Replace open-coded
1056 swap with std::swap to swap values.
1057 (ix86_fixup_binary_operands): Ditto.
1058 (ix86_binary_operator_ok): Ditto.
1059 (ix86_prepare_fp_compare_args): Ditto.
1060 (ix86_expand_branch): Ditto.
1061 (ix86_expand_carry_flag_compare): Ditto.
1062 (ix86_expand_int_movcc): Ditto.
1063 (ix86_prepare_sse_fp_compare_args): Ditto.
1064 (ix86_expand_sse_fp_minmax): Ditto.
1065 (ix86_expand_int_vcond): Ditto.
1066 (ix86_split_long_move): Ditto.
1067 (ix86_expand_sse_comi): Ditto.
1068 (ix86_expand_sse_compare_and_jump): Ditto.
1069 (ix86_expand_sse_compare_mask): Ditto.
1070 * config/i386/i386.md (*add<mode>_1): Ditto.
1071 (addsi_1_zext): Ditto.
1072 (*addhi_1): Ditto.
1073 (*addqi_1): Ditto.
1074 (*add<mode>_2): Ditto.
1075 (*addsi_2_zext): Ditto.
1076 (*add<mode>_3): Ditto.
1077 (*addsi_3_zext): Ditto.
1078 (*add<mode>_5): Ditto.
1079 (absneg splitter): Ditto.
1080
1081 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
1082
1083 Revert:
1084 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
1085
1086 PR target/63620
1087 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
1088 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
1089 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
1090 be reloaded through memory.
1091 (*pushxf): Ditto.
1092 (*pushdf): Ditto.
1093
1094 2014-11-11 Jakub Jelinek <jakub@redhat.com>
1095 Martin Liska <mliska@suse.cz>
1096
1097 * ipa-icf-gimple.c (func_checker::compare_bb): Fix comment typo.
1098 (func_checker::compare_gimple_call): Compare gimple_call_fn,
1099 gimple_call_chain, gimple_call_fntype and call flags.
1100
1101 2014-11-10 Vladimir Makarov <vmakarov@redhat.com>
1102
1103 PR rtl-optimization/63620
1104 PR rtl-optimization/63799
1105 * lra-lives.c (process_bb_lives): Do not delete EH_REGION, trapped
1106 and setting PIC pseudo insns.
1107 (lra_create_live_ranges): Fix the typo.
1108
1109 2014-11-10 Patrick Palka <ppalka@gcc.gnu.org>
1110
1111 PR middle-end/63748
1112 * tree-ssa-propagate.c (may_propagate_copy): Allow propagating
1113 SSA copies whose source and destination names both occur in
1114 abnormal PHIs.
1115
1116 2014-11-10 Roman Gareev <gareevroman@gmail.com>
1117
1118 * Makefile.in: Remove the compilation of graphite-clast-to-gimple.o.
1119 * common.opt: Remove using of fgraphite-code-generator flag.
1120 * flag-types.h: Likewise.
1121 * graphite.c: Remove using of CLooG.
1122 * graphite-blocking.c: Likewise.
1123 * graphite-dependences.c: Likewise.
1124 * graphite-poly.c: Likewise.
1125 * graphite-poly.h: Likewise.
1126 * graphite-scop-detection.c: Likewise.
1127 * graphite-sese-to-poly.c: Likewise.
1128 * graphite-clast-to-gimple.c: Removed.
1129 * graphite-clast-to-gimple.h: Likewise.
1130 * graphite-htab.h: Likewise.
1131
1132 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1133
1134 * doc/invoke.texi ([-Wshift-count-negative, -Wshift-count-overflow]):
1135 Add.
1136
1137 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
1138
1139 * config/frv/frv.c (frv_io_handle_use_1): Delete.
1140 (frv_io_handle_use): Use find_all_hard_regs.
1141
1142 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
1143
1144 * config/frv/frv.c (frv_registers_conflict_p_1): Take an rtx rather
1145 than an rtx *. Take the regstate_t directly rather than via a void *.
1146 Return a bool rather than an int. Iterate over all subrtxes here.
1147 (frv_registers_conflict_p): Update accordingly.
1148
1149 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
1150
1151 * config/frv/frv.c: Include rtl-iter.h.
1152 (frv_acc_group_1): Delete.
1153 (frv_acc_group): Use FOR_EACH_SUBRTX.
1154
1155 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
1156
1157 * config/frv/frv.c: Move include of rtl.h after hard-reg-set.h.
1158 (frv_clear_registers_used): Delete.
1159 (frv_ifcvt_modify_tests): Use find_all_hard_regs.
1160
1161 2014-11-10 Jan Hubicka <hubicka@ucw.cz>
1162
1163 PR bootstrap/63573
1164 * calls.c (initialize_argument_information): When emitting thunk call
1165 use original memory placement of the argument.
1166
1167 2014-11-10 Renlin Li <renlin.li@arm.com>
1168
1169 PR middle-end/61529
1170 * tree-ssa-threadupdate.c (compute_path_counts): Bound path_in_freq.
1171
1172 2014-11-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
1173
1174 * expmed.c (expand_shift_1): Expand 8 bit rotate of 16 bit value to
1175 bswaphi if available.
1176
1177 2014-11-10 Bernd Schmidt <bernds@codesourcery.com>
1178
1179 * config/nvptx/nvptx.c: New file.
1180 * config/nvptx/nvptx.h: New file.
1181 * config/nvptx/nvptx-protos.h: New file.
1182 * config/nvptx/nvptx.md: New file.
1183 * config/nvptx/t-nvptx: New file.
1184 * config/nvptx/nvptx.opt: New file.
1185 * common/config/nvptx/nvptx-common.c: New file.
1186 * config.gcc: Handle nvptx-*-*.
1187
1188 2014-11-10 Richard Biener <rguenther@suse.de>
1189
1190 * tree-ssa-operands.c (finalize_ssa_uses): Properly put
1191 released operands on the free list.
1192
1193 2014-11-10 Richard Biener <rguenther@suse.de>
1194
1195 * match.pd: Implement pattern from simplify_mult.
1196 * tree-ssa-forwprop.c (simplify_mult): Remove.
1197 (pass_forwprop::execute): Do not call simplify_mult.
1198
1199 2014-11-10 Richard Biener <rguenther@suse.de>
1200
1201 PR tree-optimization/63800
1202 * tree-ssa-pre.c (eliminate_push_avail): Push in a way so
1203 we can restore the previous availability in after_dom_children.
1204 (eliminate_dom_walker::after_dom_children): Restore
1205 previous availability.
1206
1207 2014-11-10 Richard Biener <rguenther@suse.de>
1208
1209 PR middle-end/63798
1210 * expr.c (expand_expr_real_2): When expanding FMA_EXPRs
1211 properly treat the embedded multiplication as commutative
1212 when looking for feeding negates.
1213
1214 2014-11-10 Joern Rennecke <joern.rennecke@embecosm.com>
1215
1216 * config/avr/avr.h (CPLUSPLUS_CPP_SPEC): Define.
1217
1218 2014-11-10 Martin Liska <mliska@suse.cz>
1219
1220 * gcc.dg/tree-ssa/ldist-19.c: ICF is disabled
1221 for the test because of default char signedness
1222 on powerpc64 target.
1223
1224 2014-11-10 Richard Biener <rguenther@suse.de>
1225
1226 * match.pd: Implement pattern from simplify_conversion_from_bitmask.
1227 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): Remove.
1228 (pass_forwprop::execute): Do not call simplify_conversion_from_bitmask.
1229
1230 2014-11-10 Richard Biener <rguenther@suse.de>
1231
1232 * match.pd: Move rest of the conversion combining patterns
1233 from tree-ssa-forwprop.c.
1234 * tree-ssa-forwprop.c (combine_conversions): Remove.
1235 (pass_forwprop::execute): Do not call it.
1236
1237 2014-11-10 Eric Botcazou <ebotcazou@adacore.com>
1238
1239 * gimple-low.c (lower_function_body): Clear the location of the first
1240 inserted representative return if it also fills in for the fallthru.
1241
1242 2014-11-10 Yuri Rumyantsev <ysrumyan@gmail.com>
1243
1244 * tree-if-conv.c (add_to_predicate_list): Check unconditionally
1245 that bb is always executed to early exit. Use predicate of
1246 cd-equivalent block for join blocks if it exists.
1247 (if_convertible_loop_p_1): Recompute POST_DOMINATOR tree.
1248 (tree_if_conversion): Free post-dominance information.
1249
1250 2014-11-09 Jason Merrill <jason@redhat.com>
1251
1252 * config/i386/avx512vldqintrin.h (_mm256_broadcast_f32x2): __mmask8.
1253 * config/i386/avx512vlintrin.h (_mm256_mask_cvtepi32_storeu_epi16)
1254 (_mm_mask_cvtusepi32_storeu_epi16)
1255 (_mm_mask_cvtsepi64_storeu_epi32): Return void.
1256
1257 2014-11-09 Joern Rennecke <joern.rennecke@embecosm.com>
1258
1259 * config/avr/predicates.md (low_io_address_operand): Fix typo.
1260
1261 2014-11-09 Vladimir Makarov <vmakarov@redhat.com>
1262
1263 PR rtl-optimization/63620
1264 * lra-constraints.c (substitute_pseudo): Add prefix lra_ to the
1265 name. Move to lra.c. Make it external.
1266 (substitute_pseudo_within_insn): Ditto.
1267 (inherit_reload_reg, split_reg, remove_inheritance_pseudos): Use
1268 the new names.
1269 (undo_optional_reloads): Ditto.
1270 * lra-int.h (lra_dump_bitmap_with_title, lra_substitute_pseudo):
1271 New prototypes.
1272 (lra_substitute_pseudo_within_insn): Ditto.
1273 * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): New.
1274 (mark_regno_live): Add parameter. Update bb_gen_pseudos.
1275 (mark_regno_dead): Add parameter. Update bb_gen_pseudos and
1276 bb_killed_pseudos.
1277 (struct bb_data, bb_data_t, bb_data): New.
1278 (get_bb_data, get_bb_data_by_index): Ditto.
1279 (all_hard_regs_bitmap): New.
1280 (live_trans_fun, live_con_fun_0, live_con_fun_n, all_blocks): New.
1281 (initiate_live_solver, finish_live_solver): New.
1282 (process_bb_lives): Change return type. Add code updating local
1283 live data and removing dead insns. Pass new argument to
1284 mark_regno_live and mark_regno_dead. Check changing bb pseudo
1285 life info. Return the result.
1286 (lra_create_live_ranges): Add code to do global pseudo live
1287 analysis.
1288 (lra_live_ranges_init): Call initiate_live_solver.
1289 (lra_live_ranges_finish): Call finish_live_solver.
1290 * lra.c (lra_dump_bitmap_with_title): New.
1291 (lra_substitute_pseudo, lra_substitute_pseudo_within_insn): Move
1292 from lra-constraints.c.
1293
1294 2014-11-09 Richard Biener <rguenther@suse.de>
1295
1296 * match.pd: Add patterns convering two conversions in a row
1297 from fold-const.c.
1298 * fold-const.c (fold_unary_loc): Remove them here.
1299 * tree-ssa-forwprop.c (combine_conversions): Likewise.
1300 * genmatch.c (dt_node::gen_kids): Check whether we may
1301 follow SSA use-def chains.
1302
1303 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
1304
1305 * config/aarch64/aarch64.c: Include rtl-iter.h.
1306 (aarch64_tls_operand_p_1): Delete.
1307 (aarch64_tls_operand_p): Use FOR_EACH_SUBRTX.
1308
1309 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
1310
1311 * config/arm/arm.c (arm_note_pic_base): Delete.
1312 (arm_cannot_copy_insn_p): Use FOR_EACH_SUBRTX.
1313
1314 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
1315
1316 * config/arm/arm.c: Include rtl-iter.h.
1317 (arm_tls_referenced_p_1): Delete.
1318 (arm_tls_referenced_p): Use FOR_EACH_SUBRTX.
1319
1320 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
1321
1322 * config/arm/aarch-common.c: Include rtl-iter.h.
1323 (search_term, arm_find_sub_rtx_with_search_term): Delete.
1324 (arm_find_sub_rtx_with_code): Use FOR_EACH_SUBRTX_VAR.
1325 (arm_get_set_operands): Pass the insn pattern rather than the
1326 insn itself.
1327 (arm_no_early_store_addr_dep): Likewise.
1328
1329 2014-11-08 Eric Botcazou <ebotcazou@adacore.com>
1330
1331 * config/arm/arm.c (arm_set_return_address): Mark the store as frame
1332 related, if any.
1333 (thumb_set_return_address): Likewise.
1334
1335 2014-11-07 Jeff Law <law@redhat.com>
1336
1337 PR tree-optimization/61515
1338 * tree-ssa-threadedge.c (invalidate_equivalences): Walk the unwinding
1339 stack rather than looking at every SSA_NAME's value.
1340
1341 2014-11-07 Richard Biener <rguenther@suse.de>
1342
1343 PR tree-optimization/63605
1344 * fold-const.c (fold_binary_loc): Properly use element_precision
1345 for types that may not be scalar.
1346
1347 2014-11-07 Evgeny Stupachenko <evstupac@gmail.com>
1348
1349 PR target/63534
1350 * config/i386/i386.md (builtin_setjmp_receiver): Use
1351 pic_offset_table_rtx for PIC register.
1352 (nonlocal_goto_receiver): Delete.
1353
1354 2014-11-07 Daniel Hellstrom <daniel@gaisler.com>
1355
1356 * config.gcc (sparc-*-rtems*): Clean away unused t-elf.
1357 * config/sparc/t-rtems: Add leon3v7 and muser-mode multilibs.
1358
1359 2014-11-07 Martin Liska <mliska@suse.cz>
1360
1361 PR ipa/63580
1362 * cgraphunit.c (cgraph_node::create_wrapper):
1363 TREE_ADDRESSABLE is set to false for a newly created thunk.
1364
1365 2014-11-07 Martin Liska <mliska@suse.cz>
1366
1367 PR ipa/63747
1368 * ipa-icf-gimple.c (func_checker::compare_gimple_switch):
1369 Missing checking for CASE_LOW and CASE_HIGH added.
1370
1371 2014-11-07 Martin Liska <mliska@suse.cz>
1372
1373 PR ipa/63595
1374 * cgraphunit.c (cgraph_node::expand_thunk): DECL_BY_REFERENCE
1375 is correctly handled for thunks created by IPA ICF.
1376
1377 2014-11-07 Jiong Wang <jiong.wang@arm.com>
1378 2014-11-07 Richard Biener <rguenther@suse.de>
1379
1380 PR tree-optimization/63676
1381 * gimple-fold.c (fold_gimple_assign): Do not fold node when
1382 TREE_CLOBBER_P be true.
1383
1384 2014-11-07 Richard Biener <rguenther@suse.de>
1385
1386 PR middle-end/63770
1387 * match.pd: Guard conflicting GENERIC pattern properly.
1388
1389 2014-11-07 Richard Biener <rguenther@suse.de>
1390
1391 * match.pd: Add patterns for POINTER_PLUS_EXPR association
1392 and special patterns from tree-ssa-forwprop.c
1393 * fold-const.c (fold_binary_loc): Remove them here.
1394 * tree-ssa-forwprop.c (to_purge): New global bitmap.
1395 (fwprop_set_lattice_val): New function.
1396 (fwprop_invalidate_lattice): Likewise.
1397 (remove_prop_source_from_use): Instead of purging dead EH
1398 edges record blocks to do that in to_purge.
1399 (tidy_after_forward_propagate_addr): Likewise.
1400 (forward_propagate_addr_expr): Invalidate the lattice for
1401 SSA names we release.
1402 (simplify_conversion_from_bitmask): Likewise.
1403 (simplify_builtin_call): Likewise.
1404 (associate_pointerplus_align): Remove.
1405 (associate_pointerplus_diff): Likewise.
1406 (associate_pointerplus): Likewise.
1407 (fold_all_stmts): Merge with ...
1408 (pass_forwprop::execute): ... the original loop over all
1409 basic-blocks. Delay purging dead EH edges and invalidate
1410 the lattice for SSA names we release.
1411
1412 2014-11-07 Terry Guo <terry.guo@arm.com>
1413
1414 * config/arm/arm.opt (masm-syntax-unified): New option.
1415 * doc/invoke.texi (-masm-syntax-unified): Document new option.
1416 * config/arm/arm.h (TARGET_UNIFIED_ASM): Also include thumb1.
1417 (ASM_APP_ON): Redefined.
1418 * config/arm/arm.c (arm_option_override): Thumb2 inline assembly
1419 code always use UAL syntax.
1420 (arm_output_mi_thunk): Use UAL syntax for Thumb1 target.
1421 * config/arm/thumb1.md: Likewise.
1422
1423 2014-11-06 John David Anglin <danglin@gcc.gnu.org>
1424
1425 * config/pa/pa.md (trap): New insn. Add "trap" to attribute type.
1426 Don't allow trap insn in in_branch_delay, in_nullified_branch_delay
1427 or in_call_delay.
1428
1429 2014-11-06 Steve Ellcey <sellcey@imgtec.com>
1430
1431 * config.gcc (mips*-mti-linux*): Remove gnu_ld and gas assignments.
1432 Set default_mips_arch and default_mips_abi instead of tm_defines.
1433 (mips*-*-linux*): Set default_mips_arch and default_mips_abi instead
1434 of tm_defines.
1435 (mips*-*-*): Check with_arch and with_abi. Set tm_defines.
1436 * config/mips/mips.h (STANDARD_STARTFILE_PREFIX_1): Set default
1437 based on MIPS_ABI_DEFAULT.
1438 (STANDARD_STARTFILE_PREFIX_2): Ditto.
1439
1440 2014-11-06 Joseph Myers <joseph@codesourcery.com>
1441
1442 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to corner
1443 cases of extended identifiers.
1444
1445 2014-11-06 Eric Botcazou <ebotcazou@adacore.com>
1446
1447 * tree-cfgcleanup.c (fixup_noreturn_call): Do not perform DCE here.
1448
1449 2014-11-06 DJ Delorie <dj@redhat.com>
1450
1451 * config/m32c/cond.md (movqicc_<code>_<mode>): Remove mode of
1452 conditional.
1453 (movhicc_<code>_<mode>): Likewise.
1454 * config/m32c/m32c.c (encode_pattern_1): Specialise PSImode
1455 subregs.
1456 (m32c_eh_return_data_regno): Change to using memregs to avoid
1457 tying up all the compute regs.
1458 (m32c_legitimate_address_p) Subregs are not valid addresses.
1459
1460 2014-11-06 Bernd Schmidt <bernds@codesourcery.com>
1461
1462 * function.c (thread_prologue_and_epilogue_insns): No longer static.
1463 * function.h (thread_prologue_and_epilogue_insns): Declare.
1464
1465 * target.def (assemble_undefined_decl): New hooks.
1466 * hooks.c (hook_void_FILEptr_constcharptr_const_tree): New function.
1467 * hooks.h (hook_void_FILEptr_constcharptr_const_tree): Declare.
1468 * doc/tm.texi.in (TARGET_ASM_ASSEMBLE_UNDEFINED_DECL): Add.
1469 * doc/tm.texi: Regenerate.
1470 * output.h (assemble_undefined_decl): Declare.
1471 (get_fnname_from_decl): Declare.
1472 * varasm.c (assemble_undefined_decl): New function.
1473 (get_fnname_from_decl): New function.
1474 * final.c (rest_of_handle_final): Use it.
1475 * varpool.c (varpool_output_variables): Call assemble_undefined_decl
1476 for nodes without a definition.
1477
1478 * target.def (call_args, end_call_args): New hooks.
1479 * hooks.c (hook_void_rtx_tree): New empty function.
1480 * hooks.h (hook_void_rtx_tree): Declare.
1481 * doc/tm.texi.in (TARGET_CALL_ARGS, TARGET_END_CALL_ARGS): Add.
1482 * doc/tm.texi: Regenerate.
1483 * calls.c (expand_call): Slightly rearrange the code. Use the two new
1484 hooks.
1485 (expand_library_call_value_1): Use the two new hooks.
1486
1487 * expr.c (use_reg_mode): Just return for pseudo registers.
1488
1489 * combine.c (try_combine): Don't allow a call as one of the source
1490 insns.
1491
1492 * target.def (decl_end): New hook.
1493 * varasm.c (assemble_variable_contents, assemble_constant_contents):
1494 Use it.
1495 * doc/tm.texi.in (TARGET_ASM_DECL_END): Add.
1496 * doc/tm.texi: Regenerate.
1497
1498 2014-11-06 Renlin Li <renlin.li@arm.com>
1499
1500 * config/aarch64/aarch64.c (aarch64_architecture_version): New.
1501 (processor): New architecture_version field.
1502 (aarch64_override_options): Initialize aarch64_architecture_version.
1503 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_ARCH,
1504 __ARM_ARCH_PROFILE, aarch64_arch_name macro.
1505
1506 2014-11-06 James Greenhalgh <james.greenhalgh@arm.com>
1507
1508 * params.def (sra-max-scalarization-size-Ospeed): New.
1509 (sra-max-scalarization-size-Osize): Likewise.
1510 * doc/invoke.texi (sra-max-scalarization-size-Ospeed): Document.
1511 (sra-max-scalarization-size-Osize): Likewise.
1512 * toplev.c (process_options): Set default values for new
1513 parameters.
1514 * tree-sra.c (analyze_all_variable_accesses): Use new parameters.
1515 * targhooks.c (get_move_ratio): Remove static designator.
1516 * target.h (get_move_ratio): Declare.
1517
1518 2014-11-06 Marek Polacek <polacek@redhat.com>
1519
1520 * sanopt.c (sanopt_optimize_walker): Limit removal of the checks.
1521 Remove vector limit.
1522
1523 2014-11-06 Richard Biener <rguenther@suse.de>
1524
1525 * match.pd: Implement bitwise binary and unary simplifications
1526 from tree-ssa-forwprop.c.
1527 * fold-const.c (fold_unary_loc): Remove them here.
1528 (fold_binary_loc): Likewise.
1529 * tree-ssa-forwprop.c (simplify_not_neg_expr): Remove.
1530 (truth_valued_ssa_name): Likewise.
1531 (lookup_logical_inverted_value): Likewise.
1532 (simplify_bitwise_binary_1): Likewise.
1533 (hoist_conversion_for_bitop_p): Likewise.
1534 (simplify_bitwise_binary_boolean): Likewise.
1535 (simplify_bitwise_binary): Likewise.
1536 (pass_forwprop::execute): Remove calls to simplify_not_neg_expr
1537 and simplify_bitwise_binary.
1538 * genmatch.c (dt_node::append_true_op): Use safe_as_a for parent.
1539 (decision_tree::insert): Also insert non-expressions.
1540
1541 2014-11-06 Hale Wang <hale.wang@arm.com>
1542
1543 * config/arm/arm-cores.def: Add support for
1544 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
1545 cortex-m1.small-multiply.
1546 * config/arm/arm-tables.opt: Regenerate.
1547 * config/arm/arm-tune.md: Regenerate.
1548 * config/arm/arm.c: Update the rtx-costs for MUL.
1549 * config/arm/bpabi.h: Handle
1550 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
1551 cortex-m1.small-multiply.
1552 * doc/invoke.texi: Document
1553 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
1554 cortex-m1.small-multiply.
1555
1556 2014-11-06 Hale Wang <hale.wang@arm.com>
1557
1558 * config/arm/arm.c: Add cortex-m7 tune.
1559 * config/arm/arm-cores.def: Use cortex-m7 tune.
1560
1561 2014-11-05 Uros Bizjak <ubizjak@gmail.com>
1562
1563 PR target/63538
1564 * config/i386/i386.c (in_large_data_p): Reject automatic variables.
1565 (ix86_encode_section_info): Do not check for non-automatic varibles
1566 when setting SYMBOL_FLAG_FAR_ADDR flag.
1567 (x86_64_elf_select_section): Do not check ix86_cmodel here.
1568 (x86_64_elf_unique_section): Ditto.
1569 (x86_elf_aligned_common): Emit tab before .largecomm.
1570
1571 2014-11-05 Joseph Myers <joseph@codesourcery.com>
1572
1573 PR preprocessor/9449
1574 * doc/cpp.texi (Character sets, Tokenization)
1575 (Implementation-defined behavior): Don't refer to UCNs in
1576 identifiers requiring -fextended-identifiers.
1577 * doc/cppopts.texi (-fextended-identifiers): Document as enabled
1578 by default for C99 and later and C++.
1579 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to extended
1580 identifiers needing -fextended-identifiers.
1581
1582 2014-11-05 Ilya Tocar <ilya.tocar@intel.com>
1583
1584 * config/i386/i386.c (expand_vec_perm_pshufb): Try vpermq/vpermd
1585 for 512-bit wide modes.
1586 (expand_vec_perm_1): Use correct versions of patterns.
1587 * config/i386/sse.md (avx512f_vec_dup<mode>_1): New.
1588 (vashr<mode>3<mask_name>): Split V8HImode and V16QImode.
1589
1590 2014-11-05 Ilya Enkovich <ilya.enkovich@intel.com>
1591
1592 * ipa-chkp.c: New.
1593 * ipa-chkp.h: New.
1594 * tree-chkp.c: New.
1595 * tree-chkp.h: New.
1596 * tree-chkp-opt.c: New.
1597 * rtl-chkp.c: New.
1598 * rtl-chkp.h: New.
1599 * Makefile.in (OBJS): Add ipa-chkp.o, rtl-chkp.o, tree-chkp.o
1600 tree-chkp-opt.o.
1601 (GTFILES): Add tree-chkp.c.
1602 * mode-classes.def (MODE_POINTER_BOUNDS): New.
1603 * tree.def (POINTER_BOUNDS_TYPE): New.
1604 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
1605 (POINTER_BOUNDS_MODE): New.
1606 (make_pointer_bounds_mode): New.
1607 * machmode.h (POINTER_BOUNDS_MODE_P): New.
1608 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
1609 (layout_type): Support POINTER_BOUNDS_TYPE.
1610 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
1611 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
1612 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
1613 (type_contains_placeholder_1): Likewise.
1614 (build_common_tree_nodes): Initialize
1615 pointer_bounds_type_node.
1616 * tree.h (POINTER_BOUNDS_TYPE_P): New.
1617 (pointer_bounds_type_node): New.
1618 (POINTER_BOUNDS_P): New.
1619 (BOUNDED_TYPE_P): New.
1620 (BOUNDED_P): New.
1621 (CALL_WITH_BOUNDS_P): New.
1622 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
1623 (gimple_call_with_bounds_p): New.
1624 (gimple_call_set_with_bounds): New.
1625 (gimple_return_retbnd): New.
1626 (gimple_return_set_retbnd): New
1627 * gimple.c (gimple_build_return): Increase number of ops
1628 for return statement.
1629 (gimple_build_call_from_tree): Propagate CALL_WITH_BOUNDS_P
1630 flag.
1631 * gimple-pretty-print.c (dump_gimple_return): Print second op.
1632 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
1633 * gimplify.c (gimplify_init_constructor): Avoid infinite
1634 loop during gimplification of bounds initializer.
1635 * calls.c: Include tree-chkp.h, rtl-chkp.h, bitmap.h.
1636 (special_function_p): Use original decl name when analyzing
1637 instrumentation clone.
1638 (arg_data): Add fields special_slot, pointer_arg and
1639 pointer_offset.
1640 (store_bounds): New.
1641 (emit_call_1): Propagate instrumentation flag for CALL.
1642 (initialize_argument_information): Compute pointer_arg,
1643 pointer_offset and special_slot for pointer bounds arguments.
1644 (finalize_must_preallocate): Preallocate when storing bounds
1645 in bounds table.
1646 (compute_argument_addresses): Skip pointer bounds.
1647 (expand_call): Store bounds into tables separately. Return
1648 result joined with resulting bounds.
1649 * cfgexpand.c: Include tree-chkp.h, rtl-chkp.h.
1650 (expand_call_stmt): Propagate bounds flag for CALL_EXPR.
1651 (expand_return): Add returned bounds arg. Handle returned bounds.
1652 (expand_gimple_stmt_1): Adjust to new expand_return signature.
1653 (gimple_expand_cfg): Reset rtx bounds map.
1654 * expr.c: Include tree-chkp.h, rtl-chkp.h.
1655 (expand_assignment): Handle returned bounds.
1656 (store_expr_with_bounds): New. Replaces store_expr with new bounds
1657 target argument. Handle bounds returned by calls.
1658 (store_expr): Now wraps store_expr_with_bounds.
1659 * expr.h (store_expr_with_bounds): New.
1660 * function.c: Include tree-chkp.h, rtl-chkp.h.
1661 (bounds_parm_data): New.
1662 (use_register_for_decl): Do not registerize decls used for bounds
1663 stores and loads.
1664 (assign_parms_augmented_arg_list): Add bounds of the result
1665 structure pointer as the second argument.
1666 (assign_parm_find_entry_rtl): Mark bounds are never passed on
1667 the stack.
1668 (assign_parm_is_stack_parm): Likewise.
1669 (assign_parm_load_bounds): New.
1670 (assign_bounds): New.
1671 (assign_parms): Load bounds and determine a location for
1672 returned bounds.
1673 (diddle_return_value_1): New.
1674 (diddle_return_value): Handle returned bounds.
1675 * function.h (rtl_data): Add field for returned bounds.
1676 * varasm.c: Include tree-chkp.h.
1677 (output_constant): Support POINTER_BOUNDS_TYPE.
1678 (output_constant_pool_2): Support MODE_POINTER_BOUNDS.
1679 (ultimate_transparent_alias_target): Move up.
1680 (make_decl_rtl): For instrumented function use
1681 name of the original decl.
1682 (assemble_start_function): Mark function as global
1683 in case it is instrumentation clone of the global
1684 function.
1685 (do_assemble_alias): Follow transparent alias chain
1686 for identifier. Check if original alias is public.
1687 (maybe_assemble_visibility): Use visibility of the
1688 original function for instrumented version.
1689 (default_unique_section): Likewise.
1690 * emit-rtl.c (immed_double_const): Support MODE_POINTER_BOUNDS.
1691 (init_emit_once): Build pointer bounds zero constants.
1692 * explow.c (trunc_int_for_mode): Support MODE_POINTER_BOUNDS.
1693 * target.def (builtin_chkp_function): New.
1694 (chkp_bound_type): New.
1695 (chkp_bound_mode): New.
1696 (chkp_make_bounds_constant): New.
1697 (chkp_initialize_bounds): New.
1698 (load_bounds_for_arg): New.
1699 (store_bounds_for_arg): New.
1700 (load_returned_bounds): New.
1701 (store_returned_bounds): New.
1702 (chkp_function_value_bounds): New.
1703 (setup_incoming_vararg_bounds): New.
1704 (function_arg): Update hook description with new possible return
1705 value CONST_INT.
1706 * targhooks.h (default_load_bounds_for_arg): New.
1707 (default_store_bounds_for_arg): New.
1708 (default_load_returned_bounds): New.
1709 (default_store_returned_bounds): New.
1710 (default_chkp_bound_type): New.
1711 (default_chkp_bound_mode): New.
1712 (default_builtin_chkp_function): New.
1713 (default_chkp_function_value_bounds): New.
1714 (default_chkp_make_bounds_constant): New.
1715 (default_chkp_initialize_bounds): New.
1716 (default_setup_incoming_vararg_bounds): New.
1717 * targhooks.c (default_load_bounds_for_arg): New.
1718 (default_store_bounds_for_arg): New.
1719 (default_load_returned_bounds): New.
1720 (default_store_returned_bounds): New.
1721 (default_chkp_bound_type): New.
1722 (default_chkp_bound_mode); New.
1723 (default_builtin_chkp_function): New.
1724 (default_chkp_function_value_bounds): New.
1725 (default_chkp_make_bounds_constant): New.
1726 (default_chkp_initialize_bounds): New.
1727 (default_setup_incoming_vararg_bounds): New.
1728 * builtin-types.def (BT_BND): New.
1729 (BT_FN_PTR_CONST_PTR): New.
1730 (BT_FN_CONST_PTR_CONST_PTR): New.
1731 (BT_FN_BND_CONST_PTR): New.
1732 (BT_FN_CONST_PTR_BND): New.
1733 (BT_FN_PTR_CONST_PTR_SIZE): New.
1734 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
1735 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
1736 (BT_FN_VOID_CONST_PTR_SIZE): New.
1737 (BT_FN_VOID_PTR_BND): New.
1738 (BT_FN_CONST_PTR_CONST_PTR_CONST_PTR): New.
1739 (BT_FN_BND_CONST_PTR_SIZE): New.
1740 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
1741 (BT_FN_VOID_CONST_PTR_BND_CONST_PTR): New.
1742 * chkp-builtins.def: New.
1743 * builtins.def: include chkp-builtins.def.
1744 (DEF_CHKP_BUILTIN): New.
1745 * builtins.c: Include tree-chkp.h and rtl-chkp.h.
1746 (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
1747 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
1748 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
1749 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
1750 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
1751 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
1752 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
1753 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
1754 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_NARROW,
1755 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
1756 (std_expand_builtin_va_start): Init bounds for va_list.
1757 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add
1758 __CHKP__ macro when Pointer Bounds Checker is on.
1759 * params.def (PARAM_CHKP_MAX_CTOR_SIZE): New.
1760 * passes.def (pass_ipa_chkp_versioning): New.
1761 (pass_early_local_passes): Renamed to pass_build_ssa_passes.
1762 (pass_fixup_cfg): Moved to pass_chkp_instrumentation_passes.
1763 (pass_chkp_instrumentation_passes): New.
1764 (pass_ipa_chkp_produce_thunks): New.
1765 (pass_local_optimization_passes): New.
1766 (pass_chkp_opt): New.
1767 * tree-pass.h (make_pass_ipa_chkp_versioning): New.
1768 (make_pass_ipa_chkp_produce_thunks): New.
1769 (make_pass_chkp): New.
1770 (make_pass_chkp_opt): New.
1771 (make_pass_early_local_passes): Renamed to ...
1772 (make_pass_build_ssa_passes): This.
1773 (make_pass_chkp_instrumentation_passes): New.
1774 (make_pass_local_optimization_passes): New.
1775 * passes.c (pass_manager::execute_early_local_passes): Execute
1776 early passes in three steps.
1777 (execute_all_early_local_passes): Renamed to ...
1778 (execute_build_ssa_passes): This.
1779 (pass_data_early_local_passes): Renamed to ...
1780 (pass_data_build_ssa_passes): This.
1781 (pass_early_local_passes): Renamed to ...
1782 (pass_build_ssa_passes): This.
1783 (pass_data_chkp_instrumentation_passes): New.
1784 (pass_chkp_instrumentation_passes): New.
1785 (pass_data_local_optimization_passes): New.
1786 (pass_local_optimization_passes): New.
1787 (make_pass_early_local_passes): Renamed to ...
1788 (make_pass_build_ssa_passes): This.
1789 (make_pass_chkp_instrumentation_passes): New.
1790 (make_pass_local_optimization_passes): New.
1791 * c-family/c.opt (fcheck-pointer-bounds): New.
1792 (fchkp-check-incomplete-type): New.
1793 (fchkp-zero-input-bounds-for-main): New.
1794 (fchkp-first-field-has-own-bounds): New.
1795 (fchkp-narrow-bounds): New.
1796 (fchkp-narrow-to-innermost-array): New.
1797 (fchkp-optimize): New.
1798 (fchkp-use-fast-string-functions): New.
1799 (fchkp-use-nochk-string-functions): New.
1800 (fchkp-use-static-bounds): New.
1801 (fchkp-use-static-const-bounds): New.
1802 (fchkp-treat-zero-dynamic-size-as-infinite): New.
1803 (fchkp-check-read): New.
1804 (fchkp-check-write): New.
1805 (fchkp-store-bounds): New.
1806 (fchkp-instrument-calls): New.
1807 (fchkp-instrument-marked-only): New.
1808 (Wchkp): New.
1809 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
1810 (handle_bnd_legacy): New.
1811 (handle_bnd_instrument): New.
1812 (c_common_attribute_table): Add bnd_variable_size, bnd_legacy
1813 and bnd_instrument. Fix documentation.
1814 (c_common_format_attribute_table): Likewsie.
1815 * toplev.c: include tree-chkp.h.
1816 (process_options): Check Pointer Bounds Checker is supported.
1817 (compile_file): Add chkp_finish_file call.
1818 * ipa-cp.c (initialize_node_lattices): Use cgraph_local_p
1819 to handle instrumentation clones properly.
1820 (propagate_constants_accross_call): Do not propagate
1821 through instrumentation thunks.
1822 * ipa-pure-const.c (propagate_pure_const): Support
1823 IPA_REF_CHKP.
1824 * ipa-inline.c (early_inliner): Check edge has summary allocated.
1825 * ipa-split.c: Include tree-chkp.h.
1826 (find_retbnd): New.
1827 (split_part_set_ssa_name_p): New.
1828 (consider_split): Do not split retbnd and retval
1829 producers.
1830 (insert_bndret_call_after): new.
1831 (split_function): Propagate Pointer Bounds Checker
1832 instrumentation marks and handle returned bounds.
1833 * tree-ssa-sccvn.h (vn_reference_op_struct): Transform opcode
1834 into bit field and add with_bounds field.
1835 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Set
1836 with_bounds field for instrumented calls.
1837 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Restore
1838 CALL_WITH_BOUNDS_P flag for calls.
1839 * tree-ssa-ccp.c: Include tree-chkp.h.
1840 (insert_clobber_before_stack_restore): Handle
1841 BUILT_IN_CHKP_BNDRET calls.
1842 * tree-ssa-dce.c: Include tree-chkp.h.
1843 (propagate_necessity): For free call fed by alloc check
1844 bounds are also provided by the same alloc.
1845 (eliminate_unnecessary_stmts): Handle BUILT_IN_CHKP_BNDRET
1846 used by free calls.
1847 * tree-inline.c: Include tree-chkp.h.
1848 (declare_return_variable): Add arg holding
1849 returned bounds slot. Create and initialize returned bounds var.
1850 (remap_gimple_stmt): Handle returned bounds.
1851 Return sequence of statements instead of a single statement.
1852 (insert_init_stmt): Add declaration.
1853 (remap_gimple_seq): Adjust to new remap_gimple_stmt signature.
1854 (copy_bb): Adjust to changed return type of remap_gimple_stmt.
1855 Properly handle bounds in va_arg_pack and va_arg_pack_len.
1856 (expand_call_inline): Handle returned bounds. Add bounds copy
1857 for generated mem to mem assignments.
1858 * tree-inline.h (copy_body_data): Add fields retbnd and
1859 assign_stmts.
1860 * value-prof.c: Include tree-chkp.h.
1861 (gimple_ic): Support returned bounds.
1862 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
1863 with "chkp ctor" and "bnd_legacy" attributes.
1864 (symtab_remove_unreachable_nodes): Keep initial values for
1865 pointer bounds to be used for checks eliminations.
1866 (process_references): Handle IPA_REF_CHKP.
1867 (walk_polymorphic_call_targets): Likewise.
1868 * ipa-visibility.c (cgraph_externally_visible_p): Mark
1869 instrumented 'main' as externally visible.
1870 (function_and_variable_visibility): Filter instrumentation
1871 thunks.
1872 * cgraph.h (cgraph_thunk_info): Add add_pointer_bounds_args
1873 field.
1874 (cgraph_node): Add instrumented_version, orig_decl and
1875 instrumentation_clone fields.
1876 (symtab_node::get_alias_target): Allow IPA_REF_CHKP reference.
1877 (varpool_node): Add need_bounds_init field.
1878 (cgraph_local_p): New.
1879 * cgraph.c: Include tree-chkp.h.
1880 (cgraph_node::remove): Fix instrumented_version
1881 of the referenced node if any.
1882 (cgraph_node::dump): Dump instrumentation_clone and
1883 instrumented_version fields.
1884 (cgraph_node::verify_node): Check correctness of IPA_REF_CHKP
1885 references and instrumentation thunks.
1886 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Keep
1887 all not instrumented instrumentation clones alive.
1888 (cgraph_redirect_edge_call_stmt_to_callee): Support
1889 returned bounds.
1890 * cgraphbuild.c (rebuild_cgraph_edges): Rebuild IPA_REF_CHKP
1891 reference.
1892 (cgraph_rebuild_references): Likewise.
1893 * cgraphunit.c: Include tree-chkp.h.
1894 (assemble_thunks_and_aliases): Skip thunks calling instrumneted
1895 function version.
1896 (varpool_finalize_decl): Register statically initialized decls
1897 in Pointer Bounds Checker.
1898 (walk_polymorphic_call_targets): Do not mark generated call to
1899 __builtin_unreachable as with_bounds.
1900 (output_weakrefs): If there are both instrumented and original
1901 versions, output only one of them.
1902 (cgraph_node::expand_thunk): Set with_bounds flag
1903 for created call statement.
1904 * ipa-ref.h (ipa_ref_use): Add IPA_REF_CHKP.
1905 (ipa_ref): increase size of use field.
1906 * symtab.c (ipa_ref_use_name): Add element for IPA_REF_CHKP.
1907 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
1908 (ctor_for_folding): Do not fold constant bounds vars.
1909 * lto-streamer.h (LTO_minor_version): Change minor version from
1910 0 to 1.
1911 * lto-cgraph.c (compute_ltrans_boundary): Keep initial values for
1912 pointer bounds.
1913 (lto_output_node): Output instrumentation_clone,
1914 thunk.add_pointer_bounds_args and orig_decl field.
1915 (lto_output_ref): Adjust to new ipa_ref::use field size.
1916 (input_overwrite_node): Read instrumentation_clone field.
1917 (input_node): Read thunk.add_pointer_bounds_args and orig_decl
1918 fields.
1919 (input_ref): Adjust to new ipa_ref::use field size.
1920 (input_cgraph_1): Compute instrumented_version fields and restore
1921 IDENTIFIER_TRANSPARENT_ALIAS chains.
1922 (lto_output_varpool_node): Output
1923 need_bounds_init value.
1924 (input_varpool_node): Read need_bounds_init value.
1925 * lto-partition.c (add_symbol_to_partition_1): Keep original
1926 and instrumented versions together.
1927 (privatize_symbol_name): Restore transparent alias chain if required.
1928 (add_references_to_partition): Add references to pointer bounds vars.
1929 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
1930 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
1931 (gen_type_die_with_usage): Skip pointer bounds.
1932 (dwarf2out_global_decl): Likewise.
1933 (is_base_type): Support POINTER_BOUNDS_TYPE.
1934 (gen_formal_types_die): Skip pointer bounds.
1935 (gen_decl_die): Likewise.
1936 * var-tracking.c (vt_add_function_parameters): Skip
1937 bounds parameters.
1938 * ipa-icf.c (sem_function::merge): Do not merge when instrumentation
1939 thunk still exists.
1940 (sem_variable::merge): Reset need_bounds_init flag.
1941 * doc/extend.texi: Document Pointer Bounds Checker built-in functions
1942 and attributes.
1943 * doc/tm.texi.in (TARGET_LOAD_BOUNDS_FOR_ARG): New.
1944 (TARGET_STORE_BOUNDS_FOR_ARG): New.
1945 (TARGET_LOAD_RETURNED_BOUNDS): New.
1946 (TARGET_STORE_RETURNED_BOUNDS): New.
1947 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
1948 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
1949 (TARGET_BUILTIN_CHKP_FUNCTION): New.
1950 (TARGET_CHKP_BOUND_TYPE): New.
1951 (TARGET_CHKP_BOUND_MODE): New.
1952 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
1953 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
1954 * doc/tm.texi: Regenerated.
1955 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
1956 (BND32mode): New.
1957 (BND64mode): New.
1958 * doc/invoke.texi (-mmpx): New.
1959 (-mno-mpx): New.
1960 (chkp-max-ctor-size): New.
1961 * config/i386/constraints.md (w): New.
1962 (Ti): New.
1963 (Tb): New.
1964 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
1965 * config/i386/i386-modes.def (BND32): New.
1966 (BND64): New.
1967 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
1968 * config/i386/i386.c: Include tree-chkp.h, rtl-chkp.h, tree-iterator.h.
1969 (regclass_map): Add bound registers.
1970 (dbx_register_map): Likewise.
1971 (dbx64_register_map): Likewise.
1972 (svr4_dbx_register_map): Likewise.
1973 (isa_opts): Add -mmpx.
1974 (PTA_MPX): New.
1975 (ix86_option_override_internal): Support MPX ISA.
1976 (ix86_conditional_register_usage): Support bound registers.
1977 (ix86_code_end): Add MPX bnd prefix.
1978 (output_set_got): Likewise.
1979 (print_reg): Avoid prefixes for bound registers.
1980 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
1981 (ix86_print_operand_punct_valid_p): Likewise.
1982 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
1983 UNSPEC_BNDLDX_ADDR.
1984 (ix86_output_call_insn): Add MPX bnd prefix to branch instructions.
1985 (ix86_class_likely_spilled_p): Add bound regs support.
1986 (ix86_hard_regno_mode_ok): Likewise.
1987 (x86_order_regs_for_local_alloc): Likewise.
1988 (ix86_bnd_prefixed_insn_p): New.
1989 (ix86_builtins): Add
1990 IX86_BUILTIN_BNDMK, IX86_BUILTIN_BNDSTX,
1991 IX86_BUILTIN_BNDLDX, IX86_BUILTIN_BNDCL,
1992 IX86_BUILTIN_BNDCU, IX86_BUILTIN_BNDRET,
1993 IX86_BUILTIN_BNDNARROW, IX86_BUILTIN_BNDINT,
1994 IX86_BUILTIN_SIZEOF, IX86_BUILTIN_BNDLOWER,
1995 IX86_BUILTIN_BNDUPPER.
1996 (builtin_isa): Add leaf_p and nothrow_p fields.
1997 (def_builtin): Initialize leaf_p and nothrow_p.
1998 (ix86_add_new_builtins): Handle leaf_p and nothrow_p
1999 flags.
2000 (bdesc_mpx): New.
2001 (bdesc_mpx_const): New.
2002 (ix86_init_mpx_builtins): New.
2003 (ix86_init_builtins): Call ix86_init_mpx_builtins.
2004 (ix86_emit_cmove): New.
2005 (ix86_emit_move_max): New.
2006 (ix86_expand_builtin): Expand IX86_BUILTIN_BNDMK,
2007 IX86_BUILTIN_BNDSTX, IX86_BUILTIN_BNDLDX,
2008 IX86_BUILTIN_BNDCL, IX86_BUILTIN_BNDCU,
2009 IX86_BUILTIN_BNDRET, IX86_BUILTIN_BNDNARROW,
2010 IX86_BUILTIN_BNDINT, IX86_BUILTIN_SIZEOF,
2011 IX86_BUILTIN_BNDLOWER, IX86_BUILTIN_BNDUPPER.
2012 (ix86_function_value_bounds): New.
2013 (ix86_builtin_mpx_function): New.
2014 (ix86_get_arg_address_for_bt): New.
2015 (ix86_load_bounds): New.
2016 (ix86_store_bounds): New.
2017 (ix86_load_returned_bounds): New.
2018 (ix86_store_returned_bounds): New.
2019 (ix86_mpx_bound_mode): New.
2020 (ix86_make_bounds_constant): New.
2021 (ix86_initialize_bounds):
2022 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
2023 (TARGET_STORE_BOUNDS_FOR_ARG): New.
2024 (TARGET_LOAD_RETURNED_BOUNDS): New.
2025 (TARGET_STORE_RETURNED_BOUNDS): New.
2026 (TARGET_CHKP_BOUND_MODE): New.
2027 (TARGET_BUILTIN_CHKP_FUNCTION): New.
2028 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
2029 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
2030 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
2031 (ix86_option_override_internal): Do not
2032 support x32 with MPX.
2033 (init_cumulative_args): Init stdarg, bnd_regno, bnds_in_bt
2034 and force_bnd_pass.
2035 (function_arg_advance_32): Return number of used integer
2036 registers.
2037 (function_arg_advance_64): Likewise.
2038 (function_arg_advance_ms_64): Likewise.
2039 (ix86_function_arg_advance): Handle pointer bounds.
2040 (ix86_function_arg): Likewise.
2041 (ix86_function_value_regno_p): Mark fisrt bounds registers as
2042 possible function value.
2043 (ix86_function_value_1): Handle pointer bounds type/mode
2044 (ix86_return_in_memory): Likewise.
2045 (ix86_print_operand): Analyse insn to decide abounf "bnd" prefix.
2046 (ix86_expand_call): Generate returned bounds.
2047 (ix86_setup_incoming_vararg_bounds): New.
2048 (ix86_va_start): Initialize bounds for pointers in va_list.
2049 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
2050 * config/i386/i386.h (TARGET_MPX): New.
2051 (TARGET_MPX_P): New.
2052 (FIRST_PSEUDO_REGISTER): Fix to new value.
2053 (FIXED_REGISTERS): Add bound registers.
2054 (CALL_USED_REGISTERS): Likewise.
2055 (REG_ALLOC_ORDER): Likewise.
2056 (HARD_REGNO_NREGS): Likewise.
2057 (VALID_BND_REG_MODE): New.
2058 (FIRST_BND_REG): New.
2059 (LAST_BND_REG): New.
2060 (reg_class): Add BND_REGS.
2061 (REG_CLASS_NAMES): Likewise.
2062 (REG_CLASS_CONTENTS): Likewise.
2063 (BND_REGNO_P): New.
2064 (ANY_BND_REG_P): New.
2065 (BNDmode): New.
2066 (HI_REGISTER_NAMES): Add bound registers.
2067 (ix86_args): Add bnd_regno, bnds_in_bt, force_bnd_pass and
2068 stdarg fields.
2069 * config/i386/i386.md (UNSPEC_BNDMK): New.
2070 (UNSPEC_BNDMK_ADDR): New.
2071 (UNSPEC_BNDSTX): New.
2072 (UNSPEC_BNDLDX): New.
2073 (UNSPEC_BNDLDX_ADDR): New.
2074 (UNSPEC_BNDCL): New.
2075 (UNSPEC_BNDCU): New.
2076 (UNSPEC_BNDCN): New.
2077 (UNSPEC_MPX_FENCE): New.
2078 (UNSPEC_SIZEOF): New.
2079 (BND0_REG): New.
2080 (BND1_REG): New.
2081 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
2082 (length_immediate): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
2083 (prefix_rep): Check for bnd prefix.
2084 (prefix_0f): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
2085 (length_nobnd): New.
2086 (length): Use length_nobnd when specified.
2087 (memory): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
2088 (BND): New.
2089 (bnd_ptr): New.
2090 (BNDCHECK): New.
2091 (bndcheck): New.
2092 (*jcc_1): Add MPX bnd prefix.
2093 (*jcc_2): Likewise.
2094 (jump): Likewise.
2095 (*indirect_jump): Likewise.
2096 (*tablejump_1): Likewise.
2097 (simple_return_internal): Likewise.
2098 (simple_return_internal_long): Likewise.
2099 (simple_return_pop_internal): Likewise.
2100 (simple_return_indirect_internal): Likewise.
2101 (<mode>_mk): New.
2102 (*<mode>_mk): New.
2103 (mov<mode>): New.
2104 (*mov<mode>_internal_mpx): New.
2105 (<mode>_<bndcheck>): New.
2106 (*<mode>_<bndcheck>): New.
2107 (<mode>_ldx): New.
2108 (*<mode>_ldx): New.
2109 (<mode>_stx): New.
2110 (*<mode>_stx): New.
2111 move_size_reloc_<mode>): New.
2112 * config/i386/predicates.md (address_mpx_no_base_operand): New.
2113 (address_mpx_no_index_operand): New.
2114 (bnd_mem_operator): New.
2115 (symbol_operand): New.
2116 (x86_64_immediate_size_operand): New.
2117 * config/i386/i386.opt (mmpx): New.
2118 * config/i386/i386-builtin-types.def (BND): New.
2119 (ULONG): New.
2120 (BND_FTYPE_PCVOID_ULONG): New.
2121 (VOID_FTYPE_BND_PCVOID): New.
2122 (VOID_FTYPE_PCVOID_PCVOID_BND): New.
2123 (BND_FTYPE_PCVOID_PCVOID): New.
2124 (BND_FTYPE_PCVOID): New.
2125 (BND_FTYPE_BND_BND): New.
2126 (PVOID_FTYPE_PVOID_PVOID_ULONG): New.
2127 (PVOID_FTYPE_PCVOID_BND_ULONG): New.
2128 (ULONG_FTYPE_VOID): New.
2129 (PVOID_FTYPE_BND): New.
2130
2131 2014-11-05 Bernd Schmidt <bernds@codesourcery.com>
2132
2133 * passes.def (pass_compute_alignments, pass_duplicate_computed_gotos,
2134 pass_variable_tracking, pass_free_cfg, pass_machine_reorg,
2135 pass_cleanup_barriers, pass_delay_slots,
2136 pass_split_for_shorten_branches, pass_convert_to_eh_region_ranges,
2137 pass_shorten_branches, pass_est_nothrow_function_flags,
2138 pass_dwarf2_frame, pass_final): Move outside of pass_postreload and
2139 into pass_late_compilation.
2140 (pass_late_compilation): Add.
2141 * passes.c (pass_data_late_compilation, pass_late_compilation,
2142 make_pass_late_compilation): New.
2143 * timevar.def (TV_LATE_COMPILATION): New.
2144
2145 * target.def (omit_struct_return_reg): New data hook.
2146 * doc/tm.texi.in: Add @hook TARGET_OMIT_STRUCT_RETURN_REG.
2147 * doc/tm.texi: Regenerate.
2148 * function.c (expand_function_end): Use it.
2149
2150 * target.def (no_register_allocation): New data hook.
2151 * doc/tm.texi.in: Add @hook TARGET_NO_REGISTER_ALLOCATION.
2152 * doc/tm.texi: Regenerate.
2153 * ira.c (gate_ira): New function.
2154 (pass_data_ira): Set has_gate.
2155 (pass_ira): Add a gate function.
2156 (pass_data_reload): Likewise.
2157 (pass_reload): Add a gate function.
2158 (pass_ira): Use it.
2159 * reload1.c (eliminate_regs): If reg_eliminate_is NULL, assert that
2160 no register allocation happens on the target and return.
2161 * final.c (alter_subreg): Ensure register is not a pseudo before
2162 calling simplify_subreg.
2163 (output_operand): Assert that x isn't a pseudo only if doing
2164 register allocation.
2165
2166 * dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
2167 global vars.
2168
2169 * optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
2170 sorry if necessary.
2171
2172 2014-11-05 Alex Velenko <Alex.Velenko@arm.com>
2173
2174 * simplify-rtx.c (simplify_binary_operation_1): Div check added.
2175 * rtl.h (SUBREG_P): New macro added.
2176
2177 2014-11-05 Tejas Belagod <tejas.belagod@arm.com>
2178
2179 * config/aarch64/aarch64-builtins.c
2180 (aarch64_build_scalar_type): Remove.
2181 (aarch64_scalar_builtin_types, aarch64_simd_type,
2182 aarch64_simd_type, aarch64_mangle_builtin_scalar_type,
2183 aarch64_mangle_builtin_vector_type,
2184 aarch64_mangle_builtin_type, aarch64_simd_builtin_std_type,
2185 aarch64_lookup_simd_builtin_type, aarch64_simd_builtin_type,
2186 aarch64_init_simd_builtin_types,
2187 aarch64_init_simd_builtin_scalar_types): New.
2188 (aarch64_init_simd_builtins): Refactor.
2189 (aarch64_init_crc32_builtins): Fixup with qualifier.
2190 * config/aarch64/aarch64-protos.h
2191 (aarch64_mangle_builtin_type): Export.
2192 * config/aarch64/aarch64-simd-builtin-types.def: New.
2193 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Remove.
2194 (aarch64_mangle_type): Refactor.
2195 * config/aarch64/arm_neon.h: Declare vector types based on
2196 internal types.
2197 * config/aarch64/t-aarch64: Update dependency.
2198
2199 2014-11-04 Pat Haugen <pthaugen@us.ibm.com>
2200
2201 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl,
2202 atomic_update_decl): Guard declaration with #ifdef.
2203
2204 2014-11-04 Marek Polacek <polacek@redhat.com>
2205
2206 * sanopt.c (sanopt_optimize_walker): Remove unused variables.
2207
2208 2014-11-04 Marek Polacek <polacek@redhat.com>
2209
2210 * Makefile.in (OBJS): Add sanopt.o.
2211 (GTFILES): Add sanopt.c.
2212 * asan.h (asan_expand_check_ifn): Declare.
2213 * asan.c (asan_expand_check_ifn): No longer static.
2214 (class pass_sanopt, pass_sanopt::execute, make_pass_sanopt): Move...
2215 * sanopt.c: ...here. New file.
2216
2217 2014-11-04 Jiong Wang <jiong.wang@arm.com>
2218 2014-11-04 Wilco Dijkstra <wilco.dijkstra@arm.com>
2219
2220 PR target/63293
2221 * config/aarch64/aarch64.c (aarch64_expand_epiloue): Add barriers before
2222 stack adjustment.
2223
2224 2014-11-04 Bernd Schmidt <bernds@codesourcery.com>
2225
2226 * combine.c (combine_simplify_rtx): In STORE_FLAG_VALUE == -1 case,
2227 also verify that mode is equal to the mode of op0.
2228
2229 * bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn,
2230 emit into a sequence instead.
2231
2232 2014-11-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2233
2234 * config/sh/sh.c (emit_fpu_switch): Drop unused automatic variable.
2235
2236 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
2237
2238 config/arm/neon.md (reduc_smin_<mode> *2): Rename to...
2239 (reduc_smin_scal_<mode> *2): ...this; extract scalar result.
2240 (reduc_smax_<mode> *2): Rename to...
2241 (reduc_smax_scal_<mode> *2): ...this; extract scalar result.
2242 (reduc_umin_<mode> *2): Rename to...
2243 (reduc_umin_scal_<mode> *2): ...this; extract scalar result.
2244 (reduc_umax_<mode> *2): Rename to...
2245 (reduc_umax_scal_<mode> *2): ...this; extract scalar result.
2246
2247 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
2248
2249 config/arm/neon.md (reduc_plus_*): Rename to...
2250 (reduc_plus_scal_*): ...this; reduce to temp and extract scalar result.
2251
2252 2014-11-04 Michael Collison <michael.collison@linaro.org>
2253
2254 * config/aarch64/iterators.md (lconst_atomic): New mode attribute
2255 to support constraints for CONST_INT in atomic operations.
2256 * config/aarch64/atomics.md
2257 (atomic_<atomic_optab><mode>): Use lconst_atomic constraint.
2258 (atomic_nand<mode>): Likewise.
2259 (atomic_fetch_<atomic_optab><mode>): Likewise.
2260 (atomic_fetch_nand<mode>): Likewise.
2261 (atomic_<atomic_optab>_fetch<mode>): Likewise.
2262 (atomic_nand_fetch<mode>): Likewise.
2263
2264 2014-11-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2265
2266 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in definition
2267 of __ARM_FEATURE_IDIV.
2268
2269 2014-11-04 Marek Polacek <polacek@redhat.com>
2270
2271 * ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.
2272
2273 2014-11-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2274
2275 * config/rx/rx.c (rx_handle_func_attribute): Mark unused argument.
2276
2277 2014-11-04 Zhenqiang Chen <zhenqiang.chen@arm.com>
2278
2279 Revert:
2280 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
2281 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
2282 Allow CC mode if HAVE_cbranchcc4.
2283
2284 2014-11-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
2285
2286 * godump.c (go_format_type): Rewrite RECORD_TYPE nad UNION_TYPE support
2287 with -fdump-go-spec. Anonymous substructures are now flattened and
2288 replaced by their fields (record) or the first named, non-bitfield
2289 field (union).
2290
2291 2014-11-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2292
2293 * input.c (expand_location_to_spelling_point): Fix typo.
2294 (expansion_point_location_if_in_system_header): Fix comment.
2295
2296 2014-11-03 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2297
2298 * config/avr/gen-avr-mmcu-specs.c: Remove unnecessary format specifier.
2299
2300 2014-11-03 Richard Biener <rguenther@suse.de>
2301
2302 * tree-eh.c (operation_could_trap_helper_p): Handle conversions
2303 like ordinary operations.
2304 * gimplify.c (gimplify_conversion): Gimplify CONVERT_EXPR
2305 as NOP_EXPR.
2306
2307 2014-11-03 Joseph Myers <joseph@codesourcery.com>
2308
2309 * configure.ac (TARGET_GLIBC_MAJOR, TARGET_GLIBC_MINOR): Define
2310 macros.
2311 * configure, config.h.in: Regenerate.
2312 * config/rs6000/linux.h [TARGET_GLIBC_MAJOR > 2 ||
2313 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
2314 (RS6000_GLIBC_ATOMIC_FENV): New macro.
2315 * config/rs6000/linux64.h [TARGET_GLIBC_MAJOR > 2 ||
2316 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
2317 (RS6000_GLIBC_ATOMIC_FENV): New macro.
2318 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl)
2319 (atomic_update_decl): New static variables.
2320 (rs6000_atomic_assign_expand_fenv) [RS6000_GLIBC_ATOMIC_FENV]:
2321 Generate calls to __atomic_feholdexcept, __atomic_feclearexcept
2322 and __atomic_feupdateenv for soft-float and no-FPRs.
2323
2324 2014-11-03 Richard Biener <rguenther@suse.de>
2325
2326 * match.pd: Add two abs patterns. Announce tree_expr_nonnegative_p.
2327 Also drop bogus FLOAT_EXPR and FIX_TRUNC_EXPR.
2328 * fold-const.c (fold_unary_loc): Remove them here.
2329 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
2330 * gimple-fold.c (fold_gimple_assign): Remove now obsolete
2331 GIMPLE_UNARY_RHS case.
2332 (gimple_fold_stmt_to_constant_1): Likewise.
2333 (replace_stmt_with_simplification): Fix inverted comparison.
2334
2335 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
2336
2337 PR tree-optimization/60770
2338 * tree-into-ssa.c (rewrite_update_stmt): Return whether the
2339 statement should be removed.
2340 (maybe_register_def): Likewise. Replace clobbers with default
2341 definitions.
2342 (rewrite_dom_walker::before_dom_children): Remove statement if
2343 rewrite_update_stmt says so.
2344 * tree-ssa-live.c: Include tree-ssa.h.
2345 (set_var_live_on_entry): Do not mark undefined variables as live.
2346 (verify_live_on_entry): Do not check undefined variables.
2347 * tree-ssa.h (ssa_undefined_value_p): New parameter for the case
2348 of partially undefined variables.
2349 * tree-ssa.c (ssa_undefined_value_p): Likewise.
2350 (execute_update_addresses_taken): Do not drop clobbers.
2351
2352 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
2353
2354 PR tree-optimization/63666
2355 * fold-const.c: Include "optabs.h".
2356 (fold_ternary_loc) <VEC_PERM_EXPR>: Avoid canonicalizing a
2357 can_vec_perm_p permutation to one that is not.
2358
2359 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
2360
2361 * ifcvt.c (noce_try_store_flag_mask): Check rtx cost.
2362
2363 2014-11-03 Andrew Pinski <apinski@cavium.com>
2364
2365 * config/mips/mips-cpus.def (octeon3): New cpu.
2366 * config/mips/mips.c (mips_rtx_cost_data): Add octeon3.
2367 (mips_print_operand <case 'T', case 't'>): Fix a bug as the mode
2368 of the comparison no longer matches mode of the operands.
2369 (mips_issue_rate): Handle PROCESSOR_OCTEON3.
2370 * config/mips/mips.h (TARGET_OCTEON): Add Octeon3.
2371 (TARGET_OCTEON2): Likewise.
2372 (TUNE_OCTEON): Add Octeon3.
2373 * config/mips/mips.md (processor): Add octeon3.
2374 * config/mips/octeon.md (octeon_fpu): New automaton and cpu_unit.
2375 (octeon_arith): Add octeon3.
2376 (octeon_condmove): Remove.
2377 (octeon_condmove_o1): New reservation.
2378 (octeon_condmove_o2): New reservation.
2379 (octeon_condmove_o3_int_on_cc): New reservation.
2380 (octeon_load_o2): Add octeon3.
2381 (octeon_cop_o2): Likewise.
2382 (octeon_store): Likewise.
2383 (octeon_brj_o2): Likewise.
2384 (octeon_imul3_o2): Likewise.
2385 (octeon_imul_o2): Likewise.
2386 (octeon_mfhilo_o2): Likewise.
2387 (octeon_imadd_o2): Likewise.
2388 (octeon_idiv_o2_si): Likewise.
2389 (octeon_idiv_o2_di): Likewise.
2390 (octeon_fpu): Add to the automaton.
2391 (octeon_fpu): New cpu unit.
2392 (octeon_condmove_o2): Check for non floating point modes.
2393 (octeon_load_o2): Add prefetchx.
2394 (octeon_cop_o2): Don't check for octeon3.
2395 (octeon3_faddsubcvt): New reservation.
2396 (octeon3_fmul): Likewise.
2397 (octeon3_fmadd): Likewise.
2398 (octeon3_div_sf): Likewise.
2399 (octeon3_div_df): Likewise.
2400 (octeon3_sqrt_sf): Likewise.
2401 (octeon3_sqrt_df): Likewise.
2402 (octeon3_rsqrt_sf): Likewise.
2403 (octeon3_rsqrt_df): Likewise.
2404 (octeon3_fabsnegmov): Likewise.
2405 (octeon_fcond): Likewise.
2406 (octeon_fcondmov): Likewise.
2407 (octeon_fpmtc1): Likewise.
2408 (octeon_fpmfc1): Likewise.
2409 (octeon_fpload): Likewise.
2410 (octeon_fpstore): Likewise.
2411 * config/mips/mips-tables.opt: Regenerate.
2412 * doc/invoke.texi (-march=@var{arch}): Add octeon3.
2413
2414 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
2415
2416 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
2417 Allow CC mode if HAVE_cbranchcc4.
2418
2419 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
2420
2421 * config/arc/arc.c (write_ext_corereg_1): Delete.
2422 (arc_write_ext_corereg): Use FOR_EACH_SUBRTX.
2423
2424 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
2425
2426 * config/arc/arc.c (arc600_corereg_hazard_1): Delete.
2427 (arc600_corereg_hazard): Use FOR_EACH_SUBRTX.
2428
2429 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
2430
2431 * config/arc/arc.c (arc_rewrite_small_data_p): Constify argument.
2432 (small_data_pattern_1): Delete.
2433 (small_data_pattern): Use FOR_EACH_SUBRTX.
2434
2435 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
2436
2437 * config/arc/arc.c: Include rtl-iter.h.
2438 (arc_rewrite_small_data_1): Delete.
2439 (arc_rewrite_small_data): Use FOR_EACH_SUBRTX_PTR.
2440
2441 2014-11-02 Michael Collison <michael.collison@linaro.org>
2442
2443 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update
2444 to support vector modes.
2445 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
2446
2447 2014-11-01 Andrew MacLeod <amacleod@redhat,com>
2448
2449 * optabs.h: Flatten insn-codes.h to source files. Move some prototypes
2450 and structs to genopinit.c. Adjust protyoptypes to match optabs.c.
2451 * genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
2452 * optabs.c: (gen_move_insn): Move to expr.c.
2453 * expr.h: Move protypes and enums to optabs.h.
2454 * expr.c: (gen_move_insn): Relocate from optabs.c.
2455 * genemit.c (main): Include insn-codes.h.
2456 * gengtype.c (open_base_files): Include insn-codes.h.
2457 * asan.c: Include insn-codes.h.
2458 * bb-reorder.c: Ditto.
2459 * builtins.c: Ditto.
2460 * calls.c: Ditto.
2461 * cfgexpand.c: Ditto.
2462 * cilk-common.c: Ditto.
2463 * combine.c: Ditto.
2464 * dojump.c: Ditto.
2465 * dse.c: Ditto.
2466 * except.c: Ditto.
2467 * explow.c: Ditto.
2468 * expmed.c: Ditto.
2469 * function.c: Ditto.
2470 * ifcvt.c: Ditto.
2471 * internal-fn.c: Ditto.
2472 * loop-unroll.c: Ditto.
2473 * lra.c: Ditto.
2474 * modulo-sched.c: Ditto.
2475 * omp-low.c: Ditto.
2476 * postreload.c: Ditto.
2477 * ree.c: Ditto.
2478 * reload.c: Ditto.
2479 * reload1.c: Ditto.
2480 * shrink-wrap.c: Ditto.
2481 * simplify-rtx.c: Ditto.
2482 * stmt.c: Ditto.
2483 * target-globals.c: Ditto.
2484 * targhooks.c: Ditto.
2485 * toplev.c: Ditto.
2486 * tree-if-conv.c: Ditto.
2487 * tree-ssa-forwprop.c: Ditto.
2488 * tree-ssa-loop-prefetch.c: Ditto.
2489 * tree-ssa-math-opts.c: Ditto.
2490 * tree-ssa-phiopt.c: Ditto.
2491 * tree-ssa-reassoc.c: Ditto.
2492 * tree-switch-conversion.c: Ditto.
2493 * tree-vect-data-refs.c: Ditto.
2494 * tree-vect-generic.c: Ditto.
2495 * tree-vect-loop.c: Ditto.
2496 * tree-vect-patterns.c: Ditto.
2497 * tree-vect-slp.c: Ditto.
2498 * tree-vect-stmts.c: Ditto.
2499 * tree-vrp.c: Ditto.
2500 * value-prof.c: Ditto.
2501 * config/aarch64/aarch64-builtins.c: Ditto.
2502 * config/alpha/alpha.c: Ditto.
2503 * config/arm/arm.c: Ditto.
2504 * config/cris/cris.c: Ditto.
2505 * config/epiphany/epiphany.c: Ditto.
2506 * config/frv/frv.c: Ditto.
2507 * config/h8300/h8300.c: Ditto.
2508 * config/ia64/ia64.c: Ditto.
2509 * config/iq2000/iq2000.c: Ditto.
2510 * config/m32c/m32c.c: Ditto.
2511 * config/mep/mep.c: Ditto.
2512 * config/microblaze/microblaze.c: Ditto.
2513 * config/mips/mips.c: Ditto.
2514 * config/mn10300/mn10300.c: Ditto.
2515 * config/moxie/moxie.c: Ditto.
2516 * config/msp430/msp430.c: Ditto.
2517 * config/nios2/nios2.c: Ditto.
2518 * config/pa/pa.c: Ditto.
2519 * config/rl78/rl78.c: Ditto.
2520 * config/rs6000/rs6000.c: Ditto.
2521 * config/rx/rx.c: Ditto.
2522 * config/s390/s390.c: Ditto.
2523 * config/sh/sh.c: Ditto.
2524 * config/sh/sh_treg_combine.cc: Ditto.
2525 * config/spu/spu.c: Ditto.
2526 * config/stormy16/stormy16.c: Ditto.
2527 * config/tilegx/mul-tables.c: Ditto.
2528 * config/tilegx/tilegx.c: Ditto.
2529 * config/tilepro/mul-tables.c: Ditto.
2530 * config/tilepro/tilepro.c: Ditto.
2531 * config/vax/vax.c: Ditto.
2532
2533 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
2534
2535 * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove.
2536 (CLEAR_BY_PIECES_P): Likewise.
2537 (SET_BY_PIECES_P): Likewise.
2538 (STORE_BY_PIECES_P): Likewise.
2539 * doc/tm.texi: Regenerate.
2540 * system.h: Poison MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P,
2541 SET_BY_PIECES_P, STORE_BY_PIECES_P.
2542 * expr.c (MOVE_BY_PIECES_P): Remove.
2543 (CLEAR_BY_PIECES_P): Likewise.
2544 (SET_BY_PIECES_P): Likewise.
2545 (STORE_BY_PIECES_P): Likewise.
2546 (can_move_by_pieces): Rewrite in terms of
2547 targetm.use_by_pieces_infrastructure_p.
2548 (emit_block_move_hints): Likewise.
2549 (can_store_by_pieces): Likewise.
2550 (store_by_pieces): Likewise.
2551 (clear_storage_hints): Likewise.
2552 (emit_push_insn): Likewise.
2553 (expand_constructor): Likewise.
2554
2555 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
2556
2557 * config/aarch64/aarch64.c
2558 (aarch64_use_by_pieces_infrastructre_p): New.
2559 (TARGET_USE_BY_PIECES_INFRASTRUCTURE): Likewise.
2560 * config/aarch64/aarch64.h (STORE_BY_PIECES_P): Delete.
2561
2562 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
2563
2564 * config/mips/mips.h (MOVE_BY_PIECES_P): Remove.
2565 (STORE_BY_PIECES_P): Likewise.
2566 * config/mips/mips.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
2567 (mips_move_by_pieces_p): Rename to...
2568 (mips_use_by_pieces_infrastructure_p): ...this, use new hook
2569 parameters, use the default hook implementation as a
2570 fall-back.
2571
2572 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
2573
2574 * config/sh/sh.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
2575 (sh_use_by_pieces_infrastructure_p): Likewise.
2576 * config/sh/sh.h (MOVE_BY_PIECES_P): Remove.
2577 (STORE_BY_PIECES_P): Likewise.
2578 (SET_BY_PIECES_P): Likewise.
2579
2580 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
2581
2582 * config/arc/arc.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
2583 (arc_use_by_pieces_infrastructure_p): Likewise.
2584 * confir/arc/arc.h (MOVE_BY_PIECES_P): Delete.
2585 (CAN_MOVE_BY_PIECES): Likewise.
2586
2587 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
2588
2589 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p): New.
2590 (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Likewise.
2591 * config/s390/s390.h (MOVE_BY_PIECES_P): Remove.
2592 (CLEAR_BY_PIECES): Likewise.
2593 (SET_BY_PIECES): Likewise.
2594 (STORE_BY_PIECES): Likewise.
2595
2596 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
2597
2598 * target.def (use_by_pieces_infrastructure_p): New.
2599 * doc/tm.texi.in (MOVE_BY_PIECES_P): Describe that this macro
2600 is deprecated.
2601 (STORE_BY_PIECES_P): Likewise.
2602 (CLEAR_BY_PIECES_P): Likewise.
2603 (SET_BY_PIECES_P): Likewise.
2604 (TARGET_MOVE_BY_PIECES_PROFITABLE_P): Add hook.
2605 * doc/tm.texi: Regenerate.
2606 * expr.c (MOVE_BY_PIECES_P): Rewrite in terms of
2607 TARGET_USE_BY_PIECES_INFRASTRUCTURE_P.
2608 (STORE_BY_PIECES_P): Likewise.
2609 (CLEAR_BY_PIECES_P): Likewise.
2610 (SET_BY_PIECES_P): Likewise.
2611 (STORE_MAX_PIECES): Move to...
2612 * defaults.h (STORE_MAX_PIECES): ...here.
2613 * targhooks.c (get_move_ratio): New.
2614 (default_use_by_pieces_infrastructure_p): Likewise.
2615 * targhooks.h (default_use_by_pieces_infrastructure_p): New.
2616 * target.h (by_pieces_operation): New.
2617
2618 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
2619
2620 PR target/63702
2621 * config/i386/i386.c (ix86_expand_args_builtin): Remove extra
2622 assignment to 'nargs' variable.
2623
2624 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
2625
2626 PR target/63620
2627 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
2628 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
2629 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
2630 be reloaded through memory.
2631 (*pushxf): Ditto.
2632 (*pushdf): Ditto.
2633
2634 2014-10-31 Jakub Jelinek <jakub@redhat.com>
2635
2636 PR rtl-optimization/63659
2637 * ree.c (update_reg_equal_equiv_notes): New function.
2638 (combine_set_extension, transform_ifelse): Use it.
2639
2640 2014-10-31 Jeff Law <law@redhat.com>
2641
2642 * doc/contrib.texi: Add contribution notes for Balaji Iyer (Cilk+)
2643 and Jonny Grant (collect2).
2644
2645 2014-10-31 Richard Biener <rguenther@suse.de>
2646
2647 * builtins.c (fold_builtin_atomic_always_lock_free): Use
2648 CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where
2649 approprate.
2650 (fold_builtin_expect): Likewise.
2651 (integer_valued_real_p): Likewise.
2652 * cfgexpand.c (expand_debug_expr): Likewise.
2653 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Likewise.
2654 (find_foldable_builtin_expect): Likewise.
2655 * trans-mem.c (thread_private_new_memory): Likewise.
2656 * tree-affine.c (aff_combination_expand): Likewise.
2657 * tree-data-ref.c (initialize_matrix_A): Likewise.
2658 * tree-inline.c (copy_bb): Likewise.
2659 * tree-pretty-print.c (dump_function_name): Likewise.
2660 (print_call_name): Likewise.
2661 * tree-ssa-forwprop.c (constant_pointer_difference): Likewise.
2662 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise.
2663 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
2664 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Likewise.
2665 (vect_recog_widen_mult_pattern): Likewise.
2666 (vect_operation_fits_smaller_type): Likewise.
2667 * tree-vrp.c (find_assert_locations_1): Likewise.
2668 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
2669 converts to NOP_EXPR.
2670
2671 2014-10-31 Richard Biener <rguenther@suse.de>
2672
2673 * genmatch.c (expr::gen_transform): Use NOP_EXPRs instead of
2674 CONVERT_EXPRs in generated code.
2675 (dt_simplify::gen): Likewise.
2676
2677 2014-10-31 Evgeny Stupachenko <evstupac@gmail.com>
2678
2679 PR target/63534
2680 * config/i386/i386.c (ix86_init_pic_reg): Emit SET_GOT to
2681 REAL_PIC_OFFSET_TABLE_REGNUM for mcount profiling.
2682 (ix86_save_reg): Save REAL_PIC_OFFSET_TABLE_REGNUM when profiling
2683 using mcount in 32bit PIC mode.
2684 (ix86_elim_entry_set_got): New.
2685 (ix86_expand_prologue): For the mcount profiling emit new SET_GOT
2686 in PROLOGUE, delete initial if possible.
2687
2688 2014-10-31 Eric Botcazou <ebotcazou@adacore.com>
2689
2690 * ipa-inline.c (want_inline_small_function_p): Fix typo and formatting.
2691 (want_inline_function_to_all_callers_p): Fix formatting and simplify.
2692
2693 2014-10-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
2694
2695 PR tree-optimization/63259
2696 * tree-ssa-math-opts.c (bswap_replace): Replace expression by a
2697 rotation left if it is a 16 bit byte swap.
2698 (pass_optimize_bswap::execute): Also consider bswap in LROTATE_EXPR
2699 and RROTATE_EXPR statements if it is a byte rotation.
2700
2701 2014-10-31 Jakub Jelinek <jakub@redhat.com>
2702
2703 PR sanitizer/63697
2704 * tree-vrp.c (simplify_internal_call_using_ranges): For subcode ==
2705 MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min
2706 instead of vr0.min - vr1.min and vr0.max - vr1.max.
2707
2708 2014-10-31 Max Ostapenko <m.ostapenko@partner.samsung.com>
2709
2710 PR ipa/63696
2711 * ipa-icf.c (sem_function::~sem_function): Change free to delete to avoid
2712 alloc-dealloc mismatch with new, called in ipa_icf::sem_function::init.
2713
2714 2014-10-30 Felix Yang <felix.yang@huawei.com>
2715
2716 * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro.
2717 * config/xtensa/xtensa.c: Include dumpfile.h and hw-doloop.h.
2718 (xtensa_reorg, xtensa_reorg_loops): New.
2719 (xtensa_can_use_doloop_p, xtensa_invalid_within_doloop): New.
2720 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg): New.
2721 (xtensa_emit_loop_end): Emit the zero-overhead loop end label.
2722 (xtensa_doloop_hooks): Define.
2723 * config/xtensa/xtensa.md (doloop_end, loop_end): New
2724 (zero_cost_loop_start): Rewritten.
2725 (zero_cost_loop_end): Likewise.
2726
2727 2014-10-30 Steve Ellcey <sellcey@imgtec.com>
2728
2729 * config.gcc (mips*-*-linux*): Combine 32 and 64 bit cases.
2730
2731 2014-10-30 Richard Biener <rguenther@suse.de>
2732
2733 * genmatch.c: Remove <map>, <utility> and <string> includes.
2734 Include ggc.h and hash-map.h.
2735 (ggc_internal_cleared_alloc): Provide stub definition.
2736 (ggc_free): Likewise.
2737 (struct capture_id_map_hasher): New traits for hash_map.
2738 (cid_map_t): New typedef.
2739 (everywhere else): Replace std::map use with cid_map_t.
2740 * hash-map.h (hash_map::elements): New member function.
2741 * Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
2742 hash-map.h and $(GGC_H) as dependency.
2743
2744 2014-10-30 Richard Biener <rguenther@suse.de>
2745
2746 * genmatch.c (capture_info::walk_c_expr): Ignore capture
2747 uses inside TREE_TYPE ().
2748 * gimple-ssa-strength-reduction.c (stmt_cost): Use CASE_CONVERT.
2749 (find_candidates_dom_walker::before_dom_children): Likewise.
2750 (replace_mult_candidate): Use CONVERT_EXPR_CODE_P.
2751 (replace_profitable_candidates): Likewise.
2752 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
2753 CONVERT_EXPR_CODE_P to CONVERT_EXPR.
2754 * convert.c (convert_to_integer): Use CASE_CONVERT.
2755
2756 2014-10-30 Richard Biener <rguenther@suse.de>
2757
2758 * match.pd: Implement more patterns that simplify to a single value.
2759 * fold-const.c (fold_binary_loc): Remove them here.
2760 * tree-ssa-forwprop.c (simplify_bitwise_binary): Likewise.
2761 (fwprop_ssa_val): Remove restriction on single uses.
2762
2763 2014-10-30 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2764
2765 * config/avr/driver-avr.c (avr_set_current_device): Remove.
2766
2767 2014-10-30 Martin Liska <mliska@suse.cz>
2768
2769 PR ipa/63574
2770 PR ipa/63664
2771 * ipa-icf-gimple.c (func_checker::parse_labels): Missing comment added.
2772 (func_checker::compare_gimple_label): Simlified comparison introduced.
2773 * ipa-icf-gimple.h: Missing comment added.
2774
2775 2014-10-30 Jeff Law <law@redhat.com>
2776
2777 * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen
2778 argument from rtx to rtx_insn *.
2779 (compute_movmem_length, compute_clrmem_length): Likewise.
2780 (copy_fp_args, length_fp_args): Likewise.
2781 * config/pa/pa.c (legitimize_pic_address): Promote local variable
2782 "insn" from rtx to rtx_insn *.
2783 (legitimize_tls_address, pa_emit_move_sequence): Likewise.
2784 (pa_output_block_move, store_reg, store_reg_modify): Likewise.
2785 (set_reg_plus_d, pa_expand_prologue, hppa_profile_hook): Likewise.
2786 (branch_to_delay_slot_p, branch_needs_nop_p, use_skip_p): Likewise.
2787 (pa_output_arg_descriptor): Strengthen argument to an rtx_insn *.
2788 (compute_movmem_length, compute_clrmem_length): Likewise.
2789 (copy_fp-args, length_fp_args): Likewise.
2790
2791 2014-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2792
2793 * config/arm/arm.h (MACHMODE): Treat machine_mode as a
2794 scalar typedef.
2795 (CUMULATIVE_ARGS): Guard against target includes.
2796 (machine_function): Likewise.
2797
2798 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2799
2800 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
2801 recog state after aarch64_prev_real_insn call.
2802
2803 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2804
2805 * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.
2806
2807 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2808
2809 * config/arm/arm.h (MACHMODE): Add 'enum' to machine_mode.
2810 (struct machine_function): Gate definition on
2811 !defined(USED_FOR_TARGET).
2812
2813 2014-10-29 DJ Delorie <dj@redhat.com>
2814
2815 * expmed.c (strict_volatile_bitfield_p): Fix off-by-one error.
2816
2817 2014-10-29 Martin Liska <mliska@suse.cz>
2818
2819 PR ipa/63587
2820 * cgraphunit.c (cgraph_node::expand_thunk): Only VAR_DECLs are put
2821 to local declarations.
2822 * function.c (add_local_decl): Implementation moved from header
2823 file, assert introduced for tree type.
2824 * function.h: Likewise.
2825
2826 2014-10-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
2827
2828 * godump.c (go_format_type): Represent "float _Complex" and
2829 "double _Complex" as complex64 or complex128 in Go, as appropriate.
2830
2831 2014-10-29 Richard Biener <rguenther@suse.de>
2832
2833 * match.pd: Implement a first set of conversion patterns.
2834 * fold-const.c (fold_unary_loc): Remove them here.
2835 * tree-ssa-forwprop.c (simplify_vce): Remove.
2836 (pass_forwprop::execute): Do not call simplify_vce.
2837
2838 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2839
2840 * addresses.h, alias.c, asan.c, auto-inc-dec.c, bt-load.c, builtins.c,
2841 builtins.h, caller-save.c, calls.c, calls.h, cfgexpand.c, cfgloop.h,
2842 cfgrtl.c, combine.c, compare-elim.c, config/aarch64/aarch64-builtins.c,
2843 config/aarch64/aarch64-protos.h, config/aarch64/aarch64-simd.md,
2844 config/aarch64/aarch64.c, config/aarch64/aarch64.h,
2845 config/aarch64/aarch64.md, config/alpha/alpha-protos.h,
2846 config/alpha/alpha.c, config/arc/arc-protos.h, config/arc/arc.c,
2847 config/arc/arc.h, config/arc/predicates.md,
2848 config/arm/aarch-common-protos.h, config/arm/aarch-common.c,
2849 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
2850 config/arm/arm.md, config/arm/neon.md, config/arm/thumb2.md,
2851 config/avr/avr-log.c, config/avr/avr-protos.h, config/avr/avr.c,
2852 config/avr/avr.md, config/bfin/bfin-protos.h, config/bfin/bfin.c,
2853 config/c6x/c6x-protos.h, config/c6x/c6x.c, config/c6x/c6x.md,
2854 config/cr16/cr16-protos.h, config/cr16/cr16.c,
2855 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.md,
2856 config/darwin-protos.h, config/darwin.c,
2857 config/epiphany/epiphany-protos.h, config/epiphany/epiphany.c,
2858 config/epiphany/epiphany.md, config/fr30/fr30.c,
2859 config/frv/frv-protos.h, config/frv/frv.c, config/frv/predicates.md,
2860 config/h8300/h8300-protos.h, config/h8300/h8300.c,
2861 config/i386/i386-builtin-types.awk, config/i386/i386-protos.h,
2862 config/i386/i386.c, config/i386/i386.md, config/i386/predicates.md,
2863 config/i386/sse.md, config/i386/sync.md, config/ia64/ia64-protos.h,
2864 config/ia64/ia64.c, config/iq2000/iq2000-protos.h,
2865 config/iq2000/iq2000.c, config/iq2000/iq2000.md,
2866 config/lm32/lm32-protos.h, config/lm32/lm32.c,
2867 config/m32c/m32c-protos.h, config/m32c/m32c.c,
2868 config/m32r/m32r-protos.h, config/m32r/m32r.c,
2869 config/m68k/m68k-protos.h, config/m68k/m68k.c,
2870 config/mcore/mcore-protos.h, config/mcore/mcore.c,
2871 config/mcore/mcore.md, config/mep/mep-protos.h, config/mep/mep.c,
2872 config/microblaze/microblaze-protos.h, config/microblaze/microblaze.c,
2873 config/mips/mips-protos.h, config/mips/mips.c,
2874 config/mmix/mmix-protos.h, config/mmix/mmix.c,
2875 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
2876 config/moxie/moxie.c, config/msp430/msp430-protos.h,
2877 config/msp430/msp430.c, config/nds32/nds32-cost.c,
2878 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
2879 config/nds32/nds32-protos.h, config/nds32/nds32.c,
2880 config/nios2/nios2-protos.h, config/nios2/nios2.c,
2881 config/pa/pa-protos.h, config/pa/pa.c, config/pdp11/pdp11-protos.h,
2882 config/pdp11/pdp11.c, config/rl78/rl78-protos.h, config/rl78/rl78.c,
2883 config/rs6000/altivec.md, config/rs6000/rs6000-c.c,
2884 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
2885 config/rs6000/rs6000.h, config/rx/rx-protos.h, config/rx/rx.c,
2886 config/s390/predicates.md, config/s390/s390-protos.h,
2887 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
2888 config/sh/predicates.md, config/sh/sh-protos.h, config/sh/sh.c,
2889 config/sh/sh.md, config/sparc/predicates.md,
2890 config/sparc/sparc-protos.h, config/sparc/sparc.c,
2891 config/sparc/sparc.md, config/spu/spu-protos.h, config/spu/spu.c,
2892 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
2893 config/tilegx/tilegx-protos.h, config/tilegx/tilegx.c,
2894 config/tilegx/tilegx.md, config/tilepro/tilepro-protos.h,
2895 config/tilepro/tilepro.c, config/v850/v850-protos.h,
2896 config/v850/v850.c, config/v850/v850.md, config/vax/vax-protos.h,
2897 config/vax/vax.c, config/vms/vms-c.c, config/xtensa/xtensa-protos.h,
2898 config/xtensa/xtensa.c, coverage.c, cprop.c, cse.c, cselib.c, cselib.h,
2899 dbxout.c, ddg.c, df-problems.c, dfp.c, dfp.h, doc/md.texi,
2900 doc/rtl.texi, doc/tm.texi, doc/tm.texi.in, dojump.c, dse.c,
2901 dwarf2cfi.c, dwarf2out.c, dwarf2out.h, emit-rtl.c, emit-rtl.h,
2902 except.c, explow.c, expmed.c, expmed.h, expr.c, expr.h, final.c,
2903 fixed-value.c, fixed-value.h, fold-const.c, function.c, function.h,
2904 fwprop.c, gcse.c, gengenrtl.c, genmodes.c, genopinit.c, genoutput.c,
2905 genpreds.c, genrecog.c, gensupport.c, gimple-ssa-strength-reduction.c,
2906 graphite-clast-to-gimple.c, haifa-sched.c, hooks.c, hooks.h, ifcvt.c,
2907 internal-fn.c, ira-build.c, ira-color.c, ira-conflicts.c, ira-costs.c,
2908 ira-emit.c, ira-int.h, ira-lives.c, ira.c, ira.h, jump.c, langhooks.h,
2909 libfuncs.h, lists.c, loop-doloop.c, loop-invariant.c, loop-iv.c,
2910 loop-unroll.c, lower-subreg.c, lower-subreg.h, lra-assigns.c,
2911 lra-constraints.c, lra-eliminations.c, lra-int.h, lra-lives.c,
2912 lra-spills.c, lra.c, lra.h, machmode.h, omp-low.c, optabs.c, optabs.h,
2913 output.h, postreload.c, print-tree.c, read-rtl.c, real.c, real.h,
2914 recog.c, recog.h, ree.c, reg-stack.c, regcprop.c, reginfo.c,
2915 regrename.c, regs.h, reload.c, reload.h, reload1.c, rtl.c, rtl.h,
2916 rtlanal.c, rtlhash.c, rtlhooks-def.h, rtlhooks.c, sched-deps.c,
2917 sel-sched-dump.c, sel-sched-ir.c, sel-sched-ir.h, sel-sched.c,
2918 simplify-rtx.c, stmt.c, stor-layout.c, stor-layout.h, target.def,
2919 targhooks.c, targhooks.h, tree-affine.c, tree-call-cdce.c,
2920 tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-if-conv.c,
2921 tree-inline.c, tree-outof-ssa.c, tree-scalar-evolution.c,
2922 tree-ssa-address.c, tree-ssa-ccp.c, tree-ssa-loop-ivopts.c,
2923 tree-ssa-loop-ivopts.h, tree-ssa-loop-manip.c,
2924 tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c, tree-ssa-reassoc.c,
2925 tree-ssa-sccvn.c, tree-streamer-in.c, tree-switch-conversion.c,
2926 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop.c,
2927 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
2928 tree-vrp.c, tree.c, tree.h, tsan.c, ubsan.c, valtrack.c,
2929 var-tracking.c, varasm.c: Remove redundant enum from
2930 machine_mode.
2931 * gengtype.c (main): Treat machine_mode as a scalar typedef.
2932 * genmodes.c (emit_insn_modes_h): Hide inline functions if
2933 USED_FOR_TARGET.
2934
2935 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2936
2937 PR rtl-optimization/63340 (part 2)
2938 * rtl.h (invalid_mode_change_p): Delete.
2939 (valid_mode_changes_for_regno): New function.
2940 * reginfo.c (invalid_mode_change_p): Delete.
2941 (valid_mode_changes_for_regno): New function.
2942 * ira-costs.c (setup_regno_cost_classes_by_aclass): Restrict the
2943 classes to registers that are allowed by valid_mode_changes_for_regno.
2944 (setup_regno_cost_classes_by_mode): Likewise.
2945 (print_allocno_costs): Remove invalid_mode_change_p test.
2946 (print_pseudo_costs, find_costs_and_classes): Likewise.
2947
2948 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2949
2950 PR rtl-optimization/63340 (part 1)
2951 * ira-costs.c (all_cost_classes): New variable.
2952 (complete_cost_classes): New function, split out from...
2953 (setup_cost_classes): ...here.
2954 (initiate_regno_cost_classes): Set up all_cost_classes.
2955 (restrict_cost_classes): New function.
2956 (setup_regno_cost_classes_by_aclass): Restrict the cost classes to
2957 registers that are valid for the register's mode.
2958 (setup_regno_cost_classes_by_mode): Model the mode cache as a
2959 restriction of all_cost_classes to a particular mode.
2960 (print_allocno_costs): Remove contains_reg_of_mode check.
2961 (print_pseudo_costs, find_costs_and_classes): Likewise.
2962
2963 2014-10-29 Richard Biener <rguenther@suse.de>
2964
2965 PR tree-optimization/63666
2966 * tree-vect-slp.c (vect_get_mask_element): Properly handle
2967 accessing out-of-bound elements.
2968
2969 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2970 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2971 Anna Tikhonova <anna.tikhonova@intel.com>
2972 Ilya Tocar <ilya.tocar@intel.com>
2973 Andrey Turetskiy <andrey.turetskiy@intel.com>
2974 Ilya Verbin <ilya.verbin@intel.com>
2975 Kirill Yukhin <kirill.yukhin@intel.com>
2976 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2977
2978 * config/i386/i386.md
2979 (movhi_internal): Always detect maskmov.
2980 (movqi_internal): Fix target check.
2981
2982 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2983 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2984 Anna Tikhonova <anna.tikhonova@intel.com>
2985 Ilya Tocar <ilya.tocar@intel.com>
2986 Andrey Turetskiy <andrey.turetskiy@intel.com>
2987 Ilya Verbin <ilya.verbin@intel.com>
2988 Kirill Yukhin <kirill.yukhin@intel.com>
2989 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2990
2991 * config/i386/avx512bwintrin.h: Add new intrinsics.
2992 * config/i386/avx512vlbwintrin.h: Ditto.
2993 * config/i386/avx512vlintrin.h: Ditto.
2994
2995 2014-10-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
2996
2997 * godump.c (precision_to_units): New helper function.
2998 (go_append_artificial_name): Ditto.
2999 (go_append_decl_name): Ditto.
3000 (go_append_bitfield): Ditto.
3001 (go_get_uinttype_for_precision): Ditto.
3002 (go_append_padding): Ditto.
3003 (go_force_record_alignment): Ditto.
3004 (go_format_type): Represent unions with an array of uints of the size
3005 of the alignment in go. This fixes the 'random' size of the union's
3006 representation using just the first field.
3007 (go_format_type): Add argument that indicates whether a record is
3008 nested (used for generation of artificial go names).
3009 (go_output_fndecl): Adapt to new go_format_type signature.
3010 (go_output_typedef): Ditto.
3011 (go_output_var): Ditto.
3012 (go_output_var): Prefer to output type as alias (typedef).
3013 (go_format_type): Bitfields in records are simulated as arrays of bytes
3014 in go.
3015
3016 * godump.c (go_format_type): Fix handling of arrays with zero elements.
3017
3018 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
3019
3020 * cgraph.h: Flatten. Remove all include files.
3021 (symbol_table::initialize): Move to cgraph.c.
3022 * cgraph.c: Adjust include files.
3023 (symbol_table::initialize): Relocate from cgraph.h.
3024 * gengtype.c (open_base_files): Adjust include files.
3025 * gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
3026 included files.
3027 * ipa-inline.h: Remove all include files.
3028 * ipa-prop.h: Ditto.
3029 * ipa-reference.h: Ditto.
3030 * ipa-utils.h: Ditto:
3031 * lto-streamer.h: Remove cgraph.h from include list.
3032 * asan.c: Adjust include files.
3033 * auto-profile.c: Ditto.
3034 * bb-reorder.c: Ditto.
3035 * calls.c: Ditto.
3036 * cfgexpand.c: Ditto.
3037 * cgraphbuild.c: Ditto.
3038 * cgraphclones.c: Ditto.
3039 * cgraphunit.c: Ditto.
3040 * combine.c: Ditto.
3041 * coverage.c: Ditto.
3042 * data-streamer.c: Ditto.
3043 * data-streamer-in.c: Ditto.
3044 * data-streamer-out.c: Ditto.
3045 * dbxout.c: Ditto.
3046 * dwarf2out.c: Ditto.
3047 * except.c: Ditto.
3048 * expr.c: Ditto.
3049 * final.c: Ditto.
3050 * fold-const.c: Ditto.
3051 * ggc-page.c: Ditto.
3052 * gimple-fold.c: Ditto.
3053 * gimple-iterator.c: Ditto.
3054 * gimple-pretty-print.c: Ditto.
3055 * gimple-streamer-in.c: Ditto.
3056 * gimple-streamer-out.c: Ditto.
3057 * gimplify.c: Ditto.
3058 * ipa.c: Ditto.
3059 * ipa-comdats.c: Ditto.
3060 * ipa-cp.c: Ditto.
3061 * ipa-devirt.c: Ditto.
3062 * ipa-icf.c: Ditto.
3063 * ipa-icf-gimple.c: Ditto.
3064 * ipa-inline-analysis.c: Ditto.
3065 * ipa-inline.c: Ditto.
3066 * ipa-inline-transform.c: Ditto.
3067 * ipa-polymorphic-call.c: Ditto.
3068 * ipa-profile.c: Ditto.
3069 * ipa-prop.c: Ditto.
3070 * ipa-pure-const.c: Ditto.
3071 * ipa-ref.c: Ditto.
3072 * ipa-reference.c: Ditto.
3073 * ipa-split.c: Ditto.
3074 * ipa-utils.c: Ditto.
3075 * ipa-visibility.c: Ditto.
3076 * langhooks.c: Ditto.
3077 * lto-cgraph.c: Ditto.
3078 * lto-compress.c: Ditto.
3079 * lto-opts.c: Ditto.
3080 * lto-section-in.c: Ditto.
3081 * lto-section-out.c: Ditto.
3082 * lto-streamer.c: Ditto.
3083 * lto-streamer-in.c: Ditto.
3084 * lto-streamer-out.c: Ditto.
3085 * omp-low.c: Ditto.
3086 * opts-global.c: Ditto.
3087 * passes.c: Ditto.
3088 * predict.c: Ditto.
3089 * print-tree.c: Ditto.
3090 * profile.c: Ditto.
3091 * ree.c: Ditto.
3092 * stor-layout.c: Ditto.
3093 * symtab.c: Ditto.
3094 * toplev.c: Ditto.
3095 * trans-mem.c: Ditto.
3096 * tree.c: Ditto.
3097 * tree-cfg.c: Ditto.
3098 * tree-eh.c: Ditto.
3099 * tree-emutls.c: Ditto.
3100 * tree-inline.c: Ditto.
3101 * tree-nested.c: Ditto.
3102 * tree-pretty-print.c: Ditto.
3103 * tree-profile.c: Ditto.
3104 * tree-sra.c: Ditto.
3105 * tree-ssa-alias.c: Ditto.
3106 * tree-ssa-loop-ivcanon.c: Ditto.
3107 * tree-ssa-loop-ivopts.c: Ditto.
3108 * tree-ssa-pre.c: Ditto.
3109 * tree-ssa-structalias.c: Ditto.
3110 * tree-streamer.c: Ditto.
3111 * tree-streamer-in.c: Ditto.
3112 * tree-streamer-out.c: Ditto.
3113 * tree-switch-conversion.c: Ditto.
3114 * tree-tailcall.c: Ditto.
3115 * tree-vect-data-refs.c: Ditto.
3116 * tree-vectorizer.c: Ditto.
3117 * tree-vect-stmts.c: Ditto.
3118 * tsan.c: Ditto.
3119 * ubsan.c: Ditto.
3120 * value-prof.c: Ditto.
3121 * varasm.c: Ditto.
3122 * varpool.c: Ditto.
3123 * config/arm/arm.c: Ditto.
3124 * config/bfin/bfin.c: Ditto.
3125 * config/c6x/c6x.c: Ditto.
3126 * config/cris/cris.c: Ditto.
3127 * config/darwin.c: Ditto.
3128 * config/darwin-c.c: Ditto.
3129 * config/i386/i386.c: Ditto.
3130 * config/i386/winnt.c: Ditto.
3131 * config/microblaze/microblaze.c: Ditto.
3132 * config/mips/mips.c: Ditto.
3133 * config/rs6000/rs6000.c: Ditto.
3134 * config/rx/rx.c: Ditto.
3135
3136 2014-10-28 Richard Biener <rguenther@suse.de>
3137
3138 * gimple-fold.h (follow_single_use_edges): Declare.
3139 * gimple-fold.c (follow_single_use_edges): New function.
3140 (gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
3141 * tree-ssa-propagate.c
3142 (substitute_and_fold_dom_walker::before_dom_children): Allow
3143 following single-use edges when folding stmts we propagated into.
3144
3145 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3146 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3147 Anna Tikhonova <anna.tikhonova@intel.com>
3148 Ilya Tocar <ilya.tocar@intel.com>
3149 Andrey Turetskiy <andrey.turetskiy@intel.com>
3150 Ilya Verbin <ilya.verbin@intel.com>
3151 Kirill Yukhin <kirill.yukhin@intel.com>
3152 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3153
3154 * config/i386/avx512bwintrin.h: New.
3155 * config/i386/avx512dqintrin.h: Ditto.
3156 * config/i386/avx512vlbwintrin.h: Ditto.
3157 * config/i386/avx512vldqintrin.h: Ditto.
3158 * config/i386/avx512vlintrin.h: Ditto.
3159 * config/i386/immintrin.h: Include avx512vlintrin.h, avx512bwintrin.h,
3160 avx512dqintrin.h, avx512vlbwintrin.h, avx512vldqintrin.h.
3161
3162 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3163 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3164 Anna Tikhonova <anna.tikhonova@intel.com>
3165 Ilya Tocar <ilya.tocar@intel.com>
3166 Andrey Turetskiy <andrey.turetskiy@intel.com>
3167 Ilya Verbin <ilya.verbin@intel.com>
3168 Kirill Yukhin <kirill.yukhin@intel.com>
3169 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3170
3171 * config/i386/i386.c
3172 (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
3173 avx_shufpd256_mask, avx_vpermilv2df_mask.
3174
3175 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3176 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3177 Anna Tikhonova <anna.tikhonova@intel.com>
3178 Ilya Tocar <ilya.tocar@intel.com>
3179 Andrey Turetskiy <andrey.turetskiy@intel.com>
3180 Ilya Verbin <ilya.verbin@intel.com>
3181 Kirill Yukhin <kirill.yukhin@intel.com>
3182 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3183
3184 * config/i386/i386.c
3185 (ix86_init_mmx_sse_builtins):
3186 Define __builtin_ia32_gather3siv2df, __builtin_ia32_gather3siv4df,
3187 __builtin_ia32_gather3div2df, __builtin_ia32_gather3div4df,
3188 __builtin_ia32_gather3siv4sf, __builtin_ia32_gather3siv8sf,
3189 __builtin_ia32_gather3div4sf, __builtin_ia32_gather3div8sf,
3190 __builtin_ia32_gather3siv2di, __builtin_ia32_gather3siv4di,
3191 __builtin_ia32_gather3div2di, __builtin_ia32_gather3div4di,
3192 __builtin_ia32_gather3siv4si, __builtin_ia32_gather3siv8si,
3193 __builtin_ia32_gather3div4si, __builtin_ia32_gather3div8si,
3194 __builtin_ia32_gather3altsiv4df, __builtin_ia32_gather3altdiv8sf,
3195 __builtin_ia32_gather3altsiv4di, __builtin_ia32_gather3altdiv8si,
3196 __builtin_ia32_scattersiv8sf, __builtin_ia32_scattersiv4sf,
3197 __builtin_ia32_scattersiv4df, __builtin_ia32_scattersiv2df,
3198 __builtin_ia32_scatterdiv8sf, __builtin_ia32_scatterdiv4sf,
3199 __builtin_ia32_scatterdiv4df, __builtin_ia32_scatterdiv2df,
3200 __builtin_ia32_scattersiv8si, __builtin_ia32_scattersiv4si,
3201 __builtin_ia32_scattersiv4di, __builtin_ia32_scattersiv2di,
3202 __builtin_ia32_scatterdiv8si, __builtin_ia32_scatterdiv4si,
3203 __builtin_ia32_scatterdiv4di, __builtin_ia32_scatterdiv2di.
3204
3205 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3206 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3207 Anna Tikhonova <anna.tikhonova@intel.com>
3208 Ilya Tocar <ilya.tocar@intel.com>
3209 Andrey Turetskiy <andrey.turetskiy@intel.com>
3210 Ilya Verbin <ilya.verbin@intel.com>
3211 Kirill Yukhin <kirill.yukhin@intel.com>
3212 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3213
3214 * config/i386/i386.c
3215 (ix86_builtins): Add IX86_BUILTIN_GATHER3ALTSIV4DF,
3216 IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTSIV4DI,
3217 IX86_BUILTIN_GATHER3ALTDIV8SI.
3218 (ix86_expand_builtin):
3219 Handle IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTDIV8SI,
3220 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV4DI,
3221 IX86_BUILTIN_SCATTERDIV2DF, IX86_BUILTIN_SCATTERDIV4DF,
3222 IX86_BUILTIN_GATHER3ALTSIV4DI, IX86_BUILTIN_GATHER3ALTSIV4DF,
3223 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
3224 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3DIV8SI,
3225 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV4DI,
3226 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3SIV8SF,
3227 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
3228 IX86_BUILTIN_GATHER3DIV2DI, IX86_BUILTIN_GATHER3DIV4DI,
3229 IX86_BUILTIN_SCATTERDIV4SF, IX86_BUILTIN_SCATTERSIV2DI,
3230 IX86_BUILTIN_GATHER3SIV2DI, IX86_BUILTIN_GATHER3SIV4SI,
3231 IX86_BUILTIN_GATHER3SIV4SF, IX86_BUILTIN_GATHER3SIV2DF,
3232 IX86_BUILTIN_SCATTERSIV2DF, IX86_BUILTIN_SCATTERDIV4SI,
3233 IX86_BUILTIN_SCATTERSIV4SF, IX86_BUILTIN_SCATTERSIV4SI,
3234 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
3235 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV8SF,
3236 IX86_BUILTIN_GATHER3DIV4SF, IX86_BUILTIN_SCATTERDIV8SF.
3237 (ix86_vectorize_builtin_gather): Update V2DFmode, V4DFmode, V2DImode,
3238 V4DImode, V4SFmode, V8SFmode, V4SImode, V8SImode.
3239
3240 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3241 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3242 Anna Tikhonova <anna.tikhonova@intel.com>
3243 Ilya Tocar <ilya.tocar@intel.com>
3244 Andrey Turetskiy <andrey.turetskiy@intel.com>
3245 Ilya Verbin <ilya.verbin@intel.com>
3246 Kirill Yukhin <kirill.yukhin@intel.com>
3247 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3248
3249 * config/i386/i386-builtin-types.def
3250 (SHORT): New.
3251 (V32HI): Ditto.
3252 (V12QI): Ditto.
3253 (V14QI): Ditto.
3254 (V32SI): Ditto.
3255 (V8UDI): Ditto.
3256 (V16USI): Ditto.
3257 (V32UHI): Ditto.
3258 (PSHORT): Ditto.
3259 (PV32QI): Ditto.
3260 (PV32HI): Ditto.
3261 (PV64QI): Ditto.
3262 (PCV8HI): Ditto.
3263 (PCV16QI): Ditto.
3264 (PCV16HI): Ditto.
3265 (PCV32QI): Ditto.
3266 (PCV32HI): Ditto.
3267 (PCV64QI): Ditto.
3268 (V4SF_FTYPE_V2DF_V4SF_QI): Ditto.
3269 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
3270 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
3271 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
3272 (V16SF_FTYPE_V16HI): Ditto.
3273 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
3274 (V16SF_FTYPE_V16SI): Ditto.
3275 (V4DI_FTYPE_V4DI): Ditto.
3276 (V16SI_FTYPE_V16SF): Ditto.
3277 (V8DI_FTYPE_PV2DI): Ditto.
3278 (V8DF_FTYPE_PV2DF): Ditto.
3279 (V4DI_FTYPE_PV2DI): Ditto.
3280 (V4DF_FTYPE_PV2DF): Ditto.
3281 (V16SI_FTYPE_PV2SI): Ditto.
3282 (V16SF_FTYPE_PV2SF): Ditto.
3283 (V8SF_FTYPE_FLOAT): Ditto.
3284 (V4SF_FTYPE_FLOAT): Ditto.
3285 (V4DF_FTYPE_DOUBLE): Ditto.
3286 (V8SF_FTYPE_PV4SF): Ditto.
3287 (V8SI_FTYPE_PV4SI): Ditto.
3288 (V4SI_FTYPE_PV2SI): Ditto.
3289 (V8SF_FTYPE_PV2SF): Ditto.
3290 (V8SI_FTYPE_PV2SI): Ditto.
3291 (V16SF_FTYPE_PV8SF): Ditto.
3292 (V16SI_FTYPE_PV8SI): Ditto.
3293 (V8DI_FTYPE_V8SF): Ditto.
3294 (V4DI_FTYPE_V4SF): Ditto.
3295 (V2DI_FTYPE_V4SF): Ditto.
3296 (V64QI_FTYPE_QI): Ditto.
3297 (V32HI_FTYPE_HI): Ditto.
3298 (V16UHI_FTYPE_V16UHI): Ditto.
3299 (V32UHI_FTYPE_V32UHI): Ditto.
3300 (V2UDI_FTYPE_V2UDI): Ditto.
3301 (V4UDI_FTYPE_V4UDI): Ditto.
3302 (V8UDI_FTYPE_V8UDI): Ditto.
3303 (V4USI_FTYPE_V4USI): Ditto.
3304 (V16USI_FTYPE_V16USI): Ditto.
3305 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
3306 (V2DF_FTYPE_V8DF_INT): Ditto.
3307 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
3308 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
3309 (V8DF_FTYPE_V8DF_INT): Ditto.
3310 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
3311 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
3312 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
3313 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
3314 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
3315 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
3316 (V8DI_FTYPE_V8DI_INT): Ditto.
3317 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
3318 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
3319 (V8SF_FTYPE_V16SF_INT): Ditto.
3320 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
3321 (V64QI_FTYPE_V32HI_V32HI): Ditto.
3322 (V32HI_FTYPE_V16SI_V16SI): Ditto.
3323 (V8DF_FTYPE_V8DF_V2DF_INT): Ditto.
3324 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
3325 (V8DF_FTYPE_V8DF_V8DF_INT): Ditto.
3326 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT): Ditto.
3327 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT): Ditto.
3328 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
3329 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
3330 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
3331 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT): Ditto.
3332 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
3333 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
3334 (V32HI_FTYPE_V64QI_V64QI): Ditto.
3335 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
3336 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
3337 (V32HI_FTYPE_V32HI_V32HI): Ditto.
3338 (V32HI_FTYPE_V32HI_INT): Ditto.
3339 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
3340 (V16SI_FTYPE_V32HI_V32HI): Ditto.
3341 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
3342 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
3343 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
3344 (V8SI_FTYPE_V16SI_INT): Ditto.
3345 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
3346 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
3347 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
3348 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
3349 (V8DI_FTYPE_V8DI_V4DI_INT): Ditto.
3350 (V8DI_FTYPE_V8DI_V2DI_INT): Ditto.
3351 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
3352 (V8DI_FTYPE_V16SI_V16SI): Ditto.
3353 (V8DI_FTYPE_V64QI_V64QI): Ditto.
3354 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
3355 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
3356 (V2DI_FTYPE_V8DI_INT): Ditto.
3357 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
3358 (QI_FTYPE_QI): Ditto.
3359 (SI_FTYPE_SI): Ditto.
3360 (DI_FTYPE_DI): Ditto.
3361 (HI_FTYPE_V16QI): Ditto.
3362 (SI_FTYPE_V32QI): Ditto.
3363 (DI_FTYPE_V64QI): Ditto.
3364 (QI_FTYPE_V8HI): Ditto.
3365 (HI_FTYPE_V16HI): Ditto.
3366 (SI_FTYPE_V32HI): Ditto.
3367 (QI_FTYPE_V4SI): Ditto.
3368 (QI_FTYPE_V8SI): Ditto.
3369 (HI_FTYPE_V16SI): Ditto.
3370 (QI_FTYPE_V2DI): Ditto.
3371 (QI_FTYPE_V4DI): Ditto.
3372 (QI_FTYPE_V8DI): Ditto.
3373 (V16QI_FTYPE_HI): Ditto.
3374 (V32QI_FTYPE_SI): Ditto.
3375 (V64QI_FTYPE_DI): Ditto.
3376 (V8HI_FTYPE_QI): Ditto.
3377 (V16HI_FTYPE_HI): Ditto.
3378 (V32HI_FTYPE_SI): Ditto.
3379 (V4SI_FTYPE_QI): Ditto.
3380 (V4SI_FTYPE_HI): Ditto.
3381 (V8SI_FTYPE_QI): Ditto.
3382 (V8SI_FTYPE_HI): Ditto.
3383 (V2DI_FTYPE_QI): Ditto.
3384 (V4DI_FTYPE_QI): Ditto.
3385 (QI_FTYPE_QI_QI): Ditto.
3386 (SI_FTYPE_SI_SI): Ditto.
3387 (DI_FTYPE_DI_DI): Ditto.
3388 (QI_FTYPE_QI_INT): Ditto.
3389 (SI_FTYPE_SI_INT): Ditto.
3390 (DI_FTYPE_DI_INT): Ditto.
3391 (HI_FTYPE_V16QI_V16QI): Ditto.
3392 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
3393 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
3394 (SI_FTYPE_V32QI_V32QI): Ditto.
3395 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
3396 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
3397 (DI_FTYPE_V64QI_V64QI): Ditto.
3398 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
3399 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
3400 (QI_FTYPE_V8HI_V8HI): Ditto.
3401 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
3402 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
3403 (HI_FTYPE_V16HI_V16HI): Ditto.
3404 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
3405 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
3406 (SI_FTYPE_V32HI_V32HI): Ditto.
3407 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
3408 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
3409 (QI_FTYPE_V4SI_V4SI): Ditto.
3410 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
3411 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
3412 (QI_FTYPE_V8SI_V8SI): Ditto.
3413 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
3414 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
3415 (QI_FTYPE_V2DI_V2DI): Ditto.
3416 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
3417 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
3418 (QI_FTYPE_V4DI_V4DI): Ditto.
3419 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
3420 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
3421 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
3422 (V4DF_FTYPE_V4DF_V4DI_INT): Ditto.
3423 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
3424 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
3425 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
3426 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
3427 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
3428 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
3429 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
3430 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
3431 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
3432 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
3433 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
3434 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
3435 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
3436 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
3437 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
3438 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
3439 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
3440 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
3441 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
3442 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
3443 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
3444 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
3445 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
3446 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
3447 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
3448 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
3449 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
3450 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
3451 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
3452 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
3453 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
3454 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
3455 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
3456 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
3457 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
3458 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
3459 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
3460 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
3461 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
3462 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
3463 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
3464 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
3465 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
3466 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
3467 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
3468 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
3469 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
3470 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
3471 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
3472 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
3473 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
3474 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
3475 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
3476 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
3477 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
3478 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
3479 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
3480 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
3481 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
3482 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
3483 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
3484 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
3485 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
3486 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
3487 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
3488 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
3489 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
3490 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
3491 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
3492 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
3493 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
3494 (V32HI_FTYPE_V64QI_V64QI_INT): Ditto.
3495 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
3496 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
3497 (V16HI_FTYPE_V32QI_V32QI_INT): Ditto.
3498 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
3499 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
3500 (V8HI_FTYPE_V16QI_V16QI_INT): Ditto.
3501 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
3502 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
3503 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
3504 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
3505 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
3506 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
3507 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
3508 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
3509 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
3510 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
3511 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
3512 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
3513 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
3514 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
3515 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
3516 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
3517 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
3518 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
3519 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
3520 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
3521 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
3522 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
3523 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
3524 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
3525 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
3526 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
3527 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
3528 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
3529 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
3530 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
3531 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
3532 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
3533 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
3534 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
3535 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
3536 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
3537 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
3538 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
3539 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
3540 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
3541 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
3542 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
3543 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
3544 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
3545 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
3546 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
3547 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
3548 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
3549 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
3550 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
3551 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
3552 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
3553 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
3554 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
3555 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
3556 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
3557 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
3558 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
3559 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
3560 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
3561 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
3562 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
3563 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
3564 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
3565 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
3566 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
3567 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
3568 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
3569 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
3570 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
3571 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
3572 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
3573 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
3574 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
3575 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
3576 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
3577 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
3578 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
3579 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
3580 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
3581 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
3582 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
3583 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
3584 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
3585 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
3586 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
3587 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
3588 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
3589 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
3590 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
3591 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
3592 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
3593 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
3594 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
3595 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
3596 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
3597 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
3598 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
3599 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
3600 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
3601 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
3602 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
3603 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
3604 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
3605 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
3606 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
3607 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
3608 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
3609 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
3610 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
3611 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
3612 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
3613 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
3614 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
3615 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
3616 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
3617 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
3618 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
3619 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
3620 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
3621 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
3622 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
3623 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
3624 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
3625 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
3626 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
3627 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
3628 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
3629 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
3630 (QI_FTYPE_V8DF_INT): Ditto.
3631 (QI_FTYPE_V4DF_INT): Ditto.
3632 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
3633 (QI_FTYPE_V2DF_INT): Ditto.
3634 (HI_FTYPE_V16SF_INT): Ditto.
3635 (QI_FTYPE_V8SF_INT): Ditto.
3636 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
3637 (QI_FTYPE_V4SF_INT): Ditto.
3638 (QI_FTYPE_V8DF_INT_QI): Ditto.
3639 (QI_FTYPE_V4DF_INT_QI): Ditto.
3640 (QI_FTYPE_V2DF_INT_QI): Ditto.
3641 (HI_FTYPE_V16SF_INT_HI): Ditto.
3642 (QI_FTYPE_V8SF_INT_QI): Ditto.
3643 (QI_FTYPE_V4SF_INT_QI): Ditto.
3644 (V8DI_FTYPE_V8DF_V8DI_QI_INT): Ditto.
3645 (V8DI_FTYPE_V8SF_V8DI_QI_INT): Ditto.
3646 (V8DF_FTYPE_V8DI_V8DF_QI_INT): Ditto.
3647 (V8SF_FTYPE_V8DI_V8SF_QI_INT): Ditto.
3648 (V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_QI_INT): Ditto.
3649 (V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_QI_INT): Ditto.
3650 (V4DF_FTYPE_V4DF_PCDOUBLE_V8SI_QI_INT): Ditto.
3651 (V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_QI_INT): Ditto.
3652 (V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_QI_INT): Ditto.
3653 (V4SF_FTYPE_V4SF_PCFLOAT_V4SI_QI_INT): Ditto.
3654 (V8SF_FTYPE_V8SF_PCFLOAT_V8SI_QI_INT): Ditto.
3655 (V4SF_FTYPE_V4SF_PCFLOAT_V2DI_QI_INT): Ditto.
3656 (V4SF_FTYPE_V4SF_PCFLOAT_V4DI_QI_INT): Ditto.
3657 (V8SF_FTYPE_V8SF_PCFLOAT_V4DI_QI_INT): Ditto.
3658 (V2DI_FTYPE_V2DI_PCINT64_V4SI_QI_INT): Ditto.
3659 (V4DI_FTYPE_V4DI_PCINT64_V4SI_QI_INT): Ditto.
3660 (V4DI_FTYPE_V4DI_PCINT64_V8SI_QI_INT): Ditto.
3661 (V2DI_FTYPE_V2DI_PCINT64_V2DI_QI_INT): Ditto.
3662 (V4DI_FTYPE_V4DI_PCINT64_V4DI_QI_INT): Ditto.
3663 (V4SI_FTYPE_V4SI_PCINT_V4SI_QI_INT): Ditto.
3664 (V8SI_FTYPE_V8SI_PCINT_V8SI_QI_INT): Ditto.
3665 (V4SI_FTYPE_V4SI_PCINT_V2DI_QI_INT): Ditto.
3666 (V4SI_FTYPE_V4SI_PCINT_V4DI_QI_INT): Ditto.
3667 (V8SI_FTYPE_V8SI_PCINT_V4DI_QI_INT): Ditto.
3668 (VOID_FTYPE_PFLOAT_QI_V8SI_V8SF_INT): Ditto.
3669 (VOID_FTYPE_PFLOAT_QI_V4SI_V4SF_INT): Ditto.
3670 (VOID_FTYPE_PDOUBLE_QI_V4SI_V4DF_INT): Ditto.
3671 (VOID_FTYPE_PDOUBLE_QI_V4SI_V2DF_INT): Ditto.
3672 (VOID_FTYPE_PFLOAT_QI_V4DI_V4SF_INT): Ditto.
3673 (VOID_FTYPE_PFLOAT_QI_V2DI_V4SF_INT): Ditto.
3674 (VOID_FTYPE_PDOUBLE_QI_V4DI_V4DF_INT): Ditto.
3675 (VOID_FTYPE_PDOUBLE_QI_V2DI_V2DF_INT): Ditto.
3676 (VOID_FTYPE_PINT_QI_V8SI_V8SI_INT): Ditto.
3677 (VOID_FTYPE_PINT_QI_V4SI_V4SI_INT): Ditto.
3678 (VOID_FTYPE_PLONGLONG_QI_V4SI_V4DI_INT): Ditto.
3679 (VOID_FTYPE_PLONGLONG_QI_V4SI_V2DI_INT): Ditto.
3680 (VOID_FTYPE_PINT_QI_V4DI_V4SI_INT): Ditto.
3681 (VOID_FTYPE_PINT_QI_V2DI_V4SI_INT): Ditto.
3682 (VOID_FTYPE_PLONGLONG_QI_V4DI_V4DI_INT): Ditto.
3683 (VOID_FTYPE_PLONGLONG_QI_V2DI_V2DI_INT): Ditto.
3684 (V8DI_FTYPE_V8DI_INT): Ditto.
3685 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
3686 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
3687 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
3688 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
3689 (V2DF_FTYPE_ V2DF_ V2DF_ V2DI_ INT_ QI): Remove.
3690 (V4SF_FTYPE_ V4SF_ V2DF_ V4SF_ QI): Ditto.
3691 (V4SF_FTYPE_ V4SF_ V4SF_ V4SF_ QI): Ditto.
3692 (V2DF_FTYPE_ PCDOUBLE_ V2DF_ QI): Ditto.
3693 (V4SF_FTYPE_ PCFLOAT_ V4SF_ QI): Ditto.
3694 (V16QI_FTYPE_ V16SI_ V16QI_ HI): Ditto.
3695 (V16QI_FTYPE_ V8DI_ V16QI_ QI): Ditto.
3696 (V4SF_FTYPE_ V4SF_ V4SF_ INT_ V4SF_ QI): Ditto.
3697 (V2DF_FTYPE_ V2DF_ V2DF_ INT_ V2DF_ QI): Ditto.
3698 (V8DI_FTYPE_ V16SI_ V16SI_ V8DI_ QI): Ditto.
3699 * config/i386/i386.c (ix86_builtins):
3700 Add IX86_BUILTIN_PMOVUSQD256_MEM, IX86_BUILTIN_PMOVUSQD128_MEM,
3701 IX86_BUILTIN_PMOVSQD256_MEM, IX86_BUILTIN_PMOVSQD128_MEM,
3702 IX86_BUILTIN_PMOVQD256_MEM, IX86_BUILTIN_PMOVQD128_MEM,
3703 IX86_BUILTIN_PMOVUSQW256_MEM, IX86_BUILTIN_PMOVUSQW128_MEM,
3704 IX86_BUILTIN_PMOVSQW256_MEM, IX86_BUILTIN_PMOVSQW128_MEM,
3705 IX86_BUILTIN_PMOVQW256_MEM, IX86_BUILTIN_PMOVQW128_MEM,
3706 IX86_BUILTIN_PMOVUSQB256_MEM, IX86_BUILTIN_PMOVUSQB128_MEM,
3707 IX86_BUILTIN_PMOVSQB256_MEM, IX86_BUILTIN_PMOVSQB128_MEM,
3708 IX86_BUILTIN_PMOVQB256_MEM, IX86_BUILTIN_PMOVQB128_MEM,
3709 IX86_BUILTIN_PMOVUSDW256_MEM, IX86_BUILTIN_PMOVUSDW128_MEM,
3710 IX86_BUILTIN_PMOVSDW256_MEM, IX86_BUILTIN_PMOVSDW128_MEM,
3711 IX86_BUILTIN_PMOVDW256_MEM, IX86_BUILTIN_PMOVDW128_MEM,
3712 IX86_BUILTIN_PMOVUSDB256_MEM, IX86_BUILTIN_PMOVUSDB128_MEM,
3713 IX86_BUILTIN_PMOVSDB256_MEM, IX86_BUILTIN_PMOVSDB128_MEM,
3714 IX86_BUILTIN_PMOVDB256_MEM, IX86_BUILTIN_PMOVDB128_MEM,
3715 IX86_BUILTIN_MOVDQA64LOAD256_MASK, IX86_BUILTIN_MOVDQA64LOAD128_MASK,
3716 IX86_BUILTIN_MOVDQA32LOAD256_MASK, IX86_BUILTIN_MOVDQA32LOAD128_MASK,
3717 IX86_BUILTIN_MOVDQA64STORE256_MASK, IX86_BUILTIN_MOVDQA64STORE128_MASK,
3718 IX86_BUILTIN_MOVDQA32STORE256_MASK, IX86_BUILTIN_MOVDQA32STORE128_MASK,
3719 IX86_BUILTIN_LOADAPD256_MASK, IX86_BUILTIN_LOADAPD128_MASK,
3720 IX86_BUILTIN_LOADAPS256_MASK, IX86_BUILTIN_LOADAPS128_MASK,
3721 IX86_BUILTIN_STOREAPD256_MASK, IX86_BUILTIN_STOREAPD128_MASK,
3722 IX86_BUILTIN_STOREAPS256_MASK, IX86_BUILTIN_STOREAPS128_MASK,
3723 IX86_BUILTIN_LOADUPD256_MASK, IX86_BUILTIN_LOADUPD128_MASK,
3724 IX86_BUILTIN_LOADUPS256_MASK, IX86_BUILTIN_LOADUPS128_MASK,
3725 IX86_BUILTIN_STOREUPD256_MASK, IX86_BUILTIN_STOREUPD128_MASK,
3726 IX86_BUILTIN_STOREUPS256_MASK, IX86_BUILTIN_STOREUPS128_MASK,
3727 IX86_BUILTIN_LOADDQUDI256_MASK, IX86_BUILTIN_LOADDQUDI128_MASK,
3728 IX86_BUILTIN_LOADDQUSI256_MASK, IX86_BUILTIN_LOADDQUSI128_MASK,
3729 IX86_BUILTIN_LOADDQUHI256_MASK, IX86_BUILTIN_LOADDQUHI128_MASK,
3730 IX86_BUILTIN_LOADDQUQI256_MASK, IX86_BUILTIN_LOADDQUQI128_MASK,
3731 IX86_BUILTIN_STOREDQUDI256_MASK, IX86_BUILTIN_STOREDQUDI128_MASK,
3732 IX86_BUILTIN_STOREDQUSI256_MASK, IX86_BUILTIN_STOREDQUSI128_MASK,
3733 IX86_BUILTIN_STOREDQUHI256_MASK, IX86_BUILTIN_STOREDQUHI128_MASK,
3734 IX86_BUILTIN_STOREDQUQI256_MASK, IX86_BUILTIN_STOREDQUQI128_MASK,
3735 IX86_BUILTIN_COMPRESSPDSTORE256, IX86_BUILTIN_COMPRESSPDSTORE128,
3736 IX86_BUILTIN_COMPRESSPSSTORE256, IX86_BUILTIN_COMPRESSPSSTORE128,
3737 IX86_BUILTIN_PCOMPRESSQSTORE256, IX86_BUILTIN_PCOMPRESSQSTORE128,
3738 IX86_BUILTIN_PCOMPRESSDSTORE256, IX86_BUILTIN_PCOMPRESSDSTORE128,
3739 IX86_BUILTIN_EXPANDPDLOAD256, IX86_BUILTIN_EXPANDPDLOAD128,
3740 IX86_BUILTIN_EXPANDPSLOAD256, IX86_BUILTIN_EXPANDPSLOAD128,
3741 IX86_BUILTIN_PEXPANDQLOAD256, IX86_BUILTIN_PEXPANDQLOAD128,
3742 IX86_BUILTIN_PEXPANDDLOAD256, IX86_BUILTIN_PEXPANDDLOAD128,
3743 IX86_BUILTIN_EXPANDPDLOAD256Z, IX86_BUILTIN_EXPANDPDLOAD128Z,
3744 IX86_BUILTIN_EXPANDPSLOAD256Z, IX86_BUILTIN_EXPANDPSLOAD128Z,
3745 IX86_BUILTIN_PEXPANDQLOAD256Z, IX86_BUILTIN_PEXPANDQLOAD128Z,
3746 IX86_BUILTIN_PEXPANDDLOAD256Z, IX86_BUILTIN_PEXPANDDLOAD128Z,
3747 IX86_BUILTIN_PALIGNR256_MASK, IX86_BUILTIN_PALIGNR128_MASK,
3748 IX86_BUILTIN_MOVDQA64_256_MASK, IX86_BUILTIN_MOVDQA64_128_MASK,
3749 IX86_BUILTIN_MOVDQA32_256_MASK, IX86_BUILTIN_MOVDQA32_128_MASK,
3750 IX86_BUILTIN_MOVAPD256_MASK, IX86_BUILTIN_MOVAPD128_MASK,
3751 IX86_BUILTIN_MOVAPS256_MASK, IX86_BUILTIN_MOVAPS128_MASK,
3752 IX86_BUILTIN_MOVDQUHI256_MASK, IX86_BUILTIN_MOVDQUHI128_MASK,
3753 IX86_BUILTIN_MOVDQUQI256_MASK, IX86_BUILTIN_MOVDQUQI128_MASK,
3754 IX86_BUILTIN_MINPS128_MASK, IX86_BUILTIN_MAXPS128_MASK,
3755 IX86_BUILTIN_MINPD128_MASK, IX86_BUILTIN_MAXPD128_MASK,
3756 IX86_BUILTIN_MAXPD256_MASK, IX86_BUILTIN_MAXPS256_MASK,
3757 IX86_BUILTIN_MINPD256_MASK, IX86_BUILTIN_MINPS256_MASK,
3758 IX86_BUILTIN_MULPS128_MASK, IX86_BUILTIN_DIVPS128_MASK,
3759 IX86_BUILTIN_MULPD128_MASK, IX86_BUILTIN_DIVPD128_MASK,
3760 IX86_BUILTIN_DIVPD256_MASK, IX86_BUILTIN_DIVPS256_MASK,
3761 IX86_BUILTIN_MULPD256_MASK, IX86_BUILTIN_MULPS256_MASK,
3762 IX86_BUILTIN_ADDPD128_MASK, IX86_BUILTIN_ADDPD256_MASK,
3763 IX86_BUILTIN_ADDPS128_MASK, IX86_BUILTIN_ADDPS256_MASK,
3764 IX86_BUILTIN_SUBPD128_MASK, IX86_BUILTIN_SUBPD256_MASK,
3765 IX86_BUILTIN_SUBPS128_MASK, IX86_BUILTIN_SUBPS256_MASK,
3766 IX86_BUILTIN_XORPD256_MASK, IX86_BUILTIN_XORPD128_MASK,
3767 IX86_BUILTIN_XORPS256_MASK, IX86_BUILTIN_XORPS128_MASK,
3768 IX86_BUILTIN_ORPD256_MASK, IX86_BUILTIN_ORPD128_MASK,
3769 IX86_BUILTIN_ORPS256_MASK, IX86_BUILTIN_ORPS128_MASK,
3770 IX86_BUILTIN_BROADCASTF32x2_256, IX86_BUILTIN_BROADCASTI32x2_256,
3771 IX86_BUILTIN_BROADCASTI32x2_128, IX86_BUILTIN_BROADCASTF64X2_256,
3772 IX86_BUILTIN_BROADCASTI64X2_256, IX86_BUILTIN_BROADCASTF32X4_256,
3773 IX86_BUILTIN_BROADCASTI32X4_256, IX86_BUILTIN_EXTRACTF32X4_256,
3774 IX86_BUILTIN_EXTRACTI32X4_256, IX86_BUILTIN_DBPSADBW256,
3775 IX86_BUILTIN_DBPSADBW128, IX86_BUILTIN_CVTTPD2QQ256,
3776 IX86_BUILTIN_CVTTPD2QQ128, IX86_BUILTIN_CVTTPD2UQQ256,
3777 IX86_BUILTIN_CVTTPD2UQQ128, IX86_BUILTIN_CVTPD2QQ256,
3778 IX86_BUILTIN_CVTPD2QQ128, IX86_BUILTIN_CVTPD2UQQ256,
3779 IX86_BUILTIN_CVTPD2UQQ128, IX86_BUILTIN_CVTPD2UDQ256_MASK,
3780 IX86_BUILTIN_CVTPD2UDQ128_MASK, IX86_BUILTIN_CVTTPS2QQ256,
3781 IX86_BUILTIN_CVTTPS2QQ128, IX86_BUILTIN_CVTTPS2UQQ256,
3782 IX86_BUILTIN_CVTTPS2UQQ128, IX86_BUILTIN_CVTTPS2DQ256_MASK,
3783 IX86_BUILTIN_CVTTPS2DQ128_MASK, IX86_BUILTIN_CVTTPS2UDQ256,
3784 IX86_BUILTIN_CVTTPS2UDQ128, IX86_BUILTIN_CVTTPD2DQ256_MASK,
3785 IX86_BUILTIN_CVTTPD2DQ128_MASK, IX86_BUILTIN_CVTTPD2UDQ256_MASK,
3786 IX86_BUILTIN_CVTTPD2UDQ128_MASK, IX86_BUILTIN_CVTPD2DQ256_MASK,
3787 IX86_BUILTIN_CVTPD2DQ128_MASK, IX86_BUILTIN_CVTDQ2PD256_MASK,
3788 IX86_BUILTIN_CVTDQ2PD128_MASK, IX86_BUILTIN_CVTUDQ2PD256_MASK,
3789 IX86_BUILTIN_CVTUDQ2PD128_MASK, IX86_BUILTIN_CVTDQ2PS256_MASK,
3790 IX86_BUILTIN_CVTDQ2PS128_MASK, IX86_BUILTIN_CVTUDQ2PS256_MASK,
3791 IX86_BUILTIN_CVTUDQ2PS128_MASK, IX86_BUILTIN_CVTPS2PD256_MASK,
3792 IX86_BUILTIN_CVTPS2PD128_MASK, IX86_BUILTIN_PBROADCASTB256_MASK,
3793 IX86_BUILTIN_PBROADCASTB256_GPR_MASK, IX86_BUILTIN_PBROADCASTB128_MASK,
3794 IX86_BUILTIN_PBROADCASTB128_GPR_MASK, IX86_BUILTIN_PBROADCASTW256_MASK,
3795 IX86_BUILTIN_PBROADCASTW256_GPR_MASK, IX86_BUILTIN_PBROADCASTW128_MASK,
3796 IX86_BUILTIN_PBROADCASTW128_GPR_MASK, IX86_BUILTIN_PBROADCASTD256_MASK,
3797 IX86_BUILTIN_PBROADCASTD256_GPR_MASK, IX86_BUILTIN_PBROADCASTD128_MASK,
3798 IX86_BUILTIN_PBROADCASTD128_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MASK,
3799 IX86_BUILTIN_PBROADCASTQ256_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
3800 IX86_BUILTIN_PBROADCASTQ128_MASK, IX86_BUILTIN_PBROADCASTQ128_GPR_MASK,
3801 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK, IX86_BUILTIN_BROADCASTSS256,
3802 IX86_BUILTIN_BROADCASTSS128, IX86_BUILTIN_BROADCASTSD256,
3803 IX86_BUILTIN_EXTRACTF64X2_256, IX86_BUILTIN_EXTRACTI64X2_256,
3804 IX86_BUILTIN_INSERTF32X4_256, IX86_BUILTIN_INSERTI32X4_256,
3805 IX86_BUILTIN_PMOVSXBW256_MASK, IX86_BUILTIN_PMOVSXBW128_MASK,
3806 IX86_BUILTIN_PMOVSXBD256_MASK, IX86_BUILTIN_PMOVSXBD128_MASK,
3807 IX86_BUILTIN_PMOVSXBQ256_MASK, IX86_BUILTIN_PMOVSXBQ128_MASK,
3808 IX86_BUILTIN_PMOVSXWD256_MASK, IX86_BUILTIN_PMOVSXWD128_MASK,
3809 IX86_BUILTIN_PMOVSXWQ256_MASK, IX86_BUILTIN_PMOVSXWQ128_MASK,
3810 IX86_BUILTIN_PMOVSXDQ256_MASK, IX86_BUILTIN_PMOVSXDQ128_MASK,
3811 IX86_BUILTIN_PMOVZXBW256_MASK, IX86_BUILTIN_PMOVZXBW128_MASK,
3812 IX86_BUILTIN_PMOVZXBD256_MASK, IX86_BUILTIN_PMOVZXBD128_MASK,
3813 IX86_BUILTIN_PMOVZXBQ256_MASK, IX86_BUILTIN_PMOVZXBQ128_MASK,
3814 IX86_BUILTIN_PMOVZXWD256_MASK, IX86_BUILTIN_PMOVZXWD128_MASK,
3815 IX86_BUILTIN_PMOVZXWQ256_MASK, IX86_BUILTIN_PMOVZXWQ128_MASK,
3816 IX86_BUILTIN_PMOVZXDQ256_MASK, IX86_BUILTIN_PMOVZXDQ128_MASK,
3817 IX86_BUILTIN_REDUCEPD256_MASK, IX86_BUILTIN_REDUCEPD128_MASK,
3818 IX86_BUILTIN_REDUCEPS256_MASK, IX86_BUILTIN_REDUCEPS128_MASK,
3819 IX86_BUILTIN_REDUCESD_MASK, IX86_BUILTIN_REDUCESS_MASK,
3820 IX86_BUILTIN_VPERMVARHI256_MASK, IX86_BUILTIN_VPERMVARHI128_MASK,
3821 IX86_BUILTIN_VPERMT2VARHI256, IX86_BUILTIN_VPERMT2VARHI256_MASKZ,
3822 IX86_BUILTIN_VPERMT2VARHI128, IX86_BUILTIN_VPERMT2VARHI128_MASKZ,
3823 IX86_BUILTIN_VPERMI2VARHI256, IX86_BUILTIN_VPERMI2VARHI128,
3824 IX86_BUILTIN_RCP14PD256, IX86_BUILTIN_RCP14PD128,
3825 IX86_BUILTIN_RCP14PS256, IX86_BUILTIN_RCP14PS128,
3826 IX86_BUILTIN_RSQRT14PD256_MASK, IX86_BUILTIN_RSQRT14PD128_MASK,
3827 IX86_BUILTIN_RSQRT14PS256_MASK, IX86_BUILTIN_RSQRT14PS128_MASK,
3828 IX86_BUILTIN_SQRTPD256_MASK, IX86_BUILTIN_SQRTPD128_MASK,
3829 IX86_BUILTIN_SQRTPS256_MASK, IX86_BUILTIN_SQRTPS128_MASK,
3830 IX86_BUILTIN_PADDB128_MASK, IX86_BUILTIN_PADDW128_MASK,
3831 IX86_BUILTIN_PADDD128_MASK, IX86_BUILTIN_PADDQ128_MASK,
3832 IX86_BUILTIN_PSUBB128_MASK, IX86_BUILTIN_PSUBW128_MASK,
3833 IX86_BUILTIN_PSUBD128_MASK, IX86_BUILTIN_PSUBQ128_MASK,
3834 IX86_BUILTIN_PADDSB128_MASK, IX86_BUILTIN_PADDSW128_MASK,
3835 IX86_BUILTIN_PSUBSB128_MASK, IX86_BUILTIN_PSUBSW128_MASK,
3836 IX86_BUILTIN_PADDUSB128_MASK, IX86_BUILTIN_PADDUSW128_MASK,
3837 IX86_BUILTIN_PSUBUSB128_MASK, IX86_BUILTIN_PSUBUSW128_MASK,
3838 IX86_BUILTIN_PADDB256_MASK, IX86_BUILTIN_PADDW256_MASK,
3839 IX86_BUILTIN_PADDD256_MASK, IX86_BUILTIN_PADDQ256_MASK,
3840 IX86_BUILTIN_PADDSB256_MASK, IX86_BUILTIN_PADDSW256_MASK,
3841 IX86_BUILTIN_PADDUSB256_MASK, IX86_BUILTIN_PADDUSW256_MASK,
3842 IX86_BUILTIN_PSUBB256_MASK, IX86_BUILTIN_PSUBW256_MASK,
3843 IX86_BUILTIN_PSUBD256_MASK, IX86_BUILTIN_PSUBQ256_MASK,
3844 IX86_BUILTIN_PSUBSB256_MASK, IX86_BUILTIN_PSUBSW256_MASK,
3845 IX86_BUILTIN_PSUBUSB256_MASK, IX86_BUILTIN_PSUBUSW256_MASK,
3846 IX86_BUILTIN_SHUF_F64x2_256, IX86_BUILTIN_SHUF_I64x2_256,
3847 IX86_BUILTIN_SHUF_I32x4_256, IX86_BUILTIN_SHUF_F32x4_256,
3848 IX86_BUILTIN_PMOVWB128, IX86_BUILTIN_PMOVWB256,
3849 IX86_BUILTIN_PMOVSWB128, IX86_BUILTIN_PMOVSWB256,
3850 IX86_BUILTIN_PMOVUSWB128, IX86_BUILTIN_PMOVUSWB256,
3851 IX86_BUILTIN_PMOVDB128, IX86_BUILTIN_PMOVDB256,
3852 IX86_BUILTIN_PMOVSDB128, IX86_BUILTIN_PMOVSDB256,
3853 IX86_BUILTIN_PMOVUSDB128, IX86_BUILTIN_PMOVUSDB256,
3854 IX86_BUILTIN_PMOVDW128, IX86_BUILTIN_PMOVDW256,
3855 IX86_BUILTIN_PMOVSDW128, IX86_BUILTIN_PMOVSDW256,
3856 IX86_BUILTIN_PMOVUSDW128, IX86_BUILTIN_PMOVUSDW256,
3857 IX86_BUILTIN_PMOVQB128, IX86_BUILTIN_PMOVQB256,
3858 IX86_BUILTIN_PMOVSQB128, IX86_BUILTIN_PMOVSQB256,
3859 IX86_BUILTIN_PMOVUSQB128, IX86_BUILTIN_PMOVUSQB256,
3860 IX86_BUILTIN_PMOVQW128, IX86_BUILTIN_PMOVQW256,
3861 IX86_BUILTIN_PMOVSQW128, IX86_BUILTIN_PMOVSQW256,
3862 IX86_BUILTIN_PMOVUSQW128, IX86_BUILTIN_PMOVUSQW256,
3863 IX86_BUILTIN_PMOVQD128, IX86_BUILTIN_PMOVQD256,
3864 IX86_BUILTIN_PMOVSQD128, IX86_BUILTIN_PMOVSQD256,
3865 IX86_BUILTIN_PMOVUSQD128, IX86_BUILTIN_PMOVUSQD256,
3866 IX86_BUILTIN_RANGEPD256, IX86_BUILTIN_RANGEPD128,
3867 IX86_BUILTIN_RANGEPS256, IX86_BUILTIN_RANGEPS128,
3868 IX86_BUILTIN_GETEXPPS256, IX86_BUILTIN_GETEXPPD256,
3869 IX86_BUILTIN_GETEXPPS128, IX86_BUILTIN_GETEXPPD128,
3870 IX86_BUILTIN_FIXUPIMMPD256_MASK, IX86_BUILTIN_FIXUPIMMPD256_MASKZ,
3871 IX86_BUILTIN_FIXUPIMMPS256_MASK, IX86_BUILTIN_FIXUPIMMPS256_MASKZ,
3872 IX86_BUILTIN_FIXUPIMMPD128_MASK, IX86_BUILTIN_FIXUPIMMPD128_MASKZ,
3873 IX86_BUILTIN_FIXUPIMMPS128_MASK, IX86_BUILTIN_FIXUPIMMPS128_MASKZ,
3874 IX86_BUILTIN_PABSQ256, IX86_BUILTIN_PABSQ128,
3875 IX86_BUILTIN_PABSD256_MASK, IX86_BUILTIN_PABSD128_MASK,
3876 IX86_BUILTIN_PMULHRSW256_MASK, IX86_BUILTIN_PMULHRSW128_MASK,
3877 IX86_BUILTIN_PMULHUW128_MASK, IX86_BUILTIN_PMULHUW256_MASK,
3878 IX86_BUILTIN_PMULHW256_MASK, IX86_BUILTIN_PMULHW128_MASK,
3879 IX86_BUILTIN_PMULLW256_MASK, IX86_BUILTIN_PMULLW128_MASK,
3880 IX86_BUILTIN_PMULLQ256, IX86_BUILTIN_PMULLQ128,
3881 IX86_BUILTIN_ANDPD256_MASK, IX86_BUILTIN_ANDPD128_MASK,
3882 IX86_BUILTIN_ANDPS256_MASK, IX86_BUILTIN_ANDPS128_MASK,
3883 IX86_BUILTIN_ANDNPD256_MASK, IX86_BUILTIN_ANDNPD128_MASK,
3884 IX86_BUILTIN_ANDNPS256_MASK, IX86_BUILTIN_ANDNPS128_MASK,
3885 IX86_BUILTIN_PSLLWI128_MASK, IX86_BUILTIN_PSLLDI128_MASK,
3886 IX86_BUILTIN_PSLLQI128_MASK, IX86_BUILTIN_PSLLW128_MASK,
3887 IX86_BUILTIN_PSLLD128_MASK, IX86_BUILTIN_PSLLQ128_MASK,
3888 IX86_BUILTIN_PSLLWI256_MASK , IX86_BUILTIN_PSLLW256_MASK,
3889 IX86_BUILTIN_PSLLDI256_MASK, IX86_BUILTIN_PSLLD256_MASK,
3890 IX86_BUILTIN_PSLLQI256_MASK, IX86_BUILTIN_PSLLQ256_MASK,
3891 IX86_BUILTIN_PSRADI128_MASK, IX86_BUILTIN_PSRAD128_MASK,
3892 IX86_BUILTIN_PSRADI256_MASK, IX86_BUILTIN_PSRAD256_MASK,
3893 IX86_BUILTIN_PSRAQI128_MASK, IX86_BUILTIN_PSRAQ128_MASK,
3894 IX86_BUILTIN_PSRAQI256_MASK, IX86_BUILTIN_PSRAQ256_MASK,
3895 IX86_BUILTIN_PANDD256, IX86_BUILTIN_PANDD128,
3896 IX86_BUILTIN_PSRLDI128_MASK, IX86_BUILTIN_PSRLD128_MASK,
3897 IX86_BUILTIN_PSRLDI256_MASK, IX86_BUILTIN_PSRLD256_MASK,
3898 IX86_BUILTIN_PSRLQI128_MASK, IX86_BUILTIN_PSRLQ128_MASK,
3899 IX86_BUILTIN_PSRLQI256_MASK, IX86_BUILTIN_PSRLQ256_MASK,
3900 IX86_BUILTIN_PANDQ256, IX86_BUILTIN_PANDQ128,
3901 IX86_BUILTIN_PANDND256, IX86_BUILTIN_PANDND128,
3902 IX86_BUILTIN_PANDNQ256, IX86_BUILTIN_PANDNQ128,
3903 IX86_BUILTIN_PORD256, IX86_BUILTIN_PORD128,
3904 IX86_BUILTIN_PORQ256, IX86_BUILTIN_PORQ128,
3905 IX86_BUILTIN_PXORD256, IX86_BUILTIN_PXORD128,
3906 IX86_BUILTIN_PXORQ256, IX86_BUILTIN_PXORQ128,
3907 IX86_BUILTIN_PACKSSWB256_MASK, IX86_BUILTIN_PACKSSWB128_MASK,
3908 IX86_BUILTIN_PACKUSWB256_MASK, IX86_BUILTIN_PACKUSWB128_MASK,
3909 IX86_BUILTIN_RNDSCALEPS256, IX86_BUILTIN_RNDSCALEPD256,
3910 IX86_BUILTIN_RNDSCALEPS128, IX86_BUILTIN_RNDSCALEPD128,
3911 IX86_BUILTIN_VTERNLOGQ256_MASK, IX86_BUILTIN_VTERNLOGQ256_MASKZ,
3912 IX86_BUILTIN_VTERNLOGD256_MASK, IX86_BUILTIN_VTERNLOGD256_MASKZ,
3913 IX86_BUILTIN_VTERNLOGQ128_MASK, IX86_BUILTIN_VTERNLOGQ128_MASKZ,
3914 IX86_BUILTIN_VTERNLOGD128_MASK, IX86_BUILTIN_VTERNLOGD128_MASKZ,
3915 IX86_BUILTIN_SCALEFPD256, IX86_BUILTIN_SCALEFPS256,
3916 IX86_BUILTIN_SCALEFPD128, IX86_BUILTIN_SCALEFPS128,
3917 IX86_BUILTIN_VFMADDPD256_MASK, IX86_BUILTIN_VFMADDPD256_MASK3,
3918 IX86_BUILTIN_VFMADDPD256_MASKZ, IX86_BUILTIN_VFMADDPD128_MASK,
3919 IX86_BUILTIN_VFMADDPD128_MASK3, IX86_BUILTIN_VFMADDPD128_MASKZ,
3920 IX86_BUILTIN_VFMADDPS256_MASK, IX86_BUILTIN_VFMADDPS256_MASK3,
3921 IX86_BUILTIN_VFMADDPS256_MASKZ, IX86_BUILTIN_VFMADDPS128_MASK,
3922 IX86_BUILTIN_VFMADDPS128_MASK3, IX86_BUILTIN_VFMADDPS128_MASKZ,
3923 IX86_BUILTIN_VFMSUBPD256_MASK3, IX86_BUILTIN_VFMSUBPD128_MASK3,
3924 IX86_BUILTIN_VFMSUBPS256_MASK3, IX86_BUILTIN_VFMSUBPS128_MASK3,
3925 IX86_BUILTIN_VFNMADDPD256_MASK, IX86_BUILTIN_VFNMADDPD128_MASK,
3926 IX86_BUILTIN_VFNMADDPS256_MASK, IX86_BUILTIN_VFNMADDPS128_MASK,
3927 IX86_BUILTIN_VFNMSUBPD256_MASK, IX86_BUILTIN_VFNMSUBPD256_MASK3,
3928 IX86_BUILTIN_VFNMSUBPD128_MASK, IX86_BUILTIN_VFNMSUBPD128_MASK3,
3929 IX86_BUILTIN_VFNMSUBPS256_MASK, IX86_BUILTIN_VFNMSUBPS256_MASK3,
3930 IX86_BUILTIN_VFNMSUBPS128_MASK, IX86_BUILTIN_VFNMSUBPS128_MASK3,
3931 IX86_BUILTIN_VFMADDSUBPD256_MASK, IX86_BUILTIN_VFMADDSUBPD256_MASK3,
3932 IX86_BUILTIN_VFMADDSUBPD256_MASKZ, IX86_BUILTIN_VFMADDSUBPD128_MASK,
3933 IX86_BUILTIN_VFMADDSUBPD128_MASK3, IX86_BUILTIN_VFMADDSUBPD128_MASKZ,
3934 IX86_BUILTIN_VFMADDSUBPS256_MASK, IX86_BUILTIN_VFMADDSUBPS256_MASK3,
3935 IX86_BUILTIN_VFMADDSUBPS256_MASKZ, IX86_BUILTIN_VFMADDSUBPS128_MASK,
3936 IX86_BUILTIN_VFMADDSUBPS128_MASK3, IX86_BUILTIN_VFMADDSUBPS128_MASKZ,
3937 IX86_BUILTIN_VFMSUBADDPD256_MASK3, IX86_BUILTIN_VFMSUBADDPD128_MASK3,
3938 IX86_BUILTIN_VFMSUBADDPS256_MASK3, IX86_BUILTIN_VFMSUBADDPS128_MASK3,
3939 IX86_BUILTIN_INSERTF64X2_256, IX86_BUILTIN_INSERTI64X2_256,
3940 IX86_BUILTIN_PSRAVV16HI, IX86_BUILTIN_PSRAVV8HI,
3941 IX86_BUILTIN_PMADDUBSW256_MASK, IX86_BUILTIN_PMADDUBSW128_MASK,
3942 IX86_BUILTIN_PMADDWD256_MASK, IX86_BUILTIN_PMADDWD128_MASK,
3943 IX86_BUILTIN_PSRLVV16HI, IX86_BUILTIN_PSRLVV8HI,
3944 IX86_BUILTIN_CVTPS2DQ256_MASK, IX86_BUILTIN_CVTPS2DQ128_MASK,
3945 IX86_BUILTIN_CVTPS2UDQ256, IX86_BUILTIN_CVTPS2UDQ128,
3946 IX86_BUILTIN_CVTPS2QQ256, IX86_BUILTIN_CVTPS2QQ128,
3947 IX86_BUILTIN_CVTPS2UQQ256, IX86_BUILTIN_CVTPS2UQQ128,
3948 IX86_BUILTIN_GETMANTPS256, IX86_BUILTIN_GETMANTPS128,
3949 IX86_BUILTIN_GETMANTPD256, IX86_BUILTIN_GETMANTPD128,
3950 IX86_BUILTIN_MOVDDUP256_MASK, IX86_BUILTIN_MOVDDUP128_MASK,
3951 IX86_BUILTIN_MOVSHDUP256_MASK, IX86_BUILTIN_MOVSHDUP128_MASK,
3952 IX86_BUILTIN_MOVSLDUP256_MASK, IX86_BUILTIN_MOVSLDUP128_MASK,
3953 IX86_BUILTIN_CVTQQ2PS256, IX86_BUILTIN_CVTQQ2PS128,
3954 IX86_BUILTIN_CVTUQQ2PS256, IX86_BUILTIN_CVTUQQ2PS128,
3955 IX86_BUILTIN_CVTQQ2PD256, IX86_BUILTIN_CVTQQ2PD128,
3956 IX86_BUILTIN_CVTUQQ2PD256, IX86_BUILTIN_CVTUQQ2PD128,
3957 IX86_BUILTIN_VPERMT2VARQ256, IX86_BUILTIN_VPERMT2VARQ256_MASKZ,
3958 IX86_BUILTIN_VPERMT2VARD256, IX86_BUILTIN_VPERMT2VARD256_MASKZ,
3959 IX86_BUILTIN_VPERMI2VARQ256, IX86_BUILTIN_VPERMI2VARD256,
3960 IX86_BUILTIN_VPERMT2VARPD256, IX86_BUILTIN_VPERMT2VARPD256_MASKZ,
3961 IX86_BUILTIN_VPERMT2VARPS256, IX86_BUILTIN_VPERMT2VARPS256_MASKZ,
3962 IX86_BUILTIN_VPERMI2VARPD256, IX86_BUILTIN_VPERMI2VARPS256,
3963 IX86_BUILTIN_VPERMT2VARQ128, IX86_BUILTIN_VPERMT2VARQ128_MASKZ,
3964 IX86_BUILTIN_VPERMT2VARD128, IX86_BUILTIN_VPERMT2VARD128_MASKZ,
3965 IX86_BUILTIN_VPERMI2VARQ128, IX86_BUILTIN_VPERMI2VARD128,
3966 IX86_BUILTIN_VPERMT2VARPD128, IX86_BUILTIN_VPERMT2VARPD128_MASKZ,
3967 IX86_BUILTIN_VPERMT2VARPS128, IX86_BUILTIN_VPERMT2VARPS128_MASKZ,
3968 IX86_BUILTIN_VPERMI2VARPD128, IX86_BUILTIN_VPERMI2VARPS128,
3969 IX86_BUILTIN_PSHUFB256_MASK, IX86_BUILTIN_PSHUFB128_MASK,
3970 IX86_BUILTIN_PSHUFHW256_MASK, IX86_BUILTIN_PSHUFHW128_MASK,
3971 IX86_BUILTIN_PSHUFLW256_MASK, IX86_BUILTIN_PSHUFLW128_MASK,
3972 IX86_BUILTIN_PSHUFD256_MASK, IX86_BUILTIN_PSHUFD128_MASK,
3973 IX86_BUILTIN_SHUFPD256_MASK, IX86_BUILTIN_SHUFPD128_MASK,
3974 IX86_BUILTIN_SHUFPS256_MASK, IX86_BUILTIN_SHUFPS128_MASK,
3975 IX86_BUILTIN_PROLVQ256, IX86_BUILTIN_PROLVQ128,
3976 IX86_BUILTIN_PROLQ256, IX86_BUILTIN_PROLQ128,
3977 IX86_BUILTIN_PRORVQ256, IX86_BUILTIN_PRORVQ128,
3978 IX86_BUILTIN_PRORQ256, IX86_BUILTIN_PRORQ128,
3979 IX86_BUILTIN_PSRAVQ128, IX86_BUILTIN_PSRAVQ256,
3980 IX86_BUILTIN_PSLLVV4DI_MASK, IX86_BUILTIN_PSLLVV2DI_MASK,
3981 IX86_BUILTIN_PSLLVV8SI_MASK, IX86_BUILTIN_PSLLVV4SI_MASK,
3982 IX86_BUILTIN_PSRAVV8SI_MASK, IX86_BUILTIN_PSRAVV4SI_MASK,
3983 IX86_BUILTIN_PSRLVV4DI_MASK, IX86_BUILTIN_PSRLVV2DI_MASK,
3984 IX86_BUILTIN_PSRLVV8SI_MASK, IX86_BUILTIN_PSRLVV4SI_MASK,
3985 IX86_BUILTIN_PSRAWI256_MASK, IX86_BUILTIN_PSRAW256_MASK,
3986 IX86_BUILTIN_PSRAWI128_MASK, IX86_BUILTIN_PSRAW128_MASK,
3987 IX86_BUILTIN_PSRLWI256_MASK, IX86_BUILTIN_PSRLW256_MASK,
3988 IX86_BUILTIN_PSRLWI128_MASK, IX86_BUILTIN_PSRLW128_MASK,
3989 IX86_BUILTIN_PRORVD256, IX86_BUILTIN_PROLVD256,
3990 IX86_BUILTIN_PRORD256, IX86_BUILTIN_PROLD256,
3991 IX86_BUILTIN_PRORVD128, IX86_BUILTIN_PROLVD128,
3992 IX86_BUILTIN_PRORD128, IX86_BUILTIN_PROLD128,
3993 IX86_BUILTIN_FPCLASSPD256, IX86_BUILTIN_FPCLASSPD128,
3994 IX86_BUILTIN_FPCLASSSD, IX86_BUILTIN_FPCLASSPS256,
3995 IX86_BUILTIN_FPCLASSPS128, IX86_BUILTIN_FPCLASSSS,
3996 IX86_BUILTIN_CVTB2MASK128, IX86_BUILTIN_CVTB2MASK256,
3997 IX86_BUILTIN_CVTW2MASK128, IX86_BUILTIN_CVTW2MASK256,
3998 IX86_BUILTIN_CVTD2MASK128, IX86_BUILTIN_CVTD2MASK256,
3999 IX86_BUILTIN_CVTQ2MASK128, IX86_BUILTIN_CVTQ2MASK256,
4000 IX86_BUILTIN_CVTMASK2B128, IX86_BUILTIN_CVTMASK2B256,
4001 IX86_BUILTIN_CVTMASK2W128, IX86_BUILTIN_CVTMASK2W256,
4002 IX86_BUILTIN_CVTMASK2D128, IX86_BUILTIN_CVTMASK2D256,
4003 IX86_BUILTIN_CVTMASK2Q128, IX86_BUILTIN_CVTMASK2Q256,
4004 IX86_BUILTIN_PCMPEQB128_MASK, IX86_BUILTIN_PCMPEQB256_MASK,
4005 IX86_BUILTIN_PCMPEQW128_MASK, IX86_BUILTIN_PCMPEQW256_MASK,
4006 IX86_BUILTIN_PCMPEQD128_MASK, IX86_BUILTIN_PCMPEQD256_MASK,
4007 IX86_BUILTIN_PCMPEQQ128_MASK, IX86_BUILTIN_PCMPEQQ256_MASK,
4008 IX86_BUILTIN_PCMPGTB128_MASK, IX86_BUILTIN_PCMPGTB256_MASK,
4009 IX86_BUILTIN_PCMPGTW128_MASK, IX86_BUILTIN_PCMPGTW256_MASK,
4010 IX86_BUILTIN_PCMPGTD128_MASK, IX86_BUILTIN_PCMPGTD256_MASK,
4011 IX86_BUILTIN_PCMPGTQ128_MASK, IX86_BUILTIN_PCMPGTQ256_MASK,
4012 IX86_BUILTIN_PTESTMB128, IX86_BUILTIN_PTESTMB256,
4013 IX86_BUILTIN_PTESTMW128, IX86_BUILTIN_PTESTMW256,
4014 IX86_BUILTIN_PTESTMD128, IX86_BUILTIN_PTESTMD256,
4015 IX86_BUILTIN_PTESTMQ128, IX86_BUILTIN_PTESTMQ256,
4016 IX86_BUILTIN_PTESTNMB128, IX86_BUILTIN_PTESTNMB256,
4017 IX86_BUILTIN_PTESTNMW128, IX86_BUILTIN_PTESTNMW256,
4018 IX86_BUILTIN_PTESTNMD128, IX86_BUILTIN_PTESTNMD256,
4019 IX86_BUILTIN_PTESTNMQ128, IX86_BUILTIN_PTESTNMQ256,
4020 IX86_BUILTIN_PBROADCASTMB128, IX86_BUILTIN_PBROADCASTMB256,
4021 IX86_BUILTIN_PBROADCASTMW128, IX86_BUILTIN_PBROADCASTMW256,
4022 IX86_BUILTIN_COMPRESSPD256, IX86_BUILTIN_COMPRESSPD128,
4023 IX86_BUILTIN_COMPRESSPS256, IX86_BUILTIN_COMPRESSPS128,
4024 IX86_BUILTIN_PCOMPRESSQ256, IX86_BUILTIN_PCOMPRESSQ128,
4025 IX86_BUILTIN_PCOMPRESSD256, IX86_BUILTIN_PCOMPRESSD128,
4026 IX86_BUILTIN_EXPANDPD256, IX86_BUILTIN_EXPANDPD128,
4027 IX86_BUILTIN_EXPANDPS256, IX86_BUILTIN_EXPANDPS128,
4028 IX86_BUILTIN_PEXPANDQ256, IX86_BUILTIN_PEXPANDQ128,
4029 IX86_BUILTIN_PEXPANDD256, IX86_BUILTIN_PEXPANDD128,
4030 IX86_BUILTIN_EXPANDPD256Z, IX86_BUILTIN_EXPANDPD128Z,
4031 IX86_BUILTIN_EXPANDPS256Z, IX86_BUILTIN_EXPANDPS128Z,
4032 IX86_BUILTIN_PEXPANDQ256Z, IX86_BUILTIN_PEXPANDQ128Z,
4033 IX86_BUILTIN_PEXPANDD256Z, IX86_BUILTIN_PEXPANDD128Z,
4034 IX86_BUILTIN_PMAXSD256_MASK, IX86_BUILTIN_PMINSD256_MASK,
4035 IX86_BUILTIN_PMAXUD256_MASK, IX86_BUILTIN_PMINUD256_MASK,
4036 IX86_BUILTIN_PMAXSD128_MASK, IX86_BUILTIN_PMINSD128_MASK,
4037 IX86_BUILTIN_PMAXUD128_MASK, IX86_BUILTIN_PMINUD128_MASK,
4038 IX86_BUILTIN_PMAXSQ256_MASK, IX86_BUILTIN_PMINSQ256_MASK,
4039 IX86_BUILTIN_PMAXUQ256_MASK, IX86_BUILTIN_PMINUQ256_MASK,
4040 IX86_BUILTIN_PMAXSQ128_MASK, IX86_BUILTIN_PMINSQ128_MASK,
4041 IX86_BUILTIN_PMAXUQ128_MASK, IX86_BUILTIN_PMINUQ128_MASK,
4042 IX86_BUILTIN_PMINSB256_MASK, IX86_BUILTIN_PMINUB256_MASK,
4043 IX86_BUILTIN_PMAXSB256_MASK, IX86_BUILTIN_PMAXUB256_MASK,
4044 IX86_BUILTIN_PMINSB128_MASK, IX86_BUILTIN_PMINUB128_MASK,
4045 IX86_BUILTIN_PMAXSB128_MASK, IX86_BUILTIN_PMAXUB128_MASK,
4046 IX86_BUILTIN_PMINSW256_MASK, IX86_BUILTIN_PMINUW256_MASK,
4047 IX86_BUILTIN_PMAXSW256_MASK, IX86_BUILTIN_PMAXUW256_MASK,
4048 IX86_BUILTIN_PMINSW128_MASK, IX86_BUILTIN_PMINUW128_MASK,
4049 IX86_BUILTIN_PMAXSW128_MASK, IX86_BUILTIN_PMAXUW128_MASK,
4050 IX86_BUILTIN_VPCONFLICTQ256, IX86_BUILTIN_VPCONFLICTD256,
4051 IX86_BUILTIN_VPCLZCNTQ256, IX86_BUILTIN_VPCLZCNTD256,
4052 IX86_BUILTIN_UNPCKHPD256_MASK, IX86_BUILTIN_UNPCKHPD128_MASK,
4053 IX86_BUILTIN_UNPCKHPS256_MASK, IX86_BUILTIN_UNPCKHPS128_MASK,
4054 IX86_BUILTIN_UNPCKLPD256_MASK, IX86_BUILTIN_UNPCKLPD128_MASK,
4055 IX86_BUILTIN_UNPCKLPS256_MASK, IX86_BUILTIN_VPCONFLICTQ128,
4056 IX86_BUILTIN_VPCONFLICTD128, IX86_BUILTIN_VPCLZCNTQ128,
4057 IX86_BUILTIN_VPCLZCNTD128, IX86_BUILTIN_UNPCKLPS128_MASK,
4058 IX86_BUILTIN_ALIGND256, IX86_BUILTIN_ALIGNQ256,
4059 IX86_BUILTIN_ALIGND128, IX86_BUILTIN_ALIGNQ128,
4060 IX86_BUILTIN_CVTPS2PH256_MASK, IX86_BUILTIN_CVTPS2PH_MASK,
4061 IX86_BUILTIN_CVTPH2PS_MASK, IX86_BUILTIN_CVTPH2PS256_MASK,
4062 IX86_BUILTIN_PUNPCKHDQ128_MASK, IX86_BUILTIN_PUNPCKHDQ256_MASK,
4063 IX86_BUILTIN_PUNPCKHQDQ128_MASK, IX86_BUILTIN_PUNPCKHQDQ256_MASK,
4064 IX86_BUILTIN_PUNPCKLDQ128_MASK, IX86_BUILTIN_PUNPCKLDQ256_MASK,
4065 IX86_BUILTIN_PUNPCKLQDQ128_MASK, IX86_BUILTIN_PUNPCKLQDQ256_MASK,
4066 IX86_BUILTIN_PUNPCKHBW128_MASK, IX86_BUILTIN_PUNPCKHBW256_MASK,
4067 IX86_BUILTIN_PUNPCKHWD128_MASK, IX86_BUILTIN_PUNPCKHWD256_MASK,
4068 IX86_BUILTIN_PUNPCKLBW128_MASK, IX86_BUILTIN_PUNPCKLBW256_MASK,
4069 IX86_BUILTIN_PUNPCKLWD128_MASK, IX86_BUILTIN_PUNPCKLWD256_MASK,
4070 IX86_BUILTIN_PSLLVV16HI, IX86_BUILTIN_PSLLVV8HI,
4071 IX86_BUILTIN_PACKSSDW256_MASK, IX86_BUILTIN_PACKSSDW128_MASK,
4072 IX86_BUILTIN_PACKUSDW256_MASK, IX86_BUILTIN_PACKUSDW128_MASK,
4073 IX86_BUILTIN_PAVGB256_MASK, IX86_BUILTIN_PAVGW256_MASK,
4074 IX86_BUILTIN_PAVGB128_MASK, IX86_BUILTIN_PAVGW128_MASK,
4075 IX86_BUILTIN_VPERMVARSF256_MASK, IX86_BUILTIN_VPERMVARDF256_MASK,
4076 IX86_BUILTIN_VPERMDF256_MASK, IX86_BUILTIN_PABSB256_MASK,
4077 IX86_BUILTIN_PABSB128_MASK, IX86_BUILTIN_PABSW256_MASK,
4078 IX86_BUILTIN_PABSW128_MASK, IX86_BUILTIN_VPERMILVARPD_MASK,
4079 IX86_BUILTIN_VPERMILVARPS_MASK, IX86_BUILTIN_VPERMILVARPD256_MASK,
4080 IX86_BUILTIN_VPERMILVARPS256_MASK, IX86_BUILTIN_VPERMILPD_MASK,
4081 IX86_BUILTIN_VPERMILPS_MASK, IX86_BUILTIN_VPERMILPD256_MASK,
4082 IX86_BUILTIN_VPERMILPS256_MASK, IX86_BUILTIN_BLENDMQ256,
4083 IX86_BUILTIN_BLENDMD256, IX86_BUILTIN_BLENDMPD256,
4084 IX86_BUILTIN_BLENDMPS256, IX86_BUILTIN_BLENDMQ128,
4085 IX86_BUILTIN_BLENDMD128, IX86_BUILTIN_BLENDMPD128,
4086 IX86_BUILTIN_BLENDMPS128, IX86_BUILTIN_BLENDMW256,
4087 IX86_BUILTIN_BLENDMB256, IX86_BUILTIN_BLENDMW128,
4088 IX86_BUILTIN_BLENDMB128, IX86_BUILTIN_PMULLD256_MASK,
4089 IX86_BUILTIN_PMULLD128_MASK, IX86_BUILTIN_PMULUDQ256_MASK,
4090 IX86_BUILTIN_PMULDQ256_MASK, IX86_BUILTIN_PMULDQ128_MASK,
4091 IX86_BUILTIN_PMULUDQ128_MASK, IX86_BUILTIN_CVTPD2PS256_MASK,
4092 IX86_BUILTIN_CVTPD2PS_MASK, IX86_BUILTIN_VPERMVARSI256_MASK,
4093 IX86_BUILTIN_VPERMVARDI256_MASK, IX86_BUILTIN_VPERMDI256_MASK,
4094 IX86_BUILTIN_CMPQ256, IX86_BUILTIN_CMPD256,
4095 IX86_BUILTIN_UCMPQ256, IX86_BUILTIN_UCMPD256,
4096 IX86_BUILTIN_CMPB256, IX86_BUILTIN_CMPW256,
4097 IX86_BUILTIN_UCMPB256, IX86_BUILTIN_UCMPW256,
4098 IX86_BUILTIN_CMPPD256_MASK, IX86_BUILTIN_CMPPS256_MASK,
4099 IX86_BUILTIN_CMPQ128, IX86_BUILTIN_CMPD128,
4100 IX86_BUILTIN_UCMPQ128, IX86_BUILTIN_UCMPD128,
4101 IX86_BUILTIN_CMPB128, IX86_BUILTIN_CMPW128,
4102 IX86_BUILTIN_UCMPB128, IX86_BUILTIN_UCMPW128,
4103 IX86_BUILTIN_CMPPD128_MASK, IX86_BUILTIN_CMPPS128_MASK,
4104 IX86_BUILTIN_GATHER3SIV8SF, IX86_BUILTIN_GATHER3SIV4SF,
4105 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV2DF,
4106 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3DIV4SF,
4107 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
4108 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3SIV4SI,
4109 IX86_BUILTIN_GATHER3SIV4DI, IX86_BUILTIN_GATHER3SIV2DI,
4110 IX86_BUILTIN_GATHER3DIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
4111 IX86_BUILTIN_GATHER3DIV4DI, IX86_BUILTIN_GATHER3DIV2DI,
4112 IX86_BUILTIN_SCATTERSIV8SF, IX86_BUILTIN_SCATTERSIV4SF,
4113 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV2DF,
4114 IX86_BUILTIN_SCATTERDIV8SF, IX86_BUILTIN_SCATTERDIV4SF,
4115 IX86_BUILTIN_SCATTERDIV4DF, IX86_BUILTIN_SCATTERDIV2DF,
4116 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV4SI,
4117 IX86_BUILTIN_SCATTERSIV4DI, IX86_BUILTIN_SCATTERSIV2DI,
4118 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_SCATTERDIV4SI,
4119 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
4120 IX86_BUILTIN_RANGESD128, IX86_BUILTIN_RANGESS128,
4121 IX86_BUILTIN_KUNPCKWD, IX86_BUILTIN_KUNPCKDQ,
4122 IX86_BUILTIN_BROADCASTF32x2_512, IX86_BUILTIN_BROADCASTI32x2_512,
4123 IX86_BUILTIN_BROADCASTF64X2_512, IX86_BUILTIN_BROADCASTI64X2_512,
4124 IX86_BUILTIN_BROADCASTF32X8_512, IX86_BUILTIN_BROADCASTI32X8_512,
4125 IX86_BUILTIN_EXTRACTF64X2_512, IX86_BUILTIN_EXTRACTF32X8,
4126 IX86_BUILTIN_EXTRACTI64X2_512, IX86_BUILTIN_EXTRACTI32X8,
4127 IX86_BUILTIN_REDUCEPD512_MASK, IX86_BUILTIN_REDUCEPS512_MASK,
4128 IX86_BUILTIN_PMULLQ512, IX86_BUILTIN_XORPD512,
4129 IX86_BUILTIN_XORPS512, IX86_BUILTIN_ORPD512,
4130 IX86_BUILTIN_ORPS512, IX86_BUILTIN_ANDPD512,
4131 IX86_BUILTIN_ANDPS512, IX86_BUILTIN_ANDNPD512,
4132 IX86_BUILTIN_ANDNPS512, IX86_BUILTIN_INSERTF32X8,
4133 IX86_BUILTIN_INSERTI32X8, IX86_BUILTIN_INSERTF64X2_512,
4134 IX86_BUILTIN_INSERTI64X2_512, IX86_BUILTIN_FPCLASSPD512,
4135 IX86_BUILTIN_FPCLASSPS512, IX86_BUILTIN_CVTD2MASK512,
4136 IX86_BUILTIN_CVTQ2MASK512, IX86_BUILTIN_CVTMASK2D512,
4137 IX86_BUILTIN_CVTMASK2Q512, IX86_BUILTIN_CVTPD2QQ512,
4138 IX86_BUILTIN_CVTPS2QQ512, IX86_BUILTIN_CVTPD2UQQ512,
4139 IX86_BUILTIN_CVTPS2UQQ512, IX86_BUILTIN_CVTQQ2PS512,
4140 IX86_BUILTIN_CVTUQQ2PS512, IX86_BUILTIN_CVTQQ2PD512,
4141 IX86_BUILTIN_CVTUQQ2PD512, IX86_BUILTIN_CVTTPS2QQ512,
4142 IX86_BUILTIN_CVTTPS2UQQ512, IX86_BUILTIN_CVTTPD2QQ512,
4143 IX86_BUILTIN_CVTTPD2UQQ512, IX86_BUILTIN_RANGEPS512,
4144 IX86_BUILTIN_RANGEPD512, IX86_BUILTIN_PACKUSDW512,
4145 IX86_BUILTIN_PACKSSDW512, IX86_BUILTIN_LOADDQUHI512_MASK,
4146 IX86_BUILTIN_LOADDQUQI512_MASK, IX86_BUILTIN_PSLLDQ512,
4147 IX86_BUILTIN_PSRLDQ512, IX86_BUILTIN_STOREDQUHI512_MASK,
4148 IX86_BUILTIN_STOREDQUQI512_MASK, IX86_BUILTIN_PALIGNR512,
4149 IX86_BUILTIN_PALIGNR512_MASK, IX86_BUILTIN_MOVDQUHI512_MASK,
4150 IX86_BUILTIN_MOVDQUQI512_MASK, IX86_BUILTIN_PSADBW512,
4151 IX86_BUILTIN_DBPSADBW512, IX86_BUILTIN_PBROADCASTB512,
4152 IX86_BUILTIN_PBROADCASTB512_GPR, IX86_BUILTIN_PBROADCASTW512,
4153 IX86_BUILTIN_PBROADCASTW512_GPR, IX86_BUILTIN_PMOVSXBW512_MASK,
4154 IX86_BUILTIN_PMOVZXBW512_MASK, IX86_BUILTIN_VPERMVARHI512_MASK,
4155 IX86_BUILTIN_VPERMT2VARHI512, IX86_BUILTIN_VPERMT2VARHI512_MASKZ,
4156 IX86_BUILTIN_VPERMI2VARHI512, IX86_BUILTIN_PAVGB512,
4157 IX86_BUILTIN_PAVGW512, IX86_BUILTIN_PADDB512,
4158 IX86_BUILTIN_PSUBB512, IX86_BUILTIN_PSUBSB512,
4159 IX86_BUILTIN_PADDSB512, IX86_BUILTIN_PSUBUSB512,
4160 IX86_BUILTIN_PADDUSB512, IX86_BUILTIN_PSUBW512,
4161 IX86_BUILTIN_PADDW512, IX86_BUILTIN_PSUBSW512,
4162 IX86_BUILTIN_PADDSW512, IX86_BUILTIN_PSUBUSW512,
4163 IX86_BUILTIN_PADDUSW512, IX86_BUILTIN_PMAXUW512,
4164 IX86_BUILTIN_PMAXSW512, IX86_BUILTIN_PMINUW512,
4165 IX86_BUILTIN_PMINSW512, IX86_BUILTIN_PMAXUB512,
4166 IX86_BUILTIN_PMAXSB512, IX86_BUILTIN_PMINUB512,
4167 IX86_BUILTIN_PMINSB512, IX86_BUILTIN_PMOVWB512,
4168 IX86_BUILTIN_PMOVSWB512, IX86_BUILTIN_PMOVUSWB512,
4169 IX86_BUILTIN_PMULHRSW512_MASK, IX86_BUILTIN_PMULHUW512_MASK,
4170 IX86_BUILTIN_PMULHW512_MASK, IX86_BUILTIN_PMULLW512_MASK,
4171 IX86_BUILTIN_PSLLWI512_MASK, IX86_BUILTIN_PSLLW512_MASK,
4172 IX86_BUILTIN_PACKSSWB512, IX86_BUILTIN_PACKUSWB512,
4173 IX86_BUILTIN_PSRAVV32HI, IX86_BUILTIN_PMADDUBSW512_MASK,
4174 IX86_BUILTIN_PMADDWD512_MASK, IX86_BUILTIN_PSRLVV32HI,
4175 IX86_BUILTIN_PUNPCKHBW512, IX86_BUILTIN_PUNPCKHWD512,
4176 IX86_BUILTIN_PUNPCKLBW512, IX86_BUILTIN_PUNPCKLWD512,
4177 IX86_BUILTIN_PSHUFB512, IX86_BUILTIN_PSHUFHW512,
4178 IX86_BUILTIN_PSHUFLW512, IX86_BUILTIN_PSRAWI512,
4179 IX86_BUILTIN_PSRAW512, IX86_BUILTIN_PSRLWI512,
4180 IX86_BUILTIN_PSRLW512, IX86_BUILTIN_CVTB2MASK512,
4181 IX86_BUILTIN_CVTW2MASK512, IX86_BUILTIN_CVTMASK2B512,
4182 IX86_BUILTIN_CVTMASK2W512, IX86_BUILTIN_PCMPEQB512_MASK,
4183 IX86_BUILTIN_PCMPEQW512_MASK, IX86_BUILTIN_PCMPGTB512_MASK,
4184 IX86_BUILTIN_PCMPGTW512_MASK, IX86_BUILTIN_PTESTMB512,
4185 IX86_BUILTIN_PTESTMW512, IX86_BUILTIN_PTESTNMB512,
4186 IX86_BUILTIN_PTESTNMW512, IX86_BUILTIN_PSLLVV32HI,
4187 IX86_BUILTIN_PABSB512, IX86_BUILTIN_PABSW512,
4188 IX86_BUILTIN_BLENDMW512, IX86_BUILTIN_BLENDMB512,
4189 IX86_BUILTIN_CMPB512, IX86_BUILTIN_CMPW512,
4190 IX86_BUILTIN_UCMPB512, IX86_BUILTIN_UCMPW512.
4191 (bdesc_special_args):
4192 Add __builtin_ia32_loaddquhi512_mask, __builtin_ia32_loaddquqi512_mask,
4193 __builtin_ia32_storedquhi512_mask, __builtin_ia32_storedquqi512_mask,
4194 __builtin_ia32_loaddquhi256_mask, __builtin_ia32_loaddquhi128_mask,
4195 __builtin_ia32_loaddquqi256_mask, __builtin_ia32_loaddquqi128_mask,
4196 __builtin_ia32_movdqa64load256_mask, __builtin_ia32_movdqa64load128_mask,
4197 __builtin_ia32_movdqa32load256_mask, __builtin_ia32_movdqa32load128_mask,
4198 __builtin_ia32_movdqa64store256_mask, __builtin_ia32_movdqa64store128_mask,
4199 __builtin_ia32_movdqa32store256_mask, __builtin_ia32_movdqa32store128_mask,
4200 __builtin_ia32_loadapd256_mask, __builtin_ia32_loadapd128_mask,
4201 __builtin_ia32_loadaps256_mask, __builtin_ia32_loadaps128_mask,
4202 __builtin_ia32_storeapd256_mask, __builtin_ia32_storeapd128_mask,
4203 __builtin_ia32_storeaps256_mask, __builtin_ia32_storeaps128_mask,
4204 __builtin_ia32_loadupd256_mask, __builtin_ia32_loadupd128_mask,
4205 __builtin_ia32_loadups256_mask, __builtin_ia32_loadups128_mask,
4206 __builtin_ia32_storeupd256_mask, __builtin_ia32_storeupd128_mask,
4207 __builtin_ia32_storeups256_mask, __builtin_ia32_storeups128_mask,
4208 __builtin_ia32_loaddqudi256_mask, __builtin_ia32_loaddqudi128_mask,
4209 __builtin_ia32_loaddqusi256_mask, __builtin_ia32_loaddqusi128_mask,
4210 __builtin_ia32_storedqudi256_mask, __builtin_ia32_storedqudi128_mask,
4211 __builtin_ia32_storedqusi256_mask, __builtin_ia32_storedqusi128_mask,
4212 __builtin_ia32_storedquhi256_mask, __builtin_ia32_storedquhi128_mask,
4213 __builtin_ia32_storedquqi256_mask, __builtin_ia32_storedquqi128_mask,
4214 __builtin_ia32_compressstoredf256_mask, __builtin_ia32_compressstoredf128_mask,
4215 __builtin_ia32_compressstoresf256_mask, __builtin_ia32_compressstoresf128_mask,
4216 __builtin_ia32_compressstoredi256_mask, __builtin_ia32_compressstoredi128_mask,
4217 __builtin_ia32_compressstoresi256_mask, __builtin_ia32_compressstoresi128_mask,
4218 __builtin_ia32_expandloaddf256_mask, __builtin_ia32_expandloaddf128_mask,
4219 __builtin_ia32_expandloadsf256_mask, __builtin_ia32_expandloadsf128_mask,
4220 __builtin_ia32_expandloaddi256_mask, __builtin_ia32_expandloaddi128_mask,
4221 __builtin_ia32_expandloadsi256_mask, __builtin_ia32_expandloadsi128_mask,
4222 __builtin_ia32_expandloaddf256_maskz, __builtin_ia32_expandloaddf128_maskz,
4223 __builtin_ia32_expandloadsf256_maskz, __builtin_ia32_expandloadsf128_maskz,
4224 __builtin_ia32_expandloaddi256_maskz, __builtin_ia32_expandloaddi128_maskz,
4225 __builtin_ia32_expandloadsi256_maskz, __builtin_ia32_expandloadsi128_maskz,
4226 __builtin_ia32_pmovqd256mem_mask, __builtin_ia32_pmovqd128mem_mask,
4227 __builtin_ia32_pmovsqd256mem_mask, __builtin_ia32_pmovsqd128mem_mask,
4228 __builtin_ia32_pmovusqd256mem_mask, __builtin_ia32_pmovusqd128mem_mask,
4229 __builtin_ia32_pmovqw256mem_mask, __builtin_ia32_pmovqw128mem_mask,
4230 __builtin_ia32_pmovsqw256mem_mask, __builtin_ia32_pmovsqw128mem_mask,
4231 __builtin_ia32_pmovusqw256mem_mask, __builtin_ia32_pmovusqw128mem_mask,
4232 __builtin_ia32_pmovqb256mem_mask, __builtin_ia32_pmovqb128mem_mask,
4233 __builtin_ia32_pmovsqb256mem_mask, __builtin_ia32_pmovsqb128mem_mask,
4234 __builtin_ia32_pmovusqb256mem_mask, __builtin_ia32_pmovusqb128mem_mask,
4235 __builtin_ia32_pmovdb256mem_mask, __builtin_ia32_pmovdb128mem_mask,
4236 __builtin_ia32_pmovsdb256mem_mask, __builtin_ia32_pmovsdb128mem_mask,
4237 __builtin_ia32_pmovusdb256mem_mask, __builtin_ia32_pmovusdb128mem_mask,
4238 __builtin_ia32_pmovdw256mem_mask, __builtin_ia32_pmovdw128mem_mask,
4239 __builtin_ia32_pmovsdw256mem_mask, __builtin_ia32_pmovsdw128mem_mask,
4240 __builtin_ia32_pmovusdw256mem_mask, __builtin_ia32_pmovusdw128mem_mask,
4241 __builtin_ia32_palignr256_mask, __builtin_ia32_palignr128_mask,
4242 __builtin_ia32_movdqa64_256_mask, __builtin_ia32_movdqa64_128_mask,
4243 __builtin_ia32_movdqa32_256_mask, __builtin_ia32_movdqa32_128_mask,
4244 __builtin_ia32_movapd256_mask, __builtin_ia32_movapd128_mask,
4245 __builtin_ia32_movaps256_mask, __builtin_ia32_movaps128_mask,
4246 __builtin_ia32_movdquhi256_mask, __builtin_ia32_movdquhi128_mask,
4247 __builtin_ia32_movdquqi256_mask, __builtin_ia32_movdquqi128_mask,
4248 __builtin_ia32_minps_mask, __builtin_ia32_maxps_mask,
4249 __builtin_ia32_minpd_mask, __builtin_ia32_maxpd_mask,
4250 __builtin_ia32_maxpd256_mask, __builtin_ia32_maxps256_mask,
4251 __builtin_ia32_minpd256_mask, __builtin_ia32_minps256_mask,
4252 __builtin_ia32_mulps_mask, __builtin_ia32_divps_mask,
4253 __builtin_ia32_mulpd_mask, __builtin_ia32_divpd_mask,
4254 __builtin_ia32_divpd256_mask, __builtin_ia32_divps256_mask,
4255 __builtin_ia32_mulpd256_mask, __builtin_ia32_mulps256_mask,
4256 __builtin_ia32_addpd128_mask, __builtin_ia32_addpd256_mask,
4257 __builtin_ia32_addps128_mask, __builtin_ia32_addps256_mask,
4258 __builtin_ia32_subpd128_mask, __builtin_ia32_subpd256_mask,
4259 __builtin_ia32_subps128_mask, __builtin_ia32_subps256_mask,
4260 __builtin_ia32_xorpd256_mask, __builtin_ia32_xorpd128_mask,
4261 __builtin_ia32_xorps256_mask, __builtin_ia32_xorps128_mask,
4262 __builtin_ia32_orpd256_mask, __builtin_ia32_orpd128_mask,
4263 __builtin_ia32_orps256_mask, __builtin_ia32_orps128_mask,
4264 __builtin_ia32_broadcastf32x2_256_mask, __builtin_ia32_broadcasti32x2_256_mask,
4265 __builtin_ia32_broadcasti32x2_128_mask, __builtin_ia32_broadcastf64x2_256_mask,
4266 __builtin_ia32_broadcasti64x2_256_mask, __builtin_ia32_broadcastf32x4_256_mask,
4267 __builtin_ia32_broadcasti32x4_256_mask, __builtin_ia32_extractf32x4_256_mask,
4268 __builtin_ia32_extracti32x4_256_mask, __builtin_ia32_dbpsadbw256_mask,
4269 __builtin_ia32_dbpsadbw128_mask, __builtin_ia32_cvttpd2qq256_mask,
4270 __builtin_ia32_cvttpd2qq128_mask, __builtin_ia32_cvttpd2uqq256_mask,
4271 __builtin_ia32_cvttpd2uqq128_mask, __builtin_ia32_cvtpd2qq256_mask,
4272 __builtin_ia32_cvtpd2qq128_mask, __builtin_ia32_cvtpd2uqq256_mask,
4273 __builtin_ia32_cvtpd2uqq128_mask, __builtin_ia32_cvtpd2udq256_mask,
4274 __builtin_ia32_cvtpd2udq128_mask, __builtin_ia32_cvttps2qq256_mask,
4275 __builtin_ia32_cvttps2qq128_mask, __builtin_ia32_cvttps2uqq256_mask,
4276 __builtin_ia32_cvttps2uqq128_mask, __builtin_ia32_cvttps2dq256_mask,
4277 __builtin_ia32_cvttps2dq128_mask, __builtin_ia32_cvttps2udq256_mask,
4278 __builtin_ia32_cvttps2udq128_mask, __builtin_ia32_cvttpd2dq256_mask,
4279 __builtin_ia32_cvttpd2dq128_mask, __builtin_ia32_cvttpd2udq256_mask,
4280 __builtin_ia32_cvttpd2udq128_mask, __builtin_ia32_cvtpd2dq256_mask,
4281 __builtin_ia32_cvtpd2dq128_mask, __builtin_ia32_cvtdq2pd256_mask,
4282 __builtin_ia32_cvtdq2pd128_mask, __builtin_ia32_cvtudq2pd256_mask,
4283 __builtin_ia32_cvtudq2pd128_mask, __builtin_ia32_cvtdq2ps256_mask,
4284 __builtin_ia32_cvtdq2ps128_mask, __builtin_ia32_cvtudq2ps256_mask,
4285 __builtin_ia32_cvtudq2ps128_mask, __builtin_ia32_cvtps2pd256_mask,
4286 __builtin_ia32_cvtps2pd128_mask, __builtin_ia32_pbroadcastb256_mask,
4287 __builtin_ia32_pbroadcastb256_gpr_mask, __builtin_ia32_pbroadcastb128_mask,
4288 __builtin_ia32_pbroadcastb128_gpr_mask, __builtin_ia32_pbroadcastw256_mask,
4289 __builtin_ia32_pbroadcastw256_gpr_mask, __builtin_ia32_pbroadcastw128_mask,
4290 __builtin_ia32_pbroadcastw128_gpr_mask, __builtin_ia32_pbroadcastd256_mask,
4291 __builtin_ia32_pbroadcastd256_gpr_mask, __builtin_ia32_pbroadcastd128_mask,
4292 __builtin_ia32_pbroadcastd128_gpr_mask, __builtin_ia32_pbroadcastq256_mask,
4293 __builtin_ia32_pbroadcastq256_gpr_mask, __builtin_ia32_pbroadcastq256_mem_mask,
4294 __builtin_ia32_pbroadcastq128_mask, __builtin_ia32_pbroadcastq128_gpr_mask,
4295 __builtin_ia32_pbroadcastq128_mem_mask, __builtin_ia32_broadcastss256_mask,
4296 __builtin_ia32_broadcastss128_mask, __builtin_ia32_broadcastsd256_mask,
4297 __builtin_ia32_extractf64x2_256_mask, __builtin_ia32_extracti64x2_256_mask,
4298 __builtin_ia32_insertf32x4_256_mask, __builtin_ia32_inserti32x4_256_mask,
4299 __builtin_ia32_pmovsxbw256_mask, __builtin_ia32_pmovsxbw128_mask,
4300 __builtin_ia32_pmovsxbd256_mask, __builtin_ia32_pmovsxbd128_mask,
4301 __builtin_ia32_pmovsxbq256_mask, __builtin_ia32_pmovsxbq128_mask,
4302 __builtin_ia32_pmovsxwd256_mask, __builtin_ia32_pmovsxwd128_mask,
4303 __builtin_ia32_pmovsxwq256_mask, __builtin_ia32_pmovsxwq128_mask,
4304 __builtin_ia32_pmovsxdq256_mask, __builtin_ia32_pmovsxdq128_mask,
4305 __builtin_ia32_pmovzxbw256_mask, __builtin_ia32_pmovzxbw128_mask,
4306 __builtin_ia32_pmovzxbd256_mask, __builtin_ia32_pmovzxbd128_mask,
4307 __builtin_ia32_pmovzxbq256_mask, __builtin_ia32_pmovzxbq128_mask,
4308 __builtin_ia32_pmovzxwd256_mask, __builtin_ia32_pmovzxwd128_mask,
4309 __builtin_ia32_pmovzxwq256_mask, __builtin_ia32_pmovzxwq128_mask,
4310 __builtin_ia32_pmovzxdq256_mask, __builtin_ia32_pmovzxdq128_mask,
4311 __builtin_ia32_reducepd256_mask, __builtin_ia32_reducepd128_mask,
4312 __builtin_ia32_reduceps256_mask, __builtin_ia32_reduceps128_mask,
4313 __builtin_ia32_reducesd, __builtin_ia32_reducess,
4314 __builtin_ia32_permvarhi256_mask, __builtin_ia32_permvarhi128_mask,
4315 __builtin_ia32_vpermt2varhi256_mask, __builtin_ia32_vpermt2varhi256_maskz,
4316 __builtin_ia32_vpermt2varhi128_mask, __builtin_ia32_vpermt2varhi128_maskz,
4317 __builtin_ia32_vpermi2varhi256_mask, __builtin_ia32_vpermi2varhi128_mask,
4318 __builtin_ia32_rcp14pd256_mask, __builtin_ia32_rcp14pd128_mask,
4319 __builtin_ia32_rcp14ps256_mask, __builtin_ia32_rcp14ps128_mask,
4320 __builtin_ia32_rsqrt14pd256_mask, __builtin_ia32_rsqrt14pd128_mask,
4321 __builtin_ia32_rsqrt14ps256_mask, __builtin_ia32_rsqrt14ps128_mask,
4322 __builtin_ia32_sqrtpd256_mask, __builtin_ia32_sqrtpd128_mask,
4323 __builtin_ia32_sqrtps256_mask, __builtin_ia32_sqrtps128_mask,
4324 __builtin_ia32_paddb128_mask, __builtin_ia32_paddw128_mask,
4325 __builtin_ia32_paddd128_mask, __builtin_ia32_paddq128_mask,
4326 __builtin_ia32_psubb128_mask, __builtin_ia32_psubw128_mask,
4327 __builtin_ia32_psubd128_mask, __builtin_ia32_psubq128_mask,
4328 __builtin_ia32_paddsb128_mask, __builtin_ia32_paddsw128_mask,
4329 __builtin_ia32_psubsb128_mask, __builtin_ia32_psubsw128_mask,
4330 __builtin_ia32_paddusb128_mask, __builtin_ia32_paddusw128_mask,
4331 __builtin_ia32_psubusb128_mask, __builtin_ia32_psubusw128_mask,
4332 __builtin_ia32_paddb256_mask, __builtin_ia32_paddw256_mask,
4333 __builtin_ia32_paddd256_mask, __builtin_ia32_paddq256_mask,
4334 __builtin_ia32_paddsb256_mask, __builtin_ia32_paddsw256_mask,
4335 __builtin_ia32_paddusb256_mask, __builtin_ia32_paddusw256_mask,
4336 __builtin_ia32_psubb256_mask, __builtin_ia32_psubw256_mask,
4337 __builtin_ia32_psubd256_mask, __builtin_ia32_psubq256_mask,
4338 __builtin_ia32_psubsb256_mask, __builtin_ia32_psubsw256_mask,
4339 __builtin_ia32_psubusb256_mask, __builtin_ia32_psubusw256_mask,
4340 __builtin_ia32_shuf_f64x2_256_mask, __builtin_ia32_shuf_i64x2_256_mask,
4341 __builtin_ia32_shuf_i32x4_256_mask, __builtin_ia32_shuf_f32x4_256_mask,
4342 __builtin_ia32_pmovwb128_mask, __builtin_ia32_pmovwb256_mask,
4343 __builtin_ia32_pmovswb128_mask, __builtin_ia32_pmovswb256_mask,
4344 __builtin_ia32_pmovuswb128_mask, __builtin_ia32_pmovuswb256_mask,
4345 __builtin_ia32_pmovdb128_mask, __builtin_ia32_pmovdb256_mask,
4346 __builtin_ia32_pmovsdb128_mask, __builtin_ia32_pmovsdb256_mask,
4347 __builtin_ia32_pmovusdb128_mask, __builtin_ia32_pmovusdb256_mask,
4348 __builtin_ia32_pmovdw128_mask, __builtin_ia32_pmovdw256_mask,
4349 __builtin_ia32_pmovsdw128_mask, __builtin_ia32_pmovsdw256_mask,
4350 __builtin_ia32_pmovusdw128_mask, __builtin_ia32_pmovusdw256_mask,
4351 __builtin_ia32_pmovqb128_mask, __builtin_ia32_pmovqb256_mask,
4352 __builtin_ia32_pmovsqb128_mask, __builtin_ia32_pmovsqb256_mask,
4353 __builtin_ia32_pmovusqb128_mask, __builtin_ia32_pmovusqb256_mask,
4354 __builtin_ia32_pmovqw128_mask, __builtin_ia32_pmovqw256_mask,
4355 __builtin_ia32_pmovsqw128_mask, __builtin_ia32_pmovsqw256_mask,
4356 __builtin_ia32_pmovusqw128_mask, __builtin_ia32_pmovusqw256_mask,
4357 __builtin_ia32_pmovqd128_mask, __builtin_ia32_pmovqd256_mask,
4358 __builtin_ia32_pmovsqd128_mask, __builtin_ia32_pmovsqd256_mask,
4359 __builtin_ia32_pmovusqd128_mask, __builtin_ia32_pmovusqd256_mask,
4360 __builtin_ia32_rangepd256_mask, __builtin_ia32_rangepd128_mask,
4361 __builtin_ia32_rangeps256_mask, __builtin_ia32_rangeps128_mask,
4362 __builtin_ia32_getexpps256_mask, __builtin_ia32_getexppd256_mask,
4363 __builtin_ia32_getexpps128_mask, __builtin_ia32_getexppd128_mask,
4364 __builtin_ia32_fixupimmpd256, __builtin_ia32_fixupimmpd256_mask,
4365 __builtin_ia32_fixupimmpd256_maskz, __builtin_ia32_fixupimmps256,
4366 __builtin_ia32_fixupimmps256_mask, __builtin_ia32_fixupimmps256_maskz,
4367 __builtin_ia32_fixupimmpd128, __builtin_ia32_fixupimmpd128_mask,
4368 __builtin_ia32_fixupimmpd128_maskz, __builtin_ia32_fixupimmps128,
4369 __builtin_ia32_fixupimmps128_mask, __builtin_ia32_fixupimmps128_maskz,
4370 __builtin_ia32_pabsq256_mask, __builtin_ia32_pabsq128_mask,
4371 __builtin_ia32_pabsd256_mask, __builtin_ia32_pabsd128_mask,
4372 __builtin_ia32_pmulhrsw256_mask, __builtin_ia32_pmulhrsw128_mask,
4373 __builtin_ia32_pmulhuw128_mask, __builtin_ia32_pmulhuw256_mask,
4374 __builtin_ia32_pmulhw256_mask, __builtin_ia32_pmulhw128_mask,
4375 __builtin_ia32_pmullw256_mask, __builtin_ia32_pmullw128_mask,
4376 __builtin_ia32_pmullq256_mask, __builtin_ia32_pmullq128_mask,
4377 __builtin_ia32_andpd256_mask, __builtin_ia32_andpd128_mask,
4378 __builtin_ia32_andps256_mask, __builtin_ia32_andps128_mask,
4379 __builtin_ia32_andnpd256_mask, __builtin_ia32_andnpd128_mask,
4380 __builtin_ia32_andnps256_mask, __builtin_ia32_andnps128_mask,
4381 __builtin_ia32_psllwi128_mask, __builtin_ia32_pslldi128_mask,
4382 __builtin_ia32_psllqi128_mask, __builtin_ia32_psllw128_mask,
4383 __builtin_ia32_pslld128_mask, __builtin_ia32_psllq128_mask,
4384 __builtin_ia32_psllwi256_mask, __builtin_ia32_psllw256_mask,
4385 __builtin_ia32_pslldi256_mask, __builtin_ia32_pslld256_mask,
4386 __builtin_ia32_psllqi256_mask, __builtin_ia32_psllq256_mask,
4387 __builtin_ia32_psradi128_mask, __builtin_ia32_psrad128_mask,
4388 __builtin_ia32_psradi256_mask, __builtin_ia32_psrad256_mask,
4389 __builtin_ia32_psraqi128_mask, __builtin_ia32_psraq128_mask,
4390 __builtin_ia32_psraqi256_mask, __builtin_ia32_psraq256_mask,
4391 __builtin_ia32_pandd256_mask, __builtin_ia32_pandd128_mask,
4392 __builtin_ia32_psrldi128_mask, __builtin_ia32_psrld128_mask,
4393 __builtin_ia32_psrldi256_mask, __builtin_ia32_psrld256_mask,
4394 __builtin_ia32_psrlqi128_mask, __builtin_ia32_psrlq128_mask,
4395 __builtin_ia32_psrlqi256_mask, __builtin_ia32_psrlq256_mask,
4396 __builtin_ia32_pandq256_mask, __builtin_ia32_pandq128_mask,
4397 __builtin_ia32_pandnd256_mask, __builtin_ia32_pandnd128_mask,
4398 __builtin_ia32_pandnq256_mask, __builtin_ia32_pandnq128_mask,
4399 __builtin_ia32_pord256_mask, __builtin_ia32_pord128_mask,
4400 __builtin_ia32_porq256_mask, __builtin_ia32_porq128_mask,
4401 __builtin_ia32_pxord256_mask, __builtin_ia32_pxord128_mask,
4402 __builtin_ia32_pxorq256_mask, __builtin_ia32_pxorq128_mask,
4403 __builtin_ia32_packsswb256_mask, __builtin_ia32_packsswb128_mask,
4404 __builtin_ia32_packuswb256_mask, __builtin_ia32_packuswb128_mask,
4405 __builtin_ia32_rndscaleps_256_mask, __builtin_ia32_rndscalepd_256_mask,
4406 __builtin_ia32_rndscaleps_128_mask, __builtin_ia32_rndscalepd_128_mask,
4407 __builtin_ia32_pternlogq256_mask, __builtin_ia32_pternlogq256_maskz,
4408 __builtin_ia32_pternlogd256_mask, __builtin_ia32_pternlogd256_maskz,
4409 __builtin_ia32_pternlogq128_mask, __builtin_ia32_pternlogq128_maskz,
4410 __builtin_ia32_pternlogd128_mask, __builtin_ia32_pternlogd128_maskz,
4411 __builtin_ia32_scalefpd256_mask, __builtin_ia32_scalefps256_mask,
4412 __builtin_ia32_scalefpd128_mask, __builtin_ia32_scalefps128_mask,
4413 __builtin_ia32_vfmaddpd256_mask, __builtin_ia32_vfmaddpd256_mask3,
4414 __builtin_ia32_vfmaddpd256_maskz, __builtin_ia32_vfmaddpd128_mask,
4415 __builtin_ia32_vfmaddpd128_mask3, __builtin_ia32_vfmaddpd128_maskz,
4416 __builtin_ia32_vfmaddps256_mask, __builtin_ia32_vfmaddps256_mask3,
4417 __builtin_ia32_vfmaddps256_maskz, __builtin_ia32_vfmaddps128_mask,
4418 __builtin_ia32_vfmaddps128_mask3, __builtin_ia32_vfmaddps128_maskz,
4419 __builtin_ia32_vfmsubpd256_mask3, __builtin_ia32_vfmsubpd128_mask3,
4420 __builtin_ia32_vfmsubps256_mask3, __builtin_ia32_vfmsubps128_mask3,
4421 __builtin_ia32_vfnmaddpd256_mask, __builtin_ia32_vfnmaddpd128_mask,
4422 __builtin_ia32_vfnmaddps256_mask, __builtin_ia32_vfnmaddps128_mask,
4423 __builtin_ia32_vfnmsubpd256_mask, __builtin_ia32_vfnmsubpd256_mask3,
4424 __builtin_ia32_vfnmsubpd128_mask, __builtin_ia32_vfnmsubpd128_mask3,
4425 __builtin_ia32_vfnmsubps256_mask, __builtin_ia32_vfnmsubps256_mask3,
4426 __builtin_ia32_vfnmsubps128_mask, __builtin_ia32_vfnmsubps128_mask3,
4427 __builtin_ia32_vfmaddsubpd256_mask, __builtin_ia32_vfmaddsubpd256_mask3,
4428 __builtin_ia32_vfmaddsubpd256_maskz, __builtin_ia32_vfmaddsubpd128_mask,
4429 __builtin_ia32_vfmaddsubpd128_mask3, __builtin_ia32_vfmaddsubpd128_maskz,
4430 __builtin_ia32_vfmaddsubps256_mask, __builtin_ia32_vfmaddsubps256_mask3,
4431 __builtin_ia32_vfmaddsubps256_maskz, __builtin_ia32_vfmaddsubps128_mask,
4432 __builtin_ia32_vfmaddsubps128_mask3, __builtin_ia32_vfmaddsubps128_maskz,
4433 __builtin_ia32_vfmsubaddpd256_mask3, __builtin_ia32_vfmsubaddpd128_mask3,
4434 __builtin_ia32_vfmsubaddps256_mask3, __builtin_ia32_vfmsubaddps128_mask3,
4435 __builtin_ia32_insertf64x2_256_mask, __builtin_ia32_inserti64x2_256_mask,
4436 __builtin_ia32_psrav16hi_mask, __builtin_ia32_psrav8hi_mask,
4437 __builtin_ia32_pmaddubsw256_mask, __builtin_ia32_pmaddubsw128_mask,
4438 __builtin_ia32_pmaddwd256_mask, __builtin_ia32_pmaddwd128_mask,
4439 __builtin_ia32_psrlv16hi_mask, __builtin_ia32_psrlv8hi_mask,
4440 __builtin_ia32_cvtps2dq256_mask, __builtin_ia32_cvtps2dq128_mask,
4441 __builtin_ia32_cvtps2udq256_mask, __builtin_ia32_cvtps2udq128_mask,
4442 __builtin_ia32_cvtps2qq256_mask, __builtin_ia32_cvtps2qq128_mask,
4443 __builtin_ia32_cvtps2uqq256_mask, __builtin_ia32_cvtps2uqq128_mask,
4444 __builtin_ia32_getmantps256_mask, __builtin_ia32_getmantps128_mask,
4445 __builtin_ia32_getmantpd256_mask, __builtin_ia32_getmantpd128_mask,
4446 __builtin_ia32_movddup256_mask, __builtin_ia32_movddup128_mask,
4447 __builtin_ia32_movshdup256_mask, __builtin_ia32_movshdup128_mask,
4448 __builtin_ia32_movsldup256_mask, __builtin_ia32_movsldup128_mask,
4449 __builtin_ia32_cvtqq2ps256_mask, __builtin_ia32_cvtqq2ps128_mask,
4450 __builtin_ia32_cvtuqq2ps256_mask, __builtin_ia32_cvtuqq2ps128_mask,
4451 __builtin_ia32_cvtqq2pd256_mask, __builtin_ia32_cvtqq2pd128_mask,
4452 __builtin_ia32_cvtuqq2pd256_mask, __builtin_ia32_cvtuqq2pd128_mask,
4453 __builtin_ia32_vpermt2varq256_mask, __builtin_ia32_vpermt2varq256_maskz,
4454 __builtin_ia32_vpermt2vard256_mask, __builtin_ia32_vpermt2vard256_maskz,
4455 __builtin_ia32_vpermi2varq256_mask, __builtin_ia32_vpermi2vard256_mask,
4456 __builtin_ia32_vpermt2varpd256_mask, __builtin_ia32_vpermt2varpd256_maskz,
4457 __builtin_ia32_vpermt2varps256_mask, __builtin_ia32_vpermt2varps256_maskz,
4458 __builtin_ia32_vpermi2varpd256_mask, __builtin_ia32_vpermi2varps256_mask,
4459 __builtin_ia32_vpermt2varq128_mask, __builtin_ia32_vpermt2varq128_maskz,
4460 __builtin_ia32_vpermt2vard128_mask, __builtin_ia32_vpermt2vard128_maskz,
4461 __builtin_ia32_vpermi2varq128_mask, __builtin_ia32_vpermi2vard128_mask,
4462 __builtin_ia32_vpermt2varpd128_mask, __builtin_ia32_vpermt2varpd128_maskz,
4463 __builtin_ia32_vpermt2varps128_mask, __builtin_ia32_vpermt2varps128_maskz,
4464 __builtin_ia32_vpermi2varpd128_mask, __builtin_ia32_vpermi2varps128_mask,
4465 __builtin_ia32_pshufb256_mask, __builtin_ia32_pshufb128_mask,
4466 __builtin_ia32_pshufhw256_mask, __builtin_ia32_pshufhw128_mask,
4467 __builtin_ia32_pshuflw256_mask, __builtin_ia32_pshuflw128_mask,
4468 __builtin_ia32_pshufd256_mask, __builtin_ia32_pshufd128_mask,
4469 __builtin_ia32_shufpd256_mask, __builtin_ia32_shufpd128_mask,
4470 __builtin_ia32_shufps256_mask, __builtin_ia32_shufps128_mask,
4471 __builtin_ia32_prolvq256_mask, __builtin_ia32_prolvq128_mask,
4472 __builtin_ia32_prolq256_mask, __builtin_ia32_prolq128_mask,
4473 __builtin_ia32_prorvq256_mask, __builtin_ia32_prorvq128_mask,
4474 __builtin_ia32_prorq256_mask, __builtin_ia32_prorq128_mask,
4475 __builtin_ia32_psravq128_mask, __builtin_ia32_psravq256_mask,
4476 __builtin_ia32_psllv4di_mask, __builtin_ia32_psllv2di_mask,
4477 __builtin_ia32_psllv8si_mask, __builtin_ia32_psllv4si_mask,
4478 __builtin_ia32_psrav8si_mask, __builtin_ia32_psrav4si_mask,
4479 __builtin_ia32_psrlv4di_mask, __builtin_ia32_psrlv2di_mask,
4480 __builtin_ia32_psrlv8si_mask, __builtin_ia32_psrlv4si_mask,
4481 __builtin_ia32_psrawi256_mask, __builtin_ia32_psraw256_mask,
4482 __builtin_ia32_psrawi128_mask, __builtin_ia32_psraw128_mask,
4483 __builtin_ia32_psrlwi256_mask, __builtin_ia32_psrlw256_mask,
4484 __builtin_ia32_psrlwi128_mask, __builtin_ia32_psrlw128_mask,
4485 __builtin_ia32_prorvd256_mask, __builtin_ia32_prolvd256_mask,
4486 __builtin_ia32_prord256_mask, __builtin_ia32_prold256_mask,
4487 __builtin_ia32_prorvd128_mask, __builtin_ia32_prolvd128_mask,
4488 __builtin_ia32_prord128_mask, __builtin_ia32_prold128_mask,
4489 __builtin_ia32_fpclasspd256_mask, __builtin_ia32_fpclasspd128_mask,
4490 __builtin_ia32_fpclasssd, __builtin_ia32_fpclassps256_mask,
4491 __builtin_ia32_fpclassps128_mask, __builtin_ia32_fpclassss,
4492 __builtin_ia32_cvtb2mask128, __builtin_ia32_cvtb2mask256,
4493 __builtin_ia32_cvtw2mask128, __builtin_ia32_cvtw2mask256,
4494 __builtin_ia32_cvtd2mask128, __builtin_ia32_cvtd2mask256,
4495 __builtin_ia32_cvtq2mask128, __builtin_ia32_cvtq2mask256,
4496 __builtin_ia32_cvtmask2b128, __builtin_ia32_cvtmask2b256,
4497 __builtin_ia32_cvtmask2w128, __builtin_ia32_cvtmask2w256,
4498 __builtin_ia32_cvtmask2d128, __builtin_ia32_cvtmask2d256,
4499 __builtin_ia32_cvtmask2q128, __builtin_ia32_cvtmask2q256,
4500 __builtin_ia32_pcmpeqb128_mask, __builtin_ia32_pcmpeqb256_mask,
4501 __builtin_ia32_pcmpeqw128_mask, __builtin_ia32_pcmpeqw256_mask,
4502 __builtin_ia32_pcmpeqd128_mask, __builtin_ia32_pcmpeqd256_mask,
4503 __builtin_ia32_pcmpeqq128_mask, __builtin_ia32_pcmpeqq256_mask,
4504 __builtin_ia32_pcmpgtb128_mask, __builtin_ia32_pcmpgtb256_mask,
4505 __builtin_ia32_pcmpgtw128_mask, __builtin_ia32_pcmpgtw256_mask,
4506 __builtin_ia32_pcmpgtd128_mask, __builtin_ia32_pcmpgtd256_mask,
4507 __builtin_ia32_pcmpgtq128_mask, __builtin_ia32_pcmpgtq256_mask,
4508 __builtin_ia32_ptestmb128, __builtin_ia32_ptestmb256,
4509 __builtin_ia32_ptestmw128, __builtin_ia32_ptestmw256,
4510 __builtin_ia32_ptestmd128, __builtin_ia32_ptestmd256,
4511 __builtin_ia32_ptestmq128, __builtin_ia32_ptestmq256,
4512 __builtin_ia32_ptestnmb128, __builtin_ia32_ptestnmb256,
4513 __builtin_ia32_ptestnmw128, __builtin_ia32_ptestnmw256,
4514 __builtin_ia32_ptestnmd128, __builtin_ia32_ptestnmd256,
4515 __builtin_ia32_ptestnmq128, __builtin_ia32_ptestnmq256,
4516 __builtin_ia32_broadcastmb128, __builtin_ia32_broadcastmb256,
4517 __builtin_ia32_broadcastmw128, __builtin_ia32_broadcastmw256,
4518 __builtin_ia32_compressdf256_mask, __builtin_ia32_compressdf128_mask,
4519 __builtin_ia32_compresssf256_mask, __builtin_ia32_compresssf128_mask,
4520 __builtin_ia32_compressdi256_mask, __builtin_ia32_compressdi128_mask,
4521 __builtin_ia32_compresssi256_mask, __builtin_ia32_compresssi128_mask,
4522 __builtin_ia32_expanddf256_mask, __builtin_ia32_expanddf128_mask,
4523 __builtin_ia32_expandsf256_mask, __builtin_ia32_expandsf128_mask,
4524 __builtin_ia32_expanddi256_mask, __builtin_ia32_expanddi128_mask,
4525 __builtin_ia32_expandsi256_mask, __builtin_ia32_expandsi128_mask,
4526 __builtin_ia32_expanddf256_maskz, __builtin_ia32_expanddf128_maskz,
4527 __builtin_ia32_expandsf256_maskz, __builtin_ia32_expandsf128_maskz,
4528 __builtin_ia32_expanddi256_maskz, __builtin_ia32_expanddi128_maskz,
4529 __builtin_ia32_expandsi256_maskz, __builtin_ia32_expandsi128_maskz,
4530 __builtin_ia32_pmaxsd256_mask, __builtin_ia32_pminsd256_mask,
4531 __builtin_ia32_pmaxud256_mask, __builtin_ia32_pminud256_mask,
4532 __builtin_ia32_pmaxsd128_mask, __builtin_ia32_pminsd128_mask,
4533 __builtin_ia32_pmaxud128_mask, __builtin_ia32_pminud128_mask,
4534 __builtin_ia32_pmaxsq256_mask, __builtin_ia32_pminsq256_mask,
4535 __builtin_ia32_pmaxuq256_mask, __builtin_ia32_pminuq256_mask,
4536 __builtin_ia32_pmaxsq128_mask, __builtin_ia32_pminsq128_mask,
4537 __builtin_ia32_pmaxuq128_mask, __builtin_ia32_pminuq128_mask,
4538 __builtin_ia32_pminsb256_mask, __builtin_ia32_pminub256_mask,
4539 __builtin_ia32_pmaxsb256_mask, __builtin_ia32_pmaxub256_mask,
4540 __builtin_ia32_pminsb128_mask, __builtin_ia32_pminub128_mask,
4541 __builtin_ia32_pmaxsb128_mask, __builtin_ia32_pmaxub128_mask,
4542 __builtin_ia32_pminsw256_mask, __builtin_ia32_pminuw256_mask,
4543 __builtin_ia32_pmaxsw256_mask, __builtin_ia32_pmaxuw256_mask,
4544 __builtin_ia32_pminsw128_mask, __builtin_ia32_pminuw128_mask,
4545 __builtin_ia32_pmaxsw128_mask, __builtin_ia32_pmaxuw128_mask,
4546 __builtin_ia32_vpconflictdi_256_mask, __builtin_ia32_vpconflictsi_256_mask,
4547 __builtin_ia32_vplzcntq_256_mask, __builtin_ia32_vplzcntd_256_mask,
4548 __builtin_ia32_unpckhpd256_mask, __builtin_ia32_unpckhpd128_mask,
4549 __builtin_ia32_unpckhps256_mask, __builtin_ia32_unpckhps128_mask,
4550 __builtin_ia32_unpcklpd256_mask, __builtin_ia32_unpcklpd128_mask,
4551 __builtin_ia32_unpcklps256_mask, __builtin_ia32_vpconflictdi_128_mask,
4552 __builtin_ia32_vpconflictsi_128_mask, __builtin_ia32_vplzcntq_128_mask,
4553 __builtin_ia32_vplzcntd_128_mask, __builtin_ia32_unpcklps128_mask,
4554 __builtin_ia32_alignd256_mask, __builtin_ia32_alignq256_mask,
4555 __builtin_ia32_alignd128_mask, __builtin_ia32_alignq128_mask,
4556 __builtin_ia32_vcvtps2ph256_mask, __builtin_ia32_vcvtps2ph_mask,
4557 __builtin_ia32_vcvtph2ps_mask, __builtin_ia32_vcvtph2ps256_mask,
4558 __builtin_ia32_punpckhdq128_mask, __builtin_ia32_punpckhdq256_mask,
4559 __builtin_ia32_punpckhqdq128_mask, __builtin_ia32_punpckhqdq256_mask,
4560 __builtin_ia32_punpckldq128_mask, __builtin_ia32_punpckldq256_mask,
4561 __builtin_ia32_punpcklqdq128_mask, __builtin_ia32_punpcklqdq256_mask,
4562 __builtin_ia32_punpckhbw128_mask, __builtin_ia32_punpckhbw256_mask,
4563 __builtin_ia32_punpckhwd128_mask, __builtin_ia32_punpckhwd256_mask,
4564 __builtin_ia32_punpcklbw128_mask, __builtin_ia32_punpcklbw256_mask,
4565 __builtin_ia32_punpcklwd128_mask, __builtin_ia32_punpcklwd256_mask,
4566 __builtin_ia32_psllv16hi_mask, __builtin_ia32_psllv8hi_mask,
4567 __builtin_ia32_packssdw256_mask, __builtin_ia32_packssdw128_mask,
4568 __builtin_ia32_packusdw256_mask, __builtin_ia32_packusdw128_mask,
4569 __builtin_ia32_pavgb256_mask, __builtin_ia32_pavgw256_mask,
4570 __builtin_ia32_pavgb128_mask, __builtin_ia32_pavgw128_mask,
4571 __builtin_ia32_permvarsf256_mask, __builtin_ia32_permvardf256_mask,
4572 __builtin_ia32_permdf256_mask, __builtin_ia32_pabsb256_mask,
4573 __builtin_ia32_pabsb128_mask, __builtin_ia32_pabsw256_mask,
4574 __builtin_ia32_pabsw128_mask, __builtin_ia32_vpermilvarpd_mask,
4575 __builtin_ia32_vpermilvarps_mask, __builtin_ia32_vpermilvarpd256_mask,
4576 __builtin_ia32_vpermilvarps256_mask, __builtin_ia32_vpermilpd_mask,
4577 __builtin_ia32_vpermilps_mask, __builtin_ia32_vpermilpd256_mask,
4578 __builtin_ia32_vpermilps256_mask, __builtin_ia32_blendmq_256_mask,
4579 __builtin_ia32_blendmd_256_mask, __builtin_ia32_blendmpd_256_mask,
4580 __builtin_ia32_blendmps_256_mask, __builtin_ia32_blendmq_128_mask,
4581 __builtin_ia32_blendmd_128_mask, __builtin_ia32_blendmpd_128_mask,
4582 __builtin_ia32_blendmps_128_mask, __builtin_ia32_blendmw_256_mask,
4583 __builtin_ia32_blendmb_256_mask, __builtin_ia32_blendmw_128_mask,
4584 __builtin_ia32_blendmb_128_mask, __builtin_ia32_pmulld256_mask,
4585 __builtin_ia32_pmulld128_mask, __builtin_ia32_pmuludq256_mask,
4586 __builtin_ia32_pmuldq256_mask, __builtin_ia32_pmuldq128_mask,
4587 __builtin_ia32_pmuludq128_mask, __builtin_ia32_cvtpd2ps256_mask,
4588 __builtin_ia32_cvtpd2ps_mask, __builtin_ia32_permvarsi256_mask,
4589 __builtin_ia32_permvardi256_mask, __builtin_ia32_permdi256_mask,
4590 __builtin_ia32_cmpq256_mask, __builtin_ia32_cmpd256_mask,
4591 __builtin_ia32_ucmpq256_mask, __builtin_ia32_ucmpd256_mask,
4592 __builtin_ia32_cmpb256_mask, __builtin_ia32_cmpw256_mask,
4593 __builtin_ia32_ucmpb256_mask, __builtin_ia32_ucmpw256_mask,
4594 __builtin_ia32_cmppd256_mask, __builtin_ia32_cmpps256_mask,
4595 __builtin_ia32_cmpq128_mask, __builtin_ia32_cmpd128_mask,
4596 __builtin_ia32_ucmpq128_mask, __builtin_ia32_ucmpd128_mask,
4597 __builtin_ia32_cmpb128_mask, __builtin_ia32_cmpw128_mask,
4598 __builtin_ia32_ucmpb128_mask, __builtin_ia32_ucmpw128_mask,
4599 __builtin_ia32_cmppd128_mask, __builtin_ia32_cmpps128_mask,
4600 __builtin_ia32_broadcastf32x2_512_mask, __builtin_ia32_broadcasti32x2_512_mask,
4601 __builtin_ia32_broadcastf64x2_512_mask, __builtin_ia32_broadcasti64x2_512_mask,
4602 __builtin_ia32_broadcastf32x8_512_mask, __builtin_ia32_broadcasti32x8_512_mask,
4603 __builtin_ia32_extractf64x2_512_mask, __builtin_ia32_extractf32x8_mask,
4604 __builtin_ia32_extracti64x2_512_mask, __builtin_ia32_extracti32x8_mask,
4605 __builtin_ia32_reducepd512_mask, __builtin_ia32_reduceps512_mask,
4606 __builtin_ia32_pmullq512_mask, __builtin_ia32_xorpd512_mask,
4607 __builtin_ia32_xorps512_mask, __builtin_ia32_orpd512_mask,
4608 __builtin_ia32_orps512_mask, __builtin_ia32_andpd512_mask,
4609 __builtin_ia32_andps512_mask, __builtin_ia32_andnpd512_mask,
4610 __builtin_ia32_andnps512_mask, __builtin_ia32_insertf32x8_mask,
4611 __builtin_ia32_inserti32x8_mask, __builtin_ia32_insertf64x2_512_mask,
4612 __builtin_ia32_inserti64x2_512_mask, __builtin_ia32_fpclasspd512_mask,
4613 __builtin_ia32_fpclassps512_mask, __builtin_ia32_cvtd2mask512,
4614 __builtin_ia32_cvtq2mask512, __builtin_ia32_cvtmask2d512,
4615 __builtin_ia32_cvtmask2q512, __builtin_ia32_kunpcksi,
4616 __builtin_ia32_kunpckdi, __builtin_ia32_packusdw512_mask,
4617 __builtin_ia32_pslldq512, __builtin_ia32_psrldq512,
4618 __builtin_ia32_packssdw512_mask, __builtin_ia32_palignr512,
4619 __builtin_ia32_palignr512_mask, __builtin_ia32_movdquhi512_mask,
4620 __builtin_ia32_movdquqi512_mask, __builtin_ia32_psadbw512,
4621 __builtin_ia32_dbpsadbw512_mask, __builtin_ia32_pbroadcastb512_mask,
4622 __builtin_ia32_pbroadcastb512_gpr_mask, __builtin_ia32_pbroadcastw512_mask,
4623 __builtin_ia32_pbroadcastw512_gpr_mask, __builtin_ia32_pmovsxbw512_mask,
4624 __builtin_ia32_pmovzxbw512_mask, __builtin_ia32_permvarhi512_mask,
4625 __builtin_ia32_vpermt2varhi512_mask, __builtin_ia32_vpermt2varhi512_maskz,
4626 __builtin_ia32_vpermi2varhi512_mask, __builtin_ia32_pavgb512_mask,
4627 __builtin_ia32_pavgw512_mask, __builtin_ia32_paddb512_mask,
4628 __builtin_ia32_psubb512_mask, __builtin_ia32_psubsb512_mask,
4629 __builtin_ia32_paddsb512_mask, __builtin_ia32_psubusb512_mask,
4630 __builtin_ia32_paddusb512_mask, __builtin_ia32_psubw512_mask,
4631 __builtin_ia32_paddw512_mask, __builtin_ia32_psubsw512_mask,
4632 __builtin_ia32_paddsw512_mask, __builtin_ia32_psubusw512_mask,
4633 __builtin_ia32_paddusw512_mask, __builtin_ia32_pmaxuw512_mask,
4634 __builtin_ia32_pmaxsw512_mask, __builtin_ia32_pminuw512_mask,
4635 __builtin_ia32_pminsw512_mask, __builtin_ia32_pmaxub512_mask,
4636 __builtin_ia32_pmaxsb512_mask, __builtin_ia32_pminub512_mask,
4637 __builtin_ia32_pminsb512_mask, __builtin_ia32_pmovwb512_mask,
4638 __builtin_ia32_pmovswb512_mask, __builtin_ia32_pmovuswb512_mask,
4639 __builtin_ia32_pmulhrsw512_mask, __builtin_ia32_pmulhuw512_mask,
4640 __builtin_ia32_pmulhw512_mask, __builtin_ia32_pmullw512_mask,
4641 __builtin_ia32_psllwi512_mask, __builtin_ia32_psllw512_mask,
4642 __builtin_ia32_packsswb512_mask, __builtin_ia32_packuswb512_mask,
4643 __builtin_ia32_psrav32hi_mask, __builtin_ia32_pmaddubsw512_mask,
4644 __builtin_ia32_pmaddwd512_mask, __builtin_ia32_psrlv32hi_mask,
4645 __builtin_ia32_punpckhbw512_mask, __builtin_ia32_punpckhwd512_mask,
4646 __builtin_ia32_punpcklbw512_mask, __builtin_ia32_punpcklwd512_mask,
4647 __builtin_ia32_pshufb512_mask, __builtin_ia32_pshufhw512_mask,
4648 __builtin_ia32_pshuflw512_mask, __builtin_ia32_psrawi512_mask,
4649 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
4650 __builtin_ia32_psrlw512_mask, __builtin_ia32_cvtb2mask512,
4651 __builtin_ia32_cvtw2mask512, __builtin_ia32_cvtmask2b512,
4652 __builtin_ia32_cvtmask2w512, __builtin_ia32_pcmpeqb512_mask,
4653 __builtin_ia32_pcmpeqw512_mask, __builtin_ia32_pcmpgtb512_mask,
4654 __builtin_ia32_pcmpgtw512_mask, __builtin_ia32_ptestmb512,
4655 __builtin_ia32_ptestmw512, __builtin_ia32_ptestnmb512,
4656 __builtin_ia32_ptestnmw512, __builtin_ia32_psllv32hi_mask,
4657 __builtin_ia32_pabsb512_mask, __builtin_ia32_pabsw512_mask,
4658 __builtin_ia32_blendmw_512_mask, __builtin_ia32_blendmb_512_mask,
4659 __builtin_ia32_cmpb512_mask, __builtin_ia32_cmpw512_mask,
4660 __builtin_ia32_ucmpb512_mask, __builtin_ia32_ucmpw512_mask,
4661 __builtin_ia32_rangesd128_round, __builtin_ia32_rangess128_round,
4662 __builtin_ia32_cvtpd2qq512_mask, __builtin_ia32_cvtps2qq512_mask,
4663 __builtin_ia32_cvtpd2uqq512_mask, __builtin_ia32_cvtps2uqq512_mask,
4664 __builtin_ia32_cvtqq2ps512_mask, __builtin_ia32_cvtuqq2ps512_mask,
4665 __builtin_ia32_cvtqq2pd512_mask, __builtin_ia32_cvtuqq2pd512_mask,
4666 __builtin_ia32_cvttps2qq512_mask, __builtin_ia32_cvttps2uqq512_mask,
4667 __builtin_ia32_cvttpd2qq512_mask, __builtin_ia32_cvttpd2uqq512_mask,
4668 __builtin_ia32_rangeps512_mask, __builtin_ia32_rangepd512_mask.
4669 (ix86_expand_args_builtin): Handle HI_FTYPE_V16QI, SI_FTYPE_V32QI,
4670 DI_FTYPE_V64QI, V16QI_FTYPE_HI, V32QI_FTYPE_SI, V64QI_FTYPE_DI,
4671 V8HI_FTYPE_QI, V16HI_FTYPE_HI, V32HI_FTYPE_SI, V4SI_FTYPE_QI,
4672 V8SI_FTYPE_QI, V4SI_FTYPE_HI, V8SI_FTYPE_HI, QI_FTYPE_V8HI,
4673 HI_FTYPE_V16HI, SI_FTYPE_V32HI, QI_FTYPE_V4SI, QI_FTYPE_V8SI,
4674 HI_FTYPE_V16SI, QI_FTYPE_V2DI, QI_FTYPE_V4DI, QI_FTYPE_V8DI,
4675 V2DI_FTYPE_QI, V4DI_FTYPE_QI, V8DI_FTYPE_V64QI_V64QI,
4676 SI_FTYPE_SI_SI,DI_FTYPE_DI_DI, V8DI_FTYPE_V8DI_INT_CONVERT,
4677 QI_FTYPE_V4SF_INT, QI_FTYPE_V2DF_INT,
4678 V8SF_FTYPE_V4SF_V8SF_QI, V4DF_FTYPE_V2DF_V4DF_QI,
4679 V8SI_FTYPE_V4SI_V8SI_QI, V8SI_FTYPE_SI_V8SI_QI,
4680 V4SI_FTYPE_V4SI_V4SI_QI, V4SI_FTYPE_SI_V4SI_QI,
4681 V4DI_FTYPE_V2DI_V4DI_QI, V4DI_FTYPE_DI_V4DI_QI,
4682 V2DI_FTYPE_V2DI_V2DI_QI, V2DI_FTYPE_DI_V2DI_QI,
4683 V64QI_FTYPE_V64QI_V64QI_DI, V64QI_FTYPE_V16QI_V64QI_DI,
4684 V64QI_FTYPE_QI_V64QI_DI, V32QI_FTYPE_V32QI_V32QI_SI,
4685 V32QI_FTYPE_V16QI_V32QI_SI, V32QI_FTYPE_QI_V32QI_SI,
4686 V16QI_FTYPE_V16QI_V16QI_HI, V16QI_FTYPE_QI_V16QI_HI,
4687 V32HI_FTYPE_V8HI_V32HI_SI, V32HI_FTYPE_HI_V32HI_SI,
4688 V16HI_FTYPE_V8HI_V16HI_HI, V16HI_FTYPE_HI_V16HI_HI,
4689 V8HI_FTYPE_V8HI_V8HI_QI, V8HI_FTYPE_HI_V8HI_QI,
4690 V8SF_FTYPE_V8HI_V8SF_QI, V4SF_FTYPE_V8HI_V4SF_QI,
4691 V8SI_FTYPE_V8SF_V8SI_QI, V4SI_FTYPE_V4SF_V4SI_QI,
4692 V8DI_FTYPE_V8SF_V8DI_QI, V4DI_FTYPE_V4SF_V4DI_QI,
4693 V2DI_FTYPE_V4SF_V2DI_QI, V8SF_FTYPE_V8DI_V8SF_QI,
4694 V4SF_FTYPE_V4DI_V4SF_QI, V4SF_FTYPE_V2DI_V4SF_QI,
4695 V8DF_FTYPE_V8DI_V8DF_QI, V4DF_FTYPE_V4DI_V4DF_QI,
4696 V2DF_FTYPE_V2DI_V2DF_QI, V16QI_FTYPE_V8HI_V16QI_QI,
4697 V16QI_FTYPE_V16HI_V16QI_HI, V16QI_FTYPE_V4SI_V16QI_QI,
4698 V16QI_FTYPE_V8SI_V16QI_QI, V8HI_FTYPE_V4SI_V8HI_QI,
4699 V8HI_FTYPE_V8SI_V8HI_QI, V16QI_FTYPE_V2DI_V16QI_QI,
4700 V16QI_FTYPE_V4DI_V16QI_QI, V8HI_FTYPE_V2DI_V8HI_QI,
4701 V8HI_FTYPE_V4DI_V8HI_QI, V4SI_FTYPE_V2DI_V4SI_QI,
4702 V4SI_FTYPE_V4DI_V4SI_QI, V32QI_FTYPE_V32HI_V32QI_SI,
4703 HI_FTYPE_V16QI_V16QI_HI, SI_FTYPE_V32QI_V32QI_SI,
4704 DI_FTYPE_V64QI_V64QI_DI, QI_FTYPE_V8HI_V8HI_QI,
4705 HI_FTYPE_V16HI_V16HI_HI, SI_FTYPE_V32HI_V32HI_SI,
4706 QI_FTYPE_V4SI_V4SI_QI, QI_FTYPE_V8SI_V8SI_QI,
4707 QI_FTYPE_V2DI_V2DI_QI, QI_FTYPE_V4DI_V4DI_QI,
4708 V4SF_FTYPE_V2DF_V4SF_QI, V4SF_FTYPE_V4DF_V4SF_QI,
4709 V2DI_FTYPE_V4SI_V2DI_QI, V2DI_FTYPE_V8HI_V2DI_QI,
4710 V2DI_FTYPE_V16QI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_QI,
4711 V4DI_FTYPE_V4SI_V4DI_QI, V4DI_FTYPE_V8HI_V4DI_QI,
4712 V4DI_FTYPE_V16QI_V4DI_QI, V8DI_FTYPE_V8DF_V8DI_QI,
4713 V4DI_FTYPE_V4DF_V4DI_QI, V2DI_FTYPE_V2DF_V2DI_QI,
4714 V4SI_FTYPE_V4DF_V4SI_QI, V4SI_FTYPE_V2DF_V4SI_QI,
4715 V4SI_FTYPE_V8HI_V4SI_QI, V4SI_FTYPE_V16QI_V4SI_QI,
4716 V8SI_FTYPE_V8SI_V8SI_V8SI, V8SF_FTYPE_V8SF_V8SF_QI,
4717 V8SF_FTYPE_V8SI_V8SF_QI, V4DF_FTYPE_V4DF_V4DF_QI,
4718 V4SF_FTYPE_V4SF_V4SF_QI, V2DF_FTYPE_V2DF_V2DF_QI,
4719 V2DF_FTYPE_V4SF_V2DF_QI, V2DF_FTYPE_V4SI_V2DF_QI,
4720 V4SF_FTYPE_V4SI_V4SF_QI, V4DF_FTYPE_V4SF_V4DF_QI,
4721 V4DF_FTYPE_V4SI_V4DF_QI, V8SI_FTYPE_V8SI_V8SI_QI,
4722 V8SI_FTYPE_V8HI_V8SI_QI, V8SI_FTYPE_V16QI_V8SI_QI,
4723 V16SF_FTYPE_V8SF_V16SF_HI, V16SI_FTYPE_V8SI_V16SI_HI,
4724 V16HI_FTYPE_V16HI_V16HI_HI, V8HI_FTYPE_V16QI_V8HI_QI,
4725 V16HI_FTYPE_V16QI_V16HI_HI, V32HI_FTYPE_V32HI_V32HI_SI,
4726 V32HI_FTYPE_V32QI_V32HI_SI, V8DI_FTYPE_V8DI_V8DI_INT_CONVERT,
4727 V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI_CONVERT, QI_FTYPE_V8DF_INT_QI,
4728 QI_FTYPE_V4DF_INT_QI, QI_FTYPE_V2DF_INT_QI,
4729 HI_FTYPE_V16SF_INT_HI, QI_FTYPE_V8SF_INT_QI,
4730 QI_FTYPE_V4SF_INT_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI_CONVERT,
4731 V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI_CONVERT, V32QI_FTYPE_V32QI_V32QI_V32QI_SI,
4732 V32HI_FTYPE_V32HI_V32HI_V32HI_SI, V32HI_FTYPE_V64QI_V64QI_V32HI_SI,
4733 V16SI_FTYPE_V32HI_V32HI_V16SI_HI, V64QI_FTYPE_V64QI_V64QI_V64QI_DI,
4734 V32HI_FTYPE_V32HI_V8HI_V32HI_SI, V16HI_FTYPE_V16HI_V8HI_V16HI_HI,
4735 V8SI_FTYPE_V8SI_V4SI_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_V4DI_QI,
4736 V64QI_FTYPE_V32HI_V32HI_V64QI_DI, V32QI_FTYPE_V16HI_V16HI_V32QI_SI,
4737 V16QI_FTYPE_V8HI_V8HI_V16QI_HI, V32HI_FTYPE_V16SI_V16SI_V32HI_SI,
4738 V16HI_FTYPE_V8SI_V8SI_V16HI_HI, V8HI_FTYPE_V4SI_V4SI_V8HI_QI,
4739 V4DF_FTYPE_V4DF_V4DI_V4DF_QI, V8SF_FTYPE_V8SF_V8SI_V8SF_QI,
4740 V4SF_FTYPE_V4SF_V4SI_V4SF_QI, V2DF_FTYPE_V2DF_V2DI_V2DF_QI,
4741 V2DI_FTYPE_V4SI_V4SI_V2DI_QI, V4DI_FTYPE_V8SI_V8SI_V4DI_QI,
4742 V4DF_FTYPE_V4DI_V4DF_V4DF_QI, V8SF_FTYPE_V8SI_V8SF_V8SF_QI,
4743 V2DF_FTYPE_V2DI_V2DF_V2DF_QI, V4SF_FTYPE_V4SI_V4SF_V4SF_QI,
4744 V8HI_FTYPE_V8HI_V8HI_V8HI_QI, V8SI_FTYPE_V8SI_V8SI_V8SI_QI,
4745 V4SI_FTYPE_V4SI_V4SI_V4SI_QI, V8SF_FTYPE_V8SF_V8SF_V8SF_QI,
4746 V16QI_FTYPE_V16QI_V16QI_V16QI_HI, V16HI_FTYPE_V16HI_V16HI_V16HI_HI,
4747 V2DI_FTYPE_V2DI_V2DI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_V4DI_QI,
4748 V4DF_FTYPE_V4DF_V4DF_V4DF_QI, V8HI_FTYPE_V16QI_V16QI_V8HI_QI,
4749 V16HI_FTYPE_V32QI_V32QI_V16HI_HI, V8SI_FTYPE_V16HI_V16HI_V8SI_QI,
4750 V4SI_FTYPE_V8HI_V8HI_V4SI_QI, QI_FTYPE_V4DI_V4DI_INT_QI,
4751 QI_FTYPE_V8SI_V8SI_INT_QI, QI_FTYPE_V4DF_V4DF_INT_QI,
4752 QI_FTYPE_V8SF_V8SF_INT_QI, QI_FTYPE_V2DI_V2DI_INT_QI,
4753 QI_FTYPE_V4SI_V4SI_INT_QI, DI_FTYPE_V64QI_V64QI_INT_DI,
4754 SI_FTYPE_V32QI_V32QI_INT_SI, HI_FTYPE_V16QI_V16QI_INT_HI,
4755 SI_FTYPE_V32HI_V32HI_INT_SI, HI_FTYPE_V16HI_V16HI_INT_HI,
4756 QI_FTYPE_V8HI_V8HI_INT_QI, V8SF_FTYPE_V8SF_INT_V8SF_QI,
4757 V4SF_FTYPE_V4SF_INT_V4SF_QI, V2DF_FTYPE_V4DF_INT_V2DF_QI,
4758 V2DI_FTYPE_V4DI_INT_V2DI_QI, V8SF_FTYPE_V16SF_INT_V8SF_QI,
4759 V8SI_FTYPE_V16SI_INT_V8SI_QI, V2DF_FTYPE_V8DF_INT_V2DF_QI,
4760 V2DI_FTYPE_V8DI_INT_V2DI_QI, V4SF_FTYPE_V8SF_INT_V4SF_QI,
4761 V4SI_FTYPE_V8SI_INT_V4SI_QI, V8HI_FTYPE_V8SF_INT_V8HI_QI,
4762 V8HI_FTYPE_V4SF_INT_V8HI_QI, V32HI_FTYPE_V32HI_INT_V32HI_SI,
4763 V16HI_FTYPE_V16HI_INT_V16HI_HI, V8HI_FTYPE_V8HI_INT_V8HI_QI,
4764 V4DI_FTYPE_V4DI_INT_V4DI_QI, V2DI_FTYPE_V2DI_INT_V2DI_QI,
4765 V8SI_FTYPE_V8SI_INT_V8SI_QI, V4SI_FTYPE_V4SI_INT_V4SI_QI,
4766 V4DF_FTYPE_V4DF_INT_V4DF_QI, V2DF_FTYPE_V2DF_INT_V2DF_QI,
4767 V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI,
4768 V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI, V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI,
4769 V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI,
4770 V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI, V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI,
4771 V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI, V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI,
4772 V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI, V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI,
4773 V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI, V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI,
4774 V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI,
4775 V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI,
4776 V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI, V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI,
4777 V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI, V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI,
4778 V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI, V8DI_FTYPE_V8DF_V8DI_QI_INT,
4779 V8SF_FTYPE_V8DI_V8SF_QI_INT, V8DF_FTYPE_V8DI_V8DF_QI_INT,
4780 V8DI_FTYPE_V8SF_V8DI_QI_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT,
4781 V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT, VOID_FTYPE_PV4DI_V4DI_QI,
4782 VOID_FTYPE_PV2DI_V2DI_QI, VOID_FTYPE_PV8SI_V8SI_QI,
4783 VOID_FTYPE_PV4SI_V4SI_QI, VOID_FTYPE_PV4SI_V4DI_QI,
4784 VOID_FTYPE_PV4SI_V2DI_QI, VOID_FTYPE_PV8HI_V4DI_QI,
4785 VOID_FTYPE_PV8HI_V2DI_QI, VOID_FTYPE_PV8HI_V8SI_QI,
4786 VOID_FTYPE_PV8HI_V4SI_QI, VOID_FTYPE_PV16QI_V4DI_QI,
4787 VOID_FTYPE_PV16QI_V2DI_QI, VOID_FTYPE_PV16QI_V8SI_QI,
4788 VOID_FTYPE_PV16QI_V4SI_QI, VOID_FTYPE_PV8HI_V8HI_QI,
4789 VOID_FTYPE_PV16HI_V16HI_HI, VOID_FTYPE_PV32HI_V32HI_SI,
4790 VOID_FTYPE_PV16QI_V16QI_HI, VOID_FTYPE_PV32QI_V32QI_SI,
4791 VOID_FTYPE_PV64QI_V64QI_DI, VOID_FTYPE_PV4DF_V4DF_QI,
4792 VOID_FTYPE_PV2DF_V2DF_QI, VOID_FTYPE_PV8SF_V8SF_QI,
4793 VOID_FTYPE_PV4SF_V4SF_QI, V4SF_FTYPE_PCV4SF_V4SF_QI,
4794 V8SF_FTYPE_PCV8SF_V8SF_QI, V4SI_FTYPE_PCV4SI_V4SI_QI,
4795 V8SI_FTYPE_PCV8SI_V8SI_QI, V2DF_FTYPE_PCV2DF_V2DF_QI,
4796 V4DF_FTYPE_PCV4DF_V4DF_QI, V2DI_FTYPE_PCV2DI_V2DI_QI,
4797 V4DI_FTYPE_PCV4DI_V4DI_QI, V8HI_FTYPE_PCV8HI_V8HI_QI,
4798 V16HI_FTYPE_PCV16HI_V16HI_HI, V32HI_FTYPE_PCV32HI_V32HI_SI,
4799 V16QI_FTYPE_PCV16QI_V16QI_HI, V32QI_FTYPE_PCV32QI_V32QI_SI,
4800 V64QI_FTYPE_PCV64QI_V64QI_DI, do not handle V8USI_FTYPE_V8USI.
4801
4802 2014-10-28 Jakub Jelinek <jakub@redhat.com>
4803
4804 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t
4805 type for the left shift in CASE_CONVERT case.
4806
4807 2014-10-28 Max Ostapenko <m.ostapenko@partner.samsung.com>
4808
4809 * asan.h (asan_intercepted_p): New function.
4810 * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
4811 hash value construction. Call iterative_hash_expr instead of explicit
4812 hash building.
4813 (asan_mem_ref_hasher::equal): Change condition.
4814 (has_mem_ref_been_instrumented): Likewise.
4815 (update_mem_ref_hash_table): Likewise.
4816 (maybe_update_mem_ref_hash_table): New function.
4817 (instrument_strlen_call): Removed.
4818 (get_mem_refs_of_builtin_call): Handle new parameter.
4819 (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
4820 of instrument_mem_region_access if intercepted_p is true.
4821 (instrument_mem_region_access): Instrument only base with len instead of
4822 base and end with 1.
4823 (build_check_stmt): Remove start_instrumented and end_instrumented
4824 parameters.
4825 (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
4826 ASAN_CHECK_END_INSTRUMENTED. Change ASAN_CHECK_LAST.
4827 (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
4828 * builtins.c (expand_builtin): Include asan.h. Don't expand string/memory
4829 builtin functions that have interceptors if ASan is enabled.
4830
4831 2014-10-28 Richard Biener <rguenther@suse.de>
4832
4833 PR middle-end/63665
4834 * fold-const.c (fold_comparison): Properly guard simplifying
4835 against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
4836
4837 2014-10-28 Alan Lawrence <alan.lawrence@arm.com>
4838
4839 * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
4840 * fold-const.c (const_binop): Likewise.
4841 * cfgexpand.c (expand_debug_expr): Likewise.
4842 * tree-inline.c (estimate_operator_cost): Likewise.
4843 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
4844 * optabs.c (optab_for_tree_code): Likewise.
4845 (expand_vec_shift_expr): Likewise, update comment.
4846 * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
4847 * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
4848 * optabs.def: Remove vec_shl_optab.
4849 * doc/md.texi: Remove references to vec_shr_m.
4850
4851 2014-10-28 Yury Gribov <y.gribov@samsung.com>
4852
4853 * asan.c (report_error_func): Add noabort path.
4854 (check_func): Ditto. Formatting.
4855 (asan_expand_check_ifn): Handle noabort path.
4856 * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
4857 to default value.
4858 * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
4859 * opts.c (finish_options): Reword comment.
4860 * sanitizer.def: Add noabort ASan builtins.
4861
4862 2014-10-28 Yury Gribov <y.gribov@samsung.com>
4863
4864 * asan.c (set_asan_shadow_offset): New function.
4865 (asan_shadow_offset): Likewise.
4866 (asan_emit_stack_protection): Call asan_shadow_offset.
4867 (build_shadow_mem_access): Likewise.
4868 * asan.h (set_asan_shadow_offset): Declare.
4869 * common.opt (fasan-shadow-offset): New option.
4870 (frandom-seed): Fixed parameter name.
4871 * doc/invoke.texi (fasan-shadow-offset): Describe new option.
4872 (frandom-seed): Fixed parameter name.
4873 * opts-global.c (handle_common_deferred_options): Handle
4874 -fasan-shadow-offset.
4875 * opts.c (common_handle_option): Likewise.
4876
4877 2014-10-27 Jiong Wang <jiong.wang@arm.com>
4878
4879 PR target/63442
4880 * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
4881
4882 2014-10-27 DJ Delorie <dj@redhat.com>
4883
4884 * tree.c (build_common_tree_nodes): Don't even store the
4885 __int128 types if they're not supported.
4886
4887 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
4888
4889 * config/i386/i386.c (ix86_loop_memcount): Delete.
4890 (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
4891
4892 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
4893
4894 * config/i386/i386.c (find_constant_1): Delete.
4895 (find_constant): Use FOR_EACH_SUBRTX.
4896
4897 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
4898
4899 * config/i386/i386.c (extended_reg_mentioned_1): Delete.
4900 (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
4901
4902 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
4903
4904 * config/i386/i386.c: Include rtl-iter.h
4905 (ix86_check_avx256_register): Take a const_rtx and return a bool.
4906 (ix86_check_avx256_stores): Update call accordingly.
4907 (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
4908 (ix86_avx_u128_mode_needed): Likewise. Use FOR_EACH_SUBRTX.
4909
4910 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
4911
4912 * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
4913 Take an rtx and return a bool.
4914 * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
4915 Use FOR_EACH_SUBRTX_VAR.
4916 * config/alpha/predicates.md (some_small_symbolic_operand): Update
4917 accordingly.
4918
4919 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
4920
4921 * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
4922 a bool.
4923 * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
4924 (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX. Return a bool.
4925
4926 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
4927
4928 * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
4929 (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
4930
4931 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
4932
4933 * config/alpha/alpha.c: Include rtl-iter.h.
4934 (split_small_symbolic_operand_1): Delete.
4935 (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
4936
4937 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
4938
4939 * config/s390/s390.c: Include rtl-iter.h.
4940 (check_dpu): Delete.
4941 (s390_loop_unroll_adjust): Only iterate over patterns.
4942 Use FOR_EACH_SUBRTX.
4943
4944 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
4945
4946 * config/spu/spu.c: Include rtl-iter.h
4947 (ea_symbol_ref): Replace with...
4948 (ea_symbol_ref_p): ...this new function.
4949 (spu_legitimate_address_p): Update call accordingly.
4950 (spu_legitimate_constant_p): Likewise. Use FOR_EACH_SUBRTX.
4951
4952 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
4953 Tom Tromey <tromey@redhat.com>
4954
4955 * aclocal.m4, configure: Rebuild.
4956 * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
4957 * configure.ac: Use GCC_ENABLE_PLUGINS.
4958 * stor-layout.c (finish_bitfield_layout): Now public. Change
4959 argument type to 'tree'.
4960 (finish_record_layout): Update.
4961 * stor-layout.h (finish_bitfield_layout): Declare.
4962
4963 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
4964
4965 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
4966 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
4967 Restore, enable for bigendian, update to use __builtin..._scal...
4968
4969 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
4970
4971 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
4972 reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
4973 (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
4974 reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
4975
4976 * config/aarch64/aarch64-simd.md
4977 (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
4978 (reduc_<maxmin_uns>_internal<mode>): ...this.
4979 (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
4980 (reduc_<maxmin_uns>_scal_<mode>): New (*2).
4981
4982 (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
4983 (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
4984 (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
4985
4986 * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
4987 vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
4988 vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
4989 vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
4990 vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
4991 vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
4992 vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
4993 __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
4994
4995 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
4996
4997 * config/aarch64/aarch64-simd-builtins.def
4998 (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
4999 Remove.
5000 (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
5001
5002 * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
5003 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
5004
5005 (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
5006 (aarch64_reduc_plus_internal<mode>): ...this.
5007
5008 (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
5009 (aarch64_reduc_plus_internalv2si): ...this.
5010
5011 (reduc_splus_<mode>/V2F): Rename to...
5012 (aarch64_reduc_plus_internal<mode>): ...this.
5013
5014 * config/aarch64/iterators.md
5015 (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
5016 (UNSPEC_ADDV): New.
5017 (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
5018
5019 * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
5020 vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
5021 vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
5022 vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
5023 __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
5024
5025 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
5026
5027 PR tree-optimization/61114
5028 * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
5029 optabs, and note in reduc_[us](plus|min|max) to prefer the former.
5030
5031 * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
5032 back to old reduc_... + BIT_FIELD_REF only if not.
5033
5034 * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
5035 return the reduce-to-scalar (reduc_..._scal) optab.
5036 (scalar_reduc_to_vector): New.
5037
5038 * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
5039 reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
5040 New.
5041
5042 * optabs.h (scalar_reduc_to_vector): Declare.
5043
5044 * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
5045 to either scalar or vector.
5046
5047 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
5048
5049 PR tree-optimization/61114
5050 * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
5051 extract_bit_field around optab result.
5052
5053 * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
5054 scalar not vector.
5055
5056 * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
5057 for REDUC_{MIN,MAX,PLUS}_EXPR.
5058
5059 * tree-vect-loop.c (vect_analyze_loop): Update comment.
5060 (vect_create_epilog_for_reduction): For direct vector reduction, use
5061 result of tree code directly without extract_bit_field.
5062
5063 * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
5064 comment.
5065
5066 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
5067
5068 * basic-block.h: Remove all includes.
5069 (enum profile_status_d, struct control_flow_graph): Move to cfg.h
5070 * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
5071 * Makefile.in (GTFILES): Add cfg.h to list.
5072 * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
5073 * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
5074 * genconditions.c (write_header): Add predict.h and basic-block.h to
5075 lits of includes.
5076 * genemit.c (main): Ditto.
5077 * genpreds.c (write_insn_preds_c): Ditto.
5078 * genrecog.c (write_header): Ditto.
5079 * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
5080 to list of includes.
5081 * alias.c: Adjust include files.
5082 * asan.c: Ditto.
5083 * auto-inc-dec.c: Ditto.
5084 * auto-profile.c: Ditto.
5085 * bb-reorder.c: Ditto.
5086 * bt-load.c: Ditto.
5087 * builtins.c: Ditto.
5088 * caller-save.c: Ditto.
5089 * calls.c: Ditto.
5090 * cfg.c: Ditto.
5091 * cfganal.c: Ditto.
5092 * cfgbuild.c: Ditto.
5093 * cfgcleanup.c: Ditto.
5094 * cfgexpand.c: Ditto.
5095 * cfghooks.c: Ditto.
5096 * cfgloop.c: Ditto.
5097 * cfgloopanal.c: Ditto.
5098 * cfgloopmanip.c: Ditto.
5099 * cfgrtl.c: Ditto.
5100 * cgraphbuild.c: Ditto.
5101 * cgraphclones.c: Ditto.
5102 * cgraphunit.c: Ditto.
5103 * combine-stack-adj.c: Ditto.
5104 * combine.c: Ditto.
5105 * compare-elim.c: Ditto.
5106 * coverage.c: Ditto.
5107 * cprop.c: Ditto.
5108 * cse.c: Ditto.
5109 * cselib.c: Ditto.
5110 * data-streamer-in.c: Ditto.
5111 * data-streamer-out.c: Ditto.
5112 * data-streamer.c: Ditto.
5113 * dce.c: Ditto.
5114 * ddg.c: Ditto.
5115 * ddg.h: Ditto.
5116 * df-core.c: Ditto.
5117 * df-problems.c: Ditto.
5118 * df-scan.c: Ditto.
5119 * df.h: Ditto.
5120 * dojump.c: Ditto.
5121 * dominance.c: Ditto.
5122 * domwalk.c: Ditto.
5123 * dse.c: Ditto.
5124 * dwarf2cfi.c: Ditto.
5125 * emit-rtl.c: Ditto.
5126 * et-forest.c: Ditto.
5127 * except.c: Ditto.
5128 * expmed.c: Ditto.
5129 * expr.c: Ditto.
5130 * final.c: Ditto.
5131 * fold-const.c: Ditto.
5132 * function.c: Ditto.
5133 * fwprop.c: Ditto.
5134 * gcc-plugin.h: Ditto.
5135 * gcse.c: Ditto.
5136 * generic-match-head.c: Ditto.
5137 * ggc-page.c: Ditto.
5138 * gimple-builder.c: Ditto.
5139 * gimple-expr.c: Ditto.
5140 * gimple-fold.c: Ditto.
5141 * gimple-iterator.c: Ditto.
5142 * gimple-low.c: Ditto.
5143 * gimple-match-head.c: Ditto.
5144 * gimple-pretty-print.c: Ditto.
5145 * gimple-ssa-isolate-paths.c: Ditto.
5146 * gimple-ssa-strength-reduction.c: Ditto.
5147 * gimple-streamer-in.c: Ditto.
5148 * gimple-streamer-out.c: Ditto.
5149 * gimple-streamer.h: Ditto.
5150 * gimple-walk.c: Ditto.
5151 * gimple.c: Ditto.
5152 * gimplify-me.c: Ditto.
5153 * gimplify.c: Ditto.
5154 * graph.c: Ditto.
5155 * graphite-blocking.c: Ditto.
5156 * graphite-clast-to-gimple.c: Ditto.
5157 * graphite-dependences.c: Ditto.
5158 * graphite-interchange.c: Ditto.
5159 * graphite-isl-ast-to-gimple.c: Ditto.
5160 * graphite-optimize-isl.c: Ditto.
5161 * graphite-poly.c: Ditto.
5162 * graphite-scop-detection.c: Ditto.
5163 * graphite-sese-to-poly.c: Ditto.
5164 * graphite.c: Ditto.
5165 * haifa-sched.c: Ditto.
5166 * hw-doloop.c: Ditto.
5167 * ifcvt.c: Ditto.
5168 * init-regs.c: Ditto.
5169 * internal-fn.c: Ditto.
5170 * ipa-cp.c: Ditto.
5171 * ipa-devirt.c: Ditto.
5172 * ipa-icf-gimple.c: Ditto.
5173 * ipa-icf.c: Ditto.
5174 * ipa-inline-analysis.c: Ditto.
5175 * ipa-inline.c: Ditto.
5176 * ipa-polymorphic-call.c: Ditto.
5177 * ipa-profile.c: Ditto.
5178 * ipa-prop.c: Ditto.
5179 * ipa-pure-const.c: Ditto.
5180 * ipa-reference.c: Ditto.
5181 * ipa-split.c: Ditto.
5182 * ipa-utils.c: Ditto.
5183 * ipa.c: Ditto.
5184 * ira-build.c: Ditto.
5185 * ira-color.c: Ditto.
5186 * ira-conflicts.c: Ditto.
5187 * ira-costs.c: Ditto.
5188 * ira-emit.c: Ditto.
5189 * ira-lives.c: Ditto.
5190 * ira.c: Ditto.
5191 * jump.c: Ditto.
5192 * lcm.c: Ditto.
5193 * loop-doloop.c: Ditto.
5194 * loop-init.c: Ditto.
5195 * loop-invariant.c: Ditto.
5196 * loop-iv.c: Ditto.
5197 * loop-unroll.c: Ditto.
5198 * lower-subreg.c: Ditto.
5199 * lra-assigns.c: Ditto.
5200 * lra-coalesce.c: Ditto.
5201 * lra-constraints.c: Ditto.
5202 * lra-eliminations.c: Ditto.
5203 * lra-lives.c: Ditto.
5204 * lra-spills.c: Ditto.
5205 * lra.c: Ditto.
5206 * lto-cgraph.c: Ditto.
5207 * lto-compress.c: Ditto.
5208 * lto-opts.c: Ditto.
5209 * lto-section-in.c: Ditto.
5210 * lto-section-out.c: Ditto.
5211 * lto-streamer-in.c: Ditto.
5212 * lto-streamer-out.c: Ditto.
5213 * lto-streamer.c: Ditto.
5214 * mcf.c: Ditto.
5215 * mode-switching.c: Ditto.
5216 * modulo-sched.c: Ditto.
5217 * omp-low.c: Ditto.
5218 * optabs.c: Ditto.
5219 * opts-global.c: Ditto.
5220 * passes.c: Ditto.
5221 * postreload-gcse.c: Ditto.
5222 * postreload.c: Ditto.
5223 * predict.c: Ditto.
5224 * print-rtl.c: Ditto.
5225 * profile.c: Ditto.
5226 * recog.c: Ditto.
5227 * ree.c: Ditto.
5228 * reg-stack.c: Ditto.
5229 * regcprop.c: Ditto.
5230 * regcprop.h: Ditto.
5231 * reginfo.c: Ditto.
5232 * regrename.c: Ditto.
5233 * regstat.c: Ditto.
5234 * reload.c: Ditto.
5235 * reload1.c: Ditto.
5236 * reorg.c: Ditto.
5237 * resource.c: Ditto.
5238 * rtlanal.c: Ditto.
5239 * sched-deps.c: Ditto.
5240 * sched-ebb.c: Ditto.
5241 * sched-int.h: Ditto.
5242 * sched-rgn.c: Ditto.
5243 * sched-vis.c: Ditto.
5244 * sel-sched-dump.c: Ditto.
5245 * sel-sched-ir.c: Ditto.
5246 * sel-sched-ir.h: Ditto.
5247 * sel-sched.c: Ditto.
5248 * sese.c: Ditto.
5249 * shrink-wrap.c: Ditto.
5250 * stack-ptr-mod.c: Ditto.
5251 * stmt.c: Ditto.
5252 * store-motion.c: Ditto.
5253 * symtab.c: Ditto.
5254 * toplev.c: Ditto.
5255 * tracer.c: Ditto.
5256 * trans-mem.c: Ditto.
5257 * tree-affine.c: Ditto.
5258 * tree-call-cdce.c: Ditto.
5259 * tree-cfg.c: Ditto.
5260 * tree-cfgcleanup.c: Ditto.
5261 * tree-chrec.c: Ditto.
5262 * tree-complex.c: Ditto.
5263 * tree-data-ref.c: Ditto.
5264 * tree-dfa.c: Ditto.
5265 * tree-eh.c: Ditto.
5266 * tree-emutls.c: Ditto.
5267 * tree-if-conv.c: Ditto.
5268 * tree-inline.c: Ditto.
5269 * tree-into-ssa.c: Ditto.
5270 * tree-loop-distribution.c: Ditto.
5271 * tree-nested.c: Ditto.
5272 * tree-nrv.c: Ditto.
5273 * tree-object-size.c: Ditto.
5274 * tree-outof-ssa.c: Ditto.
5275 * tree-parloops.c: Ditto.
5276 * tree-phinodes.c: Ditto.
5277 * tree-predcom.c: Ditto.
5278 * tree-pretty-print.c: Ditto.
5279 * tree-profile.c: Ditto.
5280 * tree-scalar-evolution.c: Ditto.
5281 * tree-sra.c: Ditto.
5282 * tree-ssa-address.c: Ditto.
5283 * tree-ssa-alias.c: Ditto.
5284 * tree-ssa-ccp.c: Ditto.
5285 * tree-ssa-coalesce.c: Ditto.
5286 * tree-ssa-copy.c: Ditto.
5287 * tree-ssa-copyrename.c: Ditto.
5288 * tree-ssa-dce.c: Ditto.
5289 * tree-ssa-dom.c: Ditto.
5290 * tree-ssa-dse.c: Ditto.
5291 * tree-ssa-forwprop.c: Ditto.
5292 * tree-ssa-ifcombine.c: Ditto.
5293 * tree-ssa-live.c: Ditto.
5294 * tree-ssa-loop-ch.c: Ditto.
5295 * tree-ssa-loop-im.c: Ditto.
5296 * tree-ssa-loop-ivcanon.c: Ditto.
5297 * tree-ssa-loop-ivopts.c: Ditto.
5298 * tree-ssa-loop-manip.c: Ditto.
5299 * tree-ssa-loop-niter.c: Ditto.
5300 * tree-ssa-loop-prefetch.c: Ditto.
5301 * tree-ssa-loop-unswitch.c: Ditto.
5302 * tree-ssa-loop.c: Ditto.
5303 * tree-ssa-math-opts.c: Ditto.
5304 * tree-ssa-operands.c: Ditto.
5305 * tree-ssa-phiopt.c: Ditto.
5306 * tree-ssa-phiprop.c: Ditto.
5307 * tree-ssa-pre.c: Ditto.
5308 * tree-ssa-propagate.c: Ditto.
5309 * tree-ssa-reassoc.c: Ditto.
5310 * tree-ssa-sccvn.c: Ditto.
5311 * tree-ssa-sink.c: Ditto.
5312 * tree-ssa-strlen.c: Ditto.
5313 * tree-ssa-structalias.c: Ditto.
5314 * tree-ssa-tail-merge.c: Ditto.
5315 * tree-ssa-ter.c: Ditto.
5316 * tree-ssa-threadedge.c: Ditto.
5317 * tree-ssa-threadupdate.c: Ditto.
5318 * tree-ssa-uncprop.c: Ditto.
5319 * tree-ssa-uninit.c: Ditto.
5320 * tree-ssa.c: Ditto.
5321 * tree-ssanames.c: Ditto.
5322 * tree-stdarg.c: Ditto.
5323 * tree-streamer-in.c: Ditto.
5324 * tree-streamer-out.c: Ditto.
5325 * tree-streamer.c: Ditto.
5326 * tree-switch-conversion.c: Ditto.
5327 * tree-tailcall.c: Ditto.
5328 * tree-vect-data-refs.c: Ditto.
5329 * tree-vect-generic.c: Ditto.
5330 * tree-vect-loop-manip.c: Ditto.
5331 * tree-vect-loop.c: Ditto.
5332 * tree-vect-patterns.c: Ditto.
5333 * tree-vect-slp.c: Ditto.
5334 * tree-vect-stmts.c: Ditto.
5335 * tree-vectorizer.c: Ditto.
5336 * tree-vrp.c: Ditto.
5337 * tree.c: Ditto.
5338 * tsan.c: Ditto.
5339 * ubsan.c: Ditto.
5340 * valtrack.c: Ditto.
5341 * valtrack.h: Ditto.
5342 * value-prof.c: Ditto.
5343 * var-tracking.c: Ditto.
5344 * varasm.c: Ditto.
5345 * varpool.c: Ditto.
5346 * vtable-verify.c: Ditto.
5347 * web.c: Ditto.
5348 * config/aarch64/aarch64-builtins.c: Ditto.
5349 * config/aarch64/aarch64.c: Ditto.
5350 * config/alpha/alpha.c: Ditto.
5351 * config/arc/arc.c: Ditto.
5352 * config/arm/arm.c: Ditto.
5353 * config/avr/avr.c: Ditto.
5354 * config/bfin/bfin.c: Ditto.
5355 * config/c6x/c6x.c: Ditto.
5356 * config/cr16/cr16.c: Ditto.
5357 * config/cris/cris.c: Ditto.
5358 * config/darwin-c.c: Ditto.
5359 * config/darwin.c: Ditto.
5360 * config/epiphany/epiphany.c: Ditto.
5361 * config/epiphany/mode-switch-use.c: Ditto.
5362 * config/epiphany/resolve-sw-modes.c: Ditto.
5363 * config/fr30/fr30.c: Ditto.
5364 * config/frv/frv.c: Ditto.
5365 * config/h8300/h8300.c: Ditto.
5366 * config/i386/i386.c: Ditto.
5367 * config/i386/winnt.c: Ditto.
5368 * config/ia64/ia64.c: Ditto.
5369 * config/iq2000/iq2000.c: Ditto.
5370 * config/lm32/lm32.c: Ditto.
5371 * config/m32c/m32c.c: Ditto.
5372 * config/m32r/m32r.c: Ditto.
5373 * config/m68k/m68k.c: Ditto.
5374 * config/mcore/mcore.c: Ditto.
5375 * config/mep/mep.c: Ditto.
5376 * config/microblaze/microblaze.c: Ditto.
5377 * config/mips/mips.c: Ditto.
5378 * config/mmix/mmix.c: Ditto.
5379 * config/mn10300/mn10300.c: Ditto.
5380 * config/moxie/moxie.c: Ditto.
5381 * config/msp430/msp430.c: Ditto.
5382 * config/nds32/nds32-cost.c: Ditto.
5383 * config/nds32/nds32-fp-as-gp.c: Ditto.
5384 * config/nds32/nds32-intrinsic.c: Ditto.
5385 * config/nds32/nds32-isr.c: Ditto.
5386 * config/nds32/nds32-md-auxiliary.c: Ditto.
5387 * config/nds32/nds32-memory-manipulation.c: Ditto.
5388 * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
5389 * config/nds32/nds32-predicates.c: Ditto.
5390 * config/nds32/nds32.c: Ditto.
5391 * config/nios2/nios2.c: Ditto.
5392 * config/pa/pa.c: Ditto.
5393 * config/pdp11/pdp11.c: Ditto.
5394 * config/rl78/rl78.c: Ditto.
5395 * config/rs6000/rs6000.c: Ditto.
5396 * config/rx/rx.c: Ditto.
5397 * config/s390/s390.c: Ditto.
5398 * config/sh/sh-mem.cc: Ditto.
5399 * config/sh/sh.c: Ditto.
5400 * config/sh/sh_optimize_sett_clrt.cc: Ditto.
5401 * config/sh/sh_treg_combine.cc: Ditto.
5402 * config/sparc/sparc.c: Ditto.
5403 * config/spu/spu.c: Ditto.
5404 * config/stormy16/stormy16.c: Ditto.
5405 * config/tilegx/tilegx.c: Ditto.
5406 * config/tilepro/tilepro.c: Ditto.
5407 * config/v850/v850.c: Ditto.
5408 * config/vax/vax.c: Ditto.
5409 * config/xtensa/xtensa.c: Ditto.
5410
5411 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
5412
5413 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
5414 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
5415 Remove using preprocessor directives.
5416
5417 2014-10-27 Richard Biener <rguenther@suse.de>
5418
5419 * match.pd (0 % X): Properly use the iterator iterating over
5420 all modulo operators.
5421 (X % 1): Likewise.
5422
5423 2014-10-27 Richard Biener <rguenther@suse.de>
5424
5425 * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
5426 (lattice): New global.
5427 (fwprop_ssa_val): New function.
5428 (fold_all_stmts): Likewise.
5429 (pass_forwprop::execute): Finally fold all stmts.
5430
5431 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
5432
5433 PR c++/53061
5434 * doc/invoke.texi (fmessage-length): Update text to match reality.
5435
5436 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5437
5438 * config/microblaze/microblaze.c: Include rtl-iter.h.
5439 (microblaze_tls_referenced_p_1): Delete.
5440 (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
5441
5442 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5443
5444 * config/mips/mips.c (mips_at_reg_p): Delete.
5445 (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
5446
5447 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5448
5449 * config/mips/mips.c (mips_record_lo_sum): Replace with...
5450 (mips_record_lo_sums): ...this new function.
5451 (mips_reorg_process_insns): Update accordingly.
5452
5453 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5454
5455 * config/mips/mips.c (mips_sim_insn): Update comment.
5456 (mips_sim_wait_regs_2): Delete.
5457 (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
5458
5459 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5460
5461 * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
5462 and return a bool. Iterate over all subrtxes here.
5463 (r10k_needs_protection_p): Update accordingly.
5464
5465 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5466
5467 * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
5468 rather than an rtx pointer. Change type of insn from "void *"
5469 to its real type. Return bool rather than int. Iterate over
5470 all subrtxes here.
5471 (r10k_needs_protection_p_store): Update accordingly.
5472 (r10k_needs_protection_p): Likewise.
5473
5474 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5475
5476 * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
5477 (mips16_rewrite_pool_refs): Take the insn and constant pool as
5478 parameters. Iterate over the instruction's pattern and return void.
5479 (mips16_lay_out_constants): Update accordingly.
5480
5481 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5482
5483 * config/mips/mips.c (mips_kernel_reg_p): Replace with...
5484 (mips_refers_to_kernel_reg_p): ...this new function.
5485 (mips_expand_prologue): Update accordingly.
5486
5487 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5488
5489 * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
5490 as a parameter instead of the containing MEM. Iterate over all
5491 subrtxes. Don't return a value.
5492 (mips_rewrite_small_data): Update call accordingly.
5493
5494 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5495
5496 * config/mips/mips.c: Include rtl-iter.h.
5497 (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
5498 Take the context as a parameter instead of the containing MEM.
5499 Iterate over all subrtxes.
5500 (mips_small_data_pattern_p): Update call accordingly.
5501
5502 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5503
5504 * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
5505 (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
5506
5507 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5508
5509 * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
5510 return a bool. Replace "void *" with specific type. Iterate
5511 over all subrtxes.
5512 (mep_store_data_bypass_1): Update calls accordingly.
5513
5514 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5515
5516 * config/mep/mep.c: Include rtl-iter.h.
5517 (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
5518 (xtensa_tls_referenced_p): Return a bool. Use FOR_EACH_SUBRTX.
5519
5520 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5521
5522 * config/xtensa/xtensa.c: Include rtl-iter.h.
5523 (xtensa_tls_referenced_p_1): Delete.
5524 (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
5525
5526 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5527
5528 * config/sh/sh.c (sh_contains_memref_p_1): Delete.
5529 (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
5530
5531 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5532
5533 * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
5534 rtx as argument and return the number of changes.
5535 * config/sh/sh.c: Include rtl-iter.h.
5536 (shmedia_cleanup_truncate): Take an rtx as argument and iterate
5537 over all subrtxes. Return the number of changes made.
5538 * config/sh/sh.md: Update caller accordingly.
5539
5540 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5541
5542 * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
5543 (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
5544
5545 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
5546
5547 * config/m68k/m68k.c: Include rtl-iter.h.
5548 (m68k_final_prescan_insn_1): Delete.
5549 (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
5550
5551 2014-10-25 Jakub Jelinek <jakub@redhat.com>
5552
5553 PR tree-optimization/63641
5554 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
5555 to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
5556
5557 2014-10-25 Alan Modra <amodra@gmail.com>
5558
5559 PR rtl-optimization/63615
5560 * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
5561 decomposing PLUS or MINUS if operands are not placed adjacent
5562 in the "ops" array.
5563
5564 2014-10-25 Joseph Myers <joseph@codesourcery.com>
5565
5566 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
5567 not allow e500 double in registers not satisyfing
5568 SPE_SIMD_REGNO_P.
5569
5570 2014-10-24 Aldy Hernandez <aldyh@redhat.com>
5571
5572 * dwarf2out.c (declare_in_namespace): Only emit external
5573 declarations in the local scope once.
5574
5575 2014-10-24 Jonathan Wakely <jwakely@redhat.com>
5576
5577 * ginclude/stdbool.h: Do not define bool, true or false in C++11.
5578
5579 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
5580
5581 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
5582 update uses to use new macro arguments.
5583 (__LD3_LANE_FUNC): Likewise.
5584 (__LD4_LANE_FUNC): Likewise.
5585
5586 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
5587
5588 * config/aarch64/aarch64-builtins.c
5589 (aarch64_types_loadstruct_lane_qualifiers): Define.
5590 * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
5591 ld4_lane): New builtins.
5592 * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
5593 New pattern.
5594 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
5595 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
5596 (aarch64_ld2_lane<mode>): New expand.
5597 (aarch64_ld3_lane<mode>): Likewise.
5598 (aarch64_ld4_lane<mode>): Likewise.
5599 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
5600 UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
5601
5602 2014-10-24 Georg-Johann Lay <avr@gjlay.de>
5603
5604 * avr-protos.h (avr_out_sign_extend): New.
5605 * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
5606 (avr_out_sign_extend): New function.
5607 * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
5608 (extendhisi2, extendpsisi2): Use it.
5609 (adjust_len) [sext]: New.
5610
5611 2014-10-24 Martin Liska <mliska@suse.cz>
5612
5613 * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
5614 added.
5615
5616 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5617
5618 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
5619 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
5620 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
5621 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
5622
5623 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5624
5625 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
5626 do while (0).
5627 * config/aarch64/aarch64.c (is_mem_p): Delete.
5628 (is_memory_op): Rename to...
5629 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
5630 (dep_between_memop_and_curr): Assert that the input is a SET.
5631 (aarch64_madd_needs_nop): Add comment. Do not call
5632 dep_between_memop_and_curr on NULL body.
5633 (aarch64_final_prescan_insn): Add comment.
5634 Include rtl-iter.h.
5635
5636 2014-10-24 Richard Biener <rguenther@suse.de>
5637
5638 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
5639 to genmatch BUILD_LIBS instead.
5640
5641 2014-10-24 Richard Biener <rguenther@suse.de>
5642
5643 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
5644 and build_call_expr_loc.
5645 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
5646 non_lvalue_loc to build it for GENERIC.
5647 (decision_tree::gen_generic): Add location argument to
5648 generic_simplify prototype.
5649 (capture_info): New class.
5650 (capture_info::capture_info): New constructor.
5651 (capture_info::walk_match): New method.
5652 (capture_info::walk_result): New method.
5653 (capture_info::walk_c_expr): New method.
5654 (dt_simplify::gen): Handle preserving side-effects for
5655 GENERIC code generation.
5656 (decision_tree::gen_generic): Do not reject operands
5657 with TREE_SIDE_EFFECTS.
5658 * generic-match.h: New file.
5659 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
5660 * match.pd: Add some constant folding patterns from fold-const.c.
5661 * fold-const.c: Include generic-match.h.
5662 (fold_unary_loc): Dispatch to generic_simplify.
5663 (fold_ternary_loc): Likewise.
5664 (fold_binary_loc): Likewise. Remove patterns now implemented
5665 by generic_simplify.
5666 * gimple-fold.c (replace_stmt_with_simplification): New function.
5667 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
5668 (no_follow_ssa_edges): New function.
5669 (fold_stmt): New overload with valueization hook. Use
5670 no_follow_ssa_edges for the overload without hook.
5671 (fold_stmt_inplace): Likewise.
5672 * gimple-fold.h (no_follow_ssa_edges): Declare.
5673
5674 2014-10-24 Felix Yang <felix.yang@huawei.com>
5675 Jiji Jiang <jiangjiji@huawei.com>
5676
5677 PR target/63173
5678 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
5679 (__LD3R_FUNC): Ditto.
5680 (__LD4R_FUNC): Ditto.
5681 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
5682 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
5683 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
5684 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
5685 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
5686 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
5687 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
5688 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
5689 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
5690 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
5691 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
5692 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
5693 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
5694 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
5695 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
5696 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
5697 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
5698 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
5699 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
5700 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
5701 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
5702 builtins.
5703 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
5704 (aarch64_simd_ld3r<mode>): Likewise.
5705 (aarch64_simd_ld4r<mode>): Likewise.
5706 (aarch64_ld2r<mode>): New expand.
5707 (aarch64_ld3r<mode>): Likewise.
5708 (aarch64_ld4r<mode>): Likewise.
5709
5710 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
5711
5712 * rtlanal.c (get_base_term): Handle SCRATCH.
5713
5714 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
5715
5716 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
5717 register pressure.
5718
5719 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
5720
5721 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
5722 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
5723 (max_issue, choose_ready, sched_init): Update.
5724
5725 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
5726
5727 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
5728 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
5729 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
5730 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
5731 (print_rank_for_schedule_stats): Print out elements of ready list that
5732 ended up on their respective places due to each of the sorting
5733 heuristics.
5734 (ready_sort): Update.
5735 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
5736 (schedule_block): Update.
5737
5738 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
5739
5740 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
5741 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
5742 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
5743 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
5744 (model_start_schedule): Update.
5745 (sched_pressure_start_bb): New static function. Calculate
5746 sched_class_regs_num.
5747 (schedule_block): Use it.
5748 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
5749
5750 2014-10-24 Richard Biener <rguenther@suse.de>
5751
5752 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
5753 host library and make sure to pull in the required libintl
5754 and libiconv dependencies.
5755
5756 2014-10-24 Richard Biener <rguenther@suse.de>
5757
5758 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
5759
5760 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
5761
5762 PR bootstrap/63632
5763 * collect2.c (main): Filter out -fno-lto.
5764
5765 2014-10-24 Martin Liska <mliska@suse.cz>
5766
5767 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
5768 division by zero in dumps.
5769 (sem_item_optimizer::merge_classes): Ditto.
5770
5771 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
5772
5773 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
5774
5775 2014-10-23 Ian Lance Taylor <iant@google.com>
5776
5777 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
5778
5779 2014-10-23 Ian Lance Taylor <iant@google.com>
5780
5781 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
5782
5783 2014-10-23 Jakub Jelinek <jakub@redhat.com>
5784
5785 PR debug/63623
5786 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
5787 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
5788 instead of only handling autoinc in dest if it is a MEM.
5789 (vt_stack_adjustments): Fix up formatting.
5790
5791 2014-10-23 DJ Delorie <dj@redhat.com>
5792
5793 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
5794 independend of -mlarge.
5795 * config/msp430/constraints.md (Ys): Update comment.
5796
5797 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
5798
5799 PR target/63534
5800 PR target/63618
5801 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
5802 while it is pseudo.
5803 * dse.c (deletable_insn_p): Likewise.
5804
5805 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
5806
5807 * config/avr/avr.c: Fix GNU coding rules and typos.
5808 * config/avr/avr.h: Dito.
5809 * config/avr/avr-c.c: Dito.
5810 * config/avr/avr.md: Dito.
5811
5812 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
5813
5814 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
5815 New.
5816 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
5817 iterator.
5818 (define_expand "abs<mode>2"): Ditto.
5819
5820 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
5821
5822 * tree-core.h (tree_var_decl): Extend `function_code' field
5823 by one bit, move `regdecl_flag' field to ...
5824 (tree_decl_with_vis): Here.
5825 * tree.h (DECL_STATIC_CHAIN): Update struct name.
5826
5827 2014-10-23 Richard Biener <rguenther@suse.de>
5828
5829 * Makefile.in (BUILD_CPPLIB): Add.
5830 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
5831 Drop LIBIBERTY.
5832
5833 2014-10-23 Richard Biener <rguenther@suse.de>
5834
5835 * fold-const.c (fold_binary_loc): Preserve side-effects of
5836 X - X when simplifying to 0.
5837 * stor-layout.c (finish_bitfield_representative): Strip
5838 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
5839
5840 2014-10-22 Richard Biener <rguenther@suse.de>
5841 Tobias Burnus <burnus@net-b.de>
5842
5843 PR lto/63603
5844 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
5845
5846 2014-10-22 Dehao Chen <dehao@google.com>
5847
5848 * auto-profile.c: Change order of header files.
5849
5850 2014-10-22 Guozhi Wei <carrot@google.com>
5851
5852 PR tree-optimization/63530
5853 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
5854 pointer alignment according to DR_MISALIGNMENT.
5855
5856 2014-10-22 David Malcolm <dmalcolm@redhat.com>
5857
5858 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
5859
5860 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
5861
5862 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
5863 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
5864 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
5865 * dominance.h: New. Add prototypes for dominance.c.
5866 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
5867 * cfghooks.h: (struct profile_record) Relocate here.
5868 Relocate 2 prototypes from basic-block.h.
5869 * basic-block.h: Move prototypes and struct to new header files.
5870 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
5871 * rtl.h: Move a few prototypes to new header files.
5872 * cfgcleanup.c (merge_memattrs): Make static.
5873 * genopinit.c (main): Add predict.h to list of includes.
5874 * predict.h: Update prototype list to match predict.c.
5875 * predict.c (maybe_hot_count_p): Export.
5876 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
5877 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
5878 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
5879 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
5880 * profile.h: Adjust prototypes.
5881 * ifcvt.h: New. Relocate struct ce_if_block here.
5882 * ifcvt.c: Include ifcvt.h.
5883 * config/frv/frv.c: Include ifcvt.h.
5884 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
5885
5886 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
5887
5888 * lra.c (lra): Remove call to recog_init.
5889 * config/i386/i386.md (preferred_for_speed): New attribute
5890 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
5891 "enabled". Remove check for sched1.
5892
5893 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
5894
5895 * recog.h (recog_data_d): Remove enabled_alternatives.
5896 * recog.c (extract_insn): Don't set it.
5897 * reload.c (find_reloads): Call get_enabled_alternatives.
5898
5899 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
5900
5901 * recog.h (constrain_operands): Add an alternative_mask parameter.
5902 (constrain_operands_cached): Likewise.
5903 (get_preferred_alternatives): Declare new form.
5904 * recog.c (get_preferred_alternatives): New bb-taking instance.
5905 (constrain_operands): Take the set of available alternatives as
5906 a parameter.
5907 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
5908 (extract_constrain_insn_cached): Update calls to constrain_operands.
5909 * caller-save.c (reg_save_code): Likewise.
5910 * ira.c (setup_prohibited_mode_move_regs): Likewise.
5911 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
5912 * ree.c (combine_reaching_defs): Likewise.
5913 * reload.c (can_reload_into): Likewise.
5914 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
5915 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
5916 (emit_insn_if_valid_for_reload): Likewise.
5917 * reorg.c (fill_slots_from_thread): Likewise.
5918 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
5919 * config/pa/pa.c (pa_can_combine_p): Likewise.
5920 * config/rl78/rl78.c (insn_ok_now): Likewise.
5921 * config/sh/sh.md (define_peephole2): Likewise.
5922 * final.c (final_scan_insn): Update call to constrain_operands_cached.
5923
5924 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
5925
5926 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
5927 attributes.
5928 * genattr.c (main): Handle "preferred_for_size" and
5929 "preferred_for_speed" in the same way as "enabled".
5930 * recog.h (bool_attr): New enum.
5931 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
5932 (get_preferred_alternatives, check_bool_attrs): Declare.
5933 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
5934 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
5935 New functions.
5936 (get_enabled_alternatives): Use get_bool_attr_mask.
5937 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
5938 instead of recog_data.enabled_alternatives.
5939 * ira.c (ira_setup_alts): Likewise.
5940 * postreload.c (reload_cse_simplify_operands): Likewise.
5941 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
5942 * ira-lives.c (preferred_alternatives): New variable.
5943 (process_bb_node_lives): Set it.
5944 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
5945 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
5946 of recog_data.enabled_alternatives.
5947 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
5948 to preferred_alternatives.
5949 * lra-constraints.c (process_alt_operands): Update accordingly.
5950 * lra.c (lra_set_insn_recog_data): Likewise.
5951 (lra_update_insn_recog_data): Assert check_bool_attrs.
5952
5953 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
5954
5955 * recog.h (extract_constrain_insn): Declare.
5956 * recog.c (extract_constrain_insn): New function.
5957 * lra.c (check_rtl): Use it.
5958 * postreload.c (reload_cse_simplify_operands): Likewise.
5959 * reg-stack.c (check_asm_stack_operands): Likewise.
5960 (subst_asm_stack_regs): Likewise.
5961 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
5962 * regrename.c (build_def_use): Likewise.
5963 * sel-sched.c (get_reg_class): Likewise.
5964 * config/arm/arm.c (note_invalid_constants): Likewise.
5965 * config/s390/predicates.md (execute_operation): Likewise.
5966
5967 2014-10-22 Jakub Jelinek <jakub@redhat.com>
5968 Yury Gribov <y.gribov@samsung.com>
5969
5970 * common.opt (flag_sanitize_recover): New variable.
5971 (fsanitize-recover): Remove Var/Init, deprecate.
5972 (fsanitize-recover=): New option.
5973 * doc/invoke.texi (fsanitize-recover): Update docs.
5974 * opts.c (finish_options): Use opts->x_flag_sanitize
5975 instead of flag_sanitize. Prohibit -fsanitize-recover
5976 for anything besides UBSan. Formatting.
5977 (common_handle_option): Handle OPT_fsanitize_recover_
5978 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
5979 instead of flag_sanitize.
5980 * asan.c (pass_sanopt::execute): Fix up formatting.
5981 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
5982 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
5983 instrument_bool_enum_load, ubsan_instrument_float_cast,
5984 instrument_nonnull_arg, instrument_nonnull_return): Check
5985 bits in flag_sanitize_recover bitmask instead of
5986 flag_sanitize_recover as bool flag.
5987
5988 2014-10-22 Jiong Wang <jiong.wang@arm.com>
5989
5990 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
5991
5992 2014-10-22 Renlin Li <renlin.li@arm.com>
5993
5994 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
5995 __ARM_FEATURE_IDIV__.
5996
5997 2014-10-22 Richard Biener <rguenther@suse.de>
5998
5999 * Makefile.in (s-match): Adjust dependencies to only catch
6000 match.pd.
6001
6002 2014-10-22 Richard Biener <rguenther@suse.de>
6003 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
6004
6005 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
6006 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
6007 (gimple-match.c): Generate by triggering s-match.
6008 (generic-match.c): Likewise.
6009 (s-match): Rule to build gimple-match.c and generic-match.c
6010 by running the genmatch generator program.
6011 (build/hash-table.o): Dependencies to build hash-table.c for the host.
6012 (build/genmatch.o): Dependencies to build genmatch.
6013 (genprog): Add match.
6014 (build/genmatch): Likewise.
6015 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
6016 * generic-match-head.c: New file.
6017 * gimple-match-head.c: Likewise.
6018 * gimple-match.h: Likewise.
6019 * genmatch.c: Likewise.
6020 * match.pd: Likewise.
6021 * builtins.h (fold_builtin_n): Export.
6022 * builtins.c (fold_builtin_n): Likewise.
6023 * gimple-fold.h (gimple_build): Declare various overloads.
6024 (gimple_simplify): Likewise.
6025 (gimple_convert): Re-implement in terms of gimple_build.
6026 * gimple-fold.c (gimple_convert): Remove.
6027 (gimple_build): New functions.
6028 * doc/match-and-simplify.texi: New file.
6029 * doc/gccint.texi: Add menu item Match and Simplify and include
6030 match-and-simplify.texi.
6031
6032 2014-10-22 Jakub Jelinek <jakub@redhat.com>
6033
6034 PR target/63594
6035 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
6036 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
6037 even for just TARGET_AVX2, not only for
6038 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
6039 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
6040 otherwise build it using concatenation of 256-bit
6041 broadcast.
6042 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
6043 avx512 broadcast patterns.
6044 (vec_dup<mode>): Likewise. For avx2 use
6045 v<sseintprefix>broadcast<bcstscalarsuff> instead of
6046 vbroadcast<ssescalarmodesuffix>.
6047 (AVX2_VEC_DUP_MODE): New mode iterator.
6048 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
6049 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
6050
6051 PR target/63542
6052 * config/i386/i386.c (ix86_pic_register_p): Also return
6053 true if x is a hard register with ORIGINAL_REGNO equal to
6054 pic_offset_table_rtx pseudo REGNO.
6055 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
6056 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
6057
6058 2014-10-22 Alan Modra <amodra@gmail.com>
6059
6060 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
6061 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
6062 (gcc_obstack_init): Use obstack_specify_allocation in place of
6063 _obstack_begin.
6064 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
6065 (regexp_representation): Likewise.
6066 * godump.c (go_output_type): Likewise.
6067
6068 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
6069
6070 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
6071 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
6072 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
6073
6074 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
6075
6076 * doc/invoke.texi (pedantic-errors): Explain better.
6077
6078 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
6079 Vidya Praveen <vidya.praveen@atmel.com>
6080 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
6081 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
6082 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
6083
6084 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
6085 __MEMX for avrtiny.
6086 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
6087 (avr_nonconst_pointer_addrspace): Likewise.
6088 * config/avr/avr.h (AVR_HAVE_LPM): Define.
6089
6090 Added AVRTINY architecture to avr target.
6091 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
6092 (base_arch_s): member added for AVRTINY architecture.
6093 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
6094 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
6095 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
6096 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
6097 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
6098 in callee saved register list.
6099 (avr_option_override): CCP address updated for AVRTINY.
6100 (avr_init_expanders): tmp and zero rtx initialized as per arch.
6101 Reset avr_have_dimode if AVRTINY.
6102 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
6103 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
6104 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
6105 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
6106 (expand_epilogue): Likewise.
6107 (avr_print_operand): Print CCP address in case of AVRTINY also.
6108 <TBD>bad address
6109 (function_arg_regno_p): Check different register list for arguments
6110 if AVRTINY.
6111 (init_cumulative_args): Check for AVRTINY to update number of argument
6112 registers.
6113 (tiny_valid_direct_memory_access_range): New function. Return false if
6114 direct memory access range is not in accepted range for AVRTINY.
6115 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
6116 indirect load (with displacement) for AVRTINY.
6117 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
6118 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
6119 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
6120 indirect load (no displacement) for AVRTINY.
6121 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
6122 indirect load (with displacement) for AVRTINY.
6123 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
6124 indirect load for pre-decrement address.
6125 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
6126 functions. Update instruction length for AVRTINY.
6127 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
6128 SImode.
6129 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
6130 (out_movsi_r_mr): Likewise, for SImode.
6131 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
6132 indirect store (no displacement) for AVRTINY.
6133 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
6134 indirect store (with displacement) for AVRTINY.
6135 (out_movsi_mr_r): Emit out insn for IO address store. Update store
6136 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
6137 store functions.
6138 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
6139 indirect load (no displacement) for PSImode in AVRTINY.
6140 (avr_out_load_psi_reg_disp_tiny): New function to handle register
6141 indirect load (with displacement) for PSImode in AVRTINY.
6142 (avr_out_load_psi): Call PSImode register indirect load functions for
6143 AVRTINY. Update instruction length for AVRTINY.
6144 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
6145 indirect store (no displacement) for PSImode in AVRTINY.
6146 (avr_out_store_psi_reg_disp_tiny): New function to handle register
6147 indirect store (with displacement) for PSImode in AVRTINY.
6148 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
6149 register indirect store functions for AVRTINY.
6150 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
6151 register indirect store (with displacement) for AVRTINY.
6152 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
6153 register indirect store function for QImode in AVRTINY.
6154 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
6155 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
6156 indirect store (no displacement) for HImode in AVRTINY.
6157 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
6158 indirect store (with displacement) for HImode in AVRTINY.
6159 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
6160 indirect store for post-increment address in HImode.
6161 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
6162 register indirect store function for HImode in AVRTINY.
6163 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
6164 in case of AVRTINY.
6165 (order_regs_for_local_alloc): Updated register allocation order for
6166 AVRTINY.
6167 (avr_conditional_register_usage): New function. It is a target hook
6168 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
6169 used registers list and register allocation order for AVRTINY.
6170 (avr_return_in_memory): Update return value size for AVRTINY.
6171 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
6172 for AVRTINY arch and tiny program memory base address.
6173 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
6174 (avr_texinfo): Added description for AVRTINY arch.
6175 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
6176 STATIC_CHAIN_REGNUM for AVRTINY.
6177 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
6178 * config/avr/avr.md: Added constants for tmp/ zero registers in
6179 AVRTINY. Attributes for AVRTINY added.
6180 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
6181 memory access range.
6182 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
6183 in AVRTINY memory access range.
6184 (*mov<mode>): Likewise for HImode and SImode.
6185 (*movsf): Likewise for SFmode.
6186 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
6187 not have sbiw.
6188 * config/avr/avr-protos.h: Added function prototype for
6189 tiny_valid_direct_memory_access_range.
6190 * config/avr/avr-tables.opt: Regenerate.
6191 * gcc/config/avr/t-multilib: Regenerate.
6192 * doc/avr-mmcu.texi: Regenerate.
6193
6194 2014-10-21 Andrew Pinski <apinski@cavium.com>
6195
6196 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
6197 available option also.
6198 * config/aarch64/aarch64-cost-tables.h: New file.
6199 * config/aarch64/aarch64-cores.def (thunderx): New core.
6200 * config/aarch64/aarch64-tune.md: Regenerate.
6201 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
6202 of config/arm/aarch-cost-tables.h.
6203 (thunderx_regmove_cost): New variable.
6204 (thunderx_tunings): New variable.
6205
6206 2014-10-21 Dehao Chen <dehao@google.com>
6207
6208 * auto-profile.c: New file.
6209 * auto-profile.h: New file.
6210 * basic-block.h (maybe_hot_count_p): New export func.
6211 (add_working_set): New export func.
6212 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
6213 (GCOV_TAG_AFDO_FUNCTION): Likewise.
6214 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
6215 * opts.c (enable_fdo_optimizations): New func.
6216 (common_handle_option): Handle -fauto-profile flag.
6217 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
6218 (class pass_early_inline): Export early_inliner.
6219 (early_inliner): Likewise.
6220 (pass_early_inline::execute): Likewise.
6221 * ipa-inline.h (early_inliner): Likewise.
6222 * predict.c (maybe_hot_count_p): New export func.
6223 (counts_to_freqs): AutoFDO logic.
6224 (rebuild_frequencies): Likewise.
6225 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
6226 * profile.c (add_working_set): New func.
6227 * Makefile.in (auto-profile.o): New object file.
6228 * passes.def (pass_ipa_auto_profile): New pass.
6229 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
6230 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
6231 * toplev.c (compile_file): AutoFDO logic.
6232 * doc/invoke.texi (-fauto-profile): New doc.
6233 * coverage.c (coverage_init): AutoFDO logic.
6234 * common.opt (-fauto-profile): New flag.
6235 * timevar.def (TV_IPA_AUTOFDO): New tag.
6236 * value-prof.c (gimple_alloc_histogram_value): New export func.
6237 (check_ic_target): Likewise.
6238 * value-prof.h (gimple_alloc_histogram_value): Likewise.
6239 (check_ic_target): Likewise.
6240
6241 2014-10-21 David Malcolm <dmalcolm@redhat.com>
6242
6243 * cgraph.c (cgraph_c_finalize): New function.
6244 * cgraph.h (cgraph_c_finalize): New prototype.
6245 (cgraphunit_c_finalize): New prototype.
6246 * cgraphunit.c (first_analyzed): Move from analyze_functions
6247 to file-scope.
6248 (first_analyzed_var): Likewise.
6249 (analyze_functions): Move static variables into file-scope.
6250 (cgraphunit_c_finalize): New function.
6251 * diagnostic.c (diagnostic_finish): Free the memory for
6252 context->classify_diagnostic and context->printer, running the
6253 destructor for the latter.
6254 (bt_stop): Use toplev::main.
6255 * dwarf2out.c (dwarf2out_finalize): New function.
6256 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
6257 * gcse.c (gcse_c_finalize): New function.
6258 * gcse.h (gcse_c_finalize): New prototype.
6259 * ggc-page.c (init_ggc): Make idempotent.
6260 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
6261 * ipa-cp.c (ipa_cp_c_finalize): New function.
6262 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
6263 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
6264 a field of class pass_ipa_pure_const.
6265 (node_duplication_hook_holder): Likewise.
6266 (node_removal_hook_holder): Likewise.
6267 (register_hooks): Convert to method...
6268 (pass_ipa_pure_const::register_hooks): ...here, converting
6269 static variable init_p into...
6270 (pass_ipa_pure_const::init_p): ...new field.
6271 (pure_const_generate_summary): Update invocation of
6272 register_hooks to invoke as a method of current_pass.
6273 (pure_const_read_summary): Likewise.
6274 (propagate): Convert to...
6275 (pass_ipa_pure_const::execute): ...method.
6276 * ipa-reference.c (ipa_init): Move static bool init_p from here
6277 to...
6278 (ipa_init_p): New file-scope variable, so that it can be reset
6279 when repeatedly invoking the compiler within one process by...
6280 (ipa_reference_c_finalize): New function.
6281 * ipa-reference.h (ipa_reference_c_finalize): New.
6282 * main.c (main): Replace invocation of toplev_main with
6283 construction of a toplev instance, and call its "main" method.
6284 * params.c (global_init_params): Add an assert that
6285 params_finished is false.
6286 (params_c_finalize): New.
6287 * params.h (params_c_finalize): New.
6288 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
6289 invoking generate_summary, for the benefit of pass_ipa_pure_const.
6290 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
6291 before calling write_summary hook.
6292 (ipa_write_optimization_summaries_1): Likewise when calling
6293 write_optimization_summary hook.
6294 (ipa_read_summaries_1): Likewise for read_summary hook.
6295 (ipa_read_optimization_summaries_1): Likewise for
6296 read_optimization_summary hook.
6297 (execute_ipa_stmt_fixups): Likewise.
6298 * stringpool.c (init_stringpool): Clean up if we're called more
6299 than once.
6300 * timevar.c (timevar_init): Ignore repeated calls.
6301 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
6302 "ipa-prop.h".
6303 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
6304 (initialize_rtl): Move static local "initialized_once"
6305 into file scope, and rename to...
6306 (rtl_initialized): New variable.
6307 (do_compile): Move timevar initialization from here to
6308 toplev::start_timevars.
6309 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
6310 toplev::finalize): New functions.
6311 (toplev_main): Rename to...
6312 (toplev::main): ...this.
6313 * toplev.h (class toplev): New class.
6314
6315 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
6316
6317 * loop-doloop.c: Include loop-unroll.h.
6318
6319 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
6320
6321 * cfg.h: New. Header file for cfg.c.
6322 * cfganal.h: New. Header file for cfganal.c.
6323 * lcm.h: New. Header file for lcm.c.
6324 * loop-unroll.h: New. Header file for loop-unroll.h.
6325 * cfgloop.h: (unroll_loops): Remove prototype.
6326 * basic-block.h: Move prototypes and structs to new header files.
6327 Include cfg.h, cfganal.h, and lcm.h.
6328 * loop-init.c: Include loop-unroll.h.
6329 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
6330 * modulo-sched.c: Include loop-unroll.h.
6331
6332 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
6333
6334 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
6335 MARKER_BYTE_UNKNOWN markers when handling casts.
6336
6337 2014-10-21 Richard Biener <rguenther@suse.de>
6338
6339 * tree-ssa-phiopt.c (value_replacement): Properly verify we
6340 are the non-singleton PHI.
6341
6342 2014-10-21 Jakub Jelinek <jakub@redhat.com>
6343
6344 PR tree-optimization/63563
6345 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
6346 if either dra or drb stmts are not normal loads/stores.
6347
6348 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
6349
6350 * config/i386/i386.c (expand_vec_perm_1): Fix
6351 expand_vec_perm_palignr case.
6352 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
6353 VI1_AVX512.
6354
6355 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
6356
6357 * cfgloopanal.c (seq_cost): Delete.
6358 * rtl.h (seq_cost): New prototype.
6359 * rtlanal.c (seq_cost): New function.
6360 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
6361
6362 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
6363
6364 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
6365 * basic-block.h: Remove prototypes for cfgrtl.c.
6366 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
6367 prototypes to cfgrtl.h.
6368 * profile.h (profile_info): Add extern export declaration.
6369 * rtl.h: Remove prototypes for cfgrtl.h.
6370 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
6371 * ipa-inline.c: Include profile.h.
6372 * loop-unroll.c: Ditto.
6373 * modulo-sched.c: Ditto.
6374 * postreload-gcse.c: Ditto.
6375 * predict.c: Ditto.
6376 * sched-ebb.c: Ditto.
6377 * sched-rgn.c: Ditto.
6378 * tracer.c: Ditto.
6379 * tree-ssa-loop-ivcanon.c: Ditto.
6380
6381 2014-10-20 Richard Biener <rguenther@suse.de>
6382
6383 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
6384 operands to get a def operand kind match. Signal mismatches
6385 to the parent so we can try swapping its operands.
6386 (vect_build_slp_tree): Try swapping operands if they have
6387 a mismatched operand kind.
6388
6389 2014-10-20 Alan Modra <amodra@gmail.com>
6390
6391 PR debug/60655
6392 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
6393 Increase "ops" array size. Correct array size tests. Init
6394 n_constants in loop. Break out of innermost loop when finding
6395 a trivial CONST expression.
6396
6397 2014-10-20 Martin Liska <mliska@suse.cz>
6398
6399 PR ipa/63583
6400 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
6401 Gimple tempate string is compared.
6402
6403 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
6404
6405 * varasm.c (const_alias_set): Remove.
6406 (init_varasm_once): Remove initialization of const_alias_set.
6407 (build_constant_desc): Do not set alias set to const_alias_set.
6408
6409 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
6410
6411 * configure: Regenerate.
6412 * configure.ac: Move the test for section attribute specifier "e" in GAS
6413 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
6414 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
6415 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
6416 ifdef HAVE_GAS_SECTION_EXCLUDE.
6417
6418 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
6419
6420 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
6421 match_operand expression.
6422
6423 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
6424 David Edelsohn <dje.gcc@gmail.com>
6425
6426 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
6427 function.
6428 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
6429
6430 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
6431
6432 * doc/invoke.texi (Options to Request or Suppress Warnings):
6433 Explain options precedence.
6434 (Wtrampolines): Do not indent paragraph.
6435
6436 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
6437
6438 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
6439 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
6440 (pa_jump_in_call_delay): Likewise.
6441 * config/pa/pa.c (pa_option_override): Remove jump in call delay
6442 override.
6443 (pa_output_millicode_call): Remove support for jump in call delay.
6444 (pa_output_call): Likewise.
6445 (pa_jump_in_call_delay): Delete.
6446 (pa_following_call): Likewise.
6447 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
6448 (uncond_branch): Remove following call check from attribute length.
6449
6450 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
6451
6452 PR target/53513
6453 * config/sh/sh-modes.def (PSI): Remove.
6454 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
6455 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
6456 (sh_reorg): Remove commented out FPSCR code.
6457 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
6458 insn instead of move insn.
6459 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
6460 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
6461 handling.
6462 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
6463 (sh1_builtin_p): Uncomment.
6464 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
6465 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
6466 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
6467 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
6468 (general_movsrc_operand, general_movdst_operand): Disallow
6469 fpscr_operand.
6470 * config/sh/sh.md (FPSCR_FR): New constant.
6471 (push_fpscr): Emit sts_fpscr insn.
6472 (pop_fpscr): Emit lds_fpscr_insn.
6473 (movsi_ie): Disallow FPSCR operands.
6474 (fpu_switch, unnamed related split, extend_psi_si,
6475 truncate_si_psi): Remove insns.
6476 (lds_fpscr, sts_fpscr): New insns.
6477 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
6478
6479 >>>>>>> .r217525
6480 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
6481
6482 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
6483 (clone_inlined_nodes): Do not overwrite the clone if above predicate
6484 returns true.
6485
6486 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
6487
6488 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
6489 (expand_vec_perm_d): Ditto.
6490 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
6491 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
6492 V4DFmode.
6493 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
6494 (ix86_expand_sse_unpack): Handle V64QImode.
6495 (expand_vec_perm_blend): Update conditions for TARGET, handle
6496 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
6497 (expand_vec_perm_pshufb): Handle V64QImode.
6498 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
6499 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
6500 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
6501 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
6502 (ix86_expand_vecop_qihi): Handle V64QImode.
6503 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
6504 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
6505 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
6506 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
6507 (mul<mode>3): Use VI1_AVX512.
6508 (<sse2_avx2>_packsswb): Ditto.
6509 (<sse2_avx2>_packuswb): Ditto.
6510 (<ssse3_avx2>_pshufb<mode>3): Ditto.
6511 (<shift_insn><mode>3): Ditto.
6512
6513 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
6514
6515 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
6516 conditions to fix bootstrap.
6517
6518 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
6519
6520 gcc-plugin.h: Add tm.h and flattened includes from function.h.
6521
6522 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
6523 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6524 Anna Tikhonova <anna.tikhonova@intel.com>
6525 Ilya Tocar <ilya.tocar@intel.com>
6526 Andrey Turetskiy <andrey.turetskiy@intel.com>
6527 Ilya Verbin <ilya.verbin@intel.com>
6528 Kirill Yukhin <kirill.yukhin@intel.com>
6529 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6530
6531 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
6532 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
6533 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
6534 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
6535 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
6536 (define_expand "vec_init<mode>"): Use VF48_I1248.
6537
6538 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
6539 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6540 Anna Tikhonova <anna.tikhonova@intel.com>
6541 Ilya Tocar <ilya.tocar@intel.com>
6542 Andrey Turetskiy <andrey.turetskiy@intel.com>
6543 Ilya Verbin <ilya.verbin@intel.com>
6544 Kirill Yukhin <kirill.yukhin@intel.com>
6545 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6546
6547 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
6548 expand_sse2_mulvxdi3.
6549
6550 2014-10-17 Richard Biener <rguenther@suse.de>
6551
6552 * fold-const.c (fold_comparison): Remove redundant constant
6553 folding and operand swapping.
6554 (fold_binary_loc): Do comparison operand swapping here.
6555 (fold_ternary_loc): Canonicalize operand order for
6556 commutative ternary operations.
6557 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
6558 and FMA_EXPR.
6559
6560 2014-10-17 Jakub Jelinek <jakub@redhat.com>
6561
6562 PR tree-optimization/63464
6563 * gimple.h (gimple_seq_discard): New prototype.
6564 * gimple.c: Include stringpool.h and tree-ssanames.h.
6565 (gimple_seq_discard): New function.
6566 * optabs.h (lshift_cheap_p): New prototype.
6567 * optabs.c (lshift_cheap_p): New function, moved from...
6568 * tree-switch-conversion.c (lshift_cheap_p): ... here.
6569 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
6570 (reassoc_branch_fixups): New variable.
6571 (update_range_test): Add otherrangep and seq arguments.
6572 Unshare exp. If otherrange is NULL, use for other ranges
6573 array of pointers pointed by otherrangep instead.
6574 Emit seq before gimplified statements for tem.
6575 (optimize_range_tests_diff): Adjust update_range_test
6576 caller.
6577 (optimize_range_tests_xor): Likewise. Fix up comment.
6578 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
6579 functions.
6580 (optimize_range_tests): Adjust update_range_test caller.
6581 Call optimize_range_tests_to_bit_test.
6582 (branch_fixup): New function.
6583 (execute_reassoc): Call branch_fixup.
6584
6585 PR tree-optimization/63302
6586 * tree-ssa-reassoc.c (optimize_range_tests_xor,
6587 optimize_range_tests_diff): Use !integer_pow2p () instead of
6588 tree_log2 () < 0.
6589
6590 2014-10-17 Martin Liska <mliska@suse.cz>
6591
6592 * ipa-icf.c (sem_function::merge): Local flags are set to false
6593 to enforce equal calling convention to be used.
6594 * opts.c (common_handle_option): Indentation fix.
6595
6596 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
6597
6598 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
6599
6600 2014-10-17 Tom de Vries <tom@codesourcery.com>
6601
6602 PR rtl-optimization/61605
6603 * regcprop.c (copyprop_hardreg_forward_1): Use
6604 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
6605
6606 2014-10-17 Tom de Vries <tom@codesourcery.com>
6607
6608 PR rtl-optimization/61605
6609 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p. Don't
6610 notice stores for noops. Don't regard noops as copies.
6611
6612 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
6613
6614 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
6615 register in a special way.
6616 (__cpuid_count): Ditto.
6617 * config/i386/driver-i386.h: Protect with
6618 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
6619 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
6620 is required to compile the function.
6621
6622 2014-10-16 DJ Delorie <dj@redhat.com>
6623
6624 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
6625 integers.
6626
6627 * config/rs6000/rs6000-c.c (rid_int128): New.
6628 (rs6000_macro_to_expand): Use instead of RID_INT128.
6629
6630 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
6631
6632 * function.h: Flatten file. Remove includes, adjust prototypes to
6633 reflect only what is in function.h.
6634 (enum direction, struct args_size, struct locate_and_pad_arg_data,
6635 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
6636 from expr.h.
6637 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
6638 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
6639 prototypes to predict.h.
6640 (init_varasm_status): Move prototype to varasm.h.
6641 * expr.h: Adjust include files.
6642 (enum direction, struct args_size, struct locate_and_pad_arg_data,
6643 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
6644 to function.h.
6645 (locate_and_pad_parm): Move prototype to function.h.
6646 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
6647 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
6648 assign_temp, reposition_prologue_and_epilogue_notes,
6649 prologue_epilogue_contains, sibcall_epilogue_contains,
6650 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
6651 set_return_jump_label): Move prototypes to function.h.
6652 * predict.h (optimize_function_for_size_p,
6653 optimize_function_for_speed_p): Relocate prototypes from function.h.
6654 * shrink-wrap.h (emit_return_into_block, active_insn_between,
6655 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
6656 function.h.
6657 * varasm.h (init_varasm_status): Relocate prototype from function.h.
6658 * genattrtab.c (write_header): Add predict.h to include list.
6659 * genconditions.c (write_header): Add predict.h to include list.
6660 * genemit.c (main): Adjust header file includes.
6661 * gengtype.c (ifiles): Add flattened function.h header files.
6662 * genoutput.c (output_prologue): Add predict.h to include list.
6663 * genpreds.c (write_insn_preds_c): Adjust header file includes.
6664 * genrecog.c (write_header): Add flattened function.h header files.
6665 * alias.c: Adjust include files.
6666 * auto-inc-dec.c: Likewise.
6667 * basic-block.h: Likewise.
6668 * bb-reorder.c: Likewise.
6669 * bt-load.c: Likewise.
6670 * builtins.c: Likewise.
6671 * caller-save.c: Likewise.
6672 * calls.c: Likewise.
6673 * cfgbuild.c: Likewise.
6674 * cfgcleanup.c: Likewise.
6675 * cfgexpand.c: Likewise.
6676 * cfgloop.c: Likewise.
6677 * cfgloop.h: Likewise.
6678 * cfgrtl.c: Likewise.
6679 * cgraph.h: Likewise.
6680 * cgraphclones.c: Likewise.
6681 * cgraphunit.c: Likewise.
6682 * combine-stack-adj.c: Likewise.
6683 * combine.c: Likewise.
6684 * coverage.c: Likewise.
6685 * cprop.c: Likewise.
6686 * cse.c: Likewise.
6687 * cselib.c: Likewise.
6688 * dbxout.c: Likewise.
6689 * ddg.c: Likewise.
6690 * df-core.c: Likewise.
6691 * df-problems.c: Likewise.
6692 * df-scan.c: Likewise.
6693 * dojump.c: Likewise.
6694 * dwarf2cfi.c: Likewise.
6695 * dwarf2out.c: Likewise.
6696 * emit-rtl.c: Likewise.
6697 * except.c: Likewise.
6698 * explow.c: Likewise.
6699 * expr.c: Likewise.
6700 * final.c: Likewise.
6701 * function.c: Likewise.
6702 * gcse.c: Likewise.
6703 * gimple-fold.c: Likewise.
6704 * gimple-low.c: Likewise.
6705 * gimple-streamer.h: Likewise.
6706 * haifa-sched.c: Likewise.
6707 * ifcvt.c: Likewise.
6708 * ira.c: Likewise.
6709 * jump.c: Likewise.
6710 * lcm.c: Likewise.
6711 * loop-invariant.c: Likewise.
6712 * lra-assigns.c: Likewise.
6713 * lra-coalesce.c: Likewise.
6714 * lra-constraints.c: Likewise.
6715 * lra-eliminations.c: Likewise.
6716 * lra-lives.c: Likewise.
6717 * lra-spills.c: Likewise.
6718 * lra.c: Likewise.
6719 * lto-cgraph.c: Likewise.
6720 * lto-section-in.c: Likewise.
6721 * lto-section-out.c: Likewise.
6722 * lto-streamer-in.c: Likewise.
6723 * lto-streamer-out.c: Likewise.
6724 * mode-switching.c: Likewise.
6725 * modulo-sched.c: Likewise.
6726 * omp-low.c: Likewise.
6727 * optabs.c: Likewise.
6728 * passes.c: Likewise.
6729 * postreload-gcse.c: Likewise.
6730 * postreload.c: Likewise.
6731 * predict.c: Likewise.
6732 * profile.c: Likewise.
6733 * recog.c: Likewise.
6734 * ree.c: Likewise.
6735 * reg-stack.c: Likewise.
6736 * regcprop.c: Likewise.
6737 * reginfo.c: Likewise.
6738 * regrename.c: Likewise.
6739 * reload.c: Likewise.
6740 * reload1.c: Likewise.
6741 * reorg.c: Likewise.
6742 * resource.c: Likewise.
6743 * rtlanal.c: Likewise.
6744 * sched-deps.c: Likewise.
6745 * sched-ebb.c: Likewise.
6746 * sched-rgn.c: Likewise.
6747 * sel-sched-dump.c: Likewise.
6748 * sel-sched-ir.c: Likewise.
6749 * sel-sched.c: Likewise.
6750 * shrink-wrap.c: Likewise.
6751 * simplify-rtx.c: Likewise.
6752 * statistics.c: Likewise.
6753 * stmt.c: Likewise.
6754 * stor-layout.c: Likewise.
6755 * store-motion.c: Likewise.
6756 * symtab.c: Likewise.
6757 * targhooks.c: Likewise.
6758 * toplev.c: Likewise.
6759 * trans-mem.c: Likewise.
6760 * tree-cfg.c: Likewise.
6761 * tree-cfgcleanup.c: Likewise.
6762 * tree-dfa.c: Likewise.
6763 * tree-eh.c: Likewise.
6764 * tree-inline.c: Likewise.
6765 * tree-into-ssa.c: Likewise.
6766 * tree-nested.c: Likewise.
6767 * tree-nrv.c: Likewise.
6768 * tree-profile.c: Likewise.
6769 * tree-ssa-alias.c: Likewise.
6770 * tree-ssa-ccp.c: Likewise.
6771 * tree-ssa-copy.c: Likewise.
6772 * tree-ssa-copyrename.c: Likewise.
6773 * tree-ssa-dom.c: Likewise.
6774 * tree-ssa-operands.c: Likewise.
6775 * tree-ssa-propagate.c: Likewise.
6776 * tree-ssa-structalias.c: Likewise.
6777 * tree-ssa-tail-merge.c: Likewise.
6778 * tree-ssa-threadedge.c: Likewise.
6779 * tree-ssa-threadupdate.c: Likewise.
6780 * tree-ssa-uncprop.c: Likewise.
6781 * tree-ssa-uninit.c: Likewise.
6782 * tree-ssa.c: Likewise.
6783 * tree-stdarg.c: Likewise.
6784 * tree-tailcall.c: Likewise.
6785 * tree.c: Likewise.
6786 * tsan.c: Likewise.
6787 * valtrack.c: Likewise.
6788 * varasm.c: Likewise.
6789 * vmsdbgout.c: Likewise.
6790 * web.c: Likewise.
6791 * config/aarch64/aarch64.c: Add flattened includes from function.h.
6792 * config/alpha/alpha.c: Likewise.
6793 * config/arc/arc.c: Likewise.
6794 * config/arm/arm.c: Likewise.
6795 * config/avr/avr-log.c: Likewise.
6796 * config/avr/avr.c: Likewise.
6797 * config/bfin/bfin.c: Likewise.
6798 * config/c6x/c6x.c: Likewise.
6799 * config/cr16/cr16.c: Likewise.
6800 * config/cris/cris.c: Likewise.
6801 * config/darwin.c: Likewise.
6802 * config/epiphany/epiphany.c: Likewise.
6803 * config/epiphany/mode-switch-use.c: Likewise.
6804 * config/epiphany/resolve-sw-modes.c: Likewise.
6805 * config/fr30/fr30.c: Likewise.
6806 * config/frv/frv.c: Likewise.
6807 * config/h8300/h8300.c: Likewise.
6808 * config/i386/i386.c: Likewise.
6809 * config/ia64/ia64.c: Likewise.
6810 * config/iq2000/iq2000.c: Likewise.
6811 * config/lm32/lm32.c: Likewise.
6812 * config/m32c/m32c.c: Likewise.
6813 * config/m32r/m32r.c: Likewise.
6814 * config/m68k/m68k.c: Likewise.
6815 * config/mcore/mcore.c: Likewise.
6816 * config/mep/mep-pragma.c: Likewise.
6817 * config/mep/mep.c: Likewise.
6818 * config/microblaze/microblaze.c: Likewise.
6819 * config/mips/mips.c: Likewise.
6820 * config/mmix/mmix.c: Likewise.
6821 * config/mn10300/mn10300.c: Likewise.
6822 * config/moxie/moxie.c: Likewise.
6823 * config/msp430/msp430.c: Likewise.
6824 * config/nds32/nds32-cost.c: Likewise.
6825 * config/nds32/nds32-fp-as-gp.c: Likewise.
6826 * config/nds32/nds32-intrinsic.c: Likewise.
6827 * config/nds32/nds32-isr.c: Likewise.
6828 * config/nds32/nds32-md-auxiliary.c: Likewise.
6829 * config/nds32/nds32-memory-manipulation.c: Likewise.
6830 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6831 * config/nds32/nds32-predicates.c: Likewise.
6832 * config/nds32/nds32.c: Likewise.
6833 * config/nios2/nios2.c: Likewise.
6834 * config/pa/pa.c: Likewise.
6835 * config/pdp11/pdp11.c: Likewise.
6836 * config/rl78/rl78.c: Likewise.
6837 * config/rs6000/rs6000.c: Likewise.
6838 * config/rx/rx.c: Likewise.
6839 * config/s390/s390.c: Likewise.
6840 * config/score/score.c: Likewise.
6841 * config/sh/sh.c: Likewise.
6842 * config/sparc/sparc.c: Likewise.
6843 * config/spu/spu.c: Likewise.
6844 * config/stormy16/stormy16.c: Likewise.
6845 * config/tilegx/tilegx.c: Likewise.
6846 * config/tilepro/tilepro.c: Likewise.
6847 * config/v850/v850.c: Likewise.
6848 * config/vax/vax.c: Likewise.
6849 * config/xtensa/xtensa.c: Likewise.
6850
6851 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
6852
6853 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
6854 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
6855
6856 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
6857
6858 * config/sh/sh-protos.h (fldi_ok): Remove.
6859 * config/sh/sh.c (fldi_ok): Likewise.
6860 (sh_secondary_reload): Don't use fldi_ok.
6861 * config/sh/constraints.md (G constraint, H constraint): Don't use
6862 fldi_ok.
6863
6864 2014-10-16 Martin Liska <mliska@suse.cz>
6865
6866 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
6867 Cast to unsigned long.
6868 (sem_item_optimizer::dump_cong_classes): Likewise.
6869
6870 2014-10-16 Tom de Vries <tom@codesourcery.com>
6871
6872 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
6873 with SSA_NAME_IN_FREELIST.
6874
6875 2014-10-16 Richard Biener <rguenther@suse.de>
6876
6877 PR middle-end/63554
6878 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
6879 (fold_builtin_strncat_chk): Move ...
6880 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
6881 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
6882
6883 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
6884
6885 PR target/59401
6886 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
6887 GBR to 0.
6888
6889 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
6890 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6891 Anna Tikhonova <anna.tikhonova@intel.com>
6892 Ilya Tocar <ilya.tocar@intel.com>
6893 Andrey Turetskiy <andrey.turetskiy@intel.com>
6894 Ilya Verbin <ilya.verbin@intel.com>
6895 Kirill Yukhin <kirill.yukhin@intel.com>
6896 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6897
6898 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
6899 V64QI modes.
6900
6901 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
6902 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6903 Anna Tikhonova <anna.tikhonova@intel.com>
6904 Ilya Tocar <ilya.tocar@intel.com>
6905 Andrey Turetskiy <andrey.turetskiy@intel.com>
6906 Ilya Verbin <ilya.verbin@intel.com>
6907 Kirill Yukhin <kirill.yukhin@intel.com>
6908 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6909
6910 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
6911 V16SI, V32HI, V64QI modes.
6912
6913 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
6914
6915 PR target/53513
6916 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
6917 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
6918
6919 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
6920 to match fp insn patterns.
6921 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
6922 list.
6923 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
6924 expand_df_unop, expand_df_binop): Remove.
6925 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
6926 FPSCR_STAT_REG as not call clobbered.
6927 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
6928 invoking fpscr_set_from_mem.
6929
6930 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
6931 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
6932 FPSCR_STAT_REG.
6933 (REGISTER_NAMES): Adjust.
6934 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
6935 (FIRST_PSEUDO_REGISTER): Increase to 156.
6936 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
6937 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
6938 FPSCR_STAT_REG.
6939 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
6940 FPSCR_MODES_REG and FPSCR_STAT_REG.
6941 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
6942
6943 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
6944 FPSCR_SZ): Add new constants.
6945 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
6946
6947 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
6948 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
6949 Use TARGET_FPU_ANY condition.
6950 (fpu_switch peephole2): Remove.
6951 (fpu_switch split): Use simple_mem_operand to capture the mem and
6952 adjust split implementation.
6953 (extend_psi_si, truncate_si_psi): New insns.
6954 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
6955 set of FPSCR_MODES_REG.
6956
6957 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
6958 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
6959 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
6960 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
6961 call_value_compact, call_value_compact_rettramp, call,
6962 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
6963 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
6964 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
6965 sibcall_value_compact, sibcall_value, call_value_pop_compact,
6966 call_value_pop_compact_rettramp, various unnamed splits):
6967 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
6968 function uses.
6969
6970 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
6971 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
6972 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
6973 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
6974 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
6975
6976 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
6977 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
6978 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
6979 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
6980 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
6981 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
6982 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
6983
6984 2014-10-16 Martin Liska <mliska@suse.cz>
6985 Jan Hubicka <hubicka@ucw.cz>
6986
6987 * Makefile.in: New object files included.
6988 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
6989 is printed.
6990 (verify_edge_corresponds_to_fndecl): More sensitive verification
6991 of nodes that are merged by IPA ICF.
6992 * cgraph.h (cgraph_node::num_references): New function.
6993 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
6994 * common.opt: New options ipa-icf, ipa-icf-functions and
6995 ipa-icf-variables introduced.
6996 * doc/invoke.texi: Documentation of new options introduced.
6997 * ipa-icf-gimple.c: New file.
6998 * ipa-icf-gimple.h: New file.
6999 * ipa-icf.c: New file.
7000 * ipa-icf.h: New file.
7001 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
7002 (input_overwrite_node): Likewise.
7003 * lto-section-in.c: New icf section added.
7004 * lto-streamer.h (enum lto_section_type): Likewise.
7005 * opts.c (common_handle_option): New option added.
7006 * passes.def: New pass included.
7007 * timevar.def: Time variable for IPA ICF added.
7008 * tree-pass.h: New IPA ICF pass entry point added.
7009
7010 2014-10-16 Richard Biener <rguenther@suse.de>
7011
7012 PR tree-optimization/63168
7013 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
7014 latches if after merging they are no longer simple.
7015 * cfghooks.c (merge_blocks): Handle merging a latch block
7016 into another block.
7017
7018 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
7019 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7020 Anna Tikhonova <anna.tikhonova@intel.com>
7021 Ilya Tocar <ilya.tocar@intel.com>
7022 Andrey Turetskiy <andrey.turetskiy@intel.com>
7023 Ilya Verbin <ilya.verbin@intel.com>
7024 Kirill Yukhin <kirill.yukhin@intel.com>
7025 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7026
7027 * config/i386/sse.md
7028 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
7029 support AVX-512VL instructions.
7030
7031 2014-10-16 DJ Delorie <dj@redhat.com>
7032
7033 * tree-core.h: Fix comment to not assume pointers are multiples of
7034 bytes.
7035
7036 2014-10-15 Tom Tromey <tromey@redhat.com>
7037
7038 * timevar.h (class auto_timevar): New class.
7039
7040 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
7041
7042 PR go/59432
7043 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
7044 Remove the second alternative.
7045 (regprefix): Remove mode attribute.
7046 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
7047 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
7048
7049 Revert:
7050 2013-11-05 Ian Lance Taylor <iant@google.com>
7051
7052 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
7053 If possible, add .cfi directives to record change to bx.
7054 * config/i386/i386.c (ix86_emit_cfi): New function.
7055 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
7056
7057 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
7058
7059 PR lto/62026
7060 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
7061 to duplicate.
7062 * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
7063 at WPA time.
7064
7065 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
7066
7067 PR rtl-optimization/63448
7068 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
7069 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
7070 (LRA_MAX_INHERITANCE_PASSES): Use it.
7071 (lra_constraint_iter_after_spill): Remove.
7072 (lra_assignment_iter): New.
7073 (lra_assignment_iter_after_spill): New.
7074 * lra-assigns.c (lra_assignment_iter): New.
7075 (lra_assignment_iter_after_spill): New.
7076 (former_reload_pseudo_spill_p): New.
7077 (spill_for): Set up former_reload_pseudo_spill_p.
7078 (setup_live_pseudos_and_spill_after_risky): Ditto.
7079 (assign_by_spills): Ditto.
7080 (lra_assign): Increment lra_assignment_iter. Print the iteration
7081 number. Reset former_reload_pseudo_spill_p. Check
7082 lra_assignment_iter_after_spill.
7083 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
7084 lra_assignment_iter and lra_assignment_iter_after_spill.
7085 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
7086 (lra_constraints): Remove code with
7087 lra_assignment_iter_after_spill.
7088
7089 2014-10-15 Teresa Johnson <tejohnson@google.com>
7090
7091 PR bootstrap/63432
7092 * tree-ssa-threadupdate.c (recompute_probabilities): Better
7093 overflow checking.
7094
7095 2014-10-15 Renlin Li <renlin.li@arm.com>
7096
7097 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
7098 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
7099 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
7100 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
7101
7102 2014-10-15 Richard Biener <rguenther@suse.de>
7103
7104 * gimple-fold.c (gimple_fold_call): Properly keep virtual
7105 SSA form up-to-date when devirtualizing a call to
7106 __builtin_unreachable and avoid fixing up EH info here.
7107
7108 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
7109 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7110 Anna Tikhonova <anna.tikhonova@intel.com>
7111 Ilya Tocar <ilya.tocar@intel.com>
7112 Andrey Turetskiy <andrey.turetskiy@intel.com>
7113 Ilya Verbin <ilya.verbin@intel.com>
7114 Kirill Yukhin <kirill.yukhin@intel.com>
7115 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7116
7117 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
7118 to support AVX-512BW.
7119 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
7120 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
7121 (define_insn "*<plusminus_insn><mode>3"): Ditto.
7122 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
7123 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
7124 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
7125 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
7126 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
7127 (define_insn "*andnot<mode>3"): Ditto.
7128 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
7129 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
7130 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
7131 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
7132 (define_insn "*abs<mode>2"): Remove masking support.
7133 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
7134 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
7135 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
7136
7137 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
7138 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7139 Anna Tikhonova <anna.tikhonova@intel.com>
7140 Ilya Tocar <ilya.tocar@intel.com>
7141 Andrey Turetskiy <andrey.turetskiy@intel.com>
7142 Ilya Verbin <ilya.verbin@intel.com>
7143 Kirill Yukhin <kirill.yukhin@intel.com>
7144 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7145
7146 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
7147 * config/i386/sse.md
7148 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
7149 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
7150 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
7151 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
7152 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
7153 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
7154 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
7155
7156 2014-10-15 Renlin Li <renlin.li@arm.com>
7157
7158 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
7159
7160 2014-10-15 Jakub Jelinek <jakub@redhat.com>
7161
7162 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
7163 MINUS_EXPR in unsigned type to avoid undefined behavior.
7164
7165 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
7166
7167 * stor-layout.c (self_referential_size): Do not promote arguments.
7168
7169 2014-10-15 Marek Polacek <polacek@redhat.com>
7170
7171 * doc/invoke.texi: Update to reflect that GNU11 is the default
7172 mode for C.
7173 * c-common.h (c_language_kind): Update comment.
7174
7175 2014-10-15 Richard Biener <rguenther@suse.de>
7176
7177 * hash-table.c: Include bconfig.h if building for the host.
7178 * hash-table.h: Do not include ggc.h on the host but just declare
7179 a few ggc allocation templates.
7180
7181 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
7182 Jeff Law <law@redhat.com>
7183
7184 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
7185 multiple hard registers, use smaller mode derived from MODE.
7186
7187 2014-10-15 Andreas Schwab <schwab@suse.de>
7188
7189 * explow.c (convert_memory_address_addr_space_1): Mark in_const
7190 as ATTRIBUTE_UNUSED.
7191
7192 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
7193
7194 * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
7195 (decide_unrolling): ... this one.
7196 (peel_loops_completely): Remove.
7197 (decide_peel_simple): Remove.
7198 (decide_peel_once_rolling): Remove.
7199 (decide_peel_completely): Remove.
7200 (peel_loop_simple): Remove.
7201 (peel_loop_completely): Remove.
7202 (unroll_and_peel_loops): Rename to ...
7203 (unroll_loops): ... this one; handle only unrolling.
7204 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
7205 LPT_PEEL_SIMPLE.
7206 (UAP_PEEL): Remove.
7207 (unroll_and_peel_loops): Remove.
7208 (unroll_loops): New.
7209 * passes.def: Replace
7210 pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
7211 * loop-init.c (gate_rtl_unroll_and_peel_loops,
7212 rtl_unroll_and_peel_loops): Rename to ...
7213 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
7214 (pass_rtl_unroll_and_peel_loops): Rename to ...
7215 (pass_rtl_unroll_loops): ... this one.
7216 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
7217 (make_pass_rtl_unroll_loops): New.
7218 * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
7219 (canonicalize_loop_induction_variables): Update.
7220
7221 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
7222
7223 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
7224 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
7225 !TARGET_HARD_FLOAT_POSTINC.
7226 (*lsip, *ssip): new instructions.
7227
7228 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
7229
7230 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
7231 remove.
7232
7233 2014-10-14 Andrew Pinski <apinski@cavium.com>
7234
7235 * explow.c (convert_memory_address_addr_space): Rename to ...
7236 (convert_memory_address_addr_space_1): This. Add in_const argument.
7237 Inside a CONST RTL, permute the conversion and addition of constant
7238 for zero and sign extended pointers.
7239 (convert_memory_address_addr_space): New function.
7240
7241 2014-10-14 Andrew Pinski <apinski@cavium.com>
7242
7243 Revert:
7244 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
7245
7246 PR middle-end/49721
7247 * explow.c (convert_memory_address_addr_space): Also permute the
7248 conversion and addition of constant for zero-extend.
7249
7250 2014-10-14 DJ Delorie <dj@redhat.com>
7251
7252 * config/msp430/msp430-modes.def (PSI): Add.
7253
7254 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
7255 (msp430_hard_regno_nregs_with_padding): New.
7256 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
7257 (msp430_hard_regno_nregs_has_padding): New.
7258 (msp430_hard_regno_nregs_with_padding): New.
7259 (msp430_unwind_word_mode): Use PSImode instead of SImode.
7260 (msp430_addr_space_legitimate_address_p): New.
7261 (msp430_asm_integer): New.
7262 (msp430_init_dwarf_reg_sizes_extra): New.
7263 (msp430_print_operand): Use X suffix for PSImode even in small model.
7264 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
7265 (PTR_SIZE): ...but 4 bytes for EH.
7266 (SIZE_TYPE): Use __int20.
7267 (PTRDIFF_TYPE): Likewise.
7268 (INCOMING_FRAME_SP_OFFSET): Adjust.
7269 * config/msp430/msp430.md (movqi_topbyte): New.
7270 (movpsi): Use fixed suffixes.
7271 (movsipsi2): Enable for 430X, not large model.
7272 (extendhipsi2): Likewise.
7273 (zero_extendhisi2): Likewise.
7274 (zero_extendhisipsi2): Likewise.
7275 (extend_and_shift1_hipsi2): Likewise.
7276 (extendpsisi2): Likewise.
7277 (*bitbranch<mode>4_z): Fix suffix logic.
7278
7279 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
7280
7281 PR ada/62019
7282 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
7283 do not choke on null node.
7284 <VAR_DECL>: Likewise.
7285
7286 2014-10-14 DJ Delorie <dj@redhat.com>
7287
7288 * machmode.h (int_n_data_t): New.
7289 (int_n_enabled_p): New.
7290 (int_n_data): New.
7291 * tree.c (int_n_enabled_p): New.
7292 (int_n_trees): New.
7293 (make_or_reuse_type): Check for all __intN types, not just
7294 __int128.
7295 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
7296 entries.
7297 * tree.h (int128_integer_type_node): Remove.
7298 (int128_unsigned_type_node): Remove.
7299 (int_n_trees_t): New.
7300 (int_n_enabled_p): New.
7301 (int_n_trees): New.
7302 * toplev.c (standard_type_bitsize): New.
7303 (do_compile): Check which __intN types are enabled for the current
7304 run.
7305 * builtin-types.def (BT_INT128): Remove.
7306 (BT_UINT128): Remove.
7307 * machmode.def: Add macro to create __int128 for all targets.
7308 * stor-layout.c (mode_for_size): Support __intN types.
7309 (smallest_mode_for_size): Likewise.
7310 (initialize_sizetypes): Support __intN types.
7311 * genmodes.c (struct mode_data): Add int_n field.
7312 (blank_mode): Likewise.
7313 (INT_N): New.
7314 (make_int_n): New.
7315 (emit_insn_modes_h): Count __intN entries and define
7316 NUM_INT_N_ENTS.
7317 (emit_mode_int_n): New.
7318 (emit_insn_modes_c): Call it.
7319 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
7320 types, not just __int128.
7321 * tree-core.h (integer_type_kind): Remove __int128-specific
7322 entries, reserve spots for __intN entries.
7323
7324 * config/msp430/msp430-modes.def (PSI): Add.
7325
7326 2014-10-14 Kito Cheng <kito@0xlab.org>
7327
7328 * ira.c: Fix typo in comment.
7329 * ira.h: Ditto.
7330 * ira-build.c: Ditto.
7331 * ira-color.c: Ditto.
7332 * ira-emit.c: Ditto.
7333 * ira-int.h: Ditto.
7334 * ira-lives.c: Ditto.
7335
7336 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
7337
7338 PR rtl-optimization/63475
7339 * alias.c (true_dependence_1): Always use get_addr to extract
7340 true address operands from x_addr and mem_addr. Use extracted
7341 address operands to check for references with alignment ANDs.
7342 Use extracted address operands with find_base_term and
7343 base_alias_check. For noncanonicalized operands call canon_rtx with
7344 extracted address operand.
7345 (write_dependence_1): Ditto.
7346 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
7347
7348 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
7349
7350 PR target/63534
7351 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
7352 __morestack local.
7353
7354 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7355 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7356 Anna Tikhonova <anna.tikhonova@intel.com>
7357 Ilya Tocar <ilya.tocar@intel.com>
7358 Andrey Turetskiy <andrey.turetskiy@intel.com>
7359 Ilya Verbin <ilya.verbin@intel.com>
7360 Kirill Yukhin <kirill.yukhin@intel.com>
7361 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7362
7363 * config/i386/i386.c
7364 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
7365 (ix86_expand_int_vcond): Ditto.
7366
7367 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7368 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7369 Anna Tikhonova <anna.tikhonova@intel.com>
7370 Ilya Tocar <ilya.tocar@intel.com>
7371 Andrey Turetskiy <andrey.turetskiy@intel.com>
7372 Ilya Verbin <ilya.verbin@intel.com>
7373 Kirill Yukhin <kirill.yukhin@intel.com>
7374 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7375
7376 * config/i386/i386.c
7377 (emit_reduc_half): Handle V64QI and V32HI mode.
7378 * config/i386/sse.md
7379 (define_mode_iterator VI_AVX512BW): New.
7380 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
7381
7382 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7383 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7384 Anna Tikhonova <anna.tikhonova@intel.com>
7385 Ilya Tocar <ilya.tocar@intel.com>
7386 Andrey Turetskiy <andrey.turetskiy@intel.com>
7387 Ilya Verbin <ilya.verbin@intel.com>
7388 Kirill Yukhin <kirill.yukhin@intel.com>
7389 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7390
7391 * config/i386/sse.md
7392 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
7393
7394 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7395 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7396 Anna Tikhonova <anna.tikhonova@intel.com>
7397 Ilya Tocar <ilya.tocar@intel.com>
7398 Andrey Turetskiy <andrey.turetskiy@intel.com>
7399 Ilya Verbin <ilya.verbin@intel.com>
7400 Kirill Yukhin <kirill.yukhin@intel.com>
7401 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7402
7403 * config/i386/i386.c
7404 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
7405 * config/i386/sse.md
7406 (define_mode_iterator VI): Add V64QI and V32HI modes.
7407
7408 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7409 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7410 Anna Tikhonova <anna.tikhonova@intel.com>
7411 Ilya Tocar <ilya.tocar@intel.com>
7412 Andrey Turetskiy <andrey.turetskiy@intel.com>
7413 Ilya Verbin <ilya.verbin@intel.com>
7414 Kirill Yukhin <kirill.yukhin@intel.com>
7415 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7416
7417 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
7418
7419 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7420 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7421 Anna Tikhonova <anna.tikhonova@intel.com>
7422 Ilya Tocar <ilya.tocar@intel.com>
7423 Andrey Turetskiy <andrey.turetskiy@intel.com>
7424 Ilya Verbin <ilya.verbin@intel.com>
7425 Kirill Yukhin <kirill.yukhin@intel.com>
7426 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7427
7428 * config/i386/sse.md
7429 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
7430 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
7431
7432 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7433 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7434 Anna Tikhonova <anna.tikhonova@intel.com>
7435 Ilya Tocar <ilya.tocar@intel.com>
7436 Andrey Turetskiy <andrey.turetskiy@intel.com>
7437 Ilya Verbin <ilya.verbin@intel.com>
7438 Kirill Yukhin <kirill.yukhin@intel.com>
7439 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7440
7441 * config/i386/sse.md
7442 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
7443 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
7444
7445 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7446 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7447 Anna Tikhonova <anna.tikhonova@intel.com>
7448 Ilya Tocar <ilya.tocar@intel.com>
7449 Andrey Turetskiy <andrey.turetskiy@intel.com>
7450 Ilya Verbin <ilya.verbin@intel.com>
7451 Kirill Yukhin <kirill.yukhin@intel.com>
7452 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7453
7454 * config/i386/sse.md
7455 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
7456 (define_mode_iterator VI2_AVX2): Add V32HI mode.
7457 (define_expand "mul<mode>3<mask_name>"): Add masking.
7458 (define_insn "*mul<mode>3<mask_name>"): Ditto.
7459 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
7460 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
7461 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
7462 (define_mode_attr SDOT_PMADD_SUF): Ditto.
7463 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
7464 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
7465 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
7466 (define_insn "avx2_packusdw"): Delete.
7467 (define_insn "sse4_1_packusdw"): Ditto.
7468 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
7469
7470 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7471 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7472 Anna Tikhonova <anna.tikhonova@intel.com>
7473 Ilya Tocar <ilya.tocar@intel.com>
7474 Andrey Turetskiy <andrey.turetskiy@intel.com>
7475 Ilya Verbin <ilya.verbin@intel.com>
7476 Kirill Yukhin <kirill.yukhin@intel.com>
7477 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7478
7479 * config/i386/sse.md
7480 (define_insn "vec_dup<mode>"): Update constraints.
7481
7482 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7483 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7484 Anna Tikhonova <anna.tikhonova@intel.com>
7485 Ilya Tocar <ilya.tocar@intel.com>
7486 Andrey Turetskiy <andrey.turetskiy@intel.com>
7487 Ilya Verbin <ilya.verbin@intel.com>
7488 Kirill Yukhin <kirill.yukhin@intel.com>
7489 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7490
7491 * config/i386/sse.md
7492 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
7493 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
7494 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
7495
7496 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7497 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7498 Anna Tikhonova <anna.tikhonova@intel.com>
7499 Ilya Tocar <ilya.tocar@intel.com>
7500 Andrey Turetskiy <andrey.turetskiy@intel.com>
7501 Ilya Verbin <ilya.verbin@intel.com>
7502 Kirill Yukhin <kirill.yukhin@intel.com>
7503 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7504
7505 * config/i386/sse.md
7506 (define_expand "mul<mode>3<mask_name>"): Add masking.
7507
7508 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7509 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7510 Anna Tikhonova <anna.tikhonova@intel.com>
7511 Ilya Tocar <ilya.tocar@intel.com>
7512 Andrey Turetskiy <andrey.turetskiy@intel.com>
7513 Ilya Verbin <ilya.verbin@intel.com>
7514 Kirill Yukhin <kirill.yukhin@intel.com>
7515 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7516
7517 * config/i386/sse.md
7518 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
7519 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
7520
7521 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7522 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7523 Anna Tikhonova <anna.tikhonova@intel.com>
7524 Ilya Tocar <ilya.tocar@intel.com>
7525 Andrey Turetskiy <andrey.turetskiy@intel.com>
7526 Ilya Verbin <ilya.verbin@intel.com>
7527 Kirill Yukhin <kirill.yukhin@intel.com>
7528 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7529
7530 * config/i386/sse.md
7531 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
7532 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
7533 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
7534 Ditto.
7535
7536 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7537 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7538 Anna Tikhonova <anna.tikhonova@intel.com>
7539 Ilya Tocar <ilya.tocar@intel.com>
7540 Andrey Turetskiy <andrey.turetskiy@intel.com>
7541 Ilya Verbin <ilya.verbin@intel.com>
7542 Kirill Yukhin <kirill.yukhin@intel.com>
7543 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7544
7545 * config/i386/sse.md
7546 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
7547 use VF_128_256 mode iterator and update assembler emit code.
7548 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
7549 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
7550 Add masking, use VF_128_256 mode iterator.
7551 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
7552 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
7553 Add masking, use VF_128_256 mode iterator and update assembler emit
7554 code.
7555 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
7556 (define_mode_attr avx512flogicsuff): Delete.
7557 (define_insn "avx512f_<logic><mode>"): Ditto.
7558 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
7559 MODE_TI.
7560 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
7561
7562 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7563 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7564 Anna Tikhonova <anna.tikhonova@intel.com>
7565 Ilya Tocar <ilya.tocar@intel.com>
7566 Andrey Turetskiy <andrey.turetskiy@intel.com>
7567 Ilya Verbin <ilya.verbin@intel.com>
7568 Kirill Yukhin <kirill.yukhin@intel.com>
7569 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7570
7571 * config/i386/sse.md
7572 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
7573 (define_expand "vashr<mode>3<mask_name>"): Add masking,
7574 use VI12_128 mode iterator.
7575 (define_expand "ashrv2di3<mask_name>"): New.
7576
7577 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7578 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7579 Anna Tikhonova <anna.tikhonova@intel.com>
7580 Ilya Tocar <ilya.tocar@intel.com>
7581 Andrey Turetskiy <andrey.turetskiy@intel.com>
7582 Ilya Verbin <ilya.verbin@intel.com>
7583 Kirill Yukhin <kirill.yukhin@intel.com>
7584 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7585
7586 * config/i386/i386.c
7587 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
7588 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
7589 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
7590 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
7591 CODE_FOR_avx512vl_ucmpv4si3_mask.
7592 * config/i386/sse.md
7593 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
7594 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
7595 (define_insn
7596 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
7597 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
7598 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
7599 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
7600 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
7601 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
7602
7603 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7604 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7605 Anna Tikhonova <anna.tikhonova@intel.com>
7606 Ilya Tocar <ilya.tocar@intel.com>
7607 Andrey Turetskiy <andrey.turetskiy@intel.com>
7608 Ilya Verbin <ilya.verbin@intel.com>
7609 Kirill Yukhin <kirill.yukhin@intel.com>
7610 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7611
7612 * config/i386/sse.md
7613 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
7614 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
7615 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
7616 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
7617 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
7618 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
7619 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
7620 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
7621 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
7622
7623 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7624 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7625 Anna Tikhonova <anna.tikhonova@intel.com>
7626 Ilya Tocar <ilya.tocar@intel.com>
7627 Andrey Turetskiy <andrey.turetskiy@intel.com>
7628 Ilya Verbin <ilya.verbin@intel.com>
7629 Kirill Yukhin <kirill.yukhin@intel.com>
7630 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7631
7632 * config/i386/sse.md
7633 (define_insn "avx512f_blendm<mode>"): Delete.
7634 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
7635 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
7636 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
7637 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
7638 (define_insn
7639 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
7640 Remove.
7641 (define_insn
7642 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
7643 New.
7644 (define_insn
7645 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
7646 Ditto.
7647 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
7648 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
7649 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
7650 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
7651 Delete.
7652 (define_insn
7653 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
7654 New.
7655 (define_insn
7656 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
7657 Ditto.
7658 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
7659 Delete.
7660 (define_insn
7661 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
7662 New.
7663 (define_insn
7664 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
7665 Ditto.
7666
7667 2014-10-14 Richard Biener <rguenther@suse.de>
7668
7669 PR tree-optimization/63512
7670 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
7671 modified.
7672
7673 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
7674
7675 PR target/63260
7676 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
7677 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
7678 of FPSCR.
7679 (negsf2_i): Rename to *negsf2_i.
7680 (abssf2_i): Rename to *abssf2_i.
7681 (negdf2_i): Rename to *negdf2_i.
7682 (absdf2_i): Rename to *absdf2_i.
7683
7684 2014-10-14 Felix Yang <felix.yang@huawei.com>
7685 Jeff Law <law@redhat.com>
7686
7687 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
7688 "replace" into boolean bitfields; turn member "loop_depth" into a short
7689 integer; add new member "no_equiv" and "reserved".
7690 (no_equiv): Set no_equiv of struct equivalence if register is marked
7691 as having no known equivalence.
7692 (update_equiv_regs): Check all definitions for a multiple-set
7693 register to make sure that the RHS have the same value.
7694
7695 2014-10-13 Richard Henderson <rth@redhat.com>
7696
7697 * combine-stack-adj.c (no_unhandled_cfa): New.
7698 (maybe_merge_cfa_adjust): New.
7699 (combine_stack_adjustments_for_block): Use them.
7700
7701 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
7702
7703 * Makefile.in (TAGS): Tag ../include files.
7704
7705 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7706
7707 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
7708 to rs6000_dbx_register_number.
7709 (DWARF_FRAME_REGNUM): Redefine as identity map.
7710 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
7711 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
7712 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
7713 argument to handle .debug_frame and .eh_frame directly. Always
7714 translate SPE high register numbers. Add special treatment for CR,
7715 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
7716
7717 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
7718 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
7719 (RS6000_USE_DWARF_NUMBERING): Define.
7720 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
7721 (RS6000_USE_DWARF_NUMBERING): Define.
7722 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
7723 (RS6000_USE_DWARF_NUMBERING): Define.
7724 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
7725 (RS6000_USE_DWARF_NUMBERING): Define.
7726 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
7727 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
7728
7729 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
7730
7731 * config/i386/i386.c (ix86_address_cost): Lower cost for
7732 when address contains GOT register.
7733
7734 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
7735 Vladimir Makarov <vmakarov@redhat.com>
7736
7737 PR target/8340
7738 PR middle-end/47602
7739 PR rtl-optimization/55458
7740 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
7741 (ix86_init_pic_reg): New.
7742 (ix86_select_alt_pic_regnum): Add check on pseudo register.
7743 (ix86_save_reg): Likewise.
7744 (ix86_expand_prologue): Remove PIC register initialization
7745 now performed in ix86_init_pic_reg.
7746 (ix86_output_function_epilogue): Add check on pseudo register.
7747 (set_pic_reg_ever_alive): New.
7748 (legitimize_pic_address): Replace df_set_regs_ever_live with new
7749 set_pic_reg_ever_alive.
7750 (legitimize_tls_address): Likewise.
7751 (ix86_pic_register_p): New check.
7752 (ix86_delegitimize_address): Add check on pseudo register.
7753 (ix86_expand_call): Insert move from pseudo PIC register to ABI
7754 defined REAL_PIC_OFFSET_TABLE_REGNUM.
7755 (TARGET_INIT_PIC_REG): New.
7756 (TARGET_USE_PSEUDO_PIC_REG): New.
7757 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
7758 if pic_offset_table_rtx exists.
7759 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
7760 Document.
7761 * doc/tm.texi: Regenerate.
7762 * function.c (assign_parms): Generate pseudo register for PIC.
7763 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
7764 register.
7765 * ira-color.c (color_pass): Add check on pseudo register.
7766 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
7767 register.
7768 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
7769 register.
7770 (ira): Add target specific PIC register initialization.
7771 (do_reload): Keep PIC pseudo register.
7772 * lra-assigns.c (spill_for): Add checks on pseudo register.
7773 * lra-constraints.c (contains_symbol_ref_p): New.
7774 (lra_constraints): Enable lra risky transformations when PIC is pseudo
7775 register.
7776 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
7777 * target.def (use_pseudo_pic_reg): New.
7778 (init_pic_reg): New.
7779
7780 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
7781
7782 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
7783 Remove m_SILVERMONT and m_INTEL from the tune.
7784
7785 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7786
7787 PR libfortran/63471
7788 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7789 when _HPUX_SOURCE is defined.
7790
7791 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
7792
7793 PR tree-optimization/62127
7794 * tree.c (remap_type_1): When remapping array, remap
7795 also its type.
7796
7797 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
7798
7799 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
7800 longer impact parallelization.
7801
7802 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
7803
7804 PR bootstrap/63496
7805 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
7806
7807 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
7808
7809 * asan.c (instrument_derefs): BIT_FIELD_REF added.
7810
7811 2014-10-13 Richard Biener <rguenther@suse.de>
7812
7813 PR tree-optimization/63419
7814 * gimple-fold.h (gimple_convert): New function.
7815 * gimple-fold.c (gimple_convert): Likewise.
7816 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
7817 to split out required conversions early.
7818
7819 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
7820
7821 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
7822 Add the parts of an insn in reverse order, with the pattern at
7823 the top of the queue. Detect when we're iterating over a SEQUENCE
7824 pattern and in that case just consider patterns of subinstructions.
7825
7826 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
7827
7828 PR target/59401
7829 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
7830 of rtx.
7831 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
7832 insn walking.
7833 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
7834 address. Use def chains to handle GBR clobbering call insns.
7835
7836 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
7837
7838 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
7839 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
7840 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
7841 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
7842 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
7843 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
7844 * doc/gty.texi (for_user): Document new option.
7845 * gengtype.c (create_user_defined_type): Don't try to get a struct for
7846 char.
7847 (walk_type): Don't error out on for_user option.
7848 (write_func_for_structure): Emit user marking routines if requested by
7849 for_user option.
7850 (write_local_func_for_structure): Likewise.
7851 (main): Mark types with for_user option as used.
7852 * ggc.h (gt_pch_nx): Add overload for unsigned int.
7853 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
7854 * hash-table.h (ggc_hasher): New struct.
7855 (hash_table::create_ggc): New function.
7856 (gt_pch_nx): New overload for hash_table.
7857
7858 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
7859
7860 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
7861 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
7862 * config/sh/sh.c: Likewise.
7863 * config/sh/sh-mem.cc: Likewise.
7864 * config/sh/sh.md: Likewise.
7865 * config/sh/predicates.md: Likewise.
7866 * config/sh/sync.md: Likewise.
7867
7868 2014-10-11 Martin Liska <mliska@suse.cz>
7869
7870 PR middle-end/63376
7871 * cgraphunit.c (symbol_table::process_new_functions): Missing call
7872 for call_cgraph_insertion_hooks added.
7873
7874 2014-10-10 Jakub Jelinek <jakub@redhat.com>
7875
7876 PR c/63495
7877 * stor-layout.c (min_align_of_type): Don't decrease alignment
7878 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
7879 TYPE_USER_ALIGN is set.
7880
7881 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
7882
7883 PR rtl-optimization/63483
7884 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
7885 references when alignment ANDs are involved.
7886 (write_dependence_p): Ditto.
7887 (may_alias_p): Ditto.
7888
7889 2014-10-10 Marek Polacek <polacek@redhat.com>
7890
7891 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
7892 * doc/invoke.texi: Document -fsanitize=object-size.
7893 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
7894 or it into SANITIZE_UNDEFINED.
7895 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
7896 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
7897 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
7898 * opts.c (common_handle_option): Handle -fsanitize=object-size.
7899 * ubsan.c: Include tree-object-size.h.
7900 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
7901 (ubsan_expand_bounds_ifn): Use false instead of 0.
7902 (ubsan_expand_objsize_ifn): New function.
7903 (instrument_object_size): New function.
7904 (pass_ubsan::execute): Add object size instrumentation.
7905 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
7906
7907 2014-10-10 Richard Henderson <rth@redhat.com>
7908
7909 PR target/63404
7910 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
7911 Restrict the set of expressions we're willing to move.
7912
7913 2014-10-10 Jeff Law <law@redhat.com>
7914
7915 * ira.c (struct equivalence): Promote INIT_INSNs field to
7916 an rtx_insn_list. Add comments.
7917 (no_equiv): Promote LIST to an rtx_insn_list. Update
7918 testing for and creating the special marker. Use methods
7919 to extract the insn and next pointers. Promote INSN to an
7920 rtx_insn.
7921 (update_equiv_regs): Update test for special marker in the
7922 INIT_INSNs list.
7923
7924 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7925
7926 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
7927 * configure: Regenerate.
7928 * config/aarch64/aarch64.c (aarch64_override_options): Handle
7929 TARGET_FIX_ERR_A53_835769_DEFAULT.
7930 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
7931 value to 2.
7932 * doc/install.texi (aarch64*-*-*): Document
7933 new --enable-fix-cortex-a53-835769 option.
7934
7935 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7936 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7937
7938 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
7939 (ADJUST_INSN_LENGTH): Define.
7940 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
7941 * config/aarch64/aarch64.c (is_mem_p): New function.
7942 (is_memory_op): Likewise.
7943 (aarch64_prev_real_insn): Likewise.
7944 (is_madd_op): Likewise.
7945 (dep_between_memop_and_curr): Likewise.
7946 (aarch64_madd_needs_nop): Likewise.
7947 (aarch64_final_prescan_insn): Likewise.
7948 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
7949 and -mno-fix-cortex-a53-835769 options.
7950
7951 2014-10-10 Jakub Jelinek <jakub@redhat.com>
7952
7953 PR tree-optimization/63464
7954 * tree-switch-conversion.c (struct case_bit_test): Remove
7955 hi and lo fields, add wide_int mask field.
7956 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
7957 hi/lo fields into wide_int mask operations, optimize by pretending
7958 minval to be 0 if maxval is small enough.
7959 (process_switch): Adjust caller.
7960
7961 2014-10-10 Richard Biener <rguenther@suse.de>
7962
7963 PR tree-optimization/63379
7964 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
7965 a neutral operand for min/max when it is not a reduction chain.
7966
7967 2014-10-10 Richard Biener <rguenther@suse.de>
7968
7969 PR tree-optimization/63476
7970 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
7971 (BB_LIVE_VOP_ON_EXIT): New define.
7972 (create_expression_by_pieces): Assign VUSEs to stmts.
7973 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
7974 (pass_pre::execute): Assert virtual SSA form is up-to-date
7975 after insertion.
7976
7977 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
7978
7979 * lra-assigns.c (assign_by_spills): Error out on spill failure.
7980
7981 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
7982
7983 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
7984 assertion.
7985
7986 2014-10-09 Richard Biener <rguenther@suse.de>
7987
7988 PR tree-optimization/63380
7989 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
7990 may trap.
7991
7992 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
7993
7994 * config/avr/avr.opt (mmcu=): Change to have a string value.
7995 (mn-flash=, mskip-bug, march=, mrmw): New options.
7996 (HeaderInclude): New.
7997 (mmcu=): Remove Var / Init clauses.
7998 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
7999 -specs option.
8000 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
8001 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
8002 (SYMBOL_FLAG_IO_LOW): Define.
8003 (avr_device_to_as, avr_device_to_ld): Don't declare.
8004 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
8005 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
8006 (EXTRA_SPEC_FUNCTIONS): Don't define.
8007 (ASM_SPEC): Translate -arch= option to -mmcu= option.
8008 (LINK_SPEC): Translate -arch= option to -m= option.
8009 Don't use device_to_ld / device_to_data_start.
8010 (STARTFILE_SPEC): Now empty.
8011 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
8012 * config/avr/gen-avr-mmcu-specs.c: New file.
8013 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
8014 (s-device-specs): Likewise.
8015 (GCC_PASSES): Add s-device-specs.
8016 (install-driver): Depend on install-device-specs.
8017 (install-device-specs): New rule.
8018 * config/avr/avr.c (avr_option_override): Look up mcu arch by
8019 avr_arch_index and provide fallback initialization for avr_n_flash.
8020 (varasm.h): #include.
8021 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
8022 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
8023 (avr_attribute_table): Add "io", "address" and "io_low".
8024 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
8025 Add special handling for symbols with "io" and/or "address" attributes.
8026 (avr_asm_asm_output_aligned_bss): New function.
8027 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
8028 as appropriate. Handle io_low attribute.
8029 (avr_out_sbxx_branch): Handle symbolic io addresses.
8030 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
8031 avr_n_flash instead of avr_current_device->n_flash.
8032 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
8033 (avr_emit_movmemhi): Likewise.
8034 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
8035 Use TARGET_RMW instead of avr_current_device->dev_attributes.
8036 Don't define avr_current_device->macro (that's the specfile's job).
8037 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
8038 * config/avr/avr.c (avr_2word_insn_p): Likewise.
8039 * config/avr/avr.md (*cpse.ne): Likewise.
8040 (mov<mode>): Use avr_eval_addr_attrib.
8041 (cbi): Change constraint for low_io_address_operand operand to "i".
8042 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
8043 * config/avr/predicates.md (io_address_operand):
8044 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
8045 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
8046 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
8047 Update prototype.
8048 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
8049 * config/avr/genmultilib.awk: Use -march=.
8050 Remove Multilib matches processing.
8051 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
8052 * config/avr/avr-arch.h: Add double include guard.
8053 (avr_mcu_t) <library_name>: Update comment.
8054 * config/avr/driver-avr.c (avr_device_to_as): Delete.
8055 (avr_device_to_ld, avr_device_to_data_start): Likewise.
8056 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
8057 (avr_device_to_sp8): Likewise.
8058 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
8059
8060 * doc/extend.texi (io, address): Document new AVR variable attributes.
8061 (io_low): Likewise.
8062
8063 2014-10-09 Marek Polacek <polacek@redhat.com>
8064
8065 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
8066
8067 2014-10-08 Richard Biener <rguenther@suse.de>
8068
8069 PR tree-optimization/61969
8070 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
8071 variables.
8072
8073 2014-10-09 Richard Biener <rguenther@suse.de>
8074
8075 PR tree-optimization/63445
8076 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
8077 overflow for non-equality compares.
8078
8079 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
8080
8081 PR rtl-optimization/57003
8082 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
8083 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
8084 killing regs_invalidated_by_call.
8085
8086 2014-10-08 Teresa Johnson <tejohnson@google.com>
8087
8088 PR bootstrap/63432.
8089 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
8090 (ssa_fix_duplicate_block_edges): Invoke it.
8091 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
8092
8093 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
8094
8095 PR target/52941
8096 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
8097 atomic_fetch_<fetchop_name>si_hard,
8098 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
8099 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
8100 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
8101 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
8102
8103 2014-10-08 Rong Xu <xur@google.com>
8104
8105 * gcov-tool.c (profile_overlap): New driver function
8106 to compute profile overlap.
8107 (print_overlap_usage_message): New.
8108 (overlap_usage): New.
8109 (do_overlap): New.
8110 (print_usage): Add calls to overlap function.
8111 (main): Ditto.
8112 * doc/gcov-tool.texi: Add documentation.
8113
8114 2014-10-08 Steve Ellcey <sellcey@mips.com>
8115
8116 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
8117 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
8118
8119 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
8120
8121 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
8122 pattern matching of MEM_REF.
8123 (check_stmt_for_type_change): Update.
8124
8125 2014-10-08 Steve Ellcey <sellcey@mips.com>
8126
8127 * config/mips/linux64.h: Remove.
8128 * config/mips/gnu-user64.h: Remove.
8129 * gcc.config (mips*-*-*): Remove references to linux64.h and
8130 gnu-user64.h
8131 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
8132 with modified version from gnu-user64.h.
8133 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
8134 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
8135 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
8136 linux64.h.
8137 (GNU_USER_LINK_EMULATION64): Ditto.
8138 (GNU_USER_LINK_EMULATIONN32): Ditto.
8139 (GLIBC_DYNAMIC_LINKER32): Ditto.
8140 (GLIBC_DYNAMIC_LINKER64): Ditto.
8141 (GLIBC_DYNAMIC_LINKERN32): Ditto.
8142 (UCLIBC_DYNAMIC_LINKER32): Ditto.
8143 (UCLIBC_DYNAMIC_LINKER64): Ditto.
8144 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
8145 (BIONIC_DYNAMIC_LINKERN32): Ditto.
8146 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
8147 (GLIBC_DYNAMIC_LINKER): Delete.
8148 (UCLIBC_DYNAMIC_LINKER): Delete.
8149
8150 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
8151 Richard Biener <rguenther@suse.de>
8152
8153 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
8154 Get address space from operand 0 (BASE).
8155
8156 2014-10-07 Iain Sandoe <iain@codesourcery.com>
8157
8158 PR target/61387
8159 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
8160
8161 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
8162
8163 * dwarf2out.c: Remove current_function_has_inlines.
8164 (gen_subprogram_die): Same.
8165 (gen_inlined_subroutine_die): Same.
8166
8167 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
8168
8169 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
8170 type.
8171 (_addcarry_u64): Ditto.
8172 (_addcarryx_u64): Ditto.
8173
8174 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
8175
8176 * cgraph.h (cgraph_node::get_fun): Declare.
8177 * cgraph.c (cgraph_node::get_fun): New method.
8178 * ipa-inline.c (can_inline_edge_p): Use it.
8179
8180 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
8181
8182 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
8183 and -ftrapping-math.
8184 * lto-wrapper.c (merge_and_complain): Likewise.
8185 (run_gcc): Likewise.
8186
8187 2014-10-06 Rong Xu <xur@google.com>
8188
8189 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
8190 * tree-profile.c: (params.h): New include.
8191 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
8192 and __gcov_indirect_call_topn_counters for
8193 indirect_call_topn_profile.
8194 (gimple_init_edge_profiler): New decls for
8195 __gcov_indirect_call_topn_profiler.
8196 (gimple_gen_ic_profiler): Generate the correct profiler call.
8197 (gimple_gen_ic_func_profiler): Fix format.
8198 * value-prof.c (params.h): New include.
8199 (dump_histogram_value): Hanlde indirect_call_topn counters.
8200 (stream_in_histogram_value): Ditto.
8201 (gimple_indirect_call_to_profile): Use indirect_call_topn
8202 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
8203 (gimple_find_values_to_profile): Hanlde indirect_call_topn
8204 counters.
8205 * value-prof.h (enum hist_type): Histrogram type for
8206 indirect_call_topn counters.
8207 * profile.c (instrument_values): Instrument
8208 indirect_call_topn counters.
8209
8210 2014-10-06 Rong Xu <xur@google.com>
8211
8212 * Makefile.in: Fix dependence.
8213 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
8214 indirect call topn profiler.
8215 * gcov-io.h: Ditto.
8216
8217 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
8218
8219 * calls.c (expand_call): Do not use the target as the return slot if
8220 it is not sufficiently aligned.
8221
8222 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8223
8224 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
8225 discussion of permutes and why we don't handle them.
8226
8227 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
8228
8229 * config/sparc/predicates.md (int_register_operand): Delete.
8230
8231 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
8232
8233 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
8234
8235 2014-10-06 Jakub Jelinek <jakub@redhat.com>
8236
8237 * ubsan.h (ubsan_get_source_location): New prototype.
8238 * ubsan.c (ubsan_source_location_type): New variable.
8239 Function renamed to ...
8240 (ubsan_get_source_location_type): ... this. Cache
8241 return value in ubsan_source_location_type variable.
8242 (ubsan_source_location, ubsan_create_data): Use
8243 ubsan_get_source_location_type instead of
8244 ubsan_source_location_type.
8245 * asan.c (asan_protect_global): Don't protect globals
8246 with ubsan_get_source_location_type () type.
8247 (asan_add_global): Provide global decl location info
8248 if possible.
8249
8250 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
8251
8252 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
8253 sanity check.
8254
8255 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
8256
8257 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
8258 on size.
8259 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
8260 into vptr pointer.
8261 (ipa_polymorphic_call_context::dump): Fix formating.
8262 (walk_ssa_copies): Add logic avoiding loops; update uses.
8263 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
8264
8265 2014-10-02 Mark Wielaard <mjw@redhat.com>
8266
8267 PR debug/63239
8268 * dwarf2out.c (gen_subprogram_die): When a member function is
8269 explicitly deleted then add a DW_AT_GNU_deleted attribute.
8270 * langhooks.h (struct lang_hooks_for_decls): Add
8271 function_decl_deleted_p langhook.
8272 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
8273 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
8274
8275 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
8276
8277 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
8278 NULL pointer checks.
8279 (ipa_polymorphic_call_context::get_dynamic_type): Return true
8280 if type doesn't change.
8281 * cgraph.h (cgraph_indirect_call_info): New flag.
8282 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
8283 (cgraph_node::dump): Dump it.
8284 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
8285 of context.get_dynamic_type.
8286 (ipa_make_edge_direct_to_target): Do not speculate
8287 edge that is already speuclative.
8288 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
8289 speculate to __builtin_unreachable
8290 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
8291 vptr_changed.
8292 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
8293
8294 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
8295
8296 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
8297 get_dynamic_type; drop TODO.
8298 * ipa-polymorphic-call.c
8299 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
8300 for otr_type to be unknown.
8301
8302 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
8303
8304 * common/config/score/score-common.c: Remove.
8305 * config.gcc: Remove support for score-*.
8306 * config/score/constraints.md: Remove.
8307 * config/score/elf.h: Remove.
8308 * config/score/predicates.md: Remove.
8309 * config/score/score-conv.h: Remove.
8310 * config/score/score-generic.md: Remove.
8311 * config/score/score-modes.def: Remove.
8312 * config/score/score-protos.h: Remove.
8313 * config/score/score.c: Remove.
8314 * config/score/score.h: Remove.
8315 * config/score/score.md: Remove.
8316 * config/score/score.opt: Remove.
8317 * doc/md.texi: Don't document score-*.
8318
8319 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
8320
8321 PR pch/63429
8322 * genconditions.c: Directly include ggc.h before rtl.h.
8323
8324 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
8325
8326 * ipa-polymorphic-call.c
8327 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
8328 code determining speculative type.
8329 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
8330
8331 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8332
8333 * altivec.md (altivec_lvsl): New define_expand.
8334 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
8335 (altivec_lvsr): New define_expand.
8336 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
8337 * rs6000.c (rs6000_expand_builtin): Change to use
8338 altivec_lvs[lr]_direct; remove commented-out code.
8339
8340 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8341
8342 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8343 Issue a warning message when vec_lvsl or vec_lvsr is used with a
8344 little endian target.
8345
8346 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
8347
8348 * tree-pretty-print.c (dump_location): Make it extern. Dump also
8349 the column.
8350 * tree-pretty-print.h (dump_location): Declare.
8351 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
8352 (pp_gimple_stmt_1): Likewise.
8353 (dump_implicit_edges): Likewise.
8354 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
8355 LOCATION_LINE.
8356
8357
8358 2014-10-03 David Malcolm <dmalcolm@redhat.com>
8359
8360 * gcc.c (driver::global_initializations): Remove "const" so
8361 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
8362 and decoded_options_count.
8363
8364 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
8365
8366 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
8367 macro.
8368 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
8369 TARGET_E500_DOUBLE case here.
8370
8371 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
8372
8373 PR c++/54427
8374 PR c++/57198
8375 PR c++/58845
8376 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
8377
8378 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
8379
8380 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
8381 * lto-cgraph.c (lto_output_edge, input_edge): Stream
8382 in_polymorphic_cdtor
8383 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
8384 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
8385 * cgraphclones.c (cgraph_edge::clone): Likewise.
8386 * ipa-prop.c (update_jump_functions_after_inlining,
8387 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
8388 to possible_dynamic_type_change.
8389 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
8390 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
8391 IN_POLY_CDOTR argument.
8392
8393 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
8394 for BASE and OUTER_TYPE being NULL.
8395 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
8396 in_poly_cdtor parameter.
8397
8398 2014-10-03 Jakub Jelinek <jakub@redhat.com>
8399
8400 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
8401 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
8402 TARGET_AVX512F.
8403 (expand_vec_perm_1): Likewise.
8404
8405 2014-10-03 Jakub Jelinek <jakub@redhat.com>
8406 Uros Bizjak <ubizjak@gmail.com>
8407
8408 PR tree-optimization/61403
8409 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
8410 error in comment. Also optimize 256-bit vectors for AVX2
8411 or AVX (floating vectors only), provided the first permutation
8412 can be performed in one insn.
8413
8414 2014-10-03 David Malcolm <dmalcolm@redhat.com>
8415
8416 * gcc.c (class driver): New class.
8417 (main): Reimplement in terms of driver::main, moving most of the
8418 locals to be locals within individual methods of class driver.
8419 The remaining locals "explicit_link_files", "decoded_options" and
8420 "decoded_options_count" are used by multiple driver:: methods, and
8421 so become member data. Doing so isolates the argc/argv reads and
8422 writes. Replace "goto out" with a special exit code from
8423 new method driver::prepare_infiles. Split out the old
8424 implementation of main into the following...
8425 (driver::main): New function, corresponding to the old "main"
8426 implementation.
8427 (driver::set_progname): New function, taken from the old
8428 "main" implementation.
8429 (driver::expand_at_files): Likewise.
8430 (driver::decode_argv): Likewise.
8431 (driver::global_initializations): Likewise.
8432 (driver::build_multilib_strings): Likewise.
8433 (driver::set_up_specs): Likewise.
8434 (driver::putenv_COLLECT_GCC): Likewise.
8435 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
8436 (driver::handle_unrecognized_options): Likewise.
8437 (driver::maybe_print_and_exit): Likewise.
8438 (driver::prepare_infiles): Likewise.
8439 (driver::do_spec_on_infiles): Likewise.
8440 (driver::maybe_run_linker): Likewise.
8441 (driver::final_actions): Likewise.
8442 (driver::get_exit_code): Likewise.
8443
8444 2014-10-03 Yury Gribov <y.gribov@samsung.com>
8445
8446 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
8447 don't emit empty ctors.
8448
8449 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
8450
8451 * convert.c (convert_to_integer): Do not introduce useless conversions
8452 between integral types.
8453
8454 2014-10-03 David Sherwood <david.sherwood@arm.com>
8455
8456 * ira-int.h (ira_allocno): Mark hard_regno as signed.
8457
8458 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
8459
8460 * lra-constraints.c (inherit_in_ebb): Handle calls with
8461 multiple return values.
8462 * caller-save.c (save_call_clobbered_regs): Likewise.
8463
8464 2014-10-03 Jakub Jelinek <jakub@redhat.com>
8465
8466 * tree-vect-data-refs.c (vect_permute_load_chain,
8467 vect_shift_permute_load_chain): Fix a typo in temporary var names,
8468 suffle3 to shuffle3.
8469
8470 PR libgomp/61200
8471 * omp-low.c (taskreg_contexts): New variable.
8472 (scan_omp_parallel): Push newly created context into taskreg_contexts
8473 vector and move record layout code to finish_taskreg_scan.
8474 (scan_omp_task): Likewise.
8475 (finish_taskreg_scan): New function.
8476 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
8477 vector elements and release it.
8478
8479 PR target/62128
8480 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
8481 of palignr arguments can't be used due to min 0 or max - min
8482 too high, try also op0, op1 order of palignr arguments.
8483
8484 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
8485
8486 * cgraph.h (ipa_polymorphic_call_context):
8487 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
8488 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
8489 * ipa-polymorphic-call.c
8490 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
8491 past end of dynamic types.
8492 (ipa_polymorphic_call_context::stream_out,
8493 speculative_outer_type): Stream dynamic flag.
8494 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
8495 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
8496 Clear DYNAMIC.
8497 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
8498 set it.
8499 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
8500 * ipa-prop.c (update_jump_functions_after_inlining,
8501 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
8502
8503 2014-10-02 Teresa Johnson <tejohnson@google.com>
8504
8505 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
8506 up when synthesizing counts to avoid rounding errors.
8507
8508 2014-10-02 Teresa Johnson <tejohnson@google.com>
8509
8510 PR middle-end/63422
8511 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
8512 asserts to handle incoming insanities.
8513
8514 2014-10-02 Martin Jambor <mjambor@suse.cz>
8515
8516 PR tree-optimization/63375
8517 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
8518 references.
8519
8520 2014-10-02 Olivier Hainque <hainque@adacore.com>
8521
8522 * Makefile.in (CROSS): Define, to @CROSS.
8523
8524 2014-10-02 Jakub Jelinek <jakub@redhat.com>
8525
8526 PR target/62128
8527 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
8528 if it expands to a single insn only.
8529 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
8530 fail unless in_order is true. Add forward declaration.
8531 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
8532 is useful for one_operand_p.
8533 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
8534
8535 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
8536
8537 * cgraphclones.c (build_function_type_skip_args): Do not make new
8538 type variant of old.
8539
8540 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
8541
8542 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
8543 when speculation is added.
8544 (ipa_edge_args): Add polymorphic_call_contexts.
8545 (ipa_get_ith_polymorhic_call_context): New accesor.
8546 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
8547 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
8548 (ipa_compute_jump_functions_for_edge): Compute contexts.
8549 (update_jump_functions_after_inlining): Update contexts.
8550 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
8551 update dumping; add speculative edge creation.
8552 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
8553 context updating.
8554 (update_indirect_edges_after_inlining): Pass down context.
8555 (ipa_edge_duplication_hook): Duplicate contexts.
8556 (ipa_write_node_info): Stream out contexts.
8557 (ipa_read_node_info): Stream in contexts.
8558 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
8559 types.
8560 (try_speculative_devirtualization): New function.
8561 * ipa-utils.h (try_speculative_devirtualization): Declare.
8562
8563 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
8564
8565 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
8566 dumping during WPA.
8567
8568 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
8569
8570 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
8571 type variants.
8572
8573 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
8574
8575 * ipa-polymorphic-call.c
8576 (ipa_polymorphic_call_context::restrict_to_inner_class):
8577 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
8578 use speculation_consistent_p to do so; Add CONSDER_BASES
8579 and CONSIDER_PLACEMENT_NEW parameters.
8580 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
8581 short circuit obvious cases.
8582 (ipa_polymorphic_call_context::dump): Improve formatting.
8583 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
8584 combine_speculation_with to record speculations; Do not ICE when
8585 object is located in pointer type decl; do not ICE for methods
8586 of UNION_TYPE; do not record nonpolymorphic types.
8587 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
8588 (ipa_polymorphic_call_context::combine_speculation_with): New method.
8589 (ipa_polymorphic_call_context::combine_with): New method.
8590 (ipa_polymorphic_call_context::make_speculative): Move here; use
8591 combine speculation.
8592 * cgraph.h (ipa_polymorphic_call_context): Update
8593 restrict_to_inner_class prototype; add offset_by, make_speculative,
8594 combine_with, useless_p, combine_speculation_with and
8595 speculation_consistent_p methods.
8596 (ipa_polymorphic_call_context::offset_by): New method.
8597 (ipa_polymorphic_call_context::useless_p): New method.
8598
8599 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8600
8601 PR rtl-optimization/62151
8602 * combine.c (can_combine_p): Allow the destination register of INSN
8603 to be clobbered in I3.
8604 (subst): Do not substitute into clobbers of registers.
8605
8606 2014-10-01 Jakub Jelinek <jakub@redhat.com>
8607
8608 PR debug/63342
8609 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
8610 offset, TARGET_MEM_REF and SSA_NAME.
8611
8612 * config/i386/i386.c (expand_vec_perm_palignr): Handle
8613 256-bit vectors for TARGET_AVX2.
8614
8615 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
8616 dfirst permutation.
8617
8618 PR target/63428
8619 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
8620 argument to avx2_permv2ti.
8621
8622 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8623
8624 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
8625
8626 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
8627
8628 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
8629 (fmod<mode>3): Ditto.
8630 (fpremxf4_i387): Ditto.
8631 (reminderxf3): Ditto.
8632 (reminder<mode>3): Ditto.
8633 (fprem1xf4_i387): Ditto.
8634
8635 2014-09-30 Teresa Johnson <tejohnson@google.com>
8636
8637 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
8638 duplicate_blocks bitmap.
8639 (remove_ctrl_stmt_and_useless_edges): Ditto.
8640 (create_block_for_threading): Ditto.
8641 (compute_path_counts): New function.
8642 (update_profile): Ditto.
8643 (recompute_probabilities): Ditto.
8644 (update_joiner_offpath_counts): Ditto.
8645 (freqs_to_counts_path): Ditto.
8646 (clear_counts_path): Ditto.
8647 (ssa_fix_duplicate_block_edges): Update profile info.
8648 (ssa_create_duplicates): Pass new parameter.
8649 (ssa_redirect_edges): Remove old profile update.
8650 (thread_block_1): New duplicate_blocks bitmap,
8651 remove old profile update.
8652 (thread_single_edge): Pass new parameter.
8653
8654 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
8655
8656 PR middle-end/62120
8657 * varasm.c (decode_reg_name_and_count): Check availability for
8658 registers from ADDITIONAL_REGISTER_NAMES.
8659
8660 2014-09-30 David Malcolm <dmalcolm@redhat.com>
8661
8662 PR plugins/63410
8663 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
8664 (PLUGIN_HEADERS): Add pass-instances.def.
8665
8666 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
8667
8668 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
8669 iterator.
8670 * config/aarch64/aarch64-simd.md
8671 (aarch64_sqdmull_laneq<mode>): Expand iterator.
8672 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
8673 (vqdmulls_lane_s32): Fix return type.
8674 (vqdmulls_laneq_s32): New.
8675
8676 2014-09-30 Jakub Jelinek <jakub@redhat.com>
8677
8678 PR inline-asm/63282
8679 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
8680 or invert_jump_1 if jump isn't any_condjump_p.
8681
8682 2014-09-30 Terry Guo <terry.guo@arm.com>
8683
8684 * config/arm/arm-cores.def (cortex-m7): New core name.
8685 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
8686 (fpv5-d16): Ditto.
8687 * config/arm/arm-tables.opt: Regenerated.
8688 * config/arm/arm-tune.md: Regenerated.
8689 * config/arm/arm.h (TARGET_VFP5): New macro.
8690 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
8691 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
8692 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
8693 * doc/invoke.texi: Document new cpu and fpu names.
8694
8695 2014-09-30 Jiong Wang <jiong.wang@arm.com>
8696
8697 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
8698 before sinking insn.
8699
8700 2014-09-30 David Sherwood <david.sherwood@arm.com>
8701
8702 * ira-int.h (ira_allocno): Add "wmode" field.
8703 * ira-build.c (create_insn_allocnos): Add new "parent" function
8704 parameter.
8705 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
8706 that cannot be accessed in wmode.
8707
8708 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
8709
8710 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
8711 integer overflow.
8712
8713 2014-09-29 Andi Kleen <ak@linux.intel.com>
8714
8715 * opts.c (print_filtered_help): Print --param min/max/default
8716 with -Q.
8717
8718 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
8719
8720 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
8721
8722 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
8723
8724 * tree-vrp.c (get_single_symbol): New function.
8725 (build_symbolic_expr): Likewise.
8726 (symbolic_range_based_on_p): New predicate.
8727 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
8728 for PLUS and MINUS. Do not drop symbolic ranges at the end.
8729 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
8730 operand is symbolic and based on the other operand.
8731
8732 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
8733
8734 * config/microblaze/microblaze.md (call_internal1): Use VOID
8735 instead of SI to fix "((void (*)(void)) 0)()" issue
8736
8737 2014-09-29 Nick Clifton <nickc@redhat.com>
8738
8739 * config/msp430/msp430.c (msp430_expand_prologue): Return a
8740 CLOBBER rtx for naked functions.
8741 (msp430_expand_epilogue): Likewise.
8742 (msp430_use_f5_series_hwmult): Cache result.
8743 (use_32bit_hwmult): Cache result.
8744 (msp430_no_hwmult): New function.
8745 (msp430_output_labelref): Use it.
8746
8747 2014-09-29 Jakub Jelinek <jakub@redhat.com>
8748
8749 PR middle-end/63247
8750 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
8751 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
8752 use the alignment of avar rather than ovar.
8753
8754 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
8755
8756 * config/pa/pa.c (pa_output_function_epilogue): Only update
8757 last_address when a nonnote insn is found.
8758
8759 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
8760
8761 PR ipa/60665
8762 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
8763
8764 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
8765
8766 PR ipa/62121
8767 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
8768 fix pasto in checking array size.
8769
8770 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
8771
8772 PR middle-end/35545
8773 * passes.def (pass_tracer): Move before last dominator pass.
8774
8775 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
8776
8777 * gcc.c (try_generate_repro): Remove argument "prog". Change all
8778 users.
8779 (run_attempt): Handle errors of "pex_run" invocation.
8780
8781 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
8782
8783 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
8784 (CC1_SPEC): Define.
8785 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
8786 (TARGET_ASAN_SHADOW_OFFSET): Define.
8787
8788 2014-09-26 Martin Liska <mliska@suse.cz>
8789
8790 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
8791 introduced.
8792 * cgraph.h: Likewise.
8793 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
8794 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
8795 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
8796 * tree-ssa-alias.h: Likewise.
8797
8798 2014-09-26 Jakub Jelinek <jakub@redhat.com>
8799 Max Ostapenko <m.ostapenko@partner.samsung.com>
8800
8801 * common.opt: New option.
8802 * doc/invoke.texi: Describe new option.
8803 * gcc.c (execute): Don't free first string early, but at the end
8804 of the function. Call retry_ice if compiler exited with
8805 ICE_EXIT_CODE.
8806 (main): Factor out common code.
8807 (print_configuration): New function.
8808 (files_equal_p): Likewise.
8809 (check_repro): Likewise.
8810 (run_attempt): Likewise.
8811 (do_report_bug): Likewise.
8812 (append_text): Likewise.
8813 (try_generate_repro): Likewise
8814
8815 2014-09-25 Andi Kleen <ak@linux.intel.com>
8816
8817 * config/i386/i386.c (x86_print_call_or_nop): New function.
8818 (x86_function_profiler): Support -mnop-mcount and
8819 -mrecord-mcount.
8820 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
8821 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
8822
8823 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
8824
8825 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
8826 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
8827 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
8828 Remove.
8829
8830 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
8831
8832 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
8833 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
8834 types_odr_comparable): Declare.
8835 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
8836 * ipa-polymorphic-call.c: New file.
8837 (contains_polymorphic_type_p, possible_placement_new,
8838 ipa_polymorphic_call_context::restrict_to_inner_class,
8839 contains_type_p, decl_maybe_in_construction_p,
8840 ipa_polymorphic_call_context::stream_out,
8841 ipa_polymorphic_call_context::debug,
8842 ipa_polymorphic_call_context::stream_in,
8843 ipa_polymorphic_call_context::set_by_decl,
8844 ipa_polymorphic_call_context::set_by_invariant,
8845 walk_ssa_copies,
8846 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
8847 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
8848 extr_type_from_vtbl_ptr_store, record_known_type
8849 check_stmt_for_type_change,
8850 ipa_polymorphic_call_context::get_dynamic_type): Move here from
8851 ipa-devirt.c
8852 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
8853 and streamer-hooks.h
8854 (contains_polymorphic_type_p, possible_placement_new,
8855 ipa_polymorphic_call_context::restrict_to_inner_class,
8856 contains_type_p, decl_maybe_in_construction_p,
8857 ipa_polymorphic_call_context::stream_out,
8858 ipa_polymorphic_call_context::debug,
8859 ipa_polymorphic_call_context::stream_in,
8860 ipa_polymorphic_call_context::set_by_decl,
8861 ipa_polymorphic_call_context::set_by_invariant,
8862 walk_ssa_copies,
8863 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
8864 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
8865 extr_type_from_vtbl_ptr_store, record_known_type
8866 check_stmt_for_type_change,
8867 ipa_polymorphic_call_context::get_dynamic_type): Move to
8868 ipa-polymorphic-call.c
8869 (type_all_derivations_known_p, types_odr_comparable,
8870 types_must_be_same_for_odr): Export.
8871 (type_known_to_have_no_deriavations_p): New function.
8872 * Makefile.in: Add ipa-polymorphic-call.c
8873
8874 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
8875
8876 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
8877 for better storage.
8878 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
8879 (possible_polymorphic_call_targets): Instead of computing both
8880 speculative and non-speculative answers, do just one at a time.
8881 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
8882 (dump_targets): Break out from ...
8883 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
8884 and non-speculative lists.
8885 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
8886 * ipa-utils.h (possible_polymorphic_call_targets): Update.
8887
8888 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
8889
8890 PR rtl-optimization/63348
8891 * emit-rtl.c (try_split): Do not emit extra barrier.
8892
8893 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
8894
8895 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
8896 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
8897 new predicates.
8898 (aarch64_<sur>shll2_n<mode>): Likewise.
8899 (aarch64_<sur>shr_n<mode>): Likewise.
8900 (aarch64_<sur>sra_n<mode>: Likewise.
8901 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
8902 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
8903 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
8904 * config/aarch64/iterators.md (ve_mode): New.
8905 (offsetlr): Remap to infix text for use in new predicates.
8906 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
8907 (aarch64_simd_shift_imm_hi): Likewise.
8908 (aarch64_simd_shift_imm_si): Likewise.
8909 (aarch64_simd_shift_imm_di): Likewise.
8910 (aarch64_simd_shift_imm_offset_qi): Likewise.
8911 (aarch64_simd_shift_imm_offset_hi): Likewise.
8912 (aarch64_simd_shift_imm_offset_si): Likewise.
8913 (aarch64_simd_shift_imm_offset_di): Likewise.
8914 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
8915 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
8916 (aarch64_simd_shift_imm_bitsize_si): Likewise.
8917 (aarch64_simd_shift_imm_bitsize_di): Likewise.
8918
8919 2014-09-25 Jiong Wang <jiong.wang@arm.com>
8920
8921 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
8922 new created BB as the intersection of live-in from "old_dest" and
8923 live-out from "bb".
8924
8925 2014-09-25 Felix Yang <felix.yang@huawei.com>
8926
8927 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
8928 * genautomata.c (merge_states): Ditto.
8929
8930 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
8931
8932 PR target/62218
8933 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
8934 in instruction sequence.
8935
8936 2014-09-25 Nick Clifton <nickc@redhat.com>
8937
8938 PR target/62218
8939 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
8940 in instruction sequence.
8941
8942 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8943
8944 PR target/63335
8945 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
8946 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
8947
8948 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
8949 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8950 Anna Tikhonova <anna.tikhonova@intel.com>
8951 Ilya Tocar <ilya.tocar@intel.com>
8952 Andrey Turetskiy <andrey.turetskiy@intel.com>
8953 Ilya Verbin <ilya.verbin@intel.com>
8954 Kirill Yukhin <kirill.yukhin@intel.com>
8955 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8956
8957 * config/i386/sse.md
8958 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
8959 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
8960 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
8961 (define_expand "<avx512>_perm<mode>_mask"): ... this.
8962 Use VI8F_256_512 mode iterator.
8963 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
8964 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
8965
8966 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
8967 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8968 Anna Tikhonova <anna.tikhonova@intel.com>
8969 Ilya Tocar <ilya.tocar@intel.com>
8970 Andrey Turetskiy <andrey.turetskiy@intel.com>
8971 Ilya Verbin <ilya.verbin@intel.com>
8972 Kirill Yukhin <kirill.yukhin@intel.com>
8973 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8974
8975 * config/i386/sse.md
8976 (define_insn "avx_movshdup256<mask_name>"): Add masking.
8977 (define_insn "sse3_movshdup<mask_name>"): Ditto.
8978 (define_insn "avx_movsldup256<mask_name>"): Ditto.
8979 (define_insn "sse3_movsldup<mask_name>"): Ditto.
8980 (define_insn "vec_dupv2df<mask_name>"): Ditto.
8981 (define_insn "*vec_concatv2df"): Add EVEX version.
8982
8983 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
8984 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8985 Anna Tikhonova <anna.tikhonova@intel.com>
8986 Ilya Tocar <ilya.tocar@intel.com>
8987 Andrey Turetskiy <andrey.turetskiy@intel.com>
8988 Ilya Verbin <ilya.verbin@intel.com>
8989 Kirill Yukhin <kirill.yukhin@intel.com>
8990 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8991
8992 * config/i386/sse.md
8993 (define_insn "vec_set<mode>_0"): Add EVEX version.
8994
8995 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
8996 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8997 Anna Tikhonova <anna.tikhonova@intel.com>
8998 Ilya Tocar <ilya.tocar@intel.com>
8999 Andrey Turetskiy <andrey.turetskiy@intel.com>
9000 Ilya Verbin <ilya.verbin@intel.com>
9001 Kirill Yukhin <kirill.yukhin@intel.com>
9002 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9003
9004 * config/i386/sse.md
9005 (define_insn
9006 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
9007 New.
9008 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
9009 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
9010 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
9011 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
9012 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
9013 (define_expand "sse2_cvtpd2ps_mask): New.
9014 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
9015 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
9016
9017 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
9018 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9019 Anna Tikhonova <anna.tikhonova@intel.com>
9020 Ilya Tocar <ilya.tocar@intel.com>
9021 Andrey Turetskiy <andrey.turetskiy@intel.com>
9022 Ilya Verbin <ilya.verbin@intel.com>
9023 Kirill Yukhin <kirill.yukhin@intel.com>
9024 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9025
9026 * config/i386/i386.c
9027 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
9028 (ufix_notruncv8dfv8si2_mask_round): ... this.
9029 * config/i386/sse.md
9030 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
9031 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
9032 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
9033 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
9034 (define_expand "sse2_cvtpd2dq"): Delete.
9035 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
9036 make 2nd operand const0 vector.
9037 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
9038 Delete.
9039 (define_mode_attr pd2udqsuff): New.
9040 (define_insn
9041 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
9042 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
9043 (define_insn "*avx_cvttpd2dq256_2"): Delete.
9044 (define_expand "sse2_cvttpd2dq"): Ditto.
9045 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
9046 make 2nd operand const0 vector.
9047
9048 2014-09-25 Jakub Jelinek <jakub@redhat.com>
9049
9050 PR tree-optimization/63341
9051 * tree-vectorizer.h (vect_create_data_ref_ptr,
9052 vect_create_addr_base_for_vector_ref): Add another tree argument
9053 defaulting to NULL_TREE.
9054 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
9055 argument, pass it down to vect_create_addr_base_for_vector_ref.
9056 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
9057 add that to base_offset too if non-NULL.
9058 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
9059 for dr_explicit_realign_optimized set it to vector byte size
9060 - 1 instead of setting offset, pass byte_offset down to
9061 vect_create_data_ref_ptr.
9062
9063 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
9064
9065 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
9066 forgotten debug output; canonicalize querries more wtih LTO.
9067
9068 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
9069
9070 * cgraph.h (class ipa_polymorphic_call_context): Move here from
9071 ipa-utils.h; add stream_int and stream_out methods.
9072 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
9073 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
9074 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
9075 add CONTEXT.
9076 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
9077 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
9078 ipa_polymorphic_call_context::clear_speculation,
9079 ipa_polymorphic_call_context::clear_outer_type): Move here from
9080 ipa-utils.h
9081 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
9082 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
9083 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
9084 ipa_polymorphic_call_context::clear_speculation,
9085 ipa_polymorphic_call_context::clear_outer_type): Likewise.
9086 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
9087 streamer-hooks.h
9088 (ipa_polymorphic_call_context::stream_out): New method.
9089 (ipa_polymorphic_call_context::stream_in): New method.
9090 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
9091 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
9092 OUTER_TYPE.
9093 (ipa_analyze_call_uses): Simplify.
9094 (update_indirect_edges_after_inlining): Do not care about outer_type.
9095 (ipa_write_indirect_edge_info): Update.
9096 (ipa_write_indirect_edge_info): Likewise.
9097 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
9098 (dump_edge_flags): Break out from ...
9099 (cgraph_node::dump): ... here; dump indirect edges.
9100
9101 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
9102
9103 * ipa-utils.h (polymorphic_call_context): Add
9104 metdhos dump, debug and clear_outer_type.
9105 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
9106 (ipa_polymorphic_call_context::clear_outer_type): New method.
9107 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
9108 * ipa-devirt.c (types_odr_comparable): New function.
9109 (types_must_be_same_for_odr): New function.
9110 (odr_subtypes_equivalent_p): Simplify.
9111 (possible_placement_new): Break out from ...
9112 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
9113 be more cuatious about returning false in cases the context may be
9114 valid in derived type or via placement new.
9115 (contains_type_p): Clear maybe_derived_type
9116 (ipa_polymorphic_call_context::dump): New method.
9117 (ipa_polymorphic_call_context::debug): New method.
9118 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
9119 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
9120 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
9121 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
9122 to suceed on all valid cases; remove confused sanity check.
9123 (dump_possible_polymorphic_call_targets): Simplify.
9124
9125 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
9126
9127 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
9128 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
9129 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
9130 varpool.c: Rename all instances of DECL_ABSTRACT to
9131 DECL_ABSTRACT_P.
9132
9133 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9134
9135 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
9136 special handling for stores whose SET_SRC is an UNSPEC (such as
9137 UNSPEC_STVE).
9138
9139 2014-09-24 Jiong Wang <jiong.wang@arm.com>
9140
9141 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
9142 !REG_P (src) to release more instruction sink opportunities.
9143
9144 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
9145
9146 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
9147 move costs for 128-bit types.
9148
9149 2014-09-24 Martin Jambor <mjambor@suse.cz>
9150
9151 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
9152 when duplicating a PASS_THROUGH jump function when creating a
9153 speculative edge.
9154
9155 2014-09-24 Marek Polacek <polacek@redhat.com>
9156
9157 PR c/61405
9158 PR c/53874
9159 * asan.c (maybe_instrument_call): Add default case.
9160 * ipa-pure-const.c (special_builtin_state): Likewise.
9161 * predict.c (expr_expected_value_1): Likewise.
9162 * lto-streamer-out.c (write_symbol): Initialize variable.
9163
9164 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9165
9166 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
9167 the lane.
9168 (vmuld_laneq_f64): Likewise.
9169 (vmuls_lane_f32): Likewise.
9170 (vmuls_laneq_f32): Likewise.
9171
9172 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
9173
9174 PR bootstrap/63235
9175 * varpool.c (varpool_node::add): Pass decl attributes
9176 to lookup_attribute.
9177
9178 2014-09-24 Jakub Jelinek <jakub@redhat.com>
9179
9180 PR sanitizer/63316
9181 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
9182
9183 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
9184
9185 PR tree-optimization/63266
9186 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
9187 marker for unknown byte value.
9188 (MARKER_MASK): New macro.
9189 (MARKER_BYTE_UNKNOWN): New macro.
9190 (HEAD_MARKER): New macro.
9191 (do_shift_rotate): Mark bytes with unknown values due to sign
9192 extension when doing an arithmetic right shift. Replace hardcoded
9193 mask for marker by new MARKER_MASK macro.
9194 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
9195 numbers accordingly.
9196
9197 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
9198 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9199 Anna Tikhonova <anna.tikhonova@intel.com>
9200 Ilya Tocar <ilya.tocar@intel.com>
9201 Andrey Turetskiy <andrey.turetskiy@intel.com>
9202 Ilya Verbin <ilya.verbin@intel.com>
9203 Kirill Yukhin <kirill.yukhin@intel.com>
9204 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9205
9206 * config/i386/sse.md
9207 (define_insn
9208 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
9209 Add masking.
9210 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
9211 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
9212
9213 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
9214 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9215 Anna Tikhonova <anna.tikhonova@intel.com>
9216 Ilya Tocar <ilya.tocar@intel.com>
9217 Andrey Turetskiy <andrey.turetskiy@intel.com>
9218 Ilya Verbin <ilya.verbin@intel.com>
9219 Kirill Yukhin <kirill.yukhin@intel.com>
9220 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9221
9222 * config/i386/sse.md
9223 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
9224 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
9225 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
9226 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
9227 (define_expand "avx512vl_pshuflw_mask"): New.
9228 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
9229 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
9230 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
9231 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
9232 (define_expand "avx512vl_pshufhw_mask"): New.
9233 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
9234
9235 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
9236 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9237 Anna Tikhonova <anna.tikhonova@intel.com>
9238 Ilya Tocar <ilya.tocar@intel.com>
9239 Andrey Turetskiy <andrey.turetskiy@intel.com>
9240 Ilya Verbin <ilya.verbin@intel.com>
9241 Kirill Yukhin <kirill.yukhin@intel.com>
9242 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9243
9244 * config/i386/i386.c
9245 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
9246 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
9247 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
9248 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
9249 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
9250 * config/i386/sse.md
9251 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
9252 (define_insn
9253 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
9254 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
9255 (define_insn
9256 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
9257 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
9258 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
9259 (define_expand "avx512vl_pshufd_mask"): New.
9260 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
9261
9262 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
9263 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9264 Anna Tikhonova <anna.tikhonova@intel.com>
9265 Ilya Tocar <ilya.tocar@intel.com>
9266 Andrey Turetskiy <andrey.turetskiy@intel.com>
9267 Ilya Verbin <ilya.verbin@intel.com>
9268 Kirill Yukhin <kirill.yukhin@intel.com>
9269 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9270
9271 * config/i386/i386.c
9272 (CODE_FOR_avx2_extracti128): Rename to ...
9273 (CODE_FOR_avx_vextractf128v4di): this.
9274 (CODE_FOR_avx2_inserti128): Rename to ...
9275 (CODE_FOR_avx_vinsertf128v4di): this.
9276 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
9277 CODE_FOR_avx_vextractf128v4di.
9278 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
9279 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
9280 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
9281 CODE_FOR_avx512vl_vinsertv8si.
9282 * config/i386/sse.md
9283 (define_expand
9284 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
9285 AVX512_VEC mode iterator.
9286 (define_insn
9287 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
9288 Ditto.
9289 (define_expand
9290 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
9291 AVX512_VEC_2 mode iterator.
9292 (define_insn "vec_set_lo_<mode><mask_name>"): New.
9293 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
9294 (define_expand "avx512vl_vinsert<mode>"): Ditto.
9295 (define_insn "avx2_vec_set_lo_v4di"): Delete.
9296 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
9297 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
9298 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
9299 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
9300 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
9301 (define_expand "avx2_extracti128"): Delete.
9302 (define_expand "avx2_inserti128"): Ditto.
9303
9304 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
9305 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9306 Anna Tikhonova <anna.tikhonova@intel.com>
9307 Ilya Tocar <ilya.tocar@intel.com>
9308 Andrey Turetskiy <andrey.turetskiy@intel.com>
9309 Ilya Verbin <ilya.verbin@intel.com>
9310 Kirill Yukhin <kirill.yukhin@intel.com>
9311 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9312
9313 * config/i386/sse.md
9314 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
9315 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
9316 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
9317 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
9318 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
9319 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
9320 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
9321 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
9322 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
9323 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
9324 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
9325 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
9326 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
9327
9328 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
9329
9330 PR rtl-optimization/63210
9331 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
9332 HARD_REGNO is not available for CONFLICT_A.
9333
9334 2014-09-23 Andi Kleen <ak@linux.intel.com>
9335
9336 * cgraph.h (symtab_node): Add no_reorder attribute.
9337 (symbol_table::output_asm_statements): Remove.
9338 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
9339 (cgraph_node::create_version_clone): Dito.
9340 (symbol_table::output_asm_statements): Remove.
9341 * trans-mem.c (ipa_tm_create_version_alias): Dito.
9342 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
9343 (output_in_order): Add no_reorder flag. Only handle no_reorder
9344 nodes when set.
9345 (symbol_table::compile): Add separate pass for no_reorder nodes.
9346 (process_common_attributes): Set no_reorder flag in symtab node.
9347 Add node argument.
9348 (process_function_and_variable_attributes): Pass symtab nodes to
9349 process_common_attributes.
9350 * doc/extend.texi (no_reorder): Document no_reorder attribute.
9351 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
9352 (lto_output_varpool_node): Dito.
9353 (input_overwrite_node): Dito.
9354 (input_varpool_node): Dito.
9355 * varpool.c (varpool_node::add): Set no_reorder attribute.
9356 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
9357 (symbol_table::output_variables): Dito.
9358 * symtab.c (symtab_node::dump_base): Print no_reorder.
9359
9360 2014-09-23 Jiong Wang <jiong.wang@arm.com>
9361
9362 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
9363 be INVALID_REGNUM.
9364
9365 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
9366
9367 * configure: Regenerate.
9368
9369 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
9370
9371 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
9372 when result_mode == shift_mode.
9373
9374 2014-09-23 Kostya Serebryany <kcc@google.com>
9375
9376 Update to match the changed asan API.
9377 * asan.c (asan_global_struct): Update the __asan_global definition
9378 to match the new API.
9379 (asan_add_global): Ditto.
9380 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
9381 to __asan_init_v4.
9382
9383 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9384
9385 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
9386 refine the constraints used on 32/64-bit floating point moves.
9387 (f32_av): Likewise.
9388 (f64_vsx): Likewise.
9389 (f64_dm): Likewise.
9390 (f64_av): Likewise.
9391 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
9392 (BOOL_REGS_OP1): Likewise.
9393 (BOOL_REGS_OP2): Likewise.
9394 (BOOL_REGS_UNARY): Likewise.
9395 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
9396 32/64-bit floating point moves. Do not use wa, instead use ww/ws
9397 for moves involving VSX registers. Do not use constraints that
9398 target VSX registers for decimal types.
9399 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
9400 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
9401
9402 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
9403
9404 * tree.h (int_bit_position): Turn into inline function;
9405 implement using wide int.
9406 * tree.c (int_bit_position): Remove.
9407
9408 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
9409
9410 PR bootstrap/63280
9411 * target-globals.c (target_globals::~target_globals): Fix location
9412 of ira_int destruction.
9413
9414 2014-09-23 Renlin Li <renlin.li@arm.com>
9415
9416 * config/aarch64/aarch64.md (return): New.
9417 (simple_return): Likewise.
9418 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
9419 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
9420
9421 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
9422
9423 * common/config/aarch64/aarch64-common.c:
9424 (default_options aarch_option_optimization_table):
9425 Default to -fsched-pressure.
9426
9427 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
9428
9429 * cfgcleanup.c (try_optimize_cfg): Do not remove label
9430 with LABEL_PRESERVE_P flag set.
9431
9432 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
9433 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9434 Anna Tikhonova <anna.tikhonova@intel.com>
9435 Ilya Tocar <ilya.tocar@intel.com>
9436 Andrey Turetskiy <andrey.turetskiy@intel.com>
9437 Ilya Verbin <ilya.verbin@intel.com>
9438 Kirill Yukhin <kirill.yukhin@intel.com>
9439 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9440
9441 * config/i386/sse.md
9442 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
9443 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
9444 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
9445 (define_insn "sse2_shufpd_v2df_mask"): New.
9446
9447 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
9448 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9449 Anna Tikhonova <anna.tikhonova@intel.com>
9450 Ilya Tocar <ilya.tocar@intel.com>
9451 Andrey Turetskiy <andrey.turetskiy@intel.com>
9452 Ilya Verbin <ilya.verbin@intel.com>
9453 Kirill Yukhin <kirill.yukhin@intel.com>
9454 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9455
9456 * config/i386/sse.md
9457 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
9458 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
9459 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
9460 (define_insn "sse_shufps_v4sf_mask"): New.
9461
9462 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
9463 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9464 Anna Tikhonova <anna.tikhonova@intel.com>
9465 Ilya Tocar <ilya.tocar@intel.com>
9466 Andrey Turetskiy <andrey.turetskiy@intel.com>
9467 Ilya Verbin <ilya.verbin@intel.com>
9468 Kirill Yukhin <kirill.yukhin@intel.com>
9469 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9470
9471 * config/i386/sse.md
9472 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
9473 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
9474 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
9475 (define_insn "unpcklps128_mask"): New.
9476
9477 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
9478 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9479 Anna Tikhonova <anna.tikhonova@intel.com>
9480 Ilya Tocar <ilya.tocar@intel.com>
9481 Andrey Turetskiy <andrey.turetskiy@intel.com>
9482 Ilya Verbin <ilya.verbin@intel.com>
9483 Kirill Yukhin <kirill.yukhin@intel.com>
9484 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9485
9486 * config/i386/sse.md
9487 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
9488 (define_insn "avx512vl_unpckhpd128_mask"): New.
9489 (define_expand "avx_movddup256<mask_name>"): Add masking.
9490 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
9491 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
9492 (define_insn "avx512vl_unpcklpd128_mask"): New.
9493
9494 2014-09-22 Joseph Myers <joseph@codesourcery.com>
9495
9496 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9497 * doc/tm.texi: Regenerate.
9498 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
9499 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9500 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
9501 Remove.
9502 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9503 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9504 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9505 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9506 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
9507 Remove.
9508 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9509 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9510 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9511 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9512 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9513 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9514 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9515 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9516 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9517 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
9518 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
9519 Remove.
9520
9521 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
9522
9523 * tree-ssa-ccp.c (prop_value_d): Rename to ...
9524 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
9525 * ipa-prop.c (struct type_change_info): Rename to ...
9526 (prop_type_change_info): ... this; update uses.
9527 * ggc-page.c (globals): Rename to ...
9528 (static struct ggc_globals): ... this; update uses.
9529 * tree-ssa-loop-im.c (mem_ref): Rename to ...
9530 (im_mem_ref): ... this; update uses.
9531 * ggc-common.c (loc_descriptor): Rename to ...
9532 (ggc_loc_descriptor): ... this; update uses.
9533 * lra-eliminations.c (elim_table): Rename to ...
9534 (lra_elim_table): ... this; update uses.
9535 * bitmap.c (output_info): Rename to ...
9536 (bitmap_output_info): ... this; update uses.
9537 * gcse.c (expr): Rename to ...
9538 (gcse_expr) ... this; update uses.
9539 (occr): Rename to ...
9540 (gcse_occr): .. this; update uses.
9541 * tree-ssa-copy.c (prop_value_d): Rename to ...
9542 (prop_value_t): ... this.
9543 * predict.c (block_info_def): Rename to ...
9544 (block_info): ... this; update uses.
9545 (edge_info_def): Rename to ...
9546 (edge_info): ... this; update uses.
9547 * profile.c (bb_info): Rename to ...
9548 (bb_profile_info): ... this; update uses.
9549 * alloc-pool.c (output_info): Rename to ...
9550 (pool_output_info): ... this; update uses.
9551 * ipa-cp.c (topo_info): Rename to ..
9552 (ipa_topo_info): ... this; update uses.
9553 * tree-nrv.c (nrv_data): Rename to ...
9554 (nrv_data_t): ... this; update uses.
9555 * ipa-split.c (bb_info): Rename to ...
9556 (split_bb_info): ... this one.
9557 * profile.h (edge_info): Rename to ...
9558 (edge_profile_info): ... this one; update uses.
9559 * dse.c (bb_info): Rename to ...
9560 (dse_bb_info): ... this one; update uses.
9561 * cprop.c (occr): Rename to ...
9562 (cprop_occr): ... this one; update uses.
9563 (expr): Rename to ...
9564 (cprop_expr): ... this one; update uses.
9565
9566 2014-09-22 Jason Merrill <jason@redhat.com>
9567
9568 * Makefile.in (check-parallel-%): Add @.
9569
9570 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
9571
9572 * config/aarch64/geniterators.sh: New.
9573 * config/aarch64/iterators.md (VDQF_DF): New.
9574 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
9575 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
9576
9577 2014-09-22 Peter A. Bigot <pab@pabigot.com>
9578
9579 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
9580 -lnosys when -msim absent.
9581
9582 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
9583
9584 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
9585
9586 2014-09-22 Richard Biener <rguenther@suse.de>
9587
9588 * gimplify.c (gimplify_init_constructor): Do not leave
9589 non-GIMPLE vector constructors around.
9590 * tree-cfg.c (verify_gimple_assign_single): Verify that
9591 CONSTRUCTORs have gimple elements.
9592
9593 2014-09-22 Jakub Jelinek <jakub@redhat.com>
9594
9595 PR debug/63328
9596 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
9597 insert a debug source bind stmt setting DEBUG_EXPR_DECL
9598 instead of a normal gimple assignment stmt.
9599
9600 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
9601
9602 * config/bfin/bfin.md: Fix use of constraints in define_split.
9603
9604 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
9605
9606 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
9607 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
9608
9609 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
9610
9611 * hard-reg-set.h: Include hash-table.h.
9612 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
9613 field.
9614 * target-globals.c (target_globals::~target_globals): Call
9615 hard_regs->finalize.
9616 * rtl.h (subreg_shape): New structure.
9617 (shape_of_subreg): New function.
9618 (simplifiable_subregs): Declare.
9619 * reginfo.c (simplifiable_subreg): New structure.
9620 (simplifiable_subregs_hasher): Likewise.
9621 (simplifiable_subregs): New function.
9622 (invalid_mode_changes): Delete.
9623 (alid_mode_changes, valid_mode_changes_obstack): New variables.
9624 (record_subregs_of_mode): Remove subregs_of_mode parameter.
9625 Record valid mode changes in valid_mode_changes.
9626 (find_subregs_of_mode): Remove subregs_of_mode parameter.
9627 Update calls to record_subregs_of_mode.
9628 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
9629 handling. Initialize new variables. Update call to
9630 find_subregs_of_mode.
9631 (invalid_mode_change_p): Check new variables instead of
9632 invalid_mode_changes.
9633 (finish_subregs_of_mode): Finalize new variables instead of
9634 invalid_mode_changes.
9635 (target_hard_regs::finalize): New function.
9636 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
9637 even when CLASS_CANNOT_CHANGE_MODE is undefined.
9638
9639 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
9640
9641 * combine.c (subst): Use simplify_subreg_regno rather than
9642 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
9643
9644 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
9645
9646 * rtl.h (subreg_info): Expand commentary
9647 * rtlanal.c (subreg_get_info): Likewise.
9648
9649 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
9650
9651 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
9652 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
9653 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
9654
9655 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
9656
9657 * config/arm/arm.c: #include "tm-constrs.h"
9658 (thumb1_size_rtx_costs): Adjust rtx costs.
9659
9660 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
9661
9662 * configure.ac (target_header_dir): Move block defining
9663 this to before the block setting inhibit_libc.
9664 (inhibit_libc): When considering $with_headers, just
9665 check it it's explicitly "no". If not, also check if
9666 $target_header_dir/stdio.h is present. If not, set
9667 inhibit_libc=true.
9668 * configure: Regenerate.
9669
9670 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
9671
9672 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
9673
9674 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
9675
9676 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
9677 insn for divides by integer powers of two.
9678 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
9679 (mod<mode>3): Fix formatting.
9680 (three anonymous define_insn and two define_split): Delete.
9681
9682 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
9683
9684 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
9685 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
9686 (floatdisf2_internal2): Ditto.
9687 (ashrdi3_no_power): Ditto. Fix formatting.
9688
9689 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
9690
9691 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
9692 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
9693 Tidy.
9694
9695 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
9696
9697 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
9698 constant, use addsi3 directly.
9699 (three anonymous define_insn, two define_split): Delete.
9700 (sub<mode>3): Move. Do not allow constant second operand.
9701 Generate different insn for constant first operand.
9702 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
9703 (subf<mode>3_imm): New.
9704 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
9705 (*plus_ltu<mode>): Only handle registers.
9706 (*plus_ltu<mode>_1): New. Handle integer third operand.
9707 (*plus_gtu<mode>): Only handle registers.
9708 (*plus_gtu<mode>_1): New. Handle integer third operand.
9709
9710 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
9711
9712 * config/rs6000/rs6000.md (iorxor): New code_iterator.
9713 (iorxor): New code_attr.
9714 (IORXOR): New code_attr.
9715 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
9716 (ior<mode>3, xor<mode>3): Delete.
9717 (<iorxor><mode>3): New.
9718 (splitter for "big" integer ior, xor): New.
9719 (*bool<mode>3): Move. Also handle AND.
9720 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
9721 (splitter for "big" integer ior, xor): Delete.
9722
9723 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
9724
9725 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
9726 (two anonymous define_insn and two define_split): Delete.
9727 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
9728
9729 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
9730
9731 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
9732 (two anonymous define_insn and two define_split): Delete.
9733 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
9734
9735 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
9736
9737 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
9738
9739 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
9740
9741 * config/rs6000/predicates.md (ca_operand): Allow subregs.
9742 (input_operand): Do not allow ca_operand.
9743 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
9744 carry bit, allow SImode and Pmode.
9745 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
9746
9747 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
9748
9749 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
9750 clobbered registers using clobber_reg. Remove UNSPEC decoration.
9751 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
9752 (*call_rex64_ms_sysv): Remove.
9753 (*call_value_rex64_ms_sysv): Ditto.
9754 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
9755
9756 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
9757
9758 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
9759 operand 3 to "CnL".
9760
9761 2014-09-20 Andreas Schwab <schwab@suse.de>
9762
9763 * config/ia64/ia64.md: Remove constraints from define_split
9764 patterns.
9765
9766 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
9767
9768 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
9769 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
9770 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
9771 (get_dynamic_type): Remove.
9772 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
9773 (clear_speculation): Bring to ipa-deivrt.h
9774 (get_class_context): Rename to ...
9775 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
9776 (contains_type_p): Update.
9777 (get_dynamic_type): Rename to ...
9778 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
9779 (possible_polymorphic_call_targets): UPdate.
9780 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
9781 * ipa-prop.c (ipa_analyze_call_uses): Update.
9782
9783 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
9784
9785 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
9786 privatize dynamic TLS variables.
9787
9788 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
9789
9790 * diagnostic.c (warning_n): New function.
9791 * diagnostic-core.h (warning_n): Declare.
9792 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
9793 output dynamic counts when available.
9794
9795 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
9796
9797 PR tree-optimization/63255
9798 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
9799 issue in setting body_removed flag.
9800
9801 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
9802
9803 PR c++/61825
9804 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
9805 that visibility change is possible
9806 (handle_weakref_attribute): Likewise.
9807 * cgraph.h (symtab_node): Add method get_create and
9808 field refuse_visibility_changes.
9809 (symtab_node::get_create): New method.
9810 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
9811 * varasm.c (mark_weak): Verify that visibility change is
9812 possible.
9813
9814 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
9815
9816 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
9817 for base_reg_operand to be common between LO_SUM and PLUS.
9818 (fusion_gpr_mem_combo): New predicate to match a fused address
9819 that combines the addis and memory offset address.
9820
9821 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
9822 calling signature.
9823 (emit_fusion_gpr_load): Likewise.
9824
9825 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
9826 signature to pass each argument separately, rather than
9827 using an operands array. Rewrite the insns found by peephole2 to
9828 be a single insn, rather than hoping the insns will still be
9829 together when the peephole pass is done. Drop being called via a
9830 normal peephole.
9831 (emit_fusion_gpr_load): Change calling signature to be called from
9832 the fusion_gpr_load_<mode> insns with a combined memory address
9833 instead of the peephole pass passing the addis and offset
9834 separately.
9835
9836 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
9837 fusion.
9838 (power8 fusion peephole): Drop support for doing power8 via a
9839 normal peephole that was created by the peephole2 pass.
9840 (power8 fusion peephole2): Create a new insn with the fused
9841 address, so that the fused operation is kept together after
9842 register allocation is done.
9843 (fusion_gpr_load_<mode>): Likewise.
9844
9845 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
9846
9847 PR lto/63286
9848 * tree.c (need_assembler_name_p): Do not mangle variadic types.
9849
9850 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
9851
9852 * recog.c (scratch_operand): Do not simply allow all hard registers:
9853 only allow those that are allocatable.
9854
9855 2014-09-19 Felix Yang <felix.yang@huawei.com>
9856
9857 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
9858 comments and fix spacing to conform to coding style.
9859
9860 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
9861
9862 * genrecog.c (validate_pattern): Allow empty constraints in
9863 a match_scratch.
9864
9865 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
9866
9867 * dwarf2out.c (decl_ultimate_origin): Update comment.
9868 * tree.c (block_ultimate_origin): Same.
9869
9870 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9871
9872 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
9873 Update GCC version name to GCC 5.
9874 (rs6000_function_arg_boundary): Likewise.
9875 (rs6000_function_arg): Likewise.
9876
9877 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
9878
9879 * config/sh/sh.md: Fix use of constraints in define_split.
9880
9881 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
9882
9883 PR ipa/61998
9884 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
9885
9886 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
9887
9888 * doc/md.texi (Modifiers): Consistently use "read/write"
9889 nomenclature rather than "input/output".
9890 * genrecog.c (constraints_supported_in_insn_p): New.
9891 (validate_pattern): If needed, also check constraints on
9892 MATCH_SCRATCH operands.
9893 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
9894 operands with no '=' or '+' modifier.
9895
9896 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
9897
9898 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
9899 scratch register as written.
9900
9901 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9902
9903 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
9904 assignment.
9905
9906 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9907
9908 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
9909 expanders.
9910
9911 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9912
9913 PR target/62662
9914 * config/s390/s390.c (s390_emit_epilogue): When doing the return
9915 address load optimization force s390_optimize_prologue to leave it
9916 that way. Only do the optimization if we already decided to push
9917 r14 into a stack slot.
9918
9919 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
9920
9921 * asan.c (build_check_stmt): Alignment arg was added.
9922 (asan_expand_check_ifn): Optimization for alignment >= 8.
9923
9924 2014-09-19 Olivier Hainque <hainque@adacore.com>
9925
9926 * config/i386/vxworksae.h: Remove obsolete definitions.
9927 (STACK_CHECK_PROTECT): Define.
9928 * config/i386/vx-common.h: Remove. Merge contents within
9929 config/i386/vxworks.h.
9930 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
9931 i386/vx-common.h.
9932
9933 2014-09-19 Olivier Hainque <hainque@adacore.com>
9934
9935 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
9936 * config/rs6000/t-vxworksmils: New file.
9937 * config/rs6000/vxworksmils.h: New file.
9938
9939 2014-09-19 Olivier Hainque <hainque@adacore.com>
9940
9941 * varasm.c (default_section_type_flags): Flag .persistent.bss
9942 sections as SECTION_BSS.
9943
9944 2014-09-19 Nick Clifton <nickc@redhat.com>
9945
9946 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
9947 pop'ed registers so that DCE does not eliminate them.
9948
9949 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
9950
9951 PR lto/63298
9952 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
9953
9954 2014-09-18 Joseph Myers <joseph@codesourcery.com>
9955
9956 * system.h (LIBGCC2_TF_CEXT): Poison.
9957 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
9958 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
9959 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
9960 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
9961 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
9962 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
9963 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
9964 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
9965 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
9966
9967 2014-09-19 Kito Cheng <kito@0xlab.org>
9968
9969 * except.h: Fix header guard.
9970 * addresses.h: Add missing header guard.
9971 * cfghooks.h: Likewise.
9972 * collect-utils.h: Likewise.
9973 * collect2-aix.h: Likewise.
9974 * conditions.h: Likewise.
9975 * cselib.h: Likewise.
9976 * dwarf2asm.h: Likewise.
9977 * graphds.h: Likewise.
9978 * graphite-scop-detection.h: Likewise.
9979 * gsyms.h: Likewise.
9980 * hw-doloop.h: Likewise.
9981 * incpath.h: Likewise.
9982 * ipa-inline.h: Likewise.
9983 * ipa-ref.h: Likewise.
9984 * ira-int.h: Likewise.
9985 * ira.h: Likewise.
9986 * lra-int.h: Likewise.
9987 * lra.h: Likewise.
9988 * lto-section-names.h: Likewise.
9989 * read-md.h: Likewise.
9990 * reload.h: Likewise.
9991 * rtl-error.h: Likewise.
9992 * sdbout.h: Likewise.
9993 * targhooks.h: Likewise.
9994 * tree-affine.h: Likewise.
9995 * xcoff.h: Likewise.
9996 * xcoffout.h: Likewise.
9997
9998 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
9999
10000 PR debug/63285
10001 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
10002 if advance != 0.
10003
10004 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
10005
10006 PR target/61360
10007 * lra.c (lra): Call recog_init.
10008
10009 2014-09-18 Jakub Jelinek <jakub@redhat.com>
10010
10011 PR c++/62017
10012 * asan.c (transform_statements): Don't instrument clobber statements.
10013
10014 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10015
10016 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
10017 to neon_load1_1reg<q>.
10018
10019 2014-09-17 Jakub Jelinek <jakub@redhat.com>
10020
10021 PR debug/63284
10022 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
10023 if there are only debug stmts after the noreturn call, instead
10024 remove the debug stmts.
10025
10026 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
10027
10028 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
10029 (odr_types_equivalent_p): Use pair hash.
10030 (odr_subtypes_equivalent_p): Likewise, do structural compare
10031 on ODR types that may be mismatched.
10032 (warn_odr): Support warning when only one field is given.
10033 (odr_types_equivalent_p): Strenghten comparsions made;
10034 support VOIDtype.
10035 (add_type_duplicate): Update VISITED hash set.
10036
10037 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
10038
10039 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
10040 Enable selection of 'posix' or no thread model.
10041
10042 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
10043
10044 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
10045 when architecture is older than ARMv7.
10046
10047 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
10048
10049 PR target/61853
10050 * config/pa/pa.c (pa_function_value): Directly handle aggregates
10051 that fit exactly in a word or double word.
10052
10053 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
10054
10055 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
10056 zmm/k regs support.
10057
10058 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
10059 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10060 Anna Tikhonova <anna.tikhonova@intel.com>
10061 Ilya Tocar <ilya.tocar@intel.com>
10062 Andrey Turetskiy <andrey.turetskiy@intel.com>
10063 Ilya Verbin <ilya.verbin@intel.com>
10064 Kirill Yukhin <kirill.yukhin@intel.com>
10065 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10066
10067 * config/i386/i386.c
10068 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
10069 * config/i386/sse.md
10070 (define_mode_iterator VI48F_256): New.
10071 (define_mode_attr extract_type): Ditto.
10072 (define_mode_attr extract_suf): Ditto.
10073 (define_mode_iterator AVX512_VEC): Ditto.
10074 (define_expand
10075 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
10076 AVX512_VEC.
10077 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
10078 (define_insn
10079 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
10080 Ditto.
10081 (define_mode_attr extract_type_2): Ditto.
10082 (define_mode_attr extract_suf_2): Ditto.
10083 (define_mode_iterator AVX512_VEC_2): Ditto.
10084 (define_expand
10085 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
10086 AVX512_VEC_2 mode iterator.
10087 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
10088 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
10089 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
10090 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
10091 (define_split for V16FI mode): Ditto.
10092 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
10093 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
10094 (define_split for VI8F_256 mode): Ditto.
10095 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
10096 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
10097 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
10098 (define_split for VI4F_256 mode): Ditto.
10099 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
10100 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
10101 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
10102 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
10103 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
10104 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
10105 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
10106 Update `type' attribute, remove explicit `memory' attribute calculation.
10107
10108 2014-09-16 Kito Cheng <kito@0xlab.org>
10109
10110 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
10111 ira_spilled_reg_stack_slots_num if using lra.
10112 (do_reload): Remove release ira_spilled_reg_stack_slots part.
10113 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
10114 make sure not using lra.
10115 (ira_reuse_stack_slot): Likewise.
10116 (ira_mark_new_stack_slot): Likewise.
10117
10118 2014-09-15 Andi Kleen <ak@linux.intel.com>
10119
10120 * function.c (allocate_struct_function): Force
10121 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
10122 profiling is disabled.
10123
10124 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
10125
10126 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
10127 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
10128 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
10129 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
10130 macro with statically checked member functions.
10131 * rtl.h (rtx_insn::deleted): New method.
10132 (rtx_insn::set_deleted): Likewise.
10133 (rtx_insn::set_undeleted): Likewise.
10134 (INSN_DELETED_P): Remove.
10135
10136 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
10137
10138 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
10139 result of emit_jump_insn_before to a new variable.
10140 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
10141 (mark_jump_label_1): Likewise.
10142 (mark_jump_label_asm): Likewise.
10143 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
10144 * rtl.h (mark_jump_label): Adjust.
10145
10146 2014-09-15 Jakub Jelinek <jakub@redhat.com>
10147
10148 * Makefile.in (dg_target_exps): Remove.
10149 (check_gcc_parallelize): Change to just an upper bound number.
10150 (check-%-subtargets): Always print the non-parallelized goals.
10151 (check_p_vars, check_p_comma, check_p_subwork): Remove.
10152 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
10153 check_p_numbers3, check_p_numbers4, check_p_numbers5,
10154 check_p_numbers6): New variables.
10155 (check_p_numbers): Set to sequence from 1 to 9999.
10156 (check_p_subdirs): Set to sequence from 1 to minimum of
10157 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
10158 or 128.
10159 (check-%, check-parallel-%): Rewritten so that for parallelized
10160 testing each job runs all the *.exp files, with
10161 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
10162
10163 2014-09-15 David Malcolm <dmalcolm@redhat.com>
10164
10165 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
10166 rtx to rtx_insn *.
10167 (arc_sets_cc_p): Likewise.
10168 * config/arc/arc.c (arc_print_operand): Use methods of
10169 "final_sequence" for clarity, and to enable strengthening of
10170 locals "jump" and "delay" from rtx to rtx_insn *.
10171 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
10172 rtx_insn *; use method of rtx_sequence for typesafety.
10173 (arc_get_insn_variants): Use insn method of rtx_sequence for
10174 typesafety.
10175 (arc_pad_return): Likewise.
10176 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
10177 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
10178 dyn_cast to rtx_sequence *, using insn method for typesafety.
10179 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
10180 rtx_sequence * and use insn method when invoking get_attr_length.
10181 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
10182 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
10183 rtx_sequence *, introducing a local "seq", using its insn method
10184 from typesafety and clarity.
10185 (add_sched_insns_for_speculation): Strengthen local "next" from
10186 rtx to rtx_insn *.
10187 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
10188 (predicate_insn): Likewise.
10189 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
10190 second param.
10191 * config/cris/cris.c (cris_notice_update_cc): Likewise.
10192 * config/epiphany/epiphany-protos.h
10193 (extern void epiphany_insert_mode_switch_use): Likewise for param
10194 "insn".
10195 (get_attr_sched_use_fpu): Likewise for param.
10196 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
10197 Likewise for param "insn".
10198 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
10199 param "insn" of "target_insert_mode_switch_use" callback.
10200 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
10201 (frv_issues_to_branch_unit_p): Likewise.
10202 (frv_pack_insn_p): Likewise.
10203 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
10204 const rtx * (i.e. mutable rtx_def * const *) to
10205 rtx_insn * const *.
10206 * config/i386/i386-protos.h (standard_sse_constant_opcode):
10207 Strengthen first param from rtx to rtx_insn *.
10208 (output_fix_trunc): Likewise.
10209 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
10210 (output_fix_trunc): Likewise.
10211 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
10212 local "insn".
10213 (min_insn_size): Likewise for param "insn".
10214 (get_mem_group): Likewise.
10215 (is_cmp): Likewise.
10216 (get_insn_path): Likewise.
10217 (get_insn_group): Likewise.
10218 (count_num_restricted): Likewise.
10219 (fits_dispatch_window): Likewise.
10220 (add_insn_window): Likewise.
10221 (add_to_dispatch_window): Likewise.
10222 (debug_insn_dispatch_info_file): Likewise.
10223 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
10224 first param.
10225 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
10226 "cmp" and local "prev".
10227 (m32c_output_compare): Likewise for param "insn".
10228 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
10229 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
10230 (define_predicate "large_insn_p"): Likewise.
10231 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
10232 param from rtx to rtx_insn *.
10233 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
10234 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
10235 (m68k_sched_attr_size): Likewise.
10236 (sched_get_opxy_mem_type): Likewise for param "insn".
10237 (m68k_sched_attr_op_mem): Likewise.
10238 (sched_mem_operand_p): Likewise.
10239 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
10240 * config/mep/mep.c (mep_multi_slot): Likewise.
10241 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
10242 first param.
10243 (mips_sync_loop_insns): Likewise.
10244 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
10245 method of "final_sequence" for typesafety.
10246 (mips_process_sync_loop): Strengthen param "insn" from rtx to
10247 rtx_insn *.
10248 (mips_output_sync_loop): Likewise.
10249 (mips_sync_loop_insns): Likewise.
10250 (mips_74k_agen_init): Likewise.
10251 (mips_sched_init): Use NULL rather than NULL_RTX when working with
10252 insns.
10253 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
10254 Strengthen param "insn" from rtx to rtx_insn *.
10255 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
10256 local "insn".
10257 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
10258 param.
10259 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
10260 "insn". Use method of rtx_sequence for typesafety.
10261 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
10262 rtx_insn *.
10263 (branch_needs_nop_p): Likewise.
10264 (use_skip_p): Likewise.
10265 (pa_insn_refs_are_delayed): Likewise.
10266 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
10267 for locals "insn", "ninsn".
10268 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
10269 "insn".
10270 (is_cracked_insn): Likewise.
10271 (is_branch_slot_insn): Likewise.
10272 (is_nonpipeline_insn): Likewise.
10273 (insn_terminates_group_p): Likewise.
10274 (insn_must_be_first_in_group): Likewise.
10275 (insn_must_be_last_in_group): Likewise.
10276 (force_new_group): Likewise for param "next_insn".
10277 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
10278 "insn".
10279 (s390_sched_score): Likewise.
10280 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
10281 (rtx sfunc_uses_reg): Likewise for sole param.
10282 * config/sh/sh.c (sh_print_operand): Use insn method of
10283 final_sequence for typesafety.
10284 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
10285 Use insn method of final_sequence for typesafety.
10286 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
10287 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
10288 for param.
10289 (eligible_for_return_delay): Likewise.
10290 (eligible_for_sibcall_delay): Likewise.
10291 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
10292 (eligible_for_return_delay): Likewise.
10293 (eligible_for_sibcall_delay): Likewise.
10294 * config/stormy16/stormy16-protos.h
10295 (xstormy16_output_cbranch_hi): Likewise for final param.
10296 (xstormy16_output_cbranch_si): Likewise.
10297 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
10298 (xstormy16_output_cbranch_si): Likewise.
10299 * config/v850/v850-protos.h (notice_update_cc): Likewise.
10300 * config/v850/v850.c (notice_update_cc): Likewise.
10301
10302 * final.c (get_attr_length_1): Strengthen param "insn" and param
10303 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
10304 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
10305 (get_attr_min_length): Likewise.
10306 (shorten_branches): Likewise for signature of locals "length_fun"
10307 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
10308 from a checked cast and use its methods for clarity and to enable
10309 strengthening local "inner_insn" from rtx to rtx_insn *.
10310 * genattr.c (gen_attr): When writing out the prototypes of the
10311 various generated "get_attr_" functions, strengthen the params of
10312 the non-const functions from rtx to rtx_insn *.
10313 Similarly, strengthen the params of insn_default_length,
10314 insn_min_length, insn_variable_length_p, insn_current_length.
10315 (main): Similarly, strengthen the param of num_delay_slots,
10316 internal_dfa_insn_code, insn_default_latency, bypass_p,
10317 insn_latency, min_issue_delay, print_reservation,
10318 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
10319 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
10320 to hook_int_rtx_insn_unreachable.
10321 * genattrtab.c (write_attr_get): When writing out the generated
10322 "get_attr_" functions, strengthen the param "insn" from rtx to
10323 rtx_insn *, eliminating a checked cast.
10324 (make_automaton_attrs): When writing out prototypes of
10325 "internal_dfa_insn_code_", "insn_default_latency_" functions
10326 and the "internal_dfa_insn_code" and "insn_default_latency"
10327 callbacks, strengthen their params from rtx to rtx_insn *
10328 * genautomata.c (output_internal_insn_code_evaluation): When
10329 writing out code, add a checked cast from rtx to rtx_insn * when
10330 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
10331 (output_dfa_insn_code_func): Strengthen param of generated
10332 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
10333 (output_trans_func): Likewise for generated function
10334 "state_transition".
10335 (output_internal_insn_latency_func): When writing out generated
10336 function "internal_insn_latency", rename params from "insn" and
10337 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
10338 locals "insn" and "insn2" as rtx_insn * with checked casts once
10339 we've proven that we're not dealing with const0_rtx.
10340 (output_insn_latency_func): Strengthen param of generated
10341 function "insn_latency" from rtx to rtx_insn *.
10342 (output_print_reservation_func): Likewise for generated function
10343 "print_reservation".
10344 (output_insn_has_dfa_reservation_p): Likewise for generated
10345 function "insn_has_dfa_reservation_p".
10346 * hooks.c (hook_int_rtx_unreachable): Rename to...
10347 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
10348 from rtx to rtx_insn *.
10349 * hooks.h (hook_int_rtx_unreachable): Likewise.
10350 (extern int hook_int_rtx_insn_unreachable): Likewise.
10351 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
10352 (get_attr_min_length): Likewise.
10353 * recog.c (get_enabled_alternatives): Likewise.
10354 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
10355 * reorg.c (find_end_label): Introduce local rtx "pat" and
10356 strengthen local "insn" from rtx to rtx_insn *.
10357 (redundant_insn): Use insn method of "seq" rather than element for
10358 typesafety; strengthen local "control" from rtx to rtx_insn *.
10359 * resource.c (mark_referenced_resources): Add checked cast to
10360 rtx_insn * within INSN/JUMP_INSN case.
10361 (mark_set_resources): Likewise.
10362 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
10363 rtx to rtx_insn *.
10364
10365 2014-09-15 David Malcolm <dmalcolm@redhat.com>
10366
10367 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
10368 param "label" from rtx to rtx_insn *.
10369 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
10370 and local "op".
10371 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
10372 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
10373 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
10374 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
10375 * final.c (default_label_align_after_barrier_max_skip): Strengthen
10376 param from rtx to rtx_insn *.
10377 (default_loop_align_max_skip): Likewise.
10378 (default_label_align_max_skip): Likewise.
10379 (default_jump_align_max_skip): Likewise.
10380 * target.def (label_align_after_barrier_max_skip): Likewise.
10381 (loop_align_max_skip): Likewise.
10382 (label_align_max_skip): Likewise.
10383 (jump_align_max_skip): Likewise.
10384 * targhooks.h (default_label_align_after_barrier_max_skip):
10385 Likewise.
10386 (default_loop_align_max_skip): Likewise.
10387 (default_label_align_max_skip): Likewise.
10388 (default_jump_align_max_skip): Likewise.
10389
10390 2014-09-15 David Malcolm <dmalcolm@redhat.com>
10391
10392 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
10393 from const_rtx to const rtx_insn *. Update union members from rtx
10394 to rtx_insn *.
10395 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
10396 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
10397 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
10398 strengthen both params from const_rtx to const rtx_insn *.
10399 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
10400 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
10401 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
10402 rtx_insn *.
10403 * target.def (can_follow_jump): Strengthen both params from
10404 const_rtx to const rtx_insn *, and update default implementation
10405 from hook_bool_const_rtx_const_rtx_true to
10406 hook_bool_const_rtx_insn_const_rtx_insn_true.
10407
10408 2014-09-15 David Malcolm <dmalcolm@redhat.com>
10409
10410 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
10411 "insn" from rtx to rtx_insn *.
10412 * sched-int.h (deps_start_bb): Likewise for 2nd param.
10413
10414 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
10415 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10416 Anna Tikhonova <anna.tikhonova@intel.com>
10417 Ilya Tocar <ilya.tocar@intel.com>
10418 Andrey Turetskiy <andrey.turetskiy@intel.com>
10419 Ilya Verbin <ilya.verbin@intel.com>
10420 Kirill Yukhin <kirill.yukhin@intel.com>
10421 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10422
10423 * config/i386/sse.md
10424 (define_insn "vcvtph2ps<mask_name>"): Add masking.
10425 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
10426 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
10427 (define_expand "vcvtps2ph_mask"): New.
10428 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
10429 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
10430 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
10431
10432 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
10433 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10434 Anna Tikhonova <anna.tikhonova@intel.com>
10435 Ilya Tocar <ilya.tocar@intel.com>
10436 Andrey Turetskiy <andrey.turetskiy@intel.com>
10437 Ilya Verbin <ilya.verbin@intel.com>
10438 Kirill Yukhin <kirill.yukhin@intel.com>
10439 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10440
10441 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
10442 New.
10443 (define_mode_iterator VI24_AVX512BW_1): Ditto.
10444 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
10445 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
10446 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
10447 also for TARGET_AVX512VL.
10448 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
10449
10450 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
10451
10452 * doc/install.texi (Options specification): add
10453 --disable-libsanitizer item.
10454
10455 2014-09-14 James Clarke <jrtc27@jrtc27.com>
10456 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10457
10458 PR target/61407
10459 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
10460 and above.
10461 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
10462 kernel version check to avoid incrementing it after every major OS X
10463 release.
10464 (darwin_default_min_version): Avoid static memory buffer.
10465
10466 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
10467
10468 * tree.c (need_assembler_name_p): Store C++ type mangling only
10469 for aggregates.
10470
10471 2014-09-13 Marek Polacek <polacek@redhat.com>
10472
10473 * tree.c (protected_set_expr_location): Don't check whether T is
10474 non-null here.
10475
10476 2014-09-12 DJ Delorie <dj@redhat.com>
10477
10478 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
10479 (extend_and_shift1_hipsi2): Likewise.
10480 (extend_and_shift2_hipsi2): Likewise.
10481
10482 2014-09-12 David Malcolm <dmalcolm@redhat.com>
10483
10484 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
10485 with NULL when dealing with an insn.
10486 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
10487 from rtx to rtx_insn *.
10488 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
10489 const_rtx to const rtx_insn *.
10490 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
10491
10492 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
10493
10494 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
10495 assert.
10496
10497 2014-09-12 Joseph Myers <joseph@codesourcery.com>
10498
10499 * target.def (libgcc_floating_mode_supported_p): New hook.
10500 * targhooks.c (default_libgcc_floating_mode_supported_p): New
10501 function.
10502 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
10503 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
10504 (LIBGCC2_HAS_TF_MODE): Remove.
10505 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
10506 * doc/tm.texi: Regenerate.
10507 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
10508 machine mode.
10509 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
10510 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
10511 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
10512 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
10513 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
10514 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
10515 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
10516 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
10517 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
10518 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
10519 function.
10520 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
10521 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
10522 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
10523 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
10524 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
10525 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
10526 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
10527 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
10528 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
10529 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
10530 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
10531 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
10532 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
10533 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
10534 Remove.
10535 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
10536 New macro.
10537 (ia64_libgcc_floating_mode_supported_p): New function.
10538 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
10539 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
10540 (IA64_NO_LIBGCC_TFMODE): Define.
10541 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
10542 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
10543 macro.
10544 (pdp11_scalar_mode_supported_p): New function.
10545 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
10546 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
10547
10548 2014-09-12 Richard Biener <rguenther@suse.de>
10549
10550 PR middle-end/63237
10551 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
10552
10553 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
10554
10555 * tree.c (integer_each_onep): New function.
10556 * tree.h (integer_each_onep): Declare it.
10557 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
10558 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
10559 (X & 1) == 0 for vector and complex.
10560
10561 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
10562
10563 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
10564 for A57.
10565 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
10566 cost to spilling from integer to FP registers.
10567
10568 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
10569
10570 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
10571 move handling.
10572 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
10573 are now handled correctly.
10574
10575 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
10576
10577 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
10578 handling of CALLER_SAVE_REGS and POINTER_REGS.
10579
10580 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
10581
10582 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
10583 the number of hard registers.
10584
10585 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
10586 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10587 Anna Tikhonova <anna.tikhonova@intel.com>
10588 Ilya Tocar <ilya.tocar@intel.com>
10589 Andrey Turetskiy <andrey.turetskiy@intel.com>
10590 Ilya Verbin <ilya.verbin@intel.com>
10591 Kirill Yukhin <kirill.yukhin@intel.com>
10592 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10593
10594 * config/i386/sse.md
10595 (define_mode_iterator VI48_AVX512VL): New.
10596 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
10597 "avx512f_vternlog<mode>_maskz" and update mode iterator.
10598 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
10599 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
10600 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
10601 "avx512f_vternlog<mode>_mask" and update mode iterator.
10602 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
10603 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
10604 iterator.
10605 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
10606 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
10607 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
10608 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
10609 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
10610 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
10611
10612 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
10613 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10614 Anna Tikhonova <anna.tikhonova@intel.com>
10615 Ilya Tocar <ilya.tocar@intel.com>
10616 Andrey Turetskiy <andrey.turetskiy@intel.com>
10617 Ilya Verbin <ilya.verbin@intel.com>
10618 Kirill Yukhin <kirill.yukhin@intel.com>
10619 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10620
10621 * config/i386/sse.md (VI128_256): Delete.
10622 (define_mode_iterator VI124_256): New.
10623 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
10624 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
10625 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
10626 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
10627 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
10628 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
10629 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
10630 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
10631 iterator.
10632 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
10633 in presence of AVX-512.
10634
10635 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
10636 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10637 Anna Tikhonova <anna.tikhonova@intel.com>
10638 Ilya Tocar <ilya.tocar@intel.com>
10639 Andrey Turetskiy <andrey.turetskiy@intel.com>
10640 Ilya Verbin <ilya.verbin@intel.com>
10641 Kirill Yukhin <kirill.yukhin@intel.com>
10642 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10643
10644 * config/i386/sse.md
10645 (define_expand "<avx512>_gathersi<mode>"): Rename from
10646 "avx512f_gathersi<mode>".
10647 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
10648 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
10649 (define_expand "<avx512>_gatherdi<mode>"): Rename from
10650 "avx512f_gatherdi<mode>".
10651 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
10652 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
10653 wide versions.
10654 (define_expand "<avx512>_scattersi<mode>"): Rename from
10655 "avx512f_scattersi<mode>".
10656 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
10657 (define_expand "<avx512>_scatterdi<mode>"): Rename from
10658 "avx512f_scatterdi<mode>".
10659 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
10660
10661 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
10662
10663 * ira.h (ira_finish_once): Delete.
10664 * ira-int.h (target_ira_int::~target_ira_int): Declare.
10665 (target_ira_int::free_ira_costs): Likewise.
10666 (target_ira_int::free_register_move_costs): Likewise.
10667 (ira_finish_costs_once): Delete.
10668 * ira.c (free_register_move_costs): Replace with...
10669 (target_ira_int::free_register_move_costs): ...this new function.
10670 (target_ira_int::~target_ira_int): Define.
10671 (ira_init): Call free_register_move_costs as a member function rather
10672 than a global function.
10673 (ira_finish_once): Delete.
10674 * ira-costs.c (free_ira_costs): Replace with...
10675 (target_ira_int::free_ira_costs): ...this new function.
10676 (ira_init_costs): Call free_ira_costs as a member function rather
10677 than a global function.
10678 (ira_finish_costs_once): Delete.
10679 * target-globals.c (target_globals::~target_globals): Call the
10680 target_ira_int destructor.
10681 * toplev.c: Include lra.h.
10682 (finalize): Call lra_finish_once rather than ira_finish_once.
10683
10684 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
10685
10686 * common.opt (flto-odr-type-merging): New flag.
10687 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
10688 (types_same_for_odr): Likewise.
10689 (odr_subtypes_equivalent_p): Likewise.
10690 (add_type_duplicate): Do not walk type variants.
10691 (register_odr_type): New function.
10692 * ipa-utils.h (register_odr_type): Declare.
10693 (odr_type_p): New function.
10694 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
10695 TYPE_DECLs
10696 * doc/invoke.texi (-flto-odr-type-merging): Document.
10697 * tree.c (need_assembler_name_p): Compute ODR names when asked
10698 for it.
10699 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
10700
10701 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
10702
10703 PR target/63228
10704 * config/i386/i386.c (ix86_option_override_internal): Also turn
10705 off OPTION_MASK_ABI_X32 for -m16.
10706
10707 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
10708
10709 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
10710 GPR instead of P.
10711
10712 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
10713
10714 PR target/58757
10715 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
10716 Directly forward to __*_DENORM_MIN__.
10717
10718 2014-09-11 David Malcolm <dmalcolm@redhat.com>
10719
10720 * rtl.h (LABEL_REF_LABEL): New macro.
10721
10722 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
10723 of XEXP (, 0), where we know that we have a LABEL_REF.
10724 * cfgbuild.c (make_edges): Likewise.
10725 (purge_dead_tablejump_edges): Likewise.
10726 * cfgexpand.c (convert_debug_memory_address): Likewise.
10727 * cfgrtl.c (patch_jump_insn): Likewise.
10728 * combine.c (distribute_notes): Likewise.
10729 * cse.c (hash_rtx_cb): Likewise.
10730 (exp_equiv_p): Likewise.
10731 (fold_rtx): Likewise.
10732 (check_for_label_ref): Likewise.
10733 * cselib.c (rtx_equal_for_cselib_1): Likewise.
10734 (cselib_hash_rtx): Likewise.
10735 * emit-rtl.c (mark_label_nuses): Likewise.
10736 * explow.c (convert_memory_address_addr_space): Likewise.
10737 * final.c (output_asm_label): Likewise.
10738 (output_addr_const): Likewise.
10739 * gcse.c (add_label_notes): Likewise.
10740 * genconfig.c (walk_insn_part): Likewise.
10741 * genrecog.c (validate_pattern): Likewise.
10742 * ifcvt.c (cond_exec_get_condition): Likewise.
10743 (noce_emit_store_flag): Likewise.
10744 (noce_get_alt_condition): Likewise.
10745 (noce_get_condition): Likewise.
10746 * jump.c (maybe_propagate_label_ref): Likewise.
10747 (mark_jump_label_1): Likewise.
10748 (redirect_exp_1): Likewise.
10749 (rtx_renumbered_equal_p): Likewise.
10750 * lra-constraints.c (operands_match_p): Likewise.
10751 * reload.c (operands_match_p): Likewise.
10752 (find_reloads): Likewise.
10753 * reload1.c (set_label_offsets): Likewise.
10754 * reorg.c (get_branch_condition): Likewise.
10755 * rtl.c (rtx_equal_p_cb): Likewise.
10756 (rtx_equal_p): Likewise.
10757 * rtlanal.c (reg_mentioned_p): Likewise.
10758 (rtx_referenced_p): Likewise.
10759 (get_condition): Likewise.
10760 * sched-vis.c (print_value): Likewise.
10761 * varasm.c (const_hash_1): Likewise.
10762 (compare_constant): Likewise.
10763 (const_rtx_hash_1): Likewise.
10764 (output_constant_pool_1): Likewise.
10765
10766 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
10767
10768 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
10769 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
10770 instead of minus.
10771 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
10772 cr6_test_for_lt_reverse): Ditto.
10773
10774 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
10775
10776 PR c++/61489
10777 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
10778
10779 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
10780
10781 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
10782 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
10783 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
10784 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
10785 Delete.
10786
10787 (aarch64_fold_builtin): Remove all reinterpret cases.
10788
10789 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
10790
10791 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
10792
10793 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
10794 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
10795 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
10796 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
10797 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
10798 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
10799 aarch64_reinterpretv2df<mode>): Delete.
10800
10801 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
10802
10803 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
10804 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
10805 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
10806 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
10807 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
10808 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
10809 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
10810 vreinterpret_u32_f64): Use cast.
10811
10812 * config/aarch64/iterators.md (VD_RE): Delete.
10813
10814 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
10815
10816 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
10817 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
10818 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
10819 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
10820 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
10821 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
10822 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
10823 Replace inline assembler with __aarch64_vset_lane_any.
10824
10825 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
10826
10827 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
10828 types.
10829 (vmull_high_lane_s32): Likewise.
10830 (vmull_high_lane_u16): Likewise.
10831 (vmull_high_lane_u32): Likewise.
10832
10833 2014-09-11 Jason Merrill <jason@redhat.com>
10834
10835 PR c++/58678
10836 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
10837
10838 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
10839
10840 PR target/63223
10841 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
10842 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
10843 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
10844
10845 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10846 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10847 Anna Tikhonova <anna.tikhonova@intel.com>
10848 Ilya Tocar <ilya.tocar@intel.com>
10849 Andrey Turetskiy <andrey.turetskiy@intel.com>
10850 Ilya Verbin <ilya.verbin@intel.com>
10851 Kirill Yukhin <kirill.yukhin@intel.com>
10852 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10853
10854 * config/i386/sse.md
10855 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
10856 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
10857 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
10858 New.
10859 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
10860 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
10861 iterator.
10862 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
10863 New.
10864 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
10865 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
10866 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
10867 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
10868 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
10869 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
10870 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
10871 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
10872 iterator.
10873 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
10874 New.
10875 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
10876 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
10877 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
10878
10879 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
10880
10881 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
10882 to access removed nodes.
10883
10884 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
10885
10886 PR tree-optimization/63186
10887 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
10888 (mark_nonssa_use): Likewise.
10889 (verify_non_ssa_vars): Verify all header blocks for label
10890 definitions.
10891
10892 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
10893 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10894 Anna Tikhonova <anna.tikhonova@intel.com>
10895 Ilya Tocar <ilya.tocar@intel.com>
10896 Andrey Turetskiy <andrey.turetskiy@intel.com>
10897 Ilya Verbin <ilya.verbin@intel.com>
10898 Kirill Yukhin <kirill.yukhin@intel.com>
10899 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10900
10901 * config/i386/sse.md
10902 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
10903 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
10904 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
10905 "<avx2_avx512f>_permvar<mode><mask_name>".
10906 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
10907 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
10908 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
10909 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
10910 Ditto.
10911 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
10912 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
10913 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
10914 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
10915
10916 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
10917
10918 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
10919 V2DF, V4SF, DF, and DI modes.
10920 (vsx_fmav2df2): Likewise.
10921 (vsx_float_fix_<mode>2): Likewise.
10922 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
10923
10924 2014-09-10 Xinliang David Li <davidxl@google.com>
10925
10926 PR target/63209
10927 * config/arm/arm.md (movcond_addsi): Handle case where source
10928 and target operands are the same.
10929
10930 2014-09-10 David Malcolm <dmalcolm@redhat.com>
10931
10932 * final.c (this_is_asm_operands): Strengthen this variable from
10933 rtx to const rtx_insn *.
10934 * output.h (this_is_asm_operands): Likewise.
10935 * rtl-error.c (location_for_asm): Strengthen param "insn" from
10936 const_rtx to const rtx_insn *.
10937 (diagnostic_for_asm): Likewise.
10938 * rtl-error.h (error_for_asm): Likewise.
10939 (warning_for_asm): Likewise.
10940
10941 2014-09-10 David Malcolm <dmalcolm@redhat.com>
10942
10943 * genextract.c (print_header): When writing out insn_extract to
10944 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
10945 * recog.h (insn_extract): Strengthen the param from rtx to
10946 rtx_insn *.
10947
10948 2014-09-10 Mike Stump <mikestump@comcast.net>
10949
10950 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
10951 8.6.1.
10952
10953 2014-09-10 Martin Jambor <mjambor@suse.cz>
10954
10955 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
10956 (analyze): Do not set analyze flag if expand_thunk returns false;.
10957 (create_wrapper): Likewise.
10958 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
10959
10960 2014-09-10 Martin Jambor <mjambor@suse.cz>
10961
10962 PR ipa/61654
10963 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
10964 new decl properly. Analyze the new thunk if it is expanded.
10965
10966 2014-09-10 Andreas Schwab <schwab@suse.de>
10967
10968 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
10969 [USED_FOR_TARGET]: Define.
10970
10971 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
10972
10973 * config/mips/mips.c (mips_secondary_reload_class): Handle
10974 regno < 0 case.
10975
10976 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
10977
10978 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
10979 assignment.
10980
10981 2014-09-10 Jakub Jelinek <jakub@redhat.com>
10982
10983 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
10984 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
10985 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
10986 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
10987 flag_delete_null_pointer_checks for them.
10988 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
10989 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
10990 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
10991 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
10992 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
10993 stmt's iterator.
10994 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
10995 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
10996 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
10997 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
10998 * doc/invoke.texi (-fsanitize=nonnull-attribute,
10999 -fsanitize=returns-nonnull-attribute): Document.
11000
11001 * ubsan.h (struct ubsan_mismatch_data): Removed.
11002 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
11003 * ubsan.c (ubsan_source_location): For unknown locations,
11004 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
11005 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
11006 Allow more than one location and arbitrary extra arguments passed
11007 in ... instead of through MISMATCH pointer.
11008 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
11009 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
11010 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
11011 callers.
11012
11013 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
11014 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11015 Anna Tikhonova <anna.tikhonova@intel.com>
11016 Ilya Tocar <ilya.tocar@intel.com>
11017 Andrey Turetskiy <andrey.turetskiy@intel.com>
11018 Ilya Verbin <ilya.verbin@intel.com>
11019 Kirill Yukhin <kirill.yukhin@intel.com>
11020 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11021
11022 * config/i386/sse.md
11023 (define_mode_iterator VI48F): New.
11024 (define_insn "<avx512>_compress<mode>_mask"): Rename from
11025 "avx512f_compress<mode>_mask" and update mode iterator.
11026 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
11027 "avx512f_compressstore<mode>_mask" and update mode iterator.
11028 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
11029 "avx512f_expand<mode>_maskz" and update mode iterator.
11030 (define_insn "<avx512>_expand<mode>_mask"): Rename from
11031 "avx512f_expand<mode>_mask" and update mode iterator.
11032
11033 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
11034 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11035 Anna Tikhonova <anna.tikhonova@intel.com>
11036 Ilya Tocar <ilya.tocar@intel.com>
11037 Andrey Turetskiy <andrey.turetskiy@intel.com>
11038 Ilya Verbin <ilya.verbin@intel.com>
11039 Kirill Yukhin <kirill.yukhin@intel.com>
11040 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11041
11042 * config/i386/i386.c
11043 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
11044 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
11045 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
11046 avx512dq_rangepv4sf_mask.
11047 * config/i386/sse.md
11048 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
11049 UNSPEC_RANGE.
11050 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
11051 (define_insn "reduces<mode>"): Ditto.
11052 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
11053 Ditto.
11054 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
11055 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
11056 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
11057
11058 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
11059 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11060 Anna Tikhonova <anna.tikhonova@intel.com>
11061 Ilya Tocar <ilya.tocar@intel.com>
11062 Andrey Turetskiy <andrey.turetskiy@intel.com>
11063 Ilya Verbin <ilya.verbin@intel.com>
11064 Kirill Yukhin <kirill.yukhin@intel.com>
11065 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11066
11067 * config/i386/i386.c
11068 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
11069 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
11070 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
11071 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
11072 avx512vl_getmantv2df_mask.
11073 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
11074 avx512f_vgetmantv4sf_round.
11075 * config/i386/sse.md
11076 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
11077 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
11078 mode iterator.
11079 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
11080 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
11081 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
11082 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
11083 iterator..
11084 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
11085 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
11086 update mode iterator.
11087 (define_expand
11088 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
11089 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
11090 mode iterator.
11091 (define_insn
11092 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
11093 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
11094 update mode iterator.
11095 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
11096 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
11097 iterator..
11098 (define_insn
11099 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
11100 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
11101 mode iterator..
11102 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
11103 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
11104 update mode iterator.
11105 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
11106 "avx512f_getmant<mode><round_saeonly_name>".
11107
11108 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
11109
11110 PR ipa/63166
11111 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
11112
11113 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
11114 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11115 Anna Tikhonova <anna.tikhonova@intel.com>
11116 Ilya Tocar <ilya.tocar@intel.com>
11117 Andrey Turetskiy <andrey.turetskiy@intel.com>
11118 Ilya Verbin <ilya.verbin@intel.com>
11119 Kirill Yukhin <kirill.yukhin@intel.com>
11120 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11121
11122 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
11123 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
11124 (define_mode_iterator FMAMODE_AVX512): New.
11125 (define_mode_iterator FMAMODE): Remove conditions.
11126 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
11127 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
11128 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
11129 mode iterator.
11130 (define_mode_iterator FMAMODE_NOVF512): Remove.
11131 (define_insn "*fma_fmadd_<mode>"): Rename from
11132 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
11133 FMAMODE mode iterator.
11134 (define_mode_iterator VF_SF_AVX512VL): New.
11135 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
11136 Use VF_SF_AVX512VL mode iterator.
11137 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
11138 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
11139 iterator.
11140 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
11141 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
11142 iterator.
11143 (define_insn "*fma_fmsub_<mode>"): Rename from
11144 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
11145 FMAMODE mode iterator.
11146 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
11147 Use VF_SF_AVX512VL mode iterator.
11148 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
11149 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
11150 iterator.
11151 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
11152 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
11153 iterator.
11154 (define_insn "*fma_fnmadd_<mode>"): Rename from
11155 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
11156 use FMAMODE mode iterator.
11157 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
11158 Use VF_SF_AVX512VL mode iterator.
11159 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
11160 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
11161 iterator.
11162 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
11163 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
11164 iterator.
11165 (define_insn "*fma_fnmsub_<mode>"): Rename from
11166 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
11167 FMAMODE mode iterator.
11168 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
11169 Use VF_SF_AVX512VL mode iterator.
11170 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
11171 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
11172 iterator.
11173 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
11174 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
11175 iterator.
11176 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
11177 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
11178 use VF_AVX512VL mode iterator.
11179 (define_insn "*fma_fmaddsub_<mode>"): Rename from
11180 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
11181 remove subst usage.
11182 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
11183 Use VF_SF_AVX512VL mode iterator.
11184 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
11185 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
11186 iterator.
11187 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
11188 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
11189 iterator.
11190 (define_insn "*fma_fmsubadd_<mode>"): Rename from
11191 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
11192 remove usage of subst.
11193 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
11194 Use VF_SF_AVX512VL mode iterator.
11195 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
11196 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
11197 iterator.
11198 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
11199 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
11200 iterator.
11201
11202 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
11203
11204 Revert r213751:
11205 * calls.c (precompute_arguments): Check
11206 promoted_for_signed_and_unsigned_p and set the promoted mode.
11207 (promoted_for_signed_and_unsigned_p): New function.
11208 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
11209 and set the promoted mode.
11210 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
11211 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
11212 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
11213
11214 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
11215
11216 * opth-gen.awk: Generate mapping from cpp message reasons to the
11217 options that enable them.
11218 * doc/options.texi (CppReason): Document.
11219
11220 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
11221
11222 * doc/invoke.texi (Wnormalized=): Update.
11223
11224 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
11225
11226 PR target/63195
11227 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
11228 operands. Split off the constant operand alternative to ...
11229 (*bool<mode>3_imm): New.
11230
11231 2014-09-09 David Malcolm <dmalcolm@redhat.com>
11232
11233 * rtl.h (single_set_2): Strengthen first param from const_rtx to
11234 const rtx_insn *, and move prototype to above...
11235 (single_set): ...this. Convert this from a macro to an inline
11236 function, enforcing the requirement that the param is a const
11237 rtx_insn *.
11238 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
11239
11240 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
11241 Strengthen both params from rtx to rtx_insn *.
11242 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
11243 Likewise; introduce locals "producer_set", "consumer_set", using
11244 them in place of "producer" and "consumer" when dealing with SET
11245 rather than insn.
11246 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
11247 when invoking single_set in region guarded by INSN_P.
11248 (avr_out_bitop): Likewise.
11249 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
11250 region guarded by GET_CODE check, using methods to strengthen
11251 local "this_insn" from rtx to rtx_insn *, and for clarity.
11252 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
11253 Strengthen local "insn" from rtx to rtx_insn *.
11254 (define_insn_and_split "xload<mode>_A"): Likewise.
11255 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
11256 "insn".
11257 (find_load): Likewise for return type.
11258 (workaround_speculation): Likewise for both locals named
11259 "load_insn".
11260 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
11261 local "cc0_user".
11262 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
11263 for local "prev".
11264 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
11265 param 2.
11266 * config/h8300/h8300.c (notice_update_cc): Likewise.
11267 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
11268 "insn" and "dep_insn".
11269 (exact_store_load_dependency): Likewise for both params.
11270 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
11271 since this now clashes with inline function. Instead, delay
11272 calling single_set until the point where its needed, and then
11273 assign the result to "compare_set" and rework the conditional that
11274 follows.
11275 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
11276 local "last" from rtx to rtx_insn *.
11277 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
11278 second param.
11279 (mips_store_data_bypass_p): Likewise for both params.
11280 * config/mips/mips.c (mips_load_store_insns): Likewise for second
11281 param.
11282 (mips_store_data_bypass_p): Likewise for both params.
11283 (mips_orphaned_high_part_p): Likewise for param "insn".
11284 * config/mn10300/mn10300.c (extract_bundle): Likewise.
11285 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
11286 Introduce local rtx "insn2_pat".
11287 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
11288 "ninsn".
11289 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
11290 Introduce local rtx "set", using it in place of "insn" for the
11291 result of single_set. This appears to fix a bug, since the call
11292 to find_regno_note on a SET does nothing.
11293 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
11294 params from rtx to rtx_insn *.
11295 (set_to_load_agen): Likewise.
11296 * config/s390/s390.c (s390_label_align): Likewise for local
11297 "prev_insn". Introduce new rtx locals "set" and "src", using
11298 them in place of "prev_insn" for the results of single_set
11299 and SET_SRC respectively.
11300 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
11301 Introduce new rtx local "set" using in place of "jump" for the
11302 result of single_set. Use SET_SRC (set) rather than plain
11303 XEXP (set, 1).
11304 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
11305 rtx to rtx_insn *.
11306 (noncall_uses_reg): Likewise.
11307 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
11308 guarded by GET_CODE check, using its methods for clarity, and to
11309 enable strengthening local "this_insn" from rtx to rtx_insn *.
11310 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
11311 "insn" from rtx to rtx_insn *.
11312 (define_expand "umulhisi3"): Likewise.
11313 (define_expand "smulsi3_highpart"): Likewise.
11314 (define_expand "umulsi3_highpart"): Likewise.
11315 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
11316 local "after". Replace GET_CODE check with a dyn_cast,
11317 introducing new local rtx_sequence * "seq", using insn method for
11318 typesafety.
11319
11320 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
11321 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
11322 place of "insn" once we're dealing with patterns rather than the
11323 input insn.
11324 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
11325 (scan_trace): Likewise for local "elt", updating lookups within
11326 sequence to use insn method rather than element method.
11327 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
11328 to rtx_insn *.
11329 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
11330 * ifcvt.c (noce_try_abs): Likewise for local "insn".
11331 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
11332 invoking single_set.
11333 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
11334 "insn" from rtx to rtx_insn *.
11335 (skip_usage_debug_insns): Likewise for return type, adding a
11336 checked cast.
11337 (check_secondary_memory_needed_p): Likewise for local "insn".
11338 (inherit_reload_reg): Likewise.
11339 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
11340 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
11341 checked casts.
11342 (store_data_bypass_p): Likewise for both params.
11343 (if_test_bypass_p): Likewise.
11344 * recog.h (store_data_bypass_p): Likewise for both params.
11345 (if_test_bypass_p): Likewise.
11346 * reload.c (find_equiv_reg): Likewise for local "where".
11347 * reorg.c (delete_jump): Likewise for param "insn".
11348 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
11349 to const rtx_insn *.
11350 * store-motion.c (replace_store_insn): Likewise for param "del".
11351 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
11352 and use its methods for clarity, and to strengthen local "del"
11353 from rtx to rtx_insn *.
11354 (build_store_vectors): Use insn method of "st" when calling
11355 replace_store_insn for typesafety and clarity.
11356
11357 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11358
11359 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
11360 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
11361 on how to make it legal in future.
11362
11363 2014-09-09 David Malcolm <dmalcolm@redhat.com>
11364
11365 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
11366 to rtx_insn *.
11367 (restinsn): Likewise.
11368 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
11369 Likewise for param.
11370 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
11371 Likewise.
11372 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
11373 first param.
11374 (arc_hazard): Likewise for both params.
11375 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
11376 checked casts to rtx_sequence * and uses of the insn method for
11377 type-safety.
11378 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
11379 (arc_adjust_insn_length): Likewise for param "insn".
11380 (struct insn_length_parameters_s): Likewise for first param of
11381 "get_variants" callback field.
11382 (arc_get_insn_variants): Likewise for first param and local
11383 "inner". Replace a check of GET_CODE with a dyn_cast to
11384 rtx_sequence *, using methods for type-safety and clarity.
11385 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
11386 rtx_sequence * and uses of the insn method for type-safety when
11387 invoking arc_adjust_insn_length.
11388 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
11389 for param.
11390 (arm_address_offset_is_imm): Likewise.
11391 (struct tune_params): Likewise for params 1 and 3 of the
11392 "sched_adjust_cost" callback field.
11393 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
11394 params 1 and 3 ("insn" and "dep").
11395 (xscale_sched_adjust_cost): Likewise.
11396 (fa726te_sched_adjust_cost): Likewise.
11397 (cortexa7_older_only): Likewise for param "insn".
11398 (cortexa7_younger): Likewise.
11399 (arm_attr_length_move_neon): Likewise.
11400 (arm_address_offset_is_imm): Likewise.
11401 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
11402 * config/avr/avr.c (avr_notice_update_cc): Likewise.
11403 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
11404 (workaround_speculation): Likewise for local "last_condjump".
11405 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
11406 (shadow_or_blockage_p): Likewise.
11407 (get_unit_reqs): Likewise.
11408 (get_unit_operand_masks): Likewise.
11409 (c6x_registers_update): Likewise.
11410 (returning_call_p): Likewise.
11411 (can_use_callp): Likewise.
11412 (convert_to_callp): Likewise.
11413 (find_last_same_clock): Likwise for local "t".
11414 (reorg_split_calls): Likewise for local "shadow".
11415 (hwloop_pattern_reg): Likewise for param "insn".
11416 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
11417 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
11418 (frv_extract_membar): Likewise.
11419 (frv_optimize_membar_local): Strengthen param "last_membar" from
11420 rtx * to rtx_insn **.
11421 (frv_optimize_membar_global): Strengthen param "membar" from rtx
11422 to rtx_insn *.
11423 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
11424 to rtx_insn **.
11425 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
11426 both params from rtx to rtx_insn *.
11427 (ia64_ld_address_bypass_p): Likewise.
11428 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
11429 "insn".
11430 (ia64_safe_type): Likewise.
11431 (group_barrier_needed): Likewise.
11432 (safe_group_barrier_needed): Likewise.
11433 (ia64_single_set): Likewise.
11434 (is_load_p): Likewise.
11435 (record_memory_reference): Likewise.
11436 (get_mode_no_for_insn): Likewise.
11437 (important_for_bundling_p): Likewise.
11438 (unknown_for_bundling_p): Likewise.
11439 (ia64_st_address_bypass_p): Likewise for both params.
11440 (ia64_ld_address_bypass_p): Likewise.
11441 (expand_vselect): Introduce new local rtx_insn * "insn", using it
11442 in place of rtx "x" after the emit_insn call.
11443 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
11444 Strengthen param from rtx to rtx_insn *.
11445 (ix86_agi_dependent): Likewise for both params.
11446 (ix86_attr_length_immediate_default): Likewise for param 1.
11447 (ix86_attr_length_address_default): Likewise for param.
11448 (ix86_attr_length_vex_default): Likewise for param 1.
11449 * config/i386/i386.c (ix86_attr_length_immediate_default):
11450 Likewise for param "insn".
11451 (ix86_attr_length_address_default): Likewise.
11452 (ix86_attr_length_vex_default): Likewise.
11453 (ix86_agi_dependent): Likewise for both params.
11454 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
11455 (vselect_insn): Likewise for this variable.
11456 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
11457 for param 1.
11458 (m68k_sched_attr_opy_type): Likewise.
11459 * config/m68k/m68k.c (sched_get_operand): Likewise.
11460 (sched_attr_op_type): Likewise.
11461 (m68k_sched_attr_opx_type): Likewise.
11462 (m68k_sched_attr_opy_type): Likewise.
11463 (sched_get_reg_operand): Likewise.
11464 (sched_get_mem_operand): Likewise.
11465 (m68k_sched_address_bypass_p): Likewise for both params.
11466 (sched_get_indexed_address_scale): Likewise.
11467 (m68k_sched_indexed_address_bypass_p): Likewise.
11468 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
11469 (m68k_sched_indexed_address_bypass_p): Likewise.
11470 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
11471 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
11472 removing another.
11473 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
11474 params from rtx to rtx_insn *.
11475 (mips_fmadd_bypass): Likewise.
11476 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
11477 (mips_linked_madd_p): Likewise.
11478 (mips_macc_chains_last_hilo): Likewise for this variable.
11479 (mips_macc_chains_record): Likewise for param.
11480 (vr4130_last_insn): Likewise for this variable.
11481 (vr4130_swap_insns_p): Likewise for both params.
11482 (mips_ls2_variable_issue): Likewise for param.
11483 (mips_need_noat_wrapper_p): Likewise for param "insn".
11484 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
11485 in place of "x" after the emit_insn.
11486 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
11487 params from rtx to rtx_insn *.
11488 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
11489 (pa_combine_instructions): Introduce local "par" for result of
11490 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
11491 to make_insn_raw.
11492 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
11493 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
11494 (rl78_alloc_physical_registers_op1): Likewise.
11495 (rl78_alloc_physical_registers_op2): Likewise.
11496 (rl78_alloc_physical_registers_ro1): Likewise.
11497 (rl78_alloc_physical_registers_cmp): Likewise.
11498 (rl78_alloc_physical_registers_umul): Likewise.
11499 (rl78_alloc_address_registers_macax): Likewise.
11500 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
11501 * config/s390/predicates.md (execute_operation): Likewise for
11502 local "insn".
11503 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
11504 params.
11505 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
11506 (addr_generation_dependency_p): Likewise for param "insn".
11507 (s390_agen_dep_p): Likewise for both params.
11508 (s390_fpload_toreg): Likewise for param "insn".
11509 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
11510 * config/sh/sh.c (sh_loop_align): Likewise for param and local
11511 "next".
11512 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
11513 * config/sh/sh_treg_combine.cc
11514 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
11515 and local "i".
11516 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
11517 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
11518 "and_insn", "load", "shift".
11519 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
11520 "insn".
11521 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
11522 for XEXP (note, 0) of the REG_CC_SETTER note.
11523 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
11524 rtx_insn *, eliminating a checked cast made redundant by this.
11525 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
11526 to rtx_insn *.
11527 * genattr.c (main): When writing out the prototype to
11528 const_num_delay_slots, strengthen the param from rtx to
11529 rtx_insn *.
11530 * genattrtab.c (write_const_num_delay_slots): Likewise when
11531 writing out the implementation of const_num_delay_slots.
11532 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
11533 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
11534 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
11535 favor of new rtx locals "src" and "set" and new local rtx_insn *
11536 "insn" and "seq".
11537 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
11538 to rtx_insn *.
11539 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
11540 locals "cond", "if_then_else", "set" and new rtx_insn * locals
11541 "insn" and "seq".
11542 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
11543 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
11544 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
11545 the top-level scope, replacing with new more tightly-scoped rtx
11546 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
11547 "new_insn", "copy_of_insn_b", and make local rtx "set" more
11548 tightly-scoped.
11549 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
11550 rtx_insn *.
11551 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
11552 "move_insn".
11553 (ira_setup_alts): Likewise for param "insn".
11554 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
11555 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
11556 and an rtx_insn *.
11557 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
11558 new more-tightly scoped rtx locals "add3_insn", "insn",
11559 "add2_insn" and rtx_insn * "move_insn".
11560 * postreload-gcse.c (eliminate_partially_redundant_load): Add
11561 checked cast on result of gen_move_insn when invoking
11562 extract_insn.
11563 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
11564 rtx_insn *.
11565 (verify_changes): Add a checked cast on "object" when invoking
11566 insn_invalid_p.
11567 (extract_insn_cached): Strengthen param "insn" from rtx to
11568 rtx_insn *.
11569 (extract_constrain_insn_cached): Likewise.
11570 (extract_insn): Likewise.
11571 * recog.h (insn_invalid_p): Likewise for param 1.
11572 (recog_memoized): Likewise for param.
11573 (extract_insn): Likewise.
11574 (extract_constrain_insn_cached): Likewise.
11575 (extract_insn_cached): Likewise.
11576 * reload.c (can_reload_into): Likewise for local "test_insn".
11577 * reload.h (cleanup_subreg_operands): Likewise for param.
11578 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
11579 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
11580 result of emit_insn. Remove a checked cast made redundant by this
11581 change.
11582 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
11583 rtx to rtx_insn *.
11584 * sel-sched.c (get_reg_class): Likewise.
11585
11586 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
11587 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11588
11589 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
11590 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
11591 Define.
11592 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
11593
11594 2014-09-09 David Malcolm <dmalcolm@redhat.com>
11595
11596 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
11597 const rtx_insn *, and from rtx to rtx_insn * for the other
11598 overloaded variant.
11599 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
11600 INSN_LOCATION, since we know INSN_P holds.
11601 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
11602 (insn_file): Likewise.
11603 (insn_scope): Likewise.
11604 (insn_location): Likewise.
11605
11606 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
11607 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
11608 for the result of gen_load_const_gp.
11609 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
11610 param from rtx to rtx_insn *.
11611 * config/rs6000/rs6000.c (output_call): Likewise.
11612 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
11613 introducing a checked cast to rtx_sequence * and use of the insn
11614 method.
11615 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
11616 from rtx to rtx_insn *.
11617 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
11618 (insn_line): Likewise.
11619 (insn_file): Likewise.
11620 (insn_location): Likewise.
11621 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
11622 from rtx to rtx_insn *.
11623 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
11624 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
11625 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
11626 via a checked cast.
11627 * reorg.c (relax_delay_slots): Strengthen locals named "after"
11628 from rtx to rtx_insn *; use methods of "pat" for type-safety.
11629
11630 2014-09-09 David Malcolm <dmalcolm@redhat.com>
11631
11632 * combine.c (try_combine): Eliminate checked cast on result of
11633 gen_rtx_INSN.
11634 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
11635 autogenerated one by strengthening the return type and params 2 and 3
11636 from rtx to rtx_insn *, and by naming the params.
11637 * gengenrtl.c (special_rtx): Add INSN to those that are
11638 special-cased.
11639 * rtl.h (gen_rtx_INSN): New prototype.
11640
11641 2014-09-09 David Malcolm <dmalcolm@redhat.com>
11642
11643 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
11644 than NULL_RTX.
11645 (no_equiv): Likewise.
11646 (update_equiv_regs): Likewise.
11647 (setup_reg_equiv): Likewise. Strengthen locals "elem",
11648 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
11649 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
11650 clarity.
11651 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
11652 from rtx to rtx_insn_list *.
11653 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
11654 rtx_insn_list * and use methods for clarity and typesafety.
11655 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
11656 "list".
11657 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
11658 redundant check on INSN_P (insns): this cannot hold, as "insns" is
11659 an INSN_LIST, not an insn.
11660 (reverse_equiv_p): Strengthen local "insns" from rtx to
11661 rtx_insn_list * and use methods for clarity and typesafety.
11662 (contains_reloaded_insn_p): Likewise for local "list".
11663
11664 2014-09-09 Jiong Wang <jiong.wang@arm.com>
11665
11666 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
11667 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
11668 (arm_builtin_vectorized_function): Likewise.
11669 * config/arm/arm_neon_builtins.def: New macro for copysignf.
11670 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
11671
11672 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
11673
11674 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
11675 * builtins.h (default_target_builtins): Likewise.
11676 * gcse.h (default_target_gcse): Likewise.
11677 * target-globals.h (target_globals): Add a destructor. Convert
11678 void-pointer fields back to their real type and change from
11679 GTY((atomic)) to GTY((skip)).
11680 (restore_target_globals): Remove casts accordingly.
11681 * target-globals.c (save_target_globals): Use XCNEW rather than
11682 ggc_internal_cleared_alloc to allocate non-GC structures.
11683 Use ggc_cleared_alloc to allocate the target_globals structure
11684 itself.
11685 (target_globals::~target_globals): Define.
11686
11687 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11688
11689 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
11690 mnemonic instead of fldmfdd.
11691 * config/arm/arm.c (vfp_output_fstmd): Rename to...
11692 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
11693 Output vpush when address register is SP.
11694 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
11695 (vfp_output_vstmd): ... This.
11696 * config/arm/vfp.md (push_multi_vfp): Update call to
11697 vfp_output_vstmd.
11698
11699 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11700
11701 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
11702
11703 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11704
11705 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
11706 (*sqrtdf2_vfp): Likewise.
11707 (*cmpsf_vfp): Likewise.
11708 (*cmpsf_trap_vfp): Likewise.
11709 (*cmpdf_vfp): Likewise.
11710 (*cmpdf_trap_vfp): Likewise.
11711
11712 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11713
11714 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
11715 (*truncdfsf2_vfp): Likewise.
11716 (*truncsisf2_vfp): Likewise.
11717 (*truncsidf2_vfp): Likewise.
11718 (fixuns_truncsfsi2): Likewise.
11719 (fixuns_truncdfsi2): Likewise.
11720 (*floatsisf2_vfp): Likewise.
11721 (*floatsidf2_vfp): Likewise.
11722 (floatunssisf2): Likewise.
11723 (floatunssidf2): Likewise.
11724
11725 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11726
11727 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
11728 (*muldf3_vfp): Likewise.
11729 (*mulsf3negsf_vfp): Likewise.
11730 (*muldf3negdf_vfp): Likewise.
11731 (*mulsf3addsf_vfp): Likewise.
11732 (*muldf3adddf_vfp): Likewise.
11733 (*mulsf3subsf_vfp): Likewise.
11734 (*muldf3subdf_vfp): Likewise.
11735 (*mulsf3negsfaddsf_vfp): Likewise.
11736 (*fmuldf3negdfadddf_vfp): Likewise.
11737 (*mulsf3negsfsubsf_vfp): Likewise.
11738 (*muldf3negdfsubdf_vfp): Likewise.
11739
11740 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11741
11742 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
11743 (*absdf2_vfp): Likewise.
11744 (*negsf2_vfp): Likewise.
11745 (*negdf2_vfp): Likewise.
11746 (*addsf3_vfp): Likewise.
11747 (*adddf3_vfp): Likewise.
11748 (*subsf3_vfp): Likewise.
11749 (*subdf3_vfp): Likewise.
11750 (*divsf3_vfp): Likewise.
11751 (*divdf3_vfp): Likewise.
11752
11753 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11754
11755 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
11756 multiple.
11757 (arm_print_operand): Don't convert real values to decimal
11758 representation in default case.
11759 (fp_immediate_constant): Delete.
11760 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
11761 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
11762 syntax.
11763 (*thumb2_movsi_vfp): Likewise.
11764 (*movdi_vfp): Likewise.
11765 (*movdi_vfp_cortexa8): Likewise.
11766 (*movhf_vfp_neon): Likewise.
11767 (*movhf_vfp): Likewise.
11768 (*movsf_vfp): Likewise.
11769 (*thumb2_movsf_vfp): Likewise.
11770 (*movdf_vfp): Likewise.
11771 (*thumb2_movdf_vfp): Likewise.
11772 (*movsfcc_vfp): Likewise.
11773 (*thumb2_movsfcc_vfp): Likewise.
11774 (*movdfcc_vfp): Likewise.
11775 (*thumb2_movdfcc_vfp): Likewise.
11776
11777 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
11778
11779 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
11780 (-mtune): Likewise.
11781 (-mcpu): Likewise.
11782
11783 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11784
11785 PR target/61749
11786 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
11787 Use qualifier_immediate for last operand. Rename to...
11788 (aarch64_types_ternop_lane_qualifiers): ... This.
11789 (TYPES_QUADOP): Rename to...
11790 (TYPES_TERNOP_LANE): ... This.
11791 (aarch64_simd_expand_args): Return const0_rtx when encountering user
11792 error. Change return of 0 to return of NULL_RTX.
11793 (aarch64_crc32_expand_builtin): Likewise.
11794 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
11795 ICE when expanding unknown builtin.
11796 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
11797 TERNOP_LANE qualifiers.
11798 (sqdmlsl_lane): Likewise.
11799 (sqdmlal_laneq): Likewise.
11800 (sqdmlsl_laneq): Likewise.
11801 (sqdmlal2_lane): Likewise.
11802 (sqdmlsl2_lane): Likewise.
11803 (sqdmlal2_laneq): Likewise.
11804 (sqdmlsl2_laneq): Likewise.
11805
11806 2014-09-09 Nick Clifton <nickc@redhat.com>
11807
11808 * doc/invoke.texi (Optimization Options): Add missing @gol to the
11809 end of a line.
11810 (S/390 and zSeries Options): Remove superfluous word from the
11811 description of the -mhotpatch option.
11812
11813 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
11814
11815 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
11816 * ira.c: #include "shrink-wrap.h"
11817 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
11818 * ifcvt.c: #include "shrink-wrap.h"
11819 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
11820
11821 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
11822
11823 * common/config/picochip/picochip-common.c: Remove.
11824 * config.gcc: Remove support for picochip.
11825 * config/picochip/constraints.md: Remove.
11826 * config/picochip/dfa_space.md: Remove.
11827 * config/picochip/dfa_speed.md: Remove.
11828 * config/picochip/picochip-protos.h: Remove.
11829 * config/picochip/picochip.c: Remove.
11830 * config/picochip/picochip.h: Remove.
11831 * config/picochip/picochip.md: Remove.
11832 * config/picochip/picochip.opt: Remove.
11833 * config/picochip/predicates.md: Remove.
11834 * config/picochip/t-picochip: Remove.
11835 * doc/md.texi: Don't document picochi.
11836
11837 2014-09-08 David Malcolm <dmalcolm@redhat.com>
11838
11839 * basic-block.h (control_flow_insn_p): Strengthen param from
11840 const_rtx to const rtx_insn *.
11841 * cfgbuild.c (control_flow_insn_p): Likewise.
11842
11843 2014-09-08 David Malcolm <dmalcolm@redhat.com>
11844
11845 * gcse.c (modify_mem_list): Strengthen this variable from
11846 vec<rtx> * to vec<rtx_insn *> *.
11847 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
11848 vec<rtx_insn *>.
11849 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
11850 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
11851 (record_last_mem_set_info): Strengthen param "insn" from rtx to
11852 rtx_insn *.
11853 (record_last_set_info): Likewise for local "last_set_insn".
11854
11855 2014-09-08 DJ Delorie <dj@redhat.com>
11856
11857 * doc/invoke.texi (MSP430 Options): Add -minrt.
11858
11859 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11860
11861 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
11862 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
11863 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
11864 handling SH_SPLAT.
11865 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
11866 of extracted lane.
11867 (adjust_splat): New function.
11868 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
11869 (dump_swap_insn_table): Add case for SH_SPLAT.
11870
11871 2014-09-08 Richard Biener <rguenther@suse.de>
11872
11873 PR ipa/63196
11874 * tree-inline.c (copy_loops): The source loop header should
11875 always be non-NULL.
11876 (tree_function_versioning): If loops need fixup after removing
11877 unreachable blocks fix them.
11878 * omp-low.c (simd_clone_adjust): Do not add incr block to
11879 loop under construction.
11880
11881 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
11882
11883 * config/aarch64/aarch64-builtins.c
11884 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
11885
11886 2014-09-08 Joseph Myers <joseph@codesourcery.com>
11887
11888 * config/i386/cygming.h (TF_SIZE): Remove.
11889 * config/i386/darwin.h (TF_SIZE): Remove.
11890 * config/i386/dragonfly.h (TF_SIZE): Remove.
11891 * config/i386/freebsd.h (TF_SIZE): Remove.
11892 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
11893 * config/i386/openbsdelf.h (TF_SIZE): Remove.
11894 * config/i386/sol2.h (TF_SIZE): Remove.
11895 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
11896 * config/ia64/linux.h (TF_SIZE): Remove.
11897 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
11898 * doc/tm.texi: Regenerate.
11899 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
11900
11901 2014-09-08 Joseph Myers <joseph@codesourcery.com>
11902
11903 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
11904 Remove.
11905 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
11906 Remove.
11907 * doc/tm.texi: Regenerate.
11908 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
11909 Poison.
11910 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
11911 * config/cris/cris.h (__make_dp): Remove.
11912
11913 2014-09-08 Richard Biener <rguenther@suse.de>
11914
11915 PR bootstrap/63204
11916 * cfgloop.c (mark_loop_for_removal): Track former header
11917 unconditionally.
11918 * cfgloop.h (struct loop): Add former_header member unconditionally.
11919 * loop-init.c (fix_loop_structure): Enable bogus loop removal
11920 diagnostic unconditionally.
11921
11922 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
11923
11924 PR target/63190
11925 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
11926 constraint for operand0 and remove write only modifier from operand3.
11927
11928 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
11929
11930 PR rtl-optimization/62208
11931 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
11932 rather than const0_rtx in eq/ne-xor simplifications.
11933
11934 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
11935
11936 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
11937 (arc_output_mi_thunk): Likewise.
11938
11939 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
11940 arguments to silence bogus warning.
11941
11942 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
11943
11944 PR middle-end/63171
11945 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
11946
11947 2014-09-06 Tom de Vries <tom@codesourcery.com>
11948
11949 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
11950 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
11951 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
11952
11953 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
11954
11955 PR target/63188
11956 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
11957 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
11958
11959 2014-09-05 Easwaran Raman <eraman@google.com>
11960
11961 PR rtl-optimization/62146
11962 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
11963 hoisted instruction unconditional.
11964
11965 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
11966
11967 PR target/63187
11968 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
11969 Do not allow any_mask_operand for operands[2].
11970 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
11971
11972 2014-09-05 David Malcolm <dmalcolm@redhat.com>
11973
11974 * config/arc/arc.c (arc_print_operand): Use insn method of
11975 final_sequence for type-safety.
11976 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
11977 "insn" from rtx to rtx_insn *.
11978 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
11979 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11980 Likewise for locals "branch", "label".
11981 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
11982 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
11983 (same_cmp_following_p): Likewise for locals "i2", "i3".
11984 * config/sh/sh_optimize_sett_clrt.cc
11985 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
11986 param "cbranch_insn".
11987 * function.c (convert_jumps_to_returns): Likewis for local "jump".
11988 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
11989 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
11990 const rtx_insn *.
11991 (condjump_p): Likewise.
11992 (condjump_in_parallel_p): Likewise.
11993 (pc_set): Likewise.
11994 (any_uncondjump_p): Likewise.
11995 (any_condjump_p): Likewise.
11996 (condjump_label): Likewise.
11997 (returnjump_p): Strengthen param "insn" from rtx to
11998 const rtx_insn *.
11999 (onlyjump_p): Strengthen param "insn" from const_rtx to
12000 const rtx_insn *.
12001 (jump_to_label_p): Likewise.
12002 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
12003 (invert_jump): Likewise.
12004 * reorg.c (simplejump_or_return_p): Add checked cast when calling
12005 simplejump_p.
12006 (get_jump_flags): Strengthen param "insn" from rtx to
12007 const rtx_insn *.
12008 (get_branch_condition): Likewise.
12009 (condition_dominates_p): Likewise.
12010 (make_return_insns): Move declaration of local "pat" earlier, to
12011 after we've handled NONJUMP_INSN_P and non-sequences, using its
12012 methods to simplify the code and for type-safety.
12013 * rtl.h (find_constant_src): Strengthen param from const_rtx to
12014 const rtx_insn *.
12015 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
12016 (condjump_p): Strengthen param from const_rtx to
12017 const rtx_insn *.
12018 (any_condjump_p): Likewise.
12019 (any_uncondjump_p): Likewise.
12020 (pc_set): Likewise.
12021 (condjump_label): Likewise.
12022 (simplejump_p): Likewise.
12023 (returnjump_p): Likewise.
12024 (onlyjump_p): Likewise.
12025 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
12026 (invert_jump): Likewise.
12027 (condjump_in_parallel_p): Strengthen param from const_rtx to
12028 const rtx_insn *.
12029 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
12030 to const rtx_insn *.
12031 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
12032 to const rtx_insn *.
12033 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
12034
12035 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12036
12037 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
12038 above the conditional, and convert the check on GET_CODE to a
12039 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
12040 the conditional. Simplify the conditional by using methods of
12041 "trial_seq".
12042
12043 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12044
12045 * haifa-sched.c (check_clobbered_conditions): Strengthen local
12046 "link" from rtx to rtx_insn_list *, and use its methods for
12047 clarity and type-safety.
12048 (toggle_cancelled_flags): Likewise.
12049 (restore_last_backtrack_point): Likewise.
12050 (queue_to_ready): Use insn method of "link" in one place.
12051 (schedule_block): Strengthen local "link" from rtx to
12052 rtx_insn_list *, and use its methods for clarity and type-safety.
12053
12054 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12055
12056 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
12057 param "insn" from const_rtx to const rtx_insn *.
12058 (sched_get_reverse_condition_uncached): Likewise.
12059 (sched_get_condition_with_rev): Likewise.
12060 (sched_has_condition_p): Likewise.
12061 (sched_insns_conditions_mutex_p): Likewise for both params.
12062 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
12063 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
12064 (setup_insn_reg_uses): Move local "list" to be more tightly
12065 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
12066 its methods for clarity and type-safety.
12067 (sched_analyze_1): Strengthen local "pending" from rtx to
12068 rtx_insn_list *, and local "pending_mem" from rtx to
12069 rtx_expr_list *. Use methods of each for clarity and type-safety.
12070 (sched_analyze_2): Likewise.
12071 (sched_analyze_insn): Likewise.
12072
12073 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
12074 param from const_rtx to const rtx_insn *.
12075 (sched_insns_conditions_mutex_p): Likewise for both params.
12076 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
12077 param.
12078
12079 * system.h (CONST_CAST_RTX_INSN): New macro.
12080
12081 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12082
12083 * recog.c (peep2_attempt): Strengthen return type from rtx to
12084 rtx_insn *.
12085 (peep2_update_life): Likewise for params "last", "prev", removing
12086 a checked cast made redundant by this.
12087 (peephole2_optimize): Likewise for local "last".
12088
12089 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12090
12091 * basic-block.h (set_block_for_insn): Eliminate this macro in
12092 favor of...
12093 * rtl.h (set_block_for_insn): New inline function, imposing the
12094 requirement that the "insn" param is an rtx_insn *.
12095
12096 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12097
12098 * caller-save.c (setup_save_areas): Strengthen local "insn" from
12099 rtx to rtx_insn *.
12100 * final.c (get_call_reg_set_usage): Likewise for first param,
12101 eliminating a checked cast.
12102 * regs.h (get_call_reg_set_usage): Likewise for first param.
12103 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
12104 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
12105 cast, replacing references to "x" with "call_insn" where
12106 appropriate.
12107 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
12108 rtx_insn *, adding a checked cast.
12109
12110 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12111
12112 * output.h (final_scan_insn): Strengthen first param from rtx to
12113 rtx_insn *.
12114
12115 * final.c (final_scan_insn): Likewise, renaming it back from
12116 "uncast_insn" to "insn", eliminating the checked cast.
12117
12118 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
12119 "vec" with an rtx_sequence * "seq", taking a copy of
12120 "final_sequence", and using methods of "seq" for clarity, and for
12121 type-safety in the calls to final_scan_insn.
12122 * config/mips/mips.c (mips_output_conditional_branch): Use methods
12123 of "final_sequence" for clarity, and for type-safety in the call to
12124 final_scan_insn.
12125 * config/sh/sh.c (print_slot): Strengthen param from rtx to
12126 rtx_sequence * and rename from "insn" to "seq".
12127
12128 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12129
12130 * jump.c (delete_related_insns): Introduce a new local "table" by
12131 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
12132 get_labels method of "table" to simplify access to the labels in
12133 the jump table.
12134
12135 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12136
12137 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
12138 f_minmaxs, f_minmaxd types.
12139
12140 2014-09-05 Richard Biener <rguenther@suse.de>
12141
12142 * cfgloop.c (mark_loop_for_removal): Record former header
12143 when ENABLE_CHECKING.
12144 * cfgloop.h (strut loop): Add former_header member when
12145 ENABLE_CHECKING.
12146 * loop-init.c (fix_loop_structure): Sanity check loops
12147 marked for removal if they re-appeared.
12148
12149 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
12150
12151 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
12152 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
12153
12154 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
12155 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
12156 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
12157 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
12158 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
12159 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
12160 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
12161 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
12162 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
12163 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
12164 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
12165 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
12166 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
12167 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
12168 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
12169 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
12170 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
12171 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
12172 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
12173 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
12174 with int{32,16,8}_t.
12175
12176 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
12177
12178 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
12179 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
12180 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
12181 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
12182 Remove temporary __asm__ and reimplement.
12183
12184 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
12185
12186 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
12187 handling cmge, cmgt, cmeq, cmtst.
12188
12189 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
12190 cmlt, cmgeu, cmgtu, cmtst): Remove.
12191
12192 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
12193 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
12194 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
12195 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
12196
12197 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
12198
12199 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
12200 TYPES_TST): Define.
12201 (aarch64_fold_builtin): Update pattern for cmtst.
12202
12203 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
12204 Declare.
12205
12206 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
12207
12208 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
12209 Switch operands, separate out more cases, refactor.
12210
12211 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
12212
12213 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
12214 argument; rename old version to...
12215 (aarch64_const_vec_all_same_in_range_p): ...this.
12216 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
12217
12218 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
12219
12220 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
12221
12222 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
12223 Remove qualifier_const_pointer, update comment.
12224
12225 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
12226
12227 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
12228
12229 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
12230
12231 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
12232 varargs with pointer parameter.
12233 (aarch64_simd_expand_builtin): pass pointer into previous.
12234
12235 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12236
12237 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
12238 alus_ext.
12239
12240 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
12241
12242 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
12243 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
12244 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
12245 Replace temporary asm with call to builtin.
12246 (vrbit_p8, vrbitq_p8): New functions.
12247
12248 2014-09-05 Richard Biener <rguenther@suse.de>
12249
12250 * cfgloop.c (mark_loop_for_removal): New function.
12251 * cfgloop.h (mark_loop_for_removal): Declare.
12252 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
12253 (merge_blocks): Likewise.
12254 (duplicate_block): Likewise.
12255 * except.c (sjlj_emit_dispatch_table): Likewise.
12256 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
12257 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
12258 (thread_through_loop_header): Likewise.
12259
12260 2014-09-05 Richard Biener <rguenther@suse.de>
12261
12262 PR middle-end/63148
12263 * fold-const.c (try_move_mult_to_index): Remove.
12264 (fold_binary_loc): Do not call it.
12265 * tree-data-ref.c (dr_analyze_indices): Strip conversions
12266 from the base object again.
12267
12268 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
12269
12270 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
12271 DImode.
12272
12273 2014-09-05 Bin Cheng <bin.cheng@arm.com>
12274
12275 PR target/55701
12276 * config/arm/arm.md (setmem): New pattern.
12277 * config/arm/arm-protos.h (struct tune_params): New fields.
12278 (arm_gen_setmem): New prototype.
12279 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
12280 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
12281 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
12282 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
12283 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
12284 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
12285 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
12286 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
12287 (arm_const_inline_cost): New function.
12288 (arm_block_set_max_insns): New function.
12289 (arm_block_set_non_vect_profit_p): New function.
12290 (arm_block_set_vect_profit_p): New function.
12291 (arm_block_set_unaligned_vect): New function.
12292 (arm_block_set_aligned_vect): New function.
12293 (arm_block_set_unaligned_non_vect): New function.
12294 (arm_block_set_aligned_non_vect): New function.
12295 (arm_block_set_vect, arm_gen_setmem): New functions.
12296
12297 2014-09-05 Bin Cheng <bin.cheng@arm.com>
12298
12299 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
12300
12301 2014-09-05 Bin Cheng <bin.cheng@arm.com>
12302
12303 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
12304
12305 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
12306
12307 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
12308 an rtx.
12309 * valtrack.h: Adjust.
12310
12311 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
12312
12313 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
12314 an rtx.
12315 (emit_jump_insn_before_noloc): Likewise.
12316 (emit_call_insn_before_noloc): Likewise.
12317 (emit_label_before): Likewise.
12318 (emit_label_after): Likewise.
12319 (emit_insn_before_setloc): Likewise.
12320 (emit_jump_insn_before_setloc): Likewise.
12321 (emit_call_insn_before_setloc): Likewise.
12322 (emit_call_insn_before): Likewise.
12323 * rtl.h: Adjust.
12324
12325 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12326
12327 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
12328 rtx_insn *, eliminating a checked cast.
12329
12330 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12331
12332 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
12333 const_rtx to const rtx_insn *.
12334 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
12335 cast.
12336
12337 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12338
12339 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
12340 fixup_args_size_notes.
12341 * expr.c (fixup_args_size_notes): Strengthen first two params from
12342 rtx to rtx_insn *, eliminating a checked cast.
12343 * rtl.h (fixup_args_size_notes): Strengthen first two params from
12344 rtx to rtx_insn *.
12345
12346 2014-09-05 David Malcolm <dmalcolm@redhat.com>
12347
12348 * haifa-sched.c (get_ready_element): Strengthen return type from
12349 rtx to rtx_insn *.
12350 * sched-int.h (get_ready_element): Likewise.
12351
12352 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
12353
12354 PR target/63165
12355 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
12356 indexed_or_indirect_operand instead of memory_operand.
12357 (floatsi<mode>2_lfiwzx_mem): Ditto.
12358
12359 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
12360
12361 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
12362 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
12363 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
12364
12365 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
12366
12367 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
12368 rtx.
12369 (get_last_nonnote_insn): Likewise.
12370 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
12371 * resource.c (find_basic_block): Likewise.
12372 * rtl.h: Adjust.
12373 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
12374 const_rtx.
12375
12376 2014-09-04 David Malcolm <dmalcolm@redhat.com>
12377
12378 * genattr.c (main): Within the prototype of insn_latency written
12379 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
12380 * genautomata.c (output_internal_maximal_insn_latency_func):
12381 Within the implementation of insn_latency written out to
12382 insn-automata.c, strengthen both params from rtx to rtx_insn *,
12383 eliminating a pair of checked casts.
12384
12385 2014-09-04 David Malcolm <dmalcolm@redhat.com>
12386
12387 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
12388 rtx_insn *.
12389
12390 * rtl.h (eh_returnjump_p): Likewise.
12391
12392 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
12393
12394 * Makefile.in (TAGS): Handle constructs in timevar.def.
12395
12396 2014-09-04 Guozhi Wei <carrot@google.com>
12397
12398 PR target/62040
12399 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
12400 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
12401 it into two patterns.
12402 (move_lo_quad_internal_be_<mode>): Likewise.
12403
12404 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
12405
12406 * doc/options.texi: Document that Var and Init are required if CPP
12407 is given.
12408 * optc-gen.awk: Require Var and Init if CPP is given.
12409 * common.opt (Wpedantic): Use Init.
12410
12411 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12412
12413 * config/rs6000/rs6000.c (special_handling_values): Add
12414 SH_EXTRACT.
12415 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
12416 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
12417 as swappable with special handling SH_EXTRACT. Remove
12418 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
12419 optimization.
12420 (adjust_extract): New function.
12421 (handle_special_swappables): Add default to case statement; add
12422 case for SH_EXTRACT that calls adjust_extract.
12423 (dump_swap_insn_table): Handle SH_EXTRACT.
12424
12425 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12426
12427 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
12428 selection of 0th memory doubleword, regardless of endianness.
12429
12430 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12431
12432 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
12433
12434 2014-09-04 Alan Modra <amodra@gmail.com>
12435
12436 PR debug/60655
12437 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
12438 can't be output.
12439
12440 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
12441
12442 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
12443 * targhooks.c (default_dwarf_frame_reg_mode): New function.
12444 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
12445 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
12446 * doc/tm.texi: Regenerate.
12447 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
12448 selection logic to default_dwarf_frame_reg_mode.
12449
12450 2014-09-03 Marek Polacek <polacek@redhat.com>
12451
12452 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
12453 by -Wall.
12454
12455 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
12456
12457 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
12458 the automodified register.
12459
12460 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
12461
12462 * output.h (get_some_local_dynamic_name): Declare.
12463 * final.c (some_local_dynamic_name): New variable.
12464 (get_some_local_dynamic_name): New function.
12465 (final_end_function): Clear some_local_dynamic_name.
12466 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
12467 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
12468 (print_operand): Report an error if '%&' is used inappropriately.
12469 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
12470 (get_some_local_dynamic_name_1): Delete.
12471 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
12472 (rs6000_get_some_local_dynamic_name): Delete.
12473 (rs6000_get_some_local_dynamic_name_1): Delete.
12474 (print_operand): Report an error if '%&' is used inappropriately.
12475 * config/s390/s390.c (machine_function): Remove some_ld_name.
12476 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
12477 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
12478 * config/sparc/sparc.c: Include rtl-iter.h.
12479 (machine_function): Remove some_ld_name.
12480 (sparc_print_operand): Report an error if '%&' is used inappropriately.
12481 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
12482
12483 2014-09-03 Richard Henderson <rth@redhat.com>
12484
12485 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
12486 (aarch64_popwb_pair_reg): Remove.
12487 (aarch64_set_frame_expr): Remove.
12488 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
12489 the restore ops performed by the insns generated.
12490 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
12491 insn. Perform the calls_eh_return addition later; do not attempt to
12492 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
12493 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
12494 special markup at all. Load cfun->machine->frame.hard_fp_offset
12495 into a local variable.
12496 (aarch64_frame_pointer_required): Don't check calls_alloca.
12497
12498 2014-09-03 Richard Biener <rguenther@suse.de>
12499
12500 * opts.c (default_options_optimization): Adjust
12501 max-combine-insns to 2 for -Og.
12502
12503 2014-09-03 Martin Jambor <mjambor@suse.cz>
12504
12505 PR ipa/62015
12506 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
12507 pass-trough jump functions correctly.
12508
12509 2014-09-03 Martin Jambor <mjambor@suse.cz>
12510
12511 PR ipa/61986
12512 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
12513 created replacements in ascending order of offsets.
12514 (known_aggs_to_agg_replacement_list): Likewise.
12515
12516 2014-09-03 Martin Liska <mliska@suse.cz>
12517
12518 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
12519 is set to set uninitialized value for vnresult.
12520
12521 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12522
12523 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
12524 for TARGET_MUST_PASS_IN_STACK.
12525
12526 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12527
12528 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
12529 for TARGET_ARG_PARTIAL_BYTES.
12530
12531 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12532
12533 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
12534 instructions for varargs implementation.
12535 (nds32_expand_epilogue): Emit stack adjustment instructions for
12536 varargs implementation.
12537
12538 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12539
12540 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
12541 optimization detection.
12542
12543 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12544
12545 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
12546 arguments.
12547 (nds32_function_arg_advance): Deal with nameless arguments.
12548 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
12549 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
12550 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
12551
12552 2014-09-03 Richard Biener <rguenther@suse.de>
12553
12554 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
12555 (struct bb_bitmap_sets): Remove deferred member.
12556 (BB_DEFERRED): Remove.
12557 (defer_or_phi_translate_block): Remove.
12558 (compute_antic_aux): Remove deferring of blocks, assert
12559 proper iteration order.
12560 (compute_antic): Do not set BB_DEFERRED.
12561 (eliminate): Allocate el_avail of proper size initially.
12562
12563 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12564
12565 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
12566 according to the value of crtl->args.pretend_args_size.
12567
12568 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12569
12570 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
12571 varargs information.
12572
12573 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12574
12575 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
12576 implementation for TARGET_SETUP_INCOMING_VARARGS.
12577 (nds32_strict_argument_naming): Refine comment.
12578 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
12579 Define for future implementation.
12580
12581 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
12582
12583 * config/i386/adxintrin.h (_subborrow_u32): New.
12584 (_addcarry_u32): Ditto.
12585 (_subborrow_u64): Ditto.
12586 (_addcarry_u64): Ditto.
12587 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
12588 IX86_BUILTIN_SBB64.
12589 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
12590 __builtin_ia32_sbb_u64
12591
12592 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12593
12594 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
12595 GPR-specific stuff.
12596 (nds32_function_arg_advance): Likewise.
12597 (nds32_init_cumulative_args): Likewise.
12598 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
12599 (NDS32_FIRST_GPR_REGNUM): Define.
12600 (NDS32_LAST_GPR_REGNUM): Define.
12601 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
12602 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
12603 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
12604 (machine_function): Use GRP-specific stuff.
12605
12606 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12607
12608 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
12609 (nds32_expand_epilogue): Likewise.
12610 (nds32_expand_prologue_v3push): Likewise.
12611 (nds32_expand_epilogue_v3pop): Likewise.
12612
12613 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12614
12615 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
12616 v3push/v3pop for variadic function.
12617 * config/nds32/nds32.md (prologue, epilogue): Likewise.
12618
12619 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12620
12621 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
12622 Check rtx for varargs implementation.
12623 (nds32_output_stack_pop): Likewise.
12624 * config/nds32/nds32-protos.h: Have a rtx argument for
12625 nds32_output_stack_push and nds32_output_stack_pop.
12626 * config/nds32/nds32.md: Likewise.
12627
12628 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12629
12630 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
12631 to check if FUNC is an interrupt service routine.
12632 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
12633
12634 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12635
12636 * config/nds32/nds32.h (machine_function): Add some fields for variadic
12637 arguments implementation.
12638
12639 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12640
12641 * config/nds32/nds32-predicates.c
12642 (nds32_valid_stack_push_pop): Rename to ...
12643 (nds32_valid_stack_push_pop_p): ... this.
12644 * config/nds32/nds32-protos.h: Likewise.
12645 * config/nds32/predicates.md: Likewise.
12646
12647 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12648
12649 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
12650 (nds32_emit_stack_v3push): ... this.
12651 (nds32_gen_stack_v3pop): Rename to ...
12652 (nds32_emit_stack_v3pop): ... this and consider CFA restore
12653 information.
12654
12655 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12656
12657 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
12658 (nds32_emit_stack_push_multiple): ... this.
12659 (nds32_gen_stack_pop_multiple): Rename to ...
12660 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
12661 information.
12662
12663 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12664
12665 PR target/61078
12666 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
12667 and add a second splitter to handle the remaining cases.
12668
12669 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
12670
12671 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
12672
12673 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
12674
12675 * cfgexpand.c (label_rtx_for_bb): Change type to
12676 hash_map<basic_block, rtx_code_label *> *.
12677 (expand_gimple_basic_block): Adjust.
12678 (pass_expand::execute): Likewise.
12679
12680 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
12681
12682 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
12683 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
12684 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
12685 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
12686 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
12687 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
12688 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
12689 of rtx.
12690
12691 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
12692
12693 * alloc-pool.c: Include coretypes.h.
12694 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
12695 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
12696 hash_set instead of htab.
12697 * ggc-page.c (in_gc): New variable.
12698 (ggc_free): Do nothing if a collection is taking place.
12699 (ggc_collect): Set in_gc appropriately.
12700 * ggc.h (gt_ggc_mx(const char *)): New function.
12701 (gt_pch_nx(const char *)): Likewise.
12702 (gt_ggc_mx(int)): Likewise.
12703 (gt_pch_nx(int)): Likewise.
12704 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
12705 (hash_map::hash_entry::pch_nx): Likewise.
12706 (hash_map::hash_entry::pch_nx_helper): Likewise.
12707 (hash_map::hash_map): Adjust.
12708 (hash_map::create_ggc): New function.
12709 (gt_ggc_mx): Likewise.
12710 (gt_pch_nx): Likewise.
12711 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
12712 (default_hashset_traits::pch_nx): Likewise.
12713 (hash_set::hash_entry::ggc_mx): Likewise.
12714 (hash_set::hash_entry::pch_nx): Likewise.
12715 (hash_set::hash_entry::pch_nx_helper): Likewise.
12716 (hash_set::hash_set): Adjust.
12717 (hash_set::create_ggc): New function.
12718 (hash_set::elements): Likewise.
12719 (gt_ggc_mx): Likewise.
12720 (gt_pch_nx): Likewise.
12721 * hash-table.h (hash_table::hash_table): Adjust.
12722 (hash_table::m_ggc): New member.
12723 (hash_table::~hash_table): Adjust.
12724 (hash_table::expand): Likewise.
12725 (hash_table::empty): Likewise.
12726 (gt_ggc_mx): New function.
12727 (hashtab_entry_note_pointers): Likewise.
12728 (gt_pch_nx): Likewise.
12729
12730 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12731
12732 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
12733 built-in definition.
12734 (XVCVUXDDP_SCALE): Likewise.
12735 (XVCVDPSXDS_SCALE): Likewise.
12736 (XVCVDPUXDS_SCALE): Likewise.
12737 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12738 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
12739 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
12740 VSX_BUILTIN_XVCVDPUXDS_SCALE.
12741 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
12742 prototype.
12743 * config/rs6000/rs6000.c (real.h): New include.
12744 (rs6000_scale_v2df): New function.
12745 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
12746 (UNSPEC_VSX_XVCVUXDDP): Likewise.
12747 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
12748 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
12749 (vsx_xvcvsxddp_scale): New define_expand.
12750 (vsx_xvcvsxddp): New define_insn.
12751 (vsx_xvcvuxddp_scale): New define_expand.
12752 (vsx_xvcvuxddp): New define_insn.
12753 (vsx_xvcvdpsxds_scale): New define_expand.
12754 (vsx_xvcvdpsxds): New define_insn.
12755 (vsx_xvcvdpuxds_scale): New define_expand.
12756 (vsx_xvcvdpuxds): New define_insn.
12757 * doc/extend.texi (vec_ctf): Add new prototypes.
12758 (vec_cts): Likewise.
12759 (vec_ctu): Likewise.
12760 (vec_splat): Likewise.
12761 (vec_div): Likewise.
12762 (vec_mul): Likewise.
12763
12764 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12765
12766 PR target/62275
12767 * config/arm/neon.md
12768 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
12769 <v_cmp_result>): New pattern.
12770 * config/arm/iterators.md (NEON_VCVT): New int iterator.
12771 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
12772 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
12773 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
12774 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
12775 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
12776
12777 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12778
12779 PR target/62275
12780 * config/arm/iterators.md (FIXUORS): New code iterator.
12781 (VCVT): New int iterator.
12782 (su_optab): New code attribute.
12783 (su): Likewise.
12784 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
12785
12786 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12787
12788 * config/aarch64/predicates.md (aarch64_comparison_operation):
12789 New special predicate.
12790 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
12791 aarch64_comparison_operation instead of matching an operator.
12792 Update operand numbers.
12793 (csinc3<mode>_insn): Likewise.
12794 (*csinv3<mode>_insn): Likewise.
12795 (*csneg3<mode>_insn): Likewise.
12796 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
12797 * config/aarch64/aarch64.c (aarch64_get_condition_code):
12798 Return -1 instead of aborting on invalid condition codes.
12799 (aarch64_print_operand): Update aarch64_get_condition_code callsites
12800 to assert that the returned condition code is valid.
12801 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
12802
12803 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
12804
12805 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
12806 tree.def, and gimple.def
12807
12808 2014-09-02 Jakub Jelinek <jakub@redhat.com>
12809 Balaji V. Iyer <balaji.v.iyer@intel.com>
12810 Igor Zamyatin <igor.zamyatin@intel.com>
12811
12812 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
12813 (__cilkrts_cilk_for_64): Likewise.
12814 * cilk-common.c (declare_cilk_for_builtin): New function.
12815 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
12816 __cilkrts_cilk_for_64 bultins.
12817 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
12818 CILK_TI_F_LOOP_64.
12819 (cilk_for_32_fndecl): New define.
12820 (cilk_for_64_fndecl): Likewise.
12821 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
12822 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
12823 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
12824 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
12825 GF_OMP_FOR_COMBINED_INTO.
12826 * gimplify.c (gimplify_scan_omp_clauses): Added
12827 OMP_CLAUSE__CILK_FOR_COUNT_ case.
12828 (gimplify_adjust_omp_clauses): Ditto.
12829 (gimplify_omp_for): Added CILK_FOR case.
12830 (gimplify_expr): Ditto.
12831 * omp-low.c: Include cilk.h.
12832 (extract_omp_for_data): Set appropriate kind for
12833 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
12834 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
12835 (create_omp_child_function_name): Added second argument to handle
12836 cilk_for case.
12837 (cilk_for_check_loop_diff_type): New function.
12838 (expand_cilk_for_call): Likewise.
12839 (expand_cilk_for): Likewise.
12840 (create_omp_child_function): Set cilk_for_count; handle the cases when
12841 it is true; call create_omp_child_function_name with second argument.
12842 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
12843 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
12844 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
12845 * tree-nested.c (convert_nonlocal_omp_clauses): Added
12846 OMP_CLAUSE__CILK_FOR_COUNT_ case.
12847 (convert_local_omp_clauses): Ditto.
12848 * tree-pretty-print.c (dump_omp_clause): Added
12849 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
12850 (dump_generic_node): Added CILK_FOR case.
12851 * tree.c (omp_clause_num_ops): New element
12852 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
12853 (omp_clause_code_name): New element _Cilk_for_count_.
12854 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
12855 * tree.def: Add tree code for CILK_FOR.
12856
12857 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
12858
12859 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
12860 (ppc403-compare): Add "exts with dot" case.
12861 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
12862 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
12863 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
12864 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
12865 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
12866 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
12867 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
12868 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
12869 cell-cmp-microcoded): Similarly.
12870 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
12871 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
12872 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
12873 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
12874 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
12875 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
12876 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
12877 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
12878 (power6-compare): Add "exts with dot" case.
12879 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
12880 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
12881 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
12882
12883 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
12884 if avoiding Cell microcode.
12885 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
12886 (is_cracked_insn): Ditto.
12887 (insn_must_be_first_in_group): Ditto.
12888 * config/rs6000/rs6000.md (dot): Adjust comment.
12889 (cell_micro): Handle exts+dot.
12890 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
12891 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
12892 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
12893 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
12894 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
12895 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
12896 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
12897
12898 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
12899
12900 * config/rs6000/rs6000.md (QHSI): Delete.
12901 (EXTQI, EXTHI, EXTSI): New mode iterators.
12902 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
12903 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
12904 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
12905 9 anonymous instructions, and 8 splitters): Delete.
12906 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
12907 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
12908 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
12909 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
12910 *zero_extendsi<mode>2_dot2): New.
12911
12912 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
12913
12914 * config/rs6000/rs6000.md (any_extend): New code iterator.
12915 (u, su): New code attributes.
12916 (dmode, DMODE): New mode attributes.
12917 (<su>mul<mode>3_highpart): New.
12918 (*<su>mul<mode>3_highpart): New.
12919 (<su>mulsi3_highpart_le): New.
12920 (<su>muldi3_highpart_le): New.
12921 (<su>mulsi3_highpart_64): New.
12922 (<u>mul<mode><dmode>3): New.
12923 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
12924 splitters): Delete.
12925 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
12926 splitters): Delete.
12927
12928 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
12929
12930 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
12931 *mulsi3_internal2, and two splitters): Delete.
12932 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
12933 Delete.
12934 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
12935
12936 2014-09-02 Richard Biener <rguenther@suse.de>
12937
12938 PR tree-optimization/62695
12939 * tree-ssa-structalias.c (find_func_clobbers): Add missing
12940 vector truncate.
12941
12942 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
12943
12944 PR target/62312
12945 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
12946
12947 2014-09-01 Andi Kleen <ak@linux.intel.com>
12948
12949 * file-find.c (add_prefix_begin): Add.
12950 (do_add_prefix): Rename from add_prefix with first argument.
12951 (add_prefix): Add new wrapper.
12952 * file-find.h (add_prefix_begin): Add.
12953 * gcc-ar.c (main): Support -B option.
12954
12955 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12956
12957 * genemit.c: Include dumpfile.h.
12958 (gen_split): Print name of splitter function to dump file.
12959
12960 2014-09-01 Richard Biener <rguenther@suse.de>
12961
12962 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
12963 Use stack auto_vecs for constraint expressions.
12964 (find_func_aliases_for_call): Likewise.
12965 (find_func_aliases): Likewise.
12966 (find_func_clobbers): Likewise.
12967
12968 2014-09-01 Richard Biener <rguenther@suse.de>
12969
12970 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
12971 operands vector in most cases. Remove redundant code.
12972
12973 2014-09-01 Olivier Hainque <hainque@adacore.com>
12974
12975 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
12976 $WIND_BASE instead of designating a harcoded arbitrary home dir.
12977 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
12978
12979 2014-09-01 Richard Biener <rguenther@suse.de>
12980
12981 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
12982 copy_reference_ops_from_call, vn_nary_op_compute_hash,
12983 vn_reference_compute_hash, vn_reference_insert): Remove.
12984 (vn_reference_lookup_call): New function.
12985 * tree-ssa-sccvn.c (vn_reference_compute_hash,
12986 copy_reference_ops_from_ref, copy_reference_ops_from_call,
12987 vn_reference_insert, vn_nary_op_compute_hash): Make static.
12988 (create_reference_ops_from_call): Remove.
12989 (vn_reference_lookup_3): Properly update shared_lookup_references.
12990 (vn_reference_lookup_pieces): Assert that we updated
12991 shared_lookup_references properly.
12992 (vn_reference_lookup): Likewise.
12993 (vn_reference_lookup_call): New function.
12994 (visit_reference_op_call): Use it. Avoid re-building the
12995 reference ops.
12996 (visit_reference_op_load): Remove redundant lookup.
12997 (visit_reference_op_store): Perform special tail-merging work
12998 only when possibly doing tail-merging.
12999 (visit_use): Likewise.
13000 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
13001
13002 2014-09-01 Jakub Jelinek <jakub@redhat.com>
13003
13004 PR target/62025
13005 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
13006 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
13007 (find_inc): Revert 2014-08-13 change.
13008
13009 2014-09-01 Marek Polacek <polacek@redhat.com>
13010
13011 PR middle-end/61903
13012 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
13013 Change the type of V to unsigned HOST_WIDE_INT.
13014
13015 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
13016
13017 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
13018 the size of byte markers.
13019 (do_shift_rotate): Fix confusion between host, target and marker byte
13020 size.
13021 (verify_symbolic_number_p): Likewise.
13022 (find_bswap_or_nop_1): Likewise.
13023 (find_bswap_or_nop): Likewise.
13024
13025 2014-09-01 Olivier Hainque <hainque@adacore.com>
13026
13027 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
13028 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
13029
13030 2014-09-01 Jakub Jelinek <jakub@redhat.com>
13031
13032 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
13033 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
13034 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
13035
13036 2014-09-01 Yury Gribov <y.gribov@samsung.com>
13037
13038 PR sanitizer/61897
13039 PR sanitizer/62140
13040 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
13041 (build_check_stmt): Likewise.
13042 (instrument_strlen_call): Likewise.
13043 (asan_expand_check_ifn): Likewise and fix types.
13044 (maybe_cast_to_ptrmode): New function.
13045
13046 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13047
13048 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
13049
13050 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
13051
13052 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
13053
13054 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
13055
13056 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
13057 prefix to function labels when generating fast indirect calls.
13058
13059 2014-08-30 David Malcolm <dmalcolm@redhat.com>
13060
13061 PR bootstrap/62304
13062
13063 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
13064 param back from rtx_insn * to rtx. Rename param from "label" to
13065 "label_or_return", reintroducing "label" as an rtx_insn * after
13066 we've ensured it's not a RETURN.
13067 (first_active_target_insn): Likewise for return type and param;
13068 add a checked cast to rtx_insn * once we've ensured "insn" is not
13069 a RETURN.
13070 (steal_delay_list_from_target): Convert param "pnew_thread" back
13071 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
13072 with JUMP_LABEL.
13073 (own_thread_p): Convert param "thread" back from an rtx_insn * to
13074 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
13075 cast once we've established we're not dealing with a RETURN,
13076 renaming subsequent uses of "thread" to "thread_insn".
13077 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
13078 to JUMP_LABEL.
13079 (follow_jumps): Convert return type and param "label" from
13080 rtx_insn * back to rtx. Move initialization of "value" to after
13081 the handling for ANY_RETURN_P, adding a checked cast there to
13082 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
13083 rename to "this_label_or_return", reintroducing "this_label" as
13084 an rtx_insn * once we've handled the case where it could be an
13085 ANY_RETURN_P.
13086 (fill_slots_from_thread): Rename param "thread" to
13087 "thread_or_return", converting from an rtx_insn * back to an rtx.
13088 Reintroduce name "thread" as an rtx_insn * local with a checked
13089 cast once we've handled the case of it being an ANY_RETURN_P.
13090 Convert local "new_thread" from an rtx_insn * back to an rtx.
13091 Add a checked cast when assigning to "trial" from "new_thread".
13092 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
13093 checked cast to rtx_insn * from "new_thread" when invoking
13094 get_label_before.
13095 (fill_eager_delay_slots): Convert locals "target_label",
13096 "insn_at_target" from rtx_insn * back to rtx.
13097 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
13098 (relax_delay_slots): Convert locals "trial", "target_label" from
13099 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
13100 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
13101 invoking update_block.
13102 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
13103 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
13104
13105 * resource.h (mark_target_live_regs): Undo erroneous conversion
13106 of second param of r214693, converting it back from rtx_insn * to
13107 rtx, since it could be a RETURN.
13108
13109 * resource.c (find_dead_or_set_registers): Similarly, convert
13110 param "jump_target" back from an rtx_insn ** to an rtx *, as we
13111 could be writing back a RETURN. Rename local rtx_insn * "next" to
13112 "next_insn", and introduce "lab_or_return" as a local rtx,
13113 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
13114 (mark_target_live_regs): Undo erroneous conversion
13115 of second param of r214693, converting it back from rtx_insn * to
13116 rtx, since it could be a RETURN. Rename it from "target" to
13117 "target_maybe_return", reintroducing the name "target" as a local
13118 rtx_insn * with a checked cast, after we've handled the case of
13119 ANY_RETURN_P.
13120
13121 2014-08-29 DJ Delorie <dj@redhat.com>
13122
13123 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
13124 pointer size up to a power of two.
13125 * defaults.h (DWARF2_ADDR_SIZE): Round up.
13126 (POINTER_SIZE_UNITS): New, rounded up value.
13127 * dwarf2asm.c (size_of_encoded_value): Use it.
13128 (dw2_output_indirect_constant_1): Likewise.
13129 * expmed.c (init_expmed_one_conv): We now know the sizes of
13130 partial int modes.
13131 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
13132 * optabs.c (expand_float): Use precision, not size.
13133 (expand_fix): Likewise.
13134 * simplify-rtx (simplify_unary_operation_1): Likewise.
13135 * tree-dfa.c (get_ref_base_and_extent): Likewise.
13136 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
13137 (default_assemble_integer) Likewise.
13138 (dump_tm_clone_pairs): Likewise.
13139 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
13140 * var-tracking.c (adjust_mems): Allow partial-int modes also.
13141 (prepare_call_arguments): Likewise.
13142 * stor-layout.c (finalize_type_size): Preserve precision.
13143 (layout_type): Use precision, not size.
13144
13145 * expr.c (convert_move): If the target has an explicit converter,
13146 use it.
13147
13148 2014-08-29 David Malcolm <dmalcolm@redhat.com>
13149
13150 * gdbinit.in: Skip various inline functions in rtl.h when
13151 stepping.
13152
13153 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
13154
13155 PR bootstrap/62301
13156 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
13157
13158 2014-08-29 Richard Biener <rguenther@suse.de>
13159
13160 PR tree-optimization/62291
13161 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
13162 exactly the vector size needed and use quick_push.
13163 (phi_translate_1): Adjust comment.
13164 (valid_in_sets): Remove block argument and remove pointless
13165 checking of NAMEs.
13166 (dependent_clean): Adjust for removal of block argument.
13167 (clean): Likewise.
13168 (compute_antic_aux): Likewise.
13169 (compute_partial_antic_aux): Likewise.
13170
13171 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
13172 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13173 Anna Tikhonova <anna.tikhonova@intel.com>
13174 Ilya Tocar <ilya.tocar@intel.com>
13175 Andrey Turetskiy <andrey.turetskiy@intel.com>
13176 Ilya Verbin <ilya.verbin@intel.com>
13177 Kirill Yukhin <kirill.yukhin@intel.com>
13178 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13179
13180 * config/i386/sse.md
13181 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
13182 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
13183 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
13184 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
13185
13186 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
13187 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13188 Anna Tikhonova <anna.tikhonova@intel.com>
13189 Ilya Tocar <ilya.tocar@intel.com>
13190 Andrey Turetskiy <andrey.turetskiy@intel.com>
13191 Ilya Verbin <ilya.verbin@intel.com>
13192 Kirill Yukhin <kirill.yukhin@intel.com>
13193 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13194
13195 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
13196 * config/i386/sse.md
13197 (define_mode_iterator VI4_128_8_256): New.
13198 (define_mode_iterator VI2_128_4_256): Ditto.
13199 (define_mode_iterator PMOV_DST_MODE): Rename into
13200 (define_mode_iterator PMOV_DST_MODE_1): this.
13201 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
13202 Use PMOV_DST_MODE_1 mode iterator.
13203 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
13204 Ditto.
13205 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
13206 Ditto.
13207 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
13208 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
13209 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
13210 (define_mode_iterator PMOV_DST_MODE_2): New.
13211 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
13212 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
13213 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
13214 Ditto.
13215 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
13216 (define_mode_attr pmov_dst_3): Ditto.
13217 (define_mode_attr pmov_dst_zeroed_3): Ditto.
13218 (define_mode_attr pmov_suff_3): Ditto.
13219 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
13220 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
13221 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
13222 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
13223 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
13224 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
13225 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
13226 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
13227 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
13228 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
13229 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
13230 (define_mode_attr pmov_dst_4): Ditto.
13231 (define_mode_attr pmov_dst_zeroed_4): Ditto.
13232 (define_mode_attr pmov_suff_4): Ditto.
13233 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
13234 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
13235 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
13236 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
13237 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
13238 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
13239 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
13240 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
13241 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
13242 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
13243 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
13244
13245 2014-08-29 Richard Biener <rguenther@suse.de>
13246
13247 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
13248 NON_LVALUE_EXPR in gimple.
13249
13250 2014-08-29 Richard Biener <rguenther@suse.de>
13251
13252 PR middle-end/62292
13253 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
13254 from previous refactoring.
13255 (gimple_fold_builtin_strncpy): Likewise.
13256
13257 2014-08-29 David Malcolm <dmalcolm@redhat.com>
13258
13259 PR bootstrap/62300
13260 * function.c (assign_parm_setup_reg): Remove erroneous checked
13261 cast to rtx_insn * on result of gen_extend_insn in favor of
13262 introducing a new local rtx "pat".
13263
13264 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13265
13266 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
13267 to silence warning.
13268 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
13269
13270 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13271
13272 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
13273 (next_insn): Likewise.
13274 * emit-rtl.c (next_insn): Likewise.
13275 (previous_insn): Likewise.
13276 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
13277 "insn" and "next" from rtx to rtx_insn *.
13278 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
13279 "insn", "insn1", "vliw_start", "prologue_end_note",
13280 "last_insn_in_packet".
13281
13282 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13283
13284 * shrink-wrap.h (active_insn_between): Strengthen both params from
13285 rtx to rtx_insn *.
13286 * function.c (active_insn_between): Likewise.
13287
13288 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13289
13290 * genattr.c (main): When writing out insn-attr.h, strengthen param
13291 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
13292 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
13293 writing out the definition of dfa_clear_single_insn_cache to the
13294 generated insn-automata.c
13295
13296 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13297
13298 * resource.h (clear_hashed_info_for_insn): Strengthen param from
13299 rtx to rtx_insn *.
13300 (incr_ticks_for_insn): Likewise.
13301 (init_resource_info): Likewise.
13302
13303 * resource.c (init_resource_info): Likewise.
13304 (clear_hashed_info_for_insn): Likewise.
13305 (incr_ticks_for_insn): Likewise.
13306
13307 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
13308 rtx to rtx_insn *.
13309 (steal_delay_list_from_target): Use methods of "seq".
13310 (try_merge_delay_insns): Use methods of "merged_insns".
13311 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
13312 (reorg_redirect_jump): Likewise for param "jump".
13313
13314 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13315
13316 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
13317 rtx to rtx_insn *.
13318 * config/s390/s390.c (s390_split_branches): Eliminate top-level
13319 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
13320 "set_insn".
13321 (s390_mainpool_finish): In three places, split out a local rtx
13322 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
13323 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
13324 and split another local rtx "insn" out into rtx "pat" and
13325 rtx_insn * "insn".
13326 * config/sh/sh.c (output_branchy_insn): Rather than working
13327 directly on operands[9], introduce local rtx_code_label *
13328 variables named "lab" in two places, working on them, and then
13329 assigning them to operands[9], so that the intervening operations
13330 are known by the type system to be on insns.
13331
13332 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13333
13334 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
13335 const rtx_insn *.
13336
13337 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
13338 in invocation of INSN_HAS_LOCATION.
13339
13340 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13341
13342 * config/rs6000/altivec.h (vec_xl): New #define.
13343 (vec_xst): Likewise.
13344 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
13345 (XXSPLTD_V2DI): Likewise.
13346 (DIV_V2DI): Likewise.
13347 (UDIV_V2DI): Likewise.
13348 (MUL_V2DI): Likewise.
13349 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13350 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
13351 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
13352 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
13353 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
13354 (UNSPEC_VSX_DIVSD): Likewise.
13355 (UNSPEC_VSX_DIVUD): Likewise.
13356 (UNSPEC_VSX_MULSD): Likewise.
13357 (vsx_mul_v2di): New insn-and-split.
13358 (vsx_div_v2di): Likewise.
13359 (vsx_udiv_v2di): Likewise.
13360 (vsx_xxspltd_<mode>): New insn.
13361
13362 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13363
13364 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
13365 NEXT_INSN.
13366 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
13367 (NEXT_INSN): Likewise.
13368 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
13369 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
13370 const rtx_insn *.
13371 (no_labels_between_p): Likewise for both params.
13372
13373 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
13374 cast when using NEXT_INSN on operands[2].
13375 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
13376 "insn" from rtx to rtx_insn *, adding a checked cast.
13377 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
13378 rtx_insn *.
13379 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
13380 for third param.
13381 (arc_text_label): Likewise for param "insn".
13382 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
13383 "insn".
13384 (arc_ccfsm_record_condition): Likewise for param "jump".
13385 (arc_text_label): Likewise for local "label".
13386 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
13387 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
13388 a method for typesafety. Add a checked cast.
13389 * config/arc/constraints.md (Clb): Add a checked cast when getting
13390 the CODE_LABEL from a LABEL_REF.
13391 * config/arm/arm.c (require_pic_register): Strengthen locals
13392 "seq", "insn" from rtx to rtx_insn *.
13393 (create_fix_barrier): Likewise for locals "selected", "next".
13394 (thumb1_reorg): Likewise for locals "prev", "insn".
13395 (arm_expand_prologue): Likewise for local "last".
13396 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
13397 operands[0].
13398 (thumb2_output_casesi): Likewise for operands[2].
13399 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
13400 strengthen local "insn" from rtx to rtx_insn *.
13401 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
13402 type and param "insn".
13403 (find_prev_insn_start): Likewise.
13404 (hwloop_optimize): Likewise for locals "insn", "last_insn",
13405 "prev".
13406 (gen_one_bundle): Likewise for loal "t".
13407 (find_load): Likewise for param "insn".
13408 (workaround_speculation): Likewise for locals "insn", "next",
13409 "target", "next_tgt".
13410 * config/c6x/c6x.c (assign_reservations): Likewise for both params
13411 and for locals "insn", "within", "last".
13412 (count_unit_reqs): Likewise for params "head", "tail" and local
13413 "insn".
13414 (try_rename_operands): Likewise for params "head", "tail".
13415 (reshuffle_units): Likewise for locals "head", "tail", "insn".
13416 (struct c6x_sched_context): Likewise for fields
13417 "last_scheduled_insn", "last_scheduled_iter0".
13418 (init_sched_state): Replace NULL_RTX with NULL.
13419 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
13420 to rtx_insn *.
13421 (undo_split_delayed_nonbranch): Likewise for param and for local
13422 "prev".
13423 (conditionalize_after_sched): Likewise for local "insn".
13424 (bb_earliest_end_cycle): Likewise.
13425 (filter_insns_above): Likewise for locals "insn", "next".
13426 (hwloop_optimize): Remove redundant checked cast.
13427 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
13428 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
13429 NULL_RTX with NULL.
13430 (cris_simple_epilogue): Likewise.
13431 (cris_expand_prologue): Likewise.
13432 (cris_expand_epilogue): Likewise.
13433 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
13434 local "insn" from rtx to rtx_insn *.
13435 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
13436 (struct frv_packet_group): Likewise for the elements within array
13437 fields "insns", "sorted", and for field "nop".
13438 (frv_packet): Likewise for the elements within array field
13439 "insns".
13440 (frv_add_insn_to_packet): Likewise for param "insn".
13441 (frv_insert_nop_in_packet): Likewise for param "insn" and local
13442 "last".
13443 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
13444 (frv_sort_insn_group_1): Likewise for local "insn".
13445 (frv_optimize_membar_local): Likewise.
13446 (frv_align_label): Likewise for locals "x", "last", "barrier",
13447 "label".
13448 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
13449 local.
13450 (ia64_sched_init): Likewise for local "insn".
13451 (scheduled_good_insn): Likewise for param "last".
13452 (struct _ia64_sched_context): Likewise for field
13453 "last_scheduled_insn".
13454 (ia64_init_sched_context): Replace NULL_RTX with NULL.
13455 (struct bundle_state): Likewise for field "insn".
13456 (issue_nops_and_insn): Likewise for param "insn".
13457 (get_next_important_insn): Likewise for return type and both
13458 params.
13459 (ia64_add_bundle_selector_before): Likewise for param "insn".
13460 (bundling): Likewise for params "prev_head_insn", "tail" and
13461 locals "insn", "next_insn", "b". Eliminate top-level local rtx
13462 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
13463 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
13464 Strengthen final param from rtx to rtx_insn *.
13465 (iq2000_move_1word): Likewise for second param.
13466 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
13467 param "cur_insn" and local "next_insn".
13468 (iq2000_move_1word): Likewise for param "insn".
13469 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
13470 casts when using NEXT_INSN on operands[1].
13471 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
13472 "insn" from rtx to rtx_insn *.
13473 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
13474 "x", introducing local rtx_insn * "insn" for when working with the
13475 CODE_LABEL of the LABEL_REF.
13476 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
13477 rtx_insn *.
13478 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
13479 param.
13480 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
13481 type.
13482 (conditionalize_block): Likewise for return type and param.
13483 (mcore_is_dead): Likewise for param "first" and local "insn".
13484 (emit_new_cond_insn): Likewise for return type.
13485 (conditionalize_block): Likewise for return type, param, and
13486 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
13487 "newinsn".
13488 (conditionalize_optimization): Likewise for local "insn".
13489 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
13490 using NEXT_INSN.
13491 * config/microblaze/microblaze.md: Add checked casts when using
13492 NEXT_INSN.
13493 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
13494 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
13495 and rtx_insn * "insn".
13496 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
13497 checked cast when using NEXT_INSN on operands[2].
13498 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
13499 local "insn" from rtx to rtx_insn *.
13500 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
13501 Likewise.
13502 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
13503 Add a checked cast when using NEXT_INSN on operands[1].
13504 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
13505 rtx to rtx_insn *.
13506 (pa_output_cbranch): Likewise for final param.
13507 (pa_output_lbranch): Likewise for second param.
13508 (pa_output_bb): Likewise for third param.
13509 (pa_output_bvb): Likewise.
13510 (pa_output_dbra): Likewise for second param.
13511 (pa_output_movb): Likewise.
13512 (pa_output_parallel_movb): Likewise.
13513 (pa_output_parallel_addb): Likewise.
13514 (pa_output_millicode_call): Likewise for first param.
13515 (pa_output_mul_insn): Likewise for second param.
13516 (pa_output_div_insn): Likewise for third param.
13517 (pa_output_mod_insn): Likewise for second param.
13518 (pa_jump_in_call_delay): Likewise for param.
13519 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
13520 (pa_output_div_insn): Likewise.
13521 (pa_output_mod_insn): Likewise.
13522 (pa_output_cbranch): Likewise.
13523 (pa_output_lbranch): Likewise.
13524 (pa_output_bb): Likewise.
13525 (pa_output_bvb): Likewise.
13526 (pa_output_dbra): Likewise.
13527 (pa_output_movb): Likewise.
13528 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
13529 to simplify and for typesafety.
13530 (pa_output_call): Use method of rtx_sequence *.
13531 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
13532 (pa_jump_in_call_delay): Likewise.
13533 (pa_output_parallel_movb): Likewise.
13534 (pa_output_parallel_addb): Likewise.
13535 (pa_following_call): Likewise.
13536 (pa_combine_instructions): Likewise for locals "anchor",
13537 "floater".
13538 (pa_can_combine_p): Likewise for params "anchor", "floater" and
13539 locals "start", "end".
13540 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
13541 param "insn" and local "local_insn".
13542 (picochip_final_prescan_insn): Likewise for local "local_insn".
13543 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
13544 local "insn".
13545 (uses_TOC): Likewise.
13546 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
13547 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
13548 splitting out to more tightly-scoped locals, 3 as rtx and one as
13549 rtx_insn *.
13550 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
13551 to rtx_insn *.
13552 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
13553 where needed.
13554 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
13555 to rtx_insn *.
13556 (fixup_addr_diff_vecs): Likewise.
13557 (reg_unused_after): Likewise for param 2.
13558 (sh_can_redirect_branch): Likewise for both params.
13559 (check_use_sfunc_addr): Likewise for param 1.
13560 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
13561 (find_barrier): Likewise for local "last_got".
13562 (gen_block_redirect): Likewise for return type, param "jump" and
13563 locals "prev", "scan", "next", "insn".
13564 (struct far_branch): Likewise for fields "near_label",
13565 "insert_place", "far_label".
13566 (gen_far_branch): Likewise for local "jump".
13567 (fixup_addr_diff_vecs): Likewise for param "first" and locals
13568 "insn", "prev".
13569 (barrier_align): Likewise for param and for locals "prev", "x".
13570 Introduce local rtx_sequence * "prev_seq" and use insn method for
13571 typesafety and clarity.
13572 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
13573 (get_dest_uid): Likewise for local "dest".
13574 (split_branches): Likewise for locals "next", "beyond", "label",
13575 "block", "far_label". Add checked casts when assigning to
13576 bp->far_label and "far_label".
13577 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
13578 (sequence_insn_p): Likewise.
13579 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
13580 more loop-scoped rtx "insn" when walking LABEL_REFS.
13581 (sh_can_redirect_branch): Strengthen both params from rtx to
13582 rtx_insn *.
13583 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
13584 new local rtx_sequence * "seq" via a dyn_cast, and use a method
13585 for clarity and typesafety.
13586 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
13587 "insn" from rtx to rtx_insn *.
13588 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
13589 when using NEXT_INSN on the CODE_LABEL in operands[2].
13590 (define_insn "casesi_worker_2"): Likewise.
13591 (define_insn "casesi_shift_media"): Likewise.
13592 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
13593 operands[3].
13594 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
13595 Strengthen field "insn" from rtx to rtx_insn *.
13596 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
13597 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
13598 param "start_insn" and local "start_insn".
13599 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
13600 field "insn".
13601 (find_set_of_reg_bb): Likewise for param "insn".
13602 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
13603 (trace_reg_uses): Likewise for param "start_insn".
13604 (sh_treg_combine::cbranch_trace): Likewise for field
13605 "cbranch_insn".
13606 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
13607 param "insn".
13608 (sh_treg_combine::record_set_of_reg): Likewise for param
13609 "start_insn" and local "i".
13610 (sh_treg_combine::can_remove_cstore): Likewise for local
13611 "prev_insn".
13612 (sh_treg_combine::try_optimize_cbranch): Likewise for param
13613 "insn".
13614 (sh_treg_combine::execute): Likewise for local "i".
13615 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
13616 param.
13617 (sparc_check_64): Likewise for second param.
13618 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
13619 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
13620 dyn_cast, using its insn method for typesafety and clarity.
13621 (empty_delay_slot): Strengthen param "insn" from rtx to
13622 rtx_insn *.
13623 (set_extends): Likewise.
13624 (sparc_check_64): Likewise.
13625 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
13626 for locals "seq", "last_insn".
13627 (combine_bnp): Likewise for param "insn".
13628 (xstormy16_reorg): Likewise for local "insn".
13629 * config/v850/v850.c (substitute_ep_register): Likewise for params
13630 "first_insn", "last_insn" and local "insn".
13631 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
13632 elements of "regs" array, and local "insn".
13633 * except.c (emit_note_eh_region_end): Likewise for param "insn".
13634 * final.c (final_sequence): Strengthen this global from rtx to
13635 rtx_sequence *.
13636 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
13637 rtx_insn *.
13638 (final_scan_insn): Update assignment to "final_sequence" to be
13639 from "seq", the cast version of "body", for type-safety.
13640 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
13641 "insns" from rtx to rtx_insn *.
13642 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
13643 * genattr.c (main): When writing out generated insn-attr.h,
13644 strengthen params 1 and 3 of eligible_for_delay,
13645 eligible_for_annul_true, eligible_for_annul_false from rtx to
13646 rtx_insn *.
13647 * genattrtab.c (write_eligible_delay): Likewise when writing out
13648 generated insn-attrtab.c; also local "insn" the generated
13649 functions.
13650 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
13651 to rtx_insn *.
13652 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
13653 "start_label" from rtx to rtx_insn *.
13654 * ira.c (decrease_live_ranges_number): Likewise for local "p".
13655 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
13656 "insns" and local "insn".
13657 (validate_equiv_mem): Likewise for param "start" and local "insn".
13658 (memref_used_between_p): Likewise for params "start", "end" and
13659 local "insn".
13660 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
13661 final param.
13662 * loop-doloop.c (doloop_optimize): Within region guarded by
13663 INSN_P (doloop_pat), introduce a new local rtx_insn *
13664 "doloop_insn" via a checked cast, and use it for typesafety,
13665 eventually writing the value back into doloop_pat.
13666 * output.h (final_sequence): Strengthen this global from rtx to
13667 rtx_sequence *.
13668 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
13669 reintroducing "insn" as an rtx_insn * via a checked cast.
13670 Strengthen param "attempt" and local "new_insn"from rtx to
13671 rtx_insn *.
13672 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
13673 to rtx_insn *.
13674 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
13675 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
13676 "p" in favor of more tightly-scoped replacements, sometimes rtx
13677 and sometimes rtx_insn *, as appropriate.
13678 (delete_output_reload): Eliminate top-level rtx "i1", splitting
13679 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
13680 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
13681 local "trial" from rtx to rtx_insn *.
13682 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
13683 rtx to rtx_insn *. Strenghten local "pat" from rtx to
13684 rtx_sequence * and use methods for clarity and typesafety.
13685 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
13686 rtx to rtx_insn *. Strenghten local "li" from rtx to
13687 rtx_insn_list * and use its methods for clarity and typesafety.
13688 (steal_delay_list_from_target): Strengthen param "insn" from rtx
13689 to rtx_insn *.
13690 (steal_delay_list_from_fallthrough): Likewise.
13691 (try_merge_delay_insns): Likewise for param "thread" and locals
13692 "trial", "next_trial", "delay_insn".
13693 (redundant_insn): Likewise for param "target" and local "trial".
13694 (own_thread_p): Likewise for param "thread" and locals
13695 "active_insn", "insn".
13696 (get_label_before): Likewise for param "insn".
13697 (fill_simple_delay_slots): Likewise for local "new_label"; use
13698 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
13699 (label_before_next_insn): Strengthen return type and local "insn"
13700 from rtx to rtx_insn *.
13701 (relax_delay_slots): Likewise for locals "other", "tmp".
13702 (make_return_insns): Likewise for param "first" and locals "insn",
13703 "jump_insn", "prev". Move declaration of "pat" to its assignment
13704 and strengthen from rtx to rtx_sequence *. Use its methods for
13705 clarity and typesafety.
13706 * rtlanal.c (no_labels_between_p): Strengthen params from
13707 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
13708 rtx_insn *.
13709 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
13710 from const_rtx to const rtx_insn *.
13711 (reg_set_between_p): Rename param "from_insn" to
13712 "uncast_from_insn", and reintroduce "from_insn" as a
13713 const rtx_insn * via a checked cast.
13714 (modified_between_p): Likewise for param "start" as "uncast_start".
13715 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
13716 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
13717 "tmp", head" from rtx to rtx_insn *.
13718 (recompute_rev_top_order): Likewise for local "insn".
13719 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
13720 * store-motion.c (build_store_vectors): Likewise for local "insn".
13721 Strengthen local "st" from rtx to rtx_insn_list * and use methods
13722 for clarity and typesafety.
13723 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
13724 rtx to rtx_insn *.
13725 (computation_cost): Likewise for local "seq".
13726 (get_address_cost): Likewise.
13727
13728 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13729
13730 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
13731 const rtx_insn *.
13732 (label_is_jump_target_p): Likewise for second param.
13733
13734 * rtlanal.c (tablejump_p): Likewise for param "insn".
13735 (label_is_jump_target_p): Likewise for param "jump_insn".
13736
13737 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13738
13739 * rtl.h (find_first_parameter_load): Strengthen return type and
13740 both params from rtx to rtx_insn *.
13741 * rtlanal.c (find_first_parameter_load): Strengthen return type,
13742 both params and locals "before", "first_set" from rtx to
13743 rtx_insn *. Remove now-redundant cast.
13744 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
13745
13746 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13747
13748 * rtl.h (find_last_value): Delete.
13749 * rtlanal.c (find_last_value): Delete.
13750
13751 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13752
13753 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
13754 from rtx to rtx_insn *.
13755 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
13756 rtx "note" with new local rtx_insn * "new_head" when calculating
13757 head insn of new basic block.
13758 * combine.c (combine_split_insns): Strengthen return type and local
13759 "ret" from rtx to rtx_insn *.
13760 (likely_spilled_retval_p): Likewise for locals "use" and "p".
13761 (try_combine): Eliminate local "m_split", splitting into new
13762 locals "m_split_insn" and "m_split_pat".
13763 (find_split_point): Strengthen local "seq" from rtx into
13764 rtx_insn *.
13765 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
13766 locals "label", "branch".
13767 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
13768 for local "insn".
13769 (define_expand "umulsi3_highpart"): Likewise for local "insn".
13770 * dse.c (note_add_store_info): Likewise for fields "first",
13771 "current".
13772 (note_add_store): Likewise for local "insn".
13773 (emit_inc_dec_insn_before): Likewise for locals "insn",
13774 "new_insn", "cur".
13775 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
13776 (replace_read): Likewise for locals "insns", "this_insn".
13777 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
13778 (notice_eh_throw): Likewise for param "insn".
13779 (before_next_cfi_note): Likewise for return type, param, and local
13780 "prev".
13781 (connect_traces): Likewise for local "note".
13782 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
13783 (verify_rtl_sharing): Likewise.
13784 (unshare_all_rtl_in_chain): Likewise for param "insn".
13785 (get_first_nonnote_insn): Likewise for local "insn".
13786 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
13787 "seq" and use its methods to clarify things.
13788 (next_insn): Strengthen return type from rtx to rtx_insn *.
13789 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
13790 local rtx_insn * using a checked cast, dropping a checked cast
13791 made redundant by this change. Use a cast to and method of
13792 rtx_sequence to clarify the code.
13793 (previous_insn): Rename param "insn" to "uncast_insn" and
13794 reintroduce "insn" as a local rtx_insn * using a checked cast,
13795 dropping a checked cast made redundant by this change. Use a cast
13796 to and method of rtx_sequence to clarify the code.
13797 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
13798 reintroduce "insn" as a local rtx_insn * using a checked cast,
13799 dropping a checked cast made redundant by this change.
13800 (next_nonnote_insn_bb): Likewise.
13801 (prev_nonnote_insn): Likewise.
13802 (prev_nonnote_insn_bb): Likewise.
13803 (next_nondebug_insn): Likewise.
13804 (prev_nondebug_insn): Likewise.
13805 (next_nonnote_nondebug_insn): Likewise.
13806 (prev_nonnote_nondebug_insn): Likewise.
13807 (next_real_insn): Likewise.
13808 (prev_real_insn): Likewise.
13809 (next_active_insn): Likewise.
13810 (prev_active_insn): Likewise.
13811 (next_cc0_user): Likewise. Use rtx_sequence and a method for
13812 clarity.
13813 (prev_cc0_setter): Likewise.
13814 (try_split): Rename param "trial" to "uncast_trial" and
13815 reintroduce "insn" as a local rtx_insn * using a checked cast,
13816 dropping checked casts made redundant by this change.
13817 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
13818 rtx to rtx_insn *.
13819 (remove_insn): Rename param "insn" to "uncast_insn" and
13820 reintroduce "insn" as a local rtx_insn * using a checked cast.
13821 (emit_pattern_after_setloc): Likewise for param "after", as
13822 "uncast_after".
13823 (emit_pattern_after): Likewise. Strengthen local "prev" from
13824 rtx to rtx_insn *.
13825 (emit_pattern_before_setloc): Rename param "before" to
13826 "uncast_before" and reintroduce "before" as a local rtx_insn *
13827 using a checked cast. Strengthen locals "first", "last" from
13828 rtx to rtx_insn *.
13829 (emit_pattern_before): Likewise rename/cast param "before" to
13830 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
13831 * except.c (copy_reg_eh_region_note_forward): Strengthen param
13832 "first" and local "insn" from rtx to rtx_insn *.
13833 (copy_reg_eh_region_note_backward): Likewise for param "last"
13834 and local "insn".
13835 * expr.c (fixup_args_size_notes): Rename param "last" to
13836 "uncast_last" and reintroduce "last" as a local rtx_insn *
13837 using a checked cast. Strengthen local "insn" from rtx to
13838 rtx_insn *.
13839 * function.c (set_insn_locations): Strengthen param "insn" from
13840 rtx to rtx_insn *.
13841 (record_insns): Likewise for param "insns" and local "tmp".
13842 (active_insn_between): Rename param "tail" to
13843 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
13844 using a checked cast.
13845 (thread_prologue_and_epilogue_insns): Split out top-level local
13846 rtx "seq" into three different rtx_insn * locals. Strengthen
13847 local "prologue_seq" from rtx to rtx_insn *.
13848 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
13849 from rtx to rtx_insn *.
13850 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
13851 (priority): Likewise for locals "prev_first", "twin".
13852 (setup_insn_max_reg_pressure): Likewise for param "after".
13853 (sched_setup_bb_reg_pressure_info): Likewise.
13854 (no_real_insns_p): Strengthen params from const_rtx to
13855 const rtx_insn *.
13856 (schedule_block): Strengthen local "next_tail" from rtx to
13857 rtx_insn *.
13858 * ifcvt.c (find_active_insn_before): Strengthen return type and
13859 param "insn" from rtx to rtx_insn *.
13860 (find_active_insn_after): Likewise.
13861 (cond_exec_process_insns): Likewise for param "start" and local "insn".
13862 (cond_exec_process_if_block): Likewise for locals "then_start",
13863 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
13864 (noce_process_if_block): Likewise for local "jump".
13865 (merge_if_block): Likewise for two locals named "end".
13866 (cond_exec_find_if_block): Likewise for local "last_insn".
13867 * jump.c (delete_related_insns): Rename param "insn" to
13868 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
13869 checked cast. Strengthen local "p" from rtx to rtx_insn *.
13870 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
13871 NULL.
13872 (split_reg): Likewise.
13873 * lra.c (lra_process_new_insns): Likewise.
13874 * modulo-sched.c (permute_partial_schedule): Strengthen param
13875 "last" from rtx to rtx_insn *.
13876 * optabs.c (add_equal_note): Likewise for param "insns" and local
13877 "last_insn".
13878 (expand_binop_directly): Add checked casts to rtx_insn * within
13879 NEXT_INSN (pat) uses.
13880 (expand_unop_direct): Likewise.
13881 (maybe_emit_unop_insn): Likewise.
13882 * recog.c (peep2_attempt): Strengthen locals "last",
13883 "before_try", "x" from rtx to rtx_insn *.
13884 * reorg.c (optimize_skip): Strengthen return type and local
13885 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
13886 and locals "trial", "next_trial" from rtx to rtx_insn *.
13887 * resource.c (next_insn_no_annul): Strengthen return type and
13888 param "insn" from rtx to rtx_insn *. Use a cast to and method of
13889 rtx_sequence to clarify the code.
13890 (mark_referenced_resources): Add a checked cast to rtx_insn *
13891 within PREV_INSN (x).
13892 (find_dead_or_set_registers): Strengthen return type, param
13893 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
13894 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
13895 to rtx_insn **.
13896 (mark_target_live_regs): Strengthen params "insns" and "target",
13897 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
13898 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
13899 the code.
13900 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
13901 from rtx to rtx_insn *.
13902 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
13903 from rtx to rtx_insn *.
13904 (copy_reg_eh_region_note_backward): Likewise.
13905 (unshare_all_rtl_in_chain): Likewise for sole param.
13906 (dump_rtl_slim): Strengthen second and third params from const_rtx
13907 to const rtx_insn *.
13908 * sched-deps.c (sched_free_deps): Strengthen params "head" and
13909 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
13910 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
13911 "next_tail" from rtx to rtx_insn *.
13912 (begin_move_insn): Likewise for local "next".
13913 * sched-int.h (sched_free_deps): Likewise for first and second
13914 params.
13915 (no_real_insns_p): Strengthen both params from const_rtx to
13916 const rtx_insn *.
13917 (sched_setup_bb_reg_pressure_info): Strengthen second params from
13918 rtx to rtx_insn *.
13919 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
13920 "next_tail".
13921 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
13922 and locals "insn", "tail" from const_rtx to const rtx_insn *.
13923 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
13924 rtx_insn *.
13925 (debug_rtl_slim): Strengthen params "first" and "last" from
13926 const_rtx to const rtx_insn *.
13927 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
13928 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
13929 (convert_to_simple_return): Likewise for param "returnjump".
13930 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
13931 "prologue_seq".
13932 (convert_to_simple_return): Likewise for param "returnjump".
13933 * valtrack.c (propagate_for_debug): Likewise for params
13934 "insn", "last".
13935 * valtrack.h (propagate_for_debug): Likewise for second param.
13936
13937 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13938
13939 * output.h (insn_current_reference_address): Strengthen param
13940 from rtx to rtx_insn *.
13941 * final.c (insn_current_reference_address): Likewise.
13942
13943 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13944
13945 * basic-block.h (inside_basic_block_p): Strengthen param from
13946 const_rtx to const rtx_insn *.
13947 * cfgbuild.c (inside_basic_block_p): Likewise.
13948
13949 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13950
13951 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
13952 rtx_insn *.
13953 (get_trace_info): Likewise for param "insn".
13954 (save_point_p): Likewise.
13955 (maybe_record_trace_start): Likewise for both params.
13956 (maybe_record_trace_start_abnormal): Likewise.
13957 (create_trace_edges): Likewise for sole param and for three of the
13958 locals named "lab".
13959 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
13960 to rtx_insn *, and update a call to pat->element to pat->insn.
13961
13962 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13963
13964 * function.h (struct expr_status): Convert field "x_forced_labels"
13965 from rtx_expr_list * to rtx_insn_list *.
13966
13967 * cfgbuild.c (make_edges): Convert local "x" from an
13968 rtx_expr_list * to an rtx_insn_list *, replacing use of
13969 "element" method with "insn" method.
13970 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
13971 * except.c (sjlj_emit_dispatch_table): Replace use of
13972 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
13973 forced_labels.
13974 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
13975 rtx_expr_list * to an rtx_insn_list *, replacing use of
13976 "element" method with "insn" method.
13977 * reload1.c (set_initial_label_offsets): Likewise for local "x".
13978 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
13979 rtx_insn *, adding a checked cast. Replace use of
13980 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
13981 forced_labels.
13982 (expand_label): Likewise for local "label_r".
13983
13984 2014-08-28 David Malcolm <dmalcolm@redhat.com>
13985
13986 * function.h (struct rtl_data): Convert field
13987 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
13988 rtx_insn_list *.
13989 * rtl.h (remove_node_from_insn_list): New prototype.
13990
13991 * builtins.c (expand_builtin): When prepending to
13992 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
13993 gen_rtx_EXPR_LIST.
13994 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
13995 to rtx_insn_list *, and use its "insn" method rather than
13996 "element" method.
13997 * cfgrtl.c (delete_insn): Use new function
13998 remove_node_from_insn_list rather than
13999 remove_node_from_expr_list.
14000 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
14001 to rtx_insn_list *, and use its "insn" method rather than
14002 "element" method.
14003 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
14004 * reload1.c (set_initial_label_offsets): Likewise for local "x".
14005 * rtlanal.c (remove_node_from_insn_list): New function, adapted
14006 from remove_node_from_expr_list.
14007 * stmt.c (expand_label): When prepending to
14008 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
14009 gen_rtx_EXPR_LIST.
14010
14011 2014-08-28 David Malcolm <dmalcolm@redhat.com>
14012
14013 * function.h (struct rtl_data): Strengthen fields "x_return_label"
14014 and "x_naked_return_label" from rtx to rtx_code_label *.
14015
14016 2014-08-28 David Malcolm <dmalcolm@redhat.com>
14017
14018 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
14019 (SET_NEXT_INSN): Likewise.
14020 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
14021
14022 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
14023 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
14024 to split out the SEQUENCE from local "bundle", strengthening the
14025 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
14026 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
14027 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
14028 and the type of the elements of the "slot" array from rtx to
14029 rtx_insn *.
14030 (reorg_split_calls): Likewise for locals "insn" and "next", and
14031 the type of the elements of the "slot" array.
14032
14033 * config/frv/frv.c (frv_nops): Likewise for the elements of this
14034 array.
14035 (frv_function_prologue): Likewise for locals "insn", "next",
14036 "last_call".
14037 (frv_register_nop): Introduce a local "nop_insn" to be the
14038 rtx_insn * containing rtx "nop".
14039
14040 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
14041 used as an insn and sometimes as a pattern, so rename it to
14042 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
14043 using it where dealing with the core insn.
14044
14045 * config/picochip/picochip.c (reorder_var_tracking_notes):
14046 Strengthen locals "insn", "next", "last_insn", "queue",
14047 "next_queue", "prev" from rtx to rtx_insn *.
14048
14049 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
14050 the second param is an rtx_insn ** rather than an rtx **.
14051 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
14052 from rtx to rtx_sequence *, and introduce local named "sequence",
14053 using methods of rtx_sequence to clarify the code.
14054 (remove_insn): Introduce local rtx_sequence * named "sequence" and
14055 use its methods.
14056 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
14057 Rename param "after" to "uncast_after", reintroducing "after" as a
14058 local rtx_insn * with a checked cast.
14059 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
14060 reintroducing "after" as a local rtx_insn * with a checked cast.
14061 Strengthen local "last" from rtx to rtx_insn * and remove the
14062 now-redundant checked casts.
14063 (copy_delay_slot_insn): Strengthen return type and param from rtx
14064 to rtx_insn *.
14065
14066 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
14067 "last" from rtx to rtx_insn *.
14068
14069 2014-08-28 David Malcolm <dmalcolm@redhat.com>
14070
14071 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
14072 param from rtx to rtx_insn *.
14073
14074 * emit-rtl.c (copy_delay_slot_insn): Likewise.
14075
14076 * reorg.c (skip_consecutive_labels): Strengthen return type, param
14077 and local "insn" from rtx to rtx_insn *.
14078 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
14079 (unfilled_slots_next): Likewise.
14080 (function_return_label): Strengthen from rtx to rtx_code_label *.
14081 (function_simple_return_label): Likewise.
14082 (first_active_target_insn): Strengthen return type and param from
14083 rtx to rtx_insn *.
14084 (find_end_label): Strengthen return type from rtx to
14085 rtx_code_label *; strengthen locals as appropriate.
14086 (emit_delay_sequence): Strengthen return type, param "insn" and
14087 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
14088 and local "li" from rtx to rtx_insn_list *, using methods of
14089 rtx_insn_list for clarity and typesafety.
14090 (add_to_delay_list): Strengthen return type and param "insn" from
14091 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
14092 rtx_insn_list * and use methods of rtx_insn_list.
14093 (delete_from_delay_slot): Strengthen return type, param "insn",
14094 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
14095 Strengthen local "seq" from rtx to rtx_sequence *, and local
14096 "delay_list" from rtx to rtx_insn_list *, using methods of
14097 rtx_sequence for clarity and type-safety.
14098 (delete_scheduled_jump): Add checked cast when invoking
14099 delete_from_delay_slot. Strengthen local "trial" from rtx to
14100 rtx_insn *.
14101 (optimize_skip): Strengthen return type and local "delay_list"
14102 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
14103 rtx_insn *.
14104 (steal_delay_list_from_target): Strengthen return type, param
14105 "delay_list" and local "new_delay_list" from rtx to
14106 rtx_insn_list *. Strengthen param "seq" from rtx to
14107 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
14108 rtx_insn **.
14109 Split out local "temp" into multiple more-tightly scoped locals:
14110 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
14111 of rtx_insn_list and rtx_sequence for clarity and typesafety.
14112 Strengthen locals named "trial" from rtx to rtx_insn *.
14113 (steal_delay_list_from_fallthrough): Strengthen return type and
14114 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
14115 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
14116 Strengthen local "trial" from rtx to rtx_insn *.
14117 (try_merge_delay_insns): Strength local "merged_insns" from rtx
14118 to rtx_insn_list * and use its methods. Strengthen local "pat"
14119 from rtx to rtx_sequence * and use its methods. Strengthen locals
14120 "dtrial" and "new_rtx" from rtx to rtx_insn *.
14121 (get_label_before): Strengthen return type and local "label" from
14122 rtx to rtx_insn *.
14123 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
14124 "next_trial", "next", prev". Strengthen local "delay_list" from
14125 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
14126 rtx_insn **.
14127 (follow_jumps): Strengthen return type, param "label" and locals
14128 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
14129 (fill_slots_from_thread): Strengthen return type, param
14130 "delay_list" from rtx to rtx_insn_list *. Strengthen params
14131 "insn", "thread", "opposite_thread" and locals "new_thread",
14132 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
14133 "sequence" from a checked cast to rtx_sequence so that we can call
14134 steal_delay_list_from_target and steal_delay_list_from_fallthrough
14135 with an rtx_sequence *.
14136 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
14137 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
14138 Strengthen local "delay_list" from rtx to rtx_insn_list *.
14139 (relax_delay_slots): Strengthen param "first" and locals "insn",
14140 "next", "trial", "delay_insn", "target_label" from rtx to
14141 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
14142 Introduce a local "trial_seq" for PATTERN (trial) of type
14143 rtx_sequence *, in both cases using methods of rtx_sequence.
14144 (dbr_schedule): Strengthen param "first" and locals "insn",
14145 "next", "epilogue_insn" from rtx to rtx_insn *.
14146
14147 2014-08-28 Richard Biener <rguenther@suse.de>
14148
14149 PR tree-optimization/62283
14150 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14151 Do not peel loops for alignment where the vector loop likely
14152 doesn't run at least VF times.
14153
14154 2014-08-28 Bin Cheng <bin.cheng@arm.com>
14155
14156 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
14157 important_candidates. Consider all important candidates if
14158 IVS doesn't give any result. Remove check on ivs->upto.
14159 (try_add_cand_for): Call iv_ca_add_use only once.
14160
14161 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
14162 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14163 Anna Tikhonova <anna.tikhonova@intel.com>
14164 Ilya Tocar <ilya.tocar@intel.com>
14165 Andrey Turetskiy <andrey.turetskiy@intel.com>
14166 Ilya Verbin <ilya.verbin@intel.com>
14167 Kirill Yukhin <kirill.yukhin@intel.com>
14168 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14169
14170 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
14171 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
14172 masking.
14173 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
14174 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
14175 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
14176 (define_insn "*mul<mode>3"): Add EVEX version.
14177
14178 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
14179 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14180 Anna Tikhonova <anna.tikhonova@intel.com>
14181 Ilya Tocar <ilya.tocar@intel.com>
14182 Andrey Turetskiy <andrey.turetskiy@intel.com>
14183 Ilya Verbin <ilya.verbin@intel.com>
14184 Kirill Yukhin <kirill.yukhin@intel.com>
14185 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14186
14187 * config/i386/sse.md
14188 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
14189 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
14190 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
14191 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
14192 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
14193 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
14194 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
14195 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
14196 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
14197 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
14198 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
14199 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
14200 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
14201 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
14202 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
14203 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
14204
14205 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
14206 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14207 Anna Tikhonova <anna.tikhonova@intel.com>
14208 Ilya Tocar <ilya.tocar@intel.com>
14209 Andrey Turetskiy <andrey.turetskiy@intel.com>
14210 Ilya Verbin <ilya.verbin@intel.com>
14211 Kirill Yukhin <kirill.yukhin@intel.com>
14212 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14213
14214 * config/i386/sse.md
14215 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
14216 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
14217 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
14218
14219 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
14220 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14221 Anna Tikhonova <anna.tikhonova@intel.com>
14222 Ilya Tocar <ilya.tocar@intel.com>
14223 Andrey Turetskiy <andrey.turetskiy@intel.com>
14224 Ilya Verbin <ilya.verbin@intel.com>
14225 Kirill Yukhin <kirill.yukhin@intel.com>
14226 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14227
14228 * config/i386/sse.md
14229 (define_mode_iterator VI128_256): New.
14230 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
14231
14232 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
14233 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14234 Anna Tikhonova <anna.tikhonova@intel.com>
14235 Ilya Tocar <ilya.tocar@intel.com>
14236 Andrey Turetskiy <andrey.turetskiy@intel.com>
14237 Ilya Verbin <ilya.verbin@intel.com>
14238 Kirill Yukhin <kirill.yukhin@intel.com>
14239 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14240
14241 * config/i386/sse.md
14242 (define_mode_iterator VI8_256_512): New.
14243 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
14244 Ditto.
14245 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
14246 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
14247 Ditto.
14248 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
14249
14250 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14251
14252 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
14253 pointer to the cumulative reloc value and return the value for
14254 this reloc instead.
14255 (compute_reloc_for_rtx): Take a const_rtx. Call
14256 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
14257 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
14258 for_each_rtx for the CONST case.
14259
14260 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14261
14262 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
14263 (mark_constants_in_pattern): ...this new function to iterate over
14264 all the subrtxes.
14265 (mark_constants): Update accordingly.
14266
14267 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14268
14269 * varasm.c: Include rtl-iter.h.
14270 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
14271 Remove the pointer to the cumulative hashval_t and just return
14272 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
14273 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
14274 Accumulate the hashval_ts here instead of const_rtx_hash_1.
14275
14276 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14277
14278 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
14279 Give real type of data parameter. Remove return value.
14280 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
14281 to iterate over subrtxes.
14282
14283 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14284
14285 * var-tracking.c (use_narrower_mode_test): Turn from being a
14286 for_each_rtx callback to being a function that examines each
14287 subrtx itself.
14288 (adjust_mems): Update accordingly.
14289
14290 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14291
14292 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
14293 callback to being a function that examines each subrtx itself.
14294 Remove handling of null rtxes.
14295 (add_uses): Update accordingly.
14296
14297 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14298
14299 * var-tracking.c: Include rtl-iter.h.
14300 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
14301 to being a function that examines each subrtx itself.
14302 (use_type): Update accordingly.
14303
14304 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14305
14306 * store-motion.c: Include rtl-iter.h.
14307 (extract_mentioned_regs_1): Delete.
14308 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
14309 for_each_rtx to iterate over subrtxes.
14310
14311 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14312
14313 * sel-sched.c: Include rtl-iter.h
14314 (count_occurrences_1): Delete.
14315 (count_occurrences_equiv): Turn rtxes into const_rtxes.
14316 Use FOR_EACH_SUBRTX rather than for_each_rtx.
14317
14318 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14319
14320 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
14321 * rtlanal.c (tls_referenced_p_1): Delete.
14322 (tls_referenced_p): Take a const_rtx rather than an rtx.
14323 Use FOR_EACH_SUBRTX rather than for_each_rtx.
14324
14325 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14326
14327 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
14328 (for_each_inc_dec): Take an rtx rather than an rtx *.
14329 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
14330 (cselib_record_sets): Likewise.
14331 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
14332 (check_for_inc_dec): Likewise.
14333 * rtlanal.c (for_each_inc_dec_ops): Delete.
14334 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
14335 rather than a pointer to the memory address. Replace
14336 for_each_inc_dec_ops argument with separate function and data
14337 arguments. Abort on non-autoinc addresses.
14338 (for_each_inc_dec_find_mem): Delete.
14339 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
14340 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
14341
14342 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14343
14344 * rtl.h (find_all_hard_regs): Declare.
14345 * rtlanal.c (find_all_hard_regs): New function.
14346 (record_hard_reg_uses_1): Delete.
14347 (record_hard_reg_uses): Use find_all_hard_regs.
14348
14349 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14350
14351 * rtl.h (replace_label_data): Delete.
14352 (replace_label): Take the old label, new label and update-nuses flag
14353 as direct arguments. Return void.
14354 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
14355 * rtlanal.c (replace_label): Update interface as above. Handle
14356 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
14357 iterator. Use FOR_EACH_SUBRTX_PTR.
14358
14359 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14360
14361 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
14362 with const_rtx parameters.
14363 * varasm.c (get_pool_constant): Likewise.
14364 * rtlanal.c (rtx_referenced_p_1): Delete.
14365 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
14366 Assert that the rtx we're looking for is nonnull. Allow searches
14367 for constant pool SYMBOL_REFs.
14368
14369 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14370
14371 * reload1.c: Include rtl-iter.h.
14372 (note_reg_elim_costly): Turn from being a for_each_rtx callback
14373 to being a function that examines each subrtx itself.
14374 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
14375
14376 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14377
14378 * regcprop.c (cprop_find_used_regs_1): Delete.
14379 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
14380
14381 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14382
14383 * regcprop.c: Include rtl-iter.h.
14384 (kill_value): Take a const_rtx.
14385 (kill_autoinc_value): Turn from being a for_each_rtx callback
14386 to being a function that examines each subrtx itself.
14387 (copyprop_hardreg_forward_1): Update accordingly.
14388
14389 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14390
14391 * reg-stack.c: Include rtl-iter.h.
14392 (subst_stack_regs_in_debug_insn): Delete.
14393 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
14394 instead of for_each_rtx.
14395
14396 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14397
14398 * lower-subreg.c (find_decomposable_subregs): Turn from being
14399 a for_each_rtx callback to being a function that examines each
14400 subrtx itself. Remove handling of null rtxes.
14401 (decompose_multiword_subregs): Update accordingly.
14402
14403 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14404
14405 * lower-subreg.c (adjust_decomposed_uses): Delete.
14406 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
14407 Remove handling of null rtxes.
14408
14409 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14410
14411 * lower-subreg.c: Include rtl-iter.h.
14412 (resolve_subreg_use): Turn from being a for_each_rtx callback
14413 to being a function that examines each subrtx itself. Remove
14414 handling of null rtxes.
14415 (resolve_reg_notes, resolve_simple_move): Update accordingly.
14416 (decompose_multiword_subregs): Likewise.
14417
14418 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14419
14420 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
14421 to being a function that examines each subrtx itself.
14422 (simplify_using_condition, simplify_using_initial_values): Update
14423 accordingly.
14424
14425 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14426
14427 * loop-iv.c: Include rtl-iter.h.
14428 (find_single_def_src): New function.
14429 (replace_single_def_regs): Turn from being a for_each_rtx callback
14430 to being a function that examines each subrtx itself.
14431 (replace_in_expr, simplify_using_initial_values): Update accordingly.
14432
14433 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14434
14435 * jump.c (eh_returnjump_p_1): Delete.
14436 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
14437 Remove handling of null rtxes.
14438
14439 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14440
14441 * jump.c: Include rtl-iter.h.
14442 (returnjump_p_1): Delete.
14443 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
14444 Remove handling of null rtxes.
14445
14446 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14447
14448 * ira.c: Include rtl-iter.h.
14449 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
14450 to being a function that examines each subrtx itself. Remove
14451 handling of null rtxes.
14452 (update_equiv_regs): Update call accordingly.
14453
14454 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14455
14456 * fwprop.c: Include rtl-iter.h.
14457 (varying_mem_p): Turn from being a for_each_rtx callback to being
14458 a function that examines each subrtx itself.
14459 (propagate_rtx): Update accordingly.
14460
14461 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14462
14463 * function.c: Include rtl-iter.h
14464 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
14465 callback to being a function that examines each subrtx itself.
14466 Return the changed flag.
14467 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
14468 (instantiate_virtual_regs): Update calls accordingly.
14469
14470 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14471
14472 * final.c: Include rtl-iter.h.
14473 (mark_symbol_ref_as_used): Delete.
14474 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
14475 for_each_rtx.
14476
14477 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14478
14479 * emit-rtl.c: Include rtl-iter.h.
14480 (find_auto_inc): Turn from being a for_each_rtx callback to being
14481 a function that examines each subrtx itself. Assume the first operand
14482 to an RTX_AUTOINC is the automodified register.
14483 (try_split): Update call accordingly.
14484
14485 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14486
14487 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
14488 Return a bool, inverting the result so that 0/false means "not ok".
14489 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
14490 subrtxes of a CONST.
14491 (mem_loc_descriptor, add_const_value_attribute)
14492 (resolve_addr_in_expr): Update calls accordingly.
14493
14494 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14495
14496 * dwarf2out.c: Include rtl-iter.h.
14497 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
14498 Remove unused data parameter. Return a bool, inverting the result
14499 so that 0/false means "not ok".
14500 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
14501 instead of for_each_rtx.
14502
14503 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14504
14505 * dse.c: Include rtl-iter.h.
14506 (check_mem_read_rtx): Change void * parameter to real type.
14507 Remove return value.
14508 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
14509 for_each_rtx. Don't handle null rtxes.
14510
14511 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14512
14513 * df-problems.c: Include rtl-iter.h.
14514 (find_memory): Turn from being a for_each_rtx callback to being
14515 a function that examines each subrtx itself. Continue to look for
14516 volatile references even after a nonvolatile one has been found.
14517 (can_move_insns_across): Update calls accordingly.
14518
14519 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14520
14521 * ddg.c (walk_mems_2, walk_mems_1): Delete.
14522 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
14523 to iterate over subrtxes. Return a bool rather than an int.
14524
14525 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14526
14527 * ddg.c: Include rtl-iter.h.
14528 (mark_mem_use_1): Rename to...
14529 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
14530 instead of for_each_rtx.
14531 (mem_read_insn_p): Update accordingly.
14532
14533 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14534
14535 * cse.c (change_cc_mode_args): Delete.
14536 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
14537 a function that examines each subrtx itself. Take the fields of
14538 change_cc_mode_args as argument and return void.
14539 (cse_change_cc_mode_insn): Update calls accordingly.
14540
14541 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14542
14543 * cse.c (is_dead_reg): Change argument to const_rtx.
14544 (dead_debug_insn_data): Delete.
14545 (is_dead_debug_insn): Expand commentary. Turn from being a
14546 for_each_rtx callback to being a function that examines
14547 each subrtx itself. Take the fields of dead_debug_insn_data
14548 as argument.
14549 (delete_trivially_dead_insns): Update call accordingly.
14550
14551 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14552
14553 * cse.c (check_for_label_ref): Move earlier in file. Turn from
14554 being a for_each_rtx callback to being a function that examines
14555 each subrtx itself.
14556 (cse_extended_basic_block): Update call accordingly.
14557
14558 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14559
14560 * cse.c (check_dependence_data): Delete.
14561 (check_dependence): Change from being a for_each_rtx callback to being
14562 a function that examines all subrtxes itself. Don't handle null rtxes.
14563 (invalidate): Update call accordingly.
14564
14565 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14566
14567 * cse.c: Include rtl-iter.h.
14568 (approx_reg_cost_1): Delete.
14569 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
14570 Don't handle null rtxes.
14571
14572 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14573
14574 * cfgcleanup.c: Include rtl-iter.h.
14575 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
14576 to being a function that examines each subrtx itself.
14577 (thread_jump): Update accordingly.
14578
14579 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14580
14581 * combine-stack-adj.c: Include rtl-iter.h.
14582 (record_stack_refs_data): Delete.
14583 (record_stack_refs): Turn from being a for_each_rtx callback
14584 to being a function that examines each subrtx itself.
14585 Take a pointer to the reflist. Invert sense of return value
14586 so that true means success and false means failure. Don't
14587 handle null rtxes.
14588 (combine_stack_adjustments_for_block): Update accordingly.
14589
14590 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14591
14592 * combine.c (record_truncated_value): Turn from being a for_each_rtx
14593 callback to a function that takes an rtx and returns a bool
14594 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
14595 for_each_rtx.
14596
14597 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14598
14599 * combine.c: Include rtl-iter.h.
14600 (unmentioned_reg_p_1): Delete.
14601 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
14602 Don't handle null rtxes.
14603
14604 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14605
14606 * calls.c: Include rtl-iter.h.
14607 (internal_arg_pointer_based_exp_1): Delete.
14608 (internal_arg_pointer_based_exp): Take a const_rtx.
14609 Use FOR_EACH_SUBRTX to iterate over subrtxes.
14610
14611 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14612
14613 * caller-save.c: Include rtl-iter.h.
14614 (add_used_regs_1): Delete.
14615 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
14616 to iterate over subrtxes. Assert that any remaining pseudos
14617 have been spilled.
14618
14619 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14620
14621 * bt-load.c: Include rtl-iter.h.
14622 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
14623 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
14624 to iterate over subrtxes.
14625 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
14626 find_btr_use rather than btr_referenced_p.
14627
14628 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14629
14630 * alias.c: Include rtl-iter.h.
14631 (refs_newer_value_cb): Delete.
14632 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
14633
14634 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
14635
14636 * rtl-iter.h: New file.
14637 * rtlanal.c: Include it.
14638 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
14639 (generic_subrtx_iterator <T>::add_single_to_queue)
14640 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
14641 (generic_subrtx_iterator <T>::free_array): New functions.
14642 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
14643 (generic_subrtx_iterator <const_rtx_accessor>)
14644 (generic_subrtx_iterator <rtx_var_accessor>
14645 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
14646 (setup_reg_subrtx_bounds): New function.
14647 (init_rtlanal): Call it.
14648
14649 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
14650
14651 PR target/62261
14652 * config/sh/sh.md (ashlsi3): Handle negative shift count for
14653 TARGET_SHMEDIA.
14654 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
14655
14656 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
14657
14658 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
14659
14660 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14661
14662 * rtl.h (JUMP_LABEL_AS_INSN): New.
14663
14664 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14665
14666 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
14667 rtx_expr_list **.
14668 (alloc_EXPR_LIST): Strengthen return type from rtx to
14669 rtx_expr_list *.
14670 (remove_free_EXPR_LIST_node): Likewise for param.
14671 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
14672 from rtx to rtx_expr_list *.
14673 * sched-int.h (struct deps_desc): Strengthen fields
14674 "pending_read_mems" and "pending_write_mems" from rtx to
14675 rtx_expr_list *.
14676
14677 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
14678 rtx to rtx_expr_list *.
14679 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
14680 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
14681 rtx_expr_list **.
14682 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
14683 from rtx to rtx_expr_list *.
14684 * loop-iv.c (simplify_using_initial_values): Strengthen local
14685 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
14686 "pnote_next" from rtx * to rtx_expr_list **.
14687 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
14688 param "exprp" from rtx * to rtx_expr_list **.
14689 (add_insn_mem_dependence): Strengthen local "mem_list" from
14690 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
14691 to rtx_expr_list *.
14692 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
14693 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
14694 param "old_mems_p" from rtx * to rtx_expr_list **.
14695 * var-tracking.c (struct adjust_mem_data): Strengthen field
14696 "side_effects" from rtx to rtx_expr_list *.
14697 (adjust_insn): Replace NULL_RTX with NULL when assigning to
14698 rtx_expr_list *.
14699 (prepare_call_arguments): Likewise.
14700
14701 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14702
14703 * function.h (struct rtl_data): Strengthen field
14704 "x_stack_slot_list" from rtx to rtx_expr_list *.
14705
14706 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
14707 when assigning to stack_slot_list.
14708
14709 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14710
14711 * function.h (struct rtl_data): Strengthen field
14712 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
14713 * rtl.h (remove_node_from_expr_list): Strengthen second param from
14714 rtx * to rtx_expr_list **.
14715
14716 * cfgbuild.c (make_edges): In loop over
14717 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
14718 rtx_expr_list *, and use methods of the latter class to clarify
14719 the code.
14720 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
14721 rtx_expr_list *, and use methods of the latter class to clarify
14722 the code.
14723 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
14724 * reload1.c (set_initial_label_offsets): Likewise for local "x".
14725 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
14726 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
14727 to rtx_expr_list *. Use methods of the latter class to clarify
14728 the code.
14729
14730 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14731
14732 * function.h (struct expr_status): Strengthen field
14733 "x_forced_labels" from rtx to rtx_expr_list *.
14734
14735 * cfgbuild.c (make_edges): Split local "x" into two locals,
14736 strengthening one from rtx to rtx_expr_list *, and using methods
14737 of said class.
14738 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
14739 loop over forced_labels, introduce strengthen it from rtx to
14740 rtx_expr_list *, using methods to clarify the code.
14741 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
14742 to rtx_expr_list *, using methods of said class to clarify the
14743 code.
14744 * reload1.c (set_initial_label_offsets): Split local "x" into two
14745 per-loop variables, strengthening the first from rtx to
14746 rtx_expr_list * and using methods.
14747
14748 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14749
14750 * coretypes.h (class rtx_expr_list): Add forward declaration.
14751 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
14752 * gengenrtl.c (special_rtx): Add EXPR_LIST.
14753 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
14754 invariant: GET_CODE (X) == EXPR_LIST.
14755 (is_a_helper <rtx_expr_list *>::test): New.
14756 (rtx_expr_list::next): New.
14757 (rtx_expr_list::element): New.
14758 (gen_rtx_EXPR_LIST): New.
14759
14760 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14761
14762 * varasm.c (mark_constants): Convert a GET_CODE check into a
14763 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
14764 Use methods of rtx_sequence to clarify the code.
14765
14766 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14767
14768 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
14769 local "seq" via a checked cast, and use methods of rtx_sequence
14770 to simplify the code.
14771
14772 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14773
14774 * resource.c (mark_referenced_resources): Strengthen local
14775 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
14776 using methods of rtx_sequence to clarify the code.
14777 (find_dead_or_set_registers): Within the switch statement, convert
14778 a GET_CODE check to a dyn_cast, introducing local "seq". Within
14779 the JUMP_P handling, introduce another local "seq", adding a
14780 checked cast to rtx_sequence *. In both cases, use methods of
14781 rtx_sequence to clarify the code.
14782 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
14783 via a checked cast, and use methods of rtx_sequence to simplify
14784 the code.
14785
14786 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14787
14788 * reorg.c (redundant_insn): In two places in the function, replace
14789 a check of GET_CODE with a dyn_cast, introducing local "seq", and
14790 usings methods of rtx_sequence to clarify the code.
14791
14792 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14793
14794 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
14795 local "seq" with a checked cast, and use methods of rtx_sequence
14796 to clarify the code.
14797
14798 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14799
14800 * function.c (contains): Introduce local "seq" for PATTERN (insn),
14801 with a checked cast, in the region for where we know it's a
14802 SEQUENCE. Use methods of rtx_sequence.
14803
14804 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14805
14806 * final.c (get_attr_length_1): Replace GET_CODE check with a
14807 dyn_cast, introducing local "seq" and the use of methods of
14808 rtx_sequence.
14809 (shorten_branches): Likewise, introducing local "body_seq".
14810 Strengthen local "inner_insn" from rtx to rtx_insn *.
14811 (reemit_insn_block_notes): Replace GET_CODE check with a
14812 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
14813 Use methods of rtx_sequence.
14814 (final_scan_insn): Likewise, introducing local "seq" for when
14815 "body" is known to be a SEQUENCE, using its methods.
14816
14817 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14818
14819 * except.c (can_throw_external): Strengthen local "seq" from rtx
14820 to rtx_sequence *. Use methods of rtx_sequence.
14821 (insn_nothrow_p): Likewise.
14822
14823 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14824
14825 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
14826 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
14827 Use methods of rtx_sequence.
14828 (scan_trace): Likewise for local "pat".
14829
14830 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14831
14832 * coretypes.h (class rtx_sequence): Add forward declaration.
14833 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
14834 invariant: GET_CODE (X) == SEQUENCE.
14835 (is_a_helper <rtx_sequence *>::test): New.
14836 (is_a_helper <const rtx_sequence *>::test): New.
14837 (rtx_sequence::len): New.
14838 (rtx_sequence::element): New.
14839 (rtx_sequence::insn): New.
14840
14841 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14842
14843 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
14844 rtx_insn_list **.
14845 (alloc_INSN_LIST): Strengthen return type from rtx to
14846 rtx_insn_list *.
14847 (copy_INSN_LIST): Likewise for return type and param.
14848 (concat_INSN_LIST): Likewise for both params and return type.
14849 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
14850 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
14851 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
14852 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
14853
14854 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
14855 "implicit_sets", "control_uses", "clobbers" from rtx to
14856 rtx_insn_list *.
14857 (struct deps_desc): Likewise for fields "pending_read_insns",
14858 "pending_write_insns", "pending_jump_insns",
14859 "last_pending_memory_flush", "last_function_call",
14860 "last_function_call_may_noreturn", "sched_before_next_call",
14861 "sched_before_next_jump".
14862 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
14863 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
14864
14865 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
14866 from rtx to rtx_insn_list *.
14867 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
14868 rtx_insn_list *.
14869
14870 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
14871 to rtx_insn_list **.
14872 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
14873 rtx_insn_list *.
14874 (queue_insn): Likewise for local "link".
14875 (struct haifa_saved_data): Strengthen field "insn_queue" from
14876 rtx * to rtx_insn_list **.
14877 (save_backtrack_point): Update allocation of save->insn_queue to
14878 reflect the strengthening of elements from rtx to rtx_insn_list *.
14879 (queue_to_ready): Strengthen local "link" from rtx to
14880 rtx_insn_list *; use methods "next" and "insn" when traversing the
14881 list.
14882 (early_queue_to_ready): Likewise for locals "link", "next_link",
14883 "prev_link".
14884 (schedule_block): Update allocation of insn_queue to reflect the
14885 strengthening of elements from rtx to rtx_insn_list *. Strengthen
14886 local "link" from rtx to rtx_insn_list *, and use methods when
14887 working it.
14888 (add_to_speculative_block): Strengthen locals "twins" and
14889 "next_node" from rtx to rtx_insn_list *, and use methods when
14890 working with them. Strengthen local "twin" from rtx to
14891 rtx_insn *, eliminating a checked cast.
14892 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
14893 from rtx to rtx_insn_list *, and use methods when working with
14894 them.
14895
14896 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
14897 from rtx to rtx_insn_list *, adding a checked cast.
14898 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
14899 rtx_insn_list **.
14900 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
14901 "newlink" from rtx to rtx_insn_list *. Strengthen local
14902 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
14903 from rtx to rtx_insn *.
14904 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
14905 from rtx to rtx_insn_list *. Use methods of the latter class.
14906 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
14907 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
14908 (remove_free_INSN_LIST_node): Strengthen return type and local
14909 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
14910 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
14911 rtx_insn_list *, using "insn" method.
14912
14913 * sched-deps.c (add_dependence_list): Strengthen param "list"
14914 from rtx to rtx_insn_list *, and use methods when working with it.
14915 (add_dependence_list_and_free): Strengthen param "listp" from
14916 rtx * to rtx_insn_list **.
14917 (remove_from_dependence_list): Strenghten param "listp" from rtx *
14918 to rtx_insn_list **, and use methods when working with *listp.
14919 (remove_from_both_dependence_lists): Strengthen param "listp" from
14920 rtx * to rtx_insn_list **
14921 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
14922 to rtx_insn_list **. Eliminate local "link", in favor of two new
14923 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
14924 respectively.
14925 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
14926 by introducing local "cond_deps".
14927 (remove_from_deps): Strengthen param "insn" from rtx to
14928 rtx_insn *.
14929
14930 * sched-rgn.c (concat_insn_mem_list): Strengthen param
14931 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
14932 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
14933 Use methods of rtx_insn_list.
14934
14935 * store-motion.c (struct st_expr): Strengthen fields
14936 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
14937 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
14938 rtx_insn_list *.
14939 (find_moveable_store): Split out "tmp" into multiple more-tightly
14940 scoped locals. Use methods of rtx_insn_list *.
14941 (compute_store_table): Strengthen local "tmp" from rtx to
14942 rtx_insn *. Use methods of rtx_insn_list *.
14943
14944 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14945
14946 * coretypes.h (class rtx_insn_list): Add forward declaration.
14947 * rtl.h (class rtx_insn_list): New subclass of rtx_def
14948 (is_a_helper <rtx_insn_list *>::test): New.
14949 (rtx_insn_list::next): New.
14950 (rtx_insn_list::insn): New.
14951 (gen_rtx_INSN_LIST): Add prototype.
14952 * emit-rtl.c (gen_rtx_INSN_LIST): New.
14953 * gengenrtl.c (special_rtx): Add INSN_LIST.
14954
14955 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14956
14957 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
14958 "prev" from rtx to rtx_insn *.
14959
14960 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14961
14962 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
14963 functions. Require merely an rtx for now, not an rtx_insn *.
14964 (BLOCK_FOR_INSN): Likewise.
14965 (INSN_LOCATION): Likewise.
14966 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
14967
14968 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14969
14970 * rtl.h (PATTERN): Convert this macro into a pair of inline
14971 functions, for now, requiring const_rtx and rtx.
14972
14973 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14974
14975 * target.def (unwind_emit): Strengthen param "insn" from rtx to
14976 rtx_insn *.
14977 (final_postscan_insn): Likewise.
14978 (adjust_cost): Likewise.
14979 (adjust_priority): Likewise.
14980 (variable_issue): Likewise.
14981 (macro_fusion_pair_p): Likewise.
14982 (dfa_post_cycle_insn): Likewise.
14983 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
14984 (first_cycle_multipass_issue): Likewise.
14985 (dfa_new_cycle): Likewise.
14986 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
14987 (speculate_insn): Likewise for param "insn".
14988 (gen_spec_check): Likewise for params "insn" and "label".
14989 (get_insn_spec_ds): Likewise for param "insn".
14990 (get_insn_checked_ds): Likewise.
14991 (dispatch_do): Likewise.
14992 (dispatch): Likewise.
14993 (cannot_copy_insn_p): Likewise.
14994 (invalid_within_doloop): Likewise.
14995 (legitimate_combined_insn): Likewise.
14996 (needed): Likewise.
14997 (after): Likewise.
14998
14999 * doc/tm.texi: Automatically updated to reflect changes to
15000 target.def.
15001
15002 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
15003 working with insn.
15004 (schedule_block): Likewise.
15005 (sched_init): Likewise.
15006 (sched_speculate_insn): Strengthen param "insn" from rtx to
15007 rtx_insn *.
15008 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
15009 working with insn.
15010 * hooks.c (hook_bool_rtx_true): Rename to...
15011 hook_bool_rtx_insn_true): ...this, and strengthen first param from
15012 rtx to rtx_insn *.
15013 (hook_constcharptr_const_rtx_null): Rename to...
15014 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
15015 first param from const_rtx to const rtx_insn *.
15016 (hook_bool_rtx_int_false): Rename to...
15017 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
15018 param from rtx to rtx_insn *.
15019 (hook_void_rtx_int): Rename to...
15020 (hook_void_rtx_insn_int): ...this, and strengthen first param from
15021 rtx to rtx_insn *.
15022
15023 * hooks.h (hook_bool_rtx_true): Rename to...
15024 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
15025 rtx to rtx_insn *.
15026 (hook_bool_rtx_int_false): Rename to...
15027 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
15028 param from rtx to rtx_insn *.
15029 (hook_void_rtx_int): Rename to...
15030 (hook_void_rtx_insn_int): ...this, and strengthen first param from
15031 rtx to rtx_insn *.
15032 (hook_constcharptr_const_rtx_null): Rename to...
15033 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
15034 first param from const_rtx to const rtx_insn *.
15035
15036 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
15037 and local "prev" from rtx to rtx_insn *.
15038
15039 * sched-int.h (sched_speculate_insn): Strengthen first param from
15040 rtx to rtx_insn *.
15041
15042 * sel-sched.c (create_speculation_check): Likewise for local "label".
15043 * targhooks.c (default_invalid_within_doloop): Strengthen param
15044 "insn" from const_rtx to const rtx_insn *.
15045 * targhooks.h (default_invalid_within_doloop): Strengthen param
15046 from const_rtx to const rtx_insn *.
15047
15048 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
15049 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
15050
15051 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
15052 "insn".
15053 (arc_invalid_within_doloop): Likewise, with const.
15054
15055 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
15056 (arm_cannot_copy_insn_p): Likewise for param "insn".
15057 (arm_unwind_emit): Likewise.
15058
15059 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
15060 "dep_insn".
15061
15062 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
15063 (c6x_variable_issue): Likewise. Removed now-redundant checked
15064 cast.
15065 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
15066
15067 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
15068 Likewise for param "insn".
15069 (epiphany_mode_after): Likewise.
15070 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
15071 params "insn", "dep_insn".
15072 (epiphany_mode_needed): Likewise for param "insn".
15073 (epiphany_mode_after): Likewise.
15074
15075 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
15076 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
15077 (ix86_avx_u128_mode_needed): Likewise.
15078 (ix86_i387_mode_needed): Likewise.
15079 (ix86_mode_needed): Likewise.
15080 (ix86_avx_u128_mode_after): Likewise.
15081 (ix86_mode_after): Likewise.
15082 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
15083 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
15084 (ix86_adjust_priority): Likewise for param "insn".
15085 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
15086 (do_dispatch): Likewise.
15087 (has_dispatch): Likewise.
15088 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
15089
15090 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
15091 reflect renaming of default hook implementation from
15092 hook_constcharptr_const_rtx_null to
15093 hook_constcharptr_const_rtx_insn_null.
15094 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
15095 rtx to rtx_insn *.
15096 (ia64_variable_issue): Likewise for param "insn".
15097 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
15098 (ia64_dfa_new_cycle): Likewise.
15099 (ia64_get_insn_spec_ds): Likewise.
15100 (ia64_get_insn_checked_ds): Likewise.
15101 (ia64_speculate_insn): Likewise.
15102 (ia64_gen_spec_check): Likewise for params "insn", "label".
15103 (ia64_asm_unwind_emit): Likewise for param "insn".
15104
15105 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
15106
15107 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
15108 "insn", "def_insn".
15109 (m68k_sched_variable_issue): Likewise for param "insn".
15110
15111 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
15112 "def_insn".
15113
15114 * config/microblaze/microblaze.c (microblaze_adjust_cost):
15115 Likewise for params "insn", "dep".
15116
15117 * config/mips/mips.c (mips_adjust_cost): Likewise.
15118 (mips_variable_issue): Likewise for param "insn".
15119 (mips_final_postscan_insn): Likewise.
15120
15121 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
15122 for params "insn", "dep".
15123
15124 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
15125 "dep_insn".
15126 (pa_adjust_priority): Likewise for param "insn".
15127
15128 * config/picochip/picochip.c (picochip_sched_adjust_cost):
15129 Likewise for params "insn", "dep_insn".
15130
15131 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
15132 param "insn".
15133 (rs6000_variable_issue): Likewise.
15134 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
15135 (rs6000_debug_adjust_cost): Likewise.
15136 (rs6000_adjust_priority): Likewise for param "insn".
15137 (rs6000_use_sched_lookahead_guard): Likewise.
15138 (get_next_active_insn): Likewise for return type and both params.
15139 (redefine_groups): Likewise for params "prev_head_insn", "tail"
15140 and locals "insn", "next_insn".
15141 (pad_groups): Likewise.
15142
15143 * config/s390/s390.c (s390_adjust_priority): Likewise for param
15144 "insn".
15145 (s390_cannot_copy_insn_p): Likewise.
15146 (s390_sched_variable_issue): Likewise for third param, eliminating
15147 checked cast.
15148 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
15149 default hook implementation from hook_constcharptr_const_rtx_null
15150 to hook_constcharptr_const_rtx_insn_null.
15151
15152 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
15153 from rtx to rtx_insn *.
15154 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
15155 (sh_variable_issue): Likewise for param "insn".
15156 (sh_dfa_new_cycle): Likewise.
15157 (sh_mode_needed): Likewise.
15158 (sh_mode_after): Likewise.
15159
15160 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
15161 params "insn", "dep_insn".
15162 (hypersparc_adjust_cost): Likewise.
15163 (sparc_adjust_cost): Likewise.
15164
15165 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
15166 param, eliminated checked cast.
15167 (spu_sched_adjust_cost): Likewise for first and third params.
15168
15169 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
15170 params "insn" and "dep_insn" from rtx to rtx_insn *.
15171
15172 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
15173
15174 2014-08-27 David Malcolm <dmalcolm@redhat.com>
15175
15176 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
15177 (set_is_load_p): ...this, updating to work on a SET pattern rather
15178 than an insn.
15179 (is_store_insn): Rename to...
15180 (set_is_store_p): ...this, updating to work on a SET pattern
15181 rather than an insn.
15182 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
15183 top of function to where it is needed. Rewrite the bogus
15184 condition that checks for "insn" and "dep" being PARALLEL to
15185 instead use single_set, introducing locals "insn_set" and
15186 "dep_set". Given that we only ever returned "cost" for a non-pair
15187 of SETs, bail out early if we don't have a pair of SET.
15188 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
15189 use the new locals "insn_set" and "dep_set", and update calls to
15190 is_load_insn and is_store_insn to be calls to set_is_load_p and
15191 set_is_store_p.
15192
15193 2014-08-27 Guozhi Wei <carrot@google.com>
15194
15195 PR target/62262
15196 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
15197 amount before using it.
15198
15199 2014-08-27 Richard Biener <rguenther@suse.de>
15200
15201 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
15202 get_maxval_strlen inside a more useful API.
15203 (gimple_fold_builtin_with_strlen): Remove and fold into ...
15204 (gimple_fold_builtin): ... caller.
15205 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
15206 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
15207 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
15208 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
15209 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
15210 gimple_fold_builtin_sprintf): Adjust to compute maxval
15211 themselves.
15212
15213 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
15214
15215 PR other/62248
15216 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
15217
15218 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
15219 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15220 Anna Tikhonova <anna.tikhonova@intel.com>
15221 Ilya Tocar <ilya.tocar@intel.com>
15222 Andrey Turetskiy <andrey.turetskiy@intel.com>
15223 Ilya Verbin <ilya.verbin@intel.com>
15224 Kirill Yukhin <kirill.yukhin@intel.com>
15225 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15226
15227 * config/i386/sse.md
15228 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
15229 Use `concat_tg_mode' attribute to determine asm register size.
15230
15231 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
15232 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15233 Anna Tikhonova <anna.tikhonova@intel.com>
15234 Ilya Tocar <ilya.tocar@intel.com>
15235 Andrey Turetskiy <andrey.turetskiy@intel.com>
15236 Ilya Verbin <ilya.verbin@intel.com>
15237 Kirill Yukhin <kirill.yukhin@intel.com>
15238 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15239
15240 * config/i386/sse.md
15241 (define_mode_iterator VI48_AVX512VL): New.
15242 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
15243 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
15244 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
15245 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
15246 with VI1): Change mode iterator.
15247 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
15248 with VI_ULOADSTORE_BW_AVX512VL): New.
15249 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
15250 with VI_ULOADSTORE_F_AVX512VL): Ditto.
15251 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
15252 with VI1): Change mode iterator.
15253 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
15254 with VI_ULOADSTORE_BW_AVX512VL): New.
15255 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
15256 with VI_ULOADSTORE_F_AVX512VL): Ditto.
15257 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
15258 with VI1): Change mode iterator.
15259 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
15260 with VI_ULOADSTORE_BW_AVX512VL): New.
15261 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
15262 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
15263 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
15264 (define_insn "<avx512>_storedqu<mode>_mask" with
15265 VI48_AVX512VL): New.
15266 (define_insn "<avx512>_storedqu<mode>_mask" with
15267 VI12_AVX512VL): Ditto.
15268
15269 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
15270 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15271 Anna Tikhonova <anna.tikhonova@intel.com>
15272 Ilya Tocar <ilya.tocar@intel.com>
15273 Andrey Turetskiy <andrey.turetskiy@intel.com>
15274 Ilya Verbin <ilya.verbin@intel.com>
15275 Kirill Yukhin <kirill.yukhin@intel.com>
15276 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15277
15278 * config/i386/sse.md
15279 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
15280 (define_mode_iterator VI48_AVX512BW): New.
15281 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
15282 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
15283 with VI48_AVX2_48_AVX512F): New.
15284 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
15285 with VI2_AVX512VL): Ditto.
15286
15287 2014-08-27 Richard Biener <rguenther@suse.de>
15288
15289 PR middle-end/62239
15290 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
15291 (fold_builtin_3): Do not fold strcat_chk here.
15292 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
15293 from builtins.c.
15294 (gimple_fold_builtin): Fold strcat_chk here.
15295
15296 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
15297
15298 * dwarf2out.h (dwarf2out_decl): Remove prototype.
15299 * dwarf2out.c (dwarf2out_decl): Make static.
15300
15301 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
15302
15303 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
15304
15305 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15306
15307 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
15308 from rtx to rtx_insn *.
15309 (cselib_lookup_from_insn): Likewise for final param.
15310 (cselib_subst_to_values_from_insn): Likewise.
15311 (cselib_add_permanent_equiv): Likewise.
15312
15313 * cselib.c (cselib_current_insn): Likewise for this variable.
15314 (cselib_subst_to_values_from_insn): Likewise for param "insn".
15315 (cselib_lookup_from_insn): Likewise.
15316 (cselib_add_permanent_equiv): Likewise for param "insn" and local
15317 "save_cselib_current_insn".
15318 (cselib_process_insn): Replace use of NULL_RTX with NULL.
15319
15320 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
15321 from rtx to rtx_insn *.
15322
15323 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15324
15325 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
15326 rtx_insn *.
15327
15328 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15329
15330 * df.h (df_dump_insn_problem_function): Strengthen first param of
15331 this callback from const_rtx to const rtx_insn *.
15332 (struct df_insn_info): Strengthen field "insn" from rtx to
15333 rtx_insn *.
15334 (DF_REF_INSN): Eliminate this function, reinstating the older
15335 macro definition.
15336 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
15337 (df_reg_defined): Likewise.
15338 (df_find_use): Likewise.
15339 (df_reg_used): Likewise.
15340 (df_dump_insn_top): Strengthen param 1 from const_rtx to
15341 const rtx_insn *.
15342 (df_dump_insn_bottom): Likewise.
15343 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
15344 (df_insn_debug_regno): Likewise.
15345 (debug_df_insn): Likewise.
15346 (df_rd_simulate_one_insn): Likewise for param 2.
15347 (df_word_lr_simulate_defs): Likewise for param 1.
15348 (df_word_lr_simulate_uses): Likewise.
15349 (df_md_simulate_one_insn): Likewise for param 2.
15350 (df_simulate_find_noclobber_defs): Likewise for param 1.
15351 (df_simulate_find_defs): Likewise.
15352 (df_simulate_defs): Likewise.
15353 (df_simulate_uses): Likewise.
15354 (df_simulate_one_insn_backwards): Likewise for param 2.
15355 (df_simulate_one_insn_forwards): Likewise.
15356 (df_uses_create): Likewise for param 2.
15357 (df_insn_create_insn_record): Likewise for param 1.
15358 (df_insn_delete): Likewise.
15359 (df_insn_rescan): Likewise.
15360 (df_insn_rescan_debug_internal): Likewise.
15361 (df_insn_change_bb): Likewise.
15362 (df_notes_rescan): Likewise.
15363 * rtl.h (remove_death): Likewise for param 2.
15364 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
15365 const rtx_insn *.
15366 * sched-int.h (reemit_notes): Strengthen param from rtx to
15367 rtx_insn *.
15368 * valtrack.h (propagate_for_debug): Likewise for param 1.
15369
15370 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
15371 local "tmp_rtx" from const_rtx to const rtx_insn *.
15372 * combine.c (remove_death): Strengthen param "insn" from rtx to
15373 rtx_insn *.
15374 (move_deaths): Likewise for local "where_dead".
15375 * cse.c (delete_trivially_dead_insns): Introduce local
15376 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
15377 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
15378 rtx_insn *.
15379 (df_reg_defined): Likewise.
15380 (df_find_use): Likewise.
15381 (df_reg_used): Likewise.
15382 (df_dump_insn_problem_data): Strengthen param "insn" from
15383 const_rtx to const rtx_insn *.
15384 (df_dump_insn_top): Likewise.
15385 (df_dump_insn_bottom): Likewise.
15386 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
15387 (df_insn_debug_regno): Likewise.
15388 (debug_df_insn): Likewise.
15389 (DF_REF_INSN): Delete.
15390 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
15391 from rtx to rtx_insn *.
15392 (df_chain_insn_top_dump): Strengthen param "insn" from
15393 const_rtx to const rtx_insn *.
15394 (df_chain_insn_bottom_dump): Likewise.
15395 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
15396 rtx_insn *.
15397 (df_word_lr_simulate_uses): Likewise.
15398 (df_print_note): Likewise.
15399 (df_remove_dead_and_unused_notes): Likewise.
15400 (df_set_unused_notes_for_mw): Likewise.
15401 (df_set_dead_notes_for_mw): Likewise.
15402 (df_create_unused_note): Likewise.
15403 (df_simulate_find_defs): Likewise.
15404 (df_simulate_find_uses): Likewise.
15405 (df_simulate_find_noclobber_defs): Likewise.
15406 (df_simulate_defs): Likewise.
15407 (df_simulate_uses): Likewise.
15408 (df_simulate_one_insn_backwards): Likewise.
15409 (df_simulate_one_insn_forwards): Likewise.
15410 (df_md_simulate_one_insn): Likewise.
15411 * df-scan.c (df_uses_create): Likewise.
15412 (df_insn_create_insn_record): Likewise.
15413 (df_insn_delete): Likewise.
15414 (df_insn_rescan): Likewise.
15415 (df_insn_rescan_debug_internal): Likewise.
15416 (df_insn_change_bb): Likewise.
15417 (df_notes_rescan): Likewise.
15418 (df_refs_add_to_chains): Likewise.
15419 (df_insn_refs_verify): Likewise.
15420 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
15421 when invoking df_insn_delete.
15422 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
15423 (set_unique_reg_note): Add checked cast.
15424 * final.c (cleanup_subreg_operands): Likewise.
15425 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
15426 "insn" from rtx to rtx_insn *.
15427 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
15428 "last" from rtx to rtx_insn *.
15429 * ira-emit.c (change_regs_in_insn): New function.
15430 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
15431 Invoke change_regs_in_insn rather than change_regs.
15432 * ira.c (update_equiv_regs): Strengthen locals "insn",
15433 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
15434 for_each_rtx_in_insn rather than for_each_rtx.
15435 * recog.c (confirm_change_group): Add checked casts.
15436 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
15437 Add checked cast.
15438 (peep2_fill_buffer): Add checked cast.
15439 * rtlanal.c (remove_note): Likewise.
15440 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
15441 locals "next" "end" from rtx to rtx_insn *.
15442
15443 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15444
15445 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
15446 to rtx_insn *.
15447 (struct reg_use_data): Likewise for field "insn".
15448 (insn_cost): Likewise for param.
15449 (real_insn_for_shadow): Likewise for return type and param.
15450 (increase_insn_priority): Likewise for param 1.
15451 (debug_dependencies): Likewise for both params.
15452
15453 * haifa-sched.c (insn_delay): Likewise for param "insn".
15454 (real_insn_for_shadow): Likewise for return type and param "insn".
15455 (update_insn_after_change): Likewise for param "insn".
15456 (recompute_todo_spec): Likewise for param "next" and locals "pro",
15457 "other".
15458 (insn_cost): Likewise for param "insn".
15459 (increase_insn_priority): Likewise.
15460 (calculate_reg_deaths): Likewise.
15461 (setup_insn_reg_pressure_info): Likewise.
15462 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
15463 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
15464 (model_recompute): Likewise.
15465 (must_restore_pattern_p): Likewise for param "next".
15466 (model_excess_cost): Likewise for param "insn".
15467 (queue_remove): Likewise.
15468 (adjust_priority): Likewise for param "prev".
15469 (update_register_pressure): Likewise for param "insn".
15470 (setup_insn_max_reg_pressure): Likewise for local "insn".
15471 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
15472 (model_add_to_schedule): Likewise.
15473 (model_reset_queue_indices): Likewise for local "insn".
15474 (unschedule_insns_until): Strengthen local "recompute_vec" from
15475 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
15476 "con" from rtx to rtx_insn *.
15477 (restore_last_backtrack_point): Likewise for both locals "x". Add
15478 checked casts.
15479 (estimate_insn_tick): Likewise for param "insn".
15480 (commit_schedule): Likewise for params "prev_head", "tail" and
15481 local "x".
15482 (verify_shadows): Likewise for locals "i1", "i2".
15483 (dump_insn_stream): Likewise for params "head", "tail" and locals
15484 "next_tail", "insn".
15485 (schedule_block): Likewise for locals "insn", "x". Add a checked
15486 cast.
15487 (fix_inter_tick): Likewise for params "head", "tail".
15488 (create_check_block_twin): Likewise for local "jump".
15489 (haifa_change_pattern): Likewise for param "insn".
15490 (haifa_speculate_insn): Likewise.
15491 (dump_new_block_header): Likewise for params "head", "tail".
15492 (fix_jump_move): Likewise for param "jump".
15493 (move_block_after_check): Likewise.
15494 (sched_init_insn_luid): Likewise for param "insn".
15495 (sched_init_luids): Likewise for local "insn".
15496 (insn_luid): Likewise for param "insn".
15497 (init_h_i_d): Likewise.
15498 (haifa_init_h_i_d): Likewise for local "insn".
15499 (haifa_init_insn): Likewise for param "insn".
15500 * sched-deps.c (add_dependence): Likewise for local "real_pro",
15501 "other".
15502 (create_insn_reg_use): Likewise for param "insn".
15503 (setup_insn_reg_uses): Likewise. Add a checked cast.
15504 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
15505 "tail" from rtx to rtx_insn *.
15506 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
15507 "insn", "next_tail".
15508
15509 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15510
15511 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
15512 from rtx to rtx_insn *.
15513 (model_add_to_schedule): Likewise for locals "start", "end",
15514 "iter".
15515
15516 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15517
15518 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
15519 rtx_insn *.
15520 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
15521 "to" and locals "insn", "next", "copy". Remove now-redundant
15522 checked cast.
15523
15524 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15525
15526 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
15527 rtx_insn * and param 4 from rtx * to rtx_insn **.
15528 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
15529 param 2 from rtx * to rtx_insn **.
15530
15531 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
15532 rtx_insn * and final param from rtx * to rtx_insn **.
15533
15534 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
15535 from rtx to rtx_insn *.
15536 (try_head_merge_bb): Likewise for both locals named "move_upto".
15537 * df-problems.c (can_move_insns_across): Likewise for params
15538 "from", "to", "across_from", "across_to" and locals "insn",
15539 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
15540 rtx_insn **.
15541 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
15542 from rtx to rtx_insn *.
15543 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
15544 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
15545 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
15546 rtx_insn *.
15547 (noce_try_abs): Likewise.
15548 (noce_get_condition): Likewise for param "jump". Strengthen param
15549 "earliest" from rtx * to rtx_insn **.
15550 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
15551 rtx_insn *.
15552 (find_cond_trap): Likewise.
15553 (dead_or_predicable): Likewise for local "earliest".
15554 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
15555 checked cast.
15556 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
15557 and local "prev". Strengthen param "earliest" from rtx * to
15558 rtx_insn **.
15559 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
15560 Strengthen param "earliest" from rtx * to rtx_insn **.
15561
15562 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15563
15564 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
15565 "to" and local "insn" from rtx to rtx_insn *.
15566
15567 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15568
15569 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
15570 from rtx to rtx_insn *.
15571 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
15572 (code_motion_path_driver): Likewise for local "last_insn".
15573 (simplify_changed_insns): Likewise for local "insn".
15574
15575 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15576
15577 * rtl.h (push_to_sequence): Strengthen param from rtx to
15578 rtx_insn *.
15579 (push_to_sequence2): Likewise for both params.
15580 (delete_insns_since): Likewise for param.
15581 (reorder_insns_nobb): Likewise for all three params.
15582 (set_new_first_and_last_insn): Likewise for both params.
15583
15584 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
15585 rtx_insn *. Remove now-redundant cast.
15586 (set_last_insn): Likewise.
15587
15588 * builtins.c (expand_builtin_return): Strengthen local
15589 "call_fusage" from rtx to rtx_insn *.
15590 * cfgrtl.c (create_basic_block_structure): Likewise for local
15591 "after".
15592 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
15593 "first", "last" and local "insn".
15594 (delete_insns_since): Likewise for param "from".
15595 (reorder_insns_nobb): Likewise for params "from", "to", "after"
15596 and local "x".
15597 (push_to_sequence): Likewise for param "first" and local "last".
15598 (push_to_sequence2): Likewise for params "first" and "last".
15599 * lra.c (emit_add3_insn): Likewise for local "last".
15600 (lra_emit_add): Likewise.
15601 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
15602 "last_insn".
15603 (process_address_1): Likewise for locals "insn", last".
15604 * modulo-sched.c (ps_first_note): Likewise for return type.
15605 * optabs.c (expand_binop_directly): Likewise for param "last".
15606
15607 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15608
15609 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
15610 to rtx_insn*.
15611 * emit-rtl.c (get_last_insn_anywhere): Likewise.
15612
15613 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15614
15615 * function.h (struct sequence_stack): Strengthen fields "first"
15616 and "last" from rtx to rtx_insn *.
15617 (struct emit_status): Likewise for fields "x_first_insn" and
15618 "x_last_insn".
15619
15620 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
15621 (set_first_insn): Add checked cast.
15622 (get_last_insn): Remove now-redundant checked cast.
15623 (set_last_insn): Add checked cast.
15624
15625 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
15626 "saved_first" and "saved_last" from rtx to rtx_insn *.
15627
15628 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15629
15630 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
15631 (unlink_insn_chain): Strengthen both params from rtx to
15632 rtx_insn *.
15633
15634 * cfgrtl.c (cfg_layout_function_header): Likewise for this
15635 variable.
15636 (unlink_insn_chain): Likewise for params "first" and "last".
15637 Remove now-redundant checked cast.
15638 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
15639 (fixup_reorder_chain): Strengthen local "insn" from rtx to
15640 rtx_insn *.
15641 * emit-rtl.c (link_insn_into_chain): Likewise for all three
15642 params.
15643 (add_insn): Likewise for param "insn" and local "prev".
15644 (add_insn_after_nobb): Likewise for both params and local "next".
15645 (add_insn_before_nobb): Likewise for both params and local "prev".
15646 (add_insn_after): Rename param "after" to "uncast_after",
15647 introducing local "after" with another checked cast.
15648 (add_insn_before): Rename params "insn" and "before", giving them
15649 "uncast_" prefixes, adding the old names back using checked casts.
15650 (emit_note_after): Likewise for param "after".
15651 (emit_note_before): Likewise for param "before".
15652 (emit_label): Add a checked cast.
15653
15654 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15655
15656 * cselib.h (cselib_record_sets_hook): Strengthen initial param
15657 "insn" from rtx to rtx_insn *.
15658
15659 * cselib.c (cselib_record_sets_hook): Likewise.
15660
15661 * var-tracking.c (add_with_sets): Likewise, renaming back from
15662 "uncast_insn" to "insn" and eliminating the checked cast from rtx
15663 to rtx_insn *.
15664
15665 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15666
15667 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
15668 and "header_" from rtx to rtx_insn *.
15669 (struct basic_block_d): Likewise for field "head_" within "x"
15670 field of union basic_block_il_dependent.
15671 (BB_HEAD): Drop function...
15672 (SET_BB_HEAD): ...and this function in favor of...
15673 (BB_HEAD): ...reinstate macro.
15674 (BB_END): Drop function...
15675 (SET_BB_END): ...and this function in favor of...
15676 (BB_END): ...reinstate macro.
15677 (BB_HEADER): Drop function...
15678 (SET_BB_HEADER): ...and this function in favor of...
15679 (BB_HEADER): ...reinstate macro.
15680
15681 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
15682 (fix_crossing_unconditional_branches): Likewise.
15683 * caller-save.c (save_call_clobbered_regs): Likewise.
15684 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
15685 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
15686 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
15687 (merge_blocks_move_successor_nojumps): Likewise.
15688 (outgoing_edges_match): Update use of for_each_rtx to
15689 for_each_rtx_in_insn.
15690 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
15691 (expand_gimple_cond): Likewise.
15692 (expand_gimple_tailcall): Likewise.
15693 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
15694 SET_BB_END.
15695 (construct_exit_block): Drop use of SET_BB_END.
15696 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
15697 rtx_insn *.
15698 (delete_insn): Rename param "insn" to "uncast_insn", introducing
15699 a new local "insn" with a checked cast to rtx_insn *. Drop use of
15700 SET_BB_HEAD and SET_BB_END.
15701 (create_basic_block_structure): Drop use of SET_BB_HEAD and
15702 SET_BB_END.
15703 (rtl_delete_block): Drop use of SET_BB_HEAD.
15704 (rtl_split_block): Drop use of SET_BB_END.
15705 (emit_nop_for_unique_locus_between): Likewise.
15706 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
15707 (block_label): Drop use of SET_BB_HEAD.
15708 (fixup_abnormal_edges): Drop use of SET_BB_END.
15709 (record_effective_endpoints): Drop use of SET_BB_HEADER.
15710 (relink_block_chain): Likewise.
15711 (fixup_reorder_chain): Drop use of SET_BB_END.
15712 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
15713 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
15714 rtx_insn **. Drop use of SET_BB_HEADER.
15715 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
15716 SET_BB_HEAD.
15717 (BB_HEAD): Delete this function.
15718 (SET_BB_HEAD): Likewise.
15719 (BB_END): Likewise.
15720 (SET_BB_END): Likewise.
15721 (BB_HEADER): Likewise.
15722 (SET_BB_HEADER): Likewise.
15723 * emit-rtl.c (add_insn_after): Rename param "insn" to
15724 "uncast_insn", adding a new local "insn" and a checked cast to
15725 rtx_insn *. Drop use of SET_BB_END.
15726 (remove_insn): Strengthen locals "next" and "prev" from rtx to
15727 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
15728 (reorder_insns): Drop use of SET_BB_END.
15729 (emit_insn_after_1): Strengthen param "first" and locals "last",
15730 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
15731 (emit_pattern_after_noloc): Add checked cast.
15732 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
15733 (restore_other_notes): Likewise.
15734 (move_insn): Likewise.
15735 (sched_extend_bb): Likewise.
15736 (fix_jump_move): Likewise.
15737 * ifcvt.c (noce_process_if_block): Likewise.
15738 (dead_or_predicable): Likewise.
15739 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
15740 * reg-stack.c (change_stack): Drop use of SET_BB_END.
15741 * sel-sched-ir.c (sel_move_insn): Likewise.
15742 * sel-sched.c (move_nop_to_previous_block): Likewise.
15743
15744 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
15745 SET_BB_END.
15746 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
15747
15748 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15749
15750 * basic-block.h (create_basic_block_structure): Strengthen params
15751 1 "head" and 2 "end" from rtx to rtx_insn *.
15752 * cfgrtl.c (create_basic_block_structure): Likewise.
15753 (rtl_create_basic_block): Update casts from void * to rtx to
15754 rtx_insn *, so that we can pass them as rtx_insn * to
15755 create_basic_block_structure.
15756 * sel-sched-ir.c (sel_create_basic_block): Likewise.
15757
15758 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15759
15760 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
15761 rtx_insn **.
15762 (check_for_inc_dec): Strengthen param "insn" from rtx to
15763 rtx_insn *.
15764
15765 * cselib.h (cselib_process_insn): Likewise.
15766
15767 * cselib.c (cselib_record_sets): Likewise.
15768 (cselib_process_insn): Likewise.
15769
15770 * dse.c (struct insn_info): Likewise for field "insn".
15771 (check_for_inc_dec_1): Likewise for local "insn".
15772 (check_for_inc_dec): Likewise for param "insn".
15773 (scan_insn): Likewise.
15774 (dse_step1): Likewise for local "insn".
15775
15776 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
15777 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
15778
15779 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15780
15781 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
15782 from rtx to rtx_insn *.
15783 (DEP_PRO): Delete this function and...
15784 (SET_DEP_PRO): ...this function in favor of...
15785 (DEP_PRO): ...reinstate this macro.
15786 (DEP_CON): Delete this function and...
15787 (SET_DEP_CON): ...this function in favor of...
15788 (DEP_CON): ...reinstate this old macro.
15789 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
15790 (init_dep): Likewise.
15791 (set_priorities): Likewise for both params.
15792 (sd_copy_back_deps): Likewise for params 1 and 2.
15793
15794 * haifa-sched.c (priority): Likewise for param "insn" and local
15795 "next".
15796 (set_priorities): Likewise for params "head" and "tail" and local
15797 "insn".
15798 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
15799 local "consumer".
15800 (add_to_speculative_block): Add a checked cast.
15801 (create_check_block_twin): Drop use of SET_DEP_CON.
15802 (add_jump_dependencies): Strengthen params "insn" and "jump" from
15803 rtx to rtx_insn *.
15804
15805 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
15806 Drop use of SET_DEP_PRO
15807 (init_dep): Strengthen params "pro" and "con" from rtx to
15808 rtx_insn *.
15809 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
15810 use of SET_DEP_CON.
15811 (DEP_PRO): Delete.
15812 (DEP_CON): Delete.
15813 (SET_DEP_PRO): Delete.
15814 (SET_DEP_CON): Delete.
15815
15816 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15817
15818 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
15819 from rtx to rtx_insn *.
15820 (VINSN_INSN_RTX): Eliminate rvalue function and...
15821 (SET_VINSN_INSN): ...lvalue function in favor of...
15822 (VINSN_INSN_RTX): reinstate this old macro.
15823
15824 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
15825 in favor of VINSN_INSN_RTX.
15826 (VINSN_INSN_RTX): Delete this function.
15827 (SET_VINSN_INSN_RTX): Likewise.
15828
15829 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15830
15831 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
15832 (BND_TO): Delete this function and...
15833 (SET_BND_TO): ...this functions in favor of...
15834 (BND_TO): ...reinstating this macro.
15835 (struct _fence): Strengthen field "executing_insns" from
15836 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
15837 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
15838 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
15839 and param "insn" from rtx to insn_t.
15840 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
15841 rtx_insn *.
15842
15843 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
15844 vec<rtx_insn *> .
15845 (rtx_vec_t): Likewise.
15846 (struct sched_deps_info_def): Strengthen param of "start_insn"
15847 callback from rtx to rtx_insn *. Likewise for param "insn2" of
15848 "note_mem_dep" callback and first param of "note_dep" callback.
15849
15850 * haifa-sched.c (add_to_speculative_block): Strengthen param
15851 "insn" from rtx to rtx_insn *.
15852 (clear_priorities): Likewise.
15853 (calc_priorities): Likewise for local "insn".
15854
15855 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
15856 Remove redundant checked cast.
15857 (haifa_note_mem_dep): Likewise for param "pending_insn".
15858 (haifa_note_dep): Likewise for param "elem".
15859 (note_mem_dep): Likewise for param "e".
15860 (sched_analyze_1): Add checked casts.
15861 (sched_analyze_2): Likewise.
15862
15863 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
15864 from rtx to rtx_insn *.
15865 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
15866 from vec<rtx> * to vec<rtx_insn *> *.
15867
15868 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
15869 scaffolding.
15870 (flist_add): Strengthen param "executing_insns" from
15871 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
15872 (advance_deps_context): Remove now-redundant checked cast.
15873 (init_fences): Replace uses of NULL_RTX with NULL.
15874 (merge_fences): Strengthen params "last_scheduled_insn" and
15875 "sched_next" from rtx to rtx_insn * and "executing_insns" from
15876 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
15877 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
15878 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
15879 an instruction, rather than doing double-duty as a pattern.
15880 (return_nop_to_pool): Update for change of insn_t.
15881 (deps_init_id): Remove now-redundant checked cast.
15882 (struct sched_scan_info_def): Strengthen param of "init_insn"
15883 callback from rtx to insn_t.
15884 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
15885 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
15886 NULL.
15887 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
15888 "end" from rtx to rtx_insn *.
15889 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
15890 (rtx insn_rtx, bool force_unique_p)
15891 (BND_TO): Delete function.
15892 (SET_BND_TO): Delete function.
15893
15894 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
15895 rtx to rtx_insn *.
15896 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
15897 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
15898 rtx to rtx_insn *.
15899 (undo_transformations): Likewise for param "insn".
15900 (update_liveness_on_insn): Likewise.
15901 (compute_live_below_insn): Likewise for param "insn" and local
15902 "succ".
15903 (update_data_sets): Likewise for param "insn".
15904 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
15905 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
15906 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
15907 rtx_insn *.
15908 (move_cond_jump): Likewise for param "insn".
15909 (move_cond_jump): Drop use of SET_BND_TO.
15910 (compute_av_set_on_boundaries): Likewise.
15911 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
15912 (update_and_record_unavailable_insns): Strengthen local "bb_end"
15913 from rtx to rtx_insn *.
15914 (maybe_emit_renaming_copy): Likewise for param "insn".
15915 (maybe_emit_speculative_check): Likewise.
15916 (handle_emitting_transformations): Likewise.
15917 (remove_insn_from_stream): Likewise.
15918 (code_motion_process_successors): Strengthen local "succ" from rtx
15919 to insn_t.
15920
15921 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15922
15923 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
15924 ilist_t, not _xlist_t;
15925 (ILIST_INSN): Define in terms of new union field "insn".
15926 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
15927 _XLIST_NEXT.
15928 (struct _list_node): Add new field "insn" to the union, of type
15929 insn_t.
15930 (ilist_add): Replace macro with an inline function, requiring an
15931 insn_t.
15932 (ilist_remove): Define this macro directly in terms of
15933 _list_remove, rather than indirectly via _xlist_remove.
15934 (ilist_clear): Likewise, in terms of _list_clear rather than
15935 _xlist_clear.
15936 (ilist_is_in_p): Replace macro with an inline function, requiring
15937 an insn_t.
15938 (_list_iter_cond_insn): New function.
15939 (ilist_iter_remove): Define this macro directly in terms of
15940 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
15941 (ilist_iterator): Define directly in terms of _list_iterator
15942 rather than indirectly through _xlist_iterator.
15943 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
15944 than in terms of _FOR_EACH_X.
15945 (FOR_EACH_INSN_1): Likewise.
15946
15947 2014-08-26 Joseph Myers <joseph@codesourcery.com>
15948
15949 PR target/60606
15950 PR target/61330
15951 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
15952 DECL_HARD_REGISTER and return for invalid register specifications.
15953 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
15954 DECL_HARD_REGISTER, call expand_one_error_var.
15955 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
15956 CC_REGNUM with non-MODE_CC modes.
15957 (arm_regno_class): Return NO_REGS for PC_REGNUM.
15958
15959 2014-08-26 Marek Polacek <polacek@redhat.com>
15960
15961 PR c/61271
15962 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
15963
15964 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
15965
15966 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
15967 qi cost; add di cost.
15968 (cortexa57_addrcost_table): Likewise.
15969
15970 2014-08-26 Marek Polacek <polacek@redhat.com>
15971
15972 PR c/61271
15973 * expr.c (is_aligning_offset): Remove logical not.
15974
15975 2014-08-26 Marek Polacek <polacek@redhat.com>
15976
15977 PR c/61271
15978 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
15979 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
15980
15981 2014-08-26 Richard Biener <rguenther@suse.de>
15982
15983 PR tree-optimization/62175
15984 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
15985 expand possibly trapping operations.
15986
15987 2014-08-26 David Malcolm <dmalcolm@redhat.com>
15988
15989 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
15990 "insn" from rtx to rtx_insn *.
15991 (permute_load): Likewise for param "insn".
15992 (permute_store): Likewise.
15993 (handle_special_swappables): Likewise for local "insn".
15994 (replace_swap_with_copy): Likewise for locals "insn" and
15995 "new_insn".
15996 (rs6000_analyze_swaps): Likewise for local "insn".
15997
15998 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15999
16000 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
16001 to rtx_insn *.
16002
16003 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16004
16005 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
16006 "note_list" from rtx to rtx_insn *.
16007 (BB_NOTE_LIST): Replace this function and...
16008 (SET_BB_NOTE_LIST): ...this function with...
16009 (BB_NOTE_LIST): ...the former macro implementation.
16010
16011 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
16012 local "from_start" from rtx to rtx_insn *. Strengthen param
16013 "to_endp" from rtx * to rtx_insn **.
16014
16015 * haifa-sched.c (concat_note_lists): Likewise.
16016 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
16017 BB_NOTE_LIST.
16018 (sel_restore_notes): Likewise.
16019 (move_bb_info): Likewise.
16020 (BB_NOTE_LIST): Delete this function.
16021 (SET_BB_NOTE_LIST): Delete this function.
16022 * sel-sched.c (create_block_for_bookkeeping): Eliminate
16023 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
16024
16025 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16026
16027 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
16028 from rtx * to rtx_insn **.
16029 (reorder2): Likewise.
16030 (dependencies_evaluation_hook): Strengthen params "head", "tail"
16031 from rtx to rtx_insn *.
16032
16033 * doc/tm.texi: Update mechanically for above change to target.def.
16034
16035 * sched-int.h (note_list): Strengthen this variable from rtx to
16036 rtx_insn *.
16037 (remove_notes): Likewise for both params.
16038 (restore_other_notes): Likewise for return type and first param.
16039 (struct ready_list): Strengthen field "vec" from rtx * to
16040 rtx_insn **.
16041 (struct dep_replacement): Strenghten field "insn" from rtx to
16042 rtx_insn *.
16043 (struct deps_desc): Likewise for fields "last_debug_insn",
16044 "last_args_size".
16045 (struct haifa_sched_info): Likewise for callback field
16046 "can_schedule_ready_p"'s param, for first param of "new_ready"
16047 callback field, for both params of "rank" callback field, for
16048 first field of "print_insn" callback field (with a const), for
16049 both params of "contributes_to_priority" callback, for param
16050 of "insn_finishes_block_p" callback, for fields "prev_head",
16051 "next_tail", "head", "tail", for first param of "add_remove_insn"
16052 callback, for first param of "begin_schedule_ready" callback, for
16053 both params of "begin_move_insn" callback, and for second param
16054 of "advance_target_bb" callback.
16055 (add_dependence): Likewise for params 1 and 2.
16056 (sched_analyze): Likewise for params 2 and 3.
16057 (deps_analyze_insn): Likewise for param 2.
16058 (ready_element): Likewise for return type.
16059 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
16060 (try_ready): Strenghten param from rtx to rtx_insn *.
16061 (sched_emit_insn): Likewise for return type.
16062 (record_delay_slot_pair): Likewise for params 1 and 2.
16063 (add_delay_dependencies): Likewise for param.
16064 (contributes_to_priority): Likewise for both params.
16065 (find_modifiable_mems): Likewise.
16066
16067 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
16068 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
16069 "first_older_only_insn" from rtx to rtx_insn *.
16070 (arm_sched_reorder): Strengthen param "ready" from rtx * to
16071 rtx_insn **.
16072
16073 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
16074 "last_scheduled_iter0" from rtx to rtx_insn *.
16075 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
16076 (c6x_sched_reorder_1): Strengthen param "ready" and locals
16077 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
16078 "insn" from rtx to rtx_insn *.
16079 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
16080 rtx_insn **.
16081 (c6x_sched_reorder2): Strengthen param "ready" and locals
16082 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
16083 "insn" from rtx to rtx_insn *.
16084 (c6x_variable_issue): Add a checked cast when assigning from insn
16085 to ss.last_scheduled_iter0.
16086 (split_delayed_branch): Strengthen param "insn" and local "i1"
16087 from rtx to rtx_insn *.
16088 (split_delayed_nonbranch): Likewise.
16089 (undo_split_delayed_nonbranch): Likewise for local "insn".
16090 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
16091 "entry_after", "end_packet", "head_insn", "tail_insn",
16092 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
16093 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
16094 to rtx_insn **. Remove now-redundant checked cast on last_insn,
16095 but add a checked cast on loop->start_label. Consolidate calls to
16096 avoid assigning result of gen_spkernel to "insn", now an
16097 rtx_insn *.
16098
16099 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
16100 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
16101 rtx to rtx_insn *.
16102 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
16103 rtx_insn **. Strengthen locals "top", "next" from rtx to
16104 rtx_insn *.
16105 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
16106 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
16107 (add_parameter_dependencies): Strengthen params "call", "head" and
16108 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
16109 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
16110 (add_dependee_for_func_arg): Likewise for param "arg" and local
16111 "insn".
16112 (ix86_dependencies_evaluation_hook): Likewise for params "head",
16113 "tail" and locals "insn", "first_arg".
16114
16115 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
16116 for params "head", "tail" and locals "insn", "next", "next_tail".
16117 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
16118 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
16119 "insn", "lowest", "highest" from rtx to rtx_insn *.
16120 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
16121 rtx_insn **.
16122 (ia64_sched_reorder2): Likewise.
16123
16124 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
16125 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
16126 from rtx * to rtx_insn **.
16127 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
16128 rtx_insn **.
16129 (mep_print_sched_insn): Strengthen param "insn" from rtx to
16130 rtx_insn *.
16131 (mep_sched_reorder): Strengthen param "ready" from rtx * to
16132 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
16133 to rtx_insn *.
16134
16135 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
16136 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
16137 to rtx_insn *.
16138 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
16139 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
16140 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
16141 rtx_insn **.
16142 (vr4130_reorder): Likewise.
16143 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
16144 rtx to rtx_insn *.
16145 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
16146 rtx_insn **.
16147 (mips_sched_reorder): Likewise.
16148 (mips_sched_reorder2): Likewise.
16149
16150 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
16151
16152 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
16153 Strengthen local "tmp" from rtx to rtx_insn *.
16154 (rs6000_sched_reorder2): Likewise.
16155
16156 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
16157 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
16158 (s390_sched_reorder): Strengthen param "ready" from rtx * to
16159 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
16160
16161 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
16162 "tmp2" from rtx to rtx_insn *.
16163 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
16164 Strengthen local "insn" from rtx to rtx_insn *.
16165 (ready_reorder): Strengthen param "ready" from rtx * to
16166 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
16167 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
16168 (sh_reorder2): Likewise.
16169
16170 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
16171 local "insn" from rtx to rtx_insn *.
16172
16173 * haifa-sched.c (note_list): Strengthen this variable from rtx to
16174 rtx_insn *.
16175 (scheduled_insns): Strengthen this variable from vec<rtx> to
16176 vec<rtx_insn *>.
16177 (set_modulo_params): Likewise for locals "i1", "i2".
16178 (record_delay_slot_pair): Likewise for params "i1", "i2".
16179 (add_delay_dependencies): Likewise for param "insn".
16180 (cond_clobbered_p): Likewise.
16181 (recompute_todo_spec): Likewise for local "prev".
16182 (last_scheduled_insn): Likewise for this variable.
16183 (nonscheduled_insns_begin): Likewise.
16184 (model_set_excess_costs): Strengthen param "insns" from rtx * to
16185 rtx_insn **.
16186 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
16187 rtx_insn *.
16188 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
16189 Strengthen local "insn" from rtx to rtx_insn *.
16190 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
16191 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
16192 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
16193 (ready_remove_first): Likewise for return type and local "t".
16194 (ready_element): Likewise for return type.
16195 (ready_remove): Likewise for return type and local "t".
16196 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
16197 (check_clobbered_conditions): Strengthen local "x" from rtx to
16198 rtx_insn *, adding a checked cast.
16199 (schedule_insn): Likewise for param "insn".
16200 (remove_notes): Likewise for params "head", "tail" and locals
16201 "next_tail", "insn", "next".
16202 (struct haifa_saved_data): Likewise for fields
16203 "last_scheduled_insn", "nonscheduled_insns_begin".
16204 (save_backtrack_point): Update for change to field "vec" of
16205 struct ready_list.
16206 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
16207 rtx_insn **.
16208 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
16209 from rtx to rtx_insn *
16210 (resolve_dependencies): Strengthen param "insn" from rtx to
16211 rtx_insn *
16212 (restore_other_notes): Likewise for return type, for param "head"
16213 and local "note_head".
16214 (undo_all_replacements): Likewise for local "insn".
16215 (first_nonscheduled_insn): Likewise for return type and local "insn".
16216 (queue_to_ready): Likewise for local "insn", adding checked casts.
16217 (early_queue_to_ready): Likewise for local "insn".
16218 (debug_ready_list_1): Strengthen local "p" from rtx * to
16219 rtx_insn **.
16220 (move_insn): Strengthen param "insn" and local "note" from rtx to
16221 rtx_insn *
16222 (insn_finishes_cycle_p): Likewise for param "insn".
16223 (max_issue): Likewise for local "insn".
16224 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
16225 to rtx_insn **.
16226 (commit_schedule): Strengthen param "prev_head" and local "insn"
16227 from rtx to rtx_insn *
16228 (prune_ready_list): Likewise for local "insn".
16229 (schedule_block): Likewise for locals "prev_head", "head", "tail",
16230 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
16231 (set_priorities): Likewise for local "prev_head".
16232 (try_ready): Likewise for param "next".
16233 (fix_tick_ready): Likewise.
16234 (change_queue_index): Likewise.
16235 (sched_extend_ready_list): Update for change to field "vec" of
16236 struct ready_list.
16237 (generate_recovery_code): Strengthen param "insn" from rtx to
16238 rtx_insn *.
16239 (begin_speculative_block): Likewise.
16240 (create_check_block_twin): Likewise for param "insn" and locals
16241 "label", "check", "twin". Introduce local "check_pat" to avoid
16242 "check" being used as a plain rtx before being used as an insn.
16243 (fix_recovery_deps): Add a checked cast to rtx_insn * when
16244 extracting elements from ready_list.
16245 (sched_remove_insn): Strengthen param "insn" from rtx to
16246 rtx_insn *.
16247 (sched_emit_insn): Likewise for return type.
16248 (ready_remove_first_dispatch): Likewise for return type and local
16249 "insn".
16250
16251 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
16252
16253 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
16254 const rtx_insn *.
16255
16256 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
16257 from rtx to rtx_insn *.
16258 (add_dependence_list): Likewise for param "insn". Add a checked
16259 cast.
16260 (add_dependence_list_and_free): Strengthen param "insn" from rtx
16261 to rtx_insn *. Strengthen param "list_p" from rtx * to
16262 rtx_insn **.
16263 (chain_to_prev_insn): Strengthen param "insn" and locals
16264 "prec_nonnote", "i" from rtx to rtx_insn *.
16265 (flush_pending_lists): Likewise for param "insn".
16266 (cur_insn): Likewise for this variable.
16267 (haifa_start_insn): Add a checked cast.
16268 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
16269 (sched_analyze_reg): Likewise for param "insn".
16270 (sched_analyze_1): Likewise.
16271 (sched_analyze_2): Likewise. Add checked casts.
16272 (sched_analyze_insn): Likewise. Also for local "prev".
16273 (deps_analyze_insn): Likewise for param "insn".
16274 (sched_analyze): Likewise for params "head", "tail" and local "insn".
16275 (add_dependence_1): Likewise for params "insn", "elem".
16276 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
16277 (parse_add_or_inc): Likewise for param "insn".
16278 (find_inc): Likewise for local "inc_cand".
16279 (find_modifiable_mems): Likewise for params "head", "tail" and
16280 locals "insn", "next_tail".
16281
16282 * sched-ebb.c (init_ready_list): Likewise for local "insn".
16283 (begin_schedule_ready): Likewise for param "insn".
16284 (begin_move_insn): Likewise for params "insn" and "last".
16285 (ebb_print_insn): Strengthen param "insn" from const_rtx to
16286 const rtx_insn *.
16287 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
16288 (ebb_contributes_to_priority): Likewise for params "next", "insn".
16289 (ebb_add_remove_insn): Likewise for param "insn".
16290 (advance_target_bb): Likewise.
16291
16292 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
16293 "insn".
16294 (check_live): Likewise for param "insn".
16295 (init_ready_list): Likewise for local "insn".
16296 (can_schedule_ready_p): Likewise for param "insn".
16297 (begin_schedule_ready): Likewise.
16298 (new_ready): Likewise for param "next".
16299 (rgn_print_insn): Likewise for param "insn".
16300 (rgn_rank): Likewise for params "insn1", "insn2".
16301 (contributes_to_priority): Likewise for params "next", "insn".
16302 (rgn_insn_finishes_block_p): Likewise for param "insn".
16303 (add_branch_dependences): Likewise for params "head", "tail" and
16304 locals "insn", "last".
16305 (rgn_add_remove_insn): Likewise for param "insn".
16306 (advance_target_bb): Likewise.
16307
16308 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
16309 const_rtx to const rtx_insn *.
16310
16311 * sel-sched-dump.h (sel_print_insn): Likewise.
16312
16313 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
16314 (deps_init_id): Likewise.
16315
16316 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
16317 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
16318 rtx_insn **.
16319
16320 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16321
16322 * output.h (final_start_function): Strengthen param 1 from rtx to
16323 rtx_insn *.
16324
16325 * final.c (final_start_function): Likewise, renaming back from
16326 "uncast_first" to "first", and dropping the checked cast from rtx
16327 to rtx_insn *.
16328
16329 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16330
16331 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
16332 * final.c (final): Likewise. Rename param back from
16333 "uncast_first" to "first" and eliminate the checked cast from rtx
16334 to rtx_insn *.
16335
16336 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16337
16338 * output.h (shorten_branches): Strengthen param from rtx to
16339 rtx_insn *.
16340
16341 * final.c (shorten_branches): Likewise, renaming param back from
16342 "uncast_first" to "first", and dropping the checked cast from rtx
16343 to rtx_insn *.
16344
16345 * genattr.c (gen_attr): Likewise when writing out the prototype of
16346 shorten_branches.
16347
16348 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16349
16350 * sched-int.h (struct haifa_sched_info): Strengthen fields
16351 "prev_head" and "next_tail" from rtx to rtx_insn *.
16352
16353 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16354
16355 * rtl.h (rtx_jump_table_data::get_labels): New method.
16356 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
16357 with use of the new rtx_jump_table_data::get_labels method.
16358 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
16359 to rtx_jump_table_data *. Simplify by using get_labels method.
16360 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
16361 a dyn_cast, introducing local "table", using it to replace
16362 label-lookup logic with a get_labels method call.
16363 (patch_jump_insn): Simplify using get_labels method.
16364 * dwarf2cfi.c (create_trace_edges): Likewise.
16365 * rtlanal.c (label_is_jump_target_p): Likewise.
16366
16367 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16368
16369 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
16370 to rtx_insn *.
16371
16372 * emit-rtl.c (unshare_all_rtl_1): Likewise.
16373 (unshare_all_rtl_again): Likewise, also for local "p".
16374
16375 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16376
16377 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
16378 to rtx_insn *.
16379 * cfgrtl.c (delete_insn_and_edges): Likewise.
16380
16381 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16382
16383 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
16384 from rtx to rtx_insn *.
16385
16386 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
16387
16388 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16389
16390 * function.c (thread_prologue_and_epilogue_insns): Likewise for
16391 locals "returnjump", "epilogue_end", "insn", "next".
16392
16393 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
16394 "returnjump" from rtx * to rtx_insn **.
16395 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
16396
16397 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16398
16399 * basic-block.h (struct edge_def). Strengthen "r" within
16400 union edge_def_insns from rtx to rtx_insn *.
16401
16402 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
16403 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
16404 rtx_insn *.
16405 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
16406 from rtx to rtx_insn *.
16407 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
16408 rtx_insn *.
16409 * postreload-gcse.c (reg_killed_on_edge): Likewise.
16410 (reg_used_on_edge): Likewise.
16411 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
16412 (gt_pch_nx): New overload for rtx_insn *&.
16413 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
16414 from rtx to rtx_insn *.
16415
16416 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16417
16418 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
16419 from rtx to rtx_insn *.
16420 (BB_FOOTER): Replace function with access macro.
16421 (SET_BB_FOOTER): Delete.
16422
16423 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
16424 with BB_FOOTER.
16425 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
16426 (emit_barrier_after_bb): Likewise.
16427 (record_effective_endpoints): Likewise.
16428 (relink_block_chain): Likewise.
16429 (fixup_fallthru_exit_predecessor): Likewise.
16430 (cfg_layout_duplicate_bb): Likewise.
16431 (cfg_layout_split_block): Likewise.
16432 (cfg_layout_delete_block): Likewise.
16433 (cfg_layout_merge_blocks): Likewise.
16434 (BB_FOOTER): Delete function.
16435 (SET_BB_FOOTER): Delete function.
16436 * combine.c (update_cfg_for_uncondjump): Replace uses of
16437 SET_BB_FOOTER with BB_FOOTER.
16438
16439 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16440
16441 * except.h (struct eh_landing_pad_d): Strengthen field
16442 "landing_pad" from rtx to rtx_code_label *.
16443
16444 * except.c (sjlj_emit_dispatch_table): Likewise for param
16445 "dispatch_label"
16446 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
16447
16448 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16449
16450 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
16451 first param from rtx to rtx_insn *.
16452 * config/xtensa/xtensa.c (struct machine_function): Likewise for
16453 field "set_frame_ptr_insn".
16454 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
16455 "csend" from rtx to rtx_code_label *.
16456 (xtensa_expand_atomic): Likewise for local "csloop".
16457 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
16458 rtx_insn *.
16459 (xtensa_call_tls_desc): Likewise for return type and locals
16460 "call_insn", "insns".
16461 (xtensa_legitimize_tls_address): Likewise for local "insns".
16462 (xtensa_expand_prologue): Likewise for locals "insn", "first".
16463
16464 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16465
16466 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
16467 first param from rtx to rtx_insn *.
16468 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
16469 "insn".
16470
16471 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16472
16473 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
16474 Strengthen param 1 from rtx to rtx_insn *.
16475 (tilepro_output_cbranch): Likewise.
16476 (tilepro_adjust_insn_length): Likewise.
16477 (tilepro_final_prescan_insn): Likewise for sole param.
16478
16479 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
16480 Likewise for local "last".
16481 (cbranch_predicted_p): Likewise for param "insn".
16482 (tilepro_output_simple_cbranch_with_opcode): Likewise.
16483 (tilepro_output_cbranch_with_opcode): Likewise.
16484 (tilepro_output_cbranch): Likewise.
16485 (frame_emit_load): Likewise for return type and locals "seq",
16486 "insn".
16487 (emit_sp_adjust): Likewise for return type and local "insn".
16488 (tilepro_expand_epilogue): Likewise for locals "last_insn",
16489 "insn".
16490 (tilepro_adjust_insn_length): Likewise for param "insn".
16491 (next_insn_to_bundle): Likewise for return type and params
16492 "r", "end".
16493 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
16494 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
16495 local "new_insns".
16496 (match_addli_pcrel): Likewise for param "insn".
16497 (replace_addli_pcrel): Likewise.
16498 (match_auli_pcrel): Likewise.
16499 (replace_auli_pcrel): Likewise.
16500 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
16501 "next_insn".
16502 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
16503 "queue", "next_queue", "prev".
16504 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
16505 (tilepro_final_prescan_insn): Likewise for param "insn".
16506
16507 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16508
16509 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
16510 Strengthen param 1 from rtx to rtx_insn *.
16511 (tilegx_output_cbranch): Likewise.
16512 (tilegx_adjust_insn_length): Likewise.
16513 (tilegx_final_prescan_insn): Likewise for sole param.
16514
16515 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
16516 or local "last".
16517 (cbranch_predicted_p): Likewise for param "insn".
16518 (tilegx_output_simple_cbranch_with_opcode): Likewise.
16519 (tilegx_output_cbranch_with_opcode): Likewise.
16520 (tilegx_output_cbranch): Likewise.
16521 (frame_emit_load): Likewise for return type.
16522 (set_frame_related_p): Likewise for locals "seq", "insn".
16523 (emit_sp_adjust): Likewise for return type, and for local "insn".
16524 Introduce local "pat" for use in place of "insn" where the latter
16525 isn't an instruction.
16526 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
16527 from rtx to rtx_insn *.
16528 (tilegx_adjust_insn_length): Likewise for param "insn".
16529 (next_insn_to_bundle): Likewise for return type and params "r" and
16530 "end".
16531 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
16532 "end".
16533 (replace_insns): Likewise for params "old_insn", "new_insns".
16534 (replace_mov_pcrel_step1): Likewise for param "insn" and local
16535 "new_insns".
16536 (replace_mov_pcrel_step2): Likewise.
16537 (replace_mov_pcrel_step3): Likewise.
16538 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
16539 "next_insn".
16540 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
16541 "queue", "next_queue", "prev".
16542 (tilegx_output_mi_thunk): Likewise for local "insn".
16543 (tilegx_final_prescan_insn): Likewise for param "insn".
16544
16545 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16546
16547 * config/spu/spu.c (frame_emit_store): Strengthen return type from
16548 rtx to rtx_insn *.
16549 (frame_emit_load): Likewise.
16550 (frame_emit_add_imm): Likewise, also for local "insn".
16551 (spu_expand_prologue): Likewise for local "insn".
16552 (struct spu_bb_info): Likewise for field "prop_jump".
16553 (emit_nop_for_insn): Likewise for param "insn" and local
16554 "new_insn".
16555 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
16556 "hbr_insn".
16557 (spu_emit_branch_hint): Likewise for params "before", "branch" and
16558 locals "hint", "insn".
16559 (get_branch_target): Likewise for param "branch".
16560 (insn_clobbers_hbr): Likewise for param "insn".
16561 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
16562 locals "insn", "before_4", "before_16".
16563 (insert_hbrp): Likewise for local "insn".
16564 (spu_machine_dependent_reorg): Likewise for locals "branch",
16565 "insn", "next", "bbend".
16566 (uses_ls_unit): Likewise for param "insn".
16567 (get_pipe): Likewise.
16568 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
16569 introducing a checked cast.
16570 (spu_sched_adjust_cost): Likewise for params "insn" and
16571 "dep_insn".
16572 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
16573 (spu_sms_res_mii): Likewise.
16574
16575 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16576
16577 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
16578 from rtx to rtx_insn *.
16579 (output_cbranch): Likewise for param 6.
16580 (output_return): Likewise for param 1.
16581 (output_sibcall): Likewise.
16582 (output_v8plus_shift): Likewise.
16583 (output_v8plus_mult): Likewise.
16584 (output_v9branch): Likewise for param 7.
16585 (output_cbcond): Likewise for param 3.
16586
16587 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
16588 for local "insn".
16589 (sparc_legitimize_pic_address): Likewise.
16590 (sparc_emit_call_insn): Likewise.
16591 (emit_save_or_restore_regs): Likewise.
16592 (emit_window_save): Likewise for return type and local "insn".
16593 (sparc_expand_prologue): Likewise for local "insn".
16594 (sparc_flat_expand_prologue): Likewise.
16595 (output_return): Likewise for param "insn".
16596 (output_sibcall): Likewise for param "insn" and local "delay".
16597 (output_ubranch): Likewise for param "insn".
16598 (output_cbranch): Likewise.
16599 (output_cbcond): Likewise.
16600 (output_v9branch): Likewise.
16601 (output_v8plus_shift): Likewise.
16602 (sparc_output_mi_thunk): Likewise for local "insn".
16603 (get_some_local_dynamic_name): Likewise.
16604 (output_v8plus_mult): Likewise for param "insn".
16605
16606 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16607
16608 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
16609 from rtx to rtx_insn *.
16610 (output_branchy_insn): Likewise for param 3.
16611 (output_far_jump): Likewise for param 1.
16612 (final_prescan_insn): Likewise.
16613 (sh_insn_length_adjustment): Likewise for sole param.
16614
16615 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
16616 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
16617 rtx_code_label *.
16618 (sh_emit_compare_and_set): Likewise for local "lab".
16619 (output_far_jump): Strengthen param "insn" and local "prev" from
16620 rtx to rtx_insn *.
16621 (output_branchy_insn): Likewise for param "insn" and local
16622 "next_insn".
16623 (output_ieee_ccmpeq): Likewise for param "insn".
16624 (struct label_ref_list_d): Strengthen field "label" from rtx to
16625 rtx_code_label *.
16626 (pool_node): Likewise.
16627 (pool_window_label): Likewise for this global.
16628 (add_constant): Likewise for return type and locals "lab", "new_rtx".
16629 (dump_table): Strengthen params "start", "barrier" and local
16630 "scan" from rtx to rtx_insn *.
16631 (broken_move): Likewise for param "insn".
16632 (untangle_mova): Likewise for params "first_mova" and "new_mova".
16633 Strengthen param "first_mova" from rtx * to rtx_insn **.
16634 (mova_p): Likewise for param "insn".
16635 (fixup_mova): Likewise for param "mova".
16636 (find_barrier): Likewise for return type, params "mova" and
16637 "from", and locals "barrier_before_mova", "found_barrier",
16638 "good_barrier", "orig", "last_symoff", "next". Strengthen local
16639 "label" from rtx to rtx_code_label *.
16640 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
16641 rtx to rtx_insn *.
16642 (sh_reorg): Likewise for locals "link", "scan", "barrier".
16643 (split_branches): Likewise for param "first" and local "insn".
16644 (final_prescan_insn): Likewise for param "insn".
16645 (sequence_insn_p): Likewise for locals "prev", "next".
16646 (sh_insn_length_adjustment): Likewise for param "insn".
16647 (sh_can_redirect_branch): Likewise for local "insn".
16648 (find_r0_life_regions): Likewise for locals "end", "insn".
16649 (sh_output_mi_thunk): Likewise for local "insns".
16650
16651 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16652
16653 * config/score/score.c (score_output_mi_thunk): Strengthen local
16654 "insn" from rtx to rtx_insn *.
16655 (score_prologue): Likewise.
16656
16657 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16658
16659 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
16660 1 from rtx to rtx_insn *.
16661 (s390_emit_jump): Likewise for return type.
16662 (s390_emit_call): Likewise.
16663 (s390_load_got): Likewise.
16664
16665 * config/s390/s390.c (last_scheduled_insn): Likewise for this
16666 variable.
16667 (s390_match_ccmode): Likewise for param "insn".
16668 (s390_emit_jump): Likewise for return type.
16669 (s390_split_branches): Likewise for local "label".
16670 (struct constant): Strengthen field "label" from rtx to
16671 rtx_code_label *.
16672 (struct constant_pool): Likewise for field "label". Strengthen
16673 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
16674 rtx_insn *.
16675 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
16676 insns.
16677 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
16678 (s390_end_pool): Likewise.
16679 (s390_dump_pool): Likewise for local "insn".
16680 (s390_mainpool_start): Likewise.
16681 (s390_chunkify_start): Likewise.
16682 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
16683 with insns. Strengthen locals "label", "jump", "barrier", "next",
16684 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
16685 (s390_chunkify_finish): Strengthen local "insn" from rtx to
16686 rtx_insn *.
16687 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
16688 "jump", "label", "next_insn".
16689 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
16690 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
16691 "tbegin_insn".
16692 (s390_load_got): Likewise for return type and local "insns".
16693 (s390_save_gprs_to_fprs): Likewise for local "insn".
16694 (s390_restore_gprs_from_fprs): Likewise.
16695 (pass_s390_early_mach::execute): Likewise.
16696 (s390_emit_prologue): Likewise for local "insns".
16697 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
16698 rtx_code_label *.
16699 (s390_emit_call): Strengthen return type and local "insn" from
16700 rtx to rtx_insn *.
16701 (s390_emit_tpf_eh_return): Likewise for local "insn".
16702 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
16703 "next_insn", introducing locals "s_pat", "rpat" to allow this.
16704 (s390_fix_long_loop_prediction): Likewise for param "insn" and
16705 local "cur_insn".
16706 (s390_non_addr_reg_read_p): Likewise for param "insn".
16707 (find_cond_jump): Likewise for return type and param "insn".
16708 (s390_swap_cmp): Likewise for param "insn".
16709 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
16710 "prev_insn", "next_insn".
16711 (s390_reorg): Likewise for locals "insn", "target".
16712 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
16713 (s390_sched_variable_issue): For now, rename param "insn" to
16714 "uncast_insn", introducing a checked cast.
16715 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
16716 insn.
16717 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
16718 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
16719
16720 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16721
16722 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
16723 param from rtx to rtx_insn *.
16724 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
16725
16726 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16727
16728 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
16729 4 from rtx to rtx_insn *.
16730 (rs6000_final_prescan_insn): Likewise for first param.
16731 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
16732 local "insn".
16733 (rs6000_get_some_local_dynamic_name): Likewise.
16734 (output_cbranch): Likewise for param "insn".
16735 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
16736 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
16737 (rs6000_emit_allocate_stack): Likewise for local "insn".
16738 (load_cr_save): Likewise.
16739 (restore_saved_cr): Likewise.
16740 (restore_saved_lr): Likewise.
16741 (emit_cfa_restores): Likewise.
16742 (rs6000_output_function_epilogue): Likewise for locals "insn" and
16743 "deleted_debug_label".
16744 (rs6000_output_mi_thunk): Likewise for local "insn".
16745 (rs6000_final_prescan_insn): Likewise for param "insn".
16746
16747 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16748
16749 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
16750 Strengthen param "insn" from rtx to rtx_insn *.
16751 * config/picochip/picochip.c (picochip_current_prescan_insn):
16752 Likewise for this variable.
16753 (picochip_final_prescan_insn): Likewise for param "insn".
16754
16755 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16756
16757 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
16758 from rtx to rtx_insn *.
16759 (pa_output_indirect_call): Likewise.
16760 (pa_adjust_insn_length): Likewise.
16761 (pa_attr_length_millicode_call): Likewise.
16762 (pa_attr_length_call): Likewise.
16763 (pa_attr_length_indirect_call): Likewise.
16764
16765 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
16766 "insn".
16767 (pa_attr_length_millicode_call): Likewise.
16768 (pa_attr_length_call): Likewise.
16769 (pa_output_call): Likewise.
16770 (pa_attr_length_indirect_call): Likewise.
16771 (pa_output_indirect_call): Likewise.
16772
16773 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16774
16775 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
16776 Strengthen first param from rtx to rtx_insn *.
16777 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
16778 param "insn".
16779
16780 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16781
16782 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
16783 type from rtx to rtx_insn *.
16784 (mips_expand_call): Likewise.
16785 (mips_adjust_insn_length): Likewise for first param.
16786 (mips_output_conditional_branch): Likewise.
16787 (mips_output_order_conditional_branch): Likewise.
16788 (mips_final_prescan_insn): Likewise.
16789
16790 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
16791 rtx_insn * for the SEQUENCE case.
16792 (SEQ_END): Likewise.
16793 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
16794 (mips_emit_call_insn): Likewise, also for local "insn".
16795 (mips16_gp_pseudo_reg): Likewise for local "scan".
16796 (mips16_build_call_stub): Likewise for return type and for local
16797 "insn". Introduce a new local "pattern" so that "insn" can indeed
16798 be an insn.
16799 (mips_expand_call): Strengthen return type and local "insn" from
16800 rtx to rtx_insn *.
16801 (mips_block_move_loop): Strengthen local "label" from rtx to
16802 rtx_code_label *.
16803 (mips_expand_synci_loop): Likewise for locals "label",
16804 "end_label".
16805 (mips_set_frame_expr): Strengthen local "insn" from rtx to
16806 rtx_insn *.
16807 (mips16e_collect_argument_saves): Likewise for locals "insn",
16808 "next".
16809 (mips_find_gp_ref): Likewise for param of callback for "pred"
16810 param, and for local "insn".
16811 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
16812 (mips_insn_has_flexible_gp_ref_p): Likewise.
16813 (mips_epilogue_emit_cfa_restores): Likewise for return type and
16814 local "insn".
16815 (mips_epilogue_set_cfa): Likewise for local "insn".
16816 (mips_expand_epilogue): Likewise.
16817 (mips_adjust_insn_length): Likewise for param "insn".
16818 (mips_output_conditional_branch): Likewise.
16819 (mips_output_order_conditional_branch): Likewise.
16820 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
16821 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
16822 "falu2_turn_enabled_insn".
16823 (mips_builtin_branch_and_move): Strengthen locals "true_label",
16824 "done_label" from rtx to rtx_code_label *.
16825 (struct mips16_constant): Likewise for field "label".
16826 (mips16_add_constant): Likewise for return type.
16827 (mips16_emit_constants_1): Strengthen return type and param "insn"
16828 from rtx to rtx_insn *.
16829 (mips16_emit_constants): Likewise for param "insn".
16830 (mips16_insn_length): Likewise.
16831 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
16832 to rtx_code_label *.
16833 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
16834 from rtx to rtx_insn *.
16835 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
16836 "jump". Strengthen local "label" from rtx to rtx_code_label *.
16837 (r10k_simplify_address): Strengthen param "insn" and local
16838 "def_insn" from rtx to rtx_insn *.
16839 (r10k_safe_address_p): Strengthen param "insn" from rtx to
16840 rtx_insn *.
16841 (r10k_needs_protection_p_1): Update target type of cast of data
16842 from to rtx to rtx_insn *.
16843 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
16844 rtx * to rtx_insn **.
16845 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
16846 rtx_insn *.
16847 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
16848 (mips_call_expr_from_insn): Likewise for param "insn".
16849 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
16850 (mips_find_pic_call_symbol): Likewise for param "insn".
16851 (mips_annotate_pic_calls): Likewise for local "insn".
16852 (mips_sim_insn): Likewise for this variable.
16853 (struct mips_sim): Likewise for field "insn" within elements of
16854 last_set array.
16855 (mips_sim_wait_reg): Likewise for param "insn".
16856 (mips_sim_wait_regs): Likewise.
16857 (mips_sim_wait_units): Likewise.
16858 (mips_sim_wait_insn): Likewise.
16859 (mips_sim_issue_insn): Likewise.
16860 (mips_sim_finish_insn): Likewise.
16861 (mips_seq_time): Likewise for param "seq" and local "insn".
16862 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
16863 locals "first", "second".
16864 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
16865 "last", "last2", "next".
16866 (mips_avoid_hazard): Likewise for params "after", "insn".
16867 (mips_reorg_process_insns): Likewise for locals "insn",
16868 "last_insn", "subinsn", "next_insn".
16869 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
16870 (mips16_split_long_branches): Likewise for locals "insn" "jump",
16871 "jump_sequence".
16872 (mips_output_mi_thunk): Likewise for local "insn".
16873 (mips_final_prescan_insn): Likewise for param "insn".
16874
16875 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16876
16877 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
16878 Strengthen return type and local "insns" from rtx to rtx_insn *.
16879 (microblaze_legitimize_tls_address): Likewise for local "insns".
16880 (microblaze_block_move_loop): Strengthen local "label" from rtx
16881 to rtx_code_label *.
16882 (microblaze_expand_prologue): Strengthen two locals named "insn"
16883 from rtx to rtx_insn *.
16884 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
16885 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
16886 "insn". Strengthen locals "div_label", "div_end_label" from rtx
16887 to rtx_code_label *.
16888
16889 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16890
16891 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
16892 param from rtx to rtx_insn *.
16893 (mep_reuse_lo): Likewise for third param.
16894 (mep_use_post_modify_p): Likewise for first param.
16895 (mep_core_address_length): Likewise.
16896 (mep_cop_address_length): Likewise.
16897 (mep_final_prescan_insn): Likewise.
16898 (mep_store_data_bypass_p): Likewise for both params.
16899 (mep_mul_hilo_bypass_p): Likewise.
16900 (mep_ipipe_ldc_p): Likewise for param.
16901
16902 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
16903 (mep_rewrite_mult): Likewise.
16904 (mep_rewrite_mulsi3): Likewise.
16905 (mep_rewrite_maddsi3): Likewise.
16906 (mep_reuse_lo_p_1): Likewise.
16907 (mep_reuse_lo_p): Likewise.
16908 (mep_frame_expr): Likewise.
16909 (mep_make_parallel): Likewise for both params.
16910 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
16911 local "insn".
16912 (mep_use_post_modify_p): Likewise for param "insn".
16913 (mep_core_address_length): Likewise.
16914 (mep_cop_address_length): Likewise.
16915 (mep_reg_set_in_function): Likewise for local "insn".
16916 (mep_asm_without_operands_p): Likewise.
16917 (F): Likewise for return type and param "x".
16918 (add_constant): Likewise for local "insn".
16919 (maybe_dead_move): Likewise for return type and local "insn".
16920 (mep_expand_prologue): Likewise for local "insn".
16921 (mep_final_prescan_insn): Likewise for param "insn".
16922 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
16923 "next", "follow", "x".
16924 (mep_insert_repeat_label_last): Likewise for return type, param
16925 "last_insn", and locals "next", "prev". Strengthen param "label"
16926 from rtx to rtx_code_label *.
16927 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
16928 rtx_insn *.
16929 (struct mep_doloop_end): Likewise for fields "insn" and
16930 "fallthrough".
16931 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
16932 Strengthen local "repeat_label" from rtx to rtx_code_label *.
16933 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
16934 rtx_insn *.
16935 (mep_invert_branch): Likewise for params "insn" and "after".
16936 (mep_reorg_erepeat): Likewise for param "insns" and locals
16937 "insn", "prev", "new_last", "barrier", "user". Strengthen local
16938 "l" from rtx to rtx_code_label *.
16939 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
16940 from rtx to rtx_insn *.
16941 (mep_reorg_addcombine): Likewise for param "insns" and locals
16942 "i", "n".
16943 (add_sp_insn_p): Likewise for param "insn".
16944 (mep_reorg_noframe): Likewise for param "insns" and locals
16945 "start_frame_insn", "end_frame_insn", "next".
16946 (mep_reorg): Likewise for local "insns".
16947 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
16948 cast.
16949 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
16950 (mep_mul_hilo_bypass_p): Likewise.
16951 (mep_ipipe_ldc_p): Likewise for param "insn".
16952 (mep_make_bundle): Likewise for return type, param "cop" and local
16953 "insn", splitting out the latter into a new local "seq" for when it
16954 is a SEQUENCE rather than an insn.
16955 (core_insn_p): Likewise for param "insn".
16956 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
16957 "last", "first", "note", "prev", "core_insn".
16958
16959 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16960
16961 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
16962 rtx to rtx_insn *.
16963 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
16964 (m68k_final_prescan_insn): Likewise for first param.
16965
16966 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
16967 (m68k_set_frame_related): Likewise for param "insn".
16968 (output_btst): Likewise for param "insn".
16969 (m68k_final_prescan_insn): Likewise.
16970 (m68k_move_to_reg): Likewise for local "insn".
16971 (m68k_call_tls_get_addr): Likewise for local "insns".
16972 (m68k_call_m68k_read_tp): Likewise.
16973 (strict_low_part_peephole_ok): Likewise for param "first_insn".
16974 (m68k_output_mi_thunk): Likewise for local "insn".
16975
16976 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16977
16978 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
16979 first param from rtx to rtx_insn *.
16980 (iq2000_adjust_insn_length): Likewise.
16981 (iq2000_output_conditional_branch): Likewise.
16982 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
16983 "insn" and local "nop_insn".
16984 (iq2000_annotate_frame_insn): Likewise for param "insn".
16985 (iq2000_expand_prologue): Likewise for both locals "insn".
16986 (iq2000_adjust_insn_length): Likewise for param "insn".
16987 (iq2000_output_conditional_branch): Likewise.
16988
16989 2014-08-25 David Malcolm <dmalcolm@redhat.com>
16990
16991 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
16992 "insns" from rtx to rtx_insn *.
16993 (ia64_emit_cond_move): Likewise for locals "insn", "first".
16994 (struct spill_fill_data): Likewise for field "init_after" and for
16995 elements of array field "prev_insn".
16996 (spill_restore_mem): Likewise for locals "insn", "first".
16997 (do_spill): Likewise for local "insn".
16998 (do_restore): Likewise.
16999 (ia64_expand_prologue): Likewise.
17000 (ia64_expand_epilogue): Likewise.
17001 (emit_insn_group_barriers): Likewise for locals "insn",
17002 "last_label".
17003 (emit_all_insn_group_barriers): Likewise for locals "insn",
17004 "last".
17005 (dfa_stop_insn): Likewise for this global.
17006 (dfa_pre_cycle_insn): Likewise.
17007 (ia64_nop): Likewise.
17008 (final_emit_insn_group_barriers): Likewise for locals "insn",
17009 "last".
17010 (emit_predicate_relation_info): Likewise for locals "head", "n",
17011 "insn", "b", "a".
17012 (ia64_reorg): Likewise for local "insn".
17013 (ia64_output_mi_thunk): Likewise.
17014 (expand_vec_perm_interleave_2): Likewise for local "seq".
17015
17016 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17017
17018 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
17019 param 1 "insn" from rtx to rtx_insn *.
17020 (ix86_use_lea_for_mov): Likewise.
17021 (ix86_avoid_lea_for_addr): Likewise.
17022 (ix86_split_lea_for_addr): Likewise.
17023 (ix86_lea_for_add_ok): Likewise.
17024 (ix86_output_call_insn): Likewise.
17025
17026 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
17027 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
17028 (ix86_output_function_epilogue): Likewise for locals "insn",
17029 "deleted_debug_label".
17030 (legitimize_tls_address): Likewise for local "insn".
17031 (get_some_local_dynamic_name): Likewise.
17032 (increase_distance): Likewise for params "prev", "next".
17033 (distance_non_agu_define_in_bb): Likewise for params "insn",
17034 "start" and locals "prev", "next".
17035 (distance_non_agu_define): Likewise for param "insn".
17036 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
17037 locals "next", "prev".
17038 (distance_agu_use): Likewise for param "insn".
17039 (ix86_lea_outperforms): Likewise.
17040 (ix86_ok_to_clobber_flags): Likewise.
17041 (ix86_avoid_lea_for_add): Likewise.
17042 (ix86_use_lea_for_mov): Likewise.
17043 (ix86_avoid_lea_for_addr): Likewise.
17044 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
17045 (ix86_split_lea_for_addr): Likewise for param "insn".
17046 (ix86_lea_for_add_ok): Likewise for param "insn".
17047 (ix86_expand_carry_flag_compare): Likewise for local
17048 "compare_seq".
17049 (ix86_expand_int_movcc): Likewise.
17050 (ix86_output_call_insn): Likewise for param "insn".
17051 (ix86_output_call_insn): Likewise for local "i".
17052 (x86_output_mi_thunk): Introduce local "insn", using it in place
17053 of "tmp" when dealing with insns.
17054 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
17055 "start".
17056 (ix86_pad_returns): Likewise for locals "ret", "prev".
17057 (ix86_count_insn_bb): Likewise for local "insn".
17058 (ix86_pad_short_function): Likewise for locals "ret", "insn".
17059 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
17060 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
17061 (expand_vec_perm_interleave2): Likewise for local "seq".
17062 (expand_vec_perm_vperm2f128_vblend): Likewise.
17063 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
17064 call to for_each_rtx with for_each_rtx_in_insn.
17065
17066 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17067
17068 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
17069 "label" from rtx to rtx_code_label *.
17070 (ix86_expand_prologue): Likewise.
17071 (ix86_expand_split_stack_prologue): Likewise for locals "label",
17072 "varargs_label".
17073 (ix86_split_idivmod): Likewise for locals "end_label" and
17074 "qimode_label".
17075 (ix86_expand_branch): Likewise for local "label2".
17076 (ix86_expand_aligntest): Likewise for return type and local "label".
17077 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
17078 "top_label".
17079 (expand_movmem_epilogue): Likewise for the various locals named
17080 "label".
17081 (expand_setmem_epilogue): Likewise.
17082 (expand_small_movmem_or_setmem): Likewise for local "label".
17083 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
17084 Strengthen param "done_label" from rtx * to rtx_code_label **.
17085 Strengthen locals "loop_label" and "label" from rtx to
17086 rtx_code_label *.
17087 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
17088 Likewise for locals "loop_label", "label".
17089 (ix86_expand_set_or_movmem): Likewise for locals "label",
17090 "jump_around_label", "hot_label".
17091 (ix86_expand_strlensi_unroll_1): Likewise for locals
17092 "align_2_label", align_3_label", "align_4_label", "end_0_label",
17093 "end_2_label".
17094 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
17095 (void ix86_emit_i387_log1p): Likewise for locals "label1",
17096 "label2", "jump_label".
17097 (ix86_expand_sse_compare_and_jump): Likewise for return type and
17098 local "label".
17099 (ix86_expand_lfloorceil): Likewise for local "label".
17100 (ix86_expand_rint): Likewise.
17101 (ix86_expand_floorceildf_32): Likewise.
17102 (ix86_expand_floorceil): Likewise.
17103 (ix86_expand_rounddf_32): Likewise.
17104 (ix86_expand_trunc): Likewise.
17105 (ix86_expand_truncdf_32): Likewise.
17106 (ix86_expand_round): Likewise.
17107
17108 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17109
17110 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
17111 first param from rtx to rtx_insn *.
17112 (h8300_insn_length_from_table): Likewise.
17113 * config/h8300/h8300.c (F): Likewise for return type and param
17114 "x".
17115 (Fpa): Add a checked cast to rtx_insn *.
17116 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
17117 rtx_insn *.
17118 (final_prescan_insn): Likewise for param "insn".
17119 (h8300_binary_length): Likewise.
17120 (h8300_insn_length_from_table): Likewise.
17121
17122 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17123
17124 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
17125 Strengthen first param "insn" from rtx to rtx_insn *.
17126
17127 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
17128 Likewise.
17129 (frame_insn): Likewise for return type. Introduce local "insn"
17130 for use in place of local "x" for use as an rtx_insn *.
17131 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
17132 (epiphany_expand_prologue): Likewise for local "insn".
17133 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
17134 * config/epiphany/resolve-sw-modes.c
17135 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
17136 "seq".
17137
17138 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17139
17140 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
17141 param from rtx to rtx_insn *.
17142 (c6x_final_prescan_insn): Likewise for first param.
17143
17144 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
17145 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
17146 (c6x_expand_compare): Strengthen local "insns" from rtx to
17147 rtx_insn *.
17148 (c6x_get_unit_specifier): Likewise for param "insn".
17149 (c6x_print_unit_specifier_field): Likewise.
17150 (c6x_final_prescan_insn): Likewise.
17151 (emit_add_sp_const): Likewise for local "insn".
17152 (c6x_expand_prologue): Likewise.
17153
17154 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17155
17156 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
17157 param 1 from rtx to rtx_insn *.
17158 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
17159 the various locals named "insn".
17160 (expand_epilogue_reg_restore): Likewise.
17161 (frame_related_constant_load): Likewise.
17162 (add_to_reg): Likewise.
17163 (emit_link_insn): Likewise.
17164 (do_link): Likewise.
17165 (expand_interrupt_handler_prologue): Likewise.
17166 (branch_dest): Likewise for param "branch".
17167 (asm_conditional_branch): Likewise for param "insn".
17168 (gen_one_bundle): Likewise for elements of param "slot" and local
17169 "t".
17170 (bfin_gen_bundles): Likewise for locals "insn", "next" and
17171 elements of local "slot".
17172 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
17173 "queue", "next_queue", "prev".
17174 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
17175 (add_sched_insns_for_speculation): Likewise for local "insn".
17176
17177 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17178
17179 * config/avr/avr-protos.h (output_movqi): Strengthen first param
17180 from rtx to rtx_insn *.
17181 (output_movhi): Likewise.
17182 (output_movsisf): Likewise.
17183 (avr_out_tstsi): Likewise.
17184 (avr_out_tsthi): Likewise.
17185 (avr_out_tstpsi): Likewise.
17186 (avr_out_compare): Likewise.
17187 (avr_out_compare64): Likewise.
17188 (avr_out_movpsi): Likewise.
17189 (ashlqi3_out): Likewise.
17190 (ashlhi3_out): Likewise.
17191 (ashlsi3_out): Likewise.
17192 (ashrqi3_out): Likewise.
17193 (ashrhi3_out): Likewise.
17194 (ashrsi3_out): Likewise.
17195 (lshrqi3_out): Likewise.
17196 (lshrhi3_out): Likewise.
17197 (lshrsi3_out): Likewise.
17198 (avr_out_ashlpsi3): Likewise.
17199 (avr_out_ashrpsi3): Likewise.
17200 (avr_out_lshrpsi3): Likewise.
17201 (avr_out_fract): Likewise.
17202 (avr_out_sbxx_branch): Likewise.
17203 (avr_out_round): Likewise.
17204 (avr_out_xload): Likewise.
17205 (avr_out_movmem): Likewise.
17206 (adjust_insn_length): Likewise.
17207 (avr_out_lpm): Likewise.
17208 (reg_unused_after): Likewise.
17209 (_reg_unused_after): Likewise.
17210 (avr_jump_mode): Likewise for second param.
17211 (jump_over_one_insn): Likewise for first param.
17212 (avr_final_prescan_insn): Likewise.
17213 (out_shift_with_cnt): Likewise for second param.
17214
17215 * config/avr/avr.c (get_sequence_length): Likewise for param
17216 "insns" and local "insn".
17217 (emit_push_byte): Likewise for local "insn".
17218 (emit_push_sfr): Likewise.
17219 (avr_prologue_setup_frame): Likewise for locals "insn",
17220 "fp_plus_insns", "sp_plus_insns".
17221 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
17222 "sp_plus_insns".
17223 (avr_jump_mode): Likewise for param "insn".
17224 (avr_final_prescan_insn): Likewise.
17225 (avr_find_unused_d_reg): Likewise.
17226 (avr_out_lpm_no_lpmx): Likewise.
17227 (avr_out_lpm): Likewise.
17228 (avr_out_xload): Likewise.
17229 (output_movqi): Likewise.
17230 (output_movhi): Likewise.
17231 (out_movqi_r_mr): Likewise.
17232 (out_movhi_r_mr): Likewise.
17233 (out_movsi_r_mr): Likewise.
17234 (out_movsi_mr_r): Likewise.
17235 (output_movsisf): Likewise.
17236 (avr_out_load_psi): Likewise.
17237 (avr_out_store_psi): Likewise.
17238 (avr_out_movpsi): Likewise.
17239 (out_movqi_mr_r): Likewise.
17240 (avr_out_movhi_mr_r_xmega): Likewise.
17241 (out_movhi_mr_r): Likewise.
17242 (compare_condition): Likewise for param "insn" and local "next".
17243 (compare_sign_p): Likewise for param "insn".
17244 (compare_diff_p): Likewise.
17245 (compare_eq_p): Likewise.
17246 (avr_out_compare): Likewise.
17247 (avr_out_compare64): Likewise.
17248 (avr_out_tsthi): Likewise.
17249 (avr_out_tstpsi): Likewise.
17250 (avr_out_tstsi): Likewise.
17251 (out_shift_with_cnt): Likewise.
17252 (ashlqi3_out): Likewise.
17253 (ashlhi3_out): Likewise.
17254 (avr_out_ashlpsi3): Likewise.
17255 (ashlsi3_out): Likewise.
17256 (ashrqi3_out): Likewise.
17257 (ashrhi3_out): Likewise.
17258 (avr_out_ashrpsi3): Likewise.
17259 (ashrsi3_out): Likewise.
17260 (lshrqi3_out): Likewise.
17261 (lshrhi3_out): Likewise.
17262 (avr_out_lshrpsi3): Likewise.
17263 (lshrsi3_out): Likewise.
17264 (avr_out_fract): Likewise.
17265 (avr_out_round): Likewise.
17266 (avr_adjust_insn_length): Likewise.
17267 (reg_unused_after): Likewise.
17268 (_reg_unused_after): Likewise.
17269 (avr_compare_pattern): Likewise.
17270 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
17271 and locals "branch1", "branch2", "insn2", "jump".
17272 (avr_reorg): Likewise for local "insn".
17273 (avr_2word_insn_p): Likewise for param "insn".
17274 (jump_over_one_insn_p): Likewise.
17275 (avr_out_sbxx_branch): Likewise.
17276 (avr_out_movmem): Likewise.
17277
17278 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17279
17280 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
17281 param from rtx to rtx_insn *.
17282 (thumb1_final_prescan_insn): Likewise.
17283 (thumb2_final_prescan_insn): Likewise.
17284
17285 * config/arm/arm.c (emit_set_insn): Strengthen return type from
17286 rtx to rtx_insn *.
17287 (struct minipool_node): Likewise for field "insn".
17288 (dump_minipool): Likewise for param "scan".
17289 (create_fix_barrier): Likewise for local "from". Strengthen local
17290 "label" from rtx to rtx_code_label *.
17291 (push_minipool_barrier): Strengthen param "insn" from rtx to
17292 rtx_insn *.
17293 (push_minipool_fix): Likewise.
17294 (note_invalid_constants): Likewise.
17295 (thumb2_reorg): Likewise for local "insn".
17296 (arm_reorg): Likewise.
17297 (thumb2_final_prescan_insn): Likewise for param
17298 "insn" and local "first_insn".
17299 (arm_final_prescan_insn): Likewise for param "insn" and locals
17300 "start_insn", "this_insn".
17301 (arm_debugger_arg_offset): Likewise for param "insn".
17302 (thumb1_emit_multi_reg_push): Likewise for return type and local
17303 "insn".
17304 (thumb1_final_prescan_insn): Likewise for param "insn".
17305 (thumb_far_jump_used_p): Likewise for local "insn".
17306 (thumb1_expand_prologue): Likewise.
17307 (arm_expand_epilogue_apcs_frame): Likewise.
17308 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
17309 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
17310 from rtx to rtx_code_label *.
17311 (arm_split_atomic_op): Likewise for local "label".
17312 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
17313
17314 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17315
17316 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
17317 first param from rtx to rtx_insn *.
17318 (arc_verify_short): Likewise.
17319 (arc_short_long): Likewise.
17320 (arc_need_delay): Likewise.
17321
17322 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
17323 "target_insn".
17324 (arc_ccfsm_advance): Likewise for param "insn" and locals
17325 "start_insn", "this_insn".
17326 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
17327 (arc_ccfsm_post_advance): Likewise for param "insn".
17328 (arc_next_active_insn): Likewise for return type and param "insn".
17329 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
17330 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
17331 (output_short_suffix): Likewise for local "insn".
17332 (arc_final_prescan_insn): Likewise for param "insn". Remove
17333 now-redundant checked cast.
17334 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
17335 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
17336 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
17337 for use where lc_set became an insn.
17338 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
17339 rtx to rtx_insn *.
17340 (arc_get_insn_variants): Likewise for local "prev".
17341 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
17342 "next".
17343 (arc_predicate_delay_insns): Likewise for local "insn".
17344 (arc_pad_return): Likewise for local "prev". For now, add a
17345 checked cast when extracting the insn from "final_sequence".
17346 (arc_short_long): Likewise for param "insn".
17347 (arc_need_delay): Likewise for param "insn" and local "next".
17348 (arc_label_align): Likewise for locals "prev", "next".
17349
17350 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17351
17352 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
17353 "insn" from rtx to rtx_insn *.
17354 (alpha_gp_save_rtx): Likewise for local "seq".
17355 (alpha_instantiate_decls): Likewise for local "top".
17356 (get_some_local_dynamic_name): Likewise for local "insn".
17357 (alpha_does_function_need_gp): Likewise.
17358 (set_frame_related_p): Likewise for return type and for locals
17359 "seq" and "insn".
17360 (emit_frame_store_1): Likewise for local "insn".
17361 (alpha_expand_prologue): Likewise for locals "insn", "seq".
17362 (alpha_end_function): Likewise for local "insn".
17363 (alpha_output_mi_thunk_osf): Likewise.
17364 (alphaev4_insn_pipe): Likewise for param "insn".
17365 (alphaev5_insn_pipe): Likewise.
17366 (alphaev4_next_group): Likewise for return type and param 1
17367 "insn".
17368 (alphaev5_next_group): Likewise.
17369 (alpha_align_insns_1): Likewise for return type and param 1 of
17370 callback param "next_group", and for locals "i", "next", "prev",
17371 "where", "where2", "insn".
17372
17373 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
17374
17375 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
17376 rather than modifying the stmt.
17377
17378 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17379
17380 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
17381 cgraph_state conversion.
17382
17383 2014-08-25 David Malcolm <dmalcolm@redhat.com>
17384
17385 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17386 Strengthen local "insns" from rtx to rtx_insn *.
17387 (aarch64_set_frame_expr): Likewise for local "insn".
17388 (aarch64_save_or_restore_fprs): Likewise.
17389 (aarch64_save_or_restore_callee_save_registers): Likewise.
17390 (aarch64_expand_prologue): Likewise.
17391 (aarch64_expand_epilogue): Likewise.
17392 (aarch64_output_mi_thunk): Likewise.
17393 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
17394 "label2" from rtx to rtx_code_label *.
17395 (aarch64_split_atomic_op): Likewise for local "label".
17396
17397 2014-08-25 Martin Liska <mliska@suse.cz>
17398
17399 * cgraph.h (symtab_node):
17400 (bool needed_p (void)): created from decide_is_symbol_needed
17401 (bool referred_to_p (void)): created from referred_to_p
17402 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
17403 * cgraph.h (cgraph_node):
17404 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
17405 (void expand (void)): created from expand_function
17406 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
17407 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
17408 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
17409 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
17410 * cgraph.h (varpool_node):
17411 (static void add (tree decl): created from varpool_add_new_variable
17412 * cgraph.h (cgraph_edge):
17413 void remove (void);
17414 (void remove_caller (void)): created from cgraph_edge_remove_caller
17415 (void remove_callee (void)): created from cgraph_edge_remove_callee
17416 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
17417 created from cgraph_set_call_stmt
17418 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
17419 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
17420 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
17421 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
17422 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
17423 created from cgraph_speculative_call_info
17424 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
17425 int freq_scale, bool update_original)): created from cgraph_clone_edge
17426 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
17427 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
17428 (bool recursive_p (void)): created from cgraph_edge_recursive_p
17429 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
17430 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
17431 (static void rebuild_references (void)): created from cgraph_rebuild_references
17432 * cgraph.h (symbol_table):
17433 (create_reference): renamed from add_reference
17434 (maybe_create_reference): renamed from maybe_add_reference
17435 (void register_symbol (symtab_node *node)): new function
17436 (void clear_asm_symbols (void)): new function
17437 (void unregister (symtab_node *node)): new function
17438 (void release_symbol (cgraph_node *node, int uid)): new function
17439 (cgraph_node * allocate_cgraph_symbol (void)): new function
17440 (void initialize (void)): created from cgraph_init
17441 (symtab_node *first_symbol (void)):new function
17442 (asm_node *first_asm_symbol (void)):new function
17443 (symtab_node *first_defined_symbol (void)):new function
17444 (varpool_node *first_variable (void)):new function
17445 (varpool_node *next_variable (varpool_node *node)):new function
17446 (varpool_node *first_static_initializer (void)):new function
17447 (varpool_node *next_static_initializer (varpool_node *node)):new function
17448 (varpool_node *first_defined_variable (void)):new function
17449 (varpool_node *next_defined_variable (varpool_node *node)):new function
17450 (cgraph_node *first_defined_function (void)):new function
17451 (cgraph_node *next_defined_function (cgraph_node *node)):new function
17452 (cgraph_node *first_function (void)):new function
17453 (cgraph_node *next_function (cgraph_node *node)):new function
17454 (cgraph_node *first_function_with_gimple_body (void)):new function
17455 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
17456 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
17457 created from symtab_remove_unreachable_nodes
17458 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
17459 (void process_new_functions (void)): created from cgraph_process_new_functions
17460 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
17461 (bool output_variables (void)): created from varpool_node::output_variables
17462 (void output_asm_statements (void)): created from output_asm_statements
17463 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
17464 (void compile (void)): created from compile
17465 (void output_weakrefs (void)): created from output_weakrefs
17466 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
17467 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
17468 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
17469 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
17470 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
17471 created from cgraph_next_function_with_gimple_body
17472 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
17473 created from cgraph_remove_edge_removal_hook
17474 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
17475 created from cgraph_add_node_removal_hook
17476 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
17477 created from cgraph_remove_node_removal_hook
17478 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
17479 created from varpool_add_node_removal_hook
17480 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
17481 created from varpool_remove_node_removal_hook
17482 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
17483 created from cgraph_add_function_insertion_hook
17484 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
17485 created from cgraph_remove_function_insertion_hook
17486 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
17487 created from varpool_add_variable_insertion_hook
17488 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
17489 created from varpool_remove_variable_insertion_hook
17490 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
17491 created from cgraph_add_edge_duplication_hook
17492 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
17493 created from cgraph_remove_edge_duplication_hook
17494 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
17495 created from cgraph_add_node_duplication_hook
17496 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
17497 created from cgraph_remove_node_duplication_hook
17498 (void call_edge_removal_hooks (cgraph_edge *e)):
17499 created from cgraph_call_edge_removal_hooks
17500 (void call_cgraph_insertion_hooks (cgraph_node *node)):
17501 created from call_function_insertion_hooks
17502 (void call_cgraph_removal_hooks (cgraph_node *node)):
17503 created from cgraph_call_node_removal_hooks
17504 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
17505 created from cgraph_node::call_duplication_hooks
17506 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
17507 created from cgraph_call_edge_duplication_hooks
17508 (void call_varpool_removal_hooks (varpool_node *node)):
17509 created from varpool_call_node_removal_hooks
17510 (void call_varpool_insertion_hooks (varpool_node *node)):
17511 created from varpool_call_variable_insertion_hooks
17512 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
17513 created from insert_to_assembler_name_hash
17514 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
17515 created from unlink_from_assembler_name_hash
17516 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
17517 created from symtab_prevail_in_asm_name_hash
17518 (void symtab_initialize_asm_name_hash (void)):
17519 created from symtab_initialize_asm_name_hash
17520 (void change_decl_assembler_name (tree decl, tree name)):
17521 created from change_decl_assembler_name
17522 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
17523 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
17524 created from decl_assembler_name_hash
17525 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
17526 created from decl_assembler_name_equal
17527 (static hashval_t hash_node_by_assembler_name (const void *p)):
17528 created from hash_node_by_assembler_name
17529 (static int eq_assembler_name (const void *p1, const void *p2)):
17530 created from eq_assembler_name
17531
17532 2014-08-25 Marek Polacek <polacek@redhat.com>
17533
17534 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
17535
17536 2014-08-25 Petr Murzin <petr.murzin@intel.com>
17537
17538 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
17539 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
17540 SWI1248_AVX512BW mode iterator.
17541
17542 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
17543
17544 PR target/62111
17545 * config/sh/predicates.md (general_extend_operand): Disable
17546 TRUNCATE before reload completes.
17547
17548 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
17549
17550 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
17551
17552 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
17553
17554 PR target/61996
17555 * config/sh/sh.opt (musermode): Allow negative form.
17556 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
17557 targets that don't support it.
17558 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
17559 Document -mno-usermode option.
17560
17561 2014-08-24 Kito Cheng <kito@0xlab.org>
17562
17563 * system.h (CALLER_SAVE_PROFITABLE): Poison.
17564 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
17565 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
17566 * doc/tm.texi: Regenerate.
17567
17568 2014-08-24 Kito Cheng <kito@0xlab.org>
17569
17570 * ira.c: Fix typo in comment.
17571
17572 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
17573
17574 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
17575 Deprecate c++1y. Change language to reflect greater confidence in C++14.
17576
17577 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
17578
17579 PR target/62038
17580 * config/pa/pa.c (pa_output_function_epilogue): Don't set
17581 last_address when the current function is a thunk.
17582 (pa_asm_output_mi_thunk): When we don't have named sections or they
17583 are not being used, check that thunk can reach the stub table with a
17584 short branch.
17585
17586 2014-08-23 David Malcolm <dmalcolm@redhat.com>
17587
17588 * web.c (union_match_dups): Strengthen param "insn" from rtx to
17589 rtx_insn *.
17590 (pass_web::execute): Likewise for local "insn".
17591
17592 2014-08-23 David Malcolm <dmalcolm@redhat.com>
17593
17594 * var-tracking.c (struct micro_operation_def): Strengthen field
17595 "insn" from rtx to rtx_insn *.
17596 (struct emit_note_data_def): Likewise.
17597 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
17598 (vt_stack_adjustments): Likewise for local "insn".
17599 (adjust_insn): Likewise for param "insn".
17600 (val_store): Likewise.
17601 (val_resolve): Likewise.
17602 (struct count_use_info): Likewise for field "insn".
17603 (log_op_type): Likewise for param "insn".
17604 (reverse_op): Likewise.
17605 (prepare_call_arguments): Likewise.
17606 (add_with_sets): The initial param takes an insn, but we can't
17607 yet strengthen it from rtx to rtx_insn * since it's used as a
17608 cselib_record_sets_hook callback. For now rename initial param
17609 from "insn" to "uncast_insn", and introduce a local "insn" of
17610 the stronger rtx_insn * type, with a checked cast.
17611 (compute_bb_dataflow): Strengthen local "insn" from rtx to
17612 rtx_insn *.
17613 (emit_note_insn_var_location): Likewise.
17614 (emit_notes_for_changes): Likewise.
17615 (emit_notes_for_differences): Likewise.
17616 (next_non_note_insn_var_location): Likewise for return type and
17617 for param "insn".
17618 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
17619 (vt_initialize): Likewise for local "insn".
17620 (delete_debug_insns): Likewise for locals "insn" and "next".
17621
17622 2014-08-23 David Malcolm <dmalcolm@redhat.com>
17623
17624 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
17625 rtx_insn *.
17626 (mark_constant_pool): Likewise for local "insn".
17627
17628 2014-08-23 David Malcolm <dmalcolm@redhat.com>
17629
17630 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
17631 rtx to rtx_insn *.
17632 (dead_debug_promote_uses): Likewise.
17633 (dead_debug_insert_temp): Likewise.
17634
17635 2014-08-23 David Malcolm <dmalcolm@redhat.com>
17636
17637 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
17638 from const_rtx to const rtx_insn *.
17639 (store_killed_after): Likewise. Strengthen locals "last", "act"
17640 from rtx to rtx_insn *.
17641 (store_killed_before): Strengthen param "insn" from const_rtx to
17642 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
17643 (find_moveable_store): Strengthen param "insn" from rtx to
17644 rtx_insn *.
17645 (compute_store_table): Likewise for local "insn".
17646 (insert_insn_start_basic_block): Likewise for param "insn" and
17647 locals "prev", "before", "insn".
17648 (insert_store): For now, add a checked cast to rtx_insn * on the
17649 result of gen_move_insn.
17650 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
17651 to rtx_insn *.
17652 (replace_store_insn): Likewise. For now, add a checked cast to
17653 rtx_insn * on the result of gen_move_insn.
17654
17655 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17656
17657 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
17658 rtx_insn *.
17659 (expand_sjlj_dispatch_table): Likewise.
17660
17661 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17662
17663 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
17664 "insn" from rtx to rtx_insn *.
17665
17666 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17667
17668 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
17669 "insn" from rtx to rtx_insn *.
17670 (dup_block_and_redirect): Likewise for param 3 "before".
17671
17672 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
17673 from rtx to rtx_insn *.
17674 (move_insn_for_shrink_wrap): Likewise.
17675 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
17676 (dup_block_and_redirect): Likewise for param "before" and local
17677 "insn".
17678 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
17679 "end".
17680 (convert_to_simple_return): Likewise for local "start".
17681
17682 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
17683 Strengthen local "insn" from rtx to rtx_insn *, for use when
17684 invoking requires_stack_frame_p.
17685
17686 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17687
17688 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
17689 rtx_insn *.
17690 (speculate_expr): Likewise for locals "orig_insn_rtx",
17691 "spec_insn_rtx".
17692 (eq_transformed_insns): Likewise for locals "i1", "i2".
17693 (check_for_new_jump): Likewise for return type and local "end".
17694 (find_new_jump): Likewise for return type and local "jump".
17695 (sel_split_edge): Likewise for local "jump".
17696 (sel_create_recovery_block): Likewise.
17697 (sel_redirect_edge_and_branch_force): Likewise.
17698 (sel_redirect_edge_and_branch): Likewise.
17699
17700 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17701
17702 * sel-sched.c (substitute_reg_in_expr): Strengthen local
17703 "new_insn" from rtx to rtx_insn *.
17704 (create_insn_rtx_with_rhs): Likewise for return type and for local
17705 "insn_rtx".
17706 (create_insn_rtx_with_lhs): Likewise.
17707 (create_speculation_check): Likewise for local "insn_rtx".
17708 (implicit_clobber_conflict_p): Likewise for local "insn".
17709 (get_expr_cost): Likewise.
17710 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
17711 (move_cond_jump): Likewise for locals "next", "prev", "link",
17712 "head", "from", "to".
17713
17714 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17715
17716 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
17717 "next" from rtx to rtx_insn *.
17718 (find_conditional_protection): Likewise for local "next".
17719 (is_conditionally_protected): Likewise for local "insn1".
17720 (is_pfree): Likewise for locals "insn1", "insn2".
17721
17722 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17723
17724 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
17725 from rtx to rtx_insn *.
17726
17727 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
17728 locals "insn1", "insn2" from rtx to rtx_insn *.
17729 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
17730 locals "insn", "prev", "last_jump", "next_tail".
17731 (schedule_ebb): Likewise for params "head", "tail".
17732 (schedule_ebbs): Likewise for locals "tail", "head".
17733
17734 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
17735 to rtx_insn on "last_insn" in one of the invocations of
17736 schedule_ebb.
17737
17738 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17739
17740 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
17741 "elem", "insn" from rtx to rtx_insn *.
17742 (change_spec_dep_to_hard): Likewise.
17743 (get_back_and_forw_lists): Likewise for local "con".
17744 (sd_add_dep): Likewise for locals "elem", "insn".
17745 (sd_resolve_dep): Likewise for locals "pro", "con".
17746 (sd_unresolve_dep): Likewise.
17747 (sd_delete_dep): Likewise.
17748 (chain_to_prev_insn): Likewise for local "pro".
17749 (find_inc): Likewise for locals "pro", "con".
17750
17751 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17752
17753 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
17754 to rtx_insn *.
17755 (reg_set_between_p): Strengthen local "insn" from const_rtx to
17756 const rtx_insn *.
17757 (modified_between_p): Strengthen local "insn" from rtx to
17758 rtx_insn *.
17759 (remove_reg_equal_equiv_notes_for_regno): Likewise.
17760 (keep_with_call_p): Strengthen local "i2" from const_rtx to
17761 const rtx_insn *.
17762
17763 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17764
17765 * resource.c (next_insn_no_annul): Strengthen local "next" from
17766 rtx to rtx_insn *.
17767 (mark_referenced_resources): Likewise for local "insn".
17768
17769 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17770
17771 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
17772 to rtx_insn *.
17773 (find_reloads): Likewise for param 1.
17774 (subst_reloads): Likewise for sole param.
17775 (find_equiv_reg): Likwise for param 2.
17776 (regno_clobbered_p): Likwise for param 2.
17777 (reload): Likewise for param 1.
17778
17779 * caller-save.c (save_call_clobbered_regs): Strengthen local
17780 "insn" from rtx to rtx_insn *.
17781 (insert_one_insn): Likewise for local "insn".
17782
17783 * reload.c (this_insn): Likewise for this global.
17784 (find_reloads): Likewise for param "insn".
17785 (find_reloads_toplev): Likewise.
17786 (find_reloads_address): Likewise.
17787 (subst_reg_equivs): Likewise.
17788 (update_auto_inc_notes): Likewise.
17789 (find_reloads_address_1): Likewise.
17790 (find_reloads_subreg_address): Likewise.
17791 (subst_reloads): Likewise.
17792 (find_equiv_reg): Likewise, also for local "p".
17793 (regno_clobbered_p): Likewise for param "insn".
17794
17795 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
17796 array.
17797 (spill_reg_store): Likewise for the elements of this array.
17798 (remove_init_insns): Likewise for local "equiv_insn".
17799 (will_delete_init_insn_p): Likewise for param "insn".
17800 (reload): Likewise for param ""first" and local "insn".
17801 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
17802 rtx_insn *.
17803 (calculate_elim_costs_all_insns): Likewise.
17804 (delete_caller_save_insns): Likewise.
17805 (spill_failure): Likewise for param "insn".
17806 (delete_dead_insn): Likewise.
17807 (set_label_offsets): Likewise.
17808 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
17809 "prev_insn".
17810 (elimination_costs_in_insn): Likewise for param "insn".
17811 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
17812 when referring to an insn.
17813 (set_initial_label_offsets): Likewise.
17814 (set_offsets_for_label): Strengthen param "insn" from rtx to
17815 rtx_insn *.
17816 (init_eliminable_invariants): Likewise for param "first" and local
17817 "insn".
17818 (fixup_eh_region_note): Likewise for param "insn".
17819 (reload_as_needed): Likewise for locals "prev", "insn",
17820 "old_next", "old_prev", "next".
17821 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
17822 "last".
17823 (reload_inheritance_insn): Strengthen elements of this array from
17824 rtx to rtx_insn *.
17825 (failed_reload): Likewise for param "insn".
17826 (choose_reload_regs): Likewise for local "insn". Replace use of
17827 NULL_RTX with NULL when referring to an insn.
17828 (input_reload_insns): Strengthen elements of this array from rtx
17829 to rtx_insn *.
17830 (other_input_address_reload_insns): Likewise for this global.
17831 (other_input_reload_insns): Likewise for this global.
17832 (input_address_reload_insns): Likwise for the elements of this
17833 array.
17834 (inpaddr_address_reload_insns): Likwise for the elements of this
17835 array.
17836 (output_reload_insns): Likewise for the elements of this array.
17837 (output_address_reload_insns): Likewise for the elements of this
17838 array.
17839 (outaddr_address_reload_insns): Likewise for the elements of this
17840 array.
17841 (operand_reload_insns): Likewise for this global.
17842 (other_operand_reload_insns): Likewise for this global.
17843 (other_output_reload_insns): Likewise for the elements of this
17844 array.
17845 (new_spill_reg_store): Likewise for the elements of this
17846 array.
17847 (emit_input_reload_insns): Likewise for locals "insn", "temp".
17848 Strengthen local "where" from rtx * to rtx_insn **.
17849 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
17850 from rtx to rtx_insn *.
17851 (do_input_reload): Likewise for local "insn".
17852 (do_output_reload): Likewise for local "insn".
17853 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
17854 (emit_insn_if_valid_for_reload): Likewise for return type and local
17855 "last". Add checked cast to rtx_insn when returning "insn" since
17856 this has been through emit_insn.
17857 (gen_reload): Strengthen return type and locals "last", "insn", "set"
17858 from rtx to rtx_insn *. Add checked cast to rtx_insn when
17859 returning "insn" since it's been through
17860 emit_insn_if_valid_for_reload at this point.
17861 (delete_output_reload): Strengthen param "insn" and locals
17862 "output_reload_insn", "i2" from rtx to rtx_insn *.
17863 (delete_address_reloads): Likewise for params "dead_insn",
17864 "current_insn" and locals "prev", "next".
17865 (delete_address_reloads_1): Likewise for params "dead_insn",
17866 "current_insn" and locals "prev", "i2".
17867 (inc_for_reload): Likewise for locals "last", "add_insn".
17868 (add_auto_inc_notes): Strengthen param "insn" from rtx to
17869 rtx_insn *.
17870
17871 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
17872 param of this duplicate of the prototype from reload.h
17873
17874 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17875
17876 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
17877 rtx to rtx_insn *.
17878 (regstat_bb_compute_calls_crossed): Likewise.
17879
17880 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17881
17882 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
17883 to rtx_insn *.
17884 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
17885 with an insn.
17886 (regrename_analyze): Strengthen local "insn" from rtx to
17887 rtx_insn *.
17888 (scan_rtx_reg): Likewise for param "insn".
17889 (scan_rtx_address): Likewise.
17890 (scan_rtx): Likewise.
17891 (restore_operands): Likewise.
17892 (record_out_operands): Likewise.
17893 (build_def_use): Likewise for local "insn". Replace use of
17894 NULL_RTX with NULL when dealing with an insn.
17895
17896 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17897
17898 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
17899 * reginfo.c (reg_scan): Likewise, also for local "insn".
17900 (reg_scan_mark_refs): Likewise for param "insn".
17901 (init_subregs_of_mode): Likewise for local "insn".
17902
17903 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17904
17905 * regcprop.c (struct queued_debug_insn_change): Strengthen field
17906 "insn" from rtx to rtx_insn *.
17907 (replace_oldest_value_reg): Likewise for param "insn".
17908 (replace_oldest_value_addr): Likewise.
17909 (replace_oldest_value_mem): Likewise.
17910 (apply_debug_insn_changes): Likewise for local "last_insn".
17911 (copyprop_hardreg_forward_1): Likewise for local "insn".
17912
17913 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17914
17915 * reg-stack.c (next_flags_user): Strengthen return type and param
17916 "insn" from rtx to rtx_insn *.
17917 (straighten_stack): Likewise for param "insn".
17918 (check_asm_stack_operands): Likewise.
17919 (remove_regno_note): Likewise.
17920 (emit_pop_insn): Likewise for return type, param "insn", local
17921 "pop_insn".
17922 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
17923 "limit" from rtx to rtx_insn *.
17924 (swap_to_top): Likewise for param "insn".
17925 (move_for_stack_reg): Likewise.
17926 (move_nan_for_stack_reg): Likewise.
17927 (swap_rtx_condition): Likewise.
17928 (compare_for_stack_reg): Likewise.
17929 (subst_all_stack_regs_in_debug_insn): Likewise.
17930 (subst_stack_regs_pat): Likewise, and local "insn2".
17931 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
17932 rtx_insn *.
17933 (subst_stack_regs): Likewise.
17934 (change_stack): Likewise.
17935 (convert_regs_1): Likewise for locals "insn", "next".
17936
17937 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17938
17939 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
17940 rtx_insn *.
17941 (combine_set_extension): Likewise for param "curr_insn".
17942 (transform_ifelse): Likewise for param "def_insn".
17943 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
17944 from vec<rtx> * to vec<rtx_insn *> *.
17945 (is_cond_copy_insn): Likewise for param "insn".
17946 (struct ext_state): Strengthen the four vec fields from vec<rtx>
17947 to vec<rtx_insn *>.
17948 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
17949 local "def_insn" from rtx to rtx_insn *.
17950 (get_sub_rtx): Likewise for param "def_insn".
17951 (merge_def_and_ext): Likewise.
17952 (combine_reaching_defs): Likewise.
17953 (add_removable_extension): Likewise for param "insn".
17954 (find_removable_extensions): Likewise for local "insn".
17955 (find_and_remove_re): Likewise for locals "curr_insn" and
17956 "def_insn". Strengthen locals "reinsn_del_list" and
17957 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
17958
17959 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17960
17961 * recog.c (split_insn): Strengthen param "insn" and locals
17962 "first", "last" from rtx to rtx_insn *.
17963 (split_all_insns): Likewise for locals "insn", "next".
17964 (split_all_insns_noflow): Likewise.
17965
17966 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17967
17968 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
17969 const rtx_insn *.
17970 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
17971 (debug_rtx_find): Likewise for param 1 "x".
17972
17973 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
17974 const_rtx to const rtx_insn *. Likewise for local "insn".
17975 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
17976 (debug_rtx_find): Likewise for param 1 "x".
17977 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
17978 from const_rtx to const rtx_insn * within the appropriate cases of
17979 the switch statement.
17980
17981 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
17982 Strengthen local "insns" from rtx to rtx_insn * since this is
17983 passed to a call to debug_rtx_list.
17984
17985 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17986
17987 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
17988 to rtx_insn *.
17989
17990 * function.c (stack_protect_epilogue): Add checked cast to
17991 rtx_insn for now when invoking predict_insn_def.
17992
17993 * predict.c (predict_insn): Strengthen param "insn" from rtx to
17994 rtx_insn *.
17995 (predict_insn_def): Likewise.
17996 (rtl_predict_edge): Likewise for local "last_insn".
17997 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
17998 const rtx_insn *.
17999 (combine_predictions_for_insn): Strengthen param "insn" from rtx
18000 to rtx_insn *.
18001 (bb_estimate_probability_locally): Likewise for local "last_insn".
18002 (expensive_function_p): Likewise for local "insn".
18003
18004 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
18005 local "jmp", since this is used when invoking predict_insn_def.
18006
18007 2014-08-22 Marek Polacek <polacek@redhat.com>
18008
18009 PR c++/62199
18010 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
18011
18012 2014-08-22 Marek Polacek <polacek@redhat.com>
18013
18014 PR c/61271
18015 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
18016 a comparison in parens.
18017 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
18018 in parens.
18019
18020 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18021
18022 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
18023 rtx_insn *.
18024
18025 * cprop.c (fis_get_condition): Likewise.
18026
18027 * postreload.c (reload_cse_regs): Likewise for param "first".
18028 (reload_cse_simplify): Likewise for param "insn".
18029 (reload_cse_regs_1): Likewise for local "insn".
18030 (reload_cse_simplify_set): Likewise for param "insn".
18031 (reload_cse_simplify_operands): Likewise.
18032 (struct reg_use): Likewise for field "insn".
18033 (reload_combine_purge_insn_uses): Likewise for param "insn".
18034 (fixup_debug_insns): Likewise for params "from", "to" and local
18035 "insn".
18036 (try_replace_in_use): Likewise for local "use_insn".
18037 (reload_combine_recognize_const_pattern): Likewise for param
18038 "insn" and locals "add_moved_after_insn", "use_insn".
18039 (reload_combine_recognize_pattern): Likewise for param "insn" and
18040 local "prev".
18041 (reload_combine): Likewise for locals "insn", "prev".
18042 (reload_combine_note_use): Likewise for param "insn".
18043 (move2add_use_add2_insn): Likewise.
18044 (move2add_use_add3_insn): Likewise.
18045 (reload_cse_move2add): Likewise, also for local "next".
18046 (move2add_note_store): Likewise for local "insn".
18047
18048 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18049
18050 * postreload-gcse.c (struct occr): Strengthen field "insn" from
18051 rtx to rtx_insn *.
18052 (struct unoccr): Likewise.
18053 (struct modifies_mem): Likewise.
18054 (alloc_mem): Likewise for local "insn".
18055 (insert_expr_in_table): Likewise for param "insn".
18056 (dump_expr_hash_table_entry): Likewise for local "insn".
18057 (oprs_unchanged_p): Likewise for param "insn".
18058 (load_killed_in_block_p): Likewise for local "setter".
18059 (record_last_reg_set_info): Likewise for param "insn".
18060 (record_last_reg_set_info_regno): Likewise.
18061 (record_last_mem_set_info): Likewise.
18062 (record_last_set_info): Likewise for local "last_set_insn".
18063 (record_opr_changes): Likewise for param "insn".
18064 (hash_scan_set): Likewise.
18065 (compute_hash_table): Likewise for local "insn".
18066 (get_avail_load_store_reg): Likewise for param "insn".
18067 (eliminate_partially_redundant_load): Likewise, also for locals
18068 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
18069 RTX for insns.
18070 (eliminate_partially_redundant_loads): Likewise for local "insn".
18071
18072 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18073
18074 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
18075 rtx to rtx_insn *.
18076 (expand_binop): Likewise for locals "entry_last", "last", "insns"
18077 (expand_twoval_unop): Likewise for locals entry_last", "last".
18078 (expand_twoval_binop): Likewise.
18079 (expand_twoval_binop_libfunc): Likewise for local "insns".
18080 (widen_leading): Likewise for local "last".
18081 (expand_doubleword_clz): Likewise for local "seq". Strengthen
18082 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
18083 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
18084 (expand_parity): Likewise for locals "last" and "seq".
18085 (expand_ffs): Likewise for local "seq". Strengthen local
18086 "nonzero_label" from rtx to rtx_code_label *.
18087 (expand_absneg_bit): Strengthen local "insns" from rtx to
18088 rtx_insn *.
18089 (expand_unop_direct): Likewise for local "last".
18090 (expand_unop): Likewise for locals "last", "insns".
18091 (expand_abs_nojump): Likewise for local "last".
18092 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
18093 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
18094 rtx_insn *.
18095 (expand_copysign_absneg): Strengthen local "label" from rtx to
18096 rtx_code_label *.
18097 (expand_copysign_bit): Strengthen local "insns" from rtx to
18098 rtx_insn *.
18099 (struct no_conflict_data): Likewise for fields "first", "insn".
18100 (emit_libcall_block_1): Likewise for param "insns" and locals
18101 "next", "last", "insn".
18102 (emit_libcall_block): For now, add a checked cast to rtx_insn *
18103 on "insns" when invoking emit_libcall_block_1. Ultimately we
18104 want to strengthen insns itself.
18105 (prepare_cmp_insn): Strengthen local "last" from rtx to
18106 rtx_insn *.
18107 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
18108 (prepare_float_lib_cmp): Likewise for local "insns".
18109 (emit_conditional_move): Likewise for local "last".
18110 (emit_conditional_add): Likewise.
18111 (have_sub2_insn): Likewise for local "seq".
18112 (expand_float): Likewise for local "insns". Strengthen locals
18113 "label", "neglabel" from rtx to rtx_code_label *.
18114 (expand_fix): Likewise for locals "last", "insn", "insns" (to
18115 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
18116 (expand_fixed_convert): Likewise for local "insns" (to
18117 rtx_insn *).
18118 (expand_sfix_optab): Likewise for local "last".
18119 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
18120 to rtx_code_label *.
18121 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
18122 from rtx to rtx_insn *.
18123 (expand_atomic_fetch_op): Likewise for local "insn".
18124 (maybe_legitimize_operand_same_code): Likewise for local "last".
18125 (maybe_legitimize_operands): Likewise.
18126
18127 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18128
18129 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
18130 "insn" from rtx to rtx_insn *.
18131 (ps_rtl_insn): Likewise for return type.
18132 (doloop_register_get): Likewise for params "head", "tail" and
18133 locals "insn", "first_insn_not_to_check".
18134 (schedule_reg_move): Likewise for local "this_insn".
18135 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
18136 of gen_move_insn for now.
18137 (reset_sched_times): Strengthen local "insn" from rtx to
18138 rtx_insn *.
18139 (permute_partial_schedule): Likewise.
18140 (duplicate_insns_of_cycles): Likewise for local "u_insn".
18141 (dump_insn_location): Likewise for param "insn".
18142 (loop_canon_p): Likewise for local "insn".
18143 (sms_schedule): Likewise.
18144 (print_partial_schedule): Likewise.
18145 (ps_has_conflicts): Likewise.
18146
18147 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18148
18149 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
18150 "tailp" from rtx * to rtx_insn **.
18151
18152 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
18153 from rtx to rtx_insn *.
18154 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
18155 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
18156 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
18157 rtx to rtx_insn *.
18158 * modulo-sched.c (const_iteration_count): Strengthen return type
18159 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
18160 use of NULL_RTX with NULL when working with insns.
18161 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
18162 to rtx_insn *.
18163 (sms_schedule): Likewise.
18164 * sched-rgn.c (init_ready_list): Likewise, also for locals
18165 "src_head" and "src_next_tail".
18166 (compute_block_dependences): Likewise.
18167 (free_block_dependencies): Likewise.
18168 (debug_rgn_dependencies): Likewise.
18169 (free_rgn_deps): Likewise.
18170 (compute_priorities): Likewise.
18171 (schedule_region): Likewise.
18172 * sel-sched.c (find_ebb_boundaries): Likewise.
18173
18174 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
18175 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
18176
18177 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18178
18179 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
18180 from rtx to rtx_insn *.
18181 (new_seginfo): Likewise for param "insn".
18182 (create_pre_exit): Likewise for locals "last_insn",
18183 "before_return_copy", "return_copy".
18184 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
18185 "mode_set".
18186
18187 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18188
18189 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
18190 from rtx to rtx_insn *.
18191 (lra_push_insn): Likewise for 1st param.
18192 (lra_push_insn_and_update_insn_regno_info): Likewise.
18193 (lra_pop_insn): Likewise for return type.
18194 (lra_invalidate_insn_data): Likewise for 1st param.
18195 (lra_set_insn_deleted): Likewise.
18196 (lra_delete_dead_insn): Likewise.
18197 (lra_process_new_insns): Likewise for first 3 params.
18198 (lra_set_insn_recog_data): Likewise for 1st param.
18199 (lra_update_insn_recog_data): Likewise.
18200 (lra_set_used_insn_alternative): Likewise.
18201 (lra_invalidate_insn_regno_info): Likewise.
18202 (lra_update_insn_regno_info): Likewise.
18203 (lra_former_scratch_operand_p): Likewise.
18204 (lra_eliminate_regs_1): Likewise.
18205 (lra_get_insn_recog_data): Likewise.
18206
18207 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
18208 rtx to rtx_insn *.
18209
18210 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
18211 "mv1" and "mv2".
18212 (substitute_within_insn): New.
18213 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
18214 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
18215 Replace call to "substitute" with call to substitute_within_insn.
18216
18217 * lra-constraints.c (curr_insn): Strengthen from rtx to
18218 rtx_insn *.
18219 (get_equiv_with_elimination): Likewise for param "insn".
18220 (match_reload): Strengthen params "before" and "after" from rtx *
18221 to rtx_insn **.
18222 (emit_spill_move): Likewise for return type. Add a checked cast
18223 to rtx_insn * on result of gen_move_insn for now.
18224 (check_and_process_move): Likewise for local "before". Replace
18225 NULL_RTX with NULL when referring to insns.
18226 (process_addr_reg): Strengthen params "before" and "after" from
18227 rtx * to rtx_insn **.
18228 (insert_move_for_subreg): Likewise.
18229 (simplify_operand_subreg): Strengthen locals "before" and "after"
18230 from rtx to rtx_insn *.
18231 (process_address_1): Strengthen params "before" and "after" from
18232 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
18233 rtx to rtx_insn *.
18234 (process_address): Strengthen params "before" and "after" from
18235 rtx * to rtx_insn **.
18236 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
18237 (curr_insn_transform): Strengthen locals "before" and "after"
18238 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
18239 to insns.
18240 (loc_equivalence_callback): Update cast of "data", changing
18241 resulting type from rtx to rtx_insn *.
18242 (substitute_pseudo_within_insn): New.
18243 (inherit_reload_reg): Strengthen param "insn" from rtx to
18244 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
18245 NULL when referring to insns. Add a checked cast to rtx_insn *
18246 when using usage_insn to invoke lra_update_insn_regno_info.
18247 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
18248 likewise for locals "restore", "save". Add checked casts to
18249 rtx_insn * when using usage_insn to invoke
18250 lra_update_insn_regno_info and lra_process_new_insns. Replace
18251 NULL_RTX with NULL when referring to insns.
18252 (split_if_necessary): Strengthen param "insn" from rtx to
18253 rtx_insn *.
18254 (update_ebb_live_info): Likewise for params "head", "tail" and local
18255 "prev_insn".
18256 (get_last_insertion_point): Likewise for return type and local "insn".
18257 (get_live_on_other_edges): Likewise for local "last".
18258 (inherit_in_ebb): Likewise for params "head", "tail" and locals
18259 "prev_insn", "next_insn", "restore".
18260 (remove_inheritance_pseudos): Likewise for local "prev_insn".
18261 (undo_optional_reloads): Likewise for local "insn".
18262
18263 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
18264 "insn".
18265 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
18266 insns.
18267 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
18268 rtx_insn *.
18269 (spill_pseudos): Likewise for local "insn".
18270 (init_elimination): Likewise.
18271 (process_insn_for_elimination): Likewise for param "insn".
18272
18273 * lra-lives.c (curr_insn): Likewise.;
18274
18275 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
18276 (remove_pseudos): Likewise for param "insn".
18277 (spill_pseudos): Likewise for local "insn".
18278 (lra_final_code_change): Likewise for locals "insn", "curr".
18279
18280 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
18281 (lra_set_insn_deleted): Likewise.
18282 (lra_delete_dead_insn): Likewise, and for local "prev".
18283 (new_insn_reg): Likewise for param "insn".
18284 (lra_set_insn_recog_data): Likewise.
18285 (lra_update_insn_recog_data): Likewise.
18286 (lra_set_used_insn_alternative): Likewise.
18287 (get_insn_freq): Likewise.
18288 (invalidate_insn_data_regno_info): Likewise.
18289 (lra_invalidate_insn_regno_info): Likewise.
18290 (lra_update_insn_regno_info): Likewise.
18291 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
18292 vec<rtx_insn *>.
18293 (lra_push_insn_1): Strengthen param "insn" from rtx to
18294 rtx_insn *.
18295 (lra_push_insn): Likewise.
18296 (lra_push_insn_and_update_insn_regno_info): Likewise.
18297 (lra_pop_insn): Likewise for return type and local "insn".
18298 (push_insns): Likewise for params "from", "to", and local "insn".
18299 (setup_sp_offset): Likewise for params "from", "last" and locals
18300 "before", "insn".
18301 (lra_process_new_insns): Likewise for params "insn", "before",
18302 "after" and local "last".
18303 (struct sloc): Likewise for field "insn".
18304 (lra_former_scratch_operand_p): Likewise for param "insn".
18305 (remove_scratches): Likewise for locals "insn", "last".
18306 (check_rtl): Likewise for local "insn".
18307 (add_auto_inc_notes): Likewise for param "insn".
18308 (update_inc_notes): Likewise for local "insn".
18309 (lra): Replace NULL_RTX with NULL when referring to insn.
18310
18311 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18312
18313 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
18314 to rtx_insn *.
18315 (resolve_reg_notes): Likewise.
18316 (resolve_simple_move): Likewise for return type, param "insn", and
18317 locals "insns", "minsn".
18318 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
18319 (resolve_use): Likewise.
18320 (resolve_debug): Likewise.
18321 (find_decomposable_shift_zext): Likewise.
18322 (resolve_shift_zext): Likewise for return type, param "insn", and
18323 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
18324 (decompose_multiword_subregs): Likewise for local "insn",
18325 "orig_insn", "decomposed_shift", "end".
18326
18327 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18328
18329 * basic-block.h (basic_block split_edge_and_insert): Strengthen
18330 param "insns" from rtx to rtx_insn *.
18331
18332 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
18333 rtx to rtx_insn *.
18334 (struct iv_to_split): Likewise.
18335 (loop_exit_at_end_p): Likewise for local "insn".
18336 (split_edge_and_insert): Likewise for param "insns".
18337 (compare_and_jump_seq): Likewise for return type, param "cinsn",
18338 and locals "seq", "jump".
18339 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
18340 "branch_code"; update invocations of compare_and_jump_seq to
18341 eliminate NULL_RTX in favor of NULL.
18342 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
18343 rtx to rtx_insn *.
18344 (reset_debug_uses_in_loop): Likewise.
18345 (analyze_insn_to_expand_var): Likewise for param "insn".
18346 (analyze_iv_to_split_insn): Likewise.
18347 (analyze_insns_in_loop): Likewise for local "insn".
18348 (insert_base_initialization): Likewise for param
18349 "insn" and local "seq".
18350 (split_iv): Likewise for param "insn" and local "seq".
18351 (expand_var_during_unrolling): Likewise for param "insn".
18352 (insert_var_expansion_initialization): Likewise for local "seq".
18353 (combine_var_copies_in_loop_exit): Likewise.
18354 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
18355 "insn".
18356 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
18357 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
18358 "next".
18359
18360 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18361
18362 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
18363 rtx_insn *.
18364 (iv_analyze_result): Likewise.
18365 (iv_analyze_expr): Likewise.
18366 (biv_p): Likewise.
18367
18368 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
18369 local "def_insn" from rtx to rtx_insn *.
18370 (get_biv_step_1): Likewise for local "insn".
18371 (iv_analyze_expr): Likewise for param "insn".
18372 (iv_analyze_def): Likewise for local "insn".
18373 (iv_analyze_op): Likewise for param "insn".
18374 (iv_analyze): Likewise.
18375 (iv_analyze_result): Likewise.
18376 (biv_p): Likewise.
18377 (suitable_set_for_replacement): Likewise.
18378 (simplify_using_initial_values): Likewise for local "insn".
18379 (iv_number_of_iterations): Likewise for param "insn".
18380 (check_simple_exit): Add checked cast to rtx_insn when invoking
18381 iv_number_of_iterations for now (until get_condition is
18382 strengthened).
18383
18384 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
18385 "insn" from rtx to rtx_insn *.
18386 (analyze_insns_in_loop): Likewise for local "insn".
18387
18388 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18389
18390 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
18391 to rtx_insn *.
18392 (struct invariant): Likewise.
18393 (hash_invariant_expr_1): Likewise for param "insn".
18394 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
18395 (find_exits): Likewise for local "insn".
18396 (create_new_invariant): Likewise for param "insn".
18397 (check_dependencies): Likewise.
18398 (find_invariant_insn): Likewise.
18399 (record_uses): Likewise.
18400 (find_invariants_insn): Likewise.
18401 (find_invariants_bb): Likewise for local "insn".
18402 (get_pressure_class_and_nregs): Likewise for param "insn".
18403 (calculate_loop_reg_pressure): Likewise for local "insn".
18404
18405 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18406
18407 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
18408 to rtx_insn *.
18409 (add_test): Likewise for locals "seq", "jump".
18410 (doloop_modify): Likewise for locals "sequence", "jump_insn".
18411
18412 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18413
18414 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
18415 rtx_insn *.
18416 (rebuild_jump_labels_chain): Likewise for param "chain".
18417
18418 * cfgexpand.c (pass_expand::execute): Add checked cast to
18419 rtx_insn * when calling rebuild_jump_labels_chain in region where
18420 we know e->insns.r is non-NULL.
18421
18422 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
18423 rtx_insn *.
18424 (rebuild_jump_labels): Likewise.
18425 (rebuild_jump_labels_chain): Likewise for param "chain".
18426 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
18427 (init_label_info): Likewise for param "f".
18428 (maybe_propagate_label_ref): Likewise for params "jump_insn",
18429 "prev_nonjump_insn".
18430 (mark_all_labels): Likewise for param "f" and locals "insn",
18431 "prev_nonjump_insn".
18432
18433 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18434
18435 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
18436 from rtx to rtx_insn *insn.
18437 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
18438 (ira_add_allocno_copy): Likewise.
18439 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
18440 rtx to rtx_insn *.
18441 (ira_create_copy): Likewise.
18442 (ira_add_allocno_copy): Likewise.
18443 (create_bb_allocnos): Likewise for local "insn".
18444 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
18445 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
18446 process_regs_for_copy for rtx_insn * param.
18447 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
18448 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
18449 process_regs_for_copy for rtx_insn * param.
18450 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
18451 * ira-costs.c (record_reg_classes): Likewise for param "insn".
18452 (record_operand_costs): Likewise.
18453 (scan_one_insn): Likewise for return type, and for param "insn".
18454 (process_bb_for_costs): Likewise for local "insn".
18455 (process_bb_node_for_hard_reg_moves): Likewise.
18456 * ira-emit.c (struct move): Likewise for field "insn".
18457 (create_move): Eliminate use of NULL_RTX when dealing with an
18458 rtx_insn *.
18459 (emit_move_list): Strengthen return type and locals "result",
18460 "insn" from rtx to rtx_insn *insn.
18461 (emit_moves): Likewise for locals "insns", "tmp".
18462 (ira_emit): Likewise for local "insn".
18463 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
18464 "insn".
18465 (find_call_crossed_cheap_reg): Likewise.
18466 (process_bb_node_lives): Likewise for local "insn".
18467 * ira.c (decrease_live_ranges_number): Likewise.
18468 (compute_regs_asm_clobbered): Likewise.
18469 (build_insn_chain): Likewise.
18470 (find_moveable_pseudos): Likewise, also locals "def_insn",
18471 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
18472 to rtx_insn **. Add a checked cast when assigning from
18473 "closest_use" into closest_uses array in a region where we know
18474 it's a non-NULL insn.
18475 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
18476 to rtx_insn *.
18477 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
18478 "last_interesting_insn", "uin".
18479 (move_unallocated_pseudos): Likewise for locals "def_insn",
18480 "move_insn", "newinsn".
18481
18482 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18483
18484 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
18485 Strengthen locals "done_label", "do_error" from rtx to
18486 rtx_code_label *.
18487 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
18488 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
18489 rtx_code_label *.
18490 (ubsan_expand_si_overflow_neg_check): Likewise for locals
18491 "done_label", "do_error" to rtx_code_label * and local "last" to
18492 rtx_insn *.
18493 (ubsan_expand_si_overflow_mul_check): Likewise for locals
18494 "done_label", "do_error", "large_op0", "small_op0_large_op1",
18495 "one_small_one_large", "both_ops_large", "after_hipart_neg",
18496 "after_lopart_neg", "do_overflow", "hipart_different" to
18497 rtx_code_label * and local "last" to rtx_insn *.
18498
18499 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18500
18501 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
18502 "insn" and "move_insn" from rtx to rtx_insn *.
18503
18504 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18505
18506 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
18507 rtx_insn *.
18508 (cheap_bb_rtx_cost_p): Likewise.
18509 (first_active_insn): Likewise for return type and local "insn".
18510 (last_active_insn): Likewise for return type and locals "insn",
18511 "head".
18512 (struct noce_if_info): Likewise for fields "jump", "insn_a",
18513 "insn_b".
18514 (end_ifcvt_sequence): Likewise for return type and locals "insn",
18515 "seq".
18516 (noce_try_move): Likewise for local "seq".
18517 (noce_try_store_flag): Likewise.
18518 (noce_try_store_flag_constants): Likewise.
18519 (noce_try_addcc): Likewise.
18520 (noce_try_store_flag_mask): Likewise.
18521 (noce_try_cmove): Likewise.
18522 (noce_try_minmax): Likewise.
18523 (noce_try_abs): Likewise.
18524 (noce_try_sign_mask): Likewise.
18525 (noce_try_bitop): Likewise.
18526 (noce_can_store_speculate_p): Likewise for local "insn".
18527 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
18528 seq".
18529 (check_cond_move_block): Likewise for local "insn".
18530 (cond_move_convert_if_block): Likewise.
18531 (cond_move_process_if_block): Likewise for locals "seq",
18532 "loc_insn".
18533 (noce_find_if_block): Likewise for local "jump".
18534 (merge_if_block): Likewise for local "last".
18535 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
18536 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
18537 (block_has_only_trap): Likewise for return type and local "trap".
18538 (find_if_case_1): Likewise for local "jump".
18539 (dead_or_predicable): Likewise for locals "head", "end", "jump",
18540 "insn".
18541
18542 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18543
18544 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
18545 "last_insn", "loop_end" from rtx to rtx_insn *.
18546
18547 * hw-doloop.c (scan_loop): Likewise for local "insn".
18548 (discover_loop): Likewise for param "tail_insn".
18549 (discover_loops): Likewise for local "tail".
18550
18551 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
18552 cast to rtx_insn * when assigning from an rtx local to a
18553 hwloop_info's "last_insn" field.
18554
18555 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18556
18557 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
18558 (add_delay_dependencies): Strengthen local "pro" from rtx to
18559 rtx_insn *.
18560 (recompute_todo_spec): Likewise.
18561 (dep_cost_1): Likewise for locals "insn", "used".
18562 (schedule_insn): Likewise for local "dbg".
18563 (schedule_insn): Likewise for locals "pro", "next".
18564 (unschedule_insns_until): Likewise for local "con".
18565 (restore_pattern): Likewise for local "next".
18566 (estimate_insn_tick): Likewise for local "pro".
18567 (resolve_dependencies): Likewise for local "next".
18568 (fix_inter_tick): Likewise.
18569 (fix_tick_ready): Likewise for local "pro".
18570 (add_to_speculative_block): Likewise for locals "check", "twin",
18571 "pro".
18572 (sched_extend_bb): Likewise for locals "end", "insn".
18573 (init_before_recovery): Likewise for local "x".
18574 (sched_create_recovery_block): Likewise for local "barrier".
18575 (create_check_block_twin): Likewise for local "pro".
18576 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
18577 "consumer".
18578 (unlink_bb_notes): Update for change to type of bb_header.
18579 Strengthen locals "prev", "label", "note", "next" from rtx to
18580 rtx_insn *.
18581 (clear_priorities): Likewise for local "pro".
18582
18583 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18584
18585 * gcse.c (struct occr): Strengthen field "insn" from rtx to
18586 rtx_insn *.
18587 (test_insn): Likewise for this global.
18588 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
18589 const rtx_insn *.
18590 (oprs_anticipatable_p): Likewise.
18591 (oprs_available_p): Likewise.
18592 (insert_expr_in_table): Strengthen param "insn" from rtx to
18593 rtx_insn *.
18594 (hash_scan_set): Likewise.
18595 (hash_scan_clobber): Likewise.
18596 (hash_scan_call): Likewise.
18597 (hash_scan_insn): Likewise.
18598 (compute_hash_table_work): Likewise for local "insn".
18599 (process_insert_insn): Likewise for return type and local "pat".
18600 (insert_insn_end_basic_block): Likewise for locals "new_insn",
18601 "pat", "pat_end", "maybe_cc0_setter".
18602 (pre_edge_insert): Likewise for local "insn".
18603 (pre_insert_copy_insn): Likewise for param "insn".
18604 (pre_insert_copies): Likewise for local "insn".
18605 (struct set_data): Likewise for field "insn".
18606 (single_set_gcse): Likewise for param "insn".
18607 (gcse_emit_move_after): Likewise.
18608 (pre_delete): Likewise for local "insn".
18609 (update_bb_reg_pressure): Likewise for param "from" and local
18610 "insn".
18611 (should_hoist_expr_to_dom): Likewise for param "from".
18612 (hoist_code): Likewise for local "insn".
18613 (get_pressure_class_and_nregs): Likewise for param "insn".
18614 (calculate_bb_reg_pressure): Likewise for local "insn".
18615 (compute_ld_motion_mems): Likewise.
18616
18617 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18618
18619 * genpeep.c (main): Rename param back from "uncast_ins1" to
18620 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
18621 checked cast.
18622
18623 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
18624
18625 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
18626
18627 PR target/62195
18628 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
18629 documentation to state it is only for VSX operations.
18630
18631 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
18632 constraint only active if VSX.
18633
18634 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
18635 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
18636 (lfiwzx): Likewise.
18637
18638 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18639
18640 * fwprop.c (single_def_use_dom_walker::before_dom_children):
18641 Strengthen local "insn" from rtx to rtx_insn *.
18642 (use_killed_between): Likewise for param "target_insn".
18643 (all_uses_available_at): Likewise for param "target_insn" and
18644 local "next".
18645 (update_df_init): Likewise for params "def_insn", "insn".
18646 (update_df): Likewise for param "insn".
18647 (try_fwprop_subst): Likewise for param "def_insn" and local
18648 "insn".
18649 (free_load_extend): Likewise for param "insn".
18650 (forward_propagate_subreg): Likewise for param "def_insn" and
18651 local "use_insn".
18652 (forward_propagate_asm): Likewise for param "def_insn" and local
18653 "use_insn".
18654 (forward_propagate_and_simplify): Likewise for param "def_insn"
18655 and local "use_insn".
18656 (forward_propagate_into): Likewise for locals "def_insn" and
18657 "use_insn".
18658
18659 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18660
18661 * function.c (emit_initial_value_sets): Strengthen local "seq"
18662 from rtx to rtx_insn *.
18663 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
18664 local "seq".
18665 (instantiate_virtual_regs): Likewise for local "insn".
18666 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
18667 (reorder_blocks_1): Likewise for param "insns" and local "insn".
18668 (expand_function_end): Likewise for locals "insn" and "seq".
18669 (epilogue_done): Likewise for local "insn".
18670 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
18671 "last", "trial".
18672 (reposition_prologue_and_epilogue_notes): Likewise for locals
18673 "insn", "last", "note", "first".
18674 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
18675 (pass_match_asm_constraints::execute): Likewise for local "insn".
18676
18677 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18678
18679 * output.h (final_scan_insn): Strengthen return type from rtx to
18680 rtx_insn *.
18681 (final_forward_branch_p): Likewise for param.
18682 (current_output_insn): Likewise for this global.
18683
18684 * final.c (rtx debug_insn): Likewise for this variable.
18685 (current_output_insn): Likewise.
18686 (get_attr_length_1): Rename param "insn" to "uncast_insn",
18687 adding "insn" back in as an rtx_insn * with a checked cast, so
18688 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
18689 first param.
18690 (compute_alignments): Strengthen local "label" from rtx to
18691 rtx_insn *.
18692 (shorten_branches): Rename param from "first" to "uncast_first",
18693 introducing a new local rtx_insn * "first" using a checked cast to
18694 effectively strengthen "first" from rtx to rtx_insn * without
18695 affecting the type signature. Strengthen locals "insn", "seq",
18696 "next", "label" from rtx to rtx_insn *.
18697 (change_scope): Strengthen param "orig_insn" and local "insn" from
18698 rtx to rtx_insn *.
18699 (final_start_function): Rename param from "first" to "uncast_first",
18700 introducing a new local rtx_insn * "first" using a checked cast to
18701 effectively strengthen "first" from rtx to rtx_insn * without
18702 affecting the type signature. Strengthen local "insn" from rtx to
18703 rtx_insn *.
18704 (dump_basic_block_info): Strengthen param "insn" from rtx to
18705 rtx_insn *.
18706 (final): Rename param from "first" to "uncast_first",
18707 introducing a new local rtx_insn * "first" using a checked cast to
18708 effectively strengthen "first" from rtx to rtx_insn * without
18709 affecting the type signature. Strengthen locals "insn", "next"
18710 from rtx to rtx_insn *.
18711 (output_alternate_entry_point): Strengthen param "insn" from rtx to
18712 rtx_insn *.
18713 (call_from_call_insn): Strengthen param "insn" from rtx to
18714 rtx_call_insn *.
18715 (final_scan_insn): Rename param from "insn" to "uncast_insn",
18716 introducing a new local rtx_insn * "insn" using a checked cast to
18717 effectively strengthen "insn" from rtx to rtx_insn * without
18718 affecting the type signature. Strengthen return type and locals
18719 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
18720 now-redundant checked cast to rtx_insn * from both invocations of
18721 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
18722 introducing a local "call_insn" for use when invoking
18723 call_from_call_insn.
18724 (notice_source_line): Strengthen param "insn" from rtx to
18725 rtx_insn *.
18726 (leaf_function_p): Likewise for local "insn".
18727 (final_forward_branch_p): Likewise.
18728 (leaf_renumber_regs): Likewise for param "first".
18729 (rest_of_clean_state): Likewise for locals "insn" and "next".
18730 (self_recursive_call_p): Likewise for param "insn".
18731 (collect_fn_hard_reg_usage): Likewise for local "insn".
18732 (get_call_fndecl): Likewise for param "insn".
18733 (get_call_cgraph_rtl_info): Likewise.
18734 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
18735 introducing a new local rtx_insn * "insn" using a checked cast to
18736 effectively strengthen "insn" from rtx to rtx_insn * without
18737 affecting the type signature.
18738
18739 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
18740 cast when assigning from param "insn" to current_output_insn.
18741 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
18742 so that we can assign it back to current_output_insn.
18743
18744 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18745
18746 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
18747 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
18748 atmxt540s and atmxt540sreva devices.
18749 * config/avr/avr-tables.opt: Regenerate.
18750 * config/avr/t-multilib: Regenerate.
18751 * doc/avr-mmcu.texi: Regenerate.
18752
18753 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18754
18755 * expr.c (convert_move): Strengthen local "insns" from rtx to
18756 rtx_insn *.
18757 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
18758 "top_label" from rtx to rtx_code_label *.
18759 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
18760 rtx_insn *.
18761 (emit_single_push_insn): Likewise for locals "prev", "last".
18762 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
18763 to rtx_code_label *.
18764 (store_constructor): Likewise for locals "loop_start", "loop_end".
18765 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
18766 rtx_insn *.
18767 (expand_expr_real_2): Likewise.
18768 (expand_expr_real_1): Strengthen local "label" from rtx to
18769 rtx_code_label *.
18770
18771 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18772
18773 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
18774 from rtx to rtx_insn *.
18775 (store_bit_field_1): Likewise.
18776 (extract_bit_field_1): Likewise.
18777 (expand_mult_const): Likewise for local "insns".
18778 (expmed_mult_highpart): Strengthen local "label" from rtx to
18779 rtx_code_label *.
18780 (expand_smod_pow2): Likewise.
18781 (expand_sdiv_pow2): Likewise.
18782 (expand_divmod): Strengthen locals "last", "insn" from rtx to
18783 rtx_insn *. Strengthen locals "label", "label1", "label2",
18784 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
18785 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
18786 (emit_store_flag): Likewise.
18787 (emit_store_flag_force): Strengthen local "label" from rtx to
18788 rtx_code_label *.
18789 (do_cmp_and_jump): Likewise for param "label".
18790
18791 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18792
18793 * explow.c (force_reg): Strengthen local "insn" from rtx to
18794 rtx_insn *.
18795 (adjust_stack_1): Likewise.
18796 (allocate_dynamic_stack_space): Likewise. Strengthen locals
18797 "final_label", "available_label", "space_available" from rtx to
18798 rtx_code_label *.
18799 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
18800 (anti_adjust_stack_and_probe): Likewise.
18801
18802 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18803
18804 * except.h (sjlj_emit_function_exit_after): Strengthen param
18805 "after" from rtx to rtx_insn *. This is only called with
18806 result of get_last_insn (in function.c) so type-change should be
18807 self-contained.
18808
18809 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
18810 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
18811 to rtx_insn *. These fields are only used from except.c so this
18812 type-change should be self-contained to this patch.
18813
18814 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
18815 local "last" from rtx to rtx_insn *.
18816 (dw2_build_landing_pads): Likewise for local "seq".
18817 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
18818 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
18819 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
18820 rtx to rtx_insn *.
18821 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
18822 to rtx_insn *.
18823 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
18824 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
18825 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
18826 referring to an insn. Strengthen local "dispatch_label" from
18827 rtx to rtx_code_label *.
18828 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
18829 rtx_insn *.
18830 (expand_eh_return): Strengthen local "around_label" from
18831 rtx to rtx_code_label *.
18832 (convert_to_eh_region_ranges): Strengthen locals "iter",
18833 "last_action_insn", "first_no_action_insn",
18834 "first_no_action_insn_before_switch",
18835 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
18836
18837 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18838
18839 * dwarf2out.c (last_var_location_insn): Strengthen this variable
18840 from rtx to rtx_insn *.
18841 (cached_next_real_insn): Likewise.
18842 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
18843 working with insns.
18844 (dwarf2out_var_location): Strengthen locals "next_real",
18845 "next_note", "expected_next_loc_note", "last_start", "insn" from
18846 rtx to rtx_insn *.
18847
18848 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18849
18850 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
18851 from rtx to rtx_insn *.
18852 (create_pseudo_cfg): Likewise for local "insn".
18853
18854 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18855
18856 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
18857 from rtx to rtx_insn *.
18858 (df_bb_regno_last_def_find): Likewise.
18859
18860 * df-problems.c (df_rd_bb_local_compute): Likewise.
18861 (df_lr_bb_local_compute): Likewise.
18862 (df_live_bb_local_compute): Likewise.
18863 (df_chain_remove_problem): Likewise.
18864 (df_chain_create_bb): Likewise.
18865 (df_word_lr_bb_local_compute): Likewise.
18866 (df_remove_dead_eq_notes): Likewise for param "insn".
18867 (df_note_bb_compute): Likewise for local "insn".
18868 (simulate_backwards_to_point): Likewise.
18869 (df_md_bb_local_compute): Likewise.
18870
18871 * df-scan.c (df_scan_free_bb_info): Likewise.
18872 (df_scan_start_dump): Likewise.
18873 (df_scan_start_block): Likewise.
18874 (df_install_ref_incremental): Likewise for local "insn".
18875 (df_insn_rescan_all): Likewise.
18876 (df_reorganize_refs_by_reg_by_insn): Likewise.
18877 (df_reorganize_refs_by_insn_bb): Likewise.
18878 (df_recompute_luids): Likewise.
18879 (df_bb_refs_record): Likewise.
18880 (df_update_entry_exit_and_calls): Likewise.
18881 (df_bb_verify): Likewise.
18882
18883 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18884
18885 * ddg.h (struct ddg_node): Strengthen fields "insn" and
18886 "first_note" from rtx to rtx_insn *.
18887 (get_node_of_insn): Likewise for param 2 "insn".
18888 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
18889
18890 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
18891 rtx_insn *.
18892 (mem_write_insn_p): Likewise.
18893 (mem_access_insn_p): Likewise.
18894 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
18895 (def_has_ccmode_p): Likewise for param "insn".
18896 (add_cross_iteration_register_deps): Likewise for locals
18897 "def_insn" and "use_insn".
18898 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
18899 (build_intra_loop_deps): Likewise for local "src_insn".
18900 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
18901 to rtx_insn *.
18902 (get_node_of_insn): Likewise for param "insn".
18903
18904 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18905
18906 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
18907 (deletable_insn_p): Strengthen param "insn" from rtx to
18908 rtx_insn *. Add checked cast to rtx_call_insn when invoking
18909 find_call_stack_args, since this is guarded by CALL_P (insn).
18910 (marked_insn_p): Strengthen param "insn" from rtx to
18911 rtx_insn *.
18912 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
18913 invoking find_call_stack_args, since this is guarded by
18914 CALL_P (insn).
18915 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
18916 rtx_insn *; we know this is an insn since this was called by
18917 mark_nonreg_stores.
18918 (mark_nonreg_stores_2): Likewise.
18919 (mark_nonreg_stores): Strengthen param "insn" from rtx to
18920 rtx_insn *.
18921 (find_call_stack_args): Strengthen param "call_insn" from rtx to
18922 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
18923 to rtx_insn *.
18924 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
18925 from rtx to rtx_insn *.
18926 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
18927 "next", "ref_insn".
18928 (delete_unmarked_insns): Likewise for locals "insn", "next".
18929 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
18930 (mark_reg_dependencies): Likewise for param "insn".
18931 (rest_of_handle_ud_dce): Likewise for local "insn".
18932 (word_dce_process_block): Likewise.
18933 (dce_process_block): Likewise.
18934
18935 2014-08-22 David Malcolm <dmalcolm@redhat.com>
18936
18937 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
18938 from rtx to rtx_insn *.
18939 (struct change_cc_mode_args): Likewise for field "insn".
18940 (this_insn): Strengthen from rtx to rtx_insn *.
18941 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
18942 with insn.
18943 (validate_canon_reg): Strengthen param "insn" from rtx to
18944 rtx_insn *.
18945 (canon_reg): Likewise.
18946 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
18947 dealing with insn.
18948 (record_jump_equiv): Strengthen param "insn" from rtx to
18949 rtx_insn *.
18950 (try_back_substitute_reg): Likewise, also for locals "prev",
18951 "bb_head".
18952 (find_sets_in_insn): Likewise for param "insn".
18953 (canonicalize_insn): Likewise.
18954 (cse_insn): Likewise. Add a checked cast.
18955 (invalidate_from_clobbers): Likewise for param "insn".
18956 (invalidate_from_sets_and_clobbers): Likewise.
18957 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
18958 dealing with insn.
18959 (cse_prescan_path): Strengthen local "insn" from rtx to
18960 rtx_insn *.
18961 (cse_extended_basic_block): Likewise for locals "insn" and
18962 "prev_insn".
18963 (cse_main): Likewise for param "f".
18964 (check_for_label_ref): Likewise for local "insn".
18965 (set_live_p): Likewise for second param ("insn").
18966 (insn_live_p): Likewise for first param ("insn") and for local
18967 "next".
18968 (cse_change_cc_mode_insn): Likewise for first param "insn".
18969 (cse_change_cc_mode_insns): Likewise for first and second params
18970 "start" and "end".
18971 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
18972 and "end".
18973 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
18974 "cc_src_insn".
18975
18976 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
18977 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18978 Anna Tikhonova <anna.tikhonova@intel.com>
18979 Ilya Tocar <ilya.tocar@intel.com>
18980 Andrey Turetskiy <andrey.turetskiy@intel.com>
18981 Ilya Verbin <ilya.verbin@intel.com>
18982 Kirill Yukhin <kirill.yukhin@intel.com>
18983 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18984
18985 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
18986 New.
18987 * config/i386/sse.md
18988 (define_mode_iterator VI248_AVX2): Delete.
18989 (define_mode_iterator VI2_AVX2_AVX512BW): New.
18990 (define_mode_iterator VI48_AVX2): Ditto.
18991 (define_insn <shift_insn><mode>3): Delete.
18992 (define_insn "<shift_insn><mode>3<mask_name>" with
18993 VI2_AVX2_AVX512BW): New.
18994 (define_insn "<shift_insn><mode>3<mask_name>" with
18995 VI48_AVX2): Ditto.
18996
18997 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
18998 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18999 Anna Tikhonova <anna.tikhonova@intel.com>
19000 Ilya Tocar <ilya.tocar@intel.com>
19001 Andrey Turetskiy <andrey.turetskiy@intel.com>
19002 Ilya Verbin <ilya.verbin@intel.com>
19003 Kirill Yukhin <kirill.yukhin@intel.com>
19004 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19005
19006 * config/i386/sse.md
19007 (define_mode_iterator VI4F_BRCST32x2): New.
19008 (define_mode_attr 64x2_mode): Ditto.
19009 (define_mode_attr 32x2mode): Ditto.
19010 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
19011 with VI4F_BRCST32x2): Ditto.
19012 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
19013 with V16FI mode iterator): Ditto.
19014 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
19015 with V16FI): Ditto.
19016 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
19017 with VI8F_BRCST64x2): Ditto.
19018
19019 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
19020 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19021 Anna Tikhonova <anna.tikhonova@intel.com>
19022 Ilya Tocar <ilya.tocar@intel.com>
19023 Andrey Turetskiy <andrey.turetskiy@intel.com>
19024 Ilya Verbin <ilya.verbin@intel.com>
19025 Kirill Yukhin <kirill.yukhin@intel.com>
19026 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19027
19028 * config/i386/sse.md
19029 (define_mode_iterator VI8_AVX512VL): New.
19030 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
19031
19032 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
19033
19034 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
19035 (define_mode_iterator V48_AVX512VL): New.
19036 (define_mode_iterator V12_AVX512VL): Ditto.
19037 (define_insn <avx512>_load<mode>_mask): Split into two similar
19038 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
19039 Refactor output template.
19040 (define_insn "<avx512>_store<mode>_mask"): Ditto.
19041
19042 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19043
19044 * cprop.c (struct occr): Strengthen field "insn" from rtx to
19045 rtx_insn *.
19046 (reg_available_p): Likewise for param "insn".
19047 (insert_set_in_table): Likewise.
19048 (hash_scan_set): Likewise.
19049 (hash_scan_insn): Likewise.
19050 (make_set_regs_unavailable): Likewise.
19051 (compute_hash_table_work): Likewise for local "insn".
19052 (reg_not_set_p): Strengthen param "insn" from const_rtx to
19053 const rtx_insn *.
19054 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
19055 (try_replace_reg): Likewise.
19056 (find_avail_set): Likewise.
19057 (cprop_jump): Likewise for params "setcc", "jump".
19058 (constprop_register): Likewise for param "insn".
19059 (cprop_insn): Likewise.
19060 (do_local_cprop): Likewise.
19061 (local_cprop_pass): Likewise for local "insn".
19062 (bypass_block): Likewise for params "setcc" and "jump".
19063 (bypass_conditional_jumps): Likewise for locals "setcc" and
19064 "insn".
19065 (one_cprop_pass): Likewise for local "insn".
19066
19067 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19068
19069 * compare-elim.c (struct comparison_use): Strengthen field "insn"
19070 from rtx to rtx_insn *.
19071 (struct comparison): Likewise, also for field "prev_clobber".
19072 (conforming_compare): Likewise for param "insn".
19073 (arithmetic_flags_clobber_p): Likewise.
19074 (find_flags_uses_in_insn): Likewise.
19075 (find_comparison_dom_walker::before_dom_children): Likewise for
19076 locals "insn", "next", "last_clobber".
19077 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
19078
19079 2014-08-22 David Malcolm <dmalcolm@redhat.com>
19080
19081 * combine-stack-adj.c (struct csa_reflist): Strengthen field
19082 "insn" from rtx to rtx_insn *.
19083 (single_set_for_csa): Likewise for param "insn".
19084 (record_one_stack_ref): Likewise.
19085 (try_apply_stack_adjustment): Likewise.
19086 (struct record_stack_refs_data): Likewise for field "insn".
19087 (maybe_move_args_size_note): Likewise for params "last" and "insn".
19088 (prev_active_insn_bb): Likewise for return type and param "insn".
19089 (next_active_insn_bb): Likewise.
19090 (force_move_args_size_note): Likewise for params "prev" and "last"
19091 and locals "test", "next_candidate", "prev_candidate".
19092 (combine_stack_adjustments_for_block): Strengthen locals
19093 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
19094 rtx_insn *.
19095
19096 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19097
19098 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
19099 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
19100 (subst_insn): Likewise for this variable.
19101 (added_links_insn): Likewise.
19102 (struct insn_link): Likewise for field "insn".
19103 (alloc_insn_link): Likewise for param "insn".
19104 (struct undobuf): Likewise for field "other_insn".
19105 (find_single_use): Likewise for param "insn" and local "next".
19106 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
19107 (delete_noop_moves): Likewise for locals "insn", "next".
19108 (create_log_links): Likewise for locals "insn", "use_insn".
19109 Strengthen local "next_use" from rtx * to rtx_insn **.
19110 (insn_a_feeds_b): Likewise for params "a", "b".
19111 (combine_instructions): Likewise for param "f" and locals "insn",
19112 "next", "prev", "first", "last_combined_insn", "link", "link1",
19113 "temp". Replace use of NULL_RTX with NULL when referring to
19114 insns.
19115 (setup_incoming_promotions): Likewise for param "first"
19116 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
19117 (can_combine_p): Likewise for params "insn", "i3", "pred",
19118 "pred2", "succ", "succ2" and for local "p".
19119 (combinable_i3pat): Likewise for param "i3".
19120 (cant_combine_insn_p): Likewise for param "insn".
19121 (likely_spilled_retval_p): Likewise.
19122 (adjust_for_new_dest): Likewise.
19123 (update_cfg_for_uncondjump): Likewise, also for local "insn".
19124 (try_combine): Likewise for return type and for params "i3", "i2",
19125 "i1", "i0", "last_combined_insn", and for locals "insn",
19126 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
19127 "i0_insn". Eliminate local "tem" in favor of new locals
19128 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
19129 checked cast for now to rtx_insn * on the return type of
19130 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
19131 insns.
19132 (find_split_point): Strengthen param "insn" from rtx to
19133 rtx_insn *.
19134 (simplify_set): Likewise for local "other_insn".
19135 (recog_for_combine): Likewise for param "insn".
19136 (record_value_for_reg): Likewise.
19137 (record_dead_and_set_regs_1): Likewise for local
19138 "record_dead_insn".
19139 (record_dead_and_set_regs): Likewise for param "insn".
19140 (record_promoted_value): Likewise.
19141 (check_promoted_subreg): Likewise.
19142 (get_last_value_validate): Likewise.
19143 (reg_dead_at_p): Likewise.
19144 (move_deaths): Likewise for param "to_insn".
19145 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
19146 and locals "place", "place2", "cc0_setter". Eliminate local "tem
19147 in favor of new locals "tem_note" and "tem_insn", the latter being
19148 an rtx_insn *.
19149 (distribute_links): Strengthen locals "place", "insn" from rtx to
19150 rtx_insn *.
19151
19152 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19153
19154 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
19155 than a const_rtx.
19156 (can_delete_label_p): Require a const rtx_code_label * rather than
19157 a const_rtx.
19158 (delete_insn): Add checked cast to rtx_code_label * when we know
19159 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
19160 rtx to rtx_insn *.
19161 (delete_insn_chain): Strengthen locals "prev" and "current" from
19162 rtx to rtx_insn *. Add a checked cast when assigning from
19163 "finish" (strengthening the params will come later). Add a
19164 checked cast to rtx_note * in region where we know
19165 NOTE_P (current).
19166 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
19167 rtx_insn *.
19168 (compute_bb_for_insn): Likewise.
19169 (free_bb_for_insn): Likewise for local "insn".
19170 (compute_bb_for_insn): Likewise.
19171 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
19172 local "insn" from rtx to rtx_insn *
19173 (flow_active_insn_p): Require a const rtx_insn * rather than a
19174 const_rtx.
19175 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
19176 rtx_insn *.
19177 (can_fallthru): Likewise for locals "insn" and "insn2".
19178 (bb_note): Likewise for local "note".
19179 (first_insn_after_basic_block_note): Likewise for local "note" and
19180 for return type.
19181 (rtl_split_block): Likewise for locals "insn" and "next".
19182 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
19183 "end".
19184 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
19185 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
19186 "prev", "tmp".
19187 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
19188 them), "kill_from", "barrier", "new_insn".
19189 (patch_jump_insn): Likewise for params "insn", "old_label".
19190 (redirect_branch_edge): Likewise for locals "old_label", "insn".
19191 (force_nonfallthru_and_redirect): Likewise for locals "insn",
19192 "old_label", "new_label".
19193 (rtl_tidy_fallthru_edge): Likewise for local "q".
19194 (rtl_split_edge): Likewise for locals "before", "last".
19195 (commit_one_edge_insertion): Likewise for locals "before",
19196 "after", "insns", "tmp", "last", adding a checked cast where
19197 currently necessary.
19198 (commit_edge_insertions): Likewise.
19199 (rtl_dump_bb): Likewise for locals "insn", "last".
19200 (print_rtl_with_bb): Likewise for local "x".
19201 (rtl_verify_bb_insns): Likewise for local "x".
19202 (rtl_verify_bb_pointers): Likewise for local "insn".
19203 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
19204 "head", "end".
19205 (rtl_verify_fallthru): Likewise for local "insn".
19206 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
19207 (purge_dead_edges): Likewise for local "insn".
19208 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
19209 (skip_insns_after_block): Likewise for return type and for locals
19210 "insn", "last_insn", "next_head", "prev".
19211 (record_effective_endpoints): Likewise for locals "next_insn",
19212 "insn", "end".
19213 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
19214 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
19215 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
19216 (duplicate_insn_chain): For now, add checked cast from rtx to
19217 rtx_insn * when returning insn.
19218 (cfg_layout_duplicate_bb): Likewise for local "insn".
19219 (cfg_layout_delete_block): Likewise for locals "insn", "next",
19220 "prev", "remaints".
19221 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
19222 (rtl_block_empty_p): Likewise.
19223 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
19224 "split_point", "last".
19225 (rtl_block_ends_with_call_p): Likewise for local "insn".
19226 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
19227 const rtx_insn *.
19228 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
19229 "split_at_insn" from rtx to rtx_insn *.
19230 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
19231 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
19232 to const rtx_insn *.
19233 (rtl_account_profile_record): Likewise.
19234
19235 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19236
19237 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
19238 rtx to rtx_insn *.
19239 (average_num_loop_insns): Likewise.
19240 (init_set_costs): Likewise for local "seq".
19241 (seq_cost): Likewise for param "seq", from const_rtx to const
19242 rtx_insn *.
19243
19244 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19245
19246 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
19247 rtx to rtx_insn *.
19248
19249 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19250
19251 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
19252 "f1" and "f2" from rtx * to rtx_insn **.
19253 (flow_find_head_matching_sequence): Likewise.
19254
19255 * cfgcleanup.c (try_simplify_condjump): Strengthen local
19256 "cbranch_insn" from rtx to rtx_insn *.
19257 (thread_jump): Likewise for local "insn".
19258 (try_forward_edges): Likewise for local "last".
19259 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
19260 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
19261 "real_b_end".
19262 (can_replace_by): Likewise for params "i1", "i2".
19263 (old_insns_match_p): Likewise.
19264 (merge_notes): Likewise.
19265 (walk_to_nondebug_insn): Likewise for param "i1".
19266 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
19267 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
19268 "afterlast1", "afterlast2" from rtx to rtx_insn *.
19269 (flow_find_head_matching_sequence): Strengthen params "f1" and
19270 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
19271 "last1", "last2", "beforelast1", "beforelast2" from rtx to
19272 rtx_insn *.
19273 (outgoing_edges_match): Likewise for locals "last1", "last2".
19274 (try_crossjump_to_edge): Likewise for local "insn".
19275 Replace call to for_each_rtx with for_each_rtx_in_insn.
19276
19277 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
19278 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
19279 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
19280 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
19281 (try_optimize_cfg): Strengthen local "last" from rtx to
19282 rtx_insn *.
19283 (delete_dead_jumptables): Likewise for locals "insn", "next",
19284 "label".
19285
19286 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
19287 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
19288 "rtx else_first_tail", to reflect the basic-block.h changes above.
19289
19290 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19291
19292 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
19293 rtx_insn *.
19294 (purge_dead_tablejump_edges): Likewise.
19295 (find_bb_boundaries): Likewise for locals "insn", "end",
19296 "flow_transfer_insn".
19297
19298 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19299
19300 * caller-save.c (save_call_clobbered_regs): Strengthen locals
19301 "ins" and "prev" from rtx to rtx_insn *.
19302
19303 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19304
19305 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
19306 rtx_insn *.
19307 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
19308 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
19309 "scan_start".
19310 (load_register_parameters): Likewise for local "before_arg".
19311 (check_sibcall_argument_overlap): Likewise for param "insn".
19312 (expand_call): Likewise for locals "normal_call_insns",
19313 "tail_call_insns", "insns", "before_call", "after_args",
19314 "before_arg", "last", "prev". Strengthen one of the "last" from
19315 rtx to rtx_call_insn *.
19316 (fixup_tail_calls): Strengthen local "insn" from rtx to
19317 rtx_insn *.
19318 (emit_library_call_value_1): Likewise for locals "before_call" and
19319 "last".
19320
19321 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19322
19323 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
19324 and "last" from rtx to rtx_insn *.
19325 (expand_builtin_nonlocal_goto): Likewise for local "insn".
19326 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
19327 rtx_call_insn *.
19328 (expand_errno_check): Strengthen local "lab" from rtx to
19329 rtx_code_label *.
19330 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
19331 rtx_insn *.
19332 (expand_builtin_mathfn_2): Likewise.
19333 (expand_builtin_mathfn_ternary): Likewise.
19334 (expand_builtin_mathfn_3): Likewise.
19335 (expand_builtin_interclass_mathfn): Likewise for local "last".
19336 (expand_builtin_int_roundingfn): Likewise for local "insns".
19337 (expand_builtin_int_roundingfn_2): Likewise.
19338 (expand_builtin_strlen): Likewise for local "before_strlen".
19339 (expand_builtin_strncmp): Likewise for local "seq".
19340 (expand_builtin_signbit): Likewise for local "last".
19341 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
19342 from rtx to rtx_code_label *.
19343 (expand_stack_restore): Strengthen local "prev" from rtx to
19344 rtx_insn *.
19345
19346 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19347
19348 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
19349 to rtx_insn *.
19350 (struct btr_def_s): Likewise.
19351 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
19352 const rtx_insn *.
19353 (add_btr_def): Likewise.
19354 (new_btr_user): Likewise.
19355 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
19356 rtx to rtx_insn *.
19357 (link_btr_uses): Likewise.
19358 (move_btr_def): Likewise for locals "insp", "old_insn",
19359 "new_insn". Add checked cast to rtx_insn * for now on result of
19360 gen_move_insn.
19361 (can_move_up): Strengthen param "insn" from const_rtx to
19362 const rtx_insn *.
19363
19364 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19365
19366 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
19367 rtx_insn *.
19368 (get_uncond_jump_length): Likewise for locals "label", "jump".
19369 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
19370 "jump", "insn".
19371 (add_labels_and_missing_jumps): Likewise for local "new_jump".
19372 (fix_up_fall_thru_edges): Likewise for local "old_jump".
19373 (find_jump_block): Likewise for local "insn".
19374 (fix_crossing_conditional_branches): Likewise for locals
19375 "old_jump", "new_jump".
19376 (fix_crossing_unconditional_branches): Likewise for locals
19377 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
19378 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
19379
19380 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19381
19382 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
19383 rtx to rtx_insn *.
19384 (struct mem_insn): Likewise for field "insn".
19385 (reg_next_use): Strengthen from rtx * to rtx_insn **.
19386 (reg_next_inc_use): Likewise.
19387 (reg_next_def): Likewise.
19388 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
19389 from rtx to rtx_insn *.
19390 (move_insn_before): Likewise for param "next_insn" and local "insns".
19391 (attempt_change): Likewise for local "mov_insn".
19392 (try_merge): Likewise for param "last_insn".
19393 (get_next_ref): Likewise for return type and local "insn".
19394 Strengthen param "next_array" from rtx * to rtx_insn **.
19395 (parse_add_or_inc): Strengthen param "insn" from rtx to
19396 rtx_insn *.
19397 (find_inc): Likewise for locals "insn" and "other_insn" (three of
19398 the latter).
19399 (merge_in_block): Likewise for locals "insn", "curr",
19400 "other_insn".
19401 (pass_inc_dec::execute): Update allocations of the arrays to
19402 reflect the stronger types.
19403
19404 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19405
19406 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
19407 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
19408 from rtx to rtx_code_label *.
19409
19410 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19411
19412 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
19413 to rtx_insn *.
19414
19415 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19416
19417 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
19418 generated a warning and prevented bootstrapping the compiler.
19419
19420 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19421
19422 * rtl.h (delete_related_insns): Strengthen return type from rtx to
19423 rtx_insn *.
19424
19425 * jump.c (delete_related_insns): Likewise, also for locals "next"
19426 and "prev".
19427
19428 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19429
19430 * genautomata.c (output_internal_insn_latency_func): When writing
19431 the function "internal_insn_latency" to insn-automata.c,
19432 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
19433 allowing the optional guard function of (define_bypass) clauses to
19434 expect a pair of rtx_insn *, rather than a pair of rtx.
19435 (output_insn_latency_func): When writing the function
19436 "insn_latency", add an "uncast_" prefix to params "insn" and
19437 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
19438 using checked casts from the params, thus enabling the above
19439 change to the generated "internal_insn_latency" function.
19440
19441 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
19442
19443 PR tree-optimization/62091
19444 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
19445 handle correctly arrays.
19446 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
19447 inheritance binfos.
19448 (record_known_type): Walk into inner type.
19449 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
19450 condition on no type changes.
19451
19452 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19453
19454 * genattrtab.c (write_attr_get): Within the generated get_attr_
19455 functions, rename param "insn" to "uncast_insn" and reintroduce
19456 "insn" as an local rtx_insn * using a checked cast, so that "insn"
19457 is an rtx_insn * within insn-attrtab.c
19458
19459 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19460
19461 * output.h (peephole): Strengthen return type from rtx to
19462 rtx_insn *.
19463 * rtl.h (delete_for_peephole): Likewise for both params.
19464 * genpeep.c (main): In generated "peephole" function, strengthen
19465 return type and local "insn" from rtx to rtx_insn *. For now,
19466 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
19467 rtx_insn *, with a checked cast.
19468 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
19469 locals "insn", "next", "prev" from rtx to rtx_insn *.
19470
19471 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
19472
19473 PR tree-optimization/62112
19474 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
19475 * gimple-iterator.h (gsi_replace): Return bool.
19476 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
19477 moved from ref_may_alias_global_p.
19478 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
19479 New overloads.
19480 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
19481 (stmt_kills_ref_p_1): Rename...
19482 (stmt_kills_ref_p): ... to this.
19483 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
19484 stmt_kills_ref_p): Declare.
19485 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
19486 Move the self-assignment case...
19487 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
19488
19489 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19490
19491 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
19492
19493 * emit-rtl.c (try_split): Likewise, also for locals "before" and
19494 "after". For now, don't strengthen param "trial", which requires
19495 adding checked casts when returning it.
19496
19497 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19498
19499 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
19500 "label" from rtx to rtx_code_label *. Strengthen param 1 of
19501 "var_location" hook from rtx to rtx_insn *.
19502 (debug_nothing_rtx): Delete in favor of...
19503 (debug_nothing_rtx_code_label): New prototype.
19504 (debug_nothing_rtx_rtx): Delete unused prototype.
19505 (debug_nothing_rtx_insn): New prototype.
19506
19507 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
19508 invoking debug_hooks->var_location (in two places, one in a NOTE
19509 case of a switch statement, the other guarded by a CALL_P
19510 conditional. Add checked cast to rtx_code_label * when invoking
19511 debug_hooks->label (within CODE_LABEL case of switch statement).
19512
19513 * dbxout.c (dbx_debug_hooks): Update "label" hook from
19514 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
19515 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
19516 (xcoff_debug_hooks): Likewise.
19517 * debug.c (do_nothing_debug_hooks): Likewise.
19518 (debug_nothing_rtx): Delete in favor of...
19519 (debug_nothing_rtx_insn): New function.
19520 (debug_nothing_rtx_rtx): Delete unused function.
19521 (debug_nothing_rtx_code_label): New function.
19522 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
19523 debug_nothing_rtx to debug_nothing_rtx_code_label.
19524 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
19525 to rtx_insn *.
19526 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
19527 debug_nothing_rtx to debug_nothing_rtx_insn.
19528 (sdbout_label): Strengthen param "insn" from rtx to
19529 rtx_code_label *.
19530 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
19531 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
19532 "var_location" hook from debug_nothing_rtx to
19533 debug_nothing_rtx_insn.
19534
19535 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19536
19537 * recog.h (insn_output_fn): Update this function typedef to match
19538 the changes below to the generated output functions, strengthening
19539 the 2nd param from rtx to rtx_insn *.
19540
19541 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
19542 insn when invoking an output function, to match the new signature
19543 of insn_output_fn with a stronger second param.
19544
19545 * genconditions.c (write_header): In the generated code for
19546 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
19547 to match the other changes in this patch.
19548
19549 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
19550 the generated "gen_" functions from rtx to rtx_insn * within their
19551 implementations.
19552
19553 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
19554 the subfunctions within the generated "recog_", "split", "peephole2"
19555 function trees from rtx to rtx_insn *. For now, the top-level
19556 generated functions ("recog", "split", "peephole2") continue to
19557 take a plain rtx for "insn", to avoid introducing dependencies on
19558 other patches. Rename this 2nd param from "insn" to
19559 "uncast_insn", and reintroduce "insn" as a local variable of type
19560 rtx_insn *, initialized at the top of the generated function with
19561 a checked cast on "uncast_insn".
19562 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
19563 the generated "gen_" functions from rtx to rtx_insn * within their
19564 prototypes.
19565
19566 * genoutput.c (process_template): Strengthen the 2nd param within
19567 the generated "output_" functions "insn" from rtx to rtx_insn *.
19568
19569 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
19570
19571 * tree-profile.c (tree_profiling): Skip external functions
19572 when doing coverage instrumentation.
19573 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
19574
19575 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19576
19577 * config/rs6000/altivec.h (vec_cpsgn): New #define.
19578 (vec_mergee): Likewise.
19579 (vec_mergeo): Likewise.
19580 (vec_cntlz): Likewise.
19581 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
19582 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
19583 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
19584 VMRGEW, and VMRGOW.
19585 * doc/extend.texi: Document various forms of vec_cpsgn,
19586 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
19587 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
19588 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
19589 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
19590 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
19591
19592 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19593
19594 * config/rs6000/rs6000.c (context.h): New include.
19595 (tree-pass.h): Likewise.
19596 (make_pass_analyze_swaps): New decl.
19597 (rs6000_option_override): Register pass_analyze_swaps.
19598 (swap_web_entry): New subsclass of web_entry_base (df.h).
19599 (special_handling_values): New enum.
19600 (union_defs): New function.
19601 (union_uses): Likewise.
19602 (insn_is_load_p): Likewise.
19603 (insn_is_store_p): Likewise.
19604 (insn_is_swap_p): Likewise.
19605 (rtx_is_swappable_p): Likewise.
19606 (insn_is_swappable_p): Likewise.
19607 (chain_purpose): New enum.
19608 (chain_contains_only_swaps): New function.
19609 (mark_swaps_for_removal): Likewise.
19610 (swap_const_vector_halves): Likewise.
19611 (adjust_subreg_index): Likewise.
19612 (permute_load): Likewise.
19613 (permute_store): Likewise.
19614 (handle_special_swappables): Likewise.
19615 (replace_swap_with_copy): Likewise.
19616 (dump_swap_insn_table): Likewise.
19617 (rs6000_analyze_swaps): Likewise.
19618 (pass_data_analyze_swaps): New pass_data.
19619 (pass_analyze_swaps): New rtl_opt_pass.
19620 (make_pass_analyze_swaps): New function.
19621 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
19622
19623 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19624
19625 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
19626 type from rtx to rtx_insn *.
19627 (create_copy_of_insn_rtx): Likewise.
19628 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
19629 (create_copy_of_insn_rtx): Likewise, also for local "res".
19630
19631 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19632
19633 * rtl.h (find_first_parameter_load): Strengthen return type from
19634 rtx to rtx_insn *.
19635 * rtlanal.c (find_first_parameter_load): Strengthen return type
19636 from rtx to rtx_insn *. Add checked cast for now, to postpone
19637 strengthening the params.
19638
19639 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
19640
19641 PR fortran/44054
19642 * diagnostic.c: Set default caret.
19643 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
19644 line is needed.
19645 * diagnostic.h (struct diagnostic_context):
19646
19647 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19648
19649 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
19650 (sel_bb_head): Strengthen return type insn_t (currently just an
19651 rtx) to rtx_insn *.
19652 (sel_bb_end): Likewise.
19653
19654 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
19655 (sel_bb_head): Strengthen return type and local "head" from
19656 insn_t (currently just an rtx) to rtx_insn *.
19657 (sel_bb_end): Likewise for return type.
19658 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
19659 working with insn.
19660
19661 2014-08-21 David Malcolm <dmalcolm@redhat.com>
19662
19663 * basic-block.h (get_last_bb_insn): Strengthen return type from
19664 rtx to rtx_insn *.
19665 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
19666 end".
19667
19668 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
19669
19670 PR fortran/44054
19671 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
19672 to here ...
19673 (diagnostic_report_diagnostic): ... from here.
19674 * toplev.c (general_init): Move code to c-family.
19675
19676 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19677
19678 * df.h (web_entry_base): Replace existing struct web_entry with a
19679 new class web_entry_base with only the predecessor member.
19680 (unionfind_root): Remove declaration and move to class member.
19681 (unionfind_union): Remove declaration and move to friend
19682 function.
19683 (union_defs): Remove declaration.
19684 * web.c (web_entry_base::unionfind_root): Modify to be member
19685 function and adjust accessors.
19686 (unionfind_union): Modify to be friend function and adjust
19687 accessors.
19688 (web_entry): New subclass of web_entry_base containing the reg
19689 member.
19690 (union_match_dups): Modify for struct -> class changes.
19691 (union_defs): Likewise.
19692 (entry_register): Likewise.
19693 (pass_web::execute): Likewise.
19694
19695 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
19696
19697 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
19698 builtin define __VEC_ELEMENT_REG_ORDER__.
19699
19700 2014-08-20 Martin Jambor <mjambor@suse.cz>
19701 Wei Mi <wmi@google.com>
19702
19703 PR ipa/60449
19704 PR middle-end/61776
19705 * tree-ssa-operands.c (update_stmt_operands): Remove
19706 MODIFIED_NORETURN_CALLS.
19707 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
19708 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
19709 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
19710 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
19711 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
19712 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
19713 (gimple_call_set_ctrl_altering): New func.
19714 (gimple_call_ctrl_altering_p): Ditto.
19715 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
19716 (make_blocks): Use gimple_call_initialize_ctrl_altering.
19717 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
19718 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
19719 remove MODIFIED_NORETURN_CALLS.
19720
19721 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
19722
19723 * coverage.c (coverage_compute_profile_id): Return non-0;
19724 also handle symbols with unique name.
19725 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
19726
19727 2014-08-20 Steve Ellcey <sellcey@mips.com>
19728
19729 PR middle-end/49191
19730 * doc/sourcebuild.texi (non_strict_align): New.
19731
19732 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
19733
19734 * cgraphunit.c (ipa_passes, compile): Reshedule
19735 symtab_remove_unreachable_nodes passes; update comments.
19736 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
19737 TODO_remove_functions before the pass; the functions ought to be
19738 already removed.
19739 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
19740 TODO_remove_functions.
19741 * passes.c (pass_data_early_local_passes): Do not schedule function
19742 removal.
19743 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
19744
19745 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
19746
19747 PR c/59304
19748 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
19749 before setting the option.
19750 * diagnostic.c (diagnostic_classify_diagnostic): Record
19751 command-line status.
19752
19753 2014-08-20 Richard Biener <rguenther@suse.de>
19754
19755 PR lto/62190
19756 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
19757 to build uint{16,32,64}_type_node.
19758
19759 2014-08-20 Terry Guo <terry.guo@arm.com>
19760
19761 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
19762 with immediate_operand.
19763
19764 2014-08-20 David Malcolm <dmalcolm@redhat.com>
19765
19766 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
19767 "insn" from an as_a to a safe_as_a, for the case when "insn" is
19768 NULL.
19769
19770 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
19771
19772 PR preprocessor/51303
19773 * incpath.c (remove_duplicates): Use cpp_warning.
19774
19775 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
19776
19777 PR c/60975
19778 PR c/53063
19779 * doc/options.texi (CPP): Document it.
19780 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
19781 * optc-gen.awk: Handle CPP.
19782 * opth-gen.awk: Likewise.
19783
19784 2014-08-19 David Malcolm <dmalcolm@redhat.com>
19785
19786 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
19787 rtx_insn *.
19788 (duplicate_insn_chain): Likewise.
19789 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
19790 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
19791 checked cast for now (until we can strengthen the params in the
19792 same way).
19793 (duplicate_insn_chain): Likewise.
19794
19795 2014-08-19 David Malcolm <dmalcolm@redhat.com>
19796
19797 * rtl.h (next_cc0_user): Strengthen return type from rtx to
19798 rtx_insn *.
19799 (prev_cc0_setter): Likewise.
19800
19801 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
19802 rtx_insn *, adding checked casts for now as necessary.
19803 (prev_cc0_setter): Likewise.
19804
19805 2014-08-19 David Malcolm <dmalcolm@redhat.com>
19806
19807 * expr.h (emit_move_insn): Strengthen return type from rtx to
19808 rtx_insn *.
19809 (emit_move_insn_1): Likewise.
19810 (emit_move_complex_push): Likewise.
19811 (emit_move_complex_parts): Likewise.
19812
19813 * expr.c (emit_move_via_integer): Strengthen return type from rtx
19814 to rtx_insn *. Replace use of NULL_RTX with NULL when working
19815 with insns.
19816 (emit_move_complex_push): Strengthen return type from rtx to
19817 rtx_insn *.
19818 (emit_move_complex): Likewise, also for local "ret".
19819 (emit_move_ccmode): Likewise.
19820 (emit_move_multi_word): Likewise for return type and locals
19821 "last_insn", "seq".
19822 (emit_move_insn_1): Likewise for return type and locals "result",
19823 "ret".
19824 (emit_move_insn): Likewise for return type and local "last_insn".
19825 (compress_float_constant): Likewise.
19826
19827 2014-08-19 David Malcolm <dmalcolm@redhat.com>
19828
19829 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
19830 from rtx to rtx_insn *.
19831
19832 * rtl.h (emit_insn_before): Likewise.
19833 (emit_insn_before_noloc): Likewise.
19834 (emit_insn_before_setloc): Likewise.
19835 (emit_jump_insn_before): Likewise.
19836 (emit_jump_insn_before_noloc): Likewise.
19837 (emit_jump_insn_before_setloc): Likewise.
19838 (emit_call_insn_before): Likewise.
19839 (emit_call_insn_before_noloc): Likewise.
19840 (emit_call_insn_before_setloc): Likewise.
19841 (emit_debug_insn_before): Likewise.
19842 (emit_debug_insn_before_noloc): Likewise.
19843 (emit_debug_insn_before_setloc): Likewise.
19844 (emit_label_before): Likewise.
19845 (emit_insn_after): Likewise.
19846 (emit_insn_after_noloc): Likewise.
19847 (emit_insn_after_setloc): Likewise.
19848 (emit_jump_insn_after): Likewise.
19849 (emit_jump_insn_after_noloc): Likewise.
19850 (emit_jump_insn_after_setloc): Likewise.
19851 (emit_call_insn_after): Likewise.
19852 (emit_call_insn_after_noloc): Likewise.
19853 (emit_call_insn_after_setloc): Likewise.
19854 (emit_debug_insn_after): Likewise.
19855 (emit_debug_insn_after_noloc): Likewise.
19856 (emit_debug_insn_after_setloc): Likewise.
19857 (emit_label_after): Likewise.
19858 (emit_insn): Likewise.
19859 (emit_debug_insn): Likewise.
19860 (emit_jump_insn): Likewise.
19861 (emit_call_insn): Likewise.
19862 (emit_label): Likewise.
19863 (gen_clobber): Likewise.
19864 (emit_clobber): Likewise.
19865 (gen_use): Likewise.
19866 (emit_use): Likewise.
19867 (emit): Likewise.
19868
19869 (emit_barrier_before): Strengthen return type from rtx to
19870 rtx_barrier *.
19871 (emit_barrier_after): Likewise.
19872 (emit_barrier): Likewise.
19873
19874 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
19875 from rtx to rtx_insn *. Add checked casts for now when converting
19876 "last" from rtx to rtx_insn *.
19877 (emit_insn_before_noloc): Likewise for return type.
19878 (emit_jump_insn_before_noloc): Likewise.
19879 (emit_call_insn_before_noloc): Likewise.
19880 (emit_debug_insn_before_noloc): Likewise.
19881 (emit_barrier_before): Strengthen return type and local "insn"
19882 from rtx to rtx_barrier *.
19883 (emit_label_before): Strengthen return type from rtx to
19884 rtx_insn *. Add checked cast for now when returning param
19885 (emit_pattern_after_noloc): Strengthen return type from rtx to
19886 rtx_insn *. Add checked casts for now when converting "last" from
19887 rtx to rtx_insn *.
19888 (emit_insn_after_noloc): Strengthen return type from rtx to
19889 rtx_insn *.
19890 (emit_jump_insn_after_noloc): Likewise.
19891 (emit_call_insn_after_noloc): Likewise.
19892 (emit_debug_insn_after_noloc): Likewise.
19893 (emit_barrier_after): Strengthen return type from rtx to
19894 rtx_barrier *.
19895 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
19896 Add checked cast for now when converting "label" from rtx to
19897 rtx_insn *.
19898 (emit_pattern_after_setloc): Strengthen return type from rtx to
19899 rtx_insn *. Add checked casts for now when converting "last" from
19900 rtx to rtx_insn *.
19901 (emit_pattern_after): Strengthen return type from rtx to
19902 rtx_insn *.
19903 (emit_insn_after_setloc): Likewise.
19904 (emit_insn_after): Likewise.
19905 (emit_jump_insn_after_setloc): Likewise.
19906 (emit_jump_insn_after): Likewise.
19907 (emit_call_insn_after_setloc): Likewise.
19908 (emit_call_insn_after): Likewise.
19909 (emit_debug_insn_after_setloc): Likewise.
19910 (emit_debug_insn_after): Likewise.
19911 (emit_pattern_before_setloc): Likewise. Add checked casts for now
19912 when converting "last" from rtx to rtx_insn *.
19913 (emit_pattern_before): Strengthen return type from rtx to
19914 rtx_insn *.
19915 (emit_insn_before_setloc): Likewise.
19916 (emit_insn_before): Likewise.
19917 (emit_jump_insn_before_setloc): Likewise.
19918 (emit_jump_insn_before): Likewise.
19919 (emit_call_insn_before_setloc): Likewise.
19920 (emit_call_insn_before): Likewise.
19921 (emit_debug_insn_before_setloc): Likewise.
19922 (emit_debug_insn_before): Likewise.
19923 (emit_insn): Strengthen return type and locals "last", "insn",
19924 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
19925 within cases where we know we have an insn.
19926 (emit_debug_insn): Likewise.
19927 (emit_jump_insn): Likewise.
19928 (emit_call_insn): Strengthen return type and local "insn" from rtx
19929 to rtx_insn *.
19930 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
19931 a checked cast to rtx_insn * for now on "label".
19932 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
19933 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
19934 (emit_use): Likewise.
19935 (gen_use): Likewise, also for local "seq".
19936 (emit): Likewise for return type and local "insn".
19937 (rtx_insn): Likewise for return type and local "new_rtx".
19938
19939 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
19940 from rtx to rtx_barrier *.
19941
19942 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
19943 changed return type from rtx to rtx_insn *, we must update
19944 "emit_fn" type, and this in turn means updating...
19945 (frame_insn): ...this. Strengthen return type from rtx to
19946 rtx_insn *. Introduce a new local "insn" of the appropriate type.
19947
19948 2014-08-19 David Malcolm <dmalcolm@redhat.com>
19949
19950 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
19951 rtx to rtx_jump_table_data *. Also for local.
19952 * rtl.h (emit_jump_table_data): Likewise.
19953
19954 2014-08-19 David Malcolm <dmalcolm@redhat.com>
19955
19956 * basic-block.h (create_basic_block_structure): Strengthen third
19957 param "bb_note" from rtx to rtx_note *.
19958 * rtl.h (emit_note_before): Strengthen return type from rtx to
19959 rtx_note *.
19960 (emit_note_after): Likewise.
19961 (emit_note): Likewise.
19962 (emit_note_copy): Likewise. Also, strengthen param similarly.
19963 * function.h (struct rtl_data): Strengthen field
19964 "x_stack_check_probe_note" from rtx to rtx_note *.
19965
19966 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
19967 from rtx to rtx_note *.
19968 * cfgrtl.c (create_basic_block_structure): Strengthen third param
19969 "bb_note" from rtx to rtx_note *.
19970 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
19971 when calling emit_note_copy.
19972 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
19973 rtx_note *.
19974 (emit_note_after): Likewise.
19975 (emit_note_before): Likewise.
19976 (emit_note_copy): Likewise. Also, strengthen param similarly.
19977 (emit_note): Likewise.
19978 * except.c (emit_note_eh_region_end): Likewise for return type.
19979 Strengthen local "next" from rtx to rtx_insn *.
19980 (convert_to_eh_region_ranges): Strengthen local "note"
19981 from rtx to rtx_note *.
19982 * final.c (change_scope): Likewise.
19983 (reemit_insn_block_notes): Likewise, for both locals named "note".
19984 Also, strengthen local "insn" from rtx to rtx_insn *.
19985 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
19986 rtx to rtx_note *.
19987 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
19988 strengthen local "seq" from rtx to rtx_insn *.
19989 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
19990 to rtx_note *.
19991 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
19992 vec<rtx_note *>.
19993 (get_bb_note_from_pool): Strengthen return type from rtx to
19994 rtx_note *.
19995 (sel_create_basic_block): Strengthen local "new_bb_note" from
19996 insn_t to rtx_note *.
19997 * var-tracking.c (emit_note_insn_var_location): Strengthen local
19998 "note" from rtx to rtx_note *.
19999 (emit_notes_in_bb): Likewise.
20000
20001 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20002
20003 * function.h (struct rtl_data): Strengthen field
20004 "x_parm_birth_insn" from rtx to rtx_insn *.
20005 * function.c (struct assign_parm_data_all): Strengthen fields
20006 "first_conversion_insn" and "last_conversion_insn" from rtx to
20007 rtx_insn *.
20008
20009 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20010
20011 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
20012 to rtx_insn *; also for local "var_end_seq".
20013 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
20014 (maybe_cleanup_end_of_block): Likewise for param "last" and local
20015 "insn".
20016 (expand_gimple_cond): Likewise for locals "last2" and "last".
20017 (mark_transaction_restart_calls): Likewise for local "insn".
20018 (expand_gimple_stmt): Likewise for return type and locals "last"
20019 and "insn".
20020 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
20021 (avoid_complex_debug_insns): Likewise for param "insn".
20022 (expand_debug_locations): Likewise for locals "insn", "last",
20023 "prev_insn" and "insn2".
20024 (expand_gimple_basic_block): Likewise for local "last".
20025 (construct_exit_block): Likewise for locals "head", "end",
20026 "orig_end".
20027 (pass_expand::execute): Likewise for locals "var_seq",
20028 "var_ret_seq", "next".
20029
20030 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20031
20032 * asan.h (asan_emit_stack_protection): Strengthen return type from
20033 rtx to rtx_insn *.
20034 * asan.c (asan_emit_stack_protection): Likewise. Add local
20035 "insns" to hold the return value.
20036
20037 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20038
20039 * basic-block.h (bb_note): Strengthen return type from rtx to
20040 rtx_note *.
20041 * sched-int.h (bb_note): Likewise.
20042 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
20043
20044 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20045
20046 * rtl.h (make_insn_raw): Strengthen return type from rtx to
20047 rtx_insn *.
20048
20049 * emit-rtl.c (make_insn_raw): Strengthen return type and local
20050 "insn" from rtx to rtx_insn *.
20051 (make_debug_insn_raw): Strengthen return type from rtx to
20052 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
20053 (make_jump_insn_raw): Strengthen return type from rtx to
20054 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
20055 (make_call_insn_raw): Strengthen return type from rtx to
20056 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
20057 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
20058 callback from rtx to rtx_insn *; likewise for local "insn" and
20059 "next", adding a checked cast to rtx_insn in the relevant cases of
20060 the switch statement.
20061 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
20062 callback from rtx to rtx_insn *.
20063 (emit_pattern_after_setloc): Likewise.
20064 (emit_pattern_after): Likewise.
20065 (emit_pattern_before_setloc): Likewise.
20066 (emit_pattern_before): Likewise.
20067
20068 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20069
20070 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
20071 rtx_call_insn *.
20072 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
20073 accepting an rtx_insn *.
20074 (last_call_insn): Strengthen return type from rtx to
20075 rtx_call_insn *.
20076
20077 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20078
20079 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
20080 "insns" from rtx to rtx_insn *.
20081 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
20082 locals "insn" and "prev".
20083
20084 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20085
20086 * rtl.h (tablejump_p): Strengthen third param from rtx * to
20087 rtx_jump_table_data **.
20088
20089 * cfgbuild.c (make_edges): Introduce local "table", using it in
20090 place of "tmp" for jump table data.
20091 (find_bb_boundaries): Strengthen local "table" from rtx to
20092 rtx_jump_table_data *.
20093 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
20094 (outgoing_edges_match): Likewise for locals "table1" and "table2".
20095 (try_crossjump_to_edge): Likewise.
20096 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
20097 "table".
20098 (patch_jump_insn): Introduce local "table", using it in place of
20099 "tmp" for jump table data.
20100 (force_nonfallthru_and_redirect): Introduce local "table", so that
20101 call to tablejump_p can receive an rtx_jump_table_data **. Update
20102 logic around the call to overwrite "note" appropriately if
20103 tablejump_p returns non-zero.
20104 (get_last_bb_insn): Introduce local "table", using it in place of
20105 "tmp" for jump table data.
20106 * dwarf2cfi.c (create_trace_edges): Likewise.
20107
20108 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
20109 from rtx to rtx_jump_table_data *.
20110 (create_fix_barrier): Strengthen local "tmp" from rtx to
20111 rtx_jump_table_data *.
20112 (arm_reorg): Likewise for local "table".
20113
20114 * config/s390/s390.c (s390_chunkify_start): Likewise.
20115
20116 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
20117
20118 * jump.c (delete_related_insns): Strengthen local "lab_next" from
20119 rtx to rtx_jump_table_data *.
20120
20121 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
20122 rtx_jump_table_data **. Add a checked cast when writing through
20123 the pointer: we know there that local "table" is non-NULL and that
20124 JUMP_TABLE_DATA_P (table) holds.
20125 (label_is_jump_target_p): Introduce local "table", using it in
20126 place of "tmp" for jump table data.
20127
20128 2014-08-19 Marek Polacek <polacek@redhat.com>
20129
20130 PR c++/62153
20131 * doc/invoke.texi: Document -Wbool-compare.
20132
20133 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20134
20135 * rtl.h (entry_of_function): Strengthen return type from rtx to
20136 rtx_insn *.
20137 * cfgrtl.c (entry_of_function): Likewise.
20138
20139 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20140
20141 * emit-rtl.h (get_insns): Strengthen return type from rtx to
20142 rtx_insn *, adding a checked cast for now.
20143 (get_last_insn): Likewise.
20144
20145 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20146
20147 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
20148 rtx_code_label *.
20149
20150 * emit-rtl.c (gen_label_rtx): Likewise.
20151
20152 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20153
20154 * rtl.h (previous_insn): Strengthen return type from rtx to
20155 rtx_insn *.
20156 (next_insn): Likewise.
20157 (prev_nonnote_insn): Likewise.
20158 (prev_nonnote_insn_bb): Likewise.
20159 (next_nonnote_insn): Likewise.
20160 (next_nonnote_insn_bb): Likewise.
20161 (prev_nondebug_insn): Likewise.
20162 (next_nondebug_insn): Likewise.
20163 (prev_nonnote_nondebug_insn): Likewise.
20164 (next_nonnote_nondebug_insn): Likewise.
20165 (prev_real_insn): Likewise.
20166 (next_real_insn): Likewise.
20167 (prev_active_insn): Likewise.
20168 (next_active_insn): Likewise.
20169
20170 * emit-rtl.c (next_insn): Strengthen return type from rtx to
20171 rtx_insn *, adding a checked cast.
20172 (previous_insn): Likewise.
20173 (next_nonnote_insn): Likewise.
20174 (next_nonnote_insn_bb): Likewise.
20175 (prev_nonnote_insn): Likewise.
20176 (prev_nonnote_insn_bb): Likewise.
20177 (next_nondebug_insn): Likewise.
20178 (prev_nondebug_insn): Likewise.
20179 (next_nonnote_nondebug_insn): Likewise.
20180 (prev_nonnote_nondebug_insn): Likewise.
20181 (next_real_insn): Likewise.
20182 (prev_real_insn): Likewise.
20183 (next_active_insn): Likewise.
20184 (prev_active_insn): Likewise.
20185
20186 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
20187 param "stepfunc" so that it returns an rtx_insn * rather than an
20188 rtx, to track the change to prev_nonnote_insn_bb, which is the
20189 only function this is called with.
20190 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
20191
20192 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
20193
20194 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
20195 assert.
20196
20197 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20198
20199 * coretypes.h (class rtx_debug_insn): Add forward declaration.
20200 (class rtx_nonjump_insn): Likewise.
20201 (class rtx_jump_insn): Likewise.
20202 (class rtx_call_insn): Likewise.
20203 (class rtx_jump_table_data): Likewise.
20204 (class rtx_barrier): Likewise.
20205 (class rtx_code_label): Likewise.
20206 (class rtx_note): Likewise.
20207
20208 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
20209 adding the invariant DEBUG_INSN_P (X).
20210 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
20211 the invariant NONJUMP_INSN_P (X).
20212 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
20213 the invariant JUMP_P (X).
20214 (class rtx_call_insn): New, a subclass of rtx_insn, adding
20215 the invariant CALL_P (X).
20216 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
20217 invariant JUMP_TABLE_DATA_P (X).
20218 (class rtx_barrier): New, a subclass of rtx_insn, adding the
20219 invariant BARRIER_P (X).
20220 (class rtx_code_label): New, a subclass of rtx_insn, adding
20221 the invariant LABEL_P (X).
20222 (class rtx_note): New, a subclass of rtx_insn, adding
20223 the invariant NOTE_P(X).
20224 (is_a_helper <rtx_debug_insn *>::test): New.
20225 (is_a_helper <rtx_nonjump_insn *>::test): New.
20226 (is_a_helper <rtx_jump_insn *>::test): New.
20227 (is_a_helper <rtx_call_insn *>::test): New.
20228 (is_a_helper <rtx_jump_table_data *>::test): New functions,
20229 overloaded for both rtx and rtx_insn *.
20230 (is_a_helper <rtx_barrier *>::test): New.
20231 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
20232 for both rtx and rtx_insn *.
20233 (is_a_helper <rtx_note *>::test): New.
20234
20235 2014-08-19 Marek Polacek <polacek@redhat.com>
20236
20237 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
20238 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
20239 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
20240 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
20241
20242 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20243
20244 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
20245 rtx_insn *. To help with transition, for now, convert from an
20246 access macro into a pair of functions: BND_TO, returning an
20247 rtx_insn *, and...
20248 (SET_BND_TO): New function, for use where BND_TO is used as an
20249 lvalue.
20250
20251 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
20252 SET_BND_TO.
20253 (BND_TO): New function, adding a checked cast.
20254 (SET_BND_TO): New function.
20255
20256 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
20257 SET_BND_TO.
20258 (compute_av_set_on_boundaries): Likewise.
20259
20260 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
20261
20262 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
20263 destination if it is used in source.
20264 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
20265 (*popcount<mode>2_falsedep_1): Likewise.
20266
20267 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
20268
20269 PR other/62168
20270 * configure.ac: Set install_gold_as_default to no first.
20271 * configure: Regenerated.
20272
20273 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20274
20275 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
20276 "note_list" field will eventually be an rtx_insn *. To help with
20277 transition, for now, convert from an access macro into a pair of
20278 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
20279 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
20280 used as an lvalue.
20281
20282 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
20283 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
20284
20285 * sel-sched-ir.c (init_bb): Likewise.
20286 (sel_restore_notes): Likewise.
20287 (move_bb_info): Likewise.
20288 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
20289 (SET_BB_NOTE_LIST): New function.
20290
20291 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20292
20293 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
20294 field will eventually be an rtx_insn *. To help with transition,
20295 for now, convert from an access macro into a pair of functions:
20296 VINSN_INSN_RTX, returning an rtx_insn *, and...
20297 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
20298 is used as an lvalue.
20299
20300 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
20301 SET_VINSN_INSN_RTX where it's used as an lvalue.
20302 (VINSN_INSN_RTX): New function.
20303 (SET_VINSN_INSN_RTX): New function.
20304
20305 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20306
20307 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
20308 eventually be rtx_insn *, but to help with transition, for now,
20309 convert from an access macro into a pair of functions: DEP_PRO
20310 returning an rtx_insn * and...
20311 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
20312 lvalue, returning an rtx&.
20313 (DEP_CON): Analogous changes to DEP_PRO above.
20314 (SET_DEP_CON): Likewise.
20315
20316 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
20317 an lvalue to SET_DEP_CON.
20318 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
20319 (sd_copy_back_deps): Likewise for DEP_CON.
20320 (DEP_PRO): New function, adding a checked cast for now.
20321 (DEP_CON): Likewise.
20322 (SET_DEP_PRO): New function.
20323 (SET_DEP_CON): Likewise.
20324
20325 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
20326
20327 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
20328 (extra_options): Add i386/cygwin.opt.
20329 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
20330 (CPP_SPEC): Accept -pthread.
20331 (LINK_SPEC): Ditto.
20332 (GOMP_SELF_SPECS): Update comment.
20333 * config/i386/cygwin.opt: New file for -pthread flag.
20334
20335 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20336
20337 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
20338 * df.h (DF_REF_INSN): Convert from a macro to a function, so
20339 that we can return an rtx_insn *.
20340
20341 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
20342
20343 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
20344 when building executables, not DLLs. Add --large-address-aware
20345 under the same conditions.
20346 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
20347 when building executables, not DLLs. Add --large-address-aware
20348 under the same conditions when using -m32.
20349
20350 * config/i386/cygwin-stdint.h: Throughout, make type
20351 definitions dependent on target architecture, not host.
20352
20353 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20354
20355 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
20356 the return type from rtx to rtx_insn *, which will enable various
20357 conversions in followup patches. For now this is is done by a
20358 checked cast.
20359 (NEXT_INSN): Likewise.
20360 (SET_PREV_INSN): Convert to an inline function. This is intended
20361 for use as an lvalue, and so returns an rtx& to allow in-place
20362 modification.
20363 (SET_NEXT_INSN): Likewise.
20364
20365 2014-07-08 Mark Wielaard <mjw@redhat.com>
20366
20367 PR debug/59051
20368 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
20369
20370 2014-08-19 Marek Polacek <polacek@redhat.com>
20371
20372 PR c/61271
20373 * cgraphunit.c (handle_alias_pairs): Fix condition.
20374
20375 2014-08-19 Richard Biener <rguenther@suse.de>
20376
20377 * gimple-fold.c (fold_gimple_assign): Properly build a
20378 null-pointer constant when devirtualizing addresses.
20379
20380 2014-07-07 Mark Wielaard <mjw@redhat.com>
20381
20382 * dwarf2out.c (decl_quals): New function.
20383 (modified_type_die): Take one cv_quals argument instead of two,
20384 one for const and one for volatile.
20385 (add_type_attribute): Likewise.
20386 (generic_parameter_die): Call add_type_attribute with one modifier
20387 argument.
20388 (base_type_for_mode): Likewise.
20389 (add_bounds_info): Likewise.
20390 (add_subscript_info): Likewise.
20391 (gen_array_type_die): Likewise.
20392 (gen_descr_array_type_die): Likewise.
20393 (gen_entry_point_die): Likewise.
20394 (gen_enumeration_type_die): Likewise.
20395 (gen_formal_parameter_die): Likewise.
20396 (gen_subprogram_die): Likewise.
20397 (gen_variable_die): Likewise.
20398 (gen_const_die): Likewise.
20399 (gen_field_die): Likewise.
20400 (gen_pointer_type_die): Likewise.
20401 (gen_reference_type_die): Likewise.
20402 (gen_ptr_to_mbr_type_die): Likewise.
20403 (gen_inheritance_die): Likewise.
20404 (gen_subroutine_type_die): Likewise.
20405 (gen_typedef_die): Likewise.
20406 (force_type_die): Likewise.
20407
20408 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20409
20410 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
20411 if unset.
20412 * configure: Regenerate.
20413
20414 2014-08-19 Richard Biener <rguenther@suse.de>
20415
20416 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
20417 DECL_EXTERNALs in BLOCKs as non-references.
20418 * tree-streamer-out.c (streamer_write_chain): Likewise.
20419
20420 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
20421 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20422 Anna Tikhonova <anna.tikhonova@intel.com>
20423 Ilya Tocar <ilya.tocar@intel.com>
20424 Andrey Turetskiy <andrey.turetskiy@intel.com>
20425 Ilya Verbin <ilya.verbin@intel.com>
20426 Kirill Yukhin <kirill.yukhin@intel.com>
20427 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20428
20429 * config/i386/sse.md
20430 (define_mode_iterator VI48_AVX512F): Delete.
20431 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
20432 (define_mode_iterator VI2_AVX512VL): Ditto.
20433 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
20434 Delete.
20435 (define_insn
20436 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
20437 New.
20438 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
20439 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
20440 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
20441 with VI48_AVX512F_AVX512VL): New.
20442 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
20443 with VI2_AVX512VL): Ditto.
20444
20445 2014-08-19 Marek Polacek <polacek@redhat.com>
20446
20447 * doc/invoke.texi: Document -Wc99-c11-compat.
20448
20449 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20450
20451 * rtl.h (PREV_INSN): Split macro in two: the existing one,
20452 for rvalues, and...
20453 (SET_PREV_INSN): New macro, for use as an lvalue.
20454 (NEXT_INSN, SET_NEXT_INSN): Likewise.
20455
20456 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
20457 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
20458 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
20459 (fixup_abnormal_edges): Likewise.
20460 (unlink_insn_chain): Likewise.
20461 (fixup_reorder_chain): Likewise.
20462 (cfg_layout_delete_block): Likewise.
20463 (cfg_layout_merge_blocks): Likewise.
20464 * combine.c (update_cfg_for_uncondjump): Likewise.
20465 * emit-rtl.c (link_insn_into_chain): Likewise.
20466 (remove_insn): Likewise.
20467 (delete_insns_since): Likewise.
20468 (reorder_insns_nobb): Likewise.
20469 (emit_insn_after_1): Likewise.
20470 * final.c (rest_of_clean_state): Likewise.
20471 (final_scan_insn): Likewise.
20472 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
20473 * haifa-sched.c (concat_note_lists): Likewise.
20474 (remove_notes): Likewise.
20475 (restore_other_notes): Likewise.
20476 (move_insn): Likewise.
20477 (unlink_bb_notes): Likewise.
20478 (restore_bb_notes): Likewise.
20479 * jump.c (delete_for_peephole): Likewise.
20480 * optabs.c (emit_libcall_block_1): Likewise.
20481 * reorg.c (emit_delay_sequence): Likewise.
20482 (fill_simple_delay_slots): Likewise.
20483 * sel-sched-ir.c (sel_move_insn): Likewise.
20484 (sel_remove_insn): Likewise.
20485 (get_bb_note_from_pool): Likewise.
20486 * sel-sched.c (move_nop_to_previous_block): Likewise.
20487
20488 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
20489 * config/c6x/c6x.c (gen_one_bundle): Likewise.
20490 (c6x_gen_bundles): Likewise.
20491 (hwloop_optimize): Likewise.
20492 * config/frv/frv.c (frv_function_prologue): Likewise.
20493 (frv_register_nop): Likewise.
20494 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
20495 (ia64_reorg): Likewise.
20496 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
20497 (mep_make_bundle): Likewise.
20498 (mep_bundle_insns): Likewise.
20499 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
20500 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
20501 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
20502
20503 2014-08-19 David Malcolm <dmalcolm@redhat.com>
20504
20505 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
20506 return type from rtx to rtx_insn *.
20507 (BB_END): Likewise.
20508 (BB_HEADER): Likewise.
20509 (BB_FOOTER): Likewise.
20510 (SET_BB_HEAD): Convert to a function.
20511 (SET_BB_END): Likewise.
20512 (SET_BB_HEADER): Likewise.
20513 (SET_BB_FOOTER): Likewise.
20514
20515 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
20516 Strengthen the return type from rtx to rtx_insn *. For now, this
20517 is done by adding a checked cast, but this will eventually
20518 become a field lookup.
20519 (BB_END): Likewise.
20520 (BB_HEADER): Likewise.
20521 (BB_FOOTER): Likewise.
20522 (SET_BB_HEAD): New function, from macro of same name. This is
20523 intended for use as an lvalue, and so returns an rtx& to allow
20524 in-place modification.
20525 (SET_BB_END): Likewise.
20526 (SET_BB_HEADER): Likewise.
20527 (SET_BB_FOOTER): Likewise.
20528
20529 2014-08-18 David Malcolm <dmalcolm@redhat.com>
20530
20531 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
20532 for rvalues, and...
20533 (SET_BB_HEAD): New macro, for use as a lvalue.
20534 (BB_END, SET_BB_END): Likewise.
20535 (BB_HEADER, SET_BB_HEADER): Likewise.
20536 (BB_FOOTER, SET_BB_FOOTER): Likewise.
20537
20538 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
20539 of BB_* macros into SET_BB_* macros.
20540 (fix_crossing_unconditional_branches): Likewise.
20541 * caller-save.c (save_call_clobbered_regs): Likewise.
20542 (insert_one_insn): Likewise.
20543 * cfgbuild.c (find_bb_boundaries): Likewise.
20544 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
20545 (outgoing_edges_match): Likewise.
20546 (try_optimize_cfg): Likewise.
20547 * cfgexpand.c (expand_gimple_cond): Likewise.
20548 (expand_gimple_tailcall): Likewise.
20549 (expand_gimple_basic_block): Likewise.
20550 (construct_exit_block): Likewise.
20551 * cfgrtl.c (delete_insn): Likewise.
20552 (create_basic_block_structure): Likewise.
20553 (rtl_delete_block): Likewise.
20554 (rtl_split_block): Likewise.
20555 (emit_nop_for_unique_locus_between): Likewise.
20556 (rtl_merge_blocks): Likewise.
20557 (block_label): Likewise.
20558 (try_redirect_by_replacing_jump): Likewise.
20559 (emit_barrier_after_bb): Likewise.
20560 (fixup_abnormal_edges): Likewise.
20561 (record_effective_endpoints): Likewise.
20562 (relink_block_chain): Likewise.
20563 (fixup_reorder_chain): Likewise.
20564 (fixup_fallthru_exit_predecessor): Likewise.
20565 (cfg_layout_duplicate_bb): Likewise.
20566 (cfg_layout_split_block): Likewise.
20567 (cfg_layout_delete_block): Likewise.
20568 (cfg_layout_merge_blocks): Likewise.
20569 * combine.c (update_cfg_for_uncondjump): Likewise.
20570 * emit-rtl.c (add_insn_after): Likewise.
20571 (remove_insn): Likewise.
20572 (reorder_insns): Likewise.
20573 (emit_insn_after_1): Likewise.
20574 * haifa-sched.c (get_ebb_head_tail): Likewise.
20575 (restore_other_notes): Likewise.
20576 (move_insn): Likewise.
20577 (sched_extend_bb): Likewise.
20578 (fix_jump_move): Likewise.
20579 * ifcvt.c (noce_process_if_block): Likewise.
20580 (dead_or_predicable): Likewise.
20581 * ira.c (update_equiv_regs): Likewise.
20582 * reg-stack.c (change_stack): Likewise.
20583 * sel-sched-ir.c (sel_move_insn): Likewise.
20584 * sel-sched.c (move_nop_to_previous_block): Likewise.
20585
20586 * config/c6x/c6x.c (hwloop_optimize): Likewise.
20587 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
20588
20589 2014-08-18 David Malcolm <dmalcolm@redhat.com>
20590
20591 * rtl.h (for_each_rtx_in_insn): New function.
20592 * rtlanal.c (for_each_rtx_in_insn): Likewise.
20593
20594 2014-08-18 David Malcolm <dmalcolm@redhat.com>
20595
20596 * coretypes.h (class rtx_insn): Add forward declaration.
20597
20598 * rtl.h: Include is-a.h.
20599 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
20600 workaround to ensure gengtype knows inheritance is occurring,
20601 whilst continuing to use the pre-existing special-casing for
20602 rtx_def.
20603 (class rtx_insn): New subclass of rtx_def, adding the
20604 invariant that we're dealing with something we can sanely use
20605 INSN_UID, NEXT_INSN, PREV_INSN on.
20606 (is_a_helper <rtx_insn *>::test): New.
20607 (is_a_helper <const rtx_insn *>::test): New.
20608
20609 2014-08-18 David Malcolm <dmalcolm@redhat.com>
20610
20611 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
20612
20613 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
20614
20615 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
20616 comdats as extern.
20617
20618 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
20619
20620 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
20621 to BUILT_IN_UNREACHABLE.
20622
20623 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
20624
20625 PR target/62011
20626 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
20627 New tune flag.
20628 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
20629 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
20630 (ffs<mode>2): Do not expand with tzcnt for
20631 TARGET_AVOID_FALSE_DEP_FOR_BMI.
20632 (ffssi2_no_cmove): Ditto.
20633 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
20634 (ctz<mode>2): New expander.
20635 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
20636 (*ctz<mode>2_falsedep): New insn.
20637 (*ctz<mode>2): Rename from ctz<mode>2.
20638 (clz<mode>2_lzcnt): New expander.
20639 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
20640 (*clz<mode>2_lzcnt_falsedep): New insn.
20641 (*clz<mode>2): Rename from ctz<mode>2.
20642 (popcount<mode>2): New expander.
20643 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
20644 (*popcount<mode>2_falsedep): New insn.
20645 (*popcount<mode>2): Rename from ctz<mode>2.
20646 (*popcount<mode>2_cmp): Remove.
20647 (*popcountsi2_cmp_zext): Ditto.
20648
20649 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
20650
20651 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
20652 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
20653 * config/microblaze/microblaze.h
20654 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
20655
20656 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
20657
20658 PR other/62168
20659 * configure.ac: Set install_gold_as_default to no for
20660 --enable-gold=no.
20661 * configure: Regenerated.
20662
20663 2014-08-18 Roman Gareev <gareevroman@gmail.com>
20664
20665 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
20666 * config.in: Add undef of HAVE_isl.
20667 * configure: Regenerate.
20668 * configure.ac: Add definition of HAVE_isl.
20669 * graphite-blocking.c: Add checking of HAVE_isl.
20670 * graphite-dependences.c: Likewise.
20671 * graphite-interchange.c: Likewise.
20672 * graphite-isl-ast-to-gimple.c: Likewise.
20673 * graphite-optimize-isl.c: Likewise.
20674 * graphite-poly.c: Likewise.
20675 * graphite-scop-detection.c: Likewise.
20676 * graphite-sese-to-poly.c: Likewise.
20677 * graphite.c: Likewise.
20678 * toplev.c: Replace the checking of HAVE_cloog with the checking
20679 of HAVE_isl.
20680
20681 2014-08-18 Richard Biener <rguenther@suse.de>
20682
20683 PR tree-optimization/62090
20684 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
20685 (fold_builtin_3): Do not fold snprintf.
20686 (fold_builtin_4): Likewise.
20687 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
20688 moved from builtins.c.
20689 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
20690 (gimple_fold_builtin): Do not fold sprintf here.
20691
20692 2014-08-18 Richard Biener <rguenther@suse.de>
20693
20694 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
20695 code to ...
20696 (maybe_canonicalize_mem_ref_addr): ... this function.
20697 (fold_stmt_1): Apply it here before all simplification.
20698
20699 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
20700
20701 PR ipa/61800
20702 * cgraph.h (cgraph_node::create_indirect_edge): Add
20703 compute_indirect_info param.
20704 * cgraph.c (cgraph_node::create_indirect_edge): Compute
20705 indirect_info only when it is required.
20706 * cgraphclones.c (cgraph_clone_edge): Do not recompute
20707 indirect_info fore cloned indirect edge.
20708
20709 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
20710 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20711 Anna Tikhonova <anna.tikhonova@intel.com>
20712 Ilya Tocar <ilya.tocar@intel.com>
20713 Andrey Turetskiy <andrey.turetskiy@intel.com>
20714 Ilya Verbin <ilya.verbin@intel.com>
20715 Kirill Yukhin <kirill.yukhin@intel.com>
20716 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20717
20718 * config/i386/sse.md
20719 (define_mode_iterator VI8_AVX2_AVX512BW): New.
20720 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
20721
20722 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
20723 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20724 Anna Tikhonova <anna.tikhonova@intel.com>
20725 Ilya Tocar <ilya.tocar@intel.com>
20726 Andrey Turetskiy <andrey.turetskiy@intel.com>
20727 Ilya Verbin <ilya.verbin@intel.com>
20728 Kirill Yukhin <kirill.yukhin@intel.com>
20729 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20730
20731 * config/i386/sse.md
20732 (define_mode_iterator VF1_AVX512VL): New.
20733 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
20734 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
20735 New.
20736
20737 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
20738 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20739 Anna Tikhonova <anna.tikhonova@intel.com>
20740 Ilya Tocar <ilya.tocar@intel.com>
20741 Andrey Turetskiy <andrey.turetskiy@intel.com>
20742 Ilya Verbin <ilya.verbin@intel.com>
20743 Kirill Yukhin <kirill.yukhin@intel.com>
20744 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20745
20746 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
20747 * config/i386/i386.md
20748 (define_code_iterator any_float): New.
20749 (define_code_attr floatsuffix): New.
20750 * config/i386/sse.md
20751 (define_mode_iterator VF1_128_256VL): New.
20752 (define_mode_iterator VF2_512_256VL): New.
20753 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
20754 TARGET check.
20755 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
20756 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
20757 New.
20758 (define_mode_attr qq2pssuff): New.
20759 (define_mode_attr sselongvecmode): New.
20760 (define_mode_attr sselongvecmodelower): New.
20761 (define_mode_attr sseintvecmode3): New.
20762 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
20763 New.
20764 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
20765 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
20766 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
20767 (define_insn "ufloatv2siv2df2<mask_name>"): New.
20768
20769 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
20770 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20771 Anna Tikhonova <anna.tikhonova@intel.com>
20772 Ilya Tocar <ilya.tocar@intel.com>
20773 Andrey Turetskiy <andrey.turetskiy@intel.com>
20774 Ilya Verbin <ilya.verbin@intel.com>
20775 Kirill Yukhin <kirill.yukhin@intel.com>
20776 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20777
20778 * config/i386/sse.md
20779 (define_mode_iterator VF2_AVX512VL): New.
20780 (define_mode_attr sseintvecmode2): New.
20781 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
20782 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
20783 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
20784 (define_insn
20785 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
20786 Ditto.
20787 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
20788 Ditto.
20789 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
20790 Ditto.
20791
20792 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
20793 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20794 Anna Tikhonova <anna.tikhonova@intel.com>
20795 Ilya Tocar <ilya.tocar@intel.com>
20796 Andrey Turetskiy <andrey.turetskiy@intel.com>
20797 Ilya Verbin <ilya.verbin@intel.com>
20798 Kirill Yukhin <kirill.yukhin@intel.com>
20799 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20800
20801 * config/i386/i386.md
20802 (define_insn "*movoi_internal_avx"): Add evex version.
20803 (define_insn "*movti_internal"): Ditto.
20804
20805 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
20806 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20807 Anna Tikhonova <anna.tikhonova@intel.com>
20808 Ilya Tocar <ilya.tocar@intel.com>
20809 Andrey Turetskiy <andrey.turetskiy@intel.com>
20810 Ilya Verbin <ilya.verbin@intel.com>
20811 Kirill Yukhin <kirill.yukhin@intel.com>
20812 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20813
20814 * config/i386/i386.md
20815 (define_attr "isa"): Add avx512dq, noavx512dq.
20816 (define_attr "enabled"): Ditto.
20817 * config/i386/sse.md
20818 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
20819
20820 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
20821 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20822 Anna Tikhonova <anna.tikhonova@intel.com>
20823 Ilya Tocar <ilya.tocar@intel.com>
20824 Andrey Turetskiy <andrey.turetskiy@intel.com>
20825 Ilya Verbin <ilya.verbin@intel.com>
20826 Kirill Yukhin <kirill.yukhin@intel.com>
20827 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20828
20829 * config/i386/i386.c
20830 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
20831 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
20832 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
20833 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
20834 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
20835 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
20836 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
20837 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
20838 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
20839 * config/i386/sse.md
20840 (define_mode_iterator VMOVE): Allow V4TI mode.
20841 (define_mode_iterator V_AVX512VL): New.
20842 (define_mode_iterator V): New handling for AVX512VL.
20843 (define_insn "avx512f_load<mode>_mask"): Delete.
20844 (define_insn "<avx512>_load<mode>_mask"): New.
20845 (define_insn "avx512f_store<mode>_mask"): Delete.
20846 (define_insn "<avx512>_store<mode>_mask"): New.
20847
20848
20849 2014-08-18 Yury Gribov <y.gribov@samsung.com>
20850
20851 PR sanitizer/62089
20852 * asan.c (instrument_derefs): Fix bitfield check.
20853
20854 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
20855
20856 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
20857 * config/rs6000/htm.md (ttest): Remove clobber.
20858 * config/rs6000/predicates.md (any_mask_operand): New predicate.
20859 (and_operand): Reformat.
20860 (and_2rld_operand): New predicate.
20861 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
20862 parameter.
20863 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
20864 parameter. Handle AND directly.
20865 (rs6000_split_logical_di): Remove last parameter.
20866 (rs6000_split_logical): Remove last parameter. Remove obsolete
20867 comment.
20868 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
20869 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
20870 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
20871 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
20872 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
20873 and 5 anonymous splitters): Delete.
20874 (and<mode>3): New expander.
20875 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
20876 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
20877 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
20878 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
20879 (floatdisf2_internal1): Remove clobbers.
20880 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
20881 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
20882 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
20883 (and<mode>3 for BOOL_128): Remove clobber.
20884 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
20885 rs6000_split_logical.
20886 (*bool<mode>3_internal for BOOL_128): Adjust call of
20887 rs6000_split_logical.
20888 (*boolc<mode>3_internal1 for BOOL_128,
20889 *boolc<mode>3_internal2 for BOOL_128,
20890 *boolcc<mode>3_internal1 for BOOL_128,
20891 *boolcc<mode>3_internal2 for BOOL_128,
20892 *eqv<mode>3_internal1 for BOOL_128,
20893 *eqv<mode>3_internal2 for BOOL_128,
20894 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
20895 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
20896 clobber.
20897 (*vec_reload_and_reg_<mptrsize>): Delete.
20898
20899 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
20900
20901 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
20902 and split, *boolccsi3_internal3 and split): Delete.
20903 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
20904 *boolccdi3_internal3 and split): Delete.
20905 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
20906 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
20907
20908 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
20909
20910 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
20911 and split, *boolcsi3_internal3 and split): Delete.
20912 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
20913 *boolcdi3_internal3 and split): Delete.
20914 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
20915
20916 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
20917
20918 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
20919 <'u'>: Also support printing the low-order 16 bits.
20920 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
20921 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
20922 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
20923 *booldi3_internal3 and split): Delete.
20924 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
20925 *bool<mode>3_dot2): New.
20926 (two anonymous define_splits for non_logical_cint_operand): Merge.
20927
20928 2014-08-17 Marek Polacek <polacek@redhat.com>
20929 Manuel López-Ibáñez <manu@gcc.gnu.org>
20930
20931 PR c/62059
20932 * diagnostic.c (adjust_line): Add gcc_checking_assert.
20933 (diagnostic_show_locus): Don't print caret diagnostic
20934 if a column is larger than the line_width.
20935
20936 2014-08-17 Roman Gareev <gareevroman@gmail.com>
20937
20938 * common.opt: Make the ISL AST generator to be the main code generator
20939 of Graphite.
20940
20941 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
20942
20943 * wide-int.h (generic_wide_int): Declare as class instead of struct.
20944
20945 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
20946
20947 PR target/61641
20948 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
20949 Declare.
20950 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
20951 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
20952 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
20953 Define.
20954 * config/pa/pa.md (begin_brtab): Delete insn.
20955 (end_brtab): Likewise.
20956
20957 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
20958
20959 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
20960
20961 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
20962
20963 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
20964 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
20965 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
20966 (get_dynamic_type): Remove.
20967 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
20968 (clear_speculation): Bring to ipa-deivrt.h
20969 (get_class_context): Rename to ...
20970 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
20971 (contains_type_p): Update.
20972 (get_dynamic_type): Rename to ...
20973 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
20974 (possible_polymorphic_call_targets): UPdate.
20975 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
20976 * ipa-prop.c (ipa_analyze_call_uses): Update.
20977
20978 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
20979
20980 * doc/invoke.texi (SH options): Document missing processor variant
20981 options. Remove references to Hitachi. Undocument deprecated mspace
20982 option.
20983
20984 2014-08-15 Jason Merrill <jason@redhat.com>
20985
20986 * tree.c (type_hash_canon): Uncomment assert.
20987
20988 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
20989
20990 * input.h (in_system_header_at): Add comment.
20991
20992 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
20993
20994 PR fortran/44054
20995 * diagnostic.c (build_message_string): Make it extern.
20996 * diagnostic.h (build_message_string): Make it extern.
20997
20998 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
20999
21000 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
21001 load/store from/to non-floating class pseudo.
21002
21003 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
21004
21005 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
21006
21007 2014-08-15 Richard Biener <rguenther@suse.de>
21008
21009 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
21010 (get_constraint_for_ssa_var): Remove dead code.
21011 (get_constraint_for_1): Adjust.
21012 (find_what_var_points_to): Likewise.
21013 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
21014
21015 2014-08-15 Ilya Tocar <tocarip@gmail.com>
21016
21017 PR target/61878
21018 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
21019 (_mm512_mask_cmpge_epu32_mask): Ditto.
21020 (_mm512_cmpge_epu32_mask): Ditto.
21021 (_mm512_mask_cmpge_epi64_mask): Ditto.
21022 (_mm512_cmpge_epi64_mask): Ditto.
21023 (_mm512_mask_cmpge_epu64_mask): Ditto.
21024 (_mm512_cmpge_epu64_mask): Ditto.
21025 (_mm512_mask_cmple_epi32_mask): Ditto.
21026 (_mm512_cmple_epi32_mask): Ditto.
21027 (_mm512_mask_cmple_epu32_mask): Ditto.
21028 (_mm512_cmple_epu32_mask): Ditto.
21029 (_mm512_mask_cmple_epi64_mask): Ditto.
21030 (_mm512_cmple_epi64_mask): Ditto.
21031 (_mm512_mask_cmple_epu64_mask): Ditto.
21032 (_mm512_cmple_epu64_mask): Ditto.
21033 (_mm512_mask_cmplt_epi32_mask): Ditto.
21034 (_mm512_cmplt_epi32_mask): Ditto.
21035 (_mm512_mask_cmplt_epu32_mask): Ditto.
21036 (_mm512_cmplt_epu32_mask): Ditto.
21037 (_mm512_mask_cmplt_epi64_mask): Ditto.
21038 (_mm512_cmplt_epi64_mask): Ditto.
21039 (_mm512_mask_cmplt_epu64_mask): Ditto.
21040 (_mm512_cmplt_epu64_mask): Ditto.
21041 (_mm512_mask_cmpneq_epi32_mask): Ditto.
21042 (_mm512_mask_cmpneq_epu32_mask): Ditto.
21043 (_mm512_cmpneq_epu32_mask): Ditto.
21044 (_mm512_mask_cmpneq_epi64_mask): Ditto.
21045 (_mm512_cmpneq_epi64_mask): Ditto.
21046 (_mm512_mask_cmpneq_epu64_mask): Ditto.
21047 (_mm512_cmpneq_epu64_mask): Ditto.
21048 (_mm512_castpd_ps): Ditto.
21049 (_mm512_castpd_si512): Ditto.
21050 (_mm512_castps_pd): Ditto.
21051 (_mm512_castps_si512): Ditto.
21052 (_mm512_castsi512_ps): Ditto.
21053 (_mm512_castsi512_pd): Ditto.
21054 (_mm512_castpd512_pd128): Ditto.
21055 (_mm512_castps512_ps128): Ditto.
21056 (_mm512_castsi512_si128): Ditto.
21057 (_mm512_castpd512_pd256): Ditto.
21058 (_mm512_castps512_ps256): Ditto.
21059 (_mm512_castsi512_si256): Ditto.
21060 (_mm512_castpd128_pd512): Ditto.
21061 (_mm512_castps128_ps512): Ditto.
21062 (_mm512_castsi128_si512): Ditto.
21063 (_mm512_castpd256_pd512): Ditto.
21064 (_mm512_castps256_ps512): Ditto.
21065 (_mm512_castsi256_si512): Ditto.
21066 (_mm512_cmpeq_epu32_mask): Ditto.
21067 (_mm512_mask_cmpeq_epu32_mask): Ditto.
21068 (_mm512_mask_cmpeq_epu64_mask): Ditto.
21069 (_mm512_cmpeq_epu64_mask): Ditto.
21070 (_mm512_cmpgt_epu32_mask): Ditto.
21071 (_mm512_mask_cmpgt_epu32_mask): Ditto.
21072 (_mm512_mask_cmpgt_epu64_mask): Ditto.
21073 (_mm512_cmpgt_epu64_mask): Ditto.
21074 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
21075 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
21076 * config/i386/i386.c (enum ix86_builtins): Add
21077 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
21078 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
21079 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
21080 (bdesc_args): Add __builtin_ia32_si512_256si,
21081 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
21082 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
21083 __builtin_ia32_pd512_pd.
21084 (ix86_expand_args_builtin): Handle new FTYPEs.
21085 * config/i386/sse.md (castmode): Add 512-bit modes.
21086 (AVX512MODE2P): New.
21087 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
21088 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
21089
21090 2014-08-15 Richard Biener <rguenther@suse.de>
21091
21092 * fold-const.c (tree_swap_operands_p): Put all constants
21093 last, also strip sign-changing NOPs when considering further
21094 canonicalization. Canonicalize also when optimizing for size.
21095
21096 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21097
21098 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
21099 one_match > zero_match case to just before simple_sequence.
21100
21101 2014-08-15 Richard Biener <rguenther@suse.de>
21102
21103 * data-streamer.h (streamer_string_index, string_for_index):
21104 Remove.
21105 * data-streamer-out.c (streamer_string_index): Make static.
21106 * data-streamer-in.c (string_for_index): Likewise.
21107 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
21108 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
21109
21110 2014-08-15 Richard Biener <rguenther@suse.de>
21111
21112 PR tree-optimization/62031
21113 * tree-data-ref.c (dr_analyze_indices): Do not set
21114 DR_UNCONSTRAINED_BASE.
21115 (dr_may_alias_p): All indirect accesses have to go the
21116 formerly DR_UNCONSTRAINED_BASE path.
21117 * tree-data-ref.h (struct indices): Remove
21118 unconstrained_base member.
21119 (DR_UNCONSTRAINED_BASE): Remove.
21120
21121 2014-08-15 Jakub Jelinek <jakub@redhat.com>
21122
21123 PR middle-end/62092
21124 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
21125 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
21126 in OMP_CLAUSE_MAP in some outer target region.
21127
21128 2014-08-15 Bin Cheng <bin.cheng@arm.com>
21129
21130 * tree-ssa-loop-ivopts.c (ivopts_data): New field
21131 name_expansion_cache.
21132 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
21133 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
21134 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
21135 (difference_cannot_overflow_p): New parameter. Use affine
21136 expansion for equality check.
21137 (iv_elimination_compare_lt): Pass new argument.
21138
21139 2014-08-14 DJ Delorie <dj@redhat.com>
21140
21141 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
21142 variables to the accumulator.
21143
21144 * config/rl78/predicates.md (rl78_near_mem_operand): New.
21145 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
21146 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
21147 with far-far moves.
21148
21149 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
21150 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
21151 (umulqihi3_virt): Likewise.
21152 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
21153 (umulqihi3_real): Likewise.
21154
21155 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
21156
21157 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
21158
21159 PR tree-optimization/62091
21160 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
21161 function_entry_reached.
21162 (walk_aliased_vdefs): Clear it here.
21163 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
21164
21165 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
21166
21167 * ipa-utils.h (compare_virtual_tables): Declare.
21168 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
21169
21170 2014-08-14 Marek Polacek <polacek@redhat.com>
21171
21172 DR 458
21173 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
21174 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
21175
21176 2014-08-14 Tom de Vries <tom@codesourcery.com>
21177
21178 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
21179
21180 2014-08-14 Tom de Vries <tom@codesourcery.com>
21181
21182 PR rtl-optimization/62004
21183 PR rtl-optimization/62030
21184 * ifcvt.c (rtx_interchangeable_p): New function.
21185 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
21186 * emit-rtl.h (mem_attrs_eq_p): Declare.
21187
21188 2014-08-14 Roman Gareev <gareevroman@gmail.com>
21189
21190 * graphite-scop-detection.c:
21191 Add inclusion of cp-tree.h.
21192 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
21193 in case they are pointers to object types
21194
21195 2014-08-14 Richard Biener <rguenther@suse.de>
21196
21197 * BASE-VER: Change to 5.0.0
21198
21199 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
21200 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21201 Anna Tikhonova <anna.tikhonova@intel.com>
21202 Ilya Tocar <ilya.tocar@intel.com>
21203 Andrey Turetskiy <andrey.turetskiy@intel.com>
21204 Ilya Verbin <ilya.verbin@intel.com>
21205 Kirill Yukhin <kirill.yukhin@intel.com>
21206 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21207
21208 * config/i386/sse.md (define_mode_attr avx512): New.
21209 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
21210 V4DI modes.
21211 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
21212 (define_mode_attr ssse3_avx2): Ditto.
21213 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
21214 (define_mode_attr avx2_avx512bw): New.
21215 (define_mode_attr ssedoublemodelower): New.
21216 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
21217 V32HI, V64QI modes.
21218 (define_mode_attr ssebytemode): Allow V8DI modes.
21219 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
21220 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
21221 (define_mode_attr ssePSmode2): New.
21222 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
21223 V16HI, V32HI modes.
21224 (define_mode_attr dbpsadbwmode): New.
21225 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
21226 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
21227 (vi8_sse4_1_avx2_avx512): New.
21228 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
21229 mode attribute.
21230 (define_mode_attr blendbits): Move before its immediate use.
21231
21232 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
21233 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21234 Anna Tikhonova <anna.tikhonova@intel.com>
21235 Ilya Tocar <ilya.tocar@intel.com>
21236 Andrey Turetskiy <andrey.turetskiy@intel.com>
21237 Ilya Verbin <ilya.verbin@intel.com>
21238 Kirill Yukhin <kirill.yukhin@intel.com>
21239 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21240
21241 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
21242 * config/i386/subst.md
21243 (define_mode_iterator SUBST_V): Update.
21244 (define_mode_iterator SUBST_A): Ditto.
21245 (define_subst_attr "mask_operand7"): New.
21246 (define_subst_attr "mask_operand10"): New.
21247 (define_subst_attr "mask_operand_arg34") : New.
21248 (define_subst_attr "mask_expand_op3"): New.
21249 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
21250 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
21251 (define_subst_attr "mask_avx512vl_condition"): New.
21252 (define_subst_attr "round_mask_operand4"): Ditto.
21253 (define_subst_attr "round_mask_scalar_op3"): Delete.
21254 (define_subst_attr "round_mask_op4"): New.
21255 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
21256 V16SImode.
21257 (define_subst_attr "round_modev8sf_condition"): New.
21258 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
21259 <MODE>mode.
21260 (define_subst_attr "round_saeonly_mask_operand4"): New.
21261 (define_subst_attr "round_saeonly_mask_op4"): New.
21262 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
21263 V8DImode, V16SImode.
21264 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
21265 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
21266 (define_subst_attr "mask_expand4_args"): New.
21267 (define_subst "mask_expand4"): New.
21268
21269 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
21270 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21271 Anna Tikhonova <anna.tikhonova@intel.com>
21272 Ilya Tocar <ilya.tocar@intel.com>
21273 Andrey Turetskiy <andrey.turetskiy@intel.com>
21274 Ilya Verbin <ilya.verbin@intel.com>
21275 Kirill Yukhin <kirill.yukhin@intel.com>
21276 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21277
21278 * config/i386/i386.md
21279 (define_attr "isa"): Add avx512bw,noavx512bw.
21280 (define_attr "enabled"): Ditto.
21281 (define_split): Add 32/64-bit mask logic.
21282 (define_insn "*k<logic>qi"): New.
21283 (define_insn "*k<logic>hi"): New.
21284 (define_insn "*anddi_1"): Add mask version.
21285 (define_insn "*andsi_1"): Ditto.
21286 (define_insn "*<code><mode>_1"): Ditto.
21287 (define_insn "*<code>hi_1"): Ditto.
21288 (define_insn "kxnor<mode>"): New.
21289 (define_insn "kunpcksi"): New.
21290 (define_insn "kunpckdi"): New.
21291 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
21292 (define_insn "*one_cmplhi2_1"): Ditto.
21293
21294 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
21295 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21296 Anna Tikhonova <anna.tikhonova@intel.com>
21297 Ilya Tocar <ilya.tocar@intel.com>
21298 Andrey Turetskiy <andrey.turetskiy@intel.com>
21299 Ilya Verbin <ilya.verbin@intel.com>
21300 Kirill Yukhin <kirill.yukhin@intel.com>
21301 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21302
21303 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
21304 V32HImode.
21305
21306 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
21307 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21308 Anna Tikhonova <anna.tikhonova@intel.com>
21309 Ilya Tocar <ilya.tocar@intel.com>
21310 Andrey Turetskiy <andrey.turetskiy@intel.com>
21311 Ilya Verbin <ilya.verbin@intel.com>
21312 Kirill Yukhin <kirill.yukhin@intel.com>
21313 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21314
21315 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
21316 registers.
21317 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
21318 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
21319 xmm/ymm16+ when availble.
21320 * config/i386/i386.h
21321 (HARD_REGNO_NREGS): Add mask regs.
21322 (VALID_AVX512F_REG_MODE): Ditto.
21323 (VALID_AVX512F_REG_MODE) : Define.
21324 (VALID_MASK_AVX512BW_MODE): Ditto.
21325 (reg_class) (MASK_REG_P(X)): Define.
21326 * config/i386/i386.md: Do not split long moves with mask register,
21327 use kmovb if avx512bw is availible.
21328 (movdi_internal): Handle mask registers.
21329
21330 2014-08-14 Richard Biener <rguenther@suse.de>
21331
21332 PR tree-optimization/62081
21333 * tree-ssa-loop.c (pass_fix_loops): New pass.
21334 (pass_tree_loop::gate): Do not fixup loops here.
21335 * tree-pass.h (make_pass_fix_loops): Declare.
21336 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
21337
21338 2014-08-14 Richard Biener <rguenther@suse.de>
21339
21340 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
21341 (type_hash_canon): ... this and avoid 2nd lookup for the add.
21342
21343 2014-08-14 Richard Biener <rguenther@suse.de>
21344
21345 PR tree-optimization/62090
21346 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
21347 (fold_builtin_2): Do not fold sprintf.
21348 (fold_builtin_3): Likewise.
21349 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
21350 moved from builtins.c.
21351 (gimple_fold_builtin): Fold sprintf.
21352
21353 2014-08-14 Richard Biener <rguenther@suse.de>
21354
21355 PR rtl-optimization/62079
21356 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
21357 run cleanup_cfg.
21358
21359 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
21360
21361 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
21362 current_function_decl.
21363
21364 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
21365
21366 * cgraph.c (cgraph_node::function_symbol): Fix wrong
21367 cgraph_function_node to cgraph_node::function_symbol
21368 refactoring.
21369
21370 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
21371
21372 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
21373 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
21374
21375 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
21376
21377 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
21378 warning.
21379
21380 2014-08-13 Roman Gareev <gareevroman@gmail.com>
21381
21382 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
21383 generator.
21384
21385 2014-08-12 Jakub Jelinek <jakub@redhat.com>
21386
21387 PR target/62025
21388 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
21389 any registers that are used in mem_insn.
21390
21391 2014-08-12 Steve Ellcey <sellcey@mips.com>
21392
21393 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
21394
21395 2014-08-12 Steve Ellcey <sellcey@mips.com>
21396
21397 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
21398 (MULTILIB_DIRNAMES): Ditto.
21399 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
21400 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
21401 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
21402 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
21403 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
21404 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
21405
21406 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21407
21408 PR target/61413
21409 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
21410 of __ARM_SIZEOF_WCHAR_T.
21411
21412 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21413
21414 PR target/62098
21415 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
21416 Remove unnecessary attributes.
21417
21418 2014-08-12 Yury Gribov <y.gribov@samsung.com>
21419
21420 * internal-fn.c (init_internal_fns): Fix off-by-one.
21421
21422 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
21423 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21424 Anna Tikhonova <anna.tikhonova@intel.com>
21425 Ilya Tocar <ilya.tocar@intel.com>
21426 Andrey Turetskiy <andrey.turetskiy@intel.com>
21427 Ilya Verbin <ilya.verbin@intel.com>
21428 Kirill Yukhin <kirill.yukhin@intel.com>
21429 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21430
21431 * config/i386/i386.c (standard_sse_constant_opcode): Use
21432 vpxord/vpternlog if avx512 is availible.
21433
21434 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
21435
21436 PR middle-end/62103
21437 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
21438 bitfields, that is when size doesn't match the size of type or the
21439 size of the constructor.
21440
21441 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
21442
21443 * config/rs6000/constraints.md (wh constraint): New constraint,
21444 for FP registers if direct move is available.
21445 (wi constraint): New constraint, for VSX/FP registers that can
21446 handle 64-bit integers.
21447 (wj constraint): New constraint for VSX/FP registers that can
21448 handle 64-bit integers for direct moves.
21449 (wk constraint): New constraint for VSX/FP registers that can
21450 handle 64-bit doubles for direct moves.
21451 (wy constraint): Make documentation match implementation.
21452
21453 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
21454 scalar_in_vmx_p field to simplify tests of whether SFmode or
21455 DFmode can go in the Altivec registers.
21456 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
21457 (rs6000_setup_reg_addr_masks): Likewise.
21458 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
21459 field, and wh/wi/wj/wk constraints.
21460 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
21461 the wh/wi/wj/wk constraints.
21462 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
21463 upper registers, prefer VSX registers unless the operation is a
21464 memory operation with REG+OFFSET addressing.
21465
21466 * config/rs6000/vsx.md (VSr mode attribute): Add support for
21467 DImode. Change SFmode to use ww constraint instead of d to allow
21468 SF registers in the upper registers.
21469 (VSr2): Likewise.
21470 (VSr3): Likewise.
21471 (VSr5): Fix thinko in comment.
21472 (VSa): New mode attribute that is an alternative to wa, that
21473 returns the VSX register class that a mode can go in, but may not
21474 be the preferred register class.
21475 (VS_64dm): New mode attribute for appropriate register classes for
21476 referencing 64-bit elements of vectors for direct moves and normal
21477 moves.
21478 (VS_64reg): Likewise.
21479 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
21480 register allocator to only registers the data type can handle.
21481 (vsx_le_perm_load_<mode>): Likewise.
21482 (vsx_le_perm_store_<mode>): Likewise.
21483 (vsx_xxpermdi2_le_<mode>): Likewise.
21484 (vsx_xxpermdi4_le_<mode>): Likewise.
21485 (vsx_lxvd2x2_le_<mode>): Likewise.
21486 (vsx_lxvd2x4_le_<mode>): Likewise.
21487 (vsx_stxvd2x2_le_<mode>): Likewise.
21488 (vsx_add<mode>3): Likewise.
21489 (vsx_sub<mode>3): Likewise.
21490 (vsx_mul<mode>3): Likewise.
21491 (vsx_div<mode>3): Likewise.
21492 (vsx_tdiv<mode>3_internal): Likewise.
21493 (vsx_fre<mode>2): Likewise.
21494 (vsx_neg<mode>2): Likewise.
21495 (vsx_abs<mode>2): Likewise.
21496 (vsx_nabs<mode>2): Likewise.
21497 (vsx_smax<mode>3): Likewise.
21498 (vsx_smin<mode>3): Likewise.
21499 (vsx_sqrt<mode>2): Likewise.
21500 (vsx_rsqrte<mode>2): Likewise.
21501 (vsx_tsqrt<mode>2_internal): Likewise.
21502 (vsx_fms<mode>4): Likewise.
21503 (vsx_nfma<mode>4): Likewise.
21504 (vsx_eq<mode>): Likewise.
21505 (vsx_gt<mode>): Likewise.
21506 (vsx_ge<mode>): Likewise.
21507 (vsx_eq<mode>_p): Likewise.
21508 (vsx_gt<mode>_p): Likewise.
21509 (vsx_ge<mode>_p): Likewise.
21510 (vsx_xxsel<mode>): Likewise.
21511 (vsx_xxsel<mode>_uns): Likewise.
21512 (vsx_copysign<mode>3): Likewise.
21513 (vsx_float<VSi><mode>2): Likewise.
21514 (vsx_floatuns<VSi><mode>2): Likewise.
21515 (vsx_fix_trunc<mode><VSi>2): Likewise.
21516 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
21517 (vsx_x<VSv>r<VSs>i): Likewise.
21518 (vsx_x<VSv>r<VSs>ic): Likewise.
21519 (vsx_btrunc<mode>2): Likewise.
21520 (vsx_b2trunc<mode>2): Likewise.
21521 (vsx_floor<mode>2): Likewise.
21522 (vsx_ceil<mode>2): Likewise.
21523 (vsx_<VS_spdp_insn>): Likewise.
21524 (vsx_xscvspdp): Likewise.
21525 (vsx_xvcvspuxds): Likewise.
21526 (vsx_float_fix_<mode>2): Likewise.
21527 (vsx_set_<mode>): Likewise.
21528 (vsx_extract_<mode>_internal1): Likewise.
21529 (vsx_extract_<mode>_internal2): Likewise.
21530 (vsx_extract_<mode>_load): Likewise.
21531 (vsx_extract_<mode>_store): Likewise.
21532 (vsx_splat_<mode>): Likewise.
21533 (vsx_xxspltw_<mode>): Likewise.
21534 (vsx_xxspltw_<mode>_direct): Likewise.
21535 (vsx_xxmrghw_<mode>): Likewise.
21536 (vsx_xxmrglw_<mode>): Likewise.
21537 (vsx_xxsldwi_<mode>): Likewise.
21538 (vsx_xscvdpspn): Tighten constraints to only use register classes
21539 the types use.
21540 (vsx_xscvspdpn): Likewise.
21541 (vsx_xscvdpspn_scalar): Likewise.
21542
21543 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
21544 wj, and wk constraints.
21545 (GPR_REG_CLASS_P): New helper macro for register classes targeting
21546 general purpose registers.
21547
21548 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
21549 direct moves.
21550 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
21551 DImode instead of wm. Use wk constraint for direct move of DFmode
21552 instead of wm.
21553 (extendsidi2_lfiwax): Likewise.
21554 (lfiwax): Likewise.
21555 (lfiwzx): Likewise.
21556 (movdi_internal64): Likewise.
21557
21558 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
21559 wk constraints. Make the wy constraint documentation match them
21560 implementation.
21561
21562 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
21563
21564 Replacement of isl_int by isl_val
21565 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
21566 (compute_bounds_for_param): use isl_val instead of isl_int
21567 (compute_bounds_for_loop): likewise
21568 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
21569 (build_linearized_memory_access): use isl_val instead of isl_int
21570 (pdr_stride_in_loop): likewise
21571 * graphite-optimize-isl.c:
21572 (getPrevectorMap): use isl_val instead of isl_int
21573 * graphite-poly.c:
21574 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
21575 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
21576 (extern the_isl_ctx): declare
21577 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
21578 (extract_affine_gmp): likewise
21579 (wrap): likewise
21580 (build_loop_iteration_domains): likewise
21581 (add_param_constraints): likewise
21582
21583 2014-08-11 Richard Biener <rguenther@suse.de>
21584
21585 PR tree-optimization/62075
21586 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
21587 handle uses in patterns.
21588
21589 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
21590 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21591 Anna Tikhonova <anna.tikhonova@intel.com>
21592 Ilya Tocar <ilya.tocar@intel.com>
21593 Andrey Turetskiy <andrey.turetskiy@intel.com>
21594 Ilya Verbin <ilya.verbin@intel.com>
21595 Kirill Yukhin <kirill.yukhin@intel.com>
21596 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21597
21598 * common/config/i386/i386-common.c
21599 (OPTION_MASK_ISA_AVX512VL_SET): Define.
21600 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
21601 (ix86_handle_option): Handle OPT_mavx512vl.
21602 * config/i386/cpuid.h (bit_AVX512VL): Define.
21603 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
21604 set -mavx512vl accordingly.
21605 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21606 OPTION_MASK_ISA_AVX512VL.
21607 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
21608 (ix86_option_override_internal): Define PTA_AVX512VL, handle
21609 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
21610 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
21611 * config/i386/i386.h (TARGET_AVX512VL): Define.
21612 (TARGET_AVX512VL_P(x)): Ditto.
21613 * config/i386/i386.opt: Add mavx512vl.
21614
21615 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
21616
21617 PR tree-optimization/62073
21618 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
21619 a basic block.
21620
21621 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
21622 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21623 Anna Tikhonova <anna.tikhonova@intel.com>
21624 Ilya Tocar <ilya.tocar@intel.com>
21625 Andrey Turetskiy <andrey.turetskiy@intel.com>
21626 Ilya Verbin <ilya.verbin@intel.com>
21627 Kirill Yukhin <kirill.yukhin@intel.com>
21628 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21629
21630 * common/config/i386/i386-common.c
21631 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
21632 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
21633 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
21634 (ix86_handle_option): Handle OPT_mavx512bw.
21635 * config/i386/cpuid.h (bit_AVX512BW): Define.
21636 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
21637 set -mavx512bw accordingly.
21638 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21639 OPTION_MASK_ISA_AVX512BW.
21640 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
21641 (ix86_option_override_internal): Define PTA_AVX512BW, handle
21642 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
21643 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
21644 * config/i386/i386.h (TARGET_AVX512BW): Define.
21645 (TARGET_AVX512BW_P(x)): Ditto.
21646 * config/i386/i386.opt: Add mavx512bw.
21647
21648 2014-08-11 Richard Biener <rguenther@suse.de>
21649
21650 PR tree-optimization/62070
21651 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
21652 Remove SSA checking.
21653
21654 2014-08-11 Yury Gribov <y.gribov@samsung.com>
21655
21656 * asan.c (asan_check_flags): New enum.
21657 (build_check_stmt_with_calls): Removed function.
21658 (build_check_stmt): Split inlining logic to
21659 asan_expand_check_ifn.
21660 (instrument_derefs): Rename parameter.
21661 (instrument_mem_region_access): Rename parameter.
21662 (instrument_strlen_call): Likewise.
21663 (asan_expand_check_ifn): New function.
21664 (asan_instrument): Remove old code.
21665 (pass_sanopt::execute): Change handling of
21666 asan-instrumentation-with-call-threshold.
21667 (asan_clear_shadow): Fix formatting.
21668 (asan_function_start): Likewise.
21669 (asan_emit_stack_protection): Likewise.
21670 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
21671 Update description.
21672 * internal-fn.c (expand_ASAN_CHECK): New function.
21673 * internal-fn.def (ASAN_CHECK): New internal function.
21674 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
21675 Update description.
21676 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
21677 * tree.c: Small comment fix.
21678
21679 2014-08-11 Yury Gribov <y.gribov@samsung.com>
21680
21681 * gimple.c (gimple_call_fnspec): Support internal functions.
21682 (gimple_call_return_flags): Use const.
21683 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
21684 * internal-fn.def: Add fnspec information.
21685 * internal-fn.h (internal_fn_fnspec): New function.
21686 (init_internal_fns): Declare new function.
21687 * internal-fn.c (internal_fn_fnspec_array): New global variable.
21688 (init_internal_fns): New function.
21689 * tree-core.h: Update macro call.
21690 * tree.c (build_common_builtin_nodes): Initialize internal fns.
21691
21692 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
21693
21694 * lto-streamer.h (struct output_block::symbol): Change from
21695 struct symtab_node to plain symtab_node.
21696 (referenced_from_this_partition_p): Change first parameter
21697 from struct symtab_node to plain symtab_node.
21698
21699 2014-08-10 Marek Polacek <polacek@redhat.com>
21700
21701 PR c/51849
21702 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
21703
21704 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
21705
21706 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
21707 DECL correctly; do not give up on types in static storage.
21708
21709 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
21710
21711 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
21712
21713 2014-08-09 Roman Gareev <gareevroman@gmail.com>
21714
21715 * graphite-isl-ast-to-gimple.c:
21716 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
21717
21718 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
21719
21720 2014-08-08 Guozhi Wei <carrot@google.com>
21721
21722 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
21723
21724 2014-08-08 Cary Coutant <ccoutant@google.com>
21725
21726 * dwarf2out.c (get_skeleton_type_unit): Remove.
21727 (output_skeleton_debug_sections): Remove skeleton type units.
21728 (output_comdat_type_unit): Likewise.
21729 (dwarf2out_finish): Likewise.
21730
21731 2014-08-07 Yi Yang <ahyangyi@google.com>
21732
21733 * predict.c (expr_expected_value_1): Remove the redundant assignment.
21734
21735 2014-08-08 Richard Biener <rguenther@suse.de>
21736
21737 * lto-streamer.h (struct lto_input_block): Make it a class
21738 with a constructor.
21739 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
21740 (struct lto_function_header, struct lto_simple_header,
21741 struct lto_simple_header_with_strings,
21742 struct lto_decl_header, struct lto_function_header): Make
21743 a simple inheritance hieararchy. Remove unused fields.
21744 (struct lto_asm_header): Remove.
21745 * lto-streamer-out.c (produce_asm): Adjust.
21746 (lto_output_toplevel_asms): Likewise.
21747 (produce_asm_for_decls): Likewise.
21748 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
21749 * data-streamer-in.c (string_for_index): Likewise.
21750 * ipa-inline-analysis.c (inline_read_section): Likewise.
21751 * ipa-prop.c (ipa_prop_read_section): Likewise.
21752 (read_replacements_section): Likewise.
21753 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
21754 * lto-section-in.c (lto_create_simple_input_block): Likewise.
21755 (lto_destroy_simple_input_block): Likewise.
21756 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
21757 (lto_input_toplevel_asms): Likewise.
21758
21759 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
21760 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21761 Anna Tikhonova <anna.tikhonova@intel.com>
21762 Ilya Tocar <ilya.tocar@intel.com>
21763 Andrey Turetskiy <andrey.turetskiy@intel.com>
21764 Ilya Verbin <ilya.verbin@intel.com>
21765 Kirill Yukhin <kirill.yukhin@intel.com>
21766 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21767
21768 * common/config/i386/i386-common.c
21769 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
21770 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
21771 (ix86_handle_option): Handle OPT_mavx512dq.
21772 * config/i386/cpuid.h (bit_AVX512DQ): Define.
21773 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
21774 set -mavx512dq accordingly.
21775 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
21776 OPTION_MASK_ISA_AVX512DQ.
21777 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
21778 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
21779 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
21780 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
21781 * config/i386/i386.h (TARGET_AVX512DQ): Define.
21782 (TARGET_AVX512DQ_P(x)): Ditto.
21783 * config/i386/i386.opt: Add mavx512dq.
21784
21785 2014-08-08 Richard Biener <rguenther@suse.de>
21786
21787 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
21788 target_percent, target_percent_s): Export.
21789 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
21790 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
21791 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
21792 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
21793 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
21794 Move to gimple-fold.c.
21795 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
21796 strcat and strcpy.
21797 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
21798 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
21799 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
21800 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
21801 (rewrite_call_expr_array): Remove.
21802 (fold_builtin_sprintf_chk): Likewise.
21803 (fold_builtin_snprintf_chk): Likewise.
21804 (fold_builtin_varargs): Remove handling of sprintf_chk,
21805 vsprintf_chk, snprintf_chk and vsnprintf_chk.
21806 (gimple_fold_builtin_sprintf_chk): Remove.
21807 (gimple_fold_builtin_snprintf_chk): Likewise.
21808 (gimple_fold_builtin_varargs): Likewise.
21809 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
21810 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
21811 * gimple.c (gimple_seq_add_seq_without_update): New function.
21812 * gimple.h (gimple_seq_add_seq_without_update): Declare.
21813 * gimple-fold.c: Include output.h.
21814 (gsi_replace_with_seq_vops): New function, split out from ...
21815 (gimplify_and_update_call_from_tree): ... here.
21816 (replace_call_with_value): New function.
21817 (replace_call_with_call_and_fold): Likewise.
21818 (var_decl_component_p): Moved from builtins.c.
21819 (gimple_fold_builtin_memory_op): Moved from builtins.c
21820 fold_builtin_memory_op and rewritten to GIMPLE.
21821 (gimple_fold_builtin_memset): Likewise.
21822 (gimple_fold_builtin_strcpy): Likewise.
21823 (gimple_fold_builtin_strncpy): Likewise.
21824 (gimple_fold_builtin_strcat): Likewise.
21825 (gimple_fold_builtin_fputs): Likewise.
21826 (gimple_fold_builtin_memory_chk): Likewise.
21827 (gimple_fold_builtin_stxcpy_chk): Likewise.
21828 (gimple_fold_builtin_stxncpy_chk): Likewise.
21829 (gimple_fold_builtin_snprintf_chk): Likewise.
21830 (gimple_fold_builtin_sprintf_chk): Likewise.
21831 (gimple_fold_builtin_strlen): New function.
21832 (gimple_fold_builtin_with_strlen): New function split out from
21833 gimple_fold_builtin.
21834 (gimple_fold_builtin): Change signature and handle
21835 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
21836 here. Call gimple_fold_builtin_with_strlen.
21837 (gimple_fold_call): Adjust.
21838
21839 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
21840
21841 * calls.c (precompute_arguments): Check
21842 promoted_for_signed_and_unsigned_p and set the promoted mode.
21843 (promoted_for_signed_and_unsigned_p): New function.
21844 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
21845 and set the promoted mode.
21846 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
21847 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
21848 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
21849
21850
21851 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
21852
21853 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
21854 instead of SUBREG_PROMOTED_UNSIGNED_SET.
21855 (expand_call): Likewise.
21856 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
21857 to get promoted mode.
21858 * combine.c (record_promoted_value): Skip > 0 comparison with
21859 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
21860 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
21861 of SUBREG_PROMOTED_UNSIGNED_P.
21862 (convert_modes): Likewise.
21863 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
21864 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
21865 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
21866 SUBREG_PROMOTED_UNSIGNED_SET.
21867 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
21868 instead of SUBREG_PROMOTED_UNSIGNED_SET.
21869 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
21870 SUBREG_PROMOTED_SET.
21871 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
21872 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
21873 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
21874 of SUBREG_PROMOTED_UNSIGNED_P.
21875 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
21876 (SUBREG_PROMOTED_SET): New define.
21877 (SUBREG_PROMOTED_GET): Likewise.
21878 (SUBREG_PROMOTED_SIGN): Likewise.
21879 (SUBREG_PROMOTED_SIGNED_P): Likewise.
21880 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
21881 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
21882 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
21883 instead of SUBREG_PROMOTED_UNSIGNED_GET.
21884 (nonzero_bits1): Skip > 0 comparison with the results as
21885 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
21886 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
21887 of !SUBREG_PROMOTED_UNSIGNED_P.
21888 * simplify-rtx.c (simplify_unary_operation_1): Use new
21889 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
21890 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
21891 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
21892 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
21893
21894 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
21895
21896 * ipa-devirt.c: Include gimple-pretty-print.h
21897 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
21898 further tests.
21899 (decl_maybe_in_construction_p): Fix conditional on cdtor check
21900 (get_polymorphic_call_info): Fix return value
21901 (type_change_info): New sturcture based on ipa-prop
21902 variant.
21903 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
21904 based on ipa-prop variant.
21905 (extr_type_from_vtbl_ptr_store): New function
21906 based on ipa-prop variant.
21907 (record_known_type): New function.
21908 (check_stmt_for_type_change): New function.
21909 (get_dynamic_type): New function.
21910 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
21911 * tree-ssa-pre.c: ipa-utils.h
21912 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
21913 machinery; sanity check with ipa-prop devirtualization.
21914 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
21915 polymorphic flag.
21916
21917 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
21918
21919 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
21920 * alias.c, cfgexpand.c, cgraphbuild.c,
21921 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
21922 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
21923 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
21924 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
21925 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
21926 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
21927 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
21928 dse.c, except.c, gengtype.c, gimple-expr.c,
21929 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
21930 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
21931 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
21932 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
21933 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
21934 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
21935 pointer-set.h.
21936 * pointer-set.c: Remove file.
21937 * pointer-set.h: Remove file.
21938
21939 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21940
21941 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
21942 * config/arm/types.md (f_sels, f_seld): Delete.
21943
21944 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21945
21946 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
21947 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
21948 (aarch64_movdi_<mode>high): Likewise.
21949 (aarch64_mov<mode>high_di): Likewise.
21950 (aarch64_movdi_<mode>low): Likewise.
21951 (aarch64_mov<mode>low_di): Likewise.
21952 (aarch64_movtilow_tilow): Likewise.
21953 Add comment explaining usage of fp,simd attributes and of
21954 TARGET_FLOAT and TARGET_SIMD.
21955
21956 2014-08-07 Ian Bolton <ian.bolton@arm.com>
21957 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21958
21959 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
21960 Use MOVN when one of the half-words is 0xffff.
21961
21962 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
21963
21964 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
21965
21966 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21967
21968 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
21969 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
21970 (rfs_str): String corresponding to RFS_* constants.
21971 (rank_for_schedule_stats_t): New typedef.
21972 (rank_for_schedule_stats): New static variable.
21973 (rfs_result): New static function.
21974 (rank_for_schedule): Track statistics for deciding heuristics.
21975 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
21976 static functions.
21977 (ready_sort): Use them for debug printouts.
21978 (schedule_block): Init statistics state. Print statistics on
21979 rank_for_schedule decisions.
21980
21981 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21982
21983 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
21984
21985 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
21986
21987 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
21988 constraint.
21989
21990 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
21991
21992 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
21993 function to not conflict.
21994 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
21995 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
21996 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
21997 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
21998 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
21999 of pointer_map.
22000
22001 2014-08-07 Marek Polacek <polacek@redhat.com>
22002
22003 * fold-const.c (fold_binary_loc): Add folding of
22004 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
22005
22006 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
22007
22008 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
22009 instead of type size.
22010 (ASM_FINISH_DECLARE_OBJECT): Likewise.
22011
22012 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
22013
22014 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
22015 (*thumb1_movqi_insn): Likewise.
22016 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
22017
22018 2014-08-07 Tom de Vries <tom@codesourcery.com>
22019
22020 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
22021 (glibc_2_11_or_earlier): Remove effective-target keywords.
22022
22023 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
22024
22025 * config/arm/arm.c (bdesc_2arg): Fix typo.
22026 (arm_atomic_assign_expand_fenv): Remove The default implementation.
22027
22028 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
22029
22030 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
22031
22032 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
22033
22034 PR debug/61923
22035 * haifa-sched.c (advance_one_cycle): Fix dump.
22036 (schedule_block): Don't advance cycle if we are already at the
22037 beginning of the cycle.
22038
22039 2014-08-06 Martin Jambor <mjambor@suse.cz>
22040
22041 PR ipa/61393
22042 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
22043
22044 2014-08-06 Richard Biener <rguenther@suse.de>
22045
22046 PR lto/62034
22047 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
22048 SCCs here.
22049 (lto_input_tree): Pop SCCs here.
22050
22051 2014-08-06 Richard Biener <rguenther@suse.de>
22052
22053 PR tree-optimization/61320
22054 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
22055 handle misaligned loads.
22056
22057 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
22058
22059 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
22060 (aarch64_expand_vec_perm_const): Check for dup before zip.
22061
22062 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22063
22064 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
22065 CONST_INT_P instead of GET_CODE and compare.
22066 (aarch64_select_cc_mode): Likewise.
22067 (aarch64_print_operand): Likewise.
22068 (aarch64_rtx_costs): Likewise.
22069 (aarch64_simd_valid_immediate): Likewise.
22070 (aarch64_simd_check_vect_par_cnst_half): Likewise.
22071 (aarch64_simd_emit_pair_result_insn): Likewise.
22072
22073 2014-08-05 David Malcolm <dmalcolm@redhat.com>
22074
22075 * gdbhooks.py (find_gcc_source_dir): New helper function.
22076 (class PassNames): New class, locating and parsing passes.def.
22077 (class BreakOnPass): New command "break-on-pass".
22078
22079 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
22080
22081 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
22082 getting olde.
22083
22084 2014-08-05 Richard Biener <rguenther@suse.de>
22085
22086 PR rtl-optimization/61672
22087 * emit-rtl.h (mem_attrs_eq_p): Declare.
22088 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
22089 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
22090 * cfgcleanup.c (merge_memattrs): Likewise.
22091 Include emit-rtl.h.
22092
22093 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22094
22095 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
22096 rather than singleton vectors.
22097 (vqdmlsls_lane_s32): Likewise.
22098
22099 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22100
22101 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
22102 Use VSDQ_HSI mode iterator.
22103 (aarch64_sqrdmulh_laneq<mode>): Likewise.
22104 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
22105 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
22106 Use BUILTIN_VDQHS macro.
22107 (sqrdmulh_laneq): Likewise.
22108 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
22109 (vqdmlals_laneq_s32): Likewise.
22110 (vqdmlslh_laneq_s16): Likewise.
22111 (vqdmlsls_laneq_s32): Likewise.
22112 (vqdmulhh_laneq_s16): Likewise.
22113 (vqdmulhs_laneq_s32): Likewise.
22114 (vqrdmulhh_laneq_s16): Likewise.
22115 (vqrdmulhs_laneq_s32): Likewise.
22116
22117 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22118
22119 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
22120 (vmuld_laneq_f64): Likewise.
22121 (vmuls_laneq_f32): Likewise.
22122 (vmul_n_f64): Likewise.
22123 (vmuld_lane_f64): Reimplement in C.
22124 (vmuls_lane_f32): Likewise.
22125
22126 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22127
22128 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
22129 to reservation.
22130 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
22131
22132 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22133
22134 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
22135 (rbitsi2): Likewise.
22136 (*arm_rev): Set predicable and predicable_short_it attributes.
22137
22138 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22139
22140 * convert.c (convert_to_integer): Guard transformation to lrint by
22141 -fno-math-errno.
22142
22143 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
22144
22145 * config/aarch64/aarch64-builtins.c
22146 (aarch64_simd_builtin_type_mode): Delete.
22147 (v8qi_UP): Remap to V8QImode.
22148 (v4hi_UP): Remap to V4HImode.
22149 (v2si_UP): Remap to V2SImode.
22150 (v2sf_UP): Remap to V2SFmode.
22151 (v1df_UP): Remap to V1DFmode.
22152 (di_UP): Remap to DImode.
22153 (df_UP): Remap to DFmode.
22154 (v16qi_UP):V16QImode.
22155 (v8hi_UP): Remap to V8HImode.
22156 (v4si_UP): Remap to V4SImode.
22157 (v4sf_UP): Remap to V4SFmode.
22158 (v2di_UP): Remap to V2DImode.
22159 (v2df_UP): Remap to V2DFmode.
22160 (ti_UP): Remap to TImode.
22161 (ei_UP): Remap to EImode.
22162 (oi_UP): Remap to OImode.
22163 (ci_UP): Map to CImode.
22164 (xi_UP): Remap to XImode.
22165 (si_UP): Remap to SImode.
22166 (sf_UP): Remap to SFmode.
22167 (hi_UP): Remap to HImode.
22168 (qi_UP): Remap to QImode.
22169 (aarch64_simd_builtin_datum): Make mode a machine_mode.
22170 (VAR1): Build builtin name.
22171 (aarch64_init_simd_builtins): Remove dead code.
22172
22173 2014-08-05 Roman Gareev <gareevroman@gmail.com>
22174
22175 * graphite-isl-ast-to-gimple.c:
22176 (set_options): New function.
22177 (scop_to_isl_ast): Add calling of set_options.
22178
22179 2014-08-05 Jakub Jelinek <jakub@redhat.com>
22180
22181 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
22182 (analyze_iv_to_split_insn): Don't initialize them.
22183 (get_ivts_expr): Removed.
22184 (allocate_basic_variable, insert_base_initialization): Use
22185 SET_SRC instead of *get_ivts_expr.
22186 (split_iv): Use &SET_SRC instead of get_ivts_expr.
22187
22188 2014-08-05 Roman Gareev <gareevroman@gmail.com>
22189
22190 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
22191 (translate_isl_ast_for_loop): Add checking of the
22192 flag_loop_parallelize_all.
22193 (ast_build_before_for): New function.
22194 (scop_to_isl_ast): Add checking of the
22195 flag_loop_parallelize_all.
22196 * graphite-dependences.c: Move the defenition of the
22197 scop_get_dependences from graphite-optimize-isl.c to this file.
22198 (apply_schedule_on_deps): Add checking of the ux's emptiness.
22199 (carries_deps): Add checking of the x's value.
22200 * graphite-optimize-isl.c: Move the defenition of the
22201 scop_get_dependences to graphite-dependences.c.
22202 * graphite-poly.h: Add declarations of scop_get_dependences
22203 and carries_deps.
22204
22205 2014-08-04 Rohit <rohitarulraj@freescale.com>
22206
22207 PR target/60102
22208 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
22209 names.
22210 (alt_reg_names): Likewise.
22211 (rs6000_dwarf_register_span): For SPE high registers, replace
22212 dwarf register numbers with GCC hard register numbers.
22213 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
22214 (rs6000_dbx_register_number): For SPE high registers, return dwarf
22215 register number for the corresponding GCC hard register number.
22216 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
22217 newly added GCC hard register numbers for SPE high registers.
22218 (DWARF_FRAME_REGISTERS): Likewise.
22219 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
22220 (DWARF_FRAME_REGNUM): Likewise.
22221 (FIXED_REGISTERS): Likewise.
22222 (CALL_USED_REGISTERS): Likewise.
22223 (CALL_REALLY_USED_REGISTERS): Likewise.
22224 (REG_ALLOC_ORDER): Likewise.
22225 (enum reg_class): Likewise.
22226 (REG_CLASS_NAMES): Likewise.
22227 (REG_CLASS_CONTENTS): Likewise.
22228 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
22229
22230 2014-08-04 Richard Biener <rguenther@suse.de>
22231
22232 * gimple-fold.h (gimple_fold_builtin): Remove.
22233 * gimple-fold.c (gimple_fold_builtin): Make static.
22234 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
22235 fold_stmt, not gimple_fold_builtin.
22236
22237 2014-08-04 Martin Liska <mliska@suse.cz>
22238
22239 * cgraph.h (csi_end_p): Removed.
22240 (csi_next): Likewise.
22241 (csi_node): Likewise.
22242 (csi_start): Likewise.
22243 (cgraph_node_in_set_p): Likewise.
22244 (cgraph_node_set_size): Likewise.
22245 (vsi_end_p): Likewise.
22246 (vsi_next): Likewise.
22247 (vsi_node): Likewise.
22248 (vsi_start): Likewise.
22249 (varpool_node_set_size): Likewise.
22250 (cgraph_node_set_nonempty_p): Likewise.
22251 (varpool_node_set_nonempty_p): Likewise.
22252 * cgraphunit.c (cgraph_process_new_functions): vec replaces
22253 cgraph_node_set.
22254 * ipa-inline-transform.c: Likewise.
22255 * ipa-utils.c (cgraph_node_set_new): Removed.
22256 (cgraph_node_set_add): Likewise.
22257 (cgraph_node_set_remove): Likewise.
22258 (cgraph_node_set_find): Likewise.
22259 (dump_cgraph_node_set): Likewise.
22260 (debug_cgraph_node_set): Likewise.
22261 (free_cgraph_node_set): Likewise.
22262 (varpool_node_set_new): Likewise.
22263 (varpool_node_set_add): Likewise.
22264 (varpool_node_set_remove): Likewise.
22265 (varpool_node_set_find): Likewise.
22266 (dump_varpool_node_set): Likewise.
22267 (free_varpool_node_set): Likewise.
22268 (debug_varpool_node_set): Likewise.
22269 * tree-emutls.c (struct tls_var_data):
22270 (emutls_index): Removed.
22271 (emutls_decl): Likewise.
22272 (gen_emutls_addr): Function implementation uses newly added
22273 hash_map<varpool_node *, tls_var_data>.
22274 (clear_access_vars): Likewise.
22275 (create_emultls_var): Likewise.
22276 (ipa_lower_emutls): Likewise.
22277 (reset_access): New function.
22278
22279 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
22280
22281 * config/i386/i386.c (ix86_option_override_internal): Add
22282 PTA_RDRND and PTA_MOVBE for bdver4.
22283
22284 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22285 James Greenhalgh <james.greenhalgh@arm.com>
22286
22287 * doc/md.texi (clrsb): Document.
22288 (clz): Change reference to x into operand 1.
22289 (ctz): Likewise.
22290 (popcount): Likewise.
22291
22292 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22293
22294 PR target/61713
22295 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
22296 move to subtarget in serial version if result is ignored.
22297
22298 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22299 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22300
22301 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
22302 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
22303 (sched_analyze_insn): Update use of try_group_insn to
22304 sched_macro_fuse_insns.
22305 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
22306 arguments that are not conditional jumps.
22307
22308 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
22309
22310 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
22311 family information. Handle BTVER2 cpu with cpuid family value.
22312
22313 2014-08-04 Tom de Vries <tom@codesourcery.com>
22314
22315 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
22316 (glibc_2_11_or_earlier): Document effective-target keywords.
22317
22318 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
22319
22320 * ipa-devirt.c (odr_type_warn_count): Add type.
22321 (possible_polymorphic_call_targets): Set it.
22322 (ipa_devirt): Use it.
22323
22324 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
22325
22326 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
22327 Document.
22328 * ipa-devirt.c: Include hash-map.h
22329 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
22330 (clear_speculation): Break out of ...
22331 (get_class_context): ... here; speed up handling obviously useless
22332 speculations.
22333 (odr_type_warn_count, decl_warn_count): New structures.
22334 (final_warning_record): New structure.
22335 (final_warning_records): New static variable.
22336 (possible_polymorphic_call_targets): Cleanup handling of
22337 speculative info; do not build speculation when user do not care;
22338 record info about warnings when asked for.
22339 (add_decl_warning): New function.
22340 (type_warning_cmp): New function.
22341 (decl_warning_cmp): New function.
22342 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
22343 (gate): Enable pass when warnings are requested.
22344 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
22345 options.
22346
22347 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
22348
22349 * hash-map.h (default_hashmap_traits::mark_key_deleted):
22350 Fix cast.
22351 (hash_map::remove): New method.
22352 (hash_map::traverse): New method.
22353 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
22354 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
22355 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
22356 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
22357 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
22358 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
22359 pointer_map.
22360
22361 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
22362
22363 * hash-set.h: new File.
22364 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
22365 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
22366 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
22367 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
22368 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
22369 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
22370 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
22371 varpool.c: Use hash_set instead of pointer_set.
22372
22373 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
22374
22375 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
22376
22377 2014-08-01 Jiong Wang <jiong.wang@arm.com>
22378
22379 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
22380 for frame access when strict_p is false.
22381
22382 2014-08-01 Renlin Li <renlin.li@arm.com>
22383 2014-08-01 Jiong Wang <jiong.wang@arm.com>
22384
22385 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
22386 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
22387 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
22388 Declaration.
22389 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
22390 predicate.
22391 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
22392 aarch64_mem_pair_offset.
22393
22394 2014-08-01 Jiong Wang <jiong.wang@arm.com>
22395
22396 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
22397 offset.
22398 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
22399 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
22400
22401 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
22402
22403 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
22404
22405 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
22406
22407 PR regression/61510
22408 * cgraphunit.c (analyze_functions): Use get_create rather than get
22409 for decls which are clones of abstract functions.
22410
22411 2014-08-01 Martin Liska <mliska@suse.cz>
22412
22413 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
22414 * ipa-prop.h (count_formal_params): Global function created from static.
22415 * ipa-prop.c (count_formal_params): Likewise.
22416 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
22417 profiles for semantically equivalent functions.
22418 * passes.c (do_per_function): If we load body of a function
22419 during WPA, this condition should behave same.
22420 * varpool.c (ctor_for_folding): More tolerant assert for variable
22421 aliases created during WPA.
22422
22423 2014-08-01 Martin Liska <mliska@suse.cz>
22424
22425 * doc/invoke.texi (Options That Control Optimization): Documentation
22426 for -foptimize-strlen introduced. Optimization levels default options
22427 fixed.
22428
22429 2014-08-01 Jakub Jelinek <jakub@redhat.com>
22430
22431 * opts.c (common_handle_option): Handle -fsanitize=alignment.
22432 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
22433 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
22434 type to bool.
22435 * stor-layout.h (min_align_of_type): New prototype.
22436 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
22437 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
22438 check.
22439 * ubsan.c: Include builtins.h.
22440 (ubsan_expand_bounds_ifn): Change return type to bool,
22441 always return true.
22442 (ubsan_expand_null_ifn): Change return type to bool, change
22443 argument to gimple_stmt_iterator *. Handle both null and alignment
22444 sanitization, take type from ckind argument's type rather than
22445 first argument.
22446 (instrument_member_call): Removed.
22447 (instrument_mem_ref): Remove t argument, add mem and base arguments.
22448 Handle both null and alignment sanitization, don't say whole
22449 struct access is member access. Build 3 argument IFN_UBSAN_NULL
22450 call instead of 2 argument.
22451 (instrument_null): Adjust instrument_mem_ref caller. Don't
22452 instrument calls here.
22453 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
22454 like SANITIZE_NULL.
22455 * stor-layout.c (min_align_of_type): New function.
22456 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
22457 Or it into SANITIZE_UNDEFINED.
22458 * doc/invoke.texi (-fsanitize=alignment): Document.
22459
22460 2014-07-31 Andi Kleen <ak@linux.intel.com>
22461
22462 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
22463
22464 2014-07-31 Andi Kleen <ak@linux.intel.com>
22465
22466 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
22467 inchash.
22468 (vn_reference_compute_hash): Dito.
22469 (vn_nary_op_compute_hash): Dito.
22470 (vn_phi_compute_hash): Dito.
22471 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
22472
22473 2014-07-31 Andi Kleen <ak@linux.intel.com>
22474
22475 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
22476 Rename to inchash:add_expr_commutative. Convert to inchash.
22477 (iterative_hash_hashable_expr): Rename to
22478 inchash:add_hashable_expr. Convert to inchash.
22479 (avail_expr_hash): Dito.
22480
22481 2014-07-31 Andi Kleen <ak@linux.intel.com>
22482
22483 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
22484 Convert to inchash.
22485
22486 2014-07-31 Andi Kleen <ak@linux.intel.com>
22487
22488 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
22489
22490 2014-07-31 Andi Kleen <ak@linux.intel.com>
22491
22492 * Makefile.in (OBJS): Add rtlhash.o
22493 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
22494 (loc_checksum): Dito.
22495 (loc_checksum_ordered): Dito.
22496 (hash_loc_operands): Dito.
22497 (hash_locs): Dito.
22498 (hash_loc_list): Dito.
22499 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
22500 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
22501 * rtlhash.c: New file.
22502 * rtlhash.h: New file.
22503
22504 2014-07-31 Andi Kleen <ak@linux.intel.com>
22505
22506 * inchash.h (inchash): Change inchash class to namespace.
22507 (class hash): ... Rename from inchash.
22508 (add_object): Move from macro to class template.
22509 * lto-streamer-out.c (hash_tree): Change inchash
22510 to inchash::hash.
22511 * tree.c (build_type_attribute_qual_variant): Dito.
22512 (type_hash_list): Dito.
22513 (attribute_hash_list): Dito.
22514 (iterative_hstate_expr): Rename to inchash::add_expr
22515 (build_range_type_1): Change inchash to inchash::hash
22516 and use hash::add_expr.
22517 (build_array_type_1): Dito.
22518 (build_function_type): Dito
22519 (build_method_type_directly): Dito.
22520 (build_offset_type): Dito.
22521 (build_complex_type): Dito.
22522 (make_vector_type): Dito.
22523 * tree.h (iterative_hash_expr): Dito.
22524
22525 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
22526
22527 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
22528
22529 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
22530
22531 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
22532 correct alphabetical position.
22533 (vpaddd_f64): Rewrite using builtins.
22534 (vpaddd_s64): Move to correct alphabetical position.
22535 (vpaddd_u64): New.
22536
22537 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
22538
22539 PR target/61844
22540 * config/sh/sh.c (sh_legitimate_address_p,
22541 sh_legitimize_reload_address): Handle reg+reg address modes when
22542 ALLOW_INDEXED_ADDRESS is false.
22543 * config/sh/predicates.md (general_movsrc_operand,
22544 general_movdst_operand): Likewise.
22545
22546 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
22547
22548 * config/aarch64/aarch64-builtins.c
22549 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
22550 BYTES_BIG_ENDIAN.
22551
22552 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
22553
22554 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
22555 the generated mask based on BYTES_BIG_ENDIAN.
22556 (aarch64_simd_check_vect_par_cnst_half): New.
22557 * config/aarch64/aarch64-protos.h
22558 (aarch64_simd_check_vect_par_cnst_half): New.
22559 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
22560 the check out to aarch64_simd_check_vect_par_cnst_half.
22561 (vect_par_cnst_lo_half): Likewise.
22562 * config/aarch64/aarch64-simd.md
22563 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
22564 (move_hi_quad_<mode>): Always generate a low mask.
22565
22566 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22567
22568 * doc/invoke.texi (AVR Options): Add documentation about
22569 __AVR_DEVICE_NAME__ built-in macro.
22570
22571 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
22572
22573 PR target/61948
22574 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
22575 constraints are satisfied.
22576 (<shift>di3_neon): Likewise.
22577
22578 2014-07-31 Richard Biener <rguenther@suse.de>
22579
22580 PR tree-optimization/61964
22581 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
22582 by structural equality.
22583
22584 2014-07-31 Yury Gribov <y.gribov@samsung.com>
22585
22586 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
22587 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
22588 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
22589 New enums.
22590 * gcc.c (sanitize_spec_function): Support new option.
22591 (SANITIZER_SPEC): Remove now redundant check.
22592 * opts.c (common_handle_option): Support new option.
22593 (finish_options): Check for incompatibilities.
22594 * toplev.c (process_options): Split userspace-specific checks.
22595
22596 2014-07-31 Richard Biener <rguenther@suse.de>
22597
22598 * lto-streamer.h (struct output_block): Remove global.
22599 (struct data_in): Remove labels, num_named_labels and
22600 num_unnamed_labels.
22601 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
22602 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
22603
22604 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
22605
22606 PR c++/60517
22607 * common.opt (-Wreturn-local-addr): Moved from c.opt.
22608 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
22609 (isolate_path): New argument to avoid inserting a trap.
22610 (find_implicit_erroneous_behaviour): Handle returning the address
22611 of a local variable.
22612 (find_explicit_erroneous_behaviour): Likewise.
22613
22614 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
22615
22616 PR lto/61868
22617 * toplev.c (init_random_seed): Move piece of code never called to
22618 set_random_seed.
22619 (set_random_seed): see above.
22620
22621 2014-07-31 Tom de Vries <tom@codesourcery.com>
22622
22623 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
22624
22625 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
22626
22627 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
22628 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
22629
22630 2014-07-31 Richard Biener <rguenther@suse.de>
22631
22632 * data-streamer.h (streamer_write_data_stream): Declare here,
22633 renamed from ...
22634 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
22635 * lto-cgraph.c (lto_output_node): Adjust.
22636 (lto_output_varpool_node): Likewise.
22637 * data-streamer-out.c (streamer_string_index): Likewise.
22638 (streamer_write_data_stream, lto_append_block): Move from ...
22639 * lto-section-out.c (lto_output_data_stream,
22640 lto_append_block): ... here.
22641
22642 2014-07-30 Mike Stump <mikestump@comcast.net>
22643
22644 * configure.ac: Also check for popen.
22645 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
22646 * configure: Regenerate.
22647 * config.in: Regenerate.
22648
22649 2014-07-30 Martin Jambor <mjambor@suse.cz>
22650
22651 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
22652 parameter to gimple.
22653
22654 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22655
22656 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
22657 address as second parameter to __tpf_eh_return routine.
22658
22659 2014-07-30 Jiong Wang <jiong.wang@arm.com>
22660
22661 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
22662 Thumb2.
22663
22664 2014-07-30 Tom Tromey <tromey@redhat.com>
22665
22666 PR c/59855
22667 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
22668 * doc/extend.texi (Type Attributes): Document designated_init
22669 attribute.
22670
22671 2014-07-30 Roman Gareev <gareevroman@gmail.com>
22672
22673 * graphite-isl-ast-to-gimple.c:
22674 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
22675 (gcc_expression_from_isl_expression): Pass type to
22676 gcc_expression_from_isl_ast_expr_id.
22677
22678 2014-07-30 Richard Biener <rguenther@suse.de>
22679
22680 * lto-streamer.h (lto_write_data): New function.
22681 * langhooks.c (lhd_append_data): Do not free block.
22682 * lto-section-out.c (lto_write_data): New function writing
22683 raw data to the current section.
22684 (lto_write_stream): Adjust for langhook semantic change.
22685 (lto_destroy_simple_output_block): Write header directly.
22686 * lto-opts.c (lto_write_options): Write options directly.
22687 * lto-streamer-out.c (produce_asm): Write heaeder directly.
22688 (lto_output_toplevel_asms): Likewise.
22689 (copy_function_or_variable): Copy data directly.
22690 (write_global_references): Output index table directly.
22691 (lto_output_decl_state_refs): Likewise.
22692 (write_symbol): Write data directly.
22693 (produce_symtab): Adjust.
22694 (produce_asm_for_decls): Output header and refs directly.
22695
22696 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
22697
22698 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
22699 to speculative_targets
22700 (get_class_context): Fix handling of contextes without outer type;
22701 avoid matching non-polymorphic types in LTO.
22702 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
22703 parameter to speculative_targetsp; handle speculation.
22704 (dump_possible_polymorphic_call_targets): Update dumping.
22705
22706 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
22707
22708 * common.opt (Wodr): Enable by default.
22709
22710 2014-07-29 Olivier Hainque <hainque@adacore.com>
22711
22712 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
22713
22714 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
22715
22716 PR bootstrap/61914
22717 * gengtype.c (strtoken): New function.
22718 (create_user_defined_type): Replace strtok with strtoken.
22719
22720 2014-07-29 Nathan Sidwell <nathan@acm.org>
22721
22722 * gcov-io.c (gcov_var): Make hidden.
22723 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
22724 (gcov_do_dump): Declare.
22725 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
22726
22727 2014-07-29 Martin Jambor <mjambor@suse.cz>
22728
22729 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
22730 parameter to gimple.
22731 (sra_modify_assign): Likewise.
22732
22733 2014-07-29 Richard Biener <rguenther@suse.de>
22734
22735 PR middle-end/52478
22736 * expr.c (expand_expr_real_2): Revert last change.
22737
22738 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
22739
22740 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
22741 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
22742 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
22743 call.
22744 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
22745 (contains_type_p): Forward declare.
22746 (polymorphic_call_target_hasher::hash): Hash speculative info.
22747 (polymorphic_call_target_hasher::equal): Compare speculative info.
22748 (get_class_context): Handle speuclation.
22749 (contains_type_p): Update.
22750 (get_polymorphic_call_info_for_decl): Update.
22751 (walk_ssa_copies): Break out from ...
22752 (get_polymorphic_call_info): ... here; set speculative context
22753 before giving up.
22754 * ipa-prop.c (ipa_write_indirect_edge_info,
22755 ipa_read_indirect_edge_info): Stream speculative context.
22756 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
22757 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
22758 SPECULATIVE_MAYBE_DERIVED_TYPE).
22759 (possible_polymorphic_call_targets overriders): Update.
22760 (dump_possible_polymorphic_call_targets overriders): Update.
22761 (dump_possible_polymorphic_call_target_p overriders): Update.
22762
22763 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
22764
22765 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
22766 ipa-devirt path; fix thinko there.
22767
22768 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
22769
22770 * config/i386/i386.c (ix86_return_in_memory): Replace one
22771 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
22772
22773 2014-07-28 Marek Polacek <polacek@redhat.com>
22774
22775 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
22776
22777 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
22778
22779 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
22780 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
22781 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
22782 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
22783 (USE_LD_AS_NEEDED): Likewise.
22784 (ASM_APP_ON): Likewise.
22785 (ASM_APP_OFF): Likewise.
22786 (TARGET_POSIX_IO): Likewise.
22787 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
22788 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
22789 (USE_LD_AS_NEEDED): Likewise.
22790 (ASM_APP_ON): Likewise.
22791 (ASM_APP_OFF): Likewise.
22792 (TARGET_POSIX_IO): Likewise.
22793
22794 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
22795
22796 PR middle-end/61734
22797 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
22798 operators other than the equality operators.
22799
22800 2014-07-28 Richard Biener <rguenther@suse.de>
22801
22802 PR middle-end/52478
22803 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
22804 sure to register SImode ones, not only >= word_mode ones.
22805 * expr.c (expand_expr_real_2): When expanding -ftrapv
22806 binops do not use OPTAB_LIB_WIDEN.
22807
22808 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
22809
22810 PR middle-end/61919
22811 * tree-outof-ssa.c (insert_partition_copy_on_edge)
22812 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
22813 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
22814 inserting them in the insn stream.
22815
22816 2014-07-28 Marek Polacek <polacek@redhat.com>
22817
22818 PR middle-end/61913
22819 * common.opt (Wodr): Add Var.
22820
22821 2014-07-28 Richard Biener <rguenther@suse.de>
22822
22823 PR tree-optimization/61921
22824 * tree-ssa-structalias.c (create_variable_info_for_1): Check
22825 if there is a varpool node before dereferencing it.
22826
22827 2014-07-28 Roman Gareev <gareevroman@gmail.com>
22828
22829 * graphite-sese-to-poly.c:
22830 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
22831 id of the pbb), which contains pointer to the pbb1.
22832
22833 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
22834
22835 2014-07-28 Roman Gareev <gareevroman@gmail.com>
22836
22837 * graphite-isl-ast-to-gimple.c:
22838 (graphite_create_new_guard): New function.
22839 (translate_isl_ast_node_if): New function.
22840 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
22841
22842 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
22843
22844 2014-07-27 Anthony Green <green@moxielogic.com>
22845
22846 * config.gcc: Add moxie-*-moxiebox* configuration.
22847 * config/moxie/moxiebox.h: New file.
22848
22849 2014-07-26 Andrew Pinski <apinski@cavium.com>
22850
22851 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
22852 from the read only register.
22853
22854 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
22855
22856 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
22857 as the allocation class if it isn't likely to be spilled.
22858
22859 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
22860
22861 * rtl.h (tls_referenced_p): Declare.
22862 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
22863 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
22864 (mips_cannot_force_const_mem): Use tls_referenced_p.
22865 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
22866 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
22867 instead of pa_tls_referenced_p.
22868 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
22869 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
22870 (pa_legitimate_constant_p): Likewise.
22871 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
22872 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
22873 (rs6000_cannot_force_const_mem, rs6000_emit_move)
22874 (rs6000_address_for_altivec): Use tls_referenced_p instead of
22875 rs6000_tls_referenced_p.
22876 (rs6000_tls_symbol_ref_1): Delete.
22877
22878 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
22879
22880 PR target/44551
22881 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
22882 Optimize inverse of a VEC_CONCAT.
22883
22884 2014-07-25 Xinliang David Li <davidxl@google.com>
22885
22886 * params.def: New parameter.
22887 * coverage.c (get_coverage_counts): Check new flag.
22888 (coverage_compute_profile_id): Check new flag.
22889 (coverage_begin_function): Check new flag.
22890 (coverage_end_function): Check new flag.
22891 * value-prof.c (coverage_node_map_initialized_p): New function.
22892 (init_node_map): Populate map with all functions.
22893 * doc/invoke.texi: Document new parameter.
22894
22895 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
22896 Richard Biener <rguenther@suse.de>
22897
22898 * lto-streamer-out.c (struct sccs): Turn to ...
22899 (class DFS): ... this one; refactor the DFS walk so it can
22900 be re-done on per-SCC basis.
22901 (DFS::DFS): New constructor.
22902 (DFS::~DFS): New destructor.
22903 (hash_tree): Add new MAP argument holding in-SCC hash values;
22904 remove POINTER_TYPE hashing hack.
22905 (scc_entry_compare): Rename to ...
22906 (DFS::scc_entry_compare): ... this one.
22907 (hash_scc): Rename to ...
22908 (DFS::hash_scc): ... this one; pass output_block instead
22909 of streamer_cache; work harder to get unique and stable SCC
22910 hashes.
22911 (DFS_write_tree): Rename to ...
22912 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
22913 (lto_output_tree): Update.
22914
22915 2014-07-25 Andi Kleen <ak@linux.intel.com>
22916
22917 * lto-streamer-out.c (hash_tree): Convert to inchash.
22918
22919 2014-07-25 Andi Kleen <ak@linux.intel.com>
22920
22921 * tree.c (build_type_attribute_qual_variant): Use inchash.
22922 (type_hash_list): Dito.
22923 (attribute_hash_list): Dito
22924 (iterative_hstate_expr): Dito.
22925 (iterative_hash_expr): Dito.
22926 (build_range_type_1): Dito.
22927 (build_array_type_1): Dito.
22928 (build_function_type): Dito.
22929 (build_method_type_directly): Dito.
22930 (build_offset_type): Dito.
22931 (build_complex_type): Dito.
22932 (make_vector_type): Dito.
22933 * tree.h (iterative_hash_expr): Add compat wrapper.
22934 (iterative_hstate_expr): Add.
22935
22936 2014-07-25 Andi Kleen <ak@linux.intel.com>
22937
22938 * Makefile.in (OBJS): Add inchash.o.
22939 (PLUGIN_HEADERS): Add inchash.h.
22940 * ipa-devirt.c: Include inchash.h.
22941 * lto-streamer-out.c: Dito.
22942 * tree-ssa-dom.c: Dito.
22943 * tree-ssa-pre.c: Dito.
22944 * tree-ssa-sccvn.c: Dito.
22945 * tree-ssa-tail-merge.c: Dito.
22946 * asan.c: Dito.
22947 * tree.c (iterative_hash_hashval_t): Move to ...
22948 (iterative_hash_host_wide_int): Move to ...
22949 * inchash.c: Here. New file.
22950 * tree.h (iterative_hash_hashval_t): Move to ...
22951 (iterative_hash_host_wide_int): Move to ...
22952 * inchash.h: Here. New file.
22953
22954 2014-07-25 Richard Biener <rguenther@suse.de>
22955
22956 PR middle-end/61762
22957 PR middle-end/61894
22958 * fold-const.c (native_encode_int): Add and handle offset
22959 parameter to do partial encodings of expr.
22960 (native_encode_fixed): Likewise.
22961 (native_encode_real): Likewise.
22962 (native_encode_complex): Likewise.
22963 (native_encode_vector): Likewise.
22964 (native_encode_string): Likewise.
22965 (native_encode_expr): Likewise.
22966 * fold-const.c (native_encode_expr): Add offset parameter
22967 defaulting to -1.
22968 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
22969 (fold_ctor_reference): Handle all reads from tcc_constant
22970 ctors.
22971
22972 2014-07-25 Richard Biener <rguenther@suse.de>
22973
22974 * tree-inline.c (estimate_move_cost): Mark speed_p argument
22975 as possibly unused.
22976
22977 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22978
22979 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
22980
22981 2014-07-24 Kyle McMartin <kyle@redhat.com>
22982
22983 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
22984
22985 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22986
22987 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
22988 Add prototype.
22989 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
22990 function.
22991 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
22992 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
22993 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
22994
22995 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22996
22997 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
22998 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
22999 aggregate types. Instead, *all* aggregate types, except for single-
23000 element or homogeneous float/vector aggregates, are quadword-aligned
23001 if required by their type alignment. Issue -Wpsabi note when a type
23002 is now treated differently than before.
23003
23004 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23005
23006 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
23007 does not fit fully into floating-point registers, and there is still
23008 space in the register parameter area, use GPRs to pass those parts
23009 of the argument. Issue -Wpsabi note if any parameter is now treated
23010 differently than before.
23011 (rs6000_arg_partial_bytes): Update.
23012
23013 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
23014
23015 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
23016
23017 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
23018
23019 * rtl.h (target_rtl): Remove lang_dependent_initialized.
23020 * toplev.c (initialize_rtl): Don't use it. Move previously
23021 "language-dependent" calls to...
23022 (backend_init): ...here.
23023 (lang_dependent_init_target): Don't set lang_dependent_initialized.
23024 Assert that RTL initialization hasn't happend yet.
23025
23026 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
23027
23028 PR rtl-optimization/61629
23029 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
23030 they have already been initialized.
23031
23032 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
23033
23034 PR middle-end/61268
23035 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
23036 DECL_INCOMING_RTL and entry_parm.
23037 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
23038 * calls.c (load_register_parameters): Likewise argument values.
23039 (emit_library_call_value_1, store_one_arg): Likewise argument
23040 save areas.
23041 * config/i386/i386.c (assign_386_stack_local): Likewise the local
23042 stack slot.
23043 * explow.c (validize_mem): Modify the argument in-place.
23044
23045 2014-07-24 Jiong Wang <jiong.wang@arm.com>
23046
23047 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
23048 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
23049
23050 2014-07-24 Jiong Wang <jiong.wang@arm.com>
23051
23052 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
23053 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
23054
23055 2014-07-24 Jiong Wang <jiong.wang@arm.com>
23056
23057 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
23058 (aarch64_save_callee_saves): New parameter "skip_wb".
23059 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
23060
23061 2014-07-24 Jiong Wang <jiong.wang@arm.com>
23062
23063 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
23064 "wb_candidate2".
23065 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
23066
23067 2014-07-24 Roman Gareev <gareevroman@gmail.com>
23068
23069 * graphite-isl-ast-to-gimple.c:
23070 (graphite_create_new_loop): Add calling of isl_id_free to properly
23071 decrement reference counts.
23072
23073 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
23074
23075 2014-07-24 Martin Liska <mliska@suse.cz>
23076 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
23077 function used.
23078 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
23079 (rs6000_code_end): Likewise.
23080
23081 2014-07-24 Martin Liska <mliska@suse.cz>
23082
23083 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
23084 symtab_node funtion used.
23085 (rs6000_xcoff_declare_object_name): Likewise.
23086
23087 2014-07-24 Martin Liska <mliska@suse.cz>
23088
23089 * cgraphunit.c (compile): Correct function used.
23090
23091 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
23092
23093 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
23094 as non-indexable.
23095
23096 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
23097
23098 PR lto/61802
23099 * varasm.c (bss_initializer_p): Handle offlined ctors.
23100 (align_variable, get_variable_align): Likewise.
23101 (make_decl_one_only): Likewise.
23102 (default_binds_local_p_1): Likewise.
23103 (decl_binds_to_current_def_p): Likewise.
23104 (get_variable_section): Get constructor if it is offlined.
23105 (assemble_variable_contents): Sanity check that the caller
23106 streamed in the ctor in LTO.
23107
23108 2014-07-24 Roman Gareev <gareevroman@gmail.com>
23109
23110 * graphite-isl-ast-to-gimple.c:
23111 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
23112 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
23113 isl_ast_op_pdiv_r to the different case.
23114
23115 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
23116
23117 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23118
23119 PR middle-end/61876
23120 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
23121 when flag_errno_math is on.
23122
23123 2014-07-24 Martin Liska <mliska@suse.cz>
23124
23125 * cgraph.h (varpool_node):
23126 (availability get_availability (void)):
23127 created from cgraph_variable_initializer_availability
23128 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
23129 created from: cgraph_variable_initializer_availability
23130 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
23131 (void finalize_named_section_flags (void)):
23132 created from varpool_finalize_named_section_flags
23133 (bool assemble_decl (void)): created from varpool_assemble_decl
23134 (void analyze (void)): created from varpool_analyze_node
23135 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
23136 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
23137 (void remove_initializer (void)): created from varpool_remove_initializer
23138 (tree get_constructor (void)): created from varpool_get_constructor
23139 (bool externally_visible_p (void)): created from varpool_externally_visible_p
23140 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
23141 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
23142 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
23143 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
23144 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
23145 (static bool output_variables (void)): created from varpool_output_variables
23146 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
23147 created from varpool_extra_name_alias
23148 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
23149 (static void dump_varpool (FILE *f)): created from dump_varpool
23150 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
23151 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
23152 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
23153 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
23154 (void assemble_aliases (void)): created from assemble_aliases
23155
23156 2014-07-24 Martin Liska <mliska@suse.cz>
23157
23158 * cgraph.h (symtab_node):
23159 (void register_symbol (void)): created from symtab_register_node
23160 (void remove (void)): created from symtab_remove_node
23161 (void dump (FILE *f)): created from dump_symtab_node
23162 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
23163 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
23164 (struct ipa_ref *add_reference (symtab_node *referred_node,
23165 enum ipa_ref_use use_type)): created from add_reference
23166 (struct ipa_ref *add_reference (symtab_node *referred_node,
23167 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
23168 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
23169 gimple stmt)): created from maybe_add_reference
23170 (bool semantically_equivalent_p (symtab_node *target)): created from
23171 symtab_semantically_equivalent_p
23172 (void remove_from_same_comdat_group (void)): created from
23173 remove_from_same_comdat_group
23174 (void add_to_same_comdat_group (symtab_node *old_node)): created from
23175 symtab_add_to_same_comdat_group
23176 (void dissolve_same_comdat_group_list (void)): created from
23177 symtab_dissolve_same_comdat_group_list
23178 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
23179 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
23180 created from symtab_alias_ultimate_target
23181 (inline symtab_node *next_defined_symbol (void)): created from
23182 symtab_next_defined_symbol
23183 (bool resolve_alias (symtab_node *target)): created from
23184 symtab_resolve_alias
23185 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
23186 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
23187 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
23188 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
23189 (void set_section (const char *section)): created from set_section_1
23190 (enum availability get_availability (void)): created from symtab_node_availability
23191 (void make_decl_local (void)): created from symtab_make_decl_local
23192 (bool real_symbol_p (void)): created from symtab_read_node
23193 (can_be_discarded_p (void)): created from symtab_can_be_discarded
23194 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
23195 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
23196 symtab_in_same_comdat_p;
23197 (bool address_taken_from_non_vtable_p (void)): created from
23198 address_taken_from_non_vtable_p
23199 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
23200 (static void dump_table (FILE *)): created from dump_symtab
23201 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
23202 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
23203 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
23204 symtab_used_from_object_file_p
23205 (void dump_base (FILE *)): created from dump_symtab_base
23206 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
23207 (void unregister (void)): created from symtab_unregister_node
23208 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
23209 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
23210 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
23211 symtab_nonoverwritable_alias_1
23212 * cgraph.h (cgraph_node):
23213 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
23214 created from cgraph_remove_node_and_inline_clones
23215 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
23216 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
23217 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
23218 (cgraph_node *function_symbol (enum availability *avail = NULL)):
23219 created from cgraph_function_node
23220 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
23221 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
23222 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
23223 created from cgraph_create_clone
23224 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
23225 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
23226 created from cgraph_create_virtual_clone
23227 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
23228 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
23229 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
23230 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
23231 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
23232 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
23233 created from cgraph_function_version_info
23234 (struct cgraph_function_version_info *insert_new_function_version (void)):
23235 created from insert_new_cgraph_node_version
23236 (struct cgraph_function_version_info *function_version (void)): created from
23237 get_cgraph_node_version
23238 (void analyze (void)): created from analyze_function
23239 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
23240 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
23241 tree real_alias) cgraph_add_thunk
23242 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
23243 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
23244 created from cgraph_function_or_thunk_node
23245 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
23246 created from expand_thunk
23247 (void reset (void)): created from cgraph_reset_node
23248 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
23249 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
23250 (void remove (void)): created from cgraph_remove_node
23251 (void dump (FILE *f)): created from dump_cgraph_node
23252 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
23253 (bool get_body (void)): created from cgraph_get_body
23254 (void release_body (void)): created from cgraph_release_function_body
23255 (void unnest (void)): created from cgraph_unnest_node
23256 (void make_local (void)): created from cgraph_make_node_local
23257 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
23258 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
23259 gcov_type count, int freq)): created from cgraph_create_edge
23260 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
23261 gcov_type count, int freq)): created from cgraph_create_indirect_edge
23262 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
23263 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
23264 created from cgraph_create_edge_including_clones
23265 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
23266 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
23267 (void remove_callers (void)): created from cgraph_node_remove_callers
23268 (void remove_callees (void)): created from cgraph_node_remove_callees
23269 (enum availability get_availability (void)): created from cgraph_function_body_availability
23270 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
23271 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
23272 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
23273 (void call_duplication_hooks (cgraph_node *node2)): created from
23274 cgraph_call_node_duplication_hooks
23275 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
23276 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
23277 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
23278 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
23279 (void call_function_insertion_hooks (void)):
23280 created from cgraph_call_function_insertion_hooks
23281 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
23282 (bool local_p (void)): created from cgraph_local_node
23283 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
23284 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
23285 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
23286 (inline bool only_called_directly_or_aliased_p (void)):
23287 created from cgraph_only_called_directly_or_aliased_p
23288 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
23289 created from cgraph_will_be_removed_from_program_if_no_direct_calls
23290 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
23291 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
23292 (bool can_remove_if_no_direct_calls_p (void)):
23293 created from cgraph_can_remove_if_no_direct_calls_p
23294 (inline bool has_gimple_body_p (void)):
23295 created from cgraph_function_with_gimple_body_p
23296 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
23297 (static void dump_cgraph (FILE *f)): created from dump_cgraph
23298 (static inline void debug_cgraph (void)): created from debug_cgraph
23299 (static void record_function_versions (tree decl1, tree decl2)):
23300 created from record_function_versions
23301 (static void delete_function_version (tree decl)):
23302 created from delete_function_version
23303 (static void add_new_function (tree fndecl, bool lowered)):
23304 created from cgraph_add_new_function
23305 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
23306 (static cgraph_node * create (tree decl)): created from cgraph_create_node
23307 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
23308 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
23309 (static cgraph_node *get_for_asmname (tree asmname)):
23310 created from cgraph_node_for_asm
23311 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
23312 created from cgraph_same_body_alias
23313 (static bool used_from_object_file_p_worker (cgraph_node *node,
23314 void *): new function
23315 (static bool non_local_p (cgraph_node *node, void *)):
23316 created from cgraph_non_local_node_p_1
23317 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
23318 created from verify_cgraph
23319 (static bool make_local (cgraph_node *node, void *)):
23320 created from cgraph_make_node_local
23321 (static cgraph_node *create_alias (tree alias, tree target)):
23322 created from cgraph_create_function_alias
23323 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
23324 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
23325 created from cgraph_create_edge_1
23326 * cgraph.h (varpool_node):
23327 (void remove (void)): created from varpool_remove_node
23328 (void dump (FILE *f)): created from dump_varpool_node
23329
23330 2014-07-24 Richard Biener <rguenther@suse.de>
23331
23332 PR ipa/61823
23333 * tree-ssa-structalias.c (create_variable_info_for_1):
23334 Use varpool_get_constructor.
23335 (create_variable_info_for): Likewise.
23336
23337 2014-07-24 Jiong Wang <jiong.wang@arm.com>
23338
23339 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
23340 subtract outgoing area size when restoring stack_pointer_rtx.
23341
23342 2014-07-24 Nick Clifton <nickc@redhat.com>
23343
23344 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
23345 that operations are taking place in parallel.
23346 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
23347
23348 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
23349
23350 * omp-low.c (extract_omp_for_data): Add missing break statement.
23351
23352 2014-07-24 Richard Biener <rguenther@suse.de>
23353
23354 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
23355 * tree-inline.c (estimate_move_cost): Add speed_p parameter
23356 and adjust MOVE_RATIO query accordingly.
23357 (estimate_num_insns): Adjust callers.
23358 * ipa-prop.c (ipa_populate_param_decls): Likewise.
23359 * ipa-cp.c (gather_context_independent_values,
23360 estimate_local_effects): Likewise.
23361 * ipa-split.c (consider_split): Likewise.
23362
23363 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
23364
23365 * config/i386/driver-i386.c: Remove names of unused arguments and
23366 unnecessary unused attributes.
23367 * config/i386/host-mingw32.c: Likewise.
23368 * config/i386/i386.c: Likewise.
23369 * config/i386/winnt-stubs.c: Likewise.
23370 * config/i386/winnt.c: Likewise.
23371
23372 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23373
23374 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
23375 (aarch64_gen_loadwb_pair): New helper function.
23376 (aarch64_expand_epilogue): Simplify code using new helper functions.
23377 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
23378
23379 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23380
23381 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
23382 (aarch64_gen_storewb_pair): New helper function.
23383 (aarch64_expand_prologue): Simplify code using new helper functions.
23384 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
23385
23386 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23387
23388 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
23389 Rename to aarch64_save_callee_saves, remove restore code.
23390 (aarch64_restore_callee_saves): New function.
23391
23392 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23393
23394 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
23395 (aarch64_save_callee_saves): New function to handle reg save
23396 for both core and vectore regs.
23397
23398 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23399
23400 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
23401 (aarch64_gen_store_pair): New helper function.
23402 (aarch64_save_or_restore_callee_save_registers)
23403 (aarch64_save_or_restore_fprs): Use new helper functions.
23404
23405 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23406
23407 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
23408 (aarch64_save_or_restore_callee_save_registers)
23409 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
23410
23411 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23412
23413 * config/aarch64/aarch64.c
23414 (aarch64_save_or_restore_callee_save_registers)
23415 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
23416
23417 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23418
23419 * config/aarch64/aarch64.c
23420 (aarch64_save_or_restore_callee_save_registers)
23421 (aarch64_save_or_restore_fprs): Remove 'increment'.
23422
23423 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23424
23425 * config/aarch64/aarch64.c
23426 (aarch64_save_or_restore_callee_save_registers)
23427 (aarch64_save_or_restore_fprs): Use register offset in
23428 cfun->machine->frame.reg_offset.
23429
23430 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23431
23432 * config/aarch64/aarch64.c
23433 (aarch64_save_or_restore_callee_save_registers)
23434 (aarch64_save_or_restore_fprs): Remove base_rtx.
23435
23436 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23437
23438 * config/aarch64/aarch64.c
23439 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
23440 to 'start_offset'. Remove local variable 'start_offset'.
23441
23442 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23443
23444 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
23445 type to HOST_WIDE_INT.
23446
23447 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23448
23449 * config/aarch64/aarch64.c (aarch64_expand_prologue)
23450 (aarch64_save_or_restore_fprs)
23451 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
23452
23453 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
23454
23455 * config/arm/t-rtems-eabi: Add
23456 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
23457 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
23458 mbig-endian/mthumb/march=armv7-r, and
23459 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
23460 multilibs.
23461
23462 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
23463 Chris Johns <chrisj@rtems.org>
23464 Joel Sherrill <joel.sherrill@oarcorp.com>
23465
23466 * config.gcc: Add nios2-*-rtems*.
23467 * config/nios2/rtems.h: New file.
23468 * gcc/config/nios2/t-rtems: New file.
23469
23470 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
23471
23472 PR target/61396
23473 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
23474 constant numbers, not general constants.
23475 (rs6000_expand_vector_init): Ditto.
23476
23477 2014-07-23 Nathan Sidwell <nathan@acm.org>
23478
23479 * gcov-tool.c (gcov_list): Declare here.
23480 (set_gcov_list): Remove.
23481 (gcov_output_files): Set gcov_list directly.
23482
23483 2014-07-23 Host Schirmeier <horst@schirmeier.com>
23484
23485 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
23486
23487 2014-07-23 Jiong Wang <jiong.wang@arm.com>
23488
23489 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
23490 callee-saved registers are available for padding purpose
23491 and r3 is not mandatory, then prefer use those callee-saved
23492 instead of r3.
23493
23494 2014-07-23 Richard Biener <rguenther@suse.de>
23495
23496 * params.def (PARAM_MAX_COMBINE_INSNS): New.
23497 * combine.c: Include statistics.h and params.h.
23498 (combine_instructions): Guard three and four insn combines
23499 with max-combine-insns value. Record statistics for combines
23500 performed.
23501 * doc/invoke.texi (max-combine-insns): Document new param.
23502
23503 2014-07-23 Roman Gareev <gareevroman@gmail.com>
23504
23505 * graphite-isl-ast-to-gimple.c:
23506 (translate_isl_ast_node_block): New function.
23507 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
23508
23509 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
23510 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
23511
23512 2014-07-23 Roman Gareev <gareevroman@gmail.com>
23513
23514 * graphite-isl-ast-to-gimple.c:
23515 (get_max_schedule_dimensions): New function.
23516 (extend_schedule): Likewise.
23517 (generate_isl_schedule): Add calling of extend_schedule and
23518 get_max_schedule_dimensions.
23519
23520 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23521
23522 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
23523 (case UNSPEC): Handle UNSPEC_RBIT.
23524
23525 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23526
23527 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
23528 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
23529
23530 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23531
23532 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
23533
23534 2014-07-22 Roman Gareev <gareevroman@gmail.com>
23535
23536 * graphite-isl-ast-to-gimple.c:
23537 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
23538 (ivs_params_clear):
23539 (build_iv_mapping): New function.
23540 (translate_isl_ast_node_user): Likewise.
23541 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
23542
23543 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
23544 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
23545 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
23546
23547 2014-07-21 Bin Cheng <bin.cheng@arm.com>
23548
23549 PR target/55701
23550 * config/arm/arm.md (setmem): New pattern.
23551 * config/arm/arm-protos.h (struct tune_params): New fields.
23552 (arm_gen_setmem): New prototype.
23553 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
23554 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
23555 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
23556 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
23557 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
23558 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
23559 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
23560 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
23561 (arm_const_inline_cost): New function.
23562 (arm_block_set_max_insns): New function.
23563 (arm_block_set_non_vect_profit_p): New function.
23564 (arm_block_set_vect_profit_p): New function.
23565 (arm_block_set_unaligned_vect): New function.
23566 (arm_block_set_aligned_vect): New function.
23567 (arm_block_set_unaligned_non_vect): New function.
23568 (arm_block_set_aligned_non_vect): New function.
23569 (arm_block_set_vect, arm_gen_setmem): New functions.
23570
23571 2014-07-21 Bin Cheng <bin.cheng@arm.com>
23572
23573 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
23574
23575 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
23576
23577 PR target/61855
23578 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
23579 out of #ifdef __OPTIMIZE__.
23580
23581 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
23582
23583 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
23584 different trapping status if -fnon-call-exceptions is enabled.
23585
23586 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
23587
23588 * expr.c (store_field): Handle VOIDmode for calls that return values
23589 in multiple locations.
23590
23591 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23592
23593 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
23594 (altivec_vsldoi_<mode>): Likewise.
23595
23596 2014-07-20 Roman Gareev <gareevroman@gmail.com>
23597
23598 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
23599 to the number of characters in the line.
23600
23601 2014-07-20 Roman Gareev <gareevroman@gmail.com>
23602
23603 * graphite-isl-ast-to-gimple.c: Add using of
23604 build_nonstandard_integer_type instead of int128_integer_type_node.
23605
23606 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
23607
23608 * toplev.c (output_stack_usage): Adjust the location of the warning.
23609
23610 2014-07-19 Daniel Cederman <cederman@gaisler.com>
23611
23612 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
23613 (*membar_storeload): Disable for LEON3.
23614
23615 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
23616
23617 PR rtl-optimization/61461
23618 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
23619
23620 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
23621
23622 PR target/61794
23623 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
23624 Fix instruction constraint.
23625 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
23626
23627 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
23628
23629 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
23630
23631 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
23632
23633 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
23634 GNU coding standards.
23635 (nds32_register_move_cost): Likewise.
23636 (nds32_memory_move_cost): Likewise.
23637 (nds32_address_cost): Likewise.
23638
23639 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23640
23641 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
23642
23643 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
23644
23645 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
23646 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
23647 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
23648 (HAVE_sync_compare_and_swapqi): Define.
23649 (HAVE_sync_compare_and_swaphi): Likewise.
23650 (HAVE_sync_compare_and_swapsi): Likewise.
23651
23652 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
23653
23654 * config/mips/p5600.md: Add missing cpu tests.
23655
23656 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23657
23658 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
23659 (vmla_f64): Likewise.
23660 (vfms_f64): Likewise.
23661 (vmls_f64): Likewise.
23662
23663 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23664
23665 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
23666 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
23667
23668 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23669
23670 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
23671 (vmlal_high_lane_s32): Likewise.
23672 (vmlal_high_lane_u16): Likewise.
23673 (vmlal_high_lane_u32): Likewise.
23674 (vmlsl_high_lane_s16): Likewise.
23675 (vmlsl_high_lane_s32): Likewise.
23676 (vmlsl_high_lane_u16): Likewise.
23677 (vmlsl_high_lane_u32): Likewise.
23678
23679 2014-07-17 Terry Guo <terry.guo@arm.com>
23680
23681 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
23682 (alus_reg): Renamed to alus_sreg.
23683 * config/arm/arm-fixed.md: Change type of non-dsp instructions
23684 from alu_reg to alu_sreg. Change type of dsp instructions from
23685 alu_reg to alu_dsp_reg.
23686 * config/arm/thumb1.md: Likewise.
23687 * config/arm/thumb2.md: Likewise.
23688 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
23689 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
23690 with alu_sreg and alus_sreg.
23691 * config/arm/arm1026ejs.md (alu_op): Likewise.
23692 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
23693 * config/arm/arm926ejs.md (9_alu_op): Likewise.
23694 * config/arm/fa526.md (526_alu_op): Likewise.
23695 * config/arm/fa606te.md (606te_alu_op): Likewise.
23696 * config/arm/fa626te.md (626te_alu_op): Likewise.
23697 * config/arm/fa726te.md (726te_alu_op): Likewise.
23698 * config/arm/fmp626.md (mp626_alu_op): Likewise.
23699 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
23700 alu_sreg, alu_dsp_reg and alus_sreg.
23701 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
23702 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
23703 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
23704 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
23705 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
23706 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
23707 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
23708 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
23709 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
23710 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
23711 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
23712 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
23713 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
23714 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
23715 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
23716 alus_reg to alus_sreg.
23717
23718 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
23719
23720 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
23721 infinity format.
23722
23723 2014-07-17 Richard Biener <rguenther@suse.de>
23724
23725 PR rtl-optimization/61801
23726 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
23727 don't set reg_pending_barrier if it appears in a debug-insn.
23728
23729 2014-07-16 DJ Delorie <dj@redhat.com>
23730
23731 * config/rx/rx.c (rx_option_override): Fix alignment values.
23732 (rx_align_for_label): Likewise.
23733
23734 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
23735
23736 PR target/61737.
23737 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
23738 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
23739 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
23740 functions.
23741 (cris_print_index, cris_print_operand, cris_constant_index_p)
23742 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
23743 (cris_address_cost): Ditto last CONSTANT_P.
23744 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
23745 callers changed. Yield cris_offsettable_symbol for non-PIC
23746 constant symbolic expressions including labels. Yield cris_unspec
23747 for all unspecs.
23748 (cris_expand_pic_call_address): New parameter MARKERP. Set its
23749 target to pic_offset_table_rtx for calls that will likely go
23750 through PLT, const0_rtx when they can't. All callers changed.
23751 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
23752 symbolic expressions to be PICified. Remove second, redundant,
23753 assert on can_create_pseudo_p returning non-zero. Use
23754 replace_equiv_address_nv, not replace_equiv_address, for final
23755 operand update.
23756 * config/cris/cris.md ("movsi"): Move variable t to pattern
23757 toplevel. Adjust assert for new cris_symbol_type member. Use
23758 CONSTANT_P instead of CONSTANT_ADDRESS_P.
23759 ("*movsi_internal") <case 9>: Make check for valid unspec operands
23760 for lapc stricter.
23761 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
23762 ("call", "call_value"): Use second incoming operand as a marker
23763 for pic-offset-table-register being used.
23764 ("*expanded_call_non_v32", "*expanded_call_v32")
23765 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
23766 second incoming operand to CALL, match cris_call_type_marker.
23767 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
23768 ("*expanded_call_side"): Ditto. Fix typo in comment.
23769 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
23770 CONSTANT_P.
23771 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
23772 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
23773 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
23774 users changed. Add members cris_offsettable_symbol and cris_unspec.
23775 (cris_symbol_type): Rename from cris_pic_symbol_type.
23776 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
23777 just CONSTANT_P.
23778 * config/cris/cris-protos.h (cris_symbol_type_of,
23779 cris_expand_pic_call_address): Adjust prototypes.
23780 (cris_legitimate_constant_p): New prototype.
23781
23782 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
23783 an existing tmake_file. Don't add t-slibgcc and t-linux.
23784
23785 2014-07-17 Jason Merrill <jason@redhat.com>
23786
23787 PR c++/61623
23788 * symtab.c (symtab_remove_from_same_comdat_group): Also
23789 set_comdat_group to NULL_TREE.
23790 (verify_symtab): Fix diagnostic.
23791
23792 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
23793
23794 PR target/61662
23795 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
23796
23797 2014-07-16 Dodji Seketeli <dodji@redhat.com>
23798
23799 Support location tracking for built-in macro tokens
23800 * input.h (is_location_from_builtin_token): New function declaration.
23801 * input.c (is_location_from_builtin_token): New function definition.
23802 * toplev.c (general_init): Tell libcpp what the pre-defined
23803 spelling location for built-in tokens is.
23804
23805 2014-07-16 Jakub Jelinek <jakub@redhat.com>
23806
23807 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
23808 on the FUNCTION_DECL.
23809
23810 2014-07-16 Richard Biener <rguenther@suse.de>
23811
23812 PR other/61782
23813 * doc/extend.texi (always_inline): Clarify.
23814
23815 2014-07-15 Eric Christopher <echristo@gmail.com>
23816
23817 * doc/invoke.texi (Link Options): Document -z option.
23818
23819 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
23820
23821 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
23822 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
23823
23824 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
23825
23826 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
23827
23828 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
23829
23830 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
23831 varpool_assemble_decl.
23832 * varpool.c (varpool_assemble_decl): Assert that node->definition is
23833 true.
23834
23835 2014-07-15 Michael Matz <matz@suse.de>
23836
23837 PR rtl-optimization/61772
23838 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
23839
23840 2014-07-15 Richard Biener <rguenther@suse.de>
23841
23842 * opts.c (default_options_table): Disable bit-ccp at -Og.
23843
23844 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
23845
23846 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
23847
23848 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
23849
23850 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
23851 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
23852 call langhook for unknown declaration.
23853 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
23854 * tree.h (DECL_ARGUMENTS): Update.
23855 * print-tree.c (print_node): Update.
23856 * tree-core.h (tree_decl_non_common): Remove arguments.
23857 (tree_function_decl): Add arguments.
23858
23859 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
23860
23861 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
23862
23863 2014-07-14 Richard Biener <rguenther@suse.de>
23864
23865 PR tree-optimization/61779
23866 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
23867 simplifying a condition.
23868
23869 2014-07-14 Richard Biener <rguenther@suse.de>
23870
23871 * builtins.c (c_strlen): Make only_value == 2 really only
23872 affect warning generation.
23873
23874 2014-07-14 Richard Biener <rguenther@suse.de>
23875
23876 PR tree-optimization/61757
23877 PR tree-optimization/61783
23878 PR tree-optimization/61787
23879 * tree-ssa-dom.c (record_equality): Revert canonicalization
23880 change and add comment.
23881 (propagate_rhs_into_lhs): Revert previous fix, removing
23882 loop depth restriction again.
23883
23884 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23885
23886 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
23887 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
23888 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
23889 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
23890 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
23891 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
23892 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
23893
23894 2014-07-14 Richard Biener <rguenther@suse.de>
23895
23896 * cgraph.h (decl_in_symtab_p): Make inline.
23897
23898 2014-07-14 Jakub Jelinek <jakub@redhat.com>
23899
23900 PR middle-end/61294
23901 * doc/invoke.texi (-Wmemset-transposed-args): Document.
23902
23903 PR target/61656
23904 * config/i386/i386.c (classify_argument): Don't merge classes above
23905 number of words.
23906
23907 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
23908
23909 * cgraph.h (symtab_node): Add nonzero_address.
23910 (decl_in_symtab_p): Break out from ...
23911 (symtab_get_node): ... here.
23912 * fold-const.c: Include cgraph.h
23913 (tree_single_nonzero_warnv_p): Use symtab to determine
23914 if symbol is non-zero.
23915 * symtab.c (symtab_node::nonzero_address): New method.
23916
23917 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
23918
23919 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
23920 forgotten in previous commit.
23921
23922 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
23923
23924 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
23925 on builtin types.
23926 * ipa-devirt.c: Include stor-layout.h and intl.h
23927 (odr_subtypes_equivalent_p): New function.
23928 (warn_odr): New function.
23929 (warn_type_mismatch): New function.
23930 (odr_types_equivalent_p): New function.
23931 (add_type_duplicate): Use it.
23932 * common.opt (Wodr): New flag.
23933 * doc/invoke.texi (Wodr): Document new warning.
23934
23935 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
23936
23937 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
23938 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
23939 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
23940 (varpool_get_constructor): Push CTORS_IN timevar.
23941 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
23942
23943 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
23944
23945 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
23946 Remove VOID_FTYPE_PUSHORT.
23947 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
23948 Change code to USHORT_FTYPE_VOID.
23949 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
23950 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
23951 (ix86_atomic_assign_expand_fenv): Update for
23952 __builtin_ia32_fnstsw changes.
23953 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
23954 (fnstsw): Change operand 0 to nonimmediate operand.
23955
23956 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
23957
23958 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
23959 (varpool_get_constructor): New function.
23960 (varpool_ctor_useable_for_folding_p): Break out from ...
23961 (ctor_for_folding): ... here; use varpool_get_constructor.
23962 (varpool_assemble_decl): Likewise.
23963 * lto-streamer.h (struct output_block): Turn cgraph_node
23964 to symbol filed.
23965 (lto_input_variable_constructor): Declare.
23966 * ipa-visibility.c (function_and_variable_visibility): Use
23967 varpool_get_constructor.
23968 * cgraph.h (varpool_get_constructor): Declare.
23969 (varpool_ctor_useable_for_folding_p): New function.
23970 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
23971 parameter; return error_mark_node for non-trivial constructors.
23972 (lto_write_tree_1, DFS_write_tree): Update use of
23973 get_symbol_initial_value.
23974 (output_function): Update initialization of symbol.
23975 (output_constructor): New function.
23976 (copy_function): Rename to ..
23977 (copy_function_or_variable): ... this one; handle vars too.
23978 (lto_output): Output variable sections.
23979 * lto-streamer-in.c (input_constructor): New function.
23980 (lto_read_body): Rename from ...
23981 (lto_read_body_or_constructor): ... this one; handle vars too.
23982 (lto_input_variable_constructor): New function.
23983 * ipa-prop.c (ipa_prop_write_jump_functions,
23984 ipa_prop_write_all_agg_replacement): Update.
23985 * lto-cgraph.c (compute_ltrans_boundary): Use it.
23986 (output_cgraph_opt_summary): Set symbol to NULL.
23987
23988 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
23989
23990 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
23991 non-polymorphic types.
23992 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
23993 * ipa-devirt.c (types_same_for_odr): Do not explode when one
23994 of types is not polymorphic.
23995
23996 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
23997
23998 * lra-constraints.c (remove_inheritance_pseudos): Process
23999 destination pseudo too.
24000
24001 2014-07-11 Rong Xu <xur@google.com>
24002
24003 * gcov-tool.c (gcov_output_files): Fix build error introduced in
24004 commit r212448.
24005
24006 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
24007
24008 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
24009 * config/avr/avr-devices.c (AVR_MCU): Same.
24010 (avr_mcu_types): add text start value to end of device list.
24011 * config/avr/avr-mcus.def: Add text section start for all devices.
24012 (ata5782): Add new avr5 device.
24013 (ata5831): Same.
24014 * config/avr/avr-tables.opt: Regenerate.
24015 * config/avr/avr.h: Add declaration for text section start handler.
24016 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
24017 SPEC functions.
24018 (LINK_SPEC): Include text section start handler to linker spec.
24019 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
24020 pass -Ttext option to linker if the text section start for the device
24021 is not zero.
24022 * config/avr/t-multilib: Regenerate.
24023 * doc/avr-mmcu.texi: Regenerate.
24024
24025 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
24026
24027 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
24028 * config/rs6000/aix52.h (LINK_SPEC): Same.
24029 * config/rs6000/aix53.h (LINK_SPEC): Same.
24030 * config/rs6000/aix61.h (LINK_SPEC): Same.
24031 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
24032
24033 2014-07-11 Roman Gareev <gareevroman@gmail.com>
24034
24035 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
24036 (graphite_verify): New function.
24037 (ivs_params_clear): New function.
24038 (gcc_expression_from_isl_ast_expr_id): New function.
24039 (gcc_expression_from_isl_expr_int): New function.
24040 (binary_op_to_tree): New function.
24041 (ternary_op_to_tree): New function.
24042 (unary_op_to_tree): New function.
24043 (nary_op_to_tree): New function.
24044 (gcc_expression_from_isl_expr_op): New function.
24045 (gcc_expression_from_isl_expression): New function.
24046 (graphite_create_new_loop): New function.
24047 (translate_isl_ast_for_loop): New function.
24048 (get_upper_bound): New function.
24049 (graphite_create_new_loop_guard): New function.
24050 (translate_isl_ast_node_for): New function.
24051 (translate_isl_ast): New function.
24052 (add_parameters_to_ivs_params): New function.
24053 (scop_to_isl_ast): New parameter ip.
24054 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
24055
24056 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
24057
24058 * config/xtensa/predicates.md (call expander): Update for
24059 DECL_SECTION_NAME being string.
24060
24061 2014-07-11 Richard Biener <rguenther@suse.de>
24062
24063 PR middle-end/61473
24064 * builtins.c (fold_builtin_memory_op): Inline memory moves that
24065 can be implemented with a single load followed by a single store.
24066 (c_strlen): Only warn when only_value is not 2.
24067
24068 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
24069
24070 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
24071
24072 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
24073
24074 PR target/61561
24075 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
24076 (*movhi_bytes): Likewise.
24077 (*arm_movqi_insn): Likewise.
24078
24079 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
24080
24081 PR target/56858
24082 * config/alpha/alpha.c: Include tree-pass.h, context.h
24083 and pass_manager.h.
24084 (pass_data_handle_trap_shadows): New pass.
24085 (pass_handle_trap_shadows::gate): New pass gate function.
24086 (make_pass_handle_trap_shadows): New function.
24087 (rest_of_handle_trap_shadows): Ditto.
24088
24089 (alpha_align_insns_1): Rename from alpha_align_insns.
24090 (pass_data_align_insns): New pass.
24091 (pass_align_insns::gate): New pass gate function.
24092 (make_pass_aling_insns): New function.
24093 (rest_of_align_insns): Ditto.
24094 (alpha_align_insns): Ditto.
24095
24096 (alpha_option_override): Declare handle_trap_shadows info
24097 and align_insns_info. Register handle_trap_shadows and align_insns
24098 passes here.
24099 (alpha_reorg): Do not call alpha_trap_shadows and
24100 alpha_align_insn from here.
24101
24102 (alpha_pad_function_end): Do not skip BARRIERs.
24103
24104 2014-07-10 Rong Xu <xur@google.com>
24105
24106 Add gcov-tool: an offline gcda profile processing tool support.
24107 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
24108 (gcov_is_error): Ditto.
24109 (gcov_read_string): Ditto.
24110 (gcov_read_sync): Ditto.
24111 * gcov-io.h: Move counter defines to gcov-counter.def.
24112 * gcov-dump.c (tag_counters): Use gcov-counter.def.
24113 * coverage.c: Ditto.
24114 * gcov-tool.c: Offline gcda profile processing tool.
24115 (unlink_gcda_file): Remove one gcda file.
24116 (unlink_profile_dir): Remove gcda files from the profile path.
24117 (gcov_output_files): Output gcda files to an output dir.
24118 (profile_merge): Merge two profiles in directory.
24119 (print_merge_usage_message): Print merge usage.
24120 (merge_usage): Print merge usage and exit.
24121 (do_merge): Driver for profile merge sub-command.
24122 (profile_rewrite): Rewrite profile.
24123 (print_rewrite_usage_message): Print rewrite usage.
24124 (rewrite_usage): Print rewrite usage and exit.
24125 (do_rewrite): Driver for profile rewrite sub-command.
24126 (print_usage): Print gcov-info usage and exit.
24127 (print_version): Print gcov-info version.
24128 (process_args): Process arguments.
24129 (main): Main routine for gcov-tool.
24130 * Makefile.in: Build and install gcov-tool.
24131 * gcov-counter.def: New file split from gcov-io.h.
24132 * doc/gcc.texi: Include gcov-tool.texi.
24133 * doc/gcov-tool.texi: Document for gcov-tool.
24134
24135 2014-07-10 Richard Biener <rguenther@suse.de>
24136
24137 PR tree-optimization/61757
24138 * tree-ssa-dom.c (loop_depth_of_name): Restore.
24139 (propagate_rhs_into_lhs): Revert part of last change.
24140
24141 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
24142
24143 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
24144 FUNCTION_DECLs.
24145
24146 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
24147
24148 PR middle-end/53590
24149 * function.c (allocate_struct_function): Revert r188667 change.
24150
24151 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
24152
24153 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
24154
24155 * doc/install.texi: Remove links to defunct package providers for
24156 Solaris.
24157
24158 2014-07-09 Tom de Vries <tom@codesourcery.com>
24159
24160 * final.c (get_call_fndecl): Declare.
24161 (self_recursive_call_p): New function.
24162 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
24163
24164 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
24165
24166 * ipa-devirt.c (record_node): Walk through aliases.
24167
24168 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
24169
24170 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
24171
24172 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
24173
24174 Revert:
24175 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
24176
24177 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
24178
24179 * ipa-visibility.c (function_and_variable_visibility): Remove
24180 temporary hack disabling local aliases on AIX.
24181
24182 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
24183
24184 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
24185 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
24186
24187 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
24188
24189 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
24190 * rs6000/rs6000.c: Inline output of .set instruction.
24191 (declare_alias_data): New struct.
24192 (rs6000_declare_alias): New function.
24193 (rs6000_xcoff_declare_function_name): Use it.
24194 (rs6000_xcoff_declare_object_name): New function.
24195 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
24196 (ASM_OUTPUT_DEF): Turn to empty definition.
24197
24198 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
24199
24200 PR bootstrap/61679
24201 * hash-table.h: use hash_table::value_type instead of
24202 Descriptor::value_type in the return types of several methods.
24203
24204 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
24205
24206 * tree-pass.h (pass_data): Remove has_execute member.
24207 * passes.c (execute_one_pass): Don't check pass->has_execute.
24208 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24209 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24210 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24211 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24212 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24213 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
24214 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
24215 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
24216 gimple-low.c, gimple-ssa-isolate-paths.c,
24217 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
24218 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
24219 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
24220 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
24221 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
24222 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
24223 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
24224 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
24225 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
24226 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
24227 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
24228 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
24229 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24230 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24231 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24232 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24233 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24234 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24235 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24236 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24237 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24238 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24239 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
24240 web.c: Remove initializer for pass_data::has_execute.
24241
24242 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
24243
24244 * graphite-htab.h: Use hash_map instead of hash_table.
24245 * graphite-clast-to-gimple.c: Adjust.
24246 * passes.c: Use hash_map instead of hash_table.
24247 * sese.c: Likewise.
24248 * sese.h: Remove now unused code.
24249
24250 2014-07-08 Sriraman Tallam <tmsriram@google.com>
24251
24252 PR target/61599
24253 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
24254 than zero.
24255
24256 2014-07-08 Jakub Jelinek <jakub@redhat.com>
24257
24258 PR rtl-optimization/61673
24259 * combine.c (simplify_comparison): Test just mode's sign bit
24260 in tmode rather than the sign bit and any bits above it.
24261
24262 2014-07-08 Roman Gareev <gareevroman@gmail.com>
24263
24264 * graphite-isl-ast-to-gimple.c (generate_isl_context):
24265 Add __isl_give to the declaration.
24266 (generate_isl_schedule): Likewise.
24267 (scop_to_isl_ast): Likewise.
24268
24269 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24270
24271 * config/arm/arm.c (cortexa5_extra_costs): New table.
24272 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
24273
24274 2014-07-08 Jakub Jelinek <jakub@redhat.com>
24275
24276 PR tree-optimization/61725
24277 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
24278 range, use range_includes_zerop_p instead of integer_zerop on
24279 vr0->min, only use log2 of max if min is not negative.
24280
24281 2014-07-08 Richard Biener <rguenther@suse.de>
24282
24283 * tree-ssa-dom.h (loop_depth_of_name): Remove.
24284 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
24285 restriction on loop depth difference.
24286 (record_equality): Likewise.
24287 (propagate_rhs_into_lhs): Likewise. Simplify condition.
24288 (loop_depth_of_name): Remove.
24289 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
24290 restriction on loop depth difference.
24291 (init_copy_prop): Likewise.
24292
24293 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
24294
24295 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
24296 parameter.
24297 (walk_aliased_vdefs): Likewise.
24298 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
24299 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
24300 (detect_type_change_from_memory_writes): Check if entry was reached.
24301
24302 2014-07-08 Richard Biener <rguenther@suse.de>
24303
24304 PR tree-optimization/61681
24305 * tree-ssa-structalias.c (find_what_var_points_to): Expand
24306 NONLOCAL inside ESCAPED.
24307
24308 2014-07-08 Richard Biener <rguenther@suse.de>
24309
24310 PR tree-optimization/61680
24311 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
24312 Handle properly all read-write dependences with group accesses.
24313
24314 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
24315
24316 PR tree-optimization/61576
24317 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
24318 block containing reduction statement is predecessor of phi basi block.
24319
24320 2014-07-08 Marek Polacek <polacek@redhat.com>
24321
24322 PR c/60226
24323 * fold-const.c (round_up_loc): Change the parameter type.
24324 Remove assert.
24325 * fold-const.h (round_up_loc): Adjust declaration.
24326 * stor-layout.c (finalize_record_size): Check for too large types.
24327
24328 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
24329
24330 * symtab.c: Include calls.h.
24331 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
24332
24333 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
24334
24335 * config/rs6000/rs6000.c (output_vec_const_move): Handle
24336 little-endian code generation.
24337 * config/rs6000/spe.md (spe_evmergehi): Rename to...
24338 (vec_perm00_v2si): ... this. Handle little-endian code generation.
24339 (spe_evmergehilo): Rename to...
24340 (vec_perm01_v2si): ... this. Handle little-endian code generation.
24341 (spe_evmergelo): Rename to...
24342 (vec_perm11_v2si): ... this. Handle little-endian code generation.
24343 (spe_evmergelohi): Rename to...
24344 (vec_perm10_v2si): ... this. Handle little-endian code generation.
24345 (spe_evmergehi, spe_evmergehilo): New expanders.
24346 (spe_evmergelo, spe_evmergelohi): Likewise.
24347 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
24348 (*frob_tf_ti): Likewise.
24349 (*frob_<mode>_di_2): Likewise.
24350 (*frob_tf_di_8_2): Likewise.
24351 (*frob_di_<mode>): Likewise.
24352 (*frob_ti_tf): Likewise.
24353 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
24354 (*frob_ti_<mode>_8_2): Likewise.
24355 (*frob_ti_tf_2): Likewise.
24356 (mov_si<mode>_e500_subreg0): Rename to...
24357 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
24358 endianness only.
24359 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
24360 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
24361 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
24362 the big endianness only.
24363 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
24364 (*mov_si<mode>_e500_subreg0_2): Rename to...
24365 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
24366 big big endianness only.
24367 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
24368 (*mov_si<mode>_e500_subreg4): Rename to...
24369 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
24370 endianness only.
24371 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
24372 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
24373 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
24374 the big endianness only.
24375 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
24376 pattern.
24377 (*mov_si<mode>_e500_subreg4_2): Rename to...
24378 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
24379 endianness only.
24380 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
24381 (*mov_sitf_e500_subreg8): Rename to...
24382 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
24383 endianness only.
24384 (*mov_sitf_e500_subreg8_le): New instruction pattern.
24385 (*mov_sitf_e500_subreg8_2): Rename to...
24386 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
24387 endianness only.
24388 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
24389 (*mov_sitf_e500_subreg12): Rename to...
24390 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
24391 endianness only.
24392 (*mov_sitf_e500_subreg12_le): New instruction pattern.
24393 (*mov_sitf_e500_subreg12_2): Rename to...
24394 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
24395 endianness only.
24396 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
24397
24398 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
24399
24400 * asan.c (instrument_strlen_call): Do not instrument first byte
24401 in strlen if already instrumented.
24402
24403 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24404
24405 * config/arm/arm.opt (mwords-little-endian): Delete.
24406 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
24407 of TARGET_LITTLE_WORDS.
24408 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
24409 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
24410 warning.
24411 * doc/invoke.texi: Remove references to -mwords-little-endian.
24412
24413 2014-07-07 Jakub Jelinek <jakub@redhat.com>
24414
24415 * expmed.c (struct init_expmed_rtl): Change all fields but
24416 pow2 and cint from struct rtx_def to rtx.
24417 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
24418 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
24419 at the end again.
24420
24421 2014-07-06 Marek Polacek <polacek@redhat.com>
24422
24423 PR c/6940
24424 * doc/invoke.texi: Document -Wsizeof-array-argument.
24425
24426 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
24427
24428 * wide-int.h (wide_int_storage): Change declaration from struct
24429 to class.
24430
24431 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
24432
24433 * cgraph.c (cgraph_create_indirect_edge): Update call of
24434 get_polymorphic_call_info.
24435 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
24436 (possible_polymorphic_call_targets): Add parameter call.
24437 (decl_maybe_in_construction_p): New predicate.
24438 (get_polymorphic_call_info): Add parameter call;
24439 use decl_maybe_in_construction_p.
24440 * gimple-fold.c (fold_gimple_assign): Update use of
24441 possible_polymorphic_call_targets.
24442 (gimple_fold_call): Likewise.
24443 * ipa-prop.c: Inlcude calls.h
24444 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
24445 (param_type_may_change_p): New predicate.
24446 (detect_type_change_from_memory_writes): Break out from ...
24447 (detect_type_change): ... this one; use param_type_may_change_p.
24448 (detect_type_change_ssa): Use param_type_may_change_p.
24449 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
24450
24451 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
24452
24453 PR target/49423
24454 * config/arm/arm-protos.h (arm_legitimate_address_p,
24455 arm_is_constant_pool_ref): Add prototypes.
24456 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
24457 (arm_is_constant_pool_ref) New function.
24458 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
24459 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
24460 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
24461 operand. Remove pool_range and neg_pool_range attributes.
24462 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
24463 pool_range and neg_pool_range attributes.
24464 * config/arm/constraints.md (Uh): New constraint.
24465 (Uq): Don't allow constant pool references.
24466
24467 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
24468
24469 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
24470 (move_lo_quad_internal_be_<mode>): Likewise.
24471 (move_lo_quad_<mode>): Convert to define_expand.
24472 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
24473 (aarch64_simd_move_hi_quad_be_<mode>): New.
24474 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
24475 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
24476 (aarch64_combinez_be<mode>): New.
24477 (aarch64_combine<mode>): Convert to define_expand.
24478 (aarch64_combine_internal<mode>): New.
24479 (aarch64_simd_combine<mode>): Remove bogus RTL description.
24480
24481 2014-07-04 Tom de Vries <tom@codesourcery.com>
24482
24483 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
24484 combination of earlyclobber and read/write modifiers.
24485
24486 2014-07-04 Tom de Vries <tom@codesourcery.com>
24487
24488 * config/aarch64/aarch64-simd.md
24489 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
24490
24491 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
24492
24493 PR target/61714
24494 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
24495
24496 2014-07-04 Jakub Jelinek <jakub@redhat.com>
24497
24498 PR middle-end/61654
24499 * cgraphunit.c (expand_thunk): Call free_dominance_info.
24500
24501 PR tree-optimization/61684
24502 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
24503 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
24504
24505 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
24506 Kito Cheng <kito@0xlab.org>
24507 Monk Chiang <sh.chiang04@gmail.com>
24508
24509 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
24510 (nds32_symbol_load_store_p): Move to ...
24511 (nds32_fp_as_gp_check_available): Move to ...
24512 * config/nds32/nds32-fp-as-gp.c: ... here.
24513 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
24514 extern declaration.
24515
24516 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
24517 Kito Cheng <kito@0xlab.org>
24518 Monk Chiang <sh.chiang04@gmail.com>
24519
24520 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
24521 (nds32_expand_store_multiple): Move to ...
24522 (nds32_expand_movmemqi): Move to ...
24523 * config/nds32/nds32-memory-manipulation.c: ... here.
24524
24525 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
24526 Kito Cheng <kito@0xlab.org>
24527 Monk Chiang <sh.chiang04@gmail.com>
24528
24529 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
24530 (nds32_output_casesi_pc_relative): Move to ...
24531 (nds32_output_casesi): Move to ...
24532 (nds32_mem_format): Move to ...
24533 (nds32_output_16bit_store): Move to ...
24534 (nds32_output_16bit_load): Move to ...
24535 (nds32_output_32bit_store): Move to ...
24536 (nds32_output_32bit_load): Move to ...
24537 (nds32_output_32bit_load_s): Move to ...
24538 (nds32_output_stack_push): Move to ...
24539 (nds32_output_stack_pop): Move to ...
24540 * config/nds32/nds32-md-auxiliary.c: ... here.
24541
24542 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
24543 Ling-Hua Tseng <uranus@tinlans.org>
24544
24545 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
24546 the purpose of this file.
24547
24548 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
24549 Kito Cheng <kito@0xlab.org>
24550 Monk Chiang <sh.chiang04@gmail.com>
24551
24552 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
24553 (nds32_address_cost): Move implementation to ...
24554 * config/nds32/nds32-cost.c: ... here.
24555 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
24556 (nds32_address_cost_impl): Declare.
24557
24558 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
24559 Kito Cheng <kito@0xlab.org>
24560 Monk Chiang <sh.chiang04@gmail.com>
24561
24562 * config/nds32/nds32.c
24563 (nds32_consecutive_registers_load_store_p): Move to ...
24564 (nds32_valid_multiple_load_store): Move to ...
24565 (nds32_valid_stack_push_pop): Move to ...
24566 (nds32_can_use_bclr_p): Move to ...
24567 (nds32_can_use_bset_p): Move to ...
24568 (nds32_can_use_btgl_p): Move to ...
24569 (nds32_can_use_bitci_p): Move to ...
24570 * config/nds32/nds32-predicates.c: ... here.
24571
24572 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
24573 Kito Cheng <kito@0xlab.org>
24574 Monk Chiang <sh.chiang04@gmail.com>
24575
24576 * config/nds32/nds32.c
24577 (nds32_expand_builtin_null_ftype_reg): Move to ...
24578 (nds32_expand_builtin_reg_ftype_imm): Move to ...
24579 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
24580 (nds32_init_builtins): Move implementation to ...
24581 (nds32_expand_builtin): Move implementation to ...
24582 * config/nds32/nds32-intrinsic.c: ... here.
24583 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
24584 (nds32_expand_builtin_impl): Declare.
24585
24586 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
24587 Kito Cheng <kito@0xlab.org>
24588 Monk Chiang <sh.chiang04@gmail.com>
24589
24590 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
24591 (nds32_emit_section_tail_template): Move to ...
24592 (nds32_emit_isr_jmptbl_section): Move to ...
24593 (nds32_emit_isr_vector_section): Move to ...
24594 (nds32_emit_isr_reset_conten): Move to ...
24595 (nds32_check_isr_attrs_conflict): Move to ...
24596 (nds32_construct_isr_vectors_information): Move to ...
24597 (nds32_asm_file_start): Move implementation to ...
24598 (nds32_asm_file_end): Move implementation to ...
24599 * config/nds32/nds32-isr.c: ... here.
24600 * config/nds32/nds32-protos.h
24601 (nds32_check_isr_attrs_conflict): Declare.
24602 (nds32_construct_isr_vectors_information): Declare.
24603 (nds32_asm_file_start_for_isr): Declare.
24604 (nds32_asm_file_end_for_isr): Declare.
24605
24606 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
24607 Kito Cheng <kito@0xlab.org>
24608 Monk Chiang <sh.chiang04@gmail.com>
24609
24610 * config.gcc (nds32*): Add new modules to extra_objs.
24611 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
24612 (nds32be-*-*): Likewise.
24613 * config/nds32/nds32-cost.c: New file.
24614 * config/nds32/nds32-fp-as-gp.c: New file.
24615 * config/nds32/nds32-intrinsic.c: New file.
24616 * config/nds32/nds32-isr.c: New file.
24617 * config/nds32/nds32-md-auxiliary.c: New file.
24618 * config/nds32/nds32-memory-manipulation.c: New file.
24619 * config/nds32/nds32-pipelines-auxiliary.c: New file.
24620 * config/nds32/nds32-predicates.c: New file.
24621 * config/nds32/t-nds32: New file.
24622
24623 2014-07-03 Jakub Jelinek <jakub@redhat.com>
24624
24625 PR tree-optimization/61682
24626 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
24627 using cases and when one of the operands is equal to 1.
24628
24629 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
24630
24631 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
24632 ashr<mode>3): Correct mode of operands[2].
24633 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
24634 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
24635 Correct mode of operands[2]. Fix split condition.
24636
24637 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
24638
24639 * arm.md (arch): Add armv6_or_vfpv3.
24640 (arch_enabled): Add test for the above.
24641 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
24642 on VFP9.
24643 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
24644
24645 2014-07-03 Jakub Jelinek <jakub@redhat.com>
24646
24647 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
24648 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
24649 HWI 1 and negate the unsigned value.
24650 * expmed.c (expand_sdiv_pow2): For modes wider than word always
24651 use AND instead of shift.
24652 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
24653
24654 2014-07-03 Marek Polacek <polacek@redhat.com>
24655
24656 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
24657 (-fsanitize=float-divide-by-zero): Move to the table with
24658 -fsanitize=undefined suboptions.
24659 (-fsanitize=float-cast-overflow): Likewise.
24660
24661 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
24662
24663 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
24664 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
24665 endianness.
24666
24667 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24668
24669 * loop-invariant.c (struct invariant): Add a new member: eqno;
24670 (find_identical_invariants): Update eqno;
24671 (create_new_invariant): Init eqno;
24672 (get_inv_cost): Compute comp_cost with eqno;
24673
24674 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
24675
24676 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
24677 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
24678 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
24679 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
24680 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
24681
24682 2014-07-02 Christian Bruel <christian.bruel@st.com>
24683
24684 PR target/29349
24685 PR target/53513
24686 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
24687 (make_preds_opaque): Delete.
24688 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
24689 (commit_mode_sets): New function.
24690 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
24691 Process all modes at once.
24692 * basic-block.h (pre_edge_lcm_avs): Declare.
24693 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
24694 Call clear_aux_for_edges. Fix comments.
24695 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
24696 (pre_edge_rev_lcm): Idem.
24697 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
24698 parameter.
24699 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
24700 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
24701 Idem.
24702 * config/i386/i386.c (x96_emit_mode_set): Idem.
24703 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
24704 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
24705 (fpscr_toggle) Disallow from delay slot.
24706 * target.def (emit_mode_set): Add prev_mode parameter.
24707 * doc/tm.texi: Regenerate.
24708
24709 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24710
24711 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
24712 variable i.
24713
24714 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
24715
24716 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
24717 vtable_pointer_value_to_vtable): Constify.
24718 (contains_polymorphic_type_p): Declare.
24719 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
24720 vtable_pointer_value_to_vtable): Constify.
24721 (contains_polymorphic_type_p): New predicate.
24722 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
24723 polymorphic types.
24724 (ipa_set_ancestor_jf): Likewise.
24725 (detect_type_change): Return false in easy cases.
24726 (compute_complex_assign_jump_func): Require type to contain
24727 polymorphic type.
24728 (compute_known_type_jump_func): Likewise.
24729
24730 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
24731
24732 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
24733 Remove.
24734 (type_in_anonymous_namespace_p): Constify argument.
24735 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
24736 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
24737 (main_odr_variant): New function.
24738 (hash_type_name): Make static; update assert; do not ICE on
24739 non-records.
24740 (types_same_for_odr): Bring here from tree.c; simplify and remove
24741 old structural comparing code that doesn't work for templates.
24742 (odr_hasher::equal): Update assert.
24743 (add_type_duplicate): Return true when bases should be computed;
24744 replace incomplete loader by complete; do not output duplicated
24745 warnings; do not ICE on non-records; set odr_violated flag.
24746 (get_odr_type): Be ready to replace incomplete type by complete
24747 one; work on ODR variants instead of main variants; reorder item
24748 in array so bases have still smaller indexes.
24749 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
24750 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
24751
24752 2014-07-01 Cary Coutant <ccoutant@google.com>
24753
24754 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
24755 lookup.
24756 (resolve_addr_in_expr): When replacing the rtx in a location list
24757 entry, get a new address table entry.
24758 (dwarf2out_finish): Call index_location_lists even if there are no
24759 addr_index_table entries yet.
24760
24761 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
24762
24763 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
24764 change for not being obvious.
24765
24766 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
24767
24768 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
24769 unused argument.
24770
24771 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24772
24773 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
24774 (vcagt_f64): Likewise.
24775 (vcale_f64): Likewise.
24776 (vcaled_f64): Likewise.
24777 (vcales_f32): Likewise.
24778 (vcalt_f64): Likewise.
24779 (vcaltd_f64): Likewise.
24780 (vcalts_f32): Likewise.
24781
24782 2014-07-01 Marek Polacek <polacek@redhat.com>
24783
24784 * doc/invoke.texi: Document -Wint-conversion.
24785
24786 2014-07-01 Marek Polacek <polacek@redhat.com>
24787
24788 PR c/58286
24789 * doc/invoke.texi: Document -Wincompatible-pointer-types.
24790
24791 2014-07-01 Martin Liska <mliska@suse.cz>
24792
24793 IPA REF alias refactoring
24794 * cgraph.h (iterate_direct_aliases): New function.
24795 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
24796 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
24797 FOR_EACH_ALIAS added.
24798 (cgraph_for_node_and_aliases): Likewise.
24799 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
24800 * ipa-inline.c (reset_edge_caches): Likewise.
24801 (update_caller_keys): Likewise.
24802 * trans-mem.c (ipa_tm_execute): Likewise.
24803 *varpool.c (varpool_analyze_node): Likewise.
24804 (varpool_for_node_and_aliases): Likewise.
24805 * ipa-ref.h (first_alias): New function.
24806 (last_alias): Likewise.
24807 (has_aliases_p): Likewise.
24808 * ipa-ref.c (ipa_ref::remove_reference): Removal function
24809 is sensitive to IPA_REF_ALIASes.
24810 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
24811 are put at the beginning of the list.
24812 (symtab_node::iterate_direct_aliases): New function.
24813
24814 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
24815
24816 Revert:
24817 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
24818 type is complete.
24819 (write_ts_type_common_tree_pointers): Do not stream fields not set
24820 for incomplete types; do not stream duplicated fields for variants;
24821 sanity check that variant and type match.
24822 (write_ts_type_non_common_tree_pointers): Likewise.
24823 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
24824 TYPE_SIZE whether type is complete.
24825 (lto_input_ts_type_common_tree_pointers): Do same changes as in
24826 write_ts_type_common_tree_pointers
24827 (lto_input_ts_type_non_common_tree_pointers): Likewise.
24828
24829 2014-06-30 Joseph Myers <joseph@codesourcery.com>
24830
24831 * var-tracking.c (add_stores): Return instead of asserting if old
24832 and new values for conditional store are the same.
24833
24834 2014-06-30 Richard Henderson <rth@redhat.com>
24835
24836 PR rtl-opt/61608
24837 PR target/39284
24838 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
24839 the cfg if there were any changes.
24840 * passes.def: Revert move of peephole2 after reorder_blocks;
24841 move duplicate_computed_gotos before peephole2.
24842
24843 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
24844
24845 * except.c (emit_note_eh_region_end): New helper function.
24846 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
24847 emit EH_REGION_END note.
24848 * jump.c (cleanup_barriers): Do not split a call and its
24849 corresponding CALL_ARG_LOCATION note.
24850
24851 2014-06-30 Jeff Law <law@redhat.com>
24852
24853 PR tree-optimization/61607
24854 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
24855 deeper into the SSA_NAME_VALUE chain.
24856
24857 2014-06-30 Marek Polacek <polacek@redhat.com>
24858
24859 * convert.c (convert_to_integer): Don't instrument conversions if the
24860 function has no_sanitize_undefined attribute.
24861 * ubsan.c: Don't run the ubsan pass if the function has
24862 no_sanitize_undefined attribute.
24863
24864 2014-06-30 Jakub Jelinek <jakub@redhat.com>
24865
24866 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
24867 -fsanitize=undefined suboptions.
24868
24869 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
24870
24871 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
24872 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
24873 against bigendian and adjust indices.
24874
24875 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
24876
24877 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
24878
24879 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
24880
24881 PR target/61633
24882 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
24883 Add alternative; make early clobber. Adjust both split patterns
24884 to use operand 0 as the working register.
24885
24886 2014-06-30 Jakub Jelinek <jakub@redhat.com>
24887
24888 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
24889 as ira_object_id_map might be NULL, or 1.
24890
24891 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24892
24893 * loop-invariant.c (get_inv_cost): Handle register class.
24894 (gain_for_invariant): Check the register pressure of the inv
24895 and its overlapped register class, other than all.
24896
24897 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
24898
24899 * doc/invoke.texi (Optimize Options): Fix descriptions of
24900 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
24901
24902 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
24903
24904 * doc/extend.texi (Function Attributes): Update 'naked' attribute
24905 documentation.
24906
24907 2014-06-29 Tobias Grosser <tobias@grosser.es>
24908
24909 PR bootstrap/61650
24910 * graphite-isl-ast-to-gimple.c: Add missing guards.
24911
24912 2014-06-29 Roman Gareev <gareevroman@gmail.com>
24913
24914 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
24915 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
24916 * flag-types.h: Add new enum fgraphite_generator.
24917 * graphite-isl-ast-to-gimple.c: New.
24918 * graphite-isl-ast-to-gimple.h: New.
24919 * graphite.c (graphite_transform_loops): Add choice of Graphite
24920 code generator, which depends on flag_graphite_code_gen.
24921
24922 2014-06-29 Roman Gareev <gareevroman@gmail.com>
24923
24924 * graphite-dependences.c (subtract_commutative_associative_deps):
24925 Add NULL checking of the following variables: must_raw_no_source,
24926 may_raw_no_source, must_war_no_source, may_war_no_source,
24927 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
24928 must_war, may_war, must_waw, may_waw.
24929
24930 2014-06-29 Roman Gareev <gareevroman@gmail.com>
24931
24932 * graphite-clast-to-gimple.c: gloog is renamed to
24933 graphite_regenerate_ast_cloog. gloog_error is renamed to
24934 graphite_regenerate_error.
24935 * graphite-clast-to-gimple.h: The definition of the struct
24936 bb_pbb_def is moved to graphite-htab.h.
24937 Add inclusion of the hash-table.h.
24938 * graphite-htab.h: The declaration of the function gloog is moved
24939 to graphite-clast-to-gimple.h and renamed to
24940 graphite_regenerate_ast_cloog.
24941 * graphite.c (graphite_transform_loops): gloog is renamed
24942 to graphite_regenerate_ast_cloog.
24943
24944 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
24945
24946 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
24947 type is complete.
24948 (write_ts_type_common_tree_pointers): Do not stream fields not set
24949 for incomplete types; do not stream duplicated fields for variants;
24950 sanity check that variant and type match.
24951 (write_ts_type_non_common_tree_pointers): Likewise.
24952 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
24953 TYPE_SIZE whether type is complete.
24954 (lto_input_ts_type_common_tree_pointers): Do same changes as in
24955 write_ts_type_common_tree_pointers
24956 (lto_input_ts_type_non_common_tree_pointers): Likewise.
24957
24958 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
24959
24960 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
24961
24962 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
24963
24964 * tree-inline.c (remap_type_1): Do not duplicate fields
24965 that are shared in between type and its main variant.
24966
24967 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
24968
24969 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
24970 of the type.
24971 (ipa_set_ancestor_jf) Likewise.
24972 (check_stmt_for_type_change): Check that we work on main variant.
24973 (detect_type_change): Look into main variant.
24974 (compute_known_type_jump_func): Check that main variant has BINFO.
24975
24976 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
24977
24978 * ipa-devirt.c (set_type_binfo): New function.
24979 (add_type_duplicate): Use it.
24980 (get_odr_type): Sanity check that binfos points to main variants.
24981 (get_class_context): Be sure the context's outer_type is main variant.
24982 (contains_type_p): Walk main variant.
24983 (get_polymorphic_call_info_for_decl): Set outer_type to be
24984 main variant.
24985 (get_polymorphic_call_info): Likewise.
24986 (possible_polymorphic_call_targets): Sanity check that we operate
24987 on main variant.
24988
24989 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
24990
24991 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
24992
24993 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24994
24995 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
24996 accidental change due to wide-int branch merge.
24997
24998 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24999
25000 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
25001 compressed debug support.
25002 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
25003 * configure: Regenerate.
25004 * config.in: Regenerate.
25005 * common.opt (compressed_debug_sections): New enum.
25006 (gz, gz=): New options.
25007 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
25008 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
25009 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
25010 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
25011 LINK_COMPRESS_DEBUG_SPEC.
25012 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
25013 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
25014 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
25015 (Debugging Options): Document -gz[=type].
25016
25017 2014-06-27 Martin Jambor <mjambor@suse.cz>
25018
25019 PR ipa/61160
25020 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
25021 args_to_skip, use those from node instead. Copy args_to_skip and
25022 combined_args_to_skip from node to the new thunk.
25023 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
25024 (cgraph_create_virtual_clone): Moved computation of
25025 combined_args_to_skip...
25026 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
25027
25028 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
25029
25030 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
25031 redundant diagnostic machinary.
25032
25033 2014-06-27 Richard Biener <rguenther@suse.de>
25034
25035 * tree-ssa-math-opts.c (bswap_replace): Fix
25036 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
25037
25038 2014-06-27 Martin Liska <mliska@suse.cz>
25039
25040 * gimple.h (gimple_location_safe): New function introduced.
25041 * cgraphunit.c (walk_polymorphic_call_targets): Usage
25042 of gimple_location_safe replaces gimple_location.
25043 (gimple_fold_call): Likewise.
25044 * ipa-devirt.c (ipa_devirt): Likewise.
25045 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
25046 * ipa.c (walk_polymorphic_call_targets): Likewise.
25047 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
25048
25049 2014-06-27 Jakub Jelinek <jakub@redhat.com>
25050
25051 PR tree-optimization/57233
25052 PR tree-optimization/61299
25053 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
25054 functions.
25055 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
25056 would be lowered to scalar shifts, check if corresponding
25057 shifts and vector BIT_IOR_EXPR are supported and don't lower
25058 or lower just to narrower vector type in that case.
25059 * expmed.c (expand_shift_1): Fix up handling of vector
25060 shifts and rotates.
25061
25062 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
25063
25064 PR target/61586
25065 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
25066
25067 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
25068
25069 * doc/invoke.texi (-fsemantic-interposition): Document.
25070 * common.opt (fsemantic-interposition): New flag.
25071 * varasm.c (decl_replaceable_p): Use it.
25072
25073 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25074
25075 PR target/61542
25076 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
25077 extraction other than index 3.
25078
25079 2014-06-26 Teresa Johnson <tejohnson@google.com>
25080
25081 * doc/invoke.texi: Fix typo.
25082 * dumpfile.c: Add support for documented -fdump-* options
25083 optimized/missed/note/optall.
25084
25085 2014-06-26 Martin Jambor <mjambor@suse.cz>
25086
25087 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
25088 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
25089 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
25090 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
25091 * opts.c (default_options_optimization): Set
25092 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
25093 * doc/invoke.texi (allow-load-data-races)
25094 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
25095 (allow-store-data-races): Document the new default.
25096
25097 2014-06-26 Martin Jambor <mjambor@suse.cz>
25098
25099 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
25100 renamed to ipa_impossible_devirt_target. Fix typo.
25101 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
25102 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
25103 ipa_impossible_devirt_target.
25104
25105 2014-06-26 Richard Biener <rguenther@suse.de>
25106
25107 PR tree-optimization/61607
25108 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
25109 explaining why we restrict copies on loop depth.
25110 * tree-ssa-dom.c (cprop_operand): Remove restriction on
25111 on loop depth.
25112 (record_equivalences_from_phis): Instead add it here.
25113
25114 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
25115
25116 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
25117 (LTO_WRAPPER_OBJS): New variable.
25118 (lto-wrapper$(exeext)): Use it.
25119 * collect2.c: Include "collect-utils.h".
25120 (verbose, debug): Remove variables.
25121 (at_file_supplied): No longer static.
25122 (tool_name): New variable.
25123 (do_wait, fork_execute, maybe_unlink): Don't declare.
25124 (tool_cleanup): No longer static.
25125 (notice): Remove function.
25126 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
25127 fork_execute calls.
25128 (collect_wait, do_wait, collect_execute): Remove functions.
25129 (maybe_unlink): No longer static.
25130 * collect2.h (verbose, debug): Don't declare.
25131 (at_file_supplied): Declare.
25132 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
25133 changed.
25134 (collect_execute): Replace with implementation from collect2, plus a
25135 new arg use_atfile. All callers changed.
25136 (collect_wait): Replace with implementation from collect2.
25137 (maybe_unlink_file): Remove function.
25138 (fork_execute): Replace with implementation from collect2, plus a
25139 new arg use_atfile. All callers changed.
25140 (do_wait): Add call to utils_cleanup to the error path.
25141 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
25142 (tool_cleanup): Adjust declarations.
25143 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
25144 * tlink.c: Include "collect-utils.h".
25145 (tlink_execute): New arg use_atfile. All callers changed.
25146 (tlink_init, tlink_execute): Remove declarations.
25147
25148 * collect-utils.c (save_temps): New variable.
25149 (do_wait): Use it instead of debug. Use fatal_error.
25150 * collect-utils.h (save_temps): Declare.
25151 * collect2.c (verbose): Rename from vflag. All uses changed.
25152 (tool_cleanup): New function, copied from collect_atexit.
25153 (collect_atexit, handler): Just call it.
25154 * collect2.h (verbose): Declaration renamed from vflag.
25155 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
25156 debug.
25157
25158 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
25159 (lto-wrapper$(exeext)): Link with collect-utils.o.
25160 * collect-utils.c: New file.
25161 * collect-utils.h: New file.
25162 * lto-wrapper.c: Include "collect-utils.h".
25163 (args_name): Delete variable.
25164 (tool_name): New variable.
25165 (tool_cleanup): New function.
25166 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
25167 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
25168 (fork_execute): Remove functions.
25169
25170 2014-06-26 Nick Clifton <nickc@redhat.com>
25171
25172 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
25173
25174 * doc/extend.texi (Function Attributes): Fix typo in description
25175 of RX vector attribute.
25176
25177 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25178
25179 * config.gcc (supported_defaults): Error when passing either
25180 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
25181
25182 2014-06-26 Richard Biener <rguenther@suse.de>
25183
25184 * tree-ssa-dom.c (cprop_operand): Remove restriction on
25185 propagating volatile pointers.
25186
25187 2014-06-26 Richard Biener <rguenther@suse.de>
25188
25189 PR tree-optimization/61607
25190 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
25191 loop if we redirected its latch edge.
25192 (thread_block_1): Do not cancel loops prematurely.
25193
25194 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
25195
25196 * toplev.c (backend_init_target): Move init_emit_regs and
25197 init_regs to...
25198 (backend_init) ... here; skip ira_init_once and backend_init_target.
25199 (target_reinit) ... and here; clear
25200 this_target_rtl->lang_dependent_initialized.
25201 (lang_dependent_init_target): Clear
25202 this_target_rtl->lang_dependent_initialized;
25203 break out rtl initialization to ...
25204 (initialize_rtl): ... here; call also backend_init_target
25205 and ira_init_once.
25206 * toplev.h (initialize_rtl): New function.
25207 * function.c: Include toplev.h
25208 (init_function_start): Call initialize_rtl.
25209 * rtl.h (target_rtl): Add target_specific_initialized,
25210 lang_dependent_initialized.
25211
25212 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
25213 Jakub Jelinek <jakub@redhat.com>
25214
25215 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
25216
25217 2014-06-25 Tom de Vries <tom@codesourcery.com>
25218
25219 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
25220
25221 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
25222
25223 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
25224 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
25225 Issue a strict overflow warning if appropriate.
25226
25227 2014-06-25 Martin Liska <mliska@suse.cz>
25228
25229 IPA REF refactoring
25230 * Makefile.in: Removed header file (ipa-ref-inline.h).
25231 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
25232 called.
25233 (cgraph_speculative_call_info): Likewise.
25234 (cgraph_for_node_thunks_and_aliases): Likewise.
25235 (cgraph_for_node_and_aliases): Likewise.
25236 (verify_cgraph_node): Likewise.
25237 * cgraph.h: Batch of IPA REF functions become member functions of
25238 symtab_node: add_reference, maybe_add_reference, clone_references,
25239 clone_referring, clone_reference, find_reference,
25240 remove_stmt_references, remove_all_references,
25241 remove_all_referring, dump_references, dump_referring,
25242 has_alias_p, iterate_reference, iterate_referring.
25243 * cgraphbuild.c (record_reference): New IPA REF function used.
25244 (record_type_list): Likewise.
25245 (record_eh_tables): Likewise.
25246 (mark_address): Likewise.
25247 (mark_load): Likewise.
25248 (mark_store): Likewise.
25249 (pass_build_cgraph_edges): Likewise.
25250 (rebuild_cgraph_edge): Likewise.
25251 (cgraph_rebuild_references): Likewise.
25252 (pass_remove_cgraph_callee_edges): Likewise.
25253 * cgraphclones.c (cgraph_clone_node): Likewise.
25254 (cgraph_create_virtual_clone): Likewise.
25255 (cgraph_materialize_clone): Likewise.
25256 (cgraph_materialize_all_clones): Likewise.
25257 * cgraphunit.c (cgraph_reset_node): Likewise.
25258 (cgraph_reset_node): Likewise.
25259 (analyze_function): Likewise.
25260 (assemble_thunks_and_aliases): Likewise.
25261 (expand_function): Likewise.
25262 * ipa-comdats.c (propagate_comdat_group): Likewise.
25263 (enqueue_references): Likewise.
25264 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
25265 (create_specialized_node): Likewise.
25266 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
25267 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
25268 * ipa-inline.c (reset_edge_caches): Likewise.
25269 (update_caller_keys): Likewise.
25270 (execute): Likewise.
25271 * ipa-prop.c (remove_described_reference): Likewise.
25272 (propagate_controlled_uses): Likewise.
25273 (ipa_edge_duplication_hook): Likewise.
25274 (ipa_modify_call_arguments): Likewise.
25275 * ipa-pure-const.c (propagate_pure_const): Likewise.
25276 * ipa-ref-inline.h: Header file removed, functions moved
25277 to symtab_node class.
25278 * ipa-ref.c (remove_reference): New class member function.
25279 (cannot_lead_to_return): New class member function.
25280 (referring_ref_list): Likewise.
25281 (referred_ref_list): Likewise.
25282 Rest of functions moved to symtab_node class.
25283 * ipa-ref.h: New member functions remove_reference,
25284 cannot_lead_to_return, referring_ref_list, referred_ref_list added
25285 to ipa_ref class.
25286 ipa_ref_list class has new member functions: first_reference,
25287 first_referring, clear, nreferences.
25288 * ipa-reference.c (analyze_function): New IPA REF function used.
25289 (write_node_summary_p): Likewise.
25290 (ipa_reference_write_optimization_summary): Likewise.
25291 * ipa-split.c (split_function): Likewise.
25292 * ipa-utils.c (ipa_reverse_postorder): Likewise.
25293 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
25294 (function_and_variable_visibility): Likewise.
25295 * ipa.c (has_addr_references_p): Likewise.
25296 (process_references): Argument type changed.
25297 (symtab_remove_unreachable_nodes): New IPA REF function used.
25298 (process_references): Likewise.
25299 (set_writeonly_bit): Likewise.
25300 * lto-cgraph.c: Implementation of new symtab_node member functions
25301 that uses new IPA REF functions.
25302 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
25303 function used.
25304 * lto-streamer-out.c (output_symbol_p): Likewise.
25305 * lto-streamer.h (referenced_from_this_partition_p): Argument type
25306 changed.
25307 * symtab.c: Implementation of new IPA REF API.
25308 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
25309 (ipa_tm_create_version): Likewise.
25310 (ipa_tm_execute): Likewise.
25311 * tree-emutls.c (gen_emutls_addr): Likewise.
25312 * tree-inline.c (copy_bb): Likewise.
25313 (delete_unreachable_blocks_update_callgraph): Likewise.
25314 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
25315 (varpool_for_node_and_aliases): Likewise.
25316
25317 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
25318
25319 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
25320
25321 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
25322
25323 PR bootstrap/61598
25324 * fold-const.c (fold_checksum_tree): Use a hash_table of const
25325 tree_node * instead of tree_node *.
25326 (fold): Adjust.
25327 (print_fold_checksum): Likewise.
25328 (fold_check_failed): Likewise.
25329 (debug_fold_checksum): Likewise.
25330 (fold_build1_stat_loc): Likewise.
25331 (fold_build2_stat_loc): Likewise.
25332 (fold_build3_stat_loc): Likewise.
25333 (fold_build_call_array_loc): Likewise.
25334
25335 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
25336
25337 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
25338 implementation with call to...
25339 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
25340 function.
25341 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
25342 Declare.
25343
25344 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
25345
25346 PR tree-optimization/57742
25347 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
25348 after replacing the statement.
25349
25350 2014-06-25 Nick Clifton <nickc@redhat.com>
25351
25352 * config/v850/v850.c (GHS_default_section_names): Change to const
25353 char * type.
25354 (GHS_current_section_names): Likewise.
25355 (v850_insert_attributes): Do not build strings, just assign the
25356 names directly. Change the type of 'chosen_section' to const
25357 char*.
25358 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
25359 directly to the array entry.
25360 * config/v850/v850.h (GHS_default_section_names): Change to const
25361 char * type.
25362 (GHS_current_section_names): Likewise.
25363
25364 2014-06-25 Jakub Jelinek <jakub@redhat.com>
25365
25366 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
25367 (LANG_HOOKS_DECLS): Add it.
25368 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
25369 has correct type.
25370 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
25371 * langhooks.h (struct lang_hooks_for_decls): Add
25372 omp_clause_linear_ctor hook.
25373 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
25374 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
25375 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
25376 combined simd loop use omp_clause_linear_ctor hook.
25377
25378 2014-06-24 Cong Hou <congh@google.com>
25379
25380 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
25381 pattern recognition.
25382 (type_conversion_p): PROMOTION is true if it's a type promotion
25383 conversion, and false otherwise. Return true if the given expression
25384 is a type conversion one.
25385 * tree-vectorizer.h: Adjust the number of patterns.
25386 * tree.def: Add SAD_EXPR.
25387 * optabs.def: Add sad_optab.
25388 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
25389 * expr.c (expand_expr_real_2): Likewise.
25390 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
25391 * gimple.c (get_gimple_rhs_num_ops): Likewise.
25392 * optabs.c (optab_for_tree_code): Likewise.
25393 * tree-cfg.c (estimate_operator_cost): Likewise.
25394 * tree-ssa-operands.c (get_expr_operands): Likewise.
25395 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
25396 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
25397 * doc/generic.texi: Add document for SAD_EXPR.
25398 * doc/md.texi: Add document for ssad and usad.
25399
25400 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
25401
25402 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
25403 qualification in cast.
25404
25405 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
25406
25407 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
25408 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
25409 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
25410 (tree_function_decl): ... here.
25411 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
25412 streaming of vindex to ...
25413 (write_ts_function_decl_tree_pointers): ... here.
25414 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
25415 Do not stream DECL_VINDEX.
25416 (lto_input_ts_function_decl_tree_pointers): Stream it here.
25417
25418 2014-06-24 Catherine Moore <clm@codesourcery.com>
25419 Sandra Loosemore <sandra@codesourcery.com>
25420
25421 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
25422 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
25423 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
25424
25425 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
25426
25427 * doc/invoke.texi (Warning Options): Remove duplicated
25428 -Wmaybe-uninitialized.
25429
25430 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
25431
25432 PR tree-optimization/57742
25433 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
25434 (handle_builtin_malloc, handle_builtin_memset): New functions.
25435 (strlen_optimize_stmt): Call them.
25436 * passes.def: Move strlen after loop+dom but before vrp.
25437
25438 2014-06-24 Jakub Jelinek <jakub@redhat.com>
25439
25440 PR target/61570
25441 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
25442 model family 6 CPU with has_longmode never use a CPU without
25443 64-bit support.
25444
25445 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
25446
25447 PR target/61570
25448 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
25449 the last change.
25450
25451 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
25452
25453 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
25454 * dominance.c (iterate_fix_dominators): Use hash_map instead of
25455 pointer_map.
25456 * hash-map.h: New file.
25457 * ipa-comdats.c: Use hash_map instead of pointer_map.
25458 * ipa.c: Likewise.
25459 * lto-section-out.c: Adjust.
25460 * lto-streamer.h: Replace pointer_map with hash_map.
25461 * symtab.c (verify_symtab): Likewise.
25462 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
25463 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
25464 * tree-streamer.h: Likewise.
25465 * tree-streamer.c: Adjust.
25466 * pointer-set.h: Remove pointer_map.
25467
25468 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
25469
25470 * hash-table.h: Add a template arg to choose between storing values
25471 and storing pointers to values, and then provide partial
25472 specializations for both.
25473 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
25474 should store, not the type values should point to.
25475 * tree-into-ssa.c (var_info_hasher): Likewise.
25476 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
25477 * tree-complex.c: Adjust.
25478 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
25479 table instead of int_tree_map *.
25480 * tree-parloops.c: Adjust.
25481 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
25482 type is being stored.
25483 * tree-vectorizer.c: Adjust.
25484
25485 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
25486
25487 * hash-table.h: Remove a layer of indirection from hash_table so that
25488 it contains the hash table's data instead of a pointer to the data.
25489 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
25490 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
25491 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
25492 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
25493 fold-const.c, gcse.c, ggc-common.c,
25494 gimple-ssa-strength-reduction.c, gimplify.c,
25495 graphite-clast-to-gimple.c, graphite-dependences.c,
25496 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
25497 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
25498 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
25499 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
25500 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
25501 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
25502 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
25503 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
25504 tree-ssa-live.c, tree-ssa-loop-im.c,
25505 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
25506 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
25507 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
25508 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
25509 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
25510 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
25511 vtable-verify.c, vtable-verify.h: Adjust.
25512
25513 2014-06-24 Richard Biener <rguenther@suse.de>
25514
25515 PR tree-optimization/61572
25516 * tree-ssa-sink.c (statement_sink_location): Do not sink
25517 loads from hard registers.
25518
25519 2014-06-24 Jakub Jelinek <jakub@redhat.com>
25520
25521 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
25522 not mentioned in clauses use private clause if the iterator is
25523 declared in #pragma omp for simd, and when adding lastprivate
25524 instead, add it to the outer #pragma omp for too. Diagnose
25525 if the variable is private in outer context. For simd collapse > 1
25526 loops, replace all iterators with temporaries.
25527 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
25528 same even in collapse > 1 loops.
25529
25530 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
25531 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
25532 non-NULL.
25533 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
25534 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
25535 non-NULL.
25536 (gimplify_adjust_omp_clauses): Likewise.
25537 * omp-low.c (lower_rec_simd_input_clauses,
25538 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
25539 safelen the same as safelen(1).
25540 * tree-nested.c (convert_nonlocal_omp_clauses,
25541 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
25542 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
25543 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
25544 Fixup handling of GIMPLE_OMP_TARGET.
25545 (convert_tramp_reference_stmt, convert_gimple_call): Handle
25546 GIMPLE_OMP_TARGET.
25547
25548 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
25549
25550 PR tree-optimization/61554
25551 * tree-ssa-propagate.c: Include "bitmap.h".
25552 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
25553 properly update constructor/destructor.
25554 (substitute_and_fold_dom_walker::before_dom_children):
25555 Remove call to gimple_purge_dead_eh_edges, add bb->index to
25556 need_eh_cleaup instead.
25557 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
25558 need_eh_cleanup.
25559
25560 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
25561
25562 * varpool.c (dump_varpool_node): Dump used_by_single_function.
25563 * tree-pass.h (make_pass_ipa_single_use): New pass.
25564 * cgraph.h (used_by_single_function): New flag.
25565 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
25566 Stream it.
25567 * passes.def (pass_ipa_single_use): Scedule.
25568 * ipa.c (BOTTOM): New macro.
25569 (meet): New function
25570 (propagate_single_user): New function.
25571 (ipa_single_use): New function.
25572 (pass_data_ipa_single_use): New pass.
25573 (pass_ipa_single_use): New pass.
25574 (pass_ipa_single_use::gate): New gate.
25575 (make_pass_ipa_single_use): New function.
25576
25577 2014-06-23 Kai Tietz <ktietz@redhat.com>
25578
25579 PR target/39284
25580 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
25581 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
25582
25583 2014-06-23 Richard Biener <rguenther@suse.de>
25584
25585 * tree-ssa-loop.c (gate_loop): New function.
25586 (pass_tree_loop::gate): Call it.
25587 (pass_data_tree_no_loop, pass_tree_no_loop,
25588 make_pass_tree_no_loop): New.
25589 * tree-vectorizer.c: Include tree-scalar-evolution.c
25590 (pass_slp_vectorize::execute): Initialize loops and SCEV if
25591 required.
25592 (pass_slp_vectorize::clone): New method.
25593 * timevar.def (TV_TREE_NOLOOP): New.
25594 * tree-pass.h (make_pass_tree_no_loop): Declare.
25595 * passes.def (pass_tree_no_loop): New pass group with
25596 SLP vectorizer.
25597
25598 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
25599
25600 PR target/61570
25601 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
25602 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
25603
25604 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
25605
25606 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
25607 "yes" where needed.
25608
25609 2014-06-23 Alan Modra <amodra@gmail.com>
25610
25611 PR bootstrap/61583
25612 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
25613 to zero on debug statements.
25614
25615 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
25616
25617 PR target/60825
25618 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
25619 Ignore third operand if present by marking qualifier_internal.
25620
25621 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
25622
25623 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
25624 vector extension.
25625 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
25626 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
25627 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
25628 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
25629 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
25630 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
25631 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
25632 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
25633 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
25634 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
25635 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
25636 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
25637 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
25638 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
25639 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
25640 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
25641 logic in GCC vector extensions
25642
25643 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
25644 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
25645 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
25646 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
25647 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
25648 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
25649 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
25650 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
25651 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
25652 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
25653
25654 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
25655
25656 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
25657 extensions.
25658
25659 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
25660 (vget_low_s64): Use __GET_LOW macro.
25661 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
25662 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
25663 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
25664 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
25665 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
25666
25667 (vcombine_s64): Use GCC vector extensions; remove cast.
25668 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
25669 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
25670 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
25671 Fix type signature; remove cast.
25672
25673 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
25674
25675 PR target/60825
25676 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
25677 V1DFmode.
25678 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
25679 add V1DFmode
25680 (BUILTIN_VD1): New.
25681 (BUILTIN_VD_RE): Remove.
25682 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
25683 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
25684 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
25685 variant but not df.
25686 (vreinterpretv1df*, vreinterpret*v1df): New.
25687 (vreinterpretdf*, vreinterpret*df): Remove.
25688 * config/aarch64/aarch64-simd.md (aarch64_create,
25689 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
25690 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
25691 (VD1): New.
25692 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
25693 (vcreate_f64): Remove cast, use v1df builtin.
25694 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
25695 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
25696 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
25697 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
25698 vmov_n_f64, vst1_f64): Use gcc vector extensions.
25699 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
25700 add range check using __builtin_aarch64_im_lane_boundsi.
25701 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
25702 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
25703 type signature, use gcc vector extensions.
25704 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
25705 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
25706 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
25707 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
25708 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
25709 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
25710 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
25711 vreinterpret_u64_f64): Use v1df builtin not df.
25712
25713 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
25714
25715 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
25716 vector registers.
25717
25718 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
25719
25720 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
25721 priority directly.
25722
25723 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25724
25725 * loop-invariant.c (pre_check_invariant_p): New function.
25726 (find_invariant_insn): Call pre_check_invariant_p.
25727
25728 2014-06-22 Richard Henderson <rth@redhat.com>
25729
25730 PR target/61565
25731 * compare-elim.c (struct comparison): Add eh_note.
25732 (find_comparison_dom_walker::before_dom_children): Don't eliminate
25733 a redundant comparison in a different EH region. Purge EH edges if
25734 necessary.
25735
25736 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
25737
25738 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
25739 (var_shift): Use it.
25740 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
25741 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
25742 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
25743 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
25744 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
25745 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
25746 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
25747 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
25748 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
25749 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
25750 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
25751 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
25752 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
25753 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
25754 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
25755 *rotldi3_internal15be): Use the new attribute. Merge register and
25756 integer alternatives.
25757
25758 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
25759
25760 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
25761 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
25762 split, *ashrdi3_internal3 and split): Delete, merge into...
25763 (ashr<mode>3): New expander.
25764 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
25765 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
25766
25767 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
25768
25769 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
25770 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
25771 *rotldi3_internal3 and split): Delete, merge into...
25772 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
25773 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
25774 Use "rotlw" extended mnemonic.
25775
25776 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
25777
25778 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
25779 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
25780 and split, *ashldi3_internal3 and split): Delete, merge into...
25781 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
25782 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
25783
25784 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
25785
25786 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
25787 (lshrsi3, two anonymous define_insns and define_splits,
25788 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
25789 *lshrdi3_internal3 and split): Delete, merge into...
25790 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
25791 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
25792
25793 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
25794
25795 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
25796 Remove "O" alternative.
25797
25798 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
25799
25800 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
25801 (mips_move_from_gpr_cost): Likewise.
25802 (mips_register_move_cost): Update accordingly.
25803 (mips_secondary_reload_class): Remove name of in_p.
25804
25805 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
25806
25807 PR target/61503
25808 * config/i386/i386.md (x86_64_shrd, x86_shrd,
25809 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
25810
25811 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25812
25813 * config/nios2/nios2.c: Include "builtins.h".
25814
25815 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
25816
25817 * cgraph.h (tls_model_names): New variable.
25818 * print-tree.c (print_node): Simplify.
25819 * varpool.c (tls_model_names): New variable.
25820 (dump_varpool_node): Output tls model.
25821
25822 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
25823
25824 * ipa-visibility.c (function_and_variable_visibility): Disable
25825 temporarily local aliases for some targets.
25826
25827 2014-06-20 Marek Polacek <polacek@redhat.com>
25828
25829 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
25830 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
25831 into SANITIZE_UNDEFINED.
25832 * doc/invoke.texi: Describe -fsanitize=bounds.
25833 * gimplify.c (gimplify_call_expr): Add gimplification of internal
25834 functions created in the FEs.
25835 * internal-fn.c: Move "internal-fn.h" after "tree.h".
25836 (expand_UBSAN_BOUNDS): New function.
25837 * internal-fn.def (UBSAN_BOUNDS): New internal function.
25838 * internal-fn.h: Don't define internal functions here.
25839 * opts.c (common_handle_option): Add -fsanitize=bounds.
25840 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
25841 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
25842 * tree-core.h: Define internal functions here.
25843 (struct tree_base): Add ifn field.
25844 * tree-pretty-print.c: Include "internal-fn.h".
25845 (dump_generic_node): Handle functions without CALL_EXPR_FN.
25846 * tree.c (get_callee_fndecl): Likewise.
25847 (build_call_expr_internal_loc): New function.
25848 * tree.def (CALL_EXPR): Update description.
25849 * tree.h (CALL_EXPR_IFN): Define.
25850 (build_call_expr_internal_loc): Declare.
25851 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
25852 types.
25853 (ubsan_type_descriptor): Change bool parameter to enum
25854 ubsan_print_style. Adjust the code. Add handling of
25855 UBSAN_PRINT_ARRAY.
25856 (ubsan_expand_bounds_ifn): New function.
25857 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
25858 (ubsan_build_overflow_builtin): Likewise.
25859 (instrument_bool_enum_load): Likewise.
25860 (ubsan_instrument_float_cast): Likewise.
25861 * ubsan.h (enum ubsan_print_style): New enum.
25862 (ubsan_expand_bounds_ifn): Declare.
25863 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
25864
25865 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
25866
25867 * config/rs6000/rs6000.md: Append `DONE' to preparation
25868 statements of `bswap' pattern splitters.
25869
25870 2014-06-20 Tom de Vries <tom@codesourcery.com>
25871
25872 * target.def (call_fusage_contains_non_callee_clobbers): Update
25873 definition.
25874 * doc/tm.texi: Regenerate.
25875
25876 2014-06-20 Yury Gribov <y.gribov@samsung.com>
25877 Max Ostapenko <m.ostapenko@partner.samsung.com>
25878
25879 PR sanitizer/61547
25880 * asan.c (instrument_strlen_call): Fixed instrumentation of
25881 trailing byte.
25882
25883 2014-06-20 Martin Jambor <mjambor@suse.cz>
25884
25885 PR ipa/61540
25886 * ipa-prop.c (impossible_devirt_target): New function.
25887 (try_make_edge_direct_virtual_call): Use it, also instead of
25888 asserting.
25889
25890 2014-06-20 Yury Gribov <y.gribov@samsung.com>
25891 Max Ostapenko <m.ostapenko@partner.samsung.com>
25892
25893 PR sanitizer/61530
25894 * asan.c (build_check_stmt): Add condition.
25895
25896 2014-06-20 Martin Jambor <mjambor@suse.cz>
25897
25898 PR ipa/61211
25899 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
25900 expanded clones.
25901
25902 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25903
25904 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
25905 Update comments.
25906 (VCONQ): Make comment more helpful.
25907 (VCON): Delete.
25908 * config/aarch64/aarch64-simd.md
25909 (aarch64_sqdmulh_lane<mode>):
25910 Use VCOND for operands 2. Update lane checking and flipping logic.
25911 (aarch64_sqrdmulh_lane<mode>): Likewise.
25912 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
25913 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
25914 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
25915 attribute of operand 3 to VCOND.
25916 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
25917 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25918 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
25919 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
25920 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25921 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
25922 define_insn.
25923 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
25924 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
25925 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
25926 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
25927 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
25928 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
25929 operand to VCOND. Update lane flipping and bounds checking logic.
25930 (aarch64_sqdmlal2_lane<mode>): Likewise.
25931 (aarch64_sqdmlsl_lane<mode>): Likewise.
25932 (aarch64_sqdmull_lane<mode>): Likewise.
25933 (aarch64_sqdmull2_lane<mode>): Likewise.
25934 (aarch64_sqdmlal_laneq<mode>):
25935 Replace VCON usage with VCONQ.
25936 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
25937 (aarch64_sqdmlal2_laneq<mode>): Emit
25938 aarch64_sqdmlal2_laneq<mode>_internal insn.
25939 Replace VCON with VCONQ.
25940 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
25941 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
25942 (aarch64_sqdmull_laneq<mode>): Emit
25943 aarch64_sqdmull_laneq<mode>_internal insn.
25944 Replace VCON with VCONQ.
25945 (aarch64_sqdmull2_laneq<mode>): Emit
25946 aarch64_sqdmull2_laneq<mode>_internal insn.
25947 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
25948 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
25949 of 3rd argument to int16x4_t.
25950 (vqdmlalh_lane_s16): Likewise.
25951 (vqdmlslh_lane_s16): Likewise.
25952 (vqdmull_high_lane_s16): Likewise.
25953 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
25954 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
25955 (vqdmlsl_lane_s16): Likewise.
25956 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
25957 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
25958 (vqdmlals_lane_s32): Likewise.
25959 (vqdmlsls_lane_s32): Likewise.
25960 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
25961 (vqdmulls_lane_s32): Likewise.
25962 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
25963 (vqdmlsl_lane_s32): Likewise.
25964 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
25965 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
25966 (vqrdmulhh_lane_s16): Likewise.
25967 (vqdmlsl_high_lane_s16): Likewise.
25968 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
25969 (vqdmlsl_high_lane_s32): Likewise.
25970 (vqrdmulhs_lane_s32): Likewise.
25971
25972 2014-06-20 Tom de Vries <tom@codesourcery.com>
25973
25974 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
25975 get_call_reg_set_usage.
25976
25977 2014-06-20 Tom de Vries <tom@codesourcery.com>
25978
25979 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
25980 it contains all call_used_regs.
25981
25982 2014-06-20 Tom de Vries <tom@codesourcery.com>
25983
25984 * final.c (collect_fn_hard_reg_usage): Add and use variable
25985 function_used_regs.
25986
25987 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
25988
25989 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
25990 (set_init_priority, get_init_priority, set_fini_priority,
25991 get_fini_priority): New methods.
25992 * tree.c (init_priority_for_decl): Remove.
25993 (init_ttree): Do not initialize init priority.
25994 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
25995 (decl_priority_info): Remove.
25996 (decl_init_priority_insert): Rewrite.
25997 (decl_fini_priority_insert): Rewrite.
25998 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
25999 tree_priority_map_marked_p): Remove.
26000 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
26001 * lto-streamer-out.c (hash_tree): Do not hash priorities.
26002 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
26003 not output priorities.
26004 (pack_ts_function_decl_value_fields): Likewise.
26005 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
26006 not input priorities.
26007 (unpack_ts_function_decl_value_fields): Likewise.
26008 * symtab.c (symbol_priority_map): Declare.
26009 (init_priority_hash): Declare.
26010 (symtab_unregister_node): Unregister from priority hash, too.
26011 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
26012 New methods.
26013 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
26014 (symbol_priority_info): New function.
26015 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
26016 New methods.
26017 * tree-core.h (tree_priority_map): Remove.
26018
26019 2014-06-20 Jakub Jelinek <jakub@redhat.com>
26020
26021 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
26022 0xff to uint64_t before shifting it up.
26023
26024 2014-06-20 Julian Brown <julian@codesourcery.com>
26025 Chung-Lin Tang <cltang@codesourcery.com>
26026
26027 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
26028 TARGET_THUMB1_ONLY. Add comments.
26029
26030 2014-06-19 Tom de Vries <tom@codesourcery.com>
26031
26032 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
26033 return type to void.
26034 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
26035
26036 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26037
26038 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
26039 as "move", from depends_on.
26040
26041 2014-06-19 Terry Guo <terry.guo@arm.com>
26042
26043 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
26044 stage.
26045
26046 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
26047
26048 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
26049 Remove cr5.
26050 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
26051
26052 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
26053
26054 PR target/61550
26055 * config/sh/sh.c (prepare_move_operands): Don't process TLS
26056 addresses here if reload in progress or completed.
26057
26058 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
26059
26060 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
26061 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
26062 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
26063 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
26064 (mips_register_priority): New function that implements the target
26065 hook TARGET_REGISTER_PRIORITY.
26066 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
26067 (mips_lra_p): Likewise for TARGET_LRA_P.
26068 (TARGET_REGISTER_PRIORITY): Define macro.
26069 (TARGET_SPILL_CLASS): Likewise.
26070 (TARGET_LRA_P): Likewise.
26071 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
26072 classes.
26073 (REG_CLASS_NAMES): Likewise.
26074 (REG_CLASS_CONTENTS): Likewise.
26075 (BASE_REG_CLASS): Use M16_SP_REGS.
26076 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
26077 New set attribute to enable alternatives depending on the register
26078 allocator used.
26079 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
26080 (*lea64): Disable pattern for MIPS16.
26081 * config/mips/mips.opt (mlra): New option.
26082
26083 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
26084
26085 * lra-constraints.c (base_to_reg): New function.
26086 (process_address): Use new function.
26087
26088 2014-06-18 Tom de Vries <tom@codesourcery.com>
26089
26090 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
26091 * config/aarch64/aarch64.c
26092 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
26093 (aarch64_emit_call_insn): New function.
26094 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
26095 of emit_call_insn.
26096 * config/aarch64/aarch64.md (define_expand "call_internal")
26097 (define_expand "call_value_internal", define_expand "sibcall_internal")
26098 (define_expand "sibcall_value_internal"): New.
26099 (define_expand "call", define_expand "call_value")
26100 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
26101 expand variant and aarch64_emit_call_insn.
26102
26103 2014-06-18 Radovan Obradovic <robradovic@mips.com>
26104 Tom de Vries <tom@codesourcery.com>
26105
26106 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
26107 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
26108 Redefine to true.
26109 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
26110 clobbers to CALL_INSN_FUNCTION_USAGE.
26111 (define_expand "sibcall_internal")
26112 (define_expand "sibcall_value_internal"): New.
26113 (define_expand "call", define_expand "call_value"): Add argument to
26114 arm_emit_call_insn.
26115 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
26116 (define_expand "sibcall_value"): Use sibcall_value_internal and
26117 arm_emit_call_insn.
26118
26119 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26120
26121 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
26122
26123 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26124
26125 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
26126 __udivmoddi4.
26127
26128 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26129
26130 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
26131 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
26132 annotations. Fix DWARF information.
26133
26134 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26135
26136 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
26137 __udivmoddi4, and fixups for negative operands.
26138
26139 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26140
26141 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
26142
26143 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26144
26145 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
26146 to __udivmoddi4.
26147
26148 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26149
26150 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
26151 manipulation.
26152
26153 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26154
26155 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
26156 describing register usage on function entry and exit.
26157
26158 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26159
26160 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
26161 (__aeabi_ldivmod): Fix whitespace.
26162
26163 2014-06-18 Andreas Schwab <schwab@suse.de>
26164
26165 * doc/md.texi (Standard Names): Use @itemx for grouped items.
26166 Remove blank line after @item.
26167
26168 2014-06-18 Richard Henderson <rth@redhat.com>
26169
26170 PR target/61545
26171 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
26172
26173 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
26174
26175 * config/arm/arm.c (neon_vector_mem_operand): Allow register
26176 POST_MODIFY for neon loads and stores.
26177 (arm_print_operand): Output post-index register for neon loads and
26178 stores.
26179
26180 2014-06-18 Richard Biener <rguenther@suse.de>
26181
26182 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
26183
26184 2014-06-18 Richard Biener <rguenther@suse.de>
26185
26186 * tree-pass.h (make_pass_dce_loop): Remove.
26187 * passes.def: Replace pass_dce_loop with pass_dce.
26188 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
26189 changed free niter estimates and reset the scev cache.
26190 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
26191 make_pass_dce_loop): Remove.
26192 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
26193 (fini_copy_prop): Return whether something changed. Always
26194 let substitute_and_fold perform DCE and free niter estimates
26195 and reset the scev cache if so.
26196 (execute_copy_prop): If sth changed schedule cleanup-cfg.
26197 (pass_data_copy_prop): Do not unconditionally schedule
26198 cleanup-cfg or update-ssa.
26199
26200 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
26201
26202 PR tree-optimization/61518
26203 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
26204 reduction var is used in reduction stmt or phi-function only.
26205
26206 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26207
26208 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
26209
26210 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
26211
26212 PR tree-optimization/61517
26213 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
26214 whose rhs's first tree is the source expression instead of the
26215 expression itself.
26216 (find_bswap_or_nop): Likewise.
26217 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
26218 gimple stmt whose rhs's first tree is the source. In the memory source
26219 case, move the stmt to be replaced close to one of the original load to
26220 avoid the problem of a store between the load and the stmt's original
26221 location.
26222 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
26223 signature.
26224
26225 2014-06-18 Andreas Schwab <schwab@suse.de>
26226
26227 PR rtl-optimization/54555
26228 * postreload.c (move2add_use_add2_insn): Substitute
26229 STRICT_LOW_PART only if it is cheaper.
26230
26231 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
26232
26233 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
26234 Do not use unspec as call operand. Use memory_operand instead of
26235 memory_nox32_operand and add "m" operand constraint. Disable
26236 pattern for TARGET_X32.
26237 (*sibcall_pop_memory): Ditto.
26238 (*sibcall_value_memory): Ditto.
26239 (*sibcall_value_pop_memory): Ditto.
26240 (sibcall peepholes): Merge SImode and DImode patterns using
26241 W mode iterator. Use memory_operand instead of memory_nox32_operand.
26242 Disable pattern for TARGET_X32. Check if eliminated register is
26243 really dead after call insn. Generate call RTX without unspec operand.
26244 (sibcall_value peepholes): Ditto.
26245 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
26246 instead of memory_nox32_operand. Check if eliminated register is
26247 really dead after call insn. Generate call RTX without unspec operand.
26248 (sibcall_value_pop peepholes): Ditto.
26249 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
26250
26251 2014-06-18 Terry Guo <terry.guo@arm.com>
26252
26253 PR target/61544
26254 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
26255 reach the head.
26256
26257 2014-06-18 Olivier Hainque <hainque@adacore.com>
26258
26259 * tree-core.h (tree_block): Add an "end_locus" field, allowing
26260 memorization of the end of block source location.
26261 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
26262 * gimplify.c (gimplify_bind_expr): Propagate the block start and
26263 end source location info we have on the block entry/exit code we
26264 generate.
26265
26266 2014-06-18 Richard Biener <rguenther@suse.de>
26267
26268 * common.opt (fssa-phiopt): New option.
26269 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
26270 but not with -Og.
26271 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
26272 * doc/invoke.texi (-fssa-phiopt): Document.
26273
26274 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26275
26276 * genattrtab.c (n_bypassed): New variable.
26277 (process_bypasses): Initialise n_bypassed.
26278 Count number of bypassed reservations.
26279 (make_automaton_attrs): Allocate space for bypassed reservations
26280 rather than number of bypasses.
26281
26282 2014-06-18 Richard Biener <rguenther@suse.de>
26283
26284 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
26285 we propagated anything.
26286 (substitute_and_fold_dom_walker::before_dom_children): Something
26287 changed if we propagated into PHI arguments.
26288 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
26289 we removed a stmt.
26290
26291 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
26292
26293 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
26294 vector case.
26295 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
26296 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
26297 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
26298 Introduces alternative way of loads group permutaions.
26299 (vect_transform_grouped_load): Try alternative way of permutations.
26300
26301 2014-06-18 Jakub Jelinek <jakub@redhat.com>
26302
26303 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
26304 changed in ORT_TARGET region, don't jump to do_outer.
26305 (struct gimplify_adjust_omp_clauses_data): New type.
26306 (gimplify_adjust_omp_clauses_1): Adjust for data being
26307 a struct gimplify_adjust_omp_clauses_data pointer instead
26308 of tree *. Pass pre_p as a new argument to
26309 lang_hooks.decls.omp_finish_clause hook.
26310 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
26311 splay_tree_foreach to pass both list_p and pre_p.
26312 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
26313 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
26314 gimplify_adjust_omp_clauses callers.
26315 * langhooks.c (lhd_omp_finish_clause): New function.
26316 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
26317 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
26318 * langhooks.h (struct lang_hooks_for_decls): Add a new
26319 gimple_seq * argument to omp_finish_clause hook.
26320 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
26321 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
26322 (scan_omp_parallel, lower_omp_for): When adding
26323 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
26324 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
26325 * tree-nested.c (convert_nonlocal_omp_clauses,
26326 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
26327 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
26328
26329 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
26330
26331 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
26332 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
26333
26334 2014-06-17 Xinliang David Li <davidxl@google.com>
26335
26336 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
26337 * passes.c (pass_init_dump_file): Do not set initialize
26338 flag to false unconditionally.
26339
26340 2014-06-17 Richard Biener <rguenther@suse.de>
26341
26342 * genopinit.c (main): Use vec<>::qsort method.
26343 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
26344 Likewise.
26345 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
26346
26347 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
26348
26349 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
26350 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
26351 (mips_move_to_gpr_cost): Remove ST_REGS case.
26352 (mips_move_from_gpr_cost): Likewise.
26353 (mips_register_move_cost): Likewise.
26354 (mips_secondary_reload_class): Likewise.
26355
26356 2014-06-17 Richard Biener <rguenther@suse.de>
26357
26358 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
26359 (pass_all_optimizations): Move 3rd copy-prop pass from after
26360 fre to before ifcombine/phiopt.
26361
26362 2014-06-17 Richard Biener <rguenther@suse.de>
26363
26364 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
26365 and allow all blocks to be forwarders.
26366
26367 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
26368
26369 PR target/61483
26370 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
26371 variable 'size'; calculate 'size' right in the front; use
26372 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
26373 pcum->aapcs_stack_words.
26374
26375 2014-06-17 Nick Clifton <nickc@redhat.com>
26376
26377 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
26378 (umulhi3, mulsidi3, umulsidi3): Likewise.
26379
26380 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
26381
26382 PR middle-end/61508
26383 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
26384 check for section name.
26385
26386 2014-06-17 Richard Biener <rguenther@suse.de>
26387
26388 * tree-ssa-propagate.c: Include domwalk.h.
26389 (substitute_and_fold): Outline main worker into a domwalker ...
26390 (substitute_and_fold_dom_walker::before_dom_children): ... here.
26391 Schedule stmts we can fully propagate for removal. Remove
26392 poor-mans DCE.
26393 (substitute_and_fold): Apply a dominator walk to perform
26394 substitution. Process stmts scheduled for removal here.
26395
26396 2014-06-17 Richard Biener <rguenther@suse.de>
26397
26398 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
26399 of PHI node moving.
26400
26401 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
26402
26403 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
26404 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
26405 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
26406 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
26407 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
26408 TARGET_HARD_FLOAT.
26409 (get_fpscr) : Likewise.
26410
26411 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
26412
26413 PR rtl-optimization/61325
26414 * lra-constraints.c (valid_address_p): Add forward declaration.
26415 (simplify_operand_subreg): Check address validity before and after
26416 alter_reg of memory subreg.
26417
26418 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
26419
26420 * config/i386/i386.c (decide_alg): Correctly handle
26421 maximum size of stringop algorithm.
26422
26423 2014-06-16 Yury Gribov <y.gribov@samsung.com>
26424
26425 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
26426
26427 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
26428
26429 PR rtl-optimization/61522
26430 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
26431
26432 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
26433
26434 Revert:
26435 * symtab.c (symtab_node::reset_section): New method.
26436 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
26437 for localization.
26438 * cgraph.h (reset_section): Declare.
26439 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
26440 do not consider comdat locals.
26441 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
26442 for new symbol.
26443 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
26444 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
26445 reset sections of symbols dragged out of the comdats.
26446 (function_and_variable_visibility): Reset sections of
26447 localized symbols.
26448
26449 2014-06-16 Richard Biener <rguenther@suse.de>
26450
26451 PR tree-optimization/61482
26452 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
26453 [-INF(OVF), +INF(OVF)] range.
26454
26455 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
26456
26457 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
26458 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
26459 handling 32-bit multiplication.
26460
26461 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
26462
26463 PR middle-end/61430
26464 * lra-lives.c (process_bb_lives): Skip creating copy during
26465 insn scan when src/dest has constrained to same regno.
26466
26467 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
26468
26469 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
26470 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
26471
26472 2014-06-16 Yury Gribov <y.gribov@samsung.com>
26473
26474 * asan.c (check_func): New function.
26475 (maybe_create_ssa_name): Likewise.
26476 (build_check_stmt_with_calls): Likewise.
26477 (use_calls_p): Likewise.
26478 (report_error_func): Change interface.
26479 (build_check_stmt): Allow non-integer lengths; add support
26480 for new parameter.
26481 (asan_instrument): Likewise.
26482 (instrument_mem_region_access): Moved code to build_check_stmt.
26483 (instrument_derefs): Likewise.
26484 (instrument_strlen_call): Likewise.
26485 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
26486 * doc/invoke.texi: Describe new parameter.
26487 * params.def: Define new parameter.
26488 * params.h: Likewise.
26489 * sanitizer.def: Describe new builtins.
26490
26491 2014-06-16 Richard Biener <rguenther@suse.de>
26492
26493 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
26494 Make all defs available at the end.
26495 (eliminate): If we remove a PHI node schedule cfg-cleanup.
26496
26497 2014-06-18 Jakub Jelinek <jakub@redhat.com>
26498
26499 PR plugins/45078
26500 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
26501
26502 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
26503
26504 PR bootstrap/61516
26505 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
26506 initialization. Replace remaining use of uid.
26507
26508 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
26509
26510 * c-family/c-common.c (handle_tls_model_attribute): Use
26511 set_decl_tls_model.
26512 * c-family/c-common.c (handle_tls_model_attribute): Use
26513 set_decl_tls_model.
26514 * cgraph.h (struct varpool_node): Add tls_model.
26515 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
26516 * tree.h (DECL_TLS_MODEL): Update.
26517 (DECL_THREAD_LOCAL_P): Check that variable is static.
26518 (decl_tls_model): Declare.
26519 (set_decl_tls_model): Declare.
26520 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
26521 set symbol prorperties.
26522 (get_emutls_init_templ_addr): Cleanup.
26523 (new_emutls_decl): Update.
26524 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
26525 (lto_input_varpool_node): Likewise.
26526 * lto-streamer-out.c (hash_tree): Likewise.
26527 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
26528 not stream DECL_TLS_MODEL.
26529 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
26530 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
26531
26532 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
26533
26534 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
26535
26536 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
26537
26538 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
26539 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
26540 lists.
26541 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
26542 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
26543 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
26544 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
26545 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
26546 (df_get_artificial_defs, df_get_artificial_uses)
26547 (df_single_def, df_single_use): Update accordingly.
26548 (df_refs_chain_dump): Take the first element in a linked list as
26549 parameter, rather than a pointer to an array of pointers.
26550 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
26551 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
26552 (df_chain_create_bb_process_use): Likewise.
26553 (df_md_bb_local_compute_process_def): Likewise.
26554 * fwprop.c (process_defs, process_uses): Likewise.
26555 (register_active_defs, update_uses): Likewise.
26556 (forward_propagate_asm): Update for new df_ref linking.
26557 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
26558 (df_null_ref_rec, df_null_mw_rec): Likewise.
26559 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
26560 explicitly.
26561 (df_scan_free_bb_info): Remove check for null artificial_defs.
26562 (df_install_ref_incremental): Adjust for new df_ref linking.
26563 Use a single-element insertion rather than a full sort.
26564 (df_ref_chain_delete_du_chain): Take the first element
26565 in a linked list as parameter, rather than a pointer to an array of
26566 pointers.
26567 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
26568 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
26569 (df_insn_info_delete): Remove check for null defs and call to
26570 df_scan_free_mws_vec.
26571 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
26572 null rather than df_null_*_rec.
26573 (df_insn_rescan_debug_internal): Likewise, and update null
26574 checks in the same way. Remove check for null defs.
26575 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
26576 Move a single element rather doing a full sort.
26577 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
26578 linking.
26579 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
26580 Initialize df_ref and df_mw_hardreg lists to null rather than
26581 df_null_*_rec.
26582 (df_ref_compare): Take df_refs as parameter, transferring the
26583 old interface to...
26584 (df_ref_ptr_compare): ...this new function.
26585 (df_sort_and_compress_refs): Update accordingly.
26586 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
26587 old interface to...
26588 (df_mw_ptr_compare): ...this new function.
26589 (df_sort_and_compress_mws): Update accordingly.
26590 (df_install_refs, df_install_mws): Return a linked list rather than
26591 an array of pointers.
26592 (df_refs_add_to_chains): Assert that old lists are empty rather
26593 than freeing them.
26594 (df_insn_refs_verify): Don't handle null defs speciailly.
26595 * web.c (union_match_dups): Update for new df_ref linking.
26596
26597 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
26598
26599 * df.h (df_ref_create, df_ref_remove): Delete.
26600 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
26601 (df_ref_remove): Likewise.
26602
26603 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
26604
26605 * df.h (df_single_def, df_single_use): New functions.
26606 * ira.c (find_moveable_pseudos): Use them.
26607
26608 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
26609
26610 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
26611 * df-problems.c (df_note_bb_compute): Use it.
26612 * regstat.c (regstat_bb_compute_ri): Likewise.
26613
26614 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
26615
26616 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
26617 * cse.c (cse_extended_basic_block): Use them.
26618 * dce.c (mark_artificial_use): Likewise.
26619 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
26620 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
26621 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
26622 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
26623 (df_simulate_initialize_backwards): Likewise.
26624 (df_simulate_finalize_backwards): Likewise.
26625 (df_simulate_initialize_forwards): Likewise.
26626 (df_md_simulate_artificial_defs_at_top): Likewise.
26627 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
26628 * regrename.c (init_rename_info): Likewise.
26629 * regstat.c (regstat_bb_compute_ri): Likewise.
26630 (regstat_bb_compute_calls_crossed): Likewise.
26631
26632 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
26633
26634 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
26635 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
26636 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
26637 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
26638 * combine.c (create_log_links): Likewise.
26639 * compare-elim.c (find_flags_uses_in_insn): Likewise.
26640 (try_eliminate_compare): Likewise.
26641 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
26642 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
26643 (remove_reg_equal_equiv_notes_for_defs): Likewise.
26644 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
26645 (word_dce_process_block, dce_process_block): Likewise.
26646 * ddg.c (def_has_ccmode_p): Likewise.
26647 * df-core.c (df_bb_regno_first_def_find): Likewise.
26648 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
26649 * df-problems.c (df_rd_simulate_one_insn): Likewise.
26650 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
26651 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
26652 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
26653 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
26654 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
26655 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
26656 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
26657 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
26658 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
26659 * fwprop.c (local_ref_killed_between_p): Likewise.
26660 (all_uses_available_at, free_load_extend): Likewise.
26661 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
26662 * hw-doloop.c (scan_loop): Likewise.
26663 * ifcvt.c (dead_or_predicable): Likewise.
26664 * init-regs.c (initialize_uninitialized_regs): Likewise.
26665 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
26666 (process_bb_node_lives): Likewise.
26667 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
26668 (find_moveable_pseudos): Likewise.
26669 * loop-invariant.c (check_dependencies, record_uses): Likewise.
26670 * recog.c (peep2_find_free_register): Likewise.
26671 * ree.c (get_defs): Likewise.
26672 * regstat.c (regstat_bb_compute_ri): Likewise.
26673 (regstat_bb_compute_calls_crossed): Likewise.
26674 * sched-deps.c (find_inc, find_mem): Likewise.
26675 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
26676 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
26677 * shrink-wrap.c (requires_stack_frame_p): Likewise.
26678 (prepare_shrink_wrap): Likewise.
26679 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
26680 * web.c (union_defs, pass_web::execute): Likewise.
26681 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
26682 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
26683
26684 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
26685
26686 * lra-assign.c (assign_by_spills): Add code to assign vector regs
26687 to inheritance pseudos.
26688 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
26689
26690 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
26691
26692 PR target/61415
26693 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
26694 (BU_MISC_2): Rename to ...
26695 (BU_LDBL128_2): ... this.
26696 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
26697 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
26698 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
26699 RS6000_BTM_LDBL128.
26700 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
26701 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
26702 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
26703 (unpacktf_1): Likewise.
26704 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
26705 (__builtin_longdouble_dw1): Likewise.
26706 * doc/sourcebuild.texi (longdouble128): Document.
26707
26708 2014-06-13 Jeff Law <law@redhat.com>
26709
26710 PR rtl-optimization/61094
26711 PR rtl-optimization/61446
26712 * ree.c (combine_reaching_defs): Get the mode for the copy from
26713 the extension insn rather than the defining insn.
26714
26715 2014-06-13 Dehao Chen <dehao@google.com>
26716
26717 * dwarf2out.c (add_linkage_name): Emit more linkage name.
26718
26719 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
26720
26721 * doc/install.texi (--enable-linker-plugin-configure-flags)
26722 (--enable-linker-plugin-flags): Document new flags.
26723
26724 2014-06-13 Martin Jambor <mjambor@suse.cz>
26725
26726 PR ipa/61186
26727 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
26728 cache_token if returning early.
26729
26730 2014-06-13 Nick Clifton <nickc@redhat.com>
26731
26732 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
26733 requested alignment is active.
26734 (LABEL_ALIGN): Likewise.
26735 (LOOP_ALIGN): Likewise.
26736
26737 2014-06-13 Richard Biener <rguenther@suse.de>
26738
26739 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
26740 Rewrite to propagate the VN result into all uses where
26741 possible and to remove stmts becoming dead because of that.
26742 (eliminate): Generalize stmt removal handling, remove in
26743 reverse dominator order to support proper debug stmt
26744 generation. Update stmts before removing stmts.
26745 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
26746
26747 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
26748
26749 PR tree-optimization/61375
26750 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
26751 symbolic number cannot be represented in an uint64_t.
26752 (find_bswap_or_nop_1): Likewise.
26753
26754 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
26755
26756 * symtab.c (symtab_node::reset_section): New method.
26757 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
26758 for localization.
26759 * cgraph.h (reset_section): Declare.
26760 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
26761 do not consider comdat locals.
26762 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
26763 for new symbol.
26764 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
26765 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
26766 reset sections of symbols dragged out of the comdats.
26767 (function_and_variable_visibility): Reset sections of
26768 localized symbols.
26769
26770 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
26771
26772 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
26773 to use symtab and decl_binds_to_current_def_p
26774 * tree-vectorizer.c (increase_alignment): Increase alignment
26775 of alias target, too.
26776
26777 2014-06-12 Jakub Jelinek <jakub@redhat.com>
26778
26779 PR middle-end/61486
26780 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
26781 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
26782 if outer combined construct is distribute.
26783 (gimplify_omp_for): For OMP_DISTRIBUTE set
26784 gimplify_omp_ctxp->distribute.
26785 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
26786 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
26787 mapping into decl map.
26788
26789 2014-06-12 Jason Merrill <jason@redhat.com>
26790
26791 * common.opt (fabi-version): Change default to 0.
26792
26793 2014-06-12 Jason Merrill <jason@redhat.com>
26794
26795 * toplev.c (process_options): Reject -fabi-version=1.
26796
26797 2014-06-12 Jeff Law <law@redhat.com>
26798
26799 PR tree-optimization/61009
26800 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
26801 value when we stop processing a block due to problematic PHIs.
26802
26803 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
26804
26805 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
26806 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
26807 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
26808 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
26809 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
26810 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
26811 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
26812 are not in the spec.
26813
26814 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
26815
26816 PR target/59843
26817 * config/aarch64/aarch64-modes.def: Add V1DFmode.
26818 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
26819 Support V1DFmode.
26820
26821 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
26822
26823 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
26824
26825 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
26826
26827 PR target/61443
26828 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
26829 loading from address spaces.
26830
26831 2014-06-12 Martin Liska <mliska@suse.cz>
26832
26833 PR ipa/61462
26834 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
26835 statement is reachable.
26836
26837 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
26838
26839 * symtab.c (section_hash): New hash.
26840 (symtab_unregister_node): Clear section before freeing.
26841 (hash_section_hash_entry): New haser.
26842 (eq_sections): New function.
26843 (symtab_node::set_section_for_node): New method.
26844 (set_section_1): Update.
26845 (symtab_node::set_section): Take string instead of tree as parameter.
26846 (symtab_resolve_alias): Update.
26847 * cgraph.h (section_hash_entry_d): New structure.
26848 (section_hash_entry): New typedef.
26849 (cgraph_node): Change comdat_group_ to x_comdat_group,
26850 change section_ to x_section and turn into section_hash_entry;
26851 update accestors; put set_section_for_node offline.
26852 * tree.c (decl_section_name): Turn into string.
26853 (set_decl_section_name): Change parameter to be string.
26854 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
26855 * sdbout.c (sdbout_one_type): Update.
26856 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
26857 * varasm.c (IN_NAMED_SECTION, get_named_section,
26858 resolve_unique_section, hot_function_section, get_named_text_section,
26859 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
26860 make_decl_rtl, default_unique_section): Update.
26861 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
26862 (c6x_elf_unique_section): Update.
26863 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
26864 * config/pa/pa.c (pa_function_section): Update.
26865 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
26866 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
26867 * config/arc/arc.c (arc_in_small_data_p): Update.
26868 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
26869 * config/mcore/mcore.c (mcore_unique_section): Update.
26870 * config/mips/mips.c (mips16_build_function_stub): Update.
26871 (mips16_build_call_stub): Update.
26872 (mips_function_rodata_section): Update.
26873 (mips_in_small_data_p): Update.
26874 * config/score/score.c (score_in_small_data_p): Update.
26875 * config/rx/rx.c (rx_in_small_data): Update.
26876 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
26877 (rs6000_xcoff_asm_named_section): Update.
26878 (rs6000_xcoff_unique_section): Update.
26879 * config/frv/frv.c (frv_string_begins_with): Update.
26880 (frv_in_small_data_p): Update.
26881 * config/v850/v850.c (v850_encode_data_area): Update.
26882 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
26883 (bfin_handle_l1_data_attribute): Update.
26884 (bfin_handle_l2_attribute): Update.
26885 * config/mep/mep.c (mep_unique_section): Update.
26886 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
26887 Update.
26888 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
26889 (h8300_handle_tiny_data_attribute): Update.
26890 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
26891 (m32r_in_small_data_p): Update.
26892 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
26893 * config/i386/i386.c (ix86_in_large_data_p): Update.
26894 * config/i386/winnt.c (i386_pe_unique_section): Update.
26895 * config/darwin.c (darwin_function_section): Update.
26896 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
26897 * tree-emutls.c (get_emutls_init_templ_addr): Update.
26898 (new_emutls_decl): Update.
26899 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
26900 input_varpool_node): Update.
26901 (ead_string_cst): Turn to ...
26902 (read_string): ... this one.
26903 * dwarf2out.c (secname_for_decl): Update.
26904 * asan.c (asan_protect_global): Update.
26905
26906 2014-06-11 DJ Delorie <dj@redhat.com>
26907
26908 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
26909 cache lines.
26910 * config/rx/rx.c (rx_option_override): Likewise.
26911 (rx_align_for_label): Likewise.
26912
26913 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
26914
26915 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
26916
26917 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
26918 prototype.
26919
26920 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
26921
26922 * common.md: New file.
26923 * doc/md.texi: Update description of generic, machine-independent
26924 constraints.
26925 * config/s390/constraints.md (e): Delete.
26926 * Makefile.in (md_file): Include common.md.
26927 * config/m32c/t-m32c (md_file): Likewise.
26928 * genpreds.c (general_mem): New array.
26929 (generic_constraint_letters): Remove constraints now defined by
26930 common.md.
26931 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
26932 Allow the first character to be '<' or '>' as well.
26933 * genoutput.c (general_mem): New array.
26934 (indep_constraints): Remove constraints now defined by common.md.
26935 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
26936 Remove special handling of 'm'.
26937 * ira-costs.c (record_reg_classes): Remove special handling of
26938 constraints now defined by common.md.
26939 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
26940 * ira-lives.c (single_reg_class): Likewise.
26941 (ira_implicitly_set_insn_hard_regs): Likewise.
26942 * lra-constraints.c (reg_class_from_constraints): Likewise.
26943 (process_alt_operands, process_address, curr_insn_transform): Likewise.
26944 * postreload.c (reload_cse_simplify_operands): Likewise.
26945 * reload.c (push_secondary_reload, scratch_reload_class)
26946 (find_reloads, alternative_allows_const_pool_ref): Likewise.
26947 * reload1.c (maybe_fix_stack_asms): Likewise.
26948 * targhooks.c (default_secondary_reload): Likewise.
26949 * stmt.c (parse_output_constraint): Likewise.
26950 * recog.c (preprocess_constraints): Likewise.
26951 (constrain_operands, peep2_find_free_register): Likewise.
26952 (asm_operand_ok): Likewise, but add a comment saying why 'o'
26953 must be handled specially.
26954
26955 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
26956
26957 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
26958 * genpreds.c (have_const_dbl_constraints): Delete.
26959 (add_constraint): Don't set it.
26960 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
26961 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
26962 constraints using the lookup_constraint logic.
26963 * ira-lives.c (single_reg_class): Likewise.
26964 * ira.c (ira_setup_alts): Likewise.
26965 * lra-constraints.c (process_alt_operands): Likewise.
26966 * recog.c (asm_operand_ok, constrain_operands): Likewise.
26967 * reload.c (find_reloads): Likewise.
26968
26969 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
26970
26971 * genpreds.c (const_int_start, const_int_end): New variables.
26972 (choose_enum_order): Output CONST_INT constraints before memory
26973 constraints.
26974 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
26975 Add CT_CONST_INT.
26976 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
26977 * ira.c (ira_setup_alts): Likewise.
26978 * lra-constraints.c (process_alt_operands): Likewise.
26979 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
26980 * reload.c (find_reloads): Likewise.
26981
26982 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
26983
26984 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
26985 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
26986 * recog.c (preprocess_constraints): Update accordingly.
26987
26988 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
26989
26990 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
26991 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
26992 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
26993 * genpreds.c (print_type_tree): New function.
26994 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
26995 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
26996 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
26997 Write out enum constraint_type and get_constraint_type.
26998 * lra-constraints.c (satisfies_memory_constraint_p): Take a
26999 constraint_num rather than a constraint string.
27000 (satisfies_address_constraint_p): Likewise.
27001 (reg_class_from_constraints): Avoid old constraint macros.
27002 (process_alt_operands, process_address_1): Likewise.
27003 (curr_insn_transform): Likewise.
27004 * ira-costs.c (record_reg_classes): Likewise.
27005 (record_operand_costs): Likewise.
27006 * ira-lives.c (single_reg_class): Likewise.
27007 (ira_implicitly_set_insn_hard_regs): Likewise.
27008 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
27009 * postreload.c (reload_cse_simplify_operands): Likewise.
27010 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
27011 (constrain_operands, peep2_find_free_register): Likewise.
27012 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
27013 (find_reloads, alternative_allows_const_pool_ref): Likewise.
27014 * reload1.c (maybe_fix_stack_asms): Likewise.
27015 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
27016 * targhooks.c (default_secondary_reload): Likewise.
27017 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
27018 to EXTRA_CONSTRAINT_STR.
27019 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
27020
27021 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
27022
27023 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
27024 (write_constraint_satisfied_p_array): ...this new function.
27025 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
27026 an array.
27027 (write_insn_preds_c): Update accordingly.
27028
27029 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
27030
27031 * genpreds.c (write_lookup_constraint): Rename to...
27032 (write_lookup_constraint_1): ...this.
27033 (write_lookup_constraint_array): New function.
27034 (write_tm_preds_h): Define lookup_constraint as an inline function
27035 that uses write_lookup_constraint_array where possible.
27036 (write_insn_preds_c): Update for the changes above.
27037
27038 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
27039
27040 * doc/md.texi (regclass_for_constraint): Rename to...
27041 (reg_class_for_constraint): ...this.
27042 * genpreds.c (num_constraints, enum_order, register_start)
27043 (register_end, satisfied_start, memory_start, memory_end)
27044 (address_start, address_end): New variables.
27045 (add_constraint): Count the number of constraints.
27046 (choose_enum_order): New function.
27047 (write_enum_constraint_num): Iterate over enum_order.
27048 (write_regclass_for_constraint): Rename to...
27049 (write_reg_class_for_constraint_1): ...this and update output
27050 accordingly.
27051 (write_constraint_satisfied_p): Rename to...
27052 (write_constraint_satisfied_p_1): ...this and update output
27053 accordingly. Do nothing if all extra constraints are register
27054 constraints.
27055 (write_insn_extra_memory_constraint): Delete.
27056 (write_insn_extra_address_constraint): Delete.
27057 (write_range_function): New function.
27058 (write_tm_preds_h): Define constraint_satisfied_p and
27059 reg_class_for_constraint as inline functions that do a range check
27060 before calling the out-of-line function. Use write_range_function
27061 to implement insn_extra_{register,memory,address}_constraint,
27062 the first of which is new.
27063 (write_insn_preds_c): Update after above changes to write_* functions.
27064 (main): Call choose_enum_order.
27065
27066 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
27067
27068 PR tree-optimization/61306
27069 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
27070 expression instead of its size.
27071 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
27072 false to prevent optimization when the result is unpredictable due to
27073 arithmetic right shift of signed type with highest byte is set.
27074 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
27075 (init_symbolic_number): Likewise.
27076 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
27077 when the result is unpredictable due to sign extension.
27078
27079 2014-06-11 Terry Guo <terry.guo@arm.com>
27080
27081 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
27082 (*thumb1_addsi3): Ditto.
27083 (*thumb_subdi3): Ditto.
27084 (thumb1_subsi3_insn): Ditto.
27085 (*thumb_mulsi3): Ditto.
27086 (*thumb_mulsi3_v6): Ditto.
27087 (*thumb1_andsi3_insn): Ditto.
27088 (thumb1_bicsi3): Ditto.
27089 (*thumb1_iorsi3_insn): Ditto.
27090 (*thumb1_xorsi3_insn): Ditto.
27091 (*thumb1_ashlsi3): Ditto.
27092 (*thumb1_ashrsi3): Ditto.
27093 (*thumb1_lshrsi3): Ditto.
27094 (*thumb1_rotrsi3): Ditto.
27095 (*thumb1_negdi2): Ditto.
27096 (*thumb1_negsi2): Ditto.
27097 (*thumb1_abssi2): Ditto.
27098 (*thumb1_neg_abssi2): Ditto.
27099 (*thumb1_one_cmplsi2): Ditto.
27100 (*thumb1_zero_extendhisi2): Ditto.
27101 (*thumb1_zero_extendqisi2): Ditto.
27102 (*thumb1_zero_extendqisi2_v6): Ditto.
27103 (thumb1_extendhisi2): Ditto.
27104 (thumb1_extendqisi2): Ditto.
27105 (*thumb1_movdi_insn): Ditto.
27106 (*thumb1_movsi_insn): Ditto.
27107 (*thumb1_movhi_insn): Ditto.
27108 (thumb_movhi_clobber): Ditto.
27109 (*thumb1_movqi_insn): Ditto.
27110 (*thumb1_movhf): Ditto.
27111 (*thumb1_movsf_insn): Ditto.
27112 (*thumb_movdf_insn): Ditto.
27113 (movmem12b): Ditto.
27114 (movmem8b): Ditto.
27115 (cbranchqi4): Ditto.
27116 (cbranchsi4_insn): Ditto.
27117 (cbranchsi4_scratch): Ditto.
27118 (*negated_cbranchsi4): Ditto.
27119 (*tbit_cbranch): Ditto.
27120 (*tlobits_cbranch): Ditto.
27121 (*tstsi3_cbranch): Ditto.
27122 (*cbranchne_decr1): Ditto.
27123 (*addsi3_cbranch): Ditto.
27124 (*addsi3_cbranch_scratch): Ditto.
27125 (*thumb_cmpdi_zero): Ditto.
27126 (cstoresi_eq0_thumb1): Ditto.
27127 (cstoresi_ne0_thumb1): Ditto.
27128 (*cstoresi_eq0_thumb1_insn): Ditto.
27129 (*cstoresi_ne0_thumb1_insn): Ditto.
27130 (cstoresi_nltu_thumb1): Ditto.
27131 (cstoresi_ltu_thumb1): Ditto.
27132 (thumb1_addsi3_addgeu): Ditto.
27133 (*thumb_jump): Ditto.
27134 (*call_reg_thumb1_v5): Ditto.
27135 (*call_reg_thumb1): Ditto.
27136 (*call_value_reg_thumb1_v5): Ditto.
27137 (*call_value_reg_thumb1): Ditto.
27138 (*call_insn): Ditto.
27139 (*call_value_insn): Ditto.
27140 (thumb1_casesi_internal_pic): Ditto.
27141 (thumb1_casesi_dispatch): Ditto.
27142 (*thumb1_indirect_jump): Ditto.
27143 (prologue_thumb1_interwork): Ditto.
27144 (*epilogue_insns): Ditto.
27145 (consttable_1): Ditto.
27146 (consttable_2): Ditto.
27147 (tablejump): Ditto.
27148 (*thumb1_tablejump): Ditto.
27149 (thumb_eh_return): Ditto.
27150 (define_peephole2): Two of them are thumb1 only and got moved into
27151 new file thumb1.md.
27152 (define_split): Six of them are thumb1 only and got moved into new
27153 file thumb1.md.
27154 * config/arm/thumb1.md: New file comprised of above thumb1 only
27155 patterns.
27156
27157 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27158
27159 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
27160 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
27161 dependencies.
27162 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
27163 (aarch64_crc_builtin_datum): New struct.
27164 (aarch64_crc_builtin_data): New.
27165 (aarch64_init_crc32_builtins): New function.
27166 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
27167 (aarch64_crc32_expand_builtin): New.
27168 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
27169 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
27170 __ARM_FEATURE_CRC32 when appropriate.
27171 (TARGET_CRC32): Define.
27172 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
27173 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
27174 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
27175 (aarch64_<crc_variant>): New pattern.
27176 * config/aarch64/arm_acle.h: New file.
27177 * config/aarch64/iterators.md (CRC): New int iterator.
27178 (crc_variant, crc_mode): New int attributes.
27179 * doc/aarch64-acle-intrinsics.texi: New file.
27180 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
27181 Include aarch64-acle-intrinsics.texi.
27182
27183 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
27184
27185 * tree-vect-data-refs.c (vect_grouped_store_supported): New
27186 check for stores group of length 3.
27187 (vect_permute_store_chain): New permutations for stores group of
27188 length 3.
27189 * tree-vect-stmts.c (vect_model_store_cost): Change cost
27190 of vec_perm_shuffle for the new permutations.
27191
27192 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
27193
27194 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
27195 table rewriting temporarily on targets not supporting ONE_ONLY.
27196
27197 2014-06-11 Richard Biener <rguenther@suse.de>
27198
27199 PR middle-end/61437
27200 Revert
27201 2014-06-04 Richard Biener <rguenther@suse.de>
27202
27203 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
27204 TREE_PUBLIC and DECL_EXTERNAL decls.
27205
27206 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
27207
27208 * varasm.c (set_implicit_section): New function.
27209 (resolve_unique_section): Use it to set implicit section
27210 for aliases, too.
27211 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
27212 (default_function_section): Likewise.
27213 (decl_binds_to_current_def_p): Constify argument.
27214 * varasm.h (decl_binds_to_current_def_p): Update prototype.
27215 * asan.c (asan_protect_global): Use
27216 symtab_get_node (decl)->implicit_section.
27217 * symtab.c (dump_symtab_base): Dump implicit sections.
27218 (verify_symtab_base): Verify sanity of sectoins and comdats.
27219 (symtab_resolve_alias): Alias share the section of its target.
27220 (set_section_1): New function.
27221 (symtab_node::set_section): Move here, recurse to aliases.
27222 (verify_symtab): Check for duplicated symtab lists.
27223 * tree-core.h (implicit_section_name_p): Remove.
27224 * tree-vect-data-refs.c: Include varasm.h.
27225 (vect_can_force_dr_alignment_p): Fix conditional on when
27226 decl bints to current definition; use
27227 symtab_get_node (decl)->implicit_section.
27228 * cgraph.c (cgraph_make_node_local_1): Fix section set.
27229 * cgraph.h (struct symtab_node): Add implicit_section.
27230 (set_section): Rename to ...
27231 (set_section_for_node): ... this one.
27232 (set_section): Declare.
27233 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
27234 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27235 input_overwrite_node, input_varpool_node): Stream implicit_section.
27236 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
27237 removal; it will fail in LTO.
27238
27239 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27240
27241 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
27242 Change second alternative type to f_mcr.
27243 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
27244 and 12th alternatives' types to f_mcr and f_mrc.
27245 (*movdi_aarch64): Same for 12th and 13th alternatives.
27246 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
27247 (aarch64_movtilow_tilow): Change type to fmov.
27248
27249 2014-06-10 Jiong Wang <jiong.wang@arm.com>
27250
27251 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
27252 (aarch64_save_or_restore_callee_save_registers): Fix layout.
27253
27254 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27255
27256 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
27257 New expander.
27258 (aarch64_sqrdmulh_lane<mode>): Likewise.
27259 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
27260 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
27261 (aarch64_sqdmulh_laneq<mode>): New expander.
27262 (aarch64_sqrdmulh_laneq<mode>): Likewise.
27263 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
27264 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
27265 (aarch64_sqdmulh_lane<mode>): New expander.
27266 (aarch64_sqrdmulh_lane<mode>): Likewise.
27267 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
27268 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
27269 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
27270 (aarch64_sqdmlal_laneq<mode>): Likewise.
27271 (aarch64_sqdmlsl_lane<mode>): Likewise.
27272 (aarch64_sqdmlsl_laneq<mode>): Likewise.
27273 (aarch64_sqdmlal2_lane<mode>): Likewise.
27274 (aarch64_sqdmlal2_laneq<mode>): Likewise.
27275 (aarch64_sqdmlsl2_lane<mode>): Likewise.
27276 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
27277 (aarch64_sqdmull_lane<mode>): Likewise.
27278 (aarch64_sqdmull_laneq<mode>): Likewise.
27279 (aarch64_sqdmull2_lane<mode>): Likewise.
27280 (aarch64_sqdmull2_laneq<mode>): Likewise.
27281
27282 2014-06-10 Richard Biener <rguenther@suse.de>
27283
27284 PR tree-optimization/61438
27285 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
27286 (eliminate_dom_walker::before_dom_children): Only try to inhibit
27287 insertion of IVs if running PRE.
27288 (eliminate): Adjust.
27289 (pass_pre::execute): Likewise.
27290 (pass_fre::execute): Likewise.
27291
27292 2014-06-10 Richard Biener <rguenther@suse.de>
27293
27294 PR middle-end/61456
27295 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
27296 Do not use the main variant for the type comparison.
27297 (ncr_compar): Likewise.
27298 (nonoverlapping_component_refs_p): Likewise.
27299
27300 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
27301
27302 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
27303 REG_CFA_RESTORE mode.
27304
27305 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
27306
27307 * config/i386/i386.c (expand_vec_perm_pblendv): New.
27308 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
27309 expand_vec_perm_pblendv.
27310
27311 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27312
27313 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
27314 available.
27315 Simplify description of __crc32d and __crc32cd intrinsics.
27316 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
27317 availability.
27318
27319 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
27320
27321 PR lto/61334
27322 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
27323 * config.in: Regenerate.
27324 * configure: Likewise.
27325
27326 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
27327
27328 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
27329 and public vars.
27330 (intersect_static_var_sets): Remove.
27331 (propagate): Do not prune local statics.
27332
27333 2014-06-10 Jakub Jelinek <jakub@redhat.com>
27334
27335 PR fortran/60928
27336 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
27337 Set lastprivate_firstprivate even if omp_private_outer_ref
27338 langhook returns true.
27339 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
27340 langhook, call unshare_expr on new_var and call
27341 build_outer_var_ref to get the last argument.
27342
27343 2014-06-10 Marek Polacek <polacek@redhat.com>
27344
27345 PR c/60988
27346 * doc/extend.texi: Add cindex for transparent_union.
27347
27348 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
27349
27350 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
27351 init_symbolic_number ().
27352
27353 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
27354
27355 PR middle-end/61141
27356 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
27357 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
27358 (verify_rtl_sharing): Likewise.
27359
27360 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
27361
27362 PR c++/54442
27363 * tree.c (build_qualified_type): Use a canonical type for
27364 TYPE_CANONICAL.
27365
27366 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27367
27368 * config/arm/arm-modes.def: Remove XFmode.
27369
27370 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
27371
27372 PR target/61062
27373 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
27374 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
27375 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
27376 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
27377 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
27378 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
27379 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
27380 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
27381 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
27382
27383 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
27384
27385 * tree-core.h (tree_decl_with_vis): Remove section_name.
27386
27387 2014-06-09 Kito Cheng <kito@0xlab.org>
27388
27389 * ira.c (ira): Don't call init_caller_save if LRA enabled
27390 since LRA use its own infrastructure to handle that.
27391
27392 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
27393
27394 * symtab.c (dump_symtab_base): Update dumping.
27395 (symtab_make_decl_local): Clear only DECL_COMDAT.
27396 * tree-vect-data-refs.c (Check that variable is static before
27397 tampering with sections.
27398 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
27399 (cgraph_create_virtual_clone): Likewise.
27400 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
27401 (decl_section_name, set_decl_section_name): New accessors.
27402 (find_decls_types_r): Do not walk section name
27403 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
27404 (decl_comdat_group, decl_comdat_group_id): Constify.
27405 (decl_section_name, set_decl_section_name): Update.
27406 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
27407 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
27408 (cgraph_make_node_local_1): Clear section and comdat group.
27409 * cgraph.h (set_comdat_group): Sanity check.
27410 (get_section, set_section): New.
27411 * ipa-comdats.c (ipa_comdats): Use get_section.
27412 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
27413 * lto-streamer-out.c: Do not follow section names.
27414 * c-family/c-common.c (handle_section_attribute): Update.
27415 * lto-cgraph.c (lto_output_node): Output section.
27416 (lto_output_varpool_node): Likewise.
27417 (read_comdat_group): Rename to ...
27418 (read_identifier): ... this one.
27419 (read_string_cst): New function.
27420 (input_node, input_varpool_node): Input section names.
27421 * tree-emutls.c (get_emutls_init_templ_addr): Update.
27422 (new_emutls_decl): Update.
27423 (secname_for_decl): Check section names only of static vars.
27424 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
27425 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
27426 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
27427 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
27428 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
27429 * config/mcore/mcore.c (mcore_unique_section): Likewise.
27430 * config/mips/mips.c (mips16_build_function_stub): Likewise.
27431 * config/v850/v850.c (v850_insert_attributes): Likewise.
27432 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
27433 Likewise.
27434 (h8300_handle_tiny_data_attribute): Likewise.
27435 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
27436 (bfin_handle_l2_attribute): Likewise.
27437
27438 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
27439
27440 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
27441 remove static initializer.
27442
27443 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
27444
27445 * varasm.c (use_blocks_for_decl_p): Check symbol table
27446 instead of alias attribute.
27447 (place_block_symbol): Recurse on aliases.
27448
27449 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
27450
27451 * ipa-visibility.c: Include varasm.h
27452 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
27453
27454 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
27455
27456 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
27457 outputting aliases.
27458
27459 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
27460
27461 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
27462 from test_insn into GGC space escape via SET_SRC.
27463
27464 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
27465
27466 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
27467 call statement, if any.
27468 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
27469 statements, if any. Tidy up.
27470
27471 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
27472
27473 PR target/61431
27474 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
27475 iterators, VSX_D that handles 64-bit types, and VSX_LE that
27476 handles swapping the two 64-bit double words on little endian
27477 systems. Include V1TImode and optionally TImode in VSX_LE so that
27478 these types are properly swapped. Change all of the insns and
27479 splits that do the 64-bit swaps to use VSX_LE.
27480 (vsx_le_perm_load_<mode>): Likewise.
27481 (vsx_le_perm_store_<mode>): Likewise.
27482 (splitters for little endian memory operations): Likewise.
27483 (vsx_xxpermdi2_le_<mode>): Likewise.
27484 (vsx_lxvd2x2_le_<mode>): Likewise.
27485 (vsx_stxvd2x2_le_<mode>): Likewise.
27486
27487 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
27488
27489 PR target/61423
27490 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
27491 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
27492 and corresponding splitters. Zero extend general register
27493 or memory input operand to XMM temporary. Enable for
27494 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
27495 (floatunssi<mode>2): Update expander predicate.
27496
27497 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
27498
27499 PR rtl-optimization/61325
27500 * lra-constraints.c (process_address_1): Check scale equal to one
27501 to prevent transformation: base + scale * index => base + new_reg.
27502
27503 2014-06-06 Richard Biener <rguenther@suse.de>
27504
27505 PR tree-optimization/59299
27506 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
27507 a def operand.
27508 (nearest_common_dominator_of_uses): Likewise.
27509 (statement_sink_location): Adjust. Support sinking loads.
27510
27511 2014-06-06 Martin Jambor <mjambor@suse.cz>
27512
27513 * ipa-prop.c (get_place_in_agg_contents_list): New function.
27514 (build_agg_jump_func_from_list): Likewise.
27515 (determine_known_aggregate_parts): Renamed to
27516 determine_locally_known_aggregate_parts. Moved some functionality
27517 to the two functions above, removed bound checks.
27518
27519 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
27520
27521 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
27522 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
27523 (aarch64_progress_pointer): Likewise.
27524 (aarch64_copy_one_part_and_move_pointers): Likewise.
27525 (aarch64_expand_movmen): Likewise.
27526 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
27527 * config/aarch64/aarch64.md (movmem<mode>): New.
27528
27529 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
27530
27531 * targhooks.c (default_add_stmt_cost): Call target specific
27532 hook instead of default one.
27533
27534 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
27535
27536 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
27537 endianness instead of host endianness.
27538 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
27539 comments.
27540
27541 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
27542
27543 PR debug/53927
27544 * function.c (instantiate_decls): Process the saved static chain.
27545 (expand_function_start): If not optimizing, save the static chain
27546 onto the stack.
27547 * tree-nested.c (convert_all_function_calls): Always create the static
27548 chain for nested functions if not optimizing.
27549
27550 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
27551
27552 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
27553
27554 2014-06-06 Richard Biener <rguenther@suse.de>
27555
27556 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
27557 (construct_init_block): Likewise.
27558 (construct_exit_block): Likewise.
27559 (pass_expand::execute): Likewise.
27560 * graphite.c (graphite_transforms): Replace check for current_loops
27561 with a check for > 1 loops.
27562 (pass_graphite_transforms::execute): Adjust.
27563 * ipa-split.c (split_function): Remove check for current_loops.
27564 * omp-low.c (expand_parallel_call): Likewise.
27565 (expand_omp_for_init_counts): Likewise.
27566 (extract_omp_for_update_vars): Likewise.
27567 (expand_omp_for_generic): Likewise.
27568 (expand_omp_sections): Likewise.
27569 (expand_omp_target): Likewise.
27570 * tracer.c (tail_duplicate): Likewise.
27571 (pass_tracer::execute): Likewise.
27572 * trans-mem.c (expand_transaction): Likewise.
27573 * tree-complex.c (expand_complex_div_wide): Likewise.
27574 * tree-eh.c (lower_resx): Likewise.
27575 (cleanup_empty_eh_merge_phis): Likewise.
27576 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
27577 current_loops with a check for > 1 loops.
27578 (pass_predcom::execute): Adjust.
27579 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
27580 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
27581 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
27582 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
27583 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
27584 * tree-switch-conversion.c (process_switch): Likewise.
27585 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
27586 * tree-vrp.c (vrp_visit_phi_node): Likewise.
27587 (execute_vrp): Likewise.
27588 * ubsan.c (ubsan_expand_null_ifn): Likewise.
27589
27590 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
27591
27592 * rtl.h (insn_location): Declare.
27593 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
27594 with UNKNOWN_LOCATION.
27595 * emit-rtl.c (insn_location): New function.
27596 * final.c (notice_source_line): Check that the instruction has a
27597 location before retrieving it and use insn_location.
27598 * modulo-sched.c (loop_single_full_bb_p): Likewise.
27599 * print-rtl.c (print_rtx): Likewise.
27600
27601 2014-06-06 Richard Biener <rguenther@suse.de>
27602
27603 * passes.def: Move 2nd VRP pass before phi-only-cprop.
27604
27605 2014-06-06 Christian Bruel <christian.bruel@st.com>
27606
27607 PR tree-optimization/43934
27608 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
27609 cost.
27610
27611 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
27612
27613 * ira-lives.c (single_reg_class): Add missing break. Explicitly
27614 return NO_REGS for extra address and memory constraints. Handle
27615 operands that match (or are equivalent to something that matches)
27616 extra constant constraints. Ignore other non-register operands.
27617
27618 2014-06-06 Alan Modra <amodra@gmail.com>
27619
27620 PR target/61300
27621 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
27622 * doc/tm.texi: Regenerate.
27623 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
27624 Use throughout in place of REG_PARM_STACK_SPACE.
27625 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
27626 "incoming" param. Pass to rs6000_function_parms_need_stack.
27627 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
27628 prototype_p when incoming. Use function decl when incoming
27629 to handle K&R style functions.
27630 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
27631 (INCOMING_REG_PARM_STACK_SPACE): Define.
27632
27633 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27634
27635 PR target/52472
27636 * cfgexpand.c (expand_debug_expr): Use address space of nested
27637 TREE_TYPE for ADDR_EXPR and MEM_REF.
27638
27639 2014-06-05 Jeff Law <law@redhat.com>
27640
27641 PR tree-optimization/61289
27642 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
27643 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
27644 looking for those which match LHS. All callers changed.
27645 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
27646 parameters and code which manipulated them. All callers changed.
27647 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
27648 and DST_MAP parameters. Simplify invalidation code by just calling
27649 invalidate_equivalences. All callers changed.
27650 (thread_across_edge): Simplify now that we don't need to maintain
27651 the map of equivalences to invalidate.
27652
27653 2014-06-05 Kai Tietz <ktietz@redhat.com>
27654 Richard Henderson <rth@redhat.com>
27655
27656 PR target/46219
27657 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
27658 checking for !TARGET_X32.
27659 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
27660 (sibcall_intern): New define_insn, plus required peepholes.
27661 (sibcall_pop_intern): Likewise.
27662 (sibcall_value_intern): Likewise.
27663 (sibcall_value_pop_intern): Likewise.
27664
27665 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
27666
27667 * tree-inline.c (tree_function_versioning): Check DF info existence
27668 before accessing it.
27669
27670 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
27671
27672 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
27673 frame_size.
27674 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
27675 aarch64_frame hard_fp_offset and frame_size.
27676 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
27677 frame_size; remove original_frame_size.
27678 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
27679 (aarch64_initial_elimination_offset): Remove frame_size and
27680 offset. Use aarch64_frame frame_size.
27681
27682 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
27683 Jiong Wang <jiong.wang@arm.com>
27684 Renlin <renlin.li@arm.com>
27685
27686 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
27687 initialization of R30 offset. Update offset. Iterate core
27688 regisers upto X30. Remove X29, X30 specific code.
27689
27690 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
27691 Jiong Wang <jiong.wang@arm.com>
27692
27693 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
27694 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
27695 (aarch64_register_saved_on_entry): Adjust test.
27696
27697 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
27698
27699 * config/aarch64/aarch64.h (machine_function): Move
27700 saved_varargs_size from here...
27701 (aarch64_frame): ... to here.
27702
27703 * config/aarch64/aarch64.c (aarch64_expand_prologue)
27704 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
27705 (aarch64_initial_elimination_offset)
27706 (aarch64_setup_incoming_varargs): Adjust location of
27707 saved_varargs_size.
27708
27709 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
27710
27711 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
27712 layout comment.
27713
27714 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
27715 Prachi Godbole <Prachi.Godbole@imgtec.com>
27716
27717 * config/mips/mips-cpus.def: Add definition for p5600. Updated
27718 mips32r5 entry to use PROCESSOR_P5600.
27719 * config/mips/mips-tables.opt: Regenerate.
27720 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
27721 * config/mips/mips.c (mips_fmadd_bypass): New function.
27722 (mips_rtx_cost_data): Add costs for p5600.
27723 (mips_issue_rate): Add support for p5600.
27724 (mips_multipass_dfa_lookahead): Likewise.
27725 * config/mips/mips.h (TUNE_P5600): New define.
27726 (TUNE_MACC_CHAINS): Add TUNE_P5600.
27727 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
27728 * config/mips/mips.md: Include p5600.md.
27729 (processor): Add p5600.
27730 * config/mips/p5600.md: New file.
27731
27732 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
27733
27734 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
27735 * config/i386/predicates.md (palignr_operand): New.
27736 Indicates if permutation is suitable for palignr instruction.
27737
27738 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
27739
27740 PR tree-optimization/61319
27741 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
27742 stmt belongs to loop.
27743
27744 2014-06-05 Richard Biener <rguenther@suse.de>
27745
27746 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
27747 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
27748 (lookup_tmp_var): Adjust.
27749 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
27750
27751 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27752
27753 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
27754
27755 2014-06-05 Marek Polacek <polacek@redhat.com>
27756
27757 PR c/49706
27758 * doc/invoke.texi: Document -Wlogical-not-parentheses.
27759
27760 2014-06-04 Tom de Vries <tom@codesourcery.com>
27761
27762 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
27763 CONST_INT.
27764
27765 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
27766
27767 PR tree-optimization/61385
27768 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
27769
27770 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
27771
27772 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
27773 changed to use fatal_error.
27774 (main): Ensure lto_wrapper_cleanup is run atexit.
27775
27776 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
27777
27778 * lra-constraints.c (valid_address_p): Move earlier in file.
27779 (address_eliminator): New structure.
27780 (satisfies_memory_constraint_p): New function.
27781 (satisfies_address_constraint_p): Likewise.
27782 (process_alt_operands, process_address, curr_insn_transform): Use them.
27783
27784 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
27785
27786 * lra-int.h (lra_static_insn_data): Make operand_alternative a
27787 const pointer.
27788 (target_lra_int, default_target_lra_int, this_target_lra_int)
27789 (op_alt_data): Delete.
27790 * lra.h (lra_init): Delete.
27791 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
27792 (init_insn_code_data_once): Remove op_alt_data handling.
27793 (finish_insn_code_data_once): Likewise.
27794 (init_op_alt_data): Delete.
27795 (get_static_insn_data): Initialize operand_alternative to null.
27796 (free_insn_recog_data): Cast operand_alternative before freeing it.
27797 (setup_operand_alternative): Take the operand_alternative as
27798 parameter and assume it isn't already cached in the static
27799 insn data.
27800 (lra_set_insn_recog_data): Update accordingly.
27801 (lra_init): Delete.
27802 * ira.c (ira_init): Don't call lra_init.
27803 * target-globals.h (this_target_lra_int): Declare.
27804 (target_globals): Remove lra_int.
27805 (restore_target_globals): Update accordingly.
27806 * target-globals.c: Don't include lra-int.h.
27807 (default_target_globals, save_target_globals): Remove lra_int.
27808
27809 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
27810
27811 * recog.h (operand_alternative): Convert reg_class, reject,
27812 matched and matches into bitfields.
27813 (preprocess_constraints): New overload.
27814 (preprocess_insn_constraints): New function.
27815 (preprocess_constraints): Take the insn as parameter.
27816 (recog_op_alt): Change into a pointer.
27817 (target_recog): Add x_op_alt.
27818 * recog.c (asm_op_alt): New variable.
27819 (recog_op_alt): Change into a pointer.
27820 (preprocess_constraints): New overload, replacing the old function
27821 definition with one that doesn't use global state.
27822 (preprocess_insn_constraints): New function.
27823 (preprocess_constraints): Use them. Take the insn as parameter.
27824 Use asm_op_alt for asms.
27825 (recog_init): Free existing x_op_alt entries.
27826 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
27827 pointer const.
27828 (make_early_clobber_and_input_conflicts): Likewise.
27829 (process_bb_node_lives): Pass the insn to process_constraints.
27830 * reg-stack.c (check_asm_stack_operands): Likewise.
27831 (subst_asm_stack_regs): Likewise.
27832 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
27833 * regrename.c (build_def_use): Likewise.
27834 * sched-deps.c (sched_analyze_insn): Likewise.
27835 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
27836 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
27837 (note_invalid_constants): Likewise.
27838 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
27839 (ix86_legitimate_combined_insn): Make operand_alternative pointer
27840 const.
27841
27842 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
27843
27844 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
27845 * ira-lives.c (check_and_make_def_conflict): Check for disabled
27846 alternatives.
27847 (make_early_clobber_and_input_conflicts): Likewise.
27848 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
27849
27850 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
27851
27852 * recog.h (alternative_class): New function.
27853 (which_op_alt): Return a const recog_op_alt.
27854 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
27855 (subst_asm_stack_regs): Likewise.
27856 * config/arm/arm.c (note_invalid_constants): Likewise.
27857 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
27858 the operand_alternative; use alternative class instead.
27859 * sel-sched.c (get_reg_class): Likewise.
27860 * regrename.c (build_def_use): Likewise.
27861 (hide_operands, restore_operands, record_out_operands): Update type
27862 accordingly.
27863
27864 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
27865
27866 * recog.h (recog_op_alt): Convert to a flat array.
27867 (which_op_alt): New function.
27868 * recog.c (recog_op_alt): Convert to a flat array.
27869 (preprocess_constraints): Update accordingly, grouping all
27870 operands of the same alternative together, rather than the
27871 other way around.
27872 * ira-lives.c (check_and_make_def_conflict): Likewise.
27873 (make_early_clobber_and_input_conflicts): Likewise.
27874 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
27875 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
27876 (subst_asm_stack_regs): Likewise.
27877 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
27878 * regrename.c (hide_operands, record_out_operands): Likewise.
27879 (build_def_use): Likewise.
27880 * sel-sched.c (get_reg_class): Likewise.
27881 * config/arm/arm.c (note_invalid_constants): Likewise.
27882
27883 2014-06-04 Jason Merrill <jason@redhat.com>
27884
27885 PR c++/51253
27886 PR c++/61382
27887 * gimplify.c (gimplify_arg): Non-static.
27888 * gimplify.h: Declare it.
27889
27890 2014-06-04 Richard Biener <rguenther@suse.de>
27891
27892 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
27893 TREE_PUBLIC and DECL_EXTERNAL decls.
27894
27895 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
27896
27897 * regcprop.c (copyprop_hardreg_forward_1): Account for
27898 HARD_REGNO_CALL_PART_CLOBBERED.
27899
27900 2014-06-04 Richard Biener <rguenther@suse.de>
27901
27902 * configure.ac: Check whether the underlying type of int64_t
27903 is long or long long.
27904 * configure: Regenerate.
27905 * config.in: Likewise.
27906 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
27907 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
27908
27909 2014-06-04 Richard Biener <rguenther@suse.de>
27910
27911 PR tree-optimization/60098
27912 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
27913 we hit a kill.
27914 (dse_optimize_stmt): Simplify, now that we found a kill
27915 earlier.
27916
27917 2014-06-04 Richard Biener <rguenther@suse.de>
27918
27919 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
27920 of accesses with non-invariant address.
27921
27922 2014-06-04 Martin Liska <mliska@suse.cz>
27923
27924 * cgraph.h (cgraph_make_wrapper): New function introduced.
27925 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
27926 * ipa-inline.h (inline_analyze_function): The function is global.
27927 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
27928
27929 2014-06-04 Martin Liska <mliska@suse.cz>
27930
27931 * tree.h (private_lookup_attribute_starting): New function.
27932 (lookup_attribute_starting): Likewise.
27933 * tree.c (private_lookup_attribute_starting): Likewise.
27934
27935 2014-06-04 Martin Liska <mliska@suse.cz>
27936
27937 * cgraph.h (expand_thunk): New argument added.
27938 (address_taken_from_non_vtable_p): New global function.
27939 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
27940 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
27941 * cgraphunit.c (analyze_function): Likewise.
27942 (assemble_thunks_and_aliases): Argument added to call.
27943 (expand_thunk): New argument forces to produce GIMPLE thunk.
27944
27945 2014-06-04 Martin Liska <mliska@suse.cz>
27946
27947 * coverage.h (coverage_compute_cfg_checksum): Argument added.
27948 * coverage.c (coverage_compute_cfg_checksum): Likewise.
27949 * profile.c (branch_prob): Likewise.
27950
27951 2014-06-04 Martin Jambor <mjambor@suse.cz>
27952
27953 PR ipa/61340
27954 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
27955 handler for switch on an ipa_ref_use enum.
27956 * ipa-reference.c (analyze_function): Likewise.
27957
27958 2014-06-04 Kai Tietz <ktietz@redhat.com>
27959
27960 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
27961 from old call-instruction.
27962
27963 2014-06-04 Bin Cheng <bin.cheng@arm.com>
27964
27965 * config/aarch64/aarch64.c (aarch64_classify_address)
27966 (aarch64_legitimize_reload_address): Support full addressing modes
27967 for vector modes.
27968 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
27969 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
27970
27971 2014-06-03 Andrew Pinski <apinski@cavium.com>
27972
27973 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
27974 for OP0.
27975
27976 2014-06-03 Andrew Pinski <apinski@cavium.com>
27977
27978 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
27979 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
27980
27981 2014-06-03 Kai Tietz <ktietz@redhat.com>
27982
27983 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
27984 for 64-bit ms-abi.
27985
27986 2014-06-03 Dehao Chen <dehao@google.com>
27987
27988 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
27989 the same loop.
27990
27991 2014-06-03 Marek Polacek <polacek@redhat.com>
27992
27993 PR c/60439
27994 * doc/invoke.texi: Document -Wswitch-bool.
27995 * function.c (stack_protect_epilogue): Cast controlling expression of
27996 the switch to int.
27997 * gengtype.c (walk_type): Generate switch expression with its
27998 controlling expression cast to int.
27999
28000 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
28001
28002 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
28003 and attiny841.
28004 * config/avr/avr-tables.opt: Regenerate.
28005 * config/avr/t-multilib: Regenerate.
28006 * doc/avr-mmcu.texi: Regenerate.
28007
28008 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
28009 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
28010
28011 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
28012 (ata6617c, ata664251): Add new avr35 devices.
28013 (ata6612c): Add new avr4 device.
28014 (ata6613c, ata6614q): Add new avr5 devices.
28015 * config/avr/avr-tables.opt: Regenerate.
28016 * config/avr/t-multilib: Regenerate.
28017 * doc/avr-mmcu.texi: Regenerate.
28018
28019 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
28020
28021 * gcc/config/aarch64/aarch64-builtins.c
28022 (aarch64_types_binop_ssu_qualifiers): New static data.
28023 (TYPES_BINOP_SSU): Define.
28024 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
28025 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
28026 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
28027 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
28028 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
28029 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
28030 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
28031 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
28032 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
28033 suffix to builtin function name, remove cast.
28034 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
28035 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
28036 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
28037
28038 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
28039
28040 * gcc/config/aarch64/aarch64-builtins.c
28041 (aarch64_types_binop_uus_qualifiers,
28042 aarch64_types_shift_to_unsigned_qualifiers,
28043 aarch64_types_unsigned_shiftacc_qualifiers): Define.
28044 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
28045 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
28046 sqshlu_n, uqshl_n): Update qualifiers.
28047 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
28048 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
28049 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
28050 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
28051 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
28052 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
28053 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
28054 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
28055 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
28056 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
28057 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
28058 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
28059 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
28060 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
28061 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
28062 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
28063 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
28064 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
28065 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
28066 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
28067 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
28068 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
28069 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
28070 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
28071 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
28072 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
28073 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
28074
28075 2014-06-03 Teresa Johnson <tejohnson@google.com>
28076
28077 * tree-sra.c (modify_function): Record caller nodes after rebuild.
28078
28079 2014-06-02 Jason Merrill <jason@redhat.com>
28080
28081 PR c++/61020
28082 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
28083
28084 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
28085
28086 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
28087 location == 0.
28088
28089 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
28090
28091 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
28092 New pattern.
28093 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
28094 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
28095 * config/aarch64/iterators.md (REVERSE): New iterator.
28096 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
28097 (rev_op): New int_attribute.
28098 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
28099 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
28100 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
28101 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
28102 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
28103 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
28104 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
28105 Replace temporary __asm__ with __builtin_shuffle.
28106
28107 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
28108
28109 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
28110 mips64r5.
28111 * config/mips/mips-tables.opt: Regenerate.
28112 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
28113 to use mips_isa_rev rather than ISA_MIPS32R2.
28114 * config/mips/mips.h (ISA_MIPS32R3): New define.
28115 (ISA_MIPS32R5): New define.
28116 (ISA_MIPS64R3): New define.
28117 (ISA_MIPS64R5): New define.
28118 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
28119 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
28120 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
28121 and mips64r5.
28122 (MIPS_ISA_SYNCI_SPEC): Likewise.
28123 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
28124 (LINK_SPEC): Added mips32r3 and mips32r5.
28125 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
28126 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
28127 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
28128 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
28129 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
28130 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
28131 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
28132
28133 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
28134
28135 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
28136 options.
28137 * config/mips/mips.opt (mxpa): New option.
28138 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
28139 assembler.
28140
28141 2014-06-03 Martin Jambor <mjambor@suse.cz>
28142
28143 PR ipa/61160
28144 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
28145 thunks.
28146
28147 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
28148
28149 PR tree-optimization/61328
28150 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
28151 initialization from find_bswap_or_nop_1.
28152 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
28153 in source_expr2 before using the size value the function sets. Also
28154 make use of init_symbolic_number () in both the old place and
28155 find_bswap_or_nop_load () to avoid reading uninitialized memory when
28156 doing recursion in the GIMPLE_BINARY_RHS case.
28157
28158 2014-06-03 Richard Biener <rguenther@suse.de>
28159
28160 PR tree-optimization/61383
28161 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
28162 stmts can't trap.
28163
28164 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
28165
28166 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
28167 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
28168 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
28169 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
28170 in this file.
28171 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
28172 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
28173 * system.h: ...here and make it unconditional.
28174 * target.def (conditional_register_usage): Mention
28175 define_register_constraint instead of old-style constraint macros.
28176 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
28177 * doc/tm.texi: Regenerate.
28178 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
28179 protected by !USE_MD_CONSTRAINTS.
28180 * config/frv/frv.md: Remove quote from old version of documentation.
28181 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
28182 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
28183 CONST_DOUBLE_OK_FOR_LETTER.
28184 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
28185
28186 2014-06-02 Andrew Pinski <apinski@cavium.com>
28187
28188 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
28189 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
28190 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
28191 file whose name depends on -mabi= and -mbig-endian.
28192 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
28193 Handle LP64 better and handle ilp32 too.
28194 (MULTILIB_OPTIONS): Delete.
28195 (MULTILIB_DIRNAMES): Delete.
28196
28197 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
28198
28199 * expr.h: Remove prototypes of functions defined in builtins.c.
28200 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
28201 Remove prototypes of functions defined in builtins.c.
28202 * builtins.h: Update prototype list to include all exported functions.
28203 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
28204 no_c99_libc_has_function): Move to targhooks.c
28205 (build_string_literal, build_call_expr_loc_array,
28206 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
28207 to tree.c.
28208 (expand_builtin_object_size, fold_builtin_object_size): Make static.
28209 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
28210 no_c99_libc_has_function): Relocate from builtins.c.
28211 * tree.c: Include builtins.h.
28212 (build_call_expr_loc_array, build_call_expr_loc_vec,
28213 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
28214 from builtins.c.
28215 * fold-const.h (fold_fma): Move prototype to builtins.h.
28216 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
28217 * asan.c: Include builtins.h.
28218 * cfgexpand.c: Likewise.
28219 * convert.c: Likewise.
28220 * emit-rtl.c: Likewise.
28221 * except.c: Likewise.
28222 * expr.c: Likewise.
28223 * fold-const.c: Likewise.
28224 * gimple-fold.c: Likewise.
28225 * gimple-ssa-strength-reduction.c: Likewise.
28226 * gimplify.c: Likewise.
28227 * ipa-inline.c: Likewise.
28228 * ipa-prop.c: Likewise.
28229 * lto-streamer-out.c: Likewise.
28230 * stmt.c: Likewise.
28231 * tree-inline.c: Likewise.
28232 * tree-object-size.c: Likewise.
28233 * tree-sra.c: Likewise.
28234 * tree-ssa-ccp.c: Likewise.
28235 * tree-ssa-forwprop.c: Likewise.
28236 * tree-ssa-loop-ivcanon.c: Likewise.
28237 * tree-ssa-loop-ivopts.c: Likewise.
28238 * tree-ssa-math-opts.c: Likewise.
28239 * tree-ssa-reassoc.c: Likewise.
28240 * tree-ssa-threadedge.c: Likewise.
28241 * tree-streamer-in.c: Likewise.
28242 * tree-vect-data-refs.c: Likewise.
28243 * tree-vect-patterns.c: Likewise.
28244 * tree-vect-stmts.c: Likewise.
28245 * config/aarch64/aarch64.c: Likewise.
28246 * config/alpha/alpha.c: Likewise.
28247 * config/arc/arc.c: Likewise.
28248 * config/arm/arm.c: Likewise.
28249 * config/avr/avr.c: Likewise.
28250 * config/bfin/bfin.c: Likewise.
28251 * config/c6x/c6x.c: Likewise.
28252 * config/cr16/cr16.c: Likewise.
28253 * config/cris/cris.c: Likewise.
28254 * config/epiphany/epiphany.c: Likewise.
28255 * config/fr30/fr30.c: Likewise.
28256 * config/frv/frv.c: Likewise.
28257 * config/h8300/h8300.c: Likewise.
28258 * config/i386/i386.c: Likewise.
28259 * config/i386/winnt.c: Likewise.
28260 * config/ia64/ia64.c: Likewise.
28261 * config/iq2000/iq2000.c: Likewise.
28262 * config/lm32/lm32.c: Likewise.
28263 * config/m32c/m32c.c: Likewise.
28264 * config/m32r/m32r.c: Likewise.
28265 * config/m68k/m68k.c: Likewise.
28266 * config/mcore/mcore.c: Likewise.
28267 * config/mep/mep.c: Likewise.
28268 * config/microblaze/microblaze.c: Likewise.
28269 * config/mips/mips.c: Likewise.
28270 * config/mmix/mmix.c: Likewise.
28271 * config/mn10300/mn10300.c: Likewise.
28272 * config/moxie/moxie.c: Likewise.
28273 * config/msp430/msp430.c: Likewise.
28274 * config/nds32/nds32.c: Likewise.
28275 * config/pa/pa.c: Likewise.
28276 * config/pdp11/pdp11.c: Likewise.
28277 * config/picochip/picochip.c: Likewise.
28278 * config/rl78/rl78.c: Likewise.
28279 * config/rs6000/rs6000.c: Likewise.
28280 * config/rx/rx.c: Likewise.
28281 * config/s390/s390.c: Likewise.
28282 * config/score/score.c: Likewise.
28283 * config/sh/sh.c: Likewise.
28284 * config/sparc/sparc.c: Likewise.
28285 * config/spu/spu.c: Likewise.
28286 * config/stormy16/stormy16.c: Likewise.
28287 * config/tilegx/tilegx.c: Likewise.
28288 * config/tilepro/tilepro.c: Likewise.
28289 * config/v850/v850.c: Likewise.
28290 * config/vax/vax.c: Likewise.
28291 * config/xtensa/xtensa.c: Likewise.
28292
28293 2014-06-02 Jeff Law <law@redhat.com>
28294
28295 PR rtl-optimization/61094
28296 * ree.c (combine_reaching_defs): Do not reextend an insn if it
28297 was marked as do_no_reextend. If a copy is needed to eliminate
28298 an extension, then mark it as do_not_reextend.
28299
28300 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
28301
28302 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
28303
28304 2014-06-02 Richard Henderson <rth@redhat.com>
28305
28306 PR target/61336
28307 * config/alpha/alpha.c (print_operand_address): Allow symbolic
28308 addresses inside asms. Use output_operand_lossage instead of
28309 gcc_unreachable.
28310
28311 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
28312
28313 PR target/61239
28314 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
28315 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
28316
28317 2014-06-02 Tom de Vries <tom@codesourcery.com>
28318
28319 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
28320 case that x has VOIDmode.
28321
28322 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
28323
28324 * varasm.c (copy_constant): Delete function.
28325 (build_constant_desc): Don't call it.
28326
28327 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28328
28329 PR target/61154
28330 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
28331 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
28332 with immediate_operand.
28333
28334 2014-06-02 Andreas Schwab <schwab@suse.de>
28335
28336 * config/ia64/ia64.c
28337 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
28338 pending_data_specs first.
28339
28340 2014-06-02 Richard Biener <rguenther@suse.de>
28341
28342 PR tree-optimization/61378
28343 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
28344 valueized_anything.
28345
28346 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
28347
28348 * config/i386/constraints.md (Bw): Rename from 'w'.
28349 (Bz): Rename from 'z'.
28350 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
28351
28352 2014-06-01 Kai Tietz <ktietz@redhat.com>
28353
28354 PR target/61377
28355 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
28356 * config/i386/i386.md (sibcall_insn_operand): Use Bs
28357 instead of m constraint.
28358
28359 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
28360
28361 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
28362 a separate alternative where the scratch operand 2 is marked as
28363 early clobber.
28364
28365 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
28366
28367 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
28368 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
28369 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
28370 and __builtins_arm_get_fpscr.
28371 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
28372 __builtins_arm_get_fpscr.
28373 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
28374 __builtins_arm_ldfpscr.
28375 (arm_atomic_assign_expand_fenv): New function.
28376 * config/arm/vfp.md (set_fpscr): New pattern.
28377 (get_fpscr) : Likewise.
28378 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
28379 VUNSPEC_SET_FPSCR.
28380 * doc/extend.texi (AARCH64 Built-in Functions) : Document
28381 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
28382
28383 2014-05-30 Jakub Jelinek <jakub@redhat.com>
28384
28385 * asan.c (report_error_func): Add SLOW_P argument, use
28386 BUILT_IN_ASAN_*_N if set.
28387 (build_check_stmt): Likewise.
28388 (instrument_derefs): If T has insufficient alignment,
28389 force same handling as for odd sizes.
28390
28391 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
28392 BUILT_IN_ASAN_REPORT_STORE_N): New.
28393 * asan.c (struct asan_mem_ref): Change access_size type to
28394 HOST_WIDE_INT.
28395 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
28396 update_mem_ref_hash_table): Likewise.
28397 (asan_mem_ref_hasher::hash): Hash in a HWI.
28398 (report_error_func): Change size_in_bytes argument to HWI.
28399 Use *_N builtins if size_in_bytes is larger than 16 or not power of
28400 two.
28401 (build_shadow_mem_access): New function.
28402 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
28403 Handle size_in_bytes not power of two or larger than 16.
28404 (instrument_derefs): Don't give up if size_in_bytes is not
28405 power of two or is larger than 16.
28406
28407 2014-05-30 Kai Tietz <ktietz@redhat.com>
28408
28409 PR target/60104
28410 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
28411 for sibling-tail-calls.
28412 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
28413 to its use.
28414 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
28415 (sibcall_insn_operand): Add check for sibcall_memory_operand.
28416
28417 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
28418
28419 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
28420 * config/avr/avr-tables.opt: Regenerate.
28421 * config/avr/t-multilib: Regenerate.
28422 * doc/avr-mmcu.texi: Regenerate.
28423
28424 2014-05-30 Ian Lance Taylor <iant@google.com>
28425
28426 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
28427 target("sse").
28428
28429 2014-05-30 Tom de Vries <tom@codesourcery.com>
28430
28431 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
28432 Redefine as true.
28433
28434 2014-05-30 Tom de Vries <tom@codesourcery.com>
28435
28436 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
28437 * lra.c (initialize_lra_reg_info_element): Add init of
28438 actual_call_used_reg_set field.
28439 (lra): Call lra_create_live_ranges before lra_inheritance for
28440 -fuse-caller-save.
28441 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
28442 -fuse-caller-save.
28443 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
28444 instead of call_used_reg_set for -fuse-caller-save.
28445 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
28446
28447 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28448
28449 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
28450 to mov_imm.
28451 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
28452
28453 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
28454
28455 * ira.c (ira_get_dup_out_num): Check for output operands at
28456 the start of the loop. Handle cases where an included alternative
28457 follows an excluded one.
28458
28459 2014-05-29 Mike Stump <mikestump@comcast.net>
28460
28461 PR debug/61352
28462 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
28463 post ld passes when lto is used.
28464
28465 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
28466
28467 PR rtl-optimization/61325
28468 * lra-constraints.c (process_address): Rename to process_address_1.
28469 (process_address): New function.
28470
28471 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
28472
28473 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
28474 TYPES_BINOPV): New static data.
28475 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
28476 New builtin.
28477 * config/aarch64/aarch64-simd.md (aarch64_ext,
28478 aarch64_im_lane_boundsi): New patterns.
28479 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
28480 patterns for EXT.
28481 (aarch64_evpc_ext): New function.
28482
28483 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
28484
28485 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
28486 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
28487 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
28488 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
28489 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
28490
28491 2014-05-29 Tom de Vries <tom@codesourcery.com>
28492
28493 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
28494
28495 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
28496 Richard Sandiford <rdsandiford@googlemail.com>
28497
28498 * arm/iterators.md (shiftable_ops): New code iterator.
28499 (t2_binop0, arith_shift_insn): New code attributes.
28500 * arm/predicates.md (shift_nomul_operator): New predicate.
28501 * arm/arm.md (insn_enabled): Delete.
28502 (enabled): Remove insn_enabled test.
28503 (*arith_shiftsi): Delete. Replace with ...
28504 (*<arith_shift_insn>_multsi): ... new pattern.
28505 (*<arith_shift_insn>_shiftsi): ... new pattern.
28506 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
28507
28508 2014-05-29 Radovan Obradovic <robradovic@mips.com>
28509 Tom de Vries <tom@codesourcery.com>
28510
28511 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
28512 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
28513 clobber.
28514 (mips_split_call): Use POST_CALL_TMP_REG.
28515 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
28516
28517 2014-05-29 Tom de Vries <tom@codesourcery.com>
28518
28519 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
28520 with #ifdef STACK_REGS.
28521
28522 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
28523
28524 * varasm.c (get_variable_section): Walk aliases.
28525 (place_block_symbol): Walk aliases.
28526
28527 2014-05-28 Tom de Vries <tom@codesourcery.com>
28528
28529 Revert:
28530 2014-05-28 Tom de Vries <tom@codesourcery.com>
28531
28532 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
28533 * lra.c (initialize_lra_reg_info_element): Add init of
28534 actual_call_used_reg_set field.
28535 (lra): Call lra_create_live_ranges before lra_inheritance for
28536 -fuse-caller-save.
28537 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
28538 -fuse-caller-save.
28539 * lra-constraints.c (need_for_call_save_p): Use
28540 actual_call_used_reg_set instead of call_used_reg_set for
28541 -fuse-caller-save.
28542 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
28543
28544 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
28545
28546 * doc/md.texi: Document that the % constraint character must
28547 be at the beginning of the string.
28548 * genoutput.c (validate_insn_alternatives): Check that '=',
28549 '+' and '%' only appear at the beginning of a constraint.
28550 * ira.c (commutative_constraint_p): Delete.
28551 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
28552 at the start of the string.
28553 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
28554 duplicate '='s.
28555 * config/arm/neon.md (bicdi3_neon): Likewise.
28556 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
28557 (slt_si, sltu_si): Likewise.
28558 * config/vax/vax.md (sbcdi3): Likewise.
28559 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
28560 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
28561 (mul64): Move '%' to beginning of constraint.
28562 * config/arm/arm.md (*xordi3_insn): Likewise.
28563 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
28564 (xorsi3): Likewise.
28565
28566 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
28567
28568 * doc/md.texi: Document the restrictions on the "enabled" attribute.
28569
28570 2014-05-28 Jason Merrill <jason@redhat.com>
28571
28572 PR c++/47202
28573 * cgraph.h (symtab_node::get_comdat_group_id): New.
28574 * cgraphunit.c (analyze_functions): Call it.
28575 * symtab.c (dump_symtab_node): Likewise.
28576 * tree.c (decl_comdat_group_id): New.
28577 * tree.h: Declare it.
28578 * lto-streamer-out.c (write_symbol): Use it.
28579 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
28580
28581 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
28582
28583 PR bootstrap/PR61146
28584 * wide-int.cc: Do not include longlong.h when compiling with clang.
28585
28586 2014-05-28 Richard Biener <rguenther@suse.de>
28587
28588 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
28589 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
28590 (vrp_visit_assignment_or_call): Print less vertical space.
28591 (vrp_visit_stmt): Likewise.
28592 (vrp_visit_phi_node): Likewise. For a PHI argument with
28593 VR_VARYING range consider recording it as copy.
28594
28595 2014-05-28 Richard Biener <rguenther@suse.de>
28596
28597 Revert
28598 2014-05-28 Richard Biener <rguenther@suse.de>
28599
28600 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
28601
28602 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
28603
28604 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
28605 sufficiently aligned and an offset is used at the same time.
28606 (expand_expr_real_1): Likewise.
28607
28608 2014-05-28 Richard Biener <rguenther@suse.de>
28609
28610 PR middle-end/61045
28611 * fold-const.c (fold_comparison): When folding
28612 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
28613 the sign of the remaining constant operand stays the same.
28614
28615 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
28616
28617 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
28618 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
28619 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
28620 to the assembler.
28621 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
28622 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
28623 (m32bit-doubles) Likewise.
28624 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
28625 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
28626 option for RL78.
28627
28628 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28629
28630 * configure.ac ($gcc_cv_ld_clearcap): New test.
28631 * configure: Regenerate.
28632 * config.in: Regenerate.
28633 * config/sol2.opt (mclear-hwcap): New option.
28634 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
28635 * config/sol2-clearcap.map: Moved here from
28636 testsuite/gcc.target/i386/clearcap.map.
28637 * config/sol2-clearcapv2.map: Move here from
28638 gcc.target/i386/clearcapv2.map.
28639 * config/t-sol2 (install): Depend on install-clearcap-map.
28640 (install-clearcap-map): New target.
28641 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
28642 -mclear-hwcap.
28643
28644 2014-05-28 Richard Biener <rguenther@suse.de>
28645
28646 * hwint.h (*_HALF_WIDE_INT*): Move to ...
28647 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
28648 ... here and remove the rest.
28649 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
28650
28651 2014-05-28 Richard Biener <rguenther@suse.de>
28652
28653 PR tree-optimization/61335
28654 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
28655 new range fails, drop to varying.
28656
28657 2014-05-28 Olivier Hainque <hainque@adacore.com>
28658
28659 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
28660 (CPP_SPEC): Add entry for -mcpu=8548.
28661 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
28662 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
28663
28664 2014-05-28 Tom de Vries <tom@codesourcery.com>
28665
28666 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
28667 * lra.c (initialize_lra_reg_info_element): Add init of
28668 actual_call_used_reg_set field.
28669 (lra): Call lra_create_live_ranges before lra_inheritance for
28670 -fuse-caller-save.
28671 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
28672 -fuse-caller-save.
28673 * lra-constraints.c (need_for_call_save_p): Use
28674 actual_call_used_reg_set instead of call_used_reg_set for
28675 -fuse-caller-save.
28676 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
28677
28678 2014-05-28 Radovan Obradovic <robradovic@mips.com>
28679 Tom de Vries <tom@codesourcery.com>
28680
28681 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
28682 to gccoptlist.
28683 (@item -fuse-caller-save): New item.
28684
28685 2014-05-28 Radovan Obradovic <robradovic@mips.com>
28686 Tom de Vries <tom@codesourcery.com>
28687
28688 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
28689 OPT_fuse_caller_save.
28690
28691 2014-05-28 Radovan Obradovic <robradovic@mips.com>
28692 Tom de Vries <tom@codesourcery.com>
28693
28694 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
28695 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
28696 get_call_reg_set_usage.
28697 * resource.c (mark_set_resources, mark_target_live_regs): Use
28698 get_call_reg_set_usage.
28699 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
28700 field.
28701 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
28702 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
28703 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
28704 * ira-build.c (ira_create_allocno): Init
28705 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
28706 (create_cap_allocno, propagate_allocno_info)
28707 (propagate_some_info_from_allocno)
28708 (copy_info_to_removed_store_destinations): Handle
28709 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
28710 * ira-costs.c (ira_tune_allocno_costs): Use
28711 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
28712
28713 2014-05-28 Radovan Obradovic <robradovic@mips.com>
28714 Tom de Vries <tom@codesourcery.com>
28715
28716 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
28717 and function_used_regs_valid fields.
28718 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
28719 find_all_hard_reg_sets.
28720 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
28721 (get_call_reg_set_usage): New function.
28722 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
28723 * regs.h (get_call_reg_set_usage): Declare.
28724
28725 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
28726
28727 PR libgcc/61152
28728 * config/dbx.h (License): Add Runtime Library Exception.
28729 * config/newlib-stdint.h (License): Same.
28730 * config/rtems.h (License): Same
28731 * config/initfini-array.h (License): Same
28732 * config/v850/v850.h (License): Same.
28733 * config/v850/v850-opts.h (License): Same
28734 * config/v850/rtems.h (License): Same.
28735
28736 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
28737
28738 PR target/61044
28739 * doc/extend.texi (Local Labels): Note that label differences are
28740 not supported for AVR.
28741
28742 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
28743 Olivier Hainque <hainque@adacore.com>
28744
28745 * rtl.h (set_for_reg_notes): Declare.
28746 * emit-rtl.c (set_for_reg_notes): New function.
28747 (set_unique_reg_note): Use it.
28748 * optabs.c (add_equal_note): Likewise
28749
28750 2014-05-27 Andrew Pinski <apinski@cavium.com>
28751
28752 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
28753 Use <w> for the register in assembly template.
28754 (stack_protect_test): Use the mode of operands[0] for the result.
28755 (stack_protect_test_<mode>): Use <w> for the register
28756 in assembly template.
28757
28758 2014-05-27 DJ Delorie <dj@redhat.com>
28759
28760 * config/rx/rx.c (add_vector_labels): New.
28761 (rx_output_function_prologue): Call it.
28762 (rx_handle_func_attribute): Don't require empty arguments.
28763 (rx_handle_vector_attribute): New.
28764 (rx_attribute_table): Add "vector" attribute.
28765 * doc/extend.texi (interrupt, vector): Document new/changed
28766 RX-specific attributes.
28767
28768 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
28769
28770 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
28771
28772 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
28773 predicate to detect a negative quotient.
28774
28775 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
28776
28777 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
28778 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
28779 Add X - Y CMP 0 to X CMP Y transformation.
28780 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
28781
28782 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
28783
28784 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
28785 before printing.
28786
28787 2014-05-27 Steve Ellcey <sellcey@mips.com>
28788
28789 * config/mips/mips.c: Add include of cgraph.h.
28790
28791 2014-05-27 Richard Biener <rguenther@suse.de>
28792
28793 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
28794
28795 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
28796
28797 PR libgcc/61152
28798 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
28799 * config/arm/arm-cores.def (License): Same.
28800 * config/arm/arm-opts.h (License): Same.
28801 * config/arm/aout.h (License): Same.
28802 * config/arm/bpabi.h (License): Same.
28803 * config/arm/elf.h (License): Same.
28804 * config/arm/linux-elf.h (License): Same.
28805 * config/arm/linux-gas.h (License): Same.
28806 * config/arm/netbsd-elf.h (License): Same.
28807 * config/arm/uclinux-eabi.h (License): Same.
28808 * config/arm/uclinux-elf.h (License): Same.
28809 * config/arm/vxworks.h (License): Same.
28810
28811 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28812
28813 * config/arm/neon.md (neon_bswap<mode>): New pattern.
28814 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
28815 (arm_init_neon_builtins): Handle NEON_BSWAP.
28816 Define required type nodes.
28817 (arm_expand_neon_builtin): Handle NEON_BSWAP.
28818 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
28819 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
28820 * config/arm/iterators.md (VDQHSD): New mode iterator.
28821
28822 2014-05-27 Richard Biener <rguenther@suse.de>
28823
28824 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
28825 Try using literal operands when comparing value-ranges failed.
28826
28827 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
28828
28829 * ira.c (commutative_operand): Adjust for change to recog_data.
28830 [Missing from previous commit.]
28831
28832 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
28833
28834 * system.h (TEST_BIT): New macro.
28835 * recog.h (alternative_mask): New type.
28836 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
28837 (recog_data_d): Replace alternative_enabled_p array with
28838 enabled_alternatives.
28839 (target_recog): New structure.
28840 (default_target_recog, this_target_recog): Declare.
28841 (get_enabled_alternatives, recog_init): Likewise.
28842 * recog.c (default_target_recog, this_target_recog): New variables.
28843 (get_enabled_alternatives): New function.
28844 (extract_insn): Use it.
28845 (recog_init): New function.
28846 (preprocess_constraints, constrain_operands): Adjust for change to
28847 recog_data.
28848 * postreload.c (reload_cse_simplify_operands): Likewise.
28849 * reload.c (find_reloads): Likewise.
28850 * ira-costs.c (record_reg_classes): Likewise.
28851 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
28852 all alternatives after a disabled one would be skipped.
28853 (ira_implicitly_set_insn_hard_regs): Likewise.
28854 * ira.c (ira_setup_alts): Adjust for change to recog_data.
28855 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
28856 with enabled_alternatives.
28857 * lra.c (free_insn_recog_data): Update accordingly.
28858 (lra_update_insn_recog_data): Likewise.
28859 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
28860 * lra-constraints.c (process_alt_operands): Likewise. Handle
28861 only_alternative as part of the enabled mask.
28862 * target-globals.h (this_target_recog): Declare.
28863 (target_globals): Add a recog field.
28864 (restore_target_globals): Restore this_target_recog.
28865 * target-globals.c: Include recog.h.
28866 (default_target_globals): Initialize recog field.
28867 (save_target_globals): Likewise.
28868 * reginfo.c (reinit_regs): Call recog_init.
28869 * toplev.c (backend_init_target): Likewise.
28870
28871 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
28872
28873 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
28874 rather than any named insn's code.
28875
28876 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
28877
28878 PR libgcc/61152
28879 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
28880 * config/arm/arm-cores.def (License): Same.
28881
28882 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
28883
28884 * tree.h (decl_comdat_group): Declare.
28885 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
28886 * tree.c (decl_comdat_group): Here.
28887
28888 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
28889
28890 PR rtl-optimization/61222
28891 * combine.c (simplify_shift_const_1): When moving a PLUS outside
28892 the shift, truncate the PLUS operand to the result mode.
28893
28894 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
28895
28896 PR target/61271
28897 * config/i386/i386.c (ix86_rtx_costs)
28898 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
28899 Fix condition.
28900
28901 2014-05-26 Martin Jambor <mjambor@suse.cz>
28902
28903 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
28904 subreg uses.
28905
28906 2014-05-26 Richard Biener <rguenther@suse.de>
28907
28908 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
28909 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
28910 Provide specializations.
28911 (wi::int_traits <HOST_WIDE_INT>,
28912 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
28913
28914 2014-05-26 Alan Modra <amodra@gmail.com>
28915
28916 PR target/61098
28917 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
28918 params and return a bool. Remove dead code. Update comment.
28919 Assert we have a const_int source. Remove bogus code from
28920 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
28921 handling of constants > 2G and reg_equal note, from..
28922 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
28923 return value. Update comment. If we can, use a new pseudo
28924 for intermediate calculations.
28925 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
28926 prototype.
28927 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
28928 call to rs6000_emit_set_const in splitter.
28929 (movdi_internal64+2, +3): Likewise.
28930
28931 2014-05-26 Richard Biener <rguenther@suse.de>
28932
28933 * system.h: Define __STDC_FORMAT_MACROS before
28934 including inttypes.h.
28935 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
28936 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
28937 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
28938 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
28939 HOST_WIDEST_INT_C): Remove.
28940 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
28941 if C99 inttypes.h is not available.
28942 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
28943 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
28944 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
28945 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
28946 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
28947 (struct output_info): Likewise.
28948 (print_statistics): Adjust.
28949 (dump_bitmap_statistics): Likewise.
28950 * bt-load.c (migrate_btr_defs): Print with PRId64.
28951 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
28952 (MAX_SAFE_MULTIPLIER): Adjust.
28953 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
28954 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
28955 dump_cgraph_node): Likewise.
28956 * final.c (dump_basic_block_info): Likewise.
28957 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
28958 * gcov.c (format_gcov): Likewise.
28959 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
28960 for calculation.
28961 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
28962 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
28963 (inline_small_functions, dump_overall_stats, dump_inline_stats):
28964 Use PRId64 for dumping.
28965 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
28966 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
28967 (add_allocno_hard_regs): Adjust.
28968 * loop-doloop.c (doloop_modify): Print using PRId64.
28969 * loop-iv.c (inverse): Compute in uint64_t.
28970 (determine_max_iter, iv_number_of_iterations): Likewise.
28971 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
28972 Print using PRId64.
28973 * lto-streamer-out.c (write_symbol): Use uint64_t.
28974 * mcf.c (CAP_INFINITY): Use int64_t maximum.
28975 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
28976 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
28977 * modulo-sched.c (const_iteration_count): Use int64_t.
28978 (sms_schedule): Dump using PRId64.
28979 * predict.c (dump_prediction): Likewise.
28980 * pretty-print.h (pp_widest_integer): Remove.
28981 * profile.c (get_working_sets, is_edge_inconsistent,
28982 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
28983 * tree-pretty-print.c (pp_double_int): Remove case handling
28984 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
28985 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
28986 and adjust users.
28987 (pass_optimize_bswap::execute): Remove restriction on hosts.
28988 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
28989 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
28990 * tree.c (widest_int_cst_value): Remove.
28991 * tree.h (widest_int_cst_value): Likewise.
28992 * value-prof.c (dump_histogram_value): Print using PRId64.
28993 * gengtype.c (main): Also inject int64_t.
28994 * ggc-page.c (struct max_alignment): Use int64_t.
28995 * alloc-pool.c (struct allocation_object_def): Likewise.
28996 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
28997 for computation.
28998 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
28999 * doc/tm.texi: Regenerated.
29000 * gengtype-lex.l (IWORD): Handle [u]int64_t.
29001 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
29002 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
29003 mmix_output_register_setting): Use [u]int64_t in prototypes.
29004 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
29005 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
29006 mmix_output_octa, mmix_output_shifted_value): Adjust.
29007 (mmix_intval): Adjust. Remove unreachable case.
29008 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
29009
29010 2014-05-26 Richard Biener <rguenther@suse.de>
29011
29012 * configure.ac: Drop __int64 type check. Insist that we
29013 found uint64_t and int64_t.
29014 * hwint.h (HOST_BITS_PER___INT64): Remove.
29015 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
29016 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
29017 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
29018 (HOST_WIDEST_FAST_INT): Remove __int64 case.
29019 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
29020 for dst_q_src_df_rms_cdt.
29021 * configure: Regenerate.
29022 * config.in: Likewise.
29023
29024 2014-05-26 Michael Tautschnig <mt@debian.org>
29025
29026 PR target/61249
29027 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
29028 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
29029
29030 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29031
29032 PR rtl-optimization/61278
29033 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
29034
29035 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29036
29037 PR rtl-optimization/61220
29038 Part of PR rtl-optimization/61225
29039 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
29040 insn; skip split_edge for a block with only one successor.
29041
29042 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
29043
29044 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
29045 for variables.
29046
29047 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
29048
29049 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
29050 (update_vtable_references): New function.
29051 (function_and_variable_visibility): Rewrite also vtable initializers.
29052 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
29053
29054 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
29055
29056 * ggc.h (ggc_grow): New function.
29057 * ggc-none.c (ggc_grow): New function.
29058 * ggc-page.c (ggc_grow): Likewise.
29059
29060 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
29061
29062 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
29063 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
29064 comdat_can_be_unshared_p, cgraph_externally_visible_p,
29065 varpool_externally_visible_p, can_replace_by_local_alias,
29066 update_visibility_by_resolution_info, function_and_variable_visibility,
29067 pass_data_ipa_function_and_variable_visibility,
29068 make_pass_ipa_function_and_variable_visibility,
29069 whole_program_function_and_variable_visibility,
29070 pass_data_ipa_whole_program_visibility,
29071 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
29072 * cgraph.h (cgraph_local_node_p): Declare.
29073 * ipa-visibility.c: New file.
29074 * Makefile.in (OBJS): Add ipa-visiblity.o
29075
29076 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
29077
29078 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
29079 that var decl is available.
29080
29081 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
29082
29083 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
29084 symtab_node pointer.
29085 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
29086 (find_decls_types_r): Do not walk COMDAT_GROUP.
29087 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
29088 * varasm.c (make_decl_one_only): Use set_comdat_group;
29089 create node if needed.
29090 * ipa-inline-transform.c (save_inline_function_body): Update
29091 way we decl->symtab mapping.
29092 * symtab.c (symtab_hash, hash_node, eq_node
29093 symtab_insert_node_to_hashtable): Remove.
29094 (symtab_register_node): Update.
29095 (symtab_unregister_node): Update.
29096 (symtab_get_node): Reimplement as inline function.
29097 (symtab_add_to_same_comdat_group): Update.
29098 (symtab_dissolve_same_comdat_group_list): Update.
29099 (dump_symtab_base): Update.
29100 (verify_symtab_base): Update.
29101 (symtab_make_decl_local): Update.
29102 (fixup_same_cpp_alias_visibility): Update.
29103 (symtab_nonoverwritable_alias): Update.
29104 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
29105 * ipa.c (update_visibility_by_resolution_info): UPdate.
29106 * bb-reorder.c: Include cgraph.h
29107 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
29108 with comdat groups.
29109 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
29110 * cgraph.c (cgraph_get_create_node): Update.
29111 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
29112 and comdat_group_.
29113 (symtab_get_node): Make inline.
29114 (symtab_insert_node_to_hashtable): Remove.
29115 (symtab_can_be_discarded): Update.
29116 (decl_comdat_group): New function.
29117 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
29118 Update.
29119 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
29120 comdat group name.
29121 (read_comdat_group): New function.
29122 (input_node, input_varpool_node): Use it.
29123 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
29124 comdat groups.
29125 * mips.c (mips_start_unique_function): Likewise.
29126 (ix86_code_end): Likewise.
29127 (rs6000_code_end): Likweise.
29128 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
29129
29130 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
29131
29132 * gengtype-state.c (fatal_reading_state): Bring offline.
29133 * optabs.c (widening_optab_handler): Bring offline.
29134 * optabs.h (widening_optab_handler): Likewise.
29135 * final.c (get_attr_length_1): Likewise.
29136
29137 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
29138
29139 * sched-int.h (sd_iterator_cond): Manually tail recurse.
29140
29141 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
29142
29143 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
29144 (ppc440-compare): Include shift with dot.
29145 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
29146 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
29147 without dot.
29148 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
29149 without dot.
29150 (e6500_sfx2): Include it.
29151 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
29152 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
29153 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
29154 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
29155 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
29156 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
29157 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
29158 *lshiftrt_internal1le, *lshiftrt_internal1be,
29159 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
29160 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
29161 *rotldi3_internal10le, *rotldi3_internal10be,
29162 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
29163 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
29164 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
29165 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
29166 define_insns): Use type "shift" in the appropriate alternatives.
29167
29168 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
29169
29170 * config/rs6000/rs6000.md (type): Add "logical". Delete
29171 "fast_compare".
29172 (dot): Adjust comment.
29173 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
29174 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
29175 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
29176 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
29177 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
29178 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
29179 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
29180 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
29181
29182 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
29183 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
29184 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
29185 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
29186 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
29187 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
29188 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
29189 * config/rs6000/8540.md (ppc8540_su): Adjust.
29190 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
29191 cell-cmp-microcoded): Adjust.
29192 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
29193 * config/rs6000/e500mc.md (e500mc_su): Adjust.
29194 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
29195 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
29196 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
29197 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
29198 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
29199 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
29200 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
29201 Adjust.
29202 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
29203 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
29204 Adjust. Adjust comment.
29205 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
29206 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
29207
29208 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
29209
29210 * config/rs6000/rs6000.md (type): Add "add".
29211 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
29212 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
29213 define_insns): Use it.
29214 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
29215
29216 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
29217 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
29218 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
29219 * config/rs6000/601.md (ppc601-integer): Adjust.
29220 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
29221 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
29222 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
29223 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
29224 * config/rs6000/8540.md (ppc8540_su): Adjust.
29225 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
29226 cell-cmp-microcoded): Adjust.
29227 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
29228 * config/rs6000/e500mc.md (e500mc_su): Adjust.
29229 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
29230 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
29231 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
29232 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
29233 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
29234 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
29235 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
29236 Adjust.
29237 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
29238 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
29239 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
29240 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
29241
29242 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
29243
29244 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
29245 "delayed_compare", "var_delayed_compare".
29246 (var_shift): New attribute.
29247 (cell_micro): Adjust.
29248 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
29249 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
29250 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
29251 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
29252 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
29253 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
29254 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
29255 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
29256 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
29257 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
29258 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
29259 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
29260 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
29261 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
29262 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
29263 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
29264 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
29265 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
29266 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
29267 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
29268 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
29269 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
29270 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
29271 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
29272 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
29273
29274 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
29275 * config/rs6000/440.md (ppc440-integer): Adjust.
29276 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
29277 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
29278 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
29279 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
29280 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
29281 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
29282 * config/rs6000/8540.md (ppc8540_su): Adjust.
29283 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
29284 cell-cmp-microcoded): Adjust.
29285 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
29286 * config/rs6000/e500mc.md (e500mc_su): Adjust.
29287 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
29288 e500mc64_delayed): Adjust.
29289 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
29290 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
29291 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
29292 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
29293 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
29294 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
29295 power6-delayed-compare, power6-var-delayed-compare): Adjust.
29296 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
29297 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
29298 Adjust comment.
29299 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
29300 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
29301
29302 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
29303
29304 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
29305 (bits): New mode_attr.
29306 (idiv_ldiv): Delete mode_attr.
29307 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
29308 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
29309 rs6000_adjust_priority, is_nonpipeline_insn,
29310 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
29311
29312 * config/rs6000/40x.md (ppc403-idiv): Adjust.
29313 * config/rs6000/440.md (ppc440-idiv): Adjust.
29314 * config/rs6000/476.md (ppc476-idiv): Adjust.
29315 * config/rs6000/601.md (ppc601-idiv): Adjust.
29316 * config/rs6000/603.md (ppc603-idiv): Adjust.
29317 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
29318 ppc620-ldiv): Adjust.
29319 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
29320 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
29321 * config/rs6000/8540.md (ppc8540_divide): Adjust.
29322 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
29323 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
29324 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
29325 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
29326 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
29327 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
29328 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
29329 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
29330 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
29331 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
29332 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
29333 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
29334 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
29335 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
29336 * config/rs6000/titan.md (titan_fxu_div): Adjust.
29337
29338 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
29339
29340 * config/rs6000/rs6000.md (type): Delete "insert_word",
29341 "insert_dword". Add "insert".
29342 (size): Update comment.
29343 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
29344 insn_must_be_first_in_group): Adjust.
29345 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
29346 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
29347 *insvsi_internal6, insvdi_internal): Adjust.
29348
29349 * config/rs6000/40x.md (ppc403-integer): Adjust.
29350 * config/rs6000/440.md (ppc440-integer): Adjust.
29351 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
29352 * config/rs6000/601.md (ppc601-integer): Adjust.
29353 * config/rs6000/603.md (ppc603-integer): Adjust.
29354 * config/rs6000/6xx.md (ppc604-integer): Adjust.
29355 * config/rs6000/7450.md (ppc7450-integer): Adjust.
29356 * config/rs6000/7xx.md (ppc750-integer): Adjust.
29357 * config/rs6000/8540.md (ppc8540_su): Adjust.
29358 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
29359 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
29360 * config/rs6000/e500mc.md (e500mc_su): Adjust.
29361 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
29362 * config/rs6000/e5500.md (e5500_sfx): Adjust.
29363 * config/rs6000/e6500.md (e6500_sfx): Adjust.
29364 * config/rs6000/mpc.md (mpccore-integer): Adjust.
29365 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
29366 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
29367 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
29368 * config/rs6000/power7.md (power7-integer): Adjust.
29369 * config/rs6000/power8.md (power8-1cyc): Adjust.
29370 * config/rs6000/rs64.md (rs64a-integer): Adjust.
29371 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
29372
29373 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
29374
29375 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
29376 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
29377 (size): New attribute.
29378 (dot): New attribute.
29379 (cell_micro): Adjust.
29380 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
29381 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
29382 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
29383 umuldi3_highpart): Adjust.
29384 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
29385 rs6000_adjust_priority, is_nonpipeline_insn,
29386 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
29387
29388 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
29389 ppc405-imul3): Adjust.
29390 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
29391 * config/rs6000/476.md (ppc476-imul): Adjust.
29392 * config/rs6000/601.md (ppc601-imul): Adjust.
29393 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
29394 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
29395 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
29396 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
29397 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
29398 Adjust.
29399 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
29400 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
29401 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
29402 cell-imul): Adjust.
29403 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
29404 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
29405 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
29406 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
29407 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
29408 * config/rs6000/mpc.md (mpccore-imul): Adjust.
29409 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
29410 power4-lmul, power4-imul, power4-imul3): Adjust.
29411 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
29412 power5-lmul, power5-imul, power5-imul3): Adjust.
29413 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
29414 power6-lmul, power6-imul, power6-imul3): Adjust.
29415 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
29416 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
29417
29418 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
29419 rs64a-lmul): Adjust.
29420 * config/rs6000/titan.md (titan_imul): Adjust.
29421
29422 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
29423
29424 * config/rs6000/rs6000.md (type): Add new value "halfmul".
29425 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
29426 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
29427 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
29428 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
29429 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
29430 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
29431 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
29432 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
29433 * config/rs6000/titan.md: Delete nonsensical comment.
29434 (titan_imul): Add type imul3.
29435 (titan_mulhw): Remove type imul3; add type halfmul.
29436
29437 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
29438
29439 * config/rs6000/rs6000.md (type): Reorder, reformat.
29440
29441 2014-05-23 Martin Jambor <mjambor@suse.cz>
29442
29443 PR tree-optimization/53787
29444 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
29445 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
29446 analysis_done, update all uses.
29447 * ipa-prop.c: Include domwalk.h
29448 (param_analysis_info): Removed.
29449 (param_aa_status): New type.
29450 (ipa_bb_info): Likewise.
29451 (func_body_info): Likewise.
29452 (ipa_get_bb_info): New function.
29453 (aa_overwalked): Likewise.
29454 (find_dominating_aa_status): Likewise.
29455 (parm_bb_aa_status_for_bb): Likewise.
29456 (parm_preserved_before_stmt_p): Changed to use new param AA info.
29457 (load_from_unmodified_param): Accept func_body_info as a parameter
29458 instead of parms_ainfo.
29459 (parm_ref_data_preserved_p): Changed to use new param AA info.
29460 (parm_ref_data_pass_through_p): Likewise.
29461 (ipa_load_from_parm_agg_1): Likewise. Update callers.
29462 (compute_complex_assign_jump_func): Changed to use new param AA info.
29463 (compute_complex_ancestor_jump_func): Likewise.
29464 (ipa_compute_jump_functions_for_edge): Likewise.
29465 (ipa_compute_jump_functions): Removed.
29466 (ipa_compute_jump_functions_for_bb): New function.
29467 (ipa_analyze_indirect_call_uses): Likewise, moved variable
29468 declarations down.
29469 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
29470 and info, moved variable declarations down.
29471 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
29472 node and info.
29473 (ipa_analyze_stmt_uses): Likewise.
29474 (ipa_analyze_params_uses): Removed.
29475 (ipa_analyze_params_uses_in_bb): New function.
29476 (ipa_analyze_controlled_uses): Likewise.
29477 (free_ipa_bb_info): Likewise.
29478 (analysis_dom_walker): New class.
29479 (ipa_analyze_node): Handle node-specific forbidden analysis,
29480 initialize and free func_body_info, use dominator walker.
29481 (ipcp_modif_dom_walker): New class.
29482 (ipcp_transform_function): Create and free func_body_info, use
29483 ipcp_modif_dom_walker, moved a lot of functionality there.
29484
29485 2014-05-23 Marek Polacek <polacek@redhat.com>
29486 Jakub Jelinek <jakub@redhat.com>
29487
29488 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
29489 * gcc.c (sanitize_spec_function): Likewise.
29490 * convert.c (convert_to_integer): Include "ubsan.h". Add
29491 floating-point to integer instrumentation.
29492 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
29493 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
29494 SANITIZE_NONDEFAULT.
29495 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
29496 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
29497 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
29498 * ubsan.c: Include "realmpfr.h" and "dfp.h".
29499 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
29500 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
29501 float/double/long double.
29502 (ubsan_instrument_float_cast): New function.
29503 * ubsan.h (ubsan_instrument_float_cast): Declare.
29504
29505 2014-05-23 Jiong Wang <jiong.wang@arm.com>
29506
29507 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
29508 predicate.
29509 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
29510 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
29511 Adjust for tailcalling through registers.
29512 * config/aarch64/aarch64.h (enum reg_class): New caller save
29513 register class.
29514 (REG_CLASS_NAMES): Likewise.
29515 (REG_CLASS_CONTENTS): Likewise.
29516 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
29517 Allow tailcalling without decls.
29518
29519 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
29520
29521 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
29522 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
29523
29524 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
29525 gsi, and variables v_* to v*.
29526
29527 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
29528
29529 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
29530
29531 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
29532
29533 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
29534 * omp-low.c: Update accordingly.
29535
29536 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
29537 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
29538 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
29539 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
29540 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
29541 GF_OMP_TARGET_KIND_UPDATE.
29542
29543 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
29544 Explicitly enumerate the expected region types.
29545
29546 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
29547
29548 PR other/56955
29549 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
29550 documentation; the old documentation didn't clearly state the
29551 constraints on the contents of the pointed-to storage.
29552
29553 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29554
29555 Fix bootstrap error on ia64
29556 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
29557 Return default value.
29558
29559 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
29560
29561 PR tree-optimization/54733
29562 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
29563 (CMPNOP): Define.
29564 (find_bswap_or_nop_load): New.
29565 (find_bswap_1): Renamed to ...
29566 (find_bswap_or_nop_1): This. Also add support for memory source.
29567 (find_bswap): Renamed to ...
29568 (find_bswap_or_nop): This. Also add support for memory source and
29569 detection of bitwise operations equivalent to load in target
29570 endianness.
29571 (execute_optimize_bswap): Likewise. Also move its leading comment back
29572 in place and split statement transformation into ...
29573 (bswap_replace): This.
29574
29575 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
29576
29577 PR rtl-optimization/61215
29578 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
29579 simplify_gen_subreg until final substitution.
29580
29581 2014-05-23 Alan Modra <amodra@gmail.com>
29582
29583 PR target/61231
29584 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
29585 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
29586 Use "Y" constraint rather than "m".
29587
29588 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
29589
29590 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
29591 define.
29592 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
29593 New function declaration.
29594 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
29595 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
29596 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
29597 (aarch64_init_builtins) : Initialize builtins
29598 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
29599 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
29600 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
29601 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
29602 and __builtins_aarch64_set_fpsr.
29603 (aarch64_atomic_assign_expand_fenv): New function.
29604 * config/aarch64/aarch64.md (set_fpcr): New pattern.
29605 (get_fpcr) : Likewise.
29606 (set_fpsr) : Likewise.
29607 (get_fpsr) : Likewise.
29608 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
29609 and UNSPECV_SET_FPSR.
29610 * doc/extend.texi (AARCH64 Built-in Functions) : Document
29611 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
29612 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
29613
29614 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
29615
29616 PR rtl-optimization/60969
29617 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
29618 constraints. Set up mem cost for NO_REGS case.
29619
29620 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
29621
29622 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
29623
29624 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
29625
29626 * config/darwin.c: Include "lto-section-names.h".
29627 (LTO_SEGMENT_NAME): Don't define.
29628 * config/i386/winnt.c: Include "lto-section-names.h".
29629 * lto-streamer.c: Include "lto-section-names.h".
29630 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
29631 * lto-wrapper.c: Include "lto-section-names.h".
29632 (LTO_SECTION_NAME_PREFIX): Don't define.
29633 * lto-section-names.h: New file.
29634 * cgraphunit.c: Include "lto-section-names.h".
29635
29636 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
29637
29638 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
29639
29640 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
29641
29642 PR target/61208
29643 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
29644
29645 2014-05-22 Nick Clifton <nickc@redhat.com>
29646
29647 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
29648
29649 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
29650
29651 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
29652 -> (T)A transformation to integer types.
29653
29654 2014-05-22 Teresa Johnson <tejohnson@google.com>
29655
29656 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
29657 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
29658 (gcov_rewrite): Use gcov_nonruntime_assert.
29659 (gcov_open): Ditto.
29660 (gcov_write_words): Ditto.
29661 (gcov_write_length): Ditto.
29662 (gcov_read_words): Use gcov_nonruntime_assert, and remove
29663 gcc_assert from IN_LIBGCOV code.
29664 (gcov_read_summary): Use gcov_error to flag profile corruption.
29665 (gcov_sync): Use gcov_nonruntime_assert.
29666 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
29667 (gcov_histo_index): Use gcov_nonruntime_assert.
29668 (static void gcov_histogram_merge): Ditto.
29669 (compute_working_sets): Ditto.
29670 * gcov-io.h (gcov_nonruntime_assert): Define.
29671 (gcov_error): Define for !IN_LIBGCOV
29672
29673 2014-05-22 Richard Biener <rguenther@suse.de>
29674
29675 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
29676 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
29677 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
29678 and deallocation site.
29679 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29680 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
29681 passing through the incoming points-to set.
29682 (handle_lhs_call): Use flags argument instead of recomputing it.
29683 (find_func_aliases_for_call): Call handle_lhs_call with proper
29684 call return flags.
29685
29686 2014-05-22 Jakub Jelinek <jakub@redhat.com>
29687
29688 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
29689 all padding bits in REAL_VALUE_TYPE are cleared.
29690
29691 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29692
29693 Cleanup and improve multipass_dfa_lookahead_guard
29694 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
29695 (core2i7_first_cycle_multipass_begin,)
29696 (core2i7_first_cycle_multipass_issue,)
29697 (core2i7_first_cycle_multipass_backtrack): Update signature.
29698 * config/ia64/ia64.c
29699 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
29700 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
29701 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
29702 hook definition.
29703 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
29704 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
29705 values.
29706 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
29707 return values.
29708 * doc/tm.texi: Regenerate.
29709 * doc/tm.texi.in
29710 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
29711 * haifa-sched.c (ready_try): Make signed to allow negative values.
29712 (rebug_ready_list_1): Update.
29713 (choose_ready): Simplify.
29714 (sched_extend_ready_list): Update.
29715
29716 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29717
29718 Remove IA64 speculation tweaking flags
29719 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
29720 speculation tuning flags.
29721 (msched-prefer-non-data-spec-insns,)
29722 (msched-prefer-non-control-spec-insns): Obsolete options.
29723 * haifa-sched.c (choose_ready): Remove handling of
29724 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
29725 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
29726 and PREFER_NON_DATA_SPEC.
29727 * sel-sched.c (process_spec_exprs): Remove handling of
29728 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
29729
29730 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29731
29732 Improve scheduling debug output
29733 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
29734 (advance_one_cycle): Update.
29735 (schedule_insn, queue_to_ready): Add debug printouts.
29736 (debug_ready_list_1): New static function.
29737 (debug_ready_list): Update.
29738 (max_issue): Add debug printouts.
29739 (dump_insn_stream): New static function.
29740 (schedule_block): Use it. Also better indent printouts.
29741
29742 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
29743
29744 Fix sched_insn debug counter
29745 * haifa-sched.c (schedule_insn): Update.
29746 (struct haifa_saved_data): Add nonscheduled_insns_begin.
29747 (save_backtrack_point, restore_backtrack_point): Update.
29748 (first_nonscheduled_insn): New static function.
29749 (queue_to_ready, choose_ready): Use it.
29750 (schedule_block): Init nonscheduled_insns_begin.
29751 (sched_emit_insn): Update.
29752
29753
29754 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
29755
29756 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
29757 to GENERAL_REGS.
29758 (aarch64_secondary_reload) : LikeWise.
29759 (aarch64_class_max_nregs) : Remove CORE_REGS.
29760 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
29761 (REG_CLASS_NAMES) : Likewise.
29762 (REG_CLASS_CONTENTS) : LikeWise.
29763 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
29764
29765 2014-05-21 Guozhi Wei <carrot@google.com>
29766
29767 PR target/61202
29768 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
29769 constraint.
29770 (vqdmulhq_n_s16): Likewise.
29771
29772 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
29773
29774 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
29775
29776 2014-05-21 Marek Polacek <polacek@redhat.com>
29777
29778 PR sanitizer/61272
29779 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
29780
29781 2014-05-21 Martin Jambor <mjambor@suse.cz>
29782
29783 * doc/invoke.texi (Optimize Options): Document parameters
29784 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
29785 ipa-cp-array-index-hint-bonus.
29786
29787 2014-05-21 Mark Wielaard <mjw@redhat.com>
29788
29789 PR debug/16063
29790 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
29791 version >= 3 or not strict DWARF.
29792 * langhooks.h (struct lang_hooks_for_types): Add
29793 enum_underlying_base_type.
29794 * langhooks.c (lhd_enum_underlying_base_type): New function.
29795 * gcc/langhooks.h (struct lang_hooks_for_types): Add
29796 enum_underlying_base_type.
29797 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
29798 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
29799 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
29800
29801 2014-05-21 Richard Biener <rguenther@suse.de>
29802
29803 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
29804
29805 2014-05-21 John Marino <gnugcc@marino.st>
29806
29807 * config.gcc (*-*-dragonfly*): New target.
29808 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
29809 * configure: Regenerate.
29810 * config/dragonfly-stdint.h: New.
29811 * config/dragonfly.h: New.
29812 * config/dragonfly.opt: New.
29813 * config/i386/dragonfly.h: New.
29814 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
29815
29816 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
29817
29818 * tree.def (VOID_CST): New.
29819 * tree-core.h (TI_VOID): New.
29820 * tree.h (void_node): New.
29821 * tree.c (tree_node_structure_for_code, tree_code_size)
29822 (iterative_hash_expr): Handle VOID_CST.
29823 (build_common_tree_nodes): Initialize void_node.
29824
29825 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
29826
29827 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
29828 functions.
29829 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
29830
29831 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
29832 more places.
29833
29834 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
29835 flag_reorder_blocks_and_partition.
29836 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
29837
29838 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
29839
29840 PR target/54236
29841 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
29842 constraints.
29843 (*addc_r_t): Add new insn_and_split.
29844
29845 2014-05-21 Jakub Jelinek <jakub@redhat.com>
29846
29847 PR middle-end/61252
29848 * omp-low.c (handle_simd_reference): New function.
29849 (lower_rec_input_clauses): Use it. Defer adding reference
29850 initialization even for reduction without placeholder if in simd,
29851 handle it properly later on.
29852
29853 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
29854
29855 PR tree-optimization/60899
29856 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
29857 assume all static symbols will have definition wile parsing and
29858 check the do have definition later in compilation; check that
29859 variable referring symbol will be output before concluding that
29860 reference is safe; be conservative for referring local statics;
29861 be more precise about when comdat is output in other partition.
29862
29863 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
29864
29865 PR bootstrap/60984
29866 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
29867 parameter.
29868 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
29869 (ipa_inline): Loop inline_to_all_callers until no more aliases
29870 are removed.
29871
29872 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
29873
29874 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
29875 set writeonly flag only for vars actually written to.
29876
29877 2014-05-20 Dehao Chen <dehao@google.com>
29878
29879 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
29880 and callee count to get clone count.
29881 * tree-inline.c (expand_call_inline): Use callee count instead of bb
29882 count in copy_body.
29883
29884 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
29885
29886 PR rtl-optimization/61243
29887 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
29888
29889 2014-05-20 Xinliang David Li <davidxl@google.com>
29890
29891 * cgraphunit.c (walk_polymorphic_call_targets): Add
29892 dbgcnt and fopt-info support.
29893 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
29894 * ipa-devirt.c (ipa_devirt): Ditto.
29895 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
29896 * ipa.c (walk_polymorphic_call_targets): Ditto.
29897 * gimple-fold.c (fold_gimple_assign): Ditto.
29898 (gimple_fold_call): Ditto.
29899 * dbgcnt.def: New counter.
29900
29901 2014-05-20 DJ Delorie <dj@redhat.com>
29902
29903 * config/msp430/msp430.md (split): Don't allow subregs when
29904 splitting SImode adds.
29905 (andneghi): Fix subtraction logic.
29906 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
29907
29908 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
29909
29910 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
29911 symbols.
29912 * except.c (switch_to_exception_section, resolve_unique_section,
29913 get_named_text_section, default_function_rodata_section,
29914 align_variable, get_block_for_decl, default_section_type_flags):
29915 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
29916 * symtab.c (symtab_add_to_same_comdat_group,
29917 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
29918 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
29919 Likewise.
29920 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
29921 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
29922 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
29923 (c6x_function_in_section_p): Likewise.
29924 * config/darwin.c (machopic_select_section): Likewise.
29925 * config/arm/arm.c (arm_function_in_section_p): Likewise.
29926 * config/mips/mips.c (mips_function_rodata_section): Likewise.
29927 * config/mep/mep.c (mep_select_section): LIkewise.
29928 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
29929
29930 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
29931
29932 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
29933 EH region of calls to pure functions that can throw an exception.
29934 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
29935 (copy_reference_ops_from_call): Also copy the EH region of the call if
29936 it can throw an exception.
29937
29938 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29939
29940 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
29941 nested VEC_SELECTs that are inverses of each other.
29942
29943 2014-05-20 Richard Biener <rguenther@suse.de>
29944
29945 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
29946 (extract_and_process_scc_for_name): not here.
29947 (cond_dom_walker::before_dom_children): Only process
29948 stmts that end the BB in interesting ways.
29949 (run_scc_vn): Mark param uses as visited.
29950
29951 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29952
29953 * config/arm/arm.md (arith_shiftsi): Do not predicate for
29954 arm_restrict_it.
29955
29956 2014-05-20 Nick Clifton <nickc@redhat.com>
29957
29958 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
29959 (msp430_gimplify_va_arg_expr): New function.
29960 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
29961
29962 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
29963 operand 0 in order to prevent confusion about the number of
29964 registers involved.
29965
29966 2014-05-20 Richard Biener <rguenther@suse.de>
29967
29968 PR tree-optimization/61221
29969 * tree-ssa-pre.c (el_to_update): Remove.
29970 (eliminate_dom_walker::before_dom_children): Handle released
29971 VDEFs by value-numbering them to the associated VUSE. Update
29972 stmt immediately for substituted call address.
29973 (eliminate): Remove delayed stmt updating code.
29974 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
29975 possibly late re-numbered vuses.
29976 (vn_reference_lookup_2): Adjust.
29977 (vn_reference_lookup_pieces): Likewise.
29978 (vn_reference_lookup): Likewise.
29979
29980 2014-05-20 Richard Biener <rguenther@suse.de>
29981
29982 * config.gcc: Remove need_64bit_hwint.
29983 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
29984 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
29985 it to be true.
29986 * config.in: Regenerate.
29987 * configure: Likewise.
29988
29989 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
29990
29991 * doc/extend.texi: Create Label Attributes section,
29992 move all label attributes into it and reference it.
29993
29994 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
29995
29996 * arm.c (thumb1_reorg): When scanning backwards skip anything
29997 that's not a proper insn.
29998
29999 2014-05-19 Richard Biener <rguenther@suse.de>
30000
30001 PR tree-optimization/61221
30002 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
30003 Do nothing for unreachable blocks.
30004 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
30005 Improve unreachability detection.
30006
30007 2014-05-19 Richard Biener <rguenther@suse.de>
30008
30009 PR tree-optimization/61209
30010 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
30011
30012 2014-05-19 Nick Clifton <nickc@redhat.com>
30013
30014 * except.c (init_eh): Fix computation of builtin setjmp buffer
30015 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
30016
30017 2014-05-19 Richard Biener <rguenther@suse.de>
30018
30019 PR tree-optimization/61184
30020 * tree-vrp.c (is_negative_overflow_infinity): Use
30021 TREE_OVERFLOW_P and do that check first.
30022 (is_positive_overflow_infinity): Likewise.
30023 (is_overflow_infinity): Likewise.
30024 (vrp_operand_equal_p): Properly treat operands with
30025 differing overflow as not equal.
30026
30027 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
30028
30029 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
30030 shift simplification where it was intended.
30031
30032 2014-05-19 Christian Bruel <christian.bruel@st.com>
30033
30034 PR target/61195
30035 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
30036
30037 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
30038
30039 PR target/61084
30040 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
30041 than wide_int.
30042
30043 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
30044
30045 * reg-notes.def (CROSSING_JUMP): Likewise.
30046 * rtl.h (rtx_def): Update comment for jump flag.
30047 (CROSSING_JUMP_P): Define.
30048 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
30049 of a REG_CROSSING_JUMP note.
30050 * cfghooks.c (tidy_fallthru_edges): Likewise.
30051 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
30052 * emit-rtl.c (try_split): Likewise.
30053 * haifa-sched.c (sched_create_recovery_edges): Likewise.
30054 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
30055 * jump.c (redirect_jump_2): Likewise.
30056 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
30057 (relax_delay_slots): Likewise.
30058 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
30059 (bbit_di): Likewise.
30060 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
30061 * config/sh/sh.md (jump_compact): Likewise.
30062 * bb-reorder.c (rotate_loop): Likewise.
30063 (pass_duplicate_computed_gotos::execute): Likewise.
30064 (add_reg_crossing_jump_notes): Rename to...
30065 (update_crossing_jump_flags): ...this.
30066 (pass_partition_blocks::execute): Update accordingly.
30067
30068 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
30069
30070 * tree.h: Remove extraneous template <>.
30071
30072 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
30073
30074 * ipa.c (symtab_remove_unreachable_nodes): Remove
30075 symbol from comdat group if its body was eliminated.
30076 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
30077 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
30078 (symtab_unregister_node): ... this one.
30079 (verify_symtab_base): More strict checking of comdats.
30080 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
30081
30082 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
30083
30084 * tree-pass.h (make_pass_ipa_comdats): New pass.
30085 * timevar.def (TV_IPA_COMDATS): New timevar.
30086 * passes.def (pass_ipa_comdats): Add.
30087 * Makefile.in (OBJS): Add ipa-comdats.o
30088 * ipa-comdats.c: New file.
30089
30090 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
30091
30092 * ipa.c (update_visibility_by_resolution_info): New function.
30093 (function_and_variable_visibility): Use it.
30094
30095 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
30096
30097 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
30098 New functions.
30099 (FOR_EACH_DEFINED_SYMBOL): New macro.
30100 (varpool_first_static_initializer, varpool_next_static_initializer,
30101 varpool_first_defined_variable, varpool_next_defined_variable):
30102 Fix comments.
30103 (symtab_in_same_comdat_p): Correctly deal with inline functions.
30104
30105 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
30106
30107 * ggc-page.c (ggc_handle_finalizers): Add comment.
30108
30109 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
30110
30111 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
30112 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
30113 (ggc_internal_cleared_alloc): Likewise.
30114 * ggc-page.c (finalizer): New class.
30115 (vec_finalizer): Likewise.
30116 (globals::finalizers): New member.
30117 (globals::vec_finalizers): Likewise.
30118 (ggc_internal_alloc): Record the finalizer if any for the block being
30119 allocated.
30120 (ggc_handle_finalizers): New function.
30121 (ggc_collect): Call ggc_handle_finalizers.
30122 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
30123 finalizer.
30124 (ggc_internal_cleared_alloc): Likewise.
30125 (finalize): New function.
30126 (need_finalization_p): Likewise.
30127 (ggc_alloc): Install the type's destructor as the finalizer if it
30128 might do something.
30129 (ggc_cleared_alloc): Likewise.
30130 (ggc_vec_alloc): Likewise.
30131 (ggc_cleared_vec_alloc): Likewise.
30132
30133 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
30134
30135 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
30136
30137 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
30138
30139 * alias.c (record_alias_subset): Adjust.
30140 * bitmap.c (bitmap_element_allocate): Likewise.
30141 (bitmap_gc_alloc_stat): Likewise.
30142 * cfg.c (init_flow): Likewise.
30143 (alloc_block): Likewise.
30144 (unchecked_make_edge): Likewise.
30145 * cfgloop.c (alloc_loop): Likewise.
30146 (flow_loops_find): Likewise.
30147 (rescan_loop_exit): Likewise.
30148 * cfgrtl.c (init_rtl_bb_info): Likewise.
30149 * cgraph.c (insert_new_cgraph_node_version): Likewise.
30150 (cgraph_allocate_node): Likewise.
30151 (cgraph_create_edge_1): Likewise.
30152 (cgraph_allocate_init_indirect_info): Likewise.
30153 * cgraphclones.c (cgraph_clone_edge): Likewise.
30154 * cgraphunit.c (add_asm_node): Likewise.
30155 (init_lowered_empty_function): Likewise.
30156 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
30157 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
30158 (alpha_use_linkage): Likewise.
30159 * config/arc/arc.c (arc_init_machine_status): Likewise.
30160 * config/arm/arm.c (arm_init_machine_status): Likewise.
30161 * config/avr/avr.c (avr_init_machine_status): Likewise.
30162 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
30163 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
30164 * config/cris/cris.c (cris_init_machine_status): Likewise.
30165 * config/darwin.c (machopic_indirection_name): Likewise.
30166 (darwin_build_constant_cfstring): Likewise.
30167 (darwin_enter_string_into_cfstring_table): Likewise.
30168 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
30169 * config/frv/frv.c (frv_init_machine_status): Likewise.
30170 * config/i386/i386.c (get_dllimport_decl): Likewise.
30171 (ix86_init_machine_status): Likewise.
30172 (assign_386_stack_local): Likewise.
30173 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
30174 (i386_pe_maybe_record_exported_symbol): Likewise.
30175 (i386_pe_record_stub): Likewise.
30176 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
30177 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
30178 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
30179 (m32c_note_pragma_address): Likewise.
30180 * config/mep/mep.c (mep_init_machine_status): Likewise.
30181 (mep_note_pragma_flag): Likewise.
30182 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
30183 (mips16_local_alias): Likewise.
30184 (mips_init_machine_status): Likewise.
30185 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
30186 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
30187 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
30188 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
30189 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
30190 * config/pa/pa.c (pa_init_machine_status): Likewise.
30191 (pa_get_deferred_plabel): Likewise.
30192 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
30193 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
30194 (rs6000_init_machine_status): Likewise.
30195 (output_toc): Likewise.
30196 * config/s390/s390.c (s390_init_machine_status): Likewise.
30197 * config/score/score.c (score_output_external): Likewise.
30198 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
30199 * config/spu/spu.c (spu_init_machine_status): Likewise.
30200 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
30201 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
30202 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
30203 * coverage.c (coverage_end_function): Likewise.
30204 * dbxout.c (dbxout_init): Likewise.
30205 * doc/gty.texi: Don't mention variable_size attribute.
30206 * dwarf2cfi.c (new_cfi): Adjust.
30207 (new_cfi_row): Likewise.
30208 (copy_cfi_row): Likewise.
30209 (create_cie_data): Likewise.
30210 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
30211 (new_loc_descr): Likewise.
30212 (find_AT_string_in_table): Likewise.
30213 (add_addr_table_entry): Likewise.
30214 (new_die): Likewise.
30215 (add_var_loc_to_decl): Likewise.
30216 (clone_die): Likewise.
30217 (clone_as_declaration): Likewise.
30218 (break_out_comdat_types): Likewise.
30219 (new_loc_list): Likewise.
30220 (add_loc_descr_to_each): Likewise.
30221 (add_location_or_const_value_attribute): Likewise.
30222 (add_linkage_name): Likewise.
30223 (lookup_filename): Likewise.
30224 (dwarf2out_var_location): Likewise.
30225 (new_line_info_table): Likewise.
30226 (dwarf2out_init): Likewise.
30227 (mem_loc_descriptor): Likewise.
30228 (loc_descriptor): Likewise.
30229 (add_const_value_attribute): Likewise.
30230 (tree_add_const_value_attribute): Likewise.
30231 (comp_dir_string): Likewise.
30232 (dwarf2out_vms_debug_main_pointer): Likewise.
30233 (string_cst_pool_decl): Likewise.
30234 * emit-rtl.c (set_mem_attrs): Likewise.
30235 (get_reg_attrs): Likewise.
30236 (start_sequence): Likewise.
30237 (init_emit): Likewise.
30238 (init_emit_regs): Likewise.
30239 * except.c (init_eh_for_function): Likewise.
30240 (gen_eh_region): Likewise.
30241 (gen_eh_region_catch): Likewise.
30242 (gen_eh_landing_pad): Likewise.
30243 (add_call_site): Likewise.
30244 * function.c (add_frame_space): Likewise.
30245 (insert_temp_slot_address): Likewise.
30246 (assign_stack_temp_for_type): Likewise.
30247 (get_hard_reg_initial_val): Likewise.
30248 (allocate_struct_function): Likewise.
30249 (prepare_function_start): Likewise.
30250 (types_used_by_var_decl_insert): Likewise.
30251 * gengtype.c (variable_size_p): Remove function.
30252 (enum alloc_quantity): Remove enum.
30253 (write_typed_alloc_def): Remove function.
30254 (write_typed_struct_alloc_def): Likewise.
30255 (write_typed_typedef_alloc_def): Likewise.
30256 (write_typed_alloc_defns): Likewise.
30257 (main): Adjust.
30258 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
30259 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
30260 * ggc.h (ggc_alloc): new function.
30261 (ggc_cleared_alloc): Likewise.
30262 (ggc_vec_alloc): Template on type of vector element, and remove
30263 element size argument.
30264 (ggc_cleared_vec_alloc): Likewise.
30265 * gimple.c (gimple_build_omp_for): Adjust.
30266 (gimple_copy): Likewise.
30267 * ipa-cp.c (get_replacement_map): Likewise.
30268 (find_aggregate_values_for_callers_subset): Likewise.
30269 (known_aggs_to_agg_replacement_list): Likewise.
30270 * ipa-devirt.c (get_odr_type): Likewise.
30271 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
30272 (read_agg_replacement_chain): Likewise.
30273 * loop-iv.c (get_simple_loop_desc): Likewise.
30274 * lto-cgraph.c (input_node_opt_summary): Likewise.
30275 * lto-section-in.c (lto_new_in_decl_state): Likewise.
30276 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
30277 (input_eh_region): Likewise.
30278 (input_eh_lp): Likewise.
30279 (input_cfg): Likewise.
30280 * optabs.c (set_optab_libfunc): Likewise.
30281 (init_tree_optimization_optabs): Likewise.
30282 (set_conv_libfunc): Likewise.
30283 * passes.c (do_per_function_toporder): Likewise.
30284 * rtl.h: Don't use variable_size gty attribute.
30285 * sese.c (if_region_set_false_region): Adjust.
30286 * stringpool.c (gt_pch_save_stringpool): Likewise.
30287 * target-globals.c (save_target_globals): Likewise.
30288 * toplev.c (general_init): Likewise.
30289 * trans-mem.c (record_tm_replacement): Likewise.
30290 (split_bb_make_tm_edge): Likewise.
30291 * tree-cfg.c (move_sese_region_to_fn): Likewise.
30292 * tree-data-ref.h (lambda_vector_new): Likewise.
30293 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
30294 * tree-iterator.c (tsi_link_before): Likewise.
30295 (tsi_link_after): Likewise.
30296 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
30297 * tree-ssa-loop-niter.c (record_estimate): Likewise.
30298 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
30299 * tree-ssa-operands.h: Don't use variable_size gty attribute.
30300 * tree-ssa.c (init_tree_ssa): Adjust.
30301 * tree-ssanames.c (set_range_info): Likewise.
30302 (get_ptr_info): Likewise.
30303 (duplicate_ssa_name_ptr_info): Likewise.
30304 (duplicate_ssa_name_range_info): Likewise.
30305 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
30306 (unpack_ts_fixed_cst_value_fields): Likewise.
30307 * tree.c (build_fixed): Likewise.
30308 (build_real): Likewise.
30309 (build_string): Likewise.
30310 (decl_priority_info): Likewise.
30311 (decl_debug_expr_insert): Likewise.
30312 (decl_value_expr_insert): Likewise.
30313 (decl_debug_args_insert): Likewise.
30314 (type_hash_add): Likewise.
30315 (build_omp_clause): Likewise.
30316 * ubsan.c (decl_for_type_insert): Likewise.
30317 * varasm.c (get_unnamed_section): Likewise.
30318 (get_noswitch_section): Likewise.
30319 (get_section): Likewise.
30320 (get_block_for_section): Likewise.
30321 (create_block_symbol): Likewise.
30322 (build_constant_desc): Likewise.
30323 (create_constant_pool): Likewise.
30324 (force_const_mem): Likewise.
30325 (record_tm_clone_pair): Likewise.
30326 * varpool.c (varpool_create_empty_node): Likewise.
30327
30328 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
30329
30330 * dwarf2out.c (tree_add_const_value_attribute): Call
30331 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
30332 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
30333 instead of ggc_internal_<x>alloc_stat.
30334 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
30335 (ggc_realloc): Likewise.
30336 * ggc-none.c (ggc_internal_alloc): Likewise.
30337 (ggc_internal_cleared_alloc): Likewise.
30338 * ggc-page.c: Likewise.
30339 * ggc.h (ggc_internal_alloc_stat): Likewise.
30340 (ggc_internal_alloc): Remove macro.
30341 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
30342 (ggc_internal_cleared_alloc): Remove macro.
30343 (GGC_RESIZEVEC): Adjust.
30344 (ggc_resizevar): Remove macro.
30345 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
30346 (ggc_internal_cleared_vec_alloc_stat): Likewise.
30347 (ggc_internal_vec_cleared_alloc): Remove macro.
30348 (ggc_alloc_atomic_stat): Drop _stat suffix.
30349 (ggc_alloc_atomic): Remove macro.
30350 (ggc_alloc_cleared_atomic): Remove macro.
30351 (ggc_alloc_string_stat): Drop _stat suffix.
30352 (ggc_alloc_string): Remove macro.
30353 (ggc_alloc_rtx_def_stat): Adjust.
30354 (ggc_alloc_tree_node_stat): Likewise.
30355 (ggc_alloc_cleared_tree_node_stat): Likewise.
30356 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
30357 (ggc_alloc_cleared_simd_clone_stat): Likewise.
30358 * gimple.c (gimple_build_omp_for): Likewise.
30359 (gimple_copy): Likewise.
30360 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
30361 * toplev.c (realloc_for_line_map): Adjust.
30362 * tree-data-ref.h (lambda_vector_new): Likewise.
30363 * tree-phinodes.c (allocate_phi_node): Likewise.
30364 * tree.c (grow_tree_vec_stat): Likewise.
30365 * vec.h (va_gc::reserve): Adjust.
30366
30367 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
30368
30369 * config/microblaze/microblaze.c (break_handler): New Declaration.
30370 (microblaze_break_function_p,microblaze_is_break_handler): New.
30371 (compute_frame_size): Use microblaze_break_function_p.
30372 Add the test of break_handler.
30373 (microblaze_function_prologue) : Add the test of variable
30374 break_handler. Check the fnname by BREAK_HANDLER_NAME.
30375 (microblaze_function_epilogue) : Add the test of break_handler.
30376 (microblaze_globalize_label) : Add the test of break_handler.
30377 Check the name by BREAK_HANDLER_NAME.
30378
30379 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
30380
30381 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
30382 microblaze_is_break_handler test.
30383 (call_internal1,call_value_intern): Use microblaze_break_function_p.
30384 Use SYMBOL_REF_DECL.
30385
30386 * config/microblaze/microblaze-protos.h
30387 (microblaze_break_function_p,microblaze_is_break_handler):
30388 New Declaration.
30389
30390 * doc/extend.texi (MicroBlaze break_handler Functions): Document
30391 new MicroBlaze break_handler functions.
30392
30393 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
30394
30395 * doc/extend.texi (Size of an asm): Move node text according
30396 to its @menu entry position.
30397
30398 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
30399
30400 PR tree-optimization/61140
30401 PR tree-optimization/61150
30402 PR tree-optimization/61197
30403 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
30404
30405 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
30406
30407 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
30408
30409 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
30410
30411 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
30412 __SIZEOF_INT128__ is defined.
30413
30414 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
30415
30416 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
30417 (rs6000_delegitimize_address): Use it.
30418
30419 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
30420
30421 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
30422 inplace argument. Store the new address in the original MEM when true.
30423 * emit-rtl.c (change_address_1): Likewise.
30424 (adjust_address_1, adjust_automodify_address_1, offset_address):
30425 Update accordingly.
30426 * rtl.h (plus_constant): Add an inplace argument.
30427 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
30428 when true. Avoid generating (plus X (const_int 0)).
30429 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
30430 in-place. Pass true to plus_constant.
30431 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
30432
30433 2014-05-16 Dehao Chen <dehao@google.com>
30434
30435 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
30436
30437 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
30438
30439 PR target/54089
30440 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
30441 patterns.
30442 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
30443
30444 2014-05-16 Dehao Chen <dehao@google.com>
30445
30446 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
30447 optimize_function_for_size_p.
30448 * regs.h (REG_FREQ_FROM_BB): Likewise.
30449
30450 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
30451
30452 PR target/51244
30453 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
30454 negt_reg_operand cases.
30455 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
30456 predicate.
30457 * config/sh/predicates.md (cbranch_treg_value): Simplify.
30458
30459 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
30460
30461 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
30462 target variants.
30463
30464 2014-05-16 David Malcolm <dmalcolm@redhat.com>
30465
30466 Revert:
30467 2014-04-29 David Malcolm <dmalcolm@redhat.com>
30468
30469 * tree-cfg.c (dump_function_to_file): Dump the return type of
30470 functions, in a line to itself before the function body, mimicking
30471 the layout of a C function.
30472
30473 2014-05-16 Dehao Chen <dehao@google.com>
30474
30475 * cfghooks.c (make_forwarder_block): Use direct computation to
30476 get fall-through edge's count and frequency.
30477
30478 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
30479
30480 * config/arc/arc.c (arc_init): Fix typo in error message.
30481 * config/i386/i386.c (ix86_expand_builtin): Likewise.
30482 (split_stack_prologue_scratch_regno): Likewise.
30483 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
30484 word from error message.
30485
30486 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30487
30488 * ira-costs.c: Fix typo in comment.
30489
30490 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
30491
30492 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
30493
30494 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
30495
30496 * varpool.c (dump_varpool_node): Dump write-only flag.
30497 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
30498 write-only flag.
30499 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
30500 write-only variables.
30501 * ipa.c (process_references): New function.
30502 (set_readonly_bit): New function.
30503 (set_writeonly_bit): New function.
30504 (clear_addressable_bit): New function.
30505 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
30506 fix handling of aliases.
30507 * cgraph.h (struct varpool_node): Add writeonly flag.
30508
30509 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
30510
30511 PR rtl-optimization/60969
30512 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
30513 Calculate costs for this case.
30514
30515 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
30516
30517 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
30518 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
30519
30520 2014-05-16 Richard Biener <rguenther@suse.de>
30521
30522 PR tree-optimization/61194
30523 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
30524 bool patterns ending in a COND_EXPR.
30525
30526 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30527
30528 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
30529
30530 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30531
30532 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
30533 where we were unable to cost an RTX.
30534
30535 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30536
30537 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
30538 HIGH, LO_SUM.
30539
30540 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30541 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30542
30543 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
30544
30545 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30546 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30547
30548 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
30549 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
30550
30551 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30552 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30553
30554 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
30555 operators.
30556
30557 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30558 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30559
30560 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
30561 DIV/MOD.
30562
30563 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30564 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30565
30566 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
30567 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
30568
30569 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30570 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30571
30572 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
30573 rotates and shifts.
30574
30575 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30576 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30577
30578 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
30579 ZERO_EXTEND and SIGN_EXTEND better.
30580
30581 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30582 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30583
30584 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
30585 logical operations.
30586
30587 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30588 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30589
30590 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
30591 costs when costing loads and stores to memory.
30592
30593 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30594 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
30595
30596 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
30597 for SET RTX.
30598
30599 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30600
30601 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
30602
30603 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30604 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30605
30606 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
30607 to...
30608 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
30609 well formed.
30610 (aarch64_rtx_mult_cost): New.
30611 (aarch64_rtx_costs): Use it, refactor as appropriate.
30612
30613 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30614 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
30615
30616 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
30617 emit instructions, return number of instructions which would
30618 be emitted.
30619 (aarch64_add_constant): Update call to aarch64_build_constant.
30620 (aarch64_output_mi_thunk): Likewise.
30621 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
30622 a CONST_DOUBLE.
30623
30624 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30625
30626 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
30627 (TARGET_RTX_COSTS): Call it.
30628
30629 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30630
30631 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
30632 (cortexa57_vector_cost): Likewise.
30633 (cortexa57_tunings): Use them.
30634
30635 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
30636
30637 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
30638 (cpu_addrcost_table): Use it.
30639 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
30640 (aarch64_address_cost): Rewrite using aarch64_classify_address,
30641 move it.
30642
30643 2014-05-16 Richard Biener <rguenther@suse.de>
30644
30645 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
30646 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
30647 (visit_phi): Ignore edges marked as not executable.
30648 (class cond_dom_walker): New.
30649 (cond_dom_walker::before_dom_children): Value-number
30650 control statements and mark successor edges as not
30651 executable if possible.
30652 (run_scc_vn): First walk all control statements in
30653 dominator order, marking edges as not executable.
30654 * tree-inline.c (copy_edges_for_bb): Be not confused
30655 about random edge flags.
30656
30657 2014-05-16 Richard Biener <rguenther@suse.de>
30658
30659 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
30660
30661 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
30662
30663 PR target/61193
30664 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
30665 (__TM_simple_begin): Use it.
30666 (__TM_begin): Likewise.
30667
30668 2014-05-15 Martin Jambor <mjambor@suse.cz>
30669
30670 PR ipa/61085
30671 * ipa-prop.c (update_indirect_edges_after_inlining): Check
30672 type_preserved flag when the indirect edge is polymorphic.
30673
30674 2014-05-15 Martin Jambor <mjambor@suse.cz>
30675
30676 PR tree-optimization/61090
30677 * tree-sra.c (sra_modify_expr): Pass the current gsi to
30678 build_ref_for_model.
30679
30680 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30681
30682 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
30683 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
30684
30685 2014-05-15 Jakub Jelinek <jakub@redhat.com>
30686
30687 PR tree-optimization/61158
30688 * fold-const.c (fold_binary_loc): If X is zero-extended and
30689 shiftc >= prec, make sure zerobits is all ones instead of
30690 invoking undefined behavior.
30691
30692 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30693
30694 * regcprop.h: New file.
30695 * regcprop.c (skip_debug_insn_p): New decl.
30696 (replace_oldest_value_reg): Check skip_debug_insn_p.
30697 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
30698 * shrink-wrap.c: Include regcprop.h.
30699 (prepare_shrink_wrap): Call
30700 copyprop_hardreg_forward_bb_without_debug_insn.
30701
30702 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30703
30704 * shrink-wrap.h: Update comment.
30705 * shrink-wrap.c: Update comment.
30706 (next_block_for_reg): Rename to live_edge_for_reg.
30707 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
30708 (move_insn_for_shrink_wrap): Split live_edge.
30709 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
30710
30711 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
30712
30713 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
30714 Delete.
30715 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
30716 * config/sparc/sparc.md (fptype_ut699): New attribute.
30717 (in_branch_delay): Return false if -mfix-ut699 is specified and
30718 fptype_ut699 is set to single.
30719 (truncdfsf2): Add fptype_ut699 attribute.
30720 (fix_truncdfsi2): Likewise.
30721 (floatsisf2): Change fptype attribute.
30722 (fix_truncsfsi2): Likewise.
30723 (negtf2_notv9): Delete.
30724 (negtf2_v9): Likewise.
30725 (negtf2_hq): New instruction.
30726 (negtf2): New instruction and splitter.
30727 (negdf2_notv9): Rewrite.
30728 (abstf2_notv9): Delete.
30729 (abstf2_hq_v9): Likewise.
30730 (abstf2_v9): Likewise.
30731 (abstf2_hq): New instruction.
30732 (abstf2): New instruction and splitter.
30733 (absdf2_notv9): Rewrite.
30734
30735 2014-05-14 Cary Coutant <ccoutant@google.com>
30736
30737 PR debug/61013
30738 * opts.c (common_handle_option): Don't special-case "-g".
30739 (set_debug_level): Default to at least level 2 with "-g".
30740
30741 2014-05-14 DJ Delorie <dj@redhat.com>
30742
30743 * config/msp430/msp430.c (msp430_builtin): Add
30744 MSP430_BUILTIN_DELAY_CYCLES.
30745 (msp430_init_builtins): Register void __delay_cycles(long long).
30746 (msp430_builtin_decl): Add it.
30747 (cg_magic_constant): New.
30748 (msp430_expand_delay_cycles): New.
30749 (msp430_expand_builtin): Call it.
30750 (msp430_print_operand_raw): Change integer printing from "int" to
30751 HOST_WIDE_INT.
30752 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
30753 (delay_cycles_start): New.
30754 (delay_cycles_end): New.
30755 (delay_cycles_32): New.
30756 (delay_cycles_32x): New.
30757 (delay_cycles_16): New.
30758 (delay_cycles_16x): New.
30759 (delay_cycles_2): New.
30760 (delay_cycles_1): New.
30761 * doc/extend.texi: Document __delay_cycles().
30762
30763 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
30764
30765 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
30766 length attribute computation.
30767
30768 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
30769
30770 PR debug/61188
30771 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
30772
30773 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
30774
30775 PR target/61084
30776 * config/sparc/sparc.md: Fix types of low and high in DI constant
30777 splitter. Use gen_int_mode in some other splitters.
30778
30779 2014-05-14 Martin Jambor <mjambor@suse.cz>
30780
30781 PR ipa/60897
30782 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
30783
30784 2014-05-14 James Norris <jnorris@codesourcery.com>
30785
30786 * omp-low.c (expand_parallel_call): Remove shadow variable.
30787 (expand_omp_taskreg): Likewise.
30788
30789 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
30790
30791 * common/config/i386/i386-common.c
30792 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
30793 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
30794 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
30795 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
30796 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
30797 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
30798 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
30799 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
30800 xsavecintrin.h, xsavesintrin.h.
30801 (x86_64-*-*): Ditto.
30802 * config/i386/clflushoptintrin.h: New.
30803 * config/i386/xsavecintrin.h: Ditto.
30804 * config/i386/xsavesintrin.h: Ditto.
30805 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
30806 (bit_XSAVES): Ditto.
30807 (bit_XSAVES): Ditto.
30808 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
30809 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
30810 -mno-clflushopt.
30811 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
30812 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
30813 OPTION_MASK_ISA_XSAVES.
30814 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
30815 -mxsavec, -mxsaves.
30816 (PTA_CLFLUSHOPT) Define.
30817 (PTA_XSAVEC): Ditto.
30818 (PTA_XSAVES): Ditto.
30819 (ix86_option_override_internal): Handle new options.
30820 (ix86_valid_target_attribute_inner_p): Ditto.
30821 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
30822 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
30823 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
30824 (bdesc_special_args): Add __builtin_ia32_xsaves,
30825 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
30826 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
30827 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
30828 (ix86_expand_builtin): Handle new builtins.
30829 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
30830 (TARGET_CLFLUSHOPT_P): Ditto.
30831 (TARGET_XSAVEC): Ditto.
30832 (TARGET_XSAVEC_P): Ditto.
30833 (TARGET_XSAVES): Ditto.
30834 (TARGET_XSAVES_P): Ditto.
30835 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
30836 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
30837 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
30838 (ANY_XRSTOR): New.
30839 (ANY_XRSTOR64): Ditto.
30840 (xrstor): Ditto.
30841 (xrstor): Change into <xrstor>.
30842 (xrstor_rex64): Change into <xrstor>_rex64.
30843 (xrstor64): Change into <xrstor>64
30844 (clflushopt): New.
30845 * config/i386/i386.opt (mclflushopt): New.
30846 (mxsavec): Ditto.
30847 (mxsaves): Ditto.
30848 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
30849 xsavecintrin.h.
30850 * doc/invoke.texi: Document new options.
30851
30852 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
30853
30854 PR rtl-optimization/60866
30855 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
30856 Default it to -1. Pass it down to init_simplejump_data.
30857 (init_simplejump_data): New parameter old_seqno. Pass it down
30858 to get_seqno_for_a_jump.
30859 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
30860 initializing new jump seqno as a last resort. Add comment.
30861 (sel_redirect_edge_and_branch): Save old seqno of the conditional
30862 jump and pass it down to sel_init_new_insn.
30863 (sel_redirect_edge_and_branch_force): Likewise.
30864
30865 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
30866
30867 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
30868 shifted values to avoid build warning.
30869
30870 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
30871
30872 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
30873 * cfgrtl.c (rtl_merge_blocks): Fix comment.
30874 (cfg_layout_merge_blocks): Likewise.
30875 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
30876
30877 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
30878
30879 PR rtl-optimization/60901
30880 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
30881 bb predecessor belongs to the same scheduling region. Adjust comment.
30882
30883 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
30884
30885 * doc/sourcebuild.texi: (dfp_hw): Document.
30886 (p8vector_hw): Likewise.
30887 (powerpc_eabi_ok): Likewise.
30888 (powerpc_elfv2): Likewise.
30889 (powerpc_htm_ok): Likewise.
30890 (ppc_recip_hw): Likewise.
30891 (vsx_hw): Likewise.
30892
30893 2014-05-13 Cary Coutant <ccoutant@google.com>
30894
30895 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
30896
30897 2014-05-13 David Malcolm <dmalcolm@redhat.com>
30898
30899 * gengtype-parse.c (require3): Eliminate in favor of...
30900 (require4): New.
30901 (require_template_declaration): Update to support optional single *
30902 on a type.
30903
30904 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
30905 (create_user_defined_type): Handle a single level of explicit
30906 pointerness within template arguments.
30907 (struct write_types_data): Add field "kind".
30908 (filter_type_name): Handle "*" character.
30909 (write_user_func_for_structure_ptr): Require a write_types_data
30910 rather than just a prefix string, so that we can look up the kind
30911 of the wtd and use it as an index into wrote_user_func_for_ptr,
30912 ensuring that such functions are written at most once. Support
30913 subclasses by invoking the marking function of the ultimate base class.
30914 (write_user_func_for_structure_body): Require a write_types_data
30915 rather than just a prefix string, so that we can pass this to
30916 write_user_func_for_structure_ptr.
30917 (write_func_for_structure): Likewise.
30918 (ggc_wtd): Add initializer of new "kind" field.
30919 (pch_wtd): Likewise.
30920
30921 * gengtype.h (enum write_types_kinds): New.
30922 (struct type): Add field wrote_user_func_for_ptr to the "s"
30923 union member.
30924
30925 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
30926
30927 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
30928 instead of const_binop.
30929 (fold_binary_loc): Likewise.
30930
30931 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
30932
30933 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
30934 calculation to match get_ref_base_and_extent.
30935
30936 2014-05-13 Catherine Moore <clm@codesourcery.com>
30937 Sandra Loosemore <sandra@codesourcery.com>
30938
30939 * configure.ac: Fix assembly for explicit JALR relocation check.
30940 * configure: Regenerate.
30941
30942 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30943
30944 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
30945 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
30946 Remove associated type declarations and initialisations.
30947 (arm_expand_neon_builtin): Likewise.
30948 (neon_emit_pair_result_insn): Delete.
30949 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
30950 * config/arm/neon.md (neon_vtrn<mode>): Delete.
30951 (neon_vzip<mode>): Likewise.
30952 (neon_vuzp<mode>): Likewise.
30953
30954 2014-05-13 Richard Biener <rguenther@suse.de>
30955
30956 PR ipa/60973
30957 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
30958 it needs revisiting whether the call still may be tail-called.
30959
30960 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
30961
30962 * rtl.def (SYMBOL_REF): Remove middle "0" field.
30963 * rtl.h (block_symbol): Reduce number of fields to 2.
30964 (rtx_def): Add u2.symbol_ref_flags.
30965 (SYMBOL_REF_FLAGS): Use it.
30966 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
30967 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
30968 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
30969 Lower index of SYMBOL_REF_DATA.
30970 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
30971 Print SYMBOL_REF_FLAGS at the same time.
30972 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
30973
30974 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
30975
30976 * rtl.def (VAR_LOCATION): Remove "i" field.
30977 * rtl.h (rtx_def): Add u2.var_location_status.
30978 (PAT_VAR_LOCATION_STATUS): Use it.
30979 (gen_rtx_VAR_LOCATION): Declare.
30980 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
30981 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
30982 * var-tracking.c (emit_note_insn_var_location): Remove casts.
30983
30984 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
30985
30986 * rtl.def (scratch): Fix outdated comment and remove "0" field.
30987 * gengtype.c (adjust_field_rtx_def): Update accordingly.
30988
30989 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
30990
30991 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
30992 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
30993 * rtl.h (rtx_def): Add insn_uid to u2 field.
30994 (RTX_FLAG_CHECK8): Delete in favor of...
30995 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
30996 (INSN_DELETED_P): Update accordingly.
30997 (INSN_UID): Use u2.insn_uid.
30998 (INSN_CHAIN_CODE_P): Define.
30999 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
31000 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
31001 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
31002 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
31003 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
31004 indices accordingly.
31005 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
31006 Update indices for insn-chain rtxes.
31007 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
31008 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
31009 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
31010 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
31011 * combine.c (try_combine): Likewise.
31012 * ira.c (setup_prohibited_mode_move_regs): Likewise.
31013
31014 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
31015
31016 * rtl.def (REG): Remove middle field.
31017 * rtl.h (rtx_def): Add orignal_regno to u2.
31018 (ORIGINAL_REGNO): Use it instead of field 1.
31019 (REG_ATTRS): Lower field index accordingly.
31020 * gengtype.c (adjust_field_rtx_def): Remove handling of
31021 ORIGINAL_REGNO. Move REG_ATTRS index down.
31022 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
31023 code that prints the REGNO.
31024
31025 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
31026
31027 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
31028 GENERATOR_FILE.
31029
31030 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
31031
31032 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
31033
31034 2014-05-13 Bin Cheng <bin.cheng@arm.com>
31035
31036 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
31037 (alloc_iv): Lower base expressions containing ADDR_EXPR.
31038
31039 2014-05-13 Ian Bolton <ian.bolton@arm.com>
31040
31041 * config/aarch64/aarch64-protos.h
31042 (aarch64_hard_regno_caller_save_mode): New prototype.
31043 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
31044 New function.
31045 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
31046
31047 2014-05-13 Christian Bruel <christian.bruel@st.com>
31048
31049 * target.def (mode_switching): New hook vector.
31050 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
31051 (mode_exit, modepriority_to_mode): Likewise.
31052 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
31053 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
31054 * target.h: Include tm.h and hard-reg-set.h.
31055 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
31056 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
31057 * doc/tm.texi Regenerate.
31058 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
31059 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
31060 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
31061 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
31062 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
31063 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
31064 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
31065 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
31066 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
31067 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
31068 (ix86_emit_mode_set): Hookify.
31069 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
31070 Delete.
31071 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
31072 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
31073 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
31074 (epiphany_mode_priority_to_mode): Remove declaration.
31075 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
31076 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
31077 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
31078 Likewise.
31079 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
31080 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
31081 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
31082
31083 2014-05-13 Jakub Jelinek <jakub@redhat.com>
31084
31085 PR target/61060
31086 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
31087 is const0_rtx, return immediately. Don't test count == 0 when
31088 it is always true.
31089
31090 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
31091
31092 * Makefile.in: add shrink-wrap.o.
31093 * config/i386/i386.c: include "shrink-wrap.h"
31094 * function.c: Likewise.
31095 (requires_stack_frame_p, next_block_for_reg,
31096 move_insn_for_shrink_wrap, prepare_shrink_wrap,
31097 dup_block_and_redirect): Move to shrink-wrap.c
31098 (thread_prologue_and_epilogue_insns): Extract three code segments
31099 as functions in shrink-wrap.c
31100 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
31101 shrink-wrap.h
31102 * shrink-wrap.c: New file.
31103 * shrink-wrap.h: New file.
31104
31105 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
31106
31107 * doc/extend.texi: Reflect current numbers of pragmas. Remove
31108 reference to Solaris.
31109
31110 2014-05-12 Mike Stump <mikestump@comcast.net>
31111
31112 PR other/31778
31113 * genattrtab.c (filename): Add.
31114 (convert_set_attr_alternative): Improve error message.
31115 (check_defs): Restore read_md_filename for error messages.
31116 (gen_insn): Save filename.
31117
31118 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
31119
31120 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
31121 -fno-local-ivars and -fivar-visibility.
31122 * c-family/c.opt: Make -Wshadow also implicitly enable
31123 -Wshadow-ivar.
31124
31125 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
31126
31127 * doc/tm.texi: Remove reference to deleted macro.
31128 * doc/tm.texi.in: Likewise.
31129
31130 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31131
31132 PR target/60991
31133 * config/avr/avr.c (avr_out_store_psi): Use correct constant
31134 to restore Y.
31135
31136 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
31137
31138 PR libgcc/61152
31139 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
31140 * config/arm/aout.h (License): Same.
31141 * config/arm/bpabi.h (License): Same.
31142 * config/arm/elf.h (License): Same.
31143 * config/arm/linux-elf.h (License): Same.
31144 * config/arm/linux-gas.h (License): Same.
31145 * config/arm/netbsd-elf.h (License): Same.
31146 * config/arm/uclinux-eabi.h (License): Same.
31147 * config/arm/uclinux-elf.h (License): Same.
31148 * config/arm/vxworks.h (License): Same.
31149
31150 2014-05-11 Jakub Jelinek <jakub@redhat.com>
31151
31152 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
31153 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
31154 number of operands to 3.
31155 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
31156 * tree-nested.c (convert_nonlocal_omp_clauses,
31157 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
31158 * gimplify.c (gimplify_scan_omp_clauses): Handle
31159 OMP_CLAUSE_LINEAR_STMT.
31160 * omp-low.c (lower_rec_input_clauses): Fix typo.
31161 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
31162 cast between Fortran boolean_type_node and C _Bool if
31163 needed.
31164
31165 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
31166
31167 PR tree-optimization/61136
31168 * wide-int.h (multiple_of_p): Define a version that doesn't return
31169 the quotient.
31170 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
31171 integer_zerop/const_binop pair.
31172 (multiple_of_p): Likewise, converting both operands to widest_int
31173 precision.
31174
31175 2014-05-09 Teresa Johnson <tejohnson@google.com>
31176
31177 * cgraphunit.c (analyze_functions): Use correct dump file.
31178
31179 2014-05-09 Florian Weimer <fweimer@redhat.com>
31180
31181 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
31182 expand_used_vars.
31183 (stack_protect_return_slot_p): New function.
31184 (expand_used_vars): Call stack_protect_decl_p and
31185 stack_protect_return_slot_p for -fstack-protector-strong.
31186
31187 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
31188 Andrew Haley <aph@redhat.com>
31189 Richard Sandiford <rdsandiford@googlemail.com>
31190
31191 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
31192 pages.
31193
31194 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
31195
31196 PR middle-end/61111
31197 * fold-const.c (fold_binary_loc): Changed width of mask.
31198
31199 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
31200
31201 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
31202 unsigned int initializers for regno_in, regno_out.
31203
31204 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
31205
31206 PR target/61055
31207 * config/avr/avr.md (cc): Add new attribute set_vzn.
31208 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
31209 Set cc insn attribute to set_vzn instead of set_zn for alternatives
31210 with INC, DEC or NEG.
31211 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
31212 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
31213 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
31214
31215 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31216
31217 Revert:
31218 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31219
31220 * wide-int.cc (UTItype): Define.
31221 (UDWtype): Define for appropriate W_TYPE_SIZE.
31222
31223 2014-05-09 Richard Biener <rguenther@suse.de>
31224
31225 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
31226 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
31227 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
31228 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
31229 ssa_propagate): Adjust.
31230
31231 2014-05-08 Jeff Law <law@redhat.com>
31232
31233 PR tree-optimization/61009
31234 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
31235 tri-state rather than a boolean. When a block is too big to
31236 thread through, inform caller via negative return value.
31237 (thread_across_edge): If a block was too big for normal threading,
31238 then it's too big for a joiner too, so remove temporary equivalences
31239 and return immediately.
31240
31241 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
31242 Matthias Klose <doko@ubuntu.com>
31243
31244 PR driver/61106
31245 * optc-gen.awk: Fix option handling for -Wunused-parameter.
31246
31247 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
31248
31249 PR target/59952
31250 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
31251
31252 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
31253
31254 PR target/61092
31255 * config/alpha/alpha.c: Include gimple-iterator.h.
31256 (alpha_gimple_fold_builtin): New function. Move
31257 ALPHA_BUILTIN_UMULH folding from ...
31258 (alpha_fold_builtin): ... here.
31259 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
31260
31261 2014-05-08 Wei Mi <wmi@google.com>
31262
31263 PR target/58066
31264 * config/i386/i386.c (ix86_compute_frame_layout): Update
31265 preferred_stack_boundary for call, expanded from tls descriptor.
31266 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
31267 to depend on SP register.
31268 (*tls_local_dynamic_base_32_gnu): Ditto.
31269 (*tls_local_dynamic_32_once): Ditto.
31270 (tls_global_dynamic_64_<mode>): Set
31271 ix86_tls_descriptor_calls_expanded_in_cfun.
31272 (tls_local_dynamic_base_64_<mode>): Ditto.
31273 (tls_global_dynamic_32): Set
31274 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
31275 to depend on SP register.
31276 (tls_local_dynamic_base_32): Ditto.
31277
31278 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31279
31280 * config/arm/arm_neon.h: Update comment.
31281 * config/arm/neon-docgen.ml: Delete.
31282 * config/arm/neon-gen.ml: Delete.
31283 * doc/arm-neon-intrinsics.texi: Update comment.
31284
31285 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31286
31287 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
31288 and v4sf versions.
31289 (vand, vorr, veor, vorn, vbic): Remove.
31290 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
31291 iterator.
31292 (neon_vsub_unspec): Likewise.
31293 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
31294
31295 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31296
31297 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
31298 (vadd_s16): Likewise.
31299 (vadd_s32): Likewise.
31300 (vadd_f32): Likewise.
31301 (vadd_u8): Likewise.
31302 (vadd_u16): Likewise.
31303 (vadd_u32): Likewise.
31304 (vadd_s64): Likewise.
31305 (vadd_u64): Likewise.
31306 (vaddq_s8): Likewise.
31307 (vaddq_s16): Likewise.
31308 (vaddq_s32): Likewise.
31309 (vaddq_s64): Likewise.
31310 (vaddq_f32): Likewise.
31311 (vaddq_u8): Likewise.
31312 (vaddq_u16): Likewise.
31313 (vaddq_u32): Likewise.
31314 (vaddq_u64): Likewise.
31315 (vmul_s8): Likewise.
31316 (vmul_s16): Likewise.
31317 (vmul_s32): Likewise.
31318 (vmul_f32): Likewise.
31319 (vmul_u8): Likewise.
31320 (vmul_u16): Likewise.
31321 (vmul_u32): Likewise.
31322 (vmul_p8): Likewise.
31323 (vmulq_s8): Likewise.
31324 (vmulq_s16): Likewise.
31325 (vmulq_s32): Likewise.
31326 (vmulq_f32): Likewise.
31327 (vmulq_u8): Likewise.
31328 (vmulq_u16): Likewise.
31329 (vmulq_u32): Likewise.
31330 (vsub_s8): Likewise.
31331 (vsub_s16): Likewise.
31332 (vsub_s32): Likewise.
31333 (vsub_f32): Likewise.
31334 (vsub_u8): Likewise.
31335 (vsub_u16): Likewise.
31336 (vsub_u32): Likewise.
31337 (vsub_s64): Likewise.
31338 (vsub_u64): Likewise.
31339 (vsubq_s8): Likewise.
31340 (vsubq_s16): Likewise.
31341 (vsubq_s32): Likewise.
31342 (vsubq_s64): Likewise.
31343 (vsubq_f32): Likewise.
31344 (vsubq_u8): Likewise.
31345 (vsubq_u16): Likewise.
31346 (vsubq_u32): Likewise.
31347 (vsubq_u64): Likewise.
31348 (vand_s8): Likewise.
31349 (vand_s16): Likewise.
31350 (vand_s32): Likewise.
31351 (vand_u8): Likewise.
31352 (vand_u16): Likewise.
31353 (vand_u32): Likewise.
31354 (vand_s64): Likewise.
31355 (vand_u64): Likewise.
31356 (vandq_s8): Likewise.
31357 (vandq_s16): Likewise.
31358 (vandq_s32): Likewise.
31359 (vandq_s64): Likewise.
31360 (vandq_u8): Likewise.
31361 (vandq_u16): Likewise.
31362 (vandq_u32): Likewise.
31363 (vandq_u64): Likewise.
31364 (vorr_s8): Likewise.
31365 (vorr_s16): Likewise.
31366 (vorr_s32): Likewise.
31367 (vorr_u8): Likewise.
31368 (vorr_u16): Likewise.
31369 (vorr_u32): Likewise.
31370 (vorr_s64): Likewise.
31371 (vorr_u64): Likewise.
31372 (vorrq_s8): Likewise.
31373 (vorrq_s16): Likewise.
31374 (vorrq_s32): Likewise.
31375 (vorrq_s64): Likewise.
31376 (vorrq_u8): Likewise.
31377 (vorrq_u16): Likewise.
31378 (vorrq_u32): Likewise.
31379 (vorrq_u64): Likewise.
31380 (veor_s8): Likewise.
31381 (veor_s16): Likewise.
31382 (veor_s32): Likewise.
31383 (veor_u8): Likewise.
31384 (veor_u16): Likewise.
31385 (veor_u32): Likewise.
31386 (veor_s64): Likewise.
31387 (veor_u64): Likewise.
31388 (veorq_s8): Likewise.
31389 (veorq_s16): Likewise.
31390 (veorq_s32): Likewise.
31391 (veorq_s64): Likewise.
31392 (veorq_u8): Likewise.
31393 (veorq_u16): Likewise.
31394 (veorq_u32): Likewise.
31395 (veorq_u64): Likewise.
31396 (vbic_s8): Likewise.
31397 (vbic_s16): Likewise.
31398 (vbic_s32): Likewise.
31399 (vbic_u8): Likewise.
31400 (vbic_u16): Likewise.
31401 (vbic_u32): Likewise.
31402 (vbic_s64): Likewise.
31403 (vbic_u64): Likewise.
31404 (vbicq_s8): Likewise.
31405 (vbicq_s16): Likewise.
31406 (vbicq_s32): Likewise.
31407 (vbicq_s64): Likewise.
31408 (vbicq_u8): Likewise.
31409 (vbicq_u16): Likewise.
31410 (vbicq_u32): Likewise.
31411 (vbicq_u64): Likewise.
31412 (vorn_s8): Likewise.
31413 (vorn_s16): Likewise.
31414 (vorn_s32): Likewise.
31415 (vorn_u8): Likewise.
31416 (vorn_u16): Likewise.
31417 (vorn_u32): Likewise.
31418 (vorn_s64): Likewise.
31419 (vorn_u64): Likewise.
31420 (vornq_s8): Likewise.
31421 (vornq_s16): Likewise.
31422 (vornq_s32): Likewise.
31423 (vornq_s64): Likewise.
31424 (vornq_u8): Likewise.
31425 (vornq_u16): Likewise.
31426 (vornq_u32): Likewise.
31427 (vornq_u64): Likewise.
31428
31429 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31430
31431 * wide-int.cc (UTItype): Define.
31432 (UDWtype): Define for appropriate W_TYPE_SIZE.
31433
31434 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
31435
31436 PR tree-optimization/59100
31437 * tree-ssa-phiopt.c: Include tree-inline.h.
31438 (neutral_element_p, absorbing_element_p): New functions.
31439 (value_replacement): Handle conditional binary operations with a
31440 neutral or absorbing element.
31441
31442 2014-05-08 Richard Biener <rguenther@suse.de>
31443
31444 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
31445 folding the expression.
31446 (valueize_expr): Remove.
31447 (visit_reference_op_load): Do not valueize the result of
31448 vn_get_expr_for.
31449 (simplify_binary_expression): Likewise.
31450 (simplify_unary_expression): Likewise.
31451
31452 2014-05-08 Richard Biener <rguenther@suse.de>
31453
31454 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
31455 looking at TYPE_ARG_TYPES.
31456
31457 2014-05-08 Richard Biener <rguenther@suse.de>
31458
31459 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
31460 pointer propagation special-case.
31461
31462 2014-05-08 Bin Cheng <bin.cheng@arm.com>
31463
31464 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
31465 core part of address expressions.
31466
31467 2014-05-08 Alan Modra <amodra@gmail.com>
31468
31469 PR target/60737
31470 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
31471 loads and stores when -mno-strict-align at any alignment.
31472 (expand_block_clear): Similarly. Also correct calculation of
31473 instruction count.
31474
31475 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
31476
31477 PR middle-end/39246
31478 * tree-complex.c (expand_complex_move): Keep line info when expanding
31479 complex move.
31480 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
31481 of complex expression. Use new argument to display correct location
31482 for values coming from phi statement.
31483 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
31484 (warn_uninitialized_phi): Pass location of phi argument to
31485 warn_uninit.
31486 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
31487 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
31488
31489 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
31490
31491 * config/rs6000/predicates.md (indexed_address_mem): New.
31492 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
31493 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
31494 fpstore_ux, fpstore_u.
31495 (sign_extend, indexed, update): New.
31496 (cell_micro): Adjust.
31497 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
31498 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
31499 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
31500 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
31501 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
31502 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
31503 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
31504 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
31505 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
31506 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
31507 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
31508 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
31509 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
31510 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
31511 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
31512
31513 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
31514 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
31515 *vsx_extract_<mode>_store): Adjust.
31516 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
31517 is_cracked_insn, insn_must_be_first_in_group,
31518 insn_must_be_last_in_group): Adjust.
31519
31520 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
31521 Adjust.
31522 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
31523 ppc440-fpstore): Adjust.
31524 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
31525 ppc476-fpstore): Adjust.
31526 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
31527 ppc601-fpstore): Adjust.
31528 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
31529 Adjust.
31530 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
31531 Adjust.
31532 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
31533 ppc7450-fpstore): Adjust.
31534 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
31535 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
31536 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
31537 Adjust.
31538 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
31539 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
31540 cell-fpstore, cell-fpstore-update): Adjust.
31541 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
31542 ppce300c3_store, ppce300c3_fpstore): Adjust.
31543 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
31544 e500mc_fpstore): Adjust.
31545 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
31546 e500mc64_store, e500mc64_fpstore): Adjust.
31547 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
31548 e5500_fpstore): Adjust.
31549 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
31550 e6500_fpstore): Adjust.
31551 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
31552 Adjust.
31553 * config/rs6000/power4.md (power4-load, power4-load-ext,
31554 power4-load-ext-update, power4-load-ext-update-indexed,
31555 power4-load-update-indexed, power4-load-update, power4-fpload,
31556 power4-fpload-update, power4-store, power4-store-update,
31557 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
31558 Adjust.
31559 * config/rs6000/power5.md (power5-load, power5-load-ext,
31560 power5-load-ext-update, power5-load-ext-update-indexed,
31561 power5-load-update-indexed, power5-load-update, power5-fpload,
31562 power5-fpload-update, power5-store, power5-store-update,
31563 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
31564 Adjust.
31565 * config/rs6000/power6.md (power6-load, power6-load-ext,
31566 power6-load-update, power6-load-update-indexed,
31567 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
31568 power6-fpload-update, power6-store, power6-store-update,
31569 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
31570 Adjust.
31571 * config/rs6000/power7.md (power7-load, power7-load-ext,
31572 power7-load-update, power7-load-update-indexed,
31573 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
31574 power7-fpload-update, power7-store, power7-store-update,
31575 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
31576 Adjust.
31577 * config/rs6000/power8.md (power8-load, power8-load-update,
31578 power8-load-ext, power8-load-ext-update, power8-fpload,
31579 power8-fpload-update, power8-store, power8-store-update-indexed,
31580 power8-fpstore, power8-fpstore-update): Adjust.
31581 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
31582 Adjust.
31583 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
31584 titan_lsu_store, titan_lsu_fpstore): Adjust.
31585 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
31586
31587 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
31588
31589 PR target/60884
31590 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
31591 unrolled byte insns. Emit address increments after move insns.
31592
31593 2014-05-07 David Malcolm <dmalcolm@redhat.com>
31594
31595 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
31596 const_gimple, rather than a gimple.
31597 (gimple_call_builtin_p): Likewise, for the three variants.
31598
31599 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
31600 (gimple_call_builtin_p): Likewise, for the three variants.
31601
31602 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
31603
31604 PR tree-optimization/61095
31605 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
31606
31607 2014-05-07 Richard Biener <rguenther@suse.de>
31608
31609 PR tree-optimization/61034
31610 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
31611 (maybe_skip_until): Use translate to take into account
31612 lattices when trying to do disambiguations.
31613 (get_continuation_for_phi_1): Likewise.
31614 (get_continuation_for_phi): Adjust for added translate arguments.
31615 (walk_non_aliased_vuses): Likewise.
31616 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
31617 (walk_non_aliased_vuses): Likewise.
31618 (call_may_clobber_ref_p_1): Declare.
31619 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
31620 calls. Stop early if we are only supposed to disambiguate.
31621 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
31622
31623 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
31624
31625 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
31626 Emit an error when the function has arguments.
31627
31628 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
31629
31630 * cfgloop.h (unswitch_loops): Remove.
31631 * doc/passes.texi: Remove references to loop-unswitch.c
31632 * timevar.def (TV_LOOP_UNSWITCH): Remove.
31633
31634 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
31635
31636 * tree-vect-data-refs.c (vect_grouped_load_supported): New
31637 check for loads group of length 3.
31638 (vect_permute_load_chain): New permutations for loads group of
31639 length 3.
31640 * tree-vect-stmts.c (vect_model_load_cost): Change cost
31641 of vec_perm_shuffle for the new permutations.
31642
31643 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
31644
31645 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
31646 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
31647 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
31648 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
31649 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
31650 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
31651 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
31652 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
31653
31654 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
31655
31656 * loop-unswitch.c: Delete.
31657
31658 2014-05-07 Richard Biener <rguenther@suse.de>
31659
31660 * config.gcc: Always set need_64bit_hwint to yes.
31661
31662 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
31663
31664 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
31665 of using optimize_size.
31666
31667 2014-05-06 Mike Stump <mikestump@comcast.net>
31668
31669 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
31670
31671 2014-05-06 Joseph Myers <joseph@codesourcery.com>
31672
31673 * config/i386/sse.md (*mov<mode>_internal)
31674 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
31675 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
31676 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
31677 (*<code><mode>3, *andnot<mode>3<mask_name>)
31678 (<mask_codefor><code><mode>3<mask_name>): Only consider
31679 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
31680
31681 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
31682
31683 Revert:
31684 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
31685
31686 * lra-constraints.c (valid_address_p): Move earlier in file.
31687 Add a constraint argument to the address_info version.
31688 (satisfies_memory_constraint_p): New function.
31689 (satisfies_address_constraint_p): Likewise.
31690 (process_alt_operands, curr_insn_transform): Use them.
31691 (process_address): Pass the constraint to valid_address_p when
31692 checking address operands.
31693
31694 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
31695
31696 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
31697 to their respective blocks. Fix inadvertent use of "node".
31698
31699 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
31700
31701 * emit-rtl.c (init_derived_machine_modes): New functionm, split
31702 out from...
31703 (init_emit_once): ...here.
31704 * rtl.h (init_derived_machine_modes): Declare.
31705 * toplev.c (do_compile): Call it even if no_backend.
31706
31707 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
31708 Mike Stump <mikestump@comcast.net>
31709 Richard Sandiford <rdsandiford@googlemail.com>
31710 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31711
31712 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
31713 (rtx_equal_for_memref_p): Update comment.
31714 (adjust_offset_for_component_ref): Use wide-int interfaces.
31715 * builtins.c (get_object_alignment_2): Likewise.
31716 (c_readstr): Likewise.
31717 (target_char_cast): Add comment.
31718 (determine_block_size): Use wide-int interfaces.
31719 (expand_builtin_signbit): Likewise.
31720 (fold_builtin_int_roundingfn): Likewise.
31721 (fold_builtin_bitop): Likewise.
31722 (fold_builtin_bswap): Likewise.
31723 (fold_builtin_logarithm): Use signop.
31724 (fold_builtin_pow): Likewise.
31725 (fold_builtin_memory_op): Use wide-int interfaces.
31726 (fold_builtin_object_size): Likewise.
31727 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
31728 nb_iterations_estimate.
31729 (record_niter_bound): Use wide-int interfaces.
31730 (get_estimated_loop_iterations_int): Likewise.
31731 (get_estimated_loop_iterations): Likewise.
31732 (get_max_loop_iterations): Likewise.
31733 * cfgloop.h: Include wide-int.h.
31734 (struct nb_iter_bound): Change bound to widest_int.
31735 (struct loop): Change nb_iterations_upper_bound and
31736 nb_iterations_estimate to widest_int.
31737 (record_niter_bound): Switch to use widest_int.
31738 (get_estimated_loop_iterations): Likewise.
31739 (get_max_loop_iterations): Likewise.
31740 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
31741 update for wide-int.
31742 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
31743 * combine.c (try_combine): Likewise.
31744 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
31745 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
31746 interfaces.
31747 (aarch64_float_const_representable_p): Likewise.
31748 * config/arc/arc.c: Include wide-int.h.
31749 (arc_can_use_doloop_p): Use wide-int interfaces.
31750 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
31751 (vfp3_const_double_index): Likewise.
31752 * config/avr/avr.c (avr_out_round): Likewise.
31753 (avr_fold_builtin): Likewise.
31754 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
31755 (bfin_can_use_doloop_p): Likewise.
31756 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
31757 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
31758 * config/i386/i386.c: Include wide-int.h.
31759 (ix86_data_alignment): Use wide-int interfaces.
31760 (ix86_local_alignment): Likewise.
31761 (ix86_emit_swsqrtsf): Update real_from_integer.
31762 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
31763 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
31764 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
31765 (zero_constant): Likewise.
31766 (input_operand): Likewise.
31767 (splat_input_operand): Likewise.
31768 (non_logical_cint_operand): Change const_double to const_wide_int.
31769 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
31770 (easy_altivec_constant): Remove comment.
31771 (paired_expand_vector_init): Use CONSTANT_P.
31772 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
31773 (rs6000_emit_move): Update checks.
31774 (rs6000_aggregate_candidate): Use wide-int interfaces.
31775 (rs6000_expand_ternop_builtin): Likewise.
31776 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
31777 (rs6000_assemble_integer): Likewise.
31778 (rs6000_hash_constant): Likewise.
31779 (output_toc): Likewise.
31780 (rs6000_rtx_costs): Likewise.
31781 (rs6000_emit_swrsqrt); Update call to real_from_integer.
31782 * config/rs6000/rs6000-c.c: Include wide-int.h.
31783 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
31784 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
31785 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
31786 Handle CONST_WIDE_INT.
31787 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
31788 Use tree_fits_uhwi_p.
31789 * config/sparc/sparc.c: Include wide-int.h.
31790 (sparc_fold_builtin): Use wide-int interfaces.
31791 * config/vax/vax.c: Include wide-int.h.
31792 (vax_float_literal): Use real_from_integer.
31793 * coretypes.h (struct hwivec_def): New.
31794 (hwivec): New.
31795 (const_hwivec): New.
31796 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
31797 (equiv_constant): Handle CONST_WIDE_INT.
31798 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
31799 (cselib_hash_rtx): Handle CONST_WIDE_INT.
31800 * dbxout.c (stabstr_U): Use wide-int interfaces.
31801 (dbxout_type): Update to use cst_fits_shwi_p.
31802 * defaults.h (LOG2_BITS_PER_UNIT): Define.
31803 (TARGET_SUPPORTS_WIDE_INT): Add default.
31804 * dfp.c: Include wide-int.h.
31805 (decimal_real_to_integer2): Use wide-int interfaces and rename to
31806 decimal_real_to_integer.
31807 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
31808 decimal_real_to_integer.
31809 * doc/generic.texi (Constant expressions): Update for wide_int.
31810 * doc/rtl.texi (const_double): Likewise.
31811 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
31812 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
31813 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
31814 (REAL_VALUE_FROM_INT): Remove.
31815 (TARGET_SUPPORTS_WIDE_INT): New.
31816 * doc/tm.texi: Regenerate.
31817 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
31818 * double-int.h: Include wide-int.h.
31819 (struct wi::int_traits): New.
31820 * dwarf2out.c (get_full_len): New.
31821 (dw_val_equal_p): Add case dw_val_class_wide_int.
31822 (size_of_loc_descr): Likewise.
31823 (output_loc_operands): Likewise.
31824 (insert_double): Remove.
31825 (insert_wide_int): New.
31826 (add_AT_wide): New.
31827 (print_die): Add case dw_val_class_wide_int.
31828 (attr_checksum): Likewise.
31829 (attr_checksum_ordered): Likewise.
31830 (same_dw_val_p): Likewise.
31831 (size_of_die): Likewise.
31832 (value_format): Likewise.
31833 (output_die): Likewise.
31834 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
31835 Use wide-int.
31836 (clz_loc_descriptor): Use wide-int interfaces.
31837 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
31838 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
31839 (round_up_to_align): Use wide-int interfaces.
31840 (field_byte_offset): Likewise.
31841 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
31842 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
31843 CONST_DOUBLE handling. Use wide-int interfaces.
31844 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
31845 (gen_enumeration_type_die): Use add_AT_wide.
31846 (hash_loc_operands): Add case dw_val_class_wide_int.
31847 (compare_loc_operands): Likewise.
31848 * dwarf2out.h: Include wide-int.h.
31849 (wide_int_ptr): New.
31850 (enum dw_val_class): Add dw_val_class_wide_int.
31851 (struct dw_val_struct): Add val_wide.
31852 * emit-rtl.c (const_wide_int_htab): New.
31853 (const_wide_int_htab_hash): New.
31854 (const_wide_int_htab_eq): New.
31855 (lookup_const_wide_int): New.
31856 (const_double_htab_hash): Use wide-int interfaces.
31857 (const_double_htab_eq): Likewise.
31858 (rtx_to_double_int): Conditionally compile for wide-int.
31859 (immed_double_int_const): Rename to immed_wide_int_const and
31860 update for wide-int.
31861 (immed_double_const): Conditionally compile for wide-int.
31862 (init_emit_once): Use wide-int interfaces.
31863 * explow.c (plus_constant): Likewise.
31864 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
31865 (lshift_value): Use wide-int interfaces.
31866 (expand_mult): Likewise.
31867 (choose_multiplier): Likewise.
31868 (expand_smod_pow2): Likewise.
31869 (make_tree): Likewise.
31870 * expr.c (convert_modes): Consolidate handling of constants.
31871 Use wide-int interfaces.
31872 (emit_group_load_1): Add note.
31873 (store_expr): Update comment.
31874 (get_inner_reference): Use wide-int interfaces.
31875 (expand_constructor): Update comment.
31876 (expand_expr_real_2): Use wide-int interfaces.
31877 (expand_expr_real_1): Likewise.
31878 (reduce_to_bit_field_precision): Likewise.
31879 (const_vector_from_tree): Likewise.
31880 * final.c: Include wide-int-print.h.
31881 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
31882 * fixed-value.c: Include wide-int.h.
31883 (fixed_from_string): Use wide-int interfaces.
31884 (fixed_to_decimal): Likewise.
31885 (fixed_convert_from_real): Likewise.
31886 (real_convert_from_fixed): Likewise.
31887 * fold-const.h (mem_ref_offset): Return an offset_int.
31888 (div_if_zero_remainder): Remove code parameter.
31889 * fold-const.c (div_if_zero_remainder): Remove code parameter.
31890 Use wide-int interfaces.
31891 (may_negate_without_overflow_p): Use wide-int interfaces.
31892 (negate_expr_p): Likewise.
31893 (fold_negate_expr): Likewise.
31894 (int_const_binop_1): Likewise.
31895 (const_binop): Likewise.
31896 (fold_convert_const_int_from_int): Likewise.
31897 (fold_convert_const_int_from_real): Likewise.
31898 (fold_convert_const_int_from_fixed): Likewise.
31899 (fold_convert_const_fixed_from_int): Likewise.
31900 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
31901 (sign_bit_p): Use wide-int interfaces.
31902 (make_range_step): Likewise.
31903 (build_range_check): Likewise. Pass an integer of the correct type
31904 instead of using integer_one_node.
31905 (range_predecessor): Pass an integer of the correct type instead
31906 of using integer_one_node.
31907 (range_successor): Likewise.
31908 (merge_ranges): Likewise.
31909 (unextend): Use wide-int interfaces.
31910 (extract_muldiv_1): Likewise.
31911 (fold_div_compare): Likewise.
31912 (fold_single_bit_test): Likewise.
31913 (fold_sign_changed_comparison): Likewise.
31914 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
31915 (fold_plusminus_mult_expr): Use wide-int interfaces.
31916 (native_encode_int): Likewise.
31917 (native_interpret_int): Likewise.
31918 (fold_unary_loc): Likewise.
31919 (pointer_may_wrap_p): Likewise.
31920 (size_low_cst): Likewise.
31921 (mask_with_tz): Likewise.
31922 (fold_binary_loc): Likewise.
31923 (fold_ternary_loc): Likewise.
31924 (multiple_of_p): Likewise.
31925 (tree_call_nonnegative_warnv_p): Update calls to
31926 tree_int_cst_min_precision and real_from_integer.
31927 (fold_negate_const): Use wide-int interfaces.
31928 (fold_abs_const): Likewise.
31929 (fold_relational_const): Use tree_int_cst_lt.
31930 (round_up_loc): Use wide-int interfaces.
31931 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
31932 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
31933 * gengtype.c: Remove include of double-int.h.
31934 (do_typedef): Use wide-int interfaces.
31935 (open_base_files): Add wide-int.h.
31936 (main): Add offset_int and widest_int typedefs.
31937 * gengtype-lex.l: Handle "^".
31938 (CXX_KEYWORD): Add "static".
31939 * gengtype-parse.c (require3): New.
31940 (require_template_declaration): Handle constant template arguments
31941 and nested templates.
31942 * gengtype-state.c: Don't include "double-int.h".
31943 * genpreds.c (write_one_predicate_function): Update comment.
31944 (write_tm_constrs_h): Add check for hval and lval use in
31945 CONST_WIDE_INT.
31946 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
31947 (add_to_sequence): Likewise.
31948 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
31949 and const_double_operand.
31950 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
31951 interfaces.
31952 * gimple-fold.c (get_base_constructor): Likewise.
31953 (fold_array_ctor_reference): Likewise.
31954 (fold_nonarray_ctor_reference): Likewise.
31955 (fold_const_aggregate_ref_1): Likewise.
31956 (gimple_val_nonnegative_real_p): Likewise.
31957 (gimple_fold_indirect_ref): Likewise.
31958 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
31959 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
31960 (struct slsr_cand_d): Change index to be widest_int.
31961 (struct incr_info_d): Change incr to be widest_int.
31962 (alloc_cand_and_find_basis): Use wide-int interfaces.
31963 (slsr_process_phi): Likewise.
31964 (backtrace_base_for_ref): Likewise. Return a widest_int.
31965 (restructure_reference): Take a widest_int instead of a double_int.
31966 (slsr_process_ref): Use wide-int interfaces.
31967 (create_mul_ssa_cand): Likewise.
31968 (create_mul_imm_cand): Likewise.
31969 (create_add_ssa_cand): Likewise.
31970 (create_add_imm_cand): Take a widest_int instead of a double_int.
31971 (slsr_process_add): Use wide-int interfaces.
31972 (slsr_process_cast): Likewise.
31973 (slsr_process_copy): Likewise.
31974 (dump_candidate): Likewise.
31975 (dump_incr_vec): Likewise.
31976 (replace_ref): Likewise.
31977 (cand_increment): Likewise. Return a widest_int.
31978 (cand_abs_increment): Likewise.
31979 (replace_mult_candidate): Take a widest_int instead of a double_int.
31980 (replace_unconditional_candidate): Use wide-int interfaces.
31981 (incr_vec_index): Take a widest_int instead of a double_int.
31982 (create_add_on_incoming_edge): Likewise.
31983 (create_phi_basis): Use wide-int interfaces.
31984 (replace_conditional_candidate): Likewise.
31985 (record_increment): Take a widest_int instead of a double_int.
31986 (record_phi_increments): Use wide-int interfaces.
31987 (phi_incr_cost): Take a widest_int instead of a double_int.
31988 (lowest_cost_path): Likewise.
31989 (total_savings): Likewise.
31990 (analyze_increments): Use wide-int interfaces.
31991 (ncd_with_phi): Take a widest_int instead of a double_int.
31992 (ncd_of_cand_and_phis): Likewise.
31993 (nearest_common_dominator_for_cands): Likewise.
31994 (insert_initializers): Use wide-int interfaces.
31995 (all_phi_incrs_profitable): Likewise.
31996 (replace_one_candidate): Likewise.
31997 (replace_profitable_candidates): Likewise.
31998 * godump.c: Include wide-int-print.h.
31999 (go_output_typedef): Use wide-int interfaces.
32000 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
32001 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
32002 (build_loop_iteration_domains): Likewise.
32003 * hooks.h: Include wide-int.h rather than double-int.h.
32004 (hook_bool_dint_dint_uint_bool_true): Delete.
32005 (hook_bool_wint_wint_uint_bool_true): Declare.
32006 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
32007 (hook_bool_wint_wint_uint_bool_true): New.
32008 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
32009 interfaces.
32010 (ubsan_expand_si_overflow_mul_check): Likewise.
32011 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
32012 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
32013 (get_ancestor_addr_info): Likewise.
32014 (ipa_modify_call_arguments): Likewise.
32015 * loop-doloop.c (doloop_modify): Likewise.
32016 (doloop_optimize): Likewise.
32017 * loop-iv.c (iv_number_of_iterations): Likewise.
32018 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
32019 (unroll_loop_constant_iterations): Likewise.
32020 (decide_unroll_runtime_iterations): Likewise.
32021 (unroll_loop_runtime_iterations): Likewise.
32022 (decide_peel_simple): Likewise.
32023 (decide_unroll_stupid): Likewise.
32024 * lto-streamer-in.c (streamer_read_wi): Add.
32025 (input_cfg): Use wide-int interfaces.
32026 (lto_input_tree_1): Likewise.
32027 * lto-streamer-out.c (streamer_write_wi): Add.
32028 (hash_tree): Use wide-int interfaces.
32029 (output_cfg): Likewise.
32030 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
32031 (GTFILES): Add wide-int.h and signop.h.
32032 (TAGS): Look for .cc files too.
32033 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
32034 * optabs.c (expand_subword_shift): Likewise.
32035 (expand_doubleword_shift): Likewise.
32036 (expand_absneg_bit): Likewise.
32037 (expand_copysign_absneg): Likewise.
32038 (expand_copysign_bit): Likewise.
32039 * postreload.c (reload_cse_simplify_set): Likewise.
32040 * predict.c (predict_iv_comparison): Likewise.
32041 * pretty-print.h: Include wide-int-print.h.
32042 (pp_wide_int) New.
32043 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
32044 * print-tree.c: Include wide-int-print.h.
32045 (print_node_brief): Use wide-int interfaces.
32046 (print_node): Likewise.
32047 * read-rtl.c (validate_const_wide_int): New.
32048 (read_rtx_code): Add CONST_WIDE_INT case.
32049 * real.c: Include wide-int.h.
32050 (real_to_integer2): Delete.
32051 (real_to_integer): New function, returning a wide_int.
32052 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
32053 (ten_to_ptwo): Update call to real_from_integer.
32054 (real_digit): Likewise.
32055 * real.h: Include signop.h, wide-int.h and insn-modes.h.
32056 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
32057 (REAL_VALUE_TO_INT): Delete.
32058 (real_to_integer): Declare a wide-int form.
32059 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
32060 * recog.c (const_int_operand): Improve comment.
32061 (const_scalar_int_operand): New.
32062 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
32063 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
32064 (split_double): Likewise.
32065 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
32066 (rtx_size): Likewise.
32067 (rtx_alloc_stat_v): New.
32068 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
32069 (cwi_output_hex): New.
32070 (iterative_hash_rtx): Handle CONST_WIDE_INT.
32071 (cwi_check_failed_bounds): New.
32072 * rtl.def (CONST_WIDE_INT): New.
32073 * rtl.h: Include <utility> and wide-int.h.
32074 (struct hwivec_def): New.
32075 (CWI_GET_NUM_ELEM): New.
32076 (CWI_PUT_NUM_ELEM): New.
32077 (struct rtx_def): Add num_elem and hwiv.
32078 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
32079 (CASE_CONST_UNIQUE): Likewise.
32080 (CASE_CONST_ANY): Likewise.
32081 (CONST_SCALAR_INT_P): Likewise.
32082 (CONST_WIDE_INT_P): New.
32083 (CWI_ELT): New.
32084 (HWIVEC_CHECK): New.
32085 (cwi_check_failed_bounds): New.
32086 (CWI_ELT): New.
32087 (HWIVEC_CHECK): New.
32088 (CONST_WIDE_INT_VEC) New.
32089 (CONST_WIDE_INT_NUNITS) New.
32090 (CONST_WIDE_INT_ELT) New.
32091 (rtx_mode_t): New type.
32092 (wi::int_traits <rtx_mode_t>): New.
32093 (wi::shwi): New.
32094 (wi::min_value): New.
32095 (wi::max_value): New.
32096 (rtx_alloc_v) New.
32097 (const_wide_int_alloc): New.
32098 (immed_wide_int_const): New.
32099 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
32100 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
32101 * signop.h: New file.
32102 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
32103 (simplify_const_unary_operation): Use wide-int interfaces.
32104 (simplify_binary_operation_1): Likewise.
32105 (simplify_const_binary_operation): Likewise.
32106 (simplify_const_relational_operation): Likewise.
32107 (simplify_immed_subreg): Likewise.
32108 * stmt.c (expand_case): Likewise.
32109 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
32110 signop rather than a bool.
32111 * stor-layout.c (layout_type): Use wide-int interfaces.
32112 (initialize_sizetypes): Update calls to
32113 set_min_and_max_values_for_integral_type.
32114 (set_min_and_max_values_for_integral_type): Take a signop rather
32115 than a bool. Use wide-int interfaces.
32116 (fixup_signed_type): Update accordingly. Remove
32117 HOST_BITS_PER_DOUBLE_INT limit.
32118 (fixup_unsigned_type): Likewise.
32119 * system.h (STATIC_CONSTANT_P): New.
32120 (STATIC_ASSERT): New.
32121 * target.def (can_use_doloop_p): Take widest_ints rather than
32122 double_ints.
32123 * target.h: Include wide-int.h rather than double-int.h.
32124 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
32125 than double_ints.
32126 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
32127 rather than INT_CST_LT_UNSIGNED.
32128 (can_use_doloop_if_innermost): Take widest_ints rather than
32129 double_ints.
32130 * tree-affine.c: Include wide-int-print.h.
32131 (double_int_ext_for_comb): Delete.
32132 (wide_int_ext_for_comb): New.
32133 (aff_combination_zero): Use wide-int interfaces.
32134 (aff_combination_const): Take a widest_int instead of a double_int.
32135 (aff_combination_elt): Use wide-int interfaces.
32136 (aff_combination_scale): Take a widest_int instead of a double_int.
32137 (aff_combination_add_elt): Likewise.
32138 (aff_combination_add_cst): Likewise.
32139 (aff_combination_add): Use wide-int interfaces.
32140 (aff_combination_convert): Likewise.
32141 (tree_to_aff_combination): Likewise.
32142 (add_elt_to_tree): Take a widest_int instead of a double_int.
32143 (aff_combination_to_tree): Use wide-int interfaces.
32144 (aff_combination_remove_elt): Likewise.
32145 (aff_combination_add_product): Take a widest_int instead of
32146 a double_int.
32147 (aff_combination_mult): Use wide-int interfaces.
32148 (aff_combination_expand): Likewise.
32149 (double_int_constant_multiple_p): Delete.
32150 (wide_int_constant_multiple_p): New.
32151 (aff_combination_constant_multiple_p): Take a widest_int pointer
32152 instead of a double_int pointer.
32153 (print_aff): Use wide-int interfaces.
32154 (get_inner_reference_aff): Take a widest_int pointer
32155 instead of a double_int pointer.
32156 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
32157 * tree-affine.h: Include wide-int.h.
32158 (struct aff_comb_elt): Change type of coef to widest_int.
32159 (struct affine_tree_combination): Change type of offset to widest_int.
32160 (double_int_ext_for_comb): Delete.
32161 (wide_int_ext_for_comb): New.
32162 (aff_combination_const): Use widest_int instead of double_int.
32163 (aff_combination_scale): Likewise.
32164 (aff_combination_add_elt): Likewise.
32165 (aff_combination_constant_multiple_p): Likewise.
32166 (get_inner_reference_aff): Likewise.
32167 (aff_comb_cannot_overlap_p): Likewise.
32168 (aff_combination_zero_p): Use wide-int interfaces.
32169 * tree.c: Include tree.h.
32170 (init_ttree): Use make_int_cst.
32171 (tree_code_size): Removed code for INTEGER_CST case.
32172 (tree_size): Add INTEGER_CST case.
32173 (make_node_stat): Update comment.
32174 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
32175 (build_int_cst_type): Use wide-int interfaces.
32176 (double_int_to_tree): Likewise.
32177 (double_int_fits_to_tree_p): Delete.
32178 (force_fit_type_double): Delete.
32179 (force_fit_type): New.
32180 (int_cst_hash_hash): Use wide-int interfaces.
32181 (int_cst_hash_eq): Likewise.
32182 (build_int_cst_wide): Delete.
32183 (wide_int_to_tree): New.
32184 (cache_integer_cst): Use wide-int interfaces.
32185 (build_low_bits_mask): Likewise.
32186 (cst_and_fits_in_hwi): Likewise.
32187 (real_value_from_int_cst): Likewise.
32188 (make_int_cst_stat): New.
32189 (integer_zerop): Use wide_int interfaces.
32190 (integer_onep): Likewise.
32191 (integer_all_onesp): Likewise.
32192 (integer_pow2p): Likewise.
32193 (integer_nonzerop): Likewise.
32194 (tree_log2): Likewise.
32195 (tree_floor_log2): Likewise.
32196 (tree_ctz): Likewise.
32197 (int_size_in_bytes): Likewise.
32198 (mem_ref_offset): Return an offset_int rather than a double_int.
32199 (build_type_attribute_qual_variant): Use wide_int interfaces.
32200 (type_hash_eq): Likewise
32201 (tree_int_cst_equal): Likewise.
32202 (tree_int_cst_lt): Delete.
32203 (tree_int_cst_compare): Likewise.
32204 (tree_fits_shwi_p): Use wide_int interfaces.
32205 (tree_fits_uhwi_p): Likewise.
32206 (tree_int_cst_sign_bit): Likewise.
32207 (tree_int_cst_sgn): Likewise.
32208 (tree_int_cst_min_precision): Take a signop rather than a bool.
32209 (simple_cst_equal): Use wide_int interfaces.
32210 (compare_tree_int): Likewise.
32211 (iterative_hash_expr): Likewise.
32212 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
32213 INT_CST_LT.
32214 (get_type_static_bounds): Use wide_int interfaces.
32215 (tree_int_cst_elt_check_failed): New.
32216 (build_common_tree_nodes): Reordered to set prec before filling in
32217 value.
32218 (int_cst_value): Check cst_and_fits_in_hwi.
32219 (widest_int_cst_value): Use wide_int interfaces.
32220 (upper_bound_in_type): Likewise.
32221 (lower_bound_in_type): Likewise.
32222 (num_ending_zeros): Likewise.
32223 (drop_tree_overflow): Likewise.
32224 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
32225 (gen_conditions_for_pow_cst_base): Likewise.
32226 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
32227 (group_case_labels_stmt): Use wide-int interfaces.
32228 (verify_gimple_assign_binary): Likewise.
32229 (print_loop): Likewise.
32230 * tree-chrec.c (tree_fold_binomial): Likewise.
32231 * tree-core.h (struct tree_base): Add int_length.
32232 (struct tree_int_cst): Change rep of value.
32233 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
32234 (dr_may_alias_p): Likewise.
32235 (max_stmt_executions_tree): Likewise.
32236 * tree.def (INTEGER_CST): Update comment.
32237 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
32238 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
32239 * tree-dump.c: Include wide-int.h and wide-int-print.h.
32240 (dequeue_and_dump): Use wide-int interfaces.
32241 * tree.h: Include wide-int.h.
32242 (NULL_TREE): Moved to earlier loc in file.
32243 (TREE_INT_CST_ELT_CHECK): New.
32244 (tree_int_cst_elt_check_failed): New.
32245 (TYPE_SIGN): New.
32246 (TREE_INT_CST): Delete.
32247 (TREE_INT_CST_LOW): Use wide-int interfaces.
32248 (TREE_INT_CST_HIGH): Delete.
32249 (TREE_INT_CST_NUNITS): New.
32250 (TREE_INT_CST_EXT_NUNITS): Likewise.
32251 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
32252 (TREE_INT_CST_ELT): Likewise.
32253 (INT_CST_LT): Delete.
32254 (tree_int_cst_elt_check): New (two forms).
32255 (type_code_size): Update comment.
32256 (make_int_cst_stat, make_int_cst): New.
32257 (tree_to_double_int): Delete.
32258 (double_int_fits_to_tree_p): Delete.
32259 (force_fit_type_double): Delete.
32260 (build_int_cstu): Replace with out-of-line function.
32261 (build_int_cst_wide): Delete.
32262 (tree_int_cst_lt): Define inline.
32263 (tree_int_cst_le): New.
32264 (tree_int_cst_compare): Define inline.
32265 (tree_int_cst_min_precision): Take a signop rather than a bool.
32266 (wi::int_traits <const_tree>): New.
32267 (wi::int_traits <tree>): New.
32268 (wi::extended_tree): New.
32269 (wi::int_traits <wi::extended_tree>): New.
32270 (wi::to_widest): New.
32271 (wi::to_offset): New.
32272 (wi::fits_to_tree_p): New.
32273 (wi::min_value): New.
32274 (wi::max_value): New.
32275 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
32276 (copy_tree_body_r): Likewise.
32277 * tree-object-size.c (compute_object_offset): Likewise.
32278 (addr_object_size): Likewise.
32279 * tree-predcom.c: Include wide-int-print.h.
32280 (struct dref_d): Change type of offset to widest_int.
32281 (dump_dref): Call wide-int printer.
32282 (aff_combination_dr_offset): Use wide-int interfaces.
32283 (determine_offset): Take a widest_int pointer rather than a
32284 double_int pointer.
32285 (split_data_refs_to_components): Use wide-int interfaces.
32286 (suitable_component_p): Likewise.
32287 (order_drefs): Likewise.
32288 (add_ref_to_chain): Likewise.
32289 (valid_initializer_p): Likewise.
32290 (determine_roots_comp): Likewise.
32291 * tree-pretty-print.c: Include wide-int-print.h.
32292 (dump_generic_node): Use wide-int interfaces.
32293 * tree-sra.c (sra_ipa_modify_expr): Likewise.
32294 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
32295 (move_fixed_address_to_symbol): Likewise.
32296 (move_hint_to_base): Likewise.
32297 (move_pointer_to_base): Likewise.
32298 (move_variant_to_index): Likewise.
32299 (most_expensive_mult_to_index): Likewise.
32300 (addr_to_parts): Likewise.
32301 (copy_ref_info): Likewise.
32302 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
32303 (indirect_refs_may_alias_p): Likewise.
32304 (stmt_kills_ref_p_1): Likewise.
32305 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
32306 * tree-ssa-ccp.c: Update comment at top of file. Include
32307 wide-int-print.h.
32308 (struct prop_value_d): Change type of mask to widest_int.
32309 (extend_mask): New function.
32310 (dump_lattice_value): Use wide-int interfaces.
32311 (get_default_value): Likewise.
32312 (set_constant_value): Likewise.
32313 (set_value_varying): Likewise.
32314 (valid_lattice_transition): Likewise.
32315 (set_lattice_value): Likewise.
32316 (value_to_double_int): Delete.
32317 (value_to_wide_int): New.
32318 (get_value_from_alignment): Use wide-int interfaces.
32319 (get_value_for_expr): Likewise.
32320 (do_dbg_cnt): Likewise.
32321 (ccp_finalize): Likewise.
32322 (ccp_lattice_meet): Likewise.
32323 (bit_value_unop_1): Use widest_ints rather than double_ints.
32324 (bit_value_binop_1): Likewise.
32325 (bit_value_unop): Use wide-int interfaces.
32326 (bit_value_binop): Likewise.
32327 (bit_value_assume_aligned): Likewise.
32328 (evaluate_stmt): Likewise.
32329 (ccp_fold_stmt): Likewise.
32330 (visit_cond_stmt): Likewise.
32331 (ccp_visit_stmt): Likewise.
32332 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
32333 (constant_pointer_difference): Likewise.
32334 (associate_pointerplus): Likewise.
32335 (combine_conversions): Likewise.
32336 * tree-ssa-loop.h: Include wide-int.h.
32337 (struct tree_niter_desc): Change type of max to widest_int.
32338 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
32339 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
32340 (remove_redundant_iv_tests): Likewise.
32341 (canonicalize_loop_induction_variables): Likewise.
32342 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
32343 (constant_multiple_of): Take a widest_int pointer instead of
32344 a double_int pointer.
32345 (get_computation_aff): Use wide-int interfaces.
32346 (ptr_difference_cost): Likewise.
32347 (difference_cost): Likewise.
32348 (get_loop_invariant_expr_id): Likewise.
32349 (get_computation_cost_at): Likewise.
32350 (iv_elimination_compare_lt): Likewise.
32351 (may_eliminate_iv): Likewise.
32352 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
32353 instead of double_int.
32354 (max_loop_iterations): Likewise.
32355 (max_stmt_executions): Likewise.
32356 (estimated_stmt_executions): Likewise.
32357 * tree-ssa-loop-niter.c: Include wide-int-print.h.
32358 (split_to_var_and_offset): Use wide-int interfaces.
32359 (determine_value_range): Likewise.
32360 (bound_difference_of_offsetted_base): Likewise.
32361 (bounds_add): Take a widest_int instead of a double_int.
32362 (number_of_iterations_ne_max): Use wide-int interfaces.
32363 (number_of_iterations_ne): Likewise.
32364 (number_of_iterations_lt_to_ne): Likewise.
32365 (assert_loop_rolls_lt): Likewise.
32366 (number_of_iterations_lt): Likewise.
32367 (number_of_iterations_le): Likewise.
32368 (number_of_iterations_cond): Likewise.
32369 (number_of_iterations_exit): Likewise.
32370 (finite_loop_p): Likewise.
32371 (derive_constant_upper_bound_assign): Likewise.
32372 (derive_constant_upper_bound): Return a widest_int.
32373 (derive_constant_upper_bound_ops): Likewise.
32374 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
32375 (record_estimate): Take a widest_int rather than a double_int.
32376 (record_nonwrapping_iv): Use wide-int interfaces.
32377 (double_int_cmp): Delete.
32378 (wide_int_cmp): New.
32379 (bound_index): Take a widest_int rather than a double_int.
32380 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
32381 (maybe_lower_iteration_bound): Likewise.
32382 (estimate_numbers_of_iterations_loop): Likewise.
32383 (estimated_loop_iterations): Take a widest_int pointer than than
32384 a double_int pointer.
32385 (estimated_loop_iterations_int): Use wide-int interfaces.
32386 (max_loop_iterations): Take a widest_int pointer than than
32387 a double_int pointer.
32388 (max_loop_iterations_int): Use wide-int interfaces.
32389 (max_stmt_executions): Take a widest_int pointer than than
32390 a double_int pointer.
32391 (estimated_stmt_executions): Likewise.
32392 (n_of_executions_at_most): Use wide-int interfaces.
32393 (scev_probably_wraps_p): Likewise.
32394 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
32395 to real_to_integer.
32396 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
32397 interfaces.
32398 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
32399 double_ints. Adjust for trailing_wide_ints <3> representation.
32400 (set_nonzero_bits): Likewise.
32401 (get_range_info): Return wide_ints rather than double_ints.
32402 Adjust for trailing_wide_ints <3> representation.
32403 (get_nonzero_bits): Likewise.
32404 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
32405 representation.
32406 * tree-ssanames.h (struct range_info_def): Replace min, max and
32407 nonzero_bits with a trailing_wide_ints <3>.
32408 (set_range_info): Use wide_int_refs rather than double_ints.
32409 (set_nonzero_bits): Likewise.
32410 (get_range_info): Return wide_ints rather than double_ints.
32411 (get_nonzero_bits): Likewise.
32412 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
32413 * tree-ssa-pre.c (phi_translate_1): Likewise.
32414 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
32415 (acceptable_pow_call): Likewise.
32416 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
32417 interfaces.
32418 (vn_reference_fold_indirect): Likewise.
32419 (vn_reference_maybe_forwprop_address): Likewise.
32420 (valueize_refs_1): Likewise.
32421 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
32422 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
32423 tree_int_cst_lt and tree_int_cst_le.
32424 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
32425 interfaces.
32426 (streamer_alloc_tree): Likewise.
32427 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
32428 (streamer_write_tree_header): Likewise.
32429 (streamer_write_integer_cst): Likewise.
32430 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
32431 (build_constructors): Likewise.
32432 (array_value_type): Likewise.
32433 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
32434 (vect_check_gather): Likewise.
32435 * tree-vect-generic.c (build_replicated_const): Likewise.
32436 (expand_vector_divmod): Likewise.
32437 * tree-vect-loop.c (vect_transform_loop): Likewise.
32438 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
32439 (vect_do_peeling_for_alignment): Likewise.
32440 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
32441 * tree-vrp.c: Include wide-int.h.
32442 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
32443 (extract_range_from_assert): Use wide-int interfaces.
32444 (vrp_int_const_binop): Likewise.
32445 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
32446 double_int pointers.
32447 (ranges_from_anti_range): Use wide-int interfaces.
32448 (quad_int_cmp): Delete.
32449 (quad_int_pair_sort): Likewise.
32450 (extract_range_from_binary_expr_1): Use wide-int interfaces.
32451 (extract_range_from_unary_expr_1): Likewise.
32452 (adjust_range_with_scev): Likewise.
32453 (masked_increment): Take and return wide_ints rather than double_ints.
32454 (register_edge_assert_for_2): Use wide-int interfaces.
32455 (check_array_ref): Likewise.
32456 (search_for_addr_array): Likewise.
32457 (maybe_set_nonzero_bits): Likewise.
32458 (union_ranges): Pass an integer of the correct type instead of
32459 using integer_one_node.
32460 (intersect_ranges): Likewise.
32461 (simplify_truth_ops_using_ranges): Likewise.
32462 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
32463 (range_fits_type_p): Likewise.
32464 (simplify_cond_using_ranges): Likewise. Take a signop rather than
32465 a bool.
32466 (simplify_conversion_using_ranges): Use wide-int interfaces.
32467 (simplify_float_conversion_using_ranges): Likewise.
32468 (vrp_finalize): Likewise.
32469 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
32470 (gimple_stringops_transform): Likewise.
32471 * varasm.c (decode_addr_const): Likewise.
32472 (const_hash_1): Likewise.
32473 (const_rtx_hash_1): Likewise
32474 (output_constant): Likewise.
32475 (array_size_for_constructor): Likewise.
32476 (output_constructor_regular_field): Likewise.
32477 (output_constructor_bitfield): Likewise.
32478 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
32479 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
32480 GENERATOR_FILEs.
32481 * gencheck.c: Define BITS_PER_UNIT.
32482 * wide-int.cc: New.
32483 * wide-int.h: New.
32484 * wide-int-print.cc: New.
32485 * wide-int-print.h: New.
32486
32487 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
32488
32489 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
32490
32491 2014-05-06 Richard Biener <rguenther@suse.de>
32492
32493 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
32494 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
32495 (TODO_verify_all): Adjust.
32496 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
32497 TODO_verify_stmts and TODO_verify_rtl_sharing.
32498 * bb-reorder.c: Likewise.
32499 * cfgexpand.c: Likewise.
32500 * cprop.c: Likewise.
32501 * cse.c: Likewise.
32502 * function.c: Likewise.
32503 * fwprop.c: Likewise.
32504 * gcse.c: Likewise.
32505 * gimple-ssa-isolate-paths.c: Likewise.
32506 * gimple-ssa-strength-reduction.c: Likewise.
32507 * ipa-split.c: Likewise.
32508 * loop-init.c: Likewise.
32509 * loop-unroll.c: Likewise.
32510 * lower-subreg.c: Likewise.
32511 * modulo-sched.c: Likewise.
32512 * postreload-gcse.c: Likewise.
32513 * predict.c: Likewise.
32514 * recog.c: Likewise.
32515 * sched-rgn.c: Likewise.
32516 * store-motion.c: Likewise.
32517 * tracer.c: Likewise.
32518 * trans-mem.c: Likewise.
32519 * tree-call-cdce.c: Likewise.
32520 * tree-cfg.c: Likewise.
32521 * tree-cfgcleanup.c: Likewise.
32522 * tree-complex.c: Likewise.
32523 * tree-eh.c: Likewise.
32524 * tree-emutls.c: Likewise.
32525 * tree-if-conv.c: Likewise.
32526 * tree-into-ssa.c: Likewise.
32527 * tree-loop-distribution.c: Likewise.
32528 * tree-object-size.c: Likewise.
32529 * tree-parloops.c: Likewise.
32530 * tree-pass.h: Likewise.
32531 * tree-sra.c: Likewise.
32532 * tree-ssa-ccp.c: Likewise.
32533 * tree-ssa-copy.c: Likewise.
32534 * tree-ssa-copyrename.c: Likewise.
32535 * tree-ssa-dce.c: Likewise.
32536 * tree-ssa-dom.c: Likewise.
32537 * tree-ssa-dse.c: Likewise.
32538 * tree-ssa-forwprop.c: Likewise.
32539 * tree-ssa-ifcombine.c: Likewise.
32540 * tree-ssa-loop-ch.c: Likewise.
32541 * tree-ssa-loop-ivcanon.c: Likewise.
32542 * tree-ssa-loop.c: Likewise.
32543 * tree-ssa-math-opts.c: Likewise.
32544 * tree-ssa-phiopt.c: Likewise.
32545 * tree-ssa-phiprop.c: Likewise.
32546 * tree-ssa-pre.c: Likewise.
32547 * tree-ssa-reassoc.c: Likewise.
32548 * tree-ssa-sink.c: Likewise.
32549 * tree-ssa-strlen.c: Likewise.
32550 * tree-ssa-tail-merge.c: Likewise.
32551 * tree-ssa-uncprop.c: Likewise.
32552 * tree-switch-conversion.c: Likewise.
32553 * tree-tailcall.c: Likewise.
32554 * tree-vect-generic.c: Likewise.
32555 * tree-vectorizer.c: Likewise.
32556 * tree-vrp.c: Likewise.
32557 * tsan.c: Likewise.
32558 * var-tracking.c: Likewise.
32559 * bt-load.c: Likewise.
32560 * cfgcleanup.c: Likewise.
32561 * combine-stack-adj.c: Likewise.
32562 * combine.c: Likewise.
32563 * compare-elim.c: Likewise.
32564 * config/epiphany/resolve-sw-modes.c: Likewise.
32565 * config/i386/i386.c: Likewise.
32566 * config/mips/mips.c: Likewise.
32567 * config/s390/s390.c: Likewise.
32568 * config/sh/sh_treg_combine.cc: Likewise.
32569 * config/sparc/sparc.c: Likewise.
32570 * dce.c: Likewise.
32571 * dse.c: Likewise.
32572 * final.c: Likewise.
32573 * ifcvt.c: Likewise.
32574 * mode-switching.c: Likewise.
32575 * passes.c: Likewise.
32576 * postreload.c: Likewise.
32577 * ree.c: Likewise.
32578 * reg-stack.c: Likewise.
32579 * regcprop.c: Likewise.
32580 * regrename.c: Likewise.
32581 * web.c: Likewise.
32582
32583 2014-05-06 Richard Biener <rguenther@suse.de>
32584
32585 PR middle-end/61070
32586 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
32587 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
32588
32589 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
32590
32591 PR ipa/60965
32592 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
32593
32594 2014-05-05 Radovan Obradovic <robradovic@mips.com>
32595 Tom de Vries <tom@codesourcery.com>
32596
32597 * target.def (call_fusage_contains_non_callee_clobbers): New
32598 DEFHOOKPOD.
32599 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
32600 Hooks to @menu.
32601 (@node Miscellaneous Register Hooks): New node.
32602 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
32603 * doc/tm.texi: Regenerate.
32604
32605 2014-05-05 Marek Polacek <polacek@redhat.com>
32606
32607 PR driver/61065
32608 * opts.c (common_handle_option): Call error_at instead of warning_at.
32609
32610 2014-05-05 Richard Biener <rguenther@suse.de>
32611
32612 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
32613 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
32614 under the TODO_verify_il umbrella.
32615
32616 2014-05-05 Richard Biener <rguenther@suse.de>
32617
32618 * passes.c (execute_function_todo): Move TODO_verify_flow under
32619 the TODO_verify_ul umbrella.
32620
32621 2014-05-05 Richard Biener <rguenther@suse.de>
32622
32623 PR middle-end/61010
32624 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
32625 X & CST away from a CST that is the mask of a mode.
32626
32627 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
32628
32629 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
32630 int argument to enum machine_mode.
32631 (picochip_class_max_nregs): Ditto.
32632 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
32633 (picochip_class_max_nregs): Ditto.
32634
32635 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32636
32637 * target.def: Add new target hook.
32638 * doc/tm.texi: Regenerate.
32639 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
32640 * targhooks.c (default_keep_leaf_when_profiled): New function.
32641
32642 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
32643 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
32644
32645 2014-05-05 Bin Cheng <bin.cheng@arm.com>
32646
32647 PR tree-optimization/60363
32648 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
32649 (copy_phi_args): New parameters. Call get_value_locus_in_path.
32650 (update_destination_phis): New parameter.
32651 (create_edge_and_update_destination_phis): Ditto.
32652 (ssa_fix_duplicate_block_edges): Pass new arguments.
32653 (thread_single_edge): Ditto.
32654
32655 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
32656
32657 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
32658 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
32659 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
32660 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
32661 Use RS6000_BTM_HARD_FLOAT.
32662 (BU_MISC_2): Likewise.
32663 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
32664 RS6000_BTM_HARD_FLOAT.
32665 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
32666 is explicitly used.
32667 (rs6000_invalid_builtin): Add hard floating builtin support.
32668 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
32669 hard float builtins.
32670 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
32671
32672 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
32673
32674 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
32675 Add missing function* argument.
32676
32677 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
32678
32679 * lra-constraints.c (valid_address_p): Move earlier in file.
32680 Add a constraint argument to the address_info version.
32681 (satisfies_memory_constraint_p): New function.
32682 (satisfies_address_constraint_p): Likewise.
32683 (process_alt_operands, curr_insn_transform): Use them.
32684 (process_address): Pass the constraint to valid_address_p when
32685 checking address operands.
32686
32687 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
32688
32689 * config/mips/mips.c (mips_isa_rev): New variable.
32690 (mips_set_architecture): Set it.
32691 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
32692 from mips_isa_rev.
32693 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
32694 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
32695 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
32696 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
32697 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
32698 conditions in terms of mips_isa_rev.
32699 (mips_isa_rev): Declare.
32700
32701 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
32702
32703 * config/sh/sh-mem.cc: Use tabs instead of spaces.
32704 (prob_unlikely, prob_likely): Make variables const.
32705
32706 2014-05-03 Denis Chertykov <chertykov@gmail.com>
32707
32708 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
32709
32710 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
32711
32712 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
32713
32714 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
32715
32716 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
32717 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
32718 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
32719 functions.
32720 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
32721 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
32722 sh_pass_in_reg_p.
32723 Replace usage of ROUND_REG with sh_round_reg.
32724 Use CEIL instead of ROUND_ADVANCE.
32725
32726 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
32727
32728 PR target/61026
32729 * config/sh/sh.c: Include stdlib headers before everything else.
32730
32731 2014-05-02 Jakub Jelinek <jakub@redhat.com>
32732
32733 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
32734 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
32735 (gimplify_adjust_omp_clauses): Simd region is never
32736 directly nested in combined parallel. Instead, for linear
32737 with copyin/copyout, if in combined for simd loop, make decl
32738 firstprivate/lastprivate on OMP_FOR.
32739 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
32740 expand_omp_for_static_chunk): When setting endvar, also set
32741 fd->loop.v to the same value.
32742
32743 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32744
32745 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
32746
32747 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
32748
32749 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
32750 expression.
32751
32752 2014-05-02 Marek Polacek <polacek@redhat.com>
32753
32754 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
32755
32756 2014-05-02 Kito Cheng <kito@0xlab.org>
32757
32758 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
32759 to a C expression marco.
32760 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
32761 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
32762 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
32763 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
32764 HONOR_REG_ALLOC_ORDER.
32765 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
32766
32767 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
32768
32769 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
32770
32771 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
32772
32773 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
32774
32775 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
32776
32777 * tree-if-conv.c (is_cond_scalar_reduction): New function.
32778 (convert_scalar_cond_reduction): Likewise.
32779 (predicate_scalar_phi): Add recognition and transformation
32780 of simple conditioanl reduction to be vectorizable.
32781
32782 2014-05-01 Marek Polacek <polacek@redhat.com>
32783
32784 PR c/43245
32785 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
32786
32787 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
32788
32789 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
32790 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
32791 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
32792 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
32793 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
32794 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
32795 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
32796 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
32797
32798 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
32799
32800 * config/arc/arc.opt (mlra): Move comment above option name
32801 to avoid mis-parsing as language options.
32802
32803 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32804
32805 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
32806 * config/sol2.h: ... here.
32807 * config/sol2-10.h: Remove.
32808
32809 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
32810 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
32811 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
32812 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
32813 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
32814 * config/sol2.h: ... here.
32815 (SECTION_NAME_FORMAT): Don't redefine.
32816 (STARTFILE_ARCH32_SPEC): Rename to ...
32817 (STARTFILE_ARCH_SPEC): ... this.
32818 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
32819 * config/sparc/sol2.h: ... here.
32820 (SECTION_NAME_FORMAT): Don't undef.
32821 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
32822 (SUBTARGET_EXTRA_SPECS): Remove.
32823 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
32824
32825 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
32826 (MD_STARTFILE_PREFIX): Remove.
32827 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
32828 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
32829 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
32830 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
32831 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
32832 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
32833 * config/i386/sol2.h: ... here.
32834 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
32835 * config/i386/sol2-bi.h: Remove.
32836 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
32837 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
32838
32839 * config/i386/t-sol2-64: Rename to ...
32840 * config/i386/t-sol2: ... this.
32841 * config/sparc/t-sol2-64: Rename to ...
32842 * config/sparc/t-sol2: ... this.
32843
32844 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
32845 sol2_tm_file_head, sol2_tm_file_tail.
32846 Include ${cpu_type}/sol2.h before sol2.h.
32847 Remove sol2-10.h.
32848 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
32849 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
32850 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
32851 Reflect i386/t-sol2-64 renaming.
32852 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
32853 Reflect sparc/t-sol2-64 renaming.
32854
32855 2014-04-30 Richard Biener <rguenther@suse.de>
32856
32857 * passes.c (execute_function_todo): Move TODO_verify_stmts
32858 and TODO_verify_ssa under the TODO_verify_il umbrella.
32859 * tree-ssa.h (verify_ssa): Adjust prototype.
32860 * tree-ssa.c (verify_ssa): Add parameter to tell whether
32861 we should verify SSA operands.
32862 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
32863 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
32864 whether we should verify whether not throwing stmts have EH info.
32865 * graphite-scop-detection.c (create_sese_edges): Adjust.
32866 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
32867 * tree-eh.c (lower_try_finally_switch): Do not add the
32868 default case label twice.
32869
32870 2014-04-30 Marek Polacek <polacek@redhat.com>
32871
32872 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
32873 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
32874 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
32875 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
32876
32877 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
32878
32879 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
32880 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
32881 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
32882 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
32883 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
32884 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
32885 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
32886 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
32887
32888 2014-04-29 David Malcolm <dmalcolm@redhat.com>
32889
32890 * tree-cfg.c (dump_function_to_file): Dump the return type of
32891 functions, in a line to itself before the function body, mimicking
32892 the layout of a C function.
32893
32894 2014-04-29 Jakub Jelinek <jakub@redhat.com>
32895
32896 PR tree-optimization/60971
32897 * tree-tailcall.c (process_assignment): Reject conversions which
32898 reduce precision.
32899
32900 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
32901
32902 * calls.c (initialize_argument_information): Always treat
32903 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
32904 (expand_call): Likewise.
32905 (emit_library_call_calue_1): Likewise.
32906 * expr.c (PUSH_ARGS_REVERSED): Do not define.
32907 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
32908 code accordingly.
32909
32910 2014-04-29 Nick Clifton <nickc@redhat.com>
32911
32912 * config/msp430/msp430.md (umulsidi): Fix typo.
32913 (mulhisi3): Enable even inside interrupt handlers.
32914 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
32915 bigger return address pushed in large mode.
32916
32917 2014-04-29 Nick Clifton <nickc@redhat.com>
32918
32919 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
32920 (arc_init_reg_tables): Use a machine_mode enum to iterate over
32921 available modes.
32922 * config/m32r/m32r.c (init_reg_tables): Likewise.
32923 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
32924 enum to hold the modes.
32925
32926 2014-04-29 Richard Biener <rguenther@suse.de>
32927
32928 * dominance.c (free_dominance_info): Add overload with
32929 function parameter.
32930 (dom_info_state): Likewise.
32931 (dom_info_available_p): Likewise.
32932 * basic-block.h (free_dominance_info, dom_info_state,
32933 dom_info_available_p): Declare overloads.
32934 * passes.c (execute_function_todo): Verify that verifiers
32935 don't change dominator info state. Drop dominator info
32936 for IPA pass invocations.
32937 * cgraph.c (release_function_body): Restore asserts that
32938 dominator information is released.
32939
32940 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
32941
32942 * doc/invoke.texi: Fix typo.
32943 * tree-vrp.c: Fix typos.
32944 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
32945
32946 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32947
32948 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
32949
32950 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
32951
32952 * config/aarch64/aarch64-builtins.c
32953 (aarch64_types_storestruct_lane_qualifiers): New.
32954 (TYPES_STORESTRUCT_LANE): Likewise.
32955 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
32956 (st3_lane): Likewise.
32957 (st4_lane): Likewise.
32958 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
32959 (vec_store_lanesci_lane<mode>): Likewise.
32960 (vec_store_lanesxi_lane<mode>): Likewise.
32961 (aarch64_st2_lane<VQ:mode>): Likewise.
32962 (aarch64_st3_lane<VQ:mode>): Likewise.
32963 (aarch64_st4_lane<VQ:mode>): Likewise.
32964 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
32965 * config/aarch64/arm_neon.h
32966 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
32967 use new macro arguments.
32968 (__ST3_LANE_FUNC): Likewise.
32969 (__ST4_LANE_FUNC): Likewise.
32970 * config/aarch64/iterators.md (V_TWO_ELEM): New.
32971 (V_THREE_ELEM): Likewise.
32972 (V_FOUR_ELEM): Likewise.
32973
32974 2014-04-28 David Malcolm <dmalcolm@redhat.com>
32975
32976 * doc/gimple.texi: Replace the description of the now-defunct
32977 union gimple_statement_d with a diagram showing the
32978 gimple_statement_base class hierarchy and its relationships to
32979 the GSS_ and GIMPLE_ enums.
32980
32981 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
32982
32983 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
32984 * config/aarch64/aarch64.c
32985 (aarch64_cannot_change_mode_class): Weaken conditions.
32986 (aarch64_modes_tieable_p): New.
32987 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
32988
32989 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
32990
32991 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
32992 (loadsync_<mode>): Change mode.
32993 (load_quadpti, store_quadpti): New.
32994 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
32995 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
32996
32997 2014-04-28 Martin Jambor <mjambor@suse.cz>
32998
32999 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
33000 same alias type as the original statement.
33001 (subreplacement_assignment_data): New type.
33002 (handle_unscalarized_data_in_subtree): New type of parameter,
33003 generate new memory accesses with same alias type as the original
33004 statement.
33005 (load_assign_lhs_subreplacements): Likewise.
33006 (sra_modify_constructor_assign): Generate new memory accesses with
33007 same alias type as the original statement.
33008
33009 2014-04-28 Richard Biener <rguenther@suse.de>
33010
33011 * tree-pass.h (TODO_verify_il): Define.
33012 (TODO_verify_all): Complete properly.
33013 * passes.c (execute_function_todo): Move existing loop-closed
33014 SSA verification under TODO_verify_il.
33015 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
33016 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
33017 Fix tree sharing issue.
33018
33019 2014-04-28 Richard Biener <rguenther@suse.de>
33020
33021 PR middle-end/60092
33022 * builtins.def (DEF_C11_BUILTIN): Add.
33023 (BUILT_IN_ALIGNED_ALLOC): Likewise.
33024 * coretypes.h (enum function_class): Add function_c11_misc.
33025 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
33026 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
33027 (call_may_clobber_ref_p_1): Likewise.
33028 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
33029 (mark_all_reaching_defs_necessary_1): Likewise.
33030 (propagate_necessity): Likewise.
33031 (eliminate_unnecessary_stmts): Likewise.
33032 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
33033
33034 2014-04-28 Richard Biener <rguenther@suse.de>
33035
33036 * tree-vrp.c (vrp_var_may_overflow): Remove.
33037 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
33038 with overflow immediately bump to one before that value and
33039 let iteration figure out overflow status.
33040
33041 2014-04-28 Richard Biener <rguenther@suse.de>
33042
33043 * configure.ac: Do valgrind header checks unconditionally.
33044 Add --enable-valgrind-annotations.
33045 * system.h: Guard valgrind header inclusion with
33046 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
33047 * alloc-pool.c (pool_alloc, pool_free): Use
33048 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
33049 to guard possibly dead code.
33050 * config.in: Regenerated.
33051 * configure: Likewise.
33052
33053 2014-04-28 Jeff Law <law@redhat.com>
33054
33055 PR tree-optimization/60902
33056 * tree-ssa-threadedge.c
33057 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
33058 over real defs when invalidating outputs from statements that do not
33059 produce useful outputs for threading.
33060
33061 2014-04-28 Richard Biener <rguenther@suse.de>
33062
33063 PR tree-optimization/60979
33064 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
33065 SCOPs that end in a block with a successor with abnormal
33066 predecessors.
33067
33068 2014-04-28 Richard Biener <rguenther@suse.de>
33069
33070 * tree-pass.h (execute_pass_list): Adjust prototype.
33071 * passes.c (pass_manager::execute_early_local_passes): Adjust.
33072 (do_per_function): Change callback signature, push all actual
33073 work to the callbals.
33074 (do_per_function_toporder): Likewise.
33075 (execute_function_dump): Adjust.
33076 (execute_function_todo): Likewise.
33077 (clear_last_verified): Likewise.
33078 (verify_curr_properties): Likewise.
33079 (update_properties_after_pass): Likewise.
33080 (execute_pass_list_1): Split out from ...
33081 (execute_pass_list): ... here. Adjust.
33082 (execute_ipa_pass_list): Likewise.
33083 * cgraphunit.c (cgraph_add_new_function): Adjust.
33084 (analyze_function): Likewise.
33085 (expand_function): Likewise.
33086 * cgraph.c (release_function_body): Free dominance info
33087 here instead of asserting it was magically freed elsewhere.
33088
33089 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
33090
33091 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
33092 * configure: Regenerate.
33093 * config/sparc/sparc.opt (muser-mode): New option.
33094 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
33095 for LEON3.
33096 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
33097 * doc/invoke.texi (SPARC options): Document -muser-mode.
33098
33099 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
33100
33101 * cselib.c (find_slot_memmode): Delete.
33102 (cselib_hasher): Change compare_type to a struct.
33103 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
33104 constants.
33105 (preserve_constants_and_equivs): Adjust for new compare_type.
33106 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
33107 (wrap_constant): Delete.
33108 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
33109
33110 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
33111
33112 * doc/install.texi (Building with profile feedback): Remove
33113 outdated sentence.
33114
33115 2014-04-26 Tom de Vries <tom@codesourcery.com>
33116
33117 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
33118 array accesses.
33119
33120 2014-04-25 Cary Coutant <ccoutant@google.com>
33121
33122 PR debug/60929
33123 * dwarf2out.c (should_move_die_to_comdat): A type definition
33124 can contain a subprogram definition, but don't move it to a
33125 comdat unit.
33126 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
33127 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
33128 from original DIE.
33129 (clone_tree_hash): Rename to...
33130 (clone_tree_partial): ...this; change callers. Copy
33131 DW_TAG_subprogram DIEs as declarations.
33132 (copy_decls_walk): Don't copy children of a declaration into a
33133 type unit.
33134
33135 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
33136
33137 PR target/60969
33138 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
33139 alternative 12.
33140
33141 2014-04-25 Jiong Wang <jiong.wang@arm.com>
33142
33143 * config/arm/predicates.md (call_insn_operand): Add long_call check.
33144 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
33145 reg for long_call.
33146 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
33147 restriction.
33148
33149 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33150
33151 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
33152
33153 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33154
33155 PR tree-optimization/60930
33156 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
33157 creating a multiply candidate by folding two constant
33158 multiplicands when the result overflows.
33159
33160 2014-04-25 Jakub Jelinek <jakub@redhat.com>
33161
33162 PR tree-optimization/60960
33163 * tree-vect-generic.c (expand_vector_operation): Only call
33164 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
33165
33166 2014-04-25 Tom de Vries <tom@codesourcery.com>
33167
33168 * expr.c (clobber_reg_mode): New function.
33169 * expr.h (clobber_reg): New function.
33170
33171 2014-04-25 Tom de Vries <tom@codesourcery.com>
33172
33173 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
33174 clobbers.
33175
33176 2014-04-25 Radovan Obradovic <robradovic@mips.com>
33177 Tom de Vries <tom@codesourcery.com>
33178
33179 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
33180 handle.
33181 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
33182 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
33183 new argument to find_all_hard_reg_sets call.
33184
33185 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33186
33187 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
33188 Use HOST_WIDE_INT_C for mask literal.
33189 (aarch_rev16_shleft_mask_imm_p): Likewise.
33190
33191 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
33192
33193 PR target/60941
33194 * config/sparc/sparc.md (ashlsi3_extend): Delete.
33195
33196 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
33197
33198 PR preprocessor/56540
33199 * config/i386/i386-c.c (ix86_target_macros): Define
33200 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
33201
33202 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33203
33204 * configure.ac (tga_func): Remove.
33205 (LIB_TLS_SPEC): Remove.
33206 * configure: Regenerate.
33207 * config.in: Regenerate.
33208 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
33209
33210 2014-04-25 Richard Biener <rguenther@suse.de>
33211
33212 PR ipa/60912
33213 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
33214 call stmt use/clobber sets during stmt walk instead of
33215 walking the possibly incomplete set of caller edges.
33216
33217 2014-04-25 Richard Biener <rguenther@suse.de>
33218
33219 PR ipa/60911
33220 * passes.c (apply_ipa_transforms): Inline into only caller ...
33221 (execute_one_pass): ... here. Properly bring in function
33222 bodies for nodes we want to apply IPA transforms to.
33223
33224 2014-04-24 Cong Hou <congh@google.com>
33225
33226 PR tree-optimization/60896
33227 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
33228 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
33229 (vect_mark_pattern_stmts): Set the def type of all statements in
33230 PATTERN_DEF_SEQ as vect_internal_def.
33231
33232 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
33233
33234 * doc/extend.texi (PowerPC Built-in Functions): Document new
33235 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
33236 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
33237
33238 * config/rs6000/predicates.md (const_0_to_3_operand): New
33239 predicate to match 0..3 integer constants.
33240
33241 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
33242 to support adding miscellaneous builtin functions.
33243 (BU_DFP_MISC_2): Likewise.
33244 (BU_P7_MISC_1): Likewise.
33245 (BU_P7_MISC_2): Likewise.
33246 (BU_P8V_MISC_3): Likewise.
33247 (BU_MISC_1): Likewise.
33248 (BU_MISC_2): Likewise.
33249 (DIVWE): Add extended divide builtin functions.
33250 (DIVWEO): Likewise.
33251 (DIVWEU): Likewise.
33252 (DIVWEUO): Likewise.
33253 (DIVDE): Likewise.
33254 (DIVDEO): Likewise.
33255 (DIVDEU): Likewise.
33256 (DIVDEUO): Likewise.
33257 (DXEX): Add decimal floating-point builtin functions.
33258 (DXEXQ): Likewise.
33259 (DDEDPD): Likewise.
33260 (DDEDPDQ): Likewise.
33261 (DENBCD): Likewise.
33262 (DENBCDQ): Likewise.
33263 (DIEX): Likewise.
33264 (DIEXQ): Likewise.
33265 (DSCLI): Likewise.
33266 (DSCLIQ): Likewise.
33267 (DSCRI): Likewise.
33268 (DSCRIQ): Likewise.
33269 (CDTBCD): Add new BCD builtin functions.
33270 (CBCDTD): Likewise.
33271 (ADDG6S): Likewise.
33272 (BCDADD): Likewise.
33273 (BCDADD_LT): Likewise.
33274 (BCDADD_EQ): Likewise.
33275 (BCDADD_GT): Likewise.
33276 (BCDADD_OV): Likewise.
33277 (BCDSUB): Likewise.
33278 (BCDSUB_LT): Likewise.
33279 (BCDSUB_EQ): Likewise.
33280 (BCDSUB_GT): Likewise.
33281 (BCDSUB_OV): Likewise.
33282 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
33283 (UNPACK_TD): Likewise.
33284 (PACK_TF): Likewise.
33285 (UNPACK_TF): Likewise.
33286 (UNPACK_TF_0): Likewise.
33287 (UNPACK_TF_1): Likewise.
33288 (PACK_V1TI): Likewise.
33289 (UNPACK_V1TI): Likewise.
33290
33291 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
33292 support for decimal floating point builtin functions.
33293 (rs6000_expand_ternop_builtin): Add checks for the new builtin
33294 functions that take constant arguments.
33295 (rs6000_invalid_builtin): Add decimal floating point builtin support.
33296 (rs6000_init_builtins): Setup long double, _Decimal64, and
33297 _Decimal128 types for new builtin functions.
33298 (builtin_function_type): Set the unsigned flags appropriately for
33299 the new builtin functions.
33300 (rs6000_opt_masks): Add support for decimal floating point builtin
33301 functions.
33302
33303 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
33304 floating point builtin functions.
33305 (RS6000_BTM_COMMON): Likewise.
33306 (RS6000_BTI_long_double): Likewise.
33307 (RS6000_BTI_dfloat64): Likewise.
33308 (RS6000_BTI_dfloat128): Likewise.
33309 (long_double_type_internal_node): Likewise.
33310 (dfloat64_type_internal_node): Likewise.
33311 (dfloat128_type_internal_node): Likewise.
33312
33313 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
33314 2.07 bcd arithmetic instructions.
33315 (UNSPEC_BCDSUB): Likewise.
33316 (UNSPEC_BCD_OVERFLOW): Likewise.
33317 (UNSPEC_BCD_ADD_SUB): Likewise.
33318 (bcd_add_sub): Likewise.
33319 (BCD_TEST): Likewise.
33320 (bcd<bcd_add_sub>): Likewise.
33321 (bcd<bcd_add_sub>_test): Likewise.
33322 (bcd<bcd_add_sub>_test2): Likewise.
33323 (bcd<bcd_add_sub>_<code>): Likewise.
33324 (peephole2 for combined bcd ops): Likewise.
33325
33326 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
33327 decimal floating point builtin functions.
33328 (UNSPEC_DENBCD): Likewise.
33329 (UNSPEC_DXEX): Likewise.
33330 (UNSPEC_DIEX): Likewise.
33331 (UNSPEC_DSCLI): Likewise.
33332 (UNSPEC_DSCRI): Likewise.
33333 (D64_D128): Likewise.
33334 (dfp_suffix): Likewise.
33335 (dfp_ddedpd_<mode>): Likewise.
33336 (dfp_denbcd_<mode>): Likewise.
33337 (dfp_dxex_<mode>): Likewise.
33338 (dfp_diex_<mode>): Likewise.
33339 (dfp_dscli_<mode>): Likewise.
33340 (dfp_dscri_<mode>): Likewise.
33341
33342 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
33343 builtin functions.
33344 (UNSPEC_CDTBCD): Likewise.
33345 (UNSPEC_CBCDTD): Likewise.
33346 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
33347 (UNSPEC_DIVEO): Likewise.
33348 (UNSPEC_DIVEU): Likewise.
33349 (UNSPEC_DIVEUO): Likewise.
33350 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
33351 pack/unpack 128-bit types.
33352 (UNSPEC_PACK_128BIT): Likewise.
33353 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
33354 (udiv<mode>3): Use idiv_ldiv mode attribute.
33355 (div<mode>3): Likewise.
33356 (addg6s): Add new BCD builtin functions.
33357 (cdtbcd): Likewise.
33358 (cbcdtd): Likewise.
33359 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
33360 (div_extend): Likewise.
33361 (div<div_extend>_<mode>"): Likewise.
33362 (FP128_64): Add support for new builtin functions to pack/unpack
33363 128-bit types.
33364 (unpack<mode>): Likewise.
33365 (unpacktf_0): Likewise.
33366 (unpacktf_1): Likewise.
33367 (unpack<mode>_dm): Likewise.
33368 (unpack<mode>_nodm): Likewise.
33369 (pack<mode>): Likewise.
33370 (unpackv1ti): Likewise.
33371 (packv1ti): Likewise.
33372
33373 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
33374
33375 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
33376 is disabled.
33377
33378 2014-04-24 Jakub Jelinek <jakub@redhat.com>
33379
33380 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
33381 * gimplify.c (omp_is_private): Change last argument's type to int.
33382 Only diagnose lastprivate if the simd argument is 1, only diagnose
33383 linear if the simd argument is 2.
33384 (gimplify_omp_for): Adjust omp_is_private callers. When adding
33385 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
33386 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
33387 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
33388 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
33389 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
33390 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
33391 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
33392 * tree-nested.c (convert_nonlocal_omp_clauses,
33393 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
33394
33395 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
33396
33397 PR target/60822
33398 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
33399 operand 1.
33400
33401 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
33402
33403 * flag-types.h (enum ivar_visibility): Add.
33404
33405 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
33406
33407 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
33408 function * argument.
33409
33410 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
33411
33412 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
33413
33414 2014-04-24 Radovan Obradovic <robradovic@mips.com>
33415 Tom de Vries <tom@codesourcery.com>
33416
33417 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
33418 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
33419 reg-note.
33420 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
33421 * emit-rtl.c (try_split): Same.
33422
33423 2014-04-24 Radovan Obradovic <robradovic@mips.com>
33424 Tom de Vries <tom@codesourcery.com>
33425
33426 * common.opt (fuse-caller-save): New option.
33427
33428 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
33429
33430 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
33431 elements for big-endian.
33432
33433 2014-04-24 Richard Biener <rguenther@suse.de>
33434
33435 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
33436 during TER and instead use the sepops interface for expanding
33437 non-GIMPLE_SINGLE_RHS.
33438
33439 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33440
33441 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
33442 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
33443
33444 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33445
33446 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
33447 assembler 64-bit option.
33448 * configure: Regenerate.
33449
33450 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33451
33452 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
33453 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
33454 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
33455 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
33456 (TARGET_CRYPTO): Take TARGET_SIMD into account.
33457
33458 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33459
33460 * config/aarch64/aarch64-builtins.c
33461 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
33462 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
33463 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
33464 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
33465 builtins.
33466 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
33467 (Vrevsuff): New mode attribute.
33468
33469 2014-04-24 Terry Guo <terry.guo@arm.com>
33470
33471 * config/arm/arm.h (machine_function): Define variable
33472 after_arm_reorg here.
33473 * config/arm/arm.c (after_arm_reorg): Remove the definition.
33474 (arm_split_constant): Update the way to access variable
33475 after_arm_reorg.
33476 (arm_reorg): Ditto.
33477 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
33478
33479 2014-04-23 Tom de Vries <tom@codesourcery.com>
33480
33481 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
33482
33483 2014-04-23 David Malcolm <dmalcolm@redhat.com>
33484
33485 * is-a.h: Update comments to reflect the following changes to the
33486 "pointerness" of the API, making the template parameter match the
33487 return type, allowing use of is-a.h with typedefs of pointers.
33488 (is_a_helper::cast): Return a T rather then a pointer to a T, so
33489 that the return type matches the parameter to the is_a_helper.
33490 (as_a): Likewise.
33491 (dyn_cast): Likewise.
33492
33493 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
33494 pointer from the is-a.h API.
33495
33496 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
33497 (is_a_helper <cgraph_node *>::test): ...this, matching change to
33498 is-a.h API.
33499 (is_a_helper <varpool_node>::test): Likewise, convert to...
33500 (is_a_helper <varpool_node *>::test): ...this.
33501
33502 (varpool_first_variable): Update for removal of implicit pointer
33503 from the is-a.h API.
33504 (varpool_next_variable): Likewise.
33505 (varpool_first_static_initializer): Likewise.
33506 (varpool_next_static_initializer): Likewise.
33507 (varpool_first_defined_variable): Likewise.
33508 (varpool_next_defined_variable): Likewise.
33509 (cgraph_first_defined_function): Likewise.
33510 (cgraph_next_defined_function): Likewise.
33511 (cgraph_first_function): Likewise.
33512 (cgraph_next_function): Likewise.
33513 (cgraph_first_function_with_gimple_body): Likewise.
33514 (cgraph_next_function_with_gimple_body): Likewise.
33515 (cgraph_alias_target): Likewise.
33516 (varpool_alias_target): Likewise.
33517 (cgraph_function_or_thunk_node): Likewise.
33518 (varpool_variable_node): Likewise.
33519 (symtab_real_symbol_p): Likewise.
33520 * cgraphunit.c (referred_to_p): Likewise.
33521 (analyze_functions): Likewise.
33522 (handle_alias_pairs): Likewise.
33523 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
33524 * gimple-ssa.h (gimple_vuse_op): Likewise.
33525 (gimple_vdef_op): Likewise.
33526 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
33527 * gimple.c (gimple_build_asm_1): Likewise.
33528 (gimple_build_try): Likewise.
33529 (gimple_build_resx): Likewise.
33530 (gimple_build_eh_dispatch): Likewise.
33531 (gimple_build_omp_for): Likewise.
33532 (gimple_omp_for_set_clauses): Likewise.
33533
33534 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
33535 (is_a_helper <gimple_statement_asm *>::test): ...this.
33536 (is_a_helper <gimple_statement_bind>::test): Convert to...
33537 (is_a_helper <gimple_statement_bind *>::test): ...this.
33538 (is_a_helper <gimple_statement_call>::test): Convert to...
33539 (is_a_helper <gimple_statement_call *>::test): ...this.
33540 (is_a_helper <gimple_statement_catch>::test): Convert to...
33541 (is_a_helper <gimple_statement_catch *>::test): ...this.
33542 (is_a_helper <gimple_statement_resx>::test): Convert to...
33543 (is_a_helper <gimple_statement_resx *>::test): ...this.
33544 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
33545 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
33546 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
33547 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
33548 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
33549 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
33550 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
33551 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
33552 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
33553 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
33554 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
33555 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
33556 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
33557 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
33558 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
33559 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
33560 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
33561 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
33562 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
33563 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
33564 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
33565 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
33566 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
33567 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
33568 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
33569 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
33570 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
33571 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
33572 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
33573 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
33574 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
33575 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
33576 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
33577 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
33578 (is_a_helper <gimple_statement_phi>::test): Convert to...
33579 (is_a_helper <gimple_statement_phi *>::test): ...this.
33580 (is_a_helper <gimple_statement_transaction>::test): Convert to...
33581 (is_a_helper <gimple_statement_transaction *>::test): ...this.
33582 (is_a_helper <gimple_statement_try>::test): Convert to...
33583 (is_a_helper <gimple_statement_try *>::test): ...this.
33584 (is_a_helper <gimple_statement_wce>::test): Convert to...
33585 (is_a_helper <gimple_statement_wce *>::test): ...this.
33586 (is_a_helper <const gimple_statement_asm>::test): Convert to...
33587 (is_a_helper <const gimple_statement_asm *>::test): ...this.
33588 (is_a_helper <const gimple_statement_bind>::test): Convert to...
33589 (is_a_helper <const gimple_statement_bind *>::test): ...this.
33590 (is_a_helper <const gimple_statement_call>::test): Convert to...
33591 (is_a_helper <const gimple_statement_call *>::test): ...this.
33592 (is_a_helper <const gimple_statement_catch>::test): Convert to...
33593 (is_a_helper <const gimple_statement_catch *>::test): ...this.
33594 (is_a_helper <const gimple_statement_resx>::test): Convert to...
33595 (is_a_helper <const gimple_statement_resx *>::test): ...this.
33596 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
33597 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
33598 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
33599 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
33600 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
33601 Convert to...
33602 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
33603 ...this.
33604 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
33605 Convert to...
33606 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
33607 ...this.
33608 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
33609 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
33610 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
33611 to...
33612 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
33613 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
33614 to...
33615 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
33616 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
33617 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
33618 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
33619 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
33620 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
33621 to...
33622 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
33623 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
33624 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
33625 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
33626 to...
33627 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
33628 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
33629 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
33630 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
33631 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
33632 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
33633 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
33634 (is_a_helper <const gimple_statement_phi>::test): Convert to...
33635 (is_a_helper <const gimple_statement_phi *>::test): ...this.
33636 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
33637 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
33638 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
33639 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
33640 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
33641 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
33642 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
33643 to...
33644 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
33645 ...this.
33646 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
33647 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
33648
33649 (gimple_use_ops): Update for removal of implicit pointer from the
33650 is-a.h API.
33651 (gimple_set_use_ops): Likewise.
33652 (gimple_vuse): Likewise.
33653 (gimple_vdef): Likewise.
33654 (gimple_vuse_ptr): Likewise.
33655 (gimple_vdef_ptr): Likewise.
33656 (gimple_set_vuse): Likewise.
33657 (gimple_set_vdef): Likewise.
33658 (gimple_omp_return_set_lhs): Likewise.
33659 (gimple_omp_return_lhs): Likewise.
33660 (gimple_omp_return_lhs_ptr): Likewise.
33661 (gimple_call_fntype): Likewise.
33662 (gimple_call_set_fntype): Likewise.
33663 (gimple_call_set_internal_fn): Likewise.
33664 (gimple_call_use_set): Likewise.
33665 (gimple_call_clobber_set): Likewise.
33666 (gimple_bind_vars): Likewise.
33667 (gimple_bind_set_vars): Likewise.
33668 (gimple_bind_body_ptr): Likewise.
33669 (gimple_bind_set_body): Likewise.
33670 (gimple_bind_add_stmt): Likewise.
33671 (gimple_bind_block): Likewise.
33672 (gimple_bind_set_block): Likewise.
33673 (gimple_asm_ninputs): Likewise.
33674 (gimple_asm_noutputs): Likewise.
33675 (gimple_asm_nclobbers): Likewise.
33676 (gimple_asm_nlabels): Likewise.
33677 (gimple_asm_input_op): Likewise.
33678 (gimple_asm_input_op_ptr): Likewise.
33679 (gimple_asm_output_op): Likewise.
33680 (gimple_asm_output_op_ptr): Likewise.
33681 (gimple_asm_set_output_op): Likewise.
33682 (gimple_asm_clobber_op): Likewise.
33683 (gimple_asm_set_clobber_op): Likewise.
33684 (gimple_asm_label_op): Likewise.
33685 (gimple_asm_set_label_op): Likewise.
33686 (gimple_asm_string): Likewise.
33687 (gimple_catch_types): Likewise.
33688 (gimple_catch_types_ptr): Likewise.
33689 (gimple_catch_handler_ptr): Likewise.
33690 (gimple_catch_set_types): Likewise.
33691 (gimple_catch_set_handler): Likewise.
33692 (gimple_eh_filter_types): Likewise.
33693 (gimple_eh_filter_types_ptr): Likewise.
33694 (gimple_eh_filter_failure_ptr): Likewise.
33695 (gimple_eh_filter_set_types): Likewise.
33696 (gimple_eh_filter_set_failure): Likewise.
33697 (gimple_eh_must_not_throw_fndecl): Likewise.
33698 (gimple_eh_must_not_throw_set_fndecl): Likewise.
33699 (gimple_eh_else_n_body_ptr): Likewise.
33700 (gimple_eh_else_e_body_ptr): Likewise.
33701 (gimple_eh_else_set_n_body): Likewise.
33702 (gimple_eh_else_set_e_body): Likewise.
33703 (gimple_try_eval_ptr): Likewise.
33704 (gimple_try_cleanup_ptr): Likewise.
33705 (gimple_try_set_eval): Likewise.
33706 (gimple_try_set_cleanup): Likewise.
33707 (gimple_wce_cleanup_ptr): Likewise.
33708 (gimple_wce_set_cleanup): Likewise.
33709 (gimple_phi_capacity): Likewise.
33710 (gimple_phi_num_args): Likewise.
33711 (gimple_phi_result): Likewise.
33712 (gimple_phi_result_ptr): Likewise.
33713 (gimple_phi_set_result): Likewise.
33714 (gimple_phi_arg): Likewise.
33715 (gimple_phi_set_arg): Likewise.
33716 (gimple_resx_region): Likewise.
33717 (gimple_resx_set_region): Likewise.
33718 (gimple_eh_dispatch_region): Likewise.
33719 (gimple_eh_dispatch_set_region): Likewise.
33720 (gimple_omp_critical_name): Likewise.
33721 (gimple_omp_critical_name_ptr): Likewise.
33722 (gimple_omp_critical_set_name): Likewise.
33723 (gimple_omp_for_clauses): Likewise.
33724 (gimple_omp_for_clauses_ptr): Likewise.
33725 (gimple_omp_for_set_clauses): Likewise.
33726 (gimple_omp_for_collapse): Likewise.
33727 (gimple_omp_for_index): Likewise.
33728 (gimple_omp_for_index_ptr): Likewise.
33729 (gimple_omp_for_set_index): Likewise.
33730 (gimple_omp_for_initial): Likewise.
33731 (gimple_omp_for_initial_ptr): Likewise.
33732 (gimple_omp_for_set_initial): Likewise.
33733 (gimple_omp_for_final): Likewise.
33734 (gimple_omp_for_final_ptr): Likewise.
33735 (gimple_omp_for_set_final): Likewise.
33736 (gimple_omp_for_incr): Likewise.
33737 (gimple_omp_for_incr_ptr): Likewise.
33738 (gimple_omp_for_set_incr): Likewise.
33739 (gimple_omp_for_pre_body_ptr): Likewise.
33740 (gimple_omp_for_set_pre_body): Likewise.
33741 (gimple_omp_parallel_clauses): Likewise.
33742 (gimple_omp_parallel_clauses_ptr): Likewise.
33743 (gimple_omp_parallel_set_clauses): Likewise.
33744 (gimple_omp_parallel_child_fn): Likewise.
33745 (gimple_omp_parallel_child_fn_ptr): Likewise.
33746 (gimple_omp_parallel_set_child_fn): Likewise.
33747 (gimple_omp_parallel_data_arg): Likewise.
33748 (gimple_omp_parallel_data_arg_ptr): Likewise.
33749 (gimple_omp_parallel_set_data_arg): Likewise.
33750 (gimple_omp_task_clauses): Likewise.
33751 (gimple_omp_task_clauses_ptr): Likewise.
33752 (gimple_omp_task_set_clauses): Likewise.
33753 (gimple_omp_task_child_fn): Likewise.
33754 (gimple_omp_task_child_fn_ptr): Likewise.
33755 (gimple_omp_task_set_child_fn): Likewise.
33756 (gimple_omp_task_data_arg): Likewise.
33757 (gimple_omp_task_data_arg_ptr): Likewise.
33758 (gimple_omp_task_set_data_arg): Likewise.
33759 (gimple_omp_taskreg_clauses): Likewise.
33760 (gimple_omp_taskreg_clauses_ptr): Likewise.
33761 (gimple_omp_taskreg_set_clauses): Likewise.
33762 (gimple_omp_taskreg_child_fn): Likewise.
33763 (gimple_omp_taskreg_child_fn_ptr): Likewise.
33764 (gimple_omp_taskreg_set_child_fn): Likewise.
33765 (gimple_omp_taskreg_data_arg): Likewise.
33766 (gimple_omp_taskreg_data_arg_ptr): Likewise.
33767 (gimple_omp_taskreg_set_data_arg): Likewise.
33768 (gimple_omp_task_copy_fn): Likewise.
33769 (gimple_omp_task_copy_fn_ptr): Likewise.
33770 (gimple_omp_task_set_copy_fn): Likewise.
33771 (gimple_omp_task_arg_size): Likewise.
33772 (gimple_omp_task_arg_size_ptr): Likewise.
33773 (gimple_omp_task_set_arg_size): Likewise.
33774 (gimple_omp_task_arg_align): Likewise.
33775 (gimple_omp_task_arg_align_ptr): Likewise.
33776 (gimple_omp_task_set_arg_align): Likewise.
33777 (gimple_omp_single_clauses): Likewise.
33778 (gimple_omp_single_clauses_ptr): Likewise.
33779 (gimple_omp_single_set_clauses): Likewise.
33780 (gimple_omp_target_clauses): Likewise.
33781 (gimple_omp_target_clauses_ptr): Likewise.
33782 (gimple_omp_target_set_clauses): Likewise.
33783 (gimple_omp_target_child_fn): Likewise.
33784 (gimple_omp_target_child_fn_ptr): Likewise.
33785 (gimple_omp_target_set_child_fn): Likewise.
33786 (gimple_omp_target_data_arg): Likewise.
33787 (gimple_omp_target_data_arg_ptr): Likewise.
33788 (gimple_omp_target_set_data_arg): Likewise.
33789 (gimple_omp_teams_clauses): Likewise.
33790 (gimple_omp_teams_clauses_ptr): Likewise.
33791 (gimple_omp_teams_set_clauses): Likewise.
33792 (gimple_omp_sections_clauses): Likewise.
33793 (gimple_omp_sections_clauses_ptr): Likewise.
33794 (gimple_omp_sections_set_clauses): Likewise.
33795 (gimple_omp_sections_control): Likewise.
33796 (gimple_omp_sections_control_ptr): Likewise.
33797 (gimple_omp_sections_set_control): Likewise.
33798 (gimple_omp_for_set_cond): Likewise.
33799 (gimple_omp_for_cond): Likewise.
33800 (gimple_omp_atomic_store_set_val): Likewise.
33801 (gimple_omp_atomic_store_val): Likewise.
33802 (gimple_omp_atomic_store_val_ptr): Likewise.
33803 (gimple_omp_atomic_load_set_lhs): Likewise.
33804 (gimple_omp_atomic_load_lhs): Likewise.
33805 (gimple_omp_atomic_load_lhs_ptr): Likewise.
33806 (gimple_omp_atomic_load_set_rhs): Likewise.
33807 (gimple_omp_atomic_load_rhs): Likewise.
33808 (gimple_omp_atomic_load_rhs_ptr): Likewise.
33809 (gimple_omp_continue_control_def): Likewise.
33810 (gimple_omp_continue_control_def_ptr): Likewise.
33811 (gimple_omp_continue_set_control_def): Likewise.
33812 (gimple_omp_continue_control_use): Likewise.
33813 (gimple_omp_continue_control_use_ptr): Likewise.
33814 (gimple_omp_continue_set_control_use): Likewise.
33815 (gimple_transaction_body_ptr): Likewise.
33816 (gimple_transaction_label): Likewise.
33817 (gimple_transaction_label_ptr): Likewise.
33818 (gimple_transaction_set_body): Likewise.
33819 (gimple_transaction_set_label): Likewise.
33820
33821 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
33822 * ipa-inline-analysis.c (inline_write_summary): Likewise.
33823 * ipa-ref.c (ipa_record_reference): Likewise.
33824 * ipa-reference.c (analyze_function): Likewise.
33825 (ipa_reference_write_optimization_summary): Likewise.
33826 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
33827 (address_taken_from_non_vtable_p): Likewise.
33828 (comdat_can_be_unshared_p_1): Likewise.
33829 * lto-cgraph.c (lto_output_ref): Likewise.
33830 (add_references): Likewise.
33831 (compute_ltrans_boundary): Likewise.
33832 (output_symtab): Likewise.
33833 (input_ref): Likewise.
33834 (input_cgraph_1): Likewise.
33835 (output_cgraph_opt_summary): Likewise.
33836 * lto-streamer-out.c (lto_output): Likewise.
33837 (output_symbol_p): Likewise.
33838 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
33839 (lsei_start_function_in_partition): Likewise.
33840 (lsei_next_variable_in_partition): Likewise.
33841 (lsei_start_variable_in_partition): Likewise.
33842 * symtab.c (insert_to_assembler_name_hash): Likewise.
33843 (unlink_from_assembler_name_hash): Likewise.
33844 (symtab_unregister_node): Likewise.
33845 (symtab_remove_node): Likewise.
33846 (dump_symtab_node): Likewise.
33847 (verify_symtab_base): Likewise.
33848 (verify_symtab_node): Likewise.
33849 (symtab_make_decl_local): Likewise.
33850 (symtab_alias_ultimate_target): Likewise.
33851 (symtab_resolve_alias): Likewise.
33852 (symtab_get_symbol_partitioning_class): Likewise.
33853 * tree-phinodes.c (allocate_phi_node): Likewise.
33854 (reserve_phi_args_for_new_edge): Likewise.
33855 (remove_phi_args): Likewise.
33856 * varpool.c (varpool_node_for_asm): Likewise.
33857 (varpool_remove_unreferenced_decls): Likewise.
33858
33859 2014-04-23 Jeff Law <law@redhat.com>
33860
33861 PR tree-optimization/60902
33862 * tree-ssa-threadedge.c
33863 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
33864 invalidate outputs from statements that do not produce useful
33865 outputs for threading.
33866
33867 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
33868
33869 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
33870 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
33871 machine descriptions for Stack Smashing Protector.
33872
33873 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
33874
33875 * aarch64.md (<optab>_rol<mode>3): New pattern.
33876 (<optab>_rolsi3_uxtw): Likewise.
33877 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
33878
33879 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
33880
33881 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
33882 (arm_cortex_a12_tune): Likewise.
33883
33884 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33885
33886 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
33887
33888 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33889
33890 * config/arm/arm.md (arm_rev16si2): New pattern.
33891 (arm_rev16si2_alt): Likewise.
33892 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
33893
33894 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33895
33896 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
33897 (rev16<mode>2_alt): Likewise.
33898 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
33899 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
33900 (aarch_rev16_shleft_mask_imm_p): Likewise.
33901 (aarch_rev16_p_1): Likewise.
33902 (aarch_rev16_p): Likewise.
33903 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
33904 (aarch_rev16_shright_mask_imm_p): Likewise.
33905 (aarch_rev16_shleft_mask_imm_p): Likewise.
33906
33907 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33908
33909 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
33910 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
33911 rev cost.
33912 (cortex_a53_extra_costs): Likewise.
33913 (cortex_a57_extra_costs): Likewise.
33914 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
33915 (cortexa7_extra_costs): Likewise.
33916 (cortexa8_extra_costs): Likewise.
33917 (cortexa12_extra_costs): Likewise.
33918 (cortexa15_extra_costs): Likewise.
33919 (v7m_extra_costs): Likewise.
33920 (arm_new_rtx_costs): Handle BSWAP.
33921
33922 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33923
33924 * config/arm/arm.c (cortexa8_extra_costs): New table.
33925 (arm_cortex_a8_tune): New tuning struct.
33926 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
33927
33928 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33929
33930 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
33931
33932 2014-04-23 Richard Biener <rguenther@suse.de>
33933
33934 * Makefile.in (OBJS): Remove loop-unswitch.o.
33935 * tree-pass.h (make_pass_rtl_unswitch): Remove.
33936 * passes.def (pass_rtl_unswitch): Likewise.
33937 * loop-init.c (gate_rtl_unswitch): Likewise.
33938 (rtl_unswitch): Likewise.
33939 (pass_data_rtl_unswitch): Likewise.
33940 (pass_rtl_unswitch): Likewise.
33941 (make_pass_rtl_unswitch): Likewise.
33942 * rtl.h (reversed_condition): Likewise.
33943 (compare_and_jump_seq): Likewise.
33944 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
33945 and make static.
33946 * loop-unroll.c (compare_and_jump_seq): Likewise.
33947
33948 2014-04-23 Richard Biener <rguenther@suse.de>
33949
33950 PR tree-optimization/60903
33951 * tree-ssa-loop-im.c (analyze_memory_references): Remove
33952 commented code block.
33953 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
33954 loop flags to newly created BBs and edges.
33955
33956 2014-04-23 Nick Clifton <nickc@redhat.com>
33957
33958 * config/msp430/msp430.c (msp430_handle_option): Move function
33959 to msp430-common.c
33960 (msp430_option_override): Simplify mcu and mcpu option handling.
33961 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
33962 support for -mhwmult command line option.
33963 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
33964 -mhwmult command line option.
33965 (msp430_hwmult_enabled): Delete.
33966 (msp43o_output_labelref): Add support for -mhwmult command line option.
33967 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
33968 (umulsidi3): Likewise.
33969 * config/msp430/msp430.opt (mmcu): Add Report attribute.
33970 (mcpu, mlarge, msmall): Likewise.
33971 (mhwmult): New option.
33972 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
33973 prototype.
33974 (msp430_is_f5_mcu): Remove prototype.
33975 (msp430_use_f5_series_hwmult): Add prototype.
33976 * config/msp430/msp430-opts.h: New file.
33977 * common/config/msp430: New directory.
33978 * common/config/msp430/msp430-common.c: New file.
33979 * config.gcc (msp430): Remove target_has_targetm_common.
33980 * doc/invoke.texi: Document -mhwmult command line option.
33981
33982 2014-04-23 Nick Clifton <nickc@redhat.com>
33983
33984 * config/i386/cygwin.h (ENDFILE_SPEC): Include
33985 default-manifest.o if it can be found in the search path.
33986 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
33987
33988 2014-04-23 Terry Guo <terry.guo@arm.com>
33989
33990 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
33991
33992 2014-04-23 Richard Biener <rguenther@suse.de>
33993
33994 PR middle-end/60895
33995 * tree-inline.c (declare_return_variable): Use mark_addressable.
33996
33997 2014-04-23 Richard Biener <rguenther@suse.de>
33998
33999 PR middle-end/60891
34000 * loop-init.c (loop_optimizer_init): Make sure to apply
34001 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
34002
34003 2014-04-22 Jakub Jelinek <jakub@redhat.com>
34004
34005 PR sanitizer/60275
34006 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
34007 New options.
34008 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
34009 if flag_sanitize_undefined_trap_on_error.
34010 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
34011 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
34012 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
34013 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
34014 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
34015 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
34016 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
34017 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
34018 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
34019 * ubsan.c (ubsan_instrument_unreachable): Return
34020 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
34021 (ubsan_expand_null_ifn): Emit __builtin_trap ()
34022 if flag_sanitize_undefined_trap_on_error and
34023 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
34024 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
34025 instrument_bool_enum_load): Emit __builtin_trap () if
34026 flag_sanitize_undefined_trap_on_error and
34027 __builtin_handle_*_abort () if !flag_sanitize_recover.
34028 * doc/invoke.texi (-fsanitize-recover,
34029 -fsanitize-undefined-trap-on-error): Document.
34030
34031 2014-04-22 Christian Bruel <christian.bruel@st.com>
34032
34033 * config/sh/sh.md (mov<mode>): Replace movQIHI.
34034 Force immediates to SImode.
34035
34036 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
34037
34038 * config/nios2/nios2.md (UNSPEC_ROUND): New.
34039 (lroundsfsi2): New.
34040 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
34041 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
34042 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
34043 (nios2_fpu_insn): Add entry for round.
34044 (N2FPU_NO_ERRNO_P): Define.
34045 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
34046 flag_errno_math.
34047 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
34048
34049 2014-04-22 Richard Henderson <rth@redhat.com>
34050
34051 * config/aarch64/aarch64 (addti3, subti3): New expanders.
34052 (add<GPI>3_compare0): Remove leading * from name.
34053 (add<GPI>3_carryin): Likewise.
34054 (sub<GPI>3_compare0): Likewise.
34055 (sub<GPI>3_carryin): Likewise.
34056 (<su_optab>mulditi3): New expander.
34057 (multi3): New expander.
34058 (madd<GPI>): Remove leading * from name.
34059
34060 2014-04-22 Martin Jambor <mjambor@suse.cz>
34061
34062 * cgraphclones.c (cgraph_function_versioning): Copy
34063 ipa_transforms_to_apply instead of asserting it is empty.
34064
34065 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
34066
34067 PR target/60868
34068 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
34069 on count_exp to get mode.
34070
34071 2014-04-22 Andrew Pinski <apinski@cavium.com>
34072
34073 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
34074 Handle TLS for ILP32.
34075 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
34076 (tlsie_small_<mode>): this and handle PTR.
34077 (tlsie_small_sidi): New pattern.
34078 (tlsle_small): Change to an expand to handle ILP32.
34079 (tlsle_small_<mode>): New pattern.
34080 (tlsdesc_small): Rename to ...
34081 (tlsdesc_small_<mode>): this and handle PTR.
34082
34083 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34084
34085 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
34086
34087 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
34088
34089 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
34090 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
34091 (aarch64_types_signed_poly_qualifiers): Likewise.
34092 (aarch64_types_unsigned_signed_qualifiers): Likewise.
34093 (aarch64_types_poly_signed_qualifiers): Likewise.
34094 (TYPES_REINTERP_SS): Type macro added.
34095 (TYPES_REINTERP_SU): Likewise.
34096 (TYPES_REINTERP_SP): Likewise.
34097 (TYPES_REINTERP_US): Likewise.
34098 (TYPES_REINTERP_PS): Likewise.
34099 (aarch64_fold_builtin): New expression folding added.
34100 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
34101 Declarations removed.
34102 (REINTERP_SS): Declarations added.
34103 (REINTERP_US): Likewise.
34104 (REINTERP_PS): Likewise.
34105 (REINTERP_SU): Likewise.
34106 (REINTERP_SP): Likewise.
34107 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
34108 (vreinterpretq_p8_f64): Likewise.
34109 (vreinterpret_p16_f64): Likewise.
34110 (vreinterpretq_p16_f64): Likewise.
34111 (vreinterpret_f32_f64): Likewise.
34112 (vreinterpretq_f32_f64): Likewise.
34113 (vreinterpret_f64_f32): Likewise.
34114 (vreinterpret_f64_p8): Likewise.
34115 (vreinterpret_f64_p16): Likewise.
34116 (vreinterpret_f64_s8): Likewise.
34117 (vreinterpret_f64_s16): Likewise.
34118 (vreinterpret_f64_s32): Likewise.
34119 (vreinterpret_f64_s64): Likewise.
34120 (vreinterpret_f64_u8): Likewise.
34121 (vreinterpret_f64_u16): Likewise.
34122 (vreinterpret_f64_u32): Likewise.
34123 (vreinterpret_f64_u64): Likewise.
34124 (vreinterpretq_f64_f32): Likewise.
34125 (vreinterpretq_f64_p8): Likewise.
34126 (vreinterpretq_f64_p16): Likewise.
34127 (vreinterpretq_f64_s8): Likewise.
34128 (vreinterpretq_f64_s16): Likewise.
34129 (vreinterpretq_f64_s32): Likewise.
34130 (vreinterpretq_f64_s64): Likewise.
34131 (vreinterpretq_f64_u8): Likewise.
34132 (vreinterpretq_f64_u16): Likewise.
34133 (vreinterpretq_f64_u32): Likewise.
34134 (vreinterpretq_f64_u64): Likewise.
34135 (vreinterpret_s64_f64): Likewise.
34136 (vreinterpretq_s64_f64): Likewise.
34137 (vreinterpret_u64_f64): Likewise.
34138 (vreinterpretq_u64_f64): Likewise.
34139 (vreinterpret_s8_f64): Likewise.
34140 (vreinterpretq_s8_f64): Likewise.
34141 (vreinterpret_s16_f64): Likewise.
34142 (vreinterpretq_s16_f64): Likewise.
34143 (vreinterpret_s32_f64): Likewise.
34144 (vreinterpretq_s32_f64): Likewise.
34145 (vreinterpret_u8_f64): Likewise.
34146 (vreinterpretq_u8_f64): Likewise.
34147 (vreinterpret_u16_f64): Likewise.
34148 (vreinterpretq_u16_f64): Likewise.
34149 (vreinterpret_u32_f64): Likewise.
34150 (vreinterpretq_u32_f64): Likewise.
34151
34152 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
34153
34154 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
34155 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
34156 (vreinterpret_p8_s8): Likewise.
34157 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
34158 (vreinterpret_p8_s16): Likewise.
34159 (vreinterpret_p8_s32): Likewise.
34160 (vreinterpret_p8_s64): Likewise.
34161 (vreinterpret_p8_f32): Likewise.
34162 (vreinterpret_p8_u8): Likewise.
34163 (vreinterpret_p8_u16): Likewise.
34164 (vreinterpret_p8_u32): Likewise.
34165 (vreinterpret_p8_u64): Likewise.
34166 (vreinterpret_p8_p16): Likewise.
34167 (vreinterpretq_p8_s8): Likewise.
34168 (vreinterpretq_p8_s16): Likewise.
34169 (vreinterpretq_p8_s32): Likewise.
34170 (vreinterpretq_p8_s64): Likewise.
34171 (vreinterpretq_p8_f32): Likewise.
34172 (vreinterpretq_p8_u8): Likewise.
34173 (vreinterpretq_p8_u16): Likewise.
34174 (vreinterpretq_p8_u32): Likewise.
34175 (vreinterpretq_p8_u64): Likewise.
34176 (vreinterpretq_p8_p16): Likewise.
34177 (vreinterpret_p16_s8): Likewise.
34178 (vreinterpret_p16_s16): Likewise.
34179 (vreinterpret_p16_s32): Likewise.
34180 (vreinterpret_p16_s64): Likewise.
34181 (vreinterpret_p16_f32): Likewise.
34182 (vreinterpret_p16_u8): Likewise.
34183 (vreinterpret_p16_u16): Likewise.
34184 (vreinterpret_p16_u32): Likewise.
34185 (vreinterpret_p16_u64): Likewise.
34186 (vreinterpret_p16_p8): Likewise.
34187 (vreinterpretq_p16_s8): Likewise.
34188 (vreinterpretq_p16_s16): Likewise.
34189 (vreinterpretq_p16_s32): Likewise.
34190 (vreinterpretq_p16_s64): Likewise.
34191 (vreinterpretq_p16_f32): Likewise.
34192 (vreinterpretq_p16_u8): Likewise.
34193 (vreinterpretq_p16_u16): Likewise.
34194 (vreinterpretq_p16_u32): Likewise.
34195 (vreinterpretq_p16_u64): Likewise.
34196 (vreinterpretq_p16_p8): Likewise.
34197 (vreinterpret_f32_s8): Likewise.
34198 (vreinterpret_f32_s16): Likewise.
34199 (vreinterpret_f32_s32): Likewise.
34200 (vreinterpret_f32_s64): Likewise.
34201 (vreinterpret_f32_u8): Likewise.
34202 (vreinterpret_f32_u16): Likewise.
34203 (vreinterpret_f32_u32): Likewise.
34204 (vreinterpret_f32_u64): Likewise.
34205 (vreinterpret_f32_p8): Likewise.
34206 (vreinterpret_f32_p16): Likewise.
34207 (vreinterpretq_f32_s8): Likewise.
34208 (vreinterpretq_f32_s16): Likewise.
34209 (vreinterpretq_f32_s32): Likewise.
34210 (vreinterpretq_f32_s64): Likewise.
34211 (vreinterpretq_f32_u8): Likewise.
34212 (vreinterpretq_f32_u16): Likewise.
34213 (vreinterpretq_f32_u32): Likewise.
34214 (vreinterpretq_f32_u64): Likewise.
34215 (vreinterpretq_f32_p8): Likewise.
34216 (vreinterpretq_f32_p16): Likewise.
34217 (vreinterpret_s64_s8): Likewise.
34218 (vreinterpret_s64_s16): Likewise.
34219 (vreinterpret_s64_s32): Likewise.
34220 (vreinterpret_s64_f32): Likewise.
34221 (vreinterpret_s64_u8): Likewise.
34222 (vreinterpret_s64_u16): Likewise.
34223 (vreinterpret_s64_u32): Likewise.
34224 (vreinterpret_s64_u64): Likewise.
34225 (vreinterpret_s64_p8): Likewise.
34226 (vreinterpret_s64_p16): Likewise.
34227 (vreinterpretq_s64_s8): Likewise.
34228 (vreinterpretq_s64_s16): Likewise.
34229 (vreinterpretq_s64_s32): Likewise.
34230 (vreinterpretq_s64_f32): Likewise.
34231 (vreinterpretq_s64_u8): Likewise.
34232 (vreinterpretq_s64_u16): Likewise.
34233 (vreinterpretq_s64_u32): Likewise.
34234 (vreinterpretq_s64_u64): Likewise.
34235 (vreinterpretq_s64_p8): Likewise.
34236 (vreinterpretq_s64_p16): Likewise.
34237 (vreinterpret_u64_s8): Likewise.
34238 (vreinterpret_u64_s16): Likewise.
34239 (vreinterpret_u64_s32): Likewise.
34240 (vreinterpret_u64_s64): Likewise.
34241 (vreinterpret_u64_f32): Likewise.
34242 (vreinterpret_u64_u8): Likewise.
34243 (vreinterpret_u64_u16): Likewise.
34244 (vreinterpret_u64_u32): Likewise.
34245 (vreinterpret_u64_p8): Likewise.
34246 (vreinterpret_u64_p16): Likewise.
34247 (vreinterpretq_u64_s8): Likewise.
34248 (vreinterpretq_u64_s16): Likewise.
34249 (vreinterpretq_u64_s32): Likewise.
34250 (vreinterpretq_u64_s64): Likewise.
34251 (vreinterpretq_u64_f32): Likewise.
34252 (vreinterpretq_u64_u8): Likewise.
34253 (vreinterpretq_u64_u16): Likewise.
34254 (vreinterpretq_u64_u32): Likewise.
34255 (vreinterpretq_u64_p8): Likewise.
34256 (vreinterpretq_u64_p16): Likewise.
34257 (vreinterpret_s8_s16): Likewise.
34258 (vreinterpret_s8_s32): Likewise.
34259 (vreinterpret_s8_s64): Likewise.
34260 (vreinterpret_s8_f32): Likewise.
34261 (vreinterpret_s8_u8): Likewise.
34262 (vreinterpret_s8_u16): Likewise.
34263 (vreinterpret_s8_u32): Likewise.
34264 (vreinterpret_s8_u64): Likewise.
34265 (vreinterpret_s8_p8): Likewise.
34266 (vreinterpret_s8_p16): Likewise.
34267 (vreinterpretq_s8_s16): Likewise.
34268 (vreinterpretq_s8_s32): Likewise.
34269 (vreinterpretq_s8_s64): Likewise.
34270 (vreinterpretq_s8_f32): Likewise.
34271 (vreinterpretq_s8_u8): Likewise.
34272 (vreinterpretq_s8_u16): Likewise.
34273 (vreinterpretq_s8_u32): Likewise.
34274 (vreinterpretq_s8_u64): Likewise.
34275 (vreinterpretq_s8_p8): Likewise.
34276 (vreinterpretq_s8_p16): Likewise.
34277 (vreinterpret_s16_s8): Likewise.
34278 (vreinterpret_s16_s32): Likewise.
34279 (vreinterpret_s16_s64): Likewise.
34280 (vreinterpret_s16_f32): Likewise.
34281 (vreinterpret_s16_u8): Likewise.
34282 (vreinterpret_s16_u16): Likewise.
34283 (vreinterpret_s16_u32): Likewise.
34284 (vreinterpret_s16_u64): Likewise.
34285 (vreinterpret_s16_p8): Likewise.
34286 (vreinterpret_s16_p16): Likewise.
34287 (vreinterpretq_s16_s8): Likewise.
34288 (vreinterpretq_s16_s32): Likewise.
34289 (vreinterpretq_s16_s64): Likewise.
34290 (vreinterpretq_s16_f32): Likewise.
34291 (vreinterpretq_s16_u8): Likewise.
34292 (vreinterpretq_s16_u16): Likewise.
34293 (vreinterpretq_s16_u32): Likewise.
34294 (vreinterpretq_s16_u64): Likewise.
34295 (vreinterpretq_s16_p8): Likewise.
34296 (vreinterpretq_s16_p16): Likewise.
34297 (vreinterpret_s32_s8): Likewise.
34298 (vreinterpret_s32_s16): Likewise.
34299 (vreinterpret_s32_s64): Likewise.
34300 (vreinterpret_s32_f32): Likewise.
34301 (vreinterpret_s32_u8): Likewise.
34302 (vreinterpret_s32_u16): Likewise.
34303 (vreinterpret_s32_u32): Likewise.
34304 (vreinterpret_s32_u64): Likewise.
34305 (vreinterpret_s32_p8): Likewise.
34306 (vreinterpret_s32_p16): Likewise.
34307 (vreinterpretq_s32_s8): Likewise.
34308 (vreinterpretq_s32_s16): Likewise.
34309 (vreinterpretq_s32_s64): Likewise.
34310 (vreinterpretq_s32_f32): Likewise.
34311 (vreinterpretq_s32_u8): Likewise.
34312 (vreinterpretq_s32_u16): Likewise.
34313 (vreinterpretq_s32_u32): Likewise.
34314 (vreinterpretq_s32_u64): Likewise.
34315 (vreinterpretq_s32_p8): Likewise.
34316 (vreinterpretq_s32_p16): Likewise.
34317 (vreinterpret_u8_s8): Likewise.
34318 (vreinterpret_u8_s16): Likewise.
34319 (vreinterpret_u8_s32): Likewise.
34320 (vreinterpret_u8_s64): Likewise.
34321 (vreinterpret_u8_f32): Likewise.
34322 (vreinterpret_u8_u16): Likewise.
34323 (vreinterpret_u8_u32): Likewise.
34324 (vreinterpret_u8_u64): Likewise.
34325 (vreinterpret_u8_p8): Likewise.
34326 (vreinterpret_u8_p16): Likewise.
34327 (vreinterpretq_u8_s8): Likewise.
34328 (vreinterpretq_u8_s16): Likewise.
34329 (vreinterpretq_u8_s32): Likewise.
34330 (vreinterpretq_u8_s64): Likewise.
34331 (vreinterpretq_u8_f32): Likewise.
34332 (vreinterpretq_u8_u16): Likewise.
34333 (vreinterpretq_u8_u32): Likewise.
34334 (vreinterpretq_u8_u64): Likewise.
34335 (vreinterpretq_u8_p8): Likewise.
34336 (vreinterpretq_u8_p16): Likewise.
34337 (vreinterpret_u16_s8): Likewise.
34338 (vreinterpret_u16_s16): Likewise.
34339 (vreinterpret_u16_s32): Likewise.
34340 (vreinterpret_u16_s64): Likewise.
34341 (vreinterpret_u16_f32): Likewise.
34342 (vreinterpret_u16_u8): Likewise.
34343 (vreinterpret_u16_u32): Likewise.
34344 (vreinterpret_u16_u64): Likewise.
34345 (vreinterpret_u16_p8): Likewise.
34346 (vreinterpret_u16_p16): Likewise.
34347 (vreinterpretq_u16_s8): Likewise.
34348 (vreinterpretq_u16_s16): Likewise.
34349 (vreinterpretq_u16_s32): Likewise.
34350 (vreinterpretq_u16_s64): Likewise.
34351 (vreinterpretq_u16_f32): Likewise.
34352 (vreinterpretq_u16_u8): Likewise.
34353 (vreinterpretq_u16_u32): Likewise.
34354 (vreinterpretq_u16_u64): Likewise.
34355 (vreinterpretq_u16_p8): Likewise.
34356 (vreinterpretq_u16_p16): Likewise.
34357 (vreinterpret_u32_s8): Likewise.
34358 (vreinterpret_u32_s16): Likewise.
34359 (vreinterpret_u32_s32): Likewise.
34360 (vreinterpret_u32_s64): Likewise.
34361 (vreinterpret_u32_f32): Likewise.
34362 (vreinterpret_u32_u8): Likewise.
34363 (vreinterpret_u32_u16): Likewise.
34364 (vreinterpret_u32_u64): Likewise.
34365 (vreinterpret_u32_p8): Likewise.
34366 (vreinterpret_u32_p16): Likewise.
34367 (vreinterpretq_u32_s8): Likewise.
34368 (vreinterpretq_u32_s16): Likewise.
34369 (vreinterpretq_u32_s32): Likewise.
34370 (vreinterpretq_u32_s64): Likewise.
34371 (vreinterpretq_u32_f32): Likewise.
34372 (vreinterpretq_u32_u8): Likewise.
34373 (vreinterpretq_u32_u16): Likewise.
34374 (vreinterpretq_u32_u64): Likewise.
34375 (vreinterpretq_u32_p8): Likewise.
34376 (vreinterpretq_u32_p16): Likewise.
34377
34378 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
34379
34380 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
34381 Pattern extended.
34382 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
34383 (sqabs): Likewise.
34384 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
34385 (vqnegd_s64): Likewise.
34386 (vqabs_s64): Likewise.
34387 (vqabsd_s64): Likewise.
34388
34389 2014-04-22 Richard Henderson <rth@redhat.com>
34390
34391 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
34392 computation to the top of the loop.
34393
34394 2014-04-22 Renlin <renlin.li@arm.com>
34395 Jiong Wang <jiong.wang@arm.com>
34396
34397 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
34398 * config/aarch64/aarch64.c (aarch64_layout_frame)
34399 (aarch64_initial_elimination_offset): Likewise.
34400
34401 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
34402
34403 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
34404 Fix indentation.
34405
34406 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
34407
34408 * machmode.h (bitwise_mode_for_mode): Declare.
34409 * stor-layout.h (bitwise_type_for_mode): Likewise.
34410 * stor-layout.c (bitwise_mode_for_mode): New function.
34411 (bitwise_type_for_mode): Likewise.
34412 * builtins.c (fold_builtin_memory_op): Use it instead of
34413 int_mode_for_mode and build_nonstandard_integer_type.
34414
34415 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34416
34417 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
34418 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
34419 (*-*-solaris2*): Simplify.
34420 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
34421 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
34422 *-*-solaris2.9* handling.
34423
34424 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
34425 as bug.
34426 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
34427 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
34428 handling, simplify.
34429 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
34430 * configure: Regenerate.
34431
34432 * config/i386/sol2-9.h: Remove.
34433
34434 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
34435 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
34436 Remove Solaris 9 references.
34437
34438 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
34439
34440 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
34441 (floatuns<GPI:mode><GPF:mode>2): Remove.
34442 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
34443 and floatuns conversions.
34444 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
34445 and floatuns conversions.
34446 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
34447 (w1,w2): New mode attributes for inequal width conversions.
34448
34449 2014-04-22 Renlin Li <Renlin.Li@arm.com>
34450
34451 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
34452 the output asm format.
34453
34454 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
34455
34456 * config/aarch64/aarch64-simd.md
34457 (aarch64_cm<optab>di): Always split.
34458 (*aarch64_cm<optab>di): New.
34459 (aarch64_cmtstdi): Always split.
34460 (*aarch64_cmtstdi): New.
34461
34462 2014-04-22 Jakub Jelinek <jakub@redhat.com>
34463
34464 PR tree-optimization/60823
34465 * omp-low.c (ipa_simd_modify_function_body): Go through
34466 all SSA_NAMEs and for those refering to vector arguments
34467 which are going to be replaced adjust SSA_NAME_VAR and,
34468 if it is a default definition, change it into a non-default
34469 definition assigned at the beginning of function from new_decl.
34470 (ipa_simd_modify_stmt_ops): Rewritten.
34471 * tree-dfa.c (set_ssa_default_def): When removing default def,
34472 check for NULL loc instead of NULL *loc.
34473
34474 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34475
34476 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
34477 restrictions on core registers for DImode values in Thumb2.
34478
34479 2014-04-22 Ian Bolton <ian.bolton@arm.com>
34480
34481 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
34482 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
34483
34484 2014-04-22 Ian Bolton <ian.bolton@arm.com>
34485
34486 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
34487 (*iordi_notzesidi_di): Likewise.
34488 (*iordi_notsesidi_di): Likewise.
34489
34490 2014-04-22 Ian Bolton <ian.bolton@arm.com>
34491
34492 * config/arm/arm-protos.h (tune_params): New struct members.
34493 * config/arm/arm.c: Initialise tune_params per processor.
34494 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
34495 for speed, based on new tune_params.
34496
34497 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
34498
34499 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
34500 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
34501 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
34502 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
34503 * config/aarch64/arm_neon.h (vrnd_f64): Added.
34504 (vrnda_f64): Likewise.
34505 (vrndi_f64): Likewise.
34506 (vrndm_f64): Likewise.
34507 (vrndn_f64): Likewise.
34508 (vrndp_f64): Likewise.
34509 (vrndx_f64): Likewise.
34510
34511 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
34512
34513 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
34514 GET_MODE_SIZE argument is enum machine_mode.
34515
34516 2014-04-22 Jakub Jelinek <jakub@redhat.com>
34517
34518 PR target/60910
34519 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
34520 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
34521
34522 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
34523
34524 PR middle-end/60281
34525 * asan.c (asan_emit_stack_protection): Force the base to align to
34526 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
34527 appropriate bits if STRICT_ALIGNMENT.
34528 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
34529 when asan is on.
34530 (expand_used_vars): Leave a space in the stack frame for alignment
34531 if STRICT_ALIGNMENT.
34532
34533 2014-04-21 David Malcolm <dmalcolm@redhat.com>
34534
34535 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
34536 than a gimple.
34537 (gimple_store_p): Likewise.
34538 (gimple_assign_load_p): Likewise.
34539 (gimple_assign_cast_p): Likewise.
34540 (gimple_clobber_p): Likewise.
34541
34542 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
34543 rather than a gimple.
34544 (gimple_assign_cast_p): Likewise.
34545
34546 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
34547
34548 PR target/60735
34549 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
34550 If mode is DDmode and TARGET_E500_DOUBLE allow move.
34551
34552 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
34553 more debug information for E500 if -mdebug=reg.
34554
34555 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
34556
34557 PR target/60909
34558 * config/i386/i386.c (ix86_expand_builtin)
34559 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
34560 register for target RTX.
34561 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
34562
34563 2014-04-18 Cong Hou <congh@google.com>
34564
34565 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
34566 the widen-mult pattern by handling two operands with different sizes,
34567 and operands whose size is smaller than half of the result type.
34568
34569 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
34570
34571 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
34572 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
34573 (do_estimate_edge_time): Compute it.
34574 * ipa-inline.c (want_inline_small_function_p): Bypass
34575 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
34576
34577 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
34578
34579 * ipa-inline.c (spec_rem): New static variable.
34580 (dump_overall_stats): New function.
34581 (dump_inline_stats): New function.
34582
34583 2014-04-18 Richard Henderson <rth@redhat.com>
34584
34585 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
34586 to GET_MODE_SIZE, not a reg_class_t.
34587
34588 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34589
34590 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
34591 (vsx_xxmrglw_<mode>): Likewise.
34592
34593 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
34594
34595 PR target/60876
34596 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
34597 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
34598 (rs6000_init_hard_regno_mode_ok): Likewise.
34599
34600 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
34601
34602 * ipa-inline.c (inline_small_functions): Account only non-cold
34603 functions.
34604 * doc/invoke.texi (inline-unit-growth): Update documentation.
34605
34606 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
34607
34608 * config/rs6000/rs6000.md (addti3, subti3): New.
34609
34610 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
34611
34612 PR target/60863
34613 * config/i386/i386.c (ix86_expand_clear): Remove outdated
34614 comment. Check optimize_insn_for_size_p instead of
34615 optimize_insn_for_speed_p.
34616
34617 2014-04-17 Martin Jambor <mjambor@suse.cz>
34618
34619 * gimple-iterator.c (gsi_start_edge): New function.
34620 * gimple-iterator.h (gsi_start_edge): Declare.
34621 * tree-sra.c (single_non_eh_succ): New function.
34622 (disqualify_ops_if_throwing_stmt): Renamed to
34623 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
34624 having one non-EH successor BB.
34625 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
34626 generate loads into replacements.
34627 (sra_modify_assign): Likewise and and also use the simple path for
34628 such statements.
34629 (sra_modify_function_body): Commit statements on edges.
34630
34631 2014-04-17 Richard Biener <rguenther@suse.de>
34632
34633 PR middle-end/60849
34634 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
34635 comparison results and add clarifying comment.
34636
34637 2014-04-17 Jakub Jelinek <jakub@redhat.com>
34638
34639 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
34640 (blank_mode): Initialize it.
34641 (emit_mode_size_inline, emit_mode_nunits_inline,
34642 emit_mode_inner_inline): New functions.
34643 (emit_insn_modes_h): Call them and surround their output with
34644 #if GCC_VERSION >= 4001 ... #endif.
34645 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
34646 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
34647 mode_* arrays if the argument is __builtin_constant_p.
34648 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
34649 is enum machine_mode.
34650
34651 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
34652
34653 * passes.c (opt_pass::execute): Adjust.
34654 (pass_manager::execute_pass_mode_switching): Likewise.
34655 (early_local_passes::execute): Likewise.
34656 (execute_one_pass): Pass cfun to the pass's execute method.
34657 * tree-pass.h (opt_pass::execute): Add function * argument.
34658 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
34659 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
34660 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
34661 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
34662 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
34663 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
34664 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
34665 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
34666 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
34667 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
34668 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
34669 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
34670 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
34671 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
34672 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
34673 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
34674 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
34675 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
34676 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
34677 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
34678 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
34679 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
34680 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
34681 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
34682 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
34683 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
34684 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
34685 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
34686 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
34687 Adjust.
34688
34689 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
34690
34691 * passes.c (opt_pass::gate): Take function * argument.
34692 (gate_all_early_local_passes): Merge into
34693 (early_local_passes::gate): this.
34694 (gate_all_early_optimizations): Merge into
34695 (all_early_optimizations::gate): this.
34696 (gate_all_optimizations): Mege into
34697 (all_optimizations::gate): this.
34698 (gate_all_optimizations_g): Merge into
34699 (all_optimizations_g::gate): this.
34700 (gate_rest_of_compilation): Mege into
34701 (rest_of_compilation::gate): this.
34702 (gate_postreload): Merge into
34703 (postreload::gate): this.
34704 (dump_one_pass): Pass cfun to the pass's gate method.
34705 (execute_ipa_summary_passes): Likewise.
34706 (execute_one_pass): Likewise.
34707 (ipa_write_summaries_2): Likewise.
34708 (ipa_write_optimization_summaries_1): Likewise.
34709 (ipa_read_summaries_1): Likewise.
34710 (ipa_read_optimization_summaries_1): Likewise.
34711 (execute_ipa_stmt_fixups): Likewise.
34712 * tree-pass.h (opt_pass::gate): Add function * argument.
34713 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
34714 combine-stack-adj.c, combine.c, compare-elim.c,
34715 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
34716 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
34717 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
34718 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
34719 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
34720 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
34721 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
34722 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
34723 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
34724 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
34725 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
34726 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
34727 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
34728 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
34729 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
34730 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
34731 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
34732 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
34733 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
34734 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
34735 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
34736 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
34737 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
34738 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
34739 var-tracking.c, vtable-verify.c, web.c: Adjust.
34740
34741 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
34742
34743 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
34744 * configure: Regenerate.
34745
34746 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
34747
34748 * passes.c (dump_one_pass): don't check pass->has_gate.
34749 (execute_ipa_summary_passes): Likewise.
34750 (execute_one_pass): Likewise.
34751 (ipa_write_summaries_2): Likewise.
34752 (ipa_write_optimization_summaries_1): Likewise.
34753 (ipa_read_optimization_summaries_1): Likewise.
34754 (execute_ipa_stmt_fixups): Likewise.
34755 * tree-pass.h (pass_data::has_gate): Remove.
34756 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
34757 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
34758 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
34759 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
34760 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
34761 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
34762 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
34763 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
34764 gimple-low.c, gimple-ssa-isolate-paths.c,
34765 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
34766 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
34767 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
34768 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
34769 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
34770 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
34771 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
34772 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
34773 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
34774 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
34775 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
34776 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
34777 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
34778 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
34779 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
34780 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
34781 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
34782 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
34783 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
34784 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
34785 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
34786 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
34787 Adjust.
34788
34789 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
34790
34791 * pass_manager.h (pass_manager::register_dump_files_1): Remove
34792 declaration.
34793 * passes.c (pass_manager::register_dump_files_1): Merge into
34794 (pass_manager::register_dump_files): this, and remove its handling of
34795 properties since the pass always has the properties anyway.
34796 (pass_manager::pass_manager): Adjust.
34797
34798 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
34799
34800 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
34801 * passes.c (pass_manager::register_dump_files_1): Remove dead code
34802 dealing with properties.
34803 (pass_manager::register_dump_files): Adjust.
34804
34805 2014-03-20 Mark Wielaard <mjw@redhat.com>
34806
34807 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
34808 then represent the bound as normal constant value.
34809
34810 2014-04-17 Jakub Jelinek <jakub@redhat.com>
34811
34812 PR target/60847
34813 Forward port from 4.8 branch
34814 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
34815
34816 * config/i386/bmiintrin.h (_blsi_u32): New.
34817 (_blsi_u64): Ditto.
34818 (_blsr_u32): Ditto.
34819 (_blsr_u64): Ditto.
34820 (_blsmsk_u32): Ditto.
34821 (_blsmsk_u64): Ditto.
34822 (_tzcnt_u32): Ditto.
34823 (_tzcnt_u64): Ditto.
34824
34825 2014-04-17 Kito Cheng <kito@0xlab.org>
34826
34827 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
34828
34829 2014-04-17 Richard Biener <rguenther@suse.de>
34830
34831 PR middle-end/60849
34832 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
34833 boolean results for comparisons.
34834
34835 2014-04-17 Richard Biener <rguenther@suse.de>
34836
34837 PR tree-optimization/60836
34838 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
34839 initial PHI args to be gimple values.
34840
34841 2014-04-17 Richard Biener <rguenther@suse.de>
34842
34843 PR tree-optimization/60841
34844 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
34845 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
34846 of stmts to SLP build.
34847 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
34848 (vect_analyze_slp): Likewise.
34849 (vect_analyze_slp_instance): Likewise.
34850 (vect_build_slp_tree): Limit overall SLP tree growth.
34851 * tree-vectorizer.h (vect_analyze_data_refs,
34852 vect_analyze_slp): Adjust prototypes.
34853
34854 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
34855
34856 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
34857 Silvermont.
34858
34859 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
34860
34861 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
34862 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
34863 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
34864 for TARGET_SLOW_PSHUFB
34865
34866 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
34867
34868 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
34869 * config/i386/i386.c (intel_cost): Ditto.
34870
34871 2014-04-17 Joey Ye <joey.ye@arm.com>
34872
34873 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
34874
34875 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
34876
34877 * opts.c (common_handle_option): Disable -fipa-reference coorectly
34878 with -fuse-profile.
34879
34880 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
34881
34882 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
34883 (type_all_derivations_known_p): New predicate.
34884 (type_all_ctors_visible_p): New predicate.
34885 (type_possibly_instantiated_p): New predicate.
34886 (get_odr_type): Compute all_derivations_known.
34887 (dump_odr_type): Dump the flag.
34888 (maybe_record_type): Cleanup.
34889 (record_target_from_binfo): Add bases_to_consider array;
34890 record bases for types w/o instances and skip CXX destructor.
34891 (possible_polymorphic_call_targets_1): Add bases_to_consider
34892 and consider_construction parameters; check if type may have instance.
34893 (get_polymorphic_call_info): Set maybe_in_construction to true
34894 when we know nothing.
34895 (record_targets_from_bases): Skip CXX destructors; they are
34896 never called for types in construction.
34897 (possible_polymorphic_call_targets): Do not record target when
34898 type may not have instance.
34899
34900 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
34901
34902 PR ipa/60854
34903 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
34904 external aliases alive, too.
34905
34906 2014-04-16 Andrew Pinski <apinski@cavium.com>
34907
34908 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
34909 definition.
34910
34911 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
34912
34913 * final.c (compute_alignments): Do not apply loop alignment to a block
34914 falling through to the exit.
34915
34916 2014-04-16 Catherine Moore <clm@codesourcery.com>
34917
34918 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
34919 Adjust constraints for microMIPS store patterns.
34920
34921 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
34922
34923 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
34924
34925 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
34926
34927 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
34928 (append_use): Run at -O0.
34929 (append_vdef): Likewise.
34930 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
34931 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
34932
34933 2014-04-16 Jakub Jelinek <jakub@redhat.com>
34934
34935 PR tree-optimization/60844
34936 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
34937 (propagate_op_to_single_use, remove_visited_stmt_chain,
34938 linearize_expr, repropagate_negates, reassociate_bb): Use it
34939 instead of gsi_remove.
34940
34941 2014-04-16 Martin Jambor <mjambor@suse.cz>
34942
34943 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
34944 ipa_transforms_to_apply.
34945 (cgraph_function_versioning): Assert that old_node has empty
34946 ipa_transforms_to_apply.
34947 * trans-mem.c (ipa_tm_create_version): Likewise.
34948 * tree-inline.c (tree_function_versioning): Do not duplicate
34949 ipa_transforms_to_apply.
34950
34951 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34952
34953 PR target/60817
34954 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
34955 x86_64-*-* cases.
34956 Pass necessary as flags on 64-bit Solaris/x86.
34957 Use lowercase relocs for x86_64-*-*.
34958 * configure: Regenerate.
34959
34960 2014-04-15 Jan Hubicka <jh@suse.cz>
34961
34962 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
34963 (maybe_record_node, likely_target_p): Use it.
34964
34965 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34966
34967 PR target/60839
34968 Revert following patch
34969
34970 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
34971
34972 PR target/60735
34973 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
34974 software floating point or no floating point registers, do not
34975 allow any type in the FPRs. Eliminate a test for SPE SIMD types
34976 in GPRs that occurs after we tested for GPRs that would never be
34977 true.
34978
34979 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
34980 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
34981 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
34982 specifically allow DDmode, since that does not use the SPE SIMD
34983 instructions.
34984
34985 2014-03-21 Mark Wielaard <mjw@redhat.com>
34986
34987 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
34988 as unsigned or int depending on type and value used.
34989
34990 2014-04-15 Richard Biener <rguenther@suse.de>
34991
34992 PR rtl-optimization/56965
34993 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
34994 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
34995 ... here.
34996 * alias.c (true_dependence_1): Do not call
34997 nonoverlapping_component_refs_p.
34998 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
34999 nonoverlapping_component_refs_p.
35000 (indirect_refs_may_alias_p): Likewise.
35001
35002 2014-04-15 Teresa Johnson <tejohnson@google.com>
35003
35004 * cfg.c (dump_bb_info): Fix flags check.
35005 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
35006
35007 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35008
35009 PR rtl-optimization/60663
35010 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
35011 avoid 0 cost.
35012
35013 2014-04-15 Richard Biener <rguenther@suse.de>
35014
35015 * lto-streamer.h (LTO_major_version): Bump to 4.
35016
35017 2014-04-15 Richard Biener <rguenther@suse.de>
35018
35019 * common.opt (lto_partition_model): New enum.
35020 (flto-partition=): Merge separate options with a single with argument,
35021 add -flto-partition=one support.
35022 * flag-types.h (enum lto_partition_model): Declare.
35023 * opts.c (finish_options): Remove duplicate -flto-partition=
35024 option check.
35025 * lto-wrapper.c (run_gcc): Adjust.
35026
35027 2014-04-15 Richard Biener <rguenther@suse.de>
35028
35029 * alias.c (ncr_compar): New function.
35030 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
35031
35032 2014-04-15 Richard Biener <rguenther@suse.de>
35033
35034 * alias.c (record_component_aliases): Do not walk BINFOs.
35035
35036 2014-04-15 Richard Biener <rguenther@suse.de>
35037
35038 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35039 Add struct function argument and adjust.
35040 (find_func_aliases_for_call): Likewise.
35041 (find_func_aliases): Likewise.
35042 (find_func_clobbers): Likewise.
35043 (intra_create_variable_infos): Likewise.
35044 (compute_points_to_sets): Likewise.
35045 (ipa_pta_execute): Adjust. Do not push/pop cfun.
35046
35047 2014-04-15 Richard Biener <rguenther@suse.de>
35048
35049 * tree.c (iterative_hash_expr): Use enum tree_code_class
35050 to store TREE_CODE_CLASS.
35051 (tree_block): Likewise.
35052 (tree_set_block): Likewise.
35053 * tree.h (fold_build_pointer_plus_loc): Use
35054 convert_to_ptrofftype_loc.
35055
35056 2014-04-15 Jakub Jelinek <jakub@redhat.com>
35057
35058 PR plugins/59335
35059 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
35060 added in 4.9.
35061
35062 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
35063
35064 * cfgloop.h (struct loop): Move force_vectorize down.
35065 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
35066 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
35067 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
35068 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
35069 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
35070 * tree-core.h (enum annot_expr_kind): Add new kind values.
35071 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
35072 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
35073 kinds.
35074 * tree.def (ANNOTATE_EXPR): Tweak comment.
35075
35076 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
35077
35078 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
35079 cxa_pure_virtual).
35080
35081 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
35082
35083 * tree.h (TYPE_IDENTIFIER): Declare.
35084 * tree.c (subrange_type_for_debug_p): Use it.
35085 * godump.c (go_format_type): Likewise.
35086 * dwarf2out.c (is_cxx_auto, modified_type_die,
35087 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
35088 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
35089
35090 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
35091
35092 PR lto/60820
35093 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
35094
35095 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
35096
35097 * config/i386/i386.c (examine_argument): Return bool. Return true if
35098 parameter should be passed in memory.
35099 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
35100 (construct_container): Update calls to examine_argument.
35101 (function_arg_advance_64): Ditto.
35102 (return_in_memory_32): Merge with ix86_return_in_memory.
35103 (return_in_memory_64): Ditto.
35104 (return_in_memory_ms_64): Ditto.
35105
35106 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
35107
35108 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
35109 * coverage.c (coverage_compute_profile_id): Handle externally visible
35110 symbols.
35111
35112 2014-04-14 Martin Jambor <mjambor@suse.cz>
35113
35114 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
35115 DECL_DISREGARD_INLINE_LIMITS functions.
35116
35117 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
35118
35119 PR target/60827
35120 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
35121
35122 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
35123
35124 PR target/60827
35125 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
35126 optimize_insn_for_speed_p instead of
35127 optimize_function_for_speed_p.
35128
35129 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
35130
35131 * doc/invoke.texi (free): Document AArch64.
35132
35133 2014-04-14 Richard Biener <rguenther@suse.de>
35134
35135 PR tree-optimization/60042
35136 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
35137 (insert_into_preds_of_block): Do not prevent PHI insertion
35138 for REFERENCE exprs here ...
35139 (eliminate_dom_walker::before_dom_children): ... but prevent
35140 their use here under similar conditions when applied to the
35141 IL after PRE optimizations.
35142
35143 2014-04-14 Richard Biener <rguenther@suse.de>
35144
35145 * passes.def: Move early points-to after early SRA.
35146
35147 2014-04-14 Richard Biener <rguenther@suse.de>
35148
35149 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
35150 check for which sign-changes we allow when forwarding
35151 a converted value into a switch.
35152
35153 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
35154
35155 * stor-layout.c (place_field): Finalize non-constant offset for the
35156 field, if any.
35157
35158 2014-04-14 Richard Biener <rguenther@suse.de>
35159
35160 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
35161 as argument.
35162 (expand_switch_using_bit_tests_p): Likewise.
35163 (process_switch): Compute and pass on speed_p based on the
35164 switch stmt.
35165 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
35166 optimize_bb_for_speed_p.
35167
35168 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
35169
35170 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
35171 * function.h (struct function): Rename has_force_vect_loops into
35172 has_force_vectorize_loops.
35173 * lto-streamer-in.c (input_cfg): Adjust for renaming.
35174 (input_struct_function_base): Likewise.
35175 * lto-streamer-out.c (output_cfg): Likewise.
35176 (output_struct_function_base): Likewise.
35177 * omp-low.c (expand_omp_simd): Likewise.
35178 * tree-cfg.c (move_sese_region_to_fn): Likewise.
35179 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
35180 (version_loop_for_if_conversion): Likewise.
35181 (tree_if_conversion): Likewise.
35182 (main_tree_if_conversion): Likewise.
35183 (gate_tree_if_conversion): Likewise.
35184 * tree-inline.c (copy_loops): Likewise.
35185 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
35186 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
35187 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
35188 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
35189 * tree-vectorizer.c (vectorize_loops): Likewise.
35190 * tree-vectorizer.h (unlimited_cost_model): Likewise.
35191
35192 2014-04-14 Richard Biener <rguenther@suse.de>
35193
35194 PR lto/60720
35195 * lto-streamer-out.c (wrap_refs): New function.
35196 (lto_output): Wrap symbol references in global initializes in
35197 type-preserving MEM_REFs.
35198
35199 2014-04-14 Christian Bruel <christian.bruel@st.com>
35200
35201 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
35202
35203 2014-04-14 Christian Bruel <christian.bruel@st.com>
35204
35205 * config/sh/sh.md (setmemqi): New expand pattern.
35206 * config/sh/sh.h (CLEAR_RATIO): Define.
35207 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
35208 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
35209
35210 2014-04-14 Richard Biener <rguenther@suse.de>
35211
35212 PR middle-end/55022
35213 * fold-const.c (negate_expr_p): Don't negate directional rounding
35214 division.
35215 (fold_negate_expr): Likewise.
35216
35217 2014-04-14 Richard Biener <rguenther@suse.de>
35218
35219 PR tree-optimization/59817
35220 PR tree-optimization/60453
35221 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
35222 recursion to catch all CHRECs in the scalar evolution and restrict
35223 the predicate for the remains appropriately.
35224
35225 2014-04-12 Catherine Moore <clm@codesourcery.com>
35226
35227 * config/mips/constraints.md: Add new register constraint "kb".
35228 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
35229 (*movhi_internal): Likewise.
35230 (*movqi_internal): Likewise.
35231 * config/mips/mips.h (M16_STORE_REGS): New register class.
35232 (REG_CLASS_NAMES): Add M16_STORE_REGS.
35233 (REG_CLASS_CONTENTS): Likewise.
35234 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
35235
35236 2014-04-11 Tobias Burnus <burnus@net-b.de>
35237
35238 PR c/60194
35239 * doc/invoke.texi (-Wformat-signedness): Document it.
35240 (Wformat=2): Mention that this enables -Wformat-signedness.
35241
35242 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
35243
35244 * common/config/epiphany/epiphany-common.c
35245 (epiphany_option_optimization_table): Enable section anchors by
35246 default at -O1 or higher.
35247 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
35248 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
35249 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
35250 carries no extra cost.
35251 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
35252 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
35253 * config/epiphany/predicates.md (memclob_operand): New predicate.
35254 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
35255 Use memclob_operand predicate and X constraint for operand 3.
35256
35257 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
35258
35259 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
35260 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
35261 its operands.
35262
35263 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
35264
35265 PR rtl-optimization/60651
35266 * mode-switching.c (optimize_mode_switching): Make sure to emit
35267 sets of a lower numbered entity before sets of a higher numbered
35268 entity to a mode of the same or lower priority.
35269 When creating a seginfo for a basic block that starts with a code
35270 label, move the insertion point past the code label.
35271 (new_seginfo): Document and enforce requirement that
35272 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
35273 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
35274 * doc/tm.texi: Regenerate.
35275
35276 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
35277
35278 PR target/60811
35279 * config/arc/arc.c (arc_save_restore): Fix assert typo.
35280
35281 2013-04-11 Jakub Jelinek <jakub@redhat.com>
35282
35283 * BASE-VER: Set to 4.10.0.
35284
35285 2014-04-11 Tobias Burnus <burnus@net-b.de>
35286
35287 PR other/59055
35288 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
35289 * doc/gcc.texi (Service): Update description in the @menu
35290 * doc/invoke.texi (Option Summary): Remove misplaced and
35291 duplicated @menu.
35292
35293 2014-04-11 Steve Ellcey <sellcey@mips.com>
35294 Jakub Jelinek <jakub@redhat.com>
35295
35296 PR middle-end/60556
35297 * expr.c (convert_move): Use emit_store_flag_force instead of
35298 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
35299 argument to it.
35300
35301 2014-04-11 Richard Biener <rguenther@suse.de>
35302
35303 PR middle-end/60797
35304 * varasm.c (assemble_alias): Avoid endless error reporting
35305 recursion by setting TREE_ASM_WRITTEN.
35306
35307 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35308
35309 * config/s390/s390.md: Add a splitter for NOT rtx.
35310
35311 2014-04-11 Jakub Jelinek <jakub@redhat.com>
35312
35313 PR rtl-optimization/60663
35314 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
35315
35316 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
35317 Jakub Jelinek <jakub@redhat.com>
35318
35319 PR lto/60567
35320 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
35321 flag from decl_node to node.
35322
35323 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35324
35325 PR debug/60655
35326 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
35327 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
35328 ameliorating the cases where it can be.
35329
35330 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
35331
35332 Revert
35333 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
35334
35335 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
35336 (loadsync_<mode>): Change mode.
35337 (load_quadpti, store_quadpti): New.
35338 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
35339 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
35340 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
35341
35342 2014-04-09 Cong Hou <congh@google.com>
35343
35344 PR testsuite/60773
35345 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
35346 documentation.
35347
35348 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35349
35350 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
35351 instead of vnor to exploit possible fusion opportunity in the
35352 future.
35353 (altivec_expand_vec_perm_const_le): Likewise.
35354
35355 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
35356
35357 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
35358 (loadsync_<mode>): Change mode.
35359 (load_quadpti, store_quadpti): New.
35360 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
35361 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
35362
35363 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
35364
35365 PR target/60763
35366 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
35367 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
35368 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
35369
35370 2014-04-08 Richard Biener <rguenther@suse.de>
35371
35372 PR middle-end/60706
35373 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
35374 a 64bit widest int print double-int similar to on HWI64 hosts.
35375
35376 2014-04-08 Richard Biener <rguenther@suse.de>
35377
35378 PR tree-optimization/60785
35379 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
35380 default defs properly.
35381
35382 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
35383
35384 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
35385 (Weffc++): Likewise.
35386
35387 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
35388
35389 * ipa-devirt.c (maybe_record_node): When node is not recorded,
35390 set completep to false rather than true.
35391
35392 2014-04-07 Douglas B Rupp <rupp@adacore.com>
35393
35394 PR target/60504
35395 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
35396 ARM_TARGET2_DWARF_FORMAT.
35397
35398 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
35399
35400 PR target/60609
35401 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
35402 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
35403 ADDR_DIFF_VEC.
35404
35405 2014-04-07 Richard Biener <rguenther@suse.de>
35406
35407 PR tree-optimization/60766
35408 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
35409 (may_eliminate_iv): Convert cand_value_at result to desired type.
35410
35411 2014-04-07 Jason Merrill <jason@redhat.com>
35412
35413 PR c++/60731
35414 * common.opt (-fno-gnu-unique): Add.
35415 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
35416
35417 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35418
35419 * haifa-sched.c: Fix outdated function reference and minor
35420 grammar errors in introductory comment.
35421
35422 2014-04-07 Richard Biener <rguenther@suse.de>
35423
35424 PR middle-end/60750
35425 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
35426 for noreturn calls.
35427 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
35428
35429 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
35430
35431 PR debug/55794
35432 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
35433 size accounting for thunks.
35434 (pa_asm_output_mi_thunk): Use final_start_function() and
35435 final_end_function() to output function start and end directives.
35436
35437 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
35438
35439 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
35440 device specific ISA/ feature information. Remove short_sp and
35441 errata_skip ds. Add avr_device_specific_features enum to have device
35442 specific info.
35443 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
35444 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
35445 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
35446 updated device specific info.
35447 * config/avr/avr-mcus.def: Merge device specific details to
35448 dev_attribute field.
35449 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
35450 errata_skip.
35451 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
35452 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
35453 assembler if RMW isa supported by current device.
35454 * config/avr/genmultilib.awk: Update as device info structure changed.
35455 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
35456
35457 2014-04-04 Cong Hou <congh@google.com>
35458
35459 PR tree-optimization/60656
35460 * tree-vect-stmts.c (supportable_widening_operation):
35461 Fix a bug that elements in a vector with vect_used_by_reduction
35462 property are incorrectly reordered when the operation on it is not
35463 consistant with the one in reduction operation.
35464
35465 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
35466
35467 PR rtl-optimization/60155
35468 * gcse.c (record_set_data): New function.
35469 (single_set_gcse): New function.
35470 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
35471 (hoist_code): Likewise.
35472 (get_pressure_class_and_nregs): Likewise.
35473
35474 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
35475
35476 * explow.c (probe_stack_range): Emit a final optimization blockage.
35477
35478 2014-04-04 Anthony Green <green@moxielogic.com>
35479
35480 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
35481 typos.
35482
35483 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
35484
35485 PR ipa/59626
35486 * lto-cgraph.c (input_overwrite_node): Check that partitioning
35487 flags are set only during streaming.
35488 * ipa.c (process_references, walk_polymorphic_call_targets,
35489 symtab_remove_unreachable_nodes): Drop bodies of always inline
35490 after early inlining.
35491 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
35492
35493 2014-04-04 Jakub Jelinek <jakub@redhat.com>
35494 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35495
35496 PR debug/60655
35497 * dwarf2out.c (const_ok_for_output_1): Reject expressions
35498 containing a NOT.
35499
35500 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35501
35502 PR bootstrap/60743
35503 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
35504 duration.
35505 (cortex_a53_fdivd): Likewise.
35506
35507 2014-04-04 Martin Jambor <mjambor@suse.cz>
35508
35509 PR ipa/60640
35510 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
35511 Adjust all callers.
35512 * cgraph.c (clone_of_p): Also return true if thunks match.
35513 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
35514 cgraph_function_or_thunk_node and an obsolete comment.
35515 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
35516 file.
35517 (build_function_decl_skip_args): Likewise.
35518 (set_new_clone_decl_and_node_flags): New function.
35519 (duplicate_thunk_for_node): Likewise.
35520 (redirect_edge_duplicating_thunks): Likewise.
35521 (cgraph_clone_node): New parameter args_to_skip, pass it to
35522 redirect_edge_duplicating_thunks which is called instead of
35523 cgraph_redirect_edge_callee.
35524 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
35525 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
35526
35527 2014-04-04 Jeff Law <law@redhat.com>
35528
35529 PR target/60657
35530 * config/arm/predicates.md (const_int_I_operand): New predicate.
35531 (const_int_M_operand): Similarly.
35532 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
35533 const_int_operand.
35534 (insv_t2, extv_reg, extzv_t2): Likewise.
35535 (load_multiple_with_writeback): Similarly for const_int_I_operand.
35536 (pop_multiple_with_writeback_and_return): Likewise.
35537 (vfp_pop_multiple_with_writeback): Likewise
35538
35539 2014-04-04 Richard Biener <rguenther@suse.de>
35540
35541 PR ipa/60746
35542 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
35543 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
35544 non-GIMPLE_LABELs.
35545 * gimplify.h (gimple_add_tmp_var_fn): Declare.
35546 * gimplify.c (gimple_add_tmp_var_fn): New function.
35547 * gimple-expr.h (create_tmp_reg_fn): Declare.
35548 * gimple-expr.c (create_tmp_reg_fn): New function.
35549 * gimple-low.c (record_vars_into): Don't change cfun.
35550 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
35551 code generation without cfun.
35552
35553 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
35554
35555 PR bootstrap/60719
35556 * Makefile.in (install-driver): Fix shell scripting.
35557
35558 2014-04-03 Cong Hou <congh@google.com>
35559
35560 PR tree-optimization/60505
35561 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
35562 threshold of number of iterations below which no vectorization
35563 will be done.
35564 * tree-vect-loop.c (new_loop_vec_info):
35565 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
35566 * tree-vect-loop.c (vect_analyze_loop_operations):
35567 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
35568 * tree-vect-loop.c (vect_transform_loop):
35569 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
35570 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
35571 of iterations of the loop and see if we should build the epilogue.
35572
35573 2014-04-03 Richard Biener <rguenther@suse.de>
35574
35575 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
35576 (streamer_tree_cache_create): Adjust.
35577 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
35578 to allow optional nodes array.
35579 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
35580 (streamer_tree_cache_append): Likewise.
35581 (streamer_tree_cache_create): Create nodes array optionally
35582 as specified by parameter.
35583 * lto-streamer-out.c (create_output_block): Avoid maintaining
35584 the node array in the writer cache.
35585 (DFS_write_tree): Remove assertion.
35586 (produce_asm_for_decls): Free the out decl state hash table early.
35587 * lto-streamer-in.c (lto_data_in_create): Adjust for
35588 streamer_tree_cache_create prototype change.
35589
35590 2014-04-03 Richard Biener <rguenther@suse.de>
35591
35592 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
35593 set TREE_CHAIN to NULL_TREE.
35594
35595 2014-04-03 Richard Biener <rguenther@suse.de>
35596
35597 PR tree-optimization/60740
35598 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
35599 over all GIMPLE_COND operands.
35600
35601 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
35602
35603 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
35604 (Weffc++): Remove Scott's numbering, merge lists and reference
35605 Wnon-virtual-dtor.
35606
35607 2014-04-03 Nick Clifton <nickc@redhat.com>
35608
35609 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
35610 properly.
35611
35612 2014-04-03 Martin Jambor <mjambor@suse.cz>
35613
35614 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
35615 mention gcc_unreachable before failing.
35616 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
35617 removed symbols.
35618
35619 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
35620
35621 PR ipa/60659
35622 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
35623 inconsistent code and instead mark the context inconsistent.
35624 (possible_polymorphic_call_targets): For inconsistent contexts
35625 return empty complete list.
35626
35627 2014-04-02 Anthony Green <green@moxielogic.com>
35628
35629 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
35630 (extendqisi2, extendhisi2): Define.
35631 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
35632 (WCHAR_TYPE): Change to unsigned int.
35633
35634 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35635
35636 PR tree-optimization/60733
35637 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
35638 insertion point for PHI candidates to be the end of the feeding
35639 block for the PHI argument.
35640
35641 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
35642
35643 PR rtl-optimization/60650
35644 * lra-constraints.c (process_alt_operands): Decrease reject for
35645 earlyclobber matching.
35646
35647 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35648
35649 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
35650
35651 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
35652
35653 * config/spu/spu.c (pad_bb): Do not crash when the last
35654 insn is CODE_FOR_blockage.
35655
35656 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
35657
35658 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
35659 lies outside the target mode.
35660
35661 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
35662
35663 PR target/60735
35664 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
35665 software floating point or no floating point registers, do not
35666 allow any type in the FPRs. Eliminate a test for SPE SIMD types
35667 in GPRs that occurs after we tested for GPRs that would never be
35668 true.
35669
35670 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
35671 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
35672 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
35673 specifically allow DDmode, since that does not use the SPE SIMD
35674 instructions.
35675
35676 2014-04-02 Richard Biener <rguenther@suse.de>
35677
35678 PR middle-end/60729
35679 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
35680 MODE_INTs. Properly use negv_optab.
35681 (expand_abs): Likewise.
35682
35683 2014-04-02 Richard Biener <rguenther@suse.de>
35684
35685 PR bootstrap/60719
35686 * Makefile.in (install-driver): Guard extra installs with special
35687 names properly.
35688
35689 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
35690
35691 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
35692 Document vec_vgbbd.
35693
35694 2014-04-01 Richard Henderson <rth@redhat.com>
35695
35696 PR target/60704
35697 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
35698 alternative enabled before register allocation.
35699
35700 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
35701
35702 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
35703 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
35704 typo.
35705 (nios2_large_got_address): Remove unneeded 'sym' parameter.
35706 (nios2_got_address): Update nios2_large_got_address call site.
35707 (nios2_delegitimize_address): New function.
35708 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
35709 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
35710 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
35711
35712 2014-04-01 Martin Husemann <martin@duskware.de>
35713
35714 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
35715 for -mabi=32.
35716
35717 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
35718
35719 PR rtl-optimization/60604
35720 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
35721 check from register_operand.
35722 (register_operand): Redefine in terms of general_operand.
35723 (nonmemory_operand): Use register_operand for the non-constant cases.
35724
35725 2014-04-01 Richard Biener <rguenther@suse.de>
35726
35727 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
35728
35729 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
35730
35731 * doc/invoke.texi (mapp-regs): Clarify.
35732
35733 2014-03-31 Ulrich Drepper <drepper@gmail.com>
35734
35735 * config/i386/avx512fintrin.h (__v32hi): Define type.
35736 (__v64qi): Likewise.
35737 (_mm512_set1_epi8): Define.
35738 (_mm512_set1_epi16): Define.
35739 (_mm512_set4_epi32): Define.
35740 (_mm512_set4_epi64): Define.
35741 (_mm512_set4_pd): Define.
35742 (_mm512_set4_ps): Define.
35743 (_mm512_setr4_epi64): Define.
35744 (_mm512_setr4_epi32): Define.
35745 (_mm512_setr4_pd): Define.
35746 (_mm512_setr4_ps): Define.
35747 (_mm512_setzero_epi32): Define.
35748
35749 2014-03-31 Martin Jambor <mjambor@suse.cz>
35750
35751 PR middle-end/60647
35752 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
35753 callsite_arguments_match_p. Updated all callers. Also check types of
35754 corresponding formal parameters and actual arguments.
35755 (not_all_callers_have_enough_arguments_p) Renamed to
35756 some_callers_have_mismatched_arguments_p.
35757
35758 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
35759
35760 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
35761
35762 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
35763
35764 PR target/60034
35765 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
35766 section anchor.
35767
35768 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
35769
35770 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
35771 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
35772 Split out
35773 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
35774 Use FMAMODE_NOVF512 mode iterator.
35775 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
35776 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
35777 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
35778 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
35779 Split out
35780 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
35781 Use VF_128_256 mode iterator.
35782 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
35783 Ditto.
35784
35785 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
35786
35787 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
35788 static chain if needed.
35789
35790 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
35791
35792 PR target/60697
35793 * lra-constraints.c (index_part_to_reg): New.
35794 (process_address): Use it.
35795
35796 2014-03-27 Jeff Law <law@redhat.com>
35797 Jakub Jelinek <jakub@redhat.com>
35798
35799 PR target/60648
35800 * expr.c (do_tablejump): Use simplify_gen_binary rather than
35801 gen_rtx_{PLUS,MULT} to build up the address expression.
35802
35803 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
35804 creating non-canonical RTL.
35805
35806 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
35807
35808 PR ipa/60243
35809 * ipa-inline.c (want_inline_small_function_p): Short circuit large
35810 functions; reorganize to make cheap checks first.
35811 (inline_small_functions): Do not estimate growth when dumping;
35812 it is expensive.
35813 * ipa-inline.h (inline_summary): Add min_size.
35814 (growth_likely_positive): New function.
35815 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
35816 (set_cond_stmt_execution_predicate): Cleanup.
35817 (estimate_edge_size_and_time): Compute min_size.
35818 (estimate_calls_size_and_time): Likewise.
35819 (estimate_node_size_and_time): Likewise.
35820 (inline_update_overall_summary): Update min_size.
35821 (do_estimate_edge_time): Likewise.
35822 (do_estimate_edge_size): Update.
35823 (do_estimate_edge_hints): Update.
35824 (growth_likely_positive): New function.
35825
35826 2014-03-28 Jakub Jelinek <jakub@redhat.com>
35827
35828 PR target/60693
35829 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
35830 also if addr has VOIDmode.
35831
35832 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35833
35834 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
35835 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
35836 Declare extern.
35837 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
35838 instructions as well as AdvancedSIMD loads.
35839
35840 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35841
35842 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
35843 Use crypto_aese type.
35844 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
35845 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
35846 crypto_aese, crypto_aesmc. Move to types.md.
35847 * config/arm/types.md (crypto_aes): Split into crypto_aese,
35848 crypto_aesmc.
35849 * config/arm/iterators.md (crypto_type): Likewise.
35850
35851 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
35852
35853 * cgraph.c: Include expr.h and tree-dfa.h.
35854 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
35855 remove LHS.
35856
35857 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
35858
35859 PR target/60675
35860 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
35861 regs from checking multi-reg pseudos.
35862
35863 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35864
35865 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
35866
35867 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
35868
35869 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
35870 if it would clobber the stack pointer, even temporarily.
35871
35872 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
35873
35874 * mode-switching.c: Make small adjustments to the top comment.
35875
35876 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
35877
35878 * config/rs6000/constraints.md (wD constraint): New constraint to
35879 match the constant integer to get the top DImode/DFmode out of a
35880 vector in a VSX register.
35881
35882 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
35883 match the constant integer to get the top DImode/DFmode out of a
35884 vector in a VSX register.
35885
35886 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
35887 for ISA 2.07.
35888
35889 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
35890 vbpermq builtins.
35891
35892 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
35893 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
35894
35895 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
35896 Optimize vec_extract of 64-bit values, where the value being
35897 extracted is in the top word, where we can use scalar
35898 instructions. Add direct move and store support. Combine the big
35899 endian/little endian vector select load support into a single insn.
35900 (vsx_extract_<mode>_internal1): Likewise.
35901 (vsx_extract_<mode>_internal2): Likewise.
35902 (vsx_extract_<mode>_load): Likewise.
35903 (vsx_extract_<mode>_store): Likewise.
35904 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
35905 combined into vsx_extract_<mode>_load.
35906 (vsx_extract_<mode>_one_le): Likewise.
35907
35908 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
35909 define the top 64-bit vector element.
35910
35911 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
35912 constraint.
35913
35914 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
35915 Document vec_vbpermq builtin.
35916
35917 PR target/60672
35918 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
35919 enable use of xxsldwi and xxpermdi builtin functions.
35920 (vec_xxpermdi): Likewise.
35921
35922 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
35923 Document use of vec_xxsldwi and vec_xxpermdi builtins.
35924
35925 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
35926
35927 PR rtl-optimization/60650
35928 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
35929 first_p. Use it.
35930 (find_spills_for): New.
35931 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
35932 Spill all pseudos on the second iteration.
35933
35934 2014-03-27 Marek Polacek <polacek@redhat.com>
35935
35936 PR c/50347
35937 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
35938 types.
35939
35940 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35941
35942 * config/s390/s390.c (s390_can_use_return_insn): Check for
35943 call-saved FPRs on 31 bit.
35944
35945 2014-03-27 Jakub Jelinek <jakub@redhat.com>
35946
35947 PR middle-end/60682
35948 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
35949 if they need regimplification, just drop them instead of
35950 calling gimple_regimplify_operands on them.
35951
35952 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
35953
35954 PR target/60580
35955 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
35956 (aarch64_frame_pointer_required): Adjust logic.
35957 (aarch64_can_eliminate): Adjust logic.
35958 (aarch64_override_options_after_change): Adjust logic.
35959
35960 2014-03-27 Dehao Chen <dehao@google.com>
35961
35962 * ipa-inline.c (early_inliner): Update node's inline info.
35963
35964 2014-03-26 Dehao Chen <dehao@google.com>
35965
35966 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
35967 compiler inserted conditional jumps for NAN float check.
35968
35969 2014-03-26 Jakub Jelinek <jakub@redhat.com>
35970
35971 * ubsan.h (ubsan_create_data): Change second argument's type
35972 to const location_t *.
35973 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
35974 _("<unknown>").
35975 (ubsan_create_data): Change second argument to const location_t *PLOC.
35976 Create Loc field whenever PLOC is non-NULL.
35977 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
35978 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
35979 callers.
35980
35981 PR other/59545
35982 * real.c (real_to_integer2): Change type of low to UHWI.
35983
35984 2014-03-26 Tobias Burnus <burnus@net-b.de>
35985
35986 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
35987 (CILK_SELF_SPECS): New define.
35988 (driver_self_specs): Use it.
35989
35990 2014-03-26 Richard Biener <rguenther@suse.de>
35991
35992 * tree-pretty-print.c (percent_K_format): Implement special
35993 case for LTO and its stripped down BLOCK tree.
35994
35995 2014-03-26 Jakub Jelinek <jakub@redhat.com>
35996
35997 PR sanitizer/60636
35998 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
35999
36000 * tree-vrp.c (simplify_internal_call_using_ranges): If only
36001 one range is range_int_cst_p, but not both, at least optimize
36002 addition/subtraction of 0 and multiplication by 0 or 1.
36003 * gimple-fold.c (gimple_fold_call): Fold
36004 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
36005 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
36006 INTEGER_CSTs, try to fold at least x * 0 and y - y.
36007
36008 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
36009
36010 PR rtl-optimization/60452
36011 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
36012 <case REG>: Return 1 for invalid offsets from the frame pointer.
36013
36014 2014-03-26 Marek Polacek <polacek@redhat.com>
36015
36016 PR c/37428
36017 * doc/extend.texi (C Extensions): Mention variable-length arrays in
36018 a structure/union.
36019
36020 2014-03-26 Marek Polacek <polacek@redhat.com>
36021
36022 PR c/39525
36023 * doc/extend.texi (Designated Inits): Describe what happens to omitted
36024 field members.
36025
36026 2014-03-26 Marek Polacek <polacek@redhat.com>
36027
36028 PR other/59545
36029 * ira-color.c (update_conflict_hard_regno_costs): Perform the
36030 multiplication in unsigned type.
36031
36032 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
36033
36034 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
36035
36036 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
36037
36038 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
36039
36040 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
36041
36042 PR ipa/60315
36043 * cif-code.def (UNREACHABLE) New code.
36044 * ipa-inline.c (inline_small_functions): Skip edges to
36045 __builtlin_unreachable.
36046 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
36047 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
36048 predicate to __bulitin_unreachable.
36049 (set_cond_stmt_execution_predicate): Fix issue when
36050 invert_tree_comparison returns ERROR_MARK.
36051 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
36052 propagate to inline clones.
36053 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
36054 to unreachable.
36055 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
36056 * cgraphclones.c (cgraph_clone_node): If call destination is already
36057 ureachable, do not redirect it back.
36058 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
36059 unreachable.
36060
36061 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
36062
36063 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
36064 Do not modify inline clones.
36065
36066 2014-03-25 Jakub Jelinek <jakub@redhat.com>
36067
36068 * config/i386/i386.md (general_sext_operand): New mode attr.
36069 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
36070 don't generate (sign_extend (const_int)).
36071 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
36072 operands[2]. Use We constraint instead of <i> and
36073 <general_sext_operand> predicate instead of <general_operand>.
36074 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
36075 * config/i386/constraints.md (We): New constraint.
36076 * config/i386/predicates.md (x86_64_sext_operand,
36077 sext_operand): New predicates.
36078
36079 2014-03-25 Martin Jambor <mjambor@suse.cz>
36080
36081 PR ipa/60600
36082 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
36083 inconsistent devirtualizations to __builtin_unreachable.
36084
36085 2014-03-25 Marek Polacek <polacek@redhat.com>
36086
36087 PR c/35449
36088 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
36089
36090 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
36091
36092 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
36093 order of elements for big-endian.
36094
36095 2014-03-25 Richard Biener <rguenther@suse.de>
36096
36097 PR middle-end/60635
36098 * gimplify-me.c (gimple_regimplify_operands): Update the
36099 re-gimplifed stmt.
36100
36101 2014-03-25 Martin Jambor <mjambor@suse.cz>
36102
36103 PR ipa/59176
36104 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
36105 (lto_output_varpool_node): Likewise.
36106 (input_overwrite_node): Likewise.
36107 (input_varpool_node): Likewise.
36108
36109 2014-03-25 Richard Biener <rguenther@suse.de>
36110
36111 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
36112 (run_gcc): Likewise.
36113
36114 2014-03-25 Jakub Jelinek <jakub@redhat.com>
36115
36116 * combine.c (simplify_compare_const): Add MODE argument.
36117 Handle mode_width 0 as very large mode_width.
36118 (try_combine, simplify_comparison): Adjust callers.
36119
36120 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
36121 type to avoid signed integer overflow.
36122 * explow.c (plus_constant): Likewise.
36123
36124 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
36125
36126 * doc/generic.texi: Correct typos.
36127
36128 2014-03-24 Tobias Burnus <burnus@net-b.de>
36129
36130 * doc/invoke.texi (-flto): Expand section about
36131 using static libraries with LTO.
36132
36133 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36134
36135 PR rtl-optimization/60501
36136 * optabs.def (addptr3_optab): New optab.
36137 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
36138 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
36139 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
36140
36141 * lra.c (emit_add3_insn): Use the addptr pattern if available.
36142
36143 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
36144
36145 2014-03-24 Ulrich Drepper <drepper@gmail.com>
36146
36147 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
36148 _mm512_set1_pd.
36149
36150 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
36151 (_mm256_undefined_ps): Define.
36152 (_mm256_undefined_pd): Define.
36153 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
36154 (_mm_undefined_pd): Define.
36155 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
36156 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
36157 (_mm512_undefined_ps): Define.
36158 (_mm512_undefined_pd): Define.
36159 Use _mm*_undefined_*.
36160 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
36161
36162 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
36163
36164 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
36165 (lshr_simd): DI mode added.
36166 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
36167 (aarch64_ushr_simddi): Likewise.
36168 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
36169 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
36170 (vshrd_n_u64): Likewise.
36171
36172 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36173
36174 * Makefile.in (s-macro_list): Depend on cc1.
36175
36176 2014-03-23 Teresa Johnson <tejohnson@google.com>
36177
36178 * ipa-utils.c (ipa_print_order): Use specified dump file.
36179
36180 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
36181
36182 PR rtl-optimization/60601
36183 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
36184
36185 * gcc.c (eval_spec_function): Initialize save_growing_value.
36186
36187 2014-03-22 Jakub Jelinek <jakub@redhat.com>
36188
36189 PR sanitizer/60613
36190 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
36191 code == MINUS_EXPR, never swap op0 with op1.
36192
36193 * toplev.c (init_local_tick): Avoid signed integer multiplication
36194 overflow.
36195 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
36196 shift by first operand's bitsize.
36197
36198 2014-03-21 Jakub Jelinek <jakub@redhat.com>
36199
36200 PR target/60610
36201 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
36202 redefine to 1 or 0.
36203 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
36204 TARGET_ISA_64BIT_P(x).
36205
36206 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36207
36208 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
36209 pattern for vector nor instead of subtract from splat(-1).
36210 (altivec_expand_vec_perm_const_le): Likewise.
36211
36212 2014-03-21 Richard Henderson <rth@twiddle.net>
36213
36214 PR target/60598
36215 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
36216 related insns after epilogue_completed.
36217
36218 2014-03-21 Martin Jambor <mjambor@suse.cz>
36219
36220 PR ipa/59176
36221 * cgraph.h (symtab_node): New flag body_removed.
36222 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
36223 when removing bodies.
36224 * symtab.c (dump_symtab_base): Dump body_removed flag.
36225 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
36226 had their bodies removed.
36227
36228 2014-03-21 Martin Jambor <mjambor@suse.cz>
36229
36230 PR ipa/60419
36231 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
36232 in the border.
36233
36234 2014-03-21 Richard Biener <rguenther@suse.de>
36235
36236 PR tree-optimization/60577
36237 * tree-core.h (struct tree_base): Document nothrow_flag use
36238 in DECL_NONALIASED.
36239 * tree.h (DECL_NONALIASED): New.
36240 (may_be_aliased): Adjust.
36241 * coverage.c (build_var): Set DECL_NONALIASED.
36242
36243 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
36244
36245 * expr.c (expand_expr_real_1): Remove outdated comment.
36246
36247 2014-03-20 Jakub Jelinek <jakub@redhat.com>
36248
36249 PR middle-end/60597
36250 * ira.c (adjust_cleared_regs): Call copy_rtx on
36251 *reg_equiv[REGNO (loc)].src_p before passing it to
36252 simplify_replace_fn_rtx.
36253
36254 PR target/60568
36255 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
36256 into CONST, put pic register as first operand of PLUS. Use
36257 gen_const_mem for both 32-bit and 64-bit PIC got loads.
36258
36259 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36260
36261 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
36262
36263 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
36264
36265 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
36266 around for store forwarding issue in the FPU on the UT699.
36267 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
36268 loads and operations if -mfix-ut699 is specified.
36269 (divtf3_hq): Tweak attribute.
36270 (sqrttf2_hq): Likewise.
36271
36272 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
36273
36274 * calls.c (store_one_arg): Remove incorrect const qualification on the
36275 type of the temporary.
36276 * cfgexpand.c (expand_return): Likewise.
36277 * expr.c (expand_constructor): Likewise.
36278 (expand_expr_real_1): Likewise.
36279
36280 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
36281
36282 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
36283 of parts.
36284
36285 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
36286
36287 PR target/60039
36288 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
36289
36290 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
36291
36292 * config/arm/aarch-common-protos.h
36293 (alu_cost_table): Fix spelling of "extend".
36294 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
36295
36296 2014-03-19 Richard Biener <rguenther@suse.de>
36297
36298 PR middle-end/60553
36299 * tree-core.h (tree_type_common): Re-order pointer members
36300 to reduce recursion depth during GC walks.
36301
36302 2014-03-19 Marek Polacek <polacek@redhat.com>
36303
36304 PR sanitizer/60569
36305 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
36306 before accessing it.
36307
36308 2014-03-19 Richard Biener <rguenther@suse.de>
36309
36310 PR lto/59543
36311 * lto-streamer-in.c (input_function): In WPA stage do not drop
36312 debug stmts.
36313
36314 2014-03-19 Jakub Jelinek <jakub@redhat.com>
36315
36316 PR tree-optimization/60559
36317 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
36318 with build_zero_cst assignment.
36319
36320 2014-03-18 Kai Tietz <ktietz@redhat.com>
36321
36322 PR rtl-optimization/56356
36323 * sdbout.c (sdbout_parms): Verify that parms'
36324 incoming argument is valid.
36325 (sdbout_reg_parms): Likewise.
36326
36327 2014-03-18 Richard Henderson <rth@redhat.com>
36328
36329 PR target/60562
36330 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
36331 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
36332 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
36333
36334 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
36335
36336 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
36337 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
36338 Italicize plugin event names in description. Explain that
36339 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
36340 Remind that no GCC functions should be called after PLUGIN_FINISH.
36341 Explain what pragmas with expansion are.
36342
36343 2014-03-18 Martin Liska <mliska@suse.cz>
36344
36345 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
36346 gimple call statement is update.
36347 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
36348 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
36349
36350 2014-03-18 Jakub Jelinek <jakub@redhat.com>
36351
36352 PR sanitizer/60557
36353 * ubsan.c (ubsan_instrument_unreachable): Call
36354 initialize_sanitizer_builtins.
36355 (ubsan_pass): Likewise.
36356
36357 PR sanitizer/60535
36358 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
36359 varpool_finalize_decl instead of rest_of_decl_compilation.
36360
36361 2014-03-18 Richard Biener <rguenther@suse.de>
36362
36363 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
36364 by using bitmap_and_compl instead of bitmap_and_compl_into.
36365 (df_rd_transfer_function): Likewise.
36366
36367 2014-03-18 Richard Biener <rguenther@suse.de>
36368
36369 * doc/lto.texi (fresolution): Fix typo.
36370
36371 2014-03-18 Richard Biener <rguenther@suse.de>
36372
36373 * doc/invoke.texi (flto): Update for changes in 4.9.
36374
36375 2014-03-18 Richard Biener <rguenther@suse.de>
36376
36377 * doc/loop.texi: Remove section on the removed lambda framework.
36378 Update loop docs with recent changes in preserving loop structure.
36379
36380 2014-03-18 Richard Biener <rguenther@suse.de>
36381
36382 * doc/lto.texi (-fresolution): Document.
36383
36384 2014-03-18 Richard Biener <rguenther@suse.de>
36385
36386 * doc/contrib.texi: Adjust my name.
36387
36388 2014-03-18 Jakub Jelinek <jakub@redhat.com>
36389
36390 PR ipa/58721
36391 * internal-fn.c: Include diagnostic-core.h.
36392 (expand_BUILTIN_EXPECT): New function.
36393 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
36394 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
36395 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
36396 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
36397 IFN_BUILTIN_EXPECT.
36398 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
36399 Revert 3 argument __builtin_expect code.
36400 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
36401 * gimple-fold.c (gimple_fold_call): Likewise.
36402 * tree.h (fold_builtin_expect): New prototype.
36403 * builtins.c (build_builtin_expect_predicate): Add predictor
36404 argument, if non-NULL, create 3 argument __builtin_expect.
36405 (fold_builtin_expect): No longer static. Add ARG2 argument,
36406 pass it through to build_builtin_expect_predicate.
36407 (fold_builtin_2): Adjust caller.
36408 (fold_builtin_3): Handle BUILT_IN_EXPECT.
36409 * internal-fn.def (BUILTIN_EXPECT): New.
36410
36411 2014-03-18 Tobias Burnus <burnus@net-b.de>
36412
36413 PR ipa/58721
36414 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
36415 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
36416 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
36417
36418 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
36419
36420 PR ipa/58721
36421 * predict.c (combine_predictions_for_bb): Fix up formatting.
36422 (expr_expected_value_1, expr_expected_value): Add predictor argument,
36423 fill what it points to if non-NULL.
36424 (tree_predict_by_opcode): Adjust caller, use the predictor.
36425 * predict.def (PRED_COMPARE_AND_SWAP): Add.
36426
36427 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
36428
36429 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
36430 proper constant for the store mode.
36431
36432 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
36433
36434 * symtab.c (change_decl_assembler_name): Fix transparent alias
36435 chain construction.
36436
36437 2014-03-16 Renlin Li <Renlin.Li@arm.com>
36438
36439 * config/aarch64/aarch64.c: Correct the comments about the
36440 aarch64 stack layout.
36441
36442 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
36443
36444 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
36445 check for GF_OMP_FOR_KIND_FOR.
36446
36447 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
36448
36449 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
36450 ymm and zmm register names.
36451
36452 2014-03-17 Jakub Jelinek <jakub@redhat.com>
36453
36454 PR target/60516
36455 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
36456 note creation for the 2010-08-31 changes.
36457
36458 2014-03-17 Marek Polacek <polacek@redhat.com>
36459
36460 PR middle-end/60534
36461 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
36462 as -fno-tree-loop-vectorize.
36463 (expand_omp_simd): Likewise.
36464
36465 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
36466
36467 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
36468 (eligible_for_call_delay): New prototype.
36469 * config/sparc/sparc.c (tls_call_delay): Rename into...
36470 (eligible_for_call_delay): ...this. Return false if the instruction
36471 cannot be put in the delay slot of a branch.
36472 (eligible_for_restore_insn): Simplify.
36473 (eligible_for_return_delay): Return false if the instruction cannot be
36474 put in the delay slot of a branch and simplify.
36475 (eligible_for_sibcall_delay): Return false if the instruction cannot be
36476 put in the delay slot of a branch.
36477 * config/sparc/sparc.md (fix_ut699): New attribute.
36478 (tls_call_delay): Delete.
36479 (in_call_delay): Reimplement.
36480 (eligible_for_sibcall_delay): Rename into...
36481 (in_sibcall_delay): ...this.
36482 (eligible_for_return_delay): Rename into...
36483 (in_return_delay): ...this.
36484 (in_branch_delay): Reimplement.
36485 (in_uncond_branch_delay): Delete.
36486 (in_annul_branch_delay): Delete.
36487
36488 2014-03-14 Richard Henderson <rth@redhat.com>
36489
36490 PR target/60525
36491 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
36492 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
36493 (*floathi<X87MODEF>2_i387_with_temp): Remove.
36494 (floathi splitters): Remove.
36495 (float<SWI48x>xf2): New pattern.
36496 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
36497 code that tried to handle DImode for 32-bit, but which was excluded
36498 by the pattern's condition. Drop allocation of stack temporary.
36499 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
36500 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
36501 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
36502 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
36503 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
36504 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
36505 (*float<SWI48><MODEF>2_sse_interunit): Remove.
36506 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
36507 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
36508 (*float<SWI48x><X87MODEF>2_i387): Remove.
36509 (all float _with_temp splitters): Remove.
36510 (*float<SWI48x><MODEF>2_i387): New pattern.
36511 (*float<SWI48><MODEF>2_sse): New pattern.
36512 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
36513 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
36514
36515 2014-03-14 Jakub Jelinek <jakub@redhat.com>
36516 Marek Polacek <polacek@redhat.com>
36517
36518 PR middle-end/60484
36519 * common.opt (dump_base_name_prefixed): New Variable.
36520 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
36521 if x_dump_base_name_prefixed is already set, set it at the end.
36522
36523 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
36524
36525 PR rtl-optimization/60508
36526 * lra-constraints.c (get_reload_reg): Add new parameter
36527 in_subreg_p.
36528 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
36529 Pass the new parameter values.
36530
36531 2014-03-14 Richard Biener <rguenther@suse.de>
36532
36533 * common.opt: Revert unintented changes from r205065.
36534 * opts.c: Likewise.
36535
36536 2014-03-14 Richard Biener <rguenther@suse.de>
36537
36538 PR middle-end/60518
36539 * cfghooks.c (split_block): Properly adjust all loops the
36540 block was a latch of.
36541
36542 2014-03-14 Martin Jambor <mjambor@suse.cz>
36543
36544 PR lto/60461
36545 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
36546 and simplify it.
36547
36548 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
36549
36550 PR target/59396
36551 * config/avr/avr.c (avr_set_current_function): Pass function name
36552 through default_strip_name_encoding before sanity checking instead
36553 of skipping the first char of the assembler name.
36554
36555 2014-03-13 Richard Henderson <rth@redhat.com>
36556
36557 PR debug/60438
36558 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
36559 (ix86_force_to_memory, ix86_free_from_memory): Remove.
36560 * config/i386/i386-protos.h: Likewise.
36561 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
36562 in the expander instead of a splitter.
36563 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
36564 any possibility of requiring a memory.
36565 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
36566 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
36567 (fp branch splitters): Update for ix86_split_fp_branch.
36568 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
36569 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
36570 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
36571 (*fop_<MODEF>_2_i387): Remove f/r alternative.
36572 (*fop_<MODEF>_3_i387): Likewise.
36573 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
36574 (splitters for the fop_* register patterns): Remove.
36575 (fscalexf4_i387): Rename from *fscalexf4_i387.
36576 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
36577
36578 2014-03-13 Jakub Jelinek <jakub@redhat.com>
36579
36580 PR tree-optimization/59779
36581 * tree-dfa.c (get_ref_base_and_extent): Use double_int
36582 type for bitsize and maxsize instead of HOST_WIDE_INT.
36583
36584 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
36585
36586 PR rtl-optimization/57320
36587 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
36588 the CFG after thread_prologue_and_epilogue_insns.
36589
36590 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
36591
36592 PR rtl-optimization/57189
36593 * lra-constraints.c (process_alt_operands): Disfavor spilling
36594 vector pseudos.
36595
36596 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
36597
36598 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
36599
36600 2014-03-13 Jakub Jelinek <jakub@redhat.com>
36601
36602 PR tree-optimization/59025
36603 PR middle-end/60418
36604 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
36605 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
36606
36607 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
36608
36609 PR target/60486
36610 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
36611 calls of avr_out_plus_1.
36612
36613 2014-03-13 Bin Cheng <bin.cheng@arm.com>
36614
36615 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
36616 BB's single pred and update the father loop's latch info later.
36617
36618 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
36619
36620 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
36621 (VEC_M): Likewise.
36622 (VEC_N): Likewise.
36623 (VEC_R): Likewise.
36624 (VEC_base): Likewise.
36625 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
36626 registers, we need to swap double words in little endian mode.
36627
36628 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
36629 to be a container mode for 128-bit integer operations added in ISA
36630 2.07. Unlike TImode and PTImode, the preferred register set is
36631 the Altivec/VMX registers for the 128-bit operations.
36632
36633 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
36634 declarations.
36635 (rs6000_split_128bit_ok_p): Likewise.
36636
36637 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
36638 macros for creating ISA 2.07 normal and overloaded builtin
36639 functions with 3 arguments.
36640 (BU_P8V_OVERLOAD_3): Likewise.
36641 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
36642 for use as overloaded functions.
36643 (VPERM_1TI_UNS): Likewise.
36644 (VSEL_1TI): Likewise.
36645 (VSEL_1TI_UNS): Likewise.
36646 (ST_INTERNAL_1ti): Likewise.
36647 (LD_INTERNAL_1ti): Likewise.
36648 (XXSEL_1TI): Likewise.
36649 (XXSEL_1TI_UNS): Likewise.
36650 (VPERM_1TI): Likewise.
36651 (VPERM_1TI_UNS): Likewise.
36652 (XXPERMDI_1TI): Likewise.
36653 (SET_1TI): Likewise.
36654 (LXVD2X_V1TI): Likewise.
36655 (STXVD2X_V1TI): Likewise.
36656 (VEC_INIT_V1TI): Likewise.
36657 (VEC_SET_V1TI): Likewise.
36658 (VEC_EXT_V1TI): Likewise.
36659 (EQV_V1TI): Likewise.
36660 (NAND_V1TI): Likewise.
36661 (ORC_V1TI): Likewise.
36662 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
36663 added in ISA 2.07. Add both normal 'altivec' builtins, and the
36664 overloaded builtin.
36665 (VADDUQM): Likewise.
36666 (VSUBCUQ): Likewise.
36667 (VADDEUQM): Likewise.
36668 (VADDECUQ): Likewise.
36669 (VSUBEUQM): Likewise.
36670 (VSUBECUQ): Likewise.
36671
36672 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
36673 __int128_t and __uint128_t types.
36674 (__uint128_type): Likewise.
36675 (altivec_categorize_keyword): Add support for vector __int128_t,
36676 vector __uint128_t, vector __int128, and vector unsigned __int128
36677 as a container type for TImode operations that need to be done in
36678 VSX/Altivec registers.
36679 (rs6000_macro_to_expand): Likewise.
36680 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
36681 to support 128-bit integer instructions vaddcuq, vadduqm,
36682 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
36683 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
36684
36685 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
36686 for V1TImode, and set up preferences to use VSX/Altivec registers.
36687 Setup VSX reload handlers.
36688 (rs6000_debug_reg_global): Likewise.
36689 (rs6000_init_hard_regno_mode_ok): Likewise.
36690 (rs6000_preferred_simd_mode): Likewise.
36691 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
36692 (easy_altivec_constant): Likewise.
36693 (output_vec_const_move): Likewise.
36694 (rs6000_expand_vector_set): Convert V1TImode set and extract to
36695 simple move.
36696 (rs6000_expand_vector_extract): Likewise.
36697 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
36698 addressing.
36699 (rs6000_const_vec): Add support for V1TImode.
36700 (rs6000_emit_le_vsx_load): Swap double words when loading or
36701 storing TImode/V1TImode.
36702 (rs6000_emit_le_vsx_store): Likewise.
36703 (rs6000_emit_le_vsx_move): Likewise.
36704 (rs6000_emit_move): Add support for V1TImode.
36705 (altivec_expand_ld_builtin): Likewise.
36706 (altivec_expand_st_builtin): Likewise.
36707 (altivec_expand_vec_init_builtin): Likewise.
36708 (altivec_expand_builtin): Likewise.
36709 (rs6000_init_builtins): Add support for V1TImode type. Add
36710 support for ISA 2.07 128-bit integer builtins. Define type names
36711 for the VSX/Altivec vector types.
36712 (altivec_init_builtins): Add support for overloaded vector
36713 functions with V1TImode type.
36714 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
36715 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
36716 external function.
36717 (rs6000_split_128bit_ok_p): Likewise.
36718 (rs6000_handle_altivec_attribute): Create V1TImode from vector
36719 __int128_t and vector __uint128_t.
36720
36721 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
36722 and mode attributes.
36723 (VSX_M): Likewise.
36724 (VSX_M2): Likewise.
36725 (VSm): Likewise.
36726 (VSs): Likewise.
36727 (VSr): Likewise.
36728 (VSv): Likewise.
36729 (VS_scalar): Likewise.
36730 (VS_double): Likewise.
36731 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
36732
36733 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
36734 we support the ISA 2.07 128-bit integer arithmetic instructions.
36735 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
36736 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
36737 and TImode types for use with the builtin functions.
36738 (V1TI_type_node): Likewise.
36739 (unsigned_V1TI_type_node): Likewise.
36740 (intTI_type_internal_node): Likewise.
36741 (uintTI_type_internal_node): Likewise.
36742
36743 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
36744 128-bit builtin functions.
36745 (UNSPEC_VADDEUQM): Likewise.
36746 (UNSPEC_VADDECUQ): Likewise.
36747 (UNSPEC_VSUBCUQ): Likewise.
36748 (UNSPEC_VSUBEUQM): Likewise.
36749 (UNSPEC_VSUBECUQ): Likewise.
36750 (VM): Add V1TImode to vector mode iterators.
36751 (VM2): Likewise.
36752 (VI_unit): Likewise.
36753 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
36754 (altivec_vaddcuq): Likewise.
36755 (altivec_vsubuqm): Likewise.
36756 (altivec_vsubcuq): Likewise.
36757 (altivec_vaddeuqm): Likewise.
36758 (altivec_vaddecuq): Likewise.
36759 (altivec_vsubeuqm): Likewise.
36760 (altivec_vsubecuq): Likewise.
36761
36762 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
36763 mode iterators.
36764 (BOOL_128): Likewise.
36765 (BOOL_REGS_OUTPUT): Likewise.
36766 (BOOL_REGS_OP1): Likewise.
36767 (BOOL_REGS_OP2): Likewise.
36768 (BOOL_REGS_UNARY): Likewise.
36769 (BOOL_REGS_AND_CR0): Likewise.
36770
36771 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
36772 128-bit integer builtin support.
36773 (vec_vadduqm): Likewise.
36774 (vec_vaddecuq): Likewise.
36775 (vec_vaddeuqm): Likewise.
36776 (vec_vsubecuq): Likewise.
36777 (vec_vsubeuqm): Likewise.
36778 (vec_vsubcuq): Likewise.
36779 (vec_vsubuqm): Likewise.
36780
36781 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
36782 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
36783 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
36784 128-bit integer add/subtract to ISA 2.07.
36785
36786 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
36787
36788 * config/arc/arc.c (arc_predicate_delay_insns):
36789 Fix third argument passed to conditionalize_nonjump.
36790
36791 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
36792
36793 * config/aarch64/aarch64-builtins.c
36794 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
36795 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
36796 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
36797 instead of __builtin_lfloor.
36798 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
36799
36800 2014-03-12 Jakub Jelinek <jakub@redhat.com>
36801
36802 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
36803 (tree_ssa_ifcombine_bb_1): New function.
36804 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
36805 is an empty forwarder block to then_bb or vice versa and then_bb
36806 and else_bb are effectively swapped.
36807
36808 2014-03-12 Christian Bruel <christian.bruel@st.com>
36809
36810 PR target/60264
36811 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
36812 REG_CFA_DEF_CFA note.
36813 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
36814 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
36815
36816 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
36817
36818 PR tree-optimization/60454
36819 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
36820
36821 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36822
36823 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
36824 Do not define target_cpu_default2 to generic.
36825 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
36826 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
36827 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
36828
36829 2014-03-12 Jakub Jelinek <jakub@redhat.com>
36830 Marc Glisse <marc.glisse@inria.fr>
36831
36832 PR tree-optimization/60502
36833 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
36834 instead of build_low_bits_mask.
36835
36836 2014-03-12 Jakub Jelinek <jakub@redhat.com>
36837
36838 PR middle-end/60482
36839 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
36840 if there are multiple uses, but op doesn't live on E edge.
36841 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
36842 clobber stmts before __builtin_unreachable.
36843
36844 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
36845
36846 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
36847 hard_frame_pointer_rtx.
36848 * cse.c (cse_insn): Remove volatile check.
36849 * cselib.c (cselib_process_insn): Likewise.
36850 * dse.c (scan_insn): Likewise.
36851
36852 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
36853
36854 * config/arc/arc.c (conditionalize_nonjump): New function,
36855 broken out of ...
36856 (arc_ifcvt): ... this.
36857 (arc_predicate_delay_insns): Use it.
36858
36859 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
36860
36861 * config/arc/predicates.md (extend_operand): During/after reload,
36862 allow const_int_operand.
36863 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
36864 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
36865 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
36866 to "i".
36867 (umulsi3_highpart_i): Likewise.
36868
36869 2014-03-11 Richard Biener <rguenther@suse.de>
36870
36871 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
36872 Add asserts to guard possible wrong-code bugs.
36873
36874 2014-03-11 Richard Biener <rguenther@suse.de>
36875
36876 PR tree-optimization/60429
36877 PR tree-optimization/60485
36878 * tree-ssa-structalias.c (set_union_with_increment): Properly
36879 take into account all fields that overlap the shifted vars.
36880 (do_sd_constraint): Likewise.
36881 (do_ds_constraint): Likewise.
36882 (get_constraint_for_ptr_offset): Likewise.
36883
36884 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
36885
36886 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
36887 (nios2_compute_frame_layout):
36888 Add calculation of cfun->machine->fp_save_offset.
36889 (nios2_expand_prologue): Correct setting of frame pointer register
36890 in prologue.
36891 (nios2_expand_epilogue): Update recovery of stack pointer from
36892 frame pointer accordingly.
36893 (nios2_initial_elimination_offset): Update calculation of offset
36894 for eliminating to HARD_FRAME_POINTER_REGNUM.
36895
36896 2014-03-10 Jakub Jelinek <jakub@redhat.com>
36897
36898 PR ipa/60457
36899 * ipa.c (symtab_remove_unreachable_nodes): Don't call
36900 cgraph_get_create_node on VAR_DECLs.
36901
36902 2014-03-10 Richard Biener <rguenther@suse.de>
36903
36904 PR middle-end/60474
36905 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
36906
36907 2014-03-08 Douglas B Rupp <rupp@gnat.com>
36908
36909 * config/vms/vms.opt (vms_float_format): New variable.
36910
36911 2014-03-08 Tobias Burnus <burnus@net-b.de>
36912
36913 * doc/invoke.texi (-fcilkplus): Update implementation status.
36914
36915 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
36916 Richard Biener <rguenther@suse.de>
36917
36918 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
36919 consistently accross all TUs.
36920 (run_gcc): Enable -fshort-double automatically at link at link-time
36921 and disallow override.
36922
36923 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
36924
36925 PR target/58271
36926 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
36927 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
36928 if they can't be used.
36929
36930 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36931
36932 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
36933 for Solaris 11/x86 ld.
36934 * configure: Regenerate.
36935
36936 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36937
36938 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
36939 (LIB_TLS_SPEC): Save as ld_tls_libs.
36940 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
36941 (HAVE_AS_IX86_TLSLDM): New test.
36942 * configure, config.in: Regenerate.
36943 * config/i386/i386.c (legitimize_tls_address): Fall back to
36944 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
36945 cannot support TLS_MODEL_LOCAL_DYNAMIC.
36946 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
36947 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
36948
36949 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
36950
36951 * common.opt (fira-loop-pressure): Mark as optimization.
36952
36953 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
36954
36955 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
36956 an OpenMP mappable type.
36957
36958 2014-03-06 Matthias Klose <doko@ubuntu.com>
36959
36960 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
36961 MULTILIB_OSDIRNAMES is not defined.
36962
36963 2014-03-06 Jakub Jelinek <jakub@redhat.com>
36964 Meador Inge <meadori@codesourcery.com>
36965
36966 PR target/58595
36967 * config/arm/arm.c (arm_tls_symbol_p): Remove.
36968 (arm_legitimize_address): Call legitimize_tls_address for any
36969 arm_tls_referenced_p expression, handle constant addend. Call it
36970 before testing for !TARGET_ARM.
36971 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
36972
36973 2014-03-06 Richard Biener <rguenther@suse.de>
36974
36975 PR middle-end/60445
36976 PR lto/60424
36977 PR lto/60427
36978 Revert
36979 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
36980
36981 * tree-streamer.c (record_common_node): Assert we don't record
36982 nodes with type double.
36983 (preload_common_node): Skip type double, complex double and double
36984 pointer since it is now frontend dependent due to fshort-double option.
36985
36986 2014-03-06 Richard Biener <rguenther@suse.de>
36987
36988 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
36989 or -fno-lto is specified and the linker has full plugin support.
36990 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
36991 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
36992 * lto-wrapper.c (merge_and_complain): Merge compile-time
36993 optimization levels.
36994 (run_gcc): And pass it through to the link options.
36995
36996 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
36997
36998 PR debug/60381
36999 Revert:
37000 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
37001 PR debug/59992
37002 * cselib.c (remove_useless_values): Skip to avoid quadratic
37003 behavior if the condition moved from...
37004 (cselib_process_insn): ... here holds.
37005
37006 2014-03-05 Jakub Jelinek <jakub@redhat.com>
37007
37008 PR plugins/59335
37009 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
37010 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
37011
37012 PR plugins/59335
37013 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
37014 (TM_H): Add x86-tune.def.
37015
37016 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37017
37018 * config/aarch64/aarch64.c (generic_tunings):
37019 Use cortexa57_extra_costs.
37020
37021 2014-03-05 Jakub Jelinek <jakub@redhat.com>
37022
37023 PR lto/60404
37024 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
37025 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
37026 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
37027 cost for in_lto_p.
37028
37029 2014-03-04 Heiher <r@hev.cc>
37030
37031 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
37032 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
37033
37034 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
37035
37036 * config/i386/predicates.md (const2356_operand): Change to ...
37037 (const2367_operand): ... this.
37038 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
37039 const2367_operand.
37040 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
37041 (*avx512pf_scatterpf<mode>sf): Ditto.
37042 (avx512pf_scatterpf<mode>df): Ditto.
37043 (*avx512pf_scatterpf<mode>df_mask): Ditto.
37044 (*avx512pf_scatterpf<mode>df): Ditto.
37045 * config/i386/i386.c (ix86_expand_builtin): Update
37046 incorrect hint operand error message.
37047
37048 2014-03-04 Richard Biener <rguenther@suse.de>
37049
37050 * lto-section-in.c (lto_get_section_data): Fix const cast.
37051
37052 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
37053
37054 * tree-streamer.c (record_common_node): Assert we don't record
37055 nodes with type double.
37056 (preload_common_node): Skip type double, complex double and double
37057 pointer since it is now frontend dependent due to fshort-double option.
37058
37059 2014-03-04 Richard Biener <rguenther@suse.de>
37060
37061 PR lto/60405
37062 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
37063 (lto_input_toplevel_asms): Likewise.
37064 * lto-section-in.c (lto_get_section_data): Instead do it here
37065 for every section.
37066
37067 2014-03-04 Richard Biener <rguenther@suse.de>
37068
37069 PR tree-optimization/60382
37070 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
37071 dead PHIs a reduction.
37072
37073 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
37074
37075 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
37076 hint value.
37077 (_mm_prefetch): Move out of GCC target("sse") pragma.
37078 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
37079 GCC target("prfchw") pragma.
37080 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
37081 for locality <= 2.
37082 * config/i386/i386.c (ix86_option_override_internal): Enable
37083 -mprfchw with -mprefetchwt1.
37084
37085 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
37086
37087 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
37088 Mark as varying.
37089
37090 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
37091
37092 * opts.h (CL_PCH_IGNORE): Define.
37093 * targhooks.c (option_affects_pch_p):
37094 Return false for options that have CL_PCH_IGNORE set.
37095 * opt-functions.awk: Process PchIgnore.
37096 * doc/options.texi: Document PchIgnore.
37097
37098 * config/arc/arc.opt (misize): Add PchIgnore property.
37099
37100 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37101
37102 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
37103 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
37104 constraint on constants to permit them being loaded into
37105 GENERAL_REGS or BASE_REGS.
37106
37107 2014-03-03 Nick Clifton <nickc@redhat.com>
37108
37109 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
37110 anti-cacnonical alternatives.
37111 (negandhi3_real): New pattern.
37112 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
37113
37114 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
37115
37116 * config/avr/avr-mcus.def: Remove atxmega16x1.
37117 * config/avr/avr-tables.opt: Regenerate.
37118 * config/avr/t-multilib: Regenerate.
37119 * doc/avr-mmcu.texi: Regenerate.
37120
37121 2014-03-03 Tobias Grosser <tobias@grosser.es>
37122 Mircea Namolaru <mircea.namolaru@inria.fr>
37123
37124 PR tree-optimization/58028
37125 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
37126 scalar dimensions.
37127
37128 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37129
37130 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
37131 not handled by recognizers.
37132
37133 2014-03-03 Jakub Jelinek <jakub@redhat.com>
37134
37135 PR middle-end/60175
37136 * function.c (expand_function_end): Don't emit
37137 clobber_return_register sequence if clobber_after is a BARRIER.
37138 * cfgexpand.c (construct_exit_block): Append instructions before
37139 return_label to prev_bb.
37140
37141 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37142
37143 * config/rs6000/constraints.md: Document reserved use of "wc".
37144
37145 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
37146
37147 PR ipa/60150
37148 * ipa.c (function_and_variable_visibility): When dissolving comdat
37149 group, also set all symbols to local.
37150
37151 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
37152
37153 PR ipa/60306
37154
37155 Revert:
37156 2013-12-14 Jan Hubicka <jh@suse.cz>
37157 PR middle-end/58477
37158 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
37159
37160 2014-03-02 Jon Beniston <jon@beniston.com>
37161
37162 PR bootstrap/48230
37163 PR bootstrap/50927
37164 PR bootstrap/52466
37165 PR target/46898
37166 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
37167 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
37168 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
37169 (simple_return, *simple_return): New patterns
37170 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
37171 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
37172
37173 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
37174
37175 * dwarf2out.c (gen_subprogram_die): Tidy.
37176
37177 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
37178
37179 PR target/60071
37180 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
37181 (*mov_t_msb_neg_negc): ... this new insn.
37182
37183 2014-02-28 Jason Merrill <jason@redhat.com>
37184
37185 PR c++/58678
37186 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
37187 function.
37188
37189 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
37190
37191 PR c++/60314
37192 * dwarf2out.c (decltype_auto_die): New static.
37193 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
37194 (gen_type_die_with_usage): Handle 'decltype(auto)'.
37195 (is_cxx_auto): Likewise.
37196
37197 2014-02-28 Ian Bolton <ian.bolton@arm.com>
37198
37199 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
37200 we are not using general regs only.
37201
37202 2014-02-28 Richard Biener <rguenther@suse.de>
37203
37204 PR target/60280
37205 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
37206 previous fix and only allow to remove trivial pre-headers
37207 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
37208 (remove_forwarder_block): Properly update the latch of a loop.
37209
37210 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
37211
37212 PR debug/59992
37213 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
37214 (cselib_preserved_hash_table): New.
37215 (preserve_constants_and_equivs): Move preserved vals to it.
37216 (cselib_find_slot): Look it up first.
37217 (cselib_init): Initialize it.
37218 (cselib_finish): Release it.
37219 (dump_cselib_table): Dump it.
37220
37221 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
37222
37223 PR debug/59992
37224 * cselib.c (remove_useless_values): Skip to avoid quadratic
37225 behavior if the condition moved from...
37226 (cselib_process_insn): ... here holds.
37227
37228 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
37229
37230 PR debug/57232
37231 * var-tracking.c (vt_initialize): Apply the same condition to
37232 preserve the CFA base value.
37233
37234 2014-02-28 Joey Ye <joey.ye@arm.com>
37235
37236 PR target/PR60169
37237 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
37238 if reload in progress or completed.
37239
37240 2014-02-28 Tobias Burnus <burnus@net-b.de>
37241
37242 PR middle-end/60147
37243 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
37244 NAMELIST_DECL.
37245
37246 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
37247
37248 * doc/tm.texi.in (Condition Code Status): Update documention for
37249 relative locations of cc0-setter and cc0-user.
37250
37251 2014-02-27 Jeff Law <law@redhat.com>
37252
37253 PR rtl-optimization/52714
37254 * combine.c (try_combine): When splitting an unrecognized PARALLEL
37255 into two independent simple sets, if I3 is a jump, ensure the
37256 pattern we place into I3 is a (set (pc) ...).
37257
37258 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
37259 Jeff Law <law@redhat.com>
37260
37261 PR rtl-optimization/49847
37262 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
37263 are in different blocks.
37264 * doc/tm.texi (Condition Code Status): Update documention for
37265 relative locations of cc0-setter and cc0-user.
37266
37267 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
37268
37269 PR target/59222
37270 * lra.c (lra_emit_add): Check SUBREG too.
37271
37272 2014-02-27 Andreas Schwab <schwab@suse.de>
37273
37274 * config/m68k/m68k.c (m68k_option_override): Disable
37275 -flive-range-shrinkage for classic m68k.
37276 (m68k_override_options_after_change): Likewise.
37277
37278 2014-02-27 Marek Polacek <polacek@redhat.com>
37279
37280 PR middle-end/59223
37281 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
37282 -Wmaybe-uninitialized.
37283
37284 2014-02-27 Alan Modra <amodra@gmail.com>
37285
37286 PR target/57936
37287 * reload1.c (emit_input_reload_insns): When reload_override_in,
37288 set old to rl->in_reg when rl->in_reg is a subreg.
37289
37290 2014-02-26 Richard Biener <rguenther@suse.de>
37291
37292 PR bootstrap/60343
37293 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
37294
37295 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
37296
37297 * common/config/i386/predicates.md (const1256_operand): Remove.
37298 (const2356_operand): New.
37299 (const_1_to_2_operand): Remove.
37300 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
37301 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
37302 (*avx512pf_gatherpf<mode>sf): Ditto.
37303 (avx512pf_gatherpf<mode>df): Ditto.
37304 (*avx512pf_gatherpf<mode>df_mask): Ditto.
37305 (*avx512pf_gatherpf<mode>df): Ditto.
37306 (avx512pf_scatterpf<mode>sf): Ditto.
37307 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
37308 (*avx512pf_scatterpf<mode>sf): Ditto.
37309 (avx512pf_scatterpf<mode>df): Ditto.
37310 (*avx512pf_scatterpf<mode>df_mask): Ditto.
37311 (*avx512pf_scatterpf<mode>df): Ditto.
37312 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
37313
37314 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
37315
37316 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
37317 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
37318 (_mm512_mask_testn_epi64_mask): Move to ...
37319 * config/i386/avx512cdintrin.h: Here.
37320 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
37321 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
37322 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
37323 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
37324 TARGET_AVX512F from TARGET_AVX512CD.
37325
37326 2014-02-26 Richard Biener <rguenther@suse.de>
37327
37328 PR ipa/60327
37329 * ipa.c (walk_polymorphic_call_targets): Properly guard
37330 call to inline_update_overall_summary.
37331
37332 2014-02-26 Bin Cheng <bin.cheng@arm.com>
37333
37334 PR target/60280
37335 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
37336 and latches only if requested. Fix latch if it is removed.
37337 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
37338 LOOPS_HAVE_PREHEADERS.
37339
37340 2014-02-25 Andrew Pinski <apinski@cavium.com>
37341
37342 * builtins.c (expand_builtin_thread_pointer): Create a new target
37343 when the target is NULL.
37344
37345 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
37346
37347 PR rtl-optimization/60317
37348 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
37349 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
37350 * lra-assigns.c: Include params.h.
37351 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
37352 other reload pseudos considerations.
37353
37354 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37355
37356 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
37357 to use canonical form for nor<mode>3.
37358
37359 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37360
37361 PR target/55426
37362 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
37363 conversions.
37364
37365 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
37366
37367 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
37368 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
37369 (ix86_handle_option): Handle OPT_mprefetchwt1.
37370 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
37371 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
37372 PREFETCHWT1 CPUID.
37373 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
37374 OPTION_MASK_ISA_PREFETCHWT1.
37375 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
37376 (PTA_PREFETCHWT1): New.
37377 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
37378 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
37379 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
37380 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
37381 (*prefetch_avx512pf_<mode>_: Change into ...
37382 (*prefetch_prefetchwt1_<mode>: This.
37383 * config/i386/i386.opt (mprefetchwt1): New.
37384 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
37385 (_mm_prefetch): Handle intent to write.
37386 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
37387
37388 2014-02-25 Richard Biener <rguenther@suse.de>
37389
37390 PR middle-end/60291
37391 * emit-rtl.c (mem_attrs_htab): Remove.
37392 (mem_attrs_htab_hash): Likewise.
37393 (mem_attrs_htab_eq): Likewise.
37394 (set_mem_attrs): Always allocate new mem-attrs when something changed.
37395 (init_emit_once): Do not allocate mem_attrs_htab.
37396
37397 2014-02-25 Richard Biener <rguenther@suse.de>
37398
37399 PR lto/60319
37400 * lto-opts.c (lto_write_options): Output non-explicit conservative
37401 -fwrapv, -fno-trapv and -fno-strict-overflow.
37402 * lto-wrapper.c (merge_and_complain): Handle merging those options.
37403 (run_gcc): And pass them through.
37404
37405 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
37406
37407 * sel-sched.c (calculate_new_fences): New parameter ptime.
37408 Calculate it as a maximum over all fence cycles.
37409 (sel_sched_region_2): Adjust the call to calculate_new_fences.
37410 Print the final schedule timing when sched_verbose.
37411
37412 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
37413
37414 PR rtl-optimization/60292
37415 * sel-sched.c (fill_vec_av_set): Do not reset target availability
37416 bit fot the fence instruction.
37417
37418 2014-02-24 Alangi Derick <alangiderick@gmail.com>
37419
37420 * calls.h: Fix typo in comment.
37421
37422 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
37423
37424 * config/pa/pa.c (pa_output_move_double): Don't valididate when
37425 adjusting offsetable addresses.
37426
37427 2014-02-24 Guozhi Wei <carrot@google.com>
37428
37429 * sparseset.h (sparseset_pop): Fix the wrong index.
37430
37431 2014-02-24 Walter Lee <walt@tilera.com>
37432
37433 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
37434 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
37435 triplet.
37436 * common/config/tilegx/tilegx-common.c
37437 (TARGET_DEFAULT_TARGET_FLAGS): Define.
37438 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
37439 (LINK_SPEC): Ditto.
37440 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
37441 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
37442 (tilegx_gimplify_va_arg_expr): Handle big endian.
37443 (tilegx_expand_unaligned_load): Ditto.
37444 (tilegx_expand_unaligned_store): Ditto.
37445 (TARGET_RETURN_IN_MSB): New.
37446 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
37447 (TARGET_ENDIAN_DEFAULT): New.
37448 (TARGET_BIG_ENDIAN): Handle big endian.
37449 (BYTES_BIG_ENDIAN): Ditto.
37450 (WORDS_BIG_ENDIAN): Ditto.
37451 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
37452 (ENDIAN_SPEC): New.
37453 (EXTRA_SPECS): New.
37454 * config/tilegx/tilegx.md (extv): Handle big endian.
37455 (extzv): Ditto.
37456 (insn_st<n>): Ditto.
37457 (insn_st<n>_add<bitsuffix>): Ditto.
37458 (insn_stnt<n>): Ditto.
37459 (insn_stnt<n>_add<bitsuffix>):Ditto.
37460 (vec_interleave_highv8qi): Handle big endian.
37461 (vec_interleave_highv8qi_be): New.
37462 (vec_interleave_highv8qi_le): New.
37463 (insn_v1int_h): Handle big endian.
37464 (vec_interleave_lowv8qi): Handle big endian.
37465 (vec_interleave_lowv8qi_be): New.
37466 (vec_interleave_lowv8qi_le): New.
37467 (insn_v1int_l): Handle big endian.
37468 (vec_interleave_highv4hi): Handle big endian.
37469 (vec_interleave_highv4hi_be): New.
37470 (vec_interleave_highv4hi_le): New.
37471 (insn_v2int_h): Handle big endian.
37472 (vec_interleave_lowv4hi): Handle big endian.
37473 (vec_interleave_lowv4hi_be): New.
37474 (vec_interleave_lowv4hi_le): New.
37475 (insn_v2int_l): Handle big endian.
37476 (vec_interleave_highv2si): Handle big endian.
37477 (vec_interleave_highv2si_be): New.
37478 (vec_interleave_highv2si_le): New.
37479 (insn_v4int_h): Handle big endian.
37480 (vec_interleave_lowv2si): Handle big endian.
37481 (vec_interleave_lowv2si_be): New.
37482 (vec_interleave_lowv2si_le): New.
37483 (insn_v4int_l): Handle big endian.
37484 * config/tilegx/tilegx.opt (mbig-endian): New option.
37485 (mlittle-endian): New option.
37486 * doc/install.texi: Document tilegxbe-linux.
37487 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
37488
37489 2014-02-24 Martin Jambor <mjambor@suse.cz>
37490
37491 PR ipa/60266
37492 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
37493 there are no parameter descriptors.
37494
37495 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
37496
37497 PR rtl-optimization/60268
37498 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
37499 initialization to ...
37500 (sched_rgn_init): ... here.
37501 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
37502
37503 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
37504
37505 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
37506 names.
37507
37508 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
37509
37510 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
37511 definition.
37512
37513 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
37514
37515 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
37516 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
37517
37518 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
37519
37520 * config/microblaze/predicates.md: Add cmp_op predicate.
37521 * config/microblaze/microblaze.md: Add branch_compare instruction
37522 which uses cmp_op predicate and emits cmp insn before branch.
37523 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
37524 to microblaze_expand_conditional_branch and consolidate logic.
37525 (microblaze_expand_conditional_branch): emit branch_compare
37526 insn instead of handling cmp op separate from branch insn.
37527
37528 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37529
37530 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
37531 to permit subregs.
37532
37533 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37534
37535 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
37536 define_insn with define_expand and new define_insn
37537 *altivec_lve<VI_char>x_internal.
37538 (altivec_stve<VI_char>x): Replace define_insn with define_expand
37539 and new define_insn *altivec_stve<VI_char>x_internal.
37540 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
37541 prototype.
37542 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
37543 lve*x built-ins.
37544 (altivec_expand_stvex_be): New function.
37545
37546 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
37547
37548 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
37549 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
37550 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
37551 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
37552
37553 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
37554
37555 PR target/60298
37556 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
37557 instead of emit_move_insn.
37558
37559 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37560
37561 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
37562 vspltw with vsldoi.
37563 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
37564 gen_altivec_vsumsws.
37565
37566 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37567
37568 * config/rs6000/altivec.md (altivec_lvxl): Rename as
37569 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
37570 (altivec_lvxl_<mode>): New define_expand incorporating
37571 -maltivec=be semantics where needed.
37572 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
37573 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
37574 semantics where needed.
37575 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
37576 (altivec_stvx_<mode>): New define_expand incorporating
37577 -maltivec=be semantics where needed.
37578 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
37579 VM2 iterator instead of V4SI.
37580 (altivec_stvxl_<mode>): New define_expand incorporating
37581 -maltivec=be semantics where needed.
37582 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
37583 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
37584 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
37585 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
37586 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
37587 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
37588 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
37589 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
37590 ALTIVEC_BUILTIN_STVXL.
37591 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
37592 (altivec_expand_stvx_be): Likewise.
37593 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
37594 (altivec_expand_lvx_be): Likewise.
37595 (altivec_expand_stvx_be): Likewise.
37596 (altivec_expand_builtin): Add cases for
37597 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
37598 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
37599 (altivec_init_builtins): Add definitions for
37600 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
37601 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
37602
37603 2014-02-21 Catherine Moore <clm@codesourcery.com>
37604
37605 * doc/invoke.texi (mvirt, mno-virt): Document.
37606 * config/mips/mips.opt (mvirt): New option.
37607 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
37608
37609 2014-02-21 Richard Biener <rguenther@suse.de>
37610
37611 PR tree-optimization/60276
37612 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
37613 (STMT_VINFO_MIN_NEG_DIST): New macro.
37614 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
37615 STMT_VINFO_MIN_NEG_DIST.
37616 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
37617 made for negative dependence distances still hold.
37618
37619 2014-02-21 Richard Biener <rguenther@suse.de>
37620
37621 PR middle-end/60291
37622 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
37623 DECL_INITIAL for globals not in the current function context.
37624
37625 2014-02-21 Jakub Jelinek <jakub@redhat.com>
37626
37627 PR tree-optimization/56490
37628 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
37629 * tree-ssa-uninit.c: Include params.h.
37630 (compute_control_dep_chain): Add num_calls argument, return false
37631 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
37632 num_calls to recursive call.
37633 (find_predicates): Change dep_chain into normal array,
37634 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
37635 variable and adjust compute_control_dep_chain caller.
37636 (find_def_preds): Likewise.
37637
37638 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
37639
37640 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
37641 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
37642
37643 2014-02-21 Nick Clifton <nickc@redhat.com>
37644
37645 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
37646 (pushhi1): Likewise.
37647 (popqi1): Add mode to pre_dec.
37648 (pophi1): Likewise.
37649
37650 2014-02-21 Jakub Jelinek <jakub@redhat.com>
37651
37652 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
37653 mode for mask of V8SFmode permutation.
37654
37655 2014-02-20 Richard Henderson <rth@redhat.com>
37656
37657 PR c++/60272
37658 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
37659 a new pseudo for OLDVAL.
37660
37661 2014-02-20 Jakub Jelinek <jakub@redhat.com>
37662
37663 PR target/57896
37664 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
37665 gen_reg_rtx if d->testing_p.
37666 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
37667 if d->testing_p and we will certainly return true.
37668 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
37669 if d->testing_p.
37670
37671 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
37672
37673 * emit-rtl.c (gen_reg_rtx): Assert that
37674 crtl->emit.regno_pointer_align_length is non-zero.
37675
37676 2014-02-20 Richard Henderson <rth@redhat.com>
37677
37678 PR c++/60272
37679 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
37680 on failure the store back into EXPECT.
37681
37682 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
37683 Sandra Loosemore <sandra@codesourcery.com>
37684
37685 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
37686 * config/nios2/nios2.c (nios2_function_profiler): Add
37687 -fPIC (flag_pic == 2) support.
37688 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
37689 (nios2_large_offset_p): New function.
37690 (nios2_unspec_reloc_p): Move up position, update to use
37691 nios2_large_offset_p.
37692 (nios2_unspec_address): Remove function.
37693 (nios2_unspec_offset): New function.
37694 (nios2_large_got_address): New function.
37695 (nios2_got_address): Add large offset support.
37696 (nios2_legitimize_tls_address): Update usage of removed and new
37697 functions.
37698 (nios2_symbol_binds_local_p): New function.
37699 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
37700 (nios2_legitimize_address): Update to use nios2_large_offset_p.
37701 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
37702 (nios2_print_operand): Merge H/L processing, add hiadj/lo
37703 processing for (const (unspec ...)).
37704 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
37705
37706 2014-02-20 Richard Biener <rguenther@suse.de>
37707
37708 * tree-cfg.c (replace_uses_by): Mark altered BBs before
37709 doing the substitution.
37710 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
37711
37712 2014-02-20 Martin Jambor <mjambor@suse.cz>
37713
37714 PR ipa/55260
37715 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
37716 info when checking whether lattices are bottom.
37717
37718 2014-02-20 Richard Biener <rguenther@suse.de>
37719
37720 PR middle-end/60221
37721 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
37722 regions at -O0.
37723
37724 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
37725
37726 PR ipa/58555
37727 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
37728 parameter specifying the scaling.
37729 (inline_call): Update.
37730 (want_inline_recursively): Guard division by zero.
37731 (recursive_inlining): Update.
37732 * ipa-inline.h (clone_inlined_nodes): Update.
37733
37734 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
37735
37736 PR target/60204
37737 * config/i386/i386.c (classify_argument): Pass structures of size
37738 64 bytes or less in register.
37739
37740 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
37741 Kirill Yukhin <kirill.yukhin@intel.com>
37742
37743 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
37744 (_mm_rcp28_round_ss): Ditto.
37745 (_mm_rsqrt28_round_sd): Ditto.
37746 (_mm_rsqrt28_round_ss): Ditto.
37747 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
37748 (_mm_rcp14_round_ss): Ditto.
37749 (_mm_rsqrt14_round_sd): Ditto.
37750 (_mm_rsqrt14_round_ss): Ditto.
37751 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
37752 the first input operand, get rid of match_dup.
37753 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
37754 attribute to sse.
37755 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
37756 Ditto.
37757 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
37758 operand as the first input operand, set type attribute.
37759 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
37760 Set type attribute.
37761 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
37762 operand as the first input operand, set type attribute.
37763
37764 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37765
37766 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
37767 bit of zero.
37768
37769 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
37770
37771 PR target/60207
37772 * config/i386/i386.c (construct_container): Remove TFmode check
37773 for X86_64_INTEGER_CLASS.
37774
37775 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
37776
37777 PR target/59794
37778 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
37779 only when -Wpsabi is enabled.
37780
37781 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
37782
37783 PR target/59799
37784 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
37785 passing arrays in registers are the same as for structs, so remove the
37786 special case for them.
37787
37788 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
37789
37790 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
37791 destination type, extract only the valid bits if the source type is not
37792 integral and has a different mode.
37793
37794 2014-02-19 Richard Biener <rguenther@suse.de>
37795
37796 PR ipa/60243
37797 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
37798 for all calls.
37799
37800 2014-02-19 Richard Biener <rguenther@suse.de>
37801
37802 PR ipa/60243
37803 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
37804 (ipa_modify_call_arguments): Emit an argument load explicitely and
37805 preserve virtual SSA form there and for the replacement call.
37806 Do not update SSA form nor free dominance info.
37807
37808 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
37809
37810 * ipa.c (function_and_variable_visibility): Also clear WEAK
37811 flag when disolving COMDAT_GROUP.
37812
37813 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
37814
37815 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
37816 * ipa-prop.c (ipa_set_jf_known_type): Return early when
37817 not devirtualizing.
37818 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
37819 do more sanity checks.
37820 (detect_type_change): Return true when giving up early.
37821 (compute_complex_assign_jump_func): Fix type parameter of
37822 ipa_set_ancestor_jf.
37823 (compute_complex_ancestor_jump_func): Likewise.
37824 (update_jump_functions_after_inlining): Fix updating of
37825 ancestor function.
37826 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
37827
37828 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
37829
37830 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
37831 inline clones when edge disappears.
37832
37833 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
37834
37835 PR target/60203
37836 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
37837 Split 64-bit moves into 2 patterns. Do not allow the use of
37838 direct move for TDmode in little endian, since the decimal value
37839 has little endian bytes within a word, but the 64-bit pieces are
37840 ordered in a big endian fashion, and normal subreg's of TDmode are
37841 not allowed.
37842 (mov<mode>_64bit_dm): Likewise.
37843 (movtd_64bit_nodm): Likewise.
37844
37845 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
37846
37847 PR tree-optimization/60174
37848 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
37849 statement of an SSA_NAME that occurs in an abnormal PHI node.
37850
37851 2014-02-18 Jakub Jelinek <jakub@redhat.com>
37852
37853 PR sanitizer/60142
37854 * final.c (SEEN_BB): Remove.
37855 (SEEN_NOTE, SEEN_EMITTED): Renumber.
37856 (final_scan_insn): Don't force_source_line on second
37857 NOTE_INSN_BASIC_BLOCK.
37858
37859 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
37860
37861 PR target/60205
37862 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
37863 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
37864 (type_natural_mode): Warn ABI change when %zmm register is not
37865 available for AVX512F vector value passing.
37866
37867 2014-02-18 Kai Tietz <ktietz@redhat.com>
37868
37869 PR target/60193
37870 * config/i386/i386.c (ix86_expand_prologue): Use value in
37871 rax register as displacement when restoring %r10 or %rax.
37872 Fix wrong offset when restoring both registers.
37873
37874 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
37875
37876 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
37877 assertion with conditional return.
37878
37879 2014-02-18 Jakub Jelinek <jakub@redhat.com>
37880 Uros Bizjak <ubizjak@gmail.com>
37881
37882 PR driver/60233
37883 * config/i386/driver-i386.c (host_detect_local_cpu): If
37884 YMM state is not saved by the OS, also clear has_f16c. Move
37885 CPUID 0x80000001 handling before YMM state saving checking.
37886
37887 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
37888
37889 PR rtl-optimization/58960
37890 * haifa-sched.c (alloc_global_sched_pressure_data): New,
37891 factored out from ...
37892 (sched_init): ... here.
37893 (free_global_sched_pressure_data): New, factored out from ...
37894 (sched_finish): ... here.
37895 * sched-int.h (free_global_sched_pressure_data): Declare.
37896 * sched-rgn.c (nr_regions_initial): New static global.
37897 (haifa_find_rgns): Initialize it.
37898 (schedule_region): Disable sched-pressure for the newly
37899 generated regions.
37900
37901 2014-02-17 Richard Biener <rguenther@suse.de>
37902
37903 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
37904 release SSA defs of pattern stmts.
37905
37906 2014-02-17 Richard Biener <rguenther@suse.de>
37907
37908 * tree-inline.c (expand_call_inline): Release the virtual
37909 operand defined by the call we are about to inline.
37910
37911 2014-02-17 Richard Biener <rguenther@suse.de>
37912
37913 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
37914
37915 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
37916 Ilya Tocar <ilya.tocar@intel.com>
37917
37918 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
37919 arguments order in builtin.
37920 (_mm512_permutexvar_epi64): Ditto.
37921 (_mm512_mask_permutexvar_epi64): Ditto
37922 (_mm512_maskz_permutexvar_epi32): Ditto
37923 (_mm512_permutexvar_epi32): Ditto
37924 (_mm512_mask_permutexvar_epi32): Ditto
37925
37926 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37927
37928 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
37929 (p8_vmrgow): Likewise.
37930
37931 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37932
37933 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
37934 endian targets.
37935
37936 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
37937
37938 PR target/60203
37939 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
37940 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
37941 into 64-bit and 32-bit moves. On 64-bit moves, add support for
37942 using direct move instructions on ISA 2.07. Also adjust
37943 instruction length for 64-bit.
37944 (mov<mode>_64bit, TFmode/TDmode): Likewise.
37945 (mov<mode>_32bit, TFmode/TDmode): Likewise.
37946
37947 2014-02-15 Alan Modra <amodra@gmail.com>
37948
37949 PR target/58675
37950 PR target/57935
37951 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
37952 find_replacement on parts of insn rtl that might be reloaded.
37953
37954 2014-02-15 Richard Biener <rguenther@suse.de>
37955
37956 PR tree-optimization/60183
37957 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
37958 (tree_ssa_phiprop): Calculate and free post-dominators.
37959
37960 2014-02-14 Jeff Law <law@redhat.com>
37961
37962 PR rtl-optimization/60131
37963 * ree.c (get_extended_src_reg): New function.
37964 (combine_reaching_defs): Use it rather than assuming location of REG.
37965 (find_and_remove_re): Verify first operand of extension is
37966 a REG before adding the insns to the copy list.
37967
37968 2014-02-14 Roland McGrath <mcgrathr@google.com>
37969
37970 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
37971 * configure: Regenerated.
37972 * config.in: Regenerated.
37973 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
37974 instead of ASM_SHORT.
37975
37976 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
37977 Richard Earnshaw <rearnsha@arm.com>
37978
37979 PR rtl-optimization/59535
37980 * lra-constraints.c (process_alt_operands): Encourage alternative
37981 when unassigned pseudo class is superset of the alternative class.
37982 (inherit_reload_reg): Don't inherit when optimizing for code size.
37983 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
37984 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
37985 modes not less than 4 for Thumb1.
37986
37987 2014-02-14 Kyle McMartin <kyle@redhat.com>
37988
37989 PR pch/60010
37990 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
37991
37992 2014-02-14 Richard Biener <rguenther@suse.de>
37993
37994 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
37995 (get_frame_arg): Drop the assert with langhook types_compatible_p.
37996 Do not strip INDIRECT_REFs.
37997
37998 2014-02-14 Richard Biener <rguenther@suse.de>
37999
38000 PR lto/60179
38001 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
38002 DECL_FUNCTION_SPECIFIC_TARGET.
38003 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
38004 * tree-streamer-out.c (pack_ts_target_option): Remove.
38005 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
38006 (write_ts_function_decl_tree_pointers): Do not stream
38007 DECL_FUNCTION_SPECIFIC_TARGET.
38008 * tree-streamer-in.c (unpack_ts_target_option): Remove.
38009 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
38010 (lto_input_ts_function_decl_tree_pointers): Do not stream
38011 DECL_FUNCTION_SPECIFIC_TARGET.
38012
38013 2014-02-14 Jakub Jelinek <jakub@redhat.com>
38014
38015 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
38016 (get_initial_def_for_induction, vectorizable_induction): Ignore
38017 debug stmts when looking for exit_phi.
38018 (vectorizable_live_operation): Fix up condition.
38019
38020 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
38021
38022 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
38023 nreverse() because it changes the content of original tree list.
38024
38025 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
38026
38027 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
38028 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
38029
38030 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
38031
38032 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
38033 GNU coding standards.
38034
38035 2014-02-13 Jakub Jelinek <jakub@redhat.com>
38036
38037 PR debug/60152
38038 * dwarf2out.c (gen_subprogram_die): Don't call
38039 add_calling_convention_attribute if subr_die is old_die.
38040
38041 2014-02-13 Sharad Singhai <singhai@google.com>
38042
38043 * doc/optinfo.texi: Fix order of nodes.
38044
38045 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
38046
38047 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
38048 operands[2], not operands[3].
38049
38050 2014-02-13 Richard Biener <rguenther@suse.de>
38051
38052 PR bootstrap/59878
38053 * doc/install.texi (ISL): Update recommended version to 0.12.2,
38054 mention the possibility of an in-tree build.
38055 (CLooG): Update recommended version to 0.18.1, mention the
38056 possibility of an in-tree build and clarify that the ISL
38057 bundled with CLooG does not work.
38058
38059 2014-02-13 Jakub Jelinek <jakub@redhat.com>
38060
38061 PR target/43546
38062 * expr.c (compress_float_constant): If x is a hard register,
38063 extend into a pseudo and then move to x.
38064
38065 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
38066
38067 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
38068 caused by bad second argument to warning_at() with -mhotpatch and
38069 nested functions (e.g. with gfortran).
38070
38071 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
38072
38073 * opts.c (option_name): Remove "enabled by default" rider.
38074
38075 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
38076
38077 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
38078
38079 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
38080 Uros Bizjak <ubizjak@gmail.com>
38081
38082 PR target/60151
38083 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
38084 * configure: Regenerated.
38085
38086 2014-02-12 Richard Biener <rguenther@suse.de>
38087
38088 * vec.c (vec_prefix::calculate_allocation): Move as
38089 inline variant to vec.h.
38090 (vec_prefix::calculate_allocation_1): New out-of-line version.
38091 * vec.h (vec_prefix::calculate_allocation_1): Declare.
38092 (vec_prefix::m_has_auto_buf): Rename to ...
38093 (vec_prefix::m_using_auto_storage): ... this.
38094 (vec_prefix::calculate_allocation): Inline the easy cases
38095 and dispatch to calculate_allocation_1 which doesn't need the
38096 prefix address.
38097 (va_heap::reserve): Use gcc_checking_assert.
38098 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
38099 m_using_auto_storage.
38100 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
38101 member and adjust.
38102 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
38103 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
38104 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
38105
38106 2014-02-12 Richard Biener <rguenther@suse.de>
38107
38108 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
38109 when we found a dependence.
38110
38111 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
38112
38113 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
38114 common code...
38115 (maybe_fold_stmt): ... into this new function.
38116 * omp-low.c (lower_omp): Update comment.
38117
38118 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
38119 last use.
38120
38121 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
38122 dereference.
38123
38124 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
38125
38126 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
38127 identifiers in comments.
38128 (cortexa53_extra_costs): Likewise.
38129 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
38130 (cortexa7_extra_costs): Likewise.
38131 (cortexa12_extra_costs): Likewise.
38132 (cortexa15_extra_costs): Likewise.
38133 (v7m_extra_costs): Likewise.
38134
38135 2014-02-12 Richard Biener <rguenther@suse.de>
38136
38137 PR middle-end/60092
38138 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
38139 of posix_memalign being successful.
38140 (lower_stmt): Restrict lowering of posix_memalign to when
38141 -ftree-bit-ccp is enabled.
38142
38143 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
38144
38145 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
38146 arg_loc.
38147 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
38148
38149 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
38150
38151 PR rtl-optimization/60116
38152 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
38153 other_insn once the combination has been validated.
38154
38155 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
38156
38157 PR lto/59468
38158 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
38159 and wrapper.
38160 * ipa-devirt.c: Include demangle.h
38161 (odr_violation_reported): New static variable.
38162 (add_type_duplicate): Update odr_violations.
38163 (maybe_record_node): Add completep parameter; update it.
38164 (record_target_from_binfo): Add COMPLETEP parameter;
38165 update it as needed.
38166 (possible_polymorphic_call_targets_1): Likewise.
38167 (struct polymorphic_call_target_d): Add nonconstruction_targets;
38168 rename FINAL to COMPLETE.
38169 (record_targets_from_bases): Sanity check we found the binfo;
38170 fix COMPLETEP updating.
38171 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
38172 parameter, fix computing of COMPLETEP.
38173 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
38174 at LTO time do demangling.
38175 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
38176 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
38177 parameter.
38178 (gimple_get_virt_method_for_binfo): Likewise.
38179 * gimple-fold.h (gimple_get_virt_method_for_binfo,
38180 gimple_get_virt_method_for_vtable): Update prototypes.
38181
38182 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
38183
38184 PR target/49008
38185 * genautomata.c (add_presence_absence): Fix typo with
38186 {final_}presence_list.
38187
38188 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
38189
38190 PR target/60137
38191 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
38192 for VSX/Altivec vectors that land in GPR registers.
38193
38194 2014-02-11 Richard Henderson <rth@redhat.com>
38195 Jakub Jelinek <jakub@redhat.com>
38196
38197 PR debug/59776
38198 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
38199 around drhs if type conversion to lacc->type is not useless.
38200
38201 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38202
38203 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
38204 tuning struct.
38205 (cortex-a57.cortex-a53): Likewise.
38206 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
38207
38208 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38209
38210 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
38211 arm_restrict_it.
38212
38213 2014-02-11 Renlin Li <Renlin.Li@arm.com>
38214
38215 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
38216 add_options_for_arm_vfp3.
38217
38218 2014-02-11 Jeff Law <law@redhat.com>
38219
38220 PR middle-end/54041
38221 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
38222 object with an undesirable mode.
38223
38224 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38225
38226 PR libgomp/60107
38227 * config/i386/sol2-9.h: New file.
38228 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
38229 *-*-solaris2.9*): Use it.
38230
38231 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
38232
38233 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
38234 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
38235
38236 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
38237
38238 * config/microblaze/microblaze.c: Extend mcpu version format
38239
38240 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
38241
38242 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
38243
38244 2014-02-10 Richard Henderson <rth@redhat.com>
38245
38246 PR target/59927
38247 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
38248 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
38249 ms-abi vs -mno-accumulate-outgoing-args.
38250 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
38251 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
38252 respect to ms-abi.
38253
38254 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
38255
38256 PR middle-end/60080
38257 * cfgexpand.c (expand_asm_operands): Attach source location to
38258 ASM_INPUT rtx objects.
38259 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
38260
38261 2014-02-10 Nick Clifton <nickc@redhat.com>
38262
38263 * config/mn10300/mn10300.c (popcount): New function.
38264 (mn10300_expand_prologue): Include saved registers in stack usage
38265 count.
38266
38267 2014-02-10 Jeff Law <law@redhat.com>
38268
38269 PR middle-end/52306
38270 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
38271 when changing the SET_DEST of a prior insn to avoid an input reload.
38272
38273 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38274
38275 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
38276 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
38277 -mcall-openbsd, or -mcall-linux.
38278 (CC1_ENDIAN_BIG_SPEC): Remove.
38279 (CC1_ENDIAN_LITTLE_SPEC): Remove.
38280 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
38281 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
38282 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
38283 and %cc1_endian_default.
38284 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
38285
38286 2014-02-10 Richard Biener <rguenther@suse.de>
38287
38288 PR tree-optimization/60115
38289 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
38290 MEM_REF handling. Properly verify that the accesses are not
38291 out of the objects bound.
38292
38293 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38294
38295 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
38296 coretex to cortex.
38297
38298 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
38299
38300 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
38301 proper constants and fix formatting.
38302 (possible_polymorphic_call_targets): Fix formatting.
38303
38304 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
38305 Ilya Tocar <ilya.tocar@intel.com>
38306
38307 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
38308 (_mm512_loadu_epi32): Renamed into...
38309 (_mm512_loadu_si512): This.
38310 (_mm512_storeu_epi32): Renamed into...
38311 (_mm512_storeu_si512): This.
38312 (_mm512_maskz_ceil_ps): Removed.
38313 (_mm512_maskz_ceil_pd): Ditto.
38314 (_mm512_maskz_floor_ps): Ditto.
38315 (_mm512_maskz_floor_pd): Ditto.
38316 (_mm512_floor_round_ps): Ditto.
38317 (_mm512_floor_round_pd): Ditto.
38318 (_mm512_ceil_round_ps): Ditto.
38319 (_mm512_ceil_round_pd): Ditto.
38320 (_mm512_mask_floor_round_ps): Ditto.
38321 (_mm512_mask_floor_round_pd): Ditto.
38322 (_mm512_mask_ceil_round_ps): Ditto.
38323 (_mm512_mask_ceil_round_pd): Ditto.
38324 (_mm512_maskz_floor_round_ps): Ditto.
38325 (_mm512_maskz_floor_round_pd): Ditto.
38326 (_mm512_maskz_ceil_round_ps): Ditto.
38327 (_mm512_maskz_ceil_round_pd): Ditto.
38328 (_mm512_expand_pd): Ditto.
38329 (_mm512_expand_ps): Ditto.
38330 * config/i386/i386.c (ix86_builtins): Remove
38331 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
38332 (bdesc_args): Ditto.
38333 * config/i386/predicates.md (const1256_operand): New.
38334 (const_1_to_2_operand): Ditto.
38335 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
38336 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
38337 (*avx512pf_gatherpf<mode>sf): Ditto.
38338 (avx512pf_gatherpf<mode>df): Ditto.
38339 (*avx512pf_gatherpf<mode>df_mask): Ditto.
38340 (*avx512pf_gatherpf<mode>df): Ditto.
38341 (avx512pf_scatterpf<mode>sf): Ditto.
38342 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
38343 (*avx512pf_scatterpf<mode>sf): Ditto.
38344 (avx512pf_scatterpf<mode>df): Ditto.
38345 (*avx512pf_scatterpf<mode>df_mask): Ditto.
38346 (*avx512pf_scatterpf<mode>df): Ditto.
38347 (avx512f_expand<mode>): Removed.
38348 (<shift_insn><mode>3<mask_name>): Change predicate type.
38349
38350 2014-02-08 Jakub Jelinek <jakub@redhat.com>
38351
38352 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
38353 not at the end of datarefs vector use ordered_remove to avoid
38354 reordering datarefs vector.
38355
38356 PR c/59984
38357 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
38358 mark local addressable non-static vars as GOVD_PRIVATE
38359 instead of GOVD_LOCAL.
38360 * omp-low.c (lower_omp_for): Move gimple_bind_vars
38361 and BLOCK_VARS of gimple_bind_block to new_stmt rather
38362 than copying them.
38363
38364 PR middle-end/60092
38365 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
38366 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
38367 assume_aligned or alloc_align attributes.
38368 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
38369 arguments. Handle also assume_aligned and alloc_align attributes.
38370 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
38371 calls to functions with assume_aligned or alloc_align attributes.
38372 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
38373
38374 2014-02-08 Terry Guo <terry.guo@arm.com>
38375
38376 * doc/invoke.texi: Document ARM -march=armv7e-m.
38377
38378 2014-02-08 Jakub Jelinek <jakub@redhat.com>
38379
38380 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
38381 flag on __cilkrts_rethrow builtin.
38382
38383 PR ipa/60026
38384 * ipa-cp.c (determine_versionability): Fail at -O0
38385 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
38386 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
38387
38388 Revert:
38389 2014-02-04 Jakub Jelinek <jakub@redhat.com>
38390
38391 PR ipa/60026
38392 * tree-inline.c (copy_forbidden): Fail for
38393 __attribute__((optimize (0))) functions.
38394
38395 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
38396
38397 * varpool.c: Include pointer-set.h.
38398 (varpool_remove_unreferenced_decls): Variables in other partitions
38399 will not be output; be however careful to not lose information
38400 about partitioning.
38401
38402 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
38403
38404 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
38405 lookup in the vtable constructor.
38406
38407 2014-02-07 Jeff Law <law@redhat.com>
38408
38409 PR target/40977
38410 * config/m68k/m68k.md (ashldi_extsi): Turn into a
38411 define_insn_and_split.
38412
38413 * ipa-inline.c (inline_small_functions): Fix typos.
38414
38415 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
38416
38417 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
38418 (s390_can_use_return_insn): Declare.
38419 * config/s390/s390.h (EPILOGUE_USES): Define.
38420 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
38421 instructions.
38422 (s390_chunkify_start): Handle return JUMP_LABELs.
38423 (s390_early_mach): Emit a main_pool instruction on the entry edge.
38424 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
38425 (s390_can_use_return_insn): New functions.
38426 (s390_fix_long_loop_prediction): Handle conditional returns.
38427 (TARGET_SET_UP_BY_PROLOGUE): Define.
38428 * config/s390/s390.md (ANY_RETURN): New code iterator.
38429 (*creturn, *csimple_return, return, simple_return): New patterns.
38430
38431 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
38432
38433 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
38434 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
38435 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
38436 REG_CFA_RESTORE list when deciding not to restore a register.
38437
38438 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
38439
38440 * config/s390/s390.c: Include tree-pass.h and context.h.
38441 (s390_early_mach): New function, split out from...
38442 (s390_emit_prologue): ...here.
38443 (pass_data_s390_early_mach): New pass structure.
38444 (pass_s390_early_mach): New class.
38445 (s390_option_override): Create and register early_mach pass.
38446 Move to end of file.
38447
38448 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
38449
38450 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
38451 to match for the exit block.
38452
38453 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38454
38455 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
38456 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
38457 Reject misaligned operands.
38458
38459 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38460
38461 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
38462
38463 2014-02-07 Richard Biener <rguenther@suse.de>
38464
38465 PR middle-end/60092
38466 * gimple-low.c (lower_builtin_posix_memalign): New function.
38467 (lower_stmt): Call it to lower posix_memalign in a way
38468 to make alignment info accessible.
38469
38470 2014-02-07 Jakub Jelinek <jakub@redhat.com>
38471
38472 PR c++/60082
38473 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
38474 __builtin_setjmp_receiver.
38475
38476 2014-02-07 Richard Biener <rguenther@suse.de>
38477
38478 PR middle-end/60092
38479 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
38480 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
38481 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
38482 Handle BUILT_IN_POSIX_MEMALIGN.
38483 (find_func_clobbers): Likewise.
38484 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
38485 (call_may_clobber_ref_p_1): Likewise.
38486
38487 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
38488
38489 PR ipa/59918
38490 * ipa-devirt.c (record_target_from_binfo): Remove overactive
38491 sanity check.
38492
38493 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
38494
38495 PR ipa/59469
38496 * lto-cgraph.c (lto_output_node): Use
38497 symtab_get_symbol_partitioning_class.
38498 (lto_output_varpool_node): likewise.
38499 (symtab_get_symbol_partitioning_class): Move here from
38500 lto/lto-partition.c
38501 * cgraph.h (symbol_partitioning_class): Likewise.
38502 (symtab_get_symbol_partitioning_class): Declare.
38503
38504 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
38505
38506 * ggc.h (ggc_internal_cleared_alloc): New macro.
38507 * vec.h (vec_safe_copy): Handle memory stats.
38508 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
38509 * target-globals.c (save_target_globals): Likewise.
38510
38511 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
38512
38513 PR target/60077
38514 * expr.c (emit_move_resolve_push): Export; be bit more selective
38515 on when to clear alias set.
38516 * expr.h (emit_move_resolve_push): Declare.
38517 * function.h (struct function): Add tail_call_marked.
38518 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
38519 * config/i386/i386-protos.h (ix86_expand_push): Remove.
38520 * config/i386/i386.md (TImode move expander): De not call
38521 ix86_expand_push.
38522 (FP push expanders): Preserve memory attributes.
38523 * config/i386/sse.md (push<mode>1): Remove.
38524 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
38525 (ix86_expand_push): Remove.
38526 * config/i386/mmx.md (push<mode>1): Remove.
38527
38528 2014-02-06 Jakub Jelinek <jakub@redhat.com>
38529
38530 PR rtl-optimization/60030
38531 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
38532 lopart with paradoxical subreg before shifting it up by hprec.
38533
38534 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38535
38536 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
38537 Remove extra newline at end of file.
38538 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
38539 (arm_issue_rate): Handle cortexa57.
38540 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
38541 (cortex-a57.cortex-a53): Likewise.
38542
38543 2014-02-06 Jakub Jelinek <jakub@redhat.com>
38544
38545 PR target/59575
38546 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
38547 don't record in REG_FRAME_RELATED_EXPR registers not set in that
38548 bitmask.
38549 (arm_expand_prologue): Adjust all callers.
38550 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
38551 info, registers also at the lowest numbered registers side. Use
38552 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
38553 XEXP.
38554
38555 PR debug/59992
38556 * var-tracking.c (adjust_mems): Before adding a SET to
38557 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
38558
38559 2014-02-06 Alan Modra <amodra@gmail.com>
38560
38561 PR target/60032
38562 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
38563 change SDmode to DDmode when lra_in_progress.
38564
38565 2014-02-06 Jakub Jelinek <jakub@redhat.com>
38566
38567 PR middle-end/59150
38568 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
38569 free_data_ref on the dr first, and before goto again also set dr
38570 to the next dr. For simd_lane_access, free old datarefs[i] before
38571 overwriting it. For get_vectype_for_scalar_type failure, don't
38572 free_data_ref if simd_lane_access.
38573
38574 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
38575
38576 PR target/60062
38577 * tree.h (opts_for_fn): New inline function.
38578 (opt_for_fn): Define.
38579 * config/i386/i386.c (ix86_function_regparm): Use
38580 opt_for_fn (decl, optimize) instead of optimize.
38581
38582 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
38583
38584 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
38585 for SYMBOL_REF in large memory model.
38586
38587 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38588
38589 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
38590 and crypto support.
38591 (cortex-a57): Likewise.
38592 (cortex-a57.cortex-a53): Likewise.
38593
38594 2014-02-06 Yury Gribov <y.gribov@samsung.com>
38595 Kugan Vivekanandarajah <kuganv@linaro.org>
38596
38597 * config/arm/arm.c (arm_vector_alignment_reachable): Check
38598 unaligned_access.
38599 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
38600
38601 2014-02-06 Richard Biener <rguenther@suse.de>
38602
38603 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
38604 set_loop_copy and initialize_original_copy_tables.
38605
38606 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
38607
38608 * config/aarch64/aarch64-simd.md
38609 (aarch64_ashr_simddi): Change QI to SI.
38610
38611 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
38612 Jakub Jelinek <jakub@redhat.com>
38613
38614 PR middle-end/60013
38615 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
38616 of the dataflow.
38617
38618 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
38619
38620 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
38621 CODE_FOR_altivec_vpku[hw]um to
38622 CODE_FOR_altivec_vpku[hw]um_direct.
38623 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
38624 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
38625 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
38626 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
38627
38628 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
38629
38630 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
38631 generation for -maltivec=be.
38632 (altivec_vsumsws): Simplify redundant test.
38633
38634 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
38635
38636 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
38637 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
38638 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
38639 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
38640 gen_altivec_vpkuwum.
38641 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
38642 BYTES_BIG_ENDIAN.
38643 (altivec_vpks<VI_char>ss): Likewise.
38644 (altivec_vpks<VI_char>us): Likewise.
38645 (altivec_vpku<VI_char>us): Likewise.
38646 (altivec_vpku<VI_char>um): Likewise.
38647 (altivec_vpku<VI_char>um_direct): New (copy of
38648 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
38649 internal use).
38650 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
38651 target is little endian and -maltivec=be is not specified.
38652 (*altivec_vupkhs<VU_char>_direct): New (copy of
38653 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
38654 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
38655 target is little endian and -maltivec=be is not specified.
38656 (*altivec_vupkls<VU_char>_direct): New (copy of
38657 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
38658 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
38659 little endian and -maltivec=be is not specified.
38660 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
38661 little endian and -maltivec=be is not specified.
38662
38663 2014-02-05 Richard Henderson <rth@redhat.com>
38664
38665 PR debug/52727
38666 * combine-stack-adj.c: Revert r206943.
38667 * sched-int.h (struct deps_desc): Add last_args_size.
38668 * sched-deps.c (init_deps): Initialize it.
38669 (sched_analyze_insn): Add OUTPUT dependencies between insns that
38670 contain REG_ARGS_SIZE notes.
38671
38672 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
38673
38674 * lto-cgraph.c (asm_nodes_output): Make global.
38675 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
38676 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
38677 (driver_handle_option): Handle OPT_fwpa.
38678
38679 2014-02-05 Jakub Jelinek <jakub@redhat.com>
38680
38681 PR ipa/59947
38682 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
38683 a comment typo and formatting issue. If odr_hash hasn't been
38684 created, return vNULL and set *completep to false.
38685
38686 PR middle-end/57499
38687 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
38688 bb with no successors.
38689
38690 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
38691
38692 PR target/59718
38693 * doc/invoke.texi (-march): Clarify documentation for ARM.
38694 (-mtune): Likewise.
38695 (-mcpu): Likewise.
38696
38697 2014-02-05 Richard Biener <rguenther@suse.de>
38698
38699 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
38700 when not vectorizing because of too many alias checks.
38701 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
38702 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
38703
38704 2014-02-05 Nick Clifton <nickc@redhat.com>
38705
38706 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
38707 accept extended registers in any mode when compiling for the MN10300.
38708
38709 2014-02-05 Yury Gribov <y.gribov@samsung.com>
38710
38711 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
38712 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
38713 sanitization attributes.
38714 (can_inline_edge_p): Likewise.
38715 (sanitize_attrs_match_for_inline_p): New function.
38716
38717 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
38718
38719 * ipa-prop.c (detect_type_change): Shor circuit testing of
38720 type changes on THIS pointer.
38721
38722 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
38723
38724 PR target/59777
38725 * config/pa/pa.c (legitimize_tls_address): Return original address
38726 if not passed a SYMBOL_REF rtx.
38727 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
38728 addresses.
38729 (pa_emit_move_sequence): Simplify TLS source operands.
38730 (pa_legitimate_constant_p): Reject all TLS constants.
38731 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
38732 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
38733
38734 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
38735
38736 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
38737 groups when we know they are controlled by LTO.
38738 * varasm.c (default_binds_local_p_1): If object is in other partition,
38739 it will be resolved locally.
38740
38741 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
38742
38743 * config/host-linux.c (linux_gt_pch_use_address): Don't
38744 use SSIZE_MAX because it is not always defined.
38745
38746 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
38747
38748 PR bootstrap/59913
38749 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
38750 threshold for pseudo splitting.
38751 (update_ebb_live_info): Process call argument hard registers and
38752 hard registers from insn definition too.
38753 (max_small_class_regs_num): New constant.
38754 (inherit_in_ebb): Update live hard regs through EBBs. Update
38755 reloads_num only for small register classes. Don't split for
38756 outputs of jumps.
38757
38758 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
38759
38760 PR ipa/60058
38761 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
38762 is non-null.
38763
38764 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
38765
38766 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
38767 visibility is safe.
38768
38769 2014-02-04 Marek Polacek <polacek@redhat.com>
38770
38771 * gdbinit.in (pel): Define.
38772
38773 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
38774
38775 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
38776 behavior.
38777
38778 2014-02-04 Richard Biener <rguenther@suse.de>
38779
38780 PR lto/59723
38781 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
38782 in function context local.
38783 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
38784 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
38785 similar to LTO_imported_decl_ref.
38786
38787 2014-02-04 Jakub Jelinek <jakub@redhat.com>
38788
38789 PR tree-optimization/60002
38790 * cgraphclones.c (build_function_decl_skip_args): Clear
38791 DECL_LANG_SPECIFIC.
38792
38793 PR tree-optimization/60023
38794 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
38795 false to gsi_replace.
38796 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
38797 has been in some EH region and vec_stmt could throw, add
38798 vec_stmt into the same EH region.
38799 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
38800 has no lhs, ignore it.
38801 * internal-fn.c (expand_MASK_LOAD): Likewise.
38802
38803 PR ipa/60026
38804 * tree-inline.c (copy_forbidden): Fail for
38805 __attribute__((optimize (0))) functions.
38806
38807 PR other/58712
38808 * omp-low.c (simd_clone_struct_copy): If from->inbranch
38809 is set, copy one less argument.
38810 (expand_simd_clones): Don't subtract clone_info->inbranch
38811 from simd_clone_struct_alloc argument.
38812
38813 PR rtl-optimization/57915
38814 * recog.c (simplify_while_replacing): If all unary/binary/relational
38815 operation arguments are constant, attempt to simplify those.
38816
38817 PR middle-end/59261
38818 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
38819 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
38820
38821 2014-02-04 Richard Biener <rguenther@suse.de>
38822
38823 PR tree-optimization/60012
38824 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
38825 TBAA disambiguation to all DDRs.
38826
38827 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38828
38829 PR target/59788
38830 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
38831 (LINK_SPEC): Use it for -shared, -shared-libgcc.
38832
38833 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
38834
38835 PR ipa/59882
38836 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
38837
38838 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
38839
38840 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
38841 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
38842
38843 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
38844
38845 PR ipa/59831
38846 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
38847 to figure out targets of polymorphic calls with known decl.
38848 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
38849 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
38850 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
38851 (get_polymorphic_call_info): ... here.
38852 (get_polymorphic_call_info_from_invariant): New function.
38853
38854 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
38855
38856 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
38857 lookup via vtable pointer; check for type consistency
38858 and turn inconsitent facts into UNREACHABLE.
38859 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
38860 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
38861 type inconsistent querries; return UNREACHABLE instead.
38862
38863 2014-02-03 Richard Henderson <rth@twiddle.net>
38864
38865 PR tree-opt/59924
38866 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
38867 already processed this node.
38868 (normalize_one_pred_1): Pass along mark_set.
38869 (normalize_one_pred): Create and destroy a pointer_set_t.
38870 (normalize_one_pred_chain): Likewise.
38871
38872 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
38873
38874 PR gcov-profile/58602
38875 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
38876
38877 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
38878
38879 PR ipa/59831
38880 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
38881 -fno-devirtualize; try to devirtualize by the knowledge of
38882 virtual table pointer given by aggregate propagation.
38883 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
38884 (ipa_print_node_jump_functions): Dump also offset that
38885 is relevant for polymorphic calls.
38886 (determine_known_aggregate_parts): Add arg_type parameter; use it
38887 instead of determining the type from pointer type.
38888 (ipa_compute_jump_functions_for_edge): Update call of
38889 determine_known_aggregate_parts.
38890 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
38891 (gimple_get_virt_method_for_binfo): ... here; simplify using
38892 vtable_pointer_value_to_vtable.
38893 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
38894 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
38895 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
38896 (vtable_pointer_value_to_vtable): Break out from ...; handle also
38897 POINTER_PLUS_EXPR.
38898 (vtable_pointer_value_to_binfo): ... here.
38899 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
38900
38901 2014-02-03 Teresa Johnson <tejohnson@google.com>
38902
38903 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
38904 redef of outer loop index variable.
38905
38906 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
38907
38908 PR c++/53017
38909 PR c++/59211
38910 * doc/extend.texi (Function Attributes): Typo.
38911
38912 2014-02-03 Cong Hou <congh@google.com>
38913
38914 PR tree-optimization/60000
38915 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
38916 if the vectorized statement is a store. A store statement can only
38917 appear at the end of pattern statements.
38918
38919 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
38920
38921 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
38922 (ix86_option_override_internal): Default long double to 64-bit for
38923 32-bit Bionic and to 128-bit for 64-bit Bionic.
38924
38925 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
38926 TARGET_LONG_DOUBLE_128 is true.
38927 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
38928
38929 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
38930 (mlong-double-64): Negate -mlong-double-128.
38931 (mlong-double-128): New option.
38932
38933 * config/i386/i386-c.c (ix86_target_macros): Define
38934 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
38935
38936 * doc/invoke.texi: Document -mlong-double-128.
38937
38938 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
38939
38940 PR rtl-optimization/60024
38941 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
38942
38943 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
38944
38945 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
38946
38947 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
38948
38949 PR rtl-optimization/57662
38950 * sel-sched.c (code_motion_path_driver): Do not mark already not
38951 existing blocks in the visiting bitmap.
38952
38953 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
38954
38955 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
38956 on the insn being emitted.
38957
38958 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
38959 Will Deacon <will.deacon@arm.com>
38960
38961 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
38962
38963 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38964
38965 * config/arm/arm-tables.opt: Regenerate.
38966
38967 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
38968
38969 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
38970 for vector types other than V16QImode.
38971 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
38972 define_expand, and call altivec_expand_vec_perm_le when producing
38973 code with little endian element order.
38974 (*altivec_vperm_<mode>_internal): New insn having previous
38975 behavior of altivec_vperm_<mode>.
38976 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
38977 altivec_expand_vec_perm_le when producing code with little endian
38978 element order.
38979 (*altivec_vperm_<mode>_uns_internal): New insn having previous
38980 behavior of altivec_vperm_<mode>_uns.
38981
38982 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
38983
38984 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
38985 (altivec_vsumsws): Add handling for -maltivec=be with a little
38986 endian target.
38987 (altivec_vsumsws_direct): New.
38988 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
38989 gen_altivec_vsumsws.
38990
38991 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
38992
38993 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
38994 vtable_pointer_value_to_binfo): New functions.
38995 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
38996 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
38997
38998 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
38999
39000 * config/nios2/nios2.md (load_got_register): Initialize GOT
39001 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
39002 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
39003
39004 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
39005
39006 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
39007 preserverd by passthrough, do not propagate the type.
39008
39009 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
39010
39011 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
39012 (mips_atomic_assign_expand_fenv): New function.
39013 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
39014
39015 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
39016
39017 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
39018 (__builtin_mips_set_fcsr): Likewise.
39019 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
39020 MIPS_USI_FTYPE_VOID.
39021 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
39022 (mips16_expand_set_fcsr): Likewise.
39023 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
39024 (mips16_set_fcsr_stub): Likewise.
39025 (mips16_get_fcsr_one_only_stub): New class.
39026 (mips16_set_fcsr_one_only_stub): Likewise.
39027 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
39028 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
39029 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
39030 (hard_float): New availability predicate.
39031 (mips_builtins): Add get_fcsr and set_fcsr.
39032 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
39033 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
39034 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
39035 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
39036 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
39037 patterns.
39038
39039 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
39040
39041 * config/mips/mips.c (mips_one_only_stub): New class.
39042 (mips_need_mips16_rdhwr_p): Replace with...
39043 (mips16_rdhwr_stub): ...this new variable.
39044 (mips16_stub_call_address): New function.
39045 (mips16_rdhwr_one_only_stub): New class.
39046 (mips_expand_thread_pointer): Use mips16_stub_call_address.
39047 (mips_output_mips16_rdhwr): Delete.
39048 (mips_finish_stub): New function.
39049 (mips_code_end): Use it to handle rdhwr stubs.
39050
39051 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
39052
39053 PR target/60017
39054 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
39055 when calculating size of integer atomic types.
39056
39057 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
39058
39059 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
39060
39061 2014-02-01 Jakub Jelinek <jakub@redhat.com>
39062
39063 PR tree-optimization/60003
39064 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
39065 * profile.c (branch_prob): Use gimple_call_builtin_p
39066 to check for BUILT_IN_SETJMP_RECEIVER.
39067 * tree-inline.c (copy_bb): Call notice_special_calls.
39068
39069 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
39070
39071 PR bootstrap/59985
39072 * lra-constraints.c (process_alt_operands): Update reload_sum only
39073 on the first pass.
39074
39075 2014-01-31 Richard Henderson <rth@redhat.com>
39076
39077 PR middle-end/60004
39078 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
39079 until after else_eh is processed.
39080
39081 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
39082
39083 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
39084 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
39085 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
39086 in smmintrin.h, remove them.
39087 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
39088 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
39089 * config/i386/i386.md (ROUND_SAE): Fix value.
39090 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
39091 (const48_operand): New.
39092 * config/i386/subst.md (round), (round_expand): Use
39093 const_4_or_8_to_11_operand.
39094 (round_saeonly), (round_saeonly_expand): Use const48_operand.
39095
39096 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
39097
39098 * config/i386/constraints.md (Yk): Swap meaning with k.
39099 * config/i386/i386.md (movhi_internal): Change Yk to k.
39100 (movqi_internal): Ditto.
39101 (*k<logic><mode>): Ditto.
39102 (*andhi_1): Ditto.
39103 (*andqi_1): Ditto.
39104 (kandn<mode>): Ditto.
39105 (*<code>hi_1): Ditto.
39106 (*<code>qi_1): Ditto.
39107 (kxnor<mode>): Ditto.
39108 (kortestzhi): Ditto.
39109 (kortestchi): Ditto.
39110 (kunpckhi): Ditto.
39111 (*one_cmplhi2_1): Ditto.
39112 (*one_cmplqi2_1): Ditto.
39113 * config/i386/sse.md (): Change k to Yk.
39114 (avx512f_load<mode>_mask): Ditto.
39115 (avx512f_blendm<mode>): Ditto.
39116 (avx512f_store<mode>_mask): Ditto.
39117 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
39118 (avx512f_storedqu<mode>_mask): Ditto.
39119 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
39120 Ditto.
39121 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
39122 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
39123 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
39124 (avx512f_maskcmp<mode>3): Ditto.
39125 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
39126 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
39127 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
39128 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
39129 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
39130 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
39131 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
39132 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
39133 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
39134 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
39135 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
39136 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
39137 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
39138 (vec_extract_lo_<mode>_maskm): Ditto.
39139 (vec_extract_hi_<mode>_maskm): Ditto.
39140 (avx512f_vternlog<mode>_mask): Ditto.
39141 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
39142 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
39143 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
39144 (avx512f_<code>v8div16qi2_mask): Ditto.
39145 (avx512f_<code>v8div16qi2_mask_store): Ditto.
39146 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
39147 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
39148 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
39149 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
39150 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
39151 (*avx512pf_gatherpf<mode>df_mask): Ditto.
39152 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
39153 (*avx512pf_scatterpf<mode>df_mask): Ditto.
39154 (avx512cd_maskb_vec_dupv8di): Ditto.
39155 (avx512cd_maskw_vec_dupv16si): Ditto.
39156 (avx512f_vpermi2var<mode>3_maskz): Ditto.
39157 (avx512f_vpermi2var<mode>3_mask): Ditto.
39158 (avx512f_vpermi2var<mode>3_mask): Ditto.
39159 (avx512f_vpermt2var<mode>3_maskz): Ditto.
39160 (*avx512f_gathersi<mode>): Ditto.
39161 (*avx512f_gathersi<mode>_2): Ditto.
39162 (*avx512f_gatherdi<mode>): Ditto.
39163 (*avx512f_gatherdi<mode>_2): Ditto.
39164 (*avx512f_scattersi<mode>): Ditto.
39165 (*avx512f_scatterdi<mode>): Ditto.
39166 (avx512f_compress<mode>_mask): Ditto.
39167 (avx512f_compressstore<mode>_mask): Ditto.
39168 (avx512f_expand<mode>_mask): Ditto.
39169 * config/i386/subst.md (mask): Change k to Yk.
39170 (mask_scalar_merge): Ditto.
39171 (sd): Ditto.
39172
39173 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
39174
39175 * doc/extend.texi (Vector Extensions): Document ?: in C++.
39176
39177 2014-01-31 Richard Biener <rguenther@suse.de>
39178
39179 PR middle-end/59990
39180 * builtins.c (fold_builtin_memory_op): Make sure to not
39181 use a floating-point mode or a boolean or enumeral type for
39182 the copy operation.
39183
39184 2014-01-30 DJ Delorie <dj@redhat.com>
39185
39186 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
39187 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
39188 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
39189 whenever main() has an epilogue.
39190
39191 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39192
39193 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
39194 unused variable "field".
39195 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
39196 (vsx_mergeh_<mode>): Likewise.
39197 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
39198 (altivec_vmrghh): Likewise.
39199 (altivec_vmrghw): Likewise.
39200 (altivec_vmrglb): Likewise.
39201 (altivec_vmrglh): Likewise.
39202 (altivec_vmrglw): Likewise.
39203 (altivec_vspltb): Add missing uses.
39204 (altivec_vsplth): Likewise.
39205 (altivec_vspltw): Likewise.
39206 (altivec_vspltsf): Likewise.
39207
39208 2014-01-30 Jakub Jelinek <jakub@redhat.com>
39209
39210 PR target/59923
39211 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
39212 frame related instructions.
39213
39214 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
39215
39216 PR rtl-optimization/59959
39217 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
39218 any reload of register whose subreg is invalid.
39219
39220 2014-01-30 Jakub Jelinek <jakub@redhat.com>
39221
39222 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
39223 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
39224 Add missing return type - void.
39225
39226 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39227
39228 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
39229 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
39230 remove element index adjustment for endian (now handled in vsx.md
39231 and altivec.md).
39232 (altivec_expand_vec_perm_const): Use
39233 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
39234 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
39235 (vsx_xxspltw_<mode>): Adjust element index for little endian.
39236 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
39237 define_expand and a new define_insn *altivec_vspltb_internal;
39238 adjust for -maltivec=be on a little endian target.
39239 (altivec_vspltb_direct): New.
39240 (altivec_vsplth): Divide into a define_expand and a new
39241 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
39242 little endian target.
39243 (altivec_vsplth_direct): New.
39244 (altivec_vspltw): Divide into a define_expand and a new
39245 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
39246 little endian target.
39247 (altivec_vspltw_direct): New.
39248 (altivec_vspltsf): Divide into a define_expand and a new
39249 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
39250 a little endian target.
39251
39252 2014-01-30 Richard Biener <rguenther@suse.de>
39253
39254 PR tree-optimization/59993
39255 * tree-ssa-forwprop.c (associate_pointerplus): Check we
39256 can propagate form the earlier stmt and avoid the transform
39257 when the intermediate result is needed.
39258
39259 2014-01-30 Alangi Derick <alangiderick@gmail.com>
39260
39261 * README.Portability: Fix typo.
39262
39263 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
39264
39265 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
39266 comparison_operator with ordered_comparison_operator.
39267
39268 2014-01-30 Nick Clifton <nickc@redhat.com>
39269
39270 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
39271 Rename to mn10300_store_multiple_regs.
39272 * config/mn10300/mn10300.c: Likewise.
39273 * config/mn10300/mn10300.md (store_movm): Fix typo: call
39274 store_multiple_regs.
39275 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
39276 Call mn10300_store_multiple_regs.
39277
39278 2014-01-30 Nick Clifton <nickc@redhat.com>
39279 DJ Delorie <dj@redhat.com>
39280
39281 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
39282 %fp 2 to keep registers after it properly word-aligned.
39283 (rl78_alloc_physical_registers_umul): Handle the case where both
39284 input operands are the same.
39285
39286 2014-01-30 Richard Biener <rguenther@suse.de>
39287
39288 PR tree-optimization/59903
39289 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
39290 check properly.
39291
39292 2014-01-30 Jason Merrill <jason@redhat.com>
39293
39294 PR c++/59633
39295 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
39296
39297 PR c++/59645
39298 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
39299
39300 2014-01-30 Richard Biener <rguenther@suse.de>
39301
39302 PR tree-optimization/59951
39303 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
39304
39305 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
39306
39307 PR target/59784
39308 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
39309 SFmode to DFmode case.
39310
39311 2014-01-29 DJ Delorie <dj@redhat.com>
39312
39313 * config/msp430/msp430.opt (-minrt): New.
39314 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
39315 if -minrt given.
39316 (ENDFILE_SPEC): Likewise.
39317
39318 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
39319
39320 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
39321 (estimate_function_body_sizes): Use it.
39322
39323 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
39324
39325 PR c++/58561
39326 * dwarf2out.c (is_cxx_auto): New.
39327 (is_base_type): Use it.
39328 (gen_type_die_with_usage): Likewise.
39329
39330 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39331
39332 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
39333 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
39334 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
39335 -maltivec=be with LE targets.
39336 (vsx_mergeh_<mode>): Likewise.
39337 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
39338 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
39339 (altivec_vmrghb): Replace with define_expand and new
39340 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
39341 (altivec_vmrghb_direct): New define_insn.
39342 (altivec_vmrghh): Replace with define_expand and new
39343 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
39344 (altivec_vmrghh_direct): New define_insn.
39345 (altivec_vmrghw): Replace with define_expand and new
39346 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
39347 (altivec_vmrghw_direct): New define_insn.
39348 (*altivec_vmrghsf): Adjust for endianness.
39349 (altivec_vmrglb): Replace with define_expand and new
39350 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
39351 (altivec_vmrglb_direct): New define_insn.
39352 (altivec_vmrglh): Replace with define_expand and new
39353 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
39354 (altivec_vmrglh_direct): New define_insn.
39355 (altivec_vmrglw): Replace with define_expand and new
39356 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
39357 (altivec_vmrglw_direct): New define_insn.
39358 (*altivec_vmrglsf): Adjust for endianness.
39359 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
39360 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
39361 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
39362 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
39363 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
39364 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
39365 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
39366 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
39367
39368 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
39369
39370 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
39371 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
39372 whitespace.
39373
39374 2014-01-29 Richard Biener <rguenther@suse.de>
39375
39376 PR tree-optimization/58742
39377 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
39378 associate_pointerplus_align.
39379 (associate_pointerplus_diff): New function.
39380 (associate_pointerplus): Likewise. Call associate_pointerplus_align
39381 and associate_pointerplus_diff.
39382
39383 2014-01-29 Richard Biener <rguenther@suse.de>
39384
39385 * lto-streamer.h (LTO_major_version): Bump to 3.
39386 (LTO_minor_version): Reset to 0.
39387
39388 2014-01-29 Renlin Li <Renlin.Li@arm.com>
39389
39390 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
39391 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
39392 (arm_file_start): Generate correct asm header for armv7ve.
39393 * config/arm/bpabi.h: Add multilib support for armv7ve.
39394 * config/arm/driver-arm.c: Change the architectures of cortex-a7
39395 and cortex-a15 to armv7ve.
39396 * config/arm/t-aprofile: Add multilib support for armv7ve.
39397 * doc/invoke.texi: Document -march=armv7ve.
39398
39399 2014-01-29 Richard Biener <rguenther@suse.de>
39400
39401 PR tree-optimization/58742
39402 * tree-ssa-forwprop.c (associate_plusminus): Return true
39403 if we changed sth, defer EH cleanup to ...
39404 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
39405 (simplify_mult): New function.
39406
39407 2014-01-29 Jakub Jelinek <jakub@redhat.com>
39408
39409 PR middle-end/59917
39410 PR tree-optimization/59920
39411 * tree.c (build_common_builtin_nodes): Remove
39412 __builtin_setjmp_dispatcher initialization.
39413 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
39414 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
39415 instead of gsi_after_labels + manually skipping debug stmts.
39416 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
39417 ignore bbs with IFN_ABNORMAL_DISPATCHER.
39418 * tree-inline.c (copy_edges_for_bb): Remove
39419 can_make_abnormal_goto argument, instead add abnormal_goto_dest
39420 argument. Ignore computed_goto_p stmts. Don't call
39421 make_abnormal_goto_edges. If a call might need abnormal edges
39422 for non-local gotos, see if it already has an edge to
39423 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
39424 with true argument, don't do anything then, otherwise add
39425 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
39426 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
39427 caller.
39428 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
39429 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
39430 (lower_stmt): Don't set data->calls_builtin_setjmp.
39431 (lower_builtin_setjmp): Adjust comment.
39432 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
39433 * tree-cfg.c (found_computed_goto): Remove.
39434 (factor_computed_gotos): Remove.
39435 (make_goto_expr_edges): Return bool, true for computed gotos.
39436 Don't call make_abnormal_goto_edges.
39437 (build_gimple_cfg): Don't set found_computed_goto, don't call
39438 factor_computed_gotos.
39439 (computed_goto_p): No longer static.
39440 (make_blocks): Don't set found_computed_goto.
39441 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
39442 (make_edges): If make_goto_expr_edges returns true, push bb
39443 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
39444 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
39445 vector. Record mapping between bbs and OpenMP regions if there
39446 are any, adjust make_gimple_omp_edges caller. Call
39447 handle_abnormal_edges.
39448 (make_abnormal_goto_edges): Remove.
39449 * tree-cfg.h (make_abnormal_goto_edges): Remove.
39450 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
39451 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
39452 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
39453 * internal-fn.def (ABNORMAL_DISPATCHER): New.
39454 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
39455 filling *region also set *region_idx to (*region)->entry->index.
39456
39457 PR other/58712
39458 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
39459 For REGs set ORIGINAL_REGNO.
39460
39461 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
39462
39463 * doc/md.texi: Mention that a target shouldn't implement
39464 vec_widen_(s|u)mul_even/odd pair if it is less efficient
39465 than hi/lo pair.
39466
39467 2014-01-29 Jakub Jelinek <jakub@redhat.com>
39468
39469 PR tree-optimization/59594
39470 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
39471 a copy of the datarefs vector rather than the vector itself.
39472
39473 2014-01-28 Jason Merrill <jason@redhat.com>
39474
39475 PR c++/53756
39476 * dwarf2out.c (auto_die): New static.
39477 (gen_type_die_with_usage): Handle C++1y 'auto'.
39478 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
39479 on definition.
39480
39481 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
39482
39483 PR target/59672
39484 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
39485 (SPEC_X32): Likewise.
39486 (SPEC_64): Likewise.
39487 * config/i386/i386.c (ix86_option_override_internal): Turn off
39488 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
39489 for TARGET_16BIT.
39490 (x86_file_start): Output .code16gcc for TARGET_16BIT.
39491 * config/i386/i386.h (TARGET_16BIT): New macro.
39492 (TARGET_16BIT_P): Likewise.
39493 * config/i386/i386.opt: Add m16.
39494 * doc/invoke.texi: Document -m16.
39495
39496 2014-01-28 Jakub Jelinek <jakub@redhat.com>
39497
39498 PR preprocessor/59935
39499 * input.c (location_get_source_line): Bail out on when line number
39500 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
39501
39502 2014-01-28 Richard Biener <rguenther@suse.de>
39503
39504 PR tree-optimization/58742
39505 * tree-ssa-forwprop.c (associate_plusminus): Handle
39506 pointer subtraction of the form (T)(P + A) - (T)P.
39507
39508 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39509
39510 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
39511 at const_int_cost.
39512
39513 2014-01-28 Richard Biener <rguenther@suse.de>
39514
39515 Revert
39516 2014-01-28 Richard Biener <rguenther@suse.de>
39517
39518 PR rtl-optimization/45364
39519 PR rtl-optimization/59890
39520 * var-tracking.c (local_get_addr_clear_given_value): Handle
39521 already cleared slot.
39522 (val_reset): Handle not allocated local_get_addr_cache.
39523 (vt_find_locations): Use post-order on the inverted CFG.
39524
39525 2014-01-28 Richard Biener <rguenther@suse.de>
39526
39527 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
39528
39529 2014-01-28 Richard Biener <rguenther@suse.de>
39530
39531 PR rtl-optimization/45364
39532 PR rtl-optimization/59890
39533 * var-tracking.c (local_get_addr_clear_given_value): Handle
39534 already cleared slot.
39535 (val_reset): Handle not allocated local_get_addr_cache.
39536 (vt_find_locations): Use post-order on the inverted CFG.
39537
39538 2014-01-28 Alan Modra <amodra@gmail.com>
39539
39540 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
39541 * configure.ac <recursive call for build != host>: Define
39542 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
39543 and LD_FOR_BUILD too.
39544 * configure: Regenerate.
39545
39546 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
39547
39548 * config/i386/i386.c (get_builtin_code_for_version): Separate
39549 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
39550 Broadwell from Haswell.
39551
39552 2014-01-27 Steve Ellcey <sellcey@mips.com>
39553
39554 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
39555 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
39556 * config/mips/mips.c (mips_option_override): Change setting
39557 of TARGET_DSP.
39558 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
39559 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
39560 Change from Mask to Var.
39561
39562 2014-01-27 Jeff Law <law@redhat.com>
39563
39564 * ipa-inline.c (inline_small_functions): Fix typo.
39565
39566 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
39567
39568 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
39569 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
39570 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
39571 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
39572 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
39573 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
39574 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
39575 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
39576 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
39577 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
39578 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
39579 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
39580 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
39581 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
39582 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
39583 (_mm512_storeu_epi64): Ditto.
39584 (_mm512_cmpge_epi32_mask): Ditto.
39585 (_mm512_cmpge_epu32_mask): Ditto.
39586 (_mm512_cmpge_epi64_mask): Ditto.
39587 (_mm512_cmpge_epu64_mask): Ditto.
39588 (_mm512_cmple_epi32_mask): Ditto.
39589 (_mm512_cmple_epu32_mask): Ditto.
39590 (_mm512_cmple_epi64_mask): Ditto.
39591 (_mm512_cmple_epu64_mask): Ditto.
39592 (_mm512_cmplt_epi32_mask): Ditto.
39593 (_mm512_cmplt_epu32_mask): Ditto.
39594 (_mm512_cmplt_epi64_mask): Ditto.
39595 (_mm512_cmplt_epu64_mask): Ditto.
39596 (_mm512_cmpneq_epi32_mask): Ditto.
39597 (_mm512_cmpneq_epu32_mask): Ditto.
39598 (_mm512_cmpneq_epi64_mask): Ditto.
39599 (_mm512_cmpneq_epu64_mask): Ditto.
39600 (_mm512_expand_pd): Ditto.
39601 (_mm512_expand_ps): Ditto.
39602 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
39603 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
39604 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
39605 * config/i386/i386.c (ix86_builtins): Add
39606 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
39607 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
39608 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
39609 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
39610 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
39611 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
39612 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
39613 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
39614 IX86_BUILTIN_PMOVUSQW512_MEM.
39615 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
39616 __builtin_ia32_pmovsqd512mem_mask,
39617 __builtin_ia32_pmovqd512mem_mask,
39618 __builtin_ia32_pmovusqw512mem_mask,
39619 __builtin_ia32_pmovsqw512mem_mask,
39620 __builtin_ia32_pmovqw512mem_mask,
39621 __builtin_ia32_pmovusdw512mem_mask,
39622 __builtin_ia32_pmovsdw512mem_mask,
39623 __builtin_ia32_pmovdw512mem_mask,
39624 __builtin_ia32_pmovqb512mem_mask,
39625 __builtin_ia32_pmovusqb512mem_mask,
39626 __builtin_ia32_pmovsqb512mem_mask,
39627 __builtin_ia32_pmovusdb512mem_mask,
39628 __builtin_ia32_pmovsdb512mem_mask,
39629 __builtin_ia32_pmovdb512mem_mask.
39630 (bdesc_args): Add __builtin_ia32_expanddf512,
39631 __builtin_ia32_expandsf512.
39632 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
39633 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
39634 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
39635 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
39636 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
39637 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
39638 (avx512f_<code>v8div16qi2_mask_store): This.
39639 (avx512f_expand<mode>): New.
39640
39641 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
39642
39643 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
39644 New.
39645 (_mm512_mask_prefetch_i64gather_pd): Ditto.
39646 (_mm512_prefetch_i32scatter_pd): Ditto.
39647 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
39648 (_mm512_prefetch_i64scatter_pd): Ditto.
39649 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
39650 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
39651 (_mm512_mask_prefetch_i64gather_ps): Ditto.
39652 (_mm512_prefetch_i32scatter_ps): Ditto.
39653 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
39654 (_mm512_prefetch_i64scatter_ps): Ditto.
39655 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
39656 * config/i386/i386-builtin-types.def: Define
39657 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
39658 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
39659 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
39660 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
39661 IX86_BUILTIN_SCATTERPFQPD.
39662 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
39663 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
39664 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
39665 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
39666 __builtin_ia32_scatterpfqps.
39667 (ix86_expand_builtin): Expand new built-ins.
39668 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
39669 fix memory access data type.
39670 (*avx512pf_gatherpf<mode>_mask): Ditto.
39671 (*avx512pf_gatherpf<mode>): Ditto.
39672 (avx512pf_scatterpf<mode>): Ditto.
39673 (*avx512pf_scatterpf<mode>_mask): Ditto.
39674 (*avx512pf_scatterpf<mode>): Ditto.
39675 (GATHER_SCATTER_SF_MEM_MODE): New.
39676 (avx512pf_gatherpf<mode>df): Ditto.
39677 (*avx512pf_gatherpf<mode>df_mask): Ditto.
39678 (*avx512pf_scatterpf<mode>df): Ditto.
39679
39680 2014-01-27 Jakub Jelinek <jakub@redhat.com>
39681
39682 PR bootstrap/59934
39683 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
39684 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
39685 reached.
39686
39687 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
39688
39689 * common/config/arm/arm-common.c
39690 (arm_rewrite_mcpu): Handle multiple names.
39691 * config/arm/arm.h
39692 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
39693
39694 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
39695
39696 * gimple-builder.h (create_gimple_tmp): Delete.
39697
39698 2014-01-27 Christian Bruel <christian.bruel@st.com>
39699
39700 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
39701 words comparisons.
39702
39703 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
39704
39705 * config/pa/pa.md (call): Generate indirect long calls to non-local
39706 functions when outputing 32-bit code.
39707 (call_value): Likewise except for special call to buggy powf function.
39708
39709 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
39710 portable runtime and PIC indirect calls.
39711 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
39712 and PIC call sequences. Use ldo instead of blr to set return register
39713 in PIC call sequence.
39714
39715 2014-01-25 Walter Lee <walt@tilera.com>
39716
39717 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
39718 avoid clobbering a live register.
39719
39720 2014-01-25 Walter Lee <walt@tilera.com>
39721
39722 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
39723 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
39724 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
39725 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
39726
39727 2014-01-25 Walter Lee <walt@tilera.com>
39728
39729 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
39730 arguments on even registers.
39731 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
39732 STACK_BOUNDARY.
39733 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
39734 (BIGGEST_ALIGNMENT): Ditto.
39735 (BIGGEST_FIELD_ALIGNMENT): Ditto.
39736
39737 2014-01-25 Walter Lee <walt@tilera.com>
39738
39739 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
39740 insns before bundling.
39741 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
39742
39743 2014-01-25 Walter Lee <walt@tilera.com>
39744
39745 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
39746 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
39747 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
39748
39749 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
39750
39751 * config/mips/constraints.md (kl): Delete.
39752 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
39753 define expands, using...
39754 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
39755 instructions for MIPS16.
39756 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
39757 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
39758
39759 2014-01-25 Walter Lee <walt@tilera.com>
39760
39761 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
39762 (clzdi2): Ditto.
39763 (ffsdi2): Ditto.
39764
39765 2014-01-25 Walter Lee <walt@tilera.com>
39766
39767 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
39768 (TARGET_EXPAND_TO_RTL_HOOK): Define.
39769
39770 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
39771
39772 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
39773 Handle XOR.
39774
39775 2014-01-25 Jakub Jelinek <jakub@redhat.com>
39776
39777 * print-rtl.c (in_call_function_usage): New var.
39778 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
39779 EXPR_LIST mode as mode and not as reg note name.
39780
39781 PR middle-end/59561
39782 * cfgloopmanip.c (copy_loop_info): If
39783 loop->warned_aggressive_loop_optimizations, make sure
39784 the flag is set in target loop too.
39785
39786 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
39787
39788 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
39789 flag_cilkplus.
39790 * builtins.def: Likewise.
39791 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
39792 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
39793 * ira.c (ira_setup_eliminable_regset): Likewise.
39794 * omp-low.c (gate_expand_omp): Likewise.
39795 (execute_lower_omp): Likewise.
39796 (diagnose_sb_0): Likewise.
39797 (gate_diagnose_omp_blocks): Likewise.
39798 (simd_clone_clauses_extract): Likewise.
39799 (gate): Likewise.
39800
39801 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39802
39803 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
39804 correction for little endian...
39805 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
39806 here.
39807
39808 2014-01-24 Jeff Law <law@redhat.com>
39809
39810 PR tree-optimization/59919
39811 * tree-vrp.c (find_assert_locations_1): Do not register asserts
39812 for non-returning calls.
39813
39814 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
39815
39816 * common/config/aarch64/aarch64-common.c
39817 (aarch64_rewrite_mcpu): Handle multiple names.
39818 * config/aarch64/aarch64.h
39819 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
39820
39821 2014-01-24 Dodji Seketeli <dodji@redhat.com>
39822
39823 * input.c (add_file_to_cache_tab): Handle the case where fopen
39824 returns NULL.
39825
39826 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
39827
39828 PR target/59929
39829 * config/i386/i386.md (pushsf splitter): Get stack adjustment
39830 from push operand if code of push isn't PRE_DEC.
39831
39832 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
39833
39834 PR target/59909
39835 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
39836 -mquad-memory-atomic. Update -mquad-memory documentation to say
39837 it is only used for non-atomic loads/stores.
39838
39839 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
39840 -mquad-memory or -mquad-memory-atomic switches.
39841
39842 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
39843 -mquad-memory-atomic to ISA 2.07 support.
39844
39845 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
39846 to separate support of normal quad word memory operations (ldq, stq)
39847 from the atomic quad word memory operations.
39848
39849 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
39850 support to separate non-atomic quad word operations from atomic
39851 quad word operations. Disable non-atomic quad word operations in
39852 little endian mode so that we don't have to swap words after the
39853 load and before the store.
39854 (quad_load_store_p): Add comment about atomic quad word support.
39855 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
39856 options printed with -mdebug=reg.
39857
39858 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
39859 -mquad-memory-atomic as the test for whether we have quad word
39860 atomic instructions.
39861 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
39862 or -mp8-vector are used, allow byte/half-word atomic operations.
39863
39864 * config/rs6000/sync.md (load_lockedti): Insure that the address
39865 is a proper indexed or indirect address for the lqarx instruction.
39866 On little endian systems, swap the hi/lo registers after the lqarx
39867 instruction.
39868 (load_lockedpti): Use indexed_or_indirect_operand predicate to
39869 insure the address is valid for the lqarx instruction.
39870 (store_conditionalti): Insure that the address is a proper indexed
39871 or indirect address for the stqcrx. instruction. On little endian
39872 systems, swap the hi/lo registers before doing the stqcrx.
39873 instruction.
39874 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
39875 insure the address is valid for the stqcrx. instruction.
39876
39877 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
39878 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
39879 type of quad memory support is available.
39880
39881 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
39882
39883 PR regression/59915
39884 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
39885 there is a danger of looping.
39886
39887 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
39888
39889 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
39890 force flag_ira_loop_pressure if set via command line.
39891
39892 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
39893
39894 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
39895 (ashr_simd): New builtin handling DI mode.
39896 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
39897 (aarch64_sshr_simddi): New match pattern.
39898 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
39899 (vshrd_n_s64): Likewise.
39900 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
39901
39902 2014-01-23 Nick Clifton <nickc@redhat.com>
39903
39904 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
39905 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
39906 favour of mcu specific scripts.
39907 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
39908 430x multilibs.
39909
39910 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
39911 Alex Velenko <Alex.Velenko@arm.com>
39912
39913 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
39914 (vaddv_s16): Likewise.
39915 (vaddv_s32): Likewise.
39916 (vaddv_u8): Likewise.
39917 (vaddv_u16): Likewise.
39918 (vaddv_u32): Likewise.
39919 (vaddvq_s8): Likewise.
39920 (vaddvq_s16): Likewise.
39921 (vaddvq_s32): Likewise.
39922 (vaddvq_s64): Likewise.
39923 (vaddvq_u8): Likewise.
39924 (vaddvq_u16): Likewise.
39925 (vaddvq_u32): Likewise.
39926 (vaddvq_u64): Likewise.
39927 (vaddv_f32): Likewise.
39928 (vaddvq_f32): Likewise.
39929 (vaddvq_f64): Likewise.
39930 (vmaxv_f32): Likewise.
39931 (vmaxv_s8): Likewise.
39932 (vmaxv_s16): Likewise.
39933 (vmaxv_s32): Likewise.
39934 (vmaxv_u8): Likewise.
39935 (vmaxv_u16): Likewise.
39936 (vmaxv_u32): Likewise.
39937 (vmaxvq_f32): Likewise.
39938 (vmaxvq_f64): Likewise.
39939 (vmaxvq_s8): Likewise.
39940 (vmaxvq_s16): Likewise.
39941 (vmaxvq_s32): Likewise.
39942 (vmaxvq_u8): Likewise.
39943 (vmaxvq_u16): Likewise.
39944 (vmaxvq_u32): Likewise.
39945 (vmaxnmv_f32): Likewise.
39946 (vmaxnmvq_f32): Likewise.
39947 (vmaxnmvq_f64): Likewise.
39948 (vminv_f32): Likewise.
39949 (vminv_s8): Likewise.
39950 (vminv_s16): Likewise.
39951 (vminv_s32): Likewise.
39952 (vminv_u8): Likewise.
39953 (vminv_u16): Likewise.
39954 (vminv_u32): Likewise.
39955 (vminvq_f32): Likewise.
39956 (vminvq_f64): Likewise.
39957 (vminvq_s8): Likewise.
39958 (vminvq_s16): Likewise.
39959 (vminvq_s32): Likewise.
39960 (vminvq_u8): Likewise.
39961 (vminvq_u16): Likewise.
39962 (vminvq_u32): Likewise.
39963 (vminnmv_f32): Likewise.
39964 (vminnmvq_f32): Likewise.
39965 (vminnmvq_f64): Likewise.
39966
39967 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
39968
39969 * config/aarch64/aarch64-simd.md
39970 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
39971 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
39972 (*aarch64_mul3_elt<mode>): Likewise.
39973 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
39974 (*aarch64_mul3_elt_to_64v2df): Likewise.
39975 (*aarch64_mla_elt<mode>): Likewise.
39976 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
39977 (*aarch64_mls_elt<mode>): Likewise.
39978 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
39979 (*aarch64_fma4_elt<mode>): Likewise.
39980 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
39981 (*aarch64_fma4_elt_to_64v2df): Likewise.
39982 (*aarch64_fnma4_elt<mode>): Likewise.
39983 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
39984 (*aarch64_fnma4_elt_to_64v2df): Likewise.
39985 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
39986 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
39987 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
39988 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
39989 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
39990 (aarch64_sqdmull_lane<mode>_internal): Likewise.
39991 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
39992
39993 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
39994
39995 * config/aarch64/aarch64-simd.md
39996 (aarch64_be_checked_get_lane<mode>): New define_expand.
39997 * config/aarch64/aarch64-simd-builtins.def
39998 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
39999 New builtin definition.
40000 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
40001 Use new safe be builtin.
40002
40003 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
40004
40005 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
40006 New define_insn.
40007 (aarch64_be_st1<mode>): Likewise.
40008 (aarch_ld1<VALL:mode>): Define_expand modified.
40009 (aarch_st1<VALL:mode>): Likewise.
40010 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
40011 (UNSPEC_ST1): Likewise.
40012
40013 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
40014
40015 * config/microblaze/microblaze.md: Add trap insn and attribute
40016
40017 2014-01-23 Dodji Seketeli <dodji@redhat.com>
40018
40019 PR preprocessor/58580
40020 * input.h (location_get_source_line): Take an additional line_size
40021 parameter.
40022 (void diagnostics_file_cache_fini): Declare new function.
40023 * input.c (struct fcache): New type.
40024 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
40025 New static constants.
40026 (diagnostic_file_cache_init, total_lines_num)
40027 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
40028 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
40029 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
40030 (get_next_line, read_next_line, goto_next_line, read_line_num):
40031 New static function definitions.
40032 (diagnostic_file_cache_fini): New function.
40033 (location_get_source_line): Take an additional output line_len
40034 parameter. Re-write using lookup_or_add_file_to_cache_tab and
40035 read_line_num.
40036 * diagnostic.c (diagnostic_finish): Call
40037 diagnostic_file_cache_fini.
40038 (adjust_line): Take an additional input parameter for the length
40039 of the line, rather than calculating it with strlen.
40040 (diagnostic_show_locus): Adjust the use of
40041 location_get_source_line and adjust_line with respect to their new
40042 signature. While displaying a line now, do not stop at the first
40043 null byte. Rather, display the zero byte as a space and keep
40044 going until we reach the size of the line.
40045 * Makefile.in: Add vec.o to OBJS-libcommon
40046
40047 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
40048 Ilya Tocar <ilya.tocar@intel.com>
40049
40050 * config/i386/avx512fintrin.h (_mm512_kmov): New.
40051 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
40052 (__builtin_ia32_kmov16): Ditto.
40053 * config/i386/i386.md (UNSPEC_KMOV): New.
40054 (kmovw): Ditto.
40055
40056 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
40057
40058 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
40059 (_mm512_storeu_si512): Ditto.
40060
40061 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
40062
40063 PR target/52125
40064 * rtl.h (get_referenced_operands): Declare.
40065 * recog.c (get_referenced_operands): New function.
40066 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
40067 operands have been referenced when recording LO_SUM references.
40068
40069 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
40070
40071 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
40072
40073 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
40074
40075 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
40076 Enable for generic and recent AMD targets.
40077
40078 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
40079
40080 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
40081 ARG_SIZE note when adjustment was eliminated.
40082
40083 2014-01-22 Jeff Law <law@redhat.com>
40084
40085 PR tree-optimization/59597
40086 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
40087 in file. Accept new argument REGISTERING and use it to modify
40088 dump output appropriately.
40089 (register_jump_thread): Corresponding changes.
40090 (mark_threaded_blocks): Reinstate code to cancel unprofitable
40091 thread paths involving joiner blocks. Add code to dump cancelled
40092 jump threading paths.
40093
40094 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
40095
40096 PR rtl-optimization/59477
40097 * lra-constraints.c (inherit_in_ebb): Process call for living hard
40098 regs. Update reloads_num and potential_reload_hard_regs for all insns.
40099
40100 2014-01-22 Tom Tromey <tromey@redhat.com>
40101
40102 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
40103 PARAMS.
40104 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
40105
40106 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
40107
40108 PR rtl-optimization/59896
40109 * lra-constraints.c (process_alt_operands): Check unused note for
40110 matched operands of insn with no output reloads.
40111
40112 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
40113
40114 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
40115 (mips_move_from_gpr_cost): Likewise.
40116
40117 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
40118
40119 PR rtl-optimization/59858
40120 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
40121 ira_class_hard_regs_num.
40122 (process_alt_operands): Increase reject for dying matched operand.
40123
40124 2014-01-21 Jakub Jelinek <jakub@redhat.com>
40125
40126 PR target/59003
40127 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
40128 smaller than size, perform several stores or loads and stores
40129 at dst + count - size to store or copy all of size bytes, rather
40130 than just last modesize bytes.
40131
40132 2014-01-20 DJ Delorie <dj@redhat.com>
40133
40134 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
40135 that CLOBBERs are REGs before propogating their values.
40136
40137 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
40138
40139 PR middle-end/59789
40140 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
40141 (cgraph_inline_failed_type): New function.
40142 * cgraph.h (DEFCIFCODE): Add type.
40143 (cgraph_inline_failed_type_t): New enum.
40144 (cgraph_inline_failed_type): New prototype.
40145 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
40146 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
40147 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
40148 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
40149 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
40150 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
40151 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
40152 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
40153 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
40154 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
40155 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
40156 OPTIMIZATION_MISMATCH.
40157 * tree-inline.c (expand_call_inline): Emit errors during
40158 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
40159
40160 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
40161
40162 PR target/59685
40163 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
40164 mode attribute in insn output.
40165
40166 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
40167
40168 * output.h (output_constant): Delete.
40169 * varasm.c (output_constant): Make private.
40170
40171 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
40172
40173 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
40174
40175 2014-01-20 Jakub Jelinek <jakub@redhat.com>
40176
40177 PR middle-end/59860
40178 * tree.h (fold_builtin_strcat): New prototype.
40179 * builtins.c (fold_builtin_strcat): No longer static. Add len
40180 argument, if non-NULL, don't call c_strlen. Optimize
40181 directly into __builtin_memcpy instead of __builtin_strcpy.
40182 (fold_builtin_2): Adjust fold_builtin_strcat caller.
40183 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
40184
40185 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
40186
40187 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
40188 for SImode_address_operand operands, having only a REG argument.
40189
40190 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
40191
40192 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
40193 loader name using mbig-endian.
40194 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
40195
40196 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
40197
40198 * doc/invoke.texi (-march): Clarify documentation for AArch64.
40199 (-mtune): Likewise.
40200 (-mcpu): Likewise.
40201
40202 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
40203
40204 * config/aarch64/aarch64-protos.h
40205 (aarch64_cannot_change_mode_class_ptr): Declare.
40206 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
40207 aarch64_cannot_change_mode_class_ptr): New.
40208 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
40209 backend hook aarch64_cannot_change_mode_class.
40210
40211 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
40212
40213 * common/config/aarch64/aarch64-common.c
40214 (aarch64_handle_option): Don't handle any option order logic here.
40215 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
40216 selected_cpu, warn on architecture version mismatch.
40217 (aarch64_override_options): Fix parsing order for option strings.
40218
40219 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40220 Iain Sandoe <iain@codesourcery.com>
40221
40222 PR bootstrap/59496
40223 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
40224 warning. Amend comment to reflect current functionality.
40225
40226 2014-01-20 Richard Biener <rguenther@suse.de>
40227
40228 PR middle-end/59860
40229 * builtins.c (fold_builtin_strcat): Remove case better handled
40230 by tree-ssa-strlen.c.
40231
40232 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
40233
40234 * config/aarch64/aarch64.opt
40235 (mcpu, march, mtune): Make case-insensitive.
40236
40237 2014-01-20 Jakub Jelinek <jakub@redhat.com>
40238
40239 PR target/59880
40240 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
40241 if operands[1] is a REG or ZERO_EXTEND of a REG.
40242
40243 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
40244
40245 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
40246
40247 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
40248
40249 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
40250 long non-pic millicode calls.
40251
40252 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
40253
40254 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
40255
40256 2014-01-19 Kito Cheng <kito@0xlab.org>
40257
40258 * builtins.c (expand_movstr): Check movstr expand done or fail.
40259
40260 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
40261 H.J. Lu <hongjiu.lu@intel.com>
40262
40263 PR target/59379
40264 * config/i386/i386.md (*lea<mode>): Zero-extend return register
40265 to DImode for zero-extended addresses.
40266
40267 2014-01-19 Jakub Jelinek <jakub@redhat.com>
40268
40269 PR rtl-optimization/57763
40270 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
40271 on the new indirect jump_insn and increment LABEL_NUSES (label).
40272
40273 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
40274
40275 PR bootstrap/59580
40276 PR bootstrap/59583
40277 * config.gcc (x86_archs): New variable.
40278 (x86_64_archs): Likewise.
40279 (x86_cpus): Likewise.
40280 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
40281 --with-arch/--with-cpu= options.
40282 Support --with-arch=/--with-cpu={nehalem,westmere,
40283 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
40284
40285 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
40286
40287 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
40288 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
40289
40290 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
40291
40292 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
40293
40294 2014-01-18 Jakub Jelinek <jakub@redhat.com>
40295
40296 PR target/58944
40297 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
40298 clear cpp_get_options (parse_in)->warn_unused_macros for
40299 ix86_target_macros_internal with cpp_define.
40300
40301 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
40302
40303 * jump.c (delete_related_insns): Keep (use (insn))s.
40304 * reorg.c (redundant_insn): Check for barriers too.
40305
40306 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
40307
40308 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
40309
40310 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
40311
40312 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
40313 call to $$dyncall when TARGET_LONG_CALLS is true.
40314
40315 2014-01-17 Jeff Law <law@redhat.com>
40316
40317 * ree.c (combine_set_extension): Temporarily disable test for
40318 changing number of hard registers.
40319
40320 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
40321
40322 PR middle-end/58125
40323 * ipa-inline-analysis.c (inline_free_summary):
40324 Do not free summary of aliases.
40325
40326 2014-01-17 Jakub Jelinek <jakub@redhat.com>
40327
40328 PR middle-end/59706
40329 * gimplify.c (gimplify_expr): Use create_tmp_var
40330 instead of create_tmp_var_raw. If cond doesn't have
40331 integral type, don't add the IFN_ANNOTATE builtin at all.
40332
40333 2014-01-17 Martin Jambor <mjambor@suse.cz>
40334
40335 PR ipa/59736
40336 * ipa-cp.c (prev_edge_clone): New variable.
40337 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
40338 Also resize prev_edge_clone vector.
40339 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
40340 (ipcp_edge_removal_hook): New function.
40341 (ipcp_driver): Register ipcp_edge_removal_hook.
40342
40343 2014-01-17 Andrew Pinski <apinski@cavium.com>
40344 Steve Ellcey <sellcey@mips.com>
40345
40346 PR target/59462
40347 * config/mips/mips.c (mips_print_operand): Check operand mode instead
40348 of operator mode.
40349
40350 2014-01-17 Jeff Law <law@redhat.com>
40351
40352 PR middle-end/57904
40353 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
40354 so that pass_ccp runs first.
40355
40356 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
40357
40358 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
40359 (ix86_adjust_cost): Use !TARGET_XXX.
40360 (do_reorder_for_imul): Likewise.
40361 (swap_top_of_ready_list): Likewise.
40362 (ix86_sched_reorder): Likewise.
40363
40364 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
40365
40366 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
40367 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
40368 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
40369 (intel_memset): New. Duplicate slm_memset.
40370 (intel_cost): New. Duplicate slm_cost.
40371 (m_INTEL): New macro.
40372 (processor_target_table): Add "intel".
40373 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
40374 with PROCESSOR_INTEL for "intel".
40375 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
40376 PROCESSOR_SILVERMONT.
40377 (ix86_issue_rate): Likewise.
40378 (ix86_adjust_cost): Likewise.
40379 (ia32_multipass_dfa_lookahead): Likewise.
40380 (swap_top_of_ready_list): Likewise.
40381 (ix86_sched_reorder): Likewise.
40382 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
40383 instead of TARGET_OPT_AGU.
40384 * config/i386/i386.h (TARGET_INTEL): New.
40385 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
40386 (processor_type): Add PROCESSOR_INTEL.
40387 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
40388 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
40389
40390 2014-01-17 Marek Polacek <polacek@redhat.com>
40391
40392 PR c/58346
40393 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
40394 size is zero.
40395
40396 2014-01-17 Richard Biener <rguenther@suse.de>
40397
40398 PR tree-optimization/46590
40399 * opts.c (default_options_table): Add entries for
40400 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
40401 all enabled at -O1 but not for -Og.
40402 * common.opt (fbranch-count-reg): Remove Init(1).
40403 (fmove-loop-invariants): Likewise.
40404 (ftree-pta): Likewise.
40405
40406 2014-01-17 Jakub Jelinek <jakub@redhat.com>
40407
40408 * config/i386/i386.c (ix86_data_alignment): For compatibility with
40409 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
40410 decls to at least the GCC 4.8 used alignments.
40411
40412 PR fortran/59440
40413 * tree-nested.c (convert_nonlocal_reference_stmt,
40414 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
40415 of GIMPLE_BIND stmts, adjust associated decls.
40416
40417 2014-01-17 Richard Biener <rguenther@suse.de>
40418
40419 PR tree-optimization/46590
40420 * vec.h (vec<>::bseach): New member function implementing
40421 binary search according to C89 bsearch.
40422 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
40423 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
40424 bitmap pointer again. Make accesses_in_loop a flat array.
40425 (mem_ref_obstack): New global.
40426 (outermost_indep_loop): Adjust for mem_ref->stored changes.
40427 (mark_ref_stored): Likewise.
40428 (ref_indep_loop_p_2): Likewise.
40429 (set_ref_stored_in_loop): New helper function.
40430 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
40431 (memref_free): Adjust.
40432 (record_mem_ref_loc): Simplify.
40433 (gather_mem_refs_stmt): Adjust.
40434 (sort_locs_in_loop_postorder_cmp): New function.
40435 (analyze_memory_references): Sort accesses_in_loop after
40436 loop postorder number.
40437 (find_ref_loc_in_loop_cmp): New function.
40438 (for_all_locs_in_loop): Find relevant cluster of locs in
40439 accesses_in_loop and iterate without recursion.
40440 (execute_sm): Avoid uninit warning.
40441 (struct ref_always_accessed): Simplify.
40442 (ref_always_accessed::operator ()): Likewise.
40443 (ref_always_accessed_p): Likewise.
40444 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
40445 loop postorder numbers here.
40446 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
40447 numbers.
40448
40449 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
40450
40451 PR c++/57945
40452 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
40453 on decls for which assemble_alias has been called.
40454
40455 2014-01-17 Nick Clifton <nickc@redhat.com>
40456
40457 * config/msp430/msp430.opt: (mcpu): New option.
40458 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
40459 (msp430_option_override): Parse target_cpu. If the MCU name
40460 matches a generic string, clear target_mcu.
40461 (msp430_attr): Allow numeric interrupt values up to 63.
40462 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
40463 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
40464 option.
40465 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
40466 Add mcpu matches.
40467 * config/msp430/msp430.md (popm): Use %J rather than %I.
40468 (addsi3): Use msp430_nonimmediate_operand for operand 2.
40469 (addhi_cy_i): Use immediate_operand for operand 2.
40470 * doc/invoke.texi: Document -mcpu option.
40471
40472 2014-01-17 Richard Biener <rguenther@suse.de>
40473
40474 PR rtl-optimization/38518
40475 * df.h (df_analyze_loop): Declare.
40476 * df-core.c: Include cfgloop.h.
40477 (df_analyze_1): Split out main part of df_analyze.
40478 (df_analyze): Adjust.
40479 (loop_inverted_post_order_compute): New function.
40480 (loop_post_order_compute): Likewise.
40481 (df_analyze_loop): New function avoiding whole-function
40482 postorder computes.
40483 * loop-invariant.c (find_defs): Use df_analyze_loop.
40484 (find_invariants): Adjust.
40485 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
40486
40487 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
40488
40489 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
40490 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
40491
40492 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40493
40494 * ipa-ref.c (ipa_remove_stmt_references): Fix references
40495 traversal when removing references.
40496
40497 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
40498
40499 PR ipa/59775
40500 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
40501
40502 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
40503
40504 PR middle-end/56791
40505 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
40506 pushing a reload for an autoinc when we had previously reloaded an
40507 inner part of the address.
40508
40509 2014-01-16 Jakub Jelinek <jakub@redhat.com>
40510
40511 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
40512 field.
40513 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
40514 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
40515 when not giving up or versioning for alias only because of
40516 loop->safelen.
40517 (vect_analyze_data_ref_dependences): Set to true.
40518 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
40519 is a GIMPLE_PHI.
40520 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
40521 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
40522 to the condition.
40523
40524 PR middle-end/58344
40525 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
40526
40527 PR target/59839
40528 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
40529 operand 0 predicate for gathers, use a new pseudo as subtarget.
40530
40531 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
40532
40533 PR middle-end/59609
40534 * lra-constraints.c (process_alt_operands): Add printing debug info.
40535 Check absence of input/output reloads for matched operands too.
40536
40537 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
40538
40539 PR rtl-optimization/59835
40540 * ira.c (ira_init_register_move_cost): Increase cost for
40541 impossible modes.
40542
40543 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
40544
40545 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
40546
40547 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
40548
40549 PR target/59780
40550 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
40551 non-register objects. Use gen_(high/low)part more consistently.
40552 Fix assertions.
40553
40554 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
40555
40556 PR target/59844
40557 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
40558 endian support, remove tests for WORDS_BIG_ENDIAN.
40559 (p8_mfvsrd_3_<mode>): Likewise.
40560 (reload_gpr_from_vsx<mode>): Likewise.
40561 (reload_gpr_from_vsxsf): Likewise.
40562 (p8_mfvsrd_4_disf): Likewise.
40563
40564 2014-01-16 Richard Biener <rguenther@suse.de>
40565
40566 PR rtl-optimization/46590
40567 * lcm.c (compute_antinout_edge): Use postorder iteration.
40568 (compute_laterin): Use inverted postorder iteration.
40569
40570 2014-01-16 Nick Clifton <nickc@redhat.com>
40571
40572 PR middle-end/28865
40573 * varasm.c (output_constant): Return the number of bytes actually
40574 emitted.
40575 (output_constructor_array_range): Update the field size with the
40576 number of bytes emitted by output_constant.
40577 (output_constructor_regular_field): Likewise. Also do not
40578 complain if the total number of bytes emitted is now greater
40579 than the expected fieldpos.
40580 * output.h (output_constant): Update prototype and descriptive comment.
40581
40582 2014-01-16 Marek Polacek <polacek@redhat.com>
40583
40584 PR middle-end/59827
40585 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
40586 it is error_mark_node.
40587
40588 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
40589
40590 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
40591 VALID_AVX256_REG_OR_OI_MODE.
40592
40593 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
40594
40595 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
40596 current procedure should be profiled.
40597
40598 2014-01-15 Andrew Pinski <apinski@cavium.com>
40599
40600 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
40601 of moving from/to the STACK_REG register class.
40602
40603 2014-01-15 Richard Henderson <rth@redhat.com>
40604
40605 PR debug/54694
40606 * reginfo.c (global_regs_decl): Globalize.
40607 * rtl.h (global_regs_decl): Declare.
40608 * ira.c (do_reload): Diagnose frame_pointer_needed and it
40609 reserved via global_regs.
40610
40611 2014-01-15 Teresa Johnson <tejohnson@google.com>
40612
40613 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
40614
40615 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
40616
40617 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
40618 and vmulosh rather than call gen_vec_widen_smult_*.
40619 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
40620 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
40621 (vec_widen_smult_even_v16qi): Likewise.
40622 (vec_widen_umult_even_v8hi): Likewise.
40623 (vec_widen_smult_even_v8hi): Likewise.
40624 (vec_widen_umult_odd_v16qi): Likewise.
40625 (vec_widen_smult_odd_v16qi): Likewise.
40626 (vec_widen_umult_odd_v8hi): Likewise.
40627 (vec_widen_smult_odd_v8hi): Likewise.
40628 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
40629 vmuloub rather than call gen_vec_widen_umult_*.
40630 (vec_widen_umult_lo_v16qi): Likewise.
40631 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
40632 vmulosb rather than call gen_vec_widen_smult_*.
40633 (vec_widen_smult_lo_v16qi): Likewise.
40634 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
40635 rather than call gen_vec_widen_umult_*.
40636 (vec_widen_umult_lo_v8hi): Likewise.
40637 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
40638 rather than call gen_vec_widen_smult_*.
40639 (vec_widen_smult_lo_v8hi): Likewise.
40640
40641 2014-01-15 Jeff Law <law@redhat.com>
40642
40643 PR tree-optimization/59747
40644 * ree.c (find_and_remove_re): Properly handle case where a second
40645 eliminated extension requires widening a copy created for elimination
40646 of a prior extension.
40647 (combine_set_extension): Ensure that the number of hard regs needed
40648 for a destination register does not change when we widen it.
40649
40650 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
40651
40652 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
40653 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
40654 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
40655 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
40656 (avr-*-rtems*): Likewise.
40657 (bfin*-rtems*): Likewise.
40658 (moxie-*-rtems*): Likewise.
40659 (h8300-*-rtems*): Likewise.
40660 (i[34567]86-*-rtems*): Likewise.
40661 (lm32-*-rtems*): Likewise.
40662 (m32r-*-rtems*): Likewise.
40663 (m68k-*-rtems*): Likewise.
40664 (microblaze*-*-rtems*): Likewise.
40665 (mips*-*-rtems*): Likewise.
40666 (powerpc-*-rtems*): Likewise.
40667 (sh-*-rtems*): Likewise.
40668 (sparc-*-rtems*): Likewise.
40669 (sparc64-*-rtems*): Likewise.
40670 (v850-*-rtems*): Likewise.
40671 (m32c-*-rtems*): Likewise.
40672
40673 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
40674
40675 PR rtl-optimization/59511
40676 * ira.c (ira_init_register_move_cost): Use memory costs for some
40677 cases of register move cost calculations.
40678 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
40679 instead of BB frequency.
40680 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
40681 * lra-assigns.c (find_hard_regno_for): Ditto.
40682
40683 2014-01-15 Richard Biener <rguenther@suse.de>
40684
40685 PR tree-optimization/59822
40686 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
40687 (vectorizable_load): Use it to hoist defs of uses of invariant
40688 loads out of the loop.
40689
40690 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
40691 Kugan Vivekanandarajah <kuganv@linaro.org>
40692
40693 PR target/59695
40694 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
40695 truncation.
40696
40697 2014-01-15 Richard Biener <rguenther@suse.de>
40698
40699 PR rtl-optimization/59802
40700 * lcm.c (compute_available): Use inverted postorder to seed
40701 the initial worklist.
40702
40703 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40704
40705 PR target/59803
40706 * config/s390/s390.c (s390_preferred_reload_class): Don't return
40707 ADDR_REGS for invalid symrefs in non-PIC code.
40708
40709 2014-01-15 Jakub Jelinek <jakub@redhat.com>
40710
40711 PR other/58712
40712 * builtins.c (determine_block_size): Initialize *probable_max_size
40713 even if len_rtx is CONST_INT.
40714
40715 2014-01-14 Andrew Pinski <apinski@cavium.com>
40716
40717 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
40718 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
40719 (cortexa53_tunings): Likewise.
40720 (aarch64_sched_issue_rate): New function.
40721 (TARGET_SCHED_ISSUE_RATE): Define.
40722
40723 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
40724
40725 * ira-costs.c (find_costs_and_classes): Add missed
40726 ira_init_register_move_cost_if_necessary.
40727
40728 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
40729
40730 PR target/59787
40731 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
40732
40733 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
40734
40735 PR target/59794
40736 * config/i386/i386.c (type_natural_mode): Add a bool parameter
40737 to indicate if type is used for function return value. Warn ABI
40738 change if the vector mode isn't available for function return value.
40739 (ix86_function_arg_advance): Pass false to type_natural_mode.
40740 (ix86_function_arg): Likewise.
40741 (ix86_gimplify_va_arg): Likewise.
40742 (function_arg_32): Don't warn ABI change.
40743 (ix86_function_value): Pass true to type_natural_mode.
40744 (ix86_return_in_memory): Likewise.
40745 (ix86_struct_value_rtx): Removed.
40746 (TARGET_STRUCT_VALUE_RTX): Likewise.
40747
40748 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
40749
40750 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
40751 converting a conditional jump into a conditional return.
40752
40753 2014-01-14 Richard Biener <rguenther@suse.de>
40754
40755 PR tree-optimization/58921
40756 PR tree-optimization/59006
40757 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
40758 hoisting invariant stmts.
40759 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
40760 invariant loads on the preheader edge if possible.
40761
40762 2014-01-14 Joey Ye <joey.ye@arm.com>
40763
40764 * doc/plugin.texi (Building GCC plugins): Update to C++.
40765
40766 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
40767
40768 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
40769 (_mm_rcp28_round_ss): Ditto.
40770 (_mm_rsqrt28_round_sd): Ditto.
40771 (_mm_rsqrt28_round_ss): Ditto.
40772 (_mm_rcp28_sd): Ditto.
40773 (_mm_rcp28_ss): Ditto.
40774 (_mm_rsqrt28_sd): Ditto.
40775 (_mm_rsqrt28_ss): Ditto.
40776 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
40777 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
40778 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
40779 (IX86_BUILTIN_RCP28SD): Ditto.
40780 (IX86_BUILTIN_RCP28SS): Ditto.
40781 (IX86_BUILTIN_RSQRT28SD): Ditto.
40782 (IX86_BUILTIN_RSQRT28SS): Ditto.
40783 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
40784 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
40785 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
40786 (ix86_expand_special_args_builtin): Expand new FTYPE.
40787 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
40788 (srcp14<mode>): Make insn unary.
40789 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
40790 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
40791 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
40792 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
40793 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
40794 Fix rounding: make it SAE only.
40795 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
40796 Ditto.
40797 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
40798 Ditto.
40799 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
40800 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
40801 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
40802 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
40803 (round_saeonly_mask_scalar_operand4): Ditto.
40804 (round_saeonly_mask_scalar_op3): Ditto.
40805 (round_saeonly_mask_scalar_op4): Ditto.
40806
40807 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40808
40809 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
40810 Implement -maltivec=be for vec_insert and vec_extract.
40811
40812 2014-01-10 DJ Delorie <dj@redhat.com>
40813
40814 * config/msp430/msp430.md (call_internal): Don't allow memory
40815 references with SP as the base register.
40816 (call_value_internal): Likewise.
40817 * config/msp430/constraints.md (Yc): New. For memory references
40818 that don't use SP as a base register.
40819
40820 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
40821 "an integer without a # prefix"
40822 * config/msp430/msp430.md (epilogue_helper): Use it.
40823
40824 2014-01-13 Jakub Jelinek <jakub@redhat.com>
40825
40826 PR target/59617
40827 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
40828 AVX512F gather builtins.
40829 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
40830 on gather decls with INTEGER_TYPE masktype.
40831 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
40832 directly into the builtin rather than hoisting it before loop.
40833
40834 PR tree-optimization/59387
40835 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
40836 (scev_const_prop): If folded_casts and type has undefined overflow,
40837 use force_gimple_operand instead of force_gimple_operand_gsi and
40838 for each added stmt if it is assign with
40839 arith_code_with_undefined_signed_overflow, call
40840 rewrite_to_defined_overflow.
40841 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
40842 gimple-fold.h instead.
40843 (arith_code_with_undefined_signed_overflow,
40844 rewrite_to_defined_overflow): Moved to ...
40845 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
40846 rewrite_to_defined_overflow): ... here. No longer static.
40847 Include gimplify-me.h.
40848 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
40849 rewrite_to_defined_overflow): New prototypes.
40850
40851 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40852
40853 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
40854
40855 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
40856
40857 * builtins.c (get_object_alignment_2): Minor tweak.
40858 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
40859
40860 2014-01-13 Christian Bruel <christian.bruel@st.com>
40861
40862 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
40863 optimized non constant lengths.
40864
40865 2014-01-13 Jakub Jelinek <jakub@redhat.com>
40866
40867 PR libgomp/59194
40868 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
40869 load as __atomic_load_N if possible.
40870
40871 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
40872
40873 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
40874 target parameter.
40875 (rs6000_expand_builtin): Adjust call.
40876
40877 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
40878
40879 PR target/58115
40880 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
40881 * config/rs6000/rs6000.c: Include target-globals.h.
40882 (rs6000_set_current_function): Instead of doing target_reinit
40883 unconditionally, use save_target_globals_default_opts and
40884 restore_target_globals.
40885
40886 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
40887 FPSCR.
40888 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
40889 (rs6000_expand_builtin): Handle mffs and mtfsf.
40890 (rs6000_init_builtins): Define mffs and mtfsf.
40891 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
40892 (rs6000_mffs): New pattern.
40893 (rs6000_mtfsf): New pattern.
40894
40895 2014-01-11 Bin Cheng <bin.cheng@arm.com>
40896
40897 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
40898 Start narrowing with START. Apply candidate-use pair
40899 and check overall cost in narrowing.
40900 (iv_ca_prune): Pass new argument.
40901
40902 2014-01-10 Jeff Law <law@redhat.com>
40903
40904 PR middle-end/59743
40905 * ree.c (combine_reaching_defs): Ensure the defining statement
40906 occurs before the extension when optimizing extensions with
40907 different source and destination hard registers.
40908
40909 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
40910
40911 PR ipa/58585
40912 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
40913 vtables into the type inheritance graph.
40914
40915 2014-01-10 Jakub Jelinek <jakub@redhat.com>
40916
40917 PR rtl-optimization/59754
40918 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
40919 modes in the REGNO != REGNO case.
40920
40921 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40922
40923 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
40924
40925 2014-01-10 Jakub Jelinek <jakub@redhat.com>
40926
40927 PR tree-optimization/59745
40928 * tree-predcom.c (tree_predictive_commoning_loop): Call
40929 free_affine_expand_cache if giving up because components is NULL.
40930
40931 * target-globals.c (save_target_globals): Allocate < 4KB structs using
40932 GC in payload of target_globals struct instead of allocating them on
40933 the heap and the larger structs separately using GC.
40934 * target-globals.h (struct target_globals): Make regs, hard_regs,
40935 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
40936 of GTY((skip)) and change type to void *.
40937 (reset_target_globals): Cast loads from those fields to corresponding
40938 types.
40939
40940 2014-01-10 Steve Ellcey <sellcey@mips.com>
40941
40942 PR plugins/59335
40943 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
40944 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
40945 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
40946
40947 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
40948
40949 PR target/59744
40950 * aarch64-modes.def (CC_Zmode): New flags mode.
40951 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
40952 represents an equality.
40953 (aarch64_get_condition_code): Handle CC_Zmode.
40954 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
40955
40956 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40957
40958 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
40959 extraction in good case.
40960
40961 2014-01-10 Richard Biener <rguenther@suse.de>
40962
40963 PR tree-optimization/59374
40964 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
40965 checking after SLP discovery. Mark stmts not participating
40966 in any SLP instance properly.
40967
40968 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40969
40970 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
40971 when handling a SET rtx.
40972
40973 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40974
40975 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
40976 (cortex-a57): Likewise.
40977 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
40978
40979 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40980
40981 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
40982 non-iwmmxt builtins.
40983
40984 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
40985
40986 PR ipa/58252
40987 PR ipa/59226
40988 * ipa-devirt.c record_target_from_binfo): Take as argument
40989 stack of binfos and lookup matching one for virtual inheritance.
40990 (possible_polymorphic_call_targets_1): Update.
40991
40992 2014-01-10 Huacai Chen <chenhc@lemote.com>
40993
40994 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
40995 kernel strings for Loongson-2E/2F/3A.
40996
40997 2014-01-10 Jakub Jelinek <jakub@redhat.com>
40998
40999 PR middle-end/59670
41000 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
41001 is_gimple_call before calling gimple_call_internal_p.
41002
41003 2014-01-09 Steve Ellcey <sellcey@mips.com>
41004
41005 * Makefile.in (TREE_FLOW_H): Remove.
41006 (TREE_SSA_H): Add file names from tree-flow.h.
41007 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
41008 * tree.h: Remove tree-flow.h reference.
41009 * hash-table.h: Remove tree-flow.h reference.
41010 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
41011 reference with tree-ssa-loop.h.
41012
41013 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41014
41015 * doc/invoke.texi: Add -maltivec={be,le} options, and document
41016 default element-order behavior for -maltivec.
41017 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
41018 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
41019 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
41020 when targeting big endian, at least for now.
41021 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
41022
41023 2014-01-09 Jakub Jelinek <jakub@redhat.com>
41024
41025 PR middle-end/47735
41026 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
41027 var satisfies use_register_for_decl, just take into account type
41028 alignment, rather than decl alignment.
41029
41030 PR tree-optimization/59622
41031 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
41032 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
41033 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
41034 Don't devirtualize for inplace at all. For targets.length () == 1,
41035 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
41036
41037 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
41038
41039 * config/i386/i386.md (cpu): Remove the unused btver1.
41040
41041 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
41042
41043 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
41044
41045 2014-01-09 Jakub Jelinek <jakub@redhat.com>
41046
41047 PR target/58115
41048 * tree-core.h (struct target_globals): New forward declaration.
41049 (struct tree_target_option): Add globals field.
41050 * tree.h (TREE_TARGET_GLOBALS): Define.
41051 (prepare_target_option_nodes_for_pch): New prototype.
41052 * target-globals.h (struct target_globals): Define even if
41053 !SWITCHABLE_TARGET.
41054 * tree.c (prepare_target_option_node_for_pch,
41055 prepare_target_option_nodes_for_pch): New functions.
41056 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
41057 * config/i386/i386.c: Include target-globals.h.
41058 (ix86_set_current_function): Instead of doing target_reinit
41059 unconditionally, use save_target_globals_default_opts and
41060 restore_target_globals.
41061
41062 2014-01-09 Richard Biener <rguenther@suse.de>
41063
41064 PR tree-optimization/59715
41065 * tree-cfg.h (split_critical_edges): Declare.
41066 * tree-cfg.c (split_critical_edges): Export.
41067 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
41068
41069 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
41070
41071 * cfgexpand.c (expand_stack_vars): Optionally disable
41072 asan stack protection.
41073 (expand_used_vars): Likewise.
41074 (partition_stack_vars): Likewise.
41075 * asan.c (asan_emit_stack_protection): Optionally disable
41076 after return stack usage.
41077 (instrument_derefs): Optionally disable memory access instrumentation.
41078 (instrument_builtin_call): Likewise.
41079 (instrument_strlen_call): Likewise.
41080 (asan_protect_global): Optionally disable global variables protection.
41081 * doc/invoke.texi: Added doc for new options.
41082 * params.def: Added new options.
41083 * params.h: Likewise.
41084
41085 2014-01-09 Jakub Jelinek <jakub@redhat.com>
41086
41087 PR rtl-optimization/59724
41088 * ifcvt.c (cond_exec_process_if_block): Don't call
41089 flow_find_head_matching_sequence with 0 longest_match.
41090 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
41091 non-active insns if !stop_after.
41092 (try_head_merge_bb): Revert 2014-01-07 changes.
41093
41094 2014-01-08 Jeff Law <law@redhat.com>
41095
41096 * ree.c (get_sub_rtx): New function, extracted from...
41097 (merge_def_and_ext): Here.
41098 (combine_reaching_defs): Use get_sub_rtx.
41099
41100 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
41101
41102 * cgraph.h (varpool_variable_node): Do not choke on null node.
41103
41104 2014-01-08 Catherine Moore <clm@codesourcery.com>
41105
41106 * config/mips/mips.md (simple_return): Attempt to use JRC
41107 for microMIPS.
41108 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
41109
41110 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
41111
41112 PR rtl-optimization/59137
41113 * reorg.c (steal_delay_list_from_target): Call update_block for
41114 elided insns.
41115 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
41116
41117 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41118
41119 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
41120 two duplicate entries.
41121
41122 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
41123
41124 Revert:
41125 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
41126
41127 * config/mips/mips.c (mips_truncated_op_cost): New function.
41128 (mips_rtx_costs): Adjust test for BADDU.
41129 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
41130
41131 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
41132
41133 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
41134 (*baddu_si): ...this new pattern.
41135
41136 2014-01-08 Jakub Jelinek <jakub@redhat.com>
41137
41138 PR ipa/59722
41139 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
41140
41141 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
41142
41143 PR middle-end/57748
41144 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
41145 inner_reference_p.
41146 (expand_expr, expand_normal): Adjust.
41147 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
41148 inner_reference_p. Use inner_reference_p to expand inner references.
41149 (store_expr): Adjust.
41150 * cfgexpand.c (expand_call_stmt): Adjust.
41151
41152 2014-01-08 Rong Xu <xur@google.com>
41153
41154 * gcov-io.c (gcov_var): Move from gcov-io.h.
41155 (gcov_position): Ditto.
41156 (gcov_is_error): Ditto.
41157 (gcov_rewrite): Ditto.
41158 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
41159 only part to libgcc/libgcov.h.
41160
41161 2014-01-08 Marek Polacek <polacek@redhat.com>
41162
41163 PR middle-end/59669
41164 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
41165
41166 2014-01-08 Marek Polacek <polacek@redhat.com>
41167
41168 PR sanitizer/59667
41169 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
41170
41171 2014-01-08 Jakub Jelinek <jakub@redhat.com>
41172
41173 PR rtl-optimization/59649
41174 * stor-layout.c (get_mode_bounds): For BImode return
41175 0 and STORE_FLAG_VALUE.
41176
41177 2014-01-08 Richard Biener <rguenther@suse.de>
41178
41179 PR middle-end/59630
41180 * gimple.h (is_gimple_builtin_call): Remove.
41181 (gimple_builtin_call_types_compatible_p): New.
41182 (gimple_call_builtin_p): New overload.
41183 * gimple.c (is_gimple_builtin_call): Remove.
41184 (validate_call): Rename to ...
41185 (gimple_builtin_call_types_compatible_p): ... this and export. Also
41186 check return types.
41187 (validate_type): New static function.
41188 (gimple_call_builtin_p): New overload and adjust.
41189 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
41190 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
41191 (gimple_fold_stmt_to_constant_1): Likewise.
41192 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
41193
41194 2014-01-08 Richard Biener <rguenther@suse.de>
41195
41196 PR middle-end/59471
41197 * gimplify.c (gimplify_expr): Gimplify register-register type
41198 VIEW_CONVERT_EXPRs to separate stmts.
41199
41200 2014-01-07 Jeff Law <law@redhat.com>
41201
41202 PR middle-end/53623
41203 * ree.c (combine_set_extension): Handle case where source
41204 and destination registers in an extension insn are different.
41205 (combine_reaching_defs): Allow source and destination registers
41206 in extension to be different under limited circumstances.
41207 (add_removable_extension): Remove restriction that the
41208 source and destination registers in the extension are the same.
41209 (find_and_remove_re): Emit a copy from the extension's
41210 destination to its source after the defining insn if
41211 the source and destination registers are different.
41212
41213 PR middle-end/59285
41214 * ifcvt.c (merge_if_block): If we are merging a block with more than
41215 one successor with a block with no successors, remove any BARRIER
41216 after the second block.
41217
41218 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
41219
41220 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
41221
41222 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
41223
41224 PR target/59652
41225 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
41226 for 14-bit register offsets when INT14_OK_STRICT is false.
41227
41228 2014-01-07 Roland Stigge <stigge@antcom.de>
41229 Michael Meissner <meissner@linux.vnet.ibm.com>
41230
41231 PR 57386/target
41232 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
41233 Only check TFmode for SPE constants. Don't check TImode or TDmode.
41234
41235 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
41236
41237 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
41238 -mcpu.
41239
41240 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
41241
41242 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
41243 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
41244 rtx is const0_rtx or not.
41245
41246 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
41247
41248 PR target/58115
41249 * target-globals.c (save_target_globals): Remove this_fn_optab
41250 handling.
41251 * toplev.c: Include optabs.h.
41252 (target_reinit): Temporarily restore the global options if another
41253 set of options are in force.
41254
41255 2014-01-07 Jakub Jelinek <jakub@redhat.com>
41256
41257 PR rtl-optimization/58668
41258 * cfgcleanup.c (flow_find_cross_jump): Don't count
41259 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
41260 to determine what is counted.
41261 (flow_find_head_matching_sequence): Use active_insn_p to determine
41262 what is counted.
41263 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
41264 counting change.
41265 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
41266 determine what is counted.
41267
41268 PR tree-optimization/59643
41269 * tree-predcom.c (split_data_refs_to_components): If one dr is
41270 read and one write, determine_offset fails and the write isn't
41271 in the bad component, just put the read into the bad component.
41272
41273 2014-01-07 Mike Stump <mikestump@comcast.net>
41274 Jakub Jelinek <jakub@redhat.com>
41275
41276 PR pch/59436
41277 * tree-core.h (struct tree_optimization_option): Change optabs
41278 type from unsigned char * to void *.
41279 * optabs.c (init_tree_optimization_optabs): Adjust
41280 TREE_OPTIMIZATION_OPTABS initialization.
41281
41282 2014-01-06 Jakub Jelinek <jakub@redhat.com>
41283
41284 PR target/59644
41285 * config/i386/i386.h (struct machine_function): Add
41286 no_drap_save_restore field.
41287 * config/i386/i386.c (ix86_save_reg): Use
41288 !cfun->machine->no_drap_save_restore instead of
41289 crtl->stack_realign_needed.
41290 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
41291 this function clears frame_pointer_needed. Set
41292 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
41293 and DRAP reg is needed.
41294
41295 2014-01-06 Marek Polacek <polacek@redhat.com>
41296
41297 PR c/57773
41298 * doc/implement-c.texi: Mention that other integer types are
41299 permitted as bit-field types in strictly conforming mode.
41300
41301 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
41302
41303 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
41304 is newly allocated.
41305
41306 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
41307
41308 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
41309
41310 2014-01-06 Martin Jambor <mjambor@suse.cz>
41311
41312 PR ipa/59008
41313 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
41314 to int.
41315 * ipa-prop.c (ipa_print_node_params): Fix indentation.
41316
41317 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
41318
41319 PR debug/59350
41320 PR debug/59510
41321 * var-tracking.c (add_stores): Preserve the value of the source even if
41322 we don't record the store.
41323
41324 2014-01-06 Terry Guo <terry.guo@arm.com>
41325
41326 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
41327
41328 2014-01-05 Iain Sandoe <iain@codesourcery.com>
41329
41330 PR bootstrap/59541
41331 * config/darwin.c (darwin_function_section): Adjust return values to
41332 correspond to optimisation changes made in r206070.
41333
41334 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
41335
41336 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
41337 from prefetch_block tune setting.
41338 (nocona_cost): Correct size of prefetch block to 64.
41339
41340 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
41341
41342 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
41343 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
41344 used to save the static chain register in the computation of the offset
41345 from which the FP registers need to be restored.
41346
41347 2014-01-04 Jakub Jelinek <jakub@redhat.com>
41348
41349 PR tree-optimization/59519
41350 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
41351 ICE if get_current_def (current_new_name) is already non-NULL, as long
41352 as it is a phi result of some other phi in *new_exit_bb that has
41353 the same argument.
41354
41355 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
41356 or vmovdqu* for misaligned_operand.
41357 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
41358 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
41359 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
41360 aligned_mem for AVX512F masked aligned load and store builtins and for
41361 non-temporal moves.
41362
41363 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
41364
41365 PR tree-optimization/59651
41366 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
41367 Address range for negative step should be added by TYPE_SIZE_UNIT.
41368
41369 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
41370
41371 * config/m68k/m68k.c (handle_move_double): Handle pushes with
41372 overlapping registers also for registers other than the stack pointer.
41373
41374 2014-01-03 Marek Polacek <polacek@redhat.com>
41375
41376 PR other/59661
41377 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
41378 __builtin_FILE.
41379
41380 2014-01-03 Jakub Jelinek <jakub@redhat.com>
41381
41382 PR target/59625
41383 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
41384 asm goto as jump.
41385
41386 * config/i386/i386.md (MODE_SIZE): New mode attribute.
41387 (push splitter): Use <P:MODE_SIZE> instead of
41388 GET_MODE_SIZE (<P:MODE>mode).
41389 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
41390 (mov -1, reg peephole2): Likewise.
41391 * config/i386/sse.md (*mov<mode>_internal,
41392 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
41393 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
41394 *<code><mode>3, *andnot<mode>3<mask_name>,
41395 <mask_codefor><code><mode>3<mask_name>): Likewise.
41396 * config/i386/subst.md (mask_mode512bit_condition,
41397 sd_mask_mode512bit_condition): Likewise.
41398
41399 2014-01-02 Xinliang David Li <davidxl@google.com>
41400
41401 PR tree-optimization/59303
41402 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
41403 (dump_predicates): Better output format.
41404 (pred_equal_p): New function.
41405 (is_neq_relop_p): Ditto.
41406 (is_neq_zero_form_p): Ditto.
41407 (pred_expr_equal_p): Ditto.
41408 (pred_neg_p): Ditto.
41409 (simplify_pred): Ditto.
41410 (simplify_preds_2): Ditto.
41411 (simplify_preds_3): Ditto.
41412 (simplify_preds_4): Ditto.
41413 (simplify_preds): Ditto.
41414 (push_pred): Ditto.
41415 (push_to_worklist): Ditto.
41416 (get_pred_info_from_cmp): Ditto.
41417 (is_degenerated_phi): Ditto.
41418 (normalize_one_pred_1): Ditto.
41419 (normalize_one_pred): Ditto.
41420 (normalize_one_pred_chain): Ditto.
41421 (normalize_preds): Ditto.
41422 (normalize_cond_1): Remove function.
41423 (normalize_cond): Ditto.
41424 (is_gcond_subset_of): Ditto.
41425 (is_subset_of_any): Ditto.
41426 (is_or_set_subset_of): Ditto.
41427 (is_and_set_subset_of): Ditto.
41428 (is_norm_cond_subset_of): Ditto.
41429 (pred_chain_length_cmp): Ditto.
41430 (convert_control_dep_chain_into_preds): Type change.
41431 (find_predicates): Ditto.
41432 (find_def_preds): Ditto.
41433 (destroy_predicates_vecs): Ditto.
41434 (find_matching_predicates_in_rest_chains): Ditto.
41435 (use_pred_not_overlap_with_undef_path_pred): Ditto.
41436 (is_pred_expr_subset): Ditto.
41437 (is_pred_chain_subset_of): Ditto.
41438 (is_included_in): Ditto.
41439 (is_superset_of): Ditto.
41440
41441 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
41442
41443 Update copyright years.
41444
41445 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
41446
41447 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
41448 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
41449 config/arc/arc.md, config/arc/arc.opt,
41450 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
41451 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
41452 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
41453 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
41454 config/linux-protos.h, config/linux.c, config/winnt-c.c,
41455 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
41456 vtable-verify.c, vtable-verify.h: Use the standard form for the
41457 copyright notice.
41458
41459 2014-01-02 Tobias Burnus <burnus@net-b.de>
41460
41461 * gcc.c (process_command): Update copyright notice dates.
41462 * gcov-dump.c: Ditto.
41463 * gcov.c: Ditto.
41464 * doc/cpp.texi: Bump @copying's copyright year.
41465 * doc/cppinternals.texi: Ditto.
41466 * doc/gcc.texi: Ditto.
41467 * doc/gccint.texi: Ditto.
41468 * doc/gcov.texi: Ditto.
41469 * doc/install.texi: Ditto.
41470 * doc/invoke.texi: Ditto.
41471
41472 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
41473
41474 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
41475
41476 2014-01-01 Jakub Jelinek <jakub@redhat.com>
41477
41478 * config/i386/sse.md (*mov<mode>_internal): Guard
41479 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
41480
41481 PR rtl-optimization/59647
41482 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
41483 new_rtx into UNSIGNED_FLOAT rtxes.
41484 \f
41485 Copyright (C) 2014 Free Software Foundation, Inc.
41486
41487 Copying and distribution of this file, with or without modification,
41488 are permitted in any medium without royalty provided the copyright
41489 notice and this notice are preserved.