4b3248fb5268276fae8c7a266e5d9ba2834ad350
[gcc.git] / gcc / ChangeLog
1 2014-11-27 Eric Botcazou <ebotcazou@adacore.com>
2
3 * dwarf2out.c (set_block_origin_self): Skip nested functions.
4
5 2014-11-27 H.J. Lu <hongjiu.lu@intel.com>
6
7 PR target/63833
8 * config/i386/i386.h (REAL_PIC_OFFSET_TABLE_REGNUM): Use
9 R15_REG for 64-bit.
10 * config/i386/rdos64.h (REAL_PIC_OFFSET_TABLE_REGNUM): Removed.
11
12 2014-11-27 Martin Liska <mliska@suse.cz>
13 David Malcolm <dmalcolm@redhat.com>
14
15 * ipa-icf.c (sem_function::equals_private): int* is replaced with
16 auto_vec.
17 (sem_function::bb_dict_test): Likewise.
18 * ipa-icf.h: Likewise.
19
20 2014-11-27 Richard Biener <rguenther@suse.de>
21
22 PR middle-end/64088
23 * fold-const.c (const_unop): Re-instantiate missing condition
24 before calling fold_abs_const.
25
26 PR tree-optimization/64088
27 * tree-ssa-tail-merge.c (update_debug_stmt): After resetting
28 the stmt break from the loop over use operands.
29
30 2014-11-27 Ilya Tocar <ilya.tocar@intel.com>
31
32 * config/i386/cpuid.h (bit_MPX, bit_BNDREGS, bit_BNDCSR):
33 Define.
34 * config/i386/i386.c (get_builtin_code_for_version): Add avx512f.
35 (fold_builtin_cpu): Ditto.
36 * doc/extend.texi: Documment it.
37
38 2014-11-27 Jakub Jelinek <jakub@redhat.com>
39
40 PR middle-end/64067
41 * expr.c (expand_expr_addr_expr_1) <case COMPOUND_LITERAL_EXPR>:
42 Handle it by returning address of COMPOUND_LITERAL_EXPR_DECL
43 not only if modifier is EXPAND_INITIALIZER, but whenever
44 COMPOUND_LITERAL_EXPR_DECL is non-NULL and TREE_STATIC.
45
46 PR tree-optimization/64024
47 * tree-vectorizer.h (struct _stmt_vec_info): Remove simd_clone_fndecl
48 field. Add simd_clone_info field.
49 (STMT_VINFO_SIMD_CLONE_FNDECL): Remove.
50 (STMT_VINFO_SIMD_CLONE_INFO): Define.
51 * tree-vect-stmts.c (vectorizable_simd_clone_call): Adjust for
52 STMT_VINFO_SIMD_CLONE_FNDECL becoming first element of
53 STMT_VINFO_SIMD_CLONE_INFO vector. For linear arguments, remember
54 base and linear_step from analysis phase and use it during transform
55 phase, biased by the difference between LOOP_VINFO_NITERS{_UNCHANGED,}
56 multiplied by linear_step.
57 (free_stmt_vec_info): Release STMT_VINFO_SIMD_CLONE_INFO.
58
59 PR lto/64025
60 * alias.c (find_base_term): Use std::swap. Prefer tmp2
61 if it is CONSTANT_P other than CONST_INT.
62
63 2014-11-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
64
65 PR target/59593
66 * config/arm/arm.c (dump_minipool): dispatch to consttable pattern
67 based on mode size.
68 * config/arm/arm.md (consttable_1): Move from config/arm/thumb1.md and
69 make it TARGET_EITHER.
70 (consttable_2): Move from config/arm/thumb1.md, make it TARGET_EITHER
71 and move HFmode handling from consttable_4 to it.
72 (consttable_4): Move HFmode handling to consttable_2 pattern.
73 * config/arm/thumb1.md (consttable_1): Move to config/arm/arm.md.
74 (consttable_2): Ditto.
75
76 2014-11-27 Richard Biener <rguenther@suse.de>
77
78 * tree-ssa-sccvn.c (try_to_simplify): Allow
79 gimple_fold_stmt_to_constant_1 to follow SSA edges.
80
81 2014-11-27 Richard Biener <rguenther@suse.de>
82
83 PR tree-optimization/64083
84 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
85 forcibly mark loop for removal the wrong way.
86
87 2014-11-27 Richard Biener <rguenther@suse.de>
88
89 PR middle-end/63704
90 * alias.c (mems_in_disjoint_alias_sets_p): Remove assert
91 and instead return false when !fstrict-aliasing.
92
93 2014-11-27 Richard Biener <rguenther@suse.de>
94
95 PR tree-optimization/61634
96 * tree-vect-slp.c: Include gimple-walk.h.
97 (vect_detect_hybrid_slp_stmts): Rewrite to propagate hybrid
98 down the SLP tree for one scalar statement.
99 (vect_detect_hybrid_slp_1): New walker function.
100 (vect_detect_hybrid_slp_2): Likewise.
101 (vect_detect_hybrid_slp): Properly handle pattern statements
102 in a pre-scan over all loop stmts.
103
104 2014-11-27 Zhenqiang Chen <zhenqiang.chen@linaro.org>
105
106 Revert:
107 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
108 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
109 aarch64_convert_mode, aarch64_gen_ccmp_first,
110 aarch64_gen_ccmp_next): New functions.
111 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
112
113 2014-11-26 Jakub Jelinek <jakub@redhat.com>
114
115 * gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread
116 without -pie or -shared, error on -fsanitize=thread -static instead.
117
118 2014-11-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
119
120 PR ipa/61190
121 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Fix comment.
122 (cgraph_node::function_or_virtual_thunk_symbol): New function.
123 (cgraph_node::call_for_symbol_and_aliases): Fix comment.
124 (cgraph_node::call_for_symbol_thunks_and_aliases): Adjust comment.
125 Add new optional parameter exclude_virtual_thunks.
126 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Add new
127 optional parameter exclude_virtual_thunks.
128 (cgraph_node::set_const_flag): Don't propagate to virtual thunks.
129 (cgraph_node::set_pure_flag): Likewise.
130 (cgraph_node::function_symbol): Simplified.
131 (cgraph_node::function_or_virtual_thunk_symbol): New function.
132 * ipa-pure-const.c (analyze_function): For virtual thunks set
133 pure_const_state to IPA_NEITHER.
134 (propagate_pure_const): Use function_or_virtual_thunk_symbol.
135
136 2014-11-26 Richard Biener <rguenther@suse.de>
137
138 PR middle-end/63738
139 * tree-data-ref.c (split_constant_offset_1): Do not follow
140 SSA edges for SSA names with SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
141
142 2014-11-26 Richard Biener <rguenther@suse.de>
143
144 * fold-const.h (const_unop): Declare.
145 (const_binop): Likewise.
146 * fold-const.c (const_binop): Export overload that expects
147 a type parameter and dispatches to fold_relational_const as well.
148 Check both operand kinds for guarding the transforms.
149 (const_unop): New function, with constant folding from fold_unary_loc.
150 (fold_unary_loc): Dispatch to const_unop for tcc_constant operand.
151 Remove constant folding done there from the simplifications.
152 (fold_binary_loc): Check for constants using CONSTANT_CLASS_P.
153 (fold_negate_expr): Remove dead code from the REAL_CST case.
154 Avoid building garbage in the COMPLEX_CST case.
155 * gimple-match-head.c (gimple_resimplify1): Dispatch to
156 const_unop.
157 (gimple_resimplify2): Dispatch to const_binop.
158 (gimple_simplify): Likewise.
159
160 2014-11-26 Ilya Enkovich <ilya.enkovich@intel.com>
161
162 PR bootstrap/63995
163 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Ignore
164 debug statement when searching for a new position for
165 bounds load/creation statement.
166
167 2014-11-26 Marek Polacek <polacek@redhat.com>
168
169 PR sanitizer/63788
170 * asan.c (initialize_sanitizer_builtins): Add BT_FN_SIZE_CONST_PTR_INT
171 var. Conditionally build BUILT_IN_OBJECT_SIZE decl.
172 (ATTR_PURE_NOTHROW_LEAF_LIST): Define.
173
174 2014-11-26 Ilya Enkovich <ilya.enkovich@intel.com>
175
176 PR lto/64075
177 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Use
178 proper size for function_code bitfield.
179 (pack_ts_function_decl_value_fields): Likewise.
180
181 2014-11-21 Mark Wielaard <mjw@redhat.com>
182
183 * doc/invoke.texi (-gdwarf-@{version}): Mention experimental DWARFv5.
184 * opts.c (common_handle_option): Accept -gdwarf-5.
185 * dwarf2out.c (is_cxx): Add DW_LANG_C_plus_plus_11 and
186 DW_LANG_C_plus_plus_14.
187 (lower_bound_default): Likewise. Plus DW_LANG_C11.
188 (gen_compile_unit_die): Output DW_LANG_C_plus_plus_11,
189 DW_LANG_C_plus_plus_14 or DW_LANG_C11.
190 (output_compilation_unit_header): Output at most a DWARFv4 header.
191 (output_skeleton_debug_sections): Likewise.
192 (output_line_info): Likewise.
193 (output_aranges): Document header version number.
194
195 2014-11-26 Richard Biener <rguenther@suse.de>
196
197 * gimple-fold.c (get_symbol_constant_value): Allow all
198 GIMPLE register type zero-constants.
199
200 2014-11-26 Mark Wielaard <mjw@redhat.com>
201
202 * dwarf2out.c (gen_subprogram_die): Add DW_AT_noreturn when the
203 function decl has TREE_THIS_VOLATILE.
204
205 2014-11-26 Richard Biener <rguenther@suse.de>
206
207 PR tree-optimization/62238
208 * tree-predcom.c (ref_at_iteration): Unshare the expression
209 before gimplifying it.
210 (prepare_initializers_chain): Discard unused seq.
211
212 2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
213
214 * ira-lives.c (process_bb_node_lives): Make code with conditional
215 REAL_PIC_OFFSET_TABLE_REGNUM.
216
217 2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
218
219 PR target/63527
220 * ira-lives.c (process_bb_node_lives): Check and remove conflict
221 of pic pseudo with pic hard reg.
222
223 2014-11-25 Rohit <rohitarulraj@freescale.com>
224
225 PR bootstrap/63703
226 * config/rs6000/darwin.h (REGISTER_NAMES): Update based on 32 newly
227 added GCC hard register numbers for SPE high registers.
228
229 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
230
231 * bt-load.c (migrate_btr_defs): Get the key of a heap entry
232 before removing it, not after.
233
234 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
235
236 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Remove
237 PATTERN call.
238
239 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
240
241 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_POP): Use addi instead
242 of addic.
243
244 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
245
246 * config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs.
247 (rest of file): Replace those with code resp. CODE.
248
249 2014-11-25 Tom de Vries <tom@codesourcery.com>
250
251 * tree-cfg.c (verify_sese): New function.
252 (move_sese_region_to_fn): Call verify_sese.
253 * tree-cfg.h (verify_sese): Declare.
254
255 2014-11-25 Richard Biener <rguenther@suse.de>
256
257 PR lto/64065
258 * lto-streamer-out.c (output_struct_function_base): Stream
259 last_clique field.
260 * lto-streamer-in.c (input_struct_function_base): Likewise.
261
262 2014-11-25 Martin Liska <mliska@suse.cz>
263
264 PR bootstrap/64050
265 PR ipa/64060
266 * sreal.c (sreal::operator+): Addition fixed.
267 (sreal::signedless_plus): Negative numbers are
268 handled correctly.
269 (sreal::operator-): Subtraction is fixed.
270 (sreal::signedless_minus): Negative numbers are
271 handled correctly.
272 * sreal.h (sreal::operator<): Equal negative numbers
273 are compared correctly.
274 (sreal::shift): New checking asserts are introduced.
275 Operation is fixed.
276
277 2014-11-25 Richard Biener <rguenther@suse.de>
278
279 PR tree-optimization/61927
280 * tree-vect-loop.c (vect_analyze_loop_2): Revert ordering
281 of group and pattern analysis to the one in GCC 4.8.
282
283 2014-11-25 Ilya Tocar <ilya.tocar@intel.com>
284 Jakub Jelinek <jakub@redhat.com>
285
286 * gcc.c (handle_foffload_option): Remove unnecessary calls to strchr,
287 strlen, strncpy.
288 * lto-wrapper.c (append_offload_options): Likewise.
289
290 2014-11-25 Eric Botcazou <ebotcazou@adacore.com>
291
292 * config/rs6000/rs6000.c (rs6000_call_aix): For the AIX ABI, do not
293 load the static chain if the call was originally direct.
294
295 2014-11-25 Jan Hubicka <hubicka@ucw.cz>
296
297 PR ipa/64059
298 * ipa-prop.c (ipa_analyze_call_uses): Don't call get_dynamic_type when
299 devirtualization is disabled.
300
301 2014-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
302
303 PR target/63965
304 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
305 Altivec & -16 mask if the type is not valid for Altivec registers.
306 (rs6000_secondary_reload_memory): Add support for ((reg + const) +
307 reg) that occurs during push_reload processing.
308
309 * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
310 alternative for moving constant vectors which are easy altivec
311 constants to GPRs. Set the length attribute each of the
312 alternatives.
313
314 * config/rs6000/rs6000-cpus.def: Undo November 21st changes, a
315 work in progress patch was committed instead of the fixes for
316 63965.
317 * config/rs6000/rs6000.c: Likewise.
318
319 2014-11-22 Jan Hubicka <hubicka@ucw.cz>
320
321 PR ipa/63671
322 * ipa-inline-transform.c (can_remove_node_now_p_1): Handle alises
323 and -fno-devirtualize more carefully.
324 (can_remove_node_now_p): Update.
325
326 2014-11-24 Andrew Pinski <apinski@cavium.com>
327
328 PR rtl-opt/63972
329 * shrink-wrap.c (move_insn_for_shrink_wrap): Allow LO_SUM also.
330
331 2014-11-24 Alan Lawrence <alan.lawrence@arm.com>
332
333 * config/aarch64/aarch64-simd.md (vec_shr<mode>): New.
334
335 2014-11-24 Alan Lawrence <alan.lawrence@arm.com>
336
337 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
338 Refactor by combining switch statements and make arrays into scalars.
339
340 2014-11-24 David Edelsohn <dje.gcc@gmail.com>
341
342 PR c++/58561
343 * dbxout.c: Include stringpool.h
344 (dbxout_type) [default]: Ignore auto type.
345
346 2014-11-24 Richard Biener <rguenther@suse.de>
347
348 PR tree-optimization/63679
349 * tree-ssa-sccvn.c: Include ipa-ref.h, plugin-api.h and cgraph.h.
350 (copy_reference_ops_from_ref): Fix non-constant ADDR_EXPR case
351 to properly leave off at -1.
352 (fully_constant_vn_reference_p): Generalize folding from
353 constant initializers.
354 (vn_reference_lookup_3): When looking through aggregate copies
355 handle offsetted reads and try simplifying the result to
356 a constant.
357 * gimple-fold.h (fold_ctor_reference): Export.
358 * gimple-fold.c (fold_ctor_reference): Likewise.
359
360 2014-11-24 Petr Murzin <petr.murzin@intel.com>
361
362 * simplify-rtx.c (simplify_ternary_operation): Simplify
363 vec_merge (vec_duplicate (vec_select)).
364
365 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
366
367 * config/aarch64/aarch64.c (AARCH64_FUSE_ADRP_LDR): Define.
368 (cortexa53_tunings): Specify AARCH64_FUSE_ADRP_LDR in fuseable_ops.
369 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_LDR.
370
371 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
372
373 * config/aarch64/aarch64.c (AARCH64_FUSE_MOVK_MOVK): Define.
374 (cortexa53_tunings): Specify AARCH64_FUSE_MOVK_MOVK in fuseable_ops.
375 (cortexa57_tunings): Likewise.
376 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_MOVK_MOVK.
377
378 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
379
380 * sched-deps.c (sched_macro_fuse_insns): Do not check modified_in_p
381 in the not conditional jump case.
382 * doc/tm.texi (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
383 * target.def (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
384
385 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
386
387 * config/aarch64/aarch64.c: Include tm-constrs.h
388 (AARCH64_FUSE_ADRP_ADD): Define.
389 (cortexa57_tunings): Add AARCH64_FUSE_ADRP_ADD to fuseable_ops.
390 (cortexa53_tunings): Likewise.
391 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_ADD.
392
393 2014-11-24 Martin Liska <mliska@suse.cz>
394
395 * ipa-inline.c (edge_badness): long is replaced by sreal
396 as fibonacci_heap template type.
397 (update_edge_key): Likewise.
398 (inline_small_functions): Likewise.
399
400 2014-11-24 Martin Liska <mliska@suse.cz>
401
402 * predict.c (propagate_freq): More elegant sreal API is used.
403 (estimate_bb_frequencies): Precomputed constants replaced by integer
404 constants.
405 * sreal.c (sreal::normalize): New function.
406 (sreal::to_int): Likewise.
407 (sreal::operator+): Likewise.
408 (sreal::operator-): Likewise.
409 (sreal::signedless_plus): Likewise.
410 (sreal::signedless_minus): Likewise.
411 (sreal::operator/): Negative number support is added.
412 * sreal.h: Definition of new functions added.
413 (inline sreal operator<<): New function.
414 (inline sreal operator>>): Likewise.
415
416 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
417
418 * config/aarch64/aarch64-protos.h (struct tune_params): Add
419 fuseable_ops field.
420 * config/aarch64/aarch64.c (generic_tunings): Specify fuseable_ops.
421 (cortexa53_tunings): Likewise.
422 (cortexa57_tunings): Likewise.
423 (thunderx_tunings): Likewise.
424 (aarch64_macro_fusion_p): New function.
425 (aarch_macro_fusion_pair_p): Likewise.
426 (TARGET_SCHED_MACRO_FUSION_P): Define.
427 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
428 (AARCH64_FUSE_MOV_MOVK): Likewise.
429 (AARCH64_FUSE_NOTHING): Likewise.
430
431 2014-11-24 Martin Liska <mliska@suse.cz>
432
433 PR lto/63968
434 * bb-reorder.c (find_traces_1_round): decreate_key is replaced
435 with replace_key method.
436 * fibonacci_heap.h (fibonacci_heap::insert): New argument.
437 (fibonacci_heap::replace_key_data): Likewise.
438 (fibonacci_heap::replace_key): New method that can even increment key,
439 this operation costs O(log N).
440 (fibonacci_heap::extract_min): New argument.
441 (fibonacci_heap::delete_node): Likewise.
442
443 2014-11-24 Richard Biener <rguenther@suse.de>
444
445 PR tree-optimization/55334
446 * function.h (struct function): Add last_clique member.
447 * tree-inline.c (remap_dependence_clique): New function.
448 (remap_gimple_op_r): Remap dependence cliques in MEM_REFs.
449 (copy_tree_body_r): Likewise.
450 (copy_cfg_body): Free dependence map.
451 (copy_gimple_seq_and_replace_locals): Likewise.
452 * tree-pretty-print.c (dump_generic_node): Dump
453 dependence info.
454 * tree-ssa-alias.c (refs_may_alias_p_1): Use dependence info
455 to answer alias query.
456 * tree-ssa-structalias.c: Include tree-phinodes.h, ssa-iterators.h,
457 tree-pretty-print.h and gimple-walk.h.
458 (struct variable_info): Add is_restrict_var flag and ruid
459 member.
460 (new_var_info): Initialize is_restrict_var.
461 (make_constraint_from_restrict): Likewise.
462 (create_variable_info_for): Exclude restricts from global vars
463 from new handling.
464 (intra_create_variable_infos): But not those from parameters.
465 (visit_loadstore): New function.
466 (maybe_set_dependence_info): Likewise.
467 (compute_dependence_clique): Likewise.
468 (compute_may_aliases): Call compute_dependence_clique.
469 * tree-data-ref.c (dr_analyze_indices): Copy dependence info
470 to fake MEM_REF.
471 (dr_may_alias_p): Use recorded dependence info to answer
472 alias query.
473 * tree-core.h (struct tree_base): Add clique, base struct in
474 union.
475 * tree.h (MR_DEPENDENCE_CLIQUE): New macro.
476 (MR_DEPENDENCE_BASE): Likewise.
477 * tree-inline.h (dependence_hasher): New hash-map kind.
478 (struct copy_body_data): Add dependence_map pointer.
479 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Avoid
480 throwing away dependence info.
481 * tree-streamer-in.c (unpack_value_fields): Stream dependence info.
482 * tree-streamer-out.c (streamer_pack_tree_bitfields): Likewise.
483
484 2014-11-23 Oleg Endo <olegendo@gcc.gnu.org>
485
486 PR target/53976
487 * config/sh/sh_optimize_sett_clrt.cc
488 (sh_optimize_sett_clrt::find_last_ccreg_values): Return bool instead
489 of void. Abort at complex edges.
490 (sh_optimize_sett_clrt::execute): Do nothing if find_last_ccreg_values
491 returned false.
492
493 2014-11-22 John David Anglin <danglin@gcc.gnu.org>
494
495 PR other/63694
496 * configure.ac: Check for strtol, strtoul, strtoll and strtoull
497 declarations.
498 * configure: Regenerated.
499 * config.in: Regenerated.
500
501 2014-11-22 Jan Hubicka <hubicka@ucw.cz>
502
503 * ipa.c (symbol_table::remove_unreachable_nodes): Mark all inline
504 clones as having abstract origin used.
505 * ipa-inline-transform.c (can_remove_node_now_p_1): Drop abstract
506 origin check.
507 (clone_inlined_nodes): Copy abstract originflag.
508 * lto-cgraph.c (compute_ltrans_boundary): Use get_create to get
509 abstract origin node.
510
511 2014-11-22 Uros Bizjak <ubizjak@gmail.com>
512
513 * params.def (PARAM_MAX_COMPLETELY_PEELED_INSNS): Increase to 200.
514 * config/i386/i386.c (ix86_option_override_internal): Do not increase
515 PARAM_MAX_COMPLETELY_PEELED_INSNS.
516
517 2014-11-22 Oleg Endo <olegendo@gcc.gnu.org>
518
519 PR target/63783
520 PR target/51244
521 * config/sh/sh_treg_combine.cc (sh_treg_combine::make_not_reg_insn):
522 Do not emit bitwise not insn. Emit logical not insn sequence instead.
523 Adjust related comments throughout the file.
524
525 2014-11-22 Oleg Endo <olegendo@gcc.gnu.org>
526
527 PR target/63986
528 PR target/51244
529 * config/sh/sh.c (sh_is_logical_t_store_expr,
530 sh_try_omit_signzero_extend): Use rtx_insn* for insn argument.
531 (sh_split_movrt_negc_to_movt_xor): New function.
532 (sh_find_set_of_reg): Move to ...
533 * config/sh/sh-protos.h (sh_find_set_of_reg): ... here and convert
534 to template function.
535 (set_of_reg): Use rtx_insn* for insn member.
536 (sh_is_logical_t_store_expr, sh_try_omit_signzero_extend): Use
537 rtx_insn* for insn argument.
538 * config/sh/sh.md (movrt_negc, *movrt_negc): Split into movt-xor
539 sequence using new sh_split_movrt_negc_to_movt_xor function.
540 (movrt_xor): Allow also for SH2A.
541 (*movt_movrt): Delete insns and splits.
542
543 2014-11-22 Marc Glisse <marc.glisse@inria.fr>
544
545 PR tree-optimization/60770
546 * tree-sra.c (clobber_subtree): New function.
547 (sra_modify_constructor_assign): Call it.
548
549 2014-11-21 Vladimir Makarov <vmakarov@redhat.com>
550
551 PR target/63897
552 * lra-lives.c (mark_regno_live, mark_regno_dead): Remove last
553 argument.
554 (process_bb_lives): Rename dead_insn_p on remove_p
555 and global_live_info_p on dead_insn_p. Calculate local live info
556 unconditionally. Remove last argument in calls mark_regno_live and
557 mark_regno_dead. Reorganize body of EXECUTE_IF_SET_IN_BITMAP.
558 (lra_create_live_ranges): Rename to lra_create_live_ranges_1.
559 Return bool. Rename global_live_info_p on dead_insn_p. Return
560 flag of live info change.
561 (lra_create_live_ranges): New.
562
563 2014-11-21 Jakub Jelinek <jakub@redhat.com>
564
565 PR target/63848
566 PR target/63975
567 * internal-fn.c (expand_arith_overflow_result_store,
568 expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow): Use
569 do_compare_rtx_and_jump instead of emit_cmp_and_jump_insns everywhere,
570 adjust arguments to those functions. Use unsignedp = true for
571 EQ, NE, GEU, LEU, LTU and GTU comparisons.
572
573 PR tree-optimization/64006
574 * tree-vrp.c (stmt_interesting_for_vrp): Return true
575 for {ADD,SUB,MUL}_OVERFLOW internal calls.
576 (vrp_visit_assignment_or_call): For {ADD,SUB,MUL}_OVERFLOW
577 internal calls, check if any REALPART_EXPR/IMAGPART_EXPR
578 immediate uses would change their value ranges and return
579 SSA_PROP_INTERESTING if so, or SSA_PROP_NOT_INTERESTING
580 if there are some REALPART_EXPR/IMAGPART_EXPR immediate uses
581 interesting for vrp.
582
583 2014-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
584
585 PR target/63965
586 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
587 Altivec & -16 mask if the type is not valid for Altivec registers.
588 (rs6000_secondary_reload_memory): Add support for ((reg + const) +
589 reg) that occurs during push_reload processing.
590
591 * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
592 alternative for moving constant vectors which are easy altivec
593 constants to GPRs. Set the length attribute each of the
594 alternatives.
595
596 2014-11-21 Matthew Fortune <matthew.fortune@imgtec.com>
597
598 * configure.ac: When checking for MIPS .module support ensure that
599 o32 FPXX is supported to avoid a second configure check.
600 * configure: Regenerate.
601
602 2014-11-21 Jiong Wang <jiong.wang@arm.com>
603
604 * config/aarch64/iterators.md (VS): New mode iterator.
605 (vsi2qi): New mode attribute.
606 (VSI2QI): Likewise.
607 * config/aarch64/aarch64-simd-builtins.def: New entry for ctz.
608 * config/aarch64/aarch64-simd.md (ctz<mode>2): New pattern for ctz.
609 * config/aarch64/aarch64-builtins.c
610 (aarch64_builtin_vectorized_function): Support BUILT_IN_CTZ.
611
612 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
613
614 PR bootstrap/63784
615 * configure: Regenerated.
616
617 2014-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
618
619 * config/aarch64/arm_neon.h (vsqrt_f64): New intrinsic.
620
621 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
622
623 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
624 OPTION_MASK_ISA_PCOMMIT_SET): New.
625 (ix86_handle_option): Handle OPT_mpcommit.
626 * config.gcc: Add pcommitintrin.h
627 * config/i386/pcommitintrin.h: New file.
628 * config/i386/cpuid.h (bit_PCOMMIT): Define.
629 * config/i386/driver-i386.c (host_detect_local_cpu): Detect pcommit.
630 * config/i386/i386-c.c (ix86_target_macros_internal): Define
631 __PCOMMIT__.
632 * config/i386/i386.c (ix86_target_string): Add -mpcommit.
633 (PTA_PCOMMIT): Define.
634 (ix86_option_override_internal): Handle new option.
635 (ix86_valid_target_attribute_inner_p): Add pcommit.
636 (ix86_builtins): Add IX86_BUILTIN_PCOMMIT.
637 (bdesc_special_args): Add __builtin_ia32_pcommit.
638 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Define.
639 * config/i386/i386.md (unspecv): Add UNSPECV_PCOMMIT.
640 (pcommit): New instruction.
641 * config/i386/i386.opt: Add mpcommit.
642 * config/i386/x86intrin.h: Include pcommitintrin.h.
643
644 2014-11-20 Mark Wielaard <mjw@redhat.com>
645
646 PR debug/38757
647 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use lang_GNU_C.
648 * config/darwin.c (darwin_file_end): Use lang_GNU_CXX.
649 (darwin_override_options): Likewise.
650 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
651 Likewise.
652 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
653 Likewise.
654 * dbxout.c (get_lang_number): Likewise.
655 (dbxout_type): Likewise.
656 (dbxout_symbol_location): Likewise.
657 * dwarf2out.c (add_prototyped_attribute): Add DW_AT_prototype
658 also for DW_LANG_{C,C99,ObjC}.
659 (highest_c_language): New function.
660 (gen_compile_unit_die): Call highest_c_language to merge LTO
661 TRANSLATION_UNIT_LANGUAGE. Use strncmp language_string to
662 determine if DW_LANG_C99 or DW_LANG_C89 should be returned.
663 * fold-const.c (fold_cond_expr_with_comparison): Use lang_GNU_CXX.
664 * langhooks.h (struct lang_hooks): Add version comment to name.
665 (lang_GNU_C): New function declaration.
666 (lang_GNU_CXX): Likewise.
667 * langhooks.c (lang_GNU_C): New function.
668 (lang_GNU_CXX): Likewise.
669 * vmsdbgout.c (vmsdbgout_init): Use lang_GNU_C and lang_GNU_CXX.
670
671 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
672
673 * common/config/i386/i386-common.c (OPTION_MASK_ISA_CLWB_UNSET,
674 OPTION_MASK_ISA_CLWB_SET): New.
675 (ix86_handle_option): Handle OPT_mclwb.
676 * config.gcc: Add clwbintrin.h.
677 * config/i386/clwbintrin.h: New file.
678 * config/i386/cpuid.h (bit_CLWB): Define.
679 * config/i386/driver-i386.c (host_detect_local_cpu): Detect clwb.
680 * config/i386/i386-c.c (ix86_target_macros_internal): Define
681 __CLWB__.
682 * config/i386/i386.c (ix86_target_string): Add -mclwb.
683 (PTA_CLWB): Define.
684 (ix86_option_override_internal): Handle new option.
685 (ix86_valid_target_attribute_inner_p): Add clwb.
686 (ix86_builtins): Add IX86_BUILTIN_CLWB.
687 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clwb.
688 (ix86_expand_builtin): Handle IX86_BUILTIN_CLWB.
689 * config/i386/i386.h (TARGET_CLWB, TARGET_CLWB_P): Define.
690 * config/i386/i386.md (unspecv): Add UNSPECV_CLWB.
691 (clwb): New instruction.
692 * config/i386/i386.opt: Add mclwb.
693 * config/i386/x86intrin.h: Include clwbintrin.h.
694
695 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
696
697 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET
698 OPTION_MASK_ISA_AVX512VBMI_UNSET): New.
699 (ix86_handle_option): Handle OPT_mavx512vbmi.
700 * config.gcc: Add avx512vbmiintrin.h, avx512vbmivlintrin.h.
701 * config/i386/avx512vbmiintrin.h: New file.
702 * config/i386/avx512vbmivlintrin.h: Ditto.
703 * config/i386/cpuid.h (bit_AVX512VBMI): New.
704 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vbmi.
705 * config/i386/i386-c.c (ix86_target_macros_internal): Define
706 __AVX512VBMI__.
707 * config/i386/i386.c (ix86_target_string): Add -mavx512vbmi.
708 (PTA_AVX512VBMI): Define.
709 (ix86_option_override_internal): Handle new options.
710 (ix86_valid_target_attribute_inner_p): Add avx512vbmi,
711 (ix86_builtins): Add IX86_BUILTIN_VPMULTISHIFTQB512,
712 IX86_BUILTIN_VPMULTISHIFTQB256, IX86_BUILTIN_VPMULTISHIFTQB128,
713 IX86_BUILTIN_VPERMVARQI512_MASK, IX86_BUILTIN_VPERMT2VARQI512,
714 IX86_BUILTIN_VPERMT2VARQI512_MASKZ, IX86_BUILTIN_VPERMI2VARQI512,
715 IX86_BUILTIN_VPERMVARQI256_MASK, IX86_BUILTIN_VPERMVARQI128_MASK,
716 IX86_BUILTIN_VPERMT2VARQI256, IX86_BUILTIN_VPERMT2VARQI256_MASKZ,
717 IX86_BUILTIN_VPERMT2VARQI128, IX86_BUILTIN_VPERMI2VARQI256,
718 IX86_BUILTIN_VPERMI2VARQI128.
719 (bdesc_special_args): Add __builtin_ia32_vpmultishiftqb512_mask,
720 __builtin_ia32_vpmultishiftqb256_mask,
721 __builtin_ia32_vpmultishiftqb128_mask,
722 __builtin_ia32_permvarqi512_mask, __builtin_ia32_vpermt2varqi512_mask,
723 __builtin_ia32_vpermt2varqi512_maskz,
724 __builtin_ia32_vpermi2varqi512_mask, __builtin_ia32_permvarqi256_mask,
725 __builtin_ia32_permvarqi128_mask, __builtin_ia32_vpermt2varqi256_mask,
726 __builtin_ia32_vpermt2varqi256_maskz,
727 __builtin_ia32_vpermt2varqi128_mask,
728 __builtin_ia32_vpermt2varqi128_maskz,
729 __builtin_ia32_vpermi2varqi256_mask,
730 __builtin_ia32_vpermi2varqi128_mask.
731 (ix86_hard_regno_mode_ok): Allow big masks for AVX512VBMI.
732 * config/i386/i386.h (TARGET_AVX512VBMI, TARGET_AVX512VBMI_P): Define.
733 * config/i386/i386.opt: Add mavx512vbmi.
734 * config/i386/immintrin.h: Include avx512vbmiintrin.h,
735 avx512vbmivlintrin.h.
736 * config/i386/sse.md (unspec): Add UNSPEC_VPMULTISHIFT.
737 (VI1_AVX512VL): New iterator.
738 (<avx512>_permvar<mode><mask_name>): Use it.
739 (<avx512>_vpermi2var<mode>3_maskz): Ditto.
740 (<avx512>_vpermi2var<mode>3<sd_maskz_name>): Ditto.
741 (<avx512>_vpermi2var<mode>3_mask): Ditto.
742 (<avx512>_vpermt2var<mode>3_maskz): Ditto.
743 (<avx512>_vpermt2var<mode>3<sd_maskz_name>): Ditto.
744 (<avx512>_vpermt2var<mode>3_mask): Ditto.
745 (vpmultishiftqb<mode><mask_name>): Ditto.
746
747 2014-11-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
748
749 PR rtl-optimization/63952
750 * optabs.c (prepare_cmp_insn): Do not call can_compare_p for CCmode.
751 * config/s390/s390.md ("cbranchcc4"): Accept any s390_comparison.
752 Remove incorrect TARGET_HARD_FLOAT check and no-op expander code.
753
754 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
755
756 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512IFMA_SET,
757 OPTION_MASK_ISA_AVX512IFMA_UNSET): New.
758 (ix86_handle_option): Handle OPT_mavx512ifma.
759 * config.gcc: Add avx512ifmaintrin.h, avx512ifmavlintrin.h.
760 * config/i386/avx512ifmaintrin.h: New file.
761 * config/i386/avx512ifmaivlntrin.h: Ditto.
762 * config/i386/cpuid.h (bit_AVX512IFMA): New.
763 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
764 avx512ifma.
765 * config/i386/i386-c.c (ix86_target_macros_internal): Define
766 __AVX512IFMA__.
767 * config/i386/i386.c (ix86_target_string): Add -mavx512ifma.
768 (PTA_AVX512IFMA): Define.
769 (ix86_option_override_internal): Handle new options.
770 (ix86_valid_target_attribute_inner_p): Add avx512ifma.
771 (ix86_builtins): Add IX86_BUILTIN_VPMADD52LUQ512,
772 IX86_BUILTIN_VPMADD52HUQ512, IX86_BUILTIN_VPMADD52LUQ256,
773 IX86_BUILTIN_VPMADD52HUQ256, IX86_BUILTIN_VPMADD52LUQ128,
774 IX86_BUILTIN_VPMADD52HUQ128, IX86_BUILTIN_VPMADD52LUQ512_MASKZ,
775 IX86_BUILTIN_VPMADD52HUQ512_MASKZ, IX86_BUILTIN_VPMADD52LUQ256_MASKZ,
776 IX86_BUILTIN_VPMADD52HUQ256_MASKZ, IX86_BUILTIN_VPMADD52LUQ128_MASKZ,
777 IX86_BUILTIN_VPMADD52HUQ128_MASKZ.
778 (bdesc_special_args): Add __builtin_ia32_vpmadd52luq512_mask,
779 __builtin_ia32_vpmadd52luq512_maskz,
780 __builtin_ia32_vpmadd52huq512_mask,
781 __builtin_ia32_vpmadd52huq512_maskx,
782 __builtin_ia32_vpmadd52luq256_mask,
783 __builtin_ia32_vpmadd52luq256_maskz,
784 __builtin_ia32_vpmadd52huq256_mask,
785 __builtin_ia32_vpmadd52huq256_maskz,
786 __builtin_ia32_vpmadd52luq128_mask,
787 __builtin_ia32_vpmadd52luq128_maskz,
788 __builtin_ia32_vpmadd52huq128_mask,
789 __builtin_ia32_vpmadd52huq128_maskz,
790 * config/i386/i386.h (TARGET_AVX512IFMA, TARGET_AVX512IFMA_P): Define.
791 * config/i386/i386.opt: Add mavx512ifma.
792 * config/i386/immintrin.h: Include avx512ifmaintrin.h,
793 avx512ifmavlintrin.h.
794 * config/i386/sse.md (unspec): Add UNSPEC_VPMADD52LUQ,
795 UNSPEC_VPMADD52HUQ.
796 (VPMADD52): New iterator.
797 (vpmadd52type): New attribute.
798 (vpamdd52huq<mode>_maskz): New.
799 (vpamdd52luq<mode>_maskz): Ditto.
800 (vpamdd52<vpmadd52type><mode><sd_maskz_name>): Ditto.
801 (vpamdd52<vpmadd52type><mode>_mask): Ditto.
802
803 2014-11-21 Alan Lawrence <alan.lawrence@arm.com>
804
805 Revert:
806 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
807 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
808
809 2014-11-21 Andrew Bennett <andrew.bennett@imgtec.com>
810
811 * config/mips/mips.c (mips_process_sync_loop): Place a
812 nop in the delay slot of the branch likely instruction.
813 (mips_output_sync_loop): Ensure mips_branch_likely is
814 set before calling mips_output_sync_loop.
815 (mips_sync_loop_insns): Likewise.
816
817 2014-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
818
819 PR/target 63673
820 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Allow
821 the base pointer of vec_vsx_ld and vec_vsx_st to take a pointer to
822 double.
823
824 2014-11-21 Georg-Johann Lay <avr@gjlay.de>
825
826 Forward-port from 2014-10-30 4_9-branch r216934
827
828 PR target/63633
829 * config/avr/avr-protos.h (regmask): New inline function.
830 (avr_fix_inputs, avr_emit3_fix_outputs): New protos.
831 * config/avr/avr.c (avr_fix_operands, avr_move_fixed_operands)
832 (avr_fix_inputs, avr_emit3_fix_outputs): New functions.
833 * config/avr/avr-fixed.md (mulqq3_nomul, muluqq3_nomul)
834 (mul<ALL2QA>3, mul<ALL4A>3, <usdiv><ALL1Q>3, <usdiv><ALL2QA>3)
835 (<usdiv><ALL4A>3, round<ALL124QA>3): Fix input operands.
836 * config/avr/avr-dimode.md (add<ALL8>3, sub<ALL8>3)
837 (<ss_addsub><ALL8S>3, <us_addsub><ALL8U>3, cbranch<ALL8>4)
838 (<di_shifts><ALL8>3, <any_extend>mulsidi3): Fix input operands.
839 * config/avr/avr.md (mulqi3_call, mulhi3_call, mulsi3, mulpsi3)
840 (mulu<QIHI>si3, muls<QIHI>si3, mulohisi3, <any_extend>mulhisi3)
841 (usmulhisi3, <any_extend>mulhi3_highpart, mulsqipsi3)
842 (fmul, fmuls, fmulsu): Fix operands. Turn insn into expander as
843 needed.
844
845 2014-11-21 Jakub Jelinek <jakub@redhat.com>
846
847 PR target/61137
848 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
849 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
850
851 2014-11-21 James Greenhalgh <james.greenhalgh@arm.com>
852
853 * config/aarch64/aarch64-simd.md
854 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Add a tab between
855 output mnemonic and operands.
856 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
857 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
858
859 2014-11-21 Evgeny Stupachenko <evstupac@gmail.com>
860
861 * config/i386/i386.c (ix86_option_override_internal): Increase
862 PARAM_MAX_COMPLETELY_PEELED_INSNS.
863
864 2014-11-21 Evgeny Stupachenko <evstupac@gmail.com>
865
866 PR target/60451
867 * config/i386/i386.c (expand_vec_perm_even_odd_pack): New.
868 (expand_vec_perm_even_odd_1): Add new expand for V8HI mode,
869 replace for V16QI, V16HI and V32QI modes.
870 (ix86_expand_vec_perm_const_1): Add new expand.
871
872 2014-11-21 Nick Clifton <nickc@redhat.com>
873
874 * config/rl78/rl78-real.md (movqi_from_es): New pattern.
875 * config/rl78/rl78.c (struct machine_function): Add uses_es field.
876 (rl78_expand_prologue): Save the ES register in interrupt handlers
877 that use it.
878 (rl78_expand_epilogue): Restore the ES register if necessary.
879 (rl78_start_function): Mention if the function uses the ES
880 register.
881 (rl78_lo16): Record the use of the ES register.
882 (transcode_memory_rtx): Likewise.
883
884 2014-11-21 Jakub Jelinek <jakub@redhat.com>
885
886 PR tree-optimization/61773
887 * tree-ssa-strlen.c (get_string_length): Don't assert
888 stpcpy has been prototyped if si->stmt is BUILT_IN_MALLOC.
889
890 PR target/63910
891 * simplify-rtx.c (simplify_immed_subreg): Return NULL for integer
892 modes wider than MAX_BITSIZE_MODE_ANY_INT. If not using
893 CONST_WIDE_INT, make sure r fits into CONST_DOUBLE.
894
895 2014-11-21 Markus Trippelsdorf <markus@trippelsdorf.de>
896
897 * config/rs6000/rs6000.c (includes_rldic_lshift_p): Use
898 HOST_WIDE_INT_M1U instead of ~0.
899 (includes_rldicr_lshift_p): Likewise.
900
901 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
902
903 * config/nds32/nds32.c (nds32_legitimate_address_p): For LO_SUM,
904 we need to look into its operand to determine if it is a valid
905 address.
906
907 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
908
909 * config/nds32/nds32.c (nds32_emit_stack_push_multiple): Add new
910 vaarg_p argument and create correct CFI info.
911 (nds32_expand_prologue): Pass true or false to
912 nds32_emit_stack_push_multiple function.
913
914 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
915
916 * config/nds32/nds32.c (nds32_expand_prologue): Set fp_adjust_insn
917 as RTX_FRAME_RELATED_P rtx.
918
919 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
920
921 * config/nds32/nds32.opt (march): Add help message.
922
923 2014-11-20 Patrick Palka <ppalka@gcc.gnu.org>
924
925 * tree-vrp.c (test_for_singularity): New parameter
926 strict_overflow_p. Set *strict_overflow_p to true if signed
927 overflow must be undefined for the return value to satisfy the
928 conditional.
929 (simplify_cond_using_ranges): Don't perform the simplification
930 if it violates overflow rules.
931
932 2014-11-20 Marek Polacek <polacek@redhat.com>
933
934 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Fix typo.
935
936 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
937
938 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
939 condition would be removed due to undefined behaviour.
940
941 2014-11-20 Andrew Pinski <apinski@cavium.com>
942
943 PR ipa/63981
944 PR ipa/63982
945 * ipa-polymorphic-call.c (possible_placement_new):
946 Use POINTER_SIZE instead of GET_MODE_BITSIZE (Pmode).
947 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
948 (extr_type_from_vtbl_ptr_store): Likewise.
949
950 2014-11-20 Markus Trippelsdorf <markus@trippelsdorf.de>
951
952 * config/rs6000/constraints.md: Avoid signed integer overflows.
953 * config/rs6000/predicates.md: Likewise.
954 * config/rs6000/rs6000.c (num_insns_constant_wide): Likewise.
955 (includes_rldic_lshift_p): Likewise.
956 (includes_rldicr_lshift_p): Likewise.
957 * emit-rtl.c (const_wide_int_htab_hash): Likewise.
958 * loop-iv.c (determine_max_iter): Likewise.
959 (iv_number_of_iterations): Likewise.
960 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Likewise.
961 * varasm.c (get_section_anchor): Likewise.
962
963 2014-11-20 Charles Baylis <charles.baylis@linaro.org>
964
965 PR target/63870
966 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Pass
967 expression to aarch64_simd_lane_bounds.
968 * config/aarch64/aarch64-protos.h (aarch64_simd_lane_bounds): Update
969 prototype.
970 * config/aarch64/aarch64-simd.md: (aarch64_combinez<mode>): Update
971 call to aarch64_simd_lane_bounds.
972 (aarch64_get_lanedi): Likewise.
973 (aarch64_ld2_lane<mode>): Likewise.
974 (aarch64_ld3_lane<mode>): Likewise.
975 (aarch64_ld4_lane<mode>): Likewise.
976 (aarch64_im_lane_boundsi): Likewise.
977 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Add exp
978 parameter. Report calling function in error message if exp is non-NULL.
979
980 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
981
982 PR target/60111
983 * config/sh/sh.c: Use signed char for signed field.
984
985 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
986
987 * cfgexpand.c, gimple-ssa.h, trans-mem.c: Replace htab with
988 hash_table.
989
990 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
991
992 * ipa-utils.c, lto-section-in.c, lto-streamer.h,
993 tree-scalar-evolution.c: Replace htab with hash_table.
994
995 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
996
997 * lto-section-in.c (lto_delete_in_decl_state): Adjust.
998 (lto_free_function_in_decl_state): Likewise.
999 * lto-streamer-out.c (copy_function_or_variable): Likewise.
1000 * lto-streamer.h (lto_file_decl_data_get_ ## name): Likewise.
1001 (lto_file_decl_data_num_ ## name ## s): Likewise.
1002 (struct lto_tree_ref_table): Remove.
1003 (struct lto_in_decl_state): Replace lto_tree_ref_table with vec<tree>.
1004
1005 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
1006
1007 * hash-map.h (hash_map::iterator): New class.
1008 (hash_map::begin): New method.
1009 (hash_map::end): Likewise.
1010 * alias.c, config/alpha/alpha.c, dwarf2asm.c, omp-low.c, tree.h:
1011 replace splay_tree with hash_map.
1012
1013 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
1014
1015 * hash-table.h (hash_table::hash_table): Call alloc_entries.
1016 (hash_table::alloc_entries): new method.
1017 (hash_table::expand): Call alloc_entries.
1018 (hash_table::empty): Likewise.
1019
1020 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
1021
1022 * config/i386/i386.c, function.c, trans-mem.c, tree-core.h,
1023 tree.c, tree.h, ubsan.c, varasm.c: Use hash_table instead of htab.
1024
1025 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
1026
1027 * doc/gty.texi: Document the new cache gty attribute.
1028 * gengtype.c (finish_cache_funcs): New function.
1029 (write_roots): Call gt_clear_cache on global variables with the cache
1030 gty attribute.
1031 * ggc-common.c (ggc_mark_roots): Call gt_clear_caches.
1032 * ggc.h (gt_clear_caches): New declaration.
1033 * hash-table.h (struct ggc_cache_hasher): New hasher for caches in gc
1034 memory.
1035 (gt_cleare_cache): New function.
1036 * emit-rtl.c, rtl.h, tree.c: Use hash_table instead of htab.
1037
1038 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1039
1040 * combine.c (try_combine): Prefer to delete dead SETs inside
1041 a PARALLEL over keeping them.
1042
1043 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1044
1045 * combine.c (combine_validate_cost): Always print the insn costs
1046 to the dump file.
1047
1048 2014-11-20 Richard Henderson <rth@redhat.com>
1049
1050 PR target/63977
1051 * config/i386/i386.c (ix86_static_chain): Reinstate the check
1052 for DECL_STATIC_CHAIN.
1053
1054 2014-11-20 Tejas Belagod <tejas.belagod@arm.com>
1055
1056 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol):
1057 Fixup prototype.
1058 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate,
1059 aarch64_cannot_force_const_mem, aarch64_classify_address,
1060 aarch64_classify_symbolic_expression): Fixup call to
1061 aarch64_classify_symbol.
1062 (aarch64_classify_symbol): Add range-checking for
1063 symbol + offset addressing for tiny and small models.
1064
1065 2014-11-20 Richard Biener <rguenther@suse.de>
1066
1067 PR middle-end/63962
1068 * match.pd ((p +p off1) +p off2 -> (p +p (off1 + off2))):
1069 Guard with single-use operand 0.
1070
1071 2014-11-20 Richard Biener <rguenther@suse.de>
1072
1073 PR tree-optimization/63677
1074 * tree-ssa-dom.c: Include gimplify.h for unshare_expr.
1075 (avail_exprs_stack): Make a vector of pairs.
1076 (struct hash_expr_elt): Replace stmt member with vop member.
1077 (expr_elt_hasher::equal): Simplify.
1078 (initialize_hash_element): Adjust.
1079 (initialize_hash_element_from_expr): Likewise.
1080 (dom_opt_dom_walker::thread_across_edge): Likewise.
1081 (record_cond): Likewise.
1082 (dom_opt_dom_walker::before_dom_children): Likewise.
1083 (print_expr_hash_elt): Likewise.
1084 (remove_local_expressions_from_table): Restore previous state
1085 if requested.
1086 (record_equivalences_from_stmt): Record &x + CST as constant
1087 &MEM[&x, CST] for further propagation.
1088 (vuse_eq): New function.
1089 (lookup_avail_expr): For loads use the alias oracle to see
1090 whether a candidate from the expr hash is usable.
1091 (avail_expr_hash): Do not hash VUSEs.
1092
1093 2014-11-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1094
1095 PR target/59593
1096 * config/arm/arm.md (*movhi_insn): Use right formatting
1097 for immediate.
1098
1099 2014-11-20 Igor Zamyatin <igor.zamyatin@intel.com>
1100
1101 PR sanitizer/63845
1102 * function.c (assign_parms): Move init of pic_offset_table_rtx
1103 from here to...
1104 * cfgexpand.c (expand_used_vars): ...here.
1105
1106 2014-11-19 Jan Hubicka <hubicka@ucw.cz>
1107
1108 * tree.c (free_lang_data_in_type): If BINFO has no important
1109 information in it, set it to NULL.
1110 (get_binfo_at_offset): Do not walk fields, only bases.
1111 * ipa-utils.h (polymorphic_type_binfo_p): Be ready for BINFO_TYPE
1112 to be NULL.
1113 * ipa-polymorphic-call.c (record_known_type): Likewise.
1114
1115 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1116
1117 PR jit/63854
1118 * ipa-icf.c (sem_item_optimizer::~sem_item_optimizer): Free each
1119 congruence_class_group *.
1120
1121 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
1122
1123 PR target/63947
1124 * config/i386/i386.c (put_condition_code) <case LTU, case GEU>:
1125 Output "b" and "nb" suffix for FP mode.
1126
1127 2014-11-19 Jan Hubicka <hubicka@ucw.cz>
1128
1129 PR bootstrap/63963
1130 * tree-streamer-out.c (write_ts_function_decl_tree_pointers): Stream out
1131 DECL_FUNCTION_SPECIFIC_TARGET
1132 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): Stream in
1133 DECL_FUNCTION_SPECIFIC_TARGET.
1134
1135 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1136
1137 PR jit/63854
1138 * pass_manager.h (GCC_PASS_LISTS): Add all_late_ipa_passes.
1139
1140 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1141
1142 PR jit/63854
1143 * lra.c (lra): After creating live ranges in preparation for call
1144 to lra_inheritance, set live_p to true.
1145
1146 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1147
1148 PR jit/63854
1149 * tree-ssa-threadedge.c (thread_across_edge): Don't just release
1150 "path", delete it.
1151 * tree-ssa-threadupdate.c (delete_jump_thread_path): Likewise.
1152
1153 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1154
1155 PR jit/63854
1156 * tree-ssa-pre.c (do_regular_insertion): Convert "avail" from
1157 vec<> to auto_vec<> to fix a leak.
1158
1159 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1160
1161 PR jit/63854
1162 * dwarf2out.c (dwarf2out_c_finalize): Free producer_string.
1163
1164 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1165
1166 PR jit/63854
1167 * ira-costs.c (ira_costs_c_finalize): New function.
1168 * ira.h (ira_costs_c_finalize): New prototype.
1169 * toplev.c (toplev::finalize): Call ira_costs_c_finalize.
1170
1171 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1172
1173 PR jit/63854
1174 * ipa-reference.c (ipa_reference_c_finalize): Release
1175 optimization_summary_obstack.
1176
1177 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1178
1179 PR jit/63854
1180 * toplev.c (toplev::finalize): Free opts_obstack.
1181
1182 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1183
1184 PR jit/63854
1185 * toplev.c (toplev::finalize): Clean up save_decoded_options.
1186
1187 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1188
1189 PR jit/63854
1190 * bb-reorder.c
1191 (find_rarely_executed_basic_blocks_and_crossing_edges): Convert
1192 local bbs_in_hot_partition from vec<> to auto_vec<>.
1193
1194 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1195
1196 PR jit/63854
1197 * config/alpha/alpha.c (alpha_option_override): Remove static from
1198 "handle_trap_shadows_info" and "align_insns_info".
1199 * config/i386/i386.c (ix86_option_override): Likewise for
1200 "insert_vzeroupper_info".
1201 * config/rl78/rl78.c (rl78_asm_file_start): Likewise for
1202 "rl78_devirt_info" and "rl78_move_elim_info".
1203 * config/rs6000/rs6000.c (rs6000_option_override): Likewise for
1204 "analyze_swaps_info".
1205 * context.c (gcc::context::~context): New.
1206 * context.h (gcc::context::~context): New.
1207 * dumpfile.c (dump_files): Add "false" initializers for new field
1208 "owns_strings".
1209 (gcc::dump_manager::~dump_manager): New.
1210 (gcc::dump_manager::dump_register): Add param "take_ownership".
1211 * dumpfile.h (struct dump_file_info): Add field "owns_strings".
1212 (gcc::dump_manager::~dump_manager): New.
1213 (gcc::dump_manager::dump_register): Add param "take_ownership".
1214 * pass_manager.h (gcc::pass_manager::operator delete): New.
1215 (gcc::pass_manager::~pass_manager): New.
1216 * passes.c (pass_manager::register_one_dump_file): Pass "true" to
1217 new "owns_strings" argument to dump_register.
1218 (pass_manager::operator delete): New.
1219 (delete_pass_tree): New function.
1220 (pass_manager::~pass_manager): New.
1221 * statistics.c (statistics_early_init): Pass "false" to
1222 new "owns_strings" argument to dump_register.
1223 * toplev.c (toplev::finalize): Clean up the context and thus the
1224 things it owns.
1225
1226 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1227
1228 PR jit/63854
1229 * reginfo.c (finish_subregs_of_mode): Replace obstack_finish with
1230 obstack_free when cleaning up valid_mode_changes_obstack.
1231
1232 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1233
1234 PR jit/63854
1235 * opts.c (finalize_options_struct): New.
1236 * opts.h (finalize_options_struct): New.
1237 * toplev.c (toplev::finalize): Call finalize_options_struct
1238 on global_options and global_options_set.
1239
1240 2014-11-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1241 Jakub Jelinek <jakub@redhat.com>
1242
1243 PR driver/36312
1244 PR driver/63837
1245 * gcc.c (process_command): Don't check for input/output
1246 filename equality if output is HOST_BIT_BUCKET.
1247 * toplev.c (init_asm_output): Likewise.
1248
1249 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1250
1251 Merger of git branch "gimple-classes-v2-option-3".
1252
1253 * ChangeLog.gimple-classes: New.
1254
1255 * coretypes.h (struct gcond): Add forward decl.
1256 (struct gdebug): Likewise.
1257 (struct ggoto): Likewise.
1258 (struct glabel): Likewise.
1259 (struct gswitch): Likewise.
1260 (struct gassign): Likewise.
1261 (struct gasm): Likewise.
1262 (struct gcall): Likewise.
1263 (struct gtransaction): Likewise.
1264 (struct greturn): Likewise.
1265 (struct gbind): Likewise.
1266 (struct gcatch): Likewise.
1267 (struct geh_filter): Likewise.
1268 (struct geh_mnt): Likewise.
1269 (struct geh_else): Likewise.
1270 (struct gresx): Likewise.
1271 (struct geh_dispatch): Likewise.
1272 (struct gphi): Likewise.
1273 (struct gtry): Likewise.
1274 (struct gomp_atomic_load): Likewise.
1275 (struct gomp_atomic_store): Likewise.
1276 (struct gomp_continue): Likewise.
1277 (struct gomp_critical): Likewise.
1278 (struct gomp_for): Likewise.
1279 (struct gomp_parallel): Likewise.
1280 (struct gomp_task): Likewise.
1281 (struct gomp_sections): Likewise.
1282 (struct gomp_single): Likewise.
1283 (struct gomp_target): Likewise.
1284 (struct gomp_teams): Likewise.
1285
1286 * doc/gimple.texi (Class hierarchy of GIMPLE statements): Update
1287 for renaming of gimple subclasses.
1288
1289 * gdbhooks.py: Update.
1290
1291 * gimple-iterator.c (gsi_for_phi): New.
1292 (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
1293 to gphi_iterator.
1294 * gimple-iterator.h (struct gphi_iterator): New subclass of
1295 gimple_stmt_iterator.
1296 (gsi_for_phi): New prototype.
1297 (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
1298 to gphi_iterator.
1299 (gsi_next_nonvirtual_phi): Strengthen param from
1300 gimple_stmt_iterator * to gphi_iterator *, and local "phi" from
1301 gimple to gphi *.
1302
1303 * gsstruct.def: Update for renamings of classes.
1304
1305 * gimple.c (gimple_build_return): Strengthen return type from
1306 gimple to greturn *.
1307 (gimple_call_reset_alias_info): Strengthen param to gcall *.
1308 (gimple_build_call_1): Strengthen return type from gimple to
1309 gcall *.
1310 (gimple_build_call_vec): Likewise.
1311 (gimple_build_call): Likewise.
1312 (gimple_build_call_valist): Likewise.
1313 (gimple_build_call_internal_1): Likewise.
1314 (gimple_build_call_internal): Likewise.
1315 (gimple_build_call_internal_vec): Likewise.
1316 (gimple_build_call_from_tree): Likewise.
1317 (gimple_build_assign_stat): Strengthen return type from gimple to
1318 gassign *.
1319 (gimple_build_assign_with_ops): Likewise.
1320 (gimple_build_assign_with_ops): Likewise.
1321 (gimple_build_cond): Strengthen return type from gimple to
1322 gcond *.
1323 (gimple_build_cond_from_tree): Likewise.
1324 (gimple_cond_set_condition_from_tree): Require a gcond *.
1325 (gimple_build_label): Strengthen return type from gimple to
1326 glabel *.
1327 (gimple_build_goto): Strengthen return type from gimple to
1328 ggoto *.
1329 (gimple_build_bind): Strengthen return type from gimple to
1330 gbind *.
1331 (gimple_build_asm_1): Strengthen return type from gimple to
1332 gasm *.
1333 (gimple_build_asm_vec): Likewise.
1334 (gimple_build_catch): Strengthen return type from gimple to
1335 gcatch *.
1336 (gimple_build_eh_filter): Strengthen return type from gimple to
1337 geh_filter *.
1338 (gimple_build_eh_must_not_throw): Strengthen return type from
1339 gimple to geh_mnt *.
1340 (gimple_build_eh_else): Strengthen return type from gimple to
1341 geh_else *.
1342 (gimple_build_try): Update for renaming of gimple_statement_try to
1343 gtry.
1344 (gimple_build_resx): Strengthen return type from gimple to
1345 gresx *.
1346 (gimple_build_switch_nlabels): Strengthen return type from gimple
1347 to gswitch *.
1348 (gimple_build_switch): Likewise.
1349 (gimple_build_eh_dispatch): Strengthen return type from gimple to
1350 geh_dispatch *.
1351 (gimple_build_debug_bind_stat): Strengthen return type from gimple
1352 to gdebug *.
1353 (gimple_build_debug_source_bind_stat): Strengthen return type from
1354 gimple to gdebug *.
1355 (gimple_build_omp_critical): Strengthen return type from gimple to
1356 gomp_critical *.
1357 (gimple_build_omp_for): Strengthen return type from gimple to
1358 gomp_for *.
1359 (gimple_build_omp_parallel): Strengthen return type from gimple to
1360 gomp_parallel *.
1361 (gimple_build_omp_task): Strengthen return type from gimple to
1362 gomp_task *.
1363 (gimple_build_omp_continue): Strengthen return type from gimple to
1364 gomp_continue *.
1365 (gimple_build_omp_sections): Strengthen return type from gimple to
1366 gomp_sections *.
1367 (gimple_build_omp_single): Strengthen return type from gimple to
1368 gomp_single *.
1369 (gimple_build_omp_target): Strengthen return type from gimple to
1370 gomp_target *.
1371 (gimple_build_omp_teams): Strengthen return type from gimple to
1372 gomp_teams *.
1373 (gimple_build_omp_atomic_load): Strengthen return type from gimple
1374 to gomp_atomic_load *.
1375 (gimple_build_omp_atomic_store): Strengthen return type from gimple
1376 to gomp_atomic_store *.
1377 (gimple_build_transaction): Strengthen return type from gimple
1378 to gtransaction *.
1379 (empty_stmt_p): Replace check for GIMPLE_BIND with a dyn_cast.
1380 (gimple_call_fnspec): Require a const gcall *.
1381 (gimple_call_arg_flags): Likewise.
1382 (gimple_call_return_flags): Likewise.
1383 (gimple_set_bb): Add a checked cast.
1384 (gimple_copy): Within the cases, add locals of the appropriate
1385 subclass and use in place of "stmt" and "copy" for typesafety.
1386 (gimple_has_side_effects): Add a checked cast.
1387 (gimple_could_trap_p_1): Likewise.
1388 (gimple_call_copy_skip_args): Require a gcall *, and return one.
1389 (gimple_asm_clobbers_memory_p): Require a const gasm *.
1390 (infer_nonnull_range): Replace a check for GIMPLE_RETURN with a
1391 dyn_cast, introducing local "return_stmt" and using ti in place
1392 of "stmt".
1393
1394 * gimple.h (gimple_vec): Eliminate this typedef.
1395 (struct gimple_statement_call): Rename to...
1396 (struct gcall): ...this.
1397 (struct gimple_statement_bind): Rename to...
1398 (struct gbind): ...this.
1399 (struct gimple_statement_catch): Rename to...
1400 (struct gcatch): ...this.
1401 (struct gimple_statement_eh_filter): Rename to...
1402 (struct geh_filter): ...this.
1403 (struct gimple_statement_eh_else): Rename to...
1404 (struct geh_else): ...this.
1405 (struct gimple_statement_eh_mnt): Rename to...
1406 (struct geh_mnt): ...this.
1407 (struct gimple_statement_phi): Rename to...
1408 (struct gphi): ...this.
1409 (struct gimple_statement_resx): Rename to...
1410 (struct gresx): ...this.
1411 (struct gimple_statement_eh_dispatch): Rename to...
1412 (struct geh_dispatch): ...this.
1413 (struct gimple_statement_try): Rename to...
1414 (struct gtry): ...this.
1415 (struct gimple_statement_asm): Rename to...
1416 (struct gasm): ...this.
1417 (struct gimple_statement_omp_critical): Rename to...
1418 (struct gomp_critical): ...this.
1419 (struct gimple_statement_omp_for): Rename to...
1420 (struct gomp_for): ...this.
1421 (struct gimple_statement_omp_parallel): Rename to...
1422 (struct gomp_parallel): ...this.
1423 (struct gimple_statement_omp_target): Rename to...
1424 (struct gomp_target): ...this.
1425 (struct gimple_statement_omp_task): Rename to...
1426 (struct gomp_task): ...this.
1427 (struct gimple_statement_omp_sections): Rename to...
1428 (struct gomp_sections): ...this.
1429 (struct gimple_statement_omp_continue): Rename to...
1430 (struct gomp_continue): ...this.
1431 (struct gimple_statement_omp_single): Rename to...
1432 (struct gomp_single): ...this.
1433 (struct gimple_statement_omp_teams): Rename to...
1434 (struct gomp_teams): ...this.
1435 (struct gimple_statement_omp_atomic_load): Rename to...
1436 (struct gomp_atomic_load): ...this.
1437 (struct gimple_statement_omp_atomic_store :): Rename to...
1438 (struct gomp_atomic_store :): ...this.
1439 (struct gimple_statement_transaction): Rename to...
1440 (struct gtransaction): ...this.
1441 (struct gcond): New subclass.
1442 (struct gdebug): New subclass.
1443 (struct ggoto): New subclass.
1444 (struct glabel): New subclass.
1445 (struct gswitch): New subclass.
1446 (struct gassign): New subclass.
1447 (struct greturn): New subclass.
1448 (is_a_helper <gimple_statement_asm *>::test): Rename to...
1449 (is_a_helper <gasm *>::test): ...this.
1450 (is_a_helper <gimple_statement_bind *>::test): Rename to...
1451 (is_a_helper <gbind *>::test): ...this.
1452 (is_a_helper <gassign *>::test): New.
1453 (is_a_helper <gimple_statement_call *>::test): Rename to...
1454 (is_a_helper <gcall *>::test): ...this.
1455 (is_a_helper <gimple_statement_catch *>::test): Rename to...
1456 (is_a_helper <gcatch *>::test): ...this.
1457 (is_a_helper <gimple_statement_resx *>::test): Rename to...
1458 (is_a_helper <gresx *>::test): ...this.
1459 (is_a_helper <gcond *>::test): New.
1460 (is_a_helper <gdebug *>::test): New.
1461 (is_a_helper <ggoto *>::test): New.
1462 (is_a_helper <glabel *>::test): New.
1463 (is_a_helper <gimple_statement_eh_dispatch *>::test): Rename to...
1464 (is_a_helper <geh_dispatch *>::test): ...this.
1465 (is_a_helper <gimple_statement_eh_else *>::test): Rename to...
1466 (is_a_helper <geh_else *>::test): ...this.
1467 (is_a_helper <gimple_statement_eh_filter *>::test): Rename to...
1468 (is_a_helper <geh_filter *>::test): ...this.
1469 (is_a_helper <gimple_statement_eh_mnt *>::test): Rename to...
1470 (is_a_helper <geh_mnt *>::test): ...this.
1471 (is_a_helper <gimple_statement_omp_atomic_load *>::test): Rename to...
1472 (is_a_helper <gomp_atomic_load *>::test): ...this.
1473 (is_a_helper <gimple_statement_omp_atomic_store *>::test): Rename to...
1474 (is_a_helper <gomp_atomic_store *>::test): ...this.
1475 (is_a_helper <gimple_statement_omp_continue *>::test): Rename to...
1476 (is_a_helper <gomp_continue *>::test): ...this.
1477 (is_a_helper <gimple_statement_omp_critical *>::test): Rename to...
1478 (is_a_helper <gomp_critical *>::test): ...this.
1479 (is_a_helper <gimple_statement_omp_for *>::test): Rename to...
1480 (is_a_helper <gomp_for *>::test): ...this.
1481 (is_a_helper <gimple_statement_omp_parallel *>::test): Rename to...
1482 (is_a_helper <gomp_parallel *>::test): ...this.
1483 (is_a_helper <gimple_statement_omp_target *>::test): Rename to...
1484 (is_a_helper <gomp_target *>::test): ...this.
1485 (is_a_helper <gimple_statement_omp_sections *>::test): Rename to...
1486 (is_a_helper <gomp_sections *>::test): ...this.
1487 (is_a_helper <gimple_statement_omp_single *>::test): Rename to...
1488 (is_a_helper <gomp_single *>::test): ...this.
1489 (is_a_helper <gimple_statement_omp_teams *>::test): Rename to...
1490 (is_a_helper <gomp_teams *>::test): ...this.
1491 (is_a_helper <gimple_statement_omp_task *>::test): Rename to...
1492 (is_a_helper <gomp_task *>::test): ...this.
1493 (is_a_helper <gimple_statement_phi *>::test): Rename to...
1494 (is_a_helper <gphi *>::test): ...this.
1495 (is_a_helper <gimple_statement_transaction *>::test): Rename to...
1496 (is_a_helper <gtransaction *>::test): ...this.
1497 (is_a_helper <greturn *>::test): New.
1498 (is_a_helper <gswitch *>::test): New.
1499 (is_a_helper <gimple_statement_try *>::test): Rename to...
1500 (is_a_helper <gtry *>::test): ...this.
1501 (is_a_helper <const gimple_statement_asm *>::test): Rename to...
1502 (is_a_helper <const gasm *>::test): ...this.
1503 (is_a_helper <const gimple_statement_bind *>::test): Rename to...
1504 (is_a_helper <const gbind *>::test): ...this.
1505 (is_a_helper <const gimple_statement_call *>::test): Rename to...
1506 (is_a_helper <const gcall *>::test): ...this.
1507 (is_a_helper <const gimple_statement_catch *>::test): Rename to...
1508 (is_a_helper <const gcatch *>::test): ...this.
1509 (is_a_helper <const gimple_statement_resx *>::test): Rename to...
1510 (is_a_helper <const gresx *>::test): ...this.
1511 (is_a_helper <const gimple_statement_eh_dispatch *>::test): Rename to...
1512 (is_a_helper <const geh_dispatch *>::test): ...this.
1513 (is_a_helper <const gimple_statement_eh_filter *>::test): Rename to...
1514 (is_a_helper <const geh_filter *>::test): ...this.
1515 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
1516 Rename to...
1517 (is_a_helper <const gomp_atomic_load *>::test): ...this.
1518 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
1519 Rename to...
1520 (is_a_helper <const gomp_atomic_store *>::test): ...this.
1521 (is_a_helper <const gimple_statement_omp_continue *>::test):
1522 Rename to...
1523 (is_a_helper <const gomp_continue *>::test): ...this.
1524 (is_a_helper <const gimple_statement_omp_critical *>::test):
1525 Rename to...
1526 (is_a_helper <const gomp_critical *>::test): ...this.
1527 (is_a_helper <const gimple_statement_omp_for *>::test): Rename to...
1528 (is_a_helper <const gomp_for *>::test): ...this.
1529 (is_a_helper <const gimple_statement_omp_parallel *>::test):
1530 Rename to...
1531 (is_a_helper <const gomp_parallel *>::test): ...this.
1532 (is_a_helper <const gimple_statement_omp_target *>::test): Rename to...
1533 (is_a_helper <const gomp_target *>::test): ...this.
1534 (is_a_helper <const gimple_statement_omp_sections *>::test):
1535 Rename to...
1536 (is_a_helper <const gomp_sections *>::test): ...this.
1537 (is_a_helper <const gimple_statement_omp_single *>::test): Rename to...
1538 (is_a_helper <const gomp_single *>::test): ...this.
1539 (is_a_helper <const gimple_statement_omp_teams *>::test): Rename to...
1540 (is_a_helper <const gomp_teams *>::test): ...this.
1541 (is_a_helper <const gimple_statement_omp_task *>::test): Rename to...
1542 (is_a_helper <const gomp_task *>::test): ...this.
1543 (is_a_helper <const gimple_statement_phi *>::test): Rename to...
1544 (is_a_helper <const gphi *>::test): ...this.
1545 (is_a_helper <const gimple_statement_transaction *>::test): Rename to...
1546 (is_a_helper <const gtransaction *>::test): ...this.
1547 (gimple_build_return): Strengthen return type to greturn *.
1548 (gimple_call_reset_alias_info): Require a gcall *.
1549 (gimple_build_call_vec): Return a gcall *.
1550 (gimple_build_call): Likewise.
1551 (gimple_build_call_valist): Likewise.
1552 (gimple_build_call_internal): Likewise.
1553 (gimple_build_call_internal_vec): Likewise.
1554 (gimple_build_call_from_tree): Likewise.
1555 (gimple_build_assign_stat): Return a gassign *.
1556 (gimple_build_assign_with_ops): Likewise.
1557 (gimple_build_cond): Return a gcond *.
1558 (gimple_build_cond_from_tree): Likewise.
1559 (gimple_cond_set_condition_from_tree): Require a gcond *.
1560 (gimple_build_label): Return a glabel *.
1561 (gimple_build_goto): Return a ggoto *.
1562 (gimple_build_bind): Return a gbind *.
1563 (gimple_build_asm_vec): Return a gasm *.
1564 (gimple_build_catch): Return a gcatch *.
1565 (gimple_build_eh_filter): Return a geh_filter *.
1566 (gimple_build_eh_must_not_throw): Return a geh_mnt *.
1567 (gimple_build_eh_else): Return a geh_else *.
1568 (gimple_build_try): Return a gtry *.
1569 (gimple_build_resx): Return a gresx *.
1570 (gimple_build_switch_nlabels): Return a gswitch *.
1571 (gimple_build_switch): Return a gswitch *.
1572 (gimple_build_eh_dispatch): Return a geh_dispatch *.
1573 (gimple_build_debug_bind_stat): Return a gdebug *.
1574 (gimple_build_debug_source_bind_stat): Return a gdebug *.
1575 (gimple_build_omp_critical): Return a gomp_critical *.
1576 (gimple_build_omp_for): Return a gomp_for *.
1577 (gimple_build_omp_parallel): Return a gomp_parallel *.
1578 (gimple_build_omp_task): Return a gomp_task *.
1579 (gimple_build_omp_continue): Return a gomp_continue *.
1580 (gimple_build_omp_sections): Return a gomp_sections *.
1581 (gimple_build_omp_single): Return a gomp_single *.
1582 (gimple_build_omp_target): Return a gomp_target *.
1583 (gimple_build_omp_teams): Return a gomp_teams *.
1584 (gimple_build_omp_atomic_load): Return a gomp_atomic_load *.
1585 (gimple_build_omp_atomic_store): Return a gomp_atomic_store *.
1586 (gimple_build_transaction): Return a gtransaction *.
1587 (gimple_call_arg_flags): Require a const gcall *.
1588 (gimple_call_return_flags): Likewise.
1589 (gimple_call_copy_skip_args): Require and return a gcall *.
1590 (gimple_asm_clobbers_memory_p): Require a const gasm *.
1591 (gimple_seq_first_stmt_as_a_bind): New.
1592 (gimple_assign_nontemporal_move_p): Require a const gassign *
1593 rather than a const_gimple.
1594 (gimple_call_internal_fn): Update for renaming to gcall.
1595 (gimple_call_fntype): Likewise.
1596 (gimple_call_set_fntype): Require a gcall * rather than a gimple.
1597 (gimple_call_set_fn): Likewise.
1598 (gimple_call_set_internal_fn): Likewise.
1599 (gimple_call_set_chain): Likewise.
1600 (gimple_call_set_tail): Likewise.
1601 (gimple_call_tail_p): Likewise.
1602 (gimple_call_set_return_slot_opt): Likewise.
1603 (gimple_call_return_slot_opt_p): Likewise.
1604 (gimple_call_set_from_thunk): Likewise.
1605 (gimple_call_from_thunk_p): Likewise.
1606 (gimple_call_set_va_arg_pack): Likewise.
1607 (gimple_call_va_arg_pack_p): Likewise.
1608 (gimple_call_set_nothrow): Likewise.
1609 (gimple_call_nothrow_p): Likewise.
1610 (gimple_call_set_alloca_for_var): Likewise.
1611 (gimple_call_alloca_for_var_p): Likewise.
1612 (gimple_call_use_set): Likewise.
1613 (gimple_call_clobber_set): Likewise.
1614 (gimple_call_return_type): Require a const gcall * rather than a
1615 const_gimple.
1616 (gimple_call_chain_ptr): Likewise.
1617 (gimple_call_copy_flags): Require a pair of gcall *.
1618 (gimple_cond_set_code): Require a gcond * rather than a gimple
1619 (gimple_cond_set_lhs): Likewise.
1620 (gimple_cond_set_rhs): Likewise.
1621 (gimple_cond_set_true_label): Likewise.
1622 (gimple_cond_set_false_label): Likewise.
1623 (gimple_cond_make_false): Likewise.
1624 (gimple_cond_make_true): Likewise.
1625 (gimple_cond_lhs_ptr): Require a const gcond * rather than a
1626 const_gimple.
1627 (gimple_cond_rhs_ptr): Likewise.
1628 (gimple_cond_true_label): Likewise.
1629 (gimple_cond_false_label): Likewise.
1630 (gimple_cond_true_p): Likewise.
1631 (gimple_cond_false_p): Likewise.
1632 (gimple_cond_set_condition): Likewise.
1633 (gimple_label_label): Require a const glabel *.
1634 (gimple_label_set_label): Require a glabel *.
1635 (gimple_goto_set_dest): Require a ggoto *.
1636 (gimple_bind_vars): Require a const gbind *.
1637 (gimple_bind_block): Likewise.
1638 (gimple_bind_set_vars): Require a gbind *.
1639 (gimple_bind_append_vars): Likewise.
1640 (gimple_bind_body_ptr): Likewise.
1641 (gimple_bind_body): Likewise.
1642 (gimple_bind_set_body): Likewise.
1643 (gimple_bind_add_stmt): Likewise.
1644 (gimple_bind_add_seq): Likewise.
1645 (gimple_bind_set_block): Likewise.
1646 (gimple_asm_ninputs): Require a const gasm *.
1647 (gimple_asm_noutputs): Likewise.
1648 (gimple_asm_nclobbers): Likewise.
1649 (gimple_asm_nlabels): Likewise.
1650 (gimple_asm_input_op): Likewise.
1651 (gimple_asm_input_op_ptr): Likewise.
1652 (gimple_asm_output_op): Likewise.
1653 (gimple_asm_output_op_ptr): Likewise.
1654 (gimple_asm_clobber_op): Likewise.
1655 (gimple_asm_label_op): Likewise.
1656 (gimple_asm_string): Likewise.
1657 (gimple_asm_volatile_p): Likewise.
1658 (gimple_asm_input_p): Likewise.
1659 (gimple_asm_set_input_op): Require a gasm *.
1660 (gimple_asm_set_output_op): Likewise.
1661 (gimple_asm_set_clobber_op): Likewise.
1662 (gimple_asm_set_label_op): Likewise.
1663 (gimple_asm_set_volatile): Likewise.
1664 (gimple_asm_set_input): Likewise.
1665 (gimple_catch_types): Require a const gcatch *.
1666 (gimple_catch_types_ptr): Require a gcatch *.
1667 (gimple_catch_handler_ptr): Likewise.
1668 (gimple_catch_handler): Likewise.
1669 (gimple_catch_set_types): Likewise.
1670 (gimple_catch_set_handler): Likewise.
1671 (gimple_eh_filter_types): Update for renaming of subclass to
1672 geh_filter.
1673 (gimple_eh_filter_types_ptr): Likewise.
1674 (gimple_eh_filter_failure_ptr): Likewise.
1675 (gimple_eh_filter_set_types): Require a geh_filter *.
1676 (gimple_eh_filter_set_failure): Likewise.
1677 (gimple_eh_must_not_throw_fndecl): Require a geh_mnt *.
1678 (gimple_eh_must_not_throw_set_fndecl): Likewise.
1679 (gimple_eh_else_n_body_ptr): Require a geh_else *.
1680 (gimple_eh_else_n_body): Likewise.
1681 (gimple_eh_else_e_body_ptr): Likewise.
1682 (gimple_eh_else_e_body): Likewise.
1683 (gimple_eh_else_set_n_body): Likewise.
1684 (gimple_eh_else_set_e_body): Likewise.
1685 (gimple_try_set_kind): Require a gtry *.
1686 (gimple_try_set_catch_is_cleanup): Likewise.
1687 (gimple_try_set_eval): Likewise.
1688 (gimple_try_set_cleanup): Likewise.
1689 (gimple_try_eval_ptr): Update for renaming of subclass to gtry.
1690 (gimple_try_cleanup_ptr): Likewise.
1691 (gimple_phi_capacity): Update for renaming of subclass to gphi.
1692 (gimple_phi_num_args): Likewise.
1693 (gimple_phi_result): Likewise.
1694 (gimple_phi_result_ptr): Likewise.
1695 (gimple_phi_arg): Likewise.
1696 (gimple_phi_set_result): Require a gphi *.
1697 (gimple_phi_set_arg): Likewise.
1698 (gimple_phi_arg_def_ptr): Likewise.
1699 (gimple_phi_arg_edge): Likewise.
1700 (gimple_phi_arg_location): Likewise.
1701 (gimple_phi_arg_location_from_edge): Likewise.
1702 (gimple_phi_arg_set_location): Likewise.
1703 (gimple_phi_arg_has_location): Likewise.
1704 (gimple_resx_region): Require a const gresx *.
1705 (gimple_resx_set_region): Require a gresx *.
1706 (gimple_eh_dispatch_region): Require a const geh_dispatch *.
1707 (gimple_eh_dispatch_set_region): Require a geh_dispatch *.
1708 (gimple_switch_num_labels): Require a const gswitch *.
1709 (gimple_switch_set_num_labels): Likewise.
1710 (gimple_switch_index): Likewise.
1711 (gimple_switch_index_ptr): Likewise.
1712 (gimple_switch_label): Likewise.
1713 (gimple_switch_default_label): Likewise.
1714 (gimple_switch_set_index): Require a gswitch *.
1715 (gimple_switch_set_label): Likewise.
1716 (gimple_switch_set_default_label): Likewise.
1717 (gimple_omp_critical_name): Require a const gomp_critical *.
1718 (gimple_omp_critical_name_ptr): Require a gomp_critical *.
1719 (gimple_omp_critical_set_name): Likewise.
1720 (gimple_omp_for_set_kind): Require a gomp_for *.
1721 (gimple_omp_for_set_combined_p): Likewise.
1722 (gimple_omp_for_set_combined_into_p): Likewise.
1723 (gimple_omp_for_clauses): Update for renaming of subclass to
1724 gomp_for.
1725 (gimple_omp_for_clauses_ptr): Likewise.
1726 (gimple_omp_for_set_clauses): Likewise.
1727 (gimple_omp_for_collapse): Likewise.
1728 (gimple_omp_for_index): Likewise.
1729 (gimple_omp_for_index_ptr): Likewise.
1730 (gimple_omp_for_set_index): Likewise.
1731 (gimple_omp_for_initial): Likewise.
1732 (gimple_omp_for_initial_ptr): Likewise.
1733 (gimple_omp_for_set_initial): Likewise.
1734 (gimple_omp_for_final): Likewise.
1735 (gimple_omp_for_final_ptr): Likewise.
1736 (gimple_omp_for_set_final): Likewise.
1737 (gimple_omp_for_incr): Likewise.
1738 (gimple_omp_for_incr_ptr): Likewise.
1739 (gimple_omp_for_set_incr): Likewise.
1740 (gimple_omp_for_pre_body): Likewise.
1741 (gimple_omp_for_set_pre_body): Likewise.
1742 (gimple_omp_parallel_clauses): Update for renaming of subclass to
1743 gomp_parallel.
1744 (gimple_omp_parallel_clauses_ptr): Require a gomp_parallel *.
1745 (gimple_omp_parallel_set_clauses): Likewise.
1746 (gimple_omp_parallel_child_fn_ptr): Likewise.
1747 (gimple_omp_parallel_set_child_fn): Likewise.
1748 (gimple_omp_parallel_data_arg_ptr): Likewise.
1749 (gimple_omp_parallel_set_data_arg): Likewise.
1750 (gimple_omp_parallel_child_fn): Require a const gomp_parallel *.
1751 (gimple_omp_parallel_data_arg): Likewise.
1752 (gimple_omp_task_clauses): Update for renaming of subclass to
1753 gomp_task.
1754 (gimple_omp_task_clauses_ptr): Likewise.
1755 (gimple_omp_task_set_clauses): Likewise.
1756 (gimple_omp_task_child_fn): Likewise.
1757 (gimple_omp_task_child_fn_ptr): Likewise.
1758 (gimple_omp_task_set_child_fn): Likewise.
1759 (gimple_omp_task_data_arg): Likewise.
1760 (gimple_omp_task_data_arg_ptr): Likewise.
1761 (gimple_omp_task_set_data_arg): Likewise.
1762 (gimple_omp_taskreg_clauses): Whitespace fixes.
1763 (gimple_omp_taskreg_clauses_ptr): Likewise.
1764 (gimple_omp_taskreg_set_clauses): Likewise.
1765 (gimple_omp_taskreg_child_fn): Likewise.
1766 (gimple_omp_taskreg_child_fn_ptr): Likewise.
1767 (gimple_omp_taskreg_set_child_fn): Likewise.
1768 (gimple_omp_taskreg_data_arg): Likewise.
1769 (gimple_omp_taskreg_data_arg_ptr): Likewise.
1770 (gimple_omp_taskreg_set_data_arg): Likewise.
1771 (gimple_omp_task_copy_fn): Update for renaming of subclass to
1772 gomp_task.
1773 (gimple_omp_task_copy_fn_ptr): Likewise.
1774 (gimple_omp_task_set_copy_fn): Likewise.
1775 (gimple_omp_task_arg_size): Likewise.
1776 (gimple_omp_task_arg_size_ptr): Likewise.
1777 (gimple_omp_task_set_arg_size): Likewise.
1778 (gimple_omp_task_arg_align): Likewise.
1779 (gimple_omp_task_arg_align_ptr): Likewise.
1780 (gimple_omp_task_set_arg_align): Likewise.
1781 (gimple_omp_single_clauses): Update for renaming of subclass to
1782 gomp_single.
1783 (gimple_omp_single_clauses_ptr): Likewise.
1784 (gimple_omp_single_set_clauses): Likewise.
1785 (gimple_omp_target_clauses): Update for renaming of subclass to
1786 gomp_target.
1787 (gimple_omp_target_clauses_ptr): Likewise.
1788 (gimple_omp_target_set_clauses): Require a gomp_target *.
1789 (gimple_omp_target_set_kind): Likewise.
1790 (gimple_omp_target_child_fn_ptr): Likewise.
1791 (gimple_omp_target_set_child_fn): Likewise.
1792 (gimple_omp_target_data_arg_ptr): Likewise.
1793 (gimple_omp_target_set_data_arg): Likewise.
1794 (gimple_omp_target_child_fn): Require a const gomp_target *.
1795 (gimple_omp_target_data_arg): Likewise.
1796 (gimple_omp_teams_clauses): Update for renaming of subclass to
1797 gomp_teams.
1798 (gimple_omp_teams_clauses_ptr): Likewise.
1799 (gimple_omp_teams_set_clauses): Require a gomp_teams *.
1800 (gimple_omp_sections_clauses): Update for renaming of subclass to
1801 gomp_sections.
1802 (gimple_omp_sections_clauses_ptr): Likewise.
1803 (gimple_omp_sections_set_clauses): Likewise.
1804 (gimple_omp_sections_control): Likewise.
1805 (gimple_omp_sections_control_ptr): Likewise.
1806 (gimple_omp_sections_set_control): Likewise.
1807 (gimple_omp_for_set_cond): Likewise.
1808 (gimple_omp_for_cond): Likewise.
1809 (gimple_omp_atomic_store_set_val): Require a gomp_atomic_store *.
1810 (gimple_omp_atomic_store_val_ptr): Likewise.
1811 (gimple_omp_atomic_load_set_lhs): Likewise.
1812 (gimple_omp_atomic_store_val): Require a const gomp_atomic_store *.
1813 (gimple_omp_atomic_load_lhs): Likewise.
1814 (gimple_omp_atomic_load_rhs): Likewise.
1815 (gimple_omp_atomic_load_lhs_ptr): Require a gomp_atomic_load *.
1816 (gimple_omp_atomic_load_set_rhs): Likewise.
1817 (gimple_omp_atomic_load_rhs_ptr): Likewise.
1818 (gimple_omp_continue_control_def): Require a const gomp_continue *.
1819 (gimple_omp_continue_control_use): Likewise.
1820 (gimple_omp_continue_control_def_ptr): Require a gomp_continue *.
1821 (gimple_omp_continue_set_control_def): Likewise.
1822 (gimple_omp_continue_control_use_ptr): Likewise.
1823 (gimple_omp_continue_set_control_use): Likewise.
1824 (gimple_transaction_body_ptr): Require a gtransaction *.
1825 (gimple_transaction_body): Likewise.
1826 (gimple_transaction_label_ptr): Likewise.
1827 (gimple_transaction_label): Require a const gtransaction *.
1828 (gimple_transaction_subcode): Likewise.
1829 (gimple_transaction_set_body): Require a gtransaction *.
1830 (gimple_transaction_set_label): Likewise.
1831 (gimple_transaction_set_subcode): Likewise.
1832 (gimple_return_retval_ptr): Require a const greturn *.
1833 (gimple_return_retval): Likewise.
1834 (gimple_return_set_retval): Require a greturn *.
1835 (gimple_expr_type): Introduce local "call_stmt" and use in place of
1836 "stmt" for typesafety.
1837
1838 * asan.c: Use gimple subclasses.
1839 * auto-profile.c: Likewise.
1840 * builtins.c: Likewise.
1841 * builtins.h: Likewise.
1842 * cfgexpand.c: Likewise.
1843 * cfgloop.c: Likewise.
1844 * cfgloopmanip.c: Likewise.
1845 * cgraph.c: Likewise.
1846 * cgraph.h: Likewise.
1847 * cgraphbuild.c: Likewise.
1848 * cgraphclones.c: Likewise.
1849 * cgraphunit.c: Likewise.
1850 * expr.h: Likewise.
1851 * gimple-builder.c: Likewise.
1852 * gimple-builder.h: Likewise.
1853 * gimple-fold.c: Likewise.
1854 * gimple-low.c: Likewise.
1855 * gimple-pretty-print.c: Likewise.
1856 * gimple-ssa-isolate-paths.c: Likewise.
1857 * gimple-ssa-strength-reduction.c: Likewise.
1858 * gimple-streamer-in.c: Likewise.
1859 * gimple-streamer-out.c: Likewise.
1860 * gimple-walk.c: Likewise.
1861 * gimplify-me.c: Likewise.
1862 * gimplify.c: Likewise.
1863 * gimplify.h: Likewise.
1864 * graphite-scop-detection.c: Likewise.
1865 * graphite-sese-to-poly.c: Likewise.
1866 * internal-fn.c: Likewise.
1867 * internal-fn.def:: Likewise.
1868 * internal-fn.h: Likewise.
1869 * ipa-icf-gimple.c: Likewise.
1870 * ipa-icf-gimple.h: Likewise.
1871 * ipa-icf.c: Likewise.
1872 * ipa-inline-analysis.c: Likewise.
1873 * ipa-prop.c: Likewise.
1874 * ipa-prop.h: Likewise.
1875 * ipa-pure-const.c: Likewise.
1876 * ipa-split.c: Likewise.
1877 * lto-streamer-in.c: Likewise.
1878 * lto-streamer-out.c: Likewise.
1879 * omp-low.c: Likewise.
1880 * predict.c: Likewise.
1881 * sanopt.c: Likewise.
1882 * sese.c: Likewise.
1883 * ssa-iterators.h: Likewise.
1884 * stmt.c: Likewise.
1885 * trans-mem.c: Likewise.
1886 * tree-call-cdce.c: Likewise.
1887 * tree-cfg.c: Likewise.
1888 * tree-cfg.h: Likewise.
1889 * tree-cfgcleanup.c: Likewise.
1890 * tree-chkp.c: Likewise.
1891 * tree-chkp.h: Likewise.
1892 * tree-complex.c: Likewise.
1893 * tree-data-ref.c: Likewise.
1894 * tree-dfa.c: Likewise.
1895 * tree-eh.c: Likewise.
1896 * tree-eh.h: Likewise.
1897 * tree-emutls.c: Likewise.
1898 * tree-if-conv.c: Likewise.
1899 * tree-inline.c: Likewise.
1900 * tree-inline.h: Likewise.
1901 * tree-into-ssa.c: Likewise.
1902 * tree-into-ssa.h: Likewise.
1903 * tree-loop-distribution.c: Likewise.
1904 * tree-nrv.c: Likewise.
1905 * tree-object-size.c: Likewise.
1906 * tree-outof-ssa.c: Likewise.
1907 * tree-parloops.c: Likewise.
1908 * tree-phinodes.c: Likewise.
1909 * tree-phinodes.h: Likewise.
1910 * tree-predcom.c: Likewise.
1911 * tree-profile.c: Likewise.
1912 * tree-scalar-evolution.c: Likewise.
1913 * tree-scalar-evolution.h
1914 * tree-sra.cn_function):
1915 * tree-ssa-alias.c: Likewise.
1916 * tree-ssa-alias.h: Likewise.
1917 * tree-ssa-ccp.c: Likewise.
1918 * tree-ssa-coalesce.c: Likewise.
1919 * tree-ssa-copy.c: Likewise.
1920 * tree-ssa-copyrename.c: Likewise.
1921 * tree-ssa-dce.c: Likewise.
1922 * tree-ssa-dom.c: Likewise.
1923 * tree-ssa-forwprop.c: Likewise.
1924 * tree-ssa-ifcombine.c: Likewise.
1925 * tree-ssa-live.c: Likewise.
1926 * tree-ssa-loop-im.c: Likewise.
1927 * tree-ssa-loop-ivcanon.c: Likewise.
1928 * tree-ssa-loop-ivopts.c: Likewise.
1929 * tree-ssa-loop-manip.c: Likewise.
1930 * tree-ssa-loop-niter.c: Likewise.
1931 * tree-ssa-loop-prefetch.c: Likewise.
1932 * tree-ssa-loop-unswitch.c: Likewise.
1933 * tree-ssa-math-opts.c: Likewise.
1934 * tree-ssa-operands.c: Likewise.
1935 * tree-ssa-phiopt.c: Likewise.
1936 * tree-ssa-phiprop.c: Likewise.
1937 * tree-ssa-pre.c: Likewise.
1938 * tree-ssa-propagate.c: Likewise.
1939 * tree-ssa-propagate.h: Likewise.
1940 * tree-ssa-reassoc.c: Likewise.
1941 * tree-ssa-sccvn.c: Likewise.
1942 * tree-ssa-sccvn.h: Likewise.
1943 * tree-ssa-sink.c: Likewise.
1944 * tree-ssa-strlen.c
1945 * tree-ssa-structalias.c
1946 * tree-ssa-tail-merge.c: Likewise.
1947 * tree-ssa-ter.c: Likewise.
1948 * tree-ssa-threadedge.c: Likewise.
1949 * tree-ssa-threadedge.h: Likewise.
1950 * tree-ssa-threadupdate.c: Likewise.
1951 * tree-ssa-uncprop.c: Likewise.
1952 * tree-ssa-uninit.c: Likewise.
1953 * tree-ssa.c: Likewise.
1954 * tree-stdarg.c: Likewise.
1955 * tree-switch-conversion.c: Likewise.
1956 * tree-tailcall.c: Likewise.
1957 * tree-vect-data-refs.c: Likewise.
1958 * tree-vect-generic.c: Likewise.
1959 * tree-vect-loop-manip.c: Likewise.
1960 * tree-vect-loop.c: Likewise.
1961 * tree-vect-patterns.c: Likewise.
1962 * tree-vect-slp.c: Likewise.
1963 * tree-vect-stmts.c: Likewise.
1964 * tree-vectorizer.h: Likewise.
1965 * tree-vrp.c: Likewise.
1966 * tree.c: Likewise.
1967 * ubsan.c: Likewise.
1968 * value-prof.c: Likewise.
1969 * value-prof.h: Likewise.
1970 * vtable-verify.c: Likewise.
1971
1972 2014-11-19 Markus Trippelsdorf <markus@trippelsdorf.de>
1973
1974 * config/rs6000/constraints.md: Avoid signed integer overflows.
1975 * config/rs6000/predicates.md: Likewise.
1976
1977 2014-11-19 Renlin Li <Renlin.Li@arm.com>
1978
1979 PR target/63424
1980 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): New.
1981
1982 2014-11-19 Renlin Li <Renlin.Li@arm.com>
1983
1984 PR middle-end/63762
1985 * ira.c (ira): Update preferred class.
1986
1987 2014-11-19 Jakub Jelinek <jakub@redhat.com>
1988
1989 * gimple.h (gimple_build_assign_with_ops): Add unary arg overload.
1990 (gimple_assign_set_rhs_with_ops_1): Renamed to ...
1991 (gimple_assign_set_rhs_with_ops): ... this. Adjust binary arg
1992 inline overload to use it. Add unary arg overload.
1993 * gimple.c (gimple_build_assign_with_ops): New unary arg overload.
1994 (gimple_assign_set_rhs_from_tree): Use
1995 gimple_assign_set_rhs_with_ops instead of
1996 gimple_assign_set_rhs_with_ops_1.
1997 (gimple_assign_set_rhs_with_ops_1): Renamed to ...
1998 (gimple_assign_set_rhs_with_ops): ... this.
1999 * ipa-split.c (split_function): Remove last NULL argument
2000 from gimple_build_assign_with_ops call.
2001 * tree-ssa-loop-im.c
2002 (move_computations_dom_walker::before_dom_children): Likewise.
2003 * tsan.c (instrument_builtin_call): Likewise.
2004 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
2005 vectorizable_conversion, vectorizable_load): Likewise.
2006 * tree-vect-loop.c (vect_is_simple_reduction_1,
2007 get_initial_def_for_induction): Likewise.
2008 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
2009 * tree-vect-patterns.c (vect_handle_widen_op_by_const,
2010 vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
2011 vect_recog_over_widening_pattern, vect_recog_rotate_pattern,
2012 vect_recog_vector_vector_shift_pattern, vect_recog_divmod_pattern,
2013 vect_recog_mixed_size_cond_pattern, adjust_bool_pattern_cast,
2014 adjust_bool_pattern, vect_recog_bool_pattern): Likewise.
2015 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
2016 neg_replacement): Likewise.
2017 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
2018 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
2019 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2020 * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
2021 expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
2022 simd_clone_adjust): Likewise.
2023 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
2024 * gimple-ssa-strength-reduction.c (introduce_cast_before_cand,
2025 replace_one_candidate): Likewise.
2026 * gimple-builder.c (build_type_cast): Likewise.
2027 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
2028 (forward_propagate_addr_expr_1): Remove last NULL argument
2029 from gimple_assign_set_rhs_with_ops call.
2030 (simplify_vector_constructor): Use gimple_assign_set_rhs_with_ops
2031 instead of gimple_assign_set_rhs_with_ops_1.
2032 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Remove last NULL
2033 argument from gimple_build_assign_with_ops call.
2034 (repropagate_negates): Remove last NULL argument from
2035 gimple_assign_set_rhs_with_ops call.
2036 * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn): Remove
2037 last NULL argument from gimple_build_assign_with_ops call.
2038 (instrument_bool_enum_load): Likewise. Remove last NULL argument
2039 from gimple_assign_set_rhs_with_ops call.
2040 * tree-ssa-math-opts.c (build_and_insert_cast, convert_mult_to_fma):
2041 Remove last NULL argument from gimple_build_assign_with_ops call.
2042 (bswap_replace): Likewise. Use gimple_assign_set_rhs_with_ops instead
2043 of gimple_assign_set_rhs_with_ops_1.
2044 (convert_plusminus_to_widen): Use gimple_assign_set_rhs_with_ops
2045 instead of gimple_assign_set_rhs_with_ops_1.
2046 * gimple-fold.c (replace_stmt_with_simplification): Likewise.
2047 (rewrite_to_defined_overflow, gimple_build): Remove last NULL argument
2048 from gimple_build_assign_with_ops call.
2049 * tree-ssa-strlen.c (handle_pointer_plus): Remove last NULL argument
2050 from gimple_assign_set_rhs_with_ops call.
2051 * tree-vrp.c (simplify_truth_ops_using_ranges,
2052 simplify_bit_ops_using_ranges): Remove last NULL argument from
2053 gimple_assign_set_rhs_with_ops call.
2054 (simplify_float_conversion_using_ranges,
2055 simplify_internal_call_using_ranges): Remove last NULL argument from
2056 gimple_build_assign_with_ops call.
2057
2058 2014-11-19 Wilco Dijkstra <wdijkstr@arm.com>
2059
2060 PR target/61915
2061 * config/aarch64/aarch64.c (generic_regmove_cost): Increase FP move
2062 cost.
2063
2064 2014-11-19 Marek Polacek <polacek@redhat.com>
2065
2066 PR sanitizer/63690
2067 * ubsan.c (instrument_object_size): Check for MEM_REF.
2068
2069 2014-11-19 Ilya Verbin <ilya.verbin@intel.com>
2070
2071 PR regression/63868
2072 * cgraph.c (cgraph_node::create): Guard g->have_offload with
2073 ifdef ENABLE_OFFLOADING.
2074 * omp-low.c (create_omp_child_function): Likewise.
2075 (expand_omp_target): Guard node->mark_force_output and offload_funcs
2076 with ifdef ENABLE_OFFLOADING.
2077 * varpool.c (varpool_node::get_create): Guard g->have_offload and
2078 offload_vars with ifdef ENABLE_OFFLOADING.
2079
2080 2014-11-19 Felix Yang <felix.yang@huawei.com>
2081 Shanyao Chen <chenshanyao@huawei.com>
2082
2083 PR target/59593
2084 * config/arm/arm.md (define_attr "arch"): Add v6t2.
2085 (define_attr "arch_enabled"): Add test for the above.
2086 (*movhi_insn_arch4): Add new alternative.
2087
2088 2014-11-19 Richard Henderson <rth@redhat.com>
2089
2090 * c-family/c-common.c (c_common_reswords): Add
2091 __builtin_call_with_static_chain.
2092 * c-family/c-common.h (RID_BUILTIN_CALL_WITH_STATIC_CHAIN): New.
2093 * c/c-parser.c (c_parser_postfix_expression): Handle it.
2094 * doc/extend.texi (__builtin_call_with_static_chain): Document it.
2095
2096 * calls.c (prepare_call_address): Allow decl or type for first arg.
2097 (expand_call): Pass type to prepare_call_address if no decl.
2098 * gimple-fold.c (gimple_fold_call): Eliminate the static chain if
2099 the function doesn't use it; fold it otherwise.
2100 * gimplify.c (gimplify_call_expr): Gimplify the static chain.
2101 * tree-cfg.c (verify_gimple_call): Allow a static chain on indirect
2102 function calls.
2103
2104 * targhooks.c (default_static_chain): Remove check for
2105 DECL_STATIC_CHAIN.
2106 * config/moxie/moxie.c (moxie_static_chain): Likewise.
2107 * config/i386/i386.c (ix86_static_chain): Allow decl or type
2108 as the first argument.
2109 * config/xtensa/xtensa.c (xtensa_static_chain): Change the name
2110 of the unused first parameter.
2111 * doc/tm.texi (TARGET_STATIC_CHAIN): Document the first parameter
2112 may be a type.
2113 * target.def (static_chain): Likewise.
2114
2115 2014-11-19 Renlin Li <renlin.li@arm.com>
2116
2117 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_FP_FAST,
2118 __ARM_FEATURE_FMA, __ARM_FP, __ARM_FEATURE_NUMERIC_MAXMIN, __ARM_NEON_FP.
2119
2120 2014-11-19 Marek Polacek <polacek@redhat.com>
2121
2122 PR sanitizer/63879
2123 * fold-const.c (negate_expr_p) <case NEGATE_EXPR>: Return
2124 !TYPE_OVERFLOW_SANITIZED.
2125 (fold_negate_expr) <case INTEGER_CST>: Fold when overflow
2126 does not trap and when overflow wraps, or when SANITIZE_SI_OVERFLOW
2127 is 0.
2128
2129 2014-11-19 Ilya Tocar <ilya.tocar@intel.com>
2130
2131 * collect2.c (main): Don't call fatal_error before
2132 diagnostic_initialize.
2133 * lto-wrapper.c (main): Likewise.
2134
2135 2014-11-19 Tom de Vries <tom@codesourcery.com>
2136
2137 PR tree-optimization/62167
2138 * tree-ssa-tail-merge.c (stmt_local_def): Handle statements with vuse
2139 conservatively.
2140 (gimple_equal_p): Don't use vn_valueize to compare for lhs equality of
2141 assigns.
2142
2143 2014-11-19 Jakub Jelinek <jakub@redhat.com>
2144
2145 PR tree-optimization/63915
2146 * tree-vect-stmts.c (vectorizable_simd_clone_call): Pass
2147 true instead of false as last argument to gsi_replace.
2148
2149 PR sanitizer/63520
2150 * internal-fn.c (expand_ubsan_result_store): New function.
2151 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
2152 Use it instead of just emit_move_insn.
2153
2154 2014-11-19 Richard Biener <rguenther@suse.de>
2155
2156 PR tree-optimization/63844
2157 * omp-low.c (fixup_child_record_type): Use a restrict qualified
2158 referece type for the receiver parameter.
2159
2160 2014-11-19 Jakub Jelinek <jakub@redhat.com>
2161
2162 PR sanitizer/63913
2163 * ubsan.c: Include tree-eh.h.
2164 (instrument_bool_enum_load): Handle loads that can throw.
2165
2166 PR rtl-optimization/63843
2167 * simplify-rtx.c (simplify_binary_operation_1) <case ASHIFTRT>: For
2168 optimization of ashiftrt of subreg of lshiftrt, check that code
2169 is ASHIFTRT.
2170
2171 2014-11-18 Andrew MacLeod <amacleod@redhat.com>
2172
2173 * attribs.c (decl_attributes): Remove always true condition,
2174 TREE_TYPE(x) will never compare equal to a TYPE_DECL.
2175
2176 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
2177
2178 PR target/63937
2179 * target.def (use_by_pieces_infrastructure_p): Take unsigned
2180 HOST_WIDE_INT as the size parameter.
2181 * targhooks.c (default_use_by_pieces_infrastructure_p): Likewise.
2182 * targhooks.h (default_use_by_pieces_infrastructure_p): Likewise.
2183 * config/arc/arc.c (arc_use_by_pieces_infrastructure_p)): Likewise.
2184 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p)): Likewise.
2185 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p)): Likewise.
2186 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p)): Likewise.
2187 * config/aarch64/aarch64.c
2188 (aarch64_use_by_pieces_infrastructure_p)): Likewise.
2189 * doc/tm.texi: Regenerate.
2190
2191 2014-11-18 Jan Hubicka <hubicka@ucw.cz>
2192
2193 * ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn.
2194 (ipa_value_from_jfunc, ipa_context_from_jfunc): Skip sanity check.
2195 (ipa_get_indirect_edge_target_1): Use opt_for_fn.
2196 (good_cloning_opportunity_p): Likewise.
2197 (ipa-cp gate): Enable ipa-cp with LTO.
2198 * ipa-profile.c (ipa_propagate_frequency): Use opt_for_fn.
2199 * ipa.c (symbol_table::remove_unreachable_nodes): Always build type
2200 inheritance.
2201 * ipa-inline-transform.c (inline_transform): Check if there are inlines
2202 to apply even at -O0.
2203 * cgraphunit.c (cgraph_node::finalize_function): Use opt_for_fn.
2204 (analyze_functions): Build type inheritance graph.
2205 * ipa-inline.c (can_inline_edge_p): Use opt_for_fn.
2206 (want_early_inline_function_p, want_inline_small_function_p):
2207 Likewise.
2208 (check_callers): Likewise.
2209 (edge_badness): Likewise.
2210 (inline_small_functions): Always be ready for indirect inlining
2211 to happend.
2212 (ipa_inline): Always use want_inline_function_to_all_callers_p.
2213 (early_inline_small_functions): Use opt_for_fn.
2214 * ipa-inline-analysis.c (estimate_function_body_sizes): use opt_for_fn.
2215 (estimate_function_body_sizes): Likewise.
2216 (compute_inline_parameters): Likewise.
2217 (estimate_edge_devirt_benefit): Likewise.
2218 (inline_analyze_function): Likewise.
2219 * ipa-devirt.c (ipa_devirt): Likewise.
2220 (gate): Use in_lto_p.
2221 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): Use opt_for_fn.
2222 (try_make_edge_direct_virtual_call): Likewise.
2223 (update_indirect_edges_after_inlining): Likewise.
2224 (ipa_free_all_structures_after_ipa_cp): Add in_lto_p check.
2225 * common.opt (findirect-inlining): Turn into optimization.
2226 * ipa-pure-const.c (add_new_function): Use opt_for_fn.
2227 (pure_const_generate_summary): Likewise.
2228 (gate_pure_const): Always enable with in_lto_p.
2229
2230 2014-11-18 Maciej W. Rozycki <macro@codesourcery.com>
2231
2232 * config/mips/mips.md (compression): Add `micromips32' setting.
2233 (enabled, length): Handle it.
2234 (shift_compression): Replace `micromips' with `micromips32' in
2235 the `compression' attribute.
2236 (*add<mode>3, sub<mode>3): Likewise.
2237
2238 2014-11-18 Maciej W. Rozycki <macro@codesourcery.com>
2239
2240 * gcc/config/mips/mips.md (*jump_absolute): Use a branch when in
2241 range, a jump otherwise.
2242
2243 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2244
2245 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_to_from_gp):
2246 Split into...
2247 (cortex_a15_gp_to_vfp): ...This.
2248 (cortex_a15_fp_to_gp): ...And this.
2249 Define and comment bypass from vfp operations to fp->gp moves.
2250
2251 2014-11-18 Martin Liska <mliska@suse.cz>
2252
2253 * var-tracking.c (vt_find_locations): New fibonacci_node is used.
2254
2255 2014-11-18 Martin Liska <mliska@suse.cz>
2256
2257 * bt-load.c (add_btr_def): New fibonacci_heap is used.
2258 (migrate_btr_defs): Likewise.
2259
2260 2014-11-18 Martin Liska <mliska@suse.cz>
2261
2262 * tracer.c (tail_duplicate): New fibonacci_heap class is used.
2263
2264 2014-11-18 Martin Liska <mliska@suse.cz>
2265
2266 * bb-reorder.c (mark_bb_visited): New fibonacci_heap is used.
2267 (find_traces): Likewise.
2268 (find_traces_1_round): Likewise.
2269
2270 2014-11-18 Martin Liska <mliska@suse.cz>
2271
2272 * fibonacci_heap.h: New file.
2273 (fibonacci_heap::insert): Created from fibheap_insert.
2274 (fibonacci_heap::empty): Created from fibheap_empty.
2275 (fibonacci_heap::nodes): Created from fibheap_nodes.
2276 (fibonacci_heap::min_key): Created from fibheap_min_key.
2277 (fibonacci_heap::decrease_key): Created from fibheap_replace_key.
2278 (fibonacci_heap::replace_key_data): Created from fibheap_replace_key_data.
2279 (fibonacci_heap::extract_min): Created from fibheap_extract_min.
2280 (fibonacci_heap::min): Created from fibheap_min.
2281 (fibonacci_heap::replace_data): Created from fibheap_replace_data.
2282 (fibonacci_heap::delete_node): Created from fibheap_delete_node.
2283 (fibonacci_heap::union_with): Created from fibheap_union.
2284 * ipa-inline.c (update_edge_key): New heap API is used.
2285 (update_caller_keys): Likewise.
2286 (update_callee_keys): Likewise.
2287 (lookup_recursive_calls): Likewise.
2288 (recursive_inlining): Likewise.
2289 (add_new_edges_to_heap): Likewise.
2290 (heap_edge_removal_hook): Likewise.
2291 (inline_small_functions): Likewise.
2292
2293 2014-11-18 Marek Polacek <polacek@redhat.com>
2294
2295 PR sanitizer/63866
2296 * asan.c (asan_global_struct): Create a TYPE_DECL for "__asan_global",
2297 put it into TYPE_NAME and TYPE_STUB_DECL.
2298 * ubsan.c (ubsan_type_descriptor_type): New variable.
2299 Function renamed to ...
2300 (ubsan_get_type_descriptor_type): ... this. Cache
2301 return value in ubsan_type_descriptor_type variable.
2302 Create a TYPE_DECL for "__ubsan_type_descriptor", put it into
2303 TYPE_NAME and TYPE_STUB_DECL.
2304 (ubsan_get_source_location_type): Create a TYPE_DECL for
2305 "__ubsan_source_location", put it into TYPE_NAME and TYPE_STUB_DECL.
2306 (ubsan_type_descriptor, ubsan_create_data): Call
2307 ubsan_get_type_descriptor_type instead of ubsan_type_descriptor_type.
2308 Create a TYPE_DECL for name, put it into TYPE_NAME and TYPE_STUB_DECL.
2309
2310 2014-11-18 Felix Yang <felix.yang@huawei.com>
2311
2312 * config/aarch64/aarch64.c (doloop_end): New pattern.
2313 * config/aarch64/aarch64.md (TARGET_CAN_USE_DOLOOP_P): Implement.
2314
2315 2014-11-18 Jason Merrill <jason@redhat.com>
2316
2317 * tree.c (warn_deprecated_use): Show declaration with inform.
2318
2319 2014-11-18 Richard Biener <rguenther@suse.de>
2320
2321 PR tree-optimization/63914
2322 * tree-ssa-ccp.c (canonicalize_value): Remove float value
2323 canonicalization.
2324 (valid_lattice_transition): Allow (partial) transition
2325 from NaN to non-NaN if !HONOR_NANS.
2326 (set_lattice_value): Check for valid lattice transitions
2327 only when checking is enabled.
2328
2329 2014-11-18 Bernd Schmidt <bernds@codesourcery.com>
2330
2331 * config/nvptx/nvptx.c: Include <sstream> directly after "config.h".
2332
2333 2014-11-18 Christophe Lyon <christophe.lyon@linaro.org>
2334
2335 * config/arm/neon-testgen.ml (emit_prologue): Handle new
2336 compile_test_optim argument.
2337 (emit_automatics): Rename to emit_variables. Support variable
2338 indentation of its output.
2339 (compile_test_optim): New function.
2340 (test_intrinsic): Call compile_test_optim.
2341 * config/arm/neon.ml (features): Add Compiler_optim.
2342 (ops): Add Compiler_optim feature to Vbic and Vorn.
2343 (type_in_crypto_only): Replace 'or' by '||'.
2344 (reinterp): Likewise.
2345 (reinterpq): Likewise.
2346
2347 2014-11-18 Alan Lawrence <alan.lawrence@arm.com>
2348
2349 * config/aarch64/arm_neon.h (vld1_dup_f32, vld1_dup_f64, vld1_dup_p8,
2350 vld1_dup_p16, vld1_dup_s8, vld1_dup_s16, vld1_dup_s32, vld1_dup_s64,
2351 vld1_dup_u8, vld1_dup_u16, vld1_dup_u32, vld1_dup_u64, vld1q_dup_f32,
2352 vld1q_dup_f64, vld1q_dup_p8, vld1q_dup_p16, vld1q_dup_s8, vld1q_dup_s16,
2353 vld1q_dup_s32, vld1q_dup_s64, vld1q_dup_u8, vld1q_dup_u16,
2354 vld1q_dup_u32, vld1q_dup_u64): Replace inline asm with vdup_n_ and
2355 pointer dereference.
2356
2357 2014-11-18 Marc Glisse <marc.glisse@inria.fr>
2358
2359 * tree.c (element_mode, integer_truep): New functions.
2360 * tree.h (element_mode, integer_truep): Declare them.
2361 * fold-const.c (negate_expr_p, fold_negate_expr, combine_comparisons,
2362 fold_cond_expr_with_comparison, fold_real_zero_addition_p,
2363 fold_comparison, fold_ternary_loc, tree_call_nonnegative_warnv_p,
2364 fold_strip_sign_ops): Use element_mode.
2365 (fold_binary_loc): Use element_mode and element_precision.
2366 * match.pd: Use integer_truep, element_mode, element_precision,
2367 VECTOR_TYPE_P and build_one_cst. Extend some transformations to
2368 vectors. Simplify A/-A.
2369
2370 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2371
2372 * config/arm/arm.md (unaligned_loaddi): Use std::swap instead of
2373 manual swapping implementation.
2374 (movcond_addsi): Likewise.
2375 * config/arm/arm.c (arm_canonicalize_comparison): Likewise.
2376 (arm_select_dominance_cc_mode): Likewise.
2377 (arm_reload_out_hi): Likewise.
2378 (gen_operands_ldrd_strd): Likewise.
2379 (output_move_double): Likewise.
2380 (arm_print_operand_address): Likewise.
2381 (thumb_output_move_mem_multiple): Likewise.
2382 (SWAP_RTX): Delete.
2383
2384 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
2385
2386 * config/arm/arm-builtins.c (CONVERT_QUALIFIERS): Delete.
2387 (COPYSIGNF_QUALIFIERS): Likewise.
2388 (CREATE_QUALIFIERS): Likewise.
2389 (DUP_QUALIFIERS): Likewise.
2390 (FLOAT_WIDEN_QUALIFIERS): Likewise.
2391 (FLOAT_NARROW_QUALIFIERS): Likewise.
2392 (REINTERP_QUALIFIERS): Likewise.
2393 (RINT_QUALIFIERS): Likewise.
2394 (SPLIT_QUALIFIERS): Likewise.
2395 (FIXCONV_QUALIFIERS): Likewise.
2396 (SCALARMUL_QUALIFIERS): Likewise.
2397 (SCALARMULL_QUALIFIERS): Likewise.
2398 (SCALARMULH_QUALIFIERS): Likewise.
2399 (SELECT_QUALIFIERS): Likewise.
2400 (VTBX_QUALIFIERS): Likewise.
2401 (SHIFTIMM_QUALIFIERS): Likewise.
2402 (SCALARMAC_QUALIFIERS): Likewise.
2403 (LANEMUL_QUALIFIERS): Likewise.
2404 (LANEMULH_QUALIFIERS): Likewise.
2405 (LANEMULL_QUALIFIERS): Likewise.
2406 (SHIFTACC_QUALIFIERS): Likewise.
2407 (SHIFTINSERT_QUALIFIERS): Likewise.
2408 (VTBL_QUALIFIERS): Likewise.
2409 (LOADSTRUCT_QUALIFIERS): Likewise.
2410 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
2411 (STORESTRUCT_QUALIFIERS): Likewise.
2412 (STORESTRUCTLANE_QUALIFIERS): Likewise.
2413 (neon_builtin_type_mode): Delete.
2414 (v8qi_UP): Map to V8QImode.
2415 (v8qi_UP): Map to V8QImode.
2416 (v4hi_UP): Map to V4HImode.
2417 (v4hf_UP): Map to V4HFmode.
2418 (v2si_UP): Map to V2SImode.
2419 (v2sf_UP): Map to V2SFmode.
2420 (di_UP): Map to DImode.
2421 (v16qi_UP): Map to V16QImode.
2422 (v8hi_UP): Map to V8HImode.
2423 (v4si_UP): Map to V4SImode.
2424 (v4sf_UP): Map to V4SFmode.
2425 (v2di_UP): Map to V2DImode.
2426 (ti_UP): Map to TImode.
2427 (ei_UP): Map to EImode.
2428 (oi_UP): Map to OImode.
2429 (neon_itype): Delete.
2430 (neon_builtin_datum): Remove itype, make mode a machine_mode.
2431 (VAR1): Update accordingly.
2432 (arm_init_neon_builtins): Use machine_mode directly.
2433 (neon_dereference_pointer): Likewise.
2434 (arm_expand_neon_args): Use qualifiers to decide operand types.
2435 (arm_expand_neon_builtin): Likewise.
2436 * config/arm/arm_neon_builtins.def: Remap operation type for
2437 many builtins.
2438
2439 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
2440
2441 * config/arm/arm-builtins.c (arm_scalar_builtin_types): New.
2442 (enum arm_simd_type): Likewise.
2443 (struct arm_simd_type_info): Likewise
2444 (arm_mangle_builtin_scalar_type): Likewise.
2445 (arm_mangle_builtin_vector_type): Likewise.
2446 (arm_mangle_builtin_type): Likewise.
2447 (arm_simd_builtin_std_type): Likewise.
2448 (arm_lookup_simd_builtin_type): Likewise.
2449 (arm_simd_builtin_type): Likewise.
2450 (arm_init_simd_builtin_types): Likewise.
2451 (arm_init_simd_builtin_scalar_types): Likewise.
2452 (arm_init_neon_builtins): Rewrite using qualifiers.
2453 * config/arm/arm-protos.h (arm_mangle_builtin_type): New.
2454 * config/arm/arm-simd-builtin-types.def: New file.
2455 * config/arm/t-arm (arm-builtins.o): Depend on it.
2456 * config/arm/arm.c (arm_mangle_type): Call arm_mangle_builtin_type.
2457 * config/arm/arm_neon.h (int8x8_t): Use new internal type.
2458 (int16x4_t): Likewise.
2459 (int32x2_t): Likewise.
2460 (float16x4_t): Likewise.
2461 (float32x2_t): Likewise.
2462 (poly8x8_t): Likewise.
2463 (poly16x4_t): Likewise.
2464 (uint8x8_t): Likewise.
2465 (uint16x4_t): Likewise.
2466 (uint32x2_t): Likewise.
2467 (int8x16_t): Likewise.
2468 (int16x8_t): Likewise.
2469 (int32x4_t): Likewise.
2470 (int64x2_t): Likewise.
2471 (float32x4_t): Likewise.
2472 (poly8x16_t): Likewise.
2473 (poly16x8_t): Likewise.
2474 (uint8x16_t): Likewise.
2475 (uint16x8_t): Likewise.
2476 (uint32x4_t): Likewise.
2477 (uint64x2_t): Likewise.
2478
2479 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
2480
2481 * gcc/config/arm/arm-builtins.c (arm_type_qualifiers): New.
2482 (neon_itype): Add new types corresponding to the types used in
2483 qualifiers names.
2484 (arm_unop_qualifiers): New.
2485 (arm_bswap_qualifiers): Likewise.
2486 (arm_binop_qualifiers): Likewise.
2487 (arm_ternop_qualifiers): Likewise.
2488 (arm_getlane_qualifiers): Likewise.
2489 (arm_lanemac_qualifiers): Likewise.
2490 (arm_setlane_qualifiers): Likewise.
2491 (arm_combine_qualifiers): Likewise.
2492 (arm_load1_qualifiers): Likewise.
2493 (arm_load1_lane_qualifiers): Likewise.
2494 (arm_store1_qualifiers): Likewise.
2495 (arm_storestruct_lane_qualifiers): Likewise.
2496 (UNOP_QUALIFIERS): Likewise.
2497 (DUP_QUALIFIERS): Likewise.
2498 (SPLIT_QUALIFIERS): Likewise.
2499 (CONVERT_QUALIFIERS): Likewise.
2500 (FLOAT_WIDEN_QUALIFIERS): Likewise.
2501 (FLOAT_NARROW_QUALIFIERS): Likewise.
2502 (RINT_QUALIFIERS): Likewise.
2503 (COPYSIGNF_QUALIFIERS): Likewise.
2504 (CREATE_QUALIFIERS): Likewise.
2505 (REINTERP_QUALIFIERS): Likewise.
2506 (BSWAP_QUALIFIERS): Likewise.
2507 (BINOP_QUALIFIERS): Likewise.
2508 (FIXCONV_QUALIFIERS): Likewise.
2509 (SCALARMUL_QUALIFIERS): Likewise.
2510 (SCALARMULL_QUALIFIERS): Likewise.
2511 (SCALARMULH_QUALIFIERS): Likewise.
2512 (TERNOP_QUALIFIERS): Likewise.
2513 (SELECT_QUALIFIERS): Likewise.
2514 (VTBX_QUALIFIERS): Likewise.
2515 (GETLANE_QUALIFIERS): Likewise.
2516 (SHIFTIMM_QUALIFIERS): Likewise.
2517 (LANEMAC_QUALIFIERS): Likewise.
2518 (SCALARMAC_QUALIFIERS): Likewise.
2519 (SETLANE_QUALIFIERS): Likewise.
2520 (SHIFTINSERT_QUALIFIERS): Likewise.
2521 (SHIFTACC_QUALIFIERS): Likewise.
2522 (LANEMUL_QUALIFIERS): Likewise.
2523 (LANEMULL_QUALIFIERS): Likewise.
2524 (LANEMULH_QUALIFIERS): Likewise.
2525 (COMBINE_QUALIFIERS): Likewise.
2526 (VTBL_QUALIFIERS): Likewise.
2527 (LOAD1_QUALIFIERS): Likewise.
2528 (LOADSTRUCT_QUALIFIERS): Likewise.
2529 (LOAD1LANE_QUALIFIERS): Likewise.
2530 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
2531 (STORE1_QUALIFIERS): Likewise.
2532 (STORESTRUCT_QUALIFIERS): Likewise.
2533 (STORE1LANE_QUALIFIERS): Likewise.
2534 (STORESTRUCTLANE_QUALIFIERS): Likewise.
2535 (neon_builtin_datum): Keep track of qualifiers.
2536 (VAR1): Likewise.
2537
2538 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
2539
2540 * config/arm/arm-builtins.c (VAR1): Add a comma.
2541 (VAR2): Rewrite in terms of VAR1.
2542 (VAR3-10): Likewise.
2543 (arm_builtins): Remove leading comma before ARM_BUILTIN_MAX.
2544 * config/arm/arm_neon_builtins.def: Remove trailing commas.
2545
2546 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
2547
2548 * config.gcc (extra_objs): Add arm-builtins.o for arm*-*-*.
2549 (target_gtfiles): Add config/arm/arm-builtins.c for arm*-*-*.
2550 * config/arm/arm-builtins.c: New.
2551 * config/arm/t-arm (arm_builtins.o): New.
2552 * config/arm/arm-protos.h (arm_expand_builtin): New.
2553 (arm_builtin_decl): Likewise.
2554 (arm_init_builtins): Likewise.
2555 (arm_atomic_assign_expand_fenv): Likewise.
2556 * config/arm/arm.c (arm_atomic_assign_expand_fenv): Remove prototype.
2557 (arm_init_builtins): Likewise.
2558 (arm_init_iwmmxt_builtins): Likewise
2559 (safe_vector_operand): Likewise
2560 (arm_expand_binop_builtin): Likewise
2561 (arm_expand_unop_builtin): Likewise
2562 (arm_expand_builtin): Likewise
2563 (arm_builtin_decl): Likewise
2564 (insn_flags): Remove static.
2565 (tune_flags): Likewise.
2566 (enum arm_builtins): Move to config/arm/arm-builtins.c.
2567 (arm_init_neon_builtins): Likewise.
2568 (struct builtin_description): Likewise.
2569 (arm_init_iwmmxt_builtins): Likewise.
2570 (arm_init_fp16_builtins): Likewise.
2571 (arm_init_crc32_builtins): Likewise.
2572 (arm_init_builtins): Likewise.
2573 (arm_builtin_decl): Likewise.
2574 (safe_vector_operand): Likewise.
2575 (arm_expand_ternop_builtin): Likewise.
2576 (arm_expand_binop_builtin): Likewise.
2577 (arm_expand_unop_builtin): Likewise.
2578 (neon_dereference_pointer): Likewise.
2579 (arm_expand_neon_args): Likewise.
2580 (arm_expand_neon_builtin): Likewise.
2581 (neon_split_vcombine): Likewise.
2582 (arm_expand_builtin): Likewise.
2583 (arm_builtin_vectorized_function): Likewise.
2584 (arm_atomic_assign_expand_fenv): Likewise.
2585
2586 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
2587
2588 * config/arm/t-arm (arm.o): Include arm-protos.h in the recipe.
2589 * config/arm/arm.c (FL_CO_PROC): Move to arm-protos.h.
2590 (FL_ARCH3M): Likewise.
2591 (FL_MODE26): Likewise.
2592 (FL_MODE32): Likewise.
2593 (FL_ARCH4): Likewise.
2594 (FL_ARCH5): Likewise.
2595 (FL_THUMB): Likewise.
2596 (FL_LDSCHED): Likewise.
2597 (FL_STRONG): Likewise.
2598 (FL_ARCH5E): Likewise.
2599 (FL_XSCALE): Likewise.
2600 (FL_ARCH6): Likewise.
2601 (FL_VFPV2): Likewise.
2602 (FL_WBUF): Likewise.
2603 (FL_ARCH6K): Likewise.
2604 (FL_THUMB2): Likewise.
2605 (FL_NOTM): Likewise.
2606 (FL_THUMB_DIV): Likewise.
2607 (FL_VFPV3): Likewise.
2608 (FL_NEON): Likewise.
2609 (FL_ARCH7EM): Likewise.
2610 (FL_ARCH7): Likewise.
2611 (FL_ARM_DIV): Likewise.
2612 (FL_ARCH8): Likewise.
2613 (FL_CRC32): Likewise.
2614 (FL_SMALLMUL): Likewise.
2615 (FL_IWMMXT): Likewise.
2616 (FL_IWMMXT2): Likewise.
2617 (FL_TUNE): Likewise.
2618 (FL_FOR_ARCH2): Likewise.
2619 (FL_FOR_ARCH3): Likewise.
2620 (FL_FOR_ARCH3M): Likewise.
2621 (FL_FOR_ARCH4): Likewise.
2622 (FL_FOR_ARCH4T): Likewise.
2623 (FL_FOR_ARCH5): Likewise.
2624 (FL_FOR_ARCH5T): Likewise.
2625 (FL_FOR_ARCH5E): Likewise.
2626 (FL_FOR_ARCH5TE): Likewise.
2627 (FL_FOR_ARCH5TEJ): Likewise.
2628 (FL_FOR_ARCH6): Likewise.
2629 (FL_FOR_ARCH6J): Likewise.
2630 (FL_FOR_ARCH6K): Likewise.
2631 (FL_FOR_ARCH6Z): Likewise.
2632 (FL_FOR_ARCH6ZK): Likewise.
2633 (FL_FOR_ARCH6T2): Likewise.
2634 (FL_FOR_ARCH6M): Likewise.
2635 (FL_FOR_ARCH7): Likewise.
2636 (FL_FOR_ARCH7A): Likewise.
2637 (FL_FOR_ARCH7VE): Likewise.
2638 (FL_FOR_ARCH7R): Likewise.
2639 (FL_FOR_ARCH7M): Likewise.
2640 (FL_FOR_ARCH7EM): Likewise.
2641 (FL_FOR_ARCH8A): Likewise.
2642 * config/arm/arm-protos.h: Take definitions moved from arm.c.
2643
2644 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
2645
2646 * config/arm/arm.c (arm_expand_neon_builtin): Remove "Magic Word"
2647 parameter, rearrange switch statement accordingly.
2648 (arm_evpc_neon_vrev): Remove "Magic Word".
2649 * config/arm/unspecs.md (unspec): Split many UNSPECs to
2650 rounding, or signed/unsigned variants.
2651 * config/arm/neon.md (vcond<mode><mode>): Remove "Magic Word" code.
2652 (vcondu<mode><mode>): Likewise.
2653 (neon_vadd): Remove "Magic Word" operand.
2654 (neon_vaddl): Remove "Magic Word" operand, convert to use
2655 signed/unsigned iterator.
2656 (neon_vaddw): Likewise.
2657 (neon_vhadd): Likewise, also iterate over "rounding" forms.
2658 (neon_vqadd): Remove "Magic Word" operand, convert to use
2659 signed/unsigned iterator.
2660 (neon_v<r>addhn): Remove "Magic Word" operand, convert to iterate
2661 over "rounding" forms.
2662 (neon_vmul): Remove "Magic Word" operand, iterate over
2663 polynomial/float instruction forms.
2664 (neon_vmla): Remove "Magic Word" operand.
2665 (neon_vfma): Likewise.
2666 (neon_vfms): Likewise.
2667 (neon_vmls): Likewise.
2668 (neon_vmlal): Remove "Magic Word" operand, iterate over
2669 signed/unsigned forms.
2670 (neon_vmlsl): Likewise.
2671 (neon_vqdmulh): Remove "Magic Word" operand, iterate over "rounding"
2672 forms.
2673 (neon_vqdmlal): Remove "Magic Word" operand, iterate over
2674 signed/unsigned forms.
2675 (neon_vqdmlsl): Likewise.
2676 (neon_vmull): Likewise.
2677 (neon_vqdmull): Remove "Magic Word" operand.
2678 (neon_vsub): Remove "Magic Word" operand.
2679 (neon_vsubl): Remove "Magic Word" operand, convert to use
2680 signed/unsigned iterator.
2681 (neon_vsubw): Likewise.
2682 (neon_vhsub): Likewise.
2683 (neon_vqsub): Likewise.
2684 (neon_v<r>subhn): Remove "Magic Word" operand, convert to iterate
2685 over "rounding" forms.
2686 (neon_vceq): Remove "Magic Word" operand.
2687 (neon_vcge): Likewise.
2688 (neon_vcgeu): Likewise.
2689 (neon_vcgt): Likewise.
2690 (neon_vcgtu): Likewise.
2691 (neon_vcle): Likewise.
2692 (neon_vclt): Likewise.
2693 (neon_vcage): Likewise.
2694 (neon_vcagt): Likewise.
2695 (neon_vabd): Remove "Magic Word" operand, iterate over
2696 signed/unsigned forms, and split out...
2697 (neon_vabdf): ...this as new.
2698 (neon_vabdl): Remove "Magic Word" operand, iterate over
2699 signed/unsigned forms.
2700 (neon_vaba): Likewise.
2701 (neon_vmax): Remove "Magic Word" operand, iterate over
2702 signed/unsigned and max/min forms, and split out...
2703 (neon_v<maxmin>f): ...this as new.
2704 (neon_vmin): Delete.
2705 (neon_vpadd): Remove "Magic Word" operand.
2706 (neon_vpaddl): Remove "Magic Word" operand, iterate over
2707 signed/unsigned variants.
2708 (neon_vpadal): Likewise.
2709 (neon_vpmax): Remove "Magic Word" operand, iterate over
2710 signed/unsigned and max/min forms, and split out...
2711 (neon_vp<maxmin>f): ...this as new.
2712 (neon_vpmin): Delete.
2713 (neon_vrecps): Remove "Magic Word" operand.
2714 (neon_vrsqrts): Likewise.
2715 (neon_vabs): Likewise.
2716 (neon_vqabs): Likewise.
2717 (neon_vneg): Likewise.
2718 (neon_vqneg): Likewise.
2719 (neon_vcls): Likewise.
2720 (neon_vcnt): Likewise.
2721 (neon_vrecpe): Likewise.
2722 (neon_vrsqrte): Likewise.
2723 (neon_vmvn): Likewise.
2724 (neon_vget_lane): Likewise.
2725 (neon_vget_laneu): New.
2726 (neon_vget_lanedi): Remove "Magic Word" operand.
2727 (neon_vget_lanev2di): Likewise.
2728 (neon_vcvt): Remove "Magic Word" operand, iterate over
2729 signed/unsigned variants.
2730 (neon_vcvt_n): Likewise.
2731 (neon_vmovn): Remove "Magic Word" operand.
2732 (neon_vqmovn): Remove "Magic Word" operand, iterate over
2733 signed/unsigned variants.
2734 (neon_vmovun): Remove "Magic Word" operand.
2735 (neon_vmovl): Remove "Magic Word" operand, iterate over
2736 signed/unsigned variants.
2737 (neon_vmul_lane): Remove "Magic Word" operand.
2738 (neon_vmull_lane): Remove "Magic Word" operand, iterate over
2739 signed/unsigned variants.
2740 (neon_vqdmull_lane): Remove "Magic Word" operand.
2741 (neon_vqdmulh_lane): Remove "Magic Word" operand, iterate over
2742 rounding variants.
2743 (neon_vmla_lane): Remove "Magic Word" operand.
2744 (neon_vmlal_lane): Remove "Magic Word" operand, iterate over
2745 signed/unsigned variants.
2746 (neon_vqdmlal_lane): Remove "Magic Word" operand.
2747 (neon_vmls_lane): Likewise.
2748 (neon_vmlsl_lane): Remove "Magic Word" operand, iterate over
2749 signed/unsigned variants.
2750 (neon_vqdmlsl_lane): Remove "Magic Word" operand.
2751 (neon_vmul_n): Remove "Magic Word" operand.
2752 (neon_vmull_n): Rename to...
2753 (neon_vmulls_n): ...this, remove "Magic Word" operand.
2754 (neon_vmullu_n): New.
2755 (neon_vqdmull_n): Remove "Magic Word" operand.
2756 (neon_vqdmulh_n): Likewise.
2757 (neon_vqrdmulh_n): New.
2758 (neon_vmla_n): Remove "Magic Word" operand.
2759 (neon_vmls_n): Likewise.
2760 (neon_vmlal_n): Rename to...
2761 (neon_vmlals_n): ...this, remove "Magic Word" operand.
2762 (neon_vmlalu_n): New.
2763 (neon_vqdmlal_n): Remove "Magic Word" operand.
2764 (neon_vmlsl_n): Rename to...
2765 (neon_vmlsls_n): ...this, remove "Magic Word" operand.
2766 (neon_vmlslu_n): New.
2767 (neon_vqdmlsl_n): Remove "Magic Word" operand.
2768 (neon_vrev64): Remove "Magic Word" operand.
2769 (neon_vrev32): Likewise.
2770 (neon_vrev16): Likewise.
2771 (neon_vshl): Remove "Magic Word" operand, iterate over
2772 signed/unsigned and "rounding" forms.
2773 (neon_vqshl): Likewise.
2774 (neon_vshr_n): Likewise.
2775 (neon_vshrn_n): Remove "Magic Word" operand, iterate over
2776 "rounding" forms.
2777 (neon_vqshrn_n): Remove "Magic Word" operand, iterate over
2778 signed/unsigned and "rounding" forms.
2779 (neon_vqshrun_n): Remove "Magic Word" operand, iterate over
2780 "rounding" forms.
2781 (neon_vshl_n): Remove "Magic Word" operand.
2782 (neon_vqshl_n): Remove "Magic Word" operand, iterate over
2783 signed/unsigned variants.
2784 (neon_vqshlu_n): Remove "Magic Word" operand.
2785 (neon_vshll_n): Remove "Magic Word" operand, iterate over
2786 signed/unsigned variants.
2787 (neon_vsra_n): Remove "Magic Word" operand, iterate over
2788 signed/unsigned and "rounding" forms.
2789 * config/arm/iterators.md (VPF): New.
2790 (VADDL): Likewise.
2791 (VADDW): Likewise.
2792 (VHADD): Likewise.
2793 (VQADD): Likewise.
2794 (VADDHN): Likewise.
2795 (VMLAL): Likewise.
2796 (VMLAL_LANE): Likewise.
2797 (VLMSL): Likewise.
2798 (VMLSL_LANE): Likewise.
2799 (VQDMULH): Likewise,
2800 (VQDMULH_LANE): Likewise.
2801 (VMULL): Likewise.
2802 (VMULL_LANE): Likewise.
2803 (VSUBL): Likewise.
2804 (VSUBW): Likewise.
2805 (VHSUB): Likewise.
2806 (VQSUB): Likewise.
2807 (VSUBHN): Likewise.
2808 (VABD): Likewise.
2809 (VABDL): Likewise.
2810 (VMAXMIN): Likewise.
2811 (VMAXMINF): Likewise.
2812 (VPADDL): Likewise.
2813 (VPADAL): Likewise.
2814 (VPMAXMIN): Likewise.
2815 (VPMAXMINF): Likewise.
2816 (VCVT_US): Likewise.
2817 (VCVT_US_N): Likewise.
2818 (VQMOVN): Likewise.
2819 (VMOVL): Likewise.
2820 (VSHL): Likewise.
2821 (VQSHL): Likewise.
2822 (VSHR_N): Likewise.
2823 (VSHRN_N): Likewise.
2824 (VQSHRN_N): Likewise.
2825 (VQSHRUN_N): Likewise.
2826 (VQSHL_N): Likewise.
2827 (VSHLL_N): Likewise.
2828 (VSRA_N): Likewise.
2829 (pf): Likewise.
2830 (sup): Likewise.
2831 (r): Liekwise.
2832 (maxmin): Likewise.
2833 (shift_op): Likewise.
2834 * config/arm/arm_neon_builtins.def (vaddl): Split to...
2835 (vaddls): ...this and...
2836 (vaddlu): ...this.
2837 (vaddw): Split to...
2838 (vaddws): ...this and...
2839 (vaddwu): ...this.
2840 (vhadd): Split to...
2841 (vhadds): ...this and...
2842 (vhaddu): ...this and...
2843 (vrhadds): ...this and...
2844 (vrhaddu): ...this.
2845 (vqadd): Split to...
2846 (vqadds): ...this and...
2847 (vqaddu): ...this.
2848 (vaddhn): Split to itself and...
2849 (vraddhn): ...this.
2850 (vmul): Split to...
2851 (vmulf): ...this and...
2852 (vmulp): ...this.
2853 (vmlal): Split to...
2854 (vmlals): ...this and...
2855 (vmlalu): ...this.
2856 (vmlsl): Split to...
2857 (vmlsls): ...this and...
2858 (vmlslu): ...this.
2859 (vqdmulh): Split to itself and...
2860 (vqrdmulh): ...this.
2861 (vmull): Split to...
2862 (vmullp): ...this and...
2863 (vmulls): ...this and...
2864 (vmullu): ...this.
2865 (vmull_n): Split to...
2866 (vmulls_n): ...this and...
2867 (vmullu_n): ...this.
2868 (vmull_lane): Split to...
2869 (vmulls_lane): ...this and...
2870 (vmullu_lane): ...this.
2871 (vqdmulh_n): Split to itself and...
2872 (vqrdmulh_n): ...this.
2873 (vqdmulh_lane): Split to itself and...
2874 (vqrdmulh_lane): ...this.
2875 (vshl): Split to...
2876 (vshls): ...this and...
2877 (vshlu): ...this and...
2878 (vrshls): ...this and...
2879 (vrshlu): ...this.
2880 (vqshl): Split to...
2881 (vqshls): ...this and...
2882 (vqrshlu): ...this and...
2883 (vqrshls): ...this and...
2884 (vqrshlu): ...this.
2885 (vshr_n): Split to...
2886 (vshrs_n): ...this and...
2887 (vshru_n): ...this and...
2888 (vrshrs_n): ...this and...
2889 (vrshru_n): ...this.
2890 (vshrn_n): Split to itself and...
2891 (vrshrn_n): ...this.
2892 (vqshrn_n): Split to...
2893 (vqshrns_n): ...this and...
2894 (vqshrnu_n): ...this and...
2895 (vqrshrns_n): ...this and...
2896 (vqrshrnu_n): ...this.
2897 (vqshrun_n): Split to itself and...
2898 (vqrshrun_n): ...this.
2899 (vqshl_n): Split to...
2900 (vqshl_s_n): ...this and...
2901 (vqshl_u_n): ...this.
2902 (vshll_n): Split to...
2903 (vshlls_n): ...this and...
2904 (vshllu_n): ...this.
2905 (vsra_n): Split to...
2906 (vsras_n): ...this and...
2907 (vsrau_n): ...this and.
2908 (vrsras_n): ...this and...
2909 (vrsrau_n): ...this and.
2910 (vsubl): Split to...
2911 (vsubls): ...this and...
2912 (vsublu): ...this.
2913 (vsubw): Split to...
2914 (vsubws): ...this and...
2915 (vsubwu): ...this.
2916 (vqsub): Split to...
2917 (vqsubs): ...this and...
2918 (vqsubu): ...this.
2919 (vhsub): Split to...
2920 (vhsubs): ...this and...
2921 (vhsubu): ...this.
2922 (vsubhn): Split to itself and...
2923 (vrsubhn): ...this.
2924 (vabd): Split to...
2925 (vabds): ...this and...
2926 (vabdu): ...this and...
2927 (vabdf): ...this.
2928 (vabdl): Split to...
2929 (vabdls): ...this and...
2930 (vabdlu): ...this.
2931 (vaba): Split to...
2932 (vabas): ...this and...
2933 (vabau): ...this and...
2934 (vabal): Split to...
2935 (vabals): ...this and...
2936 (vabalu): ...this.
2937 (vmax): Split to...
2938 (vmaxs): ...this and...
2939 (vmaxu): ...this and...
2940 (vmaxf): ...this.
2941 (vmin): Split to...
2942 (vmins): ...this and...
2943 (vminu): ...this and...
2944 (vminf): ...this.
2945 (vpmax): Split to...
2946 (vpmaxs): ...this and...
2947 (vpmaxu): ...this and...
2948 (vpmaxf): ...this.
2949 (vpmin): Split to...
2950 (vpmins): ...this and...
2951 (vpminu): ...this and...
2952 (vpminf): ...this.
2953 (vpaddl): Split to...
2954 (vpaddls): ...this and...
2955 (vpaddlu): ...this.
2956 (vpadal): Split to...
2957 (vpadals): ...this and...
2958 (vpadalu): ...this.
2959 (vget_laneu): New.
2960 (vqmovn): Split to...
2961 (vqmovns): ...this and...
2962 (vqmovnu): ...this.
2963 (vmovl): Split to...
2964 (vmovls): ...this and...
2965 (vmovlu): ...this.
2966 (vmlal_lane): Split to...
2967 (vmlals_lane): ...this and...
2968 (vmlalu_lane): ...this.
2969 (vmlsl_lane): Split to...
2970 (vmlsls_lane): ...this and...
2971 (vmlslu_lane): ...this.
2972 (vmlal_n): Split to...
2973 (vmlals_n): ...this and...
2974 (vmlalu_n): ...this.
2975 (vmlsl_n): Split to...
2976 (vmlsls_n): ...this and...
2977 (vmlslu_n): ...this.
2978 (vext): Make type "SHIFTINSERT".
2979 (vcvt): Split to...
2980 (vcvts): ...this and...
2981 (vcvtu): ...this.
2982 (vcvt_n): Split to...
2983 (vcvts_n): ...this and...
2984 (vcvtu_n): ...this.
2985 * config/arm/arm_neon.h (vaddl_s8): Remove "Magic Word".
2986 (vaddl_s16): Likewise.
2987 (vaddl_s32): Likewise.
2988 (vaddl_u8): Likewise.
2989 (vaddl_u16): Likewise.
2990 (vaddl_u32): Likewise.
2991 (vaddw_s8): Likewise.
2992 (vaddw_s16): Likewise.
2993 (vaddw_s32): Likewise.
2994 (vaddw_u8): Likewise.
2995 (vaddw_u16): Likewise.
2996 (vaddw_u32): Likewise.
2997 (vhadd_s8): Likewise.
2998 (vhadd_s16): Likewise.
2999 (vhadd_s32): Likewise.
3000 (vhadd_u8): Likewise.
3001 (vhadd_u16): Likewise.
3002 (vhadd_u32): Likewise.
3003 (vhaddq_s8): Likewise.
3004 (vhaddq_s16): Likewise.
3005 (vhaddq_s32): Likewise.
3006 (vhaddq_u8): Likewise.
3007 (vhaddq_u16): Likewise.
3008 (vrhadd_s8): Likewise.
3009 (vrhadd_s16): Likewise.
3010 (vrhadd_s32): Likewise.
3011 (vrhadd_u8): Likewise.
3012 (vrhadd_u16): Likewise.
3013 (vrhadd_u32): Likewise.
3014 (vrhaddq_s8): Likewise.
3015 (vrhaddq_s16): Likewise.
3016 (vrhaddq_s32): Likewise.
3017 (vrhaddq_u8): Likewise.
3018 (vrhaddq_u16): Likewise.
3019 (vrhaddq_u32): Likewise.
3020 (vqadd_s8): Likewise.
3021 (vqadd_s16): Likewise.
3022 (vqadd_s32): Likewise.
3023 (vqadd_s64): Likewise.
3024 (vqadd_u8): Likewise.
3025 (vqadd_u16): Likewise.
3026 (vqadd_u32): Likewise.
3027 (vqadd_u64): Likewise.
3028 (vqaddq_s8): Likewise.
3029 (vqaddq_s16): Likewise.
3030 (vqaddq_s32): Likewise.
3031 (vqaddq_s64): Likewise.
3032 (vqaddq_u8): Likewise.
3033 (vqaddq_u16): Likewise.
3034 (vqaddq_u32): Likewise.
3035 (vqaddq_u64): Likewise.
3036 (vaddhn_s16): Likewise.
3037 (vaddhn_s32): Likewise.
3038 (vaddhn_s64): Likewise.
3039 (vaddhn_u16): Likewise.
3040 (vaddhn_u32): Likewise.
3041 (vaddhn_u64): Likewise.
3042 (vraddhn_s16): Likewise.
3043 (vraddhn_s32): Likewise.
3044 (vraddhn_s64): Likewise.
3045 (vraddhn_u16): Likewise.
3046 (vraddhn_u32): Likewise.
3047 (vraddhn_u64): Likewise.
3048 (vmul_p8): Likewise.
3049 (vmulq_p8): Likewise.
3050 (vqdmulh_s16): Likewise.
3051 (vqdmulh_s32): Likewise.
3052 (vqdmulhq_s16): Likewise.
3053 (vqdmulhq_s32): Likewise.
3054 (vqrdmulh_s16): Likewise.
3055 (vqrdmulh_s32): Likewise.
3056 (vqrdmulhq_s16): Likewise.
3057 (vqrdmulhq_s32): Likewise.
3058 (vmull_s8): Likewise.
3059 (vmull_s16): Likewise.
3060 (vmull_s32): Likewise.
3061 (vmull_u8): Likewise.
3062 (vmull_u16): Likewise.
3063 (vmull_u32): Likewise.
3064 (vmull_p8): Likewise.
3065 (vqdmull_s16): Likewise.
3066 (vqdmull_s32): Likewise.
3067 (vmla_s8): Likewise.
3068 (vmla_s16): Likewise.
3069 (vmla_s32): Likewise.
3070 (vmla_f32): Likewise.
3071 (vmla_u8): Likewise.
3072 (vmla_u16): Likewise.
3073 (vmla_u32): Likewise.
3074 (vmlaq_s8): Likewise.
3075 (vmlaq_s16): Likewise.
3076 (vmlaq_s32): Likewise.
3077 (vmlaq_f32): Likewise.
3078 (vmlaq_u8): Likewise.
3079 (vmlaq_u16): Likewise.
3080 (vmlaq_u32): Likewise.
3081 (vmlal_s8): Likewise.
3082 (vmlal_s16): Likewise.
3083 (vmlal_s32): Likewise.
3084 (vmlal_u8): Likewise.
3085 (vmlal_u16): Likewise.
3086 (vmlal_u32): Likewise.
3087 (vqdmlal_s16): Likewise.
3088 (vqdmlal_s32): Likewise.
3089 (vmls_s8): Likewise.
3090 (vmls_s16): Likewise.
3091 (vmls_s32): Likewise.
3092 (vmls_f32): Likewise.
3093 (vmls_u8): Likewise.
3094 (vmls_u16): Likewise.
3095 (vmls_u32): Likewise.
3096 (vmlsq_s8): Likewise.
3097 (vmlsq_s16): Likewise.
3098 (vmlsq_s32): Likewise.
3099 (vmlsq_f32): Likewise.
3100 (vmlsq_u8): Likewise.
3101 (vmlsq_u16): Likewise.
3102 (vmlsq_u32): Likewise.
3103 (vmlsl_s8): Likewise.
3104 (vmlsl_s16): Likewise.
3105 (vmlsl_s32): Likewise.
3106 (vmlsl_u8): Likewise.
3107 (vmlsl_u16): Likewise.
3108 (vmlsl_u32): Likewise.
3109 (vqdmlsl_s16): Likewise.
3110 (vqdmlsl_s32): Likewise.
3111 (vfma_f32): Likewise.
3112 (vfmaq_f32): Likewise.
3113 (vfms_f32): Likewise.
3114 (vfmsq_f32): Likewise.
3115 (vsubl_s8): Likewise.
3116 (vsubl_s16): Likewise.
3117 (vsubl_s32): Likewise.
3118 (vsubl_u8): Likewise.
3119 (vsubl_u16): Likewise.
3120 (vsubl_u32): Likewise.
3121 (vsubw_s8): Likewise.
3122 (vsubw_s16): Likewise.
3123 (vsubw_s32): Likewise.
3124 (vsubw_u8): Likewise.
3125 (vsubw_u16): Likewise.
3126 (vsubw_u32): Likewise.
3127 (vhsub_s8): Likewise.
3128 (vhsub_s16): Likewise.
3129 (vhsub_s32): Likewise.
3130 (vhsub_u8): Likewise.
3131 (vhsub_u16): Likewise.
3132 (vhsub_u32): Likewise.
3133 (vhsubq_s8): Likewise.
3134 (vhsubq_s16): Likewise.
3135 (vhsubq_s32): Likewise.
3136 (vhsubq_u8): Likewise.
3137 (vhsubq_u16): Likewise.
3138 (vhsubq_u32): Likewise.
3139 (vqsub_s8): Likewise.
3140 (vqsub_s16): Likewise.
3141 (vqsub_s32): Likewise.
3142 (vqsub_s64): Likewise.
3143 (vqsub_u8): Likewise.
3144 (vqsub_u16): Likewise.
3145 (vqsub_u32): Likewise.
3146 (vqsub_u64): Likewise.
3147 (vqsubq_s8): Likewise.
3148 (vqsubq_s16): Likewise.
3149 (vqsubq_s32): Likewise.
3150 (vqsubq_s64): Likewise.
3151 (vqsubq_u8): Likewise.
3152 (vqsubq_u16): Likewise.
3153 (vqsubq_u32): Likewise.
3154 (vqsubq_u64): Likewise.
3155 (vsubhn_s16): Likewise.
3156 (vsubhn_s32): Likewise.
3157 (vsubhn_s64): Likewise.
3158 (vsubhn_u16): Likewise.
3159 (vsubhn_u32): Likewise.
3160 (vsubhn_u64): Likewise.
3161 (vrsubhn_s16): Likewise.
3162 (vrsubhn_s32): Likewise.
3163 (vrsubhn_s64): Likewise.
3164 (vrsubhn_u16): Likewise.
3165 (vrsubhn_u32): Likewise.
3166 (vrsubhn_u64): Likewise.
3167 (vceq_s8): Likewise.
3168 (vceq_s16): Likewise.
3169 (vceq_s32): Likewise.
3170 (vceq_f32): Likewise.
3171 (vceq_u8): Likewise.
3172 (vceq_u16): Likewise.
3173 (vceq_u32): Likewise.
3174 (vceq_p8): Likewise.
3175 (vceqq_s8): Likewise.
3176 (vceqq_s16): Likewise.
3177 (vceqq_s32): Likewise.
3178 (vceqq_f32): Likewise.
3179 (vceqq_u8): Likewise.
3180 (vceqq_u16): Likewise.
3181 (vceqq_u32): Likewise.
3182 (vceqq_p8): Likewise.
3183 (vcge_s8): Likewise.
3184 (vcge_s16): Likewise.
3185 (vcge_s32): Likewise.
3186 (vcge_f32): Likewise.
3187 (vcge_u8): Likewise.
3188 (vcge_u16): Likewise.
3189 (vcge_u32): Likewise.
3190 (vcgeq_s8): Likewise.
3191 (vcgeq_s16): Likewise.
3192 (vcgeq_s32): Likewise.
3193 (vcgeq_f32): Likewise.
3194 (vcgeq_u8): Likewise.
3195 (vcgeq_u16): Likewise.
3196 (vcgeq_u32): Likewise.
3197 (vcle_s8): Likewise.
3198 (vcle_s16): Likewise.
3199 (vcle_s32): Likewise.
3200 (vcle_f32): Likewise.
3201 (vcle_u8): Likewise.
3202 (vcle_u16): Likewise.
3203 (vcle_u32): Likewise.
3204 (vcleq_s8): Likewise.
3205 (vcleq_s16): Likewise.
3206 (vcleq_s32): Likewise.
3207 (vcleq_f32): Likewise.
3208 (vcleq_u8): Likewise.
3209 (vcleq_u16): Likewise.
3210 (vcleq_u32): Likewise.
3211 (vcgt_s8): Likewise.
3212 (vcgt_s16): Likewise.
3213 (vcgt_s32): Likewise.
3214 (vcgt_f32): Likewise.
3215 (vcgt_u8): Likewise.
3216 (vcgt_u16): Likewise.
3217 (vcgt_u32): Likewise.
3218 (vcgtq_s8): Likewise.
3219 (vcgtq_s16): Likewise.
3220 (vcgtq_s32): Likewise.
3221 (vcgtq_f32): Likewise.
3222 (vcgtq_u8): Likewise.
3223 (vcgtq_u16): Likewise.
3224 (vcgtq_u32): Likewise.
3225 (vclt_s8): Likewise.
3226 (vclt_s16): Likewise.
3227 (vclt_s32): Likewise.
3228 (vclt_f32): Likewise.
3229 (vclt_u8): Likewise.
3230 (vclt_u16): Likewise.
3231 (vclt_u32): Likewise.
3232 (vcltq_s8): Likewise.
3233 (vcltq_s16): Likewise.
3234 (vcltq_s32): Likewise.
3235 (vcltq_f32): Likewise.
3236 (vcltq_u8): Likewise.
3237 (vcltq_u16): Likewise.
3238 (vcltq_u32): Likewise.
3239 (vcage_f32): Likewise.
3240 (vcageq_f32): Likewise.
3241 (vcale_f32): Likewise.
3242 (vcaleq_f32): Likewise.
3243 (vcagt_f32): Likewise.
3244 (vcagtq_f32): Likewise.
3245 (vcalt_f32): Likewise.
3246 (vcaltq_f32): Likewise.
3247 (vtst_s8): Likewise.
3248 (vtst_s16): Likewise.
3249 (vtst_s32): Likewise.
3250 (vtst_u8): Likewise.
3251 (vtst_u16): Likewise.
3252 (vtst_u32): Likewise.
3253 (vtst_p8): Likewise.
3254 (vtstq_s8): Likewise.
3255 (vtstq_s16): Likewise.
3256 (vtstq_s32): Likewise.
3257 (vtstq_u8): Likewise.
3258 (vtstq_u16): Likewise.
3259 (vtstq_u32): Likewise.
3260 (vtstq_p8): Likewise.
3261 (vabd_s8): Likewise.
3262 (vabd_s16): Likewise.
3263 (vabd_s32): Likewise.
3264 (vabd_f32): Likewise.
3265 (vabd_u8): Likewise.
3266 (vabd_u16): Likewise.
3267 (vabd_u32): Likewise.
3268 (vabdq_s8): Likewise.
3269 (vabdq_s16): Likewise.
3270 (vabdq_s32): Likewise.
3271 (vabdq_f32): Likewise.
3272 (vabdq_u8): Likewise.
3273 (vabdq_u16): Likewise.
3274 (vabdq_u32): Likewise.
3275 (vabdl_s8): Likewise.
3276 (vabdl_s16): Likewise.
3277 (vabdl_s32): Likewise.
3278 (vabdl_u8): Likewise.
3279 (vabdl_u16): Likewise.
3280 (vabdl_u32): Likewise.
3281 (vaba_s8): Likewise.
3282 (vaba_s16): Likewise.
3283 (vaba_s32): Likewise.
3284 (vaba_u8): Likewise.
3285 (vaba_u16): Likewise.
3286 (vaba_u32): Likewise.
3287 (vabaq_s8): Likewise.
3288 (vabaq_s16): Likewise.
3289 (vabaq_s32): Likewise.
3290 (vabaq_u8): Likewise.
3291 (vabaq_u16): Likewise.
3292 (vabaq_u32): Likewise.
3293 (vabal_s8): Likewise.
3294 (vabal_s16): Likewise.
3295 (vabal_s32): Likewise.
3296 (vabal_u8): Likewise.
3297 (vabal_u16): Likewise.
3298 (vabal_u32): Likewise.
3299 (vmax_s8): Likewise.
3300 (vmax_s16): Likewise.
3301 (vmax_s32): Likewise.
3302 (vmax_f32): Likewise.
3303 (vmax_u8): Likewise.
3304 (vmax_u16): Likewise.
3305 (vmax_u32): Likewise.
3306 (vmaxq_s8): Likewise.
3307 (vmaxq_s16): Likewise.
3308 (vmaxq_s32): Likewise.
3309 (vmaxq_f32): Likewise.
3310 (vmaxq_u8): Likewise.
3311 (vmaxq_u16): Likewise.
3312 (vmaxq_u32): Likewise.
3313 (vmin_s8): Likewise.
3314 (vmin_s16): Likewise.
3315 (vmin_s32): Likewise.
3316 (vmin_f32): Likewise.
3317 (vmin_u8): Likewise.
3318 (vmin_u16): Likewise.
3319 (vmin_u32): Likewise.
3320 (vminq_s8): Likewise.
3321 (vminq_s16): Likewise.
3322 (vminq_s32): Likewise.
3323 (vminq_f32): Likewise.
3324 (vminq_u8): Likewise.
3325 (vminq_u16): Likewise.
3326 (vminq_u32): Likewise.
3327 (vpadd_s8): Likewise.
3328 (vpadd_s16): Likewise.
3329 (vpadd_s32): Likewise.
3330 (vpadd_f32): Likewise.
3331 (vpadd_u8): Likewise.
3332 (vpadd_u16): Likewise.
3333 (vpadd_u32): Likewise.
3334 (vpaddl_s8): Likewise.
3335 (vpaddl_s16): Likewise.
3336 (vpaddl_s32): Likewise.
3337 (vpaddl_u8): Likewise.
3338 (vpaddl_u16): Likewise.
3339 (vpaddl_u32): Likewise.
3340 (vpaddlq_s8): Likewise.
3341 (vpaddlq_s16): Likewise.
3342 (vpaddlq_s32): Likewise.
3343 (vpaddlq_u8): Likewise.
3344 (vpaddlq_u16): Likewise.
3345 (vpaddlq_u32): Likewise.
3346 (vpadal_s8): Likewise.
3347 (vpadal_s16): Likewise.
3348 (vpadal_s32): Likewise.
3349 (vpadal_u8): Likewise.
3350 (vpadal_u16): Likewise.
3351 (vpadal_u32): Likewise.
3352 (vpadalq_s8): Likewise.
3353 (vpadalq_s16): Likewise.
3354 (vpadalq_s32): Likewise.
3355 (vpadalq_u8): Likewise.
3356 (vpadalq_u16): Likewise.
3357 (vpadalq_u32): Likewise.
3358 (vpmax_s8): Likewise.
3359 (vpmax_s16): Likewise.
3360 (vpmax_s32): Likewise.
3361 (vpmax_f32): Likewise.
3362 (vpmax_u8): Likewise.
3363 (vpmax_u16): Likewise.
3364 (vpmax_u32): Likewise.
3365 (vpmin_s8): Likewise.
3366 (vpmin_s16): Likewise.
3367 (vpmin_s32): Likewise.
3368 (vpmin_f32): Likewise.
3369 (vpmin_u8): Likewise.
3370 (vpmin_u16): Likewise.
3371 (vpmin_u32): Likewise.
3372 (vrecps_f32): Likewise.
3373 (vrecpsq_f32): Likewise.
3374 (vrsqrts_f32): Likewise.
3375 (vrsqrtsq_f32): Likewise.
3376 (vshl_s8): Likewise.
3377 (vshl_s16): Likewise.
3378 (vshl_s32): Likewise.
3379 (vshl_s64): Likewise.
3380 (vshl_u8): Likewise.
3381 (vshl_u16): Likewise.
3382 (vshl_u32): Likewise.
3383 (vshl_u64): Likewise.
3384 (vshlq_s8): Likewise.
3385 (vshlq_s16): Likewise.
3386 (vshlq_s32): Likewise.
3387 (vshlq_s64): Likewise.
3388 (vshlq_u8): Likewise.
3389 (vshlq_u16): Likewise.
3390 (vshlq_u32): Likewise.
3391 (vshlq_u64): Likewise.
3392 (vrshl_s8): Likewise.
3393 (vrshl_s16): Likewise.
3394 (vrshl_s32): Likewise.
3395 (vrshl_s64): Likewise.
3396 (vrshl_u8): Likewise.
3397 (vrshl_u16): Likewise.
3398 (vrshl_u32): Likewise.
3399 (vrshl_u64): Likewise.
3400 (vrshlq_s8): Likewise.
3401 (vrshlq_s16): Likewise.
3402 (vrshlq_s32): Likewise.
3403 (vrshlq_s64): Likewise.
3404 (vrshlq_u8): Likewise.
3405 (vrshlq_u16): Likewise.
3406 (vrshlq_u32): Likewise.
3407 (vrshlq_u64): Likewise.
3408 (vqshl_s8): Likewise.
3409 (vqshl_s16): Likewise.
3410 (vqshl_s32): Likewise.
3411 (vqshl_s64): Likewise.
3412 (vqshl_u8): Likewise.
3413 (vqshl_u16): Likewise.
3414 (vqshl_u32): Likewise.
3415 (vqshl_u64): Likewise.
3416 (vqshlq_s8): Likewise.
3417 (vqshlq_s16): Likewise.
3418 (vqshlq_s32): Likewise.
3419 (vqshlq_s64): Likewise.
3420 (vqshlq_u8): Likewise.
3421 (vqshlq_u16): Likewise.
3422 (vqshlq_u32): Likewise.
3423 (vqshlq_u64): Likewise.
3424 (vqrshl_s8): Likewise.
3425 (vqrshl_s16): Likewise.
3426 (vqrshl_s32): Likewise.
3427 (vqrshl_s64): Likewise.
3428 (vqrshl_u8): Likewise.
3429 (vqrshl_u16): Likewise.
3430 (vqrshl_u32): Likewise.
3431 (vqrshl_u64): Likewise.
3432 (vqrshlq_s8): Likewise.
3433 (vqrshlq_s16): Likewise.
3434 (vqrshlq_s32): Likewise.
3435 (vqrshlq_s64): Likewise.
3436 (vqrshlq_u8): Likewise.
3437 (vqrshlq_u16): Likewise.
3438 (vqrshlq_u32): Likewise.
3439 (vqrshlq_u64): Likewise.
3440 (vshr_n_s8): Likewise.
3441 (vshr_n_s16): Likewise.
3442 (vshr_n_s32): Likewise.
3443 (vshr_n_s64): Likewise.
3444 (vshr_n_u8): Likewise.
3445 (vshr_n_u16): Likewise.
3446 (vshr_n_u32): Likewise.
3447 (vshr_n_u64): Likewise.
3448 (vshrq_n_s8): Likewise.
3449 (vshrq_n_s16): Likewise.
3450 (vshrq_n_s32): Likewise.
3451 (vshrq_n_s64): Likewise.
3452 (vshrq_n_u8): Likewise.
3453 (vshrq_n_u16): Likewise.
3454 (vshrq_n_u32): Likewise.
3455 (vshrq_n_u64): Likewise.
3456 (vrshr_n_s8): Likewise.
3457 (vrshr_n_s16): Likewise.
3458 (vrshr_n_s32): Likewise.
3459 (vrshr_n_s64): Likewise.
3460 (vrshr_n_u8): Likewise.
3461 (vrshr_n_u16): Likewise.
3462 (vrshr_n_u32): Likewise.
3463 (vrshr_n_u64): Likewise.
3464 (vrshrq_n_s8): Likewise.
3465 (vrshrq_n_s16): Likewise.
3466 (vrshrq_n_s32): Likewise.
3467 (vrshrq_n_s64): Likewise.
3468 (vrshrq_n_u8): Likewise.
3469 (vrshrq_n_u16): Likewise.
3470 (vrshrq_n_u32): Likewise.
3471 (vrshrq_n_u64): Likewise.
3472 (vshrn_n_s16): Likewise.
3473 (vshrn_n_s32): Likewise.
3474 (vshrn_n_s64): Likewise.
3475 (vshrn_n_u16): Likewise.
3476 (vshrn_n_u32): Likewise.
3477 (vshrn_n_u64): Likewise.
3478 (vrshrn_n_s16): Likewise.
3479 (vrshrn_n_s32): Likewise.
3480 (vrshrn_n_s64): Likewise.
3481 (vrshrn_n_u16): Likewise.
3482 (vrshrn_n_u32): Likewise.
3483 (vrshrn_n_u64): Likewise.
3484 (vqshrn_n_s16): Likewise.
3485 (vqshrn_n_s32): Likewise.
3486 (vqshrn_n_s64): Likewise.
3487 (vqshrn_n_u16): Likewise.
3488 (vqshrn_n_u32): Likewise.
3489 (vqshrn_n_u64): Likewise.
3490 (vqrshrn_n_s16): Likewise.
3491 (vqrshrn_n_s32): Likewise.
3492 (vqrshrn_n_s64): Likewise.
3493 (vqrshrn_n_u16): Likewise.
3494 (vqrshrn_n_u32): Likewise.
3495 (vqrshrn_n_u64): Likewise.
3496 (vqshrun_n_s16): Likewise.
3497 (vqshrun_n_s32): Likewise.
3498 (vqshrun_n_s64): Likewise.
3499 (vqrshrun_n_s16): Likewise.
3500 (vqrshrun_n_s32): Likewise.
3501 (vqrshrun_n_s64): Likewise.
3502 (vshl_n_s8): Likewise.
3503 (vshl_n_s16): Likewise.
3504 (vshl_n_s32): Likewise.
3505 (vshl_n_s64): Likewise.
3506 (vshl_n_u8): Likewise.
3507 (vshl_n_u16): Likewise.
3508 (vshl_n_u32): Likewise.
3509 (vshl_n_u64): Likewise.
3510 (vshlq_n_s8): Likewise.
3511 (vshlq_n_s16): Likewise.
3512 (vshlq_n_s32): Likewise.
3513 (vshlq_n_s64): Likewise.
3514 (vshlq_n_u8): Likewise.
3515 (vshlq_n_u16): Likewise.
3516 (vshlq_n_u32): Likewise.
3517 (vshlq_n_u64): Likewise.
3518 (vqshl_n_s8): Likewise.
3519 (vqshl_n_s16): Likewise.
3520 (vqshl_n_s32): Likewise.
3521 (vqshl_n_s64): Likewise.
3522 (vqshl_n_u8): Likewise.
3523 (vqshl_n_u16): Likewise.
3524 (vqshl_n_u32): Likewise.
3525 (vqshl_n_u64): Likewise.
3526 (vqshlq_n_s8): Likewise.
3527 (vqshlq_n_s16): Likewise.
3528 (vqshlq_n_s32): Likewise.
3529 (vqshlq_n_s64): Likewise.
3530 (vqshlq_n_u8): Likewise.
3531 (vqshlq_n_u16): Likewise.
3532 (vqshlq_n_u32): Likewise.
3533 (vqshlq_n_u64): Likewise.
3534 (vqshlu_n_s8): Likewise.
3535 (vqshlu_n_s16): Likewise.
3536 (vqshlu_n_s32): Likewise.
3537 (vqshlu_n_s64): Likewise.
3538 (vqshluq_n_s8): Likewise.
3539 (vqshluq_n_s16): Likewise.
3540 (vqshluq_n_s32): Likewise.
3541 (vqshluq_n_s64): Likewise.
3542 (vshll_n_s8): Likewise.
3543 (vshll_n_s16): Likewise.
3544 (vshll_n_s32): Likewise.
3545 (vshll_n_u8): Likewise.
3546 (vshll_n_u16): Likewise.
3547 (vshll_n_u32): Likewise.
3548 (vsra_n_s8): Likewise.
3549 (vsra_n_s16): Likewise.
3550 (vsra_n_s32): Likewise.
3551 (vsra_n_s64): Likewise.
3552 (vsra_n_u8): Likewise.
3553 (vsra_n_u16): Likewise.
3554 (vsra_n_u32): Likewise.
3555 (vsra_n_u64): Likewise.
3556 (vsraq_n_s8): Likewise.
3557 (vsraq_n_s16): Likewise.
3558 (vsraq_n_s32): Likewise.
3559 (vsraq_n_s64): Likewise.
3560 (vsraq_n_u8): Likewise.
3561 (vsraq_n_u16): Likewise.
3562 (vsraq_n_u32): Likewise.
3563 (vsraq_n_u64): Likewise.
3564 (vrsra_n_s8): Likewise.
3565 (vrsra_n_s16): Likewise.
3566 (vrsra_n_s32): Likewise.
3567 (vrsra_n_s64): Likewise.
3568 (vrsra_n_u8): Likewise.
3569 (vrsra_n_u16): Likewise.
3570 (vrsra_n_u32): Likewise.
3571 (vrsra_n_u64): Likewise.
3572 (vrsraq_n_s8): Likewise.
3573 (vrsraq_n_s16): Likewise.
3574 (vrsraq_n_s32): Likewise.
3575 (vrsraq_n_s64): Likewise.
3576 (vrsraq_n_u8): Likewise.
3577 (vrsraq_n_u16): Likewise.
3578 (vrsraq_n_u32): Likewise.
3579 (vrsraq_n_u64): Likewise.
3580 (vabs_s8): Likewise.
3581 (vabs_s16): Likewise.
3582 (vabs_s32): Likewise.
3583 (vabs_f32): Likewise.
3584 (vabsq_s8): Likewise.
3585 (vabsq_s16): Likewise.
3586 (vabsq_s32): Likewise.
3587 (vabsq_f32): Likewise.
3588 (vqabs_s8): Likewise.
3589 (vqabs_s16): Likewise.
3590 (vqabs_s32): Likewise.
3591 (vqabsq_s8): Likewise.
3592 (vqabsq_s16): Likewise.
3593 (vqabsq_s32): Likewise.
3594 (vneg_s8): Likewise.
3595 (vneg_s16): Likewise.
3596 (vneg_s32): Likewise.
3597 (vneg_f32): Likewise.
3598 (vnegq_s8): Likewise.
3599 (vnegq_s16): Likewise.
3600 (vnegq_s32): Likewise.
3601 (vnegq_f32): Likewise.
3602 (vqneg_s8): Likewise.
3603 (vqneg_s16): Likewise.
3604 (vqneg_s32): Likewise.
3605 (vqnegq_s8): Likewise.
3606 (vqnegq_s16): Likewise.
3607 (vqnegq_s32): Likewise.
3608 (vmvn_s8): Likewise.
3609 (vmvn_s16): Likewise.
3610 (vmvn_s32): Likewise.
3611 (vmvn_u8): Likewise.
3612 (vmvn_u16): Likewise.
3613 (vmvn_u32): Likewise.
3614 (vmvn_p8): Likewise.
3615 (vmvnq_s8): Likewise.
3616 (vmvnq_s16): Likewise.
3617 (vmvnq_s32): Likewise.
3618 (vmvnq_u8): Likewise.
3619 (vmvnq_u16): Likewise.
3620 (vmvnq_u32): Likewise.
3621 (vmvnq_p8): Likewise.
3622 (vcls_s8): Likewise.
3623 (vcls_s16): Likewise.
3624 (vcls_s32): Likewise.
3625 (vclsq_s8): Likewise.
3626 (vclsq_s16): Likewise.
3627 (vclsq_s32): Likewise.
3628 (vclz_s8): Likewise.
3629 (vclz_s16): Likewise.
3630 (vclz_s32): Likewise.
3631 (vclz_u8): Likewise.
3632 (vclz_u16): Likewise.
3633 (vclz_u32): Likewise.
3634 (vclzq_s8): Likewise.
3635 (vclzq_s16): Likewise.
3636 (vclzq_s32): Likewise.
3637 (vclzq_u8): Likewise.
3638 (vclzq_u16): Likewise.
3639 (vclzq_u32): Likewise.
3640 (vcnt_s8): Likewise.
3641 (vcnt_u8): Likewise.
3642 (vcnt_p8): Likewise.
3643 (vcntq_s8): Likewise.
3644 (vcntq_u8): Likewise.
3645 (vcntq_p8): Likewise.
3646 (vrecpe_f32): Likewise.
3647 (vrecpe_u32): Likewise.
3648 (vrecpeq_f32): Likewise.
3649 (vrecpeq_u32): Likewise.
3650 (vrsqrte_f32): Likewise.
3651 (vrsqrte_u32): Likewise.
3652 (vrsqrteq_f32): Likewise.
3653 (vrsqrteq_u32): Likewise.
3654 (vget_lane_s8): Likewise.
3655 (vget_lane_s16): Likewise.
3656 (vget_lane_s32): Likewise.
3657 (vget_lane_f32): Likewise.
3658 (vget_lane_u8): Likewise.
3659 (vget_lane_u16): Likewise.
3660 (vget_lane_u32): Likewise.
3661 (vget_lane_p8): Likewise.
3662 (vget_lane_p16): Likewise.
3663 (vget_lane_s64): Likewise.
3664 (vget_lane_u64): Likewise.
3665 (vgetq_lane_s8): Likewise.
3666 (vgetq_lane_s16): Likewise.
3667 (vgetq_lane_s32): Likewise.
3668 (vgetq_lane_f32): Likewise.
3669 (vgetq_lane_u8): Likewise.
3670 (vgetq_lane_u16): Likewise.
3671 (vgetq_lane_u32): Likewise.
3672 (vgetq_lane_p8): Likewise.
3673 (vgetq_lane_p16): Likewise.
3674 (vgetq_lane_s64): Likewise.
3675 (vgetq_lane_u64): Likewise.
3676 (vcvt_s32_f32): Likewise.
3677 (vcvt_f32_s32): Likewise.
3678 (vcvt_f32_u32): Likewise.
3679 (vcvt_u32_f32): Likewise.
3680 (vcvtq_s32_f32): Likewise.
3681 (vcvtq_f32_s32): Likewise.
3682 (vcvtq_f32_u32): Likewise.
3683 (vcvtq_u32_f32): Likewise.
3684 (vcvt_n_s32_f32): Likewise.
3685 (vcvt_n_f32_s32): Likewise.
3686 (vcvt_n_f32_u32): Likewise.
3687 (vcvt_n_u32_f32): Likewise.
3688 (vcvtq_n_s32_f32): Likewise.
3689 (vcvtq_n_f32_s32): Likewise.
3690 (vcvtq_n_f32_u32): Likewise.
3691 (vcvtq_n_u32_f32): Likewise.
3692 (vmovn_s16): Likewise.
3693 (vmovn_s32): Likewise.
3694 (vmovn_s64): Likewise.
3695 (vmovn_u16): Likewise.
3696 (vmovn_u32): Likewise.
3697 (vmovn_u64): Likewise.
3698 (vqmovn_s16): Likewise.
3699 (vqmovn_s32): Likewise.
3700 (vqmovn_s64): Likewise.
3701 (vqmovn_u16): Likewise.
3702 (vqmovn_u32): Likewise.
3703 (vqmovn_u64): Likewise.
3704 (vqmovun_s16): Likewise.
3705 (vqmovun_s32): Likewise.
3706 (vqmovun_s64): Likewise.
3707 (vmovl_s8): Likewise.
3708 (vmovl_s16): Likewise.
3709 (vmovl_s32): Likewise.
3710 (vmovl_u8): Likewise.
3711 (vmovl_u16): Likewise.
3712 (vmovl_u32): Likewise.
3713 (vmul_lane_s16): Likewise.
3714 (vmul_lane_s32): Likewise.
3715 (vmul_lane_f32): Likewise.
3716 (vmul_lane_u16): Likewise.
3717 (vmul_lane_u32): Likewise.
3718 (vmulq_lane_s16): Likewise.
3719 (vmulq_lane_s32): Likewise.
3720 (vmulq_lane_f32): Likewise.
3721 (vmulq_lane_u16): Likewise.
3722 (vmulq_lane_u32): Likewise.
3723 (vmla_lane_s16): Likewise.
3724 (vmla_lane_s32): Likewise.
3725 (vmla_lane_f32): Likewise.
3726 (vmla_lane_u16): Likewise.
3727 (vmla_lane_u32): Likewise.
3728 (vmlaq_lane_s16): Likewise.
3729 (vmlaq_lane_s32): Likewise.
3730 (vmlaq_lane_f32): Likewise.
3731 (vmlaq_lane_u16): Likewise.
3732 (vmlaq_lane_u32): Likewise.
3733 (vmlal_lane_s16): Likewise.
3734 (vmlal_lane_s32): Likewise.
3735 (vmlal_lane_u16): Likewise.
3736 (vmlal_lane_u32): Likewise.
3737 (vqdmlal_lane_s16): Likewise.
3738 (vqdmlal_lane_s32): Likewise.
3739 (vmls_lane_s16): Likewise.
3740 (vmls_lane_s32): Likewise.
3741 (vmls_lane_f32): Likewise.
3742 (vmls_lane_u16): Likewise.
3743 (vmls_lane_u32): Likewise.
3744 (vmlsq_lane_s16): Likewise.
3745 (vmlsq_lane_s32): Likewise.
3746 (vmlsq_lane_f32): Likewise.
3747 (vmlsq_lane_u16): Likewise.
3748 (vmlsq_lane_u32): Likewise.
3749 (vmlsl_lane_s16): Likewise.
3750 (vmlsl_lane_s32): Likewise.
3751 (vmlsl_lane_u16): Likewise.
3752 (vmlsl_lane_u32): Likewise.
3753 (vqdmlsl_lane_s16): Likewise.
3754 (vqdmlsl_lane_s32): Likewise.
3755 (vmull_lane_s16): Likewise.
3756 (vmull_lane_s32): Likewise.
3757 (vmull_lane_u16): Likewise.
3758 (vmull_lane_u32): Likewise.
3759 (vqdmull_lane_s16): Likewise.
3760 (vqdmull_lane_s32): Likewise.
3761 (vqdmulhq_lane_s16): Likewise.
3762 (vqdmulhq_lane_s32): Likewise.
3763 (vqdmulh_lane_s16): Likewise.
3764 (vqdmulh_lane_s32): Likewise.
3765 (vqrdmulhq_lane_s16): Likewise.
3766 (vqrdmulhq_lane_s32): Likewise.
3767 (vqrdmulh_lane_s16): Likewise.
3768 (vqrdmulh_lane_s32): Likewise.
3769 (vmul_n_s16): Likewise.
3770 (vmul_n_s32): Likewise.
3771 (vmul_n_f32): Likewise.
3772 (vmul_n_u16): Likewise.
3773 (vmul_n_u32): Likewise.
3774 (vmulq_n_s16): Likewise.
3775 (vmulq_n_s32): Likewise.
3776 (vmulq_n_f32): Likewise.
3777 (vmulq_n_u16): Likewise.
3778 (vmulq_n_u32): Likewise.
3779 (vmull_n_s16): Likewise.
3780 (vmull_n_s32): Likewise.
3781 (vmull_n_u16): Likewise.
3782 (vmull_n_u32): Likewise.
3783 (vqdmull_n_s16): Likewise.
3784 (vqdmull_n_s32): Likewise.
3785 (vqdmulhq_n_s16): Likewise.
3786 (vqdmulhq_n_s32): Likewise.
3787 (vqdmulh_n_s16): Likewise.
3788 (vqdmulh_n_s32): Likewise.
3789 (vqrdmulhq_n_s16): Likewise.
3790 (vqrdmulhq_n_s32): Likewise.
3791 (vqrdmulh_n_s16): Likewise.
3792 (vqrdmulh_n_s32): Likewise.
3793 (vmla_n_s16): Likewise.
3794 (vmla_n_s32): Likewise.
3795 (vmla_n_f32): Likewise.
3796 (vmla_n_u16): Likewise.
3797 (vmla_n_u32): Likewise.
3798 (vmlaq_n_s16): Likewise.
3799 (vmlaq_n_s32): Likewise.
3800 (vmlaq_n_f32): Likewise.
3801 (vmlaq_n_u16): Likewise.
3802 (vmlaq_n_u32): Likewise.
3803 (vmlal_n_s16): Likewise.
3804 (vmlal_n_s32): Likewise.
3805 (vmlal_n_u16): Likewise.
3806 (vmlal_n_u32): Likewise.
3807 (vqdmlal_n_s16): Likewise.
3808 (vqdmlal_n_s32): Likewise.
3809 (vmls_n_s16): Likewise.
3810 (vmls_n_s32): Likewise.
3811 (vmls_n_f32): Likewise.
3812 (vmls_n_u16): Likewise.
3813 (vmls_n_u32): Likewise.
3814 (vmlsq_n_s16): Likewise.
3815 (vmlsq_n_s32): Likewise.
3816 (vmlsq_n_f32): Likewise.
3817 (vmlsq_n_u16): Likewise.
3818 (vmlsq_n_u32): Likewise.
3819 (vmlsl_n_s16): Likewise.
3820 (vmlsl_n_s32): Likewise.
3821 (vmlsl_n_u16): Likewise.
3822 (vmlsl_n_u32): Likewise.
3823 (vqdmlsl_n_s16): Likewise.
3824 (vqdmlsl_n_s32): Likewise.
3825
3826 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3827
3828 * config/arm/arm.c (arm_new_rtx_costs, case PLUS, MINUS):
3829 Add cost of alu.arith in simple SImode case.
3830
3831 2014-11-18 Jiong Wang <jiong.wang@arm.com>
3832
3833 * lra-eliminations.c (update_reg_eliminate): Relax gcc_assert for fixed
3834 registers.
3835
3836 2014-11-18 Marat Zakirov <m.zakirov@samsung.com>
3837
3838 * opts.c (finish_options): Disable aggressive opts for sanitizer.
3839 (common_handle_option): Move code to finish_options.
3840
3841 2014-11-18 Yury Gribov <y.gribov@samsung.com>
3842
3843 PR sanitizer/63802
3844 * stor-layout.c (min_align_of_type): Respect user alignment
3845 more.
3846
3847 2014-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
3848
3849 * passes.c (remove_cgraph_node_from_order): New.
3850 (do_per_function_toporder): Register cgraph removal
3851 hook.
3852
3853 2014-11-17 Terry Guo <terry.guo@arm.com>
3854
3855 * config/arm/arm.c (arm_issue_rate): Return 2 for cortex-m7.
3856 * config/arm/arm.md (generic_sched): Exclude cortex-m7.
3857 (generic_vfp): Likewise.
3858 * config/arm/cortex-m7.md: Pipeline description for cortex-m7.
3859
3860 2014-11-17 Vladimir Makarov <vmakarov@redhat.com>
3861
3862 PR rtl-optimization/63906
3863 * lra-remat.c (operand_to_remat): Check SP and
3864 frame_pointer_required.
3865
3866 2014-11-17 Mircea Namolaru <mircea.namolaru@inria.fr>
3867
3868 * doc/invoke.texi (floop-unroll-and-jam): Document
3869 (loop-unroll-jam-size): Likewise.
3870 (loop-unroll-jam-depth): Likewise.
3871 * graphite-optimize-isl.c (getPrevectorMap_full): Modify comment.
3872 (getScheduleForBandList): Replaced unsafe union_map reuse.
3873
3874 2014-11-17 Andrew Pinski <apinski@cavium.com>
3875
3876 * config/aarch64/thunderx.md: Remove copyright which should not
3877 have been there.
3878
3879 2014-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
3880 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3881
3882 * config/rs6000/rs6000.c (RELOAD_REG_AND_M16): Add support for
3883 Altivec style vector loads that ignore the bottom 3 bits of the
3884 address.
3885 (rs6000_debug_addr_mask): New function to print the addr_mask
3886 values if debugging.
3887 (rs6000_debug_print_mode): Call rs6000_debug_addr_mask to print
3888 out addr_mask.
3889 (rs6000_setup_reg_addr_masks): Add support for Altivec style
3890 vector loads that ignore the bottom 3 bits of the address. Allow
3891 pre-increment and pre-decrement on floating point, even if the
3892 -mupper-regs-{sf,df} options were used.
3893 (rs6000_init_hard_regno_mode_ok): Rework DFmode support if
3894 -mupper-regs-df. Add support for -mupper-regs-sf. Rearrange code
3895 placement for direct move support.
3896 (rs6000_option_override_internal): Add checks for -mupper-regs-df
3897 requiring -mvsx, and -mupper-regs-sf requiring -mpower8-vector.
3898 If -mupper-regs, set both -mupper-regs-sf and -mupper-regs-df,
3899 depending on the underlying cpu.
3900 (rs6000_secondary_reload_fail): Add ATTRIBUTE_NORETURN.
3901 (rs6000_secondary_reload_toc_costs): Helper function to identify
3902 costs of a TOC load for secondary reload support.
3903 (rs6000_secondary_reload_memory): Helper function for secondary
3904 reload, to determine if a particular memory operation is directly
3905 handled by the hardware, or if it needs support from secondary
3906 reload to create a valid address.
3907 (rs6000_secondary_reload): Rework code, to be clearer. If the
3908 appropriate -mupper-regs-{sf,df} is used, use FPR registers to
3909 reload scalar values, since the FPR registers have D-form
3910 addressing. Move most of the code handling memory to the function
3911 rs6000_secondary_reload_memory, and use the reg_addr structure to
3912 determine what type of address modes are supported. Print more
3913 debug information if -mdebug=addr.
3914 (rs6000_secondary_reload_inner): Rework entire function to be more
3915 general. Use the reg_addr bits to determine what type of
3916 addressing is supported.
3917 (rs6000_preferred_reload_class): Rework. Move constant handling
3918 into a single place. Prefer using FLOAT_REGS for scalar floating
3919 point.
3920 (rs6000_secondary_reload_class): Use a FPR register to move a
3921 value from an Altivec register to a GPR, and vice versa. Move VSX
3922 handling above traditional floating point.
3923
3924 * config/rs6000/rs6000.md (mov<mode>_hardfloat, FMOVE32 case):
3925 Delete some spaces in the constraints.
3926 (DF->DF move peephole2): Disable if -mupper-regs-{sf,df} to
3927 allow using FPR registers to load/store an Altivec register for
3928 scalar floating point types.
3929 (SF->SF move peephole2): Likewise.
3930 (DFmode splitter): Add a define_split to move floating point
3931 constants to the constant pool before register allocation.
3932 Normally constants are put into the pool immediately, but
3933 -ffast-math delays putting them into the constant pool for the
3934 reciprocal approximation support.
3935 (SFmode splitter): Likewise.
3936
3937 * config/rs6000/rs6000.opt (-mupper-regs-df): Make option public.
3938 (-mupper-regs-sf): Likewise.
3939
3940 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3941 __UPPER_REGS_DF__ if -mupper-regs-df. Define __UPPER_REGS_SF__ if
3942 -mupper-regs-sf.
3943 (-mupper-regs): New combination option that sets -mupper-regs-sf
3944 and -mupper-regs-df by default if the cpu supports the instructions.
3945
3946 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3947 -mupper-regs, -mupper-regs-sf, and -mupper-regs-df.
3948
3949 * config/rs6000/predicates.md (memory_fp_constant): New predicate
3950 to return true if the operand is a floating point constant that
3951 must be put into the constant pool, before register allocation
3952 occurs.
3953
3954 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Enable
3955 -mupper-regs-df by default.
3956 (ISA_2_7_MASKS_SERVER): Enable -mupper-regs-sf by default.
3957 (POWERPC_MASKS): Add -mupper-regs-{sf,df} as options set by the
3958 various -mcpu=... options.
3959 (power7 cpu): Enable -mupper-regs-df by default.
3960
3961 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3962 -mupper-regs.
3963
3964 2014-11-17 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
3965
3966 * ira-conflicts.c (build_conflict_bit_table): Add the current
3967 object to OBJECTS_LIVE after traversing OBJECTS_LIVE.
3968
3969 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
3970
3971 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
3972 (ipa_get_indirect_edge_target): Add SPECULATIVE argument.
3973 (devirtualization_time_bonus): Use it.
3974 (ipcp_discover_new_direct_edges): Likewise.
3975 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Update.
3976 * ipa-prop.h (ipa_get_indirect_edge_target): Update prototype.
3977
3978 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
3979
3980 * tree.c (free_lang_data_in_decl): Set DECL_FUNCTION_SPECIFIC_OPTIMIZATION
3981 to optimization_default_node.
3982
3983 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
3984
3985 * cgraphunit.c (analyze_functions): Use opt_for_fn.
3986 * cgraph.h (cgraph_node::optimize_for_size_p): Likewise.
3987
3988 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
3989
3990 * cgraph.c (symbol_table::create_edge): Use opt_for_fn.
3991 (cgraph_node::cannot_return_p): Likewise.
3992 (cgraph_edge::cannot_lead_to_return_p): Likewise.
3993 (cgraph_edge::maybe_hot_p): Likewise.
3994
3995 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
3996
3997 * predict.c (maybe_hot_frequency_p): Use opt_for_fn.
3998 (optimize_function_for_size_p): Likewise.
3999 (probably_never_executed): Likewise; replace cfun by fun.
4000
4001 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
4002
4003 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Add
4004 variant reading from memory and assembling to ld1.
4005
4006 * config/aarch64/arm_neon.h (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8,
4007 vld1_lane_p16, vld1_lane_s8, vld1_lane_s16, vld1_lane_s32,
4008 vld1_lane_s64, vld1_lane_u8, vld1_lane_u16, vld1_lane_u32,
4009 vld1_lane_u64, vld1q_lane_f32, vld1q_lane_f64, vld1q_lane_p8,
4010 vld1q_lane_p16, vld1q_lane_s8, vld1q_lane_s16, vld1q_lane_s32,
4011 vld1q_lane_s64, vld1q_lane_u8, vld1q_lane_u16, vld1q_lane_u32,
4012 vld1q_lane_u64): Replace asm with vset_lane and pointer dereference.
4013
4014 2014-11-17 Jason Merrill <jason@redhat.com>
4015
4016 * tree-inline.c (copy_fn): New.
4017 * tree-inline.h: Declare it.
4018
4019 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
4020
4021 * config/aarch64/aarch64-builtins.c (TYPES_CREATE): Remove.
4022 * config/aarch64/aarch64-simd-builtins.def (create): Remove.
4023 * config/aarch64/aarch64-simd.md (aarch64_create<mode>): Remove.
4024 * config/aarch64/arm_neon.h (vcreate_f64, vreinterpret_f64_s64,
4025 vreinterpret_f64_u64): Replace __builtin_aarch64_createv1df with C casts.
4026 * config/aarch64/iterators.md (VD1): Remove.
4027
4028 2014-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4029
4030 * config/aarch64/aarch64-cores.def (cortex-a53): Remove
4031 AARCH64_FL_CRYPTO from feature flags.
4032 (cortex-a57): Likewise.
4033 (cortex-a57.cortex-a53): Likewise.
4034
4035 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
4036
4037 * tree.c (free_lang_data_in_decl): Annotate all functio nbodies with
4038 DECL_FUNCTION_SPECIFIC_TARGET.
4039 * i386.c (ix86_set_current_function): Handle explicit default options.
4040
4041 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
4042
4043 * builtins.c (expand_builtin_memcpy_with_bounds): Use target hook
4044 instead of BNDmode.
4045 (expand_builtin_mempcpy_with_bounds): Likewise.
4046 (expand_builtin_memset_with_bounds): Likewise.
4047
4048 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
4049
4050 * tree-ssa-strlen.c: include ipa-chkp.h, cgraph.h,
4051 ipa-ref.h, plugin-api.h.
4052 (get_string_length): Handle calls with bounds.
4053 (adjust_last_stmt): Likewise.
4054 (handle_builtin_strchr): Likewise.
4055 (handle_builtin_strcpy): Likewise.
4056 (handle_builtin_memcpy): Likewise.
4057 (handle_builtin_strcat): Likewise.
4058
4059 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
4060
4061 * tree-chkp-opt.c (chkp_get_nobnd_fndecl): New.
4062 (chkp_get_nochk_fndecl): New.
4063 (chkp_optimize_string_function_calls): New.
4064 (chkp_opt_execute): Call chkp_optimize_string_function_calls.
4065 * tree-cfg.h (insert_cond_bb): New.
4066 * tree-cfg.c (insert_cond_bb): New.
4067
4068 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
4069
4070 * tree-core.h (built_in_class): Add builtin codes to be used
4071 by Pointer Bounds Checker for instrumented builtin functions.
4072 * tree-streamer-in.c: Include ipa-chkp.h.
4073 (streamer_get_builtin_tree): Created instrumented decl if
4074 required.
4075 * ipa-chkp.h (chkp_maybe_clone_builtin_fndecl): New.
4076 * ipa-chkp.c (chkp_build_instrumented_fndecl): Support builtin
4077 function decls.
4078 (chkp_maybe_clone_builtin_fndecl): New.
4079 (chkp_maybe_create_clone): Support builtin function decls.
4080 (chkp_versioning): Clone builtin functions.
4081 * tree-chkp.c (chkp_instrument_normal_builtin): New.
4082 (chkp_add_bounds_to_call_stmt): Support builtin functions.
4083 (chkp_replace_function_pointer): Likewise.
4084 * builtins.c (expand_builtin_memcpy_args): New.
4085 (expand_builtin_memcpy): Call expand_builtin_memcpy_args.
4086 (expand_builtin_memcpy_with_bounds): New.
4087 (expand_builtin_mempcpy_with_bounds): New.
4088 (expand_builtin_mempcpy_args): Add orig_exp arg. Support
4089 BUILT_IN_CHKP_MEMCPY_NOBND_NOCHK
4090 (expand_builtin_memset_with_bounds): New.
4091 (expand_builtin_memset_args): Support BUILT_IN_CHKP_MEMSET_NOBND_NOCHK.
4092 (expand_builtin_with_bounds): New.
4093 * builtins.h (expand_builtin_with_bounds): New.
4094 * expr.c (expand_expr_real_1): Support instrumented builtin calls.
4095
4096 2014-11-17 Dodji Seketeli <dodji@redhat.com>
4097
4098 * gimple.h (gimple_set_visited, gimple_visited_p)
4099 (gimple_set_plf, gimple_plf, gimple_set_uid, gimple_uid): Add more
4100 comments to these accessors.
4101
4102 2014-11-17 Georg-Johann Lay <avr@gjlay.de>
4103
4104 * config/avr/avr-log.c (avr_log_set_avr_log) [TARGET_ALL_DEBUG]:
4105 Set avr_log_details to "all".
4106
4107 2014-11-17 Richard Biener <rguenther@suse.de>
4108
4109 PR middle-end/63898
4110 * match.pd: Guard X / CST -> X * CST' transform against
4111 zero CST.
4112
4113 2014-11-17 Terry Guo <terry.guo@arm.com>
4114
4115 * config/arm/thumb1.md (*addsi3_cbranch_scratch): Updated to UAL
4116 format.
4117
4118 2014-11-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
4119
4120 * ifcvt.c (HAVE_cbranchcc4): Define.
4121 (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
4122 Use HAVE_cbranchcc4.
4123
4124 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4125
4126 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
4127 aarch64_convert_mode, aarch64_gen_ccmp_first,
4128 aarch64_gen_ccmp_next): New functions.
4129 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
4130
4131 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4132
4133 * config/aarch64/aarch64-protos.h (aarch64_ccmp_mode_to_code): New.
4134 * aarch64.c (aarch64_nzcv_codes): New data.
4135 (aarch64_ccmp_mode_to_code): New.
4136 (aarch64_print_operand): Output nzcv.
4137 config/aarch64/aarch64.md (cbranchcc4, *ccmp_and, *ccmp_ior, cstorecc4):
4138 New patterns.
4139 (cstore<mode>4): Handle ccmp_cc_register.
4140 * config/aarch64/predicates.md (const0_operand): New.
4141
4142 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4143
4144 * config/aarch64/aarch64-modes.def: Define ccmp CC mode.
4145 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): New function
4146 extacted from aarch64_get_condition_code.
4147 (aarch64_get_condition_code): Call aarch64_get_condition_code_1.
4148 config/aarch64/predicates.md (ccmp_cc_register): New predicate.
4149
4150 014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4151
4152 * config/aarch64/constraints.md (Usn, aarch64_ccmp_immediate,
4153 aarch64_ccmp_operand): New constraints.
4154
4155 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4156
4157 * Makefile.in: Add ccmp.o.
4158 * ccmp.c: New file.
4159 * ccmp.h: New file.
4160 * expr.c: include "ccmp.h"
4161 (expand_cond_expr_using_cmove): Handle VOIDmode.
4162 (expand_expr_real_1): Try to expand ccmp.
4163
4164 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4165
4166 * cfgexpand.c (expand_gimple_cond): Check ccmp.
4167 * expmed.c (emit_cstore): Make it global.
4168 * expmed.h: #include "insn-codes.h"
4169 (emit_cstore): New prototype.
4170 * expr.c (expand_operands): Make it global.
4171 * expr.h (expand_operands): New prototype.
4172 * optabs.c (get_rtx_code): Make it global.
4173 * optabs.h (get_rtx_code): New prototype.
4174
4175 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4176
4177 * target.def (gen_ccmp_first, gen_ccmp_first): Add two new hooks.
4178 * doc/tm.texi.in (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
4179 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
4180
4181 2014-11-16 Patrick Palka <ppalka@gcc.gnu.org>
4182
4183 PR middle-end/63790
4184 * tree-ssa-forwprop.c (forward_propagate_into_comparison_1):
4185 Always combine comparisons or conversions from booleans.
4186
4187 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
4188
4189 * ipa-polymorphic-call.c
4190 (ipa_polymorphic_call_context::speculation_consistent_p): Constify.
4191 (ipa_polymorphic_call_context::meet_speculation_with): New function.
4192 (ipa_polymorphic_call_context::combine_with): Handle types in construction
4193 better.
4194 (ipa_polymorphic_call_context::equal_to): Do not bother about useless
4195 speculation.
4196 (ipa_polymorphic_call_context::meet_with): New function.
4197 * cgraph.h (class ipa_polymorphic_call_context): Add
4198 meet_width, meet_speculation_with; constify speculation_consistent_p.
4199 * ipa-cp.c (ipa_context_from_jfunc): Handle speculation; combine with incomming
4200 context.
4201 (propagate_context_accross_jump_function): Likewise; be more cureful.
4202 about set_contains_variable.
4203 (ipa_get_indirect_edge_target_1): Fix handling of dynamic type changes.
4204 (find_more_scalar_values_for_callers_subset): Fix.
4205 (find_more_contexts_for_caller_subset): Perform meet operation.
4206
4207 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
4208
4209 * passes.c (execute_one_pass): Do not apply all transforms prior
4210 every simple IPA pass.
4211 * cgraphunit.c: Do not include fibheap.h
4212 (expand_thunk): Use get_untransformed_body.
4213 (cgraph_node::expand): Likewise.
4214 * tree-ssa-structalias.c (ipa_pta_execute): Skip inline clones.
4215 * cgraph.c (release_function_body): Do not push cfun when CFG is not there.
4216 (cgraph_node::get_untransformed_body): Break out from ...
4217 (cgraph_node::get_body): ... here; add code to apply all transforms.
4218 * cgraph.h (cgraph_node): Add get_untransformed_body.
4219 * ipa-icf.c (sem_function::init): Use get_untransformed_body.
4220 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
4221 * tree-inline.c (expand_call_inline): LIkewise.
4222 * i386.c (ix86_reset_to_default_globals): Break out from ...
4223 (ix86_set_current_function): ... here;
4224 (ix86_reset_previous_fndecl): Use it.
4225 (ix86_simd_clone_adjust): Use ix86_reset_previous_fndecl.
4226
4227 2014-11-16 Eric Botcazou <ebotcazou@adacore.com>
4228
4229 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Move around.
4230 * doc/tm.texi: Regenerate.
4231
4232 2014-11-16 Uros Bizjak <ubizjak@gmail.com>
4233
4234 * config/sh/sh.c: Do not include algorithm.
4235 (sh_emit_scc_to_t): Replace open-coded swap with std::swap
4236 to swap values.
4237 (sh_emit_compare_and_branch): Ditto.
4238 (sh_emit_compare_and_set): Ditto.
4239 * config/sh/sh.md (replacement peephole2): Ditto.
4240 (cstore4_media): Ditto.
4241 (*fmasf4): Ditto.
4242
4243 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
4244
4245 * lra-remat.c (cand_transf_func): Process regno for
4246 rematerialization too.
4247 * lra.c (lra): Switch on rematerialization pass.
4248
4249 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
4250
4251 * lra.c (lra): Switch off rematerialization pass.
4252
4253 2014-11-15 Marc Glisse <marc.glisse@inria.fr>
4254
4255 * config/i386/xmmintrin.h (_mm_add_ps, _mm_sub_ps, _mm_mul_ps,
4256 _mm_div_ps, _mm_store_ss, _mm_cvtss_f32): Use vector extensions
4257 instead of builtins.
4258 * config/i386/emmintrin.h (__v2du, __v4su, __v8hu, __v16qu): New
4259 typedefs.
4260 (_mm_sqrt_sd): Fix comment.
4261 (_mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4262 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4263 _mm_mullo_epi16, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4264 _mm_cmplt_epi8, _mm_cmplt_epi16, _mm_cmplt_epi32, _mm_cmpgt_epi8,
4265 _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_and_si128, _mm_or_si128,
4266 _mm_xor_si128, _mm_store_sd, _mm_cvtsd_f64, _mm_storeh_pd,
4267 _mm_cvtsi128_si64, _mm_cvtsi128_si64x, _mm_add_pd, _mm_sub_pd,
4268 _mm_mul_pd, _mm_div_pd, _mm_storel_epi64, _mm_movepi64_pi64):
4269 Use vector extensions instead of builtins.
4270 * config/i386/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
4271 _mm_mullo_epi32): Likewise.
4272 * config/i386/avxintrin.h (__v4du, __v8su, __v16hu, __v32qu):
4273 New typedefs.
4274 (_mm256_add_pd, _mm256_add_ps, _mm256_div_pd, _mm256_div_ps,
4275 _mm256_mul_pd, _mm256_mul_ps, _mm256_sub_pd, _mm256_sub_ps):
4276 Use vector extensions instead of builtins.
4277 * config/i386/avx2intrin.h (_mm256_cmpeq_epi8, _mm256_cmpeq_epi16,
4278 _mm256_cmpeq_epi32, _mm256_cmpeq_epi64, _mm256_cmpgt_epi8,
4279 _mm256_cmpgt_epi16, _mm256_cmpgt_epi32, _mm256_cmpgt_epi64,
4280 _mm256_and_si256, _mm256_or_si256, _mm256_xor_si256, _mm256_add_epi8,
4281 _mm256_add_epi16, _mm256_add_epi32, _mm256_add_epi64,
4282 _mm256_mullo_epi16, _mm256_mullo_epi32, _mm256_sub_epi8,
4283 _mm256_sub_epi16, _mm256_sub_epi32, _mm256_sub_epi64): Likewise.
4284 * config/i386/avx512fintrin.h (__v8du, __v16su, __v32hu, __v64qu):
4285 New typedefs.
4286 (_mm512_or_si512, _mm512_or_epi32, _mm512_or_epi64, _mm512_xor_si512,
4287 _mm512_xor_epi32, _mm512_xor_epi64, _mm512_and_si512,
4288 _mm512_and_epi32, _mm512_and_epi64, _mm512_mullo_epi32,
4289 _mm512_add_epi64, _mm512_sub_epi64, _mm512_add_epi32,
4290 _mm512_sub_epi32, _mm512_add_pd, _mm512_add_ps, _mm512_sub_pd,
4291 _mm512_sub_ps, _mm512_mul_pd, _mm512_mul_ps, _mm512_div_pd,
4292 _mm512_div_ps): Use vector extensions instead of builtins.
4293 * config/i386/avx512bwintrin.h (_mm512_mullo_epi16, _mm512_add_epi8,
4294 _mm512_sub_epi8, _mm512_sub_epi16, _mm512_add_epi16): Likewise.
4295 * config/i386/avx512dqintrin.h (_mm512_mullo_epi64): Likewise.
4296 * config/i386/avx512vldqintrin.h (_mm256_mullo_epi64, _mm_mullo_epi64):
4297 Likewise.
4298
4299 2014-11-15 Jan Hubicka <hubicka@ucw.cz>
4300
4301 * lto-streamer-out.c (hash_tree): Use cl_optimization_hash.
4302 * lto-streamer.h (cl_optimization_stream_out, cl_optimization_stream_in): Declare.
4303 * optc-save-gen.awk: Generate cl_optimization LTO streaming and hashing routines.
4304 * opth-gen.awk: Add prototype of cl_optimization_hash.
4305 * tree-streamer-in.c (unpack_ts_optimization): Remove.
4306 (streamer_unpack_tree_bitfields): Use cl_optimization_stream_in.
4307 * tree-streamer-out.c (pack_ts_optimization): Remove.
4308 (streamer_pack_tree_bitfields): Use cl_optimization_stream_out.
4309
4310 2014-11-15 Mircea Namolaru <mircea.namolaru@inria.fr>
4311
4312 * common.opt (flag_loop_unroll_and_jam): New flag.
4313 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE): Parameter for unroll and
4314 jam flag.
4315 (PARAM_LOOP_UNROLL_JAM_DEPTH): Likewise.
4316 * graphite-poly.h (struct poly_bb:map_sepclass): New field
4317 * graphite-poly.c (new_poly_bb): Initialization for new field.
4318 (apply_poly_transforms): Support for unroll and jam flag.
4319 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass): Compute the
4320 separation class.
4321 (generate_luj_sepclass_opt): Build the separation class option.
4322 (generate_luj_options): Set unroll and jam options.
4323 (set_options): Support for unroll and jam options.
4324 (scop_to_isl_ast): Likewise
4325 * graphite-optimize-isl.c (getPrevectorMap_full): New function for
4326 computing the separating class map.
4327 (optimize_isl): Support for the separating class map.
4328 (apply_schedule_map_to_scop): Likewise.
4329 (getScheduleMap): Likewise.
4330 (getScheduleForBand): Likewise.
4331 (getScheduleForBandList): Likewise.
4332 * graphite.c (gate_graphite_transforms): Add unroll and jam flag.
4333 * toplev.c (process_options) Likewise.
4334
4335 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
4336
4337 * tree-cfg.c (replace_loop_annotate_in_block): New function extracted
4338 from...
4339 (replace_loop_annotate): ...here. Call it on the header and on the
4340 latch block, if any. Restore proper behavior of final cleanup.
4341
4342 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
4343
4344 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message
4345 for max-completely-peeled-insns limit.
4346
4347 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
4348
4349 * ipa-prop.h (ipa_known_type_data): Remove.
4350 (ipa_binfo_from_known_type_jfunc): Remove.
4351
4352 2014-11-14 Andrew Pinski <apinski@cavium.com>
4353
4354 * config/aarch64/aarch64-cores.def (thunderx): Change the scheduler
4355 over to thunderx.
4356 * config/aarch64/aarch64.md: Include thunderx.md.
4357 (generic_sched): Set to no for thunderx.
4358 * config/aarch64/thunderx.md: New file.
4359
4360 2014-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4361
4362 * config/rs6000/predicates.md (easy_fp_constant): Delete redunant
4363 tests for 0.0.
4364
4365 * config/rs6000/vector.md (VEC_R): Move secondary reload support
4366 insns to rs6000.md from vector.md.
4367 (reload_<VEC_R:mode>_<P:mptrsize>_store): Likewise.
4368 (reload_<VEC_R:mode>_<P:mptrsize>_load): Likewise.
4369 (vec_reload_and_plus_<mptrsize>): Likewise.
4370
4371 * config/rs6000/rs6000.md (Fa): New mode attribute to give
4372 constraint for the Altivec registers for a type.
4373 (RELOAD): New mode iterator for all of the types that have
4374 secondary reload address support to load up a base register.
4375 (extendsfdf2_fpr): Use correct constraint.
4376 (copysign<mode>3_fcpsgn): For SFmode, use correct xscpsgndp
4377 instruction.
4378 (floatsi<mode>2_lfiwax): Add support for -mupper-regs-{sf,df}.
4379 Generate the non-VSX instruction if all registers were FPRs. Do
4380 not use the patterns in vsx.md for scalar operations.
4381 (floatsi<mode>2_lfiwax_mem): Likewise.
4382 (floatunssi<mode>2_lfiwzx): Likewise.
4383 (floatunssi<mode>2_lfiwzx_mem): Likewise.
4384 (fix_trunc<mode>di2_fctidz): Likewise.
4385 (fixuns_trunc<mode>di2_fctiduz): Likewise.
4386 (fctiwz_<mode>): Likewise.
4387 (fctiwuz_<mode>): Likewise.
4388 (friz): Likewise.
4389 (floatdidf2_fpr): Likewise.
4390 (floatdidf2_mem): Likewise.
4391 (floatunsdidf2): Likewise.
4392 (floatunsdidf2_fcfidu): Likewise.
4393 (floatunsdidf2_mem): Likewise.
4394 (floatdisf2_fcfids): Likewise.
4395 (floatdisf2_mem): Likewise.
4396 (floatdisf2_internal1): Add explicit test for not FCFIDS to make
4397 it more obvious that the code is for pre-ISA 2.06 machines.
4398 (floatdisf2_internal2): Likewise.
4399 (floatunsdisf2_fcfidus): Add support for -mupper-regs-{sf,df}.
4400 Generate the non-VSX instruction if all registers were FPRs. Do
4401 not use the patterns in vsx.md for scalar operations.
4402 (floatunsdisf2_mem): Likewise.
4403 (reload_<RELOAD:mode>_<P:mptrsize>_store): Move the reload
4404 handlers here from vector.md, and expand the types we generate
4405 reload handlers for.
4406 (reload_<RELOAD:mode>_<P:mptrsize>_load): Likewise.
4407 (vec_reload_and_plus_<mptrsize>): Likewise.
4408
4409 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Only provide the
4410 vector forms of the instructions. Move VSX scalar forms to
4411 rs6000.md, and add support for -mupper-regs-sf.
4412 (vsx_floatuns<VSi><mode>2): Likewise.
4413 (vsx_fix_trunc<mode><VSi>2): Likewise.
4414 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
4415 (vsx_float_fix_<mode>2): Delete DF version, rename to
4416 vsx_float_fix_v2df2.
4417 (vsx_float_fix_v2df2): Likewise.
4418
4419 2014-11-14 Martin Jambor <mjambor@suse.cz>
4420
4421 * ipa-prop.h (jump_func_type): Removed value IPA_JF_KNOWN_TYPE.
4422 (ipa_pass_through_data): Removed field type_preserved.
4423 (ipa_ancestor_jf_data): removed fields type and type_preserved.
4424 (ipa_jump_func): Removed field known_type.
4425 (ipa_get_jf_known_type_offset): Removed.
4426 (ipa_get_jf_known_type_base_type): Likewise.
4427 (ipa_get_jf_known_type_component_type): Likewise.
4428 (ipa_get_jf_ancestor_type): Likewise.
4429 * ipa-cp.c (print_ipcp_constant_value): Removed BINFO handling.
4430 (ipa_get_jf_pass_through_result): Likewise.
4431 (ipa_get_jf_ancestor_result): Always build ptr_node_type accesses.
4432 (values_equal_for_ipcp_p): Removed BINFO handling.
4433 (ipa_get_indirect_edge_target_1): Updated comment.
4434 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Removed handling
4435 of IPA_JF_KNOWN_TYPE jump functions. Do not print removed fields.
4436 (ipa_set_jf_known_type): Removed.
4437 (ipa_set_jf_simple_pass_through): Do not set removed fields. Update
4438 all callers.
4439 (ipa_set_jf_arith_pass_through): Likewise.
4440 (ipa_set_ancestor_jf): Likewise.
4441 (ipa_binfo_from_known_type_jfunc): Removed.
4442 (prop_type_change_info): Removed fields known_current_type and
4443 multiple_types_encountered.
4444 (extr_type_from_vtbl_ptr_store): Removed.
4445 (check_stmt_for_type_change): Do not attempt to identify changed type.
4446 (detect_type_change_from_memory_writes): Do not set the removed fields,
4447 always set jfunc to unknown.
4448 (compute_complex_assign_jump_func): Do not detect dynamic type change.
4449 (compute_complex_ancestor_jump_func): Likewise.
4450 (compute_known_type_jump_func): Removed.
4451 (ipa_compute_jump_functions_for_edge): Do not detect dynamic type
4452 change. Do not comute known type jump functions.
4453 (combine_known_type_and_ancestor_jfs): Removed.
4454 (update_jump_functions_after_inlining): Removed handling of
4455 IPA_JF_KNOWN_TYPE jump functions. Do not set removed fields.
4456 (ipa_write_jump_function): Do not stream removed fields or known type
4457 jump functions.
4458 (ipa_read_jump_function): Likewise.
4459
4460 2014-11-14 Vladimir Makarov <vmakarov@redhat.com>
4461
4462 * lra-int.h (lra_create_live_ranges): Add parameter.
4463 * lra-lives.c (temp_bitmap): Move higher.
4464 (initiate_live_solver): Move temp_bitmap initialization into
4465 lra_live_ranges_init.
4466 (finish_live_solver): Move temp_bitmap clearing into
4467 live_ranges_finish.
4468 (process_bb_lives): Add parameter. Use it to control live info
4469 update and dead insn elimination. Pass it to mark_regno_live and
4470 mark_regno_dead.
4471 (lra_create_live_ranges): Add parameter. Pass it to
4472 process_bb_lives.
4473 (lra_live_ranges_init, lra_live_ranges_finish): See changes in
4474 initiate_live_solver and finish_live_solver.
4475 * lra-remat.c (do_remat): Process insn non-operand hard regs too.
4476 Use temp_bitmap to update avail_cands.
4477 * lra.c (lra): Pass new parameter to lra_create_live_ranges. Move
4478 check with lra_need_for_spill_p after live range pass. Switch on
4479 rematerialization pass.
4480
4481 2014-11-14 Martin Jambor <mjambor@suse.cz>
4482
4483 * ipa-prop.h (ipa_get_jf_pass_through_type_preserved): use
4484 agg_preserved flag instead.
4485 (ipa_get_jf_ancestor_type_preserved): Likewise.
4486 (ipa_node_params): Rename known_vals to known_csts, update all users.
4487 New field known_contexts.
4488 (ipa_get_indirect_edge_target): Update prototype.
4489 (ipcp_poly_ctx_values_pool): Declare.
4490 (ipa_context_from_jfunc): Likewise.
4491 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Updated prototype.
4492 * cgraph.h (ipa_polymorphic_call_context): New method equal_to. New
4493 parameter newline of method dump.
4494 * ipa-cp.c (ctxlat): New field.
4495 (ipcp_values_pool): Renamed to ipcp_cst_values_pool, updated all users.
4496 (ipcp_poly_ctx_values_pool):New variable.
4497 (ipa_get_poly_ctx_lat): New function.
4498 (print_ipcp_constant_value): New overloaded function for contexts.
4499 (print_all_lattices): Also print contexts.
4500 (ipa_topo_info): New field contexts;
4501 (set_all_contains_variable): Also set the flag in the context lattice.
4502 (initialize_node_lattices): Likewise for flag bottom.
4503 (ipa_get_jf_ancestor_result): Removed BINFO handling.
4504 (ipa_value_from_jfunc): Likewise.
4505 (ipa_context_from_jfunc): New function.
4506 (values_equal_for_ipcp_p): New overloaded function for contexts.
4507 (allocate_and_init_ipcp_value): Construct the value.
4508 (allocate_and_init_ipcp_value): New overloaded function for contexts.
4509 (propagate_scalar_accross_jump_function): Removed handling of
4510 KNOWN_TYPE jump functions.
4511 (propagate_context_accross_jump_function): New function.
4512 (propagate_constants_accross_call): Also propagate contexts.
4513 (ipa_get_indirect_edge_target_1): Work on contexts rather than BINFOs.
4514 (ipa_get_indirect_edge_target): Likewise.
4515 (devirtualization_time_bonus): Likewise.
4516 (gather_context_independent_values): Create and populate known_contexts
4517 vector rather than known_binfos.
4518 (perform_estimation_of_a_value): Work on contexts rather than BINFOs.
4519 (estimate_local_effects): Likewise.
4520 (add_all_node_vals_to_toposort): Also add contexts to teir topological
4521 sort.
4522 (ipcp_propagate_stage): Also propagate effects of contexts.
4523 (ipcp_discover_new_direct_edges): Receive and pass known_contexts to
4524 ipa_get_indirect_edge_target_1.
4525 (cgraph_edge_brings_value_p): New overloaded function for contexts.
4526 (create_specialized_node): Work on contexts rather than BINFOs.
4527 (find_more_contexts_for_caller_subset): New function.
4528 (known_contexts_useful_p): New function.
4529 (copy_useful_known_contexts): Likewise.
4530 (modify_known_vectors_with_val): Likewise.
4531 (ipcp_val_in_agg_replacements_p): Renamed to
4532 ipcp_val_agg_replacement_ok_p, return true for all offset indicating
4533 non-aggregate.
4534 (ipcp_val_agg_replacement_ok_p): New overloaded function for contexts.
4535 (decide_about_value): Work on contexts rather than BINFOs.
4536 (decide_whether_version_node): Likewise.
4537 (ipcp_driver): Initialize the new alloc pool.
4538 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Prettify
4539 printing of edge contexts.
4540 (ipa_set_ancestor_jf): Replace assert with conditional setting of
4541 type_preserved to false.
4542 (update_jump_functions_after_inlining): Use access function instead of
4543 reading agg_preserved directly. Store combined context in the ancestor
4544 case.
4545 (try_make_edge_direct_virtual_call): Work on contexts rather than
4546 BINFOs.
4547 (update_indirect_edges_after_inlining): Get context from
4548 ipa_context_from_jfunc.
4549 (ipa_free_node_params_substructures): Free also known_contexts.
4550 (ipa_free_all_structures_after_ipa_cp): Free the new alloc pool.
4551 (ipa_free_all_structures_after_iinln): Likewise.
4552 * ipa-inline-analysis.c (evaluate_properties_for_edge): Work on
4553 contexts rather than BINFOs.
4554 (estimate_edge_devirt_benefit): Likewise.
4555 (estimate_edge_size_and_time): Likewise.
4556 (estimate_calls_size_and_time): Likewise.
4557 (estimate_node_size_and_time): Likewise.
4558 (estimate_ipcp_clone_size_and_time): Likewise.
4559 (do_estimate_edge_time): Likewise.
4560 (do_estimate_edge_size): Likewise.
4561 (do_estimate_edge_hints): Likewise.
4562 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::dump): New
4563 parameter newline, ouput newline only when it is set.
4564 (ipa_polymorphic_call_context::equal_to): New method.
4565
4566 2014-11-14 Martin Jambor <mjambor@suse.cz>
4567
4568 * ipa-cp.c (ipcp_value_source): Converted to a template class. All
4569 users converted to the same specialization as the using class/function
4570 or specialization on tree.
4571 (ipcp_value): Likewise.
4572 (ipcp_lattice): Likewise.
4573 (ipcp_agg_lattice): Now derived from tree specialization of
4574 ipcp_lattice.
4575 (values_topo): Moved to new class value_topo_info.
4576 (ipa_lat_is_single_const): Turned into ipcp_lattice::is_single_const.
4577 Updated all callers.
4578 (print_lattice): Turned into ipcp_lattice::print. Updated all
4579 callers.
4580 (value_topo_info): New class template.
4581 (ipa_topo_info): New field constants. New constructor.
4582 (build_toporder_info): Do not clear stack_top, only checkign assert
4583 it.
4584 (set_lattice_to_bottom): Turned into ipcp_lattice::set_to_bottom.
4585 Updated all callers.
4586 (set_lattice_contains_variable): Turned into
4587 ipcp_lattice::set_contains_variable. Updated all callers.
4588 (add_value_source): Turned into ipcp_value::add_source. Updated all
4589 callers.
4590 (allocate_and_init_ipcp_value): New function.
4591 (add_value_to_lattice): Turned into ipcp_lattice::add_value. Last
4592 parameter got default a value. Updated all callers.
4593 (add_scalar_value_to_lattice): Removed, users converted to using
4594 ipcp_lattice::add_value with default value of the last parameter.
4595 (add_val_to_toposort): Turned to value_topo_info::add_val. Updated
4596 all callers.
4597 (propagate_effects): Made method of value_topo_info.
4598 (cgraph_edge_brings_value_p): Now a template function.
4599 (get_info_about_necessary_edges): Likewise.
4600 (gather_edges_for_value): Likewise.
4601 (perhaps_add_new_callers): Likewise.
4602 (decide_about_value): Likewise.
4603 * ipa-prop.h (ipcp_lattice): Remove fowrward declaration.
4604
4605 2014-11-14 Jakub Jelinek <jakub@redhat.com>
4606
4607 * doc/install.texi (--with-diagnostics-color=): Document.
4608
4609 * tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate
4610 IFN_GOMP_SIMD_LANE without lhs as useless.
4611
4612 * ipa-pure-const.c (struct funct_state_d): Add can_free field.
4613 (varying_state): Add true for can_free.
4614 (check_call): For builtin or internal !nonfreeing_call_p set
4615 local->can_free.
4616 (check_stmt): For asm volatile and asm with "memory" set
4617 local->can_free.
4618 (analyze_function): Clear local->can_free initially, continue
4619 calling check_stmt until all flags are computed, dump can_free
4620 flag.
4621 (pure_const_write_summary): Write can_free flag.
4622 (pure_const_read_summary): Read it back.
4623 (propagate_pure_const): Propagate also can_free flag, set
4624 w->nonfreeing_fn if it is false after propagation.
4625 * cgraph.h (cgraph_node): Add nonfreeing_fn member.
4626 * gimple.c: Include ipa-ref.h, lto-streamer.h and cgraph.h.
4627 (nonfreeing_call_p): Return cgraph nonfreeing_fn flag if set.
4628 Also return true for IFN_ABNORMAL_DISPATCHER.
4629 * cgraph.c (cgraph_node::dump): Dump nonfreeing_fn flag.
4630 * lto-cgraph.c (lto_output_node): Write nonfreeing_fn flag.
4631 (input_overwrite_node): Read it back.
4632
4633 2014-11-14 Jakub Jelinek <jakub@redhat.com>
4634 Marek Polacek <polacek@redhat.com>
4635
4636 * sanopt.c: Include tree-ssa-operands.h.
4637 (struct sanopt_info): Add has_freeing_call_p,
4638 has_freeing_call_computed_p, imm_dom_path_with_freeing_call_p,
4639 imm_dom_path_with_freeing_call_computed_p, freeing_call_events,
4640 being_visited_p fields.
4641 (struct sanopt_ctx): Add asan_check_map field.
4642 (imm_dom_path_with_freeing_call, maybe_optimize_ubsan_null_ifn,
4643 maybe_optimize_asan_check_ifn): New functions.
4644 (sanopt_optimize_walker): Use them, optimize even ASAN_CHECK
4645 internal calls.
4646 (pass_sanopt::execute): Call sanopt_optimize even for
4647 -fsanitize=address.
4648 * gimple.c (nonfreeing_call_p): Return true for non-ECF_LEAF
4649 internal calls.
4650
4651 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
4652
4653 * tree-vect-loop.c (vect_create_epilog_for_reduction): Move code for
4654 'if (extract_scalar_result)' to the only place that it is true.
4655
4656 2014-11-14 H.J. Lu <hongjiu.lu@intel.com>
4657
4658 * config.gcc (default_gnu_indirect_function): Set to yes
4659 for i[34567]86-*-linux* and x86_64-*-linux* if not targeting
4660 Android nor uclibc.
4661
4662 2014-11-14 Felix Yang <felix.yang@huawei.com>
4663 Jiji Jiang <jiangjiji@huawei.com>
4664
4665 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): Use
4666 VALL mode iterator instead of VALLDI.
4667
4668
4669 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
4670
4671 * optc-save-gen.awk: Output cl_target_option_eq,
4672 cl_target_option_hash, cl_target_option_stream_out,
4673 cl_target_option_stream_in functions.
4674 * opth-gen.awk: Output prototypes for
4675 cl_target_option_eq and cl_target_option_hash.
4676 * lto-streamer.h (cl_target_option_stream_out,
4677 cl_target_option_stream_in): Declare.
4678 * tree.c (cl_option_hash_hash): Use cl_target_option_hash.
4679 (cl_option_hash_eq): Use cl_target_option_eq.
4680 * tree-streamer-in.c (unpack_value_fields): Stream in
4681 TREE_TARGET_OPTION.
4682 * lto-streamer-out.c (DFS::DFS_write_tree_body): Follow
4683 DECL_FUNCTION_SPECIFIC_TARGET.
4684 (hash_tree): Hash TREE_TARGET_OPTION; visit
4685 DECL_FUNCTION_SPECIFIC_TARGET.
4686 * tree-streamer-out.c (streamer_pack_tree_bitfields): Skip
4687 TS_TARGET_OPTION.
4688 (streamer_write_tree_body): Output TS_TARGET_OPTION.
4689
4690 2014-11-14 Richard Biener <rguenther@suse.de>
4691
4692 * gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd
4693 valueization hook defaulted to no_follow_ssa_edges.
4694 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Pass
4695 2nd valueization hook to gimple_simplify.
4696 * tree-ssa-ccp.c (valueize_op_1): New function to be
4697 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
4698 (ccp_fold): Adjust.
4699 * tree-vrp.c (vrp_valueize_1): New function to be
4700 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
4701 (vrp_visit_assignment_or_call): Adjust.
4702
4703 2014-11-14 Marek Polacek <polacek@redhat.com>
4704
4705 * fold-const.c (fold_negate_expr): Don't fold INTEGER_CST if
4706 that overflows when SANITIZE_SI_OVERFLOW is on. Guard -(-A)
4707 folding with TYPE_OVERFLOW_SANITIZED.
4708
4709 2014-11-14 Marek Polacek <polacek@redhat.com>
4710
4711 PR sanitizer/63839
4712 * asan.c (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST,
4713 ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
4714 * builtin-attrs.def (ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST):
4715 Define.
4716 * builtins.c (fold_builtin_0): Don't include ubsan.h. Don't
4717 instrument BUILT_IN_UNREACHABLE here.
4718 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Make
4719 const.
4720 * sanopt.c (pass_sanopt::execute): Instrument BUILT_IN_UNREACHABLE.
4721 * tree-ssa-ccp.c (optimize_unreachable): Bail out if
4722 SANITIZE_UNREACHABLE.
4723 * ubsan.c (ubsan_instrument_unreachable): Rewrite for GIMPLE.
4724 * ubsan.h (ubsan_instrument_unreachable): Adjust declaration.
4725
4726 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
4727
4728 * config/rs6000/vector.md (vec_shl_<mode>): Remove.
4729 (vec_shr_<mode>): Reverse shift if BYTES_BIG_ENDIAN.
4730
4731 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
4732
4733 * optabs.c (shift_amt_for_vec_perm_mask): Remove code conditional on
4734 BYTES_BIG_ENDIAN.
4735 * tree-vect-loop.c (calc_vec_perm_mask_for_shift,
4736 vect_create_epilog_for_reduction): Likewise.
4737 * doc/md.texi (vec_shr_m): Clarify direction of shifting.
4738
4739 2014-11-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4740
4741 PR target/63724
4742 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Split out
4743 numerical immediate handling to...
4744 (aarch64_internal_mov_immediate): ...this. New.
4745 (aarch64_rtx_costs): Use aarch64_internal_mov_immediate.
4746 (aarch64_mov_operand_p): Relax predicate.
4747 * config/aarch64/aarch64.md (mov<mode>:GPI): Do not expand CONST_INTs.
4748 (*movsi_aarch64): Turn into define_insn_and_split and new alternative
4749 for 'n'.
4750 (*movdi_aarch64): Likewise.
4751
4752 2014-11-14 Richard Biener <rguenther@suse.de>
4753
4754 * match.pd: Implement more binary patterns exercised by
4755 fold_stmt.
4756 * fold-const.c (sing_bit_p): Export.
4757 (exact_inverse): Likewise.
4758 (fold_binary_loc): Remove patterns here.
4759 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
4760 * fold-const.h (sing_bit_p): Declare.
4761 (exact_inverse): Likewise.
4762
4763 2014-11-14 Marek Polacek <polacek@redhat.com>
4764
4765 * tree.c (build_common_builtin_nodes): Remove doubled ECF_LEAF.
4766
4767 2014-11-14 Richard Biener <rguenther@suse.de>
4768
4769 * genmatch.c (add_operator): Allow CONSTRUCTOR.
4770 (dt_node::gen_kids): Handle CONSTRUCTOR not as GENERIC.
4771 (parser::parse_op): Allow to iterate over predicates.
4772
4773 2014-11-14 Jakub Jelinek <jakub@redhat.com>
4774
4775 * configure.ac (--with-diagnostics-color): New configure
4776 option, default to --with-diagnostics-color=auto.
4777 * toplev.c (process_options): Use DIAGNOSTICS_COLOR_DEFAULT
4778 to determine -fdiagnostics-color= option default.
4779 * doc/invoke.texi (-fdiagnostics-color=): Document new
4780 default.
4781 * configure: Regenerated.
4782 * config.in: Regenerated.
4783
4784 2014-11-13 Teresa Johnson <tejohnson@google.com>
4785
4786 PR tree-optimization/63841
4787 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
4788
4789 2014-11-14 Bin Cheng <bin.cheng@arm.com>
4790
4791 * timevar.def (TV_SCHED_FUSION): New time var.
4792 * passes.def (pass_sched_fusion): New pass.
4793 * config/arm/arm.c (TARGET_SCHED_FUSION_PRIORITY): New.
4794 (extract_base_offset_in_addr, fusion_load_store): New.
4795 (arm_sched_fusion_priority): New.
4796 (arm_option_override): Disable scheduling fusion by default
4797 on non-armv7 processors or ldrd/strd isn't preferred.
4798 * sched-int.h (struct _haifa_insn_data): New field.
4799 (INSN_FUSION_PRIORITY, FUSION_MAX_PRIORITY, sched_fusion): New.
4800 * sched-rgn.c (rest_of_handle_sched_fusion): New.
4801 (pass_data_sched_fusion, pass_sched_fusion): New.
4802 (make_pass_sched_fusion): New.
4803 * haifa-sched.c (sched_fusion): New.
4804 (insn_cost): Handle sched_fusion.
4805 (priority): Handle sched_fusion by calling target hook.
4806 (enum rfs_decision): New enum value.
4807 (rfs_str): New element for RFS_FUSION.
4808 (rank_for_schedule): Support sched_fusion.
4809 (schedule_insn, max_issue, prune_ready_list): Handle sched_fusion.
4810 (schedule_block, fix_tick_ready): Handle sched_fusion.
4811 * common.opt (flag_schedule_fusion): New.
4812 * tree-pass.h (make_pass_sched_fusion): New.
4813 * target.def (fusion_priority): New.
4814 * doc/tm.texi.in (TARGET_SCHED_FUSION_PRIORITY): New.
4815 * doc/tm.texi: Regenerated.
4816 * doc/invoke.texi (-fschedule-fusion): New.
4817
4818 2014-11-13 Rong Xu <xur@google.com>
4819
4820 PR debug/63581
4821 * cfgrtl.c (emit_barrier_after_bb): Append the barrier to the
4822 footer, instead of unconditionally overwritten.
4823
4824 2014-11-14 Martin Jambor <mjambor@suse.cz>
4825
4826 * cgraph.h (clear_outer_type): Make public. Fix comment.
4827 * ipa-devirt.c (possible_polymorphic_call_targets): Use
4828 clear_outer_type when resetting the context.
4829
4830 2014-11-13 Dominique Dhumieres <dominiq@lps.ens.fr>
4831
4832 PR bootstrap/63853
4833 * gcc.c (handle_foffload_option): Replace strchrnul with strchr.
4834 * lto-wrapper.c (parse_env_var, append_offload_options): Likewise.
4835
4836 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
4837
4838 * fold-const.c (const_binop): Remove code handling VEC_RSHIFT_EXPR.
4839 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
4840 * tree-inline.c (estimate_operator_cost): Likewise.
4841 * tree-pretty-print.c (dump_generic_node, op_code_prio, op_symbol_code):
4842 Likewise.
4843
4844 * tree-vect-generic.c (expand_vector_operations_1): Remove assertion
4845 against VEC_RSHIFT_EXPR.
4846
4847 * optabs.h (expand_vec_shift_expr): Remove.
4848 * optabs.c (optab_for_tree_code): Remove case VEC_RSHIFT_EXPR.
4849 (expand_vec_shift_expr): Remove.
4850 * tree.def (VEC_RSHIFT_EXPR): Remove
4851
4852 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
4853
4854 * optabs.c (can_vec_perm_p): Update comment, does not consider vec_shr.
4855 (shift_amt_for_vec_perm_mask): New.
4856 (expand_vec_perm_1): Use vec_shr_optab if second vector is const0_rtx
4857 and mask appropriate.
4858
4859 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): New.
4860 (have_whole_vector_shift): New.
4861 (vect_model_reduction_cost): Call have_whole_vector_shift instead of
4862 looking for vec_shr_optab.
4863 (vect_create_epilog_for_reduction): Likewise; also rename local variable
4864 have_whole_vector_shift to reduce_with_shift; output VEC_PERM_EXPRs
4865 instead of VEC_RSHIFT_EXPRs.
4866
4867 * tree-vect-stmts.c (vect_gen_perm_mask_checked): Extend comment.
4868
4869 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
4870
4871 * tree-vectorizer.h (vect_gen_perm_mask): Remove.
4872 (vect_gen_perm_mask_checked, vect_gen_perm_mask_any): New.
4873
4874 tree_vec_data_refs.c (vect_permute_load_chain, vec_permute_store_chain,
4875 vec_shift_permute_load_chain): Replace vect_gen_perm_mask & assert
4876 with vect_gen_perm_mask_checked.
4877
4878 * tree-vect-stmts.c (vectorizable_mask_load_store, vectorizable_load):
4879 Likewise.
4880
4881 (vect_gen_perm_mask_checked): New.
4882 (vect_gen_perm_mask): Remove can_vec_perm_p check, rename to...
4883 (vect_gen_perm_mask_any): ...this.
4884
4885 (perm_mask_for_reverse): Call can_vec_perm_p and
4886 vect_gen_perm_mask_checked.
4887
4888 2014-11-13 Felix Yang <felix.yang@huawei.com>
4889
4890 * ipa-utils.h: Fix typo in comments.
4891 * ipa-profile.c: Likewise.
4892 * tree-ssa-loop-ivcanon.c: Fix typo in comments and debugging dumps.
4893
4894 2014-11-13 Teresa Johnson <tejohnson@google.com>
4895
4896 PR tree-optimization/63841
4897 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
4898
4899 2014-11-13 Teresa Johnson <tejohnson@google.com>
4900
4901 PR tree-optimization/63841
4902 * tree.c (initializer_zerop): A clobber does not zero initialize.
4903
4904 2014-11-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4905
4906 * optabs.c (prepare_operand): Gracefully fail if the mode of X
4907 does not match the operand mode expected by the insn pattern.
4908
4909 2014-11-13 Richard Biener <rguenther@suse.de>
4910
4911 * match.pd: Add tcc_comparison, inverted_tcc_comparison
4912 and inverted_tcc_comparison_with_nans operator lists.
4913 Use tcc_comparison in the truth_valued_p predicate definition.
4914 Restrict logical_inverted_value with bit_xor to integral types.
4915 Build a boolean true for simplifying x |^ !x because of
4916 vector types. Implement patterns from forward_propagate_comparison
4917 * tree-ssa-forwprop.c (forward_propagate_comparison): Remove.
4918 (get_prop_dest_stmt): Likewise.
4919 (pass_forwprop::execute): Do not call it.
4920 * fold-const.c (fold_unary_loc): Remove the pattern here.
4921
4922 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
4923 Andrey Turetskiy <andrey.turetskiy@intel.com>
4924
4925 * config.gcc (*-intelmic-* | *-intelmicemul-*): Add i386/t-intelmic to
4926 tmake_file.
4927 (i[34567]86-*-* | x86_64-*-*): Build mkoffload$(exeext) with the
4928 accelerator compiler.
4929 * config/i386/intelmic-mkoffload.c: New file.
4930 * config/i386/t-intelmic: Ditto.
4931
4932 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
4933 Andrey Turetskiy <andrey.turetskiy@intel.com>
4934 Ilya Verbin <ilya.verbin@intel.com>
4935
4936 * common.opt (foffload, foffload-abi): New options.
4937 * config/i386/i386.c (ix86_offload_options): New static function.
4938 (TARGET_OFFLOAD_OPTIONS): Define.
4939 * coretypes.h (enum offload_abi): New enum.
4940 * doc/tm.texi: Regenerate.
4941 * doc/tm.texi.in (TARGET_OFFLOAD_OPTIONS): Document.
4942 * gcc.c (offload_targets): New static variable.
4943 (handle_foffload_option): New static function.
4944 (driver_handle_option): Handle OPT_foffload_.
4945 (driver::maybe_putenv_OFFLOAD_TARGETS): Set OFFLOAD_TARGET_NAMES
4946 according to offload_targets.
4947 * hooks.c (hook_charptr_void_null): New hook.
4948 * hooks.h (hook_charptr_void_null): Declare.
4949 * lto-opts.c: Include lto-section-names.h.
4950 (lto_write_options): Append options from target offload_options hook and
4951 store them to offload_lto section. Do not store target-specific,
4952 driver and diagnostic options in offload_lto section.
4953 * lto-wrapper.c (merge_and_complain): Handle OPT_foffload_ and
4954 OPT_foffload_abi_.
4955 (append_compiler_options, append_linker_options)
4956 (append_offload_options): New static functions.
4957 (compile_offload_image): Add new arguments with options.
4958 Call append_compiler_options and append_offload_options.
4959 (compile_images_for_offload_targets): Add new arguments with options.
4960 (find_and_merge_options): New static function.
4961 (run_gcc): Outline options handling into the new functions:
4962 find_and_merge_options, append_compiler_options, append_linker_options.
4963 * opts.c (common_handle_option): Don't handle OPT_foffload_.
4964 Forbid OPT_foffload_abi_ for non-offload compiler.
4965 * target.def (offload_options): New target hook.
4966
4967 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
4968 Bernd Schmidt <bernds@codesourcery.com>
4969 Andrey Turetskiy <andrey.turetskiy@intel.com>
4970 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4971
4972 * gcc.c (spec_host_machine, accel_dir_suffix): New variables.
4973 (process_command): Tweak path construction for the possibility
4974 of being configured as an offload compiler.
4975 (driver::maybe_putenv_OFFLOAD_TARGETS): New function.
4976 (driver::main): Call maybe_putenv_OFFLOAD_TARGETS.
4977 (driver::set_up_specs): Tweak path construction for the possibility of
4978 being configured as an offload compiler.
4979 * lto-wrapper.c (OFFLOAD_TARGET_NAMES_ENV): Define.
4980 (offload_names, offloadbegin, offloadend): New static variables.
4981 (free_array_of_ptrs, parse_env_var, access_check, compile_offload_image)
4982 (compile_images_for_offload_targets, copy_file, find_offloadbeginend):
4983 New static functions.
4984 (run_gcc): Determine whether offload sections are present. If so, run
4985 compile_images_for_offload_targets and return the names of new generated
4986 objects to linker. If there are offload sections, but no LTO sections,
4987 then return the copies of input objects without link-time recompilation.
4988
4989 2014-11-13 Richard Biener <rguenther@suse.de>
4990
4991 * genmatch.c (dt_node::gen_kids): Fix placement of break statement.
4992
4993 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
4994 Bernd Schmidt <bernds@codesourcery.com>
4995 Andrey Turetskiy <andrey.turetskiy@intel.com>
4996 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4997
4998 * Makefile.in (GTFILES): Add omp-low.h to list of GC files.
4999 * cgraphunit.c: Include omp-low.h.
5000 * doc/tm.texi: Regenerate.
5001 * doc/tm.texi.in (TARGET_RECORD_OFFLOAD_SYMBOL): Document.
5002 * gengtype.c (open_base_files): Add omp-low.h to ifiles.
5003 * lto-cgraph.c (output_offload_tables): New function.
5004 (input_offload_tables): Likewise.
5005 * lto-section-in.c (lto_section_name): Add "offload_table".
5006 * lto-section-names.h (OFFLOAD_VAR_TABLE_SECTION_NAME): Define.
5007 (OFFLOAD_FUNC_TABLE_SECTION_NAME): Likewise.
5008 * lto-streamer-out.c (lto_output): Call output_offload_tables.
5009 * lto-streamer.h (lto_section_type): Add LTO_section_offload_table.
5010 (output_offload_tables, input_offload_tables): Declare.
5011 * omp-low.c: Include common/common-target.h and lto-section-names.h.
5012 (offload_funcs, offload_vars): New global <tree, va_gc> vectors.
5013 (expand_omp_target): Add child_fn into offload_funcs vector.
5014 (add_decls_addresses_to_decl_constructor): New function.
5015 (omp_finish_file): Likewise.
5016 * omp-low.h (omp_finish_file, offload_funcs, offload_vars): Declare.
5017 * target.def (record_offload_symbol): New DEFHOOK.
5018 * toplev.c: Include omp-low.h.
5019 (compile_file): Call omp_finish_file.
5020 * varpool.c: Include omp-low.h.
5021 (varpool_node::get_create): Add decl into offload_vars vector.
5022
5023 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
5024 Ilya Tocar <ilya.tocar@intel.com>
5025 Andrey Turetskiy <andrey.turetskiy@intel.com>
5026 Bernd Schmidt <bernds@codesourcery.com>
5027
5028 * cgraph.c: Include context.h.
5029 (cgraph_node::create): Set node->offloadable and g->have_offload if
5030 decl have "omp declare target" attribute.
5031 * cgraph.h (symtab_node): Add need_lto_streaming and offloadable flags.
5032 * cgraphunit.c: Include lto-section-names.h.
5033 (ipa_passes): Call ipa_write_summaries if there is something to write to
5034 OFFLOAD_SECTION_NAME_PREFIX sections.
5035 (symbol_table::compile): Set flag_generate_lto if there is something to
5036 offload.
5037 Replace flag_lto with flag_generate_lto before lto_streamer_hooks_init.
5038 * context.c (gcc::context::context): Initialize have_offload with false.
5039 * context.h (class context): Add have_offload flag.
5040 * ipa-inline-analysis.c (inline_generate_summary): Do not exit under
5041 flag_generate_lto.
5042 (inline_free_summary): Always remove hooks.
5043 * lto-cgraph.c (referenced_from_other_partition_p): Ignore references
5044 from non-offloadable nodes while streaming a node into offload section.
5045 (reachable_from_other_partition_p): Likewise.
5046 (select_what_to_stream): New function.
5047 (compute_ltrans_boundary): Do not call
5048 lto_set_symtab_encoder_in_partition if the node should not be streamed.
5049 * lto-section-names.h (OFFLOAD_SECTION_NAME_PREFIX): Define.
5050 (section_name_prefix): Declare.
5051 * lto-streamer.c (section_name_prefix): New variable.
5052 (lto_get_section_name): Use section_name_prefix instead of
5053 LTO_SECTION_NAME_PREFIX.
5054 * lto-streamer.h (select_what_to_stream): Declare.
5055 * omp-low.c: Include context.h.
5056 (is_targetreg_ctx): New function.
5057 (scan_sharing_clauses): Use offloadable flag, instead of an attribute.
5058 (create_omp_child_function, check_omp_nesting_restrictions): Use new
5059 is_targetreg_ctx function. Replace usage of "omp declare target"
5060 attribute with a cgraph_node flag offloadable.
5061 (expand_omp_target): Set mark_force_output for offloadable functions.
5062 (lower_omp_critical): Set offloadable flag for omp critical symbol.
5063 * passes.c (ipa_write_summaries): New argument offload_lto_mode. Call
5064 select_what_to_stream. Do not call lto_set_symtab_encoder_in_partition
5065 if the node should not be streamed out.
5066 * tree-pass.h (ipa_write_summaries): New bool argument.
5067 * varpool.c: Include context.h.
5068 (varpool_node::get_create): Set node->offloadable and g->have_offload if
5069 decl have "omp declare target" attribute.
5070
5071 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
5072 Thomas Schwinge <thomas@codesourcery.com>
5073 Ilya Verbin <ilya.verbin@intel.com>
5074 Andrey Turetskiy <andrey.turetskiy@intel.com>
5075
5076 * Makefile.in (real_target_noncanonical, accel_dir_suffix)
5077 (enable_as_accelerator): New variables substituted by configure.
5078 (libsubdir, libexecsubdir, unlibsubdir): Tweak for the possibility of
5079 being configured as an offload compiler.
5080 (DRIVER_DEFINES): Pass new defines DEFAULT_REAL_TARGET_MACHINE and
5081 ACCEL_DIR_SUFFIX.
5082 (install-cpp, install-common, install_driver, install-gcc-ar): Do not
5083 install for the offload compiler.
5084 * config.in: Regenerate.
5085 * configure: Regenerate.
5086 * configure.ac (real_target_noncanonical, accel_dir_suffix)
5087 (enable_as_accelerator): Compute new variables.
5088 (ACCEL_COMPILER): Define if the compiler is built as the accel compiler.
5089 (OFFLOAD_TARGETS): List of target names suitable for offloading.
5090 (ENABLE_OFFLOADING): Define if list of offload targets is not empty.
5091 * doc/install.texi (Options specification): Document
5092 --enable-as-accelerator-for and --enable-offload-targets.
5093
5094 2014-11-13 H.J. Lu <hongjiu.lu@intel.com>
5095
5096 PR tree-optimization/63828
5097 * ipa-polymorphic-call.c (possible_placement_new): Check
5098 POINTER_SIZE, instead of BITS_PER_WORD, for pointer size.
5099
5100 2014-11-13 Eric Botcazou <ebotcazou@adacore.com>
5101
5102 * doc/tm.texi.in (SELECT_CC_MODE): Update example.
5103 (REVERSIBLE_CC_MODE): Fix example.
5104 (REVERSE_CONDITION): Fix typo.
5105 * doc/tm.texi: Regenerate.
5106
5107 2014-11-13 Tom de Vries <tom@codesourcery.com>
5108
5109 * omp-low.c (pass_data_expand_omp): Set properties_provided to
5110 PROP_gimple_eomp.
5111 (pass_expand_omp::gate): Remove function. Move gate expression to ...
5112 (pass_expand_omp::execute): ... here, as new variable gate. Add early
5113 exit if gate is false.
5114 (pass_data pass_data_expand_omp_ssa): New pass_data.
5115 (class pass_expand_omp_ssa): New pass.
5116 (make_pass_expand_omp_ssa): New function.
5117 * passes.def (pass_parallelize_loops): Use PUSH_INSERT_PASSES_WITHIN
5118 instead of NEXT_PASS.
5119 (pass_expand_omp_ssa): Add after pass_parallelize_loops.
5120 * tree-parloops.c (gen_parallel_loop): Remove call to omp_expand_local.
5121 (pass_parallelize_loops::execute): Don't do cleanups TODO_cleanup_cfg
5122 and TODO_rebuild_alias yet. Add TODO_update_ssa. Set
5123 cfun->omp_expand_needed.
5124 * tree-pass.h: Add define PROP_gimple_eomp.
5125 (make_pass_expand_omp_ssa): Declare.
5126
5127 2014-11-13 Marek Polacek <polacek@redhat.com>
5128
5129 * tree.h (TYPE_OVERFLOW_SANITIZED): Define.
5130 * fold-const.c (fold_binary_loc): Use it.
5131 * match.pd: Likewise.
5132
5133 2014-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
5134
5135 * lra-lives.c (struct bb_data): Rename to ...
5136 (struct bb_data_pseudos): ... this.
5137 (initiate_live_solver): Update struct name.
5138
5139 2014-11-13 Richard Biener <rguenther@suse.de>
5140
5141 * match.pd: Implement conditional expression patterns.
5142 * tree-ssa-forwprop.c (forward_propagate_into_cond): Remove
5143 them here.
5144 (combine_cond_exprs): Remove.
5145 (pass_forwprop::execute): Do not call combine_cond_exprs.
5146 * fold-const.c (fold_ternary_loc): Remove patterns here.
5147 (pedantic_omit_one_operand_loc): Remove.
5148
5149 2014-12-13 Richard Biener <rguenther@suse.de>
5150
5151 PR middle-end/61559
5152 * match.pd: Implement bswap patterns for transforms checked by
5153 gcc.dg/builtin-bswap-8.c.
5154
5155 2014-11-13 Vladimir Makarov <vmakarov@redhat.com>
5156
5157 * lra.c (lra): Switch off rematerialization pass.
5158
5159 2014-11-12 Vladimir Makarov <vmakarov@redhat.com>
5160
5161 * common.opt (flra-remat): New.
5162 * opts.c (default_options_table): Add entry for flra_remat.
5163 * timevar_def (TV_LRA_REMAT): New.
5164 * doc/invoke.texi (-flra-remat): Add description of the new
5165 option.
5166 * doc/passes.texi (-flra-remat): Remove lra-equivs.c and
5167 lra-saves.c. Add lra-remat.c.
5168 * Makefile.in (OBJS): Add lra-remat.o.
5169 * lra-remat.c: New file.
5170 * lra.c: Add info about the rematerialization pass in the top
5171 comment.
5172 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info):
5173 Process unallocatable regs too.
5174 (lra_constraint_new_insn_uid_start): Remove.
5175 (lra): Add code for calling rematerialization sub-pass.
5176 * lra-int.h (lra_constraint_new_insn_uid_start): Remove.
5177 (lra_constrain_insn, lra_remat): New prototypes.
5178 (lra_eliminate_regs_1): Add parameter.
5179 * lra-lives.c (make_hard_regno_born, make_hard_regno_dead):
5180 Process unallocatable hard regs too.
5181 (process_bb_lives): Ditto.
5182 * lra-spills.c (remove_pseudos): Add argument to
5183 lra_eliminate_regs_1 call.
5184 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter. Use it
5185 for sp offset calculation.
5186 (lra_eliminate_regs): Add argument for lra_eliminate_regs_1 call.
5187 (eliminate_regs_in_insn): Add parameter. Use it for sp offset
5188 calculation.
5189 (process_insn_for_elimination): Add argument for
5190 eliminate_regs_in_insn call.
5191 * lra-constraints.c (get_equiv_with_elimination): Add argument
5192 for lra_eliminate_regs_1 call.
5193 (process_addr_reg): Add parameter. Use it.
5194 (process_address_1): Ditto. Add argument for process_addr_reg
5195 call.
5196 (process_address): Ditto.
5197 (curr_insn_transform): Add parameter. Use it. Add argument for
5198 process_address calls.
5199 (lra_constrain_insn): New function.
5200 (lra_constraints): Add argument for curr_insn_transform call.
5201
5202 2014-11-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
5203
5204 * opts-global.c (postpone_unknown_option_warning): Fix spelling.
5205 (print_ignored_options): Fix quoting.
5206 * opts.c (common_handle_option): Likewise.
5207 (set_debug_level): Likewise.
5208 * toplev.c (process_options): Likewise.
5209
5210 2014-11-12 Jakub Jelinek <jakub@redhat.com>
5211
5212 PR ipa/63838
5213 * ipa-pure-const.c (propagate_nothrow): Walk w->indirect_calls
5214 chain instead of node->indirect_calls. Put !can_throw into
5215 conditions of all the loops.
5216
5217 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
5218
5219 * config/i386/i386.c (x86_output_mi_thunk): Use gen_rtx_REG to
5220 set pic_offset_table_rtx.
5221
5222 2014-11-12 Matthew Fortune <matthew.fortune@imgtec.com>
5223
5224 * common/config/mips/mips-common.c (mips_handle_option): Ensure
5225 that -mfp32, -mfp64 disable -mfpxx and -mfpxx disables -mfp64.
5226 * config.gcc (--with-fp-32): New option.
5227 (--with-odd-spreg-32): Likewise.
5228 * config.in (HAVE_AS_DOT_MODULE): New config define.
5229 * config/mips/mips-protos.h
5230 (mips_secondary_memory_needed): New prototype.
5231 (mips_hard_regno_caller_save_mode): Likewise.
5232 * config/mips/mips.c (mips_get_reg_raw_mode): New static prototype.
5233 (mips_get_arg_info): Assert that V2SFmode is only handled specially
5234 with TARGET_PAIRED_SINGLE_FLOAT.
5235 (mips_return_mode_in_fpr_p): Likewise.
5236 (mips16_call_stub_mode_suffix): Likewise.
5237 (mips_get_reg_raw_mode): New static function.
5238 (mips_return_fpr_pair): O32 return values span two registers.
5239 (mips16_build_call_stub): Likewise.
5240 (mips_function_value_regno_p): Support both FP return registers.
5241 (mips_output_64bit_xfer): Use mthc1 whenever TARGET_HAS_MXHC1. Add
5242 specific cases for TARGET_FPXX to move via memory.
5243 (mips_dwarf_register_span): For TARGET_FPXX pretend that modes larger
5244 than UNITS_PER_FPREG 'span' one register.
5245 (mips_dwarf_frame_reg_mode): New static function.
5246 (mips_file_start): Switch to using .module instead of .gnu_attribute.
5247 No longer support FP ABI 4 (-mips32r2 -mfp64), replace with FP ABI 6.
5248 Add FP ABI 5 (-mfpxx) and FP ABI 7 (-mfp64 -mno-odd-spreg).
5249 (mips_save_reg, mips_restore_reg): Always represent DFmode frame
5250 slots with two CFI directives even for O32 FP64.
5251 (mips_for_each_saved_gpr_and_fpr): Account for fixed_regs when
5252 saving/restoring callee-saved registers.
5253 (mips_hard_regno_mode_ok_p): Implement O32 FP64A extension.
5254 (mips_secondary_memory_needed): New function.
5255 (mips_option_override): ABI check for TARGET_FLOATXX. Disable
5256 odd-numbered single-precision registers when using TARGET_FLOATXX.
5257 Implement -modd-spreg and defaults.
5258 (mips_conditional_register_usage): Redefine O32 FP64 to match O32 FP32
5259 callee-saved behaviour.
5260 (mips_hard_regno_caller_save_mode): Implement.
5261 (TARGET_GET_RAW_RESULT_MODE): Define target hook.
5262 (TARGET_GET_RAW_ARG_MODE): Define target hook.
5263 (TARGET_DWARF_FRAME_REG_MODE): Define target hook.
5264 * config/mips/mips.h (TARGET_FLOAT32): New macro.
5265 (TARGET_O32_FP64A_ABI): Likewise.
5266 (TARGET_CPU_CPP_BUILTINS): TARGET_FPXX is __mips_fpr==0. Add
5267 _MIPS_SPFPSET builtin define.
5268 (MIPS_FPXX_OPTION_SPEC): New macro.
5269 (OPTION_DEFAULT_SPECS): Pass through --with-fp-32=* to -mfp and
5270 --with-odd-spreg-32=* to -m[no-]odd-spreg.
5271 (ISA_HAS_ODD_SPREG): New macro.
5272 (ISA_HAS_MXHC1): True for anything other than -mfp32.
5273 (ASM_SPEC): Pass through mfpxx, mfp64, -mno-odd-spreg and -modd-spreg.
5274 (MIN_FPRS_PER_FMT): Redefine in terms of TARGET_ODD_SPREG.
5275 (HARD_REGNO_CALLER_SAVE_MODE): Define. Implement O32 FPXX extension
5276 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
5277 (SECONDARY_MEMORY_NEEDED): Likewise.
5278 (FUNCTION_ARG_REGNO_P): Update for O32 FPXX and FP64 extensions.
5279 * config/mips/mips.md (define_attr enabled): Implement O32 FPXX and
5280 FP64A ABI extensions.
5281 (move_doubleword_fpr<mode>): Use ISA_HAS_MXHC1 instead of
5282 TARGET_FLOAT64.
5283 * config/mips/mips.opt (mfpxx): New target option.
5284 (modd-spreg): Likewise.
5285 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Infer FP ABI from arch.
5286 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise and remove
5287 fp64 sysroot.
5288 * config/mips/t-mti-elf: Remove fp64 multilib.
5289 * config/mips/t-mti-linux: Likewise.
5290 * configure.ac: Detect .module support.
5291 * configure: Regenerate.
5292 * doc/invoke.texi: Document -mfpxx, -modd-spreg, -mno-odd-spreg option.
5293 * doc/install.texi (--with-fp-32, --with-odd-spreg-32): Document new
5294 options.
5295
5296 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
5297
5298 PR target/63815
5299 * config/i386/i386.c (ix86_init_large_pic_reg): New. Extracted
5300 from ...
5301 (ix86_init_pic_reg): Here. Use ix86_init_large_pic_reg.
5302 (x86_output_mi_thunk): Set PIC register to %r11. Call
5303 ix86_init_large_pic_reg to initialize PIC register.
5304
5305 2014-11-12 Kai Tietz <ktietz@redhat.com>
5306
5307 * sdbout.c (sdbout_symbol): Eliminate register only
5308 if decl isn't a global variable.
5309
5310 2014-11-12 Alan Lawrence <alan.lawrence@arm.com>
5311
5312 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Display indices.
5313
5314 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add
5315 qualifier_lane_index.
5316 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): Rename to...
5317 (aarch64_types_quadop_lane_qualifiers, TYPES_QUADOP_LANE): ...these.
5318 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): New.
5319
5320 (aarch64_types_getlane_qualifiers): Rename to...
5321 (aarch64_types_binop_imm_qualifiers): ...this.
5322 (TYPES_SHIFTIMM): Follow renaming.
5323 (TYPES_GETLANE): Rename to...
5324 (TYPE_GETREG): ...this.
5325
5326 (aarch64_types_setlane_qualifiers): Rename to...
5327 (aarch64_type_ternop_imm_qualifiers): ...this.
5328 (TYPES_SHIFTINSERT, TYPES_SHIFTACC): Follow renaming.
5329 (TYPES_SETLANE): Follow renaming above, and rename self to...
5330 (TYPE_SETREG): ...this.
5331
5332 (enum builtin_simd_arg): Add SIMD_ARG_LANE_INDEX.
5333 (aarch64_simd_expand_args): Add range check and endianness-flip.
5334
5335 (aarch64_simd_expand_builtin): Add mapping for qualifier_lane_index.
5336
5337 * config/aarch64/aarch64-simd.md
5338 (aarch64_sq<r>dmulh_lane<mode>_internal *2): Rename to...
5339 (aarch64_sq<r>dmulh_lane<mode>): ...this, and remove lane bounds check.
5340 (aarch64_sqdmulh_lane<mode> *2, aarch64_sqrdmulh_lane<mode> *2): Delete.
5341
5342 (aarch64_sq<r>dmulh_laneq<mode>_internal): Rename to...
5343 (aarch64_sq<r>dmulh_lane<mode>): ...this.
5344
5345 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal *2): Rename to...
5346 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): ...this.
5347
5348 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal *2): Rename to...
5349 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): ...this.
5350
5351 (aarch64_sqdmull_lane<mode>_internal *2): Rename to...
5352 (aarch64_sqdmull_lane<mode>): ...this.
5353
5354 (aarch64_sqdmull_laneq<mode>_internal *2): Rename to...
5355 (aarch64_sqdmull_laneq<mode>): ...this.
5356
5357 (aarch64_sqdmulh_laneq<mode>, aarch64_sqrdmulh_laneq<mode>,
5358 (aarch64_sqdmlal_lane<mode>, aarch64_sqdmlal_laneq<mode>,
5359 aarch64_sqdmlsl_lane<mode>, aarch64_sqdmlsl_laneq<mode>,
5360 aarch64_sqdmull_lane<mode>, aarch64_sqdmull_laneq<mode>): Delete.
5361
5362 (aarch64_sqdmlal2_lane<mode>, aarch64_sqdmlal2_laneq<mode>,
5363 aarch64_sqdmlsl2_lane<mode>, aarch64_sqdmlsl2_laneq<mode>,
5364 aarch64_sqdmull2_lane<mode>, aarch64_sqdmull2_laneq<mode>): Remove
5365 bounds check and lane flip.
5366
5367 * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane,
5368 get_dregoi, get_dregci, getdregxi, get_qregoi,get_qregci, get_qregxi,
5369 set_qregoi, set_qregci, set_qregxi): Change qualifiers to GETREG.
5370
5371 (sqdmlal_lane, sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq,
5372 sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq, sqdmlsl2_laneq): Follow
5373 renaming of TERNOP_LANE to QUADOP_LANE.
5374
5375 (sqdmull_lane, sqdmull_laneq, sqdmull2_lane, sqdmull2_laneq,
5376 sqdmulh_lane, sqdmulh_laneq, sqrdmulh_lane, sqrdmulh_laneq): Set
5377 qualifiers to TERNOP_LANE.
5378
5379 2014-11-12 Tobias Burnus <burnus@net-b.de>
5380
5381 * Makefile.in (CLOOGLIBS, CLOOGINC): Remove.
5382 * configure.ac: Ditto.
5383 * graphite-interchange.c: Remove HAVE_CLOOG block.
5384 * config.in: Regenerate.
5385 * configure: Regenerate.
5386
5387 2014-11-12 Jiong Wang <jiong.wang@arm.com>
5388
5389 * config/aarch64/aarch64.h (CALL_USED_REGISTERS): Mark LR as
5390 caller-save.
5391 (EPILOGUE_USES): Guard the check by epilogue_completed.
5392 * config/aarch64/aarch64.c (aarch64_layout_frame): Explictly check for
5393 LR.
5394 (aarch64_can_eliminate): Check LR_REGNUM liveness.
5395
5396 2014-11-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5397
5398 * config/arm/arm.c (*<arith_shift_insn>_shiftsi): Fix typo.
5399
5400 2014-11-12 Marek Polacek <polacek@redhat.com>
5401
5402 * fold-const.c (fold_binary_loc): Don't fold if the result
5403 is undefined.
5404 * match.pd (A + (-B) -> A - B, A - (-B) -> A + B,
5405 -(-A) -> A): Likewise.
5406
5407 2014-11-12 Richard Biener <rguenther@suse.de>
5408
5409 Merge from match-and-simplify branch
5410 2014-11-04 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
5411
5412 * genmatch.c (user_id): Add new member is_oper_list.
5413 (user_id::user_id): Add new default argument.
5414 (parser::parse_operator_list): New function.
5415 (parser::parse_for): Allow operator-list.
5416 (parser::parse_pattern): Call parser::parse_operator_list.
5417 (parser::parse_operation): Reject operator-list.
5418 * match-builtin.pd: Define operator lists POWs, CBRTs and SQRTs.
5419
5420 2014-10-31 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
5421
5422 * genmatch.c (parser::parse_c_expr): Mark user-defined ops as used.
5423
5424 2014-10-30 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
5425
5426 * genmatch.c (parser::parse_op): Check if predicate is used in
5427 result operand.
5428
5429 2014-10-29 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
5430
5431 * genmatch.c (parser::parse_for): Make sure to have a valid
5432 token to report errors at.
5433
5434 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
5435
5436 * genmatch.c (parser): Add new member parsing_match_operand.
5437 (parser::parse_operation): Check for conditional convert in result
5438 operand.
5439 (parser::parse_expr): Check for commutative operator in result operand.
5440 Check for :type in match operand.
5441 (parser::parse_simplify): Set/unset parsing_match_operand.
5442 (parser::parser): Initialize parsing_match_operand.
5443
5444 2014-10-28 Richard Biener <rguenther@suse.de>
5445
5446 * genmatch.c (parser::parse_for): Properly check for already
5447 defined operators.
5448
5449 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
5450
5451 * genmatch.c (error_cb): Adjust for printing warnings.
5452 (warning_at): New function.
5453 (user_id): Add new member used.
5454 (get_operator): Mark user_id as used.
5455 (parse_for): Warn for unused operators.
5456
5457 2014-11-12 Richard Biener <rguenther@suse.de>
5458
5459 * match.pd: Implement simple complex operations cancelling.
5460 * fold-const.c (fold_unary_loc): Remove them here.
5461
5462 2014-11-12 Joseph Myers <joseph@codesourcery.com>
5463
5464 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
5465 Define __NO_MATH_ERRNO__ if -fno-math-errno.
5466 * doc/cpp.texi (__NO_MATH_ERRNO__): Document predefined macro.
5467
5468 2014-11-12 Richard Biener <rguenther@suse.de>
5469
5470 * genmatch.c (::gen_transform): Add capture_info and
5471 expand_compares arguments.
5472 (struct expr): Add is_generic flag.
5473 (lower_cond): New functions lowering [VEC_]COND_EXPR
5474 conditions to a GENERIC and a GIMPLE variant.
5475 (lower): Call lower_cond.
5476 (cmp_operand): Also compare the is_generic flag.
5477 (capture_info::cinfo): Add cond_expr_cond_p flag.
5478 (capture_info::capture_info): Pass down whether the
5479 expression argument is a COND_EXPR condition.
5480 (capture_info::walk_match): Likewise, mark captures
5481 capturing COND_EXPR conditions with cond_expr_cond_p.
5482 (expr::gen_transform): Pass down whether we need to
5483 expand compares from COND_EXPR conditions.
5484 (capture::gen_transform): Expand compares substituted
5485 from COND_EXPR conditions into non-COND_EXPR conditions.
5486 (dt_operand::gen_gimple_expr): Handle explicitely marked
5487 GENERIC expressions as generic.
5488 (dt_simplify::gen): Pass whether we need to expand
5489 conditions to gen_transform. Handle capture results
5490 which are from COND_EXPR conditions.
5491 (main): Pass gimple flag down to lower.
5492
5493 2014-11-12 Jakub Jelinek <jakub@redhat.com>
5494
5495 PR c/59708
5496 * builtin-attrs.def (ATTR_NOTHROW_TYPEGENERIC_LEAF): New attribute.
5497 * builtins.c (fold_builtin_arith_overflow): New function.
5498 (fold_builtin_3): Use it.
5499 * builtins.def (BUILT_IN_ADD_OVERFLOW, BUILT_IN_SUB_OVERFLOW,
5500 BUILT_IN_MUL_OVERFLOW, BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW,
5501 BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW,
5502 BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW,
5503 BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW,
5504 BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADDL_OVERFLOW,
5505 BUILT_IN_UADDLL_OVERFLOW, BUILT_IN_USUB_OVERFLOW,
5506 BUILT_IN_USUBL_OVERFLOW, BUILT_IN_USUBLL_OVERFLOW,
5507 BUILT_IN_UMUL_OVERFLOW, BUILT_IN_UMULL_OVERFLOW,
5508 BUILT_IN_UMULLL_OVERFLOW): New built-in functions.
5509 * builtin-types.def (BT_PTR_UINT, BT_PTR_ULONG, BT_PTR_LONGLONG,
5510 BT_FN_BOOL_INT_INT_INTPTR, BT_FN_BOOL_LONG_LONG_LONGPTR,
5511 BT_FN_BOOL_LONGLONG_LONGLONG_LONGLONGPTR, BT_FN_BOOL_UINT_UINT_UINTPTR,
5512 BT_FN_BOOL_ULONG_ULONG_ULONGPTR,
5513 BT_FN_BOOL_ULONGLONG_ULONGLONG_ULONGLONGPTR, BT_FN_BOOL_VAR): New.
5514 * expr.c (write_complex_part): Remove prototype, no longer static.
5515 * expr.h (write_complex_part): New prototype.
5516 * function.c (aggregate_value_p): For internal functions return 0.
5517 * gimple-fold.c (arith_overflowed_p): New functions.
5518 (gimple_fold_call): Fold {ADD,SUB,MUL}_OVERFLOW internal calls.
5519 * gimple-fold.h (arith_overflowed_p): New prototype.
5520 * tree-ssa-dce.c: Include tree-ssa-propagate.h and gimple-fold.h.
5521 (find_non_realpart_uses, maybe_optimize_arith_overflow): New
5522 functions.
5523 (eliminate_unnecessary_stmts): Transform {ADD,SUB,MUL}_OVERFLOW
5524 into COMPLEX_CST/COMPLEX_EXPR if IMAGPART_EXPR of the result is
5525 never used.
5526 * gimplify.c (gimplify_call_expr): Handle gimplification of
5527 internal calls with lhs.
5528 * internal-fn.c (get_range_pos_neg, get_min_precision,
5529 expand_arith_overflow_result_store): New functions.
5530 (ubsan_expand_si_overflow_addsub_check): Renamed to ...
5531 (expand_addsub_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
5532 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
5533 Handle ADD_OVERFLOW and SUB_OVERFLOW expansion.
5534 (ubsan_expand_si_overflow_neg_check): Renamed to ...
5535 (expand_neg_overflow): ... this. Add LOC, LHS, ARG1, IS_UBSAN
5536 arguments, remove STMT argument. Handle SUB_OVERFLOW with
5537 0 as first argument expansion.
5538 (ubsan_expand_si_overflow_mul_check): Renamed to ...
5539 (expand_mul_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
5540 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
5541 Handle MUL_OVERFLOW expansion.
5542 (expand_UBSAN_CHECK_ADD): Use expand_addsub_overflow, prepare
5543 arguments for it.
5544 (expand_UBSAN_CHECK_SUB): Use expand_addsub_overflow or
5545 expand_neg_overflow, prepare arguments for it.
5546 (expand_UBSAN_CHECK_MUL): Use expand_mul_overflow, prepare arguments
5547 for it.
5548 (expand_arith_overflow, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW,
5549 expand_MUL_OVERFLOW): New functions.
5550 * internal-fn.def (ADD_OVERFLOW, SUB_OVERFLOW, MUL_OVERFLOW): New
5551 internal functions.
5552 * tree-vrp.c (check_for_binary_op_overflow): New function.
5553 (extract_range_basic): Handle {REAL,IMAG}PART_EXPR if the operand
5554 is SSA_NAME set by {ADD,SUB,MUL}_OVERFLOW internal functions.
5555 (simplify_internal_call_using_ranges): Handle {ADD,SUB,MUL}_OVERFLOW
5556 internal functions.
5557 * optabs.def (umulv4_optab): New optab.
5558 * config/i386/i386.md (umulv<mode>4, <u>mulvqi4): New define_expands.
5559 (*umulv<mode>4, *<u>mulvqi4): New define_insns.
5560 * doc/extend.texi (Integer Overflow Builtins): Document
5561 __builtin_*_overflow.
5562
5563 2014-11-12 Richard Biener <rguenther@suse.de>
5564
5565 * genmatch.c (capture_info::capture_info): Add missing
5566 COND_EXPR handling.
5567 (capture_info::walk_match): Fix COND_EXPR handling.
5568 (capture_info::walk_result): Likewise.
5569
5570 2014-11-12 Richard Biener <rguenther@suse.de>
5571
5572 PR middle-end/63821
5573 * match.pd: Add missing conversion to the -(T)-X pattern.
5574
5575 2014-11-12 Richard Biener <rguenther@suse.de>
5576
5577 PR bootstrap/63819
5578 * hash-table.h: Include ggc.h also for generator programs.
5579 * genmatch.c (ggc_internal_cleared_alloc): Properly define
5580 using MEM_STAT_DECL instead of CXX_MEM_STAT_INFO.
5581
5582 2014-11-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
5583
5584 PR tree-optimization/63761
5585 * tree-ssa-math-opts.c (bswap_replace): Construct gsi from cur_stmt
5586 rather than taking it as a parameter. Add some comments to explain the
5587 gsi_move_before in case of load and why canonicalization of bswap into
5588 a rotation is only done for 16bit values.
5589 (pass_optimize_bswap::execute): Adapt for loop via gsi to make gsi
5590 refer to the statement just before cur_stmt. Ignore 16bit bswap that
5591 are already in canonical form. Adapt bswap_replace to removal of its
5592 gsi parameter.
5593
5594 2014-11-12 Richard Sandiford <richard.sandiford@arm.com>
5595
5596 * rtl.h (rtx_function, for_each_rtx, for_each_rtx_in_insn): Delete.
5597 * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1, for_each_rtx):
5598 (for_each_rtx_in_insn): Delete.
5599 (init_rtlanal): Remove initialization of non_rtx_starting_operands.
5600 * df-core.c: Remove reference to for_each_rtx in comment.
5601
5602 2014-11-12 Tejas Belagod <tejas.belagod@arm.com>
5603
5604 * Makefile.in (TEXI_GCC_FILES): Remove arm-acle-intrinsics.texi,
5605 arm-neon-intrinsics.texi, aarch64-acle-intrinsics.texi.
5606 * doc/aarch64-acle-intrinsics.texi: Remove.
5607 * doc/arm-acle-intrinsics.texi: Remove.
5608 * doc/arm-neon-intrinsics.texi: Remove.
5609 * doc/extend.texi: Consolidate sections AArch64 intrinsics,
5610 ARM NEON Intrinsics, ARM ACLE Intrinsics into one ARM C Language
5611 Extension section. Add references to public ACLE specification.
5612
5613 2014-11-11 Patrick Palka <ppalka@gcc.gnu.org>
5614
5615 * tree-vrp.c (register_edge_assert_for_2): Change return type to
5616 void and adjust accordingly.
5617 (register_edge_assert_for_1): Likewise.
5618 (register_edge_assert_for): Likewise.
5619 (find_conditional_asserts): Likewise.
5620 (find_switch_asserts): Likewise.
5621 (find_assert_locations_1): Likewise.
5622 (find_assert_locations): Likewise.
5623 (insert_range_insertions): Inspect the need_assert_for bitmap.
5624
5625 2014-11-11 Andrew Pinski <apinski@cavium.com>
5626
5627 Bug target/61997
5628 * config.gcc (aarch64*-*-*): Set target_gtfiles to include
5629 aarch64-builtins.c.
5630 * config/aarch64/aarch64-builtins.c: Include gt-aarch64-builtins.h
5631 at the end of the file.
5632
5633 2014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
5634 Manuel López-Ibáñez <manu@gcc.gnu.org>
5635
5636 PR driver/36312
5637 * diagnostic-core.h: Add prototype for fatal_error.
5638 * diagnostic.c (fatal_error): New function fatal_error.
5639 * gcc.c (store_arg): Remove have_o_argbuf_index.
5640 (process_command): Check if input and output files are the same.
5641 * toplev.c (init_asm_output): Check if input and output files are
5642 the same.
5643
5644 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
5645
5646 * reorg.c (fill_slots_from_thread): Do not copy frame-related insns.
5647
5648 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
5649
5650 PR target/61535
5651 * config/sparc/sparc.c (function_arg_vector_value): Deal with vectors
5652 smaller than 8 bytes.
5653 (sparc_function_arg_1): Tweak.
5654 (sparc_function_value_1): Tweak.
5655
5656 2014-11-11 David Malcolm <dmalcolm@redhat.com>
5657
5658 * ChangeLog.jit: New.
5659 * Makefile.in (doc_build_sys): New variable, set to "sphinx" if
5660 sphinx is installed, falling back to "texinfo" otherwise.
5661 (FULL_DRIVER_NAME): New variable, adapted from the
5662 install-driver target. New target, a symlink within the builddir,
5663 linked to "xgcc", for use when running the JIT library from the
5664 builddir.
5665 (MOSTLYCLEANFILES): Add FULL_DRIVER_NAME.
5666 (install-driver): Use $(FULL_DRIVER_NAME) rather than spelling it
5667 out.
5668 * configure.ac (doc_build_sys): New variable, set to "sphinx" if
5669 sphinx is installed, falling back to "texinfo" otherwise.
5670 (GCC_DRIVER_NAME): Generate a gcc-driver-name.h file containing
5671 GCC_DRIVER_NAME for the benefit of jit/internal-api.c.
5672 * configure: Regenerate.
5673 * doc/install.texi (--enable-host-shared): Specify that this is
5674 required when building libgccjit.
5675 (Tools/packages necessary for modifying GCC): Add Sphinx.
5676 * timevar.def (TV_JIT_REPLAY): New.
5677 (TV_ASSEMBLE): New.
5678 (TV_LINK): New.
5679 (TV_LOAD): New.
5680
5681 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5682
5683 PR target/63610
5684 * configure: Regenerate.
5685
5686 2014-11-11 James Greenhalgh <james.greenhalgh@arm.com>
5687
5688 * config/aarch64/aarch64-simd.md
5689 (aarch64_simd_bsl<mode>_internal): Remove float cases, canonicalize.
5690 (aarch64_simd_bsl<mode>): Add gen_lowpart expressions where we
5691 are punning between float vectors and integer vectors.
5692
5693 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
5694
5695 * config/alpha/alpha.c (alpha_emit_conditional_branch): Replace
5696 open-coded swap with std::swap to swap values.
5697 (alpha_emit_setcc): Ditto.
5698 (alpha_emit_conditional_move): Ditto.
5699 (alpha_split_tmode_pair): Ditto.
5700
5701 2014-11-11 Evgeny Stupachenko <evstupac@gmail.com>
5702
5703 * tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
5704 permutations on power of 2 cases.
5705
5706 2014-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5707
5708 * config/aarch64/aarch64.h (MACHMODE): Remove 'enum' keyword.
5709 (CUMULATIVE_ARGS): Guard on !defined(USED_FOR_TARGET).
5710
5711 2014-11-11 Richard Biener <rguenther@suse.de>
5712
5713 * tree-core.h (pedantic_lvalues): Remove.
5714 * fold-const.c (pedantic_lvalues): Likewise.
5715 (pedantic_non_lvalue_loc): Remove conditional non_lvalue_loc call.
5716
5717 2014-11-11 Martin Liska <mliska@suse.cz>
5718
5719 PR ipa/63622
5720 PR ipa/63795
5721 * ipa-icf.c (sem_function::merge): Add new target symbol alias
5722 support guard.
5723 (sem_variable::merge): Likewise.
5724 * ipa-icf.h (target_supports_symbol_aliases_p): New function.
5725
5726 2014-11-11 Richard Biener <rguenther@suse.de>
5727
5728 * match.pd: Implement patterns from associate_plusminus
5729 and factor in differences from the fold-const.c implementation.
5730 * fold-const.c (fold_binary_loc): Remove patterns here.
5731 * tree-ssa-forwprop.c (associate_plusminus): Remove.
5732 (pass_forwprop::execute): Don't call it.
5733 * tree.c (tree_nop_conversion_p): New function, factored
5734 from tree_nop_conversion.
5735 * tree.h (tree_nop_conversion_p): Declare.
5736
5737 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
5738
5739 * system.h: Include algorithm and utility.
5740 * rtl.h: Do not include utility here.
5741 * wide-int.h: Ditto.
5742 * tree-vect-data-refs.c (swap): Remove template.
5743 (vect_prune_runtime_alias_test_list): Use std::swap instead of swap.
5744
5745 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5746
5747 PR bootstrap/63699
5748 PR bootstrap/63750
5749 * system.h: Include <string> before "safe-ctype.h"
5750 * wide-int.h (wi::smin, wi::smax, wi::umin, wi::umax): Prefix
5751 calls to min/max with wi namespace.
5752 * ipa-chkp.c: Don't include <string>.
5753
5754 2014-11-11 Terry Guo <terry.guo@arm.com>
5755
5756 * doc/invoke.texi (-masm-syntax-unified): Reword and fix typo.
5757 * config/arm/thumb1.md (*thumb_mulsi3): Use movs to move low
5758 registers.
5759 (*thumb1_movhf): Likewise.
5760
5761 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
5762
5763 * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)
5764 instead of INT64_MAX.
5765
5766 2014-11-11 Tobias Burnus <burnus@net-b.de>
5767
5768 * doc/install.texi (Prerequisites): Remove CLooG.
5769
5770 2014-11-10 Trevor Saunders <tsaunders@mozilla.com>
5771
5772 * ipa-inline.c (edge_badness): Adjust.
5773 (inline_small_functions): Likewise.
5774 * predict.c (propagate_freq): Likewise.
5775 (estimate_bb_frequencies): Likewise.
5776 * sreal.c (sreal::dump): Rename from dump_sreal.
5777 (debug): Adjust.
5778 (copy): Remove function.
5779 (sreal::shift_right): Rename from sreal_sift_right.
5780 (sreal::normalize): Rename from normalize.
5781 (sreal_init): Remove function.
5782 (sreal::to_int): Rename from sreal_to_int.
5783 (sreal_compare): Remove function.
5784 (sreal::operator+): Rename from sreal_add.
5785 (sreal::operator-): Rename from sreal_sub.
5786 (sreal::operator*): Rename from sreal_mul.
5787 (sreal::operator/): Rename from sreal_div.
5788 * sreal.h (class sreal): Adjust.
5789 (inline sreal &operator+=): New operator.
5790 (inline sreal &operator-=): Likewise.
5791 (inline sreal &operator/=): Likewise.
5792 (inline sreal &operator*=): Likewise.
5793 (inline bool operator!=): Likewise.
5794 (inline bool operator>): Likewise.
5795 (inline bool operator<=): Likewise.
5796 (inline bool operator>=): Likewise.
5797
5798 2014-11-11 Bin Cheng <bin.cheng@arm.com>
5799
5800 * sched-deps.c (sched_analyze_1): Check pending list if it is not
5801 less than MAX_PENDING_LIST_LENGTH.
5802 (sched_analyze_2, sched_analyze_insn, deps_analyze_insn): Ditto.
5803
5804 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
5805
5806 * config/i386/i386.c (ix86_decompose_address): Replace open-coded
5807 swap with std::swap to swap values.
5808 (ix86_fixup_binary_operands): Ditto.
5809 (ix86_binary_operator_ok): Ditto.
5810 (ix86_prepare_fp_compare_args): Ditto.
5811 (ix86_expand_branch): Ditto.
5812 (ix86_expand_carry_flag_compare): Ditto.
5813 (ix86_expand_int_movcc): Ditto.
5814 (ix86_prepare_sse_fp_compare_args): Ditto.
5815 (ix86_expand_sse_fp_minmax): Ditto.
5816 (ix86_expand_int_vcond): Ditto.
5817 (ix86_split_long_move): Ditto.
5818 (ix86_expand_sse_comi): Ditto.
5819 (ix86_expand_sse_compare_and_jump): Ditto.
5820 (ix86_expand_sse_compare_mask): Ditto.
5821 * config/i386/i386.md (*add<mode>_1): Ditto.
5822 (addsi_1_zext): Ditto.
5823 (*addhi_1): Ditto.
5824 (*addqi_1): Ditto.
5825 (*add<mode>_2): Ditto.
5826 (*addsi_2_zext): Ditto.
5827 (*add<mode>_3): Ditto.
5828 (*addsi_3_zext): Ditto.
5829 (*add<mode>_5): Ditto.
5830 (absneg splitter): Ditto.
5831
5832 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
5833
5834 Revert:
5835 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
5836
5837 PR target/63620
5838 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
5839 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
5840 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
5841 be reloaded through memory.
5842 (*pushxf): Ditto.
5843 (*pushdf): Ditto.
5844
5845 2014-11-11 Jakub Jelinek <jakub@redhat.com>
5846 Martin Liska <mliska@suse.cz>
5847
5848 * ipa-icf-gimple.c (func_checker::compare_bb): Fix comment typo.
5849 (func_checker::compare_gimple_call): Compare gimple_call_fn,
5850 gimple_call_chain, gimple_call_fntype and call flags.
5851
5852 2014-11-10 Vladimir Makarov <vmakarov@redhat.com>
5853
5854 PR rtl-optimization/63620
5855 PR rtl-optimization/63799
5856 * lra-lives.c (process_bb_lives): Do not delete EH_REGION, trapped
5857 and setting PIC pseudo insns.
5858 (lra_create_live_ranges): Fix the typo.
5859
5860 2014-11-10 Patrick Palka <ppalka@gcc.gnu.org>
5861
5862 PR middle-end/63748
5863 * tree-ssa-propagate.c (may_propagate_copy): Allow propagating
5864 SSA copies whose source and destination names both occur in
5865 abnormal PHIs.
5866
5867 2014-11-10 Roman Gareev <gareevroman@gmail.com>
5868
5869 * Makefile.in: Remove the compilation of graphite-clast-to-gimple.o.
5870 * common.opt: Remove using of fgraphite-code-generator flag.
5871 * flag-types.h: Likewise.
5872 * graphite.c: Remove using of CLooG.
5873 * graphite-blocking.c: Likewise.
5874 * graphite-dependences.c: Likewise.
5875 * graphite-poly.c: Likewise.
5876 * graphite-poly.h: Likewise.
5877 * graphite-scop-detection.c: Likewise.
5878 * graphite-sese-to-poly.c: Likewise.
5879 * graphite-clast-to-gimple.c: Removed.
5880 * graphite-clast-to-gimple.h: Likewise.
5881 * graphite-htab.h: Likewise.
5882
5883 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
5884
5885 * doc/invoke.texi ([-Wshift-count-negative, -Wshift-count-overflow]):
5886 Add.
5887
5888 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
5889
5890 * config/frv/frv.c (frv_io_handle_use_1): Delete.
5891 (frv_io_handle_use): Use find_all_hard_regs.
5892
5893 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
5894
5895 * config/frv/frv.c (frv_registers_conflict_p_1): Take an rtx rather
5896 than an rtx *. Take the regstate_t directly rather than via a void *.
5897 Return a bool rather than an int. Iterate over all subrtxes here.
5898 (frv_registers_conflict_p): Update accordingly.
5899
5900 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
5901
5902 * config/frv/frv.c: Include rtl-iter.h.
5903 (frv_acc_group_1): Delete.
5904 (frv_acc_group): Use FOR_EACH_SUBRTX.
5905
5906 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
5907
5908 * config/frv/frv.c: Move include of rtl.h after hard-reg-set.h.
5909 (frv_clear_registers_used): Delete.
5910 (frv_ifcvt_modify_tests): Use find_all_hard_regs.
5911
5912 2014-11-10 Jan Hubicka <hubicka@ucw.cz>
5913
5914 PR bootstrap/63573
5915 * calls.c (initialize_argument_information): When emitting thunk call
5916 use original memory placement of the argument.
5917
5918 2014-11-10 Renlin Li <renlin.li@arm.com>
5919
5920 PR middle-end/61529
5921 * tree-ssa-threadupdate.c (compute_path_counts): Bound path_in_freq.
5922
5923 2014-11-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
5924
5925 * expmed.c (expand_shift_1): Expand 8 bit rotate of 16 bit value to
5926 bswaphi if available.
5927
5928 2014-11-10 Bernd Schmidt <bernds@codesourcery.com>
5929
5930 * config/nvptx/nvptx.c: New file.
5931 * config/nvptx/nvptx.h: New file.
5932 * config/nvptx/nvptx-protos.h: New file.
5933 * config/nvptx/nvptx.md: New file.
5934 * config/nvptx/t-nvptx: New file.
5935 * config/nvptx/nvptx.opt: New file.
5936 * common/config/nvptx/nvptx-common.c: New file.
5937 * config.gcc: Handle nvptx-*-*.
5938
5939 2014-11-10 Richard Biener <rguenther@suse.de>
5940
5941 * tree-ssa-operands.c (finalize_ssa_uses): Properly put
5942 released operands on the free list.
5943
5944 2014-11-10 Richard Biener <rguenther@suse.de>
5945
5946 * match.pd: Implement pattern from simplify_mult.
5947 * tree-ssa-forwprop.c (simplify_mult): Remove.
5948 (pass_forwprop::execute): Do not call simplify_mult.
5949
5950 2014-11-10 Richard Biener <rguenther@suse.de>
5951
5952 PR tree-optimization/63800
5953 * tree-ssa-pre.c (eliminate_push_avail): Push in a way so
5954 we can restore the previous availability in after_dom_children.
5955 (eliminate_dom_walker::after_dom_children): Restore
5956 previous availability.
5957
5958 2014-11-10 Richard Biener <rguenther@suse.de>
5959
5960 PR middle-end/63798
5961 * expr.c (expand_expr_real_2): When expanding FMA_EXPRs
5962 properly treat the embedded multiplication as commutative
5963 when looking for feeding negates.
5964
5965 2014-11-10 Joern Rennecke <joern.rennecke@embecosm.com>
5966
5967 * config/avr/avr.h (CPLUSPLUS_CPP_SPEC): Define.
5968
5969 2014-11-10 Martin Liska <mliska@suse.cz>
5970
5971 * gcc.dg/tree-ssa/ldist-19.c: ICF is disabled
5972 for the test because of default char signedness
5973 on powerpc64 target.
5974
5975 2014-11-10 Richard Biener <rguenther@suse.de>
5976
5977 * match.pd: Implement pattern from simplify_conversion_from_bitmask.
5978 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): Remove.
5979 (pass_forwprop::execute): Do not call simplify_conversion_from_bitmask.
5980
5981 2014-11-10 Richard Biener <rguenther@suse.de>
5982
5983 * match.pd: Move rest of the conversion combining patterns
5984 from tree-ssa-forwprop.c.
5985 * tree-ssa-forwprop.c (combine_conversions): Remove.
5986 (pass_forwprop::execute): Do not call it.
5987
5988 2014-11-10 Eric Botcazou <ebotcazou@adacore.com>
5989
5990 * gimple-low.c (lower_function_body): Clear the location of the first
5991 inserted representative return if it also fills in for the fallthru.
5992
5993 2014-11-10 Yuri Rumyantsev <ysrumyan@gmail.com>
5994
5995 * tree-if-conv.c (add_to_predicate_list): Check unconditionally
5996 that bb is always executed to early exit. Use predicate of
5997 cd-equivalent block for join blocks if it exists.
5998 (if_convertible_loop_p_1): Recompute POST_DOMINATOR tree.
5999 (tree_if_conversion): Free post-dominance information.
6000
6001 2014-11-09 Jason Merrill <jason@redhat.com>
6002
6003 * config/i386/avx512vldqintrin.h (_mm256_broadcast_f32x2): __mmask8.
6004 * config/i386/avx512vlintrin.h (_mm256_mask_cvtepi32_storeu_epi16)
6005 (_mm_mask_cvtusepi32_storeu_epi16)
6006 (_mm_mask_cvtsepi64_storeu_epi32): Return void.
6007
6008 2014-11-09 Joern Rennecke <joern.rennecke@embecosm.com>
6009
6010 * config/avr/predicates.md (low_io_address_operand): Fix typo.
6011
6012 2014-11-09 Vladimir Makarov <vmakarov@redhat.com>
6013
6014 PR rtl-optimization/63620
6015 * lra-constraints.c (substitute_pseudo): Add prefix lra_ to the
6016 name. Move to lra.c. Make it external.
6017 (substitute_pseudo_within_insn): Ditto.
6018 (inherit_reload_reg, split_reg, remove_inheritance_pseudos): Use
6019 the new names.
6020 (undo_optional_reloads): Ditto.
6021 * lra-int.h (lra_dump_bitmap_with_title, lra_substitute_pseudo):
6022 New prototypes.
6023 (lra_substitute_pseudo_within_insn): Ditto.
6024 * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): New.
6025 (mark_regno_live): Add parameter. Update bb_gen_pseudos.
6026 (mark_regno_dead): Add parameter. Update bb_gen_pseudos and
6027 bb_killed_pseudos.
6028 (struct bb_data, bb_data_t, bb_data): New.
6029 (get_bb_data, get_bb_data_by_index): Ditto.
6030 (all_hard_regs_bitmap): New.
6031 (live_trans_fun, live_con_fun_0, live_con_fun_n, all_blocks): New.
6032 (initiate_live_solver, finish_live_solver): New.
6033 (process_bb_lives): Change return type. Add code updating local
6034 live data and removing dead insns. Pass new argument to
6035 mark_regno_live and mark_regno_dead. Check changing bb pseudo
6036 life info. Return the result.
6037 (lra_create_live_ranges): Add code to do global pseudo live
6038 analysis.
6039 (lra_live_ranges_init): Call initiate_live_solver.
6040 (lra_live_ranges_finish): Call finish_live_solver.
6041 * lra.c (lra_dump_bitmap_with_title): New.
6042 (lra_substitute_pseudo, lra_substitute_pseudo_within_insn): Move
6043 from lra-constraints.c.
6044
6045 2014-11-09 Richard Biener <rguenther@suse.de>
6046
6047 * match.pd: Add patterns convering two conversions in a row
6048 from fold-const.c.
6049 * fold-const.c (fold_unary_loc): Remove them here.
6050 * tree-ssa-forwprop.c (combine_conversions): Likewise.
6051 * genmatch.c (dt_node::gen_kids): Check whether we may
6052 follow SSA use-def chains.
6053
6054 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
6055
6056 * config/aarch64/aarch64.c: Include rtl-iter.h.
6057 (aarch64_tls_operand_p_1): Delete.
6058 (aarch64_tls_operand_p): Use FOR_EACH_SUBRTX.
6059
6060 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
6061
6062 * config/arm/arm.c (arm_note_pic_base): Delete.
6063 (arm_cannot_copy_insn_p): Use FOR_EACH_SUBRTX.
6064
6065 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
6066
6067 * config/arm/arm.c: Include rtl-iter.h.
6068 (arm_tls_referenced_p_1): Delete.
6069 (arm_tls_referenced_p): Use FOR_EACH_SUBRTX.
6070
6071 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
6072
6073 * config/arm/aarch-common.c: Include rtl-iter.h.
6074 (search_term, arm_find_sub_rtx_with_search_term): Delete.
6075 (arm_find_sub_rtx_with_code): Use FOR_EACH_SUBRTX_VAR.
6076 (arm_get_set_operands): Pass the insn pattern rather than the
6077 insn itself.
6078 (arm_no_early_store_addr_dep): Likewise.
6079
6080 2014-11-08 Eric Botcazou <ebotcazou@adacore.com>
6081
6082 * config/arm/arm.c (arm_set_return_address): Mark the store as frame
6083 related, if any.
6084 (thumb_set_return_address): Likewise.
6085
6086 2014-11-07 Jeff Law <law@redhat.com>
6087
6088 PR tree-optimization/61515
6089 * tree-ssa-threadedge.c (invalidate_equivalences): Walk the unwinding
6090 stack rather than looking at every SSA_NAME's value.
6091
6092 2014-11-07 Richard Biener <rguenther@suse.de>
6093
6094 PR tree-optimization/63605
6095 * fold-const.c (fold_binary_loc): Properly use element_precision
6096 for types that may not be scalar.
6097
6098 2014-11-07 Evgeny Stupachenko <evstupac@gmail.com>
6099
6100 PR target/63534
6101 * config/i386/i386.md (builtin_setjmp_receiver): Use
6102 pic_offset_table_rtx for PIC register.
6103 (nonlocal_goto_receiver): Delete.
6104
6105 2014-11-07 Daniel Hellstrom <daniel@gaisler.com>
6106
6107 * config.gcc (sparc-*-rtems*): Clean away unused t-elf.
6108 * config/sparc/t-rtems: Add leon3v7 and muser-mode multilibs.
6109
6110 2014-11-07 Martin Liska <mliska@suse.cz>
6111
6112 PR ipa/63580
6113 * cgraphunit.c (cgraph_node::create_wrapper):
6114 TREE_ADDRESSABLE is set to false for a newly created thunk.
6115
6116 2014-11-07 Martin Liska <mliska@suse.cz>
6117
6118 PR ipa/63747
6119 * ipa-icf-gimple.c (func_checker::compare_gimple_switch):
6120 Missing checking for CASE_LOW and CASE_HIGH added.
6121
6122 2014-11-07 Martin Liska <mliska@suse.cz>
6123
6124 PR ipa/63595
6125 * cgraphunit.c (cgraph_node::expand_thunk): DECL_BY_REFERENCE
6126 is correctly handled for thunks created by IPA ICF.
6127
6128 2014-11-07 Jiong Wang <jiong.wang@arm.com>
6129 2014-11-07 Richard Biener <rguenther@suse.de>
6130
6131 PR tree-optimization/63676
6132 * gimple-fold.c (fold_gimple_assign): Do not fold node when
6133 TREE_CLOBBER_P be true.
6134
6135 2014-11-07 Richard Biener <rguenther@suse.de>
6136
6137 PR middle-end/63770
6138 * match.pd: Guard conflicting GENERIC pattern properly.
6139
6140 2014-11-07 Richard Biener <rguenther@suse.de>
6141
6142 * match.pd: Add patterns for POINTER_PLUS_EXPR association
6143 and special patterns from tree-ssa-forwprop.c
6144 * fold-const.c (fold_binary_loc): Remove them here.
6145 * tree-ssa-forwprop.c (to_purge): New global bitmap.
6146 (fwprop_set_lattice_val): New function.
6147 (fwprop_invalidate_lattice): Likewise.
6148 (remove_prop_source_from_use): Instead of purging dead EH
6149 edges record blocks to do that in to_purge.
6150 (tidy_after_forward_propagate_addr): Likewise.
6151 (forward_propagate_addr_expr): Invalidate the lattice for
6152 SSA names we release.
6153 (simplify_conversion_from_bitmask): Likewise.
6154 (simplify_builtin_call): Likewise.
6155 (associate_pointerplus_align): Remove.
6156 (associate_pointerplus_diff): Likewise.
6157 (associate_pointerplus): Likewise.
6158 (fold_all_stmts): Merge with ...
6159 (pass_forwprop::execute): ... the original loop over all
6160 basic-blocks. Delay purging dead EH edges and invalidate
6161 the lattice for SSA names we release.
6162
6163 2014-11-07 Terry Guo <terry.guo@arm.com>
6164
6165 * config/arm/arm.opt (masm-syntax-unified): New option.
6166 * doc/invoke.texi (-masm-syntax-unified): Document new option.
6167 * config/arm/arm.h (TARGET_UNIFIED_ASM): Also include thumb1.
6168 (ASM_APP_ON): Redefined.
6169 * config/arm/arm.c (arm_option_override): Thumb2 inline assembly
6170 code always use UAL syntax.
6171 (arm_output_mi_thunk): Use UAL syntax for Thumb1 target.
6172 * config/arm/thumb1.md: Likewise.
6173
6174 2014-11-06 John David Anglin <danglin@gcc.gnu.org>
6175
6176 * config/pa/pa.md (trap): New insn. Add "trap" to attribute type.
6177 Don't allow trap insn in in_branch_delay, in_nullified_branch_delay
6178 or in_call_delay.
6179
6180 2014-11-06 Steve Ellcey <sellcey@imgtec.com>
6181
6182 * config.gcc (mips*-mti-linux*): Remove gnu_ld and gas assignments.
6183 Set default_mips_arch and default_mips_abi instead of tm_defines.
6184 (mips*-*-linux*): Set default_mips_arch and default_mips_abi instead
6185 of tm_defines.
6186 (mips*-*-*): Check with_arch and with_abi. Set tm_defines.
6187 * config/mips/mips.h (STANDARD_STARTFILE_PREFIX_1): Set default
6188 based on MIPS_ABI_DEFAULT.
6189 (STANDARD_STARTFILE_PREFIX_2): Ditto.
6190
6191 2014-11-06 Joseph Myers <joseph@codesourcery.com>
6192
6193 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to corner
6194 cases of extended identifiers.
6195
6196 2014-11-06 Eric Botcazou <ebotcazou@adacore.com>
6197
6198 * tree-cfgcleanup.c (fixup_noreturn_call): Do not perform DCE here.
6199
6200 2014-11-06 DJ Delorie <dj@redhat.com>
6201
6202 * config/m32c/cond.md (movqicc_<code>_<mode>): Remove mode of
6203 conditional.
6204 (movhicc_<code>_<mode>): Likewise.
6205 * config/m32c/m32c.c (encode_pattern_1): Specialise PSImode
6206 subregs.
6207 (m32c_eh_return_data_regno): Change to using memregs to avoid
6208 tying up all the compute regs.
6209 (m32c_legitimate_address_p) Subregs are not valid addresses.
6210
6211 2014-11-06 Bernd Schmidt <bernds@codesourcery.com>
6212
6213 * function.c (thread_prologue_and_epilogue_insns): No longer static.
6214 * function.h (thread_prologue_and_epilogue_insns): Declare.
6215
6216 * target.def (assemble_undefined_decl): New hooks.
6217 * hooks.c (hook_void_FILEptr_constcharptr_const_tree): New function.
6218 * hooks.h (hook_void_FILEptr_constcharptr_const_tree): Declare.
6219 * doc/tm.texi.in (TARGET_ASM_ASSEMBLE_UNDEFINED_DECL): Add.
6220 * doc/tm.texi: Regenerate.
6221 * output.h (assemble_undefined_decl): Declare.
6222 (get_fnname_from_decl): Declare.
6223 * varasm.c (assemble_undefined_decl): New function.
6224 (get_fnname_from_decl): New function.
6225 * final.c (rest_of_handle_final): Use it.
6226 * varpool.c (varpool_output_variables): Call assemble_undefined_decl
6227 for nodes without a definition.
6228
6229 * target.def (call_args, end_call_args): New hooks.
6230 * hooks.c (hook_void_rtx_tree): New empty function.
6231 * hooks.h (hook_void_rtx_tree): Declare.
6232 * doc/tm.texi.in (TARGET_CALL_ARGS, TARGET_END_CALL_ARGS): Add.
6233 * doc/tm.texi: Regenerate.
6234 * calls.c (expand_call): Slightly rearrange the code. Use the two new
6235 hooks.
6236 (expand_library_call_value_1): Use the two new hooks.
6237
6238 * expr.c (use_reg_mode): Just return for pseudo registers.
6239
6240 * combine.c (try_combine): Don't allow a call as one of the source
6241 insns.
6242
6243 * target.def (decl_end): New hook.
6244 * varasm.c (assemble_variable_contents, assemble_constant_contents):
6245 Use it.
6246 * doc/tm.texi.in (TARGET_ASM_DECL_END): Add.
6247 * doc/tm.texi: Regenerate.
6248
6249 2014-11-06 Renlin Li <renlin.li@arm.com>
6250
6251 * config/aarch64/aarch64.c (aarch64_architecture_version): New.
6252 (processor): New architecture_version field.
6253 (aarch64_override_options): Initialize aarch64_architecture_version.
6254 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_ARCH,
6255 __ARM_ARCH_PROFILE, aarch64_arch_name macro.
6256
6257 2014-11-06 James Greenhalgh <james.greenhalgh@arm.com>
6258
6259 * params.def (sra-max-scalarization-size-Ospeed): New.
6260 (sra-max-scalarization-size-Osize): Likewise.
6261 * doc/invoke.texi (sra-max-scalarization-size-Ospeed): Document.
6262 (sra-max-scalarization-size-Osize): Likewise.
6263 * toplev.c (process_options): Set default values for new
6264 parameters.
6265 * tree-sra.c (analyze_all_variable_accesses): Use new parameters.
6266 * targhooks.c (get_move_ratio): Remove static designator.
6267 * target.h (get_move_ratio): Declare.
6268
6269 2014-11-06 Marek Polacek <polacek@redhat.com>
6270
6271 * sanopt.c (sanopt_optimize_walker): Limit removal of the checks.
6272 Remove vector limit.
6273
6274 2014-11-06 Richard Biener <rguenther@suse.de>
6275
6276 * match.pd: Implement bitwise binary and unary simplifications
6277 from tree-ssa-forwprop.c.
6278 * fold-const.c (fold_unary_loc): Remove them here.
6279 (fold_binary_loc): Likewise.
6280 * tree-ssa-forwprop.c (simplify_not_neg_expr): Remove.
6281 (truth_valued_ssa_name): Likewise.
6282 (lookup_logical_inverted_value): Likewise.
6283 (simplify_bitwise_binary_1): Likewise.
6284 (hoist_conversion_for_bitop_p): Likewise.
6285 (simplify_bitwise_binary_boolean): Likewise.
6286 (simplify_bitwise_binary): Likewise.
6287 (pass_forwprop::execute): Remove calls to simplify_not_neg_expr
6288 and simplify_bitwise_binary.
6289 * genmatch.c (dt_node::append_true_op): Use safe_as_a for parent.
6290 (decision_tree::insert): Also insert non-expressions.
6291
6292 2014-11-06 Hale Wang <hale.wang@arm.com>
6293
6294 * config/arm/arm-cores.def: Add support for
6295 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
6296 cortex-m1.small-multiply.
6297 * config/arm/arm-tables.opt: Regenerate.
6298 * config/arm/arm-tune.md: Regenerate.
6299 * config/arm/arm.c: Update the rtx-costs for MUL.
6300 * config/arm/bpabi.h: Handle
6301 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
6302 cortex-m1.small-multiply.
6303 * doc/invoke.texi: Document
6304 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
6305 cortex-m1.small-multiply.
6306
6307 2014-11-06 Hale Wang <hale.wang@arm.com>
6308
6309 * config/arm/arm.c: Add cortex-m7 tune.
6310 * config/arm/arm-cores.def: Use cortex-m7 tune.
6311
6312 2014-11-05 Uros Bizjak <ubizjak@gmail.com>
6313
6314 PR target/63538
6315 * config/i386/i386.c (in_large_data_p): Reject automatic variables.
6316 (ix86_encode_section_info): Do not check for non-automatic varibles
6317 when setting SYMBOL_FLAG_FAR_ADDR flag.
6318 (x86_64_elf_select_section): Do not check ix86_cmodel here.
6319 (x86_64_elf_unique_section): Ditto.
6320 (x86_elf_aligned_common): Emit tab before .largecomm.
6321
6322 2014-11-05 Joseph Myers <joseph@codesourcery.com>
6323
6324 PR preprocessor/9449
6325 * doc/cpp.texi (Character sets, Tokenization)
6326 (Implementation-defined behavior): Don't refer to UCNs in
6327 identifiers requiring -fextended-identifiers.
6328 * doc/cppopts.texi (-fextended-identifiers): Document as enabled
6329 by default for C99 and later and C++.
6330 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to extended
6331 identifiers needing -fextended-identifiers.
6332
6333 2014-11-05 Ilya Tocar <ilya.tocar@intel.com>
6334
6335 * config/i386/i386.c (expand_vec_perm_pshufb): Try vpermq/vpermd
6336 for 512-bit wide modes.
6337 (expand_vec_perm_1): Use correct versions of patterns.
6338 * config/i386/sse.md (avx512f_vec_dup<mode>_1): New.
6339 (vashr<mode>3<mask_name>): Split V8HImode and V16QImode.
6340
6341 2014-11-05 Ilya Enkovich <ilya.enkovich@intel.com>
6342
6343 * ipa-chkp.c: New.
6344 * ipa-chkp.h: New.
6345 * tree-chkp.c: New.
6346 * tree-chkp.h: New.
6347 * tree-chkp-opt.c: New.
6348 * rtl-chkp.c: New.
6349 * rtl-chkp.h: New.
6350 * Makefile.in (OBJS): Add ipa-chkp.o, rtl-chkp.o, tree-chkp.o
6351 tree-chkp-opt.o.
6352 (GTFILES): Add tree-chkp.c.
6353 * mode-classes.def (MODE_POINTER_BOUNDS): New.
6354 * tree.def (POINTER_BOUNDS_TYPE): New.
6355 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
6356 (POINTER_BOUNDS_MODE): New.
6357 (make_pointer_bounds_mode): New.
6358 * machmode.h (POINTER_BOUNDS_MODE_P): New.
6359 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
6360 (layout_type): Support POINTER_BOUNDS_TYPE.
6361 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
6362 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
6363 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
6364 (type_contains_placeholder_1): Likewise.
6365 (build_common_tree_nodes): Initialize
6366 pointer_bounds_type_node.
6367 * tree.h (POINTER_BOUNDS_TYPE_P): New.
6368 (pointer_bounds_type_node): New.
6369 (POINTER_BOUNDS_P): New.
6370 (BOUNDED_TYPE_P): New.
6371 (BOUNDED_P): New.
6372 (CALL_WITH_BOUNDS_P): New.
6373 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
6374 (gimple_call_with_bounds_p): New.
6375 (gimple_call_set_with_bounds): New.
6376 (gimple_return_retbnd): New.
6377 (gimple_return_set_retbnd): New
6378 * gimple.c (gimple_build_return): Increase number of ops
6379 for return statement.
6380 (gimple_build_call_from_tree): Propagate CALL_WITH_BOUNDS_P
6381 flag.
6382 * gimple-pretty-print.c (dump_gimple_return): Print second op.
6383 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
6384 * gimplify.c (gimplify_init_constructor): Avoid infinite
6385 loop during gimplification of bounds initializer.
6386 * calls.c: Include tree-chkp.h, rtl-chkp.h, bitmap.h.
6387 (special_function_p): Use original decl name when analyzing
6388 instrumentation clone.
6389 (arg_data): Add fields special_slot, pointer_arg and
6390 pointer_offset.
6391 (store_bounds): New.
6392 (emit_call_1): Propagate instrumentation flag for CALL.
6393 (initialize_argument_information): Compute pointer_arg,
6394 pointer_offset and special_slot for pointer bounds arguments.
6395 (finalize_must_preallocate): Preallocate when storing bounds
6396 in bounds table.
6397 (compute_argument_addresses): Skip pointer bounds.
6398 (expand_call): Store bounds into tables separately. Return
6399 result joined with resulting bounds.
6400 * cfgexpand.c: Include tree-chkp.h, rtl-chkp.h.
6401 (expand_call_stmt): Propagate bounds flag for CALL_EXPR.
6402 (expand_return): Add returned bounds arg. Handle returned bounds.
6403 (expand_gimple_stmt_1): Adjust to new expand_return signature.
6404 (gimple_expand_cfg): Reset rtx bounds map.
6405 * expr.c: Include tree-chkp.h, rtl-chkp.h.
6406 (expand_assignment): Handle returned bounds.
6407 (store_expr_with_bounds): New. Replaces store_expr with new bounds
6408 target argument. Handle bounds returned by calls.
6409 (store_expr): Now wraps store_expr_with_bounds.
6410 * expr.h (store_expr_with_bounds): New.
6411 * function.c: Include tree-chkp.h, rtl-chkp.h.
6412 (bounds_parm_data): New.
6413 (use_register_for_decl): Do not registerize decls used for bounds
6414 stores and loads.
6415 (assign_parms_augmented_arg_list): Add bounds of the result
6416 structure pointer as the second argument.
6417 (assign_parm_find_entry_rtl): Mark bounds are never passed on
6418 the stack.
6419 (assign_parm_is_stack_parm): Likewise.
6420 (assign_parm_load_bounds): New.
6421 (assign_bounds): New.
6422 (assign_parms): Load bounds and determine a location for
6423 returned bounds.
6424 (diddle_return_value_1): New.
6425 (diddle_return_value): Handle returned bounds.
6426 * function.h (rtl_data): Add field for returned bounds.
6427 * varasm.c: Include tree-chkp.h.
6428 (output_constant): Support POINTER_BOUNDS_TYPE.
6429 (output_constant_pool_2): Support MODE_POINTER_BOUNDS.
6430 (ultimate_transparent_alias_target): Move up.
6431 (make_decl_rtl): For instrumented function use
6432 name of the original decl.
6433 (assemble_start_function): Mark function as global
6434 in case it is instrumentation clone of the global
6435 function.
6436 (do_assemble_alias): Follow transparent alias chain
6437 for identifier. Check if original alias is public.
6438 (maybe_assemble_visibility): Use visibility of the
6439 original function for instrumented version.
6440 (default_unique_section): Likewise.
6441 * emit-rtl.c (immed_double_const): Support MODE_POINTER_BOUNDS.
6442 (init_emit_once): Build pointer bounds zero constants.
6443 * explow.c (trunc_int_for_mode): Support MODE_POINTER_BOUNDS.
6444 * target.def (builtin_chkp_function): New.
6445 (chkp_bound_type): New.
6446 (chkp_bound_mode): New.
6447 (chkp_make_bounds_constant): New.
6448 (chkp_initialize_bounds): New.
6449 (load_bounds_for_arg): New.
6450 (store_bounds_for_arg): New.
6451 (load_returned_bounds): New.
6452 (store_returned_bounds): New.
6453 (chkp_function_value_bounds): New.
6454 (setup_incoming_vararg_bounds): New.
6455 (function_arg): Update hook description with new possible return
6456 value CONST_INT.
6457 * targhooks.h (default_load_bounds_for_arg): New.
6458 (default_store_bounds_for_arg): New.
6459 (default_load_returned_bounds): New.
6460 (default_store_returned_bounds): New.
6461 (default_chkp_bound_type): New.
6462 (default_chkp_bound_mode): New.
6463 (default_builtin_chkp_function): New.
6464 (default_chkp_function_value_bounds): New.
6465 (default_chkp_make_bounds_constant): New.
6466 (default_chkp_initialize_bounds): New.
6467 (default_setup_incoming_vararg_bounds): New.
6468 * targhooks.c (default_load_bounds_for_arg): New.
6469 (default_store_bounds_for_arg): New.
6470 (default_load_returned_bounds): New.
6471 (default_store_returned_bounds): New.
6472 (default_chkp_bound_type): New.
6473 (default_chkp_bound_mode); New.
6474 (default_builtin_chkp_function): New.
6475 (default_chkp_function_value_bounds): New.
6476 (default_chkp_make_bounds_constant): New.
6477 (default_chkp_initialize_bounds): New.
6478 (default_setup_incoming_vararg_bounds): New.
6479 * builtin-types.def (BT_BND): New.
6480 (BT_FN_PTR_CONST_PTR): New.
6481 (BT_FN_CONST_PTR_CONST_PTR): New.
6482 (BT_FN_BND_CONST_PTR): New.
6483 (BT_FN_CONST_PTR_BND): New.
6484 (BT_FN_PTR_CONST_PTR_SIZE): New.
6485 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
6486 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
6487 (BT_FN_VOID_CONST_PTR_SIZE): New.
6488 (BT_FN_VOID_PTR_BND): New.
6489 (BT_FN_CONST_PTR_CONST_PTR_CONST_PTR): New.
6490 (BT_FN_BND_CONST_PTR_SIZE): New.
6491 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
6492 (BT_FN_VOID_CONST_PTR_BND_CONST_PTR): New.
6493 * chkp-builtins.def: New.
6494 * builtins.def: include chkp-builtins.def.
6495 (DEF_CHKP_BUILTIN): New.
6496 * builtins.c: Include tree-chkp.h and rtl-chkp.h.
6497 (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
6498 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
6499 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
6500 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
6501 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
6502 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
6503 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
6504 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
6505 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_NARROW,
6506 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
6507 (std_expand_builtin_va_start): Init bounds for va_list.
6508 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add
6509 __CHKP__ macro when Pointer Bounds Checker is on.
6510 * params.def (PARAM_CHKP_MAX_CTOR_SIZE): New.
6511 * passes.def (pass_ipa_chkp_versioning): New.
6512 (pass_early_local_passes): Renamed to pass_build_ssa_passes.
6513 (pass_fixup_cfg): Moved to pass_chkp_instrumentation_passes.
6514 (pass_chkp_instrumentation_passes): New.
6515 (pass_ipa_chkp_produce_thunks): New.
6516 (pass_local_optimization_passes): New.
6517 (pass_chkp_opt): New.
6518 * tree-pass.h (make_pass_ipa_chkp_versioning): New.
6519 (make_pass_ipa_chkp_produce_thunks): New.
6520 (make_pass_chkp): New.
6521 (make_pass_chkp_opt): New.
6522 (make_pass_early_local_passes): Renamed to ...
6523 (make_pass_build_ssa_passes): This.
6524 (make_pass_chkp_instrumentation_passes): New.
6525 (make_pass_local_optimization_passes): New.
6526 * passes.c (pass_manager::execute_early_local_passes): Execute
6527 early passes in three steps.
6528 (execute_all_early_local_passes): Renamed to ...
6529 (execute_build_ssa_passes): This.
6530 (pass_data_early_local_passes): Renamed to ...
6531 (pass_data_build_ssa_passes): This.
6532 (pass_early_local_passes): Renamed to ...
6533 (pass_build_ssa_passes): This.
6534 (pass_data_chkp_instrumentation_passes): New.
6535 (pass_chkp_instrumentation_passes): New.
6536 (pass_data_local_optimization_passes): New.
6537 (pass_local_optimization_passes): New.
6538 (make_pass_early_local_passes): Renamed to ...
6539 (make_pass_build_ssa_passes): This.
6540 (make_pass_chkp_instrumentation_passes): New.
6541 (make_pass_local_optimization_passes): New.
6542 * c-family/c.opt (fcheck-pointer-bounds): New.
6543 (fchkp-check-incomplete-type): New.
6544 (fchkp-zero-input-bounds-for-main): New.
6545 (fchkp-first-field-has-own-bounds): New.
6546 (fchkp-narrow-bounds): New.
6547 (fchkp-narrow-to-innermost-array): New.
6548 (fchkp-optimize): New.
6549 (fchkp-use-fast-string-functions): New.
6550 (fchkp-use-nochk-string-functions): New.
6551 (fchkp-use-static-bounds): New.
6552 (fchkp-use-static-const-bounds): New.
6553 (fchkp-treat-zero-dynamic-size-as-infinite): New.
6554 (fchkp-check-read): New.
6555 (fchkp-check-write): New.
6556 (fchkp-store-bounds): New.
6557 (fchkp-instrument-calls): New.
6558 (fchkp-instrument-marked-only): New.
6559 (Wchkp): New.
6560 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
6561 (handle_bnd_legacy): New.
6562 (handle_bnd_instrument): New.
6563 (c_common_attribute_table): Add bnd_variable_size, bnd_legacy
6564 and bnd_instrument. Fix documentation.
6565 (c_common_format_attribute_table): Likewsie.
6566 * toplev.c: include tree-chkp.h.
6567 (process_options): Check Pointer Bounds Checker is supported.
6568 (compile_file): Add chkp_finish_file call.
6569 * ipa-cp.c (initialize_node_lattices): Use cgraph_local_p
6570 to handle instrumentation clones properly.
6571 (propagate_constants_accross_call): Do not propagate
6572 through instrumentation thunks.
6573 * ipa-pure-const.c (propagate_pure_const): Support
6574 IPA_REF_CHKP.
6575 * ipa-inline.c (early_inliner): Check edge has summary allocated.
6576 * ipa-split.c: Include tree-chkp.h.
6577 (find_retbnd): New.
6578 (split_part_set_ssa_name_p): New.
6579 (consider_split): Do not split retbnd and retval
6580 producers.
6581 (insert_bndret_call_after): new.
6582 (split_function): Propagate Pointer Bounds Checker
6583 instrumentation marks and handle returned bounds.
6584 * tree-ssa-sccvn.h (vn_reference_op_struct): Transform opcode
6585 into bit field and add with_bounds field.
6586 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Set
6587 with_bounds field for instrumented calls.
6588 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Restore
6589 CALL_WITH_BOUNDS_P flag for calls.
6590 * tree-ssa-ccp.c: Include tree-chkp.h.
6591 (insert_clobber_before_stack_restore): Handle
6592 BUILT_IN_CHKP_BNDRET calls.
6593 * tree-ssa-dce.c: Include tree-chkp.h.
6594 (propagate_necessity): For free call fed by alloc check
6595 bounds are also provided by the same alloc.
6596 (eliminate_unnecessary_stmts): Handle BUILT_IN_CHKP_BNDRET
6597 used by free calls.
6598 * tree-inline.c: Include tree-chkp.h.
6599 (declare_return_variable): Add arg holding
6600 returned bounds slot. Create and initialize returned bounds var.
6601 (remap_gimple_stmt): Handle returned bounds.
6602 Return sequence of statements instead of a single statement.
6603 (insert_init_stmt): Add declaration.
6604 (remap_gimple_seq): Adjust to new remap_gimple_stmt signature.
6605 (copy_bb): Adjust to changed return type of remap_gimple_stmt.
6606 Properly handle bounds in va_arg_pack and va_arg_pack_len.
6607 (expand_call_inline): Handle returned bounds. Add bounds copy
6608 for generated mem to mem assignments.
6609 * tree-inline.h (copy_body_data): Add fields retbnd and
6610 assign_stmts.
6611 * value-prof.c: Include tree-chkp.h.
6612 (gimple_ic): Support returned bounds.
6613 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
6614 with "chkp ctor" and "bnd_legacy" attributes.
6615 (symtab_remove_unreachable_nodes): Keep initial values for
6616 pointer bounds to be used for checks eliminations.
6617 (process_references): Handle IPA_REF_CHKP.
6618 (walk_polymorphic_call_targets): Likewise.
6619 * ipa-visibility.c (cgraph_externally_visible_p): Mark
6620 instrumented 'main' as externally visible.
6621 (function_and_variable_visibility): Filter instrumentation
6622 thunks.
6623 * cgraph.h (cgraph_thunk_info): Add add_pointer_bounds_args
6624 field.
6625 (cgraph_node): Add instrumented_version, orig_decl and
6626 instrumentation_clone fields.
6627 (symtab_node::get_alias_target): Allow IPA_REF_CHKP reference.
6628 (varpool_node): Add need_bounds_init field.
6629 (cgraph_local_p): New.
6630 * cgraph.c: Include tree-chkp.h.
6631 (cgraph_node::remove): Fix instrumented_version
6632 of the referenced node if any.
6633 (cgraph_node::dump): Dump instrumentation_clone and
6634 instrumented_version fields.
6635 (cgraph_node::verify_node): Check correctness of IPA_REF_CHKP
6636 references and instrumentation thunks.
6637 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Keep
6638 all not instrumented instrumentation clones alive.
6639 (cgraph_redirect_edge_call_stmt_to_callee): Support
6640 returned bounds.
6641 * cgraphbuild.c (rebuild_cgraph_edges): Rebuild IPA_REF_CHKP
6642 reference.
6643 (cgraph_rebuild_references): Likewise.
6644 * cgraphunit.c: Include tree-chkp.h.
6645 (assemble_thunks_and_aliases): Skip thunks calling instrumneted
6646 function version.
6647 (varpool_finalize_decl): Register statically initialized decls
6648 in Pointer Bounds Checker.
6649 (walk_polymorphic_call_targets): Do not mark generated call to
6650 __builtin_unreachable as with_bounds.
6651 (output_weakrefs): If there are both instrumented and original
6652 versions, output only one of them.
6653 (cgraph_node::expand_thunk): Set with_bounds flag
6654 for created call statement.
6655 * ipa-ref.h (ipa_ref_use): Add IPA_REF_CHKP.
6656 (ipa_ref): increase size of use field.
6657 * symtab.c (ipa_ref_use_name): Add element for IPA_REF_CHKP.
6658 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
6659 (ctor_for_folding): Do not fold constant bounds vars.
6660 * lto-streamer.h (LTO_minor_version): Change minor version from
6661 0 to 1.
6662 * lto-cgraph.c (compute_ltrans_boundary): Keep initial values for
6663 pointer bounds.
6664 (lto_output_node): Output instrumentation_clone,
6665 thunk.add_pointer_bounds_args and orig_decl field.
6666 (lto_output_ref): Adjust to new ipa_ref::use field size.
6667 (input_overwrite_node): Read instrumentation_clone field.
6668 (input_node): Read thunk.add_pointer_bounds_args and orig_decl
6669 fields.
6670 (input_ref): Adjust to new ipa_ref::use field size.
6671 (input_cgraph_1): Compute instrumented_version fields and restore
6672 IDENTIFIER_TRANSPARENT_ALIAS chains.
6673 (lto_output_varpool_node): Output
6674 need_bounds_init value.
6675 (input_varpool_node): Read need_bounds_init value.
6676 * lto-partition.c (add_symbol_to_partition_1): Keep original
6677 and instrumented versions together.
6678 (privatize_symbol_name): Restore transparent alias chain if required.
6679 (add_references_to_partition): Add references to pointer bounds vars.
6680 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
6681 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
6682 (gen_type_die_with_usage): Skip pointer bounds.
6683 (dwarf2out_global_decl): Likewise.
6684 (is_base_type): Support POINTER_BOUNDS_TYPE.
6685 (gen_formal_types_die): Skip pointer bounds.
6686 (gen_decl_die): Likewise.
6687 * var-tracking.c (vt_add_function_parameters): Skip
6688 bounds parameters.
6689 * ipa-icf.c (sem_function::merge): Do not merge when instrumentation
6690 thunk still exists.
6691 (sem_variable::merge): Reset need_bounds_init flag.
6692 * doc/extend.texi: Document Pointer Bounds Checker built-in functions
6693 and attributes.
6694 * doc/tm.texi.in (TARGET_LOAD_BOUNDS_FOR_ARG): New.
6695 (TARGET_STORE_BOUNDS_FOR_ARG): New.
6696 (TARGET_LOAD_RETURNED_BOUNDS): New.
6697 (TARGET_STORE_RETURNED_BOUNDS): New.
6698 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
6699 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
6700 (TARGET_BUILTIN_CHKP_FUNCTION): New.
6701 (TARGET_CHKP_BOUND_TYPE): New.
6702 (TARGET_CHKP_BOUND_MODE): New.
6703 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
6704 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
6705 * doc/tm.texi: Regenerated.
6706 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
6707 (BND32mode): New.
6708 (BND64mode): New.
6709 * doc/invoke.texi (-mmpx): New.
6710 (-mno-mpx): New.
6711 (chkp-max-ctor-size): New.
6712 * config/i386/constraints.md (w): New.
6713 (Ti): New.
6714 (Tb): New.
6715 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
6716 * config/i386/i386-modes.def (BND32): New.
6717 (BND64): New.
6718 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
6719 * config/i386/i386.c: Include tree-chkp.h, rtl-chkp.h, tree-iterator.h.
6720 (regclass_map): Add bound registers.
6721 (dbx_register_map): Likewise.
6722 (dbx64_register_map): Likewise.
6723 (svr4_dbx_register_map): Likewise.
6724 (isa_opts): Add -mmpx.
6725 (PTA_MPX): New.
6726 (ix86_option_override_internal): Support MPX ISA.
6727 (ix86_conditional_register_usage): Support bound registers.
6728 (ix86_code_end): Add MPX bnd prefix.
6729 (output_set_got): Likewise.
6730 (print_reg): Avoid prefixes for bound registers.
6731 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
6732 (ix86_print_operand_punct_valid_p): Likewise.
6733 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
6734 UNSPEC_BNDLDX_ADDR.
6735 (ix86_output_call_insn): Add MPX bnd prefix to branch instructions.
6736 (ix86_class_likely_spilled_p): Add bound regs support.
6737 (ix86_hard_regno_mode_ok): Likewise.
6738 (x86_order_regs_for_local_alloc): Likewise.
6739 (ix86_bnd_prefixed_insn_p): New.
6740 (ix86_builtins): Add
6741 IX86_BUILTIN_BNDMK, IX86_BUILTIN_BNDSTX,
6742 IX86_BUILTIN_BNDLDX, IX86_BUILTIN_BNDCL,
6743 IX86_BUILTIN_BNDCU, IX86_BUILTIN_BNDRET,
6744 IX86_BUILTIN_BNDNARROW, IX86_BUILTIN_BNDINT,
6745 IX86_BUILTIN_SIZEOF, IX86_BUILTIN_BNDLOWER,
6746 IX86_BUILTIN_BNDUPPER.
6747 (builtin_isa): Add leaf_p and nothrow_p fields.
6748 (def_builtin): Initialize leaf_p and nothrow_p.
6749 (ix86_add_new_builtins): Handle leaf_p and nothrow_p
6750 flags.
6751 (bdesc_mpx): New.
6752 (bdesc_mpx_const): New.
6753 (ix86_init_mpx_builtins): New.
6754 (ix86_init_builtins): Call ix86_init_mpx_builtins.
6755 (ix86_emit_cmove): New.
6756 (ix86_emit_move_max): New.
6757 (ix86_expand_builtin): Expand IX86_BUILTIN_BNDMK,
6758 IX86_BUILTIN_BNDSTX, IX86_BUILTIN_BNDLDX,
6759 IX86_BUILTIN_BNDCL, IX86_BUILTIN_BNDCU,
6760 IX86_BUILTIN_BNDRET, IX86_BUILTIN_BNDNARROW,
6761 IX86_BUILTIN_BNDINT, IX86_BUILTIN_SIZEOF,
6762 IX86_BUILTIN_BNDLOWER, IX86_BUILTIN_BNDUPPER.
6763 (ix86_function_value_bounds): New.
6764 (ix86_builtin_mpx_function): New.
6765 (ix86_get_arg_address_for_bt): New.
6766 (ix86_load_bounds): New.
6767 (ix86_store_bounds): New.
6768 (ix86_load_returned_bounds): New.
6769 (ix86_store_returned_bounds): New.
6770 (ix86_mpx_bound_mode): New.
6771 (ix86_make_bounds_constant): New.
6772 (ix86_initialize_bounds):
6773 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
6774 (TARGET_STORE_BOUNDS_FOR_ARG): New.
6775 (TARGET_LOAD_RETURNED_BOUNDS): New.
6776 (TARGET_STORE_RETURNED_BOUNDS): New.
6777 (TARGET_CHKP_BOUND_MODE): New.
6778 (TARGET_BUILTIN_CHKP_FUNCTION): New.
6779 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
6780 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
6781 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
6782 (ix86_option_override_internal): Do not
6783 support x32 with MPX.
6784 (init_cumulative_args): Init stdarg, bnd_regno, bnds_in_bt
6785 and force_bnd_pass.
6786 (function_arg_advance_32): Return number of used integer
6787 registers.
6788 (function_arg_advance_64): Likewise.
6789 (function_arg_advance_ms_64): Likewise.
6790 (ix86_function_arg_advance): Handle pointer bounds.
6791 (ix86_function_arg): Likewise.
6792 (ix86_function_value_regno_p): Mark fisrt bounds registers as
6793 possible function value.
6794 (ix86_function_value_1): Handle pointer bounds type/mode
6795 (ix86_return_in_memory): Likewise.
6796 (ix86_print_operand): Analyse insn to decide abounf "bnd" prefix.
6797 (ix86_expand_call): Generate returned bounds.
6798 (ix86_setup_incoming_vararg_bounds): New.
6799 (ix86_va_start): Initialize bounds for pointers in va_list.
6800 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
6801 * config/i386/i386.h (TARGET_MPX): New.
6802 (TARGET_MPX_P): New.
6803 (FIRST_PSEUDO_REGISTER): Fix to new value.
6804 (FIXED_REGISTERS): Add bound registers.
6805 (CALL_USED_REGISTERS): Likewise.
6806 (REG_ALLOC_ORDER): Likewise.
6807 (HARD_REGNO_NREGS): Likewise.
6808 (VALID_BND_REG_MODE): New.
6809 (FIRST_BND_REG): New.
6810 (LAST_BND_REG): New.
6811 (reg_class): Add BND_REGS.
6812 (REG_CLASS_NAMES): Likewise.
6813 (REG_CLASS_CONTENTS): Likewise.
6814 (BND_REGNO_P): New.
6815 (ANY_BND_REG_P): New.
6816 (BNDmode): New.
6817 (HI_REGISTER_NAMES): Add bound registers.
6818 (ix86_args): Add bnd_regno, bnds_in_bt, force_bnd_pass and
6819 stdarg fields.
6820 * config/i386/i386.md (UNSPEC_BNDMK): New.
6821 (UNSPEC_BNDMK_ADDR): New.
6822 (UNSPEC_BNDSTX): New.
6823 (UNSPEC_BNDLDX): New.
6824 (UNSPEC_BNDLDX_ADDR): New.
6825 (UNSPEC_BNDCL): New.
6826 (UNSPEC_BNDCU): New.
6827 (UNSPEC_BNDCN): New.
6828 (UNSPEC_MPX_FENCE): New.
6829 (UNSPEC_SIZEOF): New.
6830 (BND0_REG): New.
6831 (BND1_REG): New.
6832 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
6833 (length_immediate): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
6834 (prefix_rep): Check for bnd prefix.
6835 (prefix_0f): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
6836 (length_nobnd): New.
6837 (length): Use length_nobnd when specified.
6838 (memory): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
6839 (BND): New.
6840 (bnd_ptr): New.
6841 (BNDCHECK): New.
6842 (bndcheck): New.
6843 (*jcc_1): Add MPX bnd prefix.
6844 (*jcc_2): Likewise.
6845 (jump): Likewise.
6846 (*indirect_jump): Likewise.
6847 (*tablejump_1): Likewise.
6848 (simple_return_internal): Likewise.
6849 (simple_return_internal_long): Likewise.
6850 (simple_return_pop_internal): Likewise.
6851 (simple_return_indirect_internal): Likewise.
6852 (<mode>_mk): New.
6853 (*<mode>_mk): New.
6854 (mov<mode>): New.
6855 (*mov<mode>_internal_mpx): New.
6856 (<mode>_<bndcheck>): New.
6857 (*<mode>_<bndcheck>): New.
6858 (<mode>_ldx): New.
6859 (*<mode>_ldx): New.
6860 (<mode>_stx): New.
6861 (*<mode>_stx): New.
6862 move_size_reloc_<mode>): New.
6863 * config/i386/predicates.md (address_mpx_no_base_operand): New.
6864 (address_mpx_no_index_operand): New.
6865 (bnd_mem_operator): New.
6866 (symbol_operand): New.
6867 (x86_64_immediate_size_operand): New.
6868 * config/i386/i386.opt (mmpx): New.
6869 * config/i386/i386-builtin-types.def (BND): New.
6870 (ULONG): New.
6871 (BND_FTYPE_PCVOID_ULONG): New.
6872 (VOID_FTYPE_BND_PCVOID): New.
6873 (VOID_FTYPE_PCVOID_PCVOID_BND): New.
6874 (BND_FTYPE_PCVOID_PCVOID): New.
6875 (BND_FTYPE_PCVOID): New.
6876 (BND_FTYPE_BND_BND): New.
6877 (PVOID_FTYPE_PVOID_PVOID_ULONG): New.
6878 (PVOID_FTYPE_PCVOID_BND_ULONG): New.
6879 (ULONG_FTYPE_VOID): New.
6880 (PVOID_FTYPE_BND): New.
6881
6882 2014-11-05 Bernd Schmidt <bernds@codesourcery.com>
6883
6884 * passes.def (pass_compute_alignments, pass_duplicate_computed_gotos,
6885 pass_variable_tracking, pass_free_cfg, pass_machine_reorg,
6886 pass_cleanup_barriers, pass_delay_slots,
6887 pass_split_for_shorten_branches, pass_convert_to_eh_region_ranges,
6888 pass_shorten_branches, pass_est_nothrow_function_flags,
6889 pass_dwarf2_frame, pass_final): Move outside of pass_postreload and
6890 into pass_late_compilation.
6891 (pass_late_compilation): Add.
6892 * passes.c (pass_data_late_compilation, pass_late_compilation,
6893 make_pass_late_compilation): New.
6894 * timevar.def (TV_LATE_COMPILATION): New.
6895
6896 * target.def (omit_struct_return_reg): New data hook.
6897 * doc/tm.texi.in: Add @hook TARGET_OMIT_STRUCT_RETURN_REG.
6898 * doc/tm.texi: Regenerate.
6899 * function.c (expand_function_end): Use it.
6900
6901 * target.def (no_register_allocation): New data hook.
6902 * doc/tm.texi.in: Add @hook TARGET_NO_REGISTER_ALLOCATION.
6903 * doc/tm.texi: Regenerate.
6904 * ira.c (gate_ira): New function.
6905 (pass_data_ira): Set has_gate.
6906 (pass_ira): Add a gate function.
6907 (pass_data_reload): Likewise.
6908 (pass_reload): Add a gate function.
6909 (pass_ira): Use it.
6910 * reload1.c (eliminate_regs): If reg_eliminate_is NULL, assert that
6911 no register allocation happens on the target and return.
6912 * final.c (alter_subreg): Ensure register is not a pseudo before
6913 calling simplify_subreg.
6914 (output_operand): Assert that x isn't a pseudo only if doing
6915 register allocation.
6916
6917 * dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
6918 global vars.
6919
6920 * optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
6921 sorry if necessary.
6922
6923 2014-11-05 Alex Velenko <Alex.Velenko@arm.com>
6924
6925 * simplify-rtx.c (simplify_binary_operation_1): Div check added.
6926 * rtl.h (SUBREG_P): New macro added.
6927
6928 2014-11-05 Tejas Belagod <tejas.belagod@arm.com>
6929
6930 * config/aarch64/aarch64-builtins.c
6931 (aarch64_build_scalar_type): Remove.
6932 (aarch64_scalar_builtin_types, aarch64_simd_type,
6933 aarch64_simd_type, aarch64_mangle_builtin_scalar_type,
6934 aarch64_mangle_builtin_vector_type,
6935 aarch64_mangle_builtin_type, aarch64_simd_builtin_std_type,
6936 aarch64_lookup_simd_builtin_type, aarch64_simd_builtin_type,
6937 aarch64_init_simd_builtin_types,
6938 aarch64_init_simd_builtin_scalar_types): New.
6939 (aarch64_init_simd_builtins): Refactor.
6940 (aarch64_init_crc32_builtins): Fixup with qualifier.
6941 * config/aarch64/aarch64-protos.h
6942 (aarch64_mangle_builtin_type): Export.
6943 * config/aarch64/aarch64-simd-builtin-types.def: New.
6944 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Remove.
6945 (aarch64_mangle_type): Refactor.
6946 * config/aarch64/arm_neon.h: Declare vector types based on
6947 internal types.
6948 * config/aarch64/t-aarch64: Update dependency.
6949
6950 2014-11-04 Pat Haugen <pthaugen@us.ibm.com>
6951
6952 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl,
6953 atomic_update_decl): Guard declaration with #ifdef.
6954
6955 2014-11-04 Marek Polacek <polacek@redhat.com>
6956
6957 * sanopt.c (sanopt_optimize_walker): Remove unused variables.
6958
6959 2014-11-04 Marek Polacek <polacek@redhat.com>
6960
6961 * Makefile.in (OBJS): Add sanopt.o.
6962 (GTFILES): Add sanopt.c.
6963 * asan.h (asan_expand_check_ifn): Declare.
6964 * asan.c (asan_expand_check_ifn): No longer static.
6965 (class pass_sanopt, pass_sanopt::execute, make_pass_sanopt): Move...
6966 * sanopt.c: ...here. New file.
6967
6968 2014-11-04 Jiong Wang <jiong.wang@arm.com>
6969 2014-11-04 Wilco Dijkstra <wilco.dijkstra@arm.com>
6970
6971 PR target/63293
6972 * config/aarch64/aarch64.c (aarch64_expand_epiloue): Add barriers before
6973 stack adjustment.
6974
6975 2014-11-04 Bernd Schmidt <bernds@codesourcery.com>
6976
6977 * combine.c (combine_simplify_rtx): In STORE_FLAG_VALUE == -1 case,
6978 also verify that mode is equal to the mode of op0.
6979
6980 * bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn,
6981 emit into a sequence instead.
6982
6983 2014-11-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6984
6985 * config/sh/sh.c (emit_fpu_switch): Drop unused automatic variable.
6986
6987 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
6988
6989 config/arm/neon.md (reduc_smin_<mode> *2): Rename to...
6990 (reduc_smin_scal_<mode> *2): ...this; extract scalar result.
6991 (reduc_smax_<mode> *2): Rename to...
6992 (reduc_smax_scal_<mode> *2): ...this; extract scalar result.
6993 (reduc_umin_<mode> *2): Rename to...
6994 (reduc_umin_scal_<mode> *2): ...this; extract scalar result.
6995 (reduc_umax_<mode> *2): Rename to...
6996 (reduc_umax_scal_<mode> *2): ...this; extract scalar result.
6997
6998 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
6999
7000 config/arm/neon.md (reduc_plus_*): Rename to...
7001 (reduc_plus_scal_*): ...this; reduce to temp and extract scalar result.
7002
7003 2014-11-04 Michael Collison <michael.collison@linaro.org>
7004
7005 * config/aarch64/iterators.md (lconst_atomic): New mode attribute
7006 to support constraints for CONST_INT in atomic operations.
7007 * config/aarch64/atomics.md
7008 (atomic_<atomic_optab><mode>): Use lconst_atomic constraint.
7009 (atomic_nand<mode>): Likewise.
7010 (atomic_fetch_<atomic_optab><mode>): Likewise.
7011 (atomic_fetch_nand<mode>): Likewise.
7012 (atomic_<atomic_optab>_fetch<mode>): Likewise.
7013 (atomic_nand_fetch<mode>): Likewise.
7014
7015 2014-11-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7016
7017 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in definition
7018 of __ARM_FEATURE_IDIV.
7019
7020 2014-11-04 Marek Polacek <polacek@redhat.com>
7021
7022 * ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.
7023
7024 2014-11-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7025
7026 * config/rx/rx.c (rx_handle_func_attribute): Mark unused argument.
7027
7028 2014-11-04 Zhenqiang Chen <zhenqiang.chen@arm.com>
7029
7030 Revert:
7031 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
7032 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
7033 Allow CC mode if HAVE_cbranchcc4.
7034
7035 2014-11-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
7036
7037 * godump.c (go_format_type): Rewrite RECORD_TYPE nad UNION_TYPE support
7038 with -fdump-go-spec. Anonymous substructures are now flattened and
7039 replaced by their fields (record) or the first named, non-bitfield
7040 field (union).
7041
7042 2014-11-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
7043
7044 * input.c (expand_location_to_spelling_point): Fix typo.
7045 (expansion_point_location_if_in_system_header): Fix comment.
7046
7047 2014-11-03 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7048
7049 * config/avr/gen-avr-mmcu-specs.c: Remove unnecessary format specifier.
7050
7051 2014-11-03 Richard Biener <rguenther@suse.de>
7052
7053 * tree-eh.c (operation_could_trap_helper_p): Handle conversions
7054 like ordinary operations.
7055 * gimplify.c (gimplify_conversion): Gimplify CONVERT_EXPR
7056 as NOP_EXPR.
7057
7058 2014-11-03 Joseph Myers <joseph@codesourcery.com>
7059
7060 * configure.ac (TARGET_GLIBC_MAJOR, TARGET_GLIBC_MINOR): Define
7061 macros.
7062 * configure, config.h.in: Regenerate.
7063 * config/rs6000/linux.h [TARGET_GLIBC_MAJOR > 2 ||
7064 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
7065 (RS6000_GLIBC_ATOMIC_FENV): New macro.
7066 * config/rs6000/linux64.h [TARGET_GLIBC_MAJOR > 2 ||
7067 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
7068 (RS6000_GLIBC_ATOMIC_FENV): New macro.
7069 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl)
7070 (atomic_update_decl): New static variables.
7071 (rs6000_atomic_assign_expand_fenv) [RS6000_GLIBC_ATOMIC_FENV]:
7072 Generate calls to __atomic_feholdexcept, __atomic_feclearexcept
7073 and __atomic_feupdateenv for soft-float and no-FPRs.
7074
7075 2014-11-03 Richard Biener <rguenther@suse.de>
7076
7077 * match.pd: Add two abs patterns. Announce tree_expr_nonnegative_p.
7078 Also drop bogus FLOAT_EXPR and FIX_TRUNC_EXPR.
7079 * fold-const.c (fold_unary_loc): Remove them here.
7080 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
7081 * gimple-fold.c (fold_gimple_assign): Remove now obsolete
7082 GIMPLE_UNARY_RHS case.
7083 (gimple_fold_stmt_to_constant_1): Likewise.
7084 (replace_stmt_with_simplification): Fix inverted comparison.
7085
7086 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
7087
7088 PR tree-optimization/60770
7089 * tree-into-ssa.c (rewrite_update_stmt): Return whether the
7090 statement should be removed.
7091 (maybe_register_def): Likewise. Replace clobbers with default
7092 definitions.
7093 (rewrite_dom_walker::before_dom_children): Remove statement if
7094 rewrite_update_stmt says so.
7095 * tree-ssa-live.c: Include tree-ssa.h.
7096 (set_var_live_on_entry): Do not mark undefined variables as live.
7097 (verify_live_on_entry): Do not check undefined variables.
7098 * tree-ssa.h (ssa_undefined_value_p): New parameter for the case
7099 of partially undefined variables.
7100 * tree-ssa.c (ssa_undefined_value_p): Likewise.
7101 (execute_update_addresses_taken): Do not drop clobbers.
7102
7103 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
7104
7105 PR tree-optimization/63666
7106 * fold-const.c: Include "optabs.h".
7107 (fold_ternary_loc) <VEC_PERM_EXPR>: Avoid canonicalizing a
7108 can_vec_perm_p permutation to one that is not.
7109
7110 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
7111
7112 * ifcvt.c (noce_try_store_flag_mask): Check rtx cost.
7113
7114 2014-11-03 Andrew Pinski <apinski@cavium.com>
7115
7116 * config/mips/mips-cpus.def (octeon3): New cpu.
7117 * config/mips/mips.c (mips_rtx_cost_data): Add octeon3.
7118 (mips_print_operand <case 'T', case 't'>): Fix a bug as the mode
7119 of the comparison no longer matches mode of the operands.
7120 (mips_issue_rate): Handle PROCESSOR_OCTEON3.
7121 * config/mips/mips.h (TARGET_OCTEON): Add Octeon3.
7122 (TARGET_OCTEON2): Likewise.
7123 (TUNE_OCTEON): Add Octeon3.
7124 * config/mips/mips.md (processor): Add octeon3.
7125 * config/mips/octeon.md (octeon_fpu): New automaton and cpu_unit.
7126 (octeon_arith): Add octeon3.
7127 (octeon_condmove): Remove.
7128 (octeon_condmove_o1): New reservation.
7129 (octeon_condmove_o2): New reservation.
7130 (octeon_condmove_o3_int_on_cc): New reservation.
7131 (octeon_load_o2): Add octeon3.
7132 (octeon_cop_o2): Likewise.
7133 (octeon_store): Likewise.
7134 (octeon_brj_o2): Likewise.
7135 (octeon_imul3_o2): Likewise.
7136 (octeon_imul_o2): Likewise.
7137 (octeon_mfhilo_o2): Likewise.
7138 (octeon_imadd_o2): Likewise.
7139 (octeon_idiv_o2_si): Likewise.
7140 (octeon_idiv_o2_di): Likewise.
7141 (octeon_fpu): Add to the automaton.
7142 (octeon_fpu): New cpu unit.
7143 (octeon_condmove_o2): Check for non floating point modes.
7144 (octeon_load_o2): Add prefetchx.
7145 (octeon_cop_o2): Don't check for octeon3.
7146 (octeon3_faddsubcvt): New reservation.
7147 (octeon3_fmul): Likewise.
7148 (octeon3_fmadd): Likewise.
7149 (octeon3_div_sf): Likewise.
7150 (octeon3_div_df): Likewise.
7151 (octeon3_sqrt_sf): Likewise.
7152 (octeon3_sqrt_df): Likewise.
7153 (octeon3_rsqrt_sf): Likewise.
7154 (octeon3_rsqrt_df): Likewise.
7155 (octeon3_fabsnegmov): Likewise.
7156 (octeon_fcond): Likewise.
7157 (octeon_fcondmov): Likewise.
7158 (octeon_fpmtc1): Likewise.
7159 (octeon_fpmfc1): Likewise.
7160 (octeon_fpload): Likewise.
7161 (octeon_fpstore): Likewise.
7162 * config/mips/mips-tables.opt: Regenerate.
7163 * doc/invoke.texi (-march=@var{arch}): Add octeon3.
7164
7165 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
7166
7167 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
7168 Allow CC mode if HAVE_cbranchcc4.
7169
7170 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
7171
7172 * config/arc/arc.c (write_ext_corereg_1): Delete.
7173 (arc_write_ext_corereg): Use FOR_EACH_SUBRTX.
7174
7175 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
7176
7177 * config/arc/arc.c (arc600_corereg_hazard_1): Delete.
7178 (arc600_corereg_hazard): Use FOR_EACH_SUBRTX.
7179
7180 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
7181
7182 * config/arc/arc.c (arc_rewrite_small_data_p): Constify argument.
7183 (small_data_pattern_1): Delete.
7184 (small_data_pattern): Use FOR_EACH_SUBRTX.
7185
7186 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
7187
7188 * config/arc/arc.c: Include rtl-iter.h.
7189 (arc_rewrite_small_data_1): Delete.
7190 (arc_rewrite_small_data): Use FOR_EACH_SUBRTX_PTR.
7191
7192 2014-11-02 Michael Collison <michael.collison@linaro.org>
7193
7194 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update
7195 to support vector modes.
7196 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
7197
7198 2014-11-01 Andrew MacLeod <amacleod@redhat,com>
7199
7200 * optabs.h: Flatten insn-codes.h to source files. Move some prototypes
7201 and structs to genopinit.c. Adjust protyoptypes to match optabs.c.
7202 * genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
7203 * optabs.c: (gen_move_insn): Move to expr.c.
7204 * expr.h: Move protypes and enums to optabs.h.
7205 * expr.c: (gen_move_insn): Relocate from optabs.c.
7206 * genemit.c (main): Include insn-codes.h.
7207 * gengtype.c (open_base_files): Include insn-codes.h.
7208 * asan.c: Include insn-codes.h.
7209 * bb-reorder.c: Ditto.
7210 * builtins.c: Ditto.
7211 * calls.c: Ditto.
7212 * cfgexpand.c: Ditto.
7213 * cilk-common.c: Ditto.
7214 * combine.c: Ditto.
7215 * dojump.c: Ditto.
7216 * dse.c: Ditto.
7217 * except.c: Ditto.
7218 * explow.c: Ditto.
7219 * expmed.c: Ditto.
7220 * function.c: Ditto.
7221 * ifcvt.c: Ditto.
7222 * internal-fn.c: Ditto.
7223 * loop-unroll.c: Ditto.
7224 * lra.c: Ditto.
7225 * modulo-sched.c: Ditto.
7226 * omp-low.c: Ditto.
7227 * postreload.c: Ditto.
7228 * ree.c: Ditto.
7229 * reload.c: Ditto.
7230 * reload1.c: Ditto.
7231 * shrink-wrap.c: Ditto.
7232 * simplify-rtx.c: Ditto.
7233 * stmt.c: Ditto.
7234 * target-globals.c: Ditto.
7235 * targhooks.c: Ditto.
7236 * toplev.c: Ditto.
7237 * tree-if-conv.c: Ditto.
7238 * tree-ssa-forwprop.c: Ditto.
7239 * tree-ssa-loop-prefetch.c: Ditto.
7240 * tree-ssa-math-opts.c: Ditto.
7241 * tree-ssa-phiopt.c: Ditto.
7242 * tree-ssa-reassoc.c: Ditto.
7243 * tree-switch-conversion.c: Ditto.
7244 * tree-vect-data-refs.c: Ditto.
7245 * tree-vect-generic.c: Ditto.
7246 * tree-vect-loop.c: Ditto.
7247 * tree-vect-patterns.c: Ditto.
7248 * tree-vect-slp.c: Ditto.
7249 * tree-vect-stmts.c: Ditto.
7250 * tree-vrp.c: Ditto.
7251 * value-prof.c: Ditto.
7252 * config/aarch64/aarch64-builtins.c: Ditto.
7253 * config/alpha/alpha.c: Ditto.
7254 * config/arm/arm.c: Ditto.
7255 * config/cris/cris.c: Ditto.
7256 * config/epiphany/epiphany.c: Ditto.
7257 * config/frv/frv.c: Ditto.
7258 * config/h8300/h8300.c: Ditto.
7259 * config/ia64/ia64.c: Ditto.
7260 * config/iq2000/iq2000.c: Ditto.
7261 * config/m32c/m32c.c: Ditto.
7262 * config/mep/mep.c: Ditto.
7263 * config/microblaze/microblaze.c: Ditto.
7264 * config/mips/mips.c: Ditto.
7265 * config/mn10300/mn10300.c: Ditto.
7266 * config/moxie/moxie.c: Ditto.
7267 * config/msp430/msp430.c: Ditto.
7268 * config/nios2/nios2.c: Ditto.
7269 * config/pa/pa.c: Ditto.
7270 * config/rl78/rl78.c: Ditto.
7271 * config/rs6000/rs6000.c: Ditto.
7272 * config/rx/rx.c: Ditto.
7273 * config/s390/s390.c: Ditto.
7274 * config/sh/sh.c: Ditto.
7275 * config/sh/sh_treg_combine.cc: Ditto.
7276 * config/spu/spu.c: Ditto.
7277 * config/stormy16/stormy16.c: Ditto.
7278 * config/tilegx/mul-tables.c: Ditto.
7279 * config/tilegx/tilegx.c: Ditto.
7280 * config/tilepro/mul-tables.c: Ditto.
7281 * config/tilepro/tilepro.c: Ditto.
7282 * config/vax/vax.c: Ditto.
7283
7284 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
7285
7286 * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove.
7287 (CLEAR_BY_PIECES_P): Likewise.
7288 (SET_BY_PIECES_P): Likewise.
7289 (STORE_BY_PIECES_P): Likewise.
7290 * doc/tm.texi: Regenerate.
7291 * system.h: Poison MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P,
7292 SET_BY_PIECES_P, STORE_BY_PIECES_P.
7293 * expr.c (MOVE_BY_PIECES_P): Remove.
7294 (CLEAR_BY_PIECES_P): Likewise.
7295 (SET_BY_PIECES_P): Likewise.
7296 (STORE_BY_PIECES_P): Likewise.
7297 (can_move_by_pieces): Rewrite in terms of
7298 targetm.use_by_pieces_infrastructure_p.
7299 (emit_block_move_hints): Likewise.
7300 (can_store_by_pieces): Likewise.
7301 (store_by_pieces): Likewise.
7302 (clear_storage_hints): Likewise.
7303 (emit_push_insn): Likewise.
7304 (expand_constructor): Likewise.
7305
7306 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
7307
7308 * config/aarch64/aarch64.c
7309 (aarch64_use_by_pieces_infrastructre_p): New.
7310 (TARGET_USE_BY_PIECES_INFRASTRUCTURE): Likewise.
7311 * config/aarch64/aarch64.h (STORE_BY_PIECES_P): Delete.
7312
7313 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
7314
7315 * config/mips/mips.h (MOVE_BY_PIECES_P): Remove.
7316 (STORE_BY_PIECES_P): Likewise.
7317 * config/mips/mips.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
7318 (mips_move_by_pieces_p): Rename to...
7319 (mips_use_by_pieces_infrastructure_p): ...this, use new hook
7320 parameters, use the default hook implementation as a
7321 fall-back.
7322
7323 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
7324
7325 * config/sh/sh.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
7326 (sh_use_by_pieces_infrastructure_p): Likewise.
7327 * config/sh/sh.h (MOVE_BY_PIECES_P): Remove.
7328 (STORE_BY_PIECES_P): Likewise.
7329 (SET_BY_PIECES_P): Likewise.
7330
7331 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
7332
7333 * config/arc/arc.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
7334 (arc_use_by_pieces_infrastructure_p): Likewise.
7335 * confir/arc/arc.h (MOVE_BY_PIECES_P): Delete.
7336 (CAN_MOVE_BY_PIECES): Likewise.
7337
7338 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
7339
7340 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p): New.
7341 (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Likewise.
7342 * config/s390/s390.h (MOVE_BY_PIECES_P): Remove.
7343 (CLEAR_BY_PIECES): Likewise.
7344 (SET_BY_PIECES): Likewise.
7345 (STORE_BY_PIECES): Likewise.
7346
7347 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
7348
7349 * target.def (use_by_pieces_infrastructure_p): New.
7350 * doc/tm.texi.in (MOVE_BY_PIECES_P): Describe that this macro
7351 is deprecated.
7352 (STORE_BY_PIECES_P): Likewise.
7353 (CLEAR_BY_PIECES_P): Likewise.
7354 (SET_BY_PIECES_P): Likewise.
7355 (TARGET_MOVE_BY_PIECES_PROFITABLE_P): Add hook.
7356 * doc/tm.texi: Regenerate.
7357 * expr.c (MOVE_BY_PIECES_P): Rewrite in terms of
7358 TARGET_USE_BY_PIECES_INFRASTRUCTURE_P.
7359 (STORE_BY_PIECES_P): Likewise.
7360 (CLEAR_BY_PIECES_P): Likewise.
7361 (SET_BY_PIECES_P): Likewise.
7362 (STORE_MAX_PIECES): Move to...
7363 * defaults.h (STORE_MAX_PIECES): ...here.
7364 * targhooks.c (get_move_ratio): New.
7365 (default_use_by_pieces_infrastructure_p): Likewise.
7366 * targhooks.h (default_use_by_pieces_infrastructure_p): New.
7367 * target.h (by_pieces_operation): New.
7368
7369 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
7370
7371 PR target/63702
7372 * config/i386/i386.c (ix86_expand_args_builtin): Remove extra
7373 assignment to 'nargs' variable.
7374
7375 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
7376
7377 PR target/63620
7378 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
7379 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
7380 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
7381 be reloaded through memory.
7382 (*pushxf): Ditto.
7383 (*pushdf): Ditto.
7384
7385 2014-10-31 Jakub Jelinek <jakub@redhat.com>
7386
7387 PR rtl-optimization/63659
7388 * ree.c (update_reg_equal_equiv_notes): New function.
7389 (combine_set_extension, transform_ifelse): Use it.
7390
7391 2014-10-31 Jeff Law <law@redhat.com>
7392
7393 * doc/contrib.texi: Add contribution notes for Balaji Iyer (Cilk+)
7394 and Jonny Grant (collect2).
7395
7396 2014-10-31 Richard Biener <rguenther@suse.de>
7397
7398 * builtins.c (fold_builtin_atomic_always_lock_free): Use
7399 CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where
7400 approprate.
7401 (fold_builtin_expect): Likewise.
7402 (integer_valued_real_p): Likewise.
7403 * cfgexpand.c (expand_debug_expr): Likewise.
7404 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Likewise.
7405 (find_foldable_builtin_expect): Likewise.
7406 * trans-mem.c (thread_private_new_memory): Likewise.
7407 * tree-affine.c (aff_combination_expand): Likewise.
7408 * tree-data-ref.c (initialize_matrix_A): Likewise.
7409 * tree-inline.c (copy_bb): Likewise.
7410 * tree-pretty-print.c (dump_function_name): Likewise.
7411 (print_call_name): Likewise.
7412 * tree-ssa-forwprop.c (constant_pointer_difference): Likewise.
7413 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise.
7414 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
7415 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Likewise.
7416 (vect_recog_widen_mult_pattern): Likewise.
7417 (vect_operation_fits_smaller_type): Likewise.
7418 * tree-vrp.c (find_assert_locations_1): Likewise.
7419 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
7420 converts to NOP_EXPR.
7421
7422 2014-10-31 Richard Biener <rguenther@suse.de>
7423
7424 * genmatch.c (expr::gen_transform): Use NOP_EXPRs instead of
7425 CONVERT_EXPRs in generated code.
7426 (dt_simplify::gen): Likewise.
7427
7428 2014-10-31 Evgeny Stupachenko <evstupac@gmail.com>
7429
7430 PR target/63534
7431 * config/i386/i386.c (ix86_init_pic_reg): Emit SET_GOT to
7432 REAL_PIC_OFFSET_TABLE_REGNUM for mcount profiling.
7433 (ix86_save_reg): Save REAL_PIC_OFFSET_TABLE_REGNUM when profiling
7434 using mcount in 32bit PIC mode.
7435 (ix86_elim_entry_set_got): New.
7436 (ix86_expand_prologue): For the mcount profiling emit new SET_GOT
7437 in PROLOGUE, delete initial if possible.
7438
7439 2014-10-31 Eric Botcazou <ebotcazou@adacore.com>
7440
7441 * ipa-inline.c (want_inline_small_function_p): Fix typo and formatting.
7442 (want_inline_function_to_all_callers_p): Fix formatting and simplify.
7443
7444 2014-10-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
7445
7446 PR tree-optimization/63259
7447 * tree-ssa-math-opts.c (bswap_replace): Replace expression by a
7448 rotation left if it is a 16 bit byte swap.
7449 (pass_optimize_bswap::execute): Also consider bswap in LROTATE_EXPR
7450 and RROTATE_EXPR statements if it is a byte rotation.
7451
7452 2014-10-31 Jakub Jelinek <jakub@redhat.com>
7453
7454 PR sanitizer/63697
7455 * tree-vrp.c (simplify_internal_call_using_ranges): For subcode ==
7456 MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min
7457 instead of vr0.min - vr1.min and vr0.max - vr1.max.
7458
7459 2014-10-31 Max Ostapenko <m.ostapenko@partner.samsung.com>
7460
7461 PR ipa/63696
7462 * ipa-icf.c (sem_function::~sem_function): Change free to delete to avoid
7463 alloc-dealloc mismatch with new, called in ipa_icf::sem_function::init.
7464
7465 2014-10-30 Felix Yang <felix.yang@huawei.com>
7466
7467 * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro.
7468 * config/xtensa/xtensa.c: Include dumpfile.h and hw-doloop.h.
7469 (xtensa_reorg, xtensa_reorg_loops): New.
7470 (xtensa_can_use_doloop_p, xtensa_invalid_within_doloop): New.
7471 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg): New.
7472 (xtensa_emit_loop_end): Emit the zero-overhead loop end label.
7473 (xtensa_doloop_hooks): Define.
7474 * config/xtensa/xtensa.md (doloop_end, loop_end): New
7475 (zero_cost_loop_start): Rewritten.
7476 (zero_cost_loop_end): Likewise.
7477
7478 2014-10-30 Steve Ellcey <sellcey@imgtec.com>
7479
7480 * config.gcc (mips*-*-linux*): Combine 32 and 64 bit cases.
7481
7482 2014-10-30 Richard Biener <rguenther@suse.de>
7483
7484 * genmatch.c: Remove <map>, <utility> and <string> includes.
7485 Include ggc.h and hash-map.h.
7486 (ggc_internal_cleared_alloc): Provide stub definition.
7487 (ggc_free): Likewise.
7488 (struct capture_id_map_hasher): New traits for hash_map.
7489 (cid_map_t): New typedef.
7490 (everywhere else): Replace std::map use with cid_map_t.
7491 * hash-map.h (hash_map::elements): New member function.
7492 * Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
7493 hash-map.h and $(GGC_H) as dependency.
7494
7495 2014-10-30 Richard Biener <rguenther@suse.de>
7496
7497 * genmatch.c (capture_info::walk_c_expr): Ignore capture
7498 uses inside TREE_TYPE ().
7499 * gimple-ssa-strength-reduction.c (stmt_cost): Use CASE_CONVERT.
7500 (find_candidates_dom_walker::before_dom_children): Likewise.
7501 (replace_mult_candidate): Use CONVERT_EXPR_CODE_P.
7502 (replace_profitable_candidates): Likewise.
7503 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
7504 CONVERT_EXPR_CODE_P to CONVERT_EXPR.
7505 * convert.c (convert_to_integer): Use CASE_CONVERT.
7506
7507 2014-10-30 Richard Biener <rguenther@suse.de>
7508
7509 * match.pd: Implement more patterns that simplify to a single value.
7510 * fold-const.c (fold_binary_loc): Remove them here.
7511 * tree-ssa-forwprop.c (simplify_bitwise_binary): Likewise.
7512 (fwprop_ssa_val): Remove restriction on single uses.
7513
7514 2014-10-30 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7515
7516 * config/avr/driver-avr.c (avr_set_current_device): Remove.
7517
7518 2014-10-30 Martin Liska <mliska@suse.cz>
7519
7520 PR ipa/63574
7521 PR ipa/63664
7522 * ipa-icf-gimple.c (func_checker::parse_labels): Missing comment added.
7523 (func_checker::compare_gimple_label): Simlified comparison introduced.
7524 * ipa-icf-gimple.h: Missing comment added.
7525
7526 2014-10-30 Jeff Law <law@redhat.com>
7527
7528 * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen
7529 argument from rtx to rtx_insn *.
7530 (compute_movmem_length, compute_clrmem_length): Likewise.
7531 (copy_fp_args, length_fp_args): Likewise.
7532 * config/pa/pa.c (legitimize_pic_address): Promote local variable
7533 "insn" from rtx to rtx_insn *.
7534 (legitimize_tls_address, pa_emit_move_sequence): Likewise.
7535 (pa_output_block_move, store_reg, store_reg_modify): Likewise.
7536 (set_reg_plus_d, pa_expand_prologue, hppa_profile_hook): Likewise.
7537 (branch_to_delay_slot_p, branch_needs_nop_p, use_skip_p): Likewise.
7538 (pa_output_arg_descriptor): Strengthen argument to an rtx_insn *.
7539 (compute_movmem_length, compute_clrmem_length): Likewise.
7540 (copy_fp-args, length_fp_args): Likewise.
7541
7542 2014-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7543
7544 * config/arm/arm.h (MACHMODE): Treat machine_mode as a
7545 scalar typedef.
7546 (CUMULATIVE_ARGS): Guard against target includes.
7547 (machine_function): Likewise.
7548
7549 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7550
7551 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
7552 recog state after aarch64_prev_real_insn call.
7553
7554 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7555
7556 * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.
7557
7558 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7559
7560 * config/arm/arm.h (MACHMODE): Add 'enum' to machine_mode.
7561 (struct machine_function): Gate definition on
7562 !defined(USED_FOR_TARGET).
7563
7564 2014-10-29 DJ Delorie <dj@redhat.com>
7565
7566 * expmed.c (strict_volatile_bitfield_p): Fix off-by-one error.
7567
7568 2014-10-29 Martin Liska <mliska@suse.cz>
7569
7570 PR ipa/63587
7571 * cgraphunit.c (cgraph_node::expand_thunk): Only VAR_DECLs are put
7572 to local declarations.
7573 * function.c (add_local_decl): Implementation moved from header
7574 file, assert introduced for tree type.
7575 * function.h: Likewise.
7576
7577 2014-10-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
7578
7579 * godump.c (go_format_type): Represent "float _Complex" and
7580 "double _Complex" as complex64 or complex128 in Go, as appropriate.
7581
7582 2014-10-29 Richard Biener <rguenther@suse.de>
7583
7584 * match.pd: Implement a first set of conversion patterns.
7585 * fold-const.c (fold_unary_loc): Remove them here.
7586 * tree-ssa-forwprop.c (simplify_vce): Remove.
7587 (pass_forwprop::execute): Do not call simplify_vce.
7588
7589 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
7590
7591 * addresses.h, alias.c, asan.c, auto-inc-dec.c, bt-load.c, builtins.c,
7592 builtins.h, caller-save.c, calls.c, calls.h, cfgexpand.c, cfgloop.h,
7593 cfgrtl.c, combine.c, compare-elim.c, config/aarch64/aarch64-builtins.c,
7594 config/aarch64/aarch64-protos.h, config/aarch64/aarch64-simd.md,
7595 config/aarch64/aarch64.c, config/aarch64/aarch64.h,
7596 config/aarch64/aarch64.md, config/alpha/alpha-protos.h,
7597 config/alpha/alpha.c, config/arc/arc-protos.h, config/arc/arc.c,
7598 config/arc/arc.h, config/arc/predicates.md,
7599 config/arm/aarch-common-protos.h, config/arm/aarch-common.c,
7600 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
7601 config/arm/arm.md, config/arm/neon.md, config/arm/thumb2.md,
7602 config/avr/avr-log.c, config/avr/avr-protos.h, config/avr/avr.c,
7603 config/avr/avr.md, config/bfin/bfin-protos.h, config/bfin/bfin.c,
7604 config/c6x/c6x-protos.h, config/c6x/c6x.c, config/c6x/c6x.md,
7605 config/cr16/cr16-protos.h, config/cr16/cr16.c,
7606 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.md,
7607 config/darwin-protos.h, config/darwin.c,
7608 config/epiphany/epiphany-protos.h, config/epiphany/epiphany.c,
7609 config/epiphany/epiphany.md, config/fr30/fr30.c,
7610 config/frv/frv-protos.h, config/frv/frv.c, config/frv/predicates.md,
7611 config/h8300/h8300-protos.h, config/h8300/h8300.c,
7612 config/i386/i386-builtin-types.awk, config/i386/i386-protos.h,
7613 config/i386/i386.c, config/i386/i386.md, config/i386/predicates.md,
7614 config/i386/sse.md, config/i386/sync.md, config/ia64/ia64-protos.h,
7615 config/ia64/ia64.c, config/iq2000/iq2000-protos.h,
7616 config/iq2000/iq2000.c, config/iq2000/iq2000.md,
7617 config/lm32/lm32-protos.h, config/lm32/lm32.c,
7618 config/m32c/m32c-protos.h, config/m32c/m32c.c,
7619 config/m32r/m32r-protos.h, config/m32r/m32r.c,
7620 config/m68k/m68k-protos.h, config/m68k/m68k.c,
7621 config/mcore/mcore-protos.h, config/mcore/mcore.c,
7622 config/mcore/mcore.md, config/mep/mep-protos.h, config/mep/mep.c,
7623 config/microblaze/microblaze-protos.h, config/microblaze/microblaze.c,
7624 config/mips/mips-protos.h, config/mips/mips.c,
7625 config/mmix/mmix-protos.h, config/mmix/mmix.c,
7626 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
7627 config/moxie/moxie.c, config/msp430/msp430-protos.h,
7628 config/msp430/msp430.c, config/nds32/nds32-cost.c,
7629 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
7630 config/nds32/nds32-protos.h, config/nds32/nds32.c,
7631 config/nios2/nios2-protos.h, config/nios2/nios2.c,
7632 config/pa/pa-protos.h, config/pa/pa.c, config/pdp11/pdp11-protos.h,
7633 config/pdp11/pdp11.c, config/rl78/rl78-protos.h, config/rl78/rl78.c,
7634 config/rs6000/altivec.md, config/rs6000/rs6000-c.c,
7635 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
7636 config/rs6000/rs6000.h, config/rx/rx-protos.h, config/rx/rx.c,
7637 config/s390/predicates.md, config/s390/s390-protos.h,
7638 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
7639 config/sh/predicates.md, config/sh/sh-protos.h, config/sh/sh.c,
7640 config/sh/sh.md, config/sparc/predicates.md,
7641 config/sparc/sparc-protos.h, config/sparc/sparc.c,
7642 config/sparc/sparc.md, config/spu/spu-protos.h, config/spu/spu.c,
7643 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
7644 config/tilegx/tilegx-protos.h, config/tilegx/tilegx.c,
7645 config/tilegx/tilegx.md, config/tilepro/tilepro-protos.h,
7646 config/tilepro/tilepro.c, config/v850/v850-protos.h,
7647 config/v850/v850.c, config/v850/v850.md, config/vax/vax-protos.h,
7648 config/vax/vax.c, config/vms/vms-c.c, config/xtensa/xtensa-protos.h,
7649 config/xtensa/xtensa.c, coverage.c, cprop.c, cse.c, cselib.c, cselib.h,
7650 dbxout.c, ddg.c, df-problems.c, dfp.c, dfp.h, doc/md.texi,
7651 doc/rtl.texi, doc/tm.texi, doc/tm.texi.in, dojump.c, dse.c,
7652 dwarf2cfi.c, dwarf2out.c, dwarf2out.h, emit-rtl.c, emit-rtl.h,
7653 except.c, explow.c, expmed.c, expmed.h, expr.c, expr.h, final.c,
7654 fixed-value.c, fixed-value.h, fold-const.c, function.c, function.h,
7655 fwprop.c, gcse.c, gengenrtl.c, genmodes.c, genopinit.c, genoutput.c,
7656 genpreds.c, genrecog.c, gensupport.c, gimple-ssa-strength-reduction.c,
7657 graphite-clast-to-gimple.c, haifa-sched.c, hooks.c, hooks.h, ifcvt.c,
7658 internal-fn.c, ira-build.c, ira-color.c, ira-conflicts.c, ira-costs.c,
7659 ira-emit.c, ira-int.h, ira-lives.c, ira.c, ira.h, jump.c, langhooks.h,
7660 libfuncs.h, lists.c, loop-doloop.c, loop-invariant.c, loop-iv.c,
7661 loop-unroll.c, lower-subreg.c, lower-subreg.h, lra-assigns.c,
7662 lra-constraints.c, lra-eliminations.c, lra-int.h, lra-lives.c,
7663 lra-spills.c, lra.c, lra.h, machmode.h, omp-low.c, optabs.c, optabs.h,
7664 output.h, postreload.c, print-tree.c, read-rtl.c, real.c, real.h,
7665 recog.c, recog.h, ree.c, reg-stack.c, regcprop.c, reginfo.c,
7666 regrename.c, regs.h, reload.c, reload.h, reload1.c, rtl.c, rtl.h,
7667 rtlanal.c, rtlhash.c, rtlhooks-def.h, rtlhooks.c, sched-deps.c,
7668 sel-sched-dump.c, sel-sched-ir.c, sel-sched-ir.h, sel-sched.c,
7669 simplify-rtx.c, stmt.c, stor-layout.c, stor-layout.h, target.def,
7670 targhooks.c, targhooks.h, tree-affine.c, tree-call-cdce.c,
7671 tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-if-conv.c,
7672 tree-inline.c, tree-outof-ssa.c, tree-scalar-evolution.c,
7673 tree-ssa-address.c, tree-ssa-ccp.c, tree-ssa-loop-ivopts.c,
7674 tree-ssa-loop-ivopts.h, tree-ssa-loop-manip.c,
7675 tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c, tree-ssa-reassoc.c,
7676 tree-ssa-sccvn.c, tree-streamer-in.c, tree-switch-conversion.c,
7677 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop.c,
7678 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
7679 tree-vrp.c, tree.c, tree.h, tsan.c, ubsan.c, valtrack.c,
7680 var-tracking.c, varasm.c: Remove redundant enum from
7681 machine_mode.
7682 * gengtype.c (main): Treat machine_mode as a scalar typedef.
7683 * genmodes.c (emit_insn_modes_h): Hide inline functions if
7684 USED_FOR_TARGET.
7685
7686 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
7687
7688 PR rtl-optimization/63340 (part 2)
7689 * rtl.h (invalid_mode_change_p): Delete.
7690 (valid_mode_changes_for_regno): New function.
7691 * reginfo.c (invalid_mode_change_p): Delete.
7692 (valid_mode_changes_for_regno): New function.
7693 * ira-costs.c (setup_regno_cost_classes_by_aclass): Restrict the
7694 classes to registers that are allowed by valid_mode_changes_for_regno.
7695 (setup_regno_cost_classes_by_mode): Likewise.
7696 (print_allocno_costs): Remove invalid_mode_change_p test.
7697 (print_pseudo_costs, find_costs_and_classes): Likewise.
7698
7699 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
7700
7701 PR rtl-optimization/63340 (part 1)
7702 * ira-costs.c (all_cost_classes): New variable.
7703 (complete_cost_classes): New function, split out from...
7704 (setup_cost_classes): ...here.
7705 (initiate_regno_cost_classes): Set up all_cost_classes.
7706 (restrict_cost_classes): New function.
7707 (setup_regno_cost_classes_by_aclass): Restrict the cost classes to
7708 registers that are valid for the register's mode.
7709 (setup_regno_cost_classes_by_mode): Model the mode cache as a
7710 restriction of all_cost_classes to a particular mode.
7711 (print_allocno_costs): Remove contains_reg_of_mode check.
7712 (print_pseudo_costs, find_costs_and_classes): Likewise.
7713
7714 2014-10-29 Richard Biener <rguenther@suse.de>
7715
7716 PR tree-optimization/63666
7717 * tree-vect-slp.c (vect_get_mask_element): Properly handle
7718 accessing out-of-bound elements.
7719
7720 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7721 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7722 Anna Tikhonova <anna.tikhonova@intel.com>
7723 Ilya Tocar <ilya.tocar@intel.com>
7724 Andrey Turetskiy <andrey.turetskiy@intel.com>
7725 Ilya Verbin <ilya.verbin@intel.com>
7726 Kirill Yukhin <kirill.yukhin@intel.com>
7727 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7728
7729 * config/i386/i386.md
7730 (movhi_internal): Always detect maskmov.
7731 (movqi_internal): Fix target check.
7732
7733 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7734 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7735 Anna Tikhonova <anna.tikhonova@intel.com>
7736 Ilya Tocar <ilya.tocar@intel.com>
7737 Andrey Turetskiy <andrey.turetskiy@intel.com>
7738 Ilya Verbin <ilya.verbin@intel.com>
7739 Kirill Yukhin <kirill.yukhin@intel.com>
7740 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7741
7742 * config/i386/avx512bwintrin.h: Add new intrinsics.
7743 * config/i386/avx512vlbwintrin.h: Ditto.
7744 * config/i386/avx512vlintrin.h: Ditto.
7745
7746 2014-10-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
7747
7748 * godump.c (precision_to_units): New helper function.
7749 (go_append_artificial_name): Ditto.
7750 (go_append_decl_name): Ditto.
7751 (go_append_bitfield): Ditto.
7752 (go_get_uinttype_for_precision): Ditto.
7753 (go_append_padding): Ditto.
7754 (go_force_record_alignment): Ditto.
7755 (go_format_type): Represent unions with an array of uints of the size
7756 of the alignment in go. This fixes the 'random' size of the union's
7757 representation using just the first field.
7758 (go_format_type): Add argument that indicates whether a record is
7759 nested (used for generation of artificial go names).
7760 (go_output_fndecl): Adapt to new go_format_type signature.
7761 (go_output_typedef): Ditto.
7762 (go_output_var): Ditto.
7763 (go_output_var): Prefer to output type as alias (typedef).
7764 (go_format_type): Bitfields in records are simulated as arrays of bytes
7765 in go.
7766
7767 * godump.c (go_format_type): Fix handling of arrays with zero elements.
7768
7769 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
7770
7771 * cgraph.h: Flatten. Remove all include files.
7772 (symbol_table::initialize): Move to cgraph.c.
7773 * cgraph.c: Adjust include files.
7774 (symbol_table::initialize): Relocate from cgraph.h.
7775 * gengtype.c (open_base_files): Adjust include files.
7776 * gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
7777 included files.
7778 * ipa-inline.h: Remove all include files.
7779 * ipa-prop.h: Ditto.
7780 * ipa-reference.h: Ditto.
7781 * ipa-utils.h: Ditto:
7782 * lto-streamer.h: Remove cgraph.h from include list.
7783 * asan.c: Adjust include files.
7784 * auto-profile.c: Ditto.
7785 * bb-reorder.c: Ditto.
7786 * calls.c: Ditto.
7787 * cfgexpand.c: Ditto.
7788 * cgraphbuild.c: Ditto.
7789 * cgraphclones.c: Ditto.
7790 * cgraphunit.c: Ditto.
7791 * combine.c: Ditto.
7792 * coverage.c: Ditto.
7793 * data-streamer.c: Ditto.
7794 * data-streamer-in.c: Ditto.
7795 * data-streamer-out.c: Ditto.
7796 * dbxout.c: Ditto.
7797 * dwarf2out.c: Ditto.
7798 * except.c: Ditto.
7799 * expr.c: Ditto.
7800 * final.c: Ditto.
7801 * fold-const.c: Ditto.
7802 * ggc-page.c: Ditto.
7803 * gimple-fold.c: Ditto.
7804 * gimple-iterator.c: Ditto.
7805 * gimple-pretty-print.c: Ditto.
7806 * gimple-streamer-in.c: Ditto.
7807 * gimple-streamer-out.c: Ditto.
7808 * gimplify.c: Ditto.
7809 * ipa.c: Ditto.
7810 * ipa-comdats.c: Ditto.
7811 * ipa-cp.c: Ditto.
7812 * ipa-devirt.c: Ditto.
7813 * ipa-icf.c: Ditto.
7814 * ipa-icf-gimple.c: Ditto.
7815 * ipa-inline-analysis.c: Ditto.
7816 * ipa-inline.c: Ditto.
7817 * ipa-inline-transform.c: Ditto.
7818 * ipa-polymorphic-call.c: Ditto.
7819 * ipa-profile.c: Ditto.
7820 * ipa-prop.c: Ditto.
7821 * ipa-pure-const.c: Ditto.
7822 * ipa-ref.c: Ditto.
7823 * ipa-reference.c: Ditto.
7824 * ipa-split.c: Ditto.
7825 * ipa-utils.c: Ditto.
7826 * ipa-visibility.c: Ditto.
7827 * langhooks.c: Ditto.
7828 * lto-cgraph.c: Ditto.
7829 * lto-compress.c: Ditto.
7830 * lto-opts.c: Ditto.
7831 * lto-section-in.c: Ditto.
7832 * lto-section-out.c: Ditto.
7833 * lto-streamer.c: Ditto.
7834 * lto-streamer-in.c: Ditto.
7835 * lto-streamer-out.c: Ditto.
7836 * omp-low.c: Ditto.
7837 * opts-global.c: Ditto.
7838 * passes.c: Ditto.
7839 * predict.c: Ditto.
7840 * print-tree.c: Ditto.
7841 * profile.c: Ditto.
7842 * ree.c: Ditto.
7843 * stor-layout.c: Ditto.
7844 * symtab.c: Ditto.
7845 * toplev.c: Ditto.
7846 * trans-mem.c: Ditto.
7847 * tree.c: Ditto.
7848 * tree-cfg.c: Ditto.
7849 * tree-eh.c: Ditto.
7850 * tree-emutls.c: Ditto.
7851 * tree-inline.c: Ditto.
7852 * tree-nested.c: Ditto.
7853 * tree-pretty-print.c: Ditto.
7854 * tree-profile.c: Ditto.
7855 * tree-sra.c: Ditto.
7856 * tree-ssa-alias.c: Ditto.
7857 * tree-ssa-loop-ivcanon.c: Ditto.
7858 * tree-ssa-loop-ivopts.c: Ditto.
7859 * tree-ssa-pre.c: Ditto.
7860 * tree-ssa-structalias.c: Ditto.
7861 * tree-streamer.c: Ditto.
7862 * tree-streamer-in.c: Ditto.
7863 * tree-streamer-out.c: Ditto.
7864 * tree-switch-conversion.c: Ditto.
7865 * tree-tailcall.c: Ditto.
7866 * tree-vect-data-refs.c: Ditto.
7867 * tree-vectorizer.c: Ditto.
7868 * tree-vect-stmts.c: Ditto.
7869 * tsan.c: Ditto.
7870 * ubsan.c: Ditto.
7871 * value-prof.c: Ditto.
7872 * varasm.c: Ditto.
7873 * varpool.c: Ditto.
7874 * config/arm/arm.c: Ditto.
7875 * config/bfin/bfin.c: Ditto.
7876 * config/c6x/c6x.c: Ditto.
7877 * config/cris/cris.c: Ditto.
7878 * config/darwin.c: Ditto.
7879 * config/darwin-c.c: Ditto.
7880 * config/i386/i386.c: Ditto.
7881 * config/i386/winnt.c: Ditto.
7882 * config/microblaze/microblaze.c: Ditto.
7883 * config/mips/mips.c: Ditto.
7884 * config/rs6000/rs6000.c: Ditto.
7885 * config/rx/rx.c: Ditto.
7886
7887 2014-10-28 Richard Biener <rguenther@suse.de>
7888
7889 * gimple-fold.h (follow_single_use_edges): Declare.
7890 * gimple-fold.c (follow_single_use_edges): New function.
7891 (gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
7892 * tree-ssa-propagate.c
7893 (substitute_and_fold_dom_walker::before_dom_children): Allow
7894 following single-use edges when folding stmts we propagated into.
7895
7896 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7897 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7898 Anna Tikhonova <anna.tikhonova@intel.com>
7899 Ilya Tocar <ilya.tocar@intel.com>
7900 Andrey Turetskiy <andrey.turetskiy@intel.com>
7901 Ilya Verbin <ilya.verbin@intel.com>
7902 Kirill Yukhin <kirill.yukhin@intel.com>
7903 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7904
7905 * config/i386/avx512bwintrin.h: New.
7906 * config/i386/avx512dqintrin.h: Ditto.
7907 * config/i386/avx512vlbwintrin.h: Ditto.
7908 * config/i386/avx512vldqintrin.h: Ditto.
7909 * config/i386/avx512vlintrin.h: Ditto.
7910 * config/i386/immintrin.h: Include avx512vlintrin.h, avx512bwintrin.h,
7911 avx512dqintrin.h, avx512vlbwintrin.h, avx512vldqintrin.h.
7912
7913 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7914 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7915 Anna Tikhonova <anna.tikhonova@intel.com>
7916 Ilya Tocar <ilya.tocar@intel.com>
7917 Andrey Turetskiy <andrey.turetskiy@intel.com>
7918 Ilya Verbin <ilya.verbin@intel.com>
7919 Kirill Yukhin <kirill.yukhin@intel.com>
7920 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7921
7922 * config/i386/i386.c
7923 (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
7924 avx_shufpd256_mask, avx_vpermilv2df_mask.
7925
7926 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7927 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7928 Anna Tikhonova <anna.tikhonova@intel.com>
7929 Ilya Tocar <ilya.tocar@intel.com>
7930 Andrey Turetskiy <andrey.turetskiy@intel.com>
7931 Ilya Verbin <ilya.verbin@intel.com>
7932 Kirill Yukhin <kirill.yukhin@intel.com>
7933 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7934
7935 * config/i386/i386.c
7936 (ix86_init_mmx_sse_builtins):
7937 Define __builtin_ia32_gather3siv2df, __builtin_ia32_gather3siv4df,
7938 __builtin_ia32_gather3div2df, __builtin_ia32_gather3div4df,
7939 __builtin_ia32_gather3siv4sf, __builtin_ia32_gather3siv8sf,
7940 __builtin_ia32_gather3div4sf, __builtin_ia32_gather3div8sf,
7941 __builtin_ia32_gather3siv2di, __builtin_ia32_gather3siv4di,
7942 __builtin_ia32_gather3div2di, __builtin_ia32_gather3div4di,
7943 __builtin_ia32_gather3siv4si, __builtin_ia32_gather3siv8si,
7944 __builtin_ia32_gather3div4si, __builtin_ia32_gather3div8si,
7945 __builtin_ia32_gather3altsiv4df, __builtin_ia32_gather3altdiv8sf,
7946 __builtin_ia32_gather3altsiv4di, __builtin_ia32_gather3altdiv8si,
7947 __builtin_ia32_scattersiv8sf, __builtin_ia32_scattersiv4sf,
7948 __builtin_ia32_scattersiv4df, __builtin_ia32_scattersiv2df,
7949 __builtin_ia32_scatterdiv8sf, __builtin_ia32_scatterdiv4sf,
7950 __builtin_ia32_scatterdiv4df, __builtin_ia32_scatterdiv2df,
7951 __builtin_ia32_scattersiv8si, __builtin_ia32_scattersiv4si,
7952 __builtin_ia32_scattersiv4di, __builtin_ia32_scattersiv2di,
7953 __builtin_ia32_scatterdiv8si, __builtin_ia32_scatterdiv4si,
7954 __builtin_ia32_scatterdiv4di, __builtin_ia32_scatterdiv2di.
7955
7956 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7957 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7958 Anna Tikhonova <anna.tikhonova@intel.com>
7959 Ilya Tocar <ilya.tocar@intel.com>
7960 Andrey Turetskiy <andrey.turetskiy@intel.com>
7961 Ilya Verbin <ilya.verbin@intel.com>
7962 Kirill Yukhin <kirill.yukhin@intel.com>
7963 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7964
7965 * config/i386/i386.c
7966 (ix86_builtins): Add IX86_BUILTIN_GATHER3ALTSIV4DF,
7967 IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTSIV4DI,
7968 IX86_BUILTIN_GATHER3ALTDIV8SI.
7969 (ix86_expand_builtin):
7970 Handle IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTDIV8SI,
7971 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV4DI,
7972 IX86_BUILTIN_SCATTERDIV2DF, IX86_BUILTIN_SCATTERDIV4DF,
7973 IX86_BUILTIN_GATHER3ALTSIV4DI, IX86_BUILTIN_GATHER3ALTSIV4DF,
7974 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
7975 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3DIV8SI,
7976 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV4DI,
7977 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3SIV8SF,
7978 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
7979 IX86_BUILTIN_GATHER3DIV2DI, IX86_BUILTIN_GATHER3DIV4DI,
7980 IX86_BUILTIN_SCATTERDIV4SF, IX86_BUILTIN_SCATTERSIV2DI,
7981 IX86_BUILTIN_GATHER3SIV2DI, IX86_BUILTIN_GATHER3SIV4SI,
7982 IX86_BUILTIN_GATHER3SIV4SF, IX86_BUILTIN_GATHER3SIV2DF,
7983 IX86_BUILTIN_SCATTERSIV2DF, IX86_BUILTIN_SCATTERDIV4SI,
7984 IX86_BUILTIN_SCATTERSIV4SF, IX86_BUILTIN_SCATTERSIV4SI,
7985 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
7986 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV8SF,
7987 IX86_BUILTIN_GATHER3DIV4SF, IX86_BUILTIN_SCATTERDIV8SF.
7988 (ix86_vectorize_builtin_gather): Update V2DFmode, V4DFmode, V2DImode,
7989 V4DImode, V4SFmode, V8SFmode, V4SImode, V8SImode.
7990
7991 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7992 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7993 Anna Tikhonova <anna.tikhonova@intel.com>
7994 Ilya Tocar <ilya.tocar@intel.com>
7995 Andrey Turetskiy <andrey.turetskiy@intel.com>
7996 Ilya Verbin <ilya.verbin@intel.com>
7997 Kirill Yukhin <kirill.yukhin@intel.com>
7998 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7999
8000 * config/i386/i386-builtin-types.def
8001 (SHORT): New.
8002 (V32HI): Ditto.
8003 (V12QI): Ditto.
8004 (V14QI): Ditto.
8005 (V32SI): Ditto.
8006 (V8UDI): Ditto.
8007 (V16USI): Ditto.
8008 (V32UHI): Ditto.
8009 (PSHORT): Ditto.
8010 (PV32QI): Ditto.
8011 (PV32HI): Ditto.
8012 (PV64QI): Ditto.
8013 (PCV8HI): Ditto.
8014 (PCV16QI): Ditto.
8015 (PCV16HI): Ditto.
8016 (PCV32QI): Ditto.
8017 (PCV32HI): Ditto.
8018 (PCV64QI): Ditto.
8019 (V4SF_FTYPE_V2DF_V4SF_QI): Ditto.
8020 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
8021 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
8022 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
8023 (V16SF_FTYPE_V16HI): Ditto.
8024 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
8025 (V16SF_FTYPE_V16SI): Ditto.
8026 (V4DI_FTYPE_V4DI): Ditto.
8027 (V16SI_FTYPE_V16SF): Ditto.
8028 (V8DI_FTYPE_PV2DI): Ditto.
8029 (V8DF_FTYPE_PV2DF): Ditto.
8030 (V4DI_FTYPE_PV2DI): Ditto.
8031 (V4DF_FTYPE_PV2DF): Ditto.
8032 (V16SI_FTYPE_PV2SI): Ditto.
8033 (V16SF_FTYPE_PV2SF): Ditto.
8034 (V8SF_FTYPE_FLOAT): Ditto.
8035 (V4SF_FTYPE_FLOAT): Ditto.
8036 (V4DF_FTYPE_DOUBLE): Ditto.
8037 (V8SF_FTYPE_PV4SF): Ditto.
8038 (V8SI_FTYPE_PV4SI): Ditto.
8039 (V4SI_FTYPE_PV2SI): Ditto.
8040 (V8SF_FTYPE_PV2SF): Ditto.
8041 (V8SI_FTYPE_PV2SI): Ditto.
8042 (V16SF_FTYPE_PV8SF): Ditto.
8043 (V16SI_FTYPE_PV8SI): Ditto.
8044 (V8DI_FTYPE_V8SF): Ditto.
8045 (V4DI_FTYPE_V4SF): Ditto.
8046 (V2DI_FTYPE_V4SF): Ditto.
8047 (V64QI_FTYPE_QI): Ditto.
8048 (V32HI_FTYPE_HI): Ditto.
8049 (V16UHI_FTYPE_V16UHI): Ditto.
8050 (V32UHI_FTYPE_V32UHI): Ditto.
8051 (V2UDI_FTYPE_V2UDI): Ditto.
8052 (V4UDI_FTYPE_V4UDI): Ditto.
8053 (V8UDI_FTYPE_V8UDI): Ditto.
8054 (V4USI_FTYPE_V4USI): Ditto.
8055 (V16USI_FTYPE_V16USI): Ditto.
8056 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
8057 (V2DF_FTYPE_V8DF_INT): Ditto.
8058 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
8059 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
8060 (V8DF_FTYPE_V8DF_INT): Ditto.
8061 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
8062 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
8063 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
8064 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
8065 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
8066 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
8067 (V8DI_FTYPE_V8DI_INT): Ditto.
8068 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
8069 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
8070 (V8SF_FTYPE_V16SF_INT): Ditto.
8071 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
8072 (V64QI_FTYPE_V32HI_V32HI): Ditto.
8073 (V32HI_FTYPE_V16SI_V16SI): Ditto.
8074 (V8DF_FTYPE_V8DF_V2DF_INT): Ditto.
8075 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
8076 (V8DF_FTYPE_V8DF_V8DF_INT): Ditto.
8077 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT): Ditto.
8078 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT): Ditto.
8079 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
8080 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
8081 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
8082 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT): Ditto.
8083 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
8084 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
8085 (V32HI_FTYPE_V64QI_V64QI): Ditto.
8086 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
8087 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
8088 (V32HI_FTYPE_V32HI_V32HI): Ditto.
8089 (V32HI_FTYPE_V32HI_INT): Ditto.
8090 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
8091 (V16SI_FTYPE_V32HI_V32HI): Ditto.
8092 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
8093 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
8094 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
8095 (V8SI_FTYPE_V16SI_INT): Ditto.
8096 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
8097 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
8098 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
8099 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
8100 (V8DI_FTYPE_V8DI_V4DI_INT): Ditto.
8101 (V8DI_FTYPE_V8DI_V2DI_INT): Ditto.
8102 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
8103 (V8DI_FTYPE_V16SI_V16SI): Ditto.
8104 (V8DI_FTYPE_V64QI_V64QI): Ditto.
8105 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
8106 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
8107 (V2DI_FTYPE_V8DI_INT): Ditto.
8108 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
8109 (QI_FTYPE_QI): Ditto.
8110 (SI_FTYPE_SI): Ditto.
8111 (DI_FTYPE_DI): Ditto.
8112 (HI_FTYPE_V16QI): Ditto.
8113 (SI_FTYPE_V32QI): Ditto.
8114 (DI_FTYPE_V64QI): Ditto.
8115 (QI_FTYPE_V8HI): Ditto.
8116 (HI_FTYPE_V16HI): Ditto.
8117 (SI_FTYPE_V32HI): Ditto.
8118 (QI_FTYPE_V4SI): Ditto.
8119 (QI_FTYPE_V8SI): Ditto.
8120 (HI_FTYPE_V16SI): Ditto.
8121 (QI_FTYPE_V2DI): Ditto.
8122 (QI_FTYPE_V4DI): Ditto.
8123 (QI_FTYPE_V8DI): Ditto.
8124 (V16QI_FTYPE_HI): Ditto.
8125 (V32QI_FTYPE_SI): Ditto.
8126 (V64QI_FTYPE_DI): Ditto.
8127 (V8HI_FTYPE_QI): Ditto.
8128 (V16HI_FTYPE_HI): Ditto.
8129 (V32HI_FTYPE_SI): Ditto.
8130 (V4SI_FTYPE_QI): Ditto.
8131 (V4SI_FTYPE_HI): Ditto.
8132 (V8SI_FTYPE_QI): Ditto.
8133 (V8SI_FTYPE_HI): Ditto.
8134 (V2DI_FTYPE_QI): Ditto.
8135 (V4DI_FTYPE_QI): Ditto.
8136 (QI_FTYPE_QI_QI): Ditto.
8137 (SI_FTYPE_SI_SI): Ditto.
8138 (DI_FTYPE_DI_DI): Ditto.
8139 (QI_FTYPE_QI_INT): Ditto.
8140 (SI_FTYPE_SI_INT): Ditto.
8141 (DI_FTYPE_DI_INT): Ditto.
8142 (HI_FTYPE_V16QI_V16QI): Ditto.
8143 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
8144 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
8145 (SI_FTYPE_V32QI_V32QI): Ditto.
8146 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
8147 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
8148 (DI_FTYPE_V64QI_V64QI): Ditto.
8149 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
8150 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
8151 (QI_FTYPE_V8HI_V8HI): Ditto.
8152 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
8153 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
8154 (HI_FTYPE_V16HI_V16HI): Ditto.
8155 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
8156 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
8157 (SI_FTYPE_V32HI_V32HI): Ditto.
8158 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
8159 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
8160 (QI_FTYPE_V4SI_V4SI): Ditto.
8161 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
8162 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
8163 (QI_FTYPE_V8SI_V8SI): Ditto.
8164 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
8165 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
8166 (QI_FTYPE_V2DI_V2DI): Ditto.
8167 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
8168 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
8169 (QI_FTYPE_V4DI_V4DI): Ditto.
8170 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
8171 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
8172 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
8173 (V4DF_FTYPE_V4DF_V4DI_INT): Ditto.
8174 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
8175 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
8176 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
8177 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
8178 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
8179 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
8180 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
8181 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
8182 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
8183 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
8184 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
8185 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
8186 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
8187 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
8188 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
8189 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
8190 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
8191 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
8192 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
8193 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
8194 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
8195 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
8196 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
8197 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
8198 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
8199 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
8200 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
8201 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
8202 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
8203 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
8204 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
8205 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
8206 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
8207 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
8208 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
8209 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
8210 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
8211 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
8212 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
8213 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
8214 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
8215 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
8216 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
8217 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
8218 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
8219 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
8220 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
8221 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
8222 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
8223 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
8224 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
8225 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
8226 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
8227 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
8228 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
8229 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
8230 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
8231 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
8232 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
8233 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
8234 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
8235 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
8236 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
8237 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
8238 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
8239 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
8240 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
8241 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
8242 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
8243 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
8244 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
8245 (V32HI_FTYPE_V64QI_V64QI_INT): Ditto.
8246 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
8247 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
8248 (V16HI_FTYPE_V32QI_V32QI_INT): Ditto.
8249 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
8250 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
8251 (V8HI_FTYPE_V16QI_V16QI_INT): Ditto.
8252 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
8253 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
8254 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
8255 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
8256 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
8257 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
8258 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
8259 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
8260 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
8261 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
8262 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
8263 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
8264 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
8265 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
8266 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
8267 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
8268 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
8269 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
8270 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
8271 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
8272 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
8273 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
8274 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
8275 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
8276 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
8277 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
8278 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
8279 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
8280 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
8281 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
8282 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
8283 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
8284 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
8285 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
8286 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
8287 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
8288 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
8289 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
8290 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
8291 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
8292 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
8293 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
8294 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
8295 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
8296 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
8297 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
8298 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
8299 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
8300 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
8301 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
8302 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
8303 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
8304 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
8305 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
8306 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
8307 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
8308 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
8309 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
8310 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
8311 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
8312 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
8313 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
8314 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
8315 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
8316 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
8317 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
8318 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
8319 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
8320 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
8321 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
8322 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
8323 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
8324 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
8325 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
8326 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
8327 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
8328 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
8329 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
8330 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
8331 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
8332 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
8333 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
8334 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
8335 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
8336 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
8337 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
8338 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
8339 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
8340 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
8341 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
8342 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
8343 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
8344 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
8345 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
8346 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
8347 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
8348 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
8349 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
8350 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
8351 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
8352 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
8353 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
8354 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
8355 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
8356 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
8357 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
8358 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
8359 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
8360 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
8361 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
8362 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
8363 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
8364 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
8365 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
8366 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
8367 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
8368 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
8369 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
8370 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
8371 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
8372 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
8373 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
8374 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
8375 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
8376 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
8377 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
8378 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
8379 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
8380 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
8381 (QI_FTYPE_V8DF_INT): Ditto.
8382 (QI_FTYPE_V4DF_INT): Ditto.
8383 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
8384 (QI_FTYPE_V2DF_INT): Ditto.
8385 (HI_FTYPE_V16SF_INT): Ditto.
8386 (QI_FTYPE_V8SF_INT): Ditto.
8387 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
8388 (QI_FTYPE_V4SF_INT): Ditto.
8389 (QI_FTYPE_V8DF_INT_QI): Ditto.
8390 (QI_FTYPE_V4DF_INT_QI): Ditto.
8391 (QI_FTYPE_V2DF_INT_QI): Ditto.
8392 (HI_FTYPE_V16SF_INT_HI): Ditto.
8393 (QI_FTYPE_V8SF_INT_QI): Ditto.
8394 (QI_FTYPE_V4SF_INT_QI): Ditto.
8395 (V8DI_FTYPE_V8DF_V8DI_QI_INT): Ditto.
8396 (V8DI_FTYPE_V8SF_V8DI_QI_INT): Ditto.
8397 (V8DF_FTYPE_V8DI_V8DF_QI_INT): Ditto.
8398 (V8SF_FTYPE_V8DI_V8SF_QI_INT): Ditto.
8399 (V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_QI_INT): Ditto.
8400 (V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_QI_INT): Ditto.
8401 (V4DF_FTYPE_V4DF_PCDOUBLE_V8SI_QI_INT): Ditto.
8402 (V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_QI_INT): Ditto.
8403 (V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_QI_INT): Ditto.
8404 (V4SF_FTYPE_V4SF_PCFLOAT_V4SI_QI_INT): Ditto.
8405 (V8SF_FTYPE_V8SF_PCFLOAT_V8SI_QI_INT): Ditto.
8406 (V4SF_FTYPE_V4SF_PCFLOAT_V2DI_QI_INT): Ditto.
8407 (V4SF_FTYPE_V4SF_PCFLOAT_V4DI_QI_INT): Ditto.
8408 (V8SF_FTYPE_V8SF_PCFLOAT_V4DI_QI_INT): Ditto.
8409 (V2DI_FTYPE_V2DI_PCINT64_V4SI_QI_INT): Ditto.
8410 (V4DI_FTYPE_V4DI_PCINT64_V4SI_QI_INT): Ditto.
8411 (V4DI_FTYPE_V4DI_PCINT64_V8SI_QI_INT): Ditto.
8412 (V2DI_FTYPE_V2DI_PCINT64_V2DI_QI_INT): Ditto.
8413 (V4DI_FTYPE_V4DI_PCINT64_V4DI_QI_INT): Ditto.
8414 (V4SI_FTYPE_V4SI_PCINT_V4SI_QI_INT): Ditto.
8415 (V8SI_FTYPE_V8SI_PCINT_V8SI_QI_INT): Ditto.
8416 (V4SI_FTYPE_V4SI_PCINT_V2DI_QI_INT): Ditto.
8417 (V4SI_FTYPE_V4SI_PCINT_V4DI_QI_INT): Ditto.
8418 (V8SI_FTYPE_V8SI_PCINT_V4DI_QI_INT): Ditto.
8419 (VOID_FTYPE_PFLOAT_QI_V8SI_V8SF_INT): Ditto.
8420 (VOID_FTYPE_PFLOAT_QI_V4SI_V4SF_INT): Ditto.
8421 (VOID_FTYPE_PDOUBLE_QI_V4SI_V4DF_INT): Ditto.
8422 (VOID_FTYPE_PDOUBLE_QI_V4SI_V2DF_INT): Ditto.
8423 (VOID_FTYPE_PFLOAT_QI_V4DI_V4SF_INT): Ditto.
8424 (VOID_FTYPE_PFLOAT_QI_V2DI_V4SF_INT): Ditto.
8425 (VOID_FTYPE_PDOUBLE_QI_V4DI_V4DF_INT): Ditto.
8426 (VOID_FTYPE_PDOUBLE_QI_V2DI_V2DF_INT): Ditto.
8427 (VOID_FTYPE_PINT_QI_V8SI_V8SI_INT): Ditto.
8428 (VOID_FTYPE_PINT_QI_V4SI_V4SI_INT): Ditto.
8429 (VOID_FTYPE_PLONGLONG_QI_V4SI_V4DI_INT): Ditto.
8430 (VOID_FTYPE_PLONGLONG_QI_V4SI_V2DI_INT): Ditto.
8431 (VOID_FTYPE_PINT_QI_V4DI_V4SI_INT): Ditto.
8432 (VOID_FTYPE_PINT_QI_V2DI_V4SI_INT): Ditto.
8433 (VOID_FTYPE_PLONGLONG_QI_V4DI_V4DI_INT): Ditto.
8434 (VOID_FTYPE_PLONGLONG_QI_V2DI_V2DI_INT): Ditto.
8435 (V8DI_FTYPE_V8DI_INT): Ditto.
8436 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
8437 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
8438 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
8439 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
8440 (V2DF_FTYPE_ V2DF_ V2DF_ V2DI_ INT_ QI): Remove.
8441 (V4SF_FTYPE_ V4SF_ V2DF_ V4SF_ QI): Ditto.
8442 (V4SF_FTYPE_ V4SF_ V4SF_ V4SF_ QI): Ditto.
8443 (V2DF_FTYPE_ PCDOUBLE_ V2DF_ QI): Ditto.
8444 (V4SF_FTYPE_ PCFLOAT_ V4SF_ QI): Ditto.
8445 (V16QI_FTYPE_ V16SI_ V16QI_ HI): Ditto.
8446 (V16QI_FTYPE_ V8DI_ V16QI_ QI): Ditto.
8447 (V4SF_FTYPE_ V4SF_ V4SF_ INT_ V4SF_ QI): Ditto.
8448 (V2DF_FTYPE_ V2DF_ V2DF_ INT_ V2DF_ QI): Ditto.
8449 (V8DI_FTYPE_ V16SI_ V16SI_ V8DI_ QI): Ditto.
8450 * config/i386/i386.c (ix86_builtins):
8451 Add IX86_BUILTIN_PMOVUSQD256_MEM, IX86_BUILTIN_PMOVUSQD128_MEM,
8452 IX86_BUILTIN_PMOVSQD256_MEM, IX86_BUILTIN_PMOVSQD128_MEM,
8453 IX86_BUILTIN_PMOVQD256_MEM, IX86_BUILTIN_PMOVQD128_MEM,
8454 IX86_BUILTIN_PMOVUSQW256_MEM, IX86_BUILTIN_PMOVUSQW128_MEM,
8455 IX86_BUILTIN_PMOVSQW256_MEM, IX86_BUILTIN_PMOVSQW128_MEM,
8456 IX86_BUILTIN_PMOVQW256_MEM, IX86_BUILTIN_PMOVQW128_MEM,
8457 IX86_BUILTIN_PMOVUSQB256_MEM, IX86_BUILTIN_PMOVUSQB128_MEM,
8458 IX86_BUILTIN_PMOVSQB256_MEM, IX86_BUILTIN_PMOVSQB128_MEM,
8459 IX86_BUILTIN_PMOVQB256_MEM, IX86_BUILTIN_PMOVQB128_MEM,
8460 IX86_BUILTIN_PMOVUSDW256_MEM, IX86_BUILTIN_PMOVUSDW128_MEM,
8461 IX86_BUILTIN_PMOVSDW256_MEM, IX86_BUILTIN_PMOVSDW128_MEM,
8462 IX86_BUILTIN_PMOVDW256_MEM, IX86_BUILTIN_PMOVDW128_MEM,
8463 IX86_BUILTIN_PMOVUSDB256_MEM, IX86_BUILTIN_PMOVUSDB128_MEM,
8464 IX86_BUILTIN_PMOVSDB256_MEM, IX86_BUILTIN_PMOVSDB128_MEM,
8465 IX86_BUILTIN_PMOVDB256_MEM, IX86_BUILTIN_PMOVDB128_MEM,
8466 IX86_BUILTIN_MOVDQA64LOAD256_MASK, IX86_BUILTIN_MOVDQA64LOAD128_MASK,
8467 IX86_BUILTIN_MOVDQA32LOAD256_MASK, IX86_BUILTIN_MOVDQA32LOAD128_MASK,
8468 IX86_BUILTIN_MOVDQA64STORE256_MASK, IX86_BUILTIN_MOVDQA64STORE128_MASK,
8469 IX86_BUILTIN_MOVDQA32STORE256_MASK, IX86_BUILTIN_MOVDQA32STORE128_MASK,
8470 IX86_BUILTIN_LOADAPD256_MASK, IX86_BUILTIN_LOADAPD128_MASK,
8471 IX86_BUILTIN_LOADAPS256_MASK, IX86_BUILTIN_LOADAPS128_MASK,
8472 IX86_BUILTIN_STOREAPD256_MASK, IX86_BUILTIN_STOREAPD128_MASK,
8473 IX86_BUILTIN_STOREAPS256_MASK, IX86_BUILTIN_STOREAPS128_MASK,
8474 IX86_BUILTIN_LOADUPD256_MASK, IX86_BUILTIN_LOADUPD128_MASK,
8475 IX86_BUILTIN_LOADUPS256_MASK, IX86_BUILTIN_LOADUPS128_MASK,
8476 IX86_BUILTIN_STOREUPD256_MASK, IX86_BUILTIN_STOREUPD128_MASK,
8477 IX86_BUILTIN_STOREUPS256_MASK, IX86_BUILTIN_STOREUPS128_MASK,
8478 IX86_BUILTIN_LOADDQUDI256_MASK, IX86_BUILTIN_LOADDQUDI128_MASK,
8479 IX86_BUILTIN_LOADDQUSI256_MASK, IX86_BUILTIN_LOADDQUSI128_MASK,
8480 IX86_BUILTIN_LOADDQUHI256_MASK, IX86_BUILTIN_LOADDQUHI128_MASK,
8481 IX86_BUILTIN_LOADDQUQI256_MASK, IX86_BUILTIN_LOADDQUQI128_MASK,
8482 IX86_BUILTIN_STOREDQUDI256_MASK, IX86_BUILTIN_STOREDQUDI128_MASK,
8483 IX86_BUILTIN_STOREDQUSI256_MASK, IX86_BUILTIN_STOREDQUSI128_MASK,
8484 IX86_BUILTIN_STOREDQUHI256_MASK, IX86_BUILTIN_STOREDQUHI128_MASK,
8485 IX86_BUILTIN_STOREDQUQI256_MASK, IX86_BUILTIN_STOREDQUQI128_MASK,
8486 IX86_BUILTIN_COMPRESSPDSTORE256, IX86_BUILTIN_COMPRESSPDSTORE128,
8487 IX86_BUILTIN_COMPRESSPSSTORE256, IX86_BUILTIN_COMPRESSPSSTORE128,
8488 IX86_BUILTIN_PCOMPRESSQSTORE256, IX86_BUILTIN_PCOMPRESSQSTORE128,
8489 IX86_BUILTIN_PCOMPRESSDSTORE256, IX86_BUILTIN_PCOMPRESSDSTORE128,
8490 IX86_BUILTIN_EXPANDPDLOAD256, IX86_BUILTIN_EXPANDPDLOAD128,
8491 IX86_BUILTIN_EXPANDPSLOAD256, IX86_BUILTIN_EXPANDPSLOAD128,
8492 IX86_BUILTIN_PEXPANDQLOAD256, IX86_BUILTIN_PEXPANDQLOAD128,
8493 IX86_BUILTIN_PEXPANDDLOAD256, IX86_BUILTIN_PEXPANDDLOAD128,
8494 IX86_BUILTIN_EXPANDPDLOAD256Z, IX86_BUILTIN_EXPANDPDLOAD128Z,
8495 IX86_BUILTIN_EXPANDPSLOAD256Z, IX86_BUILTIN_EXPANDPSLOAD128Z,
8496 IX86_BUILTIN_PEXPANDQLOAD256Z, IX86_BUILTIN_PEXPANDQLOAD128Z,
8497 IX86_BUILTIN_PEXPANDDLOAD256Z, IX86_BUILTIN_PEXPANDDLOAD128Z,
8498 IX86_BUILTIN_PALIGNR256_MASK, IX86_BUILTIN_PALIGNR128_MASK,
8499 IX86_BUILTIN_MOVDQA64_256_MASK, IX86_BUILTIN_MOVDQA64_128_MASK,
8500 IX86_BUILTIN_MOVDQA32_256_MASK, IX86_BUILTIN_MOVDQA32_128_MASK,
8501 IX86_BUILTIN_MOVAPD256_MASK, IX86_BUILTIN_MOVAPD128_MASK,
8502 IX86_BUILTIN_MOVAPS256_MASK, IX86_BUILTIN_MOVAPS128_MASK,
8503 IX86_BUILTIN_MOVDQUHI256_MASK, IX86_BUILTIN_MOVDQUHI128_MASK,
8504 IX86_BUILTIN_MOVDQUQI256_MASK, IX86_BUILTIN_MOVDQUQI128_MASK,
8505 IX86_BUILTIN_MINPS128_MASK, IX86_BUILTIN_MAXPS128_MASK,
8506 IX86_BUILTIN_MINPD128_MASK, IX86_BUILTIN_MAXPD128_MASK,
8507 IX86_BUILTIN_MAXPD256_MASK, IX86_BUILTIN_MAXPS256_MASK,
8508 IX86_BUILTIN_MINPD256_MASK, IX86_BUILTIN_MINPS256_MASK,
8509 IX86_BUILTIN_MULPS128_MASK, IX86_BUILTIN_DIVPS128_MASK,
8510 IX86_BUILTIN_MULPD128_MASK, IX86_BUILTIN_DIVPD128_MASK,
8511 IX86_BUILTIN_DIVPD256_MASK, IX86_BUILTIN_DIVPS256_MASK,
8512 IX86_BUILTIN_MULPD256_MASK, IX86_BUILTIN_MULPS256_MASK,
8513 IX86_BUILTIN_ADDPD128_MASK, IX86_BUILTIN_ADDPD256_MASK,
8514 IX86_BUILTIN_ADDPS128_MASK, IX86_BUILTIN_ADDPS256_MASK,
8515 IX86_BUILTIN_SUBPD128_MASK, IX86_BUILTIN_SUBPD256_MASK,
8516 IX86_BUILTIN_SUBPS128_MASK, IX86_BUILTIN_SUBPS256_MASK,
8517 IX86_BUILTIN_XORPD256_MASK, IX86_BUILTIN_XORPD128_MASK,
8518 IX86_BUILTIN_XORPS256_MASK, IX86_BUILTIN_XORPS128_MASK,
8519 IX86_BUILTIN_ORPD256_MASK, IX86_BUILTIN_ORPD128_MASK,
8520 IX86_BUILTIN_ORPS256_MASK, IX86_BUILTIN_ORPS128_MASK,
8521 IX86_BUILTIN_BROADCASTF32x2_256, IX86_BUILTIN_BROADCASTI32x2_256,
8522 IX86_BUILTIN_BROADCASTI32x2_128, IX86_BUILTIN_BROADCASTF64X2_256,
8523 IX86_BUILTIN_BROADCASTI64X2_256, IX86_BUILTIN_BROADCASTF32X4_256,
8524 IX86_BUILTIN_BROADCASTI32X4_256, IX86_BUILTIN_EXTRACTF32X4_256,
8525 IX86_BUILTIN_EXTRACTI32X4_256, IX86_BUILTIN_DBPSADBW256,
8526 IX86_BUILTIN_DBPSADBW128, IX86_BUILTIN_CVTTPD2QQ256,
8527 IX86_BUILTIN_CVTTPD2QQ128, IX86_BUILTIN_CVTTPD2UQQ256,
8528 IX86_BUILTIN_CVTTPD2UQQ128, IX86_BUILTIN_CVTPD2QQ256,
8529 IX86_BUILTIN_CVTPD2QQ128, IX86_BUILTIN_CVTPD2UQQ256,
8530 IX86_BUILTIN_CVTPD2UQQ128, IX86_BUILTIN_CVTPD2UDQ256_MASK,
8531 IX86_BUILTIN_CVTPD2UDQ128_MASK, IX86_BUILTIN_CVTTPS2QQ256,
8532 IX86_BUILTIN_CVTTPS2QQ128, IX86_BUILTIN_CVTTPS2UQQ256,
8533 IX86_BUILTIN_CVTTPS2UQQ128, IX86_BUILTIN_CVTTPS2DQ256_MASK,
8534 IX86_BUILTIN_CVTTPS2DQ128_MASK, IX86_BUILTIN_CVTTPS2UDQ256,
8535 IX86_BUILTIN_CVTTPS2UDQ128, IX86_BUILTIN_CVTTPD2DQ256_MASK,
8536 IX86_BUILTIN_CVTTPD2DQ128_MASK, IX86_BUILTIN_CVTTPD2UDQ256_MASK,
8537 IX86_BUILTIN_CVTTPD2UDQ128_MASK, IX86_BUILTIN_CVTPD2DQ256_MASK,
8538 IX86_BUILTIN_CVTPD2DQ128_MASK, IX86_BUILTIN_CVTDQ2PD256_MASK,
8539 IX86_BUILTIN_CVTDQ2PD128_MASK, IX86_BUILTIN_CVTUDQ2PD256_MASK,
8540 IX86_BUILTIN_CVTUDQ2PD128_MASK, IX86_BUILTIN_CVTDQ2PS256_MASK,
8541 IX86_BUILTIN_CVTDQ2PS128_MASK, IX86_BUILTIN_CVTUDQ2PS256_MASK,
8542 IX86_BUILTIN_CVTUDQ2PS128_MASK, IX86_BUILTIN_CVTPS2PD256_MASK,
8543 IX86_BUILTIN_CVTPS2PD128_MASK, IX86_BUILTIN_PBROADCASTB256_MASK,
8544 IX86_BUILTIN_PBROADCASTB256_GPR_MASK, IX86_BUILTIN_PBROADCASTB128_MASK,
8545 IX86_BUILTIN_PBROADCASTB128_GPR_MASK, IX86_BUILTIN_PBROADCASTW256_MASK,
8546 IX86_BUILTIN_PBROADCASTW256_GPR_MASK, IX86_BUILTIN_PBROADCASTW128_MASK,
8547 IX86_BUILTIN_PBROADCASTW128_GPR_MASK, IX86_BUILTIN_PBROADCASTD256_MASK,
8548 IX86_BUILTIN_PBROADCASTD256_GPR_MASK, IX86_BUILTIN_PBROADCASTD128_MASK,
8549 IX86_BUILTIN_PBROADCASTD128_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MASK,
8550 IX86_BUILTIN_PBROADCASTQ256_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
8551 IX86_BUILTIN_PBROADCASTQ128_MASK, IX86_BUILTIN_PBROADCASTQ128_GPR_MASK,
8552 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK, IX86_BUILTIN_BROADCASTSS256,
8553 IX86_BUILTIN_BROADCASTSS128, IX86_BUILTIN_BROADCASTSD256,
8554 IX86_BUILTIN_EXTRACTF64X2_256, IX86_BUILTIN_EXTRACTI64X2_256,
8555 IX86_BUILTIN_INSERTF32X4_256, IX86_BUILTIN_INSERTI32X4_256,
8556 IX86_BUILTIN_PMOVSXBW256_MASK, IX86_BUILTIN_PMOVSXBW128_MASK,
8557 IX86_BUILTIN_PMOVSXBD256_MASK, IX86_BUILTIN_PMOVSXBD128_MASK,
8558 IX86_BUILTIN_PMOVSXBQ256_MASK, IX86_BUILTIN_PMOVSXBQ128_MASK,
8559 IX86_BUILTIN_PMOVSXWD256_MASK, IX86_BUILTIN_PMOVSXWD128_MASK,
8560 IX86_BUILTIN_PMOVSXWQ256_MASK, IX86_BUILTIN_PMOVSXWQ128_MASK,
8561 IX86_BUILTIN_PMOVSXDQ256_MASK, IX86_BUILTIN_PMOVSXDQ128_MASK,
8562 IX86_BUILTIN_PMOVZXBW256_MASK, IX86_BUILTIN_PMOVZXBW128_MASK,
8563 IX86_BUILTIN_PMOVZXBD256_MASK, IX86_BUILTIN_PMOVZXBD128_MASK,
8564 IX86_BUILTIN_PMOVZXBQ256_MASK, IX86_BUILTIN_PMOVZXBQ128_MASK,
8565 IX86_BUILTIN_PMOVZXWD256_MASK, IX86_BUILTIN_PMOVZXWD128_MASK,
8566 IX86_BUILTIN_PMOVZXWQ256_MASK, IX86_BUILTIN_PMOVZXWQ128_MASK,
8567 IX86_BUILTIN_PMOVZXDQ256_MASK, IX86_BUILTIN_PMOVZXDQ128_MASK,
8568 IX86_BUILTIN_REDUCEPD256_MASK, IX86_BUILTIN_REDUCEPD128_MASK,
8569 IX86_BUILTIN_REDUCEPS256_MASK, IX86_BUILTIN_REDUCEPS128_MASK,
8570 IX86_BUILTIN_REDUCESD_MASK, IX86_BUILTIN_REDUCESS_MASK,
8571 IX86_BUILTIN_VPERMVARHI256_MASK, IX86_BUILTIN_VPERMVARHI128_MASK,
8572 IX86_BUILTIN_VPERMT2VARHI256, IX86_BUILTIN_VPERMT2VARHI256_MASKZ,
8573 IX86_BUILTIN_VPERMT2VARHI128, IX86_BUILTIN_VPERMT2VARHI128_MASKZ,
8574 IX86_BUILTIN_VPERMI2VARHI256, IX86_BUILTIN_VPERMI2VARHI128,
8575 IX86_BUILTIN_RCP14PD256, IX86_BUILTIN_RCP14PD128,
8576 IX86_BUILTIN_RCP14PS256, IX86_BUILTIN_RCP14PS128,
8577 IX86_BUILTIN_RSQRT14PD256_MASK, IX86_BUILTIN_RSQRT14PD128_MASK,
8578 IX86_BUILTIN_RSQRT14PS256_MASK, IX86_BUILTIN_RSQRT14PS128_MASK,
8579 IX86_BUILTIN_SQRTPD256_MASK, IX86_BUILTIN_SQRTPD128_MASK,
8580 IX86_BUILTIN_SQRTPS256_MASK, IX86_BUILTIN_SQRTPS128_MASK,
8581 IX86_BUILTIN_PADDB128_MASK, IX86_BUILTIN_PADDW128_MASK,
8582 IX86_BUILTIN_PADDD128_MASK, IX86_BUILTIN_PADDQ128_MASK,
8583 IX86_BUILTIN_PSUBB128_MASK, IX86_BUILTIN_PSUBW128_MASK,
8584 IX86_BUILTIN_PSUBD128_MASK, IX86_BUILTIN_PSUBQ128_MASK,
8585 IX86_BUILTIN_PADDSB128_MASK, IX86_BUILTIN_PADDSW128_MASK,
8586 IX86_BUILTIN_PSUBSB128_MASK, IX86_BUILTIN_PSUBSW128_MASK,
8587 IX86_BUILTIN_PADDUSB128_MASK, IX86_BUILTIN_PADDUSW128_MASK,
8588 IX86_BUILTIN_PSUBUSB128_MASK, IX86_BUILTIN_PSUBUSW128_MASK,
8589 IX86_BUILTIN_PADDB256_MASK, IX86_BUILTIN_PADDW256_MASK,
8590 IX86_BUILTIN_PADDD256_MASK, IX86_BUILTIN_PADDQ256_MASK,
8591 IX86_BUILTIN_PADDSB256_MASK, IX86_BUILTIN_PADDSW256_MASK,
8592 IX86_BUILTIN_PADDUSB256_MASK, IX86_BUILTIN_PADDUSW256_MASK,
8593 IX86_BUILTIN_PSUBB256_MASK, IX86_BUILTIN_PSUBW256_MASK,
8594 IX86_BUILTIN_PSUBD256_MASK, IX86_BUILTIN_PSUBQ256_MASK,
8595 IX86_BUILTIN_PSUBSB256_MASK, IX86_BUILTIN_PSUBSW256_MASK,
8596 IX86_BUILTIN_PSUBUSB256_MASK, IX86_BUILTIN_PSUBUSW256_MASK,
8597 IX86_BUILTIN_SHUF_F64x2_256, IX86_BUILTIN_SHUF_I64x2_256,
8598 IX86_BUILTIN_SHUF_I32x4_256, IX86_BUILTIN_SHUF_F32x4_256,
8599 IX86_BUILTIN_PMOVWB128, IX86_BUILTIN_PMOVWB256,
8600 IX86_BUILTIN_PMOVSWB128, IX86_BUILTIN_PMOVSWB256,
8601 IX86_BUILTIN_PMOVUSWB128, IX86_BUILTIN_PMOVUSWB256,
8602 IX86_BUILTIN_PMOVDB128, IX86_BUILTIN_PMOVDB256,
8603 IX86_BUILTIN_PMOVSDB128, IX86_BUILTIN_PMOVSDB256,
8604 IX86_BUILTIN_PMOVUSDB128, IX86_BUILTIN_PMOVUSDB256,
8605 IX86_BUILTIN_PMOVDW128, IX86_BUILTIN_PMOVDW256,
8606 IX86_BUILTIN_PMOVSDW128, IX86_BUILTIN_PMOVSDW256,
8607 IX86_BUILTIN_PMOVUSDW128, IX86_BUILTIN_PMOVUSDW256,
8608 IX86_BUILTIN_PMOVQB128, IX86_BUILTIN_PMOVQB256,
8609 IX86_BUILTIN_PMOVSQB128, IX86_BUILTIN_PMOVSQB256,
8610 IX86_BUILTIN_PMOVUSQB128, IX86_BUILTIN_PMOVUSQB256,
8611 IX86_BUILTIN_PMOVQW128, IX86_BUILTIN_PMOVQW256,
8612 IX86_BUILTIN_PMOVSQW128, IX86_BUILTIN_PMOVSQW256,
8613 IX86_BUILTIN_PMOVUSQW128, IX86_BUILTIN_PMOVUSQW256,
8614 IX86_BUILTIN_PMOVQD128, IX86_BUILTIN_PMOVQD256,
8615 IX86_BUILTIN_PMOVSQD128, IX86_BUILTIN_PMOVSQD256,
8616 IX86_BUILTIN_PMOVUSQD128, IX86_BUILTIN_PMOVUSQD256,
8617 IX86_BUILTIN_RANGEPD256, IX86_BUILTIN_RANGEPD128,
8618 IX86_BUILTIN_RANGEPS256, IX86_BUILTIN_RANGEPS128,
8619 IX86_BUILTIN_GETEXPPS256, IX86_BUILTIN_GETEXPPD256,
8620 IX86_BUILTIN_GETEXPPS128, IX86_BUILTIN_GETEXPPD128,
8621 IX86_BUILTIN_FIXUPIMMPD256_MASK, IX86_BUILTIN_FIXUPIMMPD256_MASKZ,
8622 IX86_BUILTIN_FIXUPIMMPS256_MASK, IX86_BUILTIN_FIXUPIMMPS256_MASKZ,
8623 IX86_BUILTIN_FIXUPIMMPD128_MASK, IX86_BUILTIN_FIXUPIMMPD128_MASKZ,
8624 IX86_BUILTIN_FIXUPIMMPS128_MASK, IX86_BUILTIN_FIXUPIMMPS128_MASKZ,
8625 IX86_BUILTIN_PABSQ256, IX86_BUILTIN_PABSQ128,
8626 IX86_BUILTIN_PABSD256_MASK, IX86_BUILTIN_PABSD128_MASK,
8627 IX86_BUILTIN_PMULHRSW256_MASK, IX86_BUILTIN_PMULHRSW128_MASK,
8628 IX86_BUILTIN_PMULHUW128_MASK, IX86_BUILTIN_PMULHUW256_MASK,
8629 IX86_BUILTIN_PMULHW256_MASK, IX86_BUILTIN_PMULHW128_MASK,
8630 IX86_BUILTIN_PMULLW256_MASK, IX86_BUILTIN_PMULLW128_MASK,
8631 IX86_BUILTIN_PMULLQ256, IX86_BUILTIN_PMULLQ128,
8632 IX86_BUILTIN_ANDPD256_MASK, IX86_BUILTIN_ANDPD128_MASK,
8633 IX86_BUILTIN_ANDPS256_MASK, IX86_BUILTIN_ANDPS128_MASK,
8634 IX86_BUILTIN_ANDNPD256_MASK, IX86_BUILTIN_ANDNPD128_MASK,
8635 IX86_BUILTIN_ANDNPS256_MASK, IX86_BUILTIN_ANDNPS128_MASK,
8636 IX86_BUILTIN_PSLLWI128_MASK, IX86_BUILTIN_PSLLDI128_MASK,
8637 IX86_BUILTIN_PSLLQI128_MASK, IX86_BUILTIN_PSLLW128_MASK,
8638 IX86_BUILTIN_PSLLD128_MASK, IX86_BUILTIN_PSLLQ128_MASK,
8639 IX86_BUILTIN_PSLLWI256_MASK , IX86_BUILTIN_PSLLW256_MASK,
8640 IX86_BUILTIN_PSLLDI256_MASK, IX86_BUILTIN_PSLLD256_MASK,
8641 IX86_BUILTIN_PSLLQI256_MASK, IX86_BUILTIN_PSLLQ256_MASK,
8642 IX86_BUILTIN_PSRADI128_MASK, IX86_BUILTIN_PSRAD128_MASK,
8643 IX86_BUILTIN_PSRADI256_MASK, IX86_BUILTIN_PSRAD256_MASK,
8644 IX86_BUILTIN_PSRAQI128_MASK, IX86_BUILTIN_PSRAQ128_MASK,
8645 IX86_BUILTIN_PSRAQI256_MASK, IX86_BUILTIN_PSRAQ256_MASK,
8646 IX86_BUILTIN_PANDD256, IX86_BUILTIN_PANDD128,
8647 IX86_BUILTIN_PSRLDI128_MASK, IX86_BUILTIN_PSRLD128_MASK,
8648 IX86_BUILTIN_PSRLDI256_MASK, IX86_BUILTIN_PSRLD256_MASK,
8649 IX86_BUILTIN_PSRLQI128_MASK, IX86_BUILTIN_PSRLQ128_MASK,
8650 IX86_BUILTIN_PSRLQI256_MASK, IX86_BUILTIN_PSRLQ256_MASK,
8651 IX86_BUILTIN_PANDQ256, IX86_BUILTIN_PANDQ128,
8652 IX86_BUILTIN_PANDND256, IX86_BUILTIN_PANDND128,
8653 IX86_BUILTIN_PANDNQ256, IX86_BUILTIN_PANDNQ128,
8654 IX86_BUILTIN_PORD256, IX86_BUILTIN_PORD128,
8655 IX86_BUILTIN_PORQ256, IX86_BUILTIN_PORQ128,
8656 IX86_BUILTIN_PXORD256, IX86_BUILTIN_PXORD128,
8657 IX86_BUILTIN_PXORQ256, IX86_BUILTIN_PXORQ128,
8658 IX86_BUILTIN_PACKSSWB256_MASK, IX86_BUILTIN_PACKSSWB128_MASK,
8659 IX86_BUILTIN_PACKUSWB256_MASK, IX86_BUILTIN_PACKUSWB128_MASK,
8660 IX86_BUILTIN_RNDSCALEPS256, IX86_BUILTIN_RNDSCALEPD256,
8661 IX86_BUILTIN_RNDSCALEPS128, IX86_BUILTIN_RNDSCALEPD128,
8662 IX86_BUILTIN_VTERNLOGQ256_MASK, IX86_BUILTIN_VTERNLOGQ256_MASKZ,
8663 IX86_BUILTIN_VTERNLOGD256_MASK, IX86_BUILTIN_VTERNLOGD256_MASKZ,
8664 IX86_BUILTIN_VTERNLOGQ128_MASK, IX86_BUILTIN_VTERNLOGQ128_MASKZ,
8665 IX86_BUILTIN_VTERNLOGD128_MASK, IX86_BUILTIN_VTERNLOGD128_MASKZ,
8666 IX86_BUILTIN_SCALEFPD256, IX86_BUILTIN_SCALEFPS256,
8667 IX86_BUILTIN_SCALEFPD128, IX86_BUILTIN_SCALEFPS128,
8668 IX86_BUILTIN_VFMADDPD256_MASK, IX86_BUILTIN_VFMADDPD256_MASK3,
8669 IX86_BUILTIN_VFMADDPD256_MASKZ, IX86_BUILTIN_VFMADDPD128_MASK,
8670 IX86_BUILTIN_VFMADDPD128_MASK3, IX86_BUILTIN_VFMADDPD128_MASKZ,
8671 IX86_BUILTIN_VFMADDPS256_MASK, IX86_BUILTIN_VFMADDPS256_MASK3,
8672 IX86_BUILTIN_VFMADDPS256_MASKZ, IX86_BUILTIN_VFMADDPS128_MASK,
8673 IX86_BUILTIN_VFMADDPS128_MASK3, IX86_BUILTIN_VFMADDPS128_MASKZ,
8674 IX86_BUILTIN_VFMSUBPD256_MASK3, IX86_BUILTIN_VFMSUBPD128_MASK3,
8675 IX86_BUILTIN_VFMSUBPS256_MASK3, IX86_BUILTIN_VFMSUBPS128_MASK3,
8676 IX86_BUILTIN_VFNMADDPD256_MASK, IX86_BUILTIN_VFNMADDPD128_MASK,
8677 IX86_BUILTIN_VFNMADDPS256_MASK, IX86_BUILTIN_VFNMADDPS128_MASK,
8678 IX86_BUILTIN_VFNMSUBPD256_MASK, IX86_BUILTIN_VFNMSUBPD256_MASK3,
8679 IX86_BUILTIN_VFNMSUBPD128_MASK, IX86_BUILTIN_VFNMSUBPD128_MASK3,
8680 IX86_BUILTIN_VFNMSUBPS256_MASK, IX86_BUILTIN_VFNMSUBPS256_MASK3,
8681 IX86_BUILTIN_VFNMSUBPS128_MASK, IX86_BUILTIN_VFNMSUBPS128_MASK3,
8682 IX86_BUILTIN_VFMADDSUBPD256_MASK, IX86_BUILTIN_VFMADDSUBPD256_MASK3,
8683 IX86_BUILTIN_VFMADDSUBPD256_MASKZ, IX86_BUILTIN_VFMADDSUBPD128_MASK,
8684 IX86_BUILTIN_VFMADDSUBPD128_MASK3, IX86_BUILTIN_VFMADDSUBPD128_MASKZ,
8685 IX86_BUILTIN_VFMADDSUBPS256_MASK, IX86_BUILTIN_VFMADDSUBPS256_MASK3,
8686 IX86_BUILTIN_VFMADDSUBPS256_MASKZ, IX86_BUILTIN_VFMADDSUBPS128_MASK,
8687 IX86_BUILTIN_VFMADDSUBPS128_MASK3, IX86_BUILTIN_VFMADDSUBPS128_MASKZ,
8688 IX86_BUILTIN_VFMSUBADDPD256_MASK3, IX86_BUILTIN_VFMSUBADDPD128_MASK3,
8689 IX86_BUILTIN_VFMSUBADDPS256_MASK3, IX86_BUILTIN_VFMSUBADDPS128_MASK3,
8690 IX86_BUILTIN_INSERTF64X2_256, IX86_BUILTIN_INSERTI64X2_256,
8691 IX86_BUILTIN_PSRAVV16HI, IX86_BUILTIN_PSRAVV8HI,
8692 IX86_BUILTIN_PMADDUBSW256_MASK, IX86_BUILTIN_PMADDUBSW128_MASK,
8693 IX86_BUILTIN_PMADDWD256_MASK, IX86_BUILTIN_PMADDWD128_MASK,
8694 IX86_BUILTIN_PSRLVV16HI, IX86_BUILTIN_PSRLVV8HI,
8695 IX86_BUILTIN_CVTPS2DQ256_MASK, IX86_BUILTIN_CVTPS2DQ128_MASK,
8696 IX86_BUILTIN_CVTPS2UDQ256, IX86_BUILTIN_CVTPS2UDQ128,
8697 IX86_BUILTIN_CVTPS2QQ256, IX86_BUILTIN_CVTPS2QQ128,
8698 IX86_BUILTIN_CVTPS2UQQ256, IX86_BUILTIN_CVTPS2UQQ128,
8699 IX86_BUILTIN_GETMANTPS256, IX86_BUILTIN_GETMANTPS128,
8700 IX86_BUILTIN_GETMANTPD256, IX86_BUILTIN_GETMANTPD128,
8701 IX86_BUILTIN_MOVDDUP256_MASK, IX86_BUILTIN_MOVDDUP128_MASK,
8702 IX86_BUILTIN_MOVSHDUP256_MASK, IX86_BUILTIN_MOVSHDUP128_MASK,
8703 IX86_BUILTIN_MOVSLDUP256_MASK, IX86_BUILTIN_MOVSLDUP128_MASK,
8704 IX86_BUILTIN_CVTQQ2PS256, IX86_BUILTIN_CVTQQ2PS128,
8705 IX86_BUILTIN_CVTUQQ2PS256, IX86_BUILTIN_CVTUQQ2PS128,
8706 IX86_BUILTIN_CVTQQ2PD256, IX86_BUILTIN_CVTQQ2PD128,
8707 IX86_BUILTIN_CVTUQQ2PD256, IX86_BUILTIN_CVTUQQ2PD128,
8708 IX86_BUILTIN_VPERMT2VARQ256, IX86_BUILTIN_VPERMT2VARQ256_MASKZ,
8709 IX86_BUILTIN_VPERMT2VARD256, IX86_BUILTIN_VPERMT2VARD256_MASKZ,
8710 IX86_BUILTIN_VPERMI2VARQ256, IX86_BUILTIN_VPERMI2VARD256,
8711 IX86_BUILTIN_VPERMT2VARPD256, IX86_BUILTIN_VPERMT2VARPD256_MASKZ,
8712 IX86_BUILTIN_VPERMT2VARPS256, IX86_BUILTIN_VPERMT2VARPS256_MASKZ,
8713 IX86_BUILTIN_VPERMI2VARPD256, IX86_BUILTIN_VPERMI2VARPS256,
8714 IX86_BUILTIN_VPERMT2VARQ128, IX86_BUILTIN_VPERMT2VARQ128_MASKZ,
8715 IX86_BUILTIN_VPERMT2VARD128, IX86_BUILTIN_VPERMT2VARD128_MASKZ,
8716 IX86_BUILTIN_VPERMI2VARQ128, IX86_BUILTIN_VPERMI2VARD128,
8717 IX86_BUILTIN_VPERMT2VARPD128, IX86_BUILTIN_VPERMT2VARPD128_MASKZ,
8718 IX86_BUILTIN_VPERMT2VARPS128, IX86_BUILTIN_VPERMT2VARPS128_MASKZ,
8719 IX86_BUILTIN_VPERMI2VARPD128, IX86_BUILTIN_VPERMI2VARPS128,
8720 IX86_BUILTIN_PSHUFB256_MASK, IX86_BUILTIN_PSHUFB128_MASK,
8721 IX86_BUILTIN_PSHUFHW256_MASK, IX86_BUILTIN_PSHUFHW128_MASK,
8722 IX86_BUILTIN_PSHUFLW256_MASK, IX86_BUILTIN_PSHUFLW128_MASK,
8723 IX86_BUILTIN_PSHUFD256_MASK, IX86_BUILTIN_PSHUFD128_MASK,
8724 IX86_BUILTIN_SHUFPD256_MASK, IX86_BUILTIN_SHUFPD128_MASK,
8725 IX86_BUILTIN_SHUFPS256_MASK, IX86_BUILTIN_SHUFPS128_MASK,
8726 IX86_BUILTIN_PROLVQ256, IX86_BUILTIN_PROLVQ128,
8727 IX86_BUILTIN_PROLQ256, IX86_BUILTIN_PROLQ128,
8728 IX86_BUILTIN_PRORVQ256, IX86_BUILTIN_PRORVQ128,
8729 IX86_BUILTIN_PRORQ256, IX86_BUILTIN_PRORQ128,
8730 IX86_BUILTIN_PSRAVQ128, IX86_BUILTIN_PSRAVQ256,
8731 IX86_BUILTIN_PSLLVV4DI_MASK, IX86_BUILTIN_PSLLVV2DI_MASK,
8732 IX86_BUILTIN_PSLLVV8SI_MASK, IX86_BUILTIN_PSLLVV4SI_MASK,
8733 IX86_BUILTIN_PSRAVV8SI_MASK, IX86_BUILTIN_PSRAVV4SI_MASK,
8734 IX86_BUILTIN_PSRLVV4DI_MASK, IX86_BUILTIN_PSRLVV2DI_MASK,
8735 IX86_BUILTIN_PSRLVV8SI_MASK, IX86_BUILTIN_PSRLVV4SI_MASK,
8736 IX86_BUILTIN_PSRAWI256_MASK, IX86_BUILTIN_PSRAW256_MASK,
8737 IX86_BUILTIN_PSRAWI128_MASK, IX86_BUILTIN_PSRAW128_MASK,
8738 IX86_BUILTIN_PSRLWI256_MASK, IX86_BUILTIN_PSRLW256_MASK,
8739 IX86_BUILTIN_PSRLWI128_MASK, IX86_BUILTIN_PSRLW128_MASK,
8740 IX86_BUILTIN_PRORVD256, IX86_BUILTIN_PROLVD256,
8741 IX86_BUILTIN_PRORD256, IX86_BUILTIN_PROLD256,
8742 IX86_BUILTIN_PRORVD128, IX86_BUILTIN_PROLVD128,
8743 IX86_BUILTIN_PRORD128, IX86_BUILTIN_PROLD128,
8744 IX86_BUILTIN_FPCLASSPD256, IX86_BUILTIN_FPCLASSPD128,
8745 IX86_BUILTIN_FPCLASSSD, IX86_BUILTIN_FPCLASSPS256,
8746 IX86_BUILTIN_FPCLASSPS128, IX86_BUILTIN_FPCLASSSS,
8747 IX86_BUILTIN_CVTB2MASK128, IX86_BUILTIN_CVTB2MASK256,
8748 IX86_BUILTIN_CVTW2MASK128, IX86_BUILTIN_CVTW2MASK256,
8749 IX86_BUILTIN_CVTD2MASK128, IX86_BUILTIN_CVTD2MASK256,
8750 IX86_BUILTIN_CVTQ2MASK128, IX86_BUILTIN_CVTQ2MASK256,
8751 IX86_BUILTIN_CVTMASK2B128, IX86_BUILTIN_CVTMASK2B256,
8752 IX86_BUILTIN_CVTMASK2W128, IX86_BUILTIN_CVTMASK2W256,
8753 IX86_BUILTIN_CVTMASK2D128, IX86_BUILTIN_CVTMASK2D256,
8754 IX86_BUILTIN_CVTMASK2Q128, IX86_BUILTIN_CVTMASK2Q256,
8755 IX86_BUILTIN_PCMPEQB128_MASK, IX86_BUILTIN_PCMPEQB256_MASK,
8756 IX86_BUILTIN_PCMPEQW128_MASK, IX86_BUILTIN_PCMPEQW256_MASK,
8757 IX86_BUILTIN_PCMPEQD128_MASK, IX86_BUILTIN_PCMPEQD256_MASK,
8758 IX86_BUILTIN_PCMPEQQ128_MASK, IX86_BUILTIN_PCMPEQQ256_MASK,
8759 IX86_BUILTIN_PCMPGTB128_MASK, IX86_BUILTIN_PCMPGTB256_MASK,
8760 IX86_BUILTIN_PCMPGTW128_MASK, IX86_BUILTIN_PCMPGTW256_MASK,
8761 IX86_BUILTIN_PCMPGTD128_MASK, IX86_BUILTIN_PCMPGTD256_MASK,
8762 IX86_BUILTIN_PCMPGTQ128_MASK, IX86_BUILTIN_PCMPGTQ256_MASK,
8763 IX86_BUILTIN_PTESTMB128, IX86_BUILTIN_PTESTMB256,
8764 IX86_BUILTIN_PTESTMW128, IX86_BUILTIN_PTESTMW256,
8765 IX86_BUILTIN_PTESTMD128, IX86_BUILTIN_PTESTMD256,
8766 IX86_BUILTIN_PTESTMQ128, IX86_BUILTIN_PTESTMQ256,
8767 IX86_BUILTIN_PTESTNMB128, IX86_BUILTIN_PTESTNMB256,
8768 IX86_BUILTIN_PTESTNMW128, IX86_BUILTIN_PTESTNMW256,
8769 IX86_BUILTIN_PTESTNMD128, IX86_BUILTIN_PTESTNMD256,
8770 IX86_BUILTIN_PTESTNMQ128, IX86_BUILTIN_PTESTNMQ256,
8771 IX86_BUILTIN_PBROADCASTMB128, IX86_BUILTIN_PBROADCASTMB256,
8772 IX86_BUILTIN_PBROADCASTMW128, IX86_BUILTIN_PBROADCASTMW256,
8773 IX86_BUILTIN_COMPRESSPD256, IX86_BUILTIN_COMPRESSPD128,
8774 IX86_BUILTIN_COMPRESSPS256, IX86_BUILTIN_COMPRESSPS128,
8775 IX86_BUILTIN_PCOMPRESSQ256, IX86_BUILTIN_PCOMPRESSQ128,
8776 IX86_BUILTIN_PCOMPRESSD256, IX86_BUILTIN_PCOMPRESSD128,
8777 IX86_BUILTIN_EXPANDPD256, IX86_BUILTIN_EXPANDPD128,
8778 IX86_BUILTIN_EXPANDPS256, IX86_BUILTIN_EXPANDPS128,
8779 IX86_BUILTIN_PEXPANDQ256, IX86_BUILTIN_PEXPANDQ128,
8780 IX86_BUILTIN_PEXPANDD256, IX86_BUILTIN_PEXPANDD128,
8781 IX86_BUILTIN_EXPANDPD256Z, IX86_BUILTIN_EXPANDPD128Z,
8782 IX86_BUILTIN_EXPANDPS256Z, IX86_BUILTIN_EXPANDPS128Z,
8783 IX86_BUILTIN_PEXPANDQ256Z, IX86_BUILTIN_PEXPANDQ128Z,
8784 IX86_BUILTIN_PEXPANDD256Z, IX86_BUILTIN_PEXPANDD128Z,
8785 IX86_BUILTIN_PMAXSD256_MASK, IX86_BUILTIN_PMINSD256_MASK,
8786 IX86_BUILTIN_PMAXUD256_MASK, IX86_BUILTIN_PMINUD256_MASK,
8787 IX86_BUILTIN_PMAXSD128_MASK, IX86_BUILTIN_PMINSD128_MASK,
8788 IX86_BUILTIN_PMAXUD128_MASK, IX86_BUILTIN_PMINUD128_MASK,
8789 IX86_BUILTIN_PMAXSQ256_MASK, IX86_BUILTIN_PMINSQ256_MASK,
8790 IX86_BUILTIN_PMAXUQ256_MASK, IX86_BUILTIN_PMINUQ256_MASK,
8791 IX86_BUILTIN_PMAXSQ128_MASK, IX86_BUILTIN_PMINSQ128_MASK,
8792 IX86_BUILTIN_PMAXUQ128_MASK, IX86_BUILTIN_PMINUQ128_MASK,
8793 IX86_BUILTIN_PMINSB256_MASK, IX86_BUILTIN_PMINUB256_MASK,
8794 IX86_BUILTIN_PMAXSB256_MASK, IX86_BUILTIN_PMAXUB256_MASK,
8795 IX86_BUILTIN_PMINSB128_MASK, IX86_BUILTIN_PMINUB128_MASK,
8796 IX86_BUILTIN_PMAXSB128_MASK, IX86_BUILTIN_PMAXUB128_MASK,
8797 IX86_BUILTIN_PMINSW256_MASK, IX86_BUILTIN_PMINUW256_MASK,
8798 IX86_BUILTIN_PMAXSW256_MASK, IX86_BUILTIN_PMAXUW256_MASK,
8799 IX86_BUILTIN_PMINSW128_MASK, IX86_BUILTIN_PMINUW128_MASK,
8800 IX86_BUILTIN_PMAXSW128_MASK, IX86_BUILTIN_PMAXUW128_MASK,
8801 IX86_BUILTIN_VPCONFLICTQ256, IX86_BUILTIN_VPCONFLICTD256,
8802 IX86_BUILTIN_VPCLZCNTQ256, IX86_BUILTIN_VPCLZCNTD256,
8803 IX86_BUILTIN_UNPCKHPD256_MASK, IX86_BUILTIN_UNPCKHPD128_MASK,
8804 IX86_BUILTIN_UNPCKHPS256_MASK, IX86_BUILTIN_UNPCKHPS128_MASK,
8805 IX86_BUILTIN_UNPCKLPD256_MASK, IX86_BUILTIN_UNPCKLPD128_MASK,
8806 IX86_BUILTIN_UNPCKLPS256_MASK, IX86_BUILTIN_VPCONFLICTQ128,
8807 IX86_BUILTIN_VPCONFLICTD128, IX86_BUILTIN_VPCLZCNTQ128,
8808 IX86_BUILTIN_VPCLZCNTD128, IX86_BUILTIN_UNPCKLPS128_MASK,
8809 IX86_BUILTIN_ALIGND256, IX86_BUILTIN_ALIGNQ256,
8810 IX86_BUILTIN_ALIGND128, IX86_BUILTIN_ALIGNQ128,
8811 IX86_BUILTIN_CVTPS2PH256_MASK, IX86_BUILTIN_CVTPS2PH_MASK,
8812 IX86_BUILTIN_CVTPH2PS_MASK, IX86_BUILTIN_CVTPH2PS256_MASK,
8813 IX86_BUILTIN_PUNPCKHDQ128_MASK, IX86_BUILTIN_PUNPCKHDQ256_MASK,
8814 IX86_BUILTIN_PUNPCKHQDQ128_MASK, IX86_BUILTIN_PUNPCKHQDQ256_MASK,
8815 IX86_BUILTIN_PUNPCKLDQ128_MASK, IX86_BUILTIN_PUNPCKLDQ256_MASK,
8816 IX86_BUILTIN_PUNPCKLQDQ128_MASK, IX86_BUILTIN_PUNPCKLQDQ256_MASK,
8817 IX86_BUILTIN_PUNPCKHBW128_MASK, IX86_BUILTIN_PUNPCKHBW256_MASK,
8818 IX86_BUILTIN_PUNPCKHWD128_MASK, IX86_BUILTIN_PUNPCKHWD256_MASK,
8819 IX86_BUILTIN_PUNPCKLBW128_MASK, IX86_BUILTIN_PUNPCKLBW256_MASK,
8820 IX86_BUILTIN_PUNPCKLWD128_MASK, IX86_BUILTIN_PUNPCKLWD256_MASK,
8821 IX86_BUILTIN_PSLLVV16HI, IX86_BUILTIN_PSLLVV8HI,
8822 IX86_BUILTIN_PACKSSDW256_MASK, IX86_BUILTIN_PACKSSDW128_MASK,
8823 IX86_BUILTIN_PACKUSDW256_MASK, IX86_BUILTIN_PACKUSDW128_MASK,
8824 IX86_BUILTIN_PAVGB256_MASK, IX86_BUILTIN_PAVGW256_MASK,
8825 IX86_BUILTIN_PAVGB128_MASK, IX86_BUILTIN_PAVGW128_MASK,
8826 IX86_BUILTIN_VPERMVARSF256_MASK, IX86_BUILTIN_VPERMVARDF256_MASK,
8827 IX86_BUILTIN_VPERMDF256_MASK, IX86_BUILTIN_PABSB256_MASK,
8828 IX86_BUILTIN_PABSB128_MASK, IX86_BUILTIN_PABSW256_MASK,
8829 IX86_BUILTIN_PABSW128_MASK, IX86_BUILTIN_VPERMILVARPD_MASK,
8830 IX86_BUILTIN_VPERMILVARPS_MASK, IX86_BUILTIN_VPERMILVARPD256_MASK,
8831 IX86_BUILTIN_VPERMILVARPS256_MASK, IX86_BUILTIN_VPERMILPD_MASK,
8832 IX86_BUILTIN_VPERMILPS_MASK, IX86_BUILTIN_VPERMILPD256_MASK,
8833 IX86_BUILTIN_VPERMILPS256_MASK, IX86_BUILTIN_BLENDMQ256,
8834 IX86_BUILTIN_BLENDMD256, IX86_BUILTIN_BLENDMPD256,
8835 IX86_BUILTIN_BLENDMPS256, IX86_BUILTIN_BLENDMQ128,
8836 IX86_BUILTIN_BLENDMD128, IX86_BUILTIN_BLENDMPD128,
8837 IX86_BUILTIN_BLENDMPS128, IX86_BUILTIN_BLENDMW256,
8838 IX86_BUILTIN_BLENDMB256, IX86_BUILTIN_BLENDMW128,
8839 IX86_BUILTIN_BLENDMB128, IX86_BUILTIN_PMULLD256_MASK,
8840 IX86_BUILTIN_PMULLD128_MASK, IX86_BUILTIN_PMULUDQ256_MASK,
8841 IX86_BUILTIN_PMULDQ256_MASK, IX86_BUILTIN_PMULDQ128_MASK,
8842 IX86_BUILTIN_PMULUDQ128_MASK, IX86_BUILTIN_CVTPD2PS256_MASK,
8843 IX86_BUILTIN_CVTPD2PS_MASK, IX86_BUILTIN_VPERMVARSI256_MASK,
8844 IX86_BUILTIN_VPERMVARDI256_MASK, IX86_BUILTIN_VPERMDI256_MASK,
8845 IX86_BUILTIN_CMPQ256, IX86_BUILTIN_CMPD256,
8846 IX86_BUILTIN_UCMPQ256, IX86_BUILTIN_UCMPD256,
8847 IX86_BUILTIN_CMPB256, IX86_BUILTIN_CMPW256,
8848 IX86_BUILTIN_UCMPB256, IX86_BUILTIN_UCMPW256,
8849 IX86_BUILTIN_CMPPD256_MASK, IX86_BUILTIN_CMPPS256_MASK,
8850 IX86_BUILTIN_CMPQ128, IX86_BUILTIN_CMPD128,
8851 IX86_BUILTIN_UCMPQ128, IX86_BUILTIN_UCMPD128,
8852 IX86_BUILTIN_CMPB128, IX86_BUILTIN_CMPW128,
8853 IX86_BUILTIN_UCMPB128, IX86_BUILTIN_UCMPW128,
8854 IX86_BUILTIN_CMPPD128_MASK, IX86_BUILTIN_CMPPS128_MASK,
8855 IX86_BUILTIN_GATHER3SIV8SF, IX86_BUILTIN_GATHER3SIV4SF,
8856 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV2DF,
8857 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3DIV4SF,
8858 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
8859 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3SIV4SI,
8860 IX86_BUILTIN_GATHER3SIV4DI, IX86_BUILTIN_GATHER3SIV2DI,
8861 IX86_BUILTIN_GATHER3DIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
8862 IX86_BUILTIN_GATHER3DIV4DI, IX86_BUILTIN_GATHER3DIV2DI,
8863 IX86_BUILTIN_SCATTERSIV8SF, IX86_BUILTIN_SCATTERSIV4SF,
8864 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV2DF,
8865 IX86_BUILTIN_SCATTERDIV8SF, IX86_BUILTIN_SCATTERDIV4SF,
8866 IX86_BUILTIN_SCATTERDIV4DF, IX86_BUILTIN_SCATTERDIV2DF,
8867 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV4SI,
8868 IX86_BUILTIN_SCATTERSIV4DI, IX86_BUILTIN_SCATTERSIV2DI,
8869 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_SCATTERDIV4SI,
8870 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
8871 IX86_BUILTIN_RANGESD128, IX86_BUILTIN_RANGESS128,
8872 IX86_BUILTIN_KUNPCKWD, IX86_BUILTIN_KUNPCKDQ,
8873 IX86_BUILTIN_BROADCASTF32x2_512, IX86_BUILTIN_BROADCASTI32x2_512,
8874 IX86_BUILTIN_BROADCASTF64X2_512, IX86_BUILTIN_BROADCASTI64X2_512,
8875 IX86_BUILTIN_BROADCASTF32X8_512, IX86_BUILTIN_BROADCASTI32X8_512,
8876 IX86_BUILTIN_EXTRACTF64X2_512, IX86_BUILTIN_EXTRACTF32X8,
8877 IX86_BUILTIN_EXTRACTI64X2_512, IX86_BUILTIN_EXTRACTI32X8,
8878 IX86_BUILTIN_REDUCEPD512_MASK, IX86_BUILTIN_REDUCEPS512_MASK,
8879 IX86_BUILTIN_PMULLQ512, IX86_BUILTIN_XORPD512,
8880 IX86_BUILTIN_XORPS512, IX86_BUILTIN_ORPD512,
8881 IX86_BUILTIN_ORPS512, IX86_BUILTIN_ANDPD512,
8882 IX86_BUILTIN_ANDPS512, IX86_BUILTIN_ANDNPD512,
8883 IX86_BUILTIN_ANDNPS512, IX86_BUILTIN_INSERTF32X8,
8884 IX86_BUILTIN_INSERTI32X8, IX86_BUILTIN_INSERTF64X2_512,
8885 IX86_BUILTIN_INSERTI64X2_512, IX86_BUILTIN_FPCLASSPD512,
8886 IX86_BUILTIN_FPCLASSPS512, IX86_BUILTIN_CVTD2MASK512,
8887 IX86_BUILTIN_CVTQ2MASK512, IX86_BUILTIN_CVTMASK2D512,
8888 IX86_BUILTIN_CVTMASK2Q512, IX86_BUILTIN_CVTPD2QQ512,
8889 IX86_BUILTIN_CVTPS2QQ512, IX86_BUILTIN_CVTPD2UQQ512,
8890 IX86_BUILTIN_CVTPS2UQQ512, IX86_BUILTIN_CVTQQ2PS512,
8891 IX86_BUILTIN_CVTUQQ2PS512, IX86_BUILTIN_CVTQQ2PD512,
8892 IX86_BUILTIN_CVTUQQ2PD512, IX86_BUILTIN_CVTTPS2QQ512,
8893 IX86_BUILTIN_CVTTPS2UQQ512, IX86_BUILTIN_CVTTPD2QQ512,
8894 IX86_BUILTIN_CVTTPD2UQQ512, IX86_BUILTIN_RANGEPS512,
8895 IX86_BUILTIN_RANGEPD512, IX86_BUILTIN_PACKUSDW512,
8896 IX86_BUILTIN_PACKSSDW512, IX86_BUILTIN_LOADDQUHI512_MASK,
8897 IX86_BUILTIN_LOADDQUQI512_MASK, IX86_BUILTIN_PSLLDQ512,
8898 IX86_BUILTIN_PSRLDQ512, IX86_BUILTIN_STOREDQUHI512_MASK,
8899 IX86_BUILTIN_STOREDQUQI512_MASK, IX86_BUILTIN_PALIGNR512,
8900 IX86_BUILTIN_PALIGNR512_MASK, IX86_BUILTIN_MOVDQUHI512_MASK,
8901 IX86_BUILTIN_MOVDQUQI512_MASK, IX86_BUILTIN_PSADBW512,
8902 IX86_BUILTIN_DBPSADBW512, IX86_BUILTIN_PBROADCASTB512,
8903 IX86_BUILTIN_PBROADCASTB512_GPR, IX86_BUILTIN_PBROADCASTW512,
8904 IX86_BUILTIN_PBROADCASTW512_GPR, IX86_BUILTIN_PMOVSXBW512_MASK,
8905 IX86_BUILTIN_PMOVZXBW512_MASK, IX86_BUILTIN_VPERMVARHI512_MASK,
8906 IX86_BUILTIN_VPERMT2VARHI512, IX86_BUILTIN_VPERMT2VARHI512_MASKZ,
8907 IX86_BUILTIN_VPERMI2VARHI512, IX86_BUILTIN_PAVGB512,
8908 IX86_BUILTIN_PAVGW512, IX86_BUILTIN_PADDB512,
8909 IX86_BUILTIN_PSUBB512, IX86_BUILTIN_PSUBSB512,
8910 IX86_BUILTIN_PADDSB512, IX86_BUILTIN_PSUBUSB512,
8911 IX86_BUILTIN_PADDUSB512, IX86_BUILTIN_PSUBW512,
8912 IX86_BUILTIN_PADDW512, IX86_BUILTIN_PSUBSW512,
8913 IX86_BUILTIN_PADDSW512, IX86_BUILTIN_PSUBUSW512,
8914 IX86_BUILTIN_PADDUSW512, IX86_BUILTIN_PMAXUW512,
8915 IX86_BUILTIN_PMAXSW512, IX86_BUILTIN_PMINUW512,
8916 IX86_BUILTIN_PMINSW512, IX86_BUILTIN_PMAXUB512,
8917 IX86_BUILTIN_PMAXSB512, IX86_BUILTIN_PMINUB512,
8918 IX86_BUILTIN_PMINSB512, IX86_BUILTIN_PMOVWB512,
8919 IX86_BUILTIN_PMOVSWB512, IX86_BUILTIN_PMOVUSWB512,
8920 IX86_BUILTIN_PMULHRSW512_MASK, IX86_BUILTIN_PMULHUW512_MASK,
8921 IX86_BUILTIN_PMULHW512_MASK, IX86_BUILTIN_PMULLW512_MASK,
8922 IX86_BUILTIN_PSLLWI512_MASK, IX86_BUILTIN_PSLLW512_MASK,
8923 IX86_BUILTIN_PACKSSWB512, IX86_BUILTIN_PACKUSWB512,
8924 IX86_BUILTIN_PSRAVV32HI, IX86_BUILTIN_PMADDUBSW512_MASK,
8925 IX86_BUILTIN_PMADDWD512_MASK, IX86_BUILTIN_PSRLVV32HI,
8926 IX86_BUILTIN_PUNPCKHBW512, IX86_BUILTIN_PUNPCKHWD512,
8927 IX86_BUILTIN_PUNPCKLBW512, IX86_BUILTIN_PUNPCKLWD512,
8928 IX86_BUILTIN_PSHUFB512, IX86_BUILTIN_PSHUFHW512,
8929 IX86_BUILTIN_PSHUFLW512, IX86_BUILTIN_PSRAWI512,
8930 IX86_BUILTIN_PSRAW512, IX86_BUILTIN_PSRLWI512,
8931 IX86_BUILTIN_PSRLW512, IX86_BUILTIN_CVTB2MASK512,
8932 IX86_BUILTIN_CVTW2MASK512, IX86_BUILTIN_CVTMASK2B512,
8933 IX86_BUILTIN_CVTMASK2W512, IX86_BUILTIN_PCMPEQB512_MASK,
8934 IX86_BUILTIN_PCMPEQW512_MASK, IX86_BUILTIN_PCMPGTB512_MASK,
8935 IX86_BUILTIN_PCMPGTW512_MASK, IX86_BUILTIN_PTESTMB512,
8936 IX86_BUILTIN_PTESTMW512, IX86_BUILTIN_PTESTNMB512,
8937 IX86_BUILTIN_PTESTNMW512, IX86_BUILTIN_PSLLVV32HI,
8938 IX86_BUILTIN_PABSB512, IX86_BUILTIN_PABSW512,
8939 IX86_BUILTIN_BLENDMW512, IX86_BUILTIN_BLENDMB512,
8940 IX86_BUILTIN_CMPB512, IX86_BUILTIN_CMPW512,
8941 IX86_BUILTIN_UCMPB512, IX86_BUILTIN_UCMPW512.
8942 (bdesc_special_args):
8943 Add __builtin_ia32_loaddquhi512_mask, __builtin_ia32_loaddquqi512_mask,
8944 __builtin_ia32_storedquhi512_mask, __builtin_ia32_storedquqi512_mask,
8945 __builtin_ia32_loaddquhi256_mask, __builtin_ia32_loaddquhi128_mask,
8946 __builtin_ia32_loaddquqi256_mask, __builtin_ia32_loaddquqi128_mask,
8947 __builtin_ia32_movdqa64load256_mask, __builtin_ia32_movdqa64load128_mask,
8948 __builtin_ia32_movdqa32load256_mask, __builtin_ia32_movdqa32load128_mask,
8949 __builtin_ia32_movdqa64store256_mask, __builtin_ia32_movdqa64store128_mask,
8950 __builtin_ia32_movdqa32store256_mask, __builtin_ia32_movdqa32store128_mask,
8951 __builtin_ia32_loadapd256_mask, __builtin_ia32_loadapd128_mask,
8952 __builtin_ia32_loadaps256_mask, __builtin_ia32_loadaps128_mask,
8953 __builtin_ia32_storeapd256_mask, __builtin_ia32_storeapd128_mask,
8954 __builtin_ia32_storeaps256_mask, __builtin_ia32_storeaps128_mask,
8955 __builtin_ia32_loadupd256_mask, __builtin_ia32_loadupd128_mask,
8956 __builtin_ia32_loadups256_mask, __builtin_ia32_loadups128_mask,
8957 __builtin_ia32_storeupd256_mask, __builtin_ia32_storeupd128_mask,
8958 __builtin_ia32_storeups256_mask, __builtin_ia32_storeups128_mask,
8959 __builtin_ia32_loaddqudi256_mask, __builtin_ia32_loaddqudi128_mask,
8960 __builtin_ia32_loaddqusi256_mask, __builtin_ia32_loaddqusi128_mask,
8961 __builtin_ia32_storedqudi256_mask, __builtin_ia32_storedqudi128_mask,
8962 __builtin_ia32_storedqusi256_mask, __builtin_ia32_storedqusi128_mask,
8963 __builtin_ia32_storedquhi256_mask, __builtin_ia32_storedquhi128_mask,
8964 __builtin_ia32_storedquqi256_mask, __builtin_ia32_storedquqi128_mask,
8965 __builtin_ia32_compressstoredf256_mask, __builtin_ia32_compressstoredf128_mask,
8966 __builtin_ia32_compressstoresf256_mask, __builtin_ia32_compressstoresf128_mask,
8967 __builtin_ia32_compressstoredi256_mask, __builtin_ia32_compressstoredi128_mask,
8968 __builtin_ia32_compressstoresi256_mask, __builtin_ia32_compressstoresi128_mask,
8969 __builtin_ia32_expandloaddf256_mask, __builtin_ia32_expandloaddf128_mask,
8970 __builtin_ia32_expandloadsf256_mask, __builtin_ia32_expandloadsf128_mask,
8971 __builtin_ia32_expandloaddi256_mask, __builtin_ia32_expandloaddi128_mask,
8972 __builtin_ia32_expandloadsi256_mask, __builtin_ia32_expandloadsi128_mask,
8973 __builtin_ia32_expandloaddf256_maskz, __builtin_ia32_expandloaddf128_maskz,
8974 __builtin_ia32_expandloadsf256_maskz, __builtin_ia32_expandloadsf128_maskz,
8975 __builtin_ia32_expandloaddi256_maskz, __builtin_ia32_expandloaddi128_maskz,
8976 __builtin_ia32_expandloadsi256_maskz, __builtin_ia32_expandloadsi128_maskz,
8977 __builtin_ia32_pmovqd256mem_mask, __builtin_ia32_pmovqd128mem_mask,
8978 __builtin_ia32_pmovsqd256mem_mask, __builtin_ia32_pmovsqd128mem_mask,
8979 __builtin_ia32_pmovusqd256mem_mask, __builtin_ia32_pmovusqd128mem_mask,
8980 __builtin_ia32_pmovqw256mem_mask, __builtin_ia32_pmovqw128mem_mask,
8981 __builtin_ia32_pmovsqw256mem_mask, __builtin_ia32_pmovsqw128mem_mask,
8982 __builtin_ia32_pmovusqw256mem_mask, __builtin_ia32_pmovusqw128mem_mask,
8983 __builtin_ia32_pmovqb256mem_mask, __builtin_ia32_pmovqb128mem_mask,
8984 __builtin_ia32_pmovsqb256mem_mask, __builtin_ia32_pmovsqb128mem_mask,
8985 __builtin_ia32_pmovusqb256mem_mask, __builtin_ia32_pmovusqb128mem_mask,
8986 __builtin_ia32_pmovdb256mem_mask, __builtin_ia32_pmovdb128mem_mask,
8987 __builtin_ia32_pmovsdb256mem_mask, __builtin_ia32_pmovsdb128mem_mask,
8988 __builtin_ia32_pmovusdb256mem_mask, __builtin_ia32_pmovusdb128mem_mask,
8989 __builtin_ia32_pmovdw256mem_mask, __builtin_ia32_pmovdw128mem_mask,
8990 __builtin_ia32_pmovsdw256mem_mask, __builtin_ia32_pmovsdw128mem_mask,
8991 __builtin_ia32_pmovusdw256mem_mask, __builtin_ia32_pmovusdw128mem_mask,
8992 __builtin_ia32_palignr256_mask, __builtin_ia32_palignr128_mask,
8993 __builtin_ia32_movdqa64_256_mask, __builtin_ia32_movdqa64_128_mask,
8994 __builtin_ia32_movdqa32_256_mask, __builtin_ia32_movdqa32_128_mask,
8995 __builtin_ia32_movapd256_mask, __builtin_ia32_movapd128_mask,
8996 __builtin_ia32_movaps256_mask, __builtin_ia32_movaps128_mask,
8997 __builtin_ia32_movdquhi256_mask, __builtin_ia32_movdquhi128_mask,
8998 __builtin_ia32_movdquqi256_mask, __builtin_ia32_movdquqi128_mask,
8999 __builtin_ia32_minps_mask, __builtin_ia32_maxps_mask,
9000 __builtin_ia32_minpd_mask, __builtin_ia32_maxpd_mask,
9001 __builtin_ia32_maxpd256_mask, __builtin_ia32_maxps256_mask,
9002 __builtin_ia32_minpd256_mask, __builtin_ia32_minps256_mask,
9003 __builtin_ia32_mulps_mask, __builtin_ia32_divps_mask,
9004 __builtin_ia32_mulpd_mask, __builtin_ia32_divpd_mask,
9005 __builtin_ia32_divpd256_mask, __builtin_ia32_divps256_mask,
9006 __builtin_ia32_mulpd256_mask, __builtin_ia32_mulps256_mask,
9007 __builtin_ia32_addpd128_mask, __builtin_ia32_addpd256_mask,
9008 __builtin_ia32_addps128_mask, __builtin_ia32_addps256_mask,
9009 __builtin_ia32_subpd128_mask, __builtin_ia32_subpd256_mask,
9010 __builtin_ia32_subps128_mask, __builtin_ia32_subps256_mask,
9011 __builtin_ia32_xorpd256_mask, __builtin_ia32_xorpd128_mask,
9012 __builtin_ia32_xorps256_mask, __builtin_ia32_xorps128_mask,
9013 __builtin_ia32_orpd256_mask, __builtin_ia32_orpd128_mask,
9014 __builtin_ia32_orps256_mask, __builtin_ia32_orps128_mask,
9015 __builtin_ia32_broadcastf32x2_256_mask, __builtin_ia32_broadcasti32x2_256_mask,
9016 __builtin_ia32_broadcasti32x2_128_mask, __builtin_ia32_broadcastf64x2_256_mask,
9017 __builtin_ia32_broadcasti64x2_256_mask, __builtin_ia32_broadcastf32x4_256_mask,
9018 __builtin_ia32_broadcasti32x4_256_mask, __builtin_ia32_extractf32x4_256_mask,
9019 __builtin_ia32_extracti32x4_256_mask, __builtin_ia32_dbpsadbw256_mask,
9020 __builtin_ia32_dbpsadbw128_mask, __builtin_ia32_cvttpd2qq256_mask,
9021 __builtin_ia32_cvttpd2qq128_mask, __builtin_ia32_cvttpd2uqq256_mask,
9022 __builtin_ia32_cvttpd2uqq128_mask, __builtin_ia32_cvtpd2qq256_mask,
9023 __builtin_ia32_cvtpd2qq128_mask, __builtin_ia32_cvtpd2uqq256_mask,
9024 __builtin_ia32_cvtpd2uqq128_mask, __builtin_ia32_cvtpd2udq256_mask,
9025 __builtin_ia32_cvtpd2udq128_mask, __builtin_ia32_cvttps2qq256_mask,
9026 __builtin_ia32_cvttps2qq128_mask, __builtin_ia32_cvttps2uqq256_mask,
9027 __builtin_ia32_cvttps2uqq128_mask, __builtin_ia32_cvttps2dq256_mask,
9028 __builtin_ia32_cvttps2dq128_mask, __builtin_ia32_cvttps2udq256_mask,
9029 __builtin_ia32_cvttps2udq128_mask, __builtin_ia32_cvttpd2dq256_mask,
9030 __builtin_ia32_cvttpd2dq128_mask, __builtin_ia32_cvttpd2udq256_mask,
9031 __builtin_ia32_cvttpd2udq128_mask, __builtin_ia32_cvtpd2dq256_mask,
9032 __builtin_ia32_cvtpd2dq128_mask, __builtin_ia32_cvtdq2pd256_mask,
9033 __builtin_ia32_cvtdq2pd128_mask, __builtin_ia32_cvtudq2pd256_mask,
9034 __builtin_ia32_cvtudq2pd128_mask, __builtin_ia32_cvtdq2ps256_mask,
9035 __builtin_ia32_cvtdq2ps128_mask, __builtin_ia32_cvtudq2ps256_mask,
9036 __builtin_ia32_cvtudq2ps128_mask, __builtin_ia32_cvtps2pd256_mask,
9037 __builtin_ia32_cvtps2pd128_mask, __builtin_ia32_pbroadcastb256_mask,
9038 __builtin_ia32_pbroadcastb256_gpr_mask, __builtin_ia32_pbroadcastb128_mask,
9039 __builtin_ia32_pbroadcastb128_gpr_mask, __builtin_ia32_pbroadcastw256_mask,
9040 __builtin_ia32_pbroadcastw256_gpr_mask, __builtin_ia32_pbroadcastw128_mask,
9041 __builtin_ia32_pbroadcastw128_gpr_mask, __builtin_ia32_pbroadcastd256_mask,
9042 __builtin_ia32_pbroadcastd256_gpr_mask, __builtin_ia32_pbroadcastd128_mask,
9043 __builtin_ia32_pbroadcastd128_gpr_mask, __builtin_ia32_pbroadcastq256_mask,
9044 __builtin_ia32_pbroadcastq256_gpr_mask, __builtin_ia32_pbroadcastq256_mem_mask,
9045 __builtin_ia32_pbroadcastq128_mask, __builtin_ia32_pbroadcastq128_gpr_mask,
9046 __builtin_ia32_pbroadcastq128_mem_mask, __builtin_ia32_broadcastss256_mask,
9047 __builtin_ia32_broadcastss128_mask, __builtin_ia32_broadcastsd256_mask,
9048 __builtin_ia32_extractf64x2_256_mask, __builtin_ia32_extracti64x2_256_mask,
9049 __builtin_ia32_insertf32x4_256_mask, __builtin_ia32_inserti32x4_256_mask,
9050 __builtin_ia32_pmovsxbw256_mask, __builtin_ia32_pmovsxbw128_mask,
9051 __builtin_ia32_pmovsxbd256_mask, __builtin_ia32_pmovsxbd128_mask,
9052 __builtin_ia32_pmovsxbq256_mask, __builtin_ia32_pmovsxbq128_mask,
9053 __builtin_ia32_pmovsxwd256_mask, __builtin_ia32_pmovsxwd128_mask,
9054 __builtin_ia32_pmovsxwq256_mask, __builtin_ia32_pmovsxwq128_mask,
9055 __builtin_ia32_pmovsxdq256_mask, __builtin_ia32_pmovsxdq128_mask,
9056 __builtin_ia32_pmovzxbw256_mask, __builtin_ia32_pmovzxbw128_mask,
9057 __builtin_ia32_pmovzxbd256_mask, __builtin_ia32_pmovzxbd128_mask,
9058 __builtin_ia32_pmovzxbq256_mask, __builtin_ia32_pmovzxbq128_mask,
9059 __builtin_ia32_pmovzxwd256_mask, __builtin_ia32_pmovzxwd128_mask,
9060 __builtin_ia32_pmovzxwq256_mask, __builtin_ia32_pmovzxwq128_mask,
9061 __builtin_ia32_pmovzxdq256_mask, __builtin_ia32_pmovzxdq128_mask,
9062 __builtin_ia32_reducepd256_mask, __builtin_ia32_reducepd128_mask,
9063 __builtin_ia32_reduceps256_mask, __builtin_ia32_reduceps128_mask,
9064 __builtin_ia32_reducesd, __builtin_ia32_reducess,
9065 __builtin_ia32_permvarhi256_mask, __builtin_ia32_permvarhi128_mask,
9066 __builtin_ia32_vpermt2varhi256_mask, __builtin_ia32_vpermt2varhi256_maskz,
9067 __builtin_ia32_vpermt2varhi128_mask, __builtin_ia32_vpermt2varhi128_maskz,
9068 __builtin_ia32_vpermi2varhi256_mask, __builtin_ia32_vpermi2varhi128_mask,
9069 __builtin_ia32_rcp14pd256_mask, __builtin_ia32_rcp14pd128_mask,
9070 __builtin_ia32_rcp14ps256_mask, __builtin_ia32_rcp14ps128_mask,
9071 __builtin_ia32_rsqrt14pd256_mask, __builtin_ia32_rsqrt14pd128_mask,
9072 __builtin_ia32_rsqrt14ps256_mask, __builtin_ia32_rsqrt14ps128_mask,
9073 __builtin_ia32_sqrtpd256_mask, __builtin_ia32_sqrtpd128_mask,
9074 __builtin_ia32_sqrtps256_mask, __builtin_ia32_sqrtps128_mask,
9075 __builtin_ia32_paddb128_mask, __builtin_ia32_paddw128_mask,
9076 __builtin_ia32_paddd128_mask, __builtin_ia32_paddq128_mask,
9077 __builtin_ia32_psubb128_mask, __builtin_ia32_psubw128_mask,
9078 __builtin_ia32_psubd128_mask, __builtin_ia32_psubq128_mask,
9079 __builtin_ia32_paddsb128_mask, __builtin_ia32_paddsw128_mask,
9080 __builtin_ia32_psubsb128_mask, __builtin_ia32_psubsw128_mask,
9081 __builtin_ia32_paddusb128_mask, __builtin_ia32_paddusw128_mask,
9082 __builtin_ia32_psubusb128_mask, __builtin_ia32_psubusw128_mask,
9083 __builtin_ia32_paddb256_mask, __builtin_ia32_paddw256_mask,
9084 __builtin_ia32_paddd256_mask, __builtin_ia32_paddq256_mask,
9085 __builtin_ia32_paddsb256_mask, __builtin_ia32_paddsw256_mask,
9086 __builtin_ia32_paddusb256_mask, __builtin_ia32_paddusw256_mask,
9087 __builtin_ia32_psubb256_mask, __builtin_ia32_psubw256_mask,
9088 __builtin_ia32_psubd256_mask, __builtin_ia32_psubq256_mask,
9089 __builtin_ia32_psubsb256_mask, __builtin_ia32_psubsw256_mask,
9090 __builtin_ia32_psubusb256_mask, __builtin_ia32_psubusw256_mask,
9091 __builtin_ia32_shuf_f64x2_256_mask, __builtin_ia32_shuf_i64x2_256_mask,
9092 __builtin_ia32_shuf_i32x4_256_mask, __builtin_ia32_shuf_f32x4_256_mask,
9093 __builtin_ia32_pmovwb128_mask, __builtin_ia32_pmovwb256_mask,
9094 __builtin_ia32_pmovswb128_mask, __builtin_ia32_pmovswb256_mask,
9095 __builtin_ia32_pmovuswb128_mask, __builtin_ia32_pmovuswb256_mask,
9096 __builtin_ia32_pmovdb128_mask, __builtin_ia32_pmovdb256_mask,
9097 __builtin_ia32_pmovsdb128_mask, __builtin_ia32_pmovsdb256_mask,
9098 __builtin_ia32_pmovusdb128_mask, __builtin_ia32_pmovusdb256_mask,
9099 __builtin_ia32_pmovdw128_mask, __builtin_ia32_pmovdw256_mask,
9100 __builtin_ia32_pmovsdw128_mask, __builtin_ia32_pmovsdw256_mask,
9101 __builtin_ia32_pmovusdw128_mask, __builtin_ia32_pmovusdw256_mask,
9102 __builtin_ia32_pmovqb128_mask, __builtin_ia32_pmovqb256_mask,
9103 __builtin_ia32_pmovsqb128_mask, __builtin_ia32_pmovsqb256_mask,
9104 __builtin_ia32_pmovusqb128_mask, __builtin_ia32_pmovusqb256_mask,
9105 __builtin_ia32_pmovqw128_mask, __builtin_ia32_pmovqw256_mask,
9106 __builtin_ia32_pmovsqw128_mask, __builtin_ia32_pmovsqw256_mask,
9107 __builtin_ia32_pmovusqw128_mask, __builtin_ia32_pmovusqw256_mask,
9108 __builtin_ia32_pmovqd128_mask, __builtin_ia32_pmovqd256_mask,
9109 __builtin_ia32_pmovsqd128_mask, __builtin_ia32_pmovsqd256_mask,
9110 __builtin_ia32_pmovusqd128_mask, __builtin_ia32_pmovusqd256_mask,
9111 __builtin_ia32_rangepd256_mask, __builtin_ia32_rangepd128_mask,
9112 __builtin_ia32_rangeps256_mask, __builtin_ia32_rangeps128_mask,
9113 __builtin_ia32_getexpps256_mask, __builtin_ia32_getexppd256_mask,
9114 __builtin_ia32_getexpps128_mask, __builtin_ia32_getexppd128_mask,
9115 __builtin_ia32_fixupimmpd256, __builtin_ia32_fixupimmpd256_mask,
9116 __builtin_ia32_fixupimmpd256_maskz, __builtin_ia32_fixupimmps256,
9117 __builtin_ia32_fixupimmps256_mask, __builtin_ia32_fixupimmps256_maskz,
9118 __builtin_ia32_fixupimmpd128, __builtin_ia32_fixupimmpd128_mask,
9119 __builtin_ia32_fixupimmpd128_maskz, __builtin_ia32_fixupimmps128,
9120 __builtin_ia32_fixupimmps128_mask, __builtin_ia32_fixupimmps128_maskz,
9121 __builtin_ia32_pabsq256_mask, __builtin_ia32_pabsq128_mask,
9122 __builtin_ia32_pabsd256_mask, __builtin_ia32_pabsd128_mask,
9123 __builtin_ia32_pmulhrsw256_mask, __builtin_ia32_pmulhrsw128_mask,
9124 __builtin_ia32_pmulhuw128_mask, __builtin_ia32_pmulhuw256_mask,
9125 __builtin_ia32_pmulhw256_mask, __builtin_ia32_pmulhw128_mask,
9126 __builtin_ia32_pmullw256_mask, __builtin_ia32_pmullw128_mask,
9127 __builtin_ia32_pmullq256_mask, __builtin_ia32_pmullq128_mask,
9128 __builtin_ia32_andpd256_mask, __builtin_ia32_andpd128_mask,
9129 __builtin_ia32_andps256_mask, __builtin_ia32_andps128_mask,
9130 __builtin_ia32_andnpd256_mask, __builtin_ia32_andnpd128_mask,
9131 __builtin_ia32_andnps256_mask, __builtin_ia32_andnps128_mask,
9132 __builtin_ia32_psllwi128_mask, __builtin_ia32_pslldi128_mask,
9133 __builtin_ia32_psllqi128_mask, __builtin_ia32_psllw128_mask,
9134 __builtin_ia32_pslld128_mask, __builtin_ia32_psllq128_mask,
9135 __builtin_ia32_psllwi256_mask, __builtin_ia32_psllw256_mask,
9136 __builtin_ia32_pslldi256_mask, __builtin_ia32_pslld256_mask,
9137 __builtin_ia32_psllqi256_mask, __builtin_ia32_psllq256_mask,
9138 __builtin_ia32_psradi128_mask, __builtin_ia32_psrad128_mask,
9139 __builtin_ia32_psradi256_mask, __builtin_ia32_psrad256_mask,
9140 __builtin_ia32_psraqi128_mask, __builtin_ia32_psraq128_mask,
9141 __builtin_ia32_psraqi256_mask, __builtin_ia32_psraq256_mask,
9142 __builtin_ia32_pandd256_mask, __builtin_ia32_pandd128_mask,
9143 __builtin_ia32_psrldi128_mask, __builtin_ia32_psrld128_mask,
9144 __builtin_ia32_psrldi256_mask, __builtin_ia32_psrld256_mask,
9145 __builtin_ia32_psrlqi128_mask, __builtin_ia32_psrlq128_mask,
9146 __builtin_ia32_psrlqi256_mask, __builtin_ia32_psrlq256_mask,
9147 __builtin_ia32_pandq256_mask, __builtin_ia32_pandq128_mask,
9148 __builtin_ia32_pandnd256_mask, __builtin_ia32_pandnd128_mask,
9149 __builtin_ia32_pandnq256_mask, __builtin_ia32_pandnq128_mask,
9150 __builtin_ia32_pord256_mask, __builtin_ia32_pord128_mask,
9151 __builtin_ia32_porq256_mask, __builtin_ia32_porq128_mask,
9152 __builtin_ia32_pxord256_mask, __builtin_ia32_pxord128_mask,
9153 __builtin_ia32_pxorq256_mask, __builtin_ia32_pxorq128_mask,
9154 __builtin_ia32_packsswb256_mask, __builtin_ia32_packsswb128_mask,
9155 __builtin_ia32_packuswb256_mask, __builtin_ia32_packuswb128_mask,
9156 __builtin_ia32_rndscaleps_256_mask, __builtin_ia32_rndscalepd_256_mask,
9157 __builtin_ia32_rndscaleps_128_mask, __builtin_ia32_rndscalepd_128_mask,
9158 __builtin_ia32_pternlogq256_mask, __builtin_ia32_pternlogq256_maskz,
9159 __builtin_ia32_pternlogd256_mask, __builtin_ia32_pternlogd256_maskz,
9160 __builtin_ia32_pternlogq128_mask, __builtin_ia32_pternlogq128_maskz,
9161 __builtin_ia32_pternlogd128_mask, __builtin_ia32_pternlogd128_maskz,
9162 __builtin_ia32_scalefpd256_mask, __builtin_ia32_scalefps256_mask,
9163 __builtin_ia32_scalefpd128_mask, __builtin_ia32_scalefps128_mask,
9164 __builtin_ia32_vfmaddpd256_mask, __builtin_ia32_vfmaddpd256_mask3,
9165 __builtin_ia32_vfmaddpd256_maskz, __builtin_ia32_vfmaddpd128_mask,
9166 __builtin_ia32_vfmaddpd128_mask3, __builtin_ia32_vfmaddpd128_maskz,
9167 __builtin_ia32_vfmaddps256_mask, __builtin_ia32_vfmaddps256_mask3,
9168 __builtin_ia32_vfmaddps256_maskz, __builtin_ia32_vfmaddps128_mask,
9169 __builtin_ia32_vfmaddps128_mask3, __builtin_ia32_vfmaddps128_maskz,
9170 __builtin_ia32_vfmsubpd256_mask3, __builtin_ia32_vfmsubpd128_mask3,
9171 __builtin_ia32_vfmsubps256_mask3, __builtin_ia32_vfmsubps128_mask3,
9172 __builtin_ia32_vfnmaddpd256_mask, __builtin_ia32_vfnmaddpd128_mask,
9173 __builtin_ia32_vfnmaddps256_mask, __builtin_ia32_vfnmaddps128_mask,
9174 __builtin_ia32_vfnmsubpd256_mask, __builtin_ia32_vfnmsubpd256_mask3,
9175 __builtin_ia32_vfnmsubpd128_mask, __builtin_ia32_vfnmsubpd128_mask3,
9176 __builtin_ia32_vfnmsubps256_mask, __builtin_ia32_vfnmsubps256_mask3,
9177 __builtin_ia32_vfnmsubps128_mask, __builtin_ia32_vfnmsubps128_mask3,
9178 __builtin_ia32_vfmaddsubpd256_mask, __builtin_ia32_vfmaddsubpd256_mask3,
9179 __builtin_ia32_vfmaddsubpd256_maskz, __builtin_ia32_vfmaddsubpd128_mask,
9180 __builtin_ia32_vfmaddsubpd128_mask3, __builtin_ia32_vfmaddsubpd128_maskz,
9181 __builtin_ia32_vfmaddsubps256_mask, __builtin_ia32_vfmaddsubps256_mask3,
9182 __builtin_ia32_vfmaddsubps256_maskz, __builtin_ia32_vfmaddsubps128_mask,
9183 __builtin_ia32_vfmaddsubps128_mask3, __builtin_ia32_vfmaddsubps128_maskz,
9184 __builtin_ia32_vfmsubaddpd256_mask3, __builtin_ia32_vfmsubaddpd128_mask3,
9185 __builtin_ia32_vfmsubaddps256_mask3, __builtin_ia32_vfmsubaddps128_mask3,
9186 __builtin_ia32_insertf64x2_256_mask, __builtin_ia32_inserti64x2_256_mask,
9187 __builtin_ia32_psrav16hi_mask, __builtin_ia32_psrav8hi_mask,
9188 __builtin_ia32_pmaddubsw256_mask, __builtin_ia32_pmaddubsw128_mask,
9189 __builtin_ia32_pmaddwd256_mask, __builtin_ia32_pmaddwd128_mask,
9190 __builtin_ia32_psrlv16hi_mask, __builtin_ia32_psrlv8hi_mask,
9191 __builtin_ia32_cvtps2dq256_mask, __builtin_ia32_cvtps2dq128_mask,
9192 __builtin_ia32_cvtps2udq256_mask, __builtin_ia32_cvtps2udq128_mask,
9193 __builtin_ia32_cvtps2qq256_mask, __builtin_ia32_cvtps2qq128_mask,
9194 __builtin_ia32_cvtps2uqq256_mask, __builtin_ia32_cvtps2uqq128_mask,
9195 __builtin_ia32_getmantps256_mask, __builtin_ia32_getmantps128_mask,
9196 __builtin_ia32_getmantpd256_mask, __builtin_ia32_getmantpd128_mask,
9197 __builtin_ia32_movddup256_mask, __builtin_ia32_movddup128_mask,
9198 __builtin_ia32_movshdup256_mask, __builtin_ia32_movshdup128_mask,
9199 __builtin_ia32_movsldup256_mask, __builtin_ia32_movsldup128_mask,
9200 __builtin_ia32_cvtqq2ps256_mask, __builtin_ia32_cvtqq2ps128_mask,
9201 __builtin_ia32_cvtuqq2ps256_mask, __builtin_ia32_cvtuqq2ps128_mask,
9202 __builtin_ia32_cvtqq2pd256_mask, __builtin_ia32_cvtqq2pd128_mask,
9203 __builtin_ia32_cvtuqq2pd256_mask, __builtin_ia32_cvtuqq2pd128_mask,
9204 __builtin_ia32_vpermt2varq256_mask, __builtin_ia32_vpermt2varq256_maskz,
9205 __builtin_ia32_vpermt2vard256_mask, __builtin_ia32_vpermt2vard256_maskz,
9206 __builtin_ia32_vpermi2varq256_mask, __builtin_ia32_vpermi2vard256_mask,
9207 __builtin_ia32_vpermt2varpd256_mask, __builtin_ia32_vpermt2varpd256_maskz,
9208 __builtin_ia32_vpermt2varps256_mask, __builtin_ia32_vpermt2varps256_maskz,
9209 __builtin_ia32_vpermi2varpd256_mask, __builtin_ia32_vpermi2varps256_mask,
9210 __builtin_ia32_vpermt2varq128_mask, __builtin_ia32_vpermt2varq128_maskz,
9211 __builtin_ia32_vpermt2vard128_mask, __builtin_ia32_vpermt2vard128_maskz,
9212 __builtin_ia32_vpermi2varq128_mask, __builtin_ia32_vpermi2vard128_mask,
9213 __builtin_ia32_vpermt2varpd128_mask, __builtin_ia32_vpermt2varpd128_maskz,
9214 __builtin_ia32_vpermt2varps128_mask, __builtin_ia32_vpermt2varps128_maskz,
9215 __builtin_ia32_vpermi2varpd128_mask, __builtin_ia32_vpermi2varps128_mask,
9216 __builtin_ia32_pshufb256_mask, __builtin_ia32_pshufb128_mask,
9217 __builtin_ia32_pshufhw256_mask, __builtin_ia32_pshufhw128_mask,
9218 __builtin_ia32_pshuflw256_mask, __builtin_ia32_pshuflw128_mask,
9219 __builtin_ia32_pshufd256_mask, __builtin_ia32_pshufd128_mask,
9220 __builtin_ia32_shufpd256_mask, __builtin_ia32_shufpd128_mask,
9221 __builtin_ia32_shufps256_mask, __builtin_ia32_shufps128_mask,
9222 __builtin_ia32_prolvq256_mask, __builtin_ia32_prolvq128_mask,
9223 __builtin_ia32_prolq256_mask, __builtin_ia32_prolq128_mask,
9224 __builtin_ia32_prorvq256_mask, __builtin_ia32_prorvq128_mask,
9225 __builtin_ia32_prorq256_mask, __builtin_ia32_prorq128_mask,
9226 __builtin_ia32_psravq128_mask, __builtin_ia32_psravq256_mask,
9227 __builtin_ia32_psllv4di_mask, __builtin_ia32_psllv2di_mask,
9228 __builtin_ia32_psllv8si_mask, __builtin_ia32_psllv4si_mask,
9229 __builtin_ia32_psrav8si_mask, __builtin_ia32_psrav4si_mask,
9230 __builtin_ia32_psrlv4di_mask, __builtin_ia32_psrlv2di_mask,
9231 __builtin_ia32_psrlv8si_mask, __builtin_ia32_psrlv4si_mask,
9232 __builtin_ia32_psrawi256_mask, __builtin_ia32_psraw256_mask,
9233 __builtin_ia32_psrawi128_mask, __builtin_ia32_psraw128_mask,
9234 __builtin_ia32_psrlwi256_mask, __builtin_ia32_psrlw256_mask,
9235 __builtin_ia32_psrlwi128_mask, __builtin_ia32_psrlw128_mask,
9236 __builtin_ia32_prorvd256_mask, __builtin_ia32_prolvd256_mask,
9237 __builtin_ia32_prord256_mask, __builtin_ia32_prold256_mask,
9238 __builtin_ia32_prorvd128_mask, __builtin_ia32_prolvd128_mask,
9239 __builtin_ia32_prord128_mask, __builtin_ia32_prold128_mask,
9240 __builtin_ia32_fpclasspd256_mask, __builtin_ia32_fpclasspd128_mask,
9241 __builtin_ia32_fpclasssd, __builtin_ia32_fpclassps256_mask,
9242 __builtin_ia32_fpclassps128_mask, __builtin_ia32_fpclassss,
9243 __builtin_ia32_cvtb2mask128, __builtin_ia32_cvtb2mask256,
9244 __builtin_ia32_cvtw2mask128, __builtin_ia32_cvtw2mask256,
9245 __builtin_ia32_cvtd2mask128, __builtin_ia32_cvtd2mask256,
9246 __builtin_ia32_cvtq2mask128, __builtin_ia32_cvtq2mask256,
9247 __builtin_ia32_cvtmask2b128, __builtin_ia32_cvtmask2b256,
9248 __builtin_ia32_cvtmask2w128, __builtin_ia32_cvtmask2w256,
9249 __builtin_ia32_cvtmask2d128, __builtin_ia32_cvtmask2d256,
9250 __builtin_ia32_cvtmask2q128, __builtin_ia32_cvtmask2q256,
9251 __builtin_ia32_pcmpeqb128_mask, __builtin_ia32_pcmpeqb256_mask,
9252 __builtin_ia32_pcmpeqw128_mask, __builtin_ia32_pcmpeqw256_mask,
9253 __builtin_ia32_pcmpeqd128_mask, __builtin_ia32_pcmpeqd256_mask,
9254 __builtin_ia32_pcmpeqq128_mask, __builtin_ia32_pcmpeqq256_mask,
9255 __builtin_ia32_pcmpgtb128_mask, __builtin_ia32_pcmpgtb256_mask,
9256 __builtin_ia32_pcmpgtw128_mask, __builtin_ia32_pcmpgtw256_mask,
9257 __builtin_ia32_pcmpgtd128_mask, __builtin_ia32_pcmpgtd256_mask,
9258 __builtin_ia32_pcmpgtq128_mask, __builtin_ia32_pcmpgtq256_mask,
9259 __builtin_ia32_ptestmb128, __builtin_ia32_ptestmb256,
9260 __builtin_ia32_ptestmw128, __builtin_ia32_ptestmw256,
9261 __builtin_ia32_ptestmd128, __builtin_ia32_ptestmd256,
9262 __builtin_ia32_ptestmq128, __builtin_ia32_ptestmq256,
9263 __builtin_ia32_ptestnmb128, __builtin_ia32_ptestnmb256,
9264 __builtin_ia32_ptestnmw128, __builtin_ia32_ptestnmw256,
9265 __builtin_ia32_ptestnmd128, __builtin_ia32_ptestnmd256,
9266 __builtin_ia32_ptestnmq128, __builtin_ia32_ptestnmq256,
9267 __builtin_ia32_broadcastmb128, __builtin_ia32_broadcastmb256,
9268 __builtin_ia32_broadcastmw128, __builtin_ia32_broadcastmw256,
9269 __builtin_ia32_compressdf256_mask, __builtin_ia32_compressdf128_mask,
9270 __builtin_ia32_compresssf256_mask, __builtin_ia32_compresssf128_mask,
9271 __builtin_ia32_compressdi256_mask, __builtin_ia32_compressdi128_mask,
9272 __builtin_ia32_compresssi256_mask, __builtin_ia32_compresssi128_mask,
9273 __builtin_ia32_expanddf256_mask, __builtin_ia32_expanddf128_mask,
9274 __builtin_ia32_expandsf256_mask, __builtin_ia32_expandsf128_mask,
9275 __builtin_ia32_expanddi256_mask, __builtin_ia32_expanddi128_mask,
9276 __builtin_ia32_expandsi256_mask, __builtin_ia32_expandsi128_mask,
9277 __builtin_ia32_expanddf256_maskz, __builtin_ia32_expanddf128_maskz,
9278 __builtin_ia32_expandsf256_maskz, __builtin_ia32_expandsf128_maskz,
9279 __builtin_ia32_expanddi256_maskz, __builtin_ia32_expanddi128_maskz,
9280 __builtin_ia32_expandsi256_maskz, __builtin_ia32_expandsi128_maskz,
9281 __builtin_ia32_pmaxsd256_mask, __builtin_ia32_pminsd256_mask,
9282 __builtin_ia32_pmaxud256_mask, __builtin_ia32_pminud256_mask,
9283 __builtin_ia32_pmaxsd128_mask, __builtin_ia32_pminsd128_mask,
9284 __builtin_ia32_pmaxud128_mask, __builtin_ia32_pminud128_mask,
9285 __builtin_ia32_pmaxsq256_mask, __builtin_ia32_pminsq256_mask,
9286 __builtin_ia32_pmaxuq256_mask, __builtin_ia32_pminuq256_mask,
9287 __builtin_ia32_pmaxsq128_mask, __builtin_ia32_pminsq128_mask,
9288 __builtin_ia32_pmaxuq128_mask, __builtin_ia32_pminuq128_mask,
9289 __builtin_ia32_pminsb256_mask, __builtin_ia32_pminub256_mask,
9290 __builtin_ia32_pmaxsb256_mask, __builtin_ia32_pmaxub256_mask,
9291 __builtin_ia32_pminsb128_mask, __builtin_ia32_pminub128_mask,
9292 __builtin_ia32_pmaxsb128_mask, __builtin_ia32_pmaxub128_mask,
9293 __builtin_ia32_pminsw256_mask, __builtin_ia32_pminuw256_mask,
9294 __builtin_ia32_pmaxsw256_mask, __builtin_ia32_pmaxuw256_mask,
9295 __builtin_ia32_pminsw128_mask, __builtin_ia32_pminuw128_mask,
9296 __builtin_ia32_pmaxsw128_mask, __builtin_ia32_pmaxuw128_mask,
9297 __builtin_ia32_vpconflictdi_256_mask, __builtin_ia32_vpconflictsi_256_mask,
9298 __builtin_ia32_vplzcntq_256_mask, __builtin_ia32_vplzcntd_256_mask,
9299 __builtin_ia32_unpckhpd256_mask, __builtin_ia32_unpckhpd128_mask,
9300 __builtin_ia32_unpckhps256_mask, __builtin_ia32_unpckhps128_mask,
9301 __builtin_ia32_unpcklpd256_mask, __builtin_ia32_unpcklpd128_mask,
9302 __builtin_ia32_unpcklps256_mask, __builtin_ia32_vpconflictdi_128_mask,
9303 __builtin_ia32_vpconflictsi_128_mask, __builtin_ia32_vplzcntq_128_mask,
9304 __builtin_ia32_vplzcntd_128_mask, __builtin_ia32_unpcklps128_mask,
9305 __builtin_ia32_alignd256_mask, __builtin_ia32_alignq256_mask,
9306 __builtin_ia32_alignd128_mask, __builtin_ia32_alignq128_mask,
9307 __builtin_ia32_vcvtps2ph256_mask, __builtin_ia32_vcvtps2ph_mask,
9308 __builtin_ia32_vcvtph2ps_mask, __builtin_ia32_vcvtph2ps256_mask,
9309 __builtin_ia32_punpckhdq128_mask, __builtin_ia32_punpckhdq256_mask,
9310 __builtin_ia32_punpckhqdq128_mask, __builtin_ia32_punpckhqdq256_mask,
9311 __builtin_ia32_punpckldq128_mask, __builtin_ia32_punpckldq256_mask,
9312 __builtin_ia32_punpcklqdq128_mask, __builtin_ia32_punpcklqdq256_mask,
9313 __builtin_ia32_punpckhbw128_mask, __builtin_ia32_punpckhbw256_mask,
9314 __builtin_ia32_punpckhwd128_mask, __builtin_ia32_punpckhwd256_mask,
9315 __builtin_ia32_punpcklbw128_mask, __builtin_ia32_punpcklbw256_mask,
9316 __builtin_ia32_punpcklwd128_mask, __builtin_ia32_punpcklwd256_mask,
9317 __builtin_ia32_psllv16hi_mask, __builtin_ia32_psllv8hi_mask,
9318 __builtin_ia32_packssdw256_mask, __builtin_ia32_packssdw128_mask,
9319 __builtin_ia32_packusdw256_mask, __builtin_ia32_packusdw128_mask,
9320 __builtin_ia32_pavgb256_mask, __builtin_ia32_pavgw256_mask,
9321 __builtin_ia32_pavgb128_mask, __builtin_ia32_pavgw128_mask,
9322 __builtin_ia32_permvarsf256_mask, __builtin_ia32_permvardf256_mask,
9323 __builtin_ia32_permdf256_mask, __builtin_ia32_pabsb256_mask,
9324 __builtin_ia32_pabsb128_mask, __builtin_ia32_pabsw256_mask,
9325 __builtin_ia32_pabsw128_mask, __builtin_ia32_vpermilvarpd_mask,
9326 __builtin_ia32_vpermilvarps_mask, __builtin_ia32_vpermilvarpd256_mask,
9327 __builtin_ia32_vpermilvarps256_mask, __builtin_ia32_vpermilpd_mask,
9328 __builtin_ia32_vpermilps_mask, __builtin_ia32_vpermilpd256_mask,
9329 __builtin_ia32_vpermilps256_mask, __builtin_ia32_blendmq_256_mask,
9330 __builtin_ia32_blendmd_256_mask, __builtin_ia32_blendmpd_256_mask,
9331 __builtin_ia32_blendmps_256_mask, __builtin_ia32_blendmq_128_mask,
9332 __builtin_ia32_blendmd_128_mask, __builtin_ia32_blendmpd_128_mask,
9333 __builtin_ia32_blendmps_128_mask, __builtin_ia32_blendmw_256_mask,
9334 __builtin_ia32_blendmb_256_mask, __builtin_ia32_blendmw_128_mask,
9335 __builtin_ia32_blendmb_128_mask, __builtin_ia32_pmulld256_mask,
9336 __builtin_ia32_pmulld128_mask, __builtin_ia32_pmuludq256_mask,
9337 __builtin_ia32_pmuldq256_mask, __builtin_ia32_pmuldq128_mask,
9338 __builtin_ia32_pmuludq128_mask, __builtin_ia32_cvtpd2ps256_mask,
9339 __builtin_ia32_cvtpd2ps_mask, __builtin_ia32_permvarsi256_mask,
9340 __builtin_ia32_permvardi256_mask, __builtin_ia32_permdi256_mask,
9341 __builtin_ia32_cmpq256_mask, __builtin_ia32_cmpd256_mask,
9342 __builtin_ia32_ucmpq256_mask, __builtin_ia32_ucmpd256_mask,
9343 __builtin_ia32_cmpb256_mask, __builtin_ia32_cmpw256_mask,
9344 __builtin_ia32_ucmpb256_mask, __builtin_ia32_ucmpw256_mask,
9345 __builtin_ia32_cmppd256_mask, __builtin_ia32_cmpps256_mask,
9346 __builtin_ia32_cmpq128_mask, __builtin_ia32_cmpd128_mask,
9347 __builtin_ia32_ucmpq128_mask, __builtin_ia32_ucmpd128_mask,
9348 __builtin_ia32_cmpb128_mask, __builtin_ia32_cmpw128_mask,
9349 __builtin_ia32_ucmpb128_mask, __builtin_ia32_ucmpw128_mask,
9350 __builtin_ia32_cmppd128_mask, __builtin_ia32_cmpps128_mask,
9351 __builtin_ia32_broadcastf32x2_512_mask, __builtin_ia32_broadcasti32x2_512_mask,
9352 __builtin_ia32_broadcastf64x2_512_mask, __builtin_ia32_broadcasti64x2_512_mask,
9353 __builtin_ia32_broadcastf32x8_512_mask, __builtin_ia32_broadcasti32x8_512_mask,
9354 __builtin_ia32_extractf64x2_512_mask, __builtin_ia32_extractf32x8_mask,
9355 __builtin_ia32_extracti64x2_512_mask, __builtin_ia32_extracti32x8_mask,
9356 __builtin_ia32_reducepd512_mask, __builtin_ia32_reduceps512_mask,
9357 __builtin_ia32_pmullq512_mask, __builtin_ia32_xorpd512_mask,
9358 __builtin_ia32_xorps512_mask, __builtin_ia32_orpd512_mask,
9359 __builtin_ia32_orps512_mask, __builtin_ia32_andpd512_mask,
9360 __builtin_ia32_andps512_mask, __builtin_ia32_andnpd512_mask,
9361 __builtin_ia32_andnps512_mask, __builtin_ia32_insertf32x8_mask,
9362 __builtin_ia32_inserti32x8_mask, __builtin_ia32_insertf64x2_512_mask,
9363 __builtin_ia32_inserti64x2_512_mask, __builtin_ia32_fpclasspd512_mask,
9364 __builtin_ia32_fpclassps512_mask, __builtin_ia32_cvtd2mask512,
9365 __builtin_ia32_cvtq2mask512, __builtin_ia32_cvtmask2d512,
9366 __builtin_ia32_cvtmask2q512, __builtin_ia32_kunpcksi,
9367 __builtin_ia32_kunpckdi, __builtin_ia32_packusdw512_mask,
9368 __builtin_ia32_pslldq512, __builtin_ia32_psrldq512,
9369 __builtin_ia32_packssdw512_mask, __builtin_ia32_palignr512,
9370 __builtin_ia32_palignr512_mask, __builtin_ia32_movdquhi512_mask,
9371 __builtin_ia32_movdquqi512_mask, __builtin_ia32_psadbw512,
9372 __builtin_ia32_dbpsadbw512_mask, __builtin_ia32_pbroadcastb512_mask,
9373 __builtin_ia32_pbroadcastb512_gpr_mask, __builtin_ia32_pbroadcastw512_mask,
9374 __builtin_ia32_pbroadcastw512_gpr_mask, __builtin_ia32_pmovsxbw512_mask,
9375 __builtin_ia32_pmovzxbw512_mask, __builtin_ia32_permvarhi512_mask,
9376 __builtin_ia32_vpermt2varhi512_mask, __builtin_ia32_vpermt2varhi512_maskz,
9377 __builtin_ia32_vpermi2varhi512_mask, __builtin_ia32_pavgb512_mask,
9378 __builtin_ia32_pavgw512_mask, __builtin_ia32_paddb512_mask,
9379 __builtin_ia32_psubb512_mask, __builtin_ia32_psubsb512_mask,
9380 __builtin_ia32_paddsb512_mask, __builtin_ia32_psubusb512_mask,
9381 __builtin_ia32_paddusb512_mask, __builtin_ia32_psubw512_mask,
9382 __builtin_ia32_paddw512_mask, __builtin_ia32_psubsw512_mask,
9383 __builtin_ia32_paddsw512_mask, __builtin_ia32_psubusw512_mask,
9384 __builtin_ia32_paddusw512_mask, __builtin_ia32_pmaxuw512_mask,
9385 __builtin_ia32_pmaxsw512_mask, __builtin_ia32_pminuw512_mask,
9386 __builtin_ia32_pminsw512_mask, __builtin_ia32_pmaxub512_mask,
9387 __builtin_ia32_pmaxsb512_mask, __builtin_ia32_pminub512_mask,
9388 __builtin_ia32_pminsb512_mask, __builtin_ia32_pmovwb512_mask,
9389 __builtin_ia32_pmovswb512_mask, __builtin_ia32_pmovuswb512_mask,
9390 __builtin_ia32_pmulhrsw512_mask, __builtin_ia32_pmulhuw512_mask,
9391 __builtin_ia32_pmulhw512_mask, __builtin_ia32_pmullw512_mask,
9392 __builtin_ia32_psllwi512_mask, __builtin_ia32_psllw512_mask,
9393 __builtin_ia32_packsswb512_mask, __builtin_ia32_packuswb512_mask,
9394 __builtin_ia32_psrav32hi_mask, __builtin_ia32_pmaddubsw512_mask,
9395 __builtin_ia32_pmaddwd512_mask, __builtin_ia32_psrlv32hi_mask,
9396 __builtin_ia32_punpckhbw512_mask, __builtin_ia32_punpckhwd512_mask,
9397 __builtin_ia32_punpcklbw512_mask, __builtin_ia32_punpcklwd512_mask,
9398 __builtin_ia32_pshufb512_mask, __builtin_ia32_pshufhw512_mask,
9399 __builtin_ia32_pshuflw512_mask, __builtin_ia32_psrawi512_mask,
9400 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
9401 __builtin_ia32_psrlw512_mask, __builtin_ia32_cvtb2mask512,
9402 __builtin_ia32_cvtw2mask512, __builtin_ia32_cvtmask2b512,
9403 __builtin_ia32_cvtmask2w512, __builtin_ia32_pcmpeqb512_mask,
9404 __builtin_ia32_pcmpeqw512_mask, __builtin_ia32_pcmpgtb512_mask,
9405 __builtin_ia32_pcmpgtw512_mask, __builtin_ia32_ptestmb512,
9406 __builtin_ia32_ptestmw512, __builtin_ia32_ptestnmb512,
9407 __builtin_ia32_ptestnmw512, __builtin_ia32_psllv32hi_mask,
9408 __builtin_ia32_pabsb512_mask, __builtin_ia32_pabsw512_mask,
9409 __builtin_ia32_blendmw_512_mask, __builtin_ia32_blendmb_512_mask,
9410 __builtin_ia32_cmpb512_mask, __builtin_ia32_cmpw512_mask,
9411 __builtin_ia32_ucmpb512_mask, __builtin_ia32_ucmpw512_mask,
9412 __builtin_ia32_rangesd128_round, __builtin_ia32_rangess128_round,
9413 __builtin_ia32_cvtpd2qq512_mask, __builtin_ia32_cvtps2qq512_mask,
9414 __builtin_ia32_cvtpd2uqq512_mask, __builtin_ia32_cvtps2uqq512_mask,
9415 __builtin_ia32_cvtqq2ps512_mask, __builtin_ia32_cvtuqq2ps512_mask,
9416 __builtin_ia32_cvtqq2pd512_mask, __builtin_ia32_cvtuqq2pd512_mask,
9417 __builtin_ia32_cvttps2qq512_mask, __builtin_ia32_cvttps2uqq512_mask,
9418 __builtin_ia32_cvttpd2qq512_mask, __builtin_ia32_cvttpd2uqq512_mask,
9419 __builtin_ia32_rangeps512_mask, __builtin_ia32_rangepd512_mask.
9420 (ix86_expand_args_builtin): Handle HI_FTYPE_V16QI, SI_FTYPE_V32QI,
9421 DI_FTYPE_V64QI, V16QI_FTYPE_HI, V32QI_FTYPE_SI, V64QI_FTYPE_DI,
9422 V8HI_FTYPE_QI, V16HI_FTYPE_HI, V32HI_FTYPE_SI, V4SI_FTYPE_QI,
9423 V8SI_FTYPE_QI, V4SI_FTYPE_HI, V8SI_FTYPE_HI, QI_FTYPE_V8HI,
9424 HI_FTYPE_V16HI, SI_FTYPE_V32HI, QI_FTYPE_V4SI, QI_FTYPE_V8SI,
9425 HI_FTYPE_V16SI, QI_FTYPE_V2DI, QI_FTYPE_V4DI, QI_FTYPE_V8DI,
9426 V2DI_FTYPE_QI, V4DI_FTYPE_QI, V8DI_FTYPE_V64QI_V64QI,
9427 SI_FTYPE_SI_SI,DI_FTYPE_DI_DI, V8DI_FTYPE_V8DI_INT_CONVERT,
9428 QI_FTYPE_V4SF_INT, QI_FTYPE_V2DF_INT,
9429 V8SF_FTYPE_V4SF_V8SF_QI, V4DF_FTYPE_V2DF_V4DF_QI,
9430 V8SI_FTYPE_V4SI_V8SI_QI, V8SI_FTYPE_SI_V8SI_QI,
9431 V4SI_FTYPE_V4SI_V4SI_QI, V4SI_FTYPE_SI_V4SI_QI,
9432 V4DI_FTYPE_V2DI_V4DI_QI, V4DI_FTYPE_DI_V4DI_QI,
9433 V2DI_FTYPE_V2DI_V2DI_QI, V2DI_FTYPE_DI_V2DI_QI,
9434 V64QI_FTYPE_V64QI_V64QI_DI, V64QI_FTYPE_V16QI_V64QI_DI,
9435 V64QI_FTYPE_QI_V64QI_DI, V32QI_FTYPE_V32QI_V32QI_SI,
9436 V32QI_FTYPE_V16QI_V32QI_SI, V32QI_FTYPE_QI_V32QI_SI,
9437 V16QI_FTYPE_V16QI_V16QI_HI, V16QI_FTYPE_QI_V16QI_HI,
9438 V32HI_FTYPE_V8HI_V32HI_SI, V32HI_FTYPE_HI_V32HI_SI,
9439 V16HI_FTYPE_V8HI_V16HI_HI, V16HI_FTYPE_HI_V16HI_HI,
9440 V8HI_FTYPE_V8HI_V8HI_QI, V8HI_FTYPE_HI_V8HI_QI,
9441 V8SF_FTYPE_V8HI_V8SF_QI, V4SF_FTYPE_V8HI_V4SF_QI,
9442 V8SI_FTYPE_V8SF_V8SI_QI, V4SI_FTYPE_V4SF_V4SI_QI,
9443 V8DI_FTYPE_V8SF_V8DI_QI, V4DI_FTYPE_V4SF_V4DI_QI,
9444 V2DI_FTYPE_V4SF_V2DI_QI, V8SF_FTYPE_V8DI_V8SF_QI,
9445 V4SF_FTYPE_V4DI_V4SF_QI, V4SF_FTYPE_V2DI_V4SF_QI,
9446 V8DF_FTYPE_V8DI_V8DF_QI, V4DF_FTYPE_V4DI_V4DF_QI,
9447 V2DF_FTYPE_V2DI_V2DF_QI, V16QI_FTYPE_V8HI_V16QI_QI,
9448 V16QI_FTYPE_V16HI_V16QI_HI, V16QI_FTYPE_V4SI_V16QI_QI,
9449 V16QI_FTYPE_V8SI_V16QI_QI, V8HI_FTYPE_V4SI_V8HI_QI,
9450 V8HI_FTYPE_V8SI_V8HI_QI, V16QI_FTYPE_V2DI_V16QI_QI,
9451 V16QI_FTYPE_V4DI_V16QI_QI, V8HI_FTYPE_V2DI_V8HI_QI,
9452 V8HI_FTYPE_V4DI_V8HI_QI, V4SI_FTYPE_V2DI_V4SI_QI,
9453 V4SI_FTYPE_V4DI_V4SI_QI, V32QI_FTYPE_V32HI_V32QI_SI,
9454 HI_FTYPE_V16QI_V16QI_HI, SI_FTYPE_V32QI_V32QI_SI,
9455 DI_FTYPE_V64QI_V64QI_DI, QI_FTYPE_V8HI_V8HI_QI,
9456 HI_FTYPE_V16HI_V16HI_HI, SI_FTYPE_V32HI_V32HI_SI,
9457 QI_FTYPE_V4SI_V4SI_QI, QI_FTYPE_V8SI_V8SI_QI,
9458 QI_FTYPE_V2DI_V2DI_QI, QI_FTYPE_V4DI_V4DI_QI,
9459 V4SF_FTYPE_V2DF_V4SF_QI, V4SF_FTYPE_V4DF_V4SF_QI,
9460 V2DI_FTYPE_V4SI_V2DI_QI, V2DI_FTYPE_V8HI_V2DI_QI,
9461 V2DI_FTYPE_V16QI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_QI,
9462 V4DI_FTYPE_V4SI_V4DI_QI, V4DI_FTYPE_V8HI_V4DI_QI,
9463 V4DI_FTYPE_V16QI_V4DI_QI, V8DI_FTYPE_V8DF_V8DI_QI,
9464 V4DI_FTYPE_V4DF_V4DI_QI, V2DI_FTYPE_V2DF_V2DI_QI,
9465 V4SI_FTYPE_V4DF_V4SI_QI, V4SI_FTYPE_V2DF_V4SI_QI,
9466 V4SI_FTYPE_V8HI_V4SI_QI, V4SI_FTYPE_V16QI_V4SI_QI,
9467 V8SI_FTYPE_V8SI_V8SI_V8SI, V8SF_FTYPE_V8SF_V8SF_QI,
9468 V8SF_FTYPE_V8SI_V8SF_QI, V4DF_FTYPE_V4DF_V4DF_QI,
9469 V4SF_FTYPE_V4SF_V4SF_QI, V2DF_FTYPE_V2DF_V2DF_QI,
9470 V2DF_FTYPE_V4SF_V2DF_QI, V2DF_FTYPE_V4SI_V2DF_QI,
9471 V4SF_FTYPE_V4SI_V4SF_QI, V4DF_FTYPE_V4SF_V4DF_QI,
9472 V4DF_FTYPE_V4SI_V4DF_QI, V8SI_FTYPE_V8SI_V8SI_QI,
9473 V8SI_FTYPE_V8HI_V8SI_QI, V8SI_FTYPE_V16QI_V8SI_QI,
9474 V16SF_FTYPE_V8SF_V16SF_HI, V16SI_FTYPE_V8SI_V16SI_HI,
9475 V16HI_FTYPE_V16HI_V16HI_HI, V8HI_FTYPE_V16QI_V8HI_QI,
9476 V16HI_FTYPE_V16QI_V16HI_HI, V32HI_FTYPE_V32HI_V32HI_SI,
9477 V32HI_FTYPE_V32QI_V32HI_SI, V8DI_FTYPE_V8DI_V8DI_INT_CONVERT,
9478 V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI_CONVERT, QI_FTYPE_V8DF_INT_QI,
9479 QI_FTYPE_V4DF_INT_QI, QI_FTYPE_V2DF_INT_QI,
9480 HI_FTYPE_V16SF_INT_HI, QI_FTYPE_V8SF_INT_QI,
9481 QI_FTYPE_V4SF_INT_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI_CONVERT,
9482 V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI_CONVERT, V32QI_FTYPE_V32QI_V32QI_V32QI_SI,
9483 V32HI_FTYPE_V32HI_V32HI_V32HI_SI, V32HI_FTYPE_V64QI_V64QI_V32HI_SI,
9484 V16SI_FTYPE_V32HI_V32HI_V16SI_HI, V64QI_FTYPE_V64QI_V64QI_V64QI_DI,
9485 V32HI_FTYPE_V32HI_V8HI_V32HI_SI, V16HI_FTYPE_V16HI_V8HI_V16HI_HI,
9486 V8SI_FTYPE_V8SI_V4SI_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_V4DI_QI,
9487 V64QI_FTYPE_V32HI_V32HI_V64QI_DI, V32QI_FTYPE_V16HI_V16HI_V32QI_SI,
9488 V16QI_FTYPE_V8HI_V8HI_V16QI_HI, V32HI_FTYPE_V16SI_V16SI_V32HI_SI,
9489 V16HI_FTYPE_V8SI_V8SI_V16HI_HI, V8HI_FTYPE_V4SI_V4SI_V8HI_QI,
9490 V4DF_FTYPE_V4DF_V4DI_V4DF_QI, V8SF_FTYPE_V8SF_V8SI_V8SF_QI,
9491 V4SF_FTYPE_V4SF_V4SI_V4SF_QI, V2DF_FTYPE_V2DF_V2DI_V2DF_QI,
9492 V2DI_FTYPE_V4SI_V4SI_V2DI_QI, V4DI_FTYPE_V8SI_V8SI_V4DI_QI,
9493 V4DF_FTYPE_V4DI_V4DF_V4DF_QI, V8SF_FTYPE_V8SI_V8SF_V8SF_QI,
9494 V2DF_FTYPE_V2DI_V2DF_V2DF_QI, V4SF_FTYPE_V4SI_V4SF_V4SF_QI,
9495 V8HI_FTYPE_V8HI_V8HI_V8HI_QI, V8SI_FTYPE_V8SI_V8SI_V8SI_QI,
9496 V4SI_FTYPE_V4SI_V4SI_V4SI_QI, V8SF_FTYPE_V8SF_V8SF_V8SF_QI,
9497 V16QI_FTYPE_V16QI_V16QI_V16QI_HI, V16HI_FTYPE_V16HI_V16HI_V16HI_HI,
9498 V2DI_FTYPE_V2DI_V2DI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_V4DI_QI,
9499 V4DF_FTYPE_V4DF_V4DF_V4DF_QI, V8HI_FTYPE_V16QI_V16QI_V8HI_QI,
9500 V16HI_FTYPE_V32QI_V32QI_V16HI_HI, V8SI_FTYPE_V16HI_V16HI_V8SI_QI,
9501 V4SI_FTYPE_V8HI_V8HI_V4SI_QI, QI_FTYPE_V4DI_V4DI_INT_QI,
9502 QI_FTYPE_V8SI_V8SI_INT_QI, QI_FTYPE_V4DF_V4DF_INT_QI,
9503 QI_FTYPE_V8SF_V8SF_INT_QI, QI_FTYPE_V2DI_V2DI_INT_QI,
9504 QI_FTYPE_V4SI_V4SI_INT_QI, DI_FTYPE_V64QI_V64QI_INT_DI,
9505 SI_FTYPE_V32QI_V32QI_INT_SI, HI_FTYPE_V16QI_V16QI_INT_HI,
9506 SI_FTYPE_V32HI_V32HI_INT_SI, HI_FTYPE_V16HI_V16HI_INT_HI,
9507 QI_FTYPE_V8HI_V8HI_INT_QI, V8SF_FTYPE_V8SF_INT_V8SF_QI,
9508 V4SF_FTYPE_V4SF_INT_V4SF_QI, V2DF_FTYPE_V4DF_INT_V2DF_QI,
9509 V2DI_FTYPE_V4DI_INT_V2DI_QI, V8SF_FTYPE_V16SF_INT_V8SF_QI,
9510 V8SI_FTYPE_V16SI_INT_V8SI_QI, V2DF_FTYPE_V8DF_INT_V2DF_QI,
9511 V2DI_FTYPE_V8DI_INT_V2DI_QI, V4SF_FTYPE_V8SF_INT_V4SF_QI,
9512 V4SI_FTYPE_V8SI_INT_V4SI_QI, V8HI_FTYPE_V8SF_INT_V8HI_QI,
9513 V8HI_FTYPE_V4SF_INT_V8HI_QI, V32HI_FTYPE_V32HI_INT_V32HI_SI,
9514 V16HI_FTYPE_V16HI_INT_V16HI_HI, V8HI_FTYPE_V8HI_INT_V8HI_QI,
9515 V4DI_FTYPE_V4DI_INT_V4DI_QI, V2DI_FTYPE_V2DI_INT_V2DI_QI,
9516 V8SI_FTYPE_V8SI_INT_V8SI_QI, V4SI_FTYPE_V4SI_INT_V4SI_QI,
9517 V4DF_FTYPE_V4DF_INT_V4DF_QI, V2DF_FTYPE_V2DF_INT_V2DF_QI,
9518 V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI,
9519 V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI, V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI,
9520 V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI,
9521 V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI, V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI,
9522 V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI, V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI,
9523 V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI, V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI,
9524 V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI, V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI,
9525 V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI,
9526 V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI,
9527 V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI, V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI,
9528 V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI, V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI,
9529 V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI, V8DI_FTYPE_V8DF_V8DI_QI_INT,
9530 V8SF_FTYPE_V8DI_V8SF_QI_INT, V8DF_FTYPE_V8DI_V8DF_QI_INT,
9531 V8DI_FTYPE_V8SF_V8DI_QI_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT,
9532 V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT, VOID_FTYPE_PV4DI_V4DI_QI,
9533 VOID_FTYPE_PV2DI_V2DI_QI, VOID_FTYPE_PV8SI_V8SI_QI,
9534 VOID_FTYPE_PV4SI_V4SI_QI, VOID_FTYPE_PV4SI_V4DI_QI,
9535 VOID_FTYPE_PV4SI_V2DI_QI, VOID_FTYPE_PV8HI_V4DI_QI,
9536 VOID_FTYPE_PV8HI_V2DI_QI, VOID_FTYPE_PV8HI_V8SI_QI,
9537 VOID_FTYPE_PV8HI_V4SI_QI, VOID_FTYPE_PV16QI_V4DI_QI,
9538 VOID_FTYPE_PV16QI_V2DI_QI, VOID_FTYPE_PV16QI_V8SI_QI,
9539 VOID_FTYPE_PV16QI_V4SI_QI, VOID_FTYPE_PV8HI_V8HI_QI,
9540 VOID_FTYPE_PV16HI_V16HI_HI, VOID_FTYPE_PV32HI_V32HI_SI,
9541 VOID_FTYPE_PV16QI_V16QI_HI, VOID_FTYPE_PV32QI_V32QI_SI,
9542 VOID_FTYPE_PV64QI_V64QI_DI, VOID_FTYPE_PV4DF_V4DF_QI,
9543 VOID_FTYPE_PV2DF_V2DF_QI, VOID_FTYPE_PV8SF_V8SF_QI,
9544 VOID_FTYPE_PV4SF_V4SF_QI, V4SF_FTYPE_PCV4SF_V4SF_QI,
9545 V8SF_FTYPE_PCV8SF_V8SF_QI, V4SI_FTYPE_PCV4SI_V4SI_QI,
9546 V8SI_FTYPE_PCV8SI_V8SI_QI, V2DF_FTYPE_PCV2DF_V2DF_QI,
9547 V4DF_FTYPE_PCV4DF_V4DF_QI, V2DI_FTYPE_PCV2DI_V2DI_QI,
9548 V4DI_FTYPE_PCV4DI_V4DI_QI, V8HI_FTYPE_PCV8HI_V8HI_QI,
9549 V16HI_FTYPE_PCV16HI_V16HI_HI, V32HI_FTYPE_PCV32HI_V32HI_SI,
9550 V16QI_FTYPE_PCV16QI_V16QI_HI, V32QI_FTYPE_PCV32QI_V32QI_SI,
9551 V64QI_FTYPE_PCV64QI_V64QI_DI, do not handle V8USI_FTYPE_V8USI.
9552
9553 2014-10-28 Jakub Jelinek <jakub@redhat.com>
9554
9555 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t
9556 type for the left shift in CASE_CONVERT case.
9557
9558 2014-10-28 Max Ostapenko <m.ostapenko@partner.samsung.com>
9559
9560 * asan.h (asan_intercepted_p): New function.
9561 * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
9562 hash value construction. Call iterative_hash_expr instead of explicit
9563 hash building.
9564 (asan_mem_ref_hasher::equal): Change condition.
9565 (has_mem_ref_been_instrumented): Likewise.
9566 (update_mem_ref_hash_table): Likewise.
9567 (maybe_update_mem_ref_hash_table): New function.
9568 (instrument_strlen_call): Removed.
9569 (get_mem_refs_of_builtin_call): Handle new parameter.
9570 (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
9571 of instrument_mem_region_access if intercepted_p is true.
9572 (instrument_mem_region_access): Instrument only base with len instead of
9573 base and end with 1.
9574 (build_check_stmt): Remove start_instrumented and end_instrumented
9575 parameters.
9576 (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
9577 ASAN_CHECK_END_INSTRUMENTED. Change ASAN_CHECK_LAST.
9578 (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
9579 * builtins.c (expand_builtin): Include asan.h. Don't expand string/memory
9580 builtin functions that have interceptors if ASan is enabled.
9581
9582 2014-10-28 Richard Biener <rguenther@suse.de>
9583
9584 PR middle-end/63665
9585 * fold-const.c (fold_comparison): Properly guard simplifying
9586 against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
9587
9588 2014-10-28 Alan Lawrence <alan.lawrence@arm.com>
9589
9590 * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
9591 * fold-const.c (const_binop): Likewise.
9592 * cfgexpand.c (expand_debug_expr): Likewise.
9593 * tree-inline.c (estimate_operator_cost): Likewise.
9594 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
9595 * optabs.c (optab_for_tree_code): Likewise.
9596 (expand_vec_shift_expr): Likewise, update comment.
9597 * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
9598 * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
9599 * optabs.def: Remove vec_shl_optab.
9600 * doc/md.texi: Remove references to vec_shr_m.
9601
9602 2014-10-28 Yury Gribov <y.gribov@samsung.com>
9603
9604 * asan.c (report_error_func): Add noabort path.
9605 (check_func): Ditto. Formatting.
9606 (asan_expand_check_ifn): Handle noabort path.
9607 * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
9608 to default value.
9609 * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
9610 * opts.c (finish_options): Reword comment.
9611 * sanitizer.def: Add noabort ASan builtins.
9612
9613 2014-10-28 Yury Gribov <y.gribov@samsung.com>
9614
9615 * asan.c (set_asan_shadow_offset): New function.
9616 (asan_shadow_offset): Likewise.
9617 (asan_emit_stack_protection): Call asan_shadow_offset.
9618 (build_shadow_mem_access): Likewise.
9619 * asan.h (set_asan_shadow_offset): Declare.
9620 * common.opt (fasan-shadow-offset): New option.
9621 (frandom-seed): Fixed parameter name.
9622 * doc/invoke.texi (fasan-shadow-offset): Describe new option.
9623 (frandom-seed): Fixed parameter name.
9624 * opts-global.c (handle_common_deferred_options): Handle
9625 -fasan-shadow-offset.
9626 * opts.c (common_handle_option): Likewise.
9627
9628 2014-10-27 Jiong Wang <jiong.wang@arm.com>
9629
9630 PR target/63442
9631 * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
9632
9633 2014-10-27 DJ Delorie <dj@redhat.com>
9634
9635 * tree.c (build_common_tree_nodes): Don't even store the
9636 __int128 types if they're not supported.
9637
9638 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9639
9640 * config/i386/i386.c (ix86_loop_memcount): Delete.
9641 (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
9642
9643 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9644
9645 * config/i386/i386.c (find_constant_1): Delete.
9646 (find_constant): Use FOR_EACH_SUBRTX.
9647
9648 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9649
9650 * config/i386/i386.c (extended_reg_mentioned_1): Delete.
9651 (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
9652
9653 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9654
9655 * config/i386/i386.c: Include rtl-iter.h
9656 (ix86_check_avx256_register): Take a const_rtx and return a bool.
9657 (ix86_check_avx256_stores): Update call accordingly.
9658 (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
9659 (ix86_avx_u128_mode_needed): Likewise. Use FOR_EACH_SUBRTX.
9660
9661 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9662
9663 * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
9664 Take an rtx and return a bool.
9665 * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
9666 Use FOR_EACH_SUBRTX_VAR.
9667 * config/alpha/predicates.md (some_small_symbolic_operand): Update
9668 accordingly.
9669
9670 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9671
9672 * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
9673 a bool.
9674 * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
9675 (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX. Return a bool.
9676
9677 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9678
9679 * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
9680 (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
9681
9682 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9683
9684 * config/alpha/alpha.c: Include rtl-iter.h.
9685 (split_small_symbolic_operand_1): Delete.
9686 (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
9687
9688 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9689
9690 * config/s390/s390.c: Include rtl-iter.h.
9691 (check_dpu): Delete.
9692 (s390_loop_unroll_adjust): Only iterate over patterns.
9693 Use FOR_EACH_SUBRTX.
9694
9695 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9696
9697 * config/spu/spu.c: Include rtl-iter.h
9698 (ea_symbol_ref): Replace with...
9699 (ea_symbol_ref_p): ...this new function.
9700 (spu_legitimate_address_p): Update call accordingly.
9701 (spu_legitimate_constant_p): Likewise. Use FOR_EACH_SUBRTX.
9702
9703 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
9704 Tom Tromey <tromey@redhat.com>
9705
9706 * aclocal.m4, configure: Rebuild.
9707 * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
9708 * configure.ac: Use GCC_ENABLE_PLUGINS.
9709 * stor-layout.c (finish_bitfield_layout): Now public. Change
9710 argument type to 'tree'.
9711 (finish_record_layout): Update.
9712 * stor-layout.h (finish_bitfield_layout): Declare.
9713
9714 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
9715
9716 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
9717 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
9718 Restore, enable for bigendian, update to use __builtin..._scal...
9719
9720 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
9721
9722 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
9723 reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
9724 (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
9725 reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
9726
9727 * config/aarch64/aarch64-simd.md
9728 (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
9729 (reduc_<maxmin_uns>_internal<mode>): ...this.
9730 (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
9731 (reduc_<maxmin_uns>_scal_<mode>): New (*2).
9732
9733 (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
9734 (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
9735 (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
9736
9737 * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
9738 vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
9739 vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
9740 vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
9741 vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
9742 vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
9743 vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
9744 __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
9745
9746 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
9747
9748 * config/aarch64/aarch64-simd-builtins.def
9749 (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
9750 Remove.
9751 (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
9752
9753 * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
9754 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
9755
9756 (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
9757 (aarch64_reduc_plus_internal<mode>): ...this.
9758
9759 (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
9760 (aarch64_reduc_plus_internalv2si): ...this.
9761
9762 (reduc_splus_<mode>/V2F): Rename to...
9763 (aarch64_reduc_plus_internal<mode>): ...this.
9764
9765 * config/aarch64/iterators.md
9766 (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
9767 (UNSPEC_ADDV): New.
9768 (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
9769
9770 * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
9771 vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
9772 vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
9773 vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
9774 __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
9775
9776 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
9777
9778 PR tree-optimization/61114
9779 * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
9780 optabs, and note in reduc_[us](plus|min|max) to prefer the former.
9781
9782 * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
9783 back to old reduc_... + BIT_FIELD_REF only if not.
9784
9785 * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
9786 return the reduce-to-scalar (reduc_..._scal) optab.
9787 (scalar_reduc_to_vector): New.
9788
9789 * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
9790 reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
9791 New.
9792
9793 * optabs.h (scalar_reduc_to_vector): Declare.
9794
9795 * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
9796 to either scalar or vector.
9797
9798 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
9799
9800 PR tree-optimization/61114
9801 * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
9802 extract_bit_field around optab result.
9803
9804 * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
9805 scalar not vector.
9806
9807 * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
9808 for REDUC_{MIN,MAX,PLUS}_EXPR.
9809
9810 * tree-vect-loop.c (vect_analyze_loop): Update comment.
9811 (vect_create_epilog_for_reduction): For direct vector reduction, use
9812 result of tree code directly without extract_bit_field.
9813
9814 * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
9815 comment.
9816
9817 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
9818
9819 * basic-block.h: Remove all includes.
9820 (enum profile_status_d, struct control_flow_graph): Move to cfg.h
9821 * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
9822 * Makefile.in (GTFILES): Add cfg.h to list.
9823 * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
9824 * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
9825 * genconditions.c (write_header): Add predict.h and basic-block.h to
9826 lits of includes.
9827 * genemit.c (main): Ditto.
9828 * genpreds.c (write_insn_preds_c): Ditto.
9829 * genrecog.c (write_header): Ditto.
9830 * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
9831 to list of includes.
9832 * alias.c: Adjust include files.
9833 * asan.c: Ditto.
9834 * auto-inc-dec.c: Ditto.
9835 * auto-profile.c: Ditto.
9836 * bb-reorder.c: Ditto.
9837 * bt-load.c: Ditto.
9838 * builtins.c: Ditto.
9839 * caller-save.c: Ditto.
9840 * calls.c: Ditto.
9841 * cfg.c: Ditto.
9842 * cfganal.c: Ditto.
9843 * cfgbuild.c: Ditto.
9844 * cfgcleanup.c: Ditto.
9845 * cfgexpand.c: Ditto.
9846 * cfghooks.c: Ditto.
9847 * cfgloop.c: Ditto.
9848 * cfgloopanal.c: Ditto.
9849 * cfgloopmanip.c: Ditto.
9850 * cfgrtl.c: Ditto.
9851 * cgraphbuild.c: Ditto.
9852 * cgraphclones.c: Ditto.
9853 * cgraphunit.c: Ditto.
9854 * combine-stack-adj.c: Ditto.
9855 * combine.c: Ditto.
9856 * compare-elim.c: Ditto.
9857 * coverage.c: Ditto.
9858 * cprop.c: Ditto.
9859 * cse.c: Ditto.
9860 * cselib.c: Ditto.
9861 * data-streamer-in.c: Ditto.
9862 * data-streamer-out.c: Ditto.
9863 * data-streamer.c: Ditto.
9864 * dce.c: Ditto.
9865 * ddg.c: Ditto.
9866 * ddg.h: Ditto.
9867 * df-core.c: Ditto.
9868 * df-problems.c: Ditto.
9869 * df-scan.c: Ditto.
9870 * df.h: Ditto.
9871 * dojump.c: Ditto.
9872 * dominance.c: Ditto.
9873 * domwalk.c: Ditto.
9874 * dse.c: Ditto.
9875 * dwarf2cfi.c: Ditto.
9876 * emit-rtl.c: Ditto.
9877 * et-forest.c: Ditto.
9878 * except.c: Ditto.
9879 * expmed.c: Ditto.
9880 * expr.c: Ditto.
9881 * final.c: Ditto.
9882 * fold-const.c: Ditto.
9883 * function.c: Ditto.
9884 * fwprop.c: Ditto.
9885 * gcc-plugin.h: Ditto.
9886 * gcse.c: Ditto.
9887 * generic-match-head.c: Ditto.
9888 * ggc-page.c: Ditto.
9889 * gimple-builder.c: Ditto.
9890 * gimple-expr.c: Ditto.
9891 * gimple-fold.c: Ditto.
9892 * gimple-iterator.c: Ditto.
9893 * gimple-low.c: Ditto.
9894 * gimple-match-head.c: Ditto.
9895 * gimple-pretty-print.c: Ditto.
9896 * gimple-ssa-isolate-paths.c: Ditto.
9897 * gimple-ssa-strength-reduction.c: Ditto.
9898 * gimple-streamer-in.c: Ditto.
9899 * gimple-streamer-out.c: Ditto.
9900 * gimple-streamer.h: Ditto.
9901 * gimple-walk.c: Ditto.
9902 * gimple.c: Ditto.
9903 * gimplify-me.c: Ditto.
9904 * gimplify.c: Ditto.
9905 * graph.c: Ditto.
9906 * graphite-blocking.c: Ditto.
9907 * graphite-clast-to-gimple.c: Ditto.
9908 * graphite-dependences.c: Ditto.
9909 * graphite-interchange.c: Ditto.
9910 * graphite-isl-ast-to-gimple.c: Ditto.
9911 * graphite-optimize-isl.c: Ditto.
9912 * graphite-poly.c: Ditto.
9913 * graphite-scop-detection.c: Ditto.
9914 * graphite-sese-to-poly.c: Ditto.
9915 * graphite.c: Ditto.
9916 * haifa-sched.c: Ditto.
9917 * hw-doloop.c: Ditto.
9918 * ifcvt.c: Ditto.
9919 * init-regs.c: Ditto.
9920 * internal-fn.c: Ditto.
9921 * ipa-cp.c: Ditto.
9922 * ipa-devirt.c: Ditto.
9923 * ipa-icf-gimple.c: Ditto.
9924 * ipa-icf.c: Ditto.
9925 * ipa-inline-analysis.c: Ditto.
9926 * ipa-inline.c: Ditto.
9927 * ipa-polymorphic-call.c: Ditto.
9928 * ipa-profile.c: Ditto.
9929 * ipa-prop.c: Ditto.
9930 * ipa-pure-const.c: Ditto.
9931 * ipa-reference.c: Ditto.
9932 * ipa-split.c: Ditto.
9933 * ipa-utils.c: Ditto.
9934 * ipa.c: Ditto.
9935 * ira-build.c: Ditto.
9936 * ira-color.c: Ditto.
9937 * ira-conflicts.c: Ditto.
9938 * ira-costs.c: Ditto.
9939 * ira-emit.c: Ditto.
9940 * ira-lives.c: Ditto.
9941 * ira.c: Ditto.
9942 * jump.c: Ditto.
9943 * lcm.c: Ditto.
9944 * loop-doloop.c: Ditto.
9945 * loop-init.c: Ditto.
9946 * loop-invariant.c: Ditto.
9947 * loop-iv.c: Ditto.
9948 * loop-unroll.c: Ditto.
9949 * lower-subreg.c: Ditto.
9950 * lra-assigns.c: Ditto.
9951 * lra-coalesce.c: Ditto.
9952 * lra-constraints.c: Ditto.
9953 * lra-eliminations.c: Ditto.
9954 * lra-lives.c: Ditto.
9955 * lra-spills.c: Ditto.
9956 * lra.c: Ditto.
9957 * lto-cgraph.c: Ditto.
9958 * lto-compress.c: Ditto.
9959 * lto-opts.c: Ditto.
9960 * lto-section-in.c: Ditto.
9961 * lto-section-out.c: Ditto.
9962 * lto-streamer-in.c: Ditto.
9963 * lto-streamer-out.c: Ditto.
9964 * lto-streamer.c: Ditto.
9965 * mcf.c: Ditto.
9966 * mode-switching.c: Ditto.
9967 * modulo-sched.c: Ditto.
9968 * omp-low.c: Ditto.
9969 * optabs.c: Ditto.
9970 * opts-global.c: Ditto.
9971 * passes.c: Ditto.
9972 * postreload-gcse.c: Ditto.
9973 * postreload.c: Ditto.
9974 * predict.c: Ditto.
9975 * print-rtl.c: Ditto.
9976 * profile.c: Ditto.
9977 * recog.c: Ditto.
9978 * ree.c: Ditto.
9979 * reg-stack.c: Ditto.
9980 * regcprop.c: Ditto.
9981 * regcprop.h: Ditto.
9982 * reginfo.c: Ditto.
9983 * regrename.c: Ditto.
9984 * regstat.c: Ditto.
9985 * reload.c: Ditto.
9986 * reload1.c: Ditto.
9987 * reorg.c: Ditto.
9988 * resource.c: Ditto.
9989 * rtlanal.c: Ditto.
9990 * sched-deps.c: Ditto.
9991 * sched-ebb.c: Ditto.
9992 * sched-int.h: Ditto.
9993 * sched-rgn.c: Ditto.
9994 * sched-vis.c: Ditto.
9995 * sel-sched-dump.c: Ditto.
9996 * sel-sched-ir.c: Ditto.
9997 * sel-sched-ir.h: Ditto.
9998 * sel-sched.c: Ditto.
9999 * sese.c: Ditto.
10000 * shrink-wrap.c: Ditto.
10001 * stack-ptr-mod.c: Ditto.
10002 * stmt.c: Ditto.
10003 * store-motion.c: Ditto.
10004 * symtab.c: Ditto.
10005 * toplev.c: Ditto.
10006 * tracer.c: Ditto.
10007 * trans-mem.c: Ditto.
10008 * tree-affine.c: Ditto.
10009 * tree-call-cdce.c: Ditto.
10010 * tree-cfg.c: Ditto.
10011 * tree-cfgcleanup.c: Ditto.
10012 * tree-chrec.c: Ditto.
10013 * tree-complex.c: Ditto.
10014 * tree-data-ref.c: Ditto.
10015 * tree-dfa.c: Ditto.
10016 * tree-eh.c: Ditto.
10017 * tree-emutls.c: Ditto.
10018 * tree-if-conv.c: Ditto.
10019 * tree-inline.c: Ditto.
10020 * tree-into-ssa.c: Ditto.
10021 * tree-loop-distribution.c: Ditto.
10022 * tree-nested.c: Ditto.
10023 * tree-nrv.c: Ditto.
10024 * tree-object-size.c: Ditto.
10025 * tree-outof-ssa.c: Ditto.
10026 * tree-parloops.c: Ditto.
10027 * tree-phinodes.c: Ditto.
10028 * tree-predcom.c: Ditto.
10029 * tree-pretty-print.c: Ditto.
10030 * tree-profile.c: Ditto.
10031 * tree-scalar-evolution.c: Ditto.
10032 * tree-sra.c: Ditto.
10033 * tree-ssa-address.c: Ditto.
10034 * tree-ssa-alias.c: Ditto.
10035 * tree-ssa-ccp.c: Ditto.
10036 * tree-ssa-coalesce.c: Ditto.
10037 * tree-ssa-copy.c: Ditto.
10038 * tree-ssa-copyrename.c: Ditto.
10039 * tree-ssa-dce.c: Ditto.
10040 * tree-ssa-dom.c: Ditto.
10041 * tree-ssa-dse.c: Ditto.
10042 * tree-ssa-forwprop.c: Ditto.
10043 * tree-ssa-ifcombine.c: Ditto.
10044 * tree-ssa-live.c: Ditto.
10045 * tree-ssa-loop-ch.c: Ditto.
10046 * tree-ssa-loop-im.c: Ditto.
10047 * tree-ssa-loop-ivcanon.c: Ditto.
10048 * tree-ssa-loop-ivopts.c: Ditto.
10049 * tree-ssa-loop-manip.c: Ditto.
10050 * tree-ssa-loop-niter.c: Ditto.
10051 * tree-ssa-loop-prefetch.c: Ditto.
10052 * tree-ssa-loop-unswitch.c: Ditto.
10053 * tree-ssa-loop.c: Ditto.
10054 * tree-ssa-math-opts.c: Ditto.
10055 * tree-ssa-operands.c: Ditto.
10056 * tree-ssa-phiopt.c: Ditto.
10057 * tree-ssa-phiprop.c: Ditto.
10058 * tree-ssa-pre.c: Ditto.
10059 * tree-ssa-propagate.c: Ditto.
10060 * tree-ssa-reassoc.c: Ditto.
10061 * tree-ssa-sccvn.c: Ditto.
10062 * tree-ssa-sink.c: Ditto.
10063 * tree-ssa-strlen.c: Ditto.
10064 * tree-ssa-structalias.c: Ditto.
10065 * tree-ssa-tail-merge.c: Ditto.
10066 * tree-ssa-ter.c: Ditto.
10067 * tree-ssa-threadedge.c: Ditto.
10068 * tree-ssa-threadupdate.c: Ditto.
10069 * tree-ssa-uncprop.c: Ditto.
10070 * tree-ssa-uninit.c: Ditto.
10071 * tree-ssa.c: Ditto.
10072 * tree-ssanames.c: Ditto.
10073 * tree-stdarg.c: Ditto.
10074 * tree-streamer-in.c: Ditto.
10075 * tree-streamer-out.c: Ditto.
10076 * tree-streamer.c: Ditto.
10077 * tree-switch-conversion.c: Ditto.
10078 * tree-tailcall.c: Ditto.
10079 * tree-vect-data-refs.c: Ditto.
10080 * tree-vect-generic.c: Ditto.
10081 * tree-vect-loop-manip.c: Ditto.
10082 * tree-vect-loop.c: Ditto.
10083 * tree-vect-patterns.c: Ditto.
10084 * tree-vect-slp.c: Ditto.
10085 * tree-vect-stmts.c: Ditto.
10086 * tree-vectorizer.c: Ditto.
10087 * tree-vrp.c: Ditto.
10088 * tree.c: Ditto.
10089 * tsan.c: Ditto.
10090 * ubsan.c: Ditto.
10091 * valtrack.c: Ditto.
10092 * valtrack.h: Ditto.
10093 * value-prof.c: Ditto.
10094 * var-tracking.c: Ditto.
10095 * varasm.c: Ditto.
10096 * varpool.c: Ditto.
10097 * vtable-verify.c: Ditto.
10098 * web.c: Ditto.
10099 * config/aarch64/aarch64-builtins.c: Ditto.
10100 * config/aarch64/aarch64.c: Ditto.
10101 * config/alpha/alpha.c: Ditto.
10102 * config/arc/arc.c: Ditto.
10103 * config/arm/arm.c: Ditto.
10104 * config/avr/avr.c: Ditto.
10105 * config/bfin/bfin.c: Ditto.
10106 * config/c6x/c6x.c: Ditto.
10107 * config/cr16/cr16.c: Ditto.
10108 * config/cris/cris.c: Ditto.
10109 * config/darwin-c.c: Ditto.
10110 * config/darwin.c: Ditto.
10111 * config/epiphany/epiphany.c: Ditto.
10112 * config/epiphany/mode-switch-use.c: Ditto.
10113 * config/epiphany/resolve-sw-modes.c: Ditto.
10114 * config/fr30/fr30.c: Ditto.
10115 * config/frv/frv.c: Ditto.
10116 * config/h8300/h8300.c: Ditto.
10117 * config/i386/i386.c: Ditto.
10118 * config/i386/winnt.c: Ditto.
10119 * config/ia64/ia64.c: Ditto.
10120 * config/iq2000/iq2000.c: Ditto.
10121 * config/lm32/lm32.c: Ditto.
10122 * config/m32c/m32c.c: Ditto.
10123 * config/m32r/m32r.c: Ditto.
10124 * config/m68k/m68k.c: Ditto.
10125 * config/mcore/mcore.c: Ditto.
10126 * config/mep/mep.c: Ditto.
10127 * config/microblaze/microblaze.c: Ditto.
10128 * config/mips/mips.c: Ditto.
10129 * config/mmix/mmix.c: Ditto.
10130 * config/mn10300/mn10300.c: Ditto.
10131 * config/moxie/moxie.c: Ditto.
10132 * config/msp430/msp430.c: Ditto.
10133 * config/nds32/nds32-cost.c: Ditto.
10134 * config/nds32/nds32-fp-as-gp.c: Ditto.
10135 * config/nds32/nds32-intrinsic.c: Ditto.
10136 * config/nds32/nds32-isr.c: Ditto.
10137 * config/nds32/nds32-md-auxiliary.c: Ditto.
10138 * config/nds32/nds32-memory-manipulation.c: Ditto.
10139 * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
10140 * config/nds32/nds32-predicates.c: Ditto.
10141 * config/nds32/nds32.c: Ditto.
10142 * config/nios2/nios2.c: Ditto.
10143 * config/pa/pa.c: Ditto.
10144 * config/pdp11/pdp11.c: Ditto.
10145 * config/rl78/rl78.c: Ditto.
10146 * config/rs6000/rs6000.c: Ditto.
10147 * config/rx/rx.c: Ditto.
10148 * config/s390/s390.c: Ditto.
10149 * config/sh/sh-mem.cc: Ditto.
10150 * config/sh/sh.c: Ditto.
10151 * config/sh/sh_optimize_sett_clrt.cc: Ditto.
10152 * config/sh/sh_treg_combine.cc: Ditto.
10153 * config/sparc/sparc.c: Ditto.
10154 * config/spu/spu.c: Ditto.
10155 * config/stormy16/stormy16.c: Ditto.
10156 * config/tilegx/tilegx.c: Ditto.
10157 * config/tilepro/tilepro.c: Ditto.
10158 * config/v850/v850.c: Ditto.
10159 * config/vax/vax.c: Ditto.
10160 * config/xtensa/xtensa.c: Ditto.
10161
10162 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
10163
10164 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
10165 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
10166 Remove using preprocessor directives.
10167
10168 2014-10-27 Richard Biener <rguenther@suse.de>
10169
10170 * match.pd (0 % X): Properly use the iterator iterating over
10171 all modulo operators.
10172 (X % 1): Likewise.
10173
10174 2014-10-27 Richard Biener <rguenther@suse.de>
10175
10176 * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
10177 (lattice): New global.
10178 (fwprop_ssa_val): New function.
10179 (fold_all_stmts): Likewise.
10180 (pass_forwprop::execute): Finally fold all stmts.
10181
10182 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
10183
10184 PR c++/53061
10185 * doc/invoke.texi (fmessage-length): Update text to match reality.
10186
10187 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10188
10189 * config/microblaze/microblaze.c: Include rtl-iter.h.
10190 (microblaze_tls_referenced_p_1): Delete.
10191 (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
10192
10193 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10194
10195 * config/mips/mips.c (mips_at_reg_p): Delete.
10196 (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
10197
10198 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10199
10200 * config/mips/mips.c (mips_record_lo_sum): Replace with...
10201 (mips_record_lo_sums): ...this new function.
10202 (mips_reorg_process_insns): Update accordingly.
10203
10204 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10205
10206 * config/mips/mips.c (mips_sim_insn): Update comment.
10207 (mips_sim_wait_regs_2): Delete.
10208 (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
10209
10210 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10211
10212 * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
10213 and return a bool. Iterate over all subrtxes here.
10214 (r10k_needs_protection_p): Update accordingly.
10215
10216 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10217
10218 * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
10219 rather than an rtx pointer. Change type of insn from "void *"
10220 to its real type. Return bool rather than int. Iterate over
10221 all subrtxes here.
10222 (r10k_needs_protection_p_store): Update accordingly.
10223 (r10k_needs_protection_p): Likewise.
10224
10225 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10226
10227 * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
10228 (mips16_rewrite_pool_refs): Take the insn and constant pool as
10229 parameters. Iterate over the instruction's pattern and return void.
10230 (mips16_lay_out_constants): Update accordingly.
10231
10232 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10233
10234 * config/mips/mips.c (mips_kernel_reg_p): Replace with...
10235 (mips_refers_to_kernel_reg_p): ...this new function.
10236 (mips_expand_prologue): Update accordingly.
10237
10238 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10239
10240 * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
10241 as a parameter instead of the containing MEM. Iterate over all
10242 subrtxes. Don't return a value.
10243 (mips_rewrite_small_data): Update call accordingly.
10244
10245 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10246
10247 * config/mips/mips.c: Include rtl-iter.h.
10248 (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
10249 Take the context as a parameter instead of the containing MEM.
10250 Iterate over all subrtxes.
10251 (mips_small_data_pattern_p): Update call accordingly.
10252
10253 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10254
10255 * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
10256 (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
10257
10258 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10259
10260 * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
10261 return a bool. Replace "void *" with specific type. Iterate
10262 over all subrtxes.
10263 (mep_store_data_bypass_1): Update calls accordingly.
10264
10265 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10266
10267 * config/mep/mep.c: Include rtl-iter.h.
10268 (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
10269 (xtensa_tls_referenced_p): Return a bool. Use FOR_EACH_SUBRTX.
10270
10271 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10272
10273 * config/xtensa/xtensa.c: Include rtl-iter.h.
10274 (xtensa_tls_referenced_p_1): Delete.
10275 (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
10276
10277 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10278
10279 * config/sh/sh.c (sh_contains_memref_p_1): Delete.
10280 (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
10281
10282 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10283
10284 * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
10285 rtx as argument and return the number of changes.
10286 * config/sh/sh.c: Include rtl-iter.h.
10287 (shmedia_cleanup_truncate): Take an rtx as argument and iterate
10288 over all subrtxes. Return the number of changes made.
10289 * config/sh/sh.md: Update caller accordingly.
10290
10291 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10292
10293 * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
10294 (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
10295
10296 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10297
10298 * config/m68k/m68k.c: Include rtl-iter.h.
10299 (m68k_final_prescan_insn_1): Delete.
10300 (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
10301
10302 2014-10-25 Jakub Jelinek <jakub@redhat.com>
10303
10304 PR tree-optimization/63641
10305 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
10306 to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
10307
10308 2014-10-25 Alan Modra <amodra@gmail.com>
10309
10310 PR rtl-optimization/63615
10311 * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
10312 decomposing PLUS or MINUS if operands are not placed adjacent
10313 in the "ops" array.
10314
10315 2014-10-25 Joseph Myers <joseph@codesourcery.com>
10316
10317 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
10318 not allow e500 double in registers not satisyfing
10319 SPE_SIMD_REGNO_P.
10320
10321 2014-10-24 Aldy Hernandez <aldyh@redhat.com>
10322
10323 * dwarf2out.c (declare_in_namespace): Only emit external
10324 declarations in the local scope once.
10325
10326 2014-10-24 Jonathan Wakely <jwakely@redhat.com>
10327
10328 * ginclude/stdbool.h: Do not define bool, true or false in C++11.
10329
10330 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
10331
10332 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
10333 update uses to use new macro arguments.
10334 (__LD3_LANE_FUNC): Likewise.
10335 (__LD4_LANE_FUNC): Likewise.
10336
10337 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
10338
10339 * config/aarch64/aarch64-builtins.c
10340 (aarch64_types_loadstruct_lane_qualifiers): Define.
10341 * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
10342 ld4_lane): New builtins.
10343 * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
10344 New pattern.
10345 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
10346 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
10347 (aarch64_ld2_lane<mode>): New expand.
10348 (aarch64_ld3_lane<mode>): Likewise.
10349 (aarch64_ld4_lane<mode>): Likewise.
10350 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
10351 UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
10352
10353 2014-10-24 Georg-Johann Lay <avr@gjlay.de>
10354
10355 * avr-protos.h (avr_out_sign_extend): New.
10356 * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
10357 (avr_out_sign_extend): New function.
10358 * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
10359 (extendhisi2, extendpsisi2): Use it.
10360 (adjust_len) [sext]: New.
10361
10362 2014-10-24 Martin Liska <mliska@suse.cz>
10363
10364 * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
10365 added.
10366
10367 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10368
10369 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
10370 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
10371 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
10372 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
10373
10374 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10375
10376 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
10377 do while (0).
10378 * config/aarch64/aarch64.c (is_mem_p): Delete.
10379 (is_memory_op): Rename to...
10380 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
10381 (dep_between_memop_and_curr): Assert that the input is a SET.
10382 (aarch64_madd_needs_nop): Add comment. Do not call
10383 dep_between_memop_and_curr on NULL body.
10384 (aarch64_final_prescan_insn): Add comment.
10385 Include rtl-iter.h.
10386
10387 2014-10-24 Richard Biener <rguenther@suse.de>
10388
10389 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
10390 to genmatch BUILD_LIBS instead.
10391
10392 2014-10-24 Richard Biener <rguenther@suse.de>
10393
10394 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
10395 and build_call_expr_loc.
10396 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
10397 non_lvalue_loc to build it for GENERIC.
10398 (decision_tree::gen_generic): Add location argument to
10399 generic_simplify prototype.
10400 (capture_info): New class.
10401 (capture_info::capture_info): New constructor.
10402 (capture_info::walk_match): New method.
10403 (capture_info::walk_result): New method.
10404 (capture_info::walk_c_expr): New method.
10405 (dt_simplify::gen): Handle preserving side-effects for
10406 GENERIC code generation.
10407 (decision_tree::gen_generic): Do not reject operands
10408 with TREE_SIDE_EFFECTS.
10409 * generic-match.h: New file.
10410 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
10411 * match.pd: Add some constant folding patterns from fold-const.c.
10412 * fold-const.c: Include generic-match.h.
10413 (fold_unary_loc): Dispatch to generic_simplify.
10414 (fold_ternary_loc): Likewise.
10415 (fold_binary_loc): Likewise. Remove patterns now implemented
10416 by generic_simplify.
10417 * gimple-fold.c (replace_stmt_with_simplification): New function.
10418 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
10419 (no_follow_ssa_edges): New function.
10420 (fold_stmt): New overload with valueization hook. Use
10421 no_follow_ssa_edges for the overload without hook.
10422 (fold_stmt_inplace): Likewise.
10423 * gimple-fold.h (no_follow_ssa_edges): Declare.
10424
10425 2014-10-24 Felix Yang <felix.yang@huawei.com>
10426 Jiji Jiang <jiangjiji@huawei.com>
10427
10428 PR target/63173
10429 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
10430 (__LD3R_FUNC): Ditto.
10431 (__LD4R_FUNC): Ditto.
10432 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
10433 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
10434 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
10435 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
10436 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
10437 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
10438 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
10439 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
10440 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
10441 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
10442 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
10443 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
10444 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
10445 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
10446 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
10447 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
10448 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
10449 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
10450 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
10451 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
10452 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
10453 builtins.
10454 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
10455 (aarch64_simd_ld3r<mode>): Likewise.
10456 (aarch64_simd_ld4r<mode>): Likewise.
10457 (aarch64_ld2r<mode>): New expand.
10458 (aarch64_ld3r<mode>): Likewise.
10459 (aarch64_ld4r<mode>): Likewise.
10460
10461 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10462
10463 * rtlanal.c (get_base_term): Handle SCRATCH.
10464
10465 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10466
10467 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
10468 register pressure.
10469
10470 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10471
10472 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
10473 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
10474 (max_issue, choose_ready, sched_init): Update.
10475
10476 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10477
10478 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
10479 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
10480 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
10481 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
10482 (print_rank_for_schedule_stats): Print out elements of ready list that
10483 ended up on their respective places due to each of the sorting
10484 heuristics.
10485 (ready_sort): Update.
10486 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
10487 (schedule_block): Update.
10488
10489 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10490
10491 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
10492 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
10493 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
10494 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
10495 (model_start_schedule): Update.
10496 (sched_pressure_start_bb): New static function. Calculate
10497 sched_class_regs_num.
10498 (schedule_block): Use it.
10499 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
10500
10501 2014-10-24 Richard Biener <rguenther@suse.de>
10502
10503 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
10504 host library and make sure to pull in the required libintl
10505 and libiconv dependencies.
10506
10507 2014-10-24 Richard Biener <rguenther@suse.de>
10508
10509 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
10510
10511 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
10512
10513 PR bootstrap/63632
10514 * collect2.c (main): Filter out -fno-lto.
10515
10516 2014-10-24 Martin Liska <mliska@suse.cz>
10517
10518 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
10519 division by zero in dumps.
10520 (sem_item_optimizer::merge_classes): Ditto.
10521
10522 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
10523
10524 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
10525
10526 2014-10-23 Ian Lance Taylor <iant@google.com>
10527
10528 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
10529
10530 2014-10-23 Ian Lance Taylor <iant@google.com>
10531
10532 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
10533
10534 2014-10-23 Jakub Jelinek <jakub@redhat.com>
10535
10536 PR debug/63623
10537 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
10538 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
10539 instead of only handling autoinc in dest if it is a MEM.
10540 (vt_stack_adjustments): Fix up formatting.
10541
10542 2014-10-23 DJ Delorie <dj@redhat.com>
10543
10544 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
10545 independend of -mlarge.
10546 * config/msp430/constraints.md (Ys): Update comment.
10547
10548 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
10549
10550 PR target/63534
10551 PR target/63618
10552 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
10553 while it is pseudo.
10554 * dse.c (deletable_insn_p): Likewise.
10555
10556 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
10557
10558 * config/avr/avr.c: Fix GNU coding rules and typos.
10559 * config/avr/avr.h: Dito.
10560 * config/avr/avr-c.c: Dito.
10561 * config/avr/avr.md: Dito.
10562
10563 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
10564
10565 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
10566 New.
10567 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
10568 iterator.
10569 (define_expand "abs<mode>2"): Ditto.
10570
10571 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
10572
10573 * tree-core.h (tree_var_decl): Extend `function_code' field
10574 by one bit, move `regdecl_flag' field to ...
10575 (tree_decl_with_vis): Here.
10576 * tree.h (DECL_STATIC_CHAIN): Update struct name.
10577
10578 2014-10-23 Richard Biener <rguenther@suse.de>
10579
10580 * Makefile.in (BUILD_CPPLIB): Add.
10581 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
10582 Drop LIBIBERTY.
10583
10584 2014-10-23 Richard Biener <rguenther@suse.de>
10585
10586 * fold-const.c (fold_binary_loc): Preserve side-effects of
10587 X - X when simplifying to 0.
10588 * stor-layout.c (finish_bitfield_representative): Strip
10589 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
10590
10591 2014-10-22 Richard Biener <rguenther@suse.de>
10592 Tobias Burnus <burnus@net-b.de>
10593
10594 PR lto/63603
10595 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
10596
10597 2014-10-22 Dehao Chen <dehao@google.com>
10598
10599 * auto-profile.c: Change order of header files.
10600
10601 2014-10-22 Guozhi Wei <carrot@google.com>
10602
10603 PR tree-optimization/63530
10604 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
10605 pointer alignment according to DR_MISALIGNMENT.
10606
10607 2014-10-22 David Malcolm <dmalcolm@redhat.com>
10608
10609 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
10610
10611 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
10612
10613 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
10614 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
10615 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
10616 * dominance.h: New. Add prototypes for dominance.c.
10617 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
10618 * cfghooks.h: (struct profile_record) Relocate here.
10619 Relocate 2 prototypes from basic-block.h.
10620 * basic-block.h: Move prototypes and struct to new header files.
10621 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
10622 * rtl.h: Move a few prototypes to new header files.
10623 * cfgcleanup.c (merge_memattrs): Make static.
10624 * genopinit.c (main): Add predict.h to list of includes.
10625 * predict.h: Update prototype list to match predict.c.
10626 * predict.c (maybe_hot_count_p): Export.
10627 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
10628 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
10629 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
10630 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
10631 * profile.h: Adjust prototypes.
10632 * ifcvt.h: New. Relocate struct ce_if_block here.
10633 * ifcvt.c: Include ifcvt.h.
10634 * config/frv/frv.c: Include ifcvt.h.
10635 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
10636
10637 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
10638
10639 * lra.c (lra): Remove call to recog_init.
10640 * config/i386/i386.md (preferred_for_speed): New attribute
10641 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
10642 "enabled". Remove check for sched1.
10643
10644 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
10645
10646 * recog.h (recog_data_d): Remove enabled_alternatives.
10647 * recog.c (extract_insn): Don't set it.
10648 * reload.c (find_reloads): Call get_enabled_alternatives.
10649
10650 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
10651
10652 * recog.h (constrain_operands): Add an alternative_mask parameter.
10653 (constrain_operands_cached): Likewise.
10654 (get_preferred_alternatives): Declare new form.
10655 * recog.c (get_preferred_alternatives): New bb-taking instance.
10656 (constrain_operands): Take the set of available alternatives as
10657 a parameter.
10658 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
10659 (extract_constrain_insn_cached): Update calls to constrain_operands.
10660 * caller-save.c (reg_save_code): Likewise.
10661 * ira.c (setup_prohibited_mode_move_regs): Likewise.
10662 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
10663 * ree.c (combine_reaching_defs): Likewise.
10664 * reload.c (can_reload_into): Likewise.
10665 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
10666 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
10667 (emit_insn_if_valid_for_reload): Likewise.
10668 * reorg.c (fill_slots_from_thread): Likewise.
10669 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
10670 * config/pa/pa.c (pa_can_combine_p): Likewise.
10671 * config/rl78/rl78.c (insn_ok_now): Likewise.
10672 * config/sh/sh.md (define_peephole2): Likewise.
10673 * final.c (final_scan_insn): Update call to constrain_operands_cached.
10674
10675 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
10676
10677 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
10678 attributes.
10679 * genattr.c (main): Handle "preferred_for_size" and
10680 "preferred_for_speed" in the same way as "enabled".
10681 * recog.h (bool_attr): New enum.
10682 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
10683 (get_preferred_alternatives, check_bool_attrs): Declare.
10684 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
10685 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
10686 New functions.
10687 (get_enabled_alternatives): Use get_bool_attr_mask.
10688 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
10689 instead of recog_data.enabled_alternatives.
10690 * ira.c (ira_setup_alts): Likewise.
10691 * postreload.c (reload_cse_simplify_operands): Likewise.
10692 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
10693 * ira-lives.c (preferred_alternatives): New variable.
10694 (process_bb_node_lives): Set it.
10695 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
10696 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
10697 of recog_data.enabled_alternatives.
10698 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
10699 to preferred_alternatives.
10700 * lra-constraints.c (process_alt_operands): Update accordingly.
10701 * lra.c (lra_set_insn_recog_data): Likewise.
10702 (lra_update_insn_recog_data): Assert check_bool_attrs.
10703
10704 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
10705
10706 * recog.h (extract_constrain_insn): Declare.
10707 * recog.c (extract_constrain_insn): New function.
10708 * lra.c (check_rtl): Use it.
10709 * postreload.c (reload_cse_simplify_operands): Likewise.
10710 * reg-stack.c (check_asm_stack_operands): Likewise.
10711 (subst_asm_stack_regs): Likewise.
10712 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
10713 * regrename.c (build_def_use): Likewise.
10714 * sel-sched.c (get_reg_class): Likewise.
10715 * config/arm/arm.c (note_invalid_constants): Likewise.
10716 * config/s390/predicates.md (execute_operation): Likewise.
10717
10718 2014-10-22 Jakub Jelinek <jakub@redhat.com>
10719 Yury Gribov <y.gribov@samsung.com>
10720
10721 * common.opt (flag_sanitize_recover): New variable.
10722 (fsanitize-recover): Remove Var/Init, deprecate.
10723 (fsanitize-recover=): New option.
10724 * doc/invoke.texi (fsanitize-recover): Update docs.
10725 * opts.c (finish_options): Use opts->x_flag_sanitize
10726 instead of flag_sanitize. Prohibit -fsanitize-recover
10727 for anything besides UBSan. Formatting.
10728 (common_handle_option): Handle OPT_fsanitize_recover_
10729 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
10730 instead of flag_sanitize.
10731 * asan.c (pass_sanopt::execute): Fix up formatting.
10732 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
10733 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
10734 instrument_bool_enum_load, ubsan_instrument_float_cast,
10735 instrument_nonnull_arg, instrument_nonnull_return): Check
10736 bits in flag_sanitize_recover bitmask instead of
10737 flag_sanitize_recover as bool flag.
10738
10739 2014-10-22 Jiong Wang <jiong.wang@arm.com>
10740
10741 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
10742
10743 2014-10-22 Renlin Li <renlin.li@arm.com>
10744
10745 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
10746 __ARM_FEATURE_IDIV__.
10747
10748 2014-10-22 Richard Biener <rguenther@suse.de>
10749
10750 * Makefile.in (s-match): Adjust dependencies to only catch
10751 match.pd.
10752
10753 2014-10-22 Richard Biener <rguenther@suse.de>
10754 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
10755
10756 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
10757 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
10758 (gimple-match.c): Generate by triggering s-match.
10759 (generic-match.c): Likewise.
10760 (s-match): Rule to build gimple-match.c and generic-match.c
10761 by running the genmatch generator program.
10762 (build/hash-table.o): Dependencies to build hash-table.c for the host.
10763 (build/genmatch.o): Dependencies to build genmatch.
10764 (genprog): Add match.
10765 (build/genmatch): Likewise.
10766 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
10767 * generic-match-head.c: New file.
10768 * gimple-match-head.c: Likewise.
10769 * gimple-match.h: Likewise.
10770 * genmatch.c: Likewise.
10771 * match.pd: Likewise.
10772 * builtins.h (fold_builtin_n): Export.
10773 * builtins.c (fold_builtin_n): Likewise.
10774 * gimple-fold.h (gimple_build): Declare various overloads.
10775 (gimple_simplify): Likewise.
10776 (gimple_convert): Re-implement in terms of gimple_build.
10777 * gimple-fold.c (gimple_convert): Remove.
10778 (gimple_build): New functions.
10779 * doc/match-and-simplify.texi: New file.
10780 * doc/gccint.texi: Add menu item Match and Simplify and include
10781 match-and-simplify.texi.
10782
10783 2014-10-22 Jakub Jelinek <jakub@redhat.com>
10784
10785 PR target/63594
10786 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
10787 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
10788 even for just TARGET_AVX2, not only for
10789 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
10790 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
10791 otherwise build it using concatenation of 256-bit
10792 broadcast.
10793 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
10794 avx512 broadcast patterns.
10795 (vec_dup<mode>): Likewise. For avx2 use
10796 v<sseintprefix>broadcast<bcstscalarsuff> instead of
10797 vbroadcast<ssescalarmodesuffix>.
10798 (AVX2_VEC_DUP_MODE): New mode iterator.
10799 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
10800 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
10801
10802 PR target/63542
10803 * config/i386/i386.c (ix86_pic_register_p): Also return
10804 true if x is a hard register with ORIGINAL_REGNO equal to
10805 pic_offset_table_rtx pseudo REGNO.
10806 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
10807 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
10808
10809 2014-10-22 Alan Modra <amodra@gmail.com>
10810
10811 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
10812 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
10813 (gcc_obstack_init): Use obstack_specify_allocation in place of
10814 _obstack_begin.
10815 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
10816 (regexp_representation): Likewise.
10817 * godump.c (go_output_type): Likewise.
10818
10819 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
10820
10821 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
10822 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
10823 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
10824
10825 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
10826
10827 * doc/invoke.texi (pedantic-errors): Explain better.
10828
10829 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
10830 Vidya Praveen <vidya.praveen@atmel.com>
10831 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
10832 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
10833 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
10834
10835 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
10836 __MEMX for avrtiny.
10837 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
10838 (avr_nonconst_pointer_addrspace): Likewise.
10839 * config/avr/avr.h (AVR_HAVE_LPM): Define.
10840
10841 Added AVRTINY architecture to avr target.
10842 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
10843 (base_arch_s): member added for AVRTINY architecture.
10844 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
10845 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
10846 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
10847 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
10848 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
10849 in callee saved register list.
10850 (avr_option_override): CCP address updated for AVRTINY.
10851 (avr_init_expanders): tmp and zero rtx initialized as per arch.
10852 Reset avr_have_dimode if AVRTINY.
10853 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
10854 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
10855 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
10856 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
10857 (expand_epilogue): Likewise.
10858 (avr_print_operand): Print CCP address in case of AVRTINY also.
10859 <TBD>bad address
10860 (function_arg_regno_p): Check different register list for arguments
10861 if AVRTINY.
10862 (init_cumulative_args): Check for AVRTINY to update number of argument
10863 registers.
10864 (tiny_valid_direct_memory_access_range): New function. Return false if
10865 direct memory access range is not in accepted range for AVRTINY.
10866 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
10867 indirect load (with displacement) for AVRTINY.
10868 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
10869 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
10870 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
10871 indirect load (no displacement) for AVRTINY.
10872 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
10873 indirect load (with displacement) for AVRTINY.
10874 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
10875 indirect load for pre-decrement address.
10876 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
10877 functions. Update instruction length for AVRTINY.
10878 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
10879 SImode.
10880 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
10881 (out_movsi_r_mr): Likewise, for SImode.
10882 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
10883 indirect store (no displacement) for AVRTINY.
10884 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
10885 indirect store (with displacement) for AVRTINY.
10886 (out_movsi_mr_r): Emit out insn for IO address store. Update store
10887 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
10888 store functions.
10889 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
10890 indirect load (no displacement) for PSImode in AVRTINY.
10891 (avr_out_load_psi_reg_disp_tiny): New function to handle register
10892 indirect load (with displacement) for PSImode in AVRTINY.
10893 (avr_out_load_psi): Call PSImode register indirect load functions for
10894 AVRTINY. Update instruction length for AVRTINY.
10895 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
10896 indirect store (no displacement) for PSImode in AVRTINY.
10897 (avr_out_store_psi_reg_disp_tiny): New function to handle register
10898 indirect store (with displacement) for PSImode in AVRTINY.
10899 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
10900 register indirect store functions for AVRTINY.
10901 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
10902 register indirect store (with displacement) for AVRTINY.
10903 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
10904 register indirect store function for QImode in AVRTINY.
10905 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
10906 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
10907 indirect store (no displacement) for HImode in AVRTINY.
10908 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
10909 indirect store (with displacement) for HImode in AVRTINY.
10910 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
10911 indirect store for post-increment address in HImode.
10912 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
10913 register indirect store function for HImode in AVRTINY.
10914 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
10915 in case of AVRTINY.
10916 (order_regs_for_local_alloc): Updated register allocation order for
10917 AVRTINY.
10918 (avr_conditional_register_usage): New function. It is a target hook
10919 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
10920 used registers list and register allocation order for AVRTINY.
10921 (avr_return_in_memory): Update return value size for AVRTINY.
10922 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
10923 for AVRTINY arch and tiny program memory base address.
10924 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
10925 (avr_texinfo): Added description for AVRTINY arch.
10926 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
10927 STATIC_CHAIN_REGNUM for AVRTINY.
10928 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
10929 * config/avr/avr.md: Added constants for tmp/ zero registers in
10930 AVRTINY. Attributes for AVRTINY added.
10931 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
10932 memory access range.
10933 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
10934 in AVRTINY memory access range.
10935 (*mov<mode>): Likewise for HImode and SImode.
10936 (*movsf): Likewise for SFmode.
10937 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
10938 not have sbiw.
10939 * config/avr/avr-protos.h: Added function prototype for
10940 tiny_valid_direct_memory_access_range.
10941 * config/avr/avr-tables.opt: Regenerate.
10942 * gcc/config/avr/t-multilib: Regenerate.
10943 * doc/avr-mmcu.texi: Regenerate.
10944
10945 2014-10-21 Andrew Pinski <apinski@cavium.com>
10946
10947 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
10948 available option also.
10949 * config/aarch64/aarch64-cost-tables.h: New file.
10950 * config/aarch64/aarch64-cores.def (thunderx): New core.
10951 * config/aarch64/aarch64-tune.md: Regenerate.
10952 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
10953 of config/arm/aarch-cost-tables.h.
10954 (thunderx_regmove_cost): New variable.
10955 (thunderx_tunings): New variable.
10956
10957 2014-10-21 Dehao Chen <dehao@google.com>
10958
10959 * auto-profile.c: New file.
10960 * auto-profile.h: New file.
10961 * basic-block.h (maybe_hot_count_p): New export func.
10962 (add_working_set): New export func.
10963 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
10964 (GCOV_TAG_AFDO_FUNCTION): Likewise.
10965 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
10966 * opts.c (enable_fdo_optimizations): New func.
10967 (common_handle_option): Handle -fauto-profile flag.
10968 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
10969 (class pass_early_inline): Export early_inliner.
10970 (early_inliner): Likewise.
10971 (pass_early_inline::execute): Likewise.
10972 * ipa-inline.h (early_inliner): Likewise.
10973 * predict.c (maybe_hot_count_p): New export func.
10974 (counts_to_freqs): AutoFDO logic.
10975 (rebuild_frequencies): Likewise.
10976 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
10977 * profile.c (add_working_set): New func.
10978 * Makefile.in (auto-profile.o): New object file.
10979 * passes.def (pass_ipa_auto_profile): New pass.
10980 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
10981 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
10982 * toplev.c (compile_file): AutoFDO logic.
10983 * doc/invoke.texi (-fauto-profile): New doc.
10984 * coverage.c (coverage_init): AutoFDO logic.
10985 * common.opt (-fauto-profile): New flag.
10986 * timevar.def (TV_IPA_AUTOFDO): New tag.
10987 * value-prof.c (gimple_alloc_histogram_value): New export func.
10988 (check_ic_target): Likewise.
10989 * value-prof.h (gimple_alloc_histogram_value): Likewise.
10990 (check_ic_target): Likewise.
10991
10992 2014-10-21 David Malcolm <dmalcolm@redhat.com>
10993
10994 * cgraph.c (cgraph_c_finalize): New function.
10995 * cgraph.h (cgraph_c_finalize): New prototype.
10996 (cgraphunit_c_finalize): New prototype.
10997 * cgraphunit.c (first_analyzed): Move from analyze_functions
10998 to file-scope.
10999 (first_analyzed_var): Likewise.
11000 (analyze_functions): Move static variables into file-scope.
11001 (cgraphunit_c_finalize): New function.
11002 * diagnostic.c (diagnostic_finish): Free the memory for
11003 context->classify_diagnostic and context->printer, running the
11004 destructor for the latter.
11005 (bt_stop): Use toplev::main.
11006 * dwarf2out.c (dwarf2out_finalize): New function.
11007 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
11008 * gcse.c (gcse_c_finalize): New function.
11009 * gcse.h (gcse_c_finalize): New prototype.
11010 * ggc-page.c (init_ggc): Make idempotent.
11011 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
11012 * ipa-cp.c (ipa_cp_c_finalize): New function.
11013 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
11014 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
11015 a field of class pass_ipa_pure_const.
11016 (node_duplication_hook_holder): Likewise.
11017 (node_removal_hook_holder): Likewise.
11018 (register_hooks): Convert to method...
11019 (pass_ipa_pure_const::register_hooks): ...here, converting
11020 static variable init_p into...
11021 (pass_ipa_pure_const::init_p): ...new field.
11022 (pure_const_generate_summary): Update invocation of
11023 register_hooks to invoke as a method of current_pass.
11024 (pure_const_read_summary): Likewise.
11025 (propagate): Convert to...
11026 (pass_ipa_pure_const::execute): ...method.
11027 * ipa-reference.c (ipa_init): Move static bool init_p from here
11028 to...
11029 (ipa_init_p): New file-scope variable, so that it can be reset
11030 when repeatedly invoking the compiler within one process by...
11031 (ipa_reference_c_finalize): New function.
11032 * ipa-reference.h (ipa_reference_c_finalize): New.
11033 * main.c (main): Replace invocation of toplev_main with
11034 construction of a toplev instance, and call its "main" method.
11035 * params.c (global_init_params): Add an assert that
11036 params_finished is false.
11037 (params_c_finalize): New.
11038 * params.h (params_c_finalize): New.
11039 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
11040 invoking generate_summary, for the benefit of pass_ipa_pure_const.
11041 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
11042 before calling write_summary hook.
11043 (ipa_write_optimization_summaries_1): Likewise when calling
11044 write_optimization_summary hook.
11045 (ipa_read_summaries_1): Likewise for read_summary hook.
11046 (ipa_read_optimization_summaries_1): Likewise for
11047 read_optimization_summary hook.
11048 (execute_ipa_stmt_fixups): Likewise.
11049 * stringpool.c (init_stringpool): Clean up if we're called more
11050 than once.
11051 * timevar.c (timevar_init): Ignore repeated calls.
11052 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
11053 "ipa-prop.h".
11054 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
11055 (initialize_rtl): Move static local "initialized_once"
11056 into file scope, and rename to...
11057 (rtl_initialized): New variable.
11058 (do_compile): Move timevar initialization from here to
11059 toplev::start_timevars.
11060 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
11061 toplev::finalize): New functions.
11062 (toplev_main): Rename to...
11063 (toplev::main): ...this.
11064 * toplev.h (class toplev): New class.
11065
11066 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
11067
11068 * loop-doloop.c: Include loop-unroll.h.
11069
11070 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
11071
11072 * cfg.h: New. Header file for cfg.c.
11073 * cfganal.h: New. Header file for cfganal.c.
11074 * lcm.h: New. Header file for lcm.c.
11075 * loop-unroll.h: New. Header file for loop-unroll.h.
11076 * cfgloop.h: (unroll_loops): Remove prototype.
11077 * basic-block.h: Move prototypes and structs to new header files.
11078 Include cfg.h, cfganal.h, and lcm.h.
11079 * loop-init.c: Include loop-unroll.h.
11080 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
11081 * modulo-sched.c: Include loop-unroll.h.
11082
11083 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
11084
11085 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
11086 MARKER_BYTE_UNKNOWN markers when handling casts.
11087
11088 2014-10-21 Richard Biener <rguenther@suse.de>
11089
11090 * tree-ssa-phiopt.c (value_replacement): Properly verify we
11091 are the non-singleton PHI.
11092
11093 2014-10-21 Jakub Jelinek <jakub@redhat.com>
11094
11095 PR tree-optimization/63563
11096 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
11097 if either dra or drb stmts are not normal loads/stores.
11098
11099 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
11100
11101 * config/i386/i386.c (expand_vec_perm_1): Fix
11102 expand_vec_perm_palignr case.
11103 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
11104 VI1_AVX512.
11105
11106 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
11107
11108 * cfgloopanal.c (seq_cost): Delete.
11109 * rtl.h (seq_cost): New prototype.
11110 * rtlanal.c (seq_cost): New function.
11111 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
11112
11113 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
11114
11115 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
11116 * basic-block.h: Remove prototypes for cfgrtl.c.
11117 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
11118 prototypes to cfgrtl.h.
11119 * profile.h (profile_info): Add extern export declaration.
11120 * rtl.h: Remove prototypes for cfgrtl.h.
11121 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
11122 * ipa-inline.c: Include profile.h.
11123 * loop-unroll.c: Ditto.
11124 * modulo-sched.c: Ditto.
11125 * postreload-gcse.c: Ditto.
11126 * predict.c: Ditto.
11127 * sched-ebb.c: Ditto.
11128 * sched-rgn.c: Ditto.
11129 * tracer.c: Ditto.
11130 * tree-ssa-loop-ivcanon.c: Ditto.
11131
11132 2014-10-20 Richard Biener <rguenther@suse.de>
11133
11134 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
11135 operands to get a def operand kind match. Signal mismatches
11136 to the parent so we can try swapping its operands.
11137 (vect_build_slp_tree): Try swapping operands if they have
11138 a mismatched operand kind.
11139
11140 2014-10-20 Alan Modra <amodra@gmail.com>
11141
11142 PR debug/60655
11143 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
11144 Increase "ops" array size. Correct array size tests. Init
11145 n_constants in loop. Break out of innermost loop when finding
11146 a trivial CONST expression.
11147
11148 2014-10-20 Martin Liska <mliska@suse.cz>
11149
11150 PR ipa/63583
11151 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
11152 Gimple tempate string is compared.
11153
11154 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
11155
11156 * varasm.c (const_alias_set): Remove.
11157 (init_varasm_once): Remove initialization of const_alias_set.
11158 (build_constant_desc): Do not set alias set to const_alias_set.
11159
11160 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
11161
11162 * configure: Regenerate.
11163 * configure.ac: Move the test for section attribute specifier "e" in GAS
11164 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
11165 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
11166 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
11167 ifdef HAVE_GAS_SECTION_EXCLUDE.
11168
11169 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
11170
11171 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
11172 match_operand expression.
11173
11174 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
11175 David Edelsohn <dje.gcc@gmail.com>
11176
11177 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
11178 function.
11179 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
11180
11181 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
11182
11183 * doc/invoke.texi (Options to Request or Suppress Warnings):
11184 Explain options precedence.
11185 (Wtrampolines): Do not indent paragraph.
11186
11187 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
11188
11189 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
11190 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
11191 (pa_jump_in_call_delay): Likewise.
11192 * config/pa/pa.c (pa_option_override): Remove jump in call delay
11193 override.
11194 (pa_output_millicode_call): Remove support for jump in call delay.
11195 (pa_output_call): Likewise.
11196 (pa_jump_in_call_delay): Delete.
11197 (pa_following_call): Likewise.
11198 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
11199 (uncond_branch): Remove following call check from attribute length.
11200
11201 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
11202
11203 PR target/53513
11204 * config/sh/sh-modes.def (PSI): Remove.
11205 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
11206 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
11207 (sh_reorg): Remove commented out FPSCR code.
11208 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
11209 insn instead of move insn.
11210 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
11211 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
11212 handling.
11213 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
11214 (sh1_builtin_p): Uncomment.
11215 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
11216 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
11217 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
11218 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
11219 (general_movsrc_operand, general_movdst_operand): Disallow
11220 fpscr_operand.
11221 * config/sh/sh.md (FPSCR_FR): New constant.
11222 (push_fpscr): Emit sts_fpscr insn.
11223 (pop_fpscr): Emit lds_fpscr_insn.
11224 (movsi_ie): Disallow FPSCR operands.
11225 (fpu_switch, unnamed related split, extend_psi_si,
11226 truncate_si_psi): Remove insns.
11227 (lds_fpscr, sts_fpscr): New insns.
11228 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
11229
11230 >>>>>>> .r217525
11231 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
11232
11233 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
11234 (clone_inlined_nodes): Do not overwrite the clone if above predicate
11235 returns true.
11236
11237 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
11238
11239 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
11240 (expand_vec_perm_d): Ditto.
11241 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
11242 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
11243 V4DFmode.
11244 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
11245 (ix86_expand_sse_unpack): Handle V64QImode.
11246 (expand_vec_perm_blend): Update conditions for TARGET, handle
11247 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
11248 (expand_vec_perm_pshufb): Handle V64QImode.
11249 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
11250 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
11251 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
11252 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
11253 (ix86_expand_vecop_qihi): Handle V64QImode.
11254 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
11255 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
11256 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
11257 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
11258 (mul<mode>3): Use VI1_AVX512.
11259 (<sse2_avx2>_packsswb): Ditto.
11260 (<sse2_avx2>_packuswb): Ditto.
11261 (<ssse3_avx2>_pshufb<mode>3): Ditto.
11262 (<shift_insn><mode>3): Ditto.
11263
11264 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
11265
11266 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
11267 conditions to fix bootstrap.
11268
11269 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
11270
11271 gcc-plugin.h: Add tm.h and flattened includes from function.h.
11272
11273 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
11274 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11275 Anna Tikhonova <anna.tikhonova@intel.com>
11276 Ilya Tocar <ilya.tocar@intel.com>
11277 Andrey Turetskiy <andrey.turetskiy@intel.com>
11278 Ilya Verbin <ilya.verbin@intel.com>
11279 Kirill Yukhin <kirill.yukhin@intel.com>
11280 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11281
11282 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
11283 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
11284 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
11285 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
11286 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
11287 (define_expand "vec_init<mode>"): Use VF48_I1248.
11288
11289 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
11290 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11291 Anna Tikhonova <anna.tikhonova@intel.com>
11292 Ilya Tocar <ilya.tocar@intel.com>
11293 Andrey Turetskiy <andrey.turetskiy@intel.com>
11294 Ilya Verbin <ilya.verbin@intel.com>
11295 Kirill Yukhin <kirill.yukhin@intel.com>
11296 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11297
11298 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
11299 expand_sse2_mulvxdi3.
11300
11301 2014-10-17 Richard Biener <rguenther@suse.de>
11302
11303 * fold-const.c (fold_comparison): Remove redundant constant
11304 folding and operand swapping.
11305 (fold_binary_loc): Do comparison operand swapping here.
11306 (fold_ternary_loc): Canonicalize operand order for
11307 commutative ternary operations.
11308 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
11309 and FMA_EXPR.
11310
11311 2014-10-17 Jakub Jelinek <jakub@redhat.com>
11312
11313 PR tree-optimization/63464
11314 * gimple.h (gimple_seq_discard): New prototype.
11315 * gimple.c: Include stringpool.h and tree-ssanames.h.
11316 (gimple_seq_discard): New function.
11317 * optabs.h (lshift_cheap_p): New prototype.
11318 * optabs.c (lshift_cheap_p): New function, moved from...
11319 * tree-switch-conversion.c (lshift_cheap_p): ... here.
11320 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
11321 (reassoc_branch_fixups): New variable.
11322 (update_range_test): Add otherrangep and seq arguments.
11323 Unshare exp. If otherrange is NULL, use for other ranges
11324 array of pointers pointed by otherrangep instead.
11325 Emit seq before gimplified statements for tem.
11326 (optimize_range_tests_diff): Adjust update_range_test
11327 caller.
11328 (optimize_range_tests_xor): Likewise. Fix up comment.
11329 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
11330 functions.
11331 (optimize_range_tests): Adjust update_range_test caller.
11332 Call optimize_range_tests_to_bit_test.
11333 (branch_fixup): New function.
11334 (execute_reassoc): Call branch_fixup.
11335
11336 PR tree-optimization/63302
11337 * tree-ssa-reassoc.c (optimize_range_tests_xor,
11338 optimize_range_tests_diff): Use !integer_pow2p () instead of
11339 tree_log2 () < 0.
11340
11341 2014-10-17 Martin Liska <mliska@suse.cz>
11342
11343 * ipa-icf.c (sem_function::merge): Local flags are set to false
11344 to enforce equal calling convention to be used.
11345 * opts.c (common_handle_option): Indentation fix.
11346
11347 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
11348
11349 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
11350
11351 2014-10-17 Tom de Vries <tom@codesourcery.com>
11352
11353 PR rtl-optimization/61605
11354 * regcprop.c (copyprop_hardreg_forward_1): Use
11355 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
11356
11357 2014-10-17 Tom de Vries <tom@codesourcery.com>
11358
11359 PR rtl-optimization/61605
11360 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p. Don't
11361 notice stores for noops. Don't regard noops as copies.
11362
11363 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
11364
11365 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
11366 register in a special way.
11367 (__cpuid_count): Ditto.
11368 * config/i386/driver-i386.h: Protect with
11369 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
11370 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
11371 is required to compile the function.
11372
11373 2014-10-16 DJ Delorie <dj@redhat.com>
11374
11375 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
11376 integers.
11377
11378 * config/rs6000/rs6000-c.c (rid_int128): New.
11379 (rs6000_macro_to_expand): Use instead of RID_INT128.
11380
11381 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
11382
11383 * function.h: Flatten file. Remove includes, adjust prototypes to
11384 reflect only what is in function.h.
11385 (enum direction, struct args_size, struct locate_and_pad_arg_data,
11386 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
11387 from expr.h.
11388 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
11389 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
11390 prototypes to predict.h.
11391 (init_varasm_status): Move prototype to varasm.h.
11392 * expr.h: Adjust include files.
11393 (enum direction, struct args_size, struct locate_and_pad_arg_data,
11394 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
11395 to function.h.
11396 (locate_and_pad_parm): Move prototype to function.h.
11397 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
11398 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
11399 assign_temp, reposition_prologue_and_epilogue_notes,
11400 prologue_epilogue_contains, sibcall_epilogue_contains,
11401 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
11402 set_return_jump_label): Move prototypes to function.h.
11403 * predict.h (optimize_function_for_size_p,
11404 optimize_function_for_speed_p): Relocate prototypes from function.h.
11405 * shrink-wrap.h (emit_return_into_block, active_insn_between,
11406 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
11407 function.h.
11408 * varasm.h (init_varasm_status): Relocate prototype from function.h.
11409 * genattrtab.c (write_header): Add predict.h to include list.
11410 * genconditions.c (write_header): Add predict.h to include list.
11411 * genemit.c (main): Adjust header file includes.
11412 * gengtype.c (ifiles): Add flattened function.h header files.
11413 * genoutput.c (output_prologue): Add predict.h to include list.
11414 * genpreds.c (write_insn_preds_c): Adjust header file includes.
11415 * genrecog.c (write_header): Add flattened function.h header files.
11416 * alias.c: Adjust include files.
11417 * auto-inc-dec.c: Likewise.
11418 * basic-block.h: Likewise.
11419 * bb-reorder.c: Likewise.
11420 * bt-load.c: Likewise.
11421 * builtins.c: Likewise.
11422 * caller-save.c: Likewise.
11423 * calls.c: Likewise.
11424 * cfgbuild.c: Likewise.
11425 * cfgcleanup.c: Likewise.
11426 * cfgexpand.c: Likewise.
11427 * cfgloop.c: Likewise.
11428 * cfgloop.h: Likewise.
11429 * cfgrtl.c: Likewise.
11430 * cgraph.h: Likewise.
11431 * cgraphclones.c: Likewise.
11432 * cgraphunit.c: Likewise.
11433 * combine-stack-adj.c: Likewise.
11434 * combine.c: Likewise.
11435 * coverage.c: Likewise.
11436 * cprop.c: Likewise.
11437 * cse.c: Likewise.
11438 * cselib.c: Likewise.
11439 * dbxout.c: Likewise.
11440 * ddg.c: Likewise.
11441 * df-core.c: Likewise.
11442 * df-problems.c: Likewise.
11443 * df-scan.c: Likewise.
11444 * dojump.c: Likewise.
11445 * dwarf2cfi.c: Likewise.
11446 * dwarf2out.c: Likewise.
11447 * emit-rtl.c: Likewise.
11448 * except.c: Likewise.
11449 * explow.c: Likewise.
11450 * expr.c: Likewise.
11451 * final.c: Likewise.
11452 * function.c: Likewise.
11453 * gcse.c: Likewise.
11454 * gimple-fold.c: Likewise.
11455 * gimple-low.c: Likewise.
11456 * gimple-streamer.h: Likewise.
11457 * haifa-sched.c: Likewise.
11458 * ifcvt.c: Likewise.
11459 * ira.c: Likewise.
11460 * jump.c: Likewise.
11461 * lcm.c: Likewise.
11462 * loop-invariant.c: Likewise.
11463 * lra-assigns.c: Likewise.
11464 * lra-coalesce.c: Likewise.
11465 * lra-constraints.c: Likewise.
11466 * lra-eliminations.c: Likewise.
11467 * lra-lives.c: Likewise.
11468 * lra-spills.c: Likewise.
11469 * lra.c: Likewise.
11470 * lto-cgraph.c: Likewise.
11471 * lto-section-in.c: Likewise.
11472 * lto-section-out.c: Likewise.
11473 * lto-streamer-in.c: Likewise.
11474 * lto-streamer-out.c: Likewise.
11475 * mode-switching.c: Likewise.
11476 * modulo-sched.c: Likewise.
11477 * omp-low.c: Likewise.
11478 * optabs.c: Likewise.
11479 * passes.c: Likewise.
11480 * postreload-gcse.c: Likewise.
11481 * postreload.c: Likewise.
11482 * predict.c: Likewise.
11483 * profile.c: Likewise.
11484 * recog.c: Likewise.
11485 * ree.c: Likewise.
11486 * reg-stack.c: Likewise.
11487 * regcprop.c: Likewise.
11488 * reginfo.c: Likewise.
11489 * regrename.c: Likewise.
11490 * reload.c: Likewise.
11491 * reload1.c: Likewise.
11492 * reorg.c: Likewise.
11493 * resource.c: Likewise.
11494 * rtlanal.c: Likewise.
11495 * sched-deps.c: Likewise.
11496 * sched-ebb.c: Likewise.
11497 * sched-rgn.c: Likewise.
11498 * sel-sched-dump.c: Likewise.
11499 * sel-sched-ir.c: Likewise.
11500 * sel-sched.c: Likewise.
11501 * shrink-wrap.c: Likewise.
11502 * simplify-rtx.c: Likewise.
11503 * statistics.c: Likewise.
11504 * stmt.c: Likewise.
11505 * stor-layout.c: Likewise.
11506 * store-motion.c: Likewise.
11507 * symtab.c: Likewise.
11508 * targhooks.c: Likewise.
11509 * toplev.c: Likewise.
11510 * trans-mem.c: Likewise.
11511 * tree-cfg.c: Likewise.
11512 * tree-cfgcleanup.c: Likewise.
11513 * tree-dfa.c: Likewise.
11514 * tree-eh.c: Likewise.
11515 * tree-inline.c: Likewise.
11516 * tree-into-ssa.c: Likewise.
11517 * tree-nested.c: Likewise.
11518 * tree-nrv.c: Likewise.
11519 * tree-profile.c: Likewise.
11520 * tree-ssa-alias.c: Likewise.
11521 * tree-ssa-ccp.c: Likewise.
11522 * tree-ssa-copy.c: Likewise.
11523 * tree-ssa-copyrename.c: Likewise.
11524 * tree-ssa-dom.c: Likewise.
11525 * tree-ssa-operands.c: Likewise.
11526 * tree-ssa-propagate.c: Likewise.
11527 * tree-ssa-structalias.c: Likewise.
11528 * tree-ssa-tail-merge.c: Likewise.
11529 * tree-ssa-threadedge.c: Likewise.
11530 * tree-ssa-threadupdate.c: Likewise.
11531 * tree-ssa-uncprop.c: Likewise.
11532 * tree-ssa-uninit.c: Likewise.
11533 * tree-ssa.c: Likewise.
11534 * tree-stdarg.c: Likewise.
11535 * tree-tailcall.c: Likewise.
11536 * tree.c: Likewise.
11537 * tsan.c: Likewise.
11538 * valtrack.c: Likewise.
11539 * varasm.c: Likewise.
11540 * vmsdbgout.c: Likewise.
11541 * web.c: Likewise.
11542 * config/aarch64/aarch64.c: Add flattened includes from function.h.
11543 * config/alpha/alpha.c: Likewise.
11544 * config/arc/arc.c: Likewise.
11545 * config/arm/arm.c: Likewise.
11546 * config/avr/avr-log.c: Likewise.
11547 * config/avr/avr.c: Likewise.
11548 * config/bfin/bfin.c: Likewise.
11549 * config/c6x/c6x.c: Likewise.
11550 * config/cr16/cr16.c: Likewise.
11551 * config/cris/cris.c: Likewise.
11552 * config/darwin.c: Likewise.
11553 * config/epiphany/epiphany.c: Likewise.
11554 * config/epiphany/mode-switch-use.c: Likewise.
11555 * config/epiphany/resolve-sw-modes.c: Likewise.
11556 * config/fr30/fr30.c: Likewise.
11557 * config/frv/frv.c: Likewise.
11558 * config/h8300/h8300.c: Likewise.
11559 * config/i386/i386.c: Likewise.
11560 * config/ia64/ia64.c: Likewise.
11561 * config/iq2000/iq2000.c: Likewise.
11562 * config/lm32/lm32.c: Likewise.
11563 * config/m32c/m32c.c: Likewise.
11564 * config/m32r/m32r.c: Likewise.
11565 * config/m68k/m68k.c: Likewise.
11566 * config/mcore/mcore.c: Likewise.
11567 * config/mep/mep-pragma.c: Likewise.
11568 * config/mep/mep.c: Likewise.
11569 * config/microblaze/microblaze.c: Likewise.
11570 * config/mips/mips.c: Likewise.
11571 * config/mmix/mmix.c: Likewise.
11572 * config/mn10300/mn10300.c: Likewise.
11573 * config/moxie/moxie.c: Likewise.
11574 * config/msp430/msp430.c: Likewise.
11575 * config/nds32/nds32-cost.c: Likewise.
11576 * config/nds32/nds32-fp-as-gp.c: Likewise.
11577 * config/nds32/nds32-intrinsic.c: Likewise.
11578 * config/nds32/nds32-isr.c: Likewise.
11579 * config/nds32/nds32-md-auxiliary.c: Likewise.
11580 * config/nds32/nds32-memory-manipulation.c: Likewise.
11581 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11582 * config/nds32/nds32-predicates.c: Likewise.
11583 * config/nds32/nds32.c: Likewise.
11584 * config/nios2/nios2.c: Likewise.
11585 * config/pa/pa.c: Likewise.
11586 * config/pdp11/pdp11.c: Likewise.
11587 * config/rl78/rl78.c: Likewise.
11588 * config/rs6000/rs6000.c: Likewise.
11589 * config/rx/rx.c: Likewise.
11590 * config/s390/s390.c: Likewise.
11591 * config/score/score.c: Likewise.
11592 * config/sh/sh.c: Likewise.
11593 * config/sparc/sparc.c: Likewise.
11594 * config/spu/spu.c: Likewise.
11595 * config/stormy16/stormy16.c: Likewise.
11596 * config/tilegx/tilegx.c: Likewise.
11597 * config/tilepro/tilepro.c: Likewise.
11598 * config/v850/v850.c: Likewise.
11599 * config/vax/vax.c: Likewise.
11600 * config/xtensa/xtensa.c: Likewise.
11601
11602 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
11603
11604 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
11605 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
11606
11607 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
11608
11609 * config/sh/sh-protos.h (fldi_ok): Remove.
11610 * config/sh/sh.c (fldi_ok): Likewise.
11611 (sh_secondary_reload): Don't use fldi_ok.
11612 * config/sh/constraints.md (G constraint, H constraint): Don't use
11613 fldi_ok.
11614
11615 2014-10-16 Martin Liska <mliska@suse.cz>
11616
11617 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
11618 Cast to unsigned long.
11619 (sem_item_optimizer::dump_cong_classes): Likewise.
11620
11621 2014-10-16 Tom de Vries <tom@codesourcery.com>
11622
11623 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
11624 with SSA_NAME_IN_FREELIST.
11625
11626 2014-10-16 Richard Biener <rguenther@suse.de>
11627
11628 PR middle-end/63554
11629 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
11630 (fold_builtin_strncat_chk): Move ...
11631 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
11632 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
11633
11634 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
11635
11636 PR target/59401
11637 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
11638 GBR to 0.
11639
11640 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
11641 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11642 Anna Tikhonova <anna.tikhonova@intel.com>
11643 Ilya Tocar <ilya.tocar@intel.com>
11644 Andrey Turetskiy <andrey.turetskiy@intel.com>
11645 Ilya Verbin <ilya.verbin@intel.com>
11646 Kirill Yukhin <kirill.yukhin@intel.com>
11647 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11648
11649 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
11650 V64QI modes.
11651
11652 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
11653 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11654 Anna Tikhonova <anna.tikhonova@intel.com>
11655 Ilya Tocar <ilya.tocar@intel.com>
11656 Andrey Turetskiy <andrey.turetskiy@intel.com>
11657 Ilya Verbin <ilya.verbin@intel.com>
11658 Kirill Yukhin <kirill.yukhin@intel.com>
11659 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11660
11661 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
11662 V16SI, V32HI, V64QI modes.
11663
11664 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
11665
11666 PR target/53513
11667 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
11668 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
11669
11670 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
11671 to match fp insn patterns.
11672 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
11673 list.
11674 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
11675 expand_df_unop, expand_df_binop): Remove.
11676 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
11677 FPSCR_STAT_REG as not call clobbered.
11678 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
11679 invoking fpscr_set_from_mem.
11680
11681 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
11682 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
11683 FPSCR_STAT_REG.
11684 (REGISTER_NAMES): Adjust.
11685 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
11686 (FIRST_PSEUDO_REGISTER): Increase to 156.
11687 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
11688 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
11689 FPSCR_STAT_REG.
11690 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
11691 FPSCR_MODES_REG and FPSCR_STAT_REG.
11692 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
11693
11694 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
11695 FPSCR_SZ): Add new constants.
11696 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
11697
11698 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
11699 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
11700 Use TARGET_FPU_ANY condition.
11701 (fpu_switch peephole2): Remove.
11702 (fpu_switch split): Use simple_mem_operand to capture the mem and
11703 adjust split implementation.
11704 (extend_psi_si, truncate_si_psi): New insns.
11705 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
11706 set of FPSCR_MODES_REG.
11707
11708 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
11709 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
11710 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
11711 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
11712 call_value_compact, call_value_compact_rettramp, call,
11713 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
11714 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
11715 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
11716 sibcall_value_compact, sibcall_value, call_value_pop_compact,
11717 call_value_pop_compact_rettramp, various unnamed splits):
11718 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
11719 function uses.
11720
11721 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
11722 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
11723 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
11724 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
11725 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
11726
11727 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
11728 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
11729 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
11730 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
11731 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
11732 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
11733 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
11734
11735 2014-10-16 Martin Liska <mliska@suse.cz>
11736 Jan Hubicka <hubicka@ucw.cz>
11737
11738 * Makefile.in: New object files included.
11739 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
11740 is printed.
11741 (verify_edge_corresponds_to_fndecl): More sensitive verification
11742 of nodes that are merged by IPA ICF.
11743 * cgraph.h (cgraph_node::num_references): New function.
11744 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
11745 * common.opt: New options ipa-icf, ipa-icf-functions and
11746 ipa-icf-variables introduced.
11747 * doc/invoke.texi: Documentation of new options introduced.
11748 * ipa-icf-gimple.c: New file.
11749 * ipa-icf-gimple.h: New file.
11750 * ipa-icf.c: New file.
11751 * ipa-icf.h: New file.
11752 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
11753 (input_overwrite_node): Likewise.
11754 * lto-section-in.c: New icf section added.
11755 * lto-streamer.h (enum lto_section_type): Likewise.
11756 * opts.c (common_handle_option): New option added.
11757 * passes.def: New pass included.
11758 * timevar.def: Time variable for IPA ICF added.
11759 * tree-pass.h: New IPA ICF pass entry point added.
11760
11761 2014-10-16 Richard Biener <rguenther@suse.de>
11762
11763 PR tree-optimization/63168
11764 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
11765 latches if after merging they are no longer simple.
11766 * cfghooks.c (merge_blocks): Handle merging a latch block
11767 into another block.
11768
11769 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
11770 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11771 Anna Tikhonova <anna.tikhonova@intel.com>
11772 Ilya Tocar <ilya.tocar@intel.com>
11773 Andrey Turetskiy <andrey.turetskiy@intel.com>
11774 Ilya Verbin <ilya.verbin@intel.com>
11775 Kirill Yukhin <kirill.yukhin@intel.com>
11776 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11777
11778 * config/i386/sse.md
11779 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
11780 support AVX-512VL instructions.
11781
11782 2014-10-16 DJ Delorie <dj@redhat.com>
11783
11784 * tree-core.h: Fix comment to not assume pointers are multiples of
11785 bytes.
11786
11787 2014-10-15 Tom Tromey <tromey@redhat.com>
11788
11789 * timevar.h (class auto_timevar): New class.
11790
11791 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
11792
11793 PR go/59432
11794 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
11795 Remove the second alternative.
11796 (regprefix): Remove mode attribute.
11797 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
11798 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
11799
11800 Revert:
11801 2013-11-05 Ian Lance Taylor <iant@google.com>
11802
11803 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
11804 If possible, add .cfi directives to record change to bx.
11805 * config/i386/i386.c (ix86_emit_cfi): New function.
11806 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
11807
11808 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
11809
11810 PR lto/62026
11811 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
11812 to duplicate.
11813 * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
11814 at WPA time.
11815
11816 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
11817
11818 PR rtl-optimization/63448
11819 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
11820 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
11821 (LRA_MAX_INHERITANCE_PASSES): Use it.
11822 (lra_constraint_iter_after_spill): Remove.
11823 (lra_assignment_iter): New.
11824 (lra_assignment_iter_after_spill): New.
11825 * lra-assigns.c (lra_assignment_iter): New.
11826 (lra_assignment_iter_after_spill): New.
11827 (former_reload_pseudo_spill_p): New.
11828 (spill_for): Set up former_reload_pseudo_spill_p.
11829 (setup_live_pseudos_and_spill_after_risky): Ditto.
11830 (assign_by_spills): Ditto.
11831 (lra_assign): Increment lra_assignment_iter. Print the iteration
11832 number. Reset former_reload_pseudo_spill_p. Check
11833 lra_assignment_iter_after_spill.
11834 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
11835 lra_assignment_iter and lra_assignment_iter_after_spill.
11836 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
11837 (lra_constraints): Remove code with
11838 lra_assignment_iter_after_spill.
11839
11840 2014-10-15 Teresa Johnson <tejohnson@google.com>
11841
11842 PR bootstrap/63432
11843 * tree-ssa-threadupdate.c (recompute_probabilities): Better
11844 overflow checking.
11845
11846 2014-10-15 Renlin Li <renlin.li@arm.com>
11847
11848 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11849 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
11850 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
11851 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
11852
11853 2014-10-15 Richard Biener <rguenther@suse.de>
11854
11855 * gimple-fold.c (gimple_fold_call): Properly keep virtual
11856 SSA form up-to-date when devirtualizing a call to
11857 __builtin_unreachable and avoid fixing up EH info here.
11858
11859 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11860 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11861 Anna Tikhonova <anna.tikhonova@intel.com>
11862 Ilya Tocar <ilya.tocar@intel.com>
11863 Andrey Turetskiy <andrey.turetskiy@intel.com>
11864 Ilya Verbin <ilya.verbin@intel.com>
11865 Kirill Yukhin <kirill.yukhin@intel.com>
11866 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11867
11868 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
11869 to support AVX-512BW.
11870 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
11871 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
11872 (define_insn "*<plusminus_insn><mode>3"): Ditto.
11873 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
11874 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
11875 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
11876 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
11877 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
11878 (define_insn "*andnot<mode>3"): Ditto.
11879 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
11880 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
11881 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
11882 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
11883 (define_insn "*abs<mode>2"): Remove masking support.
11884 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
11885 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
11886 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
11887
11888 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11889 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11890 Anna Tikhonova <anna.tikhonova@intel.com>
11891 Ilya Tocar <ilya.tocar@intel.com>
11892 Andrey Turetskiy <andrey.turetskiy@intel.com>
11893 Ilya Verbin <ilya.verbin@intel.com>
11894 Kirill Yukhin <kirill.yukhin@intel.com>
11895 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11896
11897 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
11898 * config/i386/sse.md
11899 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
11900 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
11901 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
11902 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
11903 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
11904 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
11905 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
11906
11907 2014-10-15 Renlin Li <renlin.li@arm.com>
11908
11909 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
11910
11911 2014-10-15 Jakub Jelinek <jakub@redhat.com>
11912
11913 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
11914 MINUS_EXPR in unsigned type to avoid undefined behavior.
11915
11916 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
11917
11918 * stor-layout.c (self_referential_size): Do not promote arguments.
11919
11920 2014-10-15 Marek Polacek <polacek@redhat.com>
11921
11922 * doc/invoke.texi: Update to reflect that GNU11 is the default
11923 mode for C.
11924 * c-common.h (c_language_kind): Update comment.
11925
11926 2014-10-15 Richard Biener <rguenther@suse.de>
11927
11928 * hash-table.c: Include bconfig.h if building for the host.
11929 * hash-table.h: Do not include ggc.h on the host but just declare
11930 a few ggc allocation templates.
11931
11932 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
11933 Jeff Law <law@redhat.com>
11934
11935 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
11936 multiple hard registers, use smaller mode derived from MODE.
11937
11938 2014-10-15 Andreas Schwab <schwab@suse.de>
11939
11940 * explow.c (convert_memory_address_addr_space_1): Mark in_const
11941 as ATTRIBUTE_UNUSED.
11942
11943 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
11944
11945 * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
11946 (decide_unrolling): ... this one.
11947 (peel_loops_completely): Remove.
11948 (decide_peel_simple): Remove.
11949 (decide_peel_once_rolling): Remove.
11950 (decide_peel_completely): Remove.
11951 (peel_loop_simple): Remove.
11952 (peel_loop_completely): Remove.
11953 (unroll_and_peel_loops): Rename to ...
11954 (unroll_loops): ... this one; handle only unrolling.
11955 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
11956 LPT_PEEL_SIMPLE.
11957 (UAP_PEEL): Remove.
11958 (unroll_and_peel_loops): Remove.
11959 (unroll_loops): New.
11960 * passes.def: Replace
11961 pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
11962 * loop-init.c (gate_rtl_unroll_and_peel_loops,
11963 rtl_unroll_and_peel_loops): Rename to ...
11964 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
11965 (pass_rtl_unroll_and_peel_loops): Rename to ...
11966 (pass_rtl_unroll_loops): ... this one.
11967 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
11968 (make_pass_rtl_unroll_loops): New.
11969 * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
11970 (canonicalize_loop_induction_variables): Update.
11971
11972 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
11973
11974 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
11975 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
11976 !TARGET_HARD_FLOAT_POSTINC.
11977 (*lsip, *ssip): new instructions.
11978
11979 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
11980
11981 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
11982 remove.
11983
11984 2014-10-14 Andrew Pinski <apinski@cavium.com>
11985
11986 * explow.c (convert_memory_address_addr_space): Rename to ...
11987 (convert_memory_address_addr_space_1): This. Add in_const argument.
11988 Inside a CONST RTL, permute the conversion and addition of constant
11989 for zero and sign extended pointers.
11990 (convert_memory_address_addr_space): New function.
11991
11992 2014-10-14 Andrew Pinski <apinski@cavium.com>
11993
11994 Revert:
11995 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
11996
11997 PR middle-end/49721
11998 * explow.c (convert_memory_address_addr_space): Also permute the
11999 conversion and addition of constant for zero-extend.
12000
12001 2014-10-14 DJ Delorie <dj@redhat.com>
12002
12003 * config/msp430/msp430-modes.def (PSI): Add.
12004
12005 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
12006 (msp430_hard_regno_nregs_with_padding): New.
12007 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
12008 (msp430_hard_regno_nregs_has_padding): New.
12009 (msp430_hard_regno_nregs_with_padding): New.
12010 (msp430_unwind_word_mode): Use PSImode instead of SImode.
12011 (msp430_addr_space_legitimate_address_p): New.
12012 (msp430_asm_integer): New.
12013 (msp430_init_dwarf_reg_sizes_extra): New.
12014 (msp430_print_operand): Use X suffix for PSImode even in small model.
12015 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
12016 (PTR_SIZE): ...but 4 bytes for EH.
12017 (SIZE_TYPE): Use __int20.
12018 (PTRDIFF_TYPE): Likewise.
12019 (INCOMING_FRAME_SP_OFFSET): Adjust.
12020 * config/msp430/msp430.md (movqi_topbyte): New.
12021 (movpsi): Use fixed suffixes.
12022 (movsipsi2): Enable for 430X, not large model.
12023 (extendhipsi2): Likewise.
12024 (zero_extendhisi2): Likewise.
12025 (zero_extendhisipsi2): Likewise.
12026 (extend_and_shift1_hipsi2): Likewise.
12027 (extendpsisi2): Likewise.
12028 (*bitbranch<mode>4_z): Fix suffix logic.
12029
12030 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
12031
12032 PR ada/62019
12033 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
12034 do not choke on null node.
12035 <VAR_DECL>: Likewise.
12036
12037 2014-10-14 DJ Delorie <dj@redhat.com>
12038
12039 * machmode.h (int_n_data_t): New.
12040 (int_n_enabled_p): New.
12041 (int_n_data): New.
12042 * tree.c (int_n_enabled_p): New.
12043 (int_n_trees): New.
12044 (make_or_reuse_type): Check for all __intN types, not just
12045 __int128.
12046 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
12047 entries.
12048 * tree.h (int128_integer_type_node): Remove.
12049 (int128_unsigned_type_node): Remove.
12050 (int_n_trees_t): New.
12051 (int_n_enabled_p): New.
12052 (int_n_trees): New.
12053 * toplev.c (standard_type_bitsize): New.
12054 (do_compile): Check which __intN types are enabled for the current
12055 run.
12056 * builtin-types.def (BT_INT128): Remove.
12057 (BT_UINT128): Remove.
12058 * machmode.def: Add macro to create __int128 for all targets.
12059 * stor-layout.c (mode_for_size): Support __intN types.
12060 (smallest_mode_for_size): Likewise.
12061 (initialize_sizetypes): Support __intN types.
12062 * genmodes.c (struct mode_data): Add int_n field.
12063 (blank_mode): Likewise.
12064 (INT_N): New.
12065 (make_int_n): New.
12066 (emit_insn_modes_h): Count __intN entries and define
12067 NUM_INT_N_ENTS.
12068 (emit_mode_int_n): New.
12069 (emit_insn_modes_c): Call it.
12070 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
12071 types, not just __int128.
12072 * tree-core.h (integer_type_kind): Remove __int128-specific
12073 entries, reserve spots for __intN entries.
12074
12075 * config/msp430/msp430-modes.def (PSI): Add.
12076
12077 2014-10-14 Kito Cheng <kito@0xlab.org>
12078
12079 * ira.c: Fix typo in comment.
12080 * ira.h: Ditto.
12081 * ira-build.c: Ditto.
12082 * ira-color.c: Ditto.
12083 * ira-emit.c: Ditto.
12084 * ira-int.h: Ditto.
12085 * ira-lives.c: Ditto.
12086
12087 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
12088
12089 PR rtl-optimization/63475
12090 * alias.c (true_dependence_1): Always use get_addr to extract
12091 true address operands from x_addr and mem_addr. Use extracted
12092 address operands to check for references with alignment ANDs.
12093 Use extracted address operands with find_base_term and
12094 base_alias_check. For noncanonicalized operands call canon_rtx with
12095 extracted address operand.
12096 (write_dependence_1): Ditto.
12097 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
12098
12099 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
12100
12101 PR target/63534
12102 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
12103 __morestack local.
12104
12105 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12106 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12107 Anna Tikhonova <anna.tikhonova@intel.com>
12108 Ilya Tocar <ilya.tocar@intel.com>
12109 Andrey Turetskiy <andrey.turetskiy@intel.com>
12110 Ilya Verbin <ilya.verbin@intel.com>
12111 Kirill Yukhin <kirill.yukhin@intel.com>
12112 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12113
12114 * config/i386/i386.c
12115 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
12116 (ix86_expand_int_vcond): Ditto.
12117
12118 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12119 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12120 Anna Tikhonova <anna.tikhonova@intel.com>
12121 Ilya Tocar <ilya.tocar@intel.com>
12122 Andrey Turetskiy <andrey.turetskiy@intel.com>
12123 Ilya Verbin <ilya.verbin@intel.com>
12124 Kirill Yukhin <kirill.yukhin@intel.com>
12125 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12126
12127 * config/i386/i386.c
12128 (emit_reduc_half): Handle V64QI and V32HI mode.
12129 * config/i386/sse.md
12130 (define_mode_iterator VI_AVX512BW): New.
12131 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
12132
12133 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12134 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12135 Anna Tikhonova <anna.tikhonova@intel.com>
12136 Ilya Tocar <ilya.tocar@intel.com>
12137 Andrey Turetskiy <andrey.turetskiy@intel.com>
12138 Ilya Verbin <ilya.verbin@intel.com>
12139 Kirill Yukhin <kirill.yukhin@intel.com>
12140 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12141
12142 * config/i386/sse.md
12143 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
12144
12145 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12146 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12147 Anna Tikhonova <anna.tikhonova@intel.com>
12148 Ilya Tocar <ilya.tocar@intel.com>
12149 Andrey Turetskiy <andrey.turetskiy@intel.com>
12150 Ilya Verbin <ilya.verbin@intel.com>
12151 Kirill Yukhin <kirill.yukhin@intel.com>
12152 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12153
12154 * config/i386/i386.c
12155 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
12156 * config/i386/sse.md
12157 (define_mode_iterator VI): Add V64QI and V32HI modes.
12158
12159 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12160 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12161 Anna Tikhonova <anna.tikhonova@intel.com>
12162 Ilya Tocar <ilya.tocar@intel.com>
12163 Andrey Turetskiy <andrey.turetskiy@intel.com>
12164 Ilya Verbin <ilya.verbin@intel.com>
12165 Kirill Yukhin <kirill.yukhin@intel.com>
12166 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12167
12168 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
12169
12170 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12171 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12172 Anna Tikhonova <anna.tikhonova@intel.com>
12173 Ilya Tocar <ilya.tocar@intel.com>
12174 Andrey Turetskiy <andrey.turetskiy@intel.com>
12175 Ilya Verbin <ilya.verbin@intel.com>
12176 Kirill Yukhin <kirill.yukhin@intel.com>
12177 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12178
12179 * config/i386/sse.md
12180 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
12181 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
12182
12183 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12184 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12185 Anna Tikhonova <anna.tikhonova@intel.com>
12186 Ilya Tocar <ilya.tocar@intel.com>
12187 Andrey Turetskiy <andrey.turetskiy@intel.com>
12188 Ilya Verbin <ilya.verbin@intel.com>
12189 Kirill Yukhin <kirill.yukhin@intel.com>
12190 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12191
12192 * config/i386/sse.md
12193 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
12194 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
12195
12196 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12197 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12198 Anna Tikhonova <anna.tikhonova@intel.com>
12199 Ilya Tocar <ilya.tocar@intel.com>
12200 Andrey Turetskiy <andrey.turetskiy@intel.com>
12201 Ilya Verbin <ilya.verbin@intel.com>
12202 Kirill Yukhin <kirill.yukhin@intel.com>
12203 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12204
12205 * config/i386/sse.md
12206 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
12207 (define_mode_iterator VI2_AVX2): Add V32HI mode.
12208 (define_expand "mul<mode>3<mask_name>"): Add masking.
12209 (define_insn "*mul<mode>3<mask_name>"): Ditto.
12210 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
12211 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
12212 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
12213 (define_mode_attr SDOT_PMADD_SUF): Ditto.
12214 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
12215 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
12216 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
12217 (define_insn "avx2_packusdw"): Delete.
12218 (define_insn "sse4_1_packusdw"): Ditto.
12219 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
12220
12221 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12222 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12223 Anna Tikhonova <anna.tikhonova@intel.com>
12224 Ilya Tocar <ilya.tocar@intel.com>
12225 Andrey Turetskiy <andrey.turetskiy@intel.com>
12226 Ilya Verbin <ilya.verbin@intel.com>
12227 Kirill Yukhin <kirill.yukhin@intel.com>
12228 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12229
12230 * config/i386/sse.md
12231 (define_insn "vec_dup<mode>"): Update constraints.
12232
12233 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12234 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12235 Anna Tikhonova <anna.tikhonova@intel.com>
12236 Ilya Tocar <ilya.tocar@intel.com>
12237 Andrey Turetskiy <andrey.turetskiy@intel.com>
12238 Ilya Verbin <ilya.verbin@intel.com>
12239 Kirill Yukhin <kirill.yukhin@intel.com>
12240 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12241
12242 * config/i386/sse.md
12243 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
12244 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
12245 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
12246
12247 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12248 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12249 Anna Tikhonova <anna.tikhonova@intel.com>
12250 Ilya Tocar <ilya.tocar@intel.com>
12251 Andrey Turetskiy <andrey.turetskiy@intel.com>
12252 Ilya Verbin <ilya.verbin@intel.com>
12253 Kirill Yukhin <kirill.yukhin@intel.com>
12254 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12255
12256 * config/i386/sse.md
12257 (define_expand "mul<mode>3<mask_name>"): Add masking.
12258
12259 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12260 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12261 Anna Tikhonova <anna.tikhonova@intel.com>
12262 Ilya Tocar <ilya.tocar@intel.com>
12263 Andrey Turetskiy <andrey.turetskiy@intel.com>
12264 Ilya Verbin <ilya.verbin@intel.com>
12265 Kirill Yukhin <kirill.yukhin@intel.com>
12266 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12267
12268 * config/i386/sse.md
12269 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
12270 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
12271
12272 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12273 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12274 Anna Tikhonova <anna.tikhonova@intel.com>
12275 Ilya Tocar <ilya.tocar@intel.com>
12276 Andrey Turetskiy <andrey.turetskiy@intel.com>
12277 Ilya Verbin <ilya.verbin@intel.com>
12278 Kirill Yukhin <kirill.yukhin@intel.com>
12279 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12280
12281 * config/i386/sse.md
12282 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
12283 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
12284 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
12285 Ditto.
12286
12287 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12288 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12289 Anna Tikhonova <anna.tikhonova@intel.com>
12290 Ilya Tocar <ilya.tocar@intel.com>
12291 Andrey Turetskiy <andrey.turetskiy@intel.com>
12292 Ilya Verbin <ilya.verbin@intel.com>
12293 Kirill Yukhin <kirill.yukhin@intel.com>
12294 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12295
12296 * config/i386/sse.md
12297 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
12298 use VF_128_256 mode iterator and update assembler emit code.
12299 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
12300 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
12301 Add masking, use VF_128_256 mode iterator.
12302 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
12303 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
12304 Add masking, use VF_128_256 mode iterator and update assembler emit
12305 code.
12306 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
12307 (define_mode_attr avx512flogicsuff): Delete.
12308 (define_insn "avx512f_<logic><mode>"): Ditto.
12309 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
12310 MODE_TI.
12311 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
12312
12313 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12314 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12315 Anna Tikhonova <anna.tikhonova@intel.com>
12316 Ilya Tocar <ilya.tocar@intel.com>
12317 Andrey Turetskiy <andrey.turetskiy@intel.com>
12318 Ilya Verbin <ilya.verbin@intel.com>
12319 Kirill Yukhin <kirill.yukhin@intel.com>
12320 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12321
12322 * config/i386/sse.md
12323 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
12324 (define_expand "vashr<mode>3<mask_name>"): Add masking,
12325 use VI12_128 mode iterator.
12326 (define_expand "ashrv2di3<mask_name>"): New.
12327
12328 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12329 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12330 Anna Tikhonova <anna.tikhonova@intel.com>
12331 Ilya Tocar <ilya.tocar@intel.com>
12332 Andrey Turetskiy <andrey.turetskiy@intel.com>
12333 Ilya Verbin <ilya.verbin@intel.com>
12334 Kirill Yukhin <kirill.yukhin@intel.com>
12335 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12336
12337 * config/i386/i386.c
12338 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
12339 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
12340 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
12341 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
12342 CODE_FOR_avx512vl_ucmpv4si3_mask.
12343 * config/i386/sse.md
12344 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
12345 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
12346 (define_insn
12347 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
12348 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
12349 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
12350 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
12351 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
12352 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
12353
12354 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12355 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12356 Anna Tikhonova <anna.tikhonova@intel.com>
12357 Ilya Tocar <ilya.tocar@intel.com>
12358 Andrey Turetskiy <andrey.turetskiy@intel.com>
12359 Ilya Verbin <ilya.verbin@intel.com>
12360 Kirill Yukhin <kirill.yukhin@intel.com>
12361 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12362
12363 * config/i386/sse.md
12364 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
12365 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
12366 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
12367 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
12368 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
12369 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
12370 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
12371 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
12372 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
12373
12374 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12375 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12376 Anna Tikhonova <anna.tikhonova@intel.com>
12377 Ilya Tocar <ilya.tocar@intel.com>
12378 Andrey Turetskiy <andrey.turetskiy@intel.com>
12379 Ilya Verbin <ilya.verbin@intel.com>
12380 Kirill Yukhin <kirill.yukhin@intel.com>
12381 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12382
12383 * config/i386/sse.md
12384 (define_insn "avx512f_blendm<mode>"): Delete.
12385 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
12386 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
12387 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
12388 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
12389 (define_insn
12390 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
12391 Remove.
12392 (define_insn
12393 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
12394 New.
12395 (define_insn
12396 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
12397 Ditto.
12398 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
12399 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
12400 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
12401 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
12402 Delete.
12403 (define_insn
12404 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
12405 New.
12406 (define_insn
12407 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
12408 Ditto.
12409 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
12410 Delete.
12411 (define_insn
12412 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
12413 New.
12414 (define_insn
12415 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
12416 Ditto.
12417
12418 2014-10-14 Richard Biener <rguenther@suse.de>
12419
12420 PR tree-optimization/63512
12421 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
12422 modified.
12423
12424 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
12425
12426 PR target/63260
12427 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
12428 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
12429 of FPSCR.
12430 (negsf2_i): Rename to *negsf2_i.
12431 (abssf2_i): Rename to *abssf2_i.
12432 (negdf2_i): Rename to *negdf2_i.
12433 (absdf2_i): Rename to *absdf2_i.
12434
12435 2014-10-14 Felix Yang <felix.yang@huawei.com>
12436 Jeff Law <law@redhat.com>
12437
12438 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
12439 "replace" into boolean bitfields; turn member "loop_depth" into a short
12440 integer; add new member "no_equiv" and "reserved".
12441 (no_equiv): Set no_equiv of struct equivalence if register is marked
12442 as having no known equivalence.
12443 (update_equiv_regs): Check all definitions for a multiple-set
12444 register to make sure that the RHS have the same value.
12445
12446 2014-10-13 Richard Henderson <rth@redhat.com>
12447
12448 * combine-stack-adj.c (no_unhandled_cfa): New.
12449 (maybe_merge_cfa_adjust): New.
12450 (combine_stack_adjustments_for_block): Use them.
12451
12452 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
12453
12454 * Makefile.in (TAGS): Tag ../include files.
12455
12456 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12457
12458 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
12459 to rs6000_dbx_register_number.
12460 (DWARF_FRAME_REGNUM): Redefine as identity map.
12461 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
12462 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
12463 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
12464 argument to handle .debug_frame and .eh_frame directly. Always
12465 translate SPE high register numbers. Add special treatment for CR,
12466 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
12467
12468 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
12469 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
12470 (RS6000_USE_DWARF_NUMBERING): Define.
12471 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
12472 (RS6000_USE_DWARF_NUMBERING): Define.
12473 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
12474 (RS6000_USE_DWARF_NUMBERING): Define.
12475 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
12476 (RS6000_USE_DWARF_NUMBERING): Define.
12477 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
12478 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
12479
12480 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
12481
12482 * config/i386/i386.c (ix86_address_cost): Lower cost for
12483 when address contains GOT register.
12484
12485 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
12486 Vladimir Makarov <vmakarov@redhat.com>
12487
12488 PR target/8340
12489 PR middle-end/47602
12490 PR rtl-optimization/55458
12491 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
12492 (ix86_init_pic_reg): New.
12493 (ix86_select_alt_pic_regnum): Add check on pseudo register.
12494 (ix86_save_reg): Likewise.
12495 (ix86_expand_prologue): Remove PIC register initialization
12496 now performed in ix86_init_pic_reg.
12497 (ix86_output_function_epilogue): Add check on pseudo register.
12498 (set_pic_reg_ever_alive): New.
12499 (legitimize_pic_address): Replace df_set_regs_ever_live with new
12500 set_pic_reg_ever_alive.
12501 (legitimize_tls_address): Likewise.
12502 (ix86_pic_register_p): New check.
12503 (ix86_delegitimize_address): Add check on pseudo register.
12504 (ix86_expand_call): Insert move from pseudo PIC register to ABI
12505 defined REAL_PIC_OFFSET_TABLE_REGNUM.
12506 (TARGET_INIT_PIC_REG): New.
12507 (TARGET_USE_PSEUDO_PIC_REG): New.
12508 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
12509 if pic_offset_table_rtx exists.
12510 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
12511 Document.
12512 * doc/tm.texi: Regenerate.
12513 * function.c (assign_parms): Generate pseudo register for PIC.
12514 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
12515 register.
12516 * ira-color.c (color_pass): Add check on pseudo register.
12517 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
12518 register.
12519 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
12520 register.
12521 (ira): Add target specific PIC register initialization.
12522 (do_reload): Keep PIC pseudo register.
12523 * lra-assigns.c (spill_for): Add checks on pseudo register.
12524 * lra-constraints.c (contains_symbol_ref_p): New.
12525 (lra_constraints): Enable lra risky transformations when PIC is pseudo
12526 register.
12527 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
12528 * target.def (use_pseudo_pic_reg): New.
12529 (init_pic_reg): New.
12530
12531 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
12532
12533 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
12534 Remove m_SILVERMONT and m_INTEL from the tune.
12535
12536 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12537
12538 PR libfortran/63471
12539 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12540 when _HPUX_SOURCE is defined.
12541
12542 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
12543
12544 PR tree-optimization/62127
12545 * tree.c (remap_type_1): When remapping array, remap
12546 also its type.
12547
12548 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
12549
12550 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
12551 longer impact parallelization.
12552
12553 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
12554
12555 PR bootstrap/63496
12556 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
12557
12558 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
12559
12560 * asan.c (instrument_derefs): BIT_FIELD_REF added.
12561
12562 2014-10-13 Richard Biener <rguenther@suse.de>
12563
12564 PR tree-optimization/63419
12565 * gimple-fold.h (gimple_convert): New function.
12566 * gimple-fold.c (gimple_convert): Likewise.
12567 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
12568 to split out required conversions early.
12569
12570 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
12571
12572 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
12573 Add the parts of an insn in reverse order, with the pattern at
12574 the top of the queue. Detect when we're iterating over a SEQUENCE
12575 pattern and in that case just consider patterns of subinstructions.
12576
12577 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
12578
12579 PR target/59401
12580 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
12581 of rtx.
12582 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
12583 insn walking.
12584 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
12585 address. Use def chains to handle GBR clobbering call insns.
12586
12587 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
12588
12589 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
12590 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
12591 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
12592 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
12593 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
12594 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
12595 * doc/gty.texi (for_user): Document new option.
12596 * gengtype.c (create_user_defined_type): Don't try to get a struct for
12597 char.
12598 (walk_type): Don't error out on for_user option.
12599 (write_func_for_structure): Emit user marking routines if requested by
12600 for_user option.
12601 (write_local_func_for_structure): Likewise.
12602 (main): Mark types with for_user option as used.
12603 * ggc.h (gt_pch_nx): Add overload for unsigned int.
12604 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
12605 * hash-table.h (ggc_hasher): New struct.
12606 (hash_table::create_ggc): New function.
12607 (gt_pch_nx): New overload for hash_table.
12608
12609 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
12610
12611 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
12612 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
12613 * config/sh/sh.c: Likewise.
12614 * config/sh/sh-mem.cc: Likewise.
12615 * config/sh/sh.md: Likewise.
12616 * config/sh/predicates.md: Likewise.
12617 * config/sh/sync.md: Likewise.
12618
12619 2014-10-11 Martin Liska <mliska@suse.cz>
12620
12621 PR middle-end/63376
12622 * cgraphunit.c (symbol_table::process_new_functions): Missing call
12623 for call_cgraph_insertion_hooks added.
12624
12625 2014-10-10 Jakub Jelinek <jakub@redhat.com>
12626
12627 PR c/63495
12628 * stor-layout.c (min_align_of_type): Don't decrease alignment
12629 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
12630 TYPE_USER_ALIGN is set.
12631
12632 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
12633
12634 PR rtl-optimization/63483
12635 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
12636 references when alignment ANDs are involved.
12637 (write_dependence_p): Ditto.
12638 (may_alias_p): Ditto.
12639
12640 2014-10-10 Marek Polacek <polacek@redhat.com>
12641
12642 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
12643 * doc/invoke.texi: Document -fsanitize=object-size.
12644 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
12645 or it into SANITIZE_UNDEFINED.
12646 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
12647 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
12648 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
12649 * opts.c (common_handle_option): Handle -fsanitize=object-size.
12650 * ubsan.c: Include tree-object-size.h.
12651 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
12652 (ubsan_expand_bounds_ifn): Use false instead of 0.
12653 (ubsan_expand_objsize_ifn): New function.
12654 (instrument_object_size): New function.
12655 (pass_ubsan::execute): Add object size instrumentation.
12656 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
12657
12658 2014-10-10 Richard Henderson <rth@redhat.com>
12659
12660 PR target/63404
12661 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
12662 Restrict the set of expressions we're willing to move.
12663
12664 2014-10-10 Jeff Law <law@redhat.com>
12665
12666 * ira.c (struct equivalence): Promote INIT_INSNs field to
12667 an rtx_insn_list. Add comments.
12668 (no_equiv): Promote LIST to an rtx_insn_list. Update
12669 testing for and creating the special marker. Use methods
12670 to extract the insn and next pointers. Promote INSN to an
12671 rtx_insn.
12672 (update_equiv_regs): Update test for special marker in the
12673 INIT_INSNs list.
12674
12675 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12676
12677 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
12678 * configure: Regenerate.
12679 * config/aarch64/aarch64.c (aarch64_override_options): Handle
12680 TARGET_FIX_ERR_A53_835769_DEFAULT.
12681 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
12682 value to 2.
12683 * doc/install.texi (aarch64*-*-*): Document
12684 new --enable-fix-cortex-a53-835769 option.
12685
12686 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12687 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12688
12689 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
12690 (ADJUST_INSN_LENGTH): Define.
12691 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
12692 * config/aarch64/aarch64.c (is_mem_p): New function.
12693 (is_memory_op): Likewise.
12694 (aarch64_prev_real_insn): Likewise.
12695 (is_madd_op): Likewise.
12696 (dep_between_memop_and_curr): Likewise.
12697 (aarch64_madd_needs_nop): Likewise.
12698 (aarch64_final_prescan_insn): Likewise.
12699 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
12700 and -mno-fix-cortex-a53-835769 options.
12701
12702 2014-10-10 Jakub Jelinek <jakub@redhat.com>
12703
12704 PR tree-optimization/63464
12705 * tree-switch-conversion.c (struct case_bit_test): Remove
12706 hi and lo fields, add wide_int mask field.
12707 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
12708 hi/lo fields into wide_int mask operations, optimize by pretending
12709 minval to be 0 if maxval is small enough.
12710 (process_switch): Adjust caller.
12711
12712 2014-10-10 Richard Biener <rguenther@suse.de>
12713
12714 PR tree-optimization/63379
12715 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
12716 a neutral operand for min/max when it is not a reduction chain.
12717
12718 2014-10-10 Richard Biener <rguenther@suse.de>
12719
12720 PR tree-optimization/63476
12721 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
12722 (BB_LIVE_VOP_ON_EXIT): New define.
12723 (create_expression_by_pieces): Assign VUSEs to stmts.
12724 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
12725 (pass_pre::execute): Assert virtual SSA form is up-to-date
12726 after insertion.
12727
12728 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
12729
12730 * lra-assigns.c (assign_by_spills): Error out on spill failure.
12731
12732 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
12733
12734 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
12735 assertion.
12736
12737 2014-10-09 Richard Biener <rguenther@suse.de>
12738
12739 PR tree-optimization/63380
12740 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
12741 may trap.
12742
12743 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
12744
12745 * config/avr/avr.opt (mmcu=): Change to have a string value.
12746 (mn-flash=, mskip-bug, march=, mrmw): New options.
12747 (HeaderInclude): New.
12748 (mmcu=): Remove Var / Init clauses.
12749 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
12750 -specs option.
12751 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
12752 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
12753 (SYMBOL_FLAG_IO_LOW): Define.
12754 (avr_device_to_as, avr_device_to_ld): Don't declare.
12755 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
12756 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
12757 (EXTRA_SPEC_FUNCTIONS): Don't define.
12758 (ASM_SPEC): Translate -arch= option to -mmcu= option.
12759 (LINK_SPEC): Translate -arch= option to -m= option.
12760 Don't use device_to_ld / device_to_data_start.
12761 (STARTFILE_SPEC): Now empty.
12762 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
12763 * config/avr/gen-avr-mmcu-specs.c: New file.
12764 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
12765 (s-device-specs): Likewise.
12766 (GCC_PASSES): Add s-device-specs.
12767 (install-driver): Depend on install-device-specs.
12768 (install-device-specs): New rule.
12769 * config/avr/avr.c (avr_option_override): Look up mcu arch by
12770 avr_arch_index and provide fallback initialization for avr_n_flash.
12771 (varasm.h): #include.
12772 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
12773 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
12774 (avr_attribute_table): Add "io", "address" and "io_low".
12775 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
12776 Add special handling for symbols with "io" and/or "address" attributes.
12777 (avr_asm_asm_output_aligned_bss): New function.
12778 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
12779 as appropriate. Handle io_low attribute.
12780 (avr_out_sbxx_branch): Handle symbolic io addresses.
12781 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
12782 avr_n_flash instead of avr_current_device->n_flash.
12783 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
12784 (avr_emit_movmemhi): Likewise.
12785 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
12786 Use TARGET_RMW instead of avr_current_device->dev_attributes.
12787 Don't define avr_current_device->macro (that's the specfile's job).
12788 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
12789 * config/avr/avr.c (avr_2word_insn_p): Likewise.
12790 * config/avr/avr.md (*cpse.ne): Likewise.
12791 (mov<mode>): Use avr_eval_addr_attrib.
12792 (cbi): Change constraint for low_io_address_operand operand to "i".
12793 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
12794 * config/avr/predicates.md (io_address_operand):
12795 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
12796 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
12797 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
12798 Update prototype.
12799 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
12800 * config/avr/genmultilib.awk: Use -march=.
12801 Remove Multilib matches processing.
12802 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
12803 * config/avr/avr-arch.h: Add double include guard.
12804 (avr_mcu_t) <library_name>: Update comment.
12805 * config/avr/driver-avr.c (avr_device_to_as): Delete.
12806 (avr_device_to_ld, avr_device_to_data_start): Likewise.
12807 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
12808 (avr_device_to_sp8): Likewise.
12809 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
12810
12811 * doc/extend.texi (io, address): Document new AVR variable attributes.
12812 (io_low): Likewise.
12813
12814 2014-10-09 Marek Polacek <polacek@redhat.com>
12815
12816 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
12817
12818 2014-10-08 Richard Biener <rguenther@suse.de>
12819
12820 PR tree-optimization/61969
12821 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
12822 variables.
12823
12824 2014-10-09 Richard Biener <rguenther@suse.de>
12825
12826 PR tree-optimization/63445
12827 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
12828 overflow for non-equality compares.
12829
12830 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
12831
12832 PR rtl-optimization/57003
12833 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
12834 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
12835 killing regs_invalidated_by_call.
12836
12837 2014-10-08 Teresa Johnson <tejohnson@google.com>
12838
12839 PR bootstrap/63432.
12840 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
12841 (ssa_fix_duplicate_block_edges): Invoke it.
12842 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
12843
12844 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
12845
12846 PR target/52941
12847 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
12848 atomic_fetch_<fetchop_name>si_hard,
12849 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
12850 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
12851 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
12852 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
12853
12854 2014-10-08 Rong Xu <xur@google.com>
12855
12856 * gcov-tool.c (profile_overlap): New driver function
12857 to compute profile overlap.
12858 (print_overlap_usage_message): New.
12859 (overlap_usage): New.
12860 (do_overlap): New.
12861 (print_usage): Add calls to overlap function.
12862 (main): Ditto.
12863 * doc/gcov-tool.texi: Add documentation.
12864
12865 2014-10-08 Steve Ellcey <sellcey@mips.com>
12866
12867 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
12868 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
12869
12870 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
12871
12872 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
12873 pattern matching of MEM_REF.
12874 (check_stmt_for_type_change): Update.
12875
12876 2014-10-08 Steve Ellcey <sellcey@mips.com>
12877
12878 * config/mips/linux64.h: Remove.
12879 * config/mips/gnu-user64.h: Remove.
12880 * gcc.config (mips*-*-*): Remove references to linux64.h and
12881 gnu-user64.h
12882 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
12883 with modified version from gnu-user64.h.
12884 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
12885 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
12886 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
12887 linux64.h.
12888 (GNU_USER_LINK_EMULATION64): Ditto.
12889 (GNU_USER_LINK_EMULATIONN32): Ditto.
12890 (GLIBC_DYNAMIC_LINKER32): Ditto.
12891 (GLIBC_DYNAMIC_LINKER64): Ditto.
12892 (GLIBC_DYNAMIC_LINKERN32): Ditto.
12893 (UCLIBC_DYNAMIC_LINKER32): Ditto.
12894 (UCLIBC_DYNAMIC_LINKER64): Ditto.
12895 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
12896 (BIONIC_DYNAMIC_LINKERN32): Ditto.
12897 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
12898 (GLIBC_DYNAMIC_LINKER): Delete.
12899 (UCLIBC_DYNAMIC_LINKER): Delete.
12900
12901 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
12902 Richard Biener <rguenther@suse.de>
12903
12904 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
12905 Get address space from operand 0 (BASE).
12906
12907 2014-10-07 Iain Sandoe <iain@codesourcery.com>
12908
12909 PR target/61387
12910 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
12911
12912 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
12913
12914 * dwarf2out.c: Remove current_function_has_inlines.
12915 (gen_subprogram_die): Same.
12916 (gen_inlined_subroutine_die): Same.
12917
12918 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
12919
12920 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
12921 type.
12922 (_addcarry_u64): Ditto.
12923 (_addcarryx_u64): Ditto.
12924
12925 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
12926
12927 * cgraph.h (cgraph_node::get_fun): Declare.
12928 * cgraph.c (cgraph_node::get_fun): New method.
12929 * ipa-inline.c (can_inline_edge_p): Use it.
12930
12931 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
12932
12933 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
12934 and -ftrapping-math.
12935 * lto-wrapper.c (merge_and_complain): Likewise.
12936 (run_gcc): Likewise.
12937
12938 2014-10-06 Rong Xu <xur@google.com>
12939
12940 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
12941 * tree-profile.c: (params.h): New include.
12942 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
12943 and __gcov_indirect_call_topn_counters for
12944 indirect_call_topn_profile.
12945 (gimple_init_edge_profiler): New decls for
12946 __gcov_indirect_call_topn_profiler.
12947 (gimple_gen_ic_profiler): Generate the correct profiler call.
12948 (gimple_gen_ic_func_profiler): Fix format.
12949 * value-prof.c (params.h): New include.
12950 (dump_histogram_value): Hanlde indirect_call_topn counters.
12951 (stream_in_histogram_value): Ditto.
12952 (gimple_indirect_call_to_profile): Use indirect_call_topn
12953 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
12954 (gimple_find_values_to_profile): Hanlde indirect_call_topn
12955 counters.
12956 * value-prof.h (enum hist_type): Histrogram type for
12957 indirect_call_topn counters.
12958 * profile.c (instrument_values): Instrument
12959 indirect_call_topn counters.
12960
12961 2014-10-06 Rong Xu <xur@google.com>
12962
12963 * Makefile.in: Fix dependence.
12964 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
12965 indirect call topn profiler.
12966 * gcov-io.h: Ditto.
12967
12968 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
12969
12970 * calls.c (expand_call): Do not use the target as the return slot if
12971 it is not sufficiently aligned.
12972
12973 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12974
12975 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
12976 discussion of permutes and why we don't handle them.
12977
12978 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
12979
12980 * config/sparc/predicates.md (int_register_operand): Delete.
12981
12982 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
12983
12984 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
12985
12986 2014-10-06 Jakub Jelinek <jakub@redhat.com>
12987
12988 * ubsan.h (ubsan_get_source_location): New prototype.
12989 * ubsan.c (ubsan_source_location_type): New variable.
12990 Function renamed to ...
12991 (ubsan_get_source_location_type): ... this. Cache
12992 return value in ubsan_source_location_type variable.
12993 (ubsan_source_location, ubsan_create_data): Use
12994 ubsan_get_source_location_type instead of
12995 ubsan_source_location_type.
12996 * asan.c (asan_protect_global): Don't protect globals
12997 with ubsan_get_source_location_type () type.
12998 (asan_add_global): Provide global decl location info
12999 if possible.
13000
13001 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
13002
13003 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
13004 sanity check.
13005
13006 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
13007
13008 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
13009 on size.
13010 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
13011 into vptr pointer.
13012 (ipa_polymorphic_call_context::dump): Fix formating.
13013 (walk_ssa_copies): Add logic avoiding loops; update uses.
13014 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
13015
13016 2014-10-02 Mark Wielaard <mjw@redhat.com>
13017
13018 PR debug/63239
13019 * dwarf2out.c (gen_subprogram_die): When a member function is
13020 explicitly deleted then add a DW_AT_GNU_deleted attribute.
13021 * langhooks.h (struct lang_hooks_for_decls): Add
13022 function_decl_deleted_p langhook.
13023 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
13024 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
13025
13026 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
13027
13028 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
13029 NULL pointer checks.
13030 (ipa_polymorphic_call_context::get_dynamic_type): Return true
13031 if type doesn't change.
13032 * cgraph.h (cgraph_indirect_call_info): New flag.
13033 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
13034 (cgraph_node::dump): Dump it.
13035 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
13036 of context.get_dynamic_type.
13037 (ipa_make_edge_direct_to_target): Do not speculate
13038 edge that is already speuclative.
13039 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
13040 speculate to __builtin_unreachable
13041 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
13042 vptr_changed.
13043 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
13044
13045 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
13046
13047 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
13048 get_dynamic_type; drop TODO.
13049 * ipa-polymorphic-call.c
13050 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
13051 for otr_type to be unknown.
13052
13053 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
13054
13055 * common/config/score/score-common.c: Remove.
13056 * config.gcc: Remove support for score-*.
13057 * config/score/constraints.md: Remove.
13058 * config/score/elf.h: Remove.
13059 * config/score/predicates.md: Remove.
13060 * config/score/score-conv.h: Remove.
13061 * config/score/score-generic.md: Remove.
13062 * config/score/score-modes.def: Remove.
13063 * config/score/score-protos.h: Remove.
13064 * config/score/score.c: Remove.
13065 * config/score/score.h: Remove.
13066 * config/score/score.md: Remove.
13067 * config/score/score.opt: Remove.
13068 * doc/md.texi: Don't document score-*.
13069
13070 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
13071
13072 PR pch/63429
13073 * genconditions.c: Directly include ggc.h before rtl.h.
13074
13075 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
13076
13077 * ipa-polymorphic-call.c
13078 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
13079 code determining speculative type.
13080 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
13081
13082 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13083
13084 * altivec.md (altivec_lvsl): New define_expand.
13085 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
13086 (altivec_lvsr): New define_expand.
13087 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
13088 * rs6000.c (rs6000_expand_builtin): Change to use
13089 altivec_lvs[lr]_direct; remove commented-out code.
13090
13091 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13092
13093 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13094 Issue a warning message when vec_lvsl or vec_lvsr is used with a
13095 little endian target.
13096
13097 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
13098
13099 * tree-pretty-print.c (dump_location): Make it extern. Dump also
13100 the column.
13101 * tree-pretty-print.h (dump_location): Declare.
13102 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
13103 (pp_gimple_stmt_1): Likewise.
13104 (dump_implicit_edges): Likewise.
13105 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
13106 LOCATION_LINE.
13107
13108
13109 2014-10-03 David Malcolm <dmalcolm@redhat.com>
13110
13111 * gcc.c (driver::global_initializations): Remove "const" so
13112 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
13113 and decoded_options_count.
13114
13115 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
13116
13117 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
13118 macro.
13119 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
13120 TARGET_E500_DOUBLE case here.
13121
13122 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
13123
13124 PR c++/54427
13125 PR c++/57198
13126 PR c++/58845
13127 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
13128
13129 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
13130
13131 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
13132 * lto-cgraph.c (lto_output_edge, input_edge): Stream
13133 in_polymorphic_cdtor
13134 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
13135 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
13136 * cgraphclones.c (cgraph_edge::clone): Likewise.
13137 * ipa-prop.c (update_jump_functions_after_inlining,
13138 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
13139 to possible_dynamic_type_change.
13140 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
13141 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
13142 IN_POLY_CDOTR argument.
13143
13144 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
13145 for BASE and OUTER_TYPE being NULL.
13146 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
13147 in_poly_cdtor parameter.
13148
13149 2014-10-03 Jakub Jelinek <jakub@redhat.com>
13150
13151 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
13152 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
13153 TARGET_AVX512F.
13154 (expand_vec_perm_1): Likewise.
13155
13156 2014-10-03 Jakub Jelinek <jakub@redhat.com>
13157 Uros Bizjak <ubizjak@gmail.com>
13158
13159 PR tree-optimization/61403
13160 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
13161 error in comment. Also optimize 256-bit vectors for AVX2
13162 or AVX (floating vectors only), provided the first permutation
13163 can be performed in one insn.
13164
13165 2014-10-03 David Malcolm <dmalcolm@redhat.com>
13166
13167 * gcc.c (class driver): New class.
13168 (main): Reimplement in terms of driver::main, moving most of the
13169 locals to be locals within individual methods of class driver.
13170 The remaining locals "explicit_link_files", "decoded_options" and
13171 "decoded_options_count" are used by multiple driver:: methods, and
13172 so become member data. Doing so isolates the argc/argv reads and
13173 writes. Replace "goto out" with a special exit code from
13174 new method driver::prepare_infiles. Split out the old
13175 implementation of main into the following...
13176 (driver::main): New function, corresponding to the old "main"
13177 implementation.
13178 (driver::set_progname): New function, taken from the old
13179 "main" implementation.
13180 (driver::expand_at_files): Likewise.
13181 (driver::decode_argv): Likewise.
13182 (driver::global_initializations): Likewise.
13183 (driver::build_multilib_strings): Likewise.
13184 (driver::set_up_specs): Likewise.
13185 (driver::putenv_COLLECT_GCC): Likewise.
13186 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
13187 (driver::handle_unrecognized_options): Likewise.
13188 (driver::maybe_print_and_exit): Likewise.
13189 (driver::prepare_infiles): Likewise.
13190 (driver::do_spec_on_infiles): Likewise.
13191 (driver::maybe_run_linker): Likewise.
13192 (driver::final_actions): Likewise.
13193 (driver::get_exit_code): Likewise.
13194
13195 2014-10-03 Yury Gribov <y.gribov@samsung.com>
13196
13197 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
13198 don't emit empty ctors.
13199
13200 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
13201
13202 * convert.c (convert_to_integer): Do not introduce useless conversions
13203 between integral types.
13204
13205 2014-10-03 David Sherwood <david.sherwood@arm.com>
13206
13207 * ira-int.h (ira_allocno): Mark hard_regno as signed.
13208
13209 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
13210
13211 * lra-constraints.c (inherit_in_ebb): Handle calls with
13212 multiple return values.
13213 * caller-save.c (save_call_clobbered_regs): Likewise.
13214
13215 2014-10-03 Jakub Jelinek <jakub@redhat.com>
13216
13217 * tree-vect-data-refs.c (vect_permute_load_chain,
13218 vect_shift_permute_load_chain): Fix a typo in temporary var names,
13219 suffle3 to shuffle3.
13220
13221 PR libgomp/61200
13222 * omp-low.c (taskreg_contexts): New variable.
13223 (scan_omp_parallel): Push newly created context into taskreg_contexts
13224 vector and move record layout code to finish_taskreg_scan.
13225 (scan_omp_task): Likewise.
13226 (finish_taskreg_scan): New function.
13227 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
13228 vector elements and release it.
13229
13230 PR target/62128
13231 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
13232 of palignr arguments can't be used due to min 0 or max - min
13233 too high, try also op0, op1 order of palignr arguments.
13234
13235 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
13236
13237 * cgraph.h (ipa_polymorphic_call_context):
13238 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
13239 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
13240 * ipa-polymorphic-call.c
13241 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
13242 past end of dynamic types.
13243 (ipa_polymorphic_call_context::stream_out,
13244 speculative_outer_type): Stream dynamic flag.
13245 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
13246 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
13247 Clear DYNAMIC.
13248 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
13249 set it.
13250 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
13251 * ipa-prop.c (update_jump_functions_after_inlining,
13252 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
13253
13254 2014-10-02 Teresa Johnson <tejohnson@google.com>
13255
13256 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
13257 up when synthesizing counts to avoid rounding errors.
13258
13259 2014-10-02 Teresa Johnson <tejohnson@google.com>
13260
13261 PR middle-end/63422
13262 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
13263 asserts to handle incoming insanities.
13264
13265 2014-10-02 Martin Jambor <mjambor@suse.cz>
13266
13267 PR tree-optimization/63375
13268 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
13269 references.
13270
13271 2014-10-02 Olivier Hainque <hainque@adacore.com>
13272
13273 * Makefile.in (CROSS): Define, to @CROSS.
13274
13275 2014-10-02 Jakub Jelinek <jakub@redhat.com>
13276
13277 PR target/62128
13278 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
13279 if it expands to a single insn only.
13280 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
13281 fail unless in_order is true. Add forward declaration.
13282 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
13283 is useful for one_operand_p.
13284 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
13285
13286 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
13287
13288 * cgraphclones.c (build_function_type_skip_args): Do not make new
13289 type variant of old.
13290
13291 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
13292
13293 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
13294 when speculation is added.
13295 (ipa_edge_args): Add polymorphic_call_contexts.
13296 (ipa_get_ith_polymorhic_call_context): New accesor.
13297 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
13298 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
13299 (ipa_compute_jump_functions_for_edge): Compute contexts.
13300 (update_jump_functions_after_inlining): Update contexts.
13301 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
13302 update dumping; add speculative edge creation.
13303 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
13304 context updating.
13305 (update_indirect_edges_after_inlining): Pass down context.
13306 (ipa_edge_duplication_hook): Duplicate contexts.
13307 (ipa_write_node_info): Stream out contexts.
13308 (ipa_read_node_info): Stream in contexts.
13309 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
13310 types.
13311 (try_speculative_devirtualization): New function.
13312 * ipa-utils.h (try_speculative_devirtualization): Declare.
13313
13314 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
13315
13316 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
13317 dumping during WPA.
13318
13319 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
13320
13321 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
13322 type variants.
13323
13324 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
13325
13326 * ipa-polymorphic-call.c
13327 (ipa_polymorphic_call_context::restrict_to_inner_class):
13328 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
13329 use speculation_consistent_p to do so; Add CONSDER_BASES
13330 and CONSIDER_PLACEMENT_NEW parameters.
13331 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
13332 short circuit obvious cases.
13333 (ipa_polymorphic_call_context::dump): Improve formatting.
13334 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
13335 combine_speculation_with to record speculations; Do not ICE when
13336 object is located in pointer type decl; do not ICE for methods
13337 of UNION_TYPE; do not record nonpolymorphic types.
13338 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
13339 (ipa_polymorphic_call_context::combine_speculation_with): New method.
13340 (ipa_polymorphic_call_context::combine_with): New method.
13341 (ipa_polymorphic_call_context::make_speculative): Move here; use
13342 combine speculation.
13343 * cgraph.h (ipa_polymorphic_call_context): Update
13344 restrict_to_inner_class prototype; add offset_by, make_speculative,
13345 combine_with, useless_p, combine_speculation_with and
13346 speculation_consistent_p methods.
13347 (ipa_polymorphic_call_context::offset_by): New method.
13348 (ipa_polymorphic_call_context::useless_p): New method.
13349
13350 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
13351
13352 PR rtl-optimization/62151
13353 * combine.c (can_combine_p): Allow the destination register of INSN
13354 to be clobbered in I3.
13355 (subst): Do not substitute into clobbers of registers.
13356
13357 2014-10-01 Jakub Jelinek <jakub@redhat.com>
13358
13359 PR debug/63342
13360 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
13361 offset, TARGET_MEM_REF and SSA_NAME.
13362
13363 * config/i386/i386.c (expand_vec_perm_palignr): Handle
13364 256-bit vectors for TARGET_AVX2.
13365
13366 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
13367 dfirst permutation.
13368
13369 PR target/63428
13370 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
13371 argument to avx2_permv2ti.
13372
13373 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13374
13375 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
13376
13377 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
13378
13379 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
13380 (fmod<mode>3): Ditto.
13381 (fpremxf4_i387): Ditto.
13382 (reminderxf3): Ditto.
13383 (reminder<mode>3): Ditto.
13384 (fprem1xf4_i387): Ditto.
13385
13386 2014-09-30 Teresa Johnson <tejohnson@google.com>
13387
13388 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
13389 duplicate_blocks bitmap.
13390 (remove_ctrl_stmt_and_useless_edges): Ditto.
13391 (create_block_for_threading): Ditto.
13392 (compute_path_counts): New function.
13393 (update_profile): Ditto.
13394 (recompute_probabilities): Ditto.
13395 (update_joiner_offpath_counts): Ditto.
13396 (freqs_to_counts_path): Ditto.
13397 (clear_counts_path): Ditto.
13398 (ssa_fix_duplicate_block_edges): Update profile info.
13399 (ssa_create_duplicates): Pass new parameter.
13400 (ssa_redirect_edges): Remove old profile update.
13401 (thread_block_1): New duplicate_blocks bitmap,
13402 remove old profile update.
13403 (thread_single_edge): Pass new parameter.
13404
13405 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
13406
13407 PR middle-end/62120
13408 * varasm.c (decode_reg_name_and_count): Check availability for
13409 registers from ADDITIONAL_REGISTER_NAMES.
13410
13411 2014-09-30 David Malcolm <dmalcolm@redhat.com>
13412
13413 PR plugins/63410
13414 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
13415 (PLUGIN_HEADERS): Add pass-instances.def.
13416
13417 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
13418
13419 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
13420 iterator.
13421 * config/aarch64/aarch64-simd.md
13422 (aarch64_sqdmull_laneq<mode>): Expand iterator.
13423 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
13424 (vqdmulls_lane_s32): Fix return type.
13425 (vqdmulls_laneq_s32): New.
13426
13427 2014-09-30 Jakub Jelinek <jakub@redhat.com>
13428
13429 PR inline-asm/63282
13430 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
13431 or invert_jump_1 if jump isn't any_condjump_p.
13432
13433 2014-09-30 Terry Guo <terry.guo@arm.com>
13434
13435 * config/arm/arm-cores.def (cortex-m7): New core name.
13436 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
13437 (fpv5-d16): Ditto.
13438 * config/arm/arm-tables.opt: Regenerated.
13439 * config/arm/arm-tune.md: Regenerated.
13440 * config/arm/arm.h (TARGET_VFP5): New macro.
13441 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
13442 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
13443 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
13444 * doc/invoke.texi: Document new cpu and fpu names.
13445
13446 2014-09-30 Jiong Wang <jiong.wang@arm.com>
13447
13448 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
13449 before sinking insn.
13450
13451 2014-09-30 David Sherwood <david.sherwood@arm.com>
13452
13453 * ira-int.h (ira_allocno): Add "wmode" field.
13454 * ira-build.c (create_insn_allocnos): Add new "parent" function
13455 parameter.
13456 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
13457 that cannot be accessed in wmode.
13458
13459 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
13460
13461 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
13462 integer overflow.
13463
13464 2014-09-29 Andi Kleen <ak@linux.intel.com>
13465
13466 * opts.c (print_filtered_help): Print --param min/max/default
13467 with -Q.
13468
13469 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
13470
13471 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
13472
13473 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
13474
13475 * tree-vrp.c (get_single_symbol): New function.
13476 (build_symbolic_expr): Likewise.
13477 (symbolic_range_based_on_p): New predicate.
13478 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
13479 for PLUS and MINUS. Do not drop symbolic ranges at the end.
13480 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
13481 operand is symbolic and based on the other operand.
13482
13483 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
13484
13485 * config/microblaze/microblaze.md (call_internal1): Use VOID
13486 instead of SI to fix "((void (*)(void)) 0)()" issue
13487
13488 2014-09-29 Nick Clifton <nickc@redhat.com>
13489
13490 * config/msp430/msp430.c (msp430_expand_prologue): Return a
13491 CLOBBER rtx for naked functions.
13492 (msp430_expand_epilogue): Likewise.
13493 (msp430_use_f5_series_hwmult): Cache result.
13494 (use_32bit_hwmult): Cache result.
13495 (msp430_no_hwmult): New function.
13496 (msp430_output_labelref): Use it.
13497
13498 2014-09-29 Jakub Jelinek <jakub@redhat.com>
13499
13500 PR middle-end/63247
13501 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
13502 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
13503 use the alignment of avar rather than ovar.
13504
13505 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
13506
13507 * config/pa/pa.c (pa_output_function_epilogue): Only update
13508 last_address when a nonnote insn is found.
13509
13510 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
13511
13512 PR ipa/60665
13513 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
13514
13515 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
13516
13517 PR ipa/62121
13518 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
13519 fix pasto in checking array size.
13520
13521 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
13522
13523 PR middle-end/35545
13524 * passes.def (pass_tracer): Move before last dominator pass.
13525
13526 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
13527
13528 * gcc.c (try_generate_repro): Remove argument "prog". Change all
13529 users.
13530 (run_attempt): Handle errors of "pex_run" invocation.
13531
13532 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
13533
13534 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
13535 (CC1_SPEC): Define.
13536 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
13537 (TARGET_ASAN_SHADOW_OFFSET): Define.
13538
13539 2014-09-26 Martin Liska <mliska@suse.cz>
13540
13541 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
13542 introduced.
13543 * cgraph.h: Likewise.
13544 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
13545 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
13546 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
13547 * tree-ssa-alias.h: Likewise.
13548
13549 2014-09-26 Jakub Jelinek <jakub@redhat.com>
13550 Max Ostapenko <m.ostapenko@partner.samsung.com>
13551
13552 * common.opt: New option.
13553 * doc/invoke.texi: Describe new option.
13554 * gcc.c (execute): Don't free first string early, but at the end
13555 of the function. Call retry_ice if compiler exited with
13556 ICE_EXIT_CODE.
13557 (main): Factor out common code.
13558 (print_configuration): New function.
13559 (files_equal_p): Likewise.
13560 (check_repro): Likewise.
13561 (run_attempt): Likewise.
13562 (do_report_bug): Likewise.
13563 (append_text): Likewise.
13564 (try_generate_repro): Likewise
13565
13566 2014-09-25 Andi Kleen <ak@linux.intel.com>
13567
13568 * config/i386/i386.c (x86_print_call_or_nop): New function.
13569 (x86_function_profiler): Support -mnop-mcount and
13570 -mrecord-mcount.
13571 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
13572 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
13573
13574 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
13575
13576 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
13577 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
13578 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
13579 Remove.
13580
13581 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
13582
13583 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
13584 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
13585 types_odr_comparable): Declare.
13586 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
13587 * ipa-polymorphic-call.c: New file.
13588 (contains_polymorphic_type_p, possible_placement_new,
13589 ipa_polymorphic_call_context::restrict_to_inner_class,
13590 contains_type_p, decl_maybe_in_construction_p,
13591 ipa_polymorphic_call_context::stream_out,
13592 ipa_polymorphic_call_context::debug,
13593 ipa_polymorphic_call_context::stream_in,
13594 ipa_polymorphic_call_context::set_by_decl,
13595 ipa_polymorphic_call_context::set_by_invariant,
13596 walk_ssa_copies,
13597 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
13598 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
13599 extr_type_from_vtbl_ptr_store, record_known_type
13600 check_stmt_for_type_change,
13601 ipa_polymorphic_call_context::get_dynamic_type): Move here from
13602 ipa-devirt.c
13603 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
13604 and streamer-hooks.h
13605 (contains_polymorphic_type_p, possible_placement_new,
13606 ipa_polymorphic_call_context::restrict_to_inner_class,
13607 contains_type_p, decl_maybe_in_construction_p,
13608 ipa_polymorphic_call_context::stream_out,
13609 ipa_polymorphic_call_context::debug,
13610 ipa_polymorphic_call_context::stream_in,
13611 ipa_polymorphic_call_context::set_by_decl,
13612 ipa_polymorphic_call_context::set_by_invariant,
13613 walk_ssa_copies,
13614 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
13615 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
13616 extr_type_from_vtbl_ptr_store, record_known_type
13617 check_stmt_for_type_change,
13618 ipa_polymorphic_call_context::get_dynamic_type): Move to
13619 ipa-polymorphic-call.c
13620 (type_all_derivations_known_p, types_odr_comparable,
13621 types_must_be_same_for_odr): Export.
13622 (type_known_to_have_no_deriavations_p): New function.
13623 * Makefile.in: Add ipa-polymorphic-call.c
13624
13625 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
13626
13627 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
13628 for better storage.
13629 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
13630 (possible_polymorphic_call_targets): Instead of computing both
13631 speculative and non-speculative answers, do just one at a time.
13632 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
13633 (dump_targets): Break out from ...
13634 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
13635 and non-speculative lists.
13636 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
13637 * ipa-utils.h (possible_polymorphic_call_targets): Update.
13638
13639 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
13640
13641 PR rtl-optimization/63348
13642 * emit-rtl.c (try_split): Do not emit extra barrier.
13643
13644 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
13645
13646 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
13647 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
13648 new predicates.
13649 (aarch64_<sur>shll2_n<mode>): Likewise.
13650 (aarch64_<sur>shr_n<mode>): Likewise.
13651 (aarch64_<sur>sra_n<mode>: Likewise.
13652 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
13653 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
13654 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
13655 * config/aarch64/iterators.md (ve_mode): New.
13656 (offsetlr): Remap to infix text for use in new predicates.
13657 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
13658 (aarch64_simd_shift_imm_hi): Likewise.
13659 (aarch64_simd_shift_imm_si): Likewise.
13660 (aarch64_simd_shift_imm_di): Likewise.
13661 (aarch64_simd_shift_imm_offset_qi): Likewise.
13662 (aarch64_simd_shift_imm_offset_hi): Likewise.
13663 (aarch64_simd_shift_imm_offset_si): Likewise.
13664 (aarch64_simd_shift_imm_offset_di): Likewise.
13665 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
13666 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
13667 (aarch64_simd_shift_imm_bitsize_si): Likewise.
13668 (aarch64_simd_shift_imm_bitsize_di): Likewise.
13669
13670 2014-09-25 Jiong Wang <jiong.wang@arm.com>
13671
13672 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
13673 new created BB as the intersection of live-in from "old_dest" and
13674 live-out from "bb".
13675
13676 2014-09-25 Felix Yang <felix.yang@huawei.com>
13677
13678 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
13679 * genautomata.c (merge_states): Ditto.
13680
13681 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
13682
13683 PR target/62218
13684 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
13685 in instruction sequence.
13686
13687 2014-09-25 Nick Clifton <nickc@redhat.com>
13688
13689 PR target/62218
13690 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
13691 in instruction sequence.
13692
13693 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13694
13695 PR target/63335
13696 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
13697 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
13698
13699 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
13700 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13701 Anna Tikhonova <anna.tikhonova@intel.com>
13702 Ilya Tocar <ilya.tocar@intel.com>
13703 Andrey Turetskiy <andrey.turetskiy@intel.com>
13704 Ilya Verbin <ilya.verbin@intel.com>
13705 Kirill Yukhin <kirill.yukhin@intel.com>
13706 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13707
13708 * config/i386/sse.md
13709 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
13710 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
13711 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
13712 (define_expand "<avx512>_perm<mode>_mask"): ... this.
13713 Use VI8F_256_512 mode iterator.
13714 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
13715 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
13716
13717 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
13718 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13719 Anna Tikhonova <anna.tikhonova@intel.com>
13720 Ilya Tocar <ilya.tocar@intel.com>
13721 Andrey Turetskiy <andrey.turetskiy@intel.com>
13722 Ilya Verbin <ilya.verbin@intel.com>
13723 Kirill Yukhin <kirill.yukhin@intel.com>
13724 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13725
13726 * config/i386/sse.md
13727 (define_insn "avx_movshdup256<mask_name>"): Add masking.
13728 (define_insn "sse3_movshdup<mask_name>"): Ditto.
13729 (define_insn "avx_movsldup256<mask_name>"): Ditto.
13730 (define_insn "sse3_movsldup<mask_name>"): Ditto.
13731 (define_insn "vec_dupv2df<mask_name>"): Ditto.
13732 (define_insn "*vec_concatv2df"): Add EVEX version.
13733
13734 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
13735 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13736 Anna Tikhonova <anna.tikhonova@intel.com>
13737 Ilya Tocar <ilya.tocar@intel.com>
13738 Andrey Turetskiy <andrey.turetskiy@intel.com>
13739 Ilya Verbin <ilya.verbin@intel.com>
13740 Kirill Yukhin <kirill.yukhin@intel.com>
13741 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13742
13743 * config/i386/sse.md
13744 (define_insn "vec_set<mode>_0"): Add EVEX version.
13745
13746 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
13747 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13748 Anna Tikhonova <anna.tikhonova@intel.com>
13749 Ilya Tocar <ilya.tocar@intel.com>
13750 Andrey Turetskiy <andrey.turetskiy@intel.com>
13751 Ilya Verbin <ilya.verbin@intel.com>
13752 Kirill Yukhin <kirill.yukhin@intel.com>
13753 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13754
13755 * config/i386/sse.md
13756 (define_insn
13757 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
13758 New.
13759 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
13760 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
13761 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
13762 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
13763 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
13764 (define_expand "sse2_cvtpd2ps_mask): New.
13765 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
13766 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
13767
13768 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
13769 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13770 Anna Tikhonova <anna.tikhonova@intel.com>
13771 Ilya Tocar <ilya.tocar@intel.com>
13772 Andrey Turetskiy <andrey.turetskiy@intel.com>
13773 Ilya Verbin <ilya.verbin@intel.com>
13774 Kirill Yukhin <kirill.yukhin@intel.com>
13775 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13776
13777 * config/i386/i386.c
13778 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
13779 (ufix_notruncv8dfv8si2_mask_round): ... this.
13780 * config/i386/sse.md
13781 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
13782 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
13783 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
13784 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
13785 (define_expand "sse2_cvtpd2dq"): Delete.
13786 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
13787 make 2nd operand const0 vector.
13788 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
13789 Delete.
13790 (define_mode_attr pd2udqsuff): New.
13791 (define_insn
13792 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
13793 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
13794 (define_insn "*avx_cvttpd2dq256_2"): Delete.
13795 (define_expand "sse2_cvttpd2dq"): Ditto.
13796 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
13797 make 2nd operand const0 vector.
13798
13799 2014-09-25 Jakub Jelinek <jakub@redhat.com>
13800
13801 PR tree-optimization/63341
13802 * tree-vectorizer.h (vect_create_data_ref_ptr,
13803 vect_create_addr_base_for_vector_ref): Add another tree argument
13804 defaulting to NULL_TREE.
13805 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
13806 argument, pass it down to vect_create_addr_base_for_vector_ref.
13807 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
13808 add that to base_offset too if non-NULL.
13809 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
13810 for dr_explicit_realign_optimized set it to vector byte size
13811 - 1 instead of setting offset, pass byte_offset down to
13812 vect_create_data_ref_ptr.
13813
13814 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
13815
13816 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
13817 forgotten debug output; canonicalize querries more wtih LTO.
13818
13819 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
13820
13821 * cgraph.h (class ipa_polymorphic_call_context): Move here from
13822 ipa-utils.h; add stream_int and stream_out methods.
13823 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
13824 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
13825 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
13826 add CONTEXT.
13827 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
13828 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
13829 ipa_polymorphic_call_context::clear_speculation,
13830 ipa_polymorphic_call_context::clear_outer_type): Move here from
13831 ipa-utils.h
13832 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
13833 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
13834 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
13835 ipa_polymorphic_call_context::clear_speculation,
13836 ipa_polymorphic_call_context::clear_outer_type): Likewise.
13837 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
13838 streamer-hooks.h
13839 (ipa_polymorphic_call_context::stream_out): New method.
13840 (ipa_polymorphic_call_context::stream_in): New method.
13841 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
13842 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
13843 OUTER_TYPE.
13844 (ipa_analyze_call_uses): Simplify.
13845 (update_indirect_edges_after_inlining): Do not care about outer_type.
13846 (ipa_write_indirect_edge_info): Update.
13847 (ipa_write_indirect_edge_info): Likewise.
13848 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
13849 (dump_edge_flags): Break out from ...
13850 (cgraph_node::dump): ... here; dump indirect edges.
13851
13852 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
13853
13854 * ipa-utils.h (polymorphic_call_context): Add
13855 metdhos dump, debug and clear_outer_type.
13856 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
13857 (ipa_polymorphic_call_context::clear_outer_type): New method.
13858 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
13859 * ipa-devirt.c (types_odr_comparable): New function.
13860 (types_must_be_same_for_odr): New function.
13861 (odr_subtypes_equivalent_p): Simplify.
13862 (possible_placement_new): Break out from ...
13863 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
13864 be more cuatious about returning false in cases the context may be
13865 valid in derived type or via placement new.
13866 (contains_type_p): Clear maybe_derived_type
13867 (ipa_polymorphic_call_context::dump): New method.
13868 (ipa_polymorphic_call_context::debug): New method.
13869 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
13870 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
13871 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
13872 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
13873 to suceed on all valid cases; remove confused sanity check.
13874 (dump_possible_polymorphic_call_targets): Simplify.
13875
13876 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
13877
13878 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
13879 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
13880 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
13881 varpool.c: Rename all instances of DECL_ABSTRACT to
13882 DECL_ABSTRACT_P.
13883
13884 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13885
13886 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
13887 special handling for stores whose SET_SRC is an UNSPEC (such as
13888 UNSPEC_STVE).
13889
13890 2014-09-24 Jiong Wang <jiong.wang@arm.com>
13891
13892 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
13893 !REG_P (src) to release more instruction sink opportunities.
13894
13895 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
13896
13897 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
13898 move costs for 128-bit types.
13899
13900 2014-09-24 Martin Jambor <mjambor@suse.cz>
13901
13902 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
13903 when duplicating a PASS_THROUGH jump function when creating a
13904 speculative edge.
13905
13906 2014-09-24 Marek Polacek <polacek@redhat.com>
13907
13908 PR c/61405
13909 PR c/53874
13910 * asan.c (maybe_instrument_call): Add default case.
13911 * ipa-pure-const.c (special_builtin_state): Likewise.
13912 * predict.c (expr_expected_value_1): Likewise.
13913 * lto-streamer-out.c (write_symbol): Initialize variable.
13914
13915 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13916
13917 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
13918 the lane.
13919 (vmuld_laneq_f64): Likewise.
13920 (vmuls_lane_f32): Likewise.
13921 (vmuls_laneq_f32): Likewise.
13922
13923 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
13924
13925 PR bootstrap/63235
13926 * varpool.c (varpool_node::add): Pass decl attributes
13927 to lookup_attribute.
13928
13929 2014-09-24 Jakub Jelinek <jakub@redhat.com>
13930
13931 PR sanitizer/63316
13932 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
13933
13934 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13935
13936 PR tree-optimization/63266
13937 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
13938 marker for unknown byte value.
13939 (MARKER_MASK): New macro.
13940 (MARKER_BYTE_UNKNOWN): New macro.
13941 (HEAD_MARKER): New macro.
13942 (do_shift_rotate): Mark bytes with unknown values due to sign
13943 extension when doing an arithmetic right shift. Replace hardcoded
13944 mask for marker by new MARKER_MASK macro.
13945 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
13946 numbers accordingly.
13947
13948 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
13949 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13950 Anna Tikhonova <anna.tikhonova@intel.com>
13951 Ilya Tocar <ilya.tocar@intel.com>
13952 Andrey Turetskiy <andrey.turetskiy@intel.com>
13953 Ilya Verbin <ilya.verbin@intel.com>
13954 Kirill Yukhin <kirill.yukhin@intel.com>
13955 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13956
13957 * config/i386/sse.md
13958 (define_insn
13959 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
13960 Add masking.
13961 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
13962 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
13963
13964 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
13965 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13966 Anna Tikhonova <anna.tikhonova@intel.com>
13967 Ilya Tocar <ilya.tocar@intel.com>
13968 Andrey Turetskiy <andrey.turetskiy@intel.com>
13969 Ilya Verbin <ilya.verbin@intel.com>
13970 Kirill Yukhin <kirill.yukhin@intel.com>
13971 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13972
13973 * config/i386/sse.md
13974 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
13975 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
13976 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
13977 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
13978 (define_expand "avx512vl_pshuflw_mask"): New.
13979 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
13980 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
13981 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
13982 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
13983 (define_expand "avx512vl_pshufhw_mask"): New.
13984 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
13985
13986 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
13987 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13988 Anna Tikhonova <anna.tikhonova@intel.com>
13989 Ilya Tocar <ilya.tocar@intel.com>
13990 Andrey Turetskiy <andrey.turetskiy@intel.com>
13991 Ilya Verbin <ilya.verbin@intel.com>
13992 Kirill Yukhin <kirill.yukhin@intel.com>
13993 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13994
13995 * config/i386/i386.c
13996 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
13997 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
13998 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
13999 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
14000 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
14001 * config/i386/sse.md
14002 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
14003 (define_insn
14004 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
14005 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
14006 (define_insn
14007 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
14008 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
14009 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
14010 (define_expand "avx512vl_pshufd_mask"): New.
14011 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
14012
14013 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
14014 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14015 Anna Tikhonova <anna.tikhonova@intel.com>
14016 Ilya Tocar <ilya.tocar@intel.com>
14017 Andrey Turetskiy <andrey.turetskiy@intel.com>
14018 Ilya Verbin <ilya.verbin@intel.com>
14019 Kirill Yukhin <kirill.yukhin@intel.com>
14020 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14021
14022 * config/i386/i386.c
14023 (CODE_FOR_avx2_extracti128): Rename to ...
14024 (CODE_FOR_avx_vextractf128v4di): this.
14025 (CODE_FOR_avx2_inserti128): Rename to ...
14026 (CODE_FOR_avx_vinsertf128v4di): this.
14027 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
14028 CODE_FOR_avx_vextractf128v4di.
14029 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
14030 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
14031 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
14032 CODE_FOR_avx512vl_vinsertv8si.
14033 * config/i386/sse.md
14034 (define_expand
14035 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
14036 AVX512_VEC mode iterator.
14037 (define_insn
14038 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
14039 Ditto.
14040 (define_expand
14041 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
14042 AVX512_VEC_2 mode iterator.
14043 (define_insn "vec_set_lo_<mode><mask_name>"): New.
14044 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
14045 (define_expand "avx512vl_vinsert<mode>"): Ditto.
14046 (define_insn "avx2_vec_set_lo_v4di"): Delete.
14047 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
14048 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
14049 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
14050 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
14051 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
14052 (define_expand "avx2_extracti128"): Delete.
14053 (define_expand "avx2_inserti128"): Ditto.
14054
14055 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
14056 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14057 Anna Tikhonova <anna.tikhonova@intel.com>
14058 Ilya Tocar <ilya.tocar@intel.com>
14059 Andrey Turetskiy <andrey.turetskiy@intel.com>
14060 Ilya Verbin <ilya.verbin@intel.com>
14061 Kirill Yukhin <kirill.yukhin@intel.com>
14062 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14063
14064 * config/i386/sse.md
14065 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
14066 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
14067 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
14068 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
14069 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
14070 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
14071 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
14072 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
14073 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
14074 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
14075 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
14076 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
14077 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
14078
14079 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
14080
14081 PR rtl-optimization/63210
14082 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
14083 HARD_REGNO is not available for CONFLICT_A.
14084
14085 2014-09-23 Andi Kleen <ak@linux.intel.com>
14086
14087 * cgraph.h (symtab_node): Add no_reorder attribute.
14088 (symbol_table::output_asm_statements): Remove.
14089 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
14090 (cgraph_node::create_version_clone): Dito.
14091 (symbol_table::output_asm_statements): Remove.
14092 * trans-mem.c (ipa_tm_create_version_alias): Dito.
14093 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
14094 (output_in_order): Add no_reorder flag. Only handle no_reorder
14095 nodes when set.
14096 (symbol_table::compile): Add separate pass for no_reorder nodes.
14097 (process_common_attributes): Set no_reorder flag in symtab node.
14098 Add node argument.
14099 (process_function_and_variable_attributes): Pass symtab nodes to
14100 process_common_attributes.
14101 * doc/extend.texi (no_reorder): Document no_reorder attribute.
14102 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
14103 (lto_output_varpool_node): Dito.
14104 (input_overwrite_node): Dito.
14105 (input_varpool_node): Dito.
14106 * varpool.c (varpool_node::add): Set no_reorder attribute.
14107 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
14108 (symbol_table::output_variables): Dito.
14109 * symtab.c (symtab_node::dump_base): Print no_reorder.
14110
14111 2014-09-23 Jiong Wang <jiong.wang@arm.com>
14112
14113 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
14114 be INVALID_REGNUM.
14115
14116 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
14117
14118 * configure: Regenerate.
14119
14120 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
14121
14122 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
14123 when result_mode == shift_mode.
14124
14125 2014-09-23 Kostya Serebryany <kcc@google.com>
14126
14127 Update to match the changed asan API.
14128 * asan.c (asan_global_struct): Update the __asan_global definition
14129 to match the new API.
14130 (asan_add_global): Ditto.
14131 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
14132 to __asan_init_v4.
14133
14134 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14135
14136 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
14137 refine the constraints used on 32/64-bit floating point moves.
14138 (f32_av): Likewise.
14139 (f64_vsx): Likewise.
14140 (f64_dm): Likewise.
14141 (f64_av): Likewise.
14142 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
14143 (BOOL_REGS_OP1): Likewise.
14144 (BOOL_REGS_OP2): Likewise.
14145 (BOOL_REGS_UNARY): Likewise.
14146 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
14147 32/64-bit floating point moves. Do not use wa, instead use ww/ws
14148 for moves involving VSX registers. Do not use constraints that
14149 target VSX registers for decimal types.
14150 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
14151 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
14152
14153 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
14154
14155 * tree.h (int_bit_position): Turn into inline function;
14156 implement using wide int.
14157 * tree.c (int_bit_position): Remove.
14158
14159 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
14160
14161 PR bootstrap/63280
14162 * target-globals.c (target_globals::~target_globals): Fix location
14163 of ira_int destruction.
14164
14165 2014-09-23 Renlin Li <renlin.li@arm.com>
14166
14167 * config/aarch64/aarch64.md (return): New.
14168 (simple_return): Likewise.
14169 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
14170 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
14171
14172 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
14173
14174 * common/config/aarch64/aarch64-common.c:
14175 (default_options aarch_option_optimization_table):
14176 Default to -fsched-pressure.
14177
14178 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
14179
14180 * cfgcleanup.c (try_optimize_cfg): Do not remove label
14181 with LABEL_PRESERVE_P flag set.
14182
14183 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
14184 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14185 Anna Tikhonova <anna.tikhonova@intel.com>
14186 Ilya Tocar <ilya.tocar@intel.com>
14187 Andrey Turetskiy <andrey.turetskiy@intel.com>
14188 Ilya Verbin <ilya.verbin@intel.com>
14189 Kirill Yukhin <kirill.yukhin@intel.com>
14190 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14191
14192 * config/i386/sse.md
14193 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
14194 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
14195 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
14196 (define_insn "sse2_shufpd_v2df_mask"): New.
14197
14198 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
14199 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14200 Anna Tikhonova <anna.tikhonova@intel.com>
14201 Ilya Tocar <ilya.tocar@intel.com>
14202 Andrey Turetskiy <andrey.turetskiy@intel.com>
14203 Ilya Verbin <ilya.verbin@intel.com>
14204 Kirill Yukhin <kirill.yukhin@intel.com>
14205 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14206
14207 * config/i386/sse.md
14208 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
14209 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
14210 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
14211 (define_insn "sse_shufps_v4sf_mask"): New.
14212
14213 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
14214 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14215 Anna Tikhonova <anna.tikhonova@intel.com>
14216 Ilya Tocar <ilya.tocar@intel.com>
14217 Andrey Turetskiy <andrey.turetskiy@intel.com>
14218 Ilya Verbin <ilya.verbin@intel.com>
14219 Kirill Yukhin <kirill.yukhin@intel.com>
14220 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14221
14222 * config/i386/sse.md
14223 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
14224 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
14225 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
14226 (define_insn "unpcklps128_mask"): New.
14227
14228 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
14229 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14230 Anna Tikhonova <anna.tikhonova@intel.com>
14231 Ilya Tocar <ilya.tocar@intel.com>
14232 Andrey Turetskiy <andrey.turetskiy@intel.com>
14233 Ilya Verbin <ilya.verbin@intel.com>
14234 Kirill Yukhin <kirill.yukhin@intel.com>
14235 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14236
14237 * config/i386/sse.md
14238 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
14239 (define_insn "avx512vl_unpckhpd128_mask"): New.
14240 (define_expand "avx_movddup256<mask_name>"): Add masking.
14241 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
14242 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
14243 (define_insn "avx512vl_unpcklpd128_mask"): New.
14244
14245 2014-09-22 Joseph Myers <joseph@codesourcery.com>
14246
14247 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14248 * doc/tm.texi: Regenerate.
14249 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
14250 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14251 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
14252 Remove.
14253 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14254 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14255 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14256 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14257 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
14258 Remove.
14259 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14260 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14261 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14262 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14263 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14264 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14265 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14266 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14267 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14268 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14269 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
14270 Remove.
14271
14272 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
14273
14274 * tree-ssa-ccp.c (prop_value_d): Rename to ...
14275 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
14276 * ipa-prop.c (struct type_change_info): Rename to ...
14277 (prop_type_change_info): ... this; update uses.
14278 * ggc-page.c (globals): Rename to ...
14279 (static struct ggc_globals): ... this; update uses.
14280 * tree-ssa-loop-im.c (mem_ref): Rename to ...
14281 (im_mem_ref): ... this; update uses.
14282 * ggc-common.c (loc_descriptor): Rename to ...
14283 (ggc_loc_descriptor): ... this; update uses.
14284 * lra-eliminations.c (elim_table): Rename to ...
14285 (lra_elim_table): ... this; update uses.
14286 * bitmap.c (output_info): Rename to ...
14287 (bitmap_output_info): ... this; update uses.
14288 * gcse.c (expr): Rename to ...
14289 (gcse_expr) ... this; update uses.
14290 (occr): Rename to ...
14291 (gcse_occr): .. this; update uses.
14292 * tree-ssa-copy.c (prop_value_d): Rename to ...
14293 (prop_value_t): ... this.
14294 * predict.c (block_info_def): Rename to ...
14295 (block_info): ... this; update uses.
14296 (edge_info_def): Rename to ...
14297 (edge_info): ... this; update uses.
14298 * profile.c (bb_info): Rename to ...
14299 (bb_profile_info): ... this; update uses.
14300 * alloc-pool.c (output_info): Rename to ...
14301 (pool_output_info): ... this; update uses.
14302 * ipa-cp.c (topo_info): Rename to ..
14303 (ipa_topo_info): ... this; update uses.
14304 * tree-nrv.c (nrv_data): Rename to ...
14305 (nrv_data_t): ... this; update uses.
14306 * ipa-split.c (bb_info): Rename to ...
14307 (split_bb_info): ... this one.
14308 * profile.h (edge_info): Rename to ...
14309 (edge_profile_info): ... this one; update uses.
14310 * dse.c (bb_info): Rename to ...
14311 (dse_bb_info): ... this one; update uses.
14312 * cprop.c (occr): Rename to ...
14313 (cprop_occr): ... this one; update uses.
14314 (expr): Rename to ...
14315 (cprop_expr): ... this one; update uses.
14316
14317 2014-09-22 Jason Merrill <jason@redhat.com>
14318
14319 * Makefile.in (check-parallel-%): Add @.
14320
14321 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
14322
14323 * config/aarch64/geniterators.sh: New.
14324 * config/aarch64/iterators.md (VDQF_DF): New.
14325 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
14326 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
14327
14328 2014-09-22 Peter A. Bigot <pab@pabigot.com>
14329
14330 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
14331 -lnosys when -msim absent.
14332
14333 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
14334
14335 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
14336
14337 2014-09-22 Richard Biener <rguenther@suse.de>
14338
14339 * gimplify.c (gimplify_init_constructor): Do not leave
14340 non-GIMPLE vector constructors around.
14341 * tree-cfg.c (verify_gimple_assign_single): Verify that
14342 CONSTRUCTORs have gimple elements.
14343
14344 2014-09-22 Jakub Jelinek <jakub@redhat.com>
14345
14346 PR debug/63328
14347 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
14348 insert a debug source bind stmt setting DEBUG_EXPR_DECL
14349 instead of a normal gimple assignment stmt.
14350
14351 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
14352
14353 * config/bfin/bfin.md: Fix use of constraints in define_split.
14354
14355 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
14356
14357 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
14358 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
14359
14360 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
14361
14362 * hard-reg-set.h: Include hash-table.h.
14363 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
14364 field.
14365 * target-globals.c (target_globals::~target_globals): Call
14366 hard_regs->finalize.
14367 * rtl.h (subreg_shape): New structure.
14368 (shape_of_subreg): New function.
14369 (simplifiable_subregs): Declare.
14370 * reginfo.c (simplifiable_subreg): New structure.
14371 (simplifiable_subregs_hasher): Likewise.
14372 (simplifiable_subregs): New function.
14373 (invalid_mode_changes): Delete.
14374 (alid_mode_changes, valid_mode_changes_obstack): New variables.
14375 (record_subregs_of_mode): Remove subregs_of_mode parameter.
14376 Record valid mode changes in valid_mode_changes.
14377 (find_subregs_of_mode): Remove subregs_of_mode parameter.
14378 Update calls to record_subregs_of_mode.
14379 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
14380 handling. Initialize new variables. Update call to
14381 find_subregs_of_mode.
14382 (invalid_mode_change_p): Check new variables instead of
14383 invalid_mode_changes.
14384 (finish_subregs_of_mode): Finalize new variables instead of
14385 invalid_mode_changes.
14386 (target_hard_regs::finalize): New function.
14387 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
14388 even when CLASS_CANNOT_CHANGE_MODE is undefined.
14389
14390 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
14391
14392 * combine.c (subst): Use simplify_subreg_regno rather than
14393 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
14394
14395 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
14396
14397 * rtl.h (subreg_info): Expand commentary
14398 * rtlanal.c (subreg_get_info): Likewise.
14399
14400 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
14401
14402 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14403 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14404 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
14405
14406 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
14407
14408 * config/arm/arm.c: #include "tm-constrs.h"
14409 (thumb1_size_rtx_costs): Adjust rtx costs.
14410
14411 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
14412
14413 * configure.ac (target_header_dir): Move block defining
14414 this to before the block setting inhibit_libc.
14415 (inhibit_libc): When considering $with_headers, just
14416 check it it's explicitly "no". If not, also check if
14417 $target_header_dir/stdio.h is present. If not, set
14418 inhibit_libc=true.
14419 * configure: Regenerate.
14420
14421 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
14422
14423 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
14424
14425 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
14426
14427 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
14428 insn for divides by integer powers of two.
14429 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
14430 (mod<mode>3): Fix formatting.
14431 (three anonymous define_insn and two define_split): Delete.
14432
14433 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
14434
14435 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
14436 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
14437 (floatdisf2_internal2): Ditto.
14438 (ashrdi3_no_power): Ditto. Fix formatting.
14439
14440 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
14441
14442 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
14443 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
14444 Tidy.
14445
14446 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
14447
14448 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
14449 constant, use addsi3 directly.
14450 (three anonymous define_insn, two define_split): Delete.
14451 (sub<mode>3): Move. Do not allow constant second operand.
14452 Generate different insn for constant first operand.
14453 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
14454 (subf<mode>3_imm): New.
14455 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
14456 (*plus_ltu<mode>): Only handle registers.
14457 (*plus_ltu<mode>_1): New. Handle integer third operand.
14458 (*plus_gtu<mode>): Only handle registers.
14459 (*plus_gtu<mode>_1): New. Handle integer third operand.
14460
14461 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
14462
14463 * config/rs6000/rs6000.md (iorxor): New code_iterator.
14464 (iorxor): New code_attr.
14465 (IORXOR): New code_attr.
14466 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
14467 (ior<mode>3, xor<mode>3): Delete.
14468 (<iorxor><mode>3): New.
14469 (splitter for "big" integer ior, xor): New.
14470 (*bool<mode>3): Move. Also handle AND.
14471 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
14472 (splitter for "big" integer ior, xor): Delete.
14473
14474 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
14475
14476 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
14477 (two anonymous define_insn and two define_split): Delete.
14478 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
14479
14480 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
14481
14482 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
14483 (two anonymous define_insn and two define_split): Delete.
14484 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
14485
14486 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
14487
14488 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
14489
14490 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
14491
14492 * config/rs6000/predicates.md (ca_operand): Allow subregs.
14493 (input_operand): Do not allow ca_operand.
14494 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
14495 carry bit, allow SImode and Pmode.
14496 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
14497
14498 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
14499
14500 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
14501 clobbered registers using clobber_reg. Remove UNSPEC decoration.
14502 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
14503 (*call_rex64_ms_sysv): Remove.
14504 (*call_value_rex64_ms_sysv): Ditto.
14505 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
14506
14507 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
14508
14509 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
14510 operand 3 to "CnL".
14511
14512 2014-09-20 Andreas Schwab <schwab@suse.de>
14513
14514 * config/ia64/ia64.md: Remove constraints from define_split
14515 patterns.
14516
14517 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
14518
14519 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
14520 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
14521 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
14522 (get_dynamic_type): Remove.
14523 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
14524 (clear_speculation): Bring to ipa-deivrt.h
14525 (get_class_context): Rename to ...
14526 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
14527 (contains_type_p): Update.
14528 (get_dynamic_type): Rename to ...
14529 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
14530 (possible_polymorphic_call_targets): UPdate.
14531 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
14532 * ipa-prop.c (ipa_analyze_call_uses): Update.
14533
14534 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
14535
14536 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
14537 privatize dynamic TLS variables.
14538
14539 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
14540
14541 * diagnostic.c (warning_n): New function.
14542 * diagnostic-core.h (warning_n): Declare.
14543 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
14544 output dynamic counts when available.
14545
14546 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
14547
14548 PR tree-optimization/63255
14549 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
14550 issue in setting body_removed flag.
14551
14552 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
14553
14554 PR c++/61825
14555 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
14556 that visibility change is possible
14557 (handle_weakref_attribute): Likewise.
14558 * cgraph.h (symtab_node): Add method get_create and
14559 field refuse_visibility_changes.
14560 (symtab_node::get_create): New method.
14561 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
14562 * varasm.c (mark_weak): Verify that visibility change is
14563 possible.
14564
14565 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
14566
14567 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
14568 for base_reg_operand to be common between LO_SUM and PLUS.
14569 (fusion_gpr_mem_combo): New predicate to match a fused address
14570 that combines the addis and memory offset address.
14571
14572 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
14573 calling signature.
14574 (emit_fusion_gpr_load): Likewise.
14575
14576 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
14577 signature to pass each argument separately, rather than
14578 using an operands array. Rewrite the insns found by peephole2 to
14579 be a single insn, rather than hoping the insns will still be
14580 together when the peephole pass is done. Drop being called via a
14581 normal peephole.
14582 (emit_fusion_gpr_load): Change calling signature to be called from
14583 the fusion_gpr_load_<mode> insns with a combined memory address
14584 instead of the peephole pass passing the addis and offset
14585 separately.
14586
14587 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
14588 fusion.
14589 (power8 fusion peephole): Drop support for doing power8 via a
14590 normal peephole that was created by the peephole2 pass.
14591 (power8 fusion peephole2): Create a new insn with the fused
14592 address, so that the fused operation is kept together after
14593 register allocation is done.
14594 (fusion_gpr_load_<mode>): Likewise.
14595
14596 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
14597
14598 PR lto/63286
14599 * tree.c (need_assembler_name_p): Do not mangle variadic types.
14600
14601 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
14602
14603 * recog.c (scratch_operand): Do not simply allow all hard registers:
14604 only allow those that are allocatable.
14605
14606 2014-09-19 Felix Yang <felix.yang@huawei.com>
14607
14608 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
14609 comments and fix spacing to conform to coding style.
14610
14611 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
14612
14613 * genrecog.c (validate_pattern): Allow empty constraints in
14614 a match_scratch.
14615
14616 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
14617
14618 * dwarf2out.c (decl_ultimate_origin): Update comment.
14619 * tree.c (block_ultimate_origin): Same.
14620
14621 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14622
14623 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
14624 Update GCC version name to GCC 5.
14625 (rs6000_function_arg_boundary): Likewise.
14626 (rs6000_function_arg): Likewise.
14627
14628 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
14629
14630 * config/sh/sh.md: Fix use of constraints in define_split.
14631
14632 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
14633
14634 PR ipa/61998
14635 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
14636
14637 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
14638
14639 * doc/md.texi (Modifiers): Consistently use "read/write"
14640 nomenclature rather than "input/output".
14641 * genrecog.c (constraints_supported_in_insn_p): New.
14642 (validate_pattern): If needed, also check constraints on
14643 MATCH_SCRATCH operands.
14644 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
14645 operands with no '=' or '+' modifier.
14646
14647 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
14648
14649 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
14650 scratch register as written.
14651
14652 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14653
14654 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
14655 assignment.
14656
14657 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14658
14659 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
14660 expanders.
14661
14662 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14663
14664 PR target/62662
14665 * config/s390/s390.c (s390_emit_epilogue): When doing the return
14666 address load optimization force s390_optimize_prologue to leave it
14667 that way. Only do the optimization if we already decided to push
14668 r14 into a stack slot.
14669
14670 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
14671
14672 * asan.c (build_check_stmt): Alignment arg was added.
14673 (asan_expand_check_ifn): Optimization for alignment >= 8.
14674
14675 2014-09-19 Olivier Hainque <hainque@adacore.com>
14676
14677 * config/i386/vxworksae.h: Remove obsolete definitions.
14678 (STACK_CHECK_PROTECT): Define.
14679 * config/i386/vx-common.h: Remove. Merge contents within
14680 config/i386/vxworks.h.
14681 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
14682 i386/vx-common.h.
14683
14684 2014-09-19 Olivier Hainque <hainque@adacore.com>
14685
14686 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
14687 * config/rs6000/t-vxworksmils: New file.
14688 * config/rs6000/vxworksmils.h: New file.
14689
14690 2014-09-19 Olivier Hainque <hainque@adacore.com>
14691
14692 * varasm.c (default_section_type_flags): Flag .persistent.bss
14693 sections as SECTION_BSS.
14694
14695 2014-09-19 Nick Clifton <nickc@redhat.com>
14696
14697 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
14698 pop'ed registers so that DCE does not eliminate them.
14699
14700 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
14701
14702 PR lto/63298
14703 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
14704
14705 2014-09-18 Joseph Myers <joseph@codesourcery.com>
14706
14707 * system.h (LIBGCC2_TF_CEXT): Poison.
14708 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
14709 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
14710 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
14711 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
14712 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
14713 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
14714 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
14715 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
14716 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
14717
14718 2014-09-19 Kito Cheng <kito@0xlab.org>
14719
14720 * except.h: Fix header guard.
14721 * addresses.h: Add missing header guard.
14722 * cfghooks.h: Likewise.
14723 * collect-utils.h: Likewise.
14724 * collect2-aix.h: Likewise.
14725 * conditions.h: Likewise.
14726 * cselib.h: Likewise.
14727 * dwarf2asm.h: Likewise.
14728 * graphds.h: Likewise.
14729 * graphite-scop-detection.h: Likewise.
14730 * gsyms.h: Likewise.
14731 * hw-doloop.h: Likewise.
14732 * incpath.h: Likewise.
14733 * ipa-inline.h: Likewise.
14734 * ipa-ref.h: Likewise.
14735 * ira-int.h: Likewise.
14736 * ira.h: Likewise.
14737 * lra-int.h: Likewise.
14738 * lra.h: Likewise.
14739 * lto-section-names.h: Likewise.
14740 * read-md.h: Likewise.
14741 * reload.h: Likewise.
14742 * rtl-error.h: Likewise.
14743 * sdbout.h: Likewise.
14744 * targhooks.h: Likewise.
14745 * tree-affine.h: Likewise.
14746 * xcoff.h: Likewise.
14747 * xcoffout.h: Likewise.
14748
14749 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
14750
14751 PR debug/63285
14752 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
14753 if advance != 0.
14754
14755 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
14756
14757 PR target/61360
14758 * lra.c (lra): Call recog_init.
14759
14760 2014-09-18 Jakub Jelinek <jakub@redhat.com>
14761
14762 PR c++/62017
14763 * asan.c (transform_statements): Don't instrument clobber statements.
14764
14765 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14766
14767 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
14768 to neon_load1_1reg<q>.
14769
14770 2014-09-17 Jakub Jelinek <jakub@redhat.com>
14771
14772 PR debug/63284
14773 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
14774 if there are only debug stmts after the noreturn call, instead
14775 remove the debug stmts.
14776
14777 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
14778
14779 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
14780 (odr_types_equivalent_p): Use pair hash.
14781 (odr_subtypes_equivalent_p): Likewise, do structural compare
14782 on ODR types that may be mismatched.
14783 (warn_odr): Support warning when only one field is given.
14784 (odr_types_equivalent_p): Strenghten comparsions made;
14785 support VOIDtype.
14786 (add_type_duplicate): Update VISITED hash set.
14787
14788 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
14789
14790 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
14791 Enable selection of 'posix' or no thread model.
14792
14793 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
14794
14795 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
14796 when architecture is older than ARMv7.
14797
14798 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
14799
14800 PR target/61853
14801 * config/pa/pa.c (pa_function_value): Directly handle aggregates
14802 that fit exactly in a word or double word.
14803
14804 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
14805
14806 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
14807 zmm/k regs support.
14808
14809 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14810 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14811 Anna Tikhonova <anna.tikhonova@intel.com>
14812 Ilya Tocar <ilya.tocar@intel.com>
14813 Andrey Turetskiy <andrey.turetskiy@intel.com>
14814 Ilya Verbin <ilya.verbin@intel.com>
14815 Kirill Yukhin <kirill.yukhin@intel.com>
14816 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14817
14818 * config/i386/i386.c
14819 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
14820 * config/i386/sse.md
14821 (define_mode_iterator VI48F_256): New.
14822 (define_mode_attr extract_type): Ditto.
14823 (define_mode_attr extract_suf): Ditto.
14824 (define_mode_iterator AVX512_VEC): Ditto.
14825 (define_expand
14826 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
14827 AVX512_VEC.
14828 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
14829 (define_insn
14830 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
14831 Ditto.
14832 (define_mode_attr extract_type_2): Ditto.
14833 (define_mode_attr extract_suf_2): Ditto.
14834 (define_mode_iterator AVX512_VEC_2): Ditto.
14835 (define_expand
14836 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
14837 AVX512_VEC_2 mode iterator.
14838 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
14839 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
14840 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
14841 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
14842 (define_split for V16FI mode): Ditto.
14843 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
14844 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
14845 (define_split for VI8F_256 mode): Ditto.
14846 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
14847 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
14848 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
14849 (define_split for VI4F_256 mode): Ditto.
14850 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
14851 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
14852 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
14853 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
14854 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
14855 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
14856 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
14857 Update `type' attribute, remove explicit `memory' attribute calculation.
14858
14859 2014-09-16 Kito Cheng <kito@0xlab.org>
14860
14861 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
14862 ira_spilled_reg_stack_slots_num if using lra.
14863 (do_reload): Remove release ira_spilled_reg_stack_slots part.
14864 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
14865 make sure not using lra.
14866 (ira_reuse_stack_slot): Likewise.
14867 (ira_mark_new_stack_slot): Likewise.
14868
14869 2014-09-15 Andi Kleen <ak@linux.intel.com>
14870
14871 * function.c (allocate_struct_function): Force
14872 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
14873 profiling is disabled.
14874
14875 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
14876
14877 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
14878 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
14879 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
14880 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
14881 macro with statically checked member functions.
14882 * rtl.h (rtx_insn::deleted): New method.
14883 (rtx_insn::set_deleted): Likewise.
14884 (rtx_insn::set_undeleted): Likewise.
14885 (INSN_DELETED_P): Remove.
14886
14887 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
14888
14889 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
14890 result of emit_jump_insn_before to a new variable.
14891 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
14892 (mark_jump_label_1): Likewise.
14893 (mark_jump_label_asm): Likewise.
14894 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
14895 * rtl.h (mark_jump_label): Adjust.
14896
14897 2014-09-15 Jakub Jelinek <jakub@redhat.com>
14898
14899 * Makefile.in (dg_target_exps): Remove.
14900 (check_gcc_parallelize): Change to just an upper bound number.
14901 (check-%-subtargets): Always print the non-parallelized goals.
14902 (check_p_vars, check_p_comma, check_p_subwork): Remove.
14903 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
14904 check_p_numbers3, check_p_numbers4, check_p_numbers5,
14905 check_p_numbers6): New variables.
14906 (check_p_numbers): Set to sequence from 1 to 9999.
14907 (check_p_subdirs): Set to sequence from 1 to minimum of
14908 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
14909 or 128.
14910 (check-%, check-parallel-%): Rewritten so that for parallelized
14911 testing each job runs all the *.exp files, with
14912 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
14913
14914 2014-09-15 David Malcolm <dmalcolm@redhat.com>
14915
14916 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
14917 rtx to rtx_insn *.
14918 (arc_sets_cc_p): Likewise.
14919 * config/arc/arc.c (arc_print_operand): Use methods of
14920 "final_sequence" for clarity, and to enable strengthening of
14921 locals "jump" and "delay" from rtx to rtx_insn *.
14922 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
14923 rtx_insn *; use method of rtx_sequence for typesafety.
14924 (arc_get_insn_variants): Use insn method of rtx_sequence for
14925 typesafety.
14926 (arc_pad_return): Likewise.
14927 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
14928 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
14929 dyn_cast to rtx_sequence *, using insn method for typesafety.
14930 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
14931 rtx_sequence * and use insn method when invoking get_attr_length.
14932 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
14933 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
14934 rtx_sequence *, introducing a local "seq", using its insn method
14935 from typesafety and clarity.
14936 (add_sched_insns_for_speculation): Strengthen local "next" from
14937 rtx to rtx_insn *.
14938 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
14939 (predicate_insn): Likewise.
14940 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
14941 second param.
14942 * config/cris/cris.c (cris_notice_update_cc): Likewise.
14943 * config/epiphany/epiphany-protos.h
14944 (extern void epiphany_insert_mode_switch_use): Likewise for param
14945 "insn".
14946 (get_attr_sched_use_fpu): Likewise for param.
14947 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
14948 Likewise for param "insn".
14949 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
14950 param "insn" of "target_insert_mode_switch_use" callback.
14951 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
14952 (frv_issues_to_branch_unit_p): Likewise.
14953 (frv_pack_insn_p): Likewise.
14954 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
14955 const rtx * (i.e. mutable rtx_def * const *) to
14956 rtx_insn * const *.
14957 * config/i386/i386-protos.h (standard_sse_constant_opcode):
14958 Strengthen first param from rtx to rtx_insn *.
14959 (output_fix_trunc): Likewise.
14960 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
14961 (output_fix_trunc): Likewise.
14962 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
14963 local "insn".
14964 (min_insn_size): Likewise for param "insn".
14965 (get_mem_group): Likewise.
14966 (is_cmp): Likewise.
14967 (get_insn_path): Likewise.
14968 (get_insn_group): Likewise.
14969 (count_num_restricted): Likewise.
14970 (fits_dispatch_window): Likewise.
14971 (add_insn_window): Likewise.
14972 (add_to_dispatch_window): Likewise.
14973 (debug_insn_dispatch_info_file): Likewise.
14974 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
14975 first param.
14976 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
14977 "cmp" and local "prev".
14978 (m32c_output_compare): Likewise for param "insn".
14979 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
14980 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
14981 (define_predicate "large_insn_p"): Likewise.
14982 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
14983 param from rtx to rtx_insn *.
14984 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
14985 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
14986 (m68k_sched_attr_size): Likewise.
14987 (sched_get_opxy_mem_type): Likewise for param "insn".
14988 (m68k_sched_attr_op_mem): Likewise.
14989 (sched_mem_operand_p): Likewise.
14990 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
14991 * config/mep/mep.c (mep_multi_slot): Likewise.
14992 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
14993 first param.
14994 (mips_sync_loop_insns): Likewise.
14995 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
14996 method of "final_sequence" for typesafety.
14997 (mips_process_sync_loop): Strengthen param "insn" from rtx to
14998 rtx_insn *.
14999 (mips_output_sync_loop): Likewise.
15000 (mips_sync_loop_insns): Likewise.
15001 (mips_74k_agen_init): Likewise.
15002 (mips_sched_init): Use NULL rather than NULL_RTX when working with
15003 insns.
15004 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
15005 Strengthen param "insn" from rtx to rtx_insn *.
15006 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
15007 local "insn".
15008 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
15009 param.
15010 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
15011 "insn". Use method of rtx_sequence for typesafety.
15012 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
15013 rtx_insn *.
15014 (branch_needs_nop_p): Likewise.
15015 (use_skip_p): Likewise.
15016 (pa_insn_refs_are_delayed): Likewise.
15017 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
15018 for locals "insn", "ninsn".
15019 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
15020 "insn".
15021 (is_cracked_insn): Likewise.
15022 (is_branch_slot_insn): Likewise.
15023 (is_nonpipeline_insn): Likewise.
15024 (insn_terminates_group_p): Likewise.
15025 (insn_must_be_first_in_group): Likewise.
15026 (insn_must_be_last_in_group): Likewise.
15027 (force_new_group): Likewise for param "next_insn".
15028 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
15029 "insn".
15030 (s390_sched_score): Likewise.
15031 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
15032 (rtx sfunc_uses_reg): Likewise for sole param.
15033 * config/sh/sh.c (sh_print_operand): Use insn method of
15034 final_sequence for typesafety.
15035 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
15036 Use insn method of final_sequence for typesafety.
15037 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
15038 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
15039 for param.
15040 (eligible_for_return_delay): Likewise.
15041 (eligible_for_sibcall_delay): Likewise.
15042 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
15043 (eligible_for_return_delay): Likewise.
15044 (eligible_for_sibcall_delay): Likewise.
15045 * config/stormy16/stormy16-protos.h
15046 (xstormy16_output_cbranch_hi): Likewise for final param.
15047 (xstormy16_output_cbranch_si): Likewise.
15048 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
15049 (xstormy16_output_cbranch_si): Likewise.
15050 * config/v850/v850-protos.h (notice_update_cc): Likewise.
15051 * config/v850/v850.c (notice_update_cc): Likewise.
15052
15053 * final.c (get_attr_length_1): Strengthen param "insn" and param
15054 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
15055 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
15056 (get_attr_min_length): Likewise.
15057 (shorten_branches): Likewise for signature of locals "length_fun"
15058 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
15059 from a checked cast and use its methods for clarity and to enable
15060 strengthening local "inner_insn" from rtx to rtx_insn *.
15061 * genattr.c (gen_attr): When writing out the prototypes of the
15062 various generated "get_attr_" functions, strengthen the params of
15063 the non-const functions from rtx to rtx_insn *.
15064 Similarly, strengthen the params of insn_default_length,
15065 insn_min_length, insn_variable_length_p, insn_current_length.
15066 (main): Similarly, strengthen the param of num_delay_slots,
15067 internal_dfa_insn_code, insn_default_latency, bypass_p,
15068 insn_latency, min_issue_delay, print_reservation,
15069 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
15070 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
15071 to hook_int_rtx_insn_unreachable.
15072 * genattrtab.c (write_attr_get): When writing out the generated
15073 "get_attr_" functions, strengthen the param "insn" from rtx to
15074 rtx_insn *, eliminating a checked cast.
15075 (make_automaton_attrs): When writing out prototypes of
15076 "internal_dfa_insn_code_", "insn_default_latency_" functions
15077 and the "internal_dfa_insn_code" and "insn_default_latency"
15078 callbacks, strengthen their params from rtx to rtx_insn *
15079 * genautomata.c (output_internal_insn_code_evaluation): When
15080 writing out code, add a checked cast from rtx to rtx_insn * when
15081 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
15082 (output_dfa_insn_code_func): Strengthen param of generated
15083 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
15084 (output_trans_func): Likewise for generated function
15085 "state_transition".
15086 (output_internal_insn_latency_func): When writing out generated
15087 function "internal_insn_latency", rename params from "insn" and
15088 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
15089 locals "insn" and "insn2" as rtx_insn * with checked casts once
15090 we've proven that we're not dealing with const0_rtx.
15091 (output_insn_latency_func): Strengthen param of generated
15092 function "insn_latency" from rtx to rtx_insn *.
15093 (output_print_reservation_func): Likewise for generated function
15094 "print_reservation".
15095 (output_insn_has_dfa_reservation_p): Likewise for generated
15096 function "insn_has_dfa_reservation_p".
15097 * hooks.c (hook_int_rtx_unreachable): Rename to...
15098 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
15099 from rtx to rtx_insn *.
15100 * hooks.h (hook_int_rtx_unreachable): Likewise.
15101 (extern int hook_int_rtx_insn_unreachable): Likewise.
15102 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
15103 (get_attr_min_length): Likewise.
15104 * recog.c (get_enabled_alternatives): Likewise.
15105 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
15106 * reorg.c (find_end_label): Introduce local rtx "pat" and
15107 strengthen local "insn" from rtx to rtx_insn *.
15108 (redundant_insn): Use insn method of "seq" rather than element for
15109 typesafety; strengthen local "control" from rtx to rtx_insn *.
15110 * resource.c (mark_referenced_resources): Add checked cast to
15111 rtx_insn * within INSN/JUMP_INSN case.
15112 (mark_set_resources): Likewise.
15113 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
15114 rtx to rtx_insn *.
15115
15116 2014-09-15 David Malcolm <dmalcolm@redhat.com>
15117
15118 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
15119 param "label" from rtx to rtx_insn *.
15120 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
15121 and local "op".
15122 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
15123 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
15124 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
15125 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
15126 * final.c (default_label_align_after_barrier_max_skip): Strengthen
15127 param from rtx to rtx_insn *.
15128 (default_loop_align_max_skip): Likewise.
15129 (default_label_align_max_skip): Likewise.
15130 (default_jump_align_max_skip): Likewise.
15131 * target.def (label_align_after_barrier_max_skip): Likewise.
15132 (loop_align_max_skip): Likewise.
15133 (label_align_max_skip): Likewise.
15134 (jump_align_max_skip): Likewise.
15135 * targhooks.h (default_label_align_after_barrier_max_skip):
15136 Likewise.
15137 (default_loop_align_max_skip): Likewise.
15138 (default_label_align_max_skip): Likewise.
15139 (default_jump_align_max_skip): Likewise.
15140
15141 2014-09-15 David Malcolm <dmalcolm@redhat.com>
15142
15143 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
15144 from const_rtx to const rtx_insn *. Update union members from rtx
15145 to rtx_insn *.
15146 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
15147 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
15148 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
15149 strengthen both params from const_rtx to const rtx_insn *.
15150 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
15151 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
15152 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
15153 rtx_insn *.
15154 * target.def (can_follow_jump): Strengthen both params from
15155 const_rtx to const rtx_insn *, and update default implementation
15156 from hook_bool_const_rtx_const_rtx_true to
15157 hook_bool_const_rtx_insn_const_rtx_insn_true.
15158
15159 2014-09-15 David Malcolm <dmalcolm@redhat.com>
15160
15161 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
15162 "insn" from rtx to rtx_insn *.
15163 * sched-int.h (deps_start_bb): Likewise for 2nd param.
15164
15165 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
15166 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15167 Anna Tikhonova <anna.tikhonova@intel.com>
15168 Ilya Tocar <ilya.tocar@intel.com>
15169 Andrey Turetskiy <andrey.turetskiy@intel.com>
15170 Ilya Verbin <ilya.verbin@intel.com>
15171 Kirill Yukhin <kirill.yukhin@intel.com>
15172 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15173
15174 * config/i386/sse.md
15175 (define_insn "vcvtph2ps<mask_name>"): Add masking.
15176 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
15177 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
15178 (define_expand "vcvtps2ph_mask"): New.
15179 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
15180 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
15181 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
15182
15183 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
15184 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15185 Anna Tikhonova <anna.tikhonova@intel.com>
15186 Ilya Tocar <ilya.tocar@intel.com>
15187 Andrey Turetskiy <andrey.turetskiy@intel.com>
15188 Ilya Verbin <ilya.verbin@intel.com>
15189 Kirill Yukhin <kirill.yukhin@intel.com>
15190 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15191
15192 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
15193 New.
15194 (define_mode_iterator VI24_AVX512BW_1): Ditto.
15195 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
15196 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
15197 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
15198 also for TARGET_AVX512VL.
15199 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
15200
15201 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
15202
15203 * doc/install.texi (Options specification): add
15204 --disable-libsanitizer item.
15205
15206 2014-09-14 James Clarke <jrtc27@jrtc27.com>
15207 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15208
15209 PR target/61407
15210 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
15211 and above.
15212 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
15213 kernel version check to avoid incrementing it after every major OS X
15214 release.
15215 (darwin_default_min_version): Avoid static memory buffer.
15216
15217 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
15218
15219 * tree.c (need_assembler_name_p): Store C++ type mangling only
15220 for aggregates.
15221
15222 2014-09-13 Marek Polacek <polacek@redhat.com>
15223
15224 * tree.c (protected_set_expr_location): Don't check whether T is
15225 non-null here.
15226
15227 2014-09-12 DJ Delorie <dj@redhat.com>
15228
15229 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
15230 (extend_and_shift1_hipsi2): Likewise.
15231 (extend_and_shift2_hipsi2): Likewise.
15232
15233 2014-09-12 David Malcolm <dmalcolm@redhat.com>
15234
15235 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
15236 with NULL when dealing with an insn.
15237 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
15238 from rtx to rtx_insn *.
15239 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
15240 const_rtx to const rtx_insn *.
15241 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
15242
15243 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
15244
15245 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
15246 assert.
15247
15248 2014-09-12 Joseph Myers <joseph@codesourcery.com>
15249
15250 * target.def (libgcc_floating_mode_supported_p): New hook.
15251 * targhooks.c (default_libgcc_floating_mode_supported_p): New
15252 function.
15253 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
15254 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
15255 (LIBGCC2_HAS_TF_MODE): Remove.
15256 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
15257 * doc/tm.texi: Regenerate.
15258 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
15259 machine mode.
15260 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
15261 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
15262 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
15263 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
15264 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15265 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
15266 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
15267 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
15268 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
15269 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
15270 function.
15271 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
15272 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15273 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15274 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15275 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15276 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15277 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15278 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
15279 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
15280 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
15281 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15282 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
15283 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
15284 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
15285 Remove.
15286 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
15287 New macro.
15288 (ia64_libgcc_floating_mode_supported_p): New function.
15289 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
15290 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
15291 (IA64_NO_LIBGCC_TFMODE): Define.
15292 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
15293 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
15294 macro.
15295 (pdp11_scalar_mode_supported_p): New function.
15296 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
15297 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
15298
15299 2014-09-12 Richard Biener <rguenther@suse.de>
15300
15301 PR middle-end/63237
15302 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
15303
15304 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
15305
15306 * tree.c (integer_each_onep): New function.
15307 * tree.h (integer_each_onep): Declare it.
15308 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
15309 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
15310 (X & 1) == 0 for vector and complex.
15311
15312 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
15313
15314 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
15315 for A57.
15316 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
15317 cost to spilling from integer to FP registers.
15318
15319 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
15320
15321 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
15322 move handling.
15323 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
15324 are now handled correctly.
15325
15326 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
15327
15328 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
15329 handling of CALLER_SAVE_REGS and POINTER_REGS.
15330
15331 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
15332
15333 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
15334 the number of hard registers.
15335
15336 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
15337 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15338 Anna Tikhonova <anna.tikhonova@intel.com>
15339 Ilya Tocar <ilya.tocar@intel.com>
15340 Andrey Turetskiy <andrey.turetskiy@intel.com>
15341 Ilya Verbin <ilya.verbin@intel.com>
15342 Kirill Yukhin <kirill.yukhin@intel.com>
15343 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15344
15345 * config/i386/sse.md
15346 (define_mode_iterator VI48_AVX512VL): New.
15347 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
15348 "avx512f_vternlog<mode>_maskz" and update mode iterator.
15349 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
15350 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
15351 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
15352 "avx512f_vternlog<mode>_mask" and update mode iterator.
15353 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
15354 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
15355 iterator.
15356 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
15357 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
15358 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
15359 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
15360 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
15361 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
15362
15363 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
15364 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15365 Anna Tikhonova <anna.tikhonova@intel.com>
15366 Ilya Tocar <ilya.tocar@intel.com>
15367 Andrey Turetskiy <andrey.turetskiy@intel.com>
15368 Ilya Verbin <ilya.verbin@intel.com>
15369 Kirill Yukhin <kirill.yukhin@intel.com>
15370 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15371
15372 * config/i386/sse.md (VI128_256): Delete.
15373 (define_mode_iterator VI124_256): New.
15374 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
15375 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
15376 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
15377 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
15378 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
15379 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
15380 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
15381 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
15382 iterator.
15383 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
15384 in presence of AVX-512.
15385
15386 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
15387 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15388 Anna Tikhonova <anna.tikhonova@intel.com>
15389 Ilya Tocar <ilya.tocar@intel.com>
15390 Andrey Turetskiy <andrey.turetskiy@intel.com>
15391 Ilya Verbin <ilya.verbin@intel.com>
15392 Kirill Yukhin <kirill.yukhin@intel.com>
15393 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15394
15395 * config/i386/sse.md
15396 (define_expand "<avx512>_gathersi<mode>"): Rename from
15397 "avx512f_gathersi<mode>".
15398 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
15399 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
15400 (define_expand "<avx512>_gatherdi<mode>"): Rename from
15401 "avx512f_gatherdi<mode>".
15402 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
15403 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
15404 wide versions.
15405 (define_expand "<avx512>_scattersi<mode>"): Rename from
15406 "avx512f_scattersi<mode>".
15407 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
15408 (define_expand "<avx512>_scatterdi<mode>"): Rename from
15409 "avx512f_scatterdi<mode>".
15410 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
15411
15412 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
15413
15414 * ira.h (ira_finish_once): Delete.
15415 * ira-int.h (target_ira_int::~target_ira_int): Declare.
15416 (target_ira_int::free_ira_costs): Likewise.
15417 (target_ira_int::free_register_move_costs): Likewise.
15418 (ira_finish_costs_once): Delete.
15419 * ira.c (free_register_move_costs): Replace with...
15420 (target_ira_int::free_register_move_costs): ...this new function.
15421 (target_ira_int::~target_ira_int): Define.
15422 (ira_init): Call free_register_move_costs as a member function rather
15423 than a global function.
15424 (ira_finish_once): Delete.
15425 * ira-costs.c (free_ira_costs): Replace with...
15426 (target_ira_int::free_ira_costs): ...this new function.
15427 (ira_init_costs): Call free_ira_costs as a member function rather
15428 than a global function.
15429 (ira_finish_costs_once): Delete.
15430 * target-globals.c (target_globals::~target_globals): Call the
15431 target_ira_int destructor.
15432 * toplev.c: Include lra.h.
15433 (finalize): Call lra_finish_once rather than ira_finish_once.
15434
15435 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
15436
15437 * common.opt (flto-odr-type-merging): New flag.
15438 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
15439 (types_same_for_odr): Likewise.
15440 (odr_subtypes_equivalent_p): Likewise.
15441 (add_type_duplicate): Do not walk type variants.
15442 (register_odr_type): New function.
15443 * ipa-utils.h (register_odr_type): Declare.
15444 (odr_type_p): New function.
15445 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
15446 TYPE_DECLs
15447 * doc/invoke.texi (-flto-odr-type-merging): Document.
15448 * tree.c (need_assembler_name_p): Compute ODR names when asked
15449 for it.
15450 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
15451
15452 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
15453
15454 PR target/63228
15455 * config/i386/i386.c (ix86_option_override_internal): Also turn
15456 off OPTION_MASK_ABI_X32 for -m16.
15457
15458 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
15459
15460 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
15461 GPR instead of P.
15462
15463 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
15464
15465 PR target/58757
15466 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
15467 Directly forward to __*_DENORM_MIN__.
15468
15469 2014-09-11 David Malcolm <dmalcolm@redhat.com>
15470
15471 * rtl.h (LABEL_REF_LABEL): New macro.
15472
15473 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
15474 of XEXP (, 0), where we know that we have a LABEL_REF.
15475 * cfgbuild.c (make_edges): Likewise.
15476 (purge_dead_tablejump_edges): Likewise.
15477 * cfgexpand.c (convert_debug_memory_address): Likewise.
15478 * cfgrtl.c (patch_jump_insn): Likewise.
15479 * combine.c (distribute_notes): Likewise.
15480 * cse.c (hash_rtx_cb): Likewise.
15481 (exp_equiv_p): Likewise.
15482 (fold_rtx): Likewise.
15483 (check_for_label_ref): Likewise.
15484 * cselib.c (rtx_equal_for_cselib_1): Likewise.
15485 (cselib_hash_rtx): Likewise.
15486 * emit-rtl.c (mark_label_nuses): Likewise.
15487 * explow.c (convert_memory_address_addr_space): Likewise.
15488 * final.c (output_asm_label): Likewise.
15489 (output_addr_const): Likewise.
15490 * gcse.c (add_label_notes): Likewise.
15491 * genconfig.c (walk_insn_part): Likewise.
15492 * genrecog.c (validate_pattern): Likewise.
15493 * ifcvt.c (cond_exec_get_condition): Likewise.
15494 (noce_emit_store_flag): Likewise.
15495 (noce_get_alt_condition): Likewise.
15496 (noce_get_condition): Likewise.
15497 * jump.c (maybe_propagate_label_ref): Likewise.
15498 (mark_jump_label_1): Likewise.
15499 (redirect_exp_1): Likewise.
15500 (rtx_renumbered_equal_p): Likewise.
15501 * lra-constraints.c (operands_match_p): Likewise.
15502 * reload.c (operands_match_p): Likewise.
15503 (find_reloads): Likewise.
15504 * reload1.c (set_label_offsets): Likewise.
15505 * reorg.c (get_branch_condition): Likewise.
15506 * rtl.c (rtx_equal_p_cb): Likewise.
15507 (rtx_equal_p): Likewise.
15508 * rtlanal.c (reg_mentioned_p): Likewise.
15509 (rtx_referenced_p): Likewise.
15510 (get_condition): Likewise.
15511 * sched-vis.c (print_value): Likewise.
15512 * varasm.c (const_hash_1): Likewise.
15513 (compare_constant): Likewise.
15514 (const_rtx_hash_1): Likewise.
15515 (output_constant_pool_1): Likewise.
15516
15517 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
15518
15519 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
15520 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
15521 instead of minus.
15522 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
15523 cr6_test_for_lt_reverse): Ditto.
15524
15525 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
15526
15527 PR c++/61489
15528 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
15529
15530 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
15531
15532 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
15533 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
15534 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
15535 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
15536 Delete.
15537
15538 (aarch64_fold_builtin): Remove all reinterpret cases.
15539
15540 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
15541
15542 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
15543
15544 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
15545 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
15546 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
15547 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
15548 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
15549 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
15550 aarch64_reinterpretv2df<mode>): Delete.
15551
15552 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
15553
15554 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
15555 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
15556 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
15557 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
15558 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
15559 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
15560 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
15561 vreinterpret_u32_f64): Use cast.
15562
15563 * config/aarch64/iterators.md (VD_RE): Delete.
15564
15565 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
15566
15567 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
15568 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
15569 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
15570 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
15571 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
15572 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
15573 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
15574 Replace inline assembler with __aarch64_vset_lane_any.
15575
15576 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
15577
15578 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
15579 types.
15580 (vmull_high_lane_s32): Likewise.
15581 (vmull_high_lane_u16): Likewise.
15582 (vmull_high_lane_u32): Likewise.
15583
15584 2014-09-11 Jason Merrill <jason@redhat.com>
15585
15586 PR c++/58678
15587 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
15588
15589 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
15590
15591 PR target/63223
15592 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
15593 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
15594 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
15595
15596 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15597 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15598 Anna Tikhonova <anna.tikhonova@intel.com>
15599 Ilya Tocar <ilya.tocar@intel.com>
15600 Andrey Turetskiy <andrey.turetskiy@intel.com>
15601 Ilya Verbin <ilya.verbin@intel.com>
15602 Kirill Yukhin <kirill.yukhin@intel.com>
15603 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15604
15605 * config/i386/sse.md
15606 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
15607 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
15608 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
15609 New.
15610 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
15611 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
15612 iterator.
15613 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
15614 New.
15615 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
15616 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
15617 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
15618 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
15619 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
15620 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
15621 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
15622 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
15623 iterator.
15624 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
15625 New.
15626 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
15627 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
15628 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
15629
15630 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
15631
15632 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
15633 to access removed nodes.
15634
15635 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
15636
15637 PR tree-optimization/63186
15638 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
15639 (mark_nonssa_use): Likewise.
15640 (verify_non_ssa_vars): Verify all header blocks for label
15641 definitions.
15642
15643 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15644 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15645 Anna Tikhonova <anna.tikhonova@intel.com>
15646 Ilya Tocar <ilya.tocar@intel.com>
15647 Andrey Turetskiy <andrey.turetskiy@intel.com>
15648 Ilya Verbin <ilya.verbin@intel.com>
15649 Kirill Yukhin <kirill.yukhin@intel.com>
15650 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15651
15652 * config/i386/sse.md
15653 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
15654 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
15655 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
15656 "<avx2_avx512f>_permvar<mode><mask_name>".
15657 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
15658 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
15659 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
15660 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
15661 Ditto.
15662 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
15663 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
15664 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
15665 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
15666
15667 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
15668
15669 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
15670 V2DF, V4SF, DF, and DI modes.
15671 (vsx_fmav2df2): Likewise.
15672 (vsx_float_fix_<mode>2): Likewise.
15673 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
15674
15675 2014-09-10 Xinliang David Li <davidxl@google.com>
15676
15677 PR target/63209
15678 * config/arm/arm.md (movcond_addsi): Handle case where source
15679 and target operands are the same.
15680
15681 2014-09-10 David Malcolm <dmalcolm@redhat.com>
15682
15683 * final.c (this_is_asm_operands): Strengthen this variable from
15684 rtx to const rtx_insn *.
15685 * output.h (this_is_asm_operands): Likewise.
15686 * rtl-error.c (location_for_asm): Strengthen param "insn" from
15687 const_rtx to const rtx_insn *.
15688 (diagnostic_for_asm): Likewise.
15689 * rtl-error.h (error_for_asm): Likewise.
15690 (warning_for_asm): Likewise.
15691
15692 2014-09-10 David Malcolm <dmalcolm@redhat.com>
15693
15694 * genextract.c (print_header): When writing out insn_extract to
15695 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
15696 * recog.h (insn_extract): Strengthen the param from rtx to
15697 rtx_insn *.
15698
15699 2014-09-10 Mike Stump <mikestump@comcast.net>
15700
15701 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
15702 8.6.1.
15703
15704 2014-09-10 Martin Jambor <mjambor@suse.cz>
15705
15706 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
15707 (analyze): Do not set analyze flag if expand_thunk returns false;.
15708 (create_wrapper): Likewise.
15709 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
15710
15711 2014-09-10 Martin Jambor <mjambor@suse.cz>
15712
15713 PR ipa/61654
15714 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
15715 new decl properly. Analyze the new thunk if it is expanded.
15716
15717 2014-09-10 Andreas Schwab <schwab@suse.de>
15718
15719 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
15720 [USED_FOR_TARGET]: Define.
15721
15722 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
15723
15724 * config/mips/mips.c (mips_secondary_reload_class): Handle
15725 regno < 0 case.
15726
15727 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
15728
15729 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
15730 assignment.
15731
15732 2014-09-10 Jakub Jelinek <jakub@redhat.com>
15733
15734 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
15735 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
15736 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
15737 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
15738 flag_delete_null_pointer_checks for them.
15739 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
15740 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
15741 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
15742 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
15743 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
15744 stmt's iterator.
15745 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
15746 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
15747 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
15748 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
15749 * doc/invoke.texi (-fsanitize=nonnull-attribute,
15750 -fsanitize=returns-nonnull-attribute): Document.
15751
15752 * ubsan.h (struct ubsan_mismatch_data): Removed.
15753 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
15754 * ubsan.c (ubsan_source_location): For unknown locations,
15755 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
15756 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
15757 Allow more than one location and arbitrary extra arguments passed
15758 in ... instead of through MISMATCH pointer.
15759 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
15760 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
15761 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
15762 callers.
15763
15764 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
15765 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15766 Anna Tikhonova <anna.tikhonova@intel.com>
15767 Ilya Tocar <ilya.tocar@intel.com>
15768 Andrey Turetskiy <andrey.turetskiy@intel.com>
15769 Ilya Verbin <ilya.verbin@intel.com>
15770 Kirill Yukhin <kirill.yukhin@intel.com>
15771 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15772
15773 * config/i386/sse.md
15774 (define_mode_iterator VI48F): New.
15775 (define_insn "<avx512>_compress<mode>_mask"): Rename from
15776 "avx512f_compress<mode>_mask" and update mode iterator.
15777 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
15778 "avx512f_compressstore<mode>_mask" and update mode iterator.
15779 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
15780 "avx512f_expand<mode>_maskz" and update mode iterator.
15781 (define_insn "<avx512>_expand<mode>_mask"): Rename from
15782 "avx512f_expand<mode>_mask" and update mode iterator.
15783
15784 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
15785 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15786 Anna Tikhonova <anna.tikhonova@intel.com>
15787 Ilya Tocar <ilya.tocar@intel.com>
15788 Andrey Turetskiy <andrey.turetskiy@intel.com>
15789 Ilya Verbin <ilya.verbin@intel.com>
15790 Kirill Yukhin <kirill.yukhin@intel.com>
15791 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15792
15793 * config/i386/i386.c
15794 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
15795 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
15796 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
15797 avx512dq_rangepv4sf_mask.
15798 * config/i386/sse.md
15799 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
15800 UNSPEC_RANGE.
15801 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
15802 (define_insn "reduces<mode>"): Ditto.
15803 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
15804 Ditto.
15805 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
15806 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
15807 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
15808
15809 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
15810 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15811 Anna Tikhonova <anna.tikhonova@intel.com>
15812 Ilya Tocar <ilya.tocar@intel.com>
15813 Andrey Turetskiy <andrey.turetskiy@intel.com>
15814 Ilya Verbin <ilya.verbin@intel.com>
15815 Kirill Yukhin <kirill.yukhin@intel.com>
15816 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15817
15818 * config/i386/i386.c
15819 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
15820 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
15821 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
15822 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
15823 avx512vl_getmantv2df_mask.
15824 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
15825 avx512f_vgetmantv4sf_round.
15826 * config/i386/sse.md
15827 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
15828 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
15829 mode iterator.
15830 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
15831 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
15832 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
15833 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
15834 iterator..
15835 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
15836 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
15837 update mode iterator.
15838 (define_expand
15839 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
15840 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
15841 mode iterator.
15842 (define_insn
15843 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
15844 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
15845 update mode iterator.
15846 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
15847 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
15848 iterator..
15849 (define_insn
15850 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
15851 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
15852 mode iterator..
15853 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
15854 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
15855 update mode iterator.
15856 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
15857 "avx512f_getmant<mode><round_saeonly_name>".
15858
15859 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
15860
15861 PR ipa/63166
15862 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
15863
15864 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
15865 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15866 Anna Tikhonova <anna.tikhonova@intel.com>
15867 Ilya Tocar <ilya.tocar@intel.com>
15868 Andrey Turetskiy <andrey.turetskiy@intel.com>
15869 Ilya Verbin <ilya.verbin@intel.com>
15870 Kirill Yukhin <kirill.yukhin@intel.com>
15871 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15872
15873 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
15874 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
15875 (define_mode_iterator FMAMODE_AVX512): New.
15876 (define_mode_iterator FMAMODE): Remove conditions.
15877 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
15878 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
15879 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
15880 mode iterator.
15881 (define_mode_iterator FMAMODE_NOVF512): Remove.
15882 (define_insn "*fma_fmadd_<mode>"): Rename from
15883 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
15884 FMAMODE mode iterator.
15885 (define_mode_iterator VF_SF_AVX512VL): New.
15886 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
15887 Use VF_SF_AVX512VL mode iterator.
15888 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
15889 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
15890 iterator.
15891 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
15892 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
15893 iterator.
15894 (define_insn "*fma_fmsub_<mode>"): Rename from
15895 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
15896 FMAMODE mode iterator.
15897 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
15898 Use VF_SF_AVX512VL mode iterator.
15899 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
15900 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
15901 iterator.
15902 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
15903 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
15904 iterator.
15905 (define_insn "*fma_fnmadd_<mode>"): Rename from
15906 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
15907 use FMAMODE mode iterator.
15908 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
15909 Use VF_SF_AVX512VL mode iterator.
15910 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
15911 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
15912 iterator.
15913 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
15914 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
15915 iterator.
15916 (define_insn "*fma_fnmsub_<mode>"): Rename from
15917 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
15918 FMAMODE mode iterator.
15919 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
15920 Use VF_SF_AVX512VL mode iterator.
15921 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
15922 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
15923 iterator.
15924 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
15925 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
15926 iterator.
15927 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
15928 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
15929 use VF_AVX512VL mode iterator.
15930 (define_insn "*fma_fmaddsub_<mode>"): Rename from
15931 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
15932 remove subst usage.
15933 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
15934 Use VF_SF_AVX512VL mode iterator.
15935 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
15936 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
15937 iterator.
15938 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
15939 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
15940 iterator.
15941 (define_insn "*fma_fmsubadd_<mode>"): Rename from
15942 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
15943 remove usage of subst.
15944 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
15945 Use VF_SF_AVX512VL mode iterator.
15946 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
15947 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
15948 iterator.
15949 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
15950 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
15951 iterator.
15952
15953 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
15954
15955 Revert r213751:
15956 * calls.c (precompute_arguments): Check
15957 promoted_for_signed_and_unsigned_p and set the promoted mode.
15958 (promoted_for_signed_and_unsigned_p): New function.
15959 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
15960 and set the promoted mode.
15961 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
15962 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
15963 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
15964
15965 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
15966
15967 * opth-gen.awk: Generate mapping from cpp message reasons to the
15968 options that enable them.
15969 * doc/options.texi (CppReason): Document.
15970
15971 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
15972
15973 * doc/invoke.texi (Wnormalized=): Update.
15974
15975 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
15976
15977 PR target/63195
15978 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
15979 operands. Split off the constant operand alternative to ...
15980 (*bool<mode>3_imm): New.
15981
15982 2014-09-09 David Malcolm <dmalcolm@redhat.com>
15983
15984 * rtl.h (single_set_2): Strengthen first param from const_rtx to
15985 const rtx_insn *, and move prototype to above...
15986 (single_set): ...this. Convert this from a macro to an inline
15987 function, enforcing the requirement that the param is a const
15988 rtx_insn *.
15989 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
15990
15991 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
15992 Strengthen both params from rtx to rtx_insn *.
15993 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
15994 Likewise; introduce locals "producer_set", "consumer_set", using
15995 them in place of "producer" and "consumer" when dealing with SET
15996 rather than insn.
15997 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
15998 when invoking single_set in region guarded by INSN_P.
15999 (avr_out_bitop): Likewise.
16000 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
16001 region guarded by GET_CODE check, using methods to strengthen
16002 local "this_insn" from rtx to rtx_insn *, and for clarity.
16003 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
16004 Strengthen local "insn" from rtx to rtx_insn *.
16005 (define_insn_and_split "xload<mode>_A"): Likewise.
16006 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
16007 "insn".
16008 (find_load): Likewise for return type.
16009 (workaround_speculation): Likewise for both locals named
16010 "load_insn".
16011 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
16012 local "cc0_user".
16013 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
16014 for local "prev".
16015 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
16016 param 2.
16017 * config/h8300/h8300.c (notice_update_cc): Likewise.
16018 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
16019 "insn" and "dep_insn".
16020 (exact_store_load_dependency): Likewise for both params.
16021 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
16022 since this now clashes with inline function. Instead, delay
16023 calling single_set until the point where its needed, and then
16024 assign the result to "compare_set" and rework the conditional that
16025 follows.
16026 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
16027 local "last" from rtx to rtx_insn *.
16028 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
16029 second param.
16030 (mips_store_data_bypass_p): Likewise for both params.
16031 * config/mips/mips.c (mips_load_store_insns): Likewise for second
16032 param.
16033 (mips_store_data_bypass_p): Likewise for both params.
16034 (mips_orphaned_high_part_p): Likewise for param "insn".
16035 * config/mn10300/mn10300.c (extract_bundle): Likewise.
16036 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
16037 Introduce local rtx "insn2_pat".
16038 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
16039 "ninsn".
16040 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
16041 Introduce local rtx "set", using it in place of "insn" for the
16042 result of single_set. This appears to fix a bug, since the call
16043 to find_regno_note on a SET does nothing.
16044 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
16045 params from rtx to rtx_insn *.
16046 (set_to_load_agen): Likewise.
16047 * config/s390/s390.c (s390_label_align): Likewise for local
16048 "prev_insn". Introduce new rtx locals "set" and "src", using
16049 them in place of "prev_insn" for the results of single_set
16050 and SET_SRC respectively.
16051 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
16052 Introduce new rtx local "set" using in place of "jump" for the
16053 result of single_set. Use SET_SRC (set) rather than plain
16054 XEXP (set, 1).
16055 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
16056 rtx to rtx_insn *.
16057 (noncall_uses_reg): Likewise.
16058 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
16059 guarded by GET_CODE check, using its methods for clarity, and to
16060 enable strengthening local "this_insn" from rtx to rtx_insn *.
16061 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
16062 "insn" from rtx to rtx_insn *.
16063 (define_expand "umulhisi3"): Likewise.
16064 (define_expand "smulsi3_highpart"): Likewise.
16065 (define_expand "umulsi3_highpart"): Likewise.
16066 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
16067 local "after". Replace GET_CODE check with a dyn_cast,
16068 introducing new local rtx_sequence * "seq", using insn method for
16069 typesafety.
16070
16071 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
16072 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
16073 place of "insn" once we're dealing with patterns rather than the
16074 input insn.
16075 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
16076 (scan_trace): Likewise for local "elt", updating lookups within
16077 sequence to use insn method rather than element method.
16078 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
16079 to rtx_insn *.
16080 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
16081 * ifcvt.c (noce_try_abs): Likewise for local "insn".
16082 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
16083 invoking single_set.
16084 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
16085 "insn" from rtx to rtx_insn *.
16086 (skip_usage_debug_insns): Likewise for return type, adding a
16087 checked cast.
16088 (check_secondary_memory_needed_p): Likewise for local "insn".
16089 (inherit_reload_reg): Likewise.
16090 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
16091 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
16092 checked casts.
16093 (store_data_bypass_p): Likewise for both params.
16094 (if_test_bypass_p): Likewise.
16095 * recog.h (store_data_bypass_p): Likewise for both params.
16096 (if_test_bypass_p): Likewise.
16097 * reload.c (find_equiv_reg): Likewise for local "where".
16098 * reorg.c (delete_jump): Likewise for param "insn".
16099 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
16100 to const rtx_insn *.
16101 * store-motion.c (replace_store_insn): Likewise for param "del".
16102 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
16103 and use its methods for clarity, and to strengthen local "del"
16104 from rtx to rtx_insn *.
16105 (build_store_vectors): Use insn method of "st" when calling
16106 replace_store_insn for typesafety and clarity.
16107
16108 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16109
16110 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
16111 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
16112 on how to make it legal in future.
16113
16114 2014-09-09 David Malcolm <dmalcolm@redhat.com>
16115
16116 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
16117 to rtx_insn *.
16118 (restinsn): Likewise.
16119 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
16120 Likewise for param.
16121 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
16122 Likewise.
16123 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
16124 first param.
16125 (arc_hazard): Likewise for both params.
16126 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
16127 checked casts to rtx_sequence * and uses of the insn method for
16128 type-safety.
16129 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
16130 (arc_adjust_insn_length): Likewise for param "insn".
16131 (struct insn_length_parameters_s): Likewise for first param of
16132 "get_variants" callback field.
16133 (arc_get_insn_variants): Likewise for first param and local
16134 "inner". Replace a check of GET_CODE with a dyn_cast to
16135 rtx_sequence *, using methods for type-safety and clarity.
16136 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
16137 rtx_sequence * and uses of the insn method for type-safety when
16138 invoking arc_adjust_insn_length.
16139 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
16140 for param.
16141 (arm_address_offset_is_imm): Likewise.
16142 (struct tune_params): Likewise for params 1 and 3 of the
16143 "sched_adjust_cost" callback field.
16144 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
16145 params 1 and 3 ("insn" and "dep").
16146 (xscale_sched_adjust_cost): Likewise.
16147 (fa726te_sched_adjust_cost): Likewise.
16148 (cortexa7_older_only): Likewise for param "insn".
16149 (cortexa7_younger): Likewise.
16150 (arm_attr_length_move_neon): Likewise.
16151 (arm_address_offset_is_imm): Likewise.
16152 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
16153 * config/avr/avr.c (avr_notice_update_cc): Likewise.
16154 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
16155 (workaround_speculation): Likewise for local "last_condjump".
16156 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
16157 (shadow_or_blockage_p): Likewise.
16158 (get_unit_reqs): Likewise.
16159 (get_unit_operand_masks): Likewise.
16160 (c6x_registers_update): Likewise.
16161 (returning_call_p): Likewise.
16162 (can_use_callp): Likewise.
16163 (convert_to_callp): Likewise.
16164 (find_last_same_clock): Likwise for local "t".
16165 (reorg_split_calls): Likewise for local "shadow".
16166 (hwloop_pattern_reg): Likewise for param "insn".
16167 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
16168 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
16169 (frv_extract_membar): Likewise.
16170 (frv_optimize_membar_local): Strengthen param "last_membar" from
16171 rtx * to rtx_insn **.
16172 (frv_optimize_membar_global): Strengthen param "membar" from rtx
16173 to rtx_insn *.
16174 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
16175 to rtx_insn **.
16176 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
16177 both params from rtx to rtx_insn *.
16178 (ia64_ld_address_bypass_p): Likewise.
16179 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
16180 "insn".
16181 (ia64_safe_type): Likewise.
16182 (group_barrier_needed): Likewise.
16183 (safe_group_barrier_needed): Likewise.
16184 (ia64_single_set): Likewise.
16185 (is_load_p): Likewise.
16186 (record_memory_reference): Likewise.
16187 (get_mode_no_for_insn): Likewise.
16188 (important_for_bundling_p): Likewise.
16189 (unknown_for_bundling_p): Likewise.
16190 (ia64_st_address_bypass_p): Likewise for both params.
16191 (ia64_ld_address_bypass_p): Likewise.
16192 (expand_vselect): Introduce new local rtx_insn * "insn", using it
16193 in place of rtx "x" after the emit_insn call.
16194 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
16195 Strengthen param from rtx to rtx_insn *.
16196 (ix86_agi_dependent): Likewise for both params.
16197 (ix86_attr_length_immediate_default): Likewise for param 1.
16198 (ix86_attr_length_address_default): Likewise for param.
16199 (ix86_attr_length_vex_default): Likewise for param 1.
16200 * config/i386/i386.c (ix86_attr_length_immediate_default):
16201 Likewise for param "insn".
16202 (ix86_attr_length_address_default): Likewise.
16203 (ix86_attr_length_vex_default): Likewise.
16204 (ix86_agi_dependent): Likewise for both params.
16205 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
16206 (vselect_insn): Likewise for this variable.
16207 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
16208 for param 1.
16209 (m68k_sched_attr_opy_type): Likewise.
16210 * config/m68k/m68k.c (sched_get_operand): Likewise.
16211 (sched_attr_op_type): Likewise.
16212 (m68k_sched_attr_opx_type): Likewise.
16213 (m68k_sched_attr_opy_type): Likewise.
16214 (sched_get_reg_operand): Likewise.
16215 (sched_get_mem_operand): Likewise.
16216 (m68k_sched_address_bypass_p): Likewise for both params.
16217 (sched_get_indexed_address_scale): Likewise.
16218 (m68k_sched_indexed_address_bypass_p): Likewise.
16219 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
16220 (m68k_sched_indexed_address_bypass_p): Likewise.
16221 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
16222 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
16223 removing another.
16224 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
16225 params from rtx to rtx_insn *.
16226 (mips_fmadd_bypass): Likewise.
16227 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
16228 (mips_linked_madd_p): Likewise.
16229 (mips_macc_chains_last_hilo): Likewise for this variable.
16230 (mips_macc_chains_record): Likewise for param.
16231 (vr4130_last_insn): Likewise for this variable.
16232 (vr4130_swap_insns_p): Likewise for both params.
16233 (mips_ls2_variable_issue): Likewise for param.
16234 (mips_need_noat_wrapper_p): Likewise for param "insn".
16235 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
16236 in place of "x" after the emit_insn.
16237 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
16238 params from rtx to rtx_insn *.
16239 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
16240 (pa_combine_instructions): Introduce local "par" for result of
16241 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
16242 to make_insn_raw.
16243 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
16244 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
16245 (rl78_alloc_physical_registers_op1): Likewise.
16246 (rl78_alloc_physical_registers_op2): Likewise.
16247 (rl78_alloc_physical_registers_ro1): Likewise.
16248 (rl78_alloc_physical_registers_cmp): Likewise.
16249 (rl78_alloc_physical_registers_umul): Likewise.
16250 (rl78_alloc_address_registers_macax): Likewise.
16251 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
16252 * config/s390/predicates.md (execute_operation): Likewise for
16253 local "insn".
16254 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
16255 params.
16256 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
16257 (addr_generation_dependency_p): Likewise for param "insn".
16258 (s390_agen_dep_p): Likewise for both params.
16259 (s390_fpload_toreg): Likewise for param "insn".
16260 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
16261 * config/sh/sh.c (sh_loop_align): Likewise for param and local
16262 "next".
16263 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
16264 * config/sh/sh_treg_combine.cc
16265 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
16266 and local "i".
16267 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
16268 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
16269 "and_insn", "load", "shift".
16270 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
16271 "insn".
16272 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
16273 for XEXP (note, 0) of the REG_CC_SETTER note.
16274 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
16275 rtx_insn *, eliminating a checked cast made redundant by this.
16276 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
16277 to rtx_insn *.
16278 * genattr.c (main): When writing out the prototype to
16279 const_num_delay_slots, strengthen the param from rtx to
16280 rtx_insn *.
16281 * genattrtab.c (write_const_num_delay_slots): Likewise when
16282 writing out the implementation of const_num_delay_slots.
16283 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
16284 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
16285 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
16286 favor of new rtx locals "src" and "set" and new local rtx_insn *
16287 "insn" and "seq".
16288 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
16289 to rtx_insn *.
16290 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
16291 locals "cond", "if_then_else", "set" and new rtx_insn * locals
16292 "insn" and "seq".
16293 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
16294 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
16295 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
16296 the top-level scope, replacing with new more tightly-scoped rtx
16297 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
16298 "new_insn", "copy_of_insn_b", and make local rtx "set" more
16299 tightly-scoped.
16300 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
16301 rtx_insn *.
16302 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
16303 "move_insn".
16304 (ira_setup_alts): Likewise for param "insn".
16305 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
16306 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
16307 and an rtx_insn *.
16308 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
16309 new more-tightly scoped rtx locals "add3_insn", "insn",
16310 "add2_insn" and rtx_insn * "move_insn".
16311 * postreload-gcse.c (eliminate_partially_redundant_load): Add
16312 checked cast on result of gen_move_insn when invoking
16313 extract_insn.
16314 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
16315 rtx_insn *.
16316 (verify_changes): Add a checked cast on "object" when invoking
16317 insn_invalid_p.
16318 (extract_insn_cached): Strengthen param "insn" from rtx to
16319 rtx_insn *.
16320 (extract_constrain_insn_cached): Likewise.
16321 (extract_insn): Likewise.
16322 * recog.h (insn_invalid_p): Likewise for param 1.
16323 (recog_memoized): Likewise for param.
16324 (extract_insn): Likewise.
16325 (extract_constrain_insn_cached): Likewise.
16326 (extract_insn_cached): Likewise.
16327 * reload.c (can_reload_into): Likewise for local "test_insn".
16328 * reload.h (cleanup_subreg_operands): Likewise for param.
16329 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
16330 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
16331 result of emit_insn. Remove a checked cast made redundant by this
16332 change.
16333 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
16334 rtx to rtx_insn *.
16335 * sel-sched.c (get_reg_class): Likewise.
16336
16337 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
16338 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16339
16340 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
16341 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
16342 Define.
16343 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
16344
16345 2014-09-09 David Malcolm <dmalcolm@redhat.com>
16346
16347 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
16348 const rtx_insn *, and from rtx to rtx_insn * for the other
16349 overloaded variant.
16350 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
16351 INSN_LOCATION, since we know INSN_P holds.
16352 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
16353 (insn_file): Likewise.
16354 (insn_scope): Likewise.
16355 (insn_location): Likewise.
16356
16357 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
16358 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
16359 for the result of gen_load_const_gp.
16360 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
16361 param from rtx to rtx_insn *.
16362 * config/rs6000/rs6000.c (output_call): Likewise.
16363 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
16364 introducing a checked cast to rtx_sequence * and use of the insn
16365 method.
16366 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
16367 from rtx to rtx_insn *.
16368 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
16369 (insn_line): Likewise.
16370 (insn_file): Likewise.
16371 (insn_location): Likewise.
16372 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
16373 from rtx to rtx_insn *.
16374 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
16375 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
16376 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
16377 via a checked cast.
16378 * reorg.c (relax_delay_slots): Strengthen locals named "after"
16379 from rtx to rtx_insn *; use methods of "pat" for type-safety.
16380
16381 2014-09-09 David Malcolm <dmalcolm@redhat.com>
16382
16383 * combine.c (try_combine): Eliminate checked cast on result of
16384 gen_rtx_INSN.
16385 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
16386 autogenerated one by strengthening the return type and params 2 and 3
16387 from rtx to rtx_insn *, and by naming the params.
16388 * gengenrtl.c (special_rtx): Add INSN to those that are
16389 special-cased.
16390 * rtl.h (gen_rtx_INSN): New prototype.
16391
16392 2014-09-09 David Malcolm <dmalcolm@redhat.com>
16393
16394 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
16395 than NULL_RTX.
16396 (no_equiv): Likewise.
16397 (update_equiv_regs): Likewise.
16398 (setup_reg_equiv): Likewise. Strengthen locals "elem",
16399 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
16400 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
16401 clarity.
16402 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
16403 from rtx to rtx_insn_list *.
16404 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
16405 rtx_insn_list * and use methods for clarity and typesafety.
16406 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
16407 "list".
16408 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
16409 redundant check on INSN_P (insns): this cannot hold, as "insns" is
16410 an INSN_LIST, not an insn.
16411 (reverse_equiv_p): Strengthen local "insns" from rtx to
16412 rtx_insn_list * and use methods for clarity and typesafety.
16413 (contains_reloaded_insn_p): Likewise for local "list".
16414
16415 2014-09-09 Jiong Wang <jiong.wang@arm.com>
16416
16417 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
16418 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
16419 (arm_builtin_vectorized_function): Likewise.
16420 * config/arm/arm_neon_builtins.def: New macro for copysignf.
16421 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
16422
16423 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
16424
16425 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
16426 * builtins.h (default_target_builtins): Likewise.
16427 * gcse.h (default_target_gcse): Likewise.
16428 * target-globals.h (target_globals): Add a destructor. Convert
16429 void-pointer fields back to their real type and change from
16430 GTY((atomic)) to GTY((skip)).
16431 (restore_target_globals): Remove casts accordingly.
16432 * target-globals.c (save_target_globals): Use XCNEW rather than
16433 ggc_internal_cleared_alloc to allocate non-GC structures.
16434 Use ggc_cleared_alloc to allocate the target_globals structure
16435 itself.
16436 (target_globals::~target_globals): Define.
16437
16438 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16439
16440 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
16441 mnemonic instead of fldmfdd.
16442 * config/arm/arm.c (vfp_output_fstmd): Rename to...
16443 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
16444 Output vpush when address register is SP.
16445 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
16446 (vfp_output_vstmd): ... This.
16447 * config/arm/vfp.md (push_multi_vfp): Update call to
16448 vfp_output_vstmd.
16449
16450 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16451
16452 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
16453
16454 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16455
16456 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
16457 (*sqrtdf2_vfp): Likewise.
16458 (*cmpsf_vfp): Likewise.
16459 (*cmpsf_trap_vfp): Likewise.
16460 (*cmpdf_vfp): Likewise.
16461 (*cmpdf_trap_vfp): Likewise.
16462
16463 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16464
16465 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
16466 (*truncdfsf2_vfp): Likewise.
16467 (*truncsisf2_vfp): Likewise.
16468 (*truncsidf2_vfp): Likewise.
16469 (fixuns_truncsfsi2): Likewise.
16470 (fixuns_truncdfsi2): Likewise.
16471 (*floatsisf2_vfp): Likewise.
16472 (*floatsidf2_vfp): Likewise.
16473 (floatunssisf2): Likewise.
16474 (floatunssidf2): Likewise.
16475
16476 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16477
16478 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
16479 (*muldf3_vfp): Likewise.
16480 (*mulsf3negsf_vfp): Likewise.
16481 (*muldf3negdf_vfp): Likewise.
16482 (*mulsf3addsf_vfp): Likewise.
16483 (*muldf3adddf_vfp): Likewise.
16484 (*mulsf3subsf_vfp): Likewise.
16485 (*muldf3subdf_vfp): Likewise.
16486 (*mulsf3negsfaddsf_vfp): Likewise.
16487 (*fmuldf3negdfadddf_vfp): Likewise.
16488 (*mulsf3negsfsubsf_vfp): Likewise.
16489 (*muldf3negdfsubdf_vfp): Likewise.
16490
16491 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16492
16493 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
16494 (*absdf2_vfp): Likewise.
16495 (*negsf2_vfp): Likewise.
16496 (*negdf2_vfp): Likewise.
16497 (*addsf3_vfp): Likewise.
16498 (*adddf3_vfp): Likewise.
16499 (*subsf3_vfp): Likewise.
16500 (*subdf3_vfp): Likewise.
16501 (*divsf3_vfp): Likewise.
16502 (*divdf3_vfp): Likewise.
16503
16504 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16505
16506 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
16507 multiple.
16508 (arm_print_operand): Don't convert real values to decimal
16509 representation in default case.
16510 (fp_immediate_constant): Delete.
16511 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
16512 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
16513 syntax.
16514 (*thumb2_movsi_vfp): Likewise.
16515 (*movdi_vfp): Likewise.
16516 (*movdi_vfp_cortexa8): Likewise.
16517 (*movhf_vfp_neon): Likewise.
16518 (*movhf_vfp): Likewise.
16519 (*movsf_vfp): Likewise.
16520 (*thumb2_movsf_vfp): Likewise.
16521 (*movdf_vfp): Likewise.
16522 (*thumb2_movdf_vfp): Likewise.
16523 (*movsfcc_vfp): Likewise.
16524 (*thumb2_movsfcc_vfp): Likewise.
16525 (*movdfcc_vfp): Likewise.
16526 (*thumb2_movdfcc_vfp): Likewise.
16527
16528 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
16529
16530 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
16531 (-mtune): Likewise.
16532 (-mcpu): Likewise.
16533
16534 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16535
16536 PR target/61749
16537 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
16538 Use qualifier_immediate for last operand. Rename to...
16539 (aarch64_types_ternop_lane_qualifiers): ... This.
16540 (TYPES_QUADOP): Rename to...
16541 (TYPES_TERNOP_LANE): ... This.
16542 (aarch64_simd_expand_args): Return const0_rtx when encountering user
16543 error. Change return of 0 to return of NULL_RTX.
16544 (aarch64_crc32_expand_builtin): Likewise.
16545 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
16546 ICE when expanding unknown builtin.
16547 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
16548 TERNOP_LANE qualifiers.
16549 (sqdmlsl_lane): Likewise.
16550 (sqdmlal_laneq): Likewise.
16551 (sqdmlsl_laneq): Likewise.
16552 (sqdmlal2_lane): Likewise.
16553 (sqdmlsl2_lane): Likewise.
16554 (sqdmlal2_laneq): Likewise.
16555 (sqdmlsl2_laneq): Likewise.
16556
16557 2014-09-09 Nick Clifton <nickc@redhat.com>
16558
16559 * doc/invoke.texi (Optimization Options): Add missing @gol to the
16560 end of a line.
16561 (S/390 and zSeries Options): Remove superfluous word from the
16562 description of the -mhotpatch option.
16563
16564 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
16565
16566 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
16567 * ira.c: #include "shrink-wrap.h"
16568 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
16569 * ifcvt.c: #include "shrink-wrap.h"
16570 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
16571
16572 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
16573
16574 * common/config/picochip/picochip-common.c: Remove.
16575 * config.gcc: Remove support for picochip.
16576 * config/picochip/constraints.md: Remove.
16577 * config/picochip/dfa_space.md: Remove.
16578 * config/picochip/dfa_speed.md: Remove.
16579 * config/picochip/picochip-protos.h: Remove.
16580 * config/picochip/picochip.c: Remove.
16581 * config/picochip/picochip.h: Remove.
16582 * config/picochip/picochip.md: Remove.
16583 * config/picochip/picochip.opt: Remove.
16584 * config/picochip/predicates.md: Remove.
16585 * config/picochip/t-picochip: Remove.
16586 * doc/md.texi: Don't document picochi.
16587
16588 2014-09-08 David Malcolm <dmalcolm@redhat.com>
16589
16590 * basic-block.h (control_flow_insn_p): Strengthen param from
16591 const_rtx to const rtx_insn *.
16592 * cfgbuild.c (control_flow_insn_p): Likewise.
16593
16594 2014-09-08 David Malcolm <dmalcolm@redhat.com>
16595
16596 * gcse.c (modify_mem_list): Strengthen this variable from
16597 vec<rtx> * to vec<rtx_insn *> *.
16598 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
16599 vec<rtx_insn *>.
16600 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
16601 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
16602 (record_last_mem_set_info): Strengthen param "insn" from rtx to
16603 rtx_insn *.
16604 (record_last_set_info): Likewise for local "last_set_insn".
16605
16606 2014-09-08 DJ Delorie <dj@redhat.com>
16607
16608 * doc/invoke.texi (MSP430 Options): Add -minrt.
16609
16610 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16611
16612 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
16613 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
16614 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
16615 handling SH_SPLAT.
16616 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
16617 of extracted lane.
16618 (adjust_splat): New function.
16619 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
16620 (dump_swap_insn_table): Add case for SH_SPLAT.
16621
16622 2014-09-08 Richard Biener <rguenther@suse.de>
16623
16624 PR ipa/63196
16625 * tree-inline.c (copy_loops): The source loop header should
16626 always be non-NULL.
16627 (tree_function_versioning): If loops need fixup after removing
16628 unreachable blocks fix them.
16629 * omp-low.c (simd_clone_adjust): Do not add incr block to
16630 loop under construction.
16631
16632 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
16633
16634 * config/aarch64/aarch64-builtins.c
16635 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
16636
16637 2014-09-08 Joseph Myers <joseph@codesourcery.com>
16638
16639 * config/i386/cygming.h (TF_SIZE): Remove.
16640 * config/i386/darwin.h (TF_SIZE): Remove.
16641 * config/i386/dragonfly.h (TF_SIZE): Remove.
16642 * config/i386/freebsd.h (TF_SIZE): Remove.
16643 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
16644 * config/i386/openbsdelf.h (TF_SIZE): Remove.
16645 * config/i386/sol2.h (TF_SIZE): Remove.
16646 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
16647 * config/ia64/linux.h (TF_SIZE): Remove.
16648 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
16649 * doc/tm.texi: Regenerate.
16650 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
16651
16652 2014-09-08 Joseph Myers <joseph@codesourcery.com>
16653
16654 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
16655 Remove.
16656 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
16657 Remove.
16658 * doc/tm.texi: Regenerate.
16659 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
16660 Poison.
16661 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
16662 * config/cris/cris.h (__make_dp): Remove.
16663
16664 2014-09-08 Richard Biener <rguenther@suse.de>
16665
16666 PR bootstrap/63204
16667 * cfgloop.c (mark_loop_for_removal): Track former header
16668 unconditionally.
16669 * cfgloop.h (struct loop): Add former_header member unconditionally.
16670 * loop-init.c (fix_loop_structure): Enable bogus loop removal
16671 diagnostic unconditionally.
16672
16673 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
16674
16675 PR target/63190
16676 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
16677 constraint for operand0 and remove write only modifier from operand3.
16678
16679 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
16680
16681 PR rtl-optimization/62208
16682 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
16683 rather than const0_rtx in eq/ne-xor simplifications.
16684
16685 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
16686
16687 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
16688 (arc_output_mi_thunk): Likewise.
16689
16690 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
16691 arguments to silence bogus warning.
16692
16693 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
16694
16695 PR middle-end/63171
16696 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
16697
16698 2014-09-06 Tom de Vries <tom@codesourcery.com>
16699
16700 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
16701 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
16702 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16703
16704 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
16705
16706 PR target/63188
16707 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
16708 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
16709
16710 2014-09-05 Easwaran Raman <eraman@google.com>
16711
16712 PR rtl-optimization/62146
16713 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
16714 hoisted instruction unconditional.
16715
16716 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
16717
16718 PR target/63187
16719 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
16720 Do not allow any_mask_operand for operands[2].
16721 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
16722
16723 2014-09-05 David Malcolm <dmalcolm@redhat.com>
16724
16725 * config/arc/arc.c (arc_print_operand): Use insn method of
16726 final_sequence for type-safety.
16727 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
16728 "insn" from rtx to rtx_insn *.
16729 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
16730 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
16731 Likewise for locals "branch", "label".
16732 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
16733 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
16734 (same_cmp_following_p): Likewise for locals "i2", "i3".
16735 * config/sh/sh_optimize_sett_clrt.cc
16736 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
16737 param "cbranch_insn".
16738 * function.c (convert_jumps_to_returns): Likewis for local "jump".
16739 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
16740 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
16741 const rtx_insn *.
16742 (condjump_p): Likewise.
16743 (condjump_in_parallel_p): Likewise.
16744 (pc_set): Likewise.
16745 (any_uncondjump_p): Likewise.
16746 (any_condjump_p): Likewise.
16747 (condjump_label): Likewise.
16748 (returnjump_p): Strengthen param "insn" from rtx to
16749 const rtx_insn *.
16750 (onlyjump_p): Strengthen param "insn" from const_rtx to
16751 const rtx_insn *.
16752 (jump_to_label_p): Likewise.
16753 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
16754 (invert_jump): Likewise.
16755 * reorg.c (simplejump_or_return_p): Add checked cast when calling
16756 simplejump_p.
16757 (get_jump_flags): Strengthen param "insn" from rtx to
16758 const rtx_insn *.
16759 (get_branch_condition): Likewise.
16760 (condition_dominates_p): Likewise.
16761 (make_return_insns): Move declaration of local "pat" earlier, to
16762 after we've handled NONJUMP_INSN_P and non-sequences, using its
16763 methods to simplify the code and for type-safety.
16764 * rtl.h (find_constant_src): Strengthen param from const_rtx to
16765 const rtx_insn *.
16766 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
16767 (condjump_p): Strengthen param from const_rtx to
16768 const rtx_insn *.
16769 (any_condjump_p): Likewise.
16770 (any_uncondjump_p): Likewise.
16771 (pc_set): Likewise.
16772 (condjump_label): Likewise.
16773 (simplejump_p): Likewise.
16774 (returnjump_p): Likewise.
16775 (onlyjump_p): Likewise.
16776 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
16777 (invert_jump): Likewise.
16778 (condjump_in_parallel_p): Strengthen param from const_rtx to
16779 const rtx_insn *.
16780 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
16781 to const rtx_insn *.
16782 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
16783 to const rtx_insn *.
16784 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
16785
16786 2014-09-05 David Malcolm <dmalcolm@redhat.com>
16787
16788 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
16789 above the conditional, and convert the check on GET_CODE to a
16790 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
16791 the conditional. Simplify the conditional by using methods of
16792 "trial_seq".
16793
16794 2014-09-05 David Malcolm <dmalcolm@redhat.com>
16795
16796 * haifa-sched.c (check_clobbered_conditions): Strengthen local
16797 "link" from rtx to rtx_insn_list *, and use its methods for
16798 clarity and type-safety.
16799 (toggle_cancelled_flags): Likewise.
16800 (restore_last_backtrack_point): Likewise.
16801 (queue_to_ready): Use insn method of "link" in one place.
16802 (schedule_block): Strengthen local "link" from rtx to
16803 rtx_insn_list *, and use its methods for clarity and type-safety.
16804
16805 2014-09-05 David Malcolm <dmalcolm@redhat.com>
16806
16807 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
16808 param "insn" from const_rtx to const rtx_insn *.
16809 (sched_get_reverse_condition_uncached): Likewise.
16810 (sched_get_condition_with_rev): Likewise.
16811 (sched_has_condition_p): Likewise.
16812 (sched_insns_conditions_mutex_p): Likewise for both params.
16813 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
16814 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
16815 (setup_insn_reg_uses): Move local "list" to be more tightly
16816 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
16817 its methods for clarity and type-safety.
16818 (sched_analyze_1): Strengthen local "pending" from rtx to
16819 rtx_insn_list *, and local "pending_mem" from rtx to
16820 rtx_expr_list *. Use methods of each for clarity and type-safety.
16821 (sched_analyze_2): Likewise.
16822 (sched_analyze_insn): Likewise.
16823
16824 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
16825 param from const_rtx to const rtx_insn *.
16826 (sched_insns_conditions_mutex_p): Likewise for both params.
16827 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
16828 param.
16829
16830 * system.h (CONST_CAST_RTX_INSN): New macro.
16831
16832 2014-09-05 David Malcolm <dmalcolm@redhat.com>
16833
16834 * recog.c (peep2_attempt): Strengthen return type from rtx to
16835 rtx_insn *.
16836 (peep2_update_life): Likewise for params "last", "prev", removing
16837 a checked cast made redundant by this.
16838 (peephole2_optimize): Likewise for local "last".
16839
16840 2014-09-05 David Malcolm <dmalcolm@redhat.com>
16841
16842 * basic-block.h (set_block_for_insn): Eliminate this macro in
16843 favor of...
16844 * rtl.h (set_block_for_insn): New inline function, imposing the
16845 requirement that the "insn" param is an rtx_insn *.
16846
16847 2014-09-05 David Malcolm <dmalcolm@redhat.com>
16848
16849 * caller-save.c (setup_save_areas): Strengthen local "insn" from
16850 rtx to rtx_insn *.
16851 * final.c (get_call_reg_set_usage): Likewise for first param,
16852 eliminating a checked cast.
16853 * regs.h (get_call_reg_set_usage): Likewise for first param.
16854 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
16855 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
16856 cast, replacing references to "x" with "call_insn" where
16857 appropriate.
16858 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
16859 rtx_insn *, adding a checked cast.
16860
16861 2014-09-05 David Malcolm <dmalcolm@redhat.com>
16862
16863 * output.h (final_scan_insn): Strengthen first param from rtx to
16864 rtx_insn *.
16865
16866 * final.c (final_scan_insn): Likewise, renaming it back from
16867 "uncast_insn" to "insn", eliminating the checked cast.
16868
16869 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
16870 "vec" with an rtx_sequence * "seq", taking a copy of
16871 "final_sequence", and using methods of "seq" for clarity, and for
16872 type-safety in the calls to final_scan_insn.
16873 * config/mips/mips.c (mips_output_conditional_branch): Use methods
16874 of "final_sequence" for clarity, and for type-safety in the call to
16875 final_scan_insn.
16876 * config/sh/sh.c (print_slot): Strengthen param from rtx to
16877 rtx_sequence * and rename from "insn" to "seq".
16878
16879 2014-09-05 David Malcolm <dmalcolm@redhat.com>
16880
16881 * jump.c (delete_related_insns): Introduce a new local "table" by
16882 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
16883 get_labels method of "table" to simplify access to the labels in
16884 the jump table.
16885
16886 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16887
16888 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
16889 f_minmaxs, f_minmaxd types.
16890
16891 2014-09-05 Richard Biener <rguenther@suse.de>
16892
16893 * cfgloop.c (mark_loop_for_removal): Record former header
16894 when ENABLE_CHECKING.
16895 * cfgloop.h (strut loop): Add former_header member when
16896 ENABLE_CHECKING.
16897 * loop-init.c (fix_loop_structure): Sanity check loops
16898 marked for removal if they re-appeared.
16899
16900 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
16901
16902 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
16903 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
16904
16905 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
16906 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
16907 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
16908 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
16909 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
16910 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
16911 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
16912 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
16913 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
16914 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
16915 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
16916 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
16917 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
16918 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
16919 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
16920 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
16921 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
16922 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
16923 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
16924 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
16925 with int{32,16,8}_t.
16926
16927 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
16928
16929 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
16930 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
16931 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
16932 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
16933 Remove temporary __asm__ and reimplement.
16934
16935 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
16936
16937 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
16938 handling cmge, cmgt, cmeq, cmtst.
16939
16940 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
16941 cmlt, cmgeu, cmgtu, cmtst): Remove.
16942
16943 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
16944 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
16945 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
16946 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
16947
16948 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
16949
16950 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
16951 TYPES_TST): Define.
16952 (aarch64_fold_builtin): Update pattern for cmtst.
16953
16954 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
16955 Declare.
16956
16957 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
16958
16959 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
16960 Switch operands, separate out more cases, refactor.
16961
16962 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
16963
16964 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
16965 argument; rename old version to...
16966 (aarch64_const_vec_all_same_in_range_p): ...this.
16967 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
16968
16969 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
16970
16971 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
16972
16973 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
16974 Remove qualifier_const_pointer, update comment.
16975
16976 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
16977
16978 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
16979
16980 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
16981
16982 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
16983 varargs with pointer parameter.
16984 (aarch64_simd_expand_builtin): pass pointer into previous.
16985
16986 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16987
16988 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
16989 alus_ext.
16990
16991 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
16992
16993 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
16994 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
16995 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
16996 Replace temporary asm with call to builtin.
16997 (vrbit_p8, vrbitq_p8): New functions.
16998
16999 2014-09-05 Richard Biener <rguenther@suse.de>
17000
17001 * cfgloop.c (mark_loop_for_removal): New function.
17002 * cfgloop.h (mark_loop_for_removal): Declare.
17003 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
17004 (merge_blocks): Likewise.
17005 (duplicate_block): Likewise.
17006 * except.c (sjlj_emit_dispatch_table): Likewise.
17007 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
17008 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
17009 (thread_through_loop_header): Likewise.
17010
17011 2014-09-05 Richard Biener <rguenther@suse.de>
17012
17013 PR middle-end/63148
17014 * fold-const.c (try_move_mult_to_index): Remove.
17015 (fold_binary_loc): Do not call it.
17016 * tree-data-ref.c (dr_analyze_indices): Strip conversions
17017 from the base object again.
17018
17019 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
17020
17021 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
17022 DImode.
17023
17024 2014-09-05 Bin Cheng <bin.cheng@arm.com>
17025
17026 PR target/55701
17027 * config/arm/arm.md (setmem): New pattern.
17028 * config/arm/arm-protos.h (struct tune_params): New fields.
17029 (arm_gen_setmem): New prototype.
17030 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
17031 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
17032 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
17033 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
17034 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
17035 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
17036 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
17037 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
17038 (arm_const_inline_cost): New function.
17039 (arm_block_set_max_insns): New function.
17040 (arm_block_set_non_vect_profit_p): New function.
17041 (arm_block_set_vect_profit_p): New function.
17042 (arm_block_set_unaligned_vect): New function.
17043 (arm_block_set_aligned_vect): New function.
17044 (arm_block_set_unaligned_non_vect): New function.
17045 (arm_block_set_aligned_non_vect): New function.
17046 (arm_block_set_vect, arm_gen_setmem): New functions.
17047
17048 2014-09-05 Bin Cheng <bin.cheng@arm.com>
17049
17050 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
17051
17052 2014-09-05 Bin Cheng <bin.cheng@arm.com>
17053
17054 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
17055
17056 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
17057
17058 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
17059 an rtx.
17060 * valtrack.h: Adjust.
17061
17062 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
17063
17064 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
17065 an rtx.
17066 (emit_jump_insn_before_noloc): Likewise.
17067 (emit_call_insn_before_noloc): Likewise.
17068 (emit_label_before): Likewise.
17069 (emit_label_after): Likewise.
17070 (emit_insn_before_setloc): Likewise.
17071 (emit_jump_insn_before_setloc): Likewise.
17072 (emit_call_insn_before_setloc): Likewise.
17073 (emit_call_insn_before): Likewise.
17074 * rtl.h: Adjust.
17075
17076 2014-09-05 David Malcolm <dmalcolm@redhat.com>
17077
17078 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
17079 rtx_insn *, eliminating a checked cast.
17080
17081 2014-09-05 David Malcolm <dmalcolm@redhat.com>
17082
17083 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
17084 const_rtx to const rtx_insn *.
17085 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
17086 cast.
17087
17088 2014-09-05 David Malcolm <dmalcolm@redhat.com>
17089
17090 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
17091 fixup_args_size_notes.
17092 * expr.c (fixup_args_size_notes): Strengthen first two params from
17093 rtx to rtx_insn *, eliminating a checked cast.
17094 * rtl.h (fixup_args_size_notes): Strengthen first two params from
17095 rtx to rtx_insn *.
17096
17097 2014-09-05 David Malcolm <dmalcolm@redhat.com>
17098
17099 * haifa-sched.c (get_ready_element): Strengthen return type from
17100 rtx to rtx_insn *.
17101 * sched-int.h (get_ready_element): Likewise.
17102
17103 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
17104
17105 PR target/63165
17106 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
17107 indexed_or_indirect_operand instead of memory_operand.
17108 (floatsi<mode>2_lfiwzx_mem): Ditto.
17109
17110 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
17111
17112 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
17113 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
17114 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
17115
17116 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
17117
17118 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
17119 rtx.
17120 (get_last_nonnote_insn): Likewise.
17121 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
17122 * resource.c (find_basic_block): Likewise.
17123 * rtl.h: Adjust.
17124 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
17125 const_rtx.
17126
17127 2014-09-04 David Malcolm <dmalcolm@redhat.com>
17128
17129 * genattr.c (main): Within the prototype of insn_latency written
17130 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
17131 * genautomata.c (output_internal_maximal_insn_latency_func):
17132 Within the implementation of insn_latency written out to
17133 insn-automata.c, strengthen both params from rtx to rtx_insn *,
17134 eliminating a pair of checked casts.
17135
17136 2014-09-04 David Malcolm <dmalcolm@redhat.com>
17137
17138 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
17139 rtx_insn *.
17140
17141 * rtl.h (eh_returnjump_p): Likewise.
17142
17143 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
17144
17145 * Makefile.in (TAGS): Handle constructs in timevar.def.
17146
17147 2014-09-04 Guozhi Wei <carrot@google.com>
17148
17149 PR target/62040
17150 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
17151 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
17152 it into two patterns.
17153 (move_lo_quad_internal_be_<mode>): Likewise.
17154
17155 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
17156
17157 * doc/options.texi: Document that Var and Init are required if CPP
17158 is given.
17159 * optc-gen.awk: Require Var and Init if CPP is given.
17160 * common.opt (Wpedantic): Use Init.
17161
17162 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17163
17164 * config/rs6000/rs6000.c (special_handling_values): Add
17165 SH_EXTRACT.
17166 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
17167 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
17168 as swappable with special handling SH_EXTRACT. Remove
17169 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
17170 optimization.
17171 (adjust_extract): New function.
17172 (handle_special_swappables): Add default to case statement; add
17173 case for SH_EXTRACT that calls adjust_extract.
17174 (dump_swap_insn_table): Handle SH_EXTRACT.
17175
17176 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17177
17178 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
17179 selection of 0th memory doubleword, regardless of endianness.
17180
17181 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17182
17183 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
17184
17185 2014-09-04 Alan Modra <amodra@gmail.com>
17186
17187 PR debug/60655
17188 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
17189 can't be output.
17190
17191 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
17192
17193 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
17194 * targhooks.c (default_dwarf_frame_reg_mode): New function.
17195 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
17196 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
17197 * doc/tm.texi: Regenerate.
17198 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
17199 selection logic to default_dwarf_frame_reg_mode.
17200
17201 2014-09-03 Marek Polacek <polacek@redhat.com>
17202
17203 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
17204 by -Wall.
17205
17206 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
17207
17208 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
17209 the automodified register.
17210
17211 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
17212
17213 * output.h (get_some_local_dynamic_name): Declare.
17214 * final.c (some_local_dynamic_name): New variable.
17215 (get_some_local_dynamic_name): New function.
17216 (final_end_function): Clear some_local_dynamic_name.
17217 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
17218 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
17219 (print_operand): Report an error if '%&' is used inappropriately.
17220 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
17221 (get_some_local_dynamic_name_1): Delete.
17222 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
17223 (rs6000_get_some_local_dynamic_name): Delete.
17224 (rs6000_get_some_local_dynamic_name_1): Delete.
17225 (print_operand): Report an error if '%&' is used inappropriately.
17226 * config/s390/s390.c (machine_function): Remove some_ld_name.
17227 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
17228 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
17229 * config/sparc/sparc.c: Include rtl-iter.h.
17230 (machine_function): Remove some_ld_name.
17231 (sparc_print_operand): Report an error if '%&' is used inappropriately.
17232 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
17233
17234 2014-09-03 Richard Henderson <rth@redhat.com>
17235
17236 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
17237 (aarch64_popwb_pair_reg): Remove.
17238 (aarch64_set_frame_expr): Remove.
17239 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
17240 the restore ops performed by the insns generated.
17241 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
17242 insn. Perform the calls_eh_return addition later; do not attempt to
17243 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
17244 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
17245 special markup at all. Load cfun->machine->frame.hard_fp_offset
17246 into a local variable.
17247 (aarch64_frame_pointer_required): Don't check calls_alloca.
17248
17249 2014-09-03 Richard Biener <rguenther@suse.de>
17250
17251 * opts.c (default_options_optimization): Adjust
17252 max-combine-insns to 2 for -Og.
17253
17254 2014-09-03 Martin Jambor <mjambor@suse.cz>
17255
17256 PR ipa/62015
17257 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
17258 pass-trough jump functions correctly.
17259
17260 2014-09-03 Martin Jambor <mjambor@suse.cz>
17261
17262 PR ipa/61986
17263 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
17264 created replacements in ascending order of offsets.
17265 (known_aggs_to_agg_replacement_list): Likewise.
17266
17267 2014-09-03 Martin Liska <mliska@suse.cz>
17268
17269 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
17270 is set to set uninitialized value for vnresult.
17271
17272 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17273
17274 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
17275 for TARGET_MUST_PASS_IN_STACK.
17276
17277 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17278
17279 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
17280 for TARGET_ARG_PARTIAL_BYTES.
17281
17282 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17283
17284 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
17285 instructions for varargs implementation.
17286 (nds32_expand_epilogue): Emit stack adjustment instructions for
17287 varargs implementation.
17288
17289 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17290
17291 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
17292 optimization detection.
17293
17294 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17295
17296 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
17297 arguments.
17298 (nds32_function_arg_advance): Deal with nameless arguments.
17299 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
17300 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
17301 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
17302
17303 2014-09-03 Richard Biener <rguenther@suse.de>
17304
17305 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
17306 (struct bb_bitmap_sets): Remove deferred member.
17307 (BB_DEFERRED): Remove.
17308 (defer_or_phi_translate_block): Remove.
17309 (compute_antic_aux): Remove deferring of blocks, assert
17310 proper iteration order.
17311 (compute_antic): Do not set BB_DEFERRED.
17312 (eliminate): Allocate el_avail of proper size initially.
17313
17314 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17315
17316 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
17317 according to the value of crtl->args.pretend_args_size.
17318
17319 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17320
17321 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
17322 varargs information.
17323
17324 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17325
17326 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
17327 implementation for TARGET_SETUP_INCOMING_VARARGS.
17328 (nds32_strict_argument_naming): Refine comment.
17329 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
17330 Define for future implementation.
17331
17332 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
17333
17334 * config/i386/adxintrin.h (_subborrow_u32): New.
17335 (_addcarry_u32): Ditto.
17336 (_subborrow_u64): Ditto.
17337 (_addcarry_u64): Ditto.
17338 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
17339 IX86_BUILTIN_SBB64.
17340 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
17341 __builtin_ia32_sbb_u64
17342
17343 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17344
17345 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
17346 GPR-specific stuff.
17347 (nds32_function_arg_advance): Likewise.
17348 (nds32_init_cumulative_args): Likewise.
17349 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
17350 (NDS32_FIRST_GPR_REGNUM): Define.
17351 (NDS32_LAST_GPR_REGNUM): Define.
17352 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
17353 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
17354 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
17355 (machine_function): Use GRP-specific stuff.
17356
17357 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17358
17359 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
17360 (nds32_expand_epilogue): Likewise.
17361 (nds32_expand_prologue_v3push): Likewise.
17362 (nds32_expand_epilogue_v3pop): Likewise.
17363
17364 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17365
17366 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
17367 v3push/v3pop for variadic function.
17368 * config/nds32/nds32.md (prologue, epilogue): Likewise.
17369
17370 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17371
17372 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
17373 Check rtx for varargs implementation.
17374 (nds32_output_stack_pop): Likewise.
17375 * config/nds32/nds32-protos.h: Have a rtx argument for
17376 nds32_output_stack_push and nds32_output_stack_pop.
17377 * config/nds32/nds32.md: Likewise.
17378
17379 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17380
17381 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
17382 to check if FUNC is an interrupt service routine.
17383 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
17384
17385 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17386
17387 * config/nds32/nds32.h (machine_function): Add some fields for variadic
17388 arguments implementation.
17389
17390 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17391
17392 * config/nds32/nds32-predicates.c
17393 (nds32_valid_stack_push_pop): Rename to ...
17394 (nds32_valid_stack_push_pop_p): ... this.
17395 * config/nds32/nds32-protos.h: Likewise.
17396 * config/nds32/predicates.md: Likewise.
17397
17398 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17399
17400 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
17401 (nds32_emit_stack_v3push): ... this.
17402 (nds32_gen_stack_v3pop): Rename to ...
17403 (nds32_emit_stack_v3pop): ... this and consider CFA restore
17404 information.
17405
17406 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17407
17408 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
17409 (nds32_emit_stack_push_multiple): ... this.
17410 (nds32_gen_stack_pop_multiple): Rename to ...
17411 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
17412 information.
17413
17414 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17415
17416 PR target/61078
17417 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
17418 and add a second splitter to handle the remaining cases.
17419
17420 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17421
17422 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
17423
17424 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
17425
17426 * cfgexpand.c (label_rtx_for_bb): Change type to
17427 hash_map<basic_block, rtx_code_label *> *.
17428 (expand_gimple_basic_block): Adjust.
17429 (pass_expand::execute): Likewise.
17430
17431 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
17432
17433 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
17434 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
17435 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
17436 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
17437 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
17438 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
17439 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
17440 of rtx.
17441
17442 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
17443
17444 * alloc-pool.c: Include coretypes.h.
17445 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
17446 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
17447 hash_set instead of htab.
17448 * ggc-page.c (in_gc): New variable.
17449 (ggc_free): Do nothing if a collection is taking place.
17450 (ggc_collect): Set in_gc appropriately.
17451 * ggc.h (gt_ggc_mx(const char *)): New function.
17452 (gt_pch_nx(const char *)): Likewise.
17453 (gt_ggc_mx(int)): Likewise.
17454 (gt_pch_nx(int)): Likewise.
17455 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
17456 (hash_map::hash_entry::pch_nx): Likewise.
17457 (hash_map::hash_entry::pch_nx_helper): Likewise.
17458 (hash_map::hash_map): Adjust.
17459 (hash_map::create_ggc): New function.
17460 (gt_ggc_mx): Likewise.
17461 (gt_pch_nx): Likewise.
17462 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
17463 (default_hashset_traits::pch_nx): Likewise.
17464 (hash_set::hash_entry::ggc_mx): Likewise.
17465 (hash_set::hash_entry::pch_nx): Likewise.
17466 (hash_set::hash_entry::pch_nx_helper): Likewise.
17467 (hash_set::hash_set): Adjust.
17468 (hash_set::create_ggc): New function.
17469 (hash_set::elements): Likewise.
17470 (gt_ggc_mx): Likewise.
17471 (gt_pch_nx): Likewise.
17472 * hash-table.h (hash_table::hash_table): Adjust.
17473 (hash_table::m_ggc): New member.
17474 (hash_table::~hash_table): Adjust.
17475 (hash_table::expand): Likewise.
17476 (hash_table::empty): Likewise.
17477 (gt_ggc_mx): New function.
17478 (hashtab_entry_note_pointers): Likewise.
17479 (gt_pch_nx): Likewise.
17480
17481 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17482
17483 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
17484 built-in definition.
17485 (XVCVUXDDP_SCALE): Likewise.
17486 (XVCVDPSXDS_SCALE): Likewise.
17487 (XVCVDPUXDS_SCALE): Likewise.
17488 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17489 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
17490 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
17491 VSX_BUILTIN_XVCVDPUXDS_SCALE.
17492 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
17493 prototype.
17494 * config/rs6000/rs6000.c (real.h): New include.
17495 (rs6000_scale_v2df): New function.
17496 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
17497 (UNSPEC_VSX_XVCVUXDDP): Likewise.
17498 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
17499 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
17500 (vsx_xvcvsxddp_scale): New define_expand.
17501 (vsx_xvcvsxddp): New define_insn.
17502 (vsx_xvcvuxddp_scale): New define_expand.
17503 (vsx_xvcvuxddp): New define_insn.
17504 (vsx_xvcvdpsxds_scale): New define_expand.
17505 (vsx_xvcvdpsxds): New define_insn.
17506 (vsx_xvcvdpuxds_scale): New define_expand.
17507 (vsx_xvcvdpuxds): New define_insn.
17508 * doc/extend.texi (vec_ctf): Add new prototypes.
17509 (vec_cts): Likewise.
17510 (vec_ctu): Likewise.
17511 (vec_splat): Likewise.
17512 (vec_div): Likewise.
17513 (vec_mul): Likewise.
17514
17515 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17516
17517 PR target/62275
17518 * config/arm/neon.md
17519 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
17520 <v_cmp_result>): New pattern.
17521 * config/arm/iterators.md (NEON_VCVT): New int iterator.
17522 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
17523 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
17524 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
17525 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
17526 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
17527
17528 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17529
17530 PR target/62275
17531 * config/arm/iterators.md (FIXUORS): New code iterator.
17532 (VCVT): New int iterator.
17533 (su_optab): New code attribute.
17534 (su): Likewise.
17535 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
17536
17537 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17538
17539 * config/aarch64/predicates.md (aarch64_comparison_operation):
17540 New special predicate.
17541 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
17542 aarch64_comparison_operation instead of matching an operator.
17543 Update operand numbers.
17544 (csinc3<mode>_insn): Likewise.
17545 (*csinv3<mode>_insn): Likewise.
17546 (*csneg3<mode>_insn): Likewise.
17547 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
17548 * config/aarch64/aarch64.c (aarch64_get_condition_code):
17549 Return -1 instead of aborting on invalid condition codes.
17550 (aarch64_print_operand): Update aarch64_get_condition_code callsites
17551 to assert that the returned condition code is valid.
17552 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
17553
17554 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
17555
17556 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
17557 tree.def, and gimple.def
17558
17559 2014-09-02 Jakub Jelinek <jakub@redhat.com>
17560 Balaji V. Iyer <balaji.v.iyer@intel.com>
17561 Igor Zamyatin <igor.zamyatin@intel.com>
17562
17563 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
17564 (__cilkrts_cilk_for_64): Likewise.
17565 * cilk-common.c (declare_cilk_for_builtin): New function.
17566 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
17567 __cilkrts_cilk_for_64 bultins.
17568 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
17569 CILK_TI_F_LOOP_64.
17570 (cilk_for_32_fndecl): New define.
17571 (cilk_for_64_fndecl): Likewise.
17572 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
17573 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
17574 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
17575 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
17576 GF_OMP_FOR_COMBINED_INTO.
17577 * gimplify.c (gimplify_scan_omp_clauses): Added
17578 OMP_CLAUSE__CILK_FOR_COUNT_ case.
17579 (gimplify_adjust_omp_clauses): Ditto.
17580 (gimplify_omp_for): Added CILK_FOR case.
17581 (gimplify_expr): Ditto.
17582 * omp-low.c: Include cilk.h.
17583 (extract_omp_for_data): Set appropriate kind for
17584 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
17585 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
17586 (create_omp_child_function_name): Added second argument to handle
17587 cilk_for case.
17588 (cilk_for_check_loop_diff_type): New function.
17589 (expand_cilk_for_call): Likewise.
17590 (expand_cilk_for): Likewise.
17591 (create_omp_child_function): Set cilk_for_count; handle the cases when
17592 it is true; call create_omp_child_function_name with second argument.
17593 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
17594 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
17595 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
17596 * tree-nested.c (convert_nonlocal_omp_clauses): Added
17597 OMP_CLAUSE__CILK_FOR_COUNT_ case.
17598 (convert_local_omp_clauses): Ditto.
17599 * tree-pretty-print.c (dump_omp_clause): Added
17600 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
17601 (dump_generic_node): Added CILK_FOR case.
17602 * tree.c (omp_clause_num_ops): New element
17603 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
17604 (omp_clause_code_name): New element _Cilk_for_count_.
17605 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
17606 * tree.def: Add tree code for CILK_FOR.
17607
17608 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
17609
17610 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
17611 (ppc403-compare): Add "exts with dot" case.
17612 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
17613 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
17614 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
17615 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
17616 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
17617 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
17618 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
17619 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
17620 cell-cmp-microcoded): Similarly.
17621 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
17622 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
17623 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
17624 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
17625 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
17626 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
17627 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
17628 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
17629 (power6-compare): Add "exts with dot" case.
17630 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
17631 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
17632 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
17633
17634 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
17635 if avoiding Cell microcode.
17636 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
17637 (is_cracked_insn): Ditto.
17638 (insn_must_be_first_in_group): Ditto.
17639 * config/rs6000/rs6000.md (dot): Adjust comment.
17640 (cell_micro): Handle exts+dot.
17641 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
17642 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
17643 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
17644 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
17645 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
17646 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
17647 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
17648
17649 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
17650
17651 * config/rs6000/rs6000.md (QHSI): Delete.
17652 (EXTQI, EXTHI, EXTSI): New mode iterators.
17653 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
17654 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
17655 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
17656 9 anonymous instructions, and 8 splitters): Delete.
17657 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
17658 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
17659 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
17660 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
17661 *zero_extendsi<mode>2_dot2): New.
17662
17663 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
17664
17665 * config/rs6000/rs6000.md (any_extend): New code iterator.
17666 (u, su): New code attributes.
17667 (dmode, DMODE): New mode attributes.
17668 (<su>mul<mode>3_highpart): New.
17669 (*<su>mul<mode>3_highpart): New.
17670 (<su>mulsi3_highpart_le): New.
17671 (<su>muldi3_highpart_le): New.
17672 (<su>mulsi3_highpart_64): New.
17673 (<u>mul<mode><dmode>3): New.
17674 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
17675 splitters): Delete.
17676 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
17677 splitters): Delete.
17678
17679 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
17680
17681 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
17682 *mulsi3_internal2, and two splitters): Delete.
17683 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
17684 Delete.
17685 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
17686
17687 2014-09-02 Richard Biener <rguenther@suse.de>
17688
17689 PR tree-optimization/62695
17690 * tree-ssa-structalias.c (find_func_clobbers): Add missing
17691 vector truncate.
17692
17693 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
17694
17695 PR target/62312
17696 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
17697
17698 2014-09-01 Andi Kleen <ak@linux.intel.com>
17699
17700 * file-find.c (add_prefix_begin): Add.
17701 (do_add_prefix): Rename from add_prefix with first argument.
17702 (add_prefix): Add new wrapper.
17703 * file-find.h (add_prefix_begin): Add.
17704 * gcc-ar.c (main): Support -B option.
17705
17706 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
17707
17708 * genemit.c: Include dumpfile.h.
17709 (gen_split): Print name of splitter function to dump file.
17710
17711 2014-09-01 Richard Biener <rguenther@suse.de>
17712
17713 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
17714 Use stack auto_vecs for constraint expressions.
17715 (find_func_aliases_for_call): Likewise.
17716 (find_func_aliases): Likewise.
17717 (find_func_clobbers): Likewise.
17718
17719 2014-09-01 Richard Biener <rguenther@suse.de>
17720
17721 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
17722 operands vector in most cases. Remove redundant code.
17723
17724 2014-09-01 Olivier Hainque <hainque@adacore.com>
17725
17726 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
17727 $WIND_BASE instead of designating a harcoded arbitrary home dir.
17728 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
17729
17730 2014-09-01 Richard Biener <rguenther@suse.de>
17731
17732 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
17733 copy_reference_ops_from_call, vn_nary_op_compute_hash,
17734 vn_reference_compute_hash, vn_reference_insert): Remove.
17735 (vn_reference_lookup_call): New function.
17736 * tree-ssa-sccvn.c (vn_reference_compute_hash,
17737 copy_reference_ops_from_ref, copy_reference_ops_from_call,
17738 vn_reference_insert, vn_nary_op_compute_hash): Make static.
17739 (create_reference_ops_from_call): Remove.
17740 (vn_reference_lookup_3): Properly update shared_lookup_references.
17741 (vn_reference_lookup_pieces): Assert that we updated
17742 shared_lookup_references properly.
17743 (vn_reference_lookup): Likewise.
17744 (vn_reference_lookup_call): New function.
17745 (visit_reference_op_call): Use it. Avoid re-building the
17746 reference ops.
17747 (visit_reference_op_load): Remove redundant lookup.
17748 (visit_reference_op_store): Perform special tail-merging work
17749 only when possibly doing tail-merging.
17750 (visit_use): Likewise.
17751 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
17752
17753 2014-09-01 Jakub Jelinek <jakub@redhat.com>
17754
17755 PR target/62025
17756 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
17757 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
17758 (find_inc): Revert 2014-08-13 change.
17759
17760 2014-09-01 Marek Polacek <polacek@redhat.com>
17761
17762 PR middle-end/61903
17763 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
17764 Change the type of V to unsigned HOST_WIDE_INT.
17765
17766 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
17767
17768 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
17769 the size of byte markers.
17770 (do_shift_rotate): Fix confusion between host, target and marker byte
17771 size.
17772 (verify_symbolic_number_p): Likewise.
17773 (find_bswap_or_nop_1): Likewise.
17774 (find_bswap_or_nop): Likewise.
17775
17776 2014-09-01 Olivier Hainque <hainque@adacore.com>
17777
17778 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
17779 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
17780
17781 2014-09-01 Jakub Jelinek <jakub@redhat.com>
17782
17783 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
17784 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
17785 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
17786
17787 2014-09-01 Yury Gribov <y.gribov@samsung.com>
17788
17789 PR sanitizer/61897
17790 PR sanitizer/62140
17791 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
17792 (build_check_stmt): Likewise.
17793 (instrument_strlen_call): Likewise.
17794 (asan_expand_check_ifn): Likewise and fix types.
17795 (maybe_cast_to_ptrmode): New function.
17796
17797 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17798
17799 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
17800
17801 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
17802
17803 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
17804
17805 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
17806
17807 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
17808 prefix to function labels when generating fast indirect calls.
17809
17810 2014-08-30 David Malcolm <dmalcolm@redhat.com>
17811
17812 PR bootstrap/62304
17813
17814 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
17815 param back from rtx_insn * to rtx. Rename param from "label" to
17816 "label_or_return", reintroducing "label" as an rtx_insn * after
17817 we've ensured it's not a RETURN.
17818 (first_active_target_insn): Likewise for return type and param;
17819 add a checked cast to rtx_insn * once we've ensured "insn" is not
17820 a RETURN.
17821 (steal_delay_list_from_target): Convert param "pnew_thread" back
17822 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
17823 with JUMP_LABEL.
17824 (own_thread_p): Convert param "thread" back from an rtx_insn * to
17825 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
17826 cast once we've established we're not dealing with a RETURN,
17827 renaming subsequent uses of "thread" to "thread_insn".
17828 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
17829 to JUMP_LABEL.
17830 (follow_jumps): Convert return type and param "label" from
17831 rtx_insn * back to rtx. Move initialization of "value" to after
17832 the handling for ANY_RETURN_P, adding a checked cast there to
17833 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
17834 rename to "this_label_or_return", reintroducing "this_label" as
17835 an rtx_insn * once we've handled the case where it could be an
17836 ANY_RETURN_P.
17837 (fill_slots_from_thread): Rename param "thread" to
17838 "thread_or_return", converting from an rtx_insn * back to an rtx.
17839 Reintroduce name "thread" as an rtx_insn * local with a checked
17840 cast once we've handled the case of it being an ANY_RETURN_P.
17841 Convert local "new_thread" from an rtx_insn * back to an rtx.
17842 Add a checked cast when assigning to "trial" from "new_thread".
17843 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
17844 checked cast to rtx_insn * from "new_thread" when invoking
17845 get_label_before.
17846 (fill_eager_delay_slots): Convert locals "target_label",
17847 "insn_at_target" from rtx_insn * back to rtx.
17848 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
17849 (relax_delay_slots): Convert locals "trial", "target_label" from
17850 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
17851 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
17852 invoking update_block.
17853 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
17854 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
17855
17856 * resource.h (mark_target_live_regs): Undo erroneous conversion
17857 of second param of r214693, converting it back from rtx_insn * to
17858 rtx, since it could be a RETURN.
17859
17860 * resource.c (find_dead_or_set_registers): Similarly, convert
17861 param "jump_target" back from an rtx_insn ** to an rtx *, as we
17862 could be writing back a RETURN. Rename local rtx_insn * "next" to
17863 "next_insn", and introduce "lab_or_return" as a local rtx,
17864 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
17865 (mark_target_live_regs): Undo erroneous conversion
17866 of second param of r214693, converting it back from rtx_insn * to
17867 rtx, since it could be a RETURN. Rename it from "target" to
17868 "target_maybe_return", reintroducing the name "target" as a local
17869 rtx_insn * with a checked cast, after we've handled the case of
17870 ANY_RETURN_P.
17871
17872 2014-08-29 DJ Delorie <dj@redhat.com>
17873
17874 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
17875 pointer size up to a power of two.
17876 * defaults.h (DWARF2_ADDR_SIZE): Round up.
17877 (POINTER_SIZE_UNITS): New, rounded up value.
17878 * dwarf2asm.c (size_of_encoded_value): Use it.
17879 (dw2_output_indirect_constant_1): Likewise.
17880 * expmed.c (init_expmed_one_conv): We now know the sizes of
17881 partial int modes.
17882 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
17883 * optabs.c (expand_float): Use precision, not size.
17884 (expand_fix): Likewise.
17885 * simplify-rtx (simplify_unary_operation_1): Likewise.
17886 * tree-dfa.c (get_ref_base_and_extent): Likewise.
17887 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
17888 (default_assemble_integer) Likewise.
17889 (dump_tm_clone_pairs): Likewise.
17890 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
17891 * var-tracking.c (adjust_mems): Allow partial-int modes also.
17892 (prepare_call_arguments): Likewise.
17893 * stor-layout.c (finalize_type_size): Preserve precision.
17894 (layout_type): Use precision, not size.
17895
17896 * expr.c (convert_move): If the target has an explicit converter,
17897 use it.
17898
17899 2014-08-29 David Malcolm <dmalcolm@redhat.com>
17900
17901 * gdbinit.in: Skip various inline functions in rtl.h when
17902 stepping.
17903
17904 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
17905
17906 PR bootstrap/62301
17907 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
17908
17909 2014-08-29 Richard Biener <rguenther@suse.de>
17910
17911 PR tree-optimization/62291
17912 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
17913 exactly the vector size needed and use quick_push.
17914 (phi_translate_1): Adjust comment.
17915 (valid_in_sets): Remove block argument and remove pointless
17916 checking of NAMEs.
17917 (dependent_clean): Adjust for removal of block argument.
17918 (clean): Likewise.
17919 (compute_antic_aux): Likewise.
17920 (compute_partial_antic_aux): Likewise.
17921
17922 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
17923 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17924 Anna Tikhonova <anna.tikhonova@intel.com>
17925 Ilya Tocar <ilya.tocar@intel.com>
17926 Andrey Turetskiy <andrey.turetskiy@intel.com>
17927 Ilya Verbin <ilya.verbin@intel.com>
17928 Kirill Yukhin <kirill.yukhin@intel.com>
17929 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17930
17931 * config/i386/sse.md
17932 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
17933 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
17934 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
17935 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
17936
17937 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
17938 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17939 Anna Tikhonova <anna.tikhonova@intel.com>
17940 Ilya Tocar <ilya.tocar@intel.com>
17941 Andrey Turetskiy <andrey.turetskiy@intel.com>
17942 Ilya Verbin <ilya.verbin@intel.com>
17943 Kirill Yukhin <kirill.yukhin@intel.com>
17944 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17945
17946 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
17947 * config/i386/sse.md
17948 (define_mode_iterator VI4_128_8_256): New.
17949 (define_mode_iterator VI2_128_4_256): Ditto.
17950 (define_mode_iterator PMOV_DST_MODE): Rename into
17951 (define_mode_iterator PMOV_DST_MODE_1): this.
17952 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
17953 Use PMOV_DST_MODE_1 mode iterator.
17954 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
17955 Ditto.
17956 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
17957 Ditto.
17958 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
17959 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
17960 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
17961 (define_mode_iterator PMOV_DST_MODE_2): New.
17962 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
17963 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
17964 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
17965 Ditto.
17966 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
17967 (define_mode_attr pmov_dst_3): Ditto.
17968 (define_mode_attr pmov_dst_zeroed_3): Ditto.
17969 (define_mode_attr pmov_suff_3): Ditto.
17970 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
17971 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
17972 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
17973 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
17974 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
17975 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
17976 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
17977 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
17978 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
17979 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
17980 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
17981 (define_mode_attr pmov_dst_4): Ditto.
17982 (define_mode_attr pmov_dst_zeroed_4): Ditto.
17983 (define_mode_attr pmov_suff_4): Ditto.
17984 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
17985 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
17986 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
17987 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
17988 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
17989 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
17990 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
17991 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
17992 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
17993 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
17994 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
17995
17996 2014-08-29 Richard Biener <rguenther@suse.de>
17997
17998 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
17999 NON_LVALUE_EXPR in gimple.
18000
18001 2014-08-29 Richard Biener <rguenther@suse.de>
18002
18003 PR middle-end/62292
18004 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
18005 from previous refactoring.
18006 (gimple_fold_builtin_strncpy): Likewise.
18007
18008 2014-08-29 David Malcolm <dmalcolm@redhat.com>
18009
18010 PR bootstrap/62300
18011 * function.c (assign_parm_setup_reg): Remove erroneous checked
18012 cast to rtx_insn * on result of gen_extend_insn in favor of
18013 introducing a new local rtx "pat".
18014
18015 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18016
18017 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
18018 to silence warning.
18019 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
18020
18021 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18022
18023 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
18024 (next_insn): Likewise.
18025 * emit-rtl.c (next_insn): Likewise.
18026 (previous_insn): Likewise.
18027 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
18028 "insn" and "next" from rtx to rtx_insn *.
18029 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
18030 "insn", "insn1", "vliw_start", "prologue_end_note",
18031 "last_insn_in_packet".
18032
18033 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18034
18035 * shrink-wrap.h (active_insn_between): Strengthen both params from
18036 rtx to rtx_insn *.
18037 * function.c (active_insn_between): Likewise.
18038
18039 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18040
18041 * genattr.c (main): When writing out insn-attr.h, strengthen param
18042 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
18043 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
18044 writing out the definition of dfa_clear_single_insn_cache to the
18045 generated insn-automata.c
18046
18047 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18048
18049 * resource.h (clear_hashed_info_for_insn): Strengthen param from
18050 rtx to rtx_insn *.
18051 (incr_ticks_for_insn): Likewise.
18052 (init_resource_info): Likewise.
18053
18054 * resource.c (init_resource_info): Likewise.
18055 (clear_hashed_info_for_insn): Likewise.
18056 (incr_ticks_for_insn): Likewise.
18057
18058 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
18059 rtx to rtx_insn *.
18060 (steal_delay_list_from_target): Use methods of "seq".
18061 (try_merge_delay_insns): Use methods of "merged_insns".
18062 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
18063 (reorg_redirect_jump): Likewise for param "jump".
18064
18065 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18066
18067 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
18068 rtx to rtx_insn *.
18069 * config/s390/s390.c (s390_split_branches): Eliminate top-level
18070 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
18071 "set_insn".
18072 (s390_mainpool_finish): In three places, split out a local rtx
18073 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
18074 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
18075 and split another local rtx "insn" out into rtx "pat" and
18076 rtx_insn * "insn".
18077 * config/sh/sh.c (output_branchy_insn): Rather than working
18078 directly on operands[9], introduce local rtx_code_label *
18079 variables named "lab" in two places, working on them, and then
18080 assigning them to operands[9], so that the intervening operations
18081 are known by the type system to be on insns.
18082
18083 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18084
18085 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
18086 const rtx_insn *.
18087
18088 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
18089 in invocation of INSN_HAS_LOCATION.
18090
18091 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18092
18093 * config/rs6000/altivec.h (vec_xl): New #define.
18094 (vec_xst): Likewise.
18095 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
18096 (XXSPLTD_V2DI): Likewise.
18097 (DIV_V2DI): Likewise.
18098 (UDIV_V2DI): Likewise.
18099 (MUL_V2DI): Likewise.
18100 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18101 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
18102 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
18103 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
18104 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
18105 (UNSPEC_VSX_DIVSD): Likewise.
18106 (UNSPEC_VSX_DIVUD): Likewise.
18107 (UNSPEC_VSX_MULSD): Likewise.
18108 (vsx_mul_v2di): New insn-and-split.
18109 (vsx_div_v2di): Likewise.
18110 (vsx_udiv_v2di): Likewise.
18111 (vsx_xxspltd_<mode>): New insn.
18112
18113 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18114
18115 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
18116 NEXT_INSN.
18117 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
18118 (NEXT_INSN): Likewise.
18119 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
18120 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
18121 const rtx_insn *.
18122 (no_labels_between_p): Likewise for both params.
18123
18124 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
18125 cast when using NEXT_INSN on operands[2].
18126 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
18127 "insn" from rtx to rtx_insn *, adding a checked cast.
18128 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
18129 rtx_insn *.
18130 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
18131 for third param.
18132 (arc_text_label): Likewise for param "insn".
18133 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
18134 "insn".
18135 (arc_ccfsm_record_condition): Likewise for param "jump".
18136 (arc_text_label): Likewise for local "label".
18137 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
18138 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
18139 a method for typesafety. Add a checked cast.
18140 * config/arc/constraints.md (Clb): Add a checked cast when getting
18141 the CODE_LABEL from a LABEL_REF.
18142 * config/arm/arm.c (require_pic_register): Strengthen locals
18143 "seq", "insn" from rtx to rtx_insn *.
18144 (create_fix_barrier): Likewise for locals "selected", "next".
18145 (thumb1_reorg): Likewise for locals "prev", "insn".
18146 (arm_expand_prologue): Likewise for local "last".
18147 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
18148 operands[0].
18149 (thumb2_output_casesi): Likewise for operands[2].
18150 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
18151 strengthen local "insn" from rtx to rtx_insn *.
18152 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
18153 type and param "insn".
18154 (find_prev_insn_start): Likewise.
18155 (hwloop_optimize): Likewise for locals "insn", "last_insn",
18156 "prev".
18157 (gen_one_bundle): Likewise for loal "t".
18158 (find_load): Likewise for param "insn".
18159 (workaround_speculation): Likewise for locals "insn", "next",
18160 "target", "next_tgt".
18161 * config/c6x/c6x.c (assign_reservations): Likewise for both params
18162 and for locals "insn", "within", "last".
18163 (count_unit_reqs): Likewise for params "head", "tail" and local
18164 "insn".
18165 (try_rename_operands): Likewise for params "head", "tail".
18166 (reshuffle_units): Likewise for locals "head", "tail", "insn".
18167 (struct c6x_sched_context): Likewise for fields
18168 "last_scheduled_insn", "last_scheduled_iter0".
18169 (init_sched_state): Replace NULL_RTX with NULL.
18170 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
18171 to rtx_insn *.
18172 (undo_split_delayed_nonbranch): Likewise for param and for local
18173 "prev".
18174 (conditionalize_after_sched): Likewise for local "insn".
18175 (bb_earliest_end_cycle): Likewise.
18176 (filter_insns_above): Likewise for locals "insn", "next".
18177 (hwloop_optimize): Remove redundant checked cast.
18178 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
18179 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
18180 NULL_RTX with NULL.
18181 (cris_simple_epilogue): Likewise.
18182 (cris_expand_prologue): Likewise.
18183 (cris_expand_epilogue): Likewise.
18184 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
18185 local "insn" from rtx to rtx_insn *.
18186 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
18187 (struct frv_packet_group): Likewise for the elements within array
18188 fields "insns", "sorted", and for field "nop".
18189 (frv_packet): Likewise for the elements within array field
18190 "insns".
18191 (frv_add_insn_to_packet): Likewise for param "insn".
18192 (frv_insert_nop_in_packet): Likewise for param "insn" and local
18193 "last".
18194 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
18195 (frv_sort_insn_group_1): Likewise for local "insn".
18196 (frv_optimize_membar_local): Likewise.
18197 (frv_align_label): Likewise for locals "x", "last", "barrier",
18198 "label".
18199 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
18200 local.
18201 (ia64_sched_init): Likewise for local "insn".
18202 (scheduled_good_insn): Likewise for param "last".
18203 (struct _ia64_sched_context): Likewise for field
18204 "last_scheduled_insn".
18205 (ia64_init_sched_context): Replace NULL_RTX with NULL.
18206 (struct bundle_state): Likewise for field "insn".
18207 (issue_nops_and_insn): Likewise for param "insn".
18208 (get_next_important_insn): Likewise for return type and both
18209 params.
18210 (ia64_add_bundle_selector_before): Likewise for param "insn".
18211 (bundling): Likewise for params "prev_head_insn", "tail" and
18212 locals "insn", "next_insn", "b". Eliminate top-level local rtx
18213 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
18214 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
18215 Strengthen final param from rtx to rtx_insn *.
18216 (iq2000_move_1word): Likewise for second param.
18217 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
18218 param "cur_insn" and local "next_insn".
18219 (iq2000_move_1word): Likewise for param "insn".
18220 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
18221 casts when using NEXT_INSN on operands[1].
18222 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
18223 "insn" from rtx to rtx_insn *.
18224 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
18225 "x", introducing local rtx_insn * "insn" for when working with the
18226 CODE_LABEL of the LABEL_REF.
18227 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
18228 rtx_insn *.
18229 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
18230 param.
18231 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
18232 type.
18233 (conditionalize_block): Likewise for return type and param.
18234 (mcore_is_dead): Likewise for param "first" and local "insn".
18235 (emit_new_cond_insn): Likewise for return type.
18236 (conditionalize_block): Likewise for return type, param, and
18237 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
18238 "newinsn".
18239 (conditionalize_optimization): Likewise for local "insn".
18240 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
18241 using NEXT_INSN.
18242 * config/microblaze/microblaze.md: Add checked casts when using
18243 NEXT_INSN.
18244 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
18245 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
18246 and rtx_insn * "insn".
18247 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
18248 checked cast when using NEXT_INSN on operands[2].
18249 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
18250 local "insn" from rtx to rtx_insn *.
18251 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
18252 Likewise.
18253 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
18254 Add a checked cast when using NEXT_INSN on operands[1].
18255 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
18256 rtx to rtx_insn *.
18257 (pa_output_cbranch): Likewise for final param.
18258 (pa_output_lbranch): Likewise for second param.
18259 (pa_output_bb): Likewise for third param.
18260 (pa_output_bvb): Likewise.
18261 (pa_output_dbra): Likewise for second param.
18262 (pa_output_movb): Likewise.
18263 (pa_output_parallel_movb): Likewise.
18264 (pa_output_parallel_addb): Likewise.
18265 (pa_output_millicode_call): Likewise for first param.
18266 (pa_output_mul_insn): Likewise for second param.
18267 (pa_output_div_insn): Likewise for third param.
18268 (pa_output_mod_insn): Likewise for second param.
18269 (pa_jump_in_call_delay): Likewise for param.
18270 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
18271 (pa_output_div_insn): Likewise.
18272 (pa_output_mod_insn): Likewise.
18273 (pa_output_cbranch): Likewise.
18274 (pa_output_lbranch): Likewise.
18275 (pa_output_bb): Likewise.
18276 (pa_output_bvb): Likewise.
18277 (pa_output_dbra): Likewise.
18278 (pa_output_movb): Likewise.
18279 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
18280 to simplify and for typesafety.
18281 (pa_output_call): Use method of rtx_sequence *.
18282 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
18283 (pa_jump_in_call_delay): Likewise.
18284 (pa_output_parallel_movb): Likewise.
18285 (pa_output_parallel_addb): Likewise.
18286 (pa_following_call): Likewise.
18287 (pa_combine_instructions): Likewise for locals "anchor",
18288 "floater".
18289 (pa_can_combine_p): Likewise for params "anchor", "floater" and
18290 locals "start", "end".
18291 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
18292 param "insn" and local "local_insn".
18293 (picochip_final_prescan_insn): Likewise for local "local_insn".
18294 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
18295 local "insn".
18296 (uses_TOC): Likewise.
18297 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
18298 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
18299 splitting out to more tightly-scoped locals, 3 as rtx and one as
18300 rtx_insn *.
18301 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
18302 to rtx_insn *.
18303 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
18304 where needed.
18305 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
18306 to rtx_insn *.
18307 (fixup_addr_diff_vecs): Likewise.
18308 (reg_unused_after): Likewise for param 2.
18309 (sh_can_redirect_branch): Likewise for both params.
18310 (check_use_sfunc_addr): Likewise for param 1.
18311 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
18312 (find_barrier): Likewise for local "last_got".
18313 (gen_block_redirect): Likewise for return type, param "jump" and
18314 locals "prev", "scan", "next", "insn".
18315 (struct far_branch): Likewise for fields "near_label",
18316 "insert_place", "far_label".
18317 (gen_far_branch): Likewise for local "jump".
18318 (fixup_addr_diff_vecs): Likewise for param "first" and locals
18319 "insn", "prev".
18320 (barrier_align): Likewise for param and for locals "prev", "x".
18321 Introduce local rtx_sequence * "prev_seq" and use insn method for
18322 typesafety and clarity.
18323 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
18324 (get_dest_uid): Likewise for local "dest".
18325 (split_branches): Likewise for locals "next", "beyond", "label",
18326 "block", "far_label". Add checked casts when assigning to
18327 bp->far_label and "far_label".
18328 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
18329 (sequence_insn_p): Likewise.
18330 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
18331 more loop-scoped rtx "insn" when walking LABEL_REFS.
18332 (sh_can_redirect_branch): Strengthen both params from rtx to
18333 rtx_insn *.
18334 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
18335 new local rtx_sequence * "seq" via a dyn_cast, and use a method
18336 for clarity and typesafety.
18337 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
18338 "insn" from rtx to rtx_insn *.
18339 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
18340 when using NEXT_INSN on the CODE_LABEL in operands[2].
18341 (define_insn "casesi_worker_2"): Likewise.
18342 (define_insn "casesi_shift_media"): Likewise.
18343 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
18344 operands[3].
18345 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
18346 Strengthen field "insn" from rtx to rtx_insn *.
18347 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
18348 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
18349 param "start_insn" and local "start_insn".
18350 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
18351 field "insn".
18352 (find_set_of_reg_bb): Likewise for param "insn".
18353 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
18354 (trace_reg_uses): Likewise for param "start_insn".
18355 (sh_treg_combine::cbranch_trace): Likewise for field
18356 "cbranch_insn".
18357 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
18358 param "insn".
18359 (sh_treg_combine::record_set_of_reg): Likewise for param
18360 "start_insn" and local "i".
18361 (sh_treg_combine::can_remove_cstore): Likewise for local
18362 "prev_insn".
18363 (sh_treg_combine::try_optimize_cbranch): Likewise for param
18364 "insn".
18365 (sh_treg_combine::execute): Likewise for local "i".
18366 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
18367 param.
18368 (sparc_check_64): Likewise for second param.
18369 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
18370 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
18371 dyn_cast, using its insn method for typesafety and clarity.
18372 (empty_delay_slot): Strengthen param "insn" from rtx to
18373 rtx_insn *.
18374 (set_extends): Likewise.
18375 (sparc_check_64): Likewise.
18376 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
18377 for locals "seq", "last_insn".
18378 (combine_bnp): Likewise for param "insn".
18379 (xstormy16_reorg): Likewise for local "insn".
18380 * config/v850/v850.c (substitute_ep_register): Likewise for params
18381 "first_insn", "last_insn" and local "insn".
18382 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
18383 elements of "regs" array, and local "insn".
18384 * except.c (emit_note_eh_region_end): Likewise for param "insn".
18385 * final.c (final_sequence): Strengthen this global from rtx to
18386 rtx_sequence *.
18387 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
18388 rtx_insn *.
18389 (final_scan_insn): Update assignment to "final_sequence" to be
18390 from "seq", the cast version of "body", for type-safety.
18391 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
18392 "insns" from rtx to rtx_insn *.
18393 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
18394 * genattr.c (main): When writing out generated insn-attr.h,
18395 strengthen params 1 and 3 of eligible_for_delay,
18396 eligible_for_annul_true, eligible_for_annul_false from rtx to
18397 rtx_insn *.
18398 * genattrtab.c (write_eligible_delay): Likewise when writing out
18399 generated insn-attrtab.c; also local "insn" the generated
18400 functions.
18401 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
18402 to rtx_insn *.
18403 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
18404 "start_label" from rtx to rtx_insn *.
18405 * ira.c (decrease_live_ranges_number): Likewise for local "p".
18406 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
18407 "insns" and local "insn".
18408 (validate_equiv_mem): Likewise for param "start" and local "insn".
18409 (memref_used_between_p): Likewise for params "start", "end" and
18410 local "insn".
18411 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
18412 final param.
18413 * loop-doloop.c (doloop_optimize): Within region guarded by
18414 INSN_P (doloop_pat), introduce a new local rtx_insn *
18415 "doloop_insn" via a checked cast, and use it for typesafety,
18416 eventually writing the value back into doloop_pat.
18417 * output.h (final_sequence): Strengthen this global from rtx to
18418 rtx_sequence *.
18419 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
18420 reintroducing "insn" as an rtx_insn * via a checked cast.
18421 Strengthen param "attempt" and local "new_insn"from rtx to
18422 rtx_insn *.
18423 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
18424 to rtx_insn *.
18425 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
18426 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
18427 "p" in favor of more tightly-scoped replacements, sometimes rtx
18428 and sometimes rtx_insn *, as appropriate.
18429 (delete_output_reload): Eliminate top-level rtx "i1", splitting
18430 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
18431 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
18432 local "trial" from rtx to rtx_insn *.
18433 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
18434 rtx to rtx_insn *. Strenghten local "pat" from rtx to
18435 rtx_sequence * and use methods for clarity and typesafety.
18436 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
18437 rtx to rtx_insn *. Strenghten local "li" from rtx to
18438 rtx_insn_list * and use its methods for clarity and typesafety.
18439 (steal_delay_list_from_target): Strengthen param "insn" from rtx
18440 to rtx_insn *.
18441 (steal_delay_list_from_fallthrough): Likewise.
18442 (try_merge_delay_insns): Likewise for param "thread" and locals
18443 "trial", "next_trial", "delay_insn".
18444 (redundant_insn): Likewise for param "target" and local "trial".
18445 (own_thread_p): Likewise for param "thread" and locals
18446 "active_insn", "insn".
18447 (get_label_before): Likewise for param "insn".
18448 (fill_simple_delay_slots): Likewise for local "new_label"; use
18449 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
18450 (label_before_next_insn): Strengthen return type and local "insn"
18451 from rtx to rtx_insn *.
18452 (relax_delay_slots): Likewise for locals "other", "tmp".
18453 (make_return_insns): Likewise for param "first" and locals "insn",
18454 "jump_insn", "prev". Move declaration of "pat" to its assignment
18455 and strengthen from rtx to rtx_sequence *. Use its methods for
18456 clarity and typesafety.
18457 * rtlanal.c (no_labels_between_p): Strengthen params from
18458 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
18459 rtx_insn *.
18460 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
18461 from const_rtx to const rtx_insn *.
18462 (reg_set_between_p): Rename param "from_insn" to
18463 "uncast_from_insn", and reintroduce "from_insn" as a
18464 const rtx_insn * via a checked cast.
18465 (modified_between_p): Likewise for param "start" as "uncast_start".
18466 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
18467 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
18468 "tmp", head" from rtx to rtx_insn *.
18469 (recompute_rev_top_order): Likewise for local "insn".
18470 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
18471 * store-motion.c (build_store_vectors): Likewise for local "insn".
18472 Strengthen local "st" from rtx to rtx_insn_list * and use methods
18473 for clarity and typesafety.
18474 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
18475 rtx to rtx_insn *.
18476 (computation_cost): Likewise for local "seq".
18477 (get_address_cost): Likewise.
18478
18479 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18480
18481 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
18482 const rtx_insn *.
18483 (label_is_jump_target_p): Likewise for second param.
18484
18485 * rtlanal.c (tablejump_p): Likewise for param "insn".
18486 (label_is_jump_target_p): Likewise for param "jump_insn".
18487
18488 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18489
18490 * rtl.h (find_first_parameter_load): Strengthen return type and
18491 both params from rtx to rtx_insn *.
18492 * rtlanal.c (find_first_parameter_load): Strengthen return type,
18493 both params and locals "before", "first_set" from rtx to
18494 rtx_insn *. Remove now-redundant cast.
18495 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
18496
18497 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18498
18499 * rtl.h (find_last_value): Delete.
18500 * rtlanal.c (find_last_value): Delete.
18501
18502 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18503
18504 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
18505 from rtx to rtx_insn *.
18506 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
18507 rtx "note" with new local rtx_insn * "new_head" when calculating
18508 head insn of new basic block.
18509 * combine.c (combine_split_insns): Strengthen return type and local
18510 "ret" from rtx to rtx_insn *.
18511 (likely_spilled_retval_p): Likewise for locals "use" and "p".
18512 (try_combine): Eliminate local "m_split", splitting into new
18513 locals "m_split_insn" and "m_split_pat".
18514 (find_split_point): Strengthen local "seq" from rtx into
18515 rtx_insn *.
18516 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
18517 locals "label", "branch".
18518 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
18519 for local "insn".
18520 (define_expand "umulsi3_highpart"): Likewise for local "insn".
18521 * dse.c (note_add_store_info): Likewise for fields "first",
18522 "current".
18523 (note_add_store): Likewise for local "insn".
18524 (emit_inc_dec_insn_before): Likewise for locals "insn",
18525 "new_insn", "cur".
18526 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
18527 (replace_read): Likewise for locals "insns", "this_insn".
18528 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
18529 (notice_eh_throw): Likewise for param "insn".
18530 (before_next_cfi_note): Likewise for return type, param, and local
18531 "prev".
18532 (connect_traces): Likewise for local "note".
18533 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
18534 (verify_rtl_sharing): Likewise.
18535 (unshare_all_rtl_in_chain): Likewise for param "insn".
18536 (get_first_nonnote_insn): Likewise for local "insn".
18537 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
18538 "seq" and use its methods to clarify things.
18539 (next_insn): Strengthen return type from rtx to rtx_insn *.
18540 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
18541 local rtx_insn * using a checked cast, dropping a checked cast
18542 made redundant by this change. Use a cast to and method of
18543 rtx_sequence to clarify the code.
18544 (previous_insn): Rename param "insn" to "uncast_insn" and
18545 reintroduce "insn" as a local rtx_insn * using a checked cast,
18546 dropping a checked cast made redundant by this change. Use a cast
18547 to and method of rtx_sequence to clarify the code.
18548 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
18549 reintroduce "insn" as a local rtx_insn * using a checked cast,
18550 dropping a checked cast made redundant by this change.
18551 (next_nonnote_insn_bb): Likewise.
18552 (prev_nonnote_insn): Likewise.
18553 (prev_nonnote_insn_bb): Likewise.
18554 (next_nondebug_insn): Likewise.
18555 (prev_nondebug_insn): Likewise.
18556 (next_nonnote_nondebug_insn): Likewise.
18557 (prev_nonnote_nondebug_insn): Likewise.
18558 (next_real_insn): Likewise.
18559 (prev_real_insn): Likewise.
18560 (next_active_insn): Likewise.
18561 (prev_active_insn): Likewise.
18562 (next_cc0_user): Likewise. Use rtx_sequence and a method for
18563 clarity.
18564 (prev_cc0_setter): Likewise.
18565 (try_split): Rename param "trial" to "uncast_trial" and
18566 reintroduce "insn" as a local rtx_insn * using a checked cast,
18567 dropping checked casts made redundant by this change.
18568 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
18569 rtx to rtx_insn *.
18570 (remove_insn): Rename param "insn" to "uncast_insn" and
18571 reintroduce "insn" as a local rtx_insn * using a checked cast.
18572 (emit_pattern_after_setloc): Likewise for param "after", as
18573 "uncast_after".
18574 (emit_pattern_after): Likewise. Strengthen local "prev" from
18575 rtx to rtx_insn *.
18576 (emit_pattern_before_setloc): Rename param "before" to
18577 "uncast_before" and reintroduce "before" as a local rtx_insn *
18578 using a checked cast. Strengthen locals "first", "last" from
18579 rtx to rtx_insn *.
18580 (emit_pattern_before): Likewise rename/cast param "before" to
18581 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
18582 * except.c (copy_reg_eh_region_note_forward): Strengthen param
18583 "first" and local "insn" from rtx to rtx_insn *.
18584 (copy_reg_eh_region_note_backward): Likewise for param "last"
18585 and local "insn".
18586 * expr.c (fixup_args_size_notes): Rename param "last" to
18587 "uncast_last" and reintroduce "last" as a local rtx_insn *
18588 using a checked cast. Strengthen local "insn" from rtx to
18589 rtx_insn *.
18590 * function.c (set_insn_locations): Strengthen param "insn" from
18591 rtx to rtx_insn *.
18592 (record_insns): Likewise for param "insns" and local "tmp".
18593 (active_insn_between): Rename param "tail" to
18594 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
18595 using a checked cast.
18596 (thread_prologue_and_epilogue_insns): Split out top-level local
18597 rtx "seq" into three different rtx_insn * locals. Strengthen
18598 local "prologue_seq" from rtx to rtx_insn *.
18599 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
18600 from rtx to rtx_insn *.
18601 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
18602 (priority): Likewise for locals "prev_first", "twin".
18603 (setup_insn_max_reg_pressure): Likewise for param "after".
18604 (sched_setup_bb_reg_pressure_info): Likewise.
18605 (no_real_insns_p): Strengthen params from const_rtx to
18606 const rtx_insn *.
18607 (schedule_block): Strengthen local "next_tail" from rtx to
18608 rtx_insn *.
18609 * ifcvt.c (find_active_insn_before): Strengthen return type and
18610 param "insn" from rtx to rtx_insn *.
18611 (find_active_insn_after): Likewise.
18612 (cond_exec_process_insns): Likewise for param "start" and local "insn".
18613 (cond_exec_process_if_block): Likewise for locals "then_start",
18614 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
18615 (noce_process_if_block): Likewise for local "jump".
18616 (merge_if_block): Likewise for two locals named "end".
18617 (cond_exec_find_if_block): Likewise for local "last_insn".
18618 * jump.c (delete_related_insns): Rename param "insn" to
18619 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
18620 checked cast. Strengthen local "p" from rtx to rtx_insn *.
18621 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
18622 NULL.
18623 (split_reg): Likewise.
18624 * lra.c (lra_process_new_insns): Likewise.
18625 * modulo-sched.c (permute_partial_schedule): Strengthen param
18626 "last" from rtx to rtx_insn *.
18627 * optabs.c (add_equal_note): Likewise for param "insns" and local
18628 "last_insn".
18629 (expand_binop_directly): Add checked casts to rtx_insn * within
18630 NEXT_INSN (pat) uses.
18631 (expand_unop_direct): Likewise.
18632 (maybe_emit_unop_insn): Likewise.
18633 * recog.c (peep2_attempt): Strengthen locals "last",
18634 "before_try", "x" from rtx to rtx_insn *.
18635 * reorg.c (optimize_skip): Strengthen return type and local
18636 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
18637 and locals "trial", "next_trial" from rtx to rtx_insn *.
18638 * resource.c (next_insn_no_annul): Strengthen return type and
18639 param "insn" from rtx to rtx_insn *. Use a cast to and method of
18640 rtx_sequence to clarify the code.
18641 (mark_referenced_resources): Add a checked cast to rtx_insn *
18642 within PREV_INSN (x).
18643 (find_dead_or_set_registers): Strengthen return type, param
18644 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
18645 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
18646 to rtx_insn **.
18647 (mark_target_live_regs): Strengthen params "insns" and "target",
18648 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
18649 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
18650 the code.
18651 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
18652 from rtx to rtx_insn *.
18653 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
18654 from rtx to rtx_insn *.
18655 (copy_reg_eh_region_note_backward): Likewise.
18656 (unshare_all_rtl_in_chain): Likewise for sole param.
18657 (dump_rtl_slim): Strengthen second and third params from const_rtx
18658 to const rtx_insn *.
18659 * sched-deps.c (sched_free_deps): Strengthen params "head" and
18660 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
18661 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
18662 "next_tail" from rtx to rtx_insn *.
18663 (begin_move_insn): Likewise for local "next".
18664 * sched-int.h (sched_free_deps): Likewise for first and second
18665 params.
18666 (no_real_insns_p): Strengthen both params from const_rtx to
18667 const rtx_insn *.
18668 (sched_setup_bb_reg_pressure_info): Strengthen second params from
18669 rtx to rtx_insn *.
18670 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
18671 "next_tail".
18672 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
18673 and locals "insn", "tail" from const_rtx to const rtx_insn *.
18674 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
18675 rtx_insn *.
18676 (debug_rtl_slim): Strengthen params "first" and "last" from
18677 const_rtx to const rtx_insn *.
18678 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
18679 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
18680 (convert_to_simple_return): Likewise for param "returnjump".
18681 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
18682 "prologue_seq".
18683 (convert_to_simple_return): Likewise for param "returnjump".
18684 * valtrack.c (propagate_for_debug): Likewise for params
18685 "insn", "last".
18686 * valtrack.h (propagate_for_debug): Likewise for second param.
18687
18688 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18689
18690 * output.h (insn_current_reference_address): Strengthen param
18691 from rtx to rtx_insn *.
18692 * final.c (insn_current_reference_address): Likewise.
18693
18694 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18695
18696 * basic-block.h (inside_basic_block_p): Strengthen param from
18697 const_rtx to const rtx_insn *.
18698 * cfgbuild.c (inside_basic_block_p): Likewise.
18699
18700 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18701
18702 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
18703 rtx_insn *.
18704 (get_trace_info): Likewise for param "insn".
18705 (save_point_p): Likewise.
18706 (maybe_record_trace_start): Likewise for both params.
18707 (maybe_record_trace_start_abnormal): Likewise.
18708 (create_trace_edges): Likewise for sole param and for three of the
18709 locals named "lab".
18710 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
18711 to rtx_insn *, and update a call to pat->element to pat->insn.
18712
18713 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18714
18715 * function.h (struct expr_status): Convert field "x_forced_labels"
18716 from rtx_expr_list * to rtx_insn_list *.
18717
18718 * cfgbuild.c (make_edges): Convert local "x" from an
18719 rtx_expr_list * to an rtx_insn_list *, replacing use of
18720 "element" method with "insn" method.
18721 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
18722 * except.c (sjlj_emit_dispatch_table): Replace use of
18723 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
18724 forced_labels.
18725 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
18726 rtx_expr_list * to an rtx_insn_list *, replacing use of
18727 "element" method with "insn" method.
18728 * reload1.c (set_initial_label_offsets): Likewise for local "x".
18729 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
18730 rtx_insn *, adding a checked cast. Replace use of
18731 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
18732 forced_labels.
18733 (expand_label): Likewise for local "label_r".
18734
18735 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18736
18737 * function.h (struct rtl_data): Convert field
18738 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
18739 rtx_insn_list *.
18740 * rtl.h (remove_node_from_insn_list): New prototype.
18741
18742 * builtins.c (expand_builtin): When prepending to
18743 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
18744 gen_rtx_EXPR_LIST.
18745 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
18746 to rtx_insn_list *, and use its "insn" method rather than
18747 "element" method.
18748 * cfgrtl.c (delete_insn): Use new function
18749 remove_node_from_insn_list rather than
18750 remove_node_from_expr_list.
18751 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
18752 to rtx_insn_list *, and use its "insn" method rather than
18753 "element" method.
18754 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
18755 * reload1.c (set_initial_label_offsets): Likewise for local "x".
18756 * rtlanal.c (remove_node_from_insn_list): New function, adapted
18757 from remove_node_from_expr_list.
18758 * stmt.c (expand_label): When prepending to
18759 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
18760 gen_rtx_EXPR_LIST.
18761
18762 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18763
18764 * function.h (struct rtl_data): Strengthen fields "x_return_label"
18765 and "x_naked_return_label" from rtx to rtx_code_label *.
18766
18767 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18768
18769 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
18770 (SET_NEXT_INSN): Likewise.
18771 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
18772
18773 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
18774 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
18775 to split out the SEQUENCE from local "bundle", strengthening the
18776 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
18777 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
18778 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
18779 and the type of the elements of the "slot" array from rtx to
18780 rtx_insn *.
18781 (reorg_split_calls): Likewise for locals "insn" and "next", and
18782 the type of the elements of the "slot" array.
18783
18784 * config/frv/frv.c (frv_nops): Likewise for the elements of this
18785 array.
18786 (frv_function_prologue): Likewise for locals "insn", "next",
18787 "last_call".
18788 (frv_register_nop): Introduce a local "nop_insn" to be the
18789 rtx_insn * containing rtx "nop".
18790
18791 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
18792 used as an insn and sometimes as a pattern, so rename it to
18793 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
18794 using it where dealing with the core insn.
18795
18796 * config/picochip/picochip.c (reorder_var_tracking_notes):
18797 Strengthen locals "insn", "next", "last_insn", "queue",
18798 "next_queue", "prev" from rtx to rtx_insn *.
18799
18800 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
18801 the second param is an rtx_insn ** rather than an rtx **.
18802 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
18803 from rtx to rtx_sequence *, and introduce local named "sequence",
18804 using methods of rtx_sequence to clarify the code.
18805 (remove_insn): Introduce local rtx_sequence * named "sequence" and
18806 use its methods.
18807 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
18808 Rename param "after" to "uncast_after", reintroducing "after" as a
18809 local rtx_insn * with a checked cast.
18810 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
18811 reintroducing "after" as a local rtx_insn * with a checked cast.
18812 Strengthen local "last" from rtx to rtx_insn * and remove the
18813 now-redundant checked casts.
18814 (copy_delay_slot_insn): Strengthen return type and param from rtx
18815 to rtx_insn *.
18816
18817 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
18818 "last" from rtx to rtx_insn *.
18819
18820 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18821
18822 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
18823 param from rtx to rtx_insn *.
18824
18825 * emit-rtl.c (copy_delay_slot_insn): Likewise.
18826
18827 * reorg.c (skip_consecutive_labels): Strengthen return type, param
18828 and local "insn" from rtx to rtx_insn *.
18829 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
18830 (unfilled_slots_next): Likewise.
18831 (function_return_label): Strengthen from rtx to rtx_code_label *.
18832 (function_simple_return_label): Likewise.
18833 (first_active_target_insn): Strengthen return type and param from
18834 rtx to rtx_insn *.
18835 (find_end_label): Strengthen return type from rtx to
18836 rtx_code_label *; strengthen locals as appropriate.
18837 (emit_delay_sequence): Strengthen return type, param "insn" and
18838 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
18839 and local "li" from rtx to rtx_insn_list *, using methods of
18840 rtx_insn_list for clarity and typesafety.
18841 (add_to_delay_list): Strengthen return type and param "insn" from
18842 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
18843 rtx_insn_list * and use methods of rtx_insn_list.
18844 (delete_from_delay_slot): Strengthen return type, param "insn",
18845 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
18846 Strengthen local "seq" from rtx to rtx_sequence *, and local
18847 "delay_list" from rtx to rtx_insn_list *, using methods of
18848 rtx_sequence for clarity and type-safety.
18849 (delete_scheduled_jump): Add checked cast when invoking
18850 delete_from_delay_slot. Strengthen local "trial" from rtx to
18851 rtx_insn *.
18852 (optimize_skip): Strengthen return type and local "delay_list"
18853 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
18854 rtx_insn *.
18855 (steal_delay_list_from_target): Strengthen return type, param
18856 "delay_list" and local "new_delay_list" from rtx to
18857 rtx_insn_list *. Strengthen param "seq" from rtx to
18858 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
18859 rtx_insn **.
18860 Split out local "temp" into multiple more-tightly scoped locals:
18861 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
18862 of rtx_insn_list and rtx_sequence for clarity and typesafety.
18863 Strengthen locals named "trial" from rtx to rtx_insn *.
18864 (steal_delay_list_from_fallthrough): Strengthen return type and
18865 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
18866 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
18867 Strengthen local "trial" from rtx to rtx_insn *.
18868 (try_merge_delay_insns): Strength local "merged_insns" from rtx
18869 to rtx_insn_list * and use its methods. Strengthen local "pat"
18870 from rtx to rtx_sequence * and use its methods. Strengthen locals
18871 "dtrial" and "new_rtx" from rtx to rtx_insn *.
18872 (get_label_before): Strengthen return type and local "label" from
18873 rtx to rtx_insn *.
18874 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
18875 "next_trial", "next", prev". Strengthen local "delay_list" from
18876 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
18877 rtx_insn **.
18878 (follow_jumps): Strengthen return type, param "label" and locals
18879 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
18880 (fill_slots_from_thread): Strengthen return type, param
18881 "delay_list" from rtx to rtx_insn_list *. Strengthen params
18882 "insn", "thread", "opposite_thread" and locals "new_thread",
18883 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
18884 "sequence" from a checked cast to rtx_sequence so that we can call
18885 steal_delay_list_from_target and steal_delay_list_from_fallthrough
18886 with an rtx_sequence *.
18887 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
18888 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
18889 Strengthen local "delay_list" from rtx to rtx_insn_list *.
18890 (relax_delay_slots): Strengthen param "first" and locals "insn",
18891 "next", "trial", "delay_insn", "target_label" from rtx to
18892 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
18893 Introduce a local "trial_seq" for PATTERN (trial) of type
18894 rtx_sequence *, in both cases using methods of rtx_sequence.
18895 (dbr_schedule): Strengthen param "first" and locals "insn",
18896 "next", "epilogue_insn" from rtx to rtx_insn *.
18897
18898 2014-08-28 Richard Biener <rguenther@suse.de>
18899
18900 PR tree-optimization/62283
18901 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
18902 Do not peel loops for alignment where the vector loop likely
18903 doesn't run at least VF times.
18904
18905 2014-08-28 Bin Cheng <bin.cheng@arm.com>
18906
18907 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
18908 important_candidates. Consider all important candidates if
18909 IVS doesn't give any result. Remove check on ivs->upto.
18910 (try_add_cand_for): Call iv_ca_add_use only once.
18911
18912 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
18913 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18914 Anna Tikhonova <anna.tikhonova@intel.com>
18915 Ilya Tocar <ilya.tocar@intel.com>
18916 Andrey Turetskiy <andrey.turetskiy@intel.com>
18917 Ilya Verbin <ilya.verbin@intel.com>
18918 Kirill Yukhin <kirill.yukhin@intel.com>
18919 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18920
18921 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
18922 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
18923 masking.
18924 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
18925 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
18926 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
18927 (define_insn "*mul<mode>3"): Add EVEX version.
18928
18929 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
18930 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18931 Anna Tikhonova <anna.tikhonova@intel.com>
18932 Ilya Tocar <ilya.tocar@intel.com>
18933 Andrey Turetskiy <andrey.turetskiy@intel.com>
18934 Ilya Verbin <ilya.verbin@intel.com>
18935 Kirill Yukhin <kirill.yukhin@intel.com>
18936 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18937
18938 * config/i386/sse.md
18939 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
18940 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
18941 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
18942 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
18943 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
18944 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
18945 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
18946 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
18947 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
18948 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
18949 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
18950 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
18951 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
18952 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
18953 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
18954 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
18955
18956 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
18957 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18958 Anna Tikhonova <anna.tikhonova@intel.com>
18959 Ilya Tocar <ilya.tocar@intel.com>
18960 Andrey Turetskiy <andrey.turetskiy@intel.com>
18961 Ilya Verbin <ilya.verbin@intel.com>
18962 Kirill Yukhin <kirill.yukhin@intel.com>
18963 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18964
18965 * config/i386/sse.md
18966 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
18967 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
18968 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
18969
18970 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
18971 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18972 Anna Tikhonova <anna.tikhonova@intel.com>
18973 Ilya Tocar <ilya.tocar@intel.com>
18974 Andrey Turetskiy <andrey.turetskiy@intel.com>
18975 Ilya Verbin <ilya.verbin@intel.com>
18976 Kirill Yukhin <kirill.yukhin@intel.com>
18977 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18978
18979 * config/i386/sse.md
18980 (define_mode_iterator VI128_256): New.
18981 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
18982
18983 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
18984 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18985 Anna Tikhonova <anna.tikhonova@intel.com>
18986 Ilya Tocar <ilya.tocar@intel.com>
18987 Andrey Turetskiy <andrey.turetskiy@intel.com>
18988 Ilya Verbin <ilya.verbin@intel.com>
18989 Kirill Yukhin <kirill.yukhin@intel.com>
18990 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18991
18992 * config/i386/sse.md
18993 (define_mode_iterator VI8_256_512): New.
18994 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
18995 Ditto.
18996 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
18997 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
18998 Ditto.
18999 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
19000
19001 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19002
19003 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
19004 pointer to the cumulative reloc value and return the value for
19005 this reloc instead.
19006 (compute_reloc_for_rtx): Take a const_rtx. Call
19007 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
19008 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
19009 for_each_rtx for the CONST case.
19010
19011 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19012
19013 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
19014 (mark_constants_in_pattern): ...this new function to iterate over
19015 all the subrtxes.
19016 (mark_constants): Update accordingly.
19017
19018 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19019
19020 * varasm.c: Include rtl-iter.h.
19021 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
19022 Remove the pointer to the cumulative hashval_t and just return
19023 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
19024 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
19025 Accumulate the hashval_ts here instead of const_rtx_hash_1.
19026
19027 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19028
19029 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
19030 Give real type of data parameter. Remove return value.
19031 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
19032 to iterate over subrtxes.
19033
19034 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19035
19036 * var-tracking.c (use_narrower_mode_test): Turn from being a
19037 for_each_rtx callback to being a function that examines each
19038 subrtx itself.
19039 (adjust_mems): Update accordingly.
19040
19041 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19042
19043 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
19044 callback to being a function that examines each subrtx itself.
19045 Remove handling of null rtxes.
19046 (add_uses): Update accordingly.
19047
19048 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19049
19050 * var-tracking.c: Include rtl-iter.h.
19051 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
19052 to being a function that examines each subrtx itself.
19053 (use_type): Update accordingly.
19054
19055 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19056
19057 * store-motion.c: Include rtl-iter.h.
19058 (extract_mentioned_regs_1): Delete.
19059 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
19060 for_each_rtx to iterate over subrtxes.
19061
19062 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19063
19064 * sel-sched.c: Include rtl-iter.h
19065 (count_occurrences_1): Delete.
19066 (count_occurrences_equiv): Turn rtxes into const_rtxes.
19067 Use FOR_EACH_SUBRTX rather than for_each_rtx.
19068
19069 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19070
19071 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
19072 * rtlanal.c (tls_referenced_p_1): Delete.
19073 (tls_referenced_p): Take a const_rtx rather than an rtx.
19074 Use FOR_EACH_SUBRTX rather than for_each_rtx.
19075
19076 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19077
19078 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
19079 (for_each_inc_dec): Take an rtx rather than an rtx *.
19080 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
19081 (cselib_record_sets): Likewise.
19082 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
19083 (check_for_inc_dec): Likewise.
19084 * rtlanal.c (for_each_inc_dec_ops): Delete.
19085 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
19086 rather than a pointer to the memory address. Replace
19087 for_each_inc_dec_ops argument with separate function and data
19088 arguments. Abort on non-autoinc addresses.
19089 (for_each_inc_dec_find_mem): Delete.
19090 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
19091 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
19092
19093 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19094
19095 * rtl.h (find_all_hard_regs): Declare.
19096 * rtlanal.c (find_all_hard_regs): New function.
19097 (record_hard_reg_uses_1): Delete.
19098 (record_hard_reg_uses): Use find_all_hard_regs.
19099
19100 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19101
19102 * rtl.h (replace_label_data): Delete.
19103 (replace_label): Take the old label, new label and update-nuses flag
19104 as direct arguments. Return void.
19105 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
19106 * rtlanal.c (replace_label): Update interface as above. Handle
19107 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
19108 iterator. Use FOR_EACH_SUBRTX_PTR.
19109
19110 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19111
19112 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
19113 with const_rtx parameters.
19114 * varasm.c (get_pool_constant): Likewise.
19115 * rtlanal.c (rtx_referenced_p_1): Delete.
19116 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
19117 Assert that the rtx we're looking for is nonnull. Allow searches
19118 for constant pool SYMBOL_REFs.
19119
19120 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19121
19122 * reload1.c: Include rtl-iter.h.
19123 (note_reg_elim_costly): Turn from being a for_each_rtx callback
19124 to being a function that examines each subrtx itself.
19125 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
19126
19127 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19128
19129 * regcprop.c (cprop_find_used_regs_1): Delete.
19130 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
19131
19132 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19133
19134 * regcprop.c: Include rtl-iter.h.
19135 (kill_value): Take a const_rtx.
19136 (kill_autoinc_value): Turn from being a for_each_rtx callback
19137 to being a function that examines each subrtx itself.
19138 (copyprop_hardreg_forward_1): Update accordingly.
19139
19140 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19141
19142 * reg-stack.c: Include rtl-iter.h.
19143 (subst_stack_regs_in_debug_insn): Delete.
19144 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
19145 instead of for_each_rtx.
19146
19147 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19148
19149 * lower-subreg.c (find_decomposable_subregs): Turn from being
19150 a for_each_rtx callback to being a function that examines each
19151 subrtx itself. Remove handling of null rtxes.
19152 (decompose_multiword_subregs): Update accordingly.
19153
19154 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19155
19156 * lower-subreg.c (adjust_decomposed_uses): Delete.
19157 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
19158 Remove handling of null rtxes.
19159
19160 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19161
19162 * lower-subreg.c: Include rtl-iter.h.
19163 (resolve_subreg_use): Turn from being a for_each_rtx callback
19164 to being a function that examines each subrtx itself. Remove
19165 handling of null rtxes.
19166 (resolve_reg_notes, resolve_simple_move): Update accordingly.
19167 (decompose_multiword_subregs): Likewise.
19168
19169 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19170
19171 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
19172 to being a function that examines each subrtx itself.
19173 (simplify_using_condition, simplify_using_initial_values): Update
19174 accordingly.
19175
19176 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19177
19178 * loop-iv.c: Include rtl-iter.h.
19179 (find_single_def_src): New function.
19180 (replace_single_def_regs): Turn from being a for_each_rtx callback
19181 to being a function that examines each subrtx itself.
19182 (replace_in_expr, simplify_using_initial_values): Update accordingly.
19183
19184 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19185
19186 * jump.c (eh_returnjump_p_1): Delete.
19187 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
19188 Remove handling of null rtxes.
19189
19190 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19191
19192 * jump.c: Include rtl-iter.h.
19193 (returnjump_p_1): Delete.
19194 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
19195 Remove handling of null rtxes.
19196
19197 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19198
19199 * ira.c: Include rtl-iter.h.
19200 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
19201 to being a function that examines each subrtx itself. Remove
19202 handling of null rtxes.
19203 (update_equiv_regs): Update call accordingly.
19204
19205 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19206
19207 * fwprop.c: Include rtl-iter.h.
19208 (varying_mem_p): Turn from being a for_each_rtx callback to being
19209 a function that examines each subrtx itself.
19210 (propagate_rtx): Update accordingly.
19211
19212 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19213
19214 * function.c: Include rtl-iter.h
19215 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
19216 callback to being a function that examines each subrtx itself.
19217 Return the changed flag.
19218 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
19219 (instantiate_virtual_regs): Update calls accordingly.
19220
19221 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19222
19223 * final.c: Include rtl-iter.h.
19224 (mark_symbol_ref_as_used): Delete.
19225 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
19226 for_each_rtx.
19227
19228 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19229
19230 * emit-rtl.c: Include rtl-iter.h.
19231 (find_auto_inc): Turn from being a for_each_rtx callback to being
19232 a function that examines each subrtx itself. Assume the first operand
19233 to an RTX_AUTOINC is the automodified register.
19234 (try_split): Update call accordingly.
19235
19236 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19237
19238 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
19239 Return a bool, inverting the result so that 0/false means "not ok".
19240 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
19241 subrtxes of a CONST.
19242 (mem_loc_descriptor, add_const_value_attribute)
19243 (resolve_addr_in_expr): Update calls accordingly.
19244
19245 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19246
19247 * dwarf2out.c: Include rtl-iter.h.
19248 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
19249 Remove unused data parameter. Return a bool, inverting the result
19250 so that 0/false means "not ok".
19251 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
19252 instead of for_each_rtx.
19253
19254 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19255
19256 * dse.c: Include rtl-iter.h.
19257 (check_mem_read_rtx): Change void * parameter to real type.
19258 Remove return value.
19259 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
19260 for_each_rtx. Don't handle null rtxes.
19261
19262 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19263
19264 * df-problems.c: Include rtl-iter.h.
19265 (find_memory): Turn from being a for_each_rtx callback to being
19266 a function that examines each subrtx itself. Continue to look for
19267 volatile references even after a nonvolatile one has been found.
19268 (can_move_insns_across): Update calls accordingly.
19269
19270 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19271
19272 * ddg.c (walk_mems_2, walk_mems_1): Delete.
19273 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
19274 to iterate over subrtxes. Return a bool rather than an int.
19275
19276 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19277
19278 * ddg.c: Include rtl-iter.h.
19279 (mark_mem_use_1): Rename to...
19280 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
19281 instead of for_each_rtx.
19282 (mem_read_insn_p): Update accordingly.
19283
19284 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19285
19286 * cse.c (change_cc_mode_args): Delete.
19287 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
19288 a function that examines each subrtx itself. Take the fields of
19289 change_cc_mode_args as argument and return void.
19290 (cse_change_cc_mode_insn): Update calls accordingly.
19291
19292 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19293
19294 * cse.c (is_dead_reg): Change argument to const_rtx.
19295 (dead_debug_insn_data): Delete.
19296 (is_dead_debug_insn): Expand commentary. Turn from being a
19297 for_each_rtx callback to being a function that examines
19298 each subrtx itself. Take the fields of dead_debug_insn_data
19299 as argument.
19300 (delete_trivially_dead_insns): Update call accordingly.
19301
19302 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19303
19304 * cse.c (check_for_label_ref): Move earlier in file. Turn from
19305 being a for_each_rtx callback to being a function that examines
19306 each subrtx itself.
19307 (cse_extended_basic_block): Update call accordingly.
19308
19309 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19310
19311 * cse.c (check_dependence_data): Delete.
19312 (check_dependence): Change from being a for_each_rtx callback to being
19313 a function that examines all subrtxes itself. Don't handle null rtxes.
19314 (invalidate): Update call accordingly.
19315
19316 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19317
19318 * cse.c: Include rtl-iter.h.
19319 (approx_reg_cost_1): Delete.
19320 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
19321 Don't handle null rtxes.
19322
19323 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19324
19325 * cfgcleanup.c: Include rtl-iter.h.
19326 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
19327 to being a function that examines each subrtx itself.
19328 (thread_jump): Update accordingly.
19329
19330 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19331
19332 * combine-stack-adj.c: Include rtl-iter.h.
19333 (record_stack_refs_data): Delete.
19334 (record_stack_refs): Turn from being a for_each_rtx callback
19335 to being a function that examines each subrtx itself.
19336 Take a pointer to the reflist. Invert sense of return value
19337 so that true means success and false means failure. Don't
19338 handle null rtxes.
19339 (combine_stack_adjustments_for_block): Update accordingly.
19340
19341 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19342
19343 * combine.c (record_truncated_value): Turn from being a for_each_rtx
19344 callback to a function that takes an rtx and returns a bool
19345 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
19346 for_each_rtx.
19347
19348 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19349
19350 * combine.c: Include rtl-iter.h.
19351 (unmentioned_reg_p_1): Delete.
19352 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
19353 Don't handle null rtxes.
19354
19355 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19356
19357 * calls.c: Include rtl-iter.h.
19358 (internal_arg_pointer_based_exp_1): Delete.
19359 (internal_arg_pointer_based_exp): Take a const_rtx.
19360 Use FOR_EACH_SUBRTX to iterate over subrtxes.
19361
19362 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19363
19364 * caller-save.c: Include rtl-iter.h.
19365 (add_used_regs_1): Delete.
19366 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
19367 to iterate over subrtxes. Assert that any remaining pseudos
19368 have been spilled.
19369
19370 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19371
19372 * bt-load.c: Include rtl-iter.h.
19373 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
19374 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
19375 to iterate over subrtxes.
19376 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
19377 find_btr_use rather than btr_referenced_p.
19378
19379 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19380
19381 * alias.c: Include rtl-iter.h.
19382 (refs_newer_value_cb): Delete.
19383 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
19384
19385 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19386
19387 * rtl-iter.h: New file.
19388 * rtlanal.c: Include it.
19389 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
19390 (generic_subrtx_iterator <T>::add_single_to_queue)
19391 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
19392 (generic_subrtx_iterator <T>::free_array): New functions.
19393 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
19394 (generic_subrtx_iterator <const_rtx_accessor>)
19395 (generic_subrtx_iterator <rtx_var_accessor>
19396 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
19397 (setup_reg_subrtx_bounds): New function.
19398 (init_rtlanal): Call it.
19399
19400 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
19401
19402 PR target/62261
19403 * config/sh/sh.md (ashlsi3): Handle negative shift count for
19404 TARGET_SHMEDIA.
19405 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
19406
19407 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
19408
19409 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
19410
19411 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19412
19413 * rtl.h (JUMP_LABEL_AS_INSN): New.
19414
19415 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19416
19417 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
19418 rtx_expr_list **.
19419 (alloc_EXPR_LIST): Strengthen return type from rtx to
19420 rtx_expr_list *.
19421 (remove_free_EXPR_LIST_node): Likewise for param.
19422 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
19423 from rtx to rtx_expr_list *.
19424 * sched-int.h (struct deps_desc): Strengthen fields
19425 "pending_read_mems" and "pending_write_mems" from rtx to
19426 rtx_expr_list *.
19427
19428 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
19429 rtx to rtx_expr_list *.
19430 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
19431 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
19432 rtx_expr_list **.
19433 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
19434 from rtx to rtx_expr_list *.
19435 * loop-iv.c (simplify_using_initial_values): Strengthen local
19436 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
19437 "pnote_next" from rtx * to rtx_expr_list **.
19438 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
19439 param "exprp" from rtx * to rtx_expr_list **.
19440 (add_insn_mem_dependence): Strengthen local "mem_list" from
19441 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
19442 to rtx_expr_list *.
19443 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
19444 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
19445 param "old_mems_p" from rtx * to rtx_expr_list **.
19446 * var-tracking.c (struct adjust_mem_data): Strengthen field
19447 "side_effects" from rtx to rtx_expr_list *.
19448 (adjust_insn): Replace NULL_RTX with NULL when assigning to
19449 rtx_expr_list *.
19450 (prepare_call_arguments): Likewise.
19451
19452 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19453
19454 * function.h (struct rtl_data): Strengthen field
19455 "x_stack_slot_list" from rtx to rtx_expr_list *.
19456
19457 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
19458 when assigning to stack_slot_list.
19459
19460 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19461
19462 * function.h (struct rtl_data): Strengthen field
19463 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
19464 * rtl.h (remove_node_from_expr_list): Strengthen second param from
19465 rtx * to rtx_expr_list **.
19466
19467 * cfgbuild.c (make_edges): In loop over
19468 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
19469 rtx_expr_list *, and use methods of the latter class to clarify
19470 the code.
19471 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
19472 rtx_expr_list *, and use methods of the latter class to clarify
19473 the code.
19474 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
19475 * reload1.c (set_initial_label_offsets): Likewise for local "x".
19476 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
19477 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
19478 to rtx_expr_list *. Use methods of the latter class to clarify
19479 the code.
19480
19481 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19482
19483 * function.h (struct expr_status): Strengthen field
19484 "x_forced_labels" from rtx to rtx_expr_list *.
19485
19486 * cfgbuild.c (make_edges): Split local "x" into two locals,
19487 strengthening one from rtx to rtx_expr_list *, and using methods
19488 of said class.
19489 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
19490 loop over forced_labels, introduce strengthen it from rtx to
19491 rtx_expr_list *, using methods to clarify the code.
19492 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
19493 to rtx_expr_list *, using methods of said class to clarify the
19494 code.
19495 * reload1.c (set_initial_label_offsets): Split local "x" into two
19496 per-loop variables, strengthening the first from rtx to
19497 rtx_expr_list * and using methods.
19498
19499 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19500
19501 * coretypes.h (class rtx_expr_list): Add forward declaration.
19502 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
19503 * gengenrtl.c (special_rtx): Add EXPR_LIST.
19504 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
19505 invariant: GET_CODE (X) == EXPR_LIST.
19506 (is_a_helper <rtx_expr_list *>::test): New.
19507 (rtx_expr_list::next): New.
19508 (rtx_expr_list::element): New.
19509 (gen_rtx_EXPR_LIST): New.
19510
19511 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19512
19513 * varasm.c (mark_constants): Convert a GET_CODE check into a
19514 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
19515 Use methods of rtx_sequence to clarify the code.
19516
19517 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19518
19519 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
19520 local "seq" via a checked cast, and use methods of rtx_sequence
19521 to simplify the code.
19522
19523 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19524
19525 * resource.c (mark_referenced_resources): Strengthen local
19526 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
19527 using methods of rtx_sequence to clarify the code.
19528 (find_dead_or_set_registers): Within the switch statement, convert
19529 a GET_CODE check to a dyn_cast, introducing local "seq". Within
19530 the JUMP_P handling, introduce another local "seq", adding a
19531 checked cast to rtx_sequence *. In both cases, use methods of
19532 rtx_sequence to clarify the code.
19533 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
19534 via a checked cast, and use methods of rtx_sequence to simplify
19535 the code.
19536
19537 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19538
19539 * reorg.c (redundant_insn): In two places in the function, replace
19540 a check of GET_CODE with a dyn_cast, introducing local "seq", and
19541 usings methods of rtx_sequence to clarify the code.
19542
19543 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19544
19545 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
19546 local "seq" with a checked cast, and use methods of rtx_sequence
19547 to clarify the code.
19548
19549 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19550
19551 * function.c (contains): Introduce local "seq" for PATTERN (insn),
19552 with a checked cast, in the region for where we know it's a
19553 SEQUENCE. Use methods of rtx_sequence.
19554
19555 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19556
19557 * final.c (get_attr_length_1): Replace GET_CODE check with a
19558 dyn_cast, introducing local "seq" and the use of methods of
19559 rtx_sequence.
19560 (shorten_branches): Likewise, introducing local "body_seq".
19561 Strengthen local "inner_insn" from rtx to rtx_insn *.
19562 (reemit_insn_block_notes): Replace GET_CODE check with a
19563 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
19564 Use methods of rtx_sequence.
19565 (final_scan_insn): Likewise, introducing local "seq" for when
19566 "body" is known to be a SEQUENCE, using its methods.
19567
19568 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19569
19570 * except.c (can_throw_external): Strengthen local "seq" from rtx
19571 to rtx_sequence *. Use methods of rtx_sequence.
19572 (insn_nothrow_p): Likewise.
19573
19574 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19575
19576 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
19577 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
19578 Use methods of rtx_sequence.
19579 (scan_trace): Likewise for local "pat".
19580
19581 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19582
19583 * coretypes.h (class rtx_sequence): Add forward declaration.
19584 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
19585 invariant: GET_CODE (X) == SEQUENCE.
19586 (is_a_helper <rtx_sequence *>::test): New.
19587 (is_a_helper <const rtx_sequence *>::test): New.
19588 (rtx_sequence::len): New.
19589 (rtx_sequence::element): New.
19590 (rtx_sequence::insn): New.
19591
19592 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19593
19594 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
19595 rtx_insn_list **.
19596 (alloc_INSN_LIST): Strengthen return type from rtx to
19597 rtx_insn_list *.
19598 (copy_INSN_LIST): Likewise for return type and param.
19599 (concat_INSN_LIST): Likewise for both params and return type.
19600 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
19601 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
19602 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
19603 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
19604
19605 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
19606 "implicit_sets", "control_uses", "clobbers" from rtx to
19607 rtx_insn_list *.
19608 (struct deps_desc): Likewise for fields "pending_read_insns",
19609 "pending_write_insns", "pending_jump_insns",
19610 "last_pending_memory_flush", "last_function_call",
19611 "last_function_call_may_noreturn", "sched_before_next_call",
19612 "sched_before_next_jump".
19613 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
19614 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
19615
19616 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
19617 from rtx to rtx_insn_list *.
19618 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
19619 rtx_insn_list *.
19620
19621 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
19622 to rtx_insn_list **.
19623 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
19624 rtx_insn_list *.
19625 (queue_insn): Likewise for local "link".
19626 (struct haifa_saved_data): Strengthen field "insn_queue" from
19627 rtx * to rtx_insn_list **.
19628 (save_backtrack_point): Update allocation of save->insn_queue to
19629 reflect the strengthening of elements from rtx to rtx_insn_list *.
19630 (queue_to_ready): Strengthen local "link" from rtx to
19631 rtx_insn_list *; use methods "next" and "insn" when traversing the
19632 list.
19633 (early_queue_to_ready): Likewise for locals "link", "next_link",
19634 "prev_link".
19635 (schedule_block): Update allocation of insn_queue to reflect the
19636 strengthening of elements from rtx to rtx_insn_list *. Strengthen
19637 local "link" from rtx to rtx_insn_list *, and use methods when
19638 working it.
19639 (add_to_speculative_block): Strengthen locals "twins" and
19640 "next_node" from rtx to rtx_insn_list *, and use methods when
19641 working with them. Strengthen local "twin" from rtx to
19642 rtx_insn *, eliminating a checked cast.
19643 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
19644 from rtx to rtx_insn_list *, and use methods when working with
19645 them.
19646
19647 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
19648 from rtx to rtx_insn_list *, adding a checked cast.
19649 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
19650 rtx_insn_list **.
19651 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
19652 "newlink" from rtx to rtx_insn_list *. Strengthen local
19653 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
19654 from rtx to rtx_insn *.
19655 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
19656 from rtx to rtx_insn_list *. Use methods of the latter class.
19657 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
19658 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
19659 (remove_free_INSN_LIST_node): Strengthen return type and local
19660 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
19661 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
19662 rtx_insn_list *, using "insn" method.
19663
19664 * sched-deps.c (add_dependence_list): Strengthen param "list"
19665 from rtx to rtx_insn_list *, and use methods when working with it.
19666 (add_dependence_list_and_free): Strengthen param "listp" from
19667 rtx * to rtx_insn_list **.
19668 (remove_from_dependence_list): Strenghten param "listp" from rtx *
19669 to rtx_insn_list **, and use methods when working with *listp.
19670 (remove_from_both_dependence_lists): Strengthen param "listp" from
19671 rtx * to rtx_insn_list **
19672 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
19673 to rtx_insn_list **. Eliminate local "link", in favor of two new
19674 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
19675 respectively.
19676 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
19677 by introducing local "cond_deps".
19678 (remove_from_deps): Strengthen param "insn" from rtx to
19679 rtx_insn *.
19680
19681 * sched-rgn.c (concat_insn_mem_list): Strengthen param
19682 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
19683 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
19684 Use methods of rtx_insn_list.
19685
19686 * store-motion.c (struct st_expr): Strengthen fields
19687 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
19688 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
19689 rtx_insn_list *.
19690 (find_moveable_store): Split out "tmp" into multiple more-tightly
19691 scoped locals. Use methods of rtx_insn_list *.
19692 (compute_store_table): Strengthen local "tmp" from rtx to
19693 rtx_insn *. Use methods of rtx_insn_list *.
19694
19695 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19696
19697 * coretypes.h (class rtx_insn_list): Add forward declaration.
19698 * rtl.h (class rtx_insn_list): New subclass of rtx_def
19699 (is_a_helper <rtx_insn_list *>::test): New.
19700 (rtx_insn_list::next): New.
19701 (rtx_insn_list::insn): New.
19702 (gen_rtx_INSN_LIST): Add prototype.
19703 * emit-rtl.c (gen_rtx_INSN_LIST): New.
19704 * gengenrtl.c (special_rtx): Add INSN_LIST.
19705
19706 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19707
19708 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
19709 "prev" from rtx to rtx_insn *.
19710
19711 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19712
19713 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
19714 functions. Require merely an rtx for now, not an rtx_insn *.
19715 (BLOCK_FOR_INSN): Likewise.
19716 (INSN_LOCATION): Likewise.
19717 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
19718
19719 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19720
19721 * rtl.h (PATTERN): Convert this macro into a pair of inline
19722 functions, for now, requiring const_rtx and rtx.
19723
19724 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19725
19726 * target.def (unwind_emit): Strengthen param "insn" from rtx to
19727 rtx_insn *.
19728 (final_postscan_insn): Likewise.
19729 (adjust_cost): Likewise.
19730 (adjust_priority): Likewise.
19731 (variable_issue): Likewise.
19732 (macro_fusion_pair_p): Likewise.
19733 (dfa_post_cycle_insn): Likewise.
19734 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
19735 (first_cycle_multipass_issue): Likewise.
19736 (dfa_new_cycle): Likewise.
19737 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
19738 (speculate_insn): Likewise for param "insn".
19739 (gen_spec_check): Likewise for params "insn" and "label".
19740 (get_insn_spec_ds): Likewise for param "insn".
19741 (get_insn_checked_ds): Likewise.
19742 (dispatch_do): Likewise.
19743 (dispatch): Likewise.
19744 (cannot_copy_insn_p): Likewise.
19745 (invalid_within_doloop): Likewise.
19746 (legitimate_combined_insn): Likewise.
19747 (needed): Likewise.
19748 (after): Likewise.
19749
19750 * doc/tm.texi: Automatically updated to reflect changes to
19751 target.def.
19752
19753 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
19754 working with insn.
19755 (schedule_block): Likewise.
19756 (sched_init): Likewise.
19757 (sched_speculate_insn): Strengthen param "insn" from rtx to
19758 rtx_insn *.
19759 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
19760 working with insn.
19761 * hooks.c (hook_bool_rtx_true): Rename to...
19762 hook_bool_rtx_insn_true): ...this, and strengthen first param from
19763 rtx to rtx_insn *.
19764 (hook_constcharptr_const_rtx_null): Rename to...
19765 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
19766 first param from const_rtx to const rtx_insn *.
19767 (hook_bool_rtx_int_false): Rename to...
19768 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
19769 param from rtx to rtx_insn *.
19770 (hook_void_rtx_int): Rename to...
19771 (hook_void_rtx_insn_int): ...this, and strengthen first param from
19772 rtx to rtx_insn *.
19773
19774 * hooks.h (hook_bool_rtx_true): Rename to...
19775 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
19776 rtx to rtx_insn *.
19777 (hook_bool_rtx_int_false): Rename to...
19778 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
19779 param from rtx to rtx_insn *.
19780 (hook_void_rtx_int): Rename to...
19781 (hook_void_rtx_insn_int): ...this, and strengthen first param from
19782 rtx to rtx_insn *.
19783 (hook_constcharptr_const_rtx_null): Rename to...
19784 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
19785 first param from const_rtx to const rtx_insn *.
19786
19787 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
19788 and local "prev" from rtx to rtx_insn *.
19789
19790 * sched-int.h (sched_speculate_insn): Strengthen first param from
19791 rtx to rtx_insn *.
19792
19793 * sel-sched.c (create_speculation_check): Likewise for local "label".
19794 * targhooks.c (default_invalid_within_doloop): Strengthen param
19795 "insn" from const_rtx to const rtx_insn *.
19796 * targhooks.h (default_invalid_within_doloop): Strengthen param
19797 from const_rtx to const rtx_insn *.
19798
19799 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
19800 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
19801
19802 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
19803 "insn".
19804 (arc_invalid_within_doloop): Likewise, with const.
19805
19806 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
19807 (arm_cannot_copy_insn_p): Likewise for param "insn".
19808 (arm_unwind_emit): Likewise.
19809
19810 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
19811 "dep_insn".
19812
19813 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
19814 (c6x_variable_issue): Likewise. Removed now-redundant checked
19815 cast.
19816 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
19817
19818 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
19819 Likewise for param "insn".
19820 (epiphany_mode_after): Likewise.
19821 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
19822 params "insn", "dep_insn".
19823 (epiphany_mode_needed): Likewise for param "insn".
19824 (epiphany_mode_after): Likewise.
19825
19826 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
19827 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19828 (ix86_avx_u128_mode_needed): Likewise.
19829 (ix86_i387_mode_needed): Likewise.
19830 (ix86_mode_needed): Likewise.
19831 (ix86_avx_u128_mode_after): Likewise.
19832 (ix86_mode_after): Likewise.
19833 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
19834 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
19835 (ix86_adjust_priority): Likewise for param "insn".
19836 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
19837 (do_dispatch): Likewise.
19838 (has_dispatch): Likewise.
19839 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
19840
19841 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
19842 reflect renaming of default hook implementation from
19843 hook_constcharptr_const_rtx_null to
19844 hook_constcharptr_const_rtx_insn_null.
19845 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
19846 rtx to rtx_insn *.
19847 (ia64_variable_issue): Likewise for param "insn".
19848 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
19849 (ia64_dfa_new_cycle): Likewise.
19850 (ia64_get_insn_spec_ds): Likewise.
19851 (ia64_get_insn_checked_ds): Likewise.
19852 (ia64_speculate_insn): Likewise.
19853 (ia64_gen_spec_check): Likewise for params "insn", "label".
19854 (ia64_asm_unwind_emit): Likewise for param "insn".
19855
19856 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
19857
19858 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
19859 "insn", "def_insn".
19860 (m68k_sched_variable_issue): Likewise for param "insn".
19861
19862 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
19863 "def_insn".
19864
19865 * config/microblaze/microblaze.c (microblaze_adjust_cost):
19866 Likewise for params "insn", "dep".
19867
19868 * config/mips/mips.c (mips_adjust_cost): Likewise.
19869 (mips_variable_issue): Likewise for param "insn".
19870 (mips_final_postscan_insn): Likewise.
19871
19872 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
19873 for params "insn", "dep".
19874
19875 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
19876 "dep_insn".
19877 (pa_adjust_priority): Likewise for param "insn".
19878
19879 * config/picochip/picochip.c (picochip_sched_adjust_cost):
19880 Likewise for params "insn", "dep_insn".
19881
19882 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
19883 param "insn".
19884 (rs6000_variable_issue): Likewise.
19885 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
19886 (rs6000_debug_adjust_cost): Likewise.
19887 (rs6000_adjust_priority): Likewise for param "insn".
19888 (rs6000_use_sched_lookahead_guard): Likewise.
19889 (get_next_active_insn): Likewise for return type and both params.
19890 (redefine_groups): Likewise for params "prev_head_insn", "tail"
19891 and locals "insn", "next_insn".
19892 (pad_groups): Likewise.
19893
19894 * config/s390/s390.c (s390_adjust_priority): Likewise for param
19895 "insn".
19896 (s390_cannot_copy_insn_p): Likewise.
19897 (s390_sched_variable_issue): Likewise for third param, eliminating
19898 checked cast.
19899 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
19900 default hook implementation from hook_constcharptr_const_rtx_null
19901 to hook_constcharptr_const_rtx_insn_null.
19902
19903 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
19904 from rtx to rtx_insn *.
19905 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
19906 (sh_variable_issue): Likewise for param "insn".
19907 (sh_dfa_new_cycle): Likewise.
19908 (sh_mode_needed): Likewise.
19909 (sh_mode_after): Likewise.
19910
19911 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
19912 params "insn", "dep_insn".
19913 (hypersparc_adjust_cost): Likewise.
19914 (sparc_adjust_cost): Likewise.
19915
19916 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
19917 param, eliminated checked cast.
19918 (spu_sched_adjust_cost): Likewise for first and third params.
19919
19920 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
19921 params "insn" and "dep_insn" from rtx to rtx_insn *.
19922
19923 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
19924
19925 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19926
19927 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
19928 (set_is_load_p): ...this, updating to work on a SET pattern rather
19929 than an insn.
19930 (is_store_insn): Rename to...
19931 (set_is_store_p): ...this, updating to work on a SET pattern
19932 rather than an insn.
19933 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
19934 top of function to where it is needed. Rewrite the bogus
19935 condition that checks for "insn" and "dep" being PARALLEL to
19936 instead use single_set, introducing locals "insn_set" and
19937 "dep_set". Given that we only ever returned "cost" for a non-pair
19938 of SETs, bail out early if we don't have a pair of SET.
19939 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
19940 use the new locals "insn_set" and "dep_set", and update calls to
19941 is_load_insn and is_store_insn to be calls to set_is_load_p and
19942 set_is_store_p.
19943
19944 2014-08-27 Guozhi Wei <carrot@google.com>
19945
19946 PR target/62262
19947 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
19948 amount before using it.
19949
19950 2014-08-27 Richard Biener <rguenther@suse.de>
19951
19952 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
19953 get_maxval_strlen inside a more useful API.
19954 (gimple_fold_builtin_with_strlen): Remove and fold into ...
19955 (gimple_fold_builtin): ... caller.
19956 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
19957 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
19958 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
19959 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
19960 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
19961 gimple_fold_builtin_sprintf): Adjust to compute maxval
19962 themselves.
19963
19964 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
19965
19966 PR other/62248
19967 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
19968
19969 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
19970 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19971 Anna Tikhonova <anna.tikhonova@intel.com>
19972 Ilya Tocar <ilya.tocar@intel.com>
19973 Andrey Turetskiy <andrey.turetskiy@intel.com>
19974 Ilya Verbin <ilya.verbin@intel.com>
19975 Kirill Yukhin <kirill.yukhin@intel.com>
19976 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19977
19978 * config/i386/sse.md
19979 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
19980 Use `concat_tg_mode' attribute to determine asm register size.
19981
19982 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
19983 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19984 Anna Tikhonova <anna.tikhonova@intel.com>
19985 Ilya Tocar <ilya.tocar@intel.com>
19986 Andrey Turetskiy <andrey.turetskiy@intel.com>
19987 Ilya Verbin <ilya.verbin@intel.com>
19988 Kirill Yukhin <kirill.yukhin@intel.com>
19989 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19990
19991 * config/i386/sse.md
19992 (define_mode_iterator VI48_AVX512VL): New.
19993 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
19994 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
19995 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
19996 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
19997 with VI1): Change mode iterator.
19998 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
19999 with VI_ULOADSTORE_BW_AVX512VL): New.
20000 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
20001 with VI_ULOADSTORE_F_AVX512VL): Ditto.
20002 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
20003 with VI1): Change mode iterator.
20004 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
20005 with VI_ULOADSTORE_BW_AVX512VL): New.
20006 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
20007 with VI_ULOADSTORE_F_AVX512VL): Ditto.
20008 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
20009 with VI1): Change mode iterator.
20010 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
20011 with VI_ULOADSTORE_BW_AVX512VL): New.
20012 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
20013 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
20014 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
20015 (define_insn "<avx512>_storedqu<mode>_mask" with
20016 VI48_AVX512VL): New.
20017 (define_insn "<avx512>_storedqu<mode>_mask" with
20018 VI12_AVX512VL): Ditto.
20019
20020 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
20021 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20022 Anna Tikhonova <anna.tikhonova@intel.com>
20023 Ilya Tocar <ilya.tocar@intel.com>
20024 Andrey Turetskiy <andrey.turetskiy@intel.com>
20025 Ilya Verbin <ilya.verbin@intel.com>
20026 Kirill Yukhin <kirill.yukhin@intel.com>
20027 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20028
20029 * config/i386/sse.md
20030 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
20031 (define_mode_iterator VI48_AVX512BW): New.
20032 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
20033 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
20034 with VI48_AVX2_48_AVX512F): New.
20035 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
20036 with VI2_AVX512VL): Ditto.
20037
20038 2014-08-27 Richard Biener <rguenther@suse.de>
20039
20040 PR middle-end/62239
20041 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
20042 (fold_builtin_3): Do not fold strcat_chk here.
20043 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
20044 from builtins.c.
20045 (gimple_fold_builtin): Fold strcat_chk here.
20046
20047 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
20048
20049 * dwarf2out.h (dwarf2out_decl): Remove prototype.
20050 * dwarf2out.c (dwarf2out_decl): Make static.
20051
20052 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
20053
20054 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
20055
20056 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20057
20058 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
20059 from rtx to rtx_insn *.
20060 (cselib_lookup_from_insn): Likewise for final param.
20061 (cselib_subst_to_values_from_insn): Likewise.
20062 (cselib_add_permanent_equiv): Likewise.
20063
20064 * cselib.c (cselib_current_insn): Likewise for this variable.
20065 (cselib_subst_to_values_from_insn): Likewise for param "insn".
20066 (cselib_lookup_from_insn): Likewise.
20067 (cselib_add_permanent_equiv): Likewise for param "insn" and local
20068 "save_cselib_current_insn".
20069 (cselib_process_insn): Replace use of NULL_RTX with NULL.
20070
20071 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
20072 from rtx to rtx_insn *.
20073
20074 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20075
20076 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
20077 rtx_insn *.
20078
20079 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20080
20081 * df.h (df_dump_insn_problem_function): Strengthen first param of
20082 this callback from const_rtx to const rtx_insn *.
20083 (struct df_insn_info): Strengthen field "insn" from rtx to
20084 rtx_insn *.
20085 (DF_REF_INSN): Eliminate this function, reinstating the older
20086 macro definition.
20087 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
20088 (df_reg_defined): Likewise.
20089 (df_find_use): Likewise.
20090 (df_reg_used): Likewise.
20091 (df_dump_insn_top): Strengthen param 1 from const_rtx to
20092 const rtx_insn *.
20093 (df_dump_insn_bottom): Likewise.
20094 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
20095 (df_insn_debug_regno): Likewise.
20096 (debug_df_insn): Likewise.
20097 (df_rd_simulate_one_insn): Likewise for param 2.
20098 (df_word_lr_simulate_defs): Likewise for param 1.
20099 (df_word_lr_simulate_uses): Likewise.
20100 (df_md_simulate_one_insn): Likewise for param 2.
20101 (df_simulate_find_noclobber_defs): Likewise for param 1.
20102 (df_simulate_find_defs): Likewise.
20103 (df_simulate_defs): Likewise.
20104 (df_simulate_uses): Likewise.
20105 (df_simulate_one_insn_backwards): Likewise for param 2.
20106 (df_simulate_one_insn_forwards): Likewise.
20107 (df_uses_create): Likewise for param 2.
20108 (df_insn_create_insn_record): Likewise for param 1.
20109 (df_insn_delete): Likewise.
20110 (df_insn_rescan): Likewise.
20111 (df_insn_rescan_debug_internal): Likewise.
20112 (df_insn_change_bb): Likewise.
20113 (df_notes_rescan): Likewise.
20114 * rtl.h (remove_death): Likewise for param 2.
20115 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
20116 const rtx_insn *.
20117 * sched-int.h (reemit_notes): Strengthen param from rtx to
20118 rtx_insn *.
20119 * valtrack.h (propagate_for_debug): Likewise for param 1.
20120
20121 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
20122 local "tmp_rtx" from const_rtx to const rtx_insn *.
20123 * combine.c (remove_death): Strengthen param "insn" from rtx to
20124 rtx_insn *.
20125 (move_deaths): Likewise for local "where_dead".
20126 * cse.c (delete_trivially_dead_insns): Introduce local
20127 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
20128 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
20129 rtx_insn *.
20130 (df_reg_defined): Likewise.
20131 (df_find_use): Likewise.
20132 (df_reg_used): Likewise.
20133 (df_dump_insn_problem_data): Strengthen param "insn" from
20134 const_rtx to const rtx_insn *.
20135 (df_dump_insn_top): Likewise.
20136 (df_dump_insn_bottom): Likewise.
20137 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
20138 (df_insn_debug_regno): Likewise.
20139 (debug_df_insn): Likewise.
20140 (DF_REF_INSN): Delete.
20141 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
20142 from rtx to rtx_insn *.
20143 (df_chain_insn_top_dump): Strengthen param "insn" from
20144 const_rtx to const rtx_insn *.
20145 (df_chain_insn_bottom_dump): Likewise.
20146 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
20147 rtx_insn *.
20148 (df_word_lr_simulate_uses): Likewise.
20149 (df_print_note): Likewise.
20150 (df_remove_dead_and_unused_notes): Likewise.
20151 (df_set_unused_notes_for_mw): Likewise.
20152 (df_set_dead_notes_for_mw): Likewise.
20153 (df_create_unused_note): Likewise.
20154 (df_simulate_find_defs): Likewise.
20155 (df_simulate_find_uses): Likewise.
20156 (df_simulate_find_noclobber_defs): Likewise.
20157 (df_simulate_defs): Likewise.
20158 (df_simulate_uses): Likewise.
20159 (df_simulate_one_insn_backwards): Likewise.
20160 (df_simulate_one_insn_forwards): Likewise.
20161 (df_md_simulate_one_insn): Likewise.
20162 * df-scan.c (df_uses_create): Likewise.
20163 (df_insn_create_insn_record): Likewise.
20164 (df_insn_delete): Likewise.
20165 (df_insn_rescan): Likewise.
20166 (df_insn_rescan_debug_internal): Likewise.
20167 (df_insn_change_bb): Likewise.
20168 (df_notes_rescan): Likewise.
20169 (df_refs_add_to_chains): Likewise.
20170 (df_insn_refs_verify): Likewise.
20171 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
20172 when invoking df_insn_delete.
20173 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
20174 (set_unique_reg_note): Add checked cast.
20175 * final.c (cleanup_subreg_operands): Likewise.
20176 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
20177 "insn" from rtx to rtx_insn *.
20178 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
20179 "last" from rtx to rtx_insn *.
20180 * ira-emit.c (change_regs_in_insn): New function.
20181 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
20182 Invoke change_regs_in_insn rather than change_regs.
20183 * ira.c (update_equiv_regs): Strengthen locals "insn",
20184 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
20185 for_each_rtx_in_insn rather than for_each_rtx.
20186 * recog.c (confirm_change_group): Add checked casts.
20187 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
20188 Add checked cast.
20189 (peep2_fill_buffer): Add checked cast.
20190 * rtlanal.c (remove_note): Likewise.
20191 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
20192 locals "next" "end" from rtx to rtx_insn *.
20193
20194 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20195
20196 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
20197 to rtx_insn *.
20198 (struct reg_use_data): Likewise for field "insn".
20199 (insn_cost): Likewise for param.
20200 (real_insn_for_shadow): Likewise for return type and param.
20201 (increase_insn_priority): Likewise for param 1.
20202 (debug_dependencies): Likewise for both params.
20203
20204 * haifa-sched.c (insn_delay): Likewise for param "insn".
20205 (real_insn_for_shadow): Likewise for return type and param "insn".
20206 (update_insn_after_change): Likewise for param "insn".
20207 (recompute_todo_spec): Likewise for param "next" and locals "pro",
20208 "other".
20209 (insn_cost): Likewise for param "insn".
20210 (increase_insn_priority): Likewise.
20211 (calculate_reg_deaths): Likewise.
20212 (setup_insn_reg_pressure_info): Likewise.
20213 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
20214 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
20215 (model_recompute): Likewise.
20216 (must_restore_pattern_p): Likewise for param "next".
20217 (model_excess_cost): Likewise for param "insn".
20218 (queue_remove): Likewise.
20219 (adjust_priority): Likewise for param "prev".
20220 (update_register_pressure): Likewise for param "insn".
20221 (setup_insn_max_reg_pressure): Likewise for local "insn".
20222 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
20223 (model_add_to_schedule): Likewise.
20224 (model_reset_queue_indices): Likewise for local "insn".
20225 (unschedule_insns_until): Strengthen local "recompute_vec" from
20226 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
20227 "con" from rtx to rtx_insn *.
20228 (restore_last_backtrack_point): Likewise for both locals "x". Add
20229 checked casts.
20230 (estimate_insn_tick): Likewise for param "insn".
20231 (commit_schedule): Likewise for params "prev_head", "tail" and
20232 local "x".
20233 (verify_shadows): Likewise for locals "i1", "i2".
20234 (dump_insn_stream): Likewise for params "head", "tail" and locals
20235 "next_tail", "insn".
20236 (schedule_block): Likewise for locals "insn", "x". Add a checked
20237 cast.
20238 (fix_inter_tick): Likewise for params "head", "tail".
20239 (create_check_block_twin): Likewise for local "jump".
20240 (haifa_change_pattern): Likewise for param "insn".
20241 (haifa_speculate_insn): Likewise.
20242 (dump_new_block_header): Likewise for params "head", "tail".
20243 (fix_jump_move): Likewise for param "jump".
20244 (move_block_after_check): Likewise.
20245 (sched_init_insn_luid): Likewise for param "insn".
20246 (sched_init_luids): Likewise for local "insn".
20247 (insn_luid): Likewise for param "insn".
20248 (init_h_i_d): Likewise.
20249 (haifa_init_h_i_d): Likewise for local "insn".
20250 (haifa_init_insn): Likewise for param "insn".
20251 * sched-deps.c (add_dependence): Likewise for local "real_pro",
20252 "other".
20253 (create_insn_reg_use): Likewise for param "insn".
20254 (setup_insn_reg_uses): Likewise. Add a checked cast.
20255 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
20256 "tail" from rtx to rtx_insn *.
20257 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
20258 "insn", "next_tail".
20259
20260 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20261
20262 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
20263 from rtx to rtx_insn *.
20264 (model_add_to_schedule): Likewise for locals "start", "end",
20265 "iter".
20266
20267 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20268
20269 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
20270 rtx_insn *.
20271 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
20272 "to" and locals "insn", "next", "copy". Remove now-redundant
20273 checked cast.
20274
20275 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20276
20277 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
20278 rtx_insn * and param 4 from rtx * to rtx_insn **.
20279 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
20280 param 2 from rtx * to rtx_insn **.
20281
20282 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
20283 rtx_insn * and final param from rtx * to rtx_insn **.
20284
20285 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
20286 from rtx to rtx_insn *.
20287 (try_head_merge_bb): Likewise for both locals named "move_upto".
20288 * df-problems.c (can_move_insns_across): Likewise for params
20289 "from", "to", "across_from", "across_to" and locals "insn",
20290 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
20291 rtx_insn **.
20292 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
20293 from rtx to rtx_insn *.
20294 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
20295 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
20296 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
20297 rtx_insn *.
20298 (noce_try_abs): Likewise.
20299 (noce_get_condition): Likewise for param "jump". Strengthen param
20300 "earliest" from rtx * to rtx_insn **.
20301 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
20302 rtx_insn *.
20303 (find_cond_trap): Likewise.
20304 (dead_or_predicable): Likewise for local "earliest".
20305 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
20306 checked cast.
20307 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
20308 and local "prev". Strengthen param "earliest" from rtx * to
20309 rtx_insn **.
20310 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
20311 Strengthen param "earliest" from rtx * to rtx_insn **.
20312
20313 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20314
20315 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
20316 "to" and local "insn" from rtx to rtx_insn *.
20317
20318 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20319
20320 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
20321 from rtx to rtx_insn *.
20322 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
20323 (code_motion_path_driver): Likewise for local "last_insn".
20324 (simplify_changed_insns): Likewise for local "insn".
20325
20326 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20327
20328 * rtl.h (push_to_sequence): Strengthen param from rtx to
20329 rtx_insn *.
20330 (push_to_sequence2): Likewise for both params.
20331 (delete_insns_since): Likewise for param.
20332 (reorder_insns_nobb): Likewise for all three params.
20333 (set_new_first_and_last_insn): Likewise for both params.
20334
20335 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
20336 rtx_insn *. Remove now-redundant cast.
20337 (set_last_insn): Likewise.
20338
20339 * builtins.c (expand_builtin_return): Strengthen local
20340 "call_fusage" from rtx to rtx_insn *.
20341 * cfgrtl.c (create_basic_block_structure): Likewise for local
20342 "after".
20343 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
20344 "first", "last" and local "insn".
20345 (delete_insns_since): Likewise for param "from".
20346 (reorder_insns_nobb): Likewise for params "from", "to", "after"
20347 and local "x".
20348 (push_to_sequence): Likewise for param "first" and local "last".
20349 (push_to_sequence2): Likewise for params "first" and "last".
20350 * lra.c (emit_add3_insn): Likewise for local "last".
20351 (lra_emit_add): Likewise.
20352 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
20353 "last_insn".
20354 (process_address_1): Likewise for locals "insn", last".
20355 * modulo-sched.c (ps_first_note): Likewise for return type.
20356 * optabs.c (expand_binop_directly): Likewise for param "last".
20357
20358 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20359
20360 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
20361 to rtx_insn*.
20362 * emit-rtl.c (get_last_insn_anywhere): Likewise.
20363
20364 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20365
20366 * function.h (struct sequence_stack): Strengthen fields "first"
20367 and "last" from rtx to rtx_insn *.
20368 (struct emit_status): Likewise for fields "x_first_insn" and
20369 "x_last_insn".
20370
20371 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
20372 (set_first_insn): Add checked cast.
20373 (get_last_insn): Remove now-redundant checked cast.
20374 (set_last_insn): Add checked cast.
20375
20376 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
20377 "saved_first" and "saved_last" from rtx to rtx_insn *.
20378
20379 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20380
20381 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
20382 (unlink_insn_chain): Strengthen both params from rtx to
20383 rtx_insn *.
20384
20385 * cfgrtl.c (cfg_layout_function_header): Likewise for this
20386 variable.
20387 (unlink_insn_chain): Likewise for params "first" and "last".
20388 Remove now-redundant checked cast.
20389 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
20390 (fixup_reorder_chain): Strengthen local "insn" from rtx to
20391 rtx_insn *.
20392 * emit-rtl.c (link_insn_into_chain): Likewise for all three
20393 params.
20394 (add_insn): Likewise for param "insn" and local "prev".
20395 (add_insn_after_nobb): Likewise for both params and local "next".
20396 (add_insn_before_nobb): Likewise for both params and local "prev".
20397 (add_insn_after): Rename param "after" to "uncast_after",
20398 introducing local "after" with another checked cast.
20399 (add_insn_before): Rename params "insn" and "before", giving them
20400 "uncast_" prefixes, adding the old names back using checked casts.
20401 (emit_note_after): Likewise for param "after".
20402 (emit_note_before): Likewise for param "before".
20403 (emit_label): Add a checked cast.
20404
20405 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20406
20407 * cselib.h (cselib_record_sets_hook): Strengthen initial param
20408 "insn" from rtx to rtx_insn *.
20409
20410 * cselib.c (cselib_record_sets_hook): Likewise.
20411
20412 * var-tracking.c (add_with_sets): Likewise, renaming back from
20413 "uncast_insn" to "insn" and eliminating the checked cast from rtx
20414 to rtx_insn *.
20415
20416 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20417
20418 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
20419 and "header_" from rtx to rtx_insn *.
20420 (struct basic_block_d): Likewise for field "head_" within "x"
20421 field of union basic_block_il_dependent.
20422 (BB_HEAD): Drop function...
20423 (SET_BB_HEAD): ...and this function in favor of...
20424 (BB_HEAD): ...reinstate macro.
20425 (BB_END): Drop function...
20426 (SET_BB_END): ...and this function in favor of...
20427 (BB_END): ...reinstate macro.
20428 (BB_HEADER): Drop function...
20429 (SET_BB_HEADER): ...and this function in favor of...
20430 (BB_HEADER): ...reinstate macro.
20431
20432 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
20433 (fix_crossing_unconditional_branches): Likewise.
20434 * caller-save.c (save_call_clobbered_regs): Likewise.
20435 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
20436 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
20437 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
20438 (merge_blocks_move_successor_nojumps): Likewise.
20439 (outgoing_edges_match): Update use of for_each_rtx to
20440 for_each_rtx_in_insn.
20441 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
20442 (expand_gimple_cond): Likewise.
20443 (expand_gimple_tailcall): Likewise.
20444 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
20445 SET_BB_END.
20446 (construct_exit_block): Drop use of SET_BB_END.
20447 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
20448 rtx_insn *.
20449 (delete_insn): Rename param "insn" to "uncast_insn", introducing
20450 a new local "insn" with a checked cast to rtx_insn *. Drop use of
20451 SET_BB_HEAD and SET_BB_END.
20452 (create_basic_block_structure): Drop use of SET_BB_HEAD and
20453 SET_BB_END.
20454 (rtl_delete_block): Drop use of SET_BB_HEAD.
20455 (rtl_split_block): Drop use of SET_BB_END.
20456 (emit_nop_for_unique_locus_between): Likewise.
20457 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
20458 (block_label): Drop use of SET_BB_HEAD.
20459 (fixup_abnormal_edges): Drop use of SET_BB_END.
20460 (record_effective_endpoints): Drop use of SET_BB_HEADER.
20461 (relink_block_chain): Likewise.
20462 (fixup_reorder_chain): Drop use of SET_BB_END.
20463 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
20464 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
20465 rtx_insn **. Drop use of SET_BB_HEADER.
20466 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
20467 SET_BB_HEAD.
20468 (BB_HEAD): Delete this function.
20469 (SET_BB_HEAD): Likewise.
20470 (BB_END): Likewise.
20471 (SET_BB_END): Likewise.
20472 (BB_HEADER): Likewise.
20473 (SET_BB_HEADER): Likewise.
20474 * emit-rtl.c (add_insn_after): Rename param "insn" to
20475 "uncast_insn", adding a new local "insn" and a checked cast to
20476 rtx_insn *. Drop use of SET_BB_END.
20477 (remove_insn): Strengthen locals "next" and "prev" from rtx to
20478 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
20479 (reorder_insns): Drop use of SET_BB_END.
20480 (emit_insn_after_1): Strengthen param "first" and locals "last",
20481 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
20482 (emit_pattern_after_noloc): Add checked cast.
20483 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
20484 (restore_other_notes): Likewise.
20485 (move_insn): Likewise.
20486 (sched_extend_bb): Likewise.
20487 (fix_jump_move): Likewise.
20488 * ifcvt.c (noce_process_if_block): Likewise.
20489 (dead_or_predicable): Likewise.
20490 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
20491 * reg-stack.c (change_stack): Drop use of SET_BB_END.
20492 * sel-sched-ir.c (sel_move_insn): Likewise.
20493 * sel-sched.c (move_nop_to_previous_block): Likewise.
20494
20495 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
20496 SET_BB_END.
20497 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
20498
20499 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20500
20501 * basic-block.h (create_basic_block_structure): Strengthen params
20502 1 "head" and 2 "end" from rtx to rtx_insn *.
20503 * cfgrtl.c (create_basic_block_structure): Likewise.
20504 (rtl_create_basic_block): Update casts from void * to rtx to
20505 rtx_insn *, so that we can pass them as rtx_insn * to
20506 create_basic_block_structure.
20507 * sel-sched-ir.c (sel_create_basic_block): Likewise.
20508
20509 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20510
20511 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
20512 rtx_insn **.
20513 (check_for_inc_dec): Strengthen param "insn" from rtx to
20514 rtx_insn *.
20515
20516 * cselib.h (cselib_process_insn): Likewise.
20517
20518 * cselib.c (cselib_record_sets): Likewise.
20519 (cselib_process_insn): Likewise.
20520
20521 * dse.c (struct insn_info): Likewise for field "insn".
20522 (check_for_inc_dec_1): Likewise for local "insn".
20523 (check_for_inc_dec): Likewise for param "insn".
20524 (scan_insn): Likewise.
20525 (dse_step1): Likewise for local "insn".
20526
20527 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
20528 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
20529
20530 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20531
20532 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
20533 from rtx to rtx_insn *.
20534 (DEP_PRO): Delete this function and...
20535 (SET_DEP_PRO): ...this function in favor of...
20536 (DEP_PRO): ...reinstate this macro.
20537 (DEP_CON): Delete this function and...
20538 (SET_DEP_CON): ...this function in favor of...
20539 (DEP_CON): ...reinstate this old macro.
20540 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
20541 (init_dep): Likewise.
20542 (set_priorities): Likewise for both params.
20543 (sd_copy_back_deps): Likewise for params 1 and 2.
20544
20545 * haifa-sched.c (priority): Likewise for param "insn" and local
20546 "next".
20547 (set_priorities): Likewise for params "head" and "tail" and local
20548 "insn".
20549 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
20550 local "consumer".
20551 (add_to_speculative_block): Add a checked cast.
20552 (create_check_block_twin): Drop use of SET_DEP_CON.
20553 (add_jump_dependencies): Strengthen params "insn" and "jump" from
20554 rtx to rtx_insn *.
20555
20556 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
20557 Drop use of SET_DEP_PRO
20558 (init_dep): Strengthen params "pro" and "con" from rtx to
20559 rtx_insn *.
20560 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
20561 use of SET_DEP_CON.
20562 (DEP_PRO): Delete.
20563 (DEP_CON): Delete.
20564 (SET_DEP_PRO): Delete.
20565 (SET_DEP_CON): Delete.
20566
20567 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20568
20569 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
20570 from rtx to rtx_insn *.
20571 (VINSN_INSN_RTX): Eliminate rvalue function and...
20572 (SET_VINSN_INSN): ...lvalue function in favor of...
20573 (VINSN_INSN_RTX): reinstate this old macro.
20574
20575 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
20576 in favor of VINSN_INSN_RTX.
20577 (VINSN_INSN_RTX): Delete this function.
20578 (SET_VINSN_INSN_RTX): Likewise.
20579
20580 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20581
20582 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
20583 (BND_TO): Delete this function and...
20584 (SET_BND_TO): ...this functions in favor of...
20585 (BND_TO): ...reinstating this macro.
20586 (struct _fence): Strengthen field "executing_insns" from
20587 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
20588 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
20589 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
20590 and param "insn" from rtx to insn_t.
20591 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
20592 rtx_insn *.
20593
20594 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
20595 vec<rtx_insn *> .
20596 (rtx_vec_t): Likewise.
20597 (struct sched_deps_info_def): Strengthen param of "start_insn"
20598 callback from rtx to rtx_insn *. Likewise for param "insn2" of
20599 "note_mem_dep" callback and first param of "note_dep" callback.
20600
20601 * haifa-sched.c (add_to_speculative_block): Strengthen param
20602 "insn" from rtx to rtx_insn *.
20603 (clear_priorities): Likewise.
20604 (calc_priorities): Likewise for local "insn".
20605
20606 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
20607 Remove redundant checked cast.
20608 (haifa_note_mem_dep): Likewise for param "pending_insn".
20609 (haifa_note_dep): Likewise for param "elem".
20610 (note_mem_dep): Likewise for param "e".
20611 (sched_analyze_1): Add checked casts.
20612 (sched_analyze_2): Likewise.
20613
20614 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
20615 from rtx to rtx_insn *.
20616 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
20617 from vec<rtx> * to vec<rtx_insn *> *.
20618
20619 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
20620 scaffolding.
20621 (flist_add): Strengthen param "executing_insns" from
20622 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
20623 (advance_deps_context): Remove now-redundant checked cast.
20624 (init_fences): Replace uses of NULL_RTX with NULL.
20625 (merge_fences): Strengthen params "last_scheduled_insn" and
20626 "sched_next" from rtx to rtx_insn * and "executing_insns" from
20627 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
20628 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
20629 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
20630 an instruction, rather than doing double-duty as a pattern.
20631 (return_nop_to_pool): Update for change of insn_t.
20632 (deps_init_id): Remove now-redundant checked cast.
20633 (struct sched_scan_info_def): Strengthen param of "init_insn"
20634 callback from rtx to insn_t.
20635 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
20636 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
20637 NULL.
20638 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
20639 "end" from rtx to rtx_insn *.
20640 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
20641 (rtx insn_rtx, bool force_unique_p)
20642 (BND_TO): Delete function.
20643 (SET_BND_TO): Delete function.
20644
20645 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
20646 rtx to rtx_insn *.
20647 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
20648 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
20649 rtx to rtx_insn *.
20650 (undo_transformations): Likewise for param "insn".
20651 (update_liveness_on_insn): Likewise.
20652 (compute_live_below_insn): Likewise for param "insn" and local
20653 "succ".
20654 (update_data_sets): Likewise for param "insn".
20655 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
20656 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
20657 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
20658 rtx_insn *.
20659 (move_cond_jump): Likewise for param "insn".
20660 (move_cond_jump): Drop use of SET_BND_TO.
20661 (compute_av_set_on_boundaries): Likewise.
20662 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
20663 (update_and_record_unavailable_insns): Strengthen local "bb_end"
20664 from rtx to rtx_insn *.
20665 (maybe_emit_renaming_copy): Likewise for param "insn".
20666 (maybe_emit_speculative_check): Likewise.
20667 (handle_emitting_transformations): Likewise.
20668 (remove_insn_from_stream): Likewise.
20669 (code_motion_process_successors): Strengthen local "succ" from rtx
20670 to insn_t.
20671
20672 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20673
20674 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
20675 ilist_t, not _xlist_t;
20676 (ILIST_INSN): Define in terms of new union field "insn".
20677 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
20678 _XLIST_NEXT.
20679 (struct _list_node): Add new field "insn" to the union, of type
20680 insn_t.
20681 (ilist_add): Replace macro with an inline function, requiring an
20682 insn_t.
20683 (ilist_remove): Define this macro directly in terms of
20684 _list_remove, rather than indirectly via _xlist_remove.
20685 (ilist_clear): Likewise, in terms of _list_clear rather than
20686 _xlist_clear.
20687 (ilist_is_in_p): Replace macro with an inline function, requiring
20688 an insn_t.
20689 (_list_iter_cond_insn): New function.
20690 (ilist_iter_remove): Define this macro directly in terms of
20691 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
20692 (ilist_iterator): Define directly in terms of _list_iterator
20693 rather than indirectly through _xlist_iterator.
20694 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
20695 than in terms of _FOR_EACH_X.
20696 (FOR_EACH_INSN_1): Likewise.
20697
20698 2014-08-26 Joseph Myers <joseph@codesourcery.com>
20699
20700 PR target/60606
20701 PR target/61330
20702 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
20703 DECL_HARD_REGISTER and return for invalid register specifications.
20704 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
20705 DECL_HARD_REGISTER, call expand_one_error_var.
20706 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
20707 CC_REGNUM with non-MODE_CC modes.
20708 (arm_regno_class): Return NO_REGS for PC_REGNUM.
20709
20710 2014-08-26 Marek Polacek <polacek@redhat.com>
20711
20712 PR c/61271
20713 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
20714
20715 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
20716
20717 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
20718 qi cost; add di cost.
20719 (cortexa57_addrcost_table): Likewise.
20720
20721 2014-08-26 Marek Polacek <polacek@redhat.com>
20722
20723 PR c/61271
20724 * expr.c (is_aligning_offset): Remove logical not.
20725
20726 2014-08-26 Marek Polacek <polacek@redhat.com>
20727
20728 PR c/61271
20729 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
20730 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
20731
20732 2014-08-26 Richard Biener <rguenther@suse.de>
20733
20734 PR tree-optimization/62175
20735 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
20736 expand possibly trapping operations.
20737
20738 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20739
20740 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
20741 "insn" from rtx to rtx_insn *.
20742 (permute_load): Likewise for param "insn".
20743 (permute_store): Likewise.
20744 (handle_special_swappables): Likewise for local "insn".
20745 (replace_swap_with_copy): Likewise for locals "insn" and
20746 "new_insn".
20747 (rs6000_analyze_swaps): Likewise for local "insn".
20748
20749 2014-08-25 David Malcolm <dmalcolm@redhat.com>
20750
20751 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
20752 to rtx_insn *.
20753
20754 2014-08-25 David Malcolm <dmalcolm@redhat.com>
20755
20756 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
20757 "note_list" from rtx to rtx_insn *.
20758 (BB_NOTE_LIST): Replace this function and...
20759 (SET_BB_NOTE_LIST): ...this function with...
20760 (BB_NOTE_LIST): ...the former macro implementation.
20761
20762 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
20763 local "from_start" from rtx to rtx_insn *. Strengthen param
20764 "to_endp" from rtx * to rtx_insn **.
20765
20766 * haifa-sched.c (concat_note_lists): Likewise.
20767 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
20768 BB_NOTE_LIST.
20769 (sel_restore_notes): Likewise.
20770 (move_bb_info): Likewise.
20771 (BB_NOTE_LIST): Delete this function.
20772 (SET_BB_NOTE_LIST): Delete this function.
20773 * sel-sched.c (create_block_for_bookkeeping): Eliminate
20774 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
20775
20776 2014-08-25 David Malcolm <dmalcolm@redhat.com>
20777
20778 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
20779 from rtx * to rtx_insn **.
20780 (reorder2): Likewise.
20781 (dependencies_evaluation_hook): Strengthen params "head", "tail"
20782 from rtx to rtx_insn *.
20783
20784 * doc/tm.texi: Update mechanically for above change to target.def.
20785
20786 * sched-int.h (note_list): Strengthen this variable from rtx to
20787 rtx_insn *.
20788 (remove_notes): Likewise for both params.
20789 (restore_other_notes): Likewise for return type and first param.
20790 (struct ready_list): Strengthen field "vec" from rtx * to
20791 rtx_insn **.
20792 (struct dep_replacement): Strenghten field "insn" from rtx to
20793 rtx_insn *.
20794 (struct deps_desc): Likewise for fields "last_debug_insn",
20795 "last_args_size".
20796 (struct haifa_sched_info): Likewise for callback field
20797 "can_schedule_ready_p"'s param, for first param of "new_ready"
20798 callback field, for both params of "rank" callback field, for
20799 first field of "print_insn" callback field (with a const), for
20800 both params of "contributes_to_priority" callback, for param
20801 of "insn_finishes_block_p" callback, for fields "prev_head",
20802 "next_tail", "head", "tail", for first param of "add_remove_insn"
20803 callback, for first param of "begin_schedule_ready" callback, for
20804 both params of "begin_move_insn" callback, and for second param
20805 of "advance_target_bb" callback.
20806 (add_dependence): Likewise for params 1 and 2.
20807 (sched_analyze): Likewise for params 2 and 3.
20808 (deps_analyze_insn): Likewise for param 2.
20809 (ready_element): Likewise for return type.
20810 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
20811 (try_ready): Strenghten param from rtx to rtx_insn *.
20812 (sched_emit_insn): Likewise for return type.
20813 (record_delay_slot_pair): Likewise for params 1 and 2.
20814 (add_delay_dependencies): Likewise for param.
20815 (contributes_to_priority): Likewise for both params.
20816 (find_modifiable_mems): Likewise.
20817
20818 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
20819 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
20820 "first_older_only_insn" from rtx to rtx_insn *.
20821 (arm_sched_reorder): Strengthen param "ready" from rtx * to
20822 rtx_insn **.
20823
20824 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
20825 "last_scheduled_iter0" from rtx to rtx_insn *.
20826 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
20827 (c6x_sched_reorder_1): Strengthen param "ready" and locals
20828 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
20829 "insn" from rtx to rtx_insn *.
20830 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
20831 rtx_insn **.
20832 (c6x_sched_reorder2): Strengthen param "ready" and locals
20833 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
20834 "insn" from rtx to rtx_insn *.
20835 (c6x_variable_issue): Add a checked cast when assigning from insn
20836 to ss.last_scheduled_iter0.
20837 (split_delayed_branch): Strengthen param "insn" and local "i1"
20838 from rtx to rtx_insn *.
20839 (split_delayed_nonbranch): Likewise.
20840 (undo_split_delayed_nonbranch): Likewise for local "insn".
20841 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
20842 "entry_after", "end_packet", "head_insn", "tail_insn",
20843 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
20844 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
20845 to rtx_insn **. Remove now-redundant checked cast on last_insn,
20846 but add a checked cast on loop->start_label. Consolidate calls to
20847 avoid assigning result of gen_spkernel to "insn", now an
20848 rtx_insn *.
20849
20850 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
20851 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
20852 rtx to rtx_insn *.
20853 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
20854 rtx_insn **. Strengthen locals "top", "next" from rtx to
20855 rtx_insn *.
20856 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
20857 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
20858 (add_parameter_dependencies): Strengthen params "call", "head" and
20859 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
20860 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
20861 (add_dependee_for_func_arg): Likewise for param "arg" and local
20862 "insn".
20863 (ix86_dependencies_evaluation_hook): Likewise for params "head",
20864 "tail" and locals "insn", "first_arg".
20865
20866 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
20867 for params "head", "tail" and locals "insn", "next", "next_tail".
20868 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
20869 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
20870 "insn", "lowest", "highest" from rtx to rtx_insn *.
20871 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
20872 rtx_insn **.
20873 (ia64_sched_reorder2): Likewise.
20874
20875 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
20876 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
20877 from rtx * to rtx_insn **.
20878 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
20879 rtx_insn **.
20880 (mep_print_sched_insn): Strengthen param "insn" from rtx to
20881 rtx_insn *.
20882 (mep_sched_reorder): Strengthen param "ready" from rtx * to
20883 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
20884 to rtx_insn *.
20885
20886 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
20887 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
20888 to rtx_insn *.
20889 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
20890 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
20891 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
20892 rtx_insn **.
20893 (vr4130_reorder): Likewise.
20894 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
20895 rtx to rtx_insn *.
20896 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
20897 rtx_insn **.
20898 (mips_sched_reorder): Likewise.
20899 (mips_sched_reorder2): Likewise.
20900
20901 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
20902
20903 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
20904 Strengthen local "tmp" from rtx to rtx_insn *.
20905 (rs6000_sched_reorder2): Likewise.
20906
20907 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
20908 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
20909 (s390_sched_reorder): Strengthen param "ready" from rtx * to
20910 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
20911
20912 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
20913 "tmp2" from rtx to rtx_insn *.
20914 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
20915 Strengthen local "insn" from rtx to rtx_insn *.
20916 (ready_reorder): Strengthen param "ready" from rtx * to
20917 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
20918 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
20919 (sh_reorder2): Likewise.
20920
20921 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
20922 local "insn" from rtx to rtx_insn *.
20923
20924 * haifa-sched.c (note_list): Strengthen this variable from rtx to
20925 rtx_insn *.
20926 (scheduled_insns): Strengthen this variable from vec<rtx> to
20927 vec<rtx_insn *>.
20928 (set_modulo_params): Likewise for locals "i1", "i2".
20929 (record_delay_slot_pair): Likewise for params "i1", "i2".
20930 (add_delay_dependencies): Likewise for param "insn".
20931 (cond_clobbered_p): Likewise.
20932 (recompute_todo_spec): Likewise for local "prev".
20933 (last_scheduled_insn): Likewise for this variable.
20934 (nonscheduled_insns_begin): Likewise.
20935 (model_set_excess_costs): Strengthen param "insns" from rtx * to
20936 rtx_insn **.
20937 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
20938 rtx_insn *.
20939 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
20940 Strengthen local "insn" from rtx to rtx_insn *.
20941 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
20942 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
20943 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
20944 (ready_remove_first): Likewise for return type and local "t".
20945 (ready_element): Likewise for return type.
20946 (ready_remove): Likewise for return type and local "t".
20947 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
20948 (check_clobbered_conditions): Strengthen local "x" from rtx to
20949 rtx_insn *, adding a checked cast.
20950 (schedule_insn): Likewise for param "insn".
20951 (remove_notes): Likewise for params "head", "tail" and locals
20952 "next_tail", "insn", "next".
20953 (struct haifa_saved_data): Likewise for fields
20954 "last_scheduled_insn", "nonscheduled_insns_begin".
20955 (save_backtrack_point): Update for change to field "vec" of
20956 struct ready_list.
20957 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
20958 rtx_insn **.
20959 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
20960 from rtx to rtx_insn *
20961 (resolve_dependencies): Strengthen param "insn" from rtx to
20962 rtx_insn *
20963 (restore_other_notes): Likewise for return type, for param "head"
20964 and local "note_head".
20965 (undo_all_replacements): Likewise for local "insn".
20966 (first_nonscheduled_insn): Likewise for return type and local "insn".
20967 (queue_to_ready): Likewise for local "insn", adding checked casts.
20968 (early_queue_to_ready): Likewise for local "insn".
20969 (debug_ready_list_1): Strengthen local "p" from rtx * to
20970 rtx_insn **.
20971 (move_insn): Strengthen param "insn" and local "note" from rtx to
20972 rtx_insn *
20973 (insn_finishes_cycle_p): Likewise for param "insn".
20974 (max_issue): Likewise for local "insn".
20975 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
20976 to rtx_insn **.
20977 (commit_schedule): Strengthen param "prev_head" and local "insn"
20978 from rtx to rtx_insn *
20979 (prune_ready_list): Likewise for local "insn".
20980 (schedule_block): Likewise for locals "prev_head", "head", "tail",
20981 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
20982 (set_priorities): Likewise for local "prev_head".
20983 (try_ready): Likewise for param "next".
20984 (fix_tick_ready): Likewise.
20985 (change_queue_index): Likewise.
20986 (sched_extend_ready_list): Update for change to field "vec" of
20987 struct ready_list.
20988 (generate_recovery_code): Strengthen param "insn" from rtx to
20989 rtx_insn *.
20990 (begin_speculative_block): Likewise.
20991 (create_check_block_twin): Likewise for param "insn" and locals
20992 "label", "check", "twin". Introduce local "check_pat" to avoid
20993 "check" being used as a plain rtx before being used as an insn.
20994 (fix_recovery_deps): Add a checked cast to rtx_insn * when
20995 extracting elements from ready_list.
20996 (sched_remove_insn): Strengthen param "insn" from rtx to
20997 rtx_insn *.
20998 (sched_emit_insn): Likewise for return type.
20999 (ready_remove_first_dispatch): Likewise for return type and local
21000 "insn".
21001
21002 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
21003
21004 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
21005 const rtx_insn *.
21006
21007 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
21008 from rtx to rtx_insn *.
21009 (add_dependence_list): Likewise for param "insn". Add a checked
21010 cast.
21011 (add_dependence_list_and_free): Strengthen param "insn" from rtx
21012 to rtx_insn *. Strengthen param "list_p" from rtx * to
21013 rtx_insn **.
21014 (chain_to_prev_insn): Strengthen param "insn" and locals
21015 "prec_nonnote", "i" from rtx to rtx_insn *.
21016 (flush_pending_lists): Likewise for param "insn".
21017 (cur_insn): Likewise for this variable.
21018 (haifa_start_insn): Add a checked cast.
21019 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
21020 (sched_analyze_reg): Likewise for param "insn".
21021 (sched_analyze_1): Likewise.
21022 (sched_analyze_2): Likewise. Add checked casts.
21023 (sched_analyze_insn): Likewise. Also for local "prev".
21024 (deps_analyze_insn): Likewise for param "insn".
21025 (sched_analyze): Likewise for params "head", "tail" and local "insn".
21026 (add_dependence_1): Likewise for params "insn", "elem".
21027 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
21028 (parse_add_or_inc): Likewise for param "insn".
21029 (find_inc): Likewise for local "inc_cand".
21030 (find_modifiable_mems): Likewise for params "head", "tail" and
21031 locals "insn", "next_tail".
21032
21033 * sched-ebb.c (init_ready_list): Likewise for local "insn".
21034 (begin_schedule_ready): Likewise for param "insn".
21035 (begin_move_insn): Likewise for params "insn" and "last".
21036 (ebb_print_insn): Strengthen param "insn" from const_rtx to
21037 const rtx_insn *.
21038 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
21039 (ebb_contributes_to_priority): Likewise for params "next", "insn".
21040 (ebb_add_remove_insn): Likewise for param "insn".
21041 (advance_target_bb): Likewise.
21042
21043 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
21044 "insn".
21045 (check_live): Likewise for param "insn".
21046 (init_ready_list): Likewise for local "insn".
21047 (can_schedule_ready_p): Likewise for param "insn".
21048 (begin_schedule_ready): Likewise.
21049 (new_ready): Likewise for param "next".
21050 (rgn_print_insn): Likewise for param "insn".
21051 (rgn_rank): Likewise for params "insn1", "insn2".
21052 (contributes_to_priority): Likewise for params "next", "insn".
21053 (rgn_insn_finishes_block_p): Likewise for param "insn".
21054 (add_branch_dependences): Likewise for params "head", "tail" and
21055 locals "insn", "last".
21056 (rgn_add_remove_insn): Likewise for param "insn".
21057 (advance_target_bb): Likewise.
21058
21059 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
21060 const_rtx to const rtx_insn *.
21061
21062 * sel-sched-dump.h (sel_print_insn): Likewise.
21063
21064 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
21065 (deps_init_id): Likewise.
21066
21067 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
21068 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
21069 rtx_insn **.
21070
21071 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21072
21073 * output.h (final_start_function): Strengthen param 1 from rtx to
21074 rtx_insn *.
21075
21076 * final.c (final_start_function): Likewise, renaming back from
21077 "uncast_first" to "first", and dropping the checked cast from rtx
21078 to rtx_insn *.
21079
21080 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21081
21082 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
21083 * final.c (final): Likewise. Rename param back from
21084 "uncast_first" to "first" and eliminate the checked cast from rtx
21085 to rtx_insn *.
21086
21087 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21088
21089 * output.h (shorten_branches): Strengthen param from rtx to
21090 rtx_insn *.
21091
21092 * final.c (shorten_branches): Likewise, renaming param back from
21093 "uncast_first" to "first", and dropping the checked cast from rtx
21094 to rtx_insn *.
21095
21096 * genattr.c (gen_attr): Likewise when writing out the prototype of
21097 shorten_branches.
21098
21099 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21100
21101 * sched-int.h (struct haifa_sched_info): Strengthen fields
21102 "prev_head" and "next_tail" from rtx to rtx_insn *.
21103
21104 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21105
21106 * rtl.h (rtx_jump_table_data::get_labels): New method.
21107 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
21108 with use of the new rtx_jump_table_data::get_labels method.
21109 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
21110 to rtx_jump_table_data *. Simplify by using get_labels method.
21111 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
21112 a dyn_cast, introducing local "table", using it to replace
21113 label-lookup logic with a get_labels method call.
21114 (patch_jump_insn): Simplify using get_labels method.
21115 * dwarf2cfi.c (create_trace_edges): Likewise.
21116 * rtlanal.c (label_is_jump_target_p): Likewise.
21117
21118 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21119
21120 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
21121 to rtx_insn *.
21122
21123 * emit-rtl.c (unshare_all_rtl_1): Likewise.
21124 (unshare_all_rtl_again): Likewise, also for local "p".
21125
21126 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21127
21128 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
21129 to rtx_insn *.
21130 * cfgrtl.c (delete_insn_and_edges): Likewise.
21131
21132 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21133
21134 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
21135 from rtx to rtx_insn *.
21136
21137 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
21138
21139 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21140
21141 * function.c (thread_prologue_and_epilogue_insns): Likewise for
21142 locals "returnjump", "epilogue_end", "insn", "next".
21143
21144 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
21145 "returnjump" from rtx * to rtx_insn **.
21146 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
21147
21148 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21149
21150 * basic-block.h (struct edge_def). Strengthen "r" within
21151 union edge_def_insns from rtx to rtx_insn *.
21152
21153 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
21154 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
21155 rtx_insn *.
21156 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
21157 from rtx to rtx_insn *.
21158 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
21159 rtx_insn *.
21160 * postreload-gcse.c (reg_killed_on_edge): Likewise.
21161 (reg_used_on_edge): Likewise.
21162 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
21163 (gt_pch_nx): New overload for rtx_insn *&.
21164 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
21165 from rtx to rtx_insn *.
21166
21167 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21168
21169 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
21170 from rtx to rtx_insn *.
21171 (BB_FOOTER): Replace function with access macro.
21172 (SET_BB_FOOTER): Delete.
21173
21174 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
21175 with BB_FOOTER.
21176 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
21177 (emit_barrier_after_bb): Likewise.
21178 (record_effective_endpoints): Likewise.
21179 (relink_block_chain): Likewise.
21180 (fixup_fallthru_exit_predecessor): Likewise.
21181 (cfg_layout_duplicate_bb): Likewise.
21182 (cfg_layout_split_block): Likewise.
21183 (cfg_layout_delete_block): Likewise.
21184 (cfg_layout_merge_blocks): Likewise.
21185 (BB_FOOTER): Delete function.
21186 (SET_BB_FOOTER): Delete function.
21187 * combine.c (update_cfg_for_uncondjump): Replace uses of
21188 SET_BB_FOOTER with BB_FOOTER.
21189
21190 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21191
21192 * except.h (struct eh_landing_pad_d): Strengthen field
21193 "landing_pad" from rtx to rtx_code_label *.
21194
21195 * except.c (sjlj_emit_dispatch_table): Likewise for param
21196 "dispatch_label"
21197 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
21198
21199 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21200
21201 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
21202 first param from rtx to rtx_insn *.
21203 * config/xtensa/xtensa.c (struct machine_function): Likewise for
21204 field "set_frame_ptr_insn".
21205 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
21206 "csend" from rtx to rtx_code_label *.
21207 (xtensa_expand_atomic): Likewise for local "csloop".
21208 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
21209 rtx_insn *.
21210 (xtensa_call_tls_desc): Likewise for return type and locals
21211 "call_insn", "insns".
21212 (xtensa_legitimize_tls_address): Likewise for local "insns".
21213 (xtensa_expand_prologue): Likewise for locals "insn", "first".
21214
21215 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21216
21217 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
21218 first param from rtx to rtx_insn *.
21219 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
21220 "insn".
21221
21222 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21223
21224 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
21225 Strengthen param 1 from rtx to rtx_insn *.
21226 (tilepro_output_cbranch): Likewise.
21227 (tilepro_adjust_insn_length): Likewise.
21228 (tilepro_final_prescan_insn): Likewise for sole param.
21229
21230 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
21231 Likewise for local "last".
21232 (cbranch_predicted_p): Likewise for param "insn".
21233 (tilepro_output_simple_cbranch_with_opcode): Likewise.
21234 (tilepro_output_cbranch_with_opcode): Likewise.
21235 (tilepro_output_cbranch): Likewise.
21236 (frame_emit_load): Likewise for return type and locals "seq",
21237 "insn".
21238 (emit_sp_adjust): Likewise for return type and local "insn".
21239 (tilepro_expand_epilogue): Likewise for locals "last_insn",
21240 "insn".
21241 (tilepro_adjust_insn_length): Likewise for param "insn".
21242 (next_insn_to_bundle): Likewise for return type and params
21243 "r", "end".
21244 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
21245 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
21246 local "new_insns".
21247 (match_addli_pcrel): Likewise for param "insn".
21248 (replace_addli_pcrel): Likewise.
21249 (match_auli_pcrel): Likewise.
21250 (replace_auli_pcrel): Likewise.
21251 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
21252 "next_insn".
21253 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
21254 "queue", "next_queue", "prev".
21255 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
21256 (tilepro_final_prescan_insn): Likewise for param "insn".
21257
21258 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21259
21260 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
21261 Strengthen param 1 from rtx to rtx_insn *.
21262 (tilegx_output_cbranch): Likewise.
21263 (tilegx_adjust_insn_length): Likewise.
21264 (tilegx_final_prescan_insn): Likewise for sole param.
21265
21266 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
21267 or local "last".
21268 (cbranch_predicted_p): Likewise for param "insn".
21269 (tilegx_output_simple_cbranch_with_opcode): Likewise.
21270 (tilegx_output_cbranch_with_opcode): Likewise.
21271 (tilegx_output_cbranch): Likewise.
21272 (frame_emit_load): Likewise for return type.
21273 (set_frame_related_p): Likewise for locals "seq", "insn".
21274 (emit_sp_adjust): Likewise for return type, and for local "insn".
21275 Introduce local "pat" for use in place of "insn" where the latter
21276 isn't an instruction.
21277 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
21278 from rtx to rtx_insn *.
21279 (tilegx_adjust_insn_length): Likewise for param "insn".
21280 (next_insn_to_bundle): Likewise for return type and params "r" and
21281 "end".
21282 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
21283 "end".
21284 (replace_insns): Likewise for params "old_insn", "new_insns".
21285 (replace_mov_pcrel_step1): Likewise for param "insn" and local
21286 "new_insns".
21287 (replace_mov_pcrel_step2): Likewise.
21288 (replace_mov_pcrel_step3): Likewise.
21289 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
21290 "next_insn".
21291 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
21292 "queue", "next_queue", "prev".
21293 (tilegx_output_mi_thunk): Likewise for local "insn".
21294 (tilegx_final_prescan_insn): Likewise for param "insn".
21295
21296 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21297
21298 * config/spu/spu.c (frame_emit_store): Strengthen return type from
21299 rtx to rtx_insn *.
21300 (frame_emit_load): Likewise.
21301 (frame_emit_add_imm): Likewise, also for local "insn".
21302 (spu_expand_prologue): Likewise for local "insn".
21303 (struct spu_bb_info): Likewise for field "prop_jump".
21304 (emit_nop_for_insn): Likewise for param "insn" and local
21305 "new_insn".
21306 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
21307 "hbr_insn".
21308 (spu_emit_branch_hint): Likewise for params "before", "branch" and
21309 locals "hint", "insn".
21310 (get_branch_target): Likewise for param "branch".
21311 (insn_clobbers_hbr): Likewise for param "insn".
21312 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
21313 locals "insn", "before_4", "before_16".
21314 (insert_hbrp): Likewise for local "insn".
21315 (spu_machine_dependent_reorg): Likewise for locals "branch",
21316 "insn", "next", "bbend".
21317 (uses_ls_unit): Likewise for param "insn".
21318 (get_pipe): Likewise.
21319 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
21320 introducing a checked cast.
21321 (spu_sched_adjust_cost): Likewise for params "insn" and
21322 "dep_insn".
21323 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
21324 (spu_sms_res_mii): Likewise.
21325
21326 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21327
21328 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
21329 from rtx to rtx_insn *.
21330 (output_cbranch): Likewise for param 6.
21331 (output_return): Likewise for param 1.
21332 (output_sibcall): Likewise.
21333 (output_v8plus_shift): Likewise.
21334 (output_v8plus_mult): Likewise.
21335 (output_v9branch): Likewise for param 7.
21336 (output_cbcond): Likewise for param 3.
21337
21338 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
21339 for local "insn".
21340 (sparc_legitimize_pic_address): Likewise.
21341 (sparc_emit_call_insn): Likewise.
21342 (emit_save_or_restore_regs): Likewise.
21343 (emit_window_save): Likewise for return type and local "insn".
21344 (sparc_expand_prologue): Likewise for local "insn".
21345 (sparc_flat_expand_prologue): Likewise.
21346 (output_return): Likewise for param "insn".
21347 (output_sibcall): Likewise for param "insn" and local "delay".
21348 (output_ubranch): Likewise for param "insn".
21349 (output_cbranch): Likewise.
21350 (output_cbcond): Likewise.
21351 (output_v9branch): Likewise.
21352 (output_v8plus_shift): Likewise.
21353 (sparc_output_mi_thunk): Likewise for local "insn".
21354 (get_some_local_dynamic_name): Likewise.
21355 (output_v8plus_mult): Likewise for param "insn".
21356
21357 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21358
21359 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
21360 from rtx to rtx_insn *.
21361 (output_branchy_insn): Likewise for param 3.
21362 (output_far_jump): Likewise for param 1.
21363 (final_prescan_insn): Likewise.
21364 (sh_insn_length_adjustment): Likewise for sole param.
21365
21366 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
21367 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
21368 rtx_code_label *.
21369 (sh_emit_compare_and_set): Likewise for local "lab".
21370 (output_far_jump): Strengthen param "insn" and local "prev" from
21371 rtx to rtx_insn *.
21372 (output_branchy_insn): Likewise for param "insn" and local
21373 "next_insn".
21374 (output_ieee_ccmpeq): Likewise for param "insn".
21375 (struct label_ref_list_d): Strengthen field "label" from rtx to
21376 rtx_code_label *.
21377 (pool_node): Likewise.
21378 (pool_window_label): Likewise for this global.
21379 (add_constant): Likewise for return type and locals "lab", "new_rtx".
21380 (dump_table): Strengthen params "start", "barrier" and local
21381 "scan" from rtx to rtx_insn *.
21382 (broken_move): Likewise for param "insn".
21383 (untangle_mova): Likewise for params "first_mova" and "new_mova".
21384 Strengthen param "first_mova" from rtx * to rtx_insn **.
21385 (mova_p): Likewise for param "insn".
21386 (fixup_mova): Likewise for param "mova".
21387 (find_barrier): Likewise for return type, params "mova" and
21388 "from", and locals "barrier_before_mova", "found_barrier",
21389 "good_barrier", "orig", "last_symoff", "next". Strengthen local
21390 "label" from rtx to rtx_code_label *.
21391 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
21392 rtx to rtx_insn *.
21393 (sh_reorg): Likewise for locals "link", "scan", "barrier".
21394 (split_branches): Likewise for param "first" and local "insn".
21395 (final_prescan_insn): Likewise for param "insn".
21396 (sequence_insn_p): Likewise for locals "prev", "next".
21397 (sh_insn_length_adjustment): Likewise for param "insn".
21398 (sh_can_redirect_branch): Likewise for local "insn".
21399 (find_r0_life_regions): Likewise for locals "end", "insn".
21400 (sh_output_mi_thunk): Likewise for local "insns".
21401
21402 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21403
21404 * config/score/score.c (score_output_mi_thunk): Strengthen local
21405 "insn" from rtx to rtx_insn *.
21406 (score_prologue): Likewise.
21407
21408 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21409
21410 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
21411 1 from rtx to rtx_insn *.
21412 (s390_emit_jump): Likewise for return type.
21413 (s390_emit_call): Likewise.
21414 (s390_load_got): Likewise.
21415
21416 * config/s390/s390.c (last_scheduled_insn): Likewise for this
21417 variable.
21418 (s390_match_ccmode): Likewise for param "insn".
21419 (s390_emit_jump): Likewise for return type.
21420 (s390_split_branches): Likewise for local "label".
21421 (struct constant): Strengthen field "label" from rtx to
21422 rtx_code_label *.
21423 (struct constant_pool): Likewise for field "label". Strengthen
21424 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
21425 rtx_insn *.
21426 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
21427 insns.
21428 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
21429 (s390_end_pool): Likewise.
21430 (s390_dump_pool): Likewise for local "insn".
21431 (s390_mainpool_start): Likewise.
21432 (s390_chunkify_start): Likewise.
21433 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
21434 with insns. Strengthen locals "label", "jump", "barrier", "next",
21435 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
21436 (s390_chunkify_finish): Strengthen local "insn" from rtx to
21437 rtx_insn *.
21438 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
21439 "jump", "label", "next_insn".
21440 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
21441 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
21442 "tbegin_insn".
21443 (s390_load_got): Likewise for return type and local "insns".
21444 (s390_save_gprs_to_fprs): Likewise for local "insn".
21445 (s390_restore_gprs_from_fprs): Likewise.
21446 (pass_s390_early_mach::execute): Likewise.
21447 (s390_emit_prologue): Likewise for local "insns".
21448 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
21449 rtx_code_label *.
21450 (s390_emit_call): Strengthen return type and local "insn" from
21451 rtx to rtx_insn *.
21452 (s390_emit_tpf_eh_return): Likewise for local "insn".
21453 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
21454 "next_insn", introducing locals "s_pat", "rpat" to allow this.
21455 (s390_fix_long_loop_prediction): Likewise for param "insn" and
21456 local "cur_insn".
21457 (s390_non_addr_reg_read_p): Likewise for param "insn".
21458 (find_cond_jump): Likewise for return type and param "insn".
21459 (s390_swap_cmp): Likewise for param "insn".
21460 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
21461 "prev_insn", "next_insn".
21462 (s390_reorg): Likewise for locals "insn", "target".
21463 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
21464 (s390_sched_variable_issue): For now, rename param "insn" to
21465 "uncast_insn", introducing a checked cast.
21466 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
21467 insn.
21468 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
21469 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
21470
21471 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21472
21473 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
21474 param from rtx to rtx_insn *.
21475 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
21476
21477 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21478
21479 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
21480 4 from rtx to rtx_insn *.
21481 (rs6000_final_prescan_insn): Likewise for first param.
21482 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
21483 local "insn".
21484 (rs6000_get_some_local_dynamic_name): Likewise.
21485 (output_cbranch): Likewise for param "insn".
21486 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
21487 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
21488 (rs6000_emit_allocate_stack): Likewise for local "insn".
21489 (load_cr_save): Likewise.
21490 (restore_saved_cr): Likewise.
21491 (restore_saved_lr): Likewise.
21492 (emit_cfa_restores): Likewise.
21493 (rs6000_output_function_epilogue): Likewise for locals "insn" and
21494 "deleted_debug_label".
21495 (rs6000_output_mi_thunk): Likewise for local "insn".
21496 (rs6000_final_prescan_insn): Likewise for param "insn".
21497
21498 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21499
21500 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
21501 Strengthen param "insn" from rtx to rtx_insn *.
21502 * config/picochip/picochip.c (picochip_current_prescan_insn):
21503 Likewise for this variable.
21504 (picochip_final_prescan_insn): Likewise for param "insn".
21505
21506 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21507
21508 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
21509 from rtx to rtx_insn *.
21510 (pa_output_indirect_call): Likewise.
21511 (pa_adjust_insn_length): Likewise.
21512 (pa_attr_length_millicode_call): Likewise.
21513 (pa_attr_length_call): Likewise.
21514 (pa_attr_length_indirect_call): Likewise.
21515
21516 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
21517 "insn".
21518 (pa_attr_length_millicode_call): Likewise.
21519 (pa_attr_length_call): Likewise.
21520 (pa_output_call): Likewise.
21521 (pa_attr_length_indirect_call): Likewise.
21522 (pa_output_indirect_call): Likewise.
21523
21524 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21525
21526 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
21527 Strengthen first param from rtx to rtx_insn *.
21528 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
21529 param "insn".
21530
21531 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21532
21533 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
21534 type from rtx to rtx_insn *.
21535 (mips_expand_call): Likewise.
21536 (mips_adjust_insn_length): Likewise for first param.
21537 (mips_output_conditional_branch): Likewise.
21538 (mips_output_order_conditional_branch): Likewise.
21539 (mips_final_prescan_insn): Likewise.
21540
21541 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
21542 rtx_insn * for the SEQUENCE case.
21543 (SEQ_END): Likewise.
21544 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
21545 (mips_emit_call_insn): Likewise, also for local "insn".
21546 (mips16_gp_pseudo_reg): Likewise for local "scan".
21547 (mips16_build_call_stub): Likewise for return type and for local
21548 "insn". Introduce a new local "pattern" so that "insn" can indeed
21549 be an insn.
21550 (mips_expand_call): Strengthen return type and local "insn" from
21551 rtx to rtx_insn *.
21552 (mips_block_move_loop): Strengthen local "label" from rtx to
21553 rtx_code_label *.
21554 (mips_expand_synci_loop): Likewise for locals "label",
21555 "end_label".
21556 (mips_set_frame_expr): Strengthen local "insn" from rtx to
21557 rtx_insn *.
21558 (mips16e_collect_argument_saves): Likewise for locals "insn",
21559 "next".
21560 (mips_find_gp_ref): Likewise for param of callback for "pred"
21561 param, and for local "insn".
21562 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
21563 (mips_insn_has_flexible_gp_ref_p): Likewise.
21564 (mips_epilogue_emit_cfa_restores): Likewise for return type and
21565 local "insn".
21566 (mips_epilogue_set_cfa): Likewise for local "insn".
21567 (mips_expand_epilogue): Likewise.
21568 (mips_adjust_insn_length): Likewise for param "insn".
21569 (mips_output_conditional_branch): Likewise.
21570 (mips_output_order_conditional_branch): Likewise.
21571 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
21572 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
21573 "falu2_turn_enabled_insn".
21574 (mips_builtin_branch_and_move): Strengthen locals "true_label",
21575 "done_label" from rtx to rtx_code_label *.
21576 (struct mips16_constant): Likewise for field "label".
21577 (mips16_add_constant): Likewise for return type.
21578 (mips16_emit_constants_1): Strengthen return type and param "insn"
21579 from rtx to rtx_insn *.
21580 (mips16_emit_constants): Likewise for param "insn".
21581 (mips16_insn_length): Likewise.
21582 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
21583 to rtx_code_label *.
21584 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
21585 from rtx to rtx_insn *.
21586 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
21587 "jump". Strengthen local "label" from rtx to rtx_code_label *.
21588 (r10k_simplify_address): Strengthen param "insn" and local
21589 "def_insn" from rtx to rtx_insn *.
21590 (r10k_safe_address_p): Strengthen param "insn" from rtx to
21591 rtx_insn *.
21592 (r10k_needs_protection_p_1): Update target type of cast of data
21593 from to rtx to rtx_insn *.
21594 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
21595 rtx * to rtx_insn **.
21596 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
21597 rtx_insn *.
21598 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
21599 (mips_call_expr_from_insn): Likewise for param "insn".
21600 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
21601 (mips_find_pic_call_symbol): Likewise for param "insn".
21602 (mips_annotate_pic_calls): Likewise for local "insn".
21603 (mips_sim_insn): Likewise for this variable.
21604 (struct mips_sim): Likewise for field "insn" within elements of
21605 last_set array.
21606 (mips_sim_wait_reg): Likewise for param "insn".
21607 (mips_sim_wait_regs): Likewise.
21608 (mips_sim_wait_units): Likewise.
21609 (mips_sim_wait_insn): Likewise.
21610 (mips_sim_issue_insn): Likewise.
21611 (mips_sim_finish_insn): Likewise.
21612 (mips_seq_time): Likewise for param "seq" and local "insn".
21613 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
21614 locals "first", "second".
21615 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
21616 "last", "last2", "next".
21617 (mips_avoid_hazard): Likewise for params "after", "insn".
21618 (mips_reorg_process_insns): Likewise for locals "insn",
21619 "last_insn", "subinsn", "next_insn".
21620 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
21621 (mips16_split_long_branches): Likewise for locals "insn" "jump",
21622 "jump_sequence".
21623 (mips_output_mi_thunk): Likewise for local "insn".
21624 (mips_final_prescan_insn): Likewise for param "insn".
21625
21626 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21627
21628 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
21629 Strengthen return type and local "insns" from rtx to rtx_insn *.
21630 (microblaze_legitimize_tls_address): Likewise for local "insns".
21631 (microblaze_block_move_loop): Strengthen local "label" from rtx
21632 to rtx_code_label *.
21633 (microblaze_expand_prologue): Strengthen two locals named "insn"
21634 from rtx to rtx_insn *.
21635 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
21636 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
21637 "insn". Strengthen locals "div_label", "div_end_label" from rtx
21638 to rtx_code_label *.
21639
21640 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21641
21642 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
21643 param from rtx to rtx_insn *.
21644 (mep_reuse_lo): Likewise for third param.
21645 (mep_use_post_modify_p): Likewise for first param.
21646 (mep_core_address_length): Likewise.
21647 (mep_cop_address_length): Likewise.
21648 (mep_final_prescan_insn): Likewise.
21649 (mep_store_data_bypass_p): Likewise for both params.
21650 (mep_mul_hilo_bypass_p): Likewise.
21651 (mep_ipipe_ldc_p): Likewise for param.
21652
21653 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
21654 (mep_rewrite_mult): Likewise.
21655 (mep_rewrite_mulsi3): Likewise.
21656 (mep_rewrite_maddsi3): Likewise.
21657 (mep_reuse_lo_p_1): Likewise.
21658 (mep_reuse_lo_p): Likewise.
21659 (mep_frame_expr): Likewise.
21660 (mep_make_parallel): Likewise for both params.
21661 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
21662 local "insn".
21663 (mep_use_post_modify_p): Likewise for param "insn".
21664 (mep_core_address_length): Likewise.
21665 (mep_cop_address_length): Likewise.
21666 (mep_reg_set_in_function): Likewise for local "insn".
21667 (mep_asm_without_operands_p): Likewise.
21668 (F): Likewise for return type and param "x".
21669 (add_constant): Likewise for local "insn".
21670 (maybe_dead_move): Likewise for return type and local "insn".
21671 (mep_expand_prologue): Likewise for local "insn".
21672 (mep_final_prescan_insn): Likewise for param "insn".
21673 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
21674 "next", "follow", "x".
21675 (mep_insert_repeat_label_last): Likewise for return type, param
21676 "last_insn", and locals "next", "prev". Strengthen param "label"
21677 from rtx to rtx_code_label *.
21678 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
21679 rtx_insn *.
21680 (struct mep_doloop_end): Likewise for fields "insn" and
21681 "fallthrough".
21682 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
21683 Strengthen local "repeat_label" from rtx to rtx_code_label *.
21684 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
21685 rtx_insn *.
21686 (mep_invert_branch): Likewise for params "insn" and "after".
21687 (mep_reorg_erepeat): Likewise for param "insns" and locals
21688 "insn", "prev", "new_last", "barrier", "user". Strengthen local
21689 "l" from rtx to rtx_code_label *.
21690 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
21691 from rtx to rtx_insn *.
21692 (mep_reorg_addcombine): Likewise for param "insns" and locals
21693 "i", "n".
21694 (add_sp_insn_p): Likewise for param "insn".
21695 (mep_reorg_noframe): Likewise for param "insns" and locals
21696 "start_frame_insn", "end_frame_insn", "next".
21697 (mep_reorg): Likewise for local "insns".
21698 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
21699 cast.
21700 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
21701 (mep_mul_hilo_bypass_p): Likewise.
21702 (mep_ipipe_ldc_p): Likewise for param "insn".
21703 (mep_make_bundle): Likewise for return type, param "cop" and local
21704 "insn", splitting out the latter into a new local "seq" for when it
21705 is a SEQUENCE rather than an insn.
21706 (core_insn_p): Likewise for param "insn".
21707 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
21708 "last", "first", "note", "prev", "core_insn".
21709
21710 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21711
21712 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
21713 rtx to rtx_insn *.
21714 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
21715 (m68k_final_prescan_insn): Likewise for first param.
21716
21717 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
21718 (m68k_set_frame_related): Likewise for param "insn".
21719 (output_btst): Likewise for param "insn".
21720 (m68k_final_prescan_insn): Likewise.
21721 (m68k_move_to_reg): Likewise for local "insn".
21722 (m68k_call_tls_get_addr): Likewise for local "insns".
21723 (m68k_call_m68k_read_tp): Likewise.
21724 (strict_low_part_peephole_ok): Likewise for param "first_insn".
21725 (m68k_output_mi_thunk): Likewise for local "insn".
21726
21727 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21728
21729 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
21730 first param from rtx to rtx_insn *.
21731 (iq2000_adjust_insn_length): Likewise.
21732 (iq2000_output_conditional_branch): Likewise.
21733 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
21734 "insn" and local "nop_insn".
21735 (iq2000_annotate_frame_insn): Likewise for param "insn".
21736 (iq2000_expand_prologue): Likewise for both locals "insn".
21737 (iq2000_adjust_insn_length): Likewise for param "insn".
21738 (iq2000_output_conditional_branch): Likewise.
21739
21740 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21741
21742 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
21743 "insns" from rtx to rtx_insn *.
21744 (ia64_emit_cond_move): Likewise for locals "insn", "first".
21745 (struct spill_fill_data): Likewise for field "init_after" and for
21746 elements of array field "prev_insn".
21747 (spill_restore_mem): Likewise for locals "insn", "first".
21748 (do_spill): Likewise for local "insn".
21749 (do_restore): Likewise.
21750 (ia64_expand_prologue): Likewise.
21751 (ia64_expand_epilogue): Likewise.
21752 (emit_insn_group_barriers): Likewise for locals "insn",
21753 "last_label".
21754 (emit_all_insn_group_barriers): Likewise for locals "insn",
21755 "last".
21756 (dfa_stop_insn): Likewise for this global.
21757 (dfa_pre_cycle_insn): Likewise.
21758 (ia64_nop): Likewise.
21759 (final_emit_insn_group_barriers): Likewise for locals "insn",
21760 "last".
21761 (emit_predicate_relation_info): Likewise for locals "head", "n",
21762 "insn", "b", "a".
21763 (ia64_reorg): Likewise for local "insn".
21764 (ia64_output_mi_thunk): Likewise.
21765 (expand_vec_perm_interleave_2): Likewise for local "seq".
21766
21767 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21768
21769 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
21770 param 1 "insn" from rtx to rtx_insn *.
21771 (ix86_use_lea_for_mov): Likewise.
21772 (ix86_avoid_lea_for_addr): Likewise.
21773 (ix86_split_lea_for_addr): Likewise.
21774 (ix86_lea_for_add_ok): Likewise.
21775 (ix86_output_call_insn): Likewise.
21776
21777 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
21778 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
21779 (ix86_output_function_epilogue): Likewise for locals "insn",
21780 "deleted_debug_label".
21781 (legitimize_tls_address): Likewise for local "insn".
21782 (get_some_local_dynamic_name): Likewise.
21783 (increase_distance): Likewise for params "prev", "next".
21784 (distance_non_agu_define_in_bb): Likewise for params "insn",
21785 "start" and locals "prev", "next".
21786 (distance_non_agu_define): Likewise for param "insn".
21787 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
21788 locals "next", "prev".
21789 (distance_agu_use): Likewise for param "insn".
21790 (ix86_lea_outperforms): Likewise.
21791 (ix86_ok_to_clobber_flags): Likewise.
21792 (ix86_avoid_lea_for_add): Likewise.
21793 (ix86_use_lea_for_mov): Likewise.
21794 (ix86_avoid_lea_for_addr): Likewise.
21795 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
21796 (ix86_split_lea_for_addr): Likewise for param "insn".
21797 (ix86_lea_for_add_ok): Likewise for param "insn".
21798 (ix86_expand_carry_flag_compare): Likewise for local
21799 "compare_seq".
21800 (ix86_expand_int_movcc): Likewise.
21801 (ix86_output_call_insn): Likewise for param "insn".
21802 (ix86_output_call_insn): Likewise for local "i".
21803 (x86_output_mi_thunk): Introduce local "insn", using it in place
21804 of "tmp" when dealing with insns.
21805 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
21806 "start".
21807 (ix86_pad_returns): Likewise for locals "ret", "prev".
21808 (ix86_count_insn_bb): Likewise for local "insn".
21809 (ix86_pad_short_function): Likewise for locals "ret", "insn".
21810 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
21811 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
21812 (expand_vec_perm_interleave2): Likewise for local "seq".
21813 (expand_vec_perm_vperm2f128_vblend): Likewise.
21814 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
21815 call to for_each_rtx with for_each_rtx_in_insn.
21816
21817 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21818
21819 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
21820 "label" from rtx to rtx_code_label *.
21821 (ix86_expand_prologue): Likewise.
21822 (ix86_expand_split_stack_prologue): Likewise for locals "label",
21823 "varargs_label".
21824 (ix86_split_idivmod): Likewise for locals "end_label" and
21825 "qimode_label".
21826 (ix86_expand_branch): Likewise for local "label2".
21827 (ix86_expand_aligntest): Likewise for return type and local "label".
21828 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
21829 "top_label".
21830 (expand_movmem_epilogue): Likewise for the various locals named
21831 "label".
21832 (expand_setmem_epilogue): Likewise.
21833 (expand_small_movmem_or_setmem): Likewise for local "label".
21834 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
21835 Strengthen param "done_label" from rtx * to rtx_code_label **.
21836 Strengthen locals "loop_label" and "label" from rtx to
21837 rtx_code_label *.
21838 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
21839 Likewise for locals "loop_label", "label".
21840 (ix86_expand_set_or_movmem): Likewise for locals "label",
21841 "jump_around_label", "hot_label".
21842 (ix86_expand_strlensi_unroll_1): Likewise for locals
21843 "align_2_label", align_3_label", "align_4_label", "end_0_label",
21844 "end_2_label".
21845 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
21846 (void ix86_emit_i387_log1p): Likewise for locals "label1",
21847 "label2", "jump_label".
21848 (ix86_expand_sse_compare_and_jump): Likewise for return type and
21849 local "label".
21850 (ix86_expand_lfloorceil): Likewise for local "label".
21851 (ix86_expand_rint): Likewise.
21852 (ix86_expand_floorceildf_32): Likewise.
21853 (ix86_expand_floorceil): Likewise.
21854 (ix86_expand_rounddf_32): Likewise.
21855 (ix86_expand_trunc): Likewise.
21856 (ix86_expand_truncdf_32): Likewise.
21857 (ix86_expand_round): Likewise.
21858
21859 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21860
21861 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
21862 first param from rtx to rtx_insn *.
21863 (h8300_insn_length_from_table): Likewise.
21864 * config/h8300/h8300.c (F): Likewise for return type and param
21865 "x".
21866 (Fpa): Add a checked cast to rtx_insn *.
21867 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
21868 rtx_insn *.
21869 (final_prescan_insn): Likewise for param "insn".
21870 (h8300_binary_length): Likewise.
21871 (h8300_insn_length_from_table): Likewise.
21872
21873 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21874
21875 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
21876 Strengthen first param "insn" from rtx to rtx_insn *.
21877
21878 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
21879 Likewise.
21880 (frame_insn): Likewise for return type. Introduce local "insn"
21881 for use in place of local "x" for use as an rtx_insn *.
21882 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
21883 (epiphany_expand_prologue): Likewise for local "insn".
21884 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
21885 * config/epiphany/resolve-sw-modes.c
21886 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
21887 "seq".
21888
21889 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21890
21891 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
21892 param from rtx to rtx_insn *.
21893 (c6x_final_prescan_insn): Likewise for first param.
21894
21895 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
21896 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
21897 (c6x_expand_compare): Strengthen local "insns" from rtx to
21898 rtx_insn *.
21899 (c6x_get_unit_specifier): Likewise for param "insn".
21900 (c6x_print_unit_specifier_field): Likewise.
21901 (c6x_final_prescan_insn): Likewise.
21902 (emit_add_sp_const): Likewise for local "insn".
21903 (c6x_expand_prologue): Likewise.
21904
21905 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21906
21907 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
21908 param 1 from rtx to rtx_insn *.
21909 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
21910 the various locals named "insn".
21911 (expand_epilogue_reg_restore): Likewise.
21912 (frame_related_constant_load): Likewise.
21913 (add_to_reg): Likewise.
21914 (emit_link_insn): Likewise.
21915 (do_link): Likewise.
21916 (expand_interrupt_handler_prologue): Likewise.
21917 (branch_dest): Likewise for param "branch".
21918 (asm_conditional_branch): Likewise for param "insn".
21919 (gen_one_bundle): Likewise for elements of param "slot" and local
21920 "t".
21921 (bfin_gen_bundles): Likewise for locals "insn", "next" and
21922 elements of local "slot".
21923 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
21924 "queue", "next_queue", "prev".
21925 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
21926 (add_sched_insns_for_speculation): Likewise for local "insn".
21927
21928 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21929
21930 * config/avr/avr-protos.h (output_movqi): Strengthen first param
21931 from rtx to rtx_insn *.
21932 (output_movhi): Likewise.
21933 (output_movsisf): Likewise.
21934 (avr_out_tstsi): Likewise.
21935 (avr_out_tsthi): Likewise.
21936 (avr_out_tstpsi): Likewise.
21937 (avr_out_compare): Likewise.
21938 (avr_out_compare64): Likewise.
21939 (avr_out_movpsi): Likewise.
21940 (ashlqi3_out): Likewise.
21941 (ashlhi3_out): Likewise.
21942 (ashlsi3_out): Likewise.
21943 (ashrqi3_out): Likewise.
21944 (ashrhi3_out): Likewise.
21945 (ashrsi3_out): Likewise.
21946 (lshrqi3_out): Likewise.
21947 (lshrhi3_out): Likewise.
21948 (lshrsi3_out): Likewise.
21949 (avr_out_ashlpsi3): Likewise.
21950 (avr_out_ashrpsi3): Likewise.
21951 (avr_out_lshrpsi3): Likewise.
21952 (avr_out_fract): Likewise.
21953 (avr_out_sbxx_branch): Likewise.
21954 (avr_out_round): Likewise.
21955 (avr_out_xload): Likewise.
21956 (avr_out_movmem): Likewise.
21957 (adjust_insn_length): Likewise.
21958 (avr_out_lpm): Likewise.
21959 (reg_unused_after): Likewise.
21960 (_reg_unused_after): Likewise.
21961 (avr_jump_mode): Likewise for second param.
21962 (jump_over_one_insn): Likewise for first param.
21963 (avr_final_prescan_insn): Likewise.
21964 (out_shift_with_cnt): Likewise for second param.
21965
21966 * config/avr/avr.c (get_sequence_length): Likewise for param
21967 "insns" and local "insn".
21968 (emit_push_byte): Likewise for local "insn".
21969 (emit_push_sfr): Likewise.
21970 (avr_prologue_setup_frame): Likewise for locals "insn",
21971 "fp_plus_insns", "sp_plus_insns".
21972 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
21973 "sp_plus_insns".
21974 (avr_jump_mode): Likewise for param "insn".
21975 (avr_final_prescan_insn): Likewise.
21976 (avr_find_unused_d_reg): Likewise.
21977 (avr_out_lpm_no_lpmx): Likewise.
21978 (avr_out_lpm): Likewise.
21979 (avr_out_xload): Likewise.
21980 (output_movqi): Likewise.
21981 (output_movhi): Likewise.
21982 (out_movqi_r_mr): Likewise.
21983 (out_movhi_r_mr): Likewise.
21984 (out_movsi_r_mr): Likewise.
21985 (out_movsi_mr_r): Likewise.
21986 (output_movsisf): Likewise.
21987 (avr_out_load_psi): Likewise.
21988 (avr_out_store_psi): Likewise.
21989 (avr_out_movpsi): Likewise.
21990 (out_movqi_mr_r): Likewise.
21991 (avr_out_movhi_mr_r_xmega): Likewise.
21992 (out_movhi_mr_r): Likewise.
21993 (compare_condition): Likewise for param "insn" and local "next".
21994 (compare_sign_p): Likewise for param "insn".
21995 (compare_diff_p): Likewise.
21996 (compare_eq_p): Likewise.
21997 (avr_out_compare): Likewise.
21998 (avr_out_compare64): Likewise.
21999 (avr_out_tsthi): Likewise.
22000 (avr_out_tstpsi): Likewise.
22001 (avr_out_tstsi): Likewise.
22002 (out_shift_with_cnt): Likewise.
22003 (ashlqi3_out): Likewise.
22004 (ashlhi3_out): Likewise.
22005 (avr_out_ashlpsi3): Likewise.
22006 (ashlsi3_out): Likewise.
22007 (ashrqi3_out): Likewise.
22008 (ashrhi3_out): Likewise.
22009 (avr_out_ashrpsi3): Likewise.
22010 (ashrsi3_out): Likewise.
22011 (lshrqi3_out): Likewise.
22012 (lshrhi3_out): Likewise.
22013 (avr_out_lshrpsi3): Likewise.
22014 (lshrsi3_out): Likewise.
22015 (avr_out_fract): Likewise.
22016 (avr_out_round): Likewise.
22017 (avr_adjust_insn_length): Likewise.
22018 (reg_unused_after): Likewise.
22019 (_reg_unused_after): Likewise.
22020 (avr_compare_pattern): Likewise.
22021 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
22022 and locals "branch1", "branch2", "insn2", "jump".
22023 (avr_reorg): Likewise for local "insn".
22024 (avr_2word_insn_p): Likewise for param "insn".
22025 (jump_over_one_insn_p): Likewise.
22026 (avr_out_sbxx_branch): Likewise.
22027 (avr_out_movmem): Likewise.
22028
22029 2014-08-25 David Malcolm <dmalcolm@redhat.com>
22030
22031 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
22032 param from rtx to rtx_insn *.
22033 (thumb1_final_prescan_insn): Likewise.
22034 (thumb2_final_prescan_insn): Likewise.
22035
22036 * config/arm/arm.c (emit_set_insn): Strengthen return type from
22037 rtx to rtx_insn *.
22038 (struct minipool_node): Likewise for field "insn".
22039 (dump_minipool): Likewise for param "scan".
22040 (create_fix_barrier): Likewise for local "from". Strengthen local
22041 "label" from rtx to rtx_code_label *.
22042 (push_minipool_barrier): Strengthen param "insn" from rtx to
22043 rtx_insn *.
22044 (push_minipool_fix): Likewise.
22045 (note_invalid_constants): Likewise.
22046 (thumb2_reorg): Likewise for local "insn".
22047 (arm_reorg): Likewise.
22048 (thumb2_final_prescan_insn): Likewise for param
22049 "insn" and local "first_insn".
22050 (arm_final_prescan_insn): Likewise for param "insn" and locals
22051 "start_insn", "this_insn".
22052 (arm_debugger_arg_offset): Likewise for param "insn".
22053 (thumb1_emit_multi_reg_push): Likewise for return type and local
22054 "insn".
22055 (thumb1_final_prescan_insn): Likewise for param "insn".
22056 (thumb_far_jump_used_p): Likewise for local "insn".
22057 (thumb1_expand_prologue): Likewise.
22058 (arm_expand_epilogue_apcs_frame): Likewise.
22059 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
22060 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
22061 from rtx to rtx_code_label *.
22062 (arm_split_atomic_op): Likewise for local "label".
22063 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
22064
22065 2014-08-25 David Malcolm <dmalcolm@redhat.com>
22066
22067 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
22068 first param from rtx to rtx_insn *.
22069 (arc_verify_short): Likewise.
22070 (arc_short_long): Likewise.
22071 (arc_need_delay): Likewise.
22072
22073 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
22074 "target_insn".
22075 (arc_ccfsm_advance): Likewise for param "insn" and locals
22076 "start_insn", "this_insn".
22077 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
22078 (arc_ccfsm_post_advance): Likewise for param "insn".
22079 (arc_next_active_insn): Likewise for return type and param "insn".
22080 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
22081 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
22082 (output_short_suffix): Likewise for local "insn".
22083 (arc_final_prescan_insn): Likewise for param "insn". Remove
22084 now-redundant checked cast.
22085 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
22086 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
22087 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
22088 for use where lc_set became an insn.
22089 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
22090 rtx to rtx_insn *.
22091 (arc_get_insn_variants): Likewise for local "prev".
22092 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
22093 "next".
22094 (arc_predicate_delay_insns): Likewise for local "insn".
22095 (arc_pad_return): Likewise for local "prev". For now, add a
22096 checked cast when extracting the insn from "final_sequence".
22097 (arc_short_long): Likewise for param "insn".
22098 (arc_need_delay): Likewise for param "insn" and local "next".
22099 (arc_label_align): Likewise for locals "prev", "next".
22100
22101 2014-08-25 David Malcolm <dmalcolm@redhat.com>
22102
22103 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
22104 "insn" from rtx to rtx_insn *.
22105 (alpha_gp_save_rtx): Likewise for local "seq".
22106 (alpha_instantiate_decls): Likewise for local "top".
22107 (get_some_local_dynamic_name): Likewise for local "insn".
22108 (alpha_does_function_need_gp): Likewise.
22109 (set_frame_related_p): Likewise for return type and for locals
22110 "seq" and "insn".
22111 (emit_frame_store_1): Likewise for local "insn".
22112 (alpha_expand_prologue): Likewise for locals "insn", "seq".
22113 (alpha_end_function): Likewise for local "insn".
22114 (alpha_output_mi_thunk_osf): Likewise.
22115 (alphaev4_insn_pipe): Likewise for param "insn".
22116 (alphaev5_insn_pipe): Likewise.
22117 (alphaev4_next_group): Likewise for return type and param 1
22118 "insn".
22119 (alphaev5_next_group): Likewise.
22120 (alpha_align_insns_1): Likewise for return type and param 1 of
22121 callback param "next_group", and for locals "i", "next", "prev",
22122 "where", "where2", "insn".
22123
22124 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
22125
22126 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
22127 rather than modifying the stmt.
22128
22129 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22130
22131 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
22132 cgraph_state conversion.
22133
22134 2014-08-25 David Malcolm <dmalcolm@redhat.com>
22135
22136 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22137 Strengthen local "insns" from rtx to rtx_insn *.
22138 (aarch64_set_frame_expr): Likewise for local "insn".
22139 (aarch64_save_or_restore_fprs): Likewise.
22140 (aarch64_save_or_restore_callee_save_registers): Likewise.
22141 (aarch64_expand_prologue): Likewise.
22142 (aarch64_expand_epilogue): Likewise.
22143 (aarch64_output_mi_thunk): Likewise.
22144 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
22145 "label2" from rtx to rtx_code_label *.
22146 (aarch64_split_atomic_op): Likewise for local "label".
22147
22148 2014-08-25 Martin Liska <mliska@suse.cz>
22149
22150 * cgraph.h (symtab_node):
22151 (bool needed_p (void)): created from decide_is_symbol_needed
22152 (bool referred_to_p (void)): created from referred_to_p
22153 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
22154 * cgraph.h (cgraph_node):
22155 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
22156 (void expand (void)): created from expand_function
22157 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
22158 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
22159 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
22160 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
22161 * cgraph.h (varpool_node):
22162 (static void add (tree decl): created from varpool_add_new_variable
22163 * cgraph.h (cgraph_edge):
22164 void remove (void);
22165 (void remove_caller (void)): created from cgraph_edge_remove_caller
22166 (void remove_callee (void)): created from cgraph_edge_remove_callee
22167 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
22168 created from cgraph_set_call_stmt
22169 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
22170 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
22171 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
22172 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
22173 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
22174 created from cgraph_speculative_call_info
22175 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
22176 int freq_scale, bool update_original)): created from cgraph_clone_edge
22177 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
22178 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
22179 (bool recursive_p (void)): created from cgraph_edge_recursive_p
22180 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
22181 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
22182 (static void rebuild_references (void)): created from cgraph_rebuild_references
22183 * cgraph.h (symbol_table):
22184 (create_reference): renamed from add_reference
22185 (maybe_create_reference): renamed from maybe_add_reference
22186 (void register_symbol (symtab_node *node)): new function
22187 (void clear_asm_symbols (void)): new function
22188 (void unregister (symtab_node *node)): new function
22189 (void release_symbol (cgraph_node *node, int uid)): new function
22190 (cgraph_node * allocate_cgraph_symbol (void)): new function
22191 (void initialize (void)): created from cgraph_init
22192 (symtab_node *first_symbol (void)):new function
22193 (asm_node *first_asm_symbol (void)):new function
22194 (symtab_node *first_defined_symbol (void)):new function
22195 (varpool_node *first_variable (void)):new function
22196 (varpool_node *next_variable (varpool_node *node)):new function
22197 (varpool_node *first_static_initializer (void)):new function
22198 (varpool_node *next_static_initializer (varpool_node *node)):new function
22199 (varpool_node *first_defined_variable (void)):new function
22200 (varpool_node *next_defined_variable (varpool_node *node)):new function
22201 (cgraph_node *first_defined_function (void)):new function
22202 (cgraph_node *next_defined_function (cgraph_node *node)):new function
22203 (cgraph_node *first_function (void)):new function
22204 (cgraph_node *next_function (cgraph_node *node)):new function
22205 (cgraph_node *first_function_with_gimple_body (void)):new function
22206 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
22207 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
22208 created from symtab_remove_unreachable_nodes
22209 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
22210 (void process_new_functions (void)): created from cgraph_process_new_functions
22211 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
22212 (bool output_variables (void)): created from varpool_node::output_variables
22213 (void output_asm_statements (void)): created from output_asm_statements
22214 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
22215 (void compile (void)): created from compile
22216 (void output_weakrefs (void)): created from output_weakrefs
22217 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
22218 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
22219 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
22220 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
22221 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
22222 created from cgraph_next_function_with_gimple_body
22223 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
22224 created from cgraph_remove_edge_removal_hook
22225 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
22226 created from cgraph_add_node_removal_hook
22227 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
22228 created from cgraph_remove_node_removal_hook
22229 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
22230 created from varpool_add_node_removal_hook
22231 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
22232 created from varpool_remove_node_removal_hook
22233 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
22234 created from cgraph_add_function_insertion_hook
22235 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
22236 created from cgraph_remove_function_insertion_hook
22237 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
22238 created from varpool_add_variable_insertion_hook
22239 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
22240 created from varpool_remove_variable_insertion_hook
22241 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
22242 created from cgraph_add_edge_duplication_hook
22243 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
22244 created from cgraph_remove_edge_duplication_hook
22245 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
22246 created from cgraph_add_node_duplication_hook
22247 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
22248 created from cgraph_remove_node_duplication_hook
22249 (void call_edge_removal_hooks (cgraph_edge *e)):
22250 created from cgraph_call_edge_removal_hooks
22251 (void call_cgraph_insertion_hooks (cgraph_node *node)):
22252 created from call_function_insertion_hooks
22253 (void call_cgraph_removal_hooks (cgraph_node *node)):
22254 created from cgraph_call_node_removal_hooks
22255 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
22256 created from cgraph_node::call_duplication_hooks
22257 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
22258 created from cgraph_call_edge_duplication_hooks
22259 (void call_varpool_removal_hooks (varpool_node *node)):
22260 created from varpool_call_node_removal_hooks
22261 (void call_varpool_insertion_hooks (varpool_node *node)):
22262 created from varpool_call_variable_insertion_hooks
22263 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
22264 created from insert_to_assembler_name_hash
22265 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
22266 created from unlink_from_assembler_name_hash
22267 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
22268 created from symtab_prevail_in_asm_name_hash
22269 (void symtab_initialize_asm_name_hash (void)):
22270 created from symtab_initialize_asm_name_hash
22271 (void change_decl_assembler_name (tree decl, tree name)):
22272 created from change_decl_assembler_name
22273 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
22274 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
22275 created from decl_assembler_name_hash
22276 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
22277 created from decl_assembler_name_equal
22278 (static hashval_t hash_node_by_assembler_name (const void *p)):
22279 created from hash_node_by_assembler_name
22280 (static int eq_assembler_name (const void *p1, const void *p2)):
22281 created from eq_assembler_name
22282
22283 2014-08-25 Marek Polacek <polacek@redhat.com>
22284
22285 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
22286
22287 2014-08-25 Petr Murzin <petr.murzin@intel.com>
22288
22289 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
22290 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
22291 SWI1248_AVX512BW mode iterator.
22292
22293 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
22294
22295 PR target/62111
22296 * config/sh/predicates.md (general_extend_operand): Disable
22297 TRUNCATE before reload completes.
22298
22299 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
22300
22301 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
22302
22303 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
22304
22305 PR target/61996
22306 * config/sh/sh.opt (musermode): Allow negative form.
22307 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
22308 targets that don't support it.
22309 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
22310 Document -mno-usermode option.
22311
22312 2014-08-24 Kito Cheng <kito@0xlab.org>
22313
22314 * system.h (CALLER_SAVE_PROFITABLE): Poison.
22315 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
22316 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
22317 * doc/tm.texi: Regenerate.
22318
22319 2014-08-24 Kito Cheng <kito@0xlab.org>
22320
22321 * ira.c: Fix typo in comment.
22322
22323 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
22324
22325 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
22326 Deprecate c++1y. Change language to reflect greater confidence in C++14.
22327
22328 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
22329
22330 PR target/62038
22331 * config/pa/pa.c (pa_output_function_epilogue): Don't set
22332 last_address when the current function is a thunk.
22333 (pa_asm_output_mi_thunk): When we don't have named sections or they
22334 are not being used, check that thunk can reach the stub table with a
22335 short branch.
22336
22337 2014-08-23 David Malcolm <dmalcolm@redhat.com>
22338
22339 * web.c (union_match_dups): Strengthen param "insn" from rtx to
22340 rtx_insn *.
22341 (pass_web::execute): Likewise for local "insn".
22342
22343 2014-08-23 David Malcolm <dmalcolm@redhat.com>
22344
22345 * var-tracking.c (struct micro_operation_def): Strengthen field
22346 "insn" from rtx to rtx_insn *.
22347 (struct emit_note_data_def): Likewise.
22348 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
22349 (vt_stack_adjustments): Likewise for local "insn".
22350 (adjust_insn): Likewise for param "insn".
22351 (val_store): Likewise.
22352 (val_resolve): Likewise.
22353 (struct count_use_info): Likewise for field "insn".
22354 (log_op_type): Likewise for param "insn".
22355 (reverse_op): Likewise.
22356 (prepare_call_arguments): Likewise.
22357 (add_with_sets): The initial param takes an insn, but we can't
22358 yet strengthen it from rtx to rtx_insn * since it's used as a
22359 cselib_record_sets_hook callback. For now rename initial param
22360 from "insn" to "uncast_insn", and introduce a local "insn" of
22361 the stronger rtx_insn * type, with a checked cast.
22362 (compute_bb_dataflow): Strengthen local "insn" from rtx to
22363 rtx_insn *.
22364 (emit_note_insn_var_location): Likewise.
22365 (emit_notes_for_changes): Likewise.
22366 (emit_notes_for_differences): Likewise.
22367 (next_non_note_insn_var_location): Likewise for return type and
22368 for param "insn".
22369 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
22370 (vt_initialize): Likewise for local "insn".
22371 (delete_debug_insns): Likewise for locals "insn" and "next".
22372
22373 2014-08-23 David Malcolm <dmalcolm@redhat.com>
22374
22375 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
22376 rtx_insn *.
22377 (mark_constant_pool): Likewise for local "insn".
22378
22379 2014-08-23 David Malcolm <dmalcolm@redhat.com>
22380
22381 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
22382 rtx to rtx_insn *.
22383 (dead_debug_promote_uses): Likewise.
22384 (dead_debug_insert_temp): Likewise.
22385
22386 2014-08-23 David Malcolm <dmalcolm@redhat.com>
22387
22388 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
22389 from const_rtx to const rtx_insn *.
22390 (store_killed_after): Likewise. Strengthen locals "last", "act"
22391 from rtx to rtx_insn *.
22392 (store_killed_before): Strengthen param "insn" from const_rtx to
22393 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
22394 (find_moveable_store): Strengthen param "insn" from rtx to
22395 rtx_insn *.
22396 (compute_store_table): Likewise for local "insn".
22397 (insert_insn_start_basic_block): Likewise for param "insn" and
22398 locals "prev", "before", "insn".
22399 (insert_store): For now, add a checked cast to rtx_insn * on the
22400 result of gen_move_insn.
22401 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
22402 to rtx_insn *.
22403 (replace_store_insn): Likewise. For now, add a checked cast to
22404 rtx_insn * on the result of gen_move_insn.
22405
22406 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22407
22408 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
22409 rtx_insn *.
22410 (expand_sjlj_dispatch_table): Likewise.
22411
22412 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22413
22414 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
22415 "insn" from rtx to rtx_insn *.
22416
22417 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22418
22419 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
22420 "insn" from rtx to rtx_insn *.
22421 (dup_block_and_redirect): Likewise for param 3 "before".
22422
22423 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
22424 from rtx to rtx_insn *.
22425 (move_insn_for_shrink_wrap): Likewise.
22426 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
22427 (dup_block_and_redirect): Likewise for param "before" and local
22428 "insn".
22429 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
22430 "end".
22431 (convert_to_simple_return): Likewise for local "start".
22432
22433 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
22434 Strengthen local "insn" from rtx to rtx_insn *, for use when
22435 invoking requires_stack_frame_p.
22436
22437 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22438
22439 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
22440 rtx_insn *.
22441 (speculate_expr): Likewise for locals "orig_insn_rtx",
22442 "spec_insn_rtx".
22443 (eq_transformed_insns): Likewise for locals "i1", "i2".
22444 (check_for_new_jump): Likewise for return type and local "end".
22445 (find_new_jump): Likewise for return type and local "jump".
22446 (sel_split_edge): Likewise for local "jump".
22447 (sel_create_recovery_block): Likewise.
22448 (sel_redirect_edge_and_branch_force): Likewise.
22449 (sel_redirect_edge_and_branch): Likewise.
22450
22451 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22452
22453 * sel-sched.c (substitute_reg_in_expr): Strengthen local
22454 "new_insn" from rtx to rtx_insn *.
22455 (create_insn_rtx_with_rhs): Likewise for return type and for local
22456 "insn_rtx".
22457 (create_insn_rtx_with_lhs): Likewise.
22458 (create_speculation_check): Likewise for local "insn_rtx".
22459 (implicit_clobber_conflict_p): Likewise for local "insn".
22460 (get_expr_cost): Likewise.
22461 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
22462 (move_cond_jump): Likewise for locals "next", "prev", "link",
22463 "head", "from", "to".
22464
22465 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22466
22467 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
22468 "next" from rtx to rtx_insn *.
22469 (find_conditional_protection): Likewise for local "next".
22470 (is_conditionally_protected): Likewise for local "insn1".
22471 (is_pfree): Likewise for locals "insn1", "insn2".
22472
22473 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22474
22475 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
22476 from rtx to rtx_insn *.
22477
22478 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
22479 locals "insn1", "insn2" from rtx to rtx_insn *.
22480 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
22481 locals "insn", "prev", "last_jump", "next_tail".
22482 (schedule_ebb): Likewise for params "head", "tail".
22483 (schedule_ebbs): Likewise for locals "tail", "head".
22484
22485 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
22486 to rtx_insn on "last_insn" in one of the invocations of
22487 schedule_ebb.
22488
22489 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22490
22491 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
22492 "elem", "insn" from rtx to rtx_insn *.
22493 (change_spec_dep_to_hard): Likewise.
22494 (get_back_and_forw_lists): Likewise for local "con".
22495 (sd_add_dep): Likewise for locals "elem", "insn".
22496 (sd_resolve_dep): Likewise for locals "pro", "con".
22497 (sd_unresolve_dep): Likewise.
22498 (sd_delete_dep): Likewise.
22499 (chain_to_prev_insn): Likewise for local "pro".
22500 (find_inc): Likewise for locals "pro", "con".
22501
22502 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22503
22504 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
22505 to rtx_insn *.
22506 (reg_set_between_p): Strengthen local "insn" from const_rtx to
22507 const rtx_insn *.
22508 (modified_between_p): Strengthen local "insn" from rtx to
22509 rtx_insn *.
22510 (remove_reg_equal_equiv_notes_for_regno): Likewise.
22511 (keep_with_call_p): Strengthen local "i2" from const_rtx to
22512 const rtx_insn *.
22513
22514 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22515
22516 * resource.c (next_insn_no_annul): Strengthen local "next" from
22517 rtx to rtx_insn *.
22518 (mark_referenced_resources): Likewise for local "insn".
22519
22520 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22521
22522 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
22523 to rtx_insn *.
22524 (find_reloads): Likewise for param 1.
22525 (subst_reloads): Likewise for sole param.
22526 (find_equiv_reg): Likwise for param 2.
22527 (regno_clobbered_p): Likwise for param 2.
22528 (reload): Likewise for param 1.
22529
22530 * caller-save.c (save_call_clobbered_regs): Strengthen local
22531 "insn" from rtx to rtx_insn *.
22532 (insert_one_insn): Likewise for local "insn".
22533
22534 * reload.c (this_insn): Likewise for this global.
22535 (find_reloads): Likewise for param "insn".
22536 (find_reloads_toplev): Likewise.
22537 (find_reloads_address): Likewise.
22538 (subst_reg_equivs): Likewise.
22539 (update_auto_inc_notes): Likewise.
22540 (find_reloads_address_1): Likewise.
22541 (find_reloads_subreg_address): Likewise.
22542 (subst_reloads): Likewise.
22543 (find_equiv_reg): Likewise, also for local "p".
22544 (regno_clobbered_p): Likewise for param "insn".
22545
22546 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
22547 array.
22548 (spill_reg_store): Likewise for the elements of this array.
22549 (remove_init_insns): Likewise for local "equiv_insn".
22550 (will_delete_init_insn_p): Likewise for param "insn".
22551 (reload): Likewise for param ""first" and local "insn".
22552 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
22553 rtx_insn *.
22554 (calculate_elim_costs_all_insns): Likewise.
22555 (delete_caller_save_insns): Likewise.
22556 (spill_failure): Likewise for param "insn".
22557 (delete_dead_insn): Likewise.
22558 (set_label_offsets): Likewise.
22559 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
22560 "prev_insn".
22561 (elimination_costs_in_insn): Likewise for param "insn".
22562 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
22563 when referring to an insn.
22564 (set_initial_label_offsets): Likewise.
22565 (set_offsets_for_label): Strengthen param "insn" from rtx to
22566 rtx_insn *.
22567 (init_eliminable_invariants): Likewise for param "first" and local
22568 "insn".
22569 (fixup_eh_region_note): Likewise for param "insn".
22570 (reload_as_needed): Likewise for locals "prev", "insn",
22571 "old_next", "old_prev", "next".
22572 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
22573 "last".
22574 (reload_inheritance_insn): Strengthen elements of this array from
22575 rtx to rtx_insn *.
22576 (failed_reload): Likewise for param "insn".
22577 (choose_reload_regs): Likewise for local "insn". Replace use of
22578 NULL_RTX with NULL when referring to an insn.
22579 (input_reload_insns): Strengthen elements of this array from rtx
22580 to rtx_insn *.
22581 (other_input_address_reload_insns): Likewise for this global.
22582 (other_input_reload_insns): Likewise for this global.
22583 (input_address_reload_insns): Likwise for the elements of this
22584 array.
22585 (inpaddr_address_reload_insns): Likwise for the elements of this
22586 array.
22587 (output_reload_insns): Likewise for the elements of this array.
22588 (output_address_reload_insns): Likewise for the elements of this
22589 array.
22590 (outaddr_address_reload_insns): Likewise for the elements of this
22591 array.
22592 (operand_reload_insns): Likewise for this global.
22593 (other_operand_reload_insns): Likewise for this global.
22594 (other_output_reload_insns): Likewise for the elements of this
22595 array.
22596 (new_spill_reg_store): Likewise for the elements of this
22597 array.
22598 (emit_input_reload_insns): Likewise for locals "insn", "temp".
22599 Strengthen local "where" from rtx * to rtx_insn **.
22600 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
22601 from rtx to rtx_insn *.
22602 (do_input_reload): Likewise for local "insn".
22603 (do_output_reload): Likewise for local "insn".
22604 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
22605 (emit_insn_if_valid_for_reload): Likewise for return type and local
22606 "last". Add checked cast to rtx_insn when returning "insn" since
22607 this has been through emit_insn.
22608 (gen_reload): Strengthen return type and locals "last", "insn", "set"
22609 from rtx to rtx_insn *. Add checked cast to rtx_insn when
22610 returning "insn" since it's been through
22611 emit_insn_if_valid_for_reload at this point.
22612 (delete_output_reload): Strengthen param "insn" and locals
22613 "output_reload_insn", "i2" from rtx to rtx_insn *.
22614 (delete_address_reloads): Likewise for params "dead_insn",
22615 "current_insn" and locals "prev", "next".
22616 (delete_address_reloads_1): Likewise for params "dead_insn",
22617 "current_insn" and locals "prev", "i2".
22618 (inc_for_reload): Likewise for locals "last", "add_insn".
22619 (add_auto_inc_notes): Strengthen param "insn" from rtx to
22620 rtx_insn *.
22621
22622 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
22623 param of this duplicate of the prototype from reload.h
22624
22625 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22626
22627 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
22628 rtx to rtx_insn *.
22629 (regstat_bb_compute_calls_crossed): Likewise.
22630
22631 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22632
22633 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
22634 to rtx_insn *.
22635 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
22636 with an insn.
22637 (regrename_analyze): Strengthen local "insn" from rtx to
22638 rtx_insn *.
22639 (scan_rtx_reg): Likewise for param "insn".
22640 (scan_rtx_address): Likewise.
22641 (scan_rtx): Likewise.
22642 (restore_operands): Likewise.
22643 (record_out_operands): Likewise.
22644 (build_def_use): Likewise for local "insn". Replace use of
22645 NULL_RTX with NULL when dealing with an insn.
22646
22647 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22648
22649 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
22650 * reginfo.c (reg_scan): Likewise, also for local "insn".
22651 (reg_scan_mark_refs): Likewise for param "insn".
22652 (init_subregs_of_mode): Likewise for local "insn".
22653
22654 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22655
22656 * regcprop.c (struct queued_debug_insn_change): Strengthen field
22657 "insn" from rtx to rtx_insn *.
22658 (replace_oldest_value_reg): Likewise for param "insn".
22659 (replace_oldest_value_addr): Likewise.
22660 (replace_oldest_value_mem): Likewise.
22661 (apply_debug_insn_changes): Likewise for local "last_insn".
22662 (copyprop_hardreg_forward_1): Likewise for local "insn".
22663
22664 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22665
22666 * reg-stack.c (next_flags_user): Strengthen return type and param
22667 "insn" from rtx to rtx_insn *.
22668 (straighten_stack): Likewise for param "insn".
22669 (check_asm_stack_operands): Likewise.
22670 (remove_regno_note): Likewise.
22671 (emit_pop_insn): Likewise for return type, param "insn", local
22672 "pop_insn".
22673 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
22674 "limit" from rtx to rtx_insn *.
22675 (swap_to_top): Likewise for param "insn".
22676 (move_for_stack_reg): Likewise.
22677 (move_nan_for_stack_reg): Likewise.
22678 (swap_rtx_condition): Likewise.
22679 (compare_for_stack_reg): Likewise.
22680 (subst_all_stack_regs_in_debug_insn): Likewise.
22681 (subst_stack_regs_pat): Likewise, and local "insn2".
22682 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
22683 rtx_insn *.
22684 (subst_stack_regs): Likewise.
22685 (change_stack): Likewise.
22686 (convert_regs_1): Likewise for locals "insn", "next".
22687
22688 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22689
22690 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
22691 rtx_insn *.
22692 (combine_set_extension): Likewise for param "curr_insn".
22693 (transform_ifelse): Likewise for param "def_insn".
22694 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
22695 from vec<rtx> * to vec<rtx_insn *> *.
22696 (is_cond_copy_insn): Likewise for param "insn".
22697 (struct ext_state): Strengthen the four vec fields from vec<rtx>
22698 to vec<rtx_insn *>.
22699 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
22700 local "def_insn" from rtx to rtx_insn *.
22701 (get_sub_rtx): Likewise for param "def_insn".
22702 (merge_def_and_ext): Likewise.
22703 (combine_reaching_defs): Likewise.
22704 (add_removable_extension): Likewise for param "insn".
22705 (find_removable_extensions): Likewise for local "insn".
22706 (find_and_remove_re): Likewise for locals "curr_insn" and
22707 "def_insn". Strengthen locals "reinsn_del_list" and
22708 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
22709
22710 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22711
22712 * recog.c (split_insn): Strengthen param "insn" and locals
22713 "first", "last" from rtx to rtx_insn *.
22714 (split_all_insns): Likewise for locals "insn", "next".
22715 (split_all_insns_noflow): Likewise.
22716
22717 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22718
22719 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
22720 const rtx_insn *.
22721 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
22722 (debug_rtx_find): Likewise for param 1 "x".
22723
22724 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
22725 const_rtx to const rtx_insn *. Likewise for local "insn".
22726 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
22727 (debug_rtx_find): Likewise for param 1 "x".
22728 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
22729 from const_rtx to const rtx_insn * within the appropriate cases of
22730 the switch statement.
22731
22732 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
22733 Strengthen local "insns" from rtx to rtx_insn * since this is
22734 passed to a call to debug_rtx_list.
22735
22736 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22737
22738 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
22739 to rtx_insn *.
22740
22741 * function.c (stack_protect_epilogue): Add checked cast to
22742 rtx_insn for now when invoking predict_insn_def.
22743
22744 * predict.c (predict_insn): Strengthen param "insn" from rtx to
22745 rtx_insn *.
22746 (predict_insn_def): Likewise.
22747 (rtl_predict_edge): Likewise for local "last_insn".
22748 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
22749 const rtx_insn *.
22750 (combine_predictions_for_insn): Strengthen param "insn" from rtx
22751 to rtx_insn *.
22752 (bb_estimate_probability_locally): Likewise for local "last_insn".
22753 (expensive_function_p): Likewise for local "insn".
22754
22755 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
22756 local "jmp", since this is used when invoking predict_insn_def.
22757
22758 2014-08-22 Marek Polacek <polacek@redhat.com>
22759
22760 PR c++/62199
22761 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
22762
22763 2014-08-22 Marek Polacek <polacek@redhat.com>
22764
22765 PR c/61271
22766 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
22767 a comparison in parens.
22768 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
22769 in parens.
22770
22771 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22772
22773 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
22774 rtx_insn *.
22775
22776 * cprop.c (fis_get_condition): Likewise.
22777
22778 * postreload.c (reload_cse_regs): Likewise for param "first".
22779 (reload_cse_simplify): Likewise for param "insn".
22780 (reload_cse_regs_1): Likewise for local "insn".
22781 (reload_cse_simplify_set): Likewise for param "insn".
22782 (reload_cse_simplify_operands): Likewise.
22783 (struct reg_use): Likewise for field "insn".
22784 (reload_combine_purge_insn_uses): Likewise for param "insn".
22785 (fixup_debug_insns): Likewise for params "from", "to" and local
22786 "insn".
22787 (try_replace_in_use): Likewise for local "use_insn".
22788 (reload_combine_recognize_const_pattern): Likewise for param
22789 "insn" and locals "add_moved_after_insn", "use_insn".
22790 (reload_combine_recognize_pattern): Likewise for param "insn" and
22791 local "prev".
22792 (reload_combine): Likewise for locals "insn", "prev".
22793 (reload_combine_note_use): Likewise for param "insn".
22794 (move2add_use_add2_insn): Likewise.
22795 (move2add_use_add3_insn): Likewise.
22796 (reload_cse_move2add): Likewise, also for local "next".
22797 (move2add_note_store): Likewise for local "insn".
22798
22799 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22800
22801 * postreload-gcse.c (struct occr): Strengthen field "insn" from
22802 rtx to rtx_insn *.
22803 (struct unoccr): Likewise.
22804 (struct modifies_mem): Likewise.
22805 (alloc_mem): Likewise for local "insn".
22806 (insert_expr_in_table): Likewise for param "insn".
22807 (dump_expr_hash_table_entry): Likewise for local "insn".
22808 (oprs_unchanged_p): Likewise for param "insn".
22809 (load_killed_in_block_p): Likewise for local "setter".
22810 (record_last_reg_set_info): Likewise for param "insn".
22811 (record_last_reg_set_info_regno): Likewise.
22812 (record_last_mem_set_info): Likewise.
22813 (record_last_set_info): Likewise for local "last_set_insn".
22814 (record_opr_changes): Likewise for param "insn".
22815 (hash_scan_set): Likewise.
22816 (compute_hash_table): Likewise for local "insn".
22817 (get_avail_load_store_reg): Likewise for param "insn".
22818 (eliminate_partially_redundant_load): Likewise, also for locals
22819 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
22820 RTX for insns.
22821 (eliminate_partially_redundant_loads): Likewise for local "insn".
22822
22823 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22824
22825 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
22826 rtx to rtx_insn *.
22827 (expand_binop): Likewise for locals "entry_last", "last", "insns"
22828 (expand_twoval_unop): Likewise for locals entry_last", "last".
22829 (expand_twoval_binop): Likewise.
22830 (expand_twoval_binop_libfunc): Likewise for local "insns".
22831 (widen_leading): Likewise for local "last".
22832 (expand_doubleword_clz): Likewise for local "seq". Strengthen
22833 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
22834 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
22835 (expand_parity): Likewise for locals "last" and "seq".
22836 (expand_ffs): Likewise for local "seq". Strengthen local
22837 "nonzero_label" from rtx to rtx_code_label *.
22838 (expand_absneg_bit): Strengthen local "insns" from rtx to
22839 rtx_insn *.
22840 (expand_unop_direct): Likewise for local "last".
22841 (expand_unop): Likewise for locals "last", "insns".
22842 (expand_abs_nojump): Likewise for local "last".
22843 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
22844 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
22845 rtx_insn *.
22846 (expand_copysign_absneg): Strengthen local "label" from rtx to
22847 rtx_code_label *.
22848 (expand_copysign_bit): Strengthen local "insns" from rtx to
22849 rtx_insn *.
22850 (struct no_conflict_data): Likewise for fields "first", "insn".
22851 (emit_libcall_block_1): Likewise for param "insns" and locals
22852 "next", "last", "insn".
22853 (emit_libcall_block): For now, add a checked cast to rtx_insn *
22854 on "insns" when invoking emit_libcall_block_1. Ultimately we
22855 want to strengthen insns itself.
22856 (prepare_cmp_insn): Strengthen local "last" from rtx to
22857 rtx_insn *.
22858 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
22859 (prepare_float_lib_cmp): Likewise for local "insns".
22860 (emit_conditional_move): Likewise for local "last".
22861 (emit_conditional_add): Likewise.
22862 (have_sub2_insn): Likewise for local "seq".
22863 (expand_float): Likewise for local "insns". Strengthen locals
22864 "label", "neglabel" from rtx to rtx_code_label *.
22865 (expand_fix): Likewise for locals "last", "insn", "insns" (to
22866 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
22867 (expand_fixed_convert): Likewise for local "insns" (to
22868 rtx_insn *).
22869 (expand_sfix_optab): Likewise for local "last".
22870 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
22871 to rtx_code_label *.
22872 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
22873 from rtx to rtx_insn *.
22874 (expand_atomic_fetch_op): Likewise for local "insn".
22875 (maybe_legitimize_operand_same_code): Likewise for local "last".
22876 (maybe_legitimize_operands): Likewise.
22877
22878 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22879
22880 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
22881 "insn" from rtx to rtx_insn *.
22882 (ps_rtl_insn): Likewise for return type.
22883 (doloop_register_get): Likewise for params "head", "tail" and
22884 locals "insn", "first_insn_not_to_check".
22885 (schedule_reg_move): Likewise for local "this_insn".
22886 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
22887 of gen_move_insn for now.
22888 (reset_sched_times): Strengthen local "insn" from rtx to
22889 rtx_insn *.
22890 (permute_partial_schedule): Likewise.
22891 (duplicate_insns_of_cycles): Likewise for local "u_insn".
22892 (dump_insn_location): Likewise for param "insn".
22893 (loop_canon_p): Likewise for local "insn".
22894 (sms_schedule): Likewise.
22895 (print_partial_schedule): Likewise.
22896 (ps_has_conflicts): Likewise.
22897
22898 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22899
22900 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
22901 "tailp" from rtx * to rtx_insn **.
22902
22903 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
22904 from rtx to rtx_insn *.
22905 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
22906 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
22907 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
22908 rtx to rtx_insn *.
22909 * modulo-sched.c (const_iteration_count): Strengthen return type
22910 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
22911 use of NULL_RTX with NULL when working with insns.
22912 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
22913 to rtx_insn *.
22914 (sms_schedule): Likewise.
22915 * sched-rgn.c (init_ready_list): Likewise, also for locals
22916 "src_head" and "src_next_tail".
22917 (compute_block_dependences): Likewise.
22918 (free_block_dependencies): Likewise.
22919 (debug_rgn_dependencies): Likewise.
22920 (free_rgn_deps): Likewise.
22921 (compute_priorities): Likewise.
22922 (schedule_region): Likewise.
22923 * sel-sched.c (find_ebb_boundaries): Likewise.
22924
22925 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
22926 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
22927
22928 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22929
22930 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
22931 from rtx to rtx_insn *.
22932 (new_seginfo): Likewise for param "insn".
22933 (create_pre_exit): Likewise for locals "last_insn",
22934 "before_return_copy", "return_copy".
22935 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
22936 "mode_set".
22937
22938 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22939
22940 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
22941 from rtx to rtx_insn *.
22942 (lra_push_insn): Likewise for 1st param.
22943 (lra_push_insn_and_update_insn_regno_info): Likewise.
22944 (lra_pop_insn): Likewise for return type.
22945 (lra_invalidate_insn_data): Likewise for 1st param.
22946 (lra_set_insn_deleted): Likewise.
22947 (lra_delete_dead_insn): Likewise.
22948 (lra_process_new_insns): Likewise for first 3 params.
22949 (lra_set_insn_recog_data): Likewise for 1st param.
22950 (lra_update_insn_recog_data): Likewise.
22951 (lra_set_used_insn_alternative): Likewise.
22952 (lra_invalidate_insn_regno_info): Likewise.
22953 (lra_update_insn_regno_info): Likewise.
22954 (lra_former_scratch_operand_p): Likewise.
22955 (lra_eliminate_regs_1): Likewise.
22956 (lra_get_insn_recog_data): Likewise.
22957
22958 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
22959 rtx to rtx_insn *.
22960
22961 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
22962 "mv1" and "mv2".
22963 (substitute_within_insn): New.
22964 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
22965 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
22966 Replace call to "substitute" with call to substitute_within_insn.
22967
22968 * lra-constraints.c (curr_insn): Strengthen from rtx to
22969 rtx_insn *.
22970 (get_equiv_with_elimination): Likewise for param "insn".
22971 (match_reload): Strengthen params "before" and "after" from rtx *
22972 to rtx_insn **.
22973 (emit_spill_move): Likewise for return type. Add a checked cast
22974 to rtx_insn * on result of gen_move_insn for now.
22975 (check_and_process_move): Likewise for local "before". Replace
22976 NULL_RTX with NULL when referring to insns.
22977 (process_addr_reg): Strengthen params "before" and "after" from
22978 rtx * to rtx_insn **.
22979 (insert_move_for_subreg): Likewise.
22980 (simplify_operand_subreg): Strengthen locals "before" and "after"
22981 from rtx to rtx_insn *.
22982 (process_address_1): Strengthen params "before" and "after" from
22983 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
22984 rtx to rtx_insn *.
22985 (process_address): Strengthen params "before" and "after" from
22986 rtx * to rtx_insn **.
22987 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
22988 (curr_insn_transform): Strengthen locals "before" and "after"
22989 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
22990 to insns.
22991 (loc_equivalence_callback): Update cast of "data", changing
22992 resulting type from rtx to rtx_insn *.
22993 (substitute_pseudo_within_insn): New.
22994 (inherit_reload_reg): Strengthen param "insn" from rtx to
22995 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
22996 NULL when referring to insns. Add a checked cast to rtx_insn *
22997 when using usage_insn to invoke lra_update_insn_regno_info.
22998 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
22999 likewise for locals "restore", "save". Add checked casts to
23000 rtx_insn * when using usage_insn to invoke
23001 lra_update_insn_regno_info and lra_process_new_insns. Replace
23002 NULL_RTX with NULL when referring to insns.
23003 (split_if_necessary): Strengthen param "insn" from rtx to
23004 rtx_insn *.
23005 (update_ebb_live_info): Likewise for params "head", "tail" and local
23006 "prev_insn".
23007 (get_last_insertion_point): Likewise for return type and local "insn".
23008 (get_live_on_other_edges): Likewise for local "last".
23009 (inherit_in_ebb): Likewise for params "head", "tail" and locals
23010 "prev_insn", "next_insn", "restore".
23011 (remove_inheritance_pseudos): Likewise for local "prev_insn".
23012 (undo_optional_reloads): Likewise for local "insn".
23013
23014 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
23015 "insn".
23016 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
23017 insns.
23018 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
23019 rtx_insn *.
23020 (spill_pseudos): Likewise for local "insn".
23021 (init_elimination): Likewise.
23022 (process_insn_for_elimination): Likewise for param "insn".
23023
23024 * lra-lives.c (curr_insn): Likewise.;
23025
23026 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
23027 (remove_pseudos): Likewise for param "insn".
23028 (spill_pseudos): Likewise for local "insn".
23029 (lra_final_code_change): Likewise for locals "insn", "curr".
23030
23031 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
23032 (lra_set_insn_deleted): Likewise.
23033 (lra_delete_dead_insn): Likewise, and for local "prev".
23034 (new_insn_reg): Likewise for param "insn".
23035 (lra_set_insn_recog_data): Likewise.
23036 (lra_update_insn_recog_data): Likewise.
23037 (lra_set_used_insn_alternative): Likewise.
23038 (get_insn_freq): Likewise.
23039 (invalidate_insn_data_regno_info): Likewise.
23040 (lra_invalidate_insn_regno_info): Likewise.
23041 (lra_update_insn_regno_info): Likewise.
23042 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
23043 vec<rtx_insn *>.
23044 (lra_push_insn_1): Strengthen param "insn" from rtx to
23045 rtx_insn *.
23046 (lra_push_insn): Likewise.
23047 (lra_push_insn_and_update_insn_regno_info): Likewise.
23048 (lra_pop_insn): Likewise for return type and local "insn".
23049 (push_insns): Likewise for params "from", "to", and local "insn".
23050 (setup_sp_offset): Likewise for params "from", "last" and locals
23051 "before", "insn".
23052 (lra_process_new_insns): Likewise for params "insn", "before",
23053 "after" and local "last".
23054 (struct sloc): Likewise for field "insn".
23055 (lra_former_scratch_operand_p): Likewise for param "insn".
23056 (remove_scratches): Likewise for locals "insn", "last".
23057 (check_rtl): Likewise for local "insn".
23058 (add_auto_inc_notes): Likewise for param "insn".
23059 (update_inc_notes): Likewise for local "insn".
23060 (lra): Replace NULL_RTX with NULL when referring to insn.
23061
23062 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23063
23064 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
23065 to rtx_insn *.
23066 (resolve_reg_notes): Likewise.
23067 (resolve_simple_move): Likewise for return type, param "insn", and
23068 locals "insns", "minsn".
23069 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
23070 (resolve_use): Likewise.
23071 (resolve_debug): Likewise.
23072 (find_decomposable_shift_zext): Likewise.
23073 (resolve_shift_zext): Likewise for return type, param "insn", and
23074 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
23075 (decompose_multiword_subregs): Likewise for local "insn",
23076 "orig_insn", "decomposed_shift", "end".
23077
23078 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23079
23080 * basic-block.h (basic_block split_edge_and_insert): Strengthen
23081 param "insns" from rtx to rtx_insn *.
23082
23083 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
23084 rtx to rtx_insn *.
23085 (struct iv_to_split): Likewise.
23086 (loop_exit_at_end_p): Likewise for local "insn".
23087 (split_edge_and_insert): Likewise for param "insns".
23088 (compare_and_jump_seq): Likewise for return type, param "cinsn",
23089 and locals "seq", "jump".
23090 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
23091 "branch_code"; update invocations of compare_and_jump_seq to
23092 eliminate NULL_RTX in favor of NULL.
23093 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
23094 rtx to rtx_insn *.
23095 (reset_debug_uses_in_loop): Likewise.
23096 (analyze_insn_to_expand_var): Likewise for param "insn".
23097 (analyze_iv_to_split_insn): Likewise.
23098 (analyze_insns_in_loop): Likewise for local "insn".
23099 (insert_base_initialization): Likewise for param
23100 "insn" and local "seq".
23101 (split_iv): Likewise for param "insn" and local "seq".
23102 (expand_var_during_unrolling): Likewise for param "insn".
23103 (insert_var_expansion_initialization): Likewise for local "seq".
23104 (combine_var_copies_in_loop_exit): Likewise.
23105 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
23106 "insn".
23107 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
23108 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
23109 "next".
23110
23111 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23112
23113 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
23114 rtx_insn *.
23115 (iv_analyze_result): Likewise.
23116 (iv_analyze_expr): Likewise.
23117 (biv_p): Likewise.
23118
23119 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
23120 local "def_insn" from rtx to rtx_insn *.
23121 (get_biv_step_1): Likewise for local "insn".
23122 (iv_analyze_expr): Likewise for param "insn".
23123 (iv_analyze_def): Likewise for local "insn".
23124 (iv_analyze_op): Likewise for param "insn".
23125 (iv_analyze): Likewise.
23126 (iv_analyze_result): Likewise.
23127 (biv_p): Likewise.
23128 (suitable_set_for_replacement): Likewise.
23129 (simplify_using_initial_values): Likewise for local "insn".
23130 (iv_number_of_iterations): Likewise for param "insn".
23131 (check_simple_exit): Add checked cast to rtx_insn when invoking
23132 iv_number_of_iterations for now (until get_condition is
23133 strengthened).
23134
23135 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
23136 "insn" from rtx to rtx_insn *.
23137 (analyze_insns_in_loop): Likewise for local "insn".
23138
23139 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23140
23141 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
23142 to rtx_insn *.
23143 (struct invariant): Likewise.
23144 (hash_invariant_expr_1): Likewise for param "insn".
23145 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
23146 (find_exits): Likewise for local "insn".
23147 (create_new_invariant): Likewise for param "insn".
23148 (check_dependencies): Likewise.
23149 (find_invariant_insn): Likewise.
23150 (record_uses): Likewise.
23151 (find_invariants_insn): Likewise.
23152 (find_invariants_bb): Likewise for local "insn".
23153 (get_pressure_class_and_nregs): Likewise for param "insn".
23154 (calculate_loop_reg_pressure): Likewise for local "insn".
23155
23156 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23157
23158 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
23159 to rtx_insn *.
23160 (add_test): Likewise for locals "seq", "jump".
23161 (doloop_modify): Likewise for locals "sequence", "jump_insn".
23162
23163 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23164
23165 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
23166 rtx_insn *.
23167 (rebuild_jump_labels_chain): Likewise for param "chain".
23168
23169 * cfgexpand.c (pass_expand::execute): Add checked cast to
23170 rtx_insn * when calling rebuild_jump_labels_chain in region where
23171 we know e->insns.r is non-NULL.
23172
23173 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
23174 rtx_insn *.
23175 (rebuild_jump_labels): Likewise.
23176 (rebuild_jump_labels_chain): Likewise for param "chain".
23177 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
23178 (init_label_info): Likewise for param "f".
23179 (maybe_propagate_label_ref): Likewise for params "jump_insn",
23180 "prev_nonjump_insn".
23181 (mark_all_labels): Likewise for param "f" and locals "insn",
23182 "prev_nonjump_insn".
23183
23184 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23185
23186 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
23187 from rtx to rtx_insn *insn.
23188 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
23189 (ira_add_allocno_copy): Likewise.
23190 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
23191 rtx to rtx_insn *.
23192 (ira_create_copy): Likewise.
23193 (ira_add_allocno_copy): Likewise.
23194 (create_bb_allocnos): Likewise for local "insn".
23195 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
23196 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
23197 process_regs_for_copy for rtx_insn * param.
23198 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
23199 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
23200 process_regs_for_copy for rtx_insn * param.
23201 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
23202 * ira-costs.c (record_reg_classes): Likewise for param "insn".
23203 (record_operand_costs): Likewise.
23204 (scan_one_insn): Likewise for return type, and for param "insn".
23205 (process_bb_for_costs): Likewise for local "insn".
23206 (process_bb_node_for_hard_reg_moves): Likewise.
23207 * ira-emit.c (struct move): Likewise for field "insn".
23208 (create_move): Eliminate use of NULL_RTX when dealing with an
23209 rtx_insn *.
23210 (emit_move_list): Strengthen return type and locals "result",
23211 "insn" from rtx to rtx_insn *insn.
23212 (emit_moves): Likewise for locals "insns", "tmp".
23213 (ira_emit): Likewise for local "insn".
23214 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
23215 "insn".
23216 (find_call_crossed_cheap_reg): Likewise.
23217 (process_bb_node_lives): Likewise for local "insn".
23218 * ira.c (decrease_live_ranges_number): Likewise.
23219 (compute_regs_asm_clobbered): Likewise.
23220 (build_insn_chain): Likewise.
23221 (find_moveable_pseudos): Likewise, also locals "def_insn",
23222 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
23223 to rtx_insn **. Add a checked cast when assigning from
23224 "closest_use" into closest_uses array in a region where we know
23225 it's a non-NULL insn.
23226 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
23227 to rtx_insn *.
23228 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
23229 "last_interesting_insn", "uin".
23230 (move_unallocated_pseudos): Likewise for locals "def_insn",
23231 "move_insn", "newinsn".
23232
23233 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23234
23235 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
23236 Strengthen locals "done_label", "do_error" from rtx to
23237 rtx_code_label *.
23238 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
23239 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
23240 rtx_code_label *.
23241 (ubsan_expand_si_overflow_neg_check): Likewise for locals
23242 "done_label", "do_error" to rtx_code_label * and local "last" to
23243 rtx_insn *.
23244 (ubsan_expand_si_overflow_mul_check): Likewise for locals
23245 "done_label", "do_error", "large_op0", "small_op0_large_op1",
23246 "one_small_one_large", "both_ops_large", "after_hipart_neg",
23247 "after_lopart_neg", "do_overflow", "hipart_different" to
23248 rtx_code_label * and local "last" to rtx_insn *.
23249
23250 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23251
23252 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
23253 "insn" and "move_insn" from rtx to rtx_insn *.
23254
23255 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23256
23257 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
23258 rtx_insn *.
23259 (cheap_bb_rtx_cost_p): Likewise.
23260 (first_active_insn): Likewise for return type and local "insn".
23261 (last_active_insn): Likewise for return type and locals "insn",
23262 "head".
23263 (struct noce_if_info): Likewise for fields "jump", "insn_a",
23264 "insn_b".
23265 (end_ifcvt_sequence): Likewise for return type and locals "insn",
23266 "seq".
23267 (noce_try_move): Likewise for local "seq".
23268 (noce_try_store_flag): Likewise.
23269 (noce_try_store_flag_constants): Likewise.
23270 (noce_try_addcc): Likewise.
23271 (noce_try_store_flag_mask): Likewise.
23272 (noce_try_cmove): Likewise.
23273 (noce_try_minmax): Likewise.
23274 (noce_try_abs): Likewise.
23275 (noce_try_sign_mask): Likewise.
23276 (noce_try_bitop): Likewise.
23277 (noce_can_store_speculate_p): Likewise for local "insn".
23278 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
23279 seq".
23280 (check_cond_move_block): Likewise for local "insn".
23281 (cond_move_convert_if_block): Likewise.
23282 (cond_move_process_if_block): Likewise for locals "seq",
23283 "loc_insn".
23284 (noce_find_if_block): Likewise for local "jump".
23285 (merge_if_block): Likewise for local "last".
23286 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
23287 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
23288 (block_has_only_trap): Likewise for return type and local "trap".
23289 (find_if_case_1): Likewise for local "jump".
23290 (dead_or_predicable): Likewise for locals "head", "end", "jump",
23291 "insn".
23292
23293 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23294
23295 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
23296 "last_insn", "loop_end" from rtx to rtx_insn *.
23297
23298 * hw-doloop.c (scan_loop): Likewise for local "insn".
23299 (discover_loop): Likewise for param "tail_insn".
23300 (discover_loops): Likewise for local "tail".
23301
23302 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
23303 cast to rtx_insn * when assigning from an rtx local to a
23304 hwloop_info's "last_insn" field.
23305
23306 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23307
23308 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
23309 (add_delay_dependencies): Strengthen local "pro" from rtx to
23310 rtx_insn *.
23311 (recompute_todo_spec): Likewise.
23312 (dep_cost_1): Likewise for locals "insn", "used".
23313 (schedule_insn): Likewise for local "dbg".
23314 (schedule_insn): Likewise for locals "pro", "next".
23315 (unschedule_insns_until): Likewise for local "con".
23316 (restore_pattern): Likewise for local "next".
23317 (estimate_insn_tick): Likewise for local "pro".
23318 (resolve_dependencies): Likewise for local "next".
23319 (fix_inter_tick): Likewise.
23320 (fix_tick_ready): Likewise for local "pro".
23321 (add_to_speculative_block): Likewise for locals "check", "twin",
23322 "pro".
23323 (sched_extend_bb): Likewise for locals "end", "insn".
23324 (init_before_recovery): Likewise for local "x".
23325 (sched_create_recovery_block): Likewise for local "barrier".
23326 (create_check_block_twin): Likewise for local "pro".
23327 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
23328 "consumer".
23329 (unlink_bb_notes): Update for change to type of bb_header.
23330 Strengthen locals "prev", "label", "note", "next" from rtx to
23331 rtx_insn *.
23332 (clear_priorities): Likewise for local "pro".
23333
23334 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23335
23336 * gcse.c (struct occr): Strengthen field "insn" from rtx to
23337 rtx_insn *.
23338 (test_insn): Likewise for this global.
23339 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
23340 const rtx_insn *.
23341 (oprs_anticipatable_p): Likewise.
23342 (oprs_available_p): Likewise.
23343 (insert_expr_in_table): Strengthen param "insn" from rtx to
23344 rtx_insn *.
23345 (hash_scan_set): Likewise.
23346 (hash_scan_clobber): Likewise.
23347 (hash_scan_call): Likewise.
23348 (hash_scan_insn): Likewise.
23349 (compute_hash_table_work): Likewise for local "insn".
23350 (process_insert_insn): Likewise for return type and local "pat".
23351 (insert_insn_end_basic_block): Likewise for locals "new_insn",
23352 "pat", "pat_end", "maybe_cc0_setter".
23353 (pre_edge_insert): Likewise for local "insn".
23354 (pre_insert_copy_insn): Likewise for param "insn".
23355 (pre_insert_copies): Likewise for local "insn".
23356 (struct set_data): Likewise for field "insn".
23357 (single_set_gcse): Likewise for param "insn".
23358 (gcse_emit_move_after): Likewise.
23359 (pre_delete): Likewise for local "insn".
23360 (update_bb_reg_pressure): Likewise for param "from" and local
23361 "insn".
23362 (should_hoist_expr_to_dom): Likewise for param "from".
23363 (hoist_code): Likewise for local "insn".
23364 (get_pressure_class_and_nregs): Likewise for param "insn".
23365 (calculate_bb_reg_pressure): Likewise for local "insn".
23366 (compute_ld_motion_mems): Likewise.
23367
23368 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23369
23370 * genpeep.c (main): Rename param back from "uncast_ins1" to
23371 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
23372 checked cast.
23373
23374 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
23375
23376 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
23377
23378 PR target/62195
23379 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
23380 documentation to state it is only for VSX operations.
23381
23382 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
23383 constraint only active if VSX.
23384
23385 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
23386 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
23387 (lfiwzx): Likewise.
23388
23389 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23390
23391 * fwprop.c (single_def_use_dom_walker::before_dom_children):
23392 Strengthen local "insn" from rtx to rtx_insn *.
23393 (use_killed_between): Likewise for param "target_insn".
23394 (all_uses_available_at): Likewise for param "target_insn" and
23395 local "next".
23396 (update_df_init): Likewise for params "def_insn", "insn".
23397 (update_df): Likewise for param "insn".
23398 (try_fwprop_subst): Likewise for param "def_insn" and local
23399 "insn".
23400 (free_load_extend): Likewise for param "insn".
23401 (forward_propagate_subreg): Likewise for param "def_insn" and
23402 local "use_insn".
23403 (forward_propagate_asm): Likewise for param "def_insn" and local
23404 "use_insn".
23405 (forward_propagate_and_simplify): Likewise for param "def_insn"
23406 and local "use_insn".
23407 (forward_propagate_into): Likewise for locals "def_insn" and
23408 "use_insn".
23409
23410 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23411
23412 * function.c (emit_initial_value_sets): Strengthen local "seq"
23413 from rtx to rtx_insn *.
23414 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
23415 local "seq".
23416 (instantiate_virtual_regs): Likewise for local "insn".
23417 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
23418 (reorder_blocks_1): Likewise for param "insns" and local "insn".
23419 (expand_function_end): Likewise for locals "insn" and "seq".
23420 (epilogue_done): Likewise for local "insn".
23421 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
23422 "last", "trial".
23423 (reposition_prologue_and_epilogue_notes): Likewise for locals
23424 "insn", "last", "note", "first".
23425 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
23426 (pass_match_asm_constraints::execute): Likewise for local "insn".
23427
23428 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23429
23430 * output.h (final_scan_insn): Strengthen return type from rtx to
23431 rtx_insn *.
23432 (final_forward_branch_p): Likewise for param.
23433 (current_output_insn): Likewise for this global.
23434
23435 * final.c (rtx debug_insn): Likewise for this variable.
23436 (current_output_insn): Likewise.
23437 (get_attr_length_1): Rename param "insn" to "uncast_insn",
23438 adding "insn" back in as an rtx_insn * with a checked cast, so
23439 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
23440 first param.
23441 (compute_alignments): Strengthen local "label" from rtx to
23442 rtx_insn *.
23443 (shorten_branches): Rename param from "first" to "uncast_first",
23444 introducing a new local rtx_insn * "first" using a checked cast to
23445 effectively strengthen "first" from rtx to rtx_insn * without
23446 affecting the type signature. Strengthen locals "insn", "seq",
23447 "next", "label" from rtx to rtx_insn *.
23448 (change_scope): Strengthen param "orig_insn" and local "insn" from
23449 rtx to rtx_insn *.
23450 (final_start_function): Rename param from "first" to "uncast_first",
23451 introducing a new local rtx_insn * "first" using a checked cast to
23452 effectively strengthen "first" from rtx to rtx_insn * without
23453 affecting the type signature. Strengthen local "insn" from rtx to
23454 rtx_insn *.
23455 (dump_basic_block_info): Strengthen param "insn" from rtx to
23456 rtx_insn *.
23457 (final): Rename param from "first" to "uncast_first",
23458 introducing a new local rtx_insn * "first" using a checked cast to
23459 effectively strengthen "first" from rtx to rtx_insn * without
23460 affecting the type signature. Strengthen locals "insn", "next"
23461 from rtx to rtx_insn *.
23462 (output_alternate_entry_point): Strengthen param "insn" from rtx to
23463 rtx_insn *.
23464 (call_from_call_insn): Strengthen param "insn" from rtx to
23465 rtx_call_insn *.
23466 (final_scan_insn): Rename param from "insn" to "uncast_insn",
23467 introducing a new local rtx_insn * "insn" using a checked cast to
23468 effectively strengthen "insn" from rtx to rtx_insn * without
23469 affecting the type signature. Strengthen return type and locals
23470 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
23471 now-redundant checked cast to rtx_insn * from both invocations of
23472 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
23473 introducing a local "call_insn" for use when invoking
23474 call_from_call_insn.
23475 (notice_source_line): Strengthen param "insn" from rtx to
23476 rtx_insn *.
23477 (leaf_function_p): Likewise for local "insn".
23478 (final_forward_branch_p): Likewise.
23479 (leaf_renumber_regs): Likewise for param "first".
23480 (rest_of_clean_state): Likewise for locals "insn" and "next".
23481 (self_recursive_call_p): Likewise for param "insn".
23482 (collect_fn_hard_reg_usage): Likewise for local "insn".
23483 (get_call_fndecl): Likewise for param "insn".
23484 (get_call_cgraph_rtl_info): Likewise.
23485 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
23486 introducing a new local rtx_insn * "insn" using a checked cast to
23487 effectively strengthen "insn" from rtx to rtx_insn * without
23488 affecting the type signature.
23489
23490 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
23491 cast when assigning from param "insn" to current_output_insn.
23492 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
23493 so that we can assign it back to current_output_insn.
23494
23495 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23496
23497 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
23498 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
23499 atmxt540s and atmxt540sreva devices.
23500 * config/avr/avr-tables.opt: Regenerate.
23501 * config/avr/t-multilib: Regenerate.
23502 * doc/avr-mmcu.texi: Regenerate.
23503
23504 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23505
23506 * expr.c (convert_move): Strengthen local "insns" from rtx to
23507 rtx_insn *.
23508 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
23509 "top_label" from rtx to rtx_code_label *.
23510 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
23511 rtx_insn *.
23512 (emit_single_push_insn): Likewise for locals "prev", "last".
23513 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
23514 to rtx_code_label *.
23515 (store_constructor): Likewise for locals "loop_start", "loop_end".
23516 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
23517 rtx_insn *.
23518 (expand_expr_real_2): Likewise.
23519 (expand_expr_real_1): Strengthen local "label" from rtx to
23520 rtx_code_label *.
23521
23522 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23523
23524 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
23525 from rtx to rtx_insn *.
23526 (store_bit_field_1): Likewise.
23527 (extract_bit_field_1): Likewise.
23528 (expand_mult_const): Likewise for local "insns".
23529 (expmed_mult_highpart): Strengthen local "label" from rtx to
23530 rtx_code_label *.
23531 (expand_smod_pow2): Likewise.
23532 (expand_sdiv_pow2): Likewise.
23533 (expand_divmod): Strengthen locals "last", "insn" from rtx to
23534 rtx_insn *. Strengthen locals "label", "label1", "label2",
23535 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
23536 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
23537 (emit_store_flag): Likewise.
23538 (emit_store_flag_force): Strengthen local "label" from rtx to
23539 rtx_code_label *.
23540 (do_cmp_and_jump): Likewise for param "label".
23541
23542 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23543
23544 * explow.c (force_reg): Strengthen local "insn" from rtx to
23545 rtx_insn *.
23546 (adjust_stack_1): Likewise.
23547 (allocate_dynamic_stack_space): Likewise. Strengthen locals
23548 "final_label", "available_label", "space_available" from rtx to
23549 rtx_code_label *.
23550 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
23551 (anti_adjust_stack_and_probe): Likewise.
23552
23553 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23554
23555 * except.h (sjlj_emit_function_exit_after): Strengthen param
23556 "after" from rtx to rtx_insn *. This is only called with
23557 result of get_last_insn (in function.c) so type-change should be
23558 self-contained.
23559
23560 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
23561 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
23562 to rtx_insn *. These fields are only used from except.c so this
23563 type-change should be self-contained to this patch.
23564
23565 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
23566 local "last" from rtx to rtx_insn *.
23567 (dw2_build_landing_pads): Likewise for local "seq".
23568 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
23569 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
23570 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
23571 rtx to rtx_insn *.
23572 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
23573 to rtx_insn *.
23574 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
23575 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
23576 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
23577 referring to an insn. Strengthen local "dispatch_label" from
23578 rtx to rtx_code_label *.
23579 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
23580 rtx_insn *.
23581 (expand_eh_return): Strengthen local "around_label" from
23582 rtx to rtx_code_label *.
23583 (convert_to_eh_region_ranges): Strengthen locals "iter",
23584 "last_action_insn", "first_no_action_insn",
23585 "first_no_action_insn_before_switch",
23586 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
23587
23588 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23589
23590 * dwarf2out.c (last_var_location_insn): Strengthen this variable
23591 from rtx to rtx_insn *.
23592 (cached_next_real_insn): Likewise.
23593 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
23594 working with insns.
23595 (dwarf2out_var_location): Strengthen locals "next_real",
23596 "next_note", "expected_next_loc_note", "last_start", "insn" from
23597 rtx to rtx_insn *.
23598
23599 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23600
23601 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
23602 from rtx to rtx_insn *.
23603 (create_pseudo_cfg): Likewise for local "insn".
23604
23605 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23606
23607 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
23608 from rtx to rtx_insn *.
23609 (df_bb_regno_last_def_find): Likewise.
23610
23611 * df-problems.c (df_rd_bb_local_compute): Likewise.
23612 (df_lr_bb_local_compute): Likewise.
23613 (df_live_bb_local_compute): Likewise.
23614 (df_chain_remove_problem): Likewise.
23615 (df_chain_create_bb): Likewise.
23616 (df_word_lr_bb_local_compute): Likewise.
23617 (df_remove_dead_eq_notes): Likewise for param "insn".
23618 (df_note_bb_compute): Likewise for local "insn".
23619 (simulate_backwards_to_point): Likewise.
23620 (df_md_bb_local_compute): Likewise.
23621
23622 * df-scan.c (df_scan_free_bb_info): Likewise.
23623 (df_scan_start_dump): Likewise.
23624 (df_scan_start_block): Likewise.
23625 (df_install_ref_incremental): Likewise for local "insn".
23626 (df_insn_rescan_all): Likewise.
23627 (df_reorganize_refs_by_reg_by_insn): Likewise.
23628 (df_reorganize_refs_by_insn_bb): Likewise.
23629 (df_recompute_luids): Likewise.
23630 (df_bb_refs_record): Likewise.
23631 (df_update_entry_exit_and_calls): Likewise.
23632 (df_bb_verify): Likewise.
23633
23634 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23635
23636 * ddg.h (struct ddg_node): Strengthen fields "insn" and
23637 "first_note" from rtx to rtx_insn *.
23638 (get_node_of_insn): Likewise for param 2 "insn".
23639 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
23640
23641 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
23642 rtx_insn *.
23643 (mem_write_insn_p): Likewise.
23644 (mem_access_insn_p): Likewise.
23645 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
23646 (def_has_ccmode_p): Likewise for param "insn".
23647 (add_cross_iteration_register_deps): Likewise for locals
23648 "def_insn" and "use_insn".
23649 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
23650 (build_intra_loop_deps): Likewise for local "src_insn".
23651 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
23652 to rtx_insn *.
23653 (get_node_of_insn): Likewise for param "insn".
23654
23655 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23656
23657 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
23658 (deletable_insn_p): Strengthen param "insn" from rtx to
23659 rtx_insn *. Add checked cast to rtx_call_insn when invoking
23660 find_call_stack_args, since this is guarded by CALL_P (insn).
23661 (marked_insn_p): Strengthen param "insn" from rtx to
23662 rtx_insn *.
23663 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
23664 invoking find_call_stack_args, since this is guarded by
23665 CALL_P (insn).
23666 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
23667 rtx_insn *; we know this is an insn since this was called by
23668 mark_nonreg_stores.
23669 (mark_nonreg_stores_2): Likewise.
23670 (mark_nonreg_stores): Strengthen param "insn" from rtx to
23671 rtx_insn *.
23672 (find_call_stack_args): Strengthen param "call_insn" from rtx to
23673 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
23674 to rtx_insn *.
23675 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
23676 from rtx to rtx_insn *.
23677 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
23678 "next", "ref_insn".
23679 (delete_unmarked_insns): Likewise for locals "insn", "next".
23680 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
23681 (mark_reg_dependencies): Likewise for param "insn".
23682 (rest_of_handle_ud_dce): Likewise for local "insn".
23683 (word_dce_process_block): Likewise.
23684 (dce_process_block): Likewise.
23685
23686 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23687
23688 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
23689 from rtx to rtx_insn *.
23690 (struct change_cc_mode_args): Likewise for field "insn".
23691 (this_insn): Strengthen from rtx to rtx_insn *.
23692 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
23693 with insn.
23694 (validate_canon_reg): Strengthen param "insn" from rtx to
23695 rtx_insn *.
23696 (canon_reg): Likewise.
23697 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
23698 dealing with insn.
23699 (record_jump_equiv): Strengthen param "insn" from rtx to
23700 rtx_insn *.
23701 (try_back_substitute_reg): Likewise, also for locals "prev",
23702 "bb_head".
23703 (find_sets_in_insn): Likewise for param "insn".
23704 (canonicalize_insn): Likewise.
23705 (cse_insn): Likewise. Add a checked cast.
23706 (invalidate_from_clobbers): Likewise for param "insn".
23707 (invalidate_from_sets_and_clobbers): Likewise.
23708 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
23709 dealing with insn.
23710 (cse_prescan_path): Strengthen local "insn" from rtx to
23711 rtx_insn *.
23712 (cse_extended_basic_block): Likewise for locals "insn" and
23713 "prev_insn".
23714 (cse_main): Likewise for param "f".
23715 (check_for_label_ref): Likewise for local "insn".
23716 (set_live_p): Likewise for second param ("insn").
23717 (insn_live_p): Likewise for first param ("insn") and for local
23718 "next".
23719 (cse_change_cc_mode_insn): Likewise for first param "insn".
23720 (cse_change_cc_mode_insns): Likewise for first and second params
23721 "start" and "end".
23722 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
23723 and "end".
23724 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
23725 "cc_src_insn".
23726
23727 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
23728 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
23729 Anna Tikhonova <anna.tikhonova@intel.com>
23730 Ilya Tocar <ilya.tocar@intel.com>
23731 Andrey Turetskiy <andrey.turetskiy@intel.com>
23732 Ilya Verbin <ilya.verbin@intel.com>
23733 Kirill Yukhin <kirill.yukhin@intel.com>
23734 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23735
23736 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
23737 New.
23738 * config/i386/sse.md
23739 (define_mode_iterator VI248_AVX2): Delete.
23740 (define_mode_iterator VI2_AVX2_AVX512BW): New.
23741 (define_mode_iterator VI48_AVX2): Ditto.
23742 (define_insn <shift_insn><mode>3): Delete.
23743 (define_insn "<shift_insn><mode>3<mask_name>" with
23744 VI2_AVX2_AVX512BW): New.
23745 (define_insn "<shift_insn><mode>3<mask_name>" with
23746 VI48_AVX2): Ditto.
23747
23748 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
23749 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
23750 Anna Tikhonova <anna.tikhonova@intel.com>
23751 Ilya Tocar <ilya.tocar@intel.com>
23752 Andrey Turetskiy <andrey.turetskiy@intel.com>
23753 Ilya Verbin <ilya.verbin@intel.com>
23754 Kirill Yukhin <kirill.yukhin@intel.com>
23755 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23756
23757 * config/i386/sse.md
23758 (define_mode_iterator VI4F_BRCST32x2): New.
23759 (define_mode_attr 64x2_mode): Ditto.
23760 (define_mode_attr 32x2mode): Ditto.
23761 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
23762 with VI4F_BRCST32x2): Ditto.
23763 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
23764 with V16FI mode iterator): Ditto.
23765 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
23766 with V16FI): Ditto.
23767 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
23768 with VI8F_BRCST64x2): Ditto.
23769
23770 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
23771 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
23772 Anna Tikhonova <anna.tikhonova@intel.com>
23773 Ilya Tocar <ilya.tocar@intel.com>
23774 Andrey Turetskiy <andrey.turetskiy@intel.com>
23775 Ilya Verbin <ilya.verbin@intel.com>
23776 Kirill Yukhin <kirill.yukhin@intel.com>
23777 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23778
23779 * config/i386/sse.md
23780 (define_mode_iterator VI8_AVX512VL): New.
23781 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
23782
23783 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
23784
23785 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
23786 (define_mode_iterator V48_AVX512VL): New.
23787 (define_mode_iterator V12_AVX512VL): Ditto.
23788 (define_insn <avx512>_load<mode>_mask): Split into two similar
23789 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
23790 Refactor output template.
23791 (define_insn "<avx512>_store<mode>_mask"): Ditto.
23792
23793 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23794
23795 * cprop.c (struct occr): Strengthen field "insn" from rtx to
23796 rtx_insn *.
23797 (reg_available_p): Likewise for param "insn".
23798 (insert_set_in_table): Likewise.
23799 (hash_scan_set): Likewise.
23800 (hash_scan_insn): Likewise.
23801 (make_set_regs_unavailable): Likewise.
23802 (compute_hash_table_work): Likewise for local "insn".
23803 (reg_not_set_p): Strengthen param "insn" from const_rtx to
23804 const rtx_insn *.
23805 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
23806 (try_replace_reg): Likewise.
23807 (find_avail_set): Likewise.
23808 (cprop_jump): Likewise for params "setcc", "jump".
23809 (constprop_register): Likewise for param "insn".
23810 (cprop_insn): Likewise.
23811 (do_local_cprop): Likewise.
23812 (local_cprop_pass): Likewise for local "insn".
23813 (bypass_block): Likewise for params "setcc" and "jump".
23814 (bypass_conditional_jumps): Likewise for locals "setcc" and
23815 "insn".
23816 (one_cprop_pass): Likewise for local "insn".
23817
23818 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23819
23820 * compare-elim.c (struct comparison_use): Strengthen field "insn"
23821 from rtx to rtx_insn *.
23822 (struct comparison): Likewise, also for field "prev_clobber".
23823 (conforming_compare): Likewise for param "insn".
23824 (arithmetic_flags_clobber_p): Likewise.
23825 (find_flags_uses_in_insn): Likewise.
23826 (find_comparison_dom_walker::before_dom_children): Likewise for
23827 locals "insn", "next", "last_clobber".
23828 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
23829
23830 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23831
23832 * combine-stack-adj.c (struct csa_reflist): Strengthen field
23833 "insn" from rtx to rtx_insn *.
23834 (single_set_for_csa): Likewise for param "insn".
23835 (record_one_stack_ref): Likewise.
23836 (try_apply_stack_adjustment): Likewise.
23837 (struct record_stack_refs_data): Likewise for field "insn".
23838 (maybe_move_args_size_note): Likewise for params "last" and "insn".
23839 (prev_active_insn_bb): Likewise for return type and param "insn".
23840 (next_active_insn_bb): Likewise.
23841 (force_move_args_size_note): Likewise for params "prev" and "last"
23842 and locals "test", "next_candidate", "prev_candidate".
23843 (combine_stack_adjustments_for_block): Strengthen locals
23844 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
23845 rtx_insn *.
23846
23847 2014-08-21 David Malcolm <dmalcolm@redhat.com>
23848
23849 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
23850 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
23851 (subst_insn): Likewise for this variable.
23852 (added_links_insn): Likewise.
23853 (struct insn_link): Likewise for field "insn".
23854 (alloc_insn_link): Likewise for param "insn".
23855 (struct undobuf): Likewise for field "other_insn".
23856 (find_single_use): Likewise for param "insn" and local "next".
23857 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
23858 (delete_noop_moves): Likewise for locals "insn", "next".
23859 (create_log_links): Likewise for locals "insn", "use_insn".
23860 Strengthen local "next_use" from rtx * to rtx_insn **.
23861 (insn_a_feeds_b): Likewise for params "a", "b".
23862 (combine_instructions): Likewise for param "f" and locals "insn",
23863 "next", "prev", "first", "last_combined_insn", "link", "link1",
23864 "temp". Replace use of NULL_RTX with NULL when referring to
23865 insns.
23866 (setup_incoming_promotions): Likewise for param "first"
23867 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
23868 (can_combine_p): Likewise for params "insn", "i3", "pred",
23869 "pred2", "succ", "succ2" and for local "p".
23870 (combinable_i3pat): Likewise for param "i3".
23871 (cant_combine_insn_p): Likewise for param "insn".
23872 (likely_spilled_retval_p): Likewise.
23873 (adjust_for_new_dest): Likewise.
23874 (update_cfg_for_uncondjump): Likewise, also for local "insn".
23875 (try_combine): Likewise for return type and for params "i3", "i2",
23876 "i1", "i0", "last_combined_insn", and for locals "insn",
23877 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
23878 "i0_insn". Eliminate local "tem" in favor of new locals
23879 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
23880 checked cast for now to rtx_insn * on the return type of
23881 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
23882 insns.
23883 (find_split_point): Strengthen param "insn" from rtx to
23884 rtx_insn *.
23885 (simplify_set): Likewise for local "other_insn".
23886 (recog_for_combine): Likewise for param "insn".
23887 (record_value_for_reg): Likewise.
23888 (record_dead_and_set_regs_1): Likewise for local
23889 "record_dead_insn".
23890 (record_dead_and_set_regs): Likewise for param "insn".
23891 (record_promoted_value): Likewise.
23892 (check_promoted_subreg): Likewise.
23893 (get_last_value_validate): Likewise.
23894 (reg_dead_at_p): Likewise.
23895 (move_deaths): Likewise for param "to_insn".
23896 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
23897 and locals "place", "place2", "cc0_setter". Eliminate local "tem
23898 in favor of new locals "tem_note" and "tem_insn", the latter being
23899 an rtx_insn *.
23900 (distribute_links): Strengthen locals "place", "insn" from rtx to
23901 rtx_insn *.
23902
23903 2014-08-21 David Malcolm <dmalcolm@redhat.com>
23904
23905 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
23906 than a const_rtx.
23907 (can_delete_label_p): Require a const rtx_code_label * rather than
23908 a const_rtx.
23909 (delete_insn): Add checked cast to rtx_code_label * when we know
23910 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
23911 rtx to rtx_insn *.
23912 (delete_insn_chain): Strengthen locals "prev" and "current" from
23913 rtx to rtx_insn *. Add a checked cast when assigning from
23914 "finish" (strengthening the params will come later). Add a
23915 checked cast to rtx_note * in region where we know
23916 NOTE_P (current).
23917 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
23918 rtx_insn *.
23919 (compute_bb_for_insn): Likewise.
23920 (free_bb_for_insn): Likewise for local "insn".
23921 (compute_bb_for_insn): Likewise.
23922 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
23923 local "insn" from rtx to rtx_insn *
23924 (flow_active_insn_p): Require a const rtx_insn * rather than a
23925 const_rtx.
23926 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
23927 rtx_insn *.
23928 (can_fallthru): Likewise for locals "insn" and "insn2".
23929 (bb_note): Likewise for local "note".
23930 (first_insn_after_basic_block_note): Likewise for local "note" and
23931 for return type.
23932 (rtl_split_block): Likewise for locals "insn" and "next".
23933 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
23934 "end".
23935 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
23936 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
23937 "prev", "tmp".
23938 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
23939 them), "kill_from", "barrier", "new_insn".
23940 (patch_jump_insn): Likewise for params "insn", "old_label".
23941 (redirect_branch_edge): Likewise for locals "old_label", "insn".
23942 (force_nonfallthru_and_redirect): Likewise for locals "insn",
23943 "old_label", "new_label".
23944 (rtl_tidy_fallthru_edge): Likewise for local "q".
23945 (rtl_split_edge): Likewise for locals "before", "last".
23946 (commit_one_edge_insertion): Likewise for locals "before",
23947 "after", "insns", "tmp", "last", adding a checked cast where
23948 currently necessary.
23949 (commit_edge_insertions): Likewise.
23950 (rtl_dump_bb): Likewise for locals "insn", "last".
23951 (print_rtl_with_bb): Likewise for local "x".
23952 (rtl_verify_bb_insns): Likewise for local "x".
23953 (rtl_verify_bb_pointers): Likewise for local "insn".
23954 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
23955 "head", "end".
23956 (rtl_verify_fallthru): Likewise for local "insn".
23957 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
23958 (purge_dead_edges): Likewise for local "insn".
23959 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
23960 (skip_insns_after_block): Likewise for return type and for locals
23961 "insn", "last_insn", "next_head", "prev".
23962 (record_effective_endpoints): Likewise for locals "next_insn",
23963 "insn", "end".
23964 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
23965 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
23966 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
23967 (duplicate_insn_chain): For now, add checked cast from rtx to
23968 rtx_insn * when returning insn.
23969 (cfg_layout_duplicate_bb): Likewise for local "insn".
23970 (cfg_layout_delete_block): Likewise for locals "insn", "next",
23971 "prev", "remaints".
23972 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
23973 (rtl_block_empty_p): Likewise.
23974 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
23975 "split_point", "last".
23976 (rtl_block_ends_with_call_p): Likewise for local "insn".
23977 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
23978 const rtx_insn *.
23979 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
23980 "split_at_insn" from rtx to rtx_insn *.
23981 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
23982 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
23983 to const rtx_insn *.
23984 (rtl_account_profile_record): Likewise.
23985
23986 2014-08-21 David Malcolm <dmalcolm@redhat.com>
23987
23988 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
23989 rtx to rtx_insn *.
23990 (average_num_loop_insns): Likewise.
23991 (init_set_costs): Likewise for local "seq".
23992 (seq_cost): Likewise for param "seq", from const_rtx to const
23993 rtx_insn *.
23994
23995 2014-08-21 David Malcolm <dmalcolm@redhat.com>
23996
23997 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
23998 rtx to rtx_insn *.
23999
24000 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24001
24002 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
24003 "f1" and "f2" from rtx * to rtx_insn **.
24004 (flow_find_head_matching_sequence): Likewise.
24005
24006 * cfgcleanup.c (try_simplify_condjump): Strengthen local
24007 "cbranch_insn" from rtx to rtx_insn *.
24008 (thread_jump): Likewise for local "insn".
24009 (try_forward_edges): Likewise for local "last".
24010 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
24011 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
24012 "real_b_end".
24013 (can_replace_by): Likewise for params "i1", "i2".
24014 (old_insns_match_p): Likewise.
24015 (merge_notes): Likewise.
24016 (walk_to_nondebug_insn): Likewise for param "i1".
24017 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
24018 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
24019 "afterlast1", "afterlast2" from rtx to rtx_insn *.
24020 (flow_find_head_matching_sequence): Strengthen params "f1" and
24021 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
24022 "last1", "last2", "beforelast1", "beforelast2" from rtx to
24023 rtx_insn *.
24024 (outgoing_edges_match): Likewise for locals "last1", "last2".
24025 (try_crossjump_to_edge): Likewise for local "insn".
24026 Replace call to for_each_rtx with for_each_rtx_in_insn.
24027
24028 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
24029 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
24030 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
24031 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
24032 (try_optimize_cfg): Strengthen local "last" from rtx to
24033 rtx_insn *.
24034 (delete_dead_jumptables): Likewise for locals "insn", "next",
24035 "label".
24036
24037 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
24038 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
24039 "rtx else_first_tail", to reflect the basic-block.h changes above.
24040
24041 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24042
24043 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
24044 rtx_insn *.
24045 (purge_dead_tablejump_edges): Likewise.
24046 (find_bb_boundaries): Likewise for locals "insn", "end",
24047 "flow_transfer_insn".
24048
24049 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24050
24051 * caller-save.c (save_call_clobbered_regs): Strengthen locals
24052 "ins" and "prev" from rtx to rtx_insn *.
24053
24054 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24055
24056 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
24057 rtx_insn *.
24058 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
24059 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
24060 "scan_start".
24061 (load_register_parameters): Likewise for local "before_arg".
24062 (check_sibcall_argument_overlap): Likewise for param "insn".
24063 (expand_call): Likewise for locals "normal_call_insns",
24064 "tail_call_insns", "insns", "before_call", "after_args",
24065 "before_arg", "last", "prev". Strengthen one of the "last" from
24066 rtx to rtx_call_insn *.
24067 (fixup_tail_calls): Strengthen local "insn" from rtx to
24068 rtx_insn *.
24069 (emit_library_call_value_1): Likewise for locals "before_call" and
24070 "last".
24071
24072 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24073
24074 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
24075 and "last" from rtx to rtx_insn *.
24076 (expand_builtin_nonlocal_goto): Likewise for local "insn".
24077 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
24078 rtx_call_insn *.
24079 (expand_errno_check): Strengthen local "lab" from rtx to
24080 rtx_code_label *.
24081 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
24082 rtx_insn *.
24083 (expand_builtin_mathfn_2): Likewise.
24084 (expand_builtin_mathfn_ternary): Likewise.
24085 (expand_builtin_mathfn_3): Likewise.
24086 (expand_builtin_interclass_mathfn): Likewise for local "last".
24087 (expand_builtin_int_roundingfn): Likewise for local "insns".
24088 (expand_builtin_int_roundingfn_2): Likewise.
24089 (expand_builtin_strlen): Likewise for local "before_strlen".
24090 (expand_builtin_strncmp): Likewise for local "seq".
24091 (expand_builtin_signbit): Likewise for local "last".
24092 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
24093 from rtx to rtx_code_label *.
24094 (expand_stack_restore): Strengthen local "prev" from rtx to
24095 rtx_insn *.
24096
24097 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24098
24099 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
24100 to rtx_insn *.
24101 (struct btr_def_s): Likewise.
24102 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
24103 const rtx_insn *.
24104 (add_btr_def): Likewise.
24105 (new_btr_user): Likewise.
24106 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
24107 rtx to rtx_insn *.
24108 (link_btr_uses): Likewise.
24109 (move_btr_def): Likewise for locals "insp", "old_insn",
24110 "new_insn". Add checked cast to rtx_insn * for now on result of
24111 gen_move_insn.
24112 (can_move_up): Strengthen param "insn" from const_rtx to
24113 const rtx_insn *.
24114
24115 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24116
24117 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
24118 rtx_insn *.
24119 (get_uncond_jump_length): Likewise for locals "label", "jump".
24120 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
24121 "jump", "insn".
24122 (add_labels_and_missing_jumps): Likewise for local "new_jump".
24123 (fix_up_fall_thru_edges): Likewise for local "old_jump".
24124 (find_jump_block): Likewise for local "insn".
24125 (fix_crossing_conditional_branches): Likewise for locals
24126 "old_jump", "new_jump".
24127 (fix_crossing_unconditional_branches): Likewise for locals
24128 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
24129 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
24130
24131 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24132
24133 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
24134 rtx to rtx_insn *.
24135 (struct mem_insn): Likewise for field "insn".
24136 (reg_next_use): Strengthen from rtx * to rtx_insn **.
24137 (reg_next_inc_use): Likewise.
24138 (reg_next_def): Likewise.
24139 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
24140 from rtx to rtx_insn *.
24141 (move_insn_before): Likewise for param "next_insn" and local "insns".
24142 (attempt_change): Likewise for local "mov_insn".
24143 (try_merge): Likewise for param "last_insn".
24144 (get_next_ref): Likewise for return type and local "insn".
24145 Strengthen param "next_array" from rtx * to rtx_insn **.
24146 (parse_add_or_inc): Strengthen param "insn" from rtx to
24147 rtx_insn *.
24148 (find_inc): Likewise for locals "insn" and "other_insn" (three of
24149 the latter).
24150 (merge_in_block): Likewise for locals "insn", "curr",
24151 "other_insn".
24152 (pass_inc_dec::execute): Update allocations of the arrays to
24153 reflect the stronger types.
24154
24155 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24156
24157 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
24158 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
24159 from rtx to rtx_code_label *.
24160
24161 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24162
24163 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
24164 to rtx_insn *.
24165
24166 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24167
24168 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
24169 generated a warning and prevented bootstrapping the compiler.
24170
24171 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24172
24173 * rtl.h (delete_related_insns): Strengthen return type from rtx to
24174 rtx_insn *.
24175
24176 * jump.c (delete_related_insns): Likewise, also for locals "next"
24177 and "prev".
24178
24179 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24180
24181 * genautomata.c (output_internal_insn_latency_func): When writing
24182 the function "internal_insn_latency" to insn-automata.c,
24183 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
24184 allowing the optional guard function of (define_bypass) clauses to
24185 expect a pair of rtx_insn *, rather than a pair of rtx.
24186 (output_insn_latency_func): When writing the function
24187 "insn_latency", add an "uncast_" prefix to params "insn" and
24188 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
24189 using checked casts from the params, thus enabling the above
24190 change to the generated "internal_insn_latency" function.
24191
24192 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
24193
24194 PR tree-optimization/62091
24195 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
24196 handle correctly arrays.
24197 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
24198 inheritance binfos.
24199 (record_known_type): Walk into inner type.
24200 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
24201 condition on no type changes.
24202
24203 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24204
24205 * genattrtab.c (write_attr_get): Within the generated get_attr_
24206 functions, rename param "insn" to "uncast_insn" and reintroduce
24207 "insn" as an local rtx_insn * using a checked cast, so that "insn"
24208 is an rtx_insn * within insn-attrtab.c
24209
24210 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24211
24212 * output.h (peephole): Strengthen return type from rtx to
24213 rtx_insn *.
24214 * rtl.h (delete_for_peephole): Likewise for both params.
24215 * genpeep.c (main): In generated "peephole" function, strengthen
24216 return type and local "insn" from rtx to rtx_insn *. For now,
24217 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
24218 rtx_insn *, with a checked cast.
24219 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
24220 locals "insn", "next", "prev" from rtx to rtx_insn *.
24221
24222 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
24223
24224 PR tree-optimization/62112
24225 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
24226 * gimple-iterator.h (gsi_replace): Return bool.
24227 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
24228 moved from ref_may_alias_global_p.
24229 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
24230 New overloads.
24231 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
24232 (stmt_kills_ref_p_1): Rename...
24233 (stmt_kills_ref_p): ... to this.
24234 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
24235 stmt_kills_ref_p): Declare.
24236 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
24237 Move the self-assignment case...
24238 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
24239
24240 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24241
24242 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
24243
24244 * emit-rtl.c (try_split): Likewise, also for locals "before" and
24245 "after". For now, don't strengthen param "trial", which requires
24246 adding checked casts when returning it.
24247
24248 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24249
24250 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
24251 "label" from rtx to rtx_code_label *. Strengthen param 1 of
24252 "var_location" hook from rtx to rtx_insn *.
24253 (debug_nothing_rtx): Delete in favor of...
24254 (debug_nothing_rtx_code_label): New prototype.
24255 (debug_nothing_rtx_rtx): Delete unused prototype.
24256 (debug_nothing_rtx_insn): New prototype.
24257
24258 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
24259 invoking debug_hooks->var_location (in two places, one in a NOTE
24260 case of a switch statement, the other guarded by a CALL_P
24261 conditional. Add checked cast to rtx_code_label * when invoking
24262 debug_hooks->label (within CODE_LABEL case of switch statement).
24263
24264 * dbxout.c (dbx_debug_hooks): Update "label" hook from
24265 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
24266 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
24267 (xcoff_debug_hooks): Likewise.
24268 * debug.c (do_nothing_debug_hooks): Likewise.
24269 (debug_nothing_rtx): Delete in favor of...
24270 (debug_nothing_rtx_insn): New function.
24271 (debug_nothing_rtx_rtx): Delete unused function.
24272 (debug_nothing_rtx_code_label): New function.
24273 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
24274 debug_nothing_rtx to debug_nothing_rtx_code_label.
24275 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
24276 to rtx_insn *.
24277 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
24278 debug_nothing_rtx to debug_nothing_rtx_insn.
24279 (sdbout_label): Strengthen param "insn" from rtx to
24280 rtx_code_label *.
24281 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
24282 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
24283 "var_location" hook from debug_nothing_rtx to
24284 debug_nothing_rtx_insn.
24285
24286 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24287
24288 * recog.h (insn_output_fn): Update this function typedef to match
24289 the changes below to the generated output functions, strengthening
24290 the 2nd param from rtx to rtx_insn *.
24291
24292 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
24293 insn when invoking an output function, to match the new signature
24294 of insn_output_fn with a stronger second param.
24295
24296 * genconditions.c (write_header): In the generated code for
24297 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
24298 to match the other changes in this patch.
24299
24300 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
24301 the generated "gen_" functions from rtx to rtx_insn * within their
24302 implementations.
24303
24304 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
24305 the subfunctions within the generated "recog_", "split", "peephole2"
24306 function trees from rtx to rtx_insn *. For now, the top-level
24307 generated functions ("recog", "split", "peephole2") continue to
24308 take a plain rtx for "insn", to avoid introducing dependencies on
24309 other patches. Rename this 2nd param from "insn" to
24310 "uncast_insn", and reintroduce "insn" as a local variable of type
24311 rtx_insn *, initialized at the top of the generated function with
24312 a checked cast on "uncast_insn".
24313 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
24314 the generated "gen_" functions from rtx to rtx_insn * within their
24315 prototypes.
24316
24317 * genoutput.c (process_template): Strengthen the 2nd param within
24318 the generated "output_" functions "insn" from rtx to rtx_insn *.
24319
24320 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
24321
24322 * tree-profile.c (tree_profiling): Skip external functions
24323 when doing coverage instrumentation.
24324 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
24325
24326 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24327
24328 * config/rs6000/altivec.h (vec_cpsgn): New #define.
24329 (vec_mergee): Likewise.
24330 (vec_mergeo): Likewise.
24331 (vec_cntlz): Likewise.
24332 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
24333 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
24334 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
24335 VMRGEW, and VMRGOW.
24336 * doc/extend.texi: Document various forms of vec_cpsgn,
24337 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
24338 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
24339 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
24340 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
24341 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
24342
24343 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24344
24345 * config/rs6000/rs6000.c (context.h): New include.
24346 (tree-pass.h): Likewise.
24347 (make_pass_analyze_swaps): New decl.
24348 (rs6000_option_override): Register pass_analyze_swaps.
24349 (swap_web_entry): New subsclass of web_entry_base (df.h).
24350 (special_handling_values): New enum.
24351 (union_defs): New function.
24352 (union_uses): Likewise.
24353 (insn_is_load_p): Likewise.
24354 (insn_is_store_p): Likewise.
24355 (insn_is_swap_p): Likewise.
24356 (rtx_is_swappable_p): Likewise.
24357 (insn_is_swappable_p): Likewise.
24358 (chain_purpose): New enum.
24359 (chain_contains_only_swaps): New function.
24360 (mark_swaps_for_removal): Likewise.
24361 (swap_const_vector_halves): Likewise.
24362 (adjust_subreg_index): Likewise.
24363 (permute_load): Likewise.
24364 (permute_store): Likewise.
24365 (handle_special_swappables): Likewise.
24366 (replace_swap_with_copy): Likewise.
24367 (dump_swap_insn_table): Likewise.
24368 (rs6000_analyze_swaps): Likewise.
24369 (pass_data_analyze_swaps): New pass_data.
24370 (pass_analyze_swaps): New rtl_opt_pass.
24371 (make_pass_analyze_swaps): New function.
24372 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
24373
24374 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24375
24376 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
24377 type from rtx to rtx_insn *.
24378 (create_copy_of_insn_rtx): Likewise.
24379 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
24380 (create_copy_of_insn_rtx): Likewise, also for local "res".
24381
24382 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24383
24384 * rtl.h (find_first_parameter_load): Strengthen return type from
24385 rtx to rtx_insn *.
24386 * rtlanal.c (find_first_parameter_load): Strengthen return type
24387 from rtx to rtx_insn *. Add checked cast for now, to postpone
24388 strengthening the params.
24389
24390 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
24391
24392 PR fortran/44054
24393 * diagnostic.c: Set default caret.
24394 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
24395 line is needed.
24396 * diagnostic.h (struct diagnostic_context):
24397
24398 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24399
24400 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
24401 (sel_bb_head): Strengthen return type insn_t (currently just an
24402 rtx) to rtx_insn *.
24403 (sel_bb_end): Likewise.
24404
24405 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
24406 (sel_bb_head): Strengthen return type and local "head" from
24407 insn_t (currently just an rtx) to rtx_insn *.
24408 (sel_bb_end): Likewise for return type.
24409 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
24410 working with insn.
24411
24412 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24413
24414 * basic-block.h (get_last_bb_insn): Strengthen return type from
24415 rtx to rtx_insn *.
24416 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
24417 end".
24418
24419 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
24420
24421 PR fortran/44054
24422 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
24423 to here ...
24424 (diagnostic_report_diagnostic): ... from here.
24425 * toplev.c (general_init): Move code to c-family.
24426
24427 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24428
24429 * df.h (web_entry_base): Replace existing struct web_entry with a
24430 new class web_entry_base with only the predecessor member.
24431 (unionfind_root): Remove declaration and move to class member.
24432 (unionfind_union): Remove declaration and move to friend
24433 function.
24434 (union_defs): Remove declaration.
24435 * web.c (web_entry_base::unionfind_root): Modify to be member
24436 function and adjust accessors.
24437 (unionfind_union): Modify to be friend function and adjust
24438 accessors.
24439 (web_entry): New subclass of web_entry_base containing the reg
24440 member.
24441 (union_match_dups): Modify for struct -> class changes.
24442 (union_defs): Likewise.
24443 (entry_register): Likewise.
24444 (pass_web::execute): Likewise.
24445
24446 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
24447
24448 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
24449 builtin define __VEC_ELEMENT_REG_ORDER__.
24450
24451 2014-08-20 Martin Jambor <mjambor@suse.cz>
24452 Wei Mi <wmi@google.com>
24453
24454 PR ipa/60449
24455 PR middle-end/61776
24456 * tree-ssa-operands.c (update_stmt_operands): Remove
24457 MODIFIED_NORETURN_CALLS.
24458 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
24459 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
24460 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
24461 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
24462 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
24463 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
24464 (gimple_call_set_ctrl_altering): New func.
24465 (gimple_call_ctrl_altering_p): Ditto.
24466 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
24467 (make_blocks): Use gimple_call_initialize_ctrl_altering.
24468 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
24469 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
24470 remove MODIFIED_NORETURN_CALLS.
24471
24472 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
24473
24474 * coverage.c (coverage_compute_profile_id): Return non-0;
24475 also handle symbols with unique name.
24476 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
24477
24478 2014-08-20 Steve Ellcey <sellcey@mips.com>
24479
24480 PR middle-end/49191
24481 * doc/sourcebuild.texi (non_strict_align): New.
24482
24483 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
24484
24485 * cgraphunit.c (ipa_passes, compile): Reshedule
24486 symtab_remove_unreachable_nodes passes; update comments.
24487 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
24488 TODO_remove_functions before the pass; the functions ought to be
24489 already removed.
24490 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
24491 TODO_remove_functions.
24492 * passes.c (pass_data_early_local_passes): Do not schedule function
24493 removal.
24494 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
24495
24496 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
24497
24498 PR c/59304
24499 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
24500 before setting the option.
24501 * diagnostic.c (diagnostic_classify_diagnostic): Record
24502 command-line status.
24503
24504 2014-08-20 Richard Biener <rguenther@suse.de>
24505
24506 PR lto/62190
24507 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
24508 to build uint{16,32,64}_type_node.
24509
24510 2014-08-20 Terry Guo <terry.guo@arm.com>
24511
24512 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
24513 with immediate_operand.
24514
24515 2014-08-20 David Malcolm <dmalcolm@redhat.com>
24516
24517 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
24518 "insn" from an as_a to a safe_as_a, for the case when "insn" is
24519 NULL.
24520
24521 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
24522
24523 PR preprocessor/51303
24524 * incpath.c (remove_duplicates): Use cpp_warning.
24525
24526 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
24527
24528 PR c/60975
24529 PR c/53063
24530 * doc/options.texi (CPP): Document it.
24531 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
24532 * optc-gen.awk: Handle CPP.
24533 * opth-gen.awk: Likewise.
24534
24535 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24536
24537 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
24538 rtx_insn *.
24539 (duplicate_insn_chain): Likewise.
24540 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
24541 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
24542 checked cast for now (until we can strengthen the params in the
24543 same way).
24544 (duplicate_insn_chain): Likewise.
24545
24546 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24547
24548 * rtl.h (next_cc0_user): Strengthen return type from rtx to
24549 rtx_insn *.
24550 (prev_cc0_setter): Likewise.
24551
24552 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
24553 rtx_insn *, adding checked casts for now as necessary.
24554 (prev_cc0_setter): Likewise.
24555
24556 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24557
24558 * expr.h (emit_move_insn): Strengthen return type from rtx to
24559 rtx_insn *.
24560 (emit_move_insn_1): Likewise.
24561 (emit_move_complex_push): Likewise.
24562 (emit_move_complex_parts): Likewise.
24563
24564 * expr.c (emit_move_via_integer): Strengthen return type from rtx
24565 to rtx_insn *. Replace use of NULL_RTX with NULL when working
24566 with insns.
24567 (emit_move_complex_push): Strengthen return type from rtx to
24568 rtx_insn *.
24569 (emit_move_complex): Likewise, also for local "ret".
24570 (emit_move_ccmode): Likewise.
24571 (emit_move_multi_word): Likewise for return type and locals
24572 "last_insn", "seq".
24573 (emit_move_insn_1): Likewise for return type and locals "result",
24574 "ret".
24575 (emit_move_insn): Likewise for return type and local "last_insn".
24576 (compress_float_constant): Likewise.
24577
24578 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24579
24580 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
24581 from rtx to rtx_insn *.
24582
24583 * rtl.h (emit_insn_before): Likewise.
24584 (emit_insn_before_noloc): Likewise.
24585 (emit_insn_before_setloc): Likewise.
24586 (emit_jump_insn_before): Likewise.
24587 (emit_jump_insn_before_noloc): Likewise.
24588 (emit_jump_insn_before_setloc): Likewise.
24589 (emit_call_insn_before): Likewise.
24590 (emit_call_insn_before_noloc): Likewise.
24591 (emit_call_insn_before_setloc): Likewise.
24592 (emit_debug_insn_before): Likewise.
24593 (emit_debug_insn_before_noloc): Likewise.
24594 (emit_debug_insn_before_setloc): Likewise.
24595 (emit_label_before): Likewise.
24596 (emit_insn_after): Likewise.
24597 (emit_insn_after_noloc): Likewise.
24598 (emit_insn_after_setloc): Likewise.
24599 (emit_jump_insn_after): Likewise.
24600 (emit_jump_insn_after_noloc): Likewise.
24601 (emit_jump_insn_after_setloc): Likewise.
24602 (emit_call_insn_after): Likewise.
24603 (emit_call_insn_after_noloc): Likewise.
24604 (emit_call_insn_after_setloc): Likewise.
24605 (emit_debug_insn_after): Likewise.
24606 (emit_debug_insn_after_noloc): Likewise.
24607 (emit_debug_insn_after_setloc): Likewise.
24608 (emit_label_after): Likewise.
24609 (emit_insn): Likewise.
24610 (emit_debug_insn): Likewise.
24611 (emit_jump_insn): Likewise.
24612 (emit_call_insn): Likewise.
24613 (emit_label): Likewise.
24614 (gen_clobber): Likewise.
24615 (emit_clobber): Likewise.
24616 (gen_use): Likewise.
24617 (emit_use): Likewise.
24618 (emit): Likewise.
24619
24620 (emit_barrier_before): Strengthen return type from rtx to
24621 rtx_barrier *.
24622 (emit_barrier_after): Likewise.
24623 (emit_barrier): Likewise.
24624
24625 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
24626 from rtx to rtx_insn *. Add checked casts for now when converting
24627 "last" from rtx to rtx_insn *.
24628 (emit_insn_before_noloc): Likewise for return type.
24629 (emit_jump_insn_before_noloc): Likewise.
24630 (emit_call_insn_before_noloc): Likewise.
24631 (emit_debug_insn_before_noloc): Likewise.
24632 (emit_barrier_before): Strengthen return type and local "insn"
24633 from rtx to rtx_barrier *.
24634 (emit_label_before): Strengthen return type from rtx to
24635 rtx_insn *. Add checked cast for now when returning param
24636 (emit_pattern_after_noloc): Strengthen return type from rtx to
24637 rtx_insn *. Add checked casts for now when converting "last" from
24638 rtx to rtx_insn *.
24639 (emit_insn_after_noloc): Strengthen return type from rtx to
24640 rtx_insn *.
24641 (emit_jump_insn_after_noloc): Likewise.
24642 (emit_call_insn_after_noloc): Likewise.
24643 (emit_debug_insn_after_noloc): Likewise.
24644 (emit_barrier_after): Strengthen return type from rtx to
24645 rtx_barrier *.
24646 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
24647 Add checked cast for now when converting "label" from rtx to
24648 rtx_insn *.
24649 (emit_pattern_after_setloc): Strengthen return type from rtx to
24650 rtx_insn *. Add checked casts for now when converting "last" from
24651 rtx to rtx_insn *.
24652 (emit_pattern_after): Strengthen return type from rtx to
24653 rtx_insn *.
24654 (emit_insn_after_setloc): Likewise.
24655 (emit_insn_after): Likewise.
24656 (emit_jump_insn_after_setloc): Likewise.
24657 (emit_jump_insn_after): Likewise.
24658 (emit_call_insn_after_setloc): Likewise.
24659 (emit_call_insn_after): Likewise.
24660 (emit_debug_insn_after_setloc): Likewise.
24661 (emit_debug_insn_after): Likewise.
24662 (emit_pattern_before_setloc): Likewise. Add checked casts for now
24663 when converting "last" from rtx to rtx_insn *.
24664 (emit_pattern_before): Strengthen return type from rtx to
24665 rtx_insn *.
24666 (emit_insn_before_setloc): Likewise.
24667 (emit_insn_before): Likewise.
24668 (emit_jump_insn_before_setloc): Likewise.
24669 (emit_jump_insn_before): Likewise.
24670 (emit_call_insn_before_setloc): Likewise.
24671 (emit_call_insn_before): Likewise.
24672 (emit_debug_insn_before_setloc): Likewise.
24673 (emit_debug_insn_before): Likewise.
24674 (emit_insn): Strengthen return type and locals "last", "insn",
24675 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
24676 within cases where we know we have an insn.
24677 (emit_debug_insn): Likewise.
24678 (emit_jump_insn): Likewise.
24679 (emit_call_insn): Strengthen return type and local "insn" from rtx
24680 to rtx_insn *.
24681 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
24682 a checked cast to rtx_insn * for now on "label".
24683 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
24684 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
24685 (emit_use): Likewise.
24686 (gen_use): Likewise, also for local "seq".
24687 (emit): Likewise for return type and local "insn".
24688 (rtx_insn): Likewise for return type and local "new_rtx".
24689
24690 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
24691 from rtx to rtx_barrier *.
24692
24693 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
24694 changed return type from rtx to rtx_insn *, we must update
24695 "emit_fn" type, and this in turn means updating...
24696 (frame_insn): ...this. Strengthen return type from rtx to
24697 rtx_insn *. Introduce a new local "insn" of the appropriate type.
24698
24699 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24700
24701 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
24702 rtx to rtx_jump_table_data *. Also for local.
24703 * rtl.h (emit_jump_table_data): Likewise.
24704
24705 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24706
24707 * basic-block.h (create_basic_block_structure): Strengthen third
24708 param "bb_note" from rtx to rtx_note *.
24709 * rtl.h (emit_note_before): Strengthen return type from rtx to
24710 rtx_note *.
24711 (emit_note_after): Likewise.
24712 (emit_note): Likewise.
24713 (emit_note_copy): Likewise. Also, strengthen param similarly.
24714 * function.h (struct rtl_data): Strengthen field
24715 "x_stack_check_probe_note" from rtx to rtx_note *.
24716
24717 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
24718 from rtx to rtx_note *.
24719 * cfgrtl.c (create_basic_block_structure): Strengthen third param
24720 "bb_note" from rtx to rtx_note *.
24721 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
24722 when calling emit_note_copy.
24723 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
24724 rtx_note *.
24725 (emit_note_after): Likewise.
24726 (emit_note_before): Likewise.
24727 (emit_note_copy): Likewise. Also, strengthen param similarly.
24728 (emit_note): Likewise.
24729 * except.c (emit_note_eh_region_end): Likewise for return type.
24730 Strengthen local "next" from rtx to rtx_insn *.
24731 (convert_to_eh_region_ranges): Strengthen local "note"
24732 from rtx to rtx_note *.
24733 * final.c (change_scope): Likewise.
24734 (reemit_insn_block_notes): Likewise, for both locals named "note".
24735 Also, strengthen local "insn" from rtx to rtx_insn *.
24736 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
24737 rtx to rtx_note *.
24738 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
24739 strengthen local "seq" from rtx to rtx_insn *.
24740 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
24741 to rtx_note *.
24742 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
24743 vec<rtx_note *>.
24744 (get_bb_note_from_pool): Strengthen return type from rtx to
24745 rtx_note *.
24746 (sel_create_basic_block): Strengthen local "new_bb_note" from
24747 insn_t to rtx_note *.
24748 * var-tracking.c (emit_note_insn_var_location): Strengthen local
24749 "note" from rtx to rtx_note *.
24750 (emit_notes_in_bb): Likewise.
24751
24752 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24753
24754 * function.h (struct rtl_data): Strengthen field
24755 "x_parm_birth_insn" from rtx to rtx_insn *.
24756 * function.c (struct assign_parm_data_all): Strengthen fields
24757 "first_conversion_insn" and "last_conversion_insn" from rtx to
24758 rtx_insn *.
24759
24760 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24761
24762 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
24763 to rtx_insn *; also for local "var_end_seq".
24764 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
24765 (maybe_cleanup_end_of_block): Likewise for param "last" and local
24766 "insn".
24767 (expand_gimple_cond): Likewise for locals "last2" and "last".
24768 (mark_transaction_restart_calls): Likewise for local "insn".
24769 (expand_gimple_stmt): Likewise for return type and locals "last"
24770 and "insn".
24771 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
24772 (avoid_complex_debug_insns): Likewise for param "insn".
24773 (expand_debug_locations): Likewise for locals "insn", "last",
24774 "prev_insn" and "insn2".
24775 (expand_gimple_basic_block): Likewise for local "last".
24776 (construct_exit_block): Likewise for locals "head", "end",
24777 "orig_end".
24778 (pass_expand::execute): Likewise for locals "var_seq",
24779 "var_ret_seq", "next".
24780
24781 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24782
24783 * asan.h (asan_emit_stack_protection): Strengthen return type from
24784 rtx to rtx_insn *.
24785 * asan.c (asan_emit_stack_protection): Likewise. Add local
24786 "insns" to hold the return value.
24787
24788 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24789
24790 * basic-block.h (bb_note): Strengthen return type from rtx to
24791 rtx_note *.
24792 * sched-int.h (bb_note): Likewise.
24793 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
24794
24795 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24796
24797 * rtl.h (make_insn_raw): Strengthen return type from rtx to
24798 rtx_insn *.
24799
24800 * emit-rtl.c (make_insn_raw): Strengthen return type and local
24801 "insn" from rtx to rtx_insn *.
24802 (make_debug_insn_raw): Strengthen return type from rtx to
24803 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
24804 (make_jump_insn_raw): Strengthen return type from rtx to
24805 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
24806 (make_call_insn_raw): Strengthen return type from rtx to
24807 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
24808 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
24809 callback from rtx to rtx_insn *; likewise for local "insn" and
24810 "next", adding a checked cast to rtx_insn in the relevant cases of
24811 the switch statement.
24812 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
24813 callback from rtx to rtx_insn *.
24814 (emit_pattern_after_setloc): Likewise.
24815 (emit_pattern_after): Likewise.
24816 (emit_pattern_before_setloc): Likewise.
24817 (emit_pattern_before): Likewise.
24818
24819 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24820
24821 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
24822 rtx_call_insn *.
24823 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
24824 accepting an rtx_insn *.
24825 (last_call_insn): Strengthen return type from rtx to
24826 rtx_call_insn *.
24827
24828 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24829
24830 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
24831 "insns" from rtx to rtx_insn *.
24832 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
24833 locals "insn" and "prev".
24834
24835 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24836
24837 * rtl.h (tablejump_p): Strengthen third param from rtx * to
24838 rtx_jump_table_data **.
24839
24840 * cfgbuild.c (make_edges): Introduce local "table", using it in
24841 place of "tmp" for jump table data.
24842 (find_bb_boundaries): Strengthen local "table" from rtx to
24843 rtx_jump_table_data *.
24844 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
24845 (outgoing_edges_match): Likewise for locals "table1" and "table2".
24846 (try_crossjump_to_edge): Likewise.
24847 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
24848 "table".
24849 (patch_jump_insn): Introduce local "table", using it in place of
24850 "tmp" for jump table data.
24851 (force_nonfallthru_and_redirect): Introduce local "table", so that
24852 call to tablejump_p can receive an rtx_jump_table_data **. Update
24853 logic around the call to overwrite "note" appropriately if
24854 tablejump_p returns non-zero.
24855 (get_last_bb_insn): Introduce local "table", using it in place of
24856 "tmp" for jump table data.
24857 * dwarf2cfi.c (create_trace_edges): Likewise.
24858
24859 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
24860 from rtx to rtx_jump_table_data *.
24861 (create_fix_barrier): Strengthen local "tmp" from rtx to
24862 rtx_jump_table_data *.
24863 (arm_reorg): Likewise for local "table".
24864
24865 * config/s390/s390.c (s390_chunkify_start): Likewise.
24866
24867 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
24868
24869 * jump.c (delete_related_insns): Strengthen local "lab_next" from
24870 rtx to rtx_jump_table_data *.
24871
24872 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
24873 rtx_jump_table_data **. Add a checked cast when writing through
24874 the pointer: we know there that local "table" is non-NULL and that
24875 JUMP_TABLE_DATA_P (table) holds.
24876 (label_is_jump_target_p): Introduce local "table", using it in
24877 place of "tmp" for jump table data.
24878
24879 2014-08-19 Marek Polacek <polacek@redhat.com>
24880
24881 PR c++/62153
24882 * doc/invoke.texi: Document -Wbool-compare.
24883
24884 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24885
24886 * rtl.h (entry_of_function): Strengthen return type from rtx to
24887 rtx_insn *.
24888 * cfgrtl.c (entry_of_function): Likewise.
24889
24890 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24891
24892 * emit-rtl.h (get_insns): Strengthen return type from rtx to
24893 rtx_insn *, adding a checked cast for now.
24894 (get_last_insn): Likewise.
24895
24896 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24897
24898 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
24899 rtx_code_label *.
24900
24901 * emit-rtl.c (gen_label_rtx): Likewise.
24902
24903 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24904
24905 * rtl.h (previous_insn): Strengthen return type from rtx to
24906 rtx_insn *.
24907 (next_insn): Likewise.
24908 (prev_nonnote_insn): Likewise.
24909 (prev_nonnote_insn_bb): Likewise.
24910 (next_nonnote_insn): Likewise.
24911 (next_nonnote_insn_bb): Likewise.
24912 (prev_nondebug_insn): Likewise.
24913 (next_nondebug_insn): Likewise.
24914 (prev_nonnote_nondebug_insn): Likewise.
24915 (next_nonnote_nondebug_insn): Likewise.
24916 (prev_real_insn): Likewise.
24917 (next_real_insn): Likewise.
24918 (prev_active_insn): Likewise.
24919 (next_active_insn): Likewise.
24920
24921 * emit-rtl.c (next_insn): Strengthen return type from rtx to
24922 rtx_insn *, adding a checked cast.
24923 (previous_insn): Likewise.
24924 (next_nonnote_insn): Likewise.
24925 (next_nonnote_insn_bb): Likewise.
24926 (prev_nonnote_insn): Likewise.
24927 (prev_nonnote_insn_bb): Likewise.
24928 (next_nondebug_insn): Likewise.
24929 (prev_nondebug_insn): Likewise.
24930 (next_nonnote_nondebug_insn): Likewise.
24931 (prev_nonnote_nondebug_insn): Likewise.
24932 (next_real_insn): Likewise.
24933 (prev_real_insn): Likewise.
24934 (next_active_insn): Likewise.
24935 (prev_active_insn): Likewise.
24936
24937 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
24938 param "stepfunc" so that it returns an rtx_insn * rather than an
24939 rtx, to track the change to prev_nonnote_insn_bb, which is the
24940 only function this is called with.
24941 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
24942
24943 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
24944
24945 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
24946 assert.
24947
24948 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24949
24950 * coretypes.h (class rtx_debug_insn): Add forward declaration.
24951 (class rtx_nonjump_insn): Likewise.
24952 (class rtx_jump_insn): Likewise.
24953 (class rtx_call_insn): Likewise.
24954 (class rtx_jump_table_data): Likewise.
24955 (class rtx_barrier): Likewise.
24956 (class rtx_code_label): Likewise.
24957 (class rtx_note): Likewise.
24958
24959 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
24960 adding the invariant DEBUG_INSN_P (X).
24961 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
24962 the invariant NONJUMP_INSN_P (X).
24963 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
24964 the invariant JUMP_P (X).
24965 (class rtx_call_insn): New, a subclass of rtx_insn, adding
24966 the invariant CALL_P (X).
24967 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
24968 invariant JUMP_TABLE_DATA_P (X).
24969 (class rtx_barrier): New, a subclass of rtx_insn, adding the
24970 invariant BARRIER_P (X).
24971 (class rtx_code_label): New, a subclass of rtx_insn, adding
24972 the invariant LABEL_P (X).
24973 (class rtx_note): New, a subclass of rtx_insn, adding
24974 the invariant NOTE_P(X).
24975 (is_a_helper <rtx_debug_insn *>::test): New.
24976 (is_a_helper <rtx_nonjump_insn *>::test): New.
24977 (is_a_helper <rtx_jump_insn *>::test): New.
24978 (is_a_helper <rtx_call_insn *>::test): New.
24979 (is_a_helper <rtx_jump_table_data *>::test): New functions,
24980 overloaded for both rtx and rtx_insn *.
24981 (is_a_helper <rtx_barrier *>::test): New.
24982 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
24983 for both rtx and rtx_insn *.
24984 (is_a_helper <rtx_note *>::test): New.
24985
24986 2014-08-19 Marek Polacek <polacek@redhat.com>
24987
24988 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
24989 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
24990 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
24991 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
24992
24993 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24994
24995 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
24996 rtx_insn *. To help with transition, for now, convert from an
24997 access macro into a pair of functions: BND_TO, returning an
24998 rtx_insn *, and...
24999 (SET_BND_TO): New function, for use where BND_TO is used as an
25000 lvalue.
25001
25002 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
25003 SET_BND_TO.
25004 (BND_TO): New function, adding a checked cast.
25005 (SET_BND_TO): New function.
25006
25007 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
25008 SET_BND_TO.
25009 (compute_av_set_on_boundaries): Likewise.
25010
25011 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
25012
25013 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
25014 destination if it is used in source.
25015 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
25016 (*popcount<mode>2_falsedep_1): Likewise.
25017
25018 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
25019
25020 PR other/62168
25021 * configure.ac: Set install_gold_as_default to no first.
25022 * configure: Regenerated.
25023
25024 2014-08-19 David Malcolm <dmalcolm@redhat.com>
25025
25026 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
25027 "note_list" field will eventually be an rtx_insn *. To help with
25028 transition, for now, convert from an access macro into a pair of
25029 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
25030 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
25031 used as an lvalue.
25032
25033 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
25034 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
25035
25036 * sel-sched-ir.c (init_bb): Likewise.
25037 (sel_restore_notes): Likewise.
25038 (move_bb_info): Likewise.
25039 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
25040 (SET_BB_NOTE_LIST): New function.
25041
25042 2014-08-19 David Malcolm <dmalcolm@redhat.com>
25043
25044 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
25045 field will eventually be an rtx_insn *. To help with transition,
25046 for now, convert from an access macro into a pair of functions:
25047 VINSN_INSN_RTX, returning an rtx_insn *, and...
25048 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
25049 is used as an lvalue.
25050
25051 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
25052 SET_VINSN_INSN_RTX where it's used as an lvalue.
25053 (VINSN_INSN_RTX): New function.
25054 (SET_VINSN_INSN_RTX): New function.
25055
25056 2014-08-19 David Malcolm <dmalcolm@redhat.com>
25057
25058 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
25059 eventually be rtx_insn *, but to help with transition, for now,
25060 convert from an access macro into a pair of functions: DEP_PRO
25061 returning an rtx_insn * and...
25062 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
25063 lvalue, returning an rtx&.
25064 (DEP_CON): Analogous changes to DEP_PRO above.
25065 (SET_DEP_CON): Likewise.
25066
25067 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
25068 an lvalue to SET_DEP_CON.
25069 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
25070 (sd_copy_back_deps): Likewise for DEP_CON.
25071 (DEP_PRO): New function, adding a checked cast for now.
25072 (DEP_CON): Likewise.
25073 (SET_DEP_PRO): New function.
25074 (SET_DEP_CON): Likewise.
25075
25076 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
25077
25078 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
25079 (extra_options): Add i386/cygwin.opt.
25080 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
25081 (CPP_SPEC): Accept -pthread.
25082 (LINK_SPEC): Ditto.
25083 (GOMP_SELF_SPECS): Update comment.
25084 * config/i386/cygwin.opt: New file for -pthread flag.
25085
25086 2014-08-19 David Malcolm <dmalcolm@redhat.com>
25087
25088 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
25089 * df.h (DF_REF_INSN): Convert from a macro to a function, so
25090 that we can return an rtx_insn *.
25091
25092 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
25093
25094 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
25095 when building executables, not DLLs. Add --large-address-aware
25096 under the same conditions.
25097 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
25098 when building executables, not DLLs. Add --large-address-aware
25099 under the same conditions when using -m32.
25100
25101 * config/i386/cygwin-stdint.h: Throughout, make type
25102 definitions dependent on target architecture, not host.
25103
25104 2014-08-19 David Malcolm <dmalcolm@redhat.com>
25105
25106 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
25107 the return type from rtx to rtx_insn *, which will enable various
25108 conversions in followup patches. For now this is is done by a
25109 checked cast.
25110 (NEXT_INSN): Likewise.
25111 (SET_PREV_INSN): Convert to an inline function. This is intended
25112 for use as an lvalue, and so returns an rtx& to allow in-place
25113 modification.
25114 (SET_NEXT_INSN): Likewise.
25115
25116 2014-07-08 Mark Wielaard <mjw@redhat.com>
25117
25118 PR debug/59051
25119 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
25120
25121 2014-08-19 Marek Polacek <polacek@redhat.com>
25122
25123 PR c/61271
25124 * cgraphunit.c (handle_alias_pairs): Fix condition.
25125
25126 2014-08-19 Richard Biener <rguenther@suse.de>
25127
25128 * gimple-fold.c (fold_gimple_assign): Properly build a
25129 null-pointer constant when devirtualizing addresses.
25130
25131 2014-07-07 Mark Wielaard <mjw@redhat.com>
25132
25133 * dwarf2out.c (decl_quals): New function.
25134 (modified_type_die): Take one cv_quals argument instead of two,
25135 one for const and one for volatile.
25136 (add_type_attribute): Likewise.
25137 (generic_parameter_die): Call add_type_attribute with one modifier
25138 argument.
25139 (base_type_for_mode): Likewise.
25140 (add_bounds_info): Likewise.
25141 (add_subscript_info): Likewise.
25142 (gen_array_type_die): Likewise.
25143 (gen_descr_array_type_die): Likewise.
25144 (gen_entry_point_die): Likewise.
25145 (gen_enumeration_type_die): Likewise.
25146 (gen_formal_parameter_die): Likewise.
25147 (gen_subprogram_die): Likewise.
25148 (gen_variable_die): Likewise.
25149 (gen_const_die): Likewise.
25150 (gen_field_die): Likewise.
25151 (gen_pointer_type_die): Likewise.
25152 (gen_reference_type_die): Likewise.
25153 (gen_ptr_to_mbr_type_die): Likewise.
25154 (gen_inheritance_die): Likewise.
25155 (gen_subroutine_type_die): Likewise.
25156 (gen_typedef_die): Likewise.
25157 (force_type_die): Likewise.
25158
25159 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25160
25161 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
25162 if unset.
25163 * configure: Regenerate.
25164
25165 2014-08-19 Richard Biener <rguenther@suse.de>
25166
25167 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
25168 DECL_EXTERNALs in BLOCKs as non-references.
25169 * tree-streamer-out.c (streamer_write_chain): Likewise.
25170
25171 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
25172 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25173 Anna Tikhonova <anna.tikhonova@intel.com>
25174 Ilya Tocar <ilya.tocar@intel.com>
25175 Andrey Turetskiy <andrey.turetskiy@intel.com>
25176 Ilya Verbin <ilya.verbin@intel.com>
25177 Kirill Yukhin <kirill.yukhin@intel.com>
25178 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25179
25180 * config/i386/sse.md
25181 (define_mode_iterator VI48_AVX512F): Delete.
25182 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
25183 (define_mode_iterator VI2_AVX512VL): Ditto.
25184 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
25185 Delete.
25186 (define_insn
25187 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
25188 New.
25189 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
25190 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
25191 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
25192 with VI48_AVX512F_AVX512VL): New.
25193 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
25194 with VI2_AVX512VL): Ditto.
25195
25196 2014-08-19 Marek Polacek <polacek@redhat.com>
25197
25198 * doc/invoke.texi: Document -Wc99-c11-compat.
25199
25200 2014-08-19 David Malcolm <dmalcolm@redhat.com>
25201
25202 * rtl.h (PREV_INSN): Split macro in two: the existing one,
25203 for rvalues, and...
25204 (SET_PREV_INSN): New macro, for use as an lvalue.
25205 (NEXT_INSN, SET_NEXT_INSN): Likewise.
25206
25207 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
25208 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
25209 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
25210 (fixup_abnormal_edges): Likewise.
25211 (unlink_insn_chain): Likewise.
25212 (fixup_reorder_chain): Likewise.
25213 (cfg_layout_delete_block): Likewise.
25214 (cfg_layout_merge_blocks): Likewise.
25215 * combine.c (update_cfg_for_uncondjump): Likewise.
25216 * emit-rtl.c (link_insn_into_chain): Likewise.
25217 (remove_insn): Likewise.
25218 (delete_insns_since): Likewise.
25219 (reorder_insns_nobb): Likewise.
25220 (emit_insn_after_1): Likewise.
25221 * final.c (rest_of_clean_state): Likewise.
25222 (final_scan_insn): Likewise.
25223 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
25224 * haifa-sched.c (concat_note_lists): Likewise.
25225 (remove_notes): Likewise.
25226 (restore_other_notes): Likewise.
25227 (move_insn): Likewise.
25228 (unlink_bb_notes): Likewise.
25229 (restore_bb_notes): Likewise.
25230 * jump.c (delete_for_peephole): Likewise.
25231 * optabs.c (emit_libcall_block_1): Likewise.
25232 * reorg.c (emit_delay_sequence): Likewise.
25233 (fill_simple_delay_slots): Likewise.
25234 * sel-sched-ir.c (sel_move_insn): Likewise.
25235 (sel_remove_insn): Likewise.
25236 (get_bb_note_from_pool): Likewise.
25237 * sel-sched.c (move_nop_to_previous_block): Likewise.
25238
25239 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
25240 * config/c6x/c6x.c (gen_one_bundle): Likewise.
25241 (c6x_gen_bundles): Likewise.
25242 (hwloop_optimize): Likewise.
25243 * config/frv/frv.c (frv_function_prologue): Likewise.
25244 (frv_register_nop): Likewise.
25245 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
25246 (ia64_reorg): Likewise.
25247 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
25248 (mep_make_bundle): Likewise.
25249 (mep_bundle_insns): Likewise.
25250 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
25251 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
25252 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
25253
25254 2014-08-19 David Malcolm <dmalcolm@redhat.com>
25255
25256 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
25257 return type from rtx to rtx_insn *.
25258 (BB_END): Likewise.
25259 (BB_HEADER): Likewise.
25260 (BB_FOOTER): Likewise.
25261 (SET_BB_HEAD): Convert to a function.
25262 (SET_BB_END): Likewise.
25263 (SET_BB_HEADER): Likewise.
25264 (SET_BB_FOOTER): Likewise.
25265
25266 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
25267 Strengthen the return type from rtx to rtx_insn *. For now, this
25268 is done by adding a checked cast, but this will eventually
25269 become a field lookup.
25270 (BB_END): Likewise.
25271 (BB_HEADER): Likewise.
25272 (BB_FOOTER): Likewise.
25273 (SET_BB_HEAD): New function, from macro of same name. This is
25274 intended for use as an lvalue, and so returns an rtx& to allow
25275 in-place modification.
25276 (SET_BB_END): Likewise.
25277 (SET_BB_HEADER): Likewise.
25278 (SET_BB_FOOTER): Likewise.
25279
25280 2014-08-18 David Malcolm <dmalcolm@redhat.com>
25281
25282 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
25283 for rvalues, and...
25284 (SET_BB_HEAD): New macro, for use as a lvalue.
25285 (BB_END, SET_BB_END): Likewise.
25286 (BB_HEADER, SET_BB_HEADER): Likewise.
25287 (BB_FOOTER, SET_BB_FOOTER): Likewise.
25288
25289 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
25290 of BB_* macros into SET_BB_* macros.
25291 (fix_crossing_unconditional_branches): Likewise.
25292 * caller-save.c (save_call_clobbered_regs): Likewise.
25293 (insert_one_insn): Likewise.
25294 * cfgbuild.c (find_bb_boundaries): Likewise.
25295 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
25296 (outgoing_edges_match): Likewise.
25297 (try_optimize_cfg): Likewise.
25298 * cfgexpand.c (expand_gimple_cond): Likewise.
25299 (expand_gimple_tailcall): Likewise.
25300 (expand_gimple_basic_block): Likewise.
25301 (construct_exit_block): Likewise.
25302 * cfgrtl.c (delete_insn): Likewise.
25303 (create_basic_block_structure): Likewise.
25304 (rtl_delete_block): Likewise.
25305 (rtl_split_block): Likewise.
25306 (emit_nop_for_unique_locus_between): Likewise.
25307 (rtl_merge_blocks): Likewise.
25308 (block_label): Likewise.
25309 (try_redirect_by_replacing_jump): Likewise.
25310 (emit_barrier_after_bb): Likewise.
25311 (fixup_abnormal_edges): Likewise.
25312 (record_effective_endpoints): Likewise.
25313 (relink_block_chain): Likewise.
25314 (fixup_reorder_chain): Likewise.
25315 (fixup_fallthru_exit_predecessor): Likewise.
25316 (cfg_layout_duplicate_bb): Likewise.
25317 (cfg_layout_split_block): Likewise.
25318 (cfg_layout_delete_block): Likewise.
25319 (cfg_layout_merge_blocks): Likewise.
25320 * combine.c (update_cfg_for_uncondjump): Likewise.
25321 * emit-rtl.c (add_insn_after): Likewise.
25322 (remove_insn): Likewise.
25323 (reorder_insns): Likewise.
25324 (emit_insn_after_1): Likewise.
25325 * haifa-sched.c (get_ebb_head_tail): Likewise.
25326 (restore_other_notes): Likewise.
25327 (move_insn): Likewise.
25328 (sched_extend_bb): Likewise.
25329 (fix_jump_move): Likewise.
25330 * ifcvt.c (noce_process_if_block): Likewise.
25331 (dead_or_predicable): Likewise.
25332 * ira.c (update_equiv_regs): Likewise.
25333 * reg-stack.c (change_stack): Likewise.
25334 * sel-sched-ir.c (sel_move_insn): Likewise.
25335 * sel-sched.c (move_nop_to_previous_block): Likewise.
25336
25337 * config/c6x/c6x.c (hwloop_optimize): Likewise.
25338 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
25339
25340 2014-08-18 David Malcolm <dmalcolm@redhat.com>
25341
25342 * rtl.h (for_each_rtx_in_insn): New function.
25343 * rtlanal.c (for_each_rtx_in_insn): Likewise.
25344
25345 2014-08-18 David Malcolm <dmalcolm@redhat.com>
25346
25347 * coretypes.h (class rtx_insn): Add forward declaration.
25348
25349 * rtl.h: Include is-a.h.
25350 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
25351 workaround to ensure gengtype knows inheritance is occurring,
25352 whilst continuing to use the pre-existing special-casing for
25353 rtx_def.
25354 (class rtx_insn): New subclass of rtx_def, adding the
25355 invariant that we're dealing with something we can sanely use
25356 INSN_UID, NEXT_INSN, PREV_INSN on.
25357 (is_a_helper <rtx_insn *>::test): New.
25358 (is_a_helper <const rtx_insn *>::test): New.
25359
25360 2014-08-18 David Malcolm <dmalcolm@redhat.com>
25361
25362 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
25363
25364 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
25365
25366 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
25367 comdats as extern.
25368
25369 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
25370
25371 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
25372 to BUILT_IN_UNREACHABLE.
25373
25374 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
25375
25376 PR target/62011
25377 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
25378 New tune flag.
25379 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
25380 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
25381 (ffs<mode>2): Do not expand with tzcnt for
25382 TARGET_AVOID_FALSE_DEP_FOR_BMI.
25383 (ffssi2_no_cmove): Ditto.
25384 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
25385 (ctz<mode>2): New expander.
25386 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
25387 (*ctz<mode>2_falsedep): New insn.
25388 (*ctz<mode>2): Rename from ctz<mode>2.
25389 (clz<mode>2_lzcnt): New expander.
25390 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
25391 (*clz<mode>2_lzcnt_falsedep): New insn.
25392 (*clz<mode>2): Rename from ctz<mode>2.
25393 (popcount<mode>2): New expander.
25394 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
25395 (*popcount<mode>2_falsedep): New insn.
25396 (*popcount<mode>2): Rename from ctz<mode>2.
25397 (*popcount<mode>2_cmp): Remove.
25398 (*popcountsi2_cmp_zext): Ditto.
25399
25400 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
25401
25402 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
25403 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
25404 * config/microblaze/microblaze.h
25405 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
25406
25407 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
25408
25409 PR other/62168
25410 * configure.ac: Set install_gold_as_default to no for
25411 --enable-gold=no.
25412 * configure: Regenerated.
25413
25414 2014-08-18 Roman Gareev <gareevroman@gmail.com>
25415
25416 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
25417 * config.in: Add undef of HAVE_isl.
25418 * configure: Regenerate.
25419 * configure.ac: Add definition of HAVE_isl.
25420 * graphite-blocking.c: Add checking of HAVE_isl.
25421 * graphite-dependences.c: Likewise.
25422 * graphite-interchange.c: Likewise.
25423 * graphite-isl-ast-to-gimple.c: Likewise.
25424 * graphite-optimize-isl.c: Likewise.
25425 * graphite-poly.c: Likewise.
25426 * graphite-scop-detection.c: Likewise.
25427 * graphite-sese-to-poly.c: Likewise.
25428 * graphite.c: Likewise.
25429 * toplev.c: Replace the checking of HAVE_cloog with the checking
25430 of HAVE_isl.
25431
25432 2014-08-18 Richard Biener <rguenther@suse.de>
25433
25434 PR tree-optimization/62090
25435 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
25436 (fold_builtin_3): Do not fold snprintf.
25437 (fold_builtin_4): Likewise.
25438 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
25439 moved from builtins.c.
25440 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
25441 (gimple_fold_builtin): Do not fold sprintf here.
25442
25443 2014-08-18 Richard Biener <rguenther@suse.de>
25444
25445 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
25446 code to ...
25447 (maybe_canonicalize_mem_ref_addr): ... this function.
25448 (fold_stmt_1): Apply it here before all simplification.
25449
25450 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
25451
25452 PR ipa/61800
25453 * cgraph.h (cgraph_node::create_indirect_edge): Add
25454 compute_indirect_info param.
25455 * cgraph.c (cgraph_node::create_indirect_edge): Compute
25456 indirect_info only when it is required.
25457 * cgraphclones.c (cgraph_clone_edge): Do not recompute
25458 indirect_info fore cloned indirect edge.
25459
25460 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
25461 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25462 Anna Tikhonova <anna.tikhonova@intel.com>
25463 Ilya Tocar <ilya.tocar@intel.com>
25464 Andrey Turetskiy <andrey.turetskiy@intel.com>
25465 Ilya Verbin <ilya.verbin@intel.com>
25466 Kirill Yukhin <kirill.yukhin@intel.com>
25467 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25468
25469 * config/i386/sse.md
25470 (define_mode_iterator VI8_AVX2_AVX512BW): New.
25471 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
25472
25473 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
25474 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25475 Anna Tikhonova <anna.tikhonova@intel.com>
25476 Ilya Tocar <ilya.tocar@intel.com>
25477 Andrey Turetskiy <andrey.turetskiy@intel.com>
25478 Ilya Verbin <ilya.verbin@intel.com>
25479 Kirill Yukhin <kirill.yukhin@intel.com>
25480 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25481
25482 * config/i386/sse.md
25483 (define_mode_iterator VF1_AVX512VL): New.
25484 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
25485 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
25486 New.
25487
25488 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
25489 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25490 Anna Tikhonova <anna.tikhonova@intel.com>
25491 Ilya Tocar <ilya.tocar@intel.com>
25492 Andrey Turetskiy <andrey.turetskiy@intel.com>
25493 Ilya Verbin <ilya.verbin@intel.com>
25494 Kirill Yukhin <kirill.yukhin@intel.com>
25495 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25496
25497 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
25498 * config/i386/i386.md
25499 (define_code_iterator any_float): New.
25500 (define_code_attr floatsuffix): New.
25501 * config/i386/sse.md
25502 (define_mode_iterator VF1_128_256VL): New.
25503 (define_mode_iterator VF2_512_256VL): New.
25504 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
25505 TARGET check.
25506 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
25507 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
25508 New.
25509 (define_mode_attr qq2pssuff): New.
25510 (define_mode_attr sselongvecmode): New.
25511 (define_mode_attr sselongvecmodelower): New.
25512 (define_mode_attr sseintvecmode3): New.
25513 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
25514 New.
25515 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
25516 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
25517 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
25518 (define_insn "ufloatv2siv2df2<mask_name>"): New.
25519
25520 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
25521 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25522 Anna Tikhonova <anna.tikhonova@intel.com>
25523 Ilya Tocar <ilya.tocar@intel.com>
25524 Andrey Turetskiy <andrey.turetskiy@intel.com>
25525 Ilya Verbin <ilya.verbin@intel.com>
25526 Kirill Yukhin <kirill.yukhin@intel.com>
25527 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25528
25529 * config/i386/sse.md
25530 (define_mode_iterator VF2_AVX512VL): New.
25531 (define_mode_attr sseintvecmode2): New.
25532 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
25533 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
25534 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
25535 (define_insn
25536 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
25537 Ditto.
25538 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
25539 Ditto.
25540 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
25541 Ditto.
25542
25543 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
25544 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25545 Anna Tikhonova <anna.tikhonova@intel.com>
25546 Ilya Tocar <ilya.tocar@intel.com>
25547 Andrey Turetskiy <andrey.turetskiy@intel.com>
25548 Ilya Verbin <ilya.verbin@intel.com>
25549 Kirill Yukhin <kirill.yukhin@intel.com>
25550 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25551
25552 * config/i386/i386.md
25553 (define_insn "*movoi_internal_avx"): Add evex version.
25554 (define_insn "*movti_internal"): Ditto.
25555
25556 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
25557 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25558 Anna Tikhonova <anna.tikhonova@intel.com>
25559 Ilya Tocar <ilya.tocar@intel.com>
25560 Andrey Turetskiy <andrey.turetskiy@intel.com>
25561 Ilya Verbin <ilya.verbin@intel.com>
25562 Kirill Yukhin <kirill.yukhin@intel.com>
25563 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25564
25565 * config/i386/i386.md
25566 (define_attr "isa"): Add avx512dq, noavx512dq.
25567 (define_attr "enabled"): Ditto.
25568 * config/i386/sse.md
25569 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
25570
25571 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
25572 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25573 Anna Tikhonova <anna.tikhonova@intel.com>
25574 Ilya Tocar <ilya.tocar@intel.com>
25575 Andrey Turetskiy <andrey.turetskiy@intel.com>
25576 Ilya Verbin <ilya.verbin@intel.com>
25577 Kirill Yukhin <kirill.yukhin@intel.com>
25578 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25579
25580 * config/i386/i386.c
25581 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
25582 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
25583 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
25584 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
25585 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
25586 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
25587 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
25588 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
25589 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
25590 * config/i386/sse.md
25591 (define_mode_iterator VMOVE): Allow V4TI mode.
25592 (define_mode_iterator V_AVX512VL): New.
25593 (define_mode_iterator V): New handling for AVX512VL.
25594 (define_insn "avx512f_load<mode>_mask"): Delete.
25595 (define_insn "<avx512>_load<mode>_mask"): New.
25596 (define_insn "avx512f_store<mode>_mask"): Delete.
25597 (define_insn "<avx512>_store<mode>_mask"): New.
25598
25599
25600 2014-08-18 Yury Gribov <y.gribov@samsung.com>
25601
25602 PR sanitizer/62089
25603 * asan.c (instrument_derefs): Fix bitfield check.
25604
25605 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
25606
25607 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
25608 * config/rs6000/htm.md (ttest): Remove clobber.
25609 * config/rs6000/predicates.md (any_mask_operand): New predicate.
25610 (and_operand): Reformat.
25611 (and_2rld_operand): New predicate.
25612 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
25613 parameter.
25614 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
25615 parameter. Handle AND directly.
25616 (rs6000_split_logical_di): Remove last parameter.
25617 (rs6000_split_logical): Remove last parameter. Remove obsolete
25618 comment.
25619 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
25620 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
25621 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
25622 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
25623 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
25624 and 5 anonymous splitters): Delete.
25625 (and<mode>3): New expander.
25626 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
25627 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
25628 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
25629 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
25630 (floatdisf2_internal1): Remove clobbers.
25631 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
25632 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
25633 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
25634 (and<mode>3 for BOOL_128): Remove clobber.
25635 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
25636 rs6000_split_logical.
25637 (*bool<mode>3_internal for BOOL_128): Adjust call of
25638 rs6000_split_logical.
25639 (*boolc<mode>3_internal1 for BOOL_128,
25640 *boolc<mode>3_internal2 for BOOL_128,
25641 *boolcc<mode>3_internal1 for BOOL_128,
25642 *boolcc<mode>3_internal2 for BOOL_128,
25643 *eqv<mode>3_internal1 for BOOL_128,
25644 *eqv<mode>3_internal2 for BOOL_128,
25645 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
25646 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
25647 clobber.
25648 (*vec_reload_and_reg_<mptrsize>): Delete.
25649
25650 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
25651
25652 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
25653 and split, *boolccsi3_internal3 and split): Delete.
25654 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
25655 *boolccdi3_internal3 and split): Delete.
25656 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
25657 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
25658
25659 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
25660
25661 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
25662 and split, *boolcsi3_internal3 and split): Delete.
25663 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
25664 *boolcdi3_internal3 and split): Delete.
25665 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
25666
25667 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
25668
25669 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
25670 <'u'>: Also support printing the low-order 16 bits.
25671 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
25672 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
25673 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
25674 *booldi3_internal3 and split): Delete.
25675 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
25676 *bool<mode>3_dot2): New.
25677 (two anonymous define_splits for non_logical_cint_operand): Merge.
25678
25679 2014-08-17 Marek Polacek <polacek@redhat.com>
25680 Manuel López-Ibáñez <manu@gcc.gnu.org>
25681
25682 PR c/62059
25683 * diagnostic.c (adjust_line): Add gcc_checking_assert.
25684 (diagnostic_show_locus): Don't print caret diagnostic
25685 if a column is larger than the line_width.
25686
25687 2014-08-17 Roman Gareev <gareevroman@gmail.com>
25688
25689 * common.opt: Make the ISL AST generator to be the main code generator
25690 of Graphite.
25691
25692 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
25693
25694 * wide-int.h (generic_wide_int): Declare as class instead of struct.
25695
25696 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
25697
25698 PR target/61641
25699 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
25700 Declare.
25701 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
25702 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
25703 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
25704 Define.
25705 * config/pa/pa.md (begin_brtab): Delete insn.
25706 (end_brtab): Likewise.
25707
25708 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
25709
25710 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
25711
25712 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
25713
25714 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
25715 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
25716 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
25717 (get_dynamic_type): Remove.
25718 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
25719 (clear_speculation): Bring to ipa-deivrt.h
25720 (get_class_context): Rename to ...
25721 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
25722 (contains_type_p): Update.
25723 (get_dynamic_type): Rename to ...
25724 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
25725 (possible_polymorphic_call_targets): UPdate.
25726 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
25727 * ipa-prop.c (ipa_analyze_call_uses): Update.
25728
25729 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
25730
25731 * doc/invoke.texi (SH options): Document missing processor variant
25732 options. Remove references to Hitachi. Undocument deprecated mspace
25733 option.
25734
25735 2014-08-15 Jason Merrill <jason@redhat.com>
25736
25737 * tree.c (type_hash_canon): Uncomment assert.
25738
25739 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
25740
25741 * input.h (in_system_header_at): Add comment.
25742
25743 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
25744
25745 PR fortran/44054
25746 * diagnostic.c (build_message_string): Make it extern.
25747 * diagnostic.h (build_message_string): Make it extern.
25748
25749 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
25750
25751 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
25752 load/store from/to non-floating class pseudo.
25753
25754 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
25755
25756 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
25757
25758 2014-08-15 Richard Biener <rguenther@suse.de>
25759
25760 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
25761 (get_constraint_for_ssa_var): Remove dead code.
25762 (get_constraint_for_1): Adjust.
25763 (find_what_var_points_to): Likewise.
25764 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
25765
25766 2014-08-15 Ilya Tocar <tocarip@gmail.com>
25767
25768 PR target/61878
25769 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
25770 (_mm512_mask_cmpge_epu32_mask): Ditto.
25771 (_mm512_cmpge_epu32_mask): Ditto.
25772 (_mm512_mask_cmpge_epi64_mask): Ditto.
25773 (_mm512_cmpge_epi64_mask): Ditto.
25774 (_mm512_mask_cmpge_epu64_mask): Ditto.
25775 (_mm512_cmpge_epu64_mask): Ditto.
25776 (_mm512_mask_cmple_epi32_mask): Ditto.
25777 (_mm512_cmple_epi32_mask): Ditto.
25778 (_mm512_mask_cmple_epu32_mask): Ditto.
25779 (_mm512_cmple_epu32_mask): Ditto.
25780 (_mm512_mask_cmple_epi64_mask): Ditto.
25781 (_mm512_cmple_epi64_mask): Ditto.
25782 (_mm512_mask_cmple_epu64_mask): Ditto.
25783 (_mm512_cmple_epu64_mask): Ditto.
25784 (_mm512_mask_cmplt_epi32_mask): Ditto.
25785 (_mm512_cmplt_epi32_mask): Ditto.
25786 (_mm512_mask_cmplt_epu32_mask): Ditto.
25787 (_mm512_cmplt_epu32_mask): Ditto.
25788 (_mm512_mask_cmplt_epi64_mask): Ditto.
25789 (_mm512_cmplt_epi64_mask): Ditto.
25790 (_mm512_mask_cmplt_epu64_mask): Ditto.
25791 (_mm512_cmplt_epu64_mask): Ditto.
25792 (_mm512_mask_cmpneq_epi32_mask): Ditto.
25793 (_mm512_mask_cmpneq_epu32_mask): Ditto.
25794 (_mm512_cmpneq_epu32_mask): Ditto.
25795 (_mm512_mask_cmpneq_epi64_mask): Ditto.
25796 (_mm512_cmpneq_epi64_mask): Ditto.
25797 (_mm512_mask_cmpneq_epu64_mask): Ditto.
25798 (_mm512_cmpneq_epu64_mask): Ditto.
25799 (_mm512_castpd_ps): Ditto.
25800 (_mm512_castpd_si512): Ditto.
25801 (_mm512_castps_pd): Ditto.
25802 (_mm512_castps_si512): Ditto.
25803 (_mm512_castsi512_ps): Ditto.
25804 (_mm512_castsi512_pd): Ditto.
25805 (_mm512_castpd512_pd128): Ditto.
25806 (_mm512_castps512_ps128): Ditto.
25807 (_mm512_castsi512_si128): Ditto.
25808 (_mm512_castpd512_pd256): Ditto.
25809 (_mm512_castps512_ps256): Ditto.
25810 (_mm512_castsi512_si256): Ditto.
25811 (_mm512_castpd128_pd512): Ditto.
25812 (_mm512_castps128_ps512): Ditto.
25813 (_mm512_castsi128_si512): Ditto.
25814 (_mm512_castpd256_pd512): Ditto.
25815 (_mm512_castps256_ps512): Ditto.
25816 (_mm512_castsi256_si512): Ditto.
25817 (_mm512_cmpeq_epu32_mask): Ditto.
25818 (_mm512_mask_cmpeq_epu32_mask): Ditto.
25819 (_mm512_mask_cmpeq_epu64_mask): Ditto.
25820 (_mm512_cmpeq_epu64_mask): Ditto.
25821 (_mm512_cmpgt_epu32_mask): Ditto.
25822 (_mm512_mask_cmpgt_epu32_mask): Ditto.
25823 (_mm512_mask_cmpgt_epu64_mask): Ditto.
25824 (_mm512_cmpgt_epu64_mask): Ditto.
25825 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
25826 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
25827 * config/i386/i386.c (enum ix86_builtins): Add
25828 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
25829 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
25830 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
25831 (bdesc_args): Add __builtin_ia32_si512_256si,
25832 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
25833 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
25834 __builtin_ia32_pd512_pd.
25835 (ix86_expand_args_builtin): Handle new FTYPEs.
25836 * config/i386/sse.md (castmode): Add 512-bit modes.
25837 (AVX512MODE2P): New.
25838 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
25839 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
25840
25841 2014-08-15 Richard Biener <rguenther@suse.de>
25842
25843 * fold-const.c (tree_swap_operands_p): Put all constants
25844 last, also strip sign-changing NOPs when considering further
25845 canonicalization. Canonicalize also when optimizing for size.
25846
25847 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25848
25849 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
25850 one_match > zero_match case to just before simple_sequence.
25851
25852 2014-08-15 Richard Biener <rguenther@suse.de>
25853
25854 * data-streamer.h (streamer_string_index, string_for_index):
25855 Remove.
25856 * data-streamer-out.c (streamer_string_index): Make static.
25857 * data-streamer-in.c (string_for_index): Likewise.
25858 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
25859 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
25860
25861 2014-08-15 Richard Biener <rguenther@suse.de>
25862
25863 PR tree-optimization/62031
25864 * tree-data-ref.c (dr_analyze_indices): Do not set
25865 DR_UNCONSTRAINED_BASE.
25866 (dr_may_alias_p): All indirect accesses have to go the
25867 formerly DR_UNCONSTRAINED_BASE path.
25868 * tree-data-ref.h (struct indices): Remove
25869 unconstrained_base member.
25870 (DR_UNCONSTRAINED_BASE): Remove.
25871
25872 2014-08-15 Jakub Jelinek <jakub@redhat.com>
25873
25874 PR middle-end/62092
25875 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
25876 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
25877 in OMP_CLAUSE_MAP in some outer target region.
25878
25879 2014-08-15 Bin Cheng <bin.cheng@arm.com>
25880
25881 * tree-ssa-loop-ivopts.c (ivopts_data): New field
25882 name_expansion_cache.
25883 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
25884 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
25885 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
25886 (difference_cannot_overflow_p): New parameter. Use affine
25887 expansion for equality check.
25888 (iv_elimination_compare_lt): Pass new argument.
25889
25890 2014-08-14 DJ Delorie <dj@redhat.com>
25891
25892 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
25893 variables to the accumulator.
25894
25895 * config/rl78/predicates.md (rl78_near_mem_operand): New.
25896 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
25897 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
25898 with far-far moves.
25899
25900 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
25901 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
25902 (umulqihi3_virt): Likewise.
25903 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
25904 (umulqihi3_real): Likewise.
25905
25906 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
25907
25908 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
25909
25910 PR tree-optimization/62091
25911 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
25912 function_entry_reached.
25913 (walk_aliased_vdefs): Clear it here.
25914 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
25915
25916 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
25917
25918 * ipa-utils.h (compare_virtual_tables): Declare.
25919 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
25920
25921 2014-08-14 Marek Polacek <polacek@redhat.com>
25922
25923 DR 458
25924 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
25925 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
25926
25927 2014-08-14 Tom de Vries <tom@codesourcery.com>
25928
25929 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
25930
25931 2014-08-14 Tom de Vries <tom@codesourcery.com>
25932
25933 PR rtl-optimization/62004
25934 PR rtl-optimization/62030
25935 * ifcvt.c (rtx_interchangeable_p): New function.
25936 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
25937 * emit-rtl.h (mem_attrs_eq_p): Declare.
25938
25939 2014-08-14 Roman Gareev <gareevroman@gmail.com>
25940
25941 * graphite-scop-detection.c:
25942 Add inclusion of cp-tree.h.
25943 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
25944 in case they are pointers to object types
25945
25946 2014-08-14 Richard Biener <rguenther@suse.de>
25947
25948 * BASE-VER: Change to 5.0.0
25949
25950 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
25951 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25952 Anna Tikhonova <anna.tikhonova@intel.com>
25953 Ilya Tocar <ilya.tocar@intel.com>
25954 Andrey Turetskiy <andrey.turetskiy@intel.com>
25955 Ilya Verbin <ilya.verbin@intel.com>
25956 Kirill Yukhin <kirill.yukhin@intel.com>
25957 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25958
25959 * config/i386/sse.md (define_mode_attr avx512): New.
25960 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
25961 V4DI modes.
25962 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
25963 (define_mode_attr ssse3_avx2): Ditto.
25964 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
25965 (define_mode_attr avx2_avx512bw): New.
25966 (define_mode_attr ssedoublemodelower): New.
25967 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
25968 V32HI, V64QI modes.
25969 (define_mode_attr ssebytemode): Allow V8DI modes.
25970 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
25971 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
25972 (define_mode_attr ssePSmode2): New.
25973 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
25974 V16HI, V32HI modes.
25975 (define_mode_attr dbpsadbwmode): New.
25976 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
25977 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
25978 (vi8_sse4_1_avx2_avx512): New.
25979 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
25980 mode attribute.
25981 (define_mode_attr blendbits): Move before its immediate use.
25982
25983 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
25984 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25985 Anna Tikhonova <anna.tikhonova@intel.com>
25986 Ilya Tocar <ilya.tocar@intel.com>
25987 Andrey Turetskiy <andrey.turetskiy@intel.com>
25988 Ilya Verbin <ilya.verbin@intel.com>
25989 Kirill Yukhin <kirill.yukhin@intel.com>
25990 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25991
25992 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
25993 * config/i386/subst.md
25994 (define_mode_iterator SUBST_V): Update.
25995 (define_mode_iterator SUBST_A): Ditto.
25996 (define_subst_attr "mask_operand7"): New.
25997 (define_subst_attr "mask_operand10"): New.
25998 (define_subst_attr "mask_operand_arg34") : New.
25999 (define_subst_attr "mask_expand_op3"): New.
26000 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
26001 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
26002 (define_subst_attr "mask_avx512vl_condition"): New.
26003 (define_subst_attr "round_mask_operand4"): Ditto.
26004 (define_subst_attr "round_mask_scalar_op3"): Delete.
26005 (define_subst_attr "round_mask_op4"): New.
26006 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
26007 V16SImode.
26008 (define_subst_attr "round_modev8sf_condition"): New.
26009 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
26010 <MODE>mode.
26011 (define_subst_attr "round_saeonly_mask_operand4"): New.
26012 (define_subst_attr "round_saeonly_mask_op4"): New.
26013 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
26014 V8DImode, V16SImode.
26015 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
26016 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
26017 (define_subst_attr "mask_expand4_args"): New.
26018 (define_subst "mask_expand4"): New.
26019
26020 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
26021 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26022 Anna Tikhonova <anna.tikhonova@intel.com>
26023 Ilya Tocar <ilya.tocar@intel.com>
26024 Andrey Turetskiy <andrey.turetskiy@intel.com>
26025 Ilya Verbin <ilya.verbin@intel.com>
26026 Kirill Yukhin <kirill.yukhin@intel.com>
26027 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26028
26029 * config/i386/i386.md
26030 (define_attr "isa"): Add avx512bw,noavx512bw.
26031 (define_attr "enabled"): Ditto.
26032 (define_split): Add 32/64-bit mask logic.
26033 (define_insn "*k<logic>qi"): New.
26034 (define_insn "*k<logic>hi"): New.
26035 (define_insn "*anddi_1"): Add mask version.
26036 (define_insn "*andsi_1"): Ditto.
26037 (define_insn "*<code><mode>_1"): Ditto.
26038 (define_insn "*<code>hi_1"): Ditto.
26039 (define_insn "kxnor<mode>"): New.
26040 (define_insn "kunpcksi"): New.
26041 (define_insn "kunpckdi"): New.
26042 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
26043 (define_insn "*one_cmplhi2_1"): Ditto.
26044
26045 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
26046 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26047 Anna Tikhonova <anna.tikhonova@intel.com>
26048 Ilya Tocar <ilya.tocar@intel.com>
26049 Andrey Turetskiy <andrey.turetskiy@intel.com>
26050 Ilya Verbin <ilya.verbin@intel.com>
26051 Kirill Yukhin <kirill.yukhin@intel.com>
26052 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26053
26054 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
26055 V32HImode.
26056
26057 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
26058 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26059 Anna Tikhonova <anna.tikhonova@intel.com>
26060 Ilya Tocar <ilya.tocar@intel.com>
26061 Andrey Turetskiy <andrey.turetskiy@intel.com>
26062 Ilya Verbin <ilya.verbin@intel.com>
26063 Kirill Yukhin <kirill.yukhin@intel.com>
26064 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26065
26066 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
26067 registers.
26068 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
26069 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
26070 xmm/ymm16+ when availble.
26071 * config/i386/i386.h
26072 (HARD_REGNO_NREGS): Add mask regs.
26073 (VALID_AVX512F_REG_MODE): Ditto.
26074 (VALID_AVX512F_REG_MODE) : Define.
26075 (VALID_MASK_AVX512BW_MODE): Ditto.
26076 (reg_class) (MASK_REG_P(X)): Define.
26077 * config/i386/i386.md: Do not split long moves with mask register,
26078 use kmovb if avx512bw is availible.
26079 (movdi_internal): Handle mask registers.
26080
26081 2014-08-14 Richard Biener <rguenther@suse.de>
26082
26083 PR tree-optimization/62081
26084 * tree-ssa-loop.c (pass_fix_loops): New pass.
26085 (pass_tree_loop::gate): Do not fixup loops here.
26086 * tree-pass.h (make_pass_fix_loops): Declare.
26087 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
26088
26089 2014-08-14 Richard Biener <rguenther@suse.de>
26090
26091 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
26092 (type_hash_canon): ... this and avoid 2nd lookup for the add.
26093
26094 2014-08-14 Richard Biener <rguenther@suse.de>
26095
26096 PR tree-optimization/62090
26097 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
26098 (fold_builtin_2): Do not fold sprintf.
26099 (fold_builtin_3): Likewise.
26100 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
26101 moved from builtins.c.
26102 (gimple_fold_builtin): Fold sprintf.
26103
26104 2014-08-14 Richard Biener <rguenther@suse.de>
26105
26106 PR rtl-optimization/62079
26107 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
26108 run cleanup_cfg.
26109
26110 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
26111
26112 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
26113 current_function_decl.
26114
26115 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
26116
26117 * cgraph.c (cgraph_node::function_symbol): Fix wrong
26118 cgraph_function_node to cgraph_node::function_symbol
26119 refactoring.
26120
26121 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
26122
26123 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
26124 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
26125
26126 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
26127
26128 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
26129 warning.
26130
26131 2014-08-13 Roman Gareev <gareevroman@gmail.com>
26132
26133 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
26134 generator.
26135
26136 2014-08-12 Jakub Jelinek <jakub@redhat.com>
26137
26138 PR target/62025
26139 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
26140 any registers that are used in mem_insn.
26141
26142 2014-08-12 Steve Ellcey <sellcey@mips.com>
26143
26144 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
26145
26146 2014-08-12 Steve Ellcey <sellcey@mips.com>
26147
26148 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
26149 (MULTILIB_DIRNAMES): Ditto.
26150 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
26151 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
26152 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
26153 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
26154 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
26155 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
26156
26157 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26158
26159 PR target/61413
26160 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
26161 of __ARM_SIZEOF_WCHAR_T.
26162
26163 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26164
26165 PR target/62098
26166 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
26167 Remove unnecessary attributes.
26168
26169 2014-08-12 Yury Gribov <y.gribov@samsung.com>
26170
26171 * internal-fn.c (init_internal_fns): Fix off-by-one.
26172
26173 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
26174 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26175 Anna Tikhonova <anna.tikhonova@intel.com>
26176 Ilya Tocar <ilya.tocar@intel.com>
26177 Andrey Turetskiy <andrey.turetskiy@intel.com>
26178 Ilya Verbin <ilya.verbin@intel.com>
26179 Kirill Yukhin <kirill.yukhin@intel.com>
26180 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26181
26182 * config/i386/i386.c (standard_sse_constant_opcode): Use
26183 vpxord/vpternlog if avx512 is availible.
26184
26185 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
26186
26187 PR middle-end/62103
26188 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
26189 bitfields, that is when size doesn't match the size of type or the
26190 size of the constructor.
26191
26192 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26193
26194 * config/rs6000/constraints.md (wh constraint): New constraint,
26195 for FP registers if direct move is available.
26196 (wi constraint): New constraint, for VSX/FP registers that can
26197 handle 64-bit integers.
26198 (wj constraint): New constraint for VSX/FP registers that can
26199 handle 64-bit integers for direct moves.
26200 (wk constraint): New constraint for VSX/FP registers that can
26201 handle 64-bit doubles for direct moves.
26202 (wy constraint): Make documentation match implementation.
26203
26204 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
26205 scalar_in_vmx_p field to simplify tests of whether SFmode or
26206 DFmode can go in the Altivec registers.
26207 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
26208 (rs6000_setup_reg_addr_masks): Likewise.
26209 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
26210 field, and wh/wi/wj/wk constraints.
26211 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
26212 the wh/wi/wj/wk constraints.
26213 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
26214 upper registers, prefer VSX registers unless the operation is a
26215 memory operation with REG+OFFSET addressing.
26216
26217 * config/rs6000/vsx.md (VSr mode attribute): Add support for
26218 DImode. Change SFmode to use ww constraint instead of d to allow
26219 SF registers in the upper registers.
26220 (VSr2): Likewise.
26221 (VSr3): Likewise.
26222 (VSr5): Fix thinko in comment.
26223 (VSa): New mode attribute that is an alternative to wa, that
26224 returns the VSX register class that a mode can go in, but may not
26225 be the preferred register class.
26226 (VS_64dm): New mode attribute for appropriate register classes for
26227 referencing 64-bit elements of vectors for direct moves and normal
26228 moves.
26229 (VS_64reg): Likewise.
26230 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
26231 register allocator to only registers the data type can handle.
26232 (vsx_le_perm_load_<mode>): Likewise.
26233 (vsx_le_perm_store_<mode>): Likewise.
26234 (vsx_xxpermdi2_le_<mode>): Likewise.
26235 (vsx_xxpermdi4_le_<mode>): Likewise.
26236 (vsx_lxvd2x2_le_<mode>): Likewise.
26237 (vsx_lxvd2x4_le_<mode>): Likewise.
26238 (vsx_stxvd2x2_le_<mode>): Likewise.
26239 (vsx_add<mode>3): Likewise.
26240 (vsx_sub<mode>3): Likewise.
26241 (vsx_mul<mode>3): Likewise.
26242 (vsx_div<mode>3): Likewise.
26243 (vsx_tdiv<mode>3_internal): Likewise.
26244 (vsx_fre<mode>2): Likewise.
26245 (vsx_neg<mode>2): Likewise.
26246 (vsx_abs<mode>2): Likewise.
26247 (vsx_nabs<mode>2): Likewise.
26248 (vsx_smax<mode>3): Likewise.
26249 (vsx_smin<mode>3): Likewise.
26250 (vsx_sqrt<mode>2): Likewise.
26251 (vsx_rsqrte<mode>2): Likewise.
26252 (vsx_tsqrt<mode>2_internal): Likewise.
26253 (vsx_fms<mode>4): Likewise.
26254 (vsx_nfma<mode>4): Likewise.
26255 (vsx_eq<mode>): Likewise.
26256 (vsx_gt<mode>): Likewise.
26257 (vsx_ge<mode>): Likewise.
26258 (vsx_eq<mode>_p): Likewise.
26259 (vsx_gt<mode>_p): Likewise.
26260 (vsx_ge<mode>_p): Likewise.
26261 (vsx_xxsel<mode>): Likewise.
26262 (vsx_xxsel<mode>_uns): Likewise.
26263 (vsx_copysign<mode>3): Likewise.
26264 (vsx_float<VSi><mode>2): Likewise.
26265 (vsx_floatuns<VSi><mode>2): Likewise.
26266 (vsx_fix_trunc<mode><VSi>2): Likewise.
26267 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
26268 (vsx_x<VSv>r<VSs>i): Likewise.
26269 (vsx_x<VSv>r<VSs>ic): Likewise.
26270 (vsx_btrunc<mode>2): Likewise.
26271 (vsx_b2trunc<mode>2): Likewise.
26272 (vsx_floor<mode>2): Likewise.
26273 (vsx_ceil<mode>2): Likewise.
26274 (vsx_<VS_spdp_insn>): Likewise.
26275 (vsx_xscvspdp): Likewise.
26276 (vsx_xvcvspuxds): Likewise.
26277 (vsx_float_fix_<mode>2): Likewise.
26278 (vsx_set_<mode>): Likewise.
26279 (vsx_extract_<mode>_internal1): Likewise.
26280 (vsx_extract_<mode>_internal2): Likewise.
26281 (vsx_extract_<mode>_load): Likewise.
26282 (vsx_extract_<mode>_store): Likewise.
26283 (vsx_splat_<mode>): Likewise.
26284 (vsx_xxspltw_<mode>): Likewise.
26285 (vsx_xxspltw_<mode>_direct): Likewise.
26286 (vsx_xxmrghw_<mode>): Likewise.
26287 (vsx_xxmrglw_<mode>): Likewise.
26288 (vsx_xxsldwi_<mode>): Likewise.
26289 (vsx_xscvdpspn): Tighten constraints to only use register classes
26290 the types use.
26291 (vsx_xscvspdpn): Likewise.
26292 (vsx_xscvdpspn_scalar): Likewise.
26293
26294 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
26295 wj, and wk constraints.
26296 (GPR_REG_CLASS_P): New helper macro for register classes targeting
26297 general purpose registers.
26298
26299 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
26300 direct moves.
26301 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
26302 DImode instead of wm. Use wk constraint for direct move of DFmode
26303 instead of wm.
26304 (extendsidi2_lfiwax): Likewise.
26305 (lfiwax): Likewise.
26306 (lfiwzx): Likewise.
26307 (movdi_internal64): Likewise.
26308
26309 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
26310 wk constraints. Make the wy constraint documentation match them
26311 implementation.
26312
26313 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
26314
26315 Replacement of isl_int by isl_val
26316 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
26317 (compute_bounds_for_param): use isl_val instead of isl_int
26318 (compute_bounds_for_loop): likewise
26319 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
26320 (build_linearized_memory_access): use isl_val instead of isl_int
26321 (pdr_stride_in_loop): likewise
26322 * graphite-optimize-isl.c:
26323 (getPrevectorMap): use isl_val instead of isl_int
26324 * graphite-poly.c:
26325 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
26326 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
26327 (extern the_isl_ctx): declare
26328 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
26329 (extract_affine_gmp): likewise
26330 (wrap): likewise
26331 (build_loop_iteration_domains): likewise
26332 (add_param_constraints): likewise
26333
26334 2014-08-11 Richard Biener <rguenther@suse.de>
26335
26336 PR tree-optimization/62075
26337 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
26338 handle uses in patterns.
26339
26340 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
26341 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26342 Anna Tikhonova <anna.tikhonova@intel.com>
26343 Ilya Tocar <ilya.tocar@intel.com>
26344 Andrey Turetskiy <andrey.turetskiy@intel.com>
26345 Ilya Verbin <ilya.verbin@intel.com>
26346 Kirill Yukhin <kirill.yukhin@intel.com>
26347 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26348
26349 * common/config/i386/i386-common.c
26350 (OPTION_MASK_ISA_AVX512VL_SET): Define.
26351 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
26352 (ix86_handle_option): Handle OPT_mavx512vl.
26353 * config/i386/cpuid.h (bit_AVX512VL): Define.
26354 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
26355 set -mavx512vl accordingly.
26356 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26357 OPTION_MASK_ISA_AVX512VL.
26358 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
26359 (ix86_option_override_internal): Define PTA_AVX512VL, handle
26360 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
26361 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
26362 * config/i386/i386.h (TARGET_AVX512VL): Define.
26363 (TARGET_AVX512VL_P(x)): Ditto.
26364 * config/i386/i386.opt: Add mavx512vl.
26365
26366 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
26367
26368 PR tree-optimization/62073
26369 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
26370 a basic block.
26371
26372 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
26373 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26374 Anna Tikhonova <anna.tikhonova@intel.com>
26375 Ilya Tocar <ilya.tocar@intel.com>
26376 Andrey Turetskiy <andrey.turetskiy@intel.com>
26377 Ilya Verbin <ilya.verbin@intel.com>
26378 Kirill Yukhin <kirill.yukhin@intel.com>
26379 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26380
26381 * common/config/i386/i386-common.c
26382 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
26383 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
26384 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
26385 (ix86_handle_option): Handle OPT_mavx512bw.
26386 * config/i386/cpuid.h (bit_AVX512BW): Define.
26387 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
26388 set -mavx512bw accordingly.
26389 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26390 OPTION_MASK_ISA_AVX512BW.
26391 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
26392 (ix86_option_override_internal): Define PTA_AVX512BW, handle
26393 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
26394 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
26395 * config/i386/i386.h (TARGET_AVX512BW): Define.
26396 (TARGET_AVX512BW_P(x)): Ditto.
26397 * config/i386/i386.opt: Add mavx512bw.
26398
26399 2014-08-11 Richard Biener <rguenther@suse.de>
26400
26401 PR tree-optimization/62070
26402 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
26403 Remove SSA checking.
26404
26405 2014-08-11 Yury Gribov <y.gribov@samsung.com>
26406
26407 * asan.c (asan_check_flags): New enum.
26408 (build_check_stmt_with_calls): Removed function.
26409 (build_check_stmt): Split inlining logic to
26410 asan_expand_check_ifn.
26411 (instrument_derefs): Rename parameter.
26412 (instrument_mem_region_access): Rename parameter.
26413 (instrument_strlen_call): Likewise.
26414 (asan_expand_check_ifn): New function.
26415 (asan_instrument): Remove old code.
26416 (pass_sanopt::execute): Change handling of
26417 asan-instrumentation-with-call-threshold.
26418 (asan_clear_shadow): Fix formatting.
26419 (asan_function_start): Likewise.
26420 (asan_emit_stack_protection): Likewise.
26421 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
26422 Update description.
26423 * internal-fn.c (expand_ASAN_CHECK): New function.
26424 * internal-fn.def (ASAN_CHECK): New internal function.
26425 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
26426 Update description.
26427 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
26428 * tree.c: Small comment fix.
26429
26430 2014-08-11 Yury Gribov <y.gribov@samsung.com>
26431
26432 * gimple.c (gimple_call_fnspec): Support internal functions.
26433 (gimple_call_return_flags): Use const.
26434 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
26435 * internal-fn.def: Add fnspec information.
26436 * internal-fn.h (internal_fn_fnspec): New function.
26437 (init_internal_fns): Declare new function.
26438 * internal-fn.c (internal_fn_fnspec_array): New global variable.
26439 (init_internal_fns): New function.
26440 * tree-core.h: Update macro call.
26441 * tree.c (build_common_builtin_nodes): Initialize internal fns.
26442
26443 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
26444
26445 * lto-streamer.h (struct output_block::symbol): Change from
26446 struct symtab_node to plain symtab_node.
26447 (referenced_from_this_partition_p): Change first parameter
26448 from struct symtab_node to plain symtab_node.
26449
26450 2014-08-10 Marek Polacek <polacek@redhat.com>
26451
26452 PR c/51849
26453 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
26454
26455 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
26456
26457 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
26458 DECL correctly; do not give up on types in static storage.
26459
26460 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
26461
26462 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
26463
26464 2014-08-09 Roman Gareev <gareevroman@gmail.com>
26465
26466 * graphite-isl-ast-to-gimple.c:
26467 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
26468
26469 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
26470
26471 2014-08-08 Guozhi Wei <carrot@google.com>
26472
26473 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
26474
26475 2014-08-08 Cary Coutant <ccoutant@google.com>
26476
26477 * dwarf2out.c (get_skeleton_type_unit): Remove.
26478 (output_skeleton_debug_sections): Remove skeleton type units.
26479 (output_comdat_type_unit): Likewise.
26480 (dwarf2out_finish): Likewise.
26481
26482 2014-08-07 Yi Yang <ahyangyi@google.com>
26483
26484 * predict.c (expr_expected_value_1): Remove the redundant assignment.
26485
26486 2014-08-08 Richard Biener <rguenther@suse.de>
26487
26488 * lto-streamer.h (struct lto_input_block): Make it a class
26489 with a constructor.
26490 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
26491 (struct lto_function_header, struct lto_simple_header,
26492 struct lto_simple_header_with_strings,
26493 struct lto_decl_header, struct lto_function_header): Make
26494 a simple inheritance hieararchy. Remove unused fields.
26495 (struct lto_asm_header): Remove.
26496 * lto-streamer-out.c (produce_asm): Adjust.
26497 (lto_output_toplevel_asms): Likewise.
26498 (produce_asm_for_decls): Likewise.
26499 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
26500 * data-streamer-in.c (string_for_index): Likewise.
26501 * ipa-inline-analysis.c (inline_read_section): Likewise.
26502 * ipa-prop.c (ipa_prop_read_section): Likewise.
26503 (read_replacements_section): Likewise.
26504 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
26505 * lto-section-in.c (lto_create_simple_input_block): Likewise.
26506 (lto_destroy_simple_input_block): Likewise.
26507 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
26508 (lto_input_toplevel_asms): Likewise.
26509
26510 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
26511 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26512 Anna Tikhonova <anna.tikhonova@intel.com>
26513 Ilya Tocar <ilya.tocar@intel.com>
26514 Andrey Turetskiy <andrey.turetskiy@intel.com>
26515 Ilya Verbin <ilya.verbin@intel.com>
26516 Kirill Yukhin <kirill.yukhin@intel.com>
26517 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26518
26519 * common/config/i386/i386-common.c
26520 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
26521 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
26522 (ix86_handle_option): Handle OPT_mavx512dq.
26523 * config/i386/cpuid.h (bit_AVX512DQ): Define.
26524 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
26525 set -mavx512dq accordingly.
26526 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26527 OPTION_MASK_ISA_AVX512DQ.
26528 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
26529 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
26530 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
26531 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
26532 * config/i386/i386.h (TARGET_AVX512DQ): Define.
26533 (TARGET_AVX512DQ_P(x)): Ditto.
26534 * config/i386/i386.opt: Add mavx512dq.
26535
26536 2014-08-08 Richard Biener <rguenther@suse.de>
26537
26538 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
26539 target_percent, target_percent_s): Export.
26540 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
26541 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
26542 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
26543 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
26544 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
26545 Move to gimple-fold.c.
26546 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
26547 strcat and strcpy.
26548 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
26549 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
26550 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
26551 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
26552 (rewrite_call_expr_array): Remove.
26553 (fold_builtin_sprintf_chk): Likewise.
26554 (fold_builtin_snprintf_chk): Likewise.
26555 (fold_builtin_varargs): Remove handling of sprintf_chk,
26556 vsprintf_chk, snprintf_chk and vsnprintf_chk.
26557 (gimple_fold_builtin_sprintf_chk): Remove.
26558 (gimple_fold_builtin_snprintf_chk): Likewise.
26559 (gimple_fold_builtin_varargs): Likewise.
26560 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
26561 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
26562 * gimple.c (gimple_seq_add_seq_without_update): New function.
26563 * gimple.h (gimple_seq_add_seq_without_update): Declare.
26564 * gimple-fold.c: Include output.h.
26565 (gsi_replace_with_seq_vops): New function, split out from ...
26566 (gimplify_and_update_call_from_tree): ... here.
26567 (replace_call_with_value): New function.
26568 (replace_call_with_call_and_fold): Likewise.
26569 (var_decl_component_p): Moved from builtins.c.
26570 (gimple_fold_builtin_memory_op): Moved from builtins.c
26571 fold_builtin_memory_op and rewritten to GIMPLE.
26572 (gimple_fold_builtin_memset): Likewise.
26573 (gimple_fold_builtin_strcpy): Likewise.
26574 (gimple_fold_builtin_strncpy): Likewise.
26575 (gimple_fold_builtin_strcat): Likewise.
26576 (gimple_fold_builtin_fputs): Likewise.
26577 (gimple_fold_builtin_memory_chk): Likewise.
26578 (gimple_fold_builtin_stxcpy_chk): Likewise.
26579 (gimple_fold_builtin_stxncpy_chk): Likewise.
26580 (gimple_fold_builtin_snprintf_chk): Likewise.
26581 (gimple_fold_builtin_sprintf_chk): Likewise.
26582 (gimple_fold_builtin_strlen): New function.
26583 (gimple_fold_builtin_with_strlen): New function split out from
26584 gimple_fold_builtin.
26585 (gimple_fold_builtin): Change signature and handle
26586 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
26587 here. Call gimple_fold_builtin_with_strlen.
26588 (gimple_fold_call): Adjust.
26589
26590 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
26591
26592 * calls.c (precompute_arguments): Check
26593 promoted_for_signed_and_unsigned_p and set the promoted mode.
26594 (promoted_for_signed_and_unsigned_p): New function.
26595 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
26596 and set the promoted mode.
26597 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
26598 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
26599 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
26600
26601
26602 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
26603
26604 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
26605 instead of SUBREG_PROMOTED_UNSIGNED_SET.
26606 (expand_call): Likewise.
26607 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
26608 to get promoted mode.
26609 * combine.c (record_promoted_value): Skip > 0 comparison with
26610 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
26611 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
26612 of SUBREG_PROMOTED_UNSIGNED_P.
26613 (convert_modes): Likewise.
26614 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
26615 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
26616 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
26617 SUBREG_PROMOTED_UNSIGNED_SET.
26618 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
26619 instead of SUBREG_PROMOTED_UNSIGNED_SET.
26620 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
26621 SUBREG_PROMOTED_SET.
26622 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
26623 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
26624 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
26625 of SUBREG_PROMOTED_UNSIGNED_P.
26626 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
26627 (SUBREG_PROMOTED_SET): New define.
26628 (SUBREG_PROMOTED_GET): Likewise.
26629 (SUBREG_PROMOTED_SIGN): Likewise.
26630 (SUBREG_PROMOTED_SIGNED_P): Likewise.
26631 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
26632 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
26633 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
26634 instead of SUBREG_PROMOTED_UNSIGNED_GET.
26635 (nonzero_bits1): Skip > 0 comparison with the results as
26636 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
26637 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
26638 of !SUBREG_PROMOTED_UNSIGNED_P.
26639 * simplify-rtx.c (simplify_unary_operation_1): Use new
26640 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
26641 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
26642 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
26643 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
26644
26645 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
26646
26647 * ipa-devirt.c: Include gimple-pretty-print.h
26648 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
26649 further tests.
26650 (decl_maybe_in_construction_p): Fix conditional on cdtor check
26651 (get_polymorphic_call_info): Fix return value
26652 (type_change_info): New sturcture based on ipa-prop
26653 variant.
26654 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
26655 based on ipa-prop variant.
26656 (extr_type_from_vtbl_ptr_store): New function
26657 based on ipa-prop variant.
26658 (record_known_type): New function.
26659 (check_stmt_for_type_change): New function.
26660 (get_dynamic_type): New function.
26661 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
26662 * tree-ssa-pre.c: ipa-utils.h
26663 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
26664 machinery; sanity check with ipa-prop devirtualization.
26665 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
26666 polymorphic flag.
26667
26668 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
26669
26670 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
26671 * alias.c, cfgexpand.c, cgraphbuild.c,
26672 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
26673 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
26674 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
26675 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
26676 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
26677 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
26678 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
26679 dse.c, except.c, gengtype.c, gimple-expr.c,
26680 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
26681 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
26682 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
26683 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
26684 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
26685 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
26686 pointer-set.h.
26687 * pointer-set.c: Remove file.
26688 * pointer-set.h: Remove file.
26689
26690 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26691
26692 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
26693 * config/arm/types.md (f_sels, f_seld): Delete.
26694
26695 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26696
26697 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
26698 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
26699 (aarch64_movdi_<mode>high): Likewise.
26700 (aarch64_mov<mode>high_di): Likewise.
26701 (aarch64_movdi_<mode>low): Likewise.
26702 (aarch64_mov<mode>low_di): Likewise.
26703 (aarch64_movtilow_tilow): Likewise.
26704 Add comment explaining usage of fp,simd attributes and of
26705 TARGET_FLOAT and TARGET_SIMD.
26706
26707 2014-08-07 Ian Bolton <ian.bolton@arm.com>
26708 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26709
26710 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
26711 Use MOVN when one of the half-words is 0xffff.
26712
26713 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
26714
26715 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
26716
26717 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26718
26719 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
26720 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
26721 (rfs_str): String corresponding to RFS_* constants.
26722 (rank_for_schedule_stats_t): New typedef.
26723 (rank_for_schedule_stats): New static variable.
26724 (rfs_result): New static function.
26725 (rank_for_schedule): Track statistics for deciding heuristics.
26726 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
26727 static functions.
26728 (ready_sort): Use them for debug printouts.
26729 (schedule_block): Init statistics state. Print statistics on
26730 rank_for_schedule decisions.
26731
26732 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26733
26734 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
26735
26736 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
26737
26738 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
26739 constraint.
26740
26741 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
26742
26743 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
26744 function to not conflict.
26745 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
26746 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
26747 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
26748 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
26749 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
26750 of pointer_map.
26751
26752 2014-08-07 Marek Polacek <polacek@redhat.com>
26753
26754 * fold-const.c (fold_binary_loc): Add folding of
26755 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
26756
26757 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
26758
26759 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
26760 instead of type size.
26761 (ASM_FINISH_DECLARE_OBJECT): Likewise.
26762
26763 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
26764
26765 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
26766 (*thumb1_movqi_insn): Likewise.
26767 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
26768
26769 2014-08-07 Tom de Vries <tom@codesourcery.com>
26770
26771 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
26772 (glibc_2_11_or_earlier): Remove effective-target keywords.
26773
26774 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
26775
26776 * config/arm/arm.c (bdesc_2arg): Fix typo.
26777 (arm_atomic_assign_expand_fenv): Remove The default implementation.
26778
26779 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
26780
26781 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
26782
26783 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
26784
26785 PR debug/61923
26786 * haifa-sched.c (advance_one_cycle): Fix dump.
26787 (schedule_block): Don't advance cycle if we are already at the
26788 beginning of the cycle.
26789
26790 2014-08-06 Martin Jambor <mjambor@suse.cz>
26791
26792 PR ipa/61393
26793 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
26794
26795 2014-08-06 Richard Biener <rguenther@suse.de>
26796
26797 PR lto/62034
26798 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
26799 SCCs here.
26800 (lto_input_tree): Pop SCCs here.
26801
26802 2014-08-06 Richard Biener <rguenther@suse.de>
26803
26804 PR tree-optimization/61320
26805 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
26806 handle misaligned loads.
26807
26808 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
26809
26810 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
26811 (aarch64_expand_vec_perm_const): Check for dup before zip.
26812
26813 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26814
26815 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
26816 CONST_INT_P instead of GET_CODE and compare.
26817 (aarch64_select_cc_mode): Likewise.
26818 (aarch64_print_operand): Likewise.
26819 (aarch64_rtx_costs): Likewise.
26820 (aarch64_simd_valid_immediate): Likewise.
26821 (aarch64_simd_check_vect_par_cnst_half): Likewise.
26822 (aarch64_simd_emit_pair_result_insn): Likewise.
26823
26824 2014-08-05 David Malcolm <dmalcolm@redhat.com>
26825
26826 * gdbhooks.py (find_gcc_source_dir): New helper function.
26827 (class PassNames): New class, locating and parsing passes.def.
26828 (class BreakOnPass): New command "break-on-pass".
26829
26830 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
26831
26832 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
26833 getting olde.
26834
26835 2014-08-05 Richard Biener <rguenther@suse.de>
26836
26837 PR rtl-optimization/61672
26838 * emit-rtl.h (mem_attrs_eq_p): Declare.
26839 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
26840 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
26841 * cfgcleanup.c (merge_memattrs): Likewise.
26842 Include emit-rtl.h.
26843
26844 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26845
26846 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
26847 rather than singleton vectors.
26848 (vqdmlsls_lane_s32): Likewise.
26849
26850 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26851
26852 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
26853 Use VSDQ_HSI mode iterator.
26854 (aarch64_sqrdmulh_laneq<mode>): Likewise.
26855 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
26856 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
26857 Use BUILTIN_VDQHS macro.
26858 (sqrdmulh_laneq): Likewise.
26859 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
26860 (vqdmlals_laneq_s32): Likewise.
26861 (vqdmlslh_laneq_s16): Likewise.
26862 (vqdmlsls_laneq_s32): Likewise.
26863 (vqdmulhh_laneq_s16): Likewise.
26864 (vqdmulhs_laneq_s32): Likewise.
26865 (vqrdmulhh_laneq_s16): Likewise.
26866 (vqrdmulhs_laneq_s32): Likewise.
26867
26868 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26869
26870 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
26871 (vmuld_laneq_f64): Likewise.
26872 (vmuls_laneq_f32): Likewise.
26873 (vmul_n_f64): Likewise.
26874 (vmuld_lane_f64): Reimplement in C.
26875 (vmuls_lane_f32): Likewise.
26876
26877 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26878
26879 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
26880 to reservation.
26881 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
26882
26883 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26884
26885 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
26886 (rbitsi2): Likewise.
26887 (*arm_rev): Set predicable and predicable_short_it attributes.
26888
26889 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26890
26891 * convert.c (convert_to_integer): Guard transformation to lrint by
26892 -fno-math-errno.
26893
26894 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
26895
26896 * config/aarch64/aarch64-builtins.c
26897 (aarch64_simd_builtin_type_mode): Delete.
26898 (v8qi_UP): Remap to V8QImode.
26899 (v4hi_UP): Remap to V4HImode.
26900 (v2si_UP): Remap to V2SImode.
26901 (v2sf_UP): Remap to V2SFmode.
26902 (v1df_UP): Remap to V1DFmode.
26903 (di_UP): Remap to DImode.
26904 (df_UP): Remap to DFmode.
26905 (v16qi_UP):V16QImode.
26906 (v8hi_UP): Remap to V8HImode.
26907 (v4si_UP): Remap to V4SImode.
26908 (v4sf_UP): Remap to V4SFmode.
26909 (v2di_UP): Remap to V2DImode.
26910 (v2df_UP): Remap to V2DFmode.
26911 (ti_UP): Remap to TImode.
26912 (ei_UP): Remap to EImode.
26913 (oi_UP): Remap to OImode.
26914 (ci_UP): Map to CImode.
26915 (xi_UP): Remap to XImode.
26916 (si_UP): Remap to SImode.
26917 (sf_UP): Remap to SFmode.
26918 (hi_UP): Remap to HImode.
26919 (qi_UP): Remap to QImode.
26920 (aarch64_simd_builtin_datum): Make mode a machine_mode.
26921 (VAR1): Build builtin name.
26922 (aarch64_init_simd_builtins): Remove dead code.
26923
26924 2014-08-05 Roman Gareev <gareevroman@gmail.com>
26925
26926 * graphite-isl-ast-to-gimple.c:
26927 (set_options): New function.
26928 (scop_to_isl_ast): Add calling of set_options.
26929
26930 2014-08-05 Jakub Jelinek <jakub@redhat.com>
26931
26932 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
26933 (analyze_iv_to_split_insn): Don't initialize them.
26934 (get_ivts_expr): Removed.
26935 (allocate_basic_variable, insert_base_initialization): Use
26936 SET_SRC instead of *get_ivts_expr.
26937 (split_iv): Use &SET_SRC instead of get_ivts_expr.
26938
26939 2014-08-05 Roman Gareev <gareevroman@gmail.com>
26940
26941 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
26942 (translate_isl_ast_for_loop): Add checking of the
26943 flag_loop_parallelize_all.
26944 (ast_build_before_for): New function.
26945 (scop_to_isl_ast): Add checking of the
26946 flag_loop_parallelize_all.
26947 * graphite-dependences.c: Move the defenition of the
26948 scop_get_dependences from graphite-optimize-isl.c to this file.
26949 (apply_schedule_on_deps): Add checking of the ux's emptiness.
26950 (carries_deps): Add checking of the x's value.
26951 * graphite-optimize-isl.c: Move the defenition of the
26952 scop_get_dependences to graphite-dependences.c.
26953 * graphite-poly.h: Add declarations of scop_get_dependences
26954 and carries_deps.
26955
26956 2014-08-04 Rohit <rohitarulraj@freescale.com>
26957
26958 PR target/60102
26959 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
26960 names.
26961 (alt_reg_names): Likewise.
26962 (rs6000_dwarf_register_span): For SPE high registers, replace
26963 dwarf register numbers with GCC hard register numbers.
26964 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
26965 (rs6000_dbx_register_number): For SPE high registers, return dwarf
26966 register number for the corresponding GCC hard register number.
26967 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
26968 newly added GCC hard register numbers for SPE high registers.
26969 (DWARF_FRAME_REGISTERS): Likewise.
26970 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
26971 (DWARF_FRAME_REGNUM): Likewise.
26972 (FIXED_REGISTERS): Likewise.
26973 (CALL_USED_REGISTERS): Likewise.
26974 (CALL_REALLY_USED_REGISTERS): Likewise.
26975 (REG_ALLOC_ORDER): Likewise.
26976 (enum reg_class): Likewise.
26977 (REG_CLASS_NAMES): Likewise.
26978 (REG_CLASS_CONTENTS): Likewise.
26979 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
26980
26981 2014-08-04 Richard Biener <rguenther@suse.de>
26982
26983 * gimple-fold.h (gimple_fold_builtin): Remove.
26984 * gimple-fold.c (gimple_fold_builtin): Make static.
26985 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
26986 fold_stmt, not gimple_fold_builtin.
26987
26988 2014-08-04 Martin Liska <mliska@suse.cz>
26989
26990 * cgraph.h (csi_end_p): Removed.
26991 (csi_next): Likewise.
26992 (csi_node): Likewise.
26993 (csi_start): Likewise.
26994 (cgraph_node_in_set_p): Likewise.
26995 (cgraph_node_set_size): Likewise.
26996 (vsi_end_p): Likewise.
26997 (vsi_next): Likewise.
26998 (vsi_node): Likewise.
26999 (vsi_start): Likewise.
27000 (varpool_node_set_size): Likewise.
27001 (cgraph_node_set_nonempty_p): Likewise.
27002 (varpool_node_set_nonempty_p): Likewise.
27003 * cgraphunit.c (cgraph_process_new_functions): vec replaces
27004 cgraph_node_set.
27005 * ipa-inline-transform.c: Likewise.
27006 * ipa-utils.c (cgraph_node_set_new): Removed.
27007 (cgraph_node_set_add): Likewise.
27008 (cgraph_node_set_remove): Likewise.
27009 (cgraph_node_set_find): Likewise.
27010 (dump_cgraph_node_set): Likewise.
27011 (debug_cgraph_node_set): Likewise.
27012 (free_cgraph_node_set): Likewise.
27013 (varpool_node_set_new): Likewise.
27014 (varpool_node_set_add): Likewise.
27015 (varpool_node_set_remove): Likewise.
27016 (varpool_node_set_find): Likewise.
27017 (dump_varpool_node_set): Likewise.
27018 (free_varpool_node_set): Likewise.
27019 (debug_varpool_node_set): Likewise.
27020 * tree-emutls.c (struct tls_var_data):
27021 (emutls_index): Removed.
27022 (emutls_decl): Likewise.
27023 (gen_emutls_addr): Function implementation uses newly added
27024 hash_map<varpool_node *, tls_var_data>.
27025 (clear_access_vars): Likewise.
27026 (create_emultls_var): Likewise.
27027 (ipa_lower_emutls): Likewise.
27028 (reset_access): New function.
27029
27030 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27031
27032 * config/i386/i386.c (ix86_option_override_internal): Add
27033 PTA_RDRND and PTA_MOVBE for bdver4.
27034
27035 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27036 James Greenhalgh <james.greenhalgh@arm.com>
27037
27038 * doc/md.texi (clrsb): Document.
27039 (clz): Change reference to x into operand 1.
27040 (ctz): Likewise.
27041 (popcount): Likewise.
27042
27043 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27044
27045 PR target/61713
27046 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
27047 move to subtarget in serial version if result is ignored.
27048
27049 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27050 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27051
27052 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
27053 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
27054 (sched_analyze_insn): Update use of try_group_insn to
27055 sched_macro_fuse_insns.
27056 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
27057 arguments that are not conditional jumps.
27058
27059 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
27060
27061 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
27062 family information. Handle BTVER2 cpu with cpuid family value.
27063
27064 2014-08-04 Tom de Vries <tom@codesourcery.com>
27065
27066 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
27067 (glibc_2_11_or_earlier): Document effective-target keywords.
27068
27069 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
27070
27071 * ipa-devirt.c (odr_type_warn_count): Add type.
27072 (possible_polymorphic_call_targets): Set it.
27073 (ipa_devirt): Use it.
27074
27075 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
27076
27077 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
27078 Document.
27079 * ipa-devirt.c: Include hash-map.h
27080 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
27081 (clear_speculation): Break out of ...
27082 (get_class_context): ... here; speed up handling obviously useless
27083 speculations.
27084 (odr_type_warn_count, decl_warn_count): New structures.
27085 (final_warning_record): New structure.
27086 (final_warning_records): New static variable.
27087 (possible_polymorphic_call_targets): Cleanup handling of
27088 speculative info; do not build speculation when user do not care;
27089 record info about warnings when asked for.
27090 (add_decl_warning): New function.
27091 (type_warning_cmp): New function.
27092 (decl_warning_cmp): New function.
27093 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
27094 (gate): Enable pass when warnings are requested.
27095 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
27096 options.
27097
27098 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
27099
27100 * hash-map.h (default_hashmap_traits::mark_key_deleted):
27101 Fix cast.
27102 (hash_map::remove): New method.
27103 (hash_map::traverse): New method.
27104 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
27105 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
27106 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
27107 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
27108 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
27109 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
27110 pointer_map.
27111
27112 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
27113
27114 * hash-set.h: new File.
27115 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
27116 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
27117 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
27118 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
27119 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
27120 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
27121 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
27122 varpool.c: Use hash_set instead of pointer_set.
27123
27124 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
27125
27126 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
27127
27128 2014-08-01 Jiong Wang <jiong.wang@arm.com>
27129
27130 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
27131 for frame access when strict_p is false.
27132
27133 2014-08-01 Renlin Li <renlin.li@arm.com>
27134 2014-08-01 Jiong Wang <jiong.wang@arm.com>
27135
27136 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
27137 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
27138 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
27139 Declaration.
27140 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
27141 predicate.
27142 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
27143 aarch64_mem_pair_offset.
27144
27145 2014-08-01 Jiong Wang <jiong.wang@arm.com>
27146
27147 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
27148 offset.
27149 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
27150 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
27151
27152 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
27153
27154 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
27155
27156 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
27157
27158 PR regression/61510
27159 * cgraphunit.c (analyze_functions): Use get_create rather than get
27160 for decls which are clones of abstract functions.
27161
27162 2014-08-01 Martin Liska <mliska@suse.cz>
27163
27164 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
27165 * ipa-prop.h (count_formal_params): Global function created from static.
27166 * ipa-prop.c (count_formal_params): Likewise.
27167 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
27168 profiles for semantically equivalent functions.
27169 * passes.c (do_per_function): If we load body of a function
27170 during WPA, this condition should behave same.
27171 * varpool.c (ctor_for_folding): More tolerant assert for variable
27172 aliases created during WPA.
27173
27174 2014-08-01 Martin Liska <mliska@suse.cz>
27175
27176 * doc/invoke.texi (Options That Control Optimization): Documentation
27177 for -foptimize-strlen introduced. Optimization levels default options
27178 fixed.
27179
27180 2014-08-01 Jakub Jelinek <jakub@redhat.com>
27181
27182 * opts.c (common_handle_option): Handle -fsanitize=alignment.
27183 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
27184 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
27185 type to bool.
27186 * stor-layout.h (min_align_of_type): New prototype.
27187 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
27188 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
27189 check.
27190 * ubsan.c: Include builtins.h.
27191 (ubsan_expand_bounds_ifn): Change return type to bool,
27192 always return true.
27193 (ubsan_expand_null_ifn): Change return type to bool, change
27194 argument to gimple_stmt_iterator *. Handle both null and alignment
27195 sanitization, take type from ckind argument's type rather than
27196 first argument.
27197 (instrument_member_call): Removed.
27198 (instrument_mem_ref): Remove t argument, add mem and base arguments.
27199 Handle both null and alignment sanitization, don't say whole
27200 struct access is member access. Build 3 argument IFN_UBSAN_NULL
27201 call instead of 2 argument.
27202 (instrument_null): Adjust instrument_mem_ref caller. Don't
27203 instrument calls here.
27204 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
27205 like SANITIZE_NULL.
27206 * stor-layout.c (min_align_of_type): New function.
27207 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
27208 Or it into SANITIZE_UNDEFINED.
27209 * doc/invoke.texi (-fsanitize=alignment): Document.
27210
27211 2014-07-31 Andi Kleen <ak@linux.intel.com>
27212
27213 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
27214
27215 2014-07-31 Andi Kleen <ak@linux.intel.com>
27216
27217 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
27218 inchash.
27219 (vn_reference_compute_hash): Dito.
27220 (vn_nary_op_compute_hash): Dito.
27221 (vn_phi_compute_hash): Dito.
27222 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
27223
27224 2014-07-31 Andi Kleen <ak@linux.intel.com>
27225
27226 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
27227 Rename to inchash:add_expr_commutative. Convert to inchash.
27228 (iterative_hash_hashable_expr): Rename to
27229 inchash:add_hashable_expr. Convert to inchash.
27230 (avail_expr_hash): Dito.
27231
27232 2014-07-31 Andi Kleen <ak@linux.intel.com>
27233
27234 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
27235 Convert to inchash.
27236
27237 2014-07-31 Andi Kleen <ak@linux.intel.com>
27238
27239 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
27240
27241 2014-07-31 Andi Kleen <ak@linux.intel.com>
27242
27243 * Makefile.in (OBJS): Add rtlhash.o
27244 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
27245 (loc_checksum): Dito.
27246 (loc_checksum_ordered): Dito.
27247 (hash_loc_operands): Dito.
27248 (hash_locs): Dito.
27249 (hash_loc_list): Dito.
27250 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
27251 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
27252 * rtlhash.c: New file.
27253 * rtlhash.h: New file.
27254
27255 2014-07-31 Andi Kleen <ak@linux.intel.com>
27256
27257 * inchash.h (inchash): Change inchash class to namespace.
27258 (class hash): ... Rename from inchash.
27259 (add_object): Move from macro to class template.
27260 * lto-streamer-out.c (hash_tree): Change inchash
27261 to inchash::hash.
27262 * tree.c (build_type_attribute_qual_variant): Dito.
27263 (type_hash_list): Dito.
27264 (attribute_hash_list): Dito.
27265 (iterative_hstate_expr): Rename to inchash::add_expr
27266 (build_range_type_1): Change inchash to inchash::hash
27267 and use hash::add_expr.
27268 (build_array_type_1): Dito.
27269 (build_function_type): Dito
27270 (build_method_type_directly): Dito.
27271 (build_offset_type): Dito.
27272 (build_complex_type): Dito.
27273 (make_vector_type): Dito.
27274 * tree.h (iterative_hash_expr): Dito.
27275
27276 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
27277
27278 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
27279
27280 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
27281
27282 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
27283 correct alphabetical position.
27284 (vpaddd_f64): Rewrite using builtins.
27285 (vpaddd_s64): Move to correct alphabetical position.
27286 (vpaddd_u64): New.
27287
27288 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
27289
27290 PR target/61844
27291 * config/sh/sh.c (sh_legitimate_address_p,
27292 sh_legitimize_reload_address): Handle reg+reg address modes when
27293 ALLOW_INDEXED_ADDRESS is false.
27294 * config/sh/predicates.md (general_movsrc_operand,
27295 general_movdst_operand): Likewise.
27296
27297 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
27298
27299 * config/aarch64/aarch64-builtins.c
27300 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
27301 BYTES_BIG_ENDIAN.
27302
27303 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
27304
27305 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
27306 the generated mask based on BYTES_BIG_ENDIAN.
27307 (aarch64_simd_check_vect_par_cnst_half): New.
27308 * config/aarch64/aarch64-protos.h
27309 (aarch64_simd_check_vect_par_cnst_half): New.
27310 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
27311 the check out to aarch64_simd_check_vect_par_cnst_half.
27312 (vect_par_cnst_lo_half): Likewise.
27313 * config/aarch64/aarch64-simd.md
27314 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
27315 (move_hi_quad_<mode>): Always generate a low mask.
27316
27317 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27318
27319 * doc/invoke.texi (AVR Options): Add documentation about
27320 __AVR_DEVICE_NAME__ built-in macro.
27321
27322 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
27323
27324 PR target/61948
27325 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
27326 constraints are satisfied.
27327 (<shift>di3_neon): Likewise.
27328
27329 2014-07-31 Richard Biener <rguenther@suse.de>
27330
27331 PR tree-optimization/61964
27332 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
27333 by structural equality.
27334
27335 2014-07-31 Yury Gribov <y.gribov@samsung.com>
27336
27337 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
27338 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
27339 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
27340 New enums.
27341 * gcc.c (sanitize_spec_function): Support new option.
27342 (SANITIZER_SPEC): Remove now redundant check.
27343 * opts.c (common_handle_option): Support new option.
27344 (finish_options): Check for incompatibilities.
27345 * toplev.c (process_options): Split userspace-specific checks.
27346
27347 2014-07-31 Richard Biener <rguenther@suse.de>
27348
27349 * lto-streamer.h (struct output_block): Remove global.
27350 (struct data_in): Remove labels, num_named_labels and
27351 num_unnamed_labels.
27352 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
27353 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
27354
27355 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
27356
27357 PR c++/60517
27358 * common.opt (-Wreturn-local-addr): Moved from c.opt.
27359 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
27360 (isolate_path): New argument to avoid inserting a trap.
27361 (find_implicit_erroneous_behaviour): Handle returning the address
27362 of a local variable.
27363 (find_explicit_erroneous_behaviour): Likewise.
27364
27365 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
27366
27367 PR lto/61868
27368 * toplev.c (init_random_seed): Move piece of code never called to
27369 set_random_seed.
27370 (set_random_seed): see above.
27371
27372 2014-07-31 Tom de Vries <tom@codesourcery.com>
27373
27374 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
27375
27376 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
27377
27378 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
27379 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
27380
27381 2014-07-31 Richard Biener <rguenther@suse.de>
27382
27383 * data-streamer.h (streamer_write_data_stream): Declare here,
27384 renamed from ...
27385 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
27386 * lto-cgraph.c (lto_output_node): Adjust.
27387 (lto_output_varpool_node): Likewise.
27388 * data-streamer-out.c (streamer_string_index): Likewise.
27389 (streamer_write_data_stream, lto_append_block): Move from ...
27390 * lto-section-out.c (lto_output_data_stream,
27391 lto_append_block): ... here.
27392
27393 2014-07-30 Mike Stump <mikestump@comcast.net>
27394
27395 * configure.ac: Also check for popen.
27396 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
27397 * configure: Regenerate.
27398 * config.in: Regenerate.
27399
27400 2014-07-30 Martin Jambor <mjambor@suse.cz>
27401
27402 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
27403 parameter to gimple.
27404
27405 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27406
27407 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
27408 address as second parameter to __tpf_eh_return routine.
27409
27410 2014-07-30 Jiong Wang <jiong.wang@arm.com>
27411
27412 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
27413 Thumb2.
27414
27415 2014-07-30 Tom Tromey <tromey@redhat.com>
27416
27417 PR c/59855
27418 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
27419 * doc/extend.texi (Type Attributes): Document designated_init
27420 attribute.
27421
27422 2014-07-30 Roman Gareev <gareevroman@gmail.com>
27423
27424 * graphite-isl-ast-to-gimple.c:
27425 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
27426 (gcc_expression_from_isl_expression): Pass type to
27427 gcc_expression_from_isl_ast_expr_id.
27428
27429 2014-07-30 Richard Biener <rguenther@suse.de>
27430
27431 * lto-streamer.h (lto_write_data): New function.
27432 * langhooks.c (lhd_append_data): Do not free block.
27433 * lto-section-out.c (lto_write_data): New function writing
27434 raw data to the current section.
27435 (lto_write_stream): Adjust for langhook semantic change.
27436 (lto_destroy_simple_output_block): Write header directly.
27437 * lto-opts.c (lto_write_options): Write options directly.
27438 * lto-streamer-out.c (produce_asm): Write heaeder directly.
27439 (lto_output_toplevel_asms): Likewise.
27440 (copy_function_or_variable): Copy data directly.
27441 (write_global_references): Output index table directly.
27442 (lto_output_decl_state_refs): Likewise.
27443 (write_symbol): Write data directly.
27444 (produce_symtab): Adjust.
27445 (produce_asm_for_decls): Output header and refs directly.
27446
27447 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
27448
27449 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
27450 to speculative_targets
27451 (get_class_context): Fix handling of contextes without outer type;
27452 avoid matching non-polymorphic types in LTO.
27453 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
27454 parameter to speculative_targetsp; handle speculation.
27455 (dump_possible_polymorphic_call_targets): Update dumping.
27456
27457 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
27458
27459 * common.opt (Wodr): Enable by default.
27460
27461 2014-07-29 Olivier Hainque <hainque@adacore.com>
27462
27463 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
27464
27465 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
27466
27467 PR bootstrap/61914
27468 * gengtype.c (strtoken): New function.
27469 (create_user_defined_type): Replace strtok with strtoken.
27470
27471 2014-07-29 Nathan Sidwell <nathan@acm.org>
27472
27473 * gcov-io.c (gcov_var): Make hidden.
27474 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
27475 (gcov_do_dump): Declare.
27476 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
27477
27478 2014-07-29 Martin Jambor <mjambor@suse.cz>
27479
27480 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
27481 parameter to gimple.
27482 (sra_modify_assign): Likewise.
27483
27484 2014-07-29 Richard Biener <rguenther@suse.de>
27485
27486 PR middle-end/52478
27487 * expr.c (expand_expr_real_2): Revert last change.
27488
27489 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
27490
27491 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
27492 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
27493 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
27494 call.
27495 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
27496 (contains_type_p): Forward declare.
27497 (polymorphic_call_target_hasher::hash): Hash speculative info.
27498 (polymorphic_call_target_hasher::equal): Compare speculative info.
27499 (get_class_context): Handle speuclation.
27500 (contains_type_p): Update.
27501 (get_polymorphic_call_info_for_decl): Update.
27502 (walk_ssa_copies): Break out from ...
27503 (get_polymorphic_call_info): ... here; set speculative context
27504 before giving up.
27505 * ipa-prop.c (ipa_write_indirect_edge_info,
27506 ipa_read_indirect_edge_info): Stream speculative context.
27507 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
27508 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
27509 SPECULATIVE_MAYBE_DERIVED_TYPE).
27510 (possible_polymorphic_call_targets overriders): Update.
27511 (dump_possible_polymorphic_call_targets overriders): Update.
27512 (dump_possible_polymorphic_call_target_p overriders): Update.
27513
27514 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
27515
27516 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
27517 ipa-devirt path; fix thinko there.
27518
27519 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
27520
27521 * config/i386/i386.c (ix86_return_in_memory): Replace one
27522 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
27523
27524 2014-07-28 Marek Polacek <polacek@redhat.com>
27525
27526 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
27527
27528 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
27529
27530 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
27531 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
27532 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
27533 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
27534 (USE_LD_AS_NEEDED): Likewise.
27535 (ASM_APP_ON): Likewise.
27536 (ASM_APP_OFF): Likewise.
27537 (TARGET_POSIX_IO): Likewise.
27538 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
27539 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
27540 (USE_LD_AS_NEEDED): Likewise.
27541 (ASM_APP_ON): Likewise.
27542 (ASM_APP_OFF): Likewise.
27543 (TARGET_POSIX_IO): Likewise.
27544
27545 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
27546
27547 PR middle-end/61734
27548 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
27549 operators other than the equality operators.
27550
27551 2014-07-28 Richard Biener <rguenther@suse.de>
27552
27553 PR middle-end/52478
27554 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
27555 sure to register SImode ones, not only >= word_mode ones.
27556 * expr.c (expand_expr_real_2): When expanding -ftrapv
27557 binops do not use OPTAB_LIB_WIDEN.
27558
27559 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
27560
27561 PR middle-end/61919
27562 * tree-outof-ssa.c (insert_partition_copy_on_edge)
27563 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
27564 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
27565 inserting them in the insn stream.
27566
27567 2014-07-28 Marek Polacek <polacek@redhat.com>
27568
27569 PR middle-end/61913
27570 * common.opt (Wodr): Add Var.
27571
27572 2014-07-28 Richard Biener <rguenther@suse.de>
27573
27574 PR tree-optimization/61921
27575 * tree-ssa-structalias.c (create_variable_info_for_1): Check
27576 if there is a varpool node before dereferencing it.
27577
27578 2014-07-28 Roman Gareev <gareevroman@gmail.com>
27579
27580 * graphite-sese-to-poly.c:
27581 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
27582 id of the pbb), which contains pointer to the pbb1.
27583
27584 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
27585
27586 2014-07-28 Roman Gareev <gareevroman@gmail.com>
27587
27588 * graphite-isl-ast-to-gimple.c:
27589 (graphite_create_new_guard): New function.
27590 (translate_isl_ast_node_if): New function.
27591 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
27592
27593 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
27594
27595 2014-07-27 Anthony Green <green@moxielogic.com>
27596
27597 * config.gcc: Add moxie-*-moxiebox* configuration.
27598 * config/moxie/moxiebox.h: New file.
27599
27600 2014-07-26 Andrew Pinski <apinski@cavium.com>
27601
27602 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
27603 from the read only register.
27604
27605 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
27606
27607 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
27608 as the allocation class if it isn't likely to be spilled.
27609
27610 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
27611
27612 * rtl.h (tls_referenced_p): Declare.
27613 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
27614 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
27615 (mips_cannot_force_const_mem): Use tls_referenced_p.
27616 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
27617 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
27618 instead of pa_tls_referenced_p.
27619 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
27620 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
27621 (pa_legitimate_constant_p): Likewise.
27622 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
27623 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
27624 (rs6000_cannot_force_const_mem, rs6000_emit_move)
27625 (rs6000_address_for_altivec): Use tls_referenced_p instead of
27626 rs6000_tls_referenced_p.
27627 (rs6000_tls_symbol_ref_1): Delete.
27628
27629 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
27630
27631 PR target/44551
27632 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
27633 Optimize inverse of a VEC_CONCAT.
27634
27635 2014-07-25 Xinliang David Li <davidxl@google.com>
27636
27637 * params.def: New parameter.
27638 * coverage.c (get_coverage_counts): Check new flag.
27639 (coverage_compute_profile_id): Check new flag.
27640 (coverage_begin_function): Check new flag.
27641 (coverage_end_function): Check new flag.
27642 * value-prof.c (coverage_node_map_initialized_p): New function.
27643 (init_node_map): Populate map with all functions.
27644 * doc/invoke.texi: Document new parameter.
27645
27646 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
27647 Richard Biener <rguenther@suse.de>
27648
27649 * lto-streamer-out.c (struct sccs): Turn to ...
27650 (class DFS): ... this one; refactor the DFS walk so it can
27651 be re-done on per-SCC basis.
27652 (DFS::DFS): New constructor.
27653 (DFS::~DFS): New destructor.
27654 (hash_tree): Add new MAP argument holding in-SCC hash values;
27655 remove POINTER_TYPE hashing hack.
27656 (scc_entry_compare): Rename to ...
27657 (DFS::scc_entry_compare): ... this one.
27658 (hash_scc): Rename to ...
27659 (DFS::hash_scc): ... this one; pass output_block instead
27660 of streamer_cache; work harder to get unique and stable SCC
27661 hashes.
27662 (DFS_write_tree): Rename to ...
27663 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
27664 (lto_output_tree): Update.
27665
27666 2014-07-25 Andi Kleen <ak@linux.intel.com>
27667
27668 * lto-streamer-out.c (hash_tree): Convert to inchash.
27669
27670 2014-07-25 Andi Kleen <ak@linux.intel.com>
27671
27672 * tree.c (build_type_attribute_qual_variant): Use inchash.
27673 (type_hash_list): Dito.
27674 (attribute_hash_list): Dito
27675 (iterative_hstate_expr): Dito.
27676 (iterative_hash_expr): Dito.
27677 (build_range_type_1): Dito.
27678 (build_array_type_1): Dito.
27679 (build_function_type): Dito.
27680 (build_method_type_directly): Dito.
27681 (build_offset_type): Dito.
27682 (build_complex_type): Dito.
27683 (make_vector_type): Dito.
27684 * tree.h (iterative_hash_expr): Add compat wrapper.
27685 (iterative_hstate_expr): Add.
27686
27687 2014-07-25 Andi Kleen <ak@linux.intel.com>
27688
27689 * Makefile.in (OBJS): Add inchash.o.
27690 (PLUGIN_HEADERS): Add inchash.h.
27691 * ipa-devirt.c: Include inchash.h.
27692 * lto-streamer-out.c: Dito.
27693 * tree-ssa-dom.c: Dito.
27694 * tree-ssa-pre.c: Dito.
27695 * tree-ssa-sccvn.c: Dito.
27696 * tree-ssa-tail-merge.c: Dito.
27697 * asan.c: Dito.
27698 * tree.c (iterative_hash_hashval_t): Move to ...
27699 (iterative_hash_host_wide_int): Move to ...
27700 * inchash.c: Here. New file.
27701 * tree.h (iterative_hash_hashval_t): Move to ...
27702 (iterative_hash_host_wide_int): Move to ...
27703 * inchash.h: Here. New file.
27704
27705 2014-07-25 Richard Biener <rguenther@suse.de>
27706
27707 PR middle-end/61762
27708 PR middle-end/61894
27709 * fold-const.c (native_encode_int): Add and handle offset
27710 parameter to do partial encodings of expr.
27711 (native_encode_fixed): Likewise.
27712 (native_encode_real): Likewise.
27713 (native_encode_complex): Likewise.
27714 (native_encode_vector): Likewise.
27715 (native_encode_string): Likewise.
27716 (native_encode_expr): Likewise.
27717 * fold-const.c (native_encode_expr): Add offset parameter
27718 defaulting to -1.
27719 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
27720 (fold_ctor_reference): Handle all reads from tcc_constant
27721 ctors.
27722
27723 2014-07-25 Richard Biener <rguenther@suse.de>
27724
27725 * tree-inline.c (estimate_move_cost): Mark speed_p argument
27726 as possibly unused.
27727
27728 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27729
27730 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
27731
27732 2014-07-24 Kyle McMartin <kyle@redhat.com>
27733
27734 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
27735
27736 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27737
27738 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
27739 Add prototype.
27740 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
27741 function.
27742 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
27743 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
27744 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
27745
27746 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27747
27748 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
27749 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
27750 aggregate types. Instead, *all* aggregate types, except for single-
27751 element or homogeneous float/vector aggregates, are quadword-aligned
27752 if required by their type alignment. Issue -Wpsabi note when a type
27753 is now treated differently than before.
27754
27755 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27756
27757 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
27758 does not fit fully into floating-point registers, and there is still
27759 space in the register parameter area, use GPRs to pass those parts
27760 of the argument. Issue -Wpsabi note if any parameter is now treated
27761 differently than before.
27762 (rs6000_arg_partial_bytes): Update.
27763
27764 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
27765
27766 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
27767
27768 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
27769
27770 * rtl.h (target_rtl): Remove lang_dependent_initialized.
27771 * toplev.c (initialize_rtl): Don't use it. Move previously
27772 "language-dependent" calls to...
27773 (backend_init): ...here.
27774 (lang_dependent_init_target): Don't set lang_dependent_initialized.
27775 Assert that RTL initialization hasn't happend yet.
27776
27777 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
27778
27779 PR rtl-optimization/61629
27780 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
27781 they have already been initialized.
27782
27783 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
27784
27785 PR middle-end/61268
27786 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
27787 DECL_INCOMING_RTL and entry_parm.
27788 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
27789 * calls.c (load_register_parameters): Likewise argument values.
27790 (emit_library_call_value_1, store_one_arg): Likewise argument
27791 save areas.
27792 * config/i386/i386.c (assign_386_stack_local): Likewise the local
27793 stack slot.
27794 * explow.c (validize_mem): Modify the argument in-place.
27795
27796 2014-07-24 Jiong Wang <jiong.wang@arm.com>
27797
27798 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
27799 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
27800
27801 2014-07-24 Jiong Wang <jiong.wang@arm.com>
27802
27803 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
27804 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
27805
27806 2014-07-24 Jiong Wang <jiong.wang@arm.com>
27807
27808 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
27809 (aarch64_save_callee_saves): New parameter "skip_wb".
27810 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
27811
27812 2014-07-24 Jiong Wang <jiong.wang@arm.com>
27813
27814 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
27815 "wb_candidate2".
27816 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
27817
27818 2014-07-24 Roman Gareev <gareevroman@gmail.com>
27819
27820 * graphite-isl-ast-to-gimple.c:
27821 (graphite_create_new_loop): Add calling of isl_id_free to properly
27822 decrement reference counts.
27823
27824 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
27825
27826 2014-07-24 Martin Liska <mliska@suse.cz>
27827 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
27828 function used.
27829 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
27830 (rs6000_code_end): Likewise.
27831
27832 2014-07-24 Martin Liska <mliska@suse.cz>
27833
27834 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
27835 symtab_node funtion used.
27836 (rs6000_xcoff_declare_object_name): Likewise.
27837
27838 2014-07-24 Martin Liska <mliska@suse.cz>
27839
27840 * cgraphunit.c (compile): Correct function used.
27841
27842 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
27843
27844 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
27845 as non-indexable.
27846
27847 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
27848
27849 PR lto/61802
27850 * varasm.c (bss_initializer_p): Handle offlined ctors.
27851 (align_variable, get_variable_align): Likewise.
27852 (make_decl_one_only): Likewise.
27853 (default_binds_local_p_1): Likewise.
27854 (decl_binds_to_current_def_p): Likewise.
27855 (get_variable_section): Get constructor if it is offlined.
27856 (assemble_variable_contents): Sanity check that the caller
27857 streamed in the ctor in LTO.
27858
27859 2014-07-24 Roman Gareev <gareevroman@gmail.com>
27860
27861 * graphite-isl-ast-to-gimple.c:
27862 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
27863 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
27864 isl_ast_op_pdiv_r to the different case.
27865
27866 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
27867
27868 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27869
27870 PR middle-end/61876
27871 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
27872 when flag_errno_math is on.
27873
27874 2014-07-24 Martin Liska <mliska@suse.cz>
27875
27876 * cgraph.h (varpool_node):
27877 (availability get_availability (void)):
27878 created from cgraph_variable_initializer_availability
27879 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
27880 created from: cgraph_variable_initializer_availability
27881 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
27882 (void finalize_named_section_flags (void)):
27883 created from varpool_finalize_named_section_flags
27884 (bool assemble_decl (void)): created from varpool_assemble_decl
27885 (void analyze (void)): created from varpool_analyze_node
27886 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
27887 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
27888 (void remove_initializer (void)): created from varpool_remove_initializer
27889 (tree get_constructor (void)): created from varpool_get_constructor
27890 (bool externally_visible_p (void)): created from varpool_externally_visible_p
27891 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
27892 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
27893 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
27894 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
27895 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
27896 (static bool output_variables (void)): created from varpool_output_variables
27897 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
27898 created from varpool_extra_name_alias
27899 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
27900 (static void dump_varpool (FILE *f)): created from dump_varpool
27901 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
27902 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
27903 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
27904 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
27905 (void assemble_aliases (void)): created from assemble_aliases
27906
27907 2014-07-24 Martin Liska <mliska@suse.cz>
27908
27909 * cgraph.h (symtab_node):
27910 (void register_symbol (void)): created from symtab_register_node
27911 (void remove (void)): created from symtab_remove_node
27912 (void dump (FILE *f)): created from dump_symtab_node
27913 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
27914 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
27915 (struct ipa_ref *add_reference (symtab_node *referred_node,
27916 enum ipa_ref_use use_type)): created from add_reference
27917 (struct ipa_ref *add_reference (symtab_node *referred_node,
27918 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
27919 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
27920 gimple stmt)): created from maybe_add_reference
27921 (bool semantically_equivalent_p (symtab_node *target)): created from
27922 symtab_semantically_equivalent_p
27923 (void remove_from_same_comdat_group (void)): created from
27924 remove_from_same_comdat_group
27925 (void add_to_same_comdat_group (symtab_node *old_node)): created from
27926 symtab_add_to_same_comdat_group
27927 (void dissolve_same_comdat_group_list (void)): created from
27928 symtab_dissolve_same_comdat_group_list
27929 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
27930 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
27931 created from symtab_alias_ultimate_target
27932 (inline symtab_node *next_defined_symbol (void)): created from
27933 symtab_next_defined_symbol
27934 (bool resolve_alias (symtab_node *target)): created from
27935 symtab_resolve_alias
27936 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
27937 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
27938 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
27939 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
27940 (void set_section (const char *section)): created from set_section_1
27941 (enum availability get_availability (void)): created from symtab_node_availability
27942 (void make_decl_local (void)): created from symtab_make_decl_local
27943 (bool real_symbol_p (void)): created from symtab_read_node
27944 (can_be_discarded_p (void)): created from symtab_can_be_discarded
27945 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
27946 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
27947 symtab_in_same_comdat_p;
27948 (bool address_taken_from_non_vtable_p (void)): created from
27949 address_taken_from_non_vtable_p
27950 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
27951 (static void dump_table (FILE *)): created from dump_symtab
27952 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
27953 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
27954 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
27955 symtab_used_from_object_file_p
27956 (void dump_base (FILE *)): created from dump_symtab_base
27957 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
27958 (void unregister (void)): created from symtab_unregister_node
27959 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
27960 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
27961 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
27962 symtab_nonoverwritable_alias_1
27963 * cgraph.h (cgraph_node):
27964 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
27965 created from cgraph_remove_node_and_inline_clones
27966 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
27967 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
27968 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
27969 (cgraph_node *function_symbol (enum availability *avail = NULL)):
27970 created from cgraph_function_node
27971 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
27972 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
27973 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
27974 created from cgraph_create_clone
27975 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
27976 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
27977 created from cgraph_create_virtual_clone
27978 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
27979 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
27980 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
27981 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
27982 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
27983 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
27984 created from cgraph_function_version_info
27985 (struct cgraph_function_version_info *insert_new_function_version (void)):
27986 created from insert_new_cgraph_node_version
27987 (struct cgraph_function_version_info *function_version (void)): created from
27988 get_cgraph_node_version
27989 (void analyze (void)): created from analyze_function
27990 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
27991 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
27992 tree real_alias) cgraph_add_thunk
27993 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
27994 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
27995 created from cgraph_function_or_thunk_node
27996 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
27997 created from expand_thunk
27998 (void reset (void)): created from cgraph_reset_node
27999 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
28000 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
28001 (void remove (void)): created from cgraph_remove_node
28002 (void dump (FILE *f)): created from dump_cgraph_node
28003 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
28004 (bool get_body (void)): created from cgraph_get_body
28005 (void release_body (void)): created from cgraph_release_function_body
28006 (void unnest (void)): created from cgraph_unnest_node
28007 (void make_local (void)): created from cgraph_make_node_local
28008 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
28009 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
28010 gcov_type count, int freq)): created from cgraph_create_edge
28011 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
28012 gcov_type count, int freq)): created from cgraph_create_indirect_edge
28013 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
28014 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
28015 created from cgraph_create_edge_including_clones
28016 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
28017 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
28018 (void remove_callers (void)): created from cgraph_node_remove_callers
28019 (void remove_callees (void)): created from cgraph_node_remove_callees
28020 (enum availability get_availability (void)): created from cgraph_function_body_availability
28021 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
28022 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
28023 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
28024 (void call_duplication_hooks (cgraph_node *node2)): created from
28025 cgraph_call_node_duplication_hooks
28026 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
28027 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
28028 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
28029 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
28030 (void call_function_insertion_hooks (void)):
28031 created from cgraph_call_function_insertion_hooks
28032 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
28033 (bool local_p (void)): created from cgraph_local_node
28034 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
28035 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
28036 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
28037 (inline bool only_called_directly_or_aliased_p (void)):
28038 created from cgraph_only_called_directly_or_aliased_p
28039 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
28040 created from cgraph_will_be_removed_from_program_if_no_direct_calls
28041 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
28042 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
28043 (bool can_remove_if_no_direct_calls_p (void)):
28044 created from cgraph_can_remove_if_no_direct_calls_p
28045 (inline bool has_gimple_body_p (void)):
28046 created from cgraph_function_with_gimple_body_p
28047 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
28048 (static void dump_cgraph (FILE *f)): created from dump_cgraph
28049 (static inline void debug_cgraph (void)): created from debug_cgraph
28050 (static void record_function_versions (tree decl1, tree decl2)):
28051 created from record_function_versions
28052 (static void delete_function_version (tree decl)):
28053 created from delete_function_version
28054 (static void add_new_function (tree fndecl, bool lowered)):
28055 created from cgraph_add_new_function
28056 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
28057 (static cgraph_node * create (tree decl)): created from cgraph_create_node
28058 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
28059 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
28060 (static cgraph_node *get_for_asmname (tree asmname)):
28061 created from cgraph_node_for_asm
28062 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
28063 created from cgraph_same_body_alias
28064 (static bool used_from_object_file_p_worker (cgraph_node *node,
28065 void *): new function
28066 (static bool non_local_p (cgraph_node *node, void *)):
28067 created from cgraph_non_local_node_p_1
28068 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
28069 created from verify_cgraph
28070 (static bool make_local (cgraph_node *node, void *)):
28071 created from cgraph_make_node_local
28072 (static cgraph_node *create_alias (tree alias, tree target)):
28073 created from cgraph_create_function_alias
28074 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
28075 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
28076 created from cgraph_create_edge_1
28077 * cgraph.h (varpool_node):
28078 (void remove (void)): created from varpool_remove_node
28079 (void dump (FILE *f)): created from dump_varpool_node
28080
28081 2014-07-24 Richard Biener <rguenther@suse.de>
28082
28083 PR ipa/61823
28084 * tree-ssa-structalias.c (create_variable_info_for_1):
28085 Use varpool_get_constructor.
28086 (create_variable_info_for): Likewise.
28087
28088 2014-07-24 Jiong Wang <jiong.wang@arm.com>
28089
28090 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
28091 subtract outgoing area size when restoring stack_pointer_rtx.
28092
28093 2014-07-24 Nick Clifton <nickc@redhat.com>
28094
28095 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
28096 that operations are taking place in parallel.
28097 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
28098
28099 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
28100
28101 * omp-low.c (extract_omp_for_data): Add missing break statement.
28102
28103 2014-07-24 Richard Biener <rguenther@suse.de>
28104
28105 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
28106 * tree-inline.c (estimate_move_cost): Add speed_p parameter
28107 and adjust MOVE_RATIO query accordingly.
28108 (estimate_num_insns): Adjust callers.
28109 * ipa-prop.c (ipa_populate_param_decls): Likewise.
28110 * ipa-cp.c (gather_context_independent_values,
28111 estimate_local_effects): Likewise.
28112 * ipa-split.c (consider_split): Likewise.
28113
28114 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
28115
28116 * config/i386/driver-i386.c: Remove names of unused arguments and
28117 unnecessary unused attributes.
28118 * config/i386/host-mingw32.c: Likewise.
28119 * config/i386/i386.c: Likewise.
28120 * config/i386/winnt-stubs.c: Likewise.
28121 * config/i386/winnt.c: Likewise.
28122
28123 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28124
28125 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
28126 (aarch64_gen_loadwb_pair): New helper function.
28127 (aarch64_expand_epilogue): Simplify code using new helper functions.
28128 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
28129
28130 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28131
28132 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
28133 (aarch64_gen_storewb_pair): New helper function.
28134 (aarch64_expand_prologue): Simplify code using new helper functions.
28135 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
28136
28137 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28138
28139 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
28140 Rename to aarch64_save_callee_saves, remove restore code.
28141 (aarch64_restore_callee_saves): New function.
28142
28143 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28144
28145 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
28146 (aarch64_save_callee_saves): New function to handle reg save
28147 for both core and vectore regs.
28148
28149 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28150
28151 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
28152 (aarch64_gen_store_pair): New helper function.
28153 (aarch64_save_or_restore_callee_save_registers)
28154 (aarch64_save_or_restore_fprs): Use new helper functions.
28155
28156 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28157
28158 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
28159 (aarch64_save_or_restore_callee_save_registers)
28160 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
28161
28162 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28163
28164 * config/aarch64/aarch64.c
28165 (aarch64_save_or_restore_callee_save_registers)
28166 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
28167
28168 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28169
28170 * config/aarch64/aarch64.c
28171 (aarch64_save_or_restore_callee_save_registers)
28172 (aarch64_save_or_restore_fprs): Remove 'increment'.
28173
28174 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28175
28176 * config/aarch64/aarch64.c
28177 (aarch64_save_or_restore_callee_save_registers)
28178 (aarch64_save_or_restore_fprs): Use register offset in
28179 cfun->machine->frame.reg_offset.
28180
28181 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28182
28183 * config/aarch64/aarch64.c
28184 (aarch64_save_or_restore_callee_save_registers)
28185 (aarch64_save_or_restore_fprs): Remove base_rtx.
28186
28187 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28188
28189 * config/aarch64/aarch64.c
28190 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
28191 to 'start_offset'. Remove local variable 'start_offset'.
28192
28193 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28194
28195 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
28196 type to HOST_WIDE_INT.
28197
28198 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28199
28200 * config/aarch64/aarch64.c (aarch64_expand_prologue)
28201 (aarch64_save_or_restore_fprs)
28202 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
28203
28204 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
28205
28206 * config/arm/t-rtems-eabi: Add
28207 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
28208 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
28209 mbig-endian/mthumb/march=armv7-r, and
28210 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
28211 multilibs.
28212
28213 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
28214 Chris Johns <chrisj@rtems.org>
28215 Joel Sherrill <joel.sherrill@oarcorp.com>
28216
28217 * config.gcc: Add nios2-*-rtems*.
28218 * config/nios2/rtems.h: New file.
28219 * gcc/config/nios2/t-rtems: New file.
28220
28221 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
28222
28223 PR target/61396
28224 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
28225 constant numbers, not general constants.
28226 (rs6000_expand_vector_init): Ditto.
28227
28228 2014-07-23 Nathan Sidwell <nathan@acm.org>
28229
28230 * gcov-tool.c (gcov_list): Declare here.
28231 (set_gcov_list): Remove.
28232 (gcov_output_files): Set gcov_list directly.
28233
28234 2014-07-23 Host Schirmeier <horst@schirmeier.com>
28235
28236 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
28237
28238 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28239
28240 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
28241 callee-saved registers are available for padding purpose
28242 and r3 is not mandatory, then prefer use those callee-saved
28243 instead of r3.
28244
28245 2014-07-23 Richard Biener <rguenther@suse.de>
28246
28247 * params.def (PARAM_MAX_COMBINE_INSNS): New.
28248 * combine.c: Include statistics.h and params.h.
28249 (combine_instructions): Guard three and four insn combines
28250 with max-combine-insns value. Record statistics for combines
28251 performed.
28252 * doc/invoke.texi (max-combine-insns): Document new param.
28253
28254 2014-07-23 Roman Gareev <gareevroman@gmail.com>
28255
28256 * graphite-isl-ast-to-gimple.c:
28257 (translate_isl_ast_node_block): New function.
28258 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
28259
28260 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
28261 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
28262
28263 2014-07-23 Roman Gareev <gareevroman@gmail.com>
28264
28265 * graphite-isl-ast-to-gimple.c:
28266 (get_max_schedule_dimensions): New function.
28267 (extend_schedule): Likewise.
28268 (generate_isl_schedule): Add calling of extend_schedule and
28269 get_max_schedule_dimensions.
28270
28271 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28272
28273 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
28274 (case UNSPEC): Handle UNSPEC_RBIT.
28275
28276 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28277
28278 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
28279 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
28280
28281 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28282
28283 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
28284
28285 2014-07-22 Roman Gareev <gareevroman@gmail.com>
28286
28287 * graphite-isl-ast-to-gimple.c:
28288 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
28289 (ivs_params_clear):
28290 (build_iv_mapping): New function.
28291 (translate_isl_ast_node_user): Likewise.
28292 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
28293
28294 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
28295 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
28296 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
28297
28298 2014-07-21 Bin Cheng <bin.cheng@arm.com>
28299
28300 PR target/55701
28301 * config/arm/arm.md (setmem): New pattern.
28302 * config/arm/arm-protos.h (struct tune_params): New fields.
28303 (arm_gen_setmem): New prototype.
28304 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
28305 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
28306 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
28307 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
28308 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
28309 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
28310 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
28311 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
28312 (arm_const_inline_cost): New function.
28313 (arm_block_set_max_insns): New function.
28314 (arm_block_set_non_vect_profit_p): New function.
28315 (arm_block_set_vect_profit_p): New function.
28316 (arm_block_set_unaligned_vect): New function.
28317 (arm_block_set_aligned_vect): New function.
28318 (arm_block_set_unaligned_non_vect): New function.
28319 (arm_block_set_aligned_non_vect): New function.
28320 (arm_block_set_vect, arm_gen_setmem): New functions.
28321
28322 2014-07-21 Bin Cheng <bin.cheng@arm.com>
28323
28324 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
28325
28326 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
28327
28328 PR target/61855
28329 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
28330 out of #ifdef __OPTIMIZE__.
28331
28332 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
28333
28334 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
28335 different trapping status if -fnon-call-exceptions is enabled.
28336
28337 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
28338
28339 * expr.c (store_field): Handle VOIDmode for calls that return values
28340 in multiple locations.
28341
28342 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28343
28344 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
28345 (altivec_vsldoi_<mode>): Likewise.
28346
28347 2014-07-20 Roman Gareev <gareevroman@gmail.com>
28348
28349 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
28350 to the number of characters in the line.
28351
28352 2014-07-20 Roman Gareev <gareevroman@gmail.com>
28353
28354 * graphite-isl-ast-to-gimple.c: Add using of
28355 build_nonstandard_integer_type instead of int128_integer_type_node.
28356
28357 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
28358
28359 * toplev.c (output_stack_usage): Adjust the location of the warning.
28360
28361 2014-07-19 Daniel Cederman <cederman@gaisler.com>
28362
28363 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
28364 (*membar_storeload): Disable for LEON3.
28365
28366 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
28367
28368 PR rtl-optimization/61461
28369 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
28370
28371 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
28372
28373 PR target/61794
28374 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
28375 Fix instruction constraint.
28376 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
28377
28378 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
28379
28380 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
28381
28382 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
28383
28384 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
28385 GNU coding standards.
28386 (nds32_register_move_cost): Likewise.
28387 (nds32_memory_move_cost): Likewise.
28388 (nds32_address_cost): Likewise.
28389
28390 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
28391
28392 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
28393
28394 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
28395
28396 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
28397 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
28398 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
28399 (HAVE_sync_compare_and_swapqi): Define.
28400 (HAVE_sync_compare_and_swaphi): Likewise.
28401 (HAVE_sync_compare_and_swapsi): Likewise.
28402
28403 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
28404
28405 * config/mips/p5600.md: Add missing cpu tests.
28406
28407 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28408
28409 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
28410 (vmla_f64): Likewise.
28411 (vfms_f64): Likewise.
28412 (vmls_f64): Likewise.
28413
28414 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28415
28416 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
28417 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
28418
28419 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28420
28421 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
28422 (vmlal_high_lane_s32): Likewise.
28423 (vmlal_high_lane_u16): Likewise.
28424 (vmlal_high_lane_u32): Likewise.
28425 (vmlsl_high_lane_s16): Likewise.
28426 (vmlsl_high_lane_s32): Likewise.
28427 (vmlsl_high_lane_u16): Likewise.
28428 (vmlsl_high_lane_u32): Likewise.
28429
28430 2014-07-17 Terry Guo <terry.guo@arm.com>
28431
28432 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
28433 (alus_reg): Renamed to alus_sreg.
28434 * config/arm/arm-fixed.md: Change type of non-dsp instructions
28435 from alu_reg to alu_sreg. Change type of dsp instructions from
28436 alu_reg to alu_dsp_reg.
28437 * config/arm/thumb1.md: Likewise.
28438 * config/arm/thumb2.md: Likewise.
28439 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
28440 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
28441 with alu_sreg and alus_sreg.
28442 * config/arm/arm1026ejs.md (alu_op): Likewise.
28443 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
28444 * config/arm/arm926ejs.md (9_alu_op): Likewise.
28445 * config/arm/fa526.md (526_alu_op): Likewise.
28446 * config/arm/fa606te.md (606te_alu_op): Likewise.
28447 * config/arm/fa626te.md (626te_alu_op): Likewise.
28448 * config/arm/fa726te.md (726te_alu_op): Likewise.
28449 * config/arm/fmp626.md (mp626_alu_op): Likewise.
28450 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
28451 alu_sreg, alu_dsp_reg and alus_sreg.
28452 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
28453 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
28454 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
28455 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
28456 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
28457 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
28458 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
28459 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
28460 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
28461 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
28462 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
28463 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
28464 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
28465 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
28466 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
28467 alus_reg to alus_sreg.
28468
28469 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
28470
28471 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
28472 infinity format.
28473
28474 2014-07-17 Richard Biener <rguenther@suse.de>
28475
28476 PR rtl-optimization/61801
28477 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
28478 don't set reg_pending_barrier if it appears in a debug-insn.
28479
28480 2014-07-16 DJ Delorie <dj@redhat.com>
28481
28482 * config/rx/rx.c (rx_option_override): Fix alignment values.
28483 (rx_align_for_label): Likewise.
28484
28485 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
28486
28487 PR target/61737.
28488 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
28489 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
28490 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
28491 functions.
28492 (cris_print_index, cris_print_operand, cris_constant_index_p)
28493 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
28494 (cris_address_cost): Ditto last CONSTANT_P.
28495 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
28496 callers changed. Yield cris_offsettable_symbol for non-PIC
28497 constant symbolic expressions including labels. Yield cris_unspec
28498 for all unspecs.
28499 (cris_expand_pic_call_address): New parameter MARKERP. Set its
28500 target to pic_offset_table_rtx for calls that will likely go
28501 through PLT, const0_rtx when they can't. All callers changed.
28502 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
28503 symbolic expressions to be PICified. Remove second, redundant,
28504 assert on can_create_pseudo_p returning non-zero. Use
28505 replace_equiv_address_nv, not replace_equiv_address, for final
28506 operand update.
28507 * config/cris/cris.md ("movsi"): Move variable t to pattern
28508 toplevel. Adjust assert for new cris_symbol_type member. Use
28509 CONSTANT_P instead of CONSTANT_ADDRESS_P.
28510 ("*movsi_internal") <case 9>: Make check for valid unspec operands
28511 for lapc stricter.
28512 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
28513 ("call", "call_value"): Use second incoming operand as a marker
28514 for pic-offset-table-register being used.
28515 ("*expanded_call_non_v32", "*expanded_call_v32")
28516 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
28517 second incoming operand to CALL, match cris_call_type_marker.
28518 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
28519 ("*expanded_call_side"): Ditto. Fix typo in comment.
28520 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
28521 CONSTANT_P.
28522 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
28523 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
28524 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
28525 users changed. Add members cris_offsettable_symbol and cris_unspec.
28526 (cris_symbol_type): Rename from cris_pic_symbol_type.
28527 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
28528 just CONSTANT_P.
28529 * config/cris/cris-protos.h (cris_symbol_type_of,
28530 cris_expand_pic_call_address): Adjust prototypes.
28531 (cris_legitimate_constant_p): New prototype.
28532
28533 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
28534 an existing tmake_file. Don't add t-slibgcc and t-linux.
28535
28536 2014-07-17 Jason Merrill <jason@redhat.com>
28537
28538 PR c++/61623
28539 * symtab.c (symtab_remove_from_same_comdat_group): Also
28540 set_comdat_group to NULL_TREE.
28541 (verify_symtab): Fix diagnostic.
28542
28543 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
28544
28545 PR target/61662
28546 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
28547
28548 2014-07-16 Dodji Seketeli <dodji@redhat.com>
28549
28550 Support location tracking for built-in macro tokens
28551 * input.h (is_location_from_builtin_token): New function declaration.
28552 * input.c (is_location_from_builtin_token): New function definition.
28553 * toplev.c (general_init): Tell libcpp what the pre-defined
28554 spelling location for built-in tokens is.
28555
28556 2014-07-16 Jakub Jelinek <jakub@redhat.com>
28557
28558 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
28559 on the FUNCTION_DECL.
28560
28561 2014-07-16 Richard Biener <rguenther@suse.de>
28562
28563 PR other/61782
28564 * doc/extend.texi (always_inline): Clarify.
28565
28566 2014-07-15 Eric Christopher <echristo@gmail.com>
28567
28568 * doc/invoke.texi (Link Options): Document -z option.
28569
28570 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
28571
28572 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
28573 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
28574
28575 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
28576
28577 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
28578
28579 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
28580
28581 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
28582 varpool_assemble_decl.
28583 * varpool.c (varpool_assemble_decl): Assert that node->definition is
28584 true.
28585
28586 2014-07-15 Michael Matz <matz@suse.de>
28587
28588 PR rtl-optimization/61772
28589 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
28590
28591 2014-07-15 Richard Biener <rguenther@suse.de>
28592
28593 * opts.c (default_options_table): Disable bit-ccp at -Og.
28594
28595 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
28596
28597 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
28598
28599 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
28600
28601 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
28602 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
28603 call langhook for unknown declaration.
28604 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
28605 * tree.h (DECL_ARGUMENTS): Update.
28606 * print-tree.c (print_node): Update.
28607 * tree-core.h (tree_decl_non_common): Remove arguments.
28608 (tree_function_decl): Add arguments.
28609
28610 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
28611
28612 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
28613
28614 2014-07-14 Richard Biener <rguenther@suse.de>
28615
28616 PR tree-optimization/61779
28617 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
28618 simplifying a condition.
28619
28620 2014-07-14 Richard Biener <rguenther@suse.de>
28621
28622 * builtins.c (c_strlen): Make only_value == 2 really only
28623 affect warning generation.
28624
28625 2014-07-14 Richard Biener <rguenther@suse.de>
28626
28627 PR tree-optimization/61757
28628 PR tree-optimization/61783
28629 PR tree-optimization/61787
28630 * tree-ssa-dom.c (record_equality): Revert canonicalization
28631 change and add comment.
28632 (propagate_rhs_into_lhs): Revert previous fix, removing
28633 loop depth restriction again.
28634
28635 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28636
28637 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
28638 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
28639 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
28640 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
28641 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
28642 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
28643 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
28644
28645 2014-07-14 Richard Biener <rguenther@suse.de>
28646
28647 * cgraph.h (decl_in_symtab_p): Make inline.
28648
28649 2014-07-14 Jakub Jelinek <jakub@redhat.com>
28650
28651 PR middle-end/61294
28652 * doc/invoke.texi (-Wmemset-transposed-args): Document.
28653
28654 PR target/61656
28655 * config/i386/i386.c (classify_argument): Don't merge classes above
28656 number of words.
28657
28658 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
28659
28660 * cgraph.h (symtab_node): Add nonzero_address.
28661 (decl_in_symtab_p): Break out from ...
28662 (symtab_get_node): ... here.
28663 * fold-const.c: Include cgraph.h
28664 (tree_single_nonzero_warnv_p): Use symtab to determine
28665 if symbol is non-zero.
28666 * symtab.c (symtab_node::nonzero_address): New method.
28667
28668 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
28669
28670 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
28671 forgotten in previous commit.
28672
28673 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
28674
28675 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
28676 on builtin types.
28677 * ipa-devirt.c: Include stor-layout.h and intl.h
28678 (odr_subtypes_equivalent_p): New function.
28679 (warn_odr): New function.
28680 (warn_type_mismatch): New function.
28681 (odr_types_equivalent_p): New function.
28682 (add_type_duplicate): Use it.
28683 * common.opt (Wodr): New flag.
28684 * doc/invoke.texi (Wodr): Document new warning.
28685
28686 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
28687
28688 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
28689 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
28690 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
28691 (varpool_get_constructor): Push CTORS_IN timevar.
28692 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
28693
28694 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
28695
28696 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
28697 Remove VOID_FTYPE_PUSHORT.
28698 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
28699 Change code to USHORT_FTYPE_VOID.
28700 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
28701 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
28702 (ix86_atomic_assign_expand_fenv): Update for
28703 __builtin_ia32_fnstsw changes.
28704 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
28705 (fnstsw): Change operand 0 to nonimmediate operand.
28706
28707 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
28708
28709 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
28710 (varpool_get_constructor): New function.
28711 (varpool_ctor_useable_for_folding_p): Break out from ...
28712 (ctor_for_folding): ... here; use varpool_get_constructor.
28713 (varpool_assemble_decl): Likewise.
28714 * lto-streamer.h (struct output_block): Turn cgraph_node
28715 to symbol filed.
28716 (lto_input_variable_constructor): Declare.
28717 * ipa-visibility.c (function_and_variable_visibility): Use
28718 varpool_get_constructor.
28719 * cgraph.h (varpool_get_constructor): Declare.
28720 (varpool_ctor_useable_for_folding_p): New function.
28721 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
28722 parameter; return error_mark_node for non-trivial constructors.
28723 (lto_write_tree_1, DFS_write_tree): Update use of
28724 get_symbol_initial_value.
28725 (output_function): Update initialization of symbol.
28726 (output_constructor): New function.
28727 (copy_function): Rename to ..
28728 (copy_function_or_variable): ... this one; handle vars too.
28729 (lto_output): Output variable sections.
28730 * lto-streamer-in.c (input_constructor): New function.
28731 (lto_read_body): Rename from ...
28732 (lto_read_body_or_constructor): ... this one; handle vars too.
28733 (lto_input_variable_constructor): New function.
28734 * ipa-prop.c (ipa_prop_write_jump_functions,
28735 ipa_prop_write_all_agg_replacement): Update.
28736 * lto-cgraph.c (compute_ltrans_boundary): Use it.
28737 (output_cgraph_opt_summary): Set symbol to NULL.
28738
28739 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
28740
28741 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
28742 non-polymorphic types.
28743 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
28744 * ipa-devirt.c (types_same_for_odr): Do not explode when one
28745 of types is not polymorphic.
28746
28747 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
28748
28749 * lra-constraints.c (remove_inheritance_pseudos): Process
28750 destination pseudo too.
28751
28752 2014-07-11 Rong Xu <xur@google.com>
28753
28754 * gcov-tool.c (gcov_output_files): Fix build error introduced in
28755 commit r212448.
28756
28757 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
28758
28759 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
28760 * config/avr/avr-devices.c (AVR_MCU): Same.
28761 (avr_mcu_types): add text start value to end of device list.
28762 * config/avr/avr-mcus.def: Add text section start for all devices.
28763 (ata5782): Add new avr5 device.
28764 (ata5831): Same.
28765 * config/avr/avr-tables.opt: Regenerate.
28766 * config/avr/avr.h: Add declaration for text section start handler.
28767 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
28768 SPEC functions.
28769 (LINK_SPEC): Include text section start handler to linker spec.
28770 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
28771 pass -Ttext option to linker if the text section start for the device
28772 is not zero.
28773 * config/avr/t-multilib: Regenerate.
28774 * doc/avr-mmcu.texi: Regenerate.
28775
28776 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
28777
28778 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
28779 * config/rs6000/aix52.h (LINK_SPEC): Same.
28780 * config/rs6000/aix53.h (LINK_SPEC): Same.
28781 * config/rs6000/aix61.h (LINK_SPEC): Same.
28782 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
28783
28784 2014-07-11 Roman Gareev <gareevroman@gmail.com>
28785
28786 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
28787 (graphite_verify): New function.
28788 (ivs_params_clear): New function.
28789 (gcc_expression_from_isl_ast_expr_id): New function.
28790 (gcc_expression_from_isl_expr_int): New function.
28791 (binary_op_to_tree): New function.
28792 (ternary_op_to_tree): New function.
28793 (unary_op_to_tree): New function.
28794 (nary_op_to_tree): New function.
28795 (gcc_expression_from_isl_expr_op): New function.
28796 (gcc_expression_from_isl_expression): New function.
28797 (graphite_create_new_loop): New function.
28798 (translate_isl_ast_for_loop): New function.
28799 (get_upper_bound): New function.
28800 (graphite_create_new_loop_guard): New function.
28801 (translate_isl_ast_node_for): New function.
28802 (translate_isl_ast): New function.
28803 (add_parameters_to_ivs_params): New function.
28804 (scop_to_isl_ast): New parameter ip.
28805 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
28806
28807 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
28808
28809 * config/xtensa/predicates.md (call expander): Update for
28810 DECL_SECTION_NAME being string.
28811
28812 2014-07-11 Richard Biener <rguenther@suse.de>
28813
28814 PR middle-end/61473
28815 * builtins.c (fold_builtin_memory_op): Inline memory moves that
28816 can be implemented with a single load followed by a single store.
28817 (c_strlen): Only warn when only_value is not 2.
28818
28819 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
28820
28821 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
28822
28823 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
28824
28825 PR target/61561
28826 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
28827 (*movhi_bytes): Likewise.
28828 (*arm_movqi_insn): Likewise.
28829
28830 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
28831
28832 PR target/56858
28833 * config/alpha/alpha.c: Include tree-pass.h, context.h
28834 and pass_manager.h.
28835 (pass_data_handle_trap_shadows): New pass.
28836 (pass_handle_trap_shadows::gate): New pass gate function.
28837 (make_pass_handle_trap_shadows): New function.
28838 (rest_of_handle_trap_shadows): Ditto.
28839
28840 (alpha_align_insns_1): Rename from alpha_align_insns.
28841 (pass_data_align_insns): New pass.
28842 (pass_align_insns::gate): New pass gate function.
28843 (make_pass_aling_insns): New function.
28844 (rest_of_align_insns): Ditto.
28845 (alpha_align_insns): Ditto.
28846
28847 (alpha_option_override): Declare handle_trap_shadows info
28848 and align_insns_info. Register handle_trap_shadows and align_insns
28849 passes here.
28850 (alpha_reorg): Do not call alpha_trap_shadows and
28851 alpha_align_insn from here.
28852
28853 (alpha_pad_function_end): Do not skip BARRIERs.
28854
28855 2014-07-10 Rong Xu <xur@google.com>
28856
28857 Add gcov-tool: an offline gcda profile processing tool support.
28858 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
28859 (gcov_is_error): Ditto.
28860 (gcov_read_string): Ditto.
28861 (gcov_read_sync): Ditto.
28862 * gcov-io.h: Move counter defines to gcov-counter.def.
28863 * gcov-dump.c (tag_counters): Use gcov-counter.def.
28864 * coverage.c: Ditto.
28865 * gcov-tool.c: Offline gcda profile processing tool.
28866 (unlink_gcda_file): Remove one gcda file.
28867 (unlink_profile_dir): Remove gcda files from the profile path.
28868 (gcov_output_files): Output gcda files to an output dir.
28869 (profile_merge): Merge two profiles in directory.
28870 (print_merge_usage_message): Print merge usage.
28871 (merge_usage): Print merge usage and exit.
28872 (do_merge): Driver for profile merge sub-command.
28873 (profile_rewrite): Rewrite profile.
28874 (print_rewrite_usage_message): Print rewrite usage.
28875 (rewrite_usage): Print rewrite usage and exit.
28876 (do_rewrite): Driver for profile rewrite sub-command.
28877 (print_usage): Print gcov-info usage and exit.
28878 (print_version): Print gcov-info version.
28879 (process_args): Process arguments.
28880 (main): Main routine for gcov-tool.
28881 * Makefile.in: Build and install gcov-tool.
28882 * gcov-counter.def: New file split from gcov-io.h.
28883 * doc/gcc.texi: Include gcov-tool.texi.
28884 * doc/gcov-tool.texi: Document for gcov-tool.
28885
28886 2014-07-10 Richard Biener <rguenther@suse.de>
28887
28888 PR tree-optimization/61757
28889 * tree-ssa-dom.c (loop_depth_of_name): Restore.
28890 (propagate_rhs_into_lhs): Revert part of last change.
28891
28892 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
28893
28894 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
28895 FUNCTION_DECLs.
28896
28897 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
28898
28899 PR middle-end/53590
28900 * function.c (allocate_struct_function): Revert r188667 change.
28901
28902 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
28903
28904 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
28905
28906 * doc/install.texi: Remove links to defunct package providers for
28907 Solaris.
28908
28909 2014-07-09 Tom de Vries <tom@codesourcery.com>
28910
28911 * final.c (get_call_fndecl): Declare.
28912 (self_recursive_call_p): New function.
28913 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
28914
28915 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
28916
28917 * ipa-devirt.c (record_node): Walk through aliases.
28918
28919 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
28920
28921 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
28922
28923 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
28924
28925 Revert:
28926 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
28927
28928 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
28929
28930 * ipa-visibility.c (function_and_variable_visibility): Remove
28931 temporary hack disabling local aliases on AIX.
28932
28933 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
28934
28935 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
28936 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
28937
28938 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
28939
28940 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
28941 * rs6000/rs6000.c: Inline output of .set instruction.
28942 (declare_alias_data): New struct.
28943 (rs6000_declare_alias): New function.
28944 (rs6000_xcoff_declare_function_name): Use it.
28945 (rs6000_xcoff_declare_object_name): New function.
28946 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
28947 (ASM_OUTPUT_DEF): Turn to empty definition.
28948
28949 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
28950
28951 PR bootstrap/61679
28952 * hash-table.h: use hash_table::value_type instead of
28953 Descriptor::value_type in the return types of several methods.
28954
28955 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
28956
28957 * tree-pass.h (pass_data): Remove has_execute member.
28958 * passes.c (execute_one_pass): Don't check pass->has_execute.
28959 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28960 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28961 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28962 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28963 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28964 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
28965 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
28966 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
28967 gimple-low.c, gimple-ssa-isolate-paths.c,
28968 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
28969 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
28970 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
28971 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
28972 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
28973 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
28974 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
28975 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
28976 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
28977 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
28978 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
28979 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
28980 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
28981 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28982 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28983 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28984 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28985 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28986 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28987 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28988 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28989 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28990 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
28991 web.c: Remove initializer for pass_data::has_execute.
28992
28993 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
28994
28995 * graphite-htab.h: Use hash_map instead of hash_table.
28996 * graphite-clast-to-gimple.c: Adjust.
28997 * passes.c: Use hash_map instead of hash_table.
28998 * sese.c: Likewise.
28999 * sese.h: Remove now unused code.
29000
29001 2014-07-08 Sriraman Tallam <tmsriram@google.com>
29002
29003 PR target/61599
29004 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
29005 than zero.
29006
29007 2014-07-08 Jakub Jelinek <jakub@redhat.com>
29008
29009 PR rtl-optimization/61673
29010 * combine.c (simplify_comparison): Test just mode's sign bit
29011 in tmode rather than the sign bit and any bits above it.
29012
29013 2014-07-08 Roman Gareev <gareevroman@gmail.com>
29014
29015 * graphite-isl-ast-to-gimple.c (generate_isl_context):
29016 Add __isl_give to the declaration.
29017 (generate_isl_schedule): Likewise.
29018 (scop_to_isl_ast): Likewise.
29019
29020 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29021
29022 * config/arm/arm.c (cortexa5_extra_costs): New table.
29023 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
29024
29025 2014-07-08 Jakub Jelinek <jakub@redhat.com>
29026
29027 PR tree-optimization/61725
29028 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
29029 range, use range_includes_zerop_p instead of integer_zerop on
29030 vr0->min, only use log2 of max if min is not negative.
29031
29032 2014-07-08 Richard Biener <rguenther@suse.de>
29033
29034 * tree-ssa-dom.h (loop_depth_of_name): Remove.
29035 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
29036 restriction on loop depth difference.
29037 (record_equality): Likewise.
29038 (propagate_rhs_into_lhs): Likewise. Simplify condition.
29039 (loop_depth_of_name): Remove.
29040 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
29041 restriction on loop depth difference.
29042 (init_copy_prop): Likewise.
29043
29044 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
29045
29046 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
29047 parameter.
29048 (walk_aliased_vdefs): Likewise.
29049 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
29050 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
29051 (detect_type_change_from_memory_writes): Check if entry was reached.
29052
29053 2014-07-08 Richard Biener <rguenther@suse.de>
29054
29055 PR tree-optimization/61681
29056 * tree-ssa-structalias.c (find_what_var_points_to): Expand
29057 NONLOCAL inside ESCAPED.
29058
29059 2014-07-08 Richard Biener <rguenther@suse.de>
29060
29061 PR tree-optimization/61680
29062 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29063 Handle properly all read-write dependences with group accesses.
29064
29065 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
29066
29067 PR tree-optimization/61576
29068 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
29069 block containing reduction statement is predecessor of phi basi block.
29070
29071 2014-07-08 Marek Polacek <polacek@redhat.com>
29072
29073 PR c/60226
29074 * fold-const.c (round_up_loc): Change the parameter type.
29075 Remove assert.
29076 * fold-const.h (round_up_loc): Adjust declaration.
29077 * stor-layout.c (finalize_record_size): Check for too large types.
29078
29079 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
29080
29081 * symtab.c: Include calls.h.
29082 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
29083
29084 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
29085
29086 * config/rs6000/rs6000.c (output_vec_const_move): Handle
29087 little-endian code generation.
29088 * config/rs6000/spe.md (spe_evmergehi): Rename to...
29089 (vec_perm00_v2si): ... this. Handle little-endian code generation.
29090 (spe_evmergehilo): Rename to...
29091 (vec_perm01_v2si): ... this. Handle little-endian code generation.
29092 (spe_evmergelo): Rename to...
29093 (vec_perm11_v2si): ... this. Handle little-endian code generation.
29094 (spe_evmergelohi): Rename to...
29095 (vec_perm10_v2si): ... this. Handle little-endian code generation.
29096 (spe_evmergehi, spe_evmergehilo): New expanders.
29097 (spe_evmergelo, spe_evmergelohi): Likewise.
29098 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
29099 (*frob_tf_ti): Likewise.
29100 (*frob_<mode>_di_2): Likewise.
29101 (*frob_tf_di_8_2): Likewise.
29102 (*frob_di_<mode>): Likewise.
29103 (*frob_ti_tf): Likewise.
29104 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
29105 (*frob_ti_<mode>_8_2): Likewise.
29106 (*frob_ti_tf_2): Likewise.
29107 (mov_si<mode>_e500_subreg0): Rename to...
29108 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
29109 endianness only.
29110 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
29111 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
29112 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
29113 the big endianness only.
29114 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
29115 (*mov_si<mode>_e500_subreg0_2): Rename to...
29116 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
29117 big big endianness only.
29118 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
29119 (*mov_si<mode>_e500_subreg4): Rename to...
29120 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
29121 endianness only.
29122 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
29123 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
29124 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
29125 the big endianness only.
29126 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
29127 pattern.
29128 (*mov_si<mode>_e500_subreg4_2): Rename to...
29129 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
29130 endianness only.
29131 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
29132 (*mov_sitf_e500_subreg8): Rename to...
29133 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
29134 endianness only.
29135 (*mov_sitf_e500_subreg8_le): New instruction pattern.
29136 (*mov_sitf_e500_subreg8_2): Rename to...
29137 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
29138 endianness only.
29139 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
29140 (*mov_sitf_e500_subreg12): Rename to...
29141 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
29142 endianness only.
29143 (*mov_sitf_e500_subreg12_le): New instruction pattern.
29144 (*mov_sitf_e500_subreg12_2): Rename to...
29145 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
29146 endianness only.
29147 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
29148
29149 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
29150
29151 * asan.c (instrument_strlen_call): Do not instrument first byte
29152 in strlen if already instrumented.
29153
29154 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29155
29156 * config/arm/arm.opt (mwords-little-endian): Delete.
29157 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
29158 of TARGET_LITTLE_WORDS.
29159 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
29160 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
29161 warning.
29162 * doc/invoke.texi: Remove references to -mwords-little-endian.
29163
29164 2014-07-07 Jakub Jelinek <jakub@redhat.com>
29165
29166 * expmed.c (struct init_expmed_rtl): Change all fields but
29167 pow2 and cint from struct rtx_def to rtx.
29168 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
29169 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
29170 at the end again.
29171
29172 2014-07-06 Marek Polacek <polacek@redhat.com>
29173
29174 PR c/6940
29175 * doc/invoke.texi: Document -Wsizeof-array-argument.
29176
29177 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
29178
29179 * wide-int.h (wide_int_storage): Change declaration from struct
29180 to class.
29181
29182 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
29183
29184 * cgraph.c (cgraph_create_indirect_edge): Update call of
29185 get_polymorphic_call_info.
29186 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
29187 (possible_polymorphic_call_targets): Add parameter call.
29188 (decl_maybe_in_construction_p): New predicate.
29189 (get_polymorphic_call_info): Add parameter call;
29190 use decl_maybe_in_construction_p.
29191 * gimple-fold.c (fold_gimple_assign): Update use of
29192 possible_polymorphic_call_targets.
29193 (gimple_fold_call): Likewise.
29194 * ipa-prop.c: Inlcude calls.h
29195 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
29196 (param_type_may_change_p): New predicate.
29197 (detect_type_change_from_memory_writes): Break out from ...
29198 (detect_type_change): ... this one; use param_type_may_change_p.
29199 (detect_type_change_ssa): Use param_type_may_change_p.
29200 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
29201
29202 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
29203
29204 PR target/49423
29205 * config/arm/arm-protos.h (arm_legitimate_address_p,
29206 arm_is_constant_pool_ref): Add prototypes.
29207 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
29208 (arm_is_constant_pool_ref) New function.
29209 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
29210 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
29211 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
29212 operand. Remove pool_range and neg_pool_range attributes.
29213 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
29214 pool_range and neg_pool_range attributes.
29215 * config/arm/constraints.md (Uh): New constraint.
29216 (Uq): Don't allow constant pool references.
29217
29218 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
29219
29220 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
29221 (move_lo_quad_internal_be_<mode>): Likewise.
29222 (move_lo_quad_<mode>): Convert to define_expand.
29223 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
29224 (aarch64_simd_move_hi_quad_be_<mode>): New.
29225 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
29226 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
29227 (aarch64_combinez_be<mode>): New.
29228 (aarch64_combine<mode>): Convert to define_expand.
29229 (aarch64_combine_internal<mode>): New.
29230 (aarch64_simd_combine<mode>): Remove bogus RTL description.
29231
29232 2014-07-04 Tom de Vries <tom@codesourcery.com>
29233
29234 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
29235 combination of earlyclobber and read/write modifiers.
29236
29237 2014-07-04 Tom de Vries <tom@codesourcery.com>
29238
29239 * config/aarch64/aarch64-simd.md
29240 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
29241
29242 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
29243
29244 PR target/61714
29245 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
29246
29247 2014-07-04 Jakub Jelinek <jakub@redhat.com>
29248
29249 PR middle-end/61654
29250 * cgraphunit.c (expand_thunk): Call free_dominance_info.
29251
29252 PR tree-optimization/61684
29253 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
29254 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
29255
29256 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
29257 Kito Cheng <kito@0xlab.org>
29258 Monk Chiang <sh.chiang04@gmail.com>
29259
29260 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
29261 (nds32_symbol_load_store_p): Move to ...
29262 (nds32_fp_as_gp_check_available): Move to ...
29263 * config/nds32/nds32-fp-as-gp.c: ... here.
29264 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
29265 extern declaration.
29266
29267 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
29268 Kito Cheng <kito@0xlab.org>
29269 Monk Chiang <sh.chiang04@gmail.com>
29270
29271 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
29272 (nds32_expand_store_multiple): Move to ...
29273 (nds32_expand_movmemqi): Move to ...
29274 * config/nds32/nds32-memory-manipulation.c: ... here.
29275
29276 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
29277 Kito Cheng <kito@0xlab.org>
29278 Monk Chiang <sh.chiang04@gmail.com>
29279
29280 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
29281 (nds32_output_casesi_pc_relative): Move to ...
29282 (nds32_output_casesi): Move to ...
29283 (nds32_mem_format): Move to ...
29284 (nds32_output_16bit_store): Move to ...
29285 (nds32_output_16bit_load): Move to ...
29286 (nds32_output_32bit_store): Move to ...
29287 (nds32_output_32bit_load): Move to ...
29288 (nds32_output_32bit_load_s): Move to ...
29289 (nds32_output_stack_push): Move to ...
29290 (nds32_output_stack_pop): Move to ...
29291 * config/nds32/nds32-md-auxiliary.c: ... here.
29292
29293 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
29294 Ling-Hua Tseng <uranus@tinlans.org>
29295
29296 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
29297 the purpose of this file.
29298
29299 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
29300 Kito Cheng <kito@0xlab.org>
29301 Monk Chiang <sh.chiang04@gmail.com>
29302
29303 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
29304 (nds32_address_cost): Move implementation to ...
29305 * config/nds32/nds32-cost.c: ... here.
29306 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
29307 (nds32_address_cost_impl): Declare.
29308
29309 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
29310 Kito Cheng <kito@0xlab.org>
29311 Monk Chiang <sh.chiang04@gmail.com>
29312
29313 * config/nds32/nds32.c
29314 (nds32_consecutive_registers_load_store_p): Move to ...
29315 (nds32_valid_multiple_load_store): Move to ...
29316 (nds32_valid_stack_push_pop): Move to ...
29317 (nds32_can_use_bclr_p): Move to ...
29318 (nds32_can_use_bset_p): Move to ...
29319 (nds32_can_use_btgl_p): Move to ...
29320 (nds32_can_use_bitci_p): Move to ...
29321 * config/nds32/nds32-predicates.c: ... here.
29322
29323 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
29324 Kito Cheng <kito@0xlab.org>
29325 Monk Chiang <sh.chiang04@gmail.com>
29326
29327 * config/nds32/nds32.c
29328 (nds32_expand_builtin_null_ftype_reg): Move to ...
29329 (nds32_expand_builtin_reg_ftype_imm): Move to ...
29330 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
29331 (nds32_init_builtins): Move implementation to ...
29332 (nds32_expand_builtin): Move implementation to ...
29333 * config/nds32/nds32-intrinsic.c: ... here.
29334 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
29335 (nds32_expand_builtin_impl): Declare.
29336
29337 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
29338 Kito Cheng <kito@0xlab.org>
29339 Monk Chiang <sh.chiang04@gmail.com>
29340
29341 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
29342 (nds32_emit_section_tail_template): Move to ...
29343 (nds32_emit_isr_jmptbl_section): Move to ...
29344 (nds32_emit_isr_vector_section): Move to ...
29345 (nds32_emit_isr_reset_conten): Move to ...
29346 (nds32_check_isr_attrs_conflict): Move to ...
29347 (nds32_construct_isr_vectors_information): Move to ...
29348 (nds32_asm_file_start): Move implementation to ...
29349 (nds32_asm_file_end): Move implementation to ...
29350 * config/nds32/nds32-isr.c: ... here.
29351 * config/nds32/nds32-protos.h
29352 (nds32_check_isr_attrs_conflict): Declare.
29353 (nds32_construct_isr_vectors_information): Declare.
29354 (nds32_asm_file_start_for_isr): Declare.
29355 (nds32_asm_file_end_for_isr): Declare.
29356
29357 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
29358 Kito Cheng <kito@0xlab.org>
29359 Monk Chiang <sh.chiang04@gmail.com>
29360
29361 * config.gcc (nds32*): Add new modules to extra_objs.
29362 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
29363 (nds32be-*-*): Likewise.
29364 * config/nds32/nds32-cost.c: New file.
29365 * config/nds32/nds32-fp-as-gp.c: New file.
29366 * config/nds32/nds32-intrinsic.c: New file.
29367 * config/nds32/nds32-isr.c: New file.
29368 * config/nds32/nds32-md-auxiliary.c: New file.
29369 * config/nds32/nds32-memory-manipulation.c: New file.
29370 * config/nds32/nds32-pipelines-auxiliary.c: New file.
29371 * config/nds32/nds32-predicates.c: New file.
29372 * config/nds32/t-nds32: New file.
29373
29374 2014-07-03 Jakub Jelinek <jakub@redhat.com>
29375
29376 PR tree-optimization/61682
29377 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
29378 using cases and when one of the operands is equal to 1.
29379
29380 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
29381
29382 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
29383 ashr<mode>3): Correct mode of operands[2].
29384 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
29385 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
29386 Correct mode of operands[2]. Fix split condition.
29387
29388 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
29389
29390 * arm.md (arch): Add armv6_or_vfpv3.
29391 (arch_enabled): Add test for the above.
29392 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
29393 on VFP9.
29394 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
29395
29396 2014-07-03 Jakub Jelinek <jakub@redhat.com>
29397
29398 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
29399 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
29400 HWI 1 and negate the unsigned value.
29401 * expmed.c (expand_sdiv_pow2): For modes wider than word always
29402 use AND instead of shift.
29403 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
29404
29405 2014-07-03 Marek Polacek <polacek@redhat.com>
29406
29407 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
29408 (-fsanitize=float-divide-by-zero): Move to the table with
29409 -fsanitize=undefined suboptions.
29410 (-fsanitize=float-cast-overflow): Likewise.
29411
29412 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
29413
29414 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
29415 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
29416 endianness.
29417
29418 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29419
29420 * loop-invariant.c (struct invariant): Add a new member: eqno;
29421 (find_identical_invariants): Update eqno;
29422 (create_new_invariant): Init eqno;
29423 (get_inv_cost): Compute comp_cost with eqno;
29424
29425 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
29426
29427 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
29428 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
29429 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
29430 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
29431 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
29432
29433 2014-07-02 Christian Bruel <christian.bruel@st.com>
29434
29435 PR target/29349
29436 PR target/53513
29437 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
29438 (make_preds_opaque): Delete.
29439 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
29440 (commit_mode_sets): New function.
29441 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
29442 Process all modes at once.
29443 * basic-block.h (pre_edge_lcm_avs): Declare.
29444 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
29445 Call clear_aux_for_edges. Fix comments.
29446 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
29447 (pre_edge_rev_lcm): Idem.
29448 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
29449 parameter.
29450 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
29451 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
29452 Idem.
29453 * config/i386/i386.c (x96_emit_mode_set): Idem.
29454 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
29455 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
29456 (fpscr_toggle) Disallow from delay slot.
29457 * target.def (emit_mode_set): Add prev_mode parameter.
29458 * doc/tm.texi: Regenerate.
29459
29460 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29461
29462 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
29463 variable i.
29464
29465 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
29466
29467 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
29468 vtable_pointer_value_to_vtable): Constify.
29469 (contains_polymorphic_type_p): Declare.
29470 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
29471 vtable_pointer_value_to_vtable): Constify.
29472 (contains_polymorphic_type_p): New predicate.
29473 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
29474 polymorphic types.
29475 (ipa_set_ancestor_jf): Likewise.
29476 (detect_type_change): Return false in easy cases.
29477 (compute_complex_assign_jump_func): Require type to contain
29478 polymorphic type.
29479 (compute_known_type_jump_func): Likewise.
29480
29481 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
29482
29483 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
29484 Remove.
29485 (type_in_anonymous_namespace_p): Constify argument.
29486 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
29487 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
29488 (main_odr_variant): New function.
29489 (hash_type_name): Make static; update assert; do not ICE on
29490 non-records.
29491 (types_same_for_odr): Bring here from tree.c; simplify and remove
29492 old structural comparing code that doesn't work for templates.
29493 (odr_hasher::equal): Update assert.
29494 (add_type_duplicate): Return true when bases should be computed;
29495 replace incomplete loader by complete; do not output duplicated
29496 warnings; do not ICE on non-records; set odr_violated flag.
29497 (get_odr_type): Be ready to replace incomplete type by complete
29498 one; work on ODR variants instead of main variants; reorder item
29499 in array so bases have still smaller indexes.
29500 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
29501 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
29502
29503 2014-07-01 Cary Coutant <ccoutant@google.com>
29504
29505 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
29506 lookup.
29507 (resolve_addr_in_expr): When replacing the rtx in a location list
29508 entry, get a new address table entry.
29509 (dwarf2out_finish): Call index_location_lists even if there are no
29510 addr_index_table entries yet.
29511
29512 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
29513
29514 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
29515 change for not being obvious.
29516
29517 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
29518
29519 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
29520 unused argument.
29521
29522 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29523
29524 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
29525 (vcagt_f64): Likewise.
29526 (vcale_f64): Likewise.
29527 (vcaled_f64): Likewise.
29528 (vcales_f32): Likewise.
29529 (vcalt_f64): Likewise.
29530 (vcaltd_f64): Likewise.
29531 (vcalts_f32): Likewise.
29532
29533 2014-07-01 Marek Polacek <polacek@redhat.com>
29534
29535 * doc/invoke.texi: Document -Wint-conversion.
29536
29537 2014-07-01 Marek Polacek <polacek@redhat.com>
29538
29539 PR c/58286
29540 * doc/invoke.texi: Document -Wincompatible-pointer-types.
29541
29542 2014-07-01 Martin Liska <mliska@suse.cz>
29543
29544 IPA REF alias refactoring
29545 * cgraph.h (iterate_direct_aliases): New function.
29546 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
29547 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
29548 FOR_EACH_ALIAS added.
29549 (cgraph_for_node_and_aliases): Likewise.
29550 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
29551 * ipa-inline.c (reset_edge_caches): Likewise.
29552 (update_caller_keys): Likewise.
29553 * trans-mem.c (ipa_tm_execute): Likewise.
29554 *varpool.c (varpool_analyze_node): Likewise.
29555 (varpool_for_node_and_aliases): Likewise.
29556 * ipa-ref.h (first_alias): New function.
29557 (last_alias): Likewise.
29558 (has_aliases_p): Likewise.
29559 * ipa-ref.c (ipa_ref::remove_reference): Removal function
29560 is sensitive to IPA_REF_ALIASes.
29561 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
29562 are put at the beginning of the list.
29563 (symtab_node::iterate_direct_aliases): New function.
29564
29565 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
29566
29567 Revert:
29568 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
29569 type is complete.
29570 (write_ts_type_common_tree_pointers): Do not stream fields not set
29571 for incomplete types; do not stream duplicated fields for variants;
29572 sanity check that variant and type match.
29573 (write_ts_type_non_common_tree_pointers): Likewise.
29574 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
29575 TYPE_SIZE whether type is complete.
29576 (lto_input_ts_type_common_tree_pointers): Do same changes as in
29577 write_ts_type_common_tree_pointers
29578 (lto_input_ts_type_non_common_tree_pointers): Likewise.
29579
29580 2014-06-30 Joseph Myers <joseph@codesourcery.com>
29581
29582 * var-tracking.c (add_stores): Return instead of asserting if old
29583 and new values for conditional store are the same.
29584
29585 2014-06-30 Richard Henderson <rth@redhat.com>
29586
29587 PR rtl-opt/61608
29588 PR target/39284
29589 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
29590 the cfg if there were any changes.
29591 * passes.def: Revert move of peephole2 after reorder_blocks;
29592 move duplicate_computed_gotos before peephole2.
29593
29594 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
29595
29596 * except.c (emit_note_eh_region_end): New helper function.
29597 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
29598 emit EH_REGION_END note.
29599 * jump.c (cleanup_barriers): Do not split a call and its
29600 corresponding CALL_ARG_LOCATION note.
29601
29602 2014-06-30 Jeff Law <law@redhat.com>
29603
29604 PR tree-optimization/61607
29605 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
29606 deeper into the SSA_NAME_VALUE chain.
29607
29608 2014-06-30 Marek Polacek <polacek@redhat.com>
29609
29610 * convert.c (convert_to_integer): Don't instrument conversions if the
29611 function has no_sanitize_undefined attribute.
29612 * ubsan.c: Don't run the ubsan pass if the function has
29613 no_sanitize_undefined attribute.
29614
29615 2014-06-30 Jakub Jelinek <jakub@redhat.com>
29616
29617 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
29618 -fsanitize=undefined suboptions.
29619
29620 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
29621
29622 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
29623 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
29624 against bigendian and adjust indices.
29625
29626 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
29627
29628 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
29629
29630 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
29631
29632 PR target/61633
29633 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
29634 Add alternative; make early clobber. Adjust both split patterns
29635 to use operand 0 as the working register.
29636
29637 2014-06-30 Jakub Jelinek <jakub@redhat.com>
29638
29639 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
29640 as ira_object_id_map might be NULL, or 1.
29641
29642 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29643
29644 * loop-invariant.c (get_inv_cost): Handle register class.
29645 (gain_for_invariant): Check the register pressure of the inv
29646 and its overlapped register class, other than all.
29647
29648 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
29649
29650 * doc/invoke.texi (Optimize Options): Fix descriptions of
29651 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
29652
29653 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
29654
29655 * doc/extend.texi (Function Attributes): Update 'naked' attribute
29656 documentation.
29657
29658 2014-06-29 Tobias Grosser <tobias@grosser.es>
29659
29660 PR bootstrap/61650
29661 * graphite-isl-ast-to-gimple.c: Add missing guards.
29662
29663 2014-06-29 Roman Gareev <gareevroman@gmail.com>
29664
29665 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
29666 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
29667 * flag-types.h: Add new enum fgraphite_generator.
29668 * graphite-isl-ast-to-gimple.c: New.
29669 * graphite-isl-ast-to-gimple.h: New.
29670 * graphite.c (graphite_transform_loops): Add choice of Graphite
29671 code generator, which depends on flag_graphite_code_gen.
29672
29673 2014-06-29 Roman Gareev <gareevroman@gmail.com>
29674
29675 * graphite-dependences.c (subtract_commutative_associative_deps):
29676 Add NULL checking of the following variables: must_raw_no_source,
29677 may_raw_no_source, must_war_no_source, may_war_no_source,
29678 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
29679 must_war, may_war, must_waw, may_waw.
29680
29681 2014-06-29 Roman Gareev <gareevroman@gmail.com>
29682
29683 * graphite-clast-to-gimple.c: gloog is renamed to
29684 graphite_regenerate_ast_cloog. gloog_error is renamed to
29685 graphite_regenerate_error.
29686 * graphite-clast-to-gimple.h: The definition of the struct
29687 bb_pbb_def is moved to graphite-htab.h.
29688 Add inclusion of the hash-table.h.
29689 * graphite-htab.h: The declaration of the function gloog is moved
29690 to graphite-clast-to-gimple.h and renamed to
29691 graphite_regenerate_ast_cloog.
29692 * graphite.c (graphite_transform_loops): gloog is renamed
29693 to graphite_regenerate_ast_cloog.
29694
29695 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
29696
29697 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
29698 type is complete.
29699 (write_ts_type_common_tree_pointers): Do not stream fields not set
29700 for incomplete types; do not stream duplicated fields for variants;
29701 sanity check that variant and type match.
29702 (write_ts_type_non_common_tree_pointers): Likewise.
29703 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
29704 TYPE_SIZE whether type is complete.
29705 (lto_input_ts_type_common_tree_pointers): Do same changes as in
29706 write_ts_type_common_tree_pointers
29707 (lto_input_ts_type_non_common_tree_pointers): Likewise.
29708
29709 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
29710
29711 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
29712
29713 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
29714
29715 * tree-inline.c (remap_type_1): Do not duplicate fields
29716 that are shared in between type and its main variant.
29717
29718 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
29719
29720 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
29721 of the type.
29722 (ipa_set_ancestor_jf) Likewise.
29723 (check_stmt_for_type_change): Check that we work on main variant.
29724 (detect_type_change): Look into main variant.
29725 (compute_known_type_jump_func): Check that main variant has BINFO.
29726
29727 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
29728
29729 * ipa-devirt.c (set_type_binfo): New function.
29730 (add_type_duplicate): Use it.
29731 (get_odr_type): Sanity check that binfos points to main variants.
29732 (get_class_context): Be sure the context's outer_type is main variant.
29733 (contains_type_p): Walk main variant.
29734 (get_polymorphic_call_info_for_decl): Set outer_type to be
29735 main variant.
29736 (get_polymorphic_call_info): Likewise.
29737 (possible_polymorphic_call_targets): Sanity check that we operate
29738 on main variant.
29739
29740 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
29741
29742 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
29743
29744 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29745
29746 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
29747 accidental change due to wide-int branch merge.
29748
29749 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29750
29751 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
29752 compressed debug support.
29753 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
29754 * configure: Regenerate.
29755 * config.in: Regenerate.
29756 * common.opt (compressed_debug_sections): New enum.
29757 (gz, gz=): New options.
29758 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
29759 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
29760 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
29761 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
29762 LINK_COMPRESS_DEBUG_SPEC.
29763 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
29764 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
29765 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
29766 (Debugging Options): Document -gz[=type].
29767
29768 2014-06-27 Martin Jambor <mjambor@suse.cz>
29769
29770 PR ipa/61160
29771 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
29772 args_to_skip, use those from node instead. Copy args_to_skip and
29773 combined_args_to_skip from node to the new thunk.
29774 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
29775 (cgraph_create_virtual_clone): Moved computation of
29776 combined_args_to_skip...
29777 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
29778
29779 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
29780
29781 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
29782 redundant diagnostic machinary.
29783
29784 2014-06-27 Richard Biener <rguenther@suse.de>
29785
29786 * tree-ssa-math-opts.c (bswap_replace): Fix
29787 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
29788
29789 2014-06-27 Martin Liska <mliska@suse.cz>
29790
29791 * gimple.h (gimple_location_safe): New function introduced.
29792 * cgraphunit.c (walk_polymorphic_call_targets): Usage
29793 of gimple_location_safe replaces gimple_location.
29794 (gimple_fold_call): Likewise.
29795 * ipa-devirt.c (ipa_devirt): Likewise.
29796 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
29797 * ipa.c (walk_polymorphic_call_targets): Likewise.
29798 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
29799
29800 2014-06-27 Jakub Jelinek <jakub@redhat.com>
29801
29802 PR tree-optimization/57233
29803 PR tree-optimization/61299
29804 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
29805 functions.
29806 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
29807 would be lowered to scalar shifts, check if corresponding
29808 shifts and vector BIT_IOR_EXPR are supported and don't lower
29809 or lower just to narrower vector type in that case.
29810 * expmed.c (expand_shift_1): Fix up handling of vector
29811 shifts and rotates.
29812
29813 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
29814
29815 PR target/61586
29816 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
29817
29818 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
29819
29820 * doc/invoke.texi (-fsemantic-interposition): Document.
29821 * common.opt (fsemantic-interposition): New flag.
29822 * varasm.c (decl_replaceable_p): Use it.
29823
29824 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29825
29826 PR target/61542
29827 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
29828 extraction other than index 3.
29829
29830 2014-06-26 Teresa Johnson <tejohnson@google.com>
29831
29832 * doc/invoke.texi: Fix typo.
29833 * dumpfile.c: Add support for documented -fdump-* options
29834 optimized/missed/note/optall.
29835
29836 2014-06-26 Martin Jambor <mjambor@suse.cz>
29837
29838 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
29839 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
29840 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
29841 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
29842 * opts.c (default_options_optimization): Set
29843 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
29844 * doc/invoke.texi (allow-load-data-races)
29845 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
29846 (allow-store-data-races): Document the new default.
29847
29848 2014-06-26 Martin Jambor <mjambor@suse.cz>
29849
29850 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
29851 renamed to ipa_impossible_devirt_target. Fix typo.
29852 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
29853 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
29854 ipa_impossible_devirt_target.
29855
29856 2014-06-26 Richard Biener <rguenther@suse.de>
29857
29858 PR tree-optimization/61607
29859 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
29860 explaining why we restrict copies on loop depth.
29861 * tree-ssa-dom.c (cprop_operand): Remove restriction on
29862 on loop depth.
29863 (record_equivalences_from_phis): Instead add it here.
29864
29865 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
29866
29867 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
29868 (LTO_WRAPPER_OBJS): New variable.
29869 (lto-wrapper$(exeext)): Use it.
29870 * collect2.c: Include "collect-utils.h".
29871 (verbose, debug): Remove variables.
29872 (at_file_supplied): No longer static.
29873 (tool_name): New variable.
29874 (do_wait, fork_execute, maybe_unlink): Don't declare.
29875 (tool_cleanup): No longer static.
29876 (notice): Remove function.
29877 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
29878 fork_execute calls.
29879 (collect_wait, do_wait, collect_execute): Remove functions.
29880 (maybe_unlink): No longer static.
29881 * collect2.h (verbose, debug): Don't declare.
29882 (at_file_supplied): Declare.
29883 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
29884 changed.
29885 (collect_execute): Replace with implementation from collect2, plus a
29886 new arg use_atfile. All callers changed.
29887 (collect_wait): Replace with implementation from collect2.
29888 (maybe_unlink_file): Remove function.
29889 (fork_execute): Replace with implementation from collect2, plus a
29890 new arg use_atfile. All callers changed.
29891 (do_wait): Add call to utils_cleanup to the error path.
29892 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
29893 (tool_cleanup): Adjust declarations.
29894 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
29895 * tlink.c: Include "collect-utils.h".
29896 (tlink_execute): New arg use_atfile. All callers changed.
29897 (tlink_init, tlink_execute): Remove declarations.
29898
29899 * collect-utils.c (save_temps): New variable.
29900 (do_wait): Use it instead of debug. Use fatal_error.
29901 * collect-utils.h (save_temps): Declare.
29902 * collect2.c (verbose): Rename from vflag. All uses changed.
29903 (tool_cleanup): New function, copied from collect_atexit.
29904 (collect_atexit, handler): Just call it.
29905 * collect2.h (verbose): Declaration renamed from vflag.
29906 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
29907 debug.
29908
29909 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
29910 (lto-wrapper$(exeext)): Link with collect-utils.o.
29911 * collect-utils.c: New file.
29912 * collect-utils.h: New file.
29913 * lto-wrapper.c: Include "collect-utils.h".
29914 (args_name): Delete variable.
29915 (tool_name): New variable.
29916 (tool_cleanup): New function.
29917 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
29918 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
29919 (fork_execute): Remove functions.
29920
29921 2014-06-26 Nick Clifton <nickc@redhat.com>
29922
29923 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
29924
29925 * doc/extend.texi (Function Attributes): Fix typo in description
29926 of RX vector attribute.
29927
29928 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
29929
29930 * config.gcc (supported_defaults): Error when passing either
29931 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
29932
29933 2014-06-26 Richard Biener <rguenther@suse.de>
29934
29935 * tree-ssa-dom.c (cprop_operand): Remove restriction on
29936 propagating volatile pointers.
29937
29938 2014-06-26 Richard Biener <rguenther@suse.de>
29939
29940 PR tree-optimization/61607
29941 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
29942 loop if we redirected its latch edge.
29943 (thread_block_1): Do not cancel loops prematurely.
29944
29945 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
29946
29947 * toplev.c (backend_init_target): Move init_emit_regs and
29948 init_regs to...
29949 (backend_init) ... here; skip ira_init_once and backend_init_target.
29950 (target_reinit) ... and here; clear
29951 this_target_rtl->lang_dependent_initialized.
29952 (lang_dependent_init_target): Clear
29953 this_target_rtl->lang_dependent_initialized;
29954 break out rtl initialization to ...
29955 (initialize_rtl): ... here; call also backend_init_target
29956 and ira_init_once.
29957 * toplev.h (initialize_rtl): New function.
29958 * function.c: Include toplev.h
29959 (init_function_start): Call initialize_rtl.
29960 * rtl.h (target_rtl): Add target_specific_initialized,
29961 lang_dependent_initialized.
29962
29963 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
29964 Jakub Jelinek <jakub@redhat.com>
29965
29966 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
29967
29968 2014-06-25 Tom de Vries <tom@codesourcery.com>
29969
29970 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
29971
29972 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
29973
29974 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
29975 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
29976 Issue a strict overflow warning if appropriate.
29977
29978 2014-06-25 Martin Liska <mliska@suse.cz>
29979
29980 IPA REF refactoring
29981 * Makefile.in: Removed header file (ipa-ref-inline.h).
29982 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
29983 called.
29984 (cgraph_speculative_call_info): Likewise.
29985 (cgraph_for_node_thunks_and_aliases): Likewise.
29986 (cgraph_for_node_and_aliases): Likewise.
29987 (verify_cgraph_node): Likewise.
29988 * cgraph.h: Batch of IPA REF functions become member functions of
29989 symtab_node: add_reference, maybe_add_reference, clone_references,
29990 clone_referring, clone_reference, find_reference,
29991 remove_stmt_references, remove_all_references,
29992 remove_all_referring, dump_references, dump_referring,
29993 has_alias_p, iterate_reference, iterate_referring.
29994 * cgraphbuild.c (record_reference): New IPA REF function used.
29995 (record_type_list): Likewise.
29996 (record_eh_tables): Likewise.
29997 (mark_address): Likewise.
29998 (mark_load): Likewise.
29999 (mark_store): Likewise.
30000 (pass_build_cgraph_edges): Likewise.
30001 (rebuild_cgraph_edge): Likewise.
30002 (cgraph_rebuild_references): Likewise.
30003 (pass_remove_cgraph_callee_edges): Likewise.
30004 * cgraphclones.c (cgraph_clone_node): Likewise.
30005 (cgraph_create_virtual_clone): Likewise.
30006 (cgraph_materialize_clone): Likewise.
30007 (cgraph_materialize_all_clones): Likewise.
30008 * cgraphunit.c (cgraph_reset_node): Likewise.
30009 (cgraph_reset_node): Likewise.
30010 (analyze_function): Likewise.
30011 (assemble_thunks_and_aliases): Likewise.
30012 (expand_function): Likewise.
30013 * ipa-comdats.c (propagate_comdat_group): Likewise.
30014 (enqueue_references): Likewise.
30015 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
30016 (create_specialized_node): Likewise.
30017 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
30018 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
30019 * ipa-inline.c (reset_edge_caches): Likewise.
30020 (update_caller_keys): Likewise.
30021 (execute): Likewise.
30022 * ipa-prop.c (remove_described_reference): Likewise.
30023 (propagate_controlled_uses): Likewise.
30024 (ipa_edge_duplication_hook): Likewise.
30025 (ipa_modify_call_arguments): Likewise.
30026 * ipa-pure-const.c (propagate_pure_const): Likewise.
30027 * ipa-ref-inline.h: Header file removed, functions moved
30028 to symtab_node class.
30029 * ipa-ref.c (remove_reference): New class member function.
30030 (cannot_lead_to_return): New class member function.
30031 (referring_ref_list): Likewise.
30032 (referred_ref_list): Likewise.
30033 Rest of functions moved to symtab_node class.
30034 * ipa-ref.h: New member functions remove_reference,
30035 cannot_lead_to_return, referring_ref_list, referred_ref_list added
30036 to ipa_ref class.
30037 ipa_ref_list class has new member functions: first_reference,
30038 first_referring, clear, nreferences.
30039 * ipa-reference.c (analyze_function): New IPA REF function used.
30040 (write_node_summary_p): Likewise.
30041 (ipa_reference_write_optimization_summary): Likewise.
30042 * ipa-split.c (split_function): Likewise.
30043 * ipa-utils.c (ipa_reverse_postorder): Likewise.
30044 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
30045 (function_and_variable_visibility): Likewise.
30046 * ipa.c (has_addr_references_p): Likewise.
30047 (process_references): Argument type changed.
30048 (symtab_remove_unreachable_nodes): New IPA REF function used.
30049 (process_references): Likewise.
30050 (set_writeonly_bit): Likewise.
30051 * lto-cgraph.c: Implementation of new symtab_node member functions
30052 that uses new IPA REF functions.
30053 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
30054 function used.
30055 * lto-streamer-out.c (output_symbol_p): Likewise.
30056 * lto-streamer.h (referenced_from_this_partition_p): Argument type
30057 changed.
30058 * symtab.c: Implementation of new IPA REF API.
30059 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
30060 (ipa_tm_create_version): Likewise.
30061 (ipa_tm_execute): Likewise.
30062 * tree-emutls.c (gen_emutls_addr): Likewise.
30063 * tree-inline.c (copy_bb): Likewise.
30064 (delete_unreachable_blocks_update_callgraph): Likewise.
30065 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
30066 (varpool_for_node_and_aliases): Likewise.
30067
30068 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
30069
30070 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
30071
30072 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
30073
30074 PR bootstrap/61598
30075 * fold-const.c (fold_checksum_tree): Use a hash_table of const
30076 tree_node * instead of tree_node *.
30077 (fold): Adjust.
30078 (print_fold_checksum): Likewise.
30079 (fold_check_failed): Likewise.
30080 (debug_fold_checksum): Likewise.
30081 (fold_build1_stat_loc): Likewise.
30082 (fold_build2_stat_loc): Likewise.
30083 (fold_build3_stat_loc): Likewise.
30084 (fold_build_call_array_loc): Likewise.
30085
30086 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
30087
30088 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
30089 implementation with call to...
30090 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
30091 function.
30092 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
30093 Declare.
30094
30095 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
30096
30097 PR tree-optimization/57742
30098 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
30099 after replacing the statement.
30100
30101 2014-06-25 Nick Clifton <nickc@redhat.com>
30102
30103 * config/v850/v850.c (GHS_default_section_names): Change to const
30104 char * type.
30105 (GHS_current_section_names): Likewise.
30106 (v850_insert_attributes): Do not build strings, just assign the
30107 names directly. Change the type of 'chosen_section' to const
30108 char*.
30109 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
30110 directly to the array entry.
30111 * config/v850/v850.h (GHS_default_section_names): Change to const
30112 char * type.
30113 (GHS_current_section_names): Likewise.
30114
30115 2014-06-25 Jakub Jelinek <jakub@redhat.com>
30116
30117 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
30118 (LANG_HOOKS_DECLS): Add it.
30119 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
30120 has correct type.
30121 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
30122 * langhooks.h (struct lang_hooks_for_decls): Add
30123 omp_clause_linear_ctor hook.
30124 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
30125 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
30126 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
30127 combined simd loop use omp_clause_linear_ctor hook.
30128
30129 2014-06-24 Cong Hou <congh@google.com>
30130
30131 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
30132 pattern recognition.
30133 (type_conversion_p): PROMOTION is true if it's a type promotion
30134 conversion, and false otherwise. Return true if the given expression
30135 is a type conversion one.
30136 * tree-vectorizer.h: Adjust the number of patterns.
30137 * tree.def: Add SAD_EXPR.
30138 * optabs.def: Add sad_optab.
30139 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
30140 * expr.c (expand_expr_real_2): Likewise.
30141 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
30142 * gimple.c (get_gimple_rhs_num_ops): Likewise.
30143 * optabs.c (optab_for_tree_code): Likewise.
30144 * tree-cfg.c (estimate_operator_cost): Likewise.
30145 * tree-ssa-operands.c (get_expr_operands): Likewise.
30146 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
30147 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
30148 * doc/generic.texi: Add document for SAD_EXPR.
30149 * doc/md.texi: Add document for ssad and usad.
30150
30151 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
30152
30153 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
30154 qualification in cast.
30155
30156 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
30157
30158 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
30159 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
30160 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
30161 (tree_function_decl): ... here.
30162 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
30163 streaming of vindex to ...
30164 (write_ts_function_decl_tree_pointers): ... here.
30165 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
30166 Do not stream DECL_VINDEX.
30167 (lto_input_ts_function_decl_tree_pointers): Stream it here.
30168
30169 2014-06-24 Catherine Moore <clm@codesourcery.com>
30170 Sandra Loosemore <sandra@codesourcery.com>
30171
30172 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
30173 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
30174 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
30175
30176 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
30177
30178 * doc/invoke.texi (Warning Options): Remove duplicated
30179 -Wmaybe-uninitialized.
30180
30181 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
30182
30183 PR tree-optimization/57742
30184 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
30185 (handle_builtin_malloc, handle_builtin_memset): New functions.
30186 (strlen_optimize_stmt): Call them.
30187 * passes.def: Move strlen after loop+dom but before vrp.
30188
30189 2014-06-24 Jakub Jelinek <jakub@redhat.com>
30190
30191 PR target/61570
30192 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
30193 model family 6 CPU with has_longmode never use a CPU without
30194 64-bit support.
30195
30196 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
30197
30198 PR target/61570
30199 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
30200 the last change.
30201
30202 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
30203
30204 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
30205 * dominance.c (iterate_fix_dominators): Use hash_map instead of
30206 pointer_map.
30207 * hash-map.h: New file.
30208 * ipa-comdats.c: Use hash_map instead of pointer_map.
30209 * ipa.c: Likewise.
30210 * lto-section-out.c: Adjust.
30211 * lto-streamer.h: Replace pointer_map with hash_map.
30212 * symtab.c (verify_symtab): Likewise.
30213 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
30214 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
30215 * tree-streamer.h: Likewise.
30216 * tree-streamer.c: Adjust.
30217 * pointer-set.h: Remove pointer_map.
30218
30219 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
30220
30221 * hash-table.h: Add a template arg to choose between storing values
30222 and storing pointers to values, and then provide partial
30223 specializations for both.
30224 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
30225 should store, not the type values should point to.
30226 * tree-into-ssa.c (var_info_hasher): Likewise.
30227 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
30228 * tree-complex.c: Adjust.
30229 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
30230 table instead of int_tree_map *.
30231 * tree-parloops.c: Adjust.
30232 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
30233 type is being stored.
30234 * tree-vectorizer.c: Adjust.
30235
30236 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
30237
30238 * hash-table.h: Remove a layer of indirection from hash_table so that
30239 it contains the hash table's data instead of a pointer to the data.
30240 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
30241 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
30242 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
30243 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
30244 fold-const.c, gcse.c, ggc-common.c,
30245 gimple-ssa-strength-reduction.c, gimplify.c,
30246 graphite-clast-to-gimple.c, graphite-dependences.c,
30247 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
30248 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
30249 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
30250 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
30251 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
30252 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
30253 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
30254 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
30255 tree-ssa-live.c, tree-ssa-loop-im.c,
30256 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
30257 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
30258 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
30259 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
30260 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
30261 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
30262 vtable-verify.c, vtable-verify.h: Adjust.
30263
30264 2014-06-24 Richard Biener <rguenther@suse.de>
30265
30266 PR tree-optimization/61572
30267 * tree-ssa-sink.c (statement_sink_location): Do not sink
30268 loads from hard registers.
30269
30270 2014-06-24 Jakub Jelinek <jakub@redhat.com>
30271
30272 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
30273 not mentioned in clauses use private clause if the iterator is
30274 declared in #pragma omp for simd, and when adding lastprivate
30275 instead, add it to the outer #pragma omp for too. Diagnose
30276 if the variable is private in outer context. For simd collapse > 1
30277 loops, replace all iterators with temporaries.
30278 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
30279 same even in collapse > 1 loops.
30280
30281 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
30282 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
30283 non-NULL.
30284 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
30285 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
30286 non-NULL.
30287 (gimplify_adjust_omp_clauses): Likewise.
30288 * omp-low.c (lower_rec_simd_input_clauses,
30289 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
30290 safelen the same as safelen(1).
30291 * tree-nested.c (convert_nonlocal_omp_clauses,
30292 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
30293 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
30294 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
30295 Fixup handling of GIMPLE_OMP_TARGET.
30296 (convert_tramp_reference_stmt, convert_gimple_call): Handle
30297 GIMPLE_OMP_TARGET.
30298
30299 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
30300
30301 PR tree-optimization/61554
30302 * tree-ssa-propagate.c: Include "bitmap.h".
30303 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
30304 properly update constructor/destructor.
30305 (substitute_and_fold_dom_walker::before_dom_children):
30306 Remove call to gimple_purge_dead_eh_edges, add bb->index to
30307 need_eh_cleaup instead.
30308 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
30309 need_eh_cleanup.
30310
30311 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
30312
30313 * varpool.c (dump_varpool_node): Dump used_by_single_function.
30314 * tree-pass.h (make_pass_ipa_single_use): New pass.
30315 * cgraph.h (used_by_single_function): New flag.
30316 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
30317 Stream it.
30318 * passes.def (pass_ipa_single_use): Scedule.
30319 * ipa.c (BOTTOM): New macro.
30320 (meet): New function
30321 (propagate_single_user): New function.
30322 (ipa_single_use): New function.
30323 (pass_data_ipa_single_use): New pass.
30324 (pass_ipa_single_use): New pass.
30325 (pass_ipa_single_use::gate): New gate.
30326 (make_pass_ipa_single_use): New function.
30327
30328 2014-06-23 Kai Tietz <ktietz@redhat.com>
30329
30330 PR target/39284
30331 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
30332 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
30333
30334 2014-06-23 Richard Biener <rguenther@suse.de>
30335
30336 * tree-ssa-loop.c (gate_loop): New function.
30337 (pass_tree_loop::gate): Call it.
30338 (pass_data_tree_no_loop, pass_tree_no_loop,
30339 make_pass_tree_no_loop): New.
30340 * tree-vectorizer.c: Include tree-scalar-evolution.c
30341 (pass_slp_vectorize::execute): Initialize loops and SCEV if
30342 required.
30343 (pass_slp_vectorize::clone): New method.
30344 * timevar.def (TV_TREE_NOLOOP): New.
30345 * tree-pass.h (make_pass_tree_no_loop): Declare.
30346 * passes.def (pass_tree_no_loop): New pass group with
30347 SLP vectorizer.
30348
30349 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
30350
30351 PR target/61570
30352 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
30353 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
30354
30355 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
30356
30357 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
30358 "yes" where needed.
30359
30360 2014-06-23 Alan Modra <amodra@gmail.com>
30361
30362 PR bootstrap/61583
30363 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
30364 to zero on debug statements.
30365
30366 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
30367
30368 PR target/60825
30369 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
30370 Ignore third operand if present by marking qualifier_internal.
30371
30372 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
30373
30374 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
30375 vector extension.
30376 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
30377 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
30378 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
30379 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
30380 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
30381 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
30382 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
30383 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
30384 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
30385 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
30386 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
30387 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
30388 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
30389 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
30390 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
30391 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
30392 logic in GCC vector extensions
30393
30394 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
30395 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
30396 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
30397 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
30398 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
30399 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
30400 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
30401 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
30402 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
30403 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
30404
30405 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
30406
30407 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
30408 extensions.
30409
30410 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
30411 (vget_low_s64): Use __GET_LOW macro.
30412 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
30413 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
30414 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
30415 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
30416 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
30417
30418 (vcombine_s64): Use GCC vector extensions; remove cast.
30419 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
30420 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
30421 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
30422 Fix type signature; remove cast.
30423
30424 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
30425
30426 PR target/60825
30427 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
30428 V1DFmode.
30429 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
30430 add V1DFmode
30431 (BUILTIN_VD1): New.
30432 (BUILTIN_VD_RE): Remove.
30433 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
30434 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
30435 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
30436 variant but not df.
30437 (vreinterpretv1df*, vreinterpret*v1df): New.
30438 (vreinterpretdf*, vreinterpret*df): Remove.
30439 * config/aarch64/aarch64-simd.md (aarch64_create,
30440 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
30441 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
30442 (VD1): New.
30443 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
30444 (vcreate_f64): Remove cast, use v1df builtin.
30445 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
30446 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
30447 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
30448 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
30449 vmov_n_f64, vst1_f64): Use gcc vector extensions.
30450 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
30451 add range check using __builtin_aarch64_im_lane_boundsi.
30452 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
30453 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
30454 type signature, use gcc vector extensions.
30455 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
30456 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
30457 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
30458 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
30459 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
30460 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
30461 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
30462 vreinterpret_u64_f64): Use v1df builtin not df.
30463
30464 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
30465
30466 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
30467 vector registers.
30468
30469 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
30470
30471 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
30472 priority directly.
30473
30474 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30475
30476 * loop-invariant.c (pre_check_invariant_p): New function.
30477 (find_invariant_insn): Call pre_check_invariant_p.
30478
30479 2014-06-22 Richard Henderson <rth@redhat.com>
30480
30481 PR target/61565
30482 * compare-elim.c (struct comparison): Add eh_note.
30483 (find_comparison_dom_walker::before_dom_children): Don't eliminate
30484 a redundant comparison in a different EH region. Purge EH edges if
30485 necessary.
30486
30487 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
30488
30489 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
30490 (var_shift): Use it.
30491 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
30492 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
30493 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
30494 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
30495 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
30496 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
30497 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
30498 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
30499 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
30500 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
30501 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
30502 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
30503 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
30504 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
30505 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
30506 *rotldi3_internal15be): Use the new attribute. Merge register and
30507 integer alternatives.
30508
30509 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
30510
30511 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
30512 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
30513 split, *ashrdi3_internal3 and split): Delete, merge into...
30514 (ashr<mode>3): New expander.
30515 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
30516 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
30517
30518 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
30519
30520 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
30521 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
30522 *rotldi3_internal3 and split): Delete, merge into...
30523 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
30524 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
30525 Use "rotlw" extended mnemonic.
30526
30527 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
30528
30529 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
30530 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
30531 and split, *ashldi3_internal3 and split): Delete, merge into...
30532 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
30533 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
30534
30535 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
30536
30537 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
30538 (lshrsi3, two anonymous define_insns and define_splits,
30539 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
30540 *lshrdi3_internal3 and split): Delete, merge into...
30541 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
30542 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
30543
30544 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
30545
30546 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
30547 Remove "O" alternative.
30548
30549 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
30550
30551 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
30552 (mips_move_from_gpr_cost): Likewise.
30553 (mips_register_move_cost): Update accordingly.
30554 (mips_secondary_reload_class): Remove name of in_p.
30555
30556 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
30557
30558 PR target/61503
30559 * config/i386/i386.md (x86_64_shrd, x86_shrd,
30560 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
30561
30562 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30563
30564 * config/nios2/nios2.c: Include "builtins.h".
30565
30566 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
30567
30568 * cgraph.h (tls_model_names): New variable.
30569 * print-tree.c (print_node): Simplify.
30570 * varpool.c (tls_model_names): New variable.
30571 (dump_varpool_node): Output tls model.
30572
30573 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
30574
30575 * ipa-visibility.c (function_and_variable_visibility): Disable
30576 temporarily local aliases for some targets.
30577
30578 2014-06-20 Marek Polacek <polacek@redhat.com>
30579
30580 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
30581 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
30582 into SANITIZE_UNDEFINED.
30583 * doc/invoke.texi: Describe -fsanitize=bounds.
30584 * gimplify.c (gimplify_call_expr): Add gimplification of internal
30585 functions created in the FEs.
30586 * internal-fn.c: Move "internal-fn.h" after "tree.h".
30587 (expand_UBSAN_BOUNDS): New function.
30588 * internal-fn.def (UBSAN_BOUNDS): New internal function.
30589 * internal-fn.h: Don't define internal functions here.
30590 * opts.c (common_handle_option): Add -fsanitize=bounds.
30591 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
30592 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
30593 * tree-core.h: Define internal functions here.
30594 (struct tree_base): Add ifn field.
30595 * tree-pretty-print.c: Include "internal-fn.h".
30596 (dump_generic_node): Handle functions without CALL_EXPR_FN.
30597 * tree.c (get_callee_fndecl): Likewise.
30598 (build_call_expr_internal_loc): New function.
30599 * tree.def (CALL_EXPR): Update description.
30600 * tree.h (CALL_EXPR_IFN): Define.
30601 (build_call_expr_internal_loc): Declare.
30602 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
30603 types.
30604 (ubsan_type_descriptor): Change bool parameter to enum
30605 ubsan_print_style. Adjust the code. Add handling of
30606 UBSAN_PRINT_ARRAY.
30607 (ubsan_expand_bounds_ifn): New function.
30608 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
30609 (ubsan_build_overflow_builtin): Likewise.
30610 (instrument_bool_enum_load): Likewise.
30611 (ubsan_instrument_float_cast): Likewise.
30612 * ubsan.h (enum ubsan_print_style): New enum.
30613 (ubsan_expand_bounds_ifn): Declare.
30614 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
30615
30616 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
30617
30618 * config/rs6000/rs6000.md: Append `DONE' to preparation
30619 statements of `bswap' pattern splitters.
30620
30621 2014-06-20 Tom de Vries <tom@codesourcery.com>
30622
30623 * target.def (call_fusage_contains_non_callee_clobbers): Update
30624 definition.
30625 * doc/tm.texi: Regenerate.
30626
30627 2014-06-20 Yury Gribov <y.gribov@samsung.com>
30628 Max Ostapenko <m.ostapenko@partner.samsung.com>
30629
30630 PR sanitizer/61547
30631 * asan.c (instrument_strlen_call): Fixed instrumentation of
30632 trailing byte.
30633
30634 2014-06-20 Martin Jambor <mjambor@suse.cz>
30635
30636 PR ipa/61540
30637 * ipa-prop.c (impossible_devirt_target): New function.
30638 (try_make_edge_direct_virtual_call): Use it, also instead of
30639 asserting.
30640
30641 2014-06-20 Yury Gribov <y.gribov@samsung.com>
30642 Max Ostapenko <m.ostapenko@partner.samsung.com>
30643
30644 PR sanitizer/61530
30645 * asan.c (build_check_stmt): Add condition.
30646
30647 2014-06-20 Martin Jambor <mjambor@suse.cz>
30648
30649 PR ipa/61211
30650 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
30651 expanded clones.
30652
30653 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30654
30655 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
30656 Update comments.
30657 (VCONQ): Make comment more helpful.
30658 (VCON): Delete.
30659 * config/aarch64/aarch64-simd.md
30660 (aarch64_sqdmulh_lane<mode>):
30661 Use VCOND for operands 2. Update lane checking and flipping logic.
30662 (aarch64_sqrdmulh_lane<mode>): Likewise.
30663 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
30664 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
30665 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
30666 attribute of operand 3 to VCOND.
30667 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
30668 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
30669 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
30670 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
30671 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
30672 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
30673 define_insn.
30674 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
30675 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
30676 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
30677 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
30678 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
30679 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
30680 operand to VCOND. Update lane flipping and bounds checking logic.
30681 (aarch64_sqdmlal2_lane<mode>): Likewise.
30682 (aarch64_sqdmlsl_lane<mode>): Likewise.
30683 (aarch64_sqdmull_lane<mode>): Likewise.
30684 (aarch64_sqdmull2_lane<mode>): Likewise.
30685 (aarch64_sqdmlal_laneq<mode>):
30686 Replace VCON usage with VCONQ.
30687 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
30688 (aarch64_sqdmlal2_laneq<mode>): Emit
30689 aarch64_sqdmlal2_laneq<mode>_internal insn.
30690 Replace VCON with VCONQ.
30691 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
30692 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
30693 (aarch64_sqdmull_laneq<mode>): Emit
30694 aarch64_sqdmull_laneq<mode>_internal insn.
30695 Replace VCON with VCONQ.
30696 (aarch64_sqdmull2_laneq<mode>): Emit
30697 aarch64_sqdmull2_laneq<mode>_internal insn.
30698 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
30699 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
30700 of 3rd argument to int16x4_t.
30701 (vqdmlalh_lane_s16): Likewise.
30702 (vqdmlslh_lane_s16): Likewise.
30703 (vqdmull_high_lane_s16): Likewise.
30704 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
30705 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
30706 (vqdmlsl_lane_s16): Likewise.
30707 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
30708 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
30709 (vqdmlals_lane_s32): Likewise.
30710 (vqdmlsls_lane_s32): Likewise.
30711 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
30712 (vqdmulls_lane_s32): Likewise.
30713 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
30714 (vqdmlsl_lane_s32): Likewise.
30715 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
30716 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
30717 (vqrdmulhh_lane_s16): Likewise.
30718 (vqdmlsl_high_lane_s16): Likewise.
30719 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
30720 (vqdmlsl_high_lane_s32): Likewise.
30721 (vqrdmulhs_lane_s32): Likewise.
30722
30723 2014-06-20 Tom de Vries <tom@codesourcery.com>
30724
30725 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
30726 get_call_reg_set_usage.
30727
30728 2014-06-20 Tom de Vries <tom@codesourcery.com>
30729
30730 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
30731 it contains all call_used_regs.
30732
30733 2014-06-20 Tom de Vries <tom@codesourcery.com>
30734
30735 * final.c (collect_fn_hard_reg_usage): Add and use variable
30736 function_used_regs.
30737
30738 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
30739
30740 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
30741 (set_init_priority, get_init_priority, set_fini_priority,
30742 get_fini_priority): New methods.
30743 * tree.c (init_priority_for_decl): Remove.
30744 (init_ttree): Do not initialize init priority.
30745 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
30746 (decl_priority_info): Remove.
30747 (decl_init_priority_insert): Rewrite.
30748 (decl_fini_priority_insert): Rewrite.
30749 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
30750 tree_priority_map_marked_p): Remove.
30751 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
30752 * lto-streamer-out.c (hash_tree): Do not hash priorities.
30753 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
30754 not output priorities.
30755 (pack_ts_function_decl_value_fields): Likewise.
30756 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
30757 not input priorities.
30758 (unpack_ts_function_decl_value_fields): Likewise.
30759 * symtab.c (symbol_priority_map): Declare.
30760 (init_priority_hash): Declare.
30761 (symtab_unregister_node): Unregister from priority hash, too.
30762 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
30763 New methods.
30764 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
30765 (symbol_priority_info): New function.
30766 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
30767 New methods.
30768 * tree-core.h (tree_priority_map): Remove.
30769
30770 2014-06-20 Jakub Jelinek <jakub@redhat.com>
30771
30772 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
30773 0xff to uint64_t before shifting it up.
30774
30775 2014-06-20 Julian Brown <julian@codesourcery.com>
30776 Chung-Lin Tang <cltang@codesourcery.com>
30777
30778 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
30779 TARGET_THUMB1_ONLY. Add comments.
30780
30781 2014-06-19 Tom de Vries <tom@codesourcery.com>
30782
30783 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
30784 return type to void.
30785 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
30786
30787 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30788
30789 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
30790 as "move", from depends_on.
30791
30792 2014-06-19 Terry Guo <terry.guo@arm.com>
30793
30794 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
30795 stage.
30796
30797 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
30798
30799 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
30800 Remove cr5.
30801 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
30802
30803 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
30804
30805 PR target/61550
30806 * config/sh/sh.c (prepare_move_operands): Don't process TLS
30807 addresses here if reload in progress or completed.
30808
30809 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
30810
30811 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
30812 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
30813 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
30814 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
30815 (mips_register_priority): New function that implements the target
30816 hook TARGET_REGISTER_PRIORITY.
30817 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
30818 (mips_lra_p): Likewise for TARGET_LRA_P.
30819 (TARGET_REGISTER_PRIORITY): Define macro.
30820 (TARGET_SPILL_CLASS): Likewise.
30821 (TARGET_LRA_P): Likewise.
30822 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
30823 classes.
30824 (REG_CLASS_NAMES): Likewise.
30825 (REG_CLASS_CONTENTS): Likewise.
30826 (BASE_REG_CLASS): Use M16_SP_REGS.
30827 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
30828 New set attribute to enable alternatives depending on the register
30829 allocator used.
30830 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
30831 (*lea64): Disable pattern for MIPS16.
30832 * config/mips/mips.opt (mlra): New option.
30833
30834 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
30835
30836 * lra-constraints.c (base_to_reg): New function.
30837 (process_address): Use new function.
30838
30839 2014-06-18 Tom de Vries <tom@codesourcery.com>
30840
30841 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
30842 * config/aarch64/aarch64.c
30843 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
30844 (aarch64_emit_call_insn): New function.
30845 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
30846 of emit_call_insn.
30847 * config/aarch64/aarch64.md (define_expand "call_internal")
30848 (define_expand "call_value_internal", define_expand "sibcall_internal")
30849 (define_expand "sibcall_value_internal"): New.
30850 (define_expand "call", define_expand "call_value")
30851 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
30852 expand variant and aarch64_emit_call_insn.
30853
30854 2014-06-18 Radovan Obradovic <robradovic@mips.com>
30855 Tom de Vries <tom@codesourcery.com>
30856
30857 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
30858 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
30859 Redefine to true.
30860 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
30861 clobbers to CALL_INSN_FUNCTION_USAGE.
30862 (define_expand "sibcall_internal")
30863 (define_expand "sibcall_value_internal"): New.
30864 (define_expand "call", define_expand "call_value"): Add argument to
30865 arm_emit_call_insn.
30866 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
30867 (define_expand "sibcall_value"): Use sibcall_value_internal and
30868 arm_emit_call_insn.
30869
30870 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30871
30872 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
30873
30874 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30875
30876 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
30877 __udivmoddi4.
30878
30879 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30880
30881 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
30882 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
30883 annotations. Fix DWARF information.
30884
30885 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30886
30887 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
30888 __udivmoddi4, and fixups for negative operands.
30889
30890 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30891
30892 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
30893
30894 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30895
30896 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
30897 to __udivmoddi4.
30898
30899 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30900
30901 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
30902 manipulation.
30903
30904 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30905
30906 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
30907 describing register usage on function entry and exit.
30908
30909 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30910
30911 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
30912 (__aeabi_ldivmod): Fix whitespace.
30913
30914 2014-06-18 Andreas Schwab <schwab@suse.de>
30915
30916 * doc/md.texi (Standard Names): Use @itemx for grouped items.
30917 Remove blank line after @item.
30918
30919 2014-06-18 Richard Henderson <rth@redhat.com>
30920
30921 PR target/61545
30922 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
30923
30924 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30925
30926 * config/arm/arm.c (neon_vector_mem_operand): Allow register
30927 POST_MODIFY for neon loads and stores.
30928 (arm_print_operand): Output post-index register for neon loads and
30929 stores.
30930
30931 2014-06-18 Richard Biener <rguenther@suse.de>
30932
30933 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
30934
30935 2014-06-18 Richard Biener <rguenther@suse.de>
30936
30937 * tree-pass.h (make_pass_dce_loop): Remove.
30938 * passes.def: Replace pass_dce_loop with pass_dce.
30939 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
30940 changed free niter estimates and reset the scev cache.
30941 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
30942 make_pass_dce_loop): Remove.
30943 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
30944 (fini_copy_prop): Return whether something changed. Always
30945 let substitute_and_fold perform DCE and free niter estimates
30946 and reset the scev cache if so.
30947 (execute_copy_prop): If sth changed schedule cleanup-cfg.
30948 (pass_data_copy_prop): Do not unconditionally schedule
30949 cleanup-cfg or update-ssa.
30950
30951 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
30952
30953 PR tree-optimization/61518
30954 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
30955 reduction var is used in reduction stmt or phi-function only.
30956
30957 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30958
30959 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
30960
30961 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
30962
30963 PR tree-optimization/61517
30964 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
30965 whose rhs's first tree is the source expression instead of the
30966 expression itself.
30967 (find_bswap_or_nop): Likewise.
30968 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
30969 gimple stmt whose rhs's first tree is the source. In the memory source
30970 case, move the stmt to be replaced close to one of the original load to
30971 avoid the problem of a store between the load and the stmt's original
30972 location.
30973 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
30974 signature.
30975
30976 2014-06-18 Andreas Schwab <schwab@suse.de>
30977
30978 PR rtl-optimization/54555
30979 * postreload.c (move2add_use_add2_insn): Substitute
30980 STRICT_LOW_PART only if it is cheaper.
30981
30982 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
30983
30984 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
30985 Do not use unspec as call operand. Use memory_operand instead of
30986 memory_nox32_operand and add "m" operand constraint. Disable
30987 pattern for TARGET_X32.
30988 (*sibcall_pop_memory): Ditto.
30989 (*sibcall_value_memory): Ditto.
30990 (*sibcall_value_pop_memory): Ditto.
30991 (sibcall peepholes): Merge SImode and DImode patterns using
30992 W mode iterator. Use memory_operand instead of memory_nox32_operand.
30993 Disable pattern for TARGET_X32. Check if eliminated register is
30994 really dead after call insn. Generate call RTX without unspec operand.
30995 (sibcall_value peepholes): Ditto.
30996 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
30997 instead of memory_nox32_operand. Check if eliminated register is
30998 really dead after call insn. Generate call RTX without unspec operand.
30999 (sibcall_value_pop peepholes): Ditto.
31000 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
31001
31002 2014-06-18 Terry Guo <terry.guo@arm.com>
31003
31004 PR target/61544
31005 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
31006 reach the head.
31007
31008 2014-06-18 Olivier Hainque <hainque@adacore.com>
31009
31010 * tree-core.h (tree_block): Add an "end_locus" field, allowing
31011 memorization of the end of block source location.
31012 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
31013 * gimplify.c (gimplify_bind_expr): Propagate the block start and
31014 end source location info we have on the block entry/exit code we
31015 generate.
31016
31017 2014-06-18 Richard Biener <rguenther@suse.de>
31018
31019 * common.opt (fssa-phiopt): New option.
31020 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
31021 but not with -Og.
31022 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
31023 * doc/invoke.texi (-fssa-phiopt): Document.
31024
31025 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31026
31027 * genattrtab.c (n_bypassed): New variable.
31028 (process_bypasses): Initialise n_bypassed.
31029 Count number of bypassed reservations.
31030 (make_automaton_attrs): Allocate space for bypassed reservations
31031 rather than number of bypasses.
31032
31033 2014-06-18 Richard Biener <rguenther@suse.de>
31034
31035 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
31036 we propagated anything.
31037 (substitute_and_fold_dom_walker::before_dom_children): Something
31038 changed if we propagated into PHI arguments.
31039 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
31040 we removed a stmt.
31041
31042 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
31043
31044 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
31045 vector case.
31046 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
31047 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
31048 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
31049 Introduces alternative way of loads group permutaions.
31050 (vect_transform_grouped_load): Try alternative way of permutations.
31051
31052 2014-06-18 Jakub Jelinek <jakub@redhat.com>
31053
31054 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
31055 changed in ORT_TARGET region, don't jump to do_outer.
31056 (struct gimplify_adjust_omp_clauses_data): New type.
31057 (gimplify_adjust_omp_clauses_1): Adjust for data being
31058 a struct gimplify_adjust_omp_clauses_data pointer instead
31059 of tree *. Pass pre_p as a new argument to
31060 lang_hooks.decls.omp_finish_clause hook.
31061 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
31062 splay_tree_foreach to pass both list_p and pre_p.
31063 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
31064 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
31065 gimplify_adjust_omp_clauses callers.
31066 * langhooks.c (lhd_omp_finish_clause): New function.
31067 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
31068 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
31069 * langhooks.h (struct lang_hooks_for_decls): Add a new
31070 gimple_seq * argument to omp_finish_clause hook.
31071 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
31072 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
31073 (scan_omp_parallel, lower_omp_for): When adding
31074 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
31075 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
31076 * tree-nested.c (convert_nonlocal_omp_clauses,
31077 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
31078 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
31079
31080 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
31081
31082 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
31083 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
31084
31085 2014-06-17 Xinliang David Li <davidxl@google.com>
31086
31087 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
31088 * passes.c (pass_init_dump_file): Do not set initialize
31089 flag to false unconditionally.
31090
31091 2014-06-17 Richard Biener <rguenther@suse.de>
31092
31093 * genopinit.c (main): Use vec<>::qsort method.
31094 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
31095 Likewise.
31096 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
31097
31098 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
31099
31100 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
31101 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
31102 (mips_move_to_gpr_cost): Remove ST_REGS case.
31103 (mips_move_from_gpr_cost): Likewise.
31104 (mips_register_move_cost): Likewise.
31105 (mips_secondary_reload_class): Likewise.
31106
31107 2014-06-17 Richard Biener <rguenther@suse.de>
31108
31109 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
31110 (pass_all_optimizations): Move 3rd copy-prop pass from after
31111 fre to before ifcombine/phiopt.
31112
31113 2014-06-17 Richard Biener <rguenther@suse.de>
31114
31115 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
31116 and allow all blocks to be forwarders.
31117
31118 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
31119
31120 PR target/61483
31121 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
31122 variable 'size'; calculate 'size' right in the front; use
31123 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
31124 pcum->aapcs_stack_words.
31125
31126 2014-06-17 Nick Clifton <nickc@redhat.com>
31127
31128 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
31129 (umulhi3, mulsidi3, umulsidi3): Likewise.
31130
31131 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
31132
31133 PR middle-end/61508
31134 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
31135 check for section name.
31136
31137 2014-06-17 Richard Biener <rguenther@suse.de>
31138
31139 * tree-ssa-propagate.c: Include domwalk.h.
31140 (substitute_and_fold): Outline main worker into a domwalker ...
31141 (substitute_and_fold_dom_walker::before_dom_children): ... here.
31142 Schedule stmts we can fully propagate for removal. Remove
31143 poor-mans DCE.
31144 (substitute_and_fold): Apply a dominator walk to perform
31145 substitution. Process stmts scheduled for removal here.
31146
31147 2014-06-17 Richard Biener <rguenther@suse.de>
31148
31149 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
31150 of PHI node moving.
31151
31152 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
31153
31154 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
31155 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
31156 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
31157 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
31158 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
31159 TARGET_HARD_FLOAT.
31160 (get_fpscr) : Likewise.
31161
31162 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
31163
31164 PR rtl-optimization/61325
31165 * lra-constraints.c (valid_address_p): Add forward declaration.
31166 (simplify_operand_subreg): Check address validity before and after
31167 alter_reg of memory subreg.
31168
31169 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
31170
31171 * config/i386/i386.c (decide_alg): Correctly handle
31172 maximum size of stringop algorithm.
31173
31174 2014-06-16 Yury Gribov <y.gribov@samsung.com>
31175
31176 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
31177
31178 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
31179
31180 PR rtl-optimization/61522
31181 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
31182
31183 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
31184
31185 Revert:
31186 * symtab.c (symtab_node::reset_section): New method.
31187 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
31188 for localization.
31189 * cgraph.h (reset_section): Declare.
31190 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
31191 do not consider comdat locals.
31192 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
31193 for new symbol.
31194 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
31195 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
31196 reset sections of symbols dragged out of the comdats.
31197 (function_and_variable_visibility): Reset sections of
31198 localized symbols.
31199
31200 2014-06-16 Richard Biener <rguenther@suse.de>
31201
31202 PR tree-optimization/61482
31203 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
31204 [-INF(OVF), +INF(OVF)] range.
31205
31206 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
31207
31208 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
31209 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
31210 handling 32-bit multiplication.
31211
31212 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
31213
31214 PR middle-end/61430
31215 * lra-lives.c (process_bb_lives): Skip creating copy during
31216 insn scan when src/dest has constrained to same regno.
31217
31218 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
31219
31220 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
31221 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
31222
31223 2014-06-16 Yury Gribov <y.gribov@samsung.com>
31224
31225 * asan.c (check_func): New function.
31226 (maybe_create_ssa_name): Likewise.
31227 (build_check_stmt_with_calls): Likewise.
31228 (use_calls_p): Likewise.
31229 (report_error_func): Change interface.
31230 (build_check_stmt): Allow non-integer lengths; add support
31231 for new parameter.
31232 (asan_instrument): Likewise.
31233 (instrument_mem_region_access): Moved code to build_check_stmt.
31234 (instrument_derefs): Likewise.
31235 (instrument_strlen_call): Likewise.
31236 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
31237 * doc/invoke.texi: Describe new parameter.
31238 * params.def: Define new parameter.
31239 * params.h: Likewise.
31240 * sanitizer.def: Describe new builtins.
31241
31242 2014-06-16 Richard Biener <rguenther@suse.de>
31243
31244 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
31245 Make all defs available at the end.
31246 (eliminate): If we remove a PHI node schedule cfg-cleanup.
31247
31248 2014-06-18 Jakub Jelinek <jakub@redhat.com>
31249
31250 PR plugins/45078
31251 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
31252
31253 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
31254
31255 PR bootstrap/61516
31256 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
31257 initialization. Replace remaining use of uid.
31258
31259 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
31260
31261 * c-family/c-common.c (handle_tls_model_attribute): Use
31262 set_decl_tls_model.
31263 * c-family/c-common.c (handle_tls_model_attribute): Use
31264 set_decl_tls_model.
31265 * cgraph.h (struct varpool_node): Add tls_model.
31266 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
31267 * tree.h (DECL_TLS_MODEL): Update.
31268 (DECL_THREAD_LOCAL_P): Check that variable is static.
31269 (decl_tls_model): Declare.
31270 (set_decl_tls_model): Declare.
31271 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
31272 set symbol prorperties.
31273 (get_emutls_init_templ_addr): Cleanup.
31274 (new_emutls_decl): Update.
31275 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
31276 (lto_input_varpool_node): Likewise.
31277 * lto-streamer-out.c (hash_tree): Likewise.
31278 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
31279 not stream DECL_TLS_MODEL.
31280 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
31281 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
31282
31283 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
31284
31285 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
31286
31287 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
31288
31289 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
31290 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
31291 lists.
31292 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
31293 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
31294 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
31295 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
31296 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
31297 (df_get_artificial_defs, df_get_artificial_uses)
31298 (df_single_def, df_single_use): Update accordingly.
31299 (df_refs_chain_dump): Take the first element in a linked list as
31300 parameter, rather than a pointer to an array of pointers.
31301 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
31302 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
31303 (df_chain_create_bb_process_use): Likewise.
31304 (df_md_bb_local_compute_process_def): Likewise.
31305 * fwprop.c (process_defs, process_uses): Likewise.
31306 (register_active_defs, update_uses): Likewise.
31307 (forward_propagate_asm): Update for new df_ref linking.
31308 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
31309 (df_null_ref_rec, df_null_mw_rec): Likewise.
31310 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
31311 explicitly.
31312 (df_scan_free_bb_info): Remove check for null artificial_defs.
31313 (df_install_ref_incremental): Adjust for new df_ref linking.
31314 Use a single-element insertion rather than a full sort.
31315 (df_ref_chain_delete_du_chain): Take the first element
31316 in a linked list as parameter, rather than a pointer to an array of
31317 pointers.
31318 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
31319 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
31320 (df_insn_info_delete): Remove check for null defs and call to
31321 df_scan_free_mws_vec.
31322 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
31323 null rather than df_null_*_rec.
31324 (df_insn_rescan_debug_internal): Likewise, and update null
31325 checks in the same way. Remove check for null defs.
31326 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
31327 Move a single element rather doing a full sort.
31328 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
31329 linking.
31330 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
31331 Initialize df_ref and df_mw_hardreg lists to null rather than
31332 df_null_*_rec.
31333 (df_ref_compare): Take df_refs as parameter, transferring the
31334 old interface to...
31335 (df_ref_ptr_compare): ...this new function.
31336 (df_sort_and_compress_refs): Update accordingly.
31337 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
31338 old interface to...
31339 (df_mw_ptr_compare): ...this new function.
31340 (df_sort_and_compress_mws): Update accordingly.
31341 (df_install_refs, df_install_mws): Return a linked list rather than
31342 an array of pointers.
31343 (df_refs_add_to_chains): Assert that old lists are empty rather
31344 than freeing them.
31345 (df_insn_refs_verify): Don't handle null defs speciailly.
31346 * web.c (union_match_dups): Update for new df_ref linking.
31347
31348 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
31349
31350 * df.h (df_ref_create, df_ref_remove): Delete.
31351 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
31352 (df_ref_remove): Likewise.
31353
31354 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
31355
31356 * df.h (df_single_def, df_single_use): New functions.
31357 * ira.c (find_moveable_pseudos): Use them.
31358
31359 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
31360
31361 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
31362 * df-problems.c (df_note_bb_compute): Use it.
31363 * regstat.c (regstat_bb_compute_ri): Likewise.
31364
31365 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
31366
31367 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
31368 * cse.c (cse_extended_basic_block): Use them.
31369 * dce.c (mark_artificial_use): Likewise.
31370 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
31371 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
31372 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
31373 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
31374 (df_simulate_initialize_backwards): Likewise.
31375 (df_simulate_finalize_backwards): Likewise.
31376 (df_simulate_initialize_forwards): Likewise.
31377 (df_md_simulate_artificial_defs_at_top): Likewise.
31378 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
31379 * regrename.c (init_rename_info): Likewise.
31380 * regstat.c (regstat_bb_compute_ri): Likewise.
31381 (regstat_bb_compute_calls_crossed): Likewise.
31382
31383 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
31384
31385 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
31386 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
31387 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
31388 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
31389 * combine.c (create_log_links): Likewise.
31390 * compare-elim.c (find_flags_uses_in_insn): Likewise.
31391 (try_eliminate_compare): Likewise.
31392 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
31393 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
31394 (remove_reg_equal_equiv_notes_for_defs): Likewise.
31395 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
31396 (word_dce_process_block, dce_process_block): Likewise.
31397 * ddg.c (def_has_ccmode_p): Likewise.
31398 * df-core.c (df_bb_regno_first_def_find): Likewise.
31399 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
31400 * df-problems.c (df_rd_simulate_one_insn): Likewise.
31401 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
31402 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
31403 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
31404 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
31405 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
31406 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
31407 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
31408 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
31409 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
31410 * fwprop.c (local_ref_killed_between_p): Likewise.
31411 (all_uses_available_at, free_load_extend): Likewise.
31412 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
31413 * hw-doloop.c (scan_loop): Likewise.
31414 * ifcvt.c (dead_or_predicable): Likewise.
31415 * init-regs.c (initialize_uninitialized_regs): Likewise.
31416 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
31417 (process_bb_node_lives): Likewise.
31418 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
31419 (find_moveable_pseudos): Likewise.
31420 * loop-invariant.c (check_dependencies, record_uses): Likewise.
31421 * recog.c (peep2_find_free_register): Likewise.
31422 * ree.c (get_defs): Likewise.
31423 * regstat.c (regstat_bb_compute_ri): Likewise.
31424 (regstat_bb_compute_calls_crossed): Likewise.
31425 * sched-deps.c (find_inc, find_mem): Likewise.
31426 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
31427 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
31428 * shrink-wrap.c (requires_stack_frame_p): Likewise.
31429 (prepare_shrink_wrap): Likewise.
31430 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
31431 * web.c (union_defs, pass_web::execute): Likewise.
31432 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
31433 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
31434
31435 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
31436
31437 * lra-assign.c (assign_by_spills): Add code to assign vector regs
31438 to inheritance pseudos.
31439 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
31440
31441 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
31442
31443 PR target/61415
31444 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
31445 (BU_MISC_2): Rename to ...
31446 (BU_LDBL128_2): ... this.
31447 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
31448 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
31449 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
31450 RS6000_BTM_LDBL128.
31451 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
31452 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
31453 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
31454 (unpacktf_1): Likewise.
31455 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
31456 (__builtin_longdouble_dw1): Likewise.
31457 * doc/sourcebuild.texi (longdouble128): Document.
31458
31459 2014-06-13 Jeff Law <law@redhat.com>
31460
31461 PR rtl-optimization/61094
31462 PR rtl-optimization/61446
31463 * ree.c (combine_reaching_defs): Get the mode for the copy from
31464 the extension insn rather than the defining insn.
31465
31466 2014-06-13 Dehao Chen <dehao@google.com>
31467
31468 * dwarf2out.c (add_linkage_name): Emit more linkage name.
31469
31470 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
31471
31472 * doc/install.texi (--enable-linker-plugin-configure-flags)
31473 (--enable-linker-plugin-flags): Document new flags.
31474
31475 2014-06-13 Martin Jambor <mjambor@suse.cz>
31476
31477 PR ipa/61186
31478 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
31479 cache_token if returning early.
31480
31481 2014-06-13 Nick Clifton <nickc@redhat.com>
31482
31483 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
31484 requested alignment is active.
31485 (LABEL_ALIGN): Likewise.
31486 (LOOP_ALIGN): Likewise.
31487
31488 2014-06-13 Richard Biener <rguenther@suse.de>
31489
31490 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
31491 Rewrite to propagate the VN result into all uses where
31492 possible and to remove stmts becoming dead because of that.
31493 (eliminate): Generalize stmt removal handling, remove in
31494 reverse dominator order to support proper debug stmt
31495 generation. Update stmts before removing stmts.
31496 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
31497
31498 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
31499
31500 PR tree-optimization/61375
31501 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
31502 symbolic number cannot be represented in an uint64_t.
31503 (find_bswap_or_nop_1): Likewise.
31504
31505 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
31506
31507 * symtab.c (symtab_node::reset_section): New method.
31508 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
31509 for localization.
31510 * cgraph.h (reset_section): Declare.
31511 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
31512 do not consider comdat locals.
31513 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
31514 for new symbol.
31515 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
31516 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
31517 reset sections of symbols dragged out of the comdats.
31518 (function_and_variable_visibility): Reset sections of
31519 localized symbols.
31520
31521 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
31522
31523 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
31524 to use symtab and decl_binds_to_current_def_p
31525 * tree-vectorizer.c (increase_alignment): Increase alignment
31526 of alias target, too.
31527
31528 2014-06-12 Jakub Jelinek <jakub@redhat.com>
31529
31530 PR middle-end/61486
31531 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
31532 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
31533 if outer combined construct is distribute.
31534 (gimplify_omp_for): For OMP_DISTRIBUTE set
31535 gimplify_omp_ctxp->distribute.
31536 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
31537 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
31538 mapping into decl map.
31539
31540 2014-06-12 Jason Merrill <jason@redhat.com>
31541
31542 * common.opt (fabi-version): Change default to 0.
31543
31544 2014-06-12 Jason Merrill <jason@redhat.com>
31545
31546 * toplev.c (process_options): Reject -fabi-version=1.
31547
31548 2014-06-12 Jeff Law <law@redhat.com>
31549
31550 PR tree-optimization/61009
31551 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
31552 value when we stop processing a block due to problematic PHIs.
31553
31554 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
31555
31556 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
31557 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
31558 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
31559 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
31560 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
31561 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
31562 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
31563 are not in the spec.
31564
31565 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
31566
31567 PR target/59843
31568 * config/aarch64/aarch64-modes.def: Add V1DFmode.
31569 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
31570 Support V1DFmode.
31571
31572 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
31573
31574 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
31575
31576 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
31577
31578 PR target/61443
31579 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
31580 loading from address spaces.
31581
31582 2014-06-12 Martin Liska <mliska@suse.cz>
31583
31584 PR ipa/61462
31585 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
31586 statement is reachable.
31587
31588 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
31589
31590 * symtab.c (section_hash): New hash.
31591 (symtab_unregister_node): Clear section before freeing.
31592 (hash_section_hash_entry): New haser.
31593 (eq_sections): New function.
31594 (symtab_node::set_section_for_node): New method.
31595 (set_section_1): Update.
31596 (symtab_node::set_section): Take string instead of tree as parameter.
31597 (symtab_resolve_alias): Update.
31598 * cgraph.h (section_hash_entry_d): New structure.
31599 (section_hash_entry): New typedef.
31600 (cgraph_node): Change comdat_group_ to x_comdat_group,
31601 change section_ to x_section and turn into section_hash_entry;
31602 update accestors; put set_section_for_node offline.
31603 * tree.c (decl_section_name): Turn into string.
31604 (set_decl_section_name): Change parameter to be string.
31605 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
31606 * sdbout.c (sdbout_one_type): Update.
31607 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
31608 * varasm.c (IN_NAMED_SECTION, get_named_section,
31609 resolve_unique_section, hot_function_section, get_named_text_section,
31610 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
31611 make_decl_rtl, default_unique_section): Update.
31612 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
31613 (c6x_elf_unique_section): Update.
31614 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
31615 * config/pa/pa.c (pa_function_section): Update.
31616 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
31617 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
31618 * config/arc/arc.c (arc_in_small_data_p): Update.
31619 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
31620 * config/mcore/mcore.c (mcore_unique_section): Update.
31621 * config/mips/mips.c (mips16_build_function_stub): Update.
31622 (mips16_build_call_stub): Update.
31623 (mips_function_rodata_section): Update.
31624 (mips_in_small_data_p): Update.
31625 * config/score/score.c (score_in_small_data_p): Update.
31626 * config/rx/rx.c (rx_in_small_data): Update.
31627 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
31628 (rs6000_xcoff_asm_named_section): Update.
31629 (rs6000_xcoff_unique_section): Update.
31630 * config/frv/frv.c (frv_string_begins_with): Update.
31631 (frv_in_small_data_p): Update.
31632 * config/v850/v850.c (v850_encode_data_area): Update.
31633 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
31634 (bfin_handle_l1_data_attribute): Update.
31635 (bfin_handle_l2_attribute): Update.
31636 * config/mep/mep.c (mep_unique_section): Update.
31637 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
31638 Update.
31639 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
31640 (h8300_handle_tiny_data_attribute): Update.
31641 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
31642 (m32r_in_small_data_p): Update.
31643 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
31644 * config/i386/i386.c (ix86_in_large_data_p): Update.
31645 * config/i386/winnt.c (i386_pe_unique_section): Update.
31646 * config/darwin.c (darwin_function_section): Update.
31647 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
31648 * tree-emutls.c (get_emutls_init_templ_addr): Update.
31649 (new_emutls_decl): Update.
31650 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
31651 input_varpool_node): Update.
31652 (ead_string_cst): Turn to ...
31653 (read_string): ... this one.
31654 * dwarf2out.c (secname_for_decl): Update.
31655 * asan.c (asan_protect_global): Update.
31656
31657 2014-06-11 DJ Delorie <dj@redhat.com>
31658
31659 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
31660 cache lines.
31661 * config/rx/rx.c (rx_option_override): Likewise.
31662 (rx_align_for_label): Likewise.
31663
31664 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
31665
31666 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
31667
31668 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
31669 prototype.
31670
31671 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
31672
31673 * common.md: New file.
31674 * doc/md.texi: Update description of generic, machine-independent
31675 constraints.
31676 * config/s390/constraints.md (e): Delete.
31677 * Makefile.in (md_file): Include common.md.
31678 * config/m32c/t-m32c (md_file): Likewise.
31679 * genpreds.c (general_mem): New array.
31680 (generic_constraint_letters): Remove constraints now defined by
31681 common.md.
31682 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
31683 Allow the first character to be '<' or '>' as well.
31684 * genoutput.c (general_mem): New array.
31685 (indep_constraints): Remove constraints now defined by common.md.
31686 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
31687 Remove special handling of 'm'.
31688 * ira-costs.c (record_reg_classes): Remove special handling of
31689 constraints now defined by common.md.
31690 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
31691 * ira-lives.c (single_reg_class): Likewise.
31692 (ira_implicitly_set_insn_hard_regs): Likewise.
31693 * lra-constraints.c (reg_class_from_constraints): Likewise.
31694 (process_alt_operands, process_address, curr_insn_transform): Likewise.
31695 * postreload.c (reload_cse_simplify_operands): Likewise.
31696 * reload.c (push_secondary_reload, scratch_reload_class)
31697 (find_reloads, alternative_allows_const_pool_ref): Likewise.
31698 * reload1.c (maybe_fix_stack_asms): Likewise.
31699 * targhooks.c (default_secondary_reload): Likewise.
31700 * stmt.c (parse_output_constraint): Likewise.
31701 * recog.c (preprocess_constraints): Likewise.
31702 (constrain_operands, peep2_find_free_register): Likewise.
31703 (asm_operand_ok): Likewise, but add a comment saying why 'o'
31704 must be handled specially.
31705
31706 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
31707
31708 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
31709 * genpreds.c (have_const_dbl_constraints): Delete.
31710 (add_constraint): Don't set it.
31711 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
31712 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
31713 constraints using the lookup_constraint logic.
31714 * ira-lives.c (single_reg_class): Likewise.
31715 * ira.c (ira_setup_alts): Likewise.
31716 * lra-constraints.c (process_alt_operands): Likewise.
31717 * recog.c (asm_operand_ok, constrain_operands): Likewise.
31718 * reload.c (find_reloads): Likewise.
31719
31720 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
31721
31722 * genpreds.c (const_int_start, const_int_end): New variables.
31723 (choose_enum_order): Output CONST_INT constraints before memory
31724 constraints.
31725 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
31726 Add CT_CONST_INT.
31727 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
31728 * ira.c (ira_setup_alts): Likewise.
31729 * lra-constraints.c (process_alt_operands): Likewise.
31730 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
31731 * reload.c (find_reloads): Likewise.
31732
31733 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
31734
31735 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
31736 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
31737 * recog.c (preprocess_constraints): Update accordingly.
31738
31739 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
31740
31741 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
31742 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
31743 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
31744 * genpreds.c (print_type_tree): New function.
31745 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
31746 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
31747 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
31748 Write out enum constraint_type and get_constraint_type.
31749 * lra-constraints.c (satisfies_memory_constraint_p): Take a
31750 constraint_num rather than a constraint string.
31751 (satisfies_address_constraint_p): Likewise.
31752 (reg_class_from_constraints): Avoid old constraint macros.
31753 (process_alt_operands, process_address_1): Likewise.
31754 (curr_insn_transform): Likewise.
31755 * ira-costs.c (record_reg_classes): Likewise.
31756 (record_operand_costs): Likewise.
31757 * ira-lives.c (single_reg_class): Likewise.
31758 (ira_implicitly_set_insn_hard_regs): Likewise.
31759 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
31760 * postreload.c (reload_cse_simplify_operands): Likewise.
31761 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
31762 (constrain_operands, peep2_find_free_register): Likewise.
31763 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
31764 (find_reloads, alternative_allows_const_pool_ref): Likewise.
31765 * reload1.c (maybe_fix_stack_asms): Likewise.
31766 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
31767 * targhooks.c (default_secondary_reload): Likewise.
31768 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
31769 to EXTRA_CONSTRAINT_STR.
31770 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
31771
31772 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
31773
31774 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
31775 (write_constraint_satisfied_p_array): ...this new function.
31776 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
31777 an array.
31778 (write_insn_preds_c): Update accordingly.
31779
31780 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
31781
31782 * genpreds.c (write_lookup_constraint): Rename to...
31783 (write_lookup_constraint_1): ...this.
31784 (write_lookup_constraint_array): New function.
31785 (write_tm_preds_h): Define lookup_constraint as an inline function
31786 that uses write_lookup_constraint_array where possible.
31787 (write_insn_preds_c): Update for the changes above.
31788
31789 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
31790
31791 * doc/md.texi (regclass_for_constraint): Rename to...
31792 (reg_class_for_constraint): ...this.
31793 * genpreds.c (num_constraints, enum_order, register_start)
31794 (register_end, satisfied_start, memory_start, memory_end)
31795 (address_start, address_end): New variables.
31796 (add_constraint): Count the number of constraints.
31797 (choose_enum_order): New function.
31798 (write_enum_constraint_num): Iterate over enum_order.
31799 (write_regclass_for_constraint): Rename to...
31800 (write_reg_class_for_constraint_1): ...this and update output
31801 accordingly.
31802 (write_constraint_satisfied_p): Rename to...
31803 (write_constraint_satisfied_p_1): ...this and update output
31804 accordingly. Do nothing if all extra constraints are register
31805 constraints.
31806 (write_insn_extra_memory_constraint): Delete.
31807 (write_insn_extra_address_constraint): Delete.
31808 (write_range_function): New function.
31809 (write_tm_preds_h): Define constraint_satisfied_p and
31810 reg_class_for_constraint as inline functions that do a range check
31811 before calling the out-of-line function. Use write_range_function
31812 to implement insn_extra_{register,memory,address}_constraint,
31813 the first of which is new.
31814 (write_insn_preds_c): Update after above changes to write_* functions.
31815 (main): Call choose_enum_order.
31816
31817 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
31818
31819 PR tree-optimization/61306
31820 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
31821 expression instead of its size.
31822 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
31823 false to prevent optimization when the result is unpredictable due to
31824 arithmetic right shift of signed type with highest byte is set.
31825 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
31826 (init_symbolic_number): Likewise.
31827 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
31828 when the result is unpredictable due to sign extension.
31829
31830 2014-06-11 Terry Guo <terry.guo@arm.com>
31831
31832 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
31833 (*thumb1_addsi3): Ditto.
31834 (*thumb_subdi3): Ditto.
31835 (thumb1_subsi3_insn): Ditto.
31836 (*thumb_mulsi3): Ditto.
31837 (*thumb_mulsi3_v6): Ditto.
31838 (*thumb1_andsi3_insn): Ditto.
31839 (thumb1_bicsi3): Ditto.
31840 (*thumb1_iorsi3_insn): Ditto.
31841 (*thumb1_xorsi3_insn): Ditto.
31842 (*thumb1_ashlsi3): Ditto.
31843 (*thumb1_ashrsi3): Ditto.
31844 (*thumb1_lshrsi3): Ditto.
31845 (*thumb1_rotrsi3): Ditto.
31846 (*thumb1_negdi2): Ditto.
31847 (*thumb1_negsi2): Ditto.
31848 (*thumb1_abssi2): Ditto.
31849 (*thumb1_neg_abssi2): Ditto.
31850 (*thumb1_one_cmplsi2): Ditto.
31851 (*thumb1_zero_extendhisi2): Ditto.
31852 (*thumb1_zero_extendqisi2): Ditto.
31853 (*thumb1_zero_extendqisi2_v6): Ditto.
31854 (thumb1_extendhisi2): Ditto.
31855 (thumb1_extendqisi2): Ditto.
31856 (*thumb1_movdi_insn): Ditto.
31857 (*thumb1_movsi_insn): Ditto.
31858 (*thumb1_movhi_insn): Ditto.
31859 (thumb_movhi_clobber): Ditto.
31860 (*thumb1_movqi_insn): Ditto.
31861 (*thumb1_movhf): Ditto.
31862 (*thumb1_movsf_insn): Ditto.
31863 (*thumb_movdf_insn): Ditto.
31864 (movmem12b): Ditto.
31865 (movmem8b): Ditto.
31866 (cbranchqi4): Ditto.
31867 (cbranchsi4_insn): Ditto.
31868 (cbranchsi4_scratch): Ditto.
31869 (*negated_cbranchsi4): Ditto.
31870 (*tbit_cbranch): Ditto.
31871 (*tlobits_cbranch): Ditto.
31872 (*tstsi3_cbranch): Ditto.
31873 (*cbranchne_decr1): Ditto.
31874 (*addsi3_cbranch): Ditto.
31875 (*addsi3_cbranch_scratch): Ditto.
31876 (*thumb_cmpdi_zero): Ditto.
31877 (cstoresi_eq0_thumb1): Ditto.
31878 (cstoresi_ne0_thumb1): Ditto.
31879 (*cstoresi_eq0_thumb1_insn): Ditto.
31880 (*cstoresi_ne0_thumb1_insn): Ditto.
31881 (cstoresi_nltu_thumb1): Ditto.
31882 (cstoresi_ltu_thumb1): Ditto.
31883 (thumb1_addsi3_addgeu): Ditto.
31884 (*thumb_jump): Ditto.
31885 (*call_reg_thumb1_v5): Ditto.
31886 (*call_reg_thumb1): Ditto.
31887 (*call_value_reg_thumb1_v5): Ditto.
31888 (*call_value_reg_thumb1): Ditto.
31889 (*call_insn): Ditto.
31890 (*call_value_insn): Ditto.
31891 (thumb1_casesi_internal_pic): Ditto.
31892 (thumb1_casesi_dispatch): Ditto.
31893 (*thumb1_indirect_jump): Ditto.
31894 (prologue_thumb1_interwork): Ditto.
31895 (*epilogue_insns): Ditto.
31896 (consttable_1): Ditto.
31897 (consttable_2): Ditto.
31898 (tablejump): Ditto.
31899 (*thumb1_tablejump): Ditto.
31900 (thumb_eh_return): Ditto.
31901 (define_peephole2): Two of them are thumb1 only and got moved into
31902 new file thumb1.md.
31903 (define_split): Six of them are thumb1 only and got moved into new
31904 file thumb1.md.
31905 * config/arm/thumb1.md: New file comprised of above thumb1 only
31906 patterns.
31907
31908 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31909
31910 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
31911 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
31912 dependencies.
31913 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
31914 (aarch64_crc_builtin_datum): New struct.
31915 (aarch64_crc_builtin_data): New.
31916 (aarch64_init_crc32_builtins): New function.
31917 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
31918 (aarch64_crc32_expand_builtin): New.
31919 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
31920 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
31921 __ARM_FEATURE_CRC32 when appropriate.
31922 (TARGET_CRC32): Define.
31923 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
31924 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
31925 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
31926 (aarch64_<crc_variant>): New pattern.
31927 * config/aarch64/arm_acle.h: New file.
31928 * config/aarch64/iterators.md (CRC): New int iterator.
31929 (crc_variant, crc_mode): New int attributes.
31930 * doc/aarch64-acle-intrinsics.texi: New file.
31931 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
31932 Include aarch64-acle-intrinsics.texi.
31933
31934 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
31935
31936 * tree-vect-data-refs.c (vect_grouped_store_supported): New
31937 check for stores group of length 3.
31938 (vect_permute_store_chain): New permutations for stores group of
31939 length 3.
31940 * tree-vect-stmts.c (vect_model_store_cost): Change cost
31941 of vec_perm_shuffle for the new permutations.
31942
31943 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
31944
31945 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
31946 table rewriting temporarily on targets not supporting ONE_ONLY.
31947
31948 2014-06-11 Richard Biener <rguenther@suse.de>
31949
31950 PR middle-end/61437
31951 Revert
31952 2014-06-04 Richard Biener <rguenther@suse.de>
31953
31954 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
31955 TREE_PUBLIC and DECL_EXTERNAL decls.
31956
31957 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
31958
31959 * varasm.c (set_implicit_section): New function.
31960 (resolve_unique_section): Use it to set implicit section
31961 for aliases, too.
31962 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
31963 (default_function_section): Likewise.
31964 (decl_binds_to_current_def_p): Constify argument.
31965 * varasm.h (decl_binds_to_current_def_p): Update prototype.
31966 * asan.c (asan_protect_global): Use
31967 symtab_get_node (decl)->implicit_section.
31968 * symtab.c (dump_symtab_base): Dump implicit sections.
31969 (verify_symtab_base): Verify sanity of sectoins and comdats.
31970 (symtab_resolve_alias): Alias share the section of its target.
31971 (set_section_1): New function.
31972 (symtab_node::set_section): Move here, recurse to aliases.
31973 (verify_symtab): Check for duplicated symtab lists.
31974 * tree-core.h (implicit_section_name_p): Remove.
31975 * tree-vect-data-refs.c: Include varasm.h.
31976 (vect_can_force_dr_alignment_p): Fix conditional on when
31977 decl bints to current definition; use
31978 symtab_get_node (decl)->implicit_section.
31979 * cgraph.c (cgraph_make_node_local_1): Fix section set.
31980 * cgraph.h (struct symtab_node): Add implicit_section.
31981 (set_section): Rename to ...
31982 (set_section_for_node): ... this one.
31983 (set_section): Declare.
31984 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
31985 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
31986 input_overwrite_node, input_varpool_node): Stream implicit_section.
31987 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
31988 removal; it will fail in LTO.
31989
31990 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31991
31992 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
31993 Change second alternative type to f_mcr.
31994 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
31995 and 12th alternatives' types to f_mcr and f_mrc.
31996 (*movdi_aarch64): Same for 12th and 13th alternatives.
31997 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
31998 (aarch64_movtilow_tilow): Change type to fmov.
31999
32000 2014-06-10 Jiong Wang <jiong.wang@arm.com>
32001
32002 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
32003 (aarch64_save_or_restore_callee_save_registers): Fix layout.
32004
32005 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32006
32007 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
32008 New expander.
32009 (aarch64_sqrdmulh_lane<mode>): Likewise.
32010 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
32011 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
32012 (aarch64_sqdmulh_laneq<mode>): New expander.
32013 (aarch64_sqrdmulh_laneq<mode>): Likewise.
32014 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
32015 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
32016 (aarch64_sqdmulh_lane<mode>): New expander.
32017 (aarch64_sqrdmulh_lane<mode>): Likewise.
32018 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
32019 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
32020 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
32021 (aarch64_sqdmlal_laneq<mode>): Likewise.
32022 (aarch64_sqdmlsl_lane<mode>): Likewise.
32023 (aarch64_sqdmlsl_laneq<mode>): Likewise.
32024 (aarch64_sqdmlal2_lane<mode>): Likewise.
32025 (aarch64_sqdmlal2_laneq<mode>): Likewise.
32026 (aarch64_sqdmlsl2_lane<mode>): Likewise.
32027 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
32028 (aarch64_sqdmull_lane<mode>): Likewise.
32029 (aarch64_sqdmull_laneq<mode>): Likewise.
32030 (aarch64_sqdmull2_lane<mode>): Likewise.
32031 (aarch64_sqdmull2_laneq<mode>): Likewise.
32032
32033 2014-06-10 Richard Biener <rguenther@suse.de>
32034
32035 PR tree-optimization/61438
32036 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
32037 (eliminate_dom_walker::before_dom_children): Only try to inhibit
32038 insertion of IVs if running PRE.
32039 (eliminate): Adjust.
32040 (pass_pre::execute): Likewise.
32041 (pass_fre::execute): Likewise.
32042
32043 2014-06-10 Richard Biener <rguenther@suse.de>
32044
32045 PR middle-end/61456
32046 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
32047 Do not use the main variant for the type comparison.
32048 (ncr_compar): Likewise.
32049 (nonoverlapping_component_refs_p): Likewise.
32050
32051 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
32052
32053 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
32054 REG_CFA_RESTORE mode.
32055
32056 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
32057
32058 * config/i386/i386.c (expand_vec_perm_pblendv): New.
32059 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
32060 expand_vec_perm_pblendv.
32061
32062 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32063
32064 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
32065 available.
32066 Simplify description of __crc32d and __crc32cd intrinsics.
32067 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
32068 availability.
32069
32070 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
32071
32072 PR lto/61334
32073 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
32074 * config.in: Regenerate.
32075 * configure: Likewise.
32076
32077 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
32078
32079 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
32080 and public vars.
32081 (intersect_static_var_sets): Remove.
32082 (propagate): Do not prune local statics.
32083
32084 2014-06-10 Jakub Jelinek <jakub@redhat.com>
32085
32086 PR fortran/60928
32087 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
32088 Set lastprivate_firstprivate even if omp_private_outer_ref
32089 langhook returns true.
32090 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
32091 langhook, call unshare_expr on new_var and call
32092 build_outer_var_ref to get the last argument.
32093
32094 2014-06-10 Marek Polacek <polacek@redhat.com>
32095
32096 PR c/60988
32097 * doc/extend.texi: Add cindex for transparent_union.
32098
32099 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
32100
32101 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
32102 init_symbolic_number ().
32103
32104 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
32105
32106 PR middle-end/61141
32107 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
32108 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
32109 (verify_rtl_sharing): Likewise.
32110
32111 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
32112
32113 PR c++/54442
32114 * tree.c (build_qualified_type): Use a canonical type for
32115 TYPE_CANONICAL.
32116
32117 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32118
32119 * config/arm/arm-modes.def: Remove XFmode.
32120
32121 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
32122
32123 PR target/61062
32124 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
32125 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
32126 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
32127 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
32128 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
32129 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
32130 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
32131 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
32132 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
32133
32134 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
32135
32136 * tree-core.h (tree_decl_with_vis): Remove section_name.
32137
32138 2014-06-09 Kito Cheng <kito@0xlab.org>
32139
32140 * ira.c (ira): Don't call init_caller_save if LRA enabled
32141 since LRA use its own infrastructure to handle that.
32142
32143 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
32144
32145 * symtab.c (dump_symtab_base): Update dumping.
32146 (symtab_make_decl_local): Clear only DECL_COMDAT.
32147 * tree-vect-data-refs.c (Check that variable is static before
32148 tampering with sections.
32149 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
32150 (cgraph_create_virtual_clone): Likewise.
32151 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
32152 (decl_section_name, set_decl_section_name): New accessors.
32153 (find_decls_types_r): Do not walk section name
32154 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
32155 (decl_comdat_group, decl_comdat_group_id): Constify.
32156 (decl_section_name, set_decl_section_name): Update.
32157 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
32158 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
32159 (cgraph_make_node_local_1): Clear section and comdat group.
32160 * cgraph.h (set_comdat_group): Sanity check.
32161 (get_section, set_section): New.
32162 * ipa-comdats.c (ipa_comdats): Use get_section.
32163 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
32164 * lto-streamer-out.c: Do not follow section names.
32165 * c-family/c-common.c (handle_section_attribute): Update.
32166 * lto-cgraph.c (lto_output_node): Output section.
32167 (lto_output_varpool_node): Likewise.
32168 (read_comdat_group): Rename to ...
32169 (read_identifier): ... this one.
32170 (read_string_cst): New function.
32171 (input_node, input_varpool_node): Input section names.
32172 * tree-emutls.c (get_emutls_init_templ_addr): Update.
32173 (new_emutls_decl): Update.
32174 (secname_for_decl): Check section names only of static vars.
32175 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
32176 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
32177 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
32178 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
32179 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
32180 * config/mcore/mcore.c (mcore_unique_section): Likewise.
32181 * config/mips/mips.c (mips16_build_function_stub): Likewise.
32182 * config/v850/v850.c (v850_insert_attributes): Likewise.
32183 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
32184 Likewise.
32185 (h8300_handle_tiny_data_attribute): Likewise.
32186 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
32187 (bfin_handle_l2_attribute): Likewise.
32188
32189 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
32190
32191 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
32192 remove static initializer.
32193
32194 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
32195
32196 * varasm.c (use_blocks_for_decl_p): Check symbol table
32197 instead of alias attribute.
32198 (place_block_symbol): Recurse on aliases.
32199
32200 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
32201
32202 * ipa-visibility.c: Include varasm.h
32203 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
32204
32205 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
32206
32207 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
32208 outputting aliases.
32209
32210 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
32211
32212 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
32213 from test_insn into GGC space escape via SET_SRC.
32214
32215 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
32216
32217 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
32218 call statement, if any.
32219 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
32220 statements, if any. Tidy up.
32221
32222 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
32223
32224 PR target/61431
32225 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
32226 iterators, VSX_D that handles 64-bit types, and VSX_LE that
32227 handles swapping the two 64-bit double words on little endian
32228 systems. Include V1TImode and optionally TImode in VSX_LE so that
32229 these types are properly swapped. Change all of the insns and
32230 splits that do the 64-bit swaps to use VSX_LE.
32231 (vsx_le_perm_load_<mode>): Likewise.
32232 (vsx_le_perm_store_<mode>): Likewise.
32233 (splitters for little endian memory operations): Likewise.
32234 (vsx_xxpermdi2_le_<mode>): Likewise.
32235 (vsx_lxvd2x2_le_<mode>): Likewise.
32236 (vsx_stxvd2x2_le_<mode>): Likewise.
32237
32238 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
32239
32240 PR target/61423
32241 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
32242 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
32243 and corresponding splitters. Zero extend general register
32244 or memory input operand to XMM temporary. Enable for
32245 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
32246 (floatunssi<mode>2): Update expander predicate.
32247
32248 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
32249
32250 PR rtl-optimization/61325
32251 * lra-constraints.c (process_address_1): Check scale equal to one
32252 to prevent transformation: base + scale * index => base + new_reg.
32253
32254 2014-06-06 Richard Biener <rguenther@suse.de>
32255
32256 PR tree-optimization/59299
32257 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
32258 a def operand.
32259 (nearest_common_dominator_of_uses): Likewise.
32260 (statement_sink_location): Adjust. Support sinking loads.
32261
32262 2014-06-06 Martin Jambor <mjambor@suse.cz>
32263
32264 * ipa-prop.c (get_place_in_agg_contents_list): New function.
32265 (build_agg_jump_func_from_list): Likewise.
32266 (determine_known_aggregate_parts): Renamed to
32267 determine_locally_known_aggregate_parts. Moved some functionality
32268 to the two functions above, removed bound checks.
32269
32270 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
32271
32272 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
32273 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
32274 (aarch64_progress_pointer): Likewise.
32275 (aarch64_copy_one_part_and_move_pointers): Likewise.
32276 (aarch64_expand_movmen): Likewise.
32277 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
32278 * config/aarch64/aarch64.md (movmem<mode>): New.
32279
32280 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
32281
32282 * targhooks.c (default_add_stmt_cost): Call target specific
32283 hook instead of default one.
32284
32285 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
32286
32287 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
32288 endianness instead of host endianness.
32289 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
32290 comments.
32291
32292 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
32293
32294 PR debug/53927
32295 * function.c (instantiate_decls): Process the saved static chain.
32296 (expand_function_start): If not optimizing, save the static chain
32297 onto the stack.
32298 * tree-nested.c (convert_all_function_calls): Always create the static
32299 chain for nested functions if not optimizing.
32300
32301 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
32302
32303 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
32304
32305 2014-06-06 Richard Biener <rguenther@suse.de>
32306
32307 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
32308 (construct_init_block): Likewise.
32309 (construct_exit_block): Likewise.
32310 (pass_expand::execute): Likewise.
32311 * graphite.c (graphite_transforms): Replace check for current_loops
32312 with a check for > 1 loops.
32313 (pass_graphite_transforms::execute): Adjust.
32314 * ipa-split.c (split_function): Remove check for current_loops.
32315 * omp-low.c (expand_parallel_call): Likewise.
32316 (expand_omp_for_init_counts): Likewise.
32317 (extract_omp_for_update_vars): Likewise.
32318 (expand_omp_for_generic): Likewise.
32319 (expand_omp_sections): Likewise.
32320 (expand_omp_target): Likewise.
32321 * tracer.c (tail_duplicate): Likewise.
32322 (pass_tracer::execute): Likewise.
32323 * trans-mem.c (expand_transaction): Likewise.
32324 * tree-complex.c (expand_complex_div_wide): Likewise.
32325 * tree-eh.c (lower_resx): Likewise.
32326 (cleanup_empty_eh_merge_phis): Likewise.
32327 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
32328 current_loops with a check for > 1 loops.
32329 (pass_predcom::execute): Adjust.
32330 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
32331 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
32332 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
32333 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
32334 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
32335 * tree-switch-conversion.c (process_switch): Likewise.
32336 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
32337 * tree-vrp.c (vrp_visit_phi_node): Likewise.
32338 (execute_vrp): Likewise.
32339 * ubsan.c (ubsan_expand_null_ifn): Likewise.
32340
32341 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
32342
32343 * rtl.h (insn_location): Declare.
32344 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
32345 with UNKNOWN_LOCATION.
32346 * emit-rtl.c (insn_location): New function.
32347 * final.c (notice_source_line): Check that the instruction has a
32348 location before retrieving it and use insn_location.
32349 * modulo-sched.c (loop_single_full_bb_p): Likewise.
32350 * print-rtl.c (print_rtx): Likewise.
32351
32352 2014-06-06 Richard Biener <rguenther@suse.de>
32353
32354 * passes.def: Move 2nd VRP pass before phi-only-cprop.
32355
32356 2014-06-06 Christian Bruel <christian.bruel@st.com>
32357
32358 PR tree-optimization/43934
32359 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
32360 cost.
32361
32362 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
32363
32364 * ira-lives.c (single_reg_class): Add missing break. Explicitly
32365 return NO_REGS for extra address and memory constraints. Handle
32366 operands that match (or are equivalent to something that matches)
32367 extra constant constraints. Ignore other non-register operands.
32368
32369 2014-06-06 Alan Modra <amodra@gmail.com>
32370
32371 PR target/61300
32372 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
32373 * doc/tm.texi: Regenerate.
32374 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
32375 Use throughout in place of REG_PARM_STACK_SPACE.
32376 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
32377 "incoming" param. Pass to rs6000_function_parms_need_stack.
32378 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
32379 prototype_p when incoming. Use function decl when incoming
32380 to handle K&R style functions.
32381 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
32382 (INCOMING_REG_PARM_STACK_SPACE): Define.
32383
32384 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32385
32386 PR target/52472
32387 * cfgexpand.c (expand_debug_expr): Use address space of nested
32388 TREE_TYPE for ADDR_EXPR and MEM_REF.
32389
32390 2014-06-05 Jeff Law <law@redhat.com>
32391
32392 PR tree-optimization/61289
32393 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
32394 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
32395 looking for those which match LHS. All callers changed.
32396 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
32397 parameters and code which manipulated them. All callers changed.
32398 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
32399 and DST_MAP parameters. Simplify invalidation code by just calling
32400 invalidate_equivalences. All callers changed.
32401 (thread_across_edge): Simplify now that we don't need to maintain
32402 the map of equivalences to invalidate.
32403
32404 2014-06-05 Kai Tietz <ktietz@redhat.com>
32405 Richard Henderson <rth@redhat.com>
32406
32407 PR target/46219
32408 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
32409 checking for !TARGET_X32.
32410 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
32411 (sibcall_intern): New define_insn, plus required peepholes.
32412 (sibcall_pop_intern): Likewise.
32413 (sibcall_value_intern): Likewise.
32414 (sibcall_value_pop_intern): Likewise.
32415
32416 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
32417
32418 * tree-inline.c (tree_function_versioning): Check DF info existence
32419 before accessing it.
32420
32421 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
32422
32423 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
32424 frame_size.
32425 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
32426 aarch64_frame hard_fp_offset and frame_size.
32427 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
32428 frame_size; remove original_frame_size.
32429 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
32430 (aarch64_initial_elimination_offset): Remove frame_size and
32431 offset. Use aarch64_frame frame_size.
32432
32433 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
32434 Jiong Wang <jiong.wang@arm.com>
32435 Renlin <renlin.li@arm.com>
32436
32437 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
32438 initialization of R30 offset. Update offset. Iterate core
32439 regisers upto X30. Remove X29, X30 specific code.
32440
32441 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
32442 Jiong Wang <jiong.wang@arm.com>
32443
32444 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
32445 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
32446 (aarch64_register_saved_on_entry): Adjust test.
32447
32448 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
32449
32450 * config/aarch64/aarch64.h (machine_function): Move
32451 saved_varargs_size from here...
32452 (aarch64_frame): ... to here.
32453
32454 * config/aarch64/aarch64.c (aarch64_expand_prologue)
32455 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
32456 (aarch64_initial_elimination_offset)
32457 (aarch64_setup_incoming_varargs): Adjust location of
32458 saved_varargs_size.
32459
32460 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
32461
32462 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
32463 layout comment.
32464
32465 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
32466 Prachi Godbole <Prachi.Godbole@imgtec.com>
32467
32468 * config/mips/mips-cpus.def: Add definition for p5600. Updated
32469 mips32r5 entry to use PROCESSOR_P5600.
32470 * config/mips/mips-tables.opt: Regenerate.
32471 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
32472 * config/mips/mips.c (mips_fmadd_bypass): New function.
32473 (mips_rtx_cost_data): Add costs for p5600.
32474 (mips_issue_rate): Add support for p5600.
32475 (mips_multipass_dfa_lookahead): Likewise.
32476 * config/mips/mips.h (TUNE_P5600): New define.
32477 (TUNE_MACC_CHAINS): Add TUNE_P5600.
32478 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
32479 * config/mips/mips.md: Include p5600.md.
32480 (processor): Add p5600.
32481 * config/mips/p5600.md: New file.
32482
32483 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
32484
32485 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
32486 * config/i386/predicates.md (palignr_operand): New.
32487 Indicates if permutation is suitable for palignr instruction.
32488
32489 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
32490
32491 PR tree-optimization/61319
32492 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
32493 stmt belongs to loop.
32494
32495 2014-06-05 Richard Biener <rguenther@suse.de>
32496
32497 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
32498 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
32499 (lookup_tmp_var): Adjust.
32500 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
32501
32502 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32503
32504 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
32505
32506 2014-06-05 Marek Polacek <polacek@redhat.com>
32507
32508 PR c/49706
32509 * doc/invoke.texi: Document -Wlogical-not-parentheses.
32510
32511 2014-06-04 Tom de Vries <tom@codesourcery.com>
32512
32513 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
32514 CONST_INT.
32515
32516 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
32517
32518 PR tree-optimization/61385
32519 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
32520
32521 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
32522
32523 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
32524 changed to use fatal_error.
32525 (main): Ensure lto_wrapper_cleanup is run atexit.
32526
32527 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
32528
32529 * lra-constraints.c (valid_address_p): Move earlier in file.
32530 (address_eliminator): New structure.
32531 (satisfies_memory_constraint_p): New function.
32532 (satisfies_address_constraint_p): Likewise.
32533 (process_alt_operands, process_address, curr_insn_transform): Use them.
32534
32535 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
32536
32537 * lra-int.h (lra_static_insn_data): Make operand_alternative a
32538 const pointer.
32539 (target_lra_int, default_target_lra_int, this_target_lra_int)
32540 (op_alt_data): Delete.
32541 * lra.h (lra_init): Delete.
32542 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
32543 (init_insn_code_data_once): Remove op_alt_data handling.
32544 (finish_insn_code_data_once): Likewise.
32545 (init_op_alt_data): Delete.
32546 (get_static_insn_data): Initialize operand_alternative to null.
32547 (free_insn_recog_data): Cast operand_alternative before freeing it.
32548 (setup_operand_alternative): Take the operand_alternative as
32549 parameter and assume it isn't already cached in the static
32550 insn data.
32551 (lra_set_insn_recog_data): Update accordingly.
32552 (lra_init): Delete.
32553 * ira.c (ira_init): Don't call lra_init.
32554 * target-globals.h (this_target_lra_int): Declare.
32555 (target_globals): Remove lra_int.
32556 (restore_target_globals): Update accordingly.
32557 * target-globals.c: Don't include lra-int.h.
32558 (default_target_globals, save_target_globals): Remove lra_int.
32559
32560 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
32561
32562 * recog.h (operand_alternative): Convert reg_class, reject,
32563 matched and matches into bitfields.
32564 (preprocess_constraints): New overload.
32565 (preprocess_insn_constraints): New function.
32566 (preprocess_constraints): Take the insn as parameter.
32567 (recog_op_alt): Change into a pointer.
32568 (target_recog): Add x_op_alt.
32569 * recog.c (asm_op_alt): New variable.
32570 (recog_op_alt): Change into a pointer.
32571 (preprocess_constraints): New overload, replacing the old function
32572 definition with one that doesn't use global state.
32573 (preprocess_insn_constraints): New function.
32574 (preprocess_constraints): Use them. Take the insn as parameter.
32575 Use asm_op_alt for asms.
32576 (recog_init): Free existing x_op_alt entries.
32577 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
32578 pointer const.
32579 (make_early_clobber_and_input_conflicts): Likewise.
32580 (process_bb_node_lives): Pass the insn to process_constraints.
32581 * reg-stack.c (check_asm_stack_operands): Likewise.
32582 (subst_asm_stack_regs): Likewise.
32583 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
32584 * regrename.c (build_def_use): Likewise.
32585 * sched-deps.c (sched_analyze_insn): Likewise.
32586 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
32587 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
32588 (note_invalid_constants): Likewise.
32589 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
32590 (ix86_legitimate_combined_insn): Make operand_alternative pointer
32591 const.
32592
32593 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
32594
32595 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
32596 * ira-lives.c (check_and_make_def_conflict): Check for disabled
32597 alternatives.
32598 (make_early_clobber_and_input_conflicts): Likewise.
32599 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
32600
32601 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
32602
32603 * recog.h (alternative_class): New function.
32604 (which_op_alt): Return a const recog_op_alt.
32605 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
32606 (subst_asm_stack_regs): Likewise.
32607 * config/arm/arm.c (note_invalid_constants): Likewise.
32608 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
32609 the operand_alternative; use alternative class instead.
32610 * sel-sched.c (get_reg_class): Likewise.
32611 * regrename.c (build_def_use): Likewise.
32612 (hide_operands, restore_operands, record_out_operands): Update type
32613 accordingly.
32614
32615 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
32616
32617 * recog.h (recog_op_alt): Convert to a flat array.
32618 (which_op_alt): New function.
32619 * recog.c (recog_op_alt): Convert to a flat array.
32620 (preprocess_constraints): Update accordingly, grouping all
32621 operands of the same alternative together, rather than the
32622 other way around.
32623 * ira-lives.c (check_and_make_def_conflict): Likewise.
32624 (make_early_clobber_and_input_conflicts): Likewise.
32625 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
32626 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
32627 (subst_asm_stack_regs): Likewise.
32628 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
32629 * regrename.c (hide_operands, record_out_operands): Likewise.
32630 (build_def_use): Likewise.
32631 * sel-sched.c (get_reg_class): Likewise.
32632 * config/arm/arm.c (note_invalid_constants): Likewise.
32633
32634 2014-06-04 Jason Merrill <jason@redhat.com>
32635
32636 PR c++/51253
32637 PR c++/61382
32638 * gimplify.c (gimplify_arg): Non-static.
32639 * gimplify.h: Declare it.
32640
32641 2014-06-04 Richard Biener <rguenther@suse.de>
32642
32643 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
32644 TREE_PUBLIC and DECL_EXTERNAL decls.
32645
32646 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
32647
32648 * regcprop.c (copyprop_hardreg_forward_1): Account for
32649 HARD_REGNO_CALL_PART_CLOBBERED.
32650
32651 2014-06-04 Richard Biener <rguenther@suse.de>
32652
32653 * configure.ac: Check whether the underlying type of int64_t
32654 is long or long long.
32655 * configure: Regenerate.
32656 * config.in: Likewise.
32657 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
32658 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
32659
32660 2014-06-04 Richard Biener <rguenther@suse.de>
32661
32662 PR tree-optimization/60098
32663 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
32664 we hit a kill.
32665 (dse_optimize_stmt): Simplify, now that we found a kill
32666 earlier.
32667
32668 2014-06-04 Richard Biener <rguenther@suse.de>
32669
32670 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
32671 of accesses with non-invariant address.
32672
32673 2014-06-04 Martin Liska <mliska@suse.cz>
32674
32675 * cgraph.h (cgraph_make_wrapper): New function introduced.
32676 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
32677 * ipa-inline.h (inline_analyze_function): The function is global.
32678 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
32679
32680 2014-06-04 Martin Liska <mliska@suse.cz>
32681
32682 * tree.h (private_lookup_attribute_starting): New function.
32683 (lookup_attribute_starting): Likewise.
32684 * tree.c (private_lookup_attribute_starting): Likewise.
32685
32686 2014-06-04 Martin Liska <mliska@suse.cz>
32687
32688 * cgraph.h (expand_thunk): New argument added.
32689 (address_taken_from_non_vtable_p): New global function.
32690 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
32691 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
32692 * cgraphunit.c (analyze_function): Likewise.
32693 (assemble_thunks_and_aliases): Argument added to call.
32694 (expand_thunk): New argument forces to produce GIMPLE thunk.
32695
32696 2014-06-04 Martin Liska <mliska@suse.cz>
32697
32698 * coverage.h (coverage_compute_cfg_checksum): Argument added.
32699 * coverage.c (coverage_compute_cfg_checksum): Likewise.
32700 * profile.c (branch_prob): Likewise.
32701
32702 2014-06-04 Martin Jambor <mjambor@suse.cz>
32703
32704 PR ipa/61340
32705 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
32706 handler for switch on an ipa_ref_use enum.
32707 * ipa-reference.c (analyze_function): Likewise.
32708
32709 2014-06-04 Kai Tietz <ktietz@redhat.com>
32710
32711 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
32712 from old call-instruction.
32713
32714 2014-06-04 Bin Cheng <bin.cheng@arm.com>
32715
32716 * config/aarch64/aarch64.c (aarch64_classify_address)
32717 (aarch64_legitimize_reload_address): Support full addressing modes
32718 for vector modes.
32719 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
32720 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
32721
32722 2014-06-03 Andrew Pinski <apinski@cavium.com>
32723
32724 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
32725 for OP0.
32726
32727 2014-06-03 Andrew Pinski <apinski@cavium.com>
32728
32729 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
32730 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
32731
32732 2014-06-03 Kai Tietz <ktietz@redhat.com>
32733
32734 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
32735 for 64-bit ms-abi.
32736
32737 2014-06-03 Dehao Chen <dehao@google.com>
32738
32739 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
32740 the same loop.
32741
32742 2014-06-03 Marek Polacek <polacek@redhat.com>
32743
32744 PR c/60439
32745 * doc/invoke.texi: Document -Wswitch-bool.
32746 * function.c (stack_protect_epilogue): Cast controlling expression of
32747 the switch to int.
32748 * gengtype.c (walk_type): Generate switch expression with its
32749 controlling expression cast to int.
32750
32751 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
32752
32753 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
32754 and attiny841.
32755 * config/avr/avr-tables.opt: Regenerate.
32756 * config/avr/t-multilib: Regenerate.
32757 * doc/avr-mmcu.texi: Regenerate.
32758
32759 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
32760 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
32761
32762 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
32763 (ata6617c, ata664251): Add new avr35 devices.
32764 (ata6612c): Add new avr4 device.
32765 (ata6613c, ata6614q): Add new avr5 devices.
32766 * config/avr/avr-tables.opt: Regenerate.
32767 * config/avr/t-multilib: Regenerate.
32768 * doc/avr-mmcu.texi: Regenerate.
32769
32770 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
32771
32772 * gcc/config/aarch64/aarch64-builtins.c
32773 (aarch64_types_binop_ssu_qualifiers): New static data.
32774 (TYPES_BINOP_SSU): Define.
32775 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
32776 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
32777 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
32778 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
32779 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
32780 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
32781 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
32782 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
32783 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
32784 suffix to builtin function name, remove cast.
32785 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
32786 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
32787 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
32788
32789 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
32790
32791 * gcc/config/aarch64/aarch64-builtins.c
32792 (aarch64_types_binop_uus_qualifiers,
32793 aarch64_types_shift_to_unsigned_qualifiers,
32794 aarch64_types_unsigned_shiftacc_qualifiers): Define.
32795 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
32796 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
32797 sqshlu_n, uqshl_n): Update qualifiers.
32798 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
32799 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
32800 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
32801 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
32802 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
32803 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
32804 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
32805 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
32806 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
32807 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
32808 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
32809 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
32810 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
32811 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
32812 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
32813 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
32814 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
32815 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
32816 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
32817 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
32818 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
32819 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
32820 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
32821 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
32822 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
32823 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
32824 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
32825
32826 2014-06-03 Teresa Johnson <tejohnson@google.com>
32827
32828 * tree-sra.c (modify_function): Record caller nodes after rebuild.
32829
32830 2014-06-02 Jason Merrill <jason@redhat.com>
32831
32832 PR c++/61020
32833 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
32834
32835 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
32836
32837 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
32838 location == 0.
32839
32840 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
32841
32842 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
32843 New pattern.
32844 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
32845 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
32846 * config/aarch64/iterators.md (REVERSE): New iterator.
32847 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
32848 (rev_op): New int_attribute.
32849 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
32850 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
32851 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
32852 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
32853 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
32854 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
32855 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
32856 Replace temporary __asm__ with __builtin_shuffle.
32857
32858 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
32859
32860 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
32861 mips64r5.
32862 * config/mips/mips-tables.opt: Regenerate.
32863 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
32864 to use mips_isa_rev rather than ISA_MIPS32R2.
32865 * config/mips/mips.h (ISA_MIPS32R3): New define.
32866 (ISA_MIPS32R5): New define.
32867 (ISA_MIPS64R3): New define.
32868 (ISA_MIPS64R5): New define.
32869 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
32870 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
32871 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
32872 and mips64r5.
32873 (MIPS_ISA_SYNCI_SPEC): Likewise.
32874 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
32875 (LINK_SPEC): Added mips32r3 and mips32r5.
32876 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
32877 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
32878 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
32879 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
32880 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
32881 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
32882 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
32883
32884 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
32885
32886 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
32887 options.
32888 * config/mips/mips.opt (mxpa): New option.
32889 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
32890 assembler.
32891
32892 2014-06-03 Martin Jambor <mjambor@suse.cz>
32893
32894 PR ipa/61160
32895 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
32896 thunks.
32897
32898 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
32899
32900 PR tree-optimization/61328
32901 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
32902 initialization from find_bswap_or_nop_1.
32903 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
32904 in source_expr2 before using the size value the function sets. Also
32905 make use of init_symbolic_number () in both the old place and
32906 find_bswap_or_nop_load () to avoid reading uninitialized memory when
32907 doing recursion in the GIMPLE_BINARY_RHS case.
32908
32909 2014-06-03 Richard Biener <rguenther@suse.de>
32910
32911 PR tree-optimization/61383
32912 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
32913 stmts can't trap.
32914
32915 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
32916
32917 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
32918 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
32919 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
32920 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
32921 in this file.
32922 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
32923 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
32924 * system.h: ...here and make it unconditional.
32925 * target.def (conditional_register_usage): Mention
32926 define_register_constraint instead of old-style constraint macros.
32927 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
32928 * doc/tm.texi: Regenerate.
32929 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
32930 protected by !USE_MD_CONSTRAINTS.
32931 * config/frv/frv.md: Remove quote from old version of documentation.
32932 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
32933 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
32934 CONST_DOUBLE_OK_FOR_LETTER.
32935 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
32936
32937 2014-06-02 Andrew Pinski <apinski@cavium.com>
32938
32939 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
32940 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
32941 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
32942 file whose name depends on -mabi= and -mbig-endian.
32943 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
32944 Handle LP64 better and handle ilp32 too.
32945 (MULTILIB_OPTIONS): Delete.
32946 (MULTILIB_DIRNAMES): Delete.
32947
32948 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
32949
32950 * expr.h: Remove prototypes of functions defined in builtins.c.
32951 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
32952 Remove prototypes of functions defined in builtins.c.
32953 * builtins.h: Update prototype list to include all exported functions.
32954 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
32955 no_c99_libc_has_function): Move to targhooks.c
32956 (build_string_literal, build_call_expr_loc_array,
32957 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
32958 to tree.c.
32959 (expand_builtin_object_size, fold_builtin_object_size): Make static.
32960 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
32961 no_c99_libc_has_function): Relocate from builtins.c.
32962 * tree.c: Include builtins.h.
32963 (build_call_expr_loc_array, build_call_expr_loc_vec,
32964 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
32965 from builtins.c.
32966 * fold-const.h (fold_fma): Move prototype to builtins.h.
32967 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
32968 * asan.c: Include builtins.h.
32969 * cfgexpand.c: Likewise.
32970 * convert.c: Likewise.
32971 * emit-rtl.c: Likewise.
32972 * except.c: Likewise.
32973 * expr.c: Likewise.
32974 * fold-const.c: Likewise.
32975 * gimple-fold.c: Likewise.
32976 * gimple-ssa-strength-reduction.c: Likewise.
32977 * gimplify.c: Likewise.
32978 * ipa-inline.c: Likewise.
32979 * ipa-prop.c: Likewise.
32980 * lto-streamer-out.c: Likewise.
32981 * stmt.c: Likewise.
32982 * tree-inline.c: Likewise.
32983 * tree-object-size.c: Likewise.
32984 * tree-sra.c: Likewise.
32985 * tree-ssa-ccp.c: Likewise.
32986 * tree-ssa-forwprop.c: Likewise.
32987 * tree-ssa-loop-ivcanon.c: Likewise.
32988 * tree-ssa-loop-ivopts.c: Likewise.
32989 * tree-ssa-math-opts.c: Likewise.
32990 * tree-ssa-reassoc.c: Likewise.
32991 * tree-ssa-threadedge.c: Likewise.
32992 * tree-streamer-in.c: Likewise.
32993 * tree-vect-data-refs.c: Likewise.
32994 * tree-vect-patterns.c: Likewise.
32995 * tree-vect-stmts.c: Likewise.
32996 * config/aarch64/aarch64.c: Likewise.
32997 * config/alpha/alpha.c: Likewise.
32998 * config/arc/arc.c: Likewise.
32999 * config/arm/arm.c: Likewise.
33000 * config/avr/avr.c: Likewise.
33001 * config/bfin/bfin.c: Likewise.
33002 * config/c6x/c6x.c: Likewise.
33003 * config/cr16/cr16.c: Likewise.
33004 * config/cris/cris.c: Likewise.
33005 * config/epiphany/epiphany.c: Likewise.
33006 * config/fr30/fr30.c: Likewise.
33007 * config/frv/frv.c: Likewise.
33008 * config/h8300/h8300.c: Likewise.
33009 * config/i386/i386.c: Likewise.
33010 * config/i386/winnt.c: Likewise.
33011 * config/ia64/ia64.c: Likewise.
33012 * config/iq2000/iq2000.c: Likewise.
33013 * config/lm32/lm32.c: Likewise.
33014 * config/m32c/m32c.c: Likewise.
33015 * config/m32r/m32r.c: Likewise.
33016 * config/m68k/m68k.c: Likewise.
33017 * config/mcore/mcore.c: Likewise.
33018 * config/mep/mep.c: Likewise.
33019 * config/microblaze/microblaze.c: Likewise.
33020 * config/mips/mips.c: Likewise.
33021 * config/mmix/mmix.c: Likewise.
33022 * config/mn10300/mn10300.c: Likewise.
33023 * config/moxie/moxie.c: Likewise.
33024 * config/msp430/msp430.c: Likewise.
33025 * config/nds32/nds32.c: Likewise.
33026 * config/pa/pa.c: Likewise.
33027 * config/pdp11/pdp11.c: Likewise.
33028 * config/picochip/picochip.c: Likewise.
33029 * config/rl78/rl78.c: Likewise.
33030 * config/rs6000/rs6000.c: Likewise.
33031 * config/rx/rx.c: Likewise.
33032 * config/s390/s390.c: Likewise.
33033 * config/score/score.c: Likewise.
33034 * config/sh/sh.c: Likewise.
33035 * config/sparc/sparc.c: Likewise.
33036 * config/spu/spu.c: Likewise.
33037 * config/stormy16/stormy16.c: Likewise.
33038 * config/tilegx/tilegx.c: Likewise.
33039 * config/tilepro/tilepro.c: Likewise.
33040 * config/v850/v850.c: Likewise.
33041 * config/vax/vax.c: Likewise.
33042 * config/xtensa/xtensa.c: Likewise.
33043
33044 2014-06-02 Jeff Law <law@redhat.com>
33045
33046 PR rtl-optimization/61094
33047 * ree.c (combine_reaching_defs): Do not reextend an insn if it
33048 was marked as do_no_reextend. If a copy is needed to eliminate
33049 an extension, then mark it as do_not_reextend.
33050
33051 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
33052
33053 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
33054
33055 2014-06-02 Richard Henderson <rth@redhat.com>
33056
33057 PR target/61336
33058 * config/alpha/alpha.c (print_operand_address): Allow symbolic
33059 addresses inside asms. Use output_operand_lossage instead of
33060 gcc_unreachable.
33061
33062 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
33063
33064 PR target/61239
33065 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
33066 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
33067
33068 2014-06-02 Tom de Vries <tom@codesourcery.com>
33069
33070 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
33071 case that x has VOIDmode.
33072
33073 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
33074
33075 * varasm.c (copy_constant): Delete function.
33076 (build_constant_desc): Don't call it.
33077
33078 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33079
33080 PR target/61154
33081 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
33082 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
33083 with immediate_operand.
33084
33085 2014-06-02 Andreas Schwab <schwab@suse.de>
33086
33087 * config/ia64/ia64.c
33088 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
33089 pending_data_specs first.
33090
33091 2014-06-02 Richard Biener <rguenther@suse.de>
33092
33093 PR tree-optimization/61378
33094 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
33095 valueized_anything.
33096
33097 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
33098
33099 * config/i386/constraints.md (Bw): Rename from 'w'.
33100 (Bz): Rename from 'z'.
33101 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
33102
33103 2014-06-01 Kai Tietz <ktietz@redhat.com>
33104
33105 PR target/61377
33106 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
33107 * config/i386/i386.md (sibcall_insn_operand): Use Bs
33108 instead of m constraint.
33109
33110 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
33111
33112 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
33113 a separate alternative where the scratch operand 2 is marked as
33114 early clobber.
33115
33116 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
33117
33118 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
33119 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
33120 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
33121 and __builtins_arm_get_fpscr.
33122 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
33123 __builtins_arm_get_fpscr.
33124 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
33125 __builtins_arm_ldfpscr.
33126 (arm_atomic_assign_expand_fenv): New function.
33127 * config/arm/vfp.md (set_fpscr): New pattern.
33128 (get_fpscr) : Likewise.
33129 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
33130 VUNSPEC_SET_FPSCR.
33131 * doc/extend.texi (AARCH64 Built-in Functions) : Document
33132 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
33133
33134 2014-05-30 Jakub Jelinek <jakub@redhat.com>
33135
33136 * asan.c (report_error_func): Add SLOW_P argument, use
33137 BUILT_IN_ASAN_*_N if set.
33138 (build_check_stmt): Likewise.
33139 (instrument_derefs): If T has insufficient alignment,
33140 force same handling as for odd sizes.
33141
33142 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
33143 BUILT_IN_ASAN_REPORT_STORE_N): New.
33144 * asan.c (struct asan_mem_ref): Change access_size type to
33145 HOST_WIDE_INT.
33146 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
33147 update_mem_ref_hash_table): Likewise.
33148 (asan_mem_ref_hasher::hash): Hash in a HWI.
33149 (report_error_func): Change size_in_bytes argument to HWI.
33150 Use *_N builtins if size_in_bytes is larger than 16 or not power of
33151 two.
33152 (build_shadow_mem_access): New function.
33153 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
33154 Handle size_in_bytes not power of two or larger than 16.
33155 (instrument_derefs): Don't give up if size_in_bytes is not
33156 power of two or is larger than 16.
33157
33158 2014-05-30 Kai Tietz <ktietz@redhat.com>
33159
33160 PR target/60104
33161 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
33162 for sibling-tail-calls.
33163 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
33164 to its use.
33165 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
33166 (sibcall_insn_operand): Add check for sibcall_memory_operand.
33167
33168 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
33169
33170 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
33171 * config/avr/avr-tables.opt: Regenerate.
33172 * config/avr/t-multilib: Regenerate.
33173 * doc/avr-mmcu.texi: Regenerate.
33174
33175 2014-05-30 Ian Lance Taylor <iant@google.com>
33176
33177 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
33178 target("sse").
33179
33180 2014-05-30 Tom de Vries <tom@codesourcery.com>
33181
33182 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
33183 Redefine as true.
33184
33185 2014-05-30 Tom de Vries <tom@codesourcery.com>
33186
33187 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
33188 * lra.c (initialize_lra_reg_info_element): Add init of
33189 actual_call_used_reg_set field.
33190 (lra): Call lra_create_live_ranges before lra_inheritance for
33191 -fuse-caller-save.
33192 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
33193 -fuse-caller-save.
33194 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
33195 instead of call_used_reg_set for -fuse-caller-save.
33196 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
33197
33198 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33199
33200 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
33201 to mov_imm.
33202 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
33203
33204 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
33205
33206 * ira.c (ira_get_dup_out_num): Check for output operands at
33207 the start of the loop. Handle cases where an included alternative
33208 follows an excluded one.
33209
33210 2014-05-29 Mike Stump <mikestump@comcast.net>
33211
33212 PR debug/61352
33213 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
33214 post ld passes when lto is used.
33215
33216 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
33217
33218 PR rtl-optimization/61325
33219 * lra-constraints.c (process_address): Rename to process_address_1.
33220 (process_address): New function.
33221
33222 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
33223
33224 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
33225 TYPES_BINOPV): New static data.
33226 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
33227 New builtin.
33228 * config/aarch64/aarch64-simd.md (aarch64_ext,
33229 aarch64_im_lane_boundsi): New patterns.
33230 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
33231 patterns for EXT.
33232 (aarch64_evpc_ext): New function.
33233
33234 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
33235
33236 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
33237 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
33238 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
33239 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
33240 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
33241
33242 2014-05-29 Tom de Vries <tom@codesourcery.com>
33243
33244 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
33245
33246 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
33247 Richard Sandiford <rdsandiford@googlemail.com>
33248
33249 * arm/iterators.md (shiftable_ops): New code iterator.
33250 (t2_binop0, arith_shift_insn): New code attributes.
33251 * arm/predicates.md (shift_nomul_operator): New predicate.
33252 * arm/arm.md (insn_enabled): Delete.
33253 (enabled): Remove insn_enabled test.
33254 (*arith_shiftsi): Delete. Replace with ...
33255 (*<arith_shift_insn>_multsi): ... new pattern.
33256 (*<arith_shift_insn>_shiftsi): ... new pattern.
33257 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
33258
33259 2014-05-29 Radovan Obradovic <robradovic@mips.com>
33260 Tom de Vries <tom@codesourcery.com>
33261
33262 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
33263 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
33264 clobber.
33265 (mips_split_call): Use POST_CALL_TMP_REG.
33266 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
33267
33268 2014-05-29 Tom de Vries <tom@codesourcery.com>
33269
33270 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
33271 with #ifdef STACK_REGS.
33272
33273 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
33274
33275 * varasm.c (get_variable_section): Walk aliases.
33276 (place_block_symbol): Walk aliases.
33277
33278 2014-05-28 Tom de Vries <tom@codesourcery.com>
33279
33280 Revert:
33281 2014-05-28 Tom de Vries <tom@codesourcery.com>
33282
33283 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
33284 * lra.c (initialize_lra_reg_info_element): Add init of
33285 actual_call_used_reg_set field.
33286 (lra): Call lra_create_live_ranges before lra_inheritance for
33287 -fuse-caller-save.
33288 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
33289 -fuse-caller-save.
33290 * lra-constraints.c (need_for_call_save_p): Use
33291 actual_call_used_reg_set instead of call_used_reg_set for
33292 -fuse-caller-save.
33293 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
33294
33295 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
33296
33297 * doc/md.texi: Document that the % constraint character must
33298 be at the beginning of the string.
33299 * genoutput.c (validate_insn_alternatives): Check that '=',
33300 '+' and '%' only appear at the beginning of a constraint.
33301 * ira.c (commutative_constraint_p): Delete.
33302 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
33303 at the start of the string.
33304 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
33305 duplicate '='s.
33306 * config/arm/neon.md (bicdi3_neon): Likewise.
33307 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
33308 (slt_si, sltu_si): Likewise.
33309 * config/vax/vax.md (sbcdi3): Likewise.
33310 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
33311 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
33312 (mul64): Move '%' to beginning of constraint.
33313 * config/arm/arm.md (*xordi3_insn): Likewise.
33314 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
33315 (xorsi3): Likewise.
33316
33317 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
33318
33319 * doc/md.texi: Document the restrictions on the "enabled" attribute.
33320
33321 2014-05-28 Jason Merrill <jason@redhat.com>
33322
33323 PR c++/47202
33324 * cgraph.h (symtab_node::get_comdat_group_id): New.
33325 * cgraphunit.c (analyze_functions): Call it.
33326 * symtab.c (dump_symtab_node): Likewise.
33327 * tree.c (decl_comdat_group_id): New.
33328 * tree.h: Declare it.
33329 * lto-streamer-out.c (write_symbol): Use it.
33330 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
33331
33332 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
33333
33334 PR bootstrap/PR61146
33335 * wide-int.cc: Do not include longlong.h when compiling with clang.
33336
33337 2014-05-28 Richard Biener <rguenther@suse.de>
33338
33339 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
33340 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
33341 (vrp_visit_assignment_or_call): Print less vertical space.
33342 (vrp_visit_stmt): Likewise.
33343 (vrp_visit_phi_node): Likewise. For a PHI argument with
33344 VR_VARYING range consider recording it as copy.
33345
33346 2014-05-28 Richard Biener <rguenther@suse.de>
33347
33348 Revert
33349 2014-05-28 Richard Biener <rguenther@suse.de>
33350
33351 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
33352
33353 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33354
33355 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
33356 sufficiently aligned and an offset is used at the same time.
33357 (expand_expr_real_1): Likewise.
33358
33359 2014-05-28 Richard Biener <rguenther@suse.de>
33360
33361 PR middle-end/61045
33362 * fold-const.c (fold_comparison): When folding
33363 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
33364 the sign of the remaining constant operand stays the same.
33365
33366 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
33367
33368 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
33369 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
33370 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
33371 to the assembler.
33372 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
33373 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
33374 (m32bit-doubles) Likewise.
33375 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
33376 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
33377 option for RL78.
33378
33379 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33380
33381 * configure.ac ($gcc_cv_ld_clearcap): New test.
33382 * configure: Regenerate.
33383 * config.in: Regenerate.
33384 * config/sol2.opt (mclear-hwcap): New option.
33385 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
33386 * config/sol2-clearcap.map: Moved here from
33387 testsuite/gcc.target/i386/clearcap.map.
33388 * config/sol2-clearcapv2.map: Move here from
33389 gcc.target/i386/clearcapv2.map.
33390 * config/t-sol2 (install): Depend on install-clearcap-map.
33391 (install-clearcap-map): New target.
33392 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
33393 -mclear-hwcap.
33394
33395 2014-05-28 Richard Biener <rguenther@suse.de>
33396
33397 * hwint.h (*_HALF_WIDE_INT*): Move to ...
33398 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
33399 ... here and remove the rest.
33400 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
33401
33402 2014-05-28 Richard Biener <rguenther@suse.de>
33403
33404 PR tree-optimization/61335
33405 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
33406 new range fails, drop to varying.
33407
33408 2014-05-28 Olivier Hainque <hainque@adacore.com>
33409
33410 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
33411 (CPP_SPEC): Add entry for -mcpu=8548.
33412 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
33413 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
33414
33415 2014-05-28 Tom de Vries <tom@codesourcery.com>
33416
33417 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
33418 * lra.c (initialize_lra_reg_info_element): Add init of
33419 actual_call_used_reg_set field.
33420 (lra): Call lra_create_live_ranges before lra_inheritance for
33421 -fuse-caller-save.
33422 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
33423 -fuse-caller-save.
33424 * lra-constraints.c (need_for_call_save_p): Use
33425 actual_call_used_reg_set instead of call_used_reg_set for
33426 -fuse-caller-save.
33427 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
33428
33429 2014-05-28 Radovan Obradovic <robradovic@mips.com>
33430 Tom de Vries <tom@codesourcery.com>
33431
33432 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
33433 to gccoptlist.
33434 (@item -fuse-caller-save): New item.
33435
33436 2014-05-28 Radovan Obradovic <robradovic@mips.com>
33437 Tom de Vries <tom@codesourcery.com>
33438
33439 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
33440 OPT_fuse_caller_save.
33441
33442 2014-05-28 Radovan Obradovic <robradovic@mips.com>
33443 Tom de Vries <tom@codesourcery.com>
33444
33445 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
33446 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
33447 get_call_reg_set_usage.
33448 * resource.c (mark_set_resources, mark_target_live_regs): Use
33449 get_call_reg_set_usage.
33450 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
33451 field.
33452 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
33453 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
33454 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
33455 * ira-build.c (ira_create_allocno): Init
33456 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
33457 (create_cap_allocno, propagate_allocno_info)
33458 (propagate_some_info_from_allocno)
33459 (copy_info_to_removed_store_destinations): Handle
33460 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
33461 * ira-costs.c (ira_tune_allocno_costs): Use
33462 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
33463
33464 2014-05-28 Radovan Obradovic <robradovic@mips.com>
33465 Tom de Vries <tom@codesourcery.com>
33466
33467 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
33468 and function_used_regs_valid fields.
33469 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
33470 find_all_hard_reg_sets.
33471 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
33472 (get_call_reg_set_usage): New function.
33473 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
33474 * regs.h (get_call_reg_set_usage): Declare.
33475
33476 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
33477
33478 PR libgcc/61152
33479 * config/dbx.h (License): Add Runtime Library Exception.
33480 * config/newlib-stdint.h (License): Same.
33481 * config/rtems.h (License): Same
33482 * config/initfini-array.h (License): Same
33483 * config/v850/v850.h (License): Same.
33484 * config/v850/v850-opts.h (License): Same
33485 * config/v850/rtems.h (License): Same.
33486
33487 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
33488
33489 PR target/61044
33490 * doc/extend.texi (Local Labels): Note that label differences are
33491 not supported for AVR.
33492
33493 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
33494 Olivier Hainque <hainque@adacore.com>
33495
33496 * rtl.h (set_for_reg_notes): Declare.
33497 * emit-rtl.c (set_for_reg_notes): New function.
33498 (set_unique_reg_note): Use it.
33499 * optabs.c (add_equal_note): Likewise
33500
33501 2014-05-27 Andrew Pinski <apinski@cavium.com>
33502
33503 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
33504 Use <w> for the register in assembly template.
33505 (stack_protect_test): Use the mode of operands[0] for the result.
33506 (stack_protect_test_<mode>): Use <w> for the register
33507 in assembly template.
33508
33509 2014-05-27 DJ Delorie <dj@redhat.com>
33510
33511 * config/rx/rx.c (add_vector_labels): New.
33512 (rx_output_function_prologue): Call it.
33513 (rx_handle_func_attribute): Don't require empty arguments.
33514 (rx_handle_vector_attribute): New.
33515 (rx_attribute_table): Add "vector" attribute.
33516 * doc/extend.texi (interrupt, vector): Document new/changed
33517 RX-specific attributes.
33518
33519 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
33520
33521 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
33522
33523 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
33524 predicate to detect a negative quotient.
33525
33526 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
33527
33528 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
33529 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
33530 Add X - Y CMP 0 to X CMP Y transformation.
33531 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
33532
33533 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
33534
33535 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
33536 before printing.
33537
33538 2014-05-27 Steve Ellcey <sellcey@mips.com>
33539
33540 * config/mips/mips.c: Add include of cgraph.h.
33541
33542 2014-05-27 Richard Biener <rguenther@suse.de>
33543
33544 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
33545
33546 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
33547
33548 PR libgcc/61152
33549 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
33550 * config/arm/arm-cores.def (License): Same.
33551 * config/arm/arm-opts.h (License): Same.
33552 * config/arm/aout.h (License): Same.
33553 * config/arm/bpabi.h (License): Same.
33554 * config/arm/elf.h (License): Same.
33555 * config/arm/linux-elf.h (License): Same.
33556 * config/arm/linux-gas.h (License): Same.
33557 * config/arm/netbsd-elf.h (License): Same.
33558 * config/arm/uclinux-eabi.h (License): Same.
33559 * config/arm/uclinux-elf.h (License): Same.
33560 * config/arm/vxworks.h (License): Same.
33561
33562 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33563
33564 * config/arm/neon.md (neon_bswap<mode>): New pattern.
33565 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
33566 (arm_init_neon_builtins): Handle NEON_BSWAP.
33567 Define required type nodes.
33568 (arm_expand_neon_builtin): Handle NEON_BSWAP.
33569 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
33570 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
33571 * config/arm/iterators.md (VDQHSD): New mode iterator.
33572
33573 2014-05-27 Richard Biener <rguenther@suse.de>
33574
33575 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
33576 Try using literal operands when comparing value-ranges failed.
33577
33578 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
33579
33580 * ira.c (commutative_operand): Adjust for change to recog_data.
33581 [Missing from previous commit.]
33582
33583 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
33584
33585 * system.h (TEST_BIT): New macro.
33586 * recog.h (alternative_mask): New type.
33587 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
33588 (recog_data_d): Replace alternative_enabled_p array with
33589 enabled_alternatives.
33590 (target_recog): New structure.
33591 (default_target_recog, this_target_recog): Declare.
33592 (get_enabled_alternatives, recog_init): Likewise.
33593 * recog.c (default_target_recog, this_target_recog): New variables.
33594 (get_enabled_alternatives): New function.
33595 (extract_insn): Use it.
33596 (recog_init): New function.
33597 (preprocess_constraints, constrain_operands): Adjust for change to
33598 recog_data.
33599 * postreload.c (reload_cse_simplify_operands): Likewise.
33600 * reload.c (find_reloads): Likewise.
33601 * ira-costs.c (record_reg_classes): Likewise.
33602 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
33603 all alternatives after a disabled one would be skipped.
33604 (ira_implicitly_set_insn_hard_regs): Likewise.
33605 * ira.c (ira_setup_alts): Adjust for change to recog_data.
33606 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
33607 with enabled_alternatives.
33608 * lra.c (free_insn_recog_data): Update accordingly.
33609 (lra_update_insn_recog_data): Likewise.
33610 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
33611 * lra-constraints.c (process_alt_operands): Likewise. Handle
33612 only_alternative as part of the enabled mask.
33613 * target-globals.h (this_target_recog): Declare.
33614 (target_globals): Add a recog field.
33615 (restore_target_globals): Restore this_target_recog.
33616 * target-globals.c: Include recog.h.
33617 (default_target_globals): Initialize recog field.
33618 (save_target_globals): Likewise.
33619 * reginfo.c (reinit_regs): Call recog_init.
33620 * toplev.c (backend_init_target): Likewise.
33621
33622 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
33623
33624 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
33625 rather than any named insn's code.
33626
33627 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
33628
33629 PR libgcc/61152
33630 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
33631 * config/arm/arm-cores.def (License): Same.
33632
33633 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
33634
33635 * tree.h (decl_comdat_group): Declare.
33636 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
33637 * tree.c (decl_comdat_group): Here.
33638
33639 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
33640
33641 PR rtl-optimization/61222
33642 * combine.c (simplify_shift_const_1): When moving a PLUS outside
33643 the shift, truncate the PLUS operand to the result mode.
33644
33645 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
33646
33647 PR target/61271
33648 * config/i386/i386.c (ix86_rtx_costs)
33649 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
33650 Fix condition.
33651
33652 2014-05-26 Martin Jambor <mjambor@suse.cz>
33653
33654 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
33655 subreg uses.
33656
33657 2014-05-26 Richard Biener <rguenther@suse.de>
33658
33659 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
33660 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
33661 Provide specializations.
33662 (wi::int_traits <HOST_WIDE_INT>,
33663 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
33664
33665 2014-05-26 Alan Modra <amodra@gmail.com>
33666
33667 PR target/61098
33668 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
33669 params and return a bool. Remove dead code. Update comment.
33670 Assert we have a const_int source. Remove bogus code from
33671 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
33672 handling of constants > 2G and reg_equal note, from..
33673 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
33674 return value. Update comment. If we can, use a new pseudo
33675 for intermediate calculations.
33676 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
33677 prototype.
33678 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
33679 call to rs6000_emit_set_const in splitter.
33680 (movdi_internal64+2, +3): Likewise.
33681
33682 2014-05-26 Richard Biener <rguenther@suse.de>
33683
33684 * system.h: Define __STDC_FORMAT_MACROS before
33685 including inttypes.h.
33686 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
33687 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
33688 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
33689 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
33690 HOST_WIDEST_INT_C): Remove.
33691 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
33692 if C99 inttypes.h is not available.
33693 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
33694 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
33695 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
33696 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
33697 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
33698 (struct output_info): Likewise.
33699 (print_statistics): Adjust.
33700 (dump_bitmap_statistics): Likewise.
33701 * bt-load.c (migrate_btr_defs): Print with PRId64.
33702 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
33703 (MAX_SAFE_MULTIPLIER): Adjust.
33704 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
33705 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
33706 dump_cgraph_node): Likewise.
33707 * final.c (dump_basic_block_info): Likewise.
33708 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
33709 * gcov.c (format_gcov): Likewise.
33710 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
33711 for calculation.
33712 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
33713 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
33714 (inline_small_functions, dump_overall_stats, dump_inline_stats):
33715 Use PRId64 for dumping.
33716 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
33717 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
33718 (add_allocno_hard_regs): Adjust.
33719 * loop-doloop.c (doloop_modify): Print using PRId64.
33720 * loop-iv.c (inverse): Compute in uint64_t.
33721 (determine_max_iter, iv_number_of_iterations): Likewise.
33722 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
33723 Print using PRId64.
33724 * lto-streamer-out.c (write_symbol): Use uint64_t.
33725 * mcf.c (CAP_INFINITY): Use int64_t maximum.
33726 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
33727 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
33728 * modulo-sched.c (const_iteration_count): Use int64_t.
33729 (sms_schedule): Dump using PRId64.
33730 * predict.c (dump_prediction): Likewise.
33731 * pretty-print.h (pp_widest_integer): Remove.
33732 * profile.c (get_working_sets, is_edge_inconsistent,
33733 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
33734 * tree-pretty-print.c (pp_double_int): Remove case handling
33735 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
33736 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
33737 and adjust users.
33738 (pass_optimize_bswap::execute): Remove restriction on hosts.
33739 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
33740 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
33741 * tree.c (widest_int_cst_value): Remove.
33742 * tree.h (widest_int_cst_value): Likewise.
33743 * value-prof.c (dump_histogram_value): Print using PRId64.
33744 * gengtype.c (main): Also inject int64_t.
33745 * ggc-page.c (struct max_alignment): Use int64_t.
33746 * alloc-pool.c (struct allocation_object_def): Likewise.
33747 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
33748 for computation.
33749 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
33750 * doc/tm.texi: Regenerated.
33751 * gengtype-lex.l (IWORD): Handle [u]int64_t.
33752 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
33753 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
33754 mmix_output_register_setting): Use [u]int64_t in prototypes.
33755 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
33756 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
33757 mmix_output_octa, mmix_output_shifted_value): Adjust.
33758 (mmix_intval): Adjust. Remove unreachable case.
33759 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
33760
33761 2014-05-26 Richard Biener <rguenther@suse.de>
33762
33763 * configure.ac: Drop __int64 type check. Insist that we
33764 found uint64_t and int64_t.
33765 * hwint.h (HOST_BITS_PER___INT64): Remove.
33766 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
33767 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
33768 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
33769 (HOST_WIDEST_FAST_INT): Remove __int64 case.
33770 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
33771 for dst_q_src_df_rms_cdt.
33772 * configure: Regenerate.
33773 * config.in: Likewise.
33774
33775 2014-05-26 Michael Tautschnig <mt@debian.org>
33776
33777 PR target/61249
33778 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
33779 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
33780
33781 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33782
33783 PR rtl-optimization/61278
33784 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
33785
33786 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33787
33788 PR rtl-optimization/61220
33789 Part of PR rtl-optimization/61225
33790 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
33791 insn; skip split_edge for a block with only one successor.
33792
33793 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
33794
33795 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
33796 for variables.
33797
33798 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
33799
33800 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
33801 (update_vtable_references): New function.
33802 (function_and_variable_visibility): Rewrite also vtable initializers.
33803 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
33804
33805 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
33806
33807 * ggc.h (ggc_grow): New function.
33808 * ggc-none.c (ggc_grow): New function.
33809 * ggc-page.c (ggc_grow): Likewise.
33810
33811 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
33812
33813 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
33814 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
33815 comdat_can_be_unshared_p, cgraph_externally_visible_p,
33816 varpool_externally_visible_p, can_replace_by_local_alias,
33817 update_visibility_by_resolution_info, function_and_variable_visibility,
33818 pass_data_ipa_function_and_variable_visibility,
33819 make_pass_ipa_function_and_variable_visibility,
33820 whole_program_function_and_variable_visibility,
33821 pass_data_ipa_whole_program_visibility,
33822 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
33823 * cgraph.h (cgraph_local_node_p): Declare.
33824 * ipa-visibility.c: New file.
33825 * Makefile.in (OBJS): Add ipa-visiblity.o
33826
33827 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
33828
33829 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
33830 that var decl is available.
33831
33832 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
33833
33834 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
33835 symtab_node pointer.
33836 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
33837 (find_decls_types_r): Do not walk COMDAT_GROUP.
33838 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
33839 * varasm.c (make_decl_one_only): Use set_comdat_group;
33840 create node if needed.
33841 * ipa-inline-transform.c (save_inline_function_body): Update
33842 way we decl->symtab mapping.
33843 * symtab.c (symtab_hash, hash_node, eq_node
33844 symtab_insert_node_to_hashtable): Remove.
33845 (symtab_register_node): Update.
33846 (symtab_unregister_node): Update.
33847 (symtab_get_node): Reimplement as inline function.
33848 (symtab_add_to_same_comdat_group): Update.
33849 (symtab_dissolve_same_comdat_group_list): Update.
33850 (dump_symtab_base): Update.
33851 (verify_symtab_base): Update.
33852 (symtab_make_decl_local): Update.
33853 (fixup_same_cpp_alias_visibility): Update.
33854 (symtab_nonoverwritable_alias): Update.
33855 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
33856 * ipa.c (update_visibility_by_resolution_info): UPdate.
33857 * bb-reorder.c: Include cgraph.h
33858 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
33859 with comdat groups.
33860 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
33861 * cgraph.c (cgraph_get_create_node): Update.
33862 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
33863 and comdat_group_.
33864 (symtab_get_node): Make inline.
33865 (symtab_insert_node_to_hashtable): Remove.
33866 (symtab_can_be_discarded): Update.
33867 (decl_comdat_group): New function.
33868 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
33869 Update.
33870 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
33871 comdat group name.
33872 (read_comdat_group): New function.
33873 (input_node, input_varpool_node): Use it.
33874 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
33875 comdat groups.
33876 * mips.c (mips_start_unique_function): Likewise.
33877 (ix86_code_end): Likewise.
33878 (rs6000_code_end): Likweise.
33879 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
33880
33881 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
33882
33883 * gengtype-state.c (fatal_reading_state): Bring offline.
33884 * optabs.c (widening_optab_handler): Bring offline.
33885 * optabs.h (widening_optab_handler): Likewise.
33886 * final.c (get_attr_length_1): Likewise.
33887
33888 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
33889
33890 * sched-int.h (sd_iterator_cond): Manually tail recurse.
33891
33892 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
33893
33894 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
33895 (ppc440-compare): Include shift with dot.
33896 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
33897 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
33898 without dot.
33899 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
33900 without dot.
33901 (e6500_sfx2): Include it.
33902 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
33903 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
33904 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
33905 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
33906 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
33907 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
33908 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
33909 *lshiftrt_internal1le, *lshiftrt_internal1be,
33910 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
33911 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
33912 *rotldi3_internal10le, *rotldi3_internal10be,
33913 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
33914 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
33915 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
33916 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
33917 define_insns): Use type "shift" in the appropriate alternatives.
33918
33919 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
33920
33921 * config/rs6000/rs6000.md (type): Add "logical". Delete
33922 "fast_compare".
33923 (dot): Adjust comment.
33924 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
33925 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
33926 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
33927 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
33928 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
33929 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
33930 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
33931 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
33932
33933 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
33934 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
33935 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
33936 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
33937 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
33938 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
33939 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
33940 * config/rs6000/8540.md (ppc8540_su): Adjust.
33941 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
33942 cell-cmp-microcoded): Adjust.
33943 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
33944 * config/rs6000/e500mc.md (e500mc_su): Adjust.
33945 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
33946 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
33947 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
33948 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
33949 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
33950 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
33951 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
33952 Adjust.
33953 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
33954 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
33955 Adjust. Adjust comment.
33956 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
33957 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
33958
33959 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
33960
33961 * config/rs6000/rs6000.md (type): Add "add".
33962 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
33963 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
33964 define_insns): Use it.
33965 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
33966
33967 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
33968 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
33969 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
33970 * config/rs6000/601.md (ppc601-integer): Adjust.
33971 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
33972 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
33973 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
33974 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
33975 * config/rs6000/8540.md (ppc8540_su): Adjust.
33976 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
33977 cell-cmp-microcoded): Adjust.
33978 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
33979 * config/rs6000/e500mc.md (e500mc_su): Adjust.
33980 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
33981 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
33982 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
33983 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
33984 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
33985 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
33986 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
33987 Adjust.
33988 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
33989 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
33990 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
33991 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
33992
33993 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
33994
33995 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
33996 "delayed_compare", "var_delayed_compare".
33997 (var_shift): New attribute.
33998 (cell_micro): Adjust.
33999 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
34000 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
34001 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
34002 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
34003 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
34004 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
34005 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
34006 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
34007 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
34008 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
34009 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
34010 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
34011 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
34012 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
34013 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
34014 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
34015 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
34016 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
34017 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
34018 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
34019 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
34020 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
34021 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
34022 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
34023 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
34024
34025 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
34026 * config/rs6000/440.md (ppc440-integer): Adjust.
34027 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
34028 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
34029 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
34030 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
34031 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
34032 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
34033 * config/rs6000/8540.md (ppc8540_su): Adjust.
34034 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
34035 cell-cmp-microcoded): Adjust.
34036 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
34037 * config/rs6000/e500mc.md (e500mc_su): Adjust.
34038 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
34039 e500mc64_delayed): Adjust.
34040 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
34041 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
34042 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
34043 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
34044 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
34045 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
34046 power6-delayed-compare, power6-var-delayed-compare): Adjust.
34047 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
34048 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
34049 Adjust comment.
34050 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
34051 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
34052
34053 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
34054
34055 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
34056 (bits): New mode_attr.
34057 (idiv_ldiv): Delete mode_attr.
34058 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
34059 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
34060 rs6000_adjust_priority, is_nonpipeline_insn,
34061 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
34062
34063 * config/rs6000/40x.md (ppc403-idiv): Adjust.
34064 * config/rs6000/440.md (ppc440-idiv): Adjust.
34065 * config/rs6000/476.md (ppc476-idiv): Adjust.
34066 * config/rs6000/601.md (ppc601-idiv): Adjust.
34067 * config/rs6000/603.md (ppc603-idiv): Adjust.
34068 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
34069 ppc620-ldiv): Adjust.
34070 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
34071 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
34072 * config/rs6000/8540.md (ppc8540_divide): Adjust.
34073 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
34074 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
34075 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
34076 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
34077 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
34078 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
34079 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
34080 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
34081 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
34082 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
34083 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
34084 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
34085 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
34086 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
34087 * config/rs6000/titan.md (titan_fxu_div): Adjust.
34088
34089 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
34090
34091 * config/rs6000/rs6000.md (type): Delete "insert_word",
34092 "insert_dword". Add "insert".
34093 (size): Update comment.
34094 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
34095 insn_must_be_first_in_group): Adjust.
34096 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
34097 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
34098 *insvsi_internal6, insvdi_internal): Adjust.
34099
34100 * config/rs6000/40x.md (ppc403-integer): Adjust.
34101 * config/rs6000/440.md (ppc440-integer): Adjust.
34102 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
34103 * config/rs6000/601.md (ppc601-integer): Adjust.
34104 * config/rs6000/603.md (ppc603-integer): Adjust.
34105 * config/rs6000/6xx.md (ppc604-integer): Adjust.
34106 * config/rs6000/7450.md (ppc7450-integer): Adjust.
34107 * config/rs6000/7xx.md (ppc750-integer): Adjust.
34108 * config/rs6000/8540.md (ppc8540_su): Adjust.
34109 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
34110 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
34111 * config/rs6000/e500mc.md (e500mc_su): Adjust.
34112 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
34113 * config/rs6000/e5500.md (e5500_sfx): Adjust.
34114 * config/rs6000/e6500.md (e6500_sfx): Adjust.
34115 * config/rs6000/mpc.md (mpccore-integer): Adjust.
34116 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
34117 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
34118 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
34119 * config/rs6000/power7.md (power7-integer): Adjust.
34120 * config/rs6000/power8.md (power8-1cyc): Adjust.
34121 * config/rs6000/rs64.md (rs64a-integer): Adjust.
34122 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
34123
34124 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
34125
34126 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
34127 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
34128 (size): New attribute.
34129 (dot): New attribute.
34130 (cell_micro): Adjust.
34131 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
34132 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
34133 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
34134 umuldi3_highpart): Adjust.
34135 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
34136 rs6000_adjust_priority, is_nonpipeline_insn,
34137 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
34138
34139 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
34140 ppc405-imul3): Adjust.
34141 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
34142 * config/rs6000/476.md (ppc476-imul): Adjust.
34143 * config/rs6000/601.md (ppc601-imul): Adjust.
34144 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
34145 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
34146 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
34147 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
34148 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
34149 Adjust.
34150 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
34151 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
34152 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
34153 cell-imul): Adjust.
34154 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
34155 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
34156 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
34157 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
34158 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
34159 * config/rs6000/mpc.md (mpccore-imul): Adjust.
34160 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
34161 power4-lmul, power4-imul, power4-imul3): Adjust.
34162 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
34163 power5-lmul, power5-imul, power5-imul3): Adjust.
34164 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
34165 power6-lmul, power6-imul, power6-imul3): Adjust.
34166 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
34167 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
34168
34169 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
34170 rs64a-lmul): Adjust.
34171 * config/rs6000/titan.md (titan_imul): Adjust.
34172
34173 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
34174
34175 * config/rs6000/rs6000.md (type): Add new value "halfmul".
34176 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
34177 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
34178 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
34179 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
34180 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
34181 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
34182 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
34183 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
34184 * config/rs6000/titan.md: Delete nonsensical comment.
34185 (titan_imul): Add type imul3.
34186 (titan_mulhw): Remove type imul3; add type halfmul.
34187
34188 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
34189
34190 * config/rs6000/rs6000.md (type): Reorder, reformat.
34191
34192 2014-05-23 Martin Jambor <mjambor@suse.cz>
34193
34194 PR tree-optimization/53787
34195 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
34196 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
34197 analysis_done, update all uses.
34198 * ipa-prop.c: Include domwalk.h
34199 (param_analysis_info): Removed.
34200 (param_aa_status): New type.
34201 (ipa_bb_info): Likewise.
34202 (func_body_info): Likewise.
34203 (ipa_get_bb_info): New function.
34204 (aa_overwalked): Likewise.
34205 (find_dominating_aa_status): Likewise.
34206 (parm_bb_aa_status_for_bb): Likewise.
34207 (parm_preserved_before_stmt_p): Changed to use new param AA info.
34208 (load_from_unmodified_param): Accept func_body_info as a parameter
34209 instead of parms_ainfo.
34210 (parm_ref_data_preserved_p): Changed to use new param AA info.
34211 (parm_ref_data_pass_through_p): Likewise.
34212 (ipa_load_from_parm_agg_1): Likewise. Update callers.
34213 (compute_complex_assign_jump_func): Changed to use new param AA info.
34214 (compute_complex_ancestor_jump_func): Likewise.
34215 (ipa_compute_jump_functions_for_edge): Likewise.
34216 (ipa_compute_jump_functions): Removed.
34217 (ipa_compute_jump_functions_for_bb): New function.
34218 (ipa_analyze_indirect_call_uses): Likewise, moved variable
34219 declarations down.
34220 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
34221 and info, moved variable declarations down.
34222 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
34223 node and info.
34224 (ipa_analyze_stmt_uses): Likewise.
34225 (ipa_analyze_params_uses): Removed.
34226 (ipa_analyze_params_uses_in_bb): New function.
34227 (ipa_analyze_controlled_uses): Likewise.
34228 (free_ipa_bb_info): Likewise.
34229 (analysis_dom_walker): New class.
34230 (ipa_analyze_node): Handle node-specific forbidden analysis,
34231 initialize and free func_body_info, use dominator walker.
34232 (ipcp_modif_dom_walker): New class.
34233 (ipcp_transform_function): Create and free func_body_info, use
34234 ipcp_modif_dom_walker, moved a lot of functionality there.
34235
34236 2014-05-23 Marek Polacek <polacek@redhat.com>
34237 Jakub Jelinek <jakub@redhat.com>
34238
34239 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
34240 * gcc.c (sanitize_spec_function): Likewise.
34241 * convert.c (convert_to_integer): Include "ubsan.h". Add
34242 floating-point to integer instrumentation.
34243 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
34244 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
34245 SANITIZE_NONDEFAULT.
34246 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
34247 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
34248 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
34249 * ubsan.c: Include "realmpfr.h" and "dfp.h".
34250 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
34251 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
34252 float/double/long double.
34253 (ubsan_instrument_float_cast): New function.
34254 * ubsan.h (ubsan_instrument_float_cast): Declare.
34255
34256 2014-05-23 Jiong Wang <jiong.wang@arm.com>
34257
34258 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
34259 predicate.
34260 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
34261 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
34262 Adjust for tailcalling through registers.
34263 * config/aarch64/aarch64.h (enum reg_class): New caller save
34264 register class.
34265 (REG_CLASS_NAMES): Likewise.
34266 (REG_CLASS_CONTENTS): Likewise.
34267 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
34268 Allow tailcalling without decls.
34269
34270 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
34271
34272 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
34273 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
34274
34275 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
34276 gsi, and variables v_* to v*.
34277
34278 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
34279
34280 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
34281
34282 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
34283
34284 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
34285 * omp-low.c: Update accordingly.
34286
34287 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
34288 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
34289 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
34290 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
34291 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
34292 GF_OMP_TARGET_KIND_UPDATE.
34293
34294 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
34295 Explicitly enumerate the expected region types.
34296
34297 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
34298
34299 PR other/56955
34300 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
34301 documentation; the old documentation didn't clearly state the
34302 constraints on the contents of the pointed-to storage.
34303
34304 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34305
34306 Fix bootstrap error on ia64
34307 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
34308 Return default value.
34309
34310 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
34311
34312 PR tree-optimization/54733
34313 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
34314 (CMPNOP): Define.
34315 (find_bswap_or_nop_load): New.
34316 (find_bswap_1): Renamed to ...
34317 (find_bswap_or_nop_1): This. Also add support for memory source.
34318 (find_bswap): Renamed to ...
34319 (find_bswap_or_nop): This. Also add support for memory source and
34320 detection of bitwise operations equivalent to load in target
34321 endianness.
34322 (execute_optimize_bswap): Likewise. Also move its leading comment back
34323 in place and split statement transformation into ...
34324 (bswap_replace): This.
34325
34326 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
34327
34328 PR rtl-optimization/61215
34329 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
34330 simplify_gen_subreg until final substitution.
34331
34332 2014-05-23 Alan Modra <amodra@gmail.com>
34333
34334 PR target/61231
34335 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
34336 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
34337 Use "Y" constraint rather than "m".
34338
34339 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
34340
34341 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
34342 define.
34343 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
34344 New function declaration.
34345 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
34346 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
34347 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
34348 (aarch64_init_builtins) : Initialize builtins
34349 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
34350 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
34351 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
34352 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
34353 and __builtins_aarch64_set_fpsr.
34354 (aarch64_atomic_assign_expand_fenv): New function.
34355 * config/aarch64/aarch64.md (set_fpcr): New pattern.
34356 (get_fpcr) : Likewise.
34357 (set_fpsr) : Likewise.
34358 (get_fpsr) : Likewise.
34359 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
34360 and UNSPECV_SET_FPSR.
34361 * doc/extend.texi (AARCH64 Built-in Functions) : Document
34362 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
34363 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
34364
34365 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
34366
34367 PR rtl-optimization/60969
34368 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
34369 constraints. Set up mem cost for NO_REGS case.
34370
34371 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
34372
34373 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
34374
34375 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
34376
34377 * config/darwin.c: Include "lto-section-names.h".
34378 (LTO_SEGMENT_NAME): Don't define.
34379 * config/i386/winnt.c: Include "lto-section-names.h".
34380 * lto-streamer.c: Include "lto-section-names.h".
34381 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
34382 * lto-wrapper.c: Include "lto-section-names.h".
34383 (LTO_SECTION_NAME_PREFIX): Don't define.
34384 * lto-section-names.h: New file.
34385 * cgraphunit.c: Include "lto-section-names.h".
34386
34387 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
34388
34389 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
34390
34391 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
34392
34393 PR target/61208
34394 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
34395
34396 2014-05-22 Nick Clifton <nickc@redhat.com>
34397
34398 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
34399
34400 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
34401
34402 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
34403 -> (T)A transformation to integer types.
34404
34405 2014-05-22 Teresa Johnson <tejohnson@google.com>
34406
34407 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
34408 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
34409 (gcov_rewrite): Use gcov_nonruntime_assert.
34410 (gcov_open): Ditto.
34411 (gcov_write_words): Ditto.
34412 (gcov_write_length): Ditto.
34413 (gcov_read_words): Use gcov_nonruntime_assert, and remove
34414 gcc_assert from IN_LIBGCOV code.
34415 (gcov_read_summary): Use gcov_error to flag profile corruption.
34416 (gcov_sync): Use gcov_nonruntime_assert.
34417 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
34418 (gcov_histo_index): Use gcov_nonruntime_assert.
34419 (static void gcov_histogram_merge): Ditto.
34420 (compute_working_sets): Ditto.
34421 * gcov-io.h (gcov_nonruntime_assert): Define.
34422 (gcov_error): Define for !IN_LIBGCOV
34423
34424 2014-05-22 Richard Biener <rguenther@suse.de>
34425
34426 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
34427 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
34428 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
34429 and deallocation site.
34430 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
34431 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
34432 passing through the incoming points-to set.
34433 (handle_lhs_call): Use flags argument instead of recomputing it.
34434 (find_func_aliases_for_call): Call handle_lhs_call with proper
34435 call return flags.
34436
34437 2014-05-22 Jakub Jelinek <jakub@redhat.com>
34438
34439 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
34440 all padding bits in REAL_VALUE_TYPE are cleared.
34441
34442 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34443
34444 Cleanup and improve multipass_dfa_lookahead_guard
34445 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
34446 (core2i7_first_cycle_multipass_begin,)
34447 (core2i7_first_cycle_multipass_issue,)
34448 (core2i7_first_cycle_multipass_backtrack): Update signature.
34449 * config/ia64/ia64.c
34450 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
34451 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
34452 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
34453 hook definition.
34454 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
34455 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
34456 values.
34457 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
34458 return values.
34459 * doc/tm.texi: Regenerate.
34460 * doc/tm.texi.in
34461 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
34462 * haifa-sched.c (ready_try): Make signed to allow negative values.
34463 (rebug_ready_list_1): Update.
34464 (choose_ready): Simplify.
34465 (sched_extend_ready_list): Update.
34466
34467 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34468
34469 Remove IA64 speculation tweaking flags
34470 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
34471 speculation tuning flags.
34472 (msched-prefer-non-data-spec-insns,)
34473 (msched-prefer-non-control-spec-insns): Obsolete options.
34474 * haifa-sched.c (choose_ready): Remove handling of
34475 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
34476 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
34477 and PREFER_NON_DATA_SPEC.
34478 * sel-sched.c (process_spec_exprs): Remove handling of
34479 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
34480
34481 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34482
34483 Improve scheduling debug output
34484 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
34485 (advance_one_cycle): Update.
34486 (schedule_insn, queue_to_ready): Add debug printouts.
34487 (debug_ready_list_1): New static function.
34488 (debug_ready_list): Update.
34489 (max_issue): Add debug printouts.
34490 (dump_insn_stream): New static function.
34491 (schedule_block): Use it. Also better indent printouts.
34492
34493 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34494
34495 Fix sched_insn debug counter
34496 * haifa-sched.c (schedule_insn): Update.
34497 (struct haifa_saved_data): Add nonscheduled_insns_begin.
34498 (save_backtrack_point, restore_backtrack_point): Update.
34499 (first_nonscheduled_insn): New static function.
34500 (queue_to_ready, choose_ready): Use it.
34501 (schedule_block): Init nonscheduled_insns_begin.
34502 (sched_emit_insn): Update.
34503
34504
34505 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
34506
34507 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
34508 to GENERAL_REGS.
34509 (aarch64_secondary_reload) : LikeWise.
34510 (aarch64_class_max_nregs) : Remove CORE_REGS.
34511 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
34512 (REG_CLASS_NAMES) : Likewise.
34513 (REG_CLASS_CONTENTS) : LikeWise.
34514 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
34515
34516 2014-05-21 Guozhi Wei <carrot@google.com>
34517
34518 PR target/61202
34519 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
34520 constraint.
34521 (vqdmulhq_n_s16): Likewise.
34522
34523 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
34524
34525 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
34526
34527 2014-05-21 Marek Polacek <polacek@redhat.com>
34528
34529 PR sanitizer/61272
34530 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
34531
34532 2014-05-21 Martin Jambor <mjambor@suse.cz>
34533
34534 * doc/invoke.texi (Optimize Options): Document parameters
34535 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
34536 ipa-cp-array-index-hint-bonus.
34537
34538 2014-05-21 Mark Wielaard <mjw@redhat.com>
34539
34540 PR debug/16063
34541 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
34542 version >= 3 or not strict DWARF.
34543 * langhooks.h (struct lang_hooks_for_types): Add
34544 enum_underlying_base_type.
34545 * langhooks.c (lhd_enum_underlying_base_type): New function.
34546 * gcc/langhooks.h (struct lang_hooks_for_types): Add
34547 enum_underlying_base_type.
34548 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
34549 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
34550 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
34551
34552 2014-05-21 Richard Biener <rguenther@suse.de>
34553
34554 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
34555
34556 2014-05-21 John Marino <gnugcc@marino.st>
34557
34558 * config.gcc (*-*-dragonfly*): New target.
34559 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
34560 * configure: Regenerate.
34561 * config/dragonfly-stdint.h: New.
34562 * config/dragonfly.h: New.
34563 * config/dragonfly.opt: New.
34564 * config/i386/dragonfly.h: New.
34565 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
34566
34567 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
34568
34569 * tree.def (VOID_CST): New.
34570 * tree-core.h (TI_VOID): New.
34571 * tree.h (void_node): New.
34572 * tree.c (tree_node_structure_for_code, tree_code_size)
34573 (iterative_hash_expr): Handle VOID_CST.
34574 (build_common_tree_nodes): Initialize void_node.
34575
34576 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
34577
34578 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
34579 functions.
34580 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
34581
34582 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
34583 more places.
34584
34585 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
34586 flag_reorder_blocks_and_partition.
34587 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
34588
34589 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
34590
34591 PR target/54236
34592 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
34593 constraints.
34594 (*addc_r_t): Add new insn_and_split.
34595
34596 2014-05-21 Jakub Jelinek <jakub@redhat.com>
34597
34598 PR middle-end/61252
34599 * omp-low.c (handle_simd_reference): New function.
34600 (lower_rec_input_clauses): Use it. Defer adding reference
34601 initialization even for reduction without placeholder if in simd,
34602 handle it properly later on.
34603
34604 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
34605
34606 PR tree-optimization/60899
34607 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
34608 assume all static symbols will have definition wile parsing and
34609 check the do have definition later in compilation; check that
34610 variable referring symbol will be output before concluding that
34611 reference is safe; be conservative for referring local statics;
34612 be more precise about when comdat is output in other partition.
34613
34614 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
34615
34616 PR bootstrap/60984
34617 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
34618 parameter.
34619 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
34620 (ipa_inline): Loop inline_to_all_callers until no more aliases
34621 are removed.
34622
34623 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
34624
34625 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
34626 set writeonly flag only for vars actually written to.
34627
34628 2014-05-20 Dehao Chen <dehao@google.com>
34629
34630 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
34631 and callee count to get clone count.
34632 * tree-inline.c (expand_call_inline): Use callee count instead of bb
34633 count in copy_body.
34634
34635 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
34636
34637 PR rtl-optimization/61243
34638 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
34639
34640 2014-05-20 Xinliang David Li <davidxl@google.com>
34641
34642 * cgraphunit.c (walk_polymorphic_call_targets): Add
34643 dbgcnt and fopt-info support.
34644 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
34645 * ipa-devirt.c (ipa_devirt): Ditto.
34646 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
34647 * ipa.c (walk_polymorphic_call_targets): Ditto.
34648 * gimple-fold.c (fold_gimple_assign): Ditto.
34649 (gimple_fold_call): Ditto.
34650 * dbgcnt.def: New counter.
34651
34652 2014-05-20 DJ Delorie <dj@redhat.com>
34653
34654 * config/msp430/msp430.md (split): Don't allow subregs when
34655 splitting SImode adds.
34656 (andneghi): Fix subtraction logic.
34657 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
34658
34659 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
34660
34661 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
34662 symbols.
34663 * except.c (switch_to_exception_section, resolve_unique_section,
34664 get_named_text_section, default_function_rodata_section,
34665 align_variable, get_block_for_decl, default_section_type_flags):
34666 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
34667 * symtab.c (symtab_add_to_same_comdat_group,
34668 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
34669 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
34670 Likewise.
34671 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
34672 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
34673 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
34674 (c6x_function_in_section_p): Likewise.
34675 * config/darwin.c (machopic_select_section): Likewise.
34676 * config/arm/arm.c (arm_function_in_section_p): Likewise.
34677 * config/mips/mips.c (mips_function_rodata_section): Likewise.
34678 * config/mep/mep.c (mep_select_section): LIkewise.
34679 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
34680
34681 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
34682
34683 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
34684 EH region of calls to pure functions that can throw an exception.
34685 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
34686 (copy_reference_ops_from_call): Also copy the EH region of the call if
34687 it can throw an exception.
34688
34689 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34690
34691 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
34692 nested VEC_SELECTs that are inverses of each other.
34693
34694 2014-05-20 Richard Biener <rguenther@suse.de>
34695
34696 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
34697 (extract_and_process_scc_for_name): not here.
34698 (cond_dom_walker::before_dom_children): Only process
34699 stmts that end the BB in interesting ways.
34700 (run_scc_vn): Mark param uses as visited.
34701
34702 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34703
34704 * config/arm/arm.md (arith_shiftsi): Do not predicate for
34705 arm_restrict_it.
34706
34707 2014-05-20 Nick Clifton <nickc@redhat.com>
34708
34709 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
34710 (msp430_gimplify_va_arg_expr): New function.
34711 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
34712
34713 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
34714 operand 0 in order to prevent confusion about the number of
34715 registers involved.
34716
34717 2014-05-20 Richard Biener <rguenther@suse.de>
34718
34719 PR tree-optimization/61221
34720 * tree-ssa-pre.c (el_to_update): Remove.
34721 (eliminate_dom_walker::before_dom_children): Handle released
34722 VDEFs by value-numbering them to the associated VUSE. Update
34723 stmt immediately for substituted call address.
34724 (eliminate): Remove delayed stmt updating code.
34725 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
34726 possibly late re-numbered vuses.
34727 (vn_reference_lookup_2): Adjust.
34728 (vn_reference_lookup_pieces): Likewise.
34729 (vn_reference_lookup): Likewise.
34730
34731 2014-05-20 Richard Biener <rguenther@suse.de>
34732
34733 * config.gcc: Remove need_64bit_hwint.
34734 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
34735 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
34736 it to be true.
34737 * config.in: Regenerate.
34738 * configure: Likewise.
34739
34740 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
34741
34742 * doc/extend.texi: Create Label Attributes section,
34743 move all label attributes into it and reference it.
34744
34745 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
34746
34747 * arm.c (thumb1_reorg): When scanning backwards skip anything
34748 that's not a proper insn.
34749
34750 2014-05-19 Richard Biener <rguenther@suse.de>
34751
34752 PR tree-optimization/61221
34753 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
34754 Do nothing for unreachable blocks.
34755 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
34756 Improve unreachability detection.
34757
34758 2014-05-19 Richard Biener <rguenther@suse.de>
34759
34760 PR tree-optimization/61209
34761 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
34762
34763 2014-05-19 Nick Clifton <nickc@redhat.com>
34764
34765 * except.c (init_eh): Fix computation of builtin setjmp buffer
34766 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
34767
34768 2014-05-19 Richard Biener <rguenther@suse.de>
34769
34770 PR tree-optimization/61184
34771 * tree-vrp.c (is_negative_overflow_infinity): Use
34772 TREE_OVERFLOW_P and do that check first.
34773 (is_positive_overflow_infinity): Likewise.
34774 (is_overflow_infinity): Likewise.
34775 (vrp_operand_equal_p): Properly treat operands with
34776 differing overflow as not equal.
34777
34778 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
34779
34780 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
34781 shift simplification where it was intended.
34782
34783 2014-05-19 Christian Bruel <christian.bruel@st.com>
34784
34785 PR target/61195
34786 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
34787
34788 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
34789
34790 PR target/61084
34791 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
34792 than wide_int.
34793
34794 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
34795
34796 * reg-notes.def (CROSSING_JUMP): Likewise.
34797 * rtl.h (rtx_def): Update comment for jump flag.
34798 (CROSSING_JUMP_P): Define.
34799 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
34800 of a REG_CROSSING_JUMP note.
34801 * cfghooks.c (tidy_fallthru_edges): Likewise.
34802 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
34803 * emit-rtl.c (try_split): Likewise.
34804 * haifa-sched.c (sched_create_recovery_edges): Likewise.
34805 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
34806 * jump.c (redirect_jump_2): Likewise.
34807 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
34808 (relax_delay_slots): Likewise.
34809 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
34810 (bbit_di): Likewise.
34811 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
34812 * config/sh/sh.md (jump_compact): Likewise.
34813 * bb-reorder.c (rotate_loop): Likewise.
34814 (pass_duplicate_computed_gotos::execute): Likewise.
34815 (add_reg_crossing_jump_notes): Rename to...
34816 (update_crossing_jump_flags): ...this.
34817 (pass_partition_blocks::execute): Update accordingly.
34818
34819 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
34820
34821 * tree.h: Remove extraneous template <>.
34822
34823 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
34824
34825 * ipa.c (symtab_remove_unreachable_nodes): Remove
34826 symbol from comdat group if its body was eliminated.
34827 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
34828 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
34829 (symtab_unregister_node): ... this one.
34830 (verify_symtab_base): More strict checking of comdats.
34831 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
34832
34833 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
34834
34835 * tree-pass.h (make_pass_ipa_comdats): New pass.
34836 * timevar.def (TV_IPA_COMDATS): New timevar.
34837 * passes.def (pass_ipa_comdats): Add.
34838 * Makefile.in (OBJS): Add ipa-comdats.o
34839 * ipa-comdats.c: New file.
34840
34841 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
34842
34843 * ipa.c (update_visibility_by_resolution_info): New function.
34844 (function_and_variable_visibility): Use it.
34845
34846 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
34847
34848 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
34849 New functions.
34850 (FOR_EACH_DEFINED_SYMBOL): New macro.
34851 (varpool_first_static_initializer, varpool_next_static_initializer,
34852 varpool_first_defined_variable, varpool_next_defined_variable):
34853 Fix comments.
34854 (symtab_in_same_comdat_p): Correctly deal with inline functions.
34855
34856 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
34857
34858 * ggc-page.c (ggc_handle_finalizers): Add comment.
34859
34860 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
34861
34862 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
34863 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
34864 (ggc_internal_cleared_alloc): Likewise.
34865 * ggc-page.c (finalizer): New class.
34866 (vec_finalizer): Likewise.
34867 (globals::finalizers): New member.
34868 (globals::vec_finalizers): Likewise.
34869 (ggc_internal_alloc): Record the finalizer if any for the block being
34870 allocated.
34871 (ggc_handle_finalizers): New function.
34872 (ggc_collect): Call ggc_handle_finalizers.
34873 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
34874 finalizer.
34875 (ggc_internal_cleared_alloc): Likewise.
34876 (finalize): New function.
34877 (need_finalization_p): Likewise.
34878 (ggc_alloc): Install the type's destructor as the finalizer if it
34879 might do something.
34880 (ggc_cleared_alloc): Likewise.
34881 (ggc_vec_alloc): Likewise.
34882 (ggc_cleared_vec_alloc): Likewise.
34883
34884 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
34885
34886 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
34887
34888 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
34889
34890 * alias.c (record_alias_subset): Adjust.
34891 * bitmap.c (bitmap_element_allocate): Likewise.
34892 (bitmap_gc_alloc_stat): Likewise.
34893 * cfg.c (init_flow): Likewise.
34894 (alloc_block): Likewise.
34895 (unchecked_make_edge): Likewise.
34896 * cfgloop.c (alloc_loop): Likewise.
34897 (flow_loops_find): Likewise.
34898 (rescan_loop_exit): Likewise.
34899 * cfgrtl.c (init_rtl_bb_info): Likewise.
34900 * cgraph.c (insert_new_cgraph_node_version): Likewise.
34901 (cgraph_allocate_node): Likewise.
34902 (cgraph_create_edge_1): Likewise.
34903 (cgraph_allocate_init_indirect_info): Likewise.
34904 * cgraphclones.c (cgraph_clone_edge): Likewise.
34905 * cgraphunit.c (add_asm_node): Likewise.
34906 (init_lowered_empty_function): Likewise.
34907 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
34908 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
34909 (alpha_use_linkage): Likewise.
34910 * config/arc/arc.c (arc_init_machine_status): Likewise.
34911 * config/arm/arm.c (arm_init_machine_status): Likewise.
34912 * config/avr/avr.c (avr_init_machine_status): Likewise.
34913 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
34914 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
34915 * config/cris/cris.c (cris_init_machine_status): Likewise.
34916 * config/darwin.c (machopic_indirection_name): Likewise.
34917 (darwin_build_constant_cfstring): Likewise.
34918 (darwin_enter_string_into_cfstring_table): Likewise.
34919 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
34920 * config/frv/frv.c (frv_init_machine_status): Likewise.
34921 * config/i386/i386.c (get_dllimport_decl): Likewise.
34922 (ix86_init_machine_status): Likewise.
34923 (assign_386_stack_local): Likewise.
34924 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
34925 (i386_pe_maybe_record_exported_symbol): Likewise.
34926 (i386_pe_record_stub): Likewise.
34927 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
34928 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
34929 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
34930 (m32c_note_pragma_address): Likewise.
34931 * config/mep/mep.c (mep_init_machine_status): Likewise.
34932 (mep_note_pragma_flag): Likewise.
34933 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
34934 (mips16_local_alias): Likewise.
34935 (mips_init_machine_status): Likewise.
34936 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
34937 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
34938 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
34939 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
34940 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
34941 * config/pa/pa.c (pa_init_machine_status): Likewise.
34942 (pa_get_deferred_plabel): Likewise.
34943 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
34944 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
34945 (rs6000_init_machine_status): Likewise.
34946 (output_toc): Likewise.
34947 * config/s390/s390.c (s390_init_machine_status): Likewise.
34948 * config/score/score.c (score_output_external): Likewise.
34949 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
34950 * config/spu/spu.c (spu_init_machine_status): Likewise.
34951 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
34952 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
34953 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
34954 * coverage.c (coverage_end_function): Likewise.
34955 * dbxout.c (dbxout_init): Likewise.
34956 * doc/gty.texi: Don't mention variable_size attribute.
34957 * dwarf2cfi.c (new_cfi): Adjust.
34958 (new_cfi_row): Likewise.
34959 (copy_cfi_row): Likewise.
34960 (create_cie_data): Likewise.
34961 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
34962 (new_loc_descr): Likewise.
34963 (find_AT_string_in_table): Likewise.
34964 (add_addr_table_entry): Likewise.
34965 (new_die): Likewise.
34966 (add_var_loc_to_decl): Likewise.
34967 (clone_die): Likewise.
34968 (clone_as_declaration): Likewise.
34969 (break_out_comdat_types): Likewise.
34970 (new_loc_list): Likewise.
34971 (add_loc_descr_to_each): Likewise.
34972 (add_location_or_const_value_attribute): Likewise.
34973 (add_linkage_name): Likewise.
34974 (lookup_filename): Likewise.
34975 (dwarf2out_var_location): Likewise.
34976 (new_line_info_table): Likewise.
34977 (dwarf2out_init): Likewise.
34978 (mem_loc_descriptor): Likewise.
34979 (loc_descriptor): Likewise.
34980 (add_const_value_attribute): Likewise.
34981 (tree_add_const_value_attribute): Likewise.
34982 (comp_dir_string): Likewise.
34983 (dwarf2out_vms_debug_main_pointer): Likewise.
34984 (string_cst_pool_decl): Likewise.
34985 * emit-rtl.c (set_mem_attrs): Likewise.
34986 (get_reg_attrs): Likewise.
34987 (start_sequence): Likewise.
34988 (init_emit): Likewise.
34989 (init_emit_regs): Likewise.
34990 * except.c (init_eh_for_function): Likewise.
34991 (gen_eh_region): Likewise.
34992 (gen_eh_region_catch): Likewise.
34993 (gen_eh_landing_pad): Likewise.
34994 (add_call_site): Likewise.
34995 * function.c (add_frame_space): Likewise.
34996 (insert_temp_slot_address): Likewise.
34997 (assign_stack_temp_for_type): Likewise.
34998 (get_hard_reg_initial_val): Likewise.
34999 (allocate_struct_function): Likewise.
35000 (prepare_function_start): Likewise.
35001 (types_used_by_var_decl_insert): Likewise.
35002 * gengtype.c (variable_size_p): Remove function.
35003 (enum alloc_quantity): Remove enum.
35004 (write_typed_alloc_def): Remove function.
35005 (write_typed_struct_alloc_def): Likewise.
35006 (write_typed_typedef_alloc_def): Likewise.
35007 (write_typed_alloc_defns): Likewise.
35008 (main): Adjust.
35009 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
35010 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
35011 * ggc.h (ggc_alloc): new function.
35012 (ggc_cleared_alloc): Likewise.
35013 (ggc_vec_alloc): Template on type of vector element, and remove
35014 element size argument.
35015 (ggc_cleared_vec_alloc): Likewise.
35016 * gimple.c (gimple_build_omp_for): Adjust.
35017 (gimple_copy): Likewise.
35018 * ipa-cp.c (get_replacement_map): Likewise.
35019 (find_aggregate_values_for_callers_subset): Likewise.
35020 (known_aggs_to_agg_replacement_list): Likewise.
35021 * ipa-devirt.c (get_odr_type): Likewise.
35022 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
35023 (read_agg_replacement_chain): Likewise.
35024 * loop-iv.c (get_simple_loop_desc): Likewise.
35025 * lto-cgraph.c (input_node_opt_summary): Likewise.
35026 * lto-section-in.c (lto_new_in_decl_state): Likewise.
35027 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
35028 (input_eh_region): Likewise.
35029 (input_eh_lp): Likewise.
35030 (input_cfg): Likewise.
35031 * optabs.c (set_optab_libfunc): Likewise.
35032 (init_tree_optimization_optabs): Likewise.
35033 (set_conv_libfunc): Likewise.
35034 * passes.c (do_per_function_toporder): Likewise.
35035 * rtl.h: Don't use variable_size gty attribute.
35036 * sese.c (if_region_set_false_region): Adjust.
35037 * stringpool.c (gt_pch_save_stringpool): Likewise.
35038 * target-globals.c (save_target_globals): Likewise.
35039 * toplev.c (general_init): Likewise.
35040 * trans-mem.c (record_tm_replacement): Likewise.
35041 (split_bb_make_tm_edge): Likewise.
35042 * tree-cfg.c (move_sese_region_to_fn): Likewise.
35043 * tree-data-ref.h (lambda_vector_new): Likewise.
35044 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
35045 * tree-iterator.c (tsi_link_before): Likewise.
35046 (tsi_link_after): Likewise.
35047 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
35048 * tree-ssa-loop-niter.c (record_estimate): Likewise.
35049 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
35050 * tree-ssa-operands.h: Don't use variable_size gty attribute.
35051 * tree-ssa.c (init_tree_ssa): Adjust.
35052 * tree-ssanames.c (set_range_info): Likewise.
35053 (get_ptr_info): Likewise.
35054 (duplicate_ssa_name_ptr_info): Likewise.
35055 (duplicate_ssa_name_range_info): Likewise.
35056 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
35057 (unpack_ts_fixed_cst_value_fields): Likewise.
35058 * tree.c (build_fixed): Likewise.
35059 (build_real): Likewise.
35060 (build_string): Likewise.
35061 (decl_priority_info): Likewise.
35062 (decl_debug_expr_insert): Likewise.
35063 (decl_value_expr_insert): Likewise.
35064 (decl_debug_args_insert): Likewise.
35065 (type_hash_add): Likewise.
35066 (build_omp_clause): Likewise.
35067 * ubsan.c (decl_for_type_insert): Likewise.
35068 * varasm.c (get_unnamed_section): Likewise.
35069 (get_noswitch_section): Likewise.
35070 (get_section): Likewise.
35071 (get_block_for_section): Likewise.
35072 (create_block_symbol): Likewise.
35073 (build_constant_desc): Likewise.
35074 (create_constant_pool): Likewise.
35075 (force_const_mem): Likewise.
35076 (record_tm_clone_pair): Likewise.
35077 * varpool.c (varpool_create_empty_node): Likewise.
35078
35079 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
35080
35081 * dwarf2out.c (tree_add_const_value_attribute): Call
35082 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
35083 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
35084 instead of ggc_internal_<x>alloc_stat.
35085 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
35086 (ggc_realloc): Likewise.
35087 * ggc-none.c (ggc_internal_alloc): Likewise.
35088 (ggc_internal_cleared_alloc): Likewise.
35089 * ggc-page.c: Likewise.
35090 * ggc.h (ggc_internal_alloc_stat): Likewise.
35091 (ggc_internal_alloc): Remove macro.
35092 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
35093 (ggc_internal_cleared_alloc): Remove macro.
35094 (GGC_RESIZEVEC): Adjust.
35095 (ggc_resizevar): Remove macro.
35096 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
35097 (ggc_internal_cleared_vec_alloc_stat): Likewise.
35098 (ggc_internal_vec_cleared_alloc): Remove macro.
35099 (ggc_alloc_atomic_stat): Drop _stat suffix.
35100 (ggc_alloc_atomic): Remove macro.
35101 (ggc_alloc_cleared_atomic): Remove macro.
35102 (ggc_alloc_string_stat): Drop _stat suffix.
35103 (ggc_alloc_string): Remove macro.
35104 (ggc_alloc_rtx_def_stat): Adjust.
35105 (ggc_alloc_tree_node_stat): Likewise.
35106 (ggc_alloc_cleared_tree_node_stat): Likewise.
35107 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
35108 (ggc_alloc_cleared_simd_clone_stat): Likewise.
35109 * gimple.c (gimple_build_omp_for): Likewise.
35110 (gimple_copy): Likewise.
35111 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
35112 * toplev.c (realloc_for_line_map): Adjust.
35113 * tree-data-ref.h (lambda_vector_new): Likewise.
35114 * tree-phinodes.c (allocate_phi_node): Likewise.
35115 * tree.c (grow_tree_vec_stat): Likewise.
35116 * vec.h (va_gc::reserve): Adjust.
35117
35118 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
35119
35120 * config/microblaze/microblaze.c (break_handler): New Declaration.
35121 (microblaze_break_function_p,microblaze_is_break_handler): New.
35122 (compute_frame_size): Use microblaze_break_function_p.
35123 Add the test of break_handler.
35124 (microblaze_function_prologue) : Add the test of variable
35125 break_handler. Check the fnname by BREAK_HANDLER_NAME.
35126 (microblaze_function_epilogue) : Add the test of break_handler.
35127 (microblaze_globalize_label) : Add the test of break_handler.
35128 Check the name by BREAK_HANDLER_NAME.
35129
35130 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
35131
35132 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
35133 microblaze_is_break_handler test.
35134 (call_internal1,call_value_intern): Use microblaze_break_function_p.
35135 Use SYMBOL_REF_DECL.
35136
35137 * config/microblaze/microblaze-protos.h
35138 (microblaze_break_function_p,microblaze_is_break_handler):
35139 New Declaration.
35140
35141 * doc/extend.texi (MicroBlaze break_handler Functions): Document
35142 new MicroBlaze break_handler functions.
35143
35144 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
35145
35146 * doc/extend.texi (Size of an asm): Move node text according
35147 to its @menu entry position.
35148
35149 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
35150
35151 PR tree-optimization/61140
35152 PR tree-optimization/61150
35153 PR tree-optimization/61197
35154 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
35155
35156 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
35157
35158 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
35159
35160 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
35161
35162 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
35163 __SIZEOF_INT128__ is defined.
35164
35165 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
35166
35167 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
35168 (rs6000_delegitimize_address): Use it.
35169
35170 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
35171
35172 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
35173 inplace argument. Store the new address in the original MEM when true.
35174 * emit-rtl.c (change_address_1): Likewise.
35175 (adjust_address_1, adjust_automodify_address_1, offset_address):
35176 Update accordingly.
35177 * rtl.h (plus_constant): Add an inplace argument.
35178 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
35179 when true. Avoid generating (plus X (const_int 0)).
35180 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
35181 in-place. Pass true to plus_constant.
35182 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
35183
35184 2014-05-16 Dehao Chen <dehao@google.com>
35185
35186 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
35187
35188 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
35189
35190 PR target/54089
35191 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
35192 patterns.
35193 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
35194
35195 2014-05-16 Dehao Chen <dehao@google.com>
35196
35197 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
35198 optimize_function_for_size_p.
35199 * regs.h (REG_FREQ_FROM_BB): Likewise.
35200
35201 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
35202
35203 PR target/51244
35204 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
35205 negt_reg_operand cases.
35206 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
35207 predicate.
35208 * config/sh/predicates.md (cbranch_treg_value): Simplify.
35209
35210 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
35211
35212 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
35213 target variants.
35214
35215 2014-05-16 David Malcolm <dmalcolm@redhat.com>
35216
35217 Revert:
35218 2014-04-29 David Malcolm <dmalcolm@redhat.com>
35219
35220 * tree-cfg.c (dump_function_to_file): Dump the return type of
35221 functions, in a line to itself before the function body, mimicking
35222 the layout of a C function.
35223
35224 2014-05-16 Dehao Chen <dehao@google.com>
35225
35226 * cfghooks.c (make_forwarder_block): Use direct computation to
35227 get fall-through edge's count and frequency.
35228
35229 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
35230
35231 * config/arc/arc.c (arc_init): Fix typo in error message.
35232 * config/i386/i386.c (ix86_expand_builtin): Likewise.
35233 (split_stack_prologue_scratch_regno): Likewise.
35234 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
35235 word from error message.
35236
35237 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
35238
35239 * ira-costs.c: Fix typo in comment.
35240
35241 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
35242
35243 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
35244
35245 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
35246
35247 * varpool.c (dump_varpool_node): Dump write-only flag.
35248 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
35249 write-only flag.
35250 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
35251 write-only variables.
35252 * ipa.c (process_references): New function.
35253 (set_readonly_bit): New function.
35254 (set_writeonly_bit): New function.
35255 (clear_addressable_bit): New function.
35256 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
35257 fix handling of aliases.
35258 * cgraph.h (struct varpool_node): Add writeonly flag.
35259
35260 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
35261
35262 PR rtl-optimization/60969
35263 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
35264 Calculate costs for this case.
35265
35266 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
35267
35268 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
35269 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
35270
35271 2014-05-16 Richard Biener <rguenther@suse.de>
35272
35273 PR tree-optimization/61194
35274 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
35275 bool patterns ending in a COND_EXPR.
35276
35277 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35278
35279 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
35280
35281 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35282
35283 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
35284 where we were unable to cost an RTX.
35285
35286 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35287
35288 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
35289 HIGH, LO_SUM.
35290
35291 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35292 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35293
35294 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
35295
35296 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35297 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35298
35299 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
35300 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
35301
35302 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35303 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35304
35305 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
35306 operators.
35307
35308 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35309 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35310
35311 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
35312 DIV/MOD.
35313
35314 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35315 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35316
35317 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
35318 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
35319
35320 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35321 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35322
35323 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
35324 rotates and shifts.
35325
35326 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35327 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35328
35329 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
35330 ZERO_EXTEND and SIGN_EXTEND better.
35331
35332 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35333 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35334
35335 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
35336 logical operations.
35337
35338 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35339 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35340
35341 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
35342 costs when costing loads and stores to memory.
35343
35344 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35345 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
35346
35347 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
35348 for SET RTX.
35349
35350 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35351
35352 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
35353
35354 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35355 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35356
35357 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
35358 to...
35359 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
35360 well formed.
35361 (aarch64_rtx_mult_cost): New.
35362 (aarch64_rtx_costs): Use it, refactor as appropriate.
35363
35364 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35365 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35366
35367 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
35368 emit instructions, return number of instructions which would
35369 be emitted.
35370 (aarch64_add_constant): Update call to aarch64_build_constant.
35371 (aarch64_output_mi_thunk): Likewise.
35372 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
35373 a CONST_DOUBLE.
35374
35375 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35376
35377 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
35378 (TARGET_RTX_COSTS): Call it.
35379
35380 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35381
35382 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
35383 (cortexa57_vector_cost): Likewise.
35384 (cortexa57_tunings): Use them.
35385
35386 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35387
35388 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
35389 (cpu_addrcost_table): Use it.
35390 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
35391 (aarch64_address_cost): Rewrite using aarch64_classify_address,
35392 move it.
35393
35394 2014-05-16 Richard Biener <rguenther@suse.de>
35395
35396 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
35397 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
35398 (visit_phi): Ignore edges marked as not executable.
35399 (class cond_dom_walker): New.
35400 (cond_dom_walker::before_dom_children): Value-number
35401 control statements and mark successor edges as not
35402 executable if possible.
35403 (run_scc_vn): First walk all control statements in
35404 dominator order, marking edges as not executable.
35405 * tree-inline.c (copy_edges_for_bb): Be not confused
35406 about random edge flags.
35407
35408 2014-05-16 Richard Biener <rguenther@suse.de>
35409
35410 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
35411
35412 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
35413
35414 PR target/61193
35415 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
35416 (__TM_simple_begin): Use it.
35417 (__TM_begin): Likewise.
35418
35419 2014-05-15 Martin Jambor <mjambor@suse.cz>
35420
35421 PR ipa/61085
35422 * ipa-prop.c (update_indirect_edges_after_inlining): Check
35423 type_preserved flag when the indirect edge is polymorphic.
35424
35425 2014-05-15 Martin Jambor <mjambor@suse.cz>
35426
35427 PR tree-optimization/61090
35428 * tree-sra.c (sra_modify_expr): Pass the current gsi to
35429 build_ref_for_model.
35430
35431 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35432
35433 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
35434 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
35435
35436 2014-05-15 Jakub Jelinek <jakub@redhat.com>
35437
35438 PR tree-optimization/61158
35439 * fold-const.c (fold_binary_loc): If X is zero-extended and
35440 shiftc >= prec, make sure zerobits is all ones instead of
35441 invoking undefined behavior.
35442
35443 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
35444
35445 * regcprop.h: New file.
35446 * regcprop.c (skip_debug_insn_p): New decl.
35447 (replace_oldest_value_reg): Check skip_debug_insn_p.
35448 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
35449 * shrink-wrap.c: Include regcprop.h.
35450 (prepare_shrink_wrap): Call
35451 copyprop_hardreg_forward_bb_without_debug_insn.
35452
35453 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
35454
35455 * shrink-wrap.h: Update comment.
35456 * shrink-wrap.c: Update comment.
35457 (next_block_for_reg): Rename to live_edge_for_reg.
35458 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
35459 (move_insn_for_shrink_wrap): Split live_edge.
35460 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
35461
35462 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
35463
35464 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
35465 Delete.
35466 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
35467 * config/sparc/sparc.md (fptype_ut699): New attribute.
35468 (in_branch_delay): Return false if -mfix-ut699 is specified and
35469 fptype_ut699 is set to single.
35470 (truncdfsf2): Add fptype_ut699 attribute.
35471 (fix_truncdfsi2): Likewise.
35472 (floatsisf2): Change fptype attribute.
35473 (fix_truncsfsi2): Likewise.
35474 (negtf2_notv9): Delete.
35475 (negtf2_v9): Likewise.
35476 (negtf2_hq): New instruction.
35477 (negtf2): New instruction and splitter.
35478 (negdf2_notv9): Rewrite.
35479 (abstf2_notv9): Delete.
35480 (abstf2_hq_v9): Likewise.
35481 (abstf2_v9): Likewise.
35482 (abstf2_hq): New instruction.
35483 (abstf2): New instruction and splitter.
35484 (absdf2_notv9): Rewrite.
35485
35486 2014-05-14 Cary Coutant <ccoutant@google.com>
35487
35488 PR debug/61013
35489 * opts.c (common_handle_option): Don't special-case "-g".
35490 (set_debug_level): Default to at least level 2 with "-g".
35491
35492 2014-05-14 DJ Delorie <dj@redhat.com>
35493
35494 * config/msp430/msp430.c (msp430_builtin): Add
35495 MSP430_BUILTIN_DELAY_CYCLES.
35496 (msp430_init_builtins): Register void __delay_cycles(long long).
35497 (msp430_builtin_decl): Add it.
35498 (cg_magic_constant): New.
35499 (msp430_expand_delay_cycles): New.
35500 (msp430_expand_builtin): Call it.
35501 (msp430_print_operand_raw): Change integer printing from "int" to
35502 HOST_WIDE_INT.
35503 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
35504 (delay_cycles_start): New.
35505 (delay_cycles_end): New.
35506 (delay_cycles_32): New.
35507 (delay_cycles_32x): New.
35508 (delay_cycles_16): New.
35509 (delay_cycles_16x): New.
35510 (delay_cycles_2): New.
35511 (delay_cycles_1): New.
35512 * doc/extend.texi: Document __delay_cycles().
35513
35514 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
35515
35516 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
35517 length attribute computation.
35518
35519 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
35520
35521 PR debug/61188
35522 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
35523
35524 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
35525
35526 PR target/61084
35527 * config/sparc/sparc.md: Fix types of low and high in DI constant
35528 splitter. Use gen_int_mode in some other splitters.
35529
35530 2014-05-14 Martin Jambor <mjambor@suse.cz>
35531
35532 PR ipa/60897
35533 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
35534
35535 2014-05-14 James Norris <jnorris@codesourcery.com>
35536
35537 * omp-low.c (expand_parallel_call): Remove shadow variable.
35538 (expand_omp_taskreg): Likewise.
35539
35540 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
35541
35542 * common/config/i386/i386-common.c
35543 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
35544 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
35545 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
35546 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
35547 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
35548 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
35549 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
35550 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
35551 xsavecintrin.h, xsavesintrin.h.
35552 (x86_64-*-*): Ditto.
35553 * config/i386/clflushoptintrin.h: New.
35554 * config/i386/xsavecintrin.h: Ditto.
35555 * config/i386/xsavesintrin.h: Ditto.
35556 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
35557 (bit_XSAVES): Ditto.
35558 (bit_XSAVES): Ditto.
35559 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
35560 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
35561 -mno-clflushopt.
35562 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
35563 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
35564 OPTION_MASK_ISA_XSAVES.
35565 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
35566 -mxsavec, -mxsaves.
35567 (PTA_CLFLUSHOPT) Define.
35568 (PTA_XSAVEC): Ditto.
35569 (PTA_XSAVES): Ditto.
35570 (ix86_option_override_internal): Handle new options.
35571 (ix86_valid_target_attribute_inner_p): Ditto.
35572 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
35573 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
35574 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
35575 (bdesc_special_args): Add __builtin_ia32_xsaves,
35576 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
35577 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
35578 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
35579 (ix86_expand_builtin): Handle new builtins.
35580 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
35581 (TARGET_CLFLUSHOPT_P): Ditto.
35582 (TARGET_XSAVEC): Ditto.
35583 (TARGET_XSAVEC_P): Ditto.
35584 (TARGET_XSAVES): Ditto.
35585 (TARGET_XSAVES_P): Ditto.
35586 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
35587 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
35588 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
35589 (ANY_XRSTOR): New.
35590 (ANY_XRSTOR64): Ditto.
35591 (xrstor): Ditto.
35592 (xrstor): Change into <xrstor>.
35593 (xrstor_rex64): Change into <xrstor>_rex64.
35594 (xrstor64): Change into <xrstor>64
35595 (clflushopt): New.
35596 * config/i386/i386.opt (mclflushopt): New.
35597 (mxsavec): Ditto.
35598 (mxsaves): Ditto.
35599 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
35600 xsavecintrin.h.
35601 * doc/invoke.texi: Document new options.
35602
35603 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
35604
35605 PR rtl-optimization/60866
35606 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
35607 Default it to -1. Pass it down to init_simplejump_data.
35608 (init_simplejump_data): New parameter old_seqno. Pass it down
35609 to get_seqno_for_a_jump.
35610 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
35611 initializing new jump seqno as a last resort. Add comment.
35612 (sel_redirect_edge_and_branch): Save old seqno of the conditional
35613 jump and pass it down to sel_init_new_insn.
35614 (sel_redirect_edge_and_branch_force): Likewise.
35615
35616 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
35617
35618 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
35619 shifted values to avoid build warning.
35620
35621 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
35622
35623 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
35624 * cfgrtl.c (rtl_merge_blocks): Fix comment.
35625 (cfg_layout_merge_blocks): Likewise.
35626 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
35627
35628 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
35629
35630 PR rtl-optimization/60901
35631 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
35632 bb predecessor belongs to the same scheduling region. Adjust comment.
35633
35634 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
35635
35636 * doc/sourcebuild.texi: (dfp_hw): Document.
35637 (p8vector_hw): Likewise.
35638 (powerpc_eabi_ok): Likewise.
35639 (powerpc_elfv2): Likewise.
35640 (powerpc_htm_ok): Likewise.
35641 (ppc_recip_hw): Likewise.
35642 (vsx_hw): Likewise.
35643
35644 2014-05-13 Cary Coutant <ccoutant@google.com>
35645
35646 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
35647
35648 2014-05-13 David Malcolm <dmalcolm@redhat.com>
35649
35650 * gengtype-parse.c (require3): Eliminate in favor of...
35651 (require4): New.
35652 (require_template_declaration): Update to support optional single *
35653 on a type.
35654
35655 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
35656 (create_user_defined_type): Handle a single level of explicit
35657 pointerness within template arguments.
35658 (struct write_types_data): Add field "kind".
35659 (filter_type_name): Handle "*" character.
35660 (write_user_func_for_structure_ptr): Require a write_types_data
35661 rather than just a prefix string, so that we can look up the kind
35662 of the wtd and use it as an index into wrote_user_func_for_ptr,
35663 ensuring that such functions are written at most once. Support
35664 subclasses by invoking the marking function of the ultimate base class.
35665 (write_user_func_for_structure_body): Require a write_types_data
35666 rather than just a prefix string, so that we can pass this to
35667 write_user_func_for_structure_ptr.
35668 (write_func_for_structure): Likewise.
35669 (ggc_wtd): Add initializer of new "kind" field.
35670 (pch_wtd): Likewise.
35671
35672 * gengtype.h (enum write_types_kinds): New.
35673 (struct type): Add field wrote_user_func_for_ptr to the "s"
35674 union member.
35675
35676 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
35677
35678 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
35679 instead of const_binop.
35680 (fold_binary_loc): Likewise.
35681
35682 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
35683
35684 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
35685 calculation to match get_ref_base_and_extent.
35686
35687 2014-05-13 Catherine Moore <clm@codesourcery.com>
35688 Sandra Loosemore <sandra@codesourcery.com>
35689
35690 * configure.ac: Fix assembly for explicit JALR relocation check.
35691 * configure: Regenerate.
35692
35693 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35694
35695 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
35696 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
35697 Remove associated type declarations and initialisations.
35698 (arm_expand_neon_builtin): Likewise.
35699 (neon_emit_pair_result_insn): Delete.
35700 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
35701 * config/arm/neon.md (neon_vtrn<mode>): Delete.
35702 (neon_vzip<mode>): Likewise.
35703 (neon_vuzp<mode>): Likewise.
35704
35705 2014-05-13 Richard Biener <rguenther@suse.de>
35706
35707 PR ipa/60973
35708 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
35709 it needs revisiting whether the call still may be tail-called.
35710
35711 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
35712
35713 * rtl.def (SYMBOL_REF): Remove middle "0" field.
35714 * rtl.h (block_symbol): Reduce number of fields to 2.
35715 (rtx_def): Add u2.symbol_ref_flags.
35716 (SYMBOL_REF_FLAGS): Use it.
35717 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
35718 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
35719 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
35720 Lower index of SYMBOL_REF_DATA.
35721 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
35722 Print SYMBOL_REF_FLAGS at the same time.
35723 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
35724
35725 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
35726
35727 * rtl.def (VAR_LOCATION): Remove "i" field.
35728 * rtl.h (rtx_def): Add u2.var_location_status.
35729 (PAT_VAR_LOCATION_STATUS): Use it.
35730 (gen_rtx_VAR_LOCATION): Declare.
35731 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
35732 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
35733 * var-tracking.c (emit_note_insn_var_location): Remove casts.
35734
35735 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
35736
35737 * rtl.def (scratch): Fix outdated comment and remove "0" field.
35738 * gengtype.c (adjust_field_rtx_def): Update accordingly.
35739
35740 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
35741
35742 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
35743 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
35744 * rtl.h (rtx_def): Add insn_uid to u2 field.
35745 (RTX_FLAG_CHECK8): Delete in favor of...
35746 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
35747 (INSN_DELETED_P): Update accordingly.
35748 (INSN_UID): Use u2.insn_uid.
35749 (INSN_CHAIN_CODE_P): Define.
35750 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
35751 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
35752 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
35753 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
35754 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
35755 indices accordingly.
35756 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
35757 Update indices for insn-chain rtxes.
35758 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
35759 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
35760 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
35761 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
35762 * combine.c (try_combine): Likewise.
35763 * ira.c (setup_prohibited_mode_move_regs): Likewise.
35764
35765 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
35766
35767 * rtl.def (REG): Remove middle field.
35768 * rtl.h (rtx_def): Add orignal_regno to u2.
35769 (ORIGINAL_REGNO): Use it instead of field 1.
35770 (REG_ATTRS): Lower field index accordingly.
35771 * gengtype.c (adjust_field_rtx_def): Remove handling of
35772 ORIGINAL_REGNO. Move REG_ATTRS index down.
35773 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
35774 code that prints the REGNO.
35775
35776 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
35777
35778 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
35779 GENERATOR_FILE.
35780
35781 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
35782
35783 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
35784
35785 2014-05-13 Bin Cheng <bin.cheng@arm.com>
35786
35787 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
35788 (alloc_iv): Lower base expressions containing ADDR_EXPR.
35789
35790 2014-05-13 Ian Bolton <ian.bolton@arm.com>
35791
35792 * config/aarch64/aarch64-protos.h
35793 (aarch64_hard_regno_caller_save_mode): New prototype.
35794 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
35795 New function.
35796 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
35797
35798 2014-05-13 Christian Bruel <christian.bruel@st.com>
35799
35800 * target.def (mode_switching): New hook vector.
35801 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
35802 (mode_exit, modepriority_to_mode): Likewise.
35803 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
35804 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
35805 * target.h: Include tm.h and hard-reg-set.h.
35806 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
35807 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
35808 * doc/tm.texi Regenerate.
35809 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
35810 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
35811 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
35812 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
35813 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
35814 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
35815 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
35816 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
35817 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
35818 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
35819 (ix86_emit_mode_set): Hookify.
35820 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
35821 Delete.
35822 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
35823 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
35824 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
35825 (epiphany_mode_priority_to_mode): Remove declaration.
35826 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
35827 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
35828 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
35829 Likewise.
35830 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
35831 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
35832 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
35833
35834 2014-05-13 Jakub Jelinek <jakub@redhat.com>
35835
35836 PR target/61060
35837 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
35838 is const0_rtx, return immediately. Don't test count == 0 when
35839 it is always true.
35840
35841 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
35842
35843 * Makefile.in: add shrink-wrap.o.
35844 * config/i386/i386.c: include "shrink-wrap.h"
35845 * function.c: Likewise.
35846 (requires_stack_frame_p, next_block_for_reg,
35847 move_insn_for_shrink_wrap, prepare_shrink_wrap,
35848 dup_block_and_redirect): Move to shrink-wrap.c
35849 (thread_prologue_and_epilogue_insns): Extract three code segments
35850 as functions in shrink-wrap.c
35851 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
35852 shrink-wrap.h
35853 * shrink-wrap.c: New file.
35854 * shrink-wrap.h: New file.
35855
35856 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
35857
35858 * doc/extend.texi: Reflect current numbers of pragmas. Remove
35859 reference to Solaris.
35860
35861 2014-05-12 Mike Stump <mikestump@comcast.net>
35862
35863 PR other/31778
35864 * genattrtab.c (filename): Add.
35865 (convert_set_attr_alternative): Improve error message.
35866 (check_defs): Restore read_md_filename for error messages.
35867 (gen_insn): Save filename.
35868
35869 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
35870
35871 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
35872 -fno-local-ivars and -fivar-visibility.
35873 * c-family/c.opt: Make -Wshadow also implicitly enable
35874 -Wshadow-ivar.
35875
35876 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
35877
35878 * doc/tm.texi: Remove reference to deleted macro.
35879 * doc/tm.texi.in: Likewise.
35880
35881 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
35882
35883 PR target/60991
35884 * config/avr/avr.c (avr_out_store_psi): Use correct constant
35885 to restore Y.
35886
35887 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
35888
35889 PR libgcc/61152
35890 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
35891 * config/arm/aout.h (License): Same.
35892 * config/arm/bpabi.h (License): Same.
35893 * config/arm/elf.h (License): Same.
35894 * config/arm/linux-elf.h (License): Same.
35895 * config/arm/linux-gas.h (License): Same.
35896 * config/arm/netbsd-elf.h (License): Same.
35897 * config/arm/uclinux-eabi.h (License): Same.
35898 * config/arm/uclinux-elf.h (License): Same.
35899 * config/arm/vxworks.h (License): Same.
35900
35901 2014-05-11 Jakub Jelinek <jakub@redhat.com>
35902
35903 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
35904 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
35905 number of operands to 3.
35906 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
35907 * tree-nested.c (convert_nonlocal_omp_clauses,
35908 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
35909 * gimplify.c (gimplify_scan_omp_clauses): Handle
35910 OMP_CLAUSE_LINEAR_STMT.
35911 * omp-low.c (lower_rec_input_clauses): Fix typo.
35912 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
35913 cast between Fortran boolean_type_node and C _Bool if
35914 needed.
35915
35916 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
35917
35918 PR tree-optimization/61136
35919 * wide-int.h (multiple_of_p): Define a version that doesn't return
35920 the quotient.
35921 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
35922 integer_zerop/const_binop pair.
35923 (multiple_of_p): Likewise, converting both operands to widest_int
35924 precision.
35925
35926 2014-05-09 Teresa Johnson <tejohnson@google.com>
35927
35928 * cgraphunit.c (analyze_functions): Use correct dump file.
35929
35930 2014-05-09 Florian Weimer <fweimer@redhat.com>
35931
35932 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
35933 expand_used_vars.
35934 (stack_protect_return_slot_p): New function.
35935 (expand_used_vars): Call stack_protect_decl_p and
35936 stack_protect_return_slot_p for -fstack-protector-strong.
35937
35938 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
35939 Andrew Haley <aph@redhat.com>
35940 Richard Sandiford <rdsandiford@googlemail.com>
35941
35942 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
35943 pages.
35944
35945 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
35946
35947 PR middle-end/61111
35948 * fold-const.c (fold_binary_loc): Changed width of mask.
35949
35950 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
35951
35952 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
35953 unsigned int initializers for regno_in, regno_out.
35954
35955 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
35956
35957 PR target/61055
35958 * config/avr/avr.md (cc): Add new attribute set_vzn.
35959 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
35960 Set cc insn attribute to set_vzn instead of set_zn for alternatives
35961 with INC, DEC or NEG.
35962 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
35963 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
35964 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
35965
35966 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35967
35968 Revert:
35969 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35970
35971 * wide-int.cc (UTItype): Define.
35972 (UDWtype): Define for appropriate W_TYPE_SIZE.
35973
35974 2014-05-09 Richard Biener <rguenther@suse.de>
35975
35976 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
35977 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
35978 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
35979 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
35980 ssa_propagate): Adjust.
35981
35982 2014-05-08 Jeff Law <law@redhat.com>
35983
35984 PR tree-optimization/61009
35985 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
35986 tri-state rather than a boolean. When a block is too big to
35987 thread through, inform caller via negative return value.
35988 (thread_across_edge): If a block was too big for normal threading,
35989 then it's too big for a joiner too, so remove temporary equivalences
35990 and return immediately.
35991
35992 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
35993 Matthias Klose <doko@ubuntu.com>
35994
35995 PR driver/61106
35996 * optc-gen.awk: Fix option handling for -Wunused-parameter.
35997
35998 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
35999
36000 PR target/59952
36001 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
36002
36003 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
36004
36005 PR target/61092
36006 * config/alpha/alpha.c: Include gimple-iterator.h.
36007 (alpha_gimple_fold_builtin): New function. Move
36008 ALPHA_BUILTIN_UMULH folding from ...
36009 (alpha_fold_builtin): ... here.
36010 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
36011
36012 2014-05-08 Wei Mi <wmi@google.com>
36013
36014 PR target/58066
36015 * config/i386/i386.c (ix86_compute_frame_layout): Update
36016 preferred_stack_boundary for call, expanded from tls descriptor.
36017 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
36018 to depend on SP register.
36019 (*tls_local_dynamic_base_32_gnu): Ditto.
36020 (*tls_local_dynamic_32_once): Ditto.
36021 (tls_global_dynamic_64_<mode>): Set
36022 ix86_tls_descriptor_calls_expanded_in_cfun.
36023 (tls_local_dynamic_base_64_<mode>): Ditto.
36024 (tls_global_dynamic_32): Set
36025 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
36026 to depend on SP register.
36027 (tls_local_dynamic_base_32): Ditto.
36028
36029 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36030
36031 * config/arm/arm_neon.h: Update comment.
36032 * config/arm/neon-docgen.ml: Delete.
36033 * config/arm/neon-gen.ml: Delete.
36034 * doc/arm-neon-intrinsics.texi: Update comment.
36035
36036 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36037
36038 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
36039 and v4sf versions.
36040 (vand, vorr, veor, vorn, vbic): Remove.
36041 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
36042 iterator.
36043 (neon_vsub_unspec): Likewise.
36044 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
36045
36046 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36047
36048 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
36049 (vadd_s16): Likewise.
36050 (vadd_s32): Likewise.
36051 (vadd_f32): Likewise.
36052 (vadd_u8): Likewise.
36053 (vadd_u16): Likewise.
36054 (vadd_u32): Likewise.
36055 (vadd_s64): Likewise.
36056 (vadd_u64): Likewise.
36057 (vaddq_s8): Likewise.
36058 (vaddq_s16): Likewise.
36059 (vaddq_s32): Likewise.
36060 (vaddq_s64): Likewise.
36061 (vaddq_f32): Likewise.
36062 (vaddq_u8): Likewise.
36063 (vaddq_u16): Likewise.
36064 (vaddq_u32): Likewise.
36065 (vaddq_u64): Likewise.
36066 (vmul_s8): Likewise.
36067 (vmul_s16): Likewise.
36068 (vmul_s32): Likewise.
36069 (vmul_f32): Likewise.
36070 (vmul_u8): Likewise.
36071 (vmul_u16): Likewise.
36072 (vmul_u32): Likewise.
36073 (vmul_p8): Likewise.
36074 (vmulq_s8): Likewise.
36075 (vmulq_s16): Likewise.
36076 (vmulq_s32): Likewise.
36077 (vmulq_f32): Likewise.
36078 (vmulq_u8): Likewise.
36079 (vmulq_u16): Likewise.
36080 (vmulq_u32): Likewise.
36081 (vsub_s8): Likewise.
36082 (vsub_s16): Likewise.
36083 (vsub_s32): Likewise.
36084 (vsub_f32): Likewise.
36085 (vsub_u8): Likewise.
36086 (vsub_u16): Likewise.
36087 (vsub_u32): Likewise.
36088 (vsub_s64): Likewise.
36089 (vsub_u64): Likewise.
36090 (vsubq_s8): Likewise.
36091 (vsubq_s16): Likewise.
36092 (vsubq_s32): Likewise.
36093 (vsubq_s64): Likewise.
36094 (vsubq_f32): Likewise.
36095 (vsubq_u8): Likewise.
36096 (vsubq_u16): Likewise.
36097 (vsubq_u32): Likewise.
36098 (vsubq_u64): Likewise.
36099 (vand_s8): Likewise.
36100 (vand_s16): Likewise.
36101 (vand_s32): Likewise.
36102 (vand_u8): Likewise.
36103 (vand_u16): Likewise.
36104 (vand_u32): Likewise.
36105 (vand_s64): Likewise.
36106 (vand_u64): Likewise.
36107 (vandq_s8): Likewise.
36108 (vandq_s16): Likewise.
36109 (vandq_s32): Likewise.
36110 (vandq_s64): Likewise.
36111 (vandq_u8): Likewise.
36112 (vandq_u16): Likewise.
36113 (vandq_u32): Likewise.
36114 (vandq_u64): Likewise.
36115 (vorr_s8): Likewise.
36116 (vorr_s16): Likewise.
36117 (vorr_s32): Likewise.
36118 (vorr_u8): Likewise.
36119 (vorr_u16): Likewise.
36120 (vorr_u32): Likewise.
36121 (vorr_s64): Likewise.
36122 (vorr_u64): Likewise.
36123 (vorrq_s8): Likewise.
36124 (vorrq_s16): Likewise.
36125 (vorrq_s32): Likewise.
36126 (vorrq_s64): Likewise.
36127 (vorrq_u8): Likewise.
36128 (vorrq_u16): Likewise.
36129 (vorrq_u32): Likewise.
36130 (vorrq_u64): Likewise.
36131 (veor_s8): Likewise.
36132 (veor_s16): Likewise.
36133 (veor_s32): Likewise.
36134 (veor_u8): Likewise.
36135 (veor_u16): Likewise.
36136 (veor_u32): Likewise.
36137 (veor_s64): Likewise.
36138 (veor_u64): Likewise.
36139 (veorq_s8): Likewise.
36140 (veorq_s16): Likewise.
36141 (veorq_s32): Likewise.
36142 (veorq_s64): Likewise.
36143 (veorq_u8): Likewise.
36144 (veorq_u16): Likewise.
36145 (veorq_u32): Likewise.
36146 (veorq_u64): Likewise.
36147 (vbic_s8): Likewise.
36148 (vbic_s16): Likewise.
36149 (vbic_s32): Likewise.
36150 (vbic_u8): Likewise.
36151 (vbic_u16): Likewise.
36152 (vbic_u32): Likewise.
36153 (vbic_s64): Likewise.
36154 (vbic_u64): Likewise.
36155 (vbicq_s8): Likewise.
36156 (vbicq_s16): Likewise.
36157 (vbicq_s32): Likewise.
36158 (vbicq_s64): Likewise.
36159 (vbicq_u8): Likewise.
36160 (vbicq_u16): Likewise.
36161 (vbicq_u32): Likewise.
36162 (vbicq_u64): Likewise.
36163 (vorn_s8): Likewise.
36164 (vorn_s16): Likewise.
36165 (vorn_s32): Likewise.
36166 (vorn_u8): Likewise.
36167 (vorn_u16): Likewise.
36168 (vorn_u32): Likewise.
36169 (vorn_s64): Likewise.
36170 (vorn_u64): Likewise.
36171 (vornq_s8): Likewise.
36172 (vornq_s16): Likewise.
36173 (vornq_s32): Likewise.
36174 (vornq_s64): Likewise.
36175 (vornq_u8): Likewise.
36176 (vornq_u16): Likewise.
36177 (vornq_u32): Likewise.
36178 (vornq_u64): Likewise.
36179
36180 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36181
36182 * wide-int.cc (UTItype): Define.
36183 (UDWtype): Define for appropriate W_TYPE_SIZE.
36184
36185 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
36186
36187 PR tree-optimization/59100
36188 * tree-ssa-phiopt.c: Include tree-inline.h.
36189 (neutral_element_p, absorbing_element_p): New functions.
36190 (value_replacement): Handle conditional binary operations with a
36191 neutral or absorbing element.
36192
36193 2014-05-08 Richard Biener <rguenther@suse.de>
36194
36195 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
36196 folding the expression.
36197 (valueize_expr): Remove.
36198 (visit_reference_op_load): Do not valueize the result of
36199 vn_get_expr_for.
36200 (simplify_binary_expression): Likewise.
36201 (simplify_unary_expression): Likewise.
36202
36203 2014-05-08 Richard Biener <rguenther@suse.de>
36204
36205 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
36206 looking at TYPE_ARG_TYPES.
36207
36208 2014-05-08 Richard Biener <rguenther@suse.de>
36209
36210 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
36211 pointer propagation special-case.
36212
36213 2014-05-08 Bin Cheng <bin.cheng@arm.com>
36214
36215 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
36216 core part of address expressions.
36217
36218 2014-05-08 Alan Modra <amodra@gmail.com>
36219
36220 PR target/60737
36221 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
36222 loads and stores when -mno-strict-align at any alignment.
36223 (expand_block_clear): Similarly. Also correct calculation of
36224 instruction count.
36225
36226 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
36227
36228 PR middle-end/39246
36229 * tree-complex.c (expand_complex_move): Keep line info when expanding
36230 complex move.
36231 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
36232 of complex expression. Use new argument to display correct location
36233 for values coming from phi statement.
36234 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
36235 (warn_uninitialized_phi): Pass location of phi argument to
36236 warn_uninit.
36237 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
36238 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
36239
36240 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
36241
36242 * config/rs6000/predicates.md (indexed_address_mem): New.
36243 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
36244 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
36245 fpstore_ux, fpstore_u.
36246 (sign_extend, indexed, update): New.
36247 (cell_micro): Adjust.
36248 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
36249 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
36250 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
36251 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
36252 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
36253 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
36254 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
36255 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
36256 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
36257 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
36258 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
36259 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
36260 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
36261 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
36262 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
36263
36264 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
36265 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
36266 *vsx_extract_<mode>_store): Adjust.
36267 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
36268 is_cracked_insn, insn_must_be_first_in_group,
36269 insn_must_be_last_in_group): Adjust.
36270
36271 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
36272 Adjust.
36273 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
36274 ppc440-fpstore): Adjust.
36275 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
36276 ppc476-fpstore): Adjust.
36277 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
36278 ppc601-fpstore): Adjust.
36279 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
36280 Adjust.
36281 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
36282 Adjust.
36283 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
36284 ppc7450-fpstore): Adjust.
36285 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
36286 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
36287 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
36288 Adjust.
36289 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
36290 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
36291 cell-fpstore, cell-fpstore-update): Adjust.
36292 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
36293 ppce300c3_store, ppce300c3_fpstore): Adjust.
36294 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
36295 e500mc_fpstore): Adjust.
36296 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
36297 e500mc64_store, e500mc64_fpstore): Adjust.
36298 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
36299 e5500_fpstore): Adjust.
36300 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
36301 e6500_fpstore): Adjust.
36302 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
36303 Adjust.
36304 * config/rs6000/power4.md (power4-load, power4-load-ext,
36305 power4-load-ext-update, power4-load-ext-update-indexed,
36306 power4-load-update-indexed, power4-load-update, power4-fpload,
36307 power4-fpload-update, power4-store, power4-store-update,
36308 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
36309 Adjust.
36310 * config/rs6000/power5.md (power5-load, power5-load-ext,
36311 power5-load-ext-update, power5-load-ext-update-indexed,
36312 power5-load-update-indexed, power5-load-update, power5-fpload,
36313 power5-fpload-update, power5-store, power5-store-update,
36314 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
36315 Adjust.
36316 * config/rs6000/power6.md (power6-load, power6-load-ext,
36317 power6-load-update, power6-load-update-indexed,
36318 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
36319 power6-fpload-update, power6-store, power6-store-update,
36320 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
36321 Adjust.
36322 * config/rs6000/power7.md (power7-load, power7-load-ext,
36323 power7-load-update, power7-load-update-indexed,
36324 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
36325 power7-fpload-update, power7-store, power7-store-update,
36326 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
36327 Adjust.
36328 * config/rs6000/power8.md (power8-load, power8-load-update,
36329 power8-load-ext, power8-load-ext-update, power8-fpload,
36330 power8-fpload-update, power8-store, power8-store-update-indexed,
36331 power8-fpstore, power8-fpstore-update): Adjust.
36332 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
36333 Adjust.
36334 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
36335 titan_lsu_store, titan_lsu_fpstore): Adjust.
36336 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
36337
36338 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
36339
36340 PR target/60884
36341 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
36342 unrolled byte insns. Emit address increments after move insns.
36343
36344 2014-05-07 David Malcolm <dmalcolm@redhat.com>
36345
36346 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
36347 const_gimple, rather than a gimple.
36348 (gimple_call_builtin_p): Likewise, for the three variants.
36349
36350 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
36351 (gimple_call_builtin_p): Likewise, for the three variants.
36352
36353 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
36354
36355 PR tree-optimization/61095
36356 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
36357
36358 2014-05-07 Richard Biener <rguenther@suse.de>
36359
36360 PR tree-optimization/61034
36361 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
36362 (maybe_skip_until): Use translate to take into account
36363 lattices when trying to do disambiguations.
36364 (get_continuation_for_phi_1): Likewise.
36365 (get_continuation_for_phi): Adjust for added translate arguments.
36366 (walk_non_aliased_vuses): Likewise.
36367 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
36368 (walk_non_aliased_vuses): Likewise.
36369 (call_may_clobber_ref_p_1): Declare.
36370 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
36371 calls. Stop early if we are only supposed to disambiguate.
36372 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
36373
36374 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
36375
36376 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
36377 Emit an error when the function has arguments.
36378
36379 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
36380
36381 * cfgloop.h (unswitch_loops): Remove.
36382 * doc/passes.texi: Remove references to loop-unswitch.c
36383 * timevar.def (TV_LOOP_UNSWITCH): Remove.
36384
36385 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
36386
36387 * tree-vect-data-refs.c (vect_grouped_load_supported): New
36388 check for loads group of length 3.
36389 (vect_permute_load_chain): New permutations for loads group of
36390 length 3.
36391 * tree-vect-stmts.c (vect_model_load_cost): Change cost
36392 of vec_perm_shuffle for the new permutations.
36393
36394 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
36395
36396 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
36397 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
36398 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
36399 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
36400 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
36401 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
36402 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
36403 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
36404
36405 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
36406
36407 * loop-unswitch.c: Delete.
36408
36409 2014-05-07 Richard Biener <rguenther@suse.de>
36410
36411 * config.gcc: Always set need_64bit_hwint to yes.
36412
36413 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
36414
36415 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
36416 of using optimize_size.
36417
36418 2014-05-06 Mike Stump <mikestump@comcast.net>
36419
36420 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
36421
36422 2014-05-06 Joseph Myers <joseph@codesourcery.com>
36423
36424 * config/i386/sse.md (*mov<mode>_internal)
36425 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
36426 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
36427 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
36428 (*<code><mode>3, *andnot<mode>3<mask_name>)
36429 (<mask_codefor><code><mode>3<mask_name>): Only consider
36430 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
36431
36432 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
36433
36434 Revert:
36435 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
36436
36437 * lra-constraints.c (valid_address_p): Move earlier in file.
36438 Add a constraint argument to the address_info version.
36439 (satisfies_memory_constraint_p): New function.
36440 (satisfies_address_constraint_p): Likewise.
36441 (process_alt_operands, curr_insn_transform): Use them.
36442 (process_address): Pass the constraint to valid_address_p when
36443 checking address operands.
36444
36445 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
36446
36447 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
36448 to their respective blocks. Fix inadvertent use of "node".
36449
36450 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
36451
36452 * emit-rtl.c (init_derived_machine_modes): New functionm, split
36453 out from...
36454 (init_emit_once): ...here.
36455 * rtl.h (init_derived_machine_modes): Declare.
36456 * toplev.c (do_compile): Call it even if no_backend.
36457
36458 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
36459 Mike Stump <mikestump@comcast.net>
36460 Richard Sandiford <rdsandiford@googlemail.com>
36461 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36462
36463 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
36464 (rtx_equal_for_memref_p): Update comment.
36465 (adjust_offset_for_component_ref): Use wide-int interfaces.
36466 * builtins.c (get_object_alignment_2): Likewise.
36467 (c_readstr): Likewise.
36468 (target_char_cast): Add comment.
36469 (determine_block_size): Use wide-int interfaces.
36470 (expand_builtin_signbit): Likewise.
36471 (fold_builtin_int_roundingfn): Likewise.
36472 (fold_builtin_bitop): Likewise.
36473 (fold_builtin_bswap): Likewise.
36474 (fold_builtin_logarithm): Use signop.
36475 (fold_builtin_pow): Likewise.
36476 (fold_builtin_memory_op): Use wide-int interfaces.
36477 (fold_builtin_object_size): Likewise.
36478 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
36479 nb_iterations_estimate.
36480 (record_niter_bound): Use wide-int interfaces.
36481 (get_estimated_loop_iterations_int): Likewise.
36482 (get_estimated_loop_iterations): Likewise.
36483 (get_max_loop_iterations): Likewise.
36484 * cfgloop.h: Include wide-int.h.
36485 (struct nb_iter_bound): Change bound to widest_int.
36486 (struct loop): Change nb_iterations_upper_bound and
36487 nb_iterations_estimate to widest_int.
36488 (record_niter_bound): Switch to use widest_int.
36489 (get_estimated_loop_iterations): Likewise.
36490 (get_max_loop_iterations): Likewise.
36491 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
36492 update for wide-int.
36493 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
36494 * combine.c (try_combine): Likewise.
36495 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
36496 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
36497 interfaces.
36498 (aarch64_float_const_representable_p): Likewise.
36499 * config/arc/arc.c: Include wide-int.h.
36500 (arc_can_use_doloop_p): Use wide-int interfaces.
36501 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
36502 (vfp3_const_double_index): Likewise.
36503 * config/avr/avr.c (avr_out_round): Likewise.
36504 (avr_fold_builtin): Likewise.
36505 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
36506 (bfin_can_use_doloop_p): Likewise.
36507 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
36508 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
36509 * config/i386/i386.c: Include wide-int.h.
36510 (ix86_data_alignment): Use wide-int interfaces.
36511 (ix86_local_alignment): Likewise.
36512 (ix86_emit_swsqrtsf): Update real_from_integer.
36513 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
36514 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
36515 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
36516 (zero_constant): Likewise.
36517 (input_operand): Likewise.
36518 (splat_input_operand): Likewise.
36519 (non_logical_cint_operand): Change const_double to const_wide_int.
36520 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
36521 (easy_altivec_constant): Remove comment.
36522 (paired_expand_vector_init): Use CONSTANT_P.
36523 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
36524 (rs6000_emit_move): Update checks.
36525 (rs6000_aggregate_candidate): Use wide-int interfaces.
36526 (rs6000_expand_ternop_builtin): Likewise.
36527 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
36528 (rs6000_assemble_integer): Likewise.
36529 (rs6000_hash_constant): Likewise.
36530 (output_toc): Likewise.
36531 (rs6000_rtx_costs): Likewise.
36532 (rs6000_emit_swrsqrt); Update call to real_from_integer.
36533 * config/rs6000/rs6000-c.c: Include wide-int.h.
36534 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
36535 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
36536 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
36537 Handle CONST_WIDE_INT.
36538 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
36539 Use tree_fits_uhwi_p.
36540 * config/sparc/sparc.c: Include wide-int.h.
36541 (sparc_fold_builtin): Use wide-int interfaces.
36542 * config/vax/vax.c: Include wide-int.h.
36543 (vax_float_literal): Use real_from_integer.
36544 * coretypes.h (struct hwivec_def): New.
36545 (hwivec): New.
36546 (const_hwivec): New.
36547 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
36548 (equiv_constant): Handle CONST_WIDE_INT.
36549 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
36550 (cselib_hash_rtx): Handle CONST_WIDE_INT.
36551 * dbxout.c (stabstr_U): Use wide-int interfaces.
36552 (dbxout_type): Update to use cst_fits_shwi_p.
36553 * defaults.h (LOG2_BITS_PER_UNIT): Define.
36554 (TARGET_SUPPORTS_WIDE_INT): Add default.
36555 * dfp.c: Include wide-int.h.
36556 (decimal_real_to_integer2): Use wide-int interfaces and rename to
36557 decimal_real_to_integer.
36558 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
36559 decimal_real_to_integer.
36560 * doc/generic.texi (Constant expressions): Update for wide_int.
36561 * doc/rtl.texi (const_double): Likewise.
36562 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
36563 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
36564 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
36565 (REAL_VALUE_FROM_INT): Remove.
36566 (TARGET_SUPPORTS_WIDE_INT): New.
36567 * doc/tm.texi: Regenerate.
36568 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
36569 * double-int.h: Include wide-int.h.
36570 (struct wi::int_traits): New.
36571 * dwarf2out.c (get_full_len): New.
36572 (dw_val_equal_p): Add case dw_val_class_wide_int.
36573 (size_of_loc_descr): Likewise.
36574 (output_loc_operands): Likewise.
36575 (insert_double): Remove.
36576 (insert_wide_int): New.
36577 (add_AT_wide): New.
36578 (print_die): Add case dw_val_class_wide_int.
36579 (attr_checksum): Likewise.
36580 (attr_checksum_ordered): Likewise.
36581 (same_dw_val_p): Likewise.
36582 (size_of_die): Likewise.
36583 (value_format): Likewise.
36584 (output_die): Likewise.
36585 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
36586 Use wide-int.
36587 (clz_loc_descriptor): Use wide-int interfaces.
36588 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
36589 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
36590 (round_up_to_align): Use wide-int interfaces.
36591 (field_byte_offset): Likewise.
36592 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
36593 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
36594 CONST_DOUBLE handling. Use wide-int interfaces.
36595 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
36596 (gen_enumeration_type_die): Use add_AT_wide.
36597 (hash_loc_operands): Add case dw_val_class_wide_int.
36598 (compare_loc_operands): Likewise.
36599 * dwarf2out.h: Include wide-int.h.
36600 (wide_int_ptr): New.
36601 (enum dw_val_class): Add dw_val_class_wide_int.
36602 (struct dw_val_struct): Add val_wide.
36603 * emit-rtl.c (const_wide_int_htab): New.
36604 (const_wide_int_htab_hash): New.
36605 (const_wide_int_htab_eq): New.
36606 (lookup_const_wide_int): New.
36607 (const_double_htab_hash): Use wide-int interfaces.
36608 (const_double_htab_eq): Likewise.
36609 (rtx_to_double_int): Conditionally compile for wide-int.
36610 (immed_double_int_const): Rename to immed_wide_int_const and
36611 update for wide-int.
36612 (immed_double_const): Conditionally compile for wide-int.
36613 (init_emit_once): Use wide-int interfaces.
36614 * explow.c (plus_constant): Likewise.
36615 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
36616 (lshift_value): Use wide-int interfaces.
36617 (expand_mult): Likewise.
36618 (choose_multiplier): Likewise.
36619 (expand_smod_pow2): Likewise.
36620 (make_tree): Likewise.
36621 * expr.c (convert_modes): Consolidate handling of constants.
36622 Use wide-int interfaces.
36623 (emit_group_load_1): Add note.
36624 (store_expr): Update comment.
36625 (get_inner_reference): Use wide-int interfaces.
36626 (expand_constructor): Update comment.
36627 (expand_expr_real_2): Use wide-int interfaces.
36628 (expand_expr_real_1): Likewise.
36629 (reduce_to_bit_field_precision): Likewise.
36630 (const_vector_from_tree): Likewise.
36631 * final.c: Include wide-int-print.h.
36632 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
36633 * fixed-value.c: Include wide-int.h.
36634 (fixed_from_string): Use wide-int interfaces.
36635 (fixed_to_decimal): Likewise.
36636 (fixed_convert_from_real): Likewise.
36637 (real_convert_from_fixed): Likewise.
36638 * fold-const.h (mem_ref_offset): Return an offset_int.
36639 (div_if_zero_remainder): Remove code parameter.
36640 * fold-const.c (div_if_zero_remainder): Remove code parameter.
36641 Use wide-int interfaces.
36642 (may_negate_without_overflow_p): Use wide-int interfaces.
36643 (negate_expr_p): Likewise.
36644 (fold_negate_expr): Likewise.
36645 (int_const_binop_1): Likewise.
36646 (const_binop): Likewise.
36647 (fold_convert_const_int_from_int): Likewise.
36648 (fold_convert_const_int_from_real): Likewise.
36649 (fold_convert_const_int_from_fixed): Likewise.
36650 (fold_convert_const_fixed_from_int): Likewise.
36651 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
36652 (sign_bit_p): Use wide-int interfaces.
36653 (make_range_step): Likewise.
36654 (build_range_check): Likewise. Pass an integer of the correct type
36655 instead of using integer_one_node.
36656 (range_predecessor): Pass an integer of the correct type instead
36657 of using integer_one_node.
36658 (range_successor): Likewise.
36659 (merge_ranges): Likewise.
36660 (unextend): Use wide-int interfaces.
36661 (extract_muldiv_1): Likewise.
36662 (fold_div_compare): Likewise.
36663 (fold_single_bit_test): Likewise.
36664 (fold_sign_changed_comparison): Likewise.
36665 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
36666 (fold_plusminus_mult_expr): Use wide-int interfaces.
36667 (native_encode_int): Likewise.
36668 (native_interpret_int): Likewise.
36669 (fold_unary_loc): Likewise.
36670 (pointer_may_wrap_p): Likewise.
36671 (size_low_cst): Likewise.
36672 (mask_with_tz): Likewise.
36673 (fold_binary_loc): Likewise.
36674 (fold_ternary_loc): Likewise.
36675 (multiple_of_p): Likewise.
36676 (tree_call_nonnegative_warnv_p): Update calls to
36677 tree_int_cst_min_precision and real_from_integer.
36678 (fold_negate_const): Use wide-int interfaces.
36679 (fold_abs_const): Likewise.
36680 (fold_relational_const): Use tree_int_cst_lt.
36681 (round_up_loc): Use wide-int interfaces.
36682 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
36683 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
36684 * gengtype.c: Remove include of double-int.h.
36685 (do_typedef): Use wide-int interfaces.
36686 (open_base_files): Add wide-int.h.
36687 (main): Add offset_int and widest_int typedefs.
36688 * gengtype-lex.l: Handle "^".
36689 (CXX_KEYWORD): Add "static".
36690 * gengtype-parse.c (require3): New.
36691 (require_template_declaration): Handle constant template arguments
36692 and nested templates.
36693 * gengtype-state.c: Don't include "double-int.h".
36694 * genpreds.c (write_one_predicate_function): Update comment.
36695 (write_tm_constrs_h): Add check for hval and lval use in
36696 CONST_WIDE_INT.
36697 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
36698 (add_to_sequence): Likewise.
36699 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
36700 and const_double_operand.
36701 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
36702 interfaces.
36703 * gimple-fold.c (get_base_constructor): Likewise.
36704 (fold_array_ctor_reference): Likewise.
36705 (fold_nonarray_ctor_reference): Likewise.
36706 (fold_const_aggregate_ref_1): Likewise.
36707 (gimple_val_nonnegative_real_p): Likewise.
36708 (gimple_fold_indirect_ref): Likewise.
36709 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
36710 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
36711 (struct slsr_cand_d): Change index to be widest_int.
36712 (struct incr_info_d): Change incr to be widest_int.
36713 (alloc_cand_and_find_basis): Use wide-int interfaces.
36714 (slsr_process_phi): Likewise.
36715 (backtrace_base_for_ref): Likewise. Return a widest_int.
36716 (restructure_reference): Take a widest_int instead of a double_int.
36717 (slsr_process_ref): Use wide-int interfaces.
36718 (create_mul_ssa_cand): Likewise.
36719 (create_mul_imm_cand): Likewise.
36720 (create_add_ssa_cand): Likewise.
36721 (create_add_imm_cand): Take a widest_int instead of a double_int.
36722 (slsr_process_add): Use wide-int interfaces.
36723 (slsr_process_cast): Likewise.
36724 (slsr_process_copy): Likewise.
36725 (dump_candidate): Likewise.
36726 (dump_incr_vec): Likewise.
36727 (replace_ref): Likewise.
36728 (cand_increment): Likewise. Return a widest_int.
36729 (cand_abs_increment): Likewise.
36730 (replace_mult_candidate): Take a widest_int instead of a double_int.
36731 (replace_unconditional_candidate): Use wide-int interfaces.
36732 (incr_vec_index): Take a widest_int instead of a double_int.
36733 (create_add_on_incoming_edge): Likewise.
36734 (create_phi_basis): Use wide-int interfaces.
36735 (replace_conditional_candidate): Likewise.
36736 (record_increment): Take a widest_int instead of a double_int.
36737 (record_phi_increments): Use wide-int interfaces.
36738 (phi_incr_cost): Take a widest_int instead of a double_int.
36739 (lowest_cost_path): Likewise.
36740 (total_savings): Likewise.
36741 (analyze_increments): Use wide-int interfaces.
36742 (ncd_with_phi): Take a widest_int instead of a double_int.
36743 (ncd_of_cand_and_phis): Likewise.
36744 (nearest_common_dominator_for_cands): Likewise.
36745 (insert_initializers): Use wide-int interfaces.
36746 (all_phi_incrs_profitable): Likewise.
36747 (replace_one_candidate): Likewise.
36748 (replace_profitable_candidates): Likewise.
36749 * godump.c: Include wide-int-print.h.
36750 (go_output_typedef): Use wide-int interfaces.
36751 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
36752 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
36753 (build_loop_iteration_domains): Likewise.
36754 * hooks.h: Include wide-int.h rather than double-int.h.
36755 (hook_bool_dint_dint_uint_bool_true): Delete.
36756 (hook_bool_wint_wint_uint_bool_true): Declare.
36757 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
36758 (hook_bool_wint_wint_uint_bool_true): New.
36759 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
36760 interfaces.
36761 (ubsan_expand_si_overflow_mul_check): Likewise.
36762 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
36763 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
36764 (get_ancestor_addr_info): Likewise.
36765 (ipa_modify_call_arguments): Likewise.
36766 * loop-doloop.c (doloop_modify): Likewise.
36767 (doloop_optimize): Likewise.
36768 * loop-iv.c (iv_number_of_iterations): Likewise.
36769 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
36770 (unroll_loop_constant_iterations): Likewise.
36771 (decide_unroll_runtime_iterations): Likewise.
36772 (unroll_loop_runtime_iterations): Likewise.
36773 (decide_peel_simple): Likewise.
36774 (decide_unroll_stupid): Likewise.
36775 * lto-streamer-in.c (streamer_read_wi): Add.
36776 (input_cfg): Use wide-int interfaces.
36777 (lto_input_tree_1): Likewise.
36778 * lto-streamer-out.c (streamer_write_wi): Add.
36779 (hash_tree): Use wide-int interfaces.
36780 (output_cfg): Likewise.
36781 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
36782 (GTFILES): Add wide-int.h and signop.h.
36783 (TAGS): Look for .cc files too.
36784 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
36785 * optabs.c (expand_subword_shift): Likewise.
36786 (expand_doubleword_shift): Likewise.
36787 (expand_absneg_bit): Likewise.
36788 (expand_copysign_absneg): Likewise.
36789 (expand_copysign_bit): Likewise.
36790 * postreload.c (reload_cse_simplify_set): Likewise.
36791 * predict.c (predict_iv_comparison): Likewise.
36792 * pretty-print.h: Include wide-int-print.h.
36793 (pp_wide_int) New.
36794 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
36795 * print-tree.c: Include wide-int-print.h.
36796 (print_node_brief): Use wide-int interfaces.
36797 (print_node): Likewise.
36798 * read-rtl.c (validate_const_wide_int): New.
36799 (read_rtx_code): Add CONST_WIDE_INT case.
36800 * real.c: Include wide-int.h.
36801 (real_to_integer2): Delete.
36802 (real_to_integer): New function, returning a wide_int.
36803 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
36804 (ten_to_ptwo): Update call to real_from_integer.
36805 (real_digit): Likewise.
36806 * real.h: Include signop.h, wide-int.h and insn-modes.h.
36807 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
36808 (REAL_VALUE_TO_INT): Delete.
36809 (real_to_integer): Declare a wide-int form.
36810 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
36811 * recog.c (const_int_operand): Improve comment.
36812 (const_scalar_int_operand): New.
36813 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
36814 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
36815 (split_double): Likewise.
36816 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
36817 (rtx_size): Likewise.
36818 (rtx_alloc_stat_v): New.
36819 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
36820 (cwi_output_hex): New.
36821 (iterative_hash_rtx): Handle CONST_WIDE_INT.
36822 (cwi_check_failed_bounds): New.
36823 * rtl.def (CONST_WIDE_INT): New.
36824 * rtl.h: Include <utility> and wide-int.h.
36825 (struct hwivec_def): New.
36826 (CWI_GET_NUM_ELEM): New.
36827 (CWI_PUT_NUM_ELEM): New.
36828 (struct rtx_def): Add num_elem and hwiv.
36829 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
36830 (CASE_CONST_UNIQUE): Likewise.
36831 (CASE_CONST_ANY): Likewise.
36832 (CONST_SCALAR_INT_P): Likewise.
36833 (CONST_WIDE_INT_P): New.
36834 (CWI_ELT): New.
36835 (HWIVEC_CHECK): New.
36836 (cwi_check_failed_bounds): New.
36837 (CWI_ELT): New.
36838 (HWIVEC_CHECK): New.
36839 (CONST_WIDE_INT_VEC) New.
36840 (CONST_WIDE_INT_NUNITS) New.
36841 (CONST_WIDE_INT_ELT) New.
36842 (rtx_mode_t): New type.
36843 (wi::int_traits <rtx_mode_t>): New.
36844 (wi::shwi): New.
36845 (wi::min_value): New.
36846 (wi::max_value): New.
36847 (rtx_alloc_v) New.
36848 (const_wide_int_alloc): New.
36849 (immed_wide_int_const): New.
36850 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
36851 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
36852 * signop.h: New file.
36853 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
36854 (simplify_const_unary_operation): Use wide-int interfaces.
36855 (simplify_binary_operation_1): Likewise.
36856 (simplify_const_binary_operation): Likewise.
36857 (simplify_const_relational_operation): Likewise.
36858 (simplify_immed_subreg): Likewise.
36859 * stmt.c (expand_case): Likewise.
36860 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
36861 signop rather than a bool.
36862 * stor-layout.c (layout_type): Use wide-int interfaces.
36863 (initialize_sizetypes): Update calls to
36864 set_min_and_max_values_for_integral_type.
36865 (set_min_and_max_values_for_integral_type): Take a signop rather
36866 than a bool. Use wide-int interfaces.
36867 (fixup_signed_type): Update accordingly. Remove
36868 HOST_BITS_PER_DOUBLE_INT limit.
36869 (fixup_unsigned_type): Likewise.
36870 * system.h (STATIC_CONSTANT_P): New.
36871 (STATIC_ASSERT): New.
36872 * target.def (can_use_doloop_p): Take widest_ints rather than
36873 double_ints.
36874 * target.h: Include wide-int.h rather than double-int.h.
36875 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
36876 than double_ints.
36877 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
36878 rather than INT_CST_LT_UNSIGNED.
36879 (can_use_doloop_if_innermost): Take widest_ints rather than
36880 double_ints.
36881 * tree-affine.c: Include wide-int-print.h.
36882 (double_int_ext_for_comb): Delete.
36883 (wide_int_ext_for_comb): New.
36884 (aff_combination_zero): Use wide-int interfaces.
36885 (aff_combination_const): Take a widest_int instead of a double_int.
36886 (aff_combination_elt): Use wide-int interfaces.
36887 (aff_combination_scale): Take a widest_int instead of a double_int.
36888 (aff_combination_add_elt): Likewise.
36889 (aff_combination_add_cst): Likewise.
36890 (aff_combination_add): Use wide-int interfaces.
36891 (aff_combination_convert): Likewise.
36892 (tree_to_aff_combination): Likewise.
36893 (add_elt_to_tree): Take a widest_int instead of a double_int.
36894 (aff_combination_to_tree): Use wide-int interfaces.
36895 (aff_combination_remove_elt): Likewise.
36896 (aff_combination_add_product): Take a widest_int instead of
36897 a double_int.
36898 (aff_combination_mult): Use wide-int interfaces.
36899 (aff_combination_expand): Likewise.
36900 (double_int_constant_multiple_p): Delete.
36901 (wide_int_constant_multiple_p): New.
36902 (aff_combination_constant_multiple_p): Take a widest_int pointer
36903 instead of a double_int pointer.
36904 (print_aff): Use wide-int interfaces.
36905 (get_inner_reference_aff): Take a widest_int pointer
36906 instead of a double_int pointer.
36907 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
36908 * tree-affine.h: Include wide-int.h.
36909 (struct aff_comb_elt): Change type of coef to widest_int.
36910 (struct affine_tree_combination): Change type of offset to widest_int.
36911 (double_int_ext_for_comb): Delete.
36912 (wide_int_ext_for_comb): New.
36913 (aff_combination_const): Use widest_int instead of double_int.
36914 (aff_combination_scale): Likewise.
36915 (aff_combination_add_elt): Likewise.
36916 (aff_combination_constant_multiple_p): Likewise.
36917 (get_inner_reference_aff): Likewise.
36918 (aff_comb_cannot_overlap_p): Likewise.
36919 (aff_combination_zero_p): Use wide-int interfaces.
36920 * tree.c: Include tree.h.
36921 (init_ttree): Use make_int_cst.
36922 (tree_code_size): Removed code for INTEGER_CST case.
36923 (tree_size): Add INTEGER_CST case.
36924 (make_node_stat): Update comment.
36925 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
36926 (build_int_cst_type): Use wide-int interfaces.
36927 (double_int_to_tree): Likewise.
36928 (double_int_fits_to_tree_p): Delete.
36929 (force_fit_type_double): Delete.
36930 (force_fit_type): New.
36931 (int_cst_hash_hash): Use wide-int interfaces.
36932 (int_cst_hash_eq): Likewise.
36933 (build_int_cst_wide): Delete.
36934 (wide_int_to_tree): New.
36935 (cache_integer_cst): Use wide-int interfaces.
36936 (build_low_bits_mask): Likewise.
36937 (cst_and_fits_in_hwi): Likewise.
36938 (real_value_from_int_cst): Likewise.
36939 (make_int_cst_stat): New.
36940 (integer_zerop): Use wide_int interfaces.
36941 (integer_onep): Likewise.
36942 (integer_all_onesp): Likewise.
36943 (integer_pow2p): Likewise.
36944 (integer_nonzerop): Likewise.
36945 (tree_log2): Likewise.
36946 (tree_floor_log2): Likewise.
36947 (tree_ctz): Likewise.
36948 (int_size_in_bytes): Likewise.
36949 (mem_ref_offset): Return an offset_int rather than a double_int.
36950 (build_type_attribute_qual_variant): Use wide_int interfaces.
36951 (type_hash_eq): Likewise
36952 (tree_int_cst_equal): Likewise.
36953 (tree_int_cst_lt): Delete.
36954 (tree_int_cst_compare): Likewise.
36955 (tree_fits_shwi_p): Use wide_int interfaces.
36956 (tree_fits_uhwi_p): Likewise.
36957 (tree_int_cst_sign_bit): Likewise.
36958 (tree_int_cst_sgn): Likewise.
36959 (tree_int_cst_min_precision): Take a signop rather than a bool.
36960 (simple_cst_equal): Use wide_int interfaces.
36961 (compare_tree_int): Likewise.
36962 (iterative_hash_expr): Likewise.
36963 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
36964 INT_CST_LT.
36965 (get_type_static_bounds): Use wide_int interfaces.
36966 (tree_int_cst_elt_check_failed): New.
36967 (build_common_tree_nodes): Reordered to set prec before filling in
36968 value.
36969 (int_cst_value): Check cst_and_fits_in_hwi.
36970 (widest_int_cst_value): Use wide_int interfaces.
36971 (upper_bound_in_type): Likewise.
36972 (lower_bound_in_type): Likewise.
36973 (num_ending_zeros): Likewise.
36974 (drop_tree_overflow): Likewise.
36975 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
36976 (gen_conditions_for_pow_cst_base): Likewise.
36977 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
36978 (group_case_labels_stmt): Use wide-int interfaces.
36979 (verify_gimple_assign_binary): Likewise.
36980 (print_loop): Likewise.
36981 * tree-chrec.c (tree_fold_binomial): Likewise.
36982 * tree-core.h (struct tree_base): Add int_length.
36983 (struct tree_int_cst): Change rep of value.
36984 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
36985 (dr_may_alias_p): Likewise.
36986 (max_stmt_executions_tree): Likewise.
36987 * tree.def (INTEGER_CST): Update comment.
36988 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
36989 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
36990 * tree-dump.c: Include wide-int.h and wide-int-print.h.
36991 (dequeue_and_dump): Use wide-int interfaces.
36992 * tree.h: Include wide-int.h.
36993 (NULL_TREE): Moved to earlier loc in file.
36994 (TREE_INT_CST_ELT_CHECK): New.
36995 (tree_int_cst_elt_check_failed): New.
36996 (TYPE_SIGN): New.
36997 (TREE_INT_CST): Delete.
36998 (TREE_INT_CST_LOW): Use wide-int interfaces.
36999 (TREE_INT_CST_HIGH): Delete.
37000 (TREE_INT_CST_NUNITS): New.
37001 (TREE_INT_CST_EXT_NUNITS): Likewise.
37002 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
37003 (TREE_INT_CST_ELT): Likewise.
37004 (INT_CST_LT): Delete.
37005 (tree_int_cst_elt_check): New (two forms).
37006 (type_code_size): Update comment.
37007 (make_int_cst_stat, make_int_cst): New.
37008 (tree_to_double_int): Delete.
37009 (double_int_fits_to_tree_p): Delete.
37010 (force_fit_type_double): Delete.
37011 (build_int_cstu): Replace with out-of-line function.
37012 (build_int_cst_wide): Delete.
37013 (tree_int_cst_lt): Define inline.
37014 (tree_int_cst_le): New.
37015 (tree_int_cst_compare): Define inline.
37016 (tree_int_cst_min_precision): Take a signop rather than a bool.
37017 (wi::int_traits <const_tree>): New.
37018 (wi::int_traits <tree>): New.
37019 (wi::extended_tree): New.
37020 (wi::int_traits <wi::extended_tree>): New.
37021 (wi::to_widest): New.
37022 (wi::to_offset): New.
37023 (wi::fits_to_tree_p): New.
37024 (wi::min_value): New.
37025 (wi::max_value): New.
37026 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
37027 (copy_tree_body_r): Likewise.
37028 * tree-object-size.c (compute_object_offset): Likewise.
37029 (addr_object_size): Likewise.
37030 * tree-predcom.c: Include wide-int-print.h.
37031 (struct dref_d): Change type of offset to widest_int.
37032 (dump_dref): Call wide-int printer.
37033 (aff_combination_dr_offset): Use wide-int interfaces.
37034 (determine_offset): Take a widest_int pointer rather than a
37035 double_int pointer.
37036 (split_data_refs_to_components): Use wide-int interfaces.
37037 (suitable_component_p): Likewise.
37038 (order_drefs): Likewise.
37039 (add_ref_to_chain): Likewise.
37040 (valid_initializer_p): Likewise.
37041 (determine_roots_comp): Likewise.
37042 * tree-pretty-print.c: Include wide-int-print.h.
37043 (dump_generic_node): Use wide-int interfaces.
37044 * tree-sra.c (sra_ipa_modify_expr): Likewise.
37045 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
37046 (move_fixed_address_to_symbol): Likewise.
37047 (move_hint_to_base): Likewise.
37048 (move_pointer_to_base): Likewise.
37049 (move_variant_to_index): Likewise.
37050 (most_expensive_mult_to_index): Likewise.
37051 (addr_to_parts): Likewise.
37052 (copy_ref_info): Likewise.
37053 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
37054 (indirect_refs_may_alias_p): Likewise.
37055 (stmt_kills_ref_p_1): Likewise.
37056 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
37057 * tree-ssa-ccp.c: Update comment at top of file. Include
37058 wide-int-print.h.
37059 (struct prop_value_d): Change type of mask to widest_int.
37060 (extend_mask): New function.
37061 (dump_lattice_value): Use wide-int interfaces.
37062 (get_default_value): Likewise.
37063 (set_constant_value): Likewise.
37064 (set_value_varying): Likewise.
37065 (valid_lattice_transition): Likewise.
37066 (set_lattice_value): Likewise.
37067 (value_to_double_int): Delete.
37068 (value_to_wide_int): New.
37069 (get_value_from_alignment): Use wide-int interfaces.
37070 (get_value_for_expr): Likewise.
37071 (do_dbg_cnt): Likewise.
37072 (ccp_finalize): Likewise.
37073 (ccp_lattice_meet): Likewise.
37074 (bit_value_unop_1): Use widest_ints rather than double_ints.
37075 (bit_value_binop_1): Likewise.
37076 (bit_value_unop): Use wide-int interfaces.
37077 (bit_value_binop): Likewise.
37078 (bit_value_assume_aligned): Likewise.
37079 (evaluate_stmt): Likewise.
37080 (ccp_fold_stmt): Likewise.
37081 (visit_cond_stmt): Likewise.
37082 (ccp_visit_stmt): Likewise.
37083 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
37084 (constant_pointer_difference): Likewise.
37085 (associate_pointerplus): Likewise.
37086 (combine_conversions): Likewise.
37087 * tree-ssa-loop.h: Include wide-int.h.
37088 (struct tree_niter_desc): Change type of max to widest_int.
37089 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
37090 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
37091 (remove_redundant_iv_tests): Likewise.
37092 (canonicalize_loop_induction_variables): Likewise.
37093 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
37094 (constant_multiple_of): Take a widest_int pointer instead of
37095 a double_int pointer.
37096 (get_computation_aff): Use wide-int interfaces.
37097 (ptr_difference_cost): Likewise.
37098 (difference_cost): Likewise.
37099 (get_loop_invariant_expr_id): Likewise.
37100 (get_computation_cost_at): Likewise.
37101 (iv_elimination_compare_lt): Likewise.
37102 (may_eliminate_iv): Likewise.
37103 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
37104 instead of double_int.
37105 (max_loop_iterations): Likewise.
37106 (max_stmt_executions): Likewise.
37107 (estimated_stmt_executions): Likewise.
37108 * tree-ssa-loop-niter.c: Include wide-int-print.h.
37109 (split_to_var_and_offset): Use wide-int interfaces.
37110 (determine_value_range): Likewise.
37111 (bound_difference_of_offsetted_base): Likewise.
37112 (bounds_add): Take a widest_int instead of a double_int.
37113 (number_of_iterations_ne_max): Use wide-int interfaces.
37114 (number_of_iterations_ne): Likewise.
37115 (number_of_iterations_lt_to_ne): Likewise.
37116 (assert_loop_rolls_lt): Likewise.
37117 (number_of_iterations_lt): Likewise.
37118 (number_of_iterations_le): Likewise.
37119 (number_of_iterations_cond): Likewise.
37120 (number_of_iterations_exit): Likewise.
37121 (finite_loop_p): Likewise.
37122 (derive_constant_upper_bound_assign): Likewise.
37123 (derive_constant_upper_bound): Return a widest_int.
37124 (derive_constant_upper_bound_ops): Likewise.
37125 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
37126 (record_estimate): Take a widest_int rather than a double_int.
37127 (record_nonwrapping_iv): Use wide-int interfaces.
37128 (double_int_cmp): Delete.
37129 (wide_int_cmp): New.
37130 (bound_index): Take a widest_int rather than a double_int.
37131 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
37132 (maybe_lower_iteration_bound): Likewise.
37133 (estimate_numbers_of_iterations_loop): Likewise.
37134 (estimated_loop_iterations): Take a widest_int pointer than than
37135 a double_int pointer.
37136 (estimated_loop_iterations_int): Use wide-int interfaces.
37137 (max_loop_iterations): Take a widest_int pointer than than
37138 a double_int pointer.
37139 (max_loop_iterations_int): Use wide-int interfaces.
37140 (max_stmt_executions): Take a widest_int pointer than than
37141 a double_int pointer.
37142 (estimated_stmt_executions): Likewise.
37143 (n_of_executions_at_most): Use wide-int interfaces.
37144 (scev_probably_wraps_p): Likewise.
37145 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
37146 to real_to_integer.
37147 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
37148 interfaces.
37149 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
37150 double_ints. Adjust for trailing_wide_ints <3> representation.
37151 (set_nonzero_bits): Likewise.
37152 (get_range_info): Return wide_ints rather than double_ints.
37153 Adjust for trailing_wide_ints <3> representation.
37154 (get_nonzero_bits): Likewise.
37155 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
37156 representation.
37157 * tree-ssanames.h (struct range_info_def): Replace min, max and
37158 nonzero_bits with a trailing_wide_ints <3>.
37159 (set_range_info): Use wide_int_refs rather than double_ints.
37160 (set_nonzero_bits): Likewise.
37161 (get_range_info): Return wide_ints rather than double_ints.
37162 (get_nonzero_bits): Likewise.
37163 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
37164 * tree-ssa-pre.c (phi_translate_1): Likewise.
37165 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
37166 (acceptable_pow_call): Likewise.
37167 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
37168 interfaces.
37169 (vn_reference_fold_indirect): Likewise.
37170 (vn_reference_maybe_forwprop_address): Likewise.
37171 (valueize_refs_1): Likewise.
37172 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
37173 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
37174 tree_int_cst_lt and tree_int_cst_le.
37175 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
37176 interfaces.
37177 (streamer_alloc_tree): Likewise.
37178 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
37179 (streamer_write_tree_header): Likewise.
37180 (streamer_write_integer_cst): Likewise.
37181 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
37182 (build_constructors): Likewise.
37183 (array_value_type): Likewise.
37184 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
37185 (vect_check_gather): Likewise.
37186 * tree-vect-generic.c (build_replicated_const): Likewise.
37187 (expand_vector_divmod): Likewise.
37188 * tree-vect-loop.c (vect_transform_loop): Likewise.
37189 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
37190 (vect_do_peeling_for_alignment): Likewise.
37191 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
37192 * tree-vrp.c: Include wide-int.h.
37193 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
37194 (extract_range_from_assert): Use wide-int interfaces.
37195 (vrp_int_const_binop): Likewise.
37196 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
37197 double_int pointers.
37198 (ranges_from_anti_range): Use wide-int interfaces.
37199 (quad_int_cmp): Delete.
37200 (quad_int_pair_sort): Likewise.
37201 (extract_range_from_binary_expr_1): Use wide-int interfaces.
37202 (extract_range_from_unary_expr_1): Likewise.
37203 (adjust_range_with_scev): Likewise.
37204 (masked_increment): Take and return wide_ints rather than double_ints.
37205 (register_edge_assert_for_2): Use wide-int interfaces.
37206 (check_array_ref): Likewise.
37207 (search_for_addr_array): Likewise.
37208 (maybe_set_nonzero_bits): Likewise.
37209 (union_ranges): Pass an integer of the correct type instead of
37210 using integer_one_node.
37211 (intersect_ranges): Likewise.
37212 (simplify_truth_ops_using_ranges): Likewise.
37213 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
37214 (range_fits_type_p): Likewise.
37215 (simplify_cond_using_ranges): Likewise. Take a signop rather than
37216 a bool.
37217 (simplify_conversion_using_ranges): Use wide-int interfaces.
37218 (simplify_float_conversion_using_ranges): Likewise.
37219 (vrp_finalize): Likewise.
37220 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
37221 (gimple_stringops_transform): Likewise.
37222 * varasm.c (decode_addr_const): Likewise.
37223 (const_hash_1): Likewise.
37224 (const_rtx_hash_1): Likewise
37225 (output_constant): Likewise.
37226 (array_size_for_constructor): Likewise.
37227 (output_constructor_regular_field): Likewise.
37228 (output_constructor_bitfield): Likewise.
37229 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
37230 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
37231 GENERATOR_FILEs.
37232 * gencheck.c: Define BITS_PER_UNIT.
37233 * wide-int.cc: New.
37234 * wide-int.h: New.
37235 * wide-int-print.cc: New.
37236 * wide-int-print.h: New.
37237
37238 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
37239
37240 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
37241
37242 2014-05-06 Richard Biener <rguenther@suse.de>
37243
37244 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
37245 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
37246 (TODO_verify_all): Adjust.
37247 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
37248 TODO_verify_stmts and TODO_verify_rtl_sharing.
37249 * bb-reorder.c: Likewise.
37250 * cfgexpand.c: Likewise.
37251 * cprop.c: Likewise.
37252 * cse.c: Likewise.
37253 * function.c: Likewise.
37254 * fwprop.c: Likewise.
37255 * gcse.c: Likewise.
37256 * gimple-ssa-isolate-paths.c: Likewise.
37257 * gimple-ssa-strength-reduction.c: Likewise.
37258 * ipa-split.c: Likewise.
37259 * loop-init.c: Likewise.
37260 * loop-unroll.c: Likewise.
37261 * lower-subreg.c: Likewise.
37262 * modulo-sched.c: Likewise.
37263 * postreload-gcse.c: Likewise.
37264 * predict.c: Likewise.
37265 * recog.c: Likewise.
37266 * sched-rgn.c: Likewise.
37267 * store-motion.c: Likewise.
37268 * tracer.c: Likewise.
37269 * trans-mem.c: Likewise.
37270 * tree-call-cdce.c: Likewise.
37271 * tree-cfg.c: Likewise.
37272 * tree-cfgcleanup.c: Likewise.
37273 * tree-complex.c: Likewise.
37274 * tree-eh.c: Likewise.
37275 * tree-emutls.c: Likewise.
37276 * tree-if-conv.c: Likewise.
37277 * tree-into-ssa.c: Likewise.
37278 * tree-loop-distribution.c: Likewise.
37279 * tree-object-size.c: Likewise.
37280 * tree-parloops.c: Likewise.
37281 * tree-pass.h: Likewise.
37282 * tree-sra.c: Likewise.
37283 * tree-ssa-ccp.c: Likewise.
37284 * tree-ssa-copy.c: Likewise.
37285 * tree-ssa-copyrename.c: Likewise.
37286 * tree-ssa-dce.c: Likewise.
37287 * tree-ssa-dom.c: Likewise.
37288 * tree-ssa-dse.c: Likewise.
37289 * tree-ssa-forwprop.c: Likewise.
37290 * tree-ssa-ifcombine.c: Likewise.
37291 * tree-ssa-loop-ch.c: Likewise.
37292 * tree-ssa-loop-ivcanon.c: Likewise.
37293 * tree-ssa-loop.c: Likewise.
37294 * tree-ssa-math-opts.c: Likewise.
37295 * tree-ssa-phiopt.c: Likewise.
37296 * tree-ssa-phiprop.c: Likewise.
37297 * tree-ssa-pre.c: Likewise.
37298 * tree-ssa-reassoc.c: Likewise.
37299 * tree-ssa-sink.c: Likewise.
37300 * tree-ssa-strlen.c: Likewise.
37301 * tree-ssa-tail-merge.c: Likewise.
37302 * tree-ssa-uncprop.c: Likewise.
37303 * tree-switch-conversion.c: Likewise.
37304 * tree-tailcall.c: Likewise.
37305 * tree-vect-generic.c: Likewise.
37306 * tree-vectorizer.c: Likewise.
37307 * tree-vrp.c: Likewise.
37308 * tsan.c: Likewise.
37309 * var-tracking.c: Likewise.
37310 * bt-load.c: Likewise.
37311 * cfgcleanup.c: Likewise.
37312 * combine-stack-adj.c: Likewise.
37313 * combine.c: Likewise.
37314 * compare-elim.c: Likewise.
37315 * config/epiphany/resolve-sw-modes.c: Likewise.
37316 * config/i386/i386.c: Likewise.
37317 * config/mips/mips.c: Likewise.
37318 * config/s390/s390.c: Likewise.
37319 * config/sh/sh_treg_combine.cc: Likewise.
37320 * config/sparc/sparc.c: Likewise.
37321 * dce.c: Likewise.
37322 * dse.c: Likewise.
37323 * final.c: Likewise.
37324 * ifcvt.c: Likewise.
37325 * mode-switching.c: Likewise.
37326 * passes.c: Likewise.
37327 * postreload.c: Likewise.
37328 * ree.c: Likewise.
37329 * reg-stack.c: Likewise.
37330 * regcprop.c: Likewise.
37331 * regrename.c: Likewise.
37332 * web.c: Likewise.
37333
37334 2014-05-06 Richard Biener <rguenther@suse.de>
37335
37336 PR middle-end/61070
37337 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
37338 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
37339
37340 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
37341
37342 PR ipa/60965
37343 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
37344
37345 2014-05-05 Radovan Obradovic <robradovic@mips.com>
37346 Tom de Vries <tom@codesourcery.com>
37347
37348 * target.def (call_fusage_contains_non_callee_clobbers): New
37349 DEFHOOKPOD.
37350 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
37351 Hooks to @menu.
37352 (@node Miscellaneous Register Hooks): New node.
37353 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
37354 * doc/tm.texi: Regenerate.
37355
37356 2014-05-05 Marek Polacek <polacek@redhat.com>
37357
37358 PR driver/61065
37359 * opts.c (common_handle_option): Call error_at instead of warning_at.
37360
37361 2014-05-05 Richard Biener <rguenther@suse.de>
37362
37363 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
37364 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
37365 under the TODO_verify_il umbrella.
37366
37367 2014-05-05 Richard Biener <rguenther@suse.de>
37368
37369 * passes.c (execute_function_todo): Move TODO_verify_flow under
37370 the TODO_verify_ul umbrella.
37371
37372 2014-05-05 Richard Biener <rguenther@suse.de>
37373
37374 PR middle-end/61010
37375 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
37376 X & CST away from a CST that is the mask of a mode.
37377
37378 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
37379
37380 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
37381 int argument to enum machine_mode.
37382 (picochip_class_max_nregs): Ditto.
37383 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
37384 (picochip_class_max_nregs): Ditto.
37385
37386 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37387
37388 * target.def: Add new target hook.
37389 * doc/tm.texi: Regenerate.
37390 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
37391 * targhooks.c (default_keep_leaf_when_profiled): New function.
37392
37393 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
37394 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
37395
37396 2014-05-05 Bin Cheng <bin.cheng@arm.com>
37397
37398 PR tree-optimization/60363
37399 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
37400 (copy_phi_args): New parameters. Call get_value_locus_in_path.
37401 (update_destination_phis): New parameter.
37402 (create_edge_and_update_destination_phis): Ditto.
37403 (ssa_fix_duplicate_block_edges): Pass new arguments.
37404 (thread_single_edge): Ditto.
37405
37406 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
37407
37408 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
37409 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
37410 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
37411 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
37412 Use RS6000_BTM_HARD_FLOAT.
37413 (BU_MISC_2): Likewise.
37414 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
37415 RS6000_BTM_HARD_FLOAT.
37416 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
37417 is explicitly used.
37418 (rs6000_invalid_builtin): Add hard floating builtin support.
37419 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
37420 hard float builtins.
37421 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
37422
37423 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
37424
37425 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
37426 Add missing function* argument.
37427
37428 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
37429
37430 * lra-constraints.c (valid_address_p): Move earlier in file.
37431 Add a constraint argument to the address_info version.
37432 (satisfies_memory_constraint_p): New function.
37433 (satisfies_address_constraint_p): Likewise.
37434 (process_alt_operands, curr_insn_transform): Use them.
37435 (process_address): Pass the constraint to valid_address_p when
37436 checking address operands.
37437
37438 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
37439
37440 * config/mips/mips.c (mips_isa_rev): New variable.
37441 (mips_set_architecture): Set it.
37442 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
37443 from mips_isa_rev.
37444 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
37445 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
37446 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
37447 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
37448 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
37449 conditions in terms of mips_isa_rev.
37450 (mips_isa_rev): Declare.
37451
37452 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
37453
37454 * config/sh/sh-mem.cc: Use tabs instead of spaces.
37455 (prob_unlikely, prob_likely): Make variables const.
37456
37457 2014-05-03 Denis Chertykov <chertykov@gmail.com>
37458
37459 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
37460
37461 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
37462
37463 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
37464
37465 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
37466
37467 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
37468 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
37469 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
37470 functions.
37471 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
37472 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
37473 sh_pass_in_reg_p.
37474 Replace usage of ROUND_REG with sh_round_reg.
37475 Use CEIL instead of ROUND_ADVANCE.
37476
37477 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
37478
37479 PR target/61026
37480 * config/sh/sh.c: Include stdlib headers before everything else.
37481
37482 2014-05-02 Jakub Jelinek <jakub@redhat.com>
37483
37484 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
37485 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
37486 (gimplify_adjust_omp_clauses): Simd region is never
37487 directly nested in combined parallel. Instead, for linear
37488 with copyin/copyout, if in combined for simd loop, make decl
37489 firstprivate/lastprivate on OMP_FOR.
37490 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
37491 expand_omp_for_static_chunk): When setting endvar, also set
37492 fd->loop.v to the same value.
37493
37494 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
37495
37496 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
37497
37498 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
37499
37500 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
37501 expression.
37502
37503 2014-05-02 Marek Polacek <polacek@redhat.com>
37504
37505 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
37506
37507 2014-05-02 Kito Cheng <kito@0xlab.org>
37508
37509 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
37510 to a C expression marco.
37511 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
37512 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
37513 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
37514 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
37515 HONOR_REG_ALLOC_ORDER.
37516 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
37517
37518 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
37519
37520 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
37521
37522 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
37523
37524 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
37525
37526 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
37527
37528 * tree-if-conv.c (is_cond_scalar_reduction): New function.
37529 (convert_scalar_cond_reduction): Likewise.
37530 (predicate_scalar_phi): Add recognition and transformation
37531 of simple conditioanl reduction to be vectorizable.
37532
37533 2014-05-01 Marek Polacek <polacek@redhat.com>
37534
37535 PR c/43245
37536 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
37537
37538 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
37539
37540 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
37541 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
37542 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
37543 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
37544 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
37545 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
37546 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
37547 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
37548
37549 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
37550
37551 * config/arc/arc.opt (mlra): Move comment above option name
37552 to avoid mis-parsing as language options.
37553
37554 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37555
37556 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
37557 * config/sol2.h: ... here.
37558 * config/sol2-10.h: Remove.
37559
37560 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
37561 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
37562 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
37563 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
37564 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
37565 * config/sol2.h: ... here.
37566 (SECTION_NAME_FORMAT): Don't redefine.
37567 (STARTFILE_ARCH32_SPEC): Rename to ...
37568 (STARTFILE_ARCH_SPEC): ... this.
37569 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
37570 * config/sparc/sol2.h: ... here.
37571 (SECTION_NAME_FORMAT): Don't undef.
37572 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
37573 (SUBTARGET_EXTRA_SPECS): Remove.
37574 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
37575
37576 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
37577 (MD_STARTFILE_PREFIX): Remove.
37578 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
37579 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
37580 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
37581 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
37582 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
37583 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
37584 * config/i386/sol2.h: ... here.
37585 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
37586 * config/i386/sol2-bi.h: Remove.
37587 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
37588 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
37589
37590 * config/i386/t-sol2-64: Rename to ...
37591 * config/i386/t-sol2: ... this.
37592 * config/sparc/t-sol2-64: Rename to ...
37593 * config/sparc/t-sol2: ... this.
37594
37595 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
37596 sol2_tm_file_head, sol2_tm_file_tail.
37597 Include ${cpu_type}/sol2.h before sol2.h.
37598 Remove sol2-10.h.
37599 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
37600 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
37601 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
37602 Reflect i386/t-sol2-64 renaming.
37603 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
37604 Reflect sparc/t-sol2-64 renaming.
37605
37606 2014-04-30 Richard Biener <rguenther@suse.de>
37607
37608 * passes.c (execute_function_todo): Move TODO_verify_stmts
37609 and TODO_verify_ssa under the TODO_verify_il umbrella.
37610 * tree-ssa.h (verify_ssa): Adjust prototype.
37611 * tree-ssa.c (verify_ssa): Add parameter to tell whether
37612 we should verify SSA operands.
37613 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
37614 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
37615 whether we should verify whether not throwing stmts have EH info.
37616 * graphite-scop-detection.c (create_sese_edges): Adjust.
37617 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
37618 * tree-eh.c (lower_try_finally_switch): Do not add the
37619 default case label twice.
37620
37621 2014-04-30 Marek Polacek <polacek@redhat.com>
37622
37623 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
37624 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
37625 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
37626 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
37627
37628 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
37629
37630 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
37631 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
37632 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
37633 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
37634 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
37635 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
37636 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
37637 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
37638
37639 2014-04-29 David Malcolm <dmalcolm@redhat.com>
37640
37641 * tree-cfg.c (dump_function_to_file): Dump the return type of
37642 functions, in a line to itself before the function body, mimicking
37643 the layout of a C function.
37644
37645 2014-04-29 Jakub Jelinek <jakub@redhat.com>
37646
37647 PR tree-optimization/60971
37648 * tree-tailcall.c (process_assignment): Reject conversions which
37649 reduce precision.
37650
37651 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
37652
37653 * calls.c (initialize_argument_information): Always treat
37654 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
37655 (expand_call): Likewise.
37656 (emit_library_call_calue_1): Likewise.
37657 * expr.c (PUSH_ARGS_REVERSED): Do not define.
37658 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
37659 code accordingly.
37660
37661 2014-04-29 Nick Clifton <nickc@redhat.com>
37662
37663 * config/msp430/msp430.md (umulsidi): Fix typo.
37664 (mulhisi3): Enable even inside interrupt handlers.
37665 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
37666 bigger return address pushed in large mode.
37667
37668 2014-04-29 Nick Clifton <nickc@redhat.com>
37669
37670 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
37671 (arc_init_reg_tables): Use a machine_mode enum to iterate over
37672 available modes.
37673 * config/m32r/m32r.c (init_reg_tables): Likewise.
37674 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
37675 enum to hold the modes.
37676
37677 2014-04-29 Richard Biener <rguenther@suse.de>
37678
37679 * dominance.c (free_dominance_info): Add overload with
37680 function parameter.
37681 (dom_info_state): Likewise.
37682 (dom_info_available_p): Likewise.
37683 * basic-block.h (free_dominance_info, dom_info_state,
37684 dom_info_available_p): Declare overloads.
37685 * passes.c (execute_function_todo): Verify that verifiers
37686 don't change dominator info state. Drop dominator info
37687 for IPA pass invocations.
37688 * cgraph.c (release_function_body): Restore asserts that
37689 dominator information is released.
37690
37691 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
37692
37693 * doc/invoke.texi: Fix typo.
37694 * tree-vrp.c: Fix typos.
37695 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
37696
37697 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
37698
37699 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
37700
37701 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
37702
37703 * config/aarch64/aarch64-builtins.c
37704 (aarch64_types_storestruct_lane_qualifiers): New.
37705 (TYPES_STORESTRUCT_LANE): Likewise.
37706 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
37707 (st3_lane): Likewise.
37708 (st4_lane): Likewise.
37709 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
37710 (vec_store_lanesci_lane<mode>): Likewise.
37711 (vec_store_lanesxi_lane<mode>): Likewise.
37712 (aarch64_st2_lane<VQ:mode>): Likewise.
37713 (aarch64_st3_lane<VQ:mode>): Likewise.
37714 (aarch64_st4_lane<VQ:mode>): Likewise.
37715 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
37716 * config/aarch64/arm_neon.h
37717 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
37718 use new macro arguments.
37719 (__ST3_LANE_FUNC): Likewise.
37720 (__ST4_LANE_FUNC): Likewise.
37721 * config/aarch64/iterators.md (V_TWO_ELEM): New.
37722 (V_THREE_ELEM): Likewise.
37723 (V_FOUR_ELEM): Likewise.
37724
37725 2014-04-28 David Malcolm <dmalcolm@redhat.com>
37726
37727 * doc/gimple.texi: Replace the description of the now-defunct
37728 union gimple_statement_d with a diagram showing the
37729 gimple_statement_base class hierarchy and its relationships to
37730 the GSS_ and GIMPLE_ enums.
37731
37732 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
37733
37734 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
37735 * config/aarch64/aarch64.c
37736 (aarch64_cannot_change_mode_class): Weaken conditions.
37737 (aarch64_modes_tieable_p): New.
37738 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
37739
37740 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
37741
37742 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
37743 (loadsync_<mode>): Change mode.
37744 (load_quadpti, store_quadpti): New.
37745 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
37746 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
37747
37748 2014-04-28 Martin Jambor <mjambor@suse.cz>
37749
37750 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
37751 same alias type as the original statement.
37752 (subreplacement_assignment_data): New type.
37753 (handle_unscalarized_data_in_subtree): New type of parameter,
37754 generate new memory accesses with same alias type as the original
37755 statement.
37756 (load_assign_lhs_subreplacements): Likewise.
37757 (sra_modify_constructor_assign): Generate new memory accesses with
37758 same alias type as the original statement.
37759
37760 2014-04-28 Richard Biener <rguenther@suse.de>
37761
37762 * tree-pass.h (TODO_verify_il): Define.
37763 (TODO_verify_all): Complete properly.
37764 * passes.c (execute_function_todo): Move existing loop-closed
37765 SSA verification under TODO_verify_il.
37766 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
37767 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
37768 Fix tree sharing issue.
37769
37770 2014-04-28 Richard Biener <rguenther@suse.de>
37771
37772 PR middle-end/60092
37773 * builtins.def (DEF_C11_BUILTIN): Add.
37774 (BUILT_IN_ALIGNED_ALLOC): Likewise.
37775 * coretypes.h (enum function_class): Add function_c11_misc.
37776 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
37777 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
37778 (call_may_clobber_ref_p_1): Likewise.
37779 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
37780 (mark_all_reaching_defs_necessary_1): Likewise.
37781 (propagate_necessity): Likewise.
37782 (eliminate_unnecessary_stmts): Likewise.
37783 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
37784
37785 2014-04-28 Richard Biener <rguenther@suse.de>
37786
37787 * tree-vrp.c (vrp_var_may_overflow): Remove.
37788 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
37789 with overflow immediately bump to one before that value and
37790 let iteration figure out overflow status.
37791
37792 2014-04-28 Richard Biener <rguenther@suse.de>
37793
37794 * configure.ac: Do valgrind header checks unconditionally.
37795 Add --enable-valgrind-annotations.
37796 * system.h: Guard valgrind header inclusion with
37797 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
37798 * alloc-pool.c (pool_alloc, pool_free): Use
37799 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
37800 to guard possibly dead code.
37801 * config.in: Regenerated.
37802 * configure: Likewise.
37803
37804 2014-04-28 Jeff Law <law@redhat.com>
37805
37806 PR tree-optimization/60902
37807 * tree-ssa-threadedge.c
37808 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
37809 over real defs when invalidating outputs from statements that do not
37810 produce useful outputs for threading.
37811
37812 2014-04-28 Richard Biener <rguenther@suse.de>
37813
37814 PR tree-optimization/60979
37815 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
37816 SCOPs that end in a block with a successor with abnormal
37817 predecessors.
37818
37819 2014-04-28 Richard Biener <rguenther@suse.de>
37820
37821 * tree-pass.h (execute_pass_list): Adjust prototype.
37822 * passes.c (pass_manager::execute_early_local_passes): Adjust.
37823 (do_per_function): Change callback signature, push all actual
37824 work to the callbals.
37825 (do_per_function_toporder): Likewise.
37826 (execute_function_dump): Adjust.
37827 (execute_function_todo): Likewise.
37828 (clear_last_verified): Likewise.
37829 (verify_curr_properties): Likewise.
37830 (update_properties_after_pass): Likewise.
37831 (execute_pass_list_1): Split out from ...
37832 (execute_pass_list): ... here. Adjust.
37833 (execute_ipa_pass_list): Likewise.
37834 * cgraphunit.c (cgraph_add_new_function): Adjust.
37835 (analyze_function): Likewise.
37836 (expand_function): Likewise.
37837 * cgraph.c (release_function_body): Free dominance info
37838 here instead of asserting it was magically freed elsewhere.
37839
37840 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
37841
37842 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
37843 * configure: Regenerate.
37844 * config/sparc/sparc.opt (muser-mode): New option.
37845 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
37846 for LEON3.
37847 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
37848 * doc/invoke.texi (SPARC options): Document -muser-mode.
37849
37850 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
37851
37852 * cselib.c (find_slot_memmode): Delete.
37853 (cselib_hasher): Change compare_type to a struct.
37854 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
37855 constants.
37856 (preserve_constants_and_equivs): Adjust for new compare_type.
37857 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
37858 (wrap_constant): Delete.
37859 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
37860
37861 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
37862
37863 * doc/install.texi (Building with profile feedback): Remove
37864 outdated sentence.
37865
37866 2014-04-26 Tom de Vries <tom@codesourcery.com>
37867
37868 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
37869 array accesses.
37870
37871 2014-04-25 Cary Coutant <ccoutant@google.com>
37872
37873 PR debug/60929
37874 * dwarf2out.c (should_move_die_to_comdat): A type definition
37875 can contain a subprogram definition, but don't move it to a
37876 comdat unit.
37877 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
37878 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
37879 from original DIE.
37880 (clone_tree_hash): Rename to...
37881 (clone_tree_partial): ...this; change callers. Copy
37882 DW_TAG_subprogram DIEs as declarations.
37883 (copy_decls_walk): Don't copy children of a declaration into a
37884 type unit.
37885
37886 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
37887
37888 PR target/60969
37889 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
37890 alternative 12.
37891
37892 2014-04-25 Jiong Wang <jiong.wang@arm.com>
37893
37894 * config/arm/predicates.md (call_insn_operand): Add long_call check.
37895 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
37896 reg for long_call.
37897 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
37898 restriction.
37899
37900 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37901
37902 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
37903
37904 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37905
37906 PR tree-optimization/60930
37907 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
37908 creating a multiply candidate by folding two constant
37909 multiplicands when the result overflows.
37910
37911 2014-04-25 Jakub Jelinek <jakub@redhat.com>
37912
37913 PR tree-optimization/60960
37914 * tree-vect-generic.c (expand_vector_operation): Only call
37915 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
37916
37917 2014-04-25 Tom de Vries <tom@codesourcery.com>
37918
37919 * expr.c (clobber_reg_mode): New function.
37920 * expr.h (clobber_reg): New function.
37921
37922 2014-04-25 Tom de Vries <tom@codesourcery.com>
37923
37924 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
37925 clobbers.
37926
37927 2014-04-25 Radovan Obradovic <robradovic@mips.com>
37928 Tom de Vries <tom@codesourcery.com>
37929
37930 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
37931 handle.
37932 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
37933 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
37934 new argument to find_all_hard_reg_sets call.
37935
37936 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37937
37938 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
37939 Use HOST_WIDE_INT_C for mask literal.
37940 (aarch_rev16_shleft_mask_imm_p): Likewise.
37941
37942 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
37943
37944 PR target/60941
37945 * config/sparc/sparc.md (ashlsi3_extend): Delete.
37946
37947 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
37948
37949 PR preprocessor/56540
37950 * config/i386/i386-c.c (ix86_target_macros): Define
37951 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
37952
37953 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37954
37955 * configure.ac (tga_func): Remove.
37956 (LIB_TLS_SPEC): Remove.
37957 * configure: Regenerate.
37958 * config.in: Regenerate.
37959 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
37960
37961 2014-04-25 Richard Biener <rguenther@suse.de>
37962
37963 PR ipa/60912
37964 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
37965 call stmt use/clobber sets during stmt walk instead of
37966 walking the possibly incomplete set of caller edges.
37967
37968 2014-04-25 Richard Biener <rguenther@suse.de>
37969
37970 PR ipa/60911
37971 * passes.c (apply_ipa_transforms): Inline into only caller ...
37972 (execute_one_pass): ... here. Properly bring in function
37973 bodies for nodes we want to apply IPA transforms to.
37974
37975 2014-04-24 Cong Hou <congh@google.com>
37976
37977 PR tree-optimization/60896
37978 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
37979 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
37980 (vect_mark_pattern_stmts): Set the def type of all statements in
37981 PATTERN_DEF_SEQ as vect_internal_def.
37982
37983 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
37984
37985 * doc/extend.texi (PowerPC Built-in Functions): Document new
37986 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
37987 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
37988
37989 * config/rs6000/predicates.md (const_0_to_3_operand): New
37990 predicate to match 0..3 integer constants.
37991
37992 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
37993 to support adding miscellaneous builtin functions.
37994 (BU_DFP_MISC_2): Likewise.
37995 (BU_P7_MISC_1): Likewise.
37996 (BU_P7_MISC_2): Likewise.
37997 (BU_P8V_MISC_3): Likewise.
37998 (BU_MISC_1): Likewise.
37999 (BU_MISC_2): Likewise.
38000 (DIVWE): Add extended divide builtin functions.
38001 (DIVWEO): Likewise.
38002 (DIVWEU): Likewise.
38003 (DIVWEUO): Likewise.
38004 (DIVDE): Likewise.
38005 (DIVDEO): Likewise.
38006 (DIVDEU): Likewise.
38007 (DIVDEUO): Likewise.
38008 (DXEX): Add decimal floating-point builtin functions.
38009 (DXEXQ): Likewise.
38010 (DDEDPD): Likewise.
38011 (DDEDPDQ): Likewise.
38012 (DENBCD): Likewise.
38013 (DENBCDQ): Likewise.
38014 (DIEX): Likewise.
38015 (DIEXQ): Likewise.
38016 (DSCLI): Likewise.
38017 (DSCLIQ): Likewise.
38018 (DSCRI): Likewise.
38019 (DSCRIQ): Likewise.
38020 (CDTBCD): Add new BCD builtin functions.
38021 (CBCDTD): Likewise.
38022 (ADDG6S): Likewise.
38023 (BCDADD): Likewise.
38024 (BCDADD_LT): Likewise.
38025 (BCDADD_EQ): Likewise.
38026 (BCDADD_GT): Likewise.
38027 (BCDADD_OV): Likewise.
38028 (BCDSUB): Likewise.
38029 (BCDSUB_LT): Likewise.
38030 (BCDSUB_EQ): Likewise.
38031 (BCDSUB_GT): Likewise.
38032 (BCDSUB_OV): Likewise.
38033 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
38034 (UNPACK_TD): Likewise.
38035 (PACK_TF): Likewise.
38036 (UNPACK_TF): Likewise.
38037 (UNPACK_TF_0): Likewise.
38038 (UNPACK_TF_1): Likewise.
38039 (PACK_V1TI): Likewise.
38040 (UNPACK_V1TI): Likewise.
38041
38042 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
38043 support for decimal floating point builtin functions.
38044 (rs6000_expand_ternop_builtin): Add checks for the new builtin
38045 functions that take constant arguments.
38046 (rs6000_invalid_builtin): Add decimal floating point builtin support.
38047 (rs6000_init_builtins): Setup long double, _Decimal64, and
38048 _Decimal128 types for new builtin functions.
38049 (builtin_function_type): Set the unsigned flags appropriately for
38050 the new builtin functions.
38051 (rs6000_opt_masks): Add support for decimal floating point builtin
38052 functions.
38053
38054 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
38055 floating point builtin functions.
38056 (RS6000_BTM_COMMON): Likewise.
38057 (RS6000_BTI_long_double): Likewise.
38058 (RS6000_BTI_dfloat64): Likewise.
38059 (RS6000_BTI_dfloat128): Likewise.
38060 (long_double_type_internal_node): Likewise.
38061 (dfloat64_type_internal_node): Likewise.
38062 (dfloat128_type_internal_node): Likewise.
38063
38064 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
38065 2.07 bcd arithmetic instructions.
38066 (UNSPEC_BCDSUB): Likewise.
38067 (UNSPEC_BCD_OVERFLOW): Likewise.
38068 (UNSPEC_BCD_ADD_SUB): Likewise.
38069 (bcd_add_sub): Likewise.
38070 (BCD_TEST): Likewise.
38071 (bcd<bcd_add_sub>): Likewise.
38072 (bcd<bcd_add_sub>_test): Likewise.
38073 (bcd<bcd_add_sub>_test2): Likewise.
38074 (bcd<bcd_add_sub>_<code>): Likewise.
38075 (peephole2 for combined bcd ops): Likewise.
38076
38077 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
38078 decimal floating point builtin functions.
38079 (UNSPEC_DENBCD): Likewise.
38080 (UNSPEC_DXEX): Likewise.
38081 (UNSPEC_DIEX): Likewise.
38082 (UNSPEC_DSCLI): Likewise.
38083 (UNSPEC_DSCRI): Likewise.
38084 (D64_D128): Likewise.
38085 (dfp_suffix): Likewise.
38086 (dfp_ddedpd_<mode>): Likewise.
38087 (dfp_denbcd_<mode>): Likewise.
38088 (dfp_dxex_<mode>): Likewise.
38089 (dfp_diex_<mode>): Likewise.
38090 (dfp_dscli_<mode>): Likewise.
38091 (dfp_dscri_<mode>): Likewise.
38092
38093 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
38094 builtin functions.
38095 (UNSPEC_CDTBCD): Likewise.
38096 (UNSPEC_CBCDTD): Likewise.
38097 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
38098 (UNSPEC_DIVEO): Likewise.
38099 (UNSPEC_DIVEU): Likewise.
38100 (UNSPEC_DIVEUO): Likewise.
38101 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
38102 pack/unpack 128-bit types.
38103 (UNSPEC_PACK_128BIT): Likewise.
38104 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
38105 (udiv<mode>3): Use idiv_ldiv mode attribute.
38106 (div<mode>3): Likewise.
38107 (addg6s): Add new BCD builtin functions.
38108 (cdtbcd): Likewise.
38109 (cbcdtd): Likewise.
38110 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
38111 (div_extend): Likewise.
38112 (div<div_extend>_<mode>"): Likewise.
38113 (FP128_64): Add support for new builtin functions to pack/unpack
38114 128-bit types.
38115 (unpack<mode>): Likewise.
38116 (unpacktf_0): Likewise.
38117 (unpacktf_1): Likewise.
38118 (unpack<mode>_dm): Likewise.
38119 (unpack<mode>_nodm): Likewise.
38120 (pack<mode>): Likewise.
38121 (unpackv1ti): Likewise.
38122 (packv1ti): Likewise.
38123
38124 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
38125
38126 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
38127 is disabled.
38128
38129 2014-04-24 Jakub Jelinek <jakub@redhat.com>
38130
38131 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
38132 * gimplify.c (omp_is_private): Change last argument's type to int.
38133 Only diagnose lastprivate if the simd argument is 1, only diagnose
38134 linear if the simd argument is 2.
38135 (gimplify_omp_for): Adjust omp_is_private callers. When adding
38136 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
38137 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
38138 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
38139 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
38140 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
38141 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
38142 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
38143 * tree-nested.c (convert_nonlocal_omp_clauses,
38144 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
38145
38146 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
38147
38148 PR target/60822
38149 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
38150 operand 1.
38151
38152 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
38153
38154 * flag-types.h (enum ivar_visibility): Add.
38155
38156 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
38157
38158 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
38159 function * argument.
38160
38161 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
38162
38163 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
38164
38165 2014-04-24 Radovan Obradovic <robradovic@mips.com>
38166 Tom de Vries <tom@codesourcery.com>
38167
38168 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
38169 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
38170 reg-note.
38171 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
38172 * emit-rtl.c (try_split): Same.
38173
38174 2014-04-24 Radovan Obradovic <robradovic@mips.com>
38175 Tom de Vries <tom@codesourcery.com>
38176
38177 * common.opt (fuse-caller-save): New option.
38178
38179 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
38180
38181 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
38182 elements for big-endian.
38183
38184 2014-04-24 Richard Biener <rguenther@suse.de>
38185
38186 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
38187 during TER and instead use the sepops interface for expanding
38188 non-GIMPLE_SINGLE_RHS.
38189
38190 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38191
38192 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
38193 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
38194
38195 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38196
38197 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
38198 assembler 64-bit option.
38199 * configure: Regenerate.
38200
38201 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38202
38203 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
38204 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
38205 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
38206 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
38207 (TARGET_CRYPTO): Take TARGET_SIMD into account.
38208
38209 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38210
38211 * config/aarch64/aarch64-builtins.c
38212 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
38213 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
38214 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
38215 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
38216 builtins.
38217 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
38218 (Vrevsuff): New mode attribute.
38219
38220 2014-04-24 Terry Guo <terry.guo@arm.com>
38221
38222 * config/arm/arm.h (machine_function): Define variable
38223 after_arm_reorg here.
38224 * config/arm/arm.c (after_arm_reorg): Remove the definition.
38225 (arm_split_constant): Update the way to access variable
38226 after_arm_reorg.
38227 (arm_reorg): Ditto.
38228 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
38229
38230 2014-04-23 Tom de Vries <tom@codesourcery.com>
38231
38232 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
38233
38234 2014-04-23 David Malcolm <dmalcolm@redhat.com>
38235
38236 * is-a.h: Update comments to reflect the following changes to the
38237 "pointerness" of the API, making the template parameter match the
38238 return type, allowing use of is-a.h with typedefs of pointers.
38239 (is_a_helper::cast): Return a T rather then a pointer to a T, so
38240 that the return type matches the parameter to the is_a_helper.
38241 (as_a): Likewise.
38242 (dyn_cast): Likewise.
38243
38244 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
38245 pointer from the is-a.h API.
38246
38247 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
38248 (is_a_helper <cgraph_node *>::test): ...this, matching change to
38249 is-a.h API.
38250 (is_a_helper <varpool_node>::test): Likewise, convert to...
38251 (is_a_helper <varpool_node *>::test): ...this.
38252
38253 (varpool_first_variable): Update for removal of implicit pointer
38254 from the is-a.h API.
38255 (varpool_next_variable): Likewise.
38256 (varpool_first_static_initializer): Likewise.
38257 (varpool_next_static_initializer): Likewise.
38258 (varpool_first_defined_variable): Likewise.
38259 (varpool_next_defined_variable): Likewise.
38260 (cgraph_first_defined_function): Likewise.
38261 (cgraph_next_defined_function): Likewise.
38262 (cgraph_first_function): Likewise.
38263 (cgraph_next_function): Likewise.
38264 (cgraph_first_function_with_gimple_body): Likewise.
38265 (cgraph_next_function_with_gimple_body): Likewise.
38266 (cgraph_alias_target): Likewise.
38267 (varpool_alias_target): Likewise.
38268 (cgraph_function_or_thunk_node): Likewise.
38269 (varpool_variable_node): Likewise.
38270 (symtab_real_symbol_p): Likewise.
38271 * cgraphunit.c (referred_to_p): Likewise.
38272 (analyze_functions): Likewise.
38273 (handle_alias_pairs): Likewise.
38274 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
38275 * gimple-ssa.h (gimple_vuse_op): Likewise.
38276 (gimple_vdef_op): Likewise.
38277 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
38278 * gimple.c (gimple_build_asm_1): Likewise.
38279 (gimple_build_try): Likewise.
38280 (gimple_build_resx): Likewise.
38281 (gimple_build_eh_dispatch): Likewise.
38282 (gimple_build_omp_for): Likewise.
38283 (gimple_omp_for_set_clauses): Likewise.
38284
38285 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
38286 (is_a_helper <gimple_statement_asm *>::test): ...this.
38287 (is_a_helper <gimple_statement_bind>::test): Convert to...
38288 (is_a_helper <gimple_statement_bind *>::test): ...this.
38289 (is_a_helper <gimple_statement_call>::test): Convert to...
38290 (is_a_helper <gimple_statement_call *>::test): ...this.
38291 (is_a_helper <gimple_statement_catch>::test): Convert to...
38292 (is_a_helper <gimple_statement_catch *>::test): ...this.
38293 (is_a_helper <gimple_statement_resx>::test): Convert to...
38294 (is_a_helper <gimple_statement_resx *>::test): ...this.
38295 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
38296 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
38297 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
38298 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
38299 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
38300 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
38301 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
38302 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
38303 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
38304 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
38305 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
38306 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
38307 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
38308 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
38309 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
38310 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
38311 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
38312 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
38313 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
38314 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
38315 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
38316 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
38317 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
38318 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
38319 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
38320 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
38321 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
38322 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
38323 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
38324 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
38325 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
38326 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
38327 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
38328 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
38329 (is_a_helper <gimple_statement_phi>::test): Convert to...
38330 (is_a_helper <gimple_statement_phi *>::test): ...this.
38331 (is_a_helper <gimple_statement_transaction>::test): Convert to...
38332 (is_a_helper <gimple_statement_transaction *>::test): ...this.
38333 (is_a_helper <gimple_statement_try>::test): Convert to...
38334 (is_a_helper <gimple_statement_try *>::test): ...this.
38335 (is_a_helper <gimple_statement_wce>::test): Convert to...
38336 (is_a_helper <gimple_statement_wce *>::test): ...this.
38337 (is_a_helper <const gimple_statement_asm>::test): Convert to...
38338 (is_a_helper <const gimple_statement_asm *>::test): ...this.
38339 (is_a_helper <const gimple_statement_bind>::test): Convert to...
38340 (is_a_helper <const gimple_statement_bind *>::test): ...this.
38341 (is_a_helper <const gimple_statement_call>::test): Convert to...
38342 (is_a_helper <const gimple_statement_call *>::test): ...this.
38343 (is_a_helper <const gimple_statement_catch>::test): Convert to...
38344 (is_a_helper <const gimple_statement_catch *>::test): ...this.
38345 (is_a_helper <const gimple_statement_resx>::test): Convert to...
38346 (is_a_helper <const gimple_statement_resx *>::test): ...this.
38347 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
38348 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
38349 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
38350 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
38351 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
38352 Convert to...
38353 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
38354 ...this.
38355 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
38356 Convert to...
38357 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
38358 ...this.
38359 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
38360 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
38361 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
38362 to...
38363 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
38364 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
38365 to...
38366 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
38367 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
38368 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
38369 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
38370 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
38371 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
38372 to...
38373 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
38374 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
38375 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
38376 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
38377 to...
38378 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
38379 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
38380 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
38381 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
38382 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
38383 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
38384 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
38385 (is_a_helper <const gimple_statement_phi>::test): Convert to...
38386 (is_a_helper <const gimple_statement_phi *>::test): ...this.
38387 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
38388 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
38389 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
38390 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
38391 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
38392 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
38393 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
38394 to...
38395 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
38396 ...this.
38397 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
38398 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
38399
38400 (gimple_use_ops): Update for removal of implicit pointer from the
38401 is-a.h API.
38402 (gimple_set_use_ops): Likewise.
38403 (gimple_vuse): Likewise.
38404 (gimple_vdef): Likewise.
38405 (gimple_vuse_ptr): Likewise.
38406 (gimple_vdef_ptr): Likewise.
38407 (gimple_set_vuse): Likewise.
38408 (gimple_set_vdef): Likewise.
38409 (gimple_omp_return_set_lhs): Likewise.
38410 (gimple_omp_return_lhs): Likewise.
38411 (gimple_omp_return_lhs_ptr): Likewise.
38412 (gimple_call_fntype): Likewise.
38413 (gimple_call_set_fntype): Likewise.
38414 (gimple_call_set_internal_fn): Likewise.
38415 (gimple_call_use_set): Likewise.
38416 (gimple_call_clobber_set): Likewise.
38417 (gimple_bind_vars): Likewise.
38418 (gimple_bind_set_vars): Likewise.
38419 (gimple_bind_body_ptr): Likewise.
38420 (gimple_bind_set_body): Likewise.
38421 (gimple_bind_add_stmt): Likewise.
38422 (gimple_bind_block): Likewise.
38423 (gimple_bind_set_block): Likewise.
38424 (gimple_asm_ninputs): Likewise.
38425 (gimple_asm_noutputs): Likewise.
38426 (gimple_asm_nclobbers): Likewise.
38427 (gimple_asm_nlabels): Likewise.
38428 (gimple_asm_input_op): Likewise.
38429 (gimple_asm_input_op_ptr): Likewise.
38430 (gimple_asm_output_op): Likewise.
38431 (gimple_asm_output_op_ptr): Likewise.
38432 (gimple_asm_set_output_op): Likewise.
38433 (gimple_asm_clobber_op): Likewise.
38434 (gimple_asm_set_clobber_op): Likewise.
38435 (gimple_asm_label_op): Likewise.
38436 (gimple_asm_set_label_op): Likewise.
38437 (gimple_asm_string): Likewise.
38438 (gimple_catch_types): Likewise.
38439 (gimple_catch_types_ptr): Likewise.
38440 (gimple_catch_handler_ptr): Likewise.
38441 (gimple_catch_set_types): Likewise.
38442 (gimple_catch_set_handler): Likewise.
38443 (gimple_eh_filter_types): Likewise.
38444 (gimple_eh_filter_types_ptr): Likewise.
38445 (gimple_eh_filter_failure_ptr): Likewise.
38446 (gimple_eh_filter_set_types): Likewise.
38447 (gimple_eh_filter_set_failure): Likewise.
38448 (gimple_eh_must_not_throw_fndecl): Likewise.
38449 (gimple_eh_must_not_throw_set_fndecl): Likewise.
38450 (gimple_eh_else_n_body_ptr): Likewise.
38451 (gimple_eh_else_e_body_ptr): Likewise.
38452 (gimple_eh_else_set_n_body): Likewise.
38453 (gimple_eh_else_set_e_body): Likewise.
38454 (gimple_try_eval_ptr): Likewise.
38455 (gimple_try_cleanup_ptr): Likewise.
38456 (gimple_try_set_eval): Likewise.
38457 (gimple_try_set_cleanup): Likewise.
38458 (gimple_wce_cleanup_ptr): Likewise.
38459 (gimple_wce_set_cleanup): Likewise.
38460 (gimple_phi_capacity): Likewise.
38461 (gimple_phi_num_args): Likewise.
38462 (gimple_phi_result): Likewise.
38463 (gimple_phi_result_ptr): Likewise.
38464 (gimple_phi_set_result): Likewise.
38465 (gimple_phi_arg): Likewise.
38466 (gimple_phi_set_arg): Likewise.
38467 (gimple_resx_region): Likewise.
38468 (gimple_resx_set_region): Likewise.
38469 (gimple_eh_dispatch_region): Likewise.
38470 (gimple_eh_dispatch_set_region): Likewise.
38471 (gimple_omp_critical_name): Likewise.
38472 (gimple_omp_critical_name_ptr): Likewise.
38473 (gimple_omp_critical_set_name): Likewise.
38474 (gimple_omp_for_clauses): Likewise.
38475 (gimple_omp_for_clauses_ptr): Likewise.
38476 (gimple_omp_for_set_clauses): Likewise.
38477 (gimple_omp_for_collapse): Likewise.
38478 (gimple_omp_for_index): Likewise.
38479 (gimple_omp_for_index_ptr): Likewise.
38480 (gimple_omp_for_set_index): Likewise.
38481 (gimple_omp_for_initial): Likewise.
38482 (gimple_omp_for_initial_ptr): Likewise.
38483 (gimple_omp_for_set_initial): Likewise.
38484 (gimple_omp_for_final): Likewise.
38485 (gimple_omp_for_final_ptr): Likewise.
38486 (gimple_omp_for_set_final): Likewise.
38487 (gimple_omp_for_incr): Likewise.
38488 (gimple_omp_for_incr_ptr): Likewise.
38489 (gimple_omp_for_set_incr): Likewise.
38490 (gimple_omp_for_pre_body_ptr): Likewise.
38491 (gimple_omp_for_set_pre_body): Likewise.
38492 (gimple_omp_parallel_clauses): Likewise.
38493 (gimple_omp_parallel_clauses_ptr): Likewise.
38494 (gimple_omp_parallel_set_clauses): Likewise.
38495 (gimple_omp_parallel_child_fn): Likewise.
38496 (gimple_omp_parallel_child_fn_ptr): Likewise.
38497 (gimple_omp_parallel_set_child_fn): Likewise.
38498 (gimple_omp_parallel_data_arg): Likewise.
38499 (gimple_omp_parallel_data_arg_ptr): Likewise.
38500 (gimple_omp_parallel_set_data_arg): Likewise.
38501 (gimple_omp_task_clauses): Likewise.
38502 (gimple_omp_task_clauses_ptr): Likewise.
38503 (gimple_omp_task_set_clauses): Likewise.
38504 (gimple_omp_task_child_fn): Likewise.
38505 (gimple_omp_task_child_fn_ptr): Likewise.
38506 (gimple_omp_task_set_child_fn): Likewise.
38507 (gimple_omp_task_data_arg): Likewise.
38508 (gimple_omp_task_data_arg_ptr): Likewise.
38509 (gimple_omp_task_set_data_arg): Likewise.
38510 (gimple_omp_taskreg_clauses): Likewise.
38511 (gimple_omp_taskreg_clauses_ptr): Likewise.
38512 (gimple_omp_taskreg_set_clauses): Likewise.
38513 (gimple_omp_taskreg_child_fn): Likewise.
38514 (gimple_omp_taskreg_child_fn_ptr): Likewise.
38515 (gimple_omp_taskreg_set_child_fn): Likewise.
38516 (gimple_omp_taskreg_data_arg): Likewise.
38517 (gimple_omp_taskreg_data_arg_ptr): Likewise.
38518 (gimple_omp_taskreg_set_data_arg): Likewise.
38519 (gimple_omp_task_copy_fn): Likewise.
38520 (gimple_omp_task_copy_fn_ptr): Likewise.
38521 (gimple_omp_task_set_copy_fn): Likewise.
38522 (gimple_omp_task_arg_size): Likewise.
38523 (gimple_omp_task_arg_size_ptr): Likewise.
38524 (gimple_omp_task_set_arg_size): Likewise.
38525 (gimple_omp_task_arg_align): Likewise.
38526 (gimple_omp_task_arg_align_ptr): Likewise.
38527 (gimple_omp_task_set_arg_align): Likewise.
38528 (gimple_omp_single_clauses): Likewise.
38529 (gimple_omp_single_clauses_ptr): Likewise.
38530 (gimple_omp_single_set_clauses): Likewise.
38531 (gimple_omp_target_clauses): Likewise.
38532 (gimple_omp_target_clauses_ptr): Likewise.
38533 (gimple_omp_target_set_clauses): Likewise.
38534 (gimple_omp_target_child_fn): Likewise.
38535 (gimple_omp_target_child_fn_ptr): Likewise.
38536 (gimple_omp_target_set_child_fn): Likewise.
38537 (gimple_omp_target_data_arg): Likewise.
38538 (gimple_omp_target_data_arg_ptr): Likewise.
38539 (gimple_omp_target_set_data_arg): Likewise.
38540 (gimple_omp_teams_clauses): Likewise.
38541 (gimple_omp_teams_clauses_ptr): Likewise.
38542 (gimple_omp_teams_set_clauses): Likewise.
38543 (gimple_omp_sections_clauses): Likewise.
38544 (gimple_omp_sections_clauses_ptr): Likewise.
38545 (gimple_omp_sections_set_clauses): Likewise.
38546 (gimple_omp_sections_control): Likewise.
38547 (gimple_omp_sections_control_ptr): Likewise.
38548 (gimple_omp_sections_set_control): Likewise.
38549 (gimple_omp_for_set_cond): Likewise.
38550 (gimple_omp_for_cond): Likewise.
38551 (gimple_omp_atomic_store_set_val): Likewise.
38552 (gimple_omp_atomic_store_val): Likewise.
38553 (gimple_omp_atomic_store_val_ptr): Likewise.
38554 (gimple_omp_atomic_load_set_lhs): Likewise.
38555 (gimple_omp_atomic_load_lhs): Likewise.
38556 (gimple_omp_atomic_load_lhs_ptr): Likewise.
38557 (gimple_omp_atomic_load_set_rhs): Likewise.
38558 (gimple_omp_atomic_load_rhs): Likewise.
38559 (gimple_omp_atomic_load_rhs_ptr): Likewise.
38560 (gimple_omp_continue_control_def): Likewise.
38561 (gimple_omp_continue_control_def_ptr): Likewise.
38562 (gimple_omp_continue_set_control_def): Likewise.
38563 (gimple_omp_continue_control_use): Likewise.
38564 (gimple_omp_continue_control_use_ptr): Likewise.
38565 (gimple_omp_continue_set_control_use): Likewise.
38566 (gimple_transaction_body_ptr): Likewise.
38567 (gimple_transaction_label): Likewise.
38568 (gimple_transaction_label_ptr): Likewise.
38569 (gimple_transaction_set_body): Likewise.
38570 (gimple_transaction_set_label): Likewise.
38571
38572 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
38573 * ipa-inline-analysis.c (inline_write_summary): Likewise.
38574 * ipa-ref.c (ipa_record_reference): Likewise.
38575 * ipa-reference.c (analyze_function): Likewise.
38576 (ipa_reference_write_optimization_summary): Likewise.
38577 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
38578 (address_taken_from_non_vtable_p): Likewise.
38579 (comdat_can_be_unshared_p_1): Likewise.
38580 * lto-cgraph.c (lto_output_ref): Likewise.
38581 (add_references): Likewise.
38582 (compute_ltrans_boundary): Likewise.
38583 (output_symtab): Likewise.
38584 (input_ref): Likewise.
38585 (input_cgraph_1): Likewise.
38586 (output_cgraph_opt_summary): Likewise.
38587 * lto-streamer-out.c (lto_output): Likewise.
38588 (output_symbol_p): Likewise.
38589 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
38590 (lsei_start_function_in_partition): Likewise.
38591 (lsei_next_variable_in_partition): Likewise.
38592 (lsei_start_variable_in_partition): Likewise.
38593 * symtab.c (insert_to_assembler_name_hash): Likewise.
38594 (unlink_from_assembler_name_hash): Likewise.
38595 (symtab_unregister_node): Likewise.
38596 (symtab_remove_node): Likewise.
38597 (dump_symtab_node): Likewise.
38598 (verify_symtab_base): Likewise.
38599 (verify_symtab_node): Likewise.
38600 (symtab_make_decl_local): Likewise.
38601 (symtab_alias_ultimate_target): Likewise.
38602 (symtab_resolve_alias): Likewise.
38603 (symtab_get_symbol_partitioning_class): Likewise.
38604 * tree-phinodes.c (allocate_phi_node): Likewise.
38605 (reserve_phi_args_for_new_edge): Likewise.
38606 (remove_phi_args): Likewise.
38607 * varpool.c (varpool_node_for_asm): Likewise.
38608 (varpool_remove_unreferenced_decls): Likewise.
38609
38610 2014-04-23 Jeff Law <law@redhat.com>
38611
38612 PR tree-optimization/60902
38613 * tree-ssa-threadedge.c
38614 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
38615 invalidate outputs from statements that do not produce useful
38616 outputs for threading.
38617
38618 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
38619
38620 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
38621 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
38622 machine descriptions for Stack Smashing Protector.
38623
38624 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
38625
38626 * aarch64.md (<optab>_rol<mode>3): New pattern.
38627 (<optab>_rolsi3_uxtw): Likewise.
38628 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
38629
38630 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
38631
38632 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
38633 (arm_cortex_a12_tune): Likewise.
38634
38635 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38636
38637 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
38638
38639 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38640
38641 * config/arm/arm.md (arm_rev16si2): New pattern.
38642 (arm_rev16si2_alt): Likewise.
38643 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
38644
38645 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38646
38647 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
38648 (rev16<mode>2_alt): Likewise.
38649 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
38650 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
38651 (aarch_rev16_shleft_mask_imm_p): Likewise.
38652 (aarch_rev16_p_1): Likewise.
38653 (aarch_rev16_p): Likewise.
38654 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
38655 (aarch_rev16_shright_mask_imm_p): Likewise.
38656 (aarch_rev16_shleft_mask_imm_p): Likewise.
38657
38658 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38659
38660 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
38661 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
38662 rev cost.
38663 (cortex_a53_extra_costs): Likewise.
38664 (cortex_a57_extra_costs): Likewise.
38665 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
38666 (cortexa7_extra_costs): Likewise.
38667 (cortexa8_extra_costs): Likewise.
38668 (cortexa12_extra_costs): Likewise.
38669 (cortexa15_extra_costs): Likewise.
38670 (v7m_extra_costs): Likewise.
38671 (arm_new_rtx_costs): Handle BSWAP.
38672
38673 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38674
38675 * config/arm/arm.c (cortexa8_extra_costs): New table.
38676 (arm_cortex_a8_tune): New tuning struct.
38677 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
38678
38679 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38680
38681 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
38682
38683 2014-04-23 Richard Biener <rguenther@suse.de>
38684
38685 * Makefile.in (OBJS): Remove loop-unswitch.o.
38686 * tree-pass.h (make_pass_rtl_unswitch): Remove.
38687 * passes.def (pass_rtl_unswitch): Likewise.
38688 * loop-init.c (gate_rtl_unswitch): Likewise.
38689 (rtl_unswitch): Likewise.
38690 (pass_data_rtl_unswitch): Likewise.
38691 (pass_rtl_unswitch): Likewise.
38692 (make_pass_rtl_unswitch): Likewise.
38693 * rtl.h (reversed_condition): Likewise.
38694 (compare_and_jump_seq): Likewise.
38695 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
38696 and make static.
38697 * loop-unroll.c (compare_and_jump_seq): Likewise.
38698
38699 2014-04-23 Richard Biener <rguenther@suse.de>
38700
38701 PR tree-optimization/60903
38702 * tree-ssa-loop-im.c (analyze_memory_references): Remove
38703 commented code block.
38704 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
38705 loop flags to newly created BBs and edges.
38706
38707 2014-04-23 Nick Clifton <nickc@redhat.com>
38708
38709 * config/msp430/msp430.c (msp430_handle_option): Move function
38710 to msp430-common.c
38711 (msp430_option_override): Simplify mcu and mcpu option handling.
38712 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
38713 support for -mhwmult command line option.
38714 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
38715 -mhwmult command line option.
38716 (msp430_hwmult_enabled): Delete.
38717 (msp43o_output_labelref): Add support for -mhwmult command line option.
38718 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
38719 (umulsidi3): Likewise.
38720 * config/msp430/msp430.opt (mmcu): Add Report attribute.
38721 (mcpu, mlarge, msmall): Likewise.
38722 (mhwmult): New option.
38723 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
38724 prototype.
38725 (msp430_is_f5_mcu): Remove prototype.
38726 (msp430_use_f5_series_hwmult): Add prototype.
38727 * config/msp430/msp430-opts.h: New file.
38728 * common/config/msp430: New directory.
38729 * common/config/msp430/msp430-common.c: New file.
38730 * config.gcc (msp430): Remove target_has_targetm_common.
38731 * doc/invoke.texi: Document -mhwmult command line option.
38732
38733 2014-04-23 Nick Clifton <nickc@redhat.com>
38734
38735 * config/i386/cygwin.h (ENDFILE_SPEC): Include
38736 default-manifest.o if it can be found in the search path.
38737 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
38738
38739 2014-04-23 Terry Guo <terry.guo@arm.com>
38740
38741 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
38742
38743 2014-04-23 Richard Biener <rguenther@suse.de>
38744
38745 PR middle-end/60895
38746 * tree-inline.c (declare_return_variable): Use mark_addressable.
38747
38748 2014-04-23 Richard Biener <rguenther@suse.de>
38749
38750 PR middle-end/60891
38751 * loop-init.c (loop_optimizer_init): Make sure to apply
38752 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
38753
38754 2014-04-22 Jakub Jelinek <jakub@redhat.com>
38755
38756 PR sanitizer/60275
38757 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
38758 New options.
38759 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
38760 if flag_sanitize_undefined_trap_on_error.
38761 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
38762 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
38763 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
38764 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
38765 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
38766 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
38767 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
38768 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
38769 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
38770 * ubsan.c (ubsan_instrument_unreachable): Return
38771 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
38772 (ubsan_expand_null_ifn): Emit __builtin_trap ()
38773 if flag_sanitize_undefined_trap_on_error and
38774 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
38775 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
38776 instrument_bool_enum_load): Emit __builtin_trap () if
38777 flag_sanitize_undefined_trap_on_error and
38778 __builtin_handle_*_abort () if !flag_sanitize_recover.
38779 * doc/invoke.texi (-fsanitize-recover,
38780 -fsanitize-undefined-trap-on-error): Document.
38781
38782 2014-04-22 Christian Bruel <christian.bruel@st.com>
38783
38784 * config/sh/sh.md (mov<mode>): Replace movQIHI.
38785 Force immediates to SImode.
38786
38787 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
38788
38789 * config/nios2/nios2.md (UNSPEC_ROUND): New.
38790 (lroundsfsi2): New.
38791 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
38792 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
38793 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
38794 (nios2_fpu_insn): Add entry for round.
38795 (N2FPU_NO_ERRNO_P): Define.
38796 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
38797 flag_errno_math.
38798 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
38799
38800 2014-04-22 Richard Henderson <rth@redhat.com>
38801
38802 * config/aarch64/aarch64 (addti3, subti3): New expanders.
38803 (add<GPI>3_compare0): Remove leading * from name.
38804 (add<GPI>3_carryin): Likewise.
38805 (sub<GPI>3_compare0): Likewise.
38806 (sub<GPI>3_carryin): Likewise.
38807 (<su_optab>mulditi3): New expander.
38808 (multi3): New expander.
38809 (madd<GPI>): Remove leading * from name.
38810
38811 2014-04-22 Martin Jambor <mjambor@suse.cz>
38812
38813 * cgraphclones.c (cgraph_function_versioning): Copy
38814 ipa_transforms_to_apply instead of asserting it is empty.
38815
38816 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
38817
38818 PR target/60868
38819 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
38820 on count_exp to get mode.
38821
38822 2014-04-22 Andrew Pinski <apinski@cavium.com>
38823
38824 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
38825 Handle TLS for ILP32.
38826 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
38827 (tlsie_small_<mode>): this and handle PTR.
38828 (tlsie_small_sidi): New pattern.
38829 (tlsle_small): Change to an expand to handle ILP32.
38830 (tlsle_small_<mode>): New pattern.
38831 (tlsdesc_small): Rename to ...
38832 (tlsdesc_small_<mode>): this and handle PTR.
38833
38834 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38835
38836 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
38837
38838 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
38839
38840 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
38841 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
38842 (aarch64_types_signed_poly_qualifiers): Likewise.
38843 (aarch64_types_unsigned_signed_qualifiers): Likewise.
38844 (aarch64_types_poly_signed_qualifiers): Likewise.
38845 (TYPES_REINTERP_SS): Type macro added.
38846 (TYPES_REINTERP_SU): Likewise.
38847 (TYPES_REINTERP_SP): Likewise.
38848 (TYPES_REINTERP_US): Likewise.
38849 (TYPES_REINTERP_PS): Likewise.
38850 (aarch64_fold_builtin): New expression folding added.
38851 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
38852 Declarations removed.
38853 (REINTERP_SS): Declarations added.
38854 (REINTERP_US): Likewise.
38855 (REINTERP_PS): Likewise.
38856 (REINTERP_SU): Likewise.
38857 (REINTERP_SP): Likewise.
38858 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
38859 (vreinterpretq_p8_f64): Likewise.
38860 (vreinterpret_p16_f64): Likewise.
38861 (vreinterpretq_p16_f64): Likewise.
38862 (vreinterpret_f32_f64): Likewise.
38863 (vreinterpretq_f32_f64): Likewise.
38864 (vreinterpret_f64_f32): Likewise.
38865 (vreinterpret_f64_p8): Likewise.
38866 (vreinterpret_f64_p16): Likewise.
38867 (vreinterpret_f64_s8): Likewise.
38868 (vreinterpret_f64_s16): Likewise.
38869 (vreinterpret_f64_s32): Likewise.
38870 (vreinterpret_f64_s64): Likewise.
38871 (vreinterpret_f64_u8): Likewise.
38872 (vreinterpret_f64_u16): Likewise.
38873 (vreinterpret_f64_u32): Likewise.
38874 (vreinterpret_f64_u64): Likewise.
38875 (vreinterpretq_f64_f32): Likewise.
38876 (vreinterpretq_f64_p8): Likewise.
38877 (vreinterpretq_f64_p16): Likewise.
38878 (vreinterpretq_f64_s8): Likewise.
38879 (vreinterpretq_f64_s16): Likewise.
38880 (vreinterpretq_f64_s32): Likewise.
38881 (vreinterpretq_f64_s64): Likewise.
38882 (vreinterpretq_f64_u8): Likewise.
38883 (vreinterpretq_f64_u16): Likewise.
38884 (vreinterpretq_f64_u32): Likewise.
38885 (vreinterpretq_f64_u64): Likewise.
38886 (vreinterpret_s64_f64): Likewise.
38887 (vreinterpretq_s64_f64): Likewise.
38888 (vreinterpret_u64_f64): Likewise.
38889 (vreinterpretq_u64_f64): Likewise.
38890 (vreinterpret_s8_f64): Likewise.
38891 (vreinterpretq_s8_f64): Likewise.
38892 (vreinterpret_s16_f64): Likewise.
38893 (vreinterpretq_s16_f64): Likewise.
38894 (vreinterpret_s32_f64): Likewise.
38895 (vreinterpretq_s32_f64): Likewise.
38896 (vreinterpret_u8_f64): Likewise.
38897 (vreinterpretq_u8_f64): Likewise.
38898 (vreinterpret_u16_f64): Likewise.
38899 (vreinterpretq_u16_f64): Likewise.
38900 (vreinterpret_u32_f64): Likewise.
38901 (vreinterpretq_u32_f64): Likewise.
38902
38903 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
38904
38905 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
38906 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
38907 (vreinterpret_p8_s8): Likewise.
38908 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
38909 (vreinterpret_p8_s16): Likewise.
38910 (vreinterpret_p8_s32): Likewise.
38911 (vreinterpret_p8_s64): Likewise.
38912 (vreinterpret_p8_f32): Likewise.
38913 (vreinterpret_p8_u8): Likewise.
38914 (vreinterpret_p8_u16): Likewise.
38915 (vreinterpret_p8_u32): Likewise.
38916 (vreinterpret_p8_u64): Likewise.
38917 (vreinterpret_p8_p16): Likewise.
38918 (vreinterpretq_p8_s8): Likewise.
38919 (vreinterpretq_p8_s16): Likewise.
38920 (vreinterpretq_p8_s32): Likewise.
38921 (vreinterpretq_p8_s64): Likewise.
38922 (vreinterpretq_p8_f32): Likewise.
38923 (vreinterpretq_p8_u8): Likewise.
38924 (vreinterpretq_p8_u16): Likewise.
38925 (vreinterpretq_p8_u32): Likewise.
38926 (vreinterpretq_p8_u64): Likewise.
38927 (vreinterpretq_p8_p16): Likewise.
38928 (vreinterpret_p16_s8): Likewise.
38929 (vreinterpret_p16_s16): Likewise.
38930 (vreinterpret_p16_s32): Likewise.
38931 (vreinterpret_p16_s64): Likewise.
38932 (vreinterpret_p16_f32): Likewise.
38933 (vreinterpret_p16_u8): Likewise.
38934 (vreinterpret_p16_u16): Likewise.
38935 (vreinterpret_p16_u32): Likewise.
38936 (vreinterpret_p16_u64): Likewise.
38937 (vreinterpret_p16_p8): Likewise.
38938 (vreinterpretq_p16_s8): Likewise.
38939 (vreinterpretq_p16_s16): Likewise.
38940 (vreinterpretq_p16_s32): Likewise.
38941 (vreinterpretq_p16_s64): Likewise.
38942 (vreinterpretq_p16_f32): Likewise.
38943 (vreinterpretq_p16_u8): Likewise.
38944 (vreinterpretq_p16_u16): Likewise.
38945 (vreinterpretq_p16_u32): Likewise.
38946 (vreinterpretq_p16_u64): Likewise.
38947 (vreinterpretq_p16_p8): Likewise.
38948 (vreinterpret_f32_s8): Likewise.
38949 (vreinterpret_f32_s16): Likewise.
38950 (vreinterpret_f32_s32): Likewise.
38951 (vreinterpret_f32_s64): Likewise.
38952 (vreinterpret_f32_u8): Likewise.
38953 (vreinterpret_f32_u16): Likewise.
38954 (vreinterpret_f32_u32): Likewise.
38955 (vreinterpret_f32_u64): Likewise.
38956 (vreinterpret_f32_p8): Likewise.
38957 (vreinterpret_f32_p16): Likewise.
38958 (vreinterpretq_f32_s8): Likewise.
38959 (vreinterpretq_f32_s16): Likewise.
38960 (vreinterpretq_f32_s32): Likewise.
38961 (vreinterpretq_f32_s64): Likewise.
38962 (vreinterpretq_f32_u8): Likewise.
38963 (vreinterpretq_f32_u16): Likewise.
38964 (vreinterpretq_f32_u32): Likewise.
38965 (vreinterpretq_f32_u64): Likewise.
38966 (vreinterpretq_f32_p8): Likewise.
38967 (vreinterpretq_f32_p16): Likewise.
38968 (vreinterpret_s64_s8): Likewise.
38969 (vreinterpret_s64_s16): Likewise.
38970 (vreinterpret_s64_s32): Likewise.
38971 (vreinterpret_s64_f32): Likewise.
38972 (vreinterpret_s64_u8): Likewise.
38973 (vreinterpret_s64_u16): Likewise.
38974 (vreinterpret_s64_u32): Likewise.
38975 (vreinterpret_s64_u64): Likewise.
38976 (vreinterpret_s64_p8): Likewise.
38977 (vreinterpret_s64_p16): Likewise.
38978 (vreinterpretq_s64_s8): Likewise.
38979 (vreinterpretq_s64_s16): Likewise.
38980 (vreinterpretq_s64_s32): Likewise.
38981 (vreinterpretq_s64_f32): Likewise.
38982 (vreinterpretq_s64_u8): Likewise.
38983 (vreinterpretq_s64_u16): Likewise.
38984 (vreinterpretq_s64_u32): Likewise.
38985 (vreinterpretq_s64_u64): Likewise.
38986 (vreinterpretq_s64_p8): Likewise.
38987 (vreinterpretq_s64_p16): Likewise.
38988 (vreinterpret_u64_s8): Likewise.
38989 (vreinterpret_u64_s16): Likewise.
38990 (vreinterpret_u64_s32): Likewise.
38991 (vreinterpret_u64_s64): Likewise.
38992 (vreinterpret_u64_f32): Likewise.
38993 (vreinterpret_u64_u8): Likewise.
38994 (vreinterpret_u64_u16): Likewise.
38995 (vreinterpret_u64_u32): Likewise.
38996 (vreinterpret_u64_p8): Likewise.
38997 (vreinterpret_u64_p16): Likewise.
38998 (vreinterpretq_u64_s8): Likewise.
38999 (vreinterpretq_u64_s16): Likewise.
39000 (vreinterpretq_u64_s32): Likewise.
39001 (vreinterpretq_u64_s64): Likewise.
39002 (vreinterpretq_u64_f32): Likewise.
39003 (vreinterpretq_u64_u8): Likewise.
39004 (vreinterpretq_u64_u16): Likewise.
39005 (vreinterpretq_u64_u32): Likewise.
39006 (vreinterpretq_u64_p8): Likewise.
39007 (vreinterpretq_u64_p16): Likewise.
39008 (vreinterpret_s8_s16): Likewise.
39009 (vreinterpret_s8_s32): Likewise.
39010 (vreinterpret_s8_s64): Likewise.
39011 (vreinterpret_s8_f32): Likewise.
39012 (vreinterpret_s8_u8): Likewise.
39013 (vreinterpret_s8_u16): Likewise.
39014 (vreinterpret_s8_u32): Likewise.
39015 (vreinterpret_s8_u64): Likewise.
39016 (vreinterpret_s8_p8): Likewise.
39017 (vreinterpret_s8_p16): Likewise.
39018 (vreinterpretq_s8_s16): Likewise.
39019 (vreinterpretq_s8_s32): Likewise.
39020 (vreinterpretq_s8_s64): Likewise.
39021 (vreinterpretq_s8_f32): Likewise.
39022 (vreinterpretq_s8_u8): Likewise.
39023 (vreinterpretq_s8_u16): Likewise.
39024 (vreinterpretq_s8_u32): Likewise.
39025 (vreinterpretq_s8_u64): Likewise.
39026 (vreinterpretq_s8_p8): Likewise.
39027 (vreinterpretq_s8_p16): Likewise.
39028 (vreinterpret_s16_s8): Likewise.
39029 (vreinterpret_s16_s32): Likewise.
39030 (vreinterpret_s16_s64): Likewise.
39031 (vreinterpret_s16_f32): Likewise.
39032 (vreinterpret_s16_u8): Likewise.
39033 (vreinterpret_s16_u16): Likewise.
39034 (vreinterpret_s16_u32): Likewise.
39035 (vreinterpret_s16_u64): Likewise.
39036 (vreinterpret_s16_p8): Likewise.
39037 (vreinterpret_s16_p16): Likewise.
39038 (vreinterpretq_s16_s8): Likewise.
39039 (vreinterpretq_s16_s32): Likewise.
39040 (vreinterpretq_s16_s64): Likewise.
39041 (vreinterpretq_s16_f32): Likewise.
39042 (vreinterpretq_s16_u8): Likewise.
39043 (vreinterpretq_s16_u16): Likewise.
39044 (vreinterpretq_s16_u32): Likewise.
39045 (vreinterpretq_s16_u64): Likewise.
39046 (vreinterpretq_s16_p8): Likewise.
39047 (vreinterpretq_s16_p16): Likewise.
39048 (vreinterpret_s32_s8): Likewise.
39049 (vreinterpret_s32_s16): Likewise.
39050 (vreinterpret_s32_s64): Likewise.
39051 (vreinterpret_s32_f32): Likewise.
39052 (vreinterpret_s32_u8): Likewise.
39053 (vreinterpret_s32_u16): Likewise.
39054 (vreinterpret_s32_u32): Likewise.
39055 (vreinterpret_s32_u64): Likewise.
39056 (vreinterpret_s32_p8): Likewise.
39057 (vreinterpret_s32_p16): Likewise.
39058 (vreinterpretq_s32_s8): Likewise.
39059 (vreinterpretq_s32_s16): Likewise.
39060 (vreinterpretq_s32_s64): Likewise.
39061 (vreinterpretq_s32_f32): Likewise.
39062 (vreinterpretq_s32_u8): Likewise.
39063 (vreinterpretq_s32_u16): Likewise.
39064 (vreinterpretq_s32_u32): Likewise.
39065 (vreinterpretq_s32_u64): Likewise.
39066 (vreinterpretq_s32_p8): Likewise.
39067 (vreinterpretq_s32_p16): Likewise.
39068 (vreinterpret_u8_s8): Likewise.
39069 (vreinterpret_u8_s16): Likewise.
39070 (vreinterpret_u8_s32): Likewise.
39071 (vreinterpret_u8_s64): Likewise.
39072 (vreinterpret_u8_f32): Likewise.
39073 (vreinterpret_u8_u16): Likewise.
39074 (vreinterpret_u8_u32): Likewise.
39075 (vreinterpret_u8_u64): Likewise.
39076 (vreinterpret_u8_p8): Likewise.
39077 (vreinterpret_u8_p16): Likewise.
39078 (vreinterpretq_u8_s8): Likewise.
39079 (vreinterpretq_u8_s16): Likewise.
39080 (vreinterpretq_u8_s32): Likewise.
39081 (vreinterpretq_u8_s64): Likewise.
39082 (vreinterpretq_u8_f32): Likewise.
39083 (vreinterpretq_u8_u16): Likewise.
39084 (vreinterpretq_u8_u32): Likewise.
39085 (vreinterpretq_u8_u64): Likewise.
39086 (vreinterpretq_u8_p8): Likewise.
39087 (vreinterpretq_u8_p16): Likewise.
39088 (vreinterpret_u16_s8): Likewise.
39089 (vreinterpret_u16_s16): Likewise.
39090 (vreinterpret_u16_s32): Likewise.
39091 (vreinterpret_u16_s64): Likewise.
39092 (vreinterpret_u16_f32): Likewise.
39093 (vreinterpret_u16_u8): Likewise.
39094 (vreinterpret_u16_u32): Likewise.
39095 (vreinterpret_u16_u64): Likewise.
39096 (vreinterpret_u16_p8): Likewise.
39097 (vreinterpret_u16_p16): Likewise.
39098 (vreinterpretq_u16_s8): Likewise.
39099 (vreinterpretq_u16_s16): Likewise.
39100 (vreinterpretq_u16_s32): Likewise.
39101 (vreinterpretq_u16_s64): Likewise.
39102 (vreinterpretq_u16_f32): Likewise.
39103 (vreinterpretq_u16_u8): Likewise.
39104 (vreinterpretq_u16_u32): Likewise.
39105 (vreinterpretq_u16_u64): Likewise.
39106 (vreinterpretq_u16_p8): Likewise.
39107 (vreinterpretq_u16_p16): Likewise.
39108 (vreinterpret_u32_s8): Likewise.
39109 (vreinterpret_u32_s16): Likewise.
39110 (vreinterpret_u32_s32): Likewise.
39111 (vreinterpret_u32_s64): Likewise.
39112 (vreinterpret_u32_f32): Likewise.
39113 (vreinterpret_u32_u8): Likewise.
39114 (vreinterpret_u32_u16): Likewise.
39115 (vreinterpret_u32_u64): Likewise.
39116 (vreinterpret_u32_p8): Likewise.
39117 (vreinterpret_u32_p16): Likewise.
39118 (vreinterpretq_u32_s8): Likewise.
39119 (vreinterpretq_u32_s16): Likewise.
39120 (vreinterpretq_u32_s32): Likewise.
39121 (vreinterpretq_u32_s64): Likewise.
39122 (vreinterpretq_u32_f32): Likewise.
39123 (vreinterpretq_u32_u8): Likewise.
39124 (vreinterpretq_u32_u16): Likewise.
39125 (vreinterpretq_u32_u64): Likewise.
39126 (vreinterpretq_u32_p8): Likewise.
39127 (vreinterpretq_u32_p16): Likewise.
39128
39129 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
39130
39131 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
39132 Pattern extended.
39133 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
39134 (sqabs): Likewise.
39135 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
39136 (vqnegd_s64): Likewise.
39137 (vqabs_s64): Likewise.
39138 (vqabsd_s64): Likewise.
39139
39140 2014-04-22 Richard Henderson <rth@redhat.com>
39141
39142 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
39143 computation to the top of the loop.
39144
39145 2014-04-22 Renlin <renlin.li@arm.com>
39146 Jiong Wang <jiong.wang@arm.com>
39147
39148 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
39149 * config/aarch64/aarch64.c (aarch64_layout_frame)
39150 (aarch64_initial_elimination_offset): Likewise.
39151
39152 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
39153
39154 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
39155 Fix indentation.
39156
39157 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
39158
39159 * machmode.h (bitwise_mode_for_mode): Declare.
39160 * stor-layout.h (bitwise_type_for_mode): Likewise.
39161 * stor-layout.c (bitwise_mode_for_mode): New function.
39162 (bitwise_type_for_mode): Likewise.
39163 * builtins.c (fold_builtin_memory_op): Use it instead of
39164 int_mode_for_mode and build_nonstandard_integer_type.
39165
39166 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39167
39168 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
39169 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
39170 (*-*-solaris2*): Simplify.
39171 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
39172 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
39173 *-*-solaris2.9* handling.
39174
39175 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
39176 as bug.
39177 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
39178 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
39179 handling, simplify.
39180 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
39181 * configure: Regenerate.
39182
39183 * config/i386/sol2-9.h: Remove.
39184
39185 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
39186 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
39187 Remove Solaris 9 references.
39188
39189 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
39190
39191 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
39192 (floatuns<GPI:mode><GPF:mode>2): Remove.
39193 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
39194 and floatuns conversions.
39195 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
39196 and floatuns conversions.
39197 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
39198 (w1,w2): New mode attributes for inequal width conversions.
39199
39200 2014-04-22 Renlin Li <Renlin.Li@arm.com>
39201
39202 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
39203 the output asm format.
39204
39205 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
39206
39207 * config/aarch64/aarch64-simd.md
39208 (aarch64_cm<optab>di): Always split.
39209 (*aarch64_cm<optab>di): New.
39210 (aarch64_cmtstdi): Always split.
39211 (*aarch64_cmtstdi): New.
39212
39213 2014-04-22 Jakub Jelinek <jakub@redhat.com>
39214
39215 PR tree-optimization/60823
39216 * omp-low.c (ipa_simd_modify_function_body): Go through
39217 all SSA_NAMEs and for those refering to vector arguments
39218 which are going to be replaced adjust SSA_NAME_VAR and,
39219 if it is a default definition, change it into a non-default
39220 definition assigned at the beginning of function from new_decl.
39221 (ipa_simd_modify_stmt_ops): Rewritten.
39222 * tree-dfa.c (set_ssa_default_def): When removing default def,
39223 check for NULL loc instead of NULL *loc.
39224
39225 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39226
39227 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
39228 restrictions on core registers for DImode values in Thumb2.
39229
39230 2014-04-22 Ian Bolton <ian.bolton@arm.com>
39231
39232 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
39233 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
39234
39235 2014-04-22 Ian Bolton <ian.bolton@arm.com>
39236
39237 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
39238 (*iordi_notzesidi_di): Likewise.
39239 (*iordi_notsesidi_di): Likewise.
39240
39241 2014-04-22 Ian Bolton <ian.bolton@arm.com>
39242
39243 * config/arm/arm-protos.h (tune_params): New struct members.
39244 * config/arm/arm.c: Initialise tune_params per processor.
39245 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
39246 for speed, based on new tune_params.
39247
39248 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
39249
39250 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
39251 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
39252 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
39253 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
39254 * config/aarch64/arm_neon.h (vrnd_f64): Added.
39255 (vrnda_f64): Likewise.
39256 (vrndi_f64): Likewise.
39257 (vrndm_f64): Likewise.
39258 (vrndn_f64): Likewise.
39259 (vrndp_f64): Likewise.
39260 (vrndx_f64): Likewise.
39261
39262 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
39263
39264 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
39265 GET_MODE_SIZE argument is enum machine_mode.
39266
39267 2014-04-22 Jakub Jelinek <jakub@redhat.com>
39268
39269 PR target/60910
39270 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
39271 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
39272
39273 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
39274
39275 PR middle-end/60281
39276 * asan.c (asan_emit_stack_protection): Force the base to align to
39277 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
39278 appropriate bits if STRICT_ALIGNMENT.
39279 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
39280 when asan is on.
39281 (expand_used_vars): Leave a space in the stack frame for alignment
39282 if STRICT_ALIGNMENT.
39283
39284 2014-04-21 David Malcolm <dmalcolm@redhat.com>
39285
39286 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
39287 than a gimple.
39288 (gimple_store_p): Likewise.
39289 (gimple_assign_load_p): Likewise.
39290 (gimple_assign_cast_p): Likewise.
39291 (gimple_clobber_p): Likewise.
39292
39293 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
39294 rather than a gimple.
39295 (gimple_assign_cast_p): Likewise.
39296
39297 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
39298
39299 PR target/60735
39300 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
39301 If mode is DDmode and TARGET_E500_DOUBLE allow move.
39302
39303 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
39304 more debug information for E500 if -mdebug=reg.
39305
39306 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
39307
39308 PR target/60909
39309 * config/i386/i386.c (ix86_expand_builtin)
39310 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
39311 register for target RTX.
39312 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
39313
39314 2014-04-18 Cong Hou <congh@google.com>
39315
39316 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
39317 the widen-mult pattern by handling two operands with different sizes,
39318 and operands whose size is smaller than half of the result type.
39319
39320 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
39321
39322 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
39323 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
39324 (do_estimate_edge_time): Compute it.
39325 * ipa-inline.c (want_inline_small_function_p): Bypass
39326 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
39327
39328 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
39329
39330 * ipa-inline.c (spec_rem): New static variable.
39331 (dump_overall_stats): New function.
39332 (dump_inline_stats): New function.
39333
39334 2014-04-18 Richard Henderson <rth@redhat.com>
39335
39336 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
39337 to GET_MODE_SIZE, not a reg_class_t.
39338
39339 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39340
39341 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
39342 (vsx_xxmrglw_<mode>): Likewise.
39343
39344 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
39345
39346 PR target/60876
39347 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
39348 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
39349 (rs6000_init_hard_regno_mode_ok): Likewise.
39350
39351 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
39352
39353 * ipa-inline.c (inline_small_functions): Account only non-cold
39354 functions.
39355 * doc/invoke.texi (inline-unit-growth): Update documentation.
39356
39357 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
39358
39359 * config/rs6000/rs6000.md (addti3, subti3): New.
39360
39361 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
39362
39363 PR target/60863
39364 * config/i386/i386.c (ix86_expand_clear): Remove outdated
39365 comment. Check optimize_insn_for_size_p instead of
39366 optimize_insn_for_speed_p.
39367
39368 2014-04-17 Martin Jambor <mjambor@suse.cz>
39369
39370 * gimple-iterator.c (gsi_start_edge): New function.
39371 * gimple-iterator.h (gsi_start_edge): Declare.
39372 * tree-sra.c (single_non_eh_succ): New function.
39373 (disqualify_ops_if_throwing_stmt): Renamed to
39374 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
39375 having one non-EH successor BB.
39376 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
39377 generate loads into replacements.
39378 (sra_modify_assign): Likewise and and also use the simple path for
39379 such statements.
39380 (sra_modify_function_body): Commit statements on edges.
39381
39382 2014-04-17 Richard Biener <rguenther@suse.de>
39383
39384 PR middle-end/60849
39385 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
39386 comparison results and add clarifying comment.
39387
39388 2014-04-17 Jakub Jelinek <jakub@redhat.com>
39389
39390 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
39391 (blank_mode): Initialize it.
39392 (emit_mode_size_inline, emit_mode_nunits_inline,
39393 emit_mode_inner_inline): New functions.
39394 (emit_insn_modes_h): Call them and surround their output with
39395 #if GCC_VERSION >= 4001 ... #endif.
39396 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
39397 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
39398 mode_* arrays if the argument is __builtin_constant_p.
39399 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
39400 is enum machine_mode.
39401
39402 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
39403
39404 * passes.c (opt_pass::execute): Adjust.
39405 (pass_manager::execute_pass_mode_switching): Likewise.
39406 (early_local_passes::execute): Likewise.
39407 (execute_one_pass): Pass cfun to the pass's execute method.
39408 * tree-pass.h (opt_pass::execute): Add function * argument.
39409 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
39410 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
39411 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
39412 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
39413 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
39414 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
39415 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
39416 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
39417 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
39418 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
39419 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
39420 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
39421 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
39422 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
39423 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
39424 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
39425 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
39426 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
39427 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
39428 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
39429 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
39430 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
39431 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
39432 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
39433 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
39434 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
39435 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
39436 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
39437 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
39438 Adjust.
39439
39440 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
39441
39442 * passes.c (opt_pass::gate): Take function * argument.
39443 (gate_all_early_local_passes): Merge into
39444 (early_local_passes::gate): this.
39445 (gate_all_early_optimizations): Merge into
39446 (all_early_optimizations::gate): this.
39447 (gate_all_optimizations): Mege into
39448 (all_optimizations::gate): this.
39449 (gate_all_optimizations_g): Merge into
39450 (all_optimizations_g::gate): this.
39451 (gate_rest_of_compilation): Mege into
39452 (rest_of_compilation::gate): this.
39453 (gate_postreload): Merge into
39454 (postreload::gate): this.
39455 (dump_one_pass): Pass cfun to the pass's gate method.
39456 (execute_ipa_summary_passes): Likewise.
39457 (execute_one_pass): Likewise.
39458 (ipa_write_summaries_2): Likewise.
39459 (ipa_write_optimization_summaries_1): Likewise.
39460 (ipa_read_summaries_1): Likewise.
39461 (ipa_read_optimization_summaries_1): Likewise.
39462 (execute_ipa_stmt_fixups): Likewise.
39463 * tree-pass.h (opt_pass::gate): Add function * argument.
39464 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
39465 combine-stack-adj.c, combine.c, compare-elim.c,
39466 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
39467 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
39468 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
39469 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
39470 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
39471 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
39472 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
39473 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
39474 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
39475 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
39476 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
39477 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
39478 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
39479 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
39480 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
39481 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
39482 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
39483 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
39484 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
39485 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
39486 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
39487 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
39488 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
39489 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
39490 var-tracking.c, vtable-verify.c, web.c: Adjust.
39491
39492 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
39493
39494 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
39495 * configure: Regenerate.
39496
39497 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
39498
39499 * passes.c (dump_one_pass): don't check pass->has_gate.
39500 (execute_ipa_summary_passes): Likewise.
39501 (execute_one_pass): Likewise.
39502 (ipa_write_summaries_2): Likewise.
39503 (ipa_write_optimization_summaries_1): Likewise.
39504 (ipa_read_optimization_summaries_1): Likewise.
39505 (execute_ipa_stmt_fixups): Likewise.
39506 * tree-pass.h (pass_data::has_gate): Remove.
39507 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
39508 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
39509 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
39510 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
39511 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
39512 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
39513 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
39514 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
39515 gimple-low.c, gimple-ssa-isolate-paths.c,
39516 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
39517 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
39518 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
39519 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
39520 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
39521 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
39522 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
39523 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
39524 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
39525 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
39526 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
39527 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
39528 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
39529 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
39530 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
39531 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
39532 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
39533 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
39534 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
39535 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
39536 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
39537 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
39538 Adjust.
39539
39540 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
39541
39542 * pass_manager.h (pass_manager::register_dump_files_1): Remove
39543 declaration.
39544 * passes.c (pass_manager::register_dump_files_1): Merge into
39545 (pass_manager::register_dump_files): this, and remove its handling of
39546 properties since the pass always has the properties anyway.
39547 (pass_manager::pass_manager): Adjust.
39548
39549 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
39550
39551 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
39552 * passes.c (pass_manager::register_dump_files_1): Remove dead code
39553 dealing with properties.
39554 (pass_manager::register_dump_files): Adjust.
39555
39556 2014-03-20 Mark Wielaard <mjw@redhat.com>
39557
39558 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
39559 then represent the bound as normal constant value.
39560
39561 2014-04-17 Jakub Jelinek <jakub@redhat.com>
39562
39563 PR target/60847
39564 Forward port from 4.8 branch
39565 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
39566
39567 * config/i386/bmiintrin.h (_blsi_u32): New.
39568 (_blsi_u64): Ditto.
39569 (_blsr_u32): Ditto.
39570 (_blsr_u64): Ditto.
39571 (_blsmsk_u32): Ditto.
39572 (_blsmsk_u64): Ditto.
39573 (_tzcnt_u32): Ditto.
39574 (_tzcnt_u64): Ditto.
39575
39576 2014-04-17 Kito Cheng <kito@0xlab.org>
39577
39578 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
39579
39580 2014-04-17 Richard Biener <rguenther@suse.de>
39581
39582 PR middle-end/60849
39583 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
39584 boolean results for comparisons.
39585
39586 2014-04-17 Richard Biener <rguenther@suse.de>
39587
39588 PR tree-optimization/60836
39589 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
39590 initial PHI args to be gimple values.
39591
39592 2014-04-17 Richard Biener <rguenther@suse.de>
39593
39594 PR tree-optimization/60841
39595 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
39596 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
39597 of stmts to SLP build.
39598 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
39599 (vect_analyze_slp): Likewise.
39600 (vect_analyze_slp_instance): Likewise.
39601 (vect_build_slp_tree): Limit overall SLP tree growth.
39602 * tree-vectorizer.h (vect_analyze_data_refs,
39603 vect_analyze_slp): Adjust prototypes.
39604
39605 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
39606
39607 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
39608 Silvermont.
39609
39610 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
39611
39612 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
39613 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
39614 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
39615 for TARGET_SLOW_PSHUFB
39616
39617 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
39618
39619 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
39620 * config/i386/i386.c (intel_cost): Ditto.
39621
39622 2014-04-17 Joey Ye <joey.ye@arm.com>
39623
39624 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
39625
39626 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
39627
39628 * opts.c (common_handle_option): Disable -fipa-reference coorectly
39629 with -fuse-profile.
39630
39631 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
39632
39633 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
39634 (type_all_derivations_known_p): New predicate.
39635 (type_all_ctors_visible_p): New predicate.
39636 (type_possibly_instantiated_p): New predicate.
39637 (get_odr_type): Compute all_derivations_known.
39638 (dump_odr_type): Dump the flag.
39639 (maybe_record_type): Cleanup.
39640 (record_target_from_binfo): Add bases_to_consider array;
39641 record bases for types w/o instances and skip CXX destructor.
39642 (possible_polymorphic_call_targets_1): Add bases_to_consider
39643 and consider_construction parameters; check if type may have instance.
39644 (get_polymorphic_call_info): Set maybe_in_construction to true
39645 when we know nothing.
39646 (record_targets_from_bases): Skip CXX destructors; they are
39647 never called for types in construction.
39648 (possible_polymorphic_call_targets): Do not record target when
39649 type may not have instance.
39650
39651 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
39652
39653 PR ipa/60854
39654 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
39655 external aliases alive, too.
39656
39657 2014-04-16 Andrew Pinski <apinski@cavium.com>
39658
39659 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
39660 definition.
39661
39662 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
39663
39664 * final.c (compute_alignments): Do not apply loop alignment to a block
39665 falling through to the exit.
39666
39667 2014-04-16 Catherine Moore <clm@codesourcery.com>
39668
39669 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
39670 Adjust constraints for microMIPS store patterns.
39671
39672 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
39673
39674 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
39675
39676 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
39677
39678 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
39679 (append_use): Run at -O0.
39680 (append_vdef): Likewise.
39681 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
39682 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
39683
39684 2014-04-16 Jakub Jelinek <jakub@redhat.com>
39685
39686 PR tree-optimization/60844
39687 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
39688 (propagate_op_to_single_use, remove_visited_stmt_chain,
39689 linearize_expr, repropagate_negates, reassociate_bb): Use it
39690 instead of gsi_remove.
39691
39692 2014-04-16 Martin Jambor <mjambor@suse.cz>
39693
39694 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
39695 ipa_transforms_to_apply.
39696 (cgraph_function_versioning): Assert that old_node has empty
39697 ipa_transforms_to_apply.
39698 * trans-mem.c (ipa_tm_create_version): Likewise.
39699 * tree-inline.c (tree_function_versioning): Do not duplicate
39700 ipa_transforms_to_apply.
39701
39702 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39703
39704 PR target/60817
39705 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
39706 x86_64-*-* cases.
39707 Pass necessary as flags on 64-bit Solaris/x86.
39708 Use lowercase relocs for x86_64-*-*.
39709 * configure: Regenerate.
39710
39711 2014-04-15 Jan Hubicka <jh@suse.cz>
39712
39713 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
39714 (maybe_record_node, likely_target_p): Use it.
39715
39716 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39717
39718 PR target/60839
39719 Revert following patch
39720
39721 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
39722
39723 PR target/60735
39724 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
39725 software floating point or no floating point registers, do not
39726 allow any type in the FPRs. Eliminate a test for SPE SIMD types
39727 in GPRs that occurs after we tested for GPRs that would never be
39728 true.
39729
39730 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
39731 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
39732 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
39733 specifically allow DDmode, since that does not use the SPE SIMD
39734 instructions.
39735
39736 2014-03-21 Mark Wielaard <mjw@redhat.com>
39737
39738 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
39739 as unsigned or int depending on type and value used.
39740
39741 2014-04-15 Richard Biener <rguenther@suse.de>
39742
39743 PR rtl-optimization/56965
39744 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
39745 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
39746 ... here.
39747 * alias.c (true_dependence_1): Do not call
39748 nonoverlapping_component_refs_p.
39749 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
39750 nonoverlapping_component_refs_p.
39751 (indirect_refs_may_alias_p): Likewise.
39752
39753 2014-04-15 Teresa Johnson <tejohnson@google.com>
39754
39755 * cfg.c (dump_bb_info): Fix flags check.
39756 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
39757
39758 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39759
39760 PR rtl-optimization/60663
39761 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
39762 avoid 0 cost.
39763
39764 2014-04-15 Richard Biener <rguenther@suse.de>
39765
39766 * lto-streamer.h (LTO_major_version): Bump to 4.
39767
39768 2014-04-15 Richard Biener <rguenther@suse.de>
39769
39770 * common.opt (lto_partition_model): New enum.
39771 (flto-partition=): Merge separate options with a single with argument,
39772 add -flto-partition=one support.
39773 * flag-types.h (enum lto_partition_model): Declare.
39774 * opts.c (finish_options): Remove duplicate -flto-partition=
39775 option check.
39776 * lto-wrapper.c (run_gcc): Adjust.
39777
39778 2014-04-15 Richard Biener <rguenther@suse.de>
39779
39780 * alias.c (ncr_compar): New function.
39781 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
39782
39783 2014-04-15 Richard Biener <rguenther@suse.de>
39784
39785 * alias.c (record_component_aliases): Do not walk BINFOs.
39786
39787 2014-04-15 Richard Biener <rguenther@suse.de>
39788
39789 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
39790 Add struct function argument and adjust.
39791 (find_func_aliases_for_call): Likewise.
39792 (find_func_aliases): Likewise.
39793 (find_func_clobbers): Likewise.
39794 (intra_create_variable_infos): Likewise.
39795 (compute_points_to_sets): Likewise.
39796 (ipa_pta_execute): Adjust. Do not push/pop cfun.
39797
39798 2014-04-15 Richard Biener <rguenther@suse.de>
39799
39800 * tree.c (iterative_hash_expr): Use enum tree_code_class
39801 to store TREE_CODE_CLASS.
39802 (tree_block): Likewise.
39803 (tree_set_block): Likewise.
39804 * tree.h (fold_build_pointer_plus_loc): Use
39805 convert_to_ptrofftype_loc.
39806
39807 2014-04-15 Jakub Jelinek <jakub@redhat.com>
39808
39809 PR plugins/59335
39810 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
39811 added in 4.9.
39812
39813 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
39814
39815 * cfgloop.h (struct loop): Move force_vectorize down.
39816 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
39817 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
39818 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
39819 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
39820 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
39821 * tree-core.h (enum annot_expr_kind): Add new kind values.
39822 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
39823 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
39824 kinds.
39825 * tree.def (ANNOTATE_EXPR): Tweak comment.
39826
39827 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
39828
39829 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
39830 cxa_pure_virtual).
39831
39832 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
39833
39834 * tree.h (TYPE_IDENTIFIER): Declare.
39835 * tree.c (subrange_type_for_debug_p): Use it.
39836 * godump.c (go_format_type): Likewise.
39837 * dwarf2out.c (is_cxx_auto, modified_type_die,
39838 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
39839 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
39840
39841 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
39842
39843 PR lto/60820
39844 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
39845
39846 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
39847
39848 * config/i386/i386.c (examine_argument): Return bool. Return true if
39849 parameter should be passed in memory.
39850 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
39851 (construct_container): Update calls to examine_argument.
39852 (function_arg_advance_64): Ditto.
39853 (return_in_memory_32): Merge with ix86_return_in_memory.
39854 (return_in_memory_64): Ditto.
39855 (return_in_memory_ms_64): Ditto.
39856
39857 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
39858
39859 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
39860 * coverage.c (coverage_compute_profile_id): Handle externally visible
39861 symbols.
39862
39863 2014-04-14 Martin Jambor <mjambor@suse.cz>
39864
39865 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
39866 DECL_DISREGARD_INLINE_LIMITS functions.
39867
39868 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
39869
39870 PR target/60827
39871 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
39872
39873 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
39874
39875 PR target/60827
39876 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
39877 optimize_insn_for_speed_p instead of
39878 optimize_function_for_speed_p.
39879
39880 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
39881
39882 * doc/invoke.texi (free): Document AArch64.
39883
39884 2014-04-14 Richard Biener <rguenther@suse.de>
39885
39886 PR tree-optimization/60042
39887 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
39888 (insert_into_preds_of_block): Do not prevent PHI insertion
39889 for REFERENCE exprs here ...
39890 (eliminate_dom_walker::before_dom_children): ... but prevent
39891 their use here under similar conditions when applied to the
39892 IL after PRE optimizations.
39893
39894 2014-04-14 Richard Biener <rguenther@suse.de>
39895
39896 * passes.def: Move early points-to after early SRA.
39897
39898 2014-04-14 Richard Biener <rguenther@suse.de>
39899
39900 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
39901 check for which sign-changes we allow when forwarding
39902 a converted value into a switch.
39903
39904 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
39905
39906 * stor-layout.c (place_field): Finalize non-constant offset for the
39907 field, if any.
39908
39909 2014-04-14 Richard Biener <rguenther@suse.de>
39910
39911 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
39912 as argument.
39913 (expand_switch_using_bit_tests_p): Likewise.
39914 (process_switch): Compute and pass on speed_p based on the
39915 switch stmt.
39916 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
39917 optimize_bb_for_speed_p.
39918
39919 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
39920
39921 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
39922 * function.h (struct function): Rename has_force_vect_loops into
39923 has_force_vectorize_loops.
39924 * lto-streamer-in.c (input_cfg): Adjust for renaming.
39925 (input_struct_function_base): Likewise.
39926 * lto-streamer-out.c (output_cfg): Likewise.
39927 (output_struct_function_base): Likewise.
39928 * omp-low.c (expand_omp_simd): Likewise.
39929 * tree-cfg.c (move_sese_region_to_fn): Likewise.
39930 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
39931 (version_loop_for_if_conversion): Likewise.
39932 (tree_if_conversion): Likewise.
39933 (main_tree_if_conversion): Likewise.
39934 (gate_tree_if_conversion): Likewise.
39935 * tree-inline.c (copy_loops): Likewise.
39936 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
39937 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
39938 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
39939 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
39940 * tree-vectorizer.c (vectorize_loops): Likewise.
39941 * tree-vectorizer.h (unlimited_cost_model): Likewise.
39942
39943 2014-04-14 Richard Biener <rguenther@suse.de>
39944
39945 PR lto/60720
39946 * lto-streamer-out.c (wrap_refs): New function.
39947 (lto_output): Wrap symbol references in global initializes in
39948 type-preserving MEM_REFs.
39949
39950 2014-04-14 Christian Bruel <christian.bruel@st.com>
39951
39952 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
39953
39954 2014-04-14 Christian Bruel <christian.bruel@st.com>
39955
39956 * config/sh/sh.md (setmemqi): New expand pattern.
39957 * config/sh/sh.h (CLEAR_RATIO): Define.
39958 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
39959 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
39960
39961 2014-04-14 Richard Biener <rguenther@suse.de>
39962
39963 PR middle-end/55022
39964 * fold-const.c (negate_expr_p): Don't negate directional rounding
39965 division.
39966 (fold_negate_expr): Likewise.
39967
39968 2014-04-14 Richard Biener <rguenther@suse.de>
39969
39970 PR tree-optimization/59817
39971 PR tree-optimization/60453
39972 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
39973 recursion to catch all CHRECs in the scalar evolution and restrict
39974 the predicate for the remains appropriately.
39975
39976 2014-04-12 Catherine Moore <clm@codesourcery.com>
39977
39978 * config/mips/constraints.md: Add new register constraint "kb".
39979 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
39980 (*movhi_internal): Likewise.
39981 (*movqi_internal): Likewise.
39982 * config/mips/mips.h (M16_STORE_REGS): New register class.
39983 (REG_CLASS_NAMES): Add M16_STORE_REGS.
39984 (REG_CLASS_CONTENTS): Likewise.
39985 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
39986
39987 2014-04-11 Tobias Burnus <burnus@net-b.de>
39988
39989 PR c/60194
39990 * doc/invoke.texi (-Wformat-signedness): Document it.
39991 (Wformat=2): Mention that this enables -Wformat-signedness.
39992
39993 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
39994
39995 * common/config/epiphany/epiphany-common.c
39996 (epiphany_option_optimization_table): Enable section anchors by
39997 default at -O1 or higher.
39998 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
39999 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
40000 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
40001 carries no extra cost.
40002 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
40003 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
40004 * config/epiphany/predicates.md (memclob_operand): New predicate.
40005 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
40006 Use memclob_operand predicate and X constraint for operand 3.
40007
40008 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
40009
40010 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
40011 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
40012 its operands.
40013
40014 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
40015
40016 PR rtl-optimization/60651
40017 * mode-switching.c (optimize_mode_switching): Make sure to emit
40018 sets of a lower numbered entity before sets of a higher numbered
40019 entity to a mode of the same or lower priority.
40020 When creating a seginfo for a basic block that starts with a code
40021 label, move the insertion point past the code label.
40022 (new_seginfo): Document and enforce requirement that
40023 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
40024 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
40025 * doc/tm.texi: Regenerate.
40026
40027 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
40028
40029 PR target/60811
40030 * config/arc/arc.c (arc_save_restore): Fix assert typo.
40031
40032 2013-04-11 Jakub Jelinek <jakub@redhat.com>
40033
40034 * BASE-VER: Set to 4.10.0.
40035
40036 2014-04-11 Tobias Burnus <burnus@net-b.de>
40037
40038 PR other/59055
40039 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
40040 * doc/gcc.texi (Service): Update description in the @menu
40041 * doc/invoke.texi (Option Summary): Remove misplaced and
40042 duplicated @menu.
40043
40044 2014-04-11 Steve Ellcey <sellcey@mips.com>
40045 Jakub Jelinek <jakub@redhat.com>
40046
40047 PR middle-end/60556
40048 * expr.c (convert_move): Use emit_store_flag_force instead of
40049 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
40050 argument to it.
40051
40052 2014-04-11 Richard Biener <rguenther@suse.de>
40053
40054 PR middle-end/60797
40055 * varasm.c (assemble_alias): Avoid endless error reporting
40056 recursion by setting TREE_ASM_WRITTEN.
40057
40058 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40059
40060 * config/s390/s390.md: Add a splitter for NOT rtx.
40061
40062 2014-04-11 Jakub Jelinek <jakub@redhat.com>
40063
40064 PR rtl-optimization/60663
40065 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
40066
40067 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
40068 Jakub Jelinek <jakub@redhat.com>
40069
40070 PR lto/60567
40071 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
40072 flag from decl_node to node.
40073
40074 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40075
40076 PR debug/60655
40077 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
40078 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
40079 ameliorating the cases where it can be.
40080
40081 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
40082
40083 Revert
40084 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
40085
40086 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
40087 (loadsync_<mode>): Change mode.
40088 (load_quadpti, store_quadpti): New.
40089 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
40090 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
40091 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
40092
40093 2014-04-09 Cong Hou <congh@google.com>
40094
40095 PR testsuite/60773
40096 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
40097 documentation.
40098
40099 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40100
40101 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
40102 instead of vnor to exploit possible fusion opportunity in the
40103 future.
40104 (altivec_expand_vec_perm_const_le): Likewise.
40105
40106 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
40107
40108 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
40109 (loadsync_<mode>): Change mode.
40110 (load_quadpti, store_quadpti): New.
40111 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
40112 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
40113
40114 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
40115
40116 PR target/60763
40117 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
40118 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
40119 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
40120
40121 2014-04-08 Richard Biener <rguenther@suse.de>
40122
40123 PR middle-end/60706
40124 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
40125 a 64bit widest int print double-int similar to on HWI64 hosts.
40126
40127 2014-04-08 Richard Biener <rguenther@suse.de>
40128
40129 PR tree-optimization/60785
40130 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
40131 default defs properly.
40132
40133 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
40134
40135 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
40136 (Weffc++): Likewise.
40137
40138 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
40139
40140 * ipa-devirt.c (maybe_record_node): When node is not recorded,
40141 set completep to false rather than true.
40142
40143 2014-04-07 Douglas B Rupp <rupp@adacore.com>
40144
40145 PR target/60504
40146 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
40147 ARM_TARGET2_DWARF_FORMAT.
40148
40149 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
40150
40151 PR target/60609
40152 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
40153 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
40154 ADDR_DIFF_VEC.
40155
40156 2014-04-07 Richard Biener <rguenther@suse.de>
40157
40158 PR tree-optimization/60766
40159 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
40160 (may_eliminate_iv): Convert cand_value_at result to desired type.
40161
40162 2014-04-07 Jason Merrill <jason@redhat.com>
40163
40164 PR c++/60731
40165 * common.opt (-fno-gnu-unique): Add.
40166 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
40167
40168 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40169
40170 * haifa-sched.c: Fix outdated function reference and minor
40171 grammar errors in introductory comment.
40172
40173 2014-04-07 Richard Biener <rguenther@suse.de>
40174
40175 PR middle-end/60750
40176 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
40177 for noreturn calls.
40178 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
40179
40180 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
40181
40182 PR debug/55794
40183 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
40184 size accounting for thunks.
40185 (pa_asm_output_mi_thunk): Use final_start_function() and
40186 final_end_function() to output function start and end directives.
40187
40188 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
40189
40190 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
40191 device specific ISA/ feature information. Remove short_sp and
40192 errata_skip ds. Add avr_device_specific_features enum to have device
40193 specific info.
40194 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
40195 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
40196 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
40197 updated device specific info.
40198 * config/avr/avr-mcus.def: Merge device specific details to
40199 dev_attribute field.
40200 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
40201 errata_skip.
40202 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
40203 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
40204 assembler if RMW isa supported by current device.
40205 * config/avr/genmultilib.awk: Update as device info structure changed.
40206 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
40207
40208 2014-04-04 Cong Hou <congh@google.com>
40209
40210 PR tree-optimization/60656
40211 * tree-vect-stmts.c (supportable_widening_operation):
40212 Fix a bug that elements in a vector with vect_used_by_reduction
40213 property are incorrectly reordered when the operation on it is not
40214 consistant with the one in reduction operation.
40215
40216 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
40217
40218 PR rtl-optimization/60155
40219 * gcse.c (record_set_data): New function.
40220 (single_set_gcse): New function.
40221 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
40222 (hoist_code): Likewise.
40223 (get_pressure_class_and_nregs): Likewise.
40224
40225 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
40226
40227 * explow.c (probe_stack_range): Emit a final optimization blockage.
40228
40229 2014-04-04 Anthony Green <green@moxielogic.com>
40230
40231 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
40232 typos.
40233
40234 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
40235
40236 PR ipa/59626
40237 * lto-cgraph.c (input_overwrite_node): Check that partitioning
40238 flags are set only during streaming.
40239 * ipa.c (process_references, walk_polymorphic_call_targets,
40240 symtab_remove_unreachable_nodes): Drop bodies of always inline
40241 after early inlining.
40242 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
40243
40244 2014-04-04 Jakub Jelinek <jakub@redhat.com>
40245 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40246
40247 PR debug/60655
40248 * dwarf2out.c (const_ok_for_output_1): Reject expressions
40249 containing a NOT.
40250
40251 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40252
40253 PR bootstrap/60743
40254 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
40255 duration.
40256 (cortex_a53_fdivd): Likewise.
40257
40258 2014-04-04 Martin Jambor <mjambor@suse.cz>
40259
40260 PR ipa/60640
40261 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
40262 Adjust all callers.
40263 * cgraph.c (clone_of_p): Also return true if thunks match.
40264 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
40265 cgraph_function_or_thunk_node and an obsolete comment.
40266 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
40267 file.
40268 (build_function_decl_skip_args): Likewise.
40269 (set_new_clone_decl_and_node_flags): New function.
40270 (duplicate_thunk_for_node): Likewise.
40271 (redirect_edge_duplicating_thunks): Likewise.
40272 (cgraph_clone_node): New parameter args_to_skip, pass it to
40273 redirect_edge_duplicating_thunks which is called instead of
40274 cgraph_redirect_edge_callee.
40275 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
40276 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
40277
40278 2014-04-04 Jeff Law <law@redhat.com>
40279
40280 PR target/60657
40281 * config/arm/predicates.md (const_int_I_operand): New predicate.
40282 (const_int_M_operand): Similarly.
40283 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
40284 const_int_operand.
40285 (insv_t2, extv_reg, extzv_t2): Likewise.
40286 (load_multiple_with_writeback): Similarly for const_int_I_operand.
40287 (pop_multiple_with_writeback_and_return): Likewise.
40288 (vfp_pop_multiple_with_writeback): Likewise
40289
40290 2014-04-04 Richard Biener <rguenther@suse.de>
40291
40292 PR ipa/60746
40293 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
40294 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
40295 non-GIMPLE_LABELs.
40296 * gimplify.h (gimple_add_tmp_var_fn): Declare.
40297 * gimplify.c (gimple_add_tmp_var_fn): New function.
40298 * gimple-expr.h (create_tmp_reg_fn): Declare.
40299 * gimple-expr.c (create_tmp_reg_fn): New function.
40300 * gimple-low.c (record_vars_into): Don't change cfun.
40301 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
40302 code generation without cfun.
40303
40304 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
40305
40306 PR bootstrap/60719
40307 * Makefile.in (install-driver): Fix shell scripting.
40308
40309 2014-04-03 Cong Hou <congh@google.com>
40310
40311 PR tree-optimization/60505
40312 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
40313 threshold of number of iterations below which no vectorization
40314 will be done.
40315 * tree-vect-loop.c (new_loop_vec_info):
40316 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
40317 * tree-vect-loop.c (vect_analyze_loop_operations):
40318 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
40319 * tree-vect-loop.c (vect_transform_loop):
40320 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
40321 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
40322 of iterations of the loop and see if we should build the epilogue.
40323
40324 2014-04-03 Richard Biener <rguenther@suse.de>
40325
40326 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
40327 (streamer_tree_cache_create): Adjust.
40328 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
40329 to allow optional nodes array.
40330 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
40331 (streamer_tree_cache_append): Likewise.
40332 (streamer_tree_cache_create): Create nodes array optionally
40333 as specified by parameter.
40334 * lto-streamer-out.c (create_output_block): Avoid maintaining
40335 the node array in the writer cache.
40336 (DFS_write_tree): Remove assertion.
40337 (produce_asm_for_decls): Free the out decl state hash table early.
40338 * lto-streamer-in.c (lto_data_in_create): Adjust for
40339 streamer_tree_cache_create prototype change.
40340
40341 2014-04-03 Richard Biener <rguenther@suse.de>
40342
40343 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
40344 set TREE_CHAIN to NULL_TREE.
40345
40346 2014-04-03 Richard Biener <rguenther@suse.de>
40347
40348 PR tree-optimization/60740
40349 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
40350 over all GIMPLE_COND operands.
40351
40352 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
40353
40354 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
40355 (Weffc++): Remove Scott's numbering, merge lists and reference
40356 Wnon-virtual-dtor.
40357
40358 2014-04-03 Nick Clifton <nickc@redhat.com>
40359
40360 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
40361 properly.
40362
40363 2014-04-03 Martin Jambor <mjambor@suse.cz>
40364
40365 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
40366 mention gcc_unreachable before failing.
40367 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
40368 removed symbols.
40369
40370 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
40371
40372 PR ipa/60659
40373 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
40374 inconsistent code and instead mark the context inconsistent.
40375 (possible_polymorphic_call_targets): For inconsistent contexts
40376 return empty complete list.
40377
40378 2014-04-02 Anthony Green <green@moxielogic.com>
40379
40380 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
40381 (extendqisi2, extendhisi2): Define.
40382 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
40383 (WCHAR_TYPE): Change to unsigned int.
40384
40385 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40386
40387 PR tree-optimization/60733
40388 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
40389 insertion point for PHI candidates to be the end of the feeding
40390 block for the PHI argument.
40391
40392 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
40393
40394 PR rtl-optimization/60650
40395 * lra-constraints.c (process_alt_operands): Decrease reject for
40396 earlyclobber matching.
40397
40398 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40399
40400 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
40401
40402 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40403
40404 * config/spu/spu.c (pad_bb): Do not crash when the last
40405 insn is CODE_FOR_blockage.
40406
40407 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40408
40409 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
40410 lies outside the target mode.
40411
40412 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
40413
40414 PR target/60735
40415 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
40416 software floating point or no floating point registers, do not
40417 allow any type in the FPRs. Eliminate a test for SPE SIMD types
40418 in GPRs that occurs after we tested for GPRs that would never be
40419 true.
40420
40421 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
40422 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
40423 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
40424 specifically allow DDmode, since that does not use the SPE SIMD
40425 instructions.
40426
40427 2014-04-02 Richard Biener <rguenther@suse.de>
40428
40429 PR middle-end/60729
40430 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
40431 MODE_INTs. Properly use negv_optab.
40432 (expand_abs): Likewise.
40433
40434 2014-04-02 Richard Biener <rguenther@suse.de>
40435
40436 PR bootstrap/60719
40437 * Makefile.in (install-driver): Guard extra installs with special
40438 names properly.
40439
40440 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
40441
40442 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
40443 Document vec_vgbbd.
40444
40445 2014-04-01 Richard Henderson <rth@redhat.com>
40446
40447 PR target/60704
40448 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
40449 alternative enabled before register allocation.
40450
40451 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
40452
40453 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
40454 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
40455 typo.
40456 (nios2_large_got_address): Remove unneeded 'sym' parameter.
40457 (nios2_got_address): Update nios2_large_got_address call site.
40458 (nios2_delegitimize_address): New function.
40459 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
40460 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
40461 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
40462
40463 2014-04-01 Martin Husemann <martin@duskware.de>
40464
40465 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
40466 for -mabi=32.
40467
40468 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
40469
40470 PR rtl-optimization/60604
40471 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
40472 check from register_operand.
40473 (register_operand): Redefine in terms of general_operand.
40474 (nonmemory_operand): Use register_operand for the non-constant cases.
40475
40476 2014-04-01 Richard Biener <rguenther@suse.de>
40477
40478 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
40479
40480 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
40481
40482 * doc/invoke.texi (mapp-regs): Clarify.
40483
40484 2014-03-31 Ulrich Drepper <drepper@gmail.com>
40485
40486 * config/i386/avx512fintrin.h (__v32hi): Define type.
40487 (__v64qi): Likewise.
40488 (_mm512_set1_epi8): Define.
40489 (_mm512_set1_epi16): Define.
40490 (_mm512_set4_epi32): Define.
40491 (_mm512_set4_epi64): Define.
40492 (_mm512_set4_pd): Define.
40493 (_mm512_set4_ps): Define.
40494 (_mm512_setr4_epi64): Define.
40495 (_mm512_setr4_epi32): Define.
40496 (_mm512_setr4_pd): Define.
40497 (_mm512_setr4_ps): Define.
40498 (_mm512_setzero_epi32): Define.
40499
40500 2014-03-31 Martin Jambor <mjambor@suse.cz>
40501
40502 PR middle-end/60647
40503 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
40504 callsite_arguments_match_p. Updated all callers. Also check types of
40505 corresponding formal parameters and actual arguments.
40506 (not_all_callers_have_enough_arguments_p) Renamed to
40507 some_callers_have_mismatched_arguments_p.
40508
40509 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
40510
40511 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
40512
40513 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
40514
40515 PR target/60034
40516 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
40517 section anchor.
40518
40519 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
40520
40521 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
40522 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
40523 Split out
40524 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
40525 Use FMAMODE_NOVF512 mode iterator.
40526 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
40527 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
40528 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
40529 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
40530 Split out
40531 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
40532 Use VF_128_256 mode iterator.
40533 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
40534 Ditto.
40535
40536 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
40537
40538 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
40539 static chain if needed.
40540
40541 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
40542
40543 PR target/60697
40544 * lra-constraints.c (index_part_to_reg): New.
40545 (process_address): Use it.
40546
40547 2014-03-27 Jeff Law <law@redhat.com>
40548 Jakub Jelinek <jakub@redhat.com>
40549
40550 PR target/60648
40551 * expr.c (do_tablejump): Use simplify_gen_binary rather than
40552 gen_rtx_{PLUS,MULT} to build up the address expression.
40553
40554 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
40555 creating non-canonical RTL.
40556
40557 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
40558
40559 PR ipa/60243
40560 * ipa-inline.c (want_inline_small_function_p): Short circuit large
40561 functions; reorganize to make cheap checks first.
40562 (inline_small_functions): Do not estimate growth when dumping;
40563 it is expensive.
40564 * ipa-inline.h (inline_summary): Add min_size.
40565 (growth_likely_positive): New function.
40566 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
40567 (set_cond_stmt_execution_predicate): Cleanup.
40568 (estimate_edge_size_and_time): Compute min_size.
40569 (estimate_calls_size_and_time): Likewise.
40570 (estimate_node_size_and_time): Likewise.
40571 (inline_update_overall_summary): Update min_size.
40572 (do_estimate_edge_time): Likewise.
40573 (do_estimate_edge_size): Update.
40574 (do_estimate_edge_hints): Update.
40575 (growth_likely_positive): New function.
40576
40577 2014-03-28 Jakub Jelinek <jakub@redhat.com>
40578
40579 PR target/60693
40580 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
40581 also if addr has VOIDmode.
40582
40583 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40584
40585 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
40586 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
40587 Declare extern.
40588 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
40589 instructions as well as AdvancedSIMD loads.
40590
40591 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40592
40593 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
40594 Use crypto_aese type.
40595 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
40596 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
40597 crypto_aese, crypto_aesmc. Move to types.md.
40598 * config/arm/types.md (crypto_aes): Split into crypto_aese,
40599 crypto_aesmc.
40600 * config/arm/iterators.md (crypto_type): Likewise.
40601
40602 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
40603
40604 * cgraph.c: Include expr.h and tree-dfa.h.
40605 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
40606 remove LHS.
40607
40608 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
40609
40610 PR target/60675
40611 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
40612 regs from checking multi-reg pseudos.
40613
40614 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40615
40616 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
40617
40618 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40619
40620 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
40621 if it would clobber the stack pointer, even temporarily.
40622
40623 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
40624
40625 * mode-switching.c: Make small adjustments to the top comment.
40626
40627 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
40628
40629 * config/rs6000/constraints.md (wD constraint): New constraint to
40630 match the constant integer to get the top DImode/DFmode out of a
40631 vector in a VSX register.
40632
40633 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
40634 match the constant integer to get the top DImode/DFmode out of a
40635 vector in a VSX register.
40636
40637 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
40638 for ISA 2.07.
40639
40640 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
40641 vbpermq builtins.
40642
40643 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
40644 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
40645
40646 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
40647 Optimize vec_extract of 64-bit values, where the value being
40648 extracted is in the top word, where we can use scalar
40649 instructions. Add direct move and store support. Combine the big
40650 endian/little endian vector select load support into a single insn.
40651 (vsx_extract_<mode>_internal1): Likewise.
40652 (vsx_extract_<mode>_internal2): Likewise.
40653 (vsx_extract_<mode>_load): Likewise.
40654 (vsx_extract_<mode>_store): Likewise.
40655 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
40656 combined into vsx_extract_<mode>_load.
40657 (vsx_extract_<mode>_one_le): Likewise.
40658
40659 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
40660 define the top 64-bit vector element.
40661
40662 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
40663 constraint.
40664
40665 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
40666 Document vec_vbpermq builtin.
40667
40668 PR target/60672
40669 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
40670 enable use of xxsldwi and xxpermdi builtin functions.
40671 (vec_xxpermdi): Likewise.
40672
40673 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
40674 Document use of vec_xxsldwi and vec_xxpermdi builtins.
40675
40676 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
40677
40678 PR rtl-optimization/60650
40679 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
40680 first_p. Use it.
40681 (find_spills_for): New.
40682 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
40683 Spill all pseudos on the second iteration.
40684
40685 2014-03-27 Marek Polacek <polacek@redhat.com>
40686
40687 PR c/50347
40688 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
40689 types.
40690
40691 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40692
40693 * config/s390/s390.c (s390_can_use_return_insn): Check for
40694 call-saved FPRs on 31 bit.
40695
40696 2014-03-27 Jakub Jelinek <jakub@redhat.com>
40697
40698 PR middle-end/60682
40699 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
40700 if they need regimplification, just drop them instead of
40701 calling gimple_regimplify_operands on them.
40702
40703 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
40704
40705 PR target/60580
40706 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
40707 (aarch64_frame_pointer_required): Adjust logic.
40708 (aarch64_can_eliminate): Adjust logic.
40709 (aarch64_override_options_after_change): Adjust logic.
40710
40711 2014-03-27 Dehao Chen <dehao@google.com>
40712
40713 * ipa-inline.c (early_inliner): Update node's inline info.
40714
40715 2014-03-26 Dehao Chen <dehao@google.com>
40716
40717 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
40718 compiler inserted conditional jumps for NAN float check.
40719
40720 2014-03-26 Jakub Jelinek <jakub@redhat.com>
40721
40722 * ubsan.h (ubsan_create_data): Change second argument's type
40723 to const location_t *.
40724 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
40725 _("<unknown>").
40726 (ubsan_create_data): Change second argument to const location_t *PLOC.
40727 Create Loc field whenever PLOC is non-NULL.
40728 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
40729 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
40730 callers.
40731
40732 PR other/59545
40733 * real.c (real_to_integer2): Change type of low to UHWI.
40734
40735 2014-03-26 Tobias Burnus <burnus@net-b.de>
40736
40737 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
40738 (CILK_SELF_SPECS): New define.
40739 (driver_self_specs): Use it.
40740
40741 2014-03-26 Richard Biener <rguenther@suse.de>
40742
40743 * tree-pretty-print.c (percent_K_format): Implement special
40744 case for LTO and its stripped down BLOCK tree.
40745
40746 2014-03-26 Jakub Jelinek <jakub@redhat.com>
40747
40748 PR sanitizer/60636
40749 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
40750
40751 * tree-vrp.c (simplify_internal_call_using_ranges): If only
40752 one range is range_int_cst_p, but not both, at least optimize
40753 addition/subtraction of 0 and multiplication by 0 or 1.
40754 * gimple-fold.c (gimple_fold_call): Fold
40755 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
40756 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
40757 INTEGER_CSTs, try to fold at least x * 0 and y - y.
40758
40759 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
40760
40761 PR rtl-optimization/60452
40762 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
40763 <case REG>: Return 1 for invalid offsets from the frame pointer.
40764
40765 2014-03-26 Marek Polacek <polacek@redhat.com>
40766
40767 PR c/37428
40768 * doc/extend.texi (C Extensions): Mention variable-length arrays in
40769 a structure/union.
40770
40771 2014-03-26 Marek Polacek <polacek@redhat.com>
40772
40773 PR c/39525
40774 * doc/extend.texi (Designated Inits): Describe what happens to omitted
40775 field members.
40776
40777 2014-03-26 Marek Polacek <polacek@redhat.com>
40778
40779 PR other/59545
40780 * ira-color.c (update_conflict_hard_regno_costs): Perform the
40781 multiplication in unsigned type.
40782
40783 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
40784
40785 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
40786
40787 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
40788
40789 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
40790
40791 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
40792
40793 PR ipa/60315
40794 * cif-code.def (UNREACHABLE) New code.
40795 * ipa-inline.c (inline_small_functions): Skip edges to
40796 __builtlin_unreachable.
40797 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
40798 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
40799 predicate to __bulitin_unreachable.
40800 (set_cond_stmt_execution_predicate): Fix issue when
40801 invert_tree_comparison returns ERROR_MARK.
40802 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
40803 propagate to inline clones.
40804 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
40805 to unreachable.
40806 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
40807 * cgraphclones.c (cgraph_clone_node): If call destination is already
40808 ureachable, do not redirect it back.
40809 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
40810 unreachable.
40811
40812 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
40813
40814 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
40815 Do not modify inline clones.
40816
40817 2014-03-25 Jakub Jelinek <jakub@redhat.com>
40818
40819 * config/i386/i386.md (general_sext_operand): New mode attr.
40820 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
40821 don't generate (sign_extend (const_int)).
40822 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
40823 operands[2]. Use We constraint instead of <i> and
40824 <general_sext_operand> predicate instead of <general_operand>.
40825 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
40826 * config/i386/constraints.md (We): New constraint.
40827 * config/i386/predicates.md (x86_64_sext_operand,
40828 sext_operand): New predicates.
40829
40830 2014-03-25 Martin Jambor <mjambor@suse.cz>
40831
40832 PR ipa/60600
40833 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
40834 inconsistent devirtualizations to __builtin_unreachable.
40835
40836 2014-03-25 Marek Polacek <polacek@redhat.com>
40837
40838 PR c/35449
40839 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
40840
40841 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
40842
40843 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
40844 order of elements for big-endian.
40845
40846 2014-03-25 Richard Biener <rguenther@suse.de>
40847
40848 PR middle-end/60635
40849 * gimplify-me.c (gimple_regimplify_operands): Update the
40850 re-gimplifed stmt.
40851
40852 2014-03-25 Martin Jambor <mjambor@suse.cz>
40853
40854 PR ipa/59176
40855 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
40856 (lto_output_varpool_node): Likewise.
40857 (input_overwrite_node): Likewise.
40858 (input_varpool_node): Likewise.
40859
40860 2014-03-25 Richard Biener <rguenther@suse.de>
40861
40862 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
40863 (run_gcc): Likewise.
40864
40865 2014-03-25 Jakub Jelinek <jakub@redhat.com>
40866
40867 * combine.c (simplify_compare_const): Add MODE argument.
40868 Handle mode_width 0 as very large mode_width.
40869 (try_combine, simplify_comparison): Adjust callers.
40870
40871 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
40872 type to avoid signed integer overflow.
40873 * explow.c (plus_constant): Likewise.
40874
40875 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
40876
40877 * doc/generic.texi: Correct typos.
40878
40879 2014-03-24 Tobias Burnus <burnus@net-b.de>
40880
40881 * doc/invoke.texi (-flto): Expand section about
40882 using static libraries with LTO.
40883
40884 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40885
40886 PR rtl-optimization/60501
40887 * optabs.def (addptr3_optab): New optab.
40888 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
40889 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
40890 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
40891
40892 * lra.c (emit_add3_insn): Use the addptr pattern if available.
40893
40894 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
40895
40896 2014-03-24 Ulrich Drepper <drepper@gmail.com>
40897
40898 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
40899 _mm512_set1_pd.
40900
40901 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
40902 (_mm256_undefined_ps): Define.
40903 (_mm256_undefined_pd): Define.
40904 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
40905 (_mm_undefined_pd): Define.
40906 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
40907 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
40908 (_mm512_undefined_ps): Define.
40909 (_mm512_undefined_pd): Define.
40910 Use _mm*_undefined_*.
40911 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
40912
40913 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
40914
40915 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
40916 (lshr_simd): DI mode added.
40917 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
40918 (aarch64_ushr_simddi): Likewise.
40919 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
40920 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
40921 (vshrd_n_u64): Likewise.
40922
40923 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40924
40925 * Makefile.in (s-macro_list): Depend on cc1.
40926
40927 2014-03-23 Teresa Johnson <tejohnson@google.com>
40928
40929 * ipa-utils.c (ipa_print_order): Use specified dump file.
40930
40931 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
40932
40933 PR rtl-optimization/60601
40934 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
40935
40936 * gcc.c (eval_spec_function): Initialize save_growing_value.
40937
40938 2014-03-22 Jakub Jelinek <jakub@redhat.com>
40939
40940 PR sanitizer/60613
40941 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
40942 code == MINUS_EXPR, never swap op0 with op1.
40943
40944 * toplev.c (init_local_tick): Avoid signed integer multiplication
40945 overflow.
40946 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
40947 shift by first operand's bitsize.
40948
40949 2014-03-21 Jakub Jelinek <jakub@redhat.com>
40950
40951 PR target/60610
40952 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
40953 redefine to 1 or 0.
40954 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
40955 TARGET_ISA_64BIT_P(x).
40956
40957 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40958
40959 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
40960 pattern for vector nor instead of subtract from splat(-1).
40961 (altivec_expand_vec_perm_const_le): Likewise.
40962
40963 2014-03-21 Richard Henderson <rth@twiddle.net>
40964
40965 PR target/60598
40966 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
40967 related insns after epilogue_completed.
40968
40969 2014-03-21 Martin Jambor <mjambor@suse.cz>
40970
40971 PR ipa/59176
40972 * cgraph.h (symtab_node): New flag body_removed.
40973 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
40974 when removing bodies.
40975 * symtab.c (dump_symtab_base): Dump body_removed flag.
40976 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
40977 had their bodies removed.
40978
40979 2014-03-21 Martin Jambor <mjambor@suse.cz>
40980
40981 PR ipa/60419
40982 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
40983 in the border.
40984
40985 2014-03-21 Richard Biener <rguenther@suse.de>
40986
40987 PR tree-optimization/60577
40988 * tree-core.h (struct tree_base): Document nothrow_flag use
40989 in DECL_NONALIASED.
40990 * tree.h (DECL_NONALIASED): New.
40991 (may_be_aliased): Adjust.
40992 * coverage.c (build_var): Set DECL_NONALIASED.
40993
40994 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
40995
40996 * expr.c (expand_expr_real_1): Remove outdated comment.
40997
40998 2014-03-20 Jakub Jelinek <jakub@redhat.com>
40999
41000 PR middle-end/60597
41001 * ira.c (adjust_cleared_regs): Call copy_rtx on
41002 *reg_equiv[REGNO (loc)].src_p before passing it to
41003 simplify_replace_fn_rtx.
41004
41005 PR target/60568
41006 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
41007 into CONST, put pic register as first operand of PLUS. Use
41008 gen_const_mem for both 32-bit and 64-bit PIC got loads.
41009
41010 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41011
41012 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
41013
41014 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
41015
41016 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
41017 around for store forwarding issue in the FPU on the UT699.
41018 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
41019 loads and operations if -mfix-ut699 is specified.
41020 (divtf3_hq): Tweak attribute.
41021 (sqrttf2_hq): Likewise.
41022
41023 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
41024
41025 * calls.c (store_one_arg): Remove incorrect const qualification on the
41026 type of the temporary.
41027 * cfgexpand.c (expand_return): Likewise.
41028 * expr.c (expand_constructor): Likewise.
41029 (expand_expr_real_1): Likewise.
41030
41031 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
41032
41033 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
41034 of parts.
41035
41036 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
41037
41038 PR target/60039
41039 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
41040
41041 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
41042
41043 * config/arm/aarch-common-protos.h
41044 (alu_cost_table): Fix spelling of "extend".
41045 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
41046
41047 2014-03-19 Richard Biener <rguenther@suse.de>
41048
41049 PR middle-end/60553
41050 * tree-core.h (tree_type_common): Re-order pointer members
41051 to reduce recursion depth during GC walks.
41052
41053 2014-03-19 Marek Polacek <polacek@redhat.com>
41054
41055 PR sanitizer/60569
41056 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
41057 before accessing it.
41058
41059 2014-03-19 Richard Biener <rguenther@suse.de>
41060
41061 PR lto/59543
41062 * lto-streamer-in.c (input_function): In WPA stage do not drop
41063 debug stmts.
41064
41065 2014-03-19 Jakub Jelinek <jakub@redhat.com>
41066
41067 PR tree-optimization/60559
41068 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
41069 with build_zero_cst assignment.
41070
41071 2014-03-18 Kai Tietz <ktietz@redhat.com>
41072
41073 PR rtl-optimization/56356
41074 * sdbout.c (sdbout_parms): Verify that parms'
41075 incoming argument is valid.
41076 (sdbout_reg_parms): Likewise.
41077
41078 2014-03-18 Richard Henderson <rth@redhat.com>
41079
41080 PR target/60562
41081 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
41082 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
41083 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
41084
41085 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
41086
41087 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
41088 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
41089 Italicize plugin event names in description. Explain that
41090 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
41091 Remind that no GCC functions should be called after PLUGIN_FINISH.
41092 Explain what pragmas with expansion are.
41093
41094 2014-03-18 Martin Liska <mliska@suse.cz>
41095
41096 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
41097 gimple call statement is update.
41098 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
41099 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
41100
41101 2014-03-18 Jakub Jelinek <jakub@redhat.com>
41102
41103 PR sanitizer/60557
41104 * ubsan.c (ubsan_instrument_unreachable): Call
41105 initialize_sanitizer_builtins.
41106 (ubsan_pass): Likewise.
41107
41108 PR sanitizer/60535
41109 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
41110 varpool_finalize_decl instead of rest_of_decl_compilation.
41111
41112 2014-03-18 Richard Biener <rguenther@suse.de>
41113
41114 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
41115 by using bitmap_and_compl instead of bitmap_and_compl_into.
41116 (df_rd_transfer_function): Likewise.
41117
41118 2014-03-18 Richard Biener <rguenther@suse.de>
41119
41120 * doc/lto.texi (fresolution): Fix typo.
41121
41122 2014-03-18 Richard Biener <rguenther@suse.de>
41123
41124 * doc/invoke.texi (flto): Update for changes in 4.9.
41125
41126 2014-03-18 Richard Biener <rguenther@suse.de>
41127
41128 * doc/loop.texi: Remove section on the removed lambda framework.
41129 Update loop docs with recent changes in preserving loop structure.
41130
41131 2014-03-18 Richard Biener <rguenther@suse.de>
41132
41133 * doc/lto.texi (-fresolution): Document.
41134
41135 2014-03-18 Richard Biener <rguenther@suse.de>
41136
41137 * doc/contrib.texi: Adjust my name.
41138
41139 2014-03-18 Jakub Jelinek <jakub@redhat.com>
41140
41141 PR ipa/58721
41142 * internal-fn.c: Include diagnostic-core.h.
41143 (expand_BUILTIN_EXPECT): New function.
41144 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
41145 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
41146 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
41147 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
41148 IFN_BUILTIN_EXPECT.
41149 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
41150 Revert 3 argument __builtin_expect code.
41151 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
41152 * gimple-fold.c (gimple_fold_call): Likewise.
41153 * tree.h (fold_builtin_expect): New prototype.
41154 * builtins.c (build_builtin_expect_predicate): Add predictor
41155 argument, if non-NULL, create 3 argument __builtin_expect.
41156 (fold_builtin_expect): No longer static. Add ARG2 argument,
41157 pass it through to build_builtin_expect_predicate.
41158 (fold_builtin_2): Adjust caller.
41159 (fold_builtin_3): Handle BUILT_IN_EXPECT.
41160 * internal-fn.def (BUILTIN_EXPECT): New.
41161
41162 2014-03-18 Tobias Burnus <burnus@net-b.de>
41163
41164 PR ipa/58721
41165 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
41166 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
41167 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
41168
41169 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
41170
41171 PR ipa/58721
41172 * predict.c (combine_predictions_for_bb): Fix up formatting.
41173 (expr_expected_value_1, expr_expected_value): Add predictor argument,
41174 fill what it points to if non-NULL.
41175 (tree_predict_by_opcode): Adjust caller, use the predictor.
41176 * predict.def (PRED_COMPARE_AND_SWAP): Add.
41177
41178 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
41179
41180 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
41181 proper constant for the store mode.
41182
41183 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
41184
41185 * symtab.c (change_decl_assembler_name): Fix transparent alias
41186 chain construction.
41187
41188 2014-03-16 Renlin Li <Renlin.Li@arm.com>
41189
41190 * config/aarch64/aarch64.c: Correct the comments about the
41191 aarch64 stack layout.
41192
41193 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
41194
41195 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
41196 check for GF_OMP_FOR_KIND_FOR.
41197
41198 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
41199
41200 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
41201 ymm and zmm register names.
41202
41203 2014-03-17 Jakub Jelinek <jakub@redhat.com>
41204
41205 PR target/60516
41206 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
41207 note creation for the 2010-08-31 changes.
41208
41209 2014-03-17 Marek Polacek <polacek@redhat.com>
41210
41211 PR middle-end/60534
41212 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
41213 as -fno-tree-loop-vectorize.
41214 (expand_omp_simd): Likewise.
41215
41216 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
41217
41218 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
41219 (eligible_for_call_delay): New prototype.
41220 * config/sparc/sparc.c (tls_call_delay): Rename into...
41221 (eligible_for_call_delay): ...this. Return false if the instruction
41222 cannot be put in the delay slot of a branch.
41223 (eligible_for_restore_insn): Simplify.
41224 (eligible_for_return_delay): Return false if the instruction cannot be
41225 put in the delay slot of a branch and simplify.
41226 (eligible_for_sibcall_delay): Return false if the instruction cannot be
41227 put in the delay slot of a branch.
41228 * config/sparc/sparc.md (fix_ut699): New attribute.
41229 (tls_call_delay): Delete.
41230 (in_call_delay): Reimplement.
41231 (eligible_for_sibcall_delay): Rename into...
41232 (in_sibcall_delay): ...this.
41233 (eligible_for_return_delay): Rename into...
41234 (in_return_delay): ...this.
41235 (in_branch_delay): Reimplement.
41236 (in_uncond_branch_delay): Delete.
41237 (in_annul_branch_delay): Delete.
41238
41239 2014-03-14 Richard Henderson <rth@redhat.com>
41240
41241 PR target/60525
41242 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
41243 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
41244 (*floathi<X87MODEF>2_i387_with_temp): Remove.
41245 (floathi splitters): Remove.
41246 (float<SWI48x>xf2): New pattern.
41247 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
41248 code that tried to handle DImode for 32-bit, but which was excluded
41249 by the pattern's condition. Drop allocation of stack temporary.
41250 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
41251 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
41252 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
41253 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
41254 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
41255 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
41256 (*float<SWI48><MODEF>2_sse_interunit): Remove.
41257 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
41258 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
41259 (*float<SWI48x><X87MODEF>2_i387): Remove.
41260 (all float _with_temp splitters): Remove.
41261 (*float<SWI48x><MODEF>2_i387): New pattern.
41262 (*float<SWI48><MODEF>2_sse): New pattern.
41263 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
41264 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
41265
41266 2014-03-14 Jakub Jelinek <jakub@redhat.com>
41267 Marek Polacek <polacek@redhat.com>
41268
41269 PR middle-end/60484
41270 * common.opt (dump_base_name_prefixed): New Variable.
41271 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
41272 if x_dump_base_name_prefixed is already set, set it at the end.
41273
41274 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
41275
41276 PR rtl-optimization/60508
41277 * lra-constraints.c (get_reload_reg): Add new parameter
41278 in_subreg_p.
41279 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
41280 Pass the new parameter values.
41281
41282 2014-03-14 Richard Biener <rguenther@suse.de>
41283
41284 * common.opt: Revert unintented changes from r205065.
41285 * opts.c: Likewise.
41286
41287 2014-03-14 Richard Biener <rguenther@suse.de>
41288
41289 PR middle-end/60518
41290 * cfghooks.c (split_block): Properly adjust all loops the
41291 block was a latch of.
41292
41293 2014-03-14 Martin Jambor <mjambor@suse.cz>
41294
41295 PR lto/60461
41296 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
41297 and simplify it.
41298
41299 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
41300
41301 PR target/59396
41302 * config/avr/avr.c (avr_set_current_function): Pass function name
41303 through default_strip_name_encoding before sanity checking instead
41304 of skipping the first char of the assembler name.
41305
41306 2014-03-13 Richard Henderson <rth@redhat.com>
41307
41308 PR debug/60438
41309 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
41310 (ix86_force_to_memory, ix86_free_from_memory): Remove.
41311 * config/i386/i386-protos.h: Likewise.
41312 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
41313 in the expander instead of a splitter.
41314 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
41315 any possibility of requiring a memory.
41316 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
41317 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
41318 (fp branch splitters): Update for ix86_split_fp_branch.
41319 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
41320 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
41321 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
41322 (*fop_<MODEF>_2_i387): Remove f/r alternative.
41323 (*fop_<MODEF>_3_i387): Likewise.
41324 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
41325 (splitters for the fop_* register patterns): Remove.
41326 (fscalexf4_i387): Rename from *fscalexf4_i387.
41327 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
41328
41329 2014-03-13 Jakub Jelinek <jakub@redhat.com>
41330
41331 PR tree-optimization/59779
41332 * tree-dfa.c (get_ref_base_and_extent): Use double_int
41333 type for bitsize and maxsize instead of HOST_WIDE_INT.
41334
41335 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
41336
41337 PR rtl-optimization/57320
41338 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
41339 the CFG after thread_prologue_and_epilogue_insns.
41340
41341 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
41342
41343 PR rtl-optimization/57189
41344 * lra-constraints.c (process_alt_operands): Disfavor spilling
41345 vector pseudos.
41346
41347 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
41348
41349 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
41350
41351 2014-03-13 Jakub Jelinek <jakub@redhat.com>
41352
41353 PR tree-optimization/59025
41354 PR middle-end/60418
41355 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
41356 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
41357
41358 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
41359
41360 PR target/60486
41361 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
41362 calls of avr_out_plus_1.
41363
41364 2014-03-13 Bin Cheng <bin.cheng@arm.com>
41365
41366 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
41367 BB's single pred and update the father loop's latch info later.
41368
41369 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
41370
41371 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
41372 (VEC_M): Likewise.
41373 (VEC_N): Likewise.
41374 (VEC_R): Likewise.
41375 (VEC_base): Likewise.
41376 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
41377 registers, we need to swap double words in little endian mode.
41378
41379 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
41380 to be a container mode for 128-bit integer operations added in ISA
41381 2.07. Unlike TImode and PTImode, the preferred register set is
41382 the Altivec/VMX registers for the 128-bit operations.
41383
41384 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
41385 declarations.
41386 (rs6000_split_128bit_ok_p): Likewise.
41387
41388 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
41389 macros for creating ISA 2.07 normal and overloaded builtin
41390 functions with 3 arguments.
41391 (BU_P8V_OVERLOAD_3): Likewise.
41392 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
41393 for use as overloaded functions.
41394 (VPERM_1TI_UNS): Likewise.
41395 (VSEL_1TI): Likewise.
41396 (VSEL_1TI_UNS): Likewise.
41397 (ST_INTERNAL_1ti): Likewise.
41398 (LD_INTERNAL_1ti): Likewise.
41399 (XXSEL_1TI): Likewise.
41400 (XXSEL_1TI_UNS): Likewise.
41401 (VPERM_1TI): Likewise.
41402 (VPERM_1TI_UNS): Likewise.
41403 (XXPERMDI_1TI): Likewise.
41404 (SET_1TI): Likewise.
41405 (LXVD2X_V1TI): Likewise.
41406 (STXVD2X_V1TI): Likewise.
41407 (VEC_INIT_V1TI): Likewise.
41408 (VEC_SET_V1TI): Likewise.
41409 (VEC_EXT_V1TI): Likewise.
41410 (EQV_V1TI): Likewise.
41411 (NAND_V1TI): Likewise.
41412 (ORC_V1TI): Likewise.
41413 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
41414 added in ISA 2.07. Add both normal 'altivec' builtins, and the
41415 overloaded builtin.
41416 (VADDUQM): Likewise.
41417 (VSUBCUQ): Likewise.
41418 (VADDEUQM): Likewise.
41419 (VADDECUQ): Likewise.
41420 (VSUBEUQM): Likewise.
41421 (VSUBECUQ): Likewise.
41422
41423 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
41424 __int128_t and __uint128_t types.
41425 (__uint128_type): Likewise.
41426 (altivec_categorize_keyword): Add support for vector __int128_t,
41427 vector __uint128_t, vector __int128, and vector unsigned __int128
41428 as a container type for TImode operations that need to be done in
41429 VSX/Altivec registers.
41430 (rs6000_macro_to_expand): Likewise.
41431 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
41432 to support 128-bit integer instructions vaddcuq, vadduqm,
41433 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
41434 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
41435
41436 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
41437 for V1TImode, and set up preferences to use VSX/Altivec registers.
41438 Setup VSX reload handlers.
41439 (rs6000_debug_reg_global): Likewise.
41440 (rs6000_init_hard_regno_mode_ok): Likewise.
41441 (rs6000_preferred_simd_mode): Likewise.
41442 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
41443 (easy_altivec_constant): Likewise.
41444 (output_vec_const_move): Likewise.
41445 (rs6000_expand_vector_set): Convert V1TImode set and extract to
41446 simple move.
41447 (rs6000_expand_vector_extract): Likewise.
41448 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
41449 addressing.
41450 (rs6000_const_vec): Add support for V1TImode.
41451 (rs6000_emit_le_vsx_load): Swap double words when loading or
41452 storing TImode/V1TImode.
41453 (rs6000_emit_le_vsx_store): Likewise.
41454 (rs6000_emit_le_vsx_move): Likewise.
41455 (rs6000_emit_move): Add support for V1TImode.
41456 (altivec_expand_ld_builtin): Likewise.
41457 (altivec_expand_st_builtin): Likewise.
41458 (altivec_expand_vec_init_builtin): Likewise.
41459 (altivec_expand_builtin): Likewise.
41460 (rs6000_init_builtins): Add support for V1TImode type. Add
41461 support for ISA 2.07 128-bit integer builtins. Define type names
41462 for the VSX/Altivec vector types.
41463 (altivec_init_builtins): Add support for overloaded vector
41464 functions with V1TImode type.
41465 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
41466 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
41467 external function.
41468 (rs6000_split_128bit_ok_p): Likewise.
41469 (rs6000_handle_altivec_attribute): Create V1TImode from vector
41470 __int128_t and vector __uint128_t.
41471
41472 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
41473 and mode attributes.
41474 (VSX_M): Likewise.
41475 (VSX_M2): Likewise.
41476 (VSm): Likewise.
41477 (VSs): Likewise.
41478 (VSr): Likewise.
41479 (VSv): Likewise.
41480 (VS_scalar): Likewise.
41481 (VS_double): Likewise.
41482 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
41483
41484 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
41485 we support the ISA 2.07 128-bit integer arithmetic instructions.
41486 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
41487 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
41488 and TImode types for use with the builtin functions.
41489 (V1TI_type_node): Likewise.
41490 (unsigned_V1TI_type_node): Likewise.
41491 (intTI_type_internal_node): Likewise.
41492 (uintTI_type_internal_node): Likewise.
41493
41494 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
41495 128-bit builtin functions.
41496 (UNSPEC_VADDEUQM): Likewise.
41497 (UNSPEC_VADDECUQ): Likewise.
41498 (UNSPEC_VSUBCUQ): Likewise.
41499 (UNSPEC_VSUBEUQM): Likewise.
41500 (UNSPEC_VSUBECUQ): Likewise.
41501 (VM): Add V1TImode to vector mode iterators.
41502 (VM2): Likewise.
41503 (VI_unit): Likewise.
41504 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
41505 (altivec_vaddcuq): Likewise.
41506 (altivec_vsubuqm): Likewise.
41507 (altivec_vsubcuq): Likewise.
41508 (altivec_vaddeuqm): Likewise.
41509 (altivec_vaddecuq): Likewise.
41510 (altivec_vsubeuqm): Likewise.
41511 (altivec_vsubecuq): Likewise.
41512
41513 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
41514 mode iterators.
41515 (BOOL_128): Likewise.
41516 (BOOL_REGS_OUTPUT): Likewise.
41517 (BOOL_REGS_OP1): Likewise.
41518 (BOOL_REGS_OP2): Likewise.
41519 (BOOL_REGS_UNARY): Likewise.
41520 (BOOL_REGS_AND_CR0): Likewise.
41521
41522 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
41523 128-bit integer builtin support.
41524 (vec_vadduqm): Likewise.
41525 (vec_vaddecuq): Likewise.
41526 (vec_vaddeuqm): Likewise.
41527 (vec_vsubecuq): Likewise.
41528 (vec_vsubeuqm): Likewise.
41529 (vec_vsubcuq): Likewise.
41530 (vec_vsubuqm): Likewise.
41531
41532 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
41533 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
41534 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
41535 128-bit integer add/subtract to ISA 2.07.
41536
41537 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
41538
41539 * config/arc/arc.c (arc_predicate_delay_insns):
41540 Fix third argument passed to conditionalize_nonjump.
41541
41542 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
41543
41544 * config/aarch64/aarch64-builtins.c
41545 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
41546 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
41547 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
41548 instead of __builtin_lfloor.
41549 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
41550
41551 2014-03-12 Jakub Jelinek <jakub@redhat.com>
41552
41553 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
41554 (tree_ssa_ifcombine_bb_1): New function.
41555 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
41556 is an empty forwarder block to then_bb or vice versa and then_bb
41557 and else_bb are effectively swapped.
41558
41559 2014-03-12 Christian Bruel <christian.bruel@st.com>
41560
41561 PR target/60264
41562 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
41563 REG_CFA_DEF_CFA note.
41564 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
41565 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
41566
41567 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
41568
41569 PR tree-optimization/60454
41570 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
41571
41572 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41573
41574 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
41575 Do not define target_cpu_default2 to generic.
41576 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
41577 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
41578 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
41579
41580 2014-03-12 Jakub Jelinek <jakub@redhat.com>
41581 Marc Glisse <marc.glisse@inria.fr>
41582
41583 PR tree-optimization/60502
41584 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
41585 instead of build_low_bits_mask.
41586
41587 2014-03-12 Jakub Jelinek <jakub@redhat.com>
41588
41589 PR middle-end/60482
41590 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
41591 if there are multiple uses, but op doesn't live on E edge.
41592 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
41593 clobber stmts before __builtin_unreachable.
41594
41595 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
41596
41597 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
41598 hard_frame_pointer_rtx.
41599 * cse.c (cse_insn): Remove volatile check.
41600 * cselib.c (cselib_process_insn): Likewise.
41601 * dse.c (scan_insn): Likewise.
41602
41603 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
41604
41605 * config/arc/arc.c (conditionalize_nonjump): New function,
41606 broken out of ...
41607 (arc_ifcvt): ... this.
41608 (arc_predicate_delay_insns): Use it.
41609
41610 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
41611
41612 * config/arc/predicates.md (extend_operand): During/after reload,
41613 allow const_int_operand.
41614 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
41615 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
41616 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
41617 to "i".
41618 (umulsi3_highpart_i): Likewise.
41619
41620 2014-03-11 Richard Biener <rguenther@suse.de>
41621
41622 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
41623 Add asserts to guard possible wrong-code bugs.
41624
41625 2014-03-11 Richard Biener <rguenther@suse.de>
41626
41627 PR tree-optimization/60429
41628 PR tree-optimization/60485
41629 * tree-ssa-structalias.c (set_union_with_increment): Properly
41630 take into account all fields that overlap the shifted vars.
41631 (do_sd_constraint): Likewise.
41632 (do_ds_constraint): Likewise.
41633 (get_constraint_for_ptr_offset): Likewise.
41634
41635 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
41636
41637 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
41638 (nios2_compute_frame_layout):
41639 Add calculation of cfun->machine->fp_save_offset.
41640 (nios2_expand_prologue): Correct setting of frame pointer register
41641 in prologue.
41642 (nios2_expand_epilogue): Update recovery of stack pointer from
41643 frame pointer accordingly.
41644 (nios2_initial_elimination_offset): Update calculation of offset
41645 for eliminating to HARD_FRAME_POINTER_REGNUM.
41646
41647 2014-03-10 Jakub Jelinek <jakub@redhat.com>
41648
41649 PR ipa/60457
41650 * ipa.c (symtab_remove_unreachable_nodes): Don't call
41651 cgraph_get_create_node on VAR_DECLs.
41652
41653 2014-03-10 Richard Biener <rguenther@suse.de>
41654
41655 PR middle-end/60474
41656 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
41657
41658 2014-03-08 Douglas B Rupp <rupp@gnat.com>
41659
41660 * config/vms/vms.opt (vms_float_format): New variable.
41661
41662 2014-03-08 Tobias Burnus <burnus@net-b.de>
41663
41664 * doc/invoke.texi (-fcilkplus): Update implementation status.
41665
41666 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
41667 Richard Biener <rguenther@suse.de>
41668
41669 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
41670 consistently accross all TUs.
41671 (run_gcc): Enable -fshort-double automatically at link at link-time
41672 and disallow override.
41673
41674 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
41675
41676 PR target/58271
41677 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
41678 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
41679 if they can't be used.
41680
41681 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41682
41683 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
41684 for Solaris 11/x86 ld.
41685 * configure: Regenerate.
41686
41687 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41688
41689 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
41690 (LIB_TLS_SPEC): Save as ld_tls_libs.
41691 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
41692 (HAVE_AS_IX86_TLSLDM): New test.
41693 * configure, config.in: Regenerate.
41694 * config/i386/i386.c (legitimize_tls_address): Fall back to
41695 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
41696 cannot support TLS_MODEL_LOCAL_DYNAMIC.
41697 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
41698 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
41699
41700 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
41701
41702 * common.opt (fira-loop-pressure): Mark as optimization.
41703
41704 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
41705
41706 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
41707 an OpenMP mappable type.
41708
41709 2014-03-06 Matthias Klose <doko@ubuntu.com>
41710
41711 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
41712 MULTILIB_OSDIRNAMES is not defined.
41713
41714 2014-03-06 Jakub Jelinek <jakub@redhat.com>
41715 Meador Inge <meadori@codesourcery.com>
41716
41717 PR target/58595
41718 * config/arm/arm.c (arm_tls_symbol_p): Remove.
41719 (arm_legitimize_address): Call legitimize_tls_address for any
41720 arm_tls_referenced_p expression, handle constant addend. Call it
41721 before testing for !TARGET_ARM.
41722 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
41723
41724 2014-03-06 Richard Biener <rguenther@suse.de>
41725
41726 PR middle-end/60445
41727 PR lto/60424
41728 PR lto/60427
41729 Revert
41730 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
41731
41732 * tree-streamer.c (record_common_node): Assert we don't record
41733 nodes with type double.
41734 (preload_common_node): Skip type double, complex double and double
41735 pointer since it is now frontend dependent due to fshort-double option.
41736
41737 2014-03-06 Richard Biener <rguenther@suse.de>
41738
41739 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
41740 or -fno-lto is specified and the linker has full plugin support.
41741 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
41742 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
41743 * lto-wrapper.c (merge_and_complain): Merge compile-time
41744 optimization levels.
41745 (run_gcc): And pass it through to the link options.
41746
41747 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
41748
41749 PR debug/60381
41750 Revert:
41751 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
41752 PR debug/59992
41753 * cselib.c (remove_useless_values): Skip to avoid quadratic
41754 behavior if the condition moved from...
41755 (cselib_process_insn): ... here holds.
41756
41757 2014-03-05 Jakub Jelinek <jakub@redhat.com>
41758
41759 PR plugins/59335
41760 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
41761 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
41762
41763 PR plugins/59335
41764 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
41765 (TM_H): Add x86-tune.def.
41766
41767 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41768
41769 * config/aarch64/aarch64.c (generic_tunings):
41770 Use cortexa57_extra_costs.
41771
41772 2014-03-05 Jakub Jelinek <jakub@redhat.com>
41773
41774 PR lto/60404
41775 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
41776 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
41777 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
41778 cost for in_lto_p.
41779
41780 2014-03-04 Heiher <r@hev.cc>
41781
41782 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
41783 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
41784
41785 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
41786
41787 * config/i386/predicates.md (const2356_operand): Change to ...
41788 (const2367_operand): ... this.
41789 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
41790 const2367_operand.
41791 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
41792 (*avx512pf_scatterpf<mode>sf): Ditto.
41793 (avx512pf_scatterpf<mode>df): Ditto.
41794 (*avx512pf_scatterpf<mode>df_mask): Ditto.
41795 (*avx512pf_scatterpf<mode>df): Ditto.
41796 * config/i386/i386.c (ix86_expand_builtin): Update
41797 incorrect hint operand error message.
41798
41799 2014-03-04 Richard Biener <rguenther@suse.de>
41800
41801 * lto-section-in.c (lto_get_section_data): Fix const cast.
41802
41803 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
41804
41805 * tree-streamer.c (record_common_node): Assert we don't record
41806 nodes with type double.
41807 (preload_common_node): Skip type double, complex double and double
41808 pointer since it is now frontend dependent due to fshort-double option.
41809
41810 2014-03-04 Richard Biener <rguenther@suse.de>
41811
41812 PR lto/60405
41813 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
41814 (lto_input_toplevel_asms): Likewise.
41815 * lto-section-in.c (lto_get_section_data): Instead do it here
41816 for every section.
41817
41818 2014-03-04 Richard Biener <rguenther@suse.de>
41819
41820 PR tree-optimization/60382
41821 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
41822 dead PHIs a reduction.
41823
41824 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
41825
41826 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
41827 hint value.
41828 (_mm_prefetch): Move out of GCC target("sse") pragma.
41829 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
41830 GCC target("prfchw") pragma.
41831 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
41832 for locality <= 2.
41833 * config/i386/i386.c (ix86_option_override_internal): Enable
41834 -mprfchw with -mprefetchwt1.
41835
41836 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
41837
41838 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
41839 Mark as varying.
41840
41841 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
41842
41843 * opts.h (CL_PCH_IGNORE): Define.
41844 * targhooks.c (option_affects_pch_p):
41845 Return false for options that have CL_PCH_IGNORE set.
41846 * opt-functions.awk: Process PchIgnore.
41847 * doc/options.texi: Document PchIgnore.
41848
41849 * config/arc/arc.opt (misize): Add PchIgnore property.
41850
41851 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41852
41853 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
41854 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
41855 constraint on constants to permit them being loaded into
41856 GENERAL_REGS or BASE_REGS.
41857
41858 2014-03-03 Nick Clifton <nickc@redhat.com>
41859
41860 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
41861 anti-cacnonical alternatives.
41862 (negandhi3_real): New pattern.
41863 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
41864
41865 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
41866
41867 * config/avr/avr-mcus.def: Remove atxmega16x1.
41868 * config/avr/avr-tables.opt: Regenerate.
41869 * config/avr/t-multilib: Regenerate.
41870 * doc/avr-mmcu.texi: Regenerate.
41871
41872 2014-03-03 Tobias Grosser <tobias@grosser.es>
41873 Mircea Namolaru <mircea.namolaru@inria.fr>
41874
41875 PR tree-optimization/58028
41876 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
41877 scalar dimensions.
41878
41879 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41880
41881 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
41882 not handled by recognizers.
41883
41884 2014-03-03 Jakub Jelinek <jakub@redhat.com>
41885
41886 PR middle-end/60175
41887 * function.c (expand_function_end): Don't emit
41888 clobber_return_register sequence if clobber_after is a BARRIER.
41889 * cfgexpand.c (construct_exit_block): Append instructions before
41890 return_label to prev_bb.
41891
41892 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41893
41894 * config/rs6000/constraints.md: Document reserved use of "wc".
41895
41896 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
41897
41898 PR ipa/60150
41899 * ipa.c (function_and_variable_visibility): When dissolving comdat
41900 group, also set all symbols to local.
41901
41902 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
41903
41904 PR ipa/60306
41905
41906 Revert:
41907 2013-12-14 Jan Hubicka <jh@suse.cz>
41908 PR middle-end/58477
41909 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
41910
41911 2014-03-02 Jon Beniston <jon@beniston.com>
41912
41913 PR bootstrap/48230
41914 PR bootstrap/50927
41915 PR bootstrap/52466
41916 PR target/46898
41917 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
41918 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
41919 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
41920 (simple_return, *simple_return): New patterns
41921 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
41922 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
41923
41924 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
41925
41926 * dwarf2out.c (gen_subprogram_die): Tidy.
41927
41928 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
41929
41930 PR target/60071
41931 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
41932 (*mov_t_msb_neg_negc): ... this new insn.
41933
41934 2014-02-28 Jason Merrill <jason@redhat.com>
41935
41936 PR c++/58678
41937 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
41938 function.
41939
41940 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
41941
41942 PR c++/60314
41943 * dwarf2out.c (decltype_auto_die): New static.
41944 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
41945 (gen_type_die_with_usage): Handle 'decltype(auto)'.
41946 (is_cxx_auto): Likewise.
41947
41948 2014-02-28 Ian Bolton <ian.bolton@arm.com>
41949
41950 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
41951 we are not using general regs only.
41952
41953 2014-02-28 Richard Biener <rguenther@suse.de>
41954
41955 PR target/60280
41956 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
41957 previous fix and only allow to remove trivial pre-headers
41958 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
41959 (remove_forwarder_block): Properly update the latch of a loop.
41960
41961 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
41962
41963 PR debug/59992
41964 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
41965 (cselib_preserved_hash_table): New.
41966 (preserve_constants_and_equivs): Move preserved vals to it.
41967 (cselib_find_slot): Look it up first.
41968 (cselib_init): Initialize it.
41969 (cselib_finish): Release it.
41970 (dump_cselib_table): Dump it.
41971
41972 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
41973
41974 PR debug/59992
41975 * cselib.c (remove_useless_values): Skip to avoid quadratic
41976 behavior if the condition moved from...
41977 (cselib_process_insn): ... here holds.
41978
41979 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
41980
41981 PR debug/57232
41982 * var-tracking.c (vt_initialize): Apply the same condition to
41983 preserve the CFA base value.
41984
41985 2014-02-28 Joey Ye <joey.ye@arm.com>
41986
41987 PR target/PR60169
41988 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
41989 if reload in progress or completed.
41990
41991 2014-02-28 Tobias Burnus <burnus@net-b.de>
41992
41993 PR middle-end/60147
41994 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
41995 NAMELIST_DECL.
41996
41997 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
41998
41999 * doc/tm.texi.in (Condition Code Status): Update documention for
42000 relative locations of cc0-setter and cc0-user.
42001
42002 2014-02-27 Jeff Law <law@redhat.com>
42003
42004 PR rtl-optimization/52714
42005 * combine.c (try_combine): When splitting an unrecognized PARALLEL
42006 into two independent simple sets, if I3 is a jump, ensure the
42007 pattern we place into I3 is a (set (pc) ...).
42008
42009 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
42010 Jeff Law <law@redhat.com>
42011
42012 PR rtl-optimization/49847
42013 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
42014 are in different blocks.
42015 * doc/tm.texi (Condition Code Status): Update documention for
42016 relative locations of cc0-setter and cc0-user.
42017
42018 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
42019
42020 PR target/59222
42021 * lra.c (lra_emit_add): Check SUBREG too.
42022
42023 2014-02-27 Andreas Schwab <schwab@suse.de>
42024
42025 * config/m68k/m68k.c (m68k_option_override): Disable
42026 -flive-range-shrinkage for classic m68k.
42027 (m68k_override_options_after_change): Likewise.
42028
42029 2014-02-27 Marek Polacek <polacek@redhat.com>
42030
42031 PR middle-end/59223
42032 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
42033 -Wmaybe-uninitialized.
42034
42035 2014-02-27 Alan Modra <amodra@gmail.com>
42036
42037 PR target/57936
42038 * reload1.c (emit_input_reload_insns): When reload_override_in,
42039 set old to rl->in_reg when rl->in_reg is a subreg.
42040
42041 2014-02-26 Richard Biener <rguenther@suse.de>
42042
42043 PR bootstrap/60343
42044 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
42045
42046 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
42047
42048 * common/config/i386/predicates.md (const1256_operand): Remove.
42049 (const2356_operand): New.
42050 (const_1_to_2_operand): Remove.
42051 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
42052 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
42053 (*avx512pf_gatherpf<mode>sf): Ditto.
42054 (avx512pf_gatherpf<mode>df): Ditto.
42055 (*avx512pf_gatherpf<mode>df_mask): Ditto.
42056 (*avx512pf_gatherpf<mode>df): Ditto.
42057 (avx512pf_scatterpf<mode>sf): Ditto.
42058 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
42059 (*avx512pf_scatterpf<mode>sf): Ditto.
42060 (avx512pf_scatterpf<mode>df): Ditto.
42061 (*avx512pf_scatterpf<mode>df_mask): Ditto.
42062 (*avx512pf_scatterpf<mode>df): Ditto.
42063 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
42064
42065 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
42066
42067 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
42068 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
42069 (_mm512_mask_testn_epi64_mask): Move to ...
42070 * config/i386/avx512cdintrin.h: Here.
42071 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
42072 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
42073 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
42074 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
42075 TARGET_AVX512F from TARGET_AVX512CD.
42076
42077 2014-02-26 Richard Biener <rguenther@suse.de>
42078
42079 PR ipa/60327
42080 * ipa.c (walk_polymorphic_call_targets): Properly guard
42081 call to inline_update_overall_summary.
42082
42083 2014-02-26 Bin Cheng <bin.cheng@arm.com>
42084
42085 PR target/60280
42086 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
42087 and latches only if requested. Fix latch if it is removed.
42088 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
42089 LOOPS_HAVE_PREHEADERS.
42090
42091 2014-02-25 Andrew Pinski <apinski@cavium.com>
42092
42093 * builtins.c (expand_builtin_thread_pointer): Create a new target
42094 when the target is NULL.
42095
42096 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
42097
42098 PR rtl-optimization/60317
42099 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
42100 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
42101 * lra-assigns.c: Include params.h.
42102 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
42103 other reload pseudos considerations.
42104
42105 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42106
42107 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
42108 to use canonical form for nor<mode>3.
42109
42110 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42111
42112 PR target/55426
42113 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
42114 conversions.
42115
42116 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
42117
42118 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
42119 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
42120 (ix86_handle_option): Handle OPT_mprefetchwt1.
42121 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
42122 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
42123 PREFETCHWT1 CPUID.
42124 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
42125 OPTION_MASK_ISA_PREFETCHWT1.
42126 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
42127 (PTA_PREFETCHWT1): New.
42128 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
42129 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
42130 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
42131 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
42132 (*prefetch_avx512pf_<mode>_: Change into ...
42133 (*prefetch_prefetchwt1_<mode>: This.
42134 * config/i386/i386.opt (mprefetchwt1): New.
42135 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
42136 (_mm_prefetch): Handle intent to write.
42137 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
42138
42139 2014-02-25 Richard Biener <rguenther@suse.de>
42140
42141 PR middle-end/60291
42142 * emit-rtl.c (mem_attrs_htab): Remove.
42143 (mem_attrs_htab_hash): Likewise.
42144 (mem_attrs_htab_eq): Likewise.
42145 (set_mem_attrs): Always allocate new mem-attrs when something changed.
42146 (init_emit_once): Do not allocate mem_attrs_htab.
42147
42148 2014-02-25 Richard Biener <rguenther@suse.de>
42149
42150 PR lto/60319
42151 * lto-opts.c (lto_write_options): Output non-explicit conservative
42152 -fwrapv, -fno-trapv and -fno-strict-overflow.
42153 * lto-wrapper.c (merge_and_complain): Handle merging those options.
42154 (run_gcc): And pass them through.
42155
42156 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
42157
42158 * sel-sched.c (calculate_new_fences): New parameter ptime.
42159 Calculate it as a maximum over all fence cycles.
42160 (sel_sched_region_2): Adjust the call to calculate_new_fences.
42161 Print the final schedule timing when sched_verbose.
42162
42163 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
42164
42165 PR rtl-optimization/60292
42166 * sel-sched.c (fill_vec_av_set): Do not reset target availability
42167 bit fot the fence instruction.
42168
42169 2014-02-24 Alangi Derick <alangiderick@gmail.com>
42170
42171 * calls.h: Fix typo in comment.
42172
42173 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
42174
42175 * config/pa/pa.c (pa_output_move_double): Don't valididate when
42176 adjusting offsetable addresses.
42177
42178 2014-02-24 Guozhi Wei <carrot@google.com>
42179
42180 * sparseset.h (sparseset_pop): Fix the wrong index.
42181
42182 2014-02-24 Walter Lee <walt@tilera.com>
42183
42184 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
42185 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
42186 triplet.
42187 * common/config/tilegx/tilegx-common.c
42188 (TARGET_DEFAULT_TARGET_FLAGS): Define.
42189 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
42190 (LINK_SPEC): Ditto.
42191 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
42192 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
42193 (tilegx_gimplify_va_arg_expr): Handle big endian.
42194 (tilegx_expand_unaligned_load): Ditto.
42195 (tilegx_expand_unaligned_store): Ditto.
42196 (TARGET_RETURN_IN_MSB): New.
42197 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
42198 (TARGET_ENDIAN_DEFAULT): New.
42199 (TARGET_BIG_ENDIAN): Handle big endian.
42200 (BYTES_BIG_ENDIAN): Ditto.
42201 (WORDS_BIG_ENDIAN): Ditto.
42202 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
42203 (ENDIAN_SPEC): New.
42204 (EXTRA_SPECS): New.
42205 * config/tilegx/tilegx.md (extv): Handle big endian.
42206 (extzv): Ditto.
42207 (insn_st<n>): Ditto.
42208 (insn_st<n>_add<bitsuffix>): Ditto.
42209 (insn_stnt<n>): Ditto.
42210 (insn_stnt<n>_add<bitsuffix>):Ditto.
42211 (vec_interleave_highv8qi): Handle big endian.
42212 (vec_interleave_highv8qi_be): New.
42213 (vec_interleave_highv8qi_le): New.
42214 (insn_v1int_h): Handle big endian.
42215 (vec_interleave_lowv8qi): Handle big endian.
42216 (vec_interleave_lowv8qi_be): New.
42217 (vec_interleave_lowv8qi_le): New.
42218 (insn_v1int_l): Handle big endian.
42219 (vec_interleave_highv4hi): Handle big endian.
42220 (vec_interleave_highv4hi_be): New.
42221 (vec_interleave_highv4hi_le): New.
42222 (insn_v2int_h): Handle big endian.
42223 (vec_interleave_lowv4hi): Handle big endian.
42224 (vec_interleave_lowv4hi_be): New.
42225 (vec_interleave_lowv4hi_le): New.
42226 (insn_v2int_l): Handle big endian.
42227 (vec_interleave_highv2si): Handle big endian.
42228 (vec_interleave_highv2si_be): New.
42229 (vec_interleave_highv2si_le): New.
42230 (insn_v4int_h): Handle big endian.
42231 (vec_interleave_lowv2si): Handle big endian.
42232 (vec_interleave_lowv2si_be): New.
42233 (vec_interleave_lowv2si_le): New.
42234 (insn_v4int_l): Handle big endian.
42235 * config/tilegx/tilegx.opt (mbig-endian): New option.
42236 (mlittle-endian): New option.
42237 * doc/install.texi: Document tilegxbe-linux.
42238 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
42239
42240 2014-02-24 Martin Jambor <mjambor@suse.cz>
42241
42242 PR ipa/60266
42243 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
42244 there are no parameter descriptors.
42245
42246 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
42247
42248 PR rtl-optimization/60268
42249 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
42250 initialization to ...
42251 (sched_rgn_init): ... here.
42252 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
42253
42254 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
42255
42256 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
42257 names.
42258
42259 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
42260
42261 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
42262 definition.
42263
42264 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
42265
42266 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
42267 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
42268
42269 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
42270
42271 * config/microblaze/predicates.md: Add cmp_op predicate.
42272 * config/microblaze/microblaze.md: Add branch_compare instruction
42273 which uses cmp_op predicate and emits cmp insn before branch.
42274 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
42275 to microblaze_expand_conditional_branch and consolidate logic.
42276 (microblaze_expand_conditional_branch): emit branch_compare
42277 insn instead of handling cmp op separate from branch insn.
42278
42279 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42280
42281 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
42282 to permit subregs.
42283
42284 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42285
42286 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
42287 define_insn with define_expand and new define_insn
42288 *altivec_lve<VI_char>x_internal.
42289 (altivec_stve<VI_char>x): Replace define_insn with define_expand
42290 and new define_insn *altivec_stve<VI_char>x_internal.
42291 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
42292 prototype.
42293 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
42294 lve*x built-ins.
42295 (altivec_expand_stvex_be): New function.
42296
42297 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
42298
42299 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
42300 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
42301 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
42302 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
42303
42304 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
42305
42306 PR target/60298
42307 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
42308 instead of emit_move_insn.
42309
42310 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42311
42312 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
42313 vspltw with vsldoi.
42314 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
42315 gen_altivec_vsumsws.
42316
42317 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42318
42319 * config/rs6000/altivec.md (altivec_lvxl): Rename as
42320 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
42321 (altivec_lvxl_<mode>): New define_expand incorporating
42322 -maltivec=be semantics where needed.
42323 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
42324 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
42325 semantics where needed.
42326 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
42327 (altivec_stvx_<mode>): New define_expand incorporating
42328 -maltivec=be semantics where needed.
42329 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
42330 VM2 iterator instead of V4SI.
42331 (altivec_stvxl_<mode>): New define_expand incorporating
42332 -maltivec=be semantics where needed.
42333 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
42334 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
42335 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
42336 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
42337 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
42338 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
42339 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
42340 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
42341 ALTIVEC_BUILTIN_STVXL.
42342 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
42343 (altivec_expand_stvx_be): Likewise.
42344 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
42345 (altivec_expand_lvx_be): Likewise.
42346 (altivec_expand_stvx_be): Likewise.
42347 (altivec_expand_builtin): Add cases for
42348 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
42349 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
42350 (altivec_init_builtins): Add definitions for
42351 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
42352 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
42353
42354 2014-02-21 Catherine Moore <clm@codesourcery.com>
42355
42356 * doc/invoke.texi (mvirt, mno-virt): Document.
42357 * config/mips/mips.opt (mvirt): New option.
42358 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
42359
42360 2014-02-21 Richard Biener <rguenther@suse.de>
42361
42362 PR tree-optimization/60276
42363 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
42364 (STMT_VINFO_MIN_NEG_DIST): New macro.
42365 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
42366 STMT_VINFO_MIN_NEG_DIST.
42367 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
42368 made for negative dependence distances still hold.
42369
42370 2014-02-21 Richard Biener <rguenther@suse.de>
42371
42372 PR middle-end/60291
42373 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
42374 DECL_INITIAL for globals not in the current function context.
42375
42376 2014-02-21 Jakub Jelinek <jakub@redhat.com>
42377
42378 PR tree-optimization/56490
42379 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
42380 * tree-ssa-uninit.c: Include params.h.
42381 (compute_control_dep_chain): Add num_calls argument, return false
42382 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
42383 num_calls to recursive call.
42384 (find_predicates): Change dep_chain into normal array,
42385 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
42386 variable and adjust compute_control_dep_chain caller.
42387 (find_def_preds): Likewise.
42388
42389 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
42390
42391 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
42392 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
42393
42394 2014-02-21 Nick Clifton <nickc@redhat.com>
42395
42396 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
42397 (pushhi1): Likewise.
42398 (popqi1): Add mode to pre_dec.
42399 (pophi1): Likewise.
42400
42401 2014-02-21 Jakub Jelinek <jakub@redhat.com>
42402
42403 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
42404 mode for mask of V8SFmode permutation.
42405
42406 2014-02-20 Richard Henderson <rth@redhat.com>
42407
42408 PR c++/60272
42409 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
42410 a new pseudo for OLDVAL.
42411
42412 2014-02-20 Jakub Jelinek <jakub@redhat.com>
42413
42414 PR target/57896
42415 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
42416 gen_reg_rtx if d->testing_p.
42417 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
42418 if d->testing_p and we will certainly return true.
42419 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
42420 if d->testing_p.
42421
42422 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
42423
42424 * emit-rtl.c (gen_reg_rtx): Assert that
42425 crtl->emit.regno_pointer_align_length is non-zero.
42426
42427 2014-02-20 Richard Henderson <rth@redhat.com>
42428
42429 PR c++/60272
42430 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
42431 on failure the store back into EXPECT.
42432
42433 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
42434 Sandra Loosemore <sandra@codesourcery.com>
42435
42436 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
42437 * config/nios2/nios2.c (nios2_function_profiler): Add
42438 -fPIC (flag_pic == 2) support.
42439 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
42440 (nios2_large_offset_p): New function.
42441 (nios2_unspec_reloc_p): Move up position, update to use
42442 nios2_large_offset_p.
42443 (nios2_unspec_address): Remove function.
42444 (nios2_unspec_offset): New function.
42445 (nios2_large_got_address): New function.
42446 (nios2_got_address): Add large offset support.
42447 (nios2_legitimize_tls_address): Update usage of removed and new
42448 functions.
42449 (nios2_symbol_binds_local_p): New function.
42450 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
42451 (nios2_legitimize_address): Update to use nios2_large_offset_p.
42452 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
42453 (nios2_print_operand): Merge H/L processing, add hiadj/lo
42454 processing for (const (unspec ...)).
42455 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
42456
42457 2014-02-20 Richard Biener <rguenther@suse.de>
42458
42459 * tree-cfg.c (replace_uses_by): Mark altered BBs before
42460 doing the substitution.
42461 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
42462
42463 2014-02-20 Martin Jambor <mjambor@suse.cz>
42464
42465 PR ipa/55260
42466 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
42467 info when checking whether lattices are bottom.
42468
42469 2014-02-20 Richard Biener <rguenther@suse.de>
42470
42471 PR middle-end/60221
42472 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
42473 regions at -O0.
42474
42475 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
42476
42477 PR ipa/58555
42478 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
42479 parameter specifying the scaling.
42480 (inline_call): Update.
42481 (want_inline_recursively): Guard division by zero.
42482 (recursive_inlining): Update.
42483 * ipa-inline.h (clone_inlined_nodes): Update.
42484
42485 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
42486
42487 PR target/60204
42488 * config/i386/i386.c (classify_argument): Pass structures of size
42489 64 bytes or less in register.
42490
42491 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
42492 Kirill Yukhin <kirill.yukhin@intel.com>
42493
42494 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
42495 (_mm_rcp28_round_ss): Ditto.
42496 (_mm_rsqrt28_round_sd): Ditto.
42497 (_mm_rsqrt28_round_ss): Ditto.
42498 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
42499 (_mm_rcp14_round_ss): Ditto.
42500 (_mm_rsqrt14_round_sd): Ditto.
42501 (_mm_rsqrt14_round_ss): Ditto.
42502 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
42503 the first input operand, get rid of match_dup.
42504 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
42505 attribute to sse.
42506 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
42507 Ditto.
42508 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
42509 operand as the first input operand, set type attribute.
42510 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
42511 Set type attribute.
42512 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
42513 operand as the first input operand, set type attribute.
42514
42515 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42516
42517 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
42518 bit of zero.
42519
42520 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
42521
42522 PR target/60207
42523 * config/i386/i386.c (construct_container): Remove TFmode check
42524 for X86_64_INTEGER_CLASS.
42525
42526 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
42527
42528 PR target/59794
42529 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
42530 only when -Wpsabi is enabled.
42531
42532 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
42533
42534 PR target/59799
42535 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
42536 passing arrays in registers are the same as for structs, so remove the
42537 special case for them.
42538
42539 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
42540
42541 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
42542 destination type, extract only the valid bits if the source type is not
42543 integral and has a different mode.
42544
42545 2014-02-19 Richard Biener <rguenther@suse.de>
42546
42547 PR ipa/60243
42548 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
42549 for all calls.
42550
42551 2014-02-19 Richard Biener <rguenther@suse.de>
42552
42553 PR ipa/60243
42554 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
42555 (ipa_modify_call_arguments): Emit an argument load explicitely and
42556 preserve virtual SSA form there and for the replacement call.
42557 Do not update SSA form nor free dominance info.
42558
42559 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
42560
42561 * ipa.c (function_and_variable_visibility): Also clear WEAK
42562 flag when disolving COMDAT_GROUP.
42563
42564 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
42565
42566 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
42567 * ipa-prop.c (ipa_set_jf_known_type): Return early when
42568 not devirtualizing.
42569 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
42570 do more sanity checks.
42571 (detect_type_change): Return true when giving up early.
42572 (compute_complex_assign_jump_func): Fix type parameter of
42573 ipa_set_ancestor_jf.
42574 (compute_complex_ancestor_jump_func): Likewise.
42575 (update_jump_functions_after_inlining): Fix updating of
42576 ancestor function.
42577 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
42578
42579 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
42580
42581 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
42582 inline clones when edge disappears.
42583
42584 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
42585
42586 PR target/60203
42587 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
42588 Split 64-bit moves into 2 patterns. Do not allow the use of
42589 direct move for TDmode in little endian, since the decimal value
42590 has little endian bytes within a word, but the 64-bit pieces are
42591 ordered in a big endian fashion, and normal subreg's of TDmode are
42592 not allowed.
42593 (mov<mode>_64bit_dm): Likewise.
42594 (movtd_64bit_nodm): Likewise.
42595
42596 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
42597
42598 PR tree-optimization/60174
42599 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
42600 statement of an SSA_NAME that occurs in an abnormal PHI node.
42601
42602 2014-02-18 Jakub Jelinek <jakub@redhat.com>
42603
42604 PR sanitizer/60142
42605 * final.c (SEEN_BB): Remove.
42606 (SEEN_NOTE, SEEN_EMITTED): Renumber.
42607 (final_scan_insn): Don't force_source_line on second
42608 NOTE_INSN_BASIC_BLOCK.
42609
42610 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
42611
42612 PR target/60205
42613 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
42614 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
42615 (type_natural_mode): Warn ABI change when %zmm register is not
42616 available for AVX512F vector value passing.
42617
42618 2014-02-18 Kai Tietz <ktietz@redhat.com>
42619
42620 PR target/60193
42621 * config/i386/i386.c (ix86_expand_prologue): Use value in
42622 rax register as displacement when restoring %r10 or %rax.
42623 Fix wrong offset when restoring both registers.
42624
42625 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
42626
42627 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
42628 assertion with conditional return.
42629
42630 2014-02-18 Jakub Jelinek <jakub@redhat.com>
42631 Uros Bizjak <ubizjak@gmail.com>
42632
42633 PR driver/60233
42634 * config/i386/driver-i386.c (host_detect_local_cpu): If
42635 YMM state is not saved by the OS, also clear has_f16c. Move
42636 CPUID 0x80000001 handling before YMM state saving checking.
42637
42638 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
42639
42640 PR rtl-optimization/58960
42641 * haifa-sched.c (alloc_global_sched_pressure_data): New,
42642 factored out from ...
42643 (sched_init): ... here.
42644 (free_global_sched_pressure_data): New, factored out from ...
42645 (sched_finish): ... here.
42646 * sched-int.h (free_global_sched_pressure_data): Declare.
42647 * sched-rgn.c (nr_regions_initial): New static global.
42648 (haifa_find_rgns): Initialize it.
42649 (schedule_region): Disable sched-pressure for the newly
42650 generated regions.
42651
42652 2014-02-17 Richard Biener <rguenther@suse.de>
42653
42654 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
42655 release SSA defs of pattern stmts.
42656
42657 2014-02-17 Richard Biener <rguenther@suse.de>
42658
42659 * tree-inline.c (expand_call_inline): Release the virtual
42660 operand defined by the call we are about to inline.
42661
42662 2014-02-17 Richard Biener <rguenther@suse.de>
42663
42664 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
42665
42666 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
42667 Ilya Tocar <ilya.tocar@intel.com>
42668
42669 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
42670 arguments order in builtin.
42671 (_mm512_permutexvar_epi64): Ditto.
42672 (_mm512_mask_permutexvar_epi64): Ditto
42673 (_mm512_maskz_permutexvar_epi32): Ditto
42674 (_mm512_permutexvar_epi32): Ditto
42675 (_mm512_mask_permutexvar_epi32): Ditto
42676
42677 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42678
42679 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
42680 (p8_vmrgow): Likewise.
42681
42682 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42683
42684 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
42685 endian targets.
42686
42687 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
42688
42689 PR target/60203
42690 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
42691 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
42692 into 64-bit and 32-bit moves. On 64-bit moves, add support for
42693 using direct move instructions on ISA 2.07. Also adjust
42694 instruction length for 64-bit.
42695 (mov<mode>_64bit, TFmode/TDmode): Likewise.
42696 (mov<mode>_32bit, TFmode/TDmode): Likewise.
42697
42698 2014-02-15 Alan Modra <amodra@gmail.com>
42699
42700 PR target/58675
42701 PR target/57935
42702 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
42703 find_replacement on parts of insn rtl that might be reloaded.
42704
42705 2014-02-15 Richard Biener <rguenther@suse.de>
42706
42707 PR tree-optimization/60183
42708 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
42709 (tree_ssa_phiprop): Calculate and free post-dominators.
42710
42711 2014-02-14 Jeff Law <law@redhat.com>
42712
42713 PR rtl-optimization/60131
42714 * ree.c (get_extended_src_reg): New function.
42715 (combine_reaching_defs): Use it rather than assuming location of REG.
42716 (find_and_remove_re): Verify first operand of extension is
42717 a REG before adding the insns to the copy list.
42718
42719 2014-02-14 Roland McGrath <mcgrathr@google.com>
42720
42721 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
42722 * configure: Regenerated.
42723 * config.in: Regenerated.
42724 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
42725 instead of ASM_SHORT.
42726
42727 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
42728 Richard Earnshaw <rearnsha@arm.com>
42729
42730 PR rtl-optimization/59535
42731 * lra-constraints.c (process_alt_operands): Encourage alternative
42732 when unassigned pseudo class is superset of the alternative class.
42733 (inherit_reload_reg): Don't inherit when optimizing for code size.
42734 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
42735 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
42736 modes not less than 4 for Thumb1.
42737
42738 2014-02-14 Kyle McMartin <kyle@redhat.com>
42739
42740 PR pch/60010
42741 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
42742
42743 2014-02-14 Richard Biener <rguenther@suse.de>
42744
42745 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
42746 (get_frame_arg): Drop the assert with langhook types_compatible_p.
42747 Do not strip INDIRECT_REFs.
42748
42749 2014-02-14 Richard Biener <rguenther@suse.de>
42750
42751 PR lto/60179
42752 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
42753 DECL_FUNCTION_SPECIFIC_TARGET.
42754 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
42755 * tree-streamer-out.c (pack_ts_target_option): Remove.
42756 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
42757 (write_ts_function_decl_tree_pointers): Do not stream
42758 DECL_FUNCTION_SPECIFIC_TARGET.
42759 * tree-streamer-in.c (unpack_ts_target_option): Remove.
42760 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
42761 (lto_input_ts_function_decl_tree_pointers): Do not stream
42762 DECL_FUNCTION_SPECIFIC_TARGET.
42763
42764 2014-02-14 Jakub Jelinek <jakub@redhat.com>
42765
42766 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
42767 (get_initial_def_for_induction, vectorizable_induction): Ignore
42768 debug stmts when looking for exit_phi.
42769 (vectorizable_live_operation): Fix up condition.
42770
42771 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
42772
42773 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
42774 nreverse() because it changes the content of original tree list.
42775
42776 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
42777
42778 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
42779 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
42780
42781 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
42782
42783 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
42784 GNU coding standards.
42785
42786 2014-02-13 Jakub Jelinek <jakub@redhat.com>
42787
42788 PR debug/60152
42789 * dwarf2out.c (gen_subprogram_die): Don't call
42790 add_calling_convention_attribute if subr_die is old_die.
42791
42792 2014-02-13 Sharad Singhai <singhai@google.com>
42793
42794 * doc/optinfo.texi: Fix order of nodes.
42795
42796 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
42797
42798 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
42799 operands[2], not operands[3].
42800
42801 2014-02-13 Richard Biener <rguenther@suse.de>
42802
42803 PR bootstrap/59878
42804 * doc/install.texi (ISL): Update recommended version to 0.12.2,
42805 mention the possibility of an in-tree build.
42806 (CLooG): Update recommended version to 0.18.1, mention the
42807 possibility of an in-tree build and clarify that the ISL
42808 bundled with CLooG does not work.
42809
42810 2014-02-13 Jakub Jelinek <jakub@redhat.com>
42811
42812 PR target/43546
42813 * expr.c (compress_float_constant): If x is a hard register,
42814 extend into a pseudo and then move to x.
42815
42816 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
42817
42818 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
42819 caused by bad second argument to warning_at() with -mhotpatch and
42820 nested functions (e.g. with gfortran).
42821
42822 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
42823
42824 * opts.c (option_name): Remove "enabled by default" rider.
42825
42826 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
42827
42828 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
42829
42830 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
42831 Uros Bizjak <ubizjak@gmail.com>
42832
42833 PR target/60151
42834 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
42835 * configure: Regenerated.
42836
42837 2014-02-12 Richard Biener <rguenther@suse.de>
42838
42839 * vec.c (vec_prefix::calculate_allocation): Move as
42840 inline variant to vec.h.
42841 (vec_prefix::calculate_allocation_1): New out-of-line version.
42842 * vec.h (vec_prefix::calculate_allocation_1): Declare.
42843 (vec_prefix::m_has_auto_buf): Rename to ...
42844 (vec_prefix::m_using_auto_storage): ... this.
42845 (vec_prefix::calculate_allocation): Inline the easy cases
42846 and dispatch to calculate_allocation_1 which doesn't need the
42847 prefix address.
42848 (va_heap::reserve): Use gcc_checking_assert.
42849 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
42850 m_using_auto_storage.
42851 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
42852 member and adjust.
42853 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
42854 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
42855 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
42856
42857 2014-02-12 Richard Biener <rguenther@suse.de>
42858
42859 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
42860 when we found a dependence.
42861
42862 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
42863
42864 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
42865 common code...
42866 (maybe_fold_stmt): ... into this new function.
42867 * omp-low.c (lower_omp): Update comment.
42868
42869 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
42870 last use.
42871
42872 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
42873 dereference.
42874
42875 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
42876
42877 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
42878 identifiers in comments.
42879 (cortexa53_extra_costs): Likewise.
42880 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
42881 (cortexa7_extra_costs): Likewise.
42882 (cortexa12_extra_costs): Likewise.
42883 (cortexa15_extra_costs): Likewise.
42884 (v7m_extra_costs): Likewise.
42885
42886 2014-02-12 Richard Biener <rguenther@suse.de>
42887
42888 PR middle-end/60092
42889 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
42890 of posix_memalign being successful.
42891 (lower_stmt): Restrict lowering of posix_memalign to when
42892 -ftree-bit-ccp is enabled.
42893
42894 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
42895
42896 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
42897 arg_loc.
42898 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
42899
42900 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
42901
42902 PR rtl-optimization/60116
42903 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
42904 other_insn once the combination has been validated.
42905
42906 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
42907
42908 PR lto/59468
42909 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
42910 and wrapper.
42911 * ipa-devirt.c: Include demangle.h
42912 (odr_violation_reported): New static variable.
42913 (add_type_duplicate): Update odr_violations.
42914 (maybe_record_node): Add completep parameter; update it.
42915 (record_target_from_binfo): Add COMPLETEP parameter;
42916 update it as needed.
42917 (possible_polymorphic_call_targets_1): Likewise.
42918 (struct polymorphic_call_target_d): Add nonconstruction_targets;
42919 rename FINAL to COMPLETE.
42920 (record_targets_from_bases): Sanity check we found the binfo;
42921 fix COMPLETEP updating.
42922 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
42923 parameter, fix computing of COMPLETEP.
42924 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
42925 at LTO time do demangling.
42926 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
42927 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
42928 parameter.
42929 (gimple_get_virt_method_for_binfo): Likewise.
42930 * gimple-fold.h (gimple_get_virt_method_for_binfo,
42931 gimple_get_virt_method_for_vtable): Update prototypes.
42932
42933 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
42934
42935 PR target/49008
42936 * genautomata.c (add_presence_absence): Fix typo with
42937 {final_}presence_list.
42938
42939 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
42940
42941 PR target/60137
42942 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
42943 for VSX/Altivec vectors that land in GPR registers.
42944
42945 2014-02-11 Richard Henderson <rth@redhat.com>
42946 Jakub Jelinek <jakub@redhat.com>
42947
42948 PR debug/59776
42949 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
42950 around drhs if type conversion to lacc->type is not useless.
42951
42952 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42953
42954 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
42955 tuning struct.
42956 (cortex-a57.cortex-a53): Likewise.
42957 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
42958
42959 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42960
42961 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
42962 arm_restrict_it.
42963
42964 2014-02-11 Renlin Li <Renlin.Li@arm.com>
42965
42966 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
42967 add_options_for_arm_vfp3.
42968
42969 2014-02-11 Jeff Law <law@redhat.com>
42970
42971 PR middle-end/54041
42972 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
42973 object with an undesirable mode.
42974
42975 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
42976
42977 PR libgomp/60107
42978 * config/i386/sol2-9.h: New file.
42979 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
42980 *-*-solaris2.9*): Use it.
42981
42982 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
42983
42984 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
42985 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
42986
42987 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
42988
42989 * config/microblaze/microblaze.c: Extend mcpu version format
42990
42991 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
42992
42993 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
42994
42995 2014-02-10 Richard Henderson <rth@redhat.com>
42996
42997 PR target/59927
42998 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
42999 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
43000 ms-abi vs -mno-accumulate-outgoing-args.
43001 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
43002 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
43003 respect to ms-abi.
43004
43005 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
43006
43007 PR middle-end/60080
43008 * cfgexpand.c (expand_asm_operands): Attach source location to
43009 ASM_INPUT rtx objects.
43010 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
43011
43012 2014-02-10 Nick Clifton <nickc@redhat.com>
43013
43014 * config/mn10300/mn10300.c (popcount): New function.
43015 (mn10300_expand_prologue): Include saved registers in stack usage
43016 count.
43017
43018 2014-02-10 Jeff Law <law@redhat.com>
43019
43020 PR middle-end/52306
43021 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
43022 when changing the SET_DEST of a prior insn to avoid an input reload.
43023
43024 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
43025
43026 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
43027 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
43028 -mcall-openbsd, or -mcall-linux.
43029 (CC1_ENDIAN_BIG_SPEC): Remove.
43030 (CC1_ENDIAN_LITTLE_SPEC): Remove.
43031 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
43032 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
43033 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
43034 and %cc1_endian_default.
43035 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
43036
43037 2014-02-10 Richard Biener <rguenther@suse.de>
43038
43039 PR tree-optimization/60115
43040 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
43041 MEM_REF handling. Properly verify that the accesses are not
43042 out of the objects bound.
43043
43044 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43045
43046 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
43047 coretex to cortex.
43048
43049 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
43050
43051 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
43052 proper constants and fix formatting.
43053 (possible_polymorphic_call_targets): Fix formatting.
43054
43055 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
43056 Ilya Tocar <ilya.tocar@intel.com>
43057
43058 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
43059 (_mm512_loadu_epi32): Renamed into...
43060 (_mm512_loadu_si512): This.
43061 (_mm512_storeu_epi32): Renamed into...
43062 (_mm512_storeu_si512): This.
43063 (_mm512_maskz_ceil_ps): Removed.
43064 (_mm512_maskz_ceil_pd): Ditto.
43065 (_mm512_maskz_floor_ps): Ditto.
43066 (_mm512_maskz_floor_pd): Ditto.
43067 (_mm512_floor_round_ps): Ditto.
43068 (_mm512_floor_round_pd): Ditto.
43069 (_mm512_ceil_round_ps): Ditto.
43070 (_mm512_ceil_round_pd): Ditto.
43071 (_mm512_mask_floor_round_ps): Ditto.
43072 (_mm512_mask_floor_round_pd): Ditto.
43073 (_mm512_mask_ceil_round_ps): Ditto.
43074 (_mm512_mask_ceil_round_pd): Ditto.
43075 (_mm512_maskz_floor_round_ps): Ditto.
43076 (_mm512_maskz_floor_round_pd): Ditto.
43077 (_mm512_maskz_ceil_round_ps): Ditto.
43078 (_mm512_maskz_ceil_round_pd): Ditto.
43079 (_mm512_expand_pd): Ditto.
43080 (_mm512_expand_ps): Ditto.
43081 * config/i386/i386.c (ix86_builtins): Remove
43082 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
43083 (bdesc_args): Ditto.
43084 * config/i386/predicates.md (const1256_operand): New.
43085 (const_1_to_2_operand): Ditto.
43086 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
43087 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
43088 (*avx512pf_gatherpf<mode>sf): Ditto.
43089 (avx512pf_gatherpf<mode>df): Ditto.
43090 (*avx512pf_gatherpf<mode>df_mask): Ditto.
43091 (*avx512pf_gatherpf<mode>df): Ditto.
43092 (avx512pf_scatterpf<mode>sf): Ditto.
43093 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
43094 (*avx512pf_scatterpf<mode>sf): Ditto.
43095 (avx512pf_scatterpf<mode>df): Ditto.
43096 (*avx512pf_scatterpf<mode>df_mask): Ditto.
43097 (*avx512pf_scatterpf<mode>df): Ditto.
43098 (avx512f_expand<mode>): Removed.
43099 (<shift_insn><mode>3<mask_name>): Change predicate type.
43100
43101 2014-02-08 Jakub Jelinek <jakub@redhat.com>
43102
43103 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
43104 not at the end of datarefs vector use ordered_remove to avoid
43105 reordering datarefs vector.
43106
43107 PR c/59984
43108 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
43109 mark local addressable non-static vars as GOVD_PRIVATE
43110 instead of GOVD_LOCAL.
43111 * omp-low.c (lower_omp_for): Move gimple_bind_vars
43112 and BLOCK_VARS of gimple_bind_block to new_stmt rather
43113 than copying them.
43114
43115 PR middle-end/60092
43116 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
43117 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
43118 assume_aligned or alloc_align attributes.
43119 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
43120 arguments. Handle also assume_aligned and alloc_align attributes.
43121 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
43122 calls to functions with assume_aligned or alloc_align attributes.
43123 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
43124
43125 2014-02-08 Terry Guo <terry.guo@arm.com>
43126
43127 * doc/invoke.texi: Document ARM -march=armv7e-m.
43128
43129 2014-02-08 Jakub Jelinek <jakub@redhat.com>
43130
43131 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
43132 flag on __cilkrts_rethrow builtin.
43133
43134 PR ipa/60026
43135 * ipa-cp.c (determine_versionability): Fail at -O0
43136 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
43137 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
43138
43139 Revert:
43140 2014-02-04 Jakub Jelinek <jakub@redhat.com>
43141
43142 PR ipa/60026
43143 * tree-inline.c (copy_forbidden): Fail for
43144 __attribute__((optimize (0))) functions.
43145
43146 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
43147
43148 * varpool.c: Include pointer-set.h.
43149 (varpool_remove_unreferenced_decls): Variables in other partitions
43150 will not be output; be however careful to not lose information
43151 about partitioning.
43152
43153 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
43154
43155 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
43156 lookup in the vtable constructor.
43157
43158 2014-02-07 Jeff Law <law@redhat.com>
43159
43160 PR target/40977
43161 * config/m68k/m68k.md (ashldi_extsi): Turn into a
43162 define_insn_and_split.
43163
43164 * ipa-inline.c (inline_small_functions): Fix typos.
43165
43166 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
43167
43168 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
43169 (s390_can_use_return_insn): Declare.
43170 * config/s390/s390.h (EPILOGUE_USES): Define.
43171 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
43172 instructions.
43173 (s390_chunkify_start): Handle return JUMP_LABELs.
43174 (s390_early_mach): Emit a main_pool instruction on the entry edge.
43175 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
43176 (s390_can_use_return_insn): New functions.
43177 (s390_fix_long_loop_prediction): Handle conditional returns.
43178 (TARGET_SET_UP_BY_PROLOGUE): Define.
43179 * config/s390/s390.md (ANY_RETURN): New code iterator.
43180 (*creturn, *csimple_return, return, simple_return): New patterns.
43181
43182 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
43183
43184 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
43185 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
43186 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
43187 REG_CFA_RESTORE list when deciding not to restore a register.
43188
43189 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
43190
43191 * config/s390/s390.c: Include tree-pass.h and context.h.
43192 (s390_early_mach): New function, split out from...
43193 (s390_emit_prologue): ...here.
43194 (pass_data_s390_early_mach): New pass structure.
43195 (pass_s390_early_mach): New class.
43196 (s390_option_override): Create and register early_mach pass.
43197 Move to end of file.
43198
43199 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
43200
43201 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
43202 to match for the exit block.
43203
43204 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43205
43206 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
43207 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
43208 Reject misaligned operands.
43209
43210 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43211
43212 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
43213
43214 2014-02-07 Richard Biener <rguenther@suse.de>
43215
43216 PR middle-end/60092
43217 * gimple-low.c (lower_builtin_posix_memalign): New function.
43218 (lower_stmt): Call it to lower posix_memalign in a way
43219 to make alignment info accessible.
43220
43221 2014-02-07 Jakub Jelinek <jakub@redhat.com>
43222
43223 PR c++/60082
43224 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
43225 __builtin_setjmp_receiver.
43226
43227 2014-02-07 Richard Biener <rguenther@suse.de>
43228
43229 PR middle-end/60092
43230 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
43231 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
43232 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
43233 Handle BUILT_IN_POSIX_MEMALIGN.
43234 (find_func_clobbers): Likewise.
43235 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
43236 (call_may_clobber_ref_p_1): Likewise.
43237
43238 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
43239
43240 PR ipa/59918
43241 * ipa-devirt.c (record_target_from_binfo): Remove overactive
43242 sanity check.
43243
43244 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
43245
43246 PR ipa/59469
43247 * lto-cgraph.c (lto_output_node): Use
43248 symtab_get_symbol_partitioning_class.
43249 (lto_output_varpool_node): likewise.
43250 (symtab_get_symbol_partitioning_class): Move here from
43251 lto/lto-partition.c
43252 * cgraph.h (symbol_partitioning_class): Likewise.
43253 (symtab_get_symbol_partitioning_class): Declare.
43254
43255 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
43256
43257 * ggc.h (ggc_internal_cleared_alloc): New macro.
43258 * vec.h (vec_safe_copy): Handle memory stats.
43259 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
43260 * target-globals.c (save_target_globals): Likewise.
43261
43262 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
43263
43264 PR target/60077
43265 * expr.c (emit_move_resolve_push): Export; be bit more selective
43266 on when to clear alias set.
43267 * expr.h (emit_move_resolve_push): Declare.
43268 * function.h (struct function): Add tail_call_marked.
43269 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
43270 * config/i386/i386-protos.h (ix86_expand_push): Remove.
43271 * config/i386/i386.md (TImode move expander): De not call
43272 ix86_expand_push.
43273 (FP push expanders): Preserve memory attributes.
43274 * config/i386/sse.md (push<mode>1): Remove.
43275 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
43276 (ix86_expand_push): Remove.
43277 * config/i386/mmx.md (push<mode>1): Remove.
43278
43279 2014-02-06 Jakub Jelinek <jakub@redhat.com>
43280
43281 PR rtl-optimization/60030
43282 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
43283 lopart with paradoxical subreg before shifting it up by hprec.
43284
43285 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43286
43287 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
43288 Remove extra newline at end of file.
43289 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
43290 (arm_issue_rate): Handle cortexa57.
43291 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
43292 (cortex-a57.cortex-a53): Likewise.
43293
43294 2014-02-06 Jakub Jelinek <jakub@redhat.com>
43295
43296 PR target/59575
43297 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
43298 don't record in REG_FRAME_RELATED_EXPR registers not set in that
43299 bitmask.
43300 (arm_expand_prologue): Adjust all callers.
43301 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
43302 info, registers also at the lowest numbered registers side. Use
43303 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
43304 XEXP.
43305
43306 PR debug/59992
43307 * var-tracking.c (adjust_mems): Before adding a SET to
43308 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
43309
43310 2014-02-06 Alan Modra <amodra@gmail.com>
43311
43312 PR target/60032
43313 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
43314 change SDmode to DDmode when lra_in_progress.
43315
43316 2014-02-06 Jakub Jelinek <jakub@redhat.com>
43317
43318 PR middle-end/59150
43319 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
43320 free_data_ref on the dr first, and before goto again also set dr
43321 to the next dr. For simd_lane_access, free old datarefs[i] before
43322 overwriting it. For get_vectype_for_scalar_type failure, don't
43323 free_data_ref if simd_lane_access.
43324
43325 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
43326
43327 PR target/60062
43328 * tree.h (opts_for_fn): New inline function.
43329 (opt_for_fn): Define.
43330 * config/i386/i386.c (ix86_function_regparm): Use
43331 opt_for_fn (decl, optimize) instead of optimize.
43332
43333 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
43334
43335 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
43336 for SYMBOL_REF in large memory model.
43337
43338 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43339
43340 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
43341 and crypto support.
43342 (cortex-a57): Likewise.
43343 (cortex-a57.cortex-a53): Likewise.
43344
43345 2014-02-06 Yury Gribov <y.gribov@samsung.com>
43346 Kugan Vivekanandarajah <kuganv@linaro.org>
43347
43348 * config/arm/arm.c (arm_vector_alignment_reachable): Check
43349 unaligned_access.
43350 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
43351
43352 2014-02-06 Richard Biener <rguenther@suse.de>
43353
43354 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
43355 set_loop_copy and initialize_original_copy_tables.
43356
43357 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
43358
43359 * config/aarch64/aarch64-simd.md
43360 (aarch64_ashr_simddi): Change QI to SI.
43361
43362 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
43363 Jakub Jelinek <jakub@redhat.com>
43364
43365 PR middle-end/60013
43366 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
43367 of the dataflow.
43368
43369 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43370
43371 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
43372 CODE_FOR_altivec_vpku[hw]um to
43373 CODE_FOR_altivec_vpku[hw]um_direct.
43374 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
43375 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
43376 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
43377 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
43378
43379 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43380
43381 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
43382 generation for -maltivec=be.
43383 (altivec_vsumsws): Simplify redundant test.
43384
43385 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43386
43387 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
43388 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
43389 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
43390 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
43391 gen_altivec_vpkuwum.
43392 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
43393 BYTES_BIG_ENDIAN.
43394 (altivec_vpks<VI_char>ss): Likewise.
43395 (altivec_vpks<VI_char>us): Likewise.
43396 (altivec_vpku<VI_char>us): Likewise.
43397 (altivec_vpku<VI_char>um): Likewise.
43398 (altivec_vpku<VI_char>um_direct): New (copy of
43399 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
43400 internal use).
43401 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
43402 target is little endian and -maltivec=be is not specified.
43403 (*altivec_vupkhs<VU_char>_direct): New (copy of
43404 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
43405 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
43406 target is little endian and -maltivec=be is not specified.
43407 (*altivec_vupkls<VU_char>_direct): New (copy of
43408 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
43409 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
43410 little endian and -maltivec=be is not specified.
43411 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
43412 little endian and -maltivec=be is not specified.
43413
43414 2014-02-05 Richard Henderson <rth@redhat.com>
43415
43416 PR debug/52727
43417 * combine-stack-adj.c: Revert r206943.
43418 * sched-int.h (struct deps_desc): Add last_args_size.
43419 * sched-deps.c (init_deps): Initialize it.
43420 (sched_analyze_insn): Add OUTPUT dependencies between insns that
43421 contain REG_ARGS_SIZE notes.
43422
43423 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
43424
43425 * lto-cgraph.c (asm_nodes_output): Make global.
43426 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
43427 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
43428 (driver_handle_option): Handle OPT_fwpa.
43429
43430 2014-02-05 Jakub Jelinek <jakub@redhat.com>
43431
43432 PR ipa/59947
43433 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
43434 a comment typo and formatting issue. If odr_hash hasn't been
43435 created, return vNULL and set *completep to false.
43436
43437 PR middle-end/57499
43438 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
43439 bb with no successors.
43440
43441 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
43442
43443 PR target/59718
43444 * doc/invoke.texi (-march): Clarify documentation for ARM.
43445 (-mtune): Likewise.
43446 (-mcpu): Likewise.
43447
43448 2014-02-05 Richard Biener <rguenther@suse.de>
43449
43450 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
43451 when not vectorizing because of too many alias checks.
43452 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
43453 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
43454
43455 2014-02-05 Nick Clifton <nickc@redhat.com>
43456
43457 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
43458 accept extended registers in any mode when compiling for the MN10300.
43459
43460 2014-02-05 Yury Gribov <y.gribov@samsung.com>
43461
43462 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
43463 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
43464 sanitization attributes.
43465 (can_inline_edge_p): Likewise.
43466 (sanitize_attrs_match_for_inline_p): New function.
43467
43468 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
43469
43470 * ipa-prop.c (detect_type_change): Shor circuit testing of
43471 type changes on THIS pointer.
43472
43473 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
43474
43475 PR target/59777
43476 * config/pa/pa.c (legitimize_tls_address): Return original address
43477 if not passed a SYMBOL_REF rtx.
43478 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
43479 addresses.
43480 (pa_emit_move_sequence): Simplify TLS source operands.
43481 (pa_legitimate_constant_p): Reject all TLS constants.
43482 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
43483 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
43484
43485 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
43486
43487 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
43488 groups when we know they are controlled by LTO.
43489 * varasm.c (default_binds_local_p_1): If object is in other partition,
43490 it will be resolved locally.
43491
43492 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
43493
43494 * config/host-linux.c (linux_gt_pch_use_address): Don't
43495 use SSIZE_MAX because it is not always defined.
43496
43497 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
43498
43499 PR bootstrap/59913
43500 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
43501 threshold for pseudo splitting.
43502 (update_ebb_live_info): Process call argument hard registers and
43503 hard registers from insn definition too.
43504 (max_small_class_regs_num): New constant.
43505 (inherit_in_ebb): Update live hard regs through EBBs. Update
43506 reloads_num only for small register classes. Don't split for
43507 outputs of jumps.
43508
43509 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
43510
43511 PR ipa/60058
43512 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
43513 is non-null.
43514
43515 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
43516
43517 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
43518 visibility is safe.
43519
43520 2014-02-04 Marek Polacek <polacek@redhat.com>
43521
43522 * gdbinit.in (pel): Define.
43523
43524 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
43525
43526 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
43527 behavior.
43528
43529 2014-02-04 Richard Biener <rguenther@suse.de>
43530
43531 PR lto/59723
43532 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
43533 in function context local.
43534 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
43535 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
43536 similar to LTO_imported_decl_ref.
43537
43538 2014-02-04 Jakub Jelinek <jakub@redhat.com>
43539
43540 PR tree-optimization/60002
43541 * cgraphclones.c (build_function_decl_skip_args): Clear
43542 DECL_LANG_SPECIFIC.
43543
43544 PR tree-optimization/60023
43545 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
43546 false to gsi_replace.
43547 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
43548 has been in some EH region and vec_stmt could throw, add
43549 vec_stmt into the same EH region.
43550 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
43551 has no lhs, ignore it.
43552 * internal-fn.c (expand_MASK_LOAD): Likewise.
43553
43554 PR ipa/60026
43555 * tree-inline.c (copy_forbidden): Fail for
43556 __attribute__((optimize (0))) functions.
43557
43558 PR other/58712
43559 * omp-low.c (simd_clone_struct_copy): If from->inbranch
43560 is set, copy one less argument.
43561 (expand_simd_clones): Don't subtract clone_info->inbranch
43562 from simd_clone_struct_alloc argument.
43563
43564 PR rtl-optimization/57915
43565 * recog.c (simplify_while_replacing): If all unary/binary/relational
43566 operation arguments are constant, attempt to simplify those.
43567
43568 PR middle-end/59261
43569 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
43570 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
43571
43572 2014-02-04 Richard Biener <rguenther@suse.de>
43573
43574 PR tree-optimization/60012
43575 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
43576 TBAA disambiguation to all DDRs.
43577
43578 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
43579
43580 PR target/59788
43581 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
43582 (LINK_SPEC): Use it for -shared, -shared-libgcc.
43583
43584 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
43585
43586 PR ipa/59882
43587 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
43588
43589 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
43590
43591 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
43592 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
43593
43594 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
43595
43596 PR ipa/59831
43597 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
43598 to figure out targets of polymorphic calls with known decl.
43599 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
43600 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
43601 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
43602 (get_polymorphic_call_info): ... here.
43603 (get_polymorphic_call_info_from_invariant): New function.
43604
43605 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
43606
43607 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
43608 lookup via vtable pointer; check for type consistency
43609 and turn inconsitent facts into UNREACHABLE.
43610 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
43611 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
43612 type inconsistent querries; return UNREACHABLE instead.
43613
43614 2014-02-03 Richard Henderson <rth@twiddle.net>
43615
43616 PR tree-opt/59924
43617 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
43618 already processed this node.
43619 (normalize_one_pred_1): Pass along mark_set.
43620 (normalize_one_pred): Create and destroy a pointer_set_t.
43621 (normalize_one_pred_chain): Likewise.
43622
43623 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
43624
43625 PR gcov-profile/58602
43626 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
43627
43628 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
43629
43630 PR ipa/59831
43631 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
43632 -fno-devirtualize; try to devirtualize by the knowledge of
43633 virtual table pointer given by aggregate propagation.
43634 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
43635 (ipa_print_node_jump_functions): Dump also offset that
43636 is relevant for polymorphic calls.
43637 (determine_known_aggregate_parts): Add arg_type parameter; use it
43638 instead of determining the type from pointer type.
43639 (ipa_compute_jump_functions_for_edge): Update call of
43640 determine_known_aggregate_parts.
43641 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
43642 (gimple_get_virt_method_for_binfo): ... here; simplify using
43643 vtable_pointer_value_to_vtable.
43644 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
43645 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
43646 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
43647 (vtable_pointer_value_to_vtable): Break out from ...; handle also
43648 POINTER_PLUS_EXPR.
43649 (vtable_pointer_value_to_binfo): ... here.
43650 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
43651
43652 2014-02-03 Teresa Johnson <tejohnson@google.com>
43653
43654 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
43655 redef of outer loop index variable.
43656
43657 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
43658
43659 PR c++/53017
43660 PR c++/59211
43661 * doc/extend.texi (Function Attributes): Typo.
43662
43663 2014-02-03 Cong Hou <congh@google.com>
43664
43665 PR tree-optimization/60000
43666 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
43667 if the vectorized statement is a store. A store statement can only
43668 appear at the end of pattern statements.
43669
43670 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
43671
43672 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
43673 (ix86_option_override_internal): Default long double to 64-bit for
43674 32-bit Bionic and to 128-bit for 64-bit Bionic.
43675
43676 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
43677 TARGET_LONG_DOUBLE_128 is true.
43678 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
43679
43680 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
43681 (mlong-double-64): Negate -mlong-double-128.
43682 (mlong-double-128): New option.
43683
43684 * config/i386/i386-c.c (ix86_target_macros): Define
43685 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
43686
43687 * doc/invoke.texi: Document -mlong-double-128.
43688
43689 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
43690
43691 PR rtl-optimization/60024
43692 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
43693
43694 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
43695
43696 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
43697
43698 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
43699
43700 PR rtl-optimization/57662
43701 * sel-sched.c (code_motion_path_driver): Do not mark already not
43702 existing blocks in the visiting bitmap.
43703
43704 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
43705
43706 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
43707 on the insn being emitted.
43708
43709 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
43710 Will Deacon <will.deacon@arm.com>
43711
43712 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
43713
43714 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43715
43716 * config/arm/arm-tables.opt: Regenerate.
43717
43718 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43719
43720 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
43721 for vector types other than V16QImode.
43722 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
43723 define_expand, and call altivec_expand_vec_perm_le when producing
43724 code with little endian element order.
43725 (*altivec_vperm_<mode>_internal): New insn having previous
43726 behavior of altivec_vperm_<mode>.
43727 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
43728 altivec_expand_vec_perm_le when producing code with little endian
43729 element order.
43730 (*altivec_vperm_<mode>_uns_internal): New insn having previous
43731 behavior of altivec_vperm_<mode>_uns.
43732
43733 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43734
43735 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
43736 (altivec_vsumsws): Add handling for -maltivec=be with a little
43737 endian target.
43738 (altivec_vsumsws_direct): New.
43739 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
43740 gen_altivec_vsumsws.
43741
43742 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
43743
43744 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
43745 vtable_pointer_value_to_binfo): New functions.
43746 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
43747 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
43748
43749 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
43750
43751 * config/nios2/nios2.md (load_got_register): Initialize GOT
43752 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
43753 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
43754
43755 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
43756
43757 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
43758 preserverd by passthrough, do not propagate the type.
43759
43760 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
43761
43762 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
43763 (mips_atomic_assign_expand_fenv): New function.
43764 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
43765
43766 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
43767
43768 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
43769 (__builtin_mips_set_fcsr): Likewise.
43770 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
43771 MIPS_USI_FTYPE_VOID.
43772 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
43773 (mips16_expand_set_fcsr): Likewise.
43774 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
43775 (mips16_set_fcsr_stub): Likewise.
43776 (mips16_get_fcsr_one_only_stub): New class.
43777 (mips16_set_fcsr_one_only_stub): Likewise.
43778 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
43779 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
43780 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
43781 (hard_float): New availability predicate.
43782 (mips_builtins): Add get_fcsr and set_fcsr.
43783 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
43784 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
43785 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
43786 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
43787 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
43788 patterns.
43789
43790 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
43791
43792 * config/mips/mips.c (mips_one_only_stub): New class.
43793 (mips_need_mips16_rdhwr_p): Replace with...
43794 (mips16_rdhwr_stub): ...this new variable.
43795 (mips16_stub_call_address): New function.
43796 (mips16_rdhwr_one_only_stub): New class.
43797 (mips_expand_thread_pointer): Use mips16_stub_call_address.
43798 (mips_output_mips16_rdhwr): Delete.
43799 (mips_finish_stub): New function.
43800 (mips_code_end): Use it to handle rdhwr stubs.
43801
43802 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
43803
43804 PR target/60017
43805 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
43806 when calculating size of integer atomic types.
43807
43808 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
43809
43810 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
43811
43812 2014-02-01 Jakub Jelinek <jakub@redhat.com>
43813
43814 PR tree-optimization/60003
43815 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
43816 * profile.c (branch_prob): Use gimple_call_builtin_p
43817 to check for BUILT_IN_SETJMP_RECEIVER.
43818 * tree-inline.c (copy_bb): Call notice_special_calls.
43819
43820 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
43821
43822 PR bootstrap/59985
43823 * lra-constraints.c (process_alt_operands): Update reload_sum only
43824 on the first pass.
43825
43826 2014-01-31 Richard Henderson <rth@redhat.com>
43827
43828 PR middle-end/60004
43829 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
43830 until after else_eh is processed.
43831
43832 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
43833
43834 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
43835 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
43836 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
43837 in smmintrin.h, remove them.
43838 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
43839 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
43840 * config/i386/i386.md (ROUND_SAE): Fix value.
43841 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
43842 (const48_operand): New.
43843 * config/i386/subst.md (round), (round_expand): Use
43844 const_4_or_8_to_11_operand.
43845 (round_saeonly), (round_saeonly_expand): Use const48_operand.
43846
43847 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
43848
43849 * config/i386/constraints.md (Yk): Swap meaning with k.
43850 * config/i386/i386.md (movhi_internal): Change Yk to k.
43851 (movqi_internal): Ditto.
43852 (*k<logic><mode>): Ditto.
43853 (*andhi_1): Ditto.
43854 (*andqi_1): Ditto.
43855 (kandn<mode>): Ditto.
43856 (*<code>hi_1): Ditto.
43857 (*<code>qi_1): Ditto.
43858 (kxnor<mode>): Ditto.
43859 (kortestzhi): Ditto.
43860 (kortestchi): Ditto.
43861 (kunpckhi): Ditto.
43862 (*one_cmplhi2_1): Ditto.
43863 (*one_cmplqi2_1): Ditto.
43864 * config/i386/sse.md (): Change k to Yk.
43865 (avx512f_load<mode>_mask): Ditto.
43866 (avx512f_blendm<mode>): Ditto.
43867 (avx512f_store<mode>_mask): Ditto.
43868 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
43869 (avx512f_storedqu<mode>_mask): Ditto.
43870 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
43871 Ditto.
43872 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
43873 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
43874 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
43875 (avx512f_maskcmp<mode>3): Ditto.
43876 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
43877 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
43878 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
43879 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
43880 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
43881 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
43882 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
43883 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
43884 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
43885 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
43886 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
43887 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
43888 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
43889 (vec_extract_lo_<mode>_maskm): Ditto.
43890 (vec_extract_hi_<mode>_maskm): Ditto.
43891 (avx512f_vternlog<mode>_mask): Ditto.
43892 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
43893 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
43894 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
43895 (avx512f_<code>v8div16qi2_mask): Ditto.
43896 (avx512f_<code>v8div16qi2_mask_store): Ditto.
43897 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
43898 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
43899 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
43900 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
43901 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
43902 (*avx512pf_gatherpf<mode>df_mask): Ditto.
43903 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
43904 (*avx512pf_scatterpf<mode>df_mask): Ditto.
43905 (avx512cd_maskb_vec_dupv8di): Ditto.
43906 (avx512cd_maskw_vec_dupv16si): Ditto.
43907 (avx512f_vpermi2var<mode>3_maskz): Ditto.
43908 (avx512f_vpermi2var<mode>3_mask): Ditto.
43909 (avx512f_vpermi2var<mode>3_mask): Ditto.
43910 (avx512f_vpermt2var<mode>3_maskz): Ditto.
43911 (*avx512f_gathersi<mode>): Ditto.
43912 (*avx512f_gathersi<mode>_2): Ditto.
43913 (*avx512f_gatherdi<mode>): Ditto.
43914 (*avx512f_gatherdi<mode>_2): Ditto.
43915 (*avx512f_scattersi<mode>): Ditto.
43916 (*avx512f_scatterdi<mode>): Ditto.
43917 (avx512f_compress<mode>_mask): Ditto.
43918 (avx512f_compressstore<mode>_mask): Ditto.
43919 (avx512f_expand<mode>_mask): Ditto.
43920 * config/i386/subst.md (mask): Change k to Yk.
43921 (mask_scalar_merge): Ditto.
43922 (sd): Ditto.
43923
43924 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
43925
43926 * doc/extend.texi (Vector Extensions): Document ?: in C++.
43927
43928 2014-01-31 Richard Biener <rguenther@suse.de>
43929
43930 PR middle-end/59990
43931 * builtins.c (fold_builtin_memory_op): Make sure to not
43932 use a floating-point mode or a boolean or enumeral type for
43933 the copy operation.
43934
43935 2014-01-30 DJ Delorie <dj@redhat.com>
43936
43937 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
43938 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
43939 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
43940 whenever main() has an epilogue.
43941
43942 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43943
43944 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
43945 unused variable "field".
43946 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
43947 (vsx_mergeh_<mode>): Likewise.
43948 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
43949 (altivec_vmrghh): Likewise.
43950 (altivec_vmrghw): Likewise.
43951 (altivec_vmrglb): Likewise.
43952 (altivec_vmrglh): Likewise.
43953 (altivec_vmrglw): Likewise.
43954 (altivec_vspltb): Add missing uses.
43955 (altivec_vsplth): Likewise.
43956 (altivec_vspltw): Likewise.
43957 (altivec_vspltsf): Likewise.
43958
43959 2014-01-30 Jakub Jelinek <jakub@redhat.com>
43960
43961 PR target/59923
43962 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
43963 frame related instructions.
43964
43965 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
43966
43967 PR rtl-optimization/59959
43968 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
43969 any reload of register whose subreg is invalid.
43970
43971 2014-01-30 Jakub Jelinek <jakub@redhat.com>
43972
43973 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
43974 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
43975 Add missing return type - void.
43976
43977 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43978
43979 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
43980 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
43981 remove element index adjustment for endian (now handled in vsx.md
43982 and altivec.md).
43983 (altivec_expand_vec_perm_const): Use
43984 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
43985 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
43986 (vsx_xxspltw_<mode>): Adjust element index for little endian.
43987 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
43988 define_expand and a new define_insn *altivec_vspltb_internal;
43989 adjust for -maltivec=be on a little endian target.
43990 (altivec_vspltb_direct): New.
43991 (altivec_vsplth): Divide into a define_expand and a new
43992 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
43993 little endian target.
43994 (altivec_vsplth_direct): New.
43995 (altivec_vspltw): Divide into a define_expand and a new
43996 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
43997 little endian target.
43998 (altivec_vspltw_direct): New.
43999 (altivec_vspltsf): Divide into a define_expand and a new
44000 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
44001 a little endian target.
44002
44003 2014-01-30 Richard Biener <rguenther@suse.de>
44004
44005 PR tree-optimization/59993
44006 * tree-ssa-forwprop.c (associate_pointerplus): Check we
44007 can propagate form the earlier stmt and avoid the transform
44008 when the intermediate result is needed.
44009
44010 2014-01-30 Alangi Derick <alangiderick@gmail.com>
44011
44012 * README.Portability: Fix typo.
44013
44014 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
44015
44016 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
44017 comparison_operator with ordered_comparison_operator.
44018
44019 2014-01-30 Nick Clifton <nickc@redhat.com>
44020
44021 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
44022 Rename to mn10300_store_multiple_regs.
44023 * config/mn10300/mn10300.c: Likewise.
44024 * config/mn10300/mn10300.md (store_movm): Fix typo: call
44025 store_multiple_regs.
44026 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
44027 Call mn10300_store_multiple_regs.
44028
44029 2014-01-30 Nick Clifton <nickc@redhat.com>
44030 DJ Delorie <dj@redhat.com>
44031
44032 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
44033 %fp 2 to keep registers after it properly word-aligned.
44034 (rl78_alloc_physical_registers_umul): Handle the case where both
44035 input operands are the same.
44036
44037 2014-01-30 Richard Biener <rguenther@suse.de>
44038
44039 PR tree-optimization/59903
44040 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
44041 check properly.
44042
44043 2014-01-30 Jason Merrill <jason@redhat.com>
44044
44045 PR c++/59633
44046 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
44047
44048 PR c++/59645
44049 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
44050
44051 2014-01-30 Richard Biener <rguenther@suse.de>
44052
44053 PR tree-optimization/59951
44054 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
44055
44056 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
44057
44058 PR target/59784
44059 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
44060 SFmode to DFmode case.
44061
44062 2014-01-29 DJ Delorie <dj@redhat.com>
44063
44064 * config/msp430/msp430.opt (-minrt): New.
44065 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
44066 if -minrt given.
44067 (ENDFILE_SPEC): Likewise.
44068
44069 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
44070
44071 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
44072 (estimate_function_body_sizes): Use it.
44073
44074 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
44075
44076 PR c++/58561
44077 * dwarf2out.c (is_cxx_auto): New.
44078 (is_base_type): Use it.
44079 (gen_type_die_with_usage): Likewise.
44080
44081 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44082
44083 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
44084 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
44085 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
44086 -maltivec=be with LE targets.
44087 (vsx_mergeh_<mode>): Likewise.
44088 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
44089 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
44090 (altivec_vmrghb): Replace with define_expand and new
44091 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
44092 (altivec_vmrghb_direct): New define_insn.
44093 (altivec_vmrghh): Replace with define_expand and new
44094 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
44095 (altivec_vmrghh_direct): New define_insn.
44096 (altivec_vmrghw): Replace with define_expand and new
44097 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
44098 (altivec_vmrghw_direct): New define_insn.
44099 (*altivec_vmrghsf): Adjust for endianness.
44100 (altivec_vmrglb): Replace with define_expand and new
44101 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
44102 (altivec_vmrglb_direct): New define_insn.
44103 (altivec_vmrglh): Replace with define_expand and new
44104 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
44105 (altivec_vmrglh_direct): New define_insn.
44106 (altivec_vmrglw): Replace with define_expand and new
44107 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
44108 (altivec_vmrglw_direct): New define_insn.
44109 (*altivec_vmrglsf): Adjust for endianness.
44110 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
44111 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
44112 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
44113 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
44114 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
44115 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
44116 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
44117 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
44118
44119 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
44120
44121 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
44122 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
44123 whitespace.
44124
44125 2014-01-29 Richard Biener <rguenther@suse.de>
44126
44127 PR tree-optimization/58742
44128 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
44129 associate_pointerplus_align.
44130 (associate_pointerplus_diff): New function.
44131 (associate_pointerplus): Likewise. Call associate_pointerplus_align
44132 and associate_pointerplus_diff.
44133
44134 2014-01-29 Richard Biener <rguenther@suse.de>
44135
44136 * lto-streamer.h (LTO_major_version): Bump to 3.
44137 (LTO_minor_version): Reset to 0.
44138
44139 2014-01-29 Renlin Li <Renlin.Li@arm.com>
44140
44141 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
44142 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
44143 (arm_file_start): Generate correct asm header for armv7ve.
44144 * config/arm/bpabi.h: Add multilib support for armv7ve.
44145 * config/arm/driver-arm.c: Change the architectures of cortex-a7
44146 and cortex-a15 to armv7ve.
44147 * config/arm/t-aprofile: Add multilib support for armv7ve.
44148 * doc/invoke.texi: Document -march=armv7ve.
44149
44150 2014-01-29 Richard Biener <rguenther@suse.de>
44151
44152 PR tree-optimization/58742
44153 * tree-ssa-forwprop.c (associate_plusminus): Return true
44154 if we changed sth, defer EH cleanup to ...
44155 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
44156 (simplify_mult): New function.
44157
44158 2014-01-29 Jakub Jelinek <jakub@redhat.com>
44159
44160 PR middle-end/59917
44161 PR tree-optimization/59920
44162 * tree.c (build_common_builtin_nodes): Remove
44163 __builtin_setjmp_dispatcher initialization.
44164 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
44165 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
44166 instead of gsi_after_labels + manually skipping debug stmts.
44167 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
44168 ignore bbs with IFN_ABNORMAL_DISPATCHER.
44169 * tree-inline.c (copy_edges_for_bb): Remove
44170 can_make_abnormal_goto argument, instead add abnormal_goto_dest
44171 argument. Ignore computed_goto_p stmts. Don't call
44172 make_abnormal_goto_edges. If a call might need abnormal edges
44173 for non-local gotos, see if it already has an edge to
44174 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
44175 with true argument, don't do anything then, otherwise add
44176 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
44177 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
44178 caller.
44179 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
44180 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
44181 (lower_stmt): Don't set data->calls_builtin_setjmp.
44182 (lower_builtin_setjmp): Adjust comment.
44183 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
44184 * tree-cfg.c (found_computed_goto): Remove.
44185 (factor_computed_gotos): Remove.
44186 (make_goto_expr_edges): Return bool, true for computed gotos.
44187 Don't call make_abnormal_goto_edges.
44188 (build_gimple_cfg): Don't set found_computed_goto, don't call
44189 factor_computed_gotos.
44190 (computed_goto_p): No longer static.
44191 (make_blocks): Don't set found_computed_goto.
44192 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
44193 (make_edges): If make_goto_expr_edges returns true, push bb
44194 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
44195 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
44196 vector. Record mapping between bbs and OpenMP regions if there
44197 are any, adjust make_gimple_omp_edges caller. Call
44198 handle_abnormal_edges.
44199 (make_abnormal_goto_edges): Remove.
44200 * tree-cfg.h (make_abnormal_goto_edges): Remove.
44201 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
44202 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
44203 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
44204 * internal-fn.def (ABNORMAL_DISPATCHER): New.
44205 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
44206 filling *region also set *region_idx to (*region)->entry->index.
44207
44208 PR other/58712
44209 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
44210 For REGs set ORIGINAL_REGNO.
44211
44212 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
44213
44214 * doc/md.texi: Mention that a target shouldn't implement
44215 vec_widen_(s|u)mul_even/odd pair if it is less efficient
44216 than hi/lo pair.
44217
44218 2014-01-29 Jakub Jelinek <jakub@redhat.com>
44219
44220 PR tree-optimization/59594
44221 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
44222 a copy of the datarefs vector rather than the vector itself.
44223
44224 2014-01-28 Jason Merrill <jason@redhat.com>
44225
44226 PR c++/53756
44227 * dwarf2out.c (auto_die): New static.
44228 (gen_type_die_with_usage): Handle C++1y 'auto'.
44229 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
44230 on definition.
44231
44232 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
44233
44234 PR target/59672
44235 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
44236 (SPEC_X32): Likewise.
44237 (SPEC_64): Likewise.
44238 * config/i386/i386.c (ix86_option_override_internal): Turn off
44239 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
44240 for TARGET_16BIT.
44241 (x86_file_start): Output .code16gcc for TARGET_16BIT.
44242 * config/i386/i386.h (TARGET_16BIT): New macro.
44243 (TARGET_16BIT_P): Likewise.
44244 * config/i386/i386.opt: Add m16.
44245 * doc/invoke.texi: Document -m16.
44246
44247 2014-01-28 Jakub Jelinek <jakub@redhat.com>
44248
44249 PR preprocessor/59935
44250 * input.c (location_get_source_line): Bail out on when line number
44251 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
44252
44253 2014-01-28 Richard Biener <rguenther@suse.de>
44254
44255 PR tree-optimization/58742
44256 * tree-ssa-forwprop.c (associate_plusminus): Handle
44257 pointer subtraction of the form (T)(P + A) - (T)P.
44258
44259 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44260
44261 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
44262 at const_int_cost.
44263
44264 2014-01-28 Richard Biener <rguenther@suse.de>
44265
44266 Revert
44267 2014-01-28 Richard Biener <rguenther@suse.de>
44268
44269 PR rtl-optimization/45364
44270 PR rtl-optimization/59890
44271 * var-tracking.c (local_get_addr_clear_given_value): Handle
44272 already cleared slot.
44273 (val_reset): Handle not allocated local_get_addr_cache.
44274 (vt_find_locations): Use post-order on the inverted CFG.
44275
44276 2014-01-28 Richard Biener <rguenther@suse.de>
44277
44278 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
44279
44280 2014-01-28 Richard Biener <rguenther@suse.de>
44281
44282 PR rtl-optimization/45364
44283 PR rtl-optimization/59890
44284 * var-tracking.c (local_get_addr_clear_given_value): Handle
44285 already cleared slot.
44286 (val_reset): Handle not allocated local_get_addr_cache.
44287 (vt_find_locations): Use post-order on the inverted CFG.
44288
44289 2014-01-28 Alan Modra <amodra@gmail.com>
44290
44291 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
44292 * configure.ac <recursive call for build != host>: Define
44293 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
44294 and LD_FOR_BUILD too.
44295 * configure: Regenerate.
44296
44297 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
44298
44299 * config/i386/i386.c (get_builtin_code_for_version): Separate
44300 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
44301 Broadwell from Haswell.
44302
44303 2014-01-27 Steve Ellcey <sellcey@mips.com>
44304
44305 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
44306 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
44307 * config/mips/mips.c (mips_option_override): Change setting
44308 of TARGET_DSP.
44309 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
44310 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
44311 Change from Mask to Var.
44312
44313 2014-01-27 Jeff Law <law@redhat.com>
44314
44315 * ipa-inline.c (inline_small_functions): Fix typo.
44316
44317 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
44318
44319 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
44320 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
44321 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
44322 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
44323 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
44324 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
44325 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
44326 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
44327 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
44328 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
44329 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
44330 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
44331 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
44332 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
44333 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
44334 (_mm512_storeu_epi64): Ditto.
44335 (_mm512_cmpge_epi32_mask): Ditto.
44336 (_mm512_cmpge_epu32_mask): Ditto.
44337 (_mm512_cmpge_epi64_mask): Ditto.
44338 (_mm512_cmpge_epu64_mask): Ditto.
44339 (_mm512_cmple_epi32_mask): Ditto.
44340 (_mm512_cmple_epu32_mask): Ditto.
44341 (_mm512_cmple_epi64_mask): Ditto.
44342 (_mm512_cmple_epu64_mask): Ditto.
44343 (_mm512_cmplt_epi32_mask): Ditto.
44344 (_mm512_cmplt_epu32_mask): Ditto.
44345 (_mm512_cmplt_epi64_mask): Ditto.
44346 (_mm512_cmplt_epu64_mask): Ditto.
44347 (_mm512_cmpneq_epi32_mask): Ditto.
44348 (_mm512_cmpneq_epu32_mask): Ditto.
44349 (_mm512_cmpneq_epi64_mask): Ditto.
44350 (_mm512_cmpneq_epu64_mask): Ditto.
44351 (_mm512_expand_pd): Ditto.
44352 (_mm512_expand_ps): Ditto.
44353 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
44354 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
44355 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
44356 * config/i386/i386.c (ix86_builtins): Add
44357 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
44358 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
44359 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
44360 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
44361 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
44362 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
44363 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
44364 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
44365 IX86_BUILTIN_PMOVUSQW512_MEM.
44366 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
44367 __builtin_ia32_pmovsqd512mem_mask,
44368 __builtin_ia32_pmovqd512mem_mask,
44369 __builtin_ia32_pmovusqw512mem_mask,
44370 __builtin_ia32_pmovsqw512mem_mask,
44371 __builtin_ia32_pmovqw512mem_mask,
44372 __builtin_ia32_pmovusdw512mem_mask,
44373 __builtin_ia32_pmovsdw512mem_mask,
44374 __builtin_ia32_pmovdw512mem_mask,
44375 __builtin_ia32_pmovqb512mem_mask,
44376 __builtin_ia32_pmovusqb512mem_mask,
44377 __builtin_ia32_pmovsqb512mem_mask,
44378 __builtin_ia32_pmovusdb512mem_mask,
44379 __builtin_ia32_pmovsdb512mem_mask,
44380 __builtin_ia32_pmovdb512mem_mask.
44381 (bdesc_args): Add __builtin_ia32_expanddf512,
44382 __builtin_ia32_expandsf512.
44383 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
44384 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
44385 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
44386 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
44387 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
44388 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
44389 (avx512f_<code>v8div16qi2_mask_store): This.
44390 (avx512f_expand<mode>): New.
44391
44392 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
44393
44394 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
44395 New.
44396 (_mm512_mask_prefetch_i64gather_pd): Ditto.
44397 (_mm512_prefetch_i32scatter_pd): Ditto.
44398 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
44399 (_mm512_prefetch_i64scatter_pd): Ditto.
44400 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
44401 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
44402 (_mm512_mask_prefetch_i64gather_ps): Ditto.
44403 (_mm512_prefetch_i32scatter_ps): Ditto.
44404 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
44405 (_mm512_prefetch_i64scatter_ps): Ditto.
44406 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
44407 * config/i386/i386-builtin-types.def: Define
44408 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
44409 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
44410 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
44411 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
44412 IX86_BUILTIN_SCATTERPFQPD.
44413 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
44414 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
44415 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
44416 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
44417 __builtin_ia32_scatterpfqps.
44418 (ix86_expand_builtin): Expand new built-ins.
44419 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
44420 fix memory access data type.
44421 (*avx512pf_gatherpf<mode>_mask): Ditto.
44422 (*avx512pf_gatherpf<mode>): Ditto.
44423 (avx512pf_scatterpf<mode>): Ditto.
44424 (*avx512pf_scatterpf<mode>_mask): Ditto.
44425 (*avx512pf_scatterpf<mode>): Ditto.
44426 (GATHER_SCATTER_SF_MEM_MODE): New.
44427 (avx512pf_gatherpf<mode>df): Ditto.
44428 (*avx512pf_gatherpf<mode>df_mask): Ditto.
44429 (*avx512pf_scatterpf<mode>df): Ditto.
44430
44431 2014-01-27 Jakub Jelinek <jakub@redhat.com>
44432
44433 PR bootstrap/59934
44434 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
44435 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
44436 reached.
44437
44438 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
44439
44440 * common/config/arm/arm-common.c
44441 (arm_rewrite_mcpu): Handle multiple names.
44442 * config/arm/arm.h
44443 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
44444
44445 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
44446
44447 * gimple-builder.h (create_gimple_tmp): Delete.
44448
44449 2014-01-27 Christian Bruel <christian.bruel@st.com>
44450
44451 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
44452 words comparisons.
44453
44454 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
44455
44456 * config/pa/pa.md (call): Generate indirect long calls to non-local
44457 functions when outputing 32-bit code.
44458 (call_value): Likewise except for special call to buggy powf function.
44459
44460 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
44461 portable runtime and PIC indirect calls.
44462 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
44463 and PIC call sequences. Use ldo instead of blr to set return register
44464 in PIC call sequence.
44465
44466 2014-01-25 Walter Lee <walt@tilera.com>
44467
44468 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
44469 avoid clobbering a live register.
44470
44471 2014-01-25 Walter Lee <walt@tilera.com>
44472
44473 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
44474 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
44475 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
44476 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
44477
44478 2014-01-25 Walter Lee <walt@tilera.com>
44479
44480 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
44481 arguments on even registers.
44482 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
44483 STACK_BOUNDARY.
44484 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
44485 (BIGGEST_ALIGNMENT): Ditto.
44486 (BIGGEST_FIELD_ALIGNMENT): Ditto.
44487
44488 2014-01-25 Walter Lee <walt@tilera.com>
44489
44490 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
44491 insns before bundling.
44492 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
44493
44494 2014-01-25 Walter Lee <walt@tilera.com>
44495
44496 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
44497 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
44498 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
44499
44500 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
44501
44502 * config/mips/constraints.md (kl): Delete.
44503 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
44504 define expands, using...
44505 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
44506 instructions for MIPS16.
44507 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
44508 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
44509
44510 2014-01-25 Walter Lee <walt@tilera.com>
44511
44512 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
44513 (clzdi2): Ditto.
44514 (ffsdi2): Ditto.
44515
44516 2014-01-25 Walter Lee <walt@tilera.com>
44517
44518 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
44519 (TARGET_EXPAND_TO_RTL_HOOK): Define.
44520
44521 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
44522
44523 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
44524 Handle XOR.
44525
44526 2014-01-25 Jakub Jelinek <jakub@redhat.com>
44527
44528 * print-rtl.c (in_call_function_usage): New var.
44529 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
44530 EXPR_LIST mode as mode and not as reg note name.
44531
44532 PR middle-end/59561
44533 * cfgloopmanip.c (copy_loop_info): If
44534 loop->warned_aggressive_loop_optimizations, make sure
44535 the flag is set in target loop too.
44536
44537 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
44538
44539 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
44540 flag_cilkplus.
44541 * builtins.def: Likewise.
44542 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
44543 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
44544 * ira.c (ira_setup_eliminable_regset): Likewise.
44545 * omp-low.c (gate_expand_omp): Likewise.
44546 (execute_lower_omp): Likewise.
44547 (diagnose_sb_0): Likewise.
44548 (gate_diagnose_omp_blocks): Likewise.
44549 (simd_clone_clauses_extract): Likewise.
44550 (gate): Likewise.
44551
44552 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44553
44554 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
44555 correction for little endian...
44556 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
44557 here.
44558
44559 2014-01-24 Jeff Law <law@redhat.com>
44560
44561 PR tree-optimization/59919
44562 * tree-vrp.c (find_assert_locations_1): Do not register asserts
44563 for non-returning calls.
44564
44565 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
44566
44567 * common/config/aarch64/aarch64-common.c
44568 (aarch64_rewrite_mcpu): Handle multiple names.
44569 * config/aarch64/aarch64.h
44570 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
44571
44572 2014-01-24 Dodji Seketeli <dodji@redhat.com>
44573
44574 * input.c (add_file_to_cache_tab): Handle the case where fopen
44575 returns NULL.
44576
44577 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
44578
44579 PR target/59929
44580 * config/i386/i386.md (pushsf splitter): Get stack adjustment
44581 from push operand if code of push isn't PRE_DEC.
44582
44583 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
44584
44585 PR target/59909
44586 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
44587 -mquad-memory-atomic. Update -mquad-memory documentation to say
44588 it is only used for non-atomic loads/stores.
44589
44590 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
44591 -mquad-memory or -mquad-memory-atomic switches.
44592
44593 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
44594 -mquad-memory-atomic to ISA 2.07 support.
44595
44596 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
44597 to separate support of normal quad word memory operations (ldq, stq)
44598 from the atomic quad word memory operations.
44599
44600 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
44601 support to separate non-atomic quad word operations from atomic
44602 quad word operations. Disable non-atomic quad word operations in
44603 little endian mode so that we don't have to swap words after the
44604 load and before the store.
44605 (quad_load_store_p): Add comment about atomic quad word support.
44606 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
44607 options printed with -mdebug=reg.
44608
44609 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
44610 -mquad-memory-atomic as the test for whether we have quad word
44611 atomic instructions.
44612 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
44613 or -mp8-vector are used, allow byte/half-word atomic operations.
44614
44615 * config/rs6000/sync.md (load_lockedti): Insure that the address
44616 is a proper indexed or indirect address for the lqarx instruction.
44617 On little endian systems, swap the hi/lo registers after the lqarx
44618 instruction.
44619 (load_lockedpti): Use indexed_or_indirect_operand predicate to
44620 insure the address is valid for the lqarx instruction.
44621 (store_conditionalti): Insure that the address is a proper indexed
44622 or indirect address for the stqcrx. instruction. On little endian
44623 systems, swap the hi/lo registers before doing the stqcrx.
44624 instruction.
44625 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
44626 insure the address is valid for the stqcrx. instruction.
44627
44628 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
44629 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
44630 type of quad memory support is available.
44631
44632 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
44633
44634 PR regression/59915
44635 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
44636 there is a danger of looping.
44637
44638 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
44639
44640 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
44641 force flag_ira_loop_pressure if set via command line.
44642
44643 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
44644
44645 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
44646 (ashr_simd): New builtin handling DI mode.
44647 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
44648 (aarch64_sshr_simddi): New match pattern.
44649 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
44650 (vshrd_n_s64): Likewise.
44651 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
44652
44653 2014-01-23 Nick Clifton <nickc@redhat.com>
44654
44655 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
44656 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
44657 favour of mcu specific scripts.
44658 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
44659 430x multilibs.
44660
44661 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
44662 Alex Velenko <Alex.Velenko@arm.com>
44663
44664 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
44665 (vaddv_s16): Likewise.
44666 (vaddv_s32): Likewise.
44667 (vaddv_u8): Likewise.
44668 (vaddv_u16): Likewise.
44669 (vaddv_u32): Likewise.
44670 (vaddvq_s8): Likewise.
44671 (vaddvq_s16): Likewise.
44672 (vaddvq_s32): Likewise.
44673 (vaddvq_s64): Likewise.
44674 (vaddvq_u8): Likewise.
44675 (vaddvq_u16): Likewise.
44676 (vaddvq_u32): Likewise.
44677 (vaddvq_u64): Likewise.
44678 (vaddv_f32): Likewise.
44679 (vaddvq_f32): Likewise.
44680 (vaddvq_f64): Likewise.
44681 (vmaxv_f32): Likewise.
44682 (vmaxv_s8): Likewise.
44683 (vmaxv_s16): Likewise.
44684 (vmaxv_s32): Likewise.
44685 (vmaxv_u8): Likewise.
44686 (vmaxv_u16): Likewise.
44687 (vmaxv_u32): Likewise.
44688 (vmaxvq_f32): Likewise.
44689 (vmaxvq_f64): Likewise.
44690 (vmaxvq_s8): Likewise.
44691 (vmaxvq_s16): Likewise.
44692 (vmaxvq_s32): Likewise.
44693 (vmaxvq_u8): Likewise.
44694 (vmaxvq_u16): Likewise.
44695 (vmaxvq_u32): Likewise.
44696 (vmaxnmv_f32): Likewise.
44697 (vmaxnmvq_f32): Likewise.
44698 (vmaxnmvq_f64): Likewise.
44699 (vminv_f32): Likewise.
44700 (vminv_s8): Likewise.
44701 (vminv_s16): Likewise.
44702 (vminv_s32): Likewise.
44703 (vminv_u8): Likewise.
44704 (vminv_u16): Likewise.
44705 (vminv_u32): Likewise.
44706 (vminvq_f32): Likewise.
44707 (vminvq_f64): Likewise.
44708 (vminvq_s8): Likewise.
44709 (vminvq_s16): Likewise.
44710 (vminvq_s32): Likewise.
44711 (vminvq_u8): Likewise.
44712 (vminvq_u16): Likewise.
44713 (vminvq_u32): Likewise.
44714 (vminnmv_f32): Likewise.
44715 (vminnmvq_f32): Likewise.
44716 (vminnmvq_f64): Likewise.
44717
44718 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
44719
44720 * config/aarch64/aarch64-simd.md
44721 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
44722 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
44723 (*aarch64_mul3_elt<mode>): Likewise.
44724 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
44725 (*aarch64_mul3_elt_to_64v2df): Likewise.
44726 (*aarch64_mla_elt<mode>): Likewise.
44727 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
44728 (*aarch64_mls_elt<mode>): Likewise.
44729 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
44730 (*aarch64_fma4_elt<mode>): Likewise.
44731 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
44732 (*aarch64_fma4_elt_to_64v2df): Likewise.
44733 (*aarch64_fnma4_elt<mode>): Likewise.
44734 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
44735 (*aarch64_fnma4_elt_to_64v2df): Likewise.
44736 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
44737 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
44738 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
44739 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
44740 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
44741 (aarch64_sqdmull_lane<mode>_internal): Likewise.
44742 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
44743
44744 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
44745
44746 * config/aarch64/aarch64-simd.md
44747 (aarch64_be_checked_get_lane<mode>): New define_expand.
44748 * config/aarch64/aarch64-simd-builtins.def
44749 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
44750 New builtin definition.
44751 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
44752 Use new safe be builtin.
44753
44754 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
44755
44756 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
44757 New define_insn.
44758 (aarch64_be_st1<mode>): Likewise.
44759 (aarch_ld1<VALL:mode>): Define_expand modified.
44760 (aarch_st1<VALL:mode>): Likewise.
44761 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
44762 (UNSPEC_ST1): Likewise.
44763
44764 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
44765
44766 * config/microblaze/microblaze.md: Add trap insn and attribute
44767
44768 2014-01-23 Dodji Seketeli <dodji@redhat.com>
44769
44770 PR preprocessor/58580
44771 * input.h (location_get_source_line): Take an additional line_size
44772 parameter.
44773 (void diagnostics_file_cache_fini): Declare new function.
44774 * input.c (struct fcache): New type.
44775 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
44776 New static constants.
44777 (diagnostic_file_cache_init, total_lines_num)
44778 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
44779 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
44780 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
44781 (get_next_line, read_next_line, goto_next_line, read_line_num):
44782 New static function definitions.
44783 (diagnostic_file_cache_fini): New function.
44784 (location_get_source_line): Take an additional output line_len
44785 parameter. Re-write using lookup_or_add_file_to_cache_tab and
44786 read_line_num.
44787 * diagnostic.c (diagnostic_finish): Call
44788 diagnostic_file_cache_fini.
44789 (adjust_line): Take an additional input parameter for the length
44790 of the line, rather than calculating it with strlen.
44791 (diagnostic_show_locus): Adjust the use of
44792 location_get_source_line and adjust_line with respect to their new
44793 signature. While displaying a line now, do not stop at the first
44794 null byte. Rather, display the zero byte as a space and keep
44795 going until we reach the size of the line.
44796 * Makefile.in: Add vec.o to OBJS-libcommon
44797
44798 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
44799 Ilya Tocar <ilya.tocar@intel.com>
44800
44801 * config/i386/avx512fintrin.h (_mm512_kmov): New.
44802 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
44803 (__builtin_ia32_kmov16): Ditto.
44804 * config/i386/i386.md (UNSPEC_KMOV): New.
44805 (kmovw): Ditto.
44806
44807 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
44808
44809 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
44810 (_mm512_storeu_si512): Ditto.
44811
44812 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
44813
44814 PR target/52125
44815 * rtl.h (get_referenced_operands): Declare.
44816 * recog.c (get_referenced_operands): New function.
44817 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
44818 operands have been referenced when recording LO_SUM references.
44819
44820 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
44821
44822 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
44823
44824 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
44825
44826 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
44827 Enable for generic and recent AMD targets.
44828
44829 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
44830
44831 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
44832 ARG_SIZE note when adjustment was eliminated.
44833
44834 2014-01-22 Jeff Law <law@redhat.com>
44835
44836 PR tree-optimization/59597
44837 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
44838 in file. Accept new argument REGISTERING and use it to modify
44839 dump output appropriately.
44840 (register_jump_thread): Corresponding changes.
44841 (mark_threaded_blocks): Reinstate code to cancel unprofitable
44842 thread paths involving joiner blocks. Add code to dump cancelled
44843 jump threading paths.
44844
44845 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
44846
44847 PR rtl-optimization/59477
44848 * lra-constraints.c (inherit_in_ebb): Process call for living hard
44849 regs. Update reloads_num and potential_reload_hard_regs for all insns.
44850
44851 2014-01-22 Tom Tromey <tromey@redhat.com>
44852
44853 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
44854 PARAMS.
44855 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
44856
44857 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
44858
44859 PR rtl-optimization/59896
44860 * lra-constraints.c (process_alt_operands): Check unused note for
44861 matched operands of insn with no output reloads.
44862
44863 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
44864
44865 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
44866 (mips_move_from_gpr_cost): Likewise.
44867
44868 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
44869
44870 PR rtl-optimization/59858
44871 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
44872 ira_class_hard_regs_num.
44873 (process_alt_operands): Increase reject for dying matched operand.
44874
44875 2014-01-21 Jakub Jelinek <jakub@redhat.com>
44876
44877 PR target/59003
44878 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
44879 smaller than size, perform several stores or loads and stores
44880 at dst + count - size to store or copy all of size bytes, rather
44881 than just last modesize bytes.
44882
44883 2014-01-20 DJ Delorie <dj@redhat.com>
44884
44885 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
44886 that CLOBBERs are REGs before propogating their values.
44887
44888 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
44889
44890 PR middle-end/59789
44891 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
44892 (cgraph_inline_failed_type): New function.
44893 * cgraph.h (DEFCIFCODE): Add type.
44894 (cgraph_inline_failed_type_t): New enum.
44895 (cgraph_inline_failed_type): New prototype.
44896 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
44897 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
44898 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
44899 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
44900 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
44901 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
44902 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
44903 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
44904 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
44905 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
44906 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
44907 OPTIMIZATION_MISMATCH.
44908 * tree-inline.c (expand_call_inline): Emit errors during
44909 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
44910
44911 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
44912
44913 PR target/59685
44914 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
44915 mode attribute in insn output.
44916
44917 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
44918
44919 * output.h (output_constant): Delete.
44920 * varasm.c (output_constant): Make private.
44921
44922 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
44923
44924 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
44925
44926 2014-01-20 Jakub Jelinek <jakub@redhat.com>
44927
44928 PR middle-end/59860
44929 * tree.h (fold_builtin_strcat): New prototype.
44930 * builtins.c (fold_builtin_strcat): No longer static. Add len
44931 argument, if non-NULL, don't call c_strlen. Optimize
44932 directly into __builtin_memcpy instead of __builtin_strcpy.
44933 (fold_builtin_2): Adjust fold_builtin_strcat caller.
44934 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
44935
44936 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
44937
44938 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
44939 for SImode_address_operand operands, having only a REG argument.
44940
44941 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
44942
44943 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
44944 loader name using mbig-endian.
44945 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
44946
44947 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
44948
44949 * doc/invoke.texi (-march): Clarify documentation for AArch64.
44950 (-mtune): Likewise.
44951 (-mcpu): Likewise.
44952
44953 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
44954
44955 * config/aarch64/aarch64-protos.h
44956 (aarch64_cannot_change_mode_class_ptr): Declare.
44957 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
44958 aarch64_cannot_change_mode_class_ptr): New.
44959 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
44960 backend hook aarch64_cannot_change_mode_class.
44961
44962 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
44963
44964 * common/config/aarch64/aarch64-common.c
44965 (aarch64_handle_option): Don't handle any option order logic here.
44966 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
44967 selected_cpu, warn on architecture version mismatch.
44968 (aarch64_override_options): Fix parsing order for option strings.
44969
44970 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
44971 Iain Sandoe <iain@codesourcery.com>
44972
44973 PR bootstrap/59496
44974 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
44975 warning. Amend comment to reflect current functionality.
44976
44977 2014-01-20 Richard Biener <rguenther@suse.de>
44978
44979 PR middle-end/59860
44980 * builtins.c (fold_builtin_strcat): Remove case better handled
44981 by tree-ssa-strlen.c.
44982
44983 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
44984
44985 * config/aarch64/aarch64.opt
44986 (mcpu, march, mtune): Make case-insensitive.
44987
44988 2014-01-20 Jakub Jelinek <jakub@redhat.com>
44989
44990 PR target/59880
44991 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
44992 if operands[1] is a REG or ZERO_EXTEND of a REG.
44993
44994 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
44995
44996 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
44997
44998 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
44999
45000 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
45001 long non-pic millicode calls.
45002
45003 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
45004
45005 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
45006
45007 2014-01-19 Kito Cheng <kito@0xlab.org>
45008
45009 * builtins.c (expand_movstr): Check movstr expand done or fail.
45010
45011 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
45012 H.J. Lu <hongjiu.lu@intel.com>
45013
45014 PR target/59379
45015 * config/i386/i386.md (*lea<mode>): Zero-extend return register
45016 to DImode for zero-extended addresses.
45017
45018 2014-01-19 Jakub Jelinek <jakub@redhat.com>
45019
45020 PR rtl-optimization/57763
45021 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
45022 on the new indirect jump_insn and increment LABEL_NUSES (label).
45023
45024 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
45025
45026 PR bootstrap/59580
45027 PR bootstrap/59583
45028 * config.gcc (x86_archs): New variable.
45029 (x86_64_archs): Likewise.
45030 (x86_cpus): Likewise.
45031 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
45032 --with-arch/--with-cpu= options.
45033 Support --with-arch=/--with-cpu={nehalem,westmere,
45034 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
45035
45036 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
45037
45038 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
45039 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
45040
45041 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
45042
45043 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
45044
45045 2014-01-18 Jakub Jelinek <jakub@redhat.com>
45046
45047 PR target/58944
45048 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
45049 clear cpp_get_options (parse_in)->warn_unused_macros for
45050 ix86_target_macros_internal with cpp_define.
45051
45052 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
45053
45054 * jump.c (delete_related_insns): Keep (use (insn))s.
45055 * reorg.c (redundant_insn): Check for barriers too.
45056
45057 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
45058
45059 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
45060
45061 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
45062
45063 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
45064 call to $$dyncall when TARGET_LONG_CALLS is true.
45065
45066 2014-01-17 Jeff Law <law@redhat.com>
45067
45068 * ree.c (combine_set_extension): Temporarily disable test for
45069 changing number of hard registers.
45070
45071 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
45072
45073 PR middle-end/58125
45074 * ipa-inline-analysis.c (inline_free_summary):
45075 Do not free summary of aliases.
45076
45077 2014-01-17 Jakub Jelinek <jakub@redhat.com>
45078
45079 PR middle-end/59706
45080 * gimplify.c (gimplify_expr): Use create_tmp_var
45081 instead of create_tmp_var_raw. If cond doesn't have
45082 integral type, don't add the IFN_ANNOTATE builtin at all.
45083
45084 2014-01-17 Martin Jambor <mjambor@suse.cz>
45085
45086 PR ipa/59736
45087 * ipa-cp.c (prev_edge_clone): New variable.
45088 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
45089 Also resize prev_edge_clone vector.
45090 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
45091 (ipcp_edge_removal_hook): New function.
45092 (ipcp_driver): Register ipcp_edge_removal_hook.
45093
45094 2014-01-17 Andrew Pinski <apinski@cavium.com>
45095 Steve Ellcey <sellcey@mips.com>
45096
45097 PR target/59462
45098 * config/mips/mips.c (mips_print_operand): Check operand mode instead
45099 of operator mode.
45100
45101 2014-01-17 Jeff Law <law@redhat.com>
45102
45103 PR middle-end/57904
45104 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
45105 so that pass_ccp runs first.
45106
45107 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
45108
45109 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
45110 (ix86_adjust_cost): Use !TARGET_XXX.
45111 (do_reorder_for_imul): Likewise.
45112 (swap_top_of_ready_list): Likewise.
45113 (ix86_sched_reorder): Likewise.
45114
45115 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
45116
45117 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
45118 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
45119 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
45120 (intel_memset): New. Duplicate slm_memset.
45121 (intel_cost): New. Duplicate slm_cost.
45122 (m_INTEL): New macro.
45123 (processor_target_table): Add "intel".
45124 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
45125 with PROCESSOR_INTEL for "intel".
45126 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
45127 PROCESSOR_SILVERMONT.
45128 (ix86_issue_rate): Likewise.
45129 (ix86_adjust_cost): Likewise.
45130 (ia32_multipass_dfa_lookahead): Likewise.
45131 (swap_top_of_ready_list): Likewise.
45132 (ix86_sched_reorder): Likewise.
45133 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
45134 instead of TARGET_OPT_AGU.
45135 * config/i386/i386.h (TARGET_INTEL): New.
45136 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
45137 (processor_type): Add PROCESSOR_INTEL.
45138 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
45139 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
45140
45141 2014-01-17 Marek Polacek <polacek@redhat.com>
45142
45143 PR c/58346
45144 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
45145 size is zero.
45146
45147 2014-01-17 Richard Biener <rguenther@suse.de>
45148
45149 PR tree-optimization/46590
45150 * opts.c (default_options_table): Add entries for
45151 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
45152 all enabled at -O1 but not for -Og.
45153 * common.opt (fbranch-count-reg): Remove Init(1).
45154 (fmove-loop-invariants): Likewise.
45155 (ftree-pta): Likewise.
45156
45157 2014-01-17 Jakub Jelinek <jakub@redhat.com>
45158
45159 * config/i386/i386.c (ix86_data_alignment): For compatibility with
45160 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
45161 decls to at least the GCC 4.8 used alignments.
45162
45163 PR fortran/59440
45164 * tree-nested.c (convert_nonlocal_reference_stmt,
45165 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
45166 of GIMPLE_BIND stmts, adjust associated decls.
45167
45168 2014-01-17 Richard Biener <rguenther@suse.de>
45169
45170 PR tree-optimization/46590
45171 * vec.h (vec<>::bseach): New member function implementing
45172 binary search according to C89 bsearch.
45173 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
45174 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
45175 bitmap pointer again. Make accesses_in_loop a flat array.
45176 (mem_ref_obstack): New global.
45177 (outermost_indep_loop): Adjust for mem_ref->stored changes.
45178 (mark_ref_stored): Likewise.
45179 (ref_indep_loop_p_2): Likewise.
45180 (set_ref_stored_in_loop): New helper function.
45181 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
45182 (memref_free): Adjust.
45183 (record_mem_ref_loc): Simplify.
45184 (gather_mem_refs_stmt): Adjust.
45185 (sort_locs_in_loop_postorder_cmp): New function.
45186 (analyze_memory_references): Sort accesses_in_loop after
45187 loop postorder number.
45188 (find_ref_loc_in_loop_cmp): New function.
45189 (for_all_locs_in_loop): Find relevant cluster of locs in
45190 accesses_in_loop and iterate without recursion.
45191 (execute_sm): Avoid uninit warning.
45192 (struct ref_always_accessed): Simplify.
45193 (ref_always_accessed::operator ()): Likewise.
45194 (ref_always_accessed_p): Likewise.
45195 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
45196 loop postorder numbers here.
45197 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
45198 numbers.
45199
45200 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
45201
45202 PR c++/57945
45203 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
45204 on decls for which assemble_alias has been called.
45205
45206 2014-01-17 Nick Clifton <nickc@redhat.com>
45207
45208 * config/msp430/msp430.opt: (mcpu): New option.
45209 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
45210 (msp430_option_override): Parse target_cpu. If the MCU name
45211 matches a generic string, clear target_mcu.
45212 (msp430_attr): Allow numeric interrupt values up to 63.
45213 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
45214 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
45215 option.
45216 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
45217 Add mcpu matches.
45218 * config/msp430/msp430.md (popm): Use %J rather than %I.
45219 (addsi3): Use msp430_nonimmediate_operand for operand 2.
45220 (addhi_cy_i): Use immediate_operand for operand 2.
45221 * doc/invoke.texi: Document -mcpu option.
45222
45223 2014-01-17 Richard Biener <rguenther@suse.de>
45224
45225 PR rtl-optimization/38518
45226 * df.h (df_analyze_loop): Declare.
45227 * df-core.c: Include cfgloop.h.
45228 (df_analyze_1): Split out main part of df_analyze.
45229 (df_analyze): Adjust.
45230 (loop_inverted_post_order_compute): New function.
45231 (loop_post_order_compute): Likewise.
45232 (df_analyze_loop): New function avoiding whole-function
45233 postorder computes.
45234 * loop-invariant.c (find_defs): Use df_analyze_loop.
45235 (find_invariants): Adjust.
45236 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
45237
45238 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
45239
45240 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
45241 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
45242
45243 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
45244
45245 * ipa-ref.c (ipa_remove_stmt_references): Fix references
45246 traversal when removing references.
45247
45248 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
45249
45250 PR ipa/59775
45251 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
45252
45253 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
45254
45255 PR middle-end/56791
45256 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
45257 pushing a reload for an autoinc when we had previously reloaded an
45258 inner part of the address.
45259
45260 2014-01-16 Jakub Jelinek <jakub@redhat.com>
45261
45262 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
45263 field.
45264 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
45265 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
45266 when not giving up or versioning for alias only because of
45267 loop->safelen.
45268 (vect_analyze_data_ref_dependences): Set to true.
45269 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
45270 is a GIMPLE_PHI.
45271 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
45272 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
45273 to the condition.
45274
45275 PR middle-end/58344
45276 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
45277
45278 PR target/59839
45279 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
45280 operand 0 predicate for gathers, use a new pseudo as subtarget.
45281
45282 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
45283
45284 PR middle-end/59609
45285 * lra-constraints.c (process_alt_operands): Add printing debug info.
45286 Check absence of input/output reloads for matched operands too.
45287
45288 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
45289
45290 PR rtl-optimization/59835
45291 * ira.c (ira_init_register_move_cost): Increase cost for
45292 impossible modes.
45293
45294 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
45295
45296 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
45297
45298 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
45299
45300 PR target/59780
45301 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
45302 non-register objects. Use gen_(high/low)part more consistently.
45303 Fix assertions.
45304
45305 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
45306
45307 PR target/59844
45308 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
45309 endian support, remove tests for WORDS_BIG_ENDIAN.
45310 (p8_mfvsrd_3_<mode>): Likewise.
45311 (reload_gpr_from_vsx<mode>): Likewise.
45312 (reload_gpr_from_vsxsf): Likewise.
45313 (p8_mfvsrd_4_disf): Likewise.
45314
45315 2014-01-16 Richard Biener <rguenther@suse.de>
45316
45317 PR rtl-optimization/46590
45318 * lcm.c (compute_antinout_edge): Use postorder iteration.
45319 (compute_laterin): Use inverted postorder iteration.
45320
45321 2014-01-16 Nick Clifton <nickc@redhat.com>
45322
45323 PR middle-end/28865
45324 * varasm.c (output_constant): Return the number of bytes actually
45325 emitted.
45326 (output_constructor_array_range): Update the field size with the
45327 number of bytes emitted by output_constant.
45328 (output_constructor_regular_field): Likewise. Also do not
45329 complain if the total number of bytes emitted is now greater
45330 than the expected fieldpos.
45331 * output.h (output_constant): Update prototype and descriptive comment.
45332
45333 2014-01-16 Marek Polacek <polacek@redhat.com>
45334
45335 PR middle-end/59827
45336 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
45337 it is error_mark_node.
45338
45339 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
45340
45341 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
45342 VALID_AVX256_REG_OR_OI_MODE.
45343
45344 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
45345
45346 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
45347 current procedure should be profiled.
45348
45349 2014-01-15 Andrew Pinski <apinski@cavium.com>
45350
45351 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
45352 of moving from/to the STACK_REG register class.
45353
45354 2014-01-15 Richard Henderson <rth@redhat.com>
45355
45356 PR debug/54694
45357 * reginfo.c (global_regs_decl): Globalize.
45358 * rtl.h (global_regs_decl): Declare.
45359 * ira.c (do_reload): Diagnose frame_pointer_needed and it
45360 reserved via global_regs.
45361
45362 2014-01-15 Teresa Johnson <tejohnson@google.com>
45363
45364 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
45365
45366 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
45367
45368 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
45369 and vmulosh rather than call gen_vec_widen_smult_*.
45370 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
45371 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
45372 (vec_widen_smult_even_v16qi): Likewise.
45373 (vec_widen_umult_even_v8hi): Likewise.
45374 (vec_widen_smult_even_v8hi): Likewise.
45375 (vec_widen_umult_odd_v16qi): Likewise.
45376 (vec_widen_smult_odd_v16qi): Likewise.
45377 (vec_widen_umult_odd_v8hi): Likewise.
45378 (vec_widen_smult_odd_v8hi): Likewise.
45379 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
45380 vmuloub rather than call gen_vec_widen_umult_*.
45381 (vec_widen_umult_lo_v16qi): Likewise.
45382 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
45383 vmulosb rather than call gen_vec_widen_smult_*.
45384 (vec_widen_smult_lo_v16qi): Likewise.
45385 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
45386 rather than call gen_vec_widen_umult_*.
45387 (vec_widen_umult_lo_v8hi): Likewise.
45388 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
45389 rather than call gen_vec_widen_smult_*.
45390 (vec_widen_smult_lo_v8hi): Likewise.
45391
45392 2014-01-15 Jeff Law <law@redhat.com>
45393
45394 PR tree-optimization/59747
45395 * ree.c (find_and_remove_re): Properly handle case where a second
45396 eliminated extension requires widening a copy created for elimination
45397 of a prior extension.
45398 (combine_set_extension): Ensure that the number of hard regs needed
45399 for a destination register does not change when we widen it.
45400
45401 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
45402
45403 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
45404 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
45405 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
45406 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
45407 (avr-*-rtems*): Likewise.
45408 (bfin*-rtems*): Likewise.
45409 (moxie-*-rtems*): Likewise.
45410 (h8300-*-rtems*): Likewise.
45411 (i[34567]86-*-rtems*): Likewise.
45412 (lm32-*-rtems*): Likewise.
45413 (m32r-*-rtems*): Likewise.
45414 (m68k-*-rtems*): Likewise.
45415 (microblaze*-*-rtems*): Likewise.
45416 (mips*-*-rtems*): Likewise.
45417 (powerpc-*-rtems*): Likewise.
45418 (sh-*-rtems*): Likewise.
45419 (sparc-*-rtems*): Likewise.
45420 (sparc64-*-rtems*): Likewise.
45421 (v850-*-rtems*): Likewise.
45422 (m32c-*-rtems*): Likewise.
45423
45424 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
45425
45426 PR rtl-optimization/59511
45427 * ira.c (ira_init_register_move_cost): Use memory costs for some
45428 cases of register move cost calculations.
45429 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
45430 instead of BB frequency.
45431 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
45432 * lra-assigns.c (find_hard_regno_for): Ditto.
45433
45434 2014-01-15 Richard Biener <rguenther@suse.de>
45435
45436 PR tree-optimization/59822
45437 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
45438 (vectorizable_load): Use it to hoist defs of uses of invariant
45439 loads out of the loop.
45440
45441 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
45442 Kugan Vivekanandarajah <kuganv@linaro.org>
45443
45444 PR target/59695
45445 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
45446 truncation.
45447
45448 2014-01-15 Richard Biener <rguenther@suse.de>
45449
45450 PR rtl-optimization/59802
45451 * lcm.c (compute_available): Use inverted postorder to seed
45452 the initial worklist.
45453
45454 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
45455
45456 PR target/59803
45457 * config/s390/s390.c (s390_preferred_reload_class): Don't return
45458 ADDR_REGS for invalid symrefs in non-PIC code.
45459
45460 2014-01-15 Jakub Jelinek <jakub@redhat.com>
45461
45462 PR other/58712
45463 * builtins.c (determine_block_size): Initialize *probable_max_size
45464 even if len_rtx is CONST_INT.
45465
45466 2014-01-14 Andrew Pinski <apinski@cavium.com>
45467
45468 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
45469 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
45470 (cortexa53_tunings): Likewise.
45471 (aarch64_sched_issue_rate): New function.
45472 (TARGET_SCHED_ISSUE_RATE): Define.
45473
45474 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
45475
45476 * ira-costs.c (find_costs_and_classes): Add missed
45477 ira_init_register_move_cost_if_necessary.
45478
45479 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
45480
45481 PR target/59787
45482 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
45483
45484 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
45485
45486 PR target/59794
45487 * config/i386/i386.c (type_natural_mode): Add a bool parameter
45488 to indicate if type is used for function return value. Warn ABI
45489 change if the vector mode isn't available for function return value.
45490 (ix86_function_arg_advance): Pass false to type_natural_mode.
45491 (ix86_function_arg): Likewise.
45492 (ix86_gimplify_va_arg): Likewise.
45493 (function_arg_32): Don't warn ABI change.
45494 (ix86_function_value): Pass true to type_natural_mode.
45495 (ix86_return_in_memory): Likewise.
45496 (ix86_struct_value_rtx): Removed.
45497 (TARGET_STRUCT_VALUE_RTX): Likewise.
45498
45499 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45500
45501 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
45502 converting a conditional jump into a conditional return.
45503
45504 2014-01-14 Richard Biener <rguenther@suse.de>
45505
45506 PR tree-optimization/58921
45507 PR tree-optimization/59006
45508 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
45509 hoisting invariant stmts.
45510 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
45511 invariant loads on the preheader edge if possible.
45512
45513 2014-01-14 Joey Ye <joey.ye@arm.com>
45514
45515 * doc/plugin.texi (Building GCC plugins): Update to C++.
45516
45517 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
45518
45519 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
45520 (_mm_rcp28_round_ss): Ditto.
45521 (_mm_rsqrt28_round_sd): Ditto.
45522 (_mm_rsqrt28_round_ss): Ditto.
45523 (_mm_rcp28_sd): Ditto.
45524 (_mm_rcp28_ss): Ditto.
45525 (_mm_rsqrt28_sd): Ditto.
45526 (_mm_rsqrt28_ss): Ditto.
45527 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
45528 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
45529 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
45530 (IX86_BUILTIN_RCP28SD): Ditto.
45531 (IX86_BUILTIN_RCP28SS): Ditto.
45532 (IX86_BUILTIN_RSQRT28SD): Ditto.
45533 (IX86_BUILTIN_RSQRT28SS): Ditto.
45534 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
45535 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
45536 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
45537 (ix86_expand_special_args_builtin): Expand new FTYPE.
45538 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
45539 (srcp14<mode>): Make insn unary.
45540 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
45541 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
45542 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
45543 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
45544 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
45545 Fix rounding: make it SAE only.
45546 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
45547 Ditto.
45548 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
45549 Ditto.
45550 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
45551 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
45552 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
45553 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
45554 (round_saeonly_mask_scalar_operand4): Ditto.
45555 (round_saeonly_mask_scalar_op3): Ditto.
45556 (round_saeonly_mask_scalar_op4): Ditto.
45557
45558 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45559
45560 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
45561 Implement -maltivec=be for vec_insert and vec_extract.
45562
45563 2014-01-10 DJ Delorie <dj@redhat.com>
45564
45565 * config/msp430/msp430.md (call_internal): Don't allow memory
45566 references with SP as the base register.
45567 (call_value_internal): Likewise.
45568 * config/msp430/constraints.md (Yc): New. For memory references
45569 that don't use SP as a base register.
45570
45571 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
45572 "an integer without a # prefix"
45573 * config/msp430/msp430.md (epilogue_helper): Use it.
45574
45575 2014-01-13 Jakub Jelinek <jakub@redhat.com>
45576
45577 PR target/59617
45578 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
45579 AVX512F gather builtins.
45580 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
45581 on gather decls with INTEGER_TYPE masktype.
45582 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
45583 directly into the builtin rather than hoisting it before loop.
45584
45585 PR tree-optimization/59387
45586 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
45587 (scev_const_prop): If folded_casts and type has undefined overflow,
45588 use force_gimple_operand instead of force_gimple_operand_gsi and
45589 for each added stmt if it is assign with
45590 arith_code_with_undefined_signed_overflow, call
45591 rewrite_to_defined_overflow.
45592 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
45593 gimple-fold.h instead.
45594 (arith_code_with_undefined_signed_overflow,
45595 rewrite_to_defined_overflow): Moved to ...
45596 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
45597 rewrite_to_defined_overflow): ... here. No longer static.
45598 Include gimplify-me.h.
45599 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
45600 rewrite_to_defined_overflow): New prototypes.
45601
45602 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45603
45604 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
45605
45606 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
45607
45608 * builtins.c (get_object_alignment_2): Minor tweak.
45609 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
45610
45611 2014-01-13 Christian Bruel <christian.bruel@st.com>
45612
45613 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
45614 optimized non constant lengths.
45615
45616 2014-01-13 Jakub Jelinek <jakub@redhat.com>
45617
45618 PR libgomp/59194
45619 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
45620 load as __atomic_load_N if possible.
45621
45622 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
45623
45624 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
45625 target parameter.
45626 (rs6000_expand_builtin): Adjust call.
45627
45628 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
45629
45630 PR target/58115
45631 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
45632 * config/rs6000/rs6000.c: Include target-globals.h.
45633 (rs6000_set_current_function): Instead of doing target_reinit
45634 unconditionally, use save_target_globals_default_opts and
45635 restore_target_globals.
45636
45637 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
45638 FPSCR.
45639 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
45640 (rs6000_expand_builtin): Handle mffs and mtfsf.
45641 (rs6000_init_builtins): Define mffs and mtfsf.
45642 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
45643 (rs6000_mffs): New pattern.
45644 (rs6000_mtfsf): New pattern.
45645
45646 2014-01-11 Bin Cheng <bin.cheng@arm.com>
45647
45648 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
45649 Start narrowing with START. Apply candidate-use pair
45650 and check overall cost in narrowing.
45651 (iv_ca_prune): Pass new argument.
45652
45653 2014-01-10 Jeff Law <law@redhat.com>
45654
45655 PR middle-end/59743
45656 * ree.c (combine_reaching_defs): Ensure the defining statement
45657 occurs before the extension when optimizing extensions with
45658 different source and destination hard registers.
45659
45660 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
45661
45662 PR ipa/58585
45663 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
45664 vtables into the type inheritance graph.
45665
45666 2014-01-10 Jakub Jelinek <jakub@redhat.com>
45667
45668 PR rtl-optimization/59754
45669 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
45670 modes in the REGNO != REGNO case.
45671
45672 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45673
45674 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
45675
45676 2014-01-10 Jakub Jelinek <jakub@redhat.com>
45677
45678 PR tree-optimization/59745
45679 * tree-predcom.c (tree_predictive_commoning_loop): Call
45680 free_affine_expand_cache if giving up because components is NULL.
45681
45682 * target-globals.c (save_target_globals): Allocate < 4KB structs using
45683 GC in payload of target_globals struct instead of allocating them on
45684 the heap and the larger structs separately using GC.
45685 * target-globals.h (struct target_globals): Make regs, hard_regs,
45686 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
45687 of GTY((skip)) and change type to void *.
45688 (reset_target_globals): Cast loads from those fields to corresponding
45689 types.
45690
45691 2014-01-10 Steve Ellcey <sellcey@mips.com>
45692
45693 PR plugins/59335
45694 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
45695 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
45696 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
45697
45698 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
45699
45700 PR target/59744
45701 * aarch64-modes.def (CC_Zmode): New flags mode.
45702 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
45703 represents an equality.
45704 (aarch64_get_condition_code): Handle CC_Zmode.
45705 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
45706
45707 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
45708
45709 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
45710 extraction in good case.
45711
45712 2014-01-10 Richard Biener <rguenther@suse.de>
45713
45714 PR tree-optimization/59374
45715 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
45716 checking after SLP discovery. Mark stmts not participating
45717 in any SLP instance properly.
45718
45719 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45720
45721 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
45722 when handling a SET rtx.
45723
45724 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45725
45726 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
45727 (cortex-a57): Likewise.
45728 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
45729
45730 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45731
45732 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
45733 non-iwmmxt builtins.
45734
45735 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
45736
45737 PR ipa/58252
45738 PR ipa/59226
45739 * ipa-devirt.c record_target_from_binfo): Take as argument
45740 stack of binfos and lookup matching one for virtual inheritance.
45741 (possible_polymorphic_call_targets_1): Update.
45742
45743 2014-01-10 Huacai Chen <chenhc@lemote.com>
45744
45745 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
45746 kernel strings for Loongson-2E/2F/3A.
45747
45748 2014-01-10 Jakub Jelinek <jakub@redhat.com>
45749
45750 PR middle-end/59670
45751 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
45752 is_gimple_call before calling gimple_call_internal_p.
45753
45754 2014-01-09 Steve Ellcey <sellcey@mips.com>
45755
45756 * Makefile.in (TREE_FLOW_H): Remove.
45757 (TREE_SSA_H): Add file names from tree-flow.h.
45758 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
45759 * tree.h: Remove tree-flow.h reference.
45760 * hash-table.h: Remove tree-flow.h reference.
45761 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
45762 reference with tree-ssa-loop.h.
45763
45764 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45765
45766 * doc/invoke.texi: Add -maltivec={be,le} options, and document
45767 default element-order behavior for -maltivec.
45768 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
45769 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
45770 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
45771 when targeting big endian, at least for now.
45772 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
45773
45774 2014-01-09 Jakub Jelinek <jakub@redhat.com>
45775
45776 PR middle-end/47735
45777 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
45778 var satisfies use_register_for_decl, just take into account type
45779 alignment, rather than decl alignment.
45780
45781 PR tree-optimization/59622
45782 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
45783 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
45784 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
45785 Don't devirtualize for inplace at all. For targets.length () == 1,
45786 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
45787
45788 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
45789
45790 * config/i386/i386.md (cpu): Remove the unused btver1.
45791
45792 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
45793
45794 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
45795
45796 2014-01-09 Jakub Jelinek <jakub@redhat.com>
45797
45798 PR target/58115
45799 * tree-core.h (struct target_globals): New forward declaration.
45800 (struct tree_target_option): Add globals field.
45801 * tree.h (TREE_TARGET_GLOBALS): Define.
45802 (prepare_target_option_nodes_for_pch): New prototype.
45803 * target-globals.h (struct target_globals): Define even if
45804 !SWITCHABLE_TARGET.
45805 * tree.c (prepare_target_option_node_for_pch,
45806 prepare_target_option_nodes_for_pch): New functions.
45807 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
45808 * config/i386/i386.c: Include target-globals.h.
45809 (ix86_set_current_function): Instead of doing target_reinit
45810 unconditionally, use save_target_globals_default_opts and
45811 restore_target_globals.
45812
45813 2014-01-09 Richard Biener <rguenther@suse.de>
45814
45815 PR tree-optimization/59715
45816 * tree-cfg.h (split_critical_edges): Declare.
45817 * tree-cfg.c (split_critical_edges): Export.
45818 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
45819
45820 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
45821
45822 * cfgexpand.c (expand_stack_vars): Optionally disable
45823 asan stack protection.
45824 (expand_used_vars): Likewise.
45825 (partition_stack_vars): Likewise.
45826 * asan.c (asan_emit_stack_protection): Optionally disable
45827 after return stack usage.
45828 (instrument_derefs): Optionally disable memory access instrumentation.
45829 (instrument_builtin_call): Likewise.
45830 (instrument_strlen_call): Likewise.
45831 (asan_protect_global): Optionally disable global variables protection.
45832 * doc/invoke.texi: Added doc for new options.
45833 * params.def: Added new options.
45834 * params.h: Likewise.
45835
45836 2014-01-09 Jakub Jelinek <jakub@redhat.com>
45837
45838 PR rtl-optimization/59724
45839 * ifcvt.c (cond_exec_process_if_block): Don't call
45840 flow_find_head_matching_sequence with 0 longest_match.
45841 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
45842 non-active insns if !stop_after.
45843 (try_head_merge_bb): Revert 2014-01-07 changes.
45844
45845 2014-01-08 Jeff Law <law@redhat.com>
45846
45847 * ree.c (get_sub_rtx): New function, extracted from...
45848 (merge_def_and_ext): Here.
45849 (combine_reaching_defs): Use get_sub_rtx.
45850
45851 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
45852
45853 * cgraph.h (varpool_variable_node): Do not choke on null node.
45854
45855 2014-01-08 Catherine Moore <clm@codesourcery.com>
45856
45857 * config/mips/mips.md (simple_return): Attempt to use JRC
45858 for microMIPS.
45859 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
45860
45861 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
45862
45863 PR rtl-optimization/59137
45864 * reorg.c (steal_delay_list_from_target): Call update_block for
45865 elided insns.
45866 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
45867
45868 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45869
45870 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
45871 two duplicate entries.
45872
45873 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
45874
45875 Revert:
45876 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
45877
45878 * config/mips/mips.c (mips_truncated_op_cost): New function.
45879 (mips_rtx_costs): Adjust test for BADDU.
45880 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
45881
45882 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
45883
45884 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
45885 (*baddu_si): ...this new pattern.
45886
45887 2014-01-08 Jakub Jelinek <jakub@redhat.com>
45888
45889 PR ipa/59722
45890 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
45891
45892 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
45893
45894 PR middle-end/57748
45895 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
45896 inner_reference_p.
45897 (expand_expr, expand_normal): Adjust.
45898 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
45899 inner_reference_p. Use inner_reference_p to expand inner references.
45900 (store_expr): Adjust.
45901 * cfgexpand.c (expand_call_stmt): Adjust.
45902
45903 2014-01-08 Rong Xu <xur@google.com>
45904
45905 * gcov-io.c (gcov_var): Move from gcov-io.h.
45906 (gcov_position): Ditto.
45907 (gcov_is_error): Ditto.
45908 (gcov_rewrite): Ditto.
45909 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
45910 only part to libgcc/libgcov.h.
45911
45912 2014-01-08 Marek Polacek <polacek@redhat.com>
45913
45914 PR middle-end/59669
45915 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
45916
45917 2014-01-08 Marek Polacek <polacek@redhat.com>
45918
45919 PR sanitizer/59667
45920 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
45921
45922 2014-01-08 Jakub Jelinek <jakub@redhat.com>
45923
45924 PR rtl-optimization/59649
45925 * stor-layout.c (get_mode_bounds): For BImode return
45926 0 and STORE_FLAG_VALUE.
45927
45928 2014-01-08 Richard Biener <rguenther@suse.de>
45929
45930 PR middle-end/59630
45931 * gimple.h (is_gimple_builtin_call): Remove.
45932 (gimple_builtin_call_types_compatible_p): New.
45933 (gimple_call_builtin_p): New overload.
45934 * gimple.c (is_gimple_builtin_call): Remove.
45935 (validate_call): Rename to ...
45936 (gimple_builtin_call_types_compatible_p): ... this and export. Also
45937 check return types.
45938 (validate_type): New static function.
45939 (gimple_call_builtin_p): New overload and adjust.
45940 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
45941 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
45942 (gimple_fold_stmt_to_constant_1): Likewise.
45943 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
45944
45945 2014-01-08 Richard Biener <rguenther@suse.de>
45946
45947 PR middle-end/59471
45948 * gimplify.c (gimplify_expr): Gimplify register-register type
45949 VIEW_CONVERT_EXPRs to separate stmts.
45950
45951 2014-01-07 Jeff Law <law@redhat.com>
45952
45953 PR middle-end/53623
45954 * ree.c (combine_set_extension): Handle case where source
45955 and destination registers in an extension insn are different.
45956 (combine_reaching_defs): Allow source and destination registers
45957 in extension to be different under limited circumstances.
45958 (add_removable_extension): Remove restriction that the
45959 source and destination registers in the extension are the same.
45960 (find_and_remove_re): Emit a copy from the extension's
45961 destination to its source after the defining insn if
45962 the source and destination registers are different.
45963
45964 PR middle-end/59285
45965 * ifcvt.c (merge_if_block): If we are merging a block with more than
45966 one successor with a block with no successors, remove any BARRIER
45967 after the second block.
45968
45969 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
45970
45971 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
45972
45973 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
45974
45975 PR target/59652
45976 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
45977 for 14-bit register offsets when INT14_OK_STRICT is false.
45978
45979 2014-01-07 Roland Stigge <stigge@antcom.de>
45980 Michael Meissner <meissner@linux.vnet.ibm.com>
45981
45982 PR 57386/target
45983 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
45984 Only check TFmode for SPE constants. Don't check TImode or TDmode.
45985
45986 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
45987
45988 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
45989 -mcpu.
45990
45991 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
45992
45993 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
45994 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
45995 rtx is const0_rtx or not.
45996
45997 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
45998
45999 PR target/58115
46000 * target-globals.c (save_target_globals): Remove this_fn_optab
46001 handling.
46002 * toplev.c: Include optabs.h.
46003 (target_reinit): Temporarily restore the global options if another
46004 set of options are in force.
46005
46006 2014-01-07 Jakub Jelinek <jakub@redhat.com>
46007
46008 PR rtl-optimization/58668
46009 * cfgcleanup.c (flow_find_cross_jump): Don't count
46010 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
46011 to determine what is counted.
46012 (flow_find_head_matching_sequence): Use active_insn_p to determine
46013 what is counted.
46014 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
46015 counting change.
46016 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
46017 determine what is counted.
46018
46019 PR tree-optimization/59643
46020 * tree-predcom.c (split_data_refs_to_components): If one dr is
46021 read and one write, determine_offset fails and the write isn't
46022 in the bad component, just put the read into the bad component.
46023
46024 2014-01-07 Mike Stump <mikestump@comcast.net>
46025 Jakub Jelinek <jakub@redhat.com>
46026
46027 PR pch/59436
46028 * tree-core.h (struct tree_optimization_option): Change optabs
46029 type from unsigned char * to void *.
46030 * optabs.c (init_tree_optimization_optabs): Adjust
46031 TREE_OPTIMIZATION_OPTABS initialization.
46032
46033 2014-01-06 Jakub Jelinek <jakub@redhat.com>
46034
46035 PR target/59644
46036 * config/i386/i386.h (struct machine_function): Add
46037 no_drap_save_restore field.
46038 * config/i386/i386.c (ix86_save_reg): Use
46039 !cfun->machine->no_drap_save_restore instead of
46040 crtl->stack_realign_needed.
46041 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
46042 this function clears frame_pointer_needed. Set
46043 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
46044 and DRAP reg is needed.
46045
46046 2014-01-06 Marek Polacek <polacek@redhat.com>
46047
46048 PR c/57773
46049 * doc/implement-c.texi: Mention that other integer types are
46050 permitted as bit-field types in strictly conforming mode.
46051
46052 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
46053
46054 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
46055 is newly allocated.
46056
46057 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
46058
46059 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
46060
46061 2014-01-06 Martin Jambor <mjambor@suse.cz>
46062
46063 PR ipa/59008
46064 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
46065 to int.
46066 * ipa-prop.c (ipa_print_node_params): Fix indentation.
46067
46068 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
46069
46070 PR debug/59350
46071 PR debug/59510
46072 * var-tracking.c (add_stores): Preserve the value of the source even if
46073 we don't record the store.
46074
46075 2014-01-06 Terry Guo <terry.guo@arm.com>
46076
46077 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
46078
46079 2014-01-05 Iain Sandoe <iain@codesourcery.com>
46080
46081 PR bootstrap/59541
46082 * config/darwin.c (darwin_function_section): Adjust return values to
46083 correspond to optimisation changes made in r206070.
46084
46085 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
46086
46087 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
46088 from prefetch_block tune setting.
46089 (nocona_cost): Correct size of prefetch block to 64.
46090
46091 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
46092
46093 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
46094 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
46095 used to save the static chain register in the computation of the offset
46096 from which the FP registers need to be restored.
46097
46098 2014-01-04 Jakub Jelinek <jakub@redhat.com>
46099
46100 PR tree-optimization/59519
46101 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
46102 ICE if get_current_def (current_new_name) is already non-NULL, as long
46103 as it is a phi result of some other phi in *new_exit_bb that has
46104 the same argument.
46105
46106 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
46107 or vmovdqu* for misaligned_operand.
46108 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
46109 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
46110 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
46111 aligned_mem for AVX512F masked aligned load and store builtins and for
46112 non-temporal moves.
46113
46114 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
46115
46116 PR tree-optimization/59651
46117 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
46118 Address range for negative step should be added by TYPE_SIZE_UNIT.
46119
46120 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
46121
46122 * config/m68k/m68k.c (handle_move_double): Handle pushes with
46123 overlapping registers also for registers other than the stack pointer.
46124
46125 2014-01-03 Marek Polacek <polacek@redhat.com>
46126
46127 PR other/59661
46128 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
46129 __builtin_FILE.
46130
46131 2014-01-03 Jakub Jelinek <jakub@redhat.com>
46132
46133 PR target/59625
46134 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
46135 asm goto as jump.
46136
46137 * config/i386/i386.md (MODE_SIZE): New mode attribute.
46138 (push splitter): Use <P:MODE_SIZE> instead of
46139 GET_MODE_SIZE (<P:MODE>mode).
46140 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
46141 (mov -1, reg peephole2): Likewise.
46142 * config/i386/sse.md (*mov<mode>_internal,
46143 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
46144 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
46145 *<code><mode>3, *andnot<mode>3<mask_name>,
46146 <mask_codefor><code><mode>3<mask_name>): Likewise.
46147 * config/i386/subst.md (mask_mode512bit_condition,
46148 sd_mask_mode512bit_condition): Likewise.
46149
46150 2014-01-02 Xinliang David Li <davidxl@google.com>
46151
46152 PR tree-optimization/59303
46153 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
46154 (dump_predicates): Better output format.
46155 (pred_equal_p): New function.
46156 (is_neq_relop_p): Ditto.
46157 (is_neq_zero_form_p): Ditto.
46158 (pred_expr_equal_p): Ditto.
46159 (pred_neg_p): Ditto.
46160 (simplify_pred): Ditto.
46161 (simplify_preds_2): Ditto.
46162 (simplify_preds_3): Ditto.
46163 (simplify_preds_4): Ditto.
46164 (simplify_preds): Ditto.
46165 (push_pred): Ditto.
46166 (push_to_worklist): Ditto.
46167 (get_pred_info_from_cmp): Ditto.
46168 (is_degenerated_phi): Ditto.
46169 (normalize_one_pred_1): Ditto.
46170 (normalize_one_pred): Ditto.
46171 (normalize_one_pred_chain): Ditto.
46172 (normalize_preds): Ditto.
46173 (normalize_cond_1): Remove function.
46174 (normalize_cond): Ditto.
46175 (is_gcond_subset_of): Ditto.
46176 (is_subset_of_any): Ditto.
46177 (is_or_set_subset_of): Ditto.
46178 (is_and_set_subset_of): Ditto.
46179 (is_norm_cond_subset_of): Ditto.
46180 (pred_chain_length_cmp): Ditto.
46181 (convert_control_dep_chain_into_preds): Type change.
46182 (find_predicates): Ditto.
46183 (find_def_preds): Ditto.
46184 (destroy_predicates_vecs): Ditto.
46185 (find_matching_predicates_in_rest_chains): Ditto.
46186 (use_pred_not_overlap_with_undef_path_pred): Ditto.
46187 (is_pred_expr_subset): Ditto.
46188 (is_pred_chain_subset_of): Ditto.
46189 (is_included_in): Ditto.
46190 (is_superset_of): Ditto.
46191
46192 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
46193
46194 Update copyright years.
46195
46196 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
46197
46198 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
46199 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
46200 config/arc/arc.md, config/arc/arc.opt,
46201 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
46202 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
46203 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
46204 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
46205 config/linux-protos.h, config/linux.c, config/winnt-c.c,
46206 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
46207 vtable-verify.c, vtable-verify.h: Use the standard form for the
46208 copyright notice.
46209
46210 2014-01-02 Tobias Burnus <burnus@net-b.de>
46211
46212 * gcc.c (process_command): Update copyright notice dates.
46213 * gcov-dump.c: Ditto.
46214 * gcov.c: Ditto.
46215 * doc/cpp.texi: Bump @copying's copyright year.
46216 * doc/cppinternals.texi: Ditto.
46217 * doc/gcc.texi: Ditto.
46218 * doc/gccint.texi: Ditto.
46219 * doc/gcov.texi: Ditto.
46220 * doc/install.texi: Ditto.
46221 * doc/invoke.texi: Ditto.
46222
46223 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
46224
46225 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
46226
46227 2014-01-01 Jakub Jelinek <jakub@redhat.com>
46228
46229 * config/i386/sse.md (*mov<mode>_internal): Guard
46230 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
46231
46232 PR rtl-optimization/59647
46233 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
46234 new_rtx into UNSIGNED_FLOAT rtxes.
46235 \f
46236 Copyright (C) 2014 Free Software Foundation, Inc.
46237
46238 Copying and distribution of this file, with or without modification,
46239 are permitted in any medium without royalty provided the copyright
46240 notice and this notice are preserved.