71828c2299de6af33d7ddec2f9583821eda925fa
[gcc.git] / gcc / ChangeLog
1 2014-11-27 Richard Biener <rguenther@suse.de>
2
3 PR tree-optimization/64083
4 * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
5 forcibly mark loop for removal the wrong way.
6
7 2014-11-27 Richard Biener <rguenther@suse.de>
8
9 PR middle-end/63704
10 * alias.c (mems_in_disjoint_alias_sets_p): Remove assert
11 and instead return false when !fstrict-aliasing.
12
13 2014-11-27 Richard Biener <rguenther@suse.de>
14
15 PR tree-optimization/61634
16 * tree-vect-slp.c: Include gimple-walk.h.
17 (vect_detect_hybrid_slp_stmts): Rewrite to propagate hybrid
18 down the SLP tree for one scalar statement.
19 (vect_detect_hybrid_slp_1): New walker function.
20 (vect_detect_hybrid_slp_2): Likewise.
21 (vect_detect_hybrid_slp): Properly handle pattern statements
22 in a pre-scan over all loop stmts.
23
24 2014-11-27 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25
26 Revert:
27 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
29 aarch64_convert_mode, aarch64_gen_ccmp_first,
30 aarch64_gen_ccmp_next): New functions.
31 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
32
33 2014-11-26 Jakub Jelinek <jakub@redhat.com>
34
35 * gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread
36 without -pie or -shared, error on -fsanitize=thread -static instead.
37
38 2014-11-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
39
40 PR ipa/61190
41 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Fix comment.
42 (cgraph_node::function_or_virtual_thunk_symbol): New function.
43 (cgraph_node::call_for_symbol_and_aliases): Fix comment.
44 (cgraph_node::call_for_symbol_thunks_and_aliases): Adjust comment.
45 Add new optional parameter exclude_virtual_thunks.
46 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Add new
47 optional parameter exclude_virtual_thunks.
48 (cgraph_node::set_const_flag): Don't propagate to virtual thunks.
49 (cgraph_node::set_pure_flag): Likewise.
50 (cgraph_node::function_symbol): Simplified.
51 (cgraph_node::function_or_virtual_thunk_symbol): New function.
52 * ipa-pure-const.c (analyze_function): For virtual thunks set
53 pure_const_state to IPA_NEITHER.
54 (propagate_pure_const): Use function_or_virtual_thunk_symbol.
55
56 2014-11-26 Richard Biener <rguenther@suse.de>
57
58 PR middle-end/63738
59 * tree-data-ref.c (split_constant_offset_1): Do not follow
60 SSA edges for SSA names with SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
61
62 2014-11-26 Richard Biener <rguenther@suse.de>
63
64 * fold-const.h (const_unop): Declare.
65 (const_binop): Likewise.
66 * fold-const.c (const_binop): Export overload that expects
67 a type parameter and dispatches to fold_relational_const as well.
68 Check both operand kinds for guarding the transforms.
69 (const_unop): New function, with constant folding from fold_unary_loc.
70 (fold_unary_loc): Dispatch to const_unop for tcc_constant operand.
71 Remove constant folding done there from the simplifications.
72 (fold_binary_loc): Check for constants using CONSTANT_CLASS_P.
73 (fold_negate_expr): Remove dead code from the REAL_CST case.
74 Avoid building garbage in the COMPLEX_CST case.
75 * gimple-match-head.c (gimple_resimplify1): Dispatch to
76 const_unop.
77 (gimple_resimplify2): Dispatch to const_binop.
78 (gimple_simplify): Likewise.
79
80 2014-11-26 Ilya Enkovich <ilya.enkovich@intel.com>
81
82 PR bootstrap/63995
83 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Ignore
84 debug statement when searching for a new position for
85 bounds load/creation statement.
86
87 2014-11-26 Marek Polacek <polacek@redhat.com>
88
89 PR sanitizer/63788
90 * asan.c (initialize_sanitizer_builtins): Add BT_FN_SIZE_CONST_PTR_INT
91 var. Conditionally build BUILT_IN_OBJECT_SIZE decl.
92 (ATTR_PURE_NOTHROW_LEAF_LIST): Define.
93
94 2014-11-26 Ilya Enkovich <ilya.enkovich@intel.com>
95
96 PR lto/64075
97 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Use
98 proper size for function_code bitfield.
99 (pack_ts_function_decl_value_fields): Likewise.
100
101 2014-11-21 Mark Wielaard <mjw@redhat.com>
102
103 * doc/invoke.texi (-gdwarf-@{version}): Mention experimental DWARFv5.
104 * opts.c (common_handle_option): Accept -gdwarf-5.
105 * dwarf2out.c (is_cxx): Add DW_LANG_C_plus_plus_11 and
106 DW_LANG_C_plus_plus_14.
107 (lower_bound_default): Likewise. Plus DW_LANG_C11.
108 (gen_compile_unit_die): Output DW_LANG_C_plus_plus_11,
109 DW_LANG_C_plus_plus_14 or DW_LANG_C11.
110 (output_compilation_unit_header): Output at most a DWARFv4 header.
111 (output_skeleton_debug_sections): Likewise.
112 (output_line_info): Likewise.
113 (output_aranges): Document header version number.
114
115 2014-11-26 Richard Biener <rguenther@suse.de>
116
117 * gimple-fold.c (get_symbol_constant_value): Allow all
118 GIMPLE register type zero-constants.
119
120 2014-11-26 Mark Wielaard <mjw@redhat.com>
121
122 * dwarf2out.c (gen_subprogram_die): Add DW_AT_noreturn when the
123 function decl has TREE_THIS_VOLATILE.
124
125 2014-11-26 Richard Biener <rguenther@suse.de>
126
127 PR tree-optimization/62238
128 * tree-predcom.c (ref_at_iteration): Unshare the expression
129 before gimplifying it.
130 (prepare_initializers_chain): Discard unused seq.
131
132 2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
133
134 * ira-lives.c (process_bb_node_lives): Make code with conditional
135 REAL_PIC_OFFSET_TABLE_REGNUM.
136
137 2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
138
139 PR target/63527
140 * ira-lives.c (process_bb_node_lives): Check and remove conflict
141 of pic pseudo with pic hard reg.
142
143 2014-11-25 Rohit <rohitarulraj@freescale.com>
144
145 PR bootstrap/63703
146 * config/rs6000/darwin.h (REGISTER_NAMES): Update based on 32 newly
147 added GCC hard register numbers for SPE high registers.
148
149 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
150
151 * bt-load.c (migrate_btr_defs): Get the key of a heap entry
152 before removing it, not after.
153
154 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
155
156 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Remove
157 PATTERN call.
158
159 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
160
161 * config/rs6000/sysv4.h (ASM_OUTPUT_REG_POP): Use addi instead
162 of addic.
163
164 2014-11-25 Segher Boessenkool <segher@kernel.crashing.org>
165
166 * config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs.
167 (rest of file): Replace those with code resp. CODE.
168
169 2014-11-25 Tom de Vries <tom@codesourcery.com>
170
171 * tree-cfg.c (verify_sese): New function.
172 (move_sese_region_to_fn): Call verify_sese.
173 * tree-cfg.h (verify_sese): Declare.
174
175 2014-11-25 Richard Biener <rguenther@suse.de>
176
177 PR lto/64065
178 * lto-streamer-out.c (output_struct_function_base): Stream
179 last_clique field.
180 * lto-streamer-in.c (input_struct_function_base): Likewise.
181
182 2014-11-25 Martin Liska <mliska@suse.cz>
183
184 PR bootstrap/64050
185 PR ipa/64060
186 * sreal.c (sreal::operator+): Addition fixed.
187 (sreal::signedless_plus): Negative numbers are
188 handled correctly.
189 (sreal::operator-): Subtraction is fixed.
190 (sreal::signedless_minus): Negative numbers are
191 handled correctly.
192 * sreal.h (sreal::operator<): Equal negative numbers
193 are compared correctly.
194 (sreal::shift): New checking asserts are introduced.
195 Operation is fixed.
196
197 2014-11-25 Richard Biener <rguenther@suse.de>
198
199 PR tree-optimization/61927
200 * tree-vect-loop.c (vect_analyze_loop_2): Revert ordering
201 of group and pattern analysis to the one in GCC 4.8.
202
203 2014-11-25 Ilya Tocar <ilya.tocar@intel.com>
204 Jakub Jelinek <jakub@redhat.com>
205
206 * gcc.c (handle_foffload_option): Remove unnecessary calls to strchr,
207 strlen, strncpy.
208 * lto-wrapper.c (append_offload_options): Likewise.
209
210 2014-11-25 Eric Botcazou <ebotcazou@adacore.com>
211
212 * config/rs6000/rs6000.c (rs6000_call_aix): For the AIX ABI, do not
213 load the static chain if the call was originally direct.
214
215 2014-11-25 Jan Hubicka <hubicka@ucw.cz>
216
217 PR ipa/64059
218 * ipa-prop.c (ipa_analyze_call_uses): Don't call get_dynamic_type when
219 devirtualization is disabled.
220
221 2014-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
222
223 PR target/63965
224 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
225 Altivec & -16 mask if the type is not valid for Altivec registers.
226 (rs6000_secondary_reload_memory): Add support for ((reg + const) +
227 reg) that occurs during push_reload processing.
228
229 * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
230 alternative for moving constant vectors which are easy altivec
231 constants to GPRs. Set the length attribute each of the
232 alternatives.
233
234 * config/rs6000/rs6000-cpus.def: Undo November 21st changes, a
235 work in progress patch was committed instead of the fixes for
236 63965.
237 * config/rs6000/rs6000.c: Likewise.
238
239 2014-11-22 Jan Hubicka <hubicka@ucw.cz>
240
241 PR ipa/63671
242 * ipa-inline-transform.c (can_remove_node_now_p_1): Handle alises
243 and -fno-devirtualize more carefully.
244 (can_remove_node_now_p): Update.
245
246 2014-11-24 Andrew Pinski <apinski@cavium.com>
247
248 PR rtl-opt/63972
249 * shrink-wrap.c (move_insn_for_shrink_wrap): Allow LO_SUM also.
250
251 2014-11-24 Alan Lawrence <alan.lawrence@arm.com>
252
253 * config/aarch64/aarch64-simd.md (vec_shr<mode>): New.
254
255 2014-11-24 Alan Lawrence <alan.lawrence@arm.com>
256
257 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
258 Refactor by combining switch statements and make arrays into scalars.
259
260 2014-11-24 David Edelsohn <dje.gcc@gmail.com>
261
262 PR c++/58561
263 * dbxout.c: Include stringpool.h
264 (dbxout_type) [default]: Ignore auto type.
265
266 2014-11-24 Richard Biener <rguenther@suse.de>
267
268 PR tree-optimization/63679
269 * tree-ssa-sccvn.c: Include ipa-ref.h, plugin-api.h and cgraph.h.
270 (copy_reference_ops_from_ref): Fix non-constant ADDR_EXPR case
271 to properly leave off at -1.
272 (fully_constant_vn_reference_p): Generalize folding from
273 constant initializers.
274 (vn_reference_lookup_3): When looking through aggregate copies
275 handle offsetted reads and try simplifying the result to
276 a constant.
277 * gimple-fold.h (fold_ctor_reference): Export.
278 * gimple-fold.c (fold_ctor_reference): Likewise.
279
280 2014-11-24 Petr Murzin <petr.murzin@intel.com>
281
282 * simplify-rtx.c (simplify_ternary_operation): Simplify
283 vec_merge (vec_duplicate (vec_select)).
284
285 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
286
287 * config/aarch64/aarch64.c (AARCH64_FUSE_ADRP_LDR): Define.
288 (cortexa53_tunings): Specify AARCH64_FUSE_ADRP_LDR in fuseable_ops.
289 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_LDR.
290
291 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
292
293 * config/aarch64/aarch64.c (AARCH64_FUSE_MOVK_MOVK): Define.
294 (cortexa53_tunings): Specify AARCH64_FUSE_MOVK_MOVK in fuseable_ops.
295 (cortexa57_tunings): Likewise.
296 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_MOVK_MOVK.
297
298 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
299
300 * sched-deps.c (sched_macro_fuse_insns): Do not check modified_in_p
301 in the not conditional jump case.
302 * doc/tm.texi (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
303 * target.def (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
304
305 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
306
307 * config/aarch64/aarch64.c: Include tm-constrs.h
308 (AARCH64_FUSE_ADRP_ADD): Define.
309 (cortexa57_tunings): Add AARCH64_FUSE_ADRP_ADD to fuseable_ops.
310 (cortexa53_tunings): Likewise.
311 (aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_ADD.
312
313 2014-11-24 Martin Liska <mliska@suse.cz>
314
315 * ipa-inline.c (edge_badness): long is replaced by sreal
316 as fibonacci_heap template type.
317 (update_edge_key): Likewise.
318 (inline_small_functions): Likewise.
319
320 2014-11-24 Martin Liska <mliska@suse.cz>
321
322 * predict.c (propagate_freq): More elegant sreal API is used.
323 (estimate_bb_frequencies): Precomputed constants replaced by integer
324 constants.
325 * sreal.c (sreal::normalize): New function.
326 (sreal::to_int): Likewise.
327 (sreal::operator+): Likewise.
328 (sreal::operator-): Likewise.
329 (sreal::signedless_plus): Likewise.
330 (sreal::signedless_minus): Likewise.
331 (sreal::operator/): Negative number support is added.
332 * sreal.h: Definition of new functions added.
333 (inline sreal operator<<): New function.
334 (inline sreal operator>>): Likewise.
335
336 2014-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
337
338 * config/aarch64/aarch64-protos.h (struct tune_params): Add
339 fuseable_ops field.
340 * config/aarch64/aarch64.c (generic_tunings): Specify fuseable_ops.
341 (cortexa53_tunings): Likewise.
342 (cortexa57_tunings): Likewise.
343 (thunderx_tunings): Likewise.
344 (aarch64_macro_fusion_p): New function.
345 (aarch_macro_fusion_pair_p): Likewise.
346 (TARGET_SCHED_MACRO_FUSION_P): Define.
347 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
348 (AARCH64_FUSE_MOV_MOVK): Likewise.
349 (AARCH64_FUSE_NOTHING): Likewise.
350
351 2014-11-24 Martin Liska <mliska@suse.cz>
352
353 PR lto/63968
354 * bb-reorder.c (find_traces_1_round): decreate_key is replaced
355 with replace_key method.
356 * fibonacci_heap.h (fibonacci_heap::insert): New argument.
357 (fibonacci_heap::replace_key_data): Likewise.
358 (fibonacci_heap::replace_key): New method that can even increment key,
359 this operation costs O(log N).
360 (fibonacci_heap::extract_min): New argument.
361 (fibonacci_heap::delete_node): Likewise.
362
363 2014-11-24 Richard Biener <rguenther@suse.de>
364
365 PR tree-optimization/55334
366 * function.h (struct function): Add last_clique member.
367 * tree-inline.c (remap_dependence_clique): New function.
368 (remap_gimple_op_r): Remap dependence cliques in MEM_REFs.
369 (copy_tree_body_r): Likewise.
370 (copy_cfg_body): Free dependence map.
371 (copy_gimple_seq_and_replace_locals): Likewise.
372 * tree-pretty-print.c (dump_generic_node): Dump
373 dependence info.
374 * tree-ssa-alias.c (refs_may_alias_p_1): Use dependence info
375 to answer alias query.
376 * tree-ssa-structalias.c: Include tree-phinodes.h, ssa-iterators.h,
377 tree-pretty-print.h and gimple-walk.h.
378 (struct variable_info): Add is_restrict_var flag and ruid
379 member.
380 (new_var_info): Initialize is_restrict_var.
381 (make_constraint_from_restrict): Likewise.
382 (create_variable_info_for): Exclude restricts from global vars
383 from new handling.
384 (intra_create_variable_infos): But not those from parameters.
385 (visit_loadstore): New function.
386 (maybe_set_dependence_info): Likewise.
387 (compute_dependence_clique): Likewise.
388 (compute_may_aliases): Call compute_dependence_clique.
389 * tree-data-ref.c (dr_analyze_indices): Copy dependence info
390 to fake MEM_REF.
391 (dr_may_alias_p): Use recorded dependence info to answer
392 alias query.
393 * tree-core.h (struct tree_base): Add clique, base struct in
394 union.
395 * tree.h (MR_DEPENDENCE_CLIQUE): New macro.
396 (MR_DEPENDENCE_BASE): Likewise.
397 * tree-inline.h (dependence_hasher): New hash-map kind.
398 (struct copy_body_data): Add dependence_map pointer.
399 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Avoid
400 throwing away dependence info.
401 * tree-streamer-in.c (unpack_value_fields): Stream dependence info.
402 * tree-streamer-out.c (streamer_pack_tree_bitfields): Likewise.
403
404 2014-11-23 Oleg Endo <olegendo@gcc.gnu.org>
405
406 PR target/53976
407 * config/sh/sh_optimize_sett_clrt.cc
408 (sh_optimize_sett_clrt::find_last_ccreg_values): Return bool instead
409 of void. Abort at complex edges.
410 (sh_optimize_sett_clrt::execute): Do nothing if find_last_ccreg_values
411 returned false.
412
413 2014-11-22 John David Anglin <danglin@gcc.gnu.org>
414
415 PR other/63694
416 * configure.ac: Check for strtol, strtoul, strtoll and strtoull
417 declarations.
418 * configure: Regenerated.
419 * config.in: Regenerated.
420
421 2014-11-22 Jan Hubicka <hubicka@ucw.cz>
422
423 * ipa.c (symbol_table::remove_unreachable_nodes): Mark all inline
424 clones as having abstract origin used.
425 * ipa-inline-transform.c (can_remove_node_now_p_1): Drop abstract
426 origin check.
427 (clone_inlined_nodes): Copy abstract originflag.
428 * lto-cgraph.c (compute_ltrans_boundary): Use get_create to get
429 abstract origin node.
430
431 2014-11-22 Uros Bizjak <ubizjak@gmail.com>
432
433 * params.def (PARAM_MAX_COMPLETELY_PEELED_INSNS): Increase to 200.
434 * config/i386/i386.c (ix86_option_override_internal): Do not increase
435 PARAM_MAX_COMPLETELY_PEELED_INSNS.
436
437 2014-11-22 Oleg Endo <olegendo@gcc.gnu.org>
438
439 PR target/63783
440 PR target/51244
441 * config/sh/sh_treg_combine.cc (sh_treg_combine::make_not_reg_insn):
442 Do not emit bitwise not insn. Emit logical not insn sequence instead.
443 Adjust related comments throughout the file.
444
445 2014-11-22 Oleg Endo <olegendo@gcc.gnu.org>
446
447 PR target/63986
448 PR target/51244
449 * config/sh/sh.c (sh_is_logical_t_store_expr,
450 sh_try_omit_signzero_extend): Use rtx_insn* for insn argument.
451 (sh_split_movrt_negc_to_movt_xor): New function.
452 (sh_find_set_of_reg): Move to ...
453 * config/sh/sh-protos.h (sh_find_set_of_reg): ... here and convert
454 to template function.
455 (set_of_reg): Use rtx_insn* for insn member.
456 (sh_is_logical_t_store_expr, sh_try_omit_signzero_extend): Use
457 rtx_insn* for insn argument.
458 * config/sh/sh.md (movrt_negc, *movrt_negc): Split into movt-xor
459 sequence using new sh_split_movrt_negc_to_movt_xor function.
460 (movrt_xor): Allow also for SH2A.
461 (*movt_movrt): Delete insns and splits.
462
463 2014-11-22 Marc Glisse <marc.glisse@inria.fr>
464
465 PR tree-optimization/60770
466 * tree-sra.c (clobber_subtree): New function.
467 (sra_modify_constructor_assign): Call it.
468
469 2014-11-21 Vladimir Makarov <vmakarov@redhat.com>
470
471 PR target/63897
472 * lra-lives.c (mark_regno_live, mark_regno_dead): Remove last
473 argument.
474 (process_bb_lives): Rename dead_insn_p on remove_p
475 and global_live_info_p on dead_insn_p. Calculate local live info
476 unconditionally. Remove last argument in calls mark_regno_live and
477 mark_regno_dead. Reorganize body of EXECUTE_IF_SET_IN_BITMAP.
478 (lra_create_live_ranges): Rename to lra_create_live_ranges_1.
479 Return bool. Rename global_live_info_p on dead_insn_p. Return
480 flag of live info change.
481 (lra_create_live_ranges): New.
482
483 2014-11-21 Jakub Jelinek <jakub@redhat.com>
484
485 PR target/63848
486 PR target/63975
487 * internal-fn.c (expand_arith_overflow_result_store,
488 expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow): Use
489 do_compare_rtx_and_jump instead of emit_cmp_and_jump_insns everywhere,
490 adjust arguments to those functions. Use unsignedp = true for
491 EQ, NE, GEU, LEU, LTU and GTU comparisons.
492
493 PR tree-optimization/64006
494 * tree-vrp.c (stmt_interesting_for_vrp): Return true
495 for {ADD,SUB,MUL}_OVERFLOW internal calls.
496 (vrp_visit_assignment_or_call): For {ADD,SUB,MUL}_OVERFLOW
497 internal calls, check if any REALPART_EXPR/IMAGPART_EXPR
498 immediate uses would change their value ranges and return
499 SSA_PROP_INTERESTING if so, or SSA_PROP_NOT_INTERESTING
500 if there are some REALPART_EXPR/IMAGPART_EXPR immediate uses
501 interesting for vrp.
502
503 2014-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
504
505 PR target/63965
506 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
507 Altivec & -16 mask if the type is not valid for Altivec registers.
508 (rs6000_secondary_reload_memory): Add support for ((reg + const) +
509 reg) that occurs during push_reload processing.
510
511 * config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
512 alternative for moving constant vectors which are easy altivec
513 constants to GPRs. Set the length attribute each of the
514 alternatives.
515
516 2014-11-21 Matthew Fortune <matthew.fortune@imgtec.com>
517
518 * configure.ac: When checking for MIPS .module support ensure that
519 o32 FPXX is supported to avoid a second configure check.
520 * configure: Regenerate.
521
522 2014-11-21 Jiong Wang <jiong.wang@arm.com>
523
524 * config/aarch64/iterators.md (VS): New mode iterator.
525 (vsi2qi): New mode attribute.
526 (VSI2QI): Likewise.
527 * config/aarch64/aarch64-simd-builtins.def: New entry for ctz.
528 * config/aarch64/aarch64-simd.md (ctz<mode>2): New pattern for ctz.
529 * config/aarch64/aarch64-builtins.c
530 (aarch64_builtin_vectorized_function): Support BUILT_IN_CTZ.
531
532 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
533
534 PR bootstrap/63784
535 * configure: Regenerated.
536
537 2014-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
538
539 * config/aarch64/arm_neon.h (vsqrt_f64): New intrinsic.
540
541 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
542
543 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
544 OPTION_MASK_ISA_PCOMMIT_SET): New.
545 (ix86_handle_option): Handle OPT_mpcommit.
546 * config.gcc: Add pcommitintrin.h
547 * config/i386/pcommitintrin.h: New file.
548 * config/i386/cpuid.h (bit_PCOMMIT): Define.
549 * config/i386/driver-i386.c (host_detect_local_cpu): Detect pcommit.
550 * config/i386/i386-c.c (ix86_target_macros_internal): Define
551 __PCOMMIT__.
552 * config/i386/i386.c (ix86_target_string): Add -mpcommit.
553 (PTA_PCOMMIT): Define.
554 (ix86_option_override_internal): Handle new option.
555 (ix86_valid_target_attribute_inner_p): Add pcommit.
556 (ix86_builtins): Add IX86_BUILTIN_PCOMMIT.
557 (bdesc_special_args): Add __builtin_ia32_pcommit.
558 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Define.
559 * config/i386/i386.md (unspecv): Add UNSPECV_PCOMMIT.
560 (pcommit): New instruction.
561 * config/i386/i386.opt: Add mpcommit.
562 * config/i386/x86intrin.h: Include pcommitintrin.h.
563
564 2014-11-20 Mark Wielaard <mjw@redhat.com>
565
566 PR debug/38757
567 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use lang_GNU_C.
568 * config/darwin.c (darwin_file_end): Use lang_GNU_CXX.
569 (darwin_override_options): Likewise.
570 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
571 Likewise.
572 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
573 Likewise.
574 * dbxout.c (get_lang_number): Likewise.
575 (dbxout_type): Likewise.
576 (dbxout_symbol_location): Likewise.
577 * dwarf2out.c (add_prototyped_attribute): Add DW_AT_prototype
578 also for DW_LANG_{C,C99,ObjC}.
579 (highest_c_language): New function.
580 (gen_compile_unit_die): Call highest_c_language to merge LTO
581 TRANSLATION_UNIT_LANGUAGE. Use strncmp language_string to
582 determine if DW_LANG_C99 or DW_LANG_C89 should be returned.
583 * fold-const.c (fold_cond_expr_with_comparison): Use lang_GNU_CXX.
584 * langhooks.h (struct lang_hooks): Add version comment to name.
585 (lang_GNU_C): New function declaration.
586 (lang_GNU_CXX): Likewise.
587 * langhooks.c (lang_GNU_C): New function.
588 (lang_GNU_CXX): Likewise.
589 * vmsdbgout.c (vmsdbgout_init): Use lang_GNU_C and lang_GNU_CXX.
590
591 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
592
593 * common/config/i386/i386-common.c (OPTION_MASK_ISA_CLWB_UNSET,
594 OPTION_MASK_ISA_CLWB_SET): New.
595 (ix86_handle_option): Handle OPT_mclwb.
596 * config.gcc: Add clwbintrin.h.
597 * config/i386/clwbintrin.h: New file.
598 * config/i386/cpuid.h (bit_CLWB): Define.
599 * config/i386/driver-i386.c (host_detect_local_cpu): Detect clwb.
600 * config/i386/i386-c.c (ix86_target_macros_internal): Define
601 __CLWB__.
602 * config/i386/i386.c (ix86_target_string): Add -mclwb.
603 (PTA_CLWB): Define.
604 (ix86_option_override_internal): Handle new option.
605 (ix86_valid_target_attribute_inner_p): Add clwb.
606 (ix86_builtins): Add IX86_BUILTIN_CLWB.
607 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clwb.
608 (ix86_expand_builtin): Handle IX86_BUILTIN_CLWB.
609 * config/i386/i386.h (TARGET_CLWB, TARGET_CLWB_P): Define.
610 * config/i386/i386.md (unspecv): Add UNSPECV_CLWB.
611 (clwb): New instruction.
612 * config/i386/i386.opt: Add mclwb.
613 * config/i386/x86intrin.h: Include clwbintrin.h.
614
615 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
616
617 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET
618 OPTION_MASK_ISA_AVX512VBMI_UNSET): New.
619 (ix86_handle_option): Handle OPT_mavx512vbmi.
620 * config.gcc: Add avx512vbmiintrin.h, avx512vbmivlintrin.h.
621 * config/i386/avx512vbmiintrin.h: New file.
622 * config/i386/avx512vbmivlintrin.h: Ditto.
623 * config/i386/cpuid.h (bit_AVX512VBMI): New.
624 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vbmi.
625 * config/i386/i386-c.c (ix86_target_macros_internal): Define
626 __AVX512VBMI__.
627 * config/i386/i386.c (ix86_target_string): Add -mavx512vbmi.
628 (PTA_AVX512VBMI): Define.
629 (ix86_option_override_internal): Handle new options.
630 (ix86_valid_target_attribute_inner_p): Add avx512vbmi,
631 (ix86_builtins): Add IX86_BUILTIN_VPMULTISHIFTQB512,
632 IX86_BUILTIN_VPMULTISHIFTQB256, IX86_BUILTIN_VPMULTISHIFTQB128,
633 IX86_BUILTIN_VPERMVARQI512_MASK, IX86_BUILTIN_VPERMT2VARQI512,
634 IX86_BUILTIN_VPERMT2VARQI512_MASKZ, IX86_BUILTIN_VPERMI2VARQI512,
635 IX86_BUILTIN_VPERMVARQI256_MASK, IX86_BUILTIN_VPERMVARQI128_MASK,
636 IX86_BUILTIN_VPERMT2VARQI256, IX86_BUILTIN_VPERMT2VARQI256_MASKZ,
637 IX86_BUILTIN_VPERMT2VARQI128, IX86_BUILTIN_VPERMI2VARQI256,
638 IX86_BUILTIN_VPERMI2VARQI128.
639 (bdesc_special_args): Add __builtin_ia32_vpmultishiftqb512_mask,
640 __builtin_ia32_vpmultishiftqb256_mask,
641 __builtin_ia32_vpmultishiftqb128_mask,
642 __builtin_ia32_permvarqi512_mask, __builtin_ia32_vpermt2varqi512_mask,
643 __builtin_ia32_vpermt2varqi512_maskz,
644 __builtin_ia32_vpermi2varqi512_mask, __builtin_ia32_permvarqi256_mask,
645 __builtin_ia32_permvarqi128_mask, __builtin_ia32_vpermt2varqi256_mask,
646 __builtin_ia32_vpermt2varqi256_maskz,
647 __builtin_ia32_vpermt2varqi128_mask,
648 __builtin_ia32_vpermt2varqi128_maskz,
649 __builtin_ia32_vpermi2varqi256_mask,
650 __builtin_ia32_vpermi2varqi128_mask.
651 (ix86_hard_regno_mode_ok): Allow big masks for AVX512VBMI.
652 * config/i386/i386.h (TARGET_AVX512VBMI, TARGET_AVX512VBMI_P): Define.
653 * config/i386/i386.opt: Add mavx512vbmi.
654 * config/i386/immintrin.h: Include avx512vbmiintrin.h,
655 avx512vbmivlintrin.h.
656 * config/i386/sse.md (unspec): Add UNSPEC_VPMULTISHIFT.
657 (VI1_AVX512VL): New iterator.
658 (<avx512>_permvar<mode><mask_name>): Use it.
659 (<avx512>_vpermi2var<mode>3_maskz): Ditto.
660 (<avx512>_vpermi2var<mode>3<sd_maskz_name>): Ditto.
661 (<avx512>_vpermi2var<mode>3_mask): Ditto.
662 (<avx512>_vpermt2var<mode>3_maskz): Ditto.
663 (<avx512>_vpermt2var<mode>3<sd_maskz_name>): Ditto.
664 (<avx512>_vpermt2var<mode>3_mask): Ditto.
665 (vpmultishiftqb<mode><mask_name>): Ditto.
666
667 2014-11-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
668
669 PR rtl-optimization/63952
670 * optabs.c (prepare_cmp_insn): Do not call can_compare_p for CCmode.
671 * config/s390/s390.md ("cbranchcc4"): Accept any s390_comparison.
672 Remove incorrect TARGET_HARD_FLOAT check and no-op expander code.
673
674 2014-11-21 Ilya Tocar <ilya.tocar@intel.com>
675
676 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512IFMA_SET,
677 OPTION_MASK_ISA_AVX512IFMA_UNSET): New.
678 (ix86_handle_option): Handle OPT_mavx512ifma.
679 * config.gcc: Add avx512ifmaintrin.h, avx512ifmavlintrin.h.
680 * config/i386/avx512ifmaintrin.h: New file.
681 * config/i386/avx512ifmaivlntrin.h: Ditto.
682 * config/i386/cpuid.h (bit_AVX512IFMA): New.
683 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
684 avx512ifma.
685 * config/i386/i386-c.c (ix86_target_macros_internal): Define
686 __AVX512IFMA__.
687 * config/i386/i386.c (ix86_target_string): Add -mavx512ifma.
688 (PTA_AVX512IFMA): Define.
689 (ix86_option_override_internal): Handle new options.
690 (ix86_valid_target_attribute_inner_p): Add avx512ifma.
691 (ix86_builtins): Add IX86_BUILTIN_VPMADD52LUQ512,
692 IX86_BUILTIN_VPMADD52HUQ512, IX86_BUILTIN_VPMADD52LUQ256,
693 IX86_BUILTIN_VPMADD52HUQ256, IX86_BUILTIN_VPMADD52LUQ128,
694 IX86_BUILTIN_VPMADD52HUQ128, IX86_BUILTIN_VPMADD52LUQ512_MASKZ,
695 IX86_BUILTIN_VPMADD52HUQ512_MASKZ, IX86_BUILTIN_VPMADD52LUQ256_MASKZ,
696 IX86_BUILTIN_VPMADD52HUQ256_MASKZ, IX86_BUILTIN_VPMADD52LUQ128_MASKZ,
697 IX86_BUILTIN_VPMADD52HUQ128_MASKZ.
698 (bdesc_special_args): Add __builtin_ia32_vpmadd52luq512_mask,
699 __builtin_ia32_vpmadd52luq512_maskz,
700 __builtin_ia32_vpmadd52huq512_mask,
701 __builtin_ia32_vpmadd52huq512_maskx,
702 __builtin_ia32_vpmadd52luq256_mask,
703 __builtin_ia32_vpmadd52luq256_maskz,
704 __builtin_ia32_vpmadd52huq256_mask,
705 __builtin_ia32_vpmadd52huq256_maskz,
706 __builtin_ia32_vpmadd52luq128_mask,
707 __builtin_ia32_vpmadd52luq128_maskz,
708 __builtin_ia32_vpmadd52huq128_mask,
709 __builtin_ia32_vpmadd52huq128_maskz,
710 * config/i386/i386.h (TARGET_AVX512IFMA, TARGET_AVX512IFMA_P): Define.
711 * config/i386/i386.opt: Add mavx512ifma.
712 * config/i386/immintrin.h: Include avx512ifmaintrin.h,
713 avx512ifmavlintrin.h.
714 * config/i386/sse.md (unspec): Add UNSPEC_VPMADD52LUQ,
715 UNSPEC_VPMADD52HUQ.
716 (VPMADD52): New iterator.
717 (vpmadd52type): New attribute.
718 (vpamdd52huq<mode>_maskz): New.
719 (vpamdd52luq<mode>_maskz): Ditto.
720 (vpamdd52<vpmadd52type><mode><sd_maskz_name>): Ditto.
721 (vpamdd52<vpmadd52type><mode>_mask): Ditto.
722
723 2014-11-21 Alan Lawrence <alan.lawrence@arm.com>
724
725 Revert:
726 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
727 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
728
729 2014-11-21 Andrew Bennett <andrew.bennett@imgtec.com>
730
731 * config/mips/mips.c (mips_process_sync_loop): Place a
732 nop in the delay slot of the branch likely instruction.
733 (mips_output_sync_loop): Ensure mips_branch_likely is
734 set before calling mips_output_sync_loop.
735 (mips_sync_loop_insns): Likewise.
736
737 2014-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
738
739 PR/target 63673
740 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Allow
741 the base pointer of vec_vsx_ld and vec_vsx_st to take a pointer to
742 double.
743
744 2014-11-21 Georg-Johann Lay <avr@gjlay.de>
745
746 Forward-port from 2014-10-30 4_9-branch r216934
747
748 PR target/63633
749 * config/avr/avr-protos.h (regmask): New inline function.
750 (avr_fix_inputs, avr_emit3_fix_outputs): New protos.
751 * config/avr/avr.c (avr_fix_operands, avr_move_fixed_operands)
752 (avr_fix_inputs, avr_emit3_fix_outputs): New functions.
753 * config/avr/avr-fixed.md (mulqq3_nomul, muluqq3_nomul)
754 (mul<ALL2QA>3, mul<ALL4A>3, <usdiv><ALL1Q>3, <usdiv><ALL2QA>3)
755 (<usdiv><ALL4A>3, round<ALL124QA>3): Fix input operands.
756 * config/avr/avr-dimode.md (add<ALL8>3, sub<ALL8>3)
757 (<ss_addsub><ALL8S>3, <us_addsub><ALL8U>3, cbranch<ALL8>4)
758 (<di_shifts><ALL8>3, <any_extend>mulsidi3): Fix input operands.
759 * config/avr/avr.md (mulqi3_call, mulhi3_call, mulsi3, mulpsi3)
760 (mulu<QIHI>si3, muls<QIHI>si3, mulohisi3, <any_extend>mulhisi3)
761 (usmulhisi3, <any_extend>mulhi3_highpart, mulsqipsi3)
762 (fmul, fmuls, fmulsu): Fix operands. Turn insn into expander as
763 needed.
764
765 2014-11-21 Jakub Jelinek <jakub@redhat.com>
766
767 PR target/61137
768 * config/ia64/ia64.c (ia64_attribute_takes_identifier_p): New function.
769 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Redefine to it.
770
771 2014-11-21 James Greenhalgh <james.greenhalgh@arm.com>
772
773 * config/aarch64/aarch64-simd.md
774 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Add a tab between
775 output mnemonic and operands.
776 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
777 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
778
779 2014-11-21 Evgeny Stupachenko <evstupac@gmail.com>
780
781 * config/i386/i386.c (ix86_option_override_internal): Increase
782 PARAM_MAX_COMPLETELY_PEELED_INSNS.
783
784 2014-11-21 Evgeny Stupachenko <evstupac@gmail.com>
785
786 PR target/60451
787 * config/i386/i386.c (expand_vec_perm_even_odd_pack): New.
788 (expand_vec_perm_even_odd_1): Add new expand for V8HI mode,
789 replace for V16QI, V16HI and V32QI modes.
790 (ix86_expand_vec_perm_const_1): Add new expand.
791
792 2014-11-21 Nick Clifton <nickc@redhat.com>
793
794 * config/rl78/rl78-real.md (movqi_from_es): New pattern.
795 * config/rl78/rl78.c (struct machine_function): Add uses_es field.
796 (rl78_expand_prologue): Save the ES register in interrupt handlers
797 that use it.
798 (rl78_expand_epilogue): Restore the ES register if necessary.
799 (rl78_start_function): Mention if the function uses the ES
800 register.
801 (rl78_lo16): Record the use of the ES register.
802 (transcode_memory_rtx): Likewise.
803
804 2014-11-21 Jakub Jelinek <jakub@redhat.com>
805
806 PR tree-optimization/61773
807 * tree-ssa-strlen.c (get_string_length): Don't assert
808 stpcpy has been prototyped if si->stmt is BUILT_IN_MALLOC.
809
810 PR target/63910
811 * simplify-rtx.c (simplify_immed_subreg): Return NULL for integer
812 modes wider than MAX_BITSIZE_MODE_ANY_INT. If not using
813 CONST_WIDE_INT, make sure r fits into CONST_DOUBLE.
814
815 2014-11-21 Markus Trippelsdorf <markus@trippelsdorf.de>
816
817 * config/rs6000/rs6000.c (includes_rldic_lshift_p): Use
818 HOST_WIDE_INT_M1U instead of ~0.
819 (includes_rldicr_lshift_p): Likewise.
820
821 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
822
823 * config/nds32/nds32.c (nds32_legitimate_address_p): For LO_SUM,
824 we need to look into its operand to determine if it is a valid
825 address.
826
827 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
828
829 * config/nds32/nds32.c (nds32_emit_stack_push_multiple): Add new
830 vaarg_p argument and create correct CFI info.
831 (nds32_expand_prologue): Pass true or false to
832 nds32_emit_stack_push_multiple function.
833
834 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
835
836 * config/nds32/nds32.c (nds32_expand_prologue): Set fp_adjust_insn
837 as RTX_FRAME_RELATED_P rtx.
838
839 2014-11-21 Chung-Ju Wu <jasonwucj@gmail.com>
840
841 * config/nds32/nds32.opt (march): Add help message.
842
843 2014-11-20 Patrick Palka <ppalka@gcc.gnu.org>
844
845 * tree-vrp.c (test_for_singularity): New parameter
846 strict_overflow_p. Set *strict_overflow_p to true if signed
847 overflow must be undefined for the return value to satisfy the
848 conditional.
849 (simplify_cond_using_ranges): Don't perform the simplification
850 if it violates overflow rules.
851
852 2014-11-20 Marek Polacek <polacek@redhat.com>
853
854 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Fix typo.
855
856 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
857
858 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
859 condition would be removed due to undefined behaviour.
860
861 2014-11-20 Andrew Pinski <apinski@cavium.com>
862
863 PR ipa/63981
864 PR ipa/63982
865 * ipa-polymorphic-call.c (possible_placement_new):
866 Use POINTER_SIZE instead of GET_MODE_BITSIZE (Pmode).
867 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
868 (extr_type_from_vtbl_ptr_store): Likewise.
869
870 2014-11-20 Markus Trippelsdorf <markus@trippelsdorf.de>
871
872 * config/rs6000/constraints.md: Avoid signed integer overflows.
873 * config/rs6000/predicates.md: Likewise.
874 * config/rs6000/rs6000.c (num_insns_constant_wide): Likewise.
875 (includes_rldic_lshift_p): Likewise.
876 (includes_rldicr_lshift_p): Likewise.
877 * emit-rtl.c (const_wide_int_htab_hash): Likewise.
878 * loop-iv.c (determine_max_iter): Likewise.
879 (iv_number_of_iterations): Likewise.
880 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Likewise.
881 * varasm.c (get_section_anchor): Likewise.
882
883 2014-11-20 Charles Baylis <charles.baylis@linaro.org>
884
885 PR target/63870
886 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Pass
887 expression to aarch64_simd_lane_bounds.
888 * config/aarch64/aarch64-protos.h (aarch64_simd_lane_bounds): Update
889 prototype.
890 * config/aarch64/aarch64-simd.md: (aarch64_combinez<mode>): Update
891 call to aarch64_simd_lane_bounds.
892 (aarch64_get_lanedi): Likewise.
893 (aarch64_ld2_lane<mode>): Likewise.
894 (aarch64_ld3_lane<mode>): Likewise.
895 (aarch64_ld4_lane<mode>): Likewise.
896 (aarch64_im_lane_boundsi): Likewise.
897 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Add exp
898 parameter. Report calling function in error message if exp is non-NULL.
899
900 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
901
902 PR target/60111
903 * config/sh/sh.c: Use signed char for signed field.
904
905 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
906
907 * cfgexpand.c, gimple-ssa.h, trans-mem.c: Replace htab with
908 hash_table.
909
910 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
911
912 * ipa-utils.c, lto-section-in.c, lto-streamer.h,
913 tree-scalar-evolution.c: Replace htab with hash_table.
914
915 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
916
917 * lto-section-in.c (lto_delete_in_decl_state): Adjust.
918 (lto_free_function_in_decl_state): Likewise.
919 * lto-streamer-out.c (copy_function_or_variable): Likewise.
920 * lto-streamer.h (lto_file_decl_data_get_ ## name): Likewise.
921 (lto_file_decl_data_num_ ## name ## s): Likewise.
922 (struct lto_tree_ref_table): Remove.
923 (struct lto_in_decl_state): Replace lto_tree_ref_table with vec<tree>.
924
925 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
926
927 * hash-map.h (hash_map::iterator): New class.
928 (hash_map::begin): New method.
929 (hash_map::end): Likewise.
930 * alias.c, config/alpha/alpha.c, dwarf2asm.c, omp-low.c, tree.h:
931 replace splay_tree with hash_map.
932
933 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
934
935 * hash-table.h (hash_table::hash_table): Call alloc_entries.
936 (hash_table::alloc_entries): new method.
937 (hash_table::expand): Call alloc_entries.
938 (hash_table::empty): Likewise.
939
940 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
941
942 * config/i386/i386.c, function.c, trans-mem.c, tree-core.h,
943 tree.c, tree.h, ubsan.c, varasm.c: Use hash_table instead of htab.
944
945 2014-11-20 Trevor Saunders <tsaunders@mozilla.com>
946
947 * doc/gty.texi: Document the new cache gty attribute.
948 * gengtype.c (finish_cache_funcs): New function.
949 (write_roots): Call gt_clear_cache on global variables with the cache
950 gty attribute.
951 * ggc-common.c (ggc_mark_roots): Call gt_clear_caches.
952 * ggc.h (gt_clear_caches): New declaration.
953 * hash-table.h (struct ggc_cache_hasher): New hasher for caches in gc
954 memory.
955 (gt_cleare_cache): New function.
956 * emit-rtl.c, rtl.h, tree.c: Use hash_table instead of htab.
957
958 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
959
960 * combine.c (try_combine): Prefer to delete dead SETs inside
961 a PARALLEL over keeping them.
962
963 2014-11-20 Segher Boessenkool <segher@kernel.crashing.org>
964
965 * combine.c (combine_validate_cost): Always print the insn costs
966 to the dump file.
967
968 2014-11-20 Richard Henderson <rth@redhat.com>
969
970 PR target/63977
971 * config/i386/i386.c (ix86_static_chain): Reinstate the check
972 for DECL_STATIC_CHAIN.
973
974 2014-11-20 Tejas Belagod <tejas.belagod@arm.com>
975
976 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol):
977 Fixup prototype.
978 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate,
979 aarch64_cannot_force_const_mem, aarch64_classify_address,
980 aarch64_classify_symbolic_expression): Fixup call to
981 aarch64_classify_symbol.
982 (aarch64_classify_symbol): Add range-checking for
983 symbol + offset addressing for tiny and small models.
984
985 2014-11-20 Richard Biener <rguenther@suse.de>
986
987 PR middle-end/63962
988 * match.pd ((p +p off1) +p off2 -> (p +p (off1 + off2))):
989 Guard with single-use operand 0.
990
991 2014-11-20 Richard Biener <rguenther@suse.de>
992
993 PR tree-optimization/63677
994 * tree-ssa-dom.c: Include gimplify.h for unshare_expr.
995 (avail_exprs_stack): Make a vector of pairs.
996 (struct hash_expr_elt): Replace stmt member with vop member.
997 (expr_elt_hasher::equal): Simplify.
998 (initialize_hash_element): Adjust.
999 (initialize_hash_element_from_expr): Likewise.
1000 (dom_opt_dom_walker::thread_across_edge): Likewise.
1001 (record_cond): Likewise.
1002 (dom_opt_dom_walker::before_dom_children): Likewise.
1003 (print_expr_hash_elt): Likewise.
1004 (remove_local_expressions_from_table): Restore previous state
1005 if requested.
1006 (record_equivalences_from_stmt): Record &x + CST as constant
1007 &MEM[&x, CST] for further propagation.
1008 (vuse_eq): New function.
1009 (lookup_avail_expr): For loads use the alias oracle to see
1010 whether a candidate from the expr hash is usable.
1011 (avail_expr_hash): Do not hash VUSEs.
1012
1013 2014-11-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1014
1015 PR target/59593
1016 * config/arm/arm.md (*movhi_insn): Use right formatting
1017 for immediate.
1018
1019 2014-11-20 Igor Zamyatin <igor.zamyatin@intel.com>
1020
1021 PR sanitizer/63845
1022 * function.c (assign_parms): Move init of pic_offset_table_rtx
1023 from here to...
1024 * cfgexpand.c (expand_used_vars): ...here.
1025
1026 2014-11-19 Jan Hubicka <hubicka@ucw.cz>
1027
1028 * tree.c (free_lang_data_in_type): If BINFO has no important
1029 information in it, set it to NULL.
1030 (get_binfo_at_offset): Do not walk fields, only bases.
1031 * ipa-utils.h (polymorphic_type_binfo_p): Be ready for BINFO_TYPE
1032 to be NULL.
1033 * ipa-polymorphic-call.c (record_known_type): Likewise.
1034
1035 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1036
1037 PR jit/63854
1038 * ipa-icf.c (sem_item_optimizer::~sem_item_optimizer): Free each
1039 congruence_class_group *.
1040
1041 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
1042
1043 PR target/63947
1044 * config/i386/i386.c (put_condition_code) <case LTU, case GEU>:
1045 Output "b" and "nb" suffix for FP mode.
1046
1047 2014-11-19 Jan Hubicka <hubicka@ucw.cz>
1048
1049 PR bootstrap/63963
1050 * tree-streamer-out.c (write_ts_function_decl_tree_pointers): Stream out
1051 DECL_FUNCTION_SPECIFIC_TARGET
1052 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): Stream in
1053 DECL_FUNCTION_SPECIFIC_TARGET.
1054
1055 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1056
1057 PR jit/63854
1058 * pass_manager.h (GCC_PASS_LISTS): Add all_late_ipa_passes.
1059
1060 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1061
1062 PR jit/63854
1063 * lra.c (lra): After creating live ranges in preparation for call
1064 to lra_inheritance, set live_p to true.
1065
1066 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1067
1068 PR jit/63854
1069 * tree-ssa-threadedge.c (thread_across_edge): Don't just release
1070 "path", delete it.
1071 * tree-ssa-threadupdate.c (delete_jump_thread_path): Likewise.
1072
1073 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1074
1075 PR jit/63854
1076 * tree-ssa-pre.c (do_regular_insertion): Convert "avail" from
1077 vec<> to auto_vec<> to fix a leak.
1078
1079 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1080
1081 PR jit/63854
1082 * dwarf2out.c (dwarf2out_c_finalize): Free producer_string.
1083
1084 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1085
1086 PR jit/63854
1087 * ira-costs.c (ira_costs_c_finalize): New function.
1088 * ira.h (ira_costs_c_finalize): New prototype.
1089 * toplev.c (toplev::finalize): Call ira_costs_c_finalize.
1090
1091 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1092
1093 PR jit/63854
1094 * ipa-reference.c (ipa_reference_c_finalize): Release
1095 optimization_summary_obstack.
1096
1097 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1098
1099 PR jit/63854
1100 * toplev.c (toplev::finalize): Free opts_obstack.
1101
1102 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1103
1104 PR jit/63854
1105 * toplev.c (toplev::finalize): Clean up save_decoded_options.
1106
1107 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1108
1109 PR jit/63854
1110 * bb-reorder.c
1111 (find_rarely_executed_basic_blocks_and_crossing_edges): Convert
1112 local bbs_in_hot_partition from vec<> to auto_vec<>.
1113
1114 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1115
1116 PR jit/63854
1117 * config/alpha/alpha.c (alpha_option_override): Remove static from
1118 "handle_trap_shadows_info" and "align_insns_info".
1119 * config/i386/i386.c (ix86_option_override): Likewise for
1120 "insert_vzeroupper_info".
1121 * config/rl78/rl78.c (rl78_asm_file_start): Likewise for
1122 "rl78_devirt_info" and "rl78_move_elim_info".
1123 * config/rs6000/rs6000.c (rs6000_option_override): Likewise for
1124 "analyze_swaps_info".
1125 * context.c (gcc::context::~context): New.
1126 * context.h (gcc::context::~context): New.
1127 * dumpfile.c (dump_files): Add "false" initializers for new field
1128 "owns_strings".
1129 (gcc::dump_manager::~dump_manager): New.
1130 (gcc::dump_manager::dump_register): Add param "take_ownership".
1131 * dumpfile.h (struct dump_file_info): Add field "owns_strings".
1132 (gcc::dump_manager::~dump_manager): New.
1133 (gcc::dump_manager::dump_register): Add param "take_ownership".
1134 * pass_manager.h (gcc::pass_manager::operator delete): New.
1135 (gcc::pass_manager::~pass_manager): New.
1136 * passes.c (pass_manager::register_one_dump_file): Pass "true" to
1137 new "owns_strings" argument to dump_register.
1138 (pass_manager::operator delete): New.
1139 (delete_pass_tree): New function.
1140 (pass_manager::~pass_manager): New.
1141 * statistics.c (statistics_early_init): Pass "false" to
1142 new "owns_strings" argument to dump_register.
1143 * toplev.c (toplev::finalize): Clean up the context and thus the
1144 things it owns.
1145
1146 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1147
1148 PR jit/63854
1149 * reginfo.c (finish_subregs_of_mode): Replace obstack_finish with
1150 obstack_free when cleaning up valid_mode_changes_obstack.
1151
1152 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1153
1154 PR jit/63854
1155 * opts.c (finalize_options_struct): New.
1156 * opts.h (finalize_options_struct): New.
1157 * toplev.c (toplev::finalize): Call finalize_options_struct
1158 on global_options and global_options_set.
1159
1160 2014-11-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1161 Jakub Jelinek <jakub@redhat.com>
1162
1163 PR driver/36312
1164 PR driver/63837
1165 * gcc.c (process_command): Don't check for input/output
1166 filename equality if output is HOST_BIT_BUCKET.
1167 * toplev.c (init_asm_output): Likewise.
1168
1169 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1170
1171 Merger of git branch "gimple-classes-v2-option-3".
1172
1173 * ChangeLog.gimple-classes: New.
1174
1175 * coretypes.h (struct gcond): Add forward decl.
1176 (struct gdebug): Likewise.
1177 (struct ggoto): Likewise.
1178 (struct glabel): Likewise.
1179 (struct gswitch): Likewise.
1180 (struct gassign): Likewise.
1181 (struct gasm): Likewise.
1182 (struct gcall): Likewise.
1183 (struct gtransaction): Likewise.
1184 (struct greturn): Likewise.
1185 (struct gbind): Likewise.
1186 (struct gcatch): Likewise.
1187 (struct geh_filter): Likewise.
1188 (struct geh_mnt): Likewise.
1189 (struct geh_else): Likewise.
1190 (struct gresx): Likewise.
1191 (struct geh_dispatch): Likewise.
1192 (struct gphi): Likewise.
1193 (struct gtry): Likewise.
1194 (struct gomp_atomic_load): Likewise.
1195 (struct gomp_atomic_store): Likewise.
1196 (struct gomp_continue): Likewise.
1197 (struct gomp_critical): Likewise.
1198 (struct gomp_for): Likewise.
1199 (struct gomp_parallel): Likewise.
1200 (struct gomp_task): Likewise.
1201 (struct gomp_sections): Likewise.
1202 (struct gomp_single): Likewise.
1203 (struct gomp_target): Likewise.
1204 (struct gomp_teams): Likewise.
1205
1206 * doc/gimple.texi (Class hierarchy of GIMPLE statements): Update
1207 for renaming of gimple subclasses.
1208
1209 * gdbhooks.py: Update.
1210
1211 * gimple-iterator.c (gsi_for_phi): New.
1212 (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
1213 to gphi_iterator.
1214 * gimple-iterator.h (struct gphi_iterator): New subclass of
1215 gimple_stmt_iterator.
1216 (gsi_for_phi): New prototype.
1217 (gsi_start_phis): Strengthen return type from gimple_stmt_iterator
1218 to gphi_iterator.
1219 (gsi_next_nonvirtual_phi): Strengthen param from
1220 gimple_stmt_iterator * to gphi_iterator *, and local "phi" from
1221 gimple to gphi *.
1222
1223 * gsstruct.def: Update for renamings of classes.
1224
1225 * gimple.c (gimple_build_return): Strengthen return type from
1226 gimple to greturn *.
1227 (gimple_call_reset_alias_info): Strengthen param to gcall *.
1228 (gimple_build_call_1): Strengthen return type from gimple to
1229 gcall *.
1230 (gimple_build_call_vec): Likewise.
1231 (gimple_build_call): Likewise.
1232 (gimple_build_call_valist): Likewise.
1233 (gimple_build_call_internal_1): Likewise.
1234 (gimple_build_call_internal): Likewise.
1235 (gimple_build_call_internal_vec): Likewise.
1236 (gimple_build_call_from_tree): Likewise.
1237 (gimple_build_assign_stat): Strengthen return type from gimple to
1238 gassign *.
1239 (gimple_build_assign_with_ops): Likewise.
1240 (gimple_build_assign_with_ops): Likewise.
1241 (gimple_build_cond): Strengthen return type from gimple to
1242 gcond *.
1243 (gimple_build_cond_from_tree): Likewise.
1244 (gimple_cond_set_condition_from_tree): Require a gcond *.
1245 (gimple_build_label): Strengthen return type from gimple to
1246 glabel *.
1247 (gimple_build_goto): Strengthen return type from gimple to
1248 ggoto *.
1249 (gimple_build_bind): Strengthen return type from gimple to
1250 gbind *.
1251 (gimple_build_asm_1): Strengthen return type from gimple to
1252 gasm *.
1253 (gimple_build_asm_vec): Likewise.
1254 (gimple_build_catch): Strengthen return type from gimple to
1255 gcatch *.
1256 (gimple_build_eh_filter): Strengthen return type from gimple to
1257 geh_filter *.
1258 (gimple_build_eh_must_not_throw): Strengthen return type from
1259 gimple to geh_mnt *.
1260 (gimple_build_eh_else): Strengthen return type from gimple to
1261 geh_else *.
1262 (gimple_build_try): Update for renaming of gimple_statement_try to
1263 gtry.
1264 (gimple_build_resx): Strengthen return type from gimple to
1265 gresx *.
1266 (gimple_build_switch_nlabels): Strengthen return type from gimple
1267 to gswitch *.
1268 (gimple_build_switch): Likewise.
1269 (gimple_build_eh_dispatch): Strengthen return type from gimple to
1270 geh_dispatch *.
1271 (gimple_build_debug_bind_stat): Strengthen return type from gimple
1272 to gdebug *.
1273 (gimple_build_debug_source_bind_stat): Strengthen return type from
1274 gimple to gdebug *.
1275 (gimple_build_omp_critical): Strengthen return type from gimple to
1276 gomp_critical *.
1277 (gimple_build_omp_for): Strengthen return type from gimple to
1278 gomp_for *.
1279 (gimple_build_omp_parallel): Strengthen return type from gimple to
1280 gomp_parallel *.
1281 (gimple_build_omp_task): Strengthen return type from gimple to
1282 gomp_task *.
1283 (gimple_build_omp_continue): Strengthen return type from gimple to
1284 gomp_continue *.
1285 (gimple_build_omp_sections): Strengthen return type from gimple to
1286 gomp_sections *.
1287 (gimple_build_omp_single): Strengthen return type from gimple to
1288 gomp_single *.
1289 (gimple_build_omp_target): Strengthen return type from gimple to
1290 gomp_target *.
1291 (gimple_build_omp_teams): Strengthen return type from gimple to
1292 gomp_teams *.
1293 (gimple_build_omp_atomic_load): Strengthen return type from gimple
1294 to gomp_atomic_load *.
1295 (gimple_build_omp_atomic_store): Strengthen return type from gimple
1296 to gomp_atomic_store *.
1297 (gimple_build_transaction): Strengthen return type from gimple
1298 to gtransaction *.
1299 (empty_stmt_p): Replace check for GIMPLE_BIND with a dyn_cast.
1300 (gimple_call_fnspec): Require a const gcall *.
1301 (gimple_call_arg_flags): Likewise.
1302 (gimple_call_return_flags): Likewise.
1303 (gimple_set_bb): Add a checked cast.
1304 (gimple_copy): Within the cases, add locals of the appropriate
1305 subclass and use in place of "stmt" and "copy" for typesafety.
1306 (gimple_has_side_effects): Add a checked cast.
1307 (gimple_could_trap_p_1): Likewise.
1308 (gimple_call_copy_skip_args): Require a gcall *, and return one.
1309 (gimple_asm_clobbers_memory_p): Require a const gasm *.
1310 (infer_nonnull_range): Replace a check for GIMPLE_RETURN with a
1311 dyn_cast, introducing local "return_stmt" and using ti in place
1312 of "stmt".
1313
1314 * gimple.h (gimple_vec): Eliminate this typedef.
1315 (struct gimple_statement_call): Rename to...
1316 (struct gcall): ...this.
1317 (struct gimple_statement_bind): Rename to...
1318 (struct gbind): ...this.
1319 (struct gimple_statement_catch): Rename to...
1320 (struct gcatch): ...this.
1321 (struct gimple_statement_eh_filter): Rename to...
1322 (struct geh_filter): ...this.
1323 (struct gimple_statement_eh_else): Rename to...
1324 (struct geh_else): ...this.
1325 (struct gimple_statement_eh_mnt): Rename to...
1326 (struct geh_mnt): ...this.
1327 (struct gimple_statement_phi): Rename to...
1328 (struct gphi): ...this.
1329 (struct gimple_statement_resx): Rename to...
1330 (struct gresx): ...this.
1331 (struct gimple_statement_eh_dispatch): Rename to...
1332 (struct geh_dispatch): ...this.
1333 (struct gimple_statement_try): Rename to...
1334 (struct gtry): ...this.
1335 (struct gimple_statement_asm): Rename to...
1336 (struct gasm): ...this.
1337 (struct gimple_statement_omp_critical): Rename to...
1338 (struct gomp_critical): ...this.
1339 (struct gimple_statement_omp_for): Rename to...
1340 (struct gomp_for): ...this.
1341 (struct gimple_statement_omp_parallel): Rename to...
1342 (struct gomp_parallel): ...this.
1343 (struct gimple_statement_omp_target): Rename to...
1344 (struct gomp_target): ...this.
1345 (struct gimple_statement_omp_task): Rename to...
1346 (struct gomp_task): ...this.
1347 (struct gimple_statement_omp_sections): Rename to...
1348 (struct gomp_sections): ...this.
1349 (struct gimple_statement_omp_continue): Rename to...
1350 (struct gomp_continue): ...this.
1351 (struct gimple_statement_omp_single): Rename to...
1352 (struct gomp_single): ...this.
1353 (struct gimple_statement_omp_teams): Rename to...
1354 (struct gomp_teams): ...this.
1355 (struct gimple_statement_omp_atomic_load): Rename to...
1356 (struct gomp_atomic_load): ...this.
1357 (struct gimple_statement_omp_atomic_store :): Rename to...
1358 (struct gomp_atomic_store :): ...this.
1359 (struct gimple_statement_transaction): Rename to...
1360 (struct gtransaction): ...this.
1361 (struct gcond): New subclass.
1362 (struct gdebug): New subclass.
1363 (struct ggoto): New subclass.
1364 (struct glabel): New subclass.
1365 (struct gswitch): New subclass.
1366 (struct gassign): New subclass.
1367 (struct greturn): New subclass.
1368 (is_a_helper <gimple_statement_asm *>::test): Rename to...
1369 (is_a_helper <gasm *>::test): ...this.
1370 (is_a_helper <gimple_statement_bind *>::test): Rename to...
1371 (is_a_helper <gbind *>::test): ...this.
1372 (is_a_helper <gassign *>::test): New.
1373 (is_a_helper <gimple_statement_call *>::test): Rename to...
1374 (is_a_helper <gcall *>::test): ...this.
1375 (is_a_helper <gimple_statement_catch *>::test): Rename to...
1376 (is_a_helper <gcatch *>::test): ...this.
1377 (is_a_helper <gimple_statement_resx *>::test): Rename to...
1378 (is_a_helper <gresx *>::test): ...this.
1379 (is_a_helper <gcond *>::test): New.
1380 (is_a_helper <gdebug *>::test): New.
1381 (is_a_helper <ggoto *>::test): New.
1382 (is_a_helper <glabel *>::test): New.
1383 (is_a_helper <gimple_statement_eh_dispatch *>::test): Rename to...
1384 (is_a_helper <geh_dispatch *>::test): ...this.
1385 (is_a_helper <gimple_statement_eh_else *>::test): Rename to...
1386 (is_a_helper <geh_else *>::test): ...this.
1387 (is_a_helper <gimple_statement_eh_filter *>::test): Rename to...
1388 (is_a_helper <geh_filter *>::test): ...this.
1389 (is_a_helper <gimple_statement_eh_mnt *>::test): Rename to...
1390 (is_a_helper <geh_mnt *>::test): ...this.
1391 (is_a_helper <gimple_statement_omp_atomic_load *>::test): Rename to...
1392 (is_a_helper <gomp_atomic_load *>::test): ...this.
1393 (is_a_helper <gimple_statement_omp_atomic_store *>::test): Rename to...
1394 (is_a_helper <gomp_atomic_store *>::test): ...this.
1395 (is_a_helper <gimple_statement_omp_continue *>::test): Rename to...
1396 (is_a_helper <gomp_continue *>::test): ...this.
1397 (is_a_helper <gimple_statement_omp_critical *>::test): Rename to...
1398 (is_a_helper <gomp_critical *>::test): ...this.
1399 (is_a_helper <gimple_statement_omp_for *>::test): Rename to...
1400 (is_a_helper <gomp_for *>::test): ...this.
1401 (is_a_helper <gimple_statement_omp_parallel *>::test): Rename to...
1402 (is_a_helper <gomp_parallel *>::test): ...this.
1403 (is_a_helper <gimple_statement_omp_target *>::test): Rename to...
1404 (is_a_helper <gomp_target *>::test): ...this.
1405 (is_a_helper <gimple_statement_omp_sections *>::test): Rename to...
1406 (is_a_helper <gomp_sections *>::test): ...this.
1407 (is_a_helper <gimple_statement_omp_single *>::test): Rename to...
1408 (is_a_helper <gomp_single *>::test): ...this.
1409 (is_a_helper <gimple_statement_omp_teams *>::test): Rename to...
1410 (is_a_helper <gomp_teams *>::test): ...this.
1411 (is_a_helper <gimple_statement_omp_task *>::test): Rename to...
1412 (is_a_helper <gomp_task *>::test): ...this.
1413 (is_a_helper <gimple_statement_phi *>::test): Rename to...
1414 (is_a_helper <gphi *>::test): ...this.
1415 (is_a_helper <gimple_statement_transaction *>::test): Rename to...
1416 (is_a_helper <gtransaction *>::test): ...this.
1417 (is_a_helper <greturn *>::test): New.
1418 (is_a_helper <gswitch *>::test): New.
1419 (is_a_helper <gimple_statement_try *>::test): Rename to...
1420 (is_a_helper <gtry *>::test): ...this.
1421 (is_a_helper <const gimple_statement_asm *>::test): Rename to...
1422 (is_a_helper <const gasm *>::test): ...this.
1423 (is_a_helper <const gimple_statement_bind *>::test): Rename to...
1424 (is_a_helper <const gbind *>::test): ...this.
1425 (is_a_helper <const gimple_statement_call *>::test): Rename to...
1426 (is_a_helper <const gcall *>::test): ...this.
1427 (is_a_helper <const gimple_statement_catch *>::test): Rename to...
1428 (is_a_helper <const gcatch *>::test): ...this.
1429 (is_a_helper <const gimple_statement_resx *>::test): Rename to...
1430 (is_a_helper <const gresx *>::test): ...this.
1431 (is_a_helper <const gimple_statement_eh_dispatch *>::test): Rename to...
1432 (is_a_helper <const geh_dispatch *>::test): ...this.
1433 (is_a_helper <const gimple_statement_eh_filter *>::test): Rename to...
1434 (is_a_helper <const geh_filter *>::test): ...this.
1435 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
1436 Rename to...
1437 (is_a_helper <const gomp_atomic_load *>::test): ...this.
1438 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
1439 Rename to...
1440 (is_a_helper <const gomp_atomic_store *>::test): ...this.
1441 (is_a_helper <const gimple_statement_omp_continue *>::test):
1442 Rename to...
1443 (is_a_helper <const gomp_continue *>::test): ...this.
1444 (is_a_helper <const gimple_statement_omp_critical *>::test):
1445 Rename to...
1446 (is_a_helper <const gomp_critical *>::test): ...this.
1447 (is_a_helper <const gimple_statement_omp_for *>::test): Rename to...
1448 (is_a_helper <const gomp_for *>::test): ...this.
1449 (is_a_helper <const gimple_statement_omp_parallel *>::test):
1450 Rename to...
1451 (is_a_helper <const gomp_parallel *>::test): ...this.
1452 (is_a_helper <const gimple_statement_omp_target *>::test): Rename to...
1453 (is_a_helper <const gomp_target *>::test): ...this.
1454 (is_a_helper <const gimple_statement_omp_sections *>::test):
1455 Rename to...
1456 (is_a_helper <const gomp_sections *>::test): ...this.
1457 (is_a_helper <const gimple_statement_omp_single *>::test): Rename to...
1458 (is_a_helper <const gomp_single *>::test): ...this.
1459 (is_a_helper <const gimple_statement_omp_teams *>::test): Rename to...
1460 (is_a_helper <const gomp_teams *>::test): ...this.
1461 (is_a_helper <const gimple_statement_omp_task *>::test): Rename to...
1462 (is_a_helper <const gomp_task *>::test): ...this.
1463 (is_a_helper <const gimple_statement_phi *>::test): Rename to...
1464 (is_a_helper <const gphi *>::test): ...this.
1465 (is_a_helper <const gimple_statement_transaction *>::test): Rename to...
1466 (is_a_helper <const gtransaction *>::test): ...this.
1467 (gimple_build_return): Strengthen return type to greturn *.
1468 (gimple_call_reset_alias_info): Require a gcall *.
1469 (gimple_build_call_vec): Return a gcall *.
1470 (gimple_build_call): Likewise.
1471 (gimple_build_call_valist): Likewise.
1472 (gimple_build_call_internal): Likewise.
1473 (gimple_build_call_internal_vec): Likewise.
1474 (gimple_build_call_from_tree): Likewise.
1475 (gimple_build_assign_stat): Return a gassign *.
1476 (gimple_build_assign_with_ops): Likewise.
1477 (gimple_build_cond): Return a gcond *.
1478 (gimple_build_cond_from_tree): Likewise.
1479 (gimple_cond_set_condition_from_tree): Require a gcond *.
1480 (gimple_build_label): Return a glabel *.
1481 (gimple_build_goto): Return a ggoto *.
1482 (gimple_build_bind): Return a gbind *.
1483 (gimple_build_asm_vec): Return a gasm *.
1484 (gimple_build_catch): Return a gcatch *.
1485 (gimple_build_eh_filter): Return a geh_filter *.
1486 (gimple_build_eh_must_not_throw): Return a geh_mnt *.
1487 (gimple_build_eh_else): Return a geh_else *.
1488 (gimple_build_try): Return a gtry *.
1489 (gimple_build_resx): Return a gresx *.
1490 (gimple_build_switch_nlabels): Return a gswitch *.
1491 (gimple_build_switch): Return a gswitch *.
1492 (gimple_build_eh_dispatch): Return a geh_dispatch *.
1493 (gimple_build_debug_bind_stat): Return a gdebug *.
1494 (gimple_build_debug_source_bind_stat): Return a gdebug *.
1495 (gimple_build_omp_critical): Return a gomp_critical *.
1496 (gimple_build_omp_for): Return a gomp_for *.
1497 (gimple_build_omp_parallel): Return a gomp_parallel *.
1498 (gimple_build_omp_task): Return a gomp_task *.
1499 (gimple_build_omp_continue): Return a gomp_continue *.
1500 (gimple_build_omp_sections): Return a gomp_sections *.
1501 (gimple_build_omp_single): Return a gomp_single *.
1502 (gimple_build_omp_target): Return a gomp_target *.
1503 (gimple_build_omp_teams): Return a gomp_teams *.
1504 (gimple_build_omp_atomic_load): Return a gomp_atomic_load *.
1505 (gimple_build_omp_atomic_store): Return a gomp_atomic_store *.
1506 (gimple_build_transaction): Return a gtransaction *.
1507 (gimple_call_arg_flags): Require a const gcall *.
1508 (gimple_call_return_flags): Likewise.
1509 (gimple_call_copy_skip_args): Require and return a gcall *.
1510 (gimple_asm_clobbers_memory_p): Require a const gasm *.
1511 (gimple_seq_first_stmt_as_a_bind): New.
1512 (gimple_assign_nontemporal_move_p): Require a const gassign *
1513 rather than a const_gimple.
1514 (gimple_call_internal_fn): Update for renaming to gcall.
1515 (gimple_call_fntype): Likewise.
1516 (gimple_call_set_fntype): Require a gcall * rather than a gimple.
1517 (gimple_call_set_fn): Likewise.
1518 (gimple_call_set_internal_fn): Likewise.
1519 (gimple_call_set_chain): Likewise.
1520 (gimple_call_set_tail): Likewise.
1521 (gimple_call_tail_p): Likewise.
1522 (gimple_call_set_return_slot_opt): Likewise.
1523 (gimple_call_return_slot_opt_p): Likewise.
1524 (gimple_call_set_from_thunk): Likewise.
1525 (gimple_call_from_thunk_p): Likewise.
1526 (gimple_call_set_va_arg_pack): Likewise.
1527 (gimple_call_va_arg_pack_p): Likewise.
1528 (gimple_call_set_nothrow): Likewise.
1529 (gimple_call_nothrow_p): Likewise.
1530 (gimple_call_set_alloca_for_var): Likewise.
1531 (gimple_call_alloca_for_var_p): Likewise.
1532 (gimple_call_use_set): Likewise.
1533 (gimple_call_clobber_set): Likewise.
1534 (gimple_call_return_type): Require a const gcall * rather than a
1535 const_gimple.
1536 (gimple_call_chain_ptr): Likewise.
1537 (gimple_call_copy_flags): Require a pair of gcall *.
1538 (gimple_cond_set_code): Require a gcond * rather than a gimple
1539 (gimple_cond_set_lhs): Likewise.
1540 (gimple_cond_set_rhs): Likewise.
1541 (gimple_cond_set_true_label): Likewise.
1542 (gimple_cond_set_false_label): Likewise.
1543 (gimple_cond_make_false): Likewise.
1544 (gimple_cond_make_true): Likewise.
1545 (gimple_cond_lhs_ptr): Require a const gcond * rather than a
1546 const_gimple.
1547 (gimple_cond_rhs_ptr): Likewise.
1548 (gimple_cond_true_label): Likewise.
1549 (gimple_cond_false_label): Likewise.
1550 (gimple_cond_true_p): Likewise.
1551 (gimple_cond_false_p): Likewise.
1552 (gimple_cond_set_condition): Likewise.
1553 (gimple_label_label): Require a const glabel *.
1554 (gimple_label_set_label): Require a glabel *.
1555 (gimple_goto_set_dest): Require a ggoto *.
1556 (gimple_bind_vars): Require a const gbind *.
1557 (gimple_bind_block): Likewise.
1558 (gimple_bind_set_vars): Require a gbind *.
1559 (gimple_bind_append_vars): Likewise.
1560 (gimple_bind_body_ptr): Likewise.
1561 (gimple_bind_body): Likewise.
1562 (gimple_bind_set_body): Likewise.
1563 (gimple_bind_add_stmt): Likewise.
1564 (gimple_bind_add_seq): Likewise.
1565 (gimple_bind_set_block): Likewise.
1566 (gimple_asm_ninputs): Require a const gasm *.
1567 (gimple_asm_noutputs): Likewise.
1568 (gimple_asm_nclobbers): Likewise.
1569 (gimple_asm_nlabels): Likewise.
1570 (gimple_asm_input_op): Likewise.
1571 (gimple_asm_input_op_ptr): Likewise.
1572 (gimple_asm_output_op): Likewise.
1573 (gimple_asm_output_op_ptr): Likewise.
1574 (gimple_asm_clobber_op): Likewise.
1575 (gimple_asm_label_op): Likewise.
1576 (gimple_asm_string): Likewise.
1577 (gimple_asm_volatile_p): Likewise.
1578 (gimple_asm_input_p): Likewise.
1579 (gimple_asm_set_input_op): Require a gasm *.
1580 (gimple_asm_set_output_op): Likewise.
1581 (gimple_asm_set_clobber_op): Likewise.
1582 (gimple_asm_set_label_op): Likewise.
1583 (gimple_asm_set_volatile): Likewise.
1584 (gimple_asm_set_input): Likewise.
1585 (gimple_catch_types): Require a const gcatch *.
1586 (gimple_catch_types_ptr): Require a gcatch *.
1587 (gimple_catch_handler_ptr): Likewise.
1588 (gimple_catch_handler): Likewise.
1589 (gimple_catch_set_types): Likewise.
1590 (gimple_catch_set_handler): Likewise.
1591 (gimple_eh_filter_types): Update for renaming of subclass to
1592 geh_filter.
1593 (gimple_eh_filter_types_ptr): Likewise.
1594 (gimple_eh_filter_failure_ptr): Likewise.
1595 (gimple_eh_filter_set_types): Require a geh_filter *.
1596 (gimple_eh_filter_set_failure): Likewise.
1597 (gimple_eh_must_not_throw_fndecl): Require a geh_mnt *.
1598 (gimple_eh_must_not_throw_set_fndecl): Likewise.
1599 (gimple_eh_else_n_body_ptr): Require a geh_else *.
1600 (gimple_eh_else_n_body): Likewise.
1601 (gimple_eh_else_e_body_ptr): Likewise.
1602 (gimple_eh_else_e_body): Likewise.
1603 (gimple_eh_else_set_n_body): Likewise.
1604 (gimple_eh_else_set_e_body): Likewise.
1605 (gimple_try_set_kind): Require a gtry *.
1606 (gimple_try_set_catch_is_cleanup): Likewise.
1607 (gimple_try_set_eval): Likewise.
1608 (gimple_try_set_cleanup): Likewise.
1609 (gimple_try_eval_ptr): Update for renaming of subclass to gtry.
1610 (gimple_try_cleanup_ptr): Likewise.
1611 (gimple_phi_capacity): Update for renaming of subclass to gphi.
1612 (gimple_phi_num_args): Likewise.
1613 (gimple_phi_result): Likewise.
1614 (gimple_phi_result_ptr): Likewise.
1615 (gimple_phi_arg): Likewise.
1616 (gimple_phi_set_result): Require a gphi *.
1617 (gimple_phi_set_arg): Likewise.
1618 (gimple_phi_arg_def_ptr): Likewise.
1619 (gimple_phi_arg_edge): Likewise.
1620 (gimple_phi_arg_location): Likewise.
1621 (gimple_phi_arg_location_from_edge): Likewise.
1622 (gimple_phi_arg_set_location): Likewise.
1623 (gimple_phi_arg_has_location): Likewise.
1624 (gimple_resx_region): Require a const gresx *.
1625 (gimple_resx_set_region): Require a gresx *.
1626 (gimple_eh_dispatch_region): Require a const geh_dispatch *.
1627 (gimple_eh_dispatch_set_region): Require a geh_dispatch *.
1628 (gimple_switch_num_labels): Require a const gswitch *.
1629 (gimple_switch_set_num_labels): Likewise.
1630 (gimple_switch_index): Likewise.
1631 (gimple_switch_index_ptr): Likewise.
1632 (gimple_switch_label): Likewise.
1633 (gimple_switch_default_label): Likewise.
1634 (gimple_switch_set_index): Require a gswitch *.
1635 (gimple_switch_set_label): Likewise.
1636 (gimple_switch_set_default_label): Likewise.
1637 (gimple_omp_critical_name): Require a const gomp_critical *.
1638 (gimple_omp_critical_name_ptr): Require a gomp_critical *.
1639 (gimple_omp_critical_set_name): Likewise.
1640 (gimple_omp_for_set_kind): Require a gomp_for *.
1641 (gimple_omp_for_set_combined_p): Likewise.
1642 (gimple_omp_for_set_combined_into_p): Likewise.
1643 (gimple_omp_for_clauses): Update for renaming of subclass to
1644 gomp_for.
1645 (gimple_omp_for_clauses_ptr): Likewise.
1646 (gimple_omp_for_set_clauses): Likewise.
1647 (gimple_omp_for_collapse): Likewise.
1648 (gimple_omp_for_index): Likewise.
1649 (gimple_omp_for_index_ptr): Likewise.
1650 (gimple_omp_for_set_index): Likewise.
1651 (gimple_omp_for_initial): Likewise.
1652 (gimple_omp_for_initial_ptr): Likewise.
1653 (gimple_omp_for_set_initial): Likewise.
1654 (gimple_omp_for_final): Likewise.
1655 (gimple_omp_for_final_ptr): Likewise.
1656 (gimple_omp_for_set_final): Likewise.
1657 (gimple_omp_for_incr): Likewise.
1658 (gimple_omp_for_incr_ptr): Likewise.
1659 (gimple_omp_for_set_incr): Likewise.
1660 (gimple_omp_for_pre_body): Likewise.
1661 (gimple_omp_for_set_pre_body): Likewise.
1662 (gimple_omp_parallel_clauses): Update for renaming of subclass to
1663 gomp_parallel.
1664 (gimple_omp_parallel_clauses_ptr): Require a gomp_parallel *.
1665 (gimple_omp_parallel_set_clauses): Likewise.
1666 (gimple_omp_parallel_child_fn_ptr): Likewise.
1667 (gimple_omp_parallel_set_child_fn): Likewise.
1668 (gimple_omp_parallel_data_arg_ptr): Likewise.
1669 (gimple_omp_parallel_set_data_arg): Likewise.
1670 (gimple_omp_parallel_child_fn): Require a const gomp_parallel *.
1671 (gimple_omp_parallel_data_arg): Likewise.
1672 (gimple_omp_task_clauses): Update for renaming of subclass to
1673 gomp_task.
1674 (gimple_omp_task_clauses_ptr): Likewise.
1675 (gimple_omp_task_set_clauses): Likewise.
1676 (gimple_omp_task_child_fn): Likewise.
1677 (gimple_omp_task_child_fn_ptr): Likewise.
1678 (gimple_omp_task_set_child_fn): Likewise.
1679 (gimple_omp_task_data_arg): Likewise.
1680 (gimple_omp_task_data_arg_ptr): Likewise.
1681 (gimple_omp_task_set_data_arg): Likewise.
1682 (gimple_omp_taskreg_clauses): Whitespace fixes.
1683 (gimple_omp_taskreg_clauses_ptr): Likewise.
1684 (gimple_omp_taskreg_set_clauses): Likewise.
1685 (gimple_omp_taskreg_child_fn): Likewise.
1686 (gimple_omp_taskreg_child_fn_ptr): Likewise.
1687 (gimple_omp_taskreg_set_child_fn): Likewise.
1688 (gimple_omp_taskreg_data_arg): Likewise.
1689 (gimple_omp_taskreg_data_arg_ptr): Likewise.
1690 (gimple_omp_taskreg_set_data_arg): Likewise.
1691 (gimple_omp_task_copy_fn): Update for renaming of subclass to
1692 gomp_task.
1693 (gimple_omp_task_copy_fn_ptr): Likewise.
1694 (gimple_omp_task_set_copy_fn): Likewise.
1695 (gimple_omp_task_arg_size): Likewise.
1696 (gimple_omp_task_arg_size_ptr): Likewise.
1697 (gimple_omp_task_set_arg_size): Likewise.
1698 (gimple_omp_task_arg_align): Likewise.
1699 (gimple_omp_task_arg_align_ptr): Likewise.
1700 (gimple_omp_task_set_arg_align): Likewise.
1701 (gimple_omp_single_clauses): Update for renaming of subclass to
1702 gomp_single.
1703 (gimple_omp_single_clauses_ptr): Likewise.
1704 (gimple_omp_single_set_clauses): Likewise.
1705 (gimple_omp_target_clauses): Update for renaming of subclass to
1706 gomp_target.
1707 (gimple_omp_target_clauses_ptr): Likewise.
1708 (gimple_omp_target_set_clauses): Require a gomp_target *.
1709 (gimple_omp_target_set_kind): Likewise.
1710 (gimple_omp_target_child_fn_ptr): Likewise.
1711 (gimple_omp_target_set_child_fn): Likewise.
1712 (gimple_omp_target_data_arg_ptr): Likewise.
1713 (gimple_omp_target_set_data_arg): Likewise.
1714 (gimple_omp_target_child_fn): Require a const gomp_target *.
1715 (gimple_omp_target_data_arg): Likewise.
1716 (gimple_omp_teams_clauses): Update for renaming of subclass to
1717 gomp_teams.
1718 (gimple_omp_teams_clauses_ptr): Likewise.
1719 (gimple_omp_teams_set_clauses): Require a gomp_teams *.
1720 (gimple_omp_sections_clauses): Update for renaming of subclass to
1721 gomp_sections.
1722 (gimple_omp_sections_clauses_ptr): Likewise.
1723 (gimple_omp_sections_set_clauses): Likewise.
1724 (gimple_omp_sections_control): Likewise.
1725 (gimple_omp_sections_control_ptr): Likewise.
1726 (gimple_omp_sections_set_control): Likewise.
1727 (gimple_omp_for_set_cond): Likewise.
1728 (gimple_omp_for_cond): Likewise.
1729 (gimple_omp_atomic_store_set_val): Require a gomp_atomic_store *.
1730 (gimple_omp_atomic_store_val_ptr): Likewise.
1731 (gimple_omp_atomic_load_set_lhs): Likewise.
1732 (gimple_omp_atomic_store_val): Require a const gomp_atomic_store *.
1733 (gimple_omp_atomic_load_lhs): Likewise.
1734 (gimple_omp_atomic_load_rhs): Likewise.
1735 (gimple_omp_atomic_load_lhs_ptr): Require a gomp_atomic_load *.
1736 (gimple_omp_atomic_load_set_rhs): Likewise.
1737 (gimple_omp_atomic_load_rhs_ptr): Likewise.
1738 (gimple_omp_continue_control_def): Require a const gomp_continue *.
1739 (gimple_omp_continue_control_use): Likewise.
1740 (gimple_omp_continue_control_def_ptr): Require a gomp_continue *.
1741 (gimple_omp_continue_set_control_def): Likewise.
1742 (gimple_omp_continue_control_use_ptr): Likewise.
1743 (gimple_omp_continue_set_control_use): Likewise.
1744 (gimple_transaction_body_ptr): Require a gtransaction *.
1745 (gimple_transaction_body): Likewise.
1746 (gimple_transaction_label_ptr): Likewise.
1747 (gimple_transaction_label): Require a const gtransaction *.
1748 (gimple_transaction_subcode): Likewise.
1749 (gimple_transaction_set_body): Require a gtransaction *.
1750 (gimple_transaction_set_label): Likewise.
1751 (gimple_transaction_set_subcode): Likewise.
1752 (gimple_return_retval_ptr): Require a const greturn *.
1753 (gimple_return_retval): Likewise.
1754 (gimple_return_set_retval): Require a greturn *.
1755 (gimple_expr_type): Introduce local "call_stmt" and use in place of
1756 "stmt" for typesafety.
1757
1758 * asan.c: Use gimple subclasses.
1759 * auto-profile.c: Likewise.
1760 * builtins.c: Likewise.
1761 * builtins.h: Likewise.
1762 * cfgexpand.c: Likewise.
1763 * cfgloop.c: Likewise.
1764 * cfgloopmanip.c: Likewise.
1765 * cgraph.c: Likewise.
1766 * cgraph.h: Likewise.
1767 * cgraphbuild.c: Likewise.
1768 * cgraphclones.c: Likewise.
1769 * cgraphunit.c: Likewise.
1770 * expr.h: Likewise.
1771 * gimple-builder.c: Likewise.
1772 * gimple-builder.h: Likewise.
1773 * gimple-fold.c: Likewise.
1774 * gimple-low.c: Likewise.
1775 * gimple-pretty-print.c: Likewise.
1776 * gimple-ssa-isolate-paths.c: Likewise.
1777 * gimple-ssa-strength-reduction.c: Likewise.
1778 * gimple-streamer-in.c: Likewise.
1779 * gimple-streamer-out.c: Likewise.
1780 * gimple-walk.c: Likewise.
1781 * gimplify-me.c: Likewise.
1782 * gimplify.c: Likewise.
1783 * gimplify.h: Likewise.
1784 * graphite-scop-detection.c: Likewise.
1785 * graphite-sese-to-poly.c: Likewise.
1786 * internal-fn.c: Likewise.
1787 * internal-fn.def:: Likewise.
1788 * internal-fn.h: Likewise.
1789 * ipa-icf-gimple.c: Likewise.
1790 * ipa-icf-gimple.h: Likewise.
1791 * ipa-icf.c: Likewise.
1792 * ipa-inline-analysis.c: Likewise.
1793 * ipa-prop.c: Likewise.
1794 * ipa-prop.h: Likewise.
1795 * ipa-pure-const.c: Likewise.
1796 * ipa-split.c: Likewise.
1797 * lto-streamer-in.c: Likewise.
1798 * lto-streamer-out.c: Likewise.
1799 * omp-low.c: Likewise.
1800 * predict.c: Likewise.
1801 * sanopt.c: Likewise.
1802 * sese.c: Likewise.
1803 * ssa-iterators.h: Likewise.
1804 * stmt.c: Likewise.
1805 * trans-mem.c: Likewise.
1806 * tree-call-cdce.c: Likewise.
1807 * tree-cfg.c: Likewise.
1808 * tree-cfg.h: Likewise.
1809 * tree-cfgcleanup.c: Likewise.
1810 * tree-chkp.c: Likewise.
1811 * tree-chkp.h: Likewise.
1812 * tree-complex.c: Likewise.
1813 * tree-data-ref.c: Likewise.
1814 * tree-dfa.c: Likewise.
1815 * tree-eh.c: Likewise.
1816 * tree-eh.h: Likewise.
1817 * tree-emutls.c: Likewise.
1818 * tree-if-conv.c: Likewise.
1819 * tree-inline.c: Likewise.
1820 * tree-inline.h: Likewise.
1821 * tree-into-ssa.c: Likewise.
1822 * tree-into-ssa.h: Likewise.
1823 * tree-loop-distribution.c: Likewise.
1824 * tree-nrv.c: Likewise.
1825 * tree-object-size.c: Likewise.
1826 * tree-outof-ssa.c: Likewise.
1827 * tree-parloops.c: Likewise.
1828 * tree-phinodes.c: Likewise.
1829 * tree-phinodes.h: Likewise.
1830 * tree-predcom.c: Likewise.
1831 * tree-profile.c: Likewise.
1832 * tree-scalar-evolution.c: Likewise.
1833 * tree-scalar-evolution.h
1834 * tree-sra.cn_function):
1835 * tree-ssa-alias.c: Likewise.
1836 * tree-ssa-alias.h: Likewise.
1837 * tree-ssa-ccp.c: Likewise.
1838 * tree-ssa-coalesce.c: Likewise.
1839 * tree-ssa-copy.c: Likewise.
1840 * tree-ssa-copyrename.c: Likewise.
1841 * tree-ssa-dce.c: Likewise.
1842 * tree-ssa-dom.c: Likewise.
1843 * tree-ssa-forwprop.c: Likewise.
1844 * tree-ssa-ifcombine.c: Likewise.
1845 * tree-ssa-live.c: Likewise.
1846 * tree-ssa-loop-im.c: Likewise.
1847 * tree-ssa-loop-ivcanon.c: Likewise.
1848 * tree-ssa-loop-ivopts.c: Likewise.
1849 * tree-ssa-loop-manip.c: Likewise.
1850 * tree-ssa-loop-niter.c: Likewise.
1851 * tree-ssa-loop-prefetch.c: Likewise.
1852 * tree-ssa-loop-unswitch.c: Likewise.
1853 * tree-ssa-math-opts.c: Likewise.
1854 * tree-ssa-operands.c: Likewise.
1855 * tree-ssa-phiopt.c: Likewise.
1856 * tree-ssa-phiprop.c: Likewise.
1857 * tree-ssa-pre.c: Likewise.
1858 * tree-ssa-propagate.c: Likewise.
1859 * tree-ssa-propagate.h: Likewise.
1860 * tree-ssa-reassoc.c: Likewise.
1861 * tree-ssa-sccvn.c: Likewise.
1862 * tree-ssa-sccvn.h: Likewise.
1863 * tree-ssa-sink.c: Likewise.
1864 * tree-ssa-strlen.c
1865 * tree-ssa-structalias.c
1866 * tree-ssa-tail-merge.c: Likewise.
1867 * tree-ssa-ter.c: Likewise.
1868 * tree-ssa-threadedge.c: Likewise.
1869 * tree-ssa-threadedge.h: Likewise.
1870 * tree-ssa-threadupdate.c: Likewise.
1871 * tree-ssa-uncprop.c: Likewise.
1872 * tree-ssa-uninit.c: Likewise.
1873 * tree-ssa.c: Likewise.
1874 * tree-stdarg.c: Likewise.
1875 * tree-switch-conversion.c: Likewise.
1876 * tree-tailcall.c: Likewise.
1877 * tree-vect-data-refs.c: Likewise.
1878 * tree-vect-generic.c: Likewise.
1879 * tree-vect-loop-manip.c: Likewise.
1880 * tree-vect-loop.c: Likewise.
1881 * tree-vect-patterns.c: Likewise.
1882 * tree-vect-slp.c: Likewise.
1883 * tree-vect-stmts.c: Likewise.
1884 * tree-vectorizer.h: Likewise.
1885 * tree-vrp.c: Likewise.
1886 * tree.c: Likewise.
1887 * ubsan.c: Likewise.
1888 * value-prof.c: Likewise.
1889 * value-prof.h: Likewise.
1890 * vtable-verify.c: Likewise.
1891
1892 2014-11-19 Markus Trippelsdorf <markus@trippelsdorf.de>
1893
1894 * config/rs6000/constraints.md: Avoid signed integer overflows.
1895 * config/rs6000/predicates.md: Likewise.
1896
1897 2014-11-19 Renlin Li <Renlin.Li@arm.com>
1898
1899 PR target/63424
1900 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): New.
1901
1902 2014-11-19 Renlin Li <Renlin.Li@arm.com>
1903
1904 PR middle-end/63762
1905 * ira.c (ira): Update preferred class.
1906
1907 2014-11-19 Jakub Jelinek <jakub@redhat.com>
1908
1909 * gimple.h (gimple_build_assign_with_ops): Add unary arg overload.
1910 (gimple_assign_set_rhs_with_ops_1): Renamed to ...
1911 (gimple_assign_set_rhs_with_ops): ... this. Adjust binary arg
1912 inline overload to use it. Add unary arg overload.
1913 * gimple.c (gimple_build_assign_with_ops): New unary arg overload.
1914 (gimple_assign_set_rhs_from_tree): Use
1915 gimple_assign_set_rhs_with_ops instead of
1916 gimple_assign_set_rhs_with_ops_1.
1917 (gimple_assign_set_rhs_with_ops_1): Renamed to ...
1918 (gimple_assign_set_rhs_with_ops): ... this.
1919 * ipa-split.c (split_function): Remove last NULL argument
1920 from gimple_build_assign_with_ops call.
1921 * tree-ssa-loop-im.c
1922 (move_computations_dom_walker::before_dom_children): Likewise.
1923 * tsan.c (instrument_builtin_call): Likewise.
1924 * tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
1925 vectorizable_conversion, vectorizable_load): Likewise.
1926 * tree-vect-loop.c (vect_is_simple_reduction_1,
1927 get_initial_def_for_induction): Likewise.
1928 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
1929 * tree-vect-patterns.c (vect_handle_widen_op_by_const,
1930 vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
1931 vect_recog_over_widening_pattern, vect_recog_rotate_pattern,
1932 vect_recog_vector_vector_shift_pattern, vect_recog_divmod_pattern,
1933 vect_recog_mixed_size_cond_pattern, adjust_bool_pattern_cast,
1934 adjust_bool_pattern, vect_recog_bool_pattern): Likewise.
1935 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
1936 neg_replacement): Likewise.
1937 * asan.c (build_shadow_mem_access, maybe_create_ssa_name,
1938 maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
1939 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1940 * omp-low.c (lower_rec_input_clauses, expand_omp_for_generic,
1941 expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
1942 simd_clone_adjust): Likewise.
1943 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
1944 * gimple-ssa-strength-reduction.c (introduce_cast_before_cand,
1945 replace_one_candidate): Likewise.
1946 * gimple-builder.c (build_type_cast): Likewise.
1947 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
1948 (forward_propagate_addr_expr_1): Remove last NULL argument
1949 from gimple_assign_set_rhs_with_ops call.
1950 (simplify_vector_constructor): Use gimple_assign_set_rhs_with_ops
1951 instead of gimple_assign_set_rhs_with_ops_1.
1952 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Remove last NULL
1953 argument from gimple_build_assign_with_ops call.
1954 (repropagate_negates): Remove last NULL argument from
1955 gimple_assign_set_rhs_with_ops call.
1956 * ubsan.c (ubsan_expand_null_ifn, ubsan_expand_objsize_ifn): Remove
1957 last NULL argument from gimple_build_assign_with_ops call.
1958 (instrument_bool_enum_load): Likewise. Remove last NULL argument
1959 from gimple_assign_set_rhs_with_ops call.
1960 * tree-ssa-math-opts.c (build_and_insert_cast, convert_mult_to_fma):
1961 Remove last NULL argument from gimple_build_assign_with_ops call.
1962 (bswap_replace): Likewise. Use gimple_assign_set_rhs_with_ops instead
1963 of gimple_assign_set_rhs_with_ops_1.
1964 (convert_plusminus_to_widen): Use gimple_assign_set_rhs_with_ops
1965 instead of gimple_assign_set_rhs_with_ops_1.
1966 * gimple-fold.c (replace_stmt_with_simplification): Likewise.
1967 (rewrite_to_defined_overflow, gimple_build): Remove last NULL argument
1968 from gimple_build_assign_with_ops call.
1969 * tree-ssa-strlen.c (handle_pointer_plus): Remove last NULL argument
1970 from gimple_assign_set_rhs_with_ops call.
1971 * tree-vrp.c (simplify_truth_ops_using_ranges,
1972 simplify_bit_ops_using_ranges): Remove last NULL argument from
1973 gimple_assign_set_rhs_with_ops call.
1974 (simplify_float_conversion_using_ranges,
1975 simplify_internal_call_using_ranges): Remove last NULL argument from
1976 gimple_build_assign_with_ops call.
1977
1978 2014-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1979
1980 PR target/61915
1981 * config/aarch64/aarch64.c (generic_regmove_cost): Increase FP move
1982 cost.
1983
1984 2014-11-19 Marek Polacek <polacek@redhat.com>
1985
1986 PR sanitizer/63690
1987 * ubsan.c (instrument_object_size): Check for MEM_REF.
1988
1989 2014-11-19 Ilya Verbin <ilya.verbin@intel.com>
1990
1991 PR regression/63868
1992 * cgraph.c (cgraph_node::create): Guard g->have_offload with
1993 ifdef ENABLE_OFFLOADING.
1994 * omp-low.c (create_omp_child_function): Likewise.
1995 (expand_omp_target): Guard node->mark_force_output and offload_funcs
1996 with ifdef ENABLE_OFFLOADING.
1997 * varpool.c (varpool_node::get_create): Guard g->have_offload and
1998 offload_vars with ifdef ENABLE_OFFLOADING.
1999
2000 2014-11-19 Felix Yang <felix.yang@huawei.com>
2001 Shanyao Chen <chenshanyao@huawei.com>
2002
2003 PR target/59593
2004 * config/arm/arm.md (define_attr "arch"): Add v6t2.
2005 (define_attr "arch_enabled"): Add test for the above.
2006 (*movhi_insn_arch4): Add new alternative.
2007
2008 2014-11-19 Richard Henderson <rth@redhat.com>
2009
2010 * c-family/c-common.c (c_common_reswords): Add
2011 __builtin_call_with_static_chain.
2012 * c-family/c-common.h (RID_BUILTIN_CALL_WITH_STATIC_CHAIN): New.
2013 * c/c-parser.c (c_parser_postfix_expression): Handle it.
2014 * doc/extend.texi (__builtin_call_with_static_chain): Document it.
2015
2016 * calls.c (prepare_call_address): Allow decl or type for first arg.
2017 (expand_call): Pass type to prepare_call_address if no decl.
2018 * gimple-fold.c (gimple_fold_call): Eliminate the static chain if
2019 the function doesn't use it; fold it otherwise.
2020 * gimplify.c (gimplify_call_expr): Gimplify the static chain.
2021 * tree-cfg.c (verify_gimple_call): Allow a static chain on indirect
2022 function calls.
2023
2024 * targhooks.c (default_static_chain): Remove check for
2025 DECL_STATIC_CHAIN.
2026 * config/moxie/moxie.c (moxie_static_chain): Likewise.
2027 * config/i386/i386.c (ix86_static_chain): Allow decl or type
2028 as the first argument.
2029 * config/xtensa/xtensa.c (xtensa_static_chain): Change the name
2030 of the unused first parameter.
2031 * doc/tm.texi (TARGET_STATIC_CHAIN): Document the first parameter
2032 may be a type.
2033 * target.def (static_chain): Likewise.
2034
2035 2014-11-19 Renlin Li <renlin.li@arm.com>
2036
2037 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_FP_FAST,
2038 __ARM_FEATURE_FMA, __ARM_FP, __ARM_FEATURE_NUMERIC_MAXMIN, __ARM_NEON_FP.
2039
2040 2014-11-19 Marek Polacek <polacek@redhat.com>
2041
2042 PR sanitizer/63879
2043 * fold-const.c (negate_expr_p) <case NEGATE_EXPR>: Return
2044 !TYPE_OVERFLOW_SANITIZED.
2045 (fold_negate_expr) <case INTEGER_CST>: Fold when overflow
2046 does not trap and when overflow wraps, or when SANITIZE_SI_OVERFLOW
2047 is 0.
2048
2049 2014-11-19 Ilya Tocar <ilya.tocar@intel.com>
2050
2051 * collect2.c (main): Don't call fatal_error before
2052 diagnostic_initialize.
2053 * lto-wrapper.c (main): Likewise.
2054
2055 2014-11-19 Tom de Vries <tom@codesourcery.com>
2056
2057 PR tree-optimization/62167
2058 * tree-ssa-tail-merge.c (stmt_local_def): Handle statements with vuse
2059 conservatively.
2060 (gimple_equal_p): Don't use vn_valueize to compare for lhs equality of
2061 assigns.
2062
2063 2014-11-19 Jakub Jelinek <jakub@redhat.com>
2064
2065 PR tree-optimization/63915
2066 * tree-vect-stmts.c (vectorizable_simd_clone_call): Pass
2067 true instead of false as last argument to gsi_replace.
2068
2069 PR sanitizer/63520
2070 * internal-fn.c (expand_ubsan_result_store): New function.
2071 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
2072 Use it instead of just emit_move_insn.
2073
2074 2014-11-19 Richard Biener <rguenther@suse.de>
2075
2076 PR tree-optimization/63844
2077 * omp-low.c (fixup_child_record_type): Use a restrict qualified
2078 referece type for the receiver parameter.
2079
2080 2014-11-19 Jakub Jelinek <jakub@redhat.com>
2081
2082 PR sanitizer/63913
2083 * ubsan.c: Include tree-eh.h.
2084 (instrument_bool_enum_load): Handle loads that can throw.
2085
2086 PR rtl-optimization/63843
2087 * simplify-rtx.c (simplify_binary_operation_1) <case ASHIFTRT>: For
2088 optimization of ashiftrt of subreg of lshiftrt, check that code
2089 is ASHIFTRT.
2090
2091 2014-11-18 Andrew MacLeod <amacleod@redhat.com>
2092
2093 * attribs.c (decl_attributes): Remove always true condition,
2094 TREE_TYPE(x) will never compare equal to a TYPE_DECL.
2095
2096 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
2097
2098 PR target/63937
2099 * target.def (use_by_pieces_infrastructure_p): Take unsigned
2100 HOST_WIDE_INT as the size parameter.
2101 * targhooks.c (default_use_by_pieces_infrastructure_p): Likewise.
2102 * targhooks.h (default_use_by_pieces_infrastructure_p): Likewise.
2103 * config/arc/arc.c (arc_use_by_pieces_infrastructure_p)): Likewise.
2104 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p)): Likewise.
2105 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p)): Likewise.
2106 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p)): Likewise.
2107 * config/aarch64/aarch64.c
2108 (aarch64_use_by_pieces_infrastructure_p)): Likewise.
2109 * doc/tm.texi: Regenerate.
2110
2111 2014-11-18 Jan Hubicka <hubicka@ucw.cz>
2112
2113 * ipa-cp.c (ipcp_cloning_candidate_p): Use opt_for_fn.
2114 (ipa_value_from_jfunc, ipa_context_from_jfunc): Skip sanity check.
2115 (ipa_get_indirect_edge_target_1): Use opt_for_fn.
2116 (good_cloning_opportunity_p): Likewise.
2117 (ipa-cp gate): Enable ipa-cp with LTO.
2118 * ipa-profile.c (ipa_propagate_frequency): Use opt_for_fn.
2119 * ipa.c (symbol_table::remove_unreachable_nodes): Always build type
2120 inheritance.
2121 * ipa-inline-transform.c (inline_transform): Check if there are inlines
2122 to apply even at -O0.
2123 * cgraphunit.c (cgraph_node::finalize_function): Use opt_for_fn.
2124 (analyze_functions): Build type inheritance graph.
2125 * ipa-inline.c (can_inline_edge_p): Use opt_for_fn.
2126 (want_early_inline_function_p, want_inline_small_function_p):
2127 Likewise.
2128 (check_callers): Likewise.
2129 (edge_badness): Likewise.
2130 (inline_small_functions): Always be ready for indirect inlining
2131 to happend.
2132 (ipa_inline): Always use want_inline_function_to_all_callers_p.
2133 (early_inline_small_functions): Use opt_for_fn.
2134 * ipa-inline-analysis.c (estimate_function_body_sizes): use opt_for_fn.
2135 (estimate_function_body_sizes): Likewise.
2136 (compute_inline_parameters): Likewise.
2137 (estimate_edge_devirt_benefit): Likewise.
2138 (inline_analyze_function): Likewise.
2139 * ipa-devirt.c (ipa_devirt): Likewise.
2140 (gate): Use in_lto_p.
2141 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): Use opt_for_fn.
2142 (try_make_edge_direct_virtual_call): Likewise.
2143 (update_indirect_edges_after_inlining): Likewise.
2144 (ipa_free_all_structures_after_ipa_cp): Add in_lto_p check.
2145 * common.opt (findirect-inlining): Turn into optimization.
2146 * ipa-pure-const.c (add_new_function): Use opt_for_fn.
2147 (pure_const_generate_summary): Likewise.
2148 (gate_pure_const): Always enable with in_lto_p.
2149
2150 2014-11-18 Maciej W. Rozycki <macro@codesourcery.com>
2151
2152 * config/mips/mips.md (compression): Add `micromips32' setting.
2153 (enabled, length): Handle it.
2154 (shift_compression): Replace `micromips' with `micromips32' in
2155 the `compression' attribute.
2156 (*add<mode>3, sub<mode>3): Likewise.
2157
2158 2014-11-18 Maciej W. Rozycki <macro@codesourcery.com>
2159
2160 * gcc/config/mips/mips.md (*jump_absolute): Use a branch when in
2161 range, a jump otherwise.
2162
2163 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2164
2165 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_to_from_gp):
2166 Split into...
2167 (cortex_a15_gp_to_vfp): ...This.
2168 (cortex_a15_fp_to_gp): ...And this.
2169 Define and comment bypass from vfp operations to fp->gp moves.
2170
2171 2014-11-18 Martin Liska <mliska@suse.cz>
2172
2173 * var-tracking.c (vt_find_locations): New fibonacci_node is used.
2174
2175 2014-11-18 Martin Liska <mliska@suse.cz>
2176
2177 * bt-load.c (add_btr_def): New fibonacci_heap is used.
2178 (migrate_btr_defs): Likewise.
2179
2180 2014-11-18 Martin Liska <mliska@suse.cz>
2181
2182 * tracer.c (tail_duplicate): New fibonacci_heap class is used.
2183
2184 2014-11-18 Martin Liska <mliska@suse.cz>
2185
2186 * bb-reorder.c (mark_bb_visited): New fibonacci_heap is used.
2187 (find_traces): Likewise.
2188 (find_traces_1_round): Likewise.
2189
2190 2014-11-18 Martin Liska <mliska@suse.cz>
2191
2192 * fibonacci_heap.h: New file.
2193 (fibonacci_heap::insert): Created from fibheap_insert.
2194 (fibonacci_heap::empty): Created from fibheap_empty.
2195 (fibonacci_heap::nodes): Created from fibheap_nodes.
2196 (fibonacci_heap::min_key): Created from fibheap_min_key.
2197 (fibonacci_heap::decrease_key): Created from fibheap_replace_key.
2198 (fibonacci_heap::replace_key_data): Created from fibheap_replace_key_data.
2199 (fibonacci_heap::extract_min): Created from fibheap_extract_min.
2200 (fibonacci_heap::min): Created from fibheap_min.
2201 (fibonacci_heap::replace_data): Created from fibheap_replace_data.
2202 (fibonacci_heap::delete_node): Created from fibheap_delete_node.
2203 (fibonacci_heap::union_with): Created from fibheap_union.
2204 * ipa-inline.c (update_edge_key): New heap API is used.
2205 (update_caller_keys): Likewise.
2206 (update_callee_keys): Likewise.
2207 (lookup_recursive_calls): Likewise.
2208 (recursive_inlining): Likewise.
2209 (add_new_edges_to_heap): Likewise.
2210 (heap_edge_removal_hook): Likewise.
2211 (inline_small_functions): Likewise.
2212
2213 2014-11-18 Marek Polacek <polacek@redhat.com>
2214
2215 PR sanitizer/63866
2216 * asan.c (asan_global_struct): Create a TYPE_DECL for "__asan_global",
2217 put it into TYPE_NAME and TYPE_STUB_DECL.
2218 * ubsan.c (ubsan_type_descriptor_type): New variable.
2219 Function renamed to ...
2220 (ubsan_get_type_descriptor_type): ... this. Cache
2221 return value in ubsan_type_descriptor_type variable.
2222 Create a TYPE_DECL for "__ubsan_type_descriptor", put it into
2223 TYPE_NAME and TYPE_STUB_DECL.
2224 (ubsan_get_source_location_type): Create a TYPE_DECL for
2225 "__ubsan_source_location", put it into TYPE_NAME and TYPE_STUB_DECL.
2226 (ubsan_type_descriptor, ubsan_create_data): Call
2227 ubsan_get_type_descriptor_type instead of ubsan_type_descriptor_type.
2228 Create a TYPE_DECL for name, put it into TYPE_NAME and TYPE_STUB_DECL.
2229
2230 2014-11-18 Felix Yang <felix.yang@huawei.com>
2231
2232 * config/aarch64/aarch64.c (doloop_end): New pattern.
2233 * config/aarch64/aarch64.md (TARGET_CAN_USE_DOLOOP_P): Implement.
2234
2235 2014-11-18 Jason Merrill <jason@redhat.com>
2236
2237 * tree.c (warn_deprecated_use): Show declaration with inform.
2238
2239 2014-11-18 Richard Biener <rguenther@suse.de>
2240
2241 PR tree-optimization/63914
2242 * tree-ssa-ccp.c (canonicalize_value): Remove float value
2243 canonicalization.
2244 (valid_lattice_transition): Allow (partial) transition
2245 from NaN to non-NaN if !HONOR_NANS.
2246 (set_lattice_value): Check for valid lattice transitions
2247 only when checking is enabled.
2248
2249 2014-11-18 Bernd Schmidt <bernds@codesourcery.com>
2250
2251 * config/nvptx/nvptx.c: Include <sstream> directly after "config.h".
2252
2253 2014-11-18 Christophe Lyon <christophe.lyon@linaro.org>
2254
2255 * config/arm/neon-testgen.ml (emit_prologue): Handle new
2256 compile_test_optim argument.
2257 (emit_automatics): Rename to emit_variables. Support variable
2258 indentation of its output.
2259 (compile_test_optim): New function.
2260 (test_intrinsic): Call compile_test_optim.
2261 * config/arm/neon.ml (features): Add Compiler_optim.
2262 (ops): Add Compiler_optim feature to Vbic and Vorn.
2263 (type_in_crypto_only): Replace 'or' by '||'.
2264 (reinterp): Likewise.
2265 (reinterpq): Likewise.
2266
2267 2014-11-18 Alan Lawrence <alan.lawrence@arm.com>
2268
2269 * config/aarch64/arm_neon.h (vld1_dup_f32, vld1_dup_f64, vld1_dup_p8,
2270 vld1_dup_p16, vld1_dup_s8, vld1_dup_s16, vld1_dup_s32, vld1_dup_s64,
2271 vld1_dup_u8, vld1_dup_u16, vld1_dup_u32, vld1_dup_u64, vld1q_dup_f32,
2272 vld1q_dup_f64, vld1q_dup_p8, vld1q_dup_p16, vld1q_dup_s8, vld1q_dup_s16,
2273 vld1q_dup_s32, vld1q_dup_s64, vld1q_dup_u8, vld1q_dup_u16,
2274 vld1q_dup_u32, vld1q_dup_u64): Replace inline asm with vdup_n_ and
2275 pointer dereference.
2276
2277 2014-11-18 Marc Glisse <marc.glisse@inria.fr>
2278
2279 * tree.c (element_mode, integer_truep): New functions.
2280 * tree.h (element_mode, integer_truep): Declare them.
2281 * fold-const.c (negate_expr_p, fold_negate_expr, combine_comparisons,
2282 fold_cond_expr_with_comparison, fold_real_zero_addition_p,
2283 fold_comparison, fold_ternary_loc, tree_call_nonnegative_warnv_p,
2284 fold_strip_sign_ops): Use element_mode.
2285 (fold_binary_loc): Use element_mode and element_precision.
2286 * match.pd: Use integer_truep, element_mode, element_precision,
2287 VECTOR_TYPE_P and build_one_cst. Extend some transformations to
2288 vectors. Simplify A/-A.
2289
2290 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2291
2292 * config/arm/arm.md (unaligned_loaddi): Use std::swap instead of
2293 manual swapping implementation.
2294 (movcond_addsi): Likewise.
2295 * config/arm/arm.c (arm_canonicalize_comparison): Likewise.
2296 (arm_select_dominance_cc_mode): Likewise.
2297 (arm_reload_out_hi): Likewise.
2298 (gen_operands_ldrd_strd): Likewise.
2299 (output_move_double): Likewise.
2300 (arm_print_operand_address): Likewise.
2301 (thumb_output_move_mem_multiple): Likewise.
2302 (SWAP_RTX): Delete.
2303
2304 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
2305
2306 * config/arm/arm-builtins.c (CONVERT_QUALIFIERS): Delete.
2307 (COPYSIGNF_QUALIFIERS): Likewise.
2308 (CREATE_QUALIFIERS): Likewise.
2309 (DUP_QUALIFIERS): Likewise.
2310 (FLOAT_WIDEN_QUALIFIERS): Likewise.
2311 (FLOAT_NARROW_QUALIFIERS): Likewise.
2312 (REINTERP_QUALIFIERS): Likewise.
2313 (RINT_QUALIFIERS): Likewise.
2314 (SPLIT_QUALIFIERS): Likewise.
2315 (FIXCONV_QUALIFIERS): Likewise.
2316 (SCALARMUL_QUALIFIERS): Likewise.
2317 (SCALARMULL_QUALIFIERS): Likewise.
2318 (SCALARMULH_QUALIFIERS): Likewise.
2319 (SELECT_QUALIFIERS): Likewise.
2320 (VTBX_QUALIFIERS): Likewise.
2321 (SHIFTIMM_QUALIFIERS): Likewise.
2322 (SCALARMAC_QUALIFIERS): Likewise.
2323 (LANEMUL_QUALIFIERS): Likewise.
2324 (LANEMULH_QUALIFIERS): Likewise.
2325 (LANEMULL_QUALIFIERS): Likewise.
2326 (SHIFTACC_QUALIFIERS): Likewise.
2327 (SHIFTINSERT_QUALIFIERS): Likewise.
2328 (VTBL_QUALIFIERS): Likewise.
2329 (LOADSTRUCT_QUALIFIERS): Likewise.
2330 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
2331 (STORESTRUCT_QUALIFIERS): Likewise.
2332 (STORESTRUCTLANE_QUALIFIERS): Likewise.
2333 (neon_builtin_type_mode): Delete.
2334 (v8qi_UP): Map to V8QImode.
2335 (v8qi_UP): Map to V8QImode.
2336 (v4hi_UP): Map to V4HImode.
2337 (v4hf_UP): Map to V4HFmode.
2338 (v2si_UP): Map to V2SImode.
2339 (v2sf_UP): Map to V2SFmode.
2340 (di_UP): Map to DImode.
2341 (v16qi_UP): Map to V16QImode.
2342 (v8hi_UP): Map to V8HImode.
2343 (v4si_UP): Map to V4SImode.
2344 (v4sf_UP): Map to V4SFmode.
2345 (v2di_UP): Map to V2DImode.
2346 (ti_UP): Map to TImode.
2347 (ei_UP): Map to EImode.
2348 (oi_UP): Map to OImode.
2349 (neon_itype): Delete.
2350 (neon_builtin_datum): Remove itype, make mode a machine_mode.
2351 (VAR1): Update accordingly.
2352 (arm_init_neon_builtins): Use machine_mode directly.
2353 (neon_dereference_pointer): Likewise.
2354 (arm_expand_neon_args): Use qualifiers to decide operand types.
2355 (arm_expand_neon_builtin): Likewise.
2356 * config/arm/arm_neon_builtins.def: Remap operation type for
2357 many builtins.
2358
2359 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
2360
2361 * config/arm/arm-builtins.c (arm_scalar_builtin_types): New.
2362 (enum arm_simd_type): Likewise.
2363 (struct arm_simd_type_info): Likewise
2364 (arm_mangle_builtin_scalar_type): Likewise.
2365 (arm_mangle_builtin_vector_type): Likewise.
2366 (arm_mangle_builtin_type): Likewise.
2367 (arm_simd_builtin_std_type): Likewise.
2368 (arm_lookup_simd_builtin_type): Likewise.
2369 (arm_simd_builtin_type): Likewise.
2370 (arm_init_simd_builtin_types): Likewise.
2371 (arm_init_simd_builtin_scalar_types): Likewise.
2372 (arm_init_neon_builtins): Rewrite using qualifiers.
2373 * config/arm/arm-protos.h (arm_mangle_builtin_type): New.
2374 * config/arm/arm-simd-builtin-types.def: New file.
2375 * config/arm/t-arm (arm-builtins.o): Depend on it.
2376 * config/arm/arm.c (arm_mangle_type): Call arm_mangle_builtin_type.
2377 * config/arm/arm_neon.h (int8x8_t): Use new internal type.
2378 (int16x4_t): Likewise.
2379 (int32x2_t): Likewise.
2380 (float16x4_t): Likewise.
2381 (float32x2_t): Likewise.
2382 (poly8x8_t): Likewise.
2383 (poly16x4_t): Likewise.
2384 (uint8x8_t): Likewise.
2385 (uint16x4_t): Likewise.
2386 (uint32x2_t): Likewise.
2387 (int8x16_t): Likewise.
2388 (int16x8_t): Likewise.
2389 (int32x4_t): Likewise.
2390 (int64x2_t): Likewise.
2391 (float32x4_t): Likewise.
2392 (poly8x16_t): Likewise.
2393 (poly16x8_t): Likewise.
2394 (uint8x16_t): Likewise.
2395 (uint16x8_t): Likewise.
2396 (uint32x4_t): Likewise.
2397 (uint64x2_t): Likewise.
2398
2399 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
2400
2401 * gcc/config/arm/arm-builtins.c (arm_type_qualifiers): New.
2402 (neon_itype): Add new types corresponding to the types used in
2403 qualifiers names.
2404 (arm_unop_qualifiers): New.
2405 (arm_bswap_qualifiers): Likewise.
2406 (arm_binop_qualifiers): Likewise.
2407 (arm_ternop_qualifiers): Likewise.
2408 (arm_getlane_qualifiers): Likewise.
2409 (arm_lanemac_qualifiers): Likewise.
2410 (arm_setlane_qualifiers): Likewise.
2411 (arm_combine_qualifiers): Likewise.
2412 (arm_load1_qualifiers): Likewise.
2413 (arm_load1_lane_qualifiers): Likewise.
2414 (arm_store1_qualifiers): Likewise.
2415 (arm_storestruct_lane_qualifiers): Likewise.
2416 (UNOP_QUALIFIERS): Likewise.
2417 (DUP_QUALIFIERS): Likewise.
2418 (SPLIT_QUALIFIERS): Likewise.
2419 (CONVERT_QUALIFIERS): Likewise.
2420 (FLOAT_WIDEN_QUALIFIERS): Likewise.
2421 (FLOAT_NARROW_QUALIFIERS): Likewise.
2422 (RINT_QUALIFIERS): Likewise.
2423 (COPYSIGNF_QUALIFIERS): Likewise.
2424 (CREATE_QUALIFIERS): Likewise.
2425 (REINTERP_QUALIFIERS): Likewise.
2426 (BSWAP_QUALIFIERS): Likewise.
2427 (BINOP_QUALIFIERS): Likewise.
2428 (FIXCONV_QUALIFIERS): Likewise.
2429 (SCALARMUL_QUALIFIERS): Likewise.
2430 (SCALARMULL_QUALIFIERS): Likewise.
2431 (SCALARMULH_QUALIFIERS): Likewise.
2432 (TERNOP_QUALIFIERS): Likewise.
2433 (SELECT_QUALIFIERS): Likewise.
2434 (VTBX_QUALIFIERS): Likewise.
2435 (GETLANE_QUALIFIERS): Likewise.
2436 (SHIFTIMM_QUALIFIERS): Likewise.
2437 (LANEMAC_QUALIFIERS): Likewise.
2438 (SCALARMAC_QUALIFIERS): Likewise.
2439 (SETLANE_QUALIFIERS): Likewise.
2440 (SHIFTINSERT_QUALIFIERS): Likewise.
2441 (SHIFTACC_QUALIFIERS): Likewise.
2442 (LANEMUL_QUALIFIERS): Likewise.
2443 (LANEMULL_QUALIFIERS): Likewise.
2444 (LANEMULH_QUALIFIERS): Likewise.
2445 (COMBINE_QUALIFIERS): Likewise.
2446 (VTBL_QUALIFIERS): Likewise.
2447 (LOAD1_QUALIFIERS): Likewise.
2448 (LOADSTRUCT_QUALIFIERS): Likewise.
2449 (LOAD1LANE_QUALIFIERS): Likewise.
2450 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
2451 (STORE1_QUALIFIERS): Likewise.
2452 (STORESTRUCT_QUALIFIERS): Likewise.
2453 (STORE1LANE_QUALIFIERS): Likewise.
2454 (STORESTRUCTLANE_QUALIFIERS): Likewise.
2455 (neon_builtin_datum): Keep track of qualifiers.
2456 (VAR1): Likewise.
2457
2458 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
2459
2460 * config/arm/arm-builtins.c (VAR1): Add a comma.
2461 (VAR2): Rewrite in terms of VAR1.
2462 (VAR3-10): Likewise.
2463 (arm_builtins): Remove leading comma before ARM_BUILTIN_MAX.
2464 * config/arm/arm_neon_builtins.def: Remove trailing commas.
2465
2466 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
2467
2468 * config.gcc (extra_objs): Add arm-builtins.o for arm*-*-*.
2469 (target_gtfiles): Add config/arm/arm-builtins.c for arm*-*-*.
2470 * config/arm/arm-builtins.c: New.
2471 * config/arm/t-arm (arm_builtins.o): New.
2472 * config/arm/arm-protos.h (arm_expand_builtin): New.
2473 (arm_builtin_decl): Likewise.
2474 (arm_init_builtins): Likewise.
2475 (arm_atomic_assign_expand_fenv): Likewise.
2476 * config/arm/arm.c (arm_atomic_assign_expand_fenv): Remove prototype.
2477 (arm_init_builtins): Likewise.
2478 (arm_init_iwmmxt_builtins): Likewise
2479 (safe_vector_operand): Likewise
2480 (arm_expand_binop_builtin): Likewise
2481 (arm_expand_unop_builtin): Likewise
2482 (arm_expand_builtin): Likewise
2483 (arm_builtin_decl): Likewise
2484 (insn_flags): Remove static.
2485 (tune_flags): Likewise.
2486 (enum arm_builtins): Move to config/arm/arm-builtins.c.
2487 (arm_init_neon_builtins): Likewise.
2488 (struct builtin_description): Likewise.
2489 (arm_init_iwmmxt_builtins): Likewise.
2490 (arm_init_fp16_builtins): Likewise.
2491 (arm_init_crc32_builtins): Likewise.
2492 (arm_init_builtins): Likewise.
2493 (arm_builtin_decl): Likewise.
2494 (safe_vector_operand): Likewise.
2495 (arm_expand_ternop_builtin): Likewise.
2496 (arm_expand_binop_builtin): Likewise.
2497 (arm_expand_unop_builtin): Likewise.
2498 (neon_dereference_pointer): Likewise.
2499 (arm_expand_neon_args): Likewise.
2500 (arm_expand_neon_builtin): Likewise.
2501 (neon_split_vcombine): Likewise.
2502 (arm_expand_builtin): Likewise.
2503 (arm_builtin_vectorized_function): Likewise.
2504 (arm_atomic_assign_expand_fenv): Likewise.
2505
2506 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
2507
2508 * config/arm/t-arm (arm.o): Include arm-protos.h in the recipe.
2509 * config/arm/arm.c (FL_CO_PROC): Move to arm-protos.h.
2510 (FL_ARCH3M): Likewise.
2511 (FL_MODE26): Likewise.
2512 (FL_MODE32): Likewise.
2513 (FL_ARCH4): Likewise.
2514 (FL_ARCH5): Likewise.
2515 (FL_THUMB): Likewise.
2516 (FL_LDSCHED): Likewise.
2517 (FL_STRONG): Likewise.
2518 (FL_ARCH5E): Likewise.
2519 (FL_XSCALE): Likewise.
2520 (FL_ARCH6): Likewise.
2521 (FL_VFPV2): Likewise.
2522 (FL_WBUF): Likewise.
2523 (FL_ARCH6K): Likewise.
2524 (FL_THUMB2): Likewise.
2525 (FL_NOTM): Likewise.
2526 (FL_THUMB_DIV): Likewise.
2527 (FL_VFPV3): Likewise.
2528 (FL_NEON): Likewise.
2529 (FL_ARCH7EM): Likewise.
2530 (FL_ARCH7): Likewise.
2531 (FL_ARM_DIV): Likewise.
2532 (FL_ARCH8): Likewise.
2533 (FL_CRC32): Likewise.
2534 (FL_SMALLMUL): Likewise.
2535 (FL_IWMMXT): Likewise.
2536 (FL_IWMMXT2): Likewise.
2537 (FL_TUNE): Likewise.
2538 (FL_FOR_ARCH2): Likewise.
2539 (FL_FOR_ARCH3): Likewise.
2540 (FL_FOR_ARCH3M): Likewise.
2541 (FL_FOR_ARCH4): Likewise.
2542 (FL_FOR_ARCH4T): Likewise.
2543 (FL_FOR_ARCH5): Likewise.
2544 (FL_FOR_ARCH5T): Likewise.
2545 (FL_FOR_ARCH5E): Likewise.
2546 (FL_FOR_ARCH5TE): Likewise.
2547 (FL_FOR_ARCH5TEJ): Likewise.
2548 (FL_FOR_ARCH6): Likewise.
2549 (FL_FOR_ARCH6J): Likewise.
2550 (FL_FOR_ARCH6K): Likewise.
2551 (FL_FOR_ARCH6Z): Likewise.
2552 (FL_FOR_ARCH6ZK): Likewise.
2553 (FL_FOR_ARCH6T2): Likewise.
2554 (FL_FOR_ARCH6M): Likewise.
2555 (FL_FOR_ARCH7): Likewise.
2556 (FL_FOR_ARCH7A): Likewise.
2557 (FL_FOR_ARCH7VE): Likewise.
2558 (FL_FOR_ARCH7R): Likewise.
2559 (FL_FOR_ARCH7M): Likewise.
2560 (FL_FOR_ARCH7EM): Likewise.
2561 (FL_FOR_ARCH8A): Likewise.
2562 * config/arm/arm-protos.h: Take definitions moved from arm.c.
2563
2564 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
2565
2566 * config/arm/arm.c (arm_expand_neon_builtin): Remove "Magic Word"
2567 parameter, rearrange switch statement accordingly.
2568 (arm_evpc_neon_vrev): Remove "Magic Word".
2569 * config/arm/unspecs.md (unspec): Split many UNSPECs to
2570 rounding, or signed/unsigned variants.
2571 * config/arm/neon.md (vcond<mode><mode>): Remove "Magic Word" code.
2572 (vcondu<mode><mode>): Likewise.
2573 (neon_vadd): Remove "Magic Word" operand.
2574 (neon_vaddl): Remove "Magic Word" operand, convert to use
2575 signed/unsigned iterator.
2576 (neon_vaddw): Likewise.
2577 (neon_vhadd): Likewise, also iterate over "rounding" forms.
2578 (neon_vqadd): Remove "Magic Word" operand, convert to use
2579 signed/unsigned iterator.
2580 (neon_v<r>addhn): Remove "Magic Word" operand, convert to iterate
2581 over "rounding" forms.
2582 (neon_vmul): Remove "Magic Word" operand, iterate over
2583 polynomial/float instruction forms.
2584 (neon_vmla): Remove "Magic Word" operand.
2585 (neon_vfma): Likewise.
2586 (neon_vfms): Likewise.
2587 (neon_vmls): Likewise.
2588 (neon_vmlal): Remove "Magic Word" operand, iterate over
2589 signed/unsigned forms.
2590 (neon_vmlsl): Likewise.
2591 (neon_vqdmulh): Remove "Magic Word" operand, iterate over "rounding"
2592 forms.
2593 (neon_vqdmlal): Remove "Magic Word" operand, iterate over
2594 signed/unsigned forms.
2595 (neon_vqdmlsl): Likewise.
2596 (neon_vmull): Likewise.
2597 (neon_vqdmull): Remove "Magic Word" operand.
2598 (neon_vsub): Remove "Magic Word" operand.
2599 (neon_vsubl): Remove "Magic Word" operand, convert to use
2600 signed/unsigned iterator.
2601 (neon_vsubw): Likewise.
2602 (neon_vhsub): Likewise.
2603 (neon_vqsub): Likewise.
2604 (neon_v<r>subhn): Remove "Magic Word" operand, convert to iterate
2605 over "rounding" forms.
2606 (neon_vceq): Remove "Magic Word" operand.
2607 (neon_vcge): Likewise.
2608 (neon_vcgeu): Likewise.
2609 (neon_vcgt): Likewise.
2610 (neon_vcgtu): Likewise.
2611 (neon_vcle): Likewise.
2612 (neon_vclt): Likewise.
2613 (neon_vcage): Likewise.
2614 (neon_vcagt): Likewise.
2615 (neon_vabd): Remove "Magic Word" operand, iterate over
2616 signed/unsigned forms, and split out...
2617 (neon_vabdf): ...this as new.
2618 (neon_vabdl): Remove "Magic Word" operand, iterate over
2619 signed/unsigned forms.
2620 (neon_vaba): Likewise.
2621 (neon_vmax): Remove "Magic Word" operand, iterate over
2622 signed/unsigned and max/min forms, and split out...
2623 (neon_v<maxmin>f): ...this as new.
2624 (neon_vmin): Delete.
2625 (neon_vpadd): Remove "Magic Word" operand.
2626 (neon_vpaddl): Remove "Magic Word" operand, iterate over
2627 signed/unsigned variants.
2628 (neon_vpadal): Likewise.
2629 (neon_vpmax): Remove "Magic Word" operand, iterate over
2630 signed/unsigned and max/min forms, and split out...
2631 (neon_vp<maxmin>f): ...this as new.
2632 (neon_vpmin): Delete.
2633 (neon_vrecps): Remove "Magic Word" operand.
2634 (neon_vrsqrts): Likewise.
2635 (neon_vabs): Likewise.
2636 (neon_vqabs): Likewise.
2637 (neon_vneg): Likewise.
2638 (neon_vqneg): Likewise.
2639 (neon_vcls): Likewise.
2640 (neon_vcnt): Likewise.
2641 (neon_vrecpe): Likewise.
2642 (neon_vrsqrte): Likewise.
2643 (neon_vmvn): Likewise.
2644 (neon_vget_lane): Likewise.
2645 (neon_vget_laneu): New.
2646 (neon_vget_lanedi): Remove "Magic Word" operand.
2647 (neon_vget_lanev2di): Likewise.
2648 (neon_vcvt): Remove "Magic Word" operand, iterate over
2649 signed/unsigned variants.
2650 (neon_vcvt_n): Likewise.
2651 (neon_vmovn): Remove "Magic Word" operand.
2652 (neon_vqmovn): Remove "Magic Word" operand, iterate over
2653 signed/unsigned variants.
2654 (neon_vmovun): Remove "Magic Word" operand.
2655 (neon_vmovl): Remove "Magic Word" operand, iterate over
2656 signed/unsigned variants.
2657 (neon_vmul_lane): Remove "Magic Word" operand.
2658 (neon_vmull_lane): Remove "Magic Word" operand, iterate over
2659 signed/unsigned variants.
2660 (neon_vqdmull_lane): Remove "Magic Word" operand.
2661 (neon_vqdmulh_lane): Remove "Magic Word" operand, iterate over
2662 rounding variants.
2663 (neon_vmla_lane): Remove "Magic Word" operand.
2664 (neon_vmlal_lane): Remove "Magic Word" operand, iterate over
2665 signed/unsigned variants.
2666 (neon_vqdmlal_lane): Remove "Magic Word" operand.
2667 (neon_vmls_lane): Likewise.
2668 (neon_vmlsl_lane): Remove "Magic Word" operand, iterate over
2669 signed/unsigned variants.
2670 (neon_vqdmlsl_lane): Remove "Magic Word" operand.
2671 (neon_vmul_n): Remove "Magic Word" operand.
2672 (neon_vmull_n): Rename to...
2673 (neon_vmulls_n): ...this, remove "Magic Word" operand.
2674 (neon_vmullu_n): New.
2675 (neon_vqdmull_n): Remove "Magic Word" operand.
2676 (neon_vqdmulh_n): Likewise.
2677 (neon_vqrdmulh_n): New.
2678 (neon_vmla_n): Remove "Magic Word" operand.
2679 (neon_vmls_n): Likewise.
2680 (neon_vmlal_n): Rename to...
2681 (neon_vmlals_n): ...this, remove "Magic Word" operand.
2682 (neon_vmlalu_n): New.
2683 (neon_vqdmlal_n): Remove "Magic Word" operand.
2684 (neon_vmlsl_n): Rename to...
2685 (neon_vmlsls_n): ...this, remove "Magic Word" operand.
2686 (neon_vmlslu_n): New.
2687 (neon_vqdmlsl_n): Remove "Magic Word" operand.
2688 (neon_vrev64): Remove "Magic Word" operand.
2689 (neon_vrev32): Likewise.
2690 (neon_vrev16): Likewise.
2691 (neon_vshl): Remove "Magic Word" operand, iterate over
2692 signed/unsigned and "rounding" forms.
2693 (neon_vqshl): Likewise.
2694 (neon_vshr_n): Likewise.
2695 (neon_vshrn_n): Remove "Magic Word" operand, iterate over
2696 "rounding" forms.
2697 (neon_vqshrn_n): Remove "Magic Word" operand, iterate over
2698 signed/unsigned and "rounding" forms.
2699 (neon_vqshrun_n): Remove "Magic Word" operand, iterate over
2700 "rounding" forms.
2701 (neon_vshl_n): Remove "Magic Word" operand.
2702 (neon_vqshl_n): Remove "Magic Word" operand, iterate over
2703 signed/unsigned variants.
2704 (neon_vqshlu_n): Remove "Magic Word" operand.
2705 (neon_vshll_n): Remove "Magic Word" operand, iterate over
2706 signed/unsigned variants.
2707 (neon_vsra_n): Remove "Magic Word" operand, iterate over
2708 signed/unsigned and "rounding" forms.
2709 * config/arm/iterators.md (VPF): New.
2710 (VADDL): Likewise.
2711 (VADDW): Likewise.
2712 (VHADD): Likewise.
2713 (VQADD): Likewise.
2714 (VADDHN): Likewise.
2715 (VMLAL): Likewise.
2716 (VMLAL_LANE): Likewise.
2717 (VLMSL): Likewise.
2718 (VMLSL_LANE): Likewise.
2719 (VQDMULH): Likewise,
2720 (VQDMULH_LANE): Likewise.
2721 (VMULL): Likewise.
2722 (VMULL_LANE): Likewise.
2723 (VSUBL): Likewise.
2724 (VSUBW): Likewise.
2725 (VHSUB): Likewise.
2726 (VQSUB): Likewise.
2727 (VSUBHN): Likewise.
2728 (VABD): Likewise.
2729 (VABDL): Likewise.
2730 (VMAXMIN): Likewise.
2731 (VMAXMINF): Likewise.
2732 (VPADDL): Likewise.
2733 (VPADAL): Likewise.
2734 (VPMAXMIN): Likewise.
2735 (VPMAXMINF): Likewise.
2736 (VCVT_US): Likewise.
2737 (VCVT_US_N): Likewise.
2738 (VQMOVN): Likewise.
2739 (VMOVL): Likewise.
2740 (VSHL): Likewise.
2741 (VQSHL): Likewise.
2742 (VSHR_N): Likewise.
2743 (VSHRN_N): Likewise.
2744 (VQSHRN_N): Likewise.
2745 (VQSHRUN_N): Likewise.
2746 (VQSHL_N): Likewise.
2747 (VSHLL_N): Likewise.
2748 (VSRA_N): Likewise.
2749 (pf): Likewise.
2750 (sup): Likewise.
2751 (r): Liekwise.
2752 (maxmin): Likewise.
2753 (shift_op): Likewise.
2754 * config/arm/arm_neon_builtins.def (vaddl): Split to...
2755 (vaddls): ...this and...
2756 (vaddlu): ...this.
2757 (vaddw): Split to...
2758 (vaddws): ...this and...
2759 (vaddwu): ...this.
2760 (vhadd): Split to...
2761 (vhadds): ...this and...
2762 (vhaddu): ...this and...
2763 (vrhadds): ...this and...
2764 (vrhaddu): ...this.
2765 (vqadd): Split to...
2766 (vqadds): ...this and...
2767 (vqaddu): ...this.
2768 (vaddhn): Split to itself and...
2769 (vraddhn): ...this.
2770 (vmul): Split to...
2771 (vmulf): ...this and...
2772 (vmulp): ...this.
2773 (vmlal): Split to...
2774 (vmlals): ...this and...
2775 (vmlalu): ...this.
2776 (vmlsl): Split to...
2777 (vmlsls): ...this and...
2778 (vmlslu): ...this.
2779 (vqdmulh): Split to itself and...
2780 (vqrdmulh): ...this.
2781 (vmull): Split to...
2782 (vmullp): ...this and...
2783 (vmulls): ...this and...
2784 (vmullu): ...this.
2785 (vmull_n): Split to...
2786 (vmulls_n): ...this and...
2787 (vmullu_n): ...this.
2788 (vmull_lane): Split to...
2789 (vmulls_lane): ...this and...
2790 (vmullu_lane): ...this.
2791 (vqdmulh_n): Split to itself and...
2792 (vqrdmulh_n): ...this.
2793 (vqdmulh_lane): Split to itself and...
2794 (vqrdmulh_lane): ...this.
2795 (vshl): Split to...
2796 (vshls): ...this and...
2797 (vshlu): ...this and...
2798 (vrshls): ...this and...
2799 (vrshlu): ...this.
2800 (vqshl): Split to...
2801 (vqshls): ...this and...
2802 (vqrshlu): ...this and...
2803 (vqrshls): ...this and...
2804 (vqrshlu): ...this.
2805 (vshr_n): Split to...
2806 (vshrs_n): ...this and...
2807 (vshru_n): ...this and...
2808 (vrshrs_n): ...this and...
2809 (vrshru_n): ...this.
2810 (vshrn_n): Split to itself and...
2811 (vrshrn_n): ...this.
2812 (vqshrn_n): Split to...
2813 (vqshrns_n): ...this and...
2814 (vqshrnu_n): ...this and...
2815 (vqrshrns_n): ...this and...
2816 (vqrshrnu_n): ...this.
2817 (vqshrun_n): Split to itself and...
2818 (vqrshrun_n): ...this.
2819 (vqshl_n): Split to...
2820 (vqshl_s_n): ...this and...
2821 (vqshl_u_n): ...this.
2822 (vshll_n): Split to...
2823 (vshlls_n): ...this and...
2824 (vshllu_n): ...this.
2825 (vsra_n): Split to...
2826 (vsras_n): ...this and...
2827 (vsrau_n): ...this and.
2828 (vrsras_n): ...this and...
2829 (vrsrau_n): ...this and.
2830 (vsubl): Split to...
2831 (vsubls): ...this and...
2832 (vsublu): ...this.
2833 (vsubw): Split to...
2834 (vsubws): ...this and...
2835 (vsubwu): ...this.
2836 (vqsub): Split to...
2837 (vqsubs): ...this and...
2838 (vqsubu): ...this.
2839 (vhsub): Split to...
2840 (vhsubs): ...this and...
2841 (vhsubu): ...this.
2842 (vsubhn): Split to itself and...
2843 (vrsubhn): ...this.
2844 (vabd): Split to...
2845 (vabds): ...this and...
2846 (vabdu): ...this and...
2847 (vabdf): ...this.
2848 (vabdl): Split to...
2849 (vabdls): ...this and...
2850 (vabdlu): ...this.
2851 (vaba): Split to...
2852 (vabas): ...this and...
2853 (vabau): ...this and...
2854 (vabal): Split to...
2855 (vabals): ...this and...
2856 (vabalu): ...this.
2857 (vmax): Split to...
2858 (vmaxs): ...this and...
2859 (vmaxu): ...this and...
2860 (vmaxf): ...this.
2861 (vmin): Split to...
2862 (vmins): ...this and...
2863 (vminu): ...this and...
2864 (vminf): ...this.
2865 (vpmax): Split to...
2866 (vpmaxs): ...this and...
2867 (vpmaxu): ...this and...
2868 (vpmaxf): ...this.
2869 (vpmin): Split to...
2870 (vpmins): ...this and...
2871 (vpminu): ...this and...
2872 (vpminf): ...this.
2873 (vpaddl): Split to...
2874 (vpaddls): ...this and...
2875 (vpaddlu): ...this.
2876 (vpadal): Split to...
2877 (vpadals): ...this and...
2878 (vpadalu): ...this.
2879 (vget_laneu): New.
2880 (vqmovn): Split to...
2881 (vqmovns): ...this and...
2882 (vqmovnu): ...this.
2883 (vmovl): Split to...
2884 (vmovls): ...this and...
2885 (vmovlu): ...this.
2886 (vmlal_lane): Split to...
2887 (vmlals_lane): ...this and...
2888 (vmlalu_lane): ...this.
2889 (vmlsl_lane): Split to...
2890 (vmlsls_lane): ...this and...
2891 (vmlslu_lane): ...this.
2892 (vmlal_n): Split to...
2893 (vmlals_n): ...this and...
2894 (vmlalu_n): ...this.
2895 (vmlsl_n): Split to...
2896 (vmlsls_n): ...this and...
2897 (vmlslu_n): ...this.
2898 (vext): Make type "SHIFTINSERT".
2899 (vcvt): Split to...
2900 (vcvts): ...this and...
2901 (vcvtu): ...this.
2902 (vcvt_n): Split to...
2903 (vcvts_n): ...this and...
2904 (vcvtu_n): ...this.
2905 * config/arm/arm_neon.h (vaddl_s8): Remove "Magic Word".
2906 (vaddl_s16): Likewise.
2907 (vaddl_s32): Likewise.
2908 (vaddl_u8): Likewise.
2909 (vaddl_u16): Likewise.
2910 (vaddl_u32): Likewise.
2911 (vaddw_s8): Likewise.
2912 (vaddw_s16): Likewise.
2913 (vaddw_s32): Likewise.
2914 (vaddw_u8): Likewise.
2915 (vaddw_u16): Likewise.
2916 (vaddw_u32): Likewise.
2917 (vhadd_s8): Likewise.
2918 (vhadd_s16): Likewise.
2919 (vhadd_s32): Likewise.
2920 (vhadd_u8): Likewise.
2921 (vhadd_u16): Likewise.
2922 (vhadd_u32): Likewise.
2923 (vhaddq_s8): Likewise.
2924 (vhaddq_s16): Likewise.
2925 (vhaddq_s32): Likewise.
2926 (vhaddq_u8): Likewise.
2927 (vhaddq_u16): Likewise.
2928 (vrhadd_s8): Likewise.
2929 (vrhadd_s16): Likewise.
2930 (vrhadd_s32): Likewise.
2931 (vrhadd_u8): Likewise.
2932 (vrhadd_u16): Likewise.
2933 (vrhadd_u32): Likewise.
2934 (vrhaddq_s8): Likewise.
2935 (vrhaddq_s16): Likewise.
2936 (vrhaddq_s32): Likewise.
2937 (vrhaddq_u8): Likewise.
2938 (vrhaddq_u16): Likewise.
2939 (vrhaddq_u32): Likewise.
2940 (vqadd_s8): Likewise.
2941 (vqadd_s16): Likewise.
2942 (vqadd_s32): Likewise.
2943 (vqadd_s64): Likewise.
2944 (vqadd_u8): Likewise.
2945 (vqadd_u16): Likewise.
2946 (vqadd_u32): Likewise.
2947 (vqadd_u64): Likewise.
2948 (vqaddq_s8): Likewise.
2949 (vqaddq_s16): Likewise.
2950 (vqaddq_s32): Likewise.
2951 (vqaddq_s64): Likewise.
2952 (vqaddq_u8): Likewise.
2953 (vqaddq_u16): Likewise.
2954 (vqaddq_u32): Likewise.
2955 (vqaddq_u64): Likewise.
2956 (vaddhn_s16): Likewise.
2957 (vaddhn_s32): Likewise.
2958 (vaddhn_s64): Likewise.
2959 (vaddhn_u16): Likewise.
2960 (vaddhn_u32): Likewise.
2961 (vaddhn_u64): Likewise.
2962 (vraddhn_s16): Likewise.
2963 (vraddhn_s32): Likewise.
2964 (vraddhn_s64): Likewise.
2965 (vraddhn_u16): Likewise.
2966 (vraddhn_u32): Likewise.
2967 (vraddhn_u64): Likewise.
2968 (vmul_p8): Likewise.
2969 (vmulq_p8): Likewise.
2970 (vqdmulh_s16): Likewise.
2971 (vqdmulh_s32): Likewise.
2972 (vqdmulhq_s16): Likewise.
2973 (vqdmulhq_s32): Likewise.
2974 (vqrdmulh_s16): Likewise.
2975 (vqrdmulh_s32): Likewise.
2976 (vqrdmulhq_s16): Likewise.
2977 (vqrdmulhq_s32): Likewise.
2978 (vmull_s8): Likewise.
2979 (vmull_s16): Likewise.
2980 (vmull_s32): Likewise.
2981 (vmull_u8): Likewise.
2982 (vmull_u16): Likewise.
2983 (vmull_u32): Likewise.
2984 (vmull_p8): Likewise.
2985 (vqdmull_s16): Likewise.
2986 (vqdmull_s32): Likewise.
2987 (vmla_s8): Likewise.
2988 (vmla_s16): Likewise.
2989 (vmla_s32): Likewise.
2990 (vmla_f32): Likewise.
2991 (vmla_u8): Likewise.
2992 (vmla_u16): Likewise.
2993 (vmla_u32): Likewise.
2994 (vmlaq_s8): Likewise.
2995 (vmlaq_s16): Likewise.
2996 (vmlaq_s32): Likewise.
2997 (vmlaq_f32): Likewise.
2998 (vmlaq_u8): Likewise.
2999 (vmlaq_u16): Likewise.
3000 (vmlaq_u32): Likewise.
3001 (vmlal_s8): Likewise.
3002 (vmlal_s16): Likewise.
3003 (vmlal_s32): Likewise.
3004 (vmlal_u8): Likewise.
3005 (vmlal_u16): Likewise.
3006 (vmlal_u32): Likewise.
3007 (vqdmlal_s16): Likewise.
3008 (vqdmlal_s32): Likewise.
3009 (vmls_s8): Likewise.
3010 (vmls_s16): Likewise.
3011 (vmls_s32): Likewise.
3012 (vmls_f32): Likewise.
3013 (vmls_u8): Likewise.
3014 (vmls_u16): Likewise.
3015 (vmls_u32): Likewise.
3016 (vmlsq_s8): Likewise.
3017 (vmlsq_s16): Likewise.
3018 (vmlsq_s32): Likewise.
3019 (vmlsq_f32): Likewise.
3020 (vmlsq_u8): Likewise.
3021 (vmlsq_u16): Likewise.
3022 (vmlsq_u32): Likewise.
3023 (vmlsl_s8): Likewise.
3024 (vmlsl_s16): Likewise.
3025 (vmlsl_s32): Likewise.
3026 (vmlsl_u8): Likewise.
3027 (vmlsl_u16): Likewise.
3028 (vmlsl_u32): Likewise.
3029 (vqdmlsl_s16): Likewise.
3030 (vqdmlsl_s32): Likewise.
3031 (vfma_f32): Likewise.
3032 (vfmaq_f32): Likewise.
3033 (vfms_f32): Likewise.
3034 (vfmsq_f32): Likewise.
3035 (vsubl_s8): Likewise.
3036 (vsubl_s16): Likewise.
3037 (vsubl_s32): Likewise.
3038 (vsubl_u8): Likewise.
3039 (vsubl_u16): Likewise.
3040 (vsubl_u32): Likewise.
3041 (vsubw_s8): Likewise.
3042 (vsubw_s16): Likewise.
3043 (vsubw_s32): Likewise.
3044 (vsubw_u8): Likewise.
3045 (vsubw_u16): Likewise.
3046 (vsubw_u32): Likewise.
3047 (vhsub_s8): Likewise.
3048 (vhsub_s16): Likewise.
3049 (vhsub_s32): Likewise.
3050 (vhsub_u8): Likewise.
3051 (vhsub_u16): Likewise.
3052 (vhsub_u32): Likewise.
3053 (vhsubq_s8): Likewise.
3054 (vhsubq_s16): Likewise.
3055 (vhsubq_s32): Likewise.
3056 (vhsubq_u8): Likewise.
3057 (vhsubq_u16): Likewise.
3058 (vhsubq_u32): Likewise.
3059 (vqsub_s8): Likewise.
3060 (vqsub_s16): Likewise.
3061 (vqsub_s32): Likewise.
3062 (vqsub_s64): Likewise.
3063 (vqsub_u8): Likewise.
3064 (vqsub_u16): Likewise.
3065 (vqsub_u32): Likewise.
3066 (vqsub_u64): Likewise.
3067 (vqsubq_s8): Likewise.
3068 (vqsubq_s16): Likewise.
3069 (vqsubq_s32): Likewise.
3070 (vqsubq_s64): Likewise.
3071 (vqsubq_u8): Likewise.
3072 (vqsubq_u16): Likewise.
3073 (vqsubq_u32): Likewise.
3074 (vqsubq_u64): Likewise.
3075 (vsubhn_s16): Likewise.
3076 (vsubhn_s32): Likewise.
3077 (vsubhn_s64): Likewise.
3078 (vsubhn_u16): Likewise.
3079 (vsubhn_u32): Likewise.
3080 (vsubhn_u64): Likewise.
3081 (vrsubhn_s16): Likewise.
3082 (vrsubhn_s32): Likewise.
3083 (vrsubhn_s64): Likewise.
3084 (vrsubhn_u16): Likewise.
3085 (vrsubhn_u32): Likewise.
3086 (vrsubhn_u64): Likewise.
3087 (vceq_s8): Likewise.
3088 (vceq_s16): Likewise.
3089 (vceq_s32): Likewise.
3090 (vceq_f32): Likewise.
3091 (vceq_u8): Likewise.
3092 (vceq_u16): Likewise.
3093 (vceq_u32): Likewise.
3094 (vceq_p8): Likewise.
3095 (vceqq_s8): Likewise.
3096 (vceqq_s16): Likewise.
3097 (vceqq_s32): Likewise.
3098 (vceqq_f32): Likewise.
3099 (vceqq_u8): Likewise.
3100 (vceqq_u16): Likewise.
3101 (vceqq_u32): Likewise.
3102 (vceqq_p8): Likewise.
3103 (vcge_s8): Likewise.
3104 (vcge_s16): Likewise.
3105 (vcge_s32): Likewise.
3106 (vcge_f32): Likewise.
3107 (vcge_u8): Likewise.
3108 (vcge_u16): Likewise.
3109 (vcge_u32): Likewise.
3110 (vcgeq_s8): Likewise.
3111 (vcgeq_s16): Likewise.
3112 (vcgeq_s32): Likewise.
3113 (vcgeq_f32): Likewise.
3114 (vcgeq_u8): Likewise.
3115 (vcgeq_u16): Likewise.
3116 (vcgeq_u32): Likewise.
3117 (vcle_s8): Likewise.
3118 (vcle_s16): Likewise.
3119 (vcle_s32): Likewise.
3120 (vcle_f32): Likewise.
3121 (vcle_u8): Likewise.
3122 (vcle_u16): Likewise.
3123 (vcle_u32): Likewise.
3124 (vcleq_s8): Likewise.
3125 (vcleq_s16): Likewise.
3126 (vcleq_s32): Likewise.
3127 (vcleq_f32): Likewise.
3128 (vcleq_u8): Likewise.
3129 (vcleq_u16): Likewise.
3130 (vcleq_u32): Likewise.
3131 (vcgt_s8): Likewise.
3132 (vcgt_s16): Likewise.
3133 (vcgt_s32): Likewise.
3134 (vcgt_f32): Likewise.
3135 (vcgt_u8): Likewise.
3136 (vcgt_u16): Likewise.
3137 (vcgt_u32): Likewise.
3138 (vcgtq_s8): Likewise.
3139 (vcgtq_s16): Likewise.
3140 (vcgtq_s32): Likewise.
3141 (vcgtq_f32): Likewise.
3142 (vcgtq_u8): Likewise.
3143 (vcgtq_u16): Likewise.
3144 (vcgtq_u32): Likewise.
3145 (vclt_s8): Likewise.
3146 (vclt_s16): Likewise.
3147 (vclt_s32): Likewise.
3148 (vclt_f32): Likewise.
3149 (vclt_u8): Likewise.
3150 (vclt_u16): Likewise.
3151 (vclt_u32): Likewise.
3152 (vcltq_s8): Likewise.
3153 (vcltq_s16): Likewise.
3154 (vcltq_s32): Likewise.
3155 (vcltq_f32): Likewise.
3156 (vcltq_u8): Likewise.
3157 (vcltq_u16): Likewise.
3158 (vcltq_u32): Likewise.
3159 (vcage_f32): Likewise.
3160 (vcageq_f32): Likewise.
3161 (vcale_f32): Likewise.
3162 (vcaleq_f32): Likewise.
3163 (vcagt_f32): Likewise.
3164 (vcagtq_f32): Likewise.
3165 (vcalt_f32): Likewise.
3166 (vcaltq_f32): Likewise.
3167 (vtst_s8): Likewise.
3168 (vtst_s16): Likewise.
3169 (vtst_s32): Likewise.
3170 (vtst_u8): Likewise.
3171 (vtst_u16): Likewise.
3172 (vtst_u32): Likewise.
3173 (vtst_p8): Likewise.
3174 (vtstq_s8): Likewise.
3175 (vtstq_s16): Likewise.
3176 (vtstq_s32): Likewise.
3177 (vtstq_u8): Likewise.
3178 (vtstq_u16): Likewise.
3179 (vtstq_u32): Likewise.
3180 (vtstq_p8): Likewise.
3181 (vabd_s8): Likewise.
3182 (vabd_s16): Likewise.
3183 (vabd_s32): Likewise.
3184 (vabd_f32): Likewise.
3185 (vabd_u8): Likewise.
3186 (vabd_u16): Likewise.
3187 (vabd_u32): Likewise.
3188 (vabdq_s8): Likewise.
3189 (vabdq_s16): Likewise.
3190 (vabdq_s32): Likewise.
3191 (vabdq_f32): Likewise.
3192 (vabdq_u8): Likewise.
3193 (vabdq_u16): Likewise.
3194 (vabdq_u32): Likewise.
3195 (vabdl_s8): Likewise.
3196 (vabdl_s16): Likewise.
3197 (vabdl_s32): Likewise.
3198 (vabdl_u8): Likewise.
3199 (vabdl_u16): Likewise.
3200 (vabdl_u32): Likewise.
3201 (vaba_s8): Likewise.
3202 (vaba_s16): Likewise.
3203 (vaba_s32): Likewise.
3204 (vaba_u8): Likewise.
3205 (vaba_u16): Likewise.
3206 (vaba_u32): Likewise.
3207 (vabaq_s8): Likewise.
3208 (vabaq_s16): Likewise.
3209 (vabaq_s32): Likewise.
3210 (vabaq_u8): Likewise.
3211 (vabaq_u16): Likewise.
3212 (vabaq_u32): Likewise.
3213 (vabal_s8): Likewise.
3214 (vabal_s16): Likewise.
3215 (vabal_s32): Likewise.
3216 (vabal_u8): Likewise.
3217 (vabal_u16): Likewise.
3218 (vabal_u32): Likewise.
3219 (vmax_s8): Likewise.
3220 (vmax_s16): Likewise.
3221 (vmax_s32): Likewise.
3222 (vmax_f32): Likewise.
3223 (vmax_u8): Likewise.
3224 (vmax_u16): Likewise.
3225 (vmax_u32): Likewise.
3226 (vmaxq_s8): Likewise.
3227 (vmaxq_s16): Likewise.
3228 (vmaxq_s32): Likewise.
3229 (vmaxq_f32): Likewise.
3230 (vmaxq_u8): Likewise.
3231 (vmaxq_u16): Likewise.
3232 (vmaxq_u32): Likewise.
3233 (vmin_s8): Likewise.
3234 (vmin_s16): Likewise.
3235 (vmin_s32): Likewise.
3236 (vmin_f32): Likewise.
3237 (vmin_u8): Likewise.
3238 (vmin_u16): Likewise.
3239 (vmin_u32): Likewise.
3240 (vminq_s8): Likewise.
3241 (vminq_s16): Likewise.
3242 (vminq_s32): Likewise.
3243 (vminq_f32): Likewise.
3244 (vminq_u8): Likewise.
3245 (vminq_u16): Likewise.
3246 (vminq_u32): Likewise.
3247 (vpadd_s8): Likewise.
3248 (vpadd_s16): Likewise.
3249 (vpadd_s32): Likewise.
3250 (vpadd_f32): Likewise.
3251 (vpadd_u8): Likewise.
3252 (vpadd_u16): Likewise.
3253 (vpadd_u32): Likewise.
3254 (vpaddl_s8): Likewise.
3255 (vpaddl_s16): Likewise.
3256 (vpaddl_s32): Likewise.
3257 (vpaddl_u8): Likewise.
3258 (vpaddl_u16): Likewise.
3259 (vpaddl_u32): Likewise.
3260 (vpaddlq_s8): Likewise.
3261 (vpaddlq_s16): Likewise.
3262 (vpaddlq_s32): Likewise.
3263 (vpaddlq_u8): Likewise.
3264 (vpaddlq_u16): Likewise.
3265 (vpaddlq_u32): Likewise.
3266 (vpadal_s8): Likewise.
3267 (vpadal_s16): Likewise.
3268 (vpadal_s32): Likewise.
3269 (vpadal_u8): Likewise.
3270 (vpadal_u16): Likewise.
3271 (vpadal_u32): Likewise.
3272 (vpadalq_s8): Likewise.
3273 (vpadalq_s16): Likewise.
3274 (vpadalq_s32): Likewise.
3275 (vpadalq_u8): Likewise.
3276 (vpadalq_u16): Likewise.
3277 (vpadalq_u32): Likewise.
3278 (vpmax_s8): Likewise.
3279 (vpmax_s16): Likewise.
3280 (vpmax_s32): Likewise.
3281 (vpmax_f32): Likewise.
3282 (vpmax_u8): Likewise.
3283 (vpmax_u16): Likewise.
3284 (vpmax_u32): Likewise.
3285 (vpmin_s8): Likewise.
3286 (vpmin_s16): Likewise.
3287 (vpmin_s32): Likewise.
3288 (vpmin_f32): Likewise.
3289 (vpmin_u8): Likewise.
3290 (vpmin_u16): Likewise.
3291 (vpmin_u32): Likewise.
3292 (vrecps_f32): Likewise.
3293 (vrecpsq_f32): Likewise.
3294 (vrsqrts_f32): Likewise.
3295 (vrsqrtsq_f32): Likewise.
3296 (vshl_s8): Likewise.
3297 (vshl_s16): Likewise.
3298 (vshl_s32): Likewise.
3299 (vshl_s64): Likewise.
3300 (vshl_u8): Likewise.
3301 (vshl_u16): Likewise.
3302 (vshl_u32): Likewise.
3303 (vshl_u64): Likewise.
3304 (vshlq_s8): Likewise.
3305 (vshlq_s16): Likewise.
3306 (vshlq_s32): Likewise.
3307 (vshlq_s64): Likewise.
3308 (vshlq_u8): Likewise.
3309 (vshlq_u16): Likewise.
3310 (vshlq_u32): Likewise.
3311 (vshlq_u64): Likewise.
3312 (vrshl_s8): Likewise.
3313 (vrshl_s16): Likewise.
3314 (vrshl_s32): Likewise.
3315 (vrshl_s64): Likewise.
3316 (vrshl_u8): Likewise.
3317 (vrshl_u16): Likewise.
3318 (vrshl_u32): Likewise.
3319 (vrshl_u64): Likewise.
3320 (vrshlq_s8): Likewise.
3321 (vrshlq_s16): Likewise.
3322 (vrshlq_s32): Likewise.
3323 (vrshlq_s64): Likewise.
3324 (vrshlq_u8): Likewise.
3325 (vrshlq_u16): Likewise.
3326 (vrshlq_u32): Likewise.
3327 (vrshlq_u64): Likewise.
3328 (vqshl_s8): Likewise.
3329 (vqshl_s16): Likewise.
3330 (vqshl_s32): Likewise.
3331 (vqshl_s64): Likewise.
3332 (vqshl_u8): Likewise.
3333 (vqshl_u16): Likewise.
3334 (vqshl_u32): Likewise.
3335 (vqshl_u64): Likewise.
3336 (vqshlq_s8): Likewise.
3337 (vqshlq_s16): Likewise.
3338 (vqshlq_s32): Likewise.
3339 (vqshlq_s64): Likewise.
3340 (vqshlq_u8): Likewise.
3341 (vqshlq_u16): Likewise.
3342 (vqshlq_u32): Likewise.
3343 (vqshlq_u64): Likewise.
3344 (vqrshl_s8): Likewise.
3345 (vqrshl_s16): Likewise.
3346 (vqrshl_s32): Likewise.
3347 (vqrshl_s64): Likewise.
3348 (vqrshl_u8): Likewise.
3349 (vqrshl_u16): Likewise.
3350 (vqrshl_u32): Likewise.
3351 (vqrshl_u64): Likewise.
3352 (vqrshlq_s8): Likewise.
3353 (vqrshlq_s16): Likewise.
3354 (vqrshlq_s32): Likewise.
3355 (vqrshlq_s64): Likewise.
3356 (vqrshlq_u8): Likewise.
3357 (vqrshlq_u16): Likewise.
3358 (vqrshlq_u32): Likewise.
3359 (vqrshlq_u64): Likewise.
3360 (vshr_n_s8): Likewise.
3361 (vshr_n_s16): Likewise.
3362 (vshr_n_s32): Likewise.
3363 (vshr_n_s64): Likewise.
3364 (vshr_n_u8): Likewise.
3365 (vshr_n_u16): Likewise.
3366 (vshr_n_u32): Likewise.
3367 (vshr_n_u64): Likewise.
3368 (vshrq_n_s8): Likewise.
3369 (vshrq_n_s16): Likewise.
3370 (vshrq_n_s32): Likewise.
3371 (vshrq_n_s64): Likewise.
3372 (vshrq_n_u8): Likewise.
3373 (vshrq_n_u16): Likewise.
3374 (vshrq_n_u32): Likewise.
3375 (vshrq_n_u64): Likewise.
3376 (vrshr_n_s8): Likewise.
3377 (vrshr_n_s16): Likewise.
3378 (vrshr_n_s32): Likewise.
3379 (vrshr_n_s64): Likewise.
3380 (vrshr_n_u8): Likewise.
3381 (vrshr_n_u16): Likewise.
3382 (vrshr_n_u32): Likewise.
3383 (vrshr_n_u64): Likewise.
3384 (vrshrq_n_s8): Likewise.
3385 (vrshrq_n_s16): Likewise.
3386 (vrshrq_n_s32): Likewise.
3387 (vrshrq_n_s64): Likewise.
3388 (vrshrq_n_u8): Likewise.
3389 (vrshrq_n_u16): Likewise.
3390 (vrshrq_n_u32): Likewise.
3391 (vrshrq_n_u64): Likewise.
3392 (vshrn_n_s16): Likewise.
3393 (vshrn_n_s32): Likewise.
3394 (vshrn_n_s64): Likewise.
3395 (vshrn_n_u16): Likewise.
3396 (vshrn_n_u32): Likewise.
3397 (vshrn_n_u64): Likewise.
3398 (vrshrn_n_s16): Likewise.
3399 (vrshrn_n_s32): Likewise.
3400 (vrshrn_n_s64): Likewise.
3401 (vrshrn_n_u16): Likewise.
3402 (vrshrn_n_u32): Likewise.
3403 (vrshrn_n_u64): Likewise.
3404 (vqshrn_n_s16): Likewise.
3405 (vqshrn_n_s32): Likewise.
3406 (vqshrn_n_s64): Likewise.
3407 (vqshrn_n_u16): Likewise.
3408 (vqshrn_n_u32): Likewise.
3409 (vqshrn_n_u64): Likewise.
3410 (vqrshrn_n_s16): Likewise.
3411 (vqrshrn_n_s32): Likewise.
3412 (vqrshrn_n_s64): Likewise.
3413 (vqrshrn_n_u16): Likewise.
3414 (vqrshrn_n_u32): Likewise.
3415 (vqrshrn_n_u64): Likewise.
3416 (vqshrun_n_s16): Likewise.
3417 (vqshrun_n_s32): Likewise.
3418 (vqshrun_n_s64): Likewise.
3419 (vqrshrun_n_s16): Likewise.
3420 (vqrshrun_n_s32): Likewise.
3421 (vqrshrun_n_s64): Likewise.
3422 (vshl_n_s8): Likewise.
3423 (vshl_n_s16): Likewise.
3424 (vshl_n_s32): Likewise.
3425 (vshl_n_s64): Likewise.
3426 (vshl_n_u8): Likewise.
3427 (vshl_n_u16): Likewise.
3428 (vshl_n_u32): Likewise.
3429 (vshl_n_u64): Likewise.
3430 (vshlq_n_s8): Likewise.
3431 (vshlq_n_s16): Likewise.
3432 (vshlq_n_s32): Likewise.
3433 (vshlq_n_s64): Likewise.
3434 (vshlq_n_u8): Likewise.
3435 (vshlq_n_u16): Likewise.
3436 (vshlq_n_u32): Likewise.
3437 (vshlq_n_u64): Likewise.
3438 (vqshl_n_s8): Likewise.
3439 (vqshl_n_s16): Likewise.
3440 (vqshl_n_s32): Likewise.
3441 (vqshl_n_s64): Likewise.
3442 (vqshl_n_u8): Likewise.
3443 (vqshl_n_u16): Likewise.
3444 (vqshl_n_u32): Likewise.
3445 (vqshl_n_u64): Likewise.
3446 (vqshlq_n_s8): Likewise.
3447 (vqshlq_n_s16): Likewise.
3448 (vqshlq_n_s32): Likewise.
3449 (vqshlq_n_s64): Likewise.
3450 (vqshlq_n_u8): Likewise.
3451 (vqshlq_n_u16): Likewise.
3452 (vqshlq_n_u32): Likewise.
3453 (vqshlq_n_u64): Likewise.
3454 (vqshlu_n_s8): Likewise.
3455 (vqshlu_n_s16): Likewise.
3456 (vqshlu_n_s32): Likewise.
3457 (vqshlu_n_s64): Likewise.
3458 (vqshluq_n_s8): Likewise.
3459 (vqshluq_n_s16): Likewise.
3460 (vqshluq_n_s32): Likewise.
3461 (vqshluq_n_s64): Likewise.
3462 (vshll_n_s8): Likewise.
3463 (vshll_n_s16): Likewise.
3464 (vshll_n_s32): Likewise.
3465 (vshll_n_u8): Likewise.
3466 (vshll_n_u16): Likewise.
3467 (vshll_n_u32): Likewise.
3468 (vsra_n_s8): Likewise.
3469 (vsra_n_s16): Likewise.
3470 (vsra_n_s32): Likewise.
3471 (vsra_n_s64): Likewise.
3472 (vsra_n_u8): Likewise.
3473 (vsra_n_u16): Likewise.
3474 (vsra_n_u32): Likewise.
3475 (vsra_n_u64): Likewise.
3476 (vsraq_n_s8): Likewise.
3477 (vsraq_n_s16): Likewise.
3478 (vsraq_n_s32): Likewise.
3479 (vsraq_n_s64): Likewise.
3480 (vsraq_n_u8): Likewise.
3481 (vsraq_n_u16): Likewise.
3482 (vsraq_n_u32): Likewise.
3483 (vsraq_n_u64): Likewise.
3484 (vrsra_n_s8): Likewise.
3485 (vrsra_n_s16): Likewise.
3486 (vrsra_n_s32): Likewise.
3487 (vrsra_n_s64): Likewise.
3488 (vrsra_n_u8): Likewise.
3489 (vrsra_n_u16): Likewise.
3490 (vrsra_n_u32): Likewise.
3491 (vrsra_n_u64): Likewise.
3492 (vrsraq_n_s8): Likewise.
3493 (vrsraq_n_s16): Likewise.
3494 (vrsraq_n_s32): Likewise.
3495 (vrsraq_n_s64): Likewise.
3496 (vrsraq_n_u8): Likewise.
3497 (vrsraq_n_u16): Likewise.
3498 (vrsraq_n_u32): Likewise.
3499 (vrsraq_n_u64): Likewise.
3500 (vabs_s8): Likewise.
3501 (vabs_s16): Likewise.
3502 (vabs_s32): Likewise.
3503 (vabs_f32): Likewise.
3504 (vabsq_s8): Likewise.
3505 (vabsq_s16): Likewise.
3506 (vabsq_s32): Likewise.
3507 (vabsq_f32): Likewise.
3508 (vqabs_s8): Likewise.
3509 (vqabs_s16): Likewise.
3510 (vqabs_s32): Likewise.
3511 (vqabsq_s8): Likewise.
3512 (vqabsq_s16): Likewise.
3513 (vqabsq_s32): Likewise.
3514 (vneg_s8): Likewise.
3515 (vneg_s16): Likewise.
3516 (vneg_s32): Likewise.
3517 (vneg_f32): Likewise.
3518 (vnegq_s8): Likewise.
3519 (vnegq_s16): Likewise.
3520 (vnegq_s32): Likewise.
3521 (vnegq_f32): Likewise.
3522 (vqneg_s8): Likewise.
3523 (vqneg_s16): Likewise.
3524 (vqneg_s32): Likewise.
3525 (vqnegq_s8): Likewise.
3526 (vqnegq_s16): Likewise.
3527 (vqnegq_s32): Likewise.
3528 (vmvn_s8): Likewise.
3529 (vmvn_s16): Likewise.
3530 (vmvn_s32): Likewise.
3531 (vmvn_u8): Likewise.
3532 (vmvn_u16): Likewise.
3533 (vmvn_u32): Likewise.
3534 (vmvn_p8): Likewise.
3535 (vmvnq_s8): Likewise.
3536 (vmvnq_s16): Likewise.
3537 (vmvnq_s32): Likewise.
3538 (vmvnq_u8): Likewise.
3539 (vmvnq_u16): Likewise.
3540 (vmvnq_u32): Likewise.
3541 (vmvnq_p8): Likewise.
3542 (vcls_s8): Likewise.
3543 (vcls_s16): Likewise.
3544 (vcls_s32): Likewise.
3545 (vclsq_s8): Likewise.
3546 (vclsq_s16): Likewise.
3547 (vclsq_s32): Likewise.
3548 (vclz_s8): Likewise.
3549 (vclz_s16): Likewise.
3550 (vclz_s32): Likewise.
3551 (vclz_u8): Likewise.
3552 (vclz_u16): Likewise.
3553 (vclz_u32): Likewise.
3554 (vclzq_s8): Likewise.
3555 (vclzq_s16): Likewise.
3556 (vclzq_s32): Likewise.
3557 (vclzq_u8): Likewise.
3558 (vclzq_u16): Likewise.
3559 (vclzq_u32): Likewise.
3560 (vcnt_s8): Likewise.
3561 (vcnt_u8): Likewise.
3562 (vcnt_p8): Likewise.
3563 (vcntq_s8): Likewise.
3564 (vcntq_u8): Likewise.
3565 (vcntq_p8): Likewise.
3566 (vrecpe_f32): Likewise.
3567 (vrecpe_u32): Likewise.
3568 (vrecpeq_f32): Likewise.
3569 (vrecpeq_u32): Likewise.
3570 (vrsqrte_f32): Likewise.
3571 (vrsqrte_u32): Likewise.
3572 (vrsqrteq_f32): Likewise.
3573 (vrsqrteq_u32): Likewise.
3574 (vget_lane_s8): Likewise.
3575 (vget_lane_s16): Likewise.
3576 (vget_lane_s32): Likewise.
3577 (vget_lane_f32): Likewise.
3578 (vget_lane_u8): Likewise.
3579 (vget_lane_u16): Likewise.
3580 (vget_lane_u32): Likewise.
3581 (vget_lane_p8): Likewise.
3582 (vget_lane_p16): Likewise.
3583 (vget_lane_s64): Likewise.
3584 (vget_lane_u64): Likewise.
3585 (vgetq_lane_s8): Likewise.
3586 (vgetq_lane_s16): Likewise.
3587 (vgetq_lane_s32): Likewise.
3588 (vgetq_lane_f32): Likewise.
3589 (vgetq_lane_u8): Likewise.
3590 (vgetq_lane_u16): Likewise.
3591 (vgetq_lane_u32): Likewise.
3592 (vgetq_lane_p8): Likewise.
3593 (vgetq_lane_p16): Likewise.
3594 (vgetq_lane_s64): Likewise.
3595 (vgetq_lane_u64): Likewise.
3596 (vcvt_s32_f32): Likewise.
3597 (vcvt_f32_s32): Likewise.
3598 (vcvt_f32_u32): Likewise.
3599 (vcvt_u32_f32): Likewise.
3600 (vcvtq_s32_f32): Likewise.
3601 (vcvtq_f32_s32): Likewise.
3602 (vcvtq_f32_u32): Likewise.
3603 (vcvtq_u32_f32): Likewise.
3604 (vcvt_n_s32_f32): Likewise.
3605 (vcvt_n_f32_s32): Likewise.
3606 (vcvt_n_f32_u32): Likewise.
3607 (vcvt_n_u32_f32): Likewise.
3608 (vcvtq_n_s32_f32): Likewise.
3609 (vcvtq_n_f32_s32): Likewise.
3610 (vcvtq_n_f32_u32): Likewise.
3611 (vcvtq_n_u32_f32): Likewise.
3612 (vmovn_s16): Likewise.
3613 (vmovn_s32): Likewise.
3614 (vmovn_s64): Likewise.
3615 (vmovn_u16): Likewise.
3616 (vmovn_u32): Likewise.
3617 (vmovn_u64): Likewise.
3618 (vqmovn_s16): Likewise.
3619 (vqmovn_s32): Likewise.
3620 (vqmovn_s64): Likewise.
3621 (vqmovn_u16): Likewise.
3622 (vqmovn_u32): Likewise.
3623 (vqmovn_u64): Likewise.
3624 (vqmovun_s16): Likewise.
3625 (vqmovun_s32): Likewise.
3626 (vqmovun_s64): Likewise.
3627 (vmovl_s8): Likewise.
3628 (vmovl_s16): Likewise.
3629 (vmovl_s32): Likewise.
3630 (vmovl_u8): Likewise.
3631 (vmovl_u16): Likewise.
3632 (vmovl_u32): Likewise.
3633 (vmul_lane_s16): Likewise.
3634 (vmul_lane_s32): Likewise.
3635 (vmul_lane_f32): Likewise.
3636 (vmul_lane_u16): Likewise.
3637 (vmul_lane_u32): Likewise.
3638 (vmulq_lane_s16): Likewise.
3639 (vmulq_lane_s32): Likewise.
3640 (vmulq_lane_f32): Likewise.
3641 (vmulq_lane_u16): Likewise.
3642 (vmulq_lane_u32): Likewise.
3643 (vmla_lane_s16): Likewise.
3644 (vmla_lane_s32): Likewise.
3645 (vmla_lane_f32): Likewise.
3646 (vmla_lane_u16): Likewise.
3647 (vmla_lane_u32): Likewise.
3648 (vmlaq_lane_s16): Likewise.
3649 (vmlaq_lane_s32): Likewise.
3650 (vmlaq_lane_f32): Likewise.
3651 (vmlaq_lane_u16): Likewise.
3652 (vmlaq_lane_u32): Likewise.
3653 (vmlal_lane_s16): Likewise.
3654 (vmlal_lane_s32): Likewise.
3655 (vmlal_lane_u16): Likewise.
3656 (vmlal_lane_u32): Likewise.
3657 (vqdmlal_lane_s16): Likewise.
3658 (vqdmlal_lane_s32): Likewise.
3659 (vmls_lane_s16): Likewise.
3660 (vmls_lane_s32): Likewise.
3661 (vmls_lane_f32): Likewise.
3662 (vmls_lane_u16): Likewise.
3663 (vmls_lane_u32): Likewise.
3664 (vmlsq_lane_s16): Likewise.
3665 (vmlsq_lane_s32): Likewise.
3666 (vmlsq_lane_f32): Likewise.
3667 (vmlsq_lane_u16): Likewise.
3668 (vmlsq_lane_u32): Likewise.
3669 (vmlsl_lane_s16): Likewise.
3670 (vmlsl_lane_s32): Likewise.
3671 (vmlsl_lane_u16): Likewise.
3672 (vmlsl_lane_u32): Likewise.
3673 (vqdmlsl_lane_s16): Likewise.
3674 (vqdmlsl_lane_s32): Likewise.
3675 (vmull_lane_s16): Likewise.
3676 (vmull_lane_s32): Likewise.
3677 (vmull_lane_u16): Likewise.
3678 (vmull_lane_u32): Likewise.
3679 (vqdmull_lane_s16): Likewise.
3680 (vqdmull_lane_s32): Likewise.
3681 (vqdmulhq_lane_s16): Likewise.
3682 (vqdmulhq_lane_s32): Likewise.
3683 (vqdmulh_lane_s16): Likewise.
3684 (vqdmulh_lane_s32): Likewise.
3685 (vqrdmulhq_lane_s16): Likewise.
3686 (vqrdmulhq_lane_s32): Likewise.
3687 (vqrdmulh_lane_s16): Likewise.
3688 (vqrdmulh_lane_s32): Likewise.
3689 (vmul_n_s16): Likewise.
3690 (vmul_n_s32): Likewise.
3691 (vmul_n_f32): Likewise.
3692 (vmul_n_u16): Likewise.
3693 (vmul_n_u32): Likewise.
3694 (vmulq_n_s16): Likewise.
3695 (vmulq_n_s32): Likewise.
3696 (vmulq_n_f32): Likewise.
3697 (vmulq_n_u16): Likewise.
3698 (vmulq_n_u32): Likewise.
3699 (vmull_n_s16): Likewise.
3700 (vmull_n_s32): Likewise.
3701 (vmull_n_u16): Likewise.
3702 (vmull_n_u32): Likewise.
3703 (vqdmull_n_s16): Likewise.
3704 (vqdmull_n_s32): Likewise.
3705 (vqdmulhq_n_s16): Likewise.
3706 (vqdmulhq_n_s32): Likewise.
3707 (vqdmulh_n_s16): Likewise.
3708 (vqdmulh_n_s32): Likewise.
3709 (vqrdmulhq_n_s16): Likewise.
3710 (vqrdmulhq_n_s32): Likewise.
3711 (vqrdmulh_n_s16): Likewise.
3712 (vqrdmulh_n_s32): Likewise.
3713 (vmla_n_s16): Likewise.
3714 (vmla_n_s32): Likewise.
3715 (vmla_n_f32): Likewise.
3716 (vmla_n_u16): Likewise.
3717 (vmla_n_u32): Likewise.
3718 (vmlaq_n_s16): Likewise.
3719 (vmlaq_n_s32): Likewise.
3720 (vmlaq_n_f32): Likewise.
3721 (vmlaq_n_u16): Likewise.
3722 (vmlaq_n_u32): Likewise.
3723 (vmlal_n_s16): Likewise.
3724 (vmlal_n_s32): Likewise.
3725 (vmlal_n_u16): Likewise.
3726 (vmlal_n_u32): Likewise.
3727 (vqdmlal_n_s16): Likewise.
3728 (vqdmlal_n_s32): Likewise.
3729 (vmls_n_s16): Likewise.
3730 (vmls_n_s32): Likewise.
3731 (vmls_n_f32): Likewise.
3732 (vmls_n_u16): Likewise.
3733 (vmls_n_u32): Likewise.
3734 (vmlsq_n_s16): Likewise.
3735 (vmlsq_n_s32): Likewise.
3736 (vmlsq_n_f32): Likewise.
3737 (vmlsq_n_u16): Likewise.
3738 (vmlsq_n_u32): Likewise.
3739 (vmlsl_n_s16): Likewise.
3740 (vmlsl_n_s32): Likewise.
3741 (vmlsl_n_u16): Likewise.
3742 (vmlsl_n_u32): Likewise.
3743 (vqdmlsl_n_s16): Likewise.
3744 (vqdmlsl_n_s32): Likewise.
3745
3746 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3747
3748 * config/arm/arm.c (arm_new_rtx_costs, case PLUS, MINUS):
3749 Add cost of alu.arith in simple SImode case.
3750
3751 2014-11-18 Jiong Wang <jiong.wang@arm.com>
3752
3753 * lra-eliminations.c (update_reg_eliminate): Relax gcc_assert for fixed
3754 registers.
3755
3756 2014-11-18 Marat Zakirov <m.zakirov@samsung.com>
3757
3758 * opts.c (finish_options): Disable aggressive opts for sanitizer.
3759 (common_handle_option): Move code to finish_options.
3760
3761 2014-11-18 Yury Gribov <y.gribov@samsung.com>
3762
3763 PR sanitizer/63802
3764 * stor-layout.c (min_align_of_type): Respect user alignment
3765 more.
3766
3767 2014-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
3768
3769 * passes.c (remove_cgraph_node_from_order): New.
3770 (do_per_function_toporder): Register cgraph removal
3771 hook.
3772
3773 2014-11-17 Terry Guo <terry.guo@arm.com>
3774
3775 * config/arm/arm.c (arm_issue_rate): Return 2 for cortex-m7.
3776 * config/arm/arm.md (generic_sched): Exclude cortex-m7.
3777 (generic_vfp): Likewise.
3778 * config/arm/cortex-m7.md: Pipeline description for cortex-m7.
3779
3780 2014-11-17 Vladimir Makarov <vmakarov@redhat.com>
3781
3782 PR rtl-optimization/63906
3783 * lra-remat.c (operand_to_remat): Check SP and
3784 frame_pointer_required.
3785
3786 2014-11-17 Mircea Namolaru <mircea.namolaru@inria.fr>
3787
3788 * doc/invoke.texi (floop-unroll-and-jam): Document
3789 (loop-unroll-jam-size): Likewise.
3790 (loop-unroll-jam-depth): Likewise.
3791 * graphite-optimize-isl.c (getPrevectorMap_full): Modify comment.
3792 (getScheduleForBandList): Replaced unsafe union_map reuse.
3793
3794 2014-11-17 Andrew Pinski <apinski@cavium.com>
3795
3796 * config/aarch64/thunderx.md: Remove copyright which should not
3797 have been there.
3798
3799 2014-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
3800 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3801
3802 * config/rs6000/rs6000.c (RELOAD_REG_AND_M16): Add support for
3803 Altivec style vector loads that ignore the bottom 3 bits of the
3804 address.
3805 (rs6000_debug_addr_mask): New function to print the addr_mask
3806 values if debugging.
3807 (rs6000_debug_print_mode): Call rs6000_debug_addr_mask to print
3808 out addr_mask.
3809 (rs6000_setup_reg_addr_masks): Add support for Altivec style
3810 vector loads that ignore the bottom 3 bits of the address. Allow
3811 pre-increment and pre-decrement on floating point, even if the
3812 -mupper-regs-{sf,df} options were used.
3813 (rs6000_init_hard_regno_mode_ok): Rework DFmode support if
3814 -mupper-regs-df. Add support for -mupper-regs-sf. Rearrange code
3815 placement for direct move support.
3816 (rs6000_option_override_internal): Add checks for -mupper-regs-df
3817 requiring -mvsx, and -mupper-regs-sf requiring -mpower8-vector.
3818 If -mupper-regs, set both -mupper-regs-sf and -mupper-regs-df,
3819 depending on the underlying cpu.
3820 (rs6000_secondary_reload_fail): Add ATTRIBUTE_NORETURN.
3821 (rs6000_secondary_reload_toc_costs): Helper function to identify
3822 costs of a TOC load for secondary reload support.
3823 (rs6000_secondary_reload_memory): Helper function for secondary
3824 reload, to determine if a particular memory operation is directly
3825 handled by the hardware, or if it needs support from secondary
3826 reload to create a valid address.
3827 (rs6000_secondary_reload): Rework code, to be clearer. If the
3828 appropriate -mupper-regs-{sf,df} is used, use FPR registers to
3829 reload scalar values, since the FPR registers have D-form
3830 addressing. Move most of the code handling memory to the function
3831 rs6000_secondary_reload_memory, and use the reg_addr structure to
3832 determine what type of address modes are supported. Print more
3833 debug information if -mdebug=addr.
3834 (rs6000_secondary_reload_inner): Rework entire function to be more
3835 general. Use the reg_addr bits to determine what type of
3836 addressing is supported.
3837 (rs6000_preferred_reload_class): Rework. Move constant handling
3838 into a single place. Prefer using FLOAT_REGS for scalar floating
3839 point.
3840 (rs6000_secondary_reload_class): Use a FPR register to move a
3841 value from an Altivec register to a GPR, and vice versa. Move VSX
3842 handling above traditional floating point.
3843
3844 * config/rs6000/rs6000.md (mov<mode>_hardfloat, FMOVE32 case):
3845 Delete some spaces in the constraints.
3846 (DF->DF move peephole2): Disable if -mupper-regs-{sf,df} to
3847 allow using FPR registers to load/store an Altivec register for
3848 scalar floating point types.
3849 (SF->SF move peephole2): Likewise.
3850 (DFmode splitter): Add a define_split to move floating point
3851 constants to the constant pool before register allocation.
3852 Normally constants are put into the pool immediately, but
3853 -ffast-math delays putting them into the constant pool for the
3854 reciprocal approximation support.
3855 (SFmode splitter): Likewise.
3856
3857 * config/rs6000/rs6000.opt (-mupper-regs-df): Make option public.
3858 (-mupper-regs-sf): Likewise.
3859
3860 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3861 __UPPER_REGS_DF__ if -mupper-regs-df. Define __UPPER_REGS_SF__ if
3862 -mupper-regs-sf.
3863 (-mupper-regs): New combination option that sets -mupper-regs-sf
3864 and -mupper-regs-df by default if the cpu supports the instructions.
3865
3866 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3867 -mupper-regs, -mupper-regs-sf, and -mupper-regs-df.
3868
3869 * config/rs6000/predicates.md (memory_fp_constant): New predicate
3870 to return true if the operand is a floating point constant that
3871 must be put into the constant pool, before register allocation
3872 occurs.
3873
3874 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Enable
3875 -mupper-regs-df by default.
3876 (ISA_2_7_MASKS_SERVER): Enable -mupper-regs-sf by default.
3877 (POWERPC_MASKS): Add -mupper-regs-{sf,df} as options set by the
3878 various -mcpu=... options.
3879 (power7 cpu): Enable -mupper-regs-df by default.
3880
3881 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3882 -mupper-regs.
3883
3884 2014-11-17 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
3885
3886 * ira-conflicts.c (build_conflict_bit_table): Add the current
3887 object to OBJECTS_LIVE after traversing OBJECTS_LIVE.
3888
3889 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
3890
3891 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
3892 (ipa_get_indirect_edge_target): Add SPECULATIVE argument.
3893 (devirtualization_time_bonus): Use it.
3894 (ipcp_discover_new_direct_edges): Likewise.
3895 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Update.
3896 * ipa-prop.h (ipa_get_indirect_edge_target): Update prototype.
3897
3898 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
3899
3900 * tree.c (free_lang_data_in_decl): Set DECL_FUNCTION_SPECIFIC_OPTIMIZATION
3901 to optimization_default_node.
3902
3903 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
3904
3905 * cgraphunit.c (analyze_functions): Use opt_for_fn.
3906 * cgraph.h (cgraph_node::optimize_for_size_p): Likewise.
3907
3908 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
3909
3910 * cgraph.c (symbol_table::create_edge): Use opt_for_fn.
3911 (cgraph_node::cannot_return_p): Likewise.
3912 (cgraph_edge::cannot_lead_to_return_p): Likewise.
3913 (cgraph_edge::maybe_hot_p): Likewise.
3914
3915 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
3916
3917 * predict.c (maybe_hot_frequency_p): Use opt_for_fn.
3918 (optimize_function_for_size_p): Likewise.
3919 (probably_never_executed): Likewise; replace cfun by fun.
3920
3921 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
3922
3923 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Add
3924 variant reading from memory and assembling to ld1.
3925
3926 * config/aarch64/arm_neon.h (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8,
3927 vld1_lane_p16, vld1_lane_s8, vld1_lane_s16, vld1_lane_s32,
3928 vld1_lane_s64, vld1_lane_u8, vld1_lane_u16, vld1_lane_u32,
3929 vld1_lane_u64, vld1q_lane_f32, vld1q_lane_f64, vld1q_lane_p8,
3930 vld1q_lane_p16, vld1q_lane_s8, vld1q_lane_s16, vld1q_lane_s32,
3931 vld1q_lane_s64, vld1q_lane_u8, vld1q_lane_u16, vld1q_lane_u32,
3932 vld1q_lane_u64): Replace asm with vset_lane and pointer dereference.
3933
3934 2014-11-17 Jason Merrill <jason@redhat.com>
3935
3936 * tree-inline.c (copy_fn): New.
3937 * tree-inline.h: Declare it.
3938
3939 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
3940
3941 * config/aarch64/aarch64-builtins.c (TYPES_CREATE): Remove.
3942 * config/aarch64/aarch64-simd-builtins.def (create): Remove.
3943 * config/aarch64/aarch64-simd.md (aarch64_create<mode>): Remove.
3944 * config/aarch64/arm_neon.h (vcreate_f64, vreinterpret_f64_s64,
3945 vreinterpret_f64_u64): Replace __builtin_aarch64_createv1df with C casts.
3946 * config/aarch64/iterators.md (VD1): Remove.
3947
3948 2014-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3949
3950 * config/aarch64/aarch64-cores.def (cortex-a53): Remove
3951 AARCH64_FL_CRYPTO from feature flags.
3952 (cortex-a57): Likewise.
3953 (cortex-a57.cortex-a53): Likewise.
3954
3955 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
3956
3957 * tree.c (free_lang_data_in_decl): Annotate all functio nbodies with
3958 DECL_FUNCTION_SPECIFIC_TARGET.
3959 * i386.c (ix86_set_current_function): Handle explicit default options.
3960
3961 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
3962
3963 * builtins.c (expand_builtin_memcpy_with_bounds): Use target hook
3964 instead of BNDmode.
3965 (expand_builtin_mempcpy_with_bounds): Likewise.
3966 (expand_builtin_memset_with_bounds): Likewise.
3967
3968 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
3969
3970 * tree-ssa-strlen.c: include ipa-chkp.h, cgraph.h,
3971 ipa-ref.h, plugin-api.h.
3972 (get_string_length): Handle calls with bounds.
3973 (adjust_last_stmt): Likewise.
3974 (handle_builtin_strchr): Likewise.
3975 (handle_builtin_strcpy): Likewise.
3976 (handle_builtin_memcpy): Likewise.
3977 (handle_builtin_strcat): Likewise.
3978
3979 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
3980
3981 * tree-chkp-opt.c (chkp_get_nobnd_fndecl): New.
3982 (chkp_get_nochk_fndecl): New.
3983 (chkp_optimize_string_function_calls): New.
3984 (chkp_opt_execute): Call chkp_optimize_string_function_calls.
3985 * tree-cfg.h (insert_cond_bb): New.
3986 * tree-cfg.c (insert_cond_bb): New.
3987
3988 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
3989
3990 * tree-core.h (built_in_class): Add builtin codes to be used
3991 by Pointer Bounds Checker for instrumented builtin functions.
3992 * tree-streamer-in.c: Include ipa-chkp.h.
3993 (streamer_get_builtin_tree): Created instrumented decl if
3994 required.
3995 * ipa-chkp.h (chkp_maybe_clone_builtin_fndecl): New.
3996 * ipa-chkp.c (chkp_build_instrumented_fndecl): Support builtin
3997 function decls.
3998 (chkp_maybe_clone_builtin_fndecl): New.
3999 (chkp_maybe_create_clone): Support builtin function decls.
4000 (chkp_versioning): Clone builtin functions.
4001 * tree-chkp.c (chkp_instrument_normal_builtin): New.
4002 (chkp_add_bounds_to_call_stmt): Support builtin functions.
4003 (chkp_replace_function_pointer): Likewise.
4004 * builtins.c (expand_builtin_memcpy_args): New.
4005 (expand_builtin_memcpy): Call expand_builtin_memcpy_args.
4006 (expand_builtin_memcpy_with_bounds): New.
4007 (expand_builtin_mempcpy_with_bounds): New.
4008 (expand_builtin_mempcpy_args): Add orig_exp arg. Support
4009 BUILT_IN_CHKP_MEMCPY_NOBND_NOCHK
4010 (expand_builtin_memset_with_bounds): New.
4011 (expand_builtin_memset_args): Support BUILT_IN_CHKP_MEMSET_NOBND_NOCHK.
4012 (expand_builtin_with_bounds): New.
4013 * builtins.h (expand_builtin_with_bounds): New.
4014 * expr.c (expand_expr_real_1): Support instrumented builtin calls.
4015
4016 2014-11-17 Dodji Seketeli <dodji@redhat.com>
4017
4018 * gimple.h (gimple_set_visited, gimple_visited_p)
4019 (gimple_set_plf, gimple_plf, gimple_set_uid, gimple_uid): Add more
4020 comments to these accessors.
4021
4022 2014-11-17 Georg-Johann Lay <avr@gjlay.de>
4023
4024 * config/avr/avr-log.c (avr_log_set_avr_log) [TARGET_ALL_DEBUG]:
4025 Set avr_log_details to "all".
4026
4027 2014-11-17 Richard Biener <rguenther@suse.de>
4028
4029 PR middle-end/63898
4030 * match.pd: Guard X / CST -> X * CST' transform against
4031 zero CST.
4032
4033 2014-11-17 Terry Guo <terry.guo@arm.com>
4034
4035 * config/arm/thumb1.md (*addsi3_cbranch_scratch): Updated to UAL
4036 format.
4037
4038 2014-11-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
4039
4040 * ifcvt.c (HAVE_cbranchcc4): Define.
4041 (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
4042 Use HAVE_cbranchcc4.
4043
4044 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4045
4046 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
4047 aarch64_convert_mode, aarch64_gen_ccmp_first,
4048 aarch64_gen_ccmp_next): New functions.
4049 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
4050
4051 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4052
4053 * config/aarch64/aarch64-protos.h (aarch64_ccmp_mode_to_code): New.
4054 * aarch64.c (aarch64_nzcv_codes): New data.
4055 (aarch64_ccmp_mode_to_code): New.
4056 (aarch64_print_operand): Output nzcv.
4057 config/aarch64/aarch64.md (cbranchcc4, *ccmp_and, *ccmp_ior, cstorecc4):
4058 New patterns.
4059 (cstore<mode>4): Handle ccmp_cc_register.
4060 * config/aarch64/predicates.md (const0_operand): New.
4061
4062 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4063
4064 * config/aarch64/aarch64-modes.def: Define ccmp CC mode.
4065 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): New function
4066 extacted from aarch64_get_condition_code.
4067 (aarch64_get_condition_code): Call aarch64_get_condition_code_1.
4068 config/aarch64/predicates.md (ccmp_cc_register): New predicate.
4069
4070 014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4071
4072 * config/aarch64/constraints.md (Usn, aarch64_ccmp_immediate,
4073 aarch64_ccmp_operand): New constraints.
4074
4075 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4076
4077 * Makefile.in: Add ccmp.o.
4078 * ccmp.c: New file.
4079 * ccmp.h: New file.
4080 * expr.c: include "ccmp.h"
4081 (expand_cond_expr_using_cmove): Handle VOIDmode.
4082 (expand_expr_real_1): Try to expand ccmp.
4083
4084 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4085
4086 * cfgexpand.c (expand_gimple_cond): Check ccmp.
4087 * expmed.c (emit_cstore): Make it global.
4088 * expmed.h: #include "insn-codes.h"
4089 (emit_cstore): New prototype.
4090 * expr.c (expand_operands): Make it global.
4091 * expr.h (expand_operands): New prototype.
4092 * optabs.c (get_rtx_code): Make it global.
4093 * optabs.h (get_rtx_code): New prototype.
4094
4095 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4096
4097 * target.def (gen_ccmp_first, gen_ccmp_first): Add two new hooks.
4098 * doc/tm.texi.in (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
4099 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
4100
4101 2014-11-16 Patrick Palka <ppalka@gcc.gnu.org>
4102
4103 PR middle-end/63790
4104 * tree-ssa-forwprop.c (forward_propagate_into_comparison_1):
4105 Always combine comparisons or conversions from booleans.
4106
4107 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
4108
4109 * ipa-polymorphic-call.c
4110 (ipa_polymorphic_call_context::speculation_consistent_p): Constify.
4111 (ipa_polymorphic_call_context::meet_speculation_with): New function.
4112 (ipa_polymorphic_call_context::combine_with): Handle types in construction
4113 better.
4114 (ipa_polymorphic_call_context::equal_to): Do not bother about useless
4115 speculation.
4116 (ipa_polymorphic_call_context::meet_with): New function.
4117 * cgraph.h (class ipa_polymorphic_call_context): Add
4118 meet_width, meet_speculation_with; constify speculation_consistent_p.
4119 * ipa-cp.c (ipa_context_from_jfunc): Handle speculation; combine with incomming
4120 context.
4121 (propagate_context_accross_jump_function): Likewise; be more cureful.
4122 about set_contains_variable.
4123 (ipa_get_indirect_edge_target_1): Fix handling of dynamic type changes.
4124 (find_more_scalar_values_for_callers_subset): Fix.
4125 (find_more_contexts_for_caller_subset): Perform meet operation.
4126
4127 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
4128
4129 * passes.c (execute_one_pass): Do not apply all transforms prior
4130 every simple IPA pass.
4131 * cgraphunit.c: Do not include fibheap.h
4132 (expand_thunk): Use get_untransformed_body.
4133 (cgraph_node::expand): Likewise.
4134 * tree-ssa-structalias.c (ipa_pta_execute): Skip inline clones.
4135 * cgraph.c (release_function_body): Do not push cfun when CFG is not there.
4136 (cgraph_node::get_untransformed_body): Break out from ...
4137 (cgraph_node::get_body): ... here; add code to apply all transforms.
4138 * cgraph.h (cgraph_node): Add get_untransformed_body.
4139 * ipa-icf.c (sem_function::init): Use get_untransformed_body.
4140 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
4141 * tree-inline.c (expand_call_inline): LIkewise.
4142 * i386.c (ix86_reset_to_default_globals): Break out from ...
4143 (ix86_set_current_function): ... here;
4144 (ix86_reset_previous_fndecl): Use it.
4145 (ix86_simd_clone_adjust): Use ix86_reset_previous_fndecl.
4146
4147 2014-11-16 Eric Botcazou <ebotcazou@adacore.com>
4148
4149 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Move around.
4150 * doc/tm.texi: Regenerate.
4151
4152 2014-11-16 Uros Bizjak <ubizjak@gmail.com>
4153
4154 * config/sh/sh.c: Do not include algorithm.
4155 (sh_emit_scc_to_t): Replace open-coded swap with std::swap
4156 to swap values.
4157 (sh_emit_compare_and_branch): Ditto.
4158 (sh_emit_compare_and_set): Ditto.
4159 * config/sh/sh.md (replacement peephole2): Ditto.
4160 (cstore4_media): Ditto.
4161 (*fmasf4): Ditto.
4162
4163 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
4164
4165 * lra-remat.c (cand_transf_func): Process regno for
4166 rematerialization too.
4167 * lra.c (lra): Switch on rematerialization pass.
4168
4169 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
4170
4171 * lra.c (lra): Switch off rematerialization pass.
4172
4173 2014-11-15 Marc Glisse <marc.glisse@inria.fr>
4174
4175 * config/i386/xmmintrin.h (_mm_add_ps, _mm_sub_ps, _mm_mul_ps,
4176 _mm_div_ps, _mm_store_ss, _mm_cvtss_f32): Use vector extensions
4177 instead of builtins.
4178 * config/i386/emmintrin.h (__v2du, __v4su, __v8hu, __v16qu): New
4179 typedefs.
4180 (_mm_sqrt_sd): Fix comment.
4181 (_mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4182 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4183 _mm_mullo_epi16, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4184 _mm_cmplt_epi8, _mm_cmplt_epi16, _mm_cmplt_epi32, _mm_cmpgt_epi8,
4185 _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_and_si128, _mm_or_si128,
4186 _mm_xor_si128, _mm_store_sd, _mm_cvtsd_f64, _mm_storeh_pd,
4187 _mm_cvtsi128_si64, _mm_cvtsi128_si64x, _mm_add_pd, _mm_sub_pd,
4188 _mm_mul_pd, _mm_div_pd, _mm_storel_epi64, _mm_movepi64_pi64):
4189 Use vector extensions instead of builtins.
4190 * config/i386/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
4191 _mm_mullo_epi32): Likewise.
4192 * config/i386/avxintrin.h (__v4du, __v8su, __v16hu, __v32qu):
4193 New typedefs.
4194 (_mm256_add_pd, _mm256_add_ps, _mm256_div_pd, _mm256_div_ps,
4195 _mm256_mul_pd, _mm256_mul_ps, _mm256_sub_pd, _mm256_sub_ps):
4196 Use vector extensions instead of builtins.
4197 * config/i386/avx2intrin.h (_mm256_cmpeq_epi8, _mm256_cmpeq_epi16,
4198 _mm256_cmpeq_epi32, _mm256_cmpeq_epi64, _mm256_cmpgt_epi8,
4199 _mm256_cmpgt_epi16, _mm256_cmpgt_epi32, _mm256_cmpgt_epi64,
4200 _mm256_and_si256, _mm256_or_si256, _mm256_xor_si256, _mm256_add_epi8,
4201 _mm256_add_epi16, _mm256_add_epi32, _mm256_add_epi64,
4202 _mm256_mullo_epi16, _mm256_mullo_epi32, _mm256_sub_epi8,
4203 _mm256_sub_epi16, _mm256_sub_epi32, _mm256_sub_epi64): Likewise.
4204 * config/i386/avx512fintrin.h (__v8du, __v16su, __v32hu, __v64qu):
4205 New typedefs.
4206 (_mm512_or_si512, _mm512_or_epi32, _mm512_or_epi64, _mm512_xor_si512,
4207 _mm512_xor_epi32, _mm512_xor_epi64, _mm512_and_si512,
4208 _mm512_and_epi32, _mm512_and_epi64, _mm512_mullo_epi32,
4209 _mm512_add_epi64, _mm512_sub_epi64, _mm512_add_epi32,
4210 _mm512_sub_epi32, _mm512_add_pd, _mm512_add_ps, _mm512_sub_pd,
4211 _mm512_sub_ps, _mm512_mul_pd, _mm512_mul_ps, _mm512_div_pd,
4212 _mm512_div_ps): Use vector extensions instead of builtins.
4213 * config/i386/avx512bwintrin.h (_mm512_mullo_epi16, _mm512_add_epi8,
4214 _mm512_sub_epi8, _mm512_sub_epi16, _mm512_add_epi16): Likewise.
4215 * config/i386/avx512dqintrin.h (_mm512_mullo_epi64): Likewise.
4216 * config/i386/avx512vldqintrin.h (_mm256_mullo_epi64, _mm_mullo_epi64):
4217 Likewise.
4218
4219 2014-11-15 Jan Hubicka <hubicka@ucw.cz>
4220
4221 * lto-streamer-out.c (hash_tree): Use cl_optimization_hash.
4222 * lto-streamer.h (cl_optimization_stream_out, cl_optimization_stream_in): Declare.
4223 * optc-save-gen.awk: Generate cl_optimization LTO streaming and hashing routines.
4224 * opth-gen.awk: Add prototype of cl_optimization_hash.
4225 * tree-streamer-in.c (unpack_ts_optimization): Remove.
4226 (streamer_unpack_tree_bitfields): Use cl_optimization_stream_in.
4227 * tree-streamer-out.c (pack_ts_optimization): Remove.
4228 (streamer_pack_tree_bitfields): Use cl_optimization_stream_out.
4229
4230 2014-11-15 Mircea Namolaru <mircea.namolaru@inria.fr>
4231
4232 * common.opt (flag_loop_unroll_and_jam): New flag.
4233 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE): Parameter for unroll and
4234 jam flag.
4235 (PARAM_LOOP_UNROLL_JAM_DEPTH): Likewise.
4236 * graphite-poly.h (struct poly_bb:map_sepclass): New field
4237 * graphite-poly.c (new_poly_bb): Initialization for new field.
4238 (apply_poly_transforms): Support for unroll and jam flag.
4239 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass): Compute the
4240 separation class.
4241 (generate_luj_sepclass_opt): Build the separation class option.
4242 (generate_luj_options): Set unroll and jam options.
4243 (set_options): Support for unroll and jam options.
4244 (scop_to_isl_ast): Likewise
4245 * graphite-optimize-isl.c (getPrevectorMap_full): New function for
4246 computing the separating class map.
4247 (optimize_isl): Support for the separating class map.
4248 (apply_schedule_map_to_scop): Likewise.
4249 (getScheduleMap): Likewise.
4250 (getScheduleForBand): Likewise.
4251 (getScheduleForBandList): Likewise.
4252 * graphite.c (gate_graphite_transforms): Add unroll and jam flag.
4253 * toplev.c (process_options) Likewise.
4254
4255 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
4256
4257 * tree-cfg.c (replace_loop_annotate_in_block): New function extracted
4258 from...
4259 (replace_loop_annotate): ...here. Call it on the header and on the
4260 latch block, if any. Restore proper behavior of final cleanup.
4261
4262 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
4263
4264 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message
4265 for max-completely-peeled-insns limit.
4266
4267 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
4268
4269 * ipa-prop.h (ipa_known_type_data): Remove.
4270 (ipa_binfo_from_known_type_jfunc): Remove.
4271
4272 2014-11-14 Andrew Pinski <apinski@cavium.com>
4273
4274 * config/aarch64/aarch64-cores.def (thunderx): Change the scheduler
4275 over to thunderx.
4276 * config/aarch64/aarch64.md: Include thunderx.md.
4277 (generic_sched): Set to no for thunderx.
4278 * config/aarch64/thunderx.md: New file.
4279
4280 2014-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4281
4282 * config/rs6000/predicates.md (easy_fp_constant): Delete redunant
4283 tests for 0.0.
4284
4285 * config/rs6000/vector.md (VEC_R): Move secondary reload support
4286 insns to rs6000.md from vector.md.
4287 (reload_<VEC_R:mode>_<P:mptrsize>_store): Likewise.
4288 (reload_<VEC_R:mode>_<P:mptrsize>_load): Likewise.
4289 (vec_reload_and_plus_<mptrsize>): Likewise.
4290
4291 * config/rs6000/rs6000.md (Fa): New mode attribute to give
4292 constraint for the Altivec registers for a type.
4293 (RELOAD): New mode iterator for all of the types that have
4294 secondary reload address support to load up a base register.
4295 (extendsfdf2_fpr): Use correct constraint.
4296 (copysign<mode>3_fcpsgn): For SFmode, use correct xscpsgndp
4297 instruction.
4298 (floatsi<mode>2_lfiwax): Add support for -mupper-regs-{sf,df}.
4299 Generate the non-VSX instruction if all registers were FPRs. Do
4300 not use the patterns in vsx.md for scalar operations.
4301 (floatsi<mode>2_lfiwax_mem): Likewise.
4302 (floatunssi<mode>2_lfiwzx): Likewise.
4303 (floatunssi<mode>2_lfiwzx_mem): Likewise.
4304 (fix_trunc<mode>di2_fctidz): Likewise.
4305 (fixuns_trunc<mode>di2_fctiduz): Likewise.
4306 (fctiwz_<mode>): Likewise.
4307 (fctiwuz_<mode>): Likewise.
4308 (friz): Likewise.
4309 (floatdidf2_fpr): Likewise.
4310 (floatdidf2_mem): Likewise.
4311 (floatunsdidf2): Likewise.
4312 (floatunsdidf2_fcfidu): Likewise.
4313 (floatunsdidf2_mem): Likewise.
4314 (floatdisf2_fcfids): Likewise.
4315 (floatdisf2_mem): Likewise.
4316 (floatdisf2_internal1): Add explicit test for not FCFIDS to make
4317 it more obvious that the code is for pre-ISA 2.06 machines.
4318 (floatdisf2_internal2): Likewise.
4319 (floatunsdisf2_fcfidus): Add support for -mupper-regs-{sf,df}.
4320 Generate the non-VSX instruction if all registers were FPRs. Do
4321 not use the patterns in vsx.md for scalar operations.
4322 (floatunsdisf2_mem): Likewise.
4323 (reload_<RELOAD:mode>_<P:mptrsize>_store): Move the reload
4324 handlers here from vector.md, and expand the types we generate
4325 reload handlers for.
4326 (reload_<RELOAD:mode>_<P:mptrsize>_load): Likewise.
4327 (vec_reload_and_plus_<mptrsize>): Likewise.
4328
4329 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Only provide the
4330 vector forms of the instructions. Move VSX scalar forms to
4331 rs6000.md, and add support for -mupper-regs-sf.
4332 (vsx_floatuns<VSi><mode>2): Likewise.
4333 (vsx_fix_trunc<mode><VSi>2): Likewise.
4334 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
4335 (vsx_float_fix_<mode>2): Delete DF version, rename to
4336 vsx_float_fix_v2df2.
4337 (vsx_float_fix_v2df2): Likewise.
4338
4339 2014-11-14 Martin Jambor <mjambor@suse.cz>
4340
4341 * ipa-prop.h (jump_func_type): Removed value IPA_JF_KNOWN_TYPE.
4342 (ipa_pass_through_data): Removed field type_preserved.
4343 (ipa_ancestor_jf_data): removed fields type and type_preserved.
4344 (ipa_jump_func): Removed field known_type.
4345 (ipa_get_jf_known_type_offset): Removed.
4346 (ipa_get_jf_known_type_base_type): Likewise.
4347 (ipa_get_jf_known_type_component_type): Likewise.
4348 (ipa_get_jf_ancestor_type): Likewise.
4349 * ipa-cp.c (print_ipcp_constant_value): Removed BINFO handling.
4350 (ipa_get_jf_pass_through_result): Likewise.
4351 (ipa_get_jf_ancestor_result): Always build ptr_node_type accesses.
4352 (values_equal_for_ipcp_p): Removed BINFO handling.
4353 (ipa_get_indirect_edge_target_1): Updated comment.
4354 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Removed handling
4355 of IPA_JF_KNOWN_TYPE jump functions. Do not print removed fields.
4356 (ipa_set_jf_known_type): Removed.
4357 (ipa_set_jf_simple_pass_through): Do not set removed fields. Update
4358 all callers.
4359 (ipa_set_jf_arith_pass_through): Likewise.
4360 (ipa_set_ancestor_jf): Likewise.
4361 (ipa_binfo_from_known_type_jfunc): Removed.
4362 (prop_type_change_info): Removed fields known_current_type and
4363 multiple_types_encountered.
4364 (extr_type_from_vtbl_ptr_store): Removed.
4365 (check_stmt_for_type_change): Do not attempt to identify changed type.
4366 (detect_type_change_from_memory_writes): Do not set the removed fields,
4367 always set jfunc to unknown.
4368 (compute_complex_assign_jump_func): Do not detect dynamic type change.
4369 (compute_complex_ancestor_jump_func): Likewise.
4370 (compute_known_type_jump_func): Removed.
4371 (ipa_compute_jump_functions_for_edge): Do not detect dynamic type
4372 change. Do not comute known type jump functions.
4373 (combine_known_type_and_ancestor_jfs): Removed.
4374 (update_jump_functions_after_inlining): Removed handling of
4375 IPA_JF_KNOWN_TYPE jump functions. Do not set removed fields.
4376 (ipa_write_jump_function): Do not stream removed fields or known type
4377 jump functions.
4378 (ipa_read_jump_function): Likewise.
4379
4380 2014-11-14 Vladimir Makarov <vmakarov@redhat.com>
4381
4382 * lra-int.h (lra_create_live_ranges): Add parameter.
4383 * lra-lives.c (temp_bitmap): Move higher.
4384 (initiate_live_solver): Move temp_bitmap initialization into
4385 lra_live_ranges_init.
4386 (finish_live_solver): Move temp_bitmap clearing into
4387 live_ranges_finish.
4388 (process_bb_lives): Add parameter. Use it to control live info
4389 update and dead insn elimination. Pass it to mark_regno_live and
4390 mark_regno_dead.
4391 (lra_create_live_ranges): Add parameter. Pass it to
4392 process_bb_lives.
4393 (lra_live_ranges_init, lra_live_ranges_finish): See changes in
4394 initiate_live_solver and finish_live_solver.
4395 * lra-remat.c (do_remat): Process insn non-operand hard regs too.
4396 Use temp_bitmap to update avail_cands.
4397 * lra.c (lra): Pass new parameter to lra_create_live_ranges. Move
4398 check with lra_need_for_spill_p after live range pass. Switch on
4399 rematerialization pass.
4400
4401 2014-11-14 Martin Jambor <mjambor@suse.cz>
4402
4403 * ipa-prop.h (ipa_get_jf_pass_through_type_preserved): use
4404 agg_preserved flag instead.
4405 (ipa_get_jf_ancestor_type_preserved): Likewise.
4406 (ipa_node_params): Rename known_vals to known_csts, update all users.
4407 New field known_contexts.
4408 (ipa_get_indirect_edge_target): Update prototype.
4409 (ipcp_poly_ctx_values_pool): Declare.
4410 (ipa_context_from_jfunc): Likewise.
4411 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Updated prototype.
4412 * cgraph.h (ipa_polymorphic_call_context): New method equal_to. New
4413 parameter newline of method dump.
4414 * ipa-cp.c (ctxlat): New field.
4415 (ipcp_values_pool): Renamed to ipcp_cst_values_pool, updated all users.
4416 (ipcp_poly_ctx_values_pool):New variable.
4417 (ipa_get_poly_ctx_lat): New function.
4418 (print_ipcp_constant_value): New overloaded function for contexts.
4419 (print_all_lattices): Also print contexts.
4420 (ipa_topo_info): New field contexts;
4421 (set_all_contains_variable): Also set the flag in the context lattice.
4422 (initialize_node_lattices): Likewise for flag bottom.
4423 (ipa_get_jf_ancestor_result): Removed BINFO handling.
4424 (ipa_value_from_jfunc): Likewise.
4425 (ipa_context_from_jfunc): New function.
4426 (values_equal_for_ipcp_p): New overloaded function for contexts.
4427 (allocate_and_init_ipcp_value): Construct the value.
4428 (allocate_and_init_ipcp_value): New overloaded function for contexts.
4429 (propagate_scalar_accross_jump_function): Removed handling of
4430 KNOWN_TYPE jump functions.
4431 (propagate_context_accross_jump_function): New function.
4432 (propagate_constants_accross_call): Also propagate contexts.
4433 (ipa_get_indirect_edge_target_1): Work on contexts rather than BINFOs.
4434 (ipa_get_indirect_edge_target): Likewise.
4435 (devirtualization_time_bonus): Likewise.
4436 (gather_context_independent_values): Create and populate known_contexts
4437 vector rather than known_binfos.
4438 (perform_estimation_of_a_value): Work on contexts rather than BINFOs.
4439 (estimate_local_effects): Likewise.
4440 (add_all_node_vals_to_toposort): Also add contexts to teir topological
4441 sort.
4442 (ipcp_propagate_stage): Also propagate effects of contexts.
4443 (ipcp_discover_new_direct_edges): Receive and pass known_contexts to
4444 ipa_get_indirect_edge_target_1.
4445 (cgraph_edge_brings_value_p): New overloaded function for contexts.
4446 (create_specialized_node): Work on contexts rather than BINFOs.
4447 (find_more_contexts_for_caller_subset): New function.
4448 (known_contexts_useful_p): New function.
4449 (copy_useful_known_contexts): Likewise.
4450 (modify_known_vectors_with_val): Likewise.
4451 (ipcp_val_in_agg_replacements_p): Renamed to
4452 ipcp_val_agg_replacement_ok_p, return true for all offset indicating
4453 non-aggregate.
4454 (ipcp_val_agg_replacement_ok_p): New overloaded function for contexts.
4455 (decide_about_value): Work on contexts rather than BINFOs.
4456 (decide_whether_version_node): Likewise.
4457 (ipcp_driver): Initialize the new alloc pool.
4458 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Prettify
4459 printing of edge contexts.
4460 (ipa_set_ancestor_jf): Replace assert with conditional setting of
4461 type_preserved to false.
4462 (update_jump_functions_after_inlining): Use access function instead of
4463 reading agg_preserved directly. Store combined context in the ancestor
4464 case.
4465 (try_make_edge_direct_virtual_call): Work on contexts rather than
4466 BINFOs.
4467 (update_indirect_edges_after_inlining): Get context from
4468 ipa_context_from_jfunc.
4469 (ipa_free_node_params_substructures): Free also known_contexts.
4470 (ipa_free_all_structures_after_ipa_cp): Free the new alloc pool.
4471 (ipa_free_all_structures_after_iinln): Likewise.
4472 * ipa-inline-analysis.c (evaluate_properties_for_edge): Work on
4473 contexts rather than BINFOs.
4474 (estimate_edge_devirt_benefit): Likewise.
4475 (estimate_edge_size_and_time): Likewise.
4476 (estimate_calls_size_and_time): Likewise.
4477 (estimate_node_size_and_time): Likewise.
4478 (estimate_ipcp_clone_size_and_time): Likewise.
4479 (do_estimate_edge_time): Likewise.
4480 (do_estimate_edge_size): Likewise.
4481 (do_estimate_edge_hints): Likewise.
4482 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::dump): New
4483 parameter newline, ouput newline only when it is set.
4484 (ipa_polymorphic_call_context::equal_to): New method.
4485
4486 2014-11-14 Martin Jambor <mjambor@suse.cz>
4487
4488 * ipa-cp.c (ipcp_value_source): Converted to a template class. All
4489 users converted to the same specialization as the using class/function
4490 or specialization on tree.
4491 (ipcp_value): Likewise.
4492 (ipcp_lattice): Likewise.
4493 (ipcp_agg_lattice): Now derived from tree specialization of
4494 ipcp_lattice.
4495 (values_topo): Moved to new class value_topo_info.
4496 (ipa_lat_is_single_const): Turned into ipcp_lattice::is_single_const.
4497 Updated all callers.
4498 (print_lattice): Turned into ipcp_lattice::print. Updated all
4499 callers.
4500 (value_topo_info): New class template.
4501 (ipa_topo_info): New field constants. New constructor.
4502 (build_toporder_info): Do not clear stack_top, only checkign assert
4503 it.
4504 (set_lattice_to_bottom): Turned into ipcp_lattice::set_to_bottom.
4505 Updated all callers.
4506 (set_lattice_contains_variable): Turned into
4507 ipcp_lattice::set_contains_variable. Updated all callers.
4508 (add_value_source): Turned into ipcp_value::add_source. Updated all
4509 callers.
4510 (allocate_and_init_ipcp_value): New function.
4511 (add_value_to_lattice): Turned into ipcp_lattice::add_value. Last
4512 parameter got default a value. Updated all callers.
4513 (add_scalar_value_to_lattice): Removed, users converted to using
4514 ipcp_lattice::add_value with default value of the last parameter.
4515 (add_val_to_toposort): Turned to value_topo_info::add_val. Updated
4516 all callers.
4517 (propagate_effects): Made method of value_topo_info.
4518 (cgraph_edge_brings_value_p): Now a template function.
4519 (get_info_about_necessary_edges): Likewise.
4520 (gather_edges_for_value): Likewise.
4521 (perhaps_add_new_callers): Likewise.
4522 (decide_about_value): Likewise.
4523 * ipa-prop.h (ipcp_lattice): Remove fowrward declaration.
4524
4525 2014-11-14 Jakub Jelinek <jakub@redhat.com>
4526
4527 * doc/install.texi (--with-diagnostics-color=): Document.
4528
4529 * tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate
4530 IFN_GOMP_SIMD_LANE without lhs as useless.
4531
4532 * ipa-pure-const.c (struct funct_state_d): Add can_free field.
4533 (varying_state): Add true for can_free.
4534 (check_call): For builtin or internal !nonfreeing_call_p set
4535 local->can_free.
4536 (check_stmt): For asm volatile and asm with "memory" set
4537 local->can_free.
4538 (analyze_function): Clear local->can_free initially, continue
4539 calling check_stmt until all flags are computed, dump can_free
4540 flag.
4541 (pure_const_write_summary): Write can_free flag.
4542 (pure_const_read_summary): Read it back.
4543 (propagate_pure_const): Propagate also can_free flag, set
4544 w->nonfreeing_fn if it is false after propagation.
4545 * cgraph.h (cgraph_node): Add nonfreeing_fn member.
4546 * gimple.c: Include ipa-ref.h, lto-streamer.h and cgraph.h.
4547 (nonfreeing_call_p): Return cgraph nonfreeing_fn flag if set.
4548 Also return true for IFN_ABNORMAL_DISPATCHER.
4549 * cgraph.c (cgraph_node::dump): Dump nonfreeing_fn flag.
4550 * lto-cgraph.c (lto_output_node): Write nonfreeing_fn flag.
4551 (input_overwrite_node): Read it back.
4552
4553 2014-11-14 Jakub Jelinek <jakub@redhat.com>
4554 Marek Polacek <polacek@redhat.com>
4555
4556 * sanopt.c: Include tree-ssa-operands.h.
4557 (struct sanopt_info): Add has_freeing_call_p,
4558 has_freeing_call_computed_p, imm_dom_path_with_freeing_call_p,
4559 imm_dom_path_with_freeing_call_computed_p, freeing_call_events,
4560 being_visited_p fields.
4561 (struct sanopt_ctx): Add asan_check_map field.
4562 (imm_dom_path_with_freeing_call, maybe_optimize_ubsan_null_ifn,
4563 maybe_optimize_asan_check_ifn): New functions.
4564 (sanopt_optimize_walker): Use them, optimize even ASAN_CHECK
4565 internal calls.
4566 (pass_sanopt::execute): Call sanopt_optimize even for
4567 -fsanitize=address.
4568 * gimple.c (nonfreeing_call_p): Return true for non-ECF_LEAF
4569 internal calls.
4570
4571 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
4572
4573 * tree-vect-loop.c (vect_create_epilog_for_reduction): Move code for
4574 'if (extract_scalar_result)' to the only place that it is true.
4575
4576 2014-11-14 H.J. Lu <hongjiu.lu@intel.com>
4577
4578 * config.gcc (default_gnu_indirect_function): Set to yes
4579 for i[34567]86-*-linux* and x86_64-*-linux* if not targeting
4580 Android nor uclibc.
4581
4582 2014-11-14 Felix Yang <felix.yang@huawei.com>
4583 Jiji Jiang <jiangjiji@huawei.com>
4584
4585 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): Use
4586 VALL mode iterator instead of VALLDI.
4587
4588
4589 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
4590
4591 * optc-save-gen.awk: Output cl_target_option_eq,
4592 cl_target_option_hash, cl_target_option_stream_out,
4593 cl_target_option_stream_in functions.
4594 * opth-gen.awk: Output prototypes for
4595 cl_target_option_eq and cl_target_option_hash.
4596 * lto-streamer.h (cl_target_option_stream_out,
4597 cl_target_option_stream_in): Declare.
4598 * tree.c (cl_option_hash_hash): Use cl_target_option_hash.
4599 (cl_option_hash_eq): Use cl_target_option_eq.
4600 * tree-streamer-in.c (unpack_value_fields): Stream in
4601 TREE_TARGET_OPTION.
4602 * lto-streamer-out.c (DFS::DFS_write_tree_body): Follow
4603 DECL_FUNCTION_SPECIFIC_TARGET.
4604 (hash_tree): Hash TREE_TARGET_OPTION; visit
4605 DECL_FUNCTION_SPECIFIC_TARGET.
4606 * tree-streamer-out.c (streamer_pack_tree_bitfields): Skip
4607 TS_TARGET_OPTION.
4608 (streamer_write_tree_body): Output TS_TARGET_OPTION.
4609
4610 2014-11-14 Richard Biener <rguenther@suse.de>
4611
4612 * gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd
4613 valueization hook defaulted to no_follow_ssa_edges.
4614 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Pass
4615 2nd valueization hook to gimple_simplify.
4616 * tree-ssa-ccp.c (valueize_op_1): New function to be
4617 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
4618 (ccp_fold): Adjust.
4619 * tree-vrp.c (vrp_valueize_1): New function to be
4620 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
4621 (vrp_visit_assignment_or_call): Adjust.
4622
4623 2014-11-14 Marek Polacek <polacek@redhat.com>
4624
4625 * fold-const.c (fold_negate_expr): Don't fold INTEGER_CST if
4626 that overflows when SANITIZE_SI_OVERFLOW is on. Guard -(-A)
4627 folding with TYPE_OVERFLOW_SANITIZED.
4628
4629 2014-11-14 Marek Polacek <polacek@redhat.com>
4630
4631 PR sanitizer/63839
4632 * asan.c (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST,
4633 ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
4634 * builtin-attrs.def (ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST):
4635 Define.
4636 * builtins.c (fold_builtin_0): Don't include ubsan.h. Don't
4637 instrument BUILT_IN_UNREACHABLE here.
4638 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Make
4639 const.
4640 * sanopt.c (pass_sanopt::execute): Instrument BUILT_IN_UNREACHABLE.
4641 * tree-ssa-ccp.c (optimize_unreachable): Bail out if
4642 SANITIZE_UNREACHABLE.
4643 * ubsan.c (ubsan_instrument_unreachable): Rewrite for GIMPLE.
4644 * ubsan.h (ubsan_instrument_unreachable): Adjust declaration.
4645
4646 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
4647
4648 * config/rs6000/vector.md (vec_shl_<mode>): Remove.
4649 (vec_shr_<mode>): Reverse shift if BYTES_BIG_ENDIAN.
4650
4651 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
4652
4653 * optabs.c (shift_amt_for_vec_perm_mask): Remove code conditional on
4654 BYTES_BIG_ENDIAN.
4655 * tree-vect-loop.c (calc_vec_perm_mask_for_shift,
4656 vect_create_epilog_for_reduction): Likewise.
4657 * doc/md.texi (vec_shr_m): Clarify direction of shifting.
4658
4659 2014-11-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4660
4661 PR target/63724
4662 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Split out
4663 numerical immediate handling to...
4664 (aarch64_internal_mov_immediate): ...this. New.
4665 (aarch64_rtx_costs): Use aarch64_internal_mov_immediate.
4666 (aarch64_mov_operand_p): Relax predicate.
4667 * config/aarch64/aarch64.md (mov<mode>:GPI): Do not expand CONST_INTs.
4668 (*movsi_aarch64): Turn into define_insn_and_split and new alternative
4669 for 'n'.
4670 (*movdi_aarch64): Likewise.
4671
4672 2014-11-14 Richard Biener <rguenther@suse.de>
4673
4674 * match.pd: Implement more binary patterns exercised by
4675 fold_stmt.
4676 * fold-const.c (sing_bit_p): Export.
4677 (exact_inverse): Likewise.
4678 (fold_binary_loc): Remove patterns here.
4679 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
4680 * fold-const.h (sing_bit_p): Declare.
4681 (exact_inverse): Likewise.
4682
4683 2014-11-14 Marek Polacek <polacek@redhat.com>
4684
4685 * tree.c (build_common_builtin_nodes): Remove doubled ECF_LEAF.
4686
4687 2014-11-14 Richard Biener <rguenther@suse.de>
4688
4689 * genmatch.c (add_operator): Allow CONSTRUCTOR.
4690 (dt_node::gen_kids): Handle CONSTRUCTOR not as GENERIC.
4691 (parser::parse_op): Allow to iterate over predicates.
4692
4693 2014-11-14 Jakub Jelinek <jakub@redhat.com>
4694
4695 * configure.ac (--with-diagnostics-color): New configure
4696 option, default to --with-diagnostics-color=auto.
4697 * toplev.c (process_options): Use DIAGNOSTICS_COLOR_DEFAULT
4698 to determine -fdiagnostics-color= option default.
4699 * doc/invoke.texi (-fdiagnostics-color=): Document new
4700 default.
4701 * configure: Regenerated.
4702 * config.in: Regenerated.
4703
4704 2014-11-13 Teresa Johnson <tejohnson@google.com>
4705
4706 PR tree-optimization/63841
4707 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
4708
4709 2014-11-14 Bin Cheng <bin.cheng@arm.com>
4710
4711 * timevar.def (TV_SCHED_FUSION): New time var.
4712 * passes.def (pass_sched_fusion): New pass.
4713 * config/arm/arm.c (TARGET_SCHED_FUSION_PRIORITY): New.
4714 (extract_base_offset_in_addr, fusion_load_store): New.
4715 (arm_sched_fusion_priority): New.
4716 (arm_option_override): Disable scheduling fusion by default
4717 on non-armv7 processors or ldrd/strd isn't preferred.
4718 * sched-int.h (struct _haifa_insn_data): New field.
4719 (INSN_FUSION_PRIORITY, FUSION_MAX_PRIORITY, sched_fusion): New.
4720 * sched-rgn.c (rest_of_handle_sched_fusion): New.
4721 (pass_data_sched_fusion, pass_sched_fusion): New.
4722 (make_pass_sched_fusion): New.
4723 * haifa-sched.c (sched_fusion): New.
4724 (insn_cost): Handle sched_fusion.
4725 (priority): Handle sched_fusion by calling target hook.
4726 (enum rfs_decision): New enum value.
4727 (rfs_str): New element for RFS_FUSION.
4728 (rank_for_schedule): Support sched_fusion.
4729 (schedule_insn, max_issue, prune_ready_list): Handle sched_fusion.
4730 (schedule_block, fix_tick_ready): Handle sched_fusion.
4731 * common.opt (flag_schedule_fusion): New.
4732 * tree-pass.h (make_pass_sched_fusion): New.
4733 * target.def (fusion_priority): New.
4734 * doc/tm.texi.in (TARGET_SCHED_FUSION_PRIORITY): New.
4735 * doc/tm.texi: Regenerated.
4736 * doc/invoke.texi (-fschedule-fusion): New.
4737
4738 2014-11-13 Rong Xu <xur@google.com>
4739
4740 PR debug/63581
4741 * cfgrtl.c (emit_barrier_after_bb): Append the barrier to the
4742 footer, instead of unconditionally overwritten.
4743
4744 2014-11-14 Martin Jambor <mjambor@suse.cz>
4745
4746 * cgraph.h (clear_outer_type): Make public. Fix comment.
4747 * ipa-devirt.c (possible_polymorphic_call_targets): Use
4748 clear_outer_type when resetting the context.
4749
4750 2014-11-13 Dominique Dhumieres <dominiq@lps.ens.fr>
4751
4752 PR bootstrap/63853
4753 * gcc.c (handle_foffload_option): Replace strchrnul with strchr.
4754 * lto-wrapper.c (parse_env_var, append_offload_options): Likewise.
4755
4756 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
4757
4758 * fold-const.c (const_binop): Remove code handling VEC_RSHIFT_EXPR.
4759 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
4760 * tree-inline.c (estimate_operator_cost): Likewise.
4761 * tree-pretty-print.c (dump_generic_node, op_code_prio, op_symbol_code):
4762 Likewise.
4763
4764 * tree-vect-generic.c (expand_vector_operations_1): Remove assertion
4765 against VEC_RSHIFT_EXPR.
4766
4767 * optabs.h (expand_vec_shift_expr): Remove.
4768 * optabs.c (optab_for_tree_code): Remove case VEC_RSHIFT_EXPR.
4769 (expand_vec_shift_expr): Remove.
4770 * tree.def (VEC_RSHIFT_EXPR): Remove
4771
4772 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
4773
4774 * optabs.c (can_vec_perm_p): Update comment, does not consider vec_shr.
4775 (shift_amt_for_vec_perm_mask): New.
4776 (expand_vec_perm_1): Use vec_shr_optab if second vector is const0_rtx
4777 and mask appropriate.
4778
4779 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): New.
4780 (have_whole_vector_shift): New.
4781 (vect_model_reduction_cost): Call have_whole_vector_shift instead of
4782 looking for vec_shr_optab.
4783 (vect_create_epilog_for_reduction): Likewise; also rename local variable
4784 have_whole_vector_shift to reduce_with_shift; output VEC_PERM_EXPRs
4785 instead of VEC_RSHIFT_EXPRs.
4786
4787 * tree-vect-stmts.c (vect_gen_perm_mask_checked): Extend comment.
4788
4789 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
4790
4791 * tree-vectorizer.h (vect_gen_perm_mask): Remove.
4792 (vect_gen_perm_mask_checked, vect_gen_perm_mask_any): New.
4793
4794 tree_vec_data_refs.c (vect_permute_load_chain, vec_permute_store_chain,
4795 vec_shift_permute_load_chain): Replace vect_gen_perm_mask & assert
4796 with vect_gen_perm_mask_checked.
4797
4798 * tree-vect-stmts.c (vectorizable_mask_load_store, vectorizable_load):
4799 Likewise.
4800
4801 (vect_gen_perm_mask_checked): New.
4802 (vect_gen_perm_mask): Remove can_vec_perm_p check, rename to...
4803 (vect_gen_perm_mask_any): ...this.
4804
4805 (perm_mask_for_reverse): Call can_vec_perm_p and
4806 vect_gen_perm_mask_checked.
4807
4808 2014-11-13 Felix Yang <felix.yang@huawei.com>
4809
4810 * ipa-utils.h: Fix typo in comments.
4811 * ipa-profile.c: Likewise.
4812 * tree-ssa-loop-ivcanon.c: Fix typo in comments and debugging dumps.
4813
4814 2014-11-13 Teresa Johnson <tejohnson@google.com>
4815
4816 PR tree-optimization/63841
4817 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
4818
4819 2014-11-13 Teresa Johnson <tejohnson@google.com>
4820
4821 PR tree-optimization/63841
4822 * tree.c (initializer_zerop): A clobber does not zero initialize.
4823
4824 2014-11-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4825
4826 * optabs.c (prepare_operand): Gracefully fail if the mode of X
4827 does not match the operand mode expected by the insn pattern.
4828
4829 2014-11-13 Richard Biener <rguenther@suse.de>
4830
4831 * match.pd: Add tcc_comparison, inverted_tcc_comparison
4832 and inverted_tcc_comparison_with_nans operator lists.
4833 Use tcc_comparison in the truth_valued_p predicate definition.
4834 Restrict logical_inverted_value with bit_xor to integral types.
4835 Build a boolean true for simplifying x |^ !x because of
4836 vector types. Implement patterns from forward_propagate_comparison
4837 * tree-ssa-forwprop.c (forward_propagate_comparison): Remove.
4838 (get_prop_dest_stmt): Likewise.
4839 (pass_forwprop::execute): Do not call it.
4840 * fold-const.c (fold_unary_loc): Remove the pattern here.
4841
4842 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
4843 Andrey Turetskiy <andrey.turetskiy@intel.com>
4844
4845 * config.gcc (*-intelmic-* | *-intelmicemul-*): Add i386/t-intelmic to
4846 tmake_file.
4847 (i[34567]86-*-* | x86_64-*-*): Build mkoffload$(exeext) with the
4848 accelerator compiler.
4849 * config/i386/intelmic-mkoffload.c: New file.
4850 * config/i386/t-intelmic: Ditto.
4851
4852 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
4853 Andrey Turetskiy <andrey.turetskiy@intel.com>
4854 Ilya Verbin <ilya.verbin@intel.com>
4855
4856 * common.opt (foffload, foffload-abi): New options.
4857 * config/i386/i386.c (ix86_offload_options): New static function.
4858 (TARGET_OFFLOAD_OPTIONS): Define.
4859 * coretypes.h (enum offload_abi): New enum.
4860 * doc/tm.texi: Regenerate.
4861 * doc/tm.texi.in (TARGET_OFFLOAD_OPTIONS): Document.
4862 * gcc.c (offload_targets): New static variable.
4863 (handle_foffload_option): New static function.
4864 (driver_handle_option): Handle OPT_foffload_.
4865 (driver::maybe_putenv_OFFLOAD_TARGETS): Set OFFLOAD_TARGET_NAMES
4866 according to offload_targets.
4867 * hooks.c (hook_charptr_void_null): New hook.
4868 * hooks.h (hook_charptr_void_null): Declare.
4869 * lto-opts.c: Include lto-section-names.h.
4870 (lto_write_options): Append options from target offload_options hook and
4871 store them to offload_lto section. Do not store target-specific,
4872 driver and diagnostic options in offload_lto section.
4873 * lto-wrapper.c (merge_and_complain): Handle OPT_foffload_ and
4874 OPT_foffload_abi_.
4875 (append_compiler_options, append_linker_options)
4876 (append_offload_options): New static functions.
4877 (compile_offload_image): Add new arguments with options.
4878 Call append_compiler_options and append_offload_options.
4879 (compile_images_for_offload_targets): Add new arguments with options.
4880 (find_and_merge_options): New static function.
4881 (run_gcc): Outline options handling into the new functions:
4882 find_and_merge_options, append_compiler_options, append_linker_options.
4883 * opts.c (common_handle_option): Don't handle OPT_foffload_.
4884 Forbid OPT_foffload_abi_ for non-offload compiler.
4885 * target.def (offload_options): New target hook.
4886
4887 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
4888 Bernd Schmidt <bernds@codesourcery.com>
4889 Andrey Turetskiy <andrey.turetskiy@intel.com>
4890 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4891
4892 * gcc.c (spec_host_machine, accel_dir_suffix): New variables.
4893 (process_command): Tweak path construction for the possibility
4894 of being configured as an offload compiler.
4895 (driver::maybe_putenv_OFFLOAD_TARGETS): New function.
4896 (driver::main): Call maybe_putenv_OFFLOAD_TARGETS.
4897 (driver::set_up_specs): Tweak path construction for the possibility of
4898 being configured as an offload compiler.
4899 * lto-wrapper.c (OFFLOAD_TARGET_NAMES_ENV): Define.
4900 (offload_names, offloadbegin, offloadend): New static variables.
4901 (free_array_of_ptrs, parse_env_var, access_check, compile_offload_image)
4902 (compile_images_for_offload_targets, copy_file, find_offloadbeginend):
4903 New static functions.
4904 (run_gcc): Determine whether offload sections are present. If so, run
4905 compile_images_for_offload_targets and return the names of new generated
4906 objects to linker. If there are offload sections, but no LTO sections,
4907 then return the copies of input objects without link-time recompilation.
4908
4909 2014-11-13 Richard Biener <rguenther@suse.de>
4910
4911 * genmatch.c (dt_node::gen_kids): Fix placement of break statement.
4912
4913 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
4914 Bernd Schmidt <bernds@codesourcery.com>
4915 Andrey Turetskiy <andrey.turetskiy@intel.com>
4916 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4917
4918 * Makefile.in (GTFILES): Add omp-low.h to list of GC files.
4919 * cgraphunit.c: Include omp-low.h.
4920 * doc/tm.texi: Regenerate.
4921 * doc/tm.texi.in (TARGET_RECORD_OFFLOAD_SYMBOL): Document.
4922 * gengtype.c (open_base_files): Add omp-low.h to ifiles.
4923 * lto-cgraph.c (output_offload_tables): New function.
4924 (input_offload_tables): Likewise.
4925 * lto-section-in.c (lto_section_name): Add "offload_table".
4926 * lto-section-names.h (OFFLOAD_VAR_TABLE_SECTION_NAME): Define.
4927 (OFFLOAD_FUNC_TABLE_SECTION_NAME): Likewise.
4928 * lto-streamer-out.c (lto_output): Call output_offload_tables.
4929 * lto-streamer.h (lto_section_type): Add LTO_section_offload_table.
4930 (output_offload_tables, input_offload_tables): Declare.
4931 * omp-low.c: Include common/common-target.h and lto-section-names.h.
4932 (offload_funcs, offload_vars): New global <tree, va_gc> vectors.
4933 (expand_omp_target): Add child_fn into offload_funcs vector.
4934 (add_decls_addresses_to_decl_constructor): New function.
4935 (omp_finish_file): Likewise.
4936 * omp-low.h (omp_finish_file, offload_funcs, offload_vars): Declare.
4937 * target.def (record_offload_symbol): New DEFHOOK.
4938 * toplev.c: Include omp-low.h.
4939 (compile_file): Call omp_finish_file.
4940 * varpool.c: Include omp-low.h.
4941 (varpool_node::get_create): Add decl into offload_vars vector.
4942
4943 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
4944 Ilya Tocar <ilya.tocar@intel.com>
4945 Andrey Turetskiy <andrey.turetskiy@intel.com>
4946 Bernd Schmidt <bernds@codesourcery.com>
4947
4948 * cgraph.c: Include context.h.
4949 (cgraph_node::create): Set node->offloadable and g->have_offload if
4950 decl have "omp declare target" attribute.
4951 * cgraph.h (symtab_node): Add need_lto_streaming and offloadable flags.
4952 * cgraphunit.c: Include lto-section-names.h.
4953 (ipa_passes): Call ipa_write_summaries if there is something to write to
4954 OFFLOAD_SECTION_NAME_PREFIX sections.
4955 (symbol_table::compile): Set flag_generate_lto if there is something to
4956 offload.
4957 Replace flag_lto with flag_generate_lto before lto_streamer_hooks_init.
4958 * context.c (gcc::context::context): Initialize have_offload with false.
4959 * context.h (class context): Add have_offload flag.
4960 * ipa-inline-analysis.c (inline_generate_summary): Do not exit under
4961 flag_generate_lto.
4962 (inline_free_summary): Always remove hooks.
4963 * lto-cgraph.c (referenced_from_other_partition_p): Ignore references
4964 from non-offloadable nodes while streaming a node into offload section.
4965 (reachable_from_other_partition_p): Likewise.
4966 (select_what_to_stream): New function.
4967 (compute_ltrans_boundary): Do not call
4968 lto_set_symtab_encoder_in_partition if the node should not be streamed.
4969 * lto-section-names.h (OFFLOAD_SECTION_NAME_PREFIX): Define.
4970 (section_name_prefix): Declare.
4971 * lto-streamer.c (section_name_prefix): New variable.
4972 (lto_get_section_name): Use section_name_prefix instead of
4973 LTO_SECTION_NAME_PREFIX.
4974 * lto-streamer.h (select_what_to_stream): Declare.
4975 * omp-low.c: Include context.h.
4976 (is_targetreg_ctx): New function.
4977 (scan_sharing_clauses): Use offloadable flag, instead of an attribute.
4978 (create_omp_child_function, check_omp_nesting_restrictions): Use new
4979 is_targetreg_ctx function. Replace usage of "omp declare target"
4980 attribute with a cgraph_node flag offloadable.
4981 (expand_omp_target): Set mark_force_output for offloadable functions.
4982 (lower_omp_critical): Set offloadable flag for omp critical symbol.
4983 * passes.c (ipa_write_summaries): New argument offload_lto_mode. Call
4984 select_what_to_stream. Do not call lto_set_symtab_encoder_in_partition
4985 if the node should not be streamed out.
4986 * tree-pass.h (ipa_write_summaries): New bool argument.
4987 * varpool.c: Include context.h.
4988 (varpool_node::get_create): Set node->offloadable and g->have_offload if
4989 decl have "omp declare target" attribute.
4990
4991 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
4992 Thomas Schwinge <thomas@codesourcery.com>
4993 Ilya Verbin <ilya.verbin@intel.com>
4994 Andrey Turetskiy <andrey.turetskiy@intel.com>
4995
4996 * Makefile.in (real_target_noncanonical, accel_dir_suffix)
4997 (enable_as_accelerator): New variables substituted by configure.
4998 (libsubdir, libexecsubdir, unlibsubdir): Tweak for the possibility of
4999 being configured as an offload compiler.
5000 (DRIVER_DEFINES): Pass new defines DEFAULT_REAL_TARGET_MACHINE and
5001 ACCEL_DIR_SUFFIX.
5002 (install-cpp, install-common, install_driver, install-gcc-ar): Do not
5003 install for the offload compiler.
5004 * config.in: Regenerate.
5005 * configure: Regenerate.
5006 * configure.ac (real_target_noncanonical, accel_dir_suffix)
5007 (enable_as_accelerator): Compute new variables.
5008 (ACCEL_COMPILER): Define if the compiler is built as the accel compiler.
5009 (OFFLOAD_TARGETS): List of target names suitable for offloading.
5010 (ENABLE_OFFLOADING): Define if list of offload targets is not empty.
5011 * doc/install.texi (Options specification): Document
5012 --enable-as-accelerator-for and --enable-offload-targets.
5013
5014 2014-11-13 H.J. Lu <hongjiu.lu@intel.com>
5015
5016 PR tree-optimization/63828
5017 * ipa-polymorphic-call.c (possible_placement_new): Check
5018 POINTER_SIZE, instead of BITS_PER_WORD, for pointer size.
5019
5020 2014-11-13 Eric Botcazou <ebotcazou@adacore.com>
5021
5022 * doc/tm.texi.in (SELECT_CC_MODE): Update example.
5023 (REVERSIBLE_CC_MODE): Fix example.
5024 (REVERSE_CONDITION): Fix typo.
5025 * doc/tm.texi: Regenerate.
5026
5027 2014-11-13 Tom de Vries <tom@codesourcery.com>
5028
5029 * omp-low.c (pass_data_expand_omp): Set properties_provided to
5030 PROP_gimple_eomp.
5031 (pass_expand_omp::gate): Remove function. Move gate expression to ...
5032 (pass_expand_omp::execute): ... here, as new variable gate. Add early
5033 exit if gate is false.
5034 (pass_data pass_data_expand_omp_ssa): New pass_data.
5035 (class pass_expand_omp_ssa): New pass.
5036 (make_pass_expand_omp_ssa): New function.
5037 * passes.def (pass_parallelize_loops): Use PUSH_INSERT_PASSES_WITHIN
5038 instead of NEXT_PASS.
5039 (pass_expand_omp_ssa): Add after pass_parallelize_loops.
5040 * tree-parloops.c (gen_parallel_loop): Remove call to omp_expand_local.
5041 (pass_parallelize_loops::execute): Don't do cleanups TODO_cleanup_cfg
5042 and TODO_rebuild_alias yet. Add TODO_update_ssa. Set
5043 cfun->omp_expand_needed.
5044 * tree-pass.h: Add define PROP_gimple_eomp.
5045 (make_pass_expand_omp_ssa): Declare.
5046
5047 2014-11-13 Marek Polacek <polacek@redhat.com>
5048
5049 * tree.h (TYPE_OVERFLOW_SANITIZED): Define.
5050 * fold-const.c (fold_binary_loc): Use it.
5051 * match.pd: Likewise.
5052
5053 2014-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
5054
5055 * lra-lives.c (struct bb_data): Rename to ...
5056 (struct bb_data_pseudos): ... this.
5057 (initiate_live_solver): Update struct name.
5058
5059 2014-11-13 Richard Biener <rguenther@suse.de>
5060
5061 * match.pd: Implement conditional expression patterns.
5062 * tree-ssa-forwprop.c (forward_propagate_into_cond): Remove
5063 them here.
5064 (combine_cond_exprs): Remove.
5065 (pass_forwprop::execute): Do not call combine_cond_exprs.
5066 * fold-const.c (fold_ternary_loc): Remove patterns here.
5067 (pedantic_omit_one_operand_loc): Remove.
5068
5069 2014-12-13 Richard Biener <rguenther@suse.de>
5070
5071 PR middle-end/61559
5072 * match.pd: Implement bswap patterns for transforms checked by
5073 gcc.dg/builtin-bswap-8.c.
5074
5075 2014-11-13 Vladimir Makarov <vmakarov@redhat.com>
5076
5077 * lra.c (lra): Switch off rematerialization pass.
5078
5079 2014-11-12 Vladimir Makarov <vmakarov@redhat.com>
5080
5081 * common.opt (flra-remat): New.
5082 * opts.c (default_options_table): Add entry for flra_remat.
5083 * timevar_def (TV_LRA_REMAT): New.
5084 * doc/invoke.texi (-flra-remat): Add description of the new
5085 option.
5086 * doc/passes.texi (-flra-remat): Remove lra-equivs.c and
5087 lra-saves.c. Add lra-remat.c.
5088 * Makefile.in (OBJS): Add lra-remat.o.
5089 * lra-remat.c: New file.
5090 * lra.c: Add info about the rematerialization pass in the top
5091 comment.
5092 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info):
5093 Process unallocatable regs too.
5094 (lra_constraint_new_insn_uid_start): Remove.
5095 (lra): Add code for calling rematerialization sub-pass.
5096 * lra-int.h (lra_constraint_new_insn_uid_start): Remove.
5097 (lra_constrain_insn, lra_remat): New prototypes.
5098 (lra_eliminate_regs_1): Add parameter.
5099 * lra-lives.c (make_hard_regno_born, make_hard_regno_dead):
5100 Process unallocatable hard regs too.
5101 (process_bb_lives): Ditto.
5102 * lra-spills.c (remove_pseudos): Add argument to
5103 lra_eliminate_regs_1 call.
5104 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter. Use it
5105 for sp offset calculation.
5106 (lra_eliminate_regs): Add argument for lra_eliminate_regs_1 call.
5107 (eliminate_regs_in_insn): Add parameter. Use it for sp offset
5108 calculation.
5109 (process_insn_for_elimination): Add argument for
5110 eliminate_regs_in_insn call.
5111 * lra-constraints.c (get_equiv_with_elimination): Add argument
5112 for lra_eliminate_regs_1 call.
5113 (process_addr_reg): Add parameter. Use it.
5114 (process_address_1): Ditto. Add argument for process_addr_reg
5115 call.
5116 (process_address): Ditto.
5117 (curr_insn_transform): Add parameter. Use it. Add argument for
5118 process_address calls.
5119 (lra_constrain_insn): New function.
5120 (lra_constraints): Add argument for curr_insn_transform call.
5121
5122 2014-11-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
5123
5124 * opts-global.c (postpone_unknown_option_warning): Fix spelling.
5125 (print_ignored_options): Fix quoting.
5126 * opts.c (common_handle_option): Likewise.
5127 (set_debug_level): Likewise.
5128 * toplev.c (process_options): Likewise.
5129
5130 2014-11-12 Jakub Jelinek <jakub@redhat.com>
5131
5132 PR ipa/63838
5133 * ipa-pure-const.c (propagate_nothrow): Walk w->indirect_calls
5134 chain instead of node->indirect_calls. Put !can_throw into
5135 conditions of all the loops.
5136
5137 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
5138
5139 * config/i386/i386.c (x86_output_mi_thunk): Use gen_rtx_REG to
5140 set pic_offset_table_rtx.
5141
5142 2014-11-12 Matthew Fortune <matthew.fortune@imgtec.com>
5143
5144 * common/config/mips/mips-common.c (mips_handle_option): Ensure
5145 that -mfp32, -mfp64 disable -mfpxx and -mfpxx disables -mfp64.
5146 * config.gcc (--with-fp-32): New option.
5147 (--with-odd-spreg-32): Likewise.
5148 * config.in (HAVE_AS_DOT_MODULE): New config define.
5149 * config/mips/mips-protos.h
5150 (mips_secondary_memory_needed): New prototype.
5151 (mips_hard_regno_caller_save_mode): Likewise.
5152 * config/mips/mips.c (mips_get_reg_raw_mode): New static prototype.
5153 (mips_get_arg_info): Assert that V2SFmode is only handled specially
5154 with TARGET_PAIRED_SINGLE_FLOAT.
5155 (mips_return_mode_in_fpr_p): Likewise.
5156 (mips16_call_stub_mode_suffix): Likewise.
5157 (mips_get_reg_raw_mode): New static function.
5158 (mips_return_fpr_pair): O32 return values span two registers.
5159 (mips16_build_call_stub): Likewise.
5160 (mips_function_value_regno_p): Support both FP return registers.
5161 (mips_output_64bit_xfer): Use mthc1 whenever TARGET_HAS_MXHC1. Add
5162 specific cases for TARGET_FPXX to move via memory.
5163 (mips_dwarf_register_span): For TARGET_FPXX pretend that modes larger
5164 than UNITS_PER_FPREG 'span' one register.
5165 (mips_dwarf_frame_reg_mode): New static function.
5166 (mips_file_start): Switch to using .module instead of .gnu_attribute.
5167 No longer support FP ABI 4 (-mips32r2 -mfp64), replace with FP ABI 6.
5168 Add FP ABI 5 (-mfpxx) and FP ABI 7 (-mfp64 -mno-odd-spreg).
5169 (mips_save_reg, mips_restore_reg): Always represent DFmode frame
5170 slots with two CFI directives even for O32 FP64.
5171 (mips_for_each_saved_gpr_and_fpr): Account for fixed_regs when
5172 saving/restoring callee-saved registers.
5173 (mips_hard_regno_mode_ok_p): Implement O32 FP64A extension.
5174 (mips_secondary_memory_needed): New function.
5175 (mips_option_override): ABI check for TARGET_FLOATXX. Disable
5176 odd-numbered single-precision registers when using TARGET_FLOATXX.
5177 Implement -modd-spreg and defaults.
5178 (mips_conditional_register_usage): Redefine O32 FP64 to match O32 FP32
5179 callee-saved behaviour.
5180 (mips_hard_regno_caller_save_mode): Implement.
5181 (TARGET_GET_RAW_RESULT_MODE): Define target hook.
5182 (TARGET_GET_RAW_ARG_MODE): Define target hook.
5183 (TARGET_DWARF_FRAME_REG_MODE): Define target hook.
5184 * config/mips/mips.h (TARGET_FLOAT32): New macro.
5185 (TARGET_O32_FP64A_ABI): Likewise.
5186 (TARGET_CPU_CPP_BUILTINS): TARGET_FPXX is __mips_fpr==0. Add
5187 _MIPS_SPFPSET builtin define.
5188 (MIPS_FPXX_OPTION_SPEC): New macro.
5189 (OPTION_DEFAULT_SPECS): Pass through --with-fp-32=* to -mfp and
5190 --with-odd-spreg-32=* to -m[no-]odd-spreg.
5191 (ISA_HAS_ODD_SPREG): New macro.
5192 (ISA_HAS_MXHC1): True for anything other than -mfp32.
5193 (ASM_SPEC): Pass through mfpxx, mfp64, -mno-odd-spreg and -modd-spreg.
5194 (MIN_FPRS_PER_FMT): Redefine in terms of TARGET_ODD_SPREG.
5195 (HARD_REGNO_CALLER_SAVE_MODE): Define. Implement O32 FPXX extension
5196 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
5197 (SECONDARY_MEMORY_NEEDED): Likewise.
5198 (FUNCTION_ARG_REGNO_P): Update for O32 FPXX and FP64 extensions.
5199 * config/mips/mips.md (define_attr enabled): Implement O32 FPXX and
5200 FP64A ABI extensions.
5201 (move_doubleword_fpr<mode>): Use ISA_HAS_MXHC1 instead of
5202 TARGET_FLOAT64.
5203 * config/mips/mips.opt (mfpxx): New target option.
5204 (modd-spreg): Likewise.
5205 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Infer FP ABI from arch.
5206 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise and remove
5207 fp64 sysroot.
5208 * config/mips/t-mti-elf: Remove fp64 multilib.
5209 * config/mips/t-mti-linux: Likewise.
5210 * configure.ac: Detect .module support.
5211 * configure: Regenerate.
5212 * doc/invoke.texi: Document -mfpxx, -modd-spreg, -mno-odd-spreg option.
5213 * doc/install.texi (--with-fp-32, --with-odd-spreg-32): Document new
5214 options.
5215
5216 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
5217
5218 PR target/63815
5219 * config/i386/i386.c (ix86_init_large_pic_reg): New. Extracted
5220 from ...
5221 (ix86_init_pic_reg): Here. Use ix86_init_large_pic_reg.
5222 (x86_output_mi_thunk): Set PIC register to %r11. Call
5223 ix86_init_large_pic_reg to initialize PIC register.
5224
5225 2014-11-12 Kai Tietz <ktietz@redhat.com>
5226
5227 * sdbout.c (sdbout_symbol): Eliminate register only
5228 if decl isn't a global variable.
5229
5230 2014-11-12 Alan Lawrence <alan.lawrence@arm.com>
5231
5232 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Display indices.
5233
5234 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add
5235 qualifier_lane_index.
5236 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): Rename to...
5237 (aarch64_types_quadop_lane_qualifiers, TYPES_QUADOP_LANE): ...these.
5238 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): New.
5239
5240 (aarch64_types_getlane_qualifiers): Rename to...
5241 (aarch64_types_binop_imm_qualifiers): ...this.
5242 (TYPES_SHIFTIMM): Follow renaming.
5243 (TYPES_GETLANE): Rename to...
5244 (TYPE_GETREG): ...this.
5245
5246 (aarch64_types_setlane_qualifiers): Rename to...
5247 (aarch64_type_ternop_imm_qualifiers): ...this.
5248 (TYPES_SHIFTINSERT, TYPES_SHIFTACC): Follow renaming.
5249 (TYPES_SETLANE): Follow renaming above, and rename self to...
5250 (TYPE_SETREG): ...this.
5251
5252 (enum builtin_simd_arg): Add SIMD_ARG_LANE_INDEX.
5253 (aarch64_simd_expand_args): Add range check and endianness-flip.
5254
5255 (aarch64_simd_expand_builtin): Add mapping for qualifier_lane_index.
5256
5257 * config/aarch64/aarch64-simd.md
5258 (aarch64_sq<r>dmulh_lane<mode>_internal *2): Rename to...
5259 (aarch64_sq<r>dmulh_lane<mode>): ...this, and remove lane bounds check.
5260 (aarch64_sqdmulh_lane<mode> *2, aarch64_sqrdmulh_lane<mode> *2): Delete.
5261
5262 (aarch64_sq<r>dmulh_laneq<mode>_internal): Rename to...
5263 (aarch64_sq<r>dmulh_lane<mode>): ...this.
5264
5265 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal *2): Rename to...
5266 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): ...this.
5267
5268 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal *2): Rename to...
5269 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): ...this.
5270
5271 (aarch64_sqdmull_lane<mode>_internal *2): Rename to...
5272 (aarch64_sqdmull_lane<mode>): ...this.
5273
5274 (aarch64_sqdmull_laneq<mode>_internal *2): Rename to...
5275 (aarch64_sqdmull_laneq<mode>): ...this.
5276
5277 (aarch64_sqdmulh_laneq<mode>, aarch64_sqrdmulh_laneq<mode>,
5278 (aarch64_sqdmlal_lane<mode>, aarch64_sqdmlal_laneq<mode>,
5279 aarch64_sqdmlsl_lane<mode>, aarch64_sqdmlsl_laneq<mode>,
5280 aarch64_sqdmull_lane<mode>, aarch64_sqdmull_laneq<mode>): Delete.
5281
5282 (aarch64_sqdmlal2_lane<mode>, aarch64_sqdmlal2_laneq<mode>,
5283 aarch64_sqdmlsl2_lane<mode>, aarch64_sqdmlsl2_laneq<mode>,
5284 aarch64_sqdmull2_lane<mode>, aarch64_sqdmull2_laneq<mode>): Remove
5285 bounds check and lane flip.
5286
5287 * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane,
5288 get_dregoi, get_dregci, getdregxi, get_qregoi,get_qregci, get_qregxi,
5289 set_qregoi, set_qregci, set_qregxi): Change qualifiers to GETREG.
5290
5291 (sqdmlal_lane, sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq,
5292 sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq, sqdmlsl2_laneq): Follow
5293 renaming of TERNOP_LANE to QUADOP_LANE.
5294
5295 (sqdmull_lane, sqdmull_laneq, sqdmull2_lane, sqdmull2_laneq,
5296 sqdmulh_lane, sqdmulh_laneq, sqrdmulh_lane, sqrdmulh_laneq): Set
5297 qualifiers to TERNOP_LANE.
5298
5299 2014-11-12 Tobias Burnus <burnus@net-b.de>
5300
5301 * Makefile.in (CLOOGLIBS, CLOOGINC): Remove.
5302 * configure.ac: Ditto.
5303 * graphite-interchange.c: Remove HAVE_CLOOG block.
5304 * config.in: Regenerate.
5305 * configure: Regenerate.
5306
5307 2014-11-12 Jiong Wang <jiong.wang@arm.com>
5308
5309 * config/aarch64/aarch64.h (CALL_USED_REGISTERS): Mark LR as
5310 caller-save.
5311 (EPILOGUE_USES): Guard the check by epilogue_completed.
5312 * config/aarch64/aarch64.c (aarch64_layout_frame): Explictly check for
5313 LR.
5314 (aarch64_can_eliminate): Check LR_REGNUM liveness.
5315
5316 2014-11-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5317
5318 * config/arm/arm.c (*<arith_shift_insn>_shiftsi): Fix typo.
5319
5320 2014-11-12 Marek Polacek <polacek@redhat.com>
5321
5322 * fold-const.c (fold_binary_loc): Don't fold if the result
5323 is undefined.
5324 * match.pd (A + (-B) -> A - B, A - (-B) -> A + B,
5325 -(-A) -> A): Likewise.
5326
5327 2014-11-12 Richard Biener <rguenther@suse.de>
5328
5329 Merge from match-and-simplify branch
5330 2014-11-04 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
5331
5332 * genmatch.c (user_id): Add new member is_oper_list.
5333 (user_id::user_id): Add new default argument.
5334 (parser::parse_operator_list): New function.
5335 (parser::parse_for): Allow operator-list.
5336 (parser::parse_pattern): Call parser::parse_operator_list.
5337 (parser::parse_operation): Reject operator-list.
5338 * match-builtin.pd: Define operator lists POWs, CBRTs and SQRTs.
5339
5340 2014-10-31 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
5341
5342 * genmatch.c (parser::parse_c_expr): Mark user-defined ops as used.
5343
5344 2014-10-30 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
5345
5346 * genmatch.c (parser::parse_op): Check if predicate is used in
5347 result operand.
5348
5349 2014-10-29 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
5350
5351 * genmatch.c (parser::parse_for): Make sure to have a valid
5352 token to report errors at.
5353
5354 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
5355
5356 * genmatch.c (parser): Add new member parsing_match_operand.
5357 (parser::parse_operation): Check for conditional convert in result
5358 operand.
5359 (parser::parse_expr): Check for commutative operator in result operand.
5360 Check for :type in match operand.
5361 (parser::parse_simplify): Set/unset parsing_match_operand.
5362 (parser::parser): Initialize parsing_match_operand.
5363
5364 2014-10-28 Richard Biener <rguenther@suse.de>
5365
5366 * genmatch.c (parser::parse_for): Properly check for already
5367 defined operators.
5368
5369 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
5370
5371 * genmatch.c (error_cb): Adjust for printing warnings.
5372 (warning_at): New function.
5373 (user_id): Add new member used.
5374 (get_operator): Mark user_id as used.
5375 (parse_for): Warn for unused operators.
5376
5377 2014-11-12 Richard Biener <rguenther@suse.de>
5378
5379 * match.pd: Implement simple complex operations cancelling.
5380 * fold-const.c (fold_unary_loc): Remove them here.
5381
5382 2014-11-12 Joseph Myers <joseph@codesourcery.com>
5383
5384 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
5385 Define __NO_MATH_ERRNO__ if -fno-math-errno.
5386 * doc/cpp.texi (__NO_MATH_ERRNO__): Document predefined macro.
5387
5388 2014-11-12 Richard Biener <rguenther@suse.de>
5389
5390 * genmatch.c (::gen_transform): Add capture_info and
5391 expand_compares arguments.
5392 (struct expr): Add is_generic flag.
5393 (lower_cond): New functions lowering [VEC_]COND_EXPR
5394 conditions to a GENERIC and a GIMPLE variant.
5395 (lower): Call lower_cond.
5396 (cmp_operand): Also compare the is_generic flag.
5397 (capture_info::cinfo): Add cond_expr_cond_p flag.
5398 (capture_info::capture_info): Pass down whether the
5399 expression argument is a COND_EXPR condition.
5400 (capture_info::walk_match): Likewise, mark captures
5401 capturing COND_EXPR conditions with cond_expr_cond_p.
5402 (expr::gen_transform): Pass down whether we need to
5403 expand compares from COND_EXPR conditions.
5404 (capture::gen_transform): Expand compares substituted
5405 from COND_EXPR conditions into non-COND_EXPR conditions.
5406 (dt_operand::gen_gimple_expr): Handle explicitely marked
5407 GENERIC expressions as generic.
5408 (dt_simplify::gen): Pass whether we need to expand
5409 conditions to gen_transform. Handle capture results
5410 which are from COND_EXPR conditions.
5411 (main): Pass gimple flag down to lower.
5412
5413 2014-11-12 Jakub Jelinek <jakub@redhat.com>
5414
5415 PR c/59708
5416 * builtin-attrs.def (ATTR_NOTHROW_TYPEGENERIC_LEAF): New attribute.
5417 * builtins.c (fold_builtin_arith_overflow): New function.
5418 (fold_builtin_3): Use it.
5419 * builtins.def (BUILT_IN_ADD_OVERFLOW, BUILT_IN_SUB_OVERFLOW,
5420 BUILT_IN_MUL_OVERFLOW, BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW,
5421 BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW,
5422 BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW,
5423 BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW,
5424 BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADDL_OVERFLOW,
5425 BUILT_IN_UADDLL_OVERFLOW, BUILT_IN_USUB_OVERFLOW,
5426 BUILT_IN_USUBL_OVERFLOW, BUILT_IN_USUBLL_OVERFLOW,
5427 BUILT_IN_UMUL_OVERFLOW, BUILT_IN_UMULL_OVERFLOW,
5428 BUILT_IN_UMULLL_OVERFLOW): New built-in functions.
5429 * builtin-types.def (BT_PTR_UINT, BT_PTR_ULONG, BT_PTR_LONGLONG,
5430 BT_FN_BOOL_INT_INT_INTPTR, BT_FN_BOOL_LONG_LONG_LONGPTR,
5431 BT_FN_BOOL_LONGLONG_LONGLONG_LONGLONGPTR, BT_FN_BOOL_UINT_UINT_UINTPTR,
5432 BT_FN_BOOL_ULONG_ULONG_ULONGPTR,
5433 BT_FN_BOOL_ULONGLONG_ULONGLONG_ULONGLONGPTR, BT_FN_BOOL_VAR): New.
5434 * expr.c (write_complex_part): Remove prototype, no longer static.
5435 * expr.h (write_complex_part): New prototype.
5436 * function.c (aggregate_value_p): For internal functions return 0.
5437 * gimple-fold.c (arith_overflowed_p): New functions.
5438 (gimple_fold_call): Fold {ADD,SUB,MUL}_OVERFLOW internal calls.
5439 * gimple-fold.h (arith_overflowed_p): New prototype.
5440 * tree-ssa-dce.c: Include tree-ssa-propagate.h and gimple-fold.h.
5441 (find_non_realpart_uses, maybe_optimize_arith_overflow): New
5442 functions.
5443 (eliminate_unnecessary_stmts): Transform {ADD,SUB,MUL}_OVERFLOW
5444 into COMPLEX_CST/COMPLEX_EXPR if IMAGPART_EXPR of the result is
5445 never used.
5446 * gimplify.c (gimplify_call_expr): Handle gimplification of
5447 internal calls with lhs.
5448 * internal-fn.c (get_range_pos_neg, get_min_precision,
5449 expand_arith_overflow_result_store): New functions.
5450 (ubsan_expand_si_overflow_addsub_check): Renamed to ...
5451 (expand_addsub_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
5452 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
5453 Handle ADD_OVERFLOW and SUB_OVERFLOW expansion.
5454 (ubsan_expand_si_overflow_neg_check): Renamed to ...
5455 (expand_neg_overflow): ... this. Add LOC, LHS, ARG1, IS_UBSAN
5456 arguments, remove STMT argument. Handle SUB_OVERFLOW with
5457 0 as first argument expansion.
5458 (ubsan_expand_si_overflow_mul_check): Renamed to ...
5459 (expand_mul_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
5460 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
5461 Handle MUL_OVERFLOW expansion.
5462 (expand_UBSAN_CHECK_ADD): Use expand_addsub_overflow, prepare
5463 arguments for it.
5464 (expand_UBSAN_CHECK_SUB): Use expand_addsub_overflow or
5465 expand_neg_overflow, prepare arguments for it.
5466 (expand_UBSAN_CHECK_MUL): Use expand_mul_overflow, prepare arguments
5467 for it.
5468 (expand_arith_overflow, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW,
5469 expand_MUL_OVERFLOW): New functions.
5470 * internal-fn.def (ADD_OVERFLOW, SUB_OVERFLOW, MUL_OVERFLOW): New
5471 internal functions.
5472 * tree-vrp.c (check_for_binary_op_overflow): New function.
5473 (extract_range_basic): Handle {REAL,IMAG}PART_EXPR if the operand
5474 is SSA_NAME set by {ADD,SUB,MUL}_OVERFLOW internal functions.
5475 (simplify_internal_call_using_ranges): Handle {ADD,SUB,MUL}_OVERFLOW
5476 internal functions.
5477 * optabs.def (umulv4_optab): New optab.
5478 * config/i386/i386.md (umulv<mode>4, <u>mulvqi4): New define_expands.
5479 (*umulv<mode>4, *<u>mulvqi4): New define_insns.
5480 * doc/extend.texi (Integer Overflow Builtins): Document
5481 __builtin_*_overflow.
5482
5483 2014-11-12 Richard Biener <rguenther@suse.de>
5484
5485 * genmatch.c (capture_info::capture_info): Add missing
5486 COND_EXPR handling.
5487 (capture_info::walk_match): Fix COND_EXPR handling.
5488 (capture_info::walk_result): Likewise.
5489
5490 2014-11-12 Richard Biener <rguenther@suse.de>
5491
5492 PR middle-end/63821
5493 * match.pd: Add missing conversion to the -(T)-X pattern.
5494
5495 2014-11-12 Richard Biener <rguenther@suse.de>
5496
5497 PR bootstrap/63819
5498 * hash-table.h: Include ggc.h also for generator programs.
5499 * genmatch.c (ggc_internal_cleared_alloc): Properly define
5500 using MEM_STAT_DECL instead of CXX_MEM_STAT_INFO.
5501
5502 2014-11-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
5503
5504 PR tree-optimization/63761
5505 * tree-ssa-math-opts.c (bswap_replace): Construct gsi from cur_stmt
5506 rather than taking it as a parameter. Add some comments to explain the
5507 gsi_move_before in case of load and why canonicalization of bswap into
5508 a rotation is only done for 16bit values.
5509 (pass_optimize_bswap::execute): Adapt for loop via gsi to make gsi
5510 refer to the statement just before cur_stmt. Ignore 16bit bswap that
5511 are already in canonical form. Adapt bswap_replace to removal of its
5512 gsi parameter.
5513
5514 2014-11-12 Richard Sandiford <richard.sandiford@arm.com>
5515
5516 * rtl.h (rtx_function, for_each_rtx, for_each_rtx_in_insn): Delete.
5517 * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1, for_each_rtx):
5518 (for_each_rtx_in_insn): Delete.
5519 (init_rtlanal): Remove initialization of non_rtx_starting_operands.
5520 * df-core.c: Remove reference to for_each_rtx in comment.
5521
5522 2014-11-12 Tejas Belagod <tejas.belagod@arm.com>
5523
5524 * Makefile.in (TEXI_GCC_FILES): Remove arm-acle-intrinsics.texi,
5525 arm-neon-intrinsics.texi, aarch64-acle-intrinsics.texi.
5526 * doc/aarch64-acle-intrinsics.texi: Remove.
5527 * doc/arm-acle-intrinsics.texi: Remove.
5528 * doc/arm-neon-intrinsics.texi: Remove.
5529 * doc/extend.texi: Consolidate sections AArch64 intrinsics,
5530 ARM NEON Intrinsics, ARM ACLE Intrinsics into one ARM C Language
5531 Extension section. Add references to public ACLE specification.
5532
5533 2014-11-11 Patrick Palka <ppalka@gcc.gnu.org>
5534
5535 * tree-vrp.c (register_edge_assert_for_2): Change return type to
5536 void and adjust accordingly.
5537 (register_edge_assert_for_1): Likewise.
5538 (register_edge_assert_for): Likewise.
5539 (find_conditional_asserts): Likewise.
5540 (find_switch_asserts): Likewise.
5541 (find_assert_locations_1): Likewise.
5542 (find_assert_locations): Likewise.
5543 (insert_range_insertions): Inspect the need_assert_for bitmap.
5544
5545 2014-11-11 Andrew Pinski <apinski@cavium.com>
5546
5547 Bug target/61997
5548 * config.gcc (aarch64*-*-*): Set target_gtfiles to include
5549 aarch64-builtins.c.
5550 * config/aarch64/aarch64-builtins.c: Include gt-aarch64-builtins.h
5551 at the end of the file.
5552
5553 2014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
5554 Manuel López-Ibáñez <manu@gcc.gnu.org>
5555
5556 PR driver/36312
5557 * diagnostic-core.h: Add prototype for fatal_error.
5558 * diagnostic.c (fatal_error): New function fatal_error.
5559 * gcc.c (store_arg): Remove have_o_argbuf_index.
5560 (process_command): Check if input and output files are the same.
5561 * toplev.c (init_asm_output): Check if input and output files are
5562 the same.
5563
5564 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
5565
5566 * reorg.c (fill_slots_from_thread): Do not copy frame-related insns.
5567
5568 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
5569
5570 PR target/61535
5571 * config/sparc/sparc.c (function_arg_vector_value): Deal with vectors
5572 smaller than 8 bytes.
5573 (sparc_function_arg_1): Tweak.
5574 (sparc_function_value_1): Tweak.
5575
5576 2014-11-11 David Malcolm <dmalcolm@redhat.com>
5577
5578 * ChangeLog.jit: New.
5579 * Makefile.in (doc_build_sys): New variable, set to "sphinx" if
5580 sphinx is installed, falling back to "texinfo" otherwise.
5581 (FULL_DRIVER_NAME): New variable, adapted from the
5582 install-driver target. New target, a symlink within the builddir,
5583 linked to "xgcc", for use when running the JIT library from the
5584 builddir.
5585 (MOSTLYCLEANFILES): Add FULL_DRIVER_NAME.
5586 (install-driver): Use $(FULL_DRIVER_NAME) rather than spelling it
5587 out.
5588 * configure.ac (doc_build_sys): New variable, set to "sphinx" if
5589 sphinx is installed, falling back to "texinfo" otherwise.
5590 (GCC_DRIVER_NAME): Generate a gcc-driver-name.h file containing
5591 GCC_DRIVER_NAME for the benefit of jit/internal-api.c.
5592 * configure: Regenerate.
5593 * doc/install.texi (--enable-host-shared): Specify that this is
5594 required when building libgccjit.
5595 (Tools/packages necessary for modifying GCC): Add Sphinx.
5596 * timevar.def (TV_JIT_REPLAY): New.
5597 (TV_ASSEMBLE): New.
5598 (TV_LINK): New.
5599 (TV_LOAD): New.
5600
5601 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5602
5603 PR target/63610
5604 * configure: Regenerate.
5605
5606 2014-11-11 James Greenhalgh <james.greenhalgh@arm.com>
5607
5608 * config/aarch64/aarch64-simd.md
5609 (aarch64_simd_bsl<mode>_internal): Remove float cases, canonicalize.
5610 (aarch64_simd_bsl<mode>): Add gen_lowpart expressions where we
5611 are punning between float vectors and integer vectors.
5612
5613 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
5614
5615 * config/alpha/alpha.c (alpha_emit_conditional_branch): Replace
5616 open-coded swap with std::swap to swap values.
5617 (alpha_emit_setcc): Ditto.
5618 (alpha_emit_conditional_move): Ditto.
5619 (alpha_split_tmode_pair): Ditto.
5620
5621 2014-11-11 Evgeny Stupachenko <evstupac@gmail.com>
5622
5623 * tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
5624 permutations on power of 2 cases.
5625
5626 2014-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5627
5628 * config/aarch64/aarch64.h (MACHMODE): Remove 'enum' keyword.
5629 (CUMULATIVE_ARGS): Guard on !defined(USED_FOR_TARGET).
5630
5631 2014-11-11 Richard Biener <rguenther@suse.de>
5632
5633 * tree-core.h (pedantic_lvalues): Remove.
5634 * fold-const.c (pedantic_lvalues): Likewise.
5635 (pedantic_non_lvalue_loc): Remove conditional non_lvalue_loc call.
5636
5637 2014-11-11 Martin Liska <mliska@suse.cz>
5638
5639 PR ipa/63622
5640 PR ipa/63795
5641 * ipa-icf.c (sem_function::merge): Add new target symbol alias
5642 support guard.
5643 (sem_variable::merge): Likewise.
5644 * ipa-icf.h (target_supports_symbol_aliases_p): New function.
5645
5646 2014-11-11 Richard Biener <rguenther@suse.de>
5647
5648 * match.pd: Implement patterns from associate_plusminus
5649 and factor in differences from the fold-const.c implementation.
5650 * fold-const.c (fold_binary_loc): Remove patterns here.
5651 * tree-ssa-forwprop.c (associate_plusminus): Remove.
5652 (pass_forwprop::execute): Don't call it.
5653 * tree.c (tree_nop_conversion_p): New function, factored
5654 from tree_nop_conversion.
5655 * tree.h (tree_nop_conversion_p): Declare.
5656
5657 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
5658
5659 * system.h: Include algorithm and utility.
5660 * rtl.h: Do not include utility here.
5661 * wide-int.h: Ditto.
5662 * tree-vect-data-refs.c (swap): Remove template.
5663 (vect_prune_runtime_alias_test_list): Use std::swap instead of swap.
5664
5665 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5666
5667 PR bootstrap/63699
5668 PR bootstrap/63750
5669 * system.h: Include <string> before "safe-ctype.h"
5670 * wide-int.h (wi::smin, wi::smax, wi::umin, wi::umax): Prefix
5671 calls to min/max with wi namespace.
5672 * ipa-chkp.c: Don't include <string>.
5673
5674 2014-11-11 Terry Guo <terry.guo@arm.com>
5675
5676 * doc/invoke.texi (-masm-syntax-unified): Reword and fix typo.
5677 * config/arm/thumb1.md (*thumb_mulsi3): Use movs to move low
5678 registers.
5679 (*thumb1_movhf): Likewise.
5680
5681 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
5682
5683 * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)
5684 instead of INT64_MAX.
5685
5686 2014-11-11 Tobias Burnus <burnus@net-b.de>
5687
5688 * doc/install.texi (Prerequisites): Remove CLooG.
5689
5690 2014-11-10 Trevor Saunders <tsaunders@mozilla.com>
5691
5692 * ipa-inline.c (edge_badness): Adjust.
5693 (inline_small_functions): Likewise.
5694 * predict.c (propagate_freq): Likewise.
5695 (estimate_bb_frequencies): Likewise.
5696 * sreal.c (sreal::dump): Rename from dump_sreal.
5697 (debug): Adjust.
5698 (copy): Remove function.
5699 (sreal::shift_right): Rename from sreal_sift_right.
5700 (sreal::normalize): Rename from normalize.
5701 (sreal_init): Remove function.
5702 (sreal::to_int): Rename from sreal_to_int.
5703 (sreal_compare): Remove function.
5704 (sreal::operator+): Rename from sreal_add.
5705 (sreal::operator-): Rename from sreal_sub.
5706 (sreal::operator*): Rename from sreal_mul.
5707 (sreal::operator/): Rename from sreal_div.
5708 * sreal.h (class sreal): Adjust.
5709 (inline sreal &operator+=): New operator.
5710 (inline sreal &operator-=): Likewise.
5711 (inline sreal &operator/=): Likewise.
5712 (inline sreal &operator*=): Likewise.
5713 (inline bool operator!=): Likewise.
5714 (inline bool operator>): Likewise.
5715 (inline bool operator<=): Likewise.
5716 (inline bool operator>=): Likewise.
5717
5718 2014-11-11 Bin Cheng <bin.cheng@arm.com>
5719
5720 * sched-deps.c (sched_analyze_1): Check pending list if it is not
5721 less than MAX_PENDING_LIST_LENGTH.
5722 (sched_analyze_2, sched_analyze_insn, deps_analyze_insn): Ditto.
5723
5724 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
5725
5726 * config/i386/i386.c (ix86_decompose_address): Replace open-coded
5727 swap with std::swap to swap values.
5728 (ix86_fixup_binary_operands): Ditto.
5729 (ix86_binary_operator_ok): Ditto.
5730 (ix86_prepare_fp_compare_args): Ditto.
5731 (ix86_expand_branch): Ditto.
5732 (ix86_expand_carry_flag_compare): Ditto.
5733 (ix86_expand_int_movcc): Ditto.
5734 (ix86_prepare_sse_fp_compare_args): Ditto.
5735 (ix86_expand_sse_fp_minmax): Ditto.
5736 (ix86_expand_int_vcond): Ditto.
5737 (ix86_split_long_move): Ditto.
5738 (ix86_expand_sse_comi): Ditto.
5739 (ix86_expand_sse_compare_and_jump): Ditto.
5740 (ix86_expand_sse_compare_mask): Ditto.
5741 * config/i386/i386.md (*add<mode>_1): Ditto.
5742 (addsi_1_zext): Ditto.
5743 (*addhi_1): Ditto.
5744 (*addqi_1): Ditto.
5745 (*add<mode>_2): Ditto.
5746 (*addsi_2_zext): Ditto.
5747 (*add<mode>_3): Ditto.
5748 (*addsi_3_zext): Ditto.
5749 (*add<mode>_5): Ditto.
5750 (absneg splitter): Ditto.
5751
5752 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
5753
5754 Revert:
5755 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
5756
5757 PR target/63620
5758 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
5759 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
5760 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
5761 be reloaded through memory.
5762 (*pushxf): Ditto.
5763 (*pushdf): Ditto.
5764
5765 2014-11-11 Jakub Jelinek <jakub@redhat.com>
5766 Martin Liska <mliska@suse.cz>
5767
5768 * ipa-icf-gimple.c (func_checker::compare_bb): Fix comment typo.
5769 (func_checker::compare_gimple_call): Compare gimple_call_fn,
5770 gimple_call_chain, gimple_call_fntype and call flags.
5771
5772 2014-11-10 Vladimir Makarov <vmakarov@redhat.com>
5773
5774 PR rtl-optimization/63620
5775 PR rtl-optimization/63799
5776 * lra-lives.c (process_bb_lives): Do not delete EH_REGION, trapped
5777 and setting PIC pseudo insns.
5778 (lra_create_live_ranges): Fix the typo.
5779
5780 2014-11-10 Patrick Palka <ppalka@gcc.gnu.org>
5781
5782 PR middle-end/63748
5783 * tree-ssa-propagate.c (may_propagate_copy): Allow propagating
5784 SSA copies whose source and destination names both occur in
5785 abnormal PHIs.
5786
5787 2014-11-10 Roman Gareev <gareevroman@gmail.com>
5788
5789 * Makefile.in: Remove the compilation of graphite-clast-to-gimple.o.
5790 * common.opt: Remove using of fgraphite-code-generator flag.
5791 * flag-types.h: Likewise.
5792 * graphite.c: Remove using of CLooG.
5793 * graphite-blocking.c: Likewise.
5794 * graphite-dependences.c: Likewise.
5795 * graphite-poly.c: Likewise.
5796 * graphite-poly.h: Likewise.
5797 * graphite-scop-detection.c: Likewise.
5798 * graphite-sese-to-poly.c: Likewise.
5799 * graphite-clast-to-gimple.c: Removed.
5800 * graphite-clast-to-gimple.h: Likewise.
5801 * graphite-htab.h: Likewise.
5802
5803 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
5804
5805 * doc/invoke.texi ([-Wshift-count-negative, -Wshift-count-overflow]):
5806 Add.
5807
5808 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
5809
5810 * config/frv/frv.c (frv_io_handle_use_1): Delete.
5811 (frv_io_handle_use): Use find_all_hard_regs.
5812
5813 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
5814
5815 * config/frv/frv.c (frv_registers_conflict_p_1): Take an rtx rather
5816 than an rtx *. Take the regstate_t directly rather than via a void *.
5817 Return a bool rather than an int. Iterate over all subrtxes here.
5818 (frv_registers_conflict_p): Update accordingly.
5819
5820 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
5821
5822 * config/frv/frv.c: Include rtl-iter.h.
5823 (frv_acc_group_1): Delete.
5824 (frv_acc_group): Use FOR_EACH_SUBRTX.
5825
5826 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
5827
5828 * config/frv/frv.c: Move include of rtl.h after hard-reg-set.h.
5829 (frv_clear_registers_used): Delete.
5830 (frv_ifcvt_modify_tests): Use find_all_hard_regs.
5831
5832 2014-11-10 Jan Hubicka <hubicka@ucw.cz>
5833
5834 PR bootstrap/63573
5835 * calls.c (initialize_argument_information): When emitting thunk call
5836 use original memory placement of the argument.
5837
5838 2014-11-10 Renlin Li <renlin.li@arm.com>
5839
5840 PR middle-end/61529
5841 * tree-ssa-threadupdate.c (compute_path_counts): Bound path_in_freq.
5842
5843 2014-11-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
5844
5845 * expmed.c (expand_shift_1): Expand 8 bit rotate of 16 bit value to
5846 bswaphi if available.
5847
5848 2014-11-10 Bernd Schmidt <bernds@codesourcery.com>
5849
5850 * config/nvptx/nvptx.c: New file.
5851 * config/nvptx/nvptx.h: New file.
5852 * config/nvptx/nvptx-protos.h: New file.
5853 * config/nvptx/nvptx.md: New file.
5854 * config/nvptx/t-nvptx: New file.
5855 * config/nvptx/nvptx.opt: New file.
5856 * common/config/nvptx/nvptx-common.c: New file.
5857 * config.gcc: Handle nvptx-*-*.
5858
5859 2014-11-10 Richard Biener <rguenther@suse.de>
5860
5861 * tree-ssa-operands.c (finalize_ssa_uses): Properly put
5862 released operands on the free list.
5863
5864 2014-11-10 Richard Biener <rguenther@suse.de>
5865
5866 * match.pd: Implement pattern from simplify_mult.
5867 * tree-ssa-forwprop.c (simplify_mult): Remove.
5868 (pass_forwprop::execute): Do not call simplify_mult.
5869
5870 2014-11-10 Richard Biener <rguenther@suse.de>
5871
5872 PR tree-optimization/63800
5873 * tree-ssa-pre.c (eliminate_push_avail): Push in a way so
5874 we can restore the previous availability in after_dom_children.
5875 (eliminate_dom_walker::after_dom_children): Restore
5876 previous availability.
5877
5878 2014-11-10 Richard Biener <rguenther@suse.de>
5879
5880 PR middle-end/63798
5881 * expr.c (expand_expr_real_2): When expanding FMA_EXPRs
5882 properly treat the embedded multiplication as commutative
5883 when looking for feeding negates.
5884
5885 2014-11-10 Joern Rennecke <joern.rennecke@embecosm.com>
5886
5887 * config/avr/avr.h (CPLUSPLUS_CPP_SPEC): Define.
5888
5889 2014-11-10 Martin Liska <mliska@suse.cz>
5890
5891 * gcc.dg/tree-ssa/ldist-19.c: ICF is disabled
5892 for the test because of default char signedness
5893 on powerpc64 target.
5894
5895 2014-11-10 Richard Biener <rguenther@suse.de>
5896
5897 * match.pd: Implement pattern from simplify_conversion_from_bitmask.
5898 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): Remove.
5899 (pass_forwprop::execute): Do not call simplify_conversion_from_bitmask.
5900
5901 2014-11-10 Richard Biener <rguenther@suse.de>
5902
5903 * match.pd: Move rest of the conversion combining patterns
5904 from tree-ssa-forwprop.c.
5905 * tree-ssa-forwprop.c (combine_conversions): Remove.
5906 (pass_forwprop::execute): Do not call it.
5907
5908 2014-11-10 Eric Botcazou <ebotcazou@adacore.com>
5909
5910 * gimple-low.c (lower_function_body): Clear the location of the first
5911 inserted representative return if it also fills in for the fallthru.
5912
5913 2014-11-10 Yuri Rumyantsev <ysrumyan@gmail.com>
5914
5915 * tree-if-conv.c (add_to_predicate_list): Check unconditionally
5916 that bb is always executed to early exit. Use predicate of
5917 cd-equivalent block for join blocks if it exists.
5918 (if_convertible_loop_p_1): Recompute POST_DOMINATOR tree.
5919 (tree_if_conversion): Free post-dominance information.
5920
5921 2014-11-09 Jason Merrill <jason@redhat.com>
5922
5923 * config/i386/avx512vldqintrin.h (_mm256_broadcast_f32x2): __mmask8.
5924 * config/i386/avx512vlintrin.h (_mm256_mask_cvtepi32_storeu_epi16)
5925 (_mm_mask_cvtusepi32_storeu_epi16)
5926 (_mm_mask_cvtsepi64_storeu_epi32): Return void.
5927
5928 2014-11-09 Joern Rennecke <joern.rennecke@embecosm.com>
5929
5930 * config/avr/predicates.md (low_io_address_operand): Fix typo.
5931
5932 2014-11-09 Vladimir Makarov <vmakarov@redhat.com>
5933
5934 PR rtl-optimization/63620
5935 * lra-constraints.c (substitute_pseudo): Add prefix lra_ to the
5936 name. Move to lra.c. Make it external.
5937 (substitute_pseudo_within_insn): Ditto.
5938 (inherit_reload_reg, split_reg, remove_inheritance_pseudos): Use
5939 the new names.
5940 (undo_optional_reloads): Ditto.
5941 * lra-int.h (lra_dump_bitmap_with_title, lra_substitute_pseudo):
5942 New prototypes.
5943 (lra_substitute_pseudo_within_insn): Ditto.
5944 * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): New.
5945 (mark_regno_live): Add parameter. Update bb_gen_pseudos.
5946 (mark_regno_dead): Add parameter. Update bb_gen_pseudos and
5947 bb_killed_pseudos.
5948 (struct bb_data, bb_data_t, bb_data): New.
5949 (get_bb_data, get_bb_data_by_index): Ditto.
5950 (all_hard_regs_bitmap): New.
5951 (live_trans_fun, live_con_fun_0, live_con_fun_n, all_blocks): New.
5952 (initiate_live_solver, finish_live_solver): New.
5953 (process_bb_lives): Change return type. Add code updating local
5954 live data and removing dead insns. Pass new argument to
5955 mark_regno_live and mark_regno_dead. Check changing bb pseudo
5956 life info. Return the result.
5957 (lra_create_live_ranges): Add code to do global pseudo live
5958 analysis.
5959 (lra_live_ranges_init): Call initiate_live_solver.
5960 (lra_live_ranges_finish): Call finish_live_solver.
5961 * lra.c (lra_dump_bitmap_with_title): New.
5962 (lra_substitute_pseudo, lra_substitute_pseudo_within_insn): Move
5963 from lra-constraints.c.
5964
5965 2014-11-09 Richard Biener <rguenther@suse.de>
5966
5967 * match.pd: Add patterns convering two conversions in a row
5968 from fold-const.c.
5969 * fold-const.c (fold_unary_loc): Remove them here.
5970 * tree-ssa-forwprop.c (combine_conversions): Likewise.
5971 * genmatch.c (dt_node::gen_kids): Check whether we may
5972 follow SSA use-def chains.
5973
5974 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
5975
5976 * config/aarch64/aarch64.c: Include rtl-iter.h.
5977 (aarch64_tls_operand_p_1): Delete.
5978 (aarch64_tls_operand_p): Use FOR_EACH_SUBRTX.
5979
5980 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
5981
5982 * config/arm/arm.c (arm_note_pic_base): Delete.
5983 (arm_cannot_copy_insn_p): Use FOR_EACH_SUBRTX.
5984
5985 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
5986
5987 * config/arm/arm.c: Include rtl-iter.h.
5988 (arm_tls_referenced_p_1): Delete.
5989 (arm_tls_referenced_p): Use FOR_EACH_SUBRTX.
5990
5991 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
5992
5993 * config/arm/aarch-common.c: Include rtl-iter.h.
5994 (search_term, arm_find_sub_rtx_with_search_term): Delete.
5995 (arm_find_sub_rtx_with_code): Use FOR_EACH_SUBRTX_VAR.
5996 (arm_get_set_operands): Pass the insn pattern rather than the
5997 insn itself.
5998 (arm_no_early_store_addr_dep): Likewise.
5999
6000 2014-11-08 Eric Botcazou <ebotcazou@adacore.com>
6001
6002 * config/arm/arm.c (arm_set_return_address): Mark the store as frame
6003 related, if any.
6004 (thumb_set_return_address): Likewise.
6005
6006 2014-11-07 Jeff Law <law@redhat.com>
6007
6008 PR tree-optimization/61515
6009 * tree-ssa-threadedge.c (invalidate_equivalences): Walk the unwinding
6010 stack rather than looking at every SSA_NAME's value.
6011
6012 2014-11-07 Richard Biener <rguenther@suse.de>
6013
6014 PR tree-optimization/63605
6015 * fold-const.c (fold_binary_loc): Properly use element_precision
6016 for types that may not be scalar.
6017
6018 2014-11-07 Evgeny Stupachenko <evstupac@gmail.com>
6019
6020 PR target/63534
6021 * config/i386/i386.md (builtin_setjmp_receiver): Use
6022 pic_offset_table_rtx for PIC register.
6023 (nonlocal_goto_receiver): Delete.
6024
6025 2014-11-07 Daniel Hellstrom <daniel@gaisler.com>
6026
6027 * config.gcc (sparc-*-rtems*): Clean away unused t-elf.
6028 * config/sparc/t-rtems: Add leon3v7 and muser-mode multilibs.
6029
6030 2014-11-07 Martin Liska <mliska@suse.cz>
6031
6032 PR ipa/63580
6033 * cgraphunit.c (cgraph_node::create_wrapper):
6034 TREE_ADDRESSABLE is set to false for a newly created thunk.
6035
6036 2014-11-07 Martin Liska <mliska@suse.cz>
6037
6038 PR ipa/63747
6039 * ipa-icf-gimple.c (func_checker::compare_gimple_switch):
6040 Missing checking for CASE_LOW and CASE_HIGH added.
6041
6042 2014-11-07 Martin Liska <mliska@suse.cz>
6043
6044 PR ipa/63595
6045 * cgraphunit.c (cgraph_node::expand_thunk): DECL_BY_REFERENCE
6046 is correctly handled for thunks created by IPA ICF.
6047
6048 2014-11-07 Jiong Wang <jiong.wang@arm.com>
6049 2014-11-07 Richard Biener <rguenther@suse.de>
6050
6051 PR tree-optimization/63676
6052 * gimple-fold.c (fold_gimple_assign): Do not fold node when
6053 TREE_CLOBBER_P be true.
6054
6055 2014-11-07 Richard Biener <rguenther@suse.de>
6056
6057 PR middle-end/63770
6058 * match.pd: Guard conflicting GENERIC pattern properly.
6059
6060 2014-11-07 Richard Biener <rguenther@suse.de>
6061
6062 * match.pd: Add patterns for POINTER_PLUS_EXPR association
6063 and special patterns from tree-ssa-forwprop.c
6064 * fold-const.c (fold_binary_loc): Remove them here.
6065 * tree-ssa-forwprop.c (to_purge): New global bitmap.
6066 (fwprop_set_lattice_val): New function.
6067 (fwprop_invalidate_lattice): Likewise.
6068 (remove_prop_source_from_use): Instead of purging dead EH
6069 edges record blocks to do that in to_purge.
6070 (tidy_after_forward_propagate_addr): Likewise.
6071 (forward_propagate_addr_expr): Invalidate the lattice for
6072 SSA names we release.
6073 (simplify_conversion_from_bitmask): Likewise.
6074 (simplify_builtin_call): Likewise.
6075 (associate_pointerplus_align): Remove.
6076 (associate_pointerplus_diff): Likewise.
6077 (associate_pointerplus): Likewise.
6078 (fold_all_stmts): Merge with ...
6079 (pass_forwprop::execute): ... the original loop over all
6080 basic-blocks. Delay purging dead EH edges and invalidate
6081 the lattice for SSA names we release.
6082
6083 2014-11-07 Terry Guo <terry.guo@arm.com>
6084
6085 * config/arm/arm.opt (masm-syntax-unified): New option.
6086 * doc/invoke.texi (-masm-syntax-unified): Document new option.
6087 * config/arm/arm.h (TARGET_UNIFIED_ASM): Also include thumb1.
6088 (ASM_APP_ON): Redefined.
6089 * config/arm/arm.c (arm_option_override): Thumb2 inline assembly
6090 code always use UAL syntax.
6091 (arm_output_mi_thunk): Use UAL syntax for Thumb1 target.
6092 * config/arm/thumb1.md: Likewise.
6093
6094 2014-11-06 John David Anglin <danglin@gcc.gnu.org>
6095
6096 * config/pa/pa.md (trap): New insn. Add "trap" to attribute type.
6097 Don't allow trap insn in in_branch_delay, in_nullified_branch_delay
6098 or in_call_delay.
6099
6100 2014-11-06 Steve Ellcey <sellcey@imgtec.com>
6101
6102 * config.gcc (mips*-mti-linux*): Remove gnu_ld and gas assignments.
6103 Set default_mips_arch and default_mips_abi instead of tm_defines.
6104 (mips*-*-linux*): Set default_mips_arch and default_mips_abi instead
6105 of tm_defines.
6106 (mips*-*-*): Check with_arch and with_abi. Set tm_defines.
6107 * config/mips/mips.h (STANDARD_STARTFILE_PREFIX_1): Set default
6108 based on MIPS_ABI_DEFAULT.
6109 (STANDARD_STARTFILE_PREFIX_2): Ditto.
6110
6111 2014-11-06 Joseph Myers <joseph@codesourcery.com>
6112
6113 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to corner
6114 cases of extended identifiers.
6115
6116 2014-11-06 Eric Botcazou <ebotcazou@adacore.com>
6117
6118 * tree-cfgcleanup.c (fixup_noreturn_call): Do not perform DCE here.
6119
6120 2014-11-06 DJ Delorie <dj@redhat.com>
6121
6122 * config/m32c/cond.md (movqicc_<code>_<mode>): Remove mode of
6123 conditional.
6124 (movhicc_<code>_<mode>): Likewise.
6125 * config/m32c/m32c.c (encode_pattern_1): Specialise PSImode
6126 subregs.
6127 (m32c_eh_return_data_regno): Change to using memregs to avoid
6128 tying up all the compute regs.
6129 (m32c_legitimate_address_p) Subregs are not valid addresses.
6130
6131 2014-11-06 Bernd Schmidt <bernds@codesourcery.com>
6132
6133 * function.c (thread_prologue_and_epilogue_insns): No longer static.
6134 * function.h (thread_prologue_and_epilogue_insns): Declare.
6135
6136 * target.def (assemble_undefined_decl): New hooks.
6137 * hooks.c (hook_void_FILEptr_constcharptr_const_tree): New function.
6138 * hooks.h (hook_void_FILEptr_constcharptr_const_tree): Declare.
6139 * doc/tm.texi.in (TARGET_ASM_ASSEMBLE_UNDEFINED_DECL): Add.
6140 * doc/tm.texi: Regenerate.
6141 * output.h (assemble_undefined_decl): Declare.
6142 (get_fnname_from_decl): Declare.
6143 * varasm.c (assemble_undefined_decl): New function.
6144 (get_fnname_from_decl): New function.
6145 * final.c (rest_of_handle_final): Use it.
6146 * varpool.c (varpool_output_variables): Call assemble_undefined_decl
6147 for nodes without a definition.
6148
6149 * target.def (call_args, end_call_args): New hooks.
6150 * hooks.c (hook_void_rtx_tree): New empty function.
6151 * hooks.h (hook_void_rtx_tree): Declare.
6152 * doc/tm.texi.in (TARGET_CALL_ARGS, TARGET_END_CALL_ARGS): Add.
6153 * doc/tm.texi: Regenerate.
6154 * calls.c (expand_call): Slightly rearrange the code. Use the two new
6155 hooks.
6156 (expand_library_call_value_1): Use the two new hooks.
6157
6158 * expr.c (use_reg_mode): Just return for pseudo registers.
6159
6160 * combine.c (try_combine): Don't allow a call as one of the source
6161 insns.
6162
6163 * target.def (decl_end): New hook.
6164 * varasm.c (assemble_variable_contents, assemble_constant_contents):
6165 Use it.
6166 * doc/tm.texi.in (TARGET_ASM_DECL_END): Add.
6167 * doc/tm.texi: Regenerate.
6168
6169 2014-11-06 Renlin Li <renlin.li@arm.com>
6170
6171 * config/aarch64/aarch64.c (aarch64_architecture_version): New.
6172 (processor): New architecture_version field.
6173 (aarch64_override_options): Initialize aarch64_architecture_version.
6174 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_ARCH,
6175 __ARM_ARCH_PROFILE, aarch64_arch_name macro.
6176
6177 2014-11-06 James Greenhalgh <james.greenhalgh@arm.com>
6178
6179 * params.def (sra-max-scalarization-size-Ospeed): New.
6180 (sra-max-scalarization-size-Osize): Likewise.
6181 * doc/invoke.texi (sra-max-scalarization-size-Ospeed): Document.
6182 (sra-max-scalarization-size-Osize): Likewise.
6183 * toplev.c (process_options): Set default values for new
6184 parameters.
6185 * tree-sra.c (analyze_all_variable_accesses): Use new parameters.
6186 * targhooks.c (get_move_ratio): Remove static designator.
6187 * target.h (get_move_ratio): Declare.
6188
6189 2014-11-06 Marek Polacek <polacek@redhat.com>
6190
6191 * sanopt.c (sanopt_optimize_walker): Limit removal of the checks.
6192 Remove vector limit.
6193
6194 2014-11-06 Richard Biener <rguenther@suse.de>
6195
6196 * match.pd: Implement bitwise binary and unary simplifications
6197 from tree-ssa-forwprop.c.
6198 * fold-const.c (fold_unary_loc): Remove them here.
6199 (fold_binary_loc): Likewise.
6200 * tree-ssa-forwprop.c (simplify_not_neg_expr): Remove.
6201 (truth_valued_ssa_name): Likewise.
6202 (lookup_logical_inverted_value): Likewise.
6203 (simplify_bitwise_binary_1): Likewise.
6204 (hoist_conversion_for_bitop_p): Likewise.
6205 (simplify_bitwise_binary_boolean): Likewise.
6206 (simplify_bitwise_binary): Likewise.
6207 (pass_forwprop::execute): Remove calls to simplify_not_neg_expr
6208 and simplify_bitwise_binary.
6209 * genmatch.c (dt_node::append_true_op): Use safe_as_a for parent.
6210 (decision_tree::insert): Also insert non-expressions.
6211
6212 2014-11-06 Hale Wang <hale.wang@arm.com>
6213
6214 * config/arm/arm-cores.def: Add support for
6215 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
6216 cortex-m1.small-multiply.
6217 * config/arm/arm-tables.opt: Regenerate.
6218 * config/arm/arm-tune.md: Regenerate.
6219 * config/arm/arm.c: Update the rtx-costs for MUL.
6220 * config/arm/bpabi.h: Handle
6221 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
6222 cortex-m1.small-multiply.
6223 * doc/invoke.texi: Document
6224 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
6225 cortex-m1.small-multiply.
6226
6227 2014-11-06 Hale Wang <hale.wang@arm.com>
6228
6229 * config/arm/arm.c: Add cortex-m7 tune.
6230 * config/arm/arm-cores.def: Use cortex-m7 tune.
6231
6232 2014-11-05 Uros Bizjak <ubizjak@gmail.com>
6233
6234 PR target/63538
6235 * config/i386/i386.c (in_large_data_p): Reject automatic variables.
6236 (ix86_encode_section_info): Do not check for non-automatic varibles
6237 when setting SYMBOL_FLAG_FAR_ADDR flag.
6238 (x86_64_elf_select_section): Do not check ix86_cmodel here.
6239 (x86_64_elf_unique_section): Ditto.
6240 (x86_elf_aligned_common): Emit tab before .largecomm.
6241
6242 2014-11-05 Joseph Myers <joseph@codesourcery.com>
6243
6244 PR preprocessor/9449
6245 * doc/cpp.texi (Character sets, Tokenization)
6246 (Implementation-defined behavior): Don't refer to UCNs in
6247 identifiers requiring -fextended-identifiers.
6248 * doc/cppopts.texi (-fextended-identifiers): Document as enabled
6249 by default for C99 and later and C++.
6250 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to extended
6251 identifiers needing -fextended-identifiers.
6252
6253 2014-11-05 Ilya Tocar <ilya.tocar@intel.com>
6254
6255 * config/i386/i386.c (expand_vec_perm_pshufb): Try vpermq/vpermd
6256 for 512-bit wide modes.
6257 (expand_vec_perm_1): Use correct versions of patterns.
6258 * config/i386/sse.md (avx512f_vec_dup<mode>_1): New.
6259 (vashr<mode>3<mask_name>): Split V8HImode and V16QImode.
6260
6261 2014-11-05 Ilya Enkovich <ilya.enkovich@intel.com>
6262
6263 * ipa-chkp.c: New.
6264 * ipa-chkp.h: New.
6265 * tree-chkp.c: New.
6266 * tree-chkp.h: New.
6267 * tree-chkp-opt.c: New.
6268 * rtl-chkp.c: New.
6269 * rtl-chkp.h: New.
6270 * Makefile.in (OBJS): Add ipa-chkp.o, rtl-chkp.o, tree-chkp.o
6271 tree-chkp-opt.o.
6272 (GTFILES): Add tree-chkp.c.
6273 * mode-classes.def (MODE_POINTER_BOUNDS): New.
6274 * tree.def (POINTER_BOUNDS_TYPE): New.
6275 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
6276 (POINTER_BOUNDS_MODE): New.
6277 (make_pointer_bounds_mode): New.
6278 * machmode.h (POINTER_BOUNDS_MODE_P): New.
6279 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
6280 (layout_type): Support POINTER_BOUNDS_TYPE.
6281 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
6282 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
6283 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
6284 (type_contains_placeholder_1): Likewise.
6285 (build_common_tree_nodes): Initialize
6286 pointer_bounds_type_node.
6287 * tree.h (POINTER_BOUNDS_TYPE_P): New.
6288 (pointer_bounds_type_node): New.
6289 (POINTER_BOUNDS_P): New.
6290 (BOUNDED_TYPE_P): New.
6291 (BOUNDED_P): New.
6292 (CALL_WITH_BOUNDS_P): New.
6293 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
6294 (gimple_call_with_bounds_p): New.
6295 (gimple_call_set_with_bounds): New.
6296 (gimple_return_retbnd): New.
6297 (gimple_return_set_retbnd): New
6298 * gimple.c (gimple_build_return): Increase number of ops
6299 for return statement.
6300 (gimple_build_call_from_tree): Propagate CALL_WITH_BOUNDS_P
6301 flag.
6302 * gimple-pretty-print.c (dump_gimple_return): Print second op.
6303 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
6304 * gimplify.c (gimplify_init_constructor): Avoid infinite
6305 loop during gimplification of bounds initializer.
6306 * calls.c: Include tree-chkp.h, rtl-chkp.h, bitmap.h.
6307 (special_function_p): Use original decl name when analyzing
6308 instrumentation clone.
6309 (arg_data): Add fields special_slot, pointer_arg and
6310 pointer_offset.
6311 (store_bounds): New.
6312 (emit_call_1): Propagate instrumentation flag for CALL.
6313 (initialize_argument_information): Compute pointer_arg,
6314 pointer_offset and special_slot for pointer bounds arguments.
6315 (finalize_must_preallocate): Preallocate when storing bounds
6316 in bounds table.
6317 (compute_argument_addresses): Skip pointer bounds.
6318 (expand_call): Store bounds into tables separately. Return
6319 result joined with resulting bounds.
6320 * cfgexpand.c: Include tree-chkp.h, rtl-chkp.h.
6321 (expand_call_stmt): Propagate bounds flag for CALL_EXPR.
6322 (expand_return): Add returned bounds arg. Handle returned bounds.
6323 (expand_gimple_stmt_1): Adjust to new expand_return signature.
6324 (gimple_expand_cfg): Reset rtx bounds map.
6325 * expr.c: Include tree-chkp.h, rtl-chkp.h.
6326 (expand_assignment): Handle returned bounds.
6327 (store_expr_with_bounds): New. Replaces store_expr with new bounds
6328 target argument. Handle bounds returned by calls.
6329 (store_expr): Now wraps store_expr_with_bounds.
6330 * expr.h (store_expr_with_bounds): New.
6331 * function.c: Include tree-chkp.h, rtl-chkp.h.
6332 (bounds_parm_data): New.
6333 (use_register_for_decl): Do not registerize decls used for bounds
6334 stores and loads.
6335 (assign_parms_augmented_arg_list): Add bounds of the result
6336 structure pointer as the second argument.
6337 (assign_parm_find_entry_rtl): Mark bounds are never passed on
6338 the stack.
6339 (assign_parm_is_stack_parm): Likewise.
6340 (assign_parm_load_bounds): New.
6341 (assign_bounds): New.
6342 (assign_parms): Load bounds and determine a location for
6343 returned bounds.
6344 (diddle_return_value_1): New.
6345 (diddle_return_value): Handle returned bounds.
6346 * function.h (rtl_data): Add field for returned bounds.
6347 * varasm.c: Include tree-chkp.h.
6348 (output_constant): Support POINTER_BOUNDS_TYPE.
6349 (output_constant_pool_2): Support MODE_POINTER_BOUNDS.
6350 (ultimate_transparent_alias_target): Move up.
6351 (make_decl_rtl): For instrumented function use
6352 name of the original decl.
6353 (assemble_start_function): Mark function as global
6354 in case it is instrumentation clone of the global
6355 function.
6356 (do_assemble_alias): Follow transparent alias chain
6357 for identifier. Check if original alias is public.
6358 (maybe_assemble_visibility): Use visibility of the
6359 original function for instrumented version.
6360 (default_unique_section): Likewise.
6361 * emit-rtl.c (immed_double_const): Support MODE_POINTER_BOUNDS.
6362 (init_emit_once): Build pointer bounds zero constants.
6363 * explow.c (trunc_int_for_mode): Support MODE_POINTER_BOUNDS.
6364 * target.def (builtin_chkp_function): New.
6365 (chkp_bound_type): New.
6366 (chkp_bound_mode): New.
6367 (chkp_make_bounds_constant): New.
6368 (chkp_initialize_bounds): New.
6369 (load_bounds_for_arg): New.
6370 (store_bounds_for_arg): New.
6371 (load_returned_bounds): New.
6372 (store_returned_bounds): New.
6373 (chkp_function_value_bounds): New.
6374 (setup_incoming_vararg_bounds): New.
6375 (function_arg): Update hook description with new possible return
6376 value CONST_INT.
6377 * targhooks.h (default_load_bounds_for_arg): New.
6378 (default_store_bounds_for_arg): New.
6379 (default_load_returned_bounds): New.
6380 (default_store_returned_bounds): New.
6381 (default_chkp_bound_type): New.
6382 (default_chkp_bound_mode): New.
6383 (default_builtin_chkp_function): New.
6384 (default_chkp_function_value_bounds): New.
6385 (default_chkp_make_bounds_constant): New.
6386 (default_chkp_initialize_bounds): New.
6387 (default_setup_incoming_vararg_bounds): New.
6388 * targhooks.c (default_load_bounds_for_arg): New.
6389 (default_store_bounds_for_arg): New.
6390 (default_load_returned_bounds): New.
6391 (default_store_returned_bounds): New.
6392 (default_chkp_bound_type): New.
6393 (default_chkp_bound_mode); New.
6394 (default_builtin_chkp_function): New.
6395 (default_chkp_function_value_bounds): New.
6396 (default_chkp_make_bounds_constant): New.
6397 (default_chkp_initialize_bounds): New.
6398 (default_setup_incoming_vararg_bounds): New.
6399 * builtin-types.def (BT_BND): New.
6400 (BT_FN_PTR_CONST_PTR): New.
6401 (BT_FN_CONST_PTR_CONST_PTR): New.
6402 (BT_FN_BND_CONST_PTR): New.
6403 (BT_FN_CONST_PTR_BND): New.
6404 (BT_FN_PTR_CONST_PTR_SIZE): New.
6405 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
6406 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
6407 (BT_FN_VOID_CONST_PTR_SIZE): New.
6408 (BT_FN_VOID_PTR_BND): New.
6409 (BT_FN_CONST_PTR_CONST_PTR_CONST_PTR): New.
6410 (BT_FN_BND_CONST_PTR_SIZE): New.
6411 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
6412 (BT_FN_VOID_CONST_PTR_BND_CONST_PTR): New.
6413 * chkp-builtins.def: New.
6414 * builtins.def: include chkp-builtins.def.
6415 (DEF_CHKP_BUILTIN): New.
6416 * builtins.c: Include tree-chkp.h and rtl-chkp.h.
6417 (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
6418 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
6419 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
6420 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
6421 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
6422 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
6423 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
6424 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
6425 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_NARROW,
6426 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
6427 (std_expand_builtin_va_start): Init bounds for va_list.
6428 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add
6429 __CHKP__ macro when Pointer Bounds Checker is on.
6430 * params.def (PARAM_CHKP_MAX_CTOR_SIZE): New.
6431 * passes.def (pass_ipa_chkp_versioning): New.
6432 (pass_early_local_passes): Renamed to pass_build_ssa_passes.
6433 (pass_fixup_cfg): Moved to pass_chkp_instrumentation_passes.
6434 (pass_chkp_instrumentation_passes): New.
6435 (pass_ipa_chkp_produce_thunks): New.
6436 (pass_local_optimization_passes): New.
6437 (pass_chkp_opt): New.
6438 * tree-pass.h (make_pass_ipa_chkp_versioning): New.
6439 (make_pass_ipa_chkp_produce_thunks): New.
6440 (make_pass_chkp): New.
6441 (make_pass_chkp_opt): New.
6442 (make_pass_early_local_passes): Renamed to ...
6443 (make_pass_build_ssa_passes): This.
6444 (make_pass_chkp_instrumentation_passes): New.
6445 (make_pass_local_optimization_passes): New.
6446 * passes.c (pass_manager::execute_early_local_passes): Execute
6447 early passes in three steps.
6448 (execute_all_early_local_passes): Renamed to ...
6449 (execute_build_ssa_passes): This.
6450 (pass_data_early_local_passes): Renamed to ...
6451 (pass_data_build_ssa_passes): This.
6452 (pass_early_local_passes): Renamed to ...
6453 (pass_build_ssa_passes): This.
6454 (pass_data_chkp_instrumentation_passes): New.
6455 (pass_chkp_instrumentation_passes): New.
6456 (pass_data_local_optimization_passes): New.
6457 (pass_local_optimization_passes): New.
6458 (make_pass_early_local_passes): Renamed to ...
6459 (make_pass_build_ssa_passes): This.
6460 (make_pass_chkp_instrumentation_passes): New.
6461 (make_pass_local_optimization_passes): New.
6462 * c-family/c.opt (fcheck-pointer-bounds): New.
6463 (fchkp-check-incomplete-type): New.
6464 (fchkp-zero-input-bounds-for-main): New.
6465 (fchkp-first-field-has-own-bounds): New.
6466 (fchkp-narrow-bounds): New.
6467 (fchkp-narrow-to-innermost-array): New.
6468 (fchkp-optimize): New.
6469 (fchkp-use-fast-string-functions): New.
6470 (fchkp-use-nochk-string-functions): New.
6471 (fchkp-use-static-bounds): New.
6472 (fchkp-use-static-const-bounds): New.
6473 (fchkp-treat-zero-dynamic-size-as-infinite): New.
6474 (fchkp-check-read): New.
6475 (fchkp-check-write): New.
6476 (fchkp-store-bounds): New.
6477 (fchkp-instrument-calls): New.
6478 (fchkp-instrument-marked-only): New.
6479 (Wchkp): New.
6480 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
6481 (handle_bnd_legacy): New.
6482 (handle_bnd_instrument): New.
6483 (c_common_attribute_table): Add bnd_variable_size, bnd_legacy
6484 and bnd_instrument. Fix documentation.
6485 (c_common_format_attribute_table): Likewsie.
6486 * toplev.c: include tree-chkp.h.
6487 (process_options): Check Pointer Bounds Checker is supported.
6488 (compile_file): Add chkp_finish_file call.
6489 * ipa-cp.c (initialize_node_lattices): Use cgraph_local_p
6490 to handle instrumentation clones properly.
6491 (propagate_constants_accross_call): Do not propagate
6492 through instrumentation thunks.
6493 * ipa-pure-const.c (propagate_pure_const): Support
6494 IPA_REF_CHKP.
6495 * ipa-inline.c (early_inliner): Check edge has summary allocated.
6496 * ipa-split.c: Include tree-chkp.h.
6497 (find_retbnd): New.
6498 (split_part_set_ssa_name_p): New.
6499 (consider_split): Do not split retbnd and retval
6500 producers.
6501 (insert_bndret_call_after): new.
6502 (split_function): Propagate Pointer Bounds Checker
6503 instrumentation marks and handle returned bounds.
6504 * tree-ssa-sccvn.h (vn_reference_op_struct): Transform opcode
6505 into bit field and add with_bounds field.
6506 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Set
6507 with_bounds field for instrumented calls.
6508 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Restore
6509 CALL_WITH_BOUNDS_P flag for calls.
6510 * tree-ssa-ccp.c: Include tree-chkp.h.
6511 (insert_clobber_before_stack_restore): Handle
6512 BUILT_IN_CHKP_BNDRET calls.
6513 * tree-ssa-dce.c: Include tree-chkp.h.
6514 (propagate_necessity): For free call fed by alloc check
6515 bounds are also provided by the same alloc.
6516 (eliminate_unnecessary_stmts): Handle BUILT_IN_CHKP_BNDRET
6517 used by free calls.
6518 * tree-inline.c: Include tree-chkp.h.
6519 (declare_return_variable): Add arg holding
6520 returned bounds slot. Create and initialize returned bounds var.
6521 (remap_gimple_stmt): Handle returned bounds.
6522 Return sequence of statements instead of a single statement.
6523 (insert_init_stmt): Add declaration.
6524 (remap_gimple_seq): Adjust to new remap_gimple_stmt signature.
6525 (copy_bb): Adjust to changed return type of remap_gimple_stmt.
6526 Properly handle bounds in va_arg_pack and va_arg_pack_len.
6527 (expand_call_inline): Handle returned bounds. Add bounds copy
6528 for generated mem to mem assignments.
6529 * tree-inline.h (copy_body_data): Add fields retbnd and
6530 assign_stmts.
6531 * value-prof.c: Include tree-chkp.h.
6532 (gimple_ic): Support returned bounds.
6533 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
6534 with "chkp ctor" and "bnd_legacy" attributes.
6535 (symtab_remove_unreachable_nodes): Keep initial values for
6536 pointer bounds to be used for checks eliminations.
6537 (process_references): Handle IPA_REF_CHKP.
6538 (walk_polymorphic_call_targets): Likewise.
6539 * ipa-visibility.c (cgraph_externally_visible_p): Mark
6540 instrumented 'main' as externally visible.
6541 (function_and_variable_visibility): Filter instrumentation
6542 thunks.
6543 * cgraph.h (cgraph_thunk_info): Add add_pointer_bounds_args
6544 field.
6545 (cgraph_node): Add instrumented_version, orig_decl and
6546 instrumentation_clone fields.
6547 (symtab_node::get_alias_target): Allow IPA_REF_CHKP reference.
6548 (varpool_node): Add need_bounds_init field.
6549 (cgraph_local_p): New.
6550 * cgraph.c: Include tree-chkp.h.
6551 (cgraph_node::remove): Fix instrumented_version
6552 of the referenced node if any.
6553 (cgraph_node::dump): Dump instrumentation_clone and
6554 instrumented_version fields.
6555 (cgraph_node::verify_node): Check correctness of IPA_REF_CHKP
6556 references and instrumentation thunks.
6557 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Keep
6558 all not instrumented instrumentation clones alive.
6559 (cgraph_redirect_edge_call_stmt_to_callee): Support
6560 returned bounds.
6561 * cgraphbuild.c (rebuild_cgraph_edges): Rebuild IPA_REF_CHKP
6562 reference.
6563 (cgraph_rebuild_references): Likewise.
6564 * cgraphunit.c: Include tree-chkp.h.
6565 (assemble_thunks_and_aliases): Skip thunks calling instrumneted
6566 function version.
6567 (varpool_finalize_decl): Register statically initialized decls
6568 in Pointer Bounds Checker.
6569 (walk_polymorphic_call_targets): Do not mark generated call to
6570 __builtin_unreachable as with_bounds.
6571 (output_weakrefs): If there are both instrumented and original
6572 versions, output only one of them.
6573 (cgraph_node::expand_thunk): Set with_bounds flag
6574 for created call statement.
6575 * ipa-ref.h (ipa_ref_use): Add IPA_REF_CHKP.
6576 (ipa_ref): increase size of use field.
6577 * symtab.c (ipa_ref_use_name): Add element for IPA_REF_CHKP.
6578 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
6579 (ctor_for_folding): Do not fold constant bounds vars.
6580 * lto-streamer.h (LTO_minor_version): Change minor version from
6581 0 to 1.
6582 * lto-cgraph.c (compute_ltrans_boundary): Keep initial values for
6583 pointer bounds.
6584 (lto_output_node): Output instrumentation_clone,
6585 thunk.add_pointer_bounds_args and orig_decl field.
6586 (lto_output_ref): Adjust to new ipa_ref::use field size.
6587 (input_overwrite_node): Read instrumentation_clone field.
6588 (input_node): Read thunk.add_pointer_bounds_args and orig_decl
6589 fields.
6590 (input_ref): Adjust to new ipa_ref::use field size.
6591 (input_cgraph_1): Compute instrumented_version fields and restore
6592 IDENTIFIER_TRANSPARENT_ALIAS chains.
6593 (lto_output_varpool_node): Output
6594 need_bounds_init value.
6595 (input_varpool_node): Read need_bounds_init value.
6596 * lto-partition.c (add_symbol_to_partition_1): Keep original
6597 and instrumented versions together.
6598 (privatize_symbol_name): Restore transparent alias chain if required.
6599 (add_references_to_partition): Add references to pointer bounds vars.
6600 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
6601 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
6602 (gen_type_die_with_usage): Skip pointer bounds.
6603 (dwarf2out_global_decl): Likewise.
6604 (is_base_type): Support POINTER_BOUNDS_TYPE.
6605 (gen_formal_types_die): Skip pointer bounds.
6606 (gen_decl_die): Likewise.
6607 * var-tracking.c (vt_add_function_parameters): Skip
6608 bounds parameters.
6609 * ipa-icf.c (sem_function::merge): Do not merge when instrumentation
6610 thunk still exists.
6611 (sem_variable::merge): Reset need_bounds_init flag.
6612 * doc/extend.texi: Document Pointer Bounds Checker built-in functions
6613 and attributes.
6614 * doc/tm.texi.in (TARGET_LOAD_BOUNDS_FOR_ARG): New.
6615 (TARGET_STORE_BOUNDS_FOR_ARG): New.
6616 (TARGET_LOAD_RETURNED_BOUNDS): New.
6617 (TARGET_STORE_RETURNED_BOUNDS): New.
6618 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
6619 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
6620 (TARGET_BUILTIN_CHKP_FUNCTION): New.
6621 (TARGET_CHKP_BOUND_TYPE): New.
6622 (TARGET_CHKP_BOUND_MODE): New.
6623 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
6624 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
6625 * doc/tm.texi: Regenerated.
6626 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
6627 (BND32mode): New.
6628 (BND64mode): New.
6629 * doc/invoke.texi (-mmpx): New.
6630 (-mno-mpx): New.
6631 (chkp-max-ctor-size): New.
6632 * config/i386/constraints.md (w): New.
6633 (Ti): New.
6634 (Tb): New.
6635 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
6636 * config/i386/i386-modes.def (BND32): New.
6637 (BND64): New.
6638 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
6639 * config/i386/i386.c: Include tree-chkp.h, rtl-chkp.h, tree-iterator.h.
6640 (regclass_map): Add bound registers.
6641 (dbx_register_map): Likewise.
6642 (dbx64_register_map): Likewise.
6643 (svr4_dbx_register_map): Likewise.
6644 (isa_opts): Add -mmpx.
6645 (PTA_MPX): New.
6646 (ix86_option_override_internal): Support MPX ISA.
6647 (ix86_conditional_register_usage): Support bound registers.
6648 (ix86_code_end): Add MPX bnd prefix.
6649 (output_set_got): Likewise.
6650 (print_reg): Avoid prefixes for bound registers.
6651 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
6652 (ix86_print_operand_punct_valid_p): Likewise.
6653 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
6654 UNSPEC_BNDLDX_ADDR.
6655 (ix86_output_call_insn): Add MPX bnd prefix to branch instructions.
6656 (ix86_class_likely_spilled_p): Add bound regs support.
6657 (ix86_hard_regno_mode_ok): Likewise.
6658 (x86_order_regs_for_local_alloc): Likewise.
6659 (ix86_bnd_prefixed_insn_p): New.
6660 (ix86_builtins): Add
6661 IX86_BUILTIN_BNDMK, IX86_BUILTIN_BNDSTX,
6662 IX86_BUILTIN_BNDLDX, IX86_BUILTIN_BNDCL,
6663 IX86_BUILTIN_BNDCU, IX86_BUILTIN_BNDRET,
6664 IX86_BUILTIN_BNDNARROW, IX86_BUILTIN_BNDINT,
6665 IX86_BUILTIN_SIZEOF, IX86_BUILTIN_BNDLOWER,
6666 IX86_BUILTIN_BNDUPPER.
6667 (builtin_isa): Add leaf_p and nothrow_p fields.
6668 (def_builtin): Initialize leaf_p and nothrow_p.
6669 (ix86_add_new_builtins): Handle leaf_p and nothrow_p
6670 flags.
6671 (bdesc_mpx): New.
6672 (bdesc_mpx_const): New.
6673 (ix86_init_mpx_builtins): New.
6674 (ix86_init_builtins): Call ix86_init_mpx_builtins.
6675 (ix86_emit_cmove): New.
6676 (ix86_emit_move_max): New.
6677 (ix86_expand_builtin): Expand IX86_BUILTIN_BNDMK,
6678 IX86_BUILTIN_BNDSTX, IX86_BUILTIN_BNDLDX,
6679 IX86_BUILTIN_BNDCL, IX86_BUILTIN_BNDCU,
6680 IX86_BUILTIN_BNDRET, IX86_BUILTIN_BNDNARROW,
6681 IX86_BUILTIN_BNDINT, IX86_BUILTIN_SIZEOF,
6682 IX86_BUILTIN_BNDLOWER, IX86_BUILTIN_BNDUPPER.
6683 (ix86_function_value_bounds): New.
6684 (ix86_builtin_mpx_function): New.
6685 (ix86_get_arg_address_for_bt): New.
6686 (ix86_load_bounds): New.
6687 (ix86_store_bounds): New.
6688 (ix86_load_returned_bounds): New.
6689 (ix86_store_returned_bounds): New.
6690 (ix86_mpx_bound_mode): New.
6691 (ix86_make_bounds_constant): New.
6692 (ix86_initialize_bounds):
6693 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
6694 (TARGET_STORE_BOUNDS_FOR_ARG): New.
6695 (TARGET_LOAD_RETURNED_BOUNDS): New.
6696 (TARGET_STORE_RETURNED_BOUNDS): New.
6697 (TARGET_CHKP_BOUND_MODE): New.
6698 (TARGET_BUILTIN_CHKP_FUNCTION): New.
6699 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
6700 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
6701 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
6702 (ix86_option_override_internal): Do not
6703 support x32 with MPX.
6704 (init_cumulative_args): Init stdarg, bnd_regno, bnds_in_bt
6705 and force_bnd_pass.
6706 (function_arg_advance_32): Return number of used integer
6707 registers.
6708 (function_arg_advance_64): Likewise.
6709 (function_arg_advance_ms_64): Likewise.
6710 (ix86_function_arg_advance): Handle pointer bounds.
6711 (ix86_function_arg): Likewise.
6712 (ix86_function_value_regno_p): Mark fisrt bounds registers as
6713 possible function value.
6714 (ix86_function_value_1): Handle pointer bounds type/mode
6715 (ix86_return_in_memory): Likewise.
6716 (ix86_print_operand): Analyse insn to decide abounf "bnd" prefix.
6717 (ix86_expand_call): Generate returned bounds.
6718 (ix86_setup_incoming_vararg_bounds): New.
6719 (ix86_va_start): Initialize bounds for pointers in va_list.
6720 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
6721 * config/i386/i386.h (TARGET_MPX): New.
6722 (TARGET_MPX_P): New.
6723 (FIRST_PSEUDO_REGISTER): Fix to new value.
6724 (FIXED_REGISTERS): Add bound registers.
6725 (CALL_USED_REGISTERS): Likewise.
6726 (REG_ALLOC_ORDER): Likewise.
6727 (HARD_REGNO_NREGS): Likewise.
6728 (VALID_BND_REG_MODE): New.
6729 (FIRST_BND_REG): New.
6730 (LAST_BND_REG): New.
6731 (reg_class): Add BND_REGS.
6732 (REG_CLASS_NAMES): Likewise.
6733 (REG_CLASS_CONTENTS): Likewise.
6734 (BND_REGNO_P): New.
6735 (ANY_BND_REG_P): New.
6736 (BNDmode): New.
6737 (HI_REGISTER_NAMES): Add bound registers.
6738 (ix86_args): Add bnd_regno, bnds_in_bt, force_bnd_pass and
6739 stdarg fields.
6740 * config/i386/i386.md (UNSPEC_BNDMK): New.
6741 (UNSPEC_BNDMK_ADDR): New.
6742 (UNSPEC_BNDSTX): New.
6743 (UNSPEC_BNDLDX): New.
6744 (UNSPEC_BNDLDX_ADDR): New.
6745 (UNSPEC_BNDCL): New.
6746 (UNSPEC_BNDCU): New.
6747 (UNSPEC_BNDCN): New.
6748 (UNSPEC_MPX_FENCE): New.
6749 (UNSPEC_SIZEOF): New.
6750 (BND0_REG): New.
6751 (BND1_REG): New.
6752 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
6753 (length_immediate): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
6754 (prefix_rep): Check for bnd prefix.
6755 (prefix_0f): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
6756 (length_nobnd): New.
6757 (length): Use length_nobnd when specified.
6758 (memory): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
6759 (BND): New.
6760 (bnd_ptr): New.
6761 (BNDCHECK): New.
6762 (bndcheck): New.
6763 (*jcc_1): Add MPX bnd prefix.
6764 (*jcc_2): Likewise.
6765 (jump): Likewise.
6766 (*indirect_jump): Likewise.
6767 (*tablejump_1): Likewise.
6768 (simple_return_internal): Likewise.
6769 (simple_return_internal_long): Likewise.
6770 (simple_return_pop_internal): Likewise.
6771 (simple_return_indirect_internal): Likewise.
6772 (<mode>_mk): New.
6773 (*<mode>_mk): New.
6774 (mov<mode>): New.
6775 (*mov<mode>_internal_mpx): New.
6776 (<mode>_<bndcheck>): New.
6777 (*<mode>_<bndcheck>): New.
6778 (<mode>_ldx): New.
6779 (*<mode>_ldx): New.
6780 (<mode>_stx): New.
6781 (*<mode>_stx): New.
6782 move_size_reloc_<mode>): New.
6783 * config/i386/predicates.md (address_mpx_no_base_operand): New.
6784 (address_mpx_no_index_operand): New.
6785 (bnd_mem_operator): New.
6786 (symbol_operand): New.
6787 (x86_64_immediate_size_operand): New.
6788 * config/i386/i386.opt (mmpx): New.
6789 * config/i386/i386-builtin-types.def (BND): New.
6790 (ULONG): New.
6791 (BND_FTYPE_PCVOID_ULONG): New.
6792 (VOID_FTYPE_BND_PCVOID): New.
6793 (VOID_FTYPE_PCVOID_PCVOID_BND): New.
6794 (BND_FTYPE_PCVOID_PCVOID): New.
6795 (BND_FTYPE_PCVOID): New.
6796 (BND_FTYPE_BND_BND): New.
6797 (PVOID_FTYPE_PVOID_PVOID_ULONG): New.
6798 (PVOID_FTYPE_PCVOID_BND_ULONG): New.
6799 (ULONG_FTYPE_VOID): New.
6800 (PVOID_FTYPE_BND): New.
6801
6802 2014-11-05 Bernd Schmidt <bernds@codesourcery.com>
6803
6804 * passes.def (pass_compute_alignments, pass_duplicate_computed_gotos,
6805 pass_variable_tracking, pass_free_cfg, pass_machine_reorg,
6806 pass_cleanup_barriers, pass_delay_slots,
6807 pass_split_for_shorten_branches, pass_convert_to_eh_region_ranges,
6808 pass_shorten_branches, pass_est_nothrow_function_flags,
6809 pass_dwarf2_frame, pass_final): Move outside of pass_postreload and
6810 into pass_late_compilation.
6811 (pass_late_compilation): Add.
6812 * passes.c (pass_data_late_compilation, pass_late_compilation,
6813 make_pass_late_compilation): New.
6814 * timevar.def (TV_LATE_COMPILATION): New.
6815
6816 * target.def (omit_struct_return_reg): New data hook.
6817 * doc/tm.texi.in: Add @hook TARGET_OMIT_STRUCT_RETURN_REG.
6818 * doc/tm.texi: Regenerate.
6819 * function.c (expand_function_end): Use it.
6820
6821 * target.def (no_register_allocation): New data hook.
6822 * doc/tm.texi.in: Add @hook TARGET_NO_REGISTER_ALLOCATION.
6823 * doc/tm.texi: Regenerate.
6824 * ira.c (gate_ira): New function.
6825 (pass_data_ira): Set has_gate.
6826 (pass_ira): Add a gate function.
6827 (pass_data_reload): Likewise.
6828 (pass_reload): Add a gate function.
6829 (pass_ira): Use it.
6830 * reload1.c (eliminate_regs): If reg_eliminate_is NULL, assert that
6831 no register allocation happens on the target and return.
6832 * final.c (alter_subreg): Ensure register is not a pseudo before
6833 calling simplify_subreg.
6834 (output_operand): Assert that x isn't a pseudo only if doing
6835 register allocation.
6836
6837 * dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
6838 global vars.
6839
6840 * optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
6841 sorry if necessary.
6842
6843 2014-11-05 Alex Velenko <Alex.Velenko@arm.com>
6844
6845 * simplify-rtx.c (simplify_binary_operation_1): Div check added.
6846 * rtl.h (SUBREG_P): New macro added.
6847
6848 2014-11-05 Tejas Belagod <tejas.belagod@arm.com>
6849
6850 * config/aarch64/aarch64-builtins.c
6851 (aarch64_build_scalar_type): Remove.
6852 (aarch64_scalar_builtin_types, aarch64_simd_type,
6853 aarch64_simd_type, aarch64_mangle_builtin_scalar_type,
6854 aarch64_mangle_builtin_vector_type,
6855 aarch64_mangle_builtin_type, aarch64_simd_builtin_std_type,
6856 aarch64_lookup_simd_builtin_type, aarch64_simd_builtin_type,
6857 aarch64_init_simd_builtin_types,
6858 aarch64_init_simd_builtin_scalar_types): New.
6859 (aarch64_init_simd_builtins): Refactor.
6860 (aarch64_init_crc32_builtins): Fixup with qualifier.
6861 * config/aarch64/aarch64-protos.h
6862 (aarch64_mangle_builtin_type): Export.
6863 * config/aarch64/aarch64-simd-builtin-types.def: New.
6864 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Remove.
6865 (aarch64_mangle_type): Refactor.
6866 * config/aarch64/arm_neon.h: Declare vector types based on
6867 internal types.
6868 * config/aarch64/t-aarch64: Update dependency.
6869
6870 2014-11-04 Pat Haugen <pthaugen@us.ibm.com>
6871
6872 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl,
6873 atomic_update_decl): Guard declaration with #ifdef.
6874
6875 2014-11-04 Marek Polacek <polacek@redhat.com>
6876
6877 * sanopt.c (sanopt_optimize_walker): Remove unused variables.
6878
6879 2014-11-04 Marek Polacek <polacek@redhat.com>
6880
6881 * Makefile.in (OBJS): Add sanopt.o.
6882 (GTFILES): Add sanopt.c.
6883 * asan.h (asan_expand_check_ifn): Declare.
6884 * asan.c (asan_expand_check_ifn): No longer static.
6885 (class pass_sanopt, pass_sanopt::execute, make_pass_sanopt): Move...
6886 * sanopt.c: ...here. New file.
6887
6888 2014-11-04 Jiong Wang <jiong.wang@arm.com>
6889 2014-11-04 Wilco Dijkstra <wilco.dijkstra@arm.com>
6890
6891 PR target/63293
6892 * config/aarch64/aarch64.c (aarch64_expand_epiloue): Add barriers before
6893 stack adjustment.
6894
6895 2014-11-04 Bernd Schmidt <bernds@codesourcery.com>
6896
6897 * combine.c (combine_simplify_rtx): In STORE_FLAG_VALUE == -1 case,
6898 also verify that mode is equal to the mode of op0.
6899
6900 * bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn,
6901 emit into a sequence instead.
6902
6903 2014-11-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6904
6905 * config/sh/sh.c (emit_fpu_switch): Drop unused automatic variable.
6906
6907 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
6908
6909 config/arm/neon.md (reduc_smin_<mode> *2): Rename to...
6910 (reduc_smin_scal_<mode> *2): ...this; extract scalar result.
6911 (reduc_smax_<mode> *2): Rename to...
6912 (reduc_smax_scal_<mode> *2): ...this; extract scalar result.
6913 (reduc_umin_<mode> *2): Rename to...
6914 (reduc_umin_scal_<mode> *2): ...this; extract scalar result.
6915 (reduc_umax_<mode> *2): Rename to...
6916 (reduc_umax_scal_<mode> *2): ...this; extract scalar result.
6917
6918 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
6919
6920 config/arm/neon.md (reduc_plus_*): Rename to...
6921 (reduc_plus_scal_*): ...this; reduce to temp and extract scalar result.
6922
6923 2014-11-04 Michael Collison <michael.collison@linaro.org>
6924
6925 * config/aarch64/iterators.md (lconst_atomic): New mode attribute
6926 to support constraints for CONST_INT in atomic operations.
6927 * config/aarch64/atomics.md
6928 (atomic_<atomic_optab><mode>): Use lconst_atomic constraint.
6929 (atomic_nand<mode>): Likewise.
6930 (atomic_fetch_<atomic_optab><mode>): Likewise.
6931 (atomic_fetch_nand<mode>): Likewise.
6932 (atomic_<atomic_optab>_fetch<mode>): Likewise.
6933 (atomic_nand_fetch<mode>): Likewise.
6934
6935 2014-11-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6936
6937 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in definition
6938 of __ARM_FEATURE_IDIV.
6939
6940 2014-11-04 Marek Polacek <polacek@redhat.com>
6941
6942 * ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.
6943
6944 2014-11-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6945
6946 * config/rx/rx.c (rx_handle_func_attribute): Mark unused argument.
6947
6948 2014-11-04 Zhenqiang Chen <zhenqiang.chen@arm.com>
6949
6950 Revert:
6951 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
6952 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
6953 Allow CC mode if HAVE_cbranchcc4.
6954
6955 2014-11-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
6956
6957 * godump.c (go_format_type): Rewrite RECORD_TYPE nad UNION_TYPE support
6958 with -fdump-go-spec. Anonymous substructures are now flattened and
6959 replaced by their fields (record) or the first named, non-bitfield
6960 field (union).
6961
6962 2014-11-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6963
6964 * input.c (expand_location_to_spelling_point): Fix typo.
6965 (expansion_point_location_if_in_system_header): Fix comment.
6966
6967 2014-11-03 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6968
6969 * config/avr/gen-avr-mmcu-specs.c: Remove unnecessary format specifier.
6970
6971 2014-11-03 Richard Biener <rguenther@suse.de>
6972
6973 * tree-eh.c (operation_could_trap_helper_p): Handle conversions
6974 like ordinary operations.
6975 * gimplify.c (gimplify_conversion): Gimplify CONVERT_EXPR
6976 as NOP_EXPR.
6977
6978 2014-11-03 Joseph Myers <joseph@codesourcery.com>
6979
6980 * configure.ac (TARGET_GLIBC_MAJOR, TARGET_GLIBC_MINOR): Define
6981 macros.
6982 * configure, config.h.in: Regenerate.
6983 * config/rs6000/linux.h [TARGET_GLIBC_MAJOR > 2 ||
6984 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
6985 (RS6000_GLIBC_ATOMIC_FENV): New macro.
6986 * config/rs6000/linux64.h [TARGET_GLIBC_MAJOR > 2 ||
6987 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
6988 (RS6000_GLIBC_ATOMIC_FENV): New macro.
6989 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl)
6990 (atomic_update_decl): New static variables.
6991 (rs6000_atomic_assign_expand_fenv) [RS6000_GLIBC_ATOMIC_FENV]:
6992 Generate calls to __atomic_feholdexcept, __atomic_feclearexcept
6993 and __atomic_feupdateenv for soft-float and no-FPRs.
6994
6995 2014-11-03 Richard Biener <rguenther@suse.de>
6996
6997 * match.pd: Add two abs patterns. Announce tree_expr_nonnegative_p.
6998 Also drop bogus FLOAT_EXPR and FIX_TRUNC_EXPR.
6999 * fold-const.c (fold_unary_loc): Remove them here.
7000 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
7001 * gimple-fold.c (fold_gimple_assign): Remove now obsolete
7002 GIMPLE_UNARY_RHS case.
7003 (gimple_fold_stmt_to_constant_1): Likewise.
7004 (replace_stmt_with_simplification): Fix inverted comparison.
7005
7006 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
7007
7008 PR tree-optimization/60770
7009 * tree-into-ssa.c (rewrite_update_stmt): Return whether the
7010 statement should be removed.
7011 (maybe_register_def): Likewise. Replace clobbers with default
7012 definitions.
7013 (rewrite_dom_walker::before_dom_children): Remove statement if
7014 rewrite_update_stmt says so.
7015 * tree-ssa-live.c: Include tree-ssa.h.
7016 (set_var_live_on_entry): Do not mark undefined variables as live.
7017 (verify_live_on_entry): Do not check undefined variables.
7018 * tree-ssa.h (ssa_undefined_value_p): New parameter for the case
7019 of partially undefined variables.
7020 * tree-ssa.c (ssa_undefined_value_p): Likewise.
7021 (execute_update_addresses_taken): Do not drop clobbers.
7022
7023 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
7024
7025 PR tree-optimization/63666
7026 * fold-const.c: Include "optabs.h".
7027 (fold_ternary_loc) <VEC_PERM_EXPR>: Avoid canonicalizing a
7028 can_vec_perm_p permutation to one that is not.
7029
7030 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
7031
7032 * ifcvt.c (noce_try_store_flag_mask): Check rtx cost.
7033
7034 2014-11-03 Andrew Pinski <apinski@cavium.com>
7035
7036 * config/mips/mips-cpus.def (octeon3): New cpu.
7037 * config/mips/mips.c (mips_rtx_cost_data): Add octeon3.
7038 (mips_print_operand <case 'T', case 't'>): Fix a bug as the mode
7039 of the comparison no longer matches mode of the operands.
7040 (mips_issue_rate): Handle PROCESSOR_OCTEON3.
7041 * config/mips/mips.h (TARGET_OCTEON): Add Octeon3.
7042 (TARGET_OCTEON2): Likewise.
7043 (TUNE_OCTEON): Add Octeon3.
7044 * config/mips/mips.md (processor): Add octeon3.
7045 * config/mips/octeon.md (octeon_fpu): New automaton and cpu_unit.
7046 (octeon_arith): Add octeon3.
7047 (octeon_condmove): Remove.
7048 (octeon_condmove_o1): New reservation.
7049 (octeon_condmove_o2): New reservation.
7050 (octeon_condmove_o3_int_on_cc): New reservation.
7051 (octeon_load_o2): Add octeon3.
7052 (octeon_cop_o2): Likewise.
7053 (octeon_store): Likewise.
7054 (octeon_brj_o2): Likewise.
7055 (octeon_imul3_o2): Likewise.
7056 (octeon_imul_o2): Likewise.
7057 (octeon_mfhilo_o2): Likewise.
7058 (octeon_imadd_o2): Likewise.
7059 (octeon_idiv_o2_si): Likewise.
7060 (octeon_idiv_o2_di): Likewise.
7061 (octeon_fpu): Add to the automaton.
7062 (octeon_fpu): New cpu unit.
7063 (octeon_condmove_o2): Check for non floating point modes.
7064 (octeon_load_o2): Add prefetchx.
7065 (octeon_cop_o2): Don't check for octeon3.
7066 (octeon3_faddsubcvt): New reservation.
7067 (octeon3_fmul): Likewise.
7068 (octeon3_fmadd): Likewise.
7069 (octeon3_div_sf): Likewise.
7070 (octeon3_div_df): Likewise.
7071 (octeon3_sqrt_sf): Likewise.
7072 (octeon3_sqrt_df): Likewise.
7073 (octeon3_rsqrt_sf): Likewise.
7074 (octeon3_rsqrt_df): Likewise.
7075 (octeon3_fabsnegmov): Likewise.
7076 (octeon_fcond): Likewise.
7077 (octeon_fcondmov): Likewise.
7078 (octeon_fpmtc1): Likewise.
7079 (octeon_fpmfc1): Likewise.
7080 (octeon_fpload): Likewise.
7081 (octeon_fpstore): Likewise.
7082 * config/mips/mips-tables.opt: Regenerate.
7083 * doc/invoke.texi (-march=@var{arch}): Add octeon3.
7084
7085 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
7086
7087 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
7088 Allow CC mode if HAVE_cbranchcc4.
7089
7090 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
7091
7092 * config/arc/arc.c (write_ext_corereg_1): Delete.
7093 (arc_write_ext_corereg): Use FOR_EACH_SUBRTX.
7094
7095 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
7096
7097 * config/arc/arc.c (arc600_corereg_hazard_1): Delete.
7098 (arc600_corereg_hazard): Use FOR_EACH_SUBRTX.
7099
7100 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
7101
7102 * config/arc/arc.c (arc_rewrite_small_data_p): Constify argument.
7103 (small_data_pattern_1): Delete.
7104 (small_data_pattern): Use FOR_EACH_SUBRTX.
7105
7106 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
7107
7108 * config/arc/arc.c: Include rtl-iter.h.
7109 (arc_rewrite_small_data_1): Delete.
7110 (arc_rewrite_small_data): Use FOR_EACH_SUBRTX_PTR.
7111
7112 2014-11-02 Michael Collison <michael.collison@linaro.org>
7113
7114 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update
7115 to support vector modes.
7116 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
7117
7118 2014-11-01 Andrew MacLeod <amacleod@redhat,com>
7119
7120 * optabs.h: Flatten insn-codes.h to source files. Move some prototypes
7121 and structs to genopinit.c. Adjust protyoptypes to match optabs.c.
7122 * genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
7123 * optabs.c: (gen_move_insn): Move to expr.c.
7124 * expr.h: Move protypes and enums to optabs.h.
7125 * expr.c: (gen_move_insn): Relocate from optabs.c.
7126 * genemit.c (main): Include insn-codes.h.
7127 * gengtype.c (open_base_files): Include insn-codes.h.
7128 * asan.c: Include insn-codes.h.
7129 * bb-reorder.c: Ditto.
7130 * builtins.c: Ditto.
7131 * calls.c: Ditto.
7132 * cfgexpand.c: Ditto.
7133 * cilk-common.c: Ditto.
7134 * combine.c: Ditto.
7135 * dojump.c: Ditto.
7136 * dse.c: Ditto.
7137 * except.c: Ditto.
7138 * explow.c: Ditto.
7139 * expmed.c: Ditto.
7140 * function.c: Ditto.
7141 * ifcvt.c: Ditto.
7142 * internal-fn.c: Ditto.
7143 * loop-unroll.c: Ditto.
7144 * lra.c: Ditto.
7145 * modulo-sched.c: Ditto.
7146 * omp-low.c: Ditto.
7147 * postreload.c: Ditto.
7148 * ree.c: Ditto.
7149 * reload.c: Ditto.
7150 * reload1.c: Ditto.
7151 * shrink-wrap.c: Ditto.
7152 * simplify-rtx.c: Ditto.
7153 * stmt.c: Ditto.
7154 * target-globals.c: Ditto.
7155 * targhooks.c: Ditto.
7156 * toplev.c: Ditto.
7157 * tree-if-conv.c: Ditto.
7158 * tree-ssa-forwprop.c: Ditto.
7159 * tree-ssa-loop-prefetch.c: Ditto.
7160 * tree-ssa-math-opts.c: Ditto.
7161 * tree-ssa-phiopt.c: Ditto.
7162 * tree-ssa-reassoc.c: Ditto.
7163 * tree-switch-conversion.c: Ditto.
7164 * tree-vect-data-refs.c: Ditto.
7165 * tree-vect-generic.c: Ditto.
7166 * tree-vect-loop.c: Ditto.
7167 * tree-vect-patterns.c: Ditto.
7168 * tree-vect-slp.c: Ditto.
7169 * tree-vect-stmts.c: Ditto.
7170 * tree-vrp.c: Ditto.
7171 * value-prof.c: Ditto.
7172 * config/aarch64/aarch64-builtins.c: Ditto.
7173 * config/alpha/alpha.c: Ditto.
7174 * config/arm/arm.c: Ditto.
7175 * config/cris/cris.c: Ditto.
7176 * config/epiphany/epiphany.c: Ditto.
7177 * config/frv/frv.c: Ditto.
7178 * config/h8300/h8300.c: Ditto.
7179 * config/ia64/ia64.c: Ditto.
7180 * config/iq2000/iq2000.c: Ditto.
7181 * config/m32c/m32c.c: Ditto.
7182 * config/mep/mep.c: Ditto.
7183 * config/microblaze/microblaze.c: Ditto.
7184 * config/mips/mips.c: Ditto.
7185 * config/mn10300/mn10300.c: Ditto.
7186 * config/moxie/moxie.c: Ditto.
7187 * config/msp430/msp430.c: Ditto.
7188 * config/nios2/nios2.c: Ditto.
7189 * config/pa/pa.c: Ditto.
7190 * config/rl78/rl78.c: Ditto.
7191 * config/rs6000/rs6000.c: Ditto.
7192 * config/rx/rx.c: Ditto.
7193 * config/s390/s390.c: Ditto.
7194 * config/sh/sh.c: Ditto.
7195 * config/sh/sh_treg_combine.cc: Ditto.
7196 * config/spu/spu.c: Ditto.
7197 * config/stormy16/stormy16.c: Ditto.
7198 * config/tilegx/mul-tables.c: Ditto.
7199 * config/tilegx/tilegx.c: Ditto.
7200 * config/tilepro/mul-tables.c: Ditto.
7201 * config/tilepro/tilepro.c: Ditto.
7202 * config/vax/vax.c: Ditto.
7203
7204 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
7205
7206 * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove.
7207 (CLEAR_BY_PIECES_P): Likewise.
7208 (SET_BY_PIECES_P): Likewise.
7209 (STORE_BY_PIECES_P): Likewise.
7210 * doc/tm.texi: Regenerate.
7211 * system.h: Poison MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P,
7212 SET_BY_PIECES_P, STORE_BY_PIECES_P.
7213 * expr.c (MOVE_BY_PIECES_P): Remove.
7214 (CLEAR_BY_PIECES_P): Likewise.
7215 (SET_BY_PIECES_P): Likewise.
7216 (STORE_BY_PIECES_P): Likewise.
7217 (can_move_by_pieces): Rewrite in terms of
7218 targetm.use_by_pieces_infrastructure_p.
7219 (emit_block_move_hints): Likewise.
7220 (can_store_by_pieces): Likewise.
7221 (store_by_pieces): Likewise.
7222 (clear_storage_hints): Likewise.
7223 (emit_push_insn): Likewise.
7224 (expand_constructor): Likewise.
7225
7226 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
7227
7228 * config/aarch64/aarch64.c
7229 (aarch64_use_by_pieces_infrastructre_p): New.
7230 (TARGET_USE_BY_PIECES_INFRASTRUCTURE): Likewise.
7231 * config/aarch64/aarch64.h (STORE_BY_PIECES_P): Delete.
7232
7233 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
7234
7235 * config/mips/mips.h (MOVE_BY_PIECES_P): Remove.
7236 (STORE_BY_PIECES_P): Likewise.
7237 * config/mips/mips.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
7238 (mips_move_by_pieces_p): Rename to...
7239 (mips_use_by_pieces_infrastructure_p): ...this, use new hook
7240 parameters, use the default hook implementation as a
7241 fall-back.
7242
7243 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
7244
7245 * config/sh/sh.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
7246 (sh_use_by_pieces_infrastructure_p): Likewise.
7247 * config/sh/sh.h (MOVE_BY_PIECES_P): Remove.
7248 (STORE_BY_PIECES_P): Likewise.
7249 (SET_BY_PIECES_P): Likewise.
7250
7251 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
7252
7253 * config/arc/arc.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
7254 (arc_use_by_pieces_infrastructure_p): Likewise.
7255 * confir/arc/arc.h (MOVE_BY_PIECES_P): Delete.
7256 (CAN_MOVE_BY_PIECES): Likewise.
7257
7258 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
7259
7260 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p): New.
7261 (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Likewise.
7262 * config/s390/s390.h (MOVE_BY_PIECES_P): Remove.
7263 (CLEAR_BY_PIECES): Likewise.
7264 (SET_BY_PIECES): Likewise.
7265 (STORE_BY_PIECES): Likewise.
7266
7267 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
7268
7269 * target.def (use_by_pieces_infrastructure_p): New.
7270 * doc/tm.texi.in (MOVE_BY_PIECES_P): Describe that this macro
7271 is deprecated.
7272 (STORE_BY_PIECES_P): Likewise.
7273 (CLEAR_BY_PIECES_P): Likewise.
7274 (SET_BY_PIECES_P): Likewise.
7275 (TARGET_MOVE_BY_PIECES_PROFITABLE_P): Add hook.
7276 * doc/tm.texi: Regenerate.
7277 * expr.c (MOVE_BY_PIECES_P): Rewrite in terms of
7278 TARGET_USE_BY_PIECES_INFRASTRUCTURE_P.
7279 (STORE_BY_PIECES_P): Likewise.
7280 (CLEAR_BY_PIECES_P): Likewise.
7281 (SET_BY_PIECES_P): Likewise.
7282 (STORE_MAX_PIECES): Move to...
7283 * defaults.h (STORE_MAX_PIECES): ...here.
7284 * targhooks.c (get_move_ratio): New.
7285 (default_use_by_pieces_infrastructure_p): Likewise.
7286 * targhooks.h (default_use_by_pieces_infrastructure_p): New.
7287 * target.h (by_pieces_operation): New.
7288
7289 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
7290
7291 PR target/63702
7292 * config/i386/i386.c (ix86_expand_args_builtin): Remove extra
7293 assignment to 'nargs' variable.
7294
7295 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
7296
7297 PR target/63620
7298 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
7299 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
7300 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
7301 be reloaded through memory.
7302 (*pushxf): Ditto.
7303 (*pushdf): Ditto.
7304
7305 2014-10-31 Jakub Jelinek <jakub@redhat.com>
7306
7307 PR rtl-optimization/63659
7308 * ree.c (update_reg_equal_equiv_notes): New function.
7309 (combine_set_extension, transform_ifelse): Use it.
7310
7311 2014-10-31 Jeff Law <law@redhat.com>
7312
7313 * doc/contrib.texi: Add contribution notes for Balaji Iyer (Cilk+)
7314 and Jonny Grant (collect2).
7315
7316 2014-10-31 Richard Biener <rguenther@suse.de>
7317
7318 * builtins.c (fold_builtin_atomic_always_lock_free): Use
7319 CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where
7320 approprate.
7321 (fold_builtin_expect): Likewise.
7322 (integer_valued_real_p): Likewise.
7323 * cfgexpand.c (expand_debug_expr): Likewise.
7324 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Likewise.
7325 (find_foldable_builtin_expect): Likewise.
7326 * trans-mem.c (thread_private_new_memory): Likewise.
7327 * tree-affine.c (aff_combination_expand): Likewise.
7328 * tree-data-ref.c (initialize_matrix_A): Likewise.
7329 * tree-inline.c (copy_bb): Likewise.
7330 * tree-pretty-print.c (dump_function_name): Likewise.
7331 (print_call_name): Likewise.
7332 * tree-ssa-forwprop.c (constant_pointer_difference): Likewise.
7333 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise.
7334 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
7335 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Likewise.
7336 (vect_recog_widen_mult_pattern): Likewise.
7337 (vect_operation_fits_smaller_type): Likewise.
7338 * tree-vrp.c (find_assert_locations_1): Likewise.
7339 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
7340 converts to NOP_EXPR.
7341
7342 2014-10-31 Richard Biener <rguenther@suse.de>
7343
7344 * genmatch.c (expr::gen_transform): Use NOP_EXPRs instead of
7345 CONVERT_EXPRs in generated code.
7346 (dt_simplify::gen): Likewise.
7347
7348 2014-10-31 Evgeny Stupachenko <evstupac@gmail.com>
7349
7350 PR target/63534
7351 * config/i386/i386.c (ix86_init_pic_reg): Emit SET_GOT to
7352 REAL_PIC_OFFSET_TABLE_REGNUM for mcount profiling.
7353 (ix86_save_reg): Save REAL_PIC_OFFSET_TABLE_REGNUM when profiling
7354 using mcount in 32bit PIC mode.
7355 (ix86_elim_entry_set_got): New.
7356 (ix86_expand_prologue): For the mcount profiling emit new SET_GOT
7357 in PROLOGUE, delete initial if possible.
7358
7359 2014-10-31 Eric Botcazou <ebotcazou@adacore.com>
7360
7361 * ipa-inline.c (want_inline_small_function_p): Fix typo and formatting.
7362 (want_inline_function_to_all_callers_p): Fix formatting and simplify.
7363
7364 2014-10-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
7365
7366 PR tree-optimization/63259
7367 * tree-ssa-math-opts.c (bswap_replace): Replace expression by a
7368 rotation left if it is a 16 bit byte swap.
7369 (pass_optimize_bswap::execute): Also consider bswap in LROTATE_EXPR
7370 and RROTATE_EXPR statements if it is a byte rotation.
7371
7372 2014-10-31 Jakub Jelinek <jakub@redhat.com>
7373
7374 PR sanitizer/63697
7375 * tree-vrp.c (simplify_internal_call_using_ranges): For subcode ==
7376 MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min
7377 instead of vr0.min - vr1.min and vr0.max - vr1.max.
7378
7379 2014-10-31 Max Ostapenko <m.ostapenko@partner.samsung.com>
7380
7381 PR ipa/63696
7382 * ipa-icf.c (sem_function::~sem_function): Change free to delete to avoid
7383 alloc-dealloc mismatch with new, called in ipa_icf::sem_function::init.
7384
7385 2014-10-30 Felix Yang <felix.yang@huawei.com>
7386
7387 * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro.
7388 * config/xtensa/xtensa.c: Include dumpfile.h and hw-doloop.h.
7389 (xtensa_reorg, xtensa_reorg_loops): New.
7390 (xtensa_can_use_doloop_p, xtensa_invalid_within_doloop): New.
7391 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg): New.
7392 (xtensa_emit_loop_end): Emit the zero-overhead loop end label.
7393 (xtensa_doloop_hooks): Define.
7394 * config/xtensa/xtensa.md (doloop_end, loop_end): New
7395 (zero_cost_loop_start): Rewritten.
7396 (zero_cost_loop_end): Likewise.
7397
7398 2014-10-30 Steve Ellcey <sellcey@imgtec.com>
7399
7400 * config.gcc (mips*-*-linux*): Combine 32 and 64 bit cases.
7401
7402 2014-10-30 Richard Biener <rguenther@suse.de>
7403
7404 * genmatch.c: Remove <map>, <utility> and <string> includes.
7405 Include ggc.h and hash-map.h.
7406 (ggc_internal_cleared_alloc): Provide stub definition.
7407 (ggc_free): Likewise.
7408 (struct capture_id_map_hasher): New traits for hash_map.
7409 (cid_map_t): New typedef.
7410 (everywhere else): Replace std::map use with cid_map_t.
7411 * hash-map.h (hash_map::elements): New member function.
7412 * Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
7413 hash-map.h and $(GGC_H) as dependency.
7414
7415 2014-10-30 Richard Biener <rguenther@suse.de>
7416
7417 * genmatch.c (capture_info::walk_c_expr): Ignore capture
7418 uses inside TREE_TYPE ().
7419 * gimple-ssa-strength-reduction.c (stmt_cost): Use CASE_CONVERT.
7420 (find_candidates_dom_walker::before_dom_children): Likewise.
7421 (replace_mult_candidate): Use CONVERT_EXPR_CODE_P.
7422 (replace_profitable_candidates): Likewise.
7423 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
7424 CONVERT_EXPR_CODE_P to CONVERT_EXPR.
7425 * convert.c (convert_to_integer): Use CASE_CONVERT.
7426
7427 2014-10-30 Richard Biener <rguenther@suse.de>
7428
7429 * match.pd: Implement more patterns that simplify to a single value.
7430 * fold-const.c (fold_binary_loc): Remove them here.
7431 * tree-ssa-forwprop.c (simplify_bitwise_binary): Likewise.
7432 (fwprop_ssa_val): Remove restriction on single uses.
7433
7434 2014-10-30 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7435
7436 * config/avr/driver-avr.c (avr_set_current_device): Remove.
7437
7438 2014-10-30 Martin Liska <mliska@suse.cz>
7439
7440 PR ipa/63574
7441 PR ipa/63664
7442 * ipa-icf-gimple.c (func_checker::parse_labels): Missing comment added.
7443 (func_checker::compare_gimple_label): Simlified comparison introduced.
7444 * ipa-icf-gimple.h: Missing comment added.
7445
7446 2014-10-30 Jeff Law <law@redhat.com>
7447
7448 * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen
7449 argument from rtx to rtx_insn *.
7450 (compute_movmem_length, compute_clrmem_length): Likewise.
7451 (copy_fp_args, length_fp_args): Likewise.
7452 * config/pa/pa.c (legitimize_pic_address): Promote local variable
7453 "insn" from rtx to rtx_insn *.
7454 (legitimize_tls_address, pa_emit_move_sequence): Likewise.
7455 (pa_output_block_move, store_reg, store_reg_modify): Likewise.
7456 (set_reg_plus_d, pa_expand_prologue, hppa_profile_hook): Likewise.
7457 (branch_to_delay_slot_p, branch_needs_nop_p, use_skip_p): Likewise.
7458 (pa_output_arg_descriptor): Strengthen argument to an rtx_insn *.
7459 (compute_movmem_length, compute_clrmem_length): Likewise.
7460 (copy_fp-args, length_fp_args): Likewise.
7461
7462 2014-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7463
7464 * config/arm/arm.h (MACHMODE): Treat machine_mode as a
7465 scalar typedef.
7466 (CUMULATIVE_ARGS): Guard against target includes.
7467 (machine_function): Likewise.
7468
7469 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7470
7471 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
7472 recog state after aarch64_prev_real_insn call.
7473
7474 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7475
7476 * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.
7477
7478 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7479
7480 * config/arm/arm.h (MACHMODE): Add 'enum' to machine_mode.
7481 (struct machine_function): Gate definition on
7482 !defined(USED_FOR_TARGET).
7483
7484 2014-10-29 DJ Delorie <dj@redhat.com>
7485
7486 * expmed.c (strict_volatile_bitfield_p): Fix off-by-one error.
7487
7488 2014-10-29 Martin Liska <mliska@suse.cz>
7489
7490 PR ipa/63587
7491 * cgraphunit.c (cgraph_node::expand_thunk): Only VAR_DECLs are put
7492 to local declarations.
7493 * function.c (add_local_decl): Implementation moved from header
7494 file, assert introduced for tree type.
7495 * function.h: Likewise.
7496
7497 2014-10-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
7498
7499 * godump.c (go_format_type): Represent "float _Complex" and
7500 "double _Complex" as complex64 or complex128 in Go, as appropriate.
7501
7502 2014-10-29 Richard Biener <rguenther@suse.de>
7503
7504 * match.pd: Implement a first set of conversion patterns.
7505 * fold-const.c (fold_unary_loc): Remove them here.
7506 * tree-ssa-forwprop.c (simplify_vce): Remove.
7507 (pass_forwprop::execute): Do not call simplify_vce.
7508
7509 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
7510
7511 * addresses.h, alias.c, asan.c, auto-inc-dec.c, bt-load.c, builtins.c,
7512 builtins.h, caller-save.c, calls.c, calls.h, cfgexpand.c, cfgloop.h,
7513 cfgrtl.c, combine.c, compare-elim.c, config/aarch64/aarch64-builtins.c,
7514 config/aarch64/aarch64-protos.h, config/aarch64/aarch64-simd.md,
7515 config/aarch64/aarch64.c, config/aarch64/aarch64.h,
7516 config/aarch64/aarch64.md, config/alpha/alpha-protos.h,
7517 config/alpha/alpha.c, config/arc/arc-protos.h, config/arc/arc.c,
7518 config/arc/arc.h, config/arc/predicates.md,
7519 config/arm/aarch-common-protos.h, config/arm/aarch-common.c,
7520 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
7521 config/arm/arm.md, config/arm/neon.md, config/arm/thumb2.md,
7522 config/avr/avr-log.c, config/avr/avr-protos.h, config/avr/avr.c,
7523 config/avr/avr.md, config/bfin/bfin-protos.h, config/bfin/bfin.c,
7524 config/c6x/c6x-protos.h, config/c6x/c6x.c, config/c6x/c6x.md,
7525 config/cr16/cr16-protos.h, config/cr16/cr16.c,
7526 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.md,
7527 config/darwin-protos.h, config/darwin.c,
7528 config/epiphany/epiphany-protos.h, config/epiphany/epiphany.c,
7529 config/epiphany/epiphany.md, config/fr30/fr30.c,
7530 config/frv/frv-protos.h, config/frv/frv.c, config/frv/predicates.md,
7531 config/h8300/h8300-protos.h, config/h8300/h8300.c,
7532 config/i386/i386-builtin-types.awk, config/i386/i386-protos.h,
7533 config/i386/i386.c, config/i386/i386.md, config/i386/predicates.md,
7534 config/i386/sse.md, config/i386/sync.md, config/ia64/ia64-protos.h,
7535 config/ia64/ia64.c, config/iq2000/iq2000-protos.h,
7536 config/iq2000/iq2000.c, config/iq2000/iq2000.md,
7537 config/lm32/lm32-protos.h, config/lm32/lm32.c,
7538 config/m32c/m32c-protos.h, config/m32c/m32c.c,
7539 config/m32r/m32r-protos.h, config/m32r/m32r.c,
7540 config/m68k/m68k-protos.h, config/m68k/m68k.c,
7541 config/mcore/mcore-protos.h, config/mcore/mcore.c,
7542 config/mcore/mcore.md, config/mep/mep-protos.h, config/mep/mep.c,
7543 config/microblaze/microblaze-protos.h, config/microblaze/microblaze.c,
7544 config/mips/mips-protos.h, config/mips/mips.c,
7545 config/mmix/mmix-protos.h, config/mmix/mmix.c,
7546 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
7547 config/moxie/moxie.c, config/msp430/msp430-protos.h,
7548 config/msp430/msp430.c, config/nds32/nds32-cost.c,
7549 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
7550 config/nds32/nds32-protos.h, config/nds32/nds32.c,
7551 config/nios2/nios2-protos.h, config/nios2/nios2.c,
7552 config/pa/pa-protos.h, config/pa/pa.c, config/pdp11/pdp11-protos.h,
7553 config/pdp11/pdp11.c, config/rl78/rl78-protos.h, config/rl78/rl78.c,
7554 config/rs6000/altivec.md, config/rs6000/rs6000-c.c,
7555 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
7556 config/rs6000/rs6000.h, config/rx/rx-protos.h, config/rx/rx.c,
7557 config/s390/predicates.md, config/s390/s390-protos.h,
7558 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
7559 config/sh/predicates.md, config/sh/sh-protos.h, config/sh/sh.c,
7560 config/sh/sh.md, config/sparc/predicates.md,
7561 config/sparc/sparc-protos.h, config/sparc/sparc.c,
7562 config/sparc/sparc.md, config/spu/spu-protos.h, config/spu/spu.c,
7563 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
7564 config/tilegx/tilegx-protos.h, config/tilegx/tilegx.c,
7565 config/tilegx/tilegx.md, config/tilepro/tilepro-protos.h,
7566 config/tilepro/tilepro.c, config/v850/v850-protos.h,
7567 config/v850/v850.c, config/v850/v850.md, config/vax/vax-protos.h,
7568 config/vax/vax.c, config/vms/vms-c.c, config/xtensa/xtensa-protos.h,
7569 config/xtensa/xtensa.c, coverage.c, cprop.c, cse.c, cselib.c, cselib.h,
7570 dbxout.c, ddg.c, df-problems.c, dfp.c, dfp.h, doc/md.texi,
7571 doc/rtl.texi, doc/tm.texi, doc/tm.texi.in, dojump.c, dse.c,
7572 dwarf2cfi.c, dwarf2out.c, dwarf2out.h, emit-rtl.c, emit-rtl.h,
7573 except.c, explow.c, expmed.c, expmed.h, expr.c, expr.h, final.c,
7574 fixed-value.c, fixed-value.h, fold-const.c, function.c, function.h,
7575 fwprop.c, gcse.c, gengenrtl.c, genmodes.c, genopinit.c, genoutput.c,
7576 genpreds.c, genrecog.c, gensupport.c, gimple-ssa-strength-reduction.c,
7577 graphite-clast-to-gimple.c, haifa-sched.c, hooks.c, hooks.h, ifcvt.c,
7578 internal-fn.c, ira-build.c, ira-color.c, ira-conflicts.c, ira-costs.c,
7579 ira-emit.c, ira-int.h, ira-lives.c, ira.c, ira.h, jump.c, langhooks.h,
7580 libfuncs.h, lists.c, loop-doloop.c, loop-invariant.c, loop-iv.c,
7581 loop-unroll.c, lower-subreg.c, lower-subreg.h, lra-assigns.c,
7582 lra-constraints.c, lra-eliminations.c, lra-int.h, lra-lives.c,
7583 lra-spills.c, lra.c, lra.h, machmode.h, omp-low.c, optabs.c, optabs.h,
7584 output.h, postreload.c, print-tree.c, read-rtl.c, real.c, real.h,
7585 recog.c, recog.h, ree.c, reg-stack.c, regcprop.c, reginfo.c,
7586 regrename.c, regs.h, reload.c, reload.h, reload1.c, rtl.c, rtl.h,
7587 rtlanal.c, rtlhash.c, rtlhooks-def.h, rtlhooks.c, sched-deps.c,
7588 sel-sched-dump.c, sel-sched-ir.c, sel-sched-ir.h, sel-sched.c,
7589 simplify-rtx.c, stmt.c, stor-layout.c, stor-layout.h, target.def,
7590 targhooks.c, targhooks.h, tree-affine.c, tree-call-cdce.c,
7591 tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-if-conv.c,
7592 tree-inline.c, tree-outof-ssa.c, tree-scalar-evolution.c,
7593 tree-ssa-address.c, tree-ssa-ccp.c, tree-ssa-loop-ivopts.c,
7594 tree-ssa-loop-ivopts.h, tree-ssa-loop-manip.c,
7595 tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c, tree-ssa-reassoc.c,
7596 tree-ssa-sccvn.c, tree-streamer-in.c, tree-switch-conversion.c,
7597 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop.c,
7598 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
7599 tree-vrp.c, tree.c, tree.h, tsan.c, ubsan.c, valtrack.c,
7600 var-tracking.c, varasm.c: Remove redundant enum from
7601 machine_mode.
7602 * gengtype.c (main): Treat machine_mode as a scalar typedef.
7603 * genmodes.c (emit_insn_modes_h): Hide inline functions if
7604 USED_FOR_TARGET.
7605
7606 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
7607
7608 PR rtl-optimization/63340 (part 2)
7609 * rtl.h (invalid_mode_change_p): Delete.
7610 (valid_mode_changes_for_regno): New function.
7611 * reginfo.c (invalid_mode_change_p): Delete.
7612 (valid_mode_changes_for_regno): New function.
7613 * ira-costs.c (setup_regno_cost_classes_by_aclass): Restrict the
7614 classes to registers that are allowed by valid_mode_changes_for_regno.
7615 (setup_regno_cost_classes_by_mode): Likewise.
7616 (print_allocno_costs): Remove invalid_mode_change_p test.
7617 (print_pseudo_costs, find_costs_and_classes): Likewise.
7618
7619 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
7620
7621 PR rtl-optimization/63340 (part 1)
7622 * ira-costs.c (all_cost_classes): New variable.
7623 (complete_cost_classes): New function, split out from...
7624 (setup_cost_classes): ...here.
7625 (initiate_regno_cost_classes): Set up all_cost_classes.
7626 (restrict_cost_classes): New function.
7627 (setup_regno_cost_classes_by_aclass): Restrict the cost classes to
7628 registers that are valid for the register's mode.
7629 (setup_regno_cost_classes_by_mode): Model the mode cache as a
7630 restriction of all_cost_classes to a particular mode.
7631 (print_allocno_costs): Remove contains_reg_of_mode check.
7632 (print_pseudo_costs, find_costs_and_classes): Likewise.
7633
7634 2014-10-29 Richard Biener <rguenther@suse.de>
7635
7636 PR tree-optimization/63666
7637 * tree-vect-slp.c (vect_get_mask_element): Properly handle
7638 accessing out-of-bound elements.
7639
7640 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7641 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7642 Anna Tikhonova <anna.tikhonova@intel.com>
7643 Ilya Tocar <ilya.tocar@intel.com>
7644 Andrey Turetskiy <andrey.turetskiy@intel.com>
7645 Ilya Verbin <ilya.verbin@intel.com>
7646 Kirill Yukhin <kirill.yukhin@intel.com>
7647 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7648
7649 * config/i386/i386.md
7650 (movhi_internal): Always detect maskmov.
7651 (movqi_internal): Fix target check.
7652
7653 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7654 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7655 Anna Tikhonova <anna.tikhonova@intel.com>
7656 Ilya Tocar <ilya.tocar@intel.com>
7657 Andrey Turetskiy <andrey.turetskiy@intel.com>
7658 Ilya Verbin <ilya.verbin@intel.com>
7659 Kirill Yukhin <kirill.yukhin@intel.com>
7660 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7661
7662 * config/i386/avx512bwintrin.h: Add new intrinsics.
7663 * config/i386/avx512vlbwintrin.h: Ditto.
7664 * config/i386/avx512vlintrin.h: Ditto.
7665
7666 2014-10-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
7667
7668 * godump.c (precision_to_units): New helper function.
7669 (go_append_artificial_name): Ditto.
7670 (go_append_decl_name): Ditto.
7671 (go_append_bitfield): Ditto.
7672 (go_get_uinttype_for_precision): Ditto.
7673 (go_append_padding): Ditto.
7674 (go_force_record_alignment): Ditto.
7675 (go_format_type): Represent unions with an array of uints of the size
7676 of the alignment in go. This fixes the 'random' size of the union's
7677 representation using just the first field.
7678 (go_format_type): Add argument that indicates whether a record is
7679 nested (used for generation of artificial go names).
7680 (go_output_fndecl): Adapt to new go_format_type signature.
7681 (go_output_typedef): Ditto.
7682 (go_output_var): Ditto.
7683 (go_output_var): Prefer to output type as alias (typedef).
7684 (go_format_type): Bitfields in records are simulated as arrays of bytes
7685 in go.
7686
7687 * godump.c (go_format_type): Fix handling of arrays with zero elements.
7688
7689 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
7690
7691 * cgraph.h: Flatten. Remove all include files.
7692 (symbol_table::initialize): Move to cgraph.c.
7693 * cgraph.c: Adjust include files.
7694 (symbol_table::initialize): Relocate from cgraph.h.
7695 * gengtype.c (open_base_files): Adjust include files.
7696 * gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
7697 included files.
7698 * ipa-inline.h: Remove all include files.
7699 * ipa-prop.h: Ditto.
7700 * ipa-reference.h: Ditto.
7701 * ipa-utils.h: Ditto:
7702 * lto-streamer.h: Remove cgraph.h from include list.
7703 * asan.c: Adjust include files.
7704 * auto-profile.c: Ditto.
7705 * bb-reorder.c: Ditto.
7706 * calls.c: Ditto.
7707 * cfgexpand.c: Ditto.
7708 * cgraphbuild.c: Ditto.
7709 * cgraphclones.c: Ditto.
7710 * cgraphunit.c: Ditto.
7711 * combine.c: Ditto.
7712 * coverage.c: Ditto.
7713 * data-streamer.c: Ditto.
7714 * data-streamer-in.c: Ditto.
7715 * data-streamer-out.c: Ditto.
7716 * dbxout.c: Ditto.
7717 * dwarf2out.c: Ditto.
7718 * except.c: Ditto.
7719 * expr.c: Ditto.
7720 * final.c: Ditto.
7721 * fold-const.c: Ditto.
7722 * ggc-page.c: Ditto.
7723 * gimple-fold.c: Ditto.
7724 * gimple-iterator.c: Ditto.
7725 * gimple-pretty-print.c: Ditto.
7726 * gimple-streamer-in.c: Ditto.
7727 * gimple-streamer-out.c: Ditto.
7728 * gimplify.c: Ditto.
7729 * ipa.c: Ditto.
7730 * ipa-comdats.c: Ditto.
7731 * ipa-cp.c: Ditto.
7732 * ipa-devirt.c: Ditto.
7733 * ipa-icf.c: Ditto.
7734 * ipa-icf-gimple.c: Ditto.
7735 * ipa-inline-analysis.c: Ditto.
7736 * ipa-inline.c: Ditto.
7737 * ipa-inline-transform.c: Ditto.
7738 * ipa-polymorphic-call.c: Ditto.
7739 * ipa-profile.c: Ditto.
7740 * ipa-prop.c: Ditto.
7741 * ipa-pure-const.c: Ditto.
7742 * ipa-ref.c: Ditto.
7743 * ipa-reference.c: Ditto.
7744 * ipa-split.c: Ditto.
7745 * ipa-utils.c: Ditto.
7746 * ipa-visibility.c: Ditto.
7747 * langhooks.c: Ditto.
7748 * lto-cgraph.c: Ditto.
7749 * lto-compress.c: Ditto.
7750 * lto-opts.c: Ditto.
7751 * lto-section-in.c: Ditto.
7752 * lto-section-out.c: Ditto.
7753 * lto-streamer.c: Ditto.
7754 * lto-streamer-in.c: Ditto.
7755 * lto-streamer-out.c: Ditto.
7756 * omp-low.c: Ditto.
7757 * opts-global.c: Ditto.
7758 * passes.c: Ditto.
7759 * predict.c: Ditto.
7760 * print-tree.c: Ditto.
7761 * profile.c: Ditto.
7762 * ree.c: Ditto.
7763 * stor-layout.c: Ditto.
7764 * symtab.c: Ditto.
7765 * toplev.c: Ditto.
7766 * trans-mem.c: Ditto.
7767 * tree.c: Ditto.
7768 * tree-cfg.c: Ditto.
7769 * tree-eh.c: Ditto.
7770 * tree-emutls.c: Ditto.
7771 * tree-inline.c: Ditto.
7772 * tree-nested.c: Ditto.
7773 * tree-pretty-print.c: Ditto.
7774 * tree-profile.c: Ditto.
7775 * tree-sra.c: Ditto.
7776 * tree-ssa-alias.c: Ditto.
7777 * tree-ssa-loop-ivcanon.c: Ditto.
7778 * tree-ssa-loop-ivopts.c: Ditto.
7779 * tree-ssa-pre.c: Ditto.
7780 * tree-ssa-structalias.c: Ditto.
7781 * tree-streamer.c: Ditto.
7782 * tree-streamer-in.c: Ditto.
7783 * tree-streamer-out.c: Ditto.
7784 * tree-switch-conversion.c: Ditto.
7785 * tree-tailcall.c: Ditto.
7786 * tree-vect-data-refs.c: Ditto.
7787 * tree-vectorizer.c: Ditto.
7788 * tree-vect-stmts.c: Ditto.
7789 * tsan.c: Ditto.
7790 * ubsan.c: Ditto.
7791 * value-prof.c: Ditto.
7792 * varasm.c: Ditto.
7793 * varpool.c: Ditto.
7794 * config/arm/arm.c: Ditto.
7795 * config/bfin/bfin.c: Ditto.
7796 * config/c6x/c6x.c: Ditto.
7797 * config/cris/cris.c: Ditto.
7798 * config/darwin.c: Ditto.
7799 * config/darwin-c.c: Ditto.
7800 * config/i386/i386.c: Ditto.
7801 * config/i386/winnt.c: Ditto.
7802 * config/microblaze/microblaze.c: Ditto.
7803 * config/mips/mips.c: Ditto.
7804 * config/rs6000/rs6000.c: Ditto.
7805 * config/rx/rx.c: Ditto.
7806
7807 2014-10-28 Richard Biener <rguenther@suse.de>
7808
7809 * gimple-fold.h (follow_single_use_edges): Declare.
7810 * gimple-fold.c (follow_single_use_edges): New function.
7811 (gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
7812 * tree-ssa-propagate.c
7813 (substitute_and_fold_dom_walker::before_dom_children): Allow
7814 following single-use edges when folding stmts we propagated into.
7815
7816 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7817 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7818 Anna Tikhonova <anna.tikhonova@intel.com>
7819 Ilya Tocar <ilya.tocar@intel.com>
7820 Andrey Turetskiy <andrey.turetskiy@intel.com>
7821 Ilya Verbin <ilya.verbin@intel.com>
7822 Kirill Yukhin <kirill.yukhin@intel.com>
7823 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7824
7825 * config/i386/avx512bwintrin.h: New.
7826 * config/i386/avx512dqintrin.h: Ditto.
7827 * config/i386/avx512vlbwintrin.h: Ditto.
7828 * config/i386/avx512vldqintrin.h: Ditto.
7829 * config/i386/avx512vlintrin.h: Ditto.
7830 * config/i386/immintrin.h: Include avx512vlintrin.h, avx512bwintrin.h,
7831 avx512dqintrin.h, avx512vlbwintrin.h, avx512vldqintrin.h.
7832
7833 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7834 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7835 Anna Tikhonova <anna.tikhonova@intel.com>
7836 Ilya Tocar <ilya.tocar@intel.com>
7837 Andrey Turetskiy <andrey.turetskiy@intel.com>
7838 Ilya Verbin <ilya.verbin@intel.com>
7839 Kirill Yukhin <kirill.yukhin@intel.com>
7840 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7841
7842 * config/i386/i386.c
7843 (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
7844 avx_shufpd256_mask, avx_vpermilv2df_mask.
7845
7846 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7847 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7848 Anna Tikhonova <anna.tikhonova@intel.com>
7849 Ilya Tocar <ilya.tocar@intel.com>
7850 Andrey Turetskiy <andrey.turetskiy@intel.com>
7851 Ilya Verbin <ilya.verbin@intel.com>
7852 Kirill Yukhin <kirill.yukhin@intel.com>
7853 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7854
7855 * config/i386/i386.c
7856 (ix86_init_mmx_sse_builtins):
7857 Define __builtin_ia32_gather3siv2df, __builtin_ia32_gather3siv4df,
7858 __builtin_ia32_gather3div2df, __builtin_ia32_gather3div4df,
7859 __builtin_ia32_gather3siv4sf, __builtin_ia32_gather3siv8sf,
7860 __builtin_ia32_gather3div4sf, __builtin_ia32_gather3div8sf,
7861 __builtin_ia32_gather3siv2di, __builtin_ia32_gather3siv4di,
7862 __builtin_ia32_gather3div2di, __builtin_ia32_gather3div4di,
7863 __builtin_ia32_gather3siv4si, __builtin_ia32_gather3siv8si,
7864 __builtin_ia32_gather3div4si, __builtin_ia32_gather3div8si,
7865 __builtin_ia32_gather3altsiv4df, __builtin_ia32_gather3altdiv8sf,
7866 __builtin_ia32_gather3altsiv4di, __builtin_ia32_gather3altdiv8si,
7867 __builtin_ia32_scattersiv8sf, __builtin_ia32_scattersiv4sf,
7868 __builtin_ia32_scattersiv4df, __builtin_ia32_scattersiv2df,
7869 __builtin_ia32_scatterdiv8sf, __builtin_ia32_scatterdiv4sf,
7870 __builtin_ia32_scatterdiv4df, __builtin_ia32_scatterdiv2df,
7871 __builtin_ia32_scattersiv8si, __builtin_ia32_scattersiv4si,
7872 __builtin_ia32_scattersiv4di, __builtin_ia32_scattersiv2di,
7873 __builtin_ia32_scatterdiv8si, __builtin_ia32_scatterdiv4si,
7874 __builtin_ia32_scatterdiv4di, __builtin_ia32_scatterdiv2di.
7875
7876 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7877 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7878 Anna Tikhonova <anna.tikhonova@intel.com>
7879 Ilya Tocar <ilya.tocar@intel.com>
7880 Andrey Turetskiy <andrey.turetskiy@intel.com>
7881 Ilya Verbin <ilya.verbin@intel.com>
7882 Kirill Yukhin <kirill.yukhin@intel.com>
7883 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7884
7885 * config/i386/i386.c
7886 (ix86_builtins): Add IX86_BUILTIN_GATHER3ALTSIV4DF,
7887 IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTSIV4DI,
7888 IX86_BUILTIN_GATHER3ALTDIV8SI.
7889 (ix86_expand_builtin):
7890 Handle IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTDIV8SI,
7891 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV4DI,
7892 IX86_BUILTIN_SCATTERDIV2DF, IX86_BUILTIN_SCATTERDIV4DF,
7893 IX86_BUILTIN_GATHER3ALTSIV4DI, IX86_BUILTIN_GATHER3ALTSIV4DF,
7894 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
7895 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3DIV8SI,
7896 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV4DI,
7897 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3SIV8SF,
7898 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
7899 IX86_BUILTIN_GATHER3DIV2DI, IX86_BUILTIN_GATHER3DIV4DI,
7900 IX86_BUILTIN_SCATTERDIV4SF, IX86_BUILTIN_SCATTERSIV2DI,
7901 IX86_BUILTIN_GATHER3SIV2DI, IX86_BUILTIN_GATHER3SIV4SI,
7902 IX86_BUILTIN_GATHER3SIV4SF, IX86_BUILTIN_GATHER3SIV2DF,
7903 IX86_BUILTIN_SCATTERSIV2DF, IX86_BUILTIN_SCATTERDIV4SI,
7904 IX86_BUILTIN_SCATTERSIV4SF, IX86_BUILTIN_SCATTERSIV4SI,
7905 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
7906 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV8SF,
7907 IX86_BUILTIN_GATHER3DIV4SF, IX86_BUILTIN_SCATTERDIV8SF.
7908 (ix86_vectorize_builtin_gather): Update V2DFmode, V4DFmode, V2DImode,
7909 V4DImode, V4SFmode, V8SFmode, V4SImode, V8SImode.
7910
7911 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
7912 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7913 Anna Tikhonova <anna.tikhonova@intel.com>
7914 Ilya Tocar <ilya.tocar@intel.com>
7915 Andrey Turetskiy <andrey.turetskiy@intel.com>
7916 Ilya Verbin <ilya.verbin@intel.com>
7917 Kirill Yukhin <kirill.yukhin@intel.com>
7918 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7919
7920 * config/i386/i386-builtin-types.def
7921 (SHORT): New.
7922 (V32HI): Ditto.
7923 (V12QI): Ditto.
7924 (V14QI): Ditto.
7925 (V32SI): Ditto.
7926 (V8UDI): Ditto.
7927 (V16USI): Ditto.
7928 (V32UHI): Ditto.
7929 (PSHORT): Ditto.
7930 (PV32QI): Ditto.
7931 (PV32HI): Ditto.
7932 (PV64QI): Ditto.
7933 (PCV8HI): Ditto.
7934 (PCV16QI): Ditto.
7935 (PCV16HI): Ditto.
7936 (PCV32QI): Ditto.
7937 (PCV32HI): Ditto.
7938 (PCV64QI): Ditto.
7939 (V4SF_FTYPE_V2DF_V4SF_QI): Ditto.
7940 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
7941 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
7942 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
7943 (V16SF_FTYPE_V16HI): Ditto.
7944 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
7945 (V16SF_FTYPE_V16SI): Ditto.
7946 (V4DI_FTYPE_V4DI): Ditto.
7947 (V16SI_FTYPE_V16SF): Ditto.
7948 (V8DI_FTYPE_PV2DI): Ditto.
7949 (V8DF_FTYPE_PV2DF): Ditto.
7950 (V4DI_FTYPE_PV2DI): Ditto.
7951 (V4DF_FTYPE_PV2DF): Ditto.
7952 (V16SI_FTYPE_PV2SI): Ditto.
7953 (V16SF_FTYPE_PV2SF): Ditto.
7954 (V8SF_FTYPE_FLOAT): Ditto.
7955 (V4SF_FTYPE_FLOAT): Ditto.
7956 (V4DF_FTYPE_DOUBLE): Ditto.
7957 (V8SF_FTYPE_PV4SF): Ditto.
7958 (V8SI_FTYPE_PV4SI): Ditto.
7959 (V4SI_FTYPE_PV2SI): Ditto.
7960 (V8SF_FTYPE_PV2SF): Ditto.
7961 (V8SI_FTYPE_PV2SI): Ditto.
7962 (V16SF_FTYPE_PV8SF): Ditto.
7963 (V16SI_FTYPE_PV8SI): Ditto.
7964 (V8DI_FTYPE_V8SF): Ditto.
7965 (V4DI_FTYPE_V4SF): Ditto.
7966 (V2DI_FTYPE_V4SF): Ditto.
7967 (V64QI_FTYPE_QI): Ditto.
7968 (V32HI_FTYPE_HI): Ditto.
7969 (V16UHI_FTYPE_V16UHI): Ditto.
7970 (V32UHI_FTYPE_V32UHI): Ditto.
7971 (V2UDI_FTYPE_V2UDI): Ditto.
7972 (V4UDI_FTYPE_V4UDI): Ditto.
7973 (V8UDI_FTYPE_V8UDI): Ditto.
7974 (V4USI_FTYPE_V4USI): Ditto.
7975 (V16USI_FTYPE_V16USI): Ditto.
7976 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
7977 (V2DF_FTYPE_V8DF_INT): Ditto.
7978 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
7979 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
7980 (V8DF_FTYPE_V8DF_INT): Ditto.
7981 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
7982 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
7983 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
7984 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
7985 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
7986 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
7987 (V8DI_FTYPE_V8DI_INT): Ditto.
7988 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
7989 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
7990 (V8SF_FTYPE_V16SF_INT): Ditto.
7991 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
7992 (V64QI_FTYPE_V32HI_V32HI): Ditto.
7993 (V32HI_FTYPE_V16SI_V16SI): Ditto.
7994 (V8DF_FTYPE_V8DF_V2DF_INT): Ditto.
7995 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
7996 (V8DF_FTYPE_V8DF_V8DF_INT): Ditto.
7997 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT): Ditto.
7998 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT): Ditto.
7999 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
8000 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
8001 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
8002 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT): Ditto.
8003 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
8004 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
8005 (V32HI_FTYPE_V64QI_V64QI): Ditto.
8006 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
8007 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
8008 (V32HI_FTYPE_V32HI_V32HI): Ditto.
8009 (V32HI_FTYPE_V32HI_INT): Ditto.
8010 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
8011 (V16SI_FTYPE_V32HI_V32HI): Ditto.
8012 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
8013 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
8014 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
8015 (V8SI_FTYPE_V16SI_INT): Ditto.
8016 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
8017 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
8018 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
8019 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
8020 (V8DI_FTYPE_V8DI_V4DI_INT): Ditto.
8021 (V8DI_FTYPE_V8DI_V2DI_INT): Ditto.
8022 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
8023 (V8DI_FTYPE_V16SI_V16SI): Ditto.
8024 (V8DI_FTYPE_V64QI_V64QI): Ditto.
8025 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
8026 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
8027 (V2DI_FTYPE_V8DI_INT): Ditto.
8028 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
8029 (QI_FTYPE_QI): Ditto.
8030 (SI_FTYPE_SI): Ditto.
8031 (DI_FTYPE_DI): Ditto.
8032 (HI_FTYPE_V16QI): Ditto.
8033 (SI_FTYPE_V32QI): Ditto.
8034 (DI_FTYPE_V64QI): Ditto.
8035 (QI_FTYPE_V8HI): Ditto.
8036 (HI_FTYPE_V16HI): Ditto.
8037 (SI_FTYPE_V32HI): Ditto.
8038 (QI_FTYPE_V4SI): Ditto.
8039 (QI_FTYPE_V8SI): Ditto.
8040 (HI_FTYPE_V16SI): Ditto.
8041 (QI_FTYPE_V2DI): Ditto.
8042 (QI_FTYPE_V4DI): Ditto.
8043 (QI_FTYPE_V8DI): Ditto.
8044 (V16QI_FTYPE_HI): Ditto.
8045 (V32QI_FTYPE_SI): Ditto.
8046 (V64QI_FTYPE_DI): Ditto.
8047 (V8HI_FTYPE_QI): Ditto.
8048 (V16HI_FTYPE_HI): Ditto.
8049 (V32HI_FTYPE_SI): Ditto.
8050 (V4SI_FTYPE_QI): Ditto.
8051 (V4SI_FTYPE_HI): Ditto.
8052 (V8SI_FTYPE_QI): Ditto.
8053 (V8SI_FTYPE_HI): Ditto.
8054 (V2DI_FTYPE_QI): Ditto.
8055 (V4DI_FTYPE_QI): Ditto.
8056 (QI_FTYPE_QI_QI): Ditto.
8057 (SI_FTYPE_SI_SI): Ditto.
8058 (DI_FTYPE_DI_DI): Ditto.
8059 (QI_FTYPE_QI_INT): Ditto.
8060 (SI_FTYPE_SI_INT): Ditto.
8061 (DI_FTYPE_DI_INT): Ditto.
8062 (HI_FTYPE_V16QI_V16QI): Ditto.
8063 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
8064 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
8065 (SI_FTYPE_V32QI_V32QI): Ditto.
8066 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
8067 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
8068 (DI_FTYPE_V64QI_V64QI): Ditto.
8069 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
8070 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
8071 (QI_FTYPE_V8HI_V8HI): Ditto.
8072 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
8073 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
8074 (HI_FTYPE_V16HI_V16HI): Ditto.
8075 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
8076 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
8077 (SI_FTYPE_V32HI_V32HI): Ditto.
8078 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
8079 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
8080 (QI_FTYPE_V4SI_V4SI): Ditto.
8081 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
8082 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
8083 (QI_FTYPE_V8SI_V8SI): Ditto.
8084 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
8085 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
8086 (QI_FTYPE_V2DI_V2DI): Ditto.
8087 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
8088 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
8089 (QI_FTYPE_V4DI_V4DI): Ditto.
8090 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
8091 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
8092 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
8093 (V4DF_FTYPE_V4DF_V4DI_INT): Ditto.
8094 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
8095 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
8096 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
8097 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
8098 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
8099 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
8100 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
8101 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
8102 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
8103 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
8104 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
8105 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
8106 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
8107 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
8108 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
8109 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
8110 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
8111 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
8112 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
8113 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
8114 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
8115 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
8116 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
8117 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
8118 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
8119 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
8120 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
8121 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
8122 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
8123 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
8124 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
8125 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
8126 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
8127 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
8128 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
8129 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
8130 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
8131 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
8132 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
8133 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
8134 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
8135 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
8136 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
8137 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
8138 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
8139 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
8140 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
8141 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
8142 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
8143 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
8144 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
8145 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
8146 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
8147 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
8148 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
8149 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
8150 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
8151 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
8152 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
8153 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
8154 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
8155 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
8156 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
8157 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
8158 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
8159 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
8160 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
8161 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
8162 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
8163 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
8164 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
8165 (V32HI_FTYPE_V64QI_V64QI_INT): Ditto.
8166 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
8167 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
8168 (V16HI_FTYPE_V32QI_V32QI_INT): Ditto.
8169 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
8170 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
8171 (V8HI_FTYPE_V16QI_V16QI_INT): Ditto.
8172 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
8173 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
8174 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
8175 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
8176 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
8177 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
8178 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
8179 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
8180 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
8181 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
8182 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
8183 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
8184 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
8185 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
8186 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
8187 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
8188 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
8189 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
8190 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
8191 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
8192 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
8193 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
8194 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
8195 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
8196 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
8197 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
8198 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
8199 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
8200 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
8201 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
8202 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
8203 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
8204 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
8205 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
8206 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
8207 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
8208 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
8209 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
8210 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
8211 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
8212 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
8213 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
8214 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
8215 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
8216 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
8217 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
8218 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
8219 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
8220 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
8221 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
8222 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
8223 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
8224 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
8225 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
8226 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
8227 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
8228 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
8229 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
8230 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
8231 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
8232 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
8233 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
8234 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
8235 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
8236 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
8237 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
8238 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
8239 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
8240 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
8241 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
8242 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
8243 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
8244 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
8245 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
8246 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
8247 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
8248 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
8249 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
8250 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
8251 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
8252 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
8253 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
8254 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
8255 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
8256 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
8257 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
8258 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
8259 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
8260 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
8261 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
8262 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
8263 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
8264 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
8265 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
8266 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
8267 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
8268 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
8269 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
8270 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
8271 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
8272 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
8273 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
8274 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
8275 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
8276 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
8277 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
8278 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
8279 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
8280 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
8281 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
8282 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
8283 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
8284 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
8285 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
8286 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
8287 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
8288 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
8289 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
8290 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
8291 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
8292 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
8293 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
8294 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
8295 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
8296 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
8297 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
8298 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
8299 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
8300 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
8301 (QI_FTYPE_V8DF_INT): Ditto.
8302 (QI_FTYPE_V4DF_INT): Ditto.
8303 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
8304 (QI_FTYPE_V2DF_INT): Ditto.
8305 (HI_FTYPE_V16SF_INT): Ditto.
8306 (QI_FTYPE_V8SF_INT): Ditto.
8307 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
8308 (QI_FTYPE_V4SF_INT): Ditto.
8309 (QI_FTYPE_V8DF_INT_QI): Ditto.
8310 (QI_FTYPE_V4DF_INT_QI): Ditto.
8311 (QI_FTYPE_V2DF_INT_QI): Ditto.
8312 (HI_FTYPE_V16SF_INT_HI): Ditto.
8313 (QI_FTYPE_V8SF_INT_QI): Ditto.
8314 (QI_FTYPE_V4SF_INT_QI): Ditto.
8315 (V8DI_FTYPE_V8DF_V8DI_QI_INT): Ditto.
8316 (V8DI_FTYPE_V8SF_V8DI_QI_INT): Ditto.
8317 (V8DF_FTYPE_V8DI_V8DF_QI_INT): Ditto.
8318 (V8SF_FTYPE_V8DI_V8SF_QI_INT): Ditto.
8319 (V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_QI_INT): Ditto.
8320 (V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_QI_INT): Ditto.
8321 (V4DF_FTYPE_V4DF_PCDOUBLE_V8SI_QI_INT): Ditto.
8322 (V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_QI_INT): Ditto.
8323 (V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_QI_INT): Ditto.
8324 (V4SF_FTYPE_V4SF_PCFLOAT_V4SI_QI_INT): Ditto.
8325 (V8SF_FTYPE_V8SF_PCFLOAT_V8SI_QI_INT): Ditto.
8326 (V4SF_FTYPE_V4SF_PCFLOAT_V2DI_QI_INT): Ditto.
8327 (V4SF_FTYPE_V4SF_PCFLOAT_V4DI_QI_INT): Ditto.
8328 (V8SF_FTYPE_V8SF_PCFLOAT_V4DI_QI_INT): Ditto.
8329 (V2DI_FTYPE_V2DI_PCINT64_V4SI_QI_INT): Ditto.
8330 (V4DI_FTYPE_V4DI_PCINT64_V4SI_QI_INT): Ditto.
8331 (V4DI_FTYPE_V4DI_PCINT64_V8SI_QI_INT): Ditto.
8332 (V2DI_FTYPE_V2DI_PCINT64_V2DI_QI_INT): Ditto.
8333 (V4DI_FTYPE_V4DI_PCINT64_V4DI_QI_INT): Ditto.
8334 (V4SI_FTYPE_V4SI_PCINT_V4SI_QI_INT): Ditto.
8335 (V8SI_FTYPE_V8SI_PCINT_V8SI_QI_INT): Ditto.
8336 (V4SI_FTYPE_V4SI_PCINT_V2DI_QI_INT): Ditto.
8337 (V4SI_FTYPE_V4SI_PCINT_V4DI_QI_INT): Ditto.
8338 (V8SI_FTYPE_V8SI_PCINT_V4DI_QI_INT): Ditto.
8339 (VOID_FTYPE_PFLOAT_QI_V8SI_V8SF_INT): Ditto.
8340 (VOID_FTYPE_PFLOAT_QI_V4SI_V4SF_INT): Ditto.
8341 (VOID_FTYPE_PDOUBLE_QI_V4SI_V4DF_INT): Ditto.
8342 (VOID_FTYPE_PDOUBLE_QI_V4SI_V2DF_INT): Ditto.
8343 (VOID_FTYPE_PFLOAT_QI_V4DI_V4SF_INT): Ditto.
8344 (VOID_FTYPE_PFLOAT_QI_V2DI_V4SF_INT): Ditto.
8345 (VOID_FTYPE_PDOUBLE_QI_V4DI_V4DF_INT): Ditto.
8346 (VOID_FTYPE_PDOUBLE_QI_V2DI_V2DF_INT): Ditto.
8347 (VOID_FTYPE_PINT_QI_V8SI_V8SI_INT): Ditto.
8348 (VOID_FTYPE_PINT_QI_V4SI_V4SI_INT): Ditto.
8349 (VOID_FTYPE_PLONGLONG_QI_V4SI_V4DI_INT): Ditto.
8350 (VOID_FTYPE_PLONGLONG_QI_V4SI_V2DI_INT): Ditto.
8351 (VOID_FTYPE_PINT_QI_V4DI_V4SI_INT): Ditto.
8352 (VOID_FTYPE_PINT_QI_V2DI_V4SI_INT): Ditto.
8353 (VOID_FTYPE_PLONGLONG_QI_V4DI_V4DI_INT): Ditto.
8354 (VOID_FTYPE_PLONGLONG_QI_V2DI_V2DI_INT): Ditto.
8355 (V8DI_FTYPE_V8DI_INT): Ditto.
8356 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
8357 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
8358 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
8359 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
8360 (V2DF_FTYPE_ V2DF_ V2DF_ V2DI_ INT_ QI): Remove.
8361 (V4SF_FTYPE_ V4SF_ V2DF_ V4SF_ QI): Ditto.
8362 (V4SF_FTYPE_ V4SF_ V4SF_ V4SF_ QI): Ditto.
8363 (V2DF_FTYPE_ PCDOUBLE_ V2DF_ QI): Ditto.
8364 (V4SF_FTYPE_ PCFLOAT_ V4SF_ QI): Ditto.
8365 (V16QI_FTYPE_ V16SI_ V16QI_ HI): Ditto.
8366 (V16QI_FTYPE_ V8DI_ V16QI_ QI): Ditto.
8367 (V4SF_FTYPE_ V4SF_ V4SF_ INT_ V4SF_ QI): Ditto.
8368 (V2DF_FTYPE_ V2DF_ V2DF_ INT_ V2DF_ QI): Ditto.
8369 (V8DI_FTYPE_ V16SI_ V16SI_ V8DI_ QI): Ditto.
8370 * config/i386/i386.c (ix86_builtins):
8371 Add IX86_BUILTIN_PMOVUSQD256_MEM, IX86_BUILTIN_PMOVUSQD128_MEM,
8372 IX86_BUILTIN_PMOVSQD256_MEM, IX86_BUILTIN_PMOVSQD128_MEM,
8373 IX86_BUILTIN_PMOVQD256_MEM, IX86_BUILTIN_PMOVQD128_MEM,
8374 IX86_BUILTIN_PMOVUSQW256_MEM, IX86_BUILTIN_PMOVUSQW128_MEM,
8375 IX86_BUILTIN_PMOVSQW256_MEM, IX86_BUILTIN_PMOVSQW128_MEM,
8376 IX86_BUILTIN_PMOVQW256_MEM, IX86_BUILTIN_PMOVQW128_MEM,
8377 IX86_BUILTIN_PMOVUSQB256_MEM, IX86_BUILTIN_PMOVUSQB128_MEM,
8378 IX86_BUILTIN_PMOVSQB256_MEM, IX86_BUILTIN_PMOVSQB128_MEM,
8379 IX86_BUILTIN_PMOVQB256_MEM, IX86_BUILTIN_PMOVQB128_MEM,
8380 IX86_BUILTIN_PMOVUSDW256_MEM, IX86_BUILTIN_PMOVUSDW128_MEM,
8381 IX86_BUILTIN_PMOVSDW256_MEM, IX86_BUILTIN_PMOVSDW128_MEM,
8382 IX86_BUILTIN_PMOVDW256_MEM, IX86_BUILTIN_PMOVDW128_MEM,
8383 IX86_BUILTIN_PMOVUSDB256_MEM, IX86_BUILTIN_PMOVUSDB128_MEM,
8384 IX86_BUILTIN_PMOVSDB256_MEM, IX86_BUILTIN_PMOVSDB128_MEM,
8385 IX86_BUILTIN_PMOVDB256_MEM, IX86_BUILTIN_PMOVDB128_MEM,
8386 IX86_BUILTIN_MOVDQA64LOAD256_MASK, IX86_BUILTIN_MOVDQA64LOAD128_MASK,
8387 IX86_BUILTIN_MOVDQA32LOAD256_MASK, IX86_BUILTIN_MOVDQA32LOAD128_MASK,
8388 IX86_BUILTIN_MOVDQA64STORE256_MASK, IX86_BUILTIN_MOVDQA64STORE128_MASK,
8389 IX86_BUILTIN_MOVDQA32STORE256_MASK, IX86_BUILTIN_MOVDQA32STORE128_MASK,
8390 IX86_BUILTIN_LOADAPD256_MASK, IX86_BUILTIN_LOADAPD128_MASK,
8391 IX86_BUILTIN_LOADAPS256_MASK, IX86_BUILTIN_LOADAPS128_MASK,
8392 IX86_BUILTIN_STOREAPD256_MASK, IX86_BUILTIN_STOREAPD128_MASK,
8393 IX86_BUILTIN_STOREAPS256_MASK, IX86_BUILTIN_STOREAPS128_MASK,
8394 IX86_BUILTIN_LOADUPD256_MASK, IX86_BUILTIN_LOADUPD128_MASK,
8395 IX86_BUILTIN_LOADUPS256_MASK, IX86_BUILTIN_LOADUPS128_MASK,
8396 IX86_BUILTIN_STOREUPD256_MASK, IX86_BUILTIN_STOREUPD128_MASK,
8397 IX86_BUILTIN_STOREUPS256_MASK, IX86_BUILTIN_STOREUPS128_MASK,
8398 IX86_BUILTIN_LOADDQUDI256_MASK, IX86_BUILTIN_LOADDQUDI128_MASK,
8399 IX86_BUILTIN_LOADDQUSI256_MASK, IX86_BUILTIN_LOADDQUSI128_MASK,
8400 IX86_BUILTIN_LOADDQUHI256_MASK, IX86_BUILTIN_LOADDQUHI128_MASK,
8401 IX86_BUILTIN_LOADDQUQI256_MASK, IX86_BUILTIN_LOADDQUQI128_MASK,
8402 IX86_BUILTIN_STOREDQUDI256_MASK, IX86_BUILTIN_STOREDQUDI128_MASK,
8403 IX86_BUILTIN_STOREDQUSI256_MASK, IX86_BUILTIN_STOREDQUSI128_MASK,
8404 IX86_BUILTIN_STOREDQUHI256_MASK, IX86_BUILTIN_STOREDQUHI128_MASK,
8405 IX86_BUILTIN_STOREDQUQI256_MASK, IX86_BUILTIN_STOREDQUQI128_MASK,
8406 IX86_BUILTIN_COMPRESSPDSTORE256, IX86_BUILTIN_COMPRESSPDSTORE128,
8407 IX86_BUILTIN_COMPRESSPSSTORE256, IX86_BUILTIN_COMPRESSPSSTORE128,
8408 IX86_BUILTIN_PCOMPRESSQSTORE256, IX86_BUILTIN_PCOMPRESSQSTORE128,
8409 IX86_BUILTIN_PCOMPRESSDSTORE256, IX86_BUILTIN_PCOMPRESSDSTORE128,
8410 IX86_BUILTIN_EXPANDPDLOAD256, IX86_BUILTIN_EXPANDPDLOAD128,
8411 IX86_BUILTIN_EXPANDPSLOAD256, IX86_BUILTIN_EXPANDPSLOAD128,
8412 IX86_BUILTIN_PEXPANDQLOAD256, IX86_BUILTIN_PEXPANDQLOAD128,
8413 IX86_BUILTIN_PEXPANDDLOAD256, IX86_BUILTIN_PEXPANDDLOAD128,
8414 IX86_BUILTIN_EXPANDPDLOAD256Z, IX86_BUILTIN_EXPANDPDLOAD128Z,
8415 IX86_BUILTIN_EXPANDPSLOAD256Z, IX86_BUILTIN_EXPANDPSLOAD128Z,
8416 IX86_BUILTIN_PEXPANDQLOAD256Z, IX86_BUILTIN_PEXPANDQLOAD128Z,
8417 IX86_BUILTIN_PEXPANDDLOAD256Z, IX86_BUILTIN_PEXPANDDLOAD128Z,
8418 IX86_BUILTIN_PALIGNR256_MASK, IX86_BUILTIN_PALIGNR128_MASK,
8419 IX86_BUILTIN_MOVDQA64_256_MASK, IX86_BUILTIN_MOVDQA64_128_MASK,
8420 IX86_BUILTIN_MOVDQA32_256_MASK, IX86_BUILTIN_MOVDQA32_128_MASK,
8421 IX86_BUILTIN_MOVAPD256_MASK, IX86_BUILTIN_MOVAPD128_MASK,
8422 IX86_BUILTIN_MOVAPS256_MASK, IX86_BUILTIN_MOVAPS128_MASK,
8423 IX86_BUILTIN_MOVDQUHI256_MASK, IX86_BUILTIN_MOVDQUHI128_MASK,
8424 IX86_BUILTIN_MOVDQUQI256_MASK, IX86_BUILTIN_MOVDQUQI128_MASK,
8425 IX86_BUILTIN_MINPS128_MASK, IX86_BUILTIN_MAXPS128_MASK,
8426 IX86_BUILTIN_MINPD128_MASK, IX86_BUILTIN_MAXPD128_MASK,
8427 IX86_BUILTIN_MAXPD256_MASK, IX86_BUILTIN_MAXPS256_MASK,
8428 IX86_BUILTIN_MINPD256_MASK, IX86_BUILTIN_MINPS256_MASK,
8429 IX86_BUILTIN_MULPS128_MASK, IX86_BUILTIN_DIVPS128_MASK,
8430 IX86_BUILTIN_MULPD128_MASK, IX86_BUILTIN_DIVPD128_MASK,
8431 IX86_BUILTIN_DIVPD256_MASK, IX86_BUILTIN_DIVPS256_MASK,
8432 IX86_BUILTIN_MULPD256_MASK, IX86_BUILTIN_MULPS256_MASK,
8433 IX86_BUILTIN_ADDPD128_MASK, IX86_BUILTIN_ADDPD256_MASK,
8434 IX86_BUILTIN_ADDPS128_MASK, IX86_BUILTIN_ADDPS256_MASK,
8435 IX86_BUILTIN_SUBPD128_MASK, IX86_BUILTIN_SUBPD256_MASK,
8436 IX86_BUILTIN_SUBPS128_MASK, IX86_BUILTIN_SUBPS256_MASK,
8437 IX86_BUILTIN_XORPD256_MASK, IX86_BUILTIN_XORPD128_MASK,
8438 IX86_BUILTIN_XORPS256_MASK, IX86_BUILTIN_XORPS128_MASK,
8439 IX86_BUILTIN_ORPD256_MASK, IX86_BUILTIN_ORPD128_MASK,
8440 IX86_BUILTIN_ORPS256_MASK, IX86_BUILTIN_ORPS128_MASK,
8441 IX86_BUILTIN_BROADCASTF32x2_256, IX86_BUILTIN_BROADCASTI32x2_256,
8442 IX86_BUILTIN_BROADCASTI32x2_128, IX86_BUILTIN_BROADCASTF64X2_256,
8443 IX86_BUILTIN_BROADCASTI64X2_256, IX86_BUILTIN_BROADCASTF32X4_256,
8444 IX86_BUILTIN_BROADCASTI32X4_256, IX86_BUILTIN_EXTRACTF32X4_256,
8445 IX86_BUILTIN_EXTRACTI32X4_256, IX86_BUILTIN_DBPSADBW256,
8446 IX86_BUILTIN_DBPSADBW128, IX86_BUILTIN_CVTTPD2QQ256,
8447 IX86_BUILTIN_CVTTPD2QQ128, IX86_BUILTIN_CVTTPD2UQQ256,
8448 IX86_BUILTIN_CVTTPD2UQQ128, IX86_BUILTIN_CVTPD2QQ256,
8449 IX86_BUILTIN_CVTPD2QQ128, IX86_BUILTIN_CVTPD2UQQ256,
8450 IX86_BUILTIN_CVTPD2UQQ128, IX86_BUILTIN_CVTPD2UDQ256_MASK,
8451 IX86_BUILTIN_CVTPD2UDQ128_MASK, IX86_BUILTIN_CVTTPS2QQ256,
8452 IX86_BUILTIN_CVTTPS2QQ128, IX86_BUILTIN_CVTTPS2UQQ256,
8453 IX86_BUILTIN_CVTTPS2UQQ128, IX86_BUILTIN_CVTTPS2DQ256_MASK,
8454 IX86_BUILTIN_CVTTPS2DQ128_MASK, IX86_BUILTIN_CVTTPS2UDQ256,
8455 IX86_BUILTIN_CVTTPS2UDQ128, IX86_BUILTIN_CVTTPD2DQ256_MASK,
8456 IX86_BUILTIN_CVTTPD2DQ128_MASK, IX86_BUILTIN_CVTTPD2UDQ256_MASK,
8457 IX86_BUILTIN_CVTTPD2UDQ128_MASK, IX86_BUILTIN_CVTPD2DQ256_MASK,
8458 IX86_BUILTIN_CVTPD2DQ128_MASK, IX86_BUILTIN_CVTDQ2PD256_MASK,
8459 IX86_BUILTIN_CVTDQ2PD128_MASK, IX86_BUILTIN_CVTUDQ2PD256_MASK,
8460 IX86_BUILTIN_CVTUDQ2PD128_MASK, IX86_BUILTIN_CVTDQ2PS256_MASK,
8461 IX86_BUILTIN_CVTDQ2PS128_MASK, IX86_BUILTIN_CVTUDQ2PS256_MASK,
8462 IX86_BUILTIN_CVTUDQ2PS128_MASK, IX86_BUILTIN_CVTPS2PD256_MASK,
8463 IX86_BUILTIN_CVTPS2PD128_MASK, IX86_BUILTIN_PBROADCASTB256_MASK,
8464 IX86_BUILTIN_PBROADCASTB256_GPR_MASK, IX86_BUILTIN_PBROADCASTB128_MASK,
8465 IX86_BUILTIN_PBROADCASTB128_GPR_MASK, IX86_BUILTIN_PBROADCASTW256_MASK,
8466 IX86_BUILTIN_PBROADCASTW256_GPR_MASK, IX86_BUILTIN_PBROADCASTW128_MASK,
8467 IX86_BUILTIN_PBROADCASTW128_GPR_MASK, IX86_BUILTIN_PBROADCASTD256_MASK,
8468 IX86_BUILTIN_PBROADCASTD256_GPR_MASK, IX86_BUILTIN_PBROADCASTD128_MASK,
8469 IX86_BUILTIN_PBROADCASTD128_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MASK,
8470 IX86_BUILTIN_PBROADCASTQ256_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
8471 IX86_BUILTIN_PBROADCASTQ128_MASK, IX86_BUILTIN_PBROADCASTQ128_GPR_MASK,
8472 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK, IX86_BUILTIN_BROADCASTSS256,
8473 IX86_BUILTIN_BROADCASTSS128, IX86_BUILTIN_BROADCASTSD256,
8474 IX86_BUILTIN_EXTRACTF64X2_256, IX86_BUILTIN_EXTRACTI64X2_256,
8475 IX86_BUILTIN_INSERTF32X4_256, IX86_BUILTIN_INSERTI32X4_256,
8476 IX86_BUILTIN_PMOVSXBW256_MASK, IX86_BUILTIN_PMOVSXBW128_MASK,
8477 IX86_BUILTIN_PMOVSXBD256_MASK, IX86_BUILTIN_PMOVSXBD128_MASK,
8478 IX86_BUILTIN_PMOVSXBQ256_MASK, IX86_BUILTIN_PMOVSXBQ128_MASK,
8479 IX86_BUILTIN_PMOVSXWD256_MASK, IX86_BUILTIN_PMOVSXWD128_MASK,
8480 IX86_BUILTIN_PMOVSXWQ256_MASK, IX86_BUILTIN_PMOVSXWQ128_MASK,
8481 IX86_BUILTIN_PMOVSXDQ256_MASK, IX86_BUILTIN_PMOVSXDQ128_MASK,
8482 IX86_BUILTIN_PMOVZXBW256_MASK, IX86_BUILTIN_PMOVZXBW128_MASK,
8483 IX86_BUILTIN_PMOVZXBD256_MASK, IX86_BUILTIN_PMOVZXBD128_MASK,
8484 IX86_BUILTIN_PMOVZXBQ256_MASK, IX86_BUILTIN_PMOVZXBQ128_MASK,
8485 IX86_BUILTIN_PMOVZXWD256_MASK, IX86_BUILTIN_PMOVZXWD128_MASK,
8486 IX86_BUILTIN_PMOVZXWQ256_MASK, IX86_BUILTIN_PMOVZXWQ128_MASK,
8487 IX86_BUILTIN_PMOVZXDQ256_MASK, IX86_BUILTIN_PMOVZXDQ128_MASK,
8488 IX86_BUILTIN_REDUCEPD256_MASK, IX86_BUILTIN_REDUCEPD128_MASK,
8489 IX86_BUILTIN_REDUCEPS256_MASK, IX86_BUILTIN_REDUCEPS128_MASK,
8490 IX86_BUILTIN_REDUCESD_MASK, IX86_BUILTIN_REDUCESS_MASK,
8491 IX86_BUILTIN_VPERMVARHI256_MASK, IX86_BUILTIN_VPERMVARHI128_MASK,
8492 IX86_BUILTIN_VPERMT2VARHI256, IX86_BUILTIN_VPERMT2VARHI256_MASKZ,
8493 IX86_BUILTIN_VPERMT2VARHI128, IX86_BUILTIN_VPERMT2VARHI128_MASKZ,
8494 IX86_BUILTIN_VPERMI2VARHI256, IX86_BUILTIN_VPERMI2VARHI128,
8495 IX86_BUILTIN_RCP14PD256, IX86_BUILTIN_RCP14PD128,
8496 IX86_BUILTIN_RCP14PS256, IX86_BUILTIN_RCP14PS128,
8497 IX86_BUILTIN_RSQRT14PD256_MASK, IX86_BUILTIN_RSQRT14PD128_MASK,
8498 IX86_BUILTIN_RSQRT14PS256_MASK, IX86_BUILTIN_RSQRT14PS128_MASK,
8499 IX86_BUILTIN_SQRTPD256_MASK, IX86_BUILTIN_SQRTPD128_MASK,
8500 IX86_BUILTIN_SQRTPS256_MASK, IX86_BUILTIN_SQRTPS128_MASK,
8501 IX86_BUILTIN_PADDB128_MASK, IX86_BUILTIN_PADDW128_MASK,
8502 IX86_BUILTIN_PADDD128_MASK, IX86_BUILTIN_PADDQ128_MASK,
8503 IX86_BUILTIN_PSUBB128_MASK, IX86_BUILTIN_PSUBW128_MASK,
8504 IX86_BUILTIN_PSUBD128_MASK, IX86_BUILTIN_PSUBQ128_MASK,
8505 IX86_BUILTIN_PADDSB128_MASK, IX86_BUILTIN_PADDSW128_MASK,
8506 IX86_BUILTIN_PSUBSB128_MASK, IX86_BUILTIN_PSUBSW128_MASK,
8507 IX86_BUILTIN_PADDUSB128_MASK, IX86_BUILTIN_PADDUSW128_MASK,
8508 IX86_BUILTIN_PSUBUSB128_MASK, IX86_BUILTIN_PSUBUSW128_MASK,
8509 IX86_BUILTIN_PADDB256_MASK, IX86_BUILTIN_PADDW256_MASK,
8510 IX86_BUILTIN_PADDD256_MASK, IX86_BUILTIN_PADDQ256_MASK,
8511 IX86_BUILTIN_PADDSB256_MASK, IX86_BUILTIN_PADDSW256_MASK,
8512 IX86_BUILTIN_PADDUSB256_MASK, IX86_BUILTIN_PADDUSW256_MASK,
8513 IX86_BUILTIN_PSUBB256_MASK, IX86_BUILTIN_PSUBW256_MASK,
8514 IX86_BUILTIN_PSUBD256_MASK, IX86_BUILTIN_PSUBQ256_MASK,
8515 IX86_BUILTIN_PSUBSB256_MASK, IX86_BUILTIN_PSUBSW256_MASK,
8516 IX86_BUILTIN_PSUBUSB256_MASK, IX86_BUILTIN_PSUBUSW256_MASK,
8517 IX86_BUILTIN_SHUF_F64x2_256, IX86_BUILTIN_SHUF_I64x2_256,
8518 IX86_BUILTIN_SHUF_I32x4_256, IX86_BUILTIN_SHUF_F32x4_256,
8519 IX86_BUILTIN_PMOVWB128, IX86_BUILTIN_PMOVWB256,
8520 IX86_BUILTIN_PMOVSWB128, IX86_BUILTIN_PMOVSWB256,
8521 IX86_BUILTIN_PMOVUSWB128, IX86_BUILTIN_PMOVUSWB256,
8522 IX86_BUILTIN_PMOVDB128, IX86_BUILTIN_PMOVDB256,
8523 IX86_BUILTIN_PMOVSDB128, IX86_BUILTIN_PMOVSDB256,
8524 IX86_BUILTIN_PMOVUSDB128, IX86_BUILTIN_PMOVUSDB256,
8525 IX86_BUILTIN_PMOVDW128, IX86_BUILTIN_PMOVDW256,
8526 IX86_BUILTIN_PMOVSDW128, IX86_BUILTIN_PMOVSDW256,
8527 IX86_BUILTIN_PMOVUSDW128, IX86_BUILTIN_PMOVUSDW256,
8528 IX86_BUILTIN_PMOVQB128, IX86_BUILTIN_PMOVQB256,
8529 IX86_BUILTIN_PMOVSQB128, IX86_BUILTIN_PMOVSQB256,
8530 IX86_BUILTIN_PMOVUSQB128, IX86_BUILTIN_PMOVUSQB256,
8531 IX86_BUILTIN_PMOVQW128, IX86_BUILTIN_PMOVQW256,
8532 IX86_BUILTIN_PMOVSQW128, IX86_BUILTIN_PMOVSQW256,
8533 IX86_BUILTIN_PMOVUSQW128, IX86_BUILTIN_PMOVUSQW256,
8534 IX86_BUILTIN_PMOVQD128, IX86_BUILTIN_PMOVQD256,
8535 IX86_BUILTIN_PMOVSQD128, IX86_BUILTIN_PMOVSQD256,
8536 IX86_BUILTIN_PMOVUSQD128, IX86_BUILTIN_PMOVUSQD256,
8537 IX86_BUILTIN_RANGEPD256, IX86_BUILTIN_RANGEPD128,
8538 IX86_BUILTIN_RANGEPS256, IX86_BUILTIN_RANGEPS128,
8539 IX86_BUILTIN_GETEXPPS256, IX86_BUILTIN_GETEXPPD256,
8540 IX86_BUILTIN_GETEXPPS128, IX86_BUILTIN_GETEXPPD128,
8541 IX86_BUILTIN_FIXUPIMMPD256_MASK, IX86_BUILTIN_FIXUPIMMPD256_MASKZ,
8542 IX86_BUILTIN_FIXUPIMMPS256_MASK, IX86_BUILTIN_FIXUPIMMPS256_MASKZ,
8543 IX86_BUILTIN_FIXUPIMMPD128_MASK, IX86_BUILTIN_FIXUPIMMPD128_MASKZ,
8544 IX86_BUILTIN_FIXUPIMMPS128_MASK, IX86_BUILTIN_FIXUPIMMPS128_MASKZ,
8545 IX86_BUILTIN_PABSQ256, IX86_BUILTIN_PABSQ128,
8546 IX86_BUILTIN_PABSD256_MASK, IX86_BUILTIN_PABSD128_MASK,
8547 IX86_BUILTIN_PMULHRSW256_MASK, IX86_BUILTIN_PMULHRSW128_MASK,
8548 IX86_BUILTIN_PMULHUW128_MASK, IX86_BUILTIN_PMULHUW256_MASK,
8549 IX86_BUILTIN_PMULHW256_MASK, IX86_BUILTIN_PMULHW128_MASK,
8550 IX86_BUILTIN_PMULLW256_MASK, IX86_BUILTIN_PMULLW128_MASK,
8551 IX86_BUILTIN_PMULLQ256, IX86_BUILTIN_PMULLQ128,
8552 IX86_BUILTIN_ANDPD256_MASK, IX86_BUILTIN_ANDPD128_MASK,
8553 IX86_BUILTIN_ANDPS256_MASK, IX86_BUILTIN_ANDPS128_MASK,
8554 IX86_BUILTIN_ANDNPD256_MASK, IX86_BUILTIN_ANDNPD128_MASK,
8555 IX86_BUILTIN_ANDNPS256_MASK, IX86_BUILTIN_ANDNPS128_MASK,
8556 IX86_BUILTIN_PSLLWI128_MASK, IX86_BUILTIN_PSLLDI128_MASK,
8557 IX86_BUILTIN_PSLLQI128_MASK, IX86_BUILTIN_PSLLW128_MASK,
8558 IX86_BUILTIN_PSLLD128_MASK, IX86_BUILTIN_PSLLQ128_MASK,
8559 IX86_BUILTIN_PSLLWI256_MASK , IX86_BUILTIN_PSLLW256_MASK,
8560 IX86_BUILTIN_PSLLDI256_MASK, IX86_BUILTIN_PSLLD256_MASK,
8561 IX86_BUILTIN_PSLLQI256_MASK, IX86_BUILTIN_PSLLQ256_MASK,
8562 IX86_BUILTIN_PSRADI128_MASK, IX86_BUILTIN_PSRAD128_MASK,
8563 IX86_BUILTIN_PSRADI256_MASK, IX86_BUILTIN_PSRAD256_MASK,
8564 IX86_BUILTIN_PSRAQI128_MASK, IX86_BUILTIN_PSRAQ128_MASK,
8565 IX86_BUILTIN_PSRAQI256_MASK, IX86_BUILTIN_PSRAQ256_MASK,
8566 IX86_BUILTIN_PANDD256, IX86_BUILTIN_PANDD128,
8567 IX86_BUILTIN_PSRLDI128_MASK, IX86_BUILTIN_PSRLD128_MASK,
8568 IX86_BUILTIN_PSRLDI256_MASK, IX86_BUILTIN_PSRLD256_MASK,
8569 IX86_BUILTIN_PSRLQI128_MASK, IX86_BUILTIN_PSRLQ128_MASK,
8570 IX86_BUILTIN_PSRLQI256_MASK, IX86_BUILTIN_PSRLQ256_MASK,
8571 IX86_BUILTIN_PANDQ256, IX86_BUILTIN_PANDQ128,
8572 IX86_BUILTIN_PANDND256, IX86_BUILTIN_PANDND128,
8573 IX86_BUILTIN_PANDNQ256, IX86_BUILTIN_PANDNQ128,
8574 IX86_BUILTIN_PORD256, IX86_BUILTIN_PORD128,
8575 IX86_BUILTIN_PORQ256, IX86_BUILTIN_PORQ128,
8576 IX86_BUILTIN_PXORD256, IX86_BUILTIN_PXORD128,
8577 IX86_BUILTIN_PXORQ256, IX86_BUILTIN_PXORQ128,
8578 IX86_BUILTIN_PACKSSWB256_MASK, IX86_BUILTIN_PACKSSWB128_MASK,
8579 IX86_BUILTIN_PACKUSWB256_MASK, IX86_BUILTIN_PACKUSWB128_MASK,
8580 IX86_BUILTIN_RNDSCALEPS256, IX86_BUILTIN_RNDSCALEPD256,
8581 IX86_BUILTIN_RNDSCALEPS128, IX86_BUILTIN_RNDSCALEPD128,
8582 IX86_BUILTIN_VTERNLOGQ256_MASK, IX86_BUILTIN_VTERNLOGQ256_MASKZ,
8583 IX86_BUILTIN_VTERNLOGD256_MASK, IX86_BUILTIN_VTERNLOGD256_MASKZ,
8584 IX86_BUILTIN_VTERNLOGQ128_MASK, IX86_BUILTIN_VTERNLOGQ128_MASKZ,
8585 IX86_BUILTIN_VTERNLOGD128_MASK, IX86_BUILTIN_VTERNLOGD128_MASKZ,
8586 IX86_BUILTIN_SCALEFPD256, IX86_BUILTIN_SCALEFPS256,
8587 IX86_BUILTIN_SCALEFPD128, IX86_BUILTIN_SCALEFPS128,
8588 IX86_BUILTIN_VFMADDPD256_MASK, IX86_BUILTIN_VFMADDPD256_MASK3,
8589 IX86_BUILTIN_VFMADDPD256_MASKZ, IX86_BUILTIN_VFMADDPD128_MASK,
8590 IX86_BUILTIN_VFMADDPD128_MASK3, IX86_BUILTIN_VFMADDPD128_MASKZ,
8591 IX86_BUILTIN_VFMADDPS256_MASK, IX86_BUILTIN_VFMADDPS256_MASK3,
8592 IX86_BUILTIN_VFMADDPS256_MASKZ, IX86_BUILTIN_VFMADDPS128_MASK,
8593 IX86_BUILTIN_VFMADDPS128_MASK3, IX86_BUILTIN_VFMADDPS128_MASKZ,
8594 IX86_BUILTIN_VFMSUBPD256_MASK3, IX86_BUILTIN_VFMSUBPD128_MASK3,
8595 IX86_BUILTIN_VFMSUBPS256_MASK3, IX86_BUILTIN_VFMSUBPS128_MASK3,
8596 IX86_BUILTIN_VFNMADDPD256_MASK, IX86_BUILTIN_VFNMADDPD128_MASK,
8597 IX86_BUILTIN_VFNMADDPS256_MASK, IX86_BUILTIN_VFNMADDPS128_MASK,
8598 IX86_BUILTIN_VFNMSUBPD256_MASK, IX86_BUILTIN_VFNMSUBPD256_MASK3,
8599 IX86_BUILTIN_VFNMSUBPD128_MASK, IX86_BUILTIN_VFNMSUBPD128_MASK3,
8600 IX86_BUILTIN_VFNMSUBPS256_MASK, IX86_BUILTIN_VFNMSUBPS256_MASK3,
8601 IX86_BUILTIN_VFNMSUBPS128_MASK, IX86_BUILTIN_VFNMSUBPS128_MASK3,
8602 IX86_BUILTIN_VFMADDSUBPD256_MASK, IX86_BUILTIN_VFMADDSUBPD256_MASK3,
8603 IX86_BUILTIN_VFMADDSUBPD256_MASKZ, IX86_BUILTIN_VFMADDSUBPD128_MASK,
8604 IX86_BUILTIN_VFMADDSUBPD128_MASK3, IX86_BUILTIN_VFMADDSUBPD128_MASKZ,
8605 IX86_BUILTIN_VFMADDSUBPS256_MASK, IX86_BUILTIN_VFMADDSUBPS256_MASK3,
8606 IX86_BUILTIN_VFMADDSUBPS256_MASKZ, IX86_BUILTIN_VFMADDSUBPS128_MASK,
8607 IX86_BUILTIN_VFMADDSUBPS128_MASK3, IX86_BUILTIN_VFMADDSUBPS128_MASKZ,
8608 IX86_BUILTIN_VFMSUBADDPD256_MASK3, IX86_BUILTIN_VFMSUBADDPD128_MASK3,
8609 IX86_BUILTIN_VFMSUBADDPS256_MASK3, IX86_BUILTIN_VFMSUBADDPS128_MASK3,
8610 IX86_BUILTIN_INSERTF64X2_256, IX86_BUILTIN_INSERTI64X2_256,
8611 IX86_BUILTIN_PSRAVV16HI, IX86_BUILTIN_PSRAVV8HI,
8612 IX86_BUILTIN_PMADDUBSW256_MASK, IX86_BUILTIN_PMADDUBSW128_MASK,
8613 IX86_BUILTIN_PMADDWD256_MASK, IX86_BUILTIN_PMADDWD128_MASK,
8614 IX86_BUILTIN_PSRLVV16HI, IX86_BUILTIN_PSRLVV8HI,
8615 IX86_BUILTIN_CVTPS2DQ256_MASK, IX86_BUILTIN_CVTPS2DQ128_MASK,
8616 IX86_BUILTIN_CVTPS2UDQ256, IX86_BUILTIN_CVTPS2UDQ128,
8617 IX86_BUILTIN_CVTPS2QQ256, IX86_BUILTIN_CVTPS2QQ128,
8618 IX86_BUILTIN_CVTPS2UQQ256, IX86_BUILTIN_CVTPS2UQQ128,
8619 IX86_BUILTIN_GETMANTPS256, IX86_BUILTIN_GETMANTPS128,
8620 IX86_BUILTIN_GETMANTPD256, IX86_BUILTIN_GETMANTPD128,
8621 IX86_BUILTIN_MOVDDUP256_MASK, IX86_BUILTIN_MOVDDUP128_MASK,
8622 IX86_BUILTIN_MOVSHDUP256_MASK, IX86_BUILTIN_MOVSHDUP128_MASK,
8623 IX86_BUILTIN_MOVSLDUP256_MASK, IX86_BUILTIN_MOVSLDUP128_MASK,
8624 IX86_BUILTIN_CVTQQ2PS256, IX86_BUILTIN_CVTQQ2PS128,
8625 IX86_BUILTIN_CVTUQQ2PS256, IX86_BUILTIN_CVTUQQ2PS128,
8626 IX86_BUILTIN_CVTQQ2PD256, IX86_BUILTIN_CVTQQ2PD128,
8627 IX86_BUILTIN_CVTUQQ2PD256, IX86_BUILTIN_CVTUQQ2PD128,
8628 IX86_BUILTIN_VPERMT2VARQ256, IX86_BUILTIN_VPERMT2VARQ256_MASKZ,
8629 IX86_BUILTIN_VPERMT2VARD256, IX86_BUILTIN_VPERMT2VARD256_MASKZ,
8630 IX86_BUILTIN_VPERMI2VARQ256, IX86_BUILTIN_VPERMI2VARD256,
8631 IX86_BUILTIN_VPERMT2VARPD256, IX86_BUILTIN_VPERMT2VARPD256_MASKZ,
8632 IX86_BUILTIN_VPERMT2VARPS256, IX86_BUILTIN_VPERMT2VARPS256_MASKZ,
8633 IX86_BUILTIN_VPERMI2VARPD256, IX86_BUILTIN_VPERMI2VARPS256,
8634 IX86_BUILTIN_VPERMT2VARQ128, IX86_BUILTIN_VPERMT2VARQ128_MASKZ,
8635 IX86_BUILTIN_VPERMT2VARD128, IX86_BUILTIN_VPERMT2VARD128_MASKZ,
8636 IX86_BUILTIN_VPERMI2VARQ128, IX86_BUILTIN_VPERMI2VARD128,
8637 IX86_BUILTIN_VPERMT2VARPD128, IX86_BUILTIN_VPERMT2VARPD128_MASKZ,
8638 IX86_BUILTIN_VPERMT2VARPS128, IX86_BUILTIN_VPERMT2VARPS128_MASKZ,
8639 IX86_BUILTIN_VPERMI2VARPD128, IX86_BUILTIN_VPERMI2VARPS128,
8640 IX86_BUILTIN_PSHUFB256_MASK, IX86_BUILTIN_PSHUFB128_MASK,
8641 IX86_BUILTIN_PSHUFHW256_MASK, IX86_BUILTIN_PSHUFHW128_MASK,
8642 IX86_BUILTIN_PSHUFLW256_MASK, IX86_BUILTIN_PSHUFLW128_MASK,
8643 IX86_BUILTIN_PSHUFD256_MASK, IX86_BUILTIN_PSHUFD128_MASK,
8644 IX86_BUILTIN_SHUFPD256_MASK, IX86_BUILTIN_SHUFPD128_MASK,
8645 IX86_BUILTIN_SHUFPS256_MASK, IX86_BUILTIN_SHUFPS128_MASK,
8646 IX86_BUILTIN_PROLVQ256, IX86_BUILTIN_PROLVQ128,
8647 IX86_BUILTIN_PROLQ256, IX86_BUILTIN_PROLQ128,
8648 IX86_BUILTIN_PRORVQ256, IX86_BUILTIN_PRORVQ128,
8649 IX86_BUILTIN_PRORQ256, IX86_BUILTIN_PRORQ128,
8650 IX86_BUILTIN_PSRAVQ128, IX86_BUILTIN_PSRAVQ256,
8651 IX86_BUILTIN_PSLLVV4DI_MASK, IX86_BUILTIN_PSLLVV2DI_MASK,
8652 IX86_BUILTIN_PSLLVV8SI_MASK, IX86_BUILTIN_PSLLVV4SI_MASK,
8653 IX86_BUILTIN_PSRAVV8SI_MASK, IX86_BUILTIN_PSRAVV4SI_MASK,
8654 IX86_BUILTIN_PSRLVV4DI_MASK, IX86_BUILTIN_PSRLVV2DI_MASK,
8655 IX86_BUILTIN_PSRLVV8SI_MASK, IX86_BUILTIN_PSRLVV4SI_MASK,
8656 IX86_BUILTIN_PSRAWI256_MASK, IX86_BUILTIN_PSRAW256_MASK,
8657 IX86_BUILTIN_PSRAWI128_MASK, IX86_BUILTIN_PSRAW128_MASK,
8658 IX86_BUILTIN_PSRLWI256_MASK, IX86_BUILTIN_PSRLW256_MASK,
8659 IX86_BUILTIN_PSRLWI128_MASK, IX86_BUILTIN_PSRLW128_MASK,
8660 IX86_BUILTIN_PRORVD256, IX86_BUILTIN_PROLVD256,
8661 IX86_BUILTIN_PRORD256, IX86_BUILTIN_PROLD256,
8662 IX86_BUILTIN_PRORVD128, IX86_BUILTIN_PROLVD128,
8663 IX86_BUILTIN_PRORD128, IX86_BUILTIN_PROLD128,
8664 IX86_BUILTIN_FPCLASSPD256, IX86_BUILTIN_FPCLASSPD128,
8665 IX86_BUILTIN_FPCLASSSD, IX86_BUILTIN_FPCLASSPS256,
8666 IX86_BUILTIN_FPCLASSPS128, IX86_BUILTIN_FPCLASSSS,
8667 IX86_BUILTIN_CVTB2MASK128, IX86_BUILTIN_CVTB2MASK256,
8668 IX86_BUILTIN_CVTW2MASK128, IX86_BUILTIN_CVTW2MASK256,
8669 IX86_BUILTIN_CVTD2MASK128, IX86_BUILTIN_CVTD2MASK256,
8670 IX86_BUILTIN_CVTQ2MASK128, IX86_BUILTIN_CVTQ2MASK256,
8671 IX86_BUILTIN_CVTMASK2B128, IX86_BUILTIN_CVTMASK2B256,
8672 IX86_BUILTIN_CVTMASK2W128, IX86_BUILTIN_CVTMASK2W256,
8673 IX86_BUILTIN_CVTMASK2D128, IX86_BUILTIN_CVTMASK2D256,
8674 IX86_BUILTIN_CVTMASK2Q128, IX86_BUILTIN_CVTMASK2Q256,
8675 IX86_BUILTIN_PCMPEQB128_MASK, IX86_BUILTIN_PCMPEQB256_MASK,
8676 IX86_BUILTIN_PCMPEQW128_MASK, IX86_BUILTIN_PCMPEQW256_MASK,
8677 IX86_BUILTIN_PCMPEQD128_MASK, IX86_BUILTIN_PCMPEQD256_MASK,
8678 IX86_BUILTIN_PCMPEQQ128_MASK, IX86_BUILTIN_PCMPEQQ256_MASK,
8679 IX86_BUILTIN_PCMPGTB128_MASK, IX86_BUILTIN_PCMPGTB256_MASK,
8680 IX86_BUILTIN_PCMPGTW128_MASK, IX86_BUILTIN_PCMPGTW256_MASK,
8681 IX86_BUILTIN_PCMPGTD128_MASK, IX86_BUILTIN_PCMPGTD256_MASK,
8682 IX86_BUILTIN_PCMPGTQ128_MASK, IX86_BUILTIN_PCMPGTQ256_MASK,
8683 IX86_BUILTIN_PTESTMB128, IX86_BUILTIN_PTESTMB256,
8684 IX86_BUILTIN_PTESTMW128, IX86_BUILTIN_PTESTMW256,
8685 IX86_BUILTIN_PTESTMD128, IX86_BUILTIN_PTESTMD256,
8686 IX86_BUILTIN_PTESTMQ128, IX86_BUILTIN_PTESTMQ256,
8687 IX86_BUILTIN_PTESTNMB128, IX86_BUILTIN_PTESTNMB256,
8688 IX86_BUILTIN_PTESTNMW128, IX86_BUILTIN_PTESTNMW256,
8689 IX86_BUILTIN_PTESTNMD128, IX86_BUILTIN_PTESTNMD256,
8690 IX86_BUILTIN_PTESTNMQ128, IX86_BUILTIN_PTESTNMQ256,
8691 IX86_BUILTIN_PBROADCASTMB128, IX86_BUILTIN_PBROADCASTMB256,
8692 IX86_BUILTIN_PBROADCASTMW128, IX86_BUILTIN_PBROADCASTMW256,
8693 IX86_BUILTIN_COMPRESSPD256, IX86_BUILTIN_COMPRESSPD128,
8694 IX86_BUILTIN_COMPRESSPS256, IX86_BUILTIN_COMPRESSPS128,
8695 IX86_BUILTIN_PCOMPRESSQ256, IX86_BUILTIN_PCOMPRESSQ128,
8696 IX86_BUILTIN_PCOMPRESSD256, IX86_BUILTIN_PCOMPRESSD128,
8697 IX86_BUILTIN_EXPANDPD256, IX86_BUILTIN_EXPANDPD128,
8698 IX86_BUILTIN_EXPANDPS256, IX86_BUILTIN_EXPANDPS128,
8699 IX86_BUILTIN_PEXPANDQ256, IX86_BUILTIN_PEXPANDQ128,
8700 IX86_BUILTIN_PEXPANDD256, IX86_BUILTIN_PEXPANDD128,
8701 IX86_BUILTIN_EXPANDPD256Z, IX86_BUILTIN_EXPANDPD128Z,
8702 IX86_BUILTIN_EXPANDPS256Z, IX86_BUILTIN_EXPANDPS128Z,
8703 IX86_BUILTIN_PEXPANDQ256Z, IX86_BUILTIN_PEXPANDQ128Z,
8704 IX86_BUILTIN_PEXPANDD256Z, IX86_BUILTIN_PEXPANDD128Z,
8705 IX86_BUILTIN_PMAXSD256_MASK, IX86_BUILTIN_PMINSD256_MASK,
8706 IX86_BUILTIN_PMAXUD256_MASK, IX86_BUILTIN_PMINUD256_MASK,
8707 IX86_BUILTIN_PMAXSD128_MASK, IX86_BUILTIN_PMINSD128_MASK,
8708 IX86_BUILTIN_PMAXUD128_MASK, IX86_BUILTIN_PMINUD128_MASK,
8709 IX86_BUILTIN_PMAXSQ256_MASK, IX86_BUILTIN_PMINSQ256_MASK,
8710 IX86_BUILTIN_PMAXUQ256_MASK, IX86_BUILTIN_PMINUQ256_MASK,
8711 IX86_BUILTIN_PMAXSQ128_MASK, IX86_BUILTIN_PMINSQ128_MASK,
8712 IX86_BUILTIN_PMAXUQ128_MASK, IX86_BUILTIN_PMINUQ128_MASK,
8713 IX86_BUILTIN_PMINSB256_MASK, IX86_BUILTIN_PMINUB256_MASK,
8714 IX86_BUILTIN_PMAXSB256_MASK, IX86_BUILTIN_PMAXUB256_MASK,
8715 IX86_BUILTIN_PMINSB128_MASK, IX86_BUILTIN_PMINUB128_MASK,
8716 IX86_BUILTIN_PMAXSB128_MASK, IX86_BUILTIN_PMAXUB128_MASK,
8717 IX86_BUILTIN_PMINSW256_MASK, IX86_BUILTIN_PMINUW256_MASK,
8718 IX86_BUILTIN_PMAXSW256_MASK, IX86_BUILTIN_PMAXUW256_MASK,
8719 IX86_BUILTIN_PMINSW128_MASK, IX86_BUILTIN_PMINUW128_MASK,
8720 IX86_BUILTIN_PMAXSW128_MASK, IX86_BUILTIN_PMAXUW128_MASK,
8721 IX86_BUILTIN_VPCONFLICTQ256, IX86_BUILTIN_VPCONFLICTD256,
8722 IX86_BUILTIN_VPCLZCNTQ256, IX86_BUILTIN_VPCLZCNTD256,
8723 IX86_BUILTIN_UNPCKHPD256_MASK, IX86_BUILTIN_UNPCKHPD128_MASK,
8724 IX86_BUILTIN_UNPCKHPS256_MASK, IX86_BUILTIN_UNPCKHPS128_MASK,
8725 IX86_BUILTIN_UNPCKLPD256_MASK, IX86_BUILTIN_UNPCKLPD128_MASK,
8726 IX86_BUILTIN_UNPCKLPS256_MASK, IX86_BUILTIN_VPCONFLICTQ128,
8727 IX86_BUILTIN_VPCONFLICTD128, IX86_BUILTIN_VPCLZCNTQ128,
8728 IX86_BUILTIN_VPCLZCNTD128, IX86_BUILTIN_UNPCKLPS128_MASK,
8729 IX86_BUILTIN_ALIGND256, IX86_BUILTIN_ALIGNQ256,
8730 IX86_BUILTIN_ALIGND128, IX86_BUILTIN_ALIGNQ128,
8731 IX86_BUILTIN_CVTPS2PH256_MASK, IX86_BUILTIN_CVTPS2PH_MASK,
8732 IX86_BUILTIN_CVTPH2PS_MASK, IX86_BUILTIN_CVTPH2PS256_MASK,
8733 IX86_BUILTIN_PUNPCKHDQ128_MASK, IX86_BUILTIN_PUNPCKHDQ256_MASK,
8734 IX86_BUILTIN_PUNPCKHQDQ128_MASK, IX86_BUILTIN_PUNPCKHQDQ256_MASK,
8735 IX86_BUILTIN_PUNPCKLDQ128_MASK, IX86_BUILTIN_PUNPCKLDQ256_MASK,
8736 IX86_BUILTIN_PUNPCKLQDQ128_MASK, IX86_BUILTIN_PUNPCKLQDQ256_MASK,
8737 IX86_BUILTIN_PUNPCKHBW128_MASK, IX86_BUILTIN_PUNPCKHBW256_MASK,
8738 IX86_BUILTIN_PUNPCKHWD128_MASK, IX86_BUILTIN_PUNPCKHWD256_MASK,
8739 IX86_BUILTIN_PUNPCKLBW128_MASK, IX86_BUILTIN_PUNPCKLBW256_MASK,
8740 IX86_BUILTIN_PUNPCKLWD128_MASK, IX86_BUILTIN_PUNPCKLWD256_MASK,
8741 IX86_BUILTIN_PSLLVV16HI, IX86_BUILTIN_PSLLVV8HI,
8742 IX86_BUILTIN_PACKSSDW256_MASK, IX86_BUILTIN_PACKSSDW128_MASK,
8743 IX86_BUILTIN_PACKUSDW256_MASK, IX86_BUILTIN_PACKUSDW128_MASK,
8744 IX86_BUILTIN_PAVGB256_MASK, IX86_BUILTIN_PAVGW256_MASK,
8745 IX86_BUILTIN_PAVGB128_MASK, IX86_BUILTIN_PAVGW128_MASK,
8746 IX86_BUILTIN_VPERMVARSF256_MASK, IX86_BUILTIN_VPERMVARDF256_MASK,
8747 IX86_BUILTIN_VPERMDF256_MASK, IX86_BUILTIN_PABSB256_MASK,
8748 IX86_BUILTIN_PABSB128_MASK, IX86_BUILTIN_PABSW256_MASK,
8749 IX86_BUILTIN_PABSW128_MASK, IX86_BUILTIN_VPERMILVARPD_MASK,
8750 IX86_BUILTIN_VPERMILVARPS_MASK, IX86_BUILTIN_VPERMILVARPD256_MASK,
8751 IX86_BUILTIN_VPERMILVARPS256_MASK, IX86_BUILTIN_VPERMILPD_MASK,
8752 IX86_BUILTIN_VPERMILPS_MASK, IX86_BUILTIN_VPERMILPD256_MASK,
8753 IX86_BUILTIN_VPERMILPS256_MASK, IX86_BUILTIN_BLENDMQ256,
8754 IX86_BUILTIN_BLENDMD256, IX86_BUILTIN_BLENDMPD256,
8755 IX86_BUILTIN_BLENDMPS256, IX86_BUILTIN_BLENDMQ128,
8756 IX86_BUILTIN_BLENDMD128, IX86_BUILTIN_BLENDMPD128,
8757 IX86_BUILTIN_BLENDMPS128, IX86_BUILTIN_BLENDMW256,
8758 IX86_BUILTIN_BLENDMB256, IX86_BUILTIN_BLENDMW128,
8759 IX86_BUILTIN_BLENDMB128, IX86_BUILTIN_PMULLD256_MASK,
8760 IX86_BUILTIN_PMULLD128_MASK, IX86_BUILTIN_PMULUDQ256_MASK,
8761 IX86_BUILTIN_PMULDQ256_MASK, IX86_BUILTIN_PMULDQ128_MASK,
8762 IX86_BUILTIN_PMULUDQ128_MASK, IX86_BUILTIN_CVTPD2PS256_MASK,
8763 IX86_BUILTIN_CVTPD2PS_MASK, IX86_BUILTIN_VPERMVARSI256_MASK,
8764 IX86_BUILTIN_VPERMVARDI256_MASK, IX86_BUILTIN_VPERMDI256_MASK,
8765 IX86_BUILTIN_CMPQ256, IX86_BUILTIN_CMPD256,
8766 IX86_BUILTIN_UCMPQ256, IX86_BUILTIN_UCMPD256,
8767 IX86_BUILTIN_CMPB256, IX86_BUILTIN_CMPW256,
8768 IX86_BUILTIN_UCMPB256, IX86_BUILTIN_UCMPW256,
8769 IX86_BUILTIN_CMPPD256_MASK, IX86_BUILTIN_CMPPS256_MASK,
8770 IX86_BUILTIN_CMPQ128, IX86_BUILTIN_CMPD128,
8771 IX86_BUILTIN_UCMPQ128, IX86_BUILTIN_UCMPD128,
8772 IX86_BUILTIN_CMPB128, IX86_BUILTIN_CMPW128,
8773 IX86_BUILTIN_UCMPB128, IX86_BUILTIN_UCMPW128,
8774 IX86_BUILTIN_CMPPD128_MASK, IX86_BUILTIN_CMPPS128_MASK,
8775 IX86_BUILTIN_GATHER3SIV8SF, IX86_BUILTIN_GATHER3SIV4SF,
8776 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV2DF,
8777 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3DIV4SF,
8778 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
8779 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3SIV4SI,
8780 IX86_BUILTIN_GATHER3SIV4DI, IX86_BUILTIN_GATHER3SIV2DI,
8781 IX86_BUILTIN_GATHER3DIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
8782 IX86_BUILTIN_GATHER3DIV4DI, IX86_BUILTIN_GATHER3DIV2DI,
8783 IX86_BUILTIN_SCATTERSIV8SF, IX86_BUILTIN_SCATTERSIV4SF,
8784 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV2DF,
8785 IX86_BUILTIN_SCATTERDIV8SF, IX86_BUILTIN_SCATTERDIV4SF,
8786 IX86_BUILTIN_SCATTERDIV4DF, IX86_BUILTIN_SCATTERDIV2DF,
8787 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV4SI,
8788 IX86_BUILTIN_SCATTERSIV4DI, IX86_BUILTIN_SCATTERSIV2DI,
8789 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_SCATTERDIV4SI,
8790 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
8791 IX86_BUILTIN_RANGESD128, IX86_BUILTIN_RANGESS128,
8792 IX86_BUILTIN_KUNPCKWD, IX86_BUILTIN_KUNPCKDQ,
8793 IX86_BUILTIN_BROADCASTF32x2_512, IX86_BUILTIN_BROADCASTI32x2_512,
8794 IX86_BUILTIN_BROADCASTF64X2_512, IX86_BUILTIN_BROADCASTI64X2_512,
8795 IX86_BUILTIN_BROADCASTF32X8_512, IX86_BUILTIN_BROADCASTI32X8_512,
8796 IX86_BUILTIN_EXTRACTF64X2_512, IX86_BUILTIN_EXTRACTF32X8,
8797 IX86_BUILTIN_EXTRACTI64X2_512, IX86_BUILTIN_EXTRACTI32X8,
8798 IX86_BUILTIN_REDUCEPD512_MASK, IX86_BUILTIN_REDUCEPS512_MASK,
8799 IX86_BUILTIN_PMULLQ512, IX86_BUILTIN_XORPD512,
8800 IX86_BUILTIN_XORPS512, IX86_BUILTIN_ORPD512,
8801 IX86_BUILTIN_ORPS512, IX86_BUILTIN_ANDPD512,
8802 IX86_BUILTIN_ANDPS512, IX86_BUILTIN_ANDNPD512,
8803 IX86_BUILTIN_ANDNPS512, IX86_BUILTIN_INSERTF32X8,
8804 IX86_BUILTIN_INSERTI32X8, IX86_BUILTIN_INSERTF64X2_512,
8805 IX86_BUILTIN_INSERTI64X2_512, IX86_BUILTIN_FPCLASSPD512,
8806 IX86_BUILTIN_FPCLASSPS512, IX86_BUILTIN_CVTD2MASK512,
8807 IX86_BUILTIN_CVTQ2MASK512, IX86_BUILTIN_CVTMASK2D512,
8808 IX86_BUILTIN_CVTMASK2Q512, IX86_BUILTIN_CVTPD2QQ512,
8809 IX86_BUILTIN_CVTPS2QQ512, IX86_BUILTIN_CVTPD2UQQ512,
8810 IX86_BUILTIN_CVTPS2UQQ512, IX86_BUILTIN_CVTQQ2PS512,
8811 IX86_BUILTIN_CVTUQQ2PS512, IX86_BUILTIN_CVTQQ2PD512,
8812 IX86_BUILTIN_CVTUQQ2PD512, IX86_BUILTIN_CVTTPS2QQ512,
8813 IX86_BUILTIN_CVTTPS2UQQ512, IX86_BUILTIN_CVTTPD2QQ512,
8814 IX86_BUILTIN_CVTTPD2UQQ512, IX86_BUILTIN_RANGEPS512,
8815 IX86_BUILTIN_RANGEPD512, IX86_BUILTIN_PACKUSDW512,
8816 IX86_BUILTIN_PACKSSDW512, IX86_BUILTIN_LOADDQUHI512_MASK,
8817 IX86_BUILTIN_LOADDQUQI512_MASK, IX86_BUILTIN_PSLLDQ512,
8818 IX86_BUILTIN_PSRLDQ512, IX86_BUILTIN_STOREDQUHI512_MASK,
8819 IX86_BUILTIN_STOREDQUQI512_MASK, IX86_BUILTIN_PALIGNR512,
8820 IX86_BUILTIN_PALIGNR512_MASK, IX86_BUILTIN_MOVDQUHI512_MASK,
8821 IX86_BUILTIN_MOVDQUQI512_MASK, IX86_BUILTIN_PSADBW512,
8822 IX86_BUILTIN_DBPSADBW512, IX86_BUILTIN_PBROADCASTB512,
8823 IX86_BUILTIN_PBROADCASTB512_GPR, IX86_BUILTIN_PBROADCASTW512,
8824 IX86_BUILTIN_PBROADCASTW512_GPR, IX86_BUILTIN_PMOVSXBW512_MASK,
8825 IX86_BUILTIN_PMOVZXBW512_MASK, IX86_BUILTIN_VPERMVARHI512_MASK,
8826 IX86_BUILTIN_VPERMT2VARHI512, IX86_BUILTIN_VPERMT2VARHI512_MASKZ,
8827 IX86_BUILTIN_VPERMI2VARHI512, IX86_BUILTIN_PAVGB512,
8828 IX86_BUILTIN_PAVGW512, IX86_BUILTIN_PADDB512,
8829 IX86_BUILTIN_PSUBB512, IX86_BUILTIN_PSUBSB512,
8830 IX86_BUILTIN_PADDSB512, IX86_BUILTIN_PSUBUSB512,
8831 IX86_BUILTIN_PADDUSB512, IX86_BUILTIN_PSUBW512,
8832 IX86_BUILTIN_PADDW512, IX86_BUILTIN_PSUBSW512,
8833 IX86_BUILTIN_PADDSW512, IX86_BUILTIN_PSUBUSW512,
8834 IX86_BUILTIN_PADDUSW512, IX86_BUILTIN_PMAXUW512,
8835 IX86_BUILTIN_PMAXSW512, IX86_BUILTIN_PMINUW512,
8836 IX86_BUILTIN_PMINSW512, IX86_BUILTIN_PMAXUB512,
8837 IX86_BUILTIN_PMAXSB512, IX86_BUILTIN_PMINUB512,
8838 IX86_BUILTIN_PMINSB512, IX86_BUILTIN_PMOVWB512,
8839 IX86_BUILTIN_PMOVSWB512, IX86_BUILTIN_PMOVUSWB512,
8840 IX86_BUILTIN_PMULHRSW512_MASK, IX86_BUILTIN_PMULHUW512_MASK,
8841 IX86_BUILTIN_PMULHW512_MASK, IX86_BUILTIN_PMULLW512_MASK,
8842 IX86_BUILTIN_PSLLWI512_MASK, IX86_BUILTIN_PSLLW512_MASK,
8843 IX86_BUILTIN_PACKSSWB512, IX86_BUILTIN_PACKUSWB512,
8844 IX86_BUILTIN_PSRAVV32HI, IX86_BUILTIN_PMADDUBSW512_MASK,
8845 IX86_BUILTIN_PMADDWD512_MASK, IX86_BUILTIN_PSRLVV32HI,
8846 IX86_BUILTIN_PUNPCKHBW512, IX86_BUILTIN_PUNPCKHWD512,
8847 IX86_BUILTIN_PUNPCKLBW512, IX86_BUILTIN_PUNPCKLWD512,
8848 IX86_BUILTIN_PSHUFB512, IX86_BUILTIN_PSHUFHW512,
8849 IX86_BUILTIN_PSHUFLW512, IX86_BUILTIN_PSRAWI512,
8850 IX86_BUILTIN_PSRAW512, IX86_BUILTIN_PSRLWI512,
8851 IX86_BUILTIN_PSRLW512, IX86_BUILTIN_CVTB2MASK512,
8852 IX86_BUILTIN_CVTW2MASK512, IX86_BUILTIN_CVTMASK2B512,
8853 IX86_BUILTIN_CVTMASK2W512, IX86_BUILTIN_PCMPEQB512_MASK,
8854 IX86_BUILTIN_PCMPEQW512_MASK, IX86_BUILTIN_PCMPGTB512_MASK,
8855 IX86_BUILTIN_PCMPGTW512_MASK, IX86_BUILTIN_PTESTMB512,
8856 IX86_BUILTIN_PTESTMW512, IX86_BUILTIN_PTESTNMB512,
8857 IX86_BUILTIN_PTESTNMW512, IX86_BUILTIN_PSLLVV32HI,
8858 IX86_BUILTIN_PABSB512, IX86_BUILTIN_PABSW512,
8859 IX86_BUILTIN_BLENDMW512, IX86_BUILTIN_BLENDMB512,
8860 IX86_BUILTIN_CMPB512, IX86_BUILTIN_CMPW512,
8861 IX86_BUILTIN_UCMPB512, IX86_BUILTIN_UCMPW512.
8862 (bdesc_special_args):
8863 Add __builtin_ia32_loaddquhi512_mask, __builtin_ia32_loaddquqi512_mask,
8864 __builtin_ia32_storedquhi512_mask, __builtin_ia32_storedquqi512_mask,
8865 __builtin_ia32_loaddquhi256_mask, __builtin_ia32_loaddquhi128_mask,
8866 __builtin_ia32_loaddquqi256_mask, __builtin_ia32_loaddquqi128_mask,
8867 __builtin_ia32_movdqa64load256_mask, __builtin_ia32_movdqa64load128_mask,
8868 __builtin_ia32_movdqa32load256_mask, __builtin_ia32_movdqa32load128_mask,
8869 __builtin_ia32_movdqa64store256_mask, __builtin_ia32_movdqa64store128_mask,
8870 __builtin_ia32_movdqa32store256_mask, __builtin_ia32_movdqa32store128_mask,
8871 __builtin_ia32_loadapd256_mask, __builtin_ia32_loadapd128_mask,
8872 __builtin_ia32_loadaps256_mask, __builtin_ia32_loadaps128_mask,
8873 __builtin_ia32_storeapd256_mask, __builtin_ia32_storeapd128_mask,
8874 __builtin_ia32_storeaps256_mask, __builtin_ia32_storeaps128_mask,
8875 __builtin_ia32_loadupd256_mask, __builtin_ia32_loadupd128_mask,
8876 __builtin_ia32_loadups256_mask, __builtin_ia32_loadups128_mask,
8877 __builtin_ia32_storeupd256_mask, __builtin_ia32_storeupd128_mask,
8878 __builtin_ia32_storeups256_mask, __builtin_ia32_storeups128_mask,
8879 __builtin_ia32_loaddqudi256_mask, __builtin_ia32_loaddqudi128_mask,
8880 __builtin_ia32_loaddqusi256_mask, __builtin_ia32_loaddqusi128_mask,
8881 __builtin_ia32_storedqudi256_mask, __builtin_ia32_storedqudi128_mask,
8882 __builtin_ia32_storedqusi256_mask, __builtin_ia32_storedqusi128_mask,
8883 __builtin_ia32_storedquhi256_mask, __builtin_ia32_storedquhi128_mask,
8884 __builtin_ia32_storedquqi256_mask, __builtin_ia32_storedquqi128_mask,
8885 __builtin_ia32_compressstoredf256_mask, __builtin_ia32_compressstoredf128_mask,
8886 __builtin_ia32_compressstoresf256_mask, __builtin_ia32_compressstoresf128_mask,
8887 __builtin_ia32_compressstoredi256_mask, __builtin_ia32_compressstoredi128_mask,
8888 __builtin_ia32_compressstoresi256_mask, __builtin_ia32_compressstoresi128_mask,
8889 __builtin_ia32_expandloaddf256_mask, __builtin_ia32_expandloaddf128_mask,
8890 __builtin_ia32_expandloadsf256_mask, __builtin_ia32_expandloadsf128_mask,
8891 __builtin_ia32_expandloaddi256_mask, __builtin_ia32_expandloaddi128_mask,
8892 __builtin_ia32_expandloadsi256_mask, __builtin_ia32_expandloadsi128_mask,
8893 __builtin_ia32_expandloaddf256_maskz, __builtin_ia32_expandloaddf128_maskz,
8894 __builtin_ia32_expandloadsf256_maskz, __builtin_ia32_expandloadsf128_maskz,
8895 __builtin_ia32_expandloaddi256_maskz, __builtin_ia32_expandloaddi128_maskz,
8896 __builtin_ia32_expandloadsi256_maskz, __builtin_ia32_expandloadsi128_maskz,
8897 __builtin_ia32_pmovqd256mem_mask, __builtin_ia32_pmovqd128mem_mask,
8898 __builtin_ia32_pmovsqd256mem_mask, __builtin_ia32_pmovsqd128mem_mask,
8899 __builtin_ia32_pmovusqd256mem_mask, __builtin_ia32_pmovusqd128mem_mask,
8900 __builtin_ia32_pmovqw256mem_mask, __builtin_ia32_pmovqw128mem_mask,
8901 __builtin_ia32_pmovsqw256mem_mask, __builtin_ia32_pmovsqw128mem_mask,
8902 __builtin_ia32_pmovusqw256mem_mask, __builtin_ia32_pmovusqw128mem_mask,
8903 __builtin_ia32_pmovqb256mem_mask, __builtin_ia32_pmovqb128mem_mask,
8904 __builtin_ia32_pmovsqb256mem_mask, __builtin_ia32_pmovsqb128mem_mask,
8905 __builtin_ia32_pmovusqb256mem_mask, __builtin_ia32_pmovusqb128mem_mask,
8906 __builtin_ia32_pmovdb256mem_mask, __builtin_ia32_pmovdb128mem_mask,
8907 __builtin_ia32_pmovsdb256mem_mask, __builtin_ia32_pmovsdb128mem_mask,
8908 __builtin_ia32_pmovusdb256mem_mask, __builtin_ia32_pmovusdb128mem_mask,
8909 __builtin_ia32_pmovdw256mem_mask, __builtin_ia32_pmovdw128mem_mask,
8910 __builtin_ia32_pmovsdw256mem_mask, __builtin_ia32_pmovsdw128mem_mask,
8911 __builtin_ia32_pmovusdw256mem_mask, __builtin_ia32_pmovusdw128mem_mask,
8912 __builtin_ia32_palignr256_mask, __builtin_ia32_palignr128_mask,
8913 __builtin_ia32_movdqa64_256_mask, __builtin_ia32_movdqa64_128_mask,
8914 __builtin_ia32_movdqa32_256_mask, __builtin_ia32_movdqa32_128_mask,
8915 __builtin_ia32_movapd256_mask, __builtin_ia32_movapd128_mask,
8916 __builtin_ia32_movaps256_mask, __builtin_ia32_movaps128_mask,
8917 __builtin_ia32_movdquhi256_mask, __builtin_ia32_movdquhi128_mask,
8918 __builtin_ia32_movdquqi256_mask, __builtin_ia32_movdquqi128_mask,
8919 __builtin_ia32_minps_mask, __builtin_ia32_maxps_mask,
8920 __builtin_ia32_minpd_mask, __builtin_ia32_maxpd_mask,
8921 __builtin_ia32_maxpd256_mask, __builtin_ia32_maxps256_mask,
8922 __builtin_ia32_minpd256_mask, __builtin_ia32_minps256_mask,
8923 __builtin_ia32_mulps_mask, __builtin_ia32_divps_mask,
8924 __builtin_ia32_mulpd_mask, __builtin_ia32_divpd_mask,
8925 __builtin_ia32_divpd256_mask, __builtin_ia32_divps256_mask,
8926 __builtin_ia32_mulpd256_mask, __builtin_ia32_mulps256_mask,
8927 __builtin_ia32_addpd128_mask, __builtin_ia32_addpd256_mask,
8928 __builtin_ia32_addps128_mask, __builtin_ia32_addps256_mask,
8929 __builtin_ia32_subpd128_mask, __builtin_ia32_subpd256_mask,
8930 __builtin_ia32_subps128_mask, __builtin_ia32_subps256_mask,
8931 __builtin_ia32_xorpd256_mask, __builtin_ia32_xorpd128_mask,
8932 __builtin_ia32_xorps256_mask, __builtin_ia32_xorps128_mask,
8933 __builtin_ia32_orpd256_mask, __builtin_ia32_orpd128_mask,
8934 __builtin_ia32_orps256_mask, __builtin_ia32_orps128_mask,
8935 __builtin_ia32_broadcastf32x2_256_mask, __builtin_ia32_broadcasti32x2_256_mask,
8936 __builtin_ia32_broadcasti32x2_128_mask, __builtin_ia32_broadcastf64x2_256_mask,
8937 __builtin_ia32_broadcasti64x2_256_mask, __builtin_ia32_broadcastf32x4_256_mask,
8938 __builtin_ia32_broadcasti32x4_256_mask, __builtin_ia32_extractf32x4_256_mask,
8939 __builtin_ia32_extracti32x4_256_mask, __builtin_ia32_dbpsadbw256_mask,
8940 __builtin_ia32_dbpsadbw128_mask, __builtin_ia32_cvttpd2qq256_mask,
8941 __builtin_ia32_cvttpd2qq128_mask, __builtin_ia32_cvttpd2uqq256_mask,
8942 __builtin_ia32_cvttpd2uqq128_mask, __builtin_ia32_cvtpd2qq256_mask,
8943 __builtin_ia32_cvtpd2qq128_mask, __builtin_ia32_cvtpd2uqq256_mask,
8944 __builtin_ia32_cvtpd2uqq128_mask, __builtin_ia32_cvtpd2udq256_mask,
8945 __builtin_ia32_cvtpd2udq128_mask, __builtin_ia32_cvttps2qq256_mask,
8946 __builtin_ia32_cvttps2qq128_mask, __builtin_ia32_cvttps2uqq256_mask,
8947 __builtin_ia32_cvttps2uqq128_mask, __builtin_ia32_cvttps2dq256_mask,
8948 __builtin_ia32_cvttps2dq128_mask, __builtin_ia32_cvttps2udq256_mask,
8949 __builtin_ia32_cvttps2udq128_mask, __builtin_ia32_cvttpd2dq256_mask,
8950 __builtin_ia32_cvttpd2dq128_mask, __builtin_ia32_cvttpd2udq256_mask,
8951 __builtin_ia32_cvttpd2udq128_mask, __builtin_ia32_cvtpd2dq256_mask,
8952 __builtin_ia32_cvtpd2dq128_mask, __builtin_ia32_cvtdq2pd256_mask,
8953 __builtin_ia32_cvtdq2pd128_mask, __builtin_ia32_cvtudq2pd256_mask,
8954 __builtin_ia32_cvtudq2pd128_mask, __builtin_ia32_cvtdq2ps256_mask,
8955 __builtin_ia32_cvtdq2ps128_mask, __builtin_ia32_cvtudq2ps256_mask,
8956 __builtin_ia32_cvtudq2ps128_mask, __builtin_ia32_cvtps2pd256_mask,
8957 __builtin_ia32_cvtps2pd128_mask, __builtin_ia32_pbroadcastb256_mask,
8958 __builtin_ia32_pbroadcastb256_gpr_mask, __builtin_ia32_pbroadcastb128_mask,
8959 __builtin_ia32_pbroadcastb128_gpr_mask, __builtin_ia32_pbroadcastw256_mask,
8960 __builtin_ia32_pbroadcastw256_gpr_mask, __builtin_ia32_pbroadcastw128_mask,
8961 __builtin_ia32_pbroadcastw128_gpr_mask, __builtin_ia32_pbroadcastd256_mask,
8962 __builtin_ia32_pbroadcastd256_gpr_mask, __builtin_ia32_pbroadcastd128_mask,
8963 __builtin_ia32_pbroadcastd128_gpr_mask, __builtin_ia32_pbroadcastq256_mask,
8964 __builtin_ia32_pbroadcastq256_gpr_mask, __builtin_ia32_pbroadcastq256_mem_mask,
8965 __builtin_ia32_pbroadcastq128_mask, __builtin_ia32_pbroadcastq128_gpr_mask,
8966 __builtin_ia32_pbroadcastq128_mem_mask, __builtin_ia32_broadcastss256_mask,
8967 __builtin_ia32_broadcastss128_mask, __builtin_ia32_broadcastsd256_mask,
8968 __builtin_ia32_extractf64x2_256_mask, __builtin_ia32_extracti64x2_256_mask,
8969 __builtin_ia32_insertf32x4_256_mask, __builtin_ia32_inserti32x4_256_mask,
8970 __builtin_ia32_pmovsxbw256_mask, __builtin_ia32_pmovsxbw128_mask,
8971 __builtin_ia32_pmovsxbd256_mask, __builtin_ia32_pmovsxbd128_mask,
8972 __builtin_ia32_pmovsxbq256_mask, __builtin_ia32_pmovsxbq128_mask,
8973 __builtin_ia32_pmovsxwd256_mask, __builtin_ia32_pmovsxwd128_mask,
8974 __builtin_ia32_pmovsxwq256_mask, __builtin_ia32_pmovsxwq128_mask,
8975 __builtin_ia32_pmovsxdq256_mask, __builtin_ia32_pmovsxdq128_mask,
8976 __builtin_ia32_pmovzxbw256_mask, __builtin_ia32_pmovzxbw128_mask,
8977 __builtin_ia32_pmovzxbd256_mask, __builtin_ia32_pmovzxbd128_mask,
8978 __builtin_ia32_pmovzxbq256_mask, __builtin_ia32_pmovzxbq128_mask,
8979 __builtin_ia32_pmovzxwd256_mask, __builtin_ia32_pmovzxwd128_mask,
8980 __builtin_ia32_pmovzxwq256_mask, __builtin_ia32_pmovzxwq128_mask,
8981 __builtin_ia32_pmovzxdq256_mask, __builtin_ia32_pmovzxdq128_mask,
8982 __builtin_ia32_reducepd256_mask, __builtin_ia32_reducepd128_mask,
8983 __builtin_ia32_reduceps256_mask, __builtin_ia32_reduceps128_mask,
8984 __builtin_ia32_reducesd, __builtin_ia32_reducess,
8985 __builtin_ia32_permvarhi256_mask, __builtin_ia32_permvarhi128_mask,
8986 __builtin_ia32_vpermt2varhi256_mask, __builtin_ia32_vpermt2varhi256_maskz,
8987 __builtin_ia32_vpermt2varhi128_mask, __builtin_ia32_vpermt2varhi128_maskz,
8988 __builtin_ia32_vpermi2varhi256_mask, __builtin_ia32_vpermi2varhi128_mask,
8989 __builtin_ia32_rcp14pd256_mask, __builtin_ia32_rcp14pd128_mask,
8990 __builtin_ia32_rcp14ps256_mask, __builtin_ia32_rcp14ps128_mask,
8991 __builtin_ia32_rsqrt14pd256_mask, __builtin_ia32_rsqrt14pd128_mask,
8992 __builtin_ia32_rsqrt14ps256_mask, __builtin_ia32_rsqrt14ps128_mask,
8993 __builtin_ia32_sqrtpd256_mask, __builtin_ia32_sqrtpd128_mask,
8994 __builtin_ia32_sqrtps256_mask, __builtin_ia32_sqrtps128_mask,
8995 __builtin_ia32_paddb128_mask, __builtin_ia32_paddw128_mask,
8996 __builtin_ia32_paddd128_mask, __builtin_ia32_paddq128_mask,
8997 __builtin_ia32_psubb128_mask, __builtin_ia32_psubw128_mask,
8998 __builtin_ia32_psubd128_mask, __builtin_ia32_psubq128_mask,
8999 __builtin_ia32_paddsb128_mask, __builtin_ia32_paddsw128_mask,
9000 __builtin_ia32_psubsb128_mask, __builtin_ia32_psubsw128_mask,
9001 __builtin_ia32_paddusb128_mask, __builtin_ia32_paddusw128_mask,
9002 __builtin_ia32_psubusb128_mask, __builtin_ia32_psubusw128_mask,
9003 __builtin_ia32_paddb256_mask, __builtin_ia32_paddw256_mask,
9004 __builtin_ia32_paddd256_mask, __builtin_ia32_paddq256_mask,
9005 __builtin_ia32_paddsb256_mask, __builtin_ia32_paddsw256_mask,
9006 __builtin_ia32_paddusb256_mask, __builtin_ia32_paddusw256_mask,
9007 __builtin_ia32_psubb256_mask, __builtin_ia32_psubw256_mask,
9008 __builtin_ia32_psubd256_mask, __builtin_ia32_psubq256_mask,
9009 __builtin_ia32_psubsb256_mask, __builtin_ia32_psubsw256_mask,
9010 __builtin_ia32_psubusb256_mask, __builtin_ia32_psubusw256_mask,
9011 __builtin_ia32_shuf_f64x2_256_mask, __builtin_ia32_shuf_i64x2_256_mask,
9012 __builtin_ia32_shuf_i32x4_256_mask, __builtin_ia32_shuf_f32x4_256_mask,
9013 __builtin_ia32_pmovwb128_mask, __builtin_ia32_pmovwb256_mask,
9014 __builtin_ia32_pmovswb128_mask, __builtin_ia32_pmovswb256_mask,
9015 __builtin_ia32_pmovuswb128_mask, __builtin_ia32_pmovuswb256_mask,
9016 __builtin_ia32_pmovdb128_mask, __builtin_ia32_pmovdb256_mask,
9017 __builtin_ia32_pmovsdb128_mask, __builtin_ia32_pmovsdb256_mask,
9018 __builtin_ia32_pmovusdb128_mask, __builtin_ia32_pmovusdb256_mask,
9019 __builtin_ia32_pmovdw128_mask, __builtin_ia32_pmovdw256_mask,
9020 __builtin_ia32_pmovsdw128_mask, __builtin_ia32_pmovsdw256_mask,
9021 __builtin_ia32_pmovusdw128_mask, __builtin_ia32_pmovusdw256_mask,
9022 __builtin_ia32_pmovqb128_mask, __builtin_ia32_pmovqb256_mask,
9023 __builtin_ia32_pmovsqb128_mask, __builtin_ia32_pmovsqb256_mask,
9024 __builtin_ia32_pmovusqb128_mask, __builtin_ia32_pmovusqb256_mask,
9025 __builtin_ia32_pmovqw128_mask, __builtin_ia32_pmovqw256_mask,
9026 __builtin_ia32_pmovsqw128_mask, __builtin_ia32_pmovsqw256_mask,
9027 __builtin_ia32_pmovusqw128_mask, __builtin_ia32_pmovusqw256_mask,
9028 __builtin_ia32_pmovqd128_mask, __builtin_ia32_pmovqd256_mask,
9029 __builtin_ia32_pmovsqd128_mask, __builtin_ia32_pmovsqd256_mask,
9030 __builtin_ia32_pmovusqd128_mask, __builtin_ia32_pmovusqd256_mask,
9031 __builtin_ia32_rangepd256_mask, __builtin_ia32_rangepd128_mask,
9032 __builtin_ia32_rangeps256_mask, __builtin_ia32_rangeps128_mask,
9033 __builtin_ia32_getexpps256_mask, __builtin_ia32_getexppd256_mask,
9034 __builtin_ia32_getexpps128_mask, __builtin_ia32_getexppd128_mask,
9035 __builtin_ia32_fixupimmpd256, __builtin_ia32_fixupimmpd256_mask,
9036 __builtin_ia32_fixupimmpd256_maskz, __builtin_ia32_fixupimmps256,
9037 __builtin_ia32_fixupimmps256_mask, __builtin_ia32_fixupimmps256_maskz,
9038 __builtin_ia32_fixupimmpd128, __builtin_ia32_fixupimmpd128_mask,
9039 __builtin_ia32_fixupimmpd128_maskz, __builtin_ia32_fixupimmps128,
9040 __builtin_ia32_fixupimmps128_mask, __builtin_ia32_fixupimmps128_maskz,
9041 __builtin_ia32_pabsq256_mask, __builtin_ia32_pabsq128_mask,
9042 __builtin_ia32_pabsd256_mask, __builtin_ia32_pabsd128_mask,
9043 __builtin_ia32_pmulhrsw256_mask, __builtin_ia32_pmulhrsw128_mask,
9044 __builtin_ia32_pmulhuw128_mask, __builtin_ia32_pmulhuw256_mask,
9045 __builtin_ia32_pmulhw256_mask, __builtin_ia32_pmulhw128_mask,
9046 __builtin_ia32_pmullw256_mask, __builtin_ia32_pmullw128_mask,
9047 __builtin_ia32_pmullq256_mask, __builtin_ia32_pmullq128_mask,
9048 __builtin_ia32_andpd256_mask, __builtin_ia32_andpd128_mask,
9049 __builtin_ia32_andps256_mask, __builtin_ia32_andps128_mask,
9050 __builtin_ia32_andnpd256_mask, __builtin_ia32_andnpd128_mask,
9051 __builtin_ia32_andnps256_mask, __builtin_ia32_andnps128_mask,
9052 __builtin_ia32_psllwi128_mask, __builtin_ia32_pslldi128_mask,
9053 __builtin_ia32_psllqi128_mask, __builtin_ia32_psllw128_mask,
9054 __builtin_ia32_pslld128_mask, __builtin_ia32_psllq128_mask,
9055 __builtin_ia32_psllwi256_mask, __builtin_ia32_psllw256_mask,
9056 __builtin_ia32_pslldi256_mask, __builtin_ia32_pslld256_mask,
9057 __builtin_ia32_psllqi256_mask, __builtin_ia32_psllq256_mask,
9058 __builtin_ia32_psradi128_mask, __builtin_ia32_psrad128_mask,
9059 __builtin_ia32_psradi256_mask, __builtin_ia32_psrad256_mask,
9060 __builtin_ia32_psraqi128_mask, __builtin_ia32_psraq128_mask,
9061 __builtin_ia32_psraqi256_mask, __builtin_ia32_psraq256_mask,
9062 __builtin_ia32_pandd256_mask, __builtin_ia32_pandd128_mask,
9063 __builtin_ia32_psrldi128_mask, __builtin_ia32_psrld128_mask,
9064 __builtin_ia32_psrldi256_mask, __builtin_ia32_psrld256_mask,
9065 __builtin_ia32_psrlqi128_mask, __builtin_ia32_psrlq128_mask,
9066 __builtin_ia32_psrlqi256_mask, __builtin_ia32_psrlq256_mask,
9067 __builtin_ia32_pandq256_mask, __builtin_ia32_pandq128_mask,
9068 __builtin_ia32_pandnd256_mask, __builtin_ia32_pandnd128_mask,
9069 __builtin_ia32_pandnq256_mask, __builtin_ia32_pandnq128_mask,
9070 __builtin_ia32_pord256_mask, __builtin_ia32_pord128_mask,
9071 __builtin_ia32_porq256_mask, __builtin_ia32_porq128_mask,
9072 __builtin_ia32_pxord256_mask, __builtin_ia32_pxord128_mask,
9073 __builtin_ia32_pxorq256_mask, __builtin_ia32_pxorq128_mask,
9074 __builtin_ia32_packsswb256_mask, __builtin_ia32_packsswb128_mask,
9075 __builtin_ia32_packuswb256_mask, __builtin_ia32_packuswb128_mask,
9076 __builtin_ia32_rndscaleps_256_mask, __builtin_ia32_rndscalepd_256_mask,
9077 __builtin_ia32_rndscaleps_128_mask, __builtin_ia32_rndscalepd_128_mask,
9078 __builtin_ia32_pternlogq256_mask, __builtin_ia32_pternlogq256_maskz,
9079 __builtin_ia32_pternlogd256_mask, __builtin_ia32_pternlogd256_maskz,
9080 __builtin_ia32_pternlogq128_mask, __builtin_ia32_pternlogq128_maskz,
9081 __builtin_ia32_pternlogd128_mask, __builtin_ia32_pternlogd128_maskz,
9082 __builtin_ia32_scalefpd256_mask, __builtin_ia32_scalefps256_mask,
9083 __builtin_ia32_scalefpd128_mask, __builtin_ia32_scalefps128_mask,
9084 __builtin_ia32_vfmaddpd256_mask, __builtin_ia32_vfmaddpd256_mask3,
9085 __builtin_ia32_vfmaddpd256_maskz, __builtin_ia32_vfmaddpd128_mask,
9086 __builtin_ia32_vfmaddpd128_mask3, __builtin_ia32_vfmaddpd128_maskz,
9087 __builtin_ia32_vfmaddps256_mask, __builtin_ia32_vfmaddps256_mask3,
9088 __builtin_ia32_vfmaddps256_maskz, __builtin_ia32_vfmaddps128_mask,
9089 __builtin_ia32_vfmaddps128_mask3, __builtin_ia32_vfmaddps128_maskz,
9090 __builtin_ia32_vfmsubpd256_mask3, __builtin_ia32_vfmsubpd128_mask3,
9091 __builtin_ia32_vfmsubps256_mask3, __builtin_ia32_vfmsubps128_mask3,
9092 __builtin_ia32_vfnmaddpd256_mask, __builtin_ia32_vfnmaddpd128_mask,
9093 __builtin_ia32_vfnmaddps256_mask, __builtin_ia32_vfnmaddps128_mask,
9094 __builtin_ia32_vfnmsubpd256_mask, __builtin_ia32_vfnmsubpd256_mask3,
9095 __builtin_ia32_vfnmsubpd128_mask, __builtin_ia32_vfnmsubpd128_mask3,
9096 __builtin_ia32_vfnmsubps256_mask, __builtin_ia32_vfnmsubps256_mask3,
9097 __builtin_ia32_vfnmsubps128_mask, __builtin_ia32_vfnmsubps128_mask3,
9098 __builtin_ia32_vfmaddsubpd256_mask, __builtin_ia32_vfmaddsubpd256_mask3,
9099 __builtin_ia32_vfmaddsubpd256_maskz, __builtin_ia32_vfmaddsubpd128_mask,
9100 __builtin_ia32_vfmaddsubpd128_mask3, __builtin_ia32_vfmaddsubpd128_maskz,
9101 __builtin_ia32_vfmaddsubps256_mask, __builtin_ia32_vfmaddsubps256_mask3,
9102 __builtin_ia32_vfmaddsubps256_maskz, __builtin_ia32_vfmaddsubps128_mask,
9103 __builtin_ia32_vfmaddsubps128_mask3, __builtin_ia32_vfmaddsubps128_maskz,
9104 __builtin_ia32_vfmsubaddpd256_mask3, __builtin_ia32_vfmsubaddpd128_mask3,
9105 __builtin_ia32_vfmsubaddps256_mask3, __builtin_ia32_vfmsubaddps128_mask3,
9106 __builtin_ia32_insertf64x2_256_mask, __builtin_ia32_inserti64x2_256_mask,
9107 __builtin_ia32_psrav16hi_mask, __builtin_ia32_psrav8hi_mask,
9108 __builtin_ia32_pmaddubsw256_mask, __builtin_ia32_pmaddubsw128_mask,
9109 __builtin_ia32_pmaddwd256_mask, __builtin_ia32_pmaddwd128_mask,
9110 __builtin_ia32_psrlv16hi_mask, __builtin_ia32_psrlv8hi_mask,
9111 __builtin_ia32_cvtps2dq256_mask, __builtin_ia32_cvtps2dq128_mask,
9112 __builtin_ia32_cvtps2udq256_mask, __builtin_ia32_cvtps2udq128_mask,
9113 __builtin_ia32_cvtps2qq256_mask, __builtin_ia32_cvtps2qq128_mask,
9114 __builtin_ia32_cvtps2uqq256_mask, __builtin_ia32_cvtps2uqq128_mask,
9115 __builtin_ia32_getmantps256_mask, __builtin_ia32_getmantps128_mask,
9116 __builtin_ia32_getmantpd256_mask, __builtin_ia32_getmantpd128_mask,
9117 __builtin_ia32_movddup256_mask, __builtin_ia32_movddup128_mask,
9118 __builtin_ia32_movshdup256_mask, __builtin_ia32_movshdup128_mask,
9119 __builtin_ia32_movsldup256_mask, __builtin_ia32_movsldup128_mask,
9120 __builtin_ia32_cvtqq2ps256_mask, __builtin_ia32_cvtqq2ps128_mask,
9121 __builtin_ia32_cvtuqq2ps256_mask, __builtin_ia32_cvtuqq2ps128_mask,
9122 __builtin_ia32_cvtqq2pd256_mask, __builtin_ia32_cvtqq2pd128_mask,
9123 __builtin_ia32_cvtuqq2pd256_mask, __builtin_ia32_cvtuqq2pd128_mask,
9124 __builtin_ia32_vpermt2varq256_mask, __builtin_ia32_vpermt2varq256_maskz,
9125 __builtin_ia32_vpermt2vard256_mask, __builtin_ia32_vpermt2vard256_maskz,
9126 __builtin_ia32_vpermi2varq256_mask, __builtin_ia32_vpermi2vard256_mask,
9127 __builtin_ia32_vpermt2varpd256_mask, __builtin_ia32_vpermt2varpd256_maskz,
9128 __builtin_ia32_vpermt2varps256_mask, __builtin_ia32_vpermt2varps256_maskz,
9129 __builtin_ia32_vpermi2varpd256_mask, __builtin_ia32_vpermi2varps256_mask,
9130 __builtin_ia32_vpermt2varq128_mask, __builtin_ia32_vpermt2varq128_maskz,
9131 __builtin_ia32_vpermt2vard128_mask, __builtin_ia32_vpermt2vard128_maskz,
9132 __builtin_ia32_vpermi2varq128_mask, __builtin_ia32_vpermi2vard128_mask,
9133 __builtin_ia32_vpermt2varpd128_mask, __builtin_ia32_vpermt2varpd128_maskz,
9134 __builtin_ia32_vpermt2varps128_mask, __builtin_ia32_vpermt2varps128_maskz,
9135 __builtin_ia32_vpermi2varpd128_mask, __builtin_ia32_vpermi2varps128_mask,
9136 __builtin_ia32_pshufb256_mask, __builtin_ia32_pshufb128_mask,
9137 __builtin_ia32_pshufhw256_mask, __builtin_ia32_pshufhw128_mask,
9138 __builtin_ia32_pshuflw256_mask, __builtin_ia32_pshuflw128_mask,
9139 __builtin_ia32_pshufd256_mask, __builtin_ia32_pshufd128_mask,
9140 __builtin_ia32_shufpd256_mask, __builtin_ia32_shufpd128_mask,
9141 __builtin_ia32_shufps256_mask, __builtin_ia32_shufps128_mask,
9142 __builtin_ia32_prolvq256_mask, __builtin_ia32_prolvq128_mask,
9143 __builtin_ia32_prolq256_mask, __builtin_ia32_prolq128_mask,
9144 __builtin_ia32_prorvq256_mask, __builtin_ia32_prorvq128_mask,
9145 __builtin_ia32_prorq256_mask, __builtin_ia32_prorq128_mask,
9146 __builtin_ia32_psravq128_mask, __builtin_ia32_psravq256_mask,
9147 __builtin_ia32_psllv4di_mask, __builtin_ia32_psllv2di_mask,
9148 __builtin_ia32_psllv8si_mask, __builtin_ia32_psllv4si_mask,
9149 __builtin_ia32_psrav8si_mask, __builtin_ia32_psrav4si_mask,
9150 __builtin_ia32_psrlv4di_mask, __builtin_ia32_psrlv2di_mask,
9151 __builtin_ia32_psrlv8si_mask, __builtin_ia32_psrlv4si_mask,
9152 __builtin_ia32_psrawi256_mask, __builtin_ia32_psraw256_mask,
9153 __builtin_ia32_psrawi128_mask, __builtin_ia32_psraw128_mask,
9154 __builtin_ia32_psrlwi256_mask, __builtin_ia32_psrlw256_mask,
9155 __builtin_ia32_psrlwi128_mask, __builtin_ia32_psrlw128_mask,
9156 __builtin_ia32_prorvd256_mask, __builtin_ia32_prolvd256_mask,
9157 __builtin_ia32_prord256_mask, __builtin_ia32_prold256_mask,
9158 __builtin_ia32_prorvd128_mask, __builtin_ia32_prolvd128_mask,
9159 __builtin_ia32_prord128_mask, __builtin_ia32_prold128_mask,
9160 __builtin_ia32_fpclasspd256_mask, __builtin_ia32_fpclasspd128_mask,
9161 __builtin_ia32_fpclasssd, __builtin_ia32_fpclassps256_mask,
9162 __builtin_ia32_fpclassps128_mask, __builtin_ia32_fpclassss,
9163 __builtin_ia32_cvtb2mask128, __builtin_ia32_cvtb2mask256,
9164 __builtin_ia32_cvtw2mask128, __builtin_ia32_cvtw2mask256,
9165 __builtin_ia32_cvtd2mask128, __builtin_ia32_cvtd2mask256,
9166 __builtin_ia32_cvtq2mask128, __builtin_ia32_cvtq2mask256,
9167 __builtin_ia32_cvtmask2b128, __builtin_ia32_cvtmask2b256,
9168 __builtin_ia32_cvtmask2w128, __builtin_ia32_cvtmask2w256,
9169 __builtin_ia32_cvtmask2d128, __builtin_ia32_cvtmask2d256,
9170 __builtin_ia32_cvtmask2q128, __builtin_ia32_cvtmask2q256,
9171 __builtin_ia32_pcmpeqb128_mask, __builtin_ia32_pcmpeqb256_mask,
9172 __builtin_ia32_pcmpeqw128_mask, __builtin_ia32_pcmpeqw256_mask,
9173 __builtin_ia32_pcmpeqd128_mask, __builtin_ia32_pcmpeqd256_mask,
9174 __builtin_ia32_pcmpeqq128_mask, __builtin_ia32_pcmpeqq256_mask,
9175 __builtin_ia32_pcmpgtb128_mask, __builtin_ia32_pcmpgtb256_mask,
9176 __builtin_ia32_pcmpgtw128_mask, __builtin_ia32_pcmpgtw256_mask,
9177 __builtin_ia32_pcmpgtd128_mask, __builtin_ia32_pcmpgtd256_mask,
9178 __builtin_ia32_pcmpgtq128_mask, __builtin_ia32_pcmpgtq256_mask,
9179 __builtin_ia32_ptestmb128, __builtin_ia32_ptestmb256,
9180 __builtin_ia32_ptestmw128, __builtin_ia32_ptestmw256,
9181 __builtin_ia32_ptestmd128, __builtin_ia32_ptestmd256,
9182 __builtin_ia32_ptestmq128, __builtin_ia32_ptestmq256,
9183 __builtin_ia32_ptestnmb128, __builtin_ia32_ptestnmb256,
9184 __builtin_ia32_ptestnmw128, __builtin_ia32_ptestnmw256,
9185 __builtin_ia32_ptestnmd128, __builtin_ia32_ptestnmd256,
9186 __builtin_ia32_ptestnmq128, __builtin_ia32_ptestnmq256,
9187 __builtin_ia32_broadcastmb128, __builtin_ia32_broadcastmb256,
9188 __builtin_ia32_broadcastmw128, __builtin_ia32_broadcastmw256,
9189 __builtin_ia32_compressdf256_mask, __builtin_ia32_compressdf128_mask,
9190 __builtin_ia32_compresssf256_mask, __builtin_ia32_compresssf128_mask,
9191 __builtin_ia32_compressdi256_mask, __builtin_ia32_compressdi128_mask,
9192 __builtin_ia32_compresssi256_mask, __builtin_ia32_compresssi128_mask,
9193 __builtin_ia32_expanddf256_mask, __builtin_ia32_expanddf128_mask,
9194 __builtin_ia32_expandsf256_mask, __builtin_ia32_expandsf128_mask,
9195 __builtin_ia32_expanddi256_mask, __builtin_ia32_expanddi128_mask,
9196 __builtin_ia32_expandsi256_mask, __builtin_ia32_expandsi128_mask,
9197 __builtin_ia32_expanddf256_maskz, __builtin_ia32_expanddf128_maskz,
9198 __builtin_ia32_expandsf256_maskz, __builtin_ia32_expandsf128_maskz,
9199 __builtin_ia32_expanddi256_maskz, __builtin_ia32_expanddi128_maskz,
9200 __builtin_ia32_expandsi256_maskz, __builtin_ia32_expandsi128_maskz,
9201 __builtin_ia32_pmaxsd256_mask, __builtin_ia32_pminsd256_mask,
9202 __builtin_ia32_pmaxud256_mask, __builtin_ia32_pminud256_mask,
9203 __builtin_ia32_pmaxsd128_mask, __builtin_ia32_pminsd128_mask,
9204 __builtin_ia32_pmaxud128_mask, __builtin_ia32_pminud128_mask,
9205 __builtin_ia32_pmaxsq256_mask, __builtin_ia32_pminsq256_mask,
9206 __builtin_ia32_pmaxuq256_mask, __builtin_ia32_pminuq256_mask,
9207 __builtin_ia32_pmaxsq128_mask, __builtin_ia32_pminsq128_mask,
9208 __builtin_ia32_pmaxuq128_mask, __builtin_ia32_pminuq128_mask,
9209 __builtin_ia32_pminsb256_mask, __builtin_ia32_pminub256_mask,
9210 __builtin_ia32_pmaxsb256_mask, __builtin_ia32_pmaxub256_mask,
9211 __builtin_ia32_pminsb128_mask, __builtin_ia32_pminub128_mask,
9212 __builtin_ia32_pmaxsb128_mask, __builtin_ia32_pmaxub128_mask,
9213 __builtin_ia32_pminsw256_mask, __builtin_ia32_pminuw256_mask,
9214 __builtin_ia32_pmaxsw256_mask, __builtin_ia32_pmaxuw256_mask,
9215 __builtin_ia32_pminsw128_mask, __builtin_ia32_pminuw128_mask,
9216 __builtin_ia32_pmaxsw128_mask, __builtin_ia32_pmaxuw128_mask,
9217 __builtin_ia32_vpconflictdi_256_mask, __builtin_ia32_vpconflictsi_256_mask,
9218 __builtin_ia32_vplzcntq_256_mask, __builtin_ia32_vplzcntd_256_mask,
9219 __builtin_ia32_unpckhpd256_mask, __builtin_ia32_unpckhpd128_mask,
9220 __builtin_ia32_unpckhps256_mask, __builtin_ia32_unpckhps128_mask,
9221 __builtin_ia32_unpcklpd256_mask, __builtin_ia32_unpcklpd128_mask,
9222 __builtin_ia32_unpcklps256_mask, __builtin_ia32_vpconflictdi_128_mask,
9223 __builtin_ia32_vpconflictsi_128_mask, __builtin_ia32_vplzcntq_128_mask,
9224 __builtin_ia32_vplzcntd_128_mask, __builtin_ia32_unpcklps128_mask,
9225 __builtin_ia32_alignd256_mask, __builtin_ia32_alignq256_mask,
9226 __builtin_ia32_alignd128_mask, __builtin_ia32_alignq128_mask,
9227 __builtin_ia32_vcvtps2ph256_mask, __builtin_ia32_vcvtps2ph_mask,
9228 __builtin_ia32_vcvtph2ps_mask, __builtin_ia32_vcvtph2ps256_mask,
9229 __builtin_ia32_punpckhdq128_mask, __builtin_ia32_punpckhdq256_mask,
9230 __builtin_ia32_punpckhqdq128_mask, __builtin_ia32_punpckhqdq256_mask,
9231 __builtin_ia32_punpckldq128_mask, __builtin_ia32_punpckldq256_mask,
9232 __builtin_ia32_punpcklqdq128_mask, __builtin_ia32_punpcklqdq256_mask,
9233 __builtin_ia32_punpckhbw128_mask, __builtin_ia32_punpckhbw256_mask,
9234 __builtin_ia32_punpckhwd128_mask, __builtin_ia32_punpckhwd256_mask,
9235 __builtin_ia32_punpcklbw128_mask, __builtin_ia32_punpcklbw256_mask,
9236 __builtin_ia32_punpcklwd128_mask, __builtin_ia32_punpcklwd256_mask,
9237 __builtin_ia32_psllv16hi_mask, __builtin_ia32_psllv8hi_mask,
9238 __builtin_ia32_packssdw256_mask, __builtin_ia32_packssdw128_mask,
9239 __builtin_ia32_packusdw256_mask, __builtin_ia32_packusdw128_mask,
9240 __builtin_ia32_pavgb256_mask, __builtin_ia32_pavgw256_mask,
9241 __builtin_ia32_pavgb128_mask, __builtin_ia32_pavgw128_mask,
9242 __builtin_ia32_permvarsf256_mask, __builtin_ia32_permvardf256_mask,
9243 __builtin_ia32_permdf256_mask, __builtin_ia32_pabsb256_mask,
9244 __builtin_ia32_pabsb128_mask, __builtin_ia32_pabsw256_mask,
9245 __builtin_ia32_pabsw128_mask, __builtin_ia32_vpermilvarpd_mask,
9246 __builtin_ia32_vpermilvarps_mask, __builtin_ia32_vpermilvarpd256_mask,
9247 __builtin_ia32_vpermilvarps256_mask, __builtin_ia32_vpermilpd_mask,
9248 __builtin_ia32_vpermilps_mask, __builtin_ia32_vpermilpd256_mask,
9249 __builtin_ia32_vpermilps256_mask, __builtin_ia32_blendmq_256_mask,
9250 __builtin_ia32_blendmd_256_mask, __builtin_ia32_blendmpd_256_mask,
9251 __builtin_ia32_blendmps_256_mask, __builtin_ia32_blendmq_128_mask,
9252 __builtin_ia32_blendmd_128_mask, __builtin_ia32_blendmpd_128_mask,
9253 __builtin_ia32_blendmps_128_mask, __builtin_ia32_blendmw_256_mask,
9254 __builtin_ia32_blendmb_256_mask, __builtin_ia32_blendmw_128_mask,
9255 __builtin_ia32_blendmb_128_mask, __builtin_ia32_pmulld256_mask,
9256 __builtin_ia32_pmulld128_mask, __builtin_ia32_pmuludq256_mask,
9257 __builtin_ia32_pmuldq256_mask, __builtin_ia32_pmuldq128_mask,
9258 __builtin_ia32_pmuludq128_mask, __builtin_ia32_cvtpd2ps256_mask,
9259 __builtin_ia32_cvtpd2ps_mask, __builtin_ia32_permvarsi256_mask,
9260 __builtin_ia32_permvardi256_mask, __builtin_ia32_permdi256_mask,
9261 __builtin_ia32_cmpq256_mask, __builtin_ia32_cmpd256_mask,
9262 __builtin_ia32_ucmpq256_mask, __builtin_ia32_ucmpd256_mask,
9263 __builtin_ia32_cmpb256_mask, __builtin_ia32_cmpw256_mask,
9264 __builtin_ia32_ucmpb256_mask, __builtin_ia32_ucmpw256_mask,
9265 __builtin_ia32_cmppd256_mask, __builtin_ia32_cmpps256_mask,
9266 __builtin_ia32_cmpq128_mask, __builtin_ia32_cmpd128_mask,
9267 __builtin_ia32_ucmpq128_mask, __builtin_ia32_ucmpd128_mask,
9268 __builtin_ia32_cmpb128_mask, __builtin_ia32_cmpw128_mask,
9269 __builtin_ia32_ucmpb128_mask, __builtin_ia32_ucmpw128_mask,
9270 __builtin_ia32_cmppd128_mask, __builtin_ia32_cmpps128_mask,
9271 __builtin_ia32_broadcastf32x2_512_mask, __builtin_ia32_broadcasti32x2_512_mask,
9272 __builtin_ia32_broadcastf64x2_512_mask, __builtin_ia32_broadcasti64x2_512_mask,
9273 __builtin_ia32_broadcastf32x8_512_mask, __builtin_ia32_broadcasti32x8_512_mask,
9274 __builtin_ia32_extractf64x2_512_mask, __builtin_ia32_extractf32x8_mask,
9275 __builtin_ia32_extracti64x2_512_mask, __builtin_ia32_extracti32x8_mask,
9276 __builtin_ia32_reducepd512_mask, __builtin_ia32_reduceps512_mask,
9277 __builtin_ia32_pmullq512_mask, __builtin_ia32_xorpd512_mask,
9278 __builtin_ia32_xorps512_mask, __builtin_ia32_orpd512_mask,
9279 __builtin_ia32_orps512_mask, __builtin_ia32_andpd512_mask,
9280 __builtin_ia32_andps512_mask, __builtin_ia32_andnpd512_mask,
9281 __builtin_ia32_andnps512_mask, __builtin_ia32_insertf32x8_mask,
9282 __builtin_ia32_inserti32x8_mask, __builtin_ia32_insertf64x2_512_mask,
9283 __builtin_ia32_inserti64x2_512_mask, __builtin_ia32_fpclasspd512_mask,
9284 __builtin_ia32_fpclassps512_mask, __builtin_ia32_cvtd2mask512,
9285 __builtin_ia32_cvtq2mask512, __builtin_ia32_cvtmask2d512,
9286 __builtin_ia32_cvtmask2q512, __builtin_ia32_kunpcksi,
9287 __builtin_ia32_kunpckdi, __builtin_ia32_packusdw512_mask,
9288 __builtin_ia32_pslldq512, __builtin_ia32_psrldq512,
9289 __builtin_ia32_packssdw512_mask, __builtin_ia32_palignr512,
9290 __builtin_ia32_palignr512_mask, __builtin_ia32_movdquhi512_mask,
9291 __builtin_ia32_movdquqi512_mask, __builtin_ia32_psadbw512,
9292 __builtin_ia32_dbpsadbw512_mask, __builtin_ia32_pbroadcastb512_mask,
9293 __builtin_ia32_pbroadcastb512_gpr_mask, __builtin_ia32_pbroadcastw512_mask,
9294 __builtin_ia32_pbroadcastw512_gpr_mask, __builtin_ia32_pmovsxbw512_mask,
9295 __builtin_ia32_pmovzxbw512_mask, __builtin_ia32_permvarhi512_mask,
9296 __builtin_ia32_vpermt2varhi512_mask, __builtin_ia32_vpermt2varhi512_maskz,
9297 __builtin_ia32_vpermi2varhi512_mask, __builtin_ia32_pavgb512_mask,
9298 __builtin_ia32_pavgw512_mask, __builtin_ia32_paddb512_mask,
9299 __builtin_ia32_psubb512_mask, __builtin_ia32_psubsb512_mask,
9300 __builtin_ia32_paddsb512_mask, __builtin_ia32_psubusb512_mask,
9301 __builtin_ia32_paddusb512_mask, __builtin_ia32_psubw512_mask,
9302 __builtin_ia32_paddw512_mask, __builtin_ia32_psubsw512_mask,
9303 __builtin_ia32_paddsw512_mask, __builtin_ia32_psubusw512_mask,
9304 __builtin_ia32_paddusw512_mask, __builtin_ia32_pmaxuw512_mask,
9305 __builtin_ia32_pmaxsw512_mask, __builtin_ia32_pminuw512_mask,
9306 __builtin_ia32_pminsw512_mask, __builtin_ia32_pmaxub512_mask,
9307 __builtin_ia32_pmaxsb512_mask, __builtin_ia32_pminub512_mask,
9308 __builtin_ia32_pminsb512_mask, __builtin_ia32_pmovwb512_mask,
9309 __builtin_ia32_pmovswb512_mask, __builtin_ia32_pmovuswb512_mask,
9310 __builtin_ia32_pmulhrsw512_mask, __builtin_ia32_pmulhuw512_mask,
9311 __builtin_ia32_pmulhw512_mask, __builtin_ia32_pmullw512_mask,
9312 __builtin_ia32_psllwi512_mask, __builtin_ia32_psllw512_mask,
9313 __builtin_ia32_packsswb512_mask, __builtin_ia32_packuswb512_mask,
9314 __builtin_ia32_psrav32hi_mask, __builtin_ia32_pmaddubsw512_mask,
9315 __builtin_ia32_pmaddwd512_mask, __builtin_ia32_psrlv32hi_mask,
9316 __builtin_ia32_punpckhbw512_mask, __builtin_ia32_punpckhwd512_mask,
9317 __builtin_ia32_punpcklbw512_mask, __builtin_ia32_punpcklwd512_mask,
9318 __builtin_ia32_pshufb512_mask, __builtin_ia32_pshufhw512_mask,
9319 __builtin_ia32_pshuflw512_mask, __builtin_ia32_psrawi512_mask,
9320 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
9321 __builtin_ia32_psrlw512_mask, __builtin_ia32_cvtb2mask512,
9322 __builtin_ia32_cvtw2mask512, __builtin_ia32_cvtmask2b512,
9323 __builtin_ia32_cvtmask2w512, __builtin_ia32_pcmpeqb512_mask,
9324 __builtin_ia32_pcmpeqw512_mask, __builtin_ia32_pcmpgtb512_mask,
9325 __builtin_ia32_pcmpgtw512_mask, __builtin_ia32_ptestmb512,
9326 __builtin_ia32_ptestmw512, __builtin_ia32_ptestnmb512,
9327 __builtin_ia32_ptestnmw512, __builtin_ia32_psllv32hi_mask,
9328 __builtin_ia32_pabsb512_mask, __builtin_ia32_pabsw512_mask,
9329 __builtin_ia32_blendmw_512_mask, __builtin_ia32_blendmb_512_mask,
9330 __builtin_ia32_cmpb512_mask, __builtin_ia32_cmpw512_mask,
9331 __builtin_ia32_ucmpb512_mask, __builtin_ia32_ucmpw512_mask,
9332 __builtin_ia32_rangesd128_round, __builtin_ia32_rangess128_round,
9333 __builtin_ia32_cvtpd2qq512_mask, __builtin_ia32_cvtps2qq512_mask,
9334 __builtin_ia32_cvtpd2uqq512_mask, __builtin_ia32_cvtps2uqq512_mask,
9335 __builtin_ia32_cvtqq2ps512_mask, __builtin_ia32_cvtuqq2ps512_mask,
9336 __builtin_ia32_cvtqq2pd512_mask, __builtin_ia32_cvtuqq2pd512_mask,
9337 __builtin_ia32_cvttps2qq512_mask, __builtin_ia32_cvttps2uqq512_mask,
9338 __builtin_ia32_cvttpd2qq512_mask, __builtin_ia32_cvttpd2uqq512_mask,
9339 __builtin_ia32_rangeps512_mask, __builtin_ia32_rangepd512_mask.
9340 (ix86_expand_args_builtin): Handle HI_FTYPE_V16QI, SI_FTYPE_V32QI,
9341 DI_FTYPE_V64QI, V16QI_FTYPE_HI, V32QI_FTYPE_SI, V64QI_FTYPE_DI,
9342 V8HI_FTYPE_QI, V16HI_FTYPE_HI, V32HI_FTYPE_SI, V4SI_FTYPE_QI,
9343 V8SI_FTYPE_QI, V4SI_FTYPE_HI, V8SI_FTYPE_HI, QI_FTYPE_V8HI,
9344 HI_FTYPE_V16HI, SI_FTYPE_V32HI, QI_FTYPE_V4SI, QI_FTYPE_V8SI,
9345 HI_FTYPE_V16SI, QI_FTYPE_V2DI, QI_FTYPE_V4DI, QI_FTYPE_V8DI,
9346 V2DI_FTYPE_QI, V4DI_FTYPE_QI, V8DI_FTYPE_V64QI_V64QI,
9347 SI_FTYPE_SI_SI,DI_FTYPE_DI_DI, V8DI_FTYPE_V8DI_INT_CONVERT,
9348 QI_FTYPE_V4SF_INT, QI_FTYPE_V2DF_INT,
9349 V8SF_FTYPE_V4SF_V8SF_QI, V4DF_FTYPE_V2DF_V4DF_QI,
9350 V8SI_FTYPE_V4SI_V8SI_QI, V8SI_FTYPE_SI_V8SI_QI,
9351 V4SI_FTYPE_V4SI_V4SI_QI, V4SI_FTYPE_SI_V4SI_QI,
9352 V4DI_FTYPE_V2DI_V4DI_QI, V4DI_FTYPE_DI_V4DI_QI,
9353 V2DI_FTYPE_V2DI_V2DI_QI, V2DI_FTYPE_DI_V2DI_QI,
9354 V64QI_FTYPE_V64QI_V64QI_DI, V64QI_FTYPE_V16QI_V64QI_DI,
9355 V64QI_FTYPE_QI_V64QI_DI, V32QI_FTYPE_V32QI_V32QI_SI,
9356 V32QI_FTYPE_V16QI_V32QI_SI, V32QI_FTYPE_QI_V32QI_SI,
9357 V16QI_FTYPE_V16QI_V16QI_HI, V16QI_FTYPE_QI_V16QI_HI,
9358 V32HI_FTYPE_V8HI_V32HI_SI, V32HI_FTYPE_HI_V32HI_SI,
9359 V16HI_FTYPE_V8HI_V16HI_HI, V16HI_FTYPE_HI_V16HI_HI,
9360 V8HI_FTYPE_V8HI_V8HI_QI, V8HI_FTYPE_HI_V8HI_QI,
9361 V8SF_FTYPE_V8HI_V8SF_QI, V4SF_FTYPE_V8HI_V4SF_QI,
9362 V8SI_FTYPE_V8SF_V8SI_QI, V4SI_FTYPE_V4SF_V4SI_QI,
9363 V8DI_FTYPE_V8SF_V8DI_QI, V4DI_FTYPE_V4SF_V4DI_QI,
9364 V2DI_FTYPE_V4SF_V2DI_QI, V8SF_FTYPE_V8DI_V8SF_QI,
9365 V4SF_FTYPE_V4DI_V4SF_QI, V4SF_FTYPE_V2DI_V4SF_QI,
9366 V8DF_FTYPE_V8DI_V8DF_QI, V4DF_FTYPE_V4DI_V4DF_QI,
9367 V2DF_FTYPE_V2DI_V2DF_QI, V16QI_FTYPE_V8HI_V16QI_QI,
9368 V16QI_FTYPE_V16HI_V16QI_HI, V16QI_FTYPE_V4SI_V16QI_QI,
9369 V16QI_FTYPE_V8SI_V16QI_QI, V8HI_FTYPE_V4SI_V8HI_QI,
9370 V8HI_FTYPE_V8SI_V8HI_QI, V16QI_FTYPE_V2DI_V16QI_QI,
9371 V16QI_FTYPE_V4DI_V16QI_QI, V8HI_FTYPE_V2DI_V8HI_QI,
9372 V8HI_FTYPE_V4DI_V8HI_QI, V4SI_FTYPE_V2DI_V4SI_QI,
9373 V4SI_FTYPE_V4DI_V4SI_QI, V32QI_FTYPE_V32HI_V32QI_SI,
9374 HI_FTYPE_V16QI_V16QI_HI, SI_FTYPE_V32QI_V32QI_SI,
9375 DI_FTYPE_V64QI_V64QI_DI, QI_FTYPE_V8HI_V8HI_QI,
9376 HI_FTYPE_V16HI_V16HI_HI, SI_FTYPE_V32HI_V32HI_SI,
9377 QI_FTYPE_V4SI_V4SI_QI, QI_FTYPE_V8SI_V8SI_QI,
9378 QI_FTYPE_V2DI_V2DI_QI, QI_FTYPE_V4DI_V4DI_QI,
9379 V4SF_FTYPE_V2DF_V4SF_QI, V4SF_FTYPE_V4DF_V4SF_QI,
9380 V2DI_FTYPE_V4SI_V2DI_QI, V2DI_FTYPE_V8HI_V2DI_QI,
9381 V2DI_FTYPE_V16QI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_QI,
9382 V4DI_FTYPE_V4SI_V4DI_QI, V4DI_FTYPE_V8HI_V4DI_QI,
9383 V4DI_FTYPE_V16QI_V4DI_QI, V8DI_FTYPE_V8DF_V8DI_QI,
9384 V4DI_FTYPE_V4DF_V4DI_QI, V2DI_FTYPE_V2DF_V2DI_QI,
9385 V4SI_FTYPE_V4DF_V4SI_QI, V4SI_FTYPE_V2DF_V4SI_QI,
9386 V4SI_FTYPE_V8HI_V4SI_QI, V4SI_FTYPE_V16QI_V4SI_QI,
9387 V8SI_FTYPE_V8SI_V8SI_V8SI, V8SF_FTYPE_V8SF_V8SF_QI,
9388 V8SF_FTYPE_V8SI_V8SF_QI, V4DF_FTYPE_V4DF_V4DF_QI,
9389 V4SF_FTYPE_V4SF_V4SF_QI, V2DF_FTYPE_V2DF_V2DF_QI,
9390 V2DF_FTYPE_V4SF_V2DF_QI, V2DF_FTYPE_V4SI_V2DF_QI,
9391 V4SF_FTYPE_V4SI_V4SF_QI, V4DF_FTYPE_V4SF_V4DF_QI,
9392 V4DF_FTYPE_V4SI_V4DF_QI, V8SI_FTYPE_V8SI_V8SI_QI,
9393 V8SI_FTYPE_V8HI_V8SI_QI, V8SI_FTYPE_V16QI_V8SI_QI,
9394 V16SF_FTYPE_V8SF_V16SF_HI, V16SI_FTYPE_V8SI_V16SI_HI,
9395 V16HI_FTYPE_V16HI_V16HI_HI, V8HI_FTYPE_V16QI_V8HI_QI,
9396 V16HI_FTYPE_V16QI_V16HI_HI, V32HI_FTYPE_V32HI_V32HI_SI,
9397 V32HI_FTYPE_V32QI_V32HI_SI, V8DI_FTYPE_V8DI_V8DI_INT_CONVERT,
9398 V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI_CONVERT, QI_FTYPE_V8DF_INT_QI,
9399 QI_FTYPE_V4DF_INT_QI, QI_FTYPE_V2DF_INT_QI,
9400 HI_FTYPE_V16SF_INT_HI, QI_FTYPE_V8SF_INT_QI,
9401 QI_FTYPE_V4SF_INT_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI_CONVERT,
9402 V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI_CONVERT, V32QI_FTYPE_V32QI_V32QI_V32QI_SI,
9403 V32HI_FTYPE_V32HI_V32HI_V32HI_SI, V32HI_FTYPE_V64QI_V64QI_V32HI_SI,
9404 V16SI_FTYPE_V32HI_V32HI_V16SI_HI, V64QI_FTYPE_V64QI_V64QI_V64QI_DI,
9405 V32HI_FTYPE_V32HI_V8HI_V32HI_SI, V16HI_FTYPE_V16HI_V8HI_V16HI_HI,
9406 V8SI_FTYPE_V8SI_V4SI_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_V4DI_QI,
9407 V64QI_FTYPE_V32HI_V32HI_V64QI_DI, V32QI_FTYPE_V16HI_V16HI_V32QI_SI,
9408 V16QI_FTYPE_V8HI_V8HI_V16QI_HI, V32HI_FTYPE_V16SI_V16SI_V32HI_SI,
9409 V16HI_FTYPE_V8SI_V8SI_V16HI_HI, V8HI_FTYPE_V4SI_V4SI_V8HI_QI,
9410 V4DF_FTYPE_V4DF_V4DI_V4DF_QI, V8SF_FTYPE_V8SF_V8SI_V8SF_QI,
9411 V4SF_FTYPE_V4SF_V4SI_V4SF_QI, V2DF_FTYPE_V2DF_V2DI_V2DF_QI,
9412 V2DI_FTYPE_V4SI_V4SI_V2DI_QI, V4DI_FTYPE_V8SI_V8SI_V4DI_QI,
9413 V4DF_FTYPE_V4DI_V4DF_V4DF_QI, V8SF_FTYPE_V8SI_V8SF_V8SF_QI,
9414 V2DF_FTYPE_V2DI_V2DF_V2DF_QI, V4SF_FTYPE_V4SI_V4SF_V4SF_QI,
9415 V8HI_FTYPE_V8HI_V8HI_V8HI_QI, V8SI_FTYPE_V8SI_V8SI_V8SI_QI,
9416 V4SI_FTYPE_V4SI_V4SI_V4SI_QI, V8SF_FTYPE_V8SF_V8SF_V8SF_QI,
9417 V16QI_FTYPE_V16QI_V16QI_V16QI_HI, V16HI_FTYPE_V16HI_V16HI_V16HI_HI,
9418 V2DI_FTYPE_V2DI_V2DI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_V4DI_QI,
9419 V4DF_FTYPE_V4DF_V4DF_V4DF_QI, V8HI_FTYPE_V16QI_V16QI_V8HI_QI,
9420 V16HI_FTYPE_V32QI_V32QI_V16HI_HI, V8SI_FTYPE_V16HI_V16HI_V8SI_QI,
9421 V4SI_FTYPE_V8HI_V8HI_V4SI_QI, QI_FTYPE_V4DI_V4DI_INT_QI,
9422 QI_FTYPE_V8SI_V8SI_INT_QI, QI_FTYPE_V4DF_V4DF_INT_QI,
9423 QI_FTYPE_V8SF_V8SF_INT_QI, QI_FTYPE_V2DI_V2DI_INT_QI,
9424 QI_FTYPE_V4SI_V4SI_INT_QI, DI_FTYPE_V64QI_V64QI_INT_DI,
9425 SI_FTYPE_V32QI_V32QI_INT_SI, HI_FTYPE_V16QI_V16QI_INT_HI,
9426 SI_FTYPE_V32HI_V32HI_INT_SI, HI_FTYPE_V16HI_V16HI_INT_HI,
9427 QI_FTYPE_V8HI_V8HI_INT_QI, V8SF_FTYPE_V8SF_INT_V8SF_QI,
9428 V4SF_FTYPE_V4SF_INT_V4SF_QI, V2DF_FTYPE_V4DF_INT_V2DF_QI,
9429 V2DI_FTYPE_V4DI_INT_V2DI_QI, V8SF_FTYPE_V16SF_INT_V8SF_QI,
9430 V8SI_FTYPE_V16SI_INT_V8SI_QI, V2DF_FTYPE_V8DF_INT_V2DF_QI,
9431 V2DI_FTYPE_V8DI_INT_V2DI_QI, V4SF_FTYPE_V8SF_INT_V4SF_QI,
9432 V4SI_FTYPE_V8SI_INT_V4SI_QI, V8HI_FTYPE_V8SF_INT_V8HI_QI,
9433 V8HI_FTYPE_V4SF_INT_V8HI_QI, V32HI_FTYPE_V32HI_INT_V32HI_SI,
9434 V16HI_FTYPE_V16HI_INT_V16HI_HI, V8HI_FTYPE_V8HI_INT_V8HI_QI,
9435 V4DI_FTYPE_V4DI_INT_V4DI_QI, V2DI_FTYPE_V2DI_INT_V2DI_QI,
9436 V8SI_FTYPE_V8SI_INT_V8SI_QI, V4SI_FTYPE_V4SI_INT_V4SI_QI,
9437 V4DF_FTYPE_V4DF_INT_V4DF_QI, V2DF_FTYPE_V2DF_INT_V2DF_QI,
9438 V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI,
9439 V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI, V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI,
9440 V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI,
9441 V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI, V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI,
9442 V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI, V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI,
9443 V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI, V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI,
9444 V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI, V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI,
9445 V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI,
9446 V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI,
9447 V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI, V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI,
9448 V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI, V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI,
9449 V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI, V8DI_FTYPE_V8DF_V8DI_QI_INT,
9450 V8SF_FTYPE_V8DI_V8SF_QI_INT, V8DF_FTYPE_V8DI_V8DF_QI_INT,
9451 V8DI_FTYPE_V8SF_V8DI_QI_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT,
9452 V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT, VOID_FTYPE_PV4DI_V4DI_QI,
9453 VOID_FTYPE_PV2DI_V2DI_QI, VOID_FTYPE_PV8SI_V8SI_QI,
9454 VOID_FTYPE_PV4SI_V4SI_QI, VOID_FTYPE_PV4SI_V4DI_QI,
9455 VOID_FTYPE_PV4SI_V2DI_QI, VOID_FTYPE_PV8HI_V4DI_QI,
9456 VOID_FTYPE_PV8HI_V2DI_QI, VOID_FTYPE_PV8HI_V8SI_QI,
9457 VOID_FTYPE_PV8HI_V4SI_QI, VOID_FTYPE_PV16QI_V4DI_QI,
9458 VOID_FTYPE_PV16QI_V2DI_QI, VOID_FTYPE_PV16QI_V8SI_QI,
9459 VOID_FTYPE_PV16QI_V4SI_QI, VOID_FTYPE_PV8HI_V8HI_QI,
9460 VOID_FTYPE_PV16HI_V16HI_HI, VOID_FTYPE_PV32HI_V32HI_SI,
9461 VOID_FTYPE_PV16QI_V16QI_HI, VOID_FTYPE_PV32QI_V32QI_SI,
9462 VOID_FTYPE_PV64QI_V64QI_DI, VOID_FTYPE_PV4DF_V4DF_QI,
9463 VOID_FTYPE_PV2DF_V2DF_QI, VOID_FTYPE_PV8SF_V8SF_QI,
9464 VOID_FTYPE_PV4SF_V4SF_QI, V4SF_FTYPE_PCV4SF_V4SF_QI,
9465 V8SF_FTYPE_PCV8SF_V8SF_QI, V4SI_FTYPE_PCV4SI_V4SI_QI,
9466 V8SI_FTYPE_PCV8SI_V8SI_QI, V2DF_FTYPE_PCV2DF_V2DF_QI,
9467 V4DF_FTYPE_PCV4DF_V4DF_QI, V2DI_FTYPE_PCV2DI_V2DI_QI,
9468 V4DI_FTYPE_PCV4DI_V4DI_QI, V8HI_FTYPE_PCV8HI_V8HI_QI,
9469 V16HI_FTYPE_PCV16HI_V16HI_HI, V32HI_FTYPE_PCV32HI_V32HI_SI,
9470 V16QI_FTYPE_PCV16QI_V16QI_HI, V32QI_FTYPE_PCV32QI_V32QI_SI,
9471 V64QI_FTYPE_PCV64QI_V64QI_DI, do not handle V8USI_FTYPE_V8USI.
9472
9473 2014-10-28 Jakub Jelinek <jakub@redhat.com>
9474
9475 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t
9476 type for the left shift in CASE_CONVERT case.
9477
9478 2014-10-28 Max Ostapenko <m.ostapenko@partner.samsung.com>
9479
9480 * asan.h (asan_intercepted_p): New function.
9481 * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
9482 hash value construction. Call iterative_hash_expr instead of explicit
9483 hash building.
9484 (asan_mem_ref_hasher::equal): Change condition.
9485 (has_mem_ref_been_instrumented): Likewise.
9486 (update_mem_ref_hash_table): Likewise.
9487 (maybe_update_mem_ref_hash_table): New function.
9488 (instrument_strlen_call): Removed.
9489 (get_mem_refs_of_builtin_call): Handle new parameter.
9490 (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
9491 of instrument_mem_region_access if intercepted_p is true.
9492 (instrument_mem_region_access): Instrument only base with len instead of
9493 base and end with 1.
9494 (build_check_stmt): Remove start_instrumented and end_instrumented
9495 parameters.
9496 (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
9497 ASAN_CHECK_END_INSTRUMENTED. Change ASAN_CHECK_LAST.
9498 (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
9499 * builtins.c (expand_builtin): Include asan.h. Don't expand string/memory
9500 builtin functions that have interceptors if ASan is enabled.
9501
9502 2014-10-28 Richard Biener <rguenther@suse.de>
9503
9504 PR middle-end/63665
9505 * fold-const.c (fold_comparison): Properly guard simplifying
9506 against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
9507
9508 2014-10-28 Alan Lawrence <alan.lawrence@arm.com>
9509
9510 * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
9511 * fold-const.c (const_binop): Likewise.
9512 * cfgexpand.c (expand_debug_expr): Likewise.
9513 * tree-inline.c (estimate_operator_cost): Likewise.
9514 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
9515 * optabs.c (optab_for_tree_code): Likewise.
9516 (expand_vec_shift_expr): Likewise, update comment.
9517 * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
9518 * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
9519 * optabs.def: Remove vec_shl_optab.
9520 * doc/md.texi: Remove references to vec_shr_m.
9521
9522 2014-10-28 Yury Gribov <y.gribov@samsung.com>
9523
9524 * asan.c (report_error_func): Add noabort path.
9525 (check_func): Ditto. Formatting.
9526 (asan_expand_check_ifn): Handle noabort path.
9527 * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
9528 to default value.
9529 * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
9530 * opts.c (finish_options): Reword comment.
9531 * sanitizer.def: Add noabort ASan builtins.
9532
9533 2014-10-28 Yury Gribov <y.gribov@samsung.com>
9534
9535 * asan.c (set_asan_shadow_offset): New function.
9536 (asan_shadow_offset): Likewise.
9537 (asan_emit_stack_protection): Call asan_shadow_offset.
9538 (build_shadow_mem_access): Likewise.
9539 * asan.h (set_asan_shadow_offset): Declare.
9540 * common.opt (fasan-shadow-offset): New option.
9541 (frandom-seed): Fixed parameter name.
9542 * doc/invoke.texi (fasan-shadow-offset): Describe new option.
9543 (frandom-seed): Fixed parameter name.
9544 * opts-global.c (handle_common_deferred_options): Handle
9545 -fasan-shadow-offset.
9546 * opts.c (common_handle_option): Likewise.
9547
9548 2014-10-27 Jiong Wang <jiong.wang@arm.com>
9549
9550 PR target/63442
9551 * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
9552
9553 2014-10-27 DJ Delorie <dj@redhat.com>
9554
9555 * tree.c (build_common_tree_nodes): Don't even store the
9556 __int128 types if they're not supported.
9557
9558 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9559
9560 * config/i386/i386.c (ix86_loop_memcount): Delete.
9561 (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
9562
9563 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9564
9565 * config/i386/i386.c (find_constant_1): Delete.
9566 (find_constant): Use FOR_EACH_SUBRTX.
9567
9568 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9569
9570 * config/i386/i386.c (extended_reg_mentioned_1): Delete.
9571 (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
9572
9573 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9574
9575 * config/i386/i386.c: Include rtl-iter.h
9576 (ix86_check_avx256_register): Take a const_rtx and return a bool.
9577 (ix86_check_avx256_stores): Update call accordingly.
9578 (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
9579 (ix86_avx_u128_mode_needed): Likewise. Use FOR_EACH_SUBRTX.
9580
9581 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9582
9583 * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
9584 Take an rtx and return a bool.
9585 * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
9586 Use FOR_EACH_SUBRTX_VAR.
9587 * config/alpha/predicates.md (some_small_symbolic_operand): Update
9588 accordingly.
9589
9590 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9591
9592 * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
9593 a bool.
9594 * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
9595 (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX. Return a bool.
9596
9597 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9598
9599 * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
9600 (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
9601
9602 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9603
9604 * config/alpha/alpha.c: Include rtl-iter.h.
9605 (split_small_symbolic_operand_1): Delete.
9606 (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
9607
9608 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9609
9610 * config/s390/s390.c: Include rtl-iter.h.
9611 (check_dpu): Delete.
9612 (s390_loop_unroll_adjust): Only iterate over patterns.
9613 Use FOR_EACH_SUBRTX.
9614
9615 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
9616
9617 * config/spu/spu.c: Include rtl-iter.h
9618 (ea_symbol_ref): Replace with...
9619 (ea_symbol_ref_p): ...this new function.
9620 (spu_legitimate_address_p): Update call accordingly.
9621 (spu_legitimate_constant_p): Likewise. Use FOR_EACH_SUBRTX.
9622
9623 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
9624 Tom Tromey <tromey@redhat.com>
9625
9626 * aclocal.m4, configure: Rebuild.
9627 * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
9628 * configure.ac: Use GCC_ENABLE_PLUGINS.
9629 * stor-layout.c (finish_bitfield_layout): Now public. Change
9630 argument type to 'tree'.
9631 (finish_record_layout): Update.
9632 * stor-layout.h (finish_bitfield_layout): Declare.
9633
9634 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
9635
9636 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
9637 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
9638 Restore, enable for bigendian, update to use __builtin..._scal...
9639
9640 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
9641
9642 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
9643 reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
9644 (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
9645 reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
9646
9647 * config/aarch64/aarch64-simd.md
9648 (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
9649 (reduc_<maxmin_uns>_internal<mode>): ...this.
9650 (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
9651 (reduc_<maxmin_uns>_scal_<mode>): New (*2).
9652
9653 (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
9654 (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
9655 (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
9656
9657 * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
9658 vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
9659 vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
9660 vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
9661 vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
9662 vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
9663 vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
9664 __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
9665
9666 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
9667
9668 * config/aarch64/aarch64-simd-builtins.def
9669 (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
9670 Remove.
9671 (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
9672
9673 * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
9674 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
9675
9676 (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
9677 (aarch64_reduc_plus_internal<mode>): ...this.
9678
9679 (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
9680 (aarch64_reduc_plus_internalv2si): ...this.
9681
9682 (reduc_splus_<mode>/V2F): Rename to...
9683 (aarch64_reduc_plus_internal<mode>): ...this.
9684
9685 * config/aarch64/iterators.md
9686 (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
9687 (UNSPEC_ADDV): New.
9688 (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
9689
9690 * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
9691 vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
9692 vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
9693 vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
9694 __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
9695
9696 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
9697
9698 PR tree-optimization/61114
9699 * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
9700 optabs, and note in reduc_[us](plus|min|max) to prefer the former.
9701
9702 * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
9703 back to old reduc_... + BIT_FIELD_REF only if not.
9704
9705 * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
9706 return the reduce-to-scalar (reduc_..._scal) optab.
9707 (scalar_reduc_to_vector): New.
9708
9709 * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
9710 reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
9711 New.
9712
9713 * optabs.h (scalar_reduc_to_vector): Declare.
9714
9715 * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
9716 to either scalar or vector.
9717
9718 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
9719
9720 PR tree-optimization/61114
9721 * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
9722 extract_bit_field around optab result.
9723
9724 * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
9725 scalar not vector.
9726
9727 * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
9728 for REDUC_{MIN,MAX,PLUS}_EXPR.
9729
9730 * tree-vect-loop.c (vect_analyze_loop): Update comment.
9731 (vect_create_epilog_for_reduction): For direct vector reduction, use
9732 result of tree code directly without extract_bit_field.
9733
9734 * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
9735 comment.
9736
9737 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
9738
9739 * basic-block.h: Remove all includes.
9740 (enum profile_status_d, struct control_flow_graph): Move to cfg.h
9741 * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
9742 * Makefile.in (GTFILES): Add cfg.h to list.
9743 * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
9744 * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
9745 * genconditions.c (write_header): Add predict.h and basic-block.h to
9746 lits of includes.
9747 * genemit.c (main): Ditto.
9748 * genpreds.c (write_insn_preds_c): Ditto.
9749 * genrecog.c (write_header): Ditto.
9750 * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
9751 to list of includes.
9752 * alias.c: Adjust include files.
9753 * asan.c: Ditto.
9754 * auto-inc-dec.c: Ditto.
9755 * auto-profile.c: Ditto.
9756 * bb-reorder.c: Ditto.
9757 * bt-load.c: Ditto.
9758 * builtins.c: Ditto.
9759 * caller-save.c: Ditto.
9760 * calls.c: Ditto.
9761 * cfg.c: Ditto.
9762 * cfganal.c: Ditto.
9763 * cfgbuild.c: Ditto.
9764 * cfgcleanup.c: Ditto.
9765 * cfgexpand.c: Ditto.
9766 * cfghooks.c: Ditto.
9767 * cfgloop.c: Ditto.
9768 * cfgloopanal.c: Ditto.
9769 * cfgloopmanip.c: Ditto.
9770 * cfgrtl.c: Ditto.
9771 * cgraphbuild.c: Ditto.
9772 * cgraphclones.c: Ditto.
9773 * cgraphunit.c: Ditto.
9774 * combine-stack-adj.c: Ditto.
9775 * combine.c: Ditto.
9776 * compare-elim.c: Ditto.
9777 * coverage.c: Ditto.
9778 * cprop.c: Ditto.
9779 * cse.c: Ditto.
9780 * cselib.c: Ditto.
9781 * data-streamer-in.c: Ditto.
9782 * data-streamer-out.c: Ditto.
9783 * data-streamer.c: Ditto.
9784 * dce.c: Ditto.
9785 * ddg.c: Ditto.
9786 * ddg.h: Ditto.
9787 * df-core.c: Ditto.
9788 * df-problems.c: Ditto.
9789 * df-scan.c: Ditto.
9790 * df.h: Ditto.
9791 * dojump.c: Ditto.
9792 * dominance.c: Ditto.
9793 * domwalk.c: Ditto.
9794 * dse.c: Ditto.
9795 * dwarf2cfi.c: Ditto.
9796 * emit-rtl.c: Ditto.
9797 * et-forest.c: Ditto.
9798 * except.c: Ditto.
9799 * expmed.c: Ditto.
9800 * expr.c: Ditto.
9801 * final.c: Ditto.
9802 * fold-const.c: Ditto.
9803 * function.c: Ditto.
9804 * fwprop.c: Ditto.
9805 * gcc-plugin.h: Ditto.
9806 * gcse.c: Ditto.
9807 * generic-match-head.c: Ditto.
9808 * ggc-page.c: Ditto.
9809 * gimple-builder.c: Ditto.
9810 * gimple-expr.c: Ditto.
9811 * gimple-fold.c: Ditto.
9812 * gimple-iterator.c: Ditto.
9813 * gimple-low.c: Ditto.
9814 * gimple-match-head.c: Ditto.
9815 * gimple-pretty-print.c: Ditto.
9816 * gimple-ssa-isolate-paths.c: Ditto.
9817 * gimple-ssa-strength-reduction.c: Ditto.
9818 * gimple-streamer-in.c: Ditto.
9819 * gimple-streamer-out.c: Ditto.
9820 * gimple-streamer.h: Ditto.
9821 * gimple-walk.c: Ditto.
9822 * gimple.c: Ditto.
9823 * gimplify-me.c: Ditto.
9824 * gimplify.c: Ditto.
9825 * graph.c: Ditto.
9826 * graphite-blocking.c: Ditto.
9827 * graphite-clast-to-gimple.c: Ditto.
9828 * graphite-dependences.c: Ditto.
9829 * graphite-interchange.c: Ditto.
9830 * graphite-isl-ast-to-gimple.c: Ditto.
9831 * graphite-optimize-isl.c: Ditto.
9832 * graphite-poly.c: Ditto.
9833 * graphite-scop-detection.c: Ditto.
9834 * graphite-sese-to-poly.c: Ditto.
9835 * graphite.c: Ditto.
9836 * haifa-sched.c: Ditto.
9837 * hw-doloop.c: Ditto.
9838 * ifcvt.c: Ditto.
9839 * init-regs.c: Ditto.
9840 * internal-fn.c: Ditto.
9841 * ipa-cp.c: Ditto.
9842 * ipa-devirt.c: Ditto.
9843 * ipa-icf-gimple.c: Ditto.
9844 * ipa-icf.c: Ditto.
9845 * ipa-inline-analysis.c: Ditto.
9846 * ipa-inline.c: Ditto.
9847 * ipa-polymorphic-call.c: Ditto.
9848 * ipa-profile.c: Ditto.
9849 * ipa-prop.c: Ditto.
9850 * ipa-pure-const.c: Ditto.
9851 * ipa-reference.c: Ditto.
9852 * ipa-split.c: Ditto.
9853 * ipa-utils.c: Ditto.
9854 * ipa.c: Ditto.
9855 * ira-build.c: Ditto.
9856 * ira-color.c: Ditto.
9857 * ira-conflicts.c: Ditto.
9858 * ira-costs.c: Ditto.
9859 * ira-emit.c: Ditto.
9860 * ira-lives.c: Ditto.
9861 * ira.c: Ditto.
9862 * jump.c: Ditto.
9863 * lcm.c: Ditto.
9864 * loop-doloop.c: Ditto.
9865 * loop-init.c: Ditto.
9866 * loop-invariant.c: Ditto.
9867 * loop-iv.c: Ditto.
9868 * loop-unroll.c: Ditto.
9869 * lower-subreg.c: Ditto.
9870 * lra-assigns.c: Ditto.
9871 * lra-coalesce.c: Ditto.
9872 * lra-constraints.c: Ditto.
9873 * lra-eliminations.c: Ditto.
9874 * lra-lives.c: Ditto.
9875 * lra-spills.c: Ditto.
9876 * lra.c: Ditto.
9877 * lto-cgraph.c: Ditto.
9878 * lto-compress.c: Ditto.
9879 * lto-opts.c: Ditto.
9880 * lto-section-in.c: Ditto.
9881 * lto-section-out.c: Ditto.
9882 * lto-streamer-in.c: Ditto.
9883 * lto-streamer-out.c: Ditto.
9884 * lto-streamer.c: Ditto.
9885 * mcf.c: Ditto.
9886 * mode-switching.c: Ditto.
9887 * modulo-sched.c: Ditto.
9888 * omp-low.c: Ditto.
9889 * optabs.c: Ditto.
9890 * opts-global.c: Ditto.
9891 * passes.c: Ditto.
9892 * postreload-gcse.c: Ditto.
9893 * postreload.c: Ditto.
9894 * predict.c: Ditto.
9895 * print-rtl.c: Ditto.
9896 * profile.c: Ditto.
9897 * recog.c: Ditto.
9898 * ree.c: Ditto.
9899 * reg-stack.c: Ditto.
9900 * regcprop.c: Ditto.
9901 * regcprop.h: Ditto.
9902 * reginfo.c: Ditto.
9903 * regrename.c: Ditto.
9904 * regstat.c: Ditto.
9905 * reload.c: Ditto.
9906 * reload1.c: Ditto.
9907 * reorg.c: Ditto.
9908 * resource.c: Ditto.
9909 * rtlanal.c: Ditto.
9910 * sched-deps.c: Ditto.
9911 * sched-ebb.c: Ditto.
9912 * sched-int.h: Ditto.
9913 * sched-rgn.c: Ditto.
9914 * sched-vis.c: Ditto.
9915 * sel-sched-dump.c: Ditto.
9916 * sel-sched-ir.c: Ditto.
9917 * sel-sched-ir.h: Ditto.
9918 * sel-sched.c: Ditto.
9919 * sese.c: Ditto.
9920 * shrink-wrap.c: Ditto.
9921 * stack-ptr-mod.c: Ditto.
9922 * stmt.c: Ditto.
9923 * store-motion.c: Ditto.
9924 * symtab.c: Ditto.
9925 * toplev.c: Ditto.
9926 * tracer.c: Ditto.
9927 * trans-mem.c: Ditto.
9928 * tree-affine.c: Ditto.
9929 * tree-call-cdce.c: Ditto.
9930 * tree-cfg.c: Ditto.
9931 * tree-cfgcleanup.c: Ditto.
9932 * tree-chrec.c: Ditto.
9933 * tree-complex.c: Ditto.
9934 * tree-data-ref.c: Ditto.
9935 * tree-dfa.c: Ditto.
9936 * tree-eh.c: Ditto.
9937 * tree-emutls.c: Ditto.
9938 * tree-if-conv.c: Ditto.
9939 * tree-inline.c: Ditto.
9940 * tree-into-ssa.c: Ditto.
9941 * tree-loop-distribution.c: Ditto.
9942 * tree-nested.c: Ditto.
9943 * tree-nrv.c: Ditto.
9944 * tree-object-size.c: Ditto.
9945 * tree-outof-ssa.c: Ditto.
9946 * tree-parloops.c: Ditto.
9947 * tree-phinodes.c: Ditto.
9948 * tree-predcom.c: Ditto.
9949 * tree-pretty-print.c: Ditto.
9950 * tree-profile.c: Ditto.
9951 * tree-scalar-evolution.c: Ditto.
9952 * tree-sra.c: Ditto.
9953 * tree-ssa-address.c: Ditto.
9954 * tree-ssa-alias.c: Ditto.
9955 * tree-ssa-ccp.c: Ditto.
9956 * tree-ssa-coalesce.c: Ditto.
9957 * tree-ssa-copy.c: Ditto.
9958 * tree-ssa-copyrename.c: Ditto.
9959 * tree-ssa-dce.c: Ditto.
9960 * tree-ssa-dom.c: Ditto.
9961 * tree-ssa-dse.c: Ditto.
9962 * tree-ssa-forwprop.c: Ditto.
9963 * tree-ssa-ifcombine.c: Ditto.
9964 * tree-ssa-live.c: Ditto.
9965 * tree-ssa-loop-ch.c: Ditto.
9966 * tree-ssa-loop-im.c: Ditto.
9967 * tree-ssa-loop-ivcanon.c: Ditto.
9968 * tree-ssa-loop-ivopts.c: Ditto.
9969 * tree-ssa-loop-manip.c: Ditto.
9970 * tree-ssa-loop-niter.c: Ditto.
9971 * tree-ssa-loop-prefetch.c: Ditto.
9972 * tree-ssa-loop-unswitch.c: Ditto.
9973 * tree-ssa-loop.c: Ditto.
9974 * tree-ssa-math-opts.c: Ditto.
9975 * tree-ssa-operands.c: Ditto.
9976 * tree-ssa-phiopt.c: Ditto.
9977 * tree-ssa-phiprop.c: Ditto.
9978 * tree-ssa-pre.c: Ditto.
9979 * tree-ssa-propagate.c: Ditto.
9980 * tree-ssa-reassoc.c: Ditto.
9981 * tree-ssa-sccvn.c: Ditto.
9982 * tree-ssa-sink.c: Ditto.
9983 * tree-ssa-strlen.c: Ditto.
9984 * tree-ssa-structalias.c: Ditto.
9985 * tree-ssa-tail-merge.c: Ditto.
9986 * tree-ssa-ter.c: Ditto.
9987 * tree-ssa-threadedge.c: Ditto.
9988 * tree-ssa-threadupdate.c: Ditto.
9989 * tree-ssa-uncprop.c: Ditto.
9990 * tree-ssa-uninit.c: Ditto.
9991 * tree-ssa.c: Ditto.
9992 * tree-ssanames.c: Ditto.
9993 * tree-stdarg.c: Ditto.
9994 * tree-streamer-in.c: Ditto.
9995 * tree-streamer-out.c: Ditto.
9996 * tree-streamer.c: Ditto.
9997 * tree-switch-conversion.c: Ditto.
9998 * tree-tailcall.c: Ditto.
9999 * tree-vect-data-refs.c: Ditto.
10000 * tree-vect-generic.c: Ditto.
10001 * tree-vect-loop-manip.c: Ditto.
10002 * tree-vect-loop.c: Ditto.
10003 * tree-vect-patterns.c: Ditto.
10004 * tree-vect-slp.c: Ditto.
10005 * tree-vect-stmts.c: Ditto.
10006 * tree-vectorizer.c: Ditto.
10007 * tree-vrp.c: Ditto.
10008 * tree.c: Ditto.
10009 * tsan.c: Ditto.
10010 * ubsan.c: Ditto.
10011 * valtrack.c: Ditto.
10012 * valtrack.h: Ditto.
10013 * value-prof.c: Ditto.
10014 * var-tracking.c: Ditto.
10015 * varasm.c: Ditto.
10016 * varpool.c: Ditto.
10017 * vtable-verify.c: Ditto.
10018 * web.c: Ditto.
10019 * config/aarch64/aarch64-builtins.c: Ditto.
10020 * config/aarch64/aarch64.c: Ditto.
10021 * config/alpha/alpha.c: Ditto.
10022 * config/arc/arc.c: Ditto.
10023 * config/arm/arm.c: Ditto.
10024 * config/avr/avr.c: Ditto.
10025 * config/bfin/bfin.c: Ditto.
10026 * config/c6x/c6x.c: Ditto.
10027 * config/cr16/cr16.c: Ditto.
10028 * config/cris/cris.c: Ditto.
10029 * config/darwin-c.c: Ditto.
10030 * config/darwin.c: Ditto.
10031 * config/epiphany/epiphany.c: Ditto.
10032 * config/epiphany/mode-switch-use.c: Ditto.
10033 * config/epiphany/resolve-sw-modes.c: Ditto.
10034 * config/fr30/fr30.c: Ditto.
10035 * config/frv/frv.c: Ditto.
10036 * config/h8300/h8300.c: Ditto.
10037 * config/i386/i386.c: Ditto.
10038 * config/i386/winnt.c: Ditto.
10039 * config/ia64/ia64.c: Ditto.
10040 * config/iq2000/iq2000.c: Ditto.
10041 * config/lm32/lm32.c: Ditto.
10042 * config/m32c/m32c.c: Ditto.
10043 * config/m32r/m32r.c: Ditto.
10044 * config/m68k/m68k.c: Ditto.
10045 * config/mcore/mcore.c: Ditto.
10046 * config/mep/mep.c: Ditto.
10047 * config/microblaze/microblaze.c: Ditto.
10048 * config/mips/mips.c: Ditto.
10049 * config/mmix/mmix.c: Ditto.
10050 * config/mn10300/mn10300.c: Ditto.
10051 * config/moxie/moxie.c: Ditto.
10052 * config/msp430/msp430.c: Ditto.
10053 * config/nds32/nds32-cost.c: Ditto.
10054 * config/nds32/nds32-fp-as-gp.c: Ditto.
10055 * config/nds32/nds32-intrinsic.c: Ditto.
10056 * config/nds32/nds32-isr.c: Ditto.
10057 * config/nds32/nds32-md-auxiliary.c: Ditto.
10058 * config/nds32/nds32-memory-manipulation.c: Ditto.
10059 * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
10060 * config/nds32/nds32-predicates.c: Ditto.
10061 * config/nds32/nds32.c: Ditto.
10062 * config/nios2/nios2.c: Ditto.
10063 * config/pa/pa.c: Ditto.
10064 * config/pdp11/pdp11.c: Ditto.
10065 * config/rl78/rl78.c: Ditto.
10066 * config/rs6000/rs6000.c: Ditto.
10067 * config/rx/rx.c: Ditto.
10068 * config/s390/s390.c: Ditto.
10069 * config/sh/sh-mem.cc: Ditto.
10070 * config/sh/sh.c: Ditto.
10071 * config/sh/sh_optimize_sett_clrt.cc: Ditto.
10072 * config/sh/sh_treg_combine.cc: Ditto.
10073 * config/sparc/sparc.c: Ditto.
10074 * config/spu/spu.c: Ditto.
10075 * config/stormy16/stormy16.c: Ditto.
10076 * config/tilegx/tilegx.c: Ditto.
10077 * config/tilepro/tilepro.c: Ditto.
10078 * config/v850/v850.c: Ditto.
10079 * config/vax/vax.c: Ditto.
10080 * config/xtensa/xtensa.c: Ditto.
10081
10082 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
10083
10084 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
10085 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
10086 Remove using preprocessor directives.
10087
10088 2014-10-27 Richard Biener <rguenther@suse.de>
10089
10090 * match.pd (0 % X): Properly use the iterator iterating over
10091 all modulo operators.
10092 (X % 1): Likewise.
10093
10094 2014-10-27 Richard Biener <rguenther@suse.de>
10095
10096 * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
10097 (lattice): New global.
10098 (fwprop_ssa_val): New function.
10099 (fold_all_stmts): Likewise.
10100 (pass_forwprop::execute): Finally fold all stmts.
10101
10102 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
10103
10104 PR c++/53061
10105 * doc/invoke.texi (fmessage-length): Update text to match reality.
10106
10107 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10108
10109 * config/microblaze/microblaze.c: Include rtl-iter.h.
10110 (microblaze_tls_referenced_p_1): Delete.
10111 (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
10112
10113 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10114
10115 * config/mips/mips.c (mips_at_reg_p): Delete.
10116 (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
10117
10118 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10119
10120 * config/mips/mips.c (mips_record_lo_sum): Replace with...
10121 (mips_record_lo_sums): ...this new function.
10122 (mips_reorg_process_insns): Update accordingly.
10123
10124 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10125
10126 * config/mips/mips.c (mips_sim_insn): Update comment.
10127 (mips_sim_wait_regs_2): Delete.
10128 (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
10129
10130 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10131
10132 * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
10133 and return a bool. Iterate over all subrtxes here.
10134 (r10k_needs_protection_p): Update accordingly.
10135
10136 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10137
10138 * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
10139 rather than an rtx pointer. Change type of insn from "void *"
10140 to its real type. Return bool rather than int. Iterate over
10141 all subrtxes here.
10142 (r10k_needs_protection_p_store): Update accordingly.
10143 (r10k_needs_protection_p): Likewise.
10144
10145 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10146
10147 * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
10148 (mips16_rewrite_pool_refs): Take the insn and constant pool as
10149 parameters. Iterate over the instruction's pattern and return void.
10150 (mips16_lay_out_constants): Update accordingly.
10151
10152 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10153
10154 * config/mips/mips.c (mips_kernel_reg_p): Replace with...
10155 (mips_refers_to_kernel_reg_p): ...this new function.
10156 (mips_expand_prologue): Update accordingly.
10157
10158 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10159
10160 * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
10161 as a parameter instead of the containing MEM. Iterate over all
10162 subrtxes. Don't return a value.
10163 (mips_rewrite_small_data): Update call accordingly.
10164
10165 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10166
10167 * config/mips/mips.c: Include rtl-iter.h.
10168 (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
10169 Take the context as a parameter instead of the containing MEM.
10170 Iterate over all subrtxes.
10171 (mips_small_data_pattern_p): Update call accordingly.
10172
10173 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10174
10175 * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
10176 (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
10177
10178 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10179
10180 * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
10181 return a bool. Replace "void *" with specific type. Iterate
10182 over all subrtxes.
10183 (mep_store_data_bypass_1): Update calls accordingly.
10184
10185 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10186
10187 * config/mep/mep.c: Include rtl-iter.h.
10188 (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
10189 (xtensa_tls_referenced_p): Return a bool. Use FOR_EACH_SUBRTX.
10190
10191 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10192
10193 * config/xtensa/xtensa.c: Include rtl-iter.h.
10194 (xtensa_tls_referenced_p_1): Delete.
10195 (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
10196
10197 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10198
10199 * config/sh/sh.c (sh_contains_memref_p_1): Delete.
10200 (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
10201
10202 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10203
10204 * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
10205 rtx as argument and return the number of changes.
10206 * config/sh/sh.c: Include rtl-iter.h.
10207 (shmedia_cleanup_truncate): Take an rtx as argument and iterate
10208 over all subrtxes. Return the number of changes made.
10209 * config/sh/sh.md: Update caller accordingly.
10210
10211 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10212
10213 * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
10214 (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
10215
10216 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
10217
10218 * config/m68k/m68k.c: Include rtl-iter.h.
10219 (m68k_final_prescan_insn_1): Delete.
10220 (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
10221
10222 2014-10-25 Jakub Jelinek <jakub@redhat.com>
10223
10224 PR tree-optimization/63641
10225 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
10226 to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
10227
10228 2014-10-25 Alan Modra <amodra@gmail.com>
10229
10230 PR rtl-optimization/63615
10231 * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
10232 decomposing PLUS or MINUS if operands are not placed adjacent
10233 in the "ops" array.
10234
10235 2014-10-25 Joseph Myers <joseph@codesourcery.com>
10236
10237 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
10238 not allow e500 double in registers not satisyfing
10239 SPE_SIMD_REGNO_P.
10240
10241 2014-10-24 Aldy Hernandez <aldyh@redhat.com>
10242
10243 * dwarf2out.c (declare_in_namespace): Only emit external
10244 declarations in the local scope once.
10245
10246 2014-10-24 Jonathan Wakely <jwakely@redhat.com>
10247
10248 * ginclude/stdbool.h: Do not define bool, true or false in C++11.
10249
10250 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
10251
10252 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
10253 update uses to use new macro arguments.
10254 (__LD3_LANE_FUNC): Likewise.
10255 (__LD4_LANE_FUNC): Likewise.
10256
10257 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
10258
10259 * config/aarch64/aarch64-builtins.c
10260 (aarch64_types_loadstruct_lane_qualifiers): Define.
10261 * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
10262 ld4_lane): New builtins.
10263 * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
10264 New pattern.
10265 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
10266 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
10267 (aarch64_ld2_lane<mode>): New expand.
10268 (aarch64_ld3_lane<mode>): Likewise.
10269 (aarch64_ld4_lane<mode>): Likewise.
10270 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
10271 UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
10272
10273 2014-10-24 Georg-Johann Lay <avr@gjlay.de>
10274
10275 * avr-protos.h (avr_out_sign_extend): New.
10276 * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
10277 (avr_out_sign_extend): New function.
10278 * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
10279 (extendhisi2, extendpsisi2): Use it.
10280 (adjust_len) [sext]: New.
10281
10282 2014-10-24 Martin Liska <mliska@suse.cz>
10283
10284 * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
10285 added.
10286
10287 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10288
10289 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
10290 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
10291 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
10292 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
10293
10294 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10295
10296 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
10297 do while (0).
10298 * config/aarch64/aarch64.c (is_mem_p): Delete.
10299 (is_memory_op): Rename to...
10300 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
10301 (dep_between_memop_and_curr): Assert that the input is a SET.
10302 (aarch64_madd_needs_nop): Add comment. Do not call
10303 dep_between_memop_and_curr on NULL body.
10304 (aarch64_final_prescan_insn): Add comment.
10305 Include rtl-iter.h.
10306
10307 2014-10-24 Richard Biener <rguenther@suse.de>
10308
10309 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
10310 to genmatch BUILD_LIBS instead.
10311
10312 2014-10-24 Richard Biener <rguenther@suse.de>
10313
10314 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
10315 and build_call_expr_loc.
10316 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
10317 non_lvalue_loc to build it for GENERIC.
10318 (decision_tree::gen_generic): Add location argument to
10319 generic_simplify prototype.
10320 (capture_info): New class.
10321 (capture_info::capture_info): New constructor.
10322 (capture_info::walk_match): New method.
10323 (capture_info::walk_result): New method.
10324 (capture_info::walk_c_expr): New method.
10325 (dt_simplify::gen): Handle preserving side-effects for
10326 GENERIC code generation.
10327 (decision_tree::gen_generic): Do not reject operands
10328 with TREE_SIDE_EFFECTS.
10329 * generic-match.h: New file.
10330 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
10331 * match.pd: Add some constant folding patterns from fold-const.c.
10332 * fold-const.c: Include generic-match.h.
10333 (fold_unary_loc): Dispatch to generic_simplify.
10334 (fold_ternary_loc): Likewise.
10335 (fold_binary_loc): Likewise. Remove patterns now implemented
10336 by generic_simplify.
10337 * gimple-fold.c (replace_stmt_with_simplification): New function.
10338 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
10339 (no_follow_ssa_edges): New function.
10340 (fold_stmt): New overload with valueization hook. Use
10341 no_follow_ssa_edges for the overload without hook.
10342 (fold_stmt_inplace): Likewise.
10343 * gimple-fold.h (no_follow_ssa_edges): Declare.
10344
10345 2014-10-24 Felix Yang <felix.yang@huawei.com>
10346 Jiji Jiang <jiangjiji@huawei.com>
10347
10348 PR target/63173
10349 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
10350 (__LD3R_FUNC): Ditto.
10351 (__LD4R_FUNC): Ditto.
10352 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
10353 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
10354 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
10355 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
10356 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
10357 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
10358 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
10359 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
10360 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
10361 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
10362 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
10363 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
10364 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
10365 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
10366 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
10367 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
10368 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
10369 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
10370 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
10371 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
10372 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
10373 builtins.
10374 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
10375 (aarch64_simd_ld3r<mode>): Likewise.
10376 (aarch64_simd_ld4r<mode>): Likewise.
10377 (aarch64_ld2r<mode>): New expand.
10378 (aarch64_ld3r<mode>): Likewise.
10379 (aarch64_ld4r<mode>): Likewise.
10380
10381 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10382
10383 * rtlanal.c (get_base_term): Handle SCRATCH.
10384
10385 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10386
10387 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
10388 register pressure.
10389
10390 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10391
10392 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
10393 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
10394 (max_issue, choose_ready, sched_init): Update.
10395
10396 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10397
10398 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
10399 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
10400 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
10401 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
10402 (print_rank_for_schedule_stats): Print out elements of ready list that
10403 ended up on their respective places due to each of the sorting
10404 heuristics.
10405 (ready_sort): Update.
10406 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
10407 (schedule_block): Update.
10408
10409 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10410
10411 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
10412 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
10413 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
10414 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
10415 (model_start_schedule): Update.
10416 (sched_pressure_start_bb): New static function. Calculate
10417 sched_class_regs_num.
10418 (schedule_block): Use it.
10419 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
10420
10421 2014-10-24 Richard Biener <rguenther@suse.de>
10422
10423 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
10424 host library and make sure to pull in the required libintl
10425 and libiconv dependencies.
10426
10427 2014-10-24 Richard Biener <rguenther@suse.de>
10428
10429 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
10430
10431 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
10432
10433 PR bootstrap/63632
10434 * collect2.c (main): Filter out -fno-lto.
10435
10436 2014-10-24 Martin Liska <mliska@suse.cz>
10437
10438 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
10439 division by zero in dumps.
10440 (sem_item_optimizer::merge_classes): Ditto.
10441
10442 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
10443
10444 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
10445
10446 2014-10-23 Ian Lance Taylor <iant@google.com>
10447
10448 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
10449
10450 2014-10-23 Ian Lance Taylor <iant@google.com>
10451
10452 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
10453
10454 2014-10-23 Jakub Jelinek <jakub@redhat.com>
10455
10456 PR debug/63623
10457 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
10458 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
10459 instead of only handling autoinc in dest if it is a MEM.
10460 (vt_stack_adjustments): Fix up formatting.
10461
10462 2014-10-23 DJ Delorie <dj@redhat.com>
10463
10464 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
10465 independend of -mlarge.
10466 * config/msp430/constraints.md (Ys): Update comment.
10467
10468 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
10469
10470 PR target/63534
10471 PR target/63618
10472 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
10473 while it is pseudo.
10474 * dse.c (deletable_insn_p): Likewise.
10475
10476 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
10477
10478 * config/avr/avr.c: Fix GNU coding rules and typos.
10479 * config/avr/avr.h: Dito.
10480 * config/avr/avr-c.c: Dito.
10481 * config/avr/avr.md: Dito.
10482
10483 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
10484
10485 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
10486 New.
10487 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
10488 iterator.
10489 (define_expand "abs<mode>2"): Ditto.
10490
10491 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
10492
10493 * tree-core.h (tree_var_decl): Extend `function_code' field
10494 by one bit, move `regdecl_flag' field to ...
10495 (tree_decl_with_vis): Here.
10496 * tree.h (DECL_STATIC_CHAIN): Update struct name.
10497
10498 2014-10-23 Richard Biener <rguenther@suse.de>
10499
10500 * Makefile.in (BUILD_CPPLIB): Add.
10501 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
10502 Drop LIBIBERTY.
10503
10504 2014-10-23 Richard Biener <rguenther@suse.de>
10505
10506 * fold-const.c (fold_binary_loc): Preserve side-effects of
10507 X - X when simplifying to 0.
10508 * stor-layout.c (finish_bitfield_representative): Strip
10509 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
10510
10511 2014-10-22 Richard Biener <rguenther@suse.de>
10512 Tobias Burnus <burnus@net-b.de>
10513
10514 PR lto/63603
10515 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
10516
10517 2014-10-22 Dehao Chen <dehao@google.com>
10518
10519 * auto-profile.c: Change order of header files.
10520
10521 2014-10-22 Guozhi Wei <carrot@google.com>
10522
10523 PR tree-optimization/63530
10524 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
10525 pointer alignment according to DR_MISALIGNMENT.
10526
10527 2014-10-22 David Malcolm <dmalcolm@redhat.com>
10528
10529 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
10530
10531 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
10532
10533 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
10534 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
10535 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
10536 * dominance.h: New. Add prototypes for dominance.c.
10537 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
10538 * cfghooks.h: (struct profile_record) Relocate here.
10539 Relocate 2 prototypes from basic-block.h.
10540 * basic-block.h: Move prototypes and struct to new header files.
10541 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
10542 * rtl.h: Move a few prototypes to new header files.
10543 * cfgcleanup.c (merge_memattrs): Make static.
10544 * genopinit.c (main): Add predict.h to list of includes.
10545 * predict.h: Update prototype list to match predict.c.
10546 * predict.c (maybe_hot_count_p): Export.
10547 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
10548 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
10549 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
10550 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
10551 * profile.h: Adjust prototypes.
10552 * ifcvt.h: New. Relocate struct ce_if_block here.
10553 * ifcvt.c: Include ifcvt.h.
10554 * config/frv/frv.c: Include ifcvt.h.
10555 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
10556
10557 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
10558
10559 * lra.c (lra): Remove call to recog_init.
10560 * config/i386/i386.md (preferred_for_speed): New attribute
10561 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
10562 "enabled". Remove check for sched1.
10563
10564 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
10565
10566 * recog.h (recog_data_d): Remove enabled_alternatives.
10567 * recog.c (extract_insn): Don't set it.
10568 * reload.c (find_reloads): Call get_enabled_alternatives.
10569
10570 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
10571
10572 * recog.h (constrain_operands): Add an alternative_mask parameter.
10573 (constrain_operands_cached): Likewise.
10574 (get_preferred_alternatives): Declare new form.
10575 * recog.c (get_preferred_alternatives): New bb-taking instance.
10576 (constrain_operands): Take the set of available alternatives as
10577 a parameter.
10578 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
10579 (extract_constrain_insn_cached): Update calls to constrain_operands.
10580 * caller-save.c (reg_save_code): Likewise.
10581 * ira.c (setup_prohibited_mode_move_regs): Likewise.
10582 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
10583 * ree.c (combine_reaching_defs): Likewise.
10584 * reload.c (can_reload_into): Likewise.
10585 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
10586 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
10587 (emit_insn_if_valid_for_reload): Likewise.
10588 * reorg.c (fill_slots_from_thread): Likewise.
10589 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
10590 * config/pa/pa.c (pa_can_combine_p): Likewise.
10591 * config/rl78/rl78.c (insn_ok_now): Likewise.
10592 * config/sh/sh.md (define_peephole2): Likewise.
10593 * final.c (final_scan_insn): Update call to constrain_operands_cached.
10594
10595 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
10596
10597 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
10598 attributes.
10599 * genattr.c (main): Handle "preferred_for_size" and
10600 "preferred_for_speed" in the same way as "enabled".
10601 * recog.h (bool_attr): New enum.
10602 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
10603 (get_preferred_alternatives, check_bool_attrs): Declare.
10604 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
10605 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
10606 New functions.
10607 (get_enabled_alternatives): Use get_bool_attr_mask.
10608 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
10609 instead of recog_data.enabled_alternatives.
10610 * ira.c (ira_setup_alts): Likewise.
10611 * postreload.c (reload_cse_simplify_operands): Likewise.
10612 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
10613 * ira-lives.c (preferred_alternatives): New variable.
10614 (process_bb_node_lives): Set it.
10615 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
10616 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
10617 of recog_data.enabled_alternatives.
10618 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
10619 to preferred_alternatives.
10620 * lra-constraints.c (process_alt_operands): Update accordingly.
10621 * lra.c (lra_set_insn_recog_data): Likewise.
10622 (lra_update_insn_recog_data): Assert check_bool_attrs.
10623
10624 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
10625
10626 * recog.h (extract_constrain_insn): Declare.
10627 * recog.c (extract_constrain_insn): New function.
10628 * lra.c (check_rtl): Use it.
10629 * postreload.c (reload_cse_simplify_operands): Likewise.
10630 * reg-stack.c (check_asm_stack_operands): Likewise.
10631 (subst_asm_stack_regs): Likewise.
10632 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
10633 * regrename.c (build_def_use): Likewise.
10634 * sel-sched.c (get_reg_class): Likewise.
10635 * config/arm/arm.c (note_invalid_constants): Likewise.
10636 * config/s390/predicates.md (execute_operation): Likewise.
10637
10638 2014-10-22 Jakub Jelinek <jakub@redhat.com>
10639 Yury Gribov <y.gribov@samsung.com>
10640
10641 * common.opt (flag_sanitize_recover): New variable.
10642 (fsanitize-recover): Remove Var/Init, deprecate.
10643 (fsanitize-recover=): New option.
10644 * doc/invoke.texi (fsanitize-recover): Update docs.
10645 * opts.c (finish_options): Use opts->x_flag_sanitize
10646 instead of flag_sanitize. Prohibit -fsanitize-recover
10647 for anything besides UBSan. Formatting.
10648 (common_handle_option): Handle OPT_fsanitize_recover_
10649 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
10650 instead of flag_sanitize.
10651 * asan.c (pass_sanopt::execute): Fix up formatting.
10652 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
10653 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
10654 instrument_bool_enum_load, ubsan_instrument_float_cast,
10655 instrument_nonnull_arg, instrument_nonnull_return): Check
10656 bits in flag_sanitize_recover bitmask instead of
10657 flag_sanitize_recover as bool flag.
10658
10659 2014-10-22 Jiong Wang <jiong.wang@arm.com>
10660
10661 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
10662
10663 2014-10-22 Renlin Li <renlin.li@arm.com>
10664
10665 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
10666 __ARM_FEATURE_IDIV__.
10667
10668 2014-10-22 Richard Biener <rguenther@suse.de>
10669
10670 * Makefile.in (s-match): Adjust dependencies to only catch
10671 match.pd.
10672
10673 2014-10-22 Richard Biener <rguenther@suse.de>
10674 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
10675
10676 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
10677 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
10678 (gimple-match.c): Generate by triggering s-match.
10679 (generic-match.c): Likewise.
10680 (s-match): Rule to build gimple-match.c and generic-match.c
10681 by running the genmatch generator program.
10682 (build/hash-table.o): Dependencies to build hash-table.c for the host.
10683 (build/genmatch.o): Dependencies to build genmatch.
10684 (genprog): Add match.
10685 (build/genmatch): Likewise.
10686 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
10687 * generic-match-head.c: New file.
10688 * gimple-match-head.c: Likewise.
10689 * gimple-match.h: Likewise.
10690 * genmatch.c: Likewise.
10691 * match.pd: Likewise.
10692 * builtins.h (fold_builtin_n): Export.
10693 * builtins.c (fold_builtin_n): Likewise.
10694 * gimple-fold.h (gimple_build): Declare various overloads.
10695 (gimple_simplify): Likewise.
10696 (gimple_convert): Re-implement in terms of gimple_build.
10697 * gimple-fold.c (gimple_convert): Remove.
10698 (gimple_build): New functions.
10699 * doc/match-and-simplify.texi: New file.
10700 * doc/gccint.texi: Add menu item Match and Simplify and include
10701 match-and-simplify.texi.
10702
10703 2014-10-22 Jakub Jelinek <jakub@redhat.com>
10704
10705 PR target/63594
10706 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
10707 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
10708 even for just TARGET_AVX2, not only for
10709 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
10710 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
10711 otherwise build it using concatenation of 256-bit
10712 broadcast.
10713 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
10714 avx512 broadcast patterns.
10715 (vec_dup<mode>): Likewise. For avx2 use
10716 v<sseintprefix>broadcast<bcstscalarsuff> instead of
10717 vbroadcast<ssescalarmodesuffix>.
10718 (AVX2_VEC_DUP_MODE): New mode iterator.
10719 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
10720 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
10721
10722 PR target/63542
10723 * config/i386/i386.c (ix86_pic_register_p): Also return
10724 true if x is a hard register with ORIGINAL_REGNO equal to
10725 pic_offset_table_rtx pseudo REGNO.
10726 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
10727 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
10728
10729 2014-10-22 Alan Modra <amodra@gmail.com>
10730
10731 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
10732 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
10733 (gcc_obstack_init): Use obstack_specify_allocation in place of
10734 _obstack_begin.
10735 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
10736 (regexp_representation): Likewise.
10737 * godump.c (go_output_type): Likewise.
10738
10739 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
10740
10741 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
10742 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
10743 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
10744
10745 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
10746
10747 * doc/invoke.texi (pedantic-errors): Explain better.
10748
10749 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
10750 Vidya Praveen <vidya.praveen@atmel.com>
10751 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
10752 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
10753 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
10754
10755 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
10756 __MEMX for avrtiny.
10757 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
10758 (avr_nonconst_pointer_addrspace): Likewise.
10759 * config/avr/avr.h (AVR_HAVE_LPM): Define.
10760
10761 Added AVRTINY architecture to avr target.
10762 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
10763 (base_arch_s): member added for AVRTINY architecture.
10764 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
10765 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
10766 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
10767 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
10768 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
10769 in callee saved register list.
10770 (avr_option_override): CCP address updated for AVRTINY.
10771 (avr_init_expanders): tmp and zero rtx initialized as per arch.
10772 Reset avr_have_dimode if AVRTINY.
10773 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
10774 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
10775 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
10776 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
10777 (expand_epilogue): Likewise.
10778 (avr_print_operand): Print CCP address in case of AVRTINY also.
10779 <TBD>bad address
10780 (function_arg_regno_p): Check different register list for arguments
10781 if AVRTINY.
10782 (init_cumulative_args): Check for AVRTINY to update number of argument
10783 registers.
10784 (tiny_valid_direct_memory_access_range): New function. Return false if
10785 direct memory access range is not in accepted range for AVRTINY.
10786 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
10787 indirect load (with displacement) for AVRTINY.
10788 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
10789 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
10790 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
10791 indirect load (no displacement) for AVRTINY.
10792 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
10793 indirect load (with displacement) for AVRTINY.
10794 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
10795 indirect load for pre-decrement address.
10796 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
10797 functions. Update instruction length for AVRTINY.
10798 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
10799 SImode.
10800 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
10801 (out_movsi_r_mr): Likewise, for SImode.
10802 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
10803 indirect store (no displacement) for AVRTINY.
10804 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
10805 indirect store (with displacement) for AVRTINY.
10806 (out_movsi_mr_r): Emit out insn for IO address store. Update store
10807 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
10808 store functions.
10809 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
10810 indirect load (no displacement) for PSImode in AVRTINY.
10811 (avr_out_load_psi_reg_disp_tiny): New function to handle register
10812 indirect load (with displacement) for PSImode in AVRTINY.
10813 (avr_out_load_psi): Call PSImode register indirect load functions for
10814 AVRTINY. Update instruction length for AVRTINY.
10815 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
10816 indirect store (no displacement) for PSImode in AVRTINY.
10817 (avr_out_store_psi_reg_disp_tiny): New function to handle register
10818 indirect store (with displacement) for PSImode in AVRTINY.
10819 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
10820 register indirect store functions for AVRTINY.
10821 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
10822 register indirect store (with displacement) for AVRTINY.
10823 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
10824 register indirect store function for QImode in AVRTINY.
10825 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
10826 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
10827 indirect store (no displacement) for HImode in AVRTINY.
10828 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
10829 indirect store (with displacement) for HImode in AVRTINY.
10830 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
10831 indirect store for post-increment address in HImode.
10832 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
10833 register indirect store function for HImode in AVRTINY.
10834 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
10835 in case of AVRTINY.
10836 (order_regs_for_local_alloc): Updated register allocation order for
10837 AVRTINY.
10838 (avr_conditional_register_usage): New function. It is a target hook
10839 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
10840 used registers list and register allocation order for AVRTINY.
10841 (avr_return_in_memory): Update return value size for AVRTINY.
10842 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
10843 for AVRTINY arch and tiny program memory base address.
10844 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
10845 (avr_texinfo): Added description for AVRTINY arch.
10846 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
10847 STATIC_CHAIN_REGNUM for AVRTINY.
10848 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
10849 * config/avr/avr.md: Added constants for tmp/ zero registers in
10850 AVRTINY. Attributes for AVRTINY added.
10851 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
10852 memory access range.
10853 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
10854 in AVRTINY memory access range.
10855 (*mov<mode>): Likewise for HImode and SImode.
10856 (*movsf): Likewise for SFmode.
10857 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
10858 not have sbiw.
10859 * config/avr/avr-protos.h: Added function prototype for
10860 tiny_valid_direct_memory_access_range.
10861 * config/avr/avr-tables.opt: Regenerate.
10862 * gcc/config/avr/t-multilib: Regenerate.
10863 * doc/avr-mmcu.texi: Regenerate.
10864
10865 2014-10-21 Andrew Pinski <apinski@cavium.com>
10866
10867 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
10868 available option also.
10869 * config/aarch64/aarch64-cost-tables.h: New file.
10870 * config/aarch64/aarch64-cores.def (thunderx): New core.
10871 * config/aarch64/aarch64-tune.md: Regenerate.
10872 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
10873 of config/arm/aarch-cost-tables.h.
10874 (thunderx_regmove_cost): New variable.
10875 (thunderx_tunings): New variable.
10876
10877 2014-10-21 Dehao Chen <dehao@google.com>
10878
10879 * auto-profile.c: New file.
10880 * auto-profile.h: New file.
10881 * basic-block.h (maybe_hot_count_p): New export func.
10882 (add_working_set): New export func.
10883 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
10884 (GCOV_TAG_AFDO_FUNCTION): Likewise.
10885 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
10886 * opts.c (enable_fdo_optimizations): New func.
10887 (common_handle_option): Handle -fauto-profile flag.
10888 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
10889 (class pass_early_inline): Export early_inliner.
10890 (early_inliner): Likewise.
10891 (pass_early_inline::execute): Likewise.
10892 * ipa-inline.h (early_inliner): Likewise.
10893 * predict.c (maybe_hot_count_p): New export func.
10894 (counts_to_freqs): AutoFDO logic.
10895 (rebuild_frequencies): Likewise.
10896 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
10897 * profile.c (add_working_set): New func.
10898 * Makefile.in (auto-profile.o): New object file.
10899 * passes.def (pass_ipa_auto_profile): New pass.
10900 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
10901 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
10902 * toplev.c (compile_file): AutoFDO logic.
10903 * doc/invoke.texi (-fauto-profile): New doc.
10904 * coverage.c (coverage_init): AutoFDO logic.
10905 * common.opt (-fauto-profile): New flag.
10906 * timevar.def (TV_IPA_AUTOFDO): New tag.
10907 * value-prof.c (gimple_alloc_histogram_value): New export func.
10908 (check_ic_target): Likewise.
10909 * value-prof.h (gimple_alloc_histogram_value): Likewise.
10910 (check_ic_target): Likewise.
10911
10912 2014-10-21 David Malcolm <dmalcolm@redhat.com>
10913
10914 * cgraph.c (cgraph_c_finalize): New function.
10915 * cgraph.h (cgraph_c_finalize): New prototype.
10916 (cgraphunit_c_finalize): New prototype.
10917 * cgraphunit.c (first_analyzed): Move from analyze_functions
10918 to file-scope.
10919 (first_analyzed_var): Likewise.
10920 (analyze_functions): Move static variables into file-scope.
10921 (cgraphunit_c_finalize): New function.
10922 * diagnostic.c (diagnostic_finish): Free the memory for
10923 context->classify_diagnostic and context->printer, running the
10924 destructor for the latter.
10925 (bt_stop): Use toplev::main.
10926 * dwarf2out.c (dwarf2out_finalize): New function.
10927 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
10928 * gcse.c (gcse_c_finalize): New function.
10929 * gcse.h (gcse_c_finalize): New prototype.
10930 * ggc-page.c (init_ggc): Make idempotent.
10931 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
10932 * ipa-cp.c (ipa_cp_c_finalize): New function.
10933 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
10934 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
10935 a field of class pass_ipa_pure_const.
10936 (node_duplication_hook_holder): Likewise.
10937 (node_removal_hook_holder): Likewise.
10938 (register_hooks): Convert to method...
10939 (pass_ipa_pure_const::register_hooks): ...here, converting
10940 static variable init_p into...
10941 (pass_ipa_pure_const::init_p): ...new field.
10942 (pure_const_generate_summary): Update invocation of
10943 register_hooks to invoke as a method of current_pass.
10944 (pure_const_read_summary): Likewise.
10945 (propagate): Convert to...
10946 (pass_ipa_pure_const::execute): ...method.
10947 * ipa-reference.c (ipa_init): Move static bool init_p from here
10948 to...
10949 (ipa_init_p): New file-scope variable, so that it can be reset
10950 when repeatedly invoking the compiler within one process by...
10951 (ipa_reference_c_finalize): New function.
10952 * ipa-reference.h (ipa_reference_c_finalize): New.
10953 * main.c (main): Replace invocation of toplev_main with
10954 construction of a toplev instance, and call its "main" method.
10955 * params.c (global_init_params): Add an assert that
10956 params_finished is false.
10957 (params_c_finalize): New.
10958 * params.h (params_c_finalize): New.
10959 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
10960 invoking generate_summary, for the benefit of pass_ipa_pure_const.
10961 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
10962 before calling write_summary hook.
10963 (ipa_write_optimization_summaries_1): Likewise when calling
10964 write_optimization_summary hook.
10965 (ipa_read_summaries_1): Likewise for read_summary hook.
10966 (ipa_read_optimization_summaries_1): Likewise for
10967 read_optimization_summary hook.
10968 (execute_ipa_stmt_fixups): Likewise.
10969 * stringpool.c (init_stringpool): Clean up if we're called more
10970 than once.
10971 * timevar.c (timevar_init): Ignore repeated calls.
10972 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
10973 "ipa-prop.h".
10974 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
10975 (initialize_rtl): Move static local "initialized_once"
10976 into file scope, and rename to...
10977 (rtl_initialized): New variable.
10978 (do_compile): Move timevar initialization from here to
10979 toplev::start_timevars.
10980 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
10981 toplev::finalize): New functions.
10982 (toplev_main): Rename to...
10983 (toplev::main): ...this.
10984 * toplev.h (class toplev): New class.
10985
10986 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
10987
10988 * loop-doloop.c: Include loop-unroll.h.
10989
10990 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
10991
10992 * cfg.h: New. Header file for cfg.c.
10993 * cfganal.h: New. Header file for cfganal.c.
10994 * lcm.h: New. Header file for lcm.c.
10995 * loop-unroll.h: New. Header file for loop-unroll.h.
10996 * cfgloop.h: (unroll_loops): Remove prototype.
10997 * basic-block.h: Move prototypes and structs to new header files.
10998 Include cfg.h, cfganal.h, and lcm.h.
10999 * loop-init.c: Include loop-unroll.h.
11000 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
11001 * modulo-sched.c: Include loop-unroll.h.
11002
11003 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
11004
11005 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
11006 MARKER_BYTE_UNKNOWN markers when handling casts.
11007
11008 2014-10-21 Richard Biener <rguenther@suse.de>
11009
11010 * tree-ssa-phiopt.c (value_replacement): Properly verify we
11011 are the non-singleton PHI.
11012
11013 2014-10-21 Jakub Jelinek <jakub@redhat.com>
11014
11015 PR tree-optimization/63563
11016 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
11017 if either dra or drb stmts are not normal loads/stores.
11018
11019 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
11020
11021 * config/i386/i386.c (expand_vec_perm_1): Fix
11022 expand_vec_perm_palignr case.
11023 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
11024 VI1_AVX512.
11025
11026 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
11027
11028 * cfgloopanal.c (seq_cost): Delete.
11029 * rtl.h (seq_cost): New prototype.
11030 * rtlanal.c (seq_cost): New function.
11031 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
11032
11033 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
11034
11035 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
11036 * basic-block.h: Remove prototypes for cfgrtl.c.
11037 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
11038 prototypes to cfgrtl.h.
11039 * profile.h (profile_info): Add extern export declaration.
11040 * rtl.h: Remove prototypes for cfgrtl.h.
11041 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
11042 * ipa-inline.c: Include profile.h.
11043 * loop-unroll.c: Ditto.
11044 * modulo-sched.c: Ditto.
11045 * postreload-gcse.c: Ditto.
11046 * predict.c: Ditto.
11047 * sched-ebb.c: Ditto.
11048 * sched-rgn.c: Ditto.
11049 * tracer.c: Ditto.
11050 * tree-ssa-loop-ivcanon.c: Ditto.
11051
11052 2014-10-20 Richard Biener <rguenther@suse.de>
11053
11054 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
11055 operands to get a def operand kind match. Signal mismatches
11056 to the parent so we can try swapping its operands.
11057 (vect_build_slp_tree): Try swapping operands if they have
11058 a mismatched operand kind.
11059
11060 2014-10-20 Alan Modra <amodra@gmail.com>
11061
11062 PR debug/60655
11063 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
11064 Increase "ops" array size. Correct array size tests. Init
11065 n_constants in loop. Break out of innermost loop when finding
11066 a trivial CONST expression.
11067
11068 2014-10-20 Martin Liska <mliska@suse.cz>
11069
11070 PR ipa/63583
11071 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
11072 Gimple tempate string is compared.
11073
11074 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
11075
11076 * varasm.c (const_alias_set): Remove.
11077 (init_varasm_once): Remove initialization of const_alias_set.
11078 (build_constant_desc): Do not set alias set to const_alias_set.
11079
11080 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
11081
11082 * configure: Regenerate.
11083 * configure.ac: Move the test for section attribute specifier "e" in GAS
11084 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
11085 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
11086 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
11087 ifdef HAVE_GAS_SECTION_EXCLUDE.
11088
11089 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
11090
11091 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
11092 match_operand expression.
11093
11094 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
11095 David Edelsohn <dje.gcc@gmail.com>
11096
11097 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
11098 function.
11099 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
11100
11101 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
11102
11103 * doc/invoke.texi (Options to Request or Suppress Warnings):
11104 Explain options precedence.
11105 (Wtrampolines): Do not indent paragraph.
11106
11107 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
11108
11109 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
11110 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
11111 (pa_jump_in_call_delay): Likewise.
11112 * config/pa/pa.c (pa_option_override): Remove jump in call delay
11113 override.
11114 (pa_output_millicode_call): Remove support for jump in call delay.
11115 (pa_output_call): Likewise.
11116 (pa_jump_in_call_delay): Delete.
11117 (pa_following_call): Likewise.
11118 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
11119 (uncond_branch): Remove following call check from attribute length.
11120
11121 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
11122
11123 PR target/53513
11124 * config/sh/sh-modes.def (PSI): Remove.
11125 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
11126 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
11127 (sh_reorg): Remove commented out FPSCR code.
11128 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
11129 insn instead of move insn.
11130 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
11131 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
11132 handling.
11133 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
11134 (sh1_builtin_p): Uncomment.
11135 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
11136 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
11137 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
11138 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
11139 (general_movsrc_operand, general_movdst_operand): Disallow
11140 fpscr_operand.
11141 * config/sh/sh.md (FPSCR_FR): New constant.
11142 (push_fpscr): Emit sts_fpscr insn.
11143 (pop_fpscr): Emit lds_fpscr_insn.
11144 (movsi_ie): Disallow FPSCR operands.
11145 (fpu_switch, unnamed related split, extend_psi_si,
11146 truncate_si_psi): Remove insns.
11147 (lds_fpscr, sts_fpscr): New insns.
11148 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
11149
11150 >>>>>>> .r217525
11151 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
11152
11153 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
11154 (clone_inlined_nodes): Do not overwrite the clone if above predicate
11155 returns true.
11156
11157 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
11158
11159 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
11160 (expand_vec_perm_d): Ditto.
11161 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
11162 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
11163 V4DFmode.
11164 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
11165 (ix86_expand_sse_unpack): Handle V64QImode.
11166 (expand_vec_perm_blend): Update conditions for TARGET, handle
11167 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
11168 (expand_vec_perm_pshufb): Handle V64QImode.
11169 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
11170 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
11171 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
11172 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
11173 (ix86_expand_vecop_qihi): Handle V64QImode.
11174 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
11175 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
11176 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
11177 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
11178 (mul<mode>3): Use VI1_AVX512.
11179 (<sse2_avx2>_packsswb): Ditto.
11180 (<sse2_avx2>_packuswb): Ditto.
11181 (<ssse3_avx2>_pshufb<mode>3): Ditto.
11182 (<shift_insn><mode>3): Ditto.
11183
11184 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
11185
11186 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
11187 conditions to fix bootstrap.
11188
11189 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
11190
11191 gcc-plugin.h: Add tm.h and flattened includes from function.h.
11192
11193 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
11194 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11195 Anna Tikhonova <anna.tikhonova@intel.com>
11196 Ilya Tocar <ilya.tocar@intel.com>
11197 Andrey Turetskiy <andrey.turetskiy@intel.com>
11198 Ilya Verbin <ilya.verbin@intel.com>
11199 Kirill Yukhin <kirill.yukhin@intel.com>
11200 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11201
11202 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
11203 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
11204 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
11205 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
11206 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
11207 (define_expand "vec_init<mode>"): Use VF48_I1248.
11208
11209 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
11210 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11211 Anna Tikhonova <anna.tikhonova@intel.com>
11212 Ilya Tocar <ilya.tocar@intel.com>
11213 Andrey Turetskiy <andrey.turetskiy@intel.com>
11214 Ilya Verbin <ilya.verbin@intel.com>
11215 Kirill Yukhin <kirill.yukhin@intel.com>
11216 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11217
11218 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
11219 expand_sse2_mulvxdi3.
11220
11221 2014-10-17 Richard Biener <rguenther@suse.de>
11222
11223 * fold-const.c (fold_comparison): Remove redundant constant
11224 folding and operand swapping.
11225 (fold_binary_loc): Do comparison operand swapping here.
11226 (fold_ternary_loc): Canonicalize operand order for
11227 commutative ternary operations.
11228 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
11229 and FMA_EXPR.
11230
11231 2014-10-17 Jakub Jelinek <jakub@redhat.com>
11232
11233 PR tree-optimization/63464
11234 * gimple.h (gimple_seq_discard): New prototype.
11235 * gimple.c: Include stringpool.h and tree-ssanames.h.
11236 (gimple_seq_discard): New function.
11237 * optabs.h (lshift_cheap_p): New prototype.
11238 * optabs.c (lshift_cheap_p): New function, moved from...
11239 * tree-switch-conversion.c (lshift_cheap_p): ... here.
11240 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
11241 (reassoc_branch_fixups): New variable.
11242 (update_range_test): Add otherrangep and seq arguments.
11243 Unshare exp. If otherrange is NULL, use for other ranges
11244 array of pointers pointed by otherrangep instead.
11245 Emit seq before gimplified statements for tem.
11246 (optimize_range_tests_diff): Adjust update_range_test
11247 caller.
11248 (optimize_range_tests_xor): Likewise. Fix up comment.
11249 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
11250 functions.
11251 (optimize_range_tests): Adjust update_range_test caller.
11252 Call optimize_range_tests_to_bit_test.
11253 (branch_fixup): New function.
11254 (execute_reassoc): Call branch_fixup.
11255
11256 PR tree-optimization/63302
11257 * tree-ssa-reassoc.c (optimize_range_tests_xor,
11258 optimize_range_tests_diff): Use !integer_pow2p () instead of
11259 tree_log2 () < 0.
11260
11261 2014-10-17 Martin Liska <mliska@suse.cz>
11262
11263 * ipa-icf.c (sem_function::merge): Local flags are set to false
11264 to enforce equal calling convention to be used.
11265 * opts.c (common_handle_option): Indentation fix.
11266
11267 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
11268
11269 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
11270
11271 2014-10-17 Tom de Vries <tom@codesourcery.com>
11272
11273 PR rtl-optimization/61605
11274 * regcprop.c (copyprop_hardreg_forward_1): Use
11275 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
11276
11277 2014-10-17 Tom de Vries <tom@codesourcery.com>
11278
11279 PR rtl-optimization/61605
11280 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p. Don't
11281 notice stores for noops. Don't regard noops as copies.
11282
11283 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
11284
11285 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
11286 register in a special way.
11287 (__cpuid_count): Ditto.
11288 * config/i386/driver-i386.h: Protect with
11289 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
11290 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
11291 is required to compile the function.
11292
11293 2014-10-16 DJ Delorie <dj@redhat.com>
11294
11295 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
11296 integers.
11297
11298 * config/rs6000/rs6000-c.c (rid_int128): New.
11299 (rs6000_macro_to_expand): Use instead of RID_INT128.
11300
11301 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
11302
11303 * function.h: Flatten file. Remove includes, adjust prototypes to
11304 reflect only what is in function.h.
11305 (enum direction, struct args_size, struct locate_and_pad_arg_data,
11306 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
11307 from expr.h.
11308 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
11309 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
11310 prototypes to predict.h.
11311 (init_varasm_status): Move prototype to varasm.h.
11312 * expr.h: Adjust include files.
11313 (enum direction, struct args_size, struct locate_and_pad_arg_data,
11314 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
11315 to function.h.
11316 (locate_and_pad_parm): Move prototype to function.h.
11317 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
11318 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
11319 assign_temp, reposition_prologue_and_epilogue_notes,
11320 prologue_epilogue_contains, sibcall_epilogue_contains,
11321 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
11322 set_return_jump_label): Move prototypes to function.h.
11323 * predict.h (optimize_function_for_size_p,
11324 optimize_function_for_speed_p): Relocate prototypes from function.h.
11325 * shrink-wrap.h (emit_return_into_block, active_insn_between,
11326 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
11327 function.h.
11328 * varasm.h (init_varasm_status): Relocate prototype from function.h.
11329 * genattrtab.c (write_header): Add predict.h to include list.
11330 * genconditions.c (write_header): Add predict.h to include list.
11331 * genemit.c (main): Adjust header file includes.
11332 * gengtype.c (ifiles): Add flattened function.h header files.
11333 * genoutput.c (output_prologue): Add predict.h to include list.
11334 * genpreds.c (write_insn_preds_c): Adjust header file includes.
11335 * genrecog.c (write_header): Add flattened function.h header files.
11336 * alias.c: Adjust include files.
11337 * auto-inc-dec.c: Likewise.
11338 * basic-block.h: Likewise.
11339 * bb-reorder.c: Likewise.
11340 * bt-load.c: Likewise.
11341 * builtins.c: Likewise.
11342 * caller-save.c: Likewise.
11343 * calls.c: Likewise.
11344 * cfgbuild.c: Likewise.
11345 * cfgcleanup.c: Likewise.
11346 * cfgexpand.c: Likewise.
11347 * cfgloop.c: Likewise.
11348 * cfgloop.h: Likewise.
11349 * cfgrtl.c: Likewise.
11350 * cgraph.h: Likewise.
11351 * cgraphclones.c: Likewise.
11352 * cgraphunit.c: Likewise.
11353 * combine-stack-adj.c: Likewise.
11354 * combine.c: Likewise.
11355 * coverage.c: Likewise.
11356 * cprop.c: Likewise.
11357 * cse.c: Likewise.
11358 * cselib.c: Likewise.
11359 * dbxout.c: Likewise.
11360 * ddg.c: Likewise.
11361 * df-core.c: Likewise.
11362 * df-problems.c: Likewise.
11363 * df-scan.c: Likewise.
11364 * dojump.c: Likewise.
11365 * dwarf2cfi.c: Likewise.
11366 * dwarf2out.c: Likewise.
11367 * emit-rtl.c: Likewise.
11368 * except.c: Likewise.
11369 * explow.c: Likewise.
11370 * expr.c: Likewise.
11371 * final.c: Likewise.
11372 * function.c: Likewise.
11373 * gcse.c: Likewise.
11374 * gimple-fold.c: Likewise.
11375 * gimple-low.c: Likewise.
11376 * gimple-streamer.h: Likewise.
11377 * haifa-sched.c: Likewise.
11378 * ifcvt.c: Likewise.
11379 * ira.c: Likewise.
11380 * jump.c: Likewise.
11381 * lcm.c: Likewise.
11382 * loop-invariant.c: Likewise.
11383 * lra-assigns.c: Likewise.
11384 * lra-coalesce.c: Likewise.
11385 * lra-constraints.c: Likewise.
11386 * lra-eliminations.c: Likewise.
11387 * lra-lives.c: Likewise.
11388 * lra-spills.c: Likewise.
11389 * lra.c: Likewise.
11390 * lto-cgraph.c: Likewise.
11391 * lto-section-in.c: Likewise.
11392 * lto-section-out.c: Likewise.
11393 * lto-streamer-in.c: Likewise.
11394 * lto-streamer-out.c: Likewise.
11395 * mode-switching.c: Likewise.
11396 * modulo-sched.c: Likewise.
11397 * omp-low.c: Likewise.
11398 * optabs.c: Likewise.
11399 * passes.c: Likewise.
11400 * postreload-gcse.c: Likewise.
11401 * postreload.c: Likewise.
11402 * predict.c: Likewise.
11403 * profile.c: Likewise.
11404 * recog.c: Likewise.
11405 * ree.c: Likewise.
11406 * reg-stack.c: Likewise.
11407 * regcprop.c: Likewise.
11408 * reginfo.c: Likewise.
11409 * regrename.c: Likewise.
11410 * reload.c: Likewise.
11411 * reload1.c: Likewise.
11412 * reorg.c: Likewise.
11413 * resource.c: Likewise.
11414 * rtlanal.c: Likewise.
11415 * sched-deps.c: Likewise.
11416 * sched-ebb.c: Likewise.
11417 * sched-rgn.c: Likewise.
11418 * sel-sched-dump.c: Likewise.
11419 * sel-sched-ir.c: Likewise.
11420 * sel-sched.c: Likewise.
11421 * shrink-wrap.c: Likewise.
11422 * simplify-rtx.c: Likewise.
11423 * statistics.c: Likewise.
11424 * stmt.c: Likewise.
11425 * stor-layout.c: Likewise.
11426 * store-motion.c: Likewise.
11427 * symtab.c: Likewise.
11428 * targhooks.c: Likewise.
11429 * toplev.c: Likewise.
11430 * trans-mem.c: Likewise.
11431 * tree-cfg.c: Likewise.
11432 * tree-cfgcleanup.c: Likewise.
11433 * tree-dfa.c: Likewise.
11434 * tree-eh.c: Likewise.
11435 * tree-inline.c: Likewise.
11436 * tree-into-ssa.c: Likewise.
11437 * tree-nested.c: Likewise.
11438 * tree-nrv.c: Likewise.
11439 * tree-profile.c: Likewise.
11440 * tree-ssa-alias.c: Likewise.
11441 * tree-ssa-ccp.c: Likewise.
11442 * tree-ssa-copy.c: Likewise.
11443 * tree-ssa-copyrename.c: Likewise.
11444 * tree-ssa-dom.c: Likewise.
11445 * tree-ssa-operands.c: Likewise.
11446 * tree-ssa-propagate.c: Likewise.
11447 * tree-ssa-structalias.c: Likewise.
11448 * tree-ssa-tail-merge.c: Likewise.
11449 * tree-ssa-threadedge.c: Likewise.
11450 * tree-ssa-threadupdate.c: Likewise.
11451 * tree-ssa-uncprop.c: Likewise.
11452 * tree-ssa-uninit.c: Likewise.
11453 * tree-ssa.c: Likewise.
11454 * tree-stdarg.c: Likewise.
11455 * tree-tailcall.c: Likewise.
11456 * tree.c: Likewise.
11457 * tsan.c: Likewise.
11458 * valtrack.c: Likewise.
11459 * varasm.c: Likewise.
11460 * vmsdbgout.c: Likewise.
11461 * web.c: Likewise.
11462 * config/aarch64/aarch64.c: Add flattened includes from function.h.
11463 * config/alpha/alpha.c: Likewise.
11464 * config/arc/arc.c: Likewise.
11465 * config/arm/arm.c: Likewise.
11466 * config/avr/avr-log.c: Likewise.
11467 * config/avr/avr.c: Likewise.
11468 * config/bfin/bfin.c: Likewise.
11469 * config/c6x/c6x.c: Likewise.
11470 * config/cr16/cr16.c: Likewise.
11471 * config/cris/cris.c: Likewise.
11472 * config/darwin.c: Likewise.
11473 * config/epiphany/epiphany.c: Likewise.
11474 * config/epiphany/mode-switch-use.c: Likewise.
11475 * config/epiphany/resolve-sw-modes.c: Likewise.
11476 * config/fr30/fr30.c: Likewise.
11477 * config/frv/frv.c: Likewise.
11478 * config/h8300/h8300.c: Likewise.
11479 * config/i386/i386.c: Likewise.
11480 * config/ia64/ia64.c: Likewise.
11481 * config/iq2000/iq2000.c: Likewise.
11482 * config/lm32/lm32.c: Likewise.
11483 * config/m32c/m32c.c: Likewise.
11484 * config/m32r/m32r.c: Likewise.
11485 * config/m68k/m68k.c: Likewise.
11486 * config/mcore/mcore.c: Likewise.
11487 * config/mep/mep-pragma.c: Likewise.
11488 * config/mep/mep.c: Likewise.
11489 * config/microblaze/microblaze.c: Likewise.
11490 * config/mips/mips.c: Likewise.
11491 * config/mmix/mmix.c: Likewise.
11492 * config/mn10300/mn10300.c: Likewise.
11493 * config/moxie/moxie.c: Likewise.
11494 * config/msp430/msp430.c: Likewise.
11495 * config/nds32/nds32-cost.c: Likewise.
11496 * config/nds32/nds32-fp-as-gp.c: Likewise.
11497 * config/nds32/nds32-intrinsic.c: Likewise.
11498 * config/nds32/nds32-isr.c: Likewise.
11499 * config/nds32/nds32-md-auxiliary.c: Likewise.
11500 * config/nds32/nds32-memory-manipulation.c: Likewise.
11501 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11502 * config/nds32/nds32-predicates.c: Likewise.
11503 * config/nds32/nds32.c: Likewise.
11504 * config/nios2/nios2.c: Likewise.
11505 * config/pa/pa.c: Likewise.
11506 * config/pdp11/pdp11.c: Likewise.
11507 * config/rl78/rl78.c: Likewise.
11508 * config/rs6000/rs6000.c: Likewise.
11509 * config/rx/rx.c: Likewise.
11510 * config/s390/s390.c: Likewise.
11511 * config/score/score.c: Likewise.
11512 * config/sh/sh.c: Likewise.
11513 * config/sparc/sparc.c: Likewise.
11514 * config/spu/spu.c: Likewise.
11515 * config/stormy16/stormy16.c: Likewise.
11516 * config/tilegx/tilegx.c: Likewise.
11517 * config/tilepro/tilepro.c: Likewise.
11518 * config/v850/v850.c: Likewise.
11519 * config/vax/vax.c: Likewise.
11520 * config/xtensa/xtensa.c: Likewise.
11521
11522 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
11523
11524 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
11525 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
11526
11527 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
11528
11529 * config/sh/sh-protos.h (fldi_ok): Remove.
11530 * config/sh/sh.c (fldi_ok): Likewise.
11531 (sh_secondary_reload): Don't use fldi_ok.
11532 * config/sh/constraints.md (G constraint, H constraint): Don't use
11533 fldi_ok.
11534
11535 2014-10-16 Martin Liska <mliska@suse.cz>
11536
11537 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
11538 Cast to unsigned long.
11539 (sem_item_optimizer::dump_cong_classes): Likewise.
11540
11541 2014-10-16 Tom de Vries <tom@codesourcery.com>
11542
11543 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
11544 with SSA_NAME_IN_FREELIST.
11545
11546 2014-10-16 Richard Biener <rguenther@suse.de>
11547
11548 PR middle-end/63554
11549 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
11550 (fold_builtin_strncat_chk): Move ...
11551 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
11552 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
11553
11554 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
11555
11556 PR target/59401
11557 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
11558 GBR to 0.
11559
11560 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
11561 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11562 Anna Tikhonova <anna.tikhonova@intel.com>
11563 Ilya Tocar <ilya.tocar@intel.com>
11564 Andrey Turetskiy <andrey.turetskiy@intel.com>
11565 Ilya Verbin <ilya.verbin@intel.com>
11566 Kirill Yukhin <kirill.yukhin@intel.com>
11567 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11568
11569 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
11570 V64QI modes.
11571
11572 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
11573 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11574 Anna Tikhonova <anna.tikhonova@intel.com>
11575 Ilya Tocar <ilya.tocar@intel.com>
11576 Andrey Turetskiy <andrey.turetskiy@intel.com>
11577 Ilya Verbin <ilya.verbin@intel.com>
11578 Kirill Yukhin <kirill.yukhin@intel.com>
11579 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11580
11581 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
11582 V16SI, V32HI, V64QI modes.
11583
11584 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
11585
11586 PR target/53513
11587 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
11588 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
11589
11590 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
11591 to match fp insn patterns.
11592 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
11593 list.
11594 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
11595 expand_df_unop, expand_df_binop): Remove.
11596 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
11597 FPSCR_STAT_REG as not call clobbered.
11598 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
11599 invoking fpscr_set_from_mem.
11600
11601 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
11602 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
11603 FPSCR_STAT_REG.
11604 (REGISTER_NAMES): Adjust.
11605 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
11606 (FIRST_PSEUDO_REGISTER): Increase to 156.
11607 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
11608 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
11609 FPSCR_STAT_REG.
11610 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
11611 FPSCR_MODES_REG and FPSCR_STAT_REG.
11612 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
11613
11614 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
11615 FPSCR_SZ): Add new constants.
11616 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
11617
11618 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
11619 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
11620 Use TARGET_FPU_ANY condition.
11621 (fpu_switch peephole2): Remove.
11622 (fpu_switch split): Use simple_mem_operand to capture the mem and
11623 adjust split implementation.
11624 (extend_psi_si, truncate_si_psi): New insns.
11625 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
11626 set of FPSCR_MODES_REG.
11627
11628 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
11629 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
11630 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
11631 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
11632 call_value_compact, call_value_compact_rettramp, call,
11633 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
11634 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
11635 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
11636 sibcall_value_compact, sibcall_value, call_value_pop_compact,
11637 call_value_pop_compact_rettramp, various unnamed splits):
11638 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
11639 function uses.
11640
11641 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
11642 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
11643 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
11644 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
11645 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
11646
11647 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
11648 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
11649 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
11650 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
11651 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
11652 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
11653 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
11654
11655 2014-10-16 Martin Liska <mliska@suse.cz>
11656 Jan Hubicka <hubicka@ucw.cz>
11657
11658 * Makefile.in: New object files included.
11659 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
11660 is printed.
11661 (verify_edge_corresponds_to_fndecl): More sensitive verification
11662 of nodes that are merged by IPA ICF.
11663 * cgraph.h (cgraph_node::num_references): New function.
11664 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
11665 * common.opt: New options ipa-icf, ipa-icf-functions and
11666 ipa-icf-variables introduced.
11667 * doc/invoke.texi: Documentation of new options introduced.
11668 * ipa-icf-gimple.c: New file.
11669 * ipa-icf-gimple.h: New file.
11670 * ipa-icf.c: New file.
11671 * ipa-icf.h: New file.
11672 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
11673 (input_overwrite_node): Likewise.
11674 * lto-section-in.c: New icf section added.
11675 * lto-streamer.h (enum lto_section_type): Likewise.
11676 * opts.c (common_handle_option): New option added.
11677 * passes.def: New pass included.
11678 * timevar.def: Time variable for IPA ICF added.
11679 * tree-pass.h: New IPA ICF pass entry point added.
11680
11681 2014-10-16 Richard Biener <rguenther@suse.de>
11682
11683 PR tree-optimization/63168
11684 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
11685 latches if after merging they are no longer simple.
11686 * cfghooks.c (merge_blocks): Handle merging a latch block
11687 into another block.
11688
11689 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
11690 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11691 Anna Tikhonova <anna.tikhonova@intel.com>
11692 Ilya Tocar <ilya.tocar@intel.com>
11693 Andrey Turetskiy <andrey.turetskiy@intel.com>
11694 Ilya Verbin <ilya.verbin@intel.com>
11695 Kirill Yukhin <kirill.yukhin@intel.com>
11696 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11697
11698 * config/i386/sse.md
11699 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
11700 support AVX-512VL instructions.
11701
11702 2014-10-16 DJ Delorie <dj@redhat.com>
11703
11704 * tree-core.h: Fix comment to not assume pointers are multiples of
11705 bytes.
11706
11707 2014-10-15 Tom Tromey <tromey@redhat.com>
11708
11709 * timevar.h (class auto_timevar): New class.
11710
11711 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
11712
11713 PR go/59432
11714 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
11715 Remove the second alternative.
11716 (regprefix): Remove mode attribute.
11717 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
11718 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
11719
11720 Revert:
11721 2013-11-05 Ian Lance Taylor <iant@google.com>
11722
11723 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
11724 If possible, add .cfi directives to record change to bx.
11725 * config/i386/i386.c (ix86_emit_cfi): New function.
11726 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
11727
11728 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
11729
11730 PR lto/62026
11731 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
11732 to duplicate.
11733 * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
11734 at WPA time.
11735
11736 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
11737
11738 PR rtl-optimization/63448
11739 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
11740 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
11741 (LRA_MAX_INHERITANCE_PASSES): Use it.
11742 (lra_constraint_iter_after_spill): Remove.
11743 (lra_assignment_iter): New.
11744 (lra_assignment_iter_after_spill): New.
11745 * lra-assigns.c (lra_assignment_iter): New.
11746 (lra_assignment_iter_after_spill): New.
11747 (former_reload_pseudo_spill_p): New.
11748 (spill_for): Set up former_reload_pseudo_spill_p.
11749 (setup_live_pseudos_and_spill_after_risky): Ditto.
11750 (assign_by_spills): Ditto.
11751 (lra_assign): Increment lra_assignment_iter. Print the iteration
11752 number. Reset former_reload_pseudo_spill_p. Check
11753 lra_assignment_iter_after_spill.
11754 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
11755 lra_assignment_iter and lra_assignment_iter_after_spill.
11756 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
11757 (lra_constraints): Remove code with
11758 lra_assignment_iter_after_spill.
11759
11760 2014-10-15 Teresa Johnson <tejohnson@google.com>
11761
11762 PR bootstrap/63432
11763 * tree-ssa-threadupdate.c (recompute_probabilities): Better
11764 overflow checking.
11765
11766 2014-10-15 Renlin Li <renlin.li@arm.com>
11767
11768 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11769 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
11770 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
11771 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
11772
11773 2014-10-15 Richard Biener <rguenther@suse.de>
11774
11775 * gimple-fold.c (gimple_fold_call): Properly keep virtual
11776 SSA form up-to-date when devirtualizing a call to
11777 __builtin_unreachable and avoid fixing up EH info here.
11778
11779 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11780 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11781 Anna Tikhonova <anna.tikhonova@intel.com>
11782 Ilya Tocar <ilya.tocar@intel.com>
11783 Andrey Turetskiy <andrey.turetskiy@intel.com>
11784 Ilya Verbin <ilya.verbin@intel.com>
11785 Kirill Yukhin <kirill.yukhin@intel.com>
11786 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11787
11788 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
11789 to support AVX-512BW.
11790 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
11791 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
11792 (define_insn "*<plusminus_insn><mode>3"): Ditto.
11793 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
11794 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
11795 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
11796 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
11797 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
11798 (define_insn "*andnot<mode>3"): Ditto.
11799 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
11800 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
11801 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
11802 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
11803 (define_insn "*abs<mode>2"): Remove masking support.
11804 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
11805 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
11806 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
11807
11808 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
11809 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11810 Anna Tikhonova <anna.tikhonova@intel.com>
11811 Ilya Tocar <ilya.tocar@intel.com>
11812 Andrey Turetskiy <andrey.turetskiy@intel.com>
11813 Ilya Verbin <ilya.verbin@intel.com>
11814 Kirill Yukhin <kirill.yukhin@intel.com>
11815 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11816
11817 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
11818 * config/i386/sse.md
11819 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
11820 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
11821 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
11822 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
11823 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
11824 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
11825 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
11826
11827 2014-10-15 Renlin Li <renlin.li@arm.com>
11828
11829 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
11830
11831 2014-10-15 Jakub Jelinek <jakub@redhat.com>
11832
11833 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
11834 MINUS_EXPR in unsigned type to avoid undefined behavior.
11835
11836 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
11837
11838 * stor-layout.c (self_referential_size): Do not promote arguments.
11839
11840 2014-10-15 Marek Polacek <polacek@redhat.com>
11841
11842 * doc/invoke.texi: Update to reflect that GNU11 is the default
11843 mode for C.
11844 * c-common.h (c_language_kind): Update comment.
11845
11846 2014-10-15 Richard Biener <rguenther@suse.de>
11847
11848 * hash-table.c: Include bconfig.h if building for the host.
11849 * hash-table.h: Do not include ggc.h on the host but just declare
11850 a few ggc allocation templates.
11851
11852 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
11853 Jeff Law <law@redhat.com>
11854
11855 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
11856 multiple hard registers, use smaller mode derived from MODE.
11857
11858 2014-10-15 Andreas Schwab <schwab@suse.de>
11859
11860 * explow.c (convert_memory_address_addr_space_1): Mark in_const
11861 as ATTRIBUTE_UNUSED.
11862
11863 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
11864
11865 * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
11866 (decide_unrolling): ... this one.
11867 (peel_loops_completely): Remove.
11868 (decide_peel_simple): Remove.
11869 (decide_peel_once_rolling): Remove.
11870 (decide_peel_completely): Remove.
11871 (peel_loop_simple): Remove.
11872 (peel_loop_completely): Remove.
11873 (unroll_and_peel_loops): Rename to ...
11874 (unroll_loops): ... this one; handle only unrolling.
11875 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
11876 LPT_PEEL_SIMPLE.
11877 (UAP_PEEL): Remove.
11878 (unroll_and_peel_loops): Remove.
11879 (unroll_loops): New.
11880 * passes.def: Replace
11881 pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
11882 * loop-init.c (gate_rtl_unroll_and_peel_loops,
11883 rtl_unroll_and_peel_loops): Rename to ...
11884 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
11885 (pass_rtl_unroll_and_peel_loops): Rename to ...
11886 (pass_rtl_unroll_loops): ... this one.
11887 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
11888 (make_pass_rtl_unroll_loops): New.
11889 * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
11890 (canonicalize_loop_induction_variables): Update.
11891
11892 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
11893
11894 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
11895 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
11896 !TARGET_HARD_FLOAT_POSTINC.
11897 (*lsip, *ssip): new instructions.
11898
11899 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
11900
11901 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
11902 remove.
11903
11904 2014-10-14 Andrew Pinski <apinski@cavium.com>
11905
11906 * explow.c (convert_memory_address_addr_space): Rename to ...
11907 (convert_memory_address_addr_space_1): This. Add in_const argument.
11908 Inside a CONST RTL, permute the conversion and addition of constant
11909 for zero and sign extended pointers.
11910 (convert_memory_address_addr_space): New function.
11911
11912 2014-10-14 Andrew Pinski <apinski@cavium.com>
11913
11914 Revert:
11915 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
11916
11917 PR middle-end/49721
11918 * explow.c (convert_memory_address_addr_space): Also permute the
11919 conversion and addition of constant for zero-extend.
11920
11921 2014-10-14 DJ Delorie <dj@redhat.com>
11922
11923 * config/msp430/msp430-modes.def (PSI): Add.
11924
11925 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
11926 (msp430_hard_regno_nregs_with_padding): New.
11927 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
11928 (msp430_hard_regno_nregs_has_padding): New.
11929 (msp430_hard_regno_nregs_with_padding): New.
11930 (msp430_unwind_word_mode): Use PSImode instead of SImode.
11931 (msp430_addr_space_legitimate_address_p): New.
11932 (msp430_asm_integer): New.
11933 (msp430_init_dwarf_reg_sizes_extra): New.
11934 (msp430_print_operand): Use X suffix for PSImode even in small model.
11935 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
11936 (PTR_SIZE): ...but 4 bytes for EH.
11937 (SIZE_TYPE): Use __int20.
11938 (PTRDIFF_TYPE): Likewise.
11939 (INCOMING_FRAME_SP_OFFSET): Adjust.
11940 * config/msp430/msp430.md (movqi_topbyte): New.
11941 (movpsi): Use fixed suffixes.
11942 (movsipsi2): Enable for 430X, not large model.
11943 (extendhipsi2): Likewise.
11944 (zero_extendhisi2): Likewise.
11945 (zero_extendhisipsi2): Likewise.
11946 (extend_and_shift1_hipsi2): Likewise.
11947 (extendpsisi2): Likewise.
11948 (*bitbranch<mode>4_z): Fix suffix logic.
11949
11950 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
11951
11952 PR ada/62019
11953 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
11954 do not choke on null node.
11955 <VAR_DECL>: Likewise.
11956
11957 2014-10-14 DJ Delorie <dj@redhat.com>
11958
11959 * machmode.h (int_n_data_t): New.
11960 (int_n_enabled_p): New.
11961 (int_n_data): New.
11962 * tree.c (int_n_enabled_p): New.
11963 (int_n_trees): New.
11964 (make_or_reuse_type): Check for all __intN types, not just
11965 __int128.
11966 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
11967 entries.
11968 * tree.h (int128_integer_type_node): Remove.
11969 (int128_unsigned_type_node): Remove.
11970 (int_n_trees_t): New.
11971 (int_n_enabled_p): New.
11972 (int_n_trees): New.
11973 * toplev.c (standard_type_bitsize): New.
11974 (do_compile): Check which __intN types are enabled for the current
11975 run.
11976 * builtin-types.def (BT_INT128): Remove.
11977 (BT_UINT128): Remove.
11978 * machmode.def: Add macro to create __int128 for all targets.
11979 * stor-layout.c (mode_for_size): Support __intN types.
11980 (smallest_mode_for_size): Likewise.
11981 (initialize_sizetypes): Support __intN types.
11982 * genmodes.c (struct mode_data): Add int_n field.
11983 (blank_mode): Likewise.
11984 (INT_N): New.
11985 (make_int_n): New.
11986 (emit_insn_modes_h): Count __intN entries and define
11987 NUM_INT_N_ENTS.
11988 (emit_mode_int_n): New.
11989 (emit_insn_modes_c): Call it.
11990 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
11991 types, not just __int128.
11992 * tree-core.h (integer_type_kind): Remove __int128-specific
11993 entries, reserve spots for __intN entries.
11994
11995 * config/msp430/msp430-modes.def (PSI): Add.
11996
11997 2014-10-14 Kito Cheng <kito@0xlab.org>
11998
11999 * ira.c: Fix typo in comment.
12000 * ira.h: Ditto.
12001 * ira-build.c: Ditto.
12002 * ira-color.c: Ditto.
12003 * ira-emit.c: Ditto.
12004 * ira-int.h: Ditto.
12005 * ira-lives.c: Ditto.
12006
12007 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
12008
12009 PR rtl-optimization/63475
12010 * alias.c (true_dependence_1): Always use get_addr to extract
12011 true address operands from x_addr and mem_addr. Use extracted
12012 address operands to check for references with alignment ANDs.
12013 Use extracted address operands with find_base_term and
12014 base_alias_check. For noncanonicalized operands call canon_rtx with
12015 extracted address operand.
12016 (write_dependence_1): Ditto.
12017 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
12018
12019 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
12020
12021 PR target/63534
12022 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
12023 __morestack local.
12024
12025 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12026 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12027 Anna Tikhonova <anna.tikhonova@intel.com>
12028 Ilya Tocar <ilya.tocar@intel.com>
12029 Andrey Turetskiy <andrey.turetskiy@intel.com>
12030 Ilya Verbin <ilya.verbin@intel.com>
12031 Kirill Yukhin <kirill.yukhin@intel.com>
12032 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12033
12034 * config/i386/i386.c
12035 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
12036 (ix86_expand_int_vcond): Ditto.
12037
12038 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12039 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12040 Anna Tikhonova <anna.tikhonova@intel.com>
12041 Ilya Tocar <ilya.tocar@intel.com>
12042 Andrey Turetskiy <andrey.turetskiy@intel.com>
12043 Ilya Verbin <ilya.verbin@intel.com>
12044 Kirill Yukhin <kirill.yukhin@intel.com>
12045 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12046
12047 * config/i386/i386.c
12048 (emit_reduc_half): Handle V64QI and V32HI mode.
12049 * config/i386/sse.md
12050 (define_mode_iterator VI_AVX512BW): New.
12051 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
12052
12053 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12054 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12055 Anna Tikhonova <anna.tikhonova@intel.com>
12056 Ilya Tocar <ilya.tocar@intel.com>
12057 Andrey Turetskiy <andrey.turetskiy@intel.com>
12058 Ilya Verbin <ilya.verbin@intel.com>
12059 Kirill Yukhin <kirill.yukhin@intel.com>
12060 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12061
12062 * config/i386/sse.md
12063 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
12064
12065 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12066 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12067 Anna Tikhonova <anna.tikhonova@intel.com>
12068 Ilya Tocar <ilya.tocar@intel.com>
12069 Andrey Turetskiy <andrey.turetskiy@intel.com>
12070 Ilya Verbin <ilya.verbin@intel.com>
12071 Kirill Yukhin <kirill.yukhin@intel.com>
12072 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12073
12074 * config/i386/i386.c
12075 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
12076 * config/i386/sse.md
12077 (define_mode_iterator VI): Add V64QI and V32HI modes.
12078
12079 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12080 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12081 Anna Tikhonova <anna.tikhonova@intel.com>
12082 Ilya Tocar <ilya.tocar@intel.com>
12083 Andrey Turetskiy <andrey.turetskiy@intel.com>
12084 Ilya Verbin <ilya.verbin@intel.com>
12085 Kirill Yukhin <kirill.yukhin@intel.com>
12086 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12087
12088 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
12089
12090 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12091 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12092 Anna Tikhonova <anna.tikhonova@intel.com>
12093 Ilya Tocar <ilya.tocar@intel.com>
12094 Andrey Turetskiy <andrey.turetskiy@intel.com>
12095 Ilya Verbin <ilya.verbin@intel.com>
12096 Kirill Yukhin <kirill.yukhin@intel.com>
12097 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12098
12099 * config/i386/sse.md
12100 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
12101 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
12102
12103 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12104 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12105 Anna Tikhonova <anna.tikhonova@intel.com>
12106 Ilya Tocar <ilya.tocar@intel.com>
12107 Andrey Turetskiy <andrey.turetskiy@intel.com>
12108 Ilya Verbin <ilya.verbin@intel.com>
12109 Kirill Yukhin <kirill.yukhin@intel.com>
12110 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12111
12112 * config/i386/sse.md
12113 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
12114 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
12115
12116 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12117 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12118 Anna Tikhonova <anna.tikhonova@intel.com>
12119 Ilya Tocar <ilya.tocar@intel.com>
12120 Andrey Turetskiy <andrey.turetskiy@intel.com>
12121 Ilya Verbin <ilya.verbin@intel.com>
12122 Kirill Yukhin <kirill.yukhin@intel.com>
12123 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12124
12125 * config/i386/sse.md
12126 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
12127 (define_mode_iterator VI2_AVX2): Add V32HI mode.
12128 (define_expand "mul<mode>3<mask_name>"): Add masking.
12129 (define_insn "*mul<mode>3<mask_name>"): Ditto.
12130 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
12131 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
12132 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
12133 (define_mode_attr SDOT_PMADD_SUF): Ditto.
12134 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
12135 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
12136 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
12137 (define_insn "avx2_packusdw"): Delete.
12138 (define_insn "sse4_1_packusdw"): Ditto.
12139 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
12140
12141 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12142 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12143 Anna Tikhonova <anna.tikhonova@intel.com>
12144 Ilya Tocar <ilya.tocar@intel.com>
12145 Andrey Turetskiy <andrey.turetskiy@intel.com>
12146 Ilya Verbin <ilya.verbin@intel.com>
12147 Kirill Yukhin <kirill.yukhin@intel.com>
12148 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12149
12150 * config/i386/sse.md
12151 (define_insn "vec_dup<mode>"): Update constraints.
12152
12153 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12154 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12155 Anna Tikhonova <anna.tikhonova@intel.com>
12156 Ilya Tocar <ilya.tocar@intel.com>
12157 Andrey Turetskiy <andrey.turetskiy@intel.com>
12158 Ilya Verbin <ilya.verbin@intel.com>
12159 Kirill Yukhin <kirill.yukhin@intel.com>
12160 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12161
12162 * config/i386/sse.md
12163 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
12164 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
12165 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
12166
12167 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12168 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12169 Anna Tikhonova <anna.tikhonova@intel.com>
12170 Ilya Tocar <ilya.tocar@intel.com>
12171 Andrey Turetskiy <andrey.turetskiy@intel.com>
12172 Ilya Verbin <ilya.verbin@intel.com>
12173 Kirill Yukhin <kirill.yukhin@intel.com>
12174 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12175
12176 * config/i386/sse.md
12177 (define_expand "mul<mode>3<mask_name>"): Add masking.
12178
12179 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12180 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12181 Anna Tikhonova <anna.tikhonova@intel.com>
12182 Ilya Tocar <ilya.tocar@intel.com>
12183 Andrey Turetskiy <andrey.turetskiy@intel.com>
12184 Ilya Verbin <ilya.verbin@intel.com>
12185 Kirill Yukhin <kirill.yukhin@intel.com>
12186 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12187
12188 * config/i386/sse.md
12189 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
12190 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
12191
12192 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12193 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12194 Anna Tikhonova <anna.tikhonova@intel.com>
12195 Ilya Tocar <ilya.tocar@intel.com>
12196 Andrey Turetskiy <andrey.turetskiy@intel.com>
12197 Ilya Verbin <ilya.verbin@intel.com>
12198 Kirill Yukhin <kirill.yukhin@intel.com>
12199 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12200
12201 * config/i386/sse.md
12202 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
12203 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
12204 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
12205 Ditto.
12206
12207 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12208 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12209 Anna Tikhonova <anna.tikhonova@intel.com>
12210 Ilya Tocar <ilya.tocar@intel.com>
12211 Andrey Turetskiy <andrey.turetskiy@intel.com>
12212 Ilya Verbin <ilya.verbin@intel.com>
12213 Kirill Yukhin <kirill.yukhin@intel.com>
12214 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12215
12216 * config/i386/sse.md
12217 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
12218 use VF_128_256 mode iterator and update assembler emit code.
12219 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
12220 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
12221 Add masking, use VF_128_256 mode iterator.
12222 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
12223 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
12224 Add masking, use VF_128_256 mode iterator and update assembler emit
12225 code.
12226 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
12227 (define_mode_attr avx512flogicsuff): Delete.
12228 (define_insn "avx512f_<logic><mode>"): Ditto.
12229 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
12230 MODE_TI.
12231 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
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 VI128_128 [V16QI V8HI V2DI]): Delete.
12244 (define_expand "vashr<mode>3<mask_name>"): Add masking,
12245 use VI12_128 mode iterator.
12246 (define_expand "ashrv2di3<mask_name>"): New.
12247
12248 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12249 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12250 Anna Tikhonova <anna.tikhonova@intel.com>
12251 Ilya Tocar <ilya.tocar@intel.com>
12252 Andrey Turetskiy <andrey.turetskiy@intel.com>
12253 Ilya Verbin <ilya.verbin@intel.com>
12254 Kirill Yukhin <kirill.yukhin@intel.com>
12255 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12256
12257 * config/i386/i386.c
12258 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
12259 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
12260 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
12261 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
12262 CODE_FOR_avx512vl_ucmpv4si3_mask.
12263 * config/i386/sse.md
12264 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
12265 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
12266 (define_insn
12267 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
12268 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
12269 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
12270 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
12271 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
12272 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
12273
12274 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12275 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12276 Anna Tikhonova <anna.tikhonova@intel.com>
12277 Ilya Tocar <ilya.tocar@intel.com>
12278 Andrey Turetskiy <andrey.turetskiy@intel.com>
12279 Ilya Verbin <ilya.verbin@intel.com>
12280 Kirill Yukhin <kirill.yukhin@intel.com>
12281 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12282
12283 * config/i386/sse.md
12284 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
12285 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
12286 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
12287 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
12288 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
12289 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
12290 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
12291 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
12292 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
12293
12294 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
12295 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12296 Anna Tikhonova <anna.tikhonova@intel.com>
12297 Ilya Tocar <ilya.tocar@intel.com>
12298 Andrey Turetskiy <andrey.turetskiy@intel.com>
12299 Ilya Verbin <ilya.verbin@intel.com>
12300 Kirill Yukhin <kirill.yukhin@intel.com>
12301 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12302
12303 * config/i386/sse.md
12304 (define_insn "avx512f_blendm<mode>"): Delete.
12305 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
12306 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
12307 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
12308 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
12309 (define_insn
12310 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
12311 Remove.
12312 (define_insn
12313 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
12314 New.
12315 (define_insn
12316 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
12317 Ditto.
12318 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
12319 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
12320 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
12321 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
12322 Delete.
12323 (define_insn
12324 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
12325 New.
12326 (define_insn
12327 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
12328 Ditto.
12329 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
12330 Delete.
12331 (define_insn
12332 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
12333 New.
12334 (define_insn
12335 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
12336 Ditto.
12337
12338 2014-10-14 Richard Biener <rguenther@suse.de>
12339
12340 PR tree-optimization/63512
12341 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
12342 modified.
12343
12344 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
12345
12346 PR target/63260
12347 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
12348 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
12349 of FPSCR.
12350 (negsf2_i): Rename to *negsf2_i.
12351 (abssf2_i): Rename to *abssf2_i.
12352 (negdf2_i): Rename to *negdf2_i.
12353 (absdf2_i): Rename to *absdf2_i.
12354
12355 2014-10-14 Felix Yang <felix.yang@huawei.com>
12356 Jeff Law <law@redhat.com>
12357
12358 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
12359 "replace" into boolean bitfields; turn member "loop_depth" into a short
12360 integer; add new member "no_equiv" and "reserved".
12361 (no_equiv): Set no_equiv of struct equivalence if register is marked
12362 as having no known equivalence.
12363 (update_equiv_regs): Check all definitions for a multiple-set
12364 register to make sure that the RHS have the same value.
12365
12366 2014-10-13 Richard Henderson <rth@redhat.com>
12367
12368 * combine-stack-adj.c (no_unhandled_cfa): New.
12369 (maybe_merge_cfa_adjust): New.
12370 (combine_stack_adjustments_for_block): Use them.
12371
12372 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
12373
12374 * Makefile.in (TAGS): Tag ../include files.
12375
12376 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12377
12378 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
12379 to rs6000_dbx_register_number.
12380 (DWARF_FRAME_REGNUM): Redefine as identity map.
12381 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
12382 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
12383 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
12384 argument to handle .debug_frame and .eh_frame directly. Always
12385 translate SPE high register numbers. Add special treatment for CR,
12386 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
12387
12388 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
12389 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
12390 (RS6000_USE_DWARF_NUMBERING): Define.
12391 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
12392 (RS6000_USE_DWARF_NUMBERING): Define.
12393 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
12394 (RS6000_USE_DWARF_NUMBERING): Define.
12395 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
12396 (RS6000_USE_DWARF_NUMBERING): Define.
12397 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
12398 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
12399
12400 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
12401
12402 * config/i386/i386.c (ix86_address_cost): Lower cost for
12403 when address contains GOT register.
12404
12405 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
12406 Vladimir Makarov <vmakarov@redhat.com>
12407
12408 PR target/8340
12409 PR middle-end/47602
12410 PR rtl-optimization/55458
12411 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
12412 (ix86_init_pic_reg): New.
12413 (ix86_select_alt_pic_regnum): Add check on pseudo register.
12414 (ix86_save_reg): Likewise.
12415 (ix86_expand_prologue): Remove PIC register initialization
12416 now performed in ix86_init_pic_reg.
12417 (ix86_output_function_epilogue): Add check on pseudo register.
12418 (set_pic_reg_ever_alive): New.
12419 (legitimize_pic_address): Replace df_set_regs_ever_live with new
12420 set_pic_reg_ever_alive.
12421 (legitimize_tls_address): Likewise.
12422 (ix86_pic_register_p): New check.
12423 (ix86_delegitimize_address): Add check on pseudo register.
12424 (ix86_expand_call): Insert move from pseudo PIC register to ABI
12425 defined REAL_PIC_OFFSET_TABLE_REGNUM.
12426 (TARGET_INIT_PIC_REG): New.
12427 (TARGET_USE_PSEUDO_PIC_REG): New.
12428 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
12429 if pic_offset_table_rtx exists.
12430 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
12431 Document.
12432 * doc/tm.texi: Regenerate.
12433 * function.c (assign_parms): Generate pseudo register for PIC.
12434 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
12435 register.
12436 * ira-color.c (color_pass): Add check on pseudo register.
12437 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
12438 register.
12439 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
12440 register.
12441 (ira): Add target specific PIC register initialization.
12442 (do_reload): Keep PIC pseudo register.
12443 * lra-assigns.c (spill_for): Add checks on pseudo register.
12444 * lra-constraints.c (contains_symbol_ref_p): New.
12445 (lra_constraints): Enable lra risky transformations when PIC is pseudo
12446 register.
12447 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
12448 * target.def (use_pseudo_pic_reg): New.
12449 (init_pic_reg): New.
12450
12451 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
12452
12453 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
12454 Remove m_SILVERMONT and m_INTEL from the tune.
12455
12456 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12457
12458 PR libfortran/63471
12459 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12460 when _HPUX_SOURCE is defined.
12461
12462 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
12463
12464 PR tree-optimization/62127
12465 * tree.c (remap_type_1): When remapping array, remap
12466 also its type.
12467
12468 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
12469
12470 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
12471 longer impact parallelization.
12472
12473 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
12474
12475 PR bootstrap/63496
12476 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
12477
12478 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
12479
12480 * asan.c (instrument_derefs): BIT_FIELD_REF added.
12481
12482 2014-10-13 Richard Biener <rguenther@suse.de>
12483
12484 PR tree-optimization/63419
12485 * gimple-fold.h (gimple_convert): New function.
12486 * gimple-fold.c (gimple_convert): Likewise.
12487 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
12488 to split out required conversions early.
12489
12490 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
12491
12492 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
12493 Add the parts of an insn in reverse order, with the pattern at
12494 the top of the queue. Detect when we're iterating over a SEQUENCE
12495 pattern and in that case just consider patterns of subinstructions.
12496
12497 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
12498
12499 PR target/59401
12500 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
12501 of rtx.
12502 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
12503 insn walking.
12504 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
12505 address. Use def chains to handle GBR clobbering call insns.
12506
12507 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
12508
12509 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
12510 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
12511 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
12512 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
12513 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
12514 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
12515 * doc/gty.texi (for_user): Document new option.
12516 * gengtype.c (create_user_defined_type): Don't try to get a struct for
12517 char.
12518 (walk_type): Don't error out on for_user option.
12519 (write_func_for_structure): Emit user marking routines if requested by
12520 for_user option.
12521 (write_local_func_for_structure): Likewise.
12522 (main): Mark types with for_user option as used.
12523 * ggc.h (gt_pch_nx): Add overload for unsigned int.
12524 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
12525 * hash-table.h (ggc_hasher): New struct.
12526 (hash_table::create_ggc): New function.
12527 (gt_pch_nx): New overload for hash_table.
12528
12529 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
12530
12531 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
12532 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
12533 * config/sh/sh.c: Likewise.
12534 * config/sh/sh-mem.cc: Likewise.
12535 * config/sh/sh.md: Likewise.
12536 * config/sh/predicates.md: Likewise.
12537 * config/sh/sync.md: Likewise.
12538
12539 2014-10-11 Martin Liska <mliska@suse.cz>
12540
12541 PR middle-end/63376
12542 * cgraphunit.c (symbol_table::process_new_functions): Missing call
12543 for call_cgraph_insertion_hooks added.
12544
12545 2014-10-10 Jakub Jelinek <jakub@redhat.com>
12546
12547 PR c/63495
12548 * stor-layout.c (min_align_of_type): Don't decrease alignment
12549 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
12550 TYPE_USER_ALIGN is set.
12551
12552 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
12553
12554 PR rtl-optimization/63483
12555 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
12556 references when alignment ANDs are involved.
12557 (write_dependence_p): Ditto.
12558 (may_alias_p): Ditto.
12559
12560 2014-10-10 Marek Polacek <polacek@redhat.com>
12561
12562 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
12563 * doc/invoke.texi: Document -fsanitize=object-size.
12564 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
12565 or it into SANITIZE_UNDEFINED.
12566 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
12567 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
12568 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
12569 * opts.c (common_handle_option): Handle -fsanitize=object-size.
12570 * ubsan.c: Include tree-object-size.h.
12571 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
12572 (ubsan_expand_bounds_ifn): Use false instead of 0.
12573 (ubsan_expand_objsize_ifn): New function.
12574 (instrument_object_size): New function.
12575 (pass_ubsan::execute): Add object size instrumentation.
12576 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
12577
12578 2014-10-10 Richard Henderson <rth@redhat.com>
12579
12580 PR target/63404
12581 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
12582 Restrict the set of expressions we're willing to move.
12583
12584 2014-10-10 Jeff Law <law@redhat.com>
12585
12586 * ira.c (struct equivalence): Promote INIT_INSNs field to
12587 an rtx_insn_list. Add comments.
12588 (no_equiv): Promote LIST to an rtx_insn_list. Update
12589 testing for and creating the special marker. Use methods
12590 to extract the insn and next pointers. Promote INSN to an
12591 rtx_insn.
12592 (update_equiv_regs): Update test for special marker in the
12593 INIT_INSNs list.
12594
12595 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12596
12597 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
12598 * configure: Regenerate.
12599 * config/aarch64/aarch64.c (aarch64_override_options): Handle
12600 TARGET_FIX_ERR_A53_835769_DEFAULT.
12601 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
12602 value to 2.
12603 * doc/install.texi (aarch64*-*-*): Document
12604 new --enable-fix-cortex-a53-835769 option.
12605
12606 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12607 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12608
12609 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
12610 (ADJUST_INSN_LENGTH): Define.
12611 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
12612 * config/aarch64/aarch64.c (is_mem_p): New function.
12613 (is_memory_op): Likewise.
12614 (aarch64_prev_real_insn): Likewise.
12615 (is_madd_op): Likewise.
12616 (dep_between_memop_and_curr): Likewise.
12617 (aarch64_madd_needs_nop): Likewise.
12618 (aarch64_final_prescan_insn): Likewise.
12619 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
12620 and -mno-fix-cortex-a53-835769 options.
12621
12622 2014-10-10 Jakub Jelinek <jakub@redhat.com>
12623
12624 PR tree-optimization/63464
12625 * tree-switch-conversion.c (struct case_bit_test): Remove
12626 hi and lo fields, add wide_int mask field.
12627 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
12628 hi/lo fields into wide_int mask operations, optimize by pretending
12629 minval to be 0 if maxval is small enough.
12630 (process_switch): Adjust caller.
12631
12632 2014-10-10 Richard Biener <rguenther@suse.de>
12633
12634 PR tree-optimization/63379
12635 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
12636 a neutral operand for min/max when it is not a reduction chain.
12637
12638 2014-10-10 Richard Biener <rguenther@suse.de>
12639
12640 PR tree-optimization/63476
12641 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
12642 (BB_LIVE_VOP_ON_EXIT): New define.
12643 (create_expression_by_pieces): Assign VUSEs to stmts.
12644 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
12645 (pass_pre::execute): Assert virtual SSA form is up-to-date
12646 after insertion.
12647
12648 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
12649
12650 * lra-assigns.c (assign_by_spills): Error out on spill failure.
12651
12652 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
12653
12654 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
12655 assertion.
12656
12657 2014-10-09 Richard Biener <rguenther@suse.de>
12658
12659 PR tree-optimization/63380
12660 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
12661 may trap.
12662
12663 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
12664
12665 * config/avr/avr.opt (mmcu=): Change to have a string value.
12666 (mn-flash=, mskip-bug, march=, mrmw): New options.
12667 (HeaderInclude): New.
12668 (mmcu=): Remove Var / Init clauses.
12669 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
12670 -specs option.
12671 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
12672 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
12673 (SYMBOL_FLAG_IO_LOW): Define.
12674 (avr_device_to_as, avr_device_to_ld): Don't declare.
12675 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
12676 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
12677 (EXTRA_SPEC_FUNCTIONS): Don't define.
12678 (ASM_SPEC): Translate -arch= option to -mmcu= option.
12679 (LINK_SPEC): Translate -arch= option to -m= option.
12680 Don't use device_to_ld / device_to_data_start.
12681 (STARTFILE_SPEC): Now empty.
12682 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
12683 * config/avr/gen-avr-mmcu-specs.c: New file.
12684 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
12685 (s-device-specs): Likewise.
12686 (GCC_PASSES): Add s-device-specs.
12687 (install-driver): Depend on install-device-specs.
12688 (install-device-specs): New rule.
12689 * config/avr/avr.c (avr_option_override): Look up mcu arch by
12690 avr_arch_index and provide fallback initialization for avr_n_flash.
12691 (varasm.h): #include.
12692 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
12693 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
12694 (avr_attribute_table): Add "io", "address" and "io_low".
12695 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
12696 Add special handling for symbols with "io" and/or "address" attributes.
12697 (avr_asm_asm_output_aligned_bss): New function.
12698 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
12699 as appropriate. Handle io_low attribute.
12700 (avr_out_sbxx_branch): Handle symbolic io addresses.
12701 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
12702 avr_n_flash instead of avr_current_device->n_flash.
12703 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
12704 (avr_emit_movmemhi): Likewise.
12705 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
12706 Use TARGET_RMW instead of avr_current_device->dev_attributes.
12707 Don't define avr_current_device->macro (that's the specfile's job).
12708 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
12709 * config/avr/avr.c (avr_2word_insn_p): Likewise.
12710 * config/avr/avr.md (*cpse.ne): Likewise.
12711 (mov<mode>): Use avr_eval_addr_attrib.
12712 (cbi): Change constraint for low_io_address_operand operand to "i".
12713 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
12714 * config/avr/predicates.md (io_address_operand):
12715 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
12716 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
12717 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
12718 Update prototype.
12719 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
12720 * config/avr/genmultilib.awk: Use -march=.
12721 Remove Multilib matches processing.
12722 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
12723 * config/avr/avr-arch.h: Add double include guard.
12724 (avr_mcu_t) <library_name>: Update comment.
12725 * config/avr/driver-avr.c (avr_device_to_as): Delete.
12726 (avr_device_to_ld, avr_device_to_data_start): Likewise.
12727 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
12728 (avr_device_to_sp8): Likewise.
12729 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
12730
12731 * doc/extend.texi (io, address): Document new AVR variable attributes.
12732 (io_low): Likewise.
12733
12734 2014-10-09 Marek Polacek <polacek@redhat.com>
12735
12736 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
12737
12738 2014-10-08 Richard Biener <rguenther@suse.de>
12739
12740 PR tree-optimization/61969
12741 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
12742 variables.
12743
12744 2014-10-09 Richard Biener <rguenther@suse.de>
12745
12746 PR tree-optimization/63445
12747 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
12748 overflow for non-equality compares.
12749
12750 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
12751
12752 PR rtl-optimization/57003
12753 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
12754 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
12755 killing regs_invalidated_by_call.
12756
12757 2014-10-08 Teresa Johnson <tejohnson@google.com>
12758
12759 PR bootstrap/63432.
12760 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
12761 (ssa_fix_duplicate_block_edges): Invoke it.
12762 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
12763
12764 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
12765
12766 PR target/52941
12767 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
12768 atomic_fetch_<fetchop_name>si_hard,
12769 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
12770 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
12771 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
12772 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
12773
12774 2014-10-08 Rong Xu <xur@google.com>
12775
12776 * gcov-tool.c (profile_overlap): New driver function
12777 to compute profile overlap.
12778 (print_overlap_usage_message): New.
12779 (overlap_usage): New.
12780 (do_overlap): New.
12781 (print_usage): Add calls to overlap function.
12782 (main): Ditto.
12783 * doc/gcov-tool.texi: Add documentation.
12784
12785 2014-10-08 Steve Ellcey <sellcey@mips.com>
12786
12787 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
12788 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
12789
12790 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
12791
12792 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
12793 pattern matching of MEM_REF.
12794 (check_stmt_for_type_change): Update.
12795
12796 2014-10-08 Steve Ellcey <sellcey@mips.com>
12797
12798 * config/mips/linux64.h: Remove.
12799 * config/mips/gnu-user64.h: Remove.
12800 * gcc.config (mips*-*-*): Remove references to linux64.h and
12801 gnu-user64.h
12802 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
12803 with modified version from gnu-user64.h.
12804 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
12805 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
12806 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
12807 linux64.h.
12808 (GNU_USER_LINK_EMULATION64): Ditto.
12809 (GNU_USER_LINK_EMULATIONN32): Ditto.
12810 (GLIBC_DYNAMIC_LINKER32): Ditto.
12811 (GLIBC_DYNAMIC_LINKER64): Ditto.
12812 (GLIBC_DYNAMIC_LINKERN32): Ditto.
12813 (UCLIBC_DYNAMIC_LINKER32): Ditto.
12814 (UCLIBC_DYNAMIC_LINKER64): Ditto.
12815 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
12816 (BIONIC_DYNAMIC_LINKERN32): Ditto.
12817 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
12818 (GLIBC_DYNAMIC_LINKER): Delete.
12819 (UCLIBC_DYNAMIC_LINKER): Delete.
12820
12821 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
12822 Richard Biener <rguenther@suse.de>
12823
12824 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
12825 Get address space from operand 0 (BASE).
12826
12827 2014-10-07 Iain Sandoe <iain@codesourcery.com>
12828
12829 PR target/61387
12830 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
12831
12832 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
12833
12834 * dwarf2out.c: Remove current_function_has_inlines.
12835 (gen_subprogram_die): Same.
12836 (gen_inlined_subroutine_die): Same.
12837
12838 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
12839
12840 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
12841 type.
12842 (_addcarry_u64): Ditto.
12843 (_addcarryx_u64): Ditto.
12844
12845 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
12846
12847 * cgraph.h (cgraph_node::get_fun): Declare.
12848 * cgraph.c (cgraph_node::get_fun): New method.
12849 * ipa-inline.c (can_inline_edge_p): Use it.
12850
12851 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
12852
12853 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
12854 and -ftrapping-math.
12855 * lto-wrapper.c (merge_and_complain): Likewise.
12856 (run_gcc): Likewise.
12857
12858 2014-10-06 Rong Xu <xur@google.com>
12859
12860 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
12861 * tree-profile.c: (params.h): New include.
12862 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
12863 and __gcov_indirect_call_topn_counters for
12864 indirect_call_topn_profile.
12865 (gimple_init_edge_profiler): New decls for
12866 __gcov_indirect_call_topn_profiler.
12867 (gimple_gen_ic_profiler): Generate the correct profiler call.
12868 (gimple_gen_ic_func_profiler): Fix format.
12869 * value-prof.c (params.h): New include.
12870 (dump_histogram_value): Hanlde indirect_call_topn counters.
12871 (stream_in_histogram_value): Ditto.
12872 (gimple_indirect_call_to_profile): Use indirect_call_topn
12873 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
12874 (gimple_find_values_to_profile): Hanlde indirect_call_topn
12875 counters.
12876 * value-prof.h (enum hist_type): Histrogram type for
12877 indirect_call_topn counters.
12878 * profile.c (instrument_values): Instrument
12879 indirect_call_topn counters.
12880
12881 2014-10-06 Rong Xu <xur@google.com>
12882
12883 * Makefile.in: Fix dependence.
12884 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
12885 indirect call topn profiler.
12886 * gcov-io.h: Ditto.
12887
12888 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
12889
12890 * calls.c (expand_call): Do not use the target as the return slot if
12891 it is not sufficiently aligned.
12892
12893 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12894
12895 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
12896 discussion of permutes and why we don't handle them.
12897
12898 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
12899
12900 * config/sparc/predicates.md (int_register_operand): Delete.
12901
12902 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
12903
12904 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
12905
12906 2014-10-06 Jakub Jelinek <jakub@redhat.com>
12907
12908 * ubsan.h (ubsan_get_source_location): New prototype.
12909 * ubsan.c (ubsan_source_location_type): New variable.
12910 Function renamed to ...
12911 (ubsan_get_source_location_type): ... this. Cache
12912 return value in ubsan_source_location_type variable.
12913 (ubsan_source_location, ubsan_create_data): Use
12914 ubsan_get_source_location_type instead of
12915 ubsan_source_location_type.
12916 * asan.c (asan_protect_global): Don't protect globals
12917 with ubsan_get_source_location_type () type.
12918 (asan_add_global): Provide global decl location info
12919 if possible.
12920
12921 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
12922
12923 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
12924 sanity check.
12925
12926 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
12927
12928 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
12929 on size.
12930 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
12931 into vptr pointer.
12932 (ipa_polymorphic_call_context::dump): Fix formating.
12933 (walk_ssa_copies): Add logic avoiding loops; update uses.
12934 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
12935
12936 2014-10-02 Mark Wielaard <mjw@redhat.com>
12937
12938 PR debug/63239
12939 * dwarf2out.c (gen_subprogram_die): When a member function is
12940 explicitly deleted then add a DW_AT_GNU_deleted attribute.
12941 * langhooks.h (struct lang_hooks_for_decls): Add
12942 function_decl_deleted_p langhook.
12943 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
12944 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
12945
12946 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
12947
12948 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
12949 NULL pointer checks.
12950 (ipa_polymorphic_call_context::get_dynamic_type): Return true
12951 if type doesn't change.
12952 * cgraph.h (cgraph_indirect_call_info): New flag.
12953 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
12954 (cgraph_node::dump): Dump it.
12955 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
12956 of context.get_dynamic_type.
12957 (ipa_make_edge_direct_to_target): Do not speculate
12958 edge that is already speuclative.
12959 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
12960 speculate to __builtin_unreachable
12961 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
12962 vptr_changed.
12963 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
12964
12965 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
12966
12967 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
12968 get_dynamic_type; drop TODO.
12969 * ipa-polymorphic-call.c
12970 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
12971 for otr_type to be unknown.
12972
12973 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
12974
12975 * common/config/score/score-common.c: Remove.
12976 * config.gcc: Remove support for score-*.
12977 * config/score/constraints.md: Remove.
12978 * config/score/elf.h: Remove.
12979 * config/score/predicates.md: Remove.
12980 * config/score/score-conv.h: Remove.
12981 * config/score/score-generic.md: Remove.
12982 * config/score/score-modes.def: Remove.
12983 * config/score/score-protos.h: Remove.
12984 * config/score/score.c: Remove.
12985 * config/score/score.h: Remove.
12986 * config/score/score.md: Remove.
12987 * config/score/score.opt: Remove.
12988 * doc/md.texi: Don't document score-*.
12989
12990 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
12991
12992 PR pch/63429
12993 * genconditions.c: Directly include ggc.h before rtl.h.
12994
12995 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
12996
12997 * ipa-polymorphic-call.c
12998 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
12999 code determining speculative type.
13000 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
13001
13002 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13003
13004 * altivec.md (altivec_lvsl): New define_expand.
13005 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
13006 (altivec_lvsr): New define_expand.
13007 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
13008 * rs6000.c (rs6000_expand_builtin): Change to use
13009 altivec_lvs[lr]_direct; remove commented-out code.
13010
13011 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13012
13013 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13014 Issue a warning message when vec_lvsl or vec_lvsr is used with a
13015 little endian target.
13016
13017 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
13018
13019 * tree-pretty-print.c (dump_location): Make it extern. Dump also
13020 the column.
13021 * tree-pretty-print.h (dump_location): Declare.
13022 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
13023 (pp_gimple_stmt_1): Likewise.
13024 (dump_implicit_edges): Likewise.
13025 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
13026 LOCATION_LINE.
13027
13028
13029 2014-10-03 David Malcolm <dmalcolm@redhat.com>
13030
13031 * gcc.c (driver::global_initializations): Remove "const" so
13032 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
13033 and decoded_options_count.
13034
13035 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
13036
13037 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
13038 macro.
13039 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
13040 TARGET_E500_DOUBLE case here.
13041
13042 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
13043
13044 PR c++/54427
13045 PR c++/57198
13046 PR c++/58845
13047 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
13048
13049 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
13050
13051 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
13052 * lto-cgraph.c (lto_output_edge, input_edge): Stream
13053 in_polymorphic_cdtor
13054 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
13055 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
13056 * cgraphclones.c (cgraph_edge::clone): Likewise.
13057 * ipa-prop.c (update_jump_functions_after_inlining,
13058 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
13059 to possible_dynamic_type_change.
13060 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
13061 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
13062 IN_POLY_CDOTR argument.
13063
13064 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
13065 for BASE and OUTER_TYPE being NULL.
13066 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
13067 in_poly_cdtor parameter.
13068
13069 2014-10-03 Jakub Jelinek <jakub@redhat.com>
13070
13071 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
13072 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
13073 TARGET_AVX512F.
13074 (expand_vec_perm_1): Likewise.
13075
13076 2014-10-03 Jakub Jelinek <jakub@redhat.com>
13077 Uros Bizjak <ubizjak@gmail.com>
13078
13079 PR tree-optimization/61403
13080 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
13081 error in comment. Also optimize 256-bit vectors for AVX2
13082 or AVX (floating vectors only), provided the first permutation
13083 can be performed in one insn.
13084
13085 2014-10-03 David Malcolm <dmalcolm@redhat.com>
13086
13087 * gcc.c (class driver): New class.
13088 (main): Reimplement in terms of driver::main, moving most of the
13089 locals to be locals within individual methods of class driver.
13090 The remaining locals "explicit_link_files", "decoded_options" and
13091 "decoded_options_count" are used by multiple driver:: methods, and
13092 so become member data. Doing so isolates the argc/argv reads and
13093 writes. Replace "goto out" with a special exit code from
13094 new method driver::prepare_infiles. Split out the old
13095 implementation of main into the following...
13096 (driver::main): New function, corresponding to the old "main"
13097 implementation.
13098 (driver::set_progname): New function, taken from the old
13099 "main" implementation.
13100 (driver::expand_at_files): Likewise.
13101 (driver::decode_argv): Likewise.
13102 (driver::global_initializations): Likewise.
13103 (driver::build_multilib_strings): Likewise.
13104 (driver::set_up_specs): Likewise.
13105 (driver::putenv_COLLECT_GCC): Likewise.
13106 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
13107 (driver::handle_unrecognized_options): Likewise.
13108 (driver::maybe_print_and_exit): Likewise.
13109 (driver::prepare_infiles): Likewise.
13110 (driver::do_spec_on_infiles): Likewise.
13111 (driver::maybe_run_linker): Likewise.
13112 (driver::final_actions): Likewise.
13113 (driver::get_exit_code): Likewise.
13114
13115 2014-10-03 Yury Gribov <y.gribov@samsung.com>
13116
13117 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
13118 don't emit empty ctors.
13119
13120 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
13121
13122 * convert.c (convert_to_integer): Do not introduce useless conversions
13123 between integral types.
13124
13125 2014-10-03 David Sherwood <david.sherwood@arm.com>
13126
13127 * ira-int.h (ira_allocno): Mark hard_regno as signed.
13128
13129 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
13130
13131 * lra-constraints.c (inherit_in_ebb): Handle calls with
13132 multiple return values.
13133 * caller-save.c (save_call_clobbered_regs): Likewise.
13134
13135 2014-10-03 Jakub Jelinek <jakub@redhat.com>
13136
13137 * tree-vect-data-refs.c (vect_permute_load_chain,
13138 vect_shift_permute_load_chain): Fix a typo in temporary var names,
13139 suffle3 to shuffle3.
13140
13141 PR libgomp/61200
13142 * omp-low.c (taskreg_contexts): New variable.
13143 (scan_omp_parallel): Push newly created context into taskreg_contexts
13144 vector and move record layout code to finish_taskreg_scan.
13145 (scan_omp_task): Likewise.
13146 (finish_taskreg_scan): New function.
13147 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
13148 vector elements and release it.
13149
13150 PR target/62128
13151 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
13152 of palignr arguments can't be used due to min 0 or max - min
13153 too high, try also op0, op1 order of palignr arguments.
13154
13155 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
13156
13157 * cgraph.h (ipa_polymorphic_call_context):
13158 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
13159 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
13160 * ipa-polymorphic-call.c
13161 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
13162 past end of dynamic types.
13163 (ipa_polymorphic_call_context::stream_out,
13164 speculative_outer_type): Stream dynamic flag.
13165 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
13166 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
13167 Clear DYNAMIC.
13168 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
13169 set it.
13170 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
13171 * ipa-prop.c (update_jump_functions_after_inlining,
13172 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
13173
13174 2014-10-02 Teresa Johnson <tejohnson@google.com>
13175
13176 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
13177 up when synthesizing counts to avoid rounding errors.
13178
13179 2014-10-02 Teresa Johnson <tejohnson@google.com>
13180
13181 PR middle-end/63422
13182 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
13183 asserts to handle incoming insanities.
13184
13185 2014-10-02 Martin Jambor <mjambor@suse.cz>
13186
13187 PR tree-optimization/63375
13188 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
13189 references.
13190
13191 2014-10-02 Olivier Hainque <hainque@adacore.com>
13192
13193 * Makefile.in (CROSS): Define, to @CROSS.
13194
13195 2014-10-02 Jakub Jelinek <jakub@redhat.com>
13196
13197 PR target/62128
13198 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
13199 if it expands to a single insn only.
13200 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
13201 fail unless in_order is true. Add forward declaration.
13202 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
13203 is useful for one_operand_p.
13204 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
13205
13206 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
13207
13208 * cgraphclones.c (build_function_type_skip_args): Do not make new
13209 type variant of old.
13210
13211 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
13212
13213 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
13214 when speculation is added.
13215 (ipa_edge_args): Add polymorphic_call_contexts.
13216 (ipa_get_ith_polymorhic_call_context): New accesor.
13217 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
13218 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
13219 (ipa_compute_jump_functions_for_edge): Compute contexts.
13220 (update_jump_functions_after_inlining): Update contexts.
13221 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
13222 update dumping; add speculative edge creation.
13223 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
13224 context updating.
13225 (update_indirect_edges_after_inlining): Pass down context.
13226 (ipa_edge_duplication_hook): Duplicate contexts.
13227 (ipa_write_node_info): Stream out contexts.
13228 (ipa_read_node_info): Stream in contexts.
13229 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
13230 types.
13231 (try_speculative_devirtualization): New function.
13232 * ipa-utils.h (try_speculative_devirtualization): Declare.
13233
13234 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
13235
13236 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
13237 dumping during WPA.
13238
13239 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
13240
13241 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
13242 type variants.
13243
13244 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
13245
13246 * ipa-polymorphic-call.c
13247 (ipa_polymorphic_call_context::restrict_to_inner_class):
13248 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
13249 use speculation_consistent_p to do so; Add CONSDER_BASES
13250 and CONSIDER_PLACEMENT_NEW parameters.
13251 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
13252 short circuit obvious cases.
13253 (ipa_polymorphic_call_context::dump): Improve formatting.
13254 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
13255 combine_speculation_with to record speculations; Do not ICE when
13256 object is located in pointer type decl; do not ICE for methods
13257 of UNION_TYPE; do not record nonpolymorphic types.
13258 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
13259 (ipa_polymorphic_call_context::combine_speculation_with): New method.
13260 (ipa_polymorphic_call_context::combine_with): New method.
13261 (ipa_polymorphic_call_context::make_speculative): Move here; use
13262 combine speculation.
13263 * cgraph.h (ipa_polymorphic_call_context): Update
13264 restrict_to_inner_class prototype; add offset_by, make_speculative,
13265 combine_with, useless_p, combine_speculation_with and
13266 speculation_consistent_p methods.
13267 (ipa_polymorphic_call_context::offset_by): New method.
13268 (ipa_polymorphic_call_context::useless_p): New method.
13269
13270 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
13271
13272 PR rtl-optimization/62151
13273 * combine.c (can_combine_p): Allow the destination register of INSN
13274 to be clobbered in I3.
13275 (subst): Do not substitute into clobbers of registers.
13276
13277 2014-10-01 Jakub Jelinek <jakub@redhat.com>
13278
13279 PR debug/63342
13280 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
13281 offset, TARGET_MEM_REF and SSA_NAME.
13282
13283 * config/i386/i386.c (expand_vec_perm_palignr): Handle
13284 256-bit vectors for TARGET_AVX2.
13285
13286 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
13287 dfirst permutation.
13288
13289 PR target/63428
13290 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
13291 argument to avx2_permv2ti.
13292
13293 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13294
13295 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
13296
13297 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
13298
13299 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
13300 (fmod<mode>3): Ditto.
13301 (fpremxf4_i387): Ditto.
13302 (reminderxf3): Ditto.
13303 (reminder<mode>3): Ditto.
13304 (fprem1xf4_i387): Ditto.
13305
13306 2014-09-30 Teresa Johnson <tejohnson@google.com>
13307
13308 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
13309 duplicate_blocks bitmap.
13310 (remove_ctrl_stmt_and_useless_edges): Ditto.
13311 (create_block_for_threading): Ditto.
13312 (compute_path_counts): New function.
13313 (update_profile): Ditto.
13314 (recompute_probabilities): Ditto.
13315 (update_joiner_offpath_counts): Ditto.
13316 (freqs_to_counts_path): Ditto.
13317 (clear_counts_path): Ditto.
13318 (ssa_fix_duplicate_block_edges): Update profile info.
13319 (ssa_create_duplicates): Pass new parameter.
13320 (ssa_redirect_edges): Remove old profile update.
13321 (thread_block_1): New duplicate_blocks bitmap,
13322 remove old profile update.
13323 (thread_single_edge): Pass new parameter.
13324
13325 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
13326
13327 PR middle-end/62120
13328 * varasm.c (decode_reg_name_and_count): Check availability for
13329 registers from ADDITIONAL_REGISTER_NAMES.
13330
13331 2014-09-30 David Malcolm <dmalcolm@redhat.com>
13332
13333 PR plugins/63410
13334 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
13335 (PLUGIN_HEADERS): Add pass-instances.def.
13336
13337 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
13338
13339 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
13340 iterator.
13341 * config/aarch64/aarch64-simd.md
13342 (aarch64_sqdmull_laneq<mode>): Expand iterator.
13343 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
13344 (vqdmulls_lane_s32): Fix return type.
13345 (vqdmulls_laneq_s32): New.
13346
13347 2014-09-30 Jakub Jelinek <jakub@redhat.com>
13348
13349 PR inline-asm/63282
13350 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
13351 or invert_jump_1 if jump isn't any_condjump_p.
13352
13353 2014-09-30 Terry Guo <terry.guo@arm.com>
13354
13355 * config/arm/arm-cores.def (cortex-m7): New core name.
13356 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
13357 (fpv5-d16): Ditto.
13358 * config/arm/arm-tables.opt: Regenerated.
13359 * config/arm/arm-tune.md: Regenerated.
13360 * config/arm/arm.h (TARGET_VFP5): New macro.
13361 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
13362 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
13363 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
13364 * doc/invoke.texi: Document new cpu and fpu names.
13365
13366 2014-09-30 Jiong Wang <jiong.wang@arm.com>
13367
13368 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
13369 before sinking insn.
13370
13371 2014-09-30 David Sherwood <david.sherwood@arm.com>
13372
13373 * ira-int.h (ira_allocno): Add "wmode" field.
13374 * ira-build.c (create_insn_allocnos): Add new "parent" function
13375 parameter.
13376 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
13377 that cannot be accessed in wmode.
13378
13379 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
13380
13381 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
13382 integer overflow.
13383
13384 2014-09-29 Andi Kleen <ak@linux.intel.com>
13385
13386 * opts.c (print_filtered_help): Print --param min/max/default
13387 with -Q.
13388
13389 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
13390
13391 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
13392
13393 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
13394
13395 * tree-vrp.c (get_single_symbol): New function.
13396 (build_symbolic_expr): Likewise.
13397 (symbolic_range_based_on_p): New predicate.
13398 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
13399 for PLUS and MINUS. Do not drop symbolic ranges at the end.
13400 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
13401 operand is symbolic and based on the other operand.
13402
13403 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
13404
13405 * config/microblaze/microblaze.md (call_internal1): Use VOID
13406 instead of SI to fix "((void (*)(void)) 0)()" issue
13407
13408 2014-09-29 Nick Clifton <nickc@redhat.com>
13409
13410 * config/msp430/msp430.c (msp430_expand_prologue): Return a
13411 CLOBBER rtx for naked functions.
13412 (msp430_expand_epilogue): Likewise.
13413 (msp430_use_f5_series_hwmult): Cache result.
13414 (use_32bit_hwmult): Cache result.
13415 (msp430_no_hwmult): New function.
13416 (msp430_output_labelref): Use it.
13417
13418 2014-09-29 Jakub Jelinek <jakub@redhat.com>
13419
13420 PR middle-end/63247
13421 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
13422 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
13423 use the alignment of avar rather than ovar.
13424
13425 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
13426
13427 * config/pa/pa.c (pa_output_function_epilogue): Only update
13428 last_address when a nonnote insn is found.
13429
13430 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
13431
13432 PR ipa/60665
13433 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
13434
13435 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
13436
13437 PR ipa/62121
13438 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
13439 fix pasto in checking array size.
13440
13441 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
13442
13443 PR middle-end/35545
13444 * passes.def (pass_tracer): Move before last dominator pass.
13445
13446 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
13447
13448 * gcc.c (try_generate_repro): Remove argument "prog". Change all
13449 users.
13450 (run_attempt): Handle errors of "pex_run" invocation.
13451
13452 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
13453
13454 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
13455 (CC1_SPEC): Define.
13456 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
13457 (TARGET_ASAN_SHADOW_OFFSET): Define.
13458
13459 2014-09-26 Martin Liska <mliska@suse.cz>
13460
13461 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
13462 introduced.
13463 * cgraph.h: Likewise.
13464 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
13465 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
13466 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
13467 * tree-ssa-alias.h: Likewise.
13468
13469 2014-09-26 Jakub Jelinek <jakub@redhat.com>
13470 Max Ostapenko <m.ostapenko@partner.samsung.com>
13471
13472 * common.opt: New option.
13473 * doc/invoke.texi: Describe new option.
13474 * gcc.c (execute): Don't free first string early, but at the end
13475 of the function. Call retry_ice if compiler exited with
13476 ICE_EXIT_CODE.
13477 (main): Factor out common code.
13478 (print_configuration): New function.
13479 (files_equal_p): Likewise.
13480 (check_repro): Likewise.
13481 (run_attempt): Likewise.
13482 (do_report_bug): Likewise.
13483 (append_text): Likewise.
13484 (try_generate_repro): Likewise
13485
13486 2014-09-25 Andi Kleen <ak@linux.intel.com>
13487
13488 * config/i386/i386.c (x86_print_call_or_nop): New function.
13489 (x86_function_profiler): Support -mnop-mcount and
13490 -mrecord-mcount.
13491 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
13492 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
13493
13494 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
13495
13496 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
13497 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
13498 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
13499 Remove.
13500
13501 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
13502
13503 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
13504 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
13505 types_odr_comparable): Declare.
13506 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
13507 * ipa-polymorphic-call.c: New file.
13508 (contains_polymorphic_type_p, possible_placement_new,
13509 ipa_polymorphic_call_context::restrict_to_inner_class,
13510 contains_type_p, decl_maybe_in_construction_p,
13511 ipa_polymorphic_call_context::stream_out,
13512 ipa_polymorphic_call_context::debug,
13513 ipa_polymorphic_call_context::stream_in,
13514 ipa_polymorphic_call_context::set_by_decl,
13515 ipa_polymorphic_call_context::set_by_invariant,
13516 walk_ssa_copies,
13517 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
13518 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
13519 extr_type_from_vtbl_ptr_store, record_known_type
13520 check_stmt_for_type_change,
13521 ipa_polymorphic_call_context::get_dynamic_type): Move here from
13522 ipa-devirt.c
13523 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
13524 and streamer-hooks.h
13525 (contains_polymorphic_type_p, possible_placement_new,
13526 ipa_polymorphic_call_context::restrict_to_inner_class,
13527 contains_type_p, decl_maybe_in_construction_p,
13528 ipa_polymorphic_call_context::stream_out,
13529 ipa_polymorphic_call_context::debug,
13530 ipa_polymorphic_call_context::stream_in,
13531 ipa_polymorphic_call_context::set_by_decl,
13532 ipa_polymorphic_call_context::set_by_invariant,
13533 walk_ssa_copies,
13534 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
13535 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
13536 extr_type_from_vtbl_ptr_store, record_known_type
13537 check_stmt_for_type_change,
13538 ipa_polymorphic_call_context::get_dynamic_type): Move to
13539 ipa-polymorphic-call.c
13540 (type_all_derivations_known_p, types_odr_comparable,
13541 types_must_be_same_for_odr): Export.
13542 (type_known_to_have_no_deriavations_p): New function.
13543 * Makefile.in: Add ipa-polymorphic-call.c
13544
13545 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
13546
13547 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
13548 for better storage.
13549 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
13550 (possible_polymorphic_call_targets): Instead of computing both
13551 speculative and non-speculative answers, do just one at a time.
13552 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
13553 (dump_targets): Break out from ...
13554 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
13555 and non-speculative lists.
13556 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
13557 * ipa-utils.h (possible_polymorphic_call_targets): Update.
13558
13559 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
13560
13561 PR rtl-optimization/63348
13562 * emit-rtl.c (try_split): Do not emit extra barrier.
13563
13564 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
13565
13566 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
13567 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
13568 new predicates.
13569 (aarch64_<sur>shll2_n<mode>): Likewise.
13570 (aarch64_<sur>shr_n<mode>): Likewise.
13571 (aarch64_<sur>sra_n<mode>: Likewise.
13572 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
13573 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
13574 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
13575 * config/aarch64/iterators.md (ve_mode): New.
13576 (offsetlr): Remap to infix text for use in new predicates.
13577 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
13578 (aarch64_simd_shift_imm_hi): Likewise.
13579 (aarch64_simd_shift_imm_si): Likewise.
13580 (aarch64_simd_shift_imm_di): Likewise.
13581 (aarch64_simd_shift_imm_offset_qi): Likewise.
13582 (aarch64_simd_shift_imm_offset_hi): Likewise.
13583 (aarch64_simd_shift_imm_offset_si): Likewise.
13584 (aarch64_simd_shift_imm_offset_di): Likewise.
13585 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
13586 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
13587 (aarch64_simd_shift_imm_bitsize_si): Likewise.
13588 (aarch64_simd_shift_imm_bitsize_di): Likewise.
13589
13590 2014-09-25 Jiong Wang <jiong.wang@arm.com>
13591
13592 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
13593 new created BB as the intersection of live-in from "old_dest" and
13594 live-out from "bb".
13595
13596 2014-09-25 Felix Yang <felix.yang@huawei.com>
13597
13598 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
13599 * genautomata.c (merge_states): Ditto.
13600
13601 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
13602
13603 PR target/62218
13604 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
13605 in instruction sequence.
13606
13607 2014-09-25 Nick Clifton <nickc@redhat.com>
13608
13609 PR target/62218
13610 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
13611 in instruction sequence.
13612
13613 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13614
13615 PR target/63335
13616 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
13617 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
13618
13619 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
13620 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13621 Anna Tikhonova <anna.tikhonova@intel.com>
13622 Ilya Tocar <ilya.tocar@intel.com>
13623 Andrey Turetskiy <andrey.turetskiy@intel.com>
13624 Ilya Verbin <ilya.verbin@intel.com>
13625 Kirill Yukhin <kirill.yukhin@intel.com>
13626 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13627
13628 * config/i386/sse.md
13629 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
13630 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
13631 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
13632 (define_expand "<avx512>_perm<mode>_mask"): ... this.
13633 Use VI8F_256_512 mode iterator.
13634 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
13635 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
13636
13637 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
13638 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13639 Anna Tikhonova <anna.tikhonova@intel.com>
13640 Ilya Tocar <ilya.tocar@intel.com>
13641 Andrey Turetskiy <andrey.turetskiy@intel.com>
13642 Ilya Verbin <ilya.verbin@intel.com>
13643 Kirill Yukhin <kirill.yukhin@intel.com>
13644 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13645
13646 * config/i386/sse.md
13647 (define_insn "avx_movshdup256<mask_name>"): Add masking.
13648 (define_insn "sse3_movshdup<mask_name>"): Ditto.
13649 (define_insn "avx_movsldup256<mask_name>"): Ditto.
13650 (define_insn "sse3_movsldup<mask_name>"): Ditto.
13651 (define_insn "vec_dupv2df<mask_name>"): Ditto.
13652 (define_insn "*vec_concatv2df"): Add EVEX version.
13653
13654 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
13655 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13656 Anna Tikhonova <anna.tikhonova@intel.com>
13657 Ilya Tocar <ilya.tocar@intel.com>
13658 Andrey Turetskiy <andrey.turetskiy@intel.com>
13659 Ilya Verbin <ilya.verbin@intel.com>
13660 Kirill Yukhin <kirill.yukhin@intel.com>
13661 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13662
13663 * config/i386/sse.md
13664 (define_insn "vec_set<mode>_0"): Add EVEX version.
13665
13666 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
13667 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13668 Anna Tikhonova <anna.tikhonova@intel.com>
13669 Ilya Tocar <ilya.tocar@intel.com>
13670 Andrey Turetskiy <andrey.turetskiy@intel.com>
13671 Ilya Verbin <ilya.verbin@intel.com>
13672 Kirill Yukhin <kirill.yukhin@intel.com>
13673 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13674
13675 * config/i386/sse.md
13676 (define_insn
13677 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
13678 New.
13679 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
13680 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
13681 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
13682 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
13683 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
13684 (define_expand "sse2_cvtpd2ps_mask): New.
13685 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
13686 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
13687
13688 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
13689 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13690 Anna Tikhonova <anna.tikhonova@intel.com>
13691 Ilya Tocar <ilya.tocar@intel.com>
13692 Andrey Turetskiy <andrey.turetskiy@intel.com>
13693 Ilya Verbin <ilya.verbin@intel.com>
13694 Kirill Yukhin <kirill.yukhin@intel.com>
13695 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13696
13697 * config/i386/i386.c
13698 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
13699 (ufix_notruncv8dfv8si2_mask_round): ... this.
13700 * config/i386/sse.md
13701 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
13702 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
13703 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
13704 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
13705 (define_expand "sse2_cvtpd2dq"): Delete.
13706 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
13707 make 2nd operand const0 vector.
13708 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
13709 Delete.
13710 (define_mode_attr pd2udqsuff): New.
13711 (define_insn
13712 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
13713 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
13714 (define_insn "*avx_cvttpd2dq256_2"): Delete.
13715 (define_expand "sse2_cvttpd2dq"): Ditto.
13716 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
13717 make 2nd operand const0 vector.
13718
13719 2014-09-25 Jakub Jelinek <jakub@redhat.com>
13720
13721 PR tree-optimization/63341
13722 * tree-vectorizer.h (vect_create_data_ref_ptr,
13723 vect_create_addr_base_for_vector_ref): Add another tree argument
13724 defaulting to NULL_TREE.
13725 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
13726 argument, pass it down to vect_create_addr_base_for_vector_ref.
13727 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
13728 add that to base_offset too if non-NULL.
13729 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
13730 for dr_explicit_realign_optimized set it to vector byte size
13731 - 1 instead of setting offset, pass byte_offset down to
13732 vect_create_data_ref_ptr.
13733
13734 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
13735
13736 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
13737 forgotten debug output; canonicalize querries more wtih LTO.
13738
13739 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
13740
13741 * cgraph.h (class ipa_polymorphic_call_context): Move here from
13742 ipa-utils.h; add stream_int and stream_out methods.
13743 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
13744 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
13745 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
13746 add CONTEXT.
13747 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
13748 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
13749 ipa_polymorphic_call_context::clear_speculation,
13750 ipa_polymorphic_call_context::clear_outer_type): Move here from
13751 ipa-utils.h
13752 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
13753 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
13754 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
13755 ipa_polymorphic_call_context::clear_speculation,
13756 ipa_polymorphic_call_context::clear_outer_type): Likewise.
13757 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
13758 streamer-hooks.h
13759 (ipa_polymorphic_call_context::stream_out): New method.
13760 (ipa_polymorphic_call_context::stream_in): New method.
13761 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
13762 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
13763 OUTER_TYPE.
13764 (ipa_analyze_call_uses): Simplify.
13765 (update_indirect_edges_after_inlining): Do not care about outer_type.
13766 (ipa_write_indirect_edge_info): Update.
13767 (ipa_write_indirect_edge_info): Likewise.
13768 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
13769 (dump_edge_flags): Break out from ...
13770 (cgraph_node::dump): ... here; dump indirect edges.
13771
13772 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
13773
13774 * ipa-utils.h (polymorphic_call_context): Add
13775 metdhos dump, debug and clear_outer_type.
13776 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
13777 (ipa_polymorphic_call_context::clear_outer_type): New method.
13778 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
13779 * ipa-devirt.c (types_odr_comparable): New function.
13780 (types_must_be_same_for_odr): New function.
13781 (odr_subtypes_equivalent_p): Simplify.
13782 (possible_placement_new): Break out from ...
13783 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
13784 be more cuatious about returning false in cases the context may be
13785 valid in derived type or via placement new.
13786 (contains_type_p): Clear maybe_derived_type
13787 (ipa_polymorphic_call_context::dump): New method.
13788 (ipa_polymorphic_call_context::debug): New method.
13789 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
13790 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
13791 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
13792 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
13793 to suceed on all valid cases; remove confused sanity check.
13794 (dump_possible_polymorphic_call_targets): Simplify.
13795
13796 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
13797
13798 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
13799 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
13800 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
13801 varpool.c: Rename all instances of DECL_ABSTRACT to
13802 DECL_ABSTRACT_P.
13803
13804 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13805
13806 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
13807 special handling for stores whose SET_SRC is an UNSPEC (such as
13808 UNSPEC_STVE).
13809
13810 2014-09-24 Jiong Wang <jiong.wang@arm.com>
13811
13812 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
13813 !REG_P (src) to release more instruction sink opportunities.
13814
13815 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
13816
13817 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
13818 move costs for 128-bit types.
13819
13820 2014-09-24 Martin Jambor <mjambor@suse.cz>
13821
13822 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
13823 when duplicating a PASS_THROUGH jump function when creating a
13824 speculative edge.
13825
13826 2014-09-24 Marek Polacek <polacek@redhat.com>
13827
13828 PR c/61405
13829 PR c/53874
13830 * asan.c (maybe_instrument_call): Add default case.
13831 * ipa-pure-const.c (special_builtin_state): Likewise.
13832 * predict.c (expr_expected_value_1): Likewise.
13833 * lto-streamer-out.c (write_symbol): Initialize variable.
13834
13835 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13836
13837 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
13838 the lane.
13839 (vmuld_laneq_f64): Likewise.
13840 (vmuls_lane_f32): Likewise.
13841 (vmuls_laneq_f32): Likewise.
13842
13843 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
13844
13845 PR bootstrap/63235
13846 * varpool.c (varpool_node::add): Pass decl attributes
13847 to lookup_attribute.
13848
13849 2014-09-24 Jakub Jelinek <jakub@redhat.com>
13850
13851 PR sanitizer/63316
13852 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
13853
13854 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13855
13856 PR tree-optimization/63266
13857 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
13858 marker for unknown byte value.
13859 (MARKER_MASK): New macro.
13860 (MARKER_BYTE_UNKNOWN): New macro.
13861 (HEAD_MARKER): New macro.
13862 (do_shift_rotate): Mark bytes with unknown values due to sign
13863 extension when doing an arithmetic right shift. Replace hardcoded
13864 mask for marker by new MARKER_MASK macro.
13865 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
13866 numbers accordingly.
13867
13868 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
13869 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13870 Anna Tikhonova <anna.tikhonova@intel.com>
13871 Ilya Tocar <ilya.tocar@intel.com>
13872 Andrey Turetskiy <andrey.turetskiy@intel.com>
13873 Ilya Verbin <ilya.verbin@intel.com>
13874 Kirill Yukhin <kirill.yukhin@intel.com>
13875 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13876
13877 * config/i386/sse.md
13878 (define_insn
13879 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
13880 Add masking.
13881 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
13882 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
13883
13884 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
13885 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13886 Anna Tikhonova <anna.tikhonova@intel.com>
13887 Ilya Tocar <ilya.tocar@intel.com>
13888 Andrey Turetskiy <andrey.turetskiy@intel.com>
13889 Ilya Verbin <ilya.verbin@intel.com>
13890 Kirill Yukhin <kirill.yukhin@intel.com>
13891 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13892
13893 * config/i386/sse.md
13894 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
13895 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
13896 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
13897 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
13898 (define_expand "avx512vl_pshuflw_mask"): New.
13899 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
13900 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
13901 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
13902 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
13903 (define_expand "avx512vl_pshufhw_mask"): New.
13904 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
13905
13906 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
13907 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13908 Anna Tikhonova <anna.tikhonova@intel.com>
13909 Ilya Tocar <ilya.tocar@intel.com>
13910 Andrey Turetskiy <andrey.turetskiy@intel.com>
13911 Ilya Verbin <ilya.verbin@intel.com>
13912 Kirill Yukhin <kirill.yukhin@intel.com>
13913 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13914
13915 * config/i386/i386.c
13916 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
13917 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
13918 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
13919 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
13920 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
13921 * config/i386/sse.md
13922 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
13923 (define_insn
13924 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
13925 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
13926 (define_insn
13927 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
13928 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
13929 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
13930 (define_expand "avx512vl_pshufd_mask"): New.
13931 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
13932
13933 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
13934 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13935 Anna Tikhonova <anna.tikhonova@intel.com>
13936 Ilya Tocar <ilya.tocar@intel.com>
13937 Andrey Turetskiy <andrey.turetskiy@intel.com>
13938 Ilya Verbin <ilya.verbin@intel.com>
13939 Kirill Yukhin <kirill.yukhin@intel.com>
13940 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13941
13942 * config/i386/i386.c
13943 (CODE_FOR_avx2_extracti128): Rename to ...
13944 (CODE_FOR_avx_vextractf128v4di): this.
13945 (CODE_FOR_avx2_inserti128): Rename to ...
13946 (CODE_FOR_avx_vinsertf128v4di): this.
13947 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
13948 CODE_FOR_avx_vextractf128v4di.
13949 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
13950 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
13951 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
13952 CODE_FOR_avx512vl_vinsertv8si.
13953 * config/i386/sse.md
13954 (define_expand
13955 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
13956 AVX512_VEC mode iterator.
13957 (define_insn
13958 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
13959 Ditto.
13960 (define_expand
13961 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
13962 AVX512_VEC_2 mode iterator.
13963 (define_insn "vec_set_lo_<mode><mask_name>"): New.
13964 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
13965 (define_expand "avx512vl_vinsert<mode>"): Ditto.
13966 (define_insn "avx2_vec_set_lo_v4di"): Delete.
13967 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
13968 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
13969 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
13970 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
13971 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
13972 (define_expand "avx2_extracti128"): Delete.
13973 (define_expand "avx2_inserti128"): Ditto.
13974
13975 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
13976 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13977 Anna Tikhonova <anna.tikhonova@intel.com>
13978 Ilya Tocar <ilya.tocar@intel.com>
13979 Andrey Turetskiy <andrey.turetskiy@intel.com>
13980 Ilya Verbin <ilya.verbin@intel.com>
13981 Kirill Yukhin <kirill.yukhin@intel.com>
13982 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13983
13984 * config/i386/sse.md
13985 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
13986 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
13987 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
13988 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
13989 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
13990 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
13991 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
13992 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
13993 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
13994 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
13995 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
13996 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
13997 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
13998
13999 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
14000
14001 PR rtl-optimization/63210
14002 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
14003 HARD_REGNO is not available for CONFLICT_A.
14004
14005 2014-09-23 Andi Kleen <ak@linux.intel.com>
14006
14007 * cgraph.h (symtab_node): Add no_reorder attribute.
14008 (symbol_table::output_asm_statements): Remove.
14009 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
14010 (cgraph_node::create_version_clone): Dito.
14011 (symbol_table::output_asm_statements): Remove.
14012 * trans-mem.c (ipa_tm_create_version_alias): Dito.
14013 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
14014 (output_in_order): Add no_reorder flag. Only handle no_reorder
14015 nodes when set.
14016 (symbol_table::compile): Add separate pass for no_reorder nodes.
14017 (process_common_attributes): Set no_reorder flag in symtab node.
14018 Add node argument.
14019 (process_function_and_variable_attributes): Pass symtab nodes to
14020 process_common_attributes.
14021 * doc/extend.texi (no_reorder): Document no_reorder attribute.
14022 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
14023 (lto_output_varpool_node): Dito.
14024 (input_overwrite_node): Dito.
14025 (input_varpool_node): Dito.
14026 * varpool.c (varpool_node::add): Set no_reorder attribute.
14027 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
14028 (symbol_table::output_variables): Dito.
14029 * symtab.c (symtab_node::dump_base): Print no_reorder.
14030
14031 2014-09-23 Jiong Wang <jiong.wang@arm.com>
14032
14033 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
14034 be INVALID_REGNUM.
14035
14036 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
14037
14038 * configure: Regenerate.
14039
14040 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
14041
14042 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
14043 when result_mode == shift_mode.
14044
14045 2014-09-23 Kostya Serebryany <kcc@google.com>
14046
14047 Update to match the changed asan API.
14048 * asan.c (asan_global_struct): Update the __asan_global definition
14049 to match the new API.
14050 (asan_add_global): Ditto.
14051 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
14052 to __asan_init_v4.
14053
14054 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14055
14056 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
14057 refine the constraints used on 32/64-bit floating point moves.
14058 (f32_av): Likewise.
14059 (f64_vsx): Likewise.
14060 (f64_dm): Likewise.
14061 (f64_av): Likewise.
14062 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
14063 (BOOL_REGS_OP1): Likewise.
14064 (BOOL_REGS_OP2): Likewise.
14065 (BOOL_REGS_UNARY): Likewise.
14066 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
14067 32/64-bit floating point moves. Do not use wa, instead use ww/ws
14068 for moves involving VSX registers. Do not use constraints that
14069 target VSX registers for decimal types.
14070 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
14071 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
14072
14073 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
14074
14075 * tree.h (int_bit_position): Turn into inline function;
14076 implement using wide int.
14077 * tree.c (int_bit_position): Remove.
14078
14079 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
14080
14081 PR bootstrap/63280
14082 * target-globals.c (target_globals::~target_globals): Fix location
14083 of ira_int destruction.
14084
14085 2014-09-23 Renlin Li <renlin.li@arm.com>
14086
14087 * config/aarch64/aarch64.md (return): New.
14088 (simple_return): Likewise.
14089 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
14090 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
14091
14092 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
14093
14094 * common/config/aarch64/aarch64-common.c:
14095 (default_options aarch_option_optimization_table):
14096 Default to -fsched-pressure.
14097
14098 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
14099
14100 * cfgcleanup.c (try_optimize_cfg): Do not remove label
14101 with LABEL_PRESERVE_P flag set.
14102
14103 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
14104 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14105 Anna Tikhonova <anna.tikhonova@intel.com>
14106 Ilya Tocar <ilya.tocar@intel.com>
14107 Andrey Turetskiy <andrey.turetskiy@intel.com>
14108 Ilya Verbin <ilya.verbin@intel.com>
14109 Kirill Yukhin <kirill.yukhin@intel.com>
14110 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14111
14112 * config/i386/sse.md
14113 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
14114 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
14115 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
14116 (define_insn "sse2_shufpd_v2df_mask"): New.
14117
14118 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
14119 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14120 Anna Tikhonova <anna.tikhonova@intel.com>
14121 Ilya Tocar <ilya.tocar@intel.com>
14122 Andrey Turetskiy <andrey.turetskiy@intel.com>
14123 Ilya Verbin <ilya.verbin@intel.com>
14124 Kirill Yukhin <kirill.yukhin@intel.com>
14125 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14126
14127 * config/i386/sse.md
14128 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
14129 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
14130 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
14131 (define_insn "sse_shufps_v4sf_mask"): New.
14132
14133 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
14134 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14135 Anna Tikhonova <anna.tikhonova@intel.com>
14136 Ilya Tocar <ilya.tocar@intel.com>
14137 Andrey Turetskiy <andrey.turetskiy@intel.com>
14138 Ilya Verbin <ilya.verbin@intel.com>
14139 Kirill Yukhin <kirill.yukhin@intel.com>
14140 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14141
14142 * config/i386/sse.md
14143 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
14144 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
14145 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
14146 (define_insn "unpcklps128_mask"): New.
14147
14148 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
14149 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14150 Anna Tikhonova <anna.tikhonova@intel.com>
14151 Ilya Tocar <ilya.tocar@intel.com>
14152 Andrey Turetskiy <andrey.turetskiy@intel.com>
14153 Ilya Verbin <ilya.verbin@intel.com>
14154 Kirill Yukhin <kirill.yukhin@intel.com>
14155 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14156
14157 * config/i386/sse.md
14158 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
14159 (define_insn "avx512vl_unpckhpd128_mask"): New.
14160 (define_expand "avx_movddup256<mask_name>"): Add masking.
14161 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
14162 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
14163 (define_insn "avx512vl_unpcklpd128_mask"): New.
14164
14165 2014-09-22 Joseph Myers <joseph@codesourcery.com>
14166
14167 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14168 * doc/tm.texi: Regenerate.
14169 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
14170 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14171 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
14172 Remove.
14173 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14174 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14175 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14176 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14177 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
14178 Remove.
14179 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14180 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14181 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14182 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14183 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14184 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14185 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14186 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14187 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14188 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
14189 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
14190 Remove.
14191
14192 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
14193
14194 * tree-ssa-ccp.c (prop_value_d): Rename to ...
14195 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
14196 * ipa-prop.c (struct type_change_info): Rename to ...
14197 (prop_type_change_info): ... this; update uses.
14198 * ggc-page.c (globals): Rename to ...
14199 (static struct ggc_globals): ... this; update uses.
14200 * tree-ssa-loop-im.c (mem_ref): Rename to ...
14201 (im_mem_ref): ... this; update uses.
14202 * ggc-common.c (loc_descriptor): Rename to ...
14203 (ggc_loc_descriptor): ... this; update uses.
14204 * lra-eliminations.c (elim_table): Rename to ...
14205 (lra_elim_table): ... this; update uses.
14206 * bitmap.c (output_info): Rename to ...
14207 (bitmap_output_info): ... this; update uses.
14208 * gcse.c (expr): Rename to ...
14209 (gcse_expr) ... this; update uses.
14210 (occr): Rename to ...
14211 (gcse_occr): .. this; update uses.
14212 * tree-ssa-copy.c (prop_value_d): Rename to ...
14213 (prop_value_t): ... this.
14214 * predict.c (block_info_def): Rename to ...
14215 (block_info): ... this; update uses.
14216 (edge_info_def): Rename to ...
14217 (edge_info): ... this; update uses.
14218 * profile.c (bb_info): Rename to ...
14219 (bb_profile_info): ... this; update uses.
14220 * alloc-pool.c (output_info): Rename to ...
14221 (pool_output_info): ... this; update uses.
14222 * ipa-cp.c (topo_info): Rename to ..
14223 (ipa_topo_info): ... this; update uses.
14224 * tree-nrv.c (nrv_data): Rename to ...
14225 (nrv_data_t): ... this; update uses.
14226 * ipa-split.c (bb_info): Rename to ...
14227 (split_bb_info): ... this one.
14228 * profile.h (edge_info): Rename to ...
14229 (edge_profile_info): ... this one; update uses.
14230 * dse.c (bb_info): Rename to ...
14231 (dse_bb_info): ... this one; update uses.
14232 * cprop.c (occr): Rename to ...
14233 (cprop_occr): ... this one; update uses.
14234 (expr): Rename to ...
14235 (cprop_expr): ... this one; update uses.
14236
14237 2014-09-22 Jason Merrill <jason@redhat.com>
14238
14239 * Makefile.in (check-parallel-%): Add @.
14240
14241 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
14242
14243 * config/aarch64/geniterators.sh: New.
14244 * config/aarch64/iterators.md (VDQF_DF): New.
14245 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
14246 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
14247
14248 2014-09-22 Peter A. Bigot <pab@pabigot.com>
14249
14250 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
14251 -lnosys when -msim absent.
14252
14253 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
14254
14255 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
14256
14257 2014-09-22 Richard Biener <rguenther@suse.de>
14258
14259 * gimplify.c (gimplify_init_constructor): Do not leave
14260 non-GIMPLE vector constructors around.
14261 * tree-cfg.c (verify_gimple_assign_single): Verify that
14262 CONSTRUCTORs have gimple elements.
14263
14264 2014-09-22 Jakub Jelinek <jakub@redhat.com>
14265
14266 PR debug/63328
14267 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
14268 insert a debug source bind stmt setting DEBUG_EXPR_DECL
14269 instead of a normal gimple assignment stmt.
14270
14271 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
14272
14273 * config/bfin/bfin.md: Fix use of constraints in define_split.
14274
14275 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
14276
14277 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
14278 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
14279
14280 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
14281
14282 * hard-reg-set.h: Include hash-table.h.
14283 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
14284 field.
14285 * target-globals.c (target_globals::~target_globals): Call
14286 hard_regs->finalize.
14287 * rtl.h (subreg_shape): New structure.
14288 (shape_of_subreg): New function.
14289 (simplifiable_subregs): Declare.
14290 * reginfo.c (simplifiable_subreg): New structure.
14291 (simplifiable_subregs_hasher): Likewise.
14292 (simplifiable_subregs): New function.
14293 (invalid_mode_changes): Delete.
14294 (alid_mode_changes, valid_mode_changes_obstack): New variables.
14295 (record_subregs_of_mode): Remove subregs_of_mode parameter.
14296 Record valid mode changes in valid_mode_changes.
14297 (find_subregs_of_mode): Remove subregs_of_mode parameter.
14298 Update calls to record_subregs_of_mode.
14299 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
14300 handling. Initialize new variables. Update call to
14301 find_subregs_of_mode.
14302 (invalid_mode_change_p): Check new variables instead of
14303 invalid_mode_changes.
14304 (finish_subregs_of_mode): Finalize new variables instead of
14305 invalid_mode_changes.
14306 (target_hard_regs::finalize): New function.
14307 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
14308 even when CLASS_CANNOT_CHANGE_MODE is undefined.
14309
14310 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
14311
14312 * combine.c (subst): Use simplify_subreg_regno rather than
14313 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
14314
14315 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
14316
14317 * rtl.h (subreg_info): Expand commentary
14318 * rtlanal.c (subreg_get_info): Likewise.
14319
14320 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
14321
14322 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
14323 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
14324 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
14325
14326 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
14327
14328 * config/arm/arm.c: #include "tm-constrs.h"
14329 (thumb1_size_rtx_costs): Adjust rtx costs.
14330
14331 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
14332
14333 * configure.ac (target_header_dir): Move block defining
14334 this to before the block setting inhibit_libc.
14335 (inhibit_libc): When considering $with_headers, just
14336 check it it's explicitly "no". If not, also check if
14337 $target_header_dir/stdio.h is present. If not, set
14338 inhibit_libc=true.
14339 * configure: Regenerate.
14340
14341 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
14342
14343 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
14344
14345 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
14346
14347 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
14348 insn for divides by integer powers of two.
14349 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
14350 (mod<mode>3): Fix formatting.
14351 (three anonymous define_insn and two define_split): Delete.
14352
14353 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
14354
14355 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
14356 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
14357 (floatdisf2_internal2): Ditto.
14358 (ashrdi3_no_power): Ditto. Fix formatting.
14359
14360 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
14361
14362 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
14363 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
14364 Tidy.
14365
14366 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
14367
14368 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
14369 constant, use addsi3 directly.
14370 (three anonymous define_insn, two define_split): Delete.
14371 (sub<mode>3): Move. Do not allow constant second operand.
14372 Generate different insn for constant first operand.
14373 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
14374 (subf<mode>3_imm): New.
14375 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
14376 (*plus_ltu<mode>): Only handle registers.
14377 (*plus_ltu<mode>_1): New. Handle integer third operand.
14378 (*plus_gtu<mode>): Only handle registers.
14379 (*plus_gtu<mode>_1): New. Handle integer third operand.
14380
14381 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
14382
14383 * config/rs6000/rs6000.md (iorxor): New code_iterator.
14384 (iorxor): New code_attr.
14385 (IORXOR): New code_attr.
14386 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
14387 (ior<mode>3, xor<mode>3): Delete.
14388 (<iorxor><mode>3): New.
14389 (splitter for "big" integer ior, xor): New.
14390 (*bool<mode>3): Move. Also handle AND.
14391 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
14392 (splitter for "big" integer ior, xor): Delete.
14393
14394 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
14395
14396 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
14397 (two anonymous define_insn and two define_split): Delete.
14398 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
14399
14400 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
14401
14402 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
14403 (two anonymous define_insn and two define_split): Delete.
14404 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
14405
14406 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
14407
14408 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
14409
14410 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
14411
14412 * config/rs6000/predicates.md (ca_operand): Allow subregs.
14413 (input_operand): Do not allow ca_operand.
14414 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
14415 carry bit, allow SImode and Pmode.
14416 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
14417
14418 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
14419
14420 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
14421 clobbered registers using clobber_reg. Remove UNSPEC decoration.
14422 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
14423 (*call_rex64_ms_sysv): Remove.
14424 (*call_value_rex64_ms_sysv): Ditto.
14425 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
14426
14427 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
14428
14429 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
14430 operand 3 to "CnL".
14431
14432 2014-09-20 Andreas Schwab <schwab@suse.de>
14433
14434 * config/ia64/ia64.md: Remove constraints from define_split
14435 patterns.
14436
14437 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
14438
14439 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
14440 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
14441 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
14442 (get_dynamic_type): Remove.
14443 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
14444 (clear_speculation): Bring to ipa-deivrt.h
14445 (get_class_context): Rename to ...
14446 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
14447 (contains_type_p): Update.
14448 (get_dynamic_type): Rename to ...
14449 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
14450 (possible_polymorphic_call_targets): UPdate.
14451 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
14452 * ipa-prop.c (ipa_analyze_call_uses): Update.
14453
14454 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
14455
14456 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
14457 privatize dynamic TLS variables.
14458
14459 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
14460
14461 * diagnostic.c (warning_n): New function.
14462 * diagnostic-core.h (warning_n): Declare.
14463 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
14464 output dynamic counts when available.
14465
14466 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
14467
14468 PR tree-optimization/63255
14469 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
14470 issue in setting body_removed flag.
14471
14472 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
14473
14474 PR c++/61825
14475 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
14476 that visibility change is possible
14477 (handle_weakref_attribute): Likewise.
14478 * cgraph.h (symtab_node): Add method get_create and
14479 field refuse_visibility_changes.
14480 (symtab_node::get_create): New method.
14481 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
14482 * varasm.c (mark_weak): Verify that visibility change is
14483 possible.
14484
14485 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
14486
14487 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
14488 for base_reg_operand to be common between LO_SUM and PLUS.
14489 (fusion_gpr_mem_combo): New predicate to match a fused address
14490 that combines the addis and memory offset address.
14491
14492 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
14493 calling signature.
14494 (emit_fusion_gpr_load): Likewise.
14495
14496 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
14497 signature to pass each argument separately, rather than
14498 using an operands array. Rewrite the insns found by peephole2 to
14499 be a single insn, rather than hoping the insns will still be
14500 together when the peephole pass is done. Drop being called via a
14501 normal peephole.
14502 (emit_fusion_gpr_load): Change calling signature to be called from
14503 the fusion_gpr_load_<mode> insns with a combined memory address
14504 instead of the peephole pass passing the addis and offset
14505 separately.
14506
14507 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
14508 fusion.
14509 (power8 fusion peephole): Drop support for doing power8 via a
14510 normal peephole that was created by the peephole2 pass.
14511 (power8 fusion peephole2): Create a new insn with the fused
14512 address, so that the fused operation is kept together after
14513 register allocation is done.
14514 (fusion_gpr_load_<mode>): Likewise.
14515
14516 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
14517
14518 PR lto/63286
14519 * tree.c (need_assembler_name_p): Do not mangle variadic types.
14520
14521 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
14522
14523 * recog.c (scratch_operand): Do not simply allow all hard registers:
14524 only allow those that are allocatable.
14525
14526 2014-09-19 Felix Yang <felix.yang@huawei.com>
14527
14528 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
14529 comments and fix spacing to conform to coding style.
14530
14531 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
14532
14533 * genrecog.c (validate_pattern): Allow empty constraints in
14534 a match_scratch.
14535
14536 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
14537
14538 * dwarf2out.c (decl_ultimate_origin): Update comment.
14539 * tree.c (block_ultimate_origin): Same.
14540
14541 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14542
14543 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
14544 Update GCC version name to GCC 5.
14545 (rs6000_function_arg_boundary): Likewise.
14546 (rs6000_function_arg): Likewise.
14547
14548 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
14549
14550 * config/sh/sh.md: Fix use of constraints in define_split.
14551
14552 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
14553
14554 PR ipa/61998
14555 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
14556
14557 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
14558
14559 * doc/md.texi (Modifiers): Consistently use "read/write"
14560 nomenclature rather than "input/output".
14561 * genrecog.c (constraints_supported_in_insn_p): New.
14562 (validate_pattern): If needed, also check constraints on
14563 MATCH_SCRATCH operands.
14564 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
14565 operands with no '=' or '+' modifier.
14566
14567 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
14568
14569 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
14570 scratch register as written.
14571
14572 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14573
14574 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
14575 assignment.
14576
14577 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14578
14579 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
14580 expanders.
14581
14582 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14583
14584 PR target/62662
14585 * config/s390/s390.c (s390_emit_epilogue): When doing the return
14586 address load optimization force s390_optimize_prologue to leave it
14587 that way. Only do the optimization if we already decided to push
14588 r14 into a stack slot.
14589
14590 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
14591
14592 * asan.c (build_check_stmt): Alignment arg was added.
14593 (asan_expand_check_ifn): Optimization for alignment >= 8.
14594
14595 2014-09-19 Olivier Hainque <hainque@adacore.com>
14596
14597 * config/i386/vxworksae.h: Remove obsolete definitions.
14598 (STACK_CHECK_PROTECT): Define.
14599 * config/i386/vx-common.h: Remove. Merge contents within
14600 config/i386/vxworks.h.
14601 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
14602 i386/vx-common.h.
14603
14604 2014-09-19 Olivier Hainque <hainque@adacore.com>
14605
14606 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
14607 * config/rs6000/t-vxworksmils: New file.
14608 * config/rs6000/vxworksmils.h: New file.
14609
14610 2014-09-19 Olivier Hainque <hainque@adacore.com>
14611
14612 * varasm.c (default_section_type_flags): Flag .persistent.bss
14613 sections as SECTION_BSS.
14614
14615 2014-09-19 Nick Clifton <nickc@redhat.com>
14616
14617 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
14618 pop'ed registers so that DCE does not eliminate them.
14619
14620 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
14621
14622 PR lto/63298
14623 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
14624
14625 2014-09-18 Joseph Myers <joseph@codesourcery.com>
14626
14627 * system.h (LIBGCC2_TF_CEXT): Poison.
14628 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
14629 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
14630 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
14631 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
14632 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
14633 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
14634 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
14635 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
14636 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
14637
14638 2014-09-19 Kito Cheng <kito@0xlab.org>
14639
14640 * except.h: Fix header guard.
14641 * addresses.h: Add missing header guard.
14642 * cfghooks.h: Likewise.
14643 * collect-utils.h: Likewise.
14644 * collect2-aix.h: Likewise.
14645 * conditions.h: Likewise.
14646 * cselib.h: Likewise.
14647 * dwarf2asm.h: Likewise.
14648 * graphds.h: Likewise.
14649 * graphite-scop-detection.h: Likewise.
14650 * gsyms.h: Likewise.
14651 * hw-doloop.h: Likewise.
14652 * incpath.h: Likewise.
14653 * ipa-inline.h: Likewise.
14654 * ipa-ref.h: Likewise.
14655 * ira-int.h: Likewise.
14656 * ira.h: Likewise.
14657 * lra-int.h: Likewise.
14658 * lra.h: Likewise.
14659 * lto-section-names.h: Likewise.
14660 * read-md.h: Likewise.
14661 * reload.h: Likewise.
14662 * rtl-error.h: Likewise.
14663 * sdbout.h: Likewise.
14664 * targhooks.h: Likewise.
14665 * tree-affine.h: Likewise.
14666 * xcoff.h: Likewise.
14667 * xcoffout.h: Likewise.
14668
14669 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
14670
14671 PR debug/63285
14672 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
14673 if advance != 0.
14674
14675 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
14676
14677 PR target/61360
14678 * lra.c (lra): Call recog_init.
14679
14680 2014-09-18 Jakub Jelinek <jakub@redhat.com>
14681
14682 PR c++/62017
14683 * asan.c (transform_statements): Don't instrument clobber statements.
14684
14685 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14686
14687 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
14688 to neon_load1_1reg<q>.
14689
14690 2014-09-17 Jakub Jelinek <jakub@redhat.com>
14691
14692 PR debug/63284
14693 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
14694 if there are only debug stmts after the noreturn call, instead
14695 remove the debug stmts.
14696
14697 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
14698
14699 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
14700 (odr_types_equivalent_p): Use pair hash.
14701 (odr_subtypes_equivalent_p): Likewise, do structural compare
14702 on ODR types that may be mismatched.
14703 (warn_odr): Support warning when only one field is given.
14704 (odr_types_equivalent_p): Strenghten comparsions made;
14705 support VOIDtype.
14706 (add_type_duplicate): Update VISITED hash set.
14707
14708 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
14709
14710 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
14711 Enable selection of 'posix' or no thread model.
14712
14713 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
14714
14715 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
14716 when architecture is older than ARMv7.
14717
14718 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
14719
14720 PR target/61853
14721 * config/pa/pa.c (pa_function_value): Directly handle aggregates
14722 that fit exactly in a word or double word.
14723
14724 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
14725
14726 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
14727 zmm/k regs support.
14728
14729 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
14730 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14731 Anna Tikhonova <anna.tikhonova@intel.com>
14732 Ilya Tocar <ilya.tocar@intel.com>
14733 Andrey Turetskiy <andrey.turetskiy@intel.com>
14734 Ilya Verbin <ilya.verbin@intel.com>
14735 Kirill Yukhin <kirill.yukhin@intel.com>
14736 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14737
14738 * config/i386/i386.c
14739 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
14740 * config/i386/sse.md
14741 (define_mode_iterator VI48F_256): New.
14742 (define_mode_attr extract_type): Ditto.
14743 (define_mode_attr extract_suf): Ditto.
14744 (define_mode_iterator AVX512_VEC): Ditto.
14745 (define_expand
14746 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
14747 AVX512_VEC.
14748 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
14749 (define_insn
14750 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
14751 Ditto.
14752 (define_mode_attr extract_type_2): Ditto.
14753 (define_mode_attr extract_suf_2): Ditto.
14754 (define_mode_iterator AVX512_VEC_2): Ditto.
14755 (define_expand
14756 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
14757 AVX512_VEC_2 mode iterator.
14758 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
14759 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
14760 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
14761 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
14762 (define_split for V16FI mode): Ditto.
14763 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
14764 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
14765 (define_split for VI8F_256 mode): Ditto.
14766 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
14767 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
14768 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
14769 (define_split for VI4F_256 mode): Ditto.
14770 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
14771 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
14772 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
14773 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
14774 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
14775 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
14776 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
14777 Update `type' attribute, remove explicit `memory' attribute calculation.
14778
14779 2014-09-16 Kito Cheng <kito@0xlab.org>
14780
14781 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
14782 ira_spilled_reg_stack_slots_num if using lra.
14783 (do_reload): Remove release ira_spilled_reg_stack_slots part.
14784 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
14785 make sure not using lra.
14786 (ira_reuse_stack_slot): Likewise.
14787 (ira_mark_new_stack_slot): Likewise.
14788
14789 2014-09-15 Andi Kleen <ak@linux.intel.com>
14790
14791 * function.c (allocate_struct_function): Force
14792 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
14793 profiling is disabled.
14794
14795 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
14796
14797 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
14798 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
14799 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
14800 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
14801 macro with statically checked member functions.
14802 * rtl.h (rtx_insn::deleted): New method.
14803 (rtx_insn::set_deleted): Likewise.
14804 (rtx_insn::set_undeleted): Likewise.
14805 (INSN_DELETED_P): Remove.
14806
14807 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
14808
14809 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
14810 result of emit_jump_insn_before to a new variable.
14811 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
14812 (mark_jump_label_1): Likewise.
14813 (mark_jump_label_asm): Likewise.
14814 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
14815 * rtl.h (mark_jump_label): Adjust.
14816
14817 2014-09-15 Jakub Jelinek <jakub@redhat.com>
14818
14819 * Makefile.in (dg_target_exps): Remove.
14820 (check_gcc_parallelize): Change to just an upper bound number.
14821 (check-%-subtargets): Always print the non-parallelized goals.
14822 (check_p_vars, check_p_comma, check_p_subwork): Remove.
14823 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
14824 check_p_numbers3, check_p_numbers4, check_p_numbers5,
14825 check_p_numbers6): New variables.
14826 (check_p_numbers): Set to sequence from 1 to 9999.
14827 (check_p_subdirs): Set to sequence from 1 to minimum of
14828 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
14829 or 128.
14830 (check-%, check-parallel-%): Rewritten so that for parallelized
14831 testing each job runs all the *.exp files, with
14832 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
14833
14834 2014-09-15 David Malcolm <dmalcolm@redhat.com>
14835
14836 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
14837 rtx to rtx_insn *.
14838 (arc_sets_cc_p): Likewise.
14839 * config/arc/arc.c (arc_print_operand): Use methods of
14840 "final_sequence" for clarity, and to enable strengthening of
14841 locals "jump" and "delay" from rtx to rtx_insn *.
14842 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
14843 rtx_insn *; use method of rtx_sequence for typesafety.
14844 (arc_get_insn_variants): Use insn method of rtx_sequence for
14845 typesafety.
14846 (arc_pad_return): Likewise.
14847 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
14848 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
14849 dyn_cast to rtx_sequence *, using insn method for typesafety.
14850 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
14851 rtx_sequence * and use insn method when invoking get_attr_length.
14852 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
14853 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
14854 rtx_sequence *, introducing a local "seq", using its insn method
14855 from typesafety and clarity.
14856 (add_sched_insns_for_speculation): Strengthen local "next" from
14857 rtx to rtx_insn *.
14858 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
14859 (predicate_insn): Likewise.
14860 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
14861 second param.
14862 * config/cris/cris.c (cris_notice_update_cc): Likewise.
14863 * config/epiphany/epiphany-protos.h
14864 (extern void epiphany_insert_mode_switch_use): Likewise for param
14865 "insn".
14866 (get_attr_sched_use_fpu): Likewise for param.
14867 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
14868 Likewise for param "insn".
14869 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
14870 param "insn" of "target_insert_mode_switch_use" callback.
14871 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
14872 (frv_issues_to_branch_unit_p): Likewise.
14873 (frv_pack_insn_p): Likewise.
14874 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
14875 const rtx * (i.e. mutable rtx_def * const *) to
14876 rtx_insn * const *.
14877 * config/i386/i386-protos.h (standard_sse_constant_opcode):
14878 Strengthen first param from rtx to rtx_insn *.
14879 (output_fix_trunc): Likewise.
14880 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
14881 (output_fix_trunc): Likewise.
14882 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
14883 local "insn".
14884 (min_insn_size): Likewise for param "insn".
14885 (get_mem_group): Likewise.
14886 (is_cmp): Likewise.
14887 (get_insn_path): Likewise.
14888 (get_insn_group): Likewise.
14889 (count_num_restricted): Likewise.
14890 (fits_dispatch_window): Likewise.
14891 (add_insn_window): Likewise.
14892 (add_to_dispatch_window): Likewise.
14893 (debug_insn_dispatch_info_file): Likewise.
14894 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
14895 first param.
14896 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
14897 "cmp" and local "prev".
14898 (m32c_output_compare): Likewise for param "insn".
14899 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
14900 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
14901 (define_predicate "large_insn_p"): Likewise.
14902 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
14903 param from rtx to rtx_insn *.
14904 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
14905 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
14906 (m68k_sched_attr_size): Likewise.
14907 (sched_get_opxy_mem_type): Likewise for param "insn".
14908 (m68k_sched_attr_op_mem): Likewise.
14909 (sched_mem_operand_p): Likewise.
14910 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
14911 * config/mep/mep.c (mep_multi_slot): Likewise.
14912 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
14913 first param.
14914 (mips_sync_loop_insns): Likewise.
14915 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
14916 method of "final_sequence" for typesafety.
14917 (mips_process_sync_loop): Strengthen param "insn" from rtx to
14918 rtx_insn *.
14919 (mips_output_sync_loop): Likewise.
14920 (mips_sync_loop_insns): Likewise.
14921 (mips_74k_agen_init): Likewise.
14922 (mips_sched_init): Use NULL rather than NULL_RTX when working with
14923 insns.
14924 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
14925 Strengthen param "insn" from rtx to rtx_insn *.
14926 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
14927 local "insn".
14928 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
14929 param.
14930 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
14931 "insn". Use method of rtx_sequence for typesafety.
14932 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
14933 rtx_insn *.
14934 (branch_needs_nop_p): Likewise.
14935 (use_skip_p): Likewise.
14936 (pa_insn_refs_are_delayed): Likewise.
14937 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
14938 for locals "insn", "ninsn".
14939 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
14940 "insn".
14941 (is_cracked_insn): Likewise.
14942 (is_branch_slot_insn): Likewise.
14943 (is_nonpipeline_insn): Likewise.
14944 (insn_terminates_group_p): Likewise.
14945 (insn_must_be_first_in_group): Likewise.
14946 (insn_must_be_last_in_group): Likewise.
14947 (force_new_group): Likewise for param "next_insn".
14948 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
14949 "insn".
14950 (s390_sched_score): Likewise.
14951 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
14952 (rtx sfunc_uses_reg): Likewise for sole param.
14953 * config/sh/sh.c (sh_print_operand): Use insn method of
14954 final_sequence for typesafety.
14955 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
14956 Use insn method of final_sequence for typesafety.
14957 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
14958 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
14959 for param.
14960 (eligible_for_return_delay): Likewise.
14961 (eligible_for_sibcall_delay): Likewise.
14962 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
14963 (eligible_for_return_delay): Likewise.
14964 (eligible_for_sibcall_delay): Likewise.
14965 * config/stormy16/stormy16-protos.h
14966 (xstormy16_output_cbranch_hi): Likewise for final param.
14967 (xstormy16_output_cbranch_si): Likewise.
14968 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
14969 (xstormy16_output_cbranch_si): Likewise.
14970 * config/v850/v850-protos.h (notice_update_cc): Likewise.
14971 * config/v850/v850.c (notice_update_cc): Likewise.
14972
14973 * final.c (get_attr_length_1): Strengthen param "insn" and param
14974 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
14975 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
14976 (get_attr_min_length): Likewise.
14977 (shorten_branches): Likewise for signature of locals "length_fun"
14978 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
14979 from a checked cast and use its methods for clarity and to enable
14980 strengthening local "inner_insn" from rtx to rtx_insn *.
14981 * genattr.c (gen_attr): When writing out the prototypes of the
14982 various generated "get_attr_" functions, strengthen the params of
14983 the non-const functions from rtx to rtx_insn *.
14984 Similarly, strengthen the params of insn_default_length,
14985 insn_min_length, insn_variable_length_p, insn_current_length.
14986 (main): Similarly, strengthen the param of num_delay_slots,
14987 internal_dfa_insn_code, insn_default_latency, bypass_p,
14988 insn_latency, min_issue_delay, print_reservation,
14989 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
14990 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
14991 to hook_int_rtx_insn_unreachable.
14992 * genattrtab.c (write_attr_get): When writing out the generated
14993 "get_attr_" functions, strengthen the param "insn" from rtx to
14994 rtx_insn *, eliminating a checked cast.
14995 (make_automaton_attrs): When writing out prototypes of
14996 "internal_dfa_insn_code_", "insn_default_latency_" functions
14997 and the "internal_dfa_insn_code" and "insn_default_latency"
14998 callbacks, strengthen their params from rtx to rtx_insn *
14999 * genautomata.c (output_internal_insn_code_evaluation): When
15000 writing out code, add a checked cast from rtx to rtx_insn * when
15001 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
15002 (output_dfa_insn_code_func): Strengthen param of generated
15003 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
15004 (output_trans_func): Likewise for generated function
15005 "state_transition".
15006 (output_internal_insn_latency_func): When writing out generated
15007 function "internal_insn_latency", rename params from "insn" and
15008 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
15009 locals "insn" and "insn2" as rtx_insn * with checked casts once
15010 we've proven that we're not dealing with const0_rtx.
15011 (output_insn_latency_func): Strengthen param of generated
15012 function "insn_latency" from rtx to rtx_insn *.
15013 (output_print_reservation_func): Likewise for generated function
15014 "print_reservation".
15015 (output_insn_has_dfa_reservation_p): Likewise for generated
15016 function "insn_has_dfa_reservation_p".
15017 * hooks.c (hook_int_rtx_unreachable): Rename to...
15018 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
15019 from rtx to rtx_insn *.
15020 * hooks.h (hook_int_rtx_unreachable): Likewise.
15021 (extern int hook_int_rtx_insn_unreachable): Likewise.
15022 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
15023 (get_attr_min_length): Likewise.
15024 * recog.c (get_enabled_alternatives): Likewise.
15025 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
15026 * reorg.c (find_end_label): Introduce local rtx "pat" and
15027 strengthen local "insn" from rtx to rtx_insn *.
15028 (redundant_insn): Use insn method of "seq" rather than element for
15029 typesafety; strengthen local "control" from rtx to rtx_insn *.
15030 * resource.c (mark_referenced_resources): Add checked cast to
15031 rtx_insn * within INSN/JUMP_INSN case.
15032 (mark_set_resources): Likewise.
15033 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
15034 rtx to rtx_insn *.
15035
15036 2014-09-15 David Malcolm <dmalcolm@redhat.com>
15037
15038 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
15039 param "label" from rtx to rtx_insn *.
15040 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
15041 and local "op".
15042 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
15043 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
15044 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
15045 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
15046 * final.c (default_label_align_after_barrier_max_skip): Strengthen
15047 param from rtx to rtx_insn *.
15048 (default_loop_align_max_skip): Likewise.
15049 (default_label_align_max_skip): Likewise.
15050 (default_jump_align_max_skip): Likewise.
15051 * target.def (label_align_after_barrier_max_skip): Likewise.
15052 (loop_align_max_skip): Likewise.
15053 (label_align_max_skip): Likewise.
15054 (jump_align_max_skip): Likewise.
15055 * targhooks.h (default_label_align_after_barrier_max_skip):
15056 Likewise.
15057 (default_loop_align_max_skip): Likewise.
15058 (default_label_align_max_skip): Likewise.
15059 (default_jump_align_max_skip): Likewise.
15060
15061 2014-09-15 David Malcolm <dmalcolm@redhat.com>
15062
15063 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
15064 from const_rtx to const rtx_insn *. Update union members from rtx
15065 to rtx_insn *.
15066 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
15067 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
15068 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
15069 strengthen both params from const_rtx to const rtx_insn *.
15070 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
15071 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
15072 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
15073 rtx_insn *.
15074 * target.def (can_follow_jump): Strengthen both params from
15075 const_rtx to const rtx_insn *, and update default implementation
15076 from hook_bool_const_rtx_const_rtx_true to
15077 hook_bool_const_rtx_insn_const_rtx_insn_true.
15078
15079 2014-09-15 David Malcolm <dmalcolm@redhat.com>
15080
15081 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
15082 "insn" from rtx to rtx_insn *.
15083 * sched-int.h (deps_start_bb): Likewise for 2nd param.
15084
15085 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
15086 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15087 Anna Tikhonova <anna.tikhonova@intel.com>
15088 Ilya Tocar <ilya.tocar@intel.com>
15089 Andrey Turetskiy <andrey.turetskiy@intel.com>
15090 Ilya Verbin <ilya.verbin@intel.com>
15091 Kirill Yukhin <kirill.yukhin@intel.com>
15092 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15093
15094 * config/i386/sse.md
15095 (define_insn "vcvtph2ps<mask_name>"): Add masking.
15096 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
15097 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
15098 (define_expand "vcvtps2ph_mask"): New.
15099 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
15100 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
15101 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
15102
15103 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
15104 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15105 Anna Tikhonova <anna.tikhonova@intel.com>
15106 Ilya Tocar <ilya.tocar@intel.com>
15107 Andrey Turetskiy <andrey.turetskiy@intel.com>
15108 Ilya Verbin <ilya.verbin@intel.com>
15109 Kirill Yukhin <kirill.yukhin@intel.com>
15110 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15111
15112 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
15113 New.
15114 (define_mode_iterator VI24_AVX512BW_1): Ditto.
15115 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
15116 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
15117 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
15118 also for TARGET_AVX512VL.
15119 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
15120
15121 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
15122
15123 * doc/install.texi (Options specification): add
15124 --disable-libsanitizer item.
15125
15126 2014-09-14 James Clarke <jrtc27@jrtc27.com>
15127 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15128
15129 PR target/61407
15130 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
15131 and above.
15132 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
15133 kernel version check to avoid incrementing it after every major OS X
15134 release.
15135 (darwin_default_min_version): Avoid static memory buffer.
15136
15137 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
15138
15139 * tree.c (need_assembler_name_p): Store C++ type mangling only
15140 for aggregates.
15141
15142 2014-09-13 Marek Polacek <polacek@redhat.com>
15143
15144 * tree.c (protected_set_expr_location): Don't check whether T is
15145 non-null here.
15146
15147 2014-09-12 DJ Delorie <dj@redhat.com>
15148
15149 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
15150 (extend_and_shift1_hipsi2): Likewise.
15151 (extend_and_shift2_hipsi2): Likewise.
15152
15153 2014-09-12 David Malcolm <dmalcolm@redhat.com>
15154
15155 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
15156 with NULL when dealing with an insn.
15157 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
15158 from rtx to rtx_insn *.
15159 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
15160 const_rtx to const rtx_insn *.
15161 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
15162
15163 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
15164
15165 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
15166 assert.
15167
15168 2014-09-12 Joseph Myers <joseph@codesourcery.com>
15169
15170 * target.def (libgcc_floating_mode_supported_p): New hook.
15171 * targhooks.c (default_libgcc_floating_mode_supported_p): New
15172 function.
15173 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
15174 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
15175 (LIBGCC2_HAS_TF_MODE): Remove.
15176 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
15177 * doc/tm.texi: Regenerate.
15178 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
15179 machine mode.
15180 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
15181 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
15182 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
15183 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
15184 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15185 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
15186 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
15187 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
15188 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
15189 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
15190 function.
15191 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
15192 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15193 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15194 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15195 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15196 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15197 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15198 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
15199 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
15200 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
15201 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
15202 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
15203 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
15204 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
15205 Remove.
15206 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
15207 New macro.
15208 (ia64_libgcc_floating_mode_supported_p): New function.
15209 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
15210 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
15211 (IA64_NO_LIBGCC_TFMODE): Define.
15212 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
15213 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
15214 macro.
15215 (pdp11_scalar_mode_supported_p): New function.
15216 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
15217 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
15218
15219 2014-09-12 Richard Biener <rguenther@suse.de>
15220
15221 PR middle-end/63237
15222 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
15223
15224 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
15225
15226 * tree.c (integer_each_onep): New function.
15227 * tree.h (integer_each_onep): Declare it.
15228 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
15229 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
15230 (X & 1) == 0 for vector and complex.
15231
15232 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
15233
15234 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
15235 for A57.
15236 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
15237 cost to spilling from integer to FP registers.
15238
15239 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
15240
15241 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
15242 move handling.
15243 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
15244 are now handled correctly.
15245
15246 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
15247
15248 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
15249 handling of CALLER_SAVE_REGS and POINTER_REGS.
15250
15251 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
15252
15253 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
15254 the number of hard registers.
15255
15256 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
15257 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15258 Anna Tikhonova <anna.tikhonova@intel.com>
15259 Ilya Tocar <ilya.tocar@intel.com>
15260 Andrey Turetskiy <andrey.turetskiy@intel.com>
15261 Ilya Verbin <ilya.verbin@intel.com>
15262 Kirill Yukhin <kirill.yukhin@intel.com>
15263 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15264
15265 * config/i386/sse.md
15266 (define_mode_iterator VI48_AVX512VL): New.
15267 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
15268 "avx512f_vternlog<mode>_maskz" and update mode iterator.
15269 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
15270 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
15271 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
15272 "avx512f_vternlog<mode>_mask" and update mode iterator.
15273 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
15274 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
15275 iterator.
15276 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
15277 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
15278 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
15279 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
15280 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
15281 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
15282
15283 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
15284 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15285 Anna Tikhonova <anna.tikhonova@intel.com>
15286 Ilya Tocar <ilya.tocar@intel.com>
15287 Andrey Turetskiy <andrey.turetskiy@intel.com>
15288 Ilya Verbin <ilya.verbin@intel.com>
15289 Kirill Yukhin <kirill.yukhin@intel.com>
15290 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15291
15292 * config/i386/sse.md (VI128_256): Delete.
15293 (define_mode_iterator VI124_256): New.
15294 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
15295 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
15296 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
15297 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
15298 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
15299 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
15300 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
15301 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
15302 iterator.
15303 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
15304 in presence of AVX-512.
15305
15306 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
15307 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15308 Anna Tikhonova <anna.tikhonova@intel.com>
15309 Ilya Tocar <ilya.tocar@intel.com>
15310 Andrey Turetskiy <andrey.turetskiy@intel.com>
15311 Ilya Verbin <ilya.verbin@intel.com>
15312 Kirill Yukhin <kirill.yukhin@intel.com>
15313 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15314
15315 * config/i386/sse.md
15316 (define_expand "<avx512>_gathersi<mode>"): Rename from
15317 "avx512f_gathersi<mode>".
15318 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
15319 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
15320 (define_expand "<avx512>_gatherdi<mode>"): Rename from
15321 "avx512f_gatherdi<mode>".
15322 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
15323 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
15324 wide versions.
15325 (define_expand "<avx512>_scattersi<mode>"): Rename from
15326 "avx512f_scattersi<mode>".
15327 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
15328 (define_expand "<avx512>_scatterdi<mode>"): Rename from
15329 "avx512f_scatterdi<mode>".
15330 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
15331
15332 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
15333
15334 * ira.h (ira_finish_once): Delete.
15335 * ira-int.h (target_ira_int::~target_ira_int): Declare.
15336 (target_ira_int::free_ira_costs): Likewise.
15337 (target_ira_int::free_register_move_costs): Likewise.
15338 (ira_finish_costs_once): Delete.
15339 * ira.c (free_register_move_costs): Replace with...
15340 (target_ira_int::free_register_move_costs): ...this new function.
15341 (target_ira_int::~target_ira_int): Define.
15342 (ira_init): Call free_register_move_costs as a member function rather
15343 than a global function.
15344 (ira_finish_once): Delete.
15345 * ira-costs.c (free_ira_costs): Replace with...
15346 (target_ira_int::free_ira_costs): ...this new function.
15347 (ira_init_costs): Call free_ira_costs as a member function rather
15348 than a global function.
15349 (ira_finish_costs_once): Delete.
15350 * target-globals.c (target_globals::~target_globals): Call the
15351 target_ira_int destructor.
15352 * toplev.c: Include lra.h.
15353 (finalize): Call lra_finish_once rather than ira_finish_once.
15354
15355 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
15356
15357 * common.opt (flto-odr-type-merging): New flag.
15358 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
15359 (types_same_for_odr): Likewise.
15360 (odr_subtypes_equivalent_p): Likewise.
15361 (add_type_duplicate): Do not walk type variants.
15362 (register_odr_type): New function.
15363 * ipa-utils.h (register_odr_type): Declare.
15364 (odr_type_p): New function.
15365 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
15366 TYPE_DECLs
15367 * doc/invoke.texi (-flto-odr-type-merging): Document.
15368 * tree.c (need_assembler_name_p): Compute ODR names when asked
15369 for it.
15370 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
15371
15372 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
15373
15374 PR target/63228
15375 * config/i386/i386.c (ix86_option_override_internal): Also turn
15376 off OPTION_MASK_ABI_X32 for -m16.
15377
15378 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
15379
15380 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
15381 GPR instead of P.
15382
15383 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
15384
15385 PR target/58757
15386 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
15387 Directly forward to __*_DENORM_MIN__.
15388
15389 2014-09-11 David Malcolm <dmalcolm@redhat.com>
15390
15391 * rtl.h (LABEL_REF_LABEL): New macro.
15392
15393 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
15394 of XEXP (, 0), where we know that we have a LABEL_REF.
15395 * cfgbuild.c (make_edges): Likewise.
15396 (purge_dead_tablejump_edges): Likewise.
15397 * cfgexpand.c (convert_debug_memory_address): Likewise.
15398 * cfgrtl.c (patch_jump_insn): Likewise.
15399 * combine.c (distribute_notes): Likewise.
15400 * cse.c (hash_rtx_cb): Likewise.
15401 (exp_equiv_p): Likewise.
15402 (fold_rtx): Likewise.
15403 (check_for_label_ref): Likewise.
15404 * cselib.c (rtx_equal_for_cselib_1): Likewise.
15405 (cselib_hash_rtx): Likewise.
15406 * emit-rtl.c (mark_label_nuses): Likewise.
15407 * explow.c (convert_memory_address_addr_space): Likewise.
15408 * final.c (output_asm_label): Likewise.
15409 (output_addr_const): Likewise.
15410 * gcse.c (add_label_notes): Likewise.
15411 * genconfig.c (walk_insn_part): Likewise.
15412 * genrecog.c (validate_pattern): Likewise.
15413 * ifcvt.c (cond_exec_get_condition): Likewise.
15414 (noce_emit_store_flag): Likewise.
15415 (noce_get_alt_condition): Likewise.
15416 (noce_get_condition): Likewise.
15417 * jump.c (maybe_propagate_label_ref): Likewise.
15418 (mark_jump_label_1): Likewise.
15419 (redirect_exp_1): Likewise.
15420 (rtx_renumbered_equal_p): Likewise.
15421 * lra-constraints.c (operands_match_p): Likewise.
15422 * reload.c (operands_match_p): Likewise.
15423 (find_reloads): Likewise.
15424 * reload1.c (set_label_offsets): Likewise.
15425 * reorg.c (get_branch_condition): Likewise.
15426 * rtl.c (rtx_equal_p_cb): Likewise.
15427 (rtx_equal_p): Likewise.
15428 * rtlanal.c (reg_mentioned_p): Likewise.
15429 (rtx_referenced_p): Likewise.
15430 (get_condition): Likewise.
15431 * sched-vis.c (print_value): Likewise.
15432 * varasm.c (const_hash_1): Likewise.
15433 (compare_constant): Likewise.
15434 (const_rtx_hash_1): Likewise.
15435 (output_constant_pool_1): Likewise.
15436
15437 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
15438
15439 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
15440 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
15441 instead of minus.
15442 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
15443 cr6_test_for_lt_reverse): Ditto.
15444
15445 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
15446
15447 PR c++/61489
15448 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
15449
15450 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
15451
15452 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
15453 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
15454 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
15455 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
15456 Delete.
15457
15458 (aarch64_fold_builtin): Remove all reinterpret cases.
15459
15460 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
15461
15462 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
15463
15464 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
15465 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
15466 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
15467 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
15468 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
15469 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
15470 aarch64_reinterpretv2df<mode>): Delete.
15471
15472 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
15473
15474 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
15475 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
15476 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
15477 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
15478 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
15479 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
15480 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
15481 vreinterpret_u32_f64): Use cast.
15482
15483 * config/aarch64/iterators.md (VD_RE): Delete.
15484
15485 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
15486
15487 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
15488 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
15489 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
15490 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
15491 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
15492 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
15493 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
15494 Replace inline assembler with __aarch64_vset_lane_any.
15495
15496 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
15497
15498 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
15499 types.
15500 (vmull_high_lane_s32): Likewise.
15501 (vmull_high_lane_u16): Likewise.
15502 (vmull_high_lane_u32): Likewise.
15503
15504 2014-09-11 Jason Merrill <jason@redhat.com>
15505
15506 PR c++/58678
15507 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
15508
15509 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
15510
15511 PR target/63223
15512 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
15513 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
15514 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
15515
15516 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15517 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15518 Anna Tikhonova <anna.tikhonova@intel.com>
15519 Ilya Tocar <ilya.tocar@intel.com>
15520 Andrey Turetskiy <andrey.turetskiy@intel.com>
15521 Ilya Verbin <ilya.verbin@intel.com>
15522 Kirill Yukhin <kirill.yukhin@intel.com>
15523 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15524
15525 * config/i386/sse.md
15526 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
15527 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
15528 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
15529 New.
15530 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
15531 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
15532 iterator.
15533 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
15534 New.
15535 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
15536 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
15537 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
15538 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
15539 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
15540 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
15541 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
15542 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
15543 iterator.
15544 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
15545 New.
15546 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
15547 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
15548 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
15549
15550 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
15551
15552 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
15553 to access removed nodes.
15554
15555 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
15556
15557 PR tree-optimization/63186
15558 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
15559 (mark_nonssa_use): Likewise.
15560 (verify_non_ssa_vars): Verify all header blocks for label
15561 definitions.
15562
15563 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15564 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15565 Anna Tikhonova <anna.tikhonova@intel.com>
15566 Ilya Tocar <ilya.tocar@intel.com>
15567 Andrey Turetskiy <andrey.turetskiy@intel.com>
15568 Ilya Verbin <ilya.verbin@intel.com>
15569 Kirill Yukhin <kirill.yukhin@intel.com>
15570 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15571
15572 * config/i386/sse.md
15573 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
15574 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
15575 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
15576 "<avx2_avx512f>_permvar<mode><mask_name>".
15577 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
15578 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
15579 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
15580 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
15581 Ditto.
15582 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
15583 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
15584 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
15585 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
15586
15587 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
15588
15589 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
15590 V2DF, V4SF, DF, and DI modes.
15591 (vsx_fmav2df2): Likewise.
15592 (vsx_float_fix_<mode>2): Likewise.
15593 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
15594
15595 2014-09-10 Xinliang David Li <davidxl@google.com>
15596
15597 PR target/63209
15598 * config/arm/arm.md (movcond_addsi): Handle case where source
15599 and target operands are the same.
15600
15601 2014-09-10 David Malcolm <dmalcolm@redhat.com>
15602
15603 * final.c (this_is_asm_operands): Strengthen this variable from
15604 rtx to const rtx_insn *.
15605 * output.h (this_is_asm_operands): Likewise.
15606 * rtl-error.c (location_for_asm): Strengthen param "insn" from
15607 const_rtx to const rtx_insn *.
15608 (diagnostic_for_asm): Likewise.
15609 * rtl-error.h (error_for_asm): Likewise.
15610 (warning_for_asm): Likewise.
15611
15612 2014-09-10 David Malcolm <dmalcolm@redhat.com>
15613
15614 * genextract.c (print_header): When writing out insn_extract to
15615 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
15616 * recog.h (insn_extract): Strengthen the param from rtx to
15617 rtx_insn *.
15618
15619 2014-09-10 Mike Stump <mikestump@comcast.net>
15620
15621 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
15622 8.6.1.
15623
15624 2014-09-10 Martin Jambor <mjambor@suse.cz>
15625
15626 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
15627 (analyze): Do not set analyze flag if expand_thunk returns false;.
15628 (create_wrapper): Likewise.
15629 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
15630
15631 2014-09-10 Martin Jambor <mjambor@suse.cz>
15632
15633 PR ipa/61654
15634 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
15635 new decl properly. Analyze the new thunk if it is expanded.
15636
15637 2014-09-10 Andreas Schwab <schwab@suse.de>
15638
15639 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
15640 [USED_FOR_TARGET]: Define.
15641
15642 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
15643
15644 * config/mips/mips.c (mips_secondary_reload_class): Handle
15645 regno < 0 case.
15646
15647 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
15648
15649 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
15650 assignment.
15651
15652 2014-09-10 Jakub Jelinek <jakub@redhat.com>
15653
15654 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
15655 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
15656 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
15657 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
15658 flag_delete_null_pointer_checks for them.
15659 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
15660 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
15661 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
15662 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
15663 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
15664 stmt's iterator.
15665 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
15666 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
15667 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
15668 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
15669 * doc/invoke.texi (-fsanitize=nonnull-attribute,
15670 -fsanitize=returns-nonnull-attribute): Document.
15671
15672 * ubsan.h (struct ubsan_mismatch_data): Removed.
15673 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
15674 * ubsan.c (ubsan_source_location): For unknown locations,
15675 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
15676 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
15677 Allow more than one location and arbitrary extra arguments passed
15678 in ... instead of through MISMATCH pointer.
15679 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
15680 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
15681 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
15682 callers.
15683
15684 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
15685 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15686 Anna Tikhonova <anna.tikhonova@intel.com>
15687 Ilya Tocar <ilya.tocar@intel.com>
15688 Andrey Turetskiy <andrey.turetskiy@intel.com>
15689 Ilya Verbin <ilya.verbin@intel.com>
15690 Kirill Yukhin <kirill.yukhin@intel.com>
15691 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15692
15693 * config/i386/sse.md
15694 (define_mode_iterator VI48F): New.
15695 (define_insn "<avx512>_compress<mode>_mask"): Rename from
15696 "avx512f_compress<mode>_mask" and update mode iterator.
15697 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
15698 "avx512f_compressstore<mode>_mask" and update mode iterator.
15699 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
15700 "avx512f_expand<mode>_maskz" and update mode iterator.
15701 (define_insn "<avx512>_expand<mode>_mask"): Rename from
15702 "avx512f_expand<mode>_mask" and update mode iterator.
15703
15704 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
15705 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15706 Anna Tikhonova <anna.tikhonova@intel.com>
15707 Ilya Tocar <ilya.tocar@intel.com>
15708 Andrey Turetskiy <andrey.turetskiy@intel.com>
15709 Ilya Verbin <ilya.verbin@intel.com>
15710 Kirill Yukhin <kirill.yukhin@intel.com>
15711 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15712
15713 * config/i386/i386.c
15714 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
15715 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
15716 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
15717 avx512dq_rangepv4sf_mask.
15718 * config/i386/sse.md
15719 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
15720 UNSPEC_RANGE.
15721 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
15722 (define_insn "reduces<mode>"): Ditto.
15723 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
15724 Ditto.
15725 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
15726 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
15727 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
15728
15729 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
15730 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15731 Anna Tikhonova <anna.tikhonova@intel.com>
15732 Ilya Tocar <ilya.tocar@intel.com>
15733 Andrey Turetskiy <andrey.turetskiy@intel.com>
15734 Ilya Verbin <ilya.verbin@intel.com>
15735 Kirill Yukhin <kirill.yukhin@intel.com>
15736 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15737
15738 * config/i386/i386.c
15739 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
15740 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
15741 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
15742 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
15743 avx512vl_getmantv2df_mask.
15744 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
15745 avx512f_vgetmantv4sf_round.
15746 * config/i386/sse.md
15747 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
15748 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
15749 mode iterator.
15750 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
15751 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
15752 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
15753 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
15754 iterator..
15755 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
15756 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
15757 update mode iterator.
15758 (define_expand
15759 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
15760 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
15761 mode iterator.
15762 (define_insn
15763 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
15764 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
15765 update mode iterator.
15766 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
15767 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
15768 iterator..
15769 (define_insn
15770 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
15771 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
15772 mode iterator..
15773 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
15774 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
15775 update mode iterator.
15776 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
15777 "avx512f_getmant<mode><round_saeonly_name>".
15778
15779 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
15780
15781 PR ipa/63166
15782 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
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/sse.md (define_mode_iterator VF_AVX512VL): New.
15794 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
15795 (define_mode_iterator FMAMODE_AVX512): New.
15796 (define_mode_iterator FMAMODE): Remove conditions.
15797 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
15798 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
15799 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
15800 mode iterator.
15801 (define_mode_iterator FMAMODE_NOVF512): Remove.
15802 (define_insn "*fma_fmadd_<mode>"): Rename from
15803 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
15804 FMAMODE mode iterator.
15805 (define_mode_iterator VF_SF_AVX512VL): New.
15806 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
15807 Use VF_SF_AVX512VL mode iterator.
15808 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
15809 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
15810 iterator.
15811 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
15812 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
15813 iterator.
15814 (define_insn "*fma_fmsub_<mode>"): Rename from
15815 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
15816 FMAMODE mode iterator.
15817 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
15818 Use VF_SF_AVX512VL mode iterator.
15819 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
15820 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
15821 iterator.
15822 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
15823 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
15824 iterator.
15825 (define_insn "*fma_fnmadd_<mode>"): Rename from
15826 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
15827 use FMAMODE mode iterator.
15828 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
15829 Use VF_SF_AVX512VL mode iterator.
15830 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
15831 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
15832 iterator.
15833 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
15834 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
15835 iterator.
15836 (define_insn "*fma_fnmsub_<mode>"): Rename from
15837 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
15838 FMAMODE mode iterator.
15839 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
15840 Use VF_SF_AVX512VL mode iterator.
15841 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
15842 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
15843 iterator.
15844 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
15845 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
15846 iterator.
15847 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
15848 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
15849 use VF_AVX512VL mode iterator.
15850 (define_insn "*fma_fmaddsub_<mode>"): Rename from
15851 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
15852 remove subst usage.
15853 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
15854 Use VF_SF_AVX512VL mode iterator.
15855 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
15856 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
15857 iterator.
15858 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
15859 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
15860 iterator.
15861 (define_insn "*fma_fmsubadd_<mode>"): Rename from
15862 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
15863 remove usage of subst.
15864 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
15865 Use VF_SF_AVX512VL mode iterator.
15866 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
15867 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
15868 iterator.
15869 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
15870 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
15871 iterator.
15872
15873 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
15874
15875 Revert r213751:
15876 * calls.c (precompute_arguments): Check
15877 promoted_for_signed_and_unsigned_p and set the promoted mode.
15878 (promoted_for_signed_and_unsigned_p): New function.
15879 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
15880 and set the promoted mode.
15881 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
15882 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
15883 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
15884
15885 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
15886
15887 * opth-gen.awk: Generate mapping from cpp message reasons to the
15888 options that enable them.
15889 * doc/options.texi (CppReason): Document.
15890
15891 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
15892
15893 * doc/invoke.texi (Wnormalized=): Update.
15894
15895 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
15896
15897 PR target/63195
15898 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
15899 operands. Split off the constant operand alternative to ...
15900 (*bool<mode>3_imm): New.
15901
15902 2014-09-09 David Malcolm <dmalcolm@redhat.com>
15903
15904 * rtl.h (single_set_2): Strengthen first param from const_rtx to
15905 const rtx_insn *, and move prototype to above...
15906 (single_set): ...this. Convert this from a macro to an inline
15907 function, enforcing the requirement that the param is a const
15908 rtx_insn *.
15909 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
15910
15911 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
15912 Strengthen both params from rtx to rtx_insn *.
15913 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
15914 Likewise; introduce locals "producer_set", "consumer_set", using
15915 them in place of "producer" and "consumer" when dealing with SET
15916 rather than insn.
15917 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
15918 when invoking single_set in region guarded by INSN_P.
15919 (avr_out_bitop): Likewise.
15920 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
15921 region guarded by GET_CODE check, using methods to strengthen
15922 local "this_insn" from rtx to rtx_insn *, and for clarity.
15923 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
15924 Strengthen local "insn" from rtx to rtx_insn *.
15925 (define_insn_and_split "xload<mode>_A"): Likewise.
15926 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
15927 "insn".
15928 (find_load): Likewise for return type.
15929 (workaround_speculation): Likewise for both locals named
15930 "load_insn".
15931 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
15932 local "cc0_user".
15933 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
15934 for local "prev".
15935 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
15936 param 2.
15937 * config/h8300/h8300.c (notice_update_cc): Likewise.
15938 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
15939 "insn" and "dep_insn".
15940 (exact_store_load_dependency): Likewise for both params.
15941 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
15942 since this now clashes with inline function. Instead, delay
15943 calling single_set until the point where its needed, and then
15944 assign the result to "compare_set" and rework the conditional that
15945 follows.
15946 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
15947 local "last" from rtx to rtx_insn *.
15948 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
15949 second param.
15950 (mips_store_data_bypass_p): Likewise for both params.
15951 * config/mips/mips.c (mips_load_store_insns): Likewise for second
15952 param.
15953 (mips_store_data_bypass_p): Likewise for both params.
15954 (mips_orphaned_high_part_p): Likewise for param "insn".
15955 * config/mn10300/mn10300.c (extract_bundle): Likewise.
15956 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
15957 Introduce local rtx "insn2_pat".
15958 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
15959 "ninsn".
15960 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
15961 Introduce local rtx "set", using it in place of "insn" for the
15962 result of single_set. This appears to fix a bug, since the call
15963 to find_regno_note on a SET does nothing.
15964 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
15965 params from rtx to rtx_insn *.
15966 (set_to_load_agen): Likewise.
15967 * config/s390/s390.c (s390_label_align): Likewise for local
15968 "prev_insn". Introduce new rtx locals "set" and "src", using
15969 them in place of "prev_insn" for the results of single_set
15970 and SET_SRC respectively.
15971 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
15972 Introduce new rtx local "set" using in place of "jump" for the
15973 result of single_set. Use SET_SRC (set) rather than plain
15974 XEXP (set, 1).
15975 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
15976 rtx to rtx_insn *.
15977 (noncall_uses_reg): Likewise.
15978 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
15979 guarded by GET_CODE check, using its methods for clarity, and to
15980 enable strengthening local "this_insn" from rtx to rtx_insn *.
15981 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
15982 "insn" from rtx to rtx_insn *.
15983 (define_expand "umulhisi3"): Likewise.
15984 (define_expand "smulsi3_highpart"): Likewise.
15985 (define_expand "umulsi3_highpart"): Likewise.
15986 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
15987 local "after". Replace GET_CODE check with a dyn_cast,
15988 introducing new local rtx_sequence * "seq", using insn method for
15989 typesafety.
15990
15991 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
15992 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
15993 place of "insn" once we're dealing with patterns rather than the
15994 input insn.
15995 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
15996 (scan_trace): Likewise for local "elt", updating lookups within
15997 sequence to use insn method rather than element method.
15998 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
15999 to rtx_insn *.
16000 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
16001 * ifcvt.c (noce_try_abs): Likewise for local "insn".
16002 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
16003 invoking single_set.
16004 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
16005 "insn" from rtx to rtx_insn *.
16006 (skip_usage_debug_insns): Likewise for return type, adding a
16007 checked cast.
16008 (check_secondary_memory_needed_p): Likewise for local "insn".
16009 (inherit_reload_reg): Likewise.
16010 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
16011 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
16012 checked casts.
16013 (store_data_bypass_p): Likewise for both params.
16014 (if_test_bypass_p): Likewise.
16015 * recog.h (store_data_bypass_p): Likewise for both params.
16016 (if_test_bypass_p): Likewise.
16017 * reload.c (find_equiv_reg): Likewise for local "where".
16018 * reorg.c (delete_jump): Likewise for param "insn".
16019 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
16020 to const rtx_insn *.
16021 * store-motion.c (replace_store_insn): Likewise for param "del".
16022 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
16023 and use its methods for clarity, and to strengthen local "del"
16024 from rtx to rtx_insn *.
16025 (build_store_vectors): Use insn method of "st" when calling
16026 replace_store_insn for typesafety and clarity.
16027
16028 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16029
16030 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
16031 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
16032 on how to make it legal in future.
16033
16034 2014-09-09 David Malcolm <dmalcolm@redhat.com>
16035
16036 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
16037 to rtx_insn *.
16038 (restinsn): Likewise.
16039 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
16040 Likewise for param.
16041 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
16042 Likewise.
16043 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
16044 first param.
16045 (arc_hazard): Likewise for both params.
16046 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
16047 checked casts to rtx_sequence * and uses of the insn method for
16048 type-safety.
16049 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
16050 (arc_adjust_insn_length): Likewise for param "insn".
16051 (struct insn_length_parameters_s): Likewise for first param of
16052 "get_variants" callback field.
16053 (arc_get_insn_variants): Likewise for first param and local
16054 "inner". Replace a check of GET_CODE with a dyn_cast to
16055 rtx_sequence *, using methods for type-safety and clarity.
16056 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
16057 rtx_sequence * and uses of the insn method for type-safety when
16058 invoking arc_adjust_insn_length.
16059 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
16060 for param.
16061 (arm_address_offset_is_imm): Likewise.
16062 (struct tune_params): Likewise for params 1 and 3 of the
16063 "sched_adjust_cost" callback field.
16064 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
16065 params 1 and 3 ("insn" and "dep").
16066 (xscale_sched_adjust_cost): Likewise.
16067 (fa726te_sched_adjust_cost): Likewise.
16068 (cortexa7_older_only): Likewise for param "insn".
16069 (cortexa7_younger): Likewise.
16070 (arm_attr_length_move_neon): Likewise.
16071 (arm_address_offset_is_imm): Likewise.
16072 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
16073 * config/avr/avr.c (avr_notice_update_cc): Likewise.
16074 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
16075 (workaround_speculation): Likewise for local "last_condjump".
16076 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
16077 (shadow_or_blockage_p): Likewise.
16078 (get_unit_reqs): Likewise.
16079 (get_unit_operand_masks): Likewise.
16080 (c6x_registers_update): Likewise.
16081 (returning_call_p): Likewise.
16082 (can_use_callp): Likewise.
16083 (convert_to_callp): Likewise.
16084 (find_last_same_clock): Likwise for local "t".
16085 (reorg_split_calls): Likewise for local "shadow".
16086 (hwloop_pattern_reg): Likewise for param "insn".
16087 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
16088 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
16089 (frv_extract_membar): Likewise.
16090 (frv_optimize_membar_local): Strengthen param "last_membar" from
16091 rtx * to rtx_insn **.
16092 (frv_optimize_membar_global): Strengthen param "membar" from rtx
16093 to rtx_insn *.
16094 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
16095 to rtx_insn **.
16096 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
16097 both params from rtx to rtx_insn *.
16098 (ia64_ld_address_bypass_p): Likewise.
16099 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
16100 "insn".
16101 (ia64_safe_type): Likewise.
16102 (group_barrier_needed): Likewise.
16103 (safe_group_barrier_needed): Likewise.
16104 (ia64_single_set): Likewise.
16105 (is_load_p): Likewise.
16106 (record_memory_reference): Likewise.
16107 (get_mode_no_for_insn): Likewise.
16108 (important_for_bundling_p): Likewise.
16109 (unknown_for_bundling_p): Likewise.
16110 (ia64_st_address_bypass_p): Likewise for both params.
16111 (ia64_ld_address_bypass_p): Likewise.
16112 (expand_vselect): Introduce new local rtx_insn * "insn", using it
16113 in place of rtx "x" after the emit_insn call.
16114 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
16115 Strengthen param from rtx to rtx_insn *.
16116 (ix86_agi_dependent): Likewise for both params.
16117 (ix86_attr_length_immediate_default): Likewise for param 1.
16118 (ix86_attr_length_address_default): Likewise for param.
16119 (ix86_attr_length_vex_default): Likewise for param 1.
16120 * config/i386/i386.c (ix86_attr_length_immediate_default):
16121 Likewise for param "insn".
16122 (ix86_attr_length_address_default): Likewise.
16123 (ix86_attr_length_vex_default): Likewise.
16124 (ix86_agi_dependent): Likewise for both params.
16125 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
16126 (vselect_insn): Likewise for this variable.
16127 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
16128 for param 1.
16129 (m68k_sched_attr_opy_type): Likewise.
16130 * config/m68k/m68k.c (sched_get_operand): Likewise.
16131 (sched_attr_op_type): Likewise.
16132 (m68k_sched_attr_opx_type): Likewise.
16133 (m68k_sched_attr_opy_type): Likewise.
16134 (sched_get_reg_operand): Likewise.
16135 (sched_get_mem_operand): Likewise.
16136 (m68k_sched_address_bypass_p): Likewise for both params.
16137 (sched_get_indexed_address_scale): Likewise.
16138 (m68k_sched_indexed_address_bypass_p): Likewise.
16139 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
16140 (m68k_sched_indexed_address_bypass_p): Likewise.
16141 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
16142 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
16143 removing another.
16144 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
16145 params from rtx to rtx_insn *.
16146 (mips_fmadd_bypass): Likewise.
16147 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
16148 (mips_linked_madd_p): Likewise.
16149 (mips_macc_chains_last_hilo): Likewise for this variable.
16150 (mips_macc_chains_record): Likewise for param.
16151 (vr4130_last_insn): Likewise for this variable.
16152 (vr4130_swap_insns_p): Likewise for both params.
16153 (mips_ls2_variable_issue): Likewise for param.
16154 (mips_need_noat_wrapper_p): Likewise for param "insn".
16155 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
16156 in place of "x" after the emit_insn.
16157 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
16158 params from rtx to rtx_insn *.
16159 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
16160 (pa_combine_instructions): Introduce local "par" for result of
16161 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
16162 to make_insn_raw.
16163 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
16164 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
16165 (rl78_alloc_physical_registers_op1): Likewise.
16166 (rl78_alloc_physical_registers_op2): Likewise.
16167 (rl78_alloc_physical_registers_ro1): Likewise.
16168 (rl78_alloc_physical_registers_cmp): Likewise.
16169 (rl78_alloc_physical_registers_umul): Likewise.
16170 (rl78_alloc_address_registers_macax): Likewise.
16171 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
16172 * config/s390/predicates.md (execute_operation): Likewise for
16173 local "insn".
16174 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
16175 params.
16176 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
16177 (addr_generation_dependency_p): Likewise for param "insn".
16178 (s390_agen_dep_p): Likewise for both params.
16179 (s390_fpload_toreg): Likewise for param "insn".
16180 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
16181 * config/sh/sh.c (sh_loop_align): Likewise for param and local
16182 "next".
16183 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
16184 * config/sh/sh_treg_combine.cc
16185 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
16186 and local "i".
16187 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
16188 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
16189 "and_insn", "load", "shift".
16190 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
16191 "insn".
16192 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
16193 for XEXP (note, 0) of the REG_CC_SETTER note.
16194 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
16195 rtx_insn *, eliminating a checked cast made redundant by this.
16196 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
16197 to rtx_insn *.
16198 * genattr.c (main): When writing out the prototype to
16199 const_num_delay_slots, strengthen the param from rtx to
16200 rtx_insn *.
16201 * genattrtab.c (write_const_num_delay_slots): Likewise when
16202 writing out the implementation of const_num_delay_slots.
16203 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
16204 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
16205 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
16206 favor of new rtx locals "src" and "set" and new local rtx_insn *
16207 "insn" and "seq".
16208 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
16209 to rtx_insn *.
16210 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
16211 locals "cond", "if_then_else", "set" and new rtx_insn * locals
16212 "insn" and "seq".
16213 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
16214 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
16215 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
16216 the top-level scope, replacing with new more tightly-scoped rtx
16217 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
16218 "new_insn", "copy_of_insn_b", and make local rtx "set" more
16219 tightly-scoped.
16220 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
16221 rtx_insn *.
16222 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
16223 "move_insn".
16224 (ira_setup_alts): Likewise for param "insn".
16225 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
16226 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
16227 and an rtx_insn *.
16228 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
16229 new more-tightly scoped rtx locals "add3_insn", "insn",
16230 "add2_insn" and rtx_insn * "move_insn".
16231 * postreload-gcse.c (eliminate_partially_redundant_load): Add
16232 checked cast on result of gen_move_insn when invoking
16233 extract_insn.
16234 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
16235 rtx_insn *.
16236 (verify_changes): Add a checked cast on "object" when invoking
16237 insn_invalid_p.
16238 (extract_insn_cached): Strengthen param "insn" from rtx to
16239 rtx_insn *.
16240 (extract_constrain_insn_cached): Likewise.
16241 (extract_insn): Likewise.
16242 * recog.h (insn_invalid_p): Likewise for param 1.
16243 (recog_memoized): Likewise for param.
16244 (extract_insn): Likewise.
16245 (extract_constrain_insn_cached): Likewise.
16246 (extract_insn_cached): Likewise.
16247 * reload.c (can_reload_into): Likewise for local "test_insn".
16248 * reload.h (cleanup_subreg_operands): Likewise for param.
16249 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
16250 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
16251 result of emit_insn. Remove a checked cast made redundant by this
16252 change.
16253 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
16254 rtx to rtx_insn *.
16255 * sel-sched.c (get_reg_class): Likewise.
16256
16257 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
16258 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16259
16260 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
16261 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
16262 Define.
16263 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
16264
16265 2014-09-09 David Malcolm <dmalcolm@redhat.com>
16266
16267 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
16268 const rtx_insn *, and from rtx to rtx_insn * for the other
16269 overloaded variant.
16270 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
16271 INSN_LOCATION, since we know INSN_P holds.
16272 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
16273 (insn_file): Likewise.
16274 (insn_scope): Likewise.
16275 (insn_location): Likewise.
16276
16277 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
16278 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
16279 for the result of gen_load_const_gp.
16280 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
16281 param from rtx to rtx_insn *.
16282 * config/rs6000/rs6000.c (output_call): Likewise.
16283 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
16284 introducing a checked cast to rtx_sequence * and use of the insn
16285 method.
16286 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
16287 from rtx to rtx_insn *.
16288 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
16289 (insn_line): Likewise.
16290 (insn_file): Likewise.
16291 (insn_location): Likewise.
16292 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
16293 from rtx to rtx_insn *.
16294 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
16295 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
16296 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
16297 via a checked cast.
16298 * reorg.c (relax_delay_slots): Strengthen locals named "after"
16299 from rtx to rtx_insn *; use methods of "pat" for type-safety.
16300
16301 2014-09-09 David Malcolm <dmalcolm@redhat.com>
16302
16303 * combine.c (try_combine): Eliminate checked cast on result of
16304 gen_rtx_INSN.
16305 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
16306 autogenerated one by strengthening the return type and params 2 and 3
16307 from rtx to rtx_insn *, and by naming the params.
16308 * gengenrtl.c (special_rtx): Add INSN to those that are
16309 special-cased.
16310 * rtl.h (gen_rtx_INSN): New prototype.
16311
16312 2014-09-09 David Malcolm <dmalcolm@redhat.com>
16313
16314 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
16315 than NULL_RTX.
16316 (no_equiv): Likewise.
16317 (update_equiv_regs): Likewise.
16318 (setup_reg_equiv): Likewise. Strengthen locals "elem",
16319 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
16320 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
16321 clarity.
16322 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
16323 from rtx to rtx_insn_list *.
16324 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
16325 rtx_insn_list * and use methods for clarity and typesafety.
16326 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
16327 "list".
16328 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
16329 redundant check on INSN_P (insns): this cannot hold, as "insns" is
16330 an INSN_LIST, not an insn.
16331 (reverse_equiv_p): Strengthen local "insns" from rtx to
16332 rtx_insn_list * and use methods for clarity and typesafety.
16333 (contains_reloaded_insn_p): Likewise for local "list".
16334
16335 2014-09-09 Jiong Wang <jiong.wang@arm.com>
16336
16337 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
16338 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
16339 (arm_builtin_vectorized_function): Likewise.
16340 * config/arm/arm_neon_builtins.def: New macro for copysignf.
16341 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
16342
16343 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
16344
16345 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
16346 * builtins.h (default_target_builtins): Likewise.
16347 * gcse.h (default_target_gcse): Likewise.
16348 * target-globals.h (target_globals): Add a destructor. Convert
16349 void-pointer fields back to their real type and change from
16350 GTY((atomic)) to GTY((skip)).
16351 (restore_target_globals): Remove casts accordingly.
16352 * target-globals.c (save_target_globals): Use XCNEW rather than
16353 ggc_internal_cleared_alloc to allocate non-GC structures.
16354 Use ggc_cleared_alloc to allocate the target_globals structure
16355 itself.
16356 (target_globals::~target_globals): Define.
16357
16358 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16359
16360 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
16361 mnemonic instead of fldmfdd.
16362 * config/arm/arm.c (vfp_output_fstmd): Rename to...
16363 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
16364 Output vpush when address register is SP.
16365 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
16366 (vfp_output_vstmd): ... This.
16367 * config/arm/vfp.md (push_multi_vfp): Update call to
16368 vfp_output_vstmd.
16369
16370 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16371
16372 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
16373
16374 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16375
16376 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
16377 (*sqrtdf2_vfp): Likewise.
16378 (*cmpsf_vfp): Likewise.
16379 (*cmpsf_trap_vfp): Likewise.
16380 (*cmpdf_vfp): Likewise.
16381 (*cmpdf_trap_vfp): Likewise.
16382
16383 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16384
16385 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
16386 (*truncdfsf2_vfp): Likewise.
16387 (*truncsisf2_vfp): Likewise.
16388 (*truncsidf2_vfp): Likewise.
16389 (fixuns_truncsfsi2): Likewise.
16390 (fixuns_truncdfsi2): Likewise.
16391 (*floatsisf2_vfp): Likewise.
16392 (*floatsidf2_vfp): Likewise.
16393 (floatunssisf2): Likewise.
16394 (floatunssidf2): Likewise.
16395
16396 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16397
16398 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
16399 (*muldf3_vfp): Likewise.
16400 (*mulsf3negsf_vfp): Likewise.
16401 (*muldf3negdf_vfp): Likewise.
16402 (*mulsf3addsf_vfp): Likewise.
16403 (*muldf3adddf_vfp): Likewise.
16404 (*mulsf3subsf_vfp): Likewise.
16405 (*muldf3subdf_vfp): Likewise.
16406 (*mulsf3negsfaddsf_vfp): Likewise.
16407 (*fmuldf3negdfadddf_vfp): Likewise.
16408 (*mulsf3negsfsubsf_vfp): Likewise.
16409 (*muldf3negdfsubdf_vfp): Likewise.
16410
16411 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16412
16413 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
16414 (*absdf2_vfp): Likewise.
16415 (*negsf2_vfp): Likewise.
16416 (*negdf2_vfp): Likewise.
16417 (*addsf3_vfp): Likewise.
16418 (*adddf3_vfp): Likewise.
16419 (*subsf3_vfp): Likewise.
16420 (*subdf3_vfp): Likewise.
16421 (*divsf3_vfp): Likewise.
16422 (*divdf3_vfp): Likewise.
16423
16424 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16425
16426 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
16427 multiple.
16428 (arm_print_operand): Don't convert real values to decimal
16429 representation in default case.
16430 (fp_immediate_constant): Delete.
16431 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
16432 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
16433 syntax.
16434 (*thumb2_movsi_vfp): Likewise.
16435 (*movdi_vfp): Likewise.
16436 (*movdi_vfp_cortexa8): Likewise.
16437 (*movhf_vfp_neon): Likewise.
16438 (*movhf_vfp): Likewise.
16439 (*movsf_vfp): Likewise.
16440 (*thumb2_movsf_vfp): Likewise.
16441 (*movdf_vfp): Likewise.
16442 (*thumb2_movdf_vfp): Likewise.
16443 (*movsfcc_vfp): Likewise.
16444 (*thumb2_movsfcc_vfp): Likewise.
16445 (*movdfcc_vfp): Likewise.
16446 (*thumb2_movdfcc_vfp): Likewise.
16447
16448 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
16449
16450 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
16451 (-mtune): Likewise.
16452 (-mcpu): Likewise.
16453
16454 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16455
16456 PR target/61749
16457 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
16458 Use qualifier_immediate for last operand. Rename to...
16459 (aarch64_types_ternop_lane_qualifiers): ... This.
16460 (TYPES_QUADOP): Rename to...
16461 (TYPES_TERNOP_LANE): ... This.
16462 (aarch64_simd_expand_args): Return const0_rtx when encountering user
16463 error. Change return of 0 to return of NULL_RTX.
16464 (aarch64_crc32_expand_builtin): Likewise.
16465 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
16466 ICE when expanding unknown builtin.
16467 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
16468 TERNOP_LANE qualifiers.
16469 (sqdmlsl_lane): Likewise.
16470 (sqdmlal_laneq): Likewise.
16471 (sqdmlsl_laneq): Likewise.
16472 (sqdmlal2_lane): Likewise.
16473 (sqdmlsl2_lane): Likewise.
16474 (sqdmlal2_laneq): Likewise.
16475 (sqdmlsl2_laneq): Likewise.
16476
16477 2014-09-09 Nick Clifton <nickc@redhat.com>
16478
16479 * doc/invoke.texi (Optimization Options): Add missing @gol to the
16480 end of a line.
16481 (S/390 and zSeries Options): Remove superfluous word from the
16482 description of the -mhotpatch option.
16483
16484 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
16485
16486 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
16487 * ira.c: #include "shrink-wrap.h"
16488 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
16489 * ifcvt.c: #include "shrink-wrap.h"
16490 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
16491
16492 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
16493
16494 * common/config/picochip/picochip-common.c: Remove.
16495 * config.gcc: Remove support for picochip.
16496 * config/picochip/constraints.md: Remove.
16497 * config/picochip/dfa_space.md: Remove.
16498 * config/picochip/dfa_speed.md: Remove.
16499 * config/picochip/picochip-protos.h: Remove.
16500 * config/picochip/picochip.c: Remove.
16501 * config/picochip/picochip.h: Remove.
16502 * config/picochip/picochip.md: Remove.
16503 * config/picochip/picochip.opt: Remove.
16504 * config/picochip/predicates.md: Remove.
16505 * config/picochip/t-picochip: Remove.
16506 * doc/md.texi: Don't document picochi.
16507
16508 2014-09-08 David Malcolm <dmalcolm@redhat.com>
16509
16510 * basic-block.h (control_flow_insn_p): Strengthen param from
16511 const_rtx to const rtx_insn *.
16512 * cfgbuild.c (control_flow_insn_p): Likewise.
16513
16514 2014-09-08 David Malcolm <dmalcolm@redhat.com>
16515
16516 * gcse.c (modify_mem_list): Strengthen this variable from
16517 vec<rtx> * to vec<rtx_insn *> *.
16518 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
16519 vec<rtx_insn *>.
16520 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
16521 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
16522 (record_last_mem_set_info): Strengthen param "insn" from rtx to
16523 rtx_insn *.
16524 (record_last_set_info): Likewise for local "last_set_insn".
16525
16526 2014-09-08 DJ Delorie <dj@redhat.com>
16527
16528 * doc/invoke.texi (MSP430 Options): Add -minrt.
16529
16530 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16531
16532 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
16533 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
16534 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
16535 handling SH_SPLAT.
16536 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
16537 of extracted lane.
16538 (adjust_splat): New function.
16539 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
16540 (dump_swap_insn_table): Add case for SH_SPLAT.
16541
16542 2014-09-08 Richard Biener <rguenther@suse.de>
16543
16544 PR ipa/63196
16545 * tree-inline.c (copy_loops): The source loop header should
16546 always be non-NULL.
16547 (tree_function_versioning): If loops need fixup after removing
16548 unreachable blocks fix them.
16549 * omp-low.c (simd_clone_adjust): Do not add incr block to
16550 loop under construction.
16551
16552 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
16553
16554 * config/aarch64/aarch64-builtins.c
16555 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
16556
16557 2014-09-08 Joseph Myers <joseph@codesourcery.com>
16558
16559 * config/i386/cygming.h (TF_SIZE): Remove.
16560 * config/i386/darwin.h (TF_SIZE): Remove.
16561 * config/i386/dragonfly.h (TF_SIZE): Remove.
16562 * config/i386/freebsd.h (TF_SIZE): Remove.
16563 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
16564 * config/i386/openbsdelf.h (TF_SIZE): Remove.
16565 * config/i386/sol2.h (TF_SIZE): Remove.
16566 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
16567 * config/ia64/linux.h (TF_SIZE): Remove.
16568 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
16569 * doc/tm.texi: Regenerate.
16570 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
16571
16572 2014-09-08 Joseph Myers <joseph@codesourcery.com>
16573
16574 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
16575 Remove.
16576 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
16577 Remove.
16578 * doc/tm.texi: Regenerate.
16579 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
16580 Poison.
16581 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
16582 * config/cris/cris.h (__make_dp): Remove.
16583
16584 2014-09-08 Richard Biener <rguenther@suse.de>
16585
16586 PR bootstrap/63204
16587 * cfgloop.c (mark_loop_for_removal): Track former header
16588 unconditionally.
16589 * cfgloop.h (struct loop): Add former_header member unconditionally.
16590 * loop-init.c (fix_loop_structure): Enable bogus loop removal
16591 diagnostic unconditionally.
16592
16593 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
16594
16595 PR target/63190
16596 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
16597 constraint for operand0 and remove write only modifier from operand3.
16598
16599 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
16600
16601 PR rtl-optimization/62208
16602 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
16603 rather than const0_rtx in eq/ne-xor simplifications.
16604
16605 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
16606
16607 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
16608 (arc_output_mi_thunk): Likewise.
16609
16610 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
16611 arguments to silence bogus warning.
16612
16613 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
16614
16615 PR middle-end/63171
16616 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
16617
16618 2014-09-06 Tom de Vries <tom@codesourcery.com>
16619
16620 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
16621 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
16622 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16623
16624 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
16625
16626 PR target/63188
16627 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
16628 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
16629
16630 2014-09-05 Easwaran Raman <eraman@google.com>
16631
16632 PR rtl-optimization/62146
16633 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
16634 hoisted instruction unconditional.
16635
16636 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
16637
16638 PR target/63187
16639 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
16640 Do not allow any_mask_operand for operands[2].
16641 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
16642
16643 2014-09-05 David Malcolm <dmalcolm@redhat.com>
16644
16645 * config/arc/arc.c (arc_print_operand): Use insn method of
16646 final_sequence for type-safety.
16647 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
16648 "insn" from rtx to rtx_insn *.
16649 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
16650 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
16651 Likewise for locals "branch", "label".
16652 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
16653 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
16654 (same_cmp_following_p): Likewise for locals "i2", "i3".
16655 * config/sh/sh_optimize_sett_clrt.cc
16656 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
16657 param "cbranch_insn".
16658 * function.c (convert_jumps_to_returns): Likewis for local "jump".
16659 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
16660 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
16661 const rtx_insn *.
16662 (condjump_p): Likewise.
16663 (condjump_in_parallel_p): Likewise.
16664 (pc_set): Likewise.
16665 (any_uncondjump_p): Likewise.
16666 (any_condjump_p): Likewise.
16667 (condjump_label): Likewise.
16668 (returnjump_p): Strengthen param "insn" from rtx to
16669 const rtx_insn *.
16670 (onlyjump_p): Strengthen param "insn" from const_rtx to
16671 const rtx_insn *.
16672 (jump_to_label_p): Likewise.
16673 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
16674 (invert_jump): Likewise.
16675 * reorg.c (simplejump_or_return_p): Add checked cast when calling
16676 simplejump_p.
16677 (get_jump_flags): Strengthen param "insn" from rtx to
16678 const rtx_insn *.
16679 (get_branch_condition): Likewise.
16680 (condition_dominates_p): Likewise.
16681 (make_return_insns): Move declaration of local "pat" earlier, to
16682 after we've handled NONJUMP_INSN_P and non-sequences, using its
16683 methods to simplify the code and for type-safety.
16684 * rtl.h (find_constant_src): Strengthen param from const_rtx to
16685 const rtx_insn *.
16686 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
16687 (condjump_p): Strengthen param from const_rtx to
16688 const rtx_insn *.
16689 (any_condjump_p): Likewise.
16690 (any_uncondjump_p): Likewise.
16691 (pc_set): Likewise.
16692 (condjump_label): Likewise.
16693 (simplejump_p): Likewise.
16694 (returnjump_p): Likewise.
16695 (onlyjump_p): Likewise.
16696 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
16697 (invert_jump): Likewise.
16698 (condjump_in_parallel_p): Strengthen param from const_rtx to
16699 const rtx_insn *.
16700 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
16701 to const rtx_insn *.
16702 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
16703 to const rtx_insn *.
16704 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
16705
16706 2014-09-05 David Malcolm <dmalcolm@redhat.com>
16707
16708 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
16709 above the conditional, and convert the check on GET_CODE to a
16710 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
16711 the conditional. Simplify the conditional by using methods of
16712 "trial_seq".
16713
16714 2014-09-05 David Malcolm <dmalcolm@redhat.com>
16715
16716 * haifa-sched.c (check_clobbered_conditions): Strengthen local
16717 "link" from rtx to rtx_insn_list *, and use its methods for
16718 clarity and type-safety.
16719 (toggle_cancelled_flags): Likewise.
16720 (restore_last_backtrack_point): Likewise.
16721 (queue_to_ready): Use insn method of "link" in one place.
16722 (schedule_block): Strengthen local "link" from rtx to
16723 rtx_insn_list *, and use its methods for clarity and type-safety.
16724
16725 2014-09-05 David Malcolm <dmalcolm@redhat.com>
16726
16727 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
16728 param "insn" from const_rtx to const rtx_insn *.
16729 (sched_get_reverse_condition_uncached): Likewise.
16730 (sched_get_condition_with_rev): Likewise.
16731 (sched_has_condition_p): Likewise.
16732 (sched_insns_conditions_mutex_p): Likewise for both params.
16733 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
16734 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
16735 (setup_insn_reg_uses): Move local "list" to be more tightly
16736 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
16737 its methods for clarity and type-safety.
16738 (sched_analyze_1): Strengthen local "pending" from rtx to
16739 rtx_insn_list *, and local "pending_mem" from rtx to
16740 rtx_expr_list *. Use methods of each for clarity and type-safety.
16741 (sched_analyze_2): Likewise.
16742 (sched_analyze_insn): Likewise.
16743
16744 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
16745 param from const_rtx to const rtx_insn *.
16746 (sched_insns_conditions_mutex_p): Likewise for both params.
16747 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
16748 param.
16749
16750 * system.h (CONST_CAST_RTX_INSN): New macro.
16751
16752 2014-09-05 David Malcolm <dmalcolm@redhat.com>
16753
16754 * recog.c (peep2_attempt): Strengthen return type from rtx to
16755 rtx_insn *.
16756 (peep2_update_life): Likewise for params "last", "prev", removing
16757 a checked cast made redundant by this.
16758 (peephole2_optimize): Likewise for local "last".
16759
16760 2014-09-05 David Malcolm <dmalcolm@redhat.com>
16761
16762 * basic-block.h (set_block_for_insn): Eliminate this macro in
16763 favor of...
16764 * rtl.h (set_block_for_insn): New inline function, imposing the
16765 requirement that the "insn" param is an rtx_insn *.
16766
16767 2014-09-05 David Malcolm <dmalcolm@redhat.com>
16768
16769 * caller-save.c (setup_save_areas): Strengthen local "insn" from
16770 rtx to rtx_insn *.
16771 * final.c (get_call_reg_set_usage): Likewise for first param,
16772 eliminating a checked cast.
16773 * regs.h (get_call_reg_set_usage): Likewise for first param.
16774 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
16775 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
16776 cast, replacing references to "x" with "call_insn" where
16777 appropriate.
16778 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
16779 rtx_insn *, adding a checked cast.
16780
16781 2014-09-05 David Malcolm <dmalcolm@redhat.com>
16782
16783 * output.h (final_scan_insn): Strengthen first param from rtx to
16784 rtx_insn *.
16785
16786 * final.c (final_scan_insn): Likewise, renaming it back from
16787 "uncast_insn" to "insn", eliminating the checked cast.
16788
16789 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
16790 "vec" with an rtx_sequence * "seq", taking a copy of
16791 "final_sequence", and using methods of "seq" for clarity, and for
16792 type-safety in the calls to final_scan_insn.
16793 * config/mips/mips.c (mips_output_conditional_branch): Use methods
16794 of "final_sequence" for clarity, and for type-safety in the call to
16795 final_scan_insn.
16796 * config/sh/sh.c (print_slot): Strengthen param from rtx to
16797 rtx_sequence * and rename from "insn" to "seq".
16798
16799 2014-09-05 David Malcolm <dmalcolm@redhat.com>
16800
16801 * jump.c (delete_related_insns): Introduce a new local "table" by
16802 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
16803 get_labels method of "table" to simplify access to the labels in
16804 the jump table.
16805
16806 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16807
16808 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
16809 f_minmaxs, f_minmaxd types.
16810
16811 2014-09-05 Richard Biener <rguenther@suse.de>
16812
16813 * cfgloop.c (mark_loop_for_removal): Record former header
16814 when ENABLE_CHECKING.
16815 * cfgloop.h (strut loop): Add former_header member when
16816 ENABLE_CHECKING.
16817 * loop-init.c (fix_loop_structure): Sanity check loops
16818 marked for removal if they re-appeared.
16819
16820 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
16821
16822 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
16823 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
16824
16825 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
16826 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
16827 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
16828 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
16829 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
16830 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
16831 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
16832 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
16833 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
16834 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
16835 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
16836 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
16837 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
16838 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
16839 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
16840 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
16841 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
16842 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
16843 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
16844 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
16845 with int{32,16,8}_t.
16846
16847 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
16848
16849 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
16850 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
16851 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
16852 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
16853 Remove temporary __asm__ and reimplement.
16854
16855 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
16856
16857 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
16858 handling cmge, cmgt, cmeq, cmtst.
16859
16860 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
16861 cmlt, cmgeu, cmgtu, cmtst): Remove.
16862
16863 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
16864 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
16865 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
16866 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
16867
16868 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
16869
16870 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
16871 TYPES_TST): Define.
16872 (aarch64_fold_builtin): Update pattern for cmtst.
16873
16874 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
16875 Declare.
16876
16877 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
16878
16879 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
16880 Switch operands, separate out more cases, refactor.
16881
16882 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
16883
16884 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
16885 argument; rename old version to...
16886 (aarch64_const_vec_all_same_in_range_p): ...this.
16887 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
16888
16889 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
16890
16891 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
16892
16893 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
16894 Remove qualifier_const_pointer, update comment.
16895
16896 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
16897
16898 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
16899
16900 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
16901
16902 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
16903 varargs with pointer parameter.
16904 (aarch64_simd_expand_builtin): pass pointer into previous.
16905
16906 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16907
16908 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
16909 alus_ext.
16910
16911 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
16912
16913 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
16914 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
16915 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
16916 Replace temporary asm with call to builtin.
16917 (vrbit_p8, vrbitq_p8): New functions.
16918
16919 2014-09-05 Richard Biener <rguenther@suse.de>
16920
16921 * cfgloop.c (mark_loop_for_removal): New function.
16922 * cfgloop.h (mark_loop_for_removal): Declare.
16923 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
16924 (merge_blocks): Likewise.
16925 (duplicate_block): Likewise.
16926 * except.c (sjlj_emit_dispatch_table): Likewise.
16927 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
16928 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
16929 (thread_through_loop_header): Likewise.
16930
16931 2014-09-05 Richard Biener <rguenther@suse.de>
16932
16933 PR middle-end/63148
16934 * fold-const.c (try_move_mult_to_index): Remove.
16935 (fold_binary_loc): Do not call it.
16936 * tree-data-ref.c (dr_analyze_indices): Strip conversions
16937 from the base object again.
16938
16939 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
16940
16941 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
16942 DImode.
16943
16944 2014-09-05 Bin Cheng <bin.cheng@arm.com>
16945
16946 PR target/55701
16947 * config/arm/arm.md (setmem): New pattern.
16948 * config/arm/arm-protos.h (struct tune_params): New fields.
16949 (arm_gen_setmem): New prototype.
16950 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
16951 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
16952 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
16953 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
16954 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
16955 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
16956 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
16957 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
16958 (arm_const_inline_cost): New function.
16959 (arm_block_set_max_insns): New function.
16960 (arm_block_set_non_vect_profit_p): New function.
16961 (arm_block_set_vect_profit_p): New function.
16962 (arm_block_set_unaligned_vect): New function.
16963 (arm_block_set_aligned_vect): New function.
16964 (arm_block_set_unaligned_non_vect): New function.
16965 (arm_block_set_aligned_non_vect): New function.
16966 (arm_block_set_vect, arm_gen_setmem): New functions.
16967
16968 2014-09-05 Bin Cheng <bin.cheng@arm.com>
16969
16970 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
16971
16972 2014-09-05 Bin Cheng <bin.cheng@arm.com>
16973
16974 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
16975
16976 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
16977
16978 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
16979 an rtx.
16980 * valtrack.h: Adjust.
16981
16982 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
16983
16984 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
16985 an rtx.
16986 (emit_jump_insn_before_noloc): Likewise.
16987 (emit_call_insn_before_noloc): Likewise.
16988 (emit_label_before): Likewise.
16989 (emit_label_after): Likewise.
16990 (emit_insn_before_setloc): Likewise.
16991 (emit_jump_insn_before_setloc): Likewise.
16992 (emit_call_insn_before_setloc): Likewise.
16993 (emit_call_insn_before): Likewise.
16994 * rtl.h: Adjust.
16995
16996 2014-09-05 David Malcolm <dmalcolm@redhat.com>
16997
16998 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
16999 rtx_insn *, eliminating a checked cast.
17000
17001 2014-09-05 David Malcolm <dmalcolm@redhat.com>
17002
17003 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
17004 const_rtx to const rtx_insn *.
17005 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
17006 cast.
17007
17008 2014-09-05 David Malcolm <dmalcolm@redhat.com>
17009
17010 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
17011 fixup_args_size_notes.
17012 * expr.c (fixup_args_size_notes): Strengthen first two params from
17013 rtx to rtx_insn *, eliminating a checked cast.
17014 * rtl.h (fixup_args_size_notes): Strengthen first two params from
17015 rtx to rtx_insn *.
17016
17017 2014-09-05 David Malcolm <dmalcolm@redhat.com>
17018
17019 * haifa-sched.c (get_ready_element): Strengthen return type from
17020 rtx to rtx_insn *.
17021 * sched-int.h (get_ready_element): Likewise.
17022
17023 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
17024
17025 PR target/63165
17026 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
17027 indexed_or_indirect_operand instead of memory_operand.
17028 (floatsi<mode>2_lfiwzx_mem): Ditto.
17029
17030 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
17031
17032 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
17033 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
17034 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
17035
17036 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
17037
17038 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
17039 rtx.
17040 (get_last_nonnote_insn): Likewise.
17041 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
17042 * resource.c (find_basic_block): Likewise.
17043 * rtl.h: Adjust.
17044 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
17045 const_rtx.
17046
17047 2014-09-04 David Malcolm <dmalcolm@redhat.com>
17048
17049 * genattr.c (main): Within the prototype of insn_latency written
17050 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
17051 * genautomata.c (output_internal_maximal_insn_latency_func):
17052 Within the implementation of insn_latency written out to
17053 insn-automata.c, strengthen both params from rtx to rtx_insn *,
17054 eliminating a pair of checked casts.
17055
17056 2014-09-04 David Malcolm <dmalcolm@redhat.com>
17057
17058 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
17059 rtx_insn *.
17060
17061 * rtl.h (eh_returnjump_p): Likewise.
17062
17063 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
17064
17065 * Makefile.in (TAGS): Handle constructs in timevar.def.
17066
17067 2014-09-04 Guozhi Wei <carrot@google.com>
17068
17069 PR target/62040
17070 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
17071 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
17072 it into two patterns.
17073 (move_lo_quad_internal_be_<mode>): Likewise.
17074
17075 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
17076
17077 * doc/options.texi: Document that Var and Init are required if CPP
17078 is given.
17079 * optc-gen.awk: Require Var and Init if CPP is given.
17080 * common.opt (Wpedantic): Use Init.
17081
17082 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17083
17084 * config/rs6000/rs6000.c (special_handling_values): Add
17085 SH_EXTRACT.
17086 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
17087 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
17088 as swappable with special handling SH_EXTRACT. Remove
17089 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
17090 optimization.
17091 (adjust_extract): New function.
17092 (handle_special_swappables): Add default to case statement; add
17093 case for SH_EXTRACT that calls adjust_extract.
17094 (dump_swap_insn_table): Handle SH_EXTRACT.
17095
17096 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17097
17098 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
17099 selection of 0th memory doubleword, regardless of endianness.
17100
17101 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17102
17103 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
17104
17105 2014-09-04 Alan Modra <amodra@gmail.com>
17106
17107 PR debug/60655
17108 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
17109 can't be output.
17110
17111 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
17112
17113 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
17114 * targhooks.c (default_dwarf_frame_reg_mode): New function.
17115 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
17116 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
17117 * doc/tm.texi: Regenerate.
17118 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
17119 selection logic to default_dwarf_frame_reg_mode.
17120
17121 2014-09-03 Marek Polacek <polacek@redhat.com>
17122
17123 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
17124 by -Wall.
17125
17126 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
17127
17128 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
17129 the automodified register.
17130
17131 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
17132
17133 * output.h (get_some_local_dynamic_name): Declare.
17134 * final.c (some_local_dynamic_name): New variable.
17135 (get_some_local_dynamic_name): New function.
17136 (final_end_function): Clear some_local_dynamic_name.
17137 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
17138 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
17139 (print_operand): Report an error if '%&' is used inappropriately.
17140 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
17141 (get_some_local_dynamic_name_1): Delete.
17142 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
17143 (rs6000_get_some_local_dynamic_name): Delete.
17144 (rs6000_get_some_local_dynamic_name_1): Delete.
17145 (print_operand): Report an error if '%&' is used inappropriately.
17146 * config/s390/s390.c (machine_function): Remove some_ld_name.
17147 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
17148 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
17149 * config/sparc/sparc.c: Include rtl-iter.h.
17150 (machine_function): Remove some_ld_name.
17151 (sparc_print_operand): Report an error if '%&' is used inappropriately.
17152 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
17153
17154 2014-09-03 Richard Henderson <rth@redhat.com>
17155
17156 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
17157 (aarch64_popwb_pair_reg): Remove.
17158 (aarch64_set_frame_expr): Remove.
17159 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
17160 the restore ops performed by the insns generated.
17161 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
17162 insn. Perform the calls_eh_return addition later; do not attempt to
17163 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
17164 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
17165 special markup at all. Load cfun->machine->frame.hard_fp_offset
17166 into a local variable.
17167 (aarch64_frame_pointer_required): Don't check calls_alloca.
17168
17169 2014-09-03 Richard Biener <rguenther@suse.de>
17170
17171 * opts.c (default_options_optimization): Adjust
17172 max-combine-insns to 2 for -Og.
17173
17174 2014-09-03 Martin Jambor <mjambor@suse.cz>
17175
17176 PR ipa/62015
17177 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
17178 pass-trough jump functions correctly.
17179
17180 2014-09-03 Martin Jambor <mjambor@suse.cz>
17181
17182 PR ipa/61986
17183 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
17184 created replacements in ascending order of offsets.
17185 (known_aggs_to_agg_replacement_list): Likewise.
17186
17187 2014-09-03 Martin Liska <mliska@suse.cz>
17188
17189 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
17190 is set to set uninitialized value for vnresult.
17191
17192 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17193
17194 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
17195 for TARGET_MUST_PASS_IN_STACK.
17196
17197 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17198
17199 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
17200 for TARGET_ARG_PARTIAL_BYTES.
17201
17202 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17203
17204 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
17205 instructions for varargs implementation.
17206 (nds32_expand_epilogue): Emit stack adjustment instructions for
17207 varargs implementation.
17208
17209 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17210
17211 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
17212 optimization detection.
17213
17214 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17215
17216 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
17217 arguments.
17218 (nds32_function_arg_advance): Deal with nameless arguments.
17219 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
17220 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
17221 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
17222
17223 2014-09-03 Richard Biener <rguenther@suse.de>
17224
17225 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
17226 (struct bb_bitmap_sets): Remove deferred member.
17227 (BB_DEFERRED): Remove.
17228 (defer_or_phi_translate_block): Remove.
17229 (compute_antic_aux): Remove deferring of blocks, assert
17230 proper iteration order.
17231 (compute_antic): Do not set BB_DEFERRED.
17232 (eliminate): Allocate el_avail of proper size initially.
17233
17234 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17235
17236 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
17237 according to the value of crtl->args.pretend_args_size.
17238
17239 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17240
17241 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
17242 varargs information.
17243
17244 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17245
17246 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
17247 implementation for TARGET_SETUP_INCOMING_VARARGS.
17248 (nds32_strict_argument_naming): Refine comment.
17249 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
17250 Define for future implementation.
17251
17252 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
17253
17254 * config/i386/adxintrin.h (_subborrow_u32): New.
17255 (_addcarry_u32): Ditto.
17256 (_subborrow_u64): Ditto.
17257 (_addcarry_u64): Ditto.
17258 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
17259 IX86_BUILTIN_SBB64.
17260 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
17261 __builtin_ia32_sbb_u64
17262
17263 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17264
17265 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
17266 GPR-specific stuff.
17267 (nds32_function_arg_advance): Likewise.
17268 (nds32_init_cumulative_args): Likewise.
17269 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
17270 (NDS32_FIRST_GPR_REGNUM): Define.
17271 (NDS32_LAST_GPR_REGNUM): Define.
17272 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
17273 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
17274 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
17275 (machine_function): Use GRP-specific stuff.
17276
17277 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17278
17279 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
17280 (nds32_expand_epilogue): Likewise.
17281 (nds32_expand_prologue_v3push): Likewise.
17282 (nds32_expand_epilogue_v3pop): Likewise.
17283
17284 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17285
17286 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
17287 v3push/v3pop for variadic function.
17288 * config/nds32/nds32.md (prologue, epilogue): Likewise.
17289
17290 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17291
17292 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
17293 Check rtx for varargs implementation.
17294 (nds32_output_stack_pop): Likewise.
17295 * config/nds32/nds32-protos.h: Have a rtx argument for
17296 nds32_output_stack_push and nds32_output_stack_pop.
17297 * config/nds32/nds32.md: Likewise.
17298
17299 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17300
17301 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
17302 to check if FUNC is an interrupt service routine.
17303 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
17304
17305 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17306
17307 * config/nds32/nds32.h (machine_function): Add some fields for variadic
17308 arguments implementation.
17309
17310 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17311
17312 * config/nds32/nds32-predicates.c
17313 (nds32_valid_stack_push_pop): Rename to ...
17314 (nds32_valid_stack_push_pop_p): ... this.
17315 * config/nds32/nds32-protos.h: Likewise.
17316 * config/nds32/predicates.md: Likewise.
17317
17318 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17319
17320 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
17321 (nds32_emit_stack_v3push): ... this.
17322 (nds32_gen_stack_v3pop): Rename to ...
17323 (nds32_emit_stack_v3pop): ... this and consider CFA restore
17324 information.
17325
17326 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17327
17328 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
17329 (nds32_emit_stack_push_multiple): ... this.
17330 (nds32_gen_stack_pop_multiple): Rename to ...
17331 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
17332 information.
17333
17334 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17335
17336 PR target/61078
17337 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
17338 and add a second splitter to handle the remaining cases.
17339
17340 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
17341
17342 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
17343
17344 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
17345
17346 * cfgexpand.c (label_rtx_for_bb): Change type to
17347 hash_map<basic_block, rtx_code_label *> *.
17348 (expand_gimple_basic_block): Adjust.
17349 (pass_expand::execute): Likewise.
17350
17351 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
17352
17353 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
17354 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
17355 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
17356 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
17357 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
17358 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
17359 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
17360 of rtx.
17361
17362 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
17363
17364 * alloc-pool.c: Include coretypes.h.
17365 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
17366 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
17367 hash_set instead of htab.
17368 * ggc-page.c (in_gc): New variable.
17369 (ggc_free): Do nothing if a collection is taking place.
17370 (ggc_collect): Set in_gc appropriately.
17371 * ggc.h (gt_ggc_mx(const char *)): New function.
17372 (gt_pch_nx(const char *)): Likewise.
17373 (gt_ggc_mx(int)): Likewise.
17374 (gt_pch_nx(int)): Likewise.
17375 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
17376 (hash_map::hash_entry::pch_nx): Likewise.
17377 (hash_map::hash_entry::pch_nx_helper): Likewise.
17378 (hash_map::hash_map): Adjust.
17379 (hash_map::create_ggc): New function.
17380 (gt_ggc_mx): Likewise.
17381 (gt_pch_nx): Likewise.
17382 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
17383 (default_hashset_traits::pch_nx): Likewise.
17384 (hash_set::hash_entry::ggc_mx): Likewise.
17385 (hash_set::hash_entry::pch_nx): Likewise.
17386 (hash_set::hash_entry::pch_nx_helper): Likewise.
17387 (hash_set::hash_set): Adjust.
17388 (hash_set::create_ggc): New function.
17389 (hash_set::elements): Likewise.
17390 (gt_ggc_mx): Likewise.
17391 (gt_pch_nx): Likewise.
17392 * hash-table.h (hash_table::hash_table): Adjust.
17393 (hash_table::m_ggc): New member.
17394 (hash_table::~hash_table): Adjust.
17395 (hash_table::expand): Likewise.
17396 (hash_table::empty): Likewise.
17397 (gt_ggc_mx): New function.
17398 (hashtab_entry_note_pointers): Likewise.
17399 (gt_pch_nx): Likewise.
17400
17401 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17402
17403 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
17404 built-in definition.
17405 (XVCVUXDDP_SCALE): Likewise.
17406 (XVCVDPSXDS_SCALE): Likewise.
17407 (XVCVDPUXDS_SCALE): Likewise.
17408 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17409 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
17410 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
17411 VSX_BUILTIN_XVCVDPUXDS_SCALE.
17412 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
17413 prototype.
17414 * config/rs6000/rs6000.c (real.h): New include.
17415 (rs6000_scale_v2df): New function.
17416 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
17417 (UNSPEC_VSX_XVCVUXDDP): Likewise.
17418 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
17419 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
17420 (vsx_xvcvsxddp_scale): New define_expand.
17421 (vsx_xvcvsxddp): New define_insn.
17422 (vsx_xvcvuxddp_scale): New define_expand.
17423 (vsx_xvcvuxddp): New define_insn.
17424 (vsx_xvcvdpsxds_scale): New define_expand.
17425 (vsx_xvcvdpsxds): New define_insn.
17426 (vsx_xvcvdpuxds_scale): New define_expand.
17427 (vsx_xvcvdpuxds): New define_insn.
17428 * doc/extend.texi (vec_ctf): Add new prototypes.
17429 (vec_cts): Likewise.
17430 (vec_ctu): Likewise.
17431 (vec_splat): Likewise.
17432 (vec_div): Likewise.
17433 (vec_mul): Likewise.
17434
17435 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17436
17437 PR target/62275
17438 * config/arm/neon.md
17439 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
17440 <v_cmp_result>): New pattern.
17441 * config/arm/iterators.md (NEON_VCVT): New int iterator.
17442 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
17443 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
17444 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
17445 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
17446 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
17447
17448 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17449
17450 PR target/62275
17451 * config/arm/iterators.md (FIXUORS): New code iterator.
17452 (VCVT): New int iterator.
17453 (su_optab): New code attribute.
17454 (su): Likewise.
17455 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
17456
17457 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17458
17459 * config/aarch64/predicates.md (aarch64_comparison_operation):
17460 New special predicate.
17461 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
17462 aarch64_comparison_operation instead of matching an operator.
17463 Update operand numbers.
17464 (csinc3<mode>_insn): Likewise.
17465 (*csinv3<mode>_insn): Likewise.
17466 (*csneg3<mode>_insn): Likewise.
17467 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
17468 * config/aarch64/aarch64.c (aarch64_get_condition_code):
17469 Return -1 instead of aborting on invalid condition codes.
17470 (aarch64_print_operand): Update aarch64_get_condition_code callsites
17471 to assert that the returned condition code is valid.
17472 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
17473
17474 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
17475
17476 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
17477 tree.def, and gimple.def
17478
17479 2014-09-02 Jakub Jelinek <jakub@redhat.com>
17480 Balaji V. Iyer <balaji.v.iyer@intel.com>
17481 Igor Zamyatin <igor.zamyatin@intel.com>
17482
17483 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
17484 (__cilkrts_cilk_for_64): Likewise.
17485 * cilk-common.c (declare_cilk_for_builtin): New function.
17486 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
17487 __cilkrts_cilk_for_64 bultins.
17488 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
17489 CILK_TI_F_LOOP_64.
17490 (cilk_for_32_fndecl): New define.
17491 (cilk_for_64_fndecl): Likewise.
17492 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
17493 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
17494 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
17495 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
17496 GF_OMP_FOR_COMBINED_INTO.
17497 * gimplify.c (gimplify_scan_omp_clauses): Added
17498 OMP_CLAUSE__CILK_FOR_COUNT_ case.
17499 (gimplify_adjust_omp_clauses): Ditto.
17500 (gimplify_omp_for): Added CILK_FOR case.
17501 (gimplify_expr): Ditto.
17502 * omp-low.c: Include cilk.h.
17503 (extract_omp_for_data): Set appropriate kind for
17504 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
17505 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
17506 (create_omp_child_function_name): Added second argument to handle
17507 cilk_for case.
17508 (cilk_for_check_loop_diff_type): New function.
17509 (expand_cilk_for_call): Likewise.
17510 (expand_cilk_for): Likewise.
17511 (create_omp_child_function): Set cilk_for_count; handle the cases when
17512 it is true; call create_omp_child_function_name with second argument.
17513 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
17514 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
17515 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
17516 * tree-nested.c (convert_nonlocal_omp_clauses): Added
17517 OMP_CLAUSE__CILK_FOR_COUNT_ case.
17518 (convert_local_omp_clauses): Ditto.
17519 * tree-pretty-print.c (dump_omp_clause): Added
17520 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
17521 (dump_generic_node): Added CILK_FOR case.
17522 * tree.c (omp_clause_num_ops): New element
17523 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
17524 (omp_clause_code_name): New element _Cilk_for_count_.
17525 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
17526 * tree.def: Add tree code for CILK_FOR.
17527
17528 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
17529
17530 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
17531 (ppc403-compare): Add "exts with dot" case.
17532 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
17533 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
17534 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
17535 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
17536 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
17537 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
17538 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
17539 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
17540 cell-cmp-microcoded): Similarly.
17541 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
17542 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
17543 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
17544 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
17545 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
17546 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
17547 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
17548 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
17549 (power6-compare): Add "exts with dot" case.
17550 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
17551 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
17552 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
17553
17554 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
17555 if avoiding Cell microcode.
17556 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
17557 (is_cracked_insn): Ditto.
17558 (insn_must_be_first_in_group): Ditto.
17559 * config/rs6000/rs6000.md (dot): Adjust comment.
17560 (cell_micro): Handle exts+dot.
17561 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
17562 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
17563 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
17564 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
17565 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
17566 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
17567 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
17568
17569 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
17570
17571 * config/rs6000/rs6000.md (QHSI): Delete.
17572 (EXTQI, EXTHI, EXTSI): New mode iterators.
17573 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
17574 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
17575 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
17576 9 anonymous instructions, and 8 splitters): Delete.
17577 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
17578 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
17579 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
17580 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
17581 *zero_extendsi<mode>2_dot2): New.
17582
17583 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
17584
17585 * config/rs6000/rs6000.md (any_extend): New code iterator.
17586 (u, su): New code attributes.
17587 (dmode, DMODE): New mode attributes.
17588 (<su>mul<mode>3_highpart): New.
17589 (*<su>mul<mode>3_highpart): New.
17590 (<su>mulsi3_highpart_le): New.
17591 (<su>muldi3_highpart_le): New.
17592 (<su>mulsi3_highpart_64): New.
17593 (<u>mul<mode><dmode>3): New.
17594 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
17595 splitters): Delete.
17596 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
17597 splitters): Delete.
17598
17599 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
17600
17601 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
17602 *mulsi3_internal2, and two splitters): Delete.
17603 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
17604 Delete.
17605 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
17606
17607 2014-09-02 Richard Biener <rguenther@suse.de>
17608
17609 PR tree-optimization/62695
17610 * tree-ssa-structalias.c (find_func_clobbers): Add missing
17611 vector truncate.
17612
17613 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
17614
17615 PR target/62312
17616 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
17617
17618 2014-09-01 Andi Kleen <ak@linux.intel.com>
17619
17620 * file-find.c (add_prefix_begin): Add.
17621 (do_add_prefix): Rename from add_prefix with first argument.
17622 (add_prefix): Add new wrapper.
17623 * file-find.h (add_prefix_begin): Add.
17624 * gcc-ar.c (main): Support -B option.
17625
17626 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
17627
17628 * genemit.c: Include dumpfile.h.
17629 (gen_split): Print name of splitter function to dump file.
17630
17631 2014-09-01 Richard Biener <rguenther@suse.de>
17632
17633 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
17634 Use stack auto_vecs for constraint expressions.
17635 (find_func_aliases_for_call): Likewise.
17636 (find_func_aliases): Likewise.
17637 (find_func_clobbers): Likewise.
17638
17639 2014-09-01 Richard Biener <rguenther@suse.de>
17640
17641 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
17642 operands vector in most cases. Remove redundant code.
17643
17644 2014-09-01 Olivier Hainque <hainque@adacore.com>
17645
17646 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
17647 $WIND_BASE instead of designating a harcoded arbitrary home dir.
17648 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
17649
17650 2014-09-01 Richard Biener <rguenther@suse.de>
17651
17652 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
17653 copy_reference_ops_from_call, vn_nary_op_compute_hash,
17654 vn_reference_compute_hash, vn_reference_insert): Remove.
17655 (vn_reference_lookup_call): New function.
17656 * tree-ssa-sccvn.c (vn_reference_compute_hash,
17657 copy_reference_ops_from_ref, copy_reference_ops_from_call,
17658 vn_reference_insert, vn_nary_op_compute_hash): Make static.
17659 (create_reference_ops_from_call): Remove.
17660 (vn_reference_lookup_3): Properly update shared_lookup_references.
17661 (vn_reference_lookup_pieces): Assert that we updated
17662 shared_lookup_references properly.
17663 (vn_reference_lookup): Likewise.
17664 (vn_reference_lookup_call): New function.
17665 (visit_reference_op_call): Use it. Avoid re-building the
17666 reference ops.
17667 (visit_reference_op_load): Remove redundant lookup.
17668 (visit_reference_op_store): Perform special tail-merging work
17669 only when possibly doing tail-merging.
17670 (visit_use): Likewise.
17671 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
17672
17673 2014-09-01 Jakub Jelinek <jakub@redhat.com>
17674
17675 PR target/62025
17676 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
17677 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
17678 (find_inc): Revert 2014-08-13 change.
17679
17680 2014-09-01 Marek Polacek <polacek@redhat.com>
17681
17682 PR middle-end/61903
17683 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
17684 Change the type of V to unsigned HOST_WIDE_INT.
17685
17686 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
17687
17688 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
17689 the size of byte markers.
17690 (do_shift_rotate): Fix confusion between host, target and marker byte
17691 size.
17692 (verify_symbolic_number_p): Likewise.
17693 (find_bswap_or_nop_1): Likewise.
17694 (find_bswap_or_nop): Likewise.
17695
17696 2014-09-01 Olivier Hainque <hainque@adacore.com>
17697
17698 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
17699 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
17700
17701 2014-09-01 Jakub Jelinek <jakub@redhat.com>
17702
17703 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
17704 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
17705 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
17706
17707 2014-09-01 Yury Gribov <y.gribov@samsung.com>
17708
17709 PR sanitizer/61897
17710 PR sanitizer/62140
17711 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
17712 (build_check_stmt): Likewise.
17713 (instrument_strlen_call): Likewise.
17714 (asan_expand_check_ifn): Likewise and fix types.
17715 (maybe_cast_to_ptrmode): New function.
17716
17717 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17718
17719 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
17720
17721 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
17722
17723 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
17724
17725 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
17726
17727 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
17728 prefix to function labels when generating fast indirect calls.
17729
17730 2014-08-30 David Malcolm <dmalcolm@redhat.com>
17731
17732 PR bootstrap/62304
17733
17734 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
17735 param back from rtx_insn * to rtx. Rename param from "label" to
17736 "label_or_return", reintroducing "label" as an rtx_insn * after
17737 we've ensured it's not a RETURN.
17738 (first_active_target_insn): Likewise for return type and param;
17739 add a checked cast to rtx_insn * once we've ensured "insn" is not
17740 a RETURN.
17741 (steal_delay_list_from_target): Convert param "pnew_thread" back
17742 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
17743 with JUMP_LABEL.
17744 (own_thread_p): Convert param "thread" back from an rtx_insn * to
17745 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
17746 cast once we've established we're not dealing with a RETURN,
17747 renaming subsequent uses of "thread" to "thread_insn".
17748 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
17749 to JUMP_LABEL.
17750 (follow_jumps): Convert return type and param "label" from
17751 rtx_insn * back to rtx. Move initialization of "value" to after
17752 the handling for ANY_RETURN_P, adding a checked cast there to
17753 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
17754 rename to "this_label_or_return", reintroducing "this_label" as
17755 an rtx_insn * once we've handled the case where it could be an
17756 ANY_RETURN_P.
17757 (fill_slots_from_thread): Rename param "thread" to
17758 "thread_or_return", converting from an rtx_insn * back to an rtx.
17759 Reintroduce name "thread" as an rtx_insn * local with a checked
17760 cast once we've handled the case of it being an ANY_RETURN_P.
17761 Convert local "new_thread" from an rtx_insn * back to an rtx.
17762 Add a checked cast when assigning to "trial" from "new_thread".
17763 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
17764 checked cast to rtx_insn * from "new_thread" when invoking
17765 get_label_before.
17766 (fill_eager_delay_slots): Convert locals "target_label",
17767 "insn_at_target" from rtx_insn * back to rtx.
17768 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
17769 (relax_delay_slots): Convert locals "trial", "target_label" from
17770 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
17771 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
17772 invoking update_block.
17773 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
17774 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
17775
17776 * resource.h (mark_target_live_regs): Undo erroneous conversion
17777 of second param of r214693, converting it back from rtx_insn * to
17778 rtx, since it could be a RETURN.
17779
17780 * resource.c (find_dead_or_set_registers): Similarly, convert
17781 param "jump_target" back from an rtx_insn ** to an rtx *, as we
17782 could be writing back a RETURN. Rename local rtx_insn * "next" to
17783 "next_insn", and introduce "lab_or_return" as a local rtx,
17784 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
17785 (mark_target_live_regs): Undo erroneous conversion
17786 of second param of r214693, converting it back from rtx_insn * to
17787 rtx, since it could be a RETURN. Rename it from "target" to
17788 "target_maybe_return", reintroducing the name "target" as a local
17789 rtx_insn * with a checked cast, after we've handled the case of
17790 ANY_RETURN_P.
17791
17792 2014-08-29 DJ Delorie <dj@redhat.com>
17793
17794 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
17795 pointer size up to a power of two.
17796 * defaults.h (DWARF2_ADDR_SIZE): Round up.
17797 (POINTER_SIZE_UNITS): New, rounded up value.
17798 * dwarf2asm.c (size_of_encoded_value): Use it.
17799 (dw2_output_indirect_constant_1): Likewise.
17800 * expmed.c (init_expmed_one_conv): We now know the sizes of
17801 partial int modes.
17802 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
17803 * optabs.c (expand_float): Use precision, not size.
17804 (expand_fix): Likewise.
17805 * simplify-rtx (simplify_unary_operation_1): Likewise.
17806 * tree-dfa.c (get_ref_base_and_extent): Likewise.
17807 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
17808 (default_assemble_integer) Likewise.
17809 (dump_tm_clone_pairs): Likewise.
17810 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
17811 * var-tracking.c (adjust_mems): Allow partial-int modes also.
17812 (prepare_call_arguments): Likewise.
17813 * stor-layout.c (finalize_type_size): Preserve precision.
17814 (layout_type): Use precision, not size.
17815
17816 * expr.c (convert_move): If the target has an explicit converter,
17817 use it.
17818
17819 2014-08-29 David Malcolm <dmalcolm@redhat.com>
17820
17821 * gdbinit.in: Skip various inline functions in rtl.h when
17822 stepping.
17823
17824 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
17825
17826 PR bootstrap/62301
17827 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
17828
17829 2014-08-29 Richard Biener <rguenther@suse.de>
17830
17831 PR tree-optimization/62291
17832 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
17833 exactly the vector size needed and use quick_push.
17834 (phi_translate_1): Adjust comment.
17835 (valid_in_sets): Remove block argument and remove pointless
17836 checking of NAMEs.
17837 (dependent_clean): Adjust for removal of block argument.
17838 (clean): Likewise.
17839 (compute_antic_aux): Likewise.
17840 (compute_partial_antic_aux): Likewise.
17841
17842 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
17843 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17844 Anna Tikhonova <anna.tikhonova@intel.com>
17845 Ilya Tocar <ilya.tocar@intel.com>
17846 Andrey Turetskiy <andrey.turetskiy@intel.com>
17847 Ilya Verbin <ilya.verbin@intel.com>
17848 Kirill Yukhin <kirill.yukhin@intel.com>
17849 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17850
17851 * config/i386/sse.md
17852 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
17853 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
17854 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
17855 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
17856
17857 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
17858 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17859 Anna Tikhonova <anna.tikhonova@intel.com>
17860 Ilya Tocar <ilya.tocar@intel.com>
17861 Andrey Turetskiy <andrey.turetskiy@intel.com>
17862 Ilya Verbin <ilya.verbin@intel.com>
17863 Kirill Yukhin <kirill.yukhin@intel.com>
17864 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17865
17866 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
17867 * config/i386/sse.md
17868 (define_mode_iterator VI4_128_8_256): New.
17869 (define_mode_iterator VI2_128_4_256): Ditto.
17870 (define_mode_iterator PMOV_DST_MODE): Rename into
17871 (define_mode_iterator PMOV_DST_MODE_1): this.
17872 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
17873 Use PMOV_DST_MODE_1 mode iterator.
17874 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
17875 Ditto.
17876 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
17877 Ditto.
17878 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
17879 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
17880 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
17881 (define_mode_iterator PMOV_DST_MODE_2): New.
17882 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
17883 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
17884 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
17885 Ditto.
17886 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
17887 (define_mode_attr pmov_dst_3): Ditto.
17888 (define_mode_attr pmov_dst_zeroed_3): Ditto.
17889 (define_mode_attr pmov_suff_3): Ditto.
17890 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
17891 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
17892 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
17893 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
17894 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
17895 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
17896 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
17897 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
17898 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
17899 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
17900 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
17901 (define_mode_attr pmov_dst_4): Ditto.
17902 (define_mode_attr pmov_dst_zeroed_4): Ditto.
17903 (define_mode_attr pmov_suff_4): Ditto.
17904 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
17905 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
17906 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
17907 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
17908 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
17909 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
17910 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
17911 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
17912 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
17913 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
17914 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
17915
17916 2014-08-29 Richard Biener <rguenther@suse.de>
17917
17918 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
17919 NON_LVALUE_EXPR in gimple.
17920
17921 2014-08-29 Richard Biener <rguenther@suse.de>
17922
17923 PR middle-end/62292
17924 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
17925 from previous refactoring.
17926 (gimple_fold_builtin_strncpy): Likewise.
17927
17928 2014-08-29 David Malcolm <dmalcolm@redhat.com>
17929
17930 PR bootstrap/62300
17931 * function.c (assign_parm_setup_reg): Remove erroneous checked
17932 cast to rtx_insn * on result of gen_extend_insn in favor of
17933 introducing a new local rtx "pat".
17934
17935 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17936
17937 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
17938 to silence warning.
17939 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
17940
17941 2014-08-28 David Malcolm <dmalcolm@redhat.com>
17942
17943 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
17944 (next_insn): Likewise.
17945 * emit-rtl.c (next_insn): Likewise.
17946 (previous_insn): Likewise.
17947 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
17948 "insn" and "next" from rtx to rtx_insn *.
17949 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
17950 "insn", "insn1", "vliw_start", "prologue_end_note",
17951 "last_insn_in_packet".
17952
17953 2014-08-28 David Malcolm <dmalcolm@redhat.com>
17954
17955 * shrink-wrap.h (active_insn_between): Strengthen both params from
17956 rtx to rtx_insn *.
17957 * function.c (active_insn_between): Likewise.
17958
17959 2014-08-28 David Malcolm <dmalcolm@redhat.com>
17960
17961 * genattr.c (main): When writing out insn-attr.h, strengthen param
17962 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
17963 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
17964 writing out the definition of dfa_clear_single_insn_cache to the
17965 generated insn-automata.c
17966
17967 2014-08-28 David Malcolm <dmalcolm@redhat.com>
17968
17969 * resource.h (clear_hashed_info_for_insn): Strengthen param from
17970 rtx to rtx_insn *.
17971 (incr_ticks_for_insn): Likewise.
17972 (init_resource_info): Likewise.
17973
17974 * resource.c (init_resource_info): Likewise.
17975 (clear_hashed_info_for_insn): Likewise.
17976 (incr_ticks_for_insn): Likewise.
17977
17978 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
17979 rtx to rtx_insn *.
17980 (steal_delay_list_from_target): Use methods of "seq".
17981 (try_merge_delay_insns): Use methods of "merged_insns".
17982 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
17983 (reorg_redirect_jump): Likewise for param "jump".
17984
17985 2014-08-28 David Malcolm <dmalcolm@redhat.com>
17986
17987 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
17988 rtx to rtx_insn *.
17989 * config/s390/s390.c (s390_split_branches): Eliminate top-level
17990 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
17991 "set_insn".
17992 (s390_mainpool_finish): In three places, split out a local rtx
17993 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
17994 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
17995 and split another local rtx "insn" out into rtx "pat" and
17996 rtx_insn * "insn".
17997 * config/sh/sh.c (output_branchy_insn): Rather than working
17998 directly on operands[9], introduce local rtx_code_label *
17999 variables named "lab" in two places, working on them, and then
18000 assigning them to operands[9], so that the intervening operations
18001 are known by the type system to be on insns.
18002
18003 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18004
18005 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
18006 const rtx_insn *.
18007
18008 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
18009 in invocation of INSN_HAS_LOCATION.
18010
18011 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18012
18013 * config/rs6000/altivec.h (vec_xl): New #define.
18014 (vec_xst): Likewise.
18015 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
18016 (XXSPLTD_V2DI): Likewise.
18017 (DIV_V2DI): Likewise.
18018 (UDIV_V2DI): Likewise.
18019 (MUL_V2DI): Likewise.
18020 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18021 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
18022 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
18023 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
18024 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
18025 (UNSPEC_VSX_DIVSD): Likewise.
18026 (UNSPEC_VSX_DIVUD): Likewise.
18027 (UNSPEC_VSX_MULSD): Likewise.
18028 (vsx_mul_v2di): New insn-and-split.
18029 (vsx_div_v2di): Likewise.
18030 (vsx_udiv_v2di): Likewise.
18031 (vsx_xxspltd_<mode>): New insn.
18032
18033 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18034
18035 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
18036 NEXT_INSN.
18037 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
18038 (NEXT_INSN): Likewise.
18039 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
18040 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
18041 const rtx_insn *.
18042 (no_labels_between_p): Likewise for both params.
18043
18044 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
18045 cast when using NEXT_INSN on operands[2].
18046 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
18047 "insn" from rtx to rtx_insn *, adding a checked cast.
18048 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
18049 rtx_insn *.
18050 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
18051 for third param.
18052 (arc_text_label): Likewise for param "insn".
18053 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
18054 "insn".
18055 (arc_ccfsm_record_condition): Likewise for param "jump".
18056 (arc_text_label): Likewise for local "label".
18057 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
18058 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
18059 a method for typesafety. Add a checked cast.
18060 * config/arc/constraints.md (Clb): Add a checked cast when getting
18061 the CODE_LABEL from a LABEL_REF.
18062 * config/arm/arm.c (require_pic_register): Strengthen locals
18063 "seq", "insn" from rtx to rtx_insn *.
18064 (create_fix_barrier): Likewise for locals "selected", "next".
18065 (thumb1_reorg): Likewise for locals "prev", "insn".
18066 (arm_expand_prologue): Likewise for local "last".
18067 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
18068 operands[0].
18069 (thumb2_output_casesi): Likewise for operands[2].
18070 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
18071 strengthen local "insn" from rtx to rtx_insn *.
18072 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
18073 type and param "insn".
18074 (find_prev_insn_start): Likewise.
18075 (hwloop_optimize): Likewise for locals "insn", "last_insn",
18076 "prev".
18077 (gen_one_bundle): Likewise for loal "t".
18078 (find_load): Likewise for param "insn".
18079 (workaround_speculation): Likewise for locals "insn", "next",
18080 "target", "next_tgt".
18081 * config/c6x/c6x.c (assign_reservations): Likewise for both params
18082 and for locals "insn", "within", "last".
18083 (count_unit_reqs): Likewise for params "head", "tail" and local
18084 "insn".
18085 (try_rename_operands): Likewise for params "head", "tail".
18086 (reshuffle_units): Likewise for locals "head", "tail", "insn".
18087 (struct c6x_sched_context): Likewise for fields
18088 "last_scheduled_insn", "last_scheduled_iter0".
18089 (init_sched_state): Replace NULL_RTX with NULL.
18090 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
18091 to rtx_insn *.
18092 (undo_split_delayed_nonbranch): Likewise for param and for local
18093 "prev".
18094 (conditionalize_after_sched): Likewise for local "insn".
18095 (bb_earliest_end_cycle): Likewise.
18096 (filter_insns_above): Likewise for locals "insn", "next".
18097 (hwloop_optimize): Remove redundant checked cast.
18098 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
18099 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
18100 NULL_RTX with NULL.
18101 (cris_simple_epilogue): Likewise.
18102 (cris_expand_prologue): Likewise.
18103 (cris_expand_epilogue): Likewise.
18104 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
18105 local "insn" from rtx to rtx_insn *.
18106 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
18107 (struct frv_packet_group): Likewise for the elements within array
18108 fields "insns", "sorted", and for field "nop".
18109 (frv_packet): Likewise for the elements within array field
18110 "insns".
18111 (frv_add_insn_to_packet): Likewise for param "insn".
18112 (frv_insert_nop_in_packet): Likewise for param "insn" and local
18113 "last".
18114 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
18115 (frv_sort_insn_group_1): Likewise for local "insn".
18116 (frv_optimize_membar_local): Likewise.
18117 (frv_align_label): Likewise for locals "x", "last", "barrier",
18118 "label".
18119 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
18120 local.
18121 (ia64_sched_init): Likewise for local "insn".
18122 (scheduled_good_insn): Likewise for param "last".
18123 (struct _ia64_sched_context): Likewise for field
18124 "last_scheduled_insn".
18125 (ia64_init_sched_context): Replace NULL_RTX with NULL.
18126 (struct bundle_state): Likewise for field "insn".
18127 (issue_nops_and_insn): Likewise for param "insn".
18128 (get_next_important_insn): Likewise for return type and both
18129 params.
18130 (ia64_add_bundle_selector_before): Likewise for param "insn".
18131 (bundling): Likewise for params "prev_head_insn", "tail" and
18132 locals "insn", "next_insn", "b". Eliminate top-level local rtx
18133 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
18134 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
18135 Strengthen final param from rtx to rtx_insn *.
18136 (iq2000_move_1word): Likewise for second param.
18137 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
18138 param "cur_insn" and local "next_insn".
18139 (iq2000_move_1word): Likewise for param "insn".
18140 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
18141 casts when using NEXT_INSN on operands[1].
18142 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
18143 "insn" from rtx to rtx_insn *.
18144 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
18145 "x", introducing local rtx_insn * "insn" for when working with the
18146 CODE_LABEL of the LABEL_REF.
18147 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
18148 rtx_insn *.
18149 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
18150 param.
18151 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
18152 type.
18153 (conditionalize_block): Likewise for return type and param.
18154 (mcore_is_dead): Likewise for param "first" and local "insn".
18155 (emit_new_cond_insn): Likewise for return type.
18156 (conditionalize_block): Likewise for return type, param, and
18157 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
18158 "newinsn".
18159 (conditionalize_optimization): Likewise for local "insn".
18160 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
18161 using NEXT_INSN.
18162 * config/microblaze/microblaze.md: Add checked casts when using
18163 NEXT_INSN.
18164 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
18165 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
18166 and rtx_insn * "insn".
18167 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
18168 checked cast when using NEXT_INSN on operands[2].
18169 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
18170 local "insn" from rtx to rtx_insn *.
18171 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
18172 Likewise.
18173 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
18174 Add a checked cast when using NEXT_INSN on operands[1].
18175 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
18176 rtx to rtx_insn *.
18177 (pa_output_cbranch): Likewise for final param.
18178 (pa_output_lbranch): Likewise for second param.
18179 (pa_output_bb): Likewise for third param.
18180 (pa_output_bvb): Likewise.
18181 (pa_output_dbra): Likewise for second param.
18182 (pa_output_movb): Likewise.
18183 (pa_output_parallel_movb): Likewise.
18184 (pa_output_parallel_addb): Likewise.
18185 (pa_output_millicode_call): Likewise for first param.
18186 (pa_output_mul_insn): Likewise for second param.
18187 (pa_output_div_insn): Likewise for third param.
18188 (pa_output_mod_insn): Likewise for second param.
18189 (pa_jump_in_call_delay): Likewise for param.
18190 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
18191 (pa_output_div_insn): Likewise.
18192 (pa_output_mod_insn): Likewise.
18193 (pa_output_cbranch): Likewise.
18194 (pa_output_lbranch): Likewise.
18195 (pa_output_bb): Likewise.
18196 (pa_output_bvb): Likewise.
18197 (pa_output_dbra): Likewise.
18198 (pa_output_movb): Likewise.
18199 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
18200 to simplify and for typesafety.
18201 (pa_output_call): Use method of rtx_sequence *.
18202 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
18203 (pa_jump_in_call_delay): Likewise.
18204 (pa_output_parallel_movb): Likewise.
18205 (pa_output_parallel_addb): Likewise.
18206 (pa_following_call): Likewise.
18207 (pa_combine_instructions): Likewise for locals "anchor",
18208 "floater".
18209 (pa_can_combine_p): Likewise for params "anchor", "floater" and
18210 locals "start", "end".
18211 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
18212 param "insn" and local "local_insn".
18213 (picochip_final_prescan_insn): Likewise for local "local_insn".
18214 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
18215 local "insn".
18216 (uses_TOC): Likewise.
18217 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
18218 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
18219 splitting out to more tightly-scoped locals, 3 as rtx and one as
18220 rtx_insn *.
18221 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
18222 to rtx_insn *.
18223 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
18224 where needed.
18225 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
18226 to rtx_insn *.
18227 (fixup_addr_diff_vecs): Likewise.
18228 (reg_unused_after): Likewise for param 2.
18229 (sh_can_redirect_branch): Likewise for both params.
18230 (check_use_sfunc_addr): Likewise for param 1.
18231 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
18232 (find_barrier): Likewise for local "last_got".
18233 (gen_block_redirect): Likewise for return type, param "jump" and
18234 locals "prev", "scan", "next", "insn".
18235 (struct far_branch): Likewise for fields "near_label",
18236 "insert_place", "far_label".
18237 (gen_far_branch): Likewise for local "jump".
18238 (fixup_addr_diff_vecs): Likewise for param "first" and locals
18239 "insn", "prev".
18240 (barrier_align): Likewise for param and for locals "prev", "x".
18241 Introduce local rtx_sequence * "prev_seq" and use insn method for
18242 typesafety and clarity.
18243 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
18244 (get_dest_uid): Likewise for local "dest".
18245 (split_branches): Likewise for locals "next", "beyond", "label",
18246 "block", "far_label". Add checked casts when assigning to
18247 bp->far_label and "far_label".
18248 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
18249 (sequence_insn_p): Likewise.
18250 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
18251 more loop-scoped rtx "insn" when walking LABEL_REFS.
18252 (sh_can_redirect_branch): Strengthen both params from rtx to
18253 rtx_insn *.
18254 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
18255 new local rtx_sequence * "seq" via a dyn_cast, and use a method
18256 for clarity and typesafety.
18257 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
18258 "insn" from rtx to rtx_insn *.
18259 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
18260 when using NEXT_INSN on the CODE_LABEL in operands[2].
18261 (define_insn "casesi_worker_2"): Likewise.
18262 (define_insn "casesi_shift_media"): Likewise.
18263 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
18264 operands[3].
18265 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
18266 Strengthen field "insn" from rtx to rtx_insn *.
18267 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
18268 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
18269 param "start_insn" and local "start_insn".
18270 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
18271 field "insn".
18272 (find_set_of_reg_bb): Likewise for param "insn".
18273 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
18274 (trace_reg_uses): Likewise for param "start_insn".
18275 (sh_treg_combine::cbranch_trace): Likewise for field
18276 "cbranch_insn".
18277 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
18278 param "insn".
18279 (sh_treg_combine::record_set_of_reg): Likewise for param
18280 "start_insn" and local "i".
18281 (sh_treg_combine::can_remove_cstore): Likewise for local
18282 "prev_insn".
18283 (sh_treg_combine::try_optimize_cbranch): Likewise for param
18284 "insn".
18285 (sh_treg_combine::execute): Likewise for local "i".
18286 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
18287 param.
18288 (sparc_check_64): Likewise for second param.
18289 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
18290 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
18291 dyn_cast, using its insn method for typesafety and clarity.
18292 (empty_delay_slot): Strengthen param "insn" from rtx to
18293 rtx_insn *.
18294 (set_extends): Likewise.
18295 (sparc_check_64): Likewise.
18296 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
18297 for locals "seq", "last_insn".
18298 (combine_bnp): Likewise for param "insn".
18299 (xstormy16_reorg): Likewise for local "insn".
18300 * config/v850/v850.c (substitute_ep_register): Likewise for params
18301 "first_insn", "last_insn" and local "insn".
18302 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
18303 elements of "regs" array, and local "insn".
18304 * except.c (emit_note_eh_region_end): Likewise for param "insn".
18305 * final.c (final_sequence): Strengthen this global from rtx to
18306 rtx_sequence *.
18307 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
18308 rtx_insn *.
18309 (final_scan_insn): Update assignment to "final_sequence" to be
18310 from "seq", the cast version of "body", for type-safety.
18311 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
18312 "insns" from rtx to rtx_insn *.
18313 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
18314 * genattr.c (main): When writing out generated insn-attr.h,
18315 strengthen params 1 and 3 of eligible_for_delay,
18316 eligible_for_annul_true, eligible_for_annul_false from rtx to
18317 rtx_insn *.
18318 * genattrtab.c (write_eligible_delay): Likewise when writing out
18319 generated insn-attrtab.c; also local "insn" the generated
18320 functions.
18321 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
18322 to rtx_insn *.
18323 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
18324 "start_label" from rtx to rtx_insn *.
18325 * ira.c (decrease_live_ranges_number): Likewise for local "p".
18326 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
18327 "insns" and local "insn".
18328 (validate_equiv_mem): Likewise for param "start" and local "insn".
18329 (memref_used_between_p): Likewise for params "start", "end" and
18330 local "insn".
18331 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
18332 final param.
18333 * loop-doloop.c (doloop_optimize): Within region guarded by
18334 INSN_P (doloop_pat), introduce a new local rtx_insn *
18335 "doloop_insn" via a checked cast, and use it for typesafety,
18336 eventually writing the value back into doloop_pat.
18337 * output.h (final_sequence): Strengthen this global from rtx to
18338 rtx_sequence *.
18339 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
18340 reintroducing "insn" as an rtx_insn * via a checked cast.
18341 Strengthen param "attempt" and local "new_insn"from rtx to
18342 rtx_insn *.
18343 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
18344 to rtx_insn *.
18345 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
18346 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
18347 "p" in favor of more tightly-scoped replacements, sometimes rtx
18348 and sometimes rtx_insn *, as appropriate.
18349 (delete_output_reload): Eliminate top-level rtx "i1", splitting
18350 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
18351 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
18352 local "trial" from rtx to rtx_insn *.
18353 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
18354 rtx to rtx_insn *. Strenghten local "pat" from rtx to
18355 rtx_sequence * and use methods for clarity and typesafety.
18356 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
18357 rtx to rtx_insn *. Strenghten local "li" from rtx to
18358 rtx_insn_list * and use its methods for clarity and typesafety.
18359 (steal_delay_list_from_target): Strengthen param "insn" from rtx
18360 to rtx_insn *.
18361 (steal_delay_list_from_fallthrough): Likewise.
18362 (try_merge_delay_insns): Likewise for param "thread" and locals
18363 "trial", "next_trial", "delay_insn".
18364 (redundant_insn): Likewise for param "target" and local "trial".
18365 (own_thread_p): Likewise for param "thread" and locals
18366 "active_insn", "insn".
18367 (get_label_before): Likewise for param "insn".
18368 (fill_simple_delay_slots): Likewise for local "new_label"; use
18369 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
18370 (label_before_next_insn): Strengthen return type and local "insn"
18371 from rtx to rtx_insn *.
18372 (relax_delay_slots): Likewise for locals "other", "tmp".
18373 (make_return_insns): Likewise for param "first" and locals "insn",
18374 "jump_insn", "prev". Move declaration of "pat" to its assignment
18375 and strengthen from rtx to rtx_sequence *. Use its methods for
18376 clarity and typesafety.
18377 * rtlanal.c (no_labels_between_p): Strengthen params from
18378 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
18379 rtx_insn *.
18380 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
18381 from const_rtx to const rtx_insn *.
18382 (reg_set_between_p): Rename param "from_insn" to
18383 "uncast_from_insn", and reintroduce "from_insn" as a
18384 const rtx_insn * via a checked cast.
18385 (modified_between_p): Likewise for param "start" as "uncast_start".
18386 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
18387 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
18388 "tmp", head" from rtx to rtx_insn *.
18389 (recompute_rev_top_order): Likewise for local "insn".
18390 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
18391 * store-motion.c (build_store_vectors): Likewise for local "insn".
18392 Strengthen local "st" from rtx to rtx_insn_list * and use methods
18393 for clarity and typesafety.
18394 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
18395 rtx to rtx_insn *.
18396 (computation_cost): Likewise for local "seq".
18397 (get_address_cost): Likewise.
18398
18399 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18400
18401 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
18402 const rtx_insn *.
18403 (label_is_jump_target_p): Likewise for second param.
18404
18405 * rtlanal.c (tablejump_p): Likewise for param "insn".
18406 (label_is_jump_target_p): Likewise for param "jump_insn".
18407
18408 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18409
18410 * rtl.h (find_first_parameter_load): Strengthen return type and
18411 both params from rtx to rtx_insn *.
18412 * rtlanal.c (find_first_parameter_load): Strengthen return type,
18413 both params and locals "before", "first_set" from rtx to
18414 rtx_insn *. Remove now-redundant cast.
18415 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
18416
18417 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18418
18419 * rtl.h (find_last_value): Delete.
18420 * rtlanal.c (find_last_value): Delete.
18421
18422 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18423
18424 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
18425 from rtx to rtx_insn *.
18426 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
18427 rtx "note" with new local rtx_insn * "new_head" when calculating
18428 head insn of new basic block.
18429 * combine.c (combine_split_insns): Strengthen return type and local
18430 "ret" from rtx to rtx_insn *.
18431 (likely_spilled_retval_p): Likewise for locals "use" and "p".
18432 (try_combine): Eliminate local "m_split", splitting into new
18433 locals "m_split_insn" and "m_split_pat".
18434 (find_split_point): Strengthen local "seq" from rtx into
18435 rtx_insn *.
18436 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
18437 locals "label", "branch".
18438 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
18439 for local "insn".
18440 (define_expand "umulsi3_highpart"): Likewise for local "insn".
18441 * dse.c (note_add_store_info): Likewise for fields "first",
18442 "current".
18443 (note_add_store): Likewise for local "insn".
18444 (emit_inc_dec_insn_before): Likewise for locals "insn",
18445 "new_insn", "cur".
18446 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
18447 (replace_read): Likewise for locals "insns", "this_insn".
18448 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
18449 (notice_eh_throw): Likewise for param "insn".
18450 (before_next_cfi_note): Likewise for return type, param, and local
18451 "prev".
18452 (connect_traces): Likewise for local "note".
18453 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
18454 (verify_rtl_sharing): Likewise.
18455 (unshare_all_rtl_in_chain): Likewise for param "insn".
18456 (get_first_nonnote_insn): Likewise for local "insn".
18457 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
18458 "seq" and use its methods to clarify things.
18459 (next_insn): Strengthen return type from rtx to rtx_insn *.
18460 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
18461 local rtx_insn * using a checked cast, dropping a checked cast
18462 made redundant by this change. Use a cast to and method of
18463 rtx_sequence to clarify the code.
18464 (previous_insn): Rename param "insn" to "uncast_insn" and
18465 reintroduce "insn" as a local rtx_insn * using a checked cast,
18466 dropping a checked cast made redundant by this change. Use a cast
18467 to and method of rtx_sequence to clarify the code.
18468 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
18469 reintroduce "insn" as a local rtx_insn * using a checked cast,
18470 dropping a checked cast made redundant by this change.
18471 (next_nonnote_insn_bb): Likewise.
18472 (prev_nonnote_insn): Likewise.
18473 (prev_nonnote_insn_bb): Likewise.
18474 (next_nondebug_insn): Likewise.
18475 (prev_nondebug_insn): Likewise.
18476 (next_nonnote_nondebug_insn): Likewise.
18477 (prev_nonnote_nondebug_insn): Likewise.
18478 (next_real_insn): Likewise.
18479 (prev_real_insn): Likewise.
18480 (next_active_insn): Likewise.
18481 (prev_active_insn): Likewise.
18482 (next_cc0_user): Likewise. Use rtx_sequence and a method for
18483 clarity.
18484 (prev_cc0_setter): Likewise.
18485 (try_split): Rename param "trial" to "uncast_trial" and
18486 reintroduce "insn" as a local rtx_insn * using a checked cast,
18487 dropping checked casts made redundant by this change.
18488 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
18489 rtx to rtx_insn *.
18490 (remove_insn): Rename param "insn" to "uncast_insn" and
18491 reintroduce "insn" as a local rtx_insn * using a checked cast.
18492 (emit_pattern_after_setloc): Likewise for param "after", as
18493 "uncast_after".
18494 (emit_pattern_after): Likewise. Strengthen local "prev" from
18495 rtx to rtx_insn *.
18496 (emit_pattern_before_setloc): Rename param "before" to
18497 "uncast_before" and reintroduce "before" as a local rtx_insn *
18498 using a checked cast. Strengthen locals "first", "last" from
18499 rtx to rtx_insn *.
18500 (emit_pattern_before): Likewise rename/cast param "before" to
18501 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
18502 * except.c (copy_reg_eh_region_note_forward): Strengthen param
18503 "first" and local "insn" from rtx to rtx_insn *.
18504 (copy_reg_eh_region_note_backward): Likewise for param "last"
18505 and local "insn".
18506 * expr.c (fixup_args_size_notes): Rename param "last" to
18507 "uncast_last" and reintroduce "last" as a local rtx_insn *
18508 using a checked cast. Strengthen local "insn" from rtx to
18509 rtx_insn *.
18510 * function.c (set_insn_locations): Strengthen param "insn" from
18511 rtx to rtx_insn *.
18512 (record_insns): Likewise for param "insns" and local "tmp".
18513 (active_insn_between): Rename param "tail" to
18514 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
18515 using a checked cast.
18516 (thread_prologue_and_epilogue_insns): Split out top-level local
18517 rtx "seq" into three different rtx_insn * locals. Strengthen
18518 local "prologue_seq" from rtx to rtx_insn *.
18519 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
18520 from rtx to rtx_insn *.
18521 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
18522 (priority): Likewise for locals "prev_first", "twin".
18523 (setup_insn_max_reg_pressure): Likewise for param "after".
18524 (sched_setup_bb_reg_pressure_info): Likewise.
18525 (no_real_insns_p): Strengthen params from const_rtx to
18526 const rtx_insn *.
18527 (schedule_block): Strengthen local "next_tail" from rtx to
18528 rtx_insn *.
18529 * ifcvt.c (find_active_insn_before): Strengthen return type and
18530 param "insn" from rtx to rtx_insn *.
18531 (find_active_insn_after): Likewise.
18532 (cond_exec_process_insns): Likewise for param "start" and local "insn".
18533 (cond_exec_process_if_block): Likewise for locals "then_start",
18534 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
18535 (noce_process_if_block): Likewise for local "jump".
18536 (merge_if_block): Likewise for two locals named "end".
18537 (cond_exec_find_if_block): Likewise for local "last_insn".
18538 * jump.c (delete_related_insns): Rename param "insn" to
18539 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
18540 checked cast. Strengthen local "p" from rtx to rtx_insn *.
18541 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
18542 NULL.
18543 (split_reg): Likewise.
18544 * lra.c (lra_process_new_insns): Likewise.
18545 * modulo-sched.c (permute_partial_schedule): Strengthen param
18546 "last" from rtx to rtx_insn *.
18547 * optabs.c (add_equal_note): Likewise for param "insns" and local
18548 "last_insn".
18549 (expand_binop_directly): Add checked casts to rtx_insn * within
18550 NEXT_INSN (pat) uses.
18551 (expand_unop_direct): Likewise.
18552 (maybe_emit_unop_insn): Likewise.
18553 * recog.c (peep2_attempt): Strengthen locals "last",
18554 "before_try", "x" from rtx to rtx_insn *.
18555 * reorg.c (optimize_skip): Strengthen return type and local
18556 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
18557 and locals "trial", "next_trial" from rtx to rtx_insn *.
18558 * resource.c (next_insn_no_annul): Strengthen return type and
18559 param "insn" from rtx to rtx_insn *. Use a cast to and method of
18560 rtx_sequence to clarify the code.
18561 (mark_referenced_resources): Add a checked cast to rtx_insn *
18562 within PREV_INSN (x).
18563 (find_dead_or_set_registers): Strengthen return type, param
18564 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
18565 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
18566 to rtx_insn **.
18567 (mark_target_live_regs): Strengthen params "insns" and "target",
18568 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
18569 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
18570 the code.
18571 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
18572 from rtx to rtx_insn *.
18573 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
18574 from rtx to rtx_insn *.
18575 (copy_reg_eh_region_note_backward): Likewise.
18576 (unshare_all_rtl_in_chain): Likewise for sole param.
18577 (dump_rtl_slim): Strengthen second and third params from const_rtx
18578 to const rtx_insn *.
18579 * sched-deps.c (sched_free_deps): Strengthen params "head" and
18580 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
18581 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
18582 "next_tail" from rtx to rtx_insn *.
18583 (begin_move_insn): Likewise for local "next".
18584 * sched-int.h (sched_free_deps): Likewise for first and second
18585 params.
18586 (no_real_insns_p): Strengthen both params from const_rtx to
18587 const rtx_insn *.
18588 (sched_setup_bb_reg_pressure_info): Strengthen second params from
18589 rtx to rtx_insn *.
18590 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
18591 "next_tail".
18592 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
18593 and locals "insn", "tail" from const_rtx to const rtx_insn *.
18594 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
18595 rtx_insn *.
18596 (debug_rtl_slim): Strengthen params "first" and "last" from
18597 const_rtx to const rtx_insn *.
18598 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
18599 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
18600 (convert_to_simple_return): Likewise for param "returnjump".
18601 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
18602 "prologue_seq".
18603 (convert_to_simple_return): Likewise for param "returnjump".
18604 * valtrack.c (propagate_for_debug): Likewise for params
18605 "insn", "last".
18606 * valtrack.h (propagate_for_debug): Likewise for second param.
18607
18608 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18609
18610 * output.h (insn_current_reference_address): Strengthen param
18611 from rtx to rtx_insn *.
18612 * final.c (insn_current_reference_address): Likewise.
18613
18614 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18615
18616 * basic-block.h (inside_basic_block_p): Strengthen param from
18617 const_rtx to const rtx_insn *.
18618 * cfgbuild.c (inside_basic_block_p): Likewise.
18619
18620 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18621
18622 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
18623 rtx_insn *.
18624 (get_trace_info): Likewise for param "insn".
18625 (save_point_p): Likewise.
18626 (maybe_record_trace_start): Likewise for both params.
18627 (maybe_record_trace_start_abnormal): Likewise.
18628 (create_trace_edges): Likewise for sole param and for three of the
18629 locals named "lab".
18630 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
18631 to rtx_insn *, and update a call to pat->element to pat->insn.
18632
18633 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18634
18635 * function.h (struct expr_status): Convert field "x_forced_labels"
18636 from rtx_expr_list * to rtx_insn_list *.
18637
18638 * cfgbuild.c (make_edges): Convert local "x" from an
18639 rtx_expr_list * to an rtx_insn_list *, replacing use of
18640 "element" method with "insn" method.
18641 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
18642 * except.c (sjlj_emit_dispatch_table): Replace use of
18643 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
18644 forced_labels.
18645 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
18646 rtx_expr_list * to an rtx_insn_list *, replacing use of
18647 "element" method with "insn" method.
18648 * reload1.c (set_initial_label_offsets): Likewise for local "x".
18649 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
18650 rtx_insn *, adding a checked cast. Replace use of
18651 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
18652 forced_labels.
18653 (expand_label): Likewise for local "label_r".
18654
18655 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18656
18657 * function.h (struct rtl_data): Convert field
18658 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
18659 rtx_insn_list *.
18660 * rtl.h (remove_node_from_insn_list): New prototype.
18661
18662 * builtins.c (expand_builtin): When prepending to
18663 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
18664 gen_rtx_EXPR_LIST.
18665 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
18666 to rtx_insn_list *, and use its "insn" method rather than
18667 "element" method.
18668 * cfgrtl.c (delete_insn): Use new function
18669 remove_node_from_insn_list rather than
18670 remove_node_from_expr_list.
18671 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
18672 to rtx_insn_list *, and use its "insn" method rather than
18673 "element" method.
18674 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
18675 * reload1.c (set_initial_label_offsets): Likewise for local "x".
18676 * rtlanal.c (remove_node_from_insn_list): New function, adapted
18677 from remove_node_from_expr_list.
18678 * stmt.c (expand_label): When prepending to
18679 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
18680 gen_rtx_EXPR_LIST.
18681
18682 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18683
18684 * function.h (struct rtl_data): Strengthen fields "x_return_label"
18685 and "x_naked_return_label" from rtx to rtx_code_label *.
18686
18687 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18688
18689 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
18690 (SET_NEXT_INSN): Likewise.
18691 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
18692
18693 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
18694 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
18695 to split out the SEQUENCE from local "bundle", strengthening the
18696 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
18697 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
18698 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
18699 and the type of the elements of the "slot" array from rtx to
18700 rtx_insn *.
18701 (reorg_split_calls): Likewise for locals "insn" and "next", and
18702 the type of the elements of the "slot" array.
18703
18704 * config/frv/frv.c (frv_nops): Likewise for the elements of this
18705 array.
18706 (frv_function_prologue): Likewise for locals "insn", "next",
18707 "last_call".
18708 (frv_register_nop): Introduce a local "nop_insn" to be the
18709 rtx_insn * containing rtx "nop".
18710
18711 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
18712 used as an insn and sometimes as a pattern, so rename it to
18713 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
18714 using it where dealing with the core insn.
18715
18716 * config/picochip/picochip.c (reorder_var_tracking_notes):
18717 Strengthen locals "insn", "next", "last_insn", "queue",
18718 "next_queue", "prev" from rtx to rtx_insn *.
18719
18720 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
18721 the second param is an rtx_insn ** rather than an rtx **.
18722 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
18723 from rtx to rtx_sequence *, and introduce local named "sequence",
18724 using methods of rtx_sequence to clarify the code.
18725 (remove_insn): Introduce local rtx_sequence * named "sequence" and
18726 use its methods.
18727 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
18728 Rename param "after" to "uncast_after", reintroducing "after" as a
18729 local rtx_insn * with a checked cast.
18730 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
18731 reintroducing "after" as a local rtx_insn * with a checked cast.
18732 Strengthen local "last" from rtx to rtx_insn * and remove the
18733 now-redundant checked casts.
18734 (copy_delay_slot_insn): Strengthen return type and param from rtx
18735 to rtx_insn *.
18736
18737 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
18738 "last" from rtx to rtx_insn *.
18739
18740 2014-08-28 David Malcolm <dmalcolm@redhat.com>
18741
18742 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
18743 param from rtx to rtx_insn *.
18744
18745 * emit-rtl.c (copy_delay_slot_insn): Likewise.
18746
18747 * reorg.c (skip_consecutive_labels): Strengthen return type, param
18748 and local "insn" from rtx to rtx_insn *.
18749 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
18750 (unfilled_slots_next): Likewise.
18751 (function_return_label): Strengthen from rtx to rtx_code_label *.
18752 (function_simple_return_label): Likewise.
18753 (first_active_target_insn): Strengthen return type and param from
18754 rtx to rtx_insn *.
18755 (find_end_label): Strengthen return type from rtx to
18756 rtx_code_label *; strengthen locals as appropriate.
18757 (emit_delay_sequence): Strengthen return type, param "insn" and
18758 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
18759 and local "li" from rtx to rtx_insn_list *, using methods of
18760 rtx_insn_list for clarity and typesafety.
18761 (add_to_delay_list): Strengthen return type and param "insn" from
18762 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
18763 rtx_insn_list * and use methods of rtx_insn_list.
18764 (delete_from_delay_slot): Strengthen return type, param "insn",
18765 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
18766 Strengthen local "seq" from rtx to rtx_sequence *, and local
18767 "delay_list" from rtx to rtx_insn_list *, using methods of
18768 rtx_sequence for clarity and type-safety.
18769 (delete_scheduled_jump): Add checked cast when invoking
18770 delete_from_delay_slot. Strengthen local "trial" from rtx to
18771 rtx_insn *.
18772 (optimize_skip): Strengthen return type and local "delay_list"
18773 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
18774 rtx_insn *.
18775 (steal_delay_list_from_target): Strengthen return type, param
18776 "delay_list" and local "new_delay_list" from rtx to
18777 rtx_insn_list *. Strengthen param "seq" from rtx to
18778 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
18779 rtx_insn **.
18780 Split out local "temp" into multiple more-tightly scoped locals:
18781 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
18782 of rtx_insn_list and rtx_sequence for clarity and typesafety.
18783 Strengthen locals named "trial" from rtx to rtx_insn *.
18784 (steal_delay_list_from_fallthrough): Strengthen return type and
18785 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
18786 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
18787 Strengthen local "trial" from rtx to rtx_insn *.
18788 (try_merge_delay_insns): Strength local "merged_insns" from rtx
18789 to rtx_insn_list * and use its methods. Strengthen local "pat"
18790 from rtx to rtx_sequence * and use its methods. Strengthen locals
18791 "dtrial" and "new_rtx" from rtx to rtx_insn *.
18792 (get_label_before): Strengthen return type and local "label" from
18793 rtx to rtx_insn *.
18794 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
18795 "next_trial", "next", prev". Strengthen local "delay_list" from
18796 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
18797 rtx_insn **.
18798 (follow_jumps): Strengthen return type, param "label" and locals
18799 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
18800 (fill_slots_from_thread): Strengthen return type, param
18801 "delay_list" from rtx to rtx_insn_list *. Strengthen params
18802 "insn", "thread", "opposite_thread" and locals "new_thread",
18803 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
18804 "sequence" from a checked cast to rtx_sequence so that we can call
18805 steal_delay_list_from_target and steal_delay_list_from_fallthrough
18806 with an rtx_sequence *.
18807 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
18808 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
18809 Strengthen local "delay_list" from rtx to rtx_insn_list *.
18810 (relax_delay_slots): Strengthen param "first" and locals "insn",
18811 "next", "trial", "delay_insn", "target_label" from rtx to
18812 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
18813 Introduce a local "trial_seq" for PATTERN (trial) of type
18814 rtx_sequence *, in both cases using methods of rtx_sequence.
18815 (dbr_schedule): Strengthen param "first" and locals "insn",
18816 "next", "epilogue_insn" from rtx to rtx_insn *.
18817
18818 2014-08-28 Richard Biener <rguenther@suse.de>
18819
18820 PR tree-optimization/62283
18821 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
18822 Do not peel loops for alignment where the vector loop likely
18823 doesn't run at least VF times.
18824
18825 2014-08-28 Bin Cheng <bin.cheng@arm.com>
18826
18827 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
18828 important_candidates. Consider all important candidates if
18829 IVS doesn't give any result. Remove check on ivs->upto.
18830 (try_add_cand_for): Call iv_ca_add_use only once.
18831
18832 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
18833 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18834 Anna Tikhonova <anna.tikhonova@intel.com>
18835 Ilya Tocar <ilya.tocar@intel.com>
18836 Andrey Turetskiy <andrey.turetskiy@intel.com>
18837 Ilya Verbin <ilya.verbin@intel.com>
18838 Kirill Yukhin <kirill.yukhin@intel.com>
18839 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18840
18841 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
18842 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
18843 masking.
18844 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
18845 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
18846 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
18847 (define_insn "*mul<mode>3"): Add EVEX version.
18848
18849 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
18850 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18851 Anna Tikhonova <anna.tikhonova@intel.com>
18852 Ilya Tocar <ilya.tocar@intel.com>
18853 Andrey Turetskiy <andrey.turetskiy@intel.com>
18854 Ilya Verbin <ilya.verbin@intel.com>
18855 Kirill Yukhin <kirill.yukhin@intel.com>
18856 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18857
18858 * config/i386/sse.md
18859 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
18860 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
18861 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
18862 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
18863 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
18864 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
18865 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
18866 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
18867 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
18868 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
18869 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
18870 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
18871 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
18872 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
18873 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
18874 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
18875
18876 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
18877 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18878 Anna Tikhonova <anna.tikhonova@intel.com>
18879 Ilya Tocar <ilya.tocar@intel.com>
18880 Andrey Turetskiy <andrey.turetskiy@intel.com>
18881 Ilya Verbin <ilya.verbin@intel.com>
18882 Kirill Yukhin <kirill.yukhin@intel.com>
18883 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18884
18885 * config/i386/sse.md
18886 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
18887 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
18888 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
18889
18890 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
18891 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18892 Anna Tikhonova <anna.tikhonova@intel.com>
18893 Ilya Tocar <ilya.tocar@intel.com>
18894 Andrey Turetskiy <andrey.turetskiy@intel.com>
18895 Ilya Verbin <ilya.verbin@intel.com>
18896 Kirill Yukhin <kirill.yukhin@intel.com>
18897 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18898
18899 * config/i386/sse.md
18900 (define_mode_iterator VI128_256): New.
18901 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
18902
18903 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
18904 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18905 Anna Tikhonova <anna.tikhonova@intel.com>
18906 Ilya Tocar <ilya.tocar@intel.com>
18907 Andrey Turetskiy <andrey.turetskiy@intel.com>
18908 Ilya Verbin <ilya.verbin@intel.com>
18909 Kirill Yukhin <kirill.yukhin@intel.com>
18910 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18911
18912 * config/i386/sse.md
18913 (define_mode_iterator VI8_256_512): New.
18914 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
18915 Ditto.
18916 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
18917 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
18918 Ditto.
18919 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
18920
18921 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
18922
18923 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
18924 pointer to the cumulative reloc value and return the value for
18925 this reloc instead.
18926 (compute_reloc_for_rtx): Take a const_rtx. Call
18927 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
18928 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
18929 for_each_rtx for the CONST case.
18930
18931 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
18932
18933 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
18934 (mark_constants_in_pattern): ...this new function to iterate over
18935 all the subrtxes.
18936 (mark_constants): Update accordingly.
18937
18938 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
18939
18940 * varasm.c: Include rtl-iter.h.
18941 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
18942 Remove the pointer to the cumulative hashval_t and just return
18943 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
18944 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
18945 Accumulate the hashval_ts here instead of const_rtx_hash_1.
18946
18947 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
18948
18949 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
18950 Give real type of data parameter. Remove return value.
18951 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
18952 to iterate over subrtxes.
18953
18954 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
18955
18956 * var-tracking.c (use_narrower_mode_test): Turn from being a
18957 for_each_rtx callback to being a function that examines each
18958 subrtx itself.
18959 (adjust_mems): Update accordingly.
18960
18961 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
18962
18963 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
18964 callback to being a function that examines each subrtx itself.
18965 Remove handling of null rtxes.
18966 (add_uses): Update accordingly.
18967
18968 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
18969
18970 * var-tracking.c: Include rtl-iter.h.
18971 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
18972 to being a function that examines each subrtx itself.
18973 (use_type): Update accordingly.
18974
18975 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
18976
18977 * store-motion.c: Include rtl-iter.h.
18978 (extract_mentioned_regs_1): Delete.
18979 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
18980 for_each_rtx to iterate over subrtxes.
18981
18982 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
18983
18984 * sel-sched.c: Include rtl-iter.h
18985 (count_occurrences_1): Delete.
18986 (count_occurrences_equiv): Turn rtxes into const_rtxes.
18987 Use FOR_EACH_SUBRTX rather than for_each_rtx.
18988
18989 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
18990
18991 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
18992 * rtlanal.c (tls_referenced_p_1): Delete.
18993 (tls_referenced_p): Take a const_rtx rather than an rtx.
18994 Use FOR_EACH_SUBRTX rather than for_each_rtx.
18995
18996 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
18997
18998 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
18999 (for_each_inc_dec): Take an rtx rather than an rtx *.
19000 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
19001 (cselib_record_sets): Likewise.
19002 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
19003 (check_for_inc_dec): Likewise.
19004 * rtlanal.c (for_each_inc_dec_ops): Delete.
19005 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
19006 rather than a pointer to the memory address. Replace
19007 for_each_inc_dec_ops argument with separate function and data
19008 arguments. Abort on non-autoinc addresses.
19009 (for_each_inc_dec_find_mem): Delete.
19010 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
19011 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
19012
19013 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19014
19015 * rtl.h (find_all_hard_regs): Declare.
19016 * rtlanal.c (find_all_hard_regs): New function.
19017 (record_hard_reg_uses_1): Delete.
19018 (record_hard_reg_uses): Use find_all_hard_regs.
19019
19020 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19021
19022 * rtl.h (replace_label_data): Delete.
19023 (replace_label): Take the old label, new label and update-nuses flag
19024 as direct arguments. Return void.
19025 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
19026 * rtlanal.c (replace_label): Update interface as above. Handle
19027 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
19028 iterator. Use FOR_EACH_SUBRTX_PTR.
19029
19030 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19031
19032 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
19033 with const_rtx parameters.
19034 * varasm.c (get_pool_constant): Likewise.
19035 * rtlanal.c (rtx_referenced_p_1): Delete.
19036 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
19037 Assert that the rtx we're looking for is nonnull. Allow searches
19038 for constant pool SYMBOL_REFs.
19039
19040 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19041
19042 * reload1.c: Include rtl-iter.h.
19043 (note_reg_elim_costly): Turn from being a for_each_rtx callback
19044 to being a function that examines each subrtx itself.
19045 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
19046
19047 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19048
19049 * regcprop.c (cprop_find_used_regs_1): Delete.
19050 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
19051
19052 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19053
19054 * regcprop.c: Include rtl-iter.h.
19055 (kill_value): Take a const_rtx.
19056 (kill_autoinc_value): Turn from being a for_each_rtx callback
19057 to being a function that examines each subrtx itself.
19058 (copyprop_hardreg_forward_1): Update accordingly.
19059
19060 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19061
19062 * reg-stack.c: Include rtl-iter.h.
19063 (subst_stack_regs_in_debug_insn): Delete.
19064 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
19065 instead of for_each_rtx.
19066
19067 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19068
19069 * lower-subreg.c (find_decomposable_subregs): Turn from being
19070 a for_each_rtx callback to being a function that examines each
19071 subrtx itself. Remove handling of null rtxes.
19072 (decompose_multiword_subregs): Update accordingly.
19073
19074 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19075
19076 * lower-subreg.c (adjust_decomposed_uses): Delete.
19077 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
19078 Remove handling of null rtxes.
19079
19080 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19081
19082 * lower-subreg.c: Include rtl-iter.h.
19083 (resolve_subreg_use): Turn from being a for_each_rtx callback
19084 to being a function that examines each subrtx itself. Remove
19085 handling of null rtxes.
19086 (resolve_reg_notes, resolve_simple_move): Update accordingly.
19087 (decompose_multiword_subregs): Likewise.
19088
19089 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19090
19091 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
19092 to being a function that examines each subrtx itself.
19093 (simplify_using_condition, simplify_using_initial_values): Update
19094 accordingly.
19095
19096 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19097
19098 * loop-iv.c: Include rtl-iter.h.
19099 (find_single_def_src): New function.
19100 (replace_single_def_regs): Turn from being a for_each_rtx callback
19101 to being a function that examines each subrtx itself.
19102 (replace_in_expr, simplify_using_initial_values): Update accordingly.
19103
19104 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19105
19106 * jump.c (eh_returnjump_p_1): Delete.
19107 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
19108 Remove handling of null rtxes.
19109
19110 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19111
19112 * jump.c: Include rtl-iter.h.
19113 (returnjump_p_1): Delete.
19114 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
19115 Remove handling of null rtxes.
19116
19117 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19118
19119 * ira.c: Include rtl-iter.h.
19120 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
19121 to being a function that examines each subrtx itself. Remove
19122 handling of null rtxes.
19123 (update_equiv_regs): Update call accordingly.
19124
19125 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19126
19127 * fwprop.c: Include rtl-iter.h.
19128 (varying_mem_p): Turn from being a for_each_rtx callback to being
19129 a function that examines each subrtx itself.
19130 (propagate_rtx): Update accordingly.
19131
19132 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19133
19134 * function.c: Include rtl-iter.h
19135 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
19136 callback to being a function that examines each subrtx itself.
19137 Return the changed flag.
19138 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
19139 (instantiate_virtual_regs): Update calls accordingly.
19140
19141 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19142
19143 * final.c: Include rtl-iter.h.
19144 (mark_symbol_ref_as_used): Delete.
19145 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
19146 for_each_rtx.
19147
19148 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19149
19150 * emit-rtl.c: Include rtl-iter.h.
19151 (find_auto_inc): Turn from being a for_each_rtx callback to being
19152 a function that examines each subrtx itself. Assume the first operand
19153 to an RTX_AUTOINC is the automodified register.
19154 (try_split): Update call accordingly.
19155
19156 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19157
19158 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
19159 Return a bool, inverting the result so that 0/false means "not ok".
19160 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
19161 subrtxes of a CONST.
19162 (mem_loc_descriptor, add_const_value_attribute)
19163 (resolve_addr_in_expr): Update calls accordingly.
19164
19165 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19166
19167 * dwarf2out.c: Include rtl-iter.h.
19168 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
19169 Remove unused data parameter. Return a bool, inverting the result
19170 so that 0/false means "not ok".
19171 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
19172 instead of for_each_rtx.
19173
19174 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19175
19176 * dse.c: Include rtl-iter.h.
19177 (check_mem_read_rtx): Change void * parameter to real type.
19178 Remove return value.
19179 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
19180 for_each_rtx. Don't handle null rtxes.
19181
19182 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19183
19184 * df-problems.c: Include rtl-iter.h.
19185 (find_memory): Turn from being a for_each_rtx callback to being
19186 a function that examines each subrtx itself. Continue to look for
19187 volatile references even after a nonvolatile one has been found.
19188 (can_move_insns_across): Update calls accordingly.
19189
19190 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19191
19192 * ddg.c (walk_mems_2, walk_mems_1): Delete.
19193 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
19194 to iterate over subrtxes. Return a bool rather than an int.
19195
19196 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19197
19198 * ddg.c: Include rtl-iter.h.
19199 (mark_mem_use_1): Rename to...
19200 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
19201 instead of for_each_rtx.
19202 (mem_read_insn_p): Update accordingly.
19203
19204 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19205
19206 * cse.c (change_cc_mode_args): Delete.
19207 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
19208 a function that examines each subrtx itself. Take the fields of
19209 change_cc_mode_args as argument and return void.
19210 (cse_change_cc_mode_insn): Update calls accordingly.
19211
19212 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19213
19214 * cse.c (is_dead_reg): Change argument to const_rtx.
19215 (dead_debug_insn_data): Delete.
19216 (is_dead_debug_insn): Expand commentary. Turn from being a
19217 for_each_rtx callback to being a function that examines
19218 each subrtx itself. Take the fields of dead_debug_insn_data
19219 as argument.
19220 (delete_trivially_dead_insns): Update call accordingly.
19221
19222 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19223
19224 * cse.c (check_for_label_ref): Move earlier in file. Turn from
19225 being a for_each_rtx callback to being a function that examines
19226 each subrtx itself.
19227 (cse_extended_basic_block): Update call accordingly.
19228
19229 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19230
19231 * cse.c (check_dependence_data): Delete.
19232 (check_dependence): Change from being a for_each_rtx callback to being
19233 a function that examines all subrtxes itself. Don't handle null rtxes.
19234 (invalidate): Update call accordingly.
19235
19236 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19237
19238 * cse.c: Include rtl-iter.h.
19239 (approx_reg_cost_1): Delete.
19240 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
19241 Don't handle null rtxes.
19242
19243 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19244
19245 * cfgcleanup.c: Include rtl-iter.h.
19246 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
19247 to being a function that examines each subrtx itself.
19248 (thread_jump): Update accordingly.
19249
19250 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19251
19252 * combine-stack-adj.c: Include rtl-iter.h.
19253 (record_stack_refs_data): Delete.
19254 (record_stack_refs): Turn from being a for_each_rtx callback
19255 to being a function that examines each subrtx itself.
19256 Take a pointer to the reflist. Invert sense of return value
19257 so that true means success and false means failure. Don't
19258 handle null rtxes.
19259 (combine_stack_adjustments_for_block): Update accordingly.
19260
19261 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19262
19263 * combine.c (record_truncated_value): Turn from being a for_each_rtx
19264 callback to a function that takes an rtx and returns a bool
19265 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
19266 for_each_rtx.
19267
19268 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19269
19270 * combine.c: Include rtl-iter.h.
19271 (unmentioned_reg_p_1): Delete.
19272 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
19273 Don't handle null rtxes.
19274
19275 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19276
19277 * calls.c: Include rtl-iter.h.
19278 (internal_arg_pointer_based_exp_1): Delete.
19279 (internal_arg_pointer_based_exp): Take a const_rtx.
19280 Use FOR_EACH_SUBRTX to iterate over subrtxes.
19281
19282 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19283
19284 * caller-save.c: Include rtl-iter.h.
19285 (add_used_regs_1): Delete.
19286 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
19287 to iterate over subrtxes. Assert that any remaining pseudos
19288 have been spilled.
19289
19290 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19291
19292 * bt-load.c: Include rtl-iter.h.
19293 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
19294 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
19295 to iterate over subrtxes.
19296 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
19297 find_btr_use rather than btr_referenced_p.
19298
19299 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19300
19301 * alias.c: Include rtl-iter.h.
19302 (refs_newer_value_cb): Delete.
19303 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
19304
19305 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
19306
19307 * rtl-iter.h: New file.
19308 * rtlanal.c: Include it.
19309 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
19310 (generic_subrtx_iterator <T>::add_single_to_queue)
19311 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
19312 (generic_subrtx_iterator <T>::free_array): New functions.
19313 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
19314 (generic_subrtx_iterator <const_rtx_accessor>)
19315 (generic_subrtx_iterator <rtx_var_accessor>
19316 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
19317 (setup_reg_subrtx_bounds): New function.
19318 (init_rtlanal): Call it.
19319
19320 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
19321
19322 PR target/62261
19323 * config/sh/sh.md (ashlsi3): Handle negative shift count for
19324 TARGET_SHMEDIA.
19325 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
19326
19327 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
19328
19329 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
19330
19331 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19332
19333 * rtl.h (JUMP_LABEL_AS_INSN): New.
19334
19335 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19336
19337 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
19338 rtx_expr_list **.
19339 (alloc_EXPR_LIST): Strengthen return type from rtx to
19340 rtx_expr_list *.
19341 (remove_free_EXPR_LIST_node): Likewise for param.
19342 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
19343 from rtx to rtx_expr_list *.
19344 * sched-int.h (struct deps_desc): Strengthen fields
19345 "pending_read_mems" and "pending_write_mems" from rtx to
19346 rtx_expr_list *.
19347
19348 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
19349 rtx to rtx_expr_list *.
19350 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
19351 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
19352 rtx_expr_list **.
19353 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
19354 from rtx to rtx_expr_list *.
19355 * loop-iv.c (simplify_using_initial_values): Strengthen local
19356 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
19357 "pnote_next" from rtx * to rtx_expr_list **.
19358 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
19359 param "exprp" from rtx * to rtx_expr_list **.
19360 (add_insn_mem_dependence): Strengthen local "mem_list" from
19361 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
19362 to rtx_expr_list *.
19363 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
19364 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
19365 param "old_mems_p" from rtx * to rtx_expr_list **.
19366 * var-tracking.c (struct adjust_mem_data): Strengthen field
19367 "side_effects" from rtx to rtx_expr_list *.
19368 (adjust_insn): Replace NULL_RTX with NULL when assigning to
19369 rtx_expr_list *.
19370 (prepare_call_arguments): Likewise.
19371
19372 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19373
19374 * function.h (struct rtl_data): Strengthen field
19375 "x_stack_slot_list" from rtx to rtx_expr_list *.
19376
19377 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
19378 when assigning to stack_slot_list.
19379
19380 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19381
19382 * function.h (struct rtl_data): Strengthen field
19383 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
19384 * rtl.h (remove_node_from_expr_list): Strengthen second param from
19385 rtx * to rtx_expr_list **.
19386
19387 * cfgbuild.c (make_edges): In loop over
19388 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
19389 rtx_expr_list *, and use methods of the latter class to clarify
19390 the code.
19391 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
19392 rtx_expr_list *, and use methods of the latter class to clarify
19393 the code.
19394 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
19395 * reload1.c (set_initial_label_offsets): Likewise for local "x".
19396 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
19397 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
19398 to rtx_expr_list *. Use methods of the latter class to clarify
19399 the code.
19400
19401 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19402
19403 * function.h (struct expr_status): Strengthen field
19404 "x_forced_labels" from rtx to rtx_expr_list *.
19405
19406 * cfgbuild.c (make_edges): Split local "x" into two locals,
19407 strengthening one from rtx to rtx_expr_list *, and using methods
19408 of said class.
19409 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
19410 loop over forced_labels, introduce strengthen it from rtx to
19411 rtx_expr_list *, using methods to clarify the code.
19412 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
19413 to rtx_expr_list *, using methods of said class to clarify the
19414 code.
19415 * reload1.c (set_initial_label_offsets): Split local "x" into two
19416 per-loop variables, strengthening the first from rtx to
19417 rtx_expr_list * and using methods.
19418
19419 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19420
19421 * coretypes.h (class rtx_expr_list): Add forward declaration.
19422 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
19423 * gengenrtl.c (special_rtx): Add EXPR_LIST.
19424 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
19425 invariant: GET_CODE (X) == EXPR_LIST.
19426 (is_a_helper <rtx_expr_list *>::test): New.
19427 (rtx_expr_list::next): New.
19428 (rtx_expr_list::element): New.
19429 (gen_rtx_EXPR_LIST): New.
19430
19431 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19432
19433 * varasm.c (mark_constants): Convert a GET_CODE check into a
19434 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
19435 Use methods of rtx_sequence to clarify the code.
19436
19437 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19438
19439 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
19440 local "seq" via a checked cast, and use methods of rtx_sequence
19441 to simplify the code.
19442
19443 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19444
19445 * resource.c (mark_referenced_resources): Strengthen local
19446 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
19447 using methods of rtx_sequence to clarify the code.
19448 (find_dead_or_set_registers): Within the switch statement, convert
19449 a GET_CODE check to a dyn_cast, introducing local "seq". Within
19450 the JUMP_P handling, introduce another local "seq", adding a
19451 checked cast to rtx_sequence *. In both cases, use methods of
19452 rtx_sequence to clarify the code.
19453 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
19454 via a checked cast, and use methods of rtx_sequence to simplify
19455 the code.
19456
19457 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19458
19459 * reorg.c (redundant_insn): In two places in the function, replace
19460 a check of GET_CODE with a dyn_cast, introducing local "seq", and
19461 usings methods of rtx_sequence to clarify the code.
19462
19463 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19464
19465 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
19466 local "seq" with a checked cast, and use methods of rtx_sequence
19467 to clarify the code.
19468
19469 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19470
19471 * function.c (contains): Introduce local "seq" for PATTERN (insn),
19472 with a checked cast, in the region for where we know it's a
19473 SEQUENCE. Use methods of rtx_sequence.
19474
19475 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19476
19477 * final.c (get_attr_length_1): Replace GET_CODE check with a
19478 dyn_cast, introducing local "seq" and the use of methods of
19479 rtx_sequence.
19480 (shorten_branches): Likewise, introducing local "body_seq".
19481 Strengthen local "inner_insn" from rtx to rtx_insn *.
19482 (reemit_insn_block_notes): Replace GET_CODE check with a
19483 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
19484 Use methods of rtx_sequence.
19485 (final_scan_insn): Likewise, introducing local "seq" for when
19486 "body" is known to be a SEQUENCE, using its methods.
19487
19488 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19489
19490 * except.c (can_throw_external): Strengthen local "seq" from rtx
19491 to rtx_sequence *. Use methods of rtx_sequence.
19492 (insn_nothrow_p): Likewise.
19493
19494 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19495
19496 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
19497 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
19498 Use methods of rtx_sequence.
19499 (scan_trace): Likewise for local "pat".
19500
19501 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19502
19503 * coretypes.h (class rtx_sequence): Add forward declaration.
19504 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
19505 invariant: GET_CODE (X) == SEQUENCE.
19506 (is_a_helper <rtx_sequence *>::test): New.
19507 (is_a_helper <const rtx_sequence *>::test): New.
19508 (rtx_sequence::len): New.
19509 (rtx_sequence::element): New.
19510 (rtx_sequence::insn): New.
19511
19512 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19513
19514 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
19515 rtx_insn_list **.
19516 (alloc_INSN_LIST): Strengthen return type from rtx to
19517 rtx_insn_list *.
19518 (copy_INSN_LIST): Likewise for return type and param.
19519 (concat_INSN_LIST): Likewise for both params and return type.
19520 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
19521 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
19522 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
19523 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
19524
19525 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
19526 "implicit_sets", "control_uses", "clobbers" from rtx to
19527 rtx_insn_list *.
19528 (struct deps_desc): Likewise for fields "pending_read_insns",
19529 "pending_write_insns", "pending_jump_insns",
19530 "last_pending_memory_flush", "last_function_call",
19531 "last_function_call_may_noreturn", "sched_before_next_call",
19532 "sched_before_next_jump".
19533 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
19534 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
19535
19536 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
19537 from rtx to rtx_insn_list *.
19538 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
19539 rtx_insn_list *.
19540
19541 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
19542 to rtx_insn_list **.
19543 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
19544 rtx_insn_list *.
19545 (queue_insn): Likewise for local "link".
19546 (struct haifa_saved_data): Strengthen field "insn_queue" from
19547 rtx * to rtx_insn_list **.
19548 (save_backtrack_point): Update allocation of save->insn_queue to
19549 reflect the strengthening of elements from rtx to rtx_insn_list *.
19550 (queue_to_ready): Strengthen local "link" from rtx to
19551 rtx_insn_list *; use methods "next" and "insn" when traversing the
19552 list.
19553 (early_queue_to_ready): Likewise for locals "link", "next_link",
19554 "prev_link".
19555 (schedule_block): Update allocation of insn_queue to reflect the
19556 strengthening of elements from rtx to rtx_insn_list *. Strengthen
19557 local "link" from rtx to rtx_insn_list *, and use methods when
19558 working it.
19559 (add_to_speculative_block): Strengthen locals "twins" and
19560 "next_node" from rtx to rtx_insn_list *, and use methods when
19561 working with them. Strengthen local "twin" from rtx to
19562 rtx_insn *, eliminating a checked cast.
19563 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
19564 from rtx to rtx_insn_list *, and use methods when working with
19565 them.
19566
19567 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
19568 from rtx to rtx_insn_list *, adding a checked cast.
19569 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
19570 rtx_insn_list **.
19571 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
19572 "newlink" from rtx to rtx_insn_list *. Strengthen local
19573 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
19574 from rtx to rtx_insn *.
19575 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
19576 from rtx to rtx_insn_list *. Use methods of the latter class.
19577 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
19578 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
19579 (remove_free_INSN_LIST_node): Strengthen return type and local
19580 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
19581 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
19582 rtx_insn_list *, using "insn" method.
19583
19584 * sched-deps.c (add_dependence_list): Strengthen param "list"
19585 from rtx to rtx_insn_list *, and use methods when working with it.
19586 (add_dependence_list_and_free): Strengthen param "listp" from
19587 rtx * to rtx_insn_list **.
19588 (remove_from_dependence_list): Strenghten param "listp" from rtx *
19589 to rtx_insn_list **, and use methods when working with *listp.
19590 (remove_from_both_dependence_lists): Strengthen param "listp" from
19591 rtx * to rtx_insn_list **
19592 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
19593 to rtx_insn_list **. Eliminate local "link", in favor of two new
19594 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
19595 respectively.
19596 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
19597 by introducing local "cond_deps".
19598 (remove_from_deps): Strengthen param "insn" from rtx to
19599 rtx_insn *.
19600
19601 * sched-rgn.c (concat_insn_mem_list): Strengthen param
19602 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
19603 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
19604 Use methods of rtx_insn_list.
19605
19606 * store-motion.c (struct st_expr): Strengthen fields
19607 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
19608 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
19609 rtx_insn_list *.
19610 (find_moveable_store): Split out "tmp" into multiple more-tightly
19611 scoped locals. Use methods of rtx_insn_list *.
19612 (compute_store_table): Strengthen local "tmp" from rtx to
19613 rtx_insn *. Use methods of rtx_insn_list *.
19614
19615 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19616
19617 * coretypes.h (class rtx_insn_list): Add forward declaration.
19618 * rtl.h (class rtx_insn_list): New subclass of rtx_def
19619 (is_a_helper <rtx_insn_list *>::test): New.
19620 (rtx_insn_list::next): New.
19621 (rtx_insn_list::insn): New.
19622 (gen_rtx_INSN_LIST): Add prototype.
19623 * emit-rtl.c (gen_rtx_INSN_LIST): New.
19624 * gengenrtl.c (special_rtx): Add INSN_LIST.
19625
19626 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19627
19628 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
19629 "prev" from rtx to rtx_insn *.
19630
19631 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19632
19633 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
19634 functions. Require merely an rtx for now, not an rtx_insn *.
19635 (BLOCK_FOR_INSN): Likewise.
19636 (INSN_LOCATION): Likewise.
19637 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
19638
19639 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19640
19641 * rtl.h (PATTERN): Convert this macro into a pair of inline
19642 functions, for now, requiring const_rtx and rtx.
19643
19644 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19645
19646 * target.def (unwind_emit): Strengthen param "insn" from rtx to
19647 rtx_insn *.
19648 (final_postscan_insn): Likewise.
19649 (adjust_cost): Likewise.
19650 (adjust_priority): Likewise.
19651 (variable_issue): Likewise.
19652 (macro_fusion_pair_p): Likewise.
19653 (dfa_post_cycle_insn): Likewise.
19654 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
19655 (first_cycle_multipass_issue): Likewise.
19656 (dfa_new_cycle): Likewise.
19657 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
19658 (speculate_insn): Likewise for param "insn".
19659 (gen_spec_check): Likewise for params "insn" and "label".
19660 (get_insn_spec_ds): Likewise for param "insn".
19661 (get_insn_checked_ds): Likewise.
19662 (dispatch_do): Likewise.
19663 (dispatch): Likewise.
19664 (cannot_copy_insn_p): Likewise.
19665 (invalid_within_doloop): Likewise.
19666 (legitimate_combined_insn): Likewise.
19667 (needed): Likewise.
19668 (after): Likewise.
19669
19670 * doc/tm.texi: Automatically updated to reflect changes to
19671 target.def.
19672
19673 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
19674 working with insn.
19675 (schedule_block): Likewise.
19676 (sched_init): Likewise.
19677 (sched_speculate_insn): Strengthen param "insn" from rtx to
19678 rtx_insn *.
19679 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
19680 working with insn.
19681 * hooks.c (hook_bool_rtx_true): Rename to...
19682 hook_bool_rtx_insn_true): ...this, and strengthen first param from
19683 rtx to rtx_insn *.
19684 (hook_constcharptr_const_rtx_null): Rename to...
19685 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
19686 first param from const_rtx to const rtx_insn *.
19687 (hook_bool_rtx_int_false): Rename to...
19688 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
19689 param from rtx to rtx_insn *.
19690 (hook_void_rtx_int): Rename to...
19691 (hook_void_rtx_insn_int): ...this, and strengthen first param from
19692 rtx to rtx_insn *.
19693
19694 * hooks.h (hook_bool_rtx_true): Rename to...
19695 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
19696 rtx to rtx_insn *.
19697 (hook_bool_rtx_int_false): Rename to...
19698 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
19699 param from rtx to rtx_insn *.
19700 (hook_void_rtx_int): Rename to...
19701 (hook_void_rtx_insn_int): ...this, and strengthen first param from
19702 rtx to rtx_insn *.
19703 (hook_constcharptr_const_rtx_null): Rename to...
19704 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
19705 first param from const_rtx to const rtx_insn *.
19706
19707 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
19708 and local "prev" from rtx to rtx_insn *.
19709
19710 * sched-int.h (sched_speculate_insn): Strengthen first param from
19711 rtx to rtx_insn *.
19712
19713 * sel-sched.c (create_speculation_check): Likewise for local "label".
19714 * targhooks.c (default_invalid_within_doloop): Strengthen param
19715 "insn" from const_rtx to const rtx_insn *.
19716 * targhooks.h (default_invalid_within_doloop): Strengthen param
19717 from const_rtx to const rtx_insn *.
19718
19719 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
19720 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
19721
19722 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
19723 "insn".
19724 (arc_invalid_within_doloop): Likewise, with const.
19725
19726 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
19727 (arm_cannot_copy_insn_p): Likewise for param "insn".
19728 (arm_unwind_emit): Likewise.
19729
19730 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
19731 "dep_insn".
19732
19733 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
19734 (c6x_variable_issue): Likewise. Removed now-redundant checked
19735 cast.
19736 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
19737
19738 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
19739 Likewise for param "insn".
19740 (epiphany_mode_after): Likewise.
19741 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
19742 params "insn", "dep_insn".
19743 (epiphany_mode_needed): Likewise for param "insn".
19744 (epiphany_mode_after): Likewise.
19745
19746 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
19747 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
19748 (ix86_avx_u128_mode_needed): Likewise.
19749 (ix86_i387_mode_needed): Likewise.
19750 (ix86_mode_needed): Likewise.
19751 (ix86_avx_u128_mode_after): Likewise.
19752 (ix86_mode_after): Likewise.
19753 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
19754 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
19755 (ix86_adjust_priority): Likewise for param "insn".
19756 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
19757 (do_dispatch): Likewise.
19758 (has_dispatch): Likewise.
19759 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
19760
19761 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
19762 reflect renaming of default hook implementation from
19763 hook_constcharptr_const_rtx_null to
19764 hook_constcharptr_const_rtx_insn_null.
19765 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
19766 rtx to rtx_insn *.
19767 (ia64_variable_issue): Likewise for param "insn".
19768 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
19769 (ia64_dfa_new_cycle): Likewise.
19770 (ia64_get_insn_spec_ds): Likewise.
19771 (ia64_get_insn_checked_ds): Likewise.
19772 (ia64_speculate_insn): Likewise.
19773 (ia64_gen_spec_check): Likewise for params "insn", "label".
19774 (ia64_asm_unwind_emit): Likewise for param "insn".
19775
19776 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
19777
19778 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
19779 "insn", "def_insn".
19780 (m68k_sched_variable_issue): Likewise for param "insn".
19781
19782 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
19783 "def_insn".
19784
19785 * config/microblaze/microblaze.c (microblaze_adjust_cost):
19786 Likewise for params "insn", "dep".
19787
19788 * config/mips/mips.c (mips_adjust_cost): Likewise.
19789 (mips_variable_issue): Likewise for param "insn".
19790 (mips_final_postscan_insn): Likewise.
19791
19792 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
19793 for params "insn", "dep".
19794
19795 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
19796 "dep_insn".
19797 (pa_adjust_priority): Likewise for param "insn".
19798
19799 * config/picochip/picochip.c (picochip_sched_adjust_cost):
19800 Likewise for params "insn", "dep_insn".
19801
19802 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
19803 param "insn".
19804 (rs6000_variable_issue): Likewise.
19805 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
19806 (rs6000_debug_adjust_cost): Likewise.
19807 (rs6000_adjust_priority): Likewise for param "insn".
19808 (rs6000_use_sched_lookahead_guard): Likewise.
19809 (get_next_active_insn): Likewise for return type and both params.
19810 (redefine_groups): Likewise for params "prev_head_insn", "tail"
19811 and locals "insn", "next_insn".
19812 (pad_groups): Likewise.
19813
19814 * config/s390/s390.c (s390_adjust_priority): Likewise for param
19815 "insn".
19816 (s390_cannot_copy_insn_p): Likewise.
19817 (s390_sched_variable_issue): Likewise for third param, eliminating
19818 checked cast.
19819 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
19820 default hook implementation from hook_constcharptr_const_rtx_null
19821 to hook_constcharptr_const_rtx_insn_null.
19822
19823 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
19824 from rtx to rtx_insn *.
19825 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
19826 (sh_variable_issue): Likewise for param "insn".
19827 (sh_dfa_new_cycle): Likewise.
19828 (sh_mode_needed): Likewise.
19829 (sh_mode_after): Likewise.
19830
19831 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
19832 params "insn", "dep_insn".
19833 (hypersparc_adjust_cost): Likewise.
19834 (sparc_adjust_cost): Likewise.
19835
19836 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
19837 param, eliminated checked cast.
19838 (spu_sched_adjust_cost): Likewise for first and third params.
19839
19840 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
19841 params "insn" and "dep_insn" from rtx to rtx_insn *.
19842
19843 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
19844
19845 2014-08-27 David Malcolm <dmalcolm@redhat.com>
19846
19847 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
19848 (set_is_load_p): ...this, updating to work on a SET pattern rather
19849 than an insn.
19850 (is_store_insn): Rename to...
19851 (set_is_store_p): ...this, updating to work on a SET pattern
19852 rather than an insn.
19853 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
19854 top of function to where it is needed. Rewrite the bogus
19855 condition that checks for "insn" and "dep" being PARALLEL to
19856 instead use single_set, introducing locals "insn_set" and
19857 "dep_set". Given that we only ever returned "cost" for a non-pair
19858 of SETs, bail out early if we don't have a pair of SET.
19859 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
19860 use the new locals "insn_set" and "dep_set", and update calls to
19861 is_load_insn and is_store_insn to be calls to set_is_load_p and
19862 set_is_store_p.
19863
19864 2014-08-27 Guozhi Wei <carrot@google.com>
19865
19866 PR target/62262
19867 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
19868 amount before using it.
19869
19870 2014-08-27 Richard Biener <rguenther@suse.de>
19871
19872 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
19873 get_maxval_strlen inside a more useful API.
19874 (gimple_fold_builtin_with_strlen): Remove and fold into ...
19875 (gimple_fold_builtin): ... caller.
19876 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
19877 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
19878 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
19879 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
19880 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
19881 gimple_fold_builtin_sprintf): Adjust to compute maxval
19882 themselves.
19883
19884 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
19885
19886 PR other/62248
19887 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
19888
19889 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
19890 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19891 Anna Tikhonova <anna.tikhonova@intel.com>
19892 Ilya Tocar <ilya.tocar@intel.com>
19893 Andrey Turetskiy <andrey.turetskiy@intel.com>
19894 Ilya Verbin <ilya.verbin@intel.com>
19895 Kirill Yukhin <kirill.yukhin@intel.com>
19896 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19897
19898 * config/i386/sse.md
19899 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
19900 Use `concat_tg_mode' attribute to determine asm register size.
19901
19902 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
19903 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19904 Anna Tikhonova <anna.tikhonova@intel.com>
19905 Ilya Tocar <ilya.tocar@intel.com>
19906 Andrey Turetskiy <andrey.turetskiy@intel.com>
19907 Ilya Verbin <ilya.verbin@intel.com>
19908 Kirill Yukhin <kirill.yukhin@intel.com>
19909 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19910
19911 * config/i386/sse.md
19912 (define_mode_iterator VI48_AVX512VL): New.
19913 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
19914 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
19915 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
19916 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
19917 with VI1): Change mode iterator.
19918 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
19919 with VI_ULOADSTORE_BW_AVX512VL): New.
19920 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
19921 with VI_ULOADSTORE_F_AVX512VL): Ditto.
19922 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
19923 with VI1): Change mode iterator.
19924 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
19925 with VI_ULOADSTORE_BW_AVX512VL): New.
19926 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
19927 with VI_ULOADSTORE_F_AVX512VL): Ditto.
19928 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
19929 with VI1): Change mode iterator.
19930 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
19931 with VI_ULOADSTORE_BW_AVX512VL): New.
19932 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
19933 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
19934 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
19935 (define_insn "<avx512>_storedqu<mode>_mask" with
19936 VI48_AVX512VL): New.
19937 (define_insn "<avx512>_storedqu<mode>_mask" with
19938 VI12_AVX512VL): Ditto.
19939
19940 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
19941 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19942 Anna Tikhonova <anna.tikhonova@intel.com>
19943 Ilya Tocar <ilya.tocar@intel.com>
19944 Andrey Turetskiy <andrey.turetskiy@intel.com>
19945 Ilya Verbin <ilya.verbin@intel.com>
19946 Kirill Yukhin <kirill.yukhin@intel.com>
19947 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19948
19949 * config/i386/sse.md
19950 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
19951 (define_mode_iterator VI48_AVX512BW): New.
19952 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
19953 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
19954 with VI48_AVX2_48_AVX512F): New.
19955 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
19956 with VI2_AVX512VL): Ditto.
19957
19958 2014-08-27 Richard Biener <rguenther@suse.de>
19959
19960 PR middle-end/62239
19961 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
19962 (fold_builtin_3): Do not fold strcat_chk here.
19963 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
19964 from builtins.c.
19965 (gimple_fold_builtin): Fold strcat_chk here.
19966
19967 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
19968
19969 * dwarf2out.h (dwarf2out_decl): Remove prototype.
19970 * dwarf2out.c (dwarf2out_decl): Make static.
19971
19972 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
19973
19974 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
19975
19976 2014-08-26 David Malcolm <dmalcolm@redhat.com>
19977
19978 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
19979 from rtx to rtx_insn *.
19980 (cselib_lookup_from_insn): Likewise for final param.
19981 (cselib_subst_to_values_from_insn): Likewise.
19982 (cselib_add_permanent_equiv): Likewise.
19983
19984 * cselib.c (cselib_current_insn): Likewise for this variable.
19985 (cselib_subst_to_values_from_insn): Likewise for param "insn".
19986 (cselib_lookup_from_insn): Likewise.
19987 (cselib_add_permanent_equiv): Likewise for param "insn" and local
19988 "save_cselib_current_insn".
19989 (cselib_process_insn): Replace use of NULL_RTX with NULL.
19990
19991 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
19992 from rtx to rtx_insn *.
19993
19994 2014-08-26 David Malcolm <dmalcolm@redhat.com>
19995
19996 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
19997 rtx_insn *.
19998
19999 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20000
20001 * df.h (df_dump_insn_problem_function): Strengthen first param of
20002 this callback from const_rtx to const rtx_insn *.
20003 (struct df_insn_info): Strengthen field "insn" from rtx to
20004 rtx_insn *.
20005 (DF_REF_INSN): Eliminate this function, reinstating the older
20006 macro definition.
20007 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
20008 (df_reg_defined): Likewise.
20009 (df_find_use): Likewise.
20010 (df_reg_used): Likewise.
20011 (df_dump_insn_top): Strengthen param 1 from const_rtx to
20012 const rtx_insn *.
20013 (df_dump_insn_bottom): Likewise.
20014 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
20015 (df_insn_debug_regno): Likewise.
20016 (debug_df_insn): Likewise.
20017 (df_rd_simulate_one_insn): Likewise for param 2.
20018 (df_word_lr_simulate_defs): Likewise for param 1.
20019 (df_word_lr_simulate_uses): Likewise.
20020 (df_md_simulate_one_insn): Likewise for param 2.
20021 (df_simulate_find_noclobber_defs): Likewise for param 1.
20022 (df_simulate_find_defs): Likewise.
20023 (df_simulate_defs): Likewise.
20024 (df_simulate_uses): Likewise.
20025 (df_simulate_one_insn_backwards): Likewise for param 2.
20026 (df_simulate_one_insn_forwards): Likewise.
20027 (df_uses_create): Likewise for param 2.
20028 (df_insn_create_insn_record): Likewise for param 1.
20029 (df_insn_delete): Likewise.
20030 (df_insn_rescan): Likewise.
20031 (df_insn_rescan_debug_internal): Likewise.
20032 (df_insn_change_bb): Likewise.
20033 (df_notes_rescan): Likewise.
20034 * rtl.h (remove_death): Likewise for param 2.
20035 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
20036 const rtx_insn *.
20037 * sched-int.h (reemit_notes): Strengthen param from rtx to
20038 rtx_insn *.
20039 * valtrack.h (propagate_for_debug): Likewise for param 1.
20040
20041 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
20042 local "tmp_rtx" from const_rtx to const rtx_insn *.
20043 * combine.c (remove_death): Strengthen param "insn" from rtx to
20044 rtx_insn *.
20045 (move_deaths): Likewise for local "where_dead".
20046 * cse.c (delete_trivially_dead_insns): Introduce local
20047 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
20048 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
20049 rtx_insn *.
20050 (df_reg_defined): Likewise.
20051 (df_find_use): Likewise.
20052 (df_reg_used): Likewise.
20053 (df_dump_insn_problem_data): Strengthen param "insn" from
20054 const_rtx to const rtx_insn *.
20055 (df_dump_insn_top): Likewise.
20056 (df_dump_insn_bottom): Likewise.
20057 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
20058 (df_insn_debug_regno): Likewise.
20059 (debug_df_insn): Likewise.
20060 (DF_REF_INSN): Delete.
20061 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
20062 from rtx to rtx_insn *.
20063 (df_chain_insn_top_dump): Strengthen param "insn" from
20064 const_rtx to const rtx_insn *.
20065 (df_chain_insn_bottom_dump): Likewise.
20066 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
20067 rtx_insn *.
20068 (df_word_lr_simulate_uses): Likewise.
20069 (df_print_note): Likewise.
20070 (df_remove_dead_and_unused_notes): Likewise.
20071 (df_set_unused_notes_for_mw): Likewise.
20072 (df_set_dead_notes_for_mw): Likewise.
20073 (df_create_unused_note): Likewise.
20074 (df_simulate_find_defs): Likewise.
20075 (df_simulate_find_uses): Likewise.
20076 (df_simulate_find_noclobber_defs): Likewise.
20077 (df_simulate_defs): Likewise.
20078 (df_simulate_uses): Likewise.
20079 (df_simulate_one_insn_backwards): Likewise.
20080 (df_simulate_one_insn_forwards): Likewise.
20081 (df_md_simulate_one_insn): Likewise.
20082 * df-scan.c (df_uses_create): Likewise.
20083 (df_insn_create_insn_record): Likewise.
20084 (df_insn_delete): Likewise.
20085 (df_insn_rescan): Likewise.
20086 (df_insn_rescan_debug_internal): Likewise.
20087 (df_insn_change_bb): Likewise.
20088 (df_notes_rescan): Likewise.
20089 (df_refs_add_to_chains): Likewise.
20090 (df_insn_refs_verify): Likewise.
20091 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
20092 when invoking df_insn_delete.
20093 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
20094 (set_unique_reg_note): Add checked cast.
20095 * final.c (cleanup_subreg_operands): Likewise.
20096 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
20097 "insn" from rtx to rtx_insn *.
20098 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
20099 "last" from rtx to rtx_insn *.
20100 * ira-emit.c (change_regs_in_insn): New function.
20101 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
20102 Invoke change_regs_in_insn rather than change_regs.
20103 * ira.c (update_equiv_regs): Strengthen locals "insn",
20104 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
20105 for_each_rtx_in_insn rather than for_each_rtx.
20106 * recog.c (confirm_change_group): Add checked casts.
20107 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
20108 Add checked cast.
20109 (peep2_fill_buffer): Add checked cast.
20110 * rtlanal.c (remove_note): Likewise.
20111 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
20112 locals "next" "end" from rtx to rtx_insn *.
20113
20114 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20115
20116 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
20117 to rtx_insn *.
20118 (struct reg_use_data): Likewise for field "insn".
20119 (insn_cost): Likewise for param.
20120 (real_insn_for_shadow): Likewise for return type and param.
20121 (increase_insn_priority): Likewise for param 1.
20122 (debug_dependencies): Likewise for both params.
20123
20124 * haifa-sched.c (insn_delay): Likewise for param "insn".
20125 (real_insn_for_shadow): Likewise for return type and param "insn".
20126 (update_insn_after_change): Likewise for param "insn".
20127 (recompute_todo_spec): Likewise for param "next" and locals "pro",
20128 "other".
20129 (insn_cost): Likewise for param "insn".
20130 (increase_insn_priority): Likewise.
20131 (calculate_reg_deaths): Likewise.
20132 (setup_insn_reg_pressure_info): Likewise.
20133 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
20134 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
20135 (model_recompute): Likewise.
20136 (must_restore_pattern_p): Likewise for param "next".
20137 (model_excess_cost): Likewise for param "insn".
20138 (queue_remove): Likewise.
20139 (adjust_priority): Likewise for param "prev".
20140 (update_register_pressure): Likewise for param "insn".
20141 (setup_insn_max_reg_pressure): Likewise for local "insn".
20142 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
20143 (model_add_to_schedule): Likewise.
20144 (model_reset_queue_indices): Likewise for local "insn".
20145 (unschedule_insns_until): Strengthen local "recompute_vec" from
20146 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
20147 "con" from rtx to rtx_insn *.
20148 (restore_last_backtrack_point): Likewise for both locals "x". Add
20149 checked casts.
20150 (estimate_insn_tick): Likewise for param "insn".
20151 (commit_schedule): Likewise for params "prev_head", "tail" and
20152 local "x".
20153 (verify_shadows): Likewise for locals "i1", "i2".
20154 (dump_insn_stream): Likewise for params "head", "tail" and locals
20155 "next_tail", "insn".
20156 (schedule_block): Likewise for locals "insn", "x". Add a checked
20157 cast.
20158 (fix_inter_tick): Likewise for params "head", "tail".
20159 (create_check_block_twin): Likewise for local "jump".
20160 (haifa_change_pattern): Likewise for param "insn".
20161 (haifa_speculate_insn): Likewise.
20162 (dump_new_block_header): Likewise for params "head", "tail".
20163 (fix_jump_move): Likewise for param "jump".
20164 (move_block_after_check): Likewise.
20165 (sched_init_insn_luid): Likewise for param "insn".
20166 (sched_init_luids): Likewise for local "insn".
20167 (insn_luid): Likewise for param "insn".
20168 (init_h_i_d): Likewise.
20169 (haifa_init_h_i_d): Likewise for local "insn".
20170 (haifa_init_insn): Likewise for param "insn".
20171 * sched-deps.c (add_dependence): Likewise for local "real_pro",
20172 "other".
20173 (create_insn_reg_use): Likewise for param "insn".
20174 (setup_insn_reg_uses): Likewise. Add a checked cast.
20175 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
20176 "tail" from rtx to rtx_insn *.
20177 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
20178 "insn", "next_tail".
20179
20180 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20181
20182 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
20183 from rtx to rtx_insn *.
20184 (model_add_to_schedule): Likewise for locals "start", "end",
20185 "iter".
20186
20187 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20188
20189 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
20190 rtx_insn *.
20191 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
20192 "to" and locals "insn", "next", "copy". Remove now-redundant
20193 checked cast.
20194
20195 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20196
20197 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
20198 rtx_insn * and param 4 from rtx * to rtx_insn **.
20199 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
20200 param 2 from rtx * to rtx_insn **.
20201
20202 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
20203 rtx_insn * and final param from rtx * to rtx_insn **.
20204
20205 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
20206 from rtx to rtx_insn *.
20207 (try_head_merge_bb): Likewise for both locals named "move_upto".
20208 * df-problems.c (can_move_insns_across): Likewise for params
20209 "from", "to", "across_from", "across_to" and locals "insn",
20210 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
20211 rtx_insn **.
20212 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
20213 from rtx to rtx_insn *.
20214 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
20215 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
20216 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
20217 rtx_insn *.
20218 (noce_try_abs): Likewise.
20219 (noce_get_condition): Likewise for param "jump". Strengthen param
20220 "earliest" from rtx * to rtx_insn **.
20221 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
20222 rtx_insn *.
20223 (find_cond_trap): Likewise.
20224 (dead_or_predicable): Likewise for local "earliest".
20225 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
20226 checked cast.
20227 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
20228 and local "prev". Strengthen param "earliest" from rtx * to
20229 rtx_insn **.
20230 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
20231 Strengthen param "earliest" from rtx * to rtx_insn **.
20232
20233 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20234
20235 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
20236 "to" and local "insn" from rtx to rtx_insn *.
20237
20238 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20239
20240 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
20241 from rtx to rtx_insn *.
20242 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
20243 (code_motion_path_driver): Likewise for local "last_insn".
20244 (simplify_changed_insns): Likewise for local "insn".
20245
20246 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20247
20248 * rtl.h (push_to_sequence): Strengthen param from rtx to
20249 rtx_insn *.
20250 (push_to_sequence2): Likewise for both params.
20251 (delete_insns_since): Likewise for param.
20252 (reorder_insns_nobb): Likewise for all three params.
20253 (set_new_first_and_last_insn): Likewise for both params.
20254
20255 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
20256 rtx_insn *. Remove now-redundant cast.
20257 (set_last_insn): Likewise.
20258
20259 * builtins.c (expand_builtin_return): Strengthen local
20260 "call_fusage" from rtx to rtx_insn *.
20261 * cfgrtl.c (create_basic_block_structure): Likewise for local
20262 "after".
20263 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
20264 "first", "last" and local "insn".
20265 (delete_insns_since): Likewise for param "from".
20266 (reorder_insns_nobb): Likewise for params "from", "to", "after"
20267 and local "x".
20268 (push_to_sequence): Likewise for param "first" and local "last".
20269 (push_to_sequence2): Likewise for params "first" and "last".
20270 * lra.c (emit_add3_insn): Likewise for local "last".
20271 (lra_emit_add): Likewise.
20272 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
20273 "last_insn".
20274 (process_address_1): Likewise for locals "insn", last".
20275 * modulo-sched.c (ps_first_note): Likewise for return type.
20276 * optabs.c (expand_binop_directly): Likewise for param "last".
20277
20278 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20279
20280 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
20281 to rtx_insn*.
20282 * emit-rtl.c (get_last_insn_anywhere): Likewise.
20283
20284 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20285
20286 * function.h (struct sequence_stack): Strengthen fields "first"
20287 and "last" from rtx to rtx_insn *.
20288 (struct emit_status): Likewise for fields "x_first_insn" and
20289 "x_last_insn".
20290
20291 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
20292 (set_first_insn): Add checked cast.
20293 (get_last_insn): Remove now-redundant checked cast.
20294 (set_last_insn): Add checked cast.
20295
20296 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
20297 "saved_first" and "saved_last" from rtx to rtx_insn *.
20298
20299 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20300
20301 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
20302 (unlink_insn_chain): Strengthen both params from rtx to
20303 rtx_insn *.
20304
20305 * cfgrtl.c (cfg_layout_function_header): Likewise for this
20306 variable.
20307 (unlink_insn_chain): Likewise for params "first" and "last".
20308 Remove now-redundant checked cast.
20309 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
20310 (fixup_reorder_chain): Strengthen local "insn" from rtx to
20311 rtx_insn *.
20312 * emit-rtl.c (link_insn_into_chain): Likewise for all three
20313 params.
20314 (add_insn): Likewise for param "insn" and local "prev".
20315 (add_insn_after_nobb): Likewise for both params and local "next".
20316 (add_insn_before_nobb): Likewise for both params and local "prev".
20317 (add_insn_after): Rename param "after" to "uncast_after",
20318 introducing local "after" with another checked cast.
20319 (add_insn_before): Rename params "insn" and "before", giving them
20320 "uncast_" prefixes, adding the old names back using checked casts.
20321 (emit_note_after): Likewise for param "after".
20322 (emit_note_before): Likewise for param "before".
20323 (emit_label): Add a checked cast.
20324
20325 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20326
20327 * cselib.h (cselib_record_sets_hook): Strengthen initial param
20328 "insn" from rtx to rtx_insn *.
20329
20330 * cselib.c (cselib_record_sets_hook): Likewise.
20331
20332 * var-tracking.c (add_with_sets): Likewise, renaming back from
20333 "uncast_insn" to "insn" and eliminating the checked cast from rtx
20334 to rtx_insn *.
20335
20336 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20337
20338 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
20339 and "header_" from rtx to rtx_insn *.
20340 (struct basic_block_d): Likewise for field "head_" within "x"
20341 field of union basic_block_il_dependent.
20342 (BB_HEAD): Drop function...
20343 (SET_BB_HEAD): ...and this function in favor of...
20344 (BB_HEAD): ...reinstate macro.
20345 (BB_END): Drop function...
20346 (SET_BB_END): ...and this function in favor of...
20347 (BB_END): ...reinstate macro.
20348 (BB_HEADER): Drop function...
20349 (SET_BB_HEADER): ...and this function in favor of...
20350 (BB_HEADER): ...reinstate macro.
20351
20352 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
20353 (fix_crossing_unconditional_branches): Likewise.
20354 * caller-save.c (save_call_clobbered_regs): Likewise.
20355 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
20356 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
20357 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
20358 (merge_blocks_move_successor_nojumps): Likewise.
20359 (outgoing_edges_match): Update use of for_each_rtx to
20360 for_each_rtx_in_insn.
20361 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
20362 (expand_gimple_cond): Likewise.
20363 (expand_gimple_tailcall): Likewise.
20364 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
20365 SET_BB_END.
20366 (construct_exit_block): Drop use of SET_BB_END.
20367 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
20368 rtx_insn *.
20369 (delete_insn): Rename param "insn" to "uncast_insn", introducing
20370 a new local "insn" with a checked cast to rtx_insn *. Drop use of
20371 SET_BB_HEAD and SET_BB_END.
20372 (create_basic_block_structure): Drop use of SET_BB_HEAD and
20373 SET_BB_END.
20374 (rtl_delete_block): Drop use of SET_BB_HEAD.
20375 (rtl_split_block): Drop use of SET_BB_END.
20376 (emit_nop_for_unique_locus_between): Likewise.
20377 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
20378 (block_label): Drop use of SET_BB_HEAD.
20379 (fixup_abnormal_edges): Drop use of SET_BB_END.
20380 (record_effective_endpoints): Drop use of SET_BB_HEADER.
20381 (relink_block_chain): Likewise.
20382 (fixup_reorder_chain): Drop use of SET_BB_END.
20383 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
20384 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
20385 rtx_insn **. Drop use of SET_BB_HEADER.
20386 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
20387 SET_BB_HEAD.
20388 (BB_HEAD): Delete this function.
20389 (SET_BB_HEAD): Likewise.
20390 (BB_END): Likewise.
20391 (SET_BB_END): Likewise.
20392 (BB_HEADER): Likewise.
20393 (SET_BB_HEADER): Likewise.
20394 * emit-rtl.c (add_insn_after): Rename param "insn" to
20395 "uncast_insn", adding a new local "insn" and a checked cast to
20396 rtx_insn *. Drop use of SET_BB_END.
20397 (remove_insn): Strengthen locals "next" and "prev" from rtx to
20398 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
20399 (reorder_insns): Drop use of SET_BB_END.
20400 (emit_insn_after_1): Strengthen param "first" and locals "last",
20401 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
20402 (emit_pattern_after_noloc): Add checked cast.
20403 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
20404 (restore_other_notes): Likewise.
20405 (move_insn): Likewise.
20406 (sched_extend_bb): Likewise.
20407 (fix_jump_move): Likewise.
20408 * ifcvt.c (noce_process_if_block): Likewise.
20409 (dead_or_predicable): Likewise.
20410 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
20411 * reg-stack.c (change_stack): Drop use of SET_BB_END.
20412 * sel-sched-ir.c (sel_move_insn): Likewise.
20413 * sel-sched.c (move_nop_to_previous_block): Likewise.
20414
20415 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
20416 SET_BB_END.
20417 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
20418
20419 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20420
20421 * basic-block.h (create_basic_block_structure): Strengthen params
20422 1 "head" and 2 "end" from rtx to rtx_insn *.
20423 * cfgrtl.c (create_basic_block_structure): Likewise.
20424 (rtl_create_basic_block): Update casts from void * to rtx to
20425 rtx_insn *, so that we can pass them as rtx_insn * to
20426 create_basic_block_structure.
20427 * sel-sched-ir.c (sel_create_basic_block): Likewise.
20428
20429 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20430
20431 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
20432 rtx_insn **.
20433 (check_for_inc_dec): Strengthen param "insn" from rtx to
20434 rtx_insn *.
20435
20436 * cselib.h (cselib_process_insn): Likewise.
20437
20438 * cselib.c (cselib_record_sets): Likewise.
20439 (cselib_process_insn): Likewise.
20440
20441 * dse.c (struct insn_info): Likewise for field "insn".
20442 (check_for_inc_dec_1): Likewise for local "insn".
20443 (check_for_inc_dec): Likewise for param "insn".
20444 (scan_insn): Likewise.
20445 (dse_step1): Likewise for local "insn".
20446
20447 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
20448 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
20449
20450 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20451
20452 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
20453 from rtx to rtx_insn *.
20454 (DEP_PRO): Delete this function and...
20455 (SET_DEP_PRO): ...this function in favor of...
20456 (DEP_PRO): ...reinstate this macro.
20457 (DEP_CON): Delete this function and...
20458 (SET_DEP_CON): ...this function in favor of...
20459 (DEP_CON): ...reinstate this old macro.
20460 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
20461 (init_dep): Likewise.
20462 (set_priorities): Likewise for both params.
20463 (sd_copy_back_deps): Likewise for params 1 and 2.
20464
20465 * haifa-sched.c (priority): Likewise for param "insn" and local
20466 "next".
20467 (set_priorities): Likewise for params "head" and "tail" and local
20468 "insn".
20469 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
20470 local "consumer".
20471 (add_to_speculative_block): Add a checked cast.
20472 (create_check_block_twin): Drop use of SET_DEP_CON.
20473 (add_jump_dependencies): Strengthen params "insn" and "jump" from
20474 rtx to rtx_insn *.
20475
20476 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
20477 Drop use of SET_DEP_PRO
20478 (init_dep): Strengthen params "pro" and "con" from rtx to
20479 rtx_insn *.
20480 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
20481 use of SET_DEP_CON.
20482 (DEP_PRO): Delete.
20483 (DEP_CON): Delete.
20484 (SET_DEP_PRO): Delete.
20485 (SET_DEP_CON): Delete.
20486
20487 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20488
20489 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
20490 from rtx to rtx_insn *.
20491 (VINSN_INSN_RTX): Eliminate rvalue function and...
20492 (SET_VINSN_INSN): ...lvalue function in favor of...
20493 (VINSN_INSN_RTX): reinstate this old macro.
20494
20495 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
20496 in favor of VINSN_INSN_RTX.
20497 (VINSN_INSN_RTX): Delete this function.
20498 (SET_VINSN_INSN_RTX): Likewise.
20499
20500 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20501
20502 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
20503 (BND_TO): Delete this function and...
20504 (SET_BND_TO): ...this functions in favor of...
20505 (BND_TO): ...reinstating this macro.
20506 (struct _fence): Strengthen field "executing_insns" from
20507 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
20508 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
20509 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
20510 and param "insn" from rtx to insn_t.
20511 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
20512 rtx_insn *.
20513
20514 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
20515 vec<rtx_insn *> .
20516 (rtx_vec_t): Likewise.
20517 (struct sched_deps_info_def): Strengthen param of "start_insn"
20518 callback from rtx to rtx_insn *. Likewise for param "insn2" of
20519 "note_mem_dep" callback and first param of "note_dep" callback.
20520
20521 * haifa-sched.c (add_to_speculative_block): Strengthen param
20522 "insn" from rtx to rtx_insn *.
20523 (clear_priorities): Likewise.
20524 (calc_priorities): Likewise for local "insn".
20525
20526 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
20527 Remove redundant checked cast.
20528 (haifa_note_mem_dep): Likewise for param "pending_insn".
20529 (haifa_note_dep): Likewise for param "elem".
20530 (note_mem_dep): Likewise for param "e".
20531 (sched_analyze_1): Add checked casts.
20532 (sched_analyze_2): Likewise.
20533
20534 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
20535 from rtx to rtx_insn *.
20536 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
20537 from vec<rtx> * to vec<rtx_insn *> *.
20538
20539 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
20540 scaffolding.
20541 (flist_add): Strengthen param "executing_insns" from
20542 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
20543 (advance_deps_context): Remove now-redundant checked cast.
20544 (init_fences): Replace uses of NULL_RTX with NULL.
20545 (merge_fences): Strengthen params "last_scheduled_insn" and
20546 "sched_next" from rtx to rtx_insn * and "executing_insns" from
20547 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
20548 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
20549 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
20550 an instruction, rather than doing double-duty as a pattern.
20551 (return_nop_to_pool): Update for change of insn_t.
20552 (deps_init_id): Remove now-redundant checked cast.
20553 (struct sched_scan_info_def): Strengthen param of "init_insn"
20554 callback from rtx to insn_t.
20555 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
20556 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
20557 NULL.
20558 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
20559 "end" from rtx to rtx_insn *.
20560 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
20561 (rtx insn_rtx, bool force_unique_p)
20562 (BND_TO): Delete function.
20563 (SET_BND_TO): Delete function.
20564
20565 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
20566 rtx to rtx_insn *.
20567 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
20568 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
20569 rtx to rtx_insn *.
20570 (undo_transformations): Likewise for param "insn".
20571 (update_liveness_on_insn): Likewise.
20572 (compute_live_below_insn): Likewise for param "insn" and local
20573 "succ".
20574 (update_data_sets): Likewise for param "insn".
20575 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
20576 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
20577 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
20578 rtx_insn *.
20579 (move_cond_jump): Likewise for param "insn".
20580 (move_cond_jump): Drop use of SET_BND_TO.
20581 (compute_av_set_on_boundaries): Likewise.
20582 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
20583 (update_and_record_unavailable_insns): Strengthen local "bb_end"
20584 from rtx to rtx_insn *.
20585 (maybe_emit_renaming_copy): Likewise for param "insn".
20586 (maybe_emit_speculative_check): Likewise.
20587 (handle_emitting_transformations): Likewise.
20588 (remove_insn_from_stream): Likewise.
20589 (code_motion_process_successors): Strengthen local "succ" from rtx
20590 to insn_t.
20591
20592 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20593
20594 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
20595 ilist_t, not _xlist_t;
20596 (ILIST_INSN): Define in terms of new union field "insn".
20597 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
20598 _XLIST_NEXT.
20599 (struct _list_node): Add new field "insn" to the union, of type
20600 insn_t.
20601 (ilist_add): Replace macro with an inline function, requiring an
20602 insn_t.
20603 (ilist_remove): Define this macro directly in terms of
20604 _list_remove, rather than indirectly via _xlist_remove.
20605 (ilist_clear): Likewise, in terms of _list_clear rather than
20606 _xlist_clear.
20607 (ilist_is_in_p): Replace macro with an inline function, requiring
20608 an insn_t.
20609 (_list_iter_cond_insn): New function.
20610 (ilist_iter_remove): Define this macro directly in terms of
20611 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
20612 (ilist_iterator): Define directly in terms of _list_iterator
20613 rather than indirectly through _xlist_iterator.
20614 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
20615 than in terms of _FOR_EACH_X.
20616 (FOR_EACH_INSN_1): Likewise.
20617
20618 2014-08-26 Joseph Myers <joseph@codesourcery.com>
20619
20620 PR target/60606
20621 PR target/61330
20622 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
20623 DECL_HARD_REGISTER and return for invalid register specifications.
20624 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
20625 DECL_HARD_REGISTER, call expand_one_error_var.
20626 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
20627 CC_REGNUM with non-MODE_CC modes.
20628 (arm_regno_class): Return NO_REGS for PC_REGNUM.
20629
20630 2014-08-26 Marek Polacek <polacek@redhat.com>
20631
20632 PR c/61271
20633 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
20634
20635 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
20636
20637 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
20638 qi cost; add di cost.
20639 (cortexa57_addrcost_table): Likewise.
20640
20641 2014-08-26 Marek Polacek <polacek@redhat.com>
20642
20643 PR c/61271
20644 * expr.c (is_aligning_offset): Remove logical not.
20645
20646 2014-08-26 Marek Polacek <polacek@redhat.com>
20647
20648 PR c/61271
20649 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
20650 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
20651
20652 2014-08-26 Richard Biener <rguenther@suse.de>
20653
20654 PR tree-optimization/62175
20655 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
20656 expand possibly trapping operations.
20657
20658 2014-08-26 David Malcolm <dmalcolm@redhat.com>
20659
20660 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
20661 "insn" from rtx to rtx_insn *.
20662 (permute_load): Likewise for param "insn".
20663 (permute_store): Likewise.
20664 (handle_special_swappables): Likewise for local "insn".
20665 (replace_swap_with_copy): Likewise for locals "insn" and
20666 "new_insn".
20667 (rs6000_analyze_swaps): Likewise for local "insn".
20668
20669 2014-08-25 David Malcolm <dmalcolm@redhat.com>
20670
20671 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
20672 to rtx_insn *.
20673
20674 2014-08-25 David Malcolm <dmalcolm@redhat.com>
20675
20676 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
20677 "note_list" from rtx to rtx_insn *.
20678 (BB_NOTE_LIST): Replace this function and...
20679 (SET_BB_NOTE_LIST): ...this function with...
20680 (BB_NOTE_LIST): ...the former macro implementation.
20681
20682 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
20683 local "from_start" from rtx to rtx_insn *. Strengthen param
20684 "to_endp" from rtx * to rtx_insn **.
20685
20686 * haifa-sched.c (concat_note_lists): Likewise.
20687 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
20688 BB_NOTE_LIST.
20689 (sel_restore_notes): Likewise.
20690 (move_bb_info): Likewise.
20691 (BB_NOTE_LIST): Delete this function.
20692 (SET_BB_NOTE_LIST): Delete this function.
20693 * sel-sched.c (create_block_for_bookkeeping): Eliminate
20694 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
20695
20696 2014-08-25 David Malcolm <dmalcolm@redhat.com>
20697
20698 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
20699 from rtx * to rtx_insn **.
20700 (reorder2): Likewise.
20701 (dependencies_evaluation_hook): Strengthen params "head", "tail"
20702 from rtx to rtx_insn *.
20703
20704 * doc/tm.texi: Update mechanically for above change to target.def.
20705
20706 * sched-int.h (note_list): Strengthen this variable from rtx to
20707 rtx_insn *.
20708 (remove_notes): Likewise for both params.
20709 (restore_other_notes): Likewise for return type and first param.
20710 (struct ready_list): Strengthen field "vec" from rtx * to
20711 rtx_insn **.
20712 (struct dep_replacement): Strenghten field "insn" from rtx to
20713 rtx_insn *.
20714 (struct deps_desc): Likewise for fields "last_debug_insn",
20715 "last_args_size".
20716 (struct haifa_sched_info): Likewise for callback field
20717 "can_schedule_ready_p"'s param, for first param of "new_ready"
20718 callback field, for both params of "rank" callback field, for
20719 first field of "print_insn" callback field (with a const), for
20720 both params of "contributes_to_priority" callback, for param
20721 of "insn_finishes_block_p" callback, for fields "prev_head",
20722 "next_tail", "head", "tail", for first param of "add_remove_insn"
20723 callback, for first param of "begin_schedule_ready" callback, for
20724 both params of "begin_move_insn" callback, and for second param
20725 of "advance_target_bb" callback.
20726 (add_dependence): Likewise for params 1 and 2.
20727 (sched_analyze): Likewise for params 2 and 3.
20728 (deps_analyze_insn): Likewise for param 2.
20729 (ready_element): Likewise for return type.
20730 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
20731 (try_ready): Strenghten param from rtx to rtx_insn *.
20732 (sched_emit_insn): Likewise for return type.
20733 (record_delay_slot_pair): Likewise for params 1 and 2.
20734 (add_delay_dependencies): Likewise for param.
20735 (contributes_to_priority): Likewise for both params.
20736 (find_modifiable_mems): Likewise.
20737
20738 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
20739 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
20740 "first_older_only_insn" from rtx to rtx_insn *.
20741 (arm_sched_reorder): Strengthen param "ready" from rtx * to
20742 rtx_insn **.
20743
20744 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
20745 "last_scheduled_iter0" from rtx to rtx_insn *.
20746 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
20747 (c6x_sched_reorder_1): Strengthen param "ready" and locals
20748 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
20749 "insn" from rtx to rtx_insn *.
20750 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
20751 rtx_insn **.
20752 (c6x_sched_reorder2): Strengthen param "ready" and locals
20753 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
20754 "insn" from rtx to rtx_insn *.
20755 (c6x_variable_issue): Add a checked cast when assigning from insn
20756 to ss.last_scheduled_iter0.
20757 (split_delayed_branch): Strengthen param "insn" and local "i1"
20758 from rtx to rtx_insn *.
20759 (split_delayed_nonbranch): Likewise.
20760 (undo_split_delayed_nonbranch): Likewise for local "insn".
20761 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
20762 "entry_after", "end_packet", "head_insn", "tail_insn",
20763 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
20764 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
20765 to rtx_insn **. Remove now-redundant checked cast on last_insn,
20766 but add a checked cast on loop->start_label. Consolidate calls to
20767 avoid assigning result of gen_spkernel to "insn", now an
20768 rtx_insn *.
20769
20770 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
20771 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
20772 rtx to rtx_insn *.
20773 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
20774 rtx_insn **. Strengthen locals "top", "next" from rtx to
20775 rtx_insn *.
20776 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
20777 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
20778 (add_parameter_dependencies): Strengthen params "call", "head" and
20779 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
20780 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
20781 (add_dependee_for_func_arg): Likewise for param "arg" and local
20782 "insn".
20783 (ix86_dependencies_evaluation_hook): Likewise for params "head",
20784 "tail" and locals "insn", "first_arg".
20785
20786 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
20787 for params "head", "tail" and locals "insn", "next", "next_tail".
20788 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
20789 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
20790 "insn", "lowest", "highest" from rtx to rtx_insn *.
20791 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
20792 rtx_insn **.
20793 (ia64_sched_reorder2): Likewise.
20794
20795 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
20796 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
20797 from rtx * to rtx_insn **.
20798 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
20799 rtx_insn **.
20800 (mep_print_sched_insn): Strengthen param "insn" from rtx to
20801 rtx_insn *.
20802 (mep_sched_reorder): Strengthen param "ready" from rtx * to
20803 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
20804 to rtx_insn *.
20805
20806 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
20807 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
20808 to rtx_insn *.
20809 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
20810 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
20811 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
20812 rtx_insn **.
20813 (vr4130_reorder): Likewise.
20814 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
20815 rtx to rtx_insn *.
20816 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
20817 rtx_insn **.
20818 (mips_sched_reorder): Likewise.
20819 (mips_sched_reorder2): Likewise.
20820
20821 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
20822
20823 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
20824 Strengthen local "tmp" from rtx to rtx_insn *.
20825 (rs6000_sched_reorder2): Likewise.
20826
20827 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
20828 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
20829 (s390_sched_reorder): Strengthen param "ready" from rtx * to
20830 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
20831
20832 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
20833 "tmp2" from rtx to rtx_insn *.
20834 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
20835 Strengthen local "insn" from rtx to rtx_insn *.
20836 (ready_reorder): Strengthen param "ready" from rtx * to
20837 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
20838 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
20839 (sh_reorder2): Likewise.
20840
20841 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
20842 local "insn" from rtx to rtx_insn *.
20843
20844 * haifa-sched.c (note_list): Strengthen this variable from rtx to
20845 rtx_insn *.
20846 (scheduled_insns): Strengthen this variable from vec<rtx> to
20847 vec<rtx_insn *>.
20848 (set_modulo_params): Likewise for locals "i1", "i2".
20849 (record_delay_slot_pair): Likewise for params "i1", "i2".
20850 (add_delay_dependencies): Likewise for param "insn".
20851 (cond_clobbered_p): Likewise.
20852 (recompute_todo_spec): Likewise for local "prev".
20853 (last_scheduled_insn): Likewise for this variable.
20854 (nonscheduled_insns_begin): Likewise.
20855 (model_set_excess_costs): Strengthen param "insns" from rtx * to
20856 rtx_insn **.
20857 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
20858 rtx_insn *.
20859 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
20860 Strengthen local "insn" from rtx to rtx_insn *.
20861 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
20862 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
20863 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
20864 (ready_remove_first): Likewise for return type and local "t".
20865 (ready_element): Likewise for return type.
20866 (ready_remove): Likewise for return type and local "t".
20867 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
20868 (check_clobbered_conditions): Strengthen local "x" from rtx to
20869 rtx_insn *, adding a checked cast.
20870 (schedule_insn): Likewise for param "insn".
20871 (remove_notes): Likewise for params "head", "tail" and locals
20872 "next_tail", "insn", "next".
20873 (struct haifa_saved_data): Likewise for fields
20874 "last_scheduled_insn", "nonscheduled_insns_begin".
20875 (save_backtrack_point): Update for change to field "vec" of
20876 struct ready_list.
20877 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
20878 rtx_insn **.
20879 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
20880 from rtx to rtx_insn *
20881 (resolve_dependencies): Strengthen param "insn" from rtx to
20882 rtx_insn *
20883 (restore_other_notes): Likewise for return type, for param "head"
20884 and local "note_head".
20885 (undo_all_replacements): Likewise for local "insn".
20886 (first_nonscheduled_insn): Likewise for return type and local "insn".
20887 (queue_to_ready): Likewise for local "insn", adding checked casts.
20888 (early_queue_to_ready): Likewise for local "insn".
20889 (debug_ready_list_1): Strengthen local "p" from rtx * to
20890 rtx_insn **.
20891 (move_insn): Strengthen param "insn" and local "note" from rtx to
20892 rtx_insn *
20893 (insn_finishes_cycle_p): Likewise for param "insn".
20894 (max_issue): Likewise for local "insn".
20895 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
20896 to rtx_insn **.
20897 (commit_schedule): Strengthen param "prev_head" and local "insn"
20898 from rtx to rtx_insn *
20899 (prune_ready_list): Likewise for local "insn".
20900 (schedule_block): Likewise for locals "prev_head", "head", "tail",
20901 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
20902 (set_priorities): Likewise for local "prev_head".
20903 (try_ready): Likewise for param "next".
20904 (fix_tick_ready): Likewise.
20905 (change_queue_index): Likewise.
20906 (sched_extend_ready_list): Update for change to field "vec" of
20907 struct ready_list.
20908 (generate_recovery_code): Strengthen param "insn" from rtx to
20909 rtx_insn *.
20910 (begin_speculative_block): Likewise.
20911 (create_check_block_twin): Likewise for param "insn" and locals
20912 "label", "check", "twin". Introduce local "check_pat" to avoid
20913 "check" being used as a plain rtx before being used as an insn.
20914 (fix_recovery_deps): Add a checked cast to rtx_insn * when
20915 extracting elements from ready_list.
20916 (sched_remove_insn): Strengthen param "insn" from rtx to
20917 rtx_insn *.
20918 (sched_emit_insn): Likewise for return type.
20919 (ready_remove_first_dispatch): Likewise for return type and local
20920 "insn".
20921
20922 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
20923
20924 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
20925 const rtx_insn *.
20926
20927 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
20928 from rtx to rtx_insn *.
20929 (add_dependence_list): Likewise for param "insn". Add a checked
20930 cast.
20931 (add_dependence_list_and_free): Strengthen param "insn" from rtx
20932 to rtx_insn *. Strengthen param "list_p" from rtx * to
20933 rtx_insn **.
20934 (chain_to_prev_insn): Strengthen param "insn" and locals
20935 "prec_nonnote", "i" from rtx to rtx_insn *.
20936 (flush_pending_lists): Likewise for param "insn".
20937 (cur_insn): Likewise for this variable.
20938 (haifa_start_insn): Add a checked cast.
20939 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
20940 (sched_analyze_reg): Likewise for param "insn".
20941 (sched_analyze_1): Likewise.
20942 (sched_analyze_2): Likewise. Add checked casts.
20943 (sched_analyze_insn): Likewise. Also for local "prev".
20944 (deps_analyze_insn): Likewise for param "insn".
20945 (sched_analyze): Likewise for params "head", "tail" and local "insn".
20946 (add_dependence_1): Likewise for params "insn", "elem".
20947 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
20948 (parse_add_or_inc): Likewise for param "insn".
20949 (find_inc): Likewise for local "inc_cand".
20950 (find_modifiable_mems): Likewise for params "head", "tail" and
20951 locals "insn", "next_tail".
20952
20953 * sched-ebb.c (init_ready_list): Likewise for local "insn".
20954 (begin_schedule_ready): Likewise for param "insn".
20955 (begin_move_insn): Likewise for params "insn" and "last".
20956 (ebb_print_insn): Strengthen param "insn" from const_rtx to
20957 const rtx_insn *.
20958 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
20959 (ebb_contributes_to_priority): Likewise for params "next", "insn".
20960 (ebb_add_remove_insn): Likewise for param "insn".
20961 (advance_target_bb): Likewise.
20962
20963 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
20964 "insn".
20965 (check_live): Likewise for param "insn".
20966 (init_ready_list): Likewise for local "insn".
20967 (can_schedule_ready_p): Likewise for param "insn".
20968 (begin_schedule_ready): Likewise.
20969 (new_ready): Likewise for param "next".
20970 (rgn_print_insn): Likewise for param "insn".
20971 (rgn_rank): Likewise for params "insn1", "insn2".
20972 (contributes_to_priority): Likewise for params "next", "insn".
20973 (rgn_insn_finishes_block_p): Likewise for param "insn".
20974 (add_branch_dependences): Likewise for params "head", "tail" and
20975 locals "insn", "last".
20976 (rgn_add_remove_insn): Likewise for param "insn".
20977 (advance_target_bb): Likewise.
20978
20979 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
20980 const_rtx to const rtx_insn *.
20981
20982 * sel-sched-dump.h (sel_print_insn): Likewise.
20983
20984 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
20985 (deps_init_id): Likewise.
20986
20987 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
20988 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
20989 rtx_insn **.
20990
20991 2014-08-25 David Malcolm <dmalcolm@redhat.com>
20992
20993 * output.h (final_start_function): Strengthen param 1 from rtx to
20994 rtx_insn *.
20995
20996 * final.c (final_start_function): Likewise, renaming back from
20997 "uncast_first" to "first", and dropping the checked cast from rtx
20998 to rtx_insn *.
20999
21000 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21001
21002 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
21003 * final.c (final): Likewise. Rename param back from
21004 "uncast_first" to "first" and eliminate the checked cast from rtx
21005 to rtx_insn *.
21006
21007 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21008
21009 * output.h (shorten_branches): Strengthen param from rtx to
21010 rtx_insn *.
21011
21012 * final.c (shorten_branches): Likewise, renaming param back from
21013 "uncast_first" to "first", and dropping the checked cast from rtx
21014 to rtx_insn *.
21015
21016 * genattr.c (gen_attr): Likewise when writing out the prototype of
21017 shorten_branches.
21018
21019 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21020
21021 * sched-int.h (struct haifa_sched_info): Strengthen fields
21022 "prev_head" and "next_tail" from rtx to rtx_insn *.
21023
21024 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21025
21026 * rtl.h (rtx_jump_table_data::get_labels): New method.
21027 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
21028 with use of the new rtx_jump_table_data::get_labels method.
21029 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
21030 to rtx_jump_table_data *. Simplify by using get_labels method.
21031 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
21032 a dyn_cast, introducing local "table", using it to replace
21033 label-lookup logic with a get_labels method call.
21034 (patch_jump_insn): Simplify using get_labels method.
21035 * dwarf2cfi.c (create_trace_edges): Likewise.
21036 * rtlanal.c (label_is_jump_target_p): Likewise.
21037
21038 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21039
21040 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
21041 to rtx_insn *.
21042
21043 * emit-rtl.c (unshare_all_rtl_1): Likewise.
21044 (unshare_all_rtl_again): Likewise, also for local "p".
21045
21046 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21047
21048 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
21049 to rtx_insn *.
21050 * cfgrtl.c (delete_insn_and_edges): Likewise.
21051
21052 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21053
21054 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
21055 from rtx to rtx_insn *.
21056
21057 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
21058
21059 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21060
21061 * function.c (thread_prologue_and_epilogue_insns): Likewise for
21062 locals "returnjump", "epilogue_end", "insn", "next".
21063
21064 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
21065 "returnjump" from rtx * to rtx_insn **.
21066 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
21067
21068 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21069
21070 * basic-block.h (struct edge_def). Strengthen "r" within
21071 union edge_def_insns from rtx to rtx_insn *.
21072
21073 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
21074 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
21075 rtx_insn *.
21076 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
21077 from rtx to rtx_insn *.
21078 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
21079 rtx_insn *.
21080 * postreload-gcse.c (reg_killed_on_edge): Likewise.
21081 (reg_used_on_edge): Likewise.
21082 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
21083 (gt_pch_nx): New overload for rtx_insn *&.
21084 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
21085 from rtx to rtx_insn *.
21086
21087 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21088
21089 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
21090 from rtx to rtx_insn *.
21091 (BB_FOOTER): Replace function with access macro.
21092 (SET_BB_FOOTER): Delete.
21093
21094 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
21095 with BB_FOOTER.
21096 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
21097 (emit_barrier_after_bb): Likewise.
21098 (record_effective_endpoints): Likewise.
21099 (relink_block_chain): Likewise.
21100 (fixup_fallthru_exit_predecessor): Likewise.
21101 (cfg_layout_duplicate_bb): Likewise.
21102 (cfg_layout_split_block): Likewise.
21103 (cfg_layout_delete_block): Likewise.
21104 (cfg_layout_merge_blocks): Likewise.
21105 (BB_FOOTER): Delete function.
21106 (SET_BB_FOOTER): Delete function.
21107 * combine.c (update_cfg_for_uncondjump): Replace uses of
21108 SET_BB_FOOTER with BB_FOOTER.
21109
21110 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21111
21112 * except.h (struct eh_landing_pad_d): Strengthen field
21113 "landing_pad" from rtx to rtx_code_label *.
21114
21115 * except.c (sjlj_emit_dispatch_table): Likewise for param
21116 "dispatch_label"
21117 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
21118
21119 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21120
21121 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
21122 first param from rtx to rtx_insn *.
21123 * config/xtensa/xtensa.c (struct machine_function): Likewise for
21124 field "set_frame_ptr_insn".
21125 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
21126 "csend" from rtx to rtx_code_label *.
21127 (xtensa_expand_atomic): Likewise for local "csloop".
21128 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
21129 rtx_insn *.
21130 (xtensa_call_tls_desc): Likewise for return type and locals
21131 "call_insn", "insns".
21132 (xtensa_legitimize_tls_address): Likewise for local "insns".
21133 (xtensa_expand_prologue): Likewise for locals "insn", "first".
21134
21135 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21136
21137 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
21138 first param from rtx to rtx_insn *.
21139 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
21140 "insn".
21141
21142 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21143
21144 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
21145 Strengthen param 1 from rtx to rtx_insn *.
21146 (tilepro_output_cbranch): Likewise.
21147 (tilepro_adjust_insn_length): Likewise.
21148 (tilepro_final_prescan_insn): Likewise for sole param.
21149
21150 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
21151 Likewise for local "last".
21152 (cbranch_predicted_p): Likewise for param "insn".
21153 (tilepro_output_simple_cbranch_with_opcode): Likewise.
21154 (tilepro_output_cbranch_with_opcode): Likewise.
21155 (tilepro_output_cbranch): Likewise.
21156 (frame_emit_load): Likewise for return type and locals "seq",
21157 "insn".
21158 (emit_sp_adjust): Likewise for return type and local "insn".
21159 (tilepro_expand_epilogue): Likewise for locals "last_insn",
21160 "insn".
21161 (tilepro_adjust_insn_length): Likewise for param "insn".
21162 (next_insn_to_bundle): Likewise for return type and params
21163 "r", "end".
21164 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
21165 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
21166 local "new_insns".
21167 (match_addli_pcrel): Likewise for param "insn".
21168 (replace_addli_pcrel): Likewise.
21169 (match_auli_pcrel): Likewise.
21170 (replace_auli_pcrel): Likewise.
21171 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
21172 "next_insn".
21173 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
21174 "queue", "next_queue", "prev".
21175 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
21176 (tilepro_final_prescan_insn): Likewise for param "insn".
21177
21178 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21179
21180 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
21181 Strengthen param 1 from rtx to rtx_insn *.
21182 (tilegx_output_cbranch): Likewise.
21183 (tilegx_adjust_insn_length): Likewise.
21184 (tilegx_final_prescan_insn): Likewise for sole param.
21185
21186 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
21187 or local "last".
21188 (cbranch_predicted_p): Likewise for param "insn".
21189 (tilegx_output_simple_cbranch_with_opcode): Likewise.
21190 (tilegx_output_cbranch_with_opcode): Likewise.
21191 (tilegx_output_cbranch): Likewise.
21192 (frame_emit_load): Likewise for return type.
21193 (set_frame_related_p): Likewise for locals "seq", "insn".
21194 (emit_sp_adjust): Likewise for return type, and for local "insn".
21195 Introduce local "pat" for use in place of "insn" where the latter
21196 isn't an instruction.
21197 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
21198 from rtx to rtx_insn *.
21199 (tilegx_adjust_insn_length): Likewise for param "insn".
21200 (next_insn_to_bundle): Likewise for return type and params "r" and
21201 "end".
21202 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
21203 "end".
21204 (replace_insns): Likewise for params "old_insn", "new_insns".
21205 (replace_mov_pcrel_step1): Likewise for param "insn" and local
21206 "new_insns".
21207 (replace_mov_pcrel_step2): Likewise.
21208 (replace_mov_pcrel_step3): Likewise.
21209 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
21210 "next_insn".
21211 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
21212 "queue", "next_queue", "prev".
21213 (tilegx_output_mi_thunk): Likewise for local "insn".
21214 (tilegx_final_prescan_insn): Likewise for param "insn".
21215
21216 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21217
21218 * config/spu/spu.c (frame_emit_store): Strengthen return type from
21219 rtx to rtx_insn *.
21220 (frame_emit_load): Likewise.
21221 (frame_emit_add_imm): Likewise, also for local "insn".
21222 (spu_expand_prologue): Likewise for local "insn".
21223 (struct spu_bb_info): Likewise for field "prop_jump".
21224 (emit_nop_for_insn): Likewise for param "insn" and local
21225 "new_insn".
21226 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
21227 "hbr_insn".
21228 (spu_emit_branch_hint): Likewise for params "before", "branch" and
21229 locals "hint", "insn".
21230 (get_branch_target): Likewise for param "branch".
21231 (insn_clobbers_hbr): Likewise for param "insn".
21232 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
21233 locals "insn", "before_4", "before_16".
21234 (insert_hbrp): Likewise for local "insn".
21235 (spu_machine_dependent_reorg): Likewise for locals "branch",
21236 "insn", "next", "bbend".
21237 (uses_ls_unit): Likewise for param "insn".
21238 (get_pipe): Likewise.
21239 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
21240 introducing a checked cast.
21241 (spu_sched_adjust_cost): Likewise for params "insn" and
21242 "dep_insn".
21243 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
21244 (spu_sms_res_mii): Likewise.
21245
21246 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21247
21248 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
21249 from rtx to rtx_insn *.
21250 (output_cbranch): Likewise for param 6.
21251 (output_return): Likewise for param 1.
21252 (output_sibcall): Likewise.
21253 (output_v8plus_shift): Likewise.
21254 (output_v8plus_mult): Likewise.
21255 (output_v9branch): Likewise for param 7.
21256 (output_cbcond): Likewise for param 3.
21257
21258 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
21259 for local "insn".
21260 (sparc_legitimize_pic_address): Likewise.
21261 (sparc_emit_call_insn): Likewise.
21262 (emit_save_or_restore_regs): Likewise.
21263 (emit_window_save): Likewise for return type and local "insn".
21264 (sparc_expand_prologue): Likewise for local "insn".
21265 (sparc_flat_expand_prologue): Likewise.
21266 (output_return): Likewise for param "insn".
21267 (output_sibcall): Likewise for param "insn" and local "delay".
21268 (output_ubranch): Likewise for param "insn".
21269 (output_cbranch): Likewise.
21270 (output_cbcond): Likewise.
21271 (output_v9branch): Likewise.
21272 (output_v8plus_shift): Likewise.
21273 (sparc_output_mi_thunk): Likewise for local "insn".
21274 (get_some_local_dynamic_name): Likewise.
21275 (output_v8plus_mult): Likewise for param "insn".
21276
21277 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21278
21279 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
21280 from rtx to rtx_insn *.
21281 (output_branchy_insn): Likewise for param 3.
21282 (output_far_jump): Likewise for param 1.
21283 (final_prescan_insn): Likewise.
21284 (sh_insn_length_adjustment): Likewise for sole param.
21285
21286 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
21287 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
21288 rtx_code_label *.
21289 (sh_emit_compare_and_set): Likewise for local "lab".
21290 (output_far_jump): Strengthen param "insn" and local "prev" from
21291 rtx to rtx_insn *.
21292 (output_branchy_insn): Likewise for param "insn" and local
21293 "next_insn".
21294 (output_ieee_ccmpeq): Likewise for param "insn".
21295 (struct label_ref_list_d): Strengthen field "label" from rtx to
21296 rtx_code_label *.
21297 (pool_node): Likewise.
21298 (pool_window_label): Likewise for this global.
21299 (add_constant): Likewise for return type and locals "lab", "new_rtx".
21300 (dump_table): Strengthen params "start", "barrier" and local
21301 "scan" from rtx to rtx_insn *.
21302 (broken_move): Likewise for param "insn".
21303 (untangle_mova): Likewise for params "first_mova" and "new_mova".
21304 Strengthen param "first_mova" from rtx * to rtx_insn **.
21305 (mova_p): Likewise for param "insn".
21306 (fixup_mova): Likewise for param "mova".
21307 (find_barrier): Likewise for return type, params "mova" and
21308 "from", and locals "barrier_before_mova", "found_barrier",
21309 "good_barrier", "orig", "last_symoff", "next". Strengthen local
21310 "label" from rtx to rtx_code_label *.
21311 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
21312 rtx to rtx_insn *.
21313 (sh_reorg): Likewise for locals "link", "scan", "barrier".
21314 (split_branches): Likewise for param "first" and local "insn".
21315 (final_prescan_insn): Likewise for param "insn".
21316 (sequence_insn_p): Likewise for locals "prev", "next".
21317 (sh_insn_length_adjustment): Likewise for param "insn".
21318 (sh_can_redirect_branch): Likewise for local "insn".
21319 (find_r0_life_regions): Likewise for locals "end", "insn".
21320 (sh_output_mi_thunk): Likewise for local "insns".
21321
21322 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21323
21324 * config/score/score.c (score_output_mi_thunk): Strengthen local
21325 "insn" from rtx to rtx_insn *.
21326 (score_prologue): Likewise.
21327
21328 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21329
21330 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
21331 1 from rtx to rtx_insn *.
21332 (s390_emit_jump): Likewise for return type.
21333 (s390_emit_call): Likewise.
21334 (s390_load_got): Likewise.
21335
21336 * config/s390/s390.c (last_scheduled_insn): Likewise for this
21337 variable.
21338 (s390_match_ccmode): Likewise for param "insn".
21339 (s390_emit_jump): Likewise for return type.
21340 (s390_split_branches): Likewise for local "label".
21341 (struct constant): Strengthen field "label" from rtx to
21342 rtx_code_label *.
21343 (struct constant_pool): Likewise for field "label". Strengthen
21344 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
21345 rtx_insn *.
21346 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
21347 insns.
21348 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
21349 (s390_end_pool): Likewise.
21350 (s390_dump_pool): Likewise for local "insn".
21351 (s390_mainpool_start): Likewise.
21352 (s390_chunkify_start): Likewise.
21353 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
21354 with insns. Strengthen locals "label", "jump", "barrier", "next",
21355 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
21356 (s390_chunkify_finish): Strengthen local "insn" from rtx to
21357 rtx_insn *.
21358 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
21359 "jump", "label", "next_insn".
21360 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
21361 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
21362 "tbegin_insn".
21363 (s390_load_got): Likewise for return type and local "insns".
21364 (s390_save_gprs_to_fprs): Likewise for local "insn".
21365 (s390_restore_gprs_from_fprs): Likewise.
21366 (pass_s390_early_mach::execute): Likewise.
21367 (s390_emit_prologue): Likewise for local "insns".
21368 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
21369 rtx_code_label *.
21370 (s390_emit_call): Strengthen return type and local "insn" from
21371 rtx to rtx_insn *.
21372 (s390_emit_tpf_eh_return): Likewise for local "insn".
21373 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
21374 "next_insn", introducing locals "s_pat", "rpat" to allow this.
21375 (s390_fix_long_loop_prediction): Likewise for param "insn" and
21376 local "cur_insn".
21377 (s390_non_addr_reg_read_p): Likewise for param "insn".
21378 (find_cond_jump): Likewise for return type and param "insn".
21379 (s390_swap_cmp): Likewise for param "insn".
21380 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
21381 "prev_insn", "next_insn".
21382 (s390_reorg): Likewise for locals "insn", "target".
21383 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
21384 (s390_sched_variable_issue): For now, rename param "insn" to
21385 "uncast_insn", introducing a checked cast.
21386 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
21387 insn.
21388 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
21389 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
21390
21391 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21392
21393 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
21394 param from rtx to rtx_insn *.
21395 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
21396
21397 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21398
21399 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
21400 4 from rtx to rtx_insn *.
21401 (rs6000_final_prescan_insn): Likewise for first param.
21402 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
21403 local "insn".
21404 (rs6000_get_some_local_dynamic_name): Likewise.
21405 (output_cbranch): Likewise for param "insn".
21406 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
21407 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
21408 (rs6000_emit_allocate_stack): Likewise for local "insn".
21409 (load_cr_save): Likewise.
21410 (restore_saved_cr): Likewise.
21411 (restore_saved_lr): Likewise.
21412 (emit_cfa_restores): Likewise.
21413 (rs6000_output_function_epilogue): Likewise for locals "insn" and
21414 "deleted_debug_label".
21415 (rs6000_output_mi_thunk): Likewise for local "insn".
21416 (rs6000_final_prescan_insn): Likewise for param "insn".
21417
21418 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21419
21420 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
21421 Strengthen param "insn" from rtx to rtx_insn *.
21422 * config/picochip/picochip.c (picochip_current_prescan_insn):
21423 Likewise for this variable.
21424 (picochip_final_prescan_insn): Likewise for param "insn".
21425
21426 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21427
21428 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
21429 from rtx to rtx_insn *.
21430 (pa_output_indirect_call): Likewise.
21431 (pa_adjust_insn_length): Likewise.
21432 (pa_attr_length_millicode_call): Likewise.
21433 (pa_attr_length_call): Likewise.
21434 (pa_attr_length_indirect_call): Likewise.
21435
21436 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
21437 "insn".
21438 (pa_attr_length_millicode_call): Likewise.
21439 (pa_attr_length_call): Likewise.
21440 (pa_output_call): Likewise.
21441 (pa_attr_length_indirect_call): Likewise.
21442 (pa_output_indirect_call): Likewise.
21443
21444 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21445
21446 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
21447 Strengthen first param from rtx to rtx_insn *.
21448 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
21449 param "insn".
21450
21451 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21452
21453 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
21454 type from rtx to rtx_insn *.
21455 (mips_expand_call): Likewise.
21456 (mips_adjust_insn_length): Likewise for first param.
21457 (mips_output_conditional_branch): Likewise.
21458 (mips_output_order_conditional_branch): Likewise.
21459 (mips_final_prescan_insn): Likewise.
21460
21461 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
21462 rtx_insn * for the SEQUENCE case.
21463 (SEQ_END): Likewise.
21464 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
21465 (mips_emit_call_insn): Likewise, also for local "insn".
21466 (mips16_gp_pseudo_reg): Likewise for local "scan".
21467 (mips16_build_call_stub): Likewise for return type and for local
21468 "insn". Introduce a new local "pattern" so that "insn" can indeed
21469 be an insn.
21470 (mips_expand_call): Strengthen return type and local "insn" from
21471 rtx to rtx_insn *.
21472 (mips_block_move_loop): Strengthen local "label" from rtx to
21473 rtx_code_label *.
21474 (mips_expand_synci_loop): Likewise for locals "label",
21475 "end_label".
21476 (mips_set_frame_expr): Strengthen local "insn" from rtx to
21477 rtx_insn *.
21478 (mips16e_collect_argument_saves): Likewise for locals "insn",
21479 "next".
21480 (mips_find_gp_ref): Likewise for param of callback for "pred"
21481 param, and for local "insn".
21482 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
21483 (mips_insn_has_flexible_gp_ref_p): Likewise.
21484 (mips_epilogue_emit_cfa_restores): Likewise for return type and
21485 local "insn".
21486 (mips_epilogue_set_cfa): Likewise for local "insn".
21487 (mips_expand_epilogue): Likewise.
21488 (mips_adjust_insn_length): Likewise for param "insn".
21489 (mips_output_conditional_branch): Likewise.
21490 (mips_output_order_conditional_branch): Likewise.
21491 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
21492 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
21493 "falu2_turn_enabled_insn".
21494 (mips_builtin_branch_and_move): Strengthen locals "true_label",
21495 "done_label" from rtx to rtx_code_label *.
21496 (struct mips16_constant): Likewise for field "label".
21497 (mips16_add_constant): Likewise for return type.
21498 (mips16_emit_constants_1): Strengthen return type and param "insn"
21499 from rtx to rtx_insn *.
21500 (mips16_emit_constants): Likewise for param "insn".
21501 (mips16_insn_length): Likewise.
21502 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
21503 to rtx_code_label *.
21504 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
21505 from rtx to rtx_insn *.
21506 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
21507 "jump". Strengthen local "label" from rtx to rtx_code_label *.
21508 (r10k_simplify_address): Strengthen param "insn" and local
21509 "def_insn" from rtx to rtx_insn *.
21510 (r10k_safe_address_p): Strengthen param "insn" from rtx to
21511 rtx_insn *.
21512 (r10k_needs_protection_p_1): Update target type of cast of data
21513 from to rtx to rtx_insn *.
21514 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
21515 rtx * to rtx_insn **.
21516 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
21517 rtx_insn *.
21518 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
21519 (mips_call_expr_from_insn): Likewise for param "insn".
21520 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
21521 (mips_find_pic_call_symbol): Likewise for param "insn".
21522 (mips_annotate_pic_calls): Likewise for local "insn".
21523 (mips_sim_insn): Likewise for this variable.
21524 (struct mips_sim): Likewise for field "insn" within elements of
21525 last_set array.
21526 (mips_sim_wait_reg): Likewise for param "insn".
21527 (mips_sim_wait_regs): Likewise.
21528 (mips_sim_wait_units): Likewise.
21529 (mips_sim_wait_insn): Likewise.
21530 (mips_sim_issue_insn): Likewise.
21531 (mips_sim_finish_insn): Likewise.
21532 (mips_seq_time): Likewise for param "seq" and local "insn".
21533 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
21534 locals "first", "second".
21535 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
21536 "last", "last2", "next".
21537 (mips_avoid_hazard): Likewise for params "after", "insn".
21538 (mips_reorg_process_insns): Likewise for locals "insn",
21539 "last_insn", "subinsn", "next_insn".
21540 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
21541 (mips16_split_long_branches): Likewise for locals "insn" "jump",
21542 "jump_sequence".
21543 (mips_output_mi_thunk): Likewise for local "insn".
21544 (mips_final_prescan_insn): Likewise for param "insn".
21545
21546 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21547
21548 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
21549 Strengthen return type and local "insns" from rtx to rtx_insn *.
21550 (microblaze_legitimize_tls_address): Likewise for local "insns".
21551 (microblaze_block_move_loop): Strengthen local "label" from rtx
21552 to rtx_code_label *.
21553 (microblaze_expand_prologue): Strengthen two locals named "insn"
21554 from rtx to rtx_insn *.
21555 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
21556 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
21557 "insn". Strengthen locals "div_label", "div_end_label" from rtx
21558 to rtx_code_label *.
21559
21560 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21561
21562 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
21563 param from rtx to rtx_insn *.
21564 (mep_reuse_lo): Likewise for third param.
21565 (mep_use_post_modify_p): Likewise for first param.
21566 (mep_core_address_length): Likewise.
21567 (mep_cop_address_length): Likewise.
21568 (mep_final_prescan_insn): Likewise.
21569 (mep_store_data_bypass_p): Likewise for both params.
21570 (mep_mul_hilo_bypass_p): Likewise.
21571 (mep_ipipe_ldc_p): Likewise for param.
21572
21573 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
21574 (mep_rewrite_mult): Likewise.
21575 (mep_rewrite_mulsi3): Likewise.
21576 (mep_rewrite_maddsi3): Likewise.
21577 (mep_reuse_lo_p_1): Likewise.
21578 (mep_reuse_lo_p): Likewise.
21579 (mep_frame_expr): Likewise.
21580 (mep_make_parallel): Likewise for both params.
21581 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
21582 local "insn".
21583 (mep_use_post_modify_p): Likewise for param "insn".
21584 (mep_core_address_length): Likewise.
21585 (mep_cop_address_length): Likewise.
21586 (mep_reg_set_in_function): Likewise for local "insn".
21587 (mep_asm_without_operands_p): Likewise.
21588 (F): Likewise for return type and param "x".
21589 (add_constant): Likewise for local "insn".
21590 (maybe_dead_move): Likewise for return type and local "insn".
21591 (mep_expand_prologue): Likewise for local "insn".
21592 (mep_final_prescan_insn): Likewise for param "insn".
21593 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
21594 "next", "follow", "x".
21595 (mep_insert_repeat_label_last): Likewise for return type, param
21596 "last_insn", and locals "next", "prev". Strengthen param "label"
21597 from rtx to rtx_code_label *.
21598 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
21599 rtx_insn *.
21600 (struct mep_doloop_end): Likewise for fields "insn" and
21601 "fallthrough".
21602 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
21603 Strengthen local "repeat_label" from rtx to rtx_code_label *.
21604 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
21605 rtx_insn *.
21606 (mep_invert_branch): Likewise for params "insn" and "after".
21607 (mep_reorg_erepeat): Likewise for param "insns" and locals
21608 "insn", "prev", "new_last", "barrier", "user". Strengthen local
21609 "l" from rtx to rtx_code_label *.
21610 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
21611 from rtx to rtx_insn *.
21612 (mep_reorg_addcombine): Likewise for param "insns" and locals
21613 "i", "n".
21614 (add_sp_insn_p): Likewise for param "insn".
21615 (mep_reorg_noframe): Likewise for param "insns" and locals
21616 "start_frame_insn", "end_frame_insn", "next".
21617 (mep_reorg): Likewise for local "insns".
21618 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
21619 cast.
21620 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
21621 (mep_mul_hilo_bypass_p): Likewise.
21622 (mep_ipipe_ldc_p): Likewise for param "insn".
21623 (mep_make_bundle): Likewise for return type, param "cop" and local
21624 "insn", splitting out the latter into a new local "seq" for when it
21625 is a SEQUENCE rather than an insn.
21626 (core_insn_p): Likewise for param "insn".
21627 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
21628 "last", "first", "note", "prev", "core_insn".
21629
21630 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21631
21632 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
21633 rtx to rtx_insn *.
21634 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
21635 (m68k_final_prescan_insn): Likewise for first param.
21636
21637 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
21638 (m68k_set_frame_related): Likewise for param "insn".
21639 (output_btst): Likewise for param "insn".
21640 (m68k_final_prescan_insn): Likewise.
21641 (m68k_move_to_reg): Likewise for local "insn".
21642 (m68k_call_tls_get_addr): Likewise for local "insns".
21643 (m68k_call_m68k_read_tp): Likewise.
21644 (strict_low_part_peephole_ok): Likewise for param "first_insn".
21645 (m68k_output_mi_thunk): Likewise for local "insn".
21646
21647 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21648
21649 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
21650 first param from rtx to rtx_insn *.
21651 (iq2000_adjust_insn_length): Likewise.
21652 (iq2000_output_conditional_branch): Likewise.
21653 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
21654 "insn" and local "nop_insn".
21655 (iq2000_annotate_frame_insn): Likewise for param "insn".
21656 (iq2000_expand_prologue): Likewise for both locals "insn".
21657 (iq2000_adjust_insn_length): Likewise for param "insn".
21658 (iq2000_output_conditional_branch): Likewise.
21659
21660 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21661
21662 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
21663 "insns" from rtx to rtx_insn *.
21664 (ia64_emit_cond_move): Likewise for locals "insn", "first".
21665 (struct spill_fill_data): Likewise for field "init_after" and for
21666 elements of array field "prev_insn".
21667 (spill_restore_mem): Likewise for locals "insn", "first".
21668 (do_spill): Likewise for local "insn".
21669 (do_restore): Likewise.
21670 (ia64_expand_prologue): Likewise.
21671 (ia64_expand_epilogue): Likewise.
21672 (emit_insn_group_barriers): Likewise for locals "insn",
21673 "last_label".
21674 (emit_all_insn_group_barriers): Likewise for locals "insn",
21675 "last".
21676 (dfa_stop_insn): Likewise for this global.
21677 (dfa_pre_cycle_insn): Likewise.
21678 (ia64_nop): Likewise.
21679 (final_emit_insn_group_barriers): Likewise for locals "insn",
21680 "last".
21681 (emit_predicate_relation_info): Likewise for locals "head", "n",
21682 "insn", "b", "a".
21683 (ia64_reorg): Likewise for local "insn".
21684 (ia64_output_mi_thunk): Likewise.
21685 (expand_vec_perm_interleave_2): Likewise for local "seq".
21686
21687 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21688
21689 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
21690 param 1 "insn" from rtx to rtx_insn *.
21691 (ix86_use_lea_for_mov): Likewise.
21692 (ix86_avoid_lea_for_addr): Likewise.
21693 (ix86_split_lea_for_addr): Likewise.
21694 (ix86_lea_for_add_ok): Likewise.
21695 (ix86_output_call_insn): Likewise.
21696
21697 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
21698 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
21699 (ix86_output_function_epilogue): Likewise for locals "insn",
21700 "deleted_debug_label".
21701 (legitimize_tls_address): Likewise for local "insn".
21702 (get_some_local_dynamic_name): Likewise.
21703 (increase_distance): Likewise for params "prev", "next".
21704 (distance_non_agu_define_in_bb): Likewise for params "insn",
21705 "start" and locals "prev", "next".
21706 (distance_non_agu_define): Likewise for param "insn".
21707 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
21708 locals "next", "prev".
21709 (distance_agu_use): Likewise for param "insn".
21710 (ix86_lea_outperforms): Likewise.
21711 (ix86_ok_to_clobber_flags): Likewise.
21712 (ix86_avoid_lea_for_add): Likewise.
21713 (ix86_use_lea_for_mov): Likewise.
21714 (ix86_avoid_lea_for_addr): Likewise.
21715 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
21716 (ix86_split_lea_for_addr): Likewise for param "insn".
21717 (ix86_lea_for_add_ok): Likewise for param "insn".
21718 (ix86_expand_carry_flag_compare): Likewise for local
21719 "compare_seq".
21720 (ix86_expand_int_movcc): Likewise.
21721 (ix86_output_call_insn): Likewise for param "insn".
21722 (ix86_output_call_insn): Likewise for local "i".
21723 (x86_output_mi_thunk): Introduce local "insn", using it in place
21724 of "tmp" when dealing with insns.
21725 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
21726 "start".
21727 (ix86_pad_returns): Likewise for locals "ret", "prev".
21728 (ix86_count_insn_bb): Likewise for local "insn".
21729 (ix86_pad_short_function): Likewise for locals "ret", "insn".
21730 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
21731 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
21732 (expand_vec_perm_interleave2): Likewise for local "seq".
21733 (expand_vec_perm_vperm2f128_vblend): Likewise.
21734 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
21735 call to for_each_rtx with for_each_rtx_in_insn.
21736
21737 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21738
21739 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
21740 "label" from rtx to rtx_code_label *.
21741 (ix86_expand_prologue): Likewise.
21742 (ix86_expand_split_stack_prologue): Likewise for locals "label",
21743 "varargs_label".
21744 (ix86_split_idivmod): Likewise for locals "end_label" and
21745 "qimode_label".
21746 (ix86_expand_branch): Likewise for local "label2".
21747 (ix86_expand_aligntest): Likewise for return type and local "label".
21748 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
21749 "top_label".
21750 (expand_movmem_epilogue): Likewise for the various locals named
21751 "label".
21752 (expand_setmem_epilogue): Likewise.
21753 (expand_small_movmem_or_setmem): Likewise for local "label".
21754 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
21755 Strengthen param "done_label" from rtx * to rtx_code_label **.
21756 Strengthen locals "loop_label" and "label" from rtx to
21757 rtx_code_label *.
21758 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
21759 Likewise for locals "loop_label", "label".
21760 (ix86_expand_set_or_movmem): Likewise for locals "label",
21761 "jump_around_label", "hot_label".
21762 (ix86_expand_strlensi_unroll_1): Likewise for locals
21763 "align_2_label", align_3_label", "align_4_label", "end_0_label",
21764 "end_2_label".
21765 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
21766 (void ix86_emit_i387_log1p): Likewise for locals "label1",
21767 "label2", "jump_label".
21768 (ix86_expand_sse_compare_and_jump): Likewise for return type and
21769 local "label".
21770 (ix86_expand_lfloorceil): Likewise for local "label".
21771 (ix86_expand_rint): Likewise.
21772 (ix86_expand_floorceildf_32): Likewise.
21773 (ix86_expand_floorceil): Likewise.
21774 (ix86_expand_rounddf_32): Likewise.
21775 (ix86_expand_trunc): Likewise.
21776 (ix86_expand_truncdf_32): Likewise.
21777 (ix86_expand_round): Likewise.
21778
21779 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21780
21781 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
21782 first param from rtx to rtx_insn *.
21783 (h8300_insn_length_from_table): Likewise.
21784 * config/h8300/h8300.c (F): Likewise for return type and param
21785 "x".
21786 (Fpa): Add a checked cast to rtx_insn *.
21787 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
21788 rtx_insn *.
21789 (final_prescan_insn): Likewise for param "insn".
21790 (h8300_binary_length): Likewise.
21791 (h8300_insn_length_from_table): Likewise.
21792
21793 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21794
21795 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
21796 Strengthen first param "insn" from rtx to rtx_insn *.
21797
21798 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
21799 Likewise.
21800 (frame_insn): Likewise for return type. Introduce local "insn"
21801 for use in place of local "x" for use as an rtx_insn *.
21802 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
21803 (epiphany_expand_prologue): Likewise for local "insn".
21804 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
21805 * config/epiphany/resolve-sw-modes.c
21806 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
21807 "seq".
21808
21809 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21810
21811 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
21812 param from rtx to rtx_insn *.
21813 (c6x_final_prescan_insn): Likewise for first param.
21814
21815 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
21816 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
21817 (c6x_expand_compare): Strengthen local "insns" from rtx to
21818 rtx_insn *.
21819 (c6x_get_unit_specifier): Likewise for param "insn".
21820 (c6x_print_unit_specifier_field): Likewise.
21821 (c6x_final_prescan_insn): Likewise.
21822 (emit_add_sp_const): Likewise for local "insn".
21823 (c6x_expand_prologue): Likewise.
21824
21825 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21826
21827 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
21828 param 1 from rtx to rtx_insn *.
21829 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
21830 the various locals named "insn".
21831 (expand_epilogue_reg_restore): Likewise.
21832 (frame_related_constant_load): Likewise.
21833 (add_to_reg): Likewise.
21834 (emit_link_insn): Likewise.
21835 (do_link): Likewise.
21836 (expand_interrupt_handler_prologue): Likewise.
21837 (branch_dest): Likewise for param "branch".
21838 (asm_conditional_branch): Likewise for param "insn".
21839 (gen_one_bundle): Likewise for elements of param "slot" and local
21840 "t".
21841 (bfin_gen_bundles): Likewise for locals "insn", "next" and
21842 elements of local "slot".
21843 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
21844 "queue", "next_queue", "prev".
21845 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
21846 (add_sched_insns_for_speculation): Likewise for local "insn".
21847
21848 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21849
21850 * config/avr/avr-protos.h (output_movqi): Strengthen first param
21851 from rtx to rtx_insn *.
21852 (output_movhi): Likewise.
21853 (output_movsisf): Likewise.
21854 (avr_out_tstsi): Likewise.
21855 (avr_out_tsthi): Likewise.
21856 (avr_out_tstpsi): Likewise.
21857 (avr_out_compare): Likewise.
21858 (avr_out_compare64): Likewise.
21859 (avr_out_movpsi): Likewise.
21860 (ashlqi3_out): Likewise.
21861 (ashlhi3_out): Likewise.
21862 (ashlsi3_out): Likewise.
21863 (ashrqi3_out): Likewise.
21864 (ashrhi3_out): Likewise.
21865 (ashrsi3_out): Likewise.
21866 (lshrqi3_out): Likewise.
21867 (lshrhi3_out): Likewise.
21868 (lshrsi3_out): Likewise.
21869 (avr_out_ashlpsi3): Likewise.
21870 (avr_out_ashrpsi3): Likewise.
21871 (avr_out_lshrpsi3): Likewise.
21872 (avr_out_fract): Likewise.
21873 (avr_out_sbxx_branch): Likewise.
21874 (avr_out_round): Likewise.
21875 (avr_out_xload): Likewise.
21876 (avr_out_movmem): Likewise.
21877 (adjust_insn_length): Likewise.
21878 (avr_out_lpm): Likewise.
21879 (reg_unused_after): Likewise.
21880 (_reg_unused_after): Likewise.
21881 (avr_jump_mode): Likewise for second param.
21882 (jump_over_one_insn): Likewise for first param.
21883 (avr_final_prescan_insn): Likewise.
21884 (out_shift_with_cnt): Likewise for second param.
21885
21886 * config/avr/avr.c (get_sequence_length): Likewise for param
21887 "insns" and local "insn".
21888 (emit_push_byte): Likewise for local "insn".
21889 (emit_push_sfr): Likewise.
21890 (avr_prologue_setup_frame): Likewise for locals "insn",
21891 "fp_plus_insns", "sp_plus_insns".
21892 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
21893 "sp_plus_insns".
21894 (avr_jump_mode): Likewise for param "insn".
21895 (avr_final_prescan_insn): Likewise.
21896 (avr_find_unused_d_reg): Likewise.
21897 (avr_out_lpm_no_lpmx): Likewise.
21898 (avr_out_lpm): Likewise.
21899 (avr_out_xload): Likewise.
21900 (output_movqi): Likewise.
21901 (output_movhi): Likewise.
21902 (out_movqi_r_mr): Likewise.
21903 (out_movhi_r_mr): Likewise.
21904 (out_movsi_r_mr): Likewise.
21905 (out_movsi_mr_r): Likewise.
21906 (output_movsisf): Likewise.
21907 (avr_out_load_psi): Likewise.
21908 (avr_out_store_psi): Likewise.
21909 (avr_out_movpsi): Likewise.
21910 (out_movqi_mr_r): Likewise.
21911 (avr_out_movhi_mr_r_xmega): Likewise.
21912 (out_movhi_mr_r): Likewise.
21913 (compare_condition): Likewise for param "insn" and local "next".
21914 (compare_sign_p): Likewise for param "insn".
21915 (compare_diff_p): Likewise.
21916 (compare_eq_p): Likewise.
21917 (avr_out_compare): Likewise.
21918 (avr_out_compare64): Likewise.
21919 (avr_out_tsthi): Likewise.
21920 (avr_out_tstpsi): Likewise.
21921 (avr_out_tstsi): Likewise.
21922 (out_shift_with_cnt): Likewise.
21923 (ashlqi3_out): Likewise.
21924 (ashlhi3_out): Likewise.
21925 (avr_out_ashlpsi3): Likewise.
21926 (ashlsi3_out): Likewise.
21927 (ashrqi3_out): Likewise.
21928 (ashrhi3_out): Likewise.
21929 (avr_out_ashrpsi3): Likewise.
21930 (ashrsi3_out): Likewise.
21931 (lshrqi3_out): Likewise.
21932 (lshrhi3_out): Likewise.
21933 (avr_out_lshrpsi3): Likewise.
21934 (lshrsi3_out): Likewise.
21935 (avr_out_fract): Likewise.
21936 (avr_out_round): Likewise.
21937 (avr_adjust_insn_length): Likewise.
21938 (reg_unused_after): Likewise.
21939 (_reg_unused_after): Likewise.
21940 (avr_compare_pattern): Likewise.
21941 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
21942 and locals "branch1", "branch2", "insn2", "jump".
21943 (avr_reorg): Likewise for local "insn".
21944 (avr_2word_insn_p): Likewise for param "insn".
21945 (jump_over_one_insn_p): Likewise.
21946 (avr_out_sbxx_branch): Likewise.
21947 (avr_out_movmem): Likewise.
21948
21949 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21950
21951 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
21952 param from rtx to rtx_insn *.
21953 (thumb1_final_prescan_insn): Likewise.
21954 (thumb2_final_prescan_insn): Likewise.
21955
21956 * config/arm/arm.c (emit_set_insn): Strengthen return type from
21957 rtx to rtx_insn *.
21958 (struct minipool_node): Likewise for field "insn".
21959 (dump_minipool): Likewise for param "scan".
21960 (create_fix_barrier): Likewise for local "from". Strengthen local
21961 "label" from rtx to rtx_code_label *.
21962 (push_minipool_barrier): Strengthen param "insn" from rtx to
21963 rtx_insn *.
21964 (push_minipool_fix): Likewise.
21965 (note_invalid_constants): Likewise.
21966 (thumb2_reorg): Likewise for local "insn".
21967 (arm_reorg): Likewise.
21968 (thumb2_final_prescan_insn): Likewise for param
21969 "insn" and local "first_insn".
21970 (arm_final_prescan_insn): Likewise for param "insn" and locals
21971 "start_insn", "this_insn".
21972 (arm_debugger_arg_offset): Likewise for param "insn".
21973 (thumb1_emit_multi_reg_push): Likewise for return type and local
21974 "insn".
21975 (thumb1_final_prescan_insn): Likewise for param "insn".
21976 (thumb_far_jump_used_p): Likewise for local "insn".
21977 (thumb1_expand_prologue): Likewise.
21978 (arm_expand_epilogue_apcs_frame): Likewise.
21979 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
21980 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
21981 from rtx to rtx_code_label *.
21982 (arm_split_atomic_op): Likewise for local "label".
21983 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
21984
21985 2014-08-25 David Malcolm <dmalcolm@redhat.com>
21986
21987 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
21988 first param from rtx to rtx_insn *.
21989 (arc_verify_short): Likewise.
21990 (arc_short_long): Likewise.
21991 (arc_need_delay): Likewise.
21992
21993 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
21994 "target_insn".
21995 (arc_ccfsm_advance): Likewise for param "insn" and locals
21996 "start_insn", "this_insn".
21997 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
21998 (arc_ccfsm_post_advance): Likewise for param "insn".
21999 (arc_next_active_insn): Likewise for return type and param "insn".
22000 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
22001 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
22002 (output_short_suffix): Likewise for local "insn".
22003 (arc_final_prescan_insn): Likewise for param "insn". Remove
22004 now-redundant checked cast.
22005 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
22006 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
22007 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
22008 for use where lc_set became an insn.
22009 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
22010 rtx to rtx_insn *.
22011 (arc_get_insn_variants): Likewise for local "prev".
22012 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
22013 "next".
22014 (arc_predicate_delay_insns): Likewise for local "insn".
22015 (arc_pad_return): Likewise for local "prev". For now, add a
22016 checked cast when extracting the insn from "final_sequence".
22017 (arc_short_long): Likewise for param "insn".
22018 (arc_need_delay): Likewise for param "insn" and local "next".
22019 (arc_label_align): Likewise for locals "prev", "next".
22020
22021 2014-08-25 David Malcolm <dmalcolm@redhat.com>
22022
22023 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
22024 "insn" from rtx to rtx_insn *.
22025 (alpha_gp_save_rtx): Likewise for local "seq".
22026 (alpha_instantiate_decls): Likewise for local "top".
22027 (get_some_local_dynamic_name): Likewise for local "insn".
22028 (alpha_does_function_need_gp): Likewise.
22029 (set_frame_related_p): Likewise for return type and for locals
22030 "seq" and "insn".
22031 (emit_frame_store_1): Likewise for local "insn".
22032 (alpha_expand_prologue): Likewise for locals "insn", "seq".
22033 (alpha_end_function): Likewise for local "insn".
22034 (alpha_output_mi_thunk_osf): Likewise.
22035 (alphaev4_insn_pipe): Likewise for param "insn".
22036 (alphaev5_insn_pipe): Likewise.
22037 (alphaev4_next_group): Likewise for return type and param 1
22038 "insn".
22039 (alphaev5_next_group): Likewise.
22040 (alpha_align_insns_1): Likewise for return type and param 1 of
22041 callback param "next_group", and for locals "i", "next", "prev",
22042 "where", "where2", "insn".
22043
22044 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
22045
22046 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
22047 rather than modifying the stmt.
22048
22049 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22050
22051 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
22052 cgraph_state conversion.
22053
22054 2014-08-25 David Malcolm <dmalcolm@redhat.com>
22055
22056 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22057 Strengthen local "insns" from rtx to rtx_insn *.
22058 (aarch64_set_frame_expr): Likewise for local "insn".
22059 (aarch64_save_or_restore_fprs): Likewise.
22060 (aarch64_save_or_restore_callee_save_registers): Likewise.
22061 (aarch64_expand_prologue): Likewise.
22062 (aarch64_expand_epilogue): Likewise.
22063 (aarch64_output_mi_thunk): Likewise.
22064 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
22065 "label2" from rtx to rtx_code_label *.
22066 (aarch64_split_atomic_op): Likewise for local "label".
22067
22068 2014-08-25 Martin Liska <mliska@suse.cz>
22069
22070 * cgraph.h (symtab_node):
22071 (bool needed_p (void)): created from decide_is_symbol_needed
22072 (bool referred_to_p (void)): created from referred_to_p
22073 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
22074 * cgraph.h (cgraph_node):
22075 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
22076 (void expand (void)): created from expand_function
22077 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
22078 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
22079 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
22080 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
22081 * cgraph.h (varpool_node):
22082 (static void add (tree decl): created from varpool_add_new_variable
22083 * cgraph.h (cgraph_edge):
22084 void remove (void);
22085 (void remove_caller (void)): created from cgraph_edge_remove_caller
22086 (void remove_callee (void)): created from cgraph_edge_remove_callee
22087 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
22088 created from cgraph_set_call_stmt
22089 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
22090 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
22091 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
22092 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
22093 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
22094 created from cgraph_speculative_call_info
22095 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
22096 int freq_scale, bool update_original)): created from cgraph_clone_edge
22097 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
22098 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
22099 (bool recursive_p (void)): created from cgraph_edge_recursive_p
22100 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
22101 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
22102 (static void rebuild_references (void)): created from cgraph_rebuild_references
22103 * cgraph.h (symbol_table):
22104 (create_reference): renamed from add_reference
22105 (maybe_create_reference): renamed from maybe_add_reference
22106 (void register_symbol (symtab_node *node)): new function
22107 (void clear_asm_symbols (void)): new function
22108 (void unregister (symtab_node *node)): new function
22109 (void release_symbol (cgraph_node *node, int uid)): new function
22110 (cgraph_node * allocate_cgraph_symbol (void)): new function
22111 (void initialize (void)): created from cgraph_init
22112 (symtab_node *first_symbol (void)):new function
22113 (asm_node *first_asm_symbol (void)):new function
22114 (symtab_node *first_defined_symbol (void)):new function
22115 (varpool_node *first_variable (void)):new function
22116 (varpool_node *next_variable (varpool_node *node)):new function
22117 (varpool_node *first_static_initializer (void)):new function
22118 (varpool_node *next_static_initializer (varpool_node *node)):new function
22119 (varpool_node *first_defined_variable (void)):new function
22120 (varpool_node *next_defined_variable (varpool_node *node)):new function
22121 (cgraph_node *first_defined_function (void)):new function
22122 (cgraph_node *next_defined_function (cgraph_node *node)):new function
22123 (cgraph_node *first_function (void)):new function
22124 (cgraph_node *next_function (cgraph_node *node)):new function
22125 (cgraph_node *first_function_with_gimple_body (void)):new function
22126 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
22127 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
22128 created from symtab_remove_unreachable_nodes
22129 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
22130 (void process_new_functions (void)): created from cgraph_process_new_functions
22131 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
22132 (bool output_variables (void)): created from varpool_node::output_variables
22133 (void output_asm_statements (void)): created from output_asm_statements
22134 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
22135 (void compile (void)): created from compile
22136 (void output_weakrefs (void)): created from output_weakrefs
22137 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
22138 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
22139 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
22140 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
22141 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
22142 created from cgraph_next_function_with_gimple_body
22143 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
22144 created from cgraph_remove_edge_removal_hook
22145 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
22146 created from cgraph_add_node_removal_hook
22147 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
22148 created from cgraph_remove_node_removal_hook
22149 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
22150 created from varpool_add_node_removal_hook
22151 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
22152 created from varpool_remove_node_removal_hook
22153 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
22154 created from cgraph_add_function_insertion_hook
22155 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
22156 created from cgraph_remove_function_insertion_hook
22157 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
22158 created from varpool_add_variable_insertion_hook
22159 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
22160 created from varpool_remove_variable_insertion_hook
22161 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
22162 created from cgraph_add_edge_duplication_hook
22163 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
22164 created from cgraph_remove_edge_duplication_hook
22165 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
22166 created from cgraph_add_node_duplication_hook
22167 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
22168 created from cgraph_remove_node_duplication_hook
22169 (void call_edge_removal_hooks (cgraph_edge *e)):
22170 created from cgraph_call_edge_removal_hooks
22171 (void call_cgraph_insertion_hooks (cgraph_node *node)):
22172 created from call_function_insertion_hooks
22173 (void call_cgraph_removal_hooks (cgraph_node *node)):
22174 created from cgraph_call_node_removal_hooks
22175 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
22176 created from cgraph_node::call_duplication_hooks
22177 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
22178 created from cgraph_call_edge_duplication_hooks
22179 (void call_varpool_removal_hooks (varpool_node *node)):
22180 created from varpool_call_node_removal_hooks
22181 (void call_varpool_insertion_hooks (varpool_node *node)):
22182 created from varpool_call_variable_insertion_hooks
22183 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
22184 created from insert_to_assembler_name_hash
22185 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
22186 created from unlink_from_assembler_name_hash
22187 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
22188 created from symtab_prevail_in_asm_name_hash
22189 (void symtab_initialize_asm_name_hash (void)):
22190 created from symtab_initialize_asm_name_hash
22191 (void change_decl_assembler_name (tree decl, tree name)):
22192 created from change_decl_assembler_name
22193 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
22194 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
22195 created from decl_assembler_name_hash
22196 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
22197 created from decl_assembler_name_equal
22198 (static hashval_t hash_node_by_assembler_name (const void *p)):
22199 created from hash_node_by_assembler_name
22200 (static int eq_assembler_name (const void *p1, const void *p2)):
22201 created from eq_assembler_name
22202
22203 2014-08-25 Marek Polacek <polacek@redhat.com>
22204
22205 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
22206
22207 2014-08-25 Petr Murzin <petr.murzin@intel.com>
22208
22209 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
22210 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
22211 SWI1248_AVX512BW mode iterator.
22212
22213 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
22214
22215 PR target/62111
22216 * config/sh/predicates.md (general_extend_operand): Disable
22217 TRUNCATE before reload completes.
22218
22219 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
22220
22221 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
22222
22223 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
22224
22225 PR target/61996
22226 * config/sh/sh.opt (musermode): Allow negative form.
22227 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
22228 targets that don't support it.
22229 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
22230 Document -mno-usermode option.
22231
22232 2014-08-24 Kito Cheng <kito@0xlab.org>
22233
22234 * system.h (CALLER_SAVE_PROFITABLE): Poison.
22235 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
22236 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
22237 * doc/tm.texi: Regenerate.
22238
22239 2014-08-24 Kito Cheng <kito@0xlab.org>
22240
22241 * ira.c: Fix typo in comment.
22242
22243 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
22244
22245 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
22246 Deprecate c++1y. Change language to reflect greater confidence in C++14.
22247
22248 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
22249
22250 PR target/62038
22251 * config/pa/pa.c (pa_output_function_epilogue): Don't set
22252 last_address when the current function is a thunk.
22253 (pa_asm_output_mi_thunk): When we don't have named sections or they
22254 are not being used, check that thunk can reach the stub table with a
22255 short branch.
22256
22257 2014-08-23 David Malcolm <dmalcolm@redhat.com>
22258
22259 * web.c (union_match_dups): Strengthen param "insn" from rtx to
22260 rtx_insn *.
22261 (pass_web::execute): Likewise for local "insn".
22262
22263 2014-08-23 David Malcolm <dmalcolm@redhat.com>
22264
22265 * var-tracking.c (struct micro_operation_def): Strengthen field
22266 "insn" from rtx to rtx_insn *.
22267 (struct emit_note_data_def): Likewise.
22268 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
22269 (vt_stack_adjustments): Likewise for local "insn".
22270 (adjust_insn): Likewise for param "insn".
22271 (val_store): Likewise.
22272 (val_resolve): Likewise.
22273 (struct count_use_info): Likewise for field "insn".
22274 (log_op_type): Likewise for param "insn".
22275 (reverse_op): Likewise.
22276 (prepare_call_arguments): Likewise.
22277 (add_with_sets): The initial param takes an insn, but we can't
22278 yet strengthen it from rtx to rtx_insn * since it's used as a
22279 cselib_record_sets_hook callback. For now rename initial param
22280 from "insn" to "uncast_insn", and introduce a local "insn" of
22281 the stronger rtx_insn * type, with a checked cast.
22282 (compute_bb_dataflow): Strengthen local "insn" from rtx to
22283 rtx_insn *.
22284 (emit_note_insn_var_location): Likewise.
22285 (emit_notes_for_changes): Likewise.
22286 (emit_notes_for_differences): Likewise.
22287 (next_non_note_insn_var_location): Likewise for return type and
22288 for param "insn".
22289 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
22290 (vt_initialize): Likewise for local "insn".
22291 (delete_debug_insns): Likewise for locals "insn" and "next".
22292
22293 2014-08-23 David Malcolm <dmalcolm@redhat.com>
22294
22295 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
22296 rtx_insn *.
22297 (mark_constant_pool): Likewise for local "insn".
22298
22299 2014-08-23 David Malcolm <dmalcolm@redhat.com>
22300
22301 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
22302 rtx to rtx_insn *.
22303 (dead_debug_promote_uses): Likewise.
22304 (dead_debug_insert_temp): Likewise.
22305
22306 2014-08-23 David Malcolm <dmalcolm@redhat.com>
22307
22308 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
22309 from const_rtx to const rtx_insn *.
22310 (store_killed_after): Likewise. Strengthen locals "last", "act"
22311 from rtx to rtx_insn *.
22312 (store_killed_before): Strengthen param "insn" from const_rtx to
22313 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
22314 (find_moveable_store): Strengthen param "insn" from rtx to
22315 rtx_insn *.
22316 (compute_store_table): Likewise for local "insn".
22317 (insert_insn_start_basic_block): Likewise for param "insn" and
22318 locals "prev", "before", "insn".
22319 (insert_store): For now, add a checked cast to rtx_insn * on the
22320 result of gen_move_insn.
22321 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
22322 to rtx_insn *.
22323 (replace_store_insn): Likewise. For now, add a checked cast to
22324 rtx_insn * on the result of gen_move_insn.
22325
22326 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22327
22328 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
22329 rtx_insn *.
22330 (expand_sjlj_dispatch_table): Likewise.
22331
22332 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22333
22334 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
22335 "insn" from rtx to rtx_insn *.
22336
22337 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22338
22339 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
22340 "insn" from rtx to rtx_insn *.
22341 (dup_block_and_redirect): Likewise for param 3 "before".
22342
22343 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
22344 from rtx to rtx_insn *.
22345 (move_insn_for_shrink_wrap): Likewise.
22346 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
22347 (dup_block_and_redirect): Likewise for param "before" and local
22348 "insn".
22349 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
22350 "end".
22351 (convert_to_simple_return): Likewise for local "start".
22352
22353 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
22354 Strengthen local "insn" from rtx to rtx_insn *, for use when
22355 invoking requires_stack_frame_p.
22356
22357 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22358
22359 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
22360 rtx_insn *.
22361 (speculate_expr): Likewise for locals "orig_insn_rtx",
22362 "spec_insn_rtx".
22363 (eq_transformed_insns): Likewise for locals "i1", "i2".
22364 (check_for_new_jump): Likewise for return type and local "end".
22365 (find_new_jump): Likewise for return type and local "jump".
22366 (sel_split_edge): Likewise for local "jump".
22367 (sel_create_recovery_block): Likewise.
22368 (sel_redirect_edge_and_branch_force): Likewise.
22369 (sel_redirect_edge_and_branch): Likewise.
22370
22371 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22372
22373 * sel-sched.c (substitute_reg_in_expr): Strengthen local
22374 "new_insn" from rtx to rtx_insn *.
22375 (create_insn_rtx_with_rhs): Likewise for return type and for local
22376 "insn_rtx".
22377 (create_insn_rtx_with_lhs): Likewise.
22378 (create_speculation_check): Likewise for local "insn_rtx".
22379 (implicit_clobber_conflict_p): Likewise for local "insn".
22380 (get_expr_cost): Likewise.
22381 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
22382 (move_cond_jump): Likewise for locals "next", "prev", "link",
22383 "head", "from", "to".
22384
22385 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22386
22387 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
22388 "next" from rtx to rtx_insn *.
22389 (find_conditional_protection): Likewise for local "next".
22390 (is_conditionally_protected): Likewise for local "insn1".
22391 (is_pfree): Likewise for locals "insn1", "insn2".
22392
22393 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22394
22395 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
22396 from rtx to rtx_insn *.
22397
22398 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
22399 locals "insn1", "insn2" from rtx to rtx_insn *.
22400 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
22401 locals "insn", "prev", "last_jump", "next_tail".
22402 (schedule_ebb): Likewise for params "head", "tail".
22403 (schedule_ebbs): Likewise for locals "tail", "head".
22404
22405 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
22406 to rtx_insn on "last_insn" in one of the invocations of
22407 schedule_ebb.
22408
22409 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22410
22411 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
22412 "elem", "insn" from rtx to rtx_insn *.
22413 (change_spec_dep_to_hard): Likewise.
22414 (get_back_and_forw_lists): Likewise for local "con".
22415 (sd_add_dep): Likewise for locals "elem", "insn".
22416 (sd_resolve_dep): Likewise for locals "pro", "con".
22417 (sd_unresolve_dep): Likewise.
22418 (sd_delete_dep): Likewise.
22419 (chain_to_prev_insn): Likewise for local "pro".
22420 (find_inc): Likewise for locals "pro", "con".
22421
22422 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22423
22424 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
22425 to rtx_insn *.
22426 (reg_set_between_p): Strengthen local "insn" from const_rtx to
22427 const rtx_insn *.
22428 (modified_between_p): Strengthen local "insn" from rtx to
22429 rtx_insn *.
22430 (remove_reg_equal_equiv_notes_for_regno): Likewise.
22431 (keep_with_call_p): Strengthen local "i2" from const_rtx to
22432 const rtx_insn *.
22433
22434 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22435
22436 * resource.c (next_insn_no_annul): Strengthen local "next" from
22437 rtx to rtx_insn *.
22438 (mark_referenced_resources): Likewise for local "insn".
22439
22440 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22441
22442 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
22443 to rtx_insn *.
22444 (find_reloads): Likewise for param 1.
22445 (subst_reloads): Likewise for sole param.
22446 (find_equiv_reg): Likwise for param 2.
22447 (regno_clobbered_p): Likwise for param 2.
22448 (reload): Likewise for param 1.
22449
22450 * caller-save.c (save_call_clobbered_regs): Strengthen local
22451 "insn" from rtx to rtx_insn *.
22452 (insert_one_insn): Likewise for local "insn".
22453
22454 * reload.c (this_insn): Likewise for this global.
22455 (find_reloads): Likewise for param "insn".
22456 (find_reloads_toplev): Likewise.
22457 (find_reloads_address): Likewise.
22458 (subst_reg_equivs): Likewise.
22459 (update_auto_inc_notes): Likewise.
22460 (find_reloads_address_1): Likewise.
22461 (find_reloads_subreg_address): Likewise.
22462 (subst_reloads): Likewise.
22463 (find_equiv_reg): Likewise, also for local "p".
22464 (regno_clobbered_p): Likewise for param "insn".
22465
22466 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
22467 array.
22468 (spill_reg_store): Likewise for the elements of this array.
22469 (remove_init_insns): Likewise for local "equiv_insn".
22470 (will_delete_init_insn_p): Likewise for param "insn".
22471 (reload): Likewise for param ""first" and local "insn".
22472 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
22473 rtx_insn *.
22474 (calculate_elim_costs_all_insns): Likewise.
22475 (delete_caller_save_insns): Likewise.
22476 (spill_failure): Likewise for param "insn".
22477 (delete_dead_insn): Likewise.
22478 (set_label_offsets): Likewise.
22479 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
22480 "prev_insn".
22481 (elimination_costs_in_insn): Likewise for param "insn".
22482 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
22483 when referring to an insn.
22484 (set_initial_label_offsets): Likewise.
22485 (set_offsets_for_label): Strengthen param "insn" from rtx to
22486 rtx_insn *.
22487 (init_eliminable_invariants): Likewise for param "first" and local
22488 "insn".
22489 (fixup_eh_region_note): Likewise for param "insn".
22490 (reload_as_needed): Likewise for locals "prev", "insn",
22491 "old_next", "old_prev", "next".
22492 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
22493 "last".
22494 (reload_inheritance_insn): Strengthen elements of this array from
22495 rtx to rtx_insn *.
22496 (failed_reload): Likewise for param "insn".
22497 (choose_reload_regs): Likewise for local "insn". Replace use of
22498 NULL_RTX with NULL when referring to an insn.
22499 (input_reload_insns): Strengthen elements of this array from rtx
22500 to rtx_insn *.
22501 (other_input_address_reload_insns): Likewise for this global.
22502 (other_input_reload_insns): Likewise for this global.
22503 (input_address_reload_insns): Likwise for the elements of this
22504 array.
22505 (inpaddr_address_reload_insns): Likwise for the elements of this
22506 array.
22507 (output_reload_insns): Likewise for the elements of this array.
22508 (output_address_reload_insns): Likewise for the elements of this
22509 array.
22510 (outaddr_address_reload_insns): Likewise for the elements of this
22511 array.
22512 (operand_reload_insns): Likewise for this global.
22513 (other_operand_reload_insns): Likewise for this global.
22514 (other_output_reload_insns): Likewise for the elements of this
22515 array.
22516 (new_spill_reg_store): Likewise for the elements of this
22517 array.
22518 (emit_input_reload_insns): Likewise for locals "insn", "temp".
22519 Strengthen local "where" from rtx * to rtx_insn **.
22520 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
22521 from rtx to rtx_insn *.
22522 (do_input_reload): Likewise for local "insn".
22523 (do_output_reload): Likewise for local "insn".
22524 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
22525 (emit_insn_if_valid_for_reload): Likewise for return type and local
22526 "last". Add checked cast to rtx_insn when returning "insn" since
22527 this has been through emit_insn.
22528 (gen_reload): Strengthen return type and locals "last", "insn", "set"
22529 from rtx to rtx_insn *. Add checked cast to rtx_insn when
22530 returning "insn" since it's been through
22531 emit_insn_if_valid_for_reload at this point.
22532 (delete_output_reload): Strengthen param "insn" and locals
22533 "output_reload_insn", "i2" from rtx to rtx_insn *.
22534 (delete_address_reloads): Likewise for params "dead_insn",
22535 "current_insn" and locals "prev", "next".
22536 (delete_address_reloads_1): Likewise for params "dead_insn",
22537 "current_insn" and locals "prev", "i2".
22538 (inc_for_reload): Likewise for locals "last", "add_insn".
22539 (add_auto_inc_notes): Strengthen param "insn" from rtx to
22540 rtx_insn *.
22541
22542 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
22543 param of this duplicate of the prototype from reload.h
22544
22545 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22546
22547 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
22548 rtx to rtx_insn *.
22549 (regstat_bb_compute_calls_crossed): Likewise.
22550
22551 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22552
22553 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
22554 to rtx_insn *.
22555 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
22556 with an insn.
22557 (regrename_analyze): Strengthen local "insn" from rtx to
22558 rtx_insn *.
22559 (scan_rtx_reg): Likewise for param "insn".
22560 (scan_rtx_address): Likewise.
22561 (scan_rtx): Likewise.
22562 (restore_operands): Likewise.
22563 (record_out_operands): Likewise.
22564 (build_def_use): Likewise for local "insn". Replace use of
22565 NULL_RTX with NULL when dealing with an insn.
22566
22567 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22568
22569 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
22570 * reginfo.c (reg_scan): Likewise, also for local "insn".
22571 (reg_scan_mark_refs): Likewise for param "insn".
22572 (init_subregs_of_mode): Likewise for local "insn".
22573
22574 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22575
22576 * regcprop.c (struct queued_debug_insn_change): Strengthen field
22577 "insn" from rtx to rtx_insn *.
22578 (replace_oldest_value_reg): Likewise for param "insn".
22579 (replace_oldest_value_addr): Likewise.
22580 (replace_oldest_value_mem): Likewise.
22581 (apply_debug_insn_changes): Likewise for local "last_insn".
22582 (copyprop_hardreg_forward_1): Likewise for local "insn".
22583
22584 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22585
22586 * reg-stack.c (next_flags_user): Strengthen return type and param
22587 "insn" from rtx to rtx_insn *.
22588 (straighten_stack): Likewise for param "insn".
22589 (check_asm_stack_operands): Likewise.
22590 (remove_regno_note): Likewise.
22591 (emit_pop_insn): Likewise for return type, param "insn", local
22592 "pop_insn".
22593 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
22594 "limit" from rtx to rtx_insn *.
22595 (swap_to_top): Likewise for param "insn".
22596 (move_for_stack_reg): Likewise.
22597 (move_nan_for_stack_reg): Likewise.
22598 (swap_rtx_condition): Likewise.
22599 (compare_for_stack_reg): Likewise.
22600 (subst_all_stack_regs_in_debug_insn): Likewise.
22601 (subst_stack_regs_pat): Likewise, and local "insn2".
22602 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
22603 rtx_insn *.
22604 (subst_stack_regs): Likewise.
22605 (change_stack): Likewise.
22606 (convert_regs_1): Likewise for locals "insn", "next".
22607
22608 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22609
22610 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
22611 rtx_insn *.
22612 (combine_set_extension): Likewise for param "curr_insn".
22613 (transform_ifelse): Likewise for param "def_insn".
22614 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
22615 from vec<rtx> * to vec<rtx_insn *> *.
22616 (is_cond_copy_insn): Likewise for param "insn".
22617 (struct ext_state): Strengthen the four vec fields from vec<rtx>
22618 to vec<rtx_insn *>.
22619 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
22620 local "def_insn" from rtx to rtx_insn *.
22621 (get_sub_rtx): Likewise for param "def_insn".
22622 (merge_def_and_ext): Likewise.
22623 (combine_reaching_defs): Likewise.
22624 (add_removable_extension): Likewise for param "insn".
22625 (find_removable_extensions): Likewise for local "insn".
22626 (find_and_remove_re): Likewise for locals "curr_insn" and
22627 "def_insn". Strengthen locals "reinsn_del_list" and
22628 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
22629
22630 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22631
22632 * recog.c (split_insn): Strengthen param "insn" and locals
22633 "first", "last" from rtx to rtx_insn *.
22634 (split_all_insns): Likewise for locals "insn", "next".
22635 (split_all_insns_noflow): Likewise.
22636
22637 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22638
22639 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
22640 const rtx_insn *.
22641 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
22642 (debug_rtx_find): Likewise for param 1 "x".
22643
22644 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
22645 const_rtx to const rtx_insn *. Likewise for local "insn".
22646 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
22647 (debug_rtx_find): Likewise for param 1 "x".
22648 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
22649 from const_rtx to const rtx_insn * within the appropriate cases of
22650 the switch statement.
22651
22652 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
22653 Strengthen local "insns" from rtx to rtx_insn * since this is
22654 passed to a call to debug_rtx_list.
22655
22656 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22657
22658 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
22659 to rtx_insn *.
22660
22661 * function.c (stack_protect_epilogue): Add checked cast to
22662 rtx_insn for now when invoking predict_insn_def.
22663
22664 * predict.c (predict_insn): Strengthen param "insn" from rtx to
22665 rtx_insn *.
22666 (predict_insn_def): Likewise.
22667 (rtl_predict_edge): Likewise for local "last_insn".
22668 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
22669 const rtx_insn *.
22670 (combine_predictions_for_insn): Strengthen param "insn" from rtx
22671 to rtx_insn *.
22672 (bb_estimate_probability_locally): Likewise for local "last_insn".
22673 (expensive_function_p): Likewise for local "insn".
22674
22675 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
22676 local "jmp", since this is used when invoking predict_insn_def.
22677
22678 2014-08-22 Marek Polacek <polacek@redhat.com>
22679
22680 PR c++/62199
22681 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
22682
22683 2014-08-22 Marek Polacek <polacek@redhat.com>
22684
22685 PR c/61271
22686 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
22687 a comparison in parens.
22688 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
22689 in parens.
22690
22691 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22692
22693 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
22694 rtx_insn *.
22695
22696 * cprop.c (fis_get_condition): Likewise.
22697
22698 * postreload.c (reload_cse_regs): Likewise for param "first".
22699 (reload_cse_simplify): Likewise for param "insn".
22700 (reload_cse_regs_1): Likewise for local "insn".
22701 (reload_cse_simplify_set): Likewise for param "insn".
22702 (reload_cse_simplify_operands): Likewise.
22703 (struct reg_use): Likewise for field "insn".
22704 (reload_combine_purge_insn_uses): Likewise for param "insn".
22705 (fixup_debug_insns): Likewise for params "from", "to" and local
22706 "insn".
22707 (try_replace_in_use): Likewise for local "use_insn".
22708 (reload_combine_recognize_const_pattern): Likewise for param
22709 "insn" and locals "add_moved_after_insn", "use_insn".
22710 (reload_combine_recognize_pattern): Likewise for param "insn" and
22711 local "prev".
22712 (reload_combine): Likewise for locals "insn", "prev".
22713 (reload_combine_note_use): Likewise for param "insn".
22714 (move2add_use_add2_insn): Likewise.
22715 (move2add_use_add3_insn): Likewise.
22716 (reload_cse_move2add): Likewise, also for local "next".
22717 (move2add_note_store): Likewise for local "insn".
22718
22719 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22720
22721 * postreload-gcse.c (struct occr): Strengthen field "insn" from
22722 rtx to rtx_insn *.
22723 (struct unoccr): Likewise.
22724 (struct modifies_mem): Likewise.
22725 (alloc_mem): Likewise for local "insn".
22726 (insert_expr_in_table): Likewise for param "insn".
22727 (dump_expr_hash_table_entry): Likewise for local "insn".
22728 (oprs_unchanged_p): Likewise for param "insn".
22729 (load_killed_in_block_p): Likewise for local "setter".
22730 (record_last_reg_set_info): Likewise for param "insn".
22731 (record_last_reg_set_info_regno): Likewise.
22732 (record_last_mem_set_info): Likewise.
22733 (record_last_set_info): Likewise for local "last_set_insn".
22734 (record_opr_changes): Likewise for param "insn".
22735 (hash_scan_set): Likewise.
22736 (compute_hash_table): Likewise for local "insn".
22737 (get_avail_load_store_reg): Likewise for param "insn".
22738 (eliminate_partially_redundant_load): Likewise, also for locals
22739 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
22740 RTX for insns.
22741 (eliminate_partially_redundant_loads): Likewise for local "insn".
22742
22743 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22744
22745 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
22746 rtx to rtx_insn *.
22747 (expand_binop): Likewise for locals "entry_last", "last", "insns"
22748 (expand_twoval_unop): Likewise for locals entry_last", "last".
22749 (expand_twoval_binop): Likewise.
22750 (expand_twoval_binop_libfunc): Likewise for local "insns".
22751 (widen_leading): Likewise for local "last".
22752 (expand_doubleword_clz): Likewise for local "seq". Strengthen
22753 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
22754 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
22755 (expand_parity): Likewise for locals "last" and "seq".
22756 (expand_ffs): Likewise for local "seq". Strengthen local
22757 "nonzero_label" from rtx to rtx_code_label *.
22758 (expand_absneg_bit): Strengthen local "insns" from rtx to
22759 rtx_insn *.
22760 (expand_unop_direct): Likewise for local "last".
22761 (expand_unop): Likewise for locals "last", "insns".
22762 (expand_abs_nojump): Likewise for local "last".
22763 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
22764 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
22765 rtx_insn *.
22766 (expand_copysign_absneg): Strengthen local "label" from rtx to
22767 rtx_code_label *.
22768 (expand_copysign_bit): Strengthen local "insns" from rtx to
22769 rtx_insn *.
22770 (struct no_conflict_data): Likewise for fields "first", "insn".
22771 (emit_libcall_block_1): Likewise for param "insns" and locals
22772 "next", "last", "insn".
22773 (emit_libcall_block): For now, add a checked cast to rtx_insn *
22774 on "insns" when invoking emit_libcall_block_1. Ultimately we
22775 want to strengthen insns itself.
22776 (prepare_cmp_insn): Strengthen local "last" from rtx to
22777 rtx_insn *.
22778 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
22779 (prepare_float_lib_cmp): Likewise for local "insns".
22780 (emit_conditional_move): Likewise for local "last".
22781 (emit_conditional_add): Likewise.
22782 (have_sub2_insn): Likewise for local "seq".
22783 (expand_float): Likewise for local "insns". Strengthen locals
22784 "label", "neglabel" from rtx to rtx_code_label *.
22785 (expand_fix): Likewise for locals "last", "insn", "insns" (to
22786 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
22787 (expand_fixed_convert): Likewise for local "insns" (to
22788 rtx_insn *).
22789 (expand_sfix_optab): Likewise for local "last".
22790 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
22791 to rtx_code_label *.
22792 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
22793 from rtx to rtx_insn *.
22794 (expand_atomic_fetch_op): Likewise for local "insn".
22795 (maybe_legitimize_operand_same_code): Likewise for local "last".
22796 (maybe_legitimize_operands): Likewise.
22797
22798 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22799
22800 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
22801 "insn" from rtx to rtx_insn *.
22802 (ps_rtl_insn): Likewise for return type.
22803 (doloop_register_get): Likewise for params "head", "tail" and
22804 locals "insn", "first_insn_not_to_check".
22805 (schedule_reg_move): Likewise for local "this_insn".
22806 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
22807 of gen_move_insn for now.
22808 (reset_sched_times): Strengthen local "insn" from rtx to
22809 rtx_insn *.
22810 (permute_partial_schedule): Likewise.
22811 (duplicate_insns_of_cycles): Likewise for local "u_insn".
22812 (dump_insn_location): Likewise for param "insn".
22813 (loop_canon_p): Likewise for local "insn".
22814 (sms_schedule): Likewise.
22815 (print_partial_schedule): Likewise.
22816 (ps_has_conflicts): Likewise.
22817
22818 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22819
22820 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
22821 "tailp" from rtx * to rtx_insn **.
22822
22823 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
22824 from rtx to rtx_insn *.
22825 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
22826 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
22827 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
22828 rtx to rtx_insn *.
22829 * modulo-sched.c (const_iteration_count): Strengthen return type
22830 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
22831 use of NULL_RTX with NULL when working with insns.
22832 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
22833 to rtx_insn *.
22834 (sms_schedule): Likewise.
22835 * sched-rgn.c (init_ready_list): Likewise, also for locals
22836 "src_head" and "src_next_tail".
22837 (compute_block_dependences): Likewise.
22838 (free_block_dependencies): Likewise.
22839 (debug_rgn_dependencies): Likewise.
22840 (free_rgn_deps): Likewise.
22841 (compute_priorities): Likewise.
22842 (schedule_region): Likewise.
22843 * sel-sched.c (find_ebb_boundaries): Likewise.
22844
22845 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
22846 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
22847
22848 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22849
22850 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
22851 from rtx to rtx_insn *.
22852 (new_seginfo): Likewise for param "insn".
22853 (create_pre_exit): Likewise for locals "last_insn",
22854 "before_return_copy", "return_copy".
22855 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
22856 "mode_set".
22857
22858 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22859
22860 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
22861 from rtx to rtx_insn *.
22862 (lra_push_insn): Likewise for 1st param.
22863 (lra_push_insn_and_update_insn_regno_info): Likewise.
22864 (lra_pop_insn): Likewise for return type.
22865 (lra_invalidate_insn_data): Likewise for 1st param.
22866 (lra_set_insn_deleted): Likewise.
22867 (lra_delete_dead_insn): Likewise.
22868 (lra_process_new_insns): Likewise for first 3 params.
22869 (lra_set_insn_recog_data): Likewise for 1st param.
22870 (lra_update_insn_recog_data): Likewise.
22871 (lra_set_used_insn_alternative): Likewise.
22872 (lra_invalidate_insn_regno_info): Likewise.
22873 (lra_update_insn_regno_info): Likewise.
22874 (lra_former_scratch_operand_p): Likewise.
22875 (lra_eliminate_regs_1): Likewise.
22876 (lra_get_insn_recog_data): Likewise.
22877
22878 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
22879 rtx to rtx_insn *.
22880
22881 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
22882 "mv1" and "mv2".
22883 (substitute_within_insn): New.
22884 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
22885 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
22886 Replace call to "substitute" with call to substitute_within_insn.
22887
22888 * lra-constraints.c (curr_insn): Strengthen from rtx to
22889 rtx_insn *.
22890 (get_equiv_with_elimination): Likewise for param "insn".
22891 (match_reload): Strengthen params "before" and "after" from rtx *
22892 to rtx_insn **.
22893 (emit_spill_move): Likewise for return type. Add a checked cast
22894 to rtx_insn * on result of gen_move_insn for now.
22895 (check_and_process_move): Likewise for local "before". Replace
22896 NULL_RTX with NULL when referring to insns.
22897 (process_addr_reg): Strengthen params "before" and "after" from
22898 rtx * to rtx_insn **.
22899 (insert_move_for_subreg): Likewise.
22900 (simplify_operand_subreg): Strengthen locals "before" and "after"
22901 from rtx to rtx_insn *.
22902 (process_address_1): Strengthen params "before" and "after" from
22903 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
22904 rtx to rtx_insn *.
22905 (process_address): Strengthen params "before" and "after" from
22906 rtx * to rtx_insn **.
22907 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
22908 (curr_insn_transform): Strengthen locals "before" and "after"
22909 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
22910 to insns.
22911 (loc_equivalence_callback): Update cast of "data", changing
22912 resulting type from rtx to rtx_insn *.
22913 (substitute_pseudo_within_insn): New.
22914 (inherit_reload_reg): Strengthen param "insn" from rtx to
22915 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
22916 NULL when referring to insns. Add a checked cast to rtx_insn *
22917 when using usage_insn to invoke lra_update_insn_regno_info.
22918 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
22919 likewise for locals "restore", "save". Add checked casts to
22920 rtx_insn * when using usage_insn to invoke
22921 lra_update_insn_regno_info and lra_process_new_insns. Replace
22922 NULL_RTX with NULL when referring to insns.
22923 (split_if_necessary): Strengthen param "insn" from rtx to
22924 rtx_insn *.
22925 (update_ebb_live_info): Likewise for params "head", "tail" and local
22926 "prev_insn".
22927 (get_last_insertion_point): Likewise for return type and local "insn".
22928 (get_live_on_other_edges): Likewise for local "last".
22929 (inherit_in_ebb): Likewise for params "head", "tail" and locals
22930 "prev_insn", "next_insn", "restore".
22931 (remove_inheritance_pseudos): Likewise for local "prev_insn".
22932 (undo_optional_reloads): Likewise for local "insn".
22933
22934 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
22935 "insn".
22936 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
22937 insns.
22938 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
22939 rtx_insn *.
22940 (spill_pseudos): Likewise for local "insn".
22941 (init_elimination): Likewise.
22942 (process_insn_for_elimination): Likewise for param "insn".
22943
22944 * lra-lives.c (curr_insn): Likewise.;
22945
22946 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
22947 (remove_pseudos): Likewise for param "insn".
22948 (spill_pseudos): Likewise for local "insn".
22949 (lra_final_code_change): Likewise for locals "insn", "curr".
22950
22951 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
22952 (lra_set_insn_deleted): Likewise.
22953 (lra_delete_dead_insn): Likewise, and for local "prev".
22954 (new_insn_reg): Likewise for param "insn".
22955 (lra_set_insn_recog_data): Likewise.
22956 (lra_update_insn_recog_data): Likewise.
22957 (lra_set_used_insn_alternative): Likewise.
22958 (get_insn_freq): Likewise.
22959 (invalidate_insn_data_regno_info): Likewise.
22960 (lra_invalidate_insn_regno_info): Likewise.
22961 (lra_update_insn_regno_info): Likewise.
22962 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
22963 vec<rtx_insn *>.
22964 (lra_push_insn_1): Strengthen param "insn" from rtx to
22965 rtx_insn *.
22966 (lra_push_insn): Likewise.
22967 (lra_push_insn_and_update_insn_regno_info): Likewise.
22968 (lra_pop_insn): Likewise for return type and local "insn".
22969 (push_insns): Likewise for params "from", "to", and local "insn".
22970 (setup_sp_offset): Likewise for params "from", "last" and locals
22971 "before", "insn".
22972 (lra_process_new_insns): Likewise for params "insn", "before",
22973 "after" and local "last".
22974 (struct sloc): Likewise for field "insn".
22975 (lra_former_scratch_operand_p): Likewise for param "insn".
22976 (remove_scratches): Likewise for locals "insn", "last".
22977 (check_rtl): Likewise for local "insn".
22978 (add_auto_inc_notes): Likewise for param "insn".
22979 (update_inc_notes): Likewise for local "insn".
22980 (lra): Replace NULL_RTX with NULL when referring to insn.
22981
22982 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22983
22984 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
22985 to rtx_insn *.
22986 (resolve_reg_notes): Likewise.
22987 (resolve_simple_move): Likewise for return type, param "insn", and
22988 locals "insns", "minsn".
22989 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
22990 (resolve_use): Likewise.
22991 (resolve_debug): Likewise.
22992 (find_decomposable_shift_zext): Likewise.
22993 (resolve_shift_zext): Likewise for return type, param "insn", and
22994 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
22995 (decompose_multiword_subregs): Likewise for local "insn",
22996 "orig_insn", "decomposed_shift", "end".
22997
22998 2014-08-22 David Malcolm <dmalcolm@redhat.com>
22999
23000 * basic-block.h (basic_block split_edge_and_insert): Strengthen
23001 param "insns" from rtx to rtx_insn *.
23002
23003 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
23004 rtx to rtx_insn *.
23005 (struct iv_to_split): Likewise.
23006 (loop_exit_at_end_p): Likewise for local "insn".
23007 (split_edge_and_insert): Likewise for param "insns".
23008 (compare_and_jump_seq): Likewise for return type, param "cinsn",
23009 and locals "seq", "jump".
23010 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
23011 "branch_code"; update invocations of compare_and_jump_seq to
23012 eliminate NULL_RTX in favor of NULL.
23013 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
23014 rtx to rtx_insn *.
23015 (reset_debug_uses_in_loop): Likewise.
23016 (analyze_insn_to_expand_var): Likewise for param "insn".
23017 (analyze_iv_to_split_insn): Likewise.
23018 (analyze_insns_in_loop): Likewise for local "insn".
23019 (insert_base_initialization): Likewise for param
23020 "insn" and local "seq".
23021 (split_iv): Likewise for param "insn" and local "seq".
23022 (expand_var_during_unrolling): Likewise for param "insn".
23023 (insert_var_expansion_initialization): Likewise for local "seq".
23024 (combine_var_copies_in_loop_exit): Likewise.
23025 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
23026 "insn".
23027 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
23028 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
23029 "next".
23030
23031 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23032
23033 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
23034 rtx_insn *.
23035 (iv_analyze_result): Likewise.
23036 (iv_analyze_expr): Likewise.
23037 (biv_p): Likewise.
23038
23039 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
23040 local "def_insn" from rtx to rtx_insn *.
23041 (get_biv_step_1): Likewise for local "insn".
23042 (iv_analyze_expr): Likewise for param "insn".
23043 (iv_analyze_def): Likewise for local "insn".
23044 (iv_analyze_op): Likewise for param "insn".
23045 (iv_analyze): Likewise.
23046 (iv_analyze_result): Likewise.
23047 (biv_p): Likewise.
23048 (suitable_set_for_replacement): Likewise.
23049 (simplify_using_initial_values): Likewise for local "insn".
23050 (iv_number_of_iterations): Likewise for param "insn".
23051 (check_simple_exit): Add checked cast to rtx_insn when invoking
23052 iv_number_of_iterations for now (until get_condition is
23053 strengthened).
23054
23055 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
23056 "insn" from rtx to rtx_insn *.
23057 (analyze_insns_in_loop): Likewise for local "insn".
23058
23059 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23060
23061 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
23062 to rtx_insn *.
23063 (struct invariant): Likewise.
23064 (hash_invariant_expr_1): Likewise for param "insn".
23065 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
23066 (find_exits): Likewise for local "insn".
23067 (create_new_invariant): Likewise for param "insn".
23068 (check_dependencies): Likewise.
23069 (find_invariant_insn): Likewise.
23070 (record_uses): Likewise.
23071 (find_invariants_insn): Likewise.
23072 (find_invariants_bb): Likewise for local "insn".
23073 (get_pressure_class_and_nregs): Likewise for param "insn".
23074 (calculate_loop_reg_pressure): Likewise for local "insn".
23075
23076 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23077
23078 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
23079 to rtx_insn *.
23080 (add_test): Likewise for locals "seq", "jump".
23081 (doloop_modify): Likewise for locals "sequence", "jump_insn".
23082
23083 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23084
23085 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
23086 rtx_insn *.
23087 (rebuild_jump_labels_chain): Likewise for param "chain".
23088
23089 * cfgexpand.c (pass_expand::execute): Add checked cast to
23090 rtx_insn * when calling rebuild_jump_labels_chain in region where
23091 we know e->insns.r is non-NULL.
23092
23093 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
23094 rtx_insn *.
23095 (rebuild_jump_labels): Likewise.
23096 (rebuild_jump_labels_chain): Likewise for param "chain".
23097 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
23098 (init_label_info): Likewise for param "f".
23099 (maybe_propagate_label_ref): Likewise for params "jump_insn",
23100 "prev_nonjump_insn".
23101 (mark_all_labels): Likewise for param "f" and locals "insn",
23102 "prev_nonjump_insn".
23103
23104 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23105
23106 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
23107 from rtx to rtx_insn *insn.
23108 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
23109 (ira_add_allocno_copy): Likewise.
23110 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
23111 rtx to rtx_insn *.
23112 (ira_create_copy): Likewise.
23113 (ira_add_allocno_copy): Likewise.
23114 (create_bb_allocnos): Likewise for local "insn".
23115 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
23116 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
23117 process_regs_for_copy for rtx_insn * param.
23118 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
23119 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
23120 process_regs_for_copy for rtx_insn * param.
23121 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
23122 * ira-costs.c (record_reg_classes): Likewise for param "insn".
23123 (record_operand_costs): Likewise.
23124 (scan_one_insn): Likewise for return type, and for param "insn".
23125 (process_bb_for_costs): Likewise for local "insn".
23126 (process_bb_node_for_hard_reg_moves): Likewise.
23127 * ira-emit.c (struct move): Likewise for field "insn".
23128 (create_move): Eliminate use of NULL_RTX when dealing with an
23129 rtx_insn *.
23130 (emit_move_list): Strengthen return type and locals "result",
23131 "insn" from rtx to rtx_insn *insn.
23132 (emit_moves): Likewise for locals "insns", "tmp".
23133 (ira_emit): Likewise for local "insn".
23134 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
23135 "insn".
23136 (find_call_crossed_cheap_reg): Likewise.
23137 (process_bb_node_lives): Likewise for local "insn".
23138 * ira.c (decrease_live_ranges_number): Likewise.
23139 (compute_regs_asm_clobbered): Likewise.
23140 (build_insn_chain): Likewise.
23141 (find_moveable_pseudos): Likewise, also locals "def_insn",
23142 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
23143 to rtx_insn **. Add a checked cast when assigning from
23144 "closest_use" into closest_uses array in a region where we know
23145 it's a non-NULL insn.
23146 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
23147 to rtx_insn *.
23148 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
23149 "last_interesting_insn", "uin".
23150 (move_unallocated_pseudos): Likewise for locals "def_insn",
23151 "move_insn", "newinsn".
23152
23153 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23154
23155 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
23156 Strengthen locals "done_label", "do_error" from rtx to
23157 rtx_code_label *.
23158 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
23159 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
23160 rtx_code_label *.
23161 (ubsan_expand_si_overflow_neg_check): Likewise for locals
23162 "done_label", "do_error" to rtx_code_label * and local "last" to
23163 rtx_insn *.
23164 (ubsan_expand_si_overflow_mul_check): Likewise for locals
23165 "done_label", "do_error", "large_op0", "small_op0_large_op1",
23166 "one_small_one_large", "both_ops_large", "after_hipart_neg",
23167 "after_lopart_neg", "do_overflow", "hipart_different" to
23168 rtx_code_label * and local "last" to rtx_insn *.
23169
23170 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23171
23172 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
23173 "insn" and "move_insn" from rtx to rtx_insn *.
23174
23175 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23176
23177 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
23178 rtx_insn *.
23179 (cheap_bb_rtx_cost_p): Likewise.
23180 (first_active_insn): Likewise for return type and local "insn".
23181 (last_active_insn): Likewise for return type and locals "insn",
23182 "head".
23183 (struct noce_if_info): Likewise for fields "jump", "insn_a",
23184 "insn_b".
23185 (end_ifcvt_sequence): Likewise for return type and locals "insn",
23186 "seq".
23187 (noce_try_move): Likewise for local "seq".
23188 (noce_try_store_flag): Likewise.
23189 (noce_try_store_flag_constants): Likewise.
23190 (noce_try_addcc): Likewise.
23191 (noce_try_store_flag_mask): Likewise.
23192 (noce_try_cmove): Likewise.
23193 (noce_try_minmax): Likewise.
23194 (noce_try_abs): Likewise.
23195 (noce_try_sign_mask): Likewise.
23196 (noce_try_bitop): Likewise.
23197 (noce_can_store_speculate_p): Likewise for local "insn".
23198 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
23199 seq".
23200 (check_cond_move_block): Likewise for local "insn".
23201 (cond_move_convert_if_block): Likewise.
23202 (cond_move_process_if_block): Likewise for locals "seq",
23203 "loc_insn".
23204 (noce_find_if_block): Likewise for local "jump".
23205 (merge_if_block): Likewise for local "last".
23206 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
23207 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
23208 (block_has_only_trap): Likewise for return type and local "trap".
23209 (find_if_case_1): Likewise for local "jump".
23210 (dead_or_predicable): Likewise for locals "head", "end", "jump",
23211 "insn".
23212
23213 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23214
23215 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
23216 "last_insn", "loop_end" from rtx to rtx_insn *.
23217
23218 * hw-doloop.c (scan_loop): Likewise for local "insn".
23219 (discover_loop): Likewise for param "tail_insn".
23220 (discover_loops): Likewise for local "tail".
23221
23222 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
23223 cast to rtx_insn * when assigning from an rtx local to a
23224 hwloop_info's "last_insn" field.
23225
23226 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23227
23228 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
23229 (add_delay_dependencies): Strengthen local "pro" from rtx to
23230 rtx_insn *.
23231 (recompute_todo_spec): Likewise.
23232 (dep_cost_1): Likewise for locals "insn", "used".
23233 (schedule_insn): Likewise for local "dbg".
23234 (schedule_insn): Likewise for locals "pro", "next".
23235 (unschedule_insns_until): Likewise for local "con".
23236 (restore_pattern): Likewise for local "next".
23237 (estimate_insn_tick): Likewise for local "pro".
23238 (resolve_dependencies): Likewise for local "next".
23239 (fix_inter_tick): Likewise.
23240 (fix_tick_ready): Likewise for local "pro".
23241 (add_to_speculative_block): Likewise for locals "check", "twin",
23242 "pro".
23243 (sched_extend_bb): Likewise for locals "end", "insn".
23244 (init_before_recovery): Likewise for local "x".
23245 (sched_create_recovery_block): Likewise for local "barrier".
23246 (create_check_block_twin): Likewise for local "pro".
23247 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
23248 "consumer".
23249 (unlink_bb_notes): Update for change to type of bb_header.
23250 Strengthen locals "prev", "label", "note", "next" from rtx to
23251 rtx_insn *.
23252 (clear_priorities): Likewise for local "pro".
23253
23254 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23255
23256 * gcse.c (struct occr): Strengthen field "insn" from rtx to
23257 rtx_insn *.
23258 (test_insn): Likewise for this global.
23259 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
23260 const rtx_insn *.
23261 (oprs_anticipatable_p): Likewise.
23262 (oprs_available_p): Likewise.
23263 (insert_expr_in_table): Strengthen param "insn" from rtx to
23264 rtx_insn *.
23265 (hash_scan_set): Likewise.
23266 (hash_scan_clobber): Likewise.
23267 (hash_scan_call): Likewise.
23268 (hash_scan_insn): Likewise.
23269 (compute_hash_table_work): Likewise for local "insn".
23270 (process_insert_insn): Likewise for return type and local "pat".
23271 (insert_insn_end_basic_block): Likewise for locals "new_insn",
23272 "pat", "pat_end", "maybe_cc0_setter".
23273 (pre_edge_insert): Likewise for local "insn".
23274 (pre_insert_copy_insn): Likewise for param "insn".
23275 (pre_insert_copies): Likewise for local "insn".
23276 (struct set_data): Likewise for field "insn".
23277 (single_set_gcse): Likewise for param "insn".
23278 (gcse_emit_move_after): Likewise.
23279 (pre_delete): Likewise for local "insn".
23280 (update_bb_reg_pressure): Likewise for param "from" and local
23281 "insn".
23282 (should_hoist_expr_to_dom): Likewise for param "from".
23283 (hoist_code): Likewise for local "insn".
23284 (get_pressure_class_and_nregs): Likewise for param "insn".
23285 (calculate_bb_reg_pressure): Likewise for local "insn".
23286 (compute_ld_motion_mems): Likewise.
23287
23288 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23289
23290 * genpeep.c (main): Rename param back from "uncast_ins1" to
23291 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
23292 checked cast.
23293
23294 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
23295
23296 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
23297
23298 PR target/62195
23299 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
23300 documentation to state it is only for VSX operations.
23301
23302 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
23303 constraint only active if VSX.
23304
23305 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
23306 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
23307 (lfiwzx): Likewise.
23308
23309 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23310
23311 * fwprop.c (single_def_use_dom_walker::before_dom_children):
23312 Strengthen local "insn" from rtx to rtx_insn *.
23313 (use_killed_between): Likewise for param "target_insn".
23314 (all_uses_available_at): Likewise for param "target_insn" and
23315 local "next".
23316 (update_df_init): Likewise for params "def_insn", "insn".
23317 (update_df): Likewise for param "insn".
23318 (try_fwprop_subst): Likewise for param "def_insn" and local
23319 "insn".
23320 (free_load_extend): Likewise for param "insn".
23321 (forward_propagate_subreg): Likewise for param "def_insn" and
23322 local "use_insn".
23323 (forward_propagate_asm): Likewise for param "def_insn" and local
23324 "use_insn".
23325 (forward_propagate_and_simplify): Likewise for param "def_insn"
23326 and local "use_insn".
23327 (forward_propagate_into): Likewise for locals "def_insn" and
23328 "use_insn".
23329
23330 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23331
23332 * function.c (emit_initial_value_sets): Strengthen local "seq"
23333 from rtx to rtx_insn *.
23334 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
23335 local "seq".
23336 (instantiate_virtual_regs): Likewise for local "insn".
23337 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
23338 (reorder_blocks_1): Likewise for param "insns" and local "insn".
23339 (expand_function_end): Likewise for locals "insn" and "seq".
23340 (epilogue_done): Likewise for local "insn".
23341 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
23342 "last", "trial".
23343 (reposition_prologue_and_epilogue_notes): Likewise for locals
23344 "insn", "last", "note", "first".
23345 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
23346 (pass_match_asm_constraints::execute): Likewise for local "insn".
23347
23348 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23349
23350 * output.h (final_scan_insn): Strengthen return type from rtx to
23351 rtx_insn *.
23352 (final_forward_branch_p): Likewise for param.
23353 (current_output_insn): Likewise for this global.
23354
23355 * final.c (rtx debug_insn): Likewise for this variable.
23356 (current_output_insn): Likewise.
23357 (get_attr_length_1): Rename param "insn" to "uncast_insn",
23358 adding "insn" back in as an rtx_insn * with a checked cast, so
23359 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
23360 first param.
23361 (compute_alignments): Strengthen local "label" from rtx to
23362 rtx_insn *.
23363 (shorten_branches): Rename param from "first" to "uncast_first",
23364 introducing a new local rtx_insn * "first" using a checked cast to
23365 effectively strengthen "first" from rtx to rtx_insn * without
23366 affecting the type signature. Strengthen locals "insn", "seq",
23367 "next", "label" from rtx to rtx_insn *.
23368 (change_scope): Strengthen param "orig_insn" and local "insn" from
23369 rtx to rtx_insn *.
23370 (final_start_function): Rename param from "first" to "uncast_first",
23371 introducing a new local rtx_insn * "first" using a checked cast to
23372 effectively strengthen "first" from rtx to rtx_insn * without
23373 affecting the type signature. Strengthen local "insn" from rtx to
23374 rtx_insn *.
23375 (dump_basic_block_info): Strengthen param "insn" from rtx to
23376 rtx_insn *.
23377 (final): Rename param from "first" to "uncast_first",
23378 introducing a new local rtx_insn * "first" using a checked cast to
23379 effectively strengthen "first" from rtx to rtx_insn * without
23380 affecting the type signature. Strengthen locals "insn", "next"
23381 from rtx to rtx_insn *.
23382 (output_alternate_entry_point): Strengthen param "insn" from rtx to
23383 rtx_insn *.
23384 (call_from_call_insn): Strengthen param "insn" from rtx to
23385 rtx_call_insn *.
23386 (final_scan_insn): Rename param from "insn" to "uncast_insn",
23387 introducing a new local rtx_insn * "insn" using a checked cast to
23388 effectively strengthen "insn" from rtx to rtx_insn * without
23389 affecting the type signature. Strengthen return type and locals
23390 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
23391 now-redundant checked cast to rtx_insn * from both invocations of
23392 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
23393 introducing a local "call_insn" for use when invoking
23394 call_from_call_insn.
23395 (notice_source_line): Strengthen param "insn" from rtx to
23396 rtx_insn *.
23397 (leaf_function_p): Likewise for local "insn".
23398 (final_forward_branch_p): Likewise.
23399 (leaf_renumber_regs): Likewise for param "first".
23400 (rest_of_clean_state): Likewise for locals "insn" and "next".
23401 (self_recursive_call_p): Likewise for param "insn".
23402 (collect_fn_hard_reg_usage): Likewise for local "insn".
23403 (get_call_fndecl): Likewise for param "insn".
23404 (get_call_cgraph_rtl_info): Likewise.
23405 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
23406 introducing a new local rtx_insn * "insn" using a checked cast to
23407 effectively strengthen "insn" from rtx to rtx_insn * without
23408 affecting the type signature.
23409
23410 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
23411 cast when assigning from param "insn" to current_output_insn.
23412 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
23413 so that we can assign it back to current_output_insn.
23414
23415 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23416
23417 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
23418 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
23419 atmxt540s and atmxt540sreva devices.
23420 * config/avr/avr-tables.opt: Regenerate.
23421 * config/avr/t-multilib: Regenerate.
23422 * doc/avr-mmcu.texi: Regenerate.
23423
23424 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23425
23426 * expr.c (convert_move): Strengthen local "insns" from rtx to
23427 rtx_insn *.
23428 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
23429 "top_label" from rtx to rtx_code_label *.
23430 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
23431 rtx_insn *.
23432 (emit_single_push_insn): Likewise for locals "prev", "last".
23433 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
23434 to rtx_code_label *.
23435 (store_constructor): Likewise for locals "loop_start", "loop_end".
23436 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
23437 rtx_insn *.
23438 (expand_expr_real_2): Likewise.
23439 (expand_expr_real_1): Strengthen local "label" from rtx to
23440 rtx_code_label *.
23441
23442 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23443
23444 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
23445 from rtx to rtx_insn *.
23446 (store_bit_field_1): Likewise.
23447 (extract_bit_field_1): Likewise.
23448 (expand_mult_const): Likewise for local "insns".
23449 (expmed_mult_highpart): Strengthen local "label" from rtx to
23450 rtx_code_label *.
23451 (expand_smod_pow2): Likewise.
23452 (expand_sdiv_pow2): Likewise.
23453 (expand_divmod): Strengthen locals "last", "insn" from rtx to
23454 rtx_insn *. Strengthen locals "label", "label1", "label2",
23455 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
23456 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
23457 (emit_store_flag): Likewise.
23458 (emit_store_flag_force): Strengthen local "label" from rtx to
23459 rtx_code_label *.
23460 (do_cmp_and_jump): Likewise for param "label".
23461
23462 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23463
23464 * explow.c (force_reg): Strengthen local "insn" from rtx to
23465 rtx_insn *.
23466 (adjust_stack_1): Likewise.
23467 (allocate_dynamic_stack_space): Likewise. Strengthen locals
23468 "final_label", "available_label", "space_available" from rtx to
23469 rtx_code_label *.
23470 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
23471 (anti_adjust_stack_and_probe): Likewise.
23472
23473 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23474
23475 * except.h (sjlj_emit_function_exit_after): Strengthen param
23476 "after" from rtx to rtx_insn *. This is only called with
23477 result of get_last_insn (in function.c) so type-change should be
23478 self-contained.
23479
23480 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
23481 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
23482 to rtx_insn *. These fields are only used from except.c so this
23483 type-change should be self-contained to this patch.
23484
23485 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
23486 local "last" from rtx to rtx_insn *.
23487 (dw2_build_landing_pads): Likewise for local "seq".
23488 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
23489 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
23490 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
23491 rtx to rtx_insn *.
23492 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
23493 to rtx_insn *.
23494 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
23495 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
23496 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
23497 referring to an insn. Strengthen local "dispatch_label" from
23498 rtx to rtx_code_label *.
23499 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
23500 rtx_insn *.
23501 (expand_eh_return): Strengthen local "around_label" from
23502 rtx to rtx_code_label *.
23503 (convert_to_eh_region_ranges): Strengthen locals "iter",
23504 "last_action_insn", "first_no_action_insn",
23505 "first_no_action_insn_before_switch",
23506 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
23507
23508 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23509
23510 * dwarf2out.c (last_var_location_insn): Strengthen this variable
23511 from rtx to rtx_insn *.
23512 (cached_next_real_insn): Likewise.
23513 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
23514 working with insns.
23515 (dwarf2out_var_location): Strengthen locals "next_real",
23516 "next_note", "expected_next_loc_note", "last_start", "insn" from
23517 rtx to rtx_insn *.
23518
23519 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23520
23521 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
23522 from rtx to rtx_insn *.
23523 (create_pseudo_cfg): Likewise for local "insn".
23524
23525 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23526
23527 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
23528 from rtx to rtx_insn *.
23529 (df_bb_regno_last_def_find): Likewise.
23530
23531 * df-problems.c (df_rd_bb_local_compute): Likewise.
23532 (df_lr_bb_local_compute): Likewise.
23533 (df_live_bb_local_compute): Likewise.
23534 (df_chain_remove_problem): Likewise.
23535 (df_chain_create_bb): Likewise.
23536 (df_word_lr_bb_local_compute): Likewise.
23537 (df_remove_dead_eq_notes): Likewise for param "insn".
23538 (df_note_bb_compute): Likewise for local "insn".
23539 (simulate_backwards_to_point): Likewise.
23540 (df_md_bb_local_compute): Likewise.
23541
23542 * df-scan.c (df_scan_free_bb_info): Likewise.
23543 (df_scan_start_dump): Likewise.
23544 (df_scan_start_block): Likewise.
23545 (df_install_ref_incremental): Likewise for local "insn".
23546 (df_insn_rescan_all): Likewise.
23547 (df_reorganize_refs_by_reg_by_insn): Likewise.
23548 (df_reorganize_refs_by_insn_bb): Likewise.
23549 (df_recompute_luids): Likewise.
23550 (df_bb_refs_record): Likewise.
23551 (df_update_entry_exit_and_calls): Likewise.
23552 (df_bb_verify): Likewise.
23553
23554 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23555
23556 * ddg.h (struct ddg_node): Strengthen fields "insn" and
23557 "first_note" from rtx to rtx_insn *.
23558 (get_node_of_insn): Likewise for param 2 "insn".
23559 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
23560
23561 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
23562 rtx_insn *.
23563 (mem_write_insn_p): Likewise.
23564 (mem_access_insn_p): Likewise.
23565 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
23566 (def_has_ccmode_p): Likewise for param "insn".
23567 (add_cross_iteration_register_deps): Likewise for locals
23568 "def_insn" and "use_insn".
23569 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
23570 (build_intra_loop_deps): Likewise for local "src_insn".
23571 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
23572 to rtx_insn *.
23573 (get_node_of_insn): Likewise for param "insn".
23574
23575 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23576
23577 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
23578 (deletable_insn_p): Strengthen param "insn" from rtx to
23579 rtx_insn *. Add checked cast to rtx_call_insn when invoking
23580 find_call_stack_args, since this is guarded by CALL_P (insn).
23581 (marked_insn_p): Strengthen param "insn" from rtx to
23582 rtx_insn *.
23583 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
23584 invoking find_call_stack_args, since this is guarded by
23585 CALL_P (insn).
23586 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
23587 rtx_insn *; we know this is an insn since this was called by
23588 mark_nonreg_stores.
23589 (mark_nonreg_stores_2): Likewise.
23590 (mark_nonreg_stores): Strengthen param "insn" from rtx to
23591 rtx_insn *.
23592 (find_call_stack_args): Strengthen param "call_insn" from rtx to
23593 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
23594 to rtx_insn *.
23595 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
23596 from rtx to rtx_insn *.
23597 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
23598 "next", "ref_insn".
23599 (delete_unmarked_insns): Likewise for locals "insn", "next".
23600 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
23601 (mark_reg_dependencies): Likewise for param "insn".
23602 (rest_of_handle_ud_dce): Likewise for local "insn".
23603 (word_dce_process_block): Likewise.
23604 (dce_process_block): Likewise.
23605
23606 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23607
23608 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
23609 from rtx to rtx_insn *.
23610 (struct change_cc_mode_args): Likewise for field "insn".
23611 (this_insn): Strengthen from rtx to rtx_insn *.
23612 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
23613 with insn.
23614 (validate_canon_reg): Strengthen param "insn" from rtx to
23615 rtx_insn *.
23616 (canon_reg): Likewise.
23617 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
23618 dealing with insn.
23619 (record_jump_equiv): Strengthen param "insn" from rtx to
23620 rtx_insn *.
23621 (try_back_substitute_reg): Likewise, also for locals "prev",
23622 "bb_head".
23623 (find_sets_in_insn): Likewise for param "insn".
23624 (canonicalize_insn): Likewise.
23625 (cse_insn): Likewise. Add a checked cast.
23626 (invalidate_from_clobbers): Likewise for param "insn".
23627 (invalidate_from_sets_and_clobbers): Likewise.
23628 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
23629 dealing with insn.
23630 (cse_prescan_path): Strengthen local "insn" from rtx to
23631 rtx_insn *.
23632 (cse_extended_basic_block): Likewise for locals "insn" and
23633 "prev_insn".
23634 (cse_main): Likewise for param "f".
23635 (check_for_label_ref): Likewise for local "insn".
23636 (set_live_p): Likewise for second param ("insn").
23637 (insn_live_p): Likewise for first param ("insn") and for local
23638 "next".
23639 (cse_change_cc_mode_insn): Likewise for first param "insn".
23640 (cse_change_cc_mode_insns): Likewise for first and second params
23641 "start" and "end".
23642 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
23643 and "end".
23644 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
23645 "cc_src_insn".
23646
23647 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
23648 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
23649 Anna Tikhonova <anna.tikhonova@intel.com>
23650 Ilya Tocar <ilya.tocar@intel.com>
23651 Andrey Turetskiy <andrey.turetskiy@intel.com>
23652 Ilya Verbin <ilya.verbin@intel.com>
23653 Kirill Yukhin <kirill.yukhin@intel.com>
23654 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23655
23656 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
23657 New.
23658 * config/i386/sse.md
23659 (define_mode_iterator VI248_AVX2): Delete.
23660 (define_mode_iterator VI2_AVX2_AVX512BW): New.
23661 (define_mode_iterator VI48_AVX2): Ditto.
23662 (define_insn <shift_insn><mode>3): Delete.
23663 (define_insn "<shift_insn><mode>3<mask_name>" with
23664 VI2_AVX2_AVX512BW): New.
23665 (define_insn "<shift_insn><mode>3<mask_name>" with
23666 VI48_AVX2): Ditto.
23667
23668 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
23669 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
23670 Anna Tikhonova <anna.tikhonova@intel.com>
23671 Ilya Tocar <ilya.tocar@intel.com>
23672 Andrey Turetskiy <andrey.turetskiy@intel.com>
23673 Ilya Verbin <ilya.verbin@intel.com>
23674 Kirill Yukhin <kirill.yukhin@intel.com>
23675 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23676
23677 * config/i386/sse.md
23678 (define_mode_iterator VI4F_BRCST32x2): New.
23679 (define_mode_attr 64x2_mode): Ditto.
23680 (define_mode_attr 32x2mode): Ditto.
23681 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
23682 with VI4F_BRCST32x2): Ditto.
23683 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
23684 with V16FI mode iterator): Ditto.
23685 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
23686 with V16FI): Ditto.
23687 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
23688 with VI8F_BRCST64x2): Ditto.
23689
23690 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
23691 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
23692 Anna Tikhonova <anna.tikhonova@intel.com>
23693 Ilya Tocar <ilya.tocar@intel.com>
23694 Andrey Turetskiy <andrey.turetskiy@intel.com>
23695 Ilya Verbin <ilya.verbin@intel.com>
23696 Kirill Yukhin <kirill.yukhin@intel.com>
23697 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23698
23699 * config/i386/sse.md
23700 (define_mode_iterator VI8_AVX512VL): New.
23701 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
23702
23703 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
23704
23705 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
23706 (define_mode_iterator V48_AVX512VL): New.
23707 (define_mode_iterator V12_AVX512VL): Ditto.
23708 (define_insn <avx512>_load<mode>_mask): Split into two similar
23709 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
23710 Refactor output template.
23711 (define_insn "<avx512>_store<mode>_mask"): Ditto.
23712
23713 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23714
23715 * cprop.c (struct occr): Strengthen field "insn" from rtx to
23716 rtx_insn *.
23717 (reg_available_p): Likewise for param "insn".
23718 (insert_set_in_table): Likewise.
23719 (hash_scan_set): Likewise.
23720 (hash_scan_insn): Likewise.
23721 (make_set_regs_unavailable): Likewise.
23722 (compute_hash_table_work): Likewise for local "insn".
23723 (reg_not_set_p): Strengthen param "insn" from const_rtx to
23724 const rtx_insn *.
23725 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
23726 (try_replace_reg): Likewise.
23727 (find_avail_set): Likewise.
23728 (cprop_jump): Likewise for params "setcc", "jump".
23729 (constprop_register): Likewise for param "insn".
23730 (cprop_insn): Likewise.
23731 (do_local_cprop): Likewise.
23732 (local_cprop_pass): Likewise for local "insn".
23733 (bypass_block): Likewise for params "setcc" and "jump".
23734 (bypass_conditional_jumps): Likewise for locals "setcc" and
23735 "insn".
23736 (one_cprop_pass): Likewise for local "insn".
23737
23738 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23739
23740 * compare-elim.c (struct comparison_use): Strengthen field "insn"
23741 from rtx to rtx_insn *.
23742 (struct comparison): Likewise, also for field "prev_clobber".
23743 (conforming_compare): Likewise for param "insn".
23744 (arithmetic_flags_clobber_p): Likewise.
23745 (find_flags_uses_in_insn): Likewise.
23746 (find_comparison_dom_walker::before_dom_children): Likewise for
23747 locals "insn", "next", "last_clobber".
23748 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
23749
23750 2014-08-22 David Malcolm <dmalcolm@redhat.com>
23751
23752 * combine-stack-adj.c (struct csa_reflist): Strengthen field
23753 "insn" from rtx to rtx_insn *.
23754 (single_set_for_csa): Likewise for param "insn".
23755 (record_one_stack_ref): Likewise.
23756 (try_apply_stack_adjustment): Likewise.
23757 (struct record_stack_refs_data): Likewise for field "insn".
23758 (maybe_move_args_size_note): Likewise for params "last" and "insn".
23759 (prev_active_insn_bb): Likewise for return type and param "insn".
23760 (next_active_insn_bb): Likewise.
23761 (force_move_args_size_note): Likewise for params "prev" and "last"
23762 and locals "test", "next_candidate", "prev_candidate".
23763 (combine_stack_adjustments_for_block): Strengthen locals
23764 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
23765 rtx_insn *.
23766
23767 2014-08-21 David Malcolm <dmalcolm@redhat.com>
23768
23769 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
23770 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
23771 (subst_insn): Likewise for this variable.
23772 (added_links_insn): Likewise.
23773 (struct insn_link): Likewise for field "insn".
23774 (alloc_insn_link): Likewise for param "insn".
23775 (struct undobuf): Likewise for field "other_insn".
23776 (find_single_use): Likewise for param "insn" and local "next".
23777 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
23778 (delete_noop_moves): Likewise for locals "insn", "next".
23779 (create_log_links): Likewise for locals "insn", "use_insn".
23780 Strengthen local "next_use" from rtx * to rtx_insn **.
23781 (insn_a_feeds_b): Likewise for params "a", "b".
23782 (combine_instructions): Likewise for param "f" and locals "insn",
23783 "next", "prev", "first", "last_combined_insn", "link", "link1",
23784 "temp". Replace use of NULL_RTX with NULL when referring to
23785 insns.
23786 (setup_incoming_promotions): Likewise for param "first"
23787 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
23788 (can_combine_p): Likewise for params "insn", "i3", "pred",
23789 "pred2", "succ", "succ2" and for local "p".
23790 (combinable_i3pat): Likewise for param "i3".
23791 (cant_combine_insn_p): Likewise for param "insn".
23792 (likely_spilled_retval_p): Likewise.
23793 (adjust_for_new_dest): Likewise.
23794 (update_cfg_for_uncondjump): Likewise, also for local "insn".
23795 (try_combine): Likewise for return type and for params "i3", "i2",
23796 "i1", "i0", "last_combined_insn", and for locals "insn",
23797 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
23798 "i0_insn". Eliminate local "tem" in favor of new locals
23799 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
23800 checked cast for now to rtx_insn * on the return type of
23801 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
23802 insns.
23803 (find_split_point): Strengthen param "insn" from rtx to
23804 rtx_insn *.
23805 (simplify_set): Likewise for local "other_insn".
23806 (recog_for_combine): Likewise for param "insn".
23807 (record_value_for_reg): Likewise.
23808 (record_dead_and_set_regs_1): Likewise for local
23809 "record_dead_insn".
23810 (record_dead_and_set_regs): Likewise for param "insn".
23811 (record_promoted_value): Likewise.
23812 (check_promoted_subreg): Likewise.
23813 (get_last_value_validate): Likewise.
23814 (reg_dead_at_p): Likewise.
23815 (move_deaths): Likewise for param "to_insn".
23816 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
23817 and locals "place", "place2", "cc0_setter". Eliminate local "tem
23818 in favor of new locals "tem_note" and "tem_insn", the latter being
23819 an rtx_insn *.
23820 (distribute_links): Strengthen locals "place", "insn" from rtx to
23821 rtx_insn *.
23822
23823 2014-08-21 David Malcolm <dmalcolm@redhat.com>
23824
23825 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
23826 than a const_rtx.
23827 (can_delete_label_p): Require a const rtx_code_label * rather than
23828 a const_rtx.
23829 (delete_insn): Add checked cast to rtx_code_label * when we know
23830 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
23831 rtx to rtx_insn *.
23832 (delete_insn_chain): Strengthen locals "prev" and "current" from
23833 rtx to rtx_insn *. Add a checked cast when assigning from
23834 "finish" (strengthening the params will come later). Add a
23835 checked cast to rtx_note * in region where we know
23836 NOTE_P (current).
23837 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
23838 rtx_insn *.
23839 (compute_bb_for_insn): Likewise.
23840 (free_bb_for_insn): Likewise for local "insn".
23841 (compute_bb_for_insn): Likewise.
23842 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
23843 local "insn" from rtx to rtx_insn *
23844 (flow_active_insn_p): Require a const rtx_insn * rather than a
23845 const_rtx.
23846 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
23847 rtx_insn *.
23848 (can_fallthru): Likewise for locals "insn" and "insn2".
23849 (bb_note): Likewise for local "note".
23850 (first_insn_after_basic_block_note): Likewise for local "note" and
23851 for return type.
23852 (rtl_split_block): Likewise for locals "insn" and "next".
23853 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
23854 "end".
23855 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
23856 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
23857 "prev", "tmp".
23858 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
23859 them), "kill_from", "barrier", "new_insn".
23860 (patch_jump_insn): Likewise for params "insn", "old_label".
23861 (redirect_branch_edge): Likewise for locals "old_label", "insn".
23862 (force_nonfallthru_and_redirect): Likewise for locals "insn",
23863 "old_label", "new_label".
23864 (rtl_tidy_fallthru_edge): Likewise for local "q".
23865 (rtl_split_edge): Likewise for locals "before", "last".
23866 (commit_one_edge_insertion): Likewise for locals "before",
23867 "after", "insns", "tmp", "last", adding a checked cast where
23868 currently necessary.
23869 (commit_edge_insertions): Likewise.
23870 (rtl_dump_bb): Likewise for locals "insn", "last".
23871 (print_rtl_with_bb): Likewise for local "x".
23872 (rtl_verify_bb_insns): Likewise for local "x".
23873 (rtl_verify_bb_pointers): Likewise for local "insn".
23874 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
23875 "head", "end".
23876 (rtl_verify_fallthru): Likewise for local "insn".
23877 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
23878 (purge_dead_edges): Likewise for local "insn".
23879 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
23880 (skip_insns_after_block): Likewise for return type and for locals
23881 "insn", "last_insn", "next_head", "prev".
23882 (record_effective_endpoints): Likewise for locals "next_insn",
23883 "insn", "end".
23884 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
23885 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
23886 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
23887 (duplicate_insn_chain): For now, add checked cast from rtx to
23888 rtx_insn * when returning insn.
23889 (cfg_layout_duplicate_bb): Likewise for local "insn".
23890 (cfg_layout_delete_block): Likewise for locals "insn", "next",
23891 "prev", "remaints".
23892 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
23893 (rtl_block_empty_p): Likewise.
23894 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
23895 "split_point", "last".
23896 (rtl_block_ends_with_call_p): Likewise for local "insn".
23897 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
23898 const rtx_insn *.
23899 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
23900 "split_at_insn" from rtx to rtx_insn *.
23901 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
23902 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
23903 to const rtx_insn *.
23904 (rtl_account_profile_record): Likewise.
23905
23906 2014-08-21 David Malcolm <dmalcolm@redhat.com>
23907
23908 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
23909 rtx to rtx_insn *.
23910 (average_num_loop_insns): Likewise.
23911 (init_set_costs): Likewise for local "seq".
23912 (seq_cost): Likewise for param "seq", from const_rtx to const
23913 rtx_insn *.
23914
23915 2014-08-21 David Malcolm <dmalcolm@redhat.com>
23916
23917 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
23918 rtx to rtx_insn *.
23919
23920 2014-08-21 David Malcolm <dmalcolm@redhat.com>
23921
23922 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
23923 "f1" and "f2" from rtx * to rtx_insn **.
23924 (flow_find_head_matching_sequence): Likewise.
23925
23926 * cfgcleanup.c (try_simplify_condjump): Strengthen local
23927 "cbranch_insn" from rtx to rtx_insn *.
23928 (thread_jump): Likewise for local "insn".
23929 (try_forward_edges): Likewise for local "last".
23930 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
23931 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
23932 "real_b_end".
23933 (can_replace_by): Likewise for params "i1", "i2".
23934 (old_insns_match_p): Likewise.
23935 (merge_notes): Likewise.
23936 (walk_to_nondebug_insn): Likewise for param "i1".
23937 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
23938 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
23939 "afterlast1", "afterlast2" from rtx to rtx_insn *.
23940 (flow_find_head_matching_sequence): Strengthen params "f1" and
23941 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
23942 "last1", "last2", "beforelast1", "beforelast2" from rtx to
23943 rtx_insn *.
23944 (outgoing_edges_match): Likewise for locals "last1", "last2".
23945 (try_crossjump_to_edge): Likewise for local "insn".
23946 Replace call to for_each_rtx with for_each_rtx_in_insn.
23947
23948 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
23949 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
23950 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
23951 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
23952 (try_optimize_cfg): Strengthen local "last" from rtx to
23953 rtx_insn *.
23954 (delete_dead_jumptables): Likewise for locals "insn", "next",
23955 "label".
23956
23957 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
23958 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
23959 "rtx else_first_tail", to reflect the basic-block.h changes above.
23960
23961 2014-08-21 David Malcolm <dmalcolm@redhat.com>
23962
23963 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
23964 rtx_insn *.
23965 (purge_dead_tablejump_edges): Likewise.
23966 (find_bb_boundaries): Likewise for locals "insn", "end",
23967 "flow_transfer_insn".
23968
23969 2014-08-21 David Malcolm <dmalcolm@redhat.com>
23970
23971 * caller-save.c (save_call_clobbered_regs): Strengthen locals
23972 "ins" and "prev" from rtx to rtx_insn *.
23973
23974 2014-08-21 David Malcolm <dmalcolm@redhat.com>
23975
23976 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
23977 rtx_insn *.
23978 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
23979 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
23980 "scan_start".
23981 (load_register_parameters): Likewise for local "before_arg".
23982 (check_sibcall_argument_overlap): Likewise for param "insn".
23983 (expand_call): Likewise for locals "normal_call_insns",
23984 "tail_call_insns", "insns", "before_call", "after_args",
23985 "before_arg", "last", "prev". Strengthen one of the "last" from
23986 rtx to rtx_call_insn *.
23987 (fixup_tail_calls): Strengthen local "insn" from rtx to
23988 rtx_insn *.
23989 (emit_library_call_value_1): Likewise for locals "before_call" and
23990 "last".
23991
23992 2014-08-21 David Malcolm <dmalcolm@redhat.com>
23993
23994 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
23995 and "last" from rtx to rtx_insn *.
23996 (expand_builtin_nonlocal_goto): Likewise for local "insn".
23997 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
23998 rtx_call_insn *.
23999 (expand_errno_check): Strengthen local "lab" from rtx to
24000 rtx_code_label *.
24001 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
24002 rtx_insn *.
24003 (expand_builtin_mathfn_2): Likewise.
24004 (expand_builtin_mathfn_ternary): Likewise.
24005 (expand_builtin_mathfn_3): Likewise.
24006 (expand_builtin_interclass_mathfn): Likewise for local "last".
24007 (expand_builtin_int_roundingfn): Likewise for local "insns".
24008 (expand_builtin_int_roundingfn_2): Likewise.
24009 (expand_builtin_strlen): Likewise for local "before_strlen".
24010 (expand_builtin_strncmp): Likewise for local "seq".
24011 (expand_builtin_signbit): Likewise for local "last".
24012 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
24013 from rtx to rtx_code_label *.
24014 (expand_stack_restore): Strengthen local "prev" from rtx to
24015 rtx_insn *.
24016
24017 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24018
24019 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
24020 to rtx_insn *.
24021 (struct btr_def_s): Likewise.
24022 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
24023 const rtx_insn *.
24024 (add_btr_def): Likewise.
24025 (new_btr_user): Likewise.
24026 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
24027 rtx to rtx_insn *.
24028 (link_btr_uses): Likewise.
24029 (move_btr_def): Likewise for locals "insp", "old_insn",
24030 "new_insn". Add checked cast to rtx_insn * for now on result of
24031 gen_move_insn.
24032 (can_move_up): Strengthen param "insn" from const_rtx to
24033 const rtx_insn *.
24034
24035 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24036
24037 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
24038 rtx_insn *.
24039 (get_uncond_jump_length): Likewise for locals "label", "jump".
24040 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
24041 "jump", "insn".
24042 (add_labels_and_missing_jumps): Likewise for local "new_jump".
24043 (fix_up_fall_thru_edges): Likewise for local "old_jump".
24044 (find_jump_block): Likewise for local "insn".
24045 (fix_crossing_conditional_branches): Likewise for locals
24046 "old_jump", "new_jump".
24047 (fix_crossing_unconditional_branches): Likewise for locals
24048 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
24049 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
24050
24051 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24052
24053 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
24054 rtx to rtx_insn *.
24055 (struct mem_insn): Likewise for field "insn".
24056 (reg_next_use): Strengthen from rtx * to rtx_insn **.
24057 (reg_next_inc_use): Likewise.
24058 (reg_next_def): Likewise.
24059 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
24060 from rtx to rtx_insn *.
24061 (move_insn_before): Likewise for param "next_insn" and local "insns".
24062 (attempt_change): Likewise for local "mov_insn".
24063 (try_merge): Likewise for param "last_insn".
24064 (get_next_ref): Likewise for return type and local "insn".
24065 Strengthen param "next_array" from rtx * to rtx_insn **.
24066 (parse_add_or_inc): Strengthen param "insn" from rtx to
24067 rtx_insn *.
24068 (find_inc): Likewise for locals "insn" and "other_insn" (three of
24069 the latter).
24070 (merge_in_block): Likewise for locals "insn", "curr",
24071 "other_insn".
24072 (pass_inc_dec::execute): Update allocations of the arrays to
24073 reflect the stronger types.
24074
24075 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24076
24077 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
24078 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
24079 from rtx to rtx_code_label *.
24080
24081 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24082
24083 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
24084 to rtx_insn *.
24085
24086 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24087
24088 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
24089 generated a warning and prevented bootstrapping the compiler.
24090
24091 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24092
24093 * rtl.h (delete_related_insns): Strengthen return type from rtx to
24094 rtx_insn *.
24095
24096 * jump.c (delete_related_insns): Likewise, also for locals "next"
24097 and "prev".
24098
24099 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24100
24101 * genautomata.c (output_internal_insn_latency_func): When writing
24102 the function "internal_insn_latency" to insn-automata.c,
24103 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
24104 allowing the optional guard function of (define_bypass) clauses to
24105 expect a pair of rtx_insn *, rather than a pair of rtx.
24106 (output_insn_latency_func): When writing the function
24107 "insn_latency", add an "uncast_" prefix to params "insn" and
24108 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
24109 using checked casts from the params, thus enabling the above
24110 change to the generated "internal_insn_latency" function.
24111
24112 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
24113
24114 PR tree-optimization/62091
24115 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
24116 handle correctly arrays.
24117 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
24118 inheritance binfos.
24119 (record_known_type): Walk into inner type.
24120 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
24121 condition on no type changes.
24122
24123 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24124
24125 * genattrtab.c (write_attr_get): Within the generated get_attr_
24126 functions, rename param "insn" to "uncast_insn" and reintroduce
24127 "insn" as an local rtx_insn * using a checked cast, so that "insn"
24128 is an rtx_insn * within insn-attrtab.c
24129
24130 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24131
24132 * output.h (peephole): Strengthen return type from rtx to
24133 rtx_insn *.
24134 * rtl.h (delete_for_peephole): Likewise for both params.
24135 * genpeep.c (main): In generated "peephole" function, strengthen
24136 return type and local "insn" from rtx to rtx_insn *. For now,
24137 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
24138 rtx_insn *, with a checked cast.
24139 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
24140 locals "insn", "next", "prev" from rtx to rtx_insn *.
24141
24142 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
24143
24144 PR tree-optimization/62112
24145 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
24146 * gimple-iterator.h (gsi_replace): Return bool.
24147 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
24148 moved from ref_may_alias_global_p.
24149 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
24150 New overloads.
24151 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
24152 (stmt_kills_ref_p_1): Rename...
24153 (stmt_kills_ref_p): ... to this.
24154 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
24155 stmt_kills_ref_p): Declare.
24156 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
24157 Move the self-assignment case...
24158 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
24159
24160 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24161
24162 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
24163
24164 * emit-rtl.c (try_split): Likewise, also for locals "before" and
24165 "after". For now, don't strengthen param "trial", which requires
24166 adding checked casts when returning it.
24167
24168 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24169
24170 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
24171 "label" from rtx to rtx_code_label *. Strengthen param 1 of
24172 "var_location" hook from rtx to rtx_insn *.
24173 (debug_nothing_rtx): Delete in favor of...
24174 (debug_nothing_rtx_code_label): New prototype.
24175 (debug_nothing_rtx_rtx): Delete unused prototype.
24176 (debug_nothing_rtx_insn): New prototype.
24177
24178 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
24179 invoking debug_hooks->var_location (in two places, one in a NOTE
24180 case of a switch statement, the other guarded by a CALL_P
24181 conditional. Add checked cast to rtx_code_label * when invoking
24182 debug_hooks->label (within CODE_LABEL case of switch statement).
24183
24184 * dbxout.c (dbx_debug_hooks): Update "label" hook from
24185 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
24186 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
24187 (xcoff_debug_hooks): Likewise.
24188 * debug.c (do_nothing_debug_hooks): Likewise.
24189 (debug_nothing_rtx): Delete in favor of...
24190 (debug_nothing_rtx_insn): New function.
24191 (debug_nothing_rtx_rtx): Delete unused function.
24192 (debug_nothing_rtx_code_label): New function.
24193 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
24194 debug_nothing_rtx to debug_nothing_rtx_code_label.
24195 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
24196 to rtx_insn *.
24197 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
24198 debug_nothing_rtx to debug_nothing_rtx_insn.
24199 (sdbout_label): Strengthen param "insn" from rtx to
24200 rtx_code_label *.
24201 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
24202 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
24203 "var_location" hook from debug_nothing_rtx to
24204 debug_nothing_rtx_insn.
24205
24206 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24207
24208 * recog.h (insn_output_fn): Update this function typedef to match
24209 the changes below to the generated output functions, strengthening
24210 the 2nd param from rtx to rtx_insn *.
24211
24212 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
24213 insn when invoking an output function, to match the new signature
24214 of insn_output_fn with a stronger second param.
24215
24216 * genconditions.c (write_header): In the generated code for
24217 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
24218 to match the other changes in this patch.
24219
24220 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
24221 the generated "gen_" functions from rtx to rtx_insn * within their
24222 implementations.
24223
24224 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
24225 the subfunctions within the generated "recog_", "split", "peephole2"
24226 function trees from rtx to rtx_insn *. For now, the top-level
24227 generated functions ("recog", "split", "peephole2") continue to
24228 take a plain rtx for "insn", to avoid introducing dependencies on
24229 other patches. Rename this 2nd param from "insn" to
24230 "uncast_insn", and reintroduce "insn" as a local variable of type
24231 rtx_insn *, initialized at the top of the generated function with
24232 a checked cast on "uncast_insn".
24233 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
24234 the generated "gen_" functions from rtx to rtx_insn * within their
24235 prototypes.
24236
24237 * genoutput.c (process_template): Strengthen the 2nd param within
24238 the generated "output_" functions "insn" from rtx to rtx_insn *.
24239
24240 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
24241
24242 * tree-profile.c (tree_profiling): Skip external functions
24243 when doing coverage instrumentation.
24244 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
24245
24246 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24247
24248 * config/rs6000/altivec.h (vec_cpsgn): New #define.
24249 (vec_mergee): Likewise.
24250 (vec_mergeo): Likewise.
24251 (vec_cntlz): Likewise.
24252 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
24253 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
24254 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
24255 VMRGEW, and VMRGOW.
24256 * doc/extend.texi: Document various forms of vec_cpsgn,
24257 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
24258 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
24259 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
24260 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
24261 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
24262
24263 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24264
24265 * config/rs6000/rs6000.c (context.h): New include.
24266 (tree-pass.h): Likewise.
24267 (make_pass_analyze_swaps): New decl.
24268 (rs6000_option_override): Register pass_analyze_swaps.
24269 (swap_web_entry): New subsclass of web_entry_base (df.h).
24270 (special_handling_values): New enum.
24271 (union_defs): New function.
24272 (union_uses): Likewise.
24273 (insn_is_load_p): Likewise.
24274 (insn_is_store_p): Likewise.
24275 (insn_is_swap_p): Likewise.
24276 (rtx_is_swappable_p): Likewise.
24277 (insn_is_swappable_p): Likewise.
24278 (chain_purpose): New enum.
24279 (chain_contains_only_swaps): New function.
24280 (mark_swaps_for_removal): Likewise.
24281 (swap_const_vector_halves): Likewise.
24282 (adjust_subreg_index): Likewise.
24283 (permute_load): Likewise.
24284 (permute_store): Likewise.
24285 (handle_special_swappables): Likewise.
24286 (replace_swap_with_copy): Likewise.
24287 (dump_swap_insn_table): Likewise.
24288 (rs6000_analyze_swaps): Likewise.
24289 (pass_data_analyze_swaps): New pass_data.
24290 (pass_analyze_swaps): New rtl_opt_pass.
24291 (make_pass_analyze_swaps): New function.
24292 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
24293
24294 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24295
24296 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
24297 type from rtx to rtx_insn *.
24298 (create_copy_of_insn_rtx): Likewise.
24299 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
24300 (create_copy_of_insn_rtx): Likewise, also for local "res".
24301
24302 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24303
24304 * rtl.h (find_first_parameter_load): Strengthen return type from
24305 rtx to rtx_insn *.
24306 * rtlanal.c (find_first_parameter_load): Strengthen return type
24307 from rtx to rtx_insn *. Add checked cast for now, to postpone
24308 strengthening the params.
24309
24310 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
24311
24312 PR fortran/44054
24313 * diagnostic.c: Set default caret.
24314 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
24315 line is needed.
24316 * diagnostic.h (struct diagnostic_context):
24317
24318 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24319
24320 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
24321 (sel_bb_head): Strengthen return type insn_t (currently just an
24322 rtx) to rtx_insn *.
24323 (sel_bb_end): Likewise.
24324
24325 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
24326 (sel_bb_head): Strengthen return type and local "head" from
24327 insn_t (currently just an rtx) to rtx_insn *.
24328 (sel_bb_end): Likewise for return type.
24329 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
24330 working with insn.
24331
24332 2014-08-21 David Malcolm <dmalcolm@redhat.com>
24333
24334 * basic-block.h (get_last_bb_insn): Strengthen return type from
24335 rtx to rtx_insn *.
24336 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
24337 end".
24338
24339 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
24340
24341 PR fortran/44054
24342 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
24343 to here ...
24344 (diagnostic_report_diagnostic): ... from here.
24345 * toplev.c (general_init): Move code to c-family.
24346
24347 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24348
24349 * df.h (web_entry_base): Replace existing struct web_entry with a
24350 new class web_entry_base with only the predecessor member.
24351 (unionfind_root): Remove declaration and move to class member.
24352 (unionfind_union): Remove declaration and move to friend
24353 function.
24354 (union_defs): Remove declaration.
24355 * web.c (web_entry_base::unionfind_root): Modify to be member
24356 function and adjust accessors.
24357 (unionfind_union): Modify to be friend function and adjust
24358 accessors.
24359 (web_entry): New subclass of web_entry_base containing the reg
24360 member.
24361 (union_match_dups): Modify for struct -> class changes.
24362 (union_defs): Likewise.
24363 (entry_register): Likewise.
24364 (pass_web::execute): Likewise.
24365
24366 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
24367
24368 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
24369 builtin define __VEC_ELEMENT_REG_ORDER__.
24370
24371 2014-08-20 Martin Jambor <mjambor@suse.cz>
24372 Wei Mi <wmi@google.com>
24373
24374 PR ipa/60449
24375 PR middle-end/61776
24376 * tree-ssa-operands.c (update_stmt_operands): Remove
24377 MODIFIED_NORETURN_CALLS.
24378 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
24379 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
24380 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
24381 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
24382 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
24383 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
24384 (gimple_call_set_ctrl_altering): New func.
24385 (gimple_call_ctrl_altering_p): Ditto.
24386 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
24387 (make_blocks): Use gimple_call_initialize_ctrl_altering.
24388 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
24389 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
24390 remove MODIFIED_NORETURN_CALLS.
24391
24392 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
24393
24394 * coverage.c (coverage_compute_profile_id): Return non-0;
24395 also handle symbols with unique name.
24396 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
24397
24398 2014-08-20 Steve Ellcey <sellcey@mips.com>
24399
24400 PR middle-end/49191
24401 * doc/sourcebuild.texi (non_strict_align): New.
24402
24403 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
24404
24405 * cgraphunit.c (ipa_passes, compile): Reshedule
24406 symtab_remove_unreachable_nodes passes; update comments.
24407 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
24408 TODO_remove_functions before the pass; the functions ought to be
24409 already removed.
24410 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
24411 TODO_remove_functions.
24412 * passes.c (pass_data_early_local_passes): Do not schedule function
24413 removal.
24414 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
24415
24416 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
24417
24418 PR c/59304
24419 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
24420 before setting the option.
24421 * diagnostic.c (diagnostic_classify_diagnostic): Record
24422 command-line status.
24423
24424 2014-08-20 Richard Biener <rguenther@suse.de>
24425
24426 PR lto/62190
24427 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
24428 to build uint{16,32,64}_type_node.
24429
24430 2014-08-20 Terry Guo <terry.guo@arm.com>
24431
24432 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
24433 with immediate_operand.
24434
24435 2014-08-20 David Malcolm <dmalcolm@redhat.com>
24436
24437 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
24438 "insn" from an as_a to a safe_as_a, for the case when "insn" is
24439 NULL.
24440
24441 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
24442
24443 PR preprocessor/51303
24444 * incpath.c (remove_duplicates): Use cpp_warning.
24445
24446 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
24447
24448 PR c/60975
24449 PR c/53063
24450 * doc/options.texi (CPP): Document it.
24451 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
24452 * optc-gen.awk: Handle CPP.
24453 * opth-gen.awk: Likewise.
24454
24455 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24456
24457 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
24458 rtx_insn *.
24459 (duplicate_insn_chain): Likewise.
24460 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
24461 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
24462 checked cast for now (until we can strengthen the params in the
24463 same way).
24464 (duplicate_insn_chain): Likewise.
24465
24466 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24467
24468 * rtl.h (next_cc0_user): Strengthen return type from rtx to
24469 rtx_insn *.
24470 (prev_cc0_setter): Likewise.
24471
24472 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
24473 rtx_insn *, adding checked casts for now as necessary.
24474 (prev_cc0_setter): Likewise.
24475
24476 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24477
24478 * expr.h (emit_move_insn): Strengthen return type from rtx to
24479 rtx_insn *.
24480 (emit_move_insn_1): Likewise.
24481 (emit_move_complex_push): Likewise.
24482 (emit_move_complex_parts): Likewise.
24483
24484 * expr.c (emit_move_via_integer): Strengthen return type from rtx
24485 to rtx_insn *. Replace use of NULL_RTX with NULL when working
24486 with insns.
24487 (emit_move_complex_push): Strengthen return type from rtx to
24488 rtx_insn *.
24489 (emit_move_complex): Likewise, also for local "ret".
24490 (emit_move_ccmode): Likewise.
24491 (emit_move_multi_word): Likewise for return type and locals
24492 "last_insn", "seq".
24493 (emit_move_insn_1): Likewise for return type and locals "result",
24494 "ret".
24495 (emit_move_insn): Likewise for return type and local "last_insn".
24496 (compress_float_constant): Likewise.
24497
24498 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24499
24500 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
24501 from rtx to rtx_insn *.
24502
24503 * rtl.h (emit_insn_before): Likewise.
24504 (emit_insn_before_noloc): Likewise.
24505 (emit_insn_before_setloc): Likewise.
24506 (emit_jump_insn_before): Likewise.
24507 (emit_jump_insn_before_noloc): Likewise.
24508 (emit_jump_insn_before_setloc): Likewise.
24509 (emit_call_insn_before): Likewise.
24510 (emit_call_insn_before_noloc): Likewise.
24511 (emit_call_insn_before_setloc): Likewise.
24512 (emit_debug_insn_before): Likewise.
24513 (emit_debug_insn_before_noloc): Likewise.
24514 (emit_debug_insn_before_setloc): Likewise.
24515 (emit_label_before): Likewise.
24516 (emit_insn_after): Likewise.
24517 (emit_insn_after_noloc): Likewise.
24518 (emit_insn_after_setloc): Likewise.
24519 (emit_jump_insn_after): Likewise.
24520 (emit_jump_insn_after_noloc): Likewise.
24521 (emit_jump_insn_after_setloc): Likewise.
24522 (emit_call_insn_after): Likewise.
24523 (emit_call_insn_after_noloc): Likewise.
24524 (emit_call_insn_after_setloc): Likewise.
24525 (emit_debug_insn_after): Likewise.
24526 (emit_debug_insn_after_noloc): Likewise.
24527 (emit_debug_insn_after_setloc): Likewise.
24528 (emit_label_after): Likewise.
24529 (emit_insn): Likewise.
24530 (emit_debug_insn): Likewise.
24531 (emit_jump_insn): Likewise.
24532 (emit_call_insn): Likewise.
24533 (emit_label): Likewise.
24534 (gen_clobber): Likewise.
24535 (emit_clobber): Likewise.
24536 (gen_use): Likewise.
24537 (emit_use): Likewise.
24538 (emit): Likewise.
24539
24540 (emit_barrier_before): Strengthen return type from rtx to
24541 rtx_barrier *.
24542 (emit_barrier_after): Likewise.
24543 (emit_barrier): Likewise.
24544
24545 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
24546 from rtx to rtx_insn *. Add checked casts for now when converting
24547 "last" from rtx to rtx_insn *.
24548 (emit_insn_before_noloc): Likewise for return type.
24549 (emit_jump_insn_before_noloc): Likewise.
24550 (emit_call_insn_before_noloc): Likewise.
24551 (emit_debug_insn_before_noloc): Likewise.
24552 (emit_barrier_before): Strengthen return type and local "insn"
24553 from rtx to rtx_barrier *.
24554 (emit_label_before): Strengthen return type from rtx to
24555 rtx_insn *. Add checked cast for now when returning param
24556 (emit_pattern_after_noloc): Strengthen return type from rtx to
24557 rtx_insn *. Add checked casts for now when converting "last" from
24558 rtx to rtx_insn *.
24559 (emit_insn_after_noloc): Strengthen return type from rtx to
24560 rtx_insn *.
24561 (emit_jump_insn_after_noloc): Likewise.
24562 (emit_call_insn_after_noloc): Likewise.
24563 (emit_debug_insn_after_noloc): Likewise.
24564 (emit_barrier_after): Strengthen return type from rtx to
24565 rtx_barrier *.
24566 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
24567 Add checked cast for now when converting "label" from rtx to
24568 rtx_insn *.
24569 (emit_pattern_after_setloc): Strengthen return type from rtx to
24570 rtx_insn *. Add checked casts for now when converting "last" from
24571 rtx to rtx_insn *.
24572 (emit_pattern_after): Strengthen return type from rtx to
24573 rtx_insn *.
24574 (emit_insn_after_setloc): Likewise.
24575 (emit_insn_after): Likewise.
24576 (emit_jump_insn_after_setloc): Likewise.
24577 (emit_jump_insn_after): Likewise.
24578 (emit_call_insn_after_setloc): Likewise.
24579 (emit_call_insn_after): Likewise.
24580 (emit_debug_insn_after_setloc): Likewise.
24581 (emit_debug_insn_after): Likewise.
24582 (emit_pattern_before_setloc): Likewise. Add checked casts for now
24583 when converting "last" from rtx to rtx_insn *.
24584 (emit_pattern_before): Strengthen return type from rtx to
24585 rtx_insn *.
24586 (emit_insn_before_setloc): Likewise.
24587 (emit_insn_before): Likewise.
24588 (emit_jump_insn_before_setloc): Likewise.
24589 (emit_jump_insn_before): Likewise.
24590 (emit_call_insn_before_setloc): Likewise.
24591 (emit_call_insn_before): Likewise.
24592 (emit_debug_insn_before_setloc): Likewise.
24593 (emit_debug_insn_before): Likewise.
24594 (emit_insn): Strengthen return type and locals "last", "insn",
24595 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
24596 within cases where we know we have an insn.
24597 (emit_debug_insn): Likewise.
24598 (emit_jump_insn): Likewise.
24599 (emit_call_insn): Strengthen return type and local "insn" from rtx
24600 to rtx_insn *.
24601 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
24602 a checked cast to rtx_insn * for now on "label".
24603 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
24604 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
24605 (emit_use): Likewise.
24606 (gen_use): Likewise, also for local "seq".
24607 (emit): Likewise for return type and local "insn".
24608 (rtx_insn): Likewise for return type and local "new_rtx".
24609
24610 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
24611 from rtx to rtx_barrier *.
24612
24613 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
24614 changed return type from rtx to rtx_insn *, we must update
24615 "emit_fn" type, and this in turn means updating...
24616 (frame_insn): ...this. Strengthen return type from rtx to
24617 rtx_insn *. Introduce a new local "insn" of the appropriate type.
24618
24619 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24620
24621 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
24622 rtx to rtx_jump_table_data *. Also for local.
24623 * rtl.h (emit_jump_table_data): Likewise.
24624
24625 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24626
24627 * basic-block.h (create_basic_block_structure): Strengthen third
24628 param "bb_note" from rtx to rtx_note *.
24629 * rtl.h (emit_note_before): Strengthen return type from rtx to
24630 rtx_note *.
24631 (emit_note_after): Likewise.
24632 (emit_note): Likewise.
24633 (emit_note_copy): Likewise. Also, strengthen param similarly.
24634 * function.h (struct rtl_data): Strengthen field
24635 "x_stack_check_probe_note" from rtx to rtx_note *.
24636
24637 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
24638 from rtx to rtx_note *.
24639 * cfgrtl.c (create_basic_block_structure): Strengthen third param
24640 "bb_note" from rtx to rtx_note *.
24641 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
24642 when calling emit_note_copy.
24643 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
24644 rtx_note *.
24645 (emit_note_after): Likewise.
24646 (emit_note_before): Likewise.
24647 (emit_note_copy): Likewise. Also, strengthen param similarly.
24648 (emit_note): Likewise.
24649 * except.c (emit_note_eh_region_end): Likewise for return type.
24650 Strengthen local "next" from rtx to rtx_insn *.
24651 (convert_to_eh_region_ranges): Strengthen local "note"
24652 from rtx to rtx_note *.
24653 * final.c (change_scope): Likewise.
24654 (reemit_insn_block_notes): Likewise, for both locals named "note".
24655 Also, strengthen local "insn" from rtx to rtx_insn *.
24656 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
24657 rtx to rtx_note *.
24658 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
24659 strengthen local "seq" from rtx to rtx_insn *.
24660 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
24661 to rtx_note *.
24662 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
24663 vec<rtx_note *>.
24664 (get_bb_note_from_pool): Strengthen return type from rtx to
24665 rtx_note *.
24666 (sel_create_basic_block): Strengthen local "new_bb_note" from
24667 insn_t to rtx_note *.
24668 * var-tracking.c (emit_note_insn_var_location): Strengthen local
24669 "note" from rtx to rtx_note *.
24670 (emit_notes_in_bb): Likewise.
24671
24672 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24673
24674 * function.h (struct rtl_data): Strengthen field
24675 "x_parm_birth_insn" from rtx to rtx_insn *.
24676 * function.c (struct assign_parm_data_all): Strengthen fields
24677 "first_conversion_insn" and "last_conversion_insn" from rtx to
24678 rtx_insn *.
24679
24680 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24681
24682 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
24683 to rtx_insn *; also for local "var_end_seq".
24684 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
24685 (maybe_cleanup_end_of_block): Likewise for param "last" and local
24686 "insn".
24687 (expand_gimple_cond): Likewise for locals "last2" and "last".
24688 (mark_transaction_restart_calls): Likewise for local "insn".
24689 (expand_gimple_stmt): Likewise for return type and locals "last"
24690 and "insn".
24691 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
24692 (avoid_complex_debug_insns): Likewise for param "insn".
24693 (expand_debug_locations): Likewise for locals "insn", "last",
24694 "prev_insn" and "insn2".
24695 (expand_gimple_basic_block): Likewise for local "last".
24696 (construct_exit_block): Likewise for locals "head", "end",
24697 "orig_end".
24698 (pass_expand::execute): Likewise for locals "var_seq",
24699 "var_ret_seq", "next".
24700
24701 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24702
24703 * asan.h (asan_emit_stack_protection): Strengthen return type from
24704 rtx to rtx_insn *.
24705 * asan.c (asan_emit_stack_protection): Likewise. Add local
24706 "insns" to hold the return value.
24707
24708 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24709
24710 * basic-block.h (bb_note): Strengthen return type from rtx to
24711 rtx_note *.
24712 * sched-int.h (bb_note): Likewise.
24713 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
24714
24715 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24716
24717 * rtl.h (make_insn_raw): Strengthen return type from rtx to
24718 rtx_insn *.
24719
24720 * emit-rtl.c (make_insn_raw): Strengthen return type and local
24721 "insn" from rtx to rtx_insn *.
24722 (make_debug_insn_raw): Strengthen return type from rtx to
24723 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
24724 (make_jump_insn_raw): Strengthen return type from rtx to
24725 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
24726 (make_call_insn_raw): Strengthen return type from rtx to
24727 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
24728 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
24729 callback from rtx to rtx_insn *; likewise for local "insn" and
24730 "next", adding a checked cast to rtx_insn in the relevant cases of
24731 the switch statement.
24732 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
24733 callback from rtx to rtx_insn *.
24734 (emit_pattern_after_setloc): Likewise.
24735 (emit_pattern_after): Likewise.
24736 (emit_pattern_before_setloc): Likewise.
24737 (emit_pattern_before): Likewise.
24738
24739 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24740
24741 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
24742 rtx_call_insn *.
24743 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
24744 accepting an rtx_insn *.
24745 (last_call_insn): Strengthen return type from rtx to
24746 rtx_call_insn *.
24747
24748 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24749
24750 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
24751 "insns" from rtx to rtx_insn *.
24752 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
24753 locals "insn" and "prev".
24754
24755 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24756
24757 * rtl.h (tablejump_p): Strengthen third param from rtx * to
24758 rtx_jump_table_data **.
24759
24760 * cfgbuild.c (make_edges): Introduce local "table", using it in
24761 place of "tmp" for jump table data.
24762 (find_bb_boundaries): Strengthen local "table" from rtx to
24763 rtx_jump_table_data *.
24764 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
24765 (outgoing_edges_match): Likewise for locals "table1" and "table2".
24766 (try_crossjump_to_edge): Likewise.
24767 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
24768 "table".
24769 (patch_jump_insn): Introduce local "table", using it in place of
24770 "tmp" for jump table data.
24771 (force_nonfallthru_and_redirect): Introduce local "table", so that
24772 call to tablejump_p can receive an rtx_jump_table_data **. Update
24773 logic around the call to overwrite "note" appropriately if
24774 tablejump_p returns non-zero.
24775 (get_last_bb_insn): Introduce local "table", using it in place of
24776 "tmp" for jump table data.
24777 * dwarf2cfi.c (create_trace_edges): Likewise.
24778
24779 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
24780 from rtx to rtx_jump_table_data *.
24781 (create_fix_barrier): Strengthen local "tmp" from rtx to
24782 rtx_jump_table_data *.
24783 (arm_reorg): Likewise for local "table".
24784
24785 * config/s390/s390.c (s390_chunkify_start): Likewise.
24786
24787 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
24788
24789 * jump.c (delete_related_insns): Strengthen local "lab_next" from
24790 rtx to rtx_jump_table_data *.
24791
24792 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
24793 rtx_jump_table_data **. Add a checked cast when writing through
24794 the pointer: we know there that local "table" is non-NULL and that
24795 JUMP_TABLE_DATA_P (table) holds.
24796 (label_is_jump_target_p): Introduce local "table", using it in
24797 place of "tmp" for jump table data.
24798
24799 2014-08-19 Marek Polacek <polacek@redhat.com>
24800
24801 PR c++/62153
24802 * doc/invoke.texi: Document -Wbool-compare.
24803
24804 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24805
24806 * rtl.h (entry_of_function): Strengthen return type from rtx to
24807 rtx_insn *.
24808 * cfgrtl.c (entry_of_function): Likewise.
24809
24810 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24811
24812 * emit-rtl.h (get_insns): Strengthen return type from rtx to
24813 rtx_insn *, adding a checked cast for now.
24814 (get_last_insn): Likewise.
24815
24816 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24817
24818 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
24819 rtx_code_label *.
24820
24821 * emit-rtl.c (gen_label_rtx): Likewise.
24822
24823 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24824
24825 * rtl.h (previous_insn): Strengthen return type from rtx to
24826 rtx_insn *.
24827 (next_insn): Likewise.
24828 (prev_nonnote_insn): Likewise.
24829 (prev_nonnote_insn_bb): Likewise.
24830 (next_nonnote_insn): Likewise.
24831 (next_nonnote_insn_bb): Likewise.
24832 (prev_nondebug_insn): Likewise.
24833 (next_nondebug_insn): Likewise.
24834 (prev_nonnote_nondebug_insn): Likewise.
24835 (next_nonnote_nondebug_insn): Likewise.
24836 (prev_real_insn): Likewise.
24837 (next_real_insn): Likewise.
24838 (prev_active_insn): Likewise.
24839 (next_active_insn): Likewise.
24840
24841 * emit-rtl.c (next_insn): Strengthen return type from rtx to
24842 rtx_insn *, adding a checked cast.
24843 (previous_insn): Likewise.
24844 (next_nonnote_insn): Likewise.
24845 (next_nonnote_insn_bb): Likewise.
24846 (prev_nonnote_insn): Likewise.
24847 (prev_nonnote_insn_bb): Likewise.
24848 (next_nondebug_insn): Likewise.
24849 (prev_nondebug_insn): Likewise.
24850 (next_nonnote_nondebug_insn): Likewise.
24851 (prev_nonnote_nondebug_insn): Likewise.
24852 (next_real_insn): Likewise.
24853 (prev_real_insn): Likewise.
24854 (next_active_insn): Likewise.
24855 (prev_active_insn): Likewise.
24856
24857 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
24858 param "stepfunc" so that it returns an rtx_insn * rather than an
24859 rtx, to track the change to prev_nonnote_insn_bb, which is the
24860 only function this is called with.
24861 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
24862
24863 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
24864
24865 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
24866 assert.
24867
24868 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24869
24870 * coretypes.h (class rtx_debug_insn): Add forward declaration.
24871 (class rtx_nonjump_insn): Likewise.
24872 (class rtx_jump_insn): Likewise.
24873 (class rtx_call_insn): Likewise.
24874 (class rtx_jump_table_data): Likewise.
24875 (class rtx_barrier): Likewise.
24876 (class rtx_code_label): Likewise.
24877 (class rtx_note): Likewise.
24878
24879 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
24880 adding the invariant DEBUG_INSN_P (X).
24881 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
24882 the invariant NONJUMP_INSN_P (X).
24883 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
24884 the invariant JUMP_P (X).
24885 (class rtx_call_insn): New, a subclass of rtx_insn, adding
24886 the invariant CALL_P (X).
24887 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
24888 invariant JUMP_TABLE_DATA_P (X).
24889 (class rtx_barrier): New, a subclass of rtx_insn, adding the
24890 invariant BARRIER_P (X).
24891 (class rtx_code_label): New, a subclass of rtx_insn, adding
24892 the invariant LABEL_P (X).
24893 (class rtx_note): New, a subclass of rtx_insn, adding
24894 the invariant NOTE_P(X).
24895 (is_a_helper <rtx_debug_insn *>::test): New.
24896 (is_a_helper <rtx_nonjump_insn *>::test): New.
24897 (is_a_helper <rtx_jump_insn *>::test): New.
24898 (is_a_helper <rtx_call_insn *>::test): New.
24899 (is_a_helper <rtx_jump_table_data *>::test): New functions,
24900 overloaded for both rtx and rtx_insn *.
24901 (is_a_helper <rtx_barrier *>::test): New.
24902 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
24903 for both rtx and rtx_insn *.
24904 (is_a_helper <rtx_note *>::test): New.
24905
24906 2014-08-19 Marek Polacek <polacek@redhat.com>
24907
24908 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
24909 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
24910 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
24911 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
24912
24913 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24914
24915 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
24916 rtx_insn *. To help with transition, for now, convert from an
24917 access macro into a pair of functions: BND_TO, returning an
24918 rtx_insn *, and...
24919 (SET_BND_TO): New function, for use where BND_TO is used as an
24920 lvalue.
24921
24922 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
24923 SET_BND_TO.
24924 (BND_TO): New function, adding a checked cast.
24925 (SET_BND_TO): New function.
24926
24927 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
24928 SET_BND_TO.
24929 (compute_av_set_on_boundaries): Likewise.
24930
24931 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
24932
24933 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
24934 destination if it is used in source.
24935 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
24936 (*popcount<mode>2_falsedep_1): Likewise.
24937
24938 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
24939
24940 PR other/62168
24941 * configure.ac: Set install_gold_as_default to no first.
24942 * configure: Regenerated.
24943
24944 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24945
24946 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
24947 "note_list" field will eventually be an rtx_insn *. To help with
24948 transition, for now, convert from an access macro into a pair of
24949 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
24950 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
24951 used as an lvalue.
24952
24953 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
24954 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
24955
24956 * sel-sched-ir.c (init_bb): Likewise.
24957 (sel_restore_notes): Likewise.
24958 (move_bb_info): Likewise.
24959 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
24960 (SET_BB_NOTE_LIST): New function.
24961
24962 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24963
24964 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
24965 field will eventually be an rtx_insn *. To help with transition,
24966 for now, convert from an access macro into a pair of functions:
24967 VINSN_INSN_RTX, returning an rtx_insn *, and...
24968 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
24969 is used as an lvalue.
24970
24971 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
24972 SET_VINSN_INSN_RTX where it's used as an lvalue.
24973 (VINSN_INSN_RTX): New function.
24974 (SET_VINSN_INSN_RTX): New function.
24975
24976 2014-08-19 David Malcolm <dmalcolm@redhat.com>
24977
24978 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
24979 eventually be rtx_insn *, but to help with transition, for now,
24980 convert from an access macro into a pair of functions: DEP_PRO
24981 returning an rtx_insn * and...
24982 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
24983 lvalue, returning an rtx&.
24984 (DEP_CON): Analogous changes to DEP_PRO above.
24985 (SET_DEP_CON): Likewise.
24986
24987 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
24988 an lvalue to SET_DEP_CON.
24989 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
24990 (sd_copy_back_deps): Likewise for DEP_CON.
24991 (DEP_PRO): New function, adding a checked cast for now.
24992 (DEP_CON): Likewise.
24993 (SET_DEP_PRO): New function.
24994 (SET_DEP_CON): Likewise.
24995
24996 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
24997
24998 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
24999 (extra_options): Add i386/cygwin.opt.
25000 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
25001 (CPP_SPEC): Accept -pthread.
25002 (LINK_SPEC): Ditto.
25003 (GOMP_SELF_SPECS): Update comment.
25004 * config/i386/cygwin.opt: New file for -pthread flag.
25005
25006 2014-08-19 David Malcolm <dmalcolm@redhat.com>
25007
25008 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
25009 * df.h (DF_REF_INSN): Convert from a macro to a function, so
25010 that we can return an rtx_insn *.
25011
25012 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
25013
25014 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
25015 when building executables, not DLLs. Add --large-address-aware
25016 under the same conditions.
25017 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
25018 when building executables, not DLLs. Add --large-address-aware
25019 under the same conditions when using -m32.
25020
25021 * config/i386/cygwin-stdint.h: Throughout, make type
25022 definitions dependent on target architecture, not host.
25023
25024 2014-08-19 David Malcolm <dmalcolm@redhat.com>
25025
25026 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
25027 the return type from rtx to rtx_insn *, which will enable various
25028 conversions in followup patches. For now this is is done by a
25029 checked cast.
25030 (NEXT_INSN): Likewise.
25031 (SET_PREV_INSN): Convert to an inline function. This is intended
25032 for use as an lvalue, and so returns an rtx& to allow in-place
25033 modification.
25034 (SET_NEXT_INSN): Likewise.
25035
25036 2014-07-08 Mark Wielaard <mjw@redhat.com>
25037
25038 PR debug/59051
25039 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
25040
25041 2014-08-19 Marek Polacek <polacek@redhat.com>
25042
25043 PR c/61271
25044 * cgraphunit.c (handle_alias_pairs): Fix condition.
25045
25046 2014-08-19 Richard Biener <rguenther@suse.de>
25047
25048 * gimple-fold.c (fold_gimple_assign): Properly build a
25049 null-pointer constant when devirtualizing addresses.
25050
25051 2014-07-07 Mark Wielaard <mjw@redhat.com>
25052
25053 * dwarf2out.c (decl_quals): New function.
25054 (modified_type_die): Take one cv_quals argument instead of two,
25055 one for const and one for volatile.
25056 (add_type_attribute): Likewise.
25057 (generic_parameter_die): Call add_type_attribute with one modifier
25058 argument.
25059 (base_type_for_mode): Likewise.
25060 (add_bounds_info): Likewise.
25061 (add_subscript_info): Likewise.
25062 (gen_array_type_die): Likewise.
25063 (gen_descr_array_type_die): Likewise.
25064 (gen_entry_point_die): Likewise.
25065 (gen_enumeration_type_die): Likewise.
25066 (gen_formal_parameter_die): Likewise.
25067 (gen_subprogram_die): Likewise.
25068 (gen_variable_die): Likewise.
25069 (gen_const_die): Likewise.
25070 (gen_field_die): Likewise.
25071 (gen_pointer_type_die): Likewise.
25072 (gen_reference_type_die): Likewise.
25073 (gen_ptr_to_mbr_type_die): Likewise.
25074 (gen_inheritance_die): Likewise.
25075 (gen_subroutine_type_die): Likewise.
25076 (gen_typedef_die): Likewise.
25077 (force_type_die): Likewise.
25078
25079 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25080
25081 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
25082 if unset.
25083 * configure: Regenerate.
25084
25085 2014-08-19 Richard Biener <rguenther@suse.de>
25086
25087 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
25088 DECL_EXTERNALs in BLOCKs as non-references.
25089 * tree-streamer-out.c (streamer_write_chain): Likewise.
25090
25091 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
25092 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25093 Anna Tikhonova <anna.tikhonova@intel.com>
25094 Ilya Tocar <ilya.tocar@intel.com>
25095 Andrey Turetskiy <andrey.turetskiy@intel.com>
25096 Ilya Verbin <ilya.verbin@intel.com>
25097 Kirill Yukhin <kirill.yukhin@intel.com>
25098 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25099
25100 * config/i386/sse.md
25101 (define_mode_iterator VI48_AVX512F): Delete.
25102 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
25103 (define_mode_iterator VI2_AVX512VL): Ditto.
25104 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
25105 Delete.
25106 (define_insn
25107 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
25108 New.
25109 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
25110 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
25111 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
25112 with VI48_AVX512F_AVX512VL): New.
25113 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
25114 with VI2_AVX512VL): Ditto.
25115
25116 2014-08-19 Marek Polacek <polacek@redhat.com>
25117
25118 * doc/invoke.texi: Document -Wc99-c11-compat.
25119
25120 2014-08-19 David Malcolm <dmalcolm@redhat.com>
25121
25122 * rtl.h (PREV_INSN): Split macro in two: the existing one,
25123 for rvalues, and...
25124 (SET_PREV_INSN): New macro, for use as an lvalue.
25125 (NEXT_INSN, SET_NEXT_INSN): Likewise.
25126
25127 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
25128 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
25129 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
25130 (fixup_abnormal_edges): Likewise.
25131 (unlink_insn_chain): Likewise.
25132 (fixup_reorder_chain): Likewise.
25133 (cfg_layout_delete_block): Likewise.
25134 (cfg_layout_merge_blocks): Likewise.
25135 * combine.c (update_cfg_for_uncondjump): Likewise.
25136 * emit-rtl.c (link_insn_into_chain): Likewise.
25137 (remove_insn): Likewise.
25138 (delete_insns_since): Likewise.
25139 (reorder_insns_nobb): Likewise.
25140 (emit_insn_after_1): Likewise.
25141 * final.c (rest_of_clean_state): Likewise.
25142 (final_scan_insn): Likewise.
25143 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
25144 * haifa-sched.c (concat_note_lists): Likewise.
25145 (remove_notes): Likewise.
25146 (restore_other_notes): Likewise.
25147 (move_insn): Likewise.
25148 (unlink_bb_notes): Likewise.
25149 (restore_bb_notes): Likewise.
25150 * jump.c (delete_for_peephole): Likewise.
25151 * optabs.c (emit_libcall_block_1): Likewise.
25152 * reorg.c (emit_delay_sequence): Likewise.
25153 (fill_simple_delay_slots): Likewise.
25154 * sel-sched-ir.c (sel_move_insn): Likewise.
25155 (sel_remove_insn): Likewise.
25156 (get_bb_note_from_pool): Likewise.
25157 * sel-sched.c (move_nop_to_previous_block): Likewise.
25158
25159 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
25160 * config/c6x/c6x.c (gen_one_bundle): Likewise.
25161 (c6x_gen_bundles): Likewise.
25162 (hwloop_optimize): Likewise.
25163 * config/frv/frv.c (frv_function_prologue): Likewise.
25164 (frv_register_nop): Likewise.
25165 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
25166 (ia64_reorg): Likewise.
25167 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
25168 (mep_make_bundle): Likewise.
25169 (mep_bundle_insns): Likewise.
25170 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
25171 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
25172 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
25173
25174 2014-08-19 David Malcolm <dmalcolm@redhat.com>
25175
25176 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
25177 return type from rtx to rtx_insn *.
25178 (BB_END): Likewise.
25179 (BB_HEADER): Likewise.
25180 (BB_FOOTER): Likewise.
25181 (SET_BB_HEAD): Convert to a function.
25182 (SET_BB_END): Likewise.
25183 (SET_BB_HEADER): Likewise.
25184 (SET_BB_FOOTER): Likewise.
25185
25186 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
25187 Strengthen the return type from rtx to rtx_insn *. For now, this
25188 is done by adding a checked cast, but this will eventually
25189 become a field lookup.
25190 (BB_END): Likewise.
25191 (BB_HEADER): Likewise.
25192 (BB_FOOTER): Likewise.
25193 (SET_BB_HEAD): New function, from macro of same name. This is
25194 intended for use as an lvalue, and so returns an rtx& to allow
25195 in-place modification.
25196 (SET_BB_END): Likewise.
25197 (SET_BB_HEADER): Likewise.
25198 (SET_BB_FOOTER): Likewise.
25199
25200 2014-08-18 David Malcolm <dmalcolm@redhat.com>
25201
25202 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
25203 for rvalues, and...
25204 (SET_BB_HEAD): New macro, for use as a lvalue.
25205 (BB_END, SET_BB_END): Likewise.
25206 (BB_HEADER, SET_BB_HEADER): Likewise.
25207 (BB_FOOTER, SET_BB_FOOTER): Likewise.
25208
25209 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
25210 of BB_* macros into SET_BB_* macros.
25211 (fix_crossing_unconditional_branches): Likewise.
25212 * caller-save.c (save_call_clobbered_regs): Likewise.
25213 (insert_one_insn): Likewise.
25214 * cfgbuild.c (find_bb_boundaries): Likewise.
25215 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
25216 (outgoing_edges_match): Likewise.
25217 (try_optimize_cfg): Likewise.
25218 * cfgexpand.c (expand_gimple_cond): Likewise.
25219 (expand_gimple_tailcall): Likewise.
25220 (expand_gimple_basic_block): Likewise.
25221 (construct_exit_block): Likewise.
25222 * cfgrtl.c (delete_insn): Likewise.
25223 (create_basic_block_structure): Likewise.
25224 (rtl_delete_block): Likewise.
25225 (rtl_split_block): Likewise.
25226 (emit_nop_for_unique_locus_between): Likewise.
25227 (rtl_merge_blocks): Likewise.
25228 (block_label): Likewise.
25229 (try_redirect_by_replacing_jump): Likewise.
25230 (emit_barrier_after_bb): Likewise.
25231 (fixup_abnormal_edges): Likewise.
25232 (record_effective_endpoints): Likewise.
25233 (relink_block_chain): Likewise.
25234 (fixup_reorder_chain): Likewise.
25235 (fixup_fallthru_exit_predecessor): Likewise.
25236 (cfg_layout_duplicate_bb): Likewise.
25237 (cfg_layout_split_block): Likewise.
25238 (cfg_layout_delete_block): Likewise.
25239 (cfg_layout_merge_blocks): Likewise.
25240 * combine.c (update_cfg_for_uncondjump): Likewise.
25241 * emit-rtl.c (add_insn_after): Likewise.
25242 (remove_insn): Likewise.
25243 (reorder_insns): Likewise.
25244 (emit_insn_after_1): Likewise.
25245 * haifa-sched.c (get_ebb_head_tail): Likewise.
25246 (restore_other_notes): Likewise.
25247 (move_insn): Likewise.
25248 (sched_extend_bb): Likewise.
25249 (fix_jump_move): Likewise.
25250 * ifcvt.c (noce_process_if_block): Likewise.
25251 (dead_or_predicable): Likewise.
25252 * ira.c (update_equiv_regs): Likewise.
25253 * reg-stack.c (change_stack): Likewise.
25254 * sel-sched-ir.c (sel_move_insn): Likewise.
25255 * sel-sched.c (move_nop_to_previous_block): Likewise.
25256
25257 * config/c6x/c6x.c (hwloop_optimize): Likewise.
25258 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
25259
25260 2014-08-18 David Malcolm <dmalcolm@redhat.com>
25261
25262 * rtl.h (for_each_rtx_in_insn): New function.
25263 * rtlanal.c (for_each_rtx_in_insn): Likewise.
25264
25265 2014-08-18 David Malcolm <dmalcolm@redhat.com>
25266
25267 * coretypes.h (class rtx_insn): Add forward declaration.
25268
25269 * rtl.h: Include is-a.h.
25270 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
25271 workaround to ensure gengtype knows inheritance is occurring,
25272 whilst continuing to use the pre-existing special-casing for
25273 rtx_def.
25274 (class rtx_insn): New subclass of rtx_def, adding the
25275 invariant that we're dealing with something we can sanely use
25276 INSN_UID, NEXT_INSN, PREV_INSN on.
25277 (is_a_helper <rtx_insn *>::test): New.
25278 (is_a_helper <const rtx_insn *>::test): New.
25279
25280 2014-08-18 David Malcolm <dmalcolm@redhat.com>
25281
25282 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
25283
25284 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
25285
25286 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
25287 comdats as extern.
25288
25289 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
25290
25291 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
25292 to BUILT_IN_UNREACHABLE.
25293
25294 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
25295
25296 PR target/62011
25297 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
25298 New tune flag.
25299 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
25300 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
25301 (ffs<mode>2): Do not expand with tzcnt for
25302 TARGET_AVOID_FALSE_DEP_FOR_BMI.
25303 (ffssi2_no_cmove): Ditto.
25304 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
25305 (ctz<mode>2): New expander.
25306 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
25307 (*ctz<mode>2_falsedep): New insn.
25308 (*ctz<mode>2): Rename from ctz<mode>2.
25309 (clz<mode>2_lzcnt): New expander.
25310 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
25311 (*clz<mode>2_lzcnt_falsedep): New insn.
25312 (*clz<mode>2): Rename from ctz<mode>2.
25313 (popcount<mode>2): New expander.
25314 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
25315 (*popcount<mode>2_falsedep): New insn.
25316 (*popcount<mode>2): Rename from ctz<mode>2.
25317 (*popcount<mode>2_cmp): Remove.
25318 (*popcountsi2_cmp_zext): Ditto.
25319
25320 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
25321
25322 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
25323 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
25324 * config/microblaze/microblaze.h
25325 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
25326
25327 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
25328
25329 PR other/62168
25330 * configure.ac: Set install_gold_as_default to no for
25331 --enable-gold=no.
25332 * configure: Regenerated.
25333
25334 2014-08-18 Roman Gareev <gareevroman@gmail.com>
25335
25336 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
25337 * config.in: Add undef of HAVE_isl.
25338 * configure: Regenerate.
25339 * configure.ac: Add definition of HAVE_isl.
25340 * graphite-blocking.c: Add checking of HAVE_isl.
25341 * graphite-dependences.c: Likewise.
25342 * graphite-interchange.c: Likewise.
25343 * graphite-isl-ast-to-gimple.c: Likewise.
25344 * graphite-optimize-isl.c: Likewise.
25345 * graphite-poly.c: Likewise.
25346 * graphite-scop-detection.c: Likewise.
25347 * graphite-sese-to-poly.c: Likewise.
25348 * graphite.c: Likewise.
25349 * toplev.c: Replace the checking of HAVE_cloog with the checking
25350 of HAVE_isl.
25351
25352 2014-08-18 Richard Biener <rguenther@suse.de>
25353
25354 PR tree-optimization/62090
25355 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
25356 (fold_builtin_3): Do not fold snprintf.
25357 (fold_builtin_4): Likewise.
25358 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
25359 moved from builtins.c.
25360 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
25361 (gimple_fold_builtin): Do not fold sprintf here.
25362
25363 2014-08-18 Richard Biener <rguenther@suse.de>
25364
25365 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
25366 code to ...
25367 (maybe_canonicalize_mem_ref_addr): ... this function.
25368 (fold_stmt_1): Apply it here before all simplification.
25369
25370 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
25371
25372 PR ipa/61800
25373 * cgraph.h (cgraph_node::create_indirect_edge): Add
25374 compute_indirect_info param.
25375 * cgraph.c (cgraph_node::create_indirect_edge): Compute
25376 indirect_info only when it is required.
25377 * cgraphclones.c (cgraph_clone_edge): Do not recompute
25378 indirect_info fore cloned indirect edge.
25379
25380 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
25381 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25382 Anna Tikhonova <anna.tikhonova@intel.com>
25383 Ilya Tocar <ilya.tocar@intel.com>
25384 Andrey Turetskiy <andrey.turetskiy@intel.com>
25385 Ilya Verbin <ilya.verbin@intel.com>
25386 Kirill Yukhin <kirill.yukhin@intel.com>
25387 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25388
25389 * config/i386/sse.md
25390 (define_mode_iterator VI8_AVX2_AVX512BW): New.
25391 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
25392
25393 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
25394 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25395 Anna Tikhonova <anna.tikhonova@intel.com>
25396 Ilya Tocar <ilya.tocar@intel.com>
25397 Andrey Turetskiy <andrey.turetskiy@intel.com>
25398 Ilya Verbin <ilya.verbin@intel.com>
25399 Kirill Yukhin <kirill.yukhin@intel.com>
25400 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25401
25402 * config/i386/sse.md
25403 (define_mode_iterator VF1_AVX512VL): New.
25404 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
25405 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
25406 New.
25407
25408 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
25409 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25410 Anna Tikhonova <anna.tikhonova@intel.com>
25411 Ilya Tocar <ilya.tocar@intel.com>
25412 Andrey Turetskiy <andrey.turetskiy@intel.com>
25413 Ilya Verbin <ilya.verbin@intel.com>
25414 Kirill Yukhin <kirill.yukhin@intel.com>
25415 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25416
25417 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
25418 * config/i386/i386.md
25419 (define_code_iterator any_float): New.
25420 (define_code_attr floatsuffix): New.
25421 * config/i386/sse.md
25422 (define_mode_iterator VF1_128_256VL): New.
25423 (define_mode_iterator VF2_512_256VL): New.
25424 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
25425 TARGET check.
25426 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
25427 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
25428 New.
25429 (define_mode_attr qq2pssuff): New.
25430 (define_mode_attr sselongvecmode): New.
25431 (define_mode_attr sselongvecmodelower): New.
25432 (define_mode_attr sseintvecmode3): New.
25433 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
25434 New.
25435 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
25436 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
25437 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
25438 (define_insn "ufloatv2siv2df2<mask_name>"): New.
25439
25440 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
25441 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25442 Anna Tikhonova <anna.tikhonova@intel.com>
25443 Ilya Tocar <ilya.tocar@intel.com>
25444 Andrey Turetskiy <andrey.turetskiy@intel.com>
25445 Ilya Verbin <ilya.verbin@intel.com>
25446 Kirill Yukhin <kirill.yukhin@intel.com>
25447 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25448
25449 * config/i386/sse.md
25450 (define_mode_iterator VF2_AVX512VL): New.
25451 (define_mode_attr sseintvecmode2): New.
25452 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
25453 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
25454 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
25455 (define_insn
25456 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
25457 Ditto.
25458 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
25459 Ditto.
25460 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
25461 Ditto.
25462
25463 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
25464 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25465 Anna Tikhonova <anna.tikhonova@intel.com>
25466 Ilya Tocar <ilya.tocar@intel.com>
25467 Andrey Turetskiy <andrey.turetskiy@intel.com>
25468 Ilya Verbin <ilya.verbin@intel.com>
25469 Kirill Yukhin <kirill.yukhin@intel.com>
25470 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25471
25472 * config/i386/i386.md
25473 (define_insn "*movoi_internal_avx"): Add evex version.
25474 (define_insn "*movti_internal"): Ditto.
25475
25476 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
25477 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25478 Anna Tikhonova <anna.tikhonova@intel.com>
25479 Ilya Tocar <ilya.tocar@intel.com>
25480 Andrey Turetskiy <andrey.turetskiy@intel.com>
25481 Ilya Verbin <ilya.verbin@intel.com>
25482 Kirill Yukhin <kirill.yukhin@intel.com>
25483 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25484
25485 * config/i386/i386.md
25486 (define_attr "isa"): Add avx512dq, noavx512dq.
25487 (define_attr "enabled"): Ditto.
25488 * config/i386/sse.md
25489 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
25490
25491 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
25492 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25493 Anna Tikhonova <anna.tikhonova@intel.com>
25494 Ilya Tocar <ilya.tocar@intel.com>
25495 Andrey Turetskiy <andrey.turetskiy@intel.com>
25496 Ilya Verbin <ilya.verbin@intel.com>
25497 Kirill Yukhin <kirill.yukhin@intel.com>
25498 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25499
25500 * config/i386/i386.c
25501 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
25502 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
25503 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
25504 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
25505 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
25506 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
25507 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
25508 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
25509 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
25510 * config/i386/sse.md
25511 (define_mode_iterator VMOVE): Allow V4TI mode.
25512 (define_mode_iterator V_AVX512VL): New.
25513 (define_mode_iterator V): New handling for AVX512VL.
25514 (define_insn "avx512f_load<mode>_mask"): Delete.
25515 (define_insn "<avx512>_load<mode>_mask"): New.
25516 (define_insn "avx512f_store<mode>_mask"): Delete.
25517 (define_insn "<avx512>_store<mode>_mask"): New.
25518
25519
25520 2014-08-18 Yury Gribov <y.gribov@samsung.com>
25521
25522 PR sanitizer/62089
25523 * asan.c (instrument_derefs): Fix bitfield check.
25524
25525 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
25526
25527 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
25528 * config/rs6000/htm.md (ttest): Remove clobber.
25529 * config/rs6000/predicates.md (any_mask_operand): New predicate.
25530 (and_operand): Reformat.
25531 (and_2rld_operand): New predicate.
25532 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
25533 parameter.
25534 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
25535 parameter. Handle AND directly.
25536 (rs6000_split_logical_di): Remove last parameter.
25537 (rs6000_split_logical): Remove last parameter. Remove obsolete
25538 comment.
25539 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
25540 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
25541 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
25542 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
25543 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
25544 and 5 anonymous splitters): Delete.
25545 (and<mode>3): New expander.
25546 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
25547 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
25548 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
25549 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
25550 (floatdisf2_internal1): Remove clobbers.
25551 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
25552 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
25553 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
25554 (and<mode>3 for BOOL_128): Remove clobber.
25555 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
25556 rs6000_split_logical.
25557 (*bool<mode>3_internal for BOOL_128): Adjust call of
25558 rs6000_split_logical.
25559 (*boolc<mode>3_internal1 for BOOL_128,
25560 *boolc<mode>3_internal2 for BOOL_128,
25561 *boolcc<mode>3_internal1 for BOOL_128,
25562 *boolcc<mode>3_internal2 for BOOL_128,
25563 *eqv<mode>3_internal1 for BOOL_128,
25564 *eqv<mode>3_internal2 for BOOL_128,
25565 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
25566 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
25567 clobber.
25568 (*vec_reload_and_reg_<mptrsize>): Delete.
25569
25570 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
25571
25572 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
25573 and split, *boolccsi3_internal3 and split): Delete.
25574 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
25575 *boolccdi3_internal3 and split): Delete.
25576 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
25577 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
25578
25579 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
25580
25581 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
25582 and split, *boolcsi3_internal3 and split): Delete.
25583 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
25584 *boolcdi3_internal3 and split): Delete.
25585 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
25586
25587 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
25588
25589 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
25590 <'u'>: Also support printing the low-order 16 bits.
25591 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
25592 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
25593 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
25594 *booldi3_internal3 and split): Delete.
25595 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
25596 *bool<mode>3_dot2): New.
25597 (two anonymous define_splits for non_logical_cint_operand): Merge.
25598
25599 2014-08-17 Marek Polacek <polacek@redhat.com>
25600 Manuel López-Ibáñez <manu@gcc.gnu.org>
25601
25602 PR c/62059
25603 * diagnostic.c (adjust_line): Add gcc_checking_assert.
25604 (diagnostic_show_locus): Don't print caret diagnostic
25605 if a column is larger than the line_width.
25606
25607 2014-08-17 Roman Gareev <gareevroman@gmail.com>
25608
25609 * common.opt: Make the ISL AST generator to be the main code generator
25610 of Graphite.
25611
25612 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
25613
25614 * wide-int.h (generic_wide_int): Declare as class instead of struct.
25615
25616 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
25617
25618 PR target/61641
25619 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
25620 Declare.
25621 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
25622 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
25623 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
25624 Define.
25625 * config/pa/pa.md (begin_brtab): Delete insn.
25626 (end_brtab): Likewise.
25627
25628 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
25629
25630 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
25631
25632 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
25633
25634 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
25635 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
25636 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
25637 (get_dynamic_type): Remove.
25638 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
25639 (clear_speculation): Bring to ipa-deivrt.h
25640 (get_class_context): Rename to ...
25641 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
25642 (contains_type_p): Update.
25643 (get_dynamic_type): Rename to ...
25644 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
25645 (possible_polymorphic_call_targets): UPdate.
25646 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
25647 * ipa-prop.c (ipa_analyze_call_uses): Update.
25648
25649 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
25650
25651 * doc/invoke.texi (SH options): Document missing processor variant
25652 options. Remove references to Hitachi. Undocument deprecated mspace
25653 option.
25654
25655 2014-08-15 Jason Merrill <jason@redhat.com>
25656
25657 * tree.c (type_hash_canon): Uncomment assert.
25658
25659 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
25660
25661 * input.h (in_system_header_at): Add comment.
25662
25663 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
25664
25665 PR fortran/44054
25666 * diagnostic.c (build_message_string): Make it extern.
25667 * diagnostic.h (build_message_string): Make it extern.
25668
25669 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
25670
25671 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
25672 load/store from/to non-floating class pseudo.
25673
25674 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
25675
25676 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
25677
25678 2014-08-15 Richard Biener <rguenther@suse.de>
25679
25680 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
25681 (get_constraint_for_ssa_var): Remove dead code.
25682 (get_constraint_for_1): Adjust.
25683 (find_what_var_points_to): Likewise.
25684 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
25685
25686 2014-08-15 Ilya Tocar <tocarip@gmail.com>
25687
25688 PR target/61878
25689 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
25690 (_mm512_mask_cmpge_epu32_mask): Ditto.
25691 (_mm512_cmpge_epu32_mask): Ditto.
25692 (_mm512_mask_cmpge_epi64_mask): Ditto.
25693 (_mm512_cmpge_epi64_mask): Ditto.
25694 (_mm512_mask_cmpge_epu64_mask): Ditto.
25695 (_mm512_cmpge_epu64_mask): Ditto.
25696 (_mm512_mask_cmple_epi32_mask): Ditto.
25697 (_mm512_cmple_epi32_mask): Ditto.
25698 (_mm512_mask_cmple_epu32_mask): Ditto.
25699 (_mm512_cmple_epu32_mask): Ditto.
25700 (_mm512_mask_cmple_epi64_mask): Ditto.
25701 (_mm512_cmple_epi64_mask): Ditto.
25702 (_mm512_mask_cmple_epu64_mask): Ditto.
25703 (_mm512_cmple_epu64_mask): Ditto.
25704 (_mm512_mask_cmplt_epi32_mask): Ditto.
25705 (_mm512_cmplt_epi32_mask): Ditto.
25706 (_mm512_mask_cmplt_epu32_mask): Ditto.
25707 (_mm512_cmplt_epu32_mask): Ditto.
25708 (_mm512_mask_cmplt_epi64_mask): Ditto.
25709 (_mm512_cmplt_epi64_mask): Ditto.
25710 (_mm512_mask_cmplt_epu64_mask): Ditto.
25711 (_mm512_cmplt_epu64_mask): Ditto.
25712 (_mm512_mask_cmpneq_epi32_mask): Ditto.
25713 (_mm512_mask_cmpneq_epu32_mask): Ditto.
25714 (_mm512_cmpneq_epu32_mask): Ditto.
25715 (_mm512_mask_cmpneq_epi64_mask): Ditto.
25716 (_mm512_cmpneq_epi64_mask): Ditto.
25717 (_mm512_mask_cmpneq_epu64_mask): Ditto.
25718 (_mm512_cmpneq_epu64_mask): Ditto.
25719 (_mm512_castpd_ps): Ditto.
25720 (_mm512_castpd_si512): Ditto.
25721 (_mm512_castps_pd): Ditto.
25722 (_mm512_castps_si512): Ditto.
25723 (_mm512_castsi512_ps): Ditto.
25724 (_mm512_castsi512_pd): Ditto.
25725 (_mm512_castpd512_pd128): Ditto.
25726 (_mm512_castps512_ps128): Ditto.
25727 (_mm512_castsi512_si128): Ditto.
25728 (_mm512_castpd512_pd256): Ditto.
25729 (_mm512_castps512_ps256): Ditto.
25730 (_mm512_castsi512_si256): Ditto.
25731 (_mm512_castpd128_pd512): Ditto.
25732 (_mm512_castps128_ps512): Ditto.
25733 (_mm512_castsi128_si512): Ditto.
25734 (_mm512_castpd256_pd512): Ditto.
25735 (_mm512_castps256_ps512): Ditto.
25736 (_mm512_castsi256_si512): Ditto.
25737 (_mm512_cmpeq_epu32_mask): Ditto.
25738 (_mm512_mask_cmpeq_epu32_mask): Ditto.
25739 (_mm512_mask_cmpeq_epu64_mask): Ditto.
25740 (_mm512_cmpeq_epu64_mask): Ditto.
25741 (_mm512_cmpgt_epu32_mask): Ditto.
25742 (_mm512_mask_cmpgt_epu32_mask): Ditto.
25743 (_mm512_mask_cmpgt_epu64_mask): Ditto.
25744 (_mm512_cmpgt_epu64_mask): Ditto.
25745 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
25746 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
25747 * config/i386/i386.c (enum ix86_builtins): Add
25748 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
25749 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
25750 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
25751 (bdesc_args): Add __builtin_ia32_si512_256si,
25752 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
25753 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
25754 __builtin_ia32_pd512_pd.
25755 (ix86_expand_args_builtin): Handle new FTYPEs.
25756 * config/i386/sse.md (castmode): Add 512-bit modes.
25757 (AVX512MODE2P): New.
25758 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
25759 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
25760
25761 2014-08-15 Richard Biener <rguenther@suse.de>
25762
25763 * fold-const.c (tree_swap_operands_p): Put all constants
25764 last, also strip sign-changing NOPs when considering further
25765 canonicalization. Canonicalize also when optimizing for size.
25766
25767 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25768
25769 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
25770 one_match > zero_match case to just before simple_sequence.
25771
25772 2014-08-15 Richard Biener <rguenther@suse.de>
25773
25774 * data-streamer.h (streamer_string_index, string_for_index):
25775 Remove.
25776 * data-streamer-out.c (streamer_string_index): Make static.
25777 * data-streamer-in.c (string_for_index): Likewise.
25778 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
25779 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
25780
25781 2014-08-15 Richard Biener <rguenther@suse.de>
25782
25783 PR tree-optimization/62031
25784 * tree-data-ref.c (dr_analyze_indices): Do not set
25785 DR_UNCONSTRAINED_BASE.
25786 (dr_may_alias_p): All indirect accesses have to go the
25787 formerly DR_UNCONSTRAINED_BASE path.
25788 * tree-data-ref.h (struct indices): Remove
25789 unconstrained_base member.
25790 (DR_UNCONSTRAINED_BASE): Remove.
25791
25792 2014-08-15 Jakub Jelinek <jakub@redhat.com>
25793
25794 PR middle-end/62092
25795 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
25796 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
25797 in OMP_CLAUSE_MAP in some outer target region.
25798
25799 2014-08-15 Bin Cheng <bin.cheng@arm.com>
25800
25801 * tree-ssa-loop-ivopts.c (ivopts_data): New field
25802 name_expansion_cache.
25803 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
25804 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
25805 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
25806 (difference_cannot_overflow_p): New parameter. Use affine
25807 expansion for equality check.
25808 (iv_elimination_compare_lt): Pass new argument.
25809
25810 2014-08-14 DJ Delorie <dj@redhat.com>
25811
25812 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
25813 variables to the accumulator.
25814
25815 * config/rl78/predicates.md (rl78_near_mem_operand): New.
25816 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
25817 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
25818 with far-far moves.
25819
25820 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
25821 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
25822 (umulqihi3_virt): Likewise.
25823 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
25824 (umulqihi3_real): Likewise.
25825
25826 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
25827
25828 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
25829
25830 PR tree-optimization/62091
25831 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
25832 function_entry_reached.
25833 (walk_aliased_vdefs): Clear it here.
25834 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
25835
25836 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
25837
25838 * ipa-utils.h (compare_virtual_tables): Declare.
25839 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
25840
25841 2014-08-14 Marek Polacek <polacek@redhat.com>
25842
25843 DR 458
25844 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
25845 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
25846
25847 2014-08-14 Tom de Vries <tom@codesourcery.com>
25848
25849 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
25850
25851 2014-08-14 Tom de Vries <tom@codesourcery.com>
25852
25853 PR rtl-optimization/62004
25854 PR rtl-optimization/62030
25855 * ifcvt.c (rtx_interchangeable_p): New function.
25856 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
25857 * emit-rtl.h (mem_attrs_eq_p): Declare.
25858
25859 2014-08-14 Roman Gareev <gareevroman@gmail.com>
25860
25861 * graphite-scop-detection.c:
25862 Add inclusion of cp-tree.h.
25863 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
25864 in case they are pointers to object types
25865
25866 2014-08-14 Richard Biener <rguenther@suse.de>
25867
25868 * BASE-VER: Change to 5.0.0
25869
25870 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
25871 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25872 Anna Tikhonova <anna.tikhonova@intel.com>
25873 Ilya Tocar <ilya.tocar@intel.com>
25874 Andrey Turetskiy <andrey.turetskiy@intel.com>
25875 Ilya Verbin <ilya.verbin@intel.com>
25876 Kirill Yukhin <kirill.yukhin@intel.com>
25877 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25878
25879 * config/i386/sse.md (define_mode_attr avx512): New.
25880 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
25881 V4DI modes.
25882 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
25883 (define_mode_attr ssse3_avx2): Ditto.
25884 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
25885 (define_mode_attr avx2_avx512bw): New.
25886 (define_mode_attr ssedoublemodelower): New.
25887 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
25888 V32HI, V64QI modes.
25889 (define_mode_attr ssebytemode): Allow V8DI modes.
25890 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
25891 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
25892 (define_mode_attr ssePSmode2): New.
25893 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
25894 V16HI, V32HI modes.
25895 (define_mode_attr dbpsadbwmode): New.
25896 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
25897 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
25898 (vi8_sse4_1_avx2_avx512): New.
25899 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
25900 mode attribute.
25901 (define_mode_attr blendbits): Move before its immediate use.
25902
25903 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
25904 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25905 Anna Tikhonova <anna.tikhonova@intel.com>
25906 Ilya Tocar <ilya.tocar@intel.com>
25907 Andrey Turetskiy <andrey.turetskiy@intel.com>
25908 Ilya Verbin <ilya.verbin@intel.com>
25909 Kirill Yukhin <kirill.yukhin@intel.com>
25910 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25911
25912 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
25913 * config/i386/subst.md
25914 (define_mode_iterator SUBST_V): Update.
25915 (define_mode_iterator SUBST_A): Ditto.
25916 (define_subst_attr "mask_operand7"): New.
25917 (define_subst_attr "mask_operand10"): New.
25918 (define_subst_attr "mask_operand_arg34") : New.
25919 (define_subst_attr "mask_expand_op3"): New.
25920 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
25921 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
25922 (define_subst_attr "mask_avx512vl_condition"): New.
25923 (define_subst_attr "round_mask_operand4"): Ditto.
25924 (define_subst_attr "round_mask_scalar_op3"): Delete.
25925 (define_subst_attr "round_mask_op4"): New.
25926 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
25927 V16SImode.
25928 (define_subst_attr "round_modev8sf_condition"): New.
25929 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
25930 <MODE>mode.
25931 (define_subst_attr "round_saeonly_mask_operand4"): New.
25932 (define_subst_attr "round_saeonly_mask_op4"): New.
25933 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
25934 V8DImode, V16SImode.
25935 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
25936 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
25937 (define_subst_attr "mask_expand4_args"): New.
25938 (define_subst "mask_expand4"): New.
25939
25940 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
25941 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25942 Anna Tikhonova <anna.tikhonova@intel.com>
25943 Ilya Tocar <ilya.tocar@intel.com>
25944 Andrey Turetskiy <andrey.turetskiy@intel.com>
25945 Ilya Verbin <ilya.verbin@intel.com>
25946 Kirill Yukhin <kirill.yukhin@intel.com>
25947 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25948
25949 * config/i386/i386.md
25950 (define_attr "isa"): Add avx512bw,noavx512bw.
25951 (define_attr "enabled"): Ditto.
25952 (define_split): Add 32/64-bit mask logic.
25953 (define_insn "*k<logic>qi"): New.
25954 (define_insn "*k<logic>hi"): New.
25955 (define_insn "*anddi_1"): Add mask version.
25956 (define_insn "*andsi_1"): Ditto.
25957 (define_insn "*<code><mode>_1"): Ditto.
25958 (define_insn "*<code>hi_1"): Ditto.
25959 (define_insn "kxnor<mode>"): New.
25960 (define_insn "kunpcksi"): New.
25961 (define_insn "kunpckdi"): New.
25962 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
25963 (define_insn "*one_cmplhi2_1"): Ditto.
25964
25965 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
25966 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25967 Anna Tikhonova <anna.tikhonova@intel.com>
25968 Ilya Tocar <ilya.tocar@intel.com>
25969 Andrey Turetskiy <andrey.turetskiy@intel.com>
25970 Ilya Verbin <ilya.verbin@intel.com>
25971 Kirill Yukhin <kirill.yukhin@intel.com>
25972 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25973
25974 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
25975 V32HImode.
25976
25977 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
25978 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
25979 Anna Tikhonova <anna.tikhonova@intel.com>
25980 Ilya Tocar <ilya.tocar@intel.com>
25981 Andrey Turetskiy <andrey.turetskiy@intel.com>
25982 Ilya Verbin <ilya.verbin@intel.com>
25983 Kirill Yukhin <kirill.yukhin@intel.com>
25984 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
25985
25986 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
25987 registers.
25988 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
25989 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
25990 xmm/ymm16+ when availble.
25991 * config/i386/i386.h
25992 (HARD_REGNO_NREGS): Add mask regs.
25993 (VALID_AVX512F_REG_MODE): Ditto.
25994 (VALID_AVX512F_REG_MODE) : Define.
25995 (VALID_MASK_AVX512BW_MODE): Ditto.
25996 (reg_class) (MASK_REG_P(X)): Define.
25997 * config/i386/i386.md: Do not split long moves with mask register,
25998 use kmovb if avx512bw is availible.
25999 (movdi_internal): Handle mask registers.
26000
26001 2014-08-14 Richard Biener <rguenther@suse.de>
26002
26003 PR tree-optimization/62081
26004 * tree-ssa-loop.c (pass_fix_loops): New pass.
26005 (pass_tree_loop::gate): Do not fixup loops here.
26006 * tree-pass.h (make_pass_fix_loops): Declare.
26007 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
26008
26009 2014-08-14 Richard Biener <rguenther@suse.de>
26010
26011 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
26012 (type_hash_canon): ... this and avoid 2nd lookup for the add.
26013
26014 2014-08-14 Richard Biener <rguenther@suse.de>
26015
26016 PR tree-optimization/62090
26017 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
26018 (fold_builtin_2): Do not fold sprintf.
26019 (fold_builtin_3): Likewise.
26020 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
26021 moved from builtins.c.
26022 (gimple_fold_builtin): Fold sprintf.
26023
26024 2014-08-14 Richard Biener <rguenther@suse.de>
26025
26026 PR rtl-optimization/62079
26027 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
26028 run cleanup_cfg.
26029
26030 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
26031
26032 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
26033 current_function_decl.
26034
26035 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
26036
26037 * cgraph.c (cgraph_node::function_symbol): Fix wrong
26038 cgraph_function_node to cgraph_node::function_symbol
26039 refactoring.
26040
26041 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
26042
26043 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
26044 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
26045
26046 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
26047
26048 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
26049 warning.
26050
26051 2014-08-13 Roman Gareev <gareevroman@gmail.com>
26052
26053 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
26054 generator.
26055
26056 2014-08-12 Jakub Jelinek <jakub@redhat.com>
26057
26058 PR target/62025
26059 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
26060 any registers that are used in mem_insn.
26061
26062 2014-08-12 Steve Ellcey <sellcey@mips.com>
26063
26064 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
26065
26066 2014-08-12 Steve Ellcey <sellcey@mips.com>
26067
26068 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
26069 (MULTILIB_DIRNAMES): Ditto.
26070 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
26071 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
26072 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
26073 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
26074 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
26075 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
26076
26077 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26078
26079 PR target/61413
26080 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
26081 of __ARM_SIZEOF_WCHAR_T.
26082
26083 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26084
26085 PR target/62098
26086 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
26087 Remove unnecessary attributes.
26088
26089 2014-08-12 Yury Gribov <y.gribov@samsung.com>
26090
26091 * internal-fn.c (init_internal_fns): Fix off-by-one.
26092
26093 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
26094 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26095 Anna Tikhonova <anna.tikhonova@intel.com>
26096 Ilya Tocar <ilya.tocar@intel.com>
26097 Andrey Turetskiy <andrey.turetskiy@intel.com>
26098 Ilya Verbin <ilya.verbin@intel.com>
26099 Kirill Yukhin <kirill.yukhin@intel.com>
26100 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26101
26102 * config/i386/i386.c (standard_sse_constant_opcode): Use
26103 vpxord/vpternlog if avx512 is availible.
26104
26105 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
26106
26107 PR middle-end/62103
26108 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
26109 bitfields, that is when size doesn't match the size of type or the
26110 size of the constructor.
26111
26112 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26113
26114 * config/rs6000/constraints.md (wh constraint): New constraint,
26115 for FP registers if direct move is available.
26116 (wi constraint): New constraint, for VSX/FP registers that can
26117 handle 64-bit integers.
26118 (wj constraint): New constraint for VSX/FP registers that can
26119 handle 64-bit integers for direct moves.
26120 (wk constraint): New constraint for VSX/FP registers that can
26121 handle 64-bit doubles for direct moves.
26122 (wy constraint): Make documentation match implementation.
26123
26124 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
26125 scalar_in_vmx_p field to simplify tests of whether SFmode or
26126 DFmode can go in the Altivec registers.
26127 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
26128 (rs6000_setup_reg_addr_masks): Likewise.
26129 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
26130 field, and wh/wi/wj/wk constraints.
26131 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
26132 the wh/wi/wj/wk constraints.
26133 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
26134 upper registers, prefer VSX registers unless the operation is a
26135 memory operation with REG+OFFSET addressing.
26136
26137 * config/rs6000/vsx.md (VSr mode attribute): Add support for
26138 DImode. Change SFmode to use ww constraint instead of d to allow
26139 SF registers in the upper registers.
26140 (VSr2): Likewise.
26141 (VSr3): Likewise.
26142 (VSr5): Fix thinko in comment.
26143 (VSa): New mode attribute that is an alternative to wa, that
26144 returns the VSX register class that a mode can go in, but may not
26145 be the preferred register class.
26146 (VS_64dm): New mode attribute for appropriate register classes for
26147 referencing 64-bit elements of vectors for direct moves and normal
26148 moves.
26149 (VS_64reg): Likewise.
26150 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
26151 register allocator to only registers the data type can handle.
26152 (vsx_le_perm_load_<mode>): Likewise.
26153 (vsx_le_perm_store_<mode>): Likewise.
26154 (vsx_xxpermdi2_le_<mode>): Likewise.
26155 (vsx_xxpermdi4_le_<mode>): Likewise.
26156 (vsx_lxvd2x2_le_<mode>): Likewise.
26157 (vsx_lxvd2x4_le_<mode>): Likewise.
26158 (vsx_stxvd2x2_le_<mode>): Likewise.
26159 (vsx_add<mode>3): Likewise.
26160 (vsx_sub<mode>3): Likewise.
26161 (vsx_mul<mode>3): Likewise.
26162 (vsx_div<mode>3): Likewise.
26163 (vsx_tdiv<mode>3_internal): Likewise.
26164 (vsx_fre<mode>2): Likewise.
26165 (vsx_neg<mode>2): Likewise.
26166 (vsx_abs<mode>2): Likewise.
26167 (vsx_nabs<mode>2): Likewise.
26168 (vsx_smax<mode>3): Likewise.
26169 (vsx_smin<mode>3): Likewise.
26170 (vsx_sqrt<mode>2): Likewise.
26171 (vsx_rsqrte<mode>2): Likewise.
26172 (vsx_tsqrt<mode>2_internal): Likewise.
26173 (vsx_fms<mode>4): Likewise.
26174 (vsx_nfma<mode>4): Likewise.
26175 (vsx_eq<mode>): Likewise.
26176 (vsx_gt<mode>): Likewise.
26177 (vsx_ge<mode>): Likewise.
26178 (vsx_eq<mode>_p): Likewise.
26179 (vsx_gt<mode>_p): Likewise.
26180 (vsx_ge<mode>_p): Likewise.
26181 (vsx_xxsel<mode>): Likewise.
26182 (vsx_xxsel<mode>_uns): Likewise.
26183 (vsx_copysign<mode>3): Likewise.
26184 (vsx_float<VSi><mode>2): Likewise.
26185 (vsx_floatuns<VSi><mode>2): Likewise.
26186 (vsx_fix_trunc<mode><VSi>2): Likewise.
26187 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
26188 (vsx_x<VSv>r<VSs>i): Likewise.
26189 (vsx_x<VSv>r<VSs>ic): Likewise.
26190 (vsx_btrunc<mode>2): Likewise.
26191 (vsx_b2trunc<mode>2): Likewise.
26192 (vsx_floor<mode>2): Likewise.
26193 (vsx_ceil<mode>2): Likewise.
26194 (vsx_<VS_spdp_insn>): Likewise.
26195 (vsx_xscvspdp): Likewise.
26196 (vsx_xvcvspuxds): Likewise.
26197 (vsx_float_fix_<mode>2): Likewise.
26198 (vsx_set_<mode>): Likewise.
26199 (vsx_extract_<mode>_internal1): Likewise.
26200 (vsx_extract_<mode>_internal2): Likewise.
26201 (vsx_extract_<mode>_load): Likewise.
26202 (vsx_extract_<mode>_store): Likewise.
26203 (vsx_splat_<mode>): Likewise.
26204 (vsx_xxspltw_<mode>): Likewise.
26205 (vsx_xxspltw_<mode>_direct): Likewise.
26206 (vsx_xxmrghw_<mode>): Likewise.
26207 (vsx_xxmrglw_<mode>): Likewise.
26208 (vsx_xxsldwi_<mode>): Likewise.
26209 (vsx_xscvdpspn): Tighten constraints to only use register classes
26210 the types use.
26211 (vsx_xscvspdpn): Likewise.
26212 (vsx_xscvdpspn_scalar): Likewise.
26213
26214 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
26215 wj, and wk constraints.
26216 (GPR_REG_CLASS_P): New helper macro for register classes targeting
26217 general purpose registers.
26218
26219 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
26220 direct moves.
26221 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
26222 DImode instead of wm. Use wk constraint for direct move of DFmode
26223 instead of wm.
26224 (extendsidi2_lfiwax): Likewise.
26225 (lfiwax): Likewise.
26226 (lfiwzx): Likewise.
26227 (movdi_internal64): Likewise.
26228
26229 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
26230 wk constraints. Make the wy constraint documentation match them
26231 implementation.
26232
26233 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
26234
26235 Replacement of isl_int by isl_val
26236 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
26237 (compute_bounds_for_param): use isl_val instead of isl_int
26238 (compute_bounds_for_loop): likewise
26239 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
26240 (build_linearized_memory_access): use isl_val instead of isl_int
26241 (pdr_stride_in_loop): likewise
26242 * graphite-optimize-isl.c:
26243 (getPrevectorMap): use isl_val instead of isl_int
26244 * graphite-poly.c:
26245 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
26246 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
26247 (extern the_isl_ctx): declare
26248 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
26249 (extract_affine_gmp): likewise
26250 (wrap): likewise
26251 (build_loop_iteration_domains): likewise
26252 (add_param_constraints): likewise
26253
26254 2014-08-11 Richard Biener <rguenther@suse.de>
26255
26256 PR tree-optimization/62075
26257 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
26258 handle uses in patterns.
26259
26260 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
26261 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26262 Anna Tikhonova <anna.tikhonova@intel.com>
26263 Ilya Tocar <ilya.tocar@intel.com>
26264 Andrey Turetskiy <andrey.turetskiy@intel.com>
26265 Ilya Verbin <ilya.verbin@intel.com>
26266 Kirill Yukhin <kirill.yukhin@intel.com>
26267 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26268
26269 * common/config/i386/i386-common.c
26270 (OPTION_MASK_ISA_AVX512VL_SET): Define.
26271 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
26272 (ix86_handle_option): Handle OPT_mavx512vl.
26273 * config/i386/cpuid.h (bit_AVX512VL): Define.
26274 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
26275 set -mavx512vl accordingly.
26276 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26277 OPTION_MASK_ISA_AVX512VL.
26278 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
26279 (ix86_option_override_internal): Define PTA_AVX512VL, handle
26280 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
26281 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
26282 * config/i386/i386.h (TARGET_AVX512VL): Define.
26283 (TARGET_AVX512VL_P(x)): Ditto.
26284 * config/i386/i386.opt: Add mavx512vl.
26285
26286 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
26287
26288 PR tree-optimization/62073
26289 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
26290 a basic block.
26291
26292 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
26293 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26294 Anna Tikhonova <anna.tikhonova@intel.com>
26295 Ilya Tocar <ilya.tocar@intel.com>
26296 Andrey Turetskiy <andrey.turetskiy@intel.com>
26297 Ilya Verbin <ilya.verbin@intel.com>
26298 Kirill Yukhin <kirill.yukhin@intel.com>
26299 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26300
26301 * common/config/i386/i386-common.c
26302 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
26303 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
26304 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
26305 (ix86_handle_option): Handle OPT_mavx512bw.
26306 * config/i386/cpuid.h (bit_AVX512BW): Define.
26307 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
26308 set -mavx512bw accordingly.
26309 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26310 OPTION_MASK_ISA_AVX512BW.
26311 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
26312 (ix86_option_override_internal): Define PTA_AVX512BW, handle
26313 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
26314 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
26315 * config/i386/i386.h (TARGET_AVX512BW): Define.
26316 (TARGET_AVX512BW_P(x)): Ditto.
26317 * config/i386/i386.opt: Add mavx512bw.
26318
26319 2014-08-11 Richard Biener <rguenther@suse.de>
26320
26321 PR tree-optimization/62070
26322 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
26323 Remove SSA checking.
26324
26325 2014-08-11 Yury Gribov <y.gribov@samsung.com>
26326
26327 * asan.c (asan_check_flags): New enum.
26328 (build_check_stmt_with_calls): Removed function.
26329 (build_check_stmt): Split inlining logic to
26330 asan_expand_check_ifn.
26331 (instrument_derefs): Rename parameter.
26332 (instrument_mem_region_access): Rename parameter.
26333 (instrument_strlen_call): Likewise.
26334 (asan_expand_check_ifn): New function.
26335 (asan_instrument): Remove old code.
26336 (pass_sanopt::execute): Change handling of
26337 asan-instrumentation-with-call-threshold.
26338 (asan_clear_shadow): Fix formatting.
26339 (asan_function_start): Likewise.
26340 (asan_emit_stack_protection): Likewise.
26341 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
26342 Update description.
26343 * internal-fn.c (expand_ASAN_CHECK): New function.
26344 * internal-fn.def (ASAN_CHECK): New internal function.
26345 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
26346 Update description.
26347 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
26348 * tree.c: Small comment fix.
26349
26350 2014-08-11 Yury Gribov <y.gribov@samsung.com>
26351
26352 * gimple.c (gimple_call_fnspec): Support internal functions.
26353 (gimple_call_return_flags): Use const.
26354 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
26355 * internal-fn.def: Add fnspec information.
26356 * internal-fn.h (internal_fn_fnspec): New function.
26357 (init_internal_fns): Declare new function.
26358 * internal-fn.c (internal_fn_fnspec_array): New global variable.
26359 (init_internal_fns): New function.
26360 * tree-core.h: Update macro call.
26361 * tree.c (build_common_builtin_nodes): Initialize internal fns.
26362
26363 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
26364
26365 * lto-streamer.h (struct output_block::symbol): Change from
26366 struct symtab_node to plain symtab_node.
26367 (referenced_from_this_partition_p): Change first parameter
26368 from struct symtab_node to plain symtab_node.
26369
26370 2014-08-10 Marek Polacek <polacek@redhat.com>
26371
26372 PR c/51849
26373 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
26374
26375 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
26376
26377 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
26378 DECL correctly; do not give up on types in static storage.
26379
26380 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
26381
26382 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
26383
26384 2014-08-09 Roman Gareev <gareevroman@gmail.com>
26385
26386 * graphite-isl-ast-to-gimple.c:
26387 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
26388
26389 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
26390
26391 2014-08-08 Guozhi Wei <carrot@google.com>
26392
26393 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
26394
26395 2014-08-08 Cary Coutant <ccoutant@google.com>
26396
26397 * dwarf2out.c (get_skeleton_type_unit): Remove.
26398 (output_skeleton_debug_sections): Remove skeleton type units.
26399 (output_comdat_type_unit): Likewise.
26400 (dwarf2out_finish): Likewise.
26401
26402 2014-08-07 Yi Yang <ahyangyi@google.com>
26403
26404 * predict.c (expr_expected_value_1): Remove the redundant assignment.
26405
26406 2014-08-08 Richard Biener <rguenther@suse.de>
26407
26408 * lto-streamer.h (struct lto_input_block): Make it a class
26409 with a constructor.
26410 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
26411 (struct lto_function_header, struct lto_simple_header,
26412 struct lto_simple_header_with_strings,
26413 struct lto_decl_header, struct lto_function_header): Make
26414 a simple inheritance hieararchy. Remove unused fields.
26415 (struct lto_asm_header): Remove.
26416 * lto-streamer-out.c (produce_asm): Adjust.
26417 (lto_output_toplevel_asms): Likewise.
26418 (produce_asm_for_decls): Likewise.
26419 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
26420 * data-streamer-in.c (string_for_index): Likewise.
26421 * ipa-inline-analysis.c (inline_read_section): Likewise.
26422 * ipa-prop.c (ipa_prop_read_section): Likewise.
26423 (read_replacements_section): Likewise.
26424 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
26425 * lto-section-in.c (lto_create_simple_input_block): Likewise.
26426 (lto_destroy_simple_input_block): Likewise.
26427 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
26428 (lto_input_toplevel_asms): Likewise.
26429
26430 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
26431 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
26432 Anna Tikhonova <anna.tikhonova@intel.com>
26433 Ilya Tocar <ilya.tocar@intel.com>
26434 Andrey Turetskiy <andrey.turetskiy@intel.com>
26435 Ilya Verbin <ilya.verbin@intel.com>
26436 Kirill Yukhin <kirill.yukhin@intel.com>
26437 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26438
26439 * common/config/i386/i386-common.c
26440 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
26441 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
26442 (ix86_handle_option): Handle OPT_mavx512dq.
26443 * config/i386/cpuid.h (bit_AVX512DQ): Define.
26444 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
26445 set -mavx512dq accordingly.
26446 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26447 OPTION_MASK_ISA_AVX512DQ.
26448 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
26449 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
26450 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
26451 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
26452 * config/i386/i386.h (TARGET_AVX512DQ): Define.
26453 (TARGET_AVX512DQ_P(x)): Ditto.
26454 * config/i386/i386.opt: Add mavx512dq.
26455
26456 2014-08-08 Richard Biener <rguenther@suse.de>
26457
26458 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
26459 target_percent, target_percent_s): Export.
26460 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
26461 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
26462 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
26463 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
26464 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
26465 Move to gimple-fold.c.
26466 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
26467 strcat and strcpy.
26468 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
26469 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
26470 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
26471 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
26472 (rewrite_call_expr_array): Remove.
26473 (fold_builtin_sprintf_chk): Likewise.
26474 (fold_builtin_snprintf_chk): Likewise.
26475 (fold_builtin_varargs): Remove handling of sprintf_chk,
26476 vsprintf_chk, snprintf_chk and vsnprintf_chk.
26477 (gimple_fold_builtin_sprintf_chk): Remove.
26478 (gimple_fold_builtin_snprintf_chk): Likewise.
26479 (gimple_fold_builtin_varargs): Likewise.
26480 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
26481 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
26482 * gimple.c (gimple_seq_add_seq_without_update): New function.
26483 * gimple.h (gimple_seq_add_seq_without_update): Declare.
26484 * gimple-fold.c: Include output.h.
26485 (gsi_replace_with_seq_vops): New function, split out from ...
26486 (gimplify_and_update_call_from_tree): ... here.
26487 (replace_call_with_value): New function.
26488 (replace_call_with_call_and_fold): Likewise.
26489 (var_decl_component_p): Moved from builtins.c.
26490 (gimple_fold_builtin_memory_op): Moved from builtins.c
26491 fold_builtin_memory_op and rewritten to GIMPLE.
26492 (gimple_fold_builtin_memset): Likewise.
26493 (gimple_fold_builtin_strcpy): Likewise.
26494 (gimple_fold_builtin_strncpy): Likewise.
26495 (gimple_fold_builtin_strcat): Likewise.
26496 (gimple_fold_builtin_fputs): Likewise.
26497 (gimple_fold_builtin_memory_chk): Likewise.
26498 (gimple_fold_builtin_stxcpy_chk): Likewise.
26499 (gimple_fold_builtin_stxncpy_chk): Likewise.
26500 (gimple_fold_builtin_snprintf_chk): Likewise.
26501 (gimple_fold_builtin_sprintf_chk): Likewise.
26502 (gimple_fold_builtin_strlen): New function.
26503 (gimple_fold_builtin_with_strlen): New function split out from
26504 gimple_fold_builtin.
26505 (gimple_fold_builtin): Change signature and handle
26506 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
26507 here. Call gimple_fold_builtin_with_strlen.
26508 (gimple_fold_call): Adjust.
26509
26510 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
26511
26512 * calls.c (precompute_arguments): Check
26513 promoted_for_signed_and_unsigned_p and set the promoted mode.
26514 (promoted_for_signed_and_unsigned_p): New function.
26515 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
26516 and set the promoted mode.
26517 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
26518 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
26519 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
26520
26521
26522 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
26523
26524 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
26525 instead of SUBREG_PROMOTED_UNSIGNED_SET.
26526 (expand_call): Likewise.
26527 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
26528 to get promoted mode.
26529 * combine.c (record_promoted_value): Skip > 0 comparison with
26530 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
26531 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
26532 of SUBREG_PROMOTED_UNSIGNED_P.
26533 (convert_modes): Likewise.
26534 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
26535 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
26536 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
26537 SUBREG_PROMOTED_UNSIGNED_SET.
26538 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
26539 instead of SUBREG_PROMOTED_UNSIGNED_SET.
26540 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
26541 SUBREG_PROMOTED_SET.
26542 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
26543 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
26544 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
26545 of SUBREG_PROMOTED_UNSIGNED_P.
26546 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
26547 (SUBREG_PROMOTED_SET): New define.
26548 (SUBREG_PROMOTED_GET): Likewise.
26549 (SUBREG_PROMOTED_SIGN): Likewise.
26550 (SUBREG_PROMOTED_SIGNED_P): Likewise.
26551 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
26552 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
26553 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
26554 instead of SUBREG_PROMOTED_UNSIGNED_GET.
26555 (nonzero_bits1): Skip > 0 comparison with the results as
26556 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
26557 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
26558 of !SUBREG_PROMOTED_UNSIGNED_P.
26559 * simplify-rtx.c (simplify_unary_operation_1): Use new
26560 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
26561 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
26562 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
26563 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
26564
26565 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
26566
26567 * ipa-devirt.c: Include gimple-pretty-print.h
26568 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
26569 further tests.
26570 (decl_maybe_in_construction_p): Fix conditional on cdtor check
26571 (get_polymorphic_call_info): Fix return value
26572 (type_change_info): New sturcture based on ipa-prop
26573 variant.
26574 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
26575 based on ipa-prop variant.
26576 (extr_type_from_vtbl_ptr_store): New function
26577 based on ipa-prop variant.
26578 (record_known_type): New function.
26579 (check_stmt_for_type_change): New function.
26580 (get_dynamic_type): New function.
26581 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
26582 * tree-ssa-pre.c: ipa-utils.h
26583 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
26584 machinery; sanity check with ipa-prop devirtualization.
26585 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
26586 polymorphic flag.
26587
26588 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
26589
26590 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
26591 * alias.c, cfgexpand.c, cgraphbuild.c,
26592 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
26593 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
26594 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
26595 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
26596 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
26597 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
26598 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
26599 dse.c, except.c, gengtype.c, gimple-expr.c,
26600 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
26601 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
26602 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
26603 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
26604 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
26605 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
26606 pointer-set.h.
26607 * pointer-set.c: Remove file.
26608 * pointer-set.h: Remove file.
26609
26610 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26611
26612 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
26613 * config/arm/types.md (f_sels, f_seld): Delete.
26614
26615 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26616
26617 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
26618 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
26619 (aarch64_movdi_<mode>high): Likewise.
26620 (aarch64_mov<mode>high_di): Likewise.
26621 (aarch64_movdi_<mode>low): Likewise.
26622 (aarch64_mov<mode>low_di): Likewise.
26623 (aarch64_movtilow_tilow): Likewise.
26624 Add comment explaining usage of fp,simd attributes and of
26625 TARGET_FLOAT and TARGET_SIMD.
26626
26627 2014-08-07 Ian Bolton <ian.bolton@arm.com>
26628 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26629
26630 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
26631 Use MOVN when one of the half-words is 0xffff.
26632
26633 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
26634
26635 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
26636
26637 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26638
26639 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
26640 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
26641 (rfs_str): String corresponding to RFS_* constants.
26642 (rank_for_schedule_stats_t): New typedef.
26643 (rank_for_schedule_stats): New static variable.
26644 (rfs_result): New static function.
26645 (rank_for_schedule): Track statistics for deciding heuristics.
26646 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
26647 static functions.
26648 (ready_sort): Use them for debug printouts.
26649 (schedule_block): Init statistics state. Print statistics on
26650 rank_for_schedule decisions.
26651
26652 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
26653
26654 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
26655
26656 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
26657
26658 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
26659 constraint.
26660
26661 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
26662
26663 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
26664 function to not conflict.
26665 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
26666 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
26667 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
26668 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
26669 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
26670 of pointer_map.
26671
26672 2014-08-07 Marek Polacek <polacek@redhat.com>
26673
26674 * fold-const.c (fold_binary_loc): Add folding of
26675 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
26676
26677 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
26678
26679 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
26680 instead of type size.
26681 (ASM_FINISH_DECLARE_OBJECT): Likewise.
26682
26683 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
26684
26685 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
26686 (*thumb1_movqi_insn): Likewise.
26687 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
26688
26689 2014-08-07 Tom de Vries <tom@codesourcery.com>
26690
26691 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
26692 (glibc_2_11_or_earlier): Remove effective-target keywords.
26693
26694 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
26695
26696 * config/arm/arm.c (bdesc_2arg): Fix typo.
26697 (arm_atomic_assign_expand_fenv): Remove The default implementation.
26698
26699 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
26700
26701 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
26702
26703 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
26704
26705 PR debug/61923
26706 * haifa-sched.c (advance_one_cycle): Fix dump.
26707 (schedule_block): Don't advance cycle if we are already at the
26708 beginning of the cycle.
26709
26710 2014-08-06 Martin Jambor <mjambor@suse.cz>
26711
26712 PR ipa/61393
26713 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
26714
26715 2014-08-06 Richard Biener <rguenther@suse.de>
26716
26717 PR lto/62034
26718 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
26719 SCCs here.
26720 (lto_input_tree): Pop SCCs here.
26721
26722 2014-08-06 Richard Biener <rguenther@suse.de>
26723
26724 PR tree-optimization/61320
26725 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
26726 handle misaligned loads.
26727
26728 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
26729
26730 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
26731 (aarch64_expand_vec_perm_const): Check for dup before zip.
26732
26733 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26734
26735 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
26736 CONST_INT_P instead of GET_CODE and compare.
26737 (aarch64_select_cc_mode): Likewise.
26738 (aarch64_print_operand): Likewise.
26739 (aarch64_rtx_costs): Likewise.
26740 (aarch64_simd_valid_immediate): Likewise.
26741 (aarch64_simd_check_vect_par_cnst_half): Likewise.
26742 (aarch64_simd_emit_pair_result_insn): Likewise.
26743
26744 2014-08-05 David Malcolm <dmalcolm@redhat.com>
26745
26746 * gdbhooks.py (find_gcc_source_dir): New helper function.
26747 (class PassNames): New class, locating and parsing passes.def.
26748 (class BreakOnPass): New command "break-on-pass".
26749
26750 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
26751
26752 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
26753 getting olde.
26754
26755 2014-08-05 Richard Biener <rguenther@suse.de>
26756
26757 PR rtl-optimization/61672
26758 * emit-rtl.h (mem_attrs_eq_p): Declare.
26759 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
26760 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
26761 * cfgcleanup.c (merge_memattrs): Likewise.
26762 Include emit-rtl.h.
26763
26764 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26765
26766 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
26767 rather than singleton vectors.
26768 (vqdmlsls_lane_s32): Likewise.
26769
26770 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26771
26772 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
26773 Use VSDQ_HSI mode iterator.
26774 (aarch64_sqrdmulh_laneq<mode>): Likewise.
26775 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
26776 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
26777 Use BUILTIN_VDQHS macro.
26778 (sqrdmulh_laneq): Likewise.
26779 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
26780 (vqdmlals_laneq_s32): Likewise.
26781 (vqdmlslh_laneq_s16): Likewise.
26782 (vqdmlsls_laneq_s32): Likewise.
26783 (vqdmulhh_laneq_s16): Likewise.
26784 (vqdmulhs_laneq_s32): Likewise.
26785 (vqrdmulhh_laneq_s16): Likewise.
26786 (vqrdmulhs_laneq_s32): Likewise.
26787
26788 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26789
26790 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
26791 (vmuld_laneq_f64): Likewise.
26792 (vmuls_laneq_f32): Likewise.
26793 (vmul_n_f64): Likewise.
26794 (vmuld_lane_f64): Reimplement in C.
26795 (vmuls_lane_f32): Likewise.
26796
26797 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26798
26799 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
26800 to reservation.
26801 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
26802
26803 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26804
26805 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
26806 (rbitsi2): Likewise.
26807 (*arm_rev): Set predicable and predicable_short_it attributes.
26808
26809 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26810
26811 * convert.c (convert_to_integer): Guard transformation to lrint by
26812 -fno-math-errno.
26813
26814 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
26815
26816 * config/aarch64/aarch64-builtins.c
26817 (aarch64_simd_builtin_type_mode): Delete.
26818 (v8qi_UP): Remap to V8QImode.
26819 (v4hi_UP): Remap to V4HImode.
26820 (v2si_UP): Remap to V2SImode.
26821 (v2sf_UP): Remap to V2SFmode.
26822 (v1df_UP): Remap to V1DFmode.
26823 (di_UP): Remap to DImode.
26824 (df_UP): Remap to DFmode.
26825 (v16qi_UP):V16QImode.
26826 (v8hi_UP): Remap to V8HImode.
26827 (v4si_UP): Remap to V4SImode.
26828 (v4sf_UP): Remap to V4SFmode.
26829 (v2di_UP): Remap to V2DImode.
26830 (v2df_UP): Remap to V2DFmode.
26831 (ti_UP): Remap to TImode.
26832 (ei_UP): Remap to EImode.
26833 (oi_UP): Remap to OImode.
26834 (ci_UP): Map to CImode.
26835 (xi_UP): Remap to XImode.
26836 (si_UP): Remap to SImode.
26837 (sf_UP): Remap to SFmode.
26838 (hi_UP): Remap to HImode.
26839 (qi_UP): Remap to QImode.
26840 (aarch64_simd_builtin_datum): Make mode a machine_mode.
26841 (VAR1): Build builtin name.
26842 (aarch64_init_simd_builtins): Remove dead code.
26843
26844 2014-08-05 Roman Gareev <gareevroman@gmail.com>
26845
26846 * graphite-isl-ast-to-gimple.c:
26847 (set_options): New function.
26848 (scop_to_isl_ast): Add calling of set_options.
26849
26850 2014-08-05 Jakub Jelinek <jakub@redhat.com>
26851
26852 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
26853 (analyze_iv_to_split_insn): Don't initialize them.
26854 (get_ivts_expr): Removed.
26855 (allocate_basic_variable, insert_base_initialization): Use
26856 SET_SRC instead of *get_ivts_expr.
26857 (split_iv): Use &SET_SRC instead of get_ivts_expr.
26858
26859 2014-08-05 Roman Gareev <gareevroman@gmail.com>
26860
26861 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
26862 (translate_isl_ast_for_loop): Add checking of the
26863 flag_loop_parallelize_all.
26864 (ast_build_before_for): New function.
26865 (scop_to_isl_ast): Add checking of the
26866 flag_loop_parallelize_all.
26867 * graphite-dependences.c: Move the defenition of the
26868 scop_get_dependences from graphite-optimize-isl.c to this file.
26869 (apply_schedule_on_deps): Add checking of the ux's emptiness.
26870 (carries_deps): Add checking of the x's value.
26871 * graphite-optimize-isl.c: Move the defenition of the
26872 scop_get_dependences to graphite-dependences.c.
26873 * graphite-poly.h: Add declarations of scop_get_dependences
26874 and carries_deps.
26875
26876 2014-08-04 Rohit <rohitarulraj@freescale.com>
26877
26878 PR target/60102
26879 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
26880 names.
26881 (alt_reg_names): Likewise.
26882 (rs6000_dwarf_register_span): For SPE high registers, replace
26883 dwarf register numbers with GCC hard register numbers.
26884 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
26885 (rs6000_dbx_register_number): For SPE high registers, return dwarf
26886 register number for the corresponding GCC hard register number.
26887 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
26888 newly added GCC hard register numbers for SPE high registers.
26889 (DWARF_FRAME_REGISTERS): Likewise.
26890 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
26891 (DWARF_FRAME_REGNUM): Likewise.
26892 (FIXED_REGISTERS): Likewise.
26893 (CALL_USED_REGISTERS): Likewise.
26894 (CALL_REALLY_USED_REGISTERS): Likewise.
26895 (REG_ALLOC_ORDER): Likewise.
26896 (enum reg_class): Likewise.
26897 (REG_CLASS_NAMES): Likewise.
26898 (REG_CLASS_CONTENTS): Likewise.
26899 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
26900
26901 2014-08-04 Richard Biener <rguenther@suse.de>
26902
26903 * gimple-fold.h (gimple_fold_builtin): Remove.
26904 * gimple-fold.c (gimple_fold_builtin): Make static.
26905 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
26906 fold_stmt, not gimple_fold_builtin.
26907
26908 2014-08-04 Martin Liska <mliska@suse.cz>
26909
26910 * cgraph.h (csi_end_p): Removed.
26911 (csi_next): Likewise.
26912 (csi_node): Likewise.
26913 (csi_start): Likewise.
26914 (cgraph_node_in_set_p): Likewise.
26915 (cgraph_node_set_size): Likewise.
26916 (vsi_end_p): Likewise.
26917 (vsi_next): Likewise.
26918 (vsi_node): Likewise.
26919 (vsi_start): Likewise.
26920 (varpool_node_set_size): Likewise.
26921 (cgraph_node_set_nonempty_p): Likewise.
26922 (varpool_node_set_nonempty_p): Likewise.
26923 * cgraphunit.c (cgraph_process_new_functions): vec replaces
26924 cgraph_node_set.
26925 * ipa-inline-transform.c: Likewise.
26926 * ipa-utils.c (cgraph_node_set_new): Removed.
26927 (cgraph_node_set_add): Likewise.
26928 (cgraph_node_set_remove): Likewise.
26929 (cgraph_node_set_find): Likewise.
26930 (dump_cgraph_node_set): Likewise.
26931 (debug_cgraph_node_set): Likewise.
26932 (free_cgraph_node_set): Likewise.
26933 (varpool_node_set_new): Likewise.
26934 (varpool_node_set_add): Likewise.
26935 (varpool_node_set_remove): Likewise.
26936 (varpool_node_set_find): Likewise.
26937 (dump_varpool_node_set): Likewise.
26938 (free_varpool_node_set): Likewise.
26939 (debug_varpool_node_set): Likewise.
26940 * tree-emutls.c (struct tls_var_data):
26941 (emutls_index): Removed.
26942 (emutls_decl): Likewise.
26943 (gen_emutls_addr): Function implementation uses newly added
26944 hash_map<varpool_node *, tls_var_data>.
26945 (clear_access_vars): Likewise.
26946 (create_emultls_var): Likewise.
26947 (ipa_lower_emutls): Likewise.
26948 (reset_access): New function.
26949
26950 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
26951
26952 * config/i386/i386.c (ix86_option_override_internal): Add
26953 PTA_RDRND and PTA_MOVBE for bdver4.
26954
26955 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26956 James Greenhalgh <james.greenhalgh@arm.com>
26957
26958 * doc/md.texi (clrsb): Document.
26959 (clz): Change reference to x into operand 1.
26960 (ctz): Likewise.
26961 (popcount): Likewise.
26962
26963 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26964
26965 PR target/61713
26966 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
26967 move to subtarget in serial version if result is ignored.
26968
26969 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26970 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26971
26972 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
26973 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
26974 (sched_analyze_insn): Update use of try_group_insn to
26975 sched_macro_fuse_insns.
26976 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
26977 arguments that are not conditional jumps.
26978
26979 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
26980
26981 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
26982 family information. Handle BTVER2 cpu with cpuid family value.
26983
26984 2014-08-04 Tom de Vries <tom@codesourcery.com>
26985
26986 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
26987 (glibc_2_11_or_earlier): Document effective-target keywords.
26988
26989 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
26990
26991 * ipa-devirt.c (odr_type_warn_count): Add type.
26992 (possible_polymorphic_call_targets): Set it.
26993 (ipa_devirt): Use it.
26994
26995 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
26996
26997 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
26998 Document.
26999 * ipa-devirt.c: Include hash-map.h
27000 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
27001 (clear_speculation): Break out of ...
27002 (get_class_context): ... here; speed up handling obviously useless
27003 speculations.
27004 (odr_type_warn_count, decl_warn_count): New structures.
27005 (final_warning_record): New structure.
27006 (final_warning_records): New static variable.
27007 (possible_polymorphic_call_targets): Cleanup handling of
27008 speculative info; do not build speculation when user do not care;
27009 record info about warnings when asked for.
27010 (add_decl_warning): New function.
27011 (type_warning_cmp): New function.
27012 (decl_warning_cmp): New function.
27013 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
27014 (gate): Enable pass when warnings are requested.
27015 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
27016 options.
27017
27018 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
27019
27020 * hash-map.h (default_hashmap_traits::mark_key_deleted):
27021 Fix cast.
27022 (hash_map::remove): New method.
27023 (hash_map::traverse): New method.
27024 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
27025 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
27026 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
27027 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
27028 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
27029 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
27030 pointer_map.
27031
27032 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
27033
27034 * hash-set.h: new File.
27035 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
27036 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
27037 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
27038 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
27039 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
27040 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
27041 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
27042 varpool.c: Use hash_set instead of pointer_set.
27043
27044 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
27045
27046 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
27047
27048 2014-08-01 Jiong Wang <jiong.wang@arm.com>
27049
27050 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
27051 for frame access when strict_p is false.
27052
27053 2014-08-01 Renlin Li <renlin.li@arm.com>
27054 2014-08-01 Jiong Wang <jiong.wang@arm.com>
27055
27056 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
27057 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
27058 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
27059 Declaration.
27060 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
27061 predicate.
27062 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
27063 aarch64_mem_pair_offset.
27064
27065 2014-08-01 Jiong Wang <jiong.wang@arm.com>
27066
27067 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
27068 offset.
27069 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
27070 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
27071
27072 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
27073
27074 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
27075
27076 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
27077
27078 PR regression/61510
27079 * cgraphunit.c (analyze_functions): Use get_create rather than get
27080 for decls which are clones of abstract functions.
27081
27082 2014-08-01 Martin Liska <mliska@suse.cz>
27083
27084 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
27085 * ipa-prop.h (count_formal_params): Global function created from static.
27086 * ipa-prop.c (count_formal_params): Likewise.
27087 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
27088 profiles for semantically equivalent functions.
27089 * passes.c (do_per_function): If we load body of a function
27090 during WPA, this condition should behave same.
27091 * varpool.c (ctor_for_folding): More tolerant assert for variable
27092 aliases created during WPA.
27093
27094 2014-08-01 Martin Liska <mliska@suse.cz>
27095
27096 * doc/invoke.texi (Options That Control Optimization): Documentation
27097 for -foptimize-strlen introduced. Optimization levels default options
27098 fixed.
27099
27100 2014-08-01 Jakub Jelinek <jakub@redhat.com>
27101
27102 * opts.c (common_handle_option): Handle -fsanitize=alignment.
27103 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
27104 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
27105 type to bool.
27106 * stor-layout.h (min_align_of_type): New prototype.
27107 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
27108 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
27109 check.
27110 * ubsan.c: Include builtins.h.
27111 (ubsan_expand_bounds_ifn): Change return type to bool,
27112 always return true.
27113 (ubsan_expand_null_ifn): Change return type to bool, change
27114 argument to gimple_stmt_iterator *. Handle both null and alignment
27115 sanitization, take type from ckind argument's type rather than
27116 first argument.
27117 (instrument_member_call): Removed.
27118 (instrument_mem_ref): Remove t argument, add mem and base arguments.
27119 Handle both null and alignment sanitization, don't say whole
27120 struct access is member access. Build 3 argument IFN_UBSAN_NULL
27121 call instead of 2 argument.
27122 (instrument_null): Adjust instrument_mem_ref caller. Don't
27123 instrument calls here.
27124 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
27125 like SANITIZE_NULL.
27126 * stor-layout.c (min_align_of_type): New function.
27127 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
27128 Or it into SANITIZE_UNDEFINED.
27129 * doc/invoke.texi (-fsanitize=alignment): Document.
27130
27131 2014-07-31 Andi Kleen <ak@linux.intel.com>
27132
27133 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
27134
27135 2014-07-31 Andi Kleen <ak@linux.intel.com>
27136
27137 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
27138 inchash.
27139 (vn_reference_compute_hash): Dito.
27140 (vn_nary_op_compute_hash): Dito.
27141 (vn_phi_compute_hash): Dito.
27142 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
27143
27144 2014-07-31 Andi Kleen <ak@linux.intel.com>
27145
27146 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
27147 Rename to inchash:add_expr_commutative. Convert to inchash.
27148 (iterative_hash_hashable_expr): Rename to
27149 inchash:add_hashable_expr. Convert to inchash.
27150 (avail_expr_hash): Dito.
27151
27152 2014-07-31 Andi Kleen <ak@linux.intel.com>
27153
27154 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
27155 Convert to inchash.
27156
27157 2014-07-31 Andi Kleen <ak@linux.intel.com>
27158
27159 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
27160
27161 2014-07-31 Andi Kleen <ak@linux.intel.com>
27162
27163 * Makefile.in (OBJS): Add rtlhash.o
27164 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
27165 (loc_checksum): Dito.
27166 (loc_checksum_ordered): Dito.
27167 (hash_loc_operands): Dito.
27168 (hash_locs): Dito.
27169 (hash_loc_list): Dito.
27170 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
27171 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
27172 * rtlhash.c: New file.
27173 * rtlhash.h: New file.
27174
27175 2014-07-31 Andi Kleen <ak@linux.intel.com>
27176
27177 * inchash.h (inchash): Change inchash class to namespace.
27178 (class hash): ... Rename from inchash.
27179 (add_object): Move from macro to class template.
27180 * lto-streamer-out.c (hash_tree): Change inchash
27181 to inchash::hash.
27182 * tree.c (build_type_attribute_qual_variant): Dito.
27183 (type_hash_list): Dito.
27184 (attribute_hash_list): Dito.
27185 (iterative_hstate_expr): Rename to inchash::add_expr
27186 (build_range_type_1): Change inchash to inchash::hash
27187 and use hash::add_expr.
27188 (build_array_type_1): Dito.
27189 (build_function_type): Dito
27190 (build_method_type_directly): Dito.
27191 (build_offset_type): Dito.
27192 (build_complex_type): Dito.
27193 (make_vector_type): Dito.
27194 * tree.h (iterative_hash_expr): Dito.
27195
27196 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
27197
27198 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
27199
27200 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
27201
27202 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
27203 correct alphabetical position.
27204 (vpaddd_f64): Rewrite using builtins.
27205 (vpaddd_s64): Move to correct alphabetical position.
27206 (vpaddd_u64): New.
27207
27208 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
27209
27210 PR target/61844
27211 * config/sh/sh.c (sh_legitimate_address_p,
27212 sh_legitimize_reload_address): Handle reg+reg address modes when
27213 ALLOW_INDEXED_ADDRESS is false.
27214 * config/sh/predicates.md (general_movsrc_operand,
27215 general_movdst_operand): Likewise.
27216
27217 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
27218
27219 * config/aarch64/aarch64-builtins.c
27220 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
27221 BYTES_BIG_ENDIAN.
27222
27223 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
27224
27225 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
27226 the generated mask based on BYTES_BIG_ENDIAN.
27227 (aarch64_simd_check_vect_par_cnst_half): New.
27228 * config/aarch64/aarch64-protos.h
27229 (aarch64_simd_check_vect_par_cnst_half): New.
27230 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
27231 the check out to aarch64_simd_check_vect_par_cnst_half.
27232 (vect_par_cnst_lo_half): Likewise.
27233 * config/aarch64/aarch64-simd.md
27234 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
27235 (move_hi_quad_<mode>): Always generate a low mask.
27236
27237 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27238
27239 * doc/invoke.texi (AVR Options): Add documentation about
27240 __AVR_DEVICE_NAME__ built-in macro.
27241
27242 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
27243
27244 PR target/61948
27245 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
27246 constraints are satisfied.
27247 (<shift>di3_neon): Likewise.
27248
27249 2014-07-31 Richard Biener <rguenther@suse.de>
27250
27251 PR tree-optimization/61964
27252 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
27253 by structural equality.
27254
27255 2014-07-31 Yury Gribov <y.gribov@samsung.com>
27256
27257 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
27258 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
27259 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
27260 New enums.
27261 * gcc.c (sanitize_spec_function): Support new option.
27262 (SANITIZER_SPEC): Remove now redundant check.
27263 * opts.c (common_handle_option): Support new option.
27264 (finish_options): Check for incompatibilities.
27265 * toplev.c (process_options): Split userspace-specific checks.
27266
27267 2014-07-31 Richard Biener <rguenther@suse.de>
27268
27269 * lto-streamer.h (struct output_block): Remove global.
27270 (struct data_in): Remove labels, num_named_labels and
27271 num_unnamed_labels.
27272 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
27273 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
27274
27275 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
27276
27277 PR c++/60517
27278 * common.opt (-Wreturn-local-addr): Moved from c.opt.
27279 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
27280 (isolate_path): New argument to avoid inserting a trap.
27281 (find_implicit_erroneous_behaviour): Handle returning the address
27282 of a local variable.
27283 (find_explicit_erroneous_behaviour): Likewise.
27284
27285 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
27286
27287 PR lto/61868
27288 * toplev.c (init_random_seed): Move piece of code never called to
27289 set_random_seed.
27290 (set_random_seed): see above.
27291
27292 2014-07-31 Tom de Vries <tom@codesourcery.com>
27293
27294 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
27295
27296 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
27297
27298 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
27299 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
27300
27301 2014-07-31 Richard Biener <rguenther@suse.de>
27302
27303 * data-streamer.h (streamer_write_data_stream): Declare here,
27304 renamed from ...
27305 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
27306 * lto-cgraph.c (lto_output_node): Adjust.
27307 (lto_output_varpool_node): Likewise.
27308 * data-streamer-out.c (streamer_string_index): Likewise.
27309 (streamer_write_data_stream, lto_append_block): Move from ...
27310 * lto-section-out.c (lto_output_data_stream,
27311 lto_append_block): ... here.
27312
27313 2014-07-30 Mike Stump <mikestump@comcast.net>
27314
27315 * configure.ac: Also check for popen.
27316 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
27317 * configure: Regenerate.
27318 * config.in: Regenerate.
27319
27320 2014-07-30 Martin Jambor <mjambor@suse.cz>
27321
27322 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
27323 parameter to gimple.
27324
27325 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27326
27327 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
27328 address as second parameter to __tpf_eh_return routine.
27329
27330 2014-07-30 Jiong Wang <jiong.wang@arm.com>
27331
27332 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
27333 Thumb2.
27334
27335 2014-07-30 Tom Tromey <tromey@redhat.com>
27336
27337 PR c/59855
27338 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
27339 * doc/extend.texi (Type Attributes): Document designated_init
27340 attribute.
27341
27342 2014-07-30 Roman Gareev <gareevroman@gmail.com>
27343
27344 * graphite-isl-ast-to-gimple.c:
27345 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
27346 (gcc_expression_from_isl_expression): Pass type to
27347 gcc_expression_from_isl_ast_expr_id.
27348
27349 2014-07-30 Richard Biener <rguenther@suse.de>
27350
27351 * lto-streamer.h (lto_write_data): New function.
27352 * langhooks.c (lhd_append_data): Do not free block.
27353 * lto-section-out.c (lto_write_data): New function writing
27354 raw data to the current section.
27355 (lto_write_stream): Adjust for langhook semantic change.
27356 (lto_destroy_simple_output_block): Write header directly.
27357 * lto-opts.c (lto_write_options): Write options directly.
27358 * lto-streamer-out.c (produce_asm): Write heaeder directly.
27359 (lto_output_toplevel_asms): Likewise.
27360 (copy_function_or_variable): Copy data directly.
27361 (write_global_references): Output index table directly.
27362 (lto_output_decl_state_refs): Likewise.
27363 (write_symbol): Write data directly.
27364 (produce_symtab): Adjust.
27365 (produce_asm_for_decls): Output header and refs directly.
27366
27367 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
27368
27369 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
27370 to speculative_targets
27371 (get_class_context): Fix handling of contextes without outer type;
27372 avoid matching non-polymorphic types in LTO.
27373 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
27374 parameter to speculative_targetsp; handle speculation.
27375 (dump_possible_polymorphic_call_targets): Update dumping.
27376
27377 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
27378
27379 * common.opt (Wodr): Enable by default.
27380
27381 2014-07-29 Olivier Hainque <hainque@adacore.com>
27382
27383 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
27384
27385 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
27386
27387 PR bootstrap/61914
27388 * gengtype.c (strtoken): New function.
27389 (create_user_defined_type): Replace strtok with strtoken.
27390
27391 2014-07-29 Nathan Sidwell <nathan@acm.org>
27392
27393 * gcov-io.c (gcov_var): Make hidden.
27394 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
27395 (gcov_do_dump): Declare.
27396 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
27397
27398 2014-07-29 Martin Jambor <mjambor@suse.cz>
27399
27400 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
27401 parameter to gimple.
27402 (sra_modify_assign): Likewise.
27403
27404 2014-07-29 Richard Biener <rguenther@suse.de>
27405
27406 PR middle-end/52478
27407 * expr.c (expand_expr_real_2): Revert last change.
27408
27409 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
27410
27411 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
27412 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
27413 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
27414 call.
27415 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
27416 (contains_type_p): Forward declare.
27417 (polymorphic_call_target_hasher::hash): Hash speculative info.
27418 (polymorphic_call_target_hasher::equal): Compare speculative info.
27419 (get_class_context): Handle speuclation.
27420 (contains_type_p): Update.
27421 (get_polymorphic_call_info_for_decl): Update.
27422 (walk_ssa_copies): Break out from ...
27423 (get_polymorphic_call_info): ... here; set speculative context
27424 before giving up.
27425 * ipa-prop.c (ipa_write_indirect_edge_info,
27426 ipa_read_indirect_edge_info): Stream speculative context.
27427 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
27428 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
27429 SPECULATIVE_MAYBE_DERIVED_TYPE).
27430 (possible_polymorphic_call_targets overriders): Update.
27431 (dump_possible_polymorphic_call_targets overriders): Update.
27432 (dump_possible_polymorphic_call_target_p overriders): Update.
27433
27434 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
27435
27436 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
27437 ipa-devirt path; fix thinko there.
27438
27439 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
27440
27441 * config/i386/i386.c (ix86_return_in_memory): Replace one
27442 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
27443
27444 2014-07-28 Marek Polacek <polacek@redhat.com>
27445
27446 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
27447
27448 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
27449
27450 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
27451 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
27452 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
27453 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
27454 (USE_LD_AS_NEEDED): Likewise.
27455 (ASM_APP_ON): Likewise.
27456 (ASM_APP_OFF): Likewise.
27457 (TARGET_POSIX_IO): Likewise.
27458 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
27459 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
27460 (USE_LD_AS_NEEDED): Likewise.
27461 (ASM_APP_ON): Likewise.
27462 (ASM_APP_OFF): Likewise.
27463 (TARGET_POSIX_IO): Likewise.
27464
27465 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
27466
27467 PR middle-end/61734
27468 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
27469 operators other than the equality operators.
27470
27471 2014-07-28 Richard Biener <rguenther@suse.de>
27472
27473 PR middle-end/52478
27474 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
27475 sure to register SImode ones, not only >= word_mode ones.
27476 * expr.c (expand_expr_real_2): When expanding -ftrapv
27477 binops do not use OPTAB_LIB_WIDEN.
27478
27479 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
27480
27481 PR middle-end/61919
27482 * tree-outof-ssa.c (insert_partition_copy_on_edge)
27483 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
27484 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
27485 inserting them in the insn stream.
27486
27487 2014-07-28 Marek Polacek <polacek@redhat.com>
27488
27489 PR middle-end/61913
27490 * common.opt (Wodr): Add Var.
27491
27492 2014-07-28 Richard Biener <rguenther@suse.de>
27493
27494 PR tree-optimization/61921
27495 * tree-ssa-structalias.c (create_variable_info_for_1): Check
27496 if there is a varpool node before dereferencing it.
27497
27498 2014-07-28 Roman Gareev <gareevroman@gmail.com>
27499
27500 * graphite-sese-to-poly.c:
27501 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
27502 id of the pbb), which contains pointer to the pbb1.
27503
27504 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
27505
27506 2014-07-28 Roman Gareev <gareevroman@gmail.com>
27507
27508 * graphite-isl-ast-to-gimple.c:
27509 (graphite_create_new_guard): New function.
27510 (translate_isl_ast_node_if): New function.
27511 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
27512
27513 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
27514
27515 2014-07-27 Anthony Green <green@moxielogic.com>
27516
27517 * config.gcc: Add moxie-*-moxiebox* configuration.
27518 * config/moxie/moxiebox.h: New file.
27519
27520 2014-07-26 Andrew Pinski <apinski@cavium.com>
27521
27522 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
27523 from the read only register.
27524
27525 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
27526
27527 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
27528 as the allocation class if it isn't likely to be spilled.
27529
27530 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
27531
27532 * rtl.h (tls_referenced_p): Declare.
27533 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
27534 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
27535 (mips_cannot_force_const_mem): Use tls_referenced_p.
27536 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
27537 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
27538 instead of pa_tls_referenced_p.
27539 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
27540 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
27541 (pa_legitimate_constant_p): Likewise.
27542 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
27543 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
27544 (rs6000_cannot_force_const_mem, rs6000_emit_move)
27545 (rs6000_address_for_altivec): Use tls_referenced_p instead of
27546 rs6000_tls_referenced_p.
27547 (rs6000_tls_symbol_ref_1): Delete.
27548
27549 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
27550
27551 PR target/44551
27552 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
27553 Optimize inverse of a VEC_CONCAT.
27554
27555 2014-07-25 Xinliang David Li <davidxl@google.com>
27556
27557 * params.def: New parameter.
27558 * coverage.c (get_coverage_counts): Check new flag.
27559 (coverage_compute_profile_id): Check new flag.
27560 (coverage_begin_function): Check new flag.
27561 (coverage_end_function): Check new flag.
27562 * value-prof.c (coverage_node_map_initialized_p): New function.
27563 (init_node_map): Populate map with all functions.
27564 * doc/invoke.texi: Document new parameter.
27565
27566 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
27567 Richard Biener <rguenther@suse.de>
27568
27569 * lto-streamer-out.c (struct sccs): Turn to ...
27570 (class DFS): ... this one; refactor the DFS walk so it can
27571 be re-done on per-SCC basis.
27572 (DFS::DFS): New constructor.
27573 (DFS::~DFS): New destructor.
27574 (hash_tree): Add new MAP argument holding in-SCC hash values;
27575 remove POINTER_TYPE hashing hack.
27576 (scc_entry_compare): Rename to ...
27577 (DFS::scc_entry_compare): ... this one.
27578 (hash_scc): Rename to ...
27579 (DFS::hash_scc): ... this one; pass output_block instead
27580 of streamer_cache; work harder to get unique and stable SCC
27581 hashes.
27582 (DFS_write_tree): Rename to ...
27583 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
27584 (lto_output_tree): Update.
27585
27586 2014-07-25 Andi Kleen <ak@linux.intel.com>
27587
27588 * lto-streamer-out.c (hash_tree): Convert to inchash.
27589
27590 2014-07-25 Andi Kleen <ak@linux.intel.com>
27591
27592 * tree.c (build_type_attribute_qual_variant): Use inchash.
27593 (type_hash_list): Dito.
27594 (attribute_hash_list): Dito
27595 (iterative_hstate_expr): Dito.
27596 (iterative_hash_expr): Dito.
27597 (build_range_type_1): Dito.
27598 (build_array_type_1): Dito.
27599 (build_function_type): Dito.
27600 (build_method_type_directly): Dito.
27601 (build_offset_type): Dito.
27602 (build_complex_type): Dito.
27603 (make_vector_type): Dito.
27604 * tree.h (iterative_hash_expr): Add compat wrapper.
27605 (iterative_hstate_expr): Add.
27606
27607 2014-07-25 Andi Kleen <ak@linux.intel.com>
27608
27609 * Makefile.in (OBJS): Add inchash.o.
27610 (PLUGIN_HEADERS): Add inchash.h.
27611 * ipa-devirt.c: Include inchash.h.
27612 * lto-streamer-out.c: Dito.
27613 * tree-ssa-dom.c: Dito.
27614 * tree-ssa-pre.c: Dito.
27615 * tree-ssa-sccvn.c: Dito.
27616 * tree-ssa-tail-merge.c: Dito.
27617 * asan.c: Dito.
27618 * tree.c (iterative_hash_hashval_t): Move to ...
27619 (iterative_hash_host_wide_int): Move to ...
27620 * inchash.c: Here. New file.
27621 * tree.h (iterative_hash_hashval_t): Move to ...
27622 (iterative_hash_host_wide_int): Move to ...
27623 * inchash.h: Here. New file.
27624
27625 2014-07-25 Richard Biener <rguenther@suse.de>
27626
27627 PR middle-end/61762
27628 PR middle-end/61894
27629 * fold-const.c (native_encode_int): Add and handle offset
27630 parameter to do partial encodings of expr.
27631 (native_encode_fixed): Likewise.
27632 (native_encode_real): Likewise.
27633 (native_encode_complex): Likewise.
27634 (native_encode_vector): Likewise.
27635 (native_encode_string): Likewise.
27636 (native_encode_expr): Likewise.
27637 * fold-const.c (native_encode_expr): Add offset parameter
27638 defaulting to -1.
27639 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
27640 (fold_ctor_reference): Handle all reads from tcc_constant
27641 ctors.
27642
27643 2014-07-25 Richard Biener <rguenther@suse.de>
27644
27645 * tree-inline.c (estimate_move_cost): Mark speed_p argument
27646 as possibly unused.
27647
27648 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27649
27650 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
27651
27652 2014-07-24 Kyle McMartin <kyle@redhat.com>
27653
27654 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
27655
27656 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27657
27658 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
27659 Add prototype.
27660 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
27661 function.
27662 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
27663 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
27664 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
27665
27666 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27667
27668 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
27669 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
27670 aggregate types. Instead, *all* aggregate types, except for single-
27671 element or homogeneous float/vector aggregates, are quadword-aligned
27672 if required by their type alignment. Issue -Wpsabi note when a type
27673 is now treated differently than before.
27674
27675 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27676
27677 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
27678 does not fit fully into floating-point registers, and there is still
27679 space in the register parameter area, use GPRs to pass those parts
27680 of the argument. Issue -Wpsabi note if any parameter is now treated
27681 differently than before.
27682 (rs6000_arg_partial_bytes): Update.
27683
27684 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
27685
27686 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
27687
27688 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
27689
27690 * rtl.h (target_rtl): Remove lang_dependent_initialized.
27691 * toplev.c (initialize_rtl): Don't use it. Move previously
27692 "language-dependent" calls to...
27693 (backend_init): ...here.
27694 (lang_dependent_init_target): Don't set lang_dependent_initialized.
27695 Assert that RTL initialization hasn't happend yet.
27696
27697 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
27698
27699 PR rtl-optimization/61629
27700 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
27701 they have already been initialized.
27702
27703 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
27704
27705 PR middle-end/61268
27706 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
27707 DECL_INCOMING_RTL and entry_parm.
27708 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
27709 * calls.c (load_register_parameters): Likewise argument values.
27710 (emit_library_call_value_1, store_one_arg): Likewise argument
27711 save areas.
27712 * config/i386/i386.c (assign_386_stack_local): Likewise the local
27713 stack slot.
27714 * explow.c (validize_mem): Modify the argument in-place.
27715
27716 2014-07-24 Jiong Wang <jiong.wang@arm.com>
27717
27718 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
27719 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
27720
27721 2014-07-24 Jiong Wang <jiong.wang@arm.com>
27722
27723 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
27724 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
27725
27726 2014-07-24 Jiong Wang <jiong.wang@arm.com>
27727
27728 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
27729 (aarch64_save_callee_saves): New parameter "skip_wb".
27730 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
27731
27732 2014-07-24 Jiong Wang <jiong.wang@arm.com>
27733
27734 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
27735 "wb_candidate2".
27736 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
27737
27738 2014-07-24 Roman Gareev <gareevroman@gmail.com>
27739
27740 * graphite-isl-ast-to-gimple.c:
27741 (graphite_create_new_loop): Add calling of isl_id_free to properly
27742 decrement reference counts.
27743
27744 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
27745
27746 2014-07-24 Martin Liska <mliska@suse.cz>
27747 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
27748 function used.
27749 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
27750 (rs6000_code_end): Likewise.
27751
27752 2014-07-24 Martin Liska <mliska@suse.cz>
27753
27754 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
27755 symtab_node funtion used.
27756 (rs6000_xcoff_declare_object_name): Likewise.
27757
27758 2014-07-24 Martin Liska <mliska@suse.cz>
27759
27760 * cgraphunit.c (compile): Correct function used.
27761
27762 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
27763
27764 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
27765 as non-indexable.
27766
27767 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
27768
27769 PR lto/61802
27770 * varasm.c (bss_initializer_p): Handle offlined ctors.
27771 (align_variable, get_variable_align): Likewise.
27772 (make_decl_one_only): Likewise.
27773 (default_binds_local_p_1): Likewise.
27774 (decl_binds_to_current_def_p): Likewise.
27775 (get_variable_section): Get constructor if it is offlined.
27776 (assemble_variable_contents): Sanity check that the caller
27777 streamed in the ctor in LTO.
27778
27779 2014-07-24 Roman Gareev <gareevroman@gmail.com>
27780
27781 * graphite-isl-ast-to-gimple.c:
27782 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
27783 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
27784 isl_ast_op_pdiv_r to the different case.
27785
27786 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
27787
27788 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27789
27790 PR middle-end/61876
27791 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
27792 when flag_errno_math is on.
27793
27794 2014-07-24 Martin Liska <mliska@suse.cz>
27795
27796 * cgraph.h (varpool_node):
27797 (availability get_availability (void)):
27798 created from cgraph_variable_initializer_availability
27799 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
27800 created from: cgraph_variable_initializer_availability
27801 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
27802 (void finalize_named_section_flags (void)):
27803 created from varpool_finalize_named_section_flags
27804 (bool assemble_decl (void)): created from varpool_assemble_decl
27805 (void analyze (void)): created from varpool_analyze_node
27806 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
27807 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
27808 (void remove_initializer (void)): created from varpool_remove_initializer
27809 (tree get_constructor (void)): created from varpool_get_constructor
27810 (bool externally_visible_p (void)): created from varpool_externally_visible_p
27811 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
27812 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
27813 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
27814 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
27815 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
27816 (static bool output_variables (void)): created from varpool_output_variables
27817 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
27818 created from varpool_extra_name_alias
27819 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
27820 (static void dump_varpool (FILE *f)): created from dump_varpool
27821 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
27822 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
27823 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
27824 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
27825 (void assemble_aliases (void)): created from assemble_aliases
27826
27827 2014-07-24 Martin Liska <mliska@suse.cz>
27828
27829 * cgraph.h (symtab_node):
27830 (void register_symbol (void)): created from symtab_register_node
27831 (void remove (void)): created from symtab_remove_node
27832 (void dump (FILE *f)): created from dump_symtab_node
27833 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
27834 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
27835 (struct ipa_ref *add_reference (symtab_node *referred_node,
27836 enum ipa_ref_use use_type)): created from add_reference
27837 (struct ipa_ref *add_reference (symtab_node *referred_node,
27838 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
27839 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
27840 gimple stmt)): created from maybe_add_reference
27841 (bool semantically_equivalent_p (symtab_node *target)): created from
27842 symtab_semantically_equivalent_p
27843 (void remove_from_same_comdat_group (void)): created from
27844 remove_from_same_comdat_group
27845 (void add_to_same_comdat_group (symtab_node *old_node)): created from
27846 symtab_add_to_same_comdat_group
27847 (void dissolve_same_comdat_group_list (void)): created from
27848 symtab_dissolve_same_comdat_group_list
27849 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
27850 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
27851 created from symtab_alias_ultimate_target
27852 (inline symtab_node *next_defined_symbol (void)): created from
27853 symtab_next_defined_symbol
27854 (bool resolve_alias (symtab_node *target)): created from
27855 symtab_resolve_alias
27856 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
27857 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
27858 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
27859 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
27860 (void set_section (const char *section)): created from set_section_1
27861 (enum availability get_availability (void)): created from symtab_node_availability
27862 (void make_decl_local (void)): created from symtab_make_decl_local
27863 (bool real_symbol_p (void)): created from symtab_read_node
27864 (can_be_discarded_p (void)): created from symtab_can_be_discarded
27865 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
27866 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
27867 symtab_in_same_comdat_p;
27868 (bool address_taken_from_non_vtable_p (void)): created from
27869 address_taken_from_non_vtable_p
27870 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
27871 (static void dump_table (FILE *)): created from dump_symtab
27872 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
27873 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
27874 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
27875 symtab_used_from_object_file_p
27876 (void dump_base (FILE *)): created from dump_symtab_base
27877 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
27878 (void unregister (void)): created from symtab_unregister_node
27879 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
27880 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
27881 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
27882 symtab_nonoverwritable_alias_1
27883 * cgraph.h (cgraph_node):
27884 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
27885 created from cgraph_remove_node_and_inline_clones
27886 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
27887 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
27888 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
27889 (cgraph_node *function_symbol (enum availability *avail = NULL)):
27890 created from cgraph_function_node
27891 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
27892 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
27893 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
27894 created from cgraph_create_clone
27895 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
27896 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
27897 created from cgraph_create_virtual_clone
27898 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
27899 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
27900 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
27901 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
27902 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
27903 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
27904 created from cgraph_function_version_info
27905 (struct cgraph_function_version_info *insert_new_function_version (void)):
27906 created from insert_new_cgraph_node_version
27907 (struct cgraph_function_version_info *function_version (void)): created from
27908 get_cgraph_node_version
27909 (void analyze (void)): created from analyze_function
27910 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
27911 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
27912 tree real_alias) cgraph_add_thunk
27913 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
27914 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
27915 created from cgraph_function_or_thunk_node
27916 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
27917 created from expand_thunk
27918 (void reset (void)): created from cgraph_reset_node
27919 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
27920 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
27921 (void remove (void)): created from cgraph_remove_node
27922 (void dump (FILE *f)): created from dump_cgraph_node
27923 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
27924 (bool get_body (void)): created from cgraph_get_body
27925 (void release_body (void)): created from cgraph_release_function_body
27926 (void unnest (void)): created from cgraph_unnest_node
27927 (void make_local (void)): created from cgraph_make_node_local
27928 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
27929 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
27930 gcov_type count, int freq)): created from cgraph_create_edge
27931 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
27932 gcov_type count, int freq)): created from cgraph_create_indirect_edge
27933 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
27934 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
27935 created from cgraph_create_edge_including_clones
27936 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
27937 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
27938 (void remove_callers (void)): created from cgraph_node_remove_callers
27939 (void remove_callees (void)): created from cgraph_node_remove_callees
27940 (enum availability get_availability (void)): created from cgraph_function_body_availability
27941 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
27942 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
27943 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
27944 (void call_duplication_hooks (cgraph_node *node2)): created from
27945 cgraph_call_node_duplication_hooks
27946 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
27947 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
27948 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
27949 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
27950 (void call_function_insertion_hooks (void)):
27951 created from cgraph_call_function_insertion_hooks
27952 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
27953 (bool local_p (void)): created from cgraph_local_node
27954 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
27955 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
27956 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
27957 (inline bool only_called_directly_or_aliased_p (void)):
27958 created from cgraph_only_called_directly_or_aliased_p
27959 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
27960 created from cgraph_will_be_removed_from_program_if_no_direct_calls
27961 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
27962 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
27963 (bool can_remove_if_no_direct_calls_p (void)):
27964 created from cgraph_can_remove_if_no_direct_calls_p
27965 (inline bool has_gimple_body_p (void)):
27966 created from cgraph_function_with_gimple_body_p
27967 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
27968 (static void dump_cgraph (FILE *f)): created from dump_cgraph
27969 (static inline void debug_cgraph (void)): created from debug_cgraph
27970 (static void record_function_versions (tree decl1, tree decl2)):
27971 created from record_function_versions
27972 (static void delete_function_version (tree decl)):
27973 created from delete_function_version
27974 (static void add_new_function (tree fndecl, bool lowered)):
27975 created from cgraph_add_new_function
27976 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
27977 (static cgraph_node * create (tree decl)): created from cgraph_create_node
27978 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
27979 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
27980 (static cgraph_node *get_for_asmname (tree asmname)):
27981 created from cgraph_node_for_asm
27982 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
27983 created from cgraph_same_body_alias
27984 (static bool used_from_object_file_p_worker (cgraph_node *node,
27985 void *): new function
27986 (static bool non_local_p (cgraph_node *node, void *)):
27987 created from cgraph_non_local_node_p_1
27988 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
27989 created from verify_cgraph
27990 (static bool make_local (cgraph_node *node, void *)):
27991 created from cgraph_make_node_local
27992 (static cgraph_node *create_alias (tree alias, tree target)):
27993 created from cgraph_create_function_alias
27994 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
27995 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
27996 created from cgraph_create_edge_1
27997 * cgraph.h (varpool_node):
27998 (void remove (void)): created from varpool_remove_node
27999 (void dump (FILE *f)): created from dump_varpool_node
28000
28001 2014-07-24 Richard Biener <rguenther@suse.de>
28002
28003 PR ipa/61823
28004 * tree-ssa-structalias.c (create_variable_info_for_1):
28005 Use varpool_get_constructor.
28006 (create_variable_info_for): Likewise.
28007
28008 2014-07-24 Jiong Wang <jiong.wang@arm.com>
28009
28010 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
28011 subtract outgoing area size when restoring stack_pointer_rtx.
28012
28013 2014-07-24 Nick Clifton <nickc@redhat.com>
28014
28015 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
28016 that operations are taking place in parallel.
28017 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
28018
28019 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
28020
28021 * omp-low.c (extract_omp_for_data): Add missing break statement.
28022
28023 2014-07-24 Richard Biener <rguenther@suse.de>
28024
28025 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
28026 * tree-inline.c (estimate_move_cost): Add speed_p parameter
28027 and adjust MOVE_RATIO query accordingly.
28028 (estimate_num_insns): Adjust callers.
28029 * ipa-prop.c (ipa_populate_param_decls): Likewise.
28030 * ipa-cp.c (gather_context_independent_values,
28031 estimate_local_effects): Likewise.
28032 * ipa-split.c (consider_split): Likewise.
28033
28034 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
28035
28036 * config/i386/driver-i386.c: Remove names of unused arguments and
28037 unnecessary unused attributes.
28038 * config/i386/host-mingw32.c: Likewise.
28039 * config/i386/i386.c: Likewise.
28040 * config/i386/winnt-stubs.c: Likewise.
28041 * config/i386/winnt.c: Likewise.
28042
28043 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28044
28045 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
28046 (aarch64_gen_loadwb_pair): New helper function.
28047 (aarch64_expand_epilogue): Simplify code using new helper functions.
28048 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
28049
28050 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28051
28052 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
28053 (aarch64_gen_storewb_pair): New helper function.
28054 (aarch64_expand_prologue): Simplify code using new helper functions.
28055 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
28056
28057 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28058
28059 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
28060 Rename to aarch64_save_callee_saves, remove restore code.
28061 (aarch64_restore_callee_saves): New function.
28062
28063 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28064
28065 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
28066 (aarch64_save_callee_saves): New function to handle reg save
28067 for both core and vectore regs.
28068
28069 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28070
28071 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
28072 (aarch64_gen_store_pair): New helper function.
28073 (aarch64_save_or_restore_callee_save_registers)
28074 (aarch64_save_or_restore_fprs): Use new helper functions.
28075
28076 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28077
28078 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
28079 (aarch64_save_or_restore_callee_save_registers)
28080 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
28081
28082 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28083
28084 * config/aarch64/aarch64.c
28085 (aarch64_save_or_restore_callee_save_registers)
28086 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
28087
28088 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28089
28090 * config/aarch64/aarch64.c
28091 (aarch64_save_or_restore_callee_save_registers)
28092 (aarch64_save_or_restore_fprs): Remove 'increment'.
28093
28094 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28095
28096 * config/aarch64/aarch64.c
28097 (aarch64_save_or_restore_callee_save_registers)
28098 (aarch64_save_or_restore_fprs): Use register offset in
28099 cfun->machine->frame.reg_offset.
28100
28101 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28102
28103 * config/aarch64/aarch64.c
28104 (aarch64_save_or_restore_callee_save_registers)
28105 (aarch64_save_or_restore_fprs): Remove base_rtx.
28106
28107 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28108
28109 * config/aarch64/aarch64.c
28110 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
28111 to 'start_offset'. Remove local variable 'start_offset'.
28112
28113 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28114
28115 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
28116 type to HOST_WIDE_INT.
28117
28118 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28119
28120 * config/aarch64/aarch64.c (aarch64_expand_prologue)
28121 (aarch64_save_or_restore_fprs)
28122 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
28123
28124 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
28125
28126 * config/arm/t-rtems-eabi: Add
28127 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
28128 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
28129 mbig-endian/mthumb/march=armv7-r, and
28130 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
28131 multilibs.
28132
28133 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
28134 Chris Johns <chrisj@rtems.org>
28135 Joel Sherrill <joel.sherrill@oarcorp.com>
28136
28137 * config.gcc: Add nios2-*-rtems*.
28138 * config/nios2/rtems.h: New file.
28139 * gcc/config/nios2/t-rtems: New file.
28140
28141 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
28142
28143 PR target/61396
28144 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
28145 constant numbers, not general constants.
28146 (rs6000_expand_vector_init): Ditto.
28147
28148 2014-07-23 Nathan Sidwell <nathan@acm.org>
28149
28150 * gcov-tool.c (gcov_list): Declare here.
28151 (set_gcov_list): Remove.
28152 (gcov_output_files): Set gcov_list directly.
28153
28154 2014-07-23 Host Schirmeier <horst@schirmeier.com>
28155
28156 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
28157
28158 2014-07-23 Jiong Wang <jiong.wang@arm.com>
28159
28160 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
28161 callee-saved registers are available for padding purpose
28162 and r3 is not mandatory, then prefer use those callee-saved
28163 instead of r3.
28164
28165 2014-07-23 Richard Biener <rguenther@suse.de>
28166
28167 * params.def (PARAM_MAX_COMBINE_INSNS): New.
28168 * combine.c: Include statistics.h and params.h.
28169 (combine_instructions): Guard three and four insn combines
28170 with max-combine-insns value. Record statistics for combines
28171 performed.
28172 * doc/invoke.texi (max-combine-insns): Document new param.
28173
28174 2014-07-23 Roman Gareev <gareevroman@gmail.com>
28175
28176 * graphite-isl-ast-to-gimple.c:
28177 (translate_isl_ast_node_block): New function.
28178 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
28179
28180 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
28181 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
28182
28183 2014-07-23 Roman Gareev <gareevroman@gmail.com>
28184
28185 * graphite-isl-ast-to-gimple.c:
28186 (get_max_schedule_dimensions): New function.
28187 (extend_schedule): Likewise.
28188 (generate_isl_schedule): Add calling of extend_schedule and
28189 get_max_schedule_dimensions.
28190
28191 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28192
28193 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
28194 (case UNSPEC): Handle UNSPEC_RBIT.
28195
28196 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28197
28198 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
28199 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
28200
28201 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28202
28203 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
28204
28205 2014-07-22 Roman Gareev <gareevroman@gmail.com>
28206
28207 * graphite-isl-ast-to-gimple.c:
28208 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
28209 (ivs_params_clear):
28210 (build_iv_mapping): New function.
28211 (translate_isl_ast_node_user): Likewise.
28212 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
28213
28214 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
28215 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
28216 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
28217
28218 2014-07-21 Bin Cheng <bin.cheng@arm.com>
28219
28220 PR target/55701
28221 * config/arm/arm.md (setmem): New pattern.
28222 * config/arm/arm-protos.h (struct tune_params): New fields.
28223 (arm_gen_setmem): New prototype.
28224 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
28225 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
28226 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
28227 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
28228 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
28229 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
28230 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
28231 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
28232 (arm_const_inline_cost): New function.
28233 (arm_block_set_max_insns): New function.
28234 (arm_block_set_non_vect_profit_p): New function.
28235 (arm_block_set_vect_profit_p): New function.
28236 (arm_block_set_unaligned_vect): New function.
28237 (arm_block_set_aligned_vect): New function.
28238 (arm_block_set_unaligned_non_vect): New function.
28239 (arm_block_set_aligned_non_vect): New function.
28240 (arm_block_set_vect, arm_gen_setmem): New functions.
28241
28242 2014-07-21 Bin Cheng <bin.cheng@arm.com>
28243
28244 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
28245
28246 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
28247
28248 PR target/61855
28249 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
28250 out of #ifdef __OPTIMIZE__.
28251
28252 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
28253
28254 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
28255 different trapping status if -fnon-call-exceptions is enabled.
28256
28257 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
28258
28259 * expr.c (store_field): Handle VOIDmode for calls that return values
28260 in multiple locations.
28261
28262 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28263
28264 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
28265 (altivec_vsldoi_<mode>): Likewise.
28266
28267 2014-07-20 Roman Gareev <gareevroman@gmail.com>
28268
28269 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
28270 to the number of characters in the line.
28271
28272 2014-07-20 Roman Gareev <gareevroman@gmail.com>
28273
28274 * graphite-isl-ast-to-gimple.c: Add using of
28275 build_nonstandard_integer_type instead of int128_integer_type_node.
28276
28277 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
28278
28279 * toplev.c (output_stack_usage): Adjust the location of the warning.
28280
28281 2014-07-19 Daniel Cederman <cederman@gaisler.com>
28282
28283 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
28284 (*membar_storeload): Disable for LEON3.
28285
28286 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
28287
28288 PR rtl-optimization/61461
28289 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
28290
28291 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
28292
28293 PR target/61794
28294 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
28295 Fix instruction constraint.
28296 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
28297
28298 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
28299
28300 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
28301
28302 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
28303
28304 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
28305 GNU coding standards.
28306 (nds32_register_move_cost): Likewise.
28307 (nds32_memory_move_cost): Likewise.
28308 (nds32_address_cost): Likewise.
28309
28310 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
28311
28312 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
28313
28314 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
28315
28316 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
28317 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
28318 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
28319 (HAVE_sync_compare_and_swapqi): Define.
28320 (HAVE_sync_compare_and_swaphi): Likewise.
28321 (HAVE_sync_compare_and_swapsi): Likewise.
28322
28323 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
28324
28325 * config/mips/p5600.md: Add missing cpu tests.
28326
28327 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28328
28329 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
28330 (vmla_f64): Likewise.
28331 (vfms_f64): Likewise.
28332 (vmls_f64): Likewise.
28333
28334 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28335
28336 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
28337 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
28338
28339 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28340
28341 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
28342 (vmlal_high_lane_s32): Likewise.
28343 (vmlal_high_lane_u16): Likewise.
28344 (vmlal_high_lane_u32): Likewise.
28345 (vmlsl_high_lane_s16): Likewise.
28346 (vmlsl_high_lane_s32): Likewise.
28347 (vmlsl_high_lane_u16): Likewise.
28348 (vmlsl_high_lane_u32): Likewise.
28349
28350 2014-07-17 Terry Guo <terry.guo@arm.com>
28351
28352 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
28353 (alus_reg): Renamed to alus_sreg.
28354 * config/arm/arm-fixed.md: Change type of non-dsp instructions
28355 from alu_reg to alu_sreg. Change type of dsp instructions from
28356 alu_reg to alu_dsp_reg.
28357 * config/arm/thumb1.md: Likewise.
28358 * config/arm/thumb2.md: Likewise.
28359 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
28360 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
28361 with alu_sreg and alus_sreg.
28362 * config/arm/arm1026ejs.md (alu_op): Likewise.
28363 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
28364 * config/arm/arm926ejs.md (9_alu_op): Likewise.
28365 * config/arm/fa526.md (526_alu_op): Likewise.
28366 * config/arm/fa606te.md (606te_alu_op): Likewise.
28367 * config/arm/fa626te.md (626te_alu_op): Likewise.
28368 * config/arm/fa726te.md (726te_alu_op): Likewise.
28369 * config/arm/fmp626.md (mp626_alu_op): Likewise.
28370 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
28371 alu_sreg, alu_dsp_reg and alus_sreg.
28372 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
28373 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
28374 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
28375 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
28376 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
28377 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
28378 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
28379 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
28380 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
28381 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
28382 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
28383 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
28384 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
28385 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
28386 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
28387 alus_reg to alus_sreg.
28388
28389 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
28390
28391 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
28392 infinity format.
28393
28394 2014-07-17 Richard Biener <rguenther@suse.de>
28395
28396 PR rtl-optimization/61801
28397 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
28398 don't set reg_pending_barrier if it appears in a debug-insn.
28399
28400 2014-07-16 DJ Delorie <dj@redhat.com>
28401
28402 * config/rx/rx.c (rx_option_override): Fix alignment values.
28403 (rx_align_for_label): Likewise.
28404
28405 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
28406
28407 PR target/61737.
28408 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
28409 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
28410 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
28411 functions.
28412 (cris_print_index, cris_print_operand, cris_constant_index_p)
28413 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
28414 (cris_address_cost): Ditto last CONSTANT_P.
28415 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
28416 callers changed. Yield cris_offsettable_symbol for non-PIC
28417 constant symbolic expressions including labels. Yield cris_unspec
28418 for all unspecs.
28419 (cris_expand_pic_call_address): New parameter MARKERP. Set its
28420 target to pic_offset_table_rtx for calls that will likely go
28421 through PLT, const0_rtx when they can't. All callers changed.
28422 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
28423 symbolic expressions to be PICified. Remove second, redundant,
28424 assert on can_create_pseudo_p returning non-zero. Use
28425 replace_equiv_address_nv, not replace_equiv_address, for final
28426 operand update.
28427 * config/cris/cris.md ("movsi"): Move variable t to pattern
28428 toplevel. Adjust assert for new cris_symbol_type member. Use
28429 CONSTANT_P instead of CONSTANT_ADDRESS_P.
28430 ("*movsi_internal") <case 9>: Make check for valid unspec operands
28431 for lapc stricter.
28432 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
28433 ("call", "call_value"): Use second incoming operand as a marker
28434 for pic-offset-table-register being used.
28435 ("*expanded_call_non_v32", "*expanded_call_v32")
28436 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
28437 second incoming operand to CALL, match cris_call_type_marker.
28438 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
28439 ("*expanded_call_side"): Ditto. Fix typo in comment.
28440 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
28441 CONSTANT_P.
28442 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
28443 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
28444 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
28445 users changed. Add members cris_offsettable_symbol and cris_unspec.
28446 (cris_symbol_type): Rename from cris_pic_symbol_type.
28447 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
28448 just CONSTANT_P.
28449 * config/cris/cris-protos.h (cris_symbol_type_of,
28450 cris_expand_pic_call_address): Adjust prototypes.
28451 (cris_legitimate_constant_p): New prototype.
28452
28453 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
28454 an existing tmake_file. Don't add t-slibgcc and t-linux.
28455
28456 2014-07-17 Jason Merrill <jason@redhat.com>
28457
28458 PR c++/61623
28459 * symtab.c (symtab_remove_from_same_comdat_group): Also
28460 set_comdat_group to NULL_TREE.
28461 (verify_symtab): Fix diagnostic.
28462
28463 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
28464
28465 PR target/61662
28466 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
28467
28468 2014-07-16 Dodji Seketeli <dodji@redhat.com>
28469
28470 Support location tracking for built-in macro tokens
28471 * input.h (is_location_from_builtin_token): New function declaration.
28472 * input.c (is_location_from_builtin_token): New function definition.
28473 * toplev.c (general_init): Tell libcpp what the pre-defined
28474 spelling location for built-in tokens is.
28475
28476 2014-07-16 Jakub Jelinek <jakub@redhat.com>
28477
28478 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
28479 on the FUNCTION_DECL.
28480
28481 2014-07-16 Richard Biener <rguenther@suse.de>
28482
28483 PR other/61782
28484 * doc/extend.texi (always_inline): Clarify.
28485
28486 2014-07-15 Eric Christopher <echristo@gmail.com>
28487
28488 * doc/invoke.texi (Link Options): Document -z option.
28489
28490 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
28491
28492 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
28493 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
28494
28495 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
28496
28497 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
28498
28499 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
28500
28501 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
28502 varpool_assemble_decl.
28503 * varpool.c (varpool_assemble_decl): Assert that node->definition is
28504 true.
28505
28506 2014-07-15 Michael Matz <matz@suse.de>
28507
28508 PR rtl-optimization/61772
28509 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
28510
28511 2014-07-15 Richard Biener <rguenther@suse.de>
28512
28513 * opts.c (default_options_table): Disable bit-ccp at -Og.
28514
28515 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
28516
28517 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
28518
28519 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
28520
28521 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
28522 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
28523 call langhook for unknown declaration.
28524 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
28525 * tree.h (DECL_ARGUMENTS): Update.
28526 * print-tree.c (print_node): Update.
28527 * tree-core.h (tree_decl_non_common): Remove arguments.
28528 (tree_function_decl): Add arguments.
28529
28530 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
28531
28532 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
28533
28534 2014-07-14 Richard Biener <rguenther@suse.de>
28535
28536 PR tree-optimization/61779
28537 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
28538 simplifying a condition.
28539
28540 2014-07-14 Richard Biener <rguenther@suse.de>
28541
28542 * builtins.c (c_strlen): Make only_value == 2 really only
28543 affect warning generation.
28544
28545 2014-07-14 Richard Biener <rguenther@suse.de>
28546
28547 PR tree-optimization/61757
28548 PR tree-optimization/61783
28549 PR tree-optimization/61787
28550 * tree-ssa-dom.c (record_equality): Revert canonicalization
28551 change and add comment.
28552 (propagate_rhs_into_lhs): Revert previous fix, removing
28553 loop depth restriction again.
28554
28555 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28556
28557 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
28558 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
28559 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
28560 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
28561 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
28562 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
28563 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
28564
28565 2014-07-14 Richard Biener <rguenther@suse.de>
28566
28567 * cgraph.h (decl_in_symtab_p): Make inline.
28568
28569 2014-07-14 Jakub Jelinek <jakub@redhat.com>
28570
28571 PR middle-end/61294
28572 * doc/invoke.texi (-Wmemset-transposed-args): Document.
28573
28574 PR target/61656
28575 * config/i386/i386.c (classify_argument): Don't merge classes above
28576 number of words.
28577
28578 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
28579
28580 * cgraph.h (symtab_node): Add nonzero_address.
28581 (decl_in_symtab_p): Break out from ...
28582 (symtab_get_node): ... here.
28583 * fold-const.c: Include cgraph.h
28584 (tree_single_nonzero_warnv_p): Use symtab to determine
28585 if symbol is non-zero.
28586 * symtab.c (symtab_node::nonzero_address): New method.
28587
28588 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
28589
28590 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
28591 forgotten in previous commit.
28592
28593 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
28594
28595 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
28596 on builtin types.
28597 * ipa-devirt.c: Include stor-layout.h and intl.h
28598 (odr_subtypes_equivalent_p): New function.
28599 (warn_odr): New function.
28600 (warn_type_mismatch): New function.
28601 (odr_types_equivalent_p): New function.
28602 (add_type_duplicate): Use it.
28603 * common.opt (Wodr): New flag.
28604 * doc/invoke.texi (Wodr): Document new warning.
28605
28606 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
28607
28608 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
28609 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
28610 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
28611 (varpool_get_constructor): Push CTORS_IN timevar.
28612 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
28613
28614 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
28615
28616 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
28617 Remove VOID_FTYPE_PUSHORT.
28618 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
28619 Change code to USHORT_FTYPE_VOID.
28620 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
28621 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
28622 (ix86_atomic_assign_expand_fenv): Update for
28623 __builtin_ia32_fnstsw changes.
28624 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
28625 (fnstsw): Change operand 0 to nonimmediate operand.
28626
28627 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
28628
28629 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
28630 (varpool_get_constructor): New function.
28631 (varpool_ctor_useable_for_folding_p): Break out from ...
28632 (ctor_for_folding): ... here; use varpool_get_constructor.
28633 (varpool_assemble_decl): Likewise.
28634 * lto-streamer.h (struct output_block): Turn cgraph_node
28635 to symbol filed.
28636 (lto_input_variable_constructor): Declare.
28637 * ipa-visibility.c (function_and_variable_visibility): Use
28638 varpool_get_constructor.
28639 * cgraph.h (varpool_get_constructor): Declare.
28640 (varpool_ctor_useable_for_folding_p): New function.
28641 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
28642 parameter; return error_mark_node for non-trivial constructors.
28643 (lto_write_tree_1, DFS_write_tree): Update use of
28644 get_symbol_initial_value.
28645 (output_function): Update initialization of symbol.
28646 (output_constructor): New function.
28647 (copy_function): Rename to ..
28648 (copy_function_or_variable): ... this one; handle vars too.
28649 (lto_output): Output variable sections.
28650 * lto-streamer-in.c (input_constructor): New function.
28651 (lto_read_body): Rename from ...
28652 (lto_read_body_or_constructor): ... this one; handle vars too.
28653 (lto_input_variable_constructor): New function.
28654 * ipa-prop.c (ipa_prop_write_jump_functions,
28655 ipa_prop_write_all_agg_replacement): Update.
28656 * lto-cgraph.c (compute_ltrans_boundary): Use it.
28657 (output_cgraph_opt_summary): Set symbol to NULL.
28658
28659 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
28660
28661 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
28662 non-polymorphic types.
28663 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
28664 * ipa-devirt.c (types_same_for_odr): Do not explode when one
28665 of types is not polymorphic.
28666
28667 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
28668
28669 * lra-constraints.c (remove_inheritance_pseudos): Process
28670 destination pseudo too.
28671
28672 2014-07-11 Rong Xu <xur@google.com>
28673
28674 * gcov-tool.c (gcov_output_files): Fix build error introduced in
28675 commit r212448.
28676
28677 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
28678
28679 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
28680 * config/avr/avr-devices.c (AVR_MCU): Same.
28681 (avr_mcu_types): add text start value to end of device list.
28682 * config/avr/avr-mcus.def: Add text section start for all devices.
28683 (ata5782): Add new avr5 device.
28684 (ata5831): Same.
28685 * config/avr/avr-tables.opt: Regenerate.
28686 * config/avr/avr.h: Add declaration for text section start handler.
28687 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
28688 SPEC functions.
28689 (LINK_SPEC): Include text section start handler to linker spec.
28690 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
28691 pass -Ttext option to linker if the text section start for the device
28692 is not zero.
28693 * config/avr/t-multilib: Regenerate.
28694 * doc/avr-mmcu.texi: Regenerate.
28695
28696 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
28697
28698 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
28699 * config/rs6000/aix52.h (LINK_SPEC): Same.
28700 * config/rs6000/aix53.h (LINK_SPEC): Same.
28701 * config/rs6000/aix61.h (LINK_SPEC): Same.
28702 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
28703
28704 2014-07-11 Roman Gareev <gareevroman@gmail.com>
28705
28706 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
28707 (graphite_verify): New function.
28708 (ivs_params_clear): New function.
28709 (gcc_expression_from_isl_ast_expr_id): New function.
28710 (gcc_expression_from_isl_expr_int): New function.
28711 (binary_op_to_tree): New function.
28712 (ternary_op_to_tree): New function.
28713 (unary_op_to_tree): New function.
28714 (nary_op_to_tree): New function.
28715 (gcc_expression_from_isl_expr_op): New function.
28716 (gcc_expression_from_isl_expression): New function.
28717 (graphite_create_new_loop): New function.
28718 (translate_isl_ast_for_loop): New function.
28719 (get_upper_bound): New function.
28720 (graphite_create_new_loop_guard): New function.
28721 (translate_isl_ast_node_for): New function.
28722 (translate_isl_ast): New function.
28723 (add_parameters_to_ivs_params): New function.
28724 (scop_to_isl_ast): New parameter ip.
28725 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
28726
28727 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
28728
28729 * config/xtensa/predicates.md (call expander): Update for
28730 DECL_SECTION_NAME being string.
28731
28732 2014-07-11 Richard Biener <rguenther@suse.de>
28733
28734 PR middle-end/61473
28735 * builtins.c (fold_builtin_memory_op): Inline memory moves that
28736 can be implemented with a single load followed by a single store.
28737 (c_strlen): Only warn when only_value is not 2.
28738
28739 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
28740
28741 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
28742
28743 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
28744
28745 PR target/61561
28746 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
28747 (*movhi_bytes): Likewise.
28748 (*arm_movqi_insn): Likewise.
28749
28750 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
28751
28752 PR target/56858
28753 * config/alpha/alpha.c: Include tree-pass.h, context.h
28754 and pass_manager.h.
28755 (pass_data_handle_trap_shadows): New pass.
28756 (pass_handle_trap_shadows::gate): New pass gate function.
28757 (make_pass_handle_trap_shadows): New function.
28758 (rest_of_handle_trap_shadows): Ditto.
28759
28760 (alpha_align_insns_1): Rename from alpha_align_insns.
28761 (pass_data_align_insns): New pass.
28762 (pass_align_insns::gate): New pass gate function.
28763 (make_pass_aling_insns): New function.
28764 (rest_of_align_insns): Ditto.
28765 (alpha_align_insns): Ditto.
28766
28767 (alpha_option_override): Declare handle_trap_shadows info
28768 and align_insns_info. Register handle_trap_shadows and align_insns
28769 passes here.
28770 (alpha_reorg): Do not call alpha_trap_shadows and
28771 alpha_align_insn from here.
28772
28773 (alpha_pad_function_end): Do not skip BARRIERs.
28774
28775 2014-07-10 Rong Xu <xur@google.com>
28776
28777 Add gcov-tool: an offline gcda profile processing tool support.
28778 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
28779 (gcov_is_error): Ditto.
28780 (gcov_read_string): Ditto.
28781 (gcov_read_sync): Ditto.
28782 * gcov-io.h: Move counter defines to gcov-counter.def.
28783 * gcov-dump.c (tag_counters): Use gcov-counter.def.
28784 * coverage.c: Ditto.
28785 * gcov-tool.c: Offline gcda profile processing tool.
28786 (unlink_gcda_file): Remove one gcda file.
28787 (unlink_profile_dir): Remove gcda files from the profile path.
28788 (gcov_output_files): Output gcda files to an output dir.
28789 (profile_merge): Merge two profiles in directory.
28790 (print_merge_usage_message): Print merge usage.
28791 (merge_usage): Print merge usage and exit.
28792 (do_merge): Driver for profile merge sub-command.
28793 (profile_rewrite): Rewrite profile.
28794 (print_rewrite_usage_message): Print rewrite usage.
28795 (rewrite_usage): Print rewrite usage and exit.
28796 (do_rewrite): Driver for profile rewrite sub-command.
28797 (print_usage): Print gcov-info usage and exit.
28798 (print_version): Print gcov-info version.
28799 (process_args): Process arguments.
28800 (main): Main routine for gcov-tool.
28801 * Makefile.in: Build and install gcov-tool.
28802 * gcov-counter.def: New file split from gcov-io.h.
28803 * doc/gcc.texi: Include gcov-tool.texi.
28804 * doc/gcov-tool.texi: Document for gcov-tool.
28805
28806 2014-07-10 Richard Biener <rguenther@suse.de>
28807
28808 PR tree-optimization/61757
28809 * tree-ssa-dom.c (loop_depth_of_name): Restore.
28810 (propagate_rhs_into_lhs): Revert part of last change.
28811
28812 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
28813
28814 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
28815 FUNCTION_DECLs.
28816
28817 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
28818
28819 PR middle-end/53590
28820 * function.c (allocate_struct_function): Revert r188667 change.
28821
28822 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
28823
28824 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
28825
28826 * doc/install.texi: Remove links to defunct package providers for
28827 Solaris.
28828
28829 2014-07-09 Tom de Vries <tom@codesourcery.com>
28830
28831 * final.c (get_call_fndecl): Declare.
28832 (self_recursive_call_p): New function.
28833 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
28834
28835 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
28836
28837 * ipa-devirt.c (record_node): Walk through aliases.
28838
28839 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
28840
28841 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
28842
28843 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
28844
28845 Revert:
28846 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
28847
28848 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
28849
28850 * ipa-visibility.c (function_and_variable_visibility): Remove
28851 temporary hack disabling local aliases on AIX.
28852
28853 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
28854
28855 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
28856 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
28857
28858 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
28859
28860 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
28861 * rs6000/rs6000.c: Inline output of .set instruction.
28862 (declare_alias_data): New struct.
28863 (rs6000_declare_alias): New function.
28864 (rs6000_xcoff_declare_function_name): Use it.
28865 (rs6000_xcoff_declare_object_name): New function.
28866 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
28867 (ASM_OUTPUT_DEF): Turn to empty definition.
28868
28869 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
28870
28871 PR bootstrap/61679
28872 * hash-table.h: use hash_table::value_type instead of
28873 Descriptor::value_type in the return types of several methods.
28874
28875 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
28876
28877 * tree-pass.h (pass_data): Remove has_execute member.
28878 * passes.c (execute_one_pass): Don't check pass->has_execute.
28879 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28880 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28881 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28882 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28883 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28884 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
28885 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
28886 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
28887 gimple-low.c, gimple-ssa-isolate-paths.c,
28888 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
28889 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
28890 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
28891 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
28892 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
28893 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
28894 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
28895 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
28896 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
28897 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
28898 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
28899 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
28900 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
28901 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28902 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28903 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28904 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28905 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28906 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28907 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28908 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28909 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28910 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
28911 web.c: Remove initializer for pass_data::has_execute.
28912
28913 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
28914
28915 * graphite-htab.h: Use hash_map instead of hash_table.
28916 * graphite-clast-to-gimple.c: Adjust.
28917 * passes.c: Use hash_map instead of hash_table.
28918 * sese.c: Likewise.
28919 * sese.h: Remove now unused code.
28920
28921 2014-07-08 Sriraman Tallam <tmsriram@google.com>
28922
28923 PR target/61599
28924 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
28925 than zero.
28926
28927 2014-07-08 Jakub Jelinek <jakub@redhat.com>
28928
28929 PR rtl-optimization/61673
28930 * combine.c (simplify_comparison): Test just mode's sign bit
28931 in tmode rather than the sign bit and any bits above it.
28932
28933 2014-07-08 Roman Gareev <gareevroman@gmail.com>
28934
28935 * graphite-isl-ast-to-gimple.c (generate_isl_context):
28936 Add __isl_give to the declaration.
28937 (generate_isl_schedule): Likewise.
28938 (scop_to_isl_ast): Likewise.
28939
28940 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28941
28942 * config/arm/arm.c (cortexa5_extra_costs): New table.
28943 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
28944
28945 2014-07-08 Jakub Jelinek <jakub@redhat.com>
28946
28947 PR tree-optimization/61725
28948 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
28949 range, use range_includes_zerop_p instead of integer_zerop on
28950 vr0->min, only use log2 of max if min is not negative.
28951
28952 2014-07-08 Richard Biener <rguenther@suse.de>
28953
28954 * tree-ssa-dom.h (loop_depth_of_name): Remove.
28955 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
28956 restriction on loop depth difference.
28957 (record_equality): Likewise.
28958 (propagate_rhs_into_lhs): Likewise. Simplify condition.
28959 (loop_depth_of_name): Remove.
28960 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
28961 restriction on loop depth difference.
28962 (init_copy_prop): Likewise.
28963
28964 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
28965
28966 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
28967 parameter.
28968 (walk_aliased_vdefs): Likewise.
28969 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
28970 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
28971 (detect_type_change_from_memory_writes): Check if entry was reached.
28972
28973 2014-07-08 Richard Biener <rguenther@suse.de>
28974
28975 PR tree-optimization/61681
28976 * tree-ssa-structalias.c (find_what_var_points_to): Expand
28977 NONLOCAL inside ESCAPED.
28978
28979 2014-07-08 Richard Biener <rguenther@suse.de>
28980
28981 PR tree-optimization/61680
28982 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28983 Handle properly all read-write dependences with group accesses.
28984
28985 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
28986
28987 PR tree-optimization/61576
28988 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
28989 block containing reduction statement is predecessor of phi basi block.
28990
28991 2014-07-08 Marek Polacek <polacek@redhat.com>
28992
28993 PR c/60226
28994 * fold-const.c (round_up_loc): Change the parameter type.
28995 Remove assert.
28996 * fold-const.h (round_up_loc): Adjust declaration.
28997 * stor-layout.c (finalize_record_size): Check for too large types.
28998
28999 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
29000
29001 * symtab.c: Include calls.h.
29002 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
29003
29004 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
29005
29006 * config/rs6000/rs6000.c (output_vec_const_move): Handle
29007 little-endian code generation.
29008 * config/rs6000/spe.md (spe_evmergehi): Rename to...
29009 (vec_perm00_v2si): ... this. Handle little-endian code generation.
29010 (spe_evmergehilo): Rename to...
29011 (vec_perm01_v2si): ... this. Handle little-endian code generation.
29012 (spe_evmergelo): Rename to...
29013 (vec_perm11_v2si): ... this. Handle little-endian code generation.
29014 (spe_evmergelohi): Rename to...
29015 (vec_perm10_v2si): ... this. Handle little-endian code generation.
29016 (spe_evmergehi, spe_evmergehilo): New expanders.
29017 (spe_evmergelo, spe_evmergelohi): Likewise.
29018 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
29019 (*frob_tf_ti): Likewise.
29020 (*frob_<mode>_di_2): Likewise.
29021 (*frob_tf_di_8_2): Likewise.
29022 (*frob_di_<mode>): Likewise.
29023 (*frob_ti_tf): Likewise.
29024 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
29025 (*frob_ti_<mode>_8_2): Likewise.
29026 (*frob_ti_tf_2): Likewise.
29027 (mov_si<mode>_e500_subreg0): Rename to...
29028 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
29029 endianness only.
29030 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
29031 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
29032 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
29033 the big endianness only.
29034 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
29035 (*mov_si<mode>_e500_subreg0_2): Rename to...
29036 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
29037 big big endianness only.
29038 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
29039 (*mov_si<mode>_e500_subreg4): Rename to...
29040 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
29041 endianness only.
29042 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
29043 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
29044 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
29045 the big endianness only.
29046 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
29047 pattern.
29048 (*mov_si<mode>_e500_subreg4_2): Rename to...
29049 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
29050 endianness only.
29051 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
29052 (*mov_sitf_e500_subreg8): Rename to...
29053 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
29054 endianness only.
29055 (*mov_sitf_e500_subreg8_le): New instruction pattern.
29056 (*mov_sitf_e500_subreg8_2): Rename to...
29057 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
29058 endianness only.
29059 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
29060 (*mov_sitf_e500_subreg12): Rename to...
29061 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
29062 endianness only.
29063 (*mov_sitf_e500_subreg12_le): New instruction pattern.
29064 (*mov_sitf_e500_subreg12_2): Rename to...
29065 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
29066 endianness only.
29067 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
29068
29069 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
29070
29071 * asan.c (instrument_strlen_call): Do not instrument first byte
29072 in strlen if already instrumented.
29073
29074 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29075
29076 * config/arm/arm.opt (mwords-little-endian): Delete.
29077 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
29078 of TARGET_LITTLE_WORDS.
29079 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
29080 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
29081 warning.
29082 * doc/invoke.texi: Remove references to -mwords-little-endian.
29083
29084 2014-07-07 Jakub Jelinek <jakub@redhat.com>
29085
29086 * expmed.c (struct init_expmed_rtl): Change all fields but
29087 pow2 and cint from struct rtx_def to rtx.
29088 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
29089 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
29090 at the end again.
29091
29092 2014-07-06 Marek Polacek <polacek@redhat.com>
29093
29094 PR c/6940
29095 * doc/invoke.texi: Document -Wsizeof-array-argument.
29096
29097 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
29098
29099 * wide-int.h (wide_int_storage): Change declaration from struct
29100 to class.
29101
29102 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
29103
29104 * cgraph.c (cgraph_create_indirect_edge): Update call of
29105 get_polymorphic_call_info.
29106 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
29107 (possible_polymorphic_call_targets): Add parameter call.
29108 (decl_maybe_in_construction_p): New predicate.
29109 (get_polymorphic_call_info): Add parameter call;
29110 use decl_maybe_in_construction_p.
29111 * gimple-fold.c (fold_gimple_assign): Update use of
29112 possible_polymorphic_call_targets.
29113 (gimple_fold_call): Likewise.
29114 * ipa-prop.c: Inlcude calls.h
29115 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
29116 (param_type_may_change_p): New predicate.
29117 (detect_type_change_from_memory_writes): Break out from ...
29118 (detect_type_change): ... this one; use param_type_may_change_p.
29119 (detect_type_change_ssa): Use param_type_may_change_p.
29120 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
29121
29122 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
29123
29124 PR target/49423
29125 * config/arm/arm-protos.h (arm_legitimate_address_p,
29126 arm_is_constant_pool_ref): Add prototypes.
29127 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
29128 (arm_is_constant_pool_ref) New function.
29129 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
29130 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
29131 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
29132 operand. Remove pool_range and neg_pool_range attributes.
29133 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
29134 pool_range and neg_pool_range attributes.
29135 * config/arm/constraints.md (Uh): New constraint.
29136 (Uq): Don't allow constant pool references.
29137
29138 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
29139
29140 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
29141 (move_lo_quad_internal_be_<mode>): Likewise.
29142 (move_lo_quad_<mode>): Convert to define_expand.
29143 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
29144 (aarch64_simd_move_hi_quad_be_<mode>): New.
29145 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
29146 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
29147 (aarch64_combinez_be<mode>): New.
29148 (aarch64_combine<mode>): Convert to define_expand.
29149 (aarch64_combine_internal<mode>): New.
29150 (aarch64_simd_combine<mode>): Remove bogus RTL description.
29151
29152 2014-07-04 Tom de Vries <tom@codesourcery.com>
29153
29154 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
29155 combination of earlyclobber and read/write modifiers.
29156
29157 2014-07-04 Tom de Vries <tom@codesourcery.com>
29158
29159 * config/aarch64/aarch64-simd.md
29160 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
29161
29162 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
29163
29164 PR target/61714
29165 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
29166
29167 2014-07-04 Jakub Jelinek <jakub@redhat.com>
29168
29169 PR middle-end/61654
29170 * cgraphunit.c (expand_thunk): Call free_dominance_info.
29171
29172 PR tree-optimization/61684
29173 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
29174 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
29175
29176 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
29177 Kito Cheng <kito@0xlab.org>
29178 Monk Chiang <sh.chiang04@gmail.com>
29179
29180 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
29181 (nds32_symbol_load_store_p): Move to ...
29182 (nds32_fp_as_gp_check_available): Move to ...
29183 * config/nds32/nds32-fp-as-gp.c: ... here.
29184 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
29185 extern declaration.
29186
29187 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
29188 Kito Cheng <kito@0xlab.org>
29189 Monk Chiang <sh.chiang04@gmail.com>
29190
29191 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
29192 (nds32_expand_store_multiple): Move to ...
29193 (nds32_expand_movmemqi): Move to ...
29194 * config/nds32/nds32-memory-manipulation.c: ... here.
29195
29196 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
29197 Kito Cheng <kito@0xlab.org>
29198 Monk Chiang <sh.chiang04@gmail.com>
29199
29200 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
29201 (nds32_output_casesi_pc_relative): Move to ...
29202 (nds32_output_casesi): Move to ...
29203 (nds32_mem_format): Move to ...
29204 (nds32_output_16bit_store): Move to ...
29205 (nds32_output_16bit_load): Move to ...
29206 (nds32_output_32bit_store): Move to ...
29207 (nds32_output_32bit_load): Move to ...
29208 (nds32_output_32bit_load_s): Move to ...
29209 (nds32_output_stack_push): Move to ...
29210 (nds32_output_stack_pop): Move to ...
29211 * config/nds32/nds32-md-auxiliary.c: ... here.
29212
29213 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
29214 Ling-Hua Tseng <uranus@tinlans.org>
29215
29216 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
29217 the purpose of this file.
29218
29219 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
29220 Kito Cheng <kito@0xlab.org>
29221 Monk Chiang <sh.chiang04@gmail.com>
29222
29223 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
29224 (nds32_address_cost): Move implementation to ...
29225 * config/nds32/nds32-cost.c: ... here.
29226 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
29227 (nds32_address_cost_impl): Declare.
29228
29229 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
29230 Kito Cheng <kito@0xlab.org>
29231 Monk Chiang <sh.chiang04@gmail.com>
29232
29233 * config/nds32/nds32.c
29234 (nds32_consecutive_registers_load_store_p): Move to ...
29235 (nds32_valid_multiple_load_store): Move to ...
29236 (nds32_valid_stack_push_pop): Move to ...
29237 (nds32_can_use_bclr_p): Move to ...
29238 (nds32_can_use_bset_p): Move to ...
29239 (nds32_can_use_btgl_p): Move to ...
29240 (nds32_can_use_bitci_p): Move to ...
29241 * config/nds32/nds32-predicates.c: ... here.
29242
29243 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
29244 Kito Cheng <kito@0xlab.org>
29245 Monk Chiang <sh.chiang04@gmail.com>
29246
29247 * config/nds32/nds32.c
29248 (nds32_expand_builtin_null_ftype_reg): Move to ...
29249 (nds32_expand_builtin_reg_ftype_imm): Move to ...
29250 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
29251 (nds32_init_builtins): Move implementation to ...
29252 (nds32_expand_builtin): Move implementation to ...
29253 * config/nds32/nds32-intrinsic.c: ... here.
29254 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
29255 (nds32_expand_builtin_impl): Declare.
29256
29257 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
29258 Kito Cheng <kito@0xlab.org>
29259 Monk Chiang <sh.chiang04@gmail.com>
29260
29261 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
29262 (nds32_emit_section_tail_template): Move to ...
29263 (nds32_emit_isr_jmptbl_section): Move to ...
29264 (nds32_emit_isr_vector_section): Move to ...
29265 (nds32_emit_isr_reset_conten): Move to ...
29266 (nds32_check_isr_attrs_conflict): Move to ...
29267 (nds32_construct_isr_vectors_information): Move to ...
29268 (nds32_asm_file_start): Move implementation to ...
29269 (nds32_asm_file_end): Move implementation to ...
29270 * config/nds32/nds32-isr.c: ... here.
29271 * config/nds32/nds32-protos.h
29272 (nds32_check_isr_attrs_conflict): Declare.
29273 (nds32_construct_isr_vectors_information): Declare.
29274 (nds32_asm_file_start_for_isr): Declare.
29275 (nds32_asm_file_end_for_isr): Declare.
29276
29277 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
29278 Kito Cheng <kito@0xlab.org>
29279 Monk Chiang <sh.chiang04@gmail.com>
29280
29281 * config.gcc (nds32*): Add new modules to extra_objs.
29282 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
29283 (nds32be-*-*): Likewise.
29284 * config/nds32/nds32-cost.c: New file.
29285 * config/nds32/nds32-fp-as-gp.c: New file.
29286 * config/nds32/nds32-intrinsic.c: New file.
29287 * config/nds32/nds32-isr.c: New file.
29288 * config/nds32/nds32-md-auxiliary.c: New file.
29289 * config/nds32/nds32-memory-manipulation.c: New file.
29290 * config/nds32/nds32-pipelines-auxiliary.c: New file.
29291 * config/nds32/nds32-predicates.c: New file.
29292 * config/nds32/t-nds32: New file.
29293
29294 2014-07-03 Jakub Jelinek <jakub@redhat.com>
29295
29296 PR tree-optimization/61682
29297 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
29298 using cases and when one of the operands is equal to 1.
29299
29300 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
29301
29302 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
29303 ashr<mode>3): Correct mode of operands[2].
29304 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
29305 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
29306 Correct mode of operands[2]. Fix split condition.
29307
29308 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
29309
29310 * arm.md (arch): Add armv6_or_vfpv3.
29311 (arch_enabled): Add test for the above.
29312 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
29313 on VFP9.
29314 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
29315
29316 2014-07-03 Jakub Jelinek <jakub@redhat.com>
29317
29318 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
29319 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
29320 HWI 1 and negate the unsigned value.
29321 * expmed.c (expand_sdiv_pow2): For modes wider than word always
29322 use AND instead of shift.
29323 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
29324
29325 2014-07-03 Marek Polacek <polacek@redhat.com>
29326
29327 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
29328 (-fsanitize=float-divide-by-zero): Move to the table with
29329 -fsanitize=undefined suboptions.
29330 (-fsanitize=float-cast-overflow): Likewise.
29331
29332 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
29333
29334 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
29335 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
29336 endianness.
29337
29338 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29339
29340 * loop-invariant.c (struct invariant): Add a new member: eqno;
29341 (find_identical_invariants): Update eqno;
29342 (create_new_invariant): Init eqno;
29343 (get_inv_cost): Compute comp_cost with eqno;
29344
29345 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
29346
29347 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
29348 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
29349 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
29350 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
29351 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
29352
29353 2014-07-02 Christian Bruel <christian.bruel@st.com>
29354
29355 PR target/29349
29356 PR target/53513
29357 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
29358 (make_preds_opaque): Delete.
29359 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
29360 (commit_mode_sets): New function.
29361 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
29362 Process all modes at once.
29363 * basic-block.h (pre_edge_lcm_avs): Declare.
29364 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
29365 Call clear_aux_for_edges. Fix comments.
29366 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
29367 (pre_edge_rev_lcm): Idem.
29368 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
29369 parameter.
29370 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
29371 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
29372 Idem.
29373 * config/i386/i386.c (x96_emit_mode_set): Idem.
29374 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
29375 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
29376 (fpscr_toggle) Disallow from delay slot.
29377 * target.def (emit_mode_set): Add prev_mode parameter.
29378 * doc/tm.texi: Regenerate.
29379
29380 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29381
29382 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
29383 variable i.
29384
29385 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
29386
29387 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
29388 vtable_pointer_value_to_vtable): Constify.
29389 (contains_polymorphic_type_p): Declare.
29390 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
29391 vtable_pointer_value_to_vtable): Constify.
29392 (contains_polymorphic_type_p): New predicate.
29393 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
29394 polymorphic types.
29395 (ipa_set_ancestor_jf): Likewise.
29396 (detect_type_change): Return false in easy cases.
29397 (compute_complex_assign_jump_func): Require type to contain
29398 polymorphic type.
29399 (compute_known_type_jump_func): Likewise.
29400
29401 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
29402
29403 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
29404 Remove.
29405 (type_in_anonymous_namespace_p): Constify argument.
29406 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
29407 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
29408 (main_odr_variant): New function.
29409 (hash_type_name): Make static; update assert; do not ICE on
29410 non-records.
29411 (types_same_for_odr): Bring here from tree.c; simplify and remove
29412 old structural comparing code that doesn't work for templates.
29413 (odr_hasher::equal): Update assert.
29414 (add_type_duplicate): Return true when bases should be computed;
29415 replace incomplete loader by complete; do not output duplicated
29416 warnings; do not ICE on non-records; set odr_violated flag.
29417 (get_odr_type): Be ready to replace incomplete type by complete
29418 one; work on ODR variants instead of main variants; reorder item
29419 in array so bases have still smaller indexes.
29420 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
29421 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
29422
29423 2014-07-01 Cary Coutant <ccoutant@google.com>
29424
29425 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
29426 lookup.
29427 (resolve_addr_in_expr): When replacing the rtx in a location list
29428 entry, get a new address table entry.
29429 (dwarf2out_finish): Call index_location_lists even if there are no
29430 addr_index_table entries yet.
29431
29432 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
29433
29434 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
29435 change for not being obvious.
29436
29437 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
29438
29439 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
29440 unused argument.
29441
29442 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29443
29444 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
29445 (vcagt_f64): Likewise.
29446 (vcale_f64): Likewise.
29447 (vcaled_f64): Likewise.
29448 (vcales_f32): Likewise.
29449 (vcalt_f64): Likewise.
29450 (vcaltd_f64): Likewise.
29451 (vcalts_f32): Likewise.
29452
29453 2014-07-01 Marek Polacek <polacek@redhat.com>
29454
29455 * doc/invoke.texi: Document -Wint-conversion.
29456
29457 2014-07-01 Marek Polacek <polacek@redhat.com>
29458
29459 PR c/58286
29460 * doc/invoke.texi: Document -Wincompatible-pointer-types.
29461
29462 2014-07-01 Martin Liska <mliska@suse.cz>
29463
29464 IPA REF alias refactoring
29465 * cgraph.h (iterate_direct_aliases): New function.
29466 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
29467 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
29468 FOR_EACH_ALIAS added.
29469 (cgraph_for_node_and_aliases): Likewise.
29470 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
29471 * ipa-inline.c (reset_edge_caches): Likewise.
29472 (update_caller_keys): Likewise.
29473 * trans-mem.c (ipa_tm_execute): Likewise.
29474 *varpool.c (varpool_analyze_node): Likewise.
29475 (varpool_for_node_and_aliases): Likewise.
29476 * ipa-ref.h (first_alias): New function.
29477 (last_alias): Likewise.
29478 (has_aliases_p): Likewise.
29479 * ipa-ref.c (ipa_ref::remove_reference): Removal function
29480 is sensitive to IPA_REF_ALIASes.
29481 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
29482 are put at the beginning of the list.
29483 (symtab_node::iterate_direct_aliases): New function.
29484
29485 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
29486
29487 Revert:
29488 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
29489 type is complete.
29490 (write_ts_type_common_tree_pointers): Do not stream fields not set
29491 for incomplete types; do not stream duplicated fields for variants;
29492 sanity check that variant and type match.
29493 (write_ts_type_non_common_tree_pointers): Likewise.
29494 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
29495 TYPE_SIZE whether type is complete.
29496 (lto_input_ts_type_common_tree_pointers): Do same changes as in
29497 write_ts_type_common_tree_pointers
29498 (lto_input_ts_type_non_common_tree_pointers): Likewise.
29499
29500 2014-06-30 Joseph Myers <joseph@codesourcery.com>
29501
29502 * var-tracking.c (add_stores): Return instead of asserting if old
29503 and new values for conditional store are the same.
29504
29505 2014-06-30 Richard Henderson <rth@redhat.com>
29506
29507 PR rtl-opt/61608
29508 PR target/39284
29509 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
29510 the cfg if there were any changes.
29511 * passes.def: Revert move of peephole2 after reorder_blocks;
29512 move duplicate_computed_gotos before peephole2.
29513
29514 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
29515
29516 * except.c (emit_note_eh_region_end): New helper function.
29517 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
29518 emit EH_REGION_END note.
29519 * jump.c (cleanup_barriers): Do not split a call and its
29520 corresponding CALL_ARG_LOCATION note.
29521
29522 2014-06-30 Jeff Law <law@redhat.com>
29523
29524 PR tree-optimization/61607
29525 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
29526 deeper into the SSA_NAME_VALUE chain.
29527
29528 2014-06-30 Marek Polacek <polacek@redhat.com>
29529
29530 * convert.c (convert_to_integer): Don't instrument conversions if the
29531 function has no_sanitize_undefined attribute.
29532 * ubsan.c: Don't run the ubsan pass if the function has
29533 no_sanitize_undefined attribute.
29534
29535 2014-06-30 Jakub Jelinek <jakub@redhat.com>
29536
29537 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
29538 -fsanitize=undefined suboptions.
29539
29540 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
29541
29542 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
29543 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
29544 against bigendian and adjust indices.
29545
29546 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
29547
29548 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
29549
29550 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
29551
29552 PR target/61633
29553 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
29554 Add alternative; make early clobber. Adjust both split patterns
29555 to use operand 0 as the working register.
29556
29557 2014-06-30 Jakub Jelinek <jakub@redhat.com>
29558
29559 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
29560 as ira_object_id_map might be NULL, or 1.
29561
29562 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29563
29564 * loop-invariant.c (get_inv_cost): Handle register class.
29565 (gain_for_invariant): Check the register pressure of the inv
29566 and its overlapped register class, other than all.
29567
29568 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
29569
29570 * doc/invoke.texi (Optimize Options): Fix descriptions of
29571 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
29572
29573 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
29574
29575 * doc/extend.texi (Function Attributes): Update 'naked' attribute
29576 documentation.
29577
29578 2014-06-29 Tobias Grosser <tobias@grosser.es>
29579
29580 PR bootstrap/61650
29581 * graphite-isl-ast-to-gimple.c: Add missing guards.
29582
29583 2014-06-29 Roman Gareev <gareevroman@gmail.com>
29584
29585 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
29586 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
29587 * flag-types.h: Add new enum fgraphite_generator.
29588 * graphite-isl-ast-to-gimple.c: New.
29589 * graphite-isl-ast-to-gimple.h: New.
29590 * graphite.c (graphite_transform_loops): Add choice of Graphite
29591 code generator, which depends on flag_graphite_code_gen.
29592
29593 2014-06-29 Roman Gareev <gareevroman@gmail.com>
29594
29595 * graphite-dependences.c (subtract_commutative_associative_deps):
29596 Add NULL checking of the following variables: must_raw_no_source,
29597 may_raw_no_source, must_war_no_source, may_war_no_source,
29598 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
29599 must_war, may_war, must_waw, may_waw.
29600
29601 2014-06-29 Roman Gareev <gareevroman@gmail.com>
29602
29603 * graphite-clast-to-gimple.c: gloog is renamed to
29604 graphite_regenerate_ast_cloog. gloog_error is renamed to
29605 graphite_regenerate_error.
29606 * graphite-clast-to-gimple.h: The definition of the struct
29607 bb_pbb_def is moved to graphite-htab.h.
29608 Add inclusion of the hash-table.h.
29609 * graphite-htab.h: The declaration of the function gloog is moved
29610 to graphite-clast-to-gimple.h and renamed to
29611 graphite_regenerate_ast_cloog.
29612 * graphite.c (graphite_transform_loops): gloog is renamed
29613 to graphite_regenerate_ast_cloog.
29614
29615 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
29616
29617 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
29618 type is complete.
29619 (write_ts_type_common_tree_pointers): Do not stream fields not set
29620 for incomplete types; do not stream duplicated fields for variants;
29621 sanity check that variant and type match.
29622 (write_ts_type_non_common_tree_pointers): Likewise.
29623 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
29624 TYPE_SIZE whether type is complete.
29625 (lto_input_ts_type_common_tree_pointers): Do same changes as in
29626 write_ts_type_common_tree_pointers
29627 (lto_input_ts_type_non_common_tree_pointers): Likewise.
29628
29629 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
29630
29631 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
29632
29633 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
29634
29635 * tree-inline.c (remap_type_1): Do not duplicate fields
29636 that are shared in between type and its main variant.
29637
29638 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
29639
29640 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
29641 of the type.
29642 (ipa_set_ancestor_jf) Likewise.
29643 (check_stmt_for_type_change): Check that we work on main variant.
29644 (detect_type_change): Look into main variant.
29645 (compute_known_type_jump_func): Check that main variant has BINFO.
29646
29647 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
29648
29649 * ipa-devirt.c (set_type_binfo): New function.
29650 (add_type_duplicate): Use it.
29651 (get_odr_type): Sanity check that binfos points to main variants.
29652 (get_class_context): Be sure the context's outer_type is main variant.
29653 (contains_type_p): Walk main variant.
29654 (get_polymorphic_call_info_for_decl): Set outer_type to be
29655 main variant.
29656 (get_polymorphic_call_info): Likewise.
29657 (possible_polymorphic_call_targets): Sanity check that we operate
29658 on main variant.
29659
29660 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
29661
29662 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
29663
29664 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29665
29666 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
29667 accidental change due to wide-int branch merge.
29668
29669 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29670
29671 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
29672 compressed debug support.
29673 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
29674 * configure: Regenerate.
29675 * config.in: Regenerate.
29676 * common.opt (compressed_debug_sections): New enum.
29677 (gz, gz=): New options.
29678 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
29679 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
29680 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
29681 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
29682 LINK_COMPRESS_DEBUG_SPEC.
29683 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
29684 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
29685 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
29686 (Debugging Options): Document -gz[=type].
29687
29688 2014-06-27 Martin Jambor <mjambor@suse.cz>
29689
29690 PR ipa/61160
29691 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
29692 args_to_skip, use those from node instead. Copy args_to_skip and
29693 combined_args_to_skip from node to the new thunk.
29694 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
29695 (cgraph_create_virtual_clone): Moved computation of
29696 combined_args_to_skip...
29697 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
29698
29699 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
29700
29701 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
29702 redundant diagnostic machinary.
29703
29704 2014-06-27 Richard Biener <rguenther@suse.de>
29705
29706 * tree-ssa-math-opts.c (bswap_replace): Fix
29707 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
29708
29709 2014-06-27 Martin Liska <mliska@suse.cz>
29710
29711 * gimple.h (gimple_location_safe): New function introduced.
29712 * cgraphunit.c (walk_polymorphic_call_targets): Usage
29713 of gimple_location_safe replaces gimple_location.
29714 (gimple_fold_call): Likewise.
29715 * ipa-devirt.c (ipa_devirt): Likewise.
29716 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
29717 * ipa.c (walk_polymorphic_call_targets): Likewise.
29718 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
29719
29720 2014-06-27 Jakub Jelinek <jakub@redhat.com>
29721
29722 PR tree-optimization/57233
29723 PR tree-optimization/61299
29724 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
29725 functions.
29726 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
29727 would be lowered to scalar shifts, check if corresponding
29728 shifts and vector BIT_IOR_EXPR are supported and don't lower
29729 or lower just to narrower vector type in that case.
29730 * expmed.c (expand_shift_1): Fix up handling of vector
29731 shifts and rotates.
29732
29733 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
29734
29735 PR target/61586
29736 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
29737
29738 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
29739
29740 * doc/invoke.texi (-fsemantic-interposition): Document.
29741 * common.opt (fsemantic-interposition): New flag.
29742 * varasm.c (decl_replaceable_p): Use it.
29743
29744 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29745
29746 PR target/61542
29747 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
29748 extraction other than index 3.
29749
29750 2014-06-26 Teresa Johnson <tejohnson@google.com>
29751
29752 * doc/invoke.texi: Fix typo.
29753 * dumpfile.c: Add support for documented -fdump-* options
29754 optimized/missed/note/optall.
29755
29756 2014-06-26 Martin Jambor <mjambor@suse.cz>
29757
29758 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
29759 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
29760 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
29761 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
29762 * opts.c (default_options_optimization): Set
29763 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
29764 * doc/invoke.texi (allow-load-data-races)
29765 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
29766 (allow-store-data-races): Document the new default.
29767
29768 2014-06-26 Martin Jambor <mjambor@suse.cz>
29769
29770 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
29771 renamed to ipa_impossible_devirt_target. Fix typo.
29772 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
29773 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
29774 ipa_impossible_devirt_target.
29775
29776 2014-06-26 Richard Biener <rguenther@suse.de>
29777
29778 PR tree-optimization/61607
29779 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
29780 explaining why we restrict copies on loop depth.
29781 * tree-ssa-dom.c (cprop_operand): Remove restriction on
29782 on loop depth.
29783 (record_equivalences_from_phis): Instead add it here.
29784
29785 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
29786
29787 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
29788 (LTO_WRAPPER_OBJS): New variable.
29789 (lto-wrapper$(exeext)): Use it.
29790 * collect2.c: Include "collect-utils.h".
29791 (verbose, debug): Remove variables.
29792 (at_file_supplied): No longer static.
29793 (tool_name): New variable.
29794 (do_wait, fork_execute, maybe_unlink): Don't declare.
29795 (tool_cleanup): No longer static.
29796 (notice): Remove function.
29797 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
29798 fork_execute calls.
29799 (collect_wait, do_wait, collect_execute): Remove functions.
29800 (maybe_unlink): No longer static.
29801 * collect2.h (verbose, debug): Don't declare.
29802 (at_file_supplied): Declare.
29803 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
29804 changed.
29805 (collect_execute): Replace with implementation from collect2, plus a
29806 new arg use_atfile. All callers changed.
29807 (collect_wait): Replace with implementation from collect2.
29808 (maybe_unlink_file): Remove function.
29809 (fork_execute): Replace with implementation from collect2, plus a
29810 new arg use_atfile. All callers changed.
29811 (do_wait): Add call to utils_cleanup to the error path.
29812 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
29813 (tool_cleanup): Adjust declarations.
29814 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
29815 * tlink.c: Include "collect-utils.h".
29816 (tlink_execute): New arg use_atfile. All callers changed.
29817 (tlink_init, tlink_execute): Remove declarations.
29818
29819 * collect-utils.c (save_temps): New variable.
29820 (do_wait): Use it instead of debug. Use fatal_error.
29821 * collect-utils.h (save_temps): Declare.
29822 * collect2.c (verbose): Rename from vflag. All uses changed.
29823 (tool_cleanup): New function, copied from collect_atexit.
29824 (collect_atexit, handler): Just call it.
29825 * collect2.h (verbose): Declaration renamed from vflag.
29826 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
29827 debug.
29828
29829 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
29830 (lto-wrapper$(exeext)): Link with collect-utils.o.
29831 * collect-utils.c: New file.
29832 * collect-utils.h: New file.
29833 * lto-wrapper.c: Include "collect-utils.h".
29834 (args_name): Delete variable.
29835 (tool_name): New variable.
29836 (tool_cleanup): New function.
29837 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
29838 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
29839 (fork_execute): Remove functions.
29840
29841 2014-06-26 Nick Clifton <nickc@redhat.com>
29842
29843 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
29844
29845 * doc/extend.texi (Function Attributes): Fix typo in description
29846 of RX vector attribute.
29847
29848 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
29849
29850 * config.gcc (supported_defaults): Error when passing either
29851 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
29852
29853 2014-06-26 Richard Biener <rguenther@suse.de>
29854
29855 * tree-ssa-dom.c (cprop_operand): Remove restriction on
29856 propagating volatile pointers.
29857
29858 2014-06-26 Richard Biener <rguenther@suse.de>
29859
29860 PR tree-optimization/61607
29861 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
29862 loop if we redirected its latch edge.
29863 (thread_block_1): Do not cancel loops prematurely.
29864
29865 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
29866
29867 * toplev.c (backend_init_target): Move init_emit_regs and
29868 init_regs to...
29869 (backend_init) ... here; skip ira_init_once and backend_init_target.
29870 (target_reinit) ... and here; clear
29871 this_target_rtl->lang_dependent_initialized.
29872 (lang_dependent_init_target): Clear
29873 this_target_rtl->lang_dependent_initialized;
29874 break out rtl initialization to ...
29875 (initialize_rtl): ... here; call also backend_init_target
29876 and ira_init_once.
29877 * toplev.h (initialize_rtl): New function.
29878 * function.c: Include toplev.h
29879 (init_function_start): Call initialize_rtl.
29880 * rtl.h (target_rtl): Add target_specific_initialized,
29881 lang_dependent_initialized.
29882
29883 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
29884 Jakub Jelinek <jakub@redhat.com>
29885
29886 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
29887
29888 2014-06-25 Tom de Vries <tom@codesourcery.com>
29889
29890 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
29891
29892 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
29893
29894 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
29895 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
29896 Issue a strict overflow warning if appropriate.
29897
29898 2014-06-25 Martin Liska <mliska@suse.cz>
29899
29900 IPA REF refactoring
29901 * Makefile.in: Removed header file (ipa-ref-inline.h).
29902 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
29903 called.
29904 (cgraph_speculative_call_info): Likewise.
29905 (cgraph_for_node_thunks_and_aliases): Likewise.
29906 (cgraph_for_node_and_aliases): Likewise.
29907 (verify_cgraph_node): Likewise.
29908 * cgraph.h: Batch of IPA REF functions become member functions of
29909 symtab_node: add_reference, maybe_add_reference, clone_references,
29910 clone_referring, clone_reference, find_reference,
29911 remove_stmt_references, remove_all_references,
29912 remove_all_referring, dump_references, dump_referring,
29913 has_alias_p, iterate_reference, iterate_referring.
29914 * cgraphbuild.c (record_reference): New IPA REF function used.
29915 (record_type_list): Likewise.
29916 (record_eh_tables): Likewise.
29917 (mark_address): Likewise.
29918 (mark_load): Likewise.
29919 (mark_store): Likewise.
29920 (pass_build_cgraph_edges): Likewise.
29921 (rebuild_cgraph_edge): Likewise.
29922 (cgraph_rebuild_references): Likewise.
29923 (pass_remove_cgraph_callee_edges): Likewise.
29924 * cgraphclones.c (cgraph_clone_node): Likewise.
29925 (cgraph_create_virtual_clone): Likewise.
29926 (cgraph_materialize_clone): Likewise.
29927 (cgraph_materialize_all_clones): Likewise.
29928 * cgraphunit.c (cgraph_reset_node): Likewise.
29929 (cgraph_reset_node): Likewise.
29930 (analyze_function): Likewise.
29931 (assemble_thunks_and_aliases): Likewise.
29932 (expand_function): Likewise.
29933 * ipa-comdats.c (propagate_comdat_group): Likewise.
29934 (enqueue_references): Likewise.
29935 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
29936 (create_specialized_node): Likewise.
29937 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
29938 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
29939 * ipa-inline.c (reset_edge_caches): Likewise.
29940 (update_caller_keys): Likewise.
29941 (execute): Likewise.
29942 * ipa-prop.c (remove_described_reference): Likewise.
29943 (propagate_controlled_uses): Likewise.
29944 (ipa_edge_duplication_hook): Likewise.
29945 (ipa_modify_call_arguments): Likewise.
29946 * ipa-pure-const.c (propagate_pure_const): Likewise.
29947 * ipa-ref-inline.h: Header file removed, functions moved
29948 to symtab_node class.
29949 * ipa-ref.c (remove_reference): New class member function.
29950 (cannot_lead_to_return): New class member function.
29951 (referring_ref_list): Likewise.
29952 (referred_ref_list): Likewise.
29953 Rest of functions moved to symtab_node class.
29954 * ipa-ref.h: New member functions remove_reference,
29955 cannot_lead_to_return, referring_ref_list, referred_ref_list added
29956 to ipa_ref class.
29957 ipa_ref_list class has new member functions: first_reference,
29958 first_referring, clear, nreferences.
29959 * ipa-reference.c (analyze_function): New IPA REF function used.
29960 (write_node_summary_p): Likewise.
29961 (ipa_reference_write_optimization_summary): Likewise.
29962 * ipa-split.c (split_function): Likewise.
29963 * ipa-utils.c (ipa_reverse_postorder): Likewise.
29964 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
29965 (function_and_variable_visibility): Likewise.
29966 * ipa.c (has_addr_references_p): Likewise.
29967 (process_references): Argument type changed.
29968 (symtab_remove_unreachable_nodes): New IPA REF function used.
29969 (process_references): Likewise.
29970 (set_writeonly_bit): Likewise.
29971 * lto-cgraph.c: Implementation of new symtab_node member functions
29972 that uses new IPA REF functions.
29973 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
29974 function used.
29975 * lto-streamer-out.c (output_symbol_p): Likewise.
29976 * lto-streamer.h (referenced_from_this_partition_p): Argument type
29977 changed.
29978 * symtab.c: Implementation of new IPA REF API.
29979 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
29980 (ipa_tm_create_version): Likewise.
29981 (ipa_tm_execute): Likewise.
29982 * tree-emutls.c (gen_emutls_addr): Likewise.
29983 * tree-inline.c (copy_bb): Likewise.
29984 (delete_unreachable_blocks_update_callgraph): Likewise.
29985 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
29986 (varpool_for_node_and_aliases): Likewise.
29987
29988 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
29989
29990 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
29991
29992 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
29993
29994 PR bootstrap/61598
29995 * fold-const.c (fold_checksum_tree): Use a hash_table of const
29996 tree_node * instead of tree_node *.
29997 (fold): Adjust.
29998 (print_fold_checksum): Likewise.
29999 (fold_check_failed): Likewise.
30000 (debug_fold_checksum): Likewise.
30001 (fold_build1_stat_loc): Likewise.
30002 (fold_build2_stat_loc): Likewise.
30003 (fold_build3_stat_loc): Likewise.
30004 (fold_build_call_array_loc): Likewise.
30005
30006 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
30007
30008 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
30009 implementation with call to...
30010 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
30011 function.
30012 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
30013 Declare.
30014
30015 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
30016
30017 PR tree-optimization/57742
30018 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
30019 after replacing the statement.
30020
30021 2014-06-25 Nick Clifton <nickc@redhat.com>
30022
30023 * config/v850/v850.c (GHS_default_section_names): Change to const
30024 char * type.
30025 (GHS_current_section_names): Likewise.
30026 (v850_insert_attributes): Do not build strings, just assign the
30027 names directly. Change the type of 'chosen_section' to const
30028 char*.
30029 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
30030 directly to the array entry.
30031 * config/v850/v850.h (GHS_default_section_names): Change to const
30032 char * type.
30033 (GHS_current_section_names): Likewise.
30034
30035 2014-06-25 Jakub Jelinek <jakub@redhat.com>
30036
30037 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
30038 (LANG_HOOKS_DECLS): Add it.
30039 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
30040 has correct type.
30041 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
30042 * langhooks.h (struct lang_hooks_for_decls): Add
30043 omp_clause_linear_ctor hook.
30044 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
30045 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
30046 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
30047 combined simd loop use omp_clause_linear_ctor hook.
30048
30049 2014-06-24 Cong Hou <congh@google.com>
30050
30051 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
30052 pattern recognition.
30053 (type_conversion_p): PROMOTION is true if it's a type promotion
30054 conversion, and false otherwise. Return true if the given expression
30055 is a type conversion one.
30056 * tree-vectorizer.h: Adjust the number of patterns.
30057 * tree.def: Add SAD_EXPR.
30058 * optabs.def: Add sad_optab.
30059 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
30060 * expr.c (expand_expr_real_2): Likewise.
30061 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
30062 * gimple.c (get_gimple_rhs_num_ops): Likewise.
30063 * optabs.c (optab_for_tree_code): Likewise.
30064 * tree-cfg.c (estimate_operator_cost): Likewise.
30065 * tree-ssa-operands.c (get_expr_operands): Likewise.
30066 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
30067 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
30068 * doc/generic.texi: Add document for SAD_EXPR.
30069 * doc/md.texi: Add document for ssad and usad.
30070
30071 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
30072
30073 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
30074 qualification in cast.
30075
30076 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
30077
30078 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
30079 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
30080 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
30081 (tree_function_decl): ... here.
30082 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
30083 streaming of vindex to ...
30084 (write_ts_function_decl_tree_pointers): ... here.
30085 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
30086 Do not stream DECL_VINDEX.
30087 (lto_input_ts_function_decl_tree_pointers): Stream it here.
30088
30089 2014-06-24 Catherine Moore <clm@codesourcery.com>
30090 Sandra Loosemore <sandra@codesourcery.com>
30091
30092 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
30093 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
30094 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
30095
30096 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
30097
30098 * doc/invoke.texi (Warning Options): Remove duplicated
30099 -Wmaybe-uninitialized.
30100
30101 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
30102
30103 PR tree-optimization/57742
30104 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
30105 (handle_builtin_malloc, handle_builtin_memset): New functions.
30106 (strlen_optimize_stmt): Call them.
30107 * passes.def: Move strlen after loop+dom but before vrp.
30108
30109 2014-06-24 Jakub Jelinek <jakub@redhat.com>
30110
30111 PR target/61570
30112 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
30113 model family 6 CPU with has_longmode never use a CPU without
30114 64-bit support.
30115
30116 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
30117
30118 PR target/61570
30119 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
30120 the last change.
30121
30122 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
30123
30124 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
30125 * dominance.c (iterate_fix_dominators): Use hash_map instead of
30126 pointer_map.
30127 * hash-map.h: New file.
30128 * ipa-comdats.c: Use hash_map instead of pointer_map.
30129 * ipa.c: Likewise.
30130 * lto-section-out.c: Adjust.
30131 * lto-streamer.h: Replace pointer_map with hash_map.
30132 * symtab.c (verify_symtab): Likewise.
30133 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
30134 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
30135 * tree-streamer.h: Likewise.
30136 * tree-streamer.c: Adjust.
30137 * pointer-set.h: Remove pointer_map.
30138
30139 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
30140
30141 * hash-table.h: Add a template arg to choose between storing values
30142 and storing pointers to values, and then provide partial
30143 specializations for both.
30144 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
30145 should store, not the type values should point to.
30146 * tree-into-ssa.c (var_info_hasher): Likewise.
30147 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
30148 * tree-complex.c: Adjust.
30149 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
30150 table instead of int_tree_map *.
30151 * tree-parloops.c: Adjust.
30152 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
30153 type is being stored.
30154 * tree-vectorizer.c: Adjust.
30155
30156 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
30157
30158 * hash-table.h: Remove a layer of indirection from hash_table so that
30159 it contains the hash table's data instead of a pointer to the data.
30160 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
30161 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
30162 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
30163 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
30164 fold-const.c, gcse.c, ggc-common.c,
30165 gimple-ssa-strength-reduction.c, gimplify.c,
30166 graphite-clast-to-gimple.c, graphite-dependences.c,
30167 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
30168 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
30169 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
30170 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
30171 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
30172 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
30173 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
30174 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
30175 tree-ssa-live.c, tree-ssa-loop-im.c,
30176 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
30177 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
30178 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
30179 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
30180 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
30181 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
30182 vtable-verify.c, vtable-verify.h: Adjust.
30183
30184 2014-06-24 Richard Biener <rguenther@suse.de>
30185
30186 PR tree-optimization/61572
30187 * tree-ssa-sink.c (statement_sink_location): Do not sink
30188 loads from hard registers.
30189
30190 2014-06-24 Jakub Jelinek <jakub@redhat.com>
30191
30192 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
30193 not mentioned in clauses use private clause if the iterator is
30194 declared in #pragma omp for simd, and when adding lastprivate
30195 instead, add it to the outer #pragma omp for too. Diagnose
30196 if the variable is private in outer context. For simd collapse > 1
30197 loops, replace all iterators with temporaries.
30198 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
30199 same even in collapse > 1 loops.
30200
30201 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
30202 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
30203 non-NULL.
30204 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
30205 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
30206 non-NULL.
30207 (gimplify_adjust_omp_clauses): Likewise.
30208 * omp-low.c (lower_rec_simd_input_clauses,
30209 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
30210 safelen the same as safelen(1).
30211 * tree-nested.c (convert_nonlocal_omp_clauses,
30212 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
30213 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
30214 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
30215 Fixup handling of GIMPLE_OMP_TARGET.
30216 (convert_tramp_reference_stmt, convert_gimple_call): Handle
30217 GIMPLE_OMP_TARGET.
30218
30219 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
30220
30221 PR tree-optimization/61554
30222 * tree-ssa-propagate.c: Include "bitmap.h".
30223 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
30224 properly update constructor/destructor.
30225 (substitute_and_fold_dom_walker::before_dom_children):
30226 Remove call to gimple_purge_dead_eh_edges, add bb->index to
30227 need_eh_cleaup instead.
30228 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
30229 need_eh_cleanup.
30230
30231 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
30232
30233 * varpool.c (dump_varpool_node): Dump used_by_single_function.
30234 * tree-pass.h (make_pass_ipa_single_use): New pass.
30235 * cgraph.h (used_by_single_function): New flag.
30236 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
30237 Stream it.
30238 * passes.def (pass_ipa_single_use): Scedule.
30239 * ipa.c (BOTTOM): New macro.
30240 (meet): New function
30241 (propagate_single_user): New function.
30242 (ipa_single_use): New function.
30243 (pass_data_ipa_single_use): New pass.
30244 (pass_ipa_single_use): New pass.
30245 (pass_ipa_single_use::gate): New gate.
30246 (make_pass_ipa_single_use): New function.
30247
30248 2014-06-23 Kai Tietz <ktietz@redhat.com>
30249
30250 PR target/39284
30251 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
30252 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
30253
30254 2014-06-23 Richard Biener <rguenther@suse.de>
30255
30256 * tree-ssa-loop.c (gate_loop): New function.
30257 (pass_tree_loop::gate): Call it.
30258 (pass_data_tree_no_loop, pass_tree_no_loop,
30259 make_pass_tree_no_loop): New.
30260 * tree-vectorizer.c: Include tree-scalar-evolution.c
30261 (pass_slp_vectorize::execute): Initialize loops and SCEV if
30262 required.
30263 (pass_slp_vectorize::clone): New method.
30264 * timevar.def (TV_TREE_NOLOOP): New.
30265 * tree-pass.h (make_pass_tree_no_loop): Declare.
30266 * passes.def (pass_tree_no_loop): New pass group with
30267 SLP vectorizer.
30268
30269 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
30270
30271 PR target/61570
30272 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
30273 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
30274
30275 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
30276
30277 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
30278 "yes" where needed.
30279
30280 2014-06-23 Alan Modra <amodra@gmail.com>
30281
30282 PR bootstrap/61583
30283 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
30284 to zero on debug statements.
30285
30286 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
30287
30288 PR target/60825
30289 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
30290 Ignore third operand if present by marking qualifier_internal.
30291
30292 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
30293
30294 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
30295 vector extension.
30296 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
30297 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
30298 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
30299 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
30300 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
30301 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
30302 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
30303 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
30304 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
30305 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
30306 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
30307 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
30308 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
30309 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
30310 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
30311 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
30312 logic in GCC vector extensions
30313
30314 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
30315 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
30316 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
30317 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
30318 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
30319 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
30320 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
30321 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
30322 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
30323 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
30324
30325 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
30326
30327 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
30328 extensions.
30329
30330 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
30331 (vget_low_s64): Use __GET_LOW macro.
30332 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
30333 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
30334 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
30335 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
30336 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
30337
30338 (vcombine_s64): Use GCC vector extensions; remove cast.
30339 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
30340 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
30341 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
30342 Fix type signature; remove cast.
30343
30344 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
30345
30346 PR target/60825
30347 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
30348 V1DFmode.
30349 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
30350 add V1DFmode
30351 (BUILTIN_VD1): New.
30352 (BUILTIN_VD_RE): Remove.
30353 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
30354 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
30355 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
30356 variant but not df.
30357 (vreinterpretv1df*, vreinterpret*v1df): New.
30358 (vreinterpretdf*, vreinterpret*df): Remove.
30359 * config/aarch64/aarch64-simd.md (aarch64_create,
30360 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
30361 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
30362 (VD1): New.
30363 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
30364 (vcreate_f64): Remove cast, use v1df builtin.
30365 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
30366 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
30367 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
30368 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
30369 vmov_n_f64, vst1_f64): Use gcc vector extensions.
30370 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
30371 add range check using __builtin_aarch64_im_lane_boundsi.
30372 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
30373 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
30374 type signature, use gcc vector extensions.
30375 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
30376 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
30377 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
30378 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
30379 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
30380 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
30381 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
30382 vreinterpret_u64_f64): Use v1df builtin not df.
30383
30384 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
30385
30386 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
30387 vector registers.
30388
30389 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
30390
30391 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
30392 priority directly.
30393
30394 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30395
30396 * loop-invariant.c (pre_check_invariant_p): New function.
30397 (find_invariant_insn): Call pre_check_invariant_p.
30398
30399 2014-06-22 Richard Henderson <rth@redhat.com>
30400
30401 PR target/61565
30402 * compare-elim.c (struct comparison): Add eh_note.
30403 (find_comparison_dom_walker::before_dom_children): Don't eliminate
30404 a redundant comparison in a different EH region. Purge EH edges if
30405 necessary.
30406
30407 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
30408
30409 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
30410 (var_shift): Use it.
30411 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
30412 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
30413 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
30414 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
30415 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
30416 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
30417 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
30418 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
30419 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
30420 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
30421 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
30422 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
30423 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
30424 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
30425 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
30426 *rotldi3_internal15be): Use the new attribute. Merge register and
30427 integer alternatives.
30428
30429 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
30430
30431 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
30432 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
30433 split, *ashrdi3_internal3 and split): Delete, merge into...
30434 (ashr<mode>3): New expander.
30435 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
30436 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
30437
30438 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
30439
30440 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
30441 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
30442 *rotldi3_internal3 and split): Delete, merge into...
30443 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
30444 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
30445 Use "rotlw" extended mnemonic.
30446
30447 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
30448
30449 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
30450 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
30451 and split, *ashldi3_internal3 and split): Delete, merge into...
30452 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
30453 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
30454
30455 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
30456
30457 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
30458 (lshrsi3, two anonymous define_insns and define_splits,
30459 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
30460 *lshrdi3_internal3 and split): Delete, merge into...
30461 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
30462 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
30463
30464 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
30465
30466 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
30467 Remove "O" alternative.
30468
30469 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
30470
30471 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
30472 (mips_move_from_gpr_cost): Likewise.
30473 (mips_register_move_cost): Update accordingly.
30474 (mips_secondary_reload_class): Remove name of in_p.
30475
30476 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
30477
30478 PR target/61503
30479 * config/i386/i386.md (x86_64_shrd, x86_shrd,
30480 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
30481
30482 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30483
30484 * config/nios2/nios2.c: Include "builtins.h".
30485
30486 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
30487
30488 * cgraph.h (tls_model_names): New variable.
30489 * print-tree.c (print_node): Simplify.
30490 * varpool.c (tls_model_names): New variable.
30491 (dump_varpool_node): Output tls model.
30492
30493 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
30494
30495 * ipa-visibility.c (function_and_variable_visibility): Disable
30496 temporarily local aliases for some targets.
30497
30498 2014-06-20 Marek Polacek <polacek@redhat.com>
30499
30500 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
30501 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
30502 into SANITIZE_UNDEFINED.
30503 * doc/invoke.texi: Describe -fsanitize=bounds.
30504 * gimplify.c (gimplify_call_expr): Add gimplification of internal
30505 functions created in the FEs.
30506 * internal-fn.c: Move "internal-fn.h" after "tree.h".
30507 (expand_UBSAN_BOUNDS): New function.
30508 * internal-fn.def (UBSAN_BOUNDS): New internal function.
30509 * internal-fn.h: Don't define internal functions here.
30510 * opts.c (common_handle_option): Add -fsanitize=bounds.
30511 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
30512 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
30513 * tree-core.h: Define internal functions here.
30514 (struct tree_base): Add ifn field.
30515 * tree-pretty-print.c: Include "internal-fn.h".
30516 (dump_generic_node): Handle functions without CALL_EXPR_FN.
30517 * tree.c (get_callee_fndecl): Likewise.
30518 (build_call_expr_internal_loc): New function.
30519 * tree.def (CALL_EXPR): Update description.
30520 * tree.h (CALL_EXPR_IFN): Define.
30521 (build_call_expr_internal_loc): Declare.
30522 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
30523 types.
30524 (ubsan_type_descriptor): Change bool parameter to enum
30525 ubsan_print_style. Adjust the code. Add handling of
30526 UBSAN_PRINT_ARRAY.
30527 (ubsan_expand_bounds_ifn): New function.
30528 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
30529 (ubsan_build_overflow_builtin): Likewise.
30530 (instrument_bool_enum_load): Likewise.
30531 (ubsan_instrument_float_cast): Likewise.
30532 * ubsan.h (enum ubsan_print_style): New enum.
30533 (ubsan_expand_bounds_ifn): Declare.
30534 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
30535
30536 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
30537
30538 * config/rs6000/rs6000.md: Append `DONE' to preparation
30539 statements of `bswap' pattern splitters.
30540
30541 2014-06-20 Tom de Vries <tom@codesourcery.com>
30542
30543 * target.def (call_fusage_contains_non_callee_clobbers): Update
30544 definition.
30545 * doc/tm.texi: Regenerate.
30546
30547 2014-06-20 Yury Gribov <y.gribov@samsung.com>
30548 Max Ostapenko <m.ostapenko@partner.samsung.com>
30549
30550 PR sanitizer/61547
30551 * asan.c (instrument_strlen_call): Fixed instrumentation of
30552 trailing byte.
30553
30554 2014-06-20 Martin Jambor <mjambor@suse.cz>
30555
30556 PR ipa/61540
30557 * ipa-prop.c (impossible_devirt_target): New function.
30558 (try_make_edge_direct_virtual_call): Use it, also instead of
30559 asserting.
30560
30561 2014-06-20 Yury Gribov <y.gribov@samsung.com>
30562 Max Ostapenko <m.ostapenko@partner.samsung.com>
30563
30564 PR sanitizer/61530
30565 * asan.c (build_check_stmt): Add condition.
30566
30567 2014-06-20 Martin Jambor <mjambor@suse.cz>
30568
30569 PR ipa/61211
30570 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
30571 expanded clones.
30572
30573 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30574
30575 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
30576 Update comments.
30577 (VCONQ): Make comment more helpful.
30578 (VCON): Delete.
30579 * config/aarch64/aarch64-simd.md
30580 (aarch64_sqdmulh_lane<mode>):
30581 Use VCOND for operands 2. Update lane checking and flipping logic.
30582 (aarch64_sqrdmulh_lane<mode>): Likewise.
30583 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
30584 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
30585 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
30586 attribute of operand 3 to VCOND.
30587 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
30588 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
30589 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
30590 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
30591 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
30592 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
30593 define_insn.
30594 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
30595 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
30596 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
30597 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
30598 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
30599 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
30600 operand to VCOND. Update lane flipping and bounds checking logic.
30601 (aarch64_sqdmlal2_lane<mode>): Likewise.
30602 (aarch64_sqdmlsl_lane<mode>): Likewise.
30603 (aarch64_sqdmull_lane<mode>): Likewise.
30604 (aarch64_sqdmull2_lane<mode>): Likewise.
30605 (aarch64_sqdmlal_laneq<mode>):
30606 Replace VCON usage with VCONQ.
30607 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
30608 (aarch64_sqdmlal2_laneq<mode>): Emit
30609 aarch64_sqdmlal2_laneq<mode>_internal insn.
30610 Replace VCON with VCONQ.
30611 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
30612 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
30613 (aarch64_sqdmull_laneq<mode>): Emit
30614 aarch64_sqdmull_laneq<mode>_internal insn.
30615 Replace VCON with VCONQ.
30616 (aarch64_sqdmull2_laneq<mode>): Emit
30617 aarch64_sqdmull2_laneq<mode>_internal insn.
30618 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
30619 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
30620 of 3rd argument to int16x4_t.
30621 (vqdmlalh_lane_s16): Likewise.
30622 (vqdmlslh_lane_s16): Likewise.
30623 (vqdmull_high_lane_s16): Likewise.
30624 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
30625 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
30626 (vqdmlsl_lane_s16): Likewise.
30627 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
30628 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
30629 (vqdmlals_lane_s32): Likewise.
30630 (vqdmlsls_lane_s32): Likewise.
30631 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
30632 (vqdmulls_lane_s32): Likewise.
30633 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
30634 (vqdmlsl_lane_s32): Likewise.
30635 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
30636 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
30637 (vqrdmulhh_lane_s16): Likewise.
30638 (vqdmlsl_high_lane_s16): Likewise.
30639 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
30640 (vqdmlsl_high_lane_s32): Likewise.
30641 (vqrdmulhs_lane_s32): Likewise.
30642
30643 2014-06-20 Tom de Vries <tom@codesourcery.com>
30644
30645 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
30646 get_call_reg_set_usage.
30647
30648 2014-06-20 Tom de Vries <tom@codesourcery.com>
30649
30650 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
30651 it contains all call_used_regs.
30652
30653 2014-06-20 Tom de Vries <tom@codesourcery.com>
30654
30655 * final.c (collect_fn_hard_reg_usage): Add and use variable
30656 function_used_regs.
30657
30658 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
30659
30660 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
30661 (set_init_priority, get_init_priority, set_fini_priority,
30662 get_fini_priority): New methods.
30663 * tree.c (init_priority_for_decl): Remove.
30664 (init_ttree): Do not initialize init priority.
30665 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
30666 (decl_priority_info): Remove.
30667 (decl_init_priority_insert): Rewrite.
30668 (decl_fini_priority_insert): Rewrite.
30669 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
30670 tree_priority_map_marked_p): Remove.
30671 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
30672 * lto-streamer-out.c (hash_tree): Do not hash priorities.
30673 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
30674 not output priorities.
30675 (pack_ts_function_decl_value_fields): Likewise.
30676 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
30677 not input priorities.
30678 (unpack_ts_function_decl_value_fields): Likewise.
30679 * symtab.c (symbol_priority_map): Declare.
30680 (init_priority_hash): Declare.
30681 (symtab_unregister_node): Unregister from priority hash, too.
30682 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
30683 New methods.
30684 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
30685 (symbol_priority_info): New function.
30686 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
30687 New methods.
30688 * tree-core.h (tree_priority_map): Remove.
30689
30690 2014-06-20 Jakub Jelinek <jakub@redhat.com>
30691
30692 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
30693 0xff to uint64_t before shifting it up.
30694
30695 2014-06-20 Julian Brown <julian@codesourcery.com>
30696 Chung-Lin Tang <cltang@codesourcery.com>
30697
30698 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
30699 TARGET_THUMB1_ONLY. Add comments.
30700
30701 2014-06-19 Tom de Vries <tom@codesourcery.com>
30702
30703 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
30704 return type to void.
30705 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
30706
30707 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30708
30709 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
30710 as "move", from depends_on.
30711
30712 2014-06-19 Terry Guo <terry.guo@arm.com>
30713
30714 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
30715 stage.
30716
30717 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
30718
30719 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
30720 Remove cr5.
30721 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
30722
30723 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
30724
30725 PR target/61550
30726 * config/sh/sh.c (prepare_move_operands): Don't process TLS
30727 addresses here if reload in progress or completed.
30728
30729 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
30730
30731 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
30732 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
30733 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
30734 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
30735 (mips_register_priority): New function that implements the target
30736 hook TARGET_REGISTER_PRIORITY.
30737 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
30738 (mips_lra_p): Likewise for TARGET_LRA_P.
30739 (TARGET_REGISTER_PRIORITY): Define macro.
30740 (TARGET_SPILL_CLASS): Likewise.
30741 (TARGET_LRA_P): Likewise.
30742 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
30743 classes.
30744 (REG_CLASS_NAMES): Likewise.
30745 (REG_CLASS_CONTENTS): Likewise.
30746 (BASE_REG_CLASS): Use M16_SP_REGS.
30747 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
30748 New set attribute to enable alternatives depending on the register
30749 allocator used.
30750 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
30751 (*lea64): Disable pattern for MIPS16.
30752 * config/mips/mips.opt (mlra): New option.
30753
30754 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
30755
30756 * lra-constraints.c (base_to_reg): New function.
30757 (process_address): Use new function.
30758
30759 2014-06-18 Tom de Vries <tom@codesourcery.com>
30760
30761 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
30762 * config/aarch64/aarch64.c
30763 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
30764 (aarch64_emit_call_insn): New function.
30765 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
30766 of emit_call_insn.
30767 * config/aarch64/aarch64.md (define_expand "call_internal")
30768 (define_expand "call_value_internal", define_expand "sibcall_internal")
30769 (define_expand "sibcall_value_internal"): New.
30770 (define_expand "call", define_expand "call_value")
30771 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
30772 expand variant and aarch64_emit_call_insn.
30773
30774 2014-06-18 Radovan Obradovic <robradovic@mips.com>
30775 Tom de Vries <tom@codesourcery.com>
30776
30777 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
30778 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
30779 Redefine to true.
30780 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
30781 clobbers to CALL_INSN_FUNCTION_USAGE.
30782 (define_expand "sibcall_internal")
30783 (define_expand "sibcall_value_internal"): New.
30784 (define_expand "call", define_expand "call_value"): Add argument to
30785 arm_emit_call_insn.
30786 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
30787 (define_expand "sibcall_value"): Use sibcall_value_internal and
30788 arm_emit_call_insn.
30789
30790 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30791
30792 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
30793
30794 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30795
30796 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
30797 __udivmoddi4.
30798
30799 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30800
30801 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
30802 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
30803 annotations. Fix DWARF information.
30804
30805 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30806
30807 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
30808 __udivmoddi4, and fixups for negative operands.
30809
30810 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30811
30812 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
30813
30814 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30815
30816 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
30817 to __udivmoddi4.
30818
30819 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30820
30821 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
30822 manipulation.
30823
30824 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30825
30826 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
30827 describing register usage on function entry and exit.
30828
30829 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30830
30831 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
30832 (__aeabi_ldivmod): Fix whitespace.
30833
30834 2014-06-18 Andreas Schwab <schwab@suse.de>
30835
30836 * doc/md.texi (Standard Names): Use @itemx for grouped items.
30837 Remove blank line after @item.
30838
30839 2014-06-18 Richard Henderson <rth@redhat.com>
30840
30841 PR target/61545
30842 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
30843
30844 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
30845
30846 * config/arm/arm.c (neon_vector_mem_operand): Allow register
30847 POST_MODIFY for neon loads and stores.
30848 (arm_print_operand): Output post-index register for neon loads and
30849 stores.
30850
30851 2014-06-18 Richard Biener <rguenther@suse.de>
30852
30853 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
30854
30855 2014-06-18 Richard Biener <rguenther@suse.de>
30856
30857 * tree-pass.h (make_pass_dce_loop): Remove.
30858 * passes.def: Replace pass_dce_loop with pass_dce.
30859 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
30860 changed free niter estimates and reset the scev cache.
30861 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
30862 make_pass_dce_loop): Remove.
30863 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
30864 (fini_copy_prop): Return whether something changed. Always
30865 let substitute_and_fold perform DCE and free niter estimates
30866 and reset the scev cache if so.
30867 (execute_copy_prop): If sth changed schedule cleanup-cfg.
30868 (pass_data_copy_prop): Do not unconditionally schedule
30869 cleanup-cfg or update-ssa.
30870
30871 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
30872
30873 PR tree-optimization/61518
30874 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
30875 reduction var is used in reduction stmt or phi-function only.
30876
30877 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30878
30879 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
30880
30881 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
30882
30883 PR tree-optimization/61517
30884 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
30885 whose rhs's first tree is the source expression instead of the
30886 expression itself.
30887 (find_bswap_or_nop): Likewise.
30888 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
30889 gimple stmt whose rhs's first tree is the source. In the memory source
30890 case, move the stmt to be replaced close to one of the original load to
30891 avoid the problem of a store between the load and the stmt's original
30892 location.
30893 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
30894 signature.
30895
30896 2014-06-18 Andreas Schwab <schwab@suse.de>
30897
30898 PR rtl-optimization/54555
30899 * postreload.c (move2add_use_add2_insn): Substitute
30900 STRICT_LOW_PART only if it is cheaper.
30901
30902 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
30903
30904 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
30905 Do not use unspec as call operand. Use memory_operand instead of
30906 memory_nox32_operand and add "m" operand constraint. Disable
30907 pattern for TARGET_X32.
30908 (*sibcall_pop_memory): Ditto.
30909 (*sibcall_value_memory): Ditto.
30910 (*sibcall_value_pop_memory): Ditto.
30911 (sibcall peepholes): Merge SImode and DImode patterns using
30912 W mode iterator. Use memory_operand instead of memory_nox32_operand.
30913 Disable pattern for TARGET_X32. Check if eliminated register is
30914 really dead after call insn. Generate call RTX without unspec operand.
30915 (sibcall_value peepholes): Ditto.
30916 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
30917 instead of memory_nox32_operand. Check if eliminated register is
30918 really dead after call insn. Generate call RTX without unspec operand.
30919 (sibcall_value_pop peepholes): Ditto.
30920 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
30921
30922 2014-06-18 Terry Guo <terry.guo@arm.com>
30923
30924 PR target/61544
30925 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
30926 reach the head.
30927
30928 2014-06-18 Olivier Hainque <hainque@adacore.com>
30929
30930 * tree-core.h (tree_block): Add an "end_locus" field, allowing
30931 memorization of the end of block source location.
30932 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
30933 * gimplify.c (gimplify_bind_expr): Propagate the block start and
30934 end source location info we have on the block entry/exit code we
30935 generate.
30936
30937 2014-06-18 Richard Biener <rguenther@suse.de>
30938
30939 * common.opt (fssa-phiopt): New option.
30940 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
30941 but not with -Og.
30942 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
30943 * doc/invoke.texi (-fssa-phiopt): Document.
30944
30945 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30946
30947 * genattrtab.c (n_bypassed): New variable.
30948 (process_bypasses): Initialise n_bypassed.
30949 Count number of bypassed reservations.
30950 (make_automaton_attrs): Allocate space for bypassed reservations
30951 rather than number of bypasses.
30952
30953 2014-06-18 Richard Biener <rguenther@suse.de>
30954
30955 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
30956 we propagated anything.
30957 (substitute_and_fold_dom_walker::before_dom_children): Something
30958 changed if we propagated into PHI arguments.
30959 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
30960 we removed a stmt.
30961
30962 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
30963
30964 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
30965 vector case.
30966 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
30967 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
30968 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
30969 Introduces alternative way of loads group permutaions.
30970 (vect_transform_grouped_load): Try alternative way of permutations.
30971
30972 2014-06-18 Jakub Jelinek <jakub@redhat.com>
30973
30974 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
30975 changed in ORT_TARGET region, don't jump to do_outer.
30976 (struct gimplify_adjust_omp_clauses_data): New type.
30977 (gimplify_adjust_omp_clauses_1): Adjust for data being
30978 a struct gimplify_adjust_omp_clauses_data pointer instead
30979 of tree *. Pass pre_p as a new argument to
30980 lang_hooks.decls.omp_finish_clause hook.
30981 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
30982 splay_tree_foreach to pass both list_p and pre_p.
30983 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
30984 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
30985 gimplify_adjust_omp_clauses callers.
30986 * langhooks.c (lhd_omp_finish_clause): New function.
30987 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
30988 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
30989 * langhooks.h (struct lang_hooks_for_decls): Add a new
30990 gimple_seq * argument to omp_finish_clause hook.
30991 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
30992 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
30993 (scan_omp_parallel, lower_omp_for): When adding
30994 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
30995 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
30996 * tree-nested.c (convert_nonlocal_omp_clauses,
30997 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
30998 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
30999
31000 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
31001
31002 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
31003 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
31004
31005 2014-06-17 Xinliang David Li <davidxl@google.com>
31006
31007 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
31008 * passes.c (pass_init_dump_file): Do not set initialize
31009 flag to false unconditionally.
31010
31011 2014-06-17 Richard Biener <rguenther@suse.de>
31012
31013 * genopinit.c (main): Use vec<>::qsort method.
31014 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
31015 Likewise.
31016 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
31017
31018 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
31019
31020 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
31021 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
31022 (mips_move_to_gpr_cost): Remove ST_REGS case.
31023 (mips_move_from_gpr_cost): Likewise.
31024 (mips_register_move_cost): Likewise.
31025 (mips_secondary_reload_class): Likewise.
31026
31027 2014-06-17 Richard Biener <rguenther@suse.de>
31028
31029 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
31030 (pass_all_optimizations): Move 3rd copy-prop pass from after
31031 fre to before ifcombine/phiopt.
31032
31033 2014-06-17 Richard Biener <rguenther@suse.de>
31034
31035 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
31036 and allow all blocks to be forwarders.
31037
31038 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
31039
31040 PR target/61483
31041 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
31042 variable 'size'; calculate 'size' right in the front; use
31043 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
31044 pcum->aapcs_stack_words.
31045
31046 2014-06-17 Nick Clifton <nickc@redhat.com>
31047
31048 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
31049 (umulhi3, mulsidi3, umulsidi3): Likewise.
31050
31051 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
31052
31053 PR middle-end/61508
31054 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
31055 check for section name.
31056
31057 2014-06-17 Richard Biener <rguenther@suse.de>
31058
31059 * tree-ssa-propagate.c: Include domwalk.h.
31060 (substitute_and_fold): Outline main worker into a domwalker ...
31061 (substitute_and_fold_dom_walker::before_dom_children): ... here.
31062 Schedule stmts we can fully propagate for removal. Remove
31063 poor-mans DCE.
31064 (substitute_and_fold): Apply a dominator walk to perform
31065 substitution. Process stmts scheduled for removal here.
31066
31067 2014-06-17 Richard Biener <rguenther@suse.de>
31068
31069 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
31070 of PHI node moving.
31071
31072 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
31073
31074 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
31075 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
31076 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
31077 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
31078 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
31079 TARGET_HARD_FLOAT.
31080 (get_fpscr) : Likewise.
31081
31082 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
31083
31084 PR rtl-optimization/61325
31085 * lra-constraints.c (valid_address_p): Add forward declaration.
31086 (simplify_operand_subreg): Check address validity before and after
31087 alter_reg of memory subreg.
31088
31089 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
31090
31091 * config/i386/i386.c (decide_alg): Correctly handle
31092 maximum size of stringop algorithm.
31093
31094 2014-06-16 Yury Gribov <y.gribov@samsung.com>
31095
31096 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
31097
31098 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
31099
31100 PR rtl-optimization/61522
31101 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
31102
31103 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
31104
31105 Revert:
31106 * symtab.c (symtab_node::reset_section): New method.
31107 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
31108 for localization.
31109 * cgraph.h (reset_section): Declare.
31110 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
31111 do not consider comdat locals.
31112 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
31113 for new symbol.
31114 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
31115 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
31116 reset sections of symbols dragged out of the comdats.
31117 (function_and_variable_visibility): Reset sections of
31118 localized symbols.
31119
31120 2014-06-16 Richard Biener <rguenther@suse.de>
31121
31122 PR tree-optimization/61482
31123 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
31124 [-INF(OVF), +INF(OVF)] range.
31125
31126 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
31127
31128 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
31129 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
31130 handling 32-bit multiplication.
31131
31132 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
31133
31134 PR middle-end/61430
31135 * lra-lives.c (process_bb_lives): Skip creating copy during
31136 insn scan when src/dest has constrained to same regno.
31137
31138 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
31139
31140 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
31141 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
31142
31143 2014-06-16 Yury Gribov <y.gribov@samsung.com>
31144
31145 * asan.c (check_func): New function.
31146 (maybe_create_ssa_name): Likewise.
31147 (build_check_stmt_with_calls): Likewise.
31148 (use_calls_p): Likewise.
31149 (report_error_func): Change interface.
31150 (build_check_stmt): Allow non-integer lengths; add support
31151 for new parameter.
31152 (asan_instrument): Likewise.
31153 (instrument_mem_region_access): Moved code to build_check_stmt.
31154 (instrument_derefs): Likewise.
31155 (instrument_strlen_call): Likewise.
31156 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
31157 * doc/invoke.texi: Describe new parameter.
31158 * params.def: Define new parameter.
31159 * params.h: Likewise.
31160 * sanitizer.def: Describe new builtins.
31161
31162 2014-06-16 Richard Biener <rguenther@suse.de>
31163
31164 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
31165 Make all defs available at the end.
31166 (eliminate): If we remove a PHI node schedule cfg-cleanup.
31167
31168 2014-06-18 Jakub Jelinek <jakub@redhat.com>
31169
31170 PR plugins/45078
31171 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
31172
31173 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
31174
31175 PR bootstrap/61516
31176 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
31177 initialization. Replace remaining use of uid.
31178
31179 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
31180
31181 * c-family/c-common.c (handle_tls_model_attribute): Use
31182 set_decl_tls_model.
31183 * c-family/c-common.c (handle_tls_model_attribute): Use
31184 set_decl_tls_model.
31185 * cgraph.h (struct varpool_node): Add tls_model.
31186 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
31187 * tree.h (DECL_TLS_MODEL): Update.
31188 (DECL_THREAD_LOCAL_P): Check that variable is static.
31189 (decl_tls_model): Declare.
31190 (set_decl_tls_model): Declare.
31191 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
31192 set symbol prorperties.
31193 (get_emutls_init_templ_addr): Cleanup.
31194 (new_emutls_decl): Update.
31195 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
31196 (lto_input_varpool_node): Likewise.
31197 * lto-streamer-out.c (hash_tree): Likewise.
31198 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
31199 not stream DECL_TLS_MODEL.
31200 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
31201 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
31202
31203 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
31204
31205 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
31206
31207 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
31208
31209 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
31210 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
31211 lists.
31212 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
31213 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
31214 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
31215 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
31216 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
31217 (df_get_artificial_defs, df_get_artificial_uses)
31218 (df_single_def, df_single_use): Update accordingly.
31219 (df_refs_chain_dump): Take the first element in a linked list as
31220 parameter, rather than a pointer to an array of pointers.
31221 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
31222 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
31223 (df_chain_create_bb_process_use): Likewise.
31224 (df_md_bb_local_compute_process_def): Likewise.
31225 * fwprop.c (process_defs, process_uses): Likewise.
31226 (register_active_defs, update_uses): Likewise.
31227 (forward_propagate_asm): Update for new df_ref linking.
31228 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
31229 (df_null_ref_rec, df_null_mw_rec): Likewise.
31230 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
31231 explicitly.
31232 (df_scan_free_bb_info): Remove check for null artificial_defs.
31233 (df_install_ref_incremental): Adjust for new df_ref linking.
31234 Use a single-element insertion rather than a full sort.
31235 (df_ref_chain_delete_du_chain): Take the first element
31236 in a linked list as parameter, rather than a pointer to an array of
31237 pointers.
31238 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
31239 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
31240 (df_insn_info_delete): Remove check for null defs and call to
31241 df_scan_free_mws_vec.
31242 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
31243 null rather than df_null_*_rec.
31244 (df_insn_rescan_debug_internal): Likewise, and update null
31245 checks in the same way. Remove check for null defs.
31246 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
31247 Move a single element rather doing a full sort.
31248 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
31249 linking.
31250 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
31251 Initialize df_ref and df_mw_hardreg lists to null rather than
31252 df_null_*_rec.
31253 (df_ref_compare): Take df_refs as parameter, transferring the
31254 old interface to...
31255 (df_ref_ptr_compare): ...this new function.
31256 (df_sort_and_compress_refs): Update accordingly.
31257 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
31258 old interface to...
31259 (df_mw_ptr_compare): ...this new function.
31260 (df_sort_and_compress_mws): Update accordingly.
31261 (df_install_refs, df_install_mws): Return a linked list rather than
31262 an array of pointers.
31263 (df_refs_add_to_chains): Assert that old lists are empty rather
31264 than freeing them.
31265 (df_insn_refs_verify): Don't handle null defs speciailly.
31266 * web.c (union_match_dups): Update for new df_ref linking.
31267
31268 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
31269
31270 * df.h (df_ref_create, df_ref_remove): Delete.
31271 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
31272 (df_ref_remove): Likewise.
31273
31274 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
31275
31276 * df.h (df_single_def, df_single_use): New functions.
31277 * ira.c (find_moveable_pseudos): Use them.
31278
31279 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
31280
31281 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
31282 * df-problems.c (df_note_bb_compute): Use it.
31283 * regstat.c (regstat_bb_compute_ri): Likewise.
31284
31285 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
31286
31287 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
31288 * cse.c (cse_extended_basic_block): Use them.
31289 * dce.c (mark_artificial_use): Likewise.
31290 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
31291 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
31292 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
31293 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
31294 (df_simulate_initialize_backwards): Likewise.
31295 (df_simulate_finalize_backwards): Likewise.
31296 (df_simulate_initialize_forwards): Likewise.
31297 (df_md_simulate_artificial_defs_at_top): Likewise.
31298 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
31299 * regrename.c (init_rename_info): Likewise.
31300 * regstat.c (regstat_bb_compute_ri): Likewise.
31301 (regstat_bb_compute_calls_crossed): Likewise.
31302
31303 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
31304
31305 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
31306 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
31307 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
31308 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
31309 * combine.c (create_log_links): Likewise.
31310 * compare-elim.c (find_flags_uses_in_insn): Likewise.
31311 (try_eliminate_compare): Likewise.
31312 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
31313 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
31314 (remove_reg_equal_equiv_notes_for_defs): Likewise.
31315 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
31316 (word_dce_process_block, dce_process_block): Likewise.
31317 * ddg.c (def_has_ccmode_p): Likewise.
31318 * df-core.c (df_bb_regno_first_def_find): Likewise.
31319 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
31320 * df-problems.c (df_rd_simulate_one_insn): Likewise.
31321 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
31322 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
31323 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
31324 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
31325 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
31326 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
31327 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
31328 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
31329 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
31330 * fwprop.c (local_ref_killed_between_p): Likewise.
31331 (all_uses_available_at, free_load_extend): Likewise.
31332 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
31333 * hw-doloop.c (scan_loop): Likewise.
31334 * ifcvt.c (dead_or_predicable): Likewise.
31335 * init-regs.c (initialize_uninitialized_regs): Likewise.
31336 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
31337 (process_bb_node_lives): Likewise.
31338 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
31339 (find_moveable_pseudos): Likewise.
31340 * loop-invariant.c (check_dependencies, record_uses): Likewise.
31341 * recog.c (peep2_find_free_register): Likewise.
31342 * ree.c (get_defs): Likewise.
31343 * regstat.c (regstat_bb_compute_ri): Likewise.
31344 (regstat_bb_compute_calls_crossed): Likewise.
31345 * sched-deps.c (find_inc, find_mem): Likewise.
31346 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
31347 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
31348 * shrink-wrap.c (requires_stack_frame_p): Likewise.
31349 (prepare_shrink_wrap): Likewise.
31350 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
31351 * web.c (union_defs, pass_web::execute): Likewise.
31352 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
31353 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
31354
31355 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
31356
31357 * lra-assign.c (assign_by_spills): Add code to assign vector regs
31358 to inheritance pseudos.
31359 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
31360
31361 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
31362
31363 PR target/61415
31364 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
31365 (BU_MISC_2): Rename to ...
31366 (BU_LDBL128_2): ... this.
31367 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
31368 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
31369 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
31370 RS6000_BTM_LDBL128.
31371 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
31372 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
31373 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
31374 (unpacktf_1): Likewise.
31375 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
31376 (__builtin_longdouble_dw1): Likewise.
31377 * doc/sourcebuild.texi (longdouble128): Document.
31378
31379 2014-06-13 Jeff Law <law@redhat.com>
31380
31381 PR rtl-optimization/61094
31382 PR rtl-optimization/61446
31383 * ree.c (combine_reaching_defs): Get the mode for the copy from
31384 the extension insn rather than the defining insn.
31385
31386 2014-06-13 Dehao Chen <dehao@google.com>
31387
31388 * dwarf2out.c (add_linkage_name): Emit more linkage name.
31389
31390 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
31391
31392 * doc/install.texi (--enable-linker-plugin-configure-flags)
31393 (--enable-linker-plugin-flags): Document new flags.
31394
31395 2014-06-13 Martin Jambor <mjambor@suse.cz>
31396
31397 PR ipa/61186
31398 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
31399 cache_token if returning early.
31400
31401 2014-06-13 Nick Clifton <nickc@redhat.com>
31402
31403 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
31404 requested alignment is active.
31405 (LABEL_ALIGN): Likewise.
31406 (LOOP_ALIGN): Likewise.
31407
31408 2014-06-13 Richard Biener <rguenther@suse.de>
31409
31410 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
31411 Rewrite to propagate the VN result into all uses where
31412 possible and to remove stmts becoming dead because of that.
31413 (eliminate): Generalize stmt removal handling, remove in
31414 reverse dominator order to support proper debug stmt
31415 generation. Update stmts before removing stmts.
31416 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
31417
31418 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
31419
31420 PR tree-optimization/61375
31421 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
31422 symbolic number cannot be represented in an uint64_t.
31423 (find_bswap_or_nop_1): Likewise.
31424
31425 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
31426
31427 * symtab.c (symtab_node::reset_section): New method.
31428 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
31429 for localization.
31430 * cgraph.h (reset_section): Declare.
31431 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
31432 do not consider comdat locals.
31433 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
31434 for new symbol.
31435 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
31436 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
31437 reset sections of symbols dragged out of the comdats.
31438 (function_and_variable_visibility): Reset sections of
31439 localized symbols.
31440
31441 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
31442
31443 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
31444 to use symtab and decl_binds_to_current_def_p
31445 * tree-vectorizer.c (increase_alignment): Increase alignment
31446 of alias target, too.
31447
31448 2014-06-12 Jakub Jelinek <jakub@redhat.com>
31449
31450 PR middle-end/61486
31451 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
31452 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
31453 if outer combined construct is distribute.
31454 (gimplify_omp_for): For OMP_DISTRIBUTE set
31455 gimplify_omp_ctxp->distribute.
31456 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
31457 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
31458 mapping into decl map.
31459
31460 2014-06-12 Jason Merrill <jason@redhat.com>
31461
31462 * common.opt (fabi-version): Change default to 0.
31463
31464 2014-06-12 Jason Merrill <jason@redhat.com>
31465
31466 * toplev.c (process_options): Reject -fabi-version=1.
31467
31468 2014-06-12 Jeff Law <law@redhat.com>
31469
31470 PR tree-optimization/61009
31471 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
31472 value when we stop processing a block due to problematic PHIs.
31473
31474 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
31475
31476 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
31477 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
31478 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
31479 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
31480 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
31481 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
31482 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
31483 are not in the spec.
31484
31485 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
31486
31487 PR target/59843
31488 * config/aarch64/aarch64-modes.def: Add V1DFmode.
31489 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
31490 Support V1DFmode.
31491
31492 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
31493
31494 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
31495
31496 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
31497
31498 PR target/61443
31499 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
31500 loading from address spaces.
31501
31502 2014-06-12 Martin Liska <mliska@suse.cz>
31503
31504 PR ipa/61462
31505 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
31506 statement is reachable.
31507
31508 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
31509
31510 * symtab.c (section_hash): New hash.
31511 (symtab_unregister_node): Clear section before freeing.
31512 (hash_section_hash_entry): New haser.
31513 (eq_sections): New function.
31514 (symtab_node::set_section_for_node): New method.
31515 (set_section_1): Update.
31516 (symtab_node::set_section): Take string instead of tree as parameter.
31517 (symtab_resolve_alias): Update.
31518 * cgraph.h (section_hash_entry_d): New structure.
31519 (section_hash_entry): New typedef.
31520 (cgraph_node): Change comdat_group_ to x_comdat_group,
31521 change section_ to x_section and turn into section_hash_entry;
31522 update accestors; put set_section_for_node offline.
31523 * tree.c (decl_section_name): Turn into string.
31524 (set_decl_section_name): Change parameter to be string.
31525 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
31526 * sdbout.c (sdbout_one_type): Update.
31527 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
31528 * varasm.c (IN_NAMED_SECTION, get_named_section,
31529 resolve_unique_section, hot_function_section, get_named_text_section,
31530 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
31531 make_decl_rtl, default_unique_section): Update.
31532 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
31533 (c6x_elf_unique_section): Update.
31534 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
31535 * config/pa/pa.c (pa_function_section): Update.
31536 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
31537 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
31538 * config/arc/arc.c (arc_in_small_data_p): Update.
31539 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
31540 * config/mcore/mcore.c (mcore_unique_section): Update.
31541 * config/mips/mips.c (mips16_build_function_stub): Update.
31542 (mips16_build_call_stub): Update.
31543 (mips_function_rodata_section): Update.
31544 (mips_in_small_data_p): Update.
31545 * config/score/score.c (score_in_small_data_p): Update.
31546 * config/rx/rx.c (rx_in_small_data): Update.
31547 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
31548 (rs6000_xcoff_asm_named_section): Update.
31549 (rs6000_xcoff_unique_section): Update.
31550 * config/frv/frv.c (frv_string_begins_with): Update.
31551 (frv_in_small_data_p): Update.
31552 * config/v850/v850.c (v850_encode_data_area): Update.
31553 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
31554 (bfin_handle_l1_data_attribute): Update.
31555 (bfin_handle_l2_attribute): Update.
31556 * config/mep/mep.c (mep_unique_section): Update.
31557 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
31558 Update.
31559 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
31560 (h8300_handle_tiny_data_attribute): Update.
31561 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
31562 (m32r_in_small_data_p): Update.
31563 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
31564 * config/i386/i386.c (ix86_in_large_data_p): Update.
31565 * config/i386/winnt.c (i386_pe_unique_section): Update.
31566 * config/darwin.c (darwin_function_section): Update.
31567 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
31568 * tree-emutls.c (get_emutls_init_templ_addr): Update.
31569 (new_emutls_decl): Update.
31570 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
31571 input_varpool_node): Update.
31572 (ead_string_cst): Turn to ...
31573 (read_string): ... this one.
31574 * dwarf2out.c (secname_for_decl): Update.
31575 * asan.c (asan_protect_global): Update.
31576
31577 2014-06-11 DJ Delorie <dj@redhat.com>
31578
31579 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
31580 cache lines.
31581 * config/rx/rx.c (rx_option_override): Likewise.
31582 (rx_align_for_label): Likewise.
31583
31584 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
31585
31586 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
31587
31588 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
31589 prototype.
31590
31591 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
31592
31593 * common.md: New file.
31594 * doc/md.texi: Update description of generic, machine-independent
31595 constraints.
31596 * config/s390/constraints.md (e): Delete.
31597 * Makefile.in (md_file): Include common.md.
31598 * config/m32c/t-m32c (md_file): Likewise.
31599 * genpreds.c (general_mem): New array.
31600 (generic_constraint_letters): Remove constraints now defined by
31601 common.md.
31602 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
31603 Allow the first character to be '<' or '>' as well.
31604 * genoutput.c (general_mem): New array.
31605 (indep_constraints): Remove constraints now defined by common.md.
31606 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
31607 Remove special handling of 'm'.
31608 * ira-costs.c (record_reg_classes): Remove special handling of
31609 constraints now defined by common.md.
31610 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
31611 * ira-lives.c (single_reg_class): Likewise.
31612 (ira_implicitly_set_insn_hard_regs): Likewise.
31613 * lra-constraints.c (reg_class_from_constraints): Likewise.
31614 (process_alt_operands, process_address, curr_insn_transform): Likewise.
31615 * postreload.c (reload_cse_simplify_operands): Likewise.
31616 * reload.c (push_secondary_reload, scratch_reload_class)
31617 (find_reloads, alternative_allows_const_pool_ref): Likewise.
31618 * reload1.c (maybe_fix_stack_asms): Likewise.
31619 * targhooks.c (default_secondary_reload): Likewise.
31620 * stmt.c (parse_output_constraint): Likewise.
31621 * recog.c (preprocess_constraints): Likewise.
31622 (constrain_operands, peep2_find_free_register): Likewise.
31623 (asm_operand_ok): Likewise, but add a comment saying why 'o'
31624 must be handled specially.
31625
31626 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
31627
31628 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
31629 * genpreds.c (have_const_dbl_constraints): Delete.
31630 (add_constraint): Don't set it.
31631 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
31632 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
31633 constraints using the lookup_constraint logic.
31634 * ira-lives.c (single_reg_class): Likewise.
31635 * ira.c (ira_setup_alts): Likewise.
31636 * lra-constraints.c (process_alt_operands): Likewise.
31637 * recog.c (asm_operand_ok, constrain_operands): Likewise.
31638 * reload.c (find_reloads): Likewise.
31639
31640 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
31641
31642 * genpreds.c (const_int_start, const_int_end): New variables.
31643 (choose_enum_order): Output CONST_INT constraints before memory
31644 constraints.
31645 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
31646 Add CT_CONST_INT.
31647 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
31648 * ira.c (ira_setup_alts): Likewise.
31649 * lra-constraints.c (process_alt_operands): Likewise.
31650 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
31651 * reload.c (find_reloads): Likewise.
31652
31653 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
31654
31655 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
31656 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
31657 * recog.c (preprocess_constraints): Update accordingly.
31658
31659 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
31660
31661 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
31662 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
31663 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
31664 * genpreds.c (print_type_tree): New function.
31665 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
31666 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
31667 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
31668 Write out enum constraint_type and get_constraint_type.
31669 * lra-constraints.c (satisfies_memory_constraint_p): Take a
31670 constraint_num rather than a constraint string.
31671 (satisfies_address_constraint_p): Likewise.
31672 (reg_class_from_constraints): Avoid old constraint macros.
31673 (process_alt_operands, process_address_1): Likewise.
31674 (curr_insn_transform): Likewise.
31675 * ira-costs.c (record_reg_classes): Likewise.
31676 (record_operand_costs): Likewise.
31677 * ira-lives.c (single_reg_class): Likewise.
31678 (ira_implicitly_set_insn_hard_regs): Likewise.
31679 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
31680 * postreload.c (reload_cse_simplify_operands): Likewise.
31681 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
31682 (constrain_operands, peep2_find_free_register): Likewise.
31683 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
31684 (find_reloads, alternative_allows_const_pool_ref): Likewise.
31685 * reload1.c (maybe_fix_stack_asms): Likewise.
31686 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
31687 * targhooks.c (default_secondary_reload): Likewise.
31688 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
31689 to EXTRA_CONSTRAINT_STR.
31690 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
31691
31692 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
31693
31694 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
31695 (write_constraint_satisfied_p_array): ...this new function.
31696 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
31697 an array.
31698 (write_insn_preds_c): Update accordingly.
31699
31700 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
31701
31702 * genpreds.c (write_lookup_constraint): Rename to...
31703 (write_lookup_constraint_1): ...this.
31704 (write_lookup_constraint_array): New function.
31705 (write_tm_preds_h): Define lookup_constraint as an inline function
31706 that uses write_lookup_constraint_array where possible.
31707 (write_insn_preds_c): Update for the changes above.
31708
31709 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
31710
31711 * doc/md.texi (regclass_for_constraint): Rename to...
31712 (reg_class_for_constraint): ...this.
31713 * genpreds.c (num_constraints, enum_order, register_start)
31714 (register_end, satisfied_start, memory_start, memory_end)
31715 (address_start, address_end): New variables.
31716 (add_constraint): Count the number of constraints.
31717 (choose_enum_order): New function.
31718 (write_enum_constraint_num): Iterate over enum_order.
31719 (write_regclass_for_constraint): Rename to...
31720 (write_reg_class_for_constraint_1): ...this and update output
31721 accordingly.
31722 (write_constraint_satisfied_p): Rename to...
31723 (write_constraint_satisfied_p_1): ...this and update output
31724 accordingly. Do nothing if all extra constraints are register
31725 constraints.
31726 (write_insn_extra_memory_constraint): Delete.
31727 (write_insn_extra_address_constraint): Delete.
31728 (write_range_function): New function.
31729 (write_tm_preds_h): Define constraint_satisfied_p and
31730 reg_class_for_constraint as inline functions that do a range check
31731 before calling the out-of-line function. Use write_range_function
31732 to implement insn_extra_{register,memory,address}_constraint,
31733 the first of which is new.
31734 (write_insn_preds_c): Update after above changes to write_* functions.
31735 (main): Call choose_enum_order.
31736
31737 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
31738
31739 PR tree-optimization/61306
31740 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
31741 expression instead of its size.
31742 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
31743 false to prevent optimization when the result is unpredictable due to
31744 arithmetic right shift of signed type with highest byte is set.
31745 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
31746 (init_symbolic_number): Likewise.
31747 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
31748 when the result is unpredictable due to sign extension.
31749
31750 2014-06-11 Terry Guo <terry.guo@arm.com>
31751
31752 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
31753 (*thumb1_addsi3): Ditto.
31754 (*thumb_subdi3): Ditto.
31755 (thumb1_subsi3_insn): Ditto.
31756 (*thumb_mulsi3): Ditto.
31757 (*thumb_mulsi3_v6): Ditto.
31758 (*thumb1_andsi3_insn): Ditto.
31759 (thumb1_bicsi3): Ditto.
31760 (*thumb1_iorsi3_insn): Ditto.
31761 (*thumb1_xorsi3_insn): Ditto.
31762 (*thumb1_ashlsi3): Ditto.
31763 (*thumb1_ashrsi3): Ditto.
31764 (*thumb1_lshrsi3): Ditto.
31765 (*thumb1_rotrsi3): Ditto.
31766 (*thumb1_negdi2): Ditto.
31767 (*thumb1_negsi2): Ditto.
31768 (*thumb1_abssi2): Ditto.
31769 (*thumb1_neg_abssi2): Ditto.
31770 (*thumb1_one_cmplsi2): Ditto.
31771 (*thumb1_zero_extendhisi2): Ditto.
31772 (*thumb1_zero_extendqisi2): Ditto.
31773 (*thumb1_zero_extendqisi2_v6): Ditto.
31774 (thumb1_extendhisi2): Ditto.
31775 (thumb1_extendqisi2): Ditto.
31776 (*thumb1_movdi_insn): Ditto.
31777 (*thumb1_movsi_insn): Ditto.
31778 (*thumb1_movhi_insn): Ditto.
31779 (thumb_movhi_clobber): Ditto.
31780 (*thumb1_movqi_insn): Ditto.
31781 (*thumb1_movhf): Ditto.
31782 (*thumb1_movsf_insn): Ditto.
31783 (*thumb_movdf_insn): Ditto.
31784 (movmem12b): Ditto.
31785 (movmem8b): Ditto.
31786 (cbranchqi4): Ditto.
31787 (cbranchsi4_insn): Ditto.
31788 (cbranchsi4_scratch): Ditto.
31789 (*negated_cbranchsi4): Ditto.
31790 (*tbit_cbranch): Ditto.
31791 (*tlobits_cbranch): Ditto.
31792 (*tstsi3_cbranch): Ditto.
31793 (*cbranchne_decr1): Ditto.
31794 (*addsi3_cbranch): Ditto.
31795 (*addsi3_cbranch_scratch): Ditto.
31796 (*thumb_cmpdi_zero): Ditto.
31797 (cstoresi_eq0_thumb1): Ditto.
31798 (cstoresi_ne0_thumb1): Ditto.
31799 (*cstoresi_eq0_thumb1_insn): Ditto.
31800 (*cstoresi_ne0_thumb1_insn): Ditto.
31801 (cstoresi_nltu_thumb1): Ditto.
31802 (cstoresi_ltu_thumb1): Ditto.
31803 (thumb1_addsi3_addgeu): Ditto.
31804 (*thumb_jump): Ditto.
31805 (*call_reg_thumb1_v5): Ditto.
31806 (*call_reg_thumb1): Ditto.
31807 (*call_value_reg_thumb1_v5): Ditto.
31808 (*call_value_reg_thumb1): Ditto.
31809 (*call_insn): Ditto.
31810 (*call_value_insn): Ditto.
31811 (thumb1_casesi_internal_pic): Ditto.
31812 (thumb1_casesi_dispatch): Ditto.
31813 (*thumb1_indirect_jump): Ditto.
31814 (prologue_thumb1_interwork): Ditto.
31815 (*epilogue_insns): Ditto.
31816 (consttable_1): Ditto.
31817 (consttable_2): Ditto.
31818 (tablejump): Ditto.
31819 (*thumb1_tablejump): Ditto.
31820 (thumb_eh_return): Ditto.
31821 (define_peephole2): Two of them are thumb1 only and got moved into
31822 new file thumb1.md.
31823 (define_split): Six of them are thumb1 only and got moved into new
31824 file thumb1.md.
31825 * config/arm/thumb1.md: New file comprised of above thumb1 only
31826 patterns.
31827
31828 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31829
31830 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
31831 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
31832 dependencies.
31833 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
31834 (aarch64_crc_builtin_datum): New struct.
31835 (aarch64_crc_builtin_data): New.
31836 (aarch64_init_crc32_builtins): New function.
31837 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
31838 (aarch64_crc32_expand_builtin): New.
31839 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
31840 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
31841 __ARM_FEATURE_CRC32 when appropriate.
31842 (TARGET_CRC32): Define.
31843 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
31844 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
31845 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
31846 (aarch64_<crc_variant>): New pattern.
31847 * config/aarch64/arm_acle.h: New file.
31848 * config/aarch64/iterators.md (CRC): New int iterator.
31849 (crc_variant, crc_mode): New int attributes.
31850 * doc/aarch64-acle-intrinsics.texi: New file.
31851 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
31852 Include aarch64-acle-intrinsics.texi.
31853
31854 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
31855
31856 * tree-vect-data-refs.c (vect_grouped_store_supported): New
31857 check for stores group of length 3.
31858 (vect_permute_store_chain): New permutations for stores group of
31859 length 3.
31860 * tree-vect-stmts.c (vect_model_store_cost): Change cost
31861 of vec_perm_shuffle for the new permutations.
31862
31863 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
31864
31865 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
31866 table rewriting temporarily on targets not supporting ONE_ONLY.
31867
31868 2014-06-11 Richard Biener <rguenther@suse.de>
31869
31870 PR middle-end/61437
31871 Revert
31872 2014-06-04 Richard Biener <rguenther@suse.de>
31873
31874 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
31875 TREE_PUBLIC and DECL_EXTERNAL decls.
31876
31877 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
31878
31879 * varasm.c (set_implicit_section): New function.
31880 (resolve_unique_section): Use it to set implicit section
31881 for aliases, too.
31882 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
31883 (default_function_section): Likewise.
31884 (decl_binds_to_current_def_p): Constify argument.
31885 * varasm.h (decl_binds_to_current_def_p): Update prototype.
31886 * asan.c (asan_protect_global): Use
31887 symtab_get_node (decl)->implicit_section.
31888 * symtab.c (dump_symtab_base): Dump implicit sections.
31889 (verify_symtab_base): Verify sanity of sectoins and comdats.
31890 (symtab_resolve_alias): Alias share the section of its target.
31891 (set_section_1): New function.
31892 (symtab_node::set_section): Move here, recurse to aliases.
31893 (verify_symtab): Check for duplicated symtab lists.
31894 * tree-core.h (implicit_section_name_p): Remove.
31895 * tree-vect-data-refs.c: Include varasm.h.
31896 (vect_can_force_dr_alignment_p): Fix conditional on when
31897 decl bints to current definition; use
31898 symtab_get_node (decl)->implicit_section.
31899 * cgraph.c (cgraph_make_node_local_1): Fix section set.
31900 * cgraph.h (struct symtab_node): Add implicit_section.
31901 (set_section): Rename to ...
31902 (set_section_for_node): ... this one.
31903 (set_section): Declare.
31904 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
31905 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
31906 input_overwrite_node, input_varpool_node): Stream implicit_section.
31907 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
31908 removal; it will fail in LTO.
31909
31910 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31911
31912 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
31913 Change second alternative type to f_mcr.
31914 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
31915 and 12th alternatives' types to f_mcr and f_mrc.
31916 (*movdi_aarch64): Same for 12th and 13th alternatives.
31917 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
31918 (aarch64_movtilow_tilow): Change type to fmov.
31919
31920 2014-06-10 Jiong Wang <jiong.wang@arm.com>
31921
31922 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
31923 (aarch64_save_or_restore_callee_save_registers): Fix layout.
31924
31925 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31926
31927 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
31928 New expander.
31929 (aarch64_sqrdmulh_lane<mode>): Likewise.
31930 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
31931 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
31932 (aarch64_sqdmulh_laneq<mode>): New expander.
31933 (aarch64_sqrdmulh_laneq<mode>): Likewise.
31934 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
31935 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
31936 (aarch64_sqdmulh_lane<mode>): New expander.
31937 (aarch64_sqrdmulh_lane<mode>): Likewise.
31938 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
31939 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
31940 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
31941 (aarch64_sqdmlal_laneq<mode>): Likewise.
31942 (aarch64_sqdmlsl_lane<mode>): Likewise.
31943 (aarch64_sqdmlsl_laneq<mode>): Likewise.
31944 (aarch64_sqdmlal2_lane<mode>): Likewise.
31945 (aarch64_sqdmlal2_laneq<mode>): Likewise.
31946 (aarch64_sqdmlsl2_lane<mode>): Likewise.
31947 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
31948 (aarch64_sqdmull_lane<mode>): Likewise.
31949 (aarch64_sqdmull_laneq<mode>): Likewise.
31950 (aarch64_sqdmull2_lane<mode>): Likewise.
31951 (aarch64_sqdmull2_laneq<mode>): Likewise.
31952
31953 2014-06-10 Richard Biener <rguenther@suse.de>
31954
31955 PR tree-optimization/61438
31956 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
31957 (eliminate_dom_walker::before_dom_children): Only try to inhibit
31958 insertion of IVs if running PRE.
31959 (eliminate): Adjust.
31960 (pass_pre::execute): Likewise.
31961 (pass_fre::execute): Likewise.
31962
31963 2014-06-10 Richard Biener <rguenther@suse.de>
31964
31965 PR middle-end/61456
31966 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
31967 Do not use the main variant for the type comparison.
31968 (ncr_compar): Likewise.
31969 (nonoverlapping_component_refs_p): Likewise.
31970
31971 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
31972
31973 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
31974 REG_CFA_RESTORE mode.
31975
31976 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
31977
31978 * config/i386/i386.c (expand_vec_perm_pblendv): New.
31979 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
31980 expand_vec_perm_pblendv.
31981
31982 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31983
31984 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
31985 available.
31986 Simplify description of __crc32d and __crc32cd intrinsics.
31987 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
31988 availability.
31989
31990 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
31991
31992 PR lto/61334
31993 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
31994 * config.in: Regenerate.
31995 * configure: Likewise.
31996
31997 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
31998
31999 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
32000 and public vars.
32001 (intersect_static_var_sets): Remove.
32002 (propagate): Do not prune local statics.
32003
32004 2014-06-10 Jakub Jelinek <jakub@redhat.com>
32005
32006 PR fortran/60928
32007 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
32008 Set lastprivate_firstprivate even if omp_private_outer_ref
32009 langhook returns true.
32010 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
32011 langhook, call unshare_expr on new_var and call
32012 build_outer_var_ref to get the last argument.
32013
32014 2014-06-10 Marek Polacek <polacek@redhat.com>
32015
32016 PR c/60988
32017 * doc/extend.texi: Add cindex for transparent_union.
32018
32019 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
32020
32021 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
32022 init_symbolic_number ().
32023
32024 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
32025
32026 PR middle-end/61141
32027 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
32028 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
32029 (verify_rtl_sharing): Likewise.
32030
32031 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
32032
32033 PR c++/54442
32034 * tree.c (build_qualified_type): Use a canonical type for
32035 TYPE_CANONICAL.
32036
32037 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32038
32039 * config/arm/arm-modes.def: Remove XFmode.
32040
32041 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
32042
32043 PR target/61062
32044 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
32045 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
32046 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
32047 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
32048 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
32049 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
32050 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
32051 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
32052 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
32053
32054 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
32055
32056 * tree-core.h (tree_decl_with_vis): Remove section_name.
32057
32058 2014-06-09 Kito Cheng <kito@0xlab.org>
32059
32060 * ira.c (ira): Don't call init_caller_save if LRA enabled
32061 since LRA use its own infrastructure to handle that.
32062
32063 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
32064
32065 * symtab.c (dump_symtab_base): Update dumping.
32066 (symtab_make_decl_local): Clear only DECL_COMDAT.
32067 * tree-vect-data-refs.c (Check that variable is static before
32068 tampering with sections.
32069 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
32070 (cgraph_create_virtual_clone): Likewise.
32071 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
32072 (decl_section_name, set_decl_section_name): New accessors.
32073 (find_decls_types_r): Do not walk section name
32074 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
32075 (decl_comdat_group, decl_comdat_group_id): Constify.
32076 (decl_section_name, set_decl_section_name): Update.
32077 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
32078 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
32079 (cgraph_make_node_local_1): Clear section and comdat group.
32080 * cgraph.h (set_comdat_group): Sanity check.
32081 (get_section, set_section): New.
32082 * ipa-comdats.c (ipa_comdats): Use get_section.
32083 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
32084 * lto-streamer-out.c: Do not follow section names.
32085 * c-family/c-common.c (handle_section_attribute): Update.
32086 * lto-cgraph.c (lto_output_node): Output section.
32087 (lto_output_varpool_node): Likewise.
32088 (read_comdat_group): Rename to ...
32089 (read_identifier): ... this one.
32090 (read_string_cst): New function.
32091 (input_node, input_varpool_node): Input section names.
32092 * tree-emutls.c (get_emutls_init_templ_addr): Update.
32093 (new_emutls_decl): Update.
32094 (secname_for_decl): Check section names only of static vars.
32095 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
32096 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
32097 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
32098 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
32099 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
32100 * config/mcore/mcore.c (mcore_unique_section): Likewise.
32101 * config/mips/mips.c (mips16_build_function_stub): Likewise.
32102 * config/v850/v850.c (v850_insert_attributes): Likewise.
32103 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
32104 Likewise.
32105 (h8300_handle_tiny_data_attribute): Likewise.
32106 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
32107 (bfin_handle_l2_attribute): Likewise.
32108
32109 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
32110
32111 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
32112 remove static initializer.
32113
32114 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
32115
32116 * varasm.c (use_blocks_for_decl_p): Check symbol table
32117 instead of alias attribute.
32118 (place_block_symbol): Recurse on aliases.
32119
32120 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
32121
32122 * ipa-visibility.c: Include varasm.h
32123 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
32124
32125 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
32126
32127 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
32128 outputting aliases.
32129
32130 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
32131
32132 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
32133 from test_insn into GGC space escape via SET_SRC.
32134
32135 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
32136
32137 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
32138 call statement, if any.
32139 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
32140 statements, if any. Tidy up.
32141
32142 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
32143
32144 PR target/61431
32145 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
32146 iterators, VSX_D that handles 64-bit types, and VSX_LE that
32147 handles swapping the two 64-bit double words on little endian
32148 systems. Include V1TImode and optionally TImode in VSX_LE so that
32149 these types are properly swapped. Change all of the insns and
32150 splits that do the 64-bit swaps to use VSX_LE.
32151 (vsx_le_perm_load_<mode>): Likewise.
32152 (vsx_le_perm_store_<mode>): Likewise.
32153 (splitters for little endian memory operations): Likewise.
32154 (vsx_xxpermdi2_le_<mode>): Likewise.
32155 (vsx_lxvd2x2_le_<mode>): Likewise.
32156 (vsx_stxvd2x2_le_<mode>): Likewise.
32157
32158 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
32159
32160 PR target/61423
32161 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
32162 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
32163 and corresponding splitters. Zero extend general register
32164 or memory input operand to XMM temporary. Enable for
32165 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
32166 (floatunssi<mode>2): Update expander predicate.
32167
32168 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
32169
32170 PR rtl-optimization/61325
32171 * lra-constraints.c (process_address_1): Check scale equal to one
32172 to prevent transformation: base + scale * index => base + new_reg.
32173
32174 2014-06-06 Richard Biener <rguenther@suse.de>
32175
32176 PR tree-optimization/59299
32177 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
32178 a def operand.
32179 (nearest_common_dominator_of_uses): Likewise.
32180 (statement_sink_location): Adjust. Support sinking loads.
32181
32182 2014-06-06 Martin Jambor <mjambor@suse.cz>
32183
32184 * ipa-prop.c (get_place_in_agg_contents_list): New function.
32185 (build_agg_jump_func_from_list): Likewise.
32186 (determine_known_aggregate_parts): Renamed to
32187 determine_locally_known_aggregate_parts. Moved some functionality
32188 to the two functions above, removed bound checks.
32189
32190 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
32191
32192 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
32193 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
32194 (aarch64_progress_pointer): Likewise.
32195 (aarch64_copy_one_part_and_move_pointers): Likewise.
32196 (aarch64_expand_movmen): Likewise.
32197 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
32198 * config/aarch64/aarch64.md (movmem<mode>): New.
32199
32200 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
32201
32202 * targhooks.c (default_add_stmt_cost): Call target specific
32203 hook instead of default one.
32204
32205 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
32206
32207 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
32208 endianness instead of host endianness.
32209 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
32210 comments.
32211
32212 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
32213
32214 PR debug/53927
32215 * function.c (instantiate_decls): Process the saved static chain.
32216 (expand_function_start): If not optimizing, save the static chain
32217 onto the stack.
32218 * tree-nested.c (convert_all_function_calls): Always create the static
32219 chain for nested functions if not optimizing.
32220
32221 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
32222
32223 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
32224
32225 2014-06-06 Richard Biener <rguenther@suse.de>
32226
32227 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
32228 (construct_init_block): Likewise.
32229 (construct_exit_block): Likewise.
32230 (pass_expand::execute): Likewise.
32231 * graphite.c (graphite_transforms): Replace check for current_loops
32232 with a check for > 1 loops.
32233 (pass_graphite_transforms::execute): Adjust.
32234 * ipa-split.c (split_function): Remove check for current_loops.
32235 * omp-low.c (expand_parallel_call): Likewise.
32236 (expand_omp_for_init_counts): Likewise.
32237 (extract_omp_for_update_vars): Likewise.
32238 (expand_omp_for_generic): Likewise.
32239 (expand_omp_sections): Likewise.
32240 (expand_omp_target): Likewise.
32241 * tracer.c (tail_duplicate): Likewise.
32242 (pass_tracer::execute): Likewise.
32243 * trans-mem.c (expand_transaction): Likewise.
32244 * tree-complex.c (expand_complex_div_wide): Likewise.
32245 * tree-eh.c (lower_resx): Likewise.
32246 (cleanup_empty_eh_merge_phis): Likewise.
32247 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
32248 current_loops with a check for > 1 loops.
32249 (pass_predcom::execute): Adjust.
32250 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
32251 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
32252 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
32253 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
32254 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
32255 * tree-switch-conversion.c (process_switch): Likewise.
32256 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
32257 * tree-vrp.c (vrp_visit_phi_node): Likewise.
32258 (execute_vrp): Likewise.
32259 * ubsan.c (ubsan_expand_null_ifn): Likewise.
32260
32261 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
32262
32263 * rtl.h (insn_location): Declare.
32264 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
32265 with UNKNOWN_LOCATION.
32266 * emit-rtl.c (insn_location): New function.
32267 * final.c (notice_source_line): Check that the instruction has a
32268 location before retrieving it and use insn_location.
32269 * modulo-sched.c (loop_single_full_bb_p): Likewise.
32270 * print-rtl.c (print_rtx): Likewise.
32271
32272 2014-06-06 Richard Biener <rguenther@suse.de>
32273
32274 * passes.def: Move 2nd VRP pass before phi-only-cprop.
32275
32276 2014-06-06 Christian Bruel <christian.bruel@st.com>
32277
32278 PR tree-optimization/43934
32279 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
32280 cost.
32281
32282 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
32283
32284 * ira-lives.c (single_reg_class): Add missing break. Explicitly
32285 return NO_REGS for extra address and memory constraints. Handle
32286 operands that match (or are equivalent to something that matches)
32287 extra constant constraints. Ignore other non-register operands.
32288
32289 2014-06-06 Alan Modra <amodra@gmail.com>
32290
32291 PR target/61300
32292 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
32293 * doc/tm.texi: Regenerate.
32294 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
32295 Use throughout in place of REG_PARM_STACK_SPACE.
32296 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
32297 "incoming" param. Pass to rs6000_function_parms_need_stack.
32298 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
32299 prototype_p when incoming. Use function decl when incoming
32300 to handle K&R style functions.
32301 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
32302 (INCOMING_REG_PARM_STACK_SPACE): Define.
32303
32304 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32305
32306 PR target/52472
32307 * cfgexpand.c (expand_debug_expr): Use address space of nested
32308 TREE_TYPE for ADDR_EXPR and MEM_REF.
32309
32310 2014-06-05 Jeff Law <law@redhat.com>
32311
32312 PR tree-optimization/61289
32313 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
32314 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
32315 looking for those which match LHS. All callers changed.
32316 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
32317 parameters and code which manipulated them. All callers changed.
32318 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
32319 and DST_MAP parameters. Simplify invalidation code by just calling
32320 invalidate_equivalences. All callers changed.
32321 (thread_across_edge): Simplify now that we don't need to maintain
32322 the map of equivalences to invalidate.
32323
32324 2014-06-05 Kai Tietz <ktietz@redhat.com>
32325 Richard Henderson <rth@redhat.com>
32326
32327 PR target/46219
32328 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
32329 checking for !TARGET_X32.
32330 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
32331 (sibcall_intern): New define_insn, plus required peepholes.
32332 (sibcall_pop_intern): Likewise.
32333 (sibcall_value_intern): Likewise.
32334 (sibcall_value_pop_intern): Likewise.
32335
32336 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
32337
32338 * tree-inline.c (tree_function_versioning): Check DF info existence
32339 before accessing it.
32340
32341 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
32342
32343 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
32344 frame_size.
32345 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
32346 aarch64_frame hard_fp_offset and frame_size.
32347 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
32348 frame_size; remove original_frame_size.
32349 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
32350 (aarch64_initial_elimination_offset): Remove frame_size and
32351 offset. Use aarch64_frame frame_size.
32352
32353 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
32354 Jiong Wang <jiong.wang@arm.com>
32355 Renlin <renlin.li@arm.com>
32356
32357 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
32358 initialization of R30 offset. Update offset. Iterate core
32359 regisers upto X30. Remove X29, X30 specific code.
32360
32361 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
32362 Jiong Wang <jiong.wang@arm.com>
32363
32364 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
32365 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
32366 (aarch64_register_saved_on_entry): Adjust test.
32367
32368 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
32369
32370 * config/aarch64/aarch64.h (machine_function): Move
32371 saved_varargs_size from here...
32372 (aarch64_frame): ... to here.
32373
32374 * config/aarch64/aarch64.c (aarch64_expand_prologue)
32375 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
32376 (aarch64_initial_elimination_offset)
32377 (aarch64_setup_incoming_varargs): Adjust location of
32378 saved_varargs_size.
32379
32380 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
32381
32382 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
32383 layout comment.
32384
32385 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
32386 Prachi Godbole <Prachi.Godbole@imgtec.com>
32387
32388 * config/mips/mips-cpus.def: Add definition for p5600. Updated
32389 mips32r5 entry to use PROCESSOR_P5600.
32390 * config/mips/mips-tables.opt: Regenerate.
32391 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
32392 * config/mips/mips.c (mips_fmadd_bypass): New function.
32393 (mips_rtx_cost_data): Add costs for p5600.
32394 (mips_issue_rate): Add support for p5600.
32395 (mips_multipass_dfa_lookahead): Likewise.
32396 * config/mips/mips.h (TUNE_P5600): New define.
32397 (TUNE_MACC_CHAINS): Add TUNE_P5600.
32398 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
32399 * config/mips/mips.md: Include p5600.md.
32400 (processor): Add p5600.
32401 * config/mips/p5600.md: New file.
32402
32403 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
32404
32405 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
32406 * config/i386/predicates.md (palignr_operand): New.
32407 Indicates if permutation is suitable for palignr instruction.
32408
32409 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
32410
32411 PR tree-optimization/61319
32412 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
32413 stmt belongs to loop.
32414
32415 2014-06-05 Richard Biener <rguenther@suse.de>
32416
32417 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
32418 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
32419 (lookup_tmp_var): Adjust.
32420 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
32421
32422 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32423
32424 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
32425
32426 2014-06-05 Marek Polacek <polacek@redhat.com>
32427
32428 PR c/49706
32429 * doc/invoke.texi: Document -Wlogical-not-parentheses.
32430
32431 2014-06-04 Tom de Vries <tom@codesourcery.com>
32432
32433 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
32434 CONST_INT.
32435
32436 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
32437
32438 PR tree-optimization/61385
32439 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
32440
32441 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
32442
32443 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
32444 changed to use fatal_error.
32445 (main): Ensure lto_wrapper_cleanup is run atexit.
32446
32447 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
32448
32449 * lra-constraints.c (valid_address_p): Move earlier in file.
32450 (address_eliminator): New structure.
32451 (satisfies_memory_constraint_p): New function.
32452 (satisfies_address_constraint_p): Likewise.
32453 (process_alt_operands, process_address, curr_insn_transform): Use them.
32454
32455 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
32456
32457 * lra-int.h (lra_static_insn_data): Make operand_alternative a
32458 const pointer.
32459 (target_lra_int, default_target_lra_int, this_target_lra_int)
32460 (op_alt_data): Delete.
32461 * lra.h (lra_init): Delete.
32462 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
32463 (init_insn_code_data_once): Remove op_alt_data handling.
32464 (finish_insn_code_data_once): Likewise.
32465 (init_op_alt_data): Delete.
32466 (get_static_insn_data): Initialize operand_alternative to null.
32467 (free_insn_recog_data): Cast operand_alternative before freeing it.
32468 (setup_operand_alternative): Take the operand_alternative as
32469 parameter and assume it isn't already cached in the static
32470 insn data.
32471 (lra_set_insn_recog_data): Update accordingly.
32472 (lra_init): Delete.
32473 * ira.c (ira_init): Don't call lra_init.
32474 * target-globals.h (this_target_lra_int): Declare.
32475 (target_globals): Remove lra_int.
32476 (restore_target_globals): Update accordingly.
32477 * target-globals.c: Don't include lra-int.h.
32478 (default_target_globals, save_target_globals): Remove lra_int.
32479
32480 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
32481
32482 * recog.h (operand_alternative): Convert reg_class, reject,
32483 matched and matches into bitfields.
32484 (preprocess_constraints): New overload.
32485 (preprocess_insn_constraints): New function.
32486 (preprocess_constraints): Take the insn as parameter.
32487 (recog_op_alt): Change into a pointer.
32488 (target_recog): Add x_op_alt.
32489 * recog.c (asm_op_alt): New variable.
32490 (recog_op_alt): Change into a pointer.
32491 (preprocess_constraints): New overload, replacing the old function
32492 definition with one that doesn't use global state.
32493 (preprocess_insn_constraints): New function.
32494 (preprocess_constraints): Use them. Take the insn as parameter.
32495 Use asm_op_alt for asms.
32496 (recog_init): Free existing x_op_alt entries.
32497 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
32498 pointer const.
32499 (make_early_clobber_and_input_conflicts): Likewise.
32500 (process_bb_node_lives): Pass the insn to process_constraints.
32501 * reg-stack.c (check_asm_stack_operands): Likewise.
32502 (subst_asm_stack_regs): Likewise.
32503 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
32504 * regrename.c (build_def_use): Likewise.
32505 * sched-deps.c (sched_analyze_insn): Likewise.
32506 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
32507 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
32508 (note_invalid_constants): Likewise.
32509 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
32510 (ix86_legitimate_combined_insn): Make operand_alternative pointer
32511 const.
32512
32513 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
32514
32515 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
32516 * ira-lives.c (check_and_make_def_conflict): Check for disabled
32517 alternatives.
32518 (make_early_clobber_and_input_conflicts): Likewise.
32519 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
32520
32521 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
32522
32523 * recog.h (alternative_class): New function.
32524 (which_op_alt): Return a const recog_op_alt.
32525 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
32526 (subst_asm_stack_regs): Likewise.
32527 * config/arm/arm.c (note_invalid_constants): Likewise.
32528 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
32529 the operand_alternative; use alternative class instead.
32530 * sel-sched.c (get_reg_class): Likewise.
32531 * regrename.c (build_def_use): Likewise.
32532 (hide_operands, restore_operands, record_out_operands): Update type
32533 accordingly.
32534
32535 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
32536
32537 * recog.h (recog_op_alt): Convert to a flat array.
32538 (which_op_alt): New function.
32539 * recog.c (recog_op_alt): Convert to a flat array.
32540 (preprocess_constraints): Update accordingly, grouping all
32541 operands of the same alternative together, rather than the
32542 other way around.
32543 * ira-lives.c (check_and_make_def_conflict): Likewise.
32544 (make_early_clobber_and_input_conflicts): Likewise.
32545 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
32546 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
32547 (subst_asm_stack_regs): Likewise.
32548 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
32549 * regrename.c (hide_operands, record_out_operands): Likewise.
32550 (build_def_use): Likewise.
32551 * sel-sched.c (get_reg_class): Likewise.
32552 * config/arm/arm.c (note_invalid_constants): Likewise.
32553
32554 2014-06-04 Jason Merrill <jason@redhat.com>
32555
32556 PR c++/51253
32557 PR c++/61382
32558 * gimplify.c (gimplify_arg): Non-static.
32559 * gimplify.h: Declare it.
32560
32561 2014-06-04 Richard Biener <rguenther@suse.de>
32562
32563 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
32564 TREE_PUBLIC and DECL_EXTERNAL decls.
32565
32566 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
32567
32568 * regcprop.c (copyprop_hardreg_forward_1): Account for
32569 HARD_REGNO_CALL_PART_CLOBBERED.
32570
32571 2014-06-04 Richard Biener <rguenther@suse.de>
32572
32573 * configure.ac: Check whether the underlying type of int64_t
32574 is long or long long.
32575 * configure: Regenerate.
32576 * config.in: Likewise.
32577 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
32578 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
32579
32580 2014-06-04 Richard Biener <rguenther@suse.de>
32581
32582 PR tree-optimization/60098
32583 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
32584 we hit a kill.
32585 (dse_optimize_stmt): Simplify, now that we found a kill
32586 earlier.
32587
32588 2014-06-04 Richard Biener <rguenther@suse.de>
32589
32590 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
32591 of accesses with non-invariant address.
32592
32593 2014-06-04 Martin Liska <mliska@suse.cz>
32594
32595 * cgraph.h (cgraph_make_wrapper): New function introduced.
32596 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
32597 * ipa-inline.h (inline_analyze_function): The function is global.
32598 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
32599
32600 2014-06-04 Martin Liska <mliska@suse.cz>
32601
32602 * tree.h (private_lookup_attribute_starting): New function.
32603 (lookup_attribute_starting): Likewise.
32604 * tree.c (private_lookup_attribute_starting): Likewise.
32605
32606 2014-06-04 Martin Liska <mliska@suse.cz>
32607
32608 * cgraph.h (expand_thunk): New argument added.
32609 (address_taken_from_non_vtable_p): New global function.
32610 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
32611 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
32612 * cgraphunit.c (analyze_function): Likewise.
32613 (assemble_thunks_and_aliases): Argument added to call.
32614 (expand_thunk): New argument forces to produce GIMPLE thunk.
32615
32616 2014-06-04 Martin Liska <mliska@suse.cz>
32617
32618 * coverage.h (coverage_compute_cfg_checksum): Argument added.
32619 * coverage.c (coverage_compute_cfg_checksum): Likewise.
32620 * profile.c (branch_prob): Likewise.
32621
32622 2014-06-04 Martin Jambor <mjambor@suse.cz>
32623
32624 PR ipa/61340
32625 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
32626 handler for switch on an ipa_ref_use enum.
32627 * ipa-reference.c (analyze_function): Likewise.
32628
32629 2014-06-04 Kai Tietz <ktietz@redhat.com>
32630
32631 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
32632 from old call-instruction.
32633
32634 2014-06-04 Bin Cheng <bin.cheng@arm.com>
32635
32636 * config/aarch64/aarch64.c (aarch64_classify_address)
32637 (aarch64_legitimize_reload_address): Support full addressing modes
32638 for vector modes.
32639 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
32640 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
32641
32642 2014-06-03 Andrew Pinski <apinski@cavium.com>
32643
32644 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
32645 for OP0.
32646
32647 2014-06-03 Andrew Pinski <apinski@cavium.com>
32648
32649 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
32650 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
32651
32652 2014-06-03 Kai Tietz <ktietz@redhat.com>
32653
32654 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
32655 for 64-bit ms-abi.
32656
32657 2014-06-03 Dehao Chen <dehao@google.com>
32658
32659 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
32660 the same loop.
32661
32662 2014-06-03 Marek Polacek <polacek@redhat.com>
32663
32664 PR c/60439
32665 * doc/invoke.texi: Document -Wswitch-bool.
32666 * function.c (stack_protect_epilogue): Cast controlling expression of
32667 the switch to int.
32668 * gengtype.c (walk_type): Generate switch expression with its
32669 controlling expression cast to int.
32670
32671 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
32672
32673 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
32674 and attiny841.
32675 * config/avr/avr-tables.opt: Regenerate.
32676 * config/avr/t-multilib: Regenerate.
32677 * doc/avr-mmcu.texi: Regenerate.
32678
32679 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
32680 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
32681
32682 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
32683 (ata6617c, ata664251): Add new avr35 devices.
32684 (ata6612c): Add new avr4 device.
32685 (ata6613c, ata6614q): Add new avr5 devices.
32686 * config/avr/avr-tables.opt: Regenerate.
32687 * config/avr/t-multilib: Regenerate.
32688 * doc/avr-mmcu.texi: Regenerate.
32689
32690 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
32691
32692 * gcc/config/aarch64/aarch64-builtins.c
32693 (aarch64_types_binop_ssu_qualifiers): New static data.
32694 (TYPES_BINOP_SSU): Define.
32695 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
32696 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
32697 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
32698 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
32699 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
32700 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
32701 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
32702 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
32703 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
32704 suffix to builtin function name, remove cast.
32705 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
32706 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
32707 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
32708
32709 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
32710
32711 * gcc/config/aarch64/aarch64-builtins.c
32712 (aarch64_types_binop_uus_qualifiers,
32713 aarch64_types_shift_to_unsigned_qualifiers,
32714 aarch64_types_unsigned_shiftacc_qualifiers): Define.
32715 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
32716 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
32717 sqshlu_n, uqshl_n): Update qualifiers.
32718 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
32719 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
32720 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
32721 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
32722 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
32723 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
32724 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
32725 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
32726 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
32727 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
32728 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
32729 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
32730 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
32731 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
32732 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
32733 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
32734 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
32735 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
32736 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
32737 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
32738 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
32739 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
32740 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
32741 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
32742 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
32743 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
32744 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
32745
32746 2014-06-03 Teresa Johnson <tejohnson@google.com>
32747
32748 * tree-sra.c (modify_function): Record caller nodes after rebuild.
32749
32750 2014-06-02 Jason Merrill <jason@redhat.com>
32751
32752 PR c++/61020
32753 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
32754
32755 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
32756
32757 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
32758 location == 0.
32759
32760 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
32761
32762 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
32763 New pattern.
32764 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
32765 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
32766 * config/aarch64/iterators.md (REVERSE): New iterator.
32767 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
32768 (rev_op): New int_attribute.
32769 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
32770 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
32771 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
32772 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
32773 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
32774 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
32775 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
32776 Replace temporary __asm__ with __builtin_shuffle.
32777
32778 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
32779
32780 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
32781 mips64r5.
32782 * config/mips/mips-tables.opt: Regenerate.
32783 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
32784 to use mips_isa_rev rather than ISA_MIPS32R2.
32785 * config/mips/mips.h (ISA_MIPS32R3): New define.
32786 (ISA_MIPS32R5): New define.
32787 (ISA_MIPS64R3): New define.
32788 (ISA_MIPS64R5): New define.
32789 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
32790 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
32791 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
32792 and mips64r5.
32793 (MIPS_ISA_SYNCI_SPEC): Likewise.
32794 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
32795 (LINK_SPEC): Added mips32r3 and mips32r5.
32796 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
32797 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
32798 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
32799 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
32800 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
32801 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
32802 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
32803
32804 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
32805
32806 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
32807 options.
32808 * config/mips/mips.opt (mxpa): New option.
32809 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
32810 assembler.
32811
32812 2014-06-03 Martin Jambor <mjambor@suse.cz>
32813
32814 PR ipa/61160
32815 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
32816 thunks.
32817
32818 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
32819
32820 PR tree-optimization/61328
32821 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
32822 initialization from find_bswap_or_nop_1.
32823 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
32824 in source_expr2 before using the size value the function sets. Also
32825 make use of init_symbolic_number () in both the old place and
32826 find_bswap_or_nop_load () to avoid reading uninitialized memory when
32827 doing recursion in the GIMPLE_BINARY_RHS case.
32828
32829 2014-06-03 Richard Biener <rguenther@suse.de>
32830
32831 PR tree-optimization/61383
32832 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
32833 stmts can't trap.
32834
32835 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
32836
32837 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
32838 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
32839 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
32840 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
32841 in this file.
32842 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
32843 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
32844 * system.h: ...here and make it unconditional.
32845 * target.def (conditional_register_usage): Mention
32846 define_register_constraint instead of old-style constraint macros.
32847 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
32848 * doc/tm.texi: Regenerate.
32849 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
32850 protected by !USE_MD_CONSTRAINTS.
32851 * config/frv/frv.md: Remove quote from old version of documentation.
32852 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
32853 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
32854 CONST_DOUBLE_OK_FOR_LETTER.
32855 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
32856
32857 2014-06-02 Andrew Pinski <apinski@cavium.com>
32858
32859 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
32860 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
32861 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
32862 file whose name depends on -mabi= and -mbig-endian.
32863 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
32864 Handle LP64 better and handle ilp32 too.
32865 (MULTILIB_OPTIONS): Delete.
32866 (MULTILIB_DIRNAMES): Delete.
32867
32868 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
32869
32870 * expr.h: Remove prototypes of functions defined in builtins.c.
32871 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
32872 Remove prototypes of functions defined in builtins.c.
32873 * builtins.h: Update prototype list to include all exported functions.
32874 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
32875 no_c99_libc_has_function): Move to targhooks.c
32876 (build_string_literal, build_call_expr_loc_array,
32877 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
32878 to tree.c.
32879 (expand_builtin_object_size, fold_builtin_object_size): Make static.
32880 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
32881 no_c99_libc_has_function): Relocate from builtins.c.
32882 * tree.c: Include builtins.h.
32883 (build_call_expr_loc_array, build_call_expr_loc_vec,
32884 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
32885 from builtins.c.
32886 * fold-const.h (fold_fma): Move prototype to builtins.h.
32887 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
32888 * asan.c: Include builtins.h.
32889 * cfgexpand.c: Likewise.
32890 * convert.c: Likewise.
32891 * emit-rtl.c: Likewise.
32892 * except.c: Likewise.
32893 * expr.c: Likewise.
32894 * fold-const.c: Likewise.
32895 * gimple-fold.c: Likewise.
32896 * gimple-ssa-strength-reduction.c: Likewise.
32897 * gimplify.c: Likewise.
32898 * ipa-inline.c: Likewise.
32899 * ipa-prop.c: Likewise.
32900 * lto-streamer-out.c: Likewise.
32901 * stmt.c: Likewise.
32902 * tree-inline.c: Likewise.
32903 * tree-object-size.c: Likewise.
32904 * tree-sra.c: Likewise.
32905 * tree-ssa-ccp.c: Likewise.
32906 * tree-ssa-forwprop.c: Likewise.
32907 * tree-ssa-loop-ivcanon.c: Likewise.
32908 * tree-ssa-loop-ivopts.c: Likewise.
32909 * tree-ssa-math-opts.c: Likewise.
32910 * tree-ssa-reassoc.c: Likewise.
32911 * tree-ssa-threadedge.c: Likewise.
32912 * tree-streamer-in.c: Likewise.
32913 * tree-vect-data-refs.c: Likewise.
32914 * tree-vect-patterns.c: Likewise.
32915 * tree-vect-stmts.c: Likewise.
32916 * config/aarch64/aarch64.c: Likewise.
32917 * config/alpha/alpha.c: Likewise.
32918 * config/arc/arc.c: Likewise.
32919 * config/arm/arm.c: Likewise.
32920 * config/avr/avr.c: Likewise.
32921 * config/bfin/bfin.c: Likewise.
32922 * config/c6x/c6x.c: Likewise.
32923 * config/cr16/cr16.c: Likewise.
32924 * config/cris/cris.c: Likewise.
32925 * config/epiphany/epiphany.c: Likewise.
32926 * config/fr30/fr30.c: Likewise.
32927 * config/frv/frv.c: Likewise.
32928 * config/h8300/h8300.c: Likewise.
32929 * config/i386/i386.c: Likewise.
32930 * config/i386/winnt.c: Likewise.
32931 * config/ia64/ia64.c: Likewise.
32932 * config/iq2000/iq2000.c: Likewise.
32933 * config/lm32/lm32.c: Likewise.
32934 * config/m32c/m32c.c: Likewise.
32935 * config/m32r/m32r.c: Likewise.
32936 * config/m68k/m68k.c: Likewise.
32937 * config/mcore/mcore.c: Likewise.
32938 * config/mep/mep.c: Likewise.
32939 * config/microblaze/microblaze.c: Likewise.
32940 * config/mips/mips.c: Likewise.
32941 * config/mmix/mmix.c: Likewise.
32942 * config/mn10300/mn10300.c: Likewise.
32943 * config/moxie/moxie.c: Likewise.
32944 * config/msp430/msp430.c: Likewise.
32945 * config/nds32/nds32.c: Likewise.
32946 * config/pa/pa.c: Likewise.
32947 * config/pdp11/pdp11.c: Likewise.
32948 * config/picochip/picochip.c: Likewise.
32949 * config/rl78/rl78.c: Likewise.
32950 * config/rs6000/rs6000.c: Likewise.
32951 * config/rx/rx.c: Likewise.
32952 * config/s390/s390.c: Likewise.
32953 * config/score/score.c: Likewise.
32954 * config/sh/sh.c: Likewise.
32955 * config/sparc/sparc.c: Likewise.
32956 * config/spu/spu.c: Likewise.
32957 * config/stormy16/stormy16.c: Likewise.
32958 * config/tilegx/tilegx.c: Likewise.
32959 * config/tilepro/tilepro.c: Likewise.
32960 * config/v850/v850.c: Likewise.
32961 * config/vax/vax.c: Likewise.
32962 * config/xtensa/xtensa.c: Likewise.
32963
32964 2014-06-02 Jeff Law <law@redhat.com>
32965
32966 PR rtl-optimization/61094
32967 * ree.c (combine_reaching_defs): Do not reextend an insn if it
32968 was marked as do_no_reextend. If a copy is needed to eliminate
32969 an extension, then mark it as do_not_reextend.
32970
32971 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
32972
32973 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
32974
32975 2014-06-02 Richard Henderson <rth@redhat.com>
32976
32977 PR target/61336
32978 * config/alpha/alpha.c (print_operand_address): Allow symbolic
32979 addresses inside asms. Use output_operand_lossage instead of
32980 gcc_unreachable.
32981
32982 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
32983
32984 PR target/61239
32985 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
32986 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
32987
32988 2014-06-02 Tom de Vries <tom@codesourcery.com>
32989
32990 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
32991 case that x has VOIDmode.
32992
32993 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
32994
32995 * varasm.c (copy_constant): Delete function.
32996 (build_constant_desc): Don't call it.
32997
32998 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32999
33000 PR target/61154
33001 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
33002 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
33003 with immediate_operand.
33004
33005 2014-06-02 Andreas Schwab <schwab@suse.de>
33006
33007 * config/ia64/ia64.c
33008 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
33009 pending_data_specs first.
33010
33011 2014-06-02 Richard Biener <rguenther@suse.de>
33012
33013 PR tree-optimization/61378
33014 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
33015 valueized_anything.
33016
33017 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
33018
33019 * config/i386/constraints.md (Bw): Rename from 'w'.
33020 (Bz): Rename from 'z'.
33021 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
33022
33023 2014-06-01 Kai Tietz <ktietz@redhat.com>
33024
33025 PR target/61377
33026 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
33027 * config/i386/i386.md (sibcall_insn_operand): Use Bs
33028 instead of m constraint.
33029
33030 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
33031
33032 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
33033 a separate alternative where the scratch operand 2 is marked as
33034 early clobber.
33035
33036 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
33037
33038 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
33039 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
33040 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
33041 and __builtins_arm_get_fpscr.
33042 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
33043 __builtins_arm_get_fpscr.
33044 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
33045 __builtins_arm_ldfpscr.
33046 (arm_atomic_assign_expand_fenv): New function.
33047 * config/arm/vfp.md (set_fpscr): New pattern.
33048 (get_fpscr) : Likewise.
33049 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
33050 VUNSPEC_SET_FPSCR.
33051 * doc/extend.texi (AARCH64 Built-in Functions) : Document
33052 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
33053
33054 2014-05-30 Jakub Jelinek <jakub@redhat.com>
33055
33056 * asan.c (report_error_func): Add SLOW_P argument, use
33057 BUILT_IN_ASAN_*_N if set.
33058 (build_check_stmt): Likewise.
33059 (instrument_derefs): If T has insufficient alignment,
33060 force same handling as for odd sizes.
33061
33062 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
33063 BUILT_IN_ASAN_REPORT_STORE_N): New.
33064 * asan.c (struct asan_mem_ref): Change access_size type to
33065 HOST_WIDE_INT.
33066 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
33067 update_mem_ref_hash_table): Likewise.
33068 (asan_mem_ref_hasher::hash): Hash in a HWI.
33069 (report_error_func): Change size_in_bytes argument to HWI.
33070 Use *_N builtins if size_in_bytes is larger than 16 or not power of
33071 two.
33072 (build_shadow_mem_access): New function.
33073 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
33074 Handle size_in_bytes not power of two or larger than 16.
33075 (instrument_derefs): Don't give up if size_in_bytes is not
33076 power of two or is larger than 16.
33077
33078 2014-05-30 Kai Tietz <ktietz@redhat.com>
33079
33080 PR target/60104
33081 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
33082 for sibling-tail-calls.
33083 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
33084 to its use.
33085 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
33086 (sibcall_insn_operand): Add check for sibcall_memory_operand.
33087
33088 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
33089
33090 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
33091 * config/avr/avr-tables.opt: Regenerate.
33092 * config/avr/t-multilib: Regenerate.
33093 * doc/avr-mmcu.texi: Regenerate.
33094
33095 2014-05-30 Ian Lance Taylor <iant@google.com>
33096
33097 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
33098 target("sse").
33099
33100 2014-05-30 Tom de Vries <tom@codesourcery.com>
33101
33102 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
33103 Redefine as true.
33104
33105 2014-05-30 Tom de Vries <tom@codesourcery.com>
33106
33107 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
33108 * lra.c (initialize_lra_reg_info_element): Add init of
33109 actual_call_used_reg_set field.
33110 (lra): Call lra_create_live_ranges before lra_inheritance for
33111 -fuse-caller-save.
33112 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
33113 -fuse-caller-save.
33114 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
33115 instead of call_used_reg_set for -fuse-caller-save.
33116 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
33117
33118 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33119
33120 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
33121 to mov_imm.
33122 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
33123
33124 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
33125
33126 * ira.c (ira_get_dup_out_num): Check for output operands at
33127 the start of the loop. Handle cases where an included alternative
33128 follows an excluded one.
33129
33130 2014-05-29 Mike Stump <mikestump@comcast.net>
33131
33132 PR debug/61352
33133 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
33134 post ld passes when lto is used.
33135
33136 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
33137
33138 PR rtl-optimization/61325
33139 * lra-constraints.c (process_address): Rename to process_address_1.
33140 (process_address): New function.
33141
33142 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
33143
33144 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
33145 TYPES_BINOPV): New static data.
33146 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
33147 New builtin.
33148 * config/aarch64/aarch64-simd.md (aarch64_ext,
33149 aarch64_im_lane_boundsi): New patterns.
33150 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
33151 patterns for EXT.
33152 (aarch64_evpc_ext): New function.
33153
33154 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
33155
33156 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
33157 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
33158 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
33159 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
33160 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
33161
33162 2014-05-29 Tom de Vries <tom@codesourcery.com>
33163
33164 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
33165
33166 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
33167 Richard Sandiford <rdsandiford@googlemail.com>
33168
33169 * arm/iterators.md (shiftable_ops): New code iterator.
33170 (t2_binop0, arith_shift_insn): New code attributes.
33171 * arm/predicates.md (shift_nomul_operator): New predicate.
33172 * arm/arm.md (insn_enabled): Delete.
33173 (enabled): Remove insn_enabled test.
33174 (*arith_shiftsi): Delete. Replace with ...
33175 (*<arith_shift_insn>_multsi): ... new pattern.
33176 (*<arith_shift_insn>_shiftsi): ... new pattern.
33177 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
33178
33179 2014-05-29 Radovan Obradovic <robradovic@mips.com>
33180 Tom de Vries <tom@codesourcery.com>
33181
33182 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
33183 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
33184 clobber.
33185 (mips_split_call): Use POST_CALL_TMP_REG.
33186 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
33187
33188 2014-05-29 Tom de Vries <tom@codesourcery.com>
33189
33190 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
33191 with #ifdef STACK_REGS.
33192
33193 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
33194
33195 * varasm.c (get_variable_section): Walk aliases.
33196 (place_block_symbol): Walk aliases.
33197
33198 2014-05-28 Tom de Vries <tom@codesourcery.com>
33199
33200 Revert:
33201 2014-05-28 Tom de Vries <tom@codesourcery.com>
33202
33203 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
33204 * lra.c (initialize_lra_reg_info_element): Add init of
33205 actual_call_used_reg_set field.
33206 (lra): Call lra_create_live_ranges before lra_inheritance for
33207 -fuse-caller-save.
33208 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
33209 -fuse-caller-save.
33210 * lra-constraints.c (need_for_call_save_p): Use
33211 actual_call_used_reg_set instead of call_used_reg_set for
33212 -fuse-caller-save.
33213 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
33214
33215 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
33216
33217 * doc/md.texi: Document that the % constraint character must
33218 be at the beginning of the string.
33219 * genoutput.c (validate_insn_alternatives): Check that '=',
33220 '+' and '%' only appear at the beginning of a constraint.
33221 * ira.c (commutative_constraint_p): Delete.
33222 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
33223 at the start of the string.
33224 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
33225 duplicate '='s.
33226 * config/arm/neon.md (bicdi3_neon): Likewise.
33227 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
33228 (slt_si, sltu_si): Likewise.
33229 * config/vax/vax.md (sbcdi3): Likewise.
33230 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
33231 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
33232 (mul64): Move '%' to beginning of constraint.
33233 * config/arm/arm.md (*xordi3_insn): Likewise.
33234 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
33235 (xorsi3): Likewise.
33236
33237 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
33238
33239 * doc/md.texi: Document the restrictions on the "enabled" attribute.
33240
33241 2014-05-28 Jason Merrill <jason@redhat.com>
33242
33243 PR c++/47202
33244 * cgraph.h (symtab_node::get_comdat_group_id): New.
33245 * cgraphunit.c (analyze_functions): Call it.
33246 * symtab.c (dump_symtab_node): Likewise.
33247 * tree.c (decl_comdat_group_id): New.
33248 * tree.h: Declare it.
33249 * lto-streamer-out.c (write_symbol): Use it.
33250 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
33251
33252 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
33253
33254 PR bootstrap/PR61146
33255 * wide-int.cc: Do not include longlong.h when compiling with clang.
33256
33257 2014-05-28 Richard Biener <rguenther@suse.de>
33258
33259 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
33260 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
33261 (vrp_visit_assignment_or_call): Print less vertical space.
33262 (vrp_visit_stmt): Likewise.
33263 (vrp_visit_phi_node): Likewise. For a PHI argument with
33264 VR_VARYING range consider recording it as copy.
33265
33266 2014-05-28 Richard Biener <rguenther@suse.de>
33267
33268 Revert
33269 2014-05-28 Richard Biener <rguenther@suse.de>
33270
33271 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
33272
33273 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33274
33275 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
33276 sufficiently aligned and an offset is used at the same time.
33277 (expand_expr_real_1): Likewise.
33278
33279 2014-05-28 Richard Biener <rguenther@suse.de>
33280
33281 PR middle-end/61045
33282 * fold-const.c (fold_comparison): When folding
33283 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
33284 the sign of the remaining constant operand stays the same.
33285
33286 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
33287
33288 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
33289 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
33290 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
33291 to the assembler.
33292 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
33293 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
33294 (m32bit-doubles) Likewise.
33295 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
33296 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
33297 option for RL78.
33298
33299 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33300
33301 * configure.ac ($gcc_cv_ld_clearcap): New test.
33302 * configure: Regenerate.
33303 * config.in: Regenerate.
33304 * config/sol2.opt (mclear-hwcap): New option.
33305 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
33306 * config/sol2-clearcap.map: Moved here from
33307 testsuite/gcc.target/i386/clearcap.map.
33308 * config/sol2-clearcapv2.map: Move here from
33309 gcc.target/i386/clearcapv2.map.
33310 * config/t-sol2 (install): Depend on install-clearcap-map.
33311 (install-clearcap-map): New target.
33312 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
33313 -mclear-hwcap.
33314
33315 2014-05-28 Richard Biener <rguenther@suse.de>
33316
33317 * hwint.h (*_HALF_WIDE_INT*): Move to ...
33318 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
33319 ... here and remove the rest.
33320 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
33321
33322 2014-05-28 Richard Biener <rguenther@suse.de>
33323
33324 PR tree-optimization/61335
33325 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
33326 new range fails, drop to varying.
33327
33328 2014-05-28 Olivier Hainque <hainque@adacore.com>
33329
33330 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
33331 (CPP_SPEC): Add entry for -mcpu=8548.
33332 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
33333 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
33334
33335 2014-05-28 Tom de Vries <tom@codesourcery.com>
33336
33337 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
33338 * lra.c (initialize_lra_reg_info_element): Add init of
33339 actual_call_used_reg_set field.
33340 (lra): Call lra_create_live_ranges before lra_inheritance for
33341 -fuse-caller-save.
33342 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
33343 -fuse-caller-save.
33344 * lra-constraints.c (need_for_call_save_p): Use
33345 actual_call_used_reg_set instead of call_used_reg_set for
33346 -fuse-caller-save.
33347 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
33348
33349 2014-05-28 Radovan Obradovic <robradovic@mips.com>
33350 Tom de Vries <tom@codesourcery.com>
33351
33352 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
33353 to gccoptlist.
33354 (@item -fuse-caller-save): New item.
33355
33356 2014-05-28 Radovan Obradovic <robradovic@mips.com>
33357 Tom de Vries <tom@codesourcery.com>
33358
33359 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
33360 OPT_fuse_caller_save.
33361
33362 2014-05-28 Radovan Obradovic <robradovic@mips.com>
33363 Tom de Vries <tom@codesourcery.com>
33364
33365 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
33366 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
33367 get_call_reg_set_usage.
33368 * resource.c (mark_set_resources, mark_target_live_regs): Use
33369 get_call_reg_set_usage.
33370 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
33371 field.
33372 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
33373 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
33374 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
33375 * ira-build.c (ira_create_allocno): Init
33376 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
33377 (create_cap_allocno, propagate_allocno_info)
33378 (propagate_some_info_from_allocno)
33379 (copy_info_to_removed_store_destinations): Handle
33380 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
33381 * ira-costs.c (ira_tune_allocno_costs): Use
33382 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
33383
33384 2014-05-28 Radovan Obradovic <robradovic@mips.com>
33385 Tom de Vries <tom@codesourcery.com>
33386
33387 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
33388 and function_used_regs_valid fields.
33389 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
33390 find_all_hard_reg_sets.
33391 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
33392 (get_call_reg_set_usage): New function.
33393 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
33394 * regs.h (get_call_reg_set_usage): Declare.
33395
33396 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
33397
33398 PR libgcc/61152
33399 * config/dbx.h (License): Add Runtime Library Exception.
33400 * config/newlib-stdint.h (License): Same.
33401 * config/rtems.h (License): Same
33402 * config/initfini-array.h (License): Same
33403 * config/v850/v850.h (License): Same.
33404 * config/v850/v850-opts.h (License): Same
33405 * config/v850/rtems.h (License): Same.
33406
33407 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
33408
33409 PR target/61044
33410 * doc/extend.texi (Local Labels): Note that label differences are
33411 not supported for AVR.
33412
33413 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
33414 Olivier Hainque <hainque@adacore.com>
33415
33416 * rtl.h (set_for_reg_notes): Declare.
33417 * emit-rtl.c (set_for_reg_notes): New function.
33418 (set_unique_reg_note): Use it.
33419 * optabs.c (add_equal_note): Likewise
33420
33421 2014-05-27 Andrew Pinski <apinski@cavium.com>
33422
33423 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
33424 Use <w> for the register in assembly template.
33425 (stack_protect_test): Use the mode of operands[0] for the result.
33426 (stack_protect_test_<mode>): Use <w> for the register
33427 in assembly template.
33428
33429 2014-05-27 DJ Delorie <dj@redhat.com>
33430
33431 * config/rx/rx.c (add_vector_labels): New.
33432 (rx_output_function_prologue): Call it.
33433 (rx_handle_func_attribute): Don't require empty arguments.
33434 (rx_handle_vector_attribute): New.
33435 (rx_attribute_table): Add "vector" attribute.
33436 * doc/extend.texi (interrupt, vector): Document new/changed
33437 RX-specific attributes.
33438
33439 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
33440
33441 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
33442
33443 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
33444 predicate to detect a negative quotient.
33445
33446 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
33447
33448 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
33449 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
33450 Add X - Y CMP 0 to X CMP Y transformation.
33451 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
33452
33453 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
33454
33455 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
33456 before printing.
33457
33458 2014-05-27 Steve Ellcey <sellcey@mips.com>
33459
33460 * config/mips/mips.c: Add include of cgraph.h.
33461
33462 2014-05-27 Richard Biener <rguenther@suse.de>
33463
33464 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
33465
33466 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
33467
33468 PR libgcc/61152
33469 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
33470 * config/arm/arm-cores.def (License): Same.
33471 * config/arm/arm-opts.h (License): Same.
33472 * config/arm/aout.h (License): Same.
33473 * config/arm/bpabi.h (License): Same.
33474 * config/arm/elf.h (License): Same.
33475 * config/arm/linux-elf.h (License): Same.
33476 * config/arm/linux-gas.h (License): Same.
33477 * config/arm/netbsd-elf.h (License): Same.
33478 * config/arm/uclinux-eabi.h (License): Same.
33479 * config/arm/uclinux-elf.h (License): Same.
33480 * config/arm/vxworks.h (License): Same.
33481
33482 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33483
33484 * config/arm/neon.md (neon_bswap<mode>): New pattern.
33485 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
33486 (arm_init_neon_builtins): Handle NEON_BSWAP.
33487 Define required type nodes.
33488 (arm_expand_neon_builtin): Handle NEON_BSWAP.
33489 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
33490 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
33491 * config/arm/iterators.md (VDQHSD): New mode iterator.
33492
33493 2014-05-27 Richard Biener <rguenther@suse.de>
33494
33495 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
33496 Try using literal operands when comparing value-ranges failed.
33497
33498 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
33499
33500 * ira.c (commutative_operand): Adjust for change to recog_data.
33501 [Missing from previous commit.]
33502
33503 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
33504
33505 * system.h (TEST_BIT): New macro.
33506 * recog.h (alternative_mask): New type.
33507 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
33508 (recog_data_d): Replace alternative_enabled_p array with
33509 enabled_alternatives.
33510 (target_recog): New structure.
33511 (default_target_recog, this_target_recog): Declare.
33512 (get_enabled_alternatives, recog_init): Likewise.
33513 * recog.c (default_target_recog, this_target_recog): New variables.
33514 (get_enabled_alternatives): New function.
33515 (extract_insn): Use it.
33516 (recog_init): New function.
33517 (preprocess_constraints, constrain_operands): Adjust for change to
33518 recog_data.
33519 * postreload.c (reload_cse_simplify_operands): Likewise.
33520 * reload.c (find_reloads): Likewise.
33521 * ira-costs.c (record_reg_classes): Likewise.
33522 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
33523 all alternatives after a disabled one would be skipped.
33524 (ira_implicitly_set_insn_hard_regs): Likewise.
33525 * ira.c (ira_setup_alts): Adjust for change to recog_data.
33526 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
33527 with enabled_alternatives.
33528 * lra.c (free_insn_recog_data): Update accordingly.
33529 (lra_update_insn_recog_data): Likewise.
33530 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
33531 * lra-constraints.c (process_alt_operands): Likewise. Handle
33532 only_alternative as part of the enabled mask.
33533 * target-globals.h (this_target_recog): Declare.
33534 (target_globals): Add a recog field.
33535 (restore_target_globals): Restore this_target_recog.
33536 * target-globals.c: Include recog.h.
33537 (default_target_globals): Initialize recog field.
33538 (save_target_globals): Likewise.
33539 * reginfo.c (reinit_regs): Call recog_init.
33540 * toplev.c (backend_init_target): Likewise.
33541
33542 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
33543
33544 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
33545 rather than any named insn's code.
33546
33547 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
33548
33549 PR libgcc/61152
33550 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
33551 * config/arm/arm-cores.def (License): Same.
33552
33553 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
33554
33555 * tree.h (decl_comdat_group): Declare.
33556 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
33557 * tree.c (decl_comdat_group): Here.
33558
33559 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
33560
33561 PR rtl-optimization/61222
33562 * combine.c (simplify_shift_const_1): When moving a PLUS outside
33563 the shift, truncate the PLUS operand to the result mode.
33564
33565 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
33566
33567 PR target/61271
33568 * config/i386/i386.c (ix86_rtx_costs)
33569 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
33570 Fix condition.
33571
33572 2014-05-26 Martin Jambor <mjambor@suse.cz>
33573
33574 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
33575 subreg uses.
33576
33577 2014-05-26 Richard Biener <rguenther@suse.de>
33578
33579 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
33580 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
33581 Provide specializations.
33582 (wi::int_traits <HOST_WIDE_INT>,
33583 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
33584
33585 2014-05-26 Alan Modra <amodra@gmail.com>
33586
33587 PR target/61098
33588 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
33589 params and return a bool. Remove dead code. Update comment.
33590 Assert we have a const_int source. Remove bogus code from
33591 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
33592 handling of constants > 2G and reg_equal note, from..
33593 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
33594 return value. Update comment. If we can, use a new pseudo
33595 for intermediate calculations.
33596 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
33597 prototype.
33598 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
33599 call to rs6000_emit_set_const in splitter.
33600 (movdi_internal64+2, +3): Likewise.
33601
33602 2014-05-26 Richard Biener <rguenther@suse.de>
33603
33604 * system.h: Define __STDC_FORMAT_MACROS before
33605 including inttypes.h.
33606 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
33607 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
33608 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
33609 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
33610 HOST_WIDEST_INT_C): Remove.
33611 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
33612 if C99 inttypes.h is not available.
33613 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
33614 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
33615 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
33616 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
33617 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
33618 (struct output_info): Likewise.
33619 (print_statistics): Adjust.
33620 (dump_bitmap_statistics): Likewise.
33621 * bt-load.c (migrate_btr_defs): Print with PRId64.
33622 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
33623 (MAX_SAFE_MULTIPLIER): Adjust.
33624 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
33625 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
33626 dump_cgraph_node): Likewise.
33627 * final.c (dump_basic_block_info): Likewise.
33628 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
33629 * gcov.c (format_gcov): Likewise.
33630 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
33631 for calculation.
33632 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
33633 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
33634 (inline_small_functions, dump_overall_stats, dump_inline_stats):
33635 Use PRId64 for dumping.
33636 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
33637 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
33638 (add_allocno_hard_regs): Adjust.
33639 * loop-doloop.c (doloop_modify): Print using PRId64.
33640 * loop-iv.c (inverse): Compute in uint64_t.
33641 (determine_max_iter, iv_number_of_iterations): Likewise.
33642 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
33643 Print using PRId64.
33644 * lto-streamer-out.c (write_symbol): Use uint64_t.
33645 * mcf.c (CAP_INFINITY): Use int64_t maximum.
33646 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
33647 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
33648 * modulo-sched.c (const_iteration_count): Use int64_t.
33649 (sms_schedule): Dump using PRId64.
33650 * predict.c (dump_prediction): Likewise.
33651 * pretty-print.h (pp_widest_integer): Remove.
33652 * profile.c (get_working_sets, is_edge_inconsistent,
33653 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
33654 * tree-pretty-print.c (pp_double_int): Remove case handling
33655 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
33656 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
33657 and adjust users.
33658 (pass_optimize_bswap::execute): Remove restriction on hosts.
33659 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
33660 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
33661 * tree.c (widest_int_cst_value): Remove.
33662 * tree.h (widest_int_cst_value): Likewise.
33663 * value-prof.c (dump_histogram_value): Print using PRId64.
33664 * gengtype.c (main): Also inject int64_t.
33665 * ggc-page.c (struct max_alignment): Use int64_t.
33666 * alloc-pool.c (struct allocation_object_def): Likewise.
33667 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
33668 for computation.
33669 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
33670 * doc/tm.texi: Regenerated.
33671 * gengtype-lex.l (IWORD): Handle [u]int64_t.
33672 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
33673 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
33674 mmix_output_register_setting): Use [u]int64_t in prototypes.
33675 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
33676 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
33677 mmix_output_octa, mmix_output_shifted_value): Adjust.
33678 (mmix_intval): Adjust. Remove unreachable case.
33679 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
33680
33681 2014-05-26 Richard Biener <rguenther@suse.de>
33682
33683 * configure.ac: Drop __int64 type check. Insist that we
33684 found uint64_t and int64_t.
33685 * hwint.h (HOST_BITS_PER___INT64): Remove.
33686 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
33687 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
33688 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
33689 (HOST_WIDEST_FAST_INT): Remove __int64 case.
33690 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
33691 for dst_q_src_df_rms_cdt.
33692 * configure: Regenerate.
33693 * config.in: Likewise.
33694
33695 2014-05-26 Michael Tautschnig <mt@debian.org>
33696
33697 PR target/61249
33698 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
33699 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
33700
33701 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33702
33703 PR rtl-optimization/61278
33704 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
33705
33706 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33707
33708 PR rtl-optimization/61220
33709 Part of PR rtl-optimization/61225
33710 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
33711 insn; skip split_edge for a block with only one successor.
33712
33713 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
33714
33715 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
33716 for variables.
33717
33718 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
33719
33720 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
33721 (update_vtable_references): New function.
33722 (function_and_variable_visibility): Rewrite also vtable initializers.
33723 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
33724
33725 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
33726
33727 * ggc.h (ggc_grow): New function.
33728 * ggc-none.c (ggc_grow): New function.
33729 * ggc-page.c (ggc_grow): Likewise.
33730
33731 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
33732
33733 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
33734 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
33735 comdat_can_be_unshared_p, cgraph_externally_visible_p,
33736 varpool_externally_visible_p, can_replace_by_local_alias,
33737 update_visibility_by_resolution_info, function_and_variable_visibility,
33738 pass_data_ipa_function_and_variable_visibility,
33739 make_pass_ipa_function_and_variable_visibility,
33740 whole_program_function_and_variable_visibility,
33741 pass_data_ipa_whole_program_visibility,
33742 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
33743 * cgraph.h (cgraph_local_node_p): Declare.
33744 * ipa-visibility.c: New file.
33745 * Makefile.in (OBJS): Add ipa-visiblity.o
33746
33747 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
33748
33749 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
33750 that var decl is available.
33751
33752 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
33753
33754 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
33755 symtab_node pointer.
33756 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
33757 (find_decls_types_r): Do not walk COMDAT_GROUP.
33758 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
33759 * varasm.c (make_decl_one_only): Use set_comdat_group;
33760 create node if needed.
33761 * ipa-inline-transform.c (save_inline_function_body): Update
33762 way we decl->symtab mapping.
33763 * symtab.c (symtab_hash, hash_node, eq_node
33764 symtab_insert_node_to_hashtable): Remove.
33765 (symtab_register_node): Update.
33766 (symtab_unregister_node): Update.
33767 (symtab_get_node): Reimplement as inline function.
33768 (symtab_add_to_same_comdat_group): Update.
33769 (symtab_dissolve_same_comdat_group_list): Update.
33770 (dump_symtab_base): Update.
33771 (verify_symtab_base): Update.
33772 (symtab_make_decl_local): Update.
33773 (fixup_same_cpp_alias_visibility): Update.
33774 (symtab_nonoverwritable_alias): Update.
33775 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
33776 * ipa.c (update_visibility_by_resolution_info): UPdate.
33777 * bb-reorder.c: Include cgraph.h
33778 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
33779 with comdat groups.
33780 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
33781 * cgraph.c (cgraph_get_create_node): Update.
33782 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
33783 and comdat_group_.
33784 (symtab_get_node): Make inline.
33785 (symtab_insert_node_to_hashtable): Remove.
33786 (symtab_can_be_discarded): Update.
33787 (decl_comdat_group): New function.
33788 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
33789 Update.
33790 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
33791 comdat group name.
33792 (read_comdat_group): New function.
33793 (input_node, input_varpool_node): Use it.
33794 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
33795 comdat groups.
33796 * mips.c (mips_start_unique_function): Likewise.
33797 (ix86_code_end): Likewise.
33798 (rs6000_code_end): Likweise.
33799 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
33800
33801 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
33802
33803 * gengtype-state.c (fatal_reading_state): Bring offline.
33804 * optabs.c (widening_optab_handler): Bring offline.
33805 * optabs.h (widening_optab_handler): Likewise.
33806 * final.c (get_attr_length_1): Likewise.
33807
33808 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
33809
33810 * sched-int.h (sd_iterator_cond): Manually tail recurse.
33811
33812 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
33813
33814 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
33815 (ppc440-compare): Include shift with dot.
33816 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
33817 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
33818 without dot.
33819 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
33820 without dot.
33821 (e6500_sfx2): Include it.
33822 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
33823 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
33824 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
33825 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
33826 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
33827 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
33828 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
33829 *lshiftrt_internal1le, *lshiftrt_internal1be,
33830 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
33831 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
33832 *rotldi3_internal10le, *rotldi3_internal10be,
33833 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
33834 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
33835 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
33836 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
33837 define_insns): Use type "shift" in the appropriate alternatives.
33838
33839 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
33840
33841 * config/rs6000/rs6000.md (type): Add "logical". Delete
33842 "fast_compare".
33843 (dot): Adjust comment.
33844 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
33845 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
33846 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
33847 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
33848 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
33849 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
33850 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
33851 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
33852
33853 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
33854 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
33855 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
33856 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
33857 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
33858 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
33859 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
33860 * config/rs6000/8540.md (ppc8540_su): Adjust.
33861 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
33862 cell-cmp-microcoded): Adjust.
33863 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
33864 * config/rs6000/e500mc.md (e500mc_su): Adjust.
33865 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
33866 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
33867 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
33868 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
33869 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
33870 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
33871 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
33872 Adjust.
33873 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
33874 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
33875 Adjust. Adjust comment.
33876 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
33877 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
33878
33879 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
33880
33881 * config/rs6000/rs6000.md (type): Add "add".
33882 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
33883 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
33884 define_insns): Use it.
33885 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
33886
33887 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
33888 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
33889 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
33890 * config/rs6000/601.md (ppc601-integer): Adjust.
33891 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
33892 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
33893 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
33894 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
33895 * config/rs6000/8540.md (ppc8540_su): Adjust.
33896 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
33897 cell-cmp-microcoded): Adjust.
33898 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
33899 * config/rs6000/e500mc.md (e500mc_su): Adjust.
33900 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
33901 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
33902 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
33903 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
33904 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
33905 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
33906 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
33907 Adjust.
33908 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
33909 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
33910 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
33911 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
33912
33913 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
33914
33915 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
33916 "delayed_compare", "var_delayed_compare".
33917 (var_shift): New attribute.
33918 (cell_micro): Adjust.
33919 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
33920 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
33921 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
33922 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
33923 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
33924 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
33925 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
33926 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
33927 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
33928 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
33929 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
33930 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
33931 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
33932 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
33933 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
33934 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
33935 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
33936 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
33937 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
33938 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
33939 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
33940 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
33941 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
33942 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
33943 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
33944
33945 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
33946 * config/rs6000/440.md (ppc440-integer): Adjust.
33947 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
33948 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
33949 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
33950 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
33951 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
33952 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
33953 * config/rs6000/8540.md (ppc8540_su): Adjust.
33954 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
33955 cell-cmp-microcoded): Adjust.
33956 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
33957 * config/rs6000/e500mc.md (e500mc_su): Adjust.
33958 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
33959 e500mc64_delayed): Adjust.
33960 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
33961 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
33962 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
33963 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
33964 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
33965 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
33966 power6-delayed-compare, power6-var-delayed-compare): Adjust.
33967 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
33968 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
33969 Adjust comment.
33970 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
33971 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
33972
33973 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
33974
33975 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
33976 (bits): New mode_attr.
33977 (idiv_ldiv): Delete mode_attr.
33978 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
33979 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
33980 rs6000_adjust_priority, is_nonpipeline_insn,
33981 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
33982
33983 * config/rs6000/40x.md (ppc403-idiv): Adjust.
33984 * config/rs6000/440.md (ppc440-idiv): Adjust.
33985 * config/rs6000/476.md (ppc476-idiv): Adjust.
33986 * config/rs6000/601.md (ppc601-idiv): Adjust.
33987 * config/rs6000/603.md (ppc603-idiv): Adjust.
33988 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
33989 ppc620-ldiv): Adjust.
33990 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
33991 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
33992 * config/rs6000/8540.md (ppc8540_divide): Adjust.
33993 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
33994 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
33995 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
33996 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
33997 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
33998 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
33999 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
34000 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
34001 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
34002 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
34003 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
34004 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
34005 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
34006 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
34007 * config/rs6000/titan.md (titan_fxu_div): Adjust.
34008
34009 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
34010
34011 * config/rs6000/rs6000.md (type): Delete "insert_word",
34012 "insert_dword". Add "insert".
34013 (size): Update comment.
34014 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
34015 insn_must_be_first_in_group): Adjust.
34016 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
34017 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
34018 *insvsi_internal6, insvdi_internal): Adjust.
34019
34020 * config/rs6000/40x.md (ppc403-integer): Adjust.
34021 * config/rs6000/440.md (ppc440-integer): Adjust.
34022 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
34023 * config/rs6000/601.md (ppc601-integer): Adjust.
34024 * config/rs6000/603.md (ppc603-integer): Adjust.
34025 * config/rs6000/6xx.md (ppc604-integer): Adjust.
34026 * config/rs6000/7450.md (ppc7450-integer): Adjust.
34027 * config/rs6000/7xx.md (ppc750-integer): Adjust.
34028 * config/rs6000/8540.md (ppc8540_su): Adjust.
34029 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
34030 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
34031 * config/rs6000/e500mc.md (e500mc_su): Adjust.
34032 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
34033 * config/rs6000/e5500.md (e5500_sfx): Adjust.
34034 * config/rs6000/e6500.md (e6500_sfx): Adjust.
34035 * config/rs6000/mpc.md (mpccore-integer): Adjust.
34036 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
34037 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
34038 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
34039 * config/rs6000/power7.md (power7-integer): Adjust.
34040 * config/rs6000/power8.md (power8-1cyc): Adjust.
34041 * config/rs6000/rs64.md (rs64a-integer): Adjust.
34042 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
34043
34044 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
34045
34046 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
34047 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
34048 (size): New attribute.
34049 (dot): New attribute.
34050 (cell_micro): Adjust.
34051 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
34052 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
34053 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
34054 umuldi3_highpart): Adjust.
34055 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
34056 rs6000_adjust_priority, is_nonpipeline_insn,
34057 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
34058
34059 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
34060 ppc405-imul3): Adjust.
34061 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
34062 * config/rs6000/476.md (ppc476-imul): Adjust.
34063 * config/rs6000/601.md (ppc601-imul): Adjust.
34064 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
34065 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
34066 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
34067 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
34068 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
34069 Adjust.
34070 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
34071 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
34072 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
34073 cell-imul): Adjust.
34074 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
34075 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
34076 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
34077 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
34078 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
34079 * config/rs6000/mpc.md (mpccore-imul): Adjust.
34080 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
34081 power4-lmul, power4-imul, power4-imul3): Adjust.
34082 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
34083 power5-lmul, power5-imul, power5-imul3): Adjust.
34084 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
34085 power6-lmul, power6-imul, power6-imul3): Adjust.
34086 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
34087 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
34088
34089 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
34090 rs64a-lmul): Adjust.
34091 * config/rs6000/titan.md (titan_imul): Adjust.
34092
34093 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
34094
34095 * config/rs6000/rs6000.md (type): Add new value "halfmul".
34096 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
34097 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
34098 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
34099 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
34100 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
34101 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
34102 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
34103 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
34104 * config/rs6000/titan.md: Delete nonsensical comment.
34105 (titan_imul): Add type imul3.
34106 (titan_mulhw): Remove type imul3; add type halfmul.
34107
34108 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
34109
34110 * config/rs6000/rs6000.md (type): Reorder, reformat.
34111
34112 2014-05-23 Martin Jambor <mjambor@suse.cz>
34113
34114 PR tree-optimization/53787
34115 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
34116 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
34117 analysis_done, update all uses.
34118 * ipa-prop.c: Include domwalk.h
34119 (param_analysis_info): Removed.
34120 (param_aa_status): New type.
34121 (ipa_bb_info): Likewise.
34122 (func_body_info): Likewise.
34123 (ipa_get_bb_info): New function.
34124 (aa_overwalked): Likewise.
34125 (find_dominating_aa_status): Likewise.
34126 (parm_bb_aa_status_for_bb): Likewise.
34127 (parm_preserved_before_stmt_p): Changed to use new param AA info.
34128 (load_from_unmodified_param): Accept func_body_info as a parameter
34129 instead of parms_ainfo.
34130 (parm_ref_data_preserved_p): Changed to use new param AA info.
34131 (parm_ref_data_pass_through_p): Likewise.
34132 (ipa_load_from_parm_agg_1): Likewise. Update callers.
34133 (compute_complex_assign_jump_func): Changed to use new param AA info.
34134 (compute_complex_ancestor_jump_func): Likewise.
34135 (ipa_compute_jump_functions_for_edge): Likewise.
34136 (ipa_compute_jump_functions): Removed.
34137 (ipa_compute_jump_functions_for_bb): New function.
34138 (ipa_analyze_indirect_call_uses): Likewise, moved variable
34139 declarations down.
34140 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
34141 and info, moved variable declarations down.
34142 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
34143 node and info.
34144 (ipa_analyze_stmt_uses): Likewise.
34145 (ipa_analyze_params_uses): Removed.
34146 (ipa_analyze_params_uses_in_bb): New function.
34147 (ipa_analyze_controlled_uses): Likewise.
34148 (free_ipa_bb_info): Likewise.
34149 (analysis_dom_walker): New class.
34150 (ipa_analyze_node): Handle node-specific forbidden analysis,
34151 initialize and free func_body_info, use dominator walker.
34152 (ipcp_modif_dom_walker): New class.
34153 (ipcp_transform_function): Create and free func_body_info, use
34154 ipcp_modif_dom_walker, moved a lot of functionality there.
34155
34156 2014-05-23 Marek Polacek <polacek@redhat.com>
34157 Jakub Jelinek <jakub@redhat.com>
34158
34159 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
34160 * gcc.c (sanitize_spec_function): Likewise.
34161 * convert.c (convert_to_integer): Include "ubsan.h". Add
34162 floating-point to integer instrumentation.
34163 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
34164 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
34165 SANITIZE_NONDEFAULT.
34166 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
34167 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
34168 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
34169 * ubsan.c: Include "realmpfr.h" and "dfp.h".
34170 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
34171 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
34172 float/double/long double.
34173 (ubsan_instrument_float_cast): New function.
34174 * ubsan.h (ubsan_instrument_float_cast): Declare.
34175
34176 2014-05-23 Jiong Wang <jiong.wang@arm.com>
34177
34178 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
34179 predicate.
34180 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
34181 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
34182 Adjust for tailcalling through registers.
34183 * config/aarch64/aarch64.h (enum reg_class): New caller save
34184 register class.
34185 (REG_CLASS_NAMES): Likewise.
34186 (REG_CLASS_CONTENTS): Likewise.
34187 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
34188 Allow tailcalling without decls.
34189
34190 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
34191
34192 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
34193 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
34194
34195 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
34196 gsi, and variables v_* to v*.
34197
34198 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
34199
34200 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
34201
34202 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
34203
34204 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
34205 * omp-low.c: Update accordingly.
34206
34207 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
34208 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
34209 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
34210 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
34211 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
34212 GF_OMP_TARGET_KIND_UPDATE.
34213
34214 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
34215 Explicitly enumerate the expected region types.
34216
34217 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
34218
34219 PR other/56955
34220 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
34221 documentation; the old documentation didn't clearly state the
34222 constraints on the contents of the pointed-to storage.
34223
34224 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34225
34226 Fix bootstrap error on ia64
34227 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
34228 Return default value.
34229
34230 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
34231
34232 PR tree-optimization/54733
34233 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
34234 (CMPNOP): Define.
34235 (find_bswap_or_nop_load): New.
34236 (find_bswap_1): Renamed to ...
34237 (find_bswap_or_nop_1): This. Also add support for memory source.
34238 (find_bswap): Renamed to ...
34239 (find_bswap_or_nop): This. Also add support for memory source and
34240 detection of bitwise operations equivalent to load in target
34241 endianness.
34242 (execute_optimize_bswap): Likewise. Also move its leading comment back
34243 in place and split statement transformation into ...
34244 (bswap_replace): This.
34245
34246 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
34247
34248 PR rtl-optimization/61215
34249 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
34250 simplify_gen_subreg until final substitution.
34251
34252 2014-05-23 Alan Modra <amodra@gmail.com>
34253
34254 PR target/61231
34255 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
34256 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
34257 Use "Y" constraint rather than "m".
34258
34259 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
34260
34261 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
34262 define.
34263 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
34264 New function declaration.
34265 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
34266 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
34267 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
34268 (aarch64_init_builtins) : Initialize builtins
34269 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
34270 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
34271 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
34272 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
34273 and __builtins_aarch64_set_fpsr.
34274 (aarch64_atomic_assign_expand_fenv): New function.
34275 * config/aarch64/aarch64.md (set_fpcr): New pattern.
34276 (get_fpcr) : Likewise.
34277 (set_fpsr) : Likewise.
34278 (get_fpsr) : Likewise.
34279 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
34280 and UNSPECV_SET_FPSR.
34281 * doc/extend.texi (AARCH64 Built-in Functions) : Document
34282 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
34283 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
34284
34285 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
34286
34287 PR rtl-optimization/60969
34288 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
34289 constraints. Set up mem cost for NO_REGS case.
34290
34291 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
34292
34293 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
34294
34295 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
34296
34297 * config/darwin.c: Include "lto-section-names.h".
34298 (LTO_SEGMENT_NAME): Don't define.
34299 * config/i386/winnt.c: Include "lto-section-names.h".
34300 * lto-streamer.c: Include "lto-section-names.h".
34301 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
34302 * lto-wrapper.c: Include "lto-section-names.h".
34303 (LTO_SECTION_NAME_PREFIX): Don't define.
34304 * lto-section-names.h: New file.
34305 * cgraphunit.c: Include "lto-section-names.h".
34306
34307 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
34308
34309 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
34310
34311 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
34312
34313 PR target/61208
34314 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
34315
34316 2014-05-22 Nick Clifton <nickc@redhat.com>
34317
34318 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
34319
34320 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
34321
34322 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
34323 -> (T)A transformation to integer types.
34324
34325 2014-05-22 Teresa Johnson <tejohnson@google.com>
34326
34327 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
34328 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
34329 (gcov_rewrite): Use gcov_nonruntime_assert.
34330 (gcov_open): Ditto.
34331 (gcov_write_words): Ditto.
34332 (gcov_write_length): Ditto.
34333 (gcov_read_words): Use gcov_nonruntime_assert, and remove
34334 gcc_assert from IN_LIBGCOV code.
34335 (gcov_read_summary): Use gcov_error to flag profile corruption.
34336 (gcov_sync): Use gcov_nonruntime_assert.
34337 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
34338 (gcov_histo_index): Use gcov_nonruntime_assert.
34339 (static void gcov_histogram_merge): Ditto.
34340 (compute_working_sets): Ditto.
34341 * gcov-io.h (gcov_nonruntime_assert): Define.
34342 (gcov_error): Define for !IN_LIBGCOV
34343
34344 2014-05-22 Richard Biener <rguenther@suse.de>
34345
34346 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
34347 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
34348 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
34349 and deallocation site.
34350 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
34351 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
34352 passing through the incoming points-to set.
34353 (handle_lhs_call): Use flags argument instead of recomputing it.
34354 (find_func_aliases_for_call): Call handle_lhs_call with proper
34355 call return flags.
34356
34357 2014-05-22 Jakub Jelinek <jakub@redhat.com>
34358
34359 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
34360 all padding bits in REAL_VALUE_TYPE are cleared.
34361
34362 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34363
34364 Cleanup and improve multipass_dfa_lookahead_guard
34365 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
34366 (core2i7_first_cycle_multipass_begin,)
34367 (core2i7_first_cycle_multipass_issue,)
34368 (core2i7_first_cycle_multipass_backtrack): Update signature.
34369 * config/ia64/ia64.c
34370 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
34371 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
34372 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
34373 hook definition.
34374 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
34375 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
34376 values.
34377 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
34378 return values.
34379 * doc/tm.texi: Regenerate.
34380 * doc/tm.texi.in
34381 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
34382 * haifa-sched.c (ready_try): Make signed to allow negative values.
34383 (rebug_ready_list_1): Update.
34384 (choose_ready): Simplify.
34385 (sched_extend_ready_list): Update.
34386
34387 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34388
34389 Remove IA64 speculation tweaking flags
34390 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
34391 speculation tuning flags.
34392 (msched-prefer-non-data-spec-insns,)
34393 (msched-prefer-non-control-spec-insns): Obsolete options.
34394 * haifa-sched.c (choose_ready): Remove handling of
34395 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
34396 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
34397 and PREFER_NON_DATA_SPEC.
34398 * sel-sched.c (process_spec_exprs): Remove handling of
34399 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
34400
34401 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34402
34403 Improve scheduling debug output
34404 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
34405 (advance_one_cycle): Update.
34406 (schedule_insn, queue_to_ready): Add debug printouts.
34407 (debug_ready_list_1): New static function.
34408 (debug_ready_list): Update.
34409 (max_issue): Add debug printouts.
34410 (dump_insn_stream): New static function.
34411 (schedule_block): Use it. Also better indent printouts.
34412
34413 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34414
34415 Fix sched_insn debug counter
34416 * haifa-sched.c (schedule_insn): Update.
34417 (struct haifa_saved_data): Add nonscheduled_insns_begin.
34418 (save_backtrack_point, restore_backtrack_point): Update.
34419 (first_nonscheduled_insn): New static function.
34420 (queue_to_ready, choose_ready): Use it.
34421 (schedule_block): Init nonscheduled_insns_begin.
34422 (sched_emit_insn): Update.
34423
34424
34425 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
34426
34427 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
34428 to GENERAL_REGS.
34429 (aarch64_secondary_reload) : LikeWise.
34430 (aarch64_class_max_nregs) : Remove CORE_REGS.
34431 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
34432 (REG_CLASS_NAMES) : Likewise.
34433 (REG_CLASS_CONTENTS) : LikeWise.
34434 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
34435
34436 2014-05-21 Guozhi Wei <carrot@google.com>
34437
34438 PR target/61202
34439 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
34440 constraint.
34441 (vqdmulhq_n_s16): Likewise.
34442
34443 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
34444
34445 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
34446
34447 2014-05-21 Marek Polacek <polacek@redhat.com>
34448
34449 PR sanitizer/61272
34450 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
34451
34452 2014-05-21 Martin Jambor <mjambor@suse.cz>
34453
34454 * doc/invoke.texi (Optimize Options): Document parameters
34455 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
34456 ipa-cp-array-index-hint-bonus.
34457
34458 2014-05-21 Mark Wielaard <mjw@redhat.com>
34459
34460 PR debug/16063
34461 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
34462 version >= 3 or not strict DWARF.
34463 * langhooks.h (struct lang_hooks_for_types): Add
34464 enum_underlying_base_type.
34465 * langhooks.c (lhd_enum_underlying_base_type): New function.
34466 * gcc/langhooks.h (struct lang_hooks_for_types): Add
34467 enum_underlying_base_type.
34468 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
34469 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
34470 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
34471
34472 2014-05-21 Richard Biener <rguenther@suse.de>
34473
34474 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
34475
34476 2014-05-21 John Marino <gnugcc@marino.st>
34477
34478 * config.gcc (*-*-dragonfly*): New target.
34479 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
34480 * configure: Regenerate.
34481 * config/dragonfly-stdint.h: New.
34482 * config/dragonfly.h: New.
34483 * config/dragonfly.opt: New.
34484 * config/i386/dragonfly.h: New.
34485 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
34486
34487 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
34488
34489 * tree.def (VOID_CST): New.
34490 * tree-core.h (TI_VOID): New.
34491 * tree.h (void_node): New.
34492 * tree.c (tree_node_structure_for_code, tree_code_size)
34493 (iterative_hash_expr): Handle VOID_CST.
34494 (build_common_tree_nodes): Initialize void_node.
34495
34496 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
34497
34498 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
34499 functions.
34500 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
34501
34502 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
34503 more places.
34504
34505 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
34506 flag_reorder_blocks_and_partition.
34507 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
34508
34509 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
34510
34511 PR target/54236
34512 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
34513 constraints.
34514 (*addc_r_t): Add new insn_and_split.
34515
34516 2014-05-21 Jakub Jelinek <jakub@redhat.com>
34517
34518 PR middle-end/61252
34519 * omp-low.c (handle_simd_reference): New function.
34520 (lower_rec_input_clauses): Use it. Defer adding reference
34521 initialization even for reduction without placeholder if in simd,
34522 handle it properly later on.
34523
34524 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
34525
34526 PR tree-optimization/60899
34527 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
34528 assume all static symbols will have definition wile parsing and
34529 check the do have definition later in compilation; check that
34530 variable referring symbol will be output before concluding that
34531 reference is safe; be conservative for referring local statics;
34532 be more precise about when comdat is output in other partition.
34533
34534 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
34535
34536 PR bootstrap/60984
34537 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
34538 parameter.
34539 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
34540 (ipa_inline): Loop inline_to_all_callers until no more aliases
34541 are removed.
34542
34543 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
34544
34545 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
34546 set writeonly flag only for vars actually written to.
34547
34548 2014-05-20 Dehao Chen <dehao@google.com>
34549
34550 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
34551 and callee count to get clone count.
34552 * tree-inline.c (expand_call_inline): Use callee count instead of bb
34553 count in copy_body.
34554
34555 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
34556
34557 PR rtl-optimization/61243
34558 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
34559
34560 2014-05-20 Xinliang David Li <davidxl@google.com>
34561
34562 * cgraphunit.c (walk_polymorphic_call_targets): Add
34563 dbgcnt and fopt-info support.
34564 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
34565 * ipa-devirt.c (ipa_devirt): Ditto.
34566 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
34567 * ipa.c (walk_polymorphic_call_targets): Ditto.
34568 * gimple-fold.c (fold_gimple_assign): Ditto.
34569 (gimple_fold_call): Ditto.
34570 * dbgcnt.def: New counter.
34571
34572 2014-05-20 DJ Delorie <dj@redhat.com>
34573
34574 * config/msp430/msp430.md (split): Don't allow subregs when
34575 splitting SImode adds.
34576 (andneghi): Fix subtraction logic.
34577 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
34578
34579 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
34580
34581 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
34582 symbols.
34583 * except.c (switch_to_exception_section, resolve_unique_section,
34584 get_named_text_section, default_function_rodata_section,
34585 align_variable, get_block_for_decl, default_section_type_flags):
34586 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
34587 * symtab.c (symtab_add_to_same_comdat_group,
34588 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
34589 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
34590 Likewise.
34591 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
34592 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
34593 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
34594 (c6x_function_in_section_p): Likewise.
34595 * config/darwin.c (machopic_select_section): Likewise.
34596 * config/arm/arm.c (arm_function_in_section_p): Likewise.
34597 * config/mips/mips.c (mips_function_rodata_section): Likewise.
34598 * config/mep/mep.c (mep_select_section): LIkewise.
34599 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
34600
34601 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
34602
34603 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
34604 EH region of calls to pure functions that can throw an exception.
34605 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
34606 (copy_reference_ops_from_call): Also copy the EH region of the call if
34607 it can throw an exception.
34608
34609 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34610
34611 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
34612 nested VEC_SELECTs that are inverses of each other.
34613
34614 2014-05-20 Richard Biener <rguenther@suse.de>
34615
34616 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
34617 (extract_and_process_scc_for_name): not here.
34618 (cond_dom_walker::before_dom_children): Only process
34619 stmts that end the BB in interesting ways.
34620 (run_scc_vn): Mark param uses as visited.
34621
34622 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34623
34624 * config/arm/arm.md (arith_shiftsi): Do not predicate for
34625 arm_restrict_it.
34626
34627 2014-05-20 Nick Clifton <nickc@redhat.com>
34628
34629 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
34630 (msp430_gimplify_va_arg_expr): New function.
34631 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
34632
34633 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
34634 operand 0 in order to prevent confusion about the number of
34635 registers involved.
34636
34637 2014-05-20 Richard Biener <rguenther@suse.de>
34638
34639 PR tree-optimization/61221
34640 * tree-ssa-pre.c (el_to_update): Remove.
34641 (eliminate_dom_walker::before_dom_children): Handle released
34642 VDEFs by value-numbering them to the associated VUSE. Update
34643 stmt immediately for substituted call address.
34644 (eliminate): Remove delayed stmt updating code.
34645 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
34646 possibly late re-numbered vuses.
34647 (vn_reference_lookup_2): Adjust.
34648 (vn_reference_lookup_pieces): Likewise.
34649 (vn_reference_lookup): Likewise.
34650
34651 2014-05-20 Richard Biener <rguenther@suse.de>
34652
34653 * config.gcc: Remove need_64bit_hwint.
34654 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
34655 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
34656 it to be true.
34657 * config.in: Regenerate.
34658 * configure: Likewise.
34659
34660 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
34661
34662 * doc/extend.texi: Create Label Attributes section,
34663 move all label attributes into it and reference it.
34664
34665 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
34666
34667 * arm.c (thumb1_reorg): When scanning backwards skip anything
34668 that's not a proper insn.
34669
34670 2014-05-19 Richard Biener <rguenther@suse.de>
34671
34672 PR tree-optimization/61221
34673 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
34674 Do nothing for unreachable blocks.
34675 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
34676 Improve unreachability detection.
34677
34678 2014-05-19 Richard Biener <rguenther@suse.de>
34679
34680 PR tree-optimization/61209
34681 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
34682
34683 2014-05-19 Nick Clifton <nickc@redhat.com>
34684
34685 * except.c (init_eh): Fix computation of builtin setjmp buffer
34686 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
34687
34688 2014-05-19 Richard Biener <rguenther@suse.de>
34689
34690 PR tree-optimization/61184
34691 * tree-vrp.c (is_negative_overflow_infinity): Use
34692 TREE_OVERFLOW_P and do that check first.
34693 (is_positive_overflow_infinity): Likewise.
34694 (is_overflow_infinity): Likewise.
34695 (vrp_operand_equal_p): Properly treat operands with
34696 differing overflow as not equal.
34697
34698 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
34699
34700 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
34701 shift simplification where it was intended.
34702
34703 2014-05-19 Christian Bruel <christian.bruel@st.com>
34704
34705 PR target/61195
34706 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
34707
34708 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
34709
34710 PR target/61084
34711 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
34712 than wide_int.
34713
34714 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
34715
34716 * reg-notes.def (CROSSING_JUMP): Likewise.
34717 * rtl.h (rtx_def): Update comment for jump flag.
34718 (CROSSING_JUMP_P): Define.
34719 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
34720 of a REG_CROSSING_JUMP note.
34721 * cfghooks.c (tidy_fallthru_edges): Likewise.
34722 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
34723 * emit-rtl.c (try_split): Likewise.
34724 * haifa-sched.c (sched_create_recovery_edges): Likewise.
34725 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
34726 * jump.c (redirect_jump_2): Likewise.
34727 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
34728 (relax_delay_slots): Likewise.
34729 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
34730 (bbit_di): Likewise.
34731 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
34732 * config/sh/sh.md (jump_compact): Likewise.
34733 * bb-reorder.c (rotate_loop): Likewise.
34734 (pass_duplicate_computed_gotos::execute): Likewise.
34735 (add_reg_crossing_jump_notes): Rename to...
34736 (update_crossing_jump_flags): ...this.
34737 (pass_partition_blocks::execute): Update accordingly.
34738
34739 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
34740
34741 * tree.h: Remove extraneous template <>.
34742
34743 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
34744
34745 * ipa.c (symtab_remove_unreachable_nodes): Remove
34746 symbol from comdat group if its body was eliminated.
34747 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
34748 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
34749 (symtab_unregister_node): ... this one.
34750 (verify_symtab_base): More strict checking of comdats.
34751 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
34752
34753 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
34754
34755 * tree-pass.h (make_pass_ipa_comdats): New pass.
34756 * timevar.def (TV_IPA_COMDATS): New timevar.
34757 * passes.def (pass_ipa_comdats): Add.
34758 * Makefile.in (OBJS): Add ipa-comdats.o
34759 * ipa-comdats.c: New file.
34760
34761 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
34762
34763 * ipa.c (update_visibility_by_resolution_info): New function.
34764 (function_and_variable_visibility): Use it.
34765
34766 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
34767
34768 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
34769 New functions.
34770 (FOR_EACH_DEFINED_SYMBOL): New macro.
34771 (varpool_first_static_initializer, varpool_next_static_initializer,
34772 varpool_first_defined_variable, varpool_next_defined_variable):
34773 Fix comments.
34774 (symtab_in_same_comdat_p): Correctly deal with inline functions.
34775
34776 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
34777
34778 * ggc-page.c (ggc_handle_finalizers): Add comment.
34779
34780 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
34781
34782 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
34783 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
34784 (ggc_internal_cleared_alloc): Likewise.
34785 * ggc-page.c (finalizer): New class.
34786 (vec_finalizer): Likewise.
34787 (globals::finalizers): New member.
34788 (globals::vec_finalizers): Likewise.
34789 (ggc_internal_alloc): Record the finalizer if any for the block being
34790 allocated.
34791 (ggc_handle_finalizers): New function.
34792 (ggc_collect): Call ggc_handle_finalizers.
34793 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
34794 finalizer.
34795 (ggc_internal_cleared_alloc): Likewise.
34796 (finalize): New function.
34797 (need_finalization_p): Likewise.
34798 (ggc_alloc): Install the type's destructor as the finalizer if it
34799 might do something.
34800 (ggc_cleared_alloc): Likewise.
34801 (ggc_vec_alloc): Likewise.
34802 (ggc_cleared_vec_alloc): Likewise.
34803
34804 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
34805
34806 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
34807
34808 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
34809
34810 * alias.c (record_alias_subset): Adjust.
34811 * bitmap.c (bitmap_element_allocate): Likewise.
34812 (bitmap_gc_alloc_stat): Likewise.
34813 * cfg.c (init_flow): Likewise.
34814 (alloc_block): Likewise.
34815 (unchecked_make_edge): Likewise.
34816 * cfgloop.c (alloc_loop): Likewise.
34817 (flow_loops_find): Likewise.
34818 (rescan_loop_exit): Likewise.
34819 * cfgrtl.c (init_rtl_bb_info): Likewise.
34820 * cgraph.c (insert_new_cgraph_node_version): Likewise.
34821 (cgraph_allocate_node): Likewise.
34822 (cgraph_create_edge_1): Likewise.
34823 (cgraph_allocate_init_indirect_info): Likewise.
34824 * cgraphclones.c (cgraph_clone_edge): Likewise.
34825 * cgraphunit.c (add_asm_node): Likewise.
34826 (init_lowered_empty_function): Likewise.
34827 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
34828 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
34829 (alpha_use_linkage): Likewise.
34830 * config/arc/arc.c (arc_init_machine_status): Likewise.
34831 * config/arm/arm.c (arm_init_machine_status): Likewise.
34832 * config/avr/avr.c (avr_init_machine_status): Likewise.
34833 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
34834 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
34835 * config/cris/cris.c (cris_init_machine_status): Likewise.
34836 * config/darwin.c (machopic_indirection_name): Likewise.
34837 (darwin_build_constant_cfstring): Likewise.
34838 (darwin_enter_string_into_cfstring_table): Likewise.
34839 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
34840 * config/frv/frv.c (frv_init_machine_status): Likewise.
34841 * config/i386/i386.c (get_dllimport_decl): Likewise.
34842 (ix86_init_machine_status): Likewise.
34843 (assign_386_stack_local): Likewise.
34844 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
34845 (i386_pe_maybe_record_exported_symbol): Likewise.
34846 (i386_pe_record_stub): Likewise.
34847 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
34848 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
34849 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
34850 (m32c_note_pragma_address): Likewise.
34851 * config/mep/mep.c (mep_init_machine_status): Likewise.
34852 (mep_note_pragma_flag): Likewise.
34853 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
34854 (mips16_local_alias): Likewise.
34855 (mips_init_machine_status): Likewise.
34856 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
34857 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
34858 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
34859 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
34860 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
34861 * config/pa/pa.c (pa_init_machine_status): Likewise.
34862 (pa_get_deferred_plabel): Likewise.
34863 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
34864 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
34865 (rs6000_init_machine_status): Likewise.
34866 (output_toc): Likewise.
34867 * config/s390/s390.c (s390_init_machine_status): Likewise.
34868 * config/score/score.c (score_output_external): Likewise.
34869 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
34870 * config/spu/spu.c (spu_init_machine_status): Likewise.
34871 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
34872 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
34873 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
34874 * coverage.c (coverage_end_function): Likewise.
34875 * dbxout.c (dbxout_init): Likewise.
34876 * doc/gty.texi: Don't mention variable_size attribute.
34877 * dwarf2cfi.c (new_cfi): Adjust.
34878 (new_cfi_row): Likewise.
34879 (copy_cfi_row): Likewise.
34880 (create_cie_data): Likewise.
34881 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
34882 (new_loc_descr): Likewise.
34883 (find_AT_string_in_table): Likewise.
34884 (add_addr_table_entry): Likewise.
34885 (new_die): Likewise.
34886 (add_var_loc_to_decl): Likewise.
34887 (clone_die): Likewise.
34888 (clone_as_declaration): Likewise.
34889 (break_out_comdat_types): Likewise.
34890 (new_loc_list): Likewise.
34891 (add_loc_descr_to_each): Likewise.
34892 (add_location_or_const_value_attribute): Likewise.
34893 (add_linkage_name): Likewise.
34894 (lookup_filename): Likewise.
34895 (dwarf2out_var_location): Likewise.
34896 (new_line_info_table): Likewise.
34897 (dwarf2out_init): Likewise.
34898 (mem_loc_descriptor): Likewise.
34899 (loc_descriptor): Likewise.
34900 (add_const_value_attribute): Likewise.
34901 (tree_add_const_value_attribute): Likewise.
34902 (comp_dir_string): Likewise.
34903 (dwarf2out_vms_debug_main_pointer): Likewise.
34904 (string_cst_pool_decl): Likewise.
34905 * emit-rtl.c (set_mem_attrs): Likewise.
34906 (get_reg_attrs): Likewise.
34907 (start_sequence): Likewise.
34908 (init_emit): Likewise.
34909 (init_emit_regs): Likewise.
34910 * except.c (init_eh_for_function): Likewise.
34911 (gen_eh_region): Likewise.
34912 (gen_eh_region_catch): Likewise.
34913 (gen_eh_landing_pad): Likewise.
34914 (add_call_site): Likewise.
34915 * function.c (add_frame_space): Likewise.
34916 (insert_temp_slot_address): Likewise.
34917 (assign_stack_temp_for_type): Likewise.
34918 (get_hard_reg_initial_val): Likewise.
34919 (allocate_struct_function): Likewise.
34920 (prepare_function_start): Likewise.
34921 (types_used_by_var_decl_insert): Likewise.
34922 * gengtype.c (variable_size_p): Remove function.
34923 (enum alloc_quantity): Remove enum.
34924 (write_typed_alloc_def): Remove function.
34925 (write_typed_struct_alloc_def): Likewise.
34926 (write_typed_typedef_alloc_def): Likewise.
34927 (write_typed_alloc_defns): Likewise.
34928 (main): Adjust.
34929 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
34930 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
34931 * ggc.h (ggc_alloc): new function.
34932 (ggc_cleared_alloc): Likewise.
34933 (ggc_vec_alloc): Template on type of vector element, and remove
34934 element size argument.
34935 (ggc_cleared_vec_alloc): Likewise.
34936 * gimple.c (gimple_build_omp_for): Adjust.
34937 (gimple_copy): Likewise.
34938 * ipa-cp.c (get_replacement_map): Likewise.
34939 (find_aggregate_values_for_callers_subset): Likewise.
34940 (known_aggs_to_agg_replacement_list): Likewise.
34941 * ipa-devirt.c (get_odr_type): Likewise.
34942 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
34943 (read_agg_replacement_chain): Likewise.
34944 * loop-iv.c (get_simple_loop_desc): Likewise.
34945 * lto-cgraph.c (input_node_opt_summary): Likewise.
34946 * lto-section-in.c (lto_new_in_decl_state): Likewise.
34947 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
34948 (input_eh_region): Likewise.
34949 (input_eh_lp): Likewise.
34950 (input_cfg): Likewise.
34951 * optabs.c (set_optab_libfunc): Likewise.
34952 (init_tree_optimization_optabs): Likewise.
34953 (set_conv_libfunc): Likewise.
34954 * passes.c (do_per_function_toporder): Likewise.
34955 * rtl.h: Don't use variable_size gty attribute.
34956 * sese.c (if_region_set_false_region): Adjust.
34957 * stringpool.c (gt_pch_save_stringpool): Likewise.
34958 * target-globals.c (save_target_globals): Likewise.
34959 * toplev.c (general_init): Likewise.
34960 * trans-mem.c (record_tm_replacement): Likewise.
34961 (split_bb_make_tm_edge): Likewise.
34962 * tree-cfg.c (move_sese_region_to_fn): Likewise.
34963 * tree-data-ref.h (lambda_vector_new): Likewise.
34964 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
34965 * tree-iterator.c (tsi_link_before): Likewise.
34966 (tsi_link_after): Likewise.
34967 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
34968 * tree-ssa-loop-niter.c (record_estimate): Likewise.
34969 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
34970 * tree-ssa-operands.h: Don't use variable_size gty attribute.
34971 * tree-ssa.c (init_tree_ssa): Adjust.
34972 * tree-ssanames.c (set_range_info): Likewise.
34973 (get_ptr_info): Likewise.
34974 (duplicate_ssa_name_ptr_info): Likewise.
34975 (duplicate_ssa_name_range_info): Likewise.
34976 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
34977 (unpack_ts_fixed_cst_value_fields): Likewise.
34978 * tree.c (build_fixed): Likewise.
34979 (build_real): Likewise.
34980 (build_string): Likewise.
34981 (decl_priority_info): Likewise.
34982 (decl_debug_expr_insert): Likewise.
34983 (decl_value_expr_insert): Likewise.
34984 (decl_debug_args_insert): Likewise.
34985 (type_hash_add): Likewise.
34986 (build_omp_clause): Likewise.
34987 * ubsan.c (decl_for_type_insert): Likewise.
34988 * varasm.c (get_unnamed_section): Likewise.
34989 (get_noswitch_section): Likewise.
34990 (get_section): Likewise.
34991 (get_block_for_section): Likewise.
34992 (create_block_symbol): Likewise.
34993 (build_constant_desc): Likewise.
34994 (create_constant_pool): Likewise.
34995 (force_const_mem): Likewise.
34996 (record_tm_clone_pair): Likewise.
34997 * varpool.c (varpool_create_empty_node): Likewise.
34998
34999 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
35000
35001 * dwarf2out.c (tree_add_const_value_attribute): Call
35002 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
35003 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
35004 instead of ggc_internal_<x>alloc_stat.
35005 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
35006 (ggc_realloc): Likewise.
35007 * ggc-none.c (ggc_internal_alloc): Likewise.
35008 (ggc_internal_cleared_alloc): Likewise.
35009 * ggc-page.c: Likewise.
35010 * ggc.h (ggc_internal_alloc_stat): Likewise.
35011 (ggc_internal_alloc): Remove macro.
35012 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
35013 (ggc_internal_cleared_alloc): Remove macro.
35014 (GGC_RESIZEVEC): Adjust.
35015 (ggc_resizevar): Remove macro.
35016 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
35017 (ggc_internal_cleared_vec_alloc_stat): Likewise.
35018 (ggc_internal_vec_cleared_alloc): Remove macro.
35019 (ggc_alloc_atomic_stat): Drop _stat suffix.
35020 (ggc_alloc_atomic): Remove macro.
35021 (ggc_alloc_cleared_atomic): Remove macro.
35022 (ggc_alloc_string_stat): Drop _stat suffix.
35023 (ggc_alloc_string): Remove macro.
35024 (ggc_alloc_rtx_def_stat): Adjust.
35025 (ggc_alloc_tree_node_stat): Likewise.
35026 (ggc_alloc_cleared_tree_node_stat): Likewise.
35027 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
35028 (ggc_alloc_cleared_simd_clone_stat): Likewise.
35029 * gimple.c (gimple_build_omp_for): Likewise.
35030 (gimple_copy): Likewise.
35031 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
35032 * toplev.c (realloc_for_line_map): Adjust.
35033 * tree-data-ref.h (lambda_vector_new): Likewise.
35034 * tree-phinodes.c (allocate_phi_node): Likewise.
35035 * tree.c (grow_tree_vec_stat): Likewise.
35036 * vec.h (va_gc::reserve): Adjust.
35037
35038 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
35039
35040 * config/microblaze/microblaze.c (break_handler): New Declaration.
35041 (microblaze_break_function_p,microblaze_is_break_handler): New.
35042 (compute_frame_size): Use microblaze_break_function_p.
35043 Add the test of break_handler.
35044 (microblaze_function_prologue) : Add the test of variable
35045 break_handler. Check the fnname by BREAK_HANDLER_NAME.
35046 (microblaze_function_epilogue) : Add the test of break_handler.
35047 (microblaze_globalize_label) : Add the test of break_handler.
35048 Check the name by BREAK_HANDLER_NAME.
35049
35050 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
35051
35052 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
35053 microblaze_is_break_handler test.
35054 (call_internal1,call_value_intern): Use microblaze_break_function_p.
35055 Use SYMBOL_REF_DECL.
35056
35057 * config/microblaze/microblaze-protos.h
35058 (microblaze_break_function_p,microblaze_is_break_handler):
35059 New Declaration.
35060
35061 * doc/extend.texi (MicroBlaze break_handler Functions): Document
35062 new MicroBlaze break_handler functions.
35063
35064 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
35065
35066 * doc/extend.texi (Size of an asm): Move node text according
35067 to its @menu entry position.
35068
35069 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
35070
35071 PR tree-optimization/61140
35072 PR tree-optimization/61150
35073 PR tree-optimization/61197
35074 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
35075
35076 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
35077
35078 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
35079
35080 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
35081
35082 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
35083 __SIZEOF_INT128__ is defined.
35084
35085 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
35086
35087 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
35088 (rs6000_delegitimize_address): Use it.
35089
35090 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
35091
35092 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
35093 inplace argument. Store the new address in the original MEM when true.
35094 * emit-rtl.c (change_address_1): Likewise.
35095 (adjust_address_1, adjust_automodify_address_1, offset_address):
35096 Update accordingly.
35097 * rtl.h (plus_constant): Add an inplace argument.
35098 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
35099 when true. Avoid generating (plus X (const_int 0)).
35100 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
35101 in-place. Pass true to plus_constant.
35102 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
35103
35104 2014-05-16 Dehao Chen <dehao@google.com>
35105
35106 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
35107
35108 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
35109
35110 PR target/54089
35111 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
35112 patterns.
35113 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
35114
35115 2014-05-16 Dehao Chen <dehao@google.com>
35116
35117 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
35118 optimize_function_for_size_p.
35119 * regs.h (REG_FREQ_FROM_BB): Likewise.
35120
35121 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
35122
35123 PR target/51244
35124 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
35125 negt_reg_operand cases.
35126 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
35127 predicate.
35128 * config/sh/predicates.md (cbranch_treg_value): Simplify.
35129
35130 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
35131
35132 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
35133 target variants.
35134
35135 2014-05-16 David Malcolm <dmalcolm@redhat.com>
35136
35137 Revert:
35138 2014-04-29 David Malcolm <dmalcolm@redhat.com>
35139
35140 * tree-cfg.c (dump_function_to_file): Dump the return type of
35141 functions, in a line to itself before the function body, mimicking
35142 the layout of a C function.
35143
35144 2014-05-16 Dehao Chen <dehao@google.com>
35145
35146 * cfghooks.c (make_forwarder_block): Use direct computation to
35147 get fall-through edge's count and frequency.
35148
35149 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
35150
35151 * config/arc/arc.c (arc_init): Fix typo in error message.
35152 * config/i386/i386.c (ix86_expand_builtin): Likewise.
35153 (split_stack_prologue_scratch_regno): Likewise.
35154 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
35155 word from error message.
35156
35157 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
35158
35159 * ira-costs.c: Fix typo in comment.
35160
35161 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
35162
35163 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
35164
35165 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
35166
35167 * varpool.c (dump_varpool_node): Dump write-only flag.
35168 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
35169 write-only flag.
35170 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
35171 write-only variables.
35172 * ipa.c (process_references): New function.
35173 (set_readonly_bit): New function.
35174 (set_writeonly_bit): New function.
35175 (clear_addressable_bit): New function.
35176 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
35177 fix handling of aliases.
35178 * cgraph.h (struct varpool_node): Add writeonly flag.
35179
35180 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
35181
35182 PR rtl-optimization/60969
35183 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
35184 Calculate costs for this case.
35185
35186 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
35187
35188 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
35189 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
35190
35191 2014-05-16 Richard Biener <rguenther@suse.de>
35192
35193 PR tree-optimization/61194
35194 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
35195 bool patterns ending in a COND_EXPR.
35196
35197 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35198
35199 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
35200
35201 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35202
35203 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
35204 where we were unable to cost an RTX.
35205
35206 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35207
35208 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
35209 HIGH, LO_SUM.
35210
35211 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35212 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35213
35214 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
35215
35216 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35217 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35218
35219 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
35220 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
35221
35222 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35223 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35224
35225 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
35226 operators.
35227
35228 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35229 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35230
35231 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
35232 DIV/MOD.
35233
35234 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35235 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35236
35237 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
35238 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
35239
35240 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35241 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35242
35243 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
35244 rotates and shifts.
35245
35246 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35247 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35248
35249 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
35250 ZERO_EXTEND and SIGN_EXTEND better.
35251
35252 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35253 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35254
35255 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
35256 logical operations.
35257
35258 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35259 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35260
35261 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
35262 costs when costing loads and stores to memory.
35263
35264 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35265 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
35266
35267 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
35268 for SET RTX.
35269
35270 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35271
35272 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
35273
35274 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35275 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35276
35277 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
35278 to...
35279 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
35280 well formed.
35281 (aarch64_rtx_mult_cost): New.
35282 (aarch64_rtx_costs): Use it, refactor as appropriate.
35283
35284 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35285 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35286
35287 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
35288 emit instructions, return number of instructions which would
35289 be emitted.
35290 (aarch64_add_constant): Update call to aarch64_build_constant.
35291 (aarch64_output_mi_thunk): Likewise.
35292 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
35293 a CONST_DOUBLE.
35294
35295 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35296
35297 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
35298 (TARGET_RTX_COSTS): Call it.
35299
35300 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35301
35302 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
35303 (cortexa57_vector_cost): Likewise.
35304 (cortexa57_tunings): Use them.
35305
35306 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
35307
35308 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
35309 (cpu_addrcost_table): Use it.
35310 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
35311 (aarch64_address_cost): Rewrite using aarch64_classify_address,
35312 move it.
35313
35314 2014-05-16 Richard Biener <rguenther@suse.de>
35315
35316 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
35317 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
35318 (visit_phi): Ignore edges marked as not executable.
35319 (class cond_dom_walker): New.
35320 (cond_dom_walker::before_dom_children): Value-number
35321 control statements and mark successor edges as not
35322 executable if possible.
35323 (run_scc_vn): First walk all control statements in
35324 dominator order, marking edges as not executable.
35325 * tree-inline.c (copy_edges_for_bb): Be not confused
35326 about random edge flags.
35327
35328 2014-05-16 Richard Biener <rguenther@suse.de>
35329
35330 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
35331
35332 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
35333
35334 PR target/61193
35335 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
35336 (__TM_simple_begin): Use it.
35337 (__TM_begin): Likewise.
35338
35339 2014-05-15 Martin Jambor <mjambor@suse.cz>
35340
35341 PR ipa/61085
35342 * ipa-prop.c (update_indirect_edges_after_inlining): Check
35343 type_preserved flag when the indirect edge is polymorphic.
35344
35345 2014-05-15 Martin Jambor <mjambor@suse.cz>
35346
35347 PR tree-optimization/61090
35348 * tree-sra.c (sra_modify_expr): Pass the current gsi to
35349 build_ref_for_model.
35350
35351 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35352
35353 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
35354 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
35355
35356 2014-05-15 Jakub Jelinek <jakub@redhat.com>
35357
35358 PR tree-optimization/61158
35359 * fold-const.c (fold_binary_loc): If X is zero-extended and
35360 shiftc >= prec, make sure zerobits is all ones instead of
35361 invoking undefined behavior.
35362
35363 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
35364
35365 * regcprop.h: New file.
35366 * regcprop.c (skip_debug_insn_p): New decl.
35367 (replace_oldest_value_reg): Check skip_debug_insn_p.
35368 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
35369 * shrink-wrap.c: Include regcprop.h.
35370 (prepare_shrink_wrap): Call
35371 copyprop_hardreg_forward_bb_without_debug_insn.
35372
35373 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
35374
35375 * shrink-wrap.h: Update comment.
35376 * shrink-wrap.c: Update comment.
35377 (next_block_for_reg): Rename to live_edge_for_reg.
35378 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
35379 (move_insn_for_shrink_wrap): Split live_edge.
35380 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
35381
35382 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
35383
35384 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
35385 Delete.
35386 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
35387 * config/sparc/sparc.md (fptype_ut699): New attribute.
35388 (in_branch_delay): Return false if -mfix-ut699 is specified and
35389 fptype_ut699 is set to single.
35390 (truncdfsf2): Add fptype_ut699 attribute.
35391 (fix_truncdfsi2): Likewise.
35392 (floatsisf2): Change fptype attribute.
35393 (fix_truncsfsi2): Likewise.
35394 (negtf2_notv9): Delete.
35395 (negtf2_v9): Likewise.
35396 (negtf2_hq): New instruction.
35397 (negtf2): New instruction and splitter.
35398 (negdf2_notv9): Rewrite.
35399 (abstf2_notv9): Delete.
35400 (abstf2_hq_v9): Likewise.
35401 (abstf2_v9): Likewise.
35402 (abstf2_hq): New instruction.
35403 (abstf2): New instruction and splitter.
35404 (absdf2_notv9): Rewrite.
35405
35406 2014-05-14 Cary Coutant <ccoutant@google.com>
35407
35408 PR debug/61013
35409 * opts.c (common_handle_option): Don't special-case "-g".
35410 (set_debug_level): Default to at least level 2 with "-g".
35411
35412 2014-05-14 DJ Delorie <dj@redhat.com>
35413
35414 * config/msp430/msp430.c (msp430_builtin): Add
35415 MSP430_BUILTIN_DELAY_CYCLES.
35416 (msp430_init_builtins): Register void __delay_cycles(long long).
35417 (msp430_builtin_decl): Add it.
35418 (cg_magic_constant): New.
35419 (msp430_expand_delay_cycles): New.
35420 (msp430_expand_builtin): Call it.
35421 (msp430_print_operand_raw): Change integer printing from "int" to
35422 HOST_WIDE_INT.
35423 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
35424 (delay_cycles_start): New.
35425 (delay_cycles_end): New.
35426 (delay_cycles_32): New.
35427 (delay_cycles_32x): New.
35428 (delay_cycles_16): New.
35429 (delay_cycles_16x): New.
35430 (delay_cycles_2): New.
35431 (delay_cycles_1): New.
35432 * doc/extend.texi: Document __delay_cycles().
35433
35434 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
35435
35436 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
35437 length attribute computation.
35438
35439 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
35440
35441 PR debug/61188
35442 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
35443
35444 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
35445
35446 PR target/61084
35447 * config/sparc/sparc.md: Fix types of low and high in DI constant
35448 splitter. Use gen_int_mode in some other splitters.
35449
35450 2014-05-14 Martin Jambor <mjambor@suse.cz>
35451
35452 PR ipa/60897
35453 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
35454
35455 2014-05-14 James Norris <jnorris@codesourcery.com>
35456
35457 * omp-low.c (expand_parallel_call): Remove shadow variable.
35458 (expand_omp_taskreg): Likewise.
35459
35460 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
35461
35462 * common/config/i386/i386-common.c
35463 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
35464 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
35465 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
35466 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
35467 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
35468 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
35469 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
35470 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
35471 xsavecintrin.h, xsavesintrin.h.
35472 (x86_64-*-*): Ditto.
35473 * config/i386/clflushoptintrin.h: New.
35474 * config/i386/xsavecintrin.h: Ditto.
35475 * config/i386/xsavesintrin.h: Ditto.
35476 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
35477 (bit_XSAVES): Ditto.
35478 (bit_XSAVES): Ditto.
35479 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
35480 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
35481 -mno-clflushopt.
35482 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
35483 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
35484 OPTION_MASK_ISA_XSAVES.
35485 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
35486 -mxsavec, -mxsaves.
35487 (PTA_CLFLUSHOPT) Define.
35488 (PTA_XSAVEC): Ditto.
35489 (PTA_XSAVES): Ditto.
35490 (ix86_option_override_internal): Handle new options.
35491 (ix86_valid_target_attribute_inner_p): Ditto.
35492 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
35493 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
35494 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
35495 (bdesc_special_args): Add __builtin_ia32_xsaves,
35496 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
35497 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
35498 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
35499 (ix86_expand_builtin): Handle new builtins.
35500 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
35501 (TARGET_CLFLUSHOPT_P): Ditto.
35502 (TARGET_XSAVEC): Ditto.
35503 (TARGET_XSAVEC_P): Ditto.
35504 (TARGET_XSAVES): Ditto.
35505 (TARGET_XSAVES_P): Ditto.
35506 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
35507 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
35508 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
35509 (ANY_XRSTOR): New.
35510 (ANY_XRSTOR64): Ditto.
35511 (xrstor): Ditto.
35512 (xrstor): Change into <xrstor>.
35513 (xrstor_rex64): Change into <xrstor>_rex64.
35514 (xrstor64): Change into <xrstor>64
35515 (clflushopt): New.
35516 * config/i386/i386.opt (mclflushopt): New.
35517 (mxsavec): Ditto.
35518 (mxsaves): Ditto.
35519 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
35520 xsavecintrin.h.
35521 * doc/invoke.texi: Document new options.
35522
35523 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
35524
35525 PR rtl-optimization/60866
35526 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
35527 Default it to -1. Pass it down to init_simplejump_data.
35528 (init_simplejump_data): New parameter old_seqno. Pass it down
35529 to get_seqno_for_a_jump.
35530 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
35531 initializing new jump seqno as a last resort. Add comment.
35532 (sel_redirect_edge_and_branch): Save old seqno of the conditional
35533 jump and pass it down to sel_init_new_insn.
35534 (sel_redirect_edge_and_branch_force): Likewise.
35535
35536 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
35537
35538 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
35539 shifted values to avoid build warning.
35540
35541 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
35542
35543 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
35544 * cfgrtl.c (rtl_merge_blocks): Fix comment.
35545 (cfg_layout_merge_blocks): Likewise.
35546 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
35547
35548 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
35549
35550 PR rtl-optimization/60901
35551 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
35552 bb predecessor belongs to the same scheduling region. Adjust comment.
35553
35554 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
35555
35556 * doc/sourcebuild.texi: (dfp_hw): Document.
35557 (p8vector_hw): Likewise.
35558 (powerpc_eabi_ok): Likewise.
35559 (powerpc_elfv2): Likewise.
35560 (powerpc_htm_ok): Likewise.
35561 (ppc_recip_hw): Likewise.
35562 (vsx_hw): Likewise.
35563
35564 2014-05-13 Cary Coutant <ccoutant@google.com>
35565
35566 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
35567
35568 2014-05-13 David Malcolm <dmalcolm@redhat.com>
35569
35570 * gengtype-parse.c (require3): Eliminate in favor of...
35571 (require4): New.
35572 (require_template_declaration): Update to support optional single *
35573 on a type.
35574
35575 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
35576 (create_user_defined_type): Handle a single level of explicit
35577 pointerness within template arguments.
35578 (struct write_types_data): Add field "kind".
35579 (filter_type_name): Handle "*" character.
35580 (write_user_func_for_structure_ptr): Require a write_types_data
35581 rather than just a prefix string, so that we can look up the kind
35582 of the wtd and use it as an index into wrote_user_func_for_ptr,
35583 ensuring that such functions are written at most once. Support
35584 subclasses by invoking the marking function of the ultimate base class.
35585 (write_user_func_for_structure_body): Require a write_types_data
35586 rather than just a prefix string, so that we can pass this to
35587 write_user_func_for_structure_ptr.
35588 (write_func_for_structure): Likewise.
35589 (ggc_wtd): Add initializer of new "kind" field.
35590 (pch_wtd): Likewise.
35591
35592 * gengtype.h (enum write_types_kinds): New.
35593 (struct type): Add field wrote_user_func_for_ptr to the "s"
35594 union member.
35595
35596 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
35597
35598 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
35599 instead of const_binop.
35600 (fold_binary_loc): Likewise.
35601
35602 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
35603
35604 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
35605 calculation to match get_ref_base_and_extent.
35606
35607 2014-05-13 Catherine Moore <clm@codesourcery.com>
35608 Sandra Loosemore <sandra@codesourcery.com>
35609
35610 * configure.ac: Fix assembly for explicit JALR relocation check.
35611 * configure: Regenerate.
35612
35613 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35614
35615 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
35616 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
35617 Remove associated type declarations and initialisations.
35618 (arm_expand_neon_builtin): Likewise.
35619 (neon_emit_pair_result_insn): Delete.
35620 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
35621 * config/arm/neon.md (neon_vtrn<mode>): Delete.
35622 (neon_vzip<mode>): Likewise.
35623 (neon_vuzp<mode>): Likewise.
35624
35625 2014-05-13 Richard Biener <rguenther@suse.de>
35626
35627 PR ipa/60973
35628 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
35629 it needs revisiting whether the call still may be tail-called.
35630
35631 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
35632
35633 * rtl.def (SYMBOL_REF): Remove middle "0" field.
35634 * rtl.h (block_symbol): Reduce number of fields to 2.
35635 (rtx_def): Add u2.symbol_ref_flags.
35636 (SYMBOL_REF_FLAGS): Use it.
35637 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
35638 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
35639 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
35640 Lower index of SYMBOL_REF_DATA.
35641 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
35642 Print SYMBOL_REF_FLAGS at the same time.
35643 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
35644
35645 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
35646
35647 * rtl.def (VAR_LOCATION): Remove "i" field.
35648 * rtl.h (rtx_def): Add u2.var_location_status.
35649 (PAT_VAR_LOCATION_STATUS): Use it.
35650 (gen_rtx_VAR_LOCATION): Declare.
35651 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
35652 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
35653 * var-tracking.c (emit_note_insn_var_location): Remove casts.
35654
35655 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
35656
35657 * rtl.def (scratch): Fix outdated comment and remove "0" field.
35658 * gengtype.c (adjust_field_rtx_def): Update accordingly.
35659
35660 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
35661
35662 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
35663 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
35664 * rtl.h (rtx_def): Add insn_uid to u2 field.
35665 (RTX_FLAG_CHECK8): Delete in favor of...
35666 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
35667 (INSN_DELETED_P): Update accordingly.
35668 (INSN_UID): Use u2.insn_uid.
35669 (INSN_CHAIN_CODE_P): Define.
35670 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
35671 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
35672 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
35673 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
35674 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
35675 indices accordingly.
35676 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
35677 Update indices for insn-chain rtxes.
35678 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
35679 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
35680 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
35681 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
35682 * combine.c (try_combine): Likewise.
35683 * ira.c (setup_prohibited_mode_move_regs): Likewise.
35684
35685 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
35686
35687 * rtl.def (REG): Remove middle field.
35688 * rtl.h (rtx_def): Add orignal_regno to u2.
35689 (ORIGINAL_REGNO): Use it instead of field 1.
35690 (REG_ATTRS): Lower field index accordingly.
35691 * gengtype.c (adjust_field_rtx_def): Remove handling of
35692 ORIGINAL_REGNO. Move REG_ATTRS index down.
35693 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
35694 code that prints the REGNO.
35695
35696 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
35697
35698 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
35699 GENERATOR_FILE.
35700
35701 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
35702
35703 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
35704
35705 2014-05-13 Bin Cheng <bin.cheng@arm.com>
35706
35707 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
35708 (alloc_iv): Lower base expressions containing ADDR_EXPR.
35709
35710 2014-05-13 Ian Bolton <ian.bolton@arm.com>
35711
35712 * config/aarch64/aarch64-protos.h
35713 (aarch64_hard_regno_caller_save_mode): New prototype.
35714 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
35715 New function.
35716 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
35717
35718 2014-05-13 Christian Bruel <christian.bruel@st.com>
35719
35720 * target.def (mode_switching): New hook vector.
35721 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
35722 (mode_exit, modepriority_to_mode): Likewise.
35723 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
35724 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
35725 * target.h: Include tm.h and hard-reg-set.h.
35726 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
35727 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
35728 * doc/tm.texi Regenerate.
35729 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
35730 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
35731 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
35732 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
35733 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
35734 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
35735 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
35736 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
35737 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
35738 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
35739 (ix86_emit_mode_set): Hookify.
35740 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
35741 Delete.
35742 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
35743 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
35744 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
35745 (epiphany_mode_priority_to_mode): Remove declaration.
35746 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
35747 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
35748 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
35749 Likewise.
35750 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
35751 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
35752 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
35753
35754 2014-05-13 Jakub Jelinek <jakub@redhat.com>
35755
35756 PR target/61060
35757 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
35758 is const0_rtx, return immediately. Don't test count == 0 when
35759 it is always true.
35760
35761 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
35762
35763 * Makefile.in: add shrink-wrap.o.
35764 * config/i386/i386.c: include "shrink-wrap.h"
35765 * function.c: Likewise.
35766 (requires_stack_frame_p, next_block_for_reg,
35767 move_insn_for_shrink_wrap, prepare_shrink_wrap,
35768 dup_block_and_redirect): Move to shrink-wrap.c
35769 (thread_prologue_and_epilogue_insns): Extract three code segments
35770 as functions in shrink-wrap.c
35771 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
35772 shrink-wrap.h
35773 * shrink-wrap.c: New file.
35774 * shrink-wrap.h: New file.
35775
35776 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
35777
35778 * doc/extend.texi: Reflect current numbers of pragmas. Remove
35779 reference to Solaris.
35780
35781 2014-05-12 Mike Stump <mikestump@comcast.net>
35782
35783 PR other/31778
35784 * genattrtab.c (filename): Add.
35785 (convert_set_attr_alternative): Improve error message.
35786 (check_defs): Restore read_md_filename for error messages.
35787 (gen_insn): Save filename.
35788
35789 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
35790
35791 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
35792 -fno-local-ivars and -fivar-visibility.
35793 * c-family/c.opt: Make -Wshadow also implicitly enable
35794 -Wshadow-ivar.
35795
35796 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
35797
35798 * doc/tm.texi: Remove reference to deleted macro.
35799 * doc/tm.texi.in: Likewise.
35800
35801 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
35802
35803 PR target/60991
35804 * config/avr/avr.c (avr_out_store_psi): Use correct constant
35805 to restore Y.
35806
35807 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
35808
35809 PR libgcc/61152
35810 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
35811 * config/arm/aout.h (License): Same.
35812 * config/arm/bpabi.h (License): Same.
35813 * config/arm/elf.h (License): Same.
35814 * config/arm/linux-elf.h (License): Same.
35815 * config/arm/linux-gas.h (License): Same.
35816 * config/arm/netbsd-elf.h (License): Same.
35817 * config/arm/uclinux-eabi.h (License): Same.
35818 * config/arm/uclinux-elf.h (License): Same.
35819 * config/arm/vxworks.h (License): Same.
35820
35821 2014-05-11 Jakub Jelinek <jakub@redhat.com>
35822
35823 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
35824 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
35825 number of operands to 3.
35826 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
35827 * tree-nested.c (convert_nonlocal_omp_clauses,
35828 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
35829 * gimplify.c (gimplify_scan_omp_clauses): Handle
35830 OMP_CLAUSE_LINEAR_STMT.
35831 * omp-low.c (lower_rec_input_clauses): Fix typo.
35832 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
35833 cast between Fortran boolean_type_node and C _Bool if
35834 needed.
35835
35836 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
35837
35838 PR tree-optimization/61136
35839 * wide-int.h (multiple_of_p): Define a version that doesn't return
35840 the quotient.
35841 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
35842 integer_zerop/const_binop pair.
35843 (multiple_of_p): Likewise, converting both operands to widest_int
35844 precision.
35845
35846 2014-05-09 Teresa Johnson <tejohnson@google.com>
35847
35848 * cgraphunit.c (analyze_functions): Use correct dump file.
35849
35850 2014-05-09 Florian Weimer <fweimer@redhat.com>
35851
35852 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
35853 expand_used_vars.
35854 (stack_protect_return_slot_p): New function.
35855 (expand_used_vars): Call stack_protect_decl_p and
35856 stack_protect_return_slot_p for -fstack-protector-strong.
35857
35858 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
35859 Andrew Haley <aph@redhat.com>
35860 Richard Sandiford <rdsandiford@googlemail.com>
35861
35862 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
35863 pages.
35864
35865 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
35866
35867 PR middle-end/61111
35868 * fold-const.c (fold_binary_loc): Changed width of mask.
35869
35870 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
35871
35872 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
35873 unsigned int initializers for regno_in, regno_out.
35874
35875 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
35876
35877 PR target/61055
35878 * config/avr/avr.md (cc): Add new attribute set_vzn.
35879 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
35880 Set cc insn attribute to set_vzn instead of set_zn for alternatives
35881 with INC, DEC or NEG.
35882 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
35883 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
35884 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
35885
35886 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35887
35888 Revert:
35889 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35890
35891 * wide-int.cc (UTItype): Define.
35892 (UDWtype): Define for appropriate W_TYPE_SIZE.
35893
35894 2014-05-09 Richard Biener <rguenther@suse.de>
35895
35896 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
35897 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
35898 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
35899 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
35900 ssa_propagate): Adjust.
35901
35902 2014-05-08 Jeff Law <law@redhat.com>
35903
35904 PR tree-optimization/61009
35905 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
35906 tri-state rather than a boolean. When a block is too big to
35907 thread through, inform caller via negative return value.
35908 (thread_across_edge): If a block was too big for normal threading,
35909 then it's too big for a joiner too, so remove temporary equivalences
35910 and return immediately.
35911
35912 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
35913 Matthias Klose <doko@ubuntu.com>
35914
35915 PR driver/61106
35916 * optc-gen.awk: Fix option handling for -Wunused-parameter.
35917
35918 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
35919
35920 PR target/59952
35921 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
35922
35923 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
35924
35925 PR target/61092
35926 * config/alpha/alpha.c: Include gimple-iterator.h.
35927 (alpha_gimple_fold_builtin): New function. Move
35928 ALPHA_BUILTIN_UMULH folding from ...
35929 (alpha_fold_builtin): ... here.
35930 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
35931
35932 2014-05-08 Wei Mi <wmi@google.com>
35933
35934 PR target/58066
35935 * config/i386/i386.c (ix86_compute_frame_layout): Update
35936 preferred_stack_boundary for call, expanded from tls descriptor.
35937 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
35938 to depend on SP register.
35939 (*tls_local_dynamic_base_32_gnu): Ditto.
35940 (*tls_local_dynamic_32_once): Ditto.
35941 (tls_global_dynamic_64_<mode>): Set
35942 ix86_tls_descriptor_calls_expanded_in_cfun.
35943 (tls_local_dynamic_base_64_<mode>): Ditto.
35944 (tls_global_dynamic_32): Set
35945 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
35946 to depend on SP register.
35947 (tls_local_dynamic_base_32): Ditto.
35948
35949 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35950
35951 * config/arm/arm_neon.h: Update comment.
35952 * config/arm/neon-docgen.ml: Delete.
35953 * config/arm/neon-gen.ml: Delete.
35954 * doc/arm-neon-intrinsics.texi: Update comment.
35955
35956 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35957
35958 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
35959 and v4sf versions.
35960 (vand, vorr, veor, vorn, vbic): Remove.
35961 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
35962 iterator.
35963 (neon_vsub_unspec): Likewise.
35964 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
35965
35966 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35967
35968 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
35969 (vadd_s16): Likewise.
35970 (vadd_s32): Likewise.
35971 (vadd_f32): Likewise.
35972 (vadd_u8): Likewise.
35973 (vadd_u16): Likewise.
35974 (vadd_u32): Likewise.
35975 (vadd_s64): Likewise.
35976 (vadd_u64): Likewise.
35977 (vaddq_s8): Likewise.
35978 (vaddq_s16): Likewise.
35979 (vaddq_s32): Likewise.
35980 (vaddq_s64): Likewise.
35981 (vaddq_f32): Likewise.
35982 (vaddq_u8): Likewise.
35983 (vaddq_u16): Likewise.
35984 (vaddq_u32): Likewise.
35985 (vaddq_u64): Likewise.
35986 (vmul_s8): Likewise.
35987 (vmul_s16): Likewise.
35988 (vmul_s32): Likewise.
35989 (vmul_f32): Likewise.
35990 (vmul_u8): Likewise.
35991 (vmul_u16): Likewise.
35992 (vmul_u32): Likewise.
35993 (vmul_p8): Likewise.
35994 (vmulq_s8): Likewise.
35995 (vmulq_s16): Likewise.
35996 (vmulq_s32): Likewise.
35997 (vmulq_f32): Likewise.
35998 (vmulq_u8): Likewise.
35999 (vmulq_u16): Likewise.
36000 (vmulq_u32): Likewise.
36001 (vsub_s8): Likewise.
36002 (vsub_s16): Likewise.
36003 (vsub_s32): Likewise.
36004 (vsub_f32): Likewise.
36005 (vsub_u8): Likewise.
36006 (vsub_u16): Likewise.
36007 (vsub_u32): Likewise.
36008 (vsub_s64): Likewise.
36009 (vsub_u64): Likewise.
36010 (vsubq_s8): Likewise.
36011 (vsubq_s16): Likewise.
36012 (vsubq_s32): Likewise.
36013 (vsubq_s64): Likewise.
36014 (vsubq_f32): Likewise.
36015 (vsubq_u8): Likewise.
36016 (vsubq_u16): Likewise.
36017 (vsubq_u32): Likewise.
36018 (vsubq_u64): Likewise.
36019 (vand_s8): Likewise.
36020 (vand_s16): Likewise.
36021 (vand_s32): Likewise.
36022 (vand_u8): Likewise.
36023 (vand_u16): Likewise.
36024 (vand_u32): Likewise.
36025 (vand_s64): Likewise.
36026 (vand_u64): Likewise.
36027 (vandq_s8): Likewise.
36028 (vandq_s16): Likewise.
36029 (vandq_s32): Likewise.
36030 (vandq_s64): Likewise.
36031 (vandq_u8): Likewise.
36032 (vandq_u16): Likewise.
36033 (vandq_u32): Likewise.
36034 (vandq_u64): Likewise.
36035 (vorr_s8): Likewise.
36036 (vorr_s16): Likewise.
36037 (vorr_s32): Likewise.
36038 (vorr_u8): Likewise.
36039 (vorr_u16): Likewise.
36040 (vorr_u32): Likewise.
36041 (vorr_s64): Likewise.
36042 (vorr_u64): Likewise.
36043 (vorrq_s8): Likewise.
36044 (vorrq_s16): Likewise.
36045 (vorrq_s32): Likewise.
36046 (vorrq_s64): Likewise.
36047 (vorrq_u8): Likewise.
36048 (vorrq_u16): Likewise.
36049 (vorrq_u32): Likewise.
36050 (vorrq_u64): Likewise.
36051 (veor_s8): Likewise.
36052 (veor_s16): Likewise.
36053 (veor_s32): Likewise.
36054 (veor_u8): Likewise.
36055 (veor_u16): Likewise.
36056 (veor_u32): Likewise.
36057 (veor_s64): Likewise.
36058 (veor_u64): Likewise.
36059 (veorq_s8): Likewise.
36060 (veorq_s16): Likewise.
36061 (veorq_s32): Likewise.
36062 (veorq_s64): Likewise.
36063 (veorq_u8): Likewise.
36064 (veorq_u16): Likewise.
36065 (veorq_u32): Likewise.
36066 (veorq_u64): Likewise.
36067 (vbic_s8): Likewise.
36068 (vbic_s16): Likewise.
36069 (vbic_s32): Likewise.
36070 (vbic_u8): Likewise.
36071 (vbic_u16): Likewise.
36072 (vbic_u32): Likewise.
36073 (vbic_s64): Likewise.
36074 (vbic_u64): Likewise.
36075 (vbicq_s8): Likewise.
36076 (vbicq_s16): Likewise.
36077 (vbicq_s32): Likewise.
36078 (vbicq_s64): Likewise.
36079 (vbicq_u8): Likewise.
36080 (vbicq_u16): Likewise.
36081 (vbicq_u32): Likewise.
36082 (vbicq_u64): Likewise.
36083 (vorn_s8): Likewise.
36084 (vorn_s16): Likewise.
36085 (vorn_s32): Likewise.
36086 (vorn_u8): Likewise.
36087 (vorn_u16): Likewise.
36088 (vorn_u32): Likewise.
36089 (vorn_s64): Likewise.
36090 (vorn_u64): Likewise.
36091 (vornq_s8): Likewise.
36092 (vornq_s16): Likewise.
36093 (vornq_s32): Likewise.
36094 (vornq_s64): Likewise.
36095 (vornq_u8): Likewise.
36096 (vornq_u16): Likewise.
36097 (vornq_u32): Likewise.
36098 (vornq_u64): Likewise.
36099
36100 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36101
36102 * wide-int.cc (UTItype): Define.
36103 (UDWtype): Define for appropriate W_TYPE_SIZE.
36104
36105 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
36106
36107 PR tree-optimization/59100
36108 * tree-ssa-phiopt.c: Include tree-inline.h.
36109 (neutral_element_p, absorbing_element_p): New functions.
36110 (value_replacement): Handle conditional binary operations with a
36111 neutral or absorbing element.
36112
36113 2014-05-08 Richard Biener <rguenther@suse.de>
36114
36115 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
36116 folding the expression.
36117 (valueize_expr): Remove.
36118 (visit_reference_op_load): Do not valueize the result of
36119 vn_get_expr_for.
36120 (simplify_binary_expression): Likewise.
36121 (simplify_unary_expression): Likewise.
36122
36123 2014-05-08 Richard Biener <rguenther@suse.de>
36124
36125 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
36126 looking at TYPE_ARG_TYPES.
36127
36128 2014-05-08 Richard Biener <rguenther@suse.de>
36129
36130 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
36131 pointer propagation special-case.
36132
36133 2014-05-08 Bin Cheng <bin.cheng@arm.com>
36134
36135 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
36136 core part of address expressions.
36137
36138 2014-05-08 Alan Modra <amodra@gmail.com>
36139
36140 PR target/60737
36141 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
36142 loads and stores when -mno-strict-align at any alignment.
36143 (expand_block_clear): Similarly. Also correct calculation of
36144 instruction count.
36145
36146 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
36147
36148 PR middle-end/39246
36149 * tree-complex.c (expand_complex_move): Keep line info when expanding
36150 complex move.
36151 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
36152 of complex expression. Use new argument to display correct location
36153 for values coming from phi statement.
36154 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
36155 (warn_uninitialized_phi): Pass location of phi argument to
36156 warn_uninit.
36157 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
36158 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
36159
36160 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
36161
36162 * config/rs6000/predicates.md (indexed_address_mem): New.
36163 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
36164 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
36165 fpstore_ux, fpstore_u.
36166 (sign_extend, indexed, update): New.
36167 (cell_micro): Adjust.
36168 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
36169 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
36170 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
36171 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
36172 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
36173 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
36174 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
36175 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
36176 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
36177 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
36178 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
36179 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
36180 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
36181 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
36182 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
36183
36184 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
36185 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
36186 *vsx_extract_<mode>_store): Adjust.
36187 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
36188 is_cracked_insn, insn_must_be_first_in_group,
36189 insn_must_be_last_in_group): Adjust.
36190
36191 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
36192 Adjust.
36193 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
36194 ppc440-fpstore): Adjust.
36195 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
36196 ppc476-fpstore): Adjust.
36197 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
36198 ppc601-fpstore): Adjust.
36199 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
36200 Adjust.
36201 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
36202 Adjust.
36203 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
36204 ppc7450-fpstore): Adjust.
36205 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
36206 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
36207 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
36208 Adjust.
36209 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
36210 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
36211 cell-fpstore, cell-fpstore-update): Adjust.
36212 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
36213 ppce300c3_store, ppce300c3_fpstore): Adjust.
36214 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
36215 e500mc_fpstore): Adjust.
36216 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
36217 e500mc64_store, e500mc64_fpstore): Adjust.
36218 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
36219 e5500_fpstore): Adjust.
36220 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
36221 e6500_fpstore): Adjust.
36222 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
36223 Adjust.
36224 * config/rs6000/power4.md (power4-load, power4-load-ext,
36225 power4-load-ext-update, power4-load-ext-update-indexed,
36226 power4-load-update-indexed, power4-load-update, power4-fpload,
36227 power4-fpload-update, power4-store, power4-store-update,
36228 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
36229 Adjust.
36230 * config/rs6000/power5.md (power5-load, power5-load-ext,
36231 power5-load-ext-update, power5-load-ext-update-indexed,
36232 power5-load-update-indexed, power5-load-update, power5-fpload,
36233 power5-fpload-update, power5-store, power5-store-update,
36234 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
36235 Adjust.
36236 * config/rs6000/power6.md (power6-load, power6-load-ext,
36237 power6-load-update, power6-load-update-indexed,
36238 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
36239 power6-fpload-update, power6-store, power6-store-update,
36240 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
36241 Adjust.
36242 * config/rs6000/power7.md (power7-load, power7-load-ext,
36243 power7-load-update, power7-load-update-indexed,
36244 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
36245 power7-fpload-update, power7-store, power7-store-update,
36246 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
36247 Adjust.
36248 * config/rs6000/power8.md (power8-load, power8-load-update,
36249 power8-load-ext, power8-load-ext-update, power8-fpload,
36250 power8-fpload-update, power8-store, power8-store-update-indexed,
36251 power8-fpstore, power8-fpstore-update): Adjust.
36252 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
36253 Adjust.
36254 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
36255 titan_lsu_store, titan_lsu_fpstore): Adjust.
36256 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
36257
36258 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
36259
36260 PR target/60884
36261 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
36262 unrolled byte insns. Emit address increments after move insns.
36263
36264 2014-05-07 David Malcolm <dmalcolm@redhat.com>
36265
36266 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
36267 const_gimple, rather than a gimple.
36268 (gimple_call_builtin_p): Likewise, for the three variants.
36269
36270 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
36271 (gimple_call_builtin_p): Likewise, for the three variants.
36272
36273 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
36274
36275 PR tree-optimization/61095
36276 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
36277
36278 2014-05-07 Richard Biener <rguenther@suse.de>
36279
36280 PR tree-optimization/61034
36281 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
36282 (maybe_skip_until): Use translate to take into account
36283 lattices when trying to do disambiguations.
36284 (get_continuation_for_phi_1): Likewise.
36285 (get_continuation_for_phi): Adjust for added translate arguments.
36286 (walk_non_aliased_vuses): Likewise.
36287 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
36288 (walk_non_aliased_vuses): Likewise.
36289 (call_may_clobber_ref_p_1): Declare.
36290 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
36291 calls. Stop early if we are only supposed to disambiguate.
36292 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
36293
36294 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
36295
36296 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
36297 Emit an error when the function has arguments.
36298
36299 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
36300
36301 * cfgloop.h (unswitch_loops): Remove.
36302 * doc/passes.texi: Remove references to loop-unswitch.c
36303 * timevar.def (TV_LOOP_UNSWITCH): Remove.
36304
36305 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
36306
36307 * tree-vect-data-refs.c (vect_grouped_load_supported): New
36308 check for loads group of length 3.
36309 (vect_permute_load_chain): New permutations for loads group of
36310 length 3.
36311 * tree-vect-stmts.c (vect_model_load_cost): Change cost
36312 of vec_perm_shuffle for the new permutations.
36313
36314 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
36315
36316 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
36317 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
36318 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
36319 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
36320 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
36321 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
36322 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
36323 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
36324
36325 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
36326
36327 * loop-unswitch.c: Delete.
36328
36329 2014-05-07 Richard Biener <rguenther@suse.de>
36330
36331 * config.gcc: Always set need_64bit_hwint to yes.
36332
36333 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
36334
36335 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
36336 of using optimize_size.
36337
36338 2014-05-06 Mike Stump <mikestump@comcast.net>
36339
36340 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
36341
36342 2014-05-06 Joseph Myers <joseph@codesourcery.com>
36343
36344 * config/i386/sse.md (*mov<mode>_internal)
36345 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
36346 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
36347 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
36348 (*<code><mode>3, *andnot<mode>3<mask_name>)
36349 (<mask_codefor><code><mode>3<mask_name>): Only consider
36350 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
36351
36352 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
36353
36354 Revert:
36355 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
36356
36357 * lra-constraints.c (valid_address_p): Move earlier in file.
36358 Add a constraint argument to the address_info version.
36359 (satisfies_memory_constraint_p): New function.
36360 (satisfies_address_constraint_p): Likewise.
36361 (process_alt_operands, curr_insn_transform): Use them.
36362 (process_address): Pass the constraint to valid_address_p when
36363 checking address operands.
36364
36365 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
36366
36367 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
36368 to their respective blocks. Fix inadvertent use of "node".
36369
36370 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
36371
36372 * emit-rtl.c (init_derived_machine_modes): New functionm, split
36373 out from...
36374 (init_emit_once): ...here.
36375 * rtl.h (init_derived_machine_modes): Declare.
36376 * toplev.c (do_compile): Call it even if no_backend.
36377
36378 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
36379 Mike Stump <mikestump@comcast.net>
36380 Richard Sandiford <rdsandiford@googlemail.com>
36381 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36382
36383 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
36384 (rtx_equal_for_memref_p): Update comment.
36385 (adjust_offset_for_component_ref): Use wide-int interfaces.
36386 * builtins.c (get_object_alignment_2): Likewise.
36387 (c_readstr): Likewise.
36388 (target_char_cast): Add comment.
36389 (determine_block_size): Use wide-int interfaces.
36390 (expand_builtin_signbit): Likewise.
36391 (fold_builtin_int_roundingfn): Likewise.
36392 (fold_builtin_bitop): Likewise.
36393 (fold_builtin_bswap): Likewise.
36394 (fold_builtin_logarithm): Use signop.
36395 (fold_builtin_pow): Likewise.
36396 (fold_builtin_memory_op): Use wide-int interfaces.
36397 (fold_builtin_object_size): Likewise.
36398 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
36399 nb_iterations_estimate.
36400 (record_niter_bound): Use wide-int interfaces.
36401 (get_estimated_loop_iterations_int): Likewise.
36402 (get_estimated_loop_iterations): Likewise.
36403 (get_max_loop_iterations): Likewise.
36404 * cfgloop.h: Include wide-int.h.
36405 (struct nb_iter_bound): Change bound to widest_int.
36406 (struct loop): Change nb_iterations_upper_bound and
36407 nb_iterations_estimate to widest_int.
36408 (record_niter_bound): Switch to use widest_int.
36409 (get_estimated_loop_iterations): Likewise.
36410 (get_max_loop_iterations): Likewise.
36411 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
36412 update for wide-int.
36413 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
36414 * combine.c (try_combine): Likewise.
36415 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
36416 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
36417 interfaces.
36418 (aarch64_float_const_representable_p): Likewise.
36419 * config/arc/arc.c: Include wide-int.h.
36420 (arc_can_use_doloop_p): Use wide-int interfaces.
36421 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
36422 (vfp3_const_double_index): Likewise.
36423 * config/avr/avr.c (avr_out_round): Likewise.
36424 (avr_fold_builtin): Likewise.
36425 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
36426 (bfin_can_use_doloop_p): Likewise.
36427 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
36428 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
36429 * config/i386/i386.c: Include wide-int.h.
36430 (ix86_data_alignment): Use wide-int interfaces.
36431 (ix86_local_alignment): Likewise.
36432 (ix86_emit_swsqrtsf): Update real_from_integer.
36433 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
36434 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
36435 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
36436 (zero_constant): Likewise.
36437 (input_operand): Likewise.
36438 (splat_input_operand): Likewise.
36439 (non_logical_cint_operand): Change const_double to const_wide_int.
36440 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
36441 (easy_altivec_constant): Remove comment.
36442 (paired_expand_vector_init): Use CONSTANT_P.
36443 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
36444 (rs6000_emit_move): Update checks.
36445 (rs6000_aggregate_candidate): Use wide-int interfaces.
36446 (rs6000_expand_ternop_builtin): Likewise.
36447 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
36448 (rs6000_assemble_integer): Likewise.
36449 (rs6000_hash_constant): Likewise.
36450 (output_toc): Likewise.
36451 (rs6000_rtx_costs): Likewise.
36452 (rs6000_emit_swrsqrt); Update call to real_from_integer.
36453 * config/rs6000/rs6000-c.c: Include wide-int.h.
36454 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
36455 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
36456 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
36457 Handle CONST_WIDE_INT.
36458 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
36459 Use tree_fits_uhwi_p.
36460 * config/sparc/sparc.c: Include wide-int.h.
36461 (sparc_fold_builtin): Use wide-int interfaces.
36462 * config/vax/vax.c: Include wide-int.h.
36463 (vax_float_literal): Use real_from_integer.
36464 * coretypes.h (struct hwivec_def): New.
36465 (hwivec): New.
36466 (const_hwivec): New.
36467 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
36468 (equiv_constant): Handle CONST_WIDE_INT.
36469 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
36470 (cselib_hash_rtx): Handle CONST_WIDE_INT.
36471 * dbxout.c (stabstr_U): Use wide-int interfaces.
36472 (dbxout_type): Update to use cst_fits_shwi_p.
36473 * defaults.h (LOG2_BITS_PER_UNIT): Define.
36474 (TARGET_SUPPORTS_WIDE_INT): Add default.
36475 * dfp.c: Include wide-int.h.
36476 (decimal_real_to_integer2): Use wide-int interfaces and rename to
36477 decimal_real_to_integer.
36478 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
36479 decimal_real_to_integer.
36480 * doc/generic.texi (Constant expressions): Update for wide_int.
36481 * doc/rtl.texi (const_double): Likewise.
36482 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
36483 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
36484 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
36485 (REAL_VALUE_FROM_INT): Remove.
36486 (TARGET_SUPPORTS_WIDE_INT): New.
36487 * doc/tm.texi: Regenerate.
36488 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
36489 * double-int.h: Include wide-int.h.
36490 (struct wi::int_traits): New.
36491 * dwarf2out.c (get_full_len): New.
36492 (dw_val_equal_p): Add case dw_val_class_wide_int.
36493 (size_of_loc_descr): Likewise.
36494 (output_loc_operands): Likewise.
36495 (insert_double): Remove.
36496 (insert_wide_int): New.
36497 (add_AT_wide): New.
36498 (print_die): Add case dw_val_class_wide_int.
36499 (attr_checksum): Likewise.
36500 (attr_checksum_ordered): Likewise.
36501 (same_dw_val_p): Likewise.
36502 (size_of_die): Likewise.
36503 (value_format): Likewise.
36504 (output_die): Likewise.
36505 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
36506 Use wide-int.
36507 (clz_loc_descriptor): Use wide-int interfaces.
36508 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
36509 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
36510 (round_up_to_align): Use wide-int interfaces.
36511 (field_byte_offset): Likewise.
36512 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
36513 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
36514 CONST_DOUBLE handling. Use wide-int interfaces.
36515 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
36516 (gen_enumeration_type_die): Use add_AT_wide.
36517 (hash_loc_operands): Add case dw_val_class_wide_int.
36518 (compare_loc_operands): Likewise.
36519 * dwarf2out.h: Include wide-int.h.
36520 (wide_int_ptr): New.
36521 (enum dw_val_class): Add dw_val_class_wide_int.
36522 (struct dw_val_struct): Add val_wide.
36523 * emit-rtl.c (const_wide_int_htab): New.
36524 (const_wide_int_htab_hash): New.
36525 (const_wide_int_htab_eq): New.
36526 (lookup_const_wide_int): New.
36527 (const_double_htab_hash): Use wide-int interfaces.
36528 (const_double_htab_eq): Likewise.
36529 (rtx_to_double_int): Conditionally compile for wide-int.
36530 (immed_double_int_const): Rename to immed_wide_int_const and
36531 update for wide-int.
36532 (immed_double_const): Conditionally compile for wide-int.
36533 (init_emit_once): Use wide-int interfaces.
36534 * explow.c (plus_constant): Likewise.
36535 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
36536 (lshift_value): Use wide-int interfaces.
36537 (expand_mult): Likewise.
36538 (choose_multiplier): Likewise.
36539 (expand_smod_pow2): Likewise.
36540 (make_tree): Likewise.
36541 * expr.c (convert_modes): Consolidate handling of constants.
36542 Use wide-int interfaces.
36543 (emit_group_load_1): Add note.
36544 (store_expr): Update comment.
36545 (get_inner_reference): Use wide-int interfaces.
36546 (expand_constructor): Update comment.
36547 (expand_expr_real_2): Use wide-int interfaces.
36548 (expand_expr_real_1): Likewise.
36549 (reduce_to_bit_field_precision): Likewise.
36550 (const_vector_from_tree): Likewise.
36551 * final.c: Include wide-int-print.h.
36552 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
36553 * fixed-value.c: Include wide-int.h.
36554 (fixed_from_string): Use wide-int interfaces.
36555 (fixed_to_decimal): Likewise.
36556 (fixed_convert_from_real): Likewise.
36557 (real_convert_from_fixed): Likewise.
36558 * fold-const.h (mem_ref_offset): Return an offset_int.
36559 (div_if_zero_remainder): Remove code parameter.
36560 * fold-const.c (div_if_zero_remainder): Remove code parameter.
36561 Use wide-int interfaces.
36562 (may_negate_without_overflow_p): Use wide-int interfaces.
36563 (negate_expr_p): Likewise.
36564 (fold_negate_expr): Likewise.
36565 (int_const_binop_1): Likewise.
36566 (const_binop): Likewise.
36567 (fold_convert_const_int_from_int): Likewise.
36568 (fold_convert_const_int_from_real): Likewise.
36569 (fold_convert_const_int_from_fixed): Likewise.
36570 (fold_convert_const_fixed_from_int): Likewise.
36571 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
36572 (sign_bit_p): Use wide-int interfaces.
36573 (make_range_step): Likewise.
36574 (build_range_check): Likewise. Pass an integer of the correct type
36575 instead of using integer_one_node.
36576 (range_predecessor): Pass an integer of the correct type instead
36577 of using integer_one_node.
36578 (range_successor): Likewise.
36579 (merge_ranges): Likewise.
36580 (unextend): Use wide-int interfaces.
36581 (extract_muldiv_1): Likewise.
36582 (fold_div_compare): Likewise.
36583 (fold_single_bit_test): Likewise.
36584 (fold_sign_changed_comparison): Likewise.
36585 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
36586 (fold_plusminus_mult_expr): Use wide-int interfaces.
36587 (native_encode_int): Likewise.
36588 (native_interpret_int): Likewise.
36589 (fold_unary_loc): Likewise.
36590 (pointer_may_wrap_p): Likewise.
36591 (size_low_cst): Likewise.
36592 (mask_with_tz): Likewise.
36593 (fold_binary_loc): Likewise.
36594 (fold_ternary_loc): Likewise.
36595 (multiple_of_p): Likewise.
36596 (tree_call_nonnegative_warnv_p): Update calls to
36597 tree_int_cst_min_precision and real_from_integer.
36598 (fold_negate_const): Use wide-int interfaces.
36599 (fold_abs_const): Likewise.
36600 (fold_relational_const): Use tree_int_cst_lt.
36601 (round_up_loc): Use wide-int interfaces.
36602 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
36603 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
36604 * gengtype.c: Remove include of double-int.h.
36605 (do_typedef): Use wide-int interfaces.
36606 (open_base_files): Add wide-int.h.
36607 (main): Add offset_int and widest_int typedefs.
36608 * gengtype-lex.l: Handle "^".
36609 (CXX_KEYWORD): Add "static".
36610 * gengtype-parse.c (require3): New.
36611 (require_template_declaration): Handle constant template arguments
36612 and nested templates.
36613 * gengtype-state.c: Don't include "double-int.h".
36614 * genpreds.c (write_one_predicate_function): Update comment.
36615 (write_tm_constrs_h): Add check for hval and lval use in
36616 CONST_WIDE_INT.
36617 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
36618 (add_to_sequence): Likewise.
36619 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
36620 and const_double_operand.
36621 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
36622 interfaces.
36623 * gimple-fold.c (get_base_constructor): Likewise.
36624 (fold_array_ctor_reference): Likewise.
36625 (fold_nonarray_ctor_reference): Likewise.
36626 (fold_const_aggregate_ref_1): Likewise.
36627 (gimple_val_nonnegative_real_p): Likewise.
36628 (gimple_fold_indirect_ref): Likewise.
36629 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
36630 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
36631 (struct slsr_cand_d): Change index to be widest_int.
36632 (struct incr_info_d): Change incr to be widest_int.
36633 (alloc_cand_and_find_basis): Use wide-int interfaces.
36634 (slsr_process_phi): Likewise.
36635 (backtrace_base_for_ref): Likewise. Return a widest_int.
36636 (restructure_reference): Take a widest_int instead of a double_int.
36637 (slsr_process_ref): Use wide-int interfaces.
36638 (create_mul_ssa_cand): Likewise.
36639 (create_mul_imm_cand): Likewise.
36640 (create_add_ssa_cand): Likewise.
36641 (create_add_imm_cand): Take a widest_int instead of a double_int.
36642 (slsr_process_add): Use wide-int interfaces.
36643 (slsr_process_cast): Likewise.
36644 (slsr_process_copy): Likewise.
36645 (dump_candidate): Likewise.
36646 (dump_incr_vec): Likewise.
36647 (replace_ref): Likewise.
36648 (cand_increment): Likewise. Return a widest_int.
36649 (cand_abs_increment): Likewise.
36650 (replace_mult_candidate): Take a widest_int instead of a double_int.
36651 (replace_unconditional_candidate): Use wide-int interfaces.
36652 (incr_vec_index): Take a widest_int instead of a double_int.
36653 (create_add_on_incoming_edge): Likewise.
36654 (create_phi_basis): Use wide-int interfaces.
36655 (replace_conditional_candidate): Likewise.
36656 (record_increment): Take a widest_int instead of a double_int.
36657 (record_phi_increments): Use wide-int interfaces.
36658 (phi_incr_cost): Take a widest_int instead of a double_int.
36659 (lowest_cost_path): Likewise.
36660 (total_savings): Likewise.
36661 (analyze_increments): Use wide-int interfaces.
36662 (ncd_with_phi): Take a widest_int instead of a double_int.
36663 (ncd_of_cand_and_phis): Likewise.
36664 (nearest_common_dominator_for_cands): Likewise.
36665 (insert_initializers): Use wide-int interfaces.
36666 (all_phi_incrs_profitable): Likewise.
36667 (replace_one_candidate): Likewise.
36668 (replace_profitable_candidates): Likewise.
36669 * godump.c: Include wide-int-print.h.
36670 (go_output_typedef): Use wide-int interfaces.
36671 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
36672 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
36673 (build_loop_iteration_domains): Likewise.
36674 * hooks.h: Include wide-int.h rather than double-int.h.
36675 (hook_bool_dint_dint_uint_bool_true): Delete.
36676 (hook_bool_wint_wint_uint_bool_true): Declare.
36677 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
36678 (hook_bool_wint_wint_uint_bool_true): New.
36679 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
36680 interfaces.
36681 (ubsan_expand_si_overflow_mul_check): Likewise.
36682 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
36683 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
36684 (get_ancestor_addr_info): Likewise.
36685 (ipa_modify_call_arguments): Likewise.
36686 * loop-doloop.c (doloop_modify): Likewise.
36687 (doloop_optimize): Likewise.
36688 * loop-iv.c (iv_number_of_iterations): Likewise.
36689 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
36690 (unroll_loop_constant_iterations): Likewise.
36691 (decide_unroll_runtime_iterations): Likewise.
36692 (unroll_loop_runtime_iterations): Likewise.
36693 (decide_peel_simple): Likewise.
36694 (decide_unroll_stupid): Likewise.
36695 * lto-streamer-in.c (streamer_read_wi): Add.
36696 (input_cfg): Use wide-int interfaces.
36697 (lto_input_tree_1): Likewise.
36698 * lto-streamer-out.c (streamer_write_wi): Add.
36699 (hash_tree): Use wide-int interfaces.
36700 (output_cfg): Likewise.
36701 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
36702 (GTFILES): Add wide-int.h and signop.h.
36703 (TAGS): Look for .cc files too.
36704 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
36705 * optabs.c (expand_subword_shift): Likewise.
36706 (expand_doubleword_shift): Likewise.
36707 (expand_absneg_bit): Likewise.
36708 (expand_copysign_absneg): Likewise.
36709 (expand_copysign_bit): Likewise.
36710 * postreload.c (reload_cse_simplify_set): Likewise.
36711 * predict.c (predict_iv_comparison): Likewise.
36712 * pretty-print.h: Include wide-int-print.h.
36713 (pp_wide_int) New.
36714 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
36715 * print-tree.c: Include wide-int-print.h.
36716 (print_node_brief): Use wide-int interfaces.
36717 (print_node): Likewise.
36718 * read-rtl.c (validate_const_wide_int): New.
36719 (read_rtx_code): Add CONST_WIDE_INT case.
36720 * real.c: Include wide-int.h.
36721 (real_to_integer2): Delete.
36722 (real_to_integer): New function, returning a wide_int.
36723 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
36724 (ten_to_ptwo): Update call to real_from_integer.
36725 (real_digit): Likewise.
36726 * real.h: Include signop.h, wide-int.h and insn-modes.h.
36727 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
36728 (REAL_VALUE_TO_INT): Delete.
36729 (real_to_integer): Declare a wide-int form.
36730 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
36731 * recog.c (const_int_operand): Improve comment.
36732 (const_scalar_int_operand): New.
36733 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
36734 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
36735 (split_double): Likewise.
36736 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
36737 (rtx_size): Likewise.
36738 (rtx_alloc_stat_v): New.
36739 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
36740 (cwi_output_hex): New.
36741 (iterative_hash_rtx): Handle CONST_WIDE_INT.
36742 (cwi_check_failed_bounds): New.
36743 * rtl.def (CONST_WIDE_INT): New.
36744 * rtl.h: Include <utility> and wide-int.h.
36745 (struct hwivec_def): New.
36746 (CWI_GET_NUM_ELEM): New.
36747 (CWI_PUT_NUM_ELEM): New.
36748 (struct rtx_def): Add num_elem and hwiv.
36749 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
36750 (CASE_CONST_UNIQUE): Likewise.
36751 (CASE_CONST_ANY): Likewise.
36752 (CONST_SCALAR_INT_P): Likewise.
36753 (CONST_WIDE_INT_P): New.
36754 (CWI_ELT): New.
36755 (HWIVEC_CHECK): New.
36756 (cwi_check_failed_bounds): New.
36757 (CWI_ELT): New.
36758 (HWIVEC_CHECK): New.
36759 (CONST_WIDE_INT_VEC) New.
36760 (CONST_WIDE_INT_NUNITS) New.
36761 (CONST_WIDE_INT_ELT) New.
36762 (rtx_mode_t): New type.
36763 (wi::int_traits <rtx_mode_t>): New.
36764 (wi::shwi): New.
36765 (wi::min_value): New.
36766 (wi::max_value): New.
36767 (rtx_alloc_v) New.
36768 (const_wide_int_alloc): New.
36769 (immed_wide_int_const): New.
36770 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
36771 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
36772 * signop.h: New file.
36773 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
36774 (simplify_const_unary_operation): Use wide-int interfaces.
36775 (simplify_binary_operation_1): Likewise.
36776 (simplify_const_binary_operation): Likewise.
36777 (simplify_const_relational_operation): Likewise.
36778 (simplify_immed_subreg): Likewise.
36779 * stmt.c (expand_case): Likewise.
36780 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
36781 signop rather than a bool.
36782 * stor-layout.c (layout_type): Use wide-int interfaces.
36783 (initialize_sizetypes): Update calls to
36784 set_min_and_max_values_for_integral_type.
36785 (set_min_and_max_values_for_integral_type): Take a signop rather
36786 than a bool. Use wide-int interfaces.
36787 (fixup_signed_type): Update accordingly. Remove
36788 HOST_BITS_PER_DOUBLE_INT limit.
36789 (fixup_unsigned_type): Likewise.
36790 * system.h (STATIC_CONSTANT_P): New.
36791 (STATIC_ASSERT): New.
36792 * target.def (can_use_doloop_p): Take widest_ints rather than
36793 double_ints.
36794 * target.h: Include wide-int.h rather than double-int.h.
36795 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
36796 than double_ints.
36797 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
36798 rather than INT_CST_LT_UNSIGNED.
36799 (can_use_doloop_if_innermost): Take widest_ints rather than
36800 double_ints.
36801 * tree-affine.c: Include wide-int-print.h.
36802 (double_int_ext_for_comb): Delete.
36803 (wide_int_ext_for_comb): New.
36804 (aff_combination_zero): Use wide-int interfaces.
36805 (aff_combination_const): Take a widest_int instead of a double_int.
36806 (aff_combination_elt): Use wide-int interfaces.
36807 (aff_combination_scale): Take a widest_int instead of a double_int.
36808 (aff_combination_add_elt): Likewise.
36809 (aff_combination_add_cst): Likewise.
36810 (aff_combination_add): Use wide-int interfaces.
36811 (aff_combination_convert): Likewise.
36812 (tree_to_aff_combination): Likewise.
36813 (add_elt_to_tree): Take a widest_int instead of a double_int.
36814 (aff_combination_to_tree): Use wide-int interfaces.
36815 (aff_combination_remove_elt): Likewise.
36816 (aff_combination_add_product): Take a widest_int instead of
36817 a double_int.
36818 (aff_combination_mult): Use wide-int interfaces.
36819 (aff_combination_expand): Likewise.
36820 (double_int_constant_multiple_p): Delete.
36821 (wide_int_constant_multiple_p): New.
36822 (aff_combination_constant_multiple_p): Take a widest_int pointer
36823 instead of a double_int pointer.
36824 (print_aff): Use wide-int interfaces.
36825 (get_inner_reference_aff): Take a widest_int pointer
36826 instead of a double_int pointer.
36827 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
36828 * tree-affine.h: Include wide-int.h.
36829 (struct aff_comb_elt): Change type of coef to widest_int.
36830 (struct affine_tree_combination): Change type of offset to widest_int.
36831 (double_int_ext_for_comb): Delete.
36832 (wide_int_ext_for_comb): New.
36833 (aff_combination_const): Use widest_int instead of double_int.
36834 (aff_combination_scale): Likewise.
36835 (aff_combination_add_elt): Likewise.
36836 (aff_combination_constant_multiple_p): Likewise.
36837 (get_inner_reference_aff): Likewise.
36838 (aff_comb_cannot_overlap_p): Likewise.
36839 (aff_combination_zero_p): Use wide-int interfaces.
36840 * tree.c: Include tree.h.
36841 (init_ttree): Use make_int_cst.
36842 (tree_code_size): Removed code for INTEGER_CST case.
36843 (tree_size): Add INTEGER_CST case.
36844 (make_node_stat): Update comment.
36845 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
36846 (build_int_cst_type): Use wide-int interfaces.
36847 (double_int_to_tree): Likewise.
36848 (double_int_fits_to_tree_p): Delete.
36849 (force_fit_type_double): Delete.
36850 (force_fit_type): New.
36851 (int_cst_hash_hash): Use wide-int interfaces.
36852 (int_cst_hash_eq): Likewise.
36853 (build_int_cst_wide): Delete.
36854 (wide_int_to_tree): New.
36855 (cache_integer_cst): Use wide-int interfaces.
36856 (build_low_bits_mask): Likewise.
36857 (cst_and_fits_in_hwi): Likewise.
36858 (real_value_from_int_cst): Likewise.
36859 (make_int_cst_stat): New.
36860 (integer_zerop): Use wide_int interfaces.
36861 (integer_onep): Likewise.
36862 (integer_all_onesp): Likewise.
36863 (integer_pow2p): Likewise.
36864 (integer_nonzerop): Likewise.
36865 (tree_log2): Likewise.
36866 (tree_floor_log2): Likewise.
36867 (tree_ctz): Likewise.
36868 (int_size_in_bytes): Likewise.
36869 (mem_ref_offset): Return an offset_int rather than a double_int.
36870 (build_type_attribute_qual_variant): Use wide_int interfaces.
36871 (type_hash_eq): Likewise
36872 (tree_int_cst_equal): Likewise.
36873 (tree_int_cst_lt): Delete.
36874 (tree_int_cst_compare): Likewise.
36875 (tree_fits_shwi_p): Use wide_int interfaces.
36876 (tree_fits_uhwi_p): Likewise.
36877 (tree_int_cst_sign_bit): Likewise.
36878 (tree_int_cst_sgn): Likewise.
36879 (tree_int_cst_min_precision): Take a signop rather than a bool.
36880 (simple_cst_equal): Use wide_int interfaces.
36881 (compare_tree_int): Likewise.
36882 (iterative_hash_expr): Likewise.
36883 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
36884 INT_CST_LT.
36885 (get_type_static_bounds): Use wide_int interfaces.
36886 (tree_int_cst_elt_check_failed): New.
36887 (build_common_tree_nodes): Reordered to set prec before filling in
36888 value.
36889 (int_cst_value): Check cst_and_fits_in_hwi.
36890 (widest_int_cst_value): Use wide_int interfaces.
36891 (upper_bound_in_type): Likewise.
36892 (lower_bound_in_type): Likewise.
36893 (num_ending_zeros): Likewise.
36894 (drop_tree_overflow): Likewise.
36895 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
36896 (gen_conditions_for_pow_cst_base): Likewise.
36897 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
36898 (group_case_labels_stmt): Use wide-int interfaces.
36899 (verify_gimple_assign_binary): Likewise.
36900 (print_loop): Likewise.
36901 * tree-chrec.c (tree_fold_binomial): Likewise.
36902 * tree-core.h (struct tree_base): Add int_length.
36903 (struct tree_int_cst): Change rep of value.
36904 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
36905 (dr_may_alias_p): Likewise.
36906 (max_stmt_executions_tree): Likewise.
36907 * tree.def (INTEGER_CST): Update comment.
36908 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
36909 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
36910 * tree-dump.c: Include wide-int.h and wide-int-print.h.
36911 (dequeue_and_dump): Use wide-int interfaces.
36912 * tree.h: Include wide-int.h.
36913 (NULL_TREE): Moved to earlier loc in file.
36914 (TREE_INT_CST_ELT_CHECK): New.
36915 (tree_int_cst_elt_check_failed): New.
36916 (TYPE_SIGN): New.
36917 (TREE_INT_CST): Delete.
36918 (TREE_INT_CST_LOW): Use wide-int interfaces.
36919 (TREE_INT_CST_HIGH): Delete.
36920 (TREE_INT_CST_NUNITS): New.
36921 (TREE_INT_CST_EXT_NUNITS): Likewise.
36922 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
36923 (TREE_INT_CST_ELT): Likewise.
36924 (INT_CST_LT): Delete.
36925 (tree_int_cst_elt_check): New (two forms).
36926 (type_code_size): Update comment.
36927 (make_int_cst_stat, make_int_cst): New.
36928 (tree_to_double_int): Delete.
36929 (double_int_fits_to_tree_p): Delete.
36930 (force_fit_type_double): Delete.
36931 (build_int_cstu): Replace with out-of-line function.
36932 (build_int_cst_wide): Delete.
36933 (tree_int_cst_lt): Define inline.
36934 (tree_int_cst_le): New.
36935 (tree_int_cst_compare): Define inline.
36936 (tree_int_cst_min_precision): Take a signop rather than a bool.
36937 (wi::int_traits <const_tree>): New.
36938 (wi::int_traits <tree>): New.
36939 (wi::extended_tree): New.
36940 (wi::int_traits <wi::extended_tree>): New.
36941 (wi::to_widest): New.
36942 (wi::to_offset): New.
36943 (wi::fits_to_tree_p): New.
36944 (wi::min_value): New.
36945 (wi::max_value): New.
36946 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
36947 (copy_tree_body_r): Likewise.
36948 * tree-object-size.c (compute_object_offset): Likewise.
36949 (addr_object_size): Likewise.
36950 * tree-predcom.c: Include wide-int-print.h.
36951 (struct dref_d): Change type of offset to widest_int.
36952 (dump_dref): Call wide-int printer.
36953 (aff_combination_dr_offset): Use wide-int interfaces.
36954 (determine_offset): Take a widest_int pointer rather than a
36955 double_int pointer.
36956 (split_data_refs_to_components): Use wide-int interfaces.
36957 (suitable_component_p): Likewise.
36958 (order_drefs): Likewise.
36959 (add_ref_to_chain): Likewise.
36960 (valid_initializer_p): Likewise.
36961 (determine_roots_comp): Likewise.
36962 * tree-pretty-print.c: Include wide-int-print.h.
36963 (dump_generic_node): Use wide-int interfaces.
36964 * tree-sra.c (sra_ipa_modify_expr): Likewise.
36965 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
36966 (move_fixed_address_to_symbol): Likewise.
36967 (move_hint_to_base): Likewise.
36968 (move_pointer_to_base): Likewise.
36969 (move_variant_to_index): Likewise.
36970 (most_expensive_mult_to_index): Likewise.
36971 (addr_to_parts): Likewise.
36972 (copy_ref_info): Likewise.
36973 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
36974 (indirect_refs_may_alias_p): Likewise.
36975 (stmt_kills_ref_p_1): Likewise.
36976 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
36977 * tree-ssa-ccp.c: Update comment at top of file. Include
36978 wide-int-print.h.
36979 (struct prop_value_d): Change type of mask to widest_int.
36980 (extend_mask): New function.
36981 (dump_lattice_value): Use wide-int interfaces.
36982 (get_default_value): Likewise.
36983 (set_constant_value): Likewise.
36984 (set_value_varying): Likewise.
36985 (valid_lattice_transition): Likewise.
36986 (set_lattice_value): Likewise.
36987 (value_to_double_int): Delete.
36988 (value_to_wide_int): New.
36989 (get_value_from_alignment): Use wide-int interfaces.
36990 (get_value_for_expr): Likewise.
36991 (do_dbg_cnt): Likewise.
36992 (ccp_finalize): Likewise.
36993 (ccp_lattice_meet): Likewise.
36994 (bit_value_unop_1): Use widest_ints rather than double_ints.
36995 (bit_value_binop_1): Likewise.
36996 (bit_value_unop): Use wide-int interfaces.
36997 (bit_value_binop): Likewise.
36998 (bit_value_assume_aligned): Likewise.
36999 (evaluate_stmt): Likewise.
37000 (ccp_fold_stmt): Likewise.
37001 (visit_cond_stmt): Likewise.
37002 (ccp_visit_stmt): Likewise.
37003 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
37004 (constant_pointer_difference): Likewise.
37005 (associate_pointerplus): Likewise.
37006 (combine_conversions): Likewise.
37007 * tree-ssa-loop.h: Include wide-int.h.
37008 (struct tree_niter_desc): Change type of max to widest_int.
37009 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
37010 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
37011 (remove_redundant_iv_tests): Likewise.
37012 (canonicalize_loop_induction_variables): Likewise.
37013 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
37014 (constant_multiple_of): Take a widest_int pointer instead of
37015 a double_int pointer.
37016 (get_computation_aff): Use wide-int interfaces.
37017 (ptr_difference_cost): Likewise.
37018 (difference_cost): Likewise.
37019 (get_loop_invariant_expr_id): Likewise.
37020 (get_computation_cost_at): Likewise.
37021 (iv_elimination_compare_lt): Likewise.
37022 (may_eliminate_iv): Likewise.
37023 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
37024 instead of double_int.
37025 (max_loop_iterations): Likewise.
37026 (max_stmt_executions): Likewise.
37027 (estimated_stmt_executions): Likewise.
37028 * tree-ssa-loop-niter.c: Include wide-int-print.h.
37029 (split_to_var_and_offset): Use wide-int interfaces.
37030 (determine_value_range): Likewise.
37031 (bound_difference_of_offsetted_base): Likewise.
37032 (bounds_add): Take a widest_int instead of a double_int.
37033 (number_of_iterations_ne_max): Use wide-int interfaces.
37034 (number_of_iterations_ne): Likewise.
37035 (number_of_iterations_lt_to_ne): Likewise.
37036 (assert_loop_rolls_lt): Likewise.
37037 (number_of_iterations_lt): Likewise.
37038 (number_of_iterations_le): Likewise.
37039 (number_of_iterations_cond): Likewise.
37040 (number_of_iterations_exit): Likewise.
37041 (finite_loop_p): Likewise.
37042 (derive_constant_upper_bound_assign): Likewise.
37043 (derive_constant_upper_bound): Return a widest_int.
37044 (derive_constant_upper_bound_ops): Likewise.
37045 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
37046 (record_estimate): Take a widest_int rather than a double_int.
37047 (record_nonwrapping_iv): Use wide-int interfaces.
37048 (double_int_cmp): Delete.
37049 (wide_int_cmp): New.
37050 (bound_index): Take a widest_int rather than a double_int.
37051 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
37052 (maybe_lower_iteration_bound): Likewise.
37053 (estimate_numbers_of_iterations_loop): Likewise.
37054 (estimated_loop_iterations): Take a widest_int pointer than than
37055 a double_int pointer.
37056 (estimated_loop_iterations_int): Use wide-int interfaces.
37057 (max_loop_iterations): Take a widest_int pointer than than
37058 a double_int pointer.
37059 (max_loop_iterations_int): Use wide-int interfaces.
37060 (max_stmt_executions): Take a widest_int pointer than than
37061 a double_int pointer.
37062 (estimated_stmt_executions): Likewise.
37063 (n_of_executions_at_most): Use wide-int interfaces.
37064 (scev_probably_wraps_p): Likewise.
37065 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
37066 to real_to_integer.
37067 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
37068 interfaces.
37069 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
37070 double_ints. Adjust for trailing_wide_ints <3> representation.
37071 (set_nonzero_bits): Likewise.
37072 (get_range_info): Return wide_ints rather than double_ints.
37073 Adjust for trailing_wide_ints <3> representation.
37074 (get_nonzero_bits): Likewise.
37075 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
37076 representation.
37077 * tree-ssanames.h (struct range_info_def): Replace min, max and
37078 nonzero_bits with a trailing_wide_ints <3>.
37079 (set_range_info): Use wide_int_refs rather than double_ints.
37080 (set_nonzero_bits): Likewise.
37081 (get_range_info): Return wide_ints rather than double_ints.
37082 (get_nonzero_bits): Likewise.
37083 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
37084 * tree-ssa-pre.c (phi_translate_1): Likewise.
37085 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
37086 (acceptable_pow_call): Likewise.
37087 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
37088 interfaces.
37089 (vn_reference_fold_indirect): Likewise.
37090 (vn_reference_maybe_forwprop_address): Likewise.
37091 (valueize_refs_1): Likewise.
37092 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
37093 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
37094 tree_int_cst_lt and tree_int_cst_le.
37095 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
37096 interfaces.
37097 (streamer_alloc_tree): Likewise.
37098 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
37099 (streamer_write_tree_header): Likewise.
37100 (streamer_write_integer_cst): Likewise.
37101 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
37102 (build_constructors): Likewise.
37103 (array_value_type): Likewise.
37104 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
37105 (vect_check_gather): Likewise.
37106 * tree-vect-generic.c (build_replicated_const): Likewise.
37107 (expand_vector_divmod): Likewise.
37108 * tree-vect-loop.c (vect_transform_loop): Likewise.
37109 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
37110 (vect_do_peeling_for_alignment): Likewise.
37111 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
37112 * tree-vrp.c: Include wide-int.h.
37113 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
37114 (extract_range_from_assert): Use wide-int interfaces.
37115 (vrp_int_const_binop): Likewise.
37116 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
37117 double_int pointers.
37118 (ranges_from_anti_range): Use wide-int interfaces.
37119 (quad_int_cmp): Delete.
37120 (quad_int_pair_sort): Likewise.
37121 (extract_range_from_binary_expr_1): Use wide-int interfaces.
37122 (extract_range_from_unary_expr_1): Likewise.
37123 (adjust_range_with_scev): Likewise.
37124 (masked_increment): Take and return wide_ints rather than double_ints.
37125 (register_edge_assert_for_2): Use wide-int interfaces.
37126 (check_array_ref): Likewise.
37127 (search_for_addr_array): Likewise.
37128 (maybe_set_nonzero_bits): Likewise.
37129 (union_ranges): Pass an integer of the correct type instead of
37130 using integer_one_node.
37131 (intersect_ranges): Likewise.
37132 (simplify_truth_ops_using_ranges): Likewise.
37133 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
37134 (range_fits_type_p): Likewise.
37135 (simplify_cond_using_ranges): Likewise. Take a signop rather than
37136 a bool.
37137 (simplify_conversion_using_ranges): Use wide-int interfaces.
37138 (simplify_float_conversion_using_ranges): Likewise.
37139 (vrp_finalize): Likewise.
37140 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
37141 (gimple_stringops_transform): Likewise.
37142 * varasm.c (decode_addr_const): Likewise.
37143 (const_hash_1): Likewise.
37144 (const_rtx_hash_1): Likewise
37145 (output_constant): Likewise.
37146 (array_size_for_constructor): Likewise.
37147 (output_constructor_regular_field): Likewise.
37148 (output_constructor_bitfield): Likewise.
37149 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
37150 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
37151 GENERATOR_FILEs.
37152 * gencheck.c: Define BITS_PER_UNIT.
37153 * wide-int.cc: New.
37154 * wide-int.h: New.
37155 * wide-int-print.cc: New.
37156 * wide-int-print.h: New.
37157
37158 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
37159
37160 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
37161
37162 2014-05-06 Richard Biener <rguenther@suse.de>
37163
37164 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
37165 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
37166 (TODO_verify_all): Adjust.
37167 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
37168 TODO_verify_stmts and TODO_verify_rtl_sharing.
37169 * bb-reorder.c: Likewise.
37170 * cfgexpand.c: Likewise.
37171 * cprop.c: Likewise.
37172 * cse.c: Likewise.
37173 * function.c: Likewise.
37174 * fwprop.c: Likewise.
37175 * gcse.c: Likewise.
37176 * gimple-ssa-isolate-paths.c: Likewise.
37177 * gimple-ssa-strength-reduction.c: Likewise.
37178 * ipa-split.c: Likewise.
37179 * loop-init.c: Likewise.
37180 * loop-unroll.c: Likewise.
37181 * lower-subreg.c: Likewise.
37182 * modulo-sched.c: Likewise.
37183 * postreload-gcse.c: Likewise.
37184 * predict.c: Likewise.
37185 * recog.c: Likewise.
37186 * sched-rgn.c: Likewise.
37187 * store-motion.c: Likewise.
37188 * tracer.c: Likewise.
37189 * trans-mem.c: Likewise.
37190 * tree-call-cdce.c: Likewise.
37191 * tree-cfg.c: Likewise.
37192 * tree-cfgcleanup.c: Likewise.
37193 * tree-complex.c: Likewise.
37194 * tree-eh.c: Likewise.
37195 * tree-emutls.c: Likewise.
37196 * tree-if-conv.c: Likewise.
37197 * tree-into-ssa.c: Likewise.
37198 * tree-loop-distribution.c: Likewise.
37199 * tree-object-size.c: Likewise.
37200 * tree-parloops.c: Likewise.
37201 * tree-pass.h: Likewise.
37202 * tree-sra.c: Likewise.
37203 * tree-ssa-ccp.c: Likewise.
37204 * tree-ssa-copy.c: Likewise.
37205 * tree-ssa-copyrename.c: Likewise.
37206 * tree-ssa-dce.c: Likewise.
37207 * tree-ssa-dom.c: Likewise.
37208 * tree-ssa-dse.c: Likewise.
37209 * tree-ssa-forwprop.c: Likewise.
37210 * tree-ssa-ifcombine.c: Likewise.
37211 * tree-ssa-loop-ch.c: Likewise.
37212 * tree-ssa-loop-ivcanon.c: Likewise.
37213 * tree-ssa-loop.c: Likewise.
37214 * tree-ssa-math-opts.c: Likewise.
37215 * tree-ssa-phiopt.c: Likewise.
37216 * tree-ssa-phiprop.c: Likewise.
37217 * tree-ssa-pre.c: Likewise.
37218 * tree-ssa-reassoc.c: Likewise.
37219 * tree-ssa-sink.c: Likewise.
37220 * tree-ssa-strlen.c: Likewise.
37221 * tree-ssa-tail-merge.c: Likewise.
37222 * tree-ssa-uncprop.c: Likewise.
37223 * tree-switch-conversion.c: Likewise.
37224 * tree-tailcall.c: Likewise.
37225 * tree-vect-generic.c: Likewise.
37226 * tree-vectorizer.c: Likewise.
37227 * tree-vrp.c: Likewise.
37228 * tsan.c: Likewise.
37229 * var-tracking.c: Likewise.
37230 * bt-load.c: Likewise.
37231 * cfgcleanup.c: Likewise.
37232 * combine-stack-adj.c: Likewise.
37233 * combine.c: Likewise.
37234 * compare-elim.c: Likewise.
37235 * config/epiphany/resolve-sw-modes.c: Likewise.
37236 * config/i386/i386.c: Likewise.
37237 * config/mips/mips.c: Likewise.
37238 * config/s390/s390.c: Likewise.
37239 * config/sh/sh_treg_combine.cc: Likewise.
37240 * config/sparc/sparc.c: Likewise.
37241 * dce.c: Likewise.
37242 * dse.c: Likewise.
37243 * final.c: Likewise.
37244 * ifcvt.c: Likewise.
37245 * mode-switching.c: Likewise.
37246 * passes.c: Likewise.
37247 * postreload.c: Likewise.
37248 * ree.c: Likewise.
37249 * reg-stack.c: Likewise.
37250 * regcprop.c: Likewise.
37251 * regrename.c: Likewise.
37252 * web.c: Likewise.
37253
37254 2014-05-06 Richard Biener <rguenther@suse.de>
37255
37256 PR middle-end/61070
37257 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
37258 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
37259
37260 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
37261
37262 PR ipa/60965
37263 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
37264
37265 2014-05-05 Radovan Obradovic <robradovic@mips.com>
37266 Tom de Vries <tom@codesourcery.com>
37267
37268 * target.def (call_fusage_contains_non_callee_clobbers): New
37269 DEFHOOKPOD.
37270 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
37271 Hooks to @menu.
37272 (@node Miscellaneous Register Hooks): New node.
37273 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
37274 * doc/tm.texi: Regenerate.
37275
37276 2014-05-05 Marek Polacek <polacek@redhat.com>
37277
37278 PR driver/61065
37279 * opts.c (common_handle_option): Call error_at instead of warning_at.
37280
37281 2014-05-05 Richard Biener <rguenther@suse.de>
37282
37283 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
37284 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
37285 under the TODO_verify_il umbrella.
37286
37287 2014-05-05 Richard Biener <rguenther@suse.de>
37288
37289 * passes.c (execute_function_todo): Move TODO_verify_flow under
37290 the TODO_verify_ul umbrella.
37291
37292 2014-05-05 Richard Biener <rguenther@suse.de>
37293
37294 PR middle-end/61010
37295 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
37296 X & CST away from a CST that is the mask of a mode.
37297
37298 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
37299
37300 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
37301 int argument to enum machine_mode.
37302 (picochip_class_max_nregs): Ditto.
37303 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
37304 (picochip_class_max_nregs): Ditto.
37305
37306 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37307
37308 * target.def: Add new target hook.
37309 * doc/tm.texi: Regenerate.
37310 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
37311 * targhooks.c (default_keep_leaf_when_profiled): New function.
37312
37313 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
37314 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
37315
37316 2014-05-05 Bin Cheng <bin.cheng@arm.com>
37317
37318 PR tree-optimization/60363
37319 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
37320 (copy_phi_args): New parameters. Call get_value_locus_in_path.
37321 (update_destination_phis): New parameter.
37322 (create_edge_and_update_destination_phis): Ditto.
37323 (ssa_fix_duplicate_block_edges): Pass new arguments.
37324 (thread_single_edge): Ditto.
37325
37326 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
37327
37328 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
37329 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
37330 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
37331 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
37332 Use RS6000_BTM_HARD_FLOAT.
37333 (BU_MISC_2): Likewise.
37334 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
37335 RS6000_BTM_HARD_FLOAT.
37336 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
37337 is explicitly used.
37338 (rs6000_invalid_builtin): Add hard floating builtin support.
37339 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
37340 hard float builtins.
37341 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
37342
37343 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
37344
37345 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
37346 Add missing function* argument.
37347
37348 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
37349
37350 * lra-constraints.c (valid_address_p): Move earlier in file.
37351 Add a constraint argument to the address_info version.
37352 (satisfies_memory_constraint_p): New function.
37353 (satisfies_address_constraint_p): Likewise.
37354 (process_alt_operands, curr_insn_transform): Use them.
37355 (process_address): Pass the constraint to valid_address_p when
37356 checking address operands.
37357
37358 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
37359
37360 * config/mips/mips.c (mips_isa_rev): New variable.
37361 (mips_set_architecture): Set it.
37362 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
37363 from mips_isa_rev.
37364 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
37365 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
37366 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
37367 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
37368 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
37369 conditions in terms of mips_isa_rev.
37370 (mips_isa_rev): Declare.
37371
37372 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
37373
37374 * config/sh/sh-mem.cc: Use tabs instead of spaces.
37375 (prob_unlikely, prob_likely): Make variables const.
37376
37377 2014-05-03 Denis Chertykov <chertykov@gmail.com>
37378
37379 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
37380
37381 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
37382
37383 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
37384
37385 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
37386
37387 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
37388 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
37389 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
37390 functions.
37391 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
37392 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
37393 sh_pass_in_reg_p.
37394 Replace usage of ROUND_REG with sh_round_reg.
37395 Use CEIL instead of ROUND_ADVANCE.
37396
37397 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
37398
37399 PR target/61026
37400 * config/sh/sh.c: Include stdlib headers before everything else.
37401
37402 2014-05-02 Jakub Jelinek <jakub@redhat.com>
37403
37404 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
37405 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
37406 (gimplify_adjust_omp_clauses): Simd region is never
37407 directly nested in combined parallel. Instead, for linear
37408 with copyin/copyout, if in combined for simd loop, make decl
37409 firstprivate/lastprivate on OMP_FOR.
37410 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
37411 expand_omp_for_static_chunk): When setting endvar, also set
37412 fd->loop.v to the same value.
37413
37414 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
37415
37416 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
37417
37418 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
37419
37420 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
37421 expression.
37422
37423 2014-05-02 Marek Polacek <polacek@redhat.com>
37424
37425 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
37426
37427 2014-05-02 Kito Cheng <kito@0xlab.org>
37428
37429 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
37430 to a C expression marco.
37431 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
37432 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
37433 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
37434 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
37435 HONOR_REG_ALLOC_ORDER.
37436 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
37437
37438 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
37439
37440 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
37441
37442 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
37443
37444 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
37445
37446 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
37447
37448 * tree-if-conv.c (is_cond_scalar_reduction): New function.
37449 (convert_scalar_cond_reduction): Likewise.
37450 (predicate_scalar_phi): Add recognition and transformation
37451 of simple conditioanl reduction to be vectorizable.
37452
37453 2014-05-01 Marek Polacek <polacek@redhat.com>
37454
37455 PR c/43245
37456 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
37457
37458 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
37459
37460 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
37461 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
37462 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
37463 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
37464 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
37465 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
37466 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
37467 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
37468
37469 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
37470
37471 * config/arc/arc.opt (mlra): Move comment above option name
37472 to avoid mis-parsing as language options.
37473
37474 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37475
37476 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
37477 * config/sol2.h: ... here.
37478 * config/sol2-10.h: Remove.
37479
37480 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
37481 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
37482 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
37483 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
37484 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
37485 * config/sol2.h: ... here.
37486 (SECTION_NAME_FORMAT): Don't redefine.
37487 (STARTFILE_ARCH32_SPEC): Rename to ...
37488 (STARTFILE_ARCH_SPEC): ... this.
37489 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
37490 * config/sparc/sol2.h: ... here.
37491 (SECTION_NAME_FORMAT): Don't undef.
37492 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
37493 (SUBTARGET_EXTRA_SPECS): Remove.
37494 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
37495
37496 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
37497 (MD_STARTFILE_PREFIX): Remove.
37498 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
37499 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
37500 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
37501 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
37502 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
37503 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
37504 * config/i386/sol2.h: ... here.
37505 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
37506 * config/i386/sol2-bi.h: Remove.
37507 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
37508 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
37509
37510 * config/i386/t-sol2-64: Rename to ...
37511 * config/i386/t-sol2: ... this.
37512 * config/sparc/t-sol2-64: Rename to ...
37513 * config/sparc/t-sol2: ... this.
37514
37515 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
37516 sol2_tm_file_head, sol2_tm_file_tail.
37517 Include ${cpu_type}/sol2.h before sol2.h.
37518 Remove sol2-10.h.
37519 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
37520 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
37521 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
37522 Reflect i386/t-sol2-64 renaming.
37523 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
37524 Reflect sparc/t-sol2-64 renaming.
37525
37526 2014-04-30 Richard Biener <rguenther@suse.de>
37527
37528 * passes.c (execute_function_todo): Move TODO_verify_stmts
37529 and TODO_verify_ssa under the TODO_verify_il umbrella.
37530 * tree-ssa.h (verify_ssa): Adjust prototype.
37531 * tree-ssa.c (verify_ssa): Add parameter to tell whether
37532 we should verify SSA operands.
37533 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
37534 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
37535 whether we should verify whether not throwing stmts have EH info.
37536 * graphite-scop-detection.c (create_sese_edges): Adjust.
37537 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
37538 * tree-eh.c (lower_try_finally_switch): Do not add the
37539 default case label twice.
37540
37541 2014-04-30 Marek Polacek <polacek@redhat.com>
37542
37543 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
37544 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
37545 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
37546 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
37547
37548 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
37549
37550 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
37551 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
37552 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
37553 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
37554 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
37555 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
37556 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
37557 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
37558
37559 2014-04-29 David Malcolm <dmalcolm@redhat.com>
37560
37561 * tree-cfg.c (dump_function_to_file): Dump the return type of
37562 functions, in a line to itself before the function body, mimicking
37563 the layout of a C function.
37564
37565 2014-04-29 Jakub Jelinek <jakub@redhat.com>
37566
37567 PR tree-optimization/60971
37568 * tree-tailcall.c (process_assignment): Reject conversions which
37569 reduce precision.
37570
37571 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
37572
37573 * calls.c (initialize_argument_information): Always treat
37574 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
37575 (expand_call): Likewise.
37576 (emit_library_call_calue_1): Likewise.
37577 * expr.c (PUSH_ARGS_REVERSED): Do not define.
37578 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
37579 code accordingly.
37580
37581 2014-04-29 Nick Clifton <nickc@redhat.com>
37582
37583 * config/msp430/msp430.md (umulsidi): Fix typo.
37584 (mulhisi3): Enable even inside interrupt handlers.
37585 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
37586 bigger return address pushed in large mode.
37587
37588 2014-04-29 Nick Clifton <nickc@redhat.com>
37589
37590 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
37591 (arc_init_reg_tables): Use a machine_mode enum to iterate over
37592 available modes.
37593 * config/m32r/m32r.c (init_reg_tables): Likewise.
37594 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
37595 enum to hold the modes.
37596
37597 2014-04-29 Richard Biener <rguenther@suse.de>
37598
37599 * dominance.c (free_dominance_info): Add overload with
37600 function parameter.
37601 (dom_info_state): Likewise.
37602 (dom_info_available_p): Likewise.
37603 * basic-block.h (free_dominance_info, dom_info_state,
37604 dom_info_available_p): Declare overloads.
37605 * passes.c (execute_function_todo): Verify that verifiers
37606 don't change dominator info state. Drop dominator info
37607 for IPA pass invocations.
37608 * cgraph.c (release_function_body): Restore asserts that
37609 dominator information is released.
37610
37611 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
37612
37613 * doc/invoke.texi: Fix typo.
37614 * tree-vrp.c: Fix typos.
37615 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
37616
37617 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
37618
37619 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
37620
37621 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
37622
37623 * config/aarch64/aarch64-builtins.c
37624 (aarch64_types_storestruct_lane_qualifiers): New.
37625 (TYPES_STORESTRUCT_LANE): Likewise.
37626 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
37627 (st3_lane): Likewise.
37628 (st4_lane): Likewise.
37629 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
37630 (vec_store_lanesci_lane<mode>): Likewise.
37631 (vec_store_lanesxi_lane<mode>): Likewise.
37632 (aarch64_st2_lane<VQ:mode>): Likewise.
37633 (aarch64_st3_lane<VQ:mode>): Likewise.
37634 (aarch64_st4_lane<VQ:mode>): Likewise.
37635 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
37636 * config/aarch64/arm_neon.h
37637 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
37638 use new macro arguments.
37639 (__ST3_LANE_FUNC): Likewise.
37640 (__ST4_LANE_FUNC): Likewise.
37641 * config/aarch64/iterators.md (V_TWO_ELEM): New.
37642 (V_THREE_ELEM): Likewise.
37643 (V_FOUR_ELEM): Likewise.
37644
37645 2014-04-28 David Malcolm <dmalcolm@redhat.com>
37646
37647 * doc/gimple.texi: Replace the description of the now-defunct
37648 union gimple_statement_d with a diagram showing the
37649 gimple_statement_base class hierarchy and its relationships to
37650 the GSS_ and GIMPLE_ enums.
37651
37652 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
37653
37654 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
37655 * config/aarch64/aarch64.c
37656 (aarch64_cannot_change_mode_class): Weaken conditions.
37657 (aarch64_modes_tieable_p): New.
37658 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
37659
37660 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
37661
37662 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
37663 (loadsync_<mode>): Change mode.
37664 (load_quadpti, store_quadpti): New.
37665 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
37666 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
37667
37668 2014-04-28 Martin Jambor <mjambor@suse.cz>
37669
37670 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
37671 same alias type as the original statement.
37672 (subreplacement_assignment_data): New type.
37673 (handle_unscalarized_data_in_subtree): New type of parameter,
37674 generate new memory accesses with same alias type as the original
37675 statement.
37676 (load_assign_lhs_subreplacements): Likewise.
37677 (sra_modify_constructor_assign): Generate new memory accesses with
37678 same alias type as the original statement.
37679
37680 2014-04-28 Richard Biener <rguenther@suse.de>
37681
37682 * tree-pass.h (TODO_verify_il): Define.
37683 (TODO_verify_all): Complete properly.
37684 * passes.c (execute_function_todo): Move existing loop-closed
37685 SSA verification under TODO_verify_il.
37686 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
37687 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
37688 Fix tree sharing issue.
37689
37690 2014-04-28 Richard Biener <rguenther@suse.de>
37691
37692 PR middle-end/60092
37693 * builtins.def (DEF_C11_BUILTIN): Add.
37694 (BUILT_IN_ALIGNED_ALLOC): Likewise.
37695 * coretypes.h (enum function_class): Add function_c11_misc.
37696 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
37697 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
37698 (call_may_clobber_ref_p_1): Likewise.
37699 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
37700 (mark_all_reaching_defs_necessary_1): Likewise.
37701 (propagate_necessity): Likewise.
37702 (eliminate_unnecessary_stmts): Likewise.
37703 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
37704
37705 2014-04-28 Richard Biener <rguenther@suse.de>
37706
37707 * tree-vrp.c (vrp_var_may_overflow): Remove.
37708 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
37709 with overflow immediately bump to one before that value and
37710 let iteration figure out overflow status.
37711
37712 2014-04-28 Richard Biener <rguenther@suse.de>
37713
37714 * configure.ac: Do valgrind header checks unconditionally.
37715 Add --enable-valgrind-annotations.
37716 * system.h: Guard valgrind header inclusion with
37717 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
37718 * alloc-pool.c (pool_alloc, pool_free): Use
37719 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
37720 to guard possibly dead code.
37721 * config.in: Regenerated.
37722 * configure: Likewise.
37723
37724 2014-04-28 Jeff Law <law@redhat.com>
37725
37726 PR tree-optimization/60902
37727 * tree-ssa-threadedge.c
37728 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
37729 over real defs when invalidating outputs from statements that do not
37730 produce useful outputs for threading.
37731
37732 2014-04-28 Richard Biener <rguenther@suse.de>
37733
37734 PR tree-optimization/60979
37735 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
37736 SCOPs that end in a block with a successor with abnormal
37737 predecessors.
37738
37739 2014-04-28 Richard Biener <rguenther@suse.de>
37740
37741 * tree-pass.h (execute_pass_list): Adjust prototype.
37742 * passes.c (pass_manager::execute_early_local_passes): Adjust.
37743 (do_per_function): Change callback signature, push all actual
37744 work to the callbals.
37745 (do_per_function_toporder): Likewise.
37746 (execute_function_dump): Adjust.
37747 (execute_function_todo): Likewise.
37748 (clear_last_verified): Likewise.
37749 (verify_curr_properties): Likewise.
37750 (update_properties_after_pass): Likewise.
37751 (execute_pass_list_1): Split out from ...
37752 (execute_pass_list): ... here. Adjust.
37753 (execute_ipa_pass_list): Likewise.
37754 * cgraphunit.c (cgraph_add_new_function): Adjust.
37755 (analyze_function): Likewise.
37756 (expand_function): Likewise.
37757 * cgraph.c (release_function_body): Free dominance info
37758 here instead of asserting it was magically freed elsewhere.
37759
37760 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
37761
37762 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
37763 * configure: Regenerate.
37764 * config/sparc/sparc.opt (muser-mode): New option.
37765 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
37766 for LEON3.
37767 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
37768 * doc/invoke.texi (SPARC options): Document -muser-mode.
37769
37770 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
37771
37772 * cselib.c (find_slot_memmode): Delete.
37773 (cselib_hasher): Change compare_type to a struct.
37774 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
37775 constants.
37776 (preserve_constants_and_equivs): Adjust for new compare_type.
37777 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
37778 (wrap_constant): Delete.
37779 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
37780
37781 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
37782
37783 * doc/install.texi (Building with profile feedback): Remove
37784 outdated sentence.
37785
37786 2014-04-26 Tom de Vries <tom@codesourcery.com>
37787
37788 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
37789 array accesses.
37790
37791 2014-04-25 Cary Coutant <ccoutant@google.com>
37792
37793 PR debug/60929
37794 * dwarf2out.c (should_move_die_to_comdat): A type definition
37795 can contain a subprogram definition, but don't move it to a
37796 comdat unit.
37797 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
37798 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
37799 from original DIE.
37800 (clone_tree_hash): Rename to...
37801 (clone_tree_partial): ...this; change callers. Copy
37802 DW_TAG_subprogram DIEs as declarations.
37803 (copy_decls_walk): Don't copy children of a declaration into a
37804 type unit.
37805
37806 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
37807
37808 PR target/60969
37809 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
37810 alternative 12.
37811
37812 2014-04-25 Jiong Wang <jiong.wang@arm.com>
37813
37814 * config/arm/predicates.md (call_insn_operand): Add long_call check.
37815 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
37816 reg for long_call.
37817 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
37818 restriction.
37819
37820 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37821
37822 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
37823
37824 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37825
37826 PR tree-optimization/60930
37827 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
37828 creating a multiply candidate by folding two constant
37829 multiplicands when the result overflows.
37830
37831 2014-04-25 Jakub Jelinek <jakub@redhat.com>
37832
37833 PR tree-optimization/60960
37834 * tree-vect-generic.c (expand_vector_operation): Only call
37835 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
37836
37837 2014-04-25 Tom de Vries <tom@codesourcery.com>
37838
37839 * expr.c (clobber_reg_mode): New function.
37840 * expr.h (clobber_reg): New function.
37841
37842 2014-04-25 Tom de Vries <tom@codesourcery.com>
37843
37844 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
37845 clobbers.
37846
37847 2014-04-25 Radovan Obradovic <robradovic@mips.com>
37848 Tom de Vries <tom@codesourcery.com>
37849
37850 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
37851 handle.
37852 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
37853 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
37854 new argument to find_all_hard_reg_sets call.
37855
37856 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37857
37858 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
37859 Use HOST_WIDE_INT_C for mask literal.
37860 (aarch_rev16_shleft_mask_imm_p): Likewise.
37861
37862 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
37863
37864 PR target/60941
37865 * config/sparc/sparc.md (ashlsi3_extend): Delete.
37866
37867 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
37868
37869 PR preprocessor/56540
37870 * config/i386/i386-c.c (ix86_target_macros): Define
37871 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
37872
37873 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37874
37875 * configure.ac (tga_func): Remove.
37876 (LIB_TLS_SPEC): Remove.
37877 * configure: Regenerate.
37878 * config.in: Regenerate.
37879 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
37880
37881 2014-04-25 Richard Biener <rguenther@suse.de>
37882
37883 PR ipa/60912
37884 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
37885 call stmt use/clobber sets during stmt walk instead of
37886 walking the possibly incomplete set of caller edges.
37887
37888 2014-04-25 Richard Biener <rguenther@suse.de>
37889
37890 PR ipa/60911
37891 * passes.c (apply_ipa_transforms): Inline into only caller ...
37892 (execute_one_pass): ... here. Properly bring in function
37893 bodies for nodes we want to apply IPA transforms to.
37894
37895 2014-04-24 Cong Hou <congh@google.com>
37896
37897 PR tree-optimization/60896
37898 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
37899 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
37900 (vect_mark_pattern_stmts): Set the def type of all statements in
37901 PATTERN_DEF_SEQ as vect_internal_def.
37902
37903 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
37904
37905 * doc/extend.texi (PowerPC Built-in Functions): Document new
37906 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
37907 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
37908
37909 * config/rs6000/predicates.md (const_0_to_3_operand): New
37910 predicate to match 0..3 integer constants.
37911
37912 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
37913 to support adding miscellaneous builtin functions.
37914 (BU_DFP_MISC_2): Likewise.
37915 (BU_P7_MISC_1): Likewise.
37916 (BU_P7_MISC_2): Likewise.
37917 (BU_P8V_MISC_3): Likewise.
37918 (BU_MISC_1): Likewise.
37919 (BU_MISC_2): Likewise.
37920 (DIVWE): Add extended divide builtin functions.
37921 (DIVWEO): Likewise.
37922 (DIVWEU): Likewise.
37923 (DIVWEUO): Likewise.
37924 (DIVDE): Likewise.
37925 (DIVDEO): Likewise.
37926 (DIVDEU): Likewise.
37927 (DIVDEUO): Likewise.
37928 (DXEX): Add decimal floating-point builtin functions.
37929 (DXEXQ): Likewise.
37930 (DDEDPD): Likewise.
37931 (DDEDPDQ): Likewise.
37932 (DENBCD): Likewise.
37933 (DENBCDQ): Likewise.
37934 (DIEX): Likewise.
37935 (DIEXQ): Likewise.
37936 (DSCLI): Likewise.
37937 (DSCLIQ): Likewise.
37938 (DSCRI): Likewise.
37939 (DSCRIQ): Likewise.
37940 (CDTBCD): Add new BCD builtin functions.
37941 (CBCDTD): Likewise.
37942 (ADDG6S): Likewise.
37943 (BCDADD): Likewise.
37944 (BCDADD_LT): Likewise.
37945 (BCDADD_EQ): Likewise.
37946 (BCDADD_GT): Likewise.
37947 (BCDADD_OV): Likewise.
37948 (BCDSUB): Likewise.
37949 (BCDSUB_LT): Likewise.
37950 (BCDSUB_EQ): Likewise.
37951 (BCDSUB_GT): Likewise.
37952 (BCDSUB_OV): Likewise.
37953 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
37954 (UNPACK_TD): Likewise.
37955 (PACK_TF): Likewise.
37956 (UNPACK_TF): Likewise.
37957 (UNPACK_TF_0): Likewise.
37958 (UNPACK_TF_1): Likewise.
37959 (PACK_V1TI): Likewise.
37960 (UNPACK_V1TI): Likewise.
37961
37962 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
37963 support for decimal floating point builtin functions.
37964 (rs6000_expand_ternop_builtin): Add checks for the new builtin
37965 functions that take constant arguments.
37966 (rs6000_invalid_builtin): Add decimal floating point builtin support.
37967 (rs6000_init_builtins): Setup long double, _Decimal64, and
37968 _Decimal128 types for new builtin functions.
37969 (builtin_function_type): Set the unsigned flags appropriately for
37970 the new builtin functions.
37971 (rs6000_opt_masks): Add support for decimal floating point builtin
37972 functions.
37973
37974 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
37975 floating point builtin functions.
37976 (RS6000_BTM_COMMON): Likewise.
37977 (RS6000_BTI_long_double): Likewise.
37978 (RS6000_BTI_dfloat64): Likewise.
37979 (RS6000_BTI_dfloat128): Likewise.
37980 (long_double_type_internal_node): Likewise.
37981 (dfloat64_type_internal_node): Likewise.
37982 (dfloat128_type_internal_node): Likewise.
37983
37984 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
37985 2.07 bcd arithmetic instructions.
37986 (UNSPEC_BCDSUB): Likewise.
37987 (UNSPEC_BCD_OVERFLOW): Likewise.
37988 (UNSPEC_BCD_ADD_SUB): Likewise.
37989 (bcd_add_sub): Likewise.
37990 (BCD_TEST): Likewise.
37991 (bcd<bcd_add_sub>): Likewise.
37992 (bcd<bcd_add_sub>_test): Likewise.
37993 (bcd<bcd_add_sub>_test2): Likewise.
37994 (bcd<bcd_add_sub>_<code>): Likewise.
37995 (peephole2 for combined bcd ops): Likewise.
37996
37997 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
37998 decimal floating point builtin functions.
37999 (UNSPEC_DENBCD): Likewise.
38000 (UNSPEC_DXEX): Likewise.
38001 (UNSPEC_DIEX): Likewise.
38002 (UNSPEC_DSCLI): Likewise.
38003 (UNSPEC_DSCRI): Likewise.
38004 (D64_D128): Likewise.
38005 (dfp_suffix): Likewise.
38006 (dfp_ddedpd_<mode>): Likewise.
38007 (dfp_denbcd_<mode>): Likewise.
38008 (dfp_dxex_<mode>): Likewise.
38009 (dfp_diex_<mode>): Likewise.
38010 (dfp_dscli_<mode>): Likewise.
38011 (dfp_dscri_<mode>): Likewise.
38012
38013 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
38014 builtin functions.
38015 (UNSPEC_CDTBCD): Likewise.
38016 (UNSPEC_CBCDTD): Likewise.
38017 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
38018 (UNSPEC_DIVEO): Likewise.
38019 (UNSPEC_DIVEU): Likewise.
38020 (UNSPEC_DIVEUO): Likewise.
38021 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
38022 pack/unpack 128-bit types.
38023 (UNSPEC_PACK_128BIT): Likewise.
38024 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
38025 (udiv<mode>3): Use idiv_ldiv mode attribute.
38026 (div<mode>3): Likewise.
38027 (addg6s): Add new BCD builtin functions.
38028 (cdtbcd): Likewise.
38029 (cbcdtd): Likewise.
38030 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
38031 (div_extend): Likewise.
38032 (div<div_extend>_<mode>"): Likewise.
38033 (FP128_64): Add support for new builtin functions to pack/unpack
38034 128-bit types.
38035 (unpack<mode>): Likewise.
38036 (unpacktf_0): Likewise.
38037 (unpacktf_1): Likewise.
38038 (unpack<mode>_dm): Likewise.
38039 (unpack<mode>_nodm): Likewise.
38040 (pack<mode>): Likewise.
38041 (unpackv1ti): Likewise.
38042 (packv1ti): Likewise.
38043
38044 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
38045
38046 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
38047 is disabled.
38048
38049 2014-04-24 Jakub Jelinek <jakub@redhat.com>
38050
38051 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
38052 * gimplify.c (omp_is_private): Change last argument's type to int.
38053 Only diagnose lastprivate if the simd argument is 1, only diagnose
38054 linear if the simd argument is 2.
38055 (gimplify_omp_for): Adjust omp_is_private callers. When adding
38056 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
38057 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
38058 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
38059 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
38060 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
38061 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
38062 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
38063 * tree-nested.c (convert_nonlocal_omp_clauses,
38064 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
38065
38066 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
38067
38068 PR target/60822
38069 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
38070 operand 1.
38071
38072 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
38073
38074 * flag-types.h (enum ivar_visibility): Add.
38075
38076 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
38077
38078 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
38079 function * argument.
38080
38081 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
38082
38083 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
38084
38085 2014-04-24 Radovan Obradovic <robradovic@mips.com>
38086 Tom de Vries <tom@codesourcery.com>
38087
38088 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
38089 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
38090 reg-note.
38091 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
38092 * emit-rtl.c (try_split): Same.
38093
38094 2014-04-24 Radovan Obradovic <robradovic@mips.com>
38095 Tom de Vries <tom@codesourcery.com>
38096
38097 * common.opt (fuse-caller-save): New option.
38098
38099 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
38100
38101 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
38102 elements for big-endian.
38103
38104 2014-04-24 Richard Biener <rguenther@suse.de>
38105
38106 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
38107 during TER and instead use the sepops interface for expanding
38108 non-GIMPLE_SINGLE_RHS.
38109
38110 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38111
38112 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
38113 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
38114
38115 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38116
38117 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
38118 assembler 64-bit option.
38119 * configure: Regenerate.
38120
38121 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38122
38123 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
38124 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
38125 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
38126 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
38127 (TARGET_CRYPTO): Take TARGET_SIMD into account.
38128
38129 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38130
38131 * config/aarch64/aarch64-builtins.c
38132 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
38133 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
38134 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
38135 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
38136 builtins.
38137 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
38138 (Vrevsuff): New mode attribute.
38139
38140 2014-04-24 Terry Guo <terry.guo@arm.com>
38141
38142 * config/arm/arm.h (machine_function): Define variable
38143 after_arm_reorg here.
38144 * config/arm/arm.c (after_arm_reorg): Remove the definition.
38145 (arm_split_constant): Update the way to access variable
38146 after_arm_reorg.
38147 (arm_reorg): Ditto.
38148 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
38149
38150 2014-04-23 Tom de Vries <tom@codesourcery.com>
38151
38152 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
38153
38154 2014-04-23 David Malcolm <dmalcolm@redhat.com>
38155
38156 * is-a.h: Update comments to reflect the following changes to the
38157 "pointerness" of the API, making the template parameter match the
38158 return type, allowing use of is-a.h with typedefs of pointers.
38159 (is_a_helper::cast): Return a T rather then a pointer to a T, so
38160 that the return type matches the parameter to the is_a_helper.
38161 (as_a): Likewise.
38162 (dyn_cast): Likewise.
38163
38164 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
38165 pointer from the is-a.h API.
38166
38167 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
38168 (is_a_helper <cgraph_node *>::test): ...this, matching change to
38169 is-a.h API.
38170 (is_a_helper <varpool_node>::test): Likewise, convert to...
38171 (is_a_helper <varpool_node *>::test): ...this.
38172
38173 (varpool_first_variable): Update for removal of implicit pointer
38174 from the is-a.h API.
38175 (varpool_next_variable): Likewise.
38176 (varpool_first_static_initializer): Likewise.
38177 (varpool_next_static_initializer): Likewise.
38178 (varpool_first_defined_variable): Likewise.
38179 (varpool_next_defined_variable): Likewise.
38180 (cgraph_first_defined_function): Likewise.
38181 (cgraph_next_defined_function): Likewise.
38182 (cgraph_first_function): Likewise.
38183 (cgraph_next_function): Likewise.
38184 (cgraph_first_function_with_gimple_body): Likewise.
38185 (cgraph_next_function_with_gimple_body): Likewise.
38186 (cgraph_alias_target): Likewise.
38187 (varpool_alias_target): Likewise.
38188 (cgraph_function_or_thunk_node): Likewise.
38189 (varpool_variable_node): Likewise.
38190 (symtab_real_symbol_p): Likewise.
38191 * cgraphunit.c (referred_to_p): Likewise.
38192 (analyze_functions): Likewise.
38193 (handle_alias_pairs): Likewise.
38194 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
38195 * gimple-ssa.h (gimple_vuse_op): Likewise.
38196 (gimple_vdef_op): Likewise.
38197 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
38198 * gimple.c (gimple_build_asm_1): Likewise.
38199 (gimple_build_try): Likewise.
38200 (gimple_build_resx): Likewise.
38201 (gimple_build_eh_dispatch): Likewise.
38202 (gimple_build_omp_for): Likewise.
38203 (gimple_omp_for_set_clauses): Likewise.
38204
38205 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
38206 (is_a_helper <gimple_statement_asm *>::test): ...this.
38207 (is_a_helper <gimple_statement_bind>::test): Convert to...
38208 (is_a_helper <gimple_statement_bind *>::test): ...this.
38209 (is_a_helper <gimple_statement_call>::test): Convert to...
38210 (is_a_helper <gimple_statement_call *>::test): ...this.
38211 (is_a_helper <gimple_statement_catch>::test): Convert to...
38212 (is_a_helper <gimple_statement_catch *>::test): ...this.
38213 (is_a_helper <gimple_statement_resx>::test): Convert to...
38214 (is_a_helper <gimple_statement_resx *>::test): ...this.
38215 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
38216 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
38217 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
38218 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
38219 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
38220 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
38221 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
38222 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
38223 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
38224 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
38225 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
38226 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
38227 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
38228 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
38229 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
38230 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
38231 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
38232 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
38233 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
38234 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
38235 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
38236 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
38237 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
38238 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
38239 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
38240 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
38241 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
38242 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
38243 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
38244 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
38245 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
38246 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
38247 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
38248 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
38249 (is_a_helper <gimple_statement_phi>::test): Convert to...
38250 (is_a_helper <gimple_statement_phi *>::test): ...this.
38251 (is_a_helper <gimple_statement_transaction>::test): Convert to...
38252 (is_a_helper <gimple_statement_transaction *>::test): ...this.
38253 (is_a_helper <gimple_statement_try>::test): Convert to...
38254 (is_a_helper <gimple_statement_try *>::test): ...this.
38255 (is_a_helper <gimple_statement_wce>::test): Convert to...
38256 (is_a_helper <gimple_statement_wce *>::test): ...this.
38257 (is_a_helper <const gimple_statement_asm>::test): Convert to...
38258 (is_a_helper <const gimple_statement_asm *>::test): ...this.
38259 (is_a_helper <const gimple_statement_bind>::test): Convert to...
38260 (is_a_helper <const gimple_statement_bind *>::test): ...this.
38261 (is_a_helper <const gimple_statement_call>::test): Convert to...
38262 (is_a_helper <const gimple_statement_call *>::test): ...this.
38263 (is_a_helper <const gimple_statement_catch>::test): Convert to...
38264 (is_a_helper <const gimple_statement_catch *>::test): ...this.
38265 (is_a_helper <const gimple_statement_resx>::test): Convert to...
38266 (is_a_helper <const gimple_statement_resx *>::test): ...this.
38267 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
38268 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
38269 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
38270 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
38271 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
38272 Convert to...
38273 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
38274 ...this.
38275 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
38276 Convert to...
38277 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
38278 ...this.
38279 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
38280 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
38281 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
38282 to...
38283 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
38284 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
38285 to...
38286 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
38287 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
38288 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
38289 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
38290 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
38291 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
38292 to...
38293 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
38294 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
38295 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
38296 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
38297 to...
38298 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
38299 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
38300 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
38301 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
38302 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
38303 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
38304 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
38305 (is_a_helper <const gimple_statement_phi>::test): Convert to...
38306 (is_a_helper <const gimple_statement_phi *>::test): ...this.
38307 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
38308 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
38309 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
38310 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
38311 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
38312 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
38313 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
38314 to...
38315 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
38316 ...this.
38317 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
38318 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
38319
38320 (gimple_use_ops): Update for removal of implicit pointer from the
38321 is-a.h API.
38322 (gimple_set_use_ops): Likewise.
38323 (gimple_vuse): Likewise.
38324 (gimple_vdef): Likewise.
38325 (gimple_vuse_ptr): Likewise.
38326 (gimple_vdef_ptr): Likewise.
38327 (gimple_set_vuse): Likewise.
38328 (gimple_set_vdef): Likewise.
38329 (gimple_omp_return_set_lhs): Likewise.
38330 (gimple_omp_return_lhs): Likewise.
38331 (gimple_omp_return_lhs_ptr): Likewise.
38332 (gimple_call_fntype): Likewise.
38333 (gimple_call_set_fntype): Likewise.
38334 (gimple_call_set_internal_fn): Likewise.
38335 (gimple_call_use_set): Likewise.
38336 (gimple_call_clobber_set): Likewise.
38337 (gimple_bind_vars): Likewise.
38338 (gimple_bind_set_vars): Likewise.
38339 (gimple_bind_body_ptr): Likewise.
38340 (gimple_bind_set_body): Likewise.
38341 (gimple_bind_add_stmt): Likewise.
38342 (gimple_bind_block): Likewise.
38343 (gimple_bind_set_block): Likewise.
38344 (gimple_asm_ninputs): Likewise.
38345 (gimple_asm_noutputs): Likewise.
38346 (gimple_asm_nclobbers): Likewise.
38347 (gimple_asm_nlabels): Likewise.
38348 (gimple_asm_input_op): Likewise.
38349 (gimple_asm_input_op_ptr): Likewise.
38350 (gimple_asm_output_op): Likewise.
38351 (gimple_asm_output_op_ptr): Likewise.
38352 (gimple_asm_set_output_op): Likewise.
38353 (gimple_asm_clobber_op): Likewise.
38354 (gimple_asm_set_clobber_op): Likewise.
38355 (gimple_asm_label_op): Likewise.
38356 (gimple_asm_set_label_op): Likewise.
38357 (gimple_asm_string): Likewise.
38358 (gimple_catch_types): Likewise.
38359 (gimple_catch_types_ptr): Likewise.
38360 (gimple_catch_handler_ptr): Likewise.
38361 (gimple_catch_set_types): Likewise.
38362 (gimple_catch_set_handler): Likewise.
38363 (gimple_eh_filter_types): Likewise.
38364 (gimple_eh_filter_types_ptr): Likewise.
38365 (gimple_eh_filter_failure_ptr): Likewise.
38366 (gimple_eh_filter_set_types): Likewise.
38367 (gimple_eh_filter_set_failure): Likewise.
38368 (gimple_eh_must_not_throw_fndecl): Likewise.
38369 (gimple_eh_must_not_throw_set_fndecl): Likewise.
38370 (gimple_eh_else_n_body_ptr): Likewise.
38371 (gimple_eh_else_e_body_ptr): Likewise.
38372 (gimple_eh_else_set_n_body): Likewise.
38373 (gimple_eh_else_set_e_body): Likewise.
38374 (gimple_try_eval_ptr): Likewise.
38375 (gimple_try_cleanup_ptr): Likewise.
38376 (gimple_try_set_eval): Likewise.
38377 (gimple_try_set_cleanup): Likewise.
38378 (gimple_wce_cleanup_ptr): Likewise.
38379 (gimple_wce_set_cleanup): Likewise.
38380 (gimple_phi_capacity): Likewise.
38381 (gimple_phi_num_args): Likewise.
38382 (gimple_phi_result): Likewise.
38383 (gimple_phi_result_ptr): Likewise.
38384 (gimple_phi_set_result): Likewise.
38385 (gimple_phi_arg): Likewise.
38386 (gimple_phi_set_arg): Likewise.
38387 (gimple_resx_region): Likewise.
38388 (gimple_resx_set_region): Likewise.
38389 (gimple_eh_dispatch_region): Likewise.
38390 (gimple_eh_dispatch_set_region): Likewise.
38391 (gimple_omp_critical_name): Likewise.
38392 (gimple_omp_critical_name_ptr): Likewise.
38393 (gimple_omp_critical_set_name): Likewise.
38394 (gimple_omp_for_clauses): Likewise.
38395 (gimple_omp_for_clauses_ptr): Likewise.
38396 (gimple_omp_for_set_clauses): Likewise.
38397 (gimple_omp_for_collapse): Likewise.
38398 (gimple_omp_for_index): Likewise.
38399 (gimple_omp_for_index_ptr): Likewise.
38400 (gimple_omp_for_set_index): Likewise.
38401 (gimple_omp_for_initial): Likewise.
38402 (gimple_omp_for_initial_ptr): Likewise.
38403 (gimple_omp_for_set_initial): Likewise.
38404 (gimple_omp_for_final): Likewise.
38405 (gimple_omp_for_final_ptr): Likewise.
38406 (gimple_omp_for_set_final): Likewise.
38407 (gimple_omp_for_incr): Likewise.
38408 (gimple_omp_for_incr_ptr): Likewise.
38409 (gimple_omp_for_set_incr): Likewise.
38410 (gimple_omp_for_pre_body_ptr): Likewise.
38411 (gimple_omp_for_set_pre_body): Likewise.
38412 (gimple_omp_parallel_clauses): Likewise.
38413 (gimple_omp_parallel_clauses_ptr): Likewise.
38414 (gimple_omp_parallel_set_clauses): Likewise.
38415 (gimple_omp_parallel_child_fn): Likewise.
38416 (gimple_omp_parallel_child_fn_ptr): Likewise.
38417 (gimple_omp_parallel_set_child_fn): Likewise.
38418 (gimple_omp_parallel_data_arg): Likewise.
38419 (gimple_omp_parallel_data_arg_ptr): Likewise.
38420 (gimple_omp_parallel_set_data_arg): Likewise.
38421 (gimple_omp_task_clauses): Likewise.
38422 (gimple_omp_task_clauses_ptr): Likewise.
38423 (gimple_omp_task_set_clauses): Likewise.
38424 (gimple_omp_task_child_fn): Likewise.
38425 (gimple_omp_task_child_fn_ptr): Likewise.
38426 (gimple_omp_task_set_child_fn): Likewise.
38427 (gimple_omp_task_data_arg): Likewise.
38428 (gimple_omp_task_data_arg_ptr): Likewise.
38429 (gimple_omp_task_set_data_arg): Likewise.
38430 (gimple_omp_taskreg_clauses): Likewise.
38431 (gimple_omp_taskreg_clauses_ptr): Likewise.
38432 (gimple_omp_taskreg_set_clauses): Likewise.
38433 (gimple_omp_taskreg_child_fn): Likewise.
38434 (gimple_omp_taskreg_child_fn_ptr): Likewise.
38435 (gimple_omp_taskreg_set_child_fn): Likewise.
38436 (gimple_omp_taskreg_data_arg): Likewise.
38437 (gimple_omp_taskreg_data_arg_ptr): Likewise.
38438 (gimple_omp_taskreg_set_data_arg): Likewise.
38439 (gimple_omp_task_copy_fn): Likewise.
38440 (gimple_omp_task_copy_fn_ptr): Likewise.
38441 (gimple_omp_task_set_copy_fn): Likewise.
38442 (gimple_omp_task_arg_size): Likewise.
38443 (gimple_omp_task_arg_size_ptr): Likewise.
38444 (gimple_omp_task_set_arg_size): Likewise.
38445 (gimple_omp_task_arg_align): Likewise.
38446 (gimple_omp_task_arg_align_ptr): Likewise.
38447 (gimple_omp_task_set_arg_align): Likewise.
38448 (gimple_omp_single_clauses): Likewise.
38449 (gimple_omp_single_clauses_ptr): Likewise.
38450 (gimple_omp_single_set_clauses): Likewise.
38451 (gimple_omp_target_clauses): Likewise.
38452 (gimple_omp_target_clauses_ptr): Likewise.
38453 (gimple_omp_target_set_clauses): Likewise.
38454 (gimple_omp_target_child_fn): Likewise.
38455 (gimple_omp_target_child_fn_ptr): Likewise.
38456 (gimple_omp_target_set_child_fn): Likewise.
38457 (gimple_omp_target_data_arg): Likewise.
38458 (gimple_omp_target_data_arg_ptr): Likewise.
38459 (gimple_omp_target_set_data_arg): Likewise.
38460 (gimple_omp_teams_clauses): Likewise.
38461 (gimple_omp_teams_clauses_ptr): Likewise.
38462 (gimple_omp_teams_set_clauses): Likewise.
38463 (gimple_omp_sections_clauses): Likewise.
38464 (gimple_omp_sections_clauses_ptr): Likewise.
38465 (gimple_omp_sections_set_clauses): Likewise.
38466 (gimple_omp_sections_control): Likewise.
38467 (gimple_omp_sections_control_ptr): Likewise.
38468 (gimple_omp_sections_set_control): Likewise.
38469 (gimple_omp_for_set_cond): Likewise.
38470 (gimple_omp_for_cond): Likewise.
38471 (gimple_omp_atomic_store_set_val): Likewise.
38472 (gimple_omp_atomic_store_val): Likewise.
38473 (gimple_omp_atomic_store_val_ptr): Likewise.
38474 (gimple_omp_atomic_load_set_lhs): Likewise.
38475 (gimple_omp_atomic_load_lhs): Likewise.
38476 (gimple_omp_atomic_load_lhs_ptr): Likewise.
38477 (gimple_omp_atomic_load_set_rhs): Likewise.
38478 (gimple_omp_atomic_load_rhs): Likewise.
38479 (gimple_omp_atomic_load_rhs_ptr): Likewise.
38480 (gimple_omp_continue_control_def): Likewise.
38481 (gimple_omp_continue_control_def_ptr): Likewise.
38482 (gimple_omp_continue_set_control_def): Likewise.
38483 (gimple_omp_continue_control_use): Likewise.
38484 (gimple_omp_continue_control_use_ptr): Likewise.
38485 (gimple_omp_continue_set_control_use): Likewise.
38486 (gimple_transaction_body_ptr): Likewise.
38487 (gimple_transaction_label): Likewise.
38488 (gimple_transaction_label_ptr): Likewise.
38489 (gimple_transaction_set_body): Likewise.
38490 (gimple_transaction_set_label): Likewise.
38491
38492 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
38493 * ipa-inline-analysis.c (inline_write_summary): Likewise.
38494 * ipa-ref.c (ipa_record_reference): Likewise.
38495 * ipa-reference.c (analyze_function): Likewise.
38496 (ipa_reference_write_optimization_summary): Likewise.
38497 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
38498 (address_taken_from_non_vtable_p): Likewise.
38499 (comdat_can_be_unshared_p_1): Likewise.
38500 * lto-cgraph.c (lto_output_ref): Likewise.
38501 (add_references): Likewise.
38502 (compute_ltrans_boundary): Likewise.
38503 (output_symtab): Likewise.
38504 (input_ref): Likewise.
38505 (input_cgraph_1): Likewise.
38506 (output_cgraph_opt_summary): Likewise.
38507 * lto-streamer-out.c (lto_output): Likewise.
38508 (output_symbol_p): Likewise.
38509 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
38510 (lsei_start_function_in_partition): Likewise.
38511 (lsei_next_variable_in_partition): Likewise.
38512 (lsei_start_variable_in_partition): Likewise.
38513 * symtab.c (insert_to_assembler_name_hash): Likewise.
38514 (unlink_from_assembler_name_hash): Likewise.
38515 (symtab_unregister_node): Likewise.
38516 (symtab_remove_node): Likewise.
38517 (dump_symtab_node): Likewise.
38518 (verify_symtab_base): Likewise.
38519 (verify_symtab_node): Likewise.
38520 (symtab_make_decl_local): Likewise.
38521 (symtab_alias_ultimate_target): Likewise.
38522 (symtab_resolve_alias): Likewise.
38523 (symtab_get_symbol_partitioning_class): Likewise.
38524 * tree-phinodes.c (allocate_phi_node): Likewise.
38525 (reserve_phi_args_for_new_edge): Likewise.
38526 (remove_phi_args): Likewise.
38527 * varpool.c (varpool_node_for_asm): Likewise.
38528 (varpool_remove_unreferenced_decls): Likewise.
38529
38530 2014-04-23 Jeff Law <law@redhat.com>
38531
38532 PR tree-optimization/60902
38533 * tree-ssa-threadedge.c
38534 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
38535 invalidate outputs from statements that do not produce useful
38536 outputs for threading.
38537
38538 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
38539
38540 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
38541 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
38542 machine descriptions for Stack Smashing Protector.
38543
38544 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
38545
38546 * aarch64.md (<optab>_rol<mode>3): New pattern.
38547 (<optab>_rolsi3_uxtw): Likewise.
38548 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
38549
38550 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
38551
38552 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
38553 (arm_cortex_a12_tune): Likewise.
38554
38555 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38556
38557 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
38558
38559 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38560
38561 * config/arm/arm.md (arm_rev16si2): New pattern.
38562 (arm_rev16si2_alt): Likewise.
38563 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
38564
38565 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38566
38567 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
38568 (rev16<mode>2_alt): Likewise.
38569 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
38570 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
38571 (aarch_rev16_shleft_mask_imm_p): Likewise.
38572 (aarch_rev16_p_1): Likewise.
38573 (aarch_rev16_p): Likewise.
38574 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
38575 (aarch_rev16_shright_mask_imm_p): Likewise.
38576 (aarch_rev16_shleft_mask_imm_p): Likewise.
38577
38578 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38579
38580 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
38581 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
38582 rev cost.
38583 (cortex_a53_extra_costs): Likewise.
38584 (cortex_a57_extra_costs): Likewise.
38585 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
38586 (cortexa7_extra_costs): Likewise.
38587 (cortexa8_extra_costs): Likewise.
38588 (cortexa12_extra_costs): Likewise.
38589 (cortexa15_extra_costs): Likewise.
38590 (v7m_extra_costs): Likewise.
38591 (arm_new_rtx_costs): Handle BSWAP.
38592
38593 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38594
38595 * config/arm/arm.c (cortexa8_extra_costs): New table.
38596 (arm_cortex_a8_tune): New tuning struct.
38597 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
38598
38599 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38600
38601 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
38602
38603 2014-04-23 Richard Biener <rguenther@suse.de>
38604
38605 * Makefile.in (OBJS): Remove loop-unswitch.o.
38606 * tree-pass.h (make_pass_rtl_unswitch): Remove.
38607 * passes.def (pass_rtl_unswitch): Likewise.
38608 * loop-init.c (gate_rtl_unswitch): Likewise.
38609 (rtl_unswitch): Likewise.
38610 (pass_data_rtl_unswitch): Likewise.
38611 (pass_rtl_unswitch): Likewise.
38612 (make_pass_rtl_unswitch): Likewise.
38613 * rtl.h (reversed_condition): Likewise.
38614 (compare_and_jump_seq): Likewise.
38615 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
38616 and make static.
38617 * loop-unroll.c (compare_and_jump_seq): Likewise.
38618
38619 2014-04-23 Richard Biener <rguenther@suse.de>
38620
38621 PR tree-optimization/60903
38622 * tree-ssa-loop-im.c (analyze_memory_references): Remove
38623 commented code block.
38624 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
38625 loop flags to newly created BBs and edges.
38626
38627 2014-04-23 Nick Clifton <nickc@redhat.com>
38628
38629 * config/msp430/msp430.c (msp430_handle_option): Move function
38630 to msp430-common.c
38631 (msp430_option_override): Simplify mcu and mcpu option handling.
38632 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
38633 support for -mhwmult command line option.
38634 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
38635 -mhwmult command line option.
38636 (msp430_hwmult_enabled): Delete.
38637 (msp43o_output_labelref): Add support for -mhwmult command line option.
38638 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
38639 (umulsidi3): Likewise.
38640 * config/msp430/msp430.opt (mmcu): Add Report attribute.
38641 (mcpu, mlarge, msmall): Likewise.
38642 (mhwmult): New option.
38643 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
38644 prototype.
38645 (msp430_is_f5_mcu): Remove prototype.
38646 (msp430_use_f5_series_hwmult): Add prototype.
38647 * config/msp430/msp430-opts.h: New file.
38648 * common/config/msp430: New directory.
38649 * common/config/msp430/msp430-common.c: New file.
38650 * config.gcc (msp430): Remove target_has_targetm_common.
38651 * doc/invoke.texi: Document -mhwmult command line option.
38652
38653 2014-04-23 Nick Clifton <nickc@redhat.com>
38654
38655 * config/i386/cygwin.h (ENDFILE_SPEC): Include
38656 default-manifest.o if it can be found in the search path.
38657 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
38658
38659 2014-04-23 Terry Guo <terry.guo@arm.com>
38660
38661 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
38662
38663 2014-04-23 Richard Biener <rguenther@suse.de>
38664
38665 PR middle-end/60895
38666 * tree-inline.c (declare_return_variable): Use mark_addressable.
38667
38668 2014-04-23 Richard Biener <rguenther@suse.de>
38669
38670 PR middle-end/60891
38671 * loop-init.c (loop_optimizer_init): Make sure to apply
38672 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
38673
38674 2014-04-22 Jakub Jelinek <jakub@redhat.com>
38675
38676 PR sanitizer/60275
38677 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
38678 New options.
38679 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
38680 if flag_sanitize_undefined_trap_on_error.
38681 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
38682 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
38683 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
38684 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
38685 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
38686 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
38687 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
38688 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
38689 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
38690 * ubsan.c (ubsan_instrument_unreachable): Return
38691 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
38692 (ubsan_expand_null_ifn): Emit __builtin_trap ()
38693 if flag_sanitize_undefined_trap_on_error and
38694 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
38695 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
38696 instrument_bool_enum_load): Emit __builtin_trap () if
38697 flag_sanitize_undefined_trap_on_error and
38698 __builtin_handle_*_abort () if !flag_sanitize_recover.
38699 * doc/invoke.texi (-fsanitize-recover,
38700 -fsanitize-undefined-trap-on-error): Document.
38701
38702 2014-04-22 Christian Bruel <christian.bruel@st.com>
38703
38704 * config/sh/sh.md (mov<mode>): Replace movQIHI.
38705 Force immediates to SImode.
38706
38707 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
38708
38709 * config/nios2/nios2.md (UNSPEC_ROUND): New.
38710 (lroundsfsi2): New.
38711 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
38712 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
38713 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
38714 (nios2_fpu_insn): Add entry for round.
38715 (N2FPU_NO_ERRNO_P): Define.
38716 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
38717 flag_errno_math.
38718 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
38719
38720 2014-04-22 Richard Henderson <rth@redhat.com>
38721
38722 * config/aarch64/aarch64 (addti3, subti3): New expanders.
38723 (add<GPI>3_compare0): Remove leading * from name.
38724 (add<GPI>3_carryin): Likewise.
38725 (sub<GPI>3_compare0): Likewise.
38726 (sub<GPI>3_carryin): Likewise.
38727 (<su_optab>mulditi3): New expander.
38728 (multi3): New expander.
38729 (madd<GPI>): Remove leading * from name.
38730
38731 2014-04-22 Martin Jambor <mjambor@suse.cz>
38732
38733 * cgraphclones.c (cgraph_function_versioning): Copy
38734 ipa_transforms_to_apply instead of asserting it is empty.
38735
38736 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
38737
38738 PR target/60868
38739 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
38740 on count_exp to get mode.
38741
38742 2014-04-22 Andrew Pinski <apinski@cavium.com>
38743
38744 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
38745 Handle TLS for ILP32.
38746 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
38747 (tlsie_small_<mode>): this and handle PTR.
38748 (tlsie_small_sidi): New pattern.
38749 (tlsle_small): Change to an expand to handle ILP32.
38750 (tlsle_small_<mode>): New pattern.
38751 (tlsdesc_small): Rename to ...
38752 (tlsdesc_small_<mode>): this and handle PTR.
38753
38754 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38755
38756 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
38757
38758 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
38759
38760 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
38761 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
38762 (aarch64_types_signed_poly_qualifiers): Likewise.
38763 (aarch64_types_unsigned_signed_qualifiers): Likewise.
38764 (aarch64_types_poly_signed_qualifiers): Likewise.
38765 (TYPES_REINTERP_SS): Type macro added.
38766 (TYPES_REINTERP_SU): Likewise.
38767 (TYPES_REINTERP_SP): Likewise.
38768 (TYPES_REINTERP_US): Likewise.
38769 (TYPES_REINTERP_PS): Likewise.
38770 (aarch64_fold_builtin): New expression folding added.
38771 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
38772 Declarations removed.
38773 (REINTERP_SS): Declarations added.
38774 (REINTERP_US): Likewise.
38775 (REINTERP_PS): Likewise.
38776 (REINTERP_SU): Likewise.
38777 (REINTERP_SP): Likewise.
38778 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
38779 (vreinterpretq_p8_f64): Likewise.
38780 (vreinterpret_p16_f64): Likewise.
38781 (vreinterpretq_p16_f64): Likewise.
38782 (vreinterpret_f32_f64): Likewise.
38783 (vreinterpretq_f32_f64): Likewise.
38784 (vreinterpret_f64_f32): Likewise.
38785 (vreinterpret_f64_p8): Likewise.
38786 (vreinterpret_f64_p16): Likewise.
38787 (vreinterpret_f64_s8): Likewise.
38788 (vreinterpret_f64_s16): Likewise.
38789 (vreinterpret_f64_s32): Likewise.
38790 (vreinterpret_f64_s64): Likewise.
38791 (vreinterpret_f64_u8): Likewise.
38792 (vreinterpret_f64_u16): Likewise.
38793 (vreinterpret_f64_u32): Likewise.
38794 (vreinterpret_f64_u64): Likewise.
38795 (vreinterpretq_f64_f32): Likewise.
38796 (vreinterpretq_f64_p8): Likewise.
38797 (vreinterpretq_f64_p16): Likewise.
38798 (vreinterpretq_f64_s8): Likewise.
38799 (vreinterpretq_f64_s16): Likewise.
38800 (vreinterpretq_f64_s32): Likewise.
38801 (vreinterpretq_f64_s64): Likewise.
38802 (vreinterpretq_f64_u8): Likewise.
38803 (vreinterpretq_f64_u16): Likewise.
38804 (vreinterpretq_f64_u32): Likewise.
38805 (vreinterpretq_f64_u64): Likewise.
38806 (vreinterpret_s64_f64): Likewise.
38807 (vreinterpretq_s64_f64): Likewise.
38808 (vreinterpret_u64_f64): Likewise.
38809 (vreinterpretq_u64_f64): Likewise.
38810 (vreinterpret_s8_f64): Likewise.
38811 (vreinterpretq_s8_f64): Likewise.
38812 (vreinterpret_s16_f64): Likewise.
38813 (vreinterpretq_s16_f64): Likewise.
38814 (vreinterpret_s32_f64): Likewise.
38815 (vreinterpretq_s32_f64): Likewise.
38816 (vreinterpret_u8_f64): Likewise.
38817 (vreinterpretq_u8_f64): Likewise.
38818 (vreinterpret_u16_f64): Likewise.
38819 (vreinterpretq_u16_f64): Likewise.
38820 (vreinterpret_u32_f64): Likewise.
38821 (vreinterpretq_u32_f64): Likewise.
38822
38823 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
38824
38825 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
38826 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
38827 (vreinterpret_p8_s8): Likewise.
38828 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
38829 (vreinterpret_p8_s16): Likewise.
38830 (vreinterpret_p8_s32): Likewise.
38831 (vreinterpret_p8_s64): Likewise.
38832 (vreinterpret_p8_f32): Likewise.
38833 (vreinterpret_p8_u8): Likewise.
38834 (vreinterpret_p8_u16): Likewise.
38835 (vreinterpret_p8_u32): Likewise.
38836 (vreinterpret_p8_u64): Likewise.
38837 (vreinterpret_p8_p16): Likewise.
38838 (vreinterpretq_p8_s8): Likewise.
38839 (vreinterpretq_p8_s16): Likewise.
38840 (vreinterpretq_p8_s32): Likewise.
38841 (vreinterpretq_p8_s64): Likewise.
38842 (vreinterpretq_p8_f32): Likewise.
38843 (vreinterpretq_p8_u8): Likewise.
38844 (vreinterpretq_p8_u16): Likewise.
38845 (vreinterpretq_p8_u32): Likewise.
38846 (vreinterpretq_p8_u64): Likewise.
38847 (vreinterpretq_p8_p16): Likewise.
38848 (vreinterpret_p16_s8): Likewise.
38849 (vreinterpret_p16_s16): Likewise.
38850 (vreinterpret_p16_s32): Likewise.
38851 (vreinterpret_p16_s64): Likewise.
38852 (vreinterpret_p16_f32): Likewise.
38853 (vreinterpret_p16_u8): Likewise.
38854 (vreinterpret_p16_u16): Likewise.
38855 (vreinterpret_p16_u32): Likewise.
38856 (vreinterpret_p16_u64): Likewise.
38857 (vreinterpret_p16_p8): Likewise.
38858 (vreinterpretq_p16_s8): Likewise.
38859 (vreinterpretq_p16_s16): Likewise.
38860 (vreinterpretq_p16_s32): Likewise.
38861 (vreinterpretq_p16_s64): Likewise.
38862 (vreinterpretq_p16_f32): Likewise.
38863 (vreinterpretq_p16_u8): Likewise.
38864 (vreinterpretq_p16_u16): Likewise.
38865 (vreinterpretq_p16_u32): Likewise.
38866 (vreinterpretq_p16_u64): Likewise.
38867 (vreinterpretq_p16_p8): Likewise.
38868 (vreinterpret_f32_s8): Likewise.
38869 (vreinterpret_f32_s16): Likewise.
38870 (vreinterpret_f32_s32): Likewise.
38871 (vreinterpret_f32_s64): Likewise.
38872 (vreinterpret_f32_u8): Likewise.
38873 (vreinterpret_f32_u16): Likewise.
38874 (vreinterpret_f32_u32): Likewise.
38875 (vreinterpret_f32_u64): Likewise.
38876 (vreinterpret_f32_p8): Likewise.
38877 (vreinterpret_f32_p16): Likewise.
38878 (vreinterpretq_f32_s8): Likewise.
38879 (vreinterpretq_f32_s16): Likewise.
38880 (vreinterpretq_f32_s32): Likewise.
38881 (vreinterpretq_f32_s64): Likewise.
38882 (vreinterpretq_f32_u8): Likewise.
38883 (vreinterpretq_f32_u16): Likewise.
38884 (vreinterpretq_f32_u32): Likewise.
38885 (vreinterpretq_f32_u64): Likewise.
38886 (vreinterpretq_f32_p8): Likewise.
38887 (vreinterpretq_f32_p16): Likewise.
38888 (vreinterpret_s64_s8): Likewise.
38889 (vreinterpret_s64_s16): Likewise.
38890 (vreinterpret_s64_s32): Likewise.
38891 (vreinterpret_s64_f32): Likewise.
38892 (vreinterpret_s64_u8): Likewise.
38893 (vreinterpret_s64_u16): Likewise.
38894 (vreinterpret_s64_u32): Likewise.
38895 (vreinterpret_s64_u64): Likewise.
38896 (vreinterpret_s64_p8): Likewise.
38897 (vreinterpret_s64_p16): Likewise.
38898 (vreinterpretq_s64_s8): Likewise.
38899 (vreinterpretq_s64_s16): Likewise.
38900 (vreinterpretq_s64_s32): Likewise.
38901 (vreinterpretq_s64_f32): Likewise.
38902 (vreinterpretq_s64_u8): Likewise.
38903 (vreinterpretq_s64_u16): Likewise.
38904 (vreinterpretq_s64_u32): Likewise.
38905 (vreinterpretq_s64_u64): Likewise.
38906 (vreinterpretq_s64_p8): Likewise.
38907 (vreinterpretq_s64_p16): Likewise.
38908 (vreinterpret_u64_s8): Likewise.
38909 (vreinterpret_u64_s16): Likewise.
38910 (vreinterpret_u64_s32): Likewise.
38911 (vreinterpret_u64_s64): Likewise.
38912 (vreinterpret_u64_f32): Likewise.
38913 (vreinterpret_u64_u8): Likewise.
38914 (vreinterpret_u64_u16): Likewise.
38915 (vreinterpret_u64_u32): Likewise.
38916 (vreinterpret_u64_p8): Likewise.
38917 (vreinterpret_u64_p16): Likewise.
38918 (vreinterpretq_u64_s8): Likewise.
38919 (vreinterpretq_u64_s16): Likewise.
38920 (vreinterpretq_u64_s32): Likewise.
38921 (vreinterpretq_u64_s64): Likewise.
38922 (vreinterpretq_u64_f32): Likewise.
38923 (vreinterpretq_u64_u8): Likewise.
38924 (vreinterpretq_u64_u16): Likewise.
38925 (vreinterpretq_u64_u32): Likewise.
38926 (vreinterpretq_u64_p8): Likewise.
38927 (vreinterpretq_u64_p16): Likewise.
38928 (vreinterpret_s8_s16): Likewise.
38929 (vreinterpret_s8_s32): Likewise.
38930 (vreinterpret_s8_s64): Likewise.
38931 (vreinterpret_s8_f32): Likewise.
38932 (vreinterpret_s8_u8): Likewise.
38933 (vreinterpret_s8_u16): Likewise.
38934 (vreinterpret_s8_u32): Likewise.
38935 (vreinterpret_s8_u64): Likewise.
38936 (vreinterpret_s8_p8): Likewise.
38937 (vreinterpret_s8_p16): Likewise.
38938 (vreinterpretq_s8_s16): Likewise.
38939 (vreinterpretq_s8_s32): Likewise.
38940 (vreinterpretq_s8_s64): Likewise.
38941 (vreinterpretq_s8_f32): Likewise.
38942 (vreinterpretq_s8_u8): Likewise.
38943 (vreinterpretq_s8_u16): Likewise.
38944 (vreinterpretq_s8_u32): Likewise.
38945 (vreinterpretq_s8_u64): Likewise.
38946 (vreinterpretq_s8_p8): Likewise.
38947 (vreinterpretq_s8_p16): Likewise.
38948 (vreinterpret_s16_s8): Likewise.
38949 (vreinterpret_s16_s32): Likewise.
38950 (vreinterpret_s16_s64): Likewise.
38951 (vreinterpret_s16_f32): Likewise.
38952 (vreinterpret_s16_u8): Likewise.
38953 (vreinterpret_s16_u16): Likewise.
38954 (vreinterpret_s16_u32): Likewise.
38955 (vreinterpret_s16_u64): Likewise.
38956 (vreinterpret_s16_p8): Likewise.
38957 (vreinterpret_s16_p16): Likewise.
38958 (vreinterpretq_s16_s8): Likewise.
38959 (vreinterpretq_s16_s32): Likewise.
38960 (vreinterpretq_s16_s64): Likewise.
38961 (vreinterpretq_s16_f32): Likewise.
38962 (vreinterpretq_s16_u8): Likewise.
38963 (vreinterpretq_s16_u16): Likewise.
38964 (vreinterpretq_s16_u32): Likewise.
38965 (vreinterpretq_s16_u64): Likewise.
38966 (vreinterpretq_s16_p8): Likewise.
38967 (vreinterpretq_s16_p16): Likewise.
38968 (vreinterpret_s32_s8): Likewise.
38969 (vreinterpret_s32_s16): Likewise.
38970 (vreinterpret_s32_s64): Likewise.
38971 (vreinterpret_s32_f32): Likewise.
38972 (vreinterpret_s32_u8): Likewise.
38973 (vreinterpret_s32_u16): Likewise.
38974 (vreinterpret_s32_u32): Likewise.
38975 (vreinterpret_s32_u64): Likewise.
38976 (vreinterpret_s32_p8): Likewise.
38977 (vreinterpret_s32_p16): Likewise.
38978 (vreinterpretq_s32_s8): Likewise.
38979 (vreinterpretq_s32_s16): Likewise.
38980 (vreinterpretq_s32_s64): Likewise.
38981 (vreinterpretq_s32_f32): Likewise.
38982 (vreinterpretq_s32_u8): Likewise.
38983 (vreinterpretq_s32_u16): Likewise.
38984 (vreinterpretq_s32_u32): Likewise.
38985 (vreinterpretq_s32_u64): Likewise.
38986 (vreinterpretq_s32_p8): Likewise.
38987 (vreinterpretq_s32_p16): Likewise.
38988 (vreinterpret_u8_s8): Likewise.
38989 (vreinterpret_u8_s16): Likewise.
38990 (vreinterpret_u8_s32): Likewise.
38991 (vreinterpret_u8_s64): Likewise.
38992 (vreinterpret_u8_f32): Likewise.
38993 (vreinterpret_u8_u16): Likewise.
38994 (vreinterpret_u8_u32): Likewise.
38995 (vreinterpret_u8_u64): Likewise.
38996 (vreinterpret_u8_p8): Likewise.
38997 (vreinterpret_u8_p16): Likewise.
38998 (vreinterpretq_u8_s8): Likewise.
38999 (vreinterpretq_u8_s16): Likewise.
39000 (vreinterpretq_u8_s32): Likewise.
39001 (vreinterpretq_u8_s64): Likewise.
39002 (vreinterpretq_u8_f32): Likewise.
39003 (vreinterpretq_u8_u16): Likewise.
39004 (vreinterpretq_u8_u32): Likewise.
39005 (vreinterpretq_u8_u64): Likewise.
39006 (vreinterpretq_u8_p8): Likewise.
39007 (vreinterpretq_u8_p16): Likewise.
39008 (vreinterpret_u16_s8): Likewise.
39009 (vreinterpret_u16_s16): Likewise.
39010 (vreinterpret_u16_s32): Likewise.
39011 (vreinterpret_u16_s64): Likewise.
39012 (vreinterpret_u16_f32): Likewise.
39013 (vreinterpret_u16_u8): Likewise.
39014 (vreinterpret_u16_u32): Likewise.
39015 (vreinterpret_u16_u64): Likewise.
39016 (vreinterpret_u16_p8): Likewise.
39017 (vreinterpret_u16_p16): Likewise.
39018 (vreinterpretq_u16_s8): Likewise.
39019 (vreinterpretq_u16_s16): Likewise.
39020 (vreinterpretq_u16_s32): Likewise.
39021 (vreinterpretq_u16_s64): Likewise.
39022 (vreinterpretq_u16_f32): Likewise.
39023 (vreinterpretq_u16_u8): Likewise.
39024 (vreinterpretq_u16_u32): Likewise.
39025 (vreinterpretq_u16_u64): Likewise.
39026 (vreinterpretq_u16_p8): Likewise.
39027 (vreinterpretq_u16_p16): Likewise.
39028 (vreinterpret_u32_s8): Likewise.
39029 (vreinterpret_u32_s16): Likewise.
39030 (vreinterpret_u32_s32): Likewise.
39031 (vreinterpret_u32_s64): Likewise.
39032 (vreinterpret_u32_f32): Likewise.
39033 (vreinterpret_u32_u8): Likewise.
39034 (vreinterpret_u32_u16): Likewise.
39035 (vreinterpret_u32_u64): Likewise.
39036 (vreinterpret_u32_p8): Likewise.
39037 (vreinterpret_u32_p16): Likewise.
39038 (vreinterpretq_u32_s8): Likewise.
39039 (vreinterpretq_u32_s16): Likewise.
39040 (vreinterpretq_u32_s32): Likewise.
39041 (vreinterpretq_u32_s64): Likewise.
39042 (vreinterpretq_u32_f32): Likewise.
39043 (vreinterpretq_u32_u8): Likewise.
39044 (vreinterpretq_u32_u16): Likewise.
39045 (vreinterpretq_u32_u64): Likewise.
39046 (vreinterpretq_u32_p8): Likewise.
39047 (vreinterpretq_u32_p16): Likewise.
39048
39049 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
39050
39051 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
39052 Pattern extended.
39053 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
39054 (sqabs): Likewise.
39055 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
39056 (vqnegd_s64): Likewise.
39057 (vqabs_s64): Likewise.
39058 (vqabsd_s64): Likewise.
39059
39060 2014-04-22 Richard Henderson <rth@redhat.com>
39061
39062 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
39063 computation to the top of the loop.
39064
39065 2014-04-22 Renlin <renlin.li@arm.com>
39066 Jiong Wang <jiong.wang@arm.com>
39067
39068 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
39069 * config/aarch64/aarch64.c (aarch64_layout_frame)
39070 (aarch64_initial_elimination_offset): Likewise.
39071
39072 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
39073
39074 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
39075 Fix indentation.
39076
39077 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
39078
39079 * machmode.h (bitwise_mode_for_mode): Declare.
39080 * stor-layout.h (bitwise_type_for_mode): Likewise.
39081 * stor-layout.c (bitwise_mode_for_mode): New function.
39082 (bitwise_type_for_mode): Likewise.
39083 * builtins.c (fold_builtin_memory_op): Use it instead of
39084 int_mode_for_mode and build_nonstandard_integer_type.
39085
39086 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39087
39088 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
39089 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
39090 (*-*-solaris2*): Simplify.
39091 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
39092 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
39093 *-*-solaris2.9* handling.
39094
39095 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
39096 as bug.
39097 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
39098 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
39099 handling, simplify.
39100 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
39101 * configure: Regenerate.
39102
39103 * config/i386/sol2-9.h: Remove.
39104
39105 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
39106 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
39107 Remove Solaris 9 references.
39108
39109 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
39110
39111 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
39112 (floatuns<GPI:mode><GPF:mode>2): Remove.
39113 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
39114 and floatuns conversions.
39115 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
39116 and floatuns conversions.
39117 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
39118 (w1,w2): New mode attributes for inequal width conversions.
39119
39120 2014-04-22 Renlin Li <Renlin.Li@arm.com>
39121
39122 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
39123 the output asm format.
39124
39125 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
39126
39127 * config/aarch64/aarch64-simd.md
39128 (aarch64_cm<optab>di): Always split.
39129 (*aarch64_cm<optab>di): New.
39130 (aarch64_cmtstdi): Always split.
39131 (*aarch64_cmtstdi): New.
39132
39133 2014-04-22 Jakub Jelinek <jakub@redhat.com>
39134
39135 PR tree-optimization/60823
39136 * omp-low.c (ipa_simd_modify_function_body): Go through
39137 all SSA_NAMEs and for those refering to vector arguments
39138 which are going to be replaced adjust SSA_NAME_VAR and,
39139 if it is a default definition, change it into a non-default
39140 definition assigned at the beginning of function from new_decl.
39141 (ipa_simd_modify_stmt_ops): Rewritten.
39142 * tree-dfa.c (set_ssa_default_def): When removing default def,
39143 check for NULL loc instead of NULL *loc.
39144
39145 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39146
39147 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
39148 restrictions on core registers for DImode values in Thumb2.
39149
39150 2014-04-22 Ian Bolton <ian.bolton@arm.com>
39151
39152 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
39153 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
39154
39155 2014-04-22 Ian Bolton <ian.bolton@arm.com>
39156
39157 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
39158 (*iordi_notzesidi_di): Likewise.
39159 (*iordi_notsesidi_di): Likewise.
39160
39161 2014-04-22 Ian Bolton <ian.bolton@arm.com>
39162
39163 * config/arm/arm-protos.h (tune_params): New struct members.
39164 * config/arm/arm.c: Initialise tune_params per processor.
39165 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
39166 for speed, based on new tune_params.
39167
39168 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
39169
39170 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
39171 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
39172 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
39173 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
39174 * config/aarch64/arm_neon.h (vrnd_f64): Added.
39175 (vrnda_f64): Likewise.
39176 (vrndi_f64): Likewise.
39177 (vrndm_f64): Likewise.
39178 (vrndn_f64): Likewise.
39179 (vrndp_f64): Likewise.
39180 (vrndx_f64): Likewise.
39181
39182 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
39183
39184 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
39185 GET_MODE_SIZE argument is enum machine_mode.
39186
39187 2014-04-22 Jakub Jelinek <jakub@redhat.com>
39188
39189 PR target/60910
39190 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
39191 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
39192
39193 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
39194
39195 PR middle-end/60281
39196 * asan.c (asan_emit_stack_protection): Force the base to align to
39197 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
39198 appropriate bits if STRICT_ALIGNMENT.
39199 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
39200 when asan is on.
39201 (expand_used_vars): Leave a space in the stack frame for alignment
39202 if STRICT_ALIGNMENT.
39203
39204 2014-04-21 David Malcolm <dmalcolm@redhat.com>
39205
39206 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
39207 than a gimple.
39208 (gimple_store_p): Likewise.
39209 (gimple_assign_load_p): Likewise.
39210 (gimple_assign_cast_p): Likewise.
39211 (gimple_clobber_p): Likewise.
39212
39213 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
39214 rather than a gimple.
39215 (gimple_assign_cast_p): Likewise.
39216
39217 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
39218
39219 PR target/60735
39220 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
39221 If mode is DDmode and TARGET_E500_DOUBLE allow move.
39222
39223 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
39224 more debug information for E500 if -mdebug=reg.
39225
39226 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
39227
39228 PR target/60909
39229 * config/i386/i386.c (ix86_expand_builtin)
39230 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
39231 register for target RTX.
39232 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
39233
39234 2014-04-18 Cong Hou <congh@google.com>
39235
39236 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
39237 the widen-mult pattern by handling two operands with different sizes,
39238 and operands whose size is smaller than half of the result type.
39239
39240 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
39241
39242 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
39243 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
39244 (do_estimate_edge_time): Compute it.
39245 * ipa-inline.c (want_inline_small_function_p): Bypass
39246 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
39247
39248 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
39249
39250 * ipa-inline.c (spec_rem): New static variable.
39251 (dump_overall_stats): New function.
39252 (dump_inline_stats): New function.
39253
39254 2014-04-18 Richard Henderson <rth@redhat.com>
39255
39256 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
39257 to GET_MODE_SIZE, not a reg_class_t.
39258
39259 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39260
39261 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
39262 (vsx_xxmrglw_<mode>): Likewise.
39263
39264 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
39265
39266 PR target/60876
39267 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
39268 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
39269 (rs6000_init_hard_regno_mode_ok): Likewise.
39270
39271 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
39272
39273 * ipa-inline.c (inline_small_functions): Account only non-cold
39274 functions.
39275 * doc/invoke.texi (inline-unit-growth): Update documentation.
39276
39277 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
39278
39279 * config/rs6000/rs6000.md (addti3, subti3): New.
39280
39281 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
39282
39283 PR target/60863
39284 * config/i386/i386.c (ix86_expand_clear): Remove outdated
39285 comment. Check optimize_insn_for_size_p instead of
39286 optimize_insn_for_speed_p.
39287
39288 2014-04-17 Martin Jambor <mjambor@suse.cz>
39289
39290 * gimple-iterator.c (gsi_start_edge): New function.
39291 * gimple-iterator.h (gsi_start_edge): Declare.
39292 * tree-sra.c (single_non_eh_succ): New function.
39293 (disqualify_ops_if_throwing_stmt): Renamed to
39294 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
39295 having one non-EH successor BB.
39296 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
39297 generate loads into replacements.
39298 (sra_modify_assign): Likewise and and also use the simple path for
39299 such statements.
39300 (sra_modify_function_body): Commit statements on edges.
39301
39302 2014-04-17 Richard Biener <rguenther@suse.de>
39303
39304 PR middle-end/60849
39305 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
39306 comparison results and add clarifying comment.
39307
39308 2014-04-17 Jakub Jelinek <jakub@redhat.com>
39309
39310 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
39311 (blank_mode): Initialize it.
39312 (emit_mode_size_inline, emit_mode_nunits_inline,
39313 emit_mode_inner_inline): New functions.
39314 (emit_insn_modes_h): Call them and surround their output with
39315 #if GCC_VERSION >= 4001 ... #endif.
39316 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
39317 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
39318 mode_* arrays if the argument is __builtin_constant_p.
39319 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
39320 is enum machine_mode.
39321
39322 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
39323
39324 * passes.c (opt_pass::execute): Adjust.
39325 (pass_manager::execute_pass_mode_switching): Likewise.
39326 (early_local_passes::execute): Likewise.
39327 (execute_one_pass): Pass cfun to the pass's execute method.
39328 * tree-pass.h (opt_pass::execute): Add function * argument.
39329 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
39330 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
39331 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
39332 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
39333 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
39334 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
39335 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
39336 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
39337 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
39338 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
39339 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
39340 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
39341 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
39342 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
39343 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
39344 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
39345 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
39346 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
39347 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
39348 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
39349 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
39350 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
39351 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
39352 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
39353 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
39354 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
39355 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
39356 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
39357 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
39358 Adjust.
39359
39360 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
39361
39362 * passes.c (opt_pass::gate): Take function * argument.
39363 (gate_all_early_local_passes): Merge into
39364 (early_local_passes::gate): this.
39365 (gate_all_early_optimizations): Merge into
39366 (all_early_optimizations::gate): this.
39367 (gate_all_optimizations): Mege into
39368 (all_optimizations::gate): this.
39369 (gate_all_optimizations_g): Merge into
39370 (all_optimizations_g::gate): this.
39371 (gate_rest_of_compilation): Mege into
39372 (rest_of_compilation::gate): this.
39373 (gate_postreload): Merge into
39374 (postreload::gate): this.
39375 (dump_one_pass): Pass cfun to the pass's gate method.
39376 (execute_ipa_summary_passes): Likewise.
39377 (execute_one_pass): Likewise.
39378 (ipa_write_summaries_2): Likewise.
39379 (ipa_write_optimization_summaries_1): Likewise.
39380 (ipa_read_summaries_1): Likewise.
39381 (ipa_read_optimization_summaries_1): Likewise.
39382 (execute_ipa_stmt_fixups): Likewise.
39383 * tree-pass.h (opt_pass::gate): Add function * argument.
39384 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
39385 combine-stack-adj.c, combine.c, compare-elim.c,
39386 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
39387 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
39388 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
39389 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
39390 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
39391 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
39392 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
39393 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
39394 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
39395 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
39396 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
39397 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
39398 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
39399 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
39400 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
39401 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
39402 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
39403 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
39404 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
39405 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
39406 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
39407 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
39408 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
39409 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
39410 var-tracking.c, vtable-verify.c, web.c: Adjust.
39411
39412 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
39413
39414 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
39415 * configure: Regenerate.
39416
39417 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
39418
39419 * passes.c (dump_one_pass): don't check pass->has_gate.
39420 (execute_ipa_summary_passes): Likewise.
39421 (execute_one_pass): Likewise.
39422 (ipa_write_summaries_2): Likewise.
39423 (ipa_write_optimization_summaries_1): Likewise.
39424 (ipa_read_optimization_summaries_1): Likewise.
39425 (execute_ipa_stmt_fixups): Likewise.
39426 * tree-pass.h (pass_data::has_gate): Remove.
39427 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
39428 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
39429 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
39430 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
39431 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
39432 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
39433 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
39434 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
39435 gimple-low.c, gimple-ssa-isolate-paths.c,
39436 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
39437 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
39438 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
39439 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
39440 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
39441 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
39442 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
39443 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
39444 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
39445 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
39446 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
39447 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
39448 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
39449 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
39450 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
39451 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
39452 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
39453 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
39454 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
39455 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
39456 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
39457 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
39458 Adjust.
39459
39460 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
39461
39462 * pass_manager.h (pass_manager::register_dump_files_1): Remove
39463 declaration.
39464 * passes.c (pass_manager::register_dump_files_1): Merge into
39465 (pass_manager::register_dump_files): this, and remove its handling of
39466 properties since the pass always has the properties anyway.
39467 (pass_manager::pass_manager): Adjust.
39468
39469 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
39470
39471 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
39472 * passes.c (pass_manager::register_dump_files_1): Remove dead code
39473 dealing with properties.
39474 (pass_manager::register_dump_files): Adjust.
39475
39476 2014-03-20 Mark Wielaard <mjw@redhat.com>
39477
39478 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
39479 then represent the bound as normal constant value.
39480
39481 2014-04-17 Jakub Jelinek <jakub@redhat.com>
39482
39483 PR target/60847
39484 Forward port from 4.8 branch
39485 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
39486
39487 * config/i386/bmiintrin.h (_blsi_u32): New.
39488 (_blsi_u64): Ditto.
39489 (_blsr_u32): Ditto.
39490 (_blsr_u64): Ditto.
39491 (_blsmsk_u32): Ditto.
39492 (_blsmsk_u64): Ditto.
39493 (_tzcnt_u32): Ditto.
39494 (_tzcnt_u64): Ditto.
39495
39496 2014-04-17 Kito Cheng <kito@0xlab.org>
39497
39498 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
39499
39500 2014-04-17 Richard Biener <rguenther@suse.de>
39501
39502 PR middle-end/60849
39503 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
39504 boolean results for comparisons.
39505
39506 2014-04-17 Richard Biener <rguenther@suse.de>
39507
39508 PR tree-optimization/60836
39509 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
39510 initial PHI args to be gimple values.
39511
39512 2014-04-17 Richard Biener <rguenther@suse.de>
39513
39514 PR tree-optimization/60841
39515 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
39516 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
39517 of stmts to SLP build.
39518 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
39519 (vect_analyze_slp): Likewise.
39520 (vect_analyze_slp_instance): Likewise.
39521 (vect_build_slp_tree): Limit overall SLP tree growth.
39522 * tree-vectorizer.h (vect_analyze_data_refs,
39523 vect_analyze_slp): Adjust prototypes.
39524
39525 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
39526
39527 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
39528 Silvermont.
39529
39530 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
39531
39532 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
39533 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
39534 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
39535 for TARGET_SLOW_PSHUFB
39536
39537 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
39538
39539 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
39540 * config/i386/i386.c (intel_cost): Ditto.
39541
39542 2014-04-17 Joey Ye <joey.ye@arm.com>
39543
39544 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
39545
39546 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
39547
39548 * opts.c (common_handle_option): Disable -fipa-reference coorectly
39549 with -fuse-profile.
39550
39551 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
39552
39553 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
39554 (type_all_derivations_known_p): New predicate.
39555 (type_all_ctors_visible_p): New predicate.
39556 (type_possibly_instantiated_p): New predicate.
39557 (get_odr_type): Compute all_derivations_known.
39558 (dump_odr_type): Dump the flag.
39559 (maybe_record_type): Cleanup.
39560 (record_target_from_binfo): Add bases_to_consider array;
39561 record bases for types w/o instances and skip CXX destructor.
39562 (possible_polymorphic_call_targets_1): Add bases_to_consider
39563 and consider_construction parameters; check if type may have instance.
39564 (get_polymorphic_call_info): Set maybe_in_construction to true
39565 when we know nothing.
39566 (record_targets_from_bases): Skip CXX destructors; they are
39567 never called for types in construction.
39568 (possible_polymorphic_call_targets): Do not record target when
39569 type may not have instance.
39570
39571 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
39572
39573 PR ipa/60854
39574 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
39575 external aliases alive, too.
39576
39577 2014-04-16 Andrew Pinski <apinski@cavium.com>
39578
39579 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
39580 definition.
39581
39582 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
39583
39584 * final.c (compute_alignments): Do not apply loop alignment to a block
39585 falling through to the exit.
39586
39587 2014-04-16 Catherine Moore <clm@codesourcery.com>
39588
39589 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
39590 Adjust constraints for microMIPS store patterns.
39591
39592 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
39593
39594 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
39595
39596 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
39597
39598 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
39599 (append_use): Run at -O0.
39600 (append_vdef): Likewise.
39601 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
39602 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
39603
39604 2014-04-16 Jakub Jelinek <jakub@redhat.com>
39605
39606 PR tree-optimization/60844
39607 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
39608 (propagate_op_to_single_use, remove_visited_stmt_chain,
39609 linearize_expr, repropagate_negates, reassociate_bb): Use it
39610 instead of gsi_remove.
39611
39612 2014-04-16 Martin Jambor <mjambor@suse.cz>
39613
39614 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
39615 ipa_transforms_to_apply.
39616 (cgraph_function_versioning): Assert that old_node has empty
39617 ipa_transforms_to_apply.
39618 * trans-mem.c (ipa_tm_create_version): Likewise.
39619 * tree-inline.c (tree_function_versioning): Do not duplicate
39620 ipa_transforms_to_apply.
39621
39622 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39623
39624 PR target/60817
39625 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
39626 x86_64-*-* cases.
39627 Pass necessary as flags on 64-bit Solaris/x86.
39628 Use lowercase relocs for x86_64-*-*.
39629 * configure: Regenerate.
39630
39631 2014-04-15 Jan Hubicka <jh@suse.cz>
39632
39633 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
39634 (maybe_record_node, likely_target_p): Use it.
39635
39636 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39637
39638 PR target/60839
39639 Revert following patch
39640
39641 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
39642
39643 PR target/60735
39644 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
39645 software floating point or no floating point registers, do not
39646 allow any type in the FPRs. Eliminate a test for SPE SIMD types
39647 in GPRs that occurs after we tested for GPRs that would never be
39648 true.
39649
39650 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
39651 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
39652 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
39653 specifically allow DDmode, since that does not use the SPE SIMD
39654 instructions.
39655
39656 2014-03-21 Mark Wielaard <mjw@redhat.com>
39657
39658 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
39659 as unsigned or int depending on type and value used.
39660
39661 2014-04-15 Richard Biener <rguenther@suse.de>
39662
39663 PR rtl-optimization/56965
39664 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
39665 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
39666 ... here.
39667 * alias.c (true_dependence_1): Do not call
39668 nonoverlapping_component_refs_p.
39669 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
39670 nonoverlapping_component_refs_p.
39671 (indirect_refs_may_alias_p): Likewise.
39672
39673 2014-04-15 Teresa Johnson <tejohnson@google.com>
39674
39675 * cfg.c (dump_bb_info): Fix flags check.
39676 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
39677
39678 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39679
39680 PR rtl-optimization/60663
39681 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
39682 avoid 0 cost.
39683
39684 2014-04-15 Richard Biener <rguenther@suse.de>
39685
39686 * lto-streamer.h (LTO_major_version): Bump to 4.
39687
39688 2014-04-15 Richard Biener <rguenther@suse.de>
39689
39690 * common.opt (lto_partition_model): New enum.
39691 (flto-partition=): Merge separate options with a single with argument,
39692 add -flto-partition=one support.
39693 * flag-types.h (enum lto_partition_model): Declare.
39694 * opts.c (finish_options): Remove duplicate -flto-partition=
39695 option check.
39696 * lto-wrapper.c (run_gcc): Adjust.
39697
39698 2014-04-15 Richard Biener <rguenther@suse.de>
39699
39700 * alias.c (ncr_compar): New function.
39701 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
39702
39703 2014-04-15 Richard Biener <rguenther@suse.de>
39704
39705 * alias.c (record_component_aliases): Do not walk BINFOs.
39706
39707 2014-04-15 Richard Biener <rguenther@suse.de>
39708
39709 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
39710 Add struct function argument and adjust.
39711 (find_func_aliases_for_call): Likewise.
39712 (find_func_aliases): Likewise.
39713 (find_func_clobbers): Likewise.
39714 (intra_create_variable_infos): Likewise.
39715 (compute_points_to_sets): Likewise.
39716 (ipa_pta_execute): Adjust. Do not push/pop cfun.
39717
39718 2014-04-15 Richard Biener <rguenther@suse.de>
39719
39720 * tree.c (iterative_hash_expr): Use enum tree_code_class
39721 to store TREE_CODE_CLASS.
39722 (tree_block): Likewise.
39723 (tree_set_block): Likewise.
39724 * tree.h (fold_build_pointer_plus_loc): Use
39725 convert_to_ptrofftype_loc.
39726
39727 2014-04-15 Jakub Jelinek <jakub@redhat.com>
39728
39729 PR plugins/59335
39730 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
39731 added in 4.9.
39732
39733 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
39734
39735 * cfgloop.h (struct loop): Move force_vectorize down.
39736 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
39737 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
39738 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
39739 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
39740 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
39741 * tree-core.h (enum annot_expr_kind): Add new kind values.
39742 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
39743 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
39744 kinds.
39745 * tree.def (ANNOTATE_EXPR): Tweak comment.
39746
39747 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
39748
39749 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
39750 cxa_pure_virtual).
39751
39752 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
39753
39754 * tree.h (TYPE_IDENTIFIER): Declare.
39755 * tree.c (subrange_type_for_debug_p): Use it.
39756 * godump.c (go_format_type): Likewise.
39757 * dwarf2out.c (is_cxx_auto, modified_type_die,
39758 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
39759 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
39760
39761 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
39762
39763 PR lto/60820
39764 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
39765
39766 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
39767
39768 * config/i386/i386.c (examine_argument): Return bool. Return true if
39769 parameter should be passed in memory.
39770 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
39771 (construct_container): Update calls to examine_argument.
39772 (function_arg_advance_64): Ditto.
39773 (return_in_memory_32): Merge with ix86_return_in_memory.
39774 (return_in_memory_64): Ditto.
39775 (return_in_memory_ms_64): Ditto.
39776
39777 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
39778
39779 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
39780 * coverage.c (coverage_compute_profile_id): Handle externally visible
39781 symbols.
39782
39783 2014-04-14 Martin Jambor <mjambor@suse.cz>
39784
39785 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
39786 DECL_DISREGARD_INLINE_LIMITS functions.
39787
39788 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
39789
39790 PR target/60827
39791 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
39792
39793 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
39794
39795 PR target/60827
39796 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
39797 optimize_insn_for_speed_p instead of
39798 optimize_function_for_speed_p.
39799
39800 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
39801
39802 * doc/invoke.texi (free): Document AArch64.
39803
39804 2014-04-14 Richard Biener <rguenther@suse.de>
39805
39806 PR tree-optimization/60042
39807 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
39808 (insert_into_preds_of_block): Do not prevent PHI insertion
39809 for REFERENCE exprs here ...
39810 (eliminate_dom_walker::before_dom_children): ... but prevent
39811 their use here under similar conditions when applied to the
39812 IL after PRE optimizations.
39813
39814 2014-04-14 Richard Biener <rguenther@suse.de>
39815
39816 * passes.def: Move early points-to after early SRA.
39817
39818 2014-04-14 Richard Biener <rguenther@suse.de>
39819
39820 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
39821 check for which sign-changes we allow when forwarding
39822 a converted value into a switch.
39823
39824 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
39825
39826 * stor-layout.c (place_field): Finalize non-constant offset for the
39827 field, if any.
39828
39829 2014-04-14 Richard Biener <rguenther@suse.de>
39830
39831 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
39832 as argument.
39833 (expand_switch_using_bit_tests_p): Likewise.
39834 (process_switch): Compute and pass on speed_p based on the
39835 switch stmt.
39836 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
39837 optimize_bb_for_speed_p.
39838
39839 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
39840
39841 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
39842 * function.h (struct function): Rename has_force_vect_loops into
39843 has_force_vectorize_loops.
39844 * lto-streamer-in.c (input_cfg): Adjust for renaming.
39845 (input_struct_function_base): Likewise.
39846 * lto-streamer-out.c (output_cfg): Likewise.
39847 (output_struct_function_base): Likewise.
39848 * omp-low.c (expand_omp_simd): Likewise.
39849 * tree-cfg.c (move_sese_region_to_fn): Likewise.
39850 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
39851 (version_loop_for_if_conversion): Likewise.
39852 (tree_if_conversion): Likewise.
39853 (main_tree_if_conversion): Likewise.
39854 (gate_tree_if_conversion): Likewise.
39855 * tree-inline.c (copy_loops): Likewise.
39856 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
39857 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
39858 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
39859 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
39860 * tree-vectorizer.c (vectorize_loops): Likewise.
39861 * tree-vectorizer.h (unlimited_cost_model): Likewise.
39862
39863 2014-04-14 Richard Biener <rguenther@suse.de>
39864
39865 PR lto/60720
39866 * lto-streamer-out.c (wrap_refs): New function.
39867 (lto_output): Wrap symbol references in global initializes in
39868 type-preserving MEM_REFs.
39869
39870 2014-04-14 Christian Bruel <christian.bruel@st.com>
39871
39872 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
39873
39874 2014-04-14 Christian Bruel <christian.bruel@st.com>
39875
39876 * config/sh/sh.md (setmemqi): New expand pattern.
39877 * config/sh/sh.h (CLEAR_RATIO): Define.
39878 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
39879 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
39880
39881 2014-04-14 Richard Biener <rguenther@suse.de>
39882
39883 PR middle-end/55022
39884 * fold-const.c (negate_expr_p): Don't negate directional rounding
39885 division.
39886 (fold_negate_expr): Likewise.
39887
39888 2014-04-14 Richard Biener <rguenther@suse.de>
39889
39890 PR tree-optimization/59817
39891 PR tree-optimization/60453
39892 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
39893 recursion to catch all CHRECs in the scalar evolution and restrict
39894 the predicate for the remains appropriately.
39895
39896 2014-04-12 Catherine Moore <clm@codesourcery.com>
39897
39898 * config/mips/constraints.md: Add new register constraint "kb".
39899 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
39900 (*movhi_internal): Likewise.
39901 (*movqi_internal): Likewise.
39902 * config/mips/mips.h (M16_STORE_REGS): New register class.
39903 (REG_CLASS_NAMES): Add M16_STORE_REGS.
39904 (REG_CLASS_CONTENTS): Likewise.
39905 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
39906
39907 2014-04-11 Tobias Burnus <burnus@net-b.de>
39908
39909 PR c/60194
39910 * doc/invoke.texi (-Wformat-signedness): Document it.
39911 (Wformat=2): Mention that this enables -Wformat-signedness.
39912
39913 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
39914
39915 * common/config/epiphany/epiphany-common.c
39916 (epiphany_option_optimization_table): Enable section anchors by
39917 default at -O1 or higher.
39918 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
39919 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
39920 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
39921 carries no extra cost.
39922 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
39923 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
39924 * config/epiphany/predicates.md (memclob_operand): New predicate.
39925 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
39926 Use memclob_operand predicate and X constraint for operand 3.
39927
39928 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
39929
39930 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
39931 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
39932 its operands.
39933
39934 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
39935
39936 PR rtl-optimization/60651
39937 * mode-switching.c (optimize_mode_switching): Make sure to emit
39938 sets of a lower numbered entity before sets of a higher numbered
39939 entity to a mode of the same or lower priority.
39940 When creating a seginfo for a basic block that starts with a code
39941 label, move the insertion point past the code label.
39942 (new_seginfo): Document and enforce requirement that
39943 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
39944 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
39945 * doc/tm.texi: Regenerate.
39946
39947 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
39948
39949 PR target/60811
39950 * config/arc/arc.c (arc_save_restore): Fix assert typo.
39951
39952 2013-04-11 Jakub Jelinek <jakub@redhat.com>
39953
39954 * BASE-VER: Set to 4.10.0.
39955
39956 2014-04-11 Tobias Burnus <burnus@net-b.de>
39957
39958 PR other/59055
39959 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
39960 * doc/gcc.texi (Service): Update description in the @menu
39961 * doc/invoke.texi (Option Summary): Remove misplaced and
39962 duplicated @menu.
39963
39964 2014-04-11 Steve Ellcey <sellcey@mips.com>
39965 Jakub Jelinek <jakub@redhat.com>
39966
39967 PR middle-end/60556
39968 * expr.c (convert_move): Use emit_store_flag_force instead of
39969 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
39970 argument to it.
39971
39972 2014-04-11 Richard Biener <rguenther@suse.de>
39973
39974 PR middle-end/60797
39975 * varasm.c (assemble_alias): Avoid endless error reporting
39976 recursion by setting TREE_ASM_WRITTEN.
39977
39978 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39979
39980 * config/s390/s390.md: Add a splitter for NOT rtx.
39981
39982 2014-04-11 Jakub Jelinek <jakub@redhat.com>
39983
39984 PR rtl-optimization/60663
39985 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
39986
39987 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
39988 Jakub Jelinek <jakub@redhat.com>
39989
39990 PR lto/60567
39991 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
39992 flag from decl_node to node.
39993
39994 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39995
39996 PR debug/60655
39997 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
39998 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
39999 ameliorating the cases where it can be.
40000
40001 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
40002
40003 Revert
40004 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
40005
40006 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
40007 (loadsync_<mode>): Change mode.
40008 (load_quadpti, store_quadpti): New.
40009 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
40010 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
40011 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
40012
40013 2014-04-09 Cong Hou <congh@google.com>
40014
40015 PR testsuite/60773
40016 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
40017 documentation.
40018
40019 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40020
40021 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
40022 instead of vnor to exploit possible fusion opportunity in the
40023 future.
40024 (altivec_expand_vec_perm_const_le): Likewise.
40025
40026 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
40027
40028 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
40029 (loadsync_<mode>): Change mode.
40030 (load_quadpti, store_quadpti): New.
40031 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
40032 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
40033
40034 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
40035
40036 PR target/60763
40037 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
40038 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
40039 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
40040
40041 2014-04-08 Richard Biener <rguenther@suse.de>
40042
40043 PR middle-end/60706
40044 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
40045 a 64bit widest int print double-int similar to on HWI64 hosts.
40046
40047 2014-04-08 Richard Biener <rguenther@suse.de>
40048
40049 PR tree-optimization/60785
40050 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
40051 default defs properly.
40052
40053 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
40054
40055 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
40056 (Weffc++): Likewise.
40057
40058 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
40059
40060 * ipa-devirt.c (maybe_record_node): When node is not recorded,
40061 set completep to false rather than true.
40062
40063 2014-04-07 Douglas B Rupp <rupp@adacore.com>
40064
40065 PR target/60504
40066 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
40067 ARM_TARGET2_DWARF_FORMAT.
40068
40069 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
40070
40071 PR target/60609
40072 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
40073 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
40074 ADDR_DIFF_VEC.
40075
40076 2014-04-07 Richard Biener <rguenther@suse.de>
40077
40078 PR tree-optimization/60766
40079 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
40080 (may_eliminate_iv): Convert cand_value_at result to desired type.
40081
40082 2014-04-07 Jason Merrill <jason@redhat.com>
40083
40084 PR c++/60731
40085 * common.opt (-fno-gnu-unique): Add.
40086 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
40087
40088 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40089
40090 * haifa-sched.c: Fix outdated function reference and minor
40091 grammar errors in introductory comment.
40092
40093 2014-04-07 Richard Biener <rguenther@suse.de>
40094
40095 PR middle-end/60750
40096 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
40097 for noreturn calls.
40098 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
40099
40100 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
40101
40102 PR debug/55794
40103 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
40104 size accounting for thunks.
40105 (pa_asm_output_mi_thunk): Use final_start_function() and
40106 final_end_function() to output function start and end directives.
40107
40108 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
40109
40110 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
40111 device specific ISA/ feature information. Remove short_sp and
40112 errata_skip ds. Add avr_device_specific_features enum to have device
40113 specific info.
40114 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
40115 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
40116 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
40117 updated device specific info.
40118 * config/avr/avr-mcus.def: Merge device specific details to
40119 dev_attribute field.
40120 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
40121 errata_skip.
40122 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
40123 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
40124 assembler if RMW isa supported by current device.
40125 * config/avr/genmultilib.awk: Update as device info structure changed.
40126 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
40127
40128 2014-04-04 Cong Hou <congh@google.com>
40129
40130 PR tree-optimization/60656
40131 * tree-vect-stmts.c (supportable_widening_operation):
40132 Fix a bug that elements in a vector with vect_used_by_reduction
40133 property are incorrectly reordered when the operation on it is not
40134 consistant with the one in reduction operation.
40135
40136 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
40137
40138 PR rtl-optimization/60155
40139 * gcse.c (record_set_data): New function.
40140 (single_set_gcse): New function.
40141 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
40142 (hoist_code): Likewise.
40143 (get_pressure_class_and_nregs): Likewise.
40144
40145 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
40146
40147 * explow.c (probe_stack_range): Emit a final optimization blockage.
40148
40149 2014-04-04 Anthony Green <green@moxielogic.com>
40150
40151 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
40152 typos.
40153
40154 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
40155
40156 PR ipa/59626
40157 * lto-cgraph.c (input_overwrite_node): Check that partitioning
40158 flags are set only during streaming.
40159 * ipa.c (process_references, walk_polymorphic_call_targets,
40160 symtab_remove_unreachable_nodes): Drop bodies of always inline
40161 after early inlining.
40162 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
40163
40164 2014-04-04 Jakub Jelinek <jakub@redhat.com>
40165 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40166
40167 PR debug/60655
40168 * dwarf2out.c (const_ok_for_output_1): Reject expressions
40169 containing a NOT.
40170
40171 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40172
40173 PR bootstrap/60743
40174 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
40175 duration.
40176 (cortex_a53_fdivd): Likewise.
40177
40178 2014-04-04 Martin Jambor <mjambor@suse.cz>
40179
40180 PR ipa/60640
40181 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
40182 Adjust all callers.
40183 * cgraph.c (clone_of_p): Also return true if thunks match.
40184 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
40185 cgraph_function_or_thunk_node and an obsolete comment.
40186 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
40187 file.
40188 (build_function_decl_skip_args): Likewise.
40189 (set_new_clone_decl_and_node_flags): New function.
40190 (duplicate_thunk_for_node): Likewise.
40191 (redirect_edge_duplicating_thunks): Likewise.
40192 (cgraph_clone_node): New parameter args_to_skip, pass it to
40193 redirect_edge_duplicating_thunks which is called instead of
40194 cgraph_redirect_edge_callee.
40195 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
40196 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
40197
40198 2014-04-04 Jeff Law <law@redhat.com>
40199
40200 PR target/60657
40201 * config/arm/predicates.md (const_int_I_operand): New predicate.
40202 (const_int_M_operand): Similarly.
40203 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
40204 const_int_operand.
40205 (insv_t2, extv_reg, extzv_t2): Likewise.
40206 (load_multiple_with_writeback): Similarly for const_int_I_operand.
40207 (pop_multiple_with_writeback_and_return): Likewise.
40208 (vfp_pop_multiple_with_writeback): Likewise
40209
40210 2014-04-04 Richard Biener <rguenther@suse.de>
40211
40212 PR ipa/60746
40213 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
40214 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
40215 non-GIMPLE_LABELs.
40216 * gimplify.h (gimple_add_tmp_var_fn): Declare.
40217 * gimplify.c (gimple_add_tmp_var_fn): New function.
40218 * gimple-expr.h (create_tmp_reg_fn): Declare.
40219 * gimple-expr.c (create_tmp_reg_fn): New function.
40220 * gimple-low.c (record_vars_into): Don't change cfun.
40221 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
40222 code generation without cfun.
40223
40224 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
40225
40226 PR bootstrap/60719
40227 * Makefile.in (install-driver): Fix shell scripting.
40228
40229 2014-04-03 Cong Hou <congh@google.com>
40230
40231 PR tree-optimization/60505
40232 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
40233 threshold of number of iterations below which no vectorization
40234 will be done.
40235 * tree-vect-loop.c (new_loop_vec_info):
40236 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
40237 * tree-vect-loop.c (vect_analyze_loop_operations):
40238 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
40239 * tree-vect-loop.c (vect_transform_loop):
40240 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
40241 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
40242 of iterations of the loop and see if we should build the epilogue.
40243
40244 2014-04-03 Richard Biener <rguenther@suse.de>
40245
40246 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
40247 (streamer_tree_cache_create): Adjust.
40248 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
40249 to allow optional nodes array.
40250 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
40251 (streamer_tree_cache_append): Likewise.
40252 (streamer_tree_cache_create): Create nodes array optionally
40253 as specified by parameter.
40254 * lto-streamer-out.c (create_output_block): Avoid maintaining
40255 the node array in the writer cache.
40256 (DFS_write_tree): Remove assertion.
40257 (produce_asm_for_decls): Free the out decl state hash table early.
40258 * lto-streamer-in.c (lto_data_in_create): Adjust for
40259 streamer_tree_cache_create prototype change.
40260
40261 2014-04-03 Richard Biener <rguenther@suse.de>
40262
40263 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
40264 set TREE_CHAIN to NULL_TREE.
40265
40266 2014-04-03 Richard Biener <rguenther@suse.de>
40267
40268 PR tree-optimization/60740
40269 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
40270 over all GIMPLE_COND operands.
40271
40272 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
40273
40274 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
40275 (Weffc++): Remove Scott's numbering, merge lists and reference
40276 Wnon-virtual-dtor.
40277
40278 2014-04-03 Nick Clifton <nickc@redhat.com>
40279
40280 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
40281 properly.
40282
40283 2014-04-03 Martin Jambor <mjambor@suse.cz>
40284
40285 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
40286 mention gcc_unreachable before failing.
40287 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
40288 removed symbols.
40289
40290 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
40291
40292 PR ipa/60659
40293 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
40294 inconsistent code and instead mark the context inconsistent.
40295 (possible_polymorphic_call_targets): For inconsistent contexts
40296 return empty complete list.
40297
40298 2014-04-02 Anthony Green <green@moxielogic.com>
40299
40300 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
40301 (extendqisi2, extendhisi2): Define.
40302 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
40303 (WCHAR_TYPE): Change to unsigned int.
40304
40305 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40306
40307 PR tree-optimization/60733
40308 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
40309 insertion point for PHI candidates to be the end of the feeding
40310 block for the PHI argument.
40311
40312 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
40313
40314 PR rtl-optimization/60650
40315 * lra-constraints.c (process_alt_operands): Decrease reject for
40316 earlyclobber matching.
40317
40318 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40319
40320 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
40321
40322 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40323
40324 * config/spu/spu.c (pad_bb): Do not crash when the last
40325 insn is CODE_FOR_blockage.
40326
40327 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40328
40329 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
40330 lies outside the target mode.
40331
40332 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
40333
40334 PR target/60735
40335 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
40336 software floating point or no floating point registers, do not
40337 allow any type in the FPRs. Eliminate a test for SPE SIMD types
40338 in GPRs that occurs after we tested for GPRs that would never be
40339 true.
40340
40341 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
40342 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
40343 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
40344 specifically allow DDmode, since that does not use the SPE SIMD
40345 instructions.
40346
40347 2014-04-02 Richard Biener <rguenther@suse.de>
40348
40349 PR middle-end/60729
40350 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
40351 MODE_INTs. Properly use negv_optab.
40352 (expand_abs): Likewise.
40353
40354 2014-04-02 Richard Biener <rguenther@suse.de>
40355
40356 PR bootstrap/60719
40357 * Makefile.in (install-driver): Guard extra installs with special
40358 names properly.
40359
40360 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
40361
40362 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
40363 Document vec_vgbbd.
40364
40365 2014-04-01 Richard Henderson <rth@redhat.com>
40366
40367 PR target/60704
40368 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
40369 alternative enabled before register allocation.
40370
40371 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
40372
40373 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
40374 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
40375 typo.
40376 (nios2_large_got_address): Remove unneeded 'sym' parameter.
40377 (nios2_got_address): Update nios2_large_got_address call site.
40378 (nios2_delegitimize_address): New function.
40379 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
40380 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
40381 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
40382
40383 2014-04-01 Martin Husemann <martin@duskware.de>
40384
40385 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
40386 for -mabi=32.
40387
40388 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
40389
40390 PR rtl-optimization/60604
40391 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
40392 check from register_operand.
40393 (register_operand): Redefine in terms of general_operand.
40394 (nonmemory_operand): Use register_operand for the non-constant cases.
40395
40396 2014-04-01 Richard Biener <rguenther@suse.de>
40397
40398 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
40399
40400 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
40401
40402 * doc/invoke.texi (mapp-regs): Clarify.
40403
40404 2014-03-31 Ulrich Drepper <drepper@gmail.com>
40405
40406 * config/i386/avx512fintrin.h (__v32hi): Define type.
40407 (__v64qi): Likewise.
40408 (_mm512_set1_epi8): Define.
40409 (_mm512_set1_epi16): Define.
40410 (_mm512_set4_epi32): Define.
40411 (_mm512_set4_epi64): Define.
40412 (_mm512_set4_pd): Define.
40413 (_mm512_set4_ps): Define.
40414 (_mm512_setr4_epi64): Define.
40415 (_mm512_setr4_epi32): Define.
40416 (_mm512_setr4_pd): Define.
40417 (_mm512_setr4_ps): Define.
40418 (_mm512_setzero_epi32): Define.
40419
40420 2014-03-31 Martin Jambor <mjambor@suse.cz>
40421
40422 PR middle-end/60647
40423 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
40424 callsite_arguments_match_p. Updated all callers. Also check types of
40425 corresponding formal parameters and actual arguments.
40426 (not_all_callers_have_enough_arguments_p) Renamed to
40427 some_callers_have_mismatched_arguments_p.
40428
40429 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
40430
40431 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
40432
40433 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
40434
40435 PR target/60034
40436 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
40437 section anchor.
40438
40439 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
40440
40441 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
40442 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
40443 Split out
40444 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
40445 Use FMAMODE_NOVF512 mode iterator.
40446 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
40447 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
40448 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
40449 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
40450 Split out
40451 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
40452 Use VF_128_256 mode iterator.
40453 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
40454 Ditto.
40455
40456 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
40457
40458 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
40459 static chain if needed.
40460
40461 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
40462
40463 PR target/60697
40464 * lra-constraints.c (index_part_to_reg): New.
40465 (process_address): Use it.
40466
40467 2014-03-27 Jeff Law <law@redhat.com>
40468 Jakub Jelinek <jakub@redhat.com>
40469
40470 PR target/60648
40471 * expr.c (do_tablejump): Use simplify_gen_binary rather than
40472 gen_rtx_{PLUS,MULT} to build up the address expression.
40473
40474 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
40475 creating non-canonical RTL.
40476
40477 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
40478
40479 PR ipa/60243
40480 * ipa-inline.c (want_inline_small_function_p): Short circuit large
40481 functions; reorganize to make cheap checks first.
40482 (inline_small_functions): Do not estimate growth when dumping;
40483 it is expensive.
40484 * ipa-inline.h (inline_summary): Add min_size.
40485 (growth_likely_positive): New function.
40486 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
40487 (set_cond_stmt_execution_predicate): Cleanup.
40488 (estimate_edge_size_and_time): Compute min_size.
40489 (estimate_calls_size_and_time): Likewise.
40490 (estimate_node_size_and_time): Likewise.
40491 (inline_update_overall_summary): Update min_size.
40492 (do_estimate_edge_time): Likewise.
40493 (do_estimate_edge_size): Update.
40494 (do_estimate_edge_hints): Update.
40495 (growth_likely_positive): New function.
40496
40497 2014-03-28 Jakub Jelinek <jakub@redhat.com>
40498
40499 PR target/60693
40500 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
40501 also if addr has VOIDmode.
40502
40503 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40504
40505 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
40506 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
40507 Declare extern.
40508 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
40509 instructions as well as AdvancedSIMD loads.
40510
40511 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40512
40513 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
40514 Use crypto_aese type.
40515 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
40516 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
40517 crypto_aese, crypto_aesmc. Move to types.md.
40518 * config/arm/types.md (crypto_aes): Split into crypto_aese,
40519 crypto_aesmc.
40520 * config/arm/iterators.md (crypto_type): Likewise.
40521
40522 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
40523
40524 * cgraph.c: Include expr.h and tree-dfa.h.
40525 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
40526 remove LHS.
40527
40528 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
40529
40530 PR target/60675
40531 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
40532 regs from checking multi-reg pseudos.
40533
40534 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40535
40536 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
40537
40538 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40539
40540 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
40541 if it would clobber the stack pointer, even temporarily.
40542
40543 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
40544
40545 * mode-switching.c: Make small adjustments to the top comment.
40546
40547 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
40548
40549 * config/rs6000/constraints.md (wD constraint): New constraint to
40550 match the constant integer to get the top DImode/DFmode out of a
40551 vector in a VSX register.
40552
40553 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
40554 match the constant integer to get the top DImode/DFmode out of a
40555 vector in a VSX register.
40556
40557 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
40558 for ISA 2.07.
40559
40560 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
40561 vbpermq builtins.
40562
40563 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
40564 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
40565
40566 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
40567 Optimize vec_extract of 64-bit values, where the value being
40568 extracted is in the top word, where we can use scalar
40569 instructions. Add direct move and store support. Combine the big
40570 endian/little endian vector select load support into a single insn.
40571 (vsx_extract_<mode>_internal1): Likewise.
40572 (vsx_extract_<mode>_internal2): Likewise.
40573 (vsx_extract_<mode>_load): Likewise.
40574 (vsx_extract_<mode>_store): Likewise.
40575 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
40576 combined into vsx_extract_<mode>_load.
40577 (vsx_extract_<mode>_one_le): Likewise.
40578
40579 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
40580 define the top 64-bit vector element.
40581
40582 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
40583 constraint.
40584
40585 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
40586 Document vec_vbpermq builtin.
40587
40588 PR target/60672
40589 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
40590 enable use of xxsldwi and xxpermdi builtin functions.
40591 (vec_xxpermdi): Likewise.
40592
40593 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
40594 Document use of vec_xxsldwi and vec_xxpermdi builtins.
40595
40596 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
40597
40598 PR rtl-optimization/60650
40599 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
40600 first_p. Use it.
40601 (find_spills_for): New.
40602 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
40603 Spill all pseudos on the second iteration.
40604
40605 2014-03-27 Marek Polacek <polacek@redhat.com>
40606
40607 PR c/50347
40608 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
40609 types.
40610
40611 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40612
40613 * config/s390/s390.c (s390_can_use_return_insn): Check for
40614 call-saved FPRs on 31 bit.
40615
40616 2014-03-27 Jakub Jelinek <jakub@redhat.com>
40617
40618 PR middle-end/60682
40619 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
40620 if they need regimplification, just drop them instead of
40621 calling gimple_regimplify_operands on them.
40622
40623 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
40624
40625 PR target/60580
40626 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
40627 (aarch64_frame_pointer_required): Adjust logic.
40628 (aarch64_can_eliminate): Adjust logic.
40629 (aarch64_override_options_after_change): Adjust logic.
40630
40631 2014-03-27 Dehao Chen <dehao@google.com>
40632
40633 * ipa-inline.c (early_inliner): Update node's inline info.
40634
40635 2014-03-26 Dehao Chen <dehao@google.com>
40636
40637 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
40638 compiler inserted conditional jumps for NAN float check.
40639
40640 2014-03-26 Jakub Jelinek <jakub@redhat.com>
40641
40642 * ubsan.h (ubsan_create_data): Change second argument's type
40643 to const location_t *.
40644 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
40645 _("<unknown>").
40646 (ubsan_create_data): Change second argument to const location_t *PLOC.
40647 Create Loc field whenever PLOC is non-NULL.
40648 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
40649 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
40650 callers.
40651
40652 PR other/59545
40653 * real.c (real_to_integer2): Change type of low to UHWI.
40654
40655 2014-03-26 Tobias Burnus <burnus@net-b.de>
40656
40657 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
40658 (CILK_SELF_SPECS): New define.
40659 (driver_self_specs): Use it.
40660
40661 2014-03-26 Richard Biener <rguenther@suse.de>
40662
40663 * tree-pretty-print.c (percent_K_format): Implement special
40664 case for LTO and its stripped down BLOCK tree.
40665
40666 2014-03-26 Jakub Jelinek <jakub@redhat.com>
40667
40668 PR sanitizer/60636
40669 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
40670
40671 * tree-vrp.c (simplify_internal_call_using_ranges): If only
40672 one range is range_int_cst_p, but not both, at least optimize
40673 addition/subtraction of 0 and multiplication by 0 or 1.
40674 * gimple-fold.c (gimple_fold_call): Fold
40675 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
40676 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
40677 INTEGER_CSTs, try to fold at least x * 0 and y - y.
40678
40679 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
40680
40681 PR rtl-optimization/60452
40682 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
40683 <case REG>: Return 1 for invalid offsets from the frame pointer.
40684
40685 2014-03-26 Marek Polacek <polacek@redhat.com>
40686
40687 PR c/37428
40688 * doc/extend.texi (C Extensions): Mention variable-length arrays in
40689 a structure/union.
40690
40691 2014-03-26 Marek Polacek <polacek@redhat.com>
40692
40693 PR c/39525
40694 * doc/extend.texi (Designated Inits): Describe what happens to omitted
40695 field members.
40696
40697 2014-03-26 Marek Polacek <polacek@redhat.com>
40698
40699 PR other/59545
40700 * ira-color.c (update_conflict_hard_regno_costs): Perform the
40701 multiplication in unsigned type.
40702
40703 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
40704
40705 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
40706
40707 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
40708
40709 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
40710
40711 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
40712
40713 PR ipa/60315
40714 * cif-code.def (UNREACHABLE) New code.
40715 * ipa-inline.c (inline_small_functions): Skip edges to
40716 __builtlin_unreachable.
40717 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
40718 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
40719 predicate to __bulitin_unreachable.
40720 (set_cond_stmt_execution_predicate): Fix issue when
40721 invert_tree_comparison returns ERROR_MARK.
40722 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
40723 propagate to inline clones.
40724 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
40725 to unreachable.
40726 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
40727 * cgraphclones.c (cgraph_clone_node): If call destination is already
40728 ureachable, do not redirect it back.
40729 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
40730 unreachable.
40731
40732 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
40733
40734 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
40735 Do not modify inline clones.
40736
40737 2014-03-25 Jakub Jelinek <jakub@redhat.com>
40738
40739 * config/i386/i386.md (general_sext_operand): New mode attr.
40740 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
40741 don't generate (sign_extend (const_int)).
40742 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
40743 operands[2]. Use We constraint instead of <i> and
40744 <general_sext_operand> predicate instead of <general_operand>.
40745 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
40746 * config/i386/constraints.md (We): New constraint.
40747 * config/i386/predicates.md (x86_64_sext_operand,
40748 sext_operand): New predicates.
40749
40750 2014-03-25 Martin Jambor <mjambor@suse.cz>
40751
40752 PR ipa/60600
40753 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
40754 inconsistent devirtualizations to __builtin_unreachable.
40755
40756 2014-03-25 Marek Polacek <polacek@redhat.com>
40757
40758 PR c/35449
40759 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
40760
40761 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
40762
40763 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
40764 order of elements for big-endian.
40765
40766 2014-03-25 Richard Biener <rguenther@suse.de>
40767
40768 PR middle-end/60635
40769 * gimplify-me.c (gimple_regimplify_operands): Update the
40770 re-gimplifed stmt.
40771
40772 2014-03-25 Martin Jambor <mjambor@suse.cz>
40773
40774 PR ipa/59176
40775 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
40776 (lto_output_varpool_node): Likewise.
40777 (input_overwrite_node): Likewise.
40778 (input_varpool_node): Likewise.
40779
40780 2014-03-25 Richard Biener <rguenther@suse.de>
40781
40782 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
40783 (run_gcc): Likewise.
40784
40785 2014-03-25 Jakub Jelinek <jakub@redhat.com>
40786
40787 * combine.c (simplify_compare_const): Add MODE argument.
40788 Handle mode_width 0 as very large mode_width.
40789 (try_combine, simplify_comparison): Adjust callers.
40790
40791 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
40792 type to avoid signed integer overflow.
40793 * explow.c (plus_constant): Likewise.
40794
40795 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
40796
40797 * doc/generic.texi: Correct typos.
40798
40799 2014-03-24 Tobias Burnus <burnus@net-b.de>
40800
40801 * doc/invoke.texi (-flto): Expand section about
40802 using static libraries with LTO.
40803
40804 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40805
40806 PR rtl-optimization/60501
40807 * optabs.def (addptr3_optab): New optab.
40808 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
40809 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
40810 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
40811
40812 * lra.c (emit_add3_insn): Use the addptr pattern if available.
40813
40814 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
40815
40816 2014-03-24 Ulrich Drepper <drepper@gmail.com>
40817
40818 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
40819 _mm512_set1_pd.
40820
40821 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
40822 (_mm256_undefined_ps): Define.
40823 (_mm256_undefined_pd): Define.
40824 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
40825 (_mm_undefined_pd): Define.
40826 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
40827 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
40828 (_mm512_undefined_ps): Define.
40829 (_mm512_undefined_pd): Define.
40830 Use _mm*_undefined_*.
40831 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
40832
40833 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
40834
40835 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
40836 (lshr_simd): DI mode added.
40837 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
40838 (aarch64_ushr_simddi): Likewise.
40839 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
40840 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
40841 (vshrd_n_u64): Likewise.
40842
40843 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40844
40845 * Makefile.in (s-macro_list): Depend on cc1.
40846
40847 2014-03-23 Teresa Johnson <tejohnson@google.com>
40848
40849 * ipa-utils.c (ipa_print_order): Use specified dump file.
40850
40851 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
40852
40853 PR rtl-optimization/60601
40854 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
40855
40856 * gcc.c (eval_spec_function): Initialize save_growing_value.
40857
40858 2014-03-22 Jakub Jelinek <jakub@redhat.com>
40859
40860 PR sanitizer/60613
40861 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
40862 code == MINUS_EXPR, never swap op0 with op1.
40863
40864 * toplev.c (init_local_tick): Avoid signed integer multiplication
40865 overflow.
40866 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
40867 shift by first operand's bitsize.
40868
40869 2014-03-21 Jakub Jelinek <jakub@redhat.com>
40870
40871 PR target/60610
40872 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
40873 redefine to 1 or 0.
40874 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
40875 TARGET_ISA_64BIT_P(x).
40876
40877 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40878
40879 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
40880 pattern for vector nor instead of subtract from splat(-1).
40881 (altivec_expand_vec_perm_const_le): Likewise.
40882
40883 2014-03-21 Richard Henderson <rth@twiddle.net>
40884
40885 PR target/60598
40886 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
40887 related insns after epilogue_completed.
40888
40889 2014-03-21 Martin Jambor <mjambor@suse.cz>
40890
40891 PR ipa/59176
40892 * cgraph.h (symtab_node): New flag body_removed.
40893 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
40894 when removing bodies.
40895 * symtab.c (dump_symtab_base): Dump body_removed flag.
40896 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
40897 had their bodies removed.
40898
40899 2014-03-21 Martin Jambor <mjambor@suse.cz>
40900
40901 PR ipa/60419
40902 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
40903 in the border.
40904
40905 2014-03-21 Richard Biener <rguenther@suse.de>
40906
40907 PR tree-optimization/60577
40908 * tree-core.h (struct tree_base): Document nothrow_flag use
40909 in DECL_NONALIASED.
40910 * tree.h (DECL_NONALIASED): New.
40911 (may_be_aliased): Adjust.
40912 * coverage.c (build_var): Set DECL_NONALIASED.
40913
40914 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
40915
40916 * expr.c (expand_expr_real_1): Remove outdated comment.
40917
40918 2014-03-20 Jakub Jelinek <jakub@redhat.com>
40919
40920 PR middle-end/60597
40921 * ira.c (adjust_cleared_regs): Call copy_rtx on
40922 *reg_equiv[REGNO (loc)].src_p before passing it to
40923 simplify_replace_fn_rtx.
40924
40925 PR target/60568
40926 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
40927 into CONST, put pic register as first operand of PLUS. Use
40928 gen_const_mem for both 32-bit and 64-bit PIC got loads.
40929
40930 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40931
40932 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
40933
40934 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
40935
40936 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
40937 around for store forwarding issue in the FPU on the UT699.
40938 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
40939 loads and operations if -mfix-ut699 is specified.
40940 (divtf3_hq): Tweak attribute.
40941 (sqrttf2_hq): Likewise.
40942
40943 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
40944
40945 * calls.c (store_one_arg): Remove incorrect const qualification on the
40946 type of the temporary.
40947 * cfgexpand.c (expand_return): Likewise.
40948 * expr.c (expand_constructor): Likewise.
40949 (expand_expr_real_1): Likewise.
40950
40951 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
40952
40953 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
40954 of parts.
40955
40956 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
40957
40958 PR target/60039
40959 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
40960
40961 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
40962
40963 * config/arm/aarch-common-protos.h
40964 (alu_cost_table): Fix spelling of "extend".
40965 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
40966
40967 2014-03-19 Richard Biener <rguenther@suse.de>
40968
40969 PR middle-end/60553
40970 * tree-core.h (tree_type_common): Re-order pointer members
40971 to reduce recursion depth during GC walks.
40972
40973 2014-03-19 Marek Polacek <polacek@redhat.com>
40974
40975 PR sanitizer/60569
40976 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
40977 before accessing it.
40978
40979 2014-03-19 Richard Biener <rguenther@suse.de>
40980
40981 PR lto/59543
40982 * lto-streamer-in.c (input_function): In WPA stage do not drop
40983 debug stmts.
40984
40985 2014-03-19 Jakub Jelinek <jakub@redhat.com>
40986
40987 PR tree-optimization/60559
40988 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
40989 with build_zero_cst assignment.
40990
40991 2014-03-18 Kai Tietz <ktietz@redhat.com>
40992
40993 PR rtl-optimization/56356
40994 * sdbout.c (sdbout_parms): Verify that parms'
40995 incoming argument is valid.
40996 (sdbout_reg_parms): Likewise.
40997
40998 2014-03-18 Richard Henderson <rth@redhat.com>
40999
41000 PR target/60562
41001 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
41002 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
41003 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
41004
41005 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
41006
41007 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
41008 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
41009 Italicize plugin event names in description. Explain that
41010 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
41011 Remind that no GCC functions should be called after PLUGIN_FINISH.
41012 Explain what pragmas with expansion are.
41013
41014 2014-03-18 Martin Liska <mliska@suse.cz>
41015
41016 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
41017 gimple call statement is update.
41018 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
41019 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
41020
41021 2014-03-18 Jakub Jelinek <jakub@redhat.com>
41022
41023 PR sanitizer/60557
41024 * ubsan.c (ubsan_instrument_unreachable): Call
41025 initialize_sanitizer_builtins.
41026 (ubsan_pass): Likewise.
41027
41028 PR sanitizer/60535
41029 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
41030 varpool_finalize_decl instead of rest_of_decl_compilation.
41031
41032 2014-03-18 Richard Biener <rguenther@suse.de>
41033
41034 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
41035 by using bitmap_and_compl instead of bitmap_and_compl_into.
41036 (df_rd_transfer_function): Likewise.
41037
41038 2014-03-18 Richard Biener <rguenther@suse.de>
41039
41040 * doc/lto.texi (fresolution): Fix typo.
41041
41042 2014-03-18 Richard Biener <rguenther@suse.de>
41043
41044 * doc/invoke.texi (flto): Update for changes in 4.9.
41045
41046 2014-03-18 Richard Biener <rguenther@suse.de>
41047
41048 * doc/loop.texi: Remove section on the removed lambda framework.
41049 Update loop docs with recent changes in preserving loop structure.
41050
41051 2014-03-18 Richard Biener <rguenther@suse.de>
41052
41053 * doc/lto.texi (-fresolution): Document.
41054
41055 2014-03-18 Richard Biener <rguenther@suse.de>
41056
41057 * doc/contrib.texi: Adjust my name.
41058
41059 2014-03-18 Jakub Jelinek <jakub@redhat.com>
41060
41061 PR ipa/58721
41062 * internal-fn.c: Include diagnostic-core.h.
41063 (expand_BUILTIN_EXPECT): New function.
41064 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
41065 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
41066 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
41067 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
41068 IFN_BUILTIN_EXPECT.
41069 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
41070 Revert 3 argument __builtin_expect code.
41071 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
41072 * gimple-fold.c (gimple_fold_call): Likewise.
41073 * tree.h (fold_builtin_expect): New prototype.
41074 * builtins.c (build_builtin_expect_predicate): Add predictor
41075 argument, if non-NULL, create 3 argument __builtin_expect.
41076 (fold_builtin_expect): No longer static. Add ARG2 argument,
41077 pass it through to build_builtin_expect_predicate.
41078 (fold_builtin_2): Adjust caller.
41079 (fold_builtin_3): Handle BUILT_IN_EXPECT.
41080 * internal-fn.def (BUILTIN_EXPECT): New.
41081
41082 2014-03-18 Tobias Burnus <burnus@net-b.de>
41083
41084 PR ipa/58721
41085 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
41086 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
41087 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
41088
41089 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
41090
41091 PR ipa/58721
41092 * predict.c (combine_predictions_for_bb): Fix up formatting.
41093 (expr_expected_value_1, expr_expected_value): Add predictor argument,
41094 fill what it points to if non-NULL.
41095 (tree_predict_by_opcode): Adjust caller, use the predictor.
41096 * predict.def (PRED_COMPARE_AND_SWAP): Add.
41097
41098 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
41099
41100 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
41101 proper constant for the store mode.
41102
41103 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
41104
41105 * symtab.c (change_decl_assembler_name): Fix transparent alias
41106 chain construction.
41107
41108 2014-03-16 Renlin Li <Renlin.Li@arm.com>
41109
41110 * config/aarch64/aarch64.c: Correct the comments about the
41111 aarch64 stack layout.
41112
41113 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
41114
41115 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
41116 check for GF_OMP_FOR_KIND_FOR.
41117
41118 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
41119
41120 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
41121 ymm and zmm register names.
41122
41123 2014-03-17 Jakub Jelinek <jakub@redhat.com>
41124
41125 PR target/60516
41126 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
41127 note creation for the 2010-08-31 changes.
41128
41129 2014-03-17 Marek Polacek <polacek@redhat.com>
41130
41131 PR middle-end/60534
41132 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
41133 as -fno-tree-loop-vectorize.
41134 (expand_omp_simd): Likewise.
41135
41136 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
41137
41138 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
41139 (eligible_for_call_delay): New prototype.
41140 * config/sparc/sparc.c (tls_call_delay): Rename into...
41141 (eligible_for_call_delay): ...this. Return false if the instruction
41142 cannot be put in the delay slot of a branch.
41143 (eligible_for_restore_insn): Simplify.
41144 (eligible_for_return_delay): Return false if the instruction cannot be
41145 put in the delay slot of a branch and simplify.
41146 (eligible_for_sibcall_delay): Return false if the instruction cannot be
41147 put in the delay slot of a branch.
41148 * config/sparc/sparc.md (fix_ut699): New attribute.
41149 (tls_call_delay): Delete.
41150 (in_call_delay): Reimplement.
41151 (eligible_for_sibcall_delay): Rename into...
41152 (in_sibcall_delay): ...this.
41153 (eligible_for_return_delay): Rename into...
41154 (in_return_delay): ...this.
41155 (in_branch_delay): Reimplement.
41156 (in_uncond_branch_delay): Delete.
41157 (in_annul_branch_delay): Delete.
41158
41159 2014-03-14 Richard Henderson <rth@redhat.com>
41160
41161 PR target/60525
41162 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
41163 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
41164 (*floathi<X87MODEF>2_i387_with_temp): Remove.
41165 (floathi splitters): Remove.
41166 (float<SWI48x>xf2): New pattern.
41167 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
41168 code that tried to handle DImode for 32-bit, but which was excluded
41169 by the pattern's condition. Drop allocation of stack temporary.
41170 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
41171 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
41172 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
41173 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
41174 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
41175 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
41176 (*float<SWI48><MODEF>2_sse_interunit): Remove.
41177 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
41178 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
41179 (*float<SWI48x><X87MODEF>2_i387): Remove.
41180 (all float _with_temp splitters): Remove.
41181 (*float<SWI48x><MODEF>2_i387): New pattern.
41182 (*float<SWI48><MODEF>2_sse): New pattern.
41183 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
41184 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
41185
41186 2014-03-14 Jakub Jelinek <jakub@redhat.com>
41187 Marek Polacek <polacek@redhat.com>
41188
41189 PR middle-end/60484
41190 * common.opt (dump_base_name_prefixed): New Variable.
41191 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
41192 if x_dump_base_name_prefixed is already set, set it at the end.
41193
41194 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
41195
41196 PR rtl-optimization/60508
41197 * lra-constraints.c (get_reload_reg): Add new parameter
41198 in_subreg_p.
41199 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
41200 Pass the new parameter values.
41201
41202 2014-03-14 Richard Biener <rguenther@suse.de>
41203
41204 * common.opt: Revert unintented changes from r205065.
41205 * opts.c: Likewise.
41206
41207 2014-03-14 Richard Biener <rguenther@suse.de>
41208
41209 PR middle-end/60518
41210 * cfghooks.c (split_block): Properly adjust all loops the
41211 block was a latch of.
41212
41213 2014-03-14 Martin Jambor <mjambor@suse.cz>
41214
41215 PR lto/60461
41216 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
41217 and simplify it.
41218
41219 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
41220
41221 PR target/59396
41222 * config/avr/avr.c (avr_set_current_function): Pass function name
41223 through default_strip_name_encoding before sanity checking instead
41224 of skipping the first char of the assembler name.
41225
41226 2014-03-13 Richard Henderson <rth@redhat.com>
41227
41228 PR debug/60438
41229 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
41230 (ix86_force_to_memory, ix86_free_from_memory): Remove.
41231 * config/i386/i386-protos.h: Likewise.
41232 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
41233 in the expander instead of a splitter.
41234 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
41235 any possibility of requiring a memory.
41236 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
41237 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
41238 (fp branch splitters): Update for ix86_split_fp_branch.
41239 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
41240 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
41241 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
41242 (*fop_<MODEF>_2_i387): Remove f/r alternative.
41243 (*fop_<MODEF>_3_i387): Likewise.
41244 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
41245 (splitters for the fop_* register patterns): Remove.
41246 (fscalexf4_i387): Rename from *fscalexf4_i387.
41247 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
41248
41249 2014-03-13 Jakub Jelinek <jakub@redhat.com>
41250
41251 PR tree-optimization/59779
41252 * tree-dfa.c (get_ref_base_and_extent): Use double_int
41253 type for bitsize and maxsize instead of HOST_WIDE_INT.
41254
41255 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
41256
41257 PR rtl-optimization/57320
41258 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
41259 the CFG after thread_prologue_and_epilogue_insns.
41260
41261 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
41262
41263 PR rtl-optimization/57189
41264 * lra-constraints.c (process_alt_operands): Disfavor spilling
41265 vector pseudos.
41266
41267 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
41268
41269 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
41270
41271 2014-03-13 Jakub Jelinek <jakub@redhat.com>
41272
41273 PR tree-optimization/59025
41274 PR middle-end/60418
41275 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
41276 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
41277
41278 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
41279
41280 PR target/60486
41281 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
41282 calls of avr_out_plus_1.
41283
41284 2014-03-13 Bin Cheng <bin.cheng@arm.com>
41285
41286 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
41287 BB's single pred and update the father loop's latch info later.
41288
41289 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
41290
41291 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
41292 (VEC_M): Likewise.
41293 (VEC_N): Likewise.
41294 (VEC_R): Likewise.
41295 (VEC_base): Likewise.
41296 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
41297 registers, we need to swap double words in little endian mode.
41298
41299 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
41300 to be a container mode for 128-bit integer operations added in ISA
41301 2.07. Unlike TImode and PTImode, the preferred register set is
41302 the Altivec/VMX registers for the 128-bit operations.
41303
41304 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
41305 declarations.
41306 (rs6000_split_128bit_ok_p): Likewise.
41307
41308 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
41309 macros for creating ISA 2.07 normal and overloaded builtin
41310 functions with 3 arguments.
41311 (BU_P8V_OVERLOAD_3): Likewise.
41312 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
41313 for use as overloaded functions.
41314 (VPERM_1TI_UNS): Likewise.
41315 (VSEL_1TI): Likewise.
41316 (VSEL_1TI_UNS): Likewise.
41317 (ST_INTERNAL_1ti): Likewise.
41318 (LD_INTERNAL_1ti): Likewise.
41319 (XXSEL_1TI): Likewise.
41320 (XXSEL_1TI_UNS): Likewise.
41321 (VPERM_1TI): Likewise.
41322 (VPERM_1TI_UNS): Likewise.
41323 (XXPERMDI_1TI): Likewise.
41324 (SET_1TI): Likewise.
41325 (LXVD2X_V1TI): Likewise.
41326 (STXVD2X_V1TI): Likewise.
41327 (VEC_INIT_V1TI): Likewise.
41328 (VEC_SET_V1TI): Likewise.
41329 (VEC_EXT_V1TI): Likewise.
41330 (EQV_V1TI): Likewise.
41331 (NAND_V1TI): Likewise.
41332 (ORC_V1TI): Likewise.
41333 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
41334 added in ISA 2.07. Add both normal 'altivec' builtins, and the
41335 overloaded builtin.
41336 (VADDUQM): Likewise.
41337 (VSUBCUQ): Likewise.
41338 (VADDEUQM): Likewise.
41339 (VADDECUQ): Likewise.
41340 (VSUBEUQM): Likewise.
41341 (VSUBECUQ): Likewise.
41342
41343 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
41344 __int128_t and __uint128_t types.
41345 (__uint128_type): Likewise.
41346 (altivec_categorize_keyword): Add support for vector __int128_t,
41347 vector __uint128_t, vector __int128, and vector unsigned __int128
41348 as a container type for TImode operations that need to be done in
41349 VSX/Altivec registers.
41350 (rs6000_macro_to_expand): Likewise.
41351 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
41352 to support 128-bit integer instructions vaddcuq, vadduqm,
41353 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
41354 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
41355
41356 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
41357 for V1TImode, and set up preferences to use VSX/Altivec registers.
41358 Setup VSX reload handlers.
41359 (rs6000_debug_reg_global): Likewise.
41360 (rs6000_init_hard_regno_mode_ok): Likewise.
41361 (rs6000_preferred_simd_mode): Likewise.
41362 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
41363 (easy_altivec_constant): Likewise.
41364 (output_vec_const_move): Likewise.
41365 (rs6000_expand_vector_set): Convert V1TImode set and extract to
41366 simple move.
41367 (rs6000_expand_vector_extract): Likewise.
41368 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
41369 addressing.
41370 (rs6000_const_vec): Add support for V1TImode.
41371 (rs6000_emit_le_vsx_load): Swap double words when loading or
41372 storing TImode/V1TImode.
41373 (rs6000_emit_le_vsx_store): Likewise.
41374 (rs6000_emit_le_vsx_move): Likewise.
41375 (rs6000_emit_move): Add support for V1TImode.
41376 (altivec_expand_ld_builtin): Likewise.
41377 (altivec_expand_st_builtin): Likewise.
41378 (altivec_expand_vec_init_builtin): Likewise.
41379 (altivec_expand_builtin): Likewise.
41380 (rs6000_init_builtins): Add support for V1TImode type. Add
41381 support for ISA 2.07 128-bit integer builtins. Define type names
41382 for the VSX/Altivec vector types.
41383 (altivec_init_builtins): Add support for overloaded vector
41384 functions with V1TImode type.
41385 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
41386 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
41387 external function.
41388 (rs6000_split_128bit_ok_p): Likewise.
41389 (rs6000_handle_altivec_attribute): Create V1TImode from vector
41390 __int128_t and vector __uint128_t.
41391
41392 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
41393 and mode attributes.
41394 (VSX_M): Likewise.
41395 (VSX_M2): Likewise.
41396 (VSm): Likewise.
41397 (VSs): Likewise.
41398 (VSr): Likewise.
41399 (VSv): Likewise.
41400 (VS_scalar): Likewise.
41401 (VS_double): Likewise.
41402 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
41403
41404 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
41405 we support the ISA 2.07 128-bit integer arithmetic instructions.
41406 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
41407 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
41408 and TImode types for use with the builtin functions.
41409 (V1TI_type_node): Likewise.
41410 (unsigned_V1TI_type_node): Likewise.
41411 (intTI_type_internal_node): Likewise.
41412 (uintTI_type_internal_node): Likewise.
41413
41414 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
41415 128-bit builtin functions.
41416 (UNSPEC_VADDEUQM): Likewise.
41417 (UNSPEC_VADDECUQ): Likewise.
41418 (UNSPEC_VSUBCUQ): Likewise.
41419 (UNSPEC_VSUBEUQM): Likewise.
41420 (UNSPEC_VSUBECUQ): Likewise.
41421 (VM): Add V1TImode to vector mode iterators.
41422 (VM2): Likewise.
41423 (VI_unit): Likewise.
41424 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
41425 (altivec_vaddcuq): Likewise.
41426 (altivec_vsubuqm): Likewise.
41427 (altivec_vsubcuq): Likewise.
41428 (altivec_vaddeuqm): Likewise.
41429 (altivec_vaddecuq): Likewise.
41430 (altivec_vsubeuqm): Likewise.
41431 (altivec_vsubecuq): Likewise.
41432
41433 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
41434 mode iterators.
41435 (BOOL_128): Likewise.
41436 (BOOL_REGS_OUTPUT): Likewise.
41437 (BOOL_REGS_OP1): Likewise.
41438 (BOOL_REGS_OP2): Likewise.
41439 (BOOL_REGS_UNARY): Likewise.
41440 (BOOL_REGS_AND_CR0): Likewise.
41441
41442 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
41443 128-bit integer builtin support.
41444 (vec_vadduqm): Likewise.
41445 (vec_vaddecuq): Likewise.
41446 (vec_vaddeuqm): Likewise.
41447 (vec_vsubecuq): Likewise.
41448 (vec_vsubeuqm): Likewise.
41449 (vec_vsubcuq): Likewise.
41450 (vec_vsubuqm): Likewise.
41451
41452 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
41453 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
41454 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
41455 128-bit integer add/subtract to ISA 2.07.
41456
41457 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
41458
41459 * config/arc/arc.c (arc_predicate_delay_insns):
41460 Fix third argument passed to conditionalize_nonjump.
41461
41462 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
41463
41464 * config/aarch64/aarch64-builtins.c
41465 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
41466 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
41467 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
41468 instead of __builtin_lfloor.
41469 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
41470
41471 2014-03-12 Jakub Jelinek <jakub@redhat.com>
41472
41473 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
41474 (tree_ssa_ifcombine_bb_1): New function.
41475 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
41476 is an empty forwarder block to then_bb or vice versa and then_bb
41477 and else_bb are effectively swapped.
41478
41479 2014-03-12 Christian Bruel <christian.bruel@st.com>
41480
41481 PR target/60264
41482 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
41483 REG_CFA_DEF_CFA note.
41484 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
41485 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
41486
41487 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
41488
41489 PR tree-optimization/60454
41490 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
41491
41492 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41493
41494 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
41495 Do not define target_cpu_default2 to generic.
41496 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
41497 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
41498 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
41499
41500 2014-03-12 Jakub Jelinek <jakub@redhat.com>
41501 Marc Glisse <marc.glisse@inria.fr>
41502
41503 PR tree-optimization/60502
41504 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
41505 instead of build_low_bits_mask.
41506
41507 2014-03-12 Jakub Jelinek <jakub@redhat.com>
41508
41509 PR middle-end/60482
41510 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
41511 if there are multiple uses, but op doesn't live on E edge.
41512 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
41513 clobber stmts before __builtin_unreachable.
41514
41515 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
41516
41517 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
41518 hard_frame_pointer_rtx.
41519 * cse.c (cse_insn): Remove volatile check.
41520 * cselib.c (cselib_process_insn): Likewise.
41521 * dse.c (scan_insn): Likewise.
41522
41523 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
41524
41525 * config/arc/arc.c (conditionalize_nonjump): New function,
41526 broken out of ...
41527 (arc_ifcvt): ... this.
41528 (arc_predicate_delay_insns): Use it.
41529
41530 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
41531
41532 * config/arc/predicates.md (extend_operand): During/after reload,
41533 allow const_int_operand.
41534 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
41535 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
41536 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
41537 to "i".
41538 (umulsi3_highpart_i): Likewise.
41539
41540 2014-03-11 Richard Biener <rguenther@suse.de>
41541
41542 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
41543 Add asserts to guard possible wrong-code bugs.
41544
41545 2014-03-11 Richard Biener <rguenther@suse.de>
41546
41547 PR tree-optimization/60429
41548 PR tree-optimization/60485
41549 * tree-ssa-structalias.c (set_union_with_increment): Properly
41550 take into account all fields that overlap the shifted vars.
41551 (do_sd_constraint): Likewise.
41552 (do_ds_constraint): Likewise.
41553 (get_constraint_for_ptr_offset): Likewise.
41554
41555 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
41556
41557 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
41558 (nios2_compute_frame_layout):
41559 Add calculation of cfun->machine->fp_save_offset.
41560 (nios2_expand_prologue): Correct setting of frame pointer register
41561 in prologue.
41562 (nios2_expand_epilogue): Update recovery of stack pointer from
41563 frame pointer accordingly.
41564 (nios2_initial_elimination_offset): Update calculation of offset
41565 for eliminating to HARD_FRAME_POINTER_REGNUM.
41566
41567 2014-03-10 Jakub Jelinek <jakub@redhat.com>
41568
41569 PR ipa/60457
41570 * ipa.c (symtab_remove_unreachable_nodes): Don't call
41571 cgraph_get_create_node on VAR_DECLs.
41572
41573 2014-03-10 Richard Biener <rguenther@suse.de>
41574
41575 PR middle-end/60474
41576 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
41577
41578 2014-03-08 Douglas B Rupp <rupp@gnat.com>
41579
41580 * config/vms/vms.opt (vms_float_format): New variable.
41581
41582 2014-03-08 Tobias Burnus <burnus@net-b.de>
41583
41584 * doc/invoke.texi (-fcilkplus): Update implementation status.
41585
41586 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
41587 Richard Biener <rguenther@suse.de>
41588
41589 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
41590 consistently accross all TUs.
41591 (run_gcc): Enable -fshort-double automatically at link at link-time
41592 and disallow override.
41593
41594 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
41595
41596 PR target/58271
41597 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
41598 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
41599 if they can't be used.
41600
41601 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41602
41603 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
41604 for Solaris 11/x86 ld.
41605 * configure: Regenerate.
41606
41607 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41608
41609 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
41610 (LIB_TLS_SPEC): Save as ld_tls_libs.
41611 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
41612 (HAVE_AS_IX86_TLSLDM): New test.
41613 * configure, config.in: Regenerate.
41614 * config/i386/i386.c (legitimize_tls_address): Fall back to
41615 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
41616 cannot support TLS_MODEL_LOCAL_DYNAMIC.
41617 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
41618 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
41619
41620 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
41621
41622 * common.opt (fira-loop-pressure): Mark as optimization.
41623
41624 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
41625
41626 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
41627 an OpenMP mappable type.
41628
41629 2014-03-06 Matthias Klose <doko@ubuntu.com>
41630
41631 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
41632 MULTILIB_OSDIRNAMES is not defined.
41633
41634 2014-03-06 Jakub Jelinek <jakub@redhat.com>
41635 Meador Inge <meadori@codesourcery.com>
41636
41637 PR target/58595
41638 * config/arm/arm.c (arm_tls_symbol_p): Remove.
41639 (arm_legitimize_address): Call legitimize_tls_address for any
41640 arm_tls_referenced_p expression, handle constant addend. Call it
41641 before testing for !TARGET_ARM.
41642 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
41643
41644 2014-03-06 Richard Biener <rguenther@suse.de>
41645
41646 PR middle-end/60445
41647 PR lto/60424
41648 PR lto/60427
41649 Revert
41650 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
41651
41652 * tree-streamer.c (record_common_node): Assert we don't record
41653 nodes with type double.
41654 (preload_common_node): Skip type double, complex double and double
41655 pointer since it is now frontend dependent due to fshort-double option.
41656
41657 2014-03-06 Richard Biener <rguenther@suse.de>
41658
41659 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
41660 or -fno-lto is specified and the linker has full plugin support.
41661 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
41662 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
41663 * lto-wrapper.c (merge_and_complain): Merge compile-time
41664 optimization levels.
41665 (run_gcc): And pass it through to the link options.
41666
41667 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
41668
41669 PR debug/60381
41670 Revert:
41671 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
41672 PR debug/59992
41673 * cselib.c (remove_useless_values): Skip to avoid quadratic
41674 behavior if the condition moved from...
41675 (cselib_process_insn): ... here holds.
41676
41677 2014-03-05 Jakub Jelinek <jakub@redhat.com>
41678
41679 PR plugins/59335
41680 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
41681 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
41682
41683 PR plugins/59335
41684 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
41685 (TM_H): Add x86-tune.def.
41686
41687 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41688
41689 * config/aarch64/aarch64.c (generic_tunings):
41690 Use cortexa57_extra_costs.
41691
41692 2014-03-05 Jakub Jelinek <jakub@redhat.com>
41693
41694 PR lto/60404
41695 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
41696 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
41697 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
41698 cost for in_lto_p.
41699
41700 2014-03-04 Heiher <r@hev.cc>
41701
41702 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
41703 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
41704
41705 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
41706
41707 * config/i386/predicates.md (const2356_operand): Change to ...
41708 (const2367_operand): ... this.
41709 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
41710 const2367_operand.
41711 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
41712 (*avx512pf_scatterpf<mode>sf): Ditto.
41713 (avx512pf_scatterpf<mode>df): Ditto.
41714 (*avx512pf_scatterpf<mode>df_mask): Ditto.
41715 (*avx512pf_scatterpf<mode>df): Ditto.
41716 * config/i386/i386.c (ix86_expand_builtin): Update
41717 incorrect hint operand error message.
41718
41719 2014-03-04 Richard Biener <rguenther@suse.de>
41720
41721 * lto-section-in.c (lto_get_section_data): Fix const cast.
41722
41723 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
41724
41725 * tree-streamer.c (record_common_node): Assert we don't record
41726 nodes with type double.
41727 (preload_common_node): Skip type double, complex double and double
41728 pointer since it is now frontend dependent due to fshort-double option.
41729
41730 2014-03-04 Richard Biener <rguenther@suse.de>
41731
41732 PR lto/60405
41733 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
41734 (lto_input_toplevel_asms): Likewise.
41735 * lto-section-in.c (lto_get_section_data): Instead do it here
41736 for every section.
41737
41738 2014-03-04 Richard Biener <rguenther@suse.de>
41739
41740 PR tree-optimization/60382
41741 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
41742 dead PHIs a reduction.
41743
41744 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
41745
41746 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
41747 hint value.
41748 (_mm_prefetch): Move out of GCC target("sse") pragma.
41749 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
41750 GCC target("prfchw") pragma.
41751 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
41752 for locality <= 2.
41753 * config/i386/i386.c (ix86_option_override_internal): Enable
41754 -mprfchw with -mprefetchwt1.
41755
41756 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
41757
41758 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
41759 Mark as varying.
41760
41761 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
41762
41763 * opts.h (CL_PCH_IGNORE): Define.
41764 * targhooks.c (option_affects_pch_p):
41765 Return false for options that have CL_PCH_IGNORE set.
41766 * opt-functions.awk: Process PchIgnore.
41767 * doc/options.texi: Document PchIgnore.
41768
41769 * config/arc/arc.opt (misize): Add PchIgnore property.
41770
41771 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41772
41773 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
41774 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
41775 constraint on constants to permit them being loaded into
41776 GENERAL_REGS or BASE_REGS.
41777
41778 2014-03-03 Nick Clifton <nickc@redhat.com>
41779
41780 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
41781 anti-cacnonical alternatives.
41782 (negandhi3_real): New pattern.
41783 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
41784
41785 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
41786
41787 * config/avr/avr-mcus.def: Remove atxmega16x1.
41788 * config/avr/avr-tables.opt: Regenerate.
41789 * config/avr/t-multilib: Regenerate.
41790 * doc/avr-mmcu.texi: Regenerate.
41791
41792 2014-03-03 Tobias Grosser <tobias@grosser.es>
41793 Mircea Namolaru <mircea.namolaru@inria.fr>
41794
41795 PR tree-optimization/58028
41796 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
41797 scalar dimensions.
41798
41799 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41800
41801 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
41802 not handled by recognizers.
41803
41804 2014-03-03 Jakub Jelinek <jakub@redhat.com>
41805
41806 PR middle-end/60175
41807 * function.c (expand_function_end): Don't emit
41808 clobber_return_register sequence if clobber_after is a BARRIER.
41809 * cfgexpand.c (construct_exit_block): Append instructions before
41810 return_label to prev_bb.
41811
41812 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41813
41814 * config/rs6000/constraints.md: Document reserved use of "wc".
41815
41816 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
41817
41818 PR ipa/60150
41819 * ipa.c (function_and_variable_visibility): When dissolving comdat
41820 group, also set all symbols to local.
41821
41822 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
41823
41824 PR ipa/60306
41825
41826 Revert:
41827 2013-12-14 Jan Hubicka <jh@suse.cz>
41828 PR middle-end/58477
41829 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
41830
41831 2014-03-02 Jon Beniston <jon@beniston.com>
41832
41833 PR bootstrap/48230
41834 PR bootstrap/50927
41835 PR bootstrap/52466
41836 PR target/46898
41837 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
41838 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
41839 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
41840 (simple_return, *simple_return): New patterns
41841 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
41842 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
41843
41844 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
41845
41846 * dwarf2out.c (gen_subprogram_die): Tidy.
41847
41848 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
41849
41850 PR target/60071
41851 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
41852 (*mov_t_msb_neg_negc): ... this new insn.
41853
41854 2014-02-28 Jason Merrill <jason@redhat.com>
41855
41856 PR c++/58678
41857 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
41858 function.
41859
41860 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
41861
41862 PR c++/60314
41863 * dwarf2out.c (decltype_auto_die): New static.
41864 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
41865 (gen_type_die_with_usage): Handle 'decltype(auto)'.
41866 (is_cxx_auto): Likewise.
41867
41868 2014-02-28 Ian Bolton <ian.bolton@arm.com>
41869
41870 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
41871 we are not using general regs only.
41872
41873 2014-02-28 Richard Biener <rguenther@suse.de>
41874
41875 PR target/60280
41876 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
41877 previous fix and only allow to remove trivial pre-headers
41878 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
41879 (remove_forwarder_block): Properly update the latch of a loop.
41880
41881 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
41882
41883 PR debug/59992
41884 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
41885 (cselib_preserved_hash_table): New.
41886 (preserve_constants_and_equivs): Move preserved vals to it.
41887 (cselib_find_slot): Look it up first.
41888 (cselib_init): Initialize it.
41889 (cselib_finish): Release it.
41890 (dump_cselib_table): Dump it.
41891
41892 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
41893
41894 PR debug/59992
41895 * cselib.c (remove_useless_values): Skip to avoid quadratic
41896 behavior if the condition moved from...
41897 (cselib_process_insn): ... here holds.
41898
41899 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
41900
41901 PR debug/57232
41902 * var-tracking.c (vt_initialize): Apply the same condition to
41903 preserve the CFA base value.
41904
41905 2014-02-28 Joey Ye <joey.ye@arm.com>
41906
41907 PR target/PR60169
41908 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
41909 if reload in progress or completed.
41910
41911 2014-02-28 Tobias Burnus <burnus@net-b.de>
41912
41913 PR middle-end/60147
41914 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
41915 NAMELIST_DECL.
41916
41917 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
41918
41919 * doc/tm.texi.in (Condition Code Status): Update documention for
41920 relative locations of cc0-setter and cc0-user.
41921
41922 2014-02-27 Jeff Law <law@redhat.com>
41923
41924 PR rtl-optimization/52714
41925 * combine.c (try_combine): When splitting an unrecognized PARALLEL
41926 into two independent simple sets, if I3 is a jump, ensure the
41927 pattern we place into I3 is a (set (pc) ...).
41928
41929 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
41930 Jeff Law <law@redhat.com>
41931
41932 PR rtl-optimization/49847
41933 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
41934 are in different blocks.
41935 * doc/tm.texi (Condition Code Status): Update documention for
41936 relative locations of cc0-setter and cc0-user.
41937
41938 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
41939
41940 PR target/59222
41941 * lra.c (lra_emit_add): Check SUBREG too.
41942
41943 2014-02-27 Andreas Schwab <schwab@suse.de>
41944
41945 * config/m68k/m68k.c (m68k_option_override): Disable
41946 -flive-range-shrinkage for classic m68k.
41947 (m68k_override_options_after_change): Likewise.
41948
41949 2014-02-27 Marek Polacek <polacek@redhat.com>
41950
41951 PR middle-end/59223
41952 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
41953 -Wmaybe-uninitialized.
41954
41955 2014-02-27 Alan Modra <amodra@gmail.com>
41956
41957 PR target/57936
41958 * reload1.c (emit_input_reload_insns): When reload_override_in,
41959 set old to rl->in_reg when rl->in_reg is a subreg.
41960
41961 2014-02-26 Richard Biener <rguenther@suse.de>
41962
41963 PR bootstrap/60343
41964 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
41965
41966 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
41967
41968 * common/config/i386/predicates.md (const1256_operand): Remove.
41969 (const2356_operand): New.
41970 (const_1_to_2_operand): Remove.
41971 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
41972 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
41973 (*avx512pf_gatherpf<mode>sf): Ditto.
41974 (avx512pf_gatherpf<mode>df): Ditto.
41975 (*avx512pf_gatherpf<mode>df_mask): Ditto.
41976 (*avx512pf_gatherpf<mode>df): Ditto.
41977 (avx512pf_scatterpf<mode>sf): Ditto.
41978 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
41979 (*avx512pf_scatterpf<mode>sf): Ditto.
41980 (avx512pf_scatterpf<mode>df): Ditto.
41981 (*avx512pf_scatterpf<mode>df_mask): Ditto.
41982 (*avx512pf_scatterpf<mode>df): Ditto.
41983 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
41984
41985 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
41986
41987 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
41988 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
41989 (_mm512_mask_testn_epi64_mask): Move to ...
41990 * config/i386/avx512cdintrin.h: Here.
41991 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
41992 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
41993 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
41994 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
41995 TARGET_AVX512F from TARGET_AVX512CD.
41996
41997 2014-02-26 Richard Biener <rguenther@suse.de>
41998
41999 PR ipa/60327
42000 * ipa.c (walk_polymorphic_call_targets): Properly guard
42001 call to inline_update_overall_summary.
42002
42003 2014-02-26 Bin Cheng <bin.cheng@arm.com>
42004
42005 PR target/60280
42006 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
42007 and latches only if requested. Fix latch if it is removed.
42008 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
42009 LOOPS_HAVE_PREHEADERS.
42010
42011 2014-02-25 Andrew Pinski <apinski@cavium.com>
42012
42013 * builtins.c (expand_builtin_thread_pointer): Create a new target
42014 when the target is NULL.
42015
42016 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
42017
42018 PR rtl-optimization/60317
42019 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
42020 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
42021 * lra-assigns.c: Include params.h.
42022 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
42023 other reload pseudos considerations.
42024
42025 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42026
42027 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
42028 to use canonical form for nor<mode>3.
42029
42030 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42031
42032 PR target/55426
42033 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
42034 conversions.
42035
42036 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
42037
42038 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
42039 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
42040 (ix86_handle_option): Handle OPT_mprefetchwt1.
42041 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
42042 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
42043 PREFETCHWT1 CPUID.
42044 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
42045 OPTION_MASK_ISA_PREFETCHWT1.
42046 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
42047 (PTA_PREFETCHWT1): New.
42048 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
42049 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
42050 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
42051 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
42052 (*prefetch_avx512pf_<mode>_: Change into ...
42053 (*prefetch_prefetchwt1_<mode>: This.
42054 * config/i386/i386.opt (mprefetchwt1): New.
42055 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
42056 (_mm_prefetch): Handle intent to write.
42057 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
42058
42059 2014-02-25 Richard Biener <rguenther@suse.de>
42060
42061 PR middle-end/60291
42062 * emit-rtl.c (mem_attrs_htab): Remove.
42063 (mem_attrs_htab_hash): Likewise.
42064 (mem_attrs_htab_eq): Likewise.
42065 (set_mem_attrs): Always allocate new mem-attrs when something changed.
42066 (init_emit_once): Do not allocate mem_attrs_htab.
42067
42068 2014-02-25 Richard Biener <rguenther@suse.de>
42069
42070 PR lto/60319
42071 * lto-opts.c (lto_write_options): Output non-explicit conservative
42072 -fwrapv, -fno-trapv and -fno-strict-overflow.
42073 * lto-wrapper.c (merge_and_complain): Handle merging those options.
42074 (run_gcc): And pass them through.
42075
42076 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
42077
42078 * sel-sched.c (calculate_new_fences): New parameter ptime.
42079 Calculate it as a maximum over all fence cycles.
42080 (sel_sched_region_2): Adjust the call to calculate_new_fences.
42081 Print the final schedule timing when sched_verbose.
42082
42083 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
42084
42085 PR rtl-optimization/60292
42086 * sel-sched.c (fill_vec_av_set): Do not reset target availability
42087 bit fot the fence instruction.
42088
42089 2014-02-24 Alangi Derick <alangiderick@gmail.com>
42090
42091 * calls.h: Fix typo in comment.
42092
42093 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
42094
42095 * config/pa/pa.c (pa_output_move_double): Don't valididate when
42096 adjusting offsetable addresses.
42097
42098 2014-02-24 Guozhi Wei <carrot@google.com>
42099
42100 * sparseset.h (sparseset_pop): Fix the wrong index.
42101
42102 2014-02-24 Walter Lee <walt@tilera.com>
42103
42104 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
42105 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
42106 triplet.
42107 * common/config/tilegx/tilegx-common.c
42108 (TARGET_DEFAULT_TARGET_FLAGS): Define.
42109 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
42110 (LINK_SPEC): Ditto.
42111 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
42112 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
42113 (tilegx_gimplify_va_arg_expr): Handle big endian.
42114 (tilegx_expand_unaligned_load): Ditto.
42115 (tilegx_expand_unaligned_store): Ditto.
42116 (TARGET_RETURN_IN_MSB): New.
42117 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
42118 (TARGET_ENDIAN_DEFAULT): New.
42119 (TARGET_BIG_ENDIAN): Handle big endian.
42120 (BYTES_BIG_ENDIAN): Ditto.
42121 (WORDS_BIG_ENDIAN): Ditto.
42122 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
42123 (ENDIAN_SPEC): New.
42124 (EXTRA_SPECS): New.
42125 * config/tilegx/tilegx.md (extv): Handle big endian.
42126 (extzv): Ditto.
42127 (insn_st<n>): Ditto.
42128 (insn_st<n>_add<bitsuffix>): Ditto.
42129 (insn_stnt<n>): Ditto.
42130 (insn_stnt<n>_add<bitsuffix>):Ditto.
42131 (vec_interleave_highv8qi): Handle big endian.
42132 (vec_interleave_highv8qi_be): New.
42133 (vec_interleave_highv8qi_le): New.
42134 (insn_v1int_h): Handle big endian.
42135 (vec_interleave_lowv8qi): Handle big endian.
42136 (vec_interleave_lowv8qi_be): New.
42137 (vec_interleave_lowv8qi_le): New.
42138 (insn_v1int_l): Handle big endian.
42139 (vec_interleave_highv4hi): Handle big endian.
42140 (vec_interleave_highv4hi_be): New.
42141 (vec_interleave_highv4hi_le): New.
42142 (insn_v2int_h): Handle big endian.
42143 (vec_interleave_lowv4hi): Handle big endian.
42144 (vec_interleave_lowv4hi_be): New.
42145 (vec_interleave_lowv4hi_le): New.
42146 (insn_v2int_l): Handle big endian.
42147 (vec_interleave_highv2si): Handle big endian.
42148 (vec_interleave_highv2si_be): New.
42149 (vec_interleave_highv2si_le): New.
42150 (insn_v4int_h): Handle big endian.
42151 (vec_interleave_lowv2si): Handle big endian.
42152 (vec_interleave_lowv2si_be): New.
42153 (vec_interleave_lowv2si_le): New.
42154 (insn_v4int_l): Handle big endian.
42155 * config/tilegx/tilegx.opt (mbig-endian): New option.
42156 (mlittle-endian): New option.
42157 * doc/install.texi: Document tilegxbe-linux.
42158 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
42159
42160 2014-02-24 Martin Jambor <mjambor@suse.cz>
42161
42162 PR ipa/60266
42163 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
42164 there are no parameter descriptors.
42165
42166 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
42167
42168 PR rtl-optimization/60268
42169 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
42170 initialization to ...
42171 (sched_rgn_init): ... here.
42172 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
42173
42174 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
42175
42176 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
42177 names.
42178
42179 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
42180
42181 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
42182 definition.
42183
42184 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
42185
42186 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
42187 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
42188
42189 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
42190
42191 * config/microblaze/predicates.md: Add cmp_op predicate.
42192 * config/microblaze/microblaze.md: Add branch_compare instruction
42193 which uses cmp_op predicate and emits cmp insn before branch.
42194 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
42195 to microblaze_expand_conditional_branch and consolidate logic.
42196 (microblaze_expand_conditional_branch): emit branch_compare
42197 insn instead of handling cmp op separate from branch insn.
42198
42199 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42200
42201 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
42202 to permit subregs.
42203
42204 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42205
42206 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
42207 define_insn with define_expand and new define_insn
42208 *altivec_lve<VI_char>x_internal.
42209 (altivec_stve<VI_char>x): Replace define_insn with define_expand
42210 and new define_insn *altivec_stve<VI_char>x_internal.
42211 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
42212 prototype.
42213 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
42214 lve*x built-ins.
42215 (altivec_expand_stvex_be): New function.
42216
42217 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
42218
42219 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
42220 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
42221 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
42222 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
42223
42224 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
42225
42226 PR target/60298
42227 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
42228 instead of emit_move_insn.
42229
42230 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42231
42232 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
42233 vspltw with vsldoi.
42234 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
42235 gen_altivec_vsumsws.
42236
42237 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42238
42239 * config/rs6000/altivec.md (altivec_lvxl): Rename as
42240 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
42241 (altivec_lvxl_<mode>): New define_expand incorporating
42242 -maltivec=be semantics where needed.
42243 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
42244 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
42245 semantics where needed.
42246 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
42247 (altivec_stvx_<mode>): New define_expand incorporating
42248 -maltivec=be semantics where needed.
42249 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
42250 VM2 iterator instead of V4SI.
42251 (altivec_stvxl_<mode>): New define_expand incorporating
42252 -maltivec=be semantics where needed.
42253 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
42254 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
42255 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
42256 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
42257 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
42258 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
42259 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
42260 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
42261 ALTIVEC_BUILTIN_STVXL.
42262 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
42263 (altivec_expand_stvx_be): Likewise.
42264 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
42265 (altivec_expand_lvx_be): Likewise.
42266 (altivec_expand_stvx_be): Likewise.
42267 (altivec_expand_builtin): Add cases for
42268 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
42269 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
42270 (altivec_init_builtins): Add definitions for
42271 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
42272 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
42273
42274 2014-02-21 Catherine Moore <clm@codesourcery.com>
42275
42276 * doc/invoke.texi (mvirt, mno-virt): Document.
42277 * config/mips/mips.opt (mvirt): New option.
42278 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
42279
42280 2014-02-21 Richard Biener <rguenther@suse.de>
42281
42282 PR tree-optimization/60276
42283 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
42284 (STMT_VINFO_MIN_NEG_DIST): New macro.
42285 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
42286 STMT_VINFO_MIN_NEG_DIST.
42287 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
42288 made for negative dependence distances still hold.
42289
42290 2014-02-21 Richard Biener <rguenther@suse.de>
42291
42292 PR middle-end/60291
42293 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
42294 DECL_INITIAL for globals not in the current function context.
42295
42296 2014-02-21 Jakub Jelinek <jakub@redhat.com>
42297
42298 PR tree-optimization/56490
42299 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
42300 * tree-ssa-uninit.c: Include params.h.
42301 (compute_control_dep_chain): Add num_calls argument, return false
42302 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
42303 num_calls to recursive call.
42304 (find_predicates): Change dep_chain into normal array,
42305 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
42306 variable and adjust compute_control_dep_chain caller.
42307 (find_def_preds): Likewise.
42308
42309 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
42310
42311 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
42312 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
42313
42314 2014-02-21 Nick Clifton <nickc@redhat.com>
42315
42316 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
42317 (pushhi1): Likewise.
42318 (popqi1): Add mode to pre_dec.
42319 (pophi1): Likewise.
42320
42321 2014-02-21 Jakub Jelinek <jakub@redhat.com>
42322
42323 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
42324 mode for mask of V8SFmode permutation.
42325
42326 2014-02-20 Richard Henderson <rth@redhat.com>
42327
42328 PR c++/60272
42329 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
42330 a new pseudo for OLDVAL.
42331
42332 2014-02-20 Jakub Jelinek <jakub@redhat.com>
42333
42334 PR target/57896
42335 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
42336 gen_reg_rtx if d->testing_p.
42337 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
42338 if d->testing_p and we will certainly return true.
42339 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
42340 if d->testing_p.
42341
42342 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
42343
42344 * emit-rtl.c (gen_reg_rtx): Assert that
42345 crtl->emit.regno_pointer_align_length is non-zero.
42346
42347 2014-02-20 Richard Henderson <rth@redhat.com>
42348
42349 PR c++/60272
42350 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
42351 on failure the store back into EXPECT.
42352
42353 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
42354 Sandra Loosemore <sandra@codesourcery.com>
42355
42356 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
42357 * config/nios2/nios2.c (nios2_function_profiler): Add
42358 -fPIC (flag_pic == 2) support.
42359 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
42360 (nios2_large_offset_p): New function.
42361 (nios2_unspec_reloc_p): Move up position, update to use
42362 nios2_large_offset_p.
42363 (nios2_unspec_address): Remove function.
42364 (nios2_unspec_offset): New function.
42365 (nios2_large_got_address): New function.
42366 (nios2_got_address): Add large offset support.
42367 (nios2_legitimize_tls_address): Update usage of removed and new
42368 functions.
42369 (nios2_symbol_binds_local_p): New function.
42370 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
42371 (nios2_legitimize_address): Update to use nios2_large_offset_p.
42372 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
42373 (nios2_print_operand): Merge H/L processing, add hiadj/lo
42374 processing for (const (unspec ...)).
42375 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
42376
42377 2014-02-20 Richard Biener <rguenther@suse.de>
42378
42379 * tree-cfg.c (replace_uses_by): Mark altered BBs before
42380 doing the substitution.
42381 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
42382
42383 2014-02-20 Martin Jambor <mjambor@suse.cz>
42384
42385 PR ipa/55260
42386 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
42387 info when checking whether lattices are bottom.
42388
42389 2014-02-20 Richard Biener <rguenther@suse.de>
42390
42391 PR middle-end/60221
42392 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
42393 regions at -O0.
42394
42395 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
42396
42397 PR ipa/58555
42398 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
42399 parameter specifying the scaling.
42400 (inline_call): Update.
42401 (want_inline_recursively): Guard division by zero.
42402 (recursive_inlining): Update.
42403 * ipa-inline.h (clone_inlined_nodes): Update.
42404
42405 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
42406
42407 PR target/60204
42408 * config/i386/i386.c (classify_argument): Pass structures of size
42409 64 bytes or less in register.
42410
42411 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
42412 Kirill Yukhin <kirill.yukhin@intel.com>
42413
42414 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
42415 (_mm_rcp28_round_ss): Ditto.
42416 (_mm_rsqrt28_round_sd): Ditto.
42417 (_mm_rsqrt28_round_ss): Ditto.
42418 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
42419 (_mm_rcp14_round_ss): Ditto.
42420 (_mm_rsqrt14_round_sd): Ditto.
42421 (_mm_rsqrt14_round_ss): Ditto.
42422 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
42423 the first input operand, get rid of match_dup.
42424 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
42425 attribute to sse.
42426 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
42427 Ditto.
42428 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
42429 operand as the first input operand, set type attribute.
42430 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
42431 Set type attribute.
42432 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
42433 operand as the first input operand, set type attribute.
42434
42435 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42436
42437 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
42438 bit of zero.
42439
42440 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
42441
42442 PR target/60207
42443 * config/i386/i386.c (construct_container): Remove TFmode check
42444 for X86_64_INTEGER_CLASS.
42445
42446 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
42447
42448 PR target/59794
42449 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
42450 only when -Wpsabi is enabled.
42451
42452 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
42453
42454 PR target/59799
42455 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
42456 passing arrays in registers are the same as for structs, so remove the
42457 special case for them.
42458
42459 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
42460
42461 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
42462 destination type, extract only the valid bits if the source type is not
42463 integral and has a different mode.
42464
42465 2014-02-19 Richard Biener <rguenther@suse.de>
42466
42467 PR ipa/60243
42468 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
42469 for all calls.
42470
42471 2014-02-19 Richard Biener <rguenther@suse.de>
42472
42473 PR ipa/60243
42474 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
42475 (ipa_modify_call_arguments): Emit an argument load explicitely and
42476 preserve virtual SSA form there and for the replacement call.
42477 Do not update SSA form nor free dominance info.
42478
42479 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
42480
42481 * ipa.c (function_and_variable_visibility): Also clear WEAK
42482 flag when disolving COMDAT_GROUP.
42483
42484 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
42485
42486 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
42487 * ipa-prop.c (ipa_set_jf_known_type): Return early when
42488 not devirtualizing.
42489 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
42490 do more sanity checks.
42491 (detect_type_change): Return true when giving up early.
42492 (compute_complex_assign_jump_func): Fix type parameter of
42493 ipa_set_ancestor_jf.
42494 (compute_complex_ancestor_jump_func): Likewise.
42495 (update_jump_functions_after_inlining): Fix updating of
42496 ancestor function.
42497 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
42498
42499 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
42500
42501 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
42502 inline clones when edge disappears.
42503
42504 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
42505
42506 PR target/60203
42507 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
42508 Split 64-bit moves into 2 patterns. Do not allow the use of
42509 direct move for TDmode in little endian, since the decimal value
42510 has little endian bytes within a word, but the 64-bit pieces are
42511 ordered in a big endian fashion, and normal subreg's of TDmode are
42512 not allowed.
42513 (mov<mode>_64bit_dm): Likewise.
42514 (movtd_64bit_nodm): Likewise.
42515
42516 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
42517
42518 PR tree-optimization/60174
42519 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
42520 statement of an SSA_NAME that occurs in an abnormal PHI node.
42521
42522 2014-02-18 Jakub Jelinek <jakub@redhat.com>
42523
42524 PR sanitizer/60142
42525 * final.c (SEEN_BB): Remove.
42526 (SEEN_NOTE, SEEN_EMITTED): Renumber.
42527 (final_scan_insn): Don't force_source_line on second
42528 NOTE_INSN_BASIC_BLOCK.
42529
42530 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
42531
42532 PR target/60205
42533 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
42534 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
42535 (type_natural_mode): Warn ABI change when %zmm register is not
42536 available for AVX512F vector value passing.
42537
42538 2014-02-18 Kai Tietz <ktietz@redhat.com>
42539
42540 PR target/60193
42541 * config/i386/i386.c (ix86_expand_prologue): Use value in
42542 rax register as displacement when restoring %r10 or %rax.
42543 Fix wrong offset when restoring both registers.
42544
42545 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
42546
42547 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
42548 assertion with conditional return.
42549
42550 2014-02-18 Jakub Jelinek <jakub@redhat.com>
42551 Uros Bizjak <ubizjak@gmail.com>
42552
42553 PR driver/60233
42554 * config/i386/driver-i386.c (host_detect_local_cpu): If
42555 YMM state is not saved by the OS, also clear has_f16c. Move
42556 CPUID 0x80000001 handling before YMM state saving checking.
42557
42558 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
42559
42560 PR rtl-optimization/58960
42561 * haifa-sched.c (alloc_global_sched_pressure_data): New,
42562 factored out from ...
42563 (sched_init): ... here.
42564 (free_global_sched_pressure_data): New, factored out from ...
42565 (sched_finish): ... here.
42566 * sched-int.h (free_global_sched_pressure_data): Declare.
42567 * sched-rgn.c (nr_regions_initial): New static global.
42568 (haifa_find_rgns): Initialize it.
42569 (schedule_region): Disable sched-pressure for the newly
42570 generated regions.
42571
42572 2014-02-17 Richard Biener <rguenther@suse.de>
42573
42574 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
42575 release SSA defs of pattern stmts.
42576
42577 2014-02-17 Richard Biener <rguenther@suse.de>
42578
42579 * tree-inline.c (expand_call_inline): Release the virtual
42580 operand defined by the call we are about to inline.
42581
42582 2014-02-17 Richard Biener <rguenther@suse.de>
42583
42584 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
42585
42586 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
42587 Ilya Tocar <ilya.tocar@intel.com>
42588
42589 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
42590 arguments order in builtin.
42591 (_mm512_permutexvar_epi64): Ditto.
42592 (_mm512_mask_permutexvar_epi64): Ditto
42593 (_mm512_maskz_permutexvar_epi32): Ditto
42594 (_mm512_permutexvar_epi32): Ditto
42595 (_mm512_mask_permutexvar_epi32): Ditto
42596
42597 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42598
42599 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
42600 (p8_vmrgow): Likewise.
42601
42602 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42603
42604 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
42605 endian targets.
42606
42607 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
42608
42609 PR target/60203
42610 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
42611 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
42612 into 64-bit and 32-bit moves. On 64-bit moves, add support for
42613 using direct move instructions on ISA 2.07. Also adjust
42614 instruction length for 64-bit.
42615 (mov<mode>_64bit, TFmode/TDmode): Likewise.
42616 (mov<mode>_32bit, TFmode/TDmode): Likewise.
42617
42618 2014-02-15 Alan Modra <amodra@gmail.com>
42619
42620 PR target/58675
42621 PR target/57935
42622 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
42623 find_replacement on parts of insn rtl that might be reloaded.
42624
42625 2014-02-15 Richard Biener <rguenther@suse.de>
42626
42627 PR tree-optimization/60183
42628 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
42629 (tree_ssa_phiprop): Calculate and free post-dominators.
42630
42631 2014-02-14 Jeff Law <law@redhat.com>
42632
42633 PR rtl-optimization/60131
42634 * ree.c (get_extended_src_reg): New function.
42635 (combine_reaching_defs): Use it rather than assuming location of REG.
42636 (find_and_remove_re): Verify first operand of extension is
42637 a REG before adding the insns to the copy list.
42638
42639 2014-02-14 Roland McGrath <mcgrathr@google.com>
42640
42641 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
42642 * configure: Regenerated.
42643 * config.in: Regenerated.
42644 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
42645 instead of ASM_SHORT.
42646
42647 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
42648 Richard Earnshaw <rearnsha@arm.com>
42649
42650 PR rtl-optimization/59535
42651 * lra-constraints.c (process_alt_operands): Encourage alternative
42652 when unassigned pseudo class is superset of the alternative class.
42653 (inherit_reload_reg): Don't inherit when optimizing for code size.
42654 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
42655 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
42656 modes not less than 4 for Thumb1.
42657
42658 2014-02-14 Kyle McMartin <kyle@redhat.com>
42659
42660 PR pch/60010
42661 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
42662
42663 2014-02-14 Richard Biener <rguenther@suse.de>
42664
42665 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
42666 (get_frame_arg): Drop the assert with langhook types_compatible_p.
42667 Do not strip INDIRECT_REFs.
42668
42669 2014-02-14 Richard Biener <rguenther@suse.de>
42670
42671 PR lto/60179
42672 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
42673 DECL_FUNCTION_SPECIFIC_TARGET.
42674 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
42675 * tree-streamer-out.c (pack_ts_target_option): Remove.
42676 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
42677 (write_ts_function_decl_tree_pointers): Do not stream
42678 DECL_FUNCTION_SPECIFIC_TARGET.
42679 * tree-streamer-in.c (unpack_ts_target_option): Remove.
42680 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
42681 (lto_input_ts_function_decl_tree_pointers): Do not stream
42682 DECL_FUNCTION_SPECIFIC_TARGET.
42683
42684 2014-02-14 Jakub Jelinek <jakub@redhat.com>
42685
42686 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
42687 (get_initial_def_for_induction, vectorizable_induction): Ignore
42688 debug stmts when looking for exit_phi.
42689 (vectorizable_live_operation): Fix up condition.
42690
42691 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
42692
42693 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
42694 nreverse() because it changes the content of original tree list.
42695
42696 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
42697
42698 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
42699 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
42700
42701 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
42702
42703 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
42704 GNU coding standards.
42705
42706 2014-02-13 Jakub Jelinek <jakub@redhat.com>
42707
42708 PR debug/60152
42709 * dwarf2out.c (gen_subprogram_die): Don't call
42710 add_calling_convention_attribute if subr_die is old_die.
42711
42712 2014-02-13 Sharad Singhai <singhai@google.com>
42713
42714 * doc/optinfo.texi: Fix order of nodes.
42715
42716 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
42717
42718 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
42719 operands[2], not operands[3].
42720
42721 2014-02-13 Richard Biener <rguenther@suse.de>
42722
42723 PR bootstrap/59878
42724 * doc/install.texi (ISL): Update recommended version to 0.12.2,
42725 mention the possibility of an in-tree build.
42726 (CLooG): Update recommended version to 0.18.1, mention the
42727 possibility of an in-tree build and clarify that the ISL
42728 bundled with CLooG does not work.
42729
42730 2014-02-13 Jakub Jelinek <jakub@redhat.com>
42731
42732 PR target/43546
42733 * expr.c (compress_float_constant): If x is a hard register,
42734 extend into a pseudo and then move to x.
42735
42736 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
42737
42738 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
42739 caused by bad second argument to warning_at() with -mhotpatch and
42740 nested functions (e.g. with gfortran).
42741
42742 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
42743
42744 * opts.c (option_name): Remove "enabled by default" rider.
42745
42746 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
42747
42748 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
42749
42750 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
42751 Uros Bizjak <ubizjak@gmail.com>
42752
42753 PR target/60151
42754 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
42755 * configure: Regenerated.
42756
42757 2014-02-12 Richard Biener <rguenther@suse.de>
42758
42759 * vec.c (vec_prefix::calculate_allocation): Move as
42760 inline variant to vec.h.
42761 (vec_prefix::calculate_allocation_1): New out-of-line version.
42762 * vec.h (vec_prefix::calculate_allocation_1): Declare.
42763 (vec_prefix::m_has_auto_buf): Rename to ...
42764 (vec_prefix::m_using_auto_storage): ... this.
42765 (vec_prefix::calculate_allocation): Inline the easy cases
42766 and dispatch to calculate_allocation_1 which doesn't need the
42767 prefix address.
42768 (va_heap::reserve): Use gcc_checking_assert.
42769 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
42770 m_using_auto_storage.
42771 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
42772 member and adjust.
42773 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
42774 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
42775 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
42776
42777 2014-02-12 Richard Biener <rguenther@suse.de>
42778
42779 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
42780 when we found a dependence.
42781
42782 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
42783
42784 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
42785 common code...
42786 (maybe_fold_stmt): ... into this new function.
42787 * omp-low.c (lower_omp): Update comment.
42788
42789 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
42790 last use.
42791
42792 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
42793 dereference.
42794
42795 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
42796
42797 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
42798 identifiers in comments.
42799 (cortexa53_extra_costs): Likewise.
42800 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
42801 (cortexa7_extra_costs): Likewise.
42802 (cortexa12_extra_costs): Likewise.
42803 (cortexa15_extra_costs): Likewise.
42804 (v7m_extra_costs): Likewise.
42805
42806 2014-02-12 Richard Biener <rguenther@suse.de>
42807
42808 PR middle-end/60092
42809 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
42810 of posix_memalign being successful.
42811 (lower_stmt): Restrict lowering of posix_memalign to when
42812 -ftree-bit-ccp is enabled.
42813
42814 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
42815
42816 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
42817 arg_loc.
42818 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
42819
42820 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
42821
42822 PR rtl-optimization/60116
42823 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
42824 other_insn once the combination has been validated.
42825
42826 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
42827
42828 PR lto/59468
42829 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
42830 and wrapper.
42831 * ipa-devirt.c: Include demangle.h
42832 (odr_violation_reported): New static variable.
42833 (add_type_duplicate): Update odr_violations.
42834 (maybe_record_node): Add completep parameter; update it.
42835 (record_target_from_binfo): Add COMPLETEP parameter;
42836 update it as needed.
42837 (possible_polymorphic_call_targets_1): Likewise.
42838 (struct polymorphic_call_target_d): Add nonconstruction_targets;
42839 rename FINAL to COMPLETE.
42840 (record_targets_from_bases): Sanity check we found the binfo;
42841 fix COMPLETEP updating.
42842 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
42843 parameter, fix computing of COMPLETEP.
42844 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
42845 at LTO time do demangling.
42846 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
42847 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
42848 parameter.
42849 (gimple_get_virt_method_for_binfo): Likewise.
42850 * gimple-fold.h (gimple_get_virt_method_for_binfo,
42851 gimple_get_virt_method_for_vtable): Update prototypes.
42852
42853 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
42854
42855 PR target/49008
42856 * genautomata.c (add_presence_absence): Fix typo with
42857 {final_}presence_list.
42858
42859 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
42860
42861 PR target/60137
42862 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
42863 for VSX/Altivec vectors that land in GPR registers.
42864
42865 2014-02-11 Richard Henderson <rth@redhat.com>
42866 Jakub Jelinek <jakub@redhat.com>
42867
42868 PR debug/59776
42869 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
42870 around drhs if type conversion to lacc->type is not useless.
42871
42872 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42873
42874 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
42875 tuning struct.
42876 (cortex-a57.cortex-a53): Likewise.
42877 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
42878
42879 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42880
42881 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
42882 arm_restrict_it.
42883
42884 2014-02-11 Renlin Li <Renlin.Li@arm.com>
42885
42886 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
42887 add_options_for_arm_vfp3.
42888
42889 2014-02-11 Jeff Law <law@redhat.com>
42890
42891 PR middle-end/54041
42892 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
42893 object with an undesirable mode.
42894
42895 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
42896
42897 PR libgomp/60107
42898 * config/i386/sol2-9.h: New file.
42899 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
42900 *-*-solaris2.9*): Use it.
42901
42902 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
42903
42904 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
42905 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
42906
42907 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
42908
42909 * config/microblaze/microblaze.c: Extend mcpu version format
42910
42911 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
42912
42913 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
42914
42915 2014-02-10 Richard Henderson <rth@redhat.com>
42916
42917 PR target/59927
42918 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
42919 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
42920 ms-abi vs -mno-accumulate-outgoing-args.
42921 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
42922 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
42923 respect to ms-abi.
42924
42925 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
42926
42927 PR middle-end/60080
42928 * cfgexpand.c (expand_asm_operands): Attach source location to
42929 ASM_INPUT rtx objects.
42930 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
42931
42932 2014-02-10 Nick Clifton <nickc@redhat.com>
42933
42934 * config/mn10300/mn10300.c (popcount): New function.
42935 (mn10300_expand_prologue): Include saved registers in stack usage
42936 count.
42937
42938 2014-02-10 Jeff Law <law@redhat.com>
42939
42940 PR middle-end/52306
42941 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
42942 when changing the SET_DEST of a prior insn to avoid an input reload.
42943
42944 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
42945
42946 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
42947 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
42948 -mcall-openbsd, or -mcall-linux.
42949 (CC1_ENDIAN_BIG_SPEC): Remove.
42950 (CC1_ENDIAN_LITTLE_SPEC): Remove.
42951 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
42952 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
42953 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
42954 and %cc1_endian_default.
42955 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
42956
42957 2014-02-10 Richard Biener <rguenther@suse.de>
42958
42959 PR tree-optimization/60115
42960 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
42961 MEM_REF handling. Properly verify that the accesses are not
42962 out of the objects bound.
42963
42964 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42965
42966 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
42967 coretex to cortex.
42968
42969 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
42970
42971 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
42972 proper constants and fix formatting.
42973 (possible_polymorphic_call_targets): Fix formatting.
42974
42975 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
42976 Ilya Tocar <ilya.tocar@intel.com>
42977
42978 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
42979 (_mm512_loadu_epi32): Renamed into...
42980 (_mm512_loadu_si512): This.
42981 (_mm512_storeu_epi32): Renamed into...
42982 (_mm512_storeu_si512): This.
42983 (_mm512_maskz_ceil_ps): Removed.
42984 (_mm512_maskz_ceil_pd): Ditto.
42985 (_mm512_maskz_floor_ps): Ditto.
42986 (_mm512_maskz_floor_pd): Ditto.
42987 (_mm512_floor_round_ps): Ditto.
42988 (_mm512_floor_round_pd): Ditto.
42989 (_mm512_ceil_round_ps): Ditto.
42990 (_mm512_ceil_round_pd): Ditto.
42991 (_mm512_mask_floor_round_ps): Ditto.
42992 (_mm512_mask_floor_round_pd): Ditto.
42993 (_mm512_mask_ceil_round_ps): Ditto.
42994 (_mm512_mask_ceil_round_pd): Ditto.
42995 (_mm512_maskz_floor_round_ps): Ditto.
42996 (_mm512_maskz_floor_round_pd): Ditto.
42997 (_mm512_maskz_ceil_round_ps): Ditto.
42998 (_mm512_maskz_ceil_round_pd): Ditto.
42999 (_mm512_expand_pd): Ditto.
43000 (_mm512_expand_ps): Ditto.
43001 * config/i386/i386.c (ix86_builtins): Remove
43002 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
43003 (bdesc_args): Ditto.
43004 * config/i386/predicates.md (const1256_operand): New.
43005 (const_1_to_2_operand): Ditto.
43006 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
43007 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
43008 (*avx512pf_gatherpf<mode>sf): Ditto.
43009 (avx512pf_gatherpf<mode>df): Ditto.
43010 (*avx512pf_gatherpf<mode>df_mask): Ditto.
43011 (*avx512pf_gatherpf<mode>df): Ditto.
43012 (avx512pf_scatterpf<mode>sf): Ditto.
43013 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
43014 (*avx512pf_scatterpf<mode>sf): Ditto.
43015 (avx512pf_scatterpf<mode>df): Ditto.
43016 (*avx512pf_scatterpf<mode>df_mask): Ditto.
43017 (*avx512pf_scatterpf<mode>df): Ditto.
43018 (avx512f_expand<mode>): Removed.
43019 (<shift_insn><mode>3<mask_name>): Change predicate type.
43020
43021 2014-02-08 Jakub Jelinek <jakub@redhat.com>
43022
43023 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
43024 not at the end of datarefs vector use ordered_remove to avoid
43025 reordering datarefs vector.
43026
43027 PR c/59984
43028 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
43029 mark local addressable non-static vars as GOVD_PRIVATE
43030 instead of GOVD_LOCAL.
43031 * omp-low.c (lower_omp_for): Move gimple_bind_vars
43032 and BLOCK_VARS of gimple_bind_block to new_stmt rather
43033 than copying them.
43034
43035 PR middle-end/60092
43036 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
43037 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
43038 assume_aligned or alloc_align attributes.
43039 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
43040 arguments. Handle also assume_aligned and alloc_align attributes.
43041 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
43042 calls to functions with assume_aligned or alloc_align attributes.
43043 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
43044
43045 2014-02-08 Terry Guo <terry.guo@arm.com>
43046
43047 * doc/invoke.texi: Document ARM -march=armv7e-m.
43048
43049 2014-02-08 Jakub Jelinek <jakub@redhat.com>
43050
43051 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
43052 flag on __cilkrts_rethrow builtin.
43053
43054 PR ipa/60026
43055 * ipa-cp.c (determine_versionability): Fail at -O0
43056 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
43057 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
43058
43059 Revert:
43060 2014-02-04 Jakub Jelinek <jakub@redhat.com>
43061
43062 PR ipa/60026
43063 * tree-inline.c (copy_forbidden): Fail for
43064 __attribute__((optimize (0))) functions.
43065
43066 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
43067
43068 * varpool.c: Include pointer-set.h.
43069 (varpool_remove_unreferenced_decls): Variables in other partitions
43070 will not be output; be however careful to not lose information
43071 about partitioning.
43072
43073 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
43074
43075 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
43076 lookup in the vtable constructor.
43077
43078 2014-02-07 Jeff Law <law@redhat.com>
43079
43080 PR target/40977
43081 * config/m68k/m68k.md (ashldi_extsi): Turn into a
43082 define_insn_and_split.
43083
43084 * ipa-inline.c (inline_small_functions): Fix typos.
43085
43086 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
43087
43088 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
43089 (s390_can_use_return_insn): Declare.
43090 * config/s390/s390.h (EPILOGUE_USES): Define.
43091 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
43092 instructions.
43093 (s390_chunkify_start): Handle return JUMP_LABELs.
43094 (s390_early_mach): Emit a main_pool instruction on the entry edge.
43095 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
43096 (s390_can_use_return_insn): New functions.
43097 (s390_fix_long_loop_prediction): Handle conditional returns.
43098 (TARGET_SET_UP_BY_PROLOGUE): Define.
43099 * config/s390/s390.md (ANY_RETURN): New code iterator.
43100 (*creturn, *csimple_return, return, simple_return): New patterns.
43101
43102 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
43103
43104 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
43105 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
43106 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
43107 REG_CFA_RESTORE list when deciding not to restore a register.
43108
43109 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
43110
43111 * config/s390/s390.c: Include tree-pass.h and context.h.
43112 (s390_early_mach): New function, split out from...
43113 (s390_emit_prologue): ...here.
43114 (pass_data_s390_early_mach): New pass structure.
43115 (pass_s390_early_mach): New class.
43116 (s390_option_override): Create and register early_mach pass.
43117 Move to end of file.
43118
43119 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
43120
43121 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
43122 to match for the exit block.
43123
43124 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43125
43126 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
43127 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
43128 Reject misaligned operands.
43129
43130 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43131
43132 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
43133
43134 2014-02-07 Richard Biener <rguenther@suse.de>
43135
43136 PR middle-end/60092
43137 * gimple-low.c (lower_builtin_posix_memalign): New function.
43138 (lower_stmt): Call it to lower posix_memalign in a way
43139 to make alignment info accessible.
43140
43141 2014-02-07 Jakub Jelinek <jakub@redhat.com>
43142
43143 PR c++/60082
43144 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
43145 __builtin_setjmp_receiver.
43146
43147 2014-02-07 Richard Biener <rguenther@suse.de>
43148
43149 PR middle-end/60092
43150 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
43151 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
43152 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
43153 Handle BUILT_IN_POSIX_MEMALIGN.
43154 (find_func_clobbers): Likewise.
43155 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
43156 (call_may_clobber_ref_p_1): Likewise.
43157
43158 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
43159
43160 PR ipa/59918
43161 * ipa-devirt.c (record_target_from_binfo): Remove overactive
43162 sanity check.
43163
43164 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
43165
43166 PR ipa/59469
43167 * lto-cgraph.c (lto_output_node): Use
43168 symtab_get_symbol_partitioning_class.
43169 (lto_output_varpool_node): likewise.
43170 (symtab_get_symbol_partitioning_class): Move here from
43171 lto/lto-partition.c
43172 * cgraph.h (symbol_partitioning_class): Likewise.
43173 (symtab_get_symbol_partitioning_class): Declare.
43174
43175 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
43176
43177 * ggc.h (ggc_internal_cleared_alloc): New macro.
43178 * vec.h (vec_safe_copy): Handle memory stats.
43179 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
43180 * target-globals.c (save_target_globals): Likewise.
43181
43182 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
43183
43184 PR target/60077
43185 * expr.c (emit_move_resolve_push): Export; be bit more selective
43186 on when to clear alias set.
43187 * expr.h (emit_move_resolve_push): Declare.
43188 * function.h (struct function): Add tail_call_marked.
43189 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
43190 * config/i386/i386-protos.h (ix86_expand_push): Remove.
43191 * config/i386/i386.md (TImode move expander): De not call
43192 ix86_expand_push.
43193 (FP push expanders): Preserve memory attributes.
43194 * config/i386/sse.md (push<mode>1): Remove.
43195 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
43196 (ix86_expand_push): Remove.
43197 * config/i386/mmx.md (push<mode>1): Remove.
43198
43199 2014-02-06 Jakub Jelinek <jakub@redhat.com>
43200
43201 PR rtl-optimization/60030
43202 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
43203 lopart with paradoxical subreg before shifting it up by hprec.
43204
43205 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43206
43207 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
43208 Remove extra newline at end of file.
43209 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
43210 (arm_issue_rate): Handle cortexa57.
43211 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
43212 (cortex-a57.cortex-a53): Likewise.
43213
43214 2014-02-06 Jakub Jelinek <jakub@redhat.com>
43215
43216 PR target/59575
43217 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
43218 don't record in REG_FRAME_RELATED_EXPR registers not set in that
43219 bitmask.
43220 (arm_expand_prologue): Adjust all callers.
43221 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
43222 info, registers also at the lowest numbered registers side. Use
43223 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
43224 XEXP.
43225
43226 PR debug/59992
43227 * var-tracking.c (adjust_mems): Before adding a SET to
43228 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
43229
43230 2014-02-06 Alan Modra <amodra@gmail.com>
43231
43232 PR target/60032
43233 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
43234 change SDmode to DDmode when lra_in_progress.
43235
43236 2014-02-06 Jakub Jelinek <jakub@redhat.com>
43237
43238 PR middle-end/59150
43239 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
43240 free_data_ref on the dr first, and before goto again also set dr
43241 to the next dr. For simd_lane_access, free old datarefs[i] before
43242 overwriting it. For get_vectype_for_scalar_type failure, don't
43243 free_data_ref if simd_lane_access.
43244
43245 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
43246
43247 PR target/60062
43248 * tree.h (opts_for_fn): New inline function.
43249 (opt_for_fn): Define.
43250 * config/i386/i386.c (ix86_function_regparm): Use
43251 opt_for_fn (decl, optimize) instead of optimize.
43252
43253 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
43254
43255 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
43256 for SYMBOL_REF in large memory model.
43257
43258 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43259
43260 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
43261 and crypto support.
43262 (cortex-a57): Likewise.
43263 (cortex-a57.cortex-a53): Likewise.
43264
43265 2014-02-06 Yury Gribov <y.gribov@samsung.com>
43266 Kugan Vivekanandarajah <kuganv@linaro.org>
43267
43268 * config/arm/arm.c (arm_vector_alignment_reachable): Check
43269 unaligned_access.
43270 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
43271
43272 2014-02-06 Richard Biener <rguenther@suse.de>
43273
43274 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
43275 set_loop_copy and initialize_original_copy_tables.
43276
43277 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
43278
43279 * config/aarch64/aarch64-simd.md
43280 (aarch64_ashr_simddi): Change QI to SI.
43281
43282 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
43283 Jakub Jelinek <jakub@redhat.com>
43284
43285 PR middle-end/60013
43286 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
43287 of the dataflow.
43288
43289 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43290
43291 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
43292 CODE_FOR_altivec_vpku[hw]um to
43293 CODE_FOR_altivec_vpku[hw]um_direct.
43294 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
43295 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
43296 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
43297 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
43298
43299 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43300
43301 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
43302 generation for -maltivec=be.
43303 (altivec_vsumsws): Simplify redundant test.
43304
43305 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43306
43307 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
43308 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
43309 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
43310 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
43311 gen_altivec_vpkuwum.
43312 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
43313 BYTES_BIG_ENDIAN.
43314 (altivec_vpks<VI_char>ss): Likewise.
43315 (altivec_vpks<VI_char>us): Likewise.
43316 (altivec_vpku<VI_char>us): Likewise.
43317 (altivec_vpku<VI_char>um): Likewise.
43318 (altivec_vpku<VI_char>um_direct): New (copy of
43319 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
43320 internal use).
43321 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
43322 target is little endian and -maltivec=be is not specified.
43323 (*altivec_vupkhs<VU_char>_direct): New (copy of
43324 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
43325 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
43326 target is little endian and -maltivec=be is not specified.
43327 (*altivec_vupkls<VU_char>_direct): New (copy of
43328 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
43329 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
43330 little endian and -maltivec=be is not specified.
43331 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
43332 little endian and -maltivec=be is not specified.
43333
43334 2014-02-05 Richard Henderson <rth@redhat.com>
43335
43336 PR debug/52727
43337 * combine-stack-adj.c: Revert r206943.
43338 * sched-int.h (struct deps_desc): Add last_args_size.
43339 * sched-deps.c (init_deps): Initialize it.
43340 (sched_analyze_insn): Add OUTPUT dependencies between insns that
43341 contain REG_ARGS_SIZE notes.
43342
43343 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
43344
43345 * lto-cgraph.c (asm_nodes_output): Make global.
43346 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
43347 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
43348 (driver_handle_option): Handle OPT_fwpa.
43349
43350 2014-02-05 Jakub Jelinek <jakub@redhat.com>
43351
43352 PR ipa/59947
43353 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
43354 a comment typo and formatting issue. If odr_hash hasn't been
43355 created, return vNULL and set *completep to false.
43356
43357 PR middle-end/57499
43358 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
43359 bb with no successors.
43360
43361 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
43362
43363 PR target/59718
43364 * doc/invoke.texi (-march): Clarify documentation for ARM.
43365 (-mtune): Likewise.
43366 (-mcpu): Likewise.
43367
43368 2014-02-05 Richard Biener <rguenther@suse.de>
43369
43370 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
43371 when not vectorizing because of too many alias checks.
43372 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
43373 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
43374
43375 2014-02-05 Nick Clifton <nickc@redhat.com>
43376
43377 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
43378 accept extended registers in any mode when compiling for the MN10300.
43379
43380 2014-02-05 Yury Gribov <y.gribov@samsung.com>
43381
43382 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
43383 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
43384 sanitization attributes.
43385 (can_inline_edge_p): Likewise.
43386 (sanitize_attrs_match_for_inline_p): New function.
43387
43388 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
43389
43390 * ipa-prop.c (detect_type_change): Shor circuit testing of
43391 type changes on THIS pointer.
43392
43393 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
43394
43395 PR target/59777
43396 * config/pa/pa.c (legitimize_tls_address): Return original address
43397 if not passed a SYMBOL_REF rtx.
43398 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
43399 addresses.
43400 (pa_emit_move_sequence): Simplify TLS source operands.
43401 (pa_legitimate_constant_p): Reject all TLS constants.
43402 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
43403 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
43404
43405 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
43406
43407 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
43408 groups when we know they are controlled by LTO.
43409 * varasm.c (default_binds_local_p_1): If object is in other partition,
43410 it will be resolved locally.
43411
43412 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
43413
43414 * config/host-linux.c (linux_gt_pch_use_address): Don't
43415 use SSIZE_MAX because it is not always defined.
43416
43417 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
43418
43419 PR bootstrap/59913
43420 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
43421 threshold for pseudo splitting.
43422 (update_ebb_live_info): Process call argument hard registers and
43423 hard registers from insn definition too.
43424 (max_small_class_regs_num): New constant.
43425 (inherit_in_ebb): Update live hard regs through EBBs. Update
43426 reloads_num only for small register classes. Don't split for
43427 outputs of jumps.
43428
43429 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
43430
43431 PR ipa/60058
43432 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
43433 is non-null.
43434
43435 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
43436
43437 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
43438 visibility is safe.
43439
43440 2014-02-04 Marek Polacek <polacek@redhat.com>
43441
43442 * gdbinit.in (pel): Define.
43443
43444 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
43445
43446 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
43447 behavior.
43448
43449 2014-02-04 Richard Biener <rguenther@suse.de>
43450
43451 PR lto/59723
43452 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
43453 in function context local.
43454 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
43455 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
43456 similar to LTO_imported_decl_ref.
43457
43458 2014-02-04 Jakub Jelinek <jakub@redhat.com>
43459
43460 PR tree-optimization/60002
43461 * cgraphclones.c (build_function_decl_skip_args): Clear
43462 DECL_LANG_SPECIFIC.
43463
43464 PR tree-optimization/60023
43465 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
43466 false to gsi_replace.
43467 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
43468 has been in some EH region and vec_stmt could throw, add
43469 vec_stmt into the same EH region.
43470 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
43471 has no lhs, ignore it.
43472 * internal-fn.c (expand_MASK_LOAD): Likewise.
43473
43474 PR ipa/60026
43475 * tree-inline.c (copy_forbidden): Fail for
43476 __attribute__((optimize (0))) functions.
43477
43478 PR other/58712
43479 * omp-low.c (simd_clone_struct_copy): If from->inbranch
43480 is set, copy one less argument.
43481 (expand_simd_clones): Don't subtract clone_info->inbranch
43482 from simd_clone_struct_alloc argument.
43483
43484 PR rtl-optimization/57915
43485 * recog.c (simplify_while_replacing): If all unary/binary/relational
43486 operation arguments are constant, attempt to simplify those.
43487
43488 PR middle-end/59261
43489 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
43490 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
43491
43492 2014-02-04 Richard Biener <rguenther@suse.de>
43493
43494 PR tree-optimization/60012
43495 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
43496 TBAA disambiguation to all DDRs.
43497
43498 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
43499
43500 PR target/59788
43501 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
43502 (LINK_SPEC): Use it for -shared, -shared-libgcc.
43503
43504 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
43505
43506 PR ipa/59882
43507 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
43508
43509 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
43510
43511 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
43512 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
43513
43514 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
43515
43516 PR ipa/59831
43517 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
43518 to figure out targets of polymorphic calls with known decl.
43519 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
43520 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
43521 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
43522 (get_polymorphic_call_info): ... here.
43523 (get_polymorphic_call_info_from_invariant): New function.
43524
43525 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
43526
43527 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
43528 lookup via vtable pointer; check for type consistency
43529 and turn inconsitent facts into UNREACHABLE.
43530 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
43531 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
43532 type inconsistent querries; return UNREACHABLE instead.
43533
43534 2014-02-03 Richard Henderson <rth@twiddle.net>
43535
43536 PR tree-opt/59924
43537 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
43538 already processed this node.
43539 (normalize_one_pred_1): Pass along mark_set.
43540 (normalize_one_pred): Create and destroy a pointer_set_t.
43541 (normalize_one_pred_chain): Likewise.
43542
43543 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
43544
43545 PR gcov-profile/58602
43546 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
43547
43548 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
43549
43550 PR ipa/59831
43551 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
43552 -fno-devirtualize; try to devirtualize by the knowledge of
43553 virtual table pointer given by aggregate propagation.
43554 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
43555 (ipa_print_node_jump_functions): Dump also offset that
43556 is relevant for polymorphic calls.
43557 (determine_known_aggregate_parts): Add arg_type parameter; use it
43558 instead of determining the type from pointer type.
43559 (ipa_compute_jump_functions_for_edge): Update call of
43560 determine_known_aggregate_parts.
43561 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
43562 (gimple_get_virt_method_for_binfo): ... here; simplify using
43563 vtable_pointer_value_to_vtable.
43564 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
43565 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
43566 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
43567 (vtable_pointer_value_to_vtable): Break out from ...; handle also
43568 POINTER_PLUS_EXPR.
43569 (vtable_pointer_value_to_binfo): ... here.
43570 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
43571
43572 2014-02-03 Teresa Johnson <tejohnson@google.com>
43573
43574 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
43575 redef of outer loop index variable.
43576
43577 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
43578
43579 PR c++/53017
43580 PR c++/59211
43581 * doc/extend.texi (Function Attributes): Typo.
43582
43583 2014-02-03 Cong Hou <congh@google.com>
43584
43585 PR tree-optimization/60000
43586 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
43587 if the vectorized statement is a store. A store statement can only
43588 appear at the end of pattern statements.
43589
43590 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
43591
43592 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
43593 (ix86_option_override_internal): Default long double to 64-bit for
43594 32-bit Bionic and to 128-bit for 64-bit Bionic.
43595
43596 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
43597 TARGET_LONG_DOUBLE_128 is true.
43598 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
43599
43600 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
43601 (mlong-double-64): Negate -mlong-double-128.
43602 (mlong-double-128): New option.
43603
43604 * config/i386/i386-c.c (ix86_target_macros): Define
43605 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
43606
43607 * doc/invoke.texi: Document -mlong-double-128.
43608
43609 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
43610
43611 PR rtl-optimization/60024
43612 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
43613
43614 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
43615
43616 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
43617
43618 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
43619
43620 PR rtl-optimization/57662
43621 * sel-sched.c (code_motion_path_driver): Do not mark already not
43622 existing blocks in the visiting bitmap.
43623
43624 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
43625
43626 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
43627 on the insn being emitted.
43628
43629 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
43630 Will Deacon <will.deacon@arm.com>
43631
43632 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
43633
43634 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43635
43636 * config/arm/arm-tables.opt: Regenerate.
43637
43638 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43639
43640 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
43641 for vector types other than V16QImode.
43642 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
43643 define_expand, and call altivec_expand_vec_perm_le when producing
43644 code with little endian element order.
43645 (*altivec_vperm_<mode>_internal): New insn having previous
43646 behavior of altivec_vperm_<mode>.
43647 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
43648 altivec_expand_vec_perm_le when producing code with little endian
43649 element order.
43650 (*altivec_vperm_<mode>_uns_internal): New insn having previous
43651 behavior of altivec_vperm_<mode>_uns.
43652
43653 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43654
43655 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
43656 (altivec_vsumsws): Add handling for -maltivec=be with a little
43657 endian target.
43658 (altivec_vsumsws_direct): New.
43659 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
43660 gen_altivec_vsumsws.
43661
43662 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
43663
43664 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
43665 vtable_pointer_value_to_binfo): New functions.
43666 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
43667 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
43668
43669 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
43670
43671 * config/nios2/nios2.md (load_got_register): Initialize GOT
43672 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
43673 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
43674
43675 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
43676
43677 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
43678 preserverd by passthrough, do not propagate the type.
43679
43680 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
43681
43682 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
43683 (mips_atomic_assign_expand_fenv): New function.
43684 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
43685
43686 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
43687
43688 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
43689 (__builtin_mips_set_fcsr): Likewise.
43690 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
43691 MIPS_USI_FTYPE_VOID.
43692 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
43693 (mips16_expand_set_fcsr): Likewise.
43694 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
43695 (mips16_set_fcsr_stub): Likewise.
43696 (mips16_get_fcsr_one_only_stub): New class.
43697 (mips16_set_fcsr_one_only_stub): Likewise.
43698 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
43699 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
43700 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
43701 (hard_float): New availability predicate.
43702 (mips_builtins): Add get_fcsr and set_fcsr.
43703 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
43704 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
43705 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
43706 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
43707 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
43708 patterns.
43709
43710 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
43711
43712 * config/mips/mips.c (mips_one_only_stub): New class.
43713 (mips_need_mips16_rdhwr_p): Replace with...
43714 (mips16_rdhwr_stub): ...this new variable.
43715 (mips16_stub_call_address): New function.
43716 (mips16_rdhwr_one_only_stub): New class.
43717 (mips_expand_thread_pointer): Use mips16_stub_call_address.
43718 (mips_output_mips16_rdhwr): Delete.
43719 (mips_finish_stub): New function.
43720 (mips_code_end): Use it to handle rdhwr stubs.
43721
43722 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
43723
43724 PR target/60017
43725 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
43726 when calculating size of integer atomic types.
43727
43728 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
43729
43730 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
43731
43732 2014-02-01 Jakub Jelinek <jakub@redhat.com>
43733
43734 PR tree-optimization/60003
43735 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
43736 * profile.c (branch_prob): Use gimple_call_builtin_p
43737 to check for BUILT_IN_SETJMP_RECEIVER.
43738 * tree-inline.c (copy_bb): Call notice_special_calls.
43739
43740 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
43741
43742 PR bootstrap/59985
43743 * lra-constraints.c (process_alt_operands): Update reload_sum only
43744 on the first pass.
43745
43746 2014-01-31 Richard Henderson <rth@redhat.com>
43747
43748 PR middle-end/60004
43749 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
43750 until after else_eh is processed.
43751
43752 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
43753
43754 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
43755 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
43756 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
43757 in smmintrin.h, remove them.
43758 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
43759 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
43760 * config/i386/i386.md (ROUND_SAE): Fix value.
43761 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
43762 (const48_operand): New.
43763 * config/i386/subst.md (round), (round_expand): Use
43764 const_4_or_8_to_11_operand.
43765 (round_saeonly), (round_saeonly_expand): Use const48_operand.
43766
43767 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
43768
43769 * config/i386/constraints.md (Yk): Swap meaning with k.
43770 * config/i386/i386.md (movhi_internal): Change Yk to k.
43771 (movqi_internal): Ditto.
43772 (*k<logic><mode>): Ditto.
43773 (*andhi_1): Ditto.
43774 (*andqi_1): Ditto.
43775 (kandn<mode>): Ditto.
43776 (*<code>hi_1): Ditto.
43777 (*<code>qi_1): Ditto.
43778 (kxnor<mode>): Ditto.
43779 (kortestzhi): Ditto.
43780 (kortestchi): Ditto.
43781 (kunpckhi): Ditto.
43782 (*one_cmplhi2_1): Ditto.
43783 (*one_cmplqi2_1): Ditto.
43784 * config/i386/sse.md (): Change k to Yk.
43785 (avx512f_load<mode>_mask): Ditto.
43786 (avx512f_blendm<mode>): Ditto.
43787 (avx512f_store<mode>_mask): Ditto.
43788 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
43789 (avx512f_storedqu<mode>_mask): Ditto.
43790 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
43791 Ditto.
43792 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
43793 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
43794 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
43795 (avx512f_maskcmp<mode>3): Ditto.
43796 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
43797 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
43798 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
43799 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
43800 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
43801 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
43802 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
43803 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
43804 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
43805 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
43806 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
43807 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
43808 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
43809 (vec_extract_lo_<mode>_maskm): Ditto.
43810 (vec_extract_hi_<mode>_maskm): Ditto.
43811 (avx512f_vternlog<mode>_mask): Ditto.
43812 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
43813 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
43814 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
43815 (avx512f_<code>v8div16qi2_mask): Ditto.
43816 (avx512f_<code>v8div16qi2_mask_store): Ditto.
43817 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
43818 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
43819 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
43820 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
43821 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
43822 (*avx512pf_gatherpf<mode>df_mask): Ditto.
43823 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
43824 (*avx512pf_scatterpf<mode>df_mask): Ditto.
43825 (avx512cd_maskb_vec_dupv8di): Ditto.
43826 (avx512cd_maskw_vec_dupv16si): Ditto.
43827 (avx512f_vpermi2var<mode>3_maskz): Ditto.
43828 (avx512f_vpermi2var<mode>3_mask): Ditto.
43829 (avx512f_vpermi2var<mode>3_mask): Ditto.
43830 (avx512f_vpermt2var<mode>3_maskz): Ditto.
43831 (*avx512f_gathersi<mode>): Ditto.
43832 (*avx512f_gathersi<mode>_2): Ditto.
43833 (*avx512f_gatherdi<mode>): Ditto.
43834 (*avx512f_gatherdi<mode>_2): Ditto.
43835 (*avx512f_scattersi<mode>): Ditto.
43836 (*avx512f_scatterdi<mode>): Ditto.
43837 (avx512f_compress<mode>_mask): Ditto.
43838 (avx512f_compressstore<mode>_mask): Ditto.
43839 (avx512f_expand<mode>_mask): Ditto.
43840 * config/i386/subst.md (mask): Change k to Yk.
43841 (mask_scalar_merge): Ditto.
43842 (sd): Ditto.
43843
43844 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
43845
43846 * doc/extend.texi (Vector Extensions): Document ?: in C++.
43847
43848 2014-01-31 Richard Biener <rguenther@suse.de>
43849
43850 PR middle-end/59990
43851 * builtins.c (fold_builtin_memory_op): Make sure to not
43852 use a floating-point mode or a boolean or enumeral type for
43853 the copy operation.
43854
43855 2014-01-30 DJ Delorie <dj@redhat.com>
43856
43857 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
43858 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
43859 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
43860 whenever main() has an epilogue.
43861
43862 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43863
43864 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
43865 unused variable "field".
43866 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
43867 (vsx_mergeh_<mode>): Likewise.
43868 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
43869 (altivec_vmrghh): Likewise.
43870 (altivec_vmrghw): Likewise.
43871 (altivec_vmrglb): Likewise.
43872 (altivec_vmrglh): Likewise.
43873 (altivec_vmrglw): Likewise.
43874 (altivec_vspltb): Add missing uses.
43875 (altivec_vsplth): Likewise.
43876 (altivec_vspltw): Likewise.
43877 (altivec_vspltsf): Likewise.
43878
43879 2014-01-30 Jakub Jelinek <jakub@redhat.com>
43880
43881 PR target/59923
43882 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
43883 frame related instructions.
43884
43885 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
43886
43887 PR rtl-optimization/59959
43888 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
43889 any reload of register whose subreg is invalid.
43890
43891 2014-01-30 Jakub Jelinek <jakub@redhat.com>
43892
43893 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
43894 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
43895 Add missing return type - void.
43896
43897 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43898
43899 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
43900 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
43901 remove element index adjustment for endian (now handled in vsx.md
43902 and altivec.md).
43903 (altivec_expand_vec_perm_const): Use
43904 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
43905 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
43906 (vsx_xxspltw_<mode>): Adjust element index for little endian.
43907 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
43908 define_expand and a new define_insn *altivec_vspltb_internal;
43909 adjust for -maltivec=be on a little endian target.
43910 (altivec_vspltb_direct): New.
43911 (altivec_vsplth): Divide into a define_expand and a new
43912 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
43913 little endian target.
43914 (altivec_vsplth_direct): New.
43915 (altivec_vspltw): Divide into a define_expand and a new
43916 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
43917 little endian target.
43918 (altivec_vspltw_direct): New.
43919 (altivec_vspltsf): Divide into a define_expand and a new
43920 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
43921 a little endian target.
43922
43923 2014-01-30 Richard Biener <rguenther@suse.de>
43924
43925 PR tree-optimization/59993
43926 * tree-ssa-forwprop.c (associate_pointerplus): Check we
43927 can propagate form the earlier stmt and avoid the transform
43928 when the intermediate result is needed.
43929
43930 2014-01-30 Alangi Derick <alangiderick@gmail.com>
43931
43932 * README.Portability: Fix typo.
43933
43934 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
43935
43936 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
43937 comparison_operator with ordered_comparison_operator.
43938
43939 2014-01-30 Nick Clifton <nickc@redhat.com>
43940
43941 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
43942 Rename to mn10300_store_multiple_regs.
43943 * config/mn10300/mn10300.c: Likewise.
43944 * config/mn10300/mn10300.md (store_movm): Fix typo: call
43945 store_multiple_regs.
43946 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
43947 Call mn10300_store_multiple_regs.
43948
43949 2014-01-30 Nick Clifton <nickc@redhat.com>
43950 DJ Delorie <dj@redhat.com>
43951
43952 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
43953 %fp 2 to keep registers after it properly word-aligned.
43954 (rl78_alloc_physical_registers_umul): Handle the case where both
43955 input operands are the same.
43956
43957 2014-01-30 Richard Biener <rguenther@suse.de>
43958
43959 PR tree-optimization/59903
43960 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
43961 check properly.
43962
43963 2014-01-30 Jason Merrill <jason@redhat.com>
43964
43965 PR c++/59633
43966 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
43967
43968 PR c++/59645
43969 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
43970
43971 2014-01-30 Richard Biener <rguenther@suse.de>
43972
43973 PR tree-optimization/59951
43974 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
43975
43976 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
43977
43978 PR target/59784
43979 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
43980 SFmode to DFmode case.
43981
43982 2014-01-29 DJ Delorie <dj@redhat.com>
43983
43984 * config/msp430/msp430.opt (-minrt): New.
43985 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
43986 if -minrt given.
43987 (ENDFILE_SPEC): Likewise.
43988
43989 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
43990
43991 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
43992 (estimate_function_body_sizes): Use it.
43993
43994 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
43995
43996 PR c++/58561
43997 * dwarf2out.c (is_cxx_auto): New.
43998 (is_base_type): Use it.
43999 (gen_type_die_with_usage): Likewise.
44000
44001 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44002
44003 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
44004 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
44005 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
44006 -maltivec=be with LE targets.
44007 (vsx_mergeh_<mode>): Likewise.
44008 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
44009 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
44010 (altivec_vmrghb): Replace with define_expand and new
44011 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
44012 (altivec_vmrghb_direct): New define_insn.
44013 (altivec_vmrghh): Replace with define_expand and new
44014 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
44015 (altivec_vmrghh_direct): New define_insn.
44016 (altivec_vmrghw): Replace with define_expand and new
44017 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
44018 (altivec_vmrghw_direct): New define_insn.
44019 (*altivec_vmrghsf): Adjust for endianness.
44020 (altivec_vmrglb): Replace with define_expand and new
44021 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
44022 (altivec_vmrglb_direct): New define_insn.
44023 (altivec_vmrglh): Replace with define_expand and new
44024 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
44025 (altivec_vmrglh_direct): New define_insn.
44026 (altivec_vmrglw): Replace with define_expand and new
44027 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
44028 (altivec_vmrglw_direct): New define_insn.
44029 (*altivec_vmrglsf): Adjust for endianness.
44030 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
44031 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
44032 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
44033 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
44034 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
44035 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
44036 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
44037 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
44038
44039 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
44040
44041 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
44042 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
44043 whitespace.
44044
44045 2014-01-29 Richard Biener <rguenther@suse.de>
44046
44047 PR tree-optimization/58742
44048 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
44049 associate_pointerplus_align.
44050 (associate_pointerplus_diff): New function.
44051 (associate_pointerplus): Likewise. Call associate_pointerplus_align
44052 and associate_pointerplus_diff.
44053
44054 2014-01-29 Richard Biener <rguenther@suse.de>
44055
44056 * lto-streamer.h (LTO_major_version): Bump to 3.
44057 (LTO_minor_version): Reset to 0.
44058
44059 2014-01-29 Renlin Li <Renlin.Li@arm.com>
44060
44061 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
44062 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
44063 (arm_file_start): Generate correct asm header for armv7ve.
44064 * config/arm/bpabi.h: Add multilib support for armv7ve.
44065 * config/arm/driver-arm.c: Change the architectures of cortex-a7
44066 and cortex-a15 to armv7ve.
44067 * config/arm/t-aprofile: Add multilib support for armv7ve.
44068 * doc/invoke.texi: Document -march=armv7ve.
44069
44070 2014-01-29 Richard Biener <rguenther@suse.de>
44071
44072 PR tree-optimization/58742
44073 * tree-ssa-forwprop.c (associate_plusminus): Return true
44074 if we changed sth, defer EH cleanup to ...
44075 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
44076 (simplify_mult): New function.
44077
44078 2014-01-29 Jakub Jelinek <jakub@redhat.com>
44079
44080 PR middle-end/59917
44081 PR tree-optimization/59920
44082 * tree.c (build_common_builtin_nodes): Remove
44083 __builtin_setjmp_dispatcher initialization.
44084 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
44085 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
44086 instead of gsi_after_labels + manually skipping debug stmts.
44087 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
44088 ignore bbs with IFN_ABNORMAL_DISPATCHER.
44089 * tree-inline.c (copy_edges_for_bb): Remove
44090 can_make_abnormal_goto argument, instead add abnormal_goto_dest
44091 argument. Ignore computed_goto_p stmts. Don't call
44092 make_abnormal_goto_edges. If a call might need abnormal edges
44093 for non-local gotos, see if it already has an edge to
44094 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
44095 with true argument, don't do anything then, otherwise add
44096 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
44097 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
44098 caller.
44099 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
44100 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
44101 (lower_stmt): Don't set data->calls_builtin_setjmp.
44102 (lower_builtin_setjmp): Adjust comment.
44103 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
44104 * tree-cfg.c (found_computed_goto): Remove.
44105 (factor_computed_gotos): Remove.
44106 (make_goto_expr_edges): Return bool, true for computed gotos.
44107 Don't call make_abnormal_goto_edges.
44108 (build_gimple_cfg): Don't set found_computed_goto, don't call
44109 factor_computed_gotos.
44110 (computed_goto_p): No longer static.
44111 (make_blocks): Don't set found_computed_goto.
44112 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
44113 (make_edges): If make_goto_expr_edges returns true, push bb
44114 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
44115 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
44116 vector. Record mapping between bbs and OpenMP regions if there
44117 are any, adjust make_gimple_omp_edges caller. Call
44118 handle_abnormal_edges.
44119 (make_abnormal_goto_edges): Remove.
44120 * tree-cfg.h (make_abnormal_goto_edges): Remove.
44121 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
44122 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
44123 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
44124 * internal-fn.def (ABNORMAL_DISPATCHER): New.
44125 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
44126 filling *region also set *region_idx to (*region)->entry->index.
44127
44128 PR other/58712
44129 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
44130 For REGs set ORIGINAL_REGNO.
44131
44132 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
44133
44134 * doc/md.texi: Mention that a target shouldn't implement
44135 vec_widen_(s|u)mul_even/odd pair if it is less efficient
44136 than hi/lo pair.
44137
44138 2014-01-29 Jakub Jelinek <jakub@redhat.com>
44139
44140 PR tree-optimization/59594
44141 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
44142 a copy of the datarefs vector rather than the vector itself.
44143
44144 2014-01-28 Jason Merrill <jason@redhat.com>
44145
44146 PR c++/53756
44147 * dwarf2out.c (auto_die): New static.
44148 (gen_type_die_with_usage): Handle C++1y 'auto'.
44149 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
44150 on definition.
44151
44152 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
44153
44154 PR target/59672
44155 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
44156 (SPEC_X32): Likewise.
44157 (SPEC_64): Likewise.
44158 * config/i386/i386.c (ix86_option_override_internal): Turn off
44159 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
44160 for TARGET_16BIT.
44161 (x86_file_start): Output .code16gcc for TARGET_16BIT.
44162 * config/i386/i386.h (TARGET_16BIT): New macro.
44163 (TARGET_16BIT_P): Likewise.
44164 * config/i386/i386.opt: Add m16.
44165 * doc/invoke.texi: Document -m16.
44166
44167 2014-01-28 Jakub Jelinek <jakub@redhat.com>
44168
44169 PR preprocessor/59935
44170 * input.c (location_get_source_line): Bail out on when line number
44171 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
44172
44173 2014-01-28 Richard Biener <rguenther@suse.de>
44174
44175 PR tree-optimization/58742
44176 * tree-ssa-forwprop.c (associate_plusminus): Handle
44177 pointer subtraction of the form (T)(P + A) - (T)P.
44178
44179 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44180
44181 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
44182 at const_int_cost.
44183
44184 2014-01-28 Richard Biener <rguenther@suse.de>
44185
44186 Revert
44187 2014-01-28 Richard Biener <rguenther@suse.de>
44188
44189 PR rtl-optimization/45364
44190 PR rtl-optimization/59890
44191 * var-tracking.c (local_get_addr_clear_given_value): Handle
44192 already cleared slot.
44193 (val_reset): Handle not allocated local_get_addr_cache.
44194 (vt_find_locations): Use post-order on the inverted CFG.
44195
44196 2014-01-28 Richard Biener <rguenther@suse.de>
44197
44198 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
44199
44200 2014-01-28 Richard Biener <rguenther@suse.de>
44201
44202 PR rtl-optimization/45364
44203 PR rtl-optimization/59890
44204 * var-tracking.c (local_get_addr_clear_given_value): Handle
44205 already cleared slot.
44206 (val_reset): Handle not allocated local_get_addr_cache.
44207 (vt_find_locations): Use post-order on the inverted CFG.
44208
44209 2014-01-28 Alan Modra <amodra@gmail.com>
44210
44211 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
44212 * configure.ac <recursive call for build != host>: Define
44213 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
44214 and LD_FOR_BUILD too.
44215 * configure: Regenerate.
44216
44217 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
44218
44219 * config/i386/i386.c (get_builtin_code_for_version): Separate
44220 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
44221 Broadwell from Haswell.
44222
44223 2014-01-27 Steve Ellcey <sellcey@mips.com>
44224
44225 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
44226 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
44227 * config/mips/mips.c (mips_option_override): Change setting
44228 of TARGET_DSP.
44229 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
44230 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
44231 Change from Mask to Var.
44232
44233 2014-01-27 Jeff Law <law@redhat.com>
44234
44235 * ipa-inline.c (inline_small_functions): Fix typo.
44236
44237 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
44238
44239 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
44240 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
44241 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
44242 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
44243 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
44244 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
44245 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
44246 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
44247 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
44248 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
44249 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
44250 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
44251 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
44252 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
44253 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
44254 (_mm512_storeu_epi64): Ditto.
44255 (_mm512_cmpge_epi32_mask): Ditto.
44256 (_mm512_cmpge_epu32_mask): Ditto.
44257 (_mm512_cmpge_epi64_mask): Ditto.
44258 (_mm512_cmpge_epu64_mask): Ditto.
44259 (_mm512_cmple_epi32_mask): Ditto.
44260 (_mm512_cmple_epu32_mask): Ditto.
44261 (_mm512_cmple_epi64_mask): Ditto.
44262 (_mm512_cmple_epu64_mask): Ditto.
44263 (_mm512_cmplt_epi32_mask): Ditto.
44264 (_mm512_cmplt_epu32_mask): Ditto.
44265 (_mm512_cmplt_epi64_mask): Ditto.
44266 (_mm512_cmplt_epu64_mask): Ditto.
44267 (_mm512_cmpneq_epi32_mask): Ditto.
44268 (_mm512_cmpneq_epu32_mask): Ditto.
44269 (_mm512_cmpneq_epi64_mask): Ditto.
44270 (_mm512_cmpneq_epu64_mask): Ditto.
44271 (_mm512_expand_pd): Ditto.
44272 (_mm512_expand_ps): Ditto.
44273 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
44274 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
44275 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
44276 * config/i386/i386.c (ix86_builtins): Add
44277 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
44278 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
44279 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
44280 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
44281 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
44282 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
44283 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
44284 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
44285 IX86_BUILTIN_PMOVUSQW512_MEM.
44286 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
44287 __builtin_ia32_pmovsqd512mem_mask,
44288 __builtin_ia32_pmovqd512mem_mask,
44289 __builtin_ia32_pmovusqw512mem_mask,
44290 __builtin_ia32_pmovsqw512mem_mask,
44291 __builtin_ia32_pmovqw512mem_mask,
44292 __builtin_ia32_pmovusdw512mem_mask,
44293 __builtin_ia32_pmovsdw512mem_mask,
44294 __builtin_ia32_pmovdw512mem_mask,
44295 __builtin_ia32_pmovqb512mem_mask,
44296 __builtin_ia32_pmovusqb512mem_mask,
44297 __builtin_ia32_pmovsqb512mem_mask,
44298 __builtin_ia32_pmovusdb512mem_mask,
44299 __builtin_ia32_pmovsdb512mem_mask,
44300 __builtin_ia32_pmovdb512mem_mask.
44301 (bdesc_args): Add __builtin_ia32_expanddf512,
44302 __builtin_ia32_expandsf512.
44303 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
44304 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
44305 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
44306 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
44307 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
44308 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
44309 (avx512f_<code>v8div16qi2_mask_store): This.
44310 (avx512f_expand<mode>): New.
44311
44312 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
44313
44314 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
44315 New.
44316 (_mm512_mask_prefetch_i64gather_pd): Ditto.
44317 (_mm512_prefetch_i32scatter_pd): Ditto.
44318 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
44319 (_mm512_prefetch_i64scatter_pd): Ditto.
44320 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
44321 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
44322 (_mm512_mask_prefetch_i64gather_ps): Ditto.
44323 (_mm512_prefetch_i32scatter_ps): Ditto.
44324 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
44325 (_mm512_prefetch_i64scatter_ps): Ditto.
44326 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
44327 * config/i386/i386-builtin-types.def: Define
44328 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
44329 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
44330 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
44331 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
44332 IX86_BUILTIN_SCATTERPFQPD.
44333 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
44334 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
44335 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
44336 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
44337 __builtin_ia32_scatterpfqps.
44338 (ix86_expand_builtin): Expand new built-ins.
44339 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
44340 fix memory access data type.
44341 (*avx512pf_gatherpf<mode>_mask): Ditto.
44342 (*avx512pf_gatherpf<mode>): Ditto.
44343 (avx512pf_scatterpf<mode>): Ditto.
44344 (*avx512pf_scatterpf<mode>_mask): Ditto.
44345 (*avx512pf_scatterpf<mode>): Ditto.
44346 (GATHER_SCATTER_SF_MEM_MODE): New.
44347 (avx512pf_gatherpf<mode>df): Ditto.
44348 (*avx512pf_gatherpf<mode>df_mask): Ditto.
44349 (*avx512pf_scatterpf<mode>df): Ditto.
44350
44351 2014-01-27 Jakub Jelinek <jakub@redhat.com>
44352
44353 PR bootstrap/59934
44354 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
44355 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
44356 reached.
44357
44358 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
44359
44360 * common/config/arm/arm-common.c
44361 (arm_rewrite_mcpu): Handle multiple names.
44362 * config/arm/arm.h
44363 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
44364
44365 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
44366
44367 * gimple-builder.h (create_gimple_tmp): Delete.
44368
44369 2014-01-27 Christian Bruel <christian.bruel@st.com>
44370
44371 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
44372 words comparisons.
44373
44374 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
44375
44376 * config/pa/pa.md (call): Generate indirect long calls to non-local
44377 functions when outputing 32-bit code.
44378 (call_value): Likewise except for special call to buggy powf function.
44379
44380 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
44381 portable runtime and PIC indirect calls.
44382 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
44383 and PIC call sequences. Use ldo instead of blr to set return register
44384 in PIC call sequence.
44385
44386 2014-01-25 Walter Lee <walt@tilera.com>
44387
44388 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
44389 avoid clobbering a live register.
44390
44391 2014-01-25 Walter Lee <walt@tilera.com>
44392
44393 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
44394 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
44395 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
44396 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
44397
44398 2014-01-25 Walter Lee <walt@tilera.com>
44399
44400 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
44401 arguments on even registers.
44402 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
44403 STACK_BOUNDARY.
44404 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
44405 (BIGGEST_ALIGNMENT): Ditto.
44406 (BIGGEST_FIELD_ALIGNMENT): Ditto.
44407
44408 2014-01-25 Walter Lee <walt@tilera.com>
44409
44410 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
44411 insns before bundling.
44412 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
44413
44414 2014-01-25 Walter Lee <walt@tilera.com>
44415
44416 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
44417 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
44418 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
44419
44420 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
44421
44422 * config/mips/constraints.md (kl): Delete.
44423 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
44424 define expands, using...
44425 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
44426 instructions for MIPS16.
44427 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
44428 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
44429
44430 2014-01-25 Walter Lee <walt@tilera.com>
44431
44432 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
44433 (clzdi2): Ditto.
44434 (ffsdi2): Ditto.
44435
44436 2014-01-25 Walter Lee <walt@tilera.com>
44437
44438 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
44439 (TARGET_EXPAND_TO_RTL_HOOK): Define.
44440
44441 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
44442
44443 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
44444 Handle XOR.
44445
44446 2014-01-25 Jakub Jelinek <jakub@redhat.com>
44447
44448 * print-rtl.c (in_call_function_usage): New var.
44449 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
44450 EXPR_LIST mode as mode and not as reg note name.
44451
44452 PR middle-end/59561
44453 * cfgloopmanip.c (copy_loop_info): If
44454 loop->warned_aggressive_loop_optimizations, make sure
44455 the flag is set in target loop too.
44456
44457 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
44458
44459 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
44460 flag_cilkplus.
44461 * builtins.def: Likewise.
44462 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
44463 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
44464 * ira.c (ira_setup_eliminable_regset): Likewise.
44465 * omp-low.c (gate_expand_omp): Likewise.
44466 (execute_lower_omp): Likewise.
44467 (diagnose_sb_0): Likewise.
44468 (gate_diagnose_omp_blocks): Likewise.
44469 (simd_clone_clauses_extract): Likewise.
44470 (gate): Likewise.
44471
44472 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
44473
44474 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
44475 correction for little endian...
44476 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
44477 here.
44478
44479 2014-01-24 Jeff Law <law@redhat.com>
44480
44481 PR tree-optimization/59919
44482 * tree-vrp.c (find_assert_locations_1): Do not register asserts
44483 for non-returning calls.
44484
44485 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
44486
44487 * common/config/aarch64/aarch64-common.c
44488 (aarch64_rewrite_mcpu): Handle multiple names.
44489 * config/aarch64/aarch64.h
44490 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
44491
44492 2014-01-24 Dodji Seketeli <dodji@redhat.com>
44493
44494 * input.c (add_file_to_cache_tab): Handle the case where fopen
44495 returns NULL.
44496
44497 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
44498
44499 PR target/59929
44500 * config/i386/i386.md (pushsf splitter): Get stack adjustment
44501 from push operand if code of push isn't PRE_DEC.
44502
44503 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
44504
44505 PR target/59909
44506 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
44507 -mquad-memory-atomic. Update -mquad-memory documentation to say
44508 it is only used for non-atomic loads/stores.
44509
44510 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
44511 -mquad-memory or -mquad-memory-atomic switches.
44512
44513 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
44514 -mquad-memory-atomic to ISA 2.07 support.
44515
44516 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
44517 to separate support of normal quad word memory operations (ldq, stq)
44518 from the atomic quad word memory operations.
44519
44520 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
44521 support to separate non-atomic quad word operations from atomic
44522 quad word operations. Disable non-atomic quad word operations in
44523 little endian mode so that we don't have to swap words after the
44524 load and before the store.
44525 (quad_load_store_p): Add comment about atomic quad word support.
44526 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
44527 options printed with -mdebug=reg.
44528
44529 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
44530 -mquad-memory-atomic as the test for whether we have quad word
44531 atomic instructions.
44532 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
44533 or -mp8-vector are used, allow byte/half-word atomic operations.
44534
44535 * config/rs6000/sync.md (load_lockedti): Insure that the address
44536 is a proper indexed or indirect address for the lqarx instruction.
44537 On little endian systems, swap the hi/lo registers after the lqarx
44538 instruction.
44539 (load_lockedpti): Use indexed_or_indirect_operand predicate to
44540 insure the address is valid for the lqarx instruction.
44541 (store_conditionalti): Insure that the address is a proper indexed
44542 or indirect address for the stqcrx. instruction. On little endian
44543 systems, swap the hi/lo registers before doing the stqcrx.
44544 instruction.
44545 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
44546 insure the address is valid for the stqcrx. instruction.
44547
44548 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
44549 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
44550 type of quad memory support is available.
44551
44552 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
44553
44554 PR regression/59915
44555 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
44556 there is a danger of looping.
44557
44558 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
44559
44560 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
44561 force flag_ira_loop_pressure if set via command line.
44562
44563 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
44564
44565 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
44566 (ashr_simd): New builtin handling DI mode.
44567 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
44568 (aarch64_sshr_simddi): New match pattern.
44569 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
44570 (vshrd_n_s64): Likewise.
44571 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
44572
44573 2014-01-23 Nick Clifton <nickc@redhat.com>
44574
44575 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
44576 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
44577 favour of mcu specific scripts.
44578 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
44579 430x multilibs.
44580
44581 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
44582 Alex Velenko <Alex.Velenko@arm.com>
44583
44584 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
44585 (vaddv_s16): Likewise.
44586 (vaddv_s32): Likewise.
44587 (vaddv_u8): Likewise.
44588 (vaddv_u16): Likewise.
44589 (vaddv_u32): Likewise.
44590 (vaddvq_s8): Likewise.
44591 (vaddvq_s16): Likewise.
44592 (vaddvq_s32): Likewise.
44593 (vaddvq_s64): Likewise.
44594 (vaddvq_u8): Likewise.
44595 (vaddvq_u16): Likewise.
44596 (vaddvq_u32): Likewise.
44597 (vaddvq_u64): Likewise.
44598 (vaddv_f32): Likewise.
44599 (vaddvq_f32): Likewise.
44600 (vaddvq_f64): Likewise.
44601 (vmaxv_f32): Likewise.
44602 (vmaxv_s8): Likewise.
44603 (vmaxv_s16): Likewise.
44604 (vmaxv_s32): Likewise.
44605 (vmaxv_u8): Likewise.
44606 (vmaxv_u16): Likewise.
44607 (vmaxv_u32): Likewise.
44608 (vmaxvq_f32): Likewise.
44609 (vmaxvq_f64): Likewise.
44610 (vmaxvq_s8): Likewise.
44611 (vmaxvq_s16): Likewise.
44612 (vmaxvq_s32): Likewise.
44613 (vmaxvq_u8): Likewise.
44614 (vmaxvq_u16): Likewise.
44615 (vmaxvq_u32): Likewise.
44616 (vmaxnmv_f32): Likewise.
44617 (vmaxnmvq_f32): Likewise.
44618 (vmaxnmvq_f64): Likewise.
44619 (vminv_f32): Likewise.
44620 (vminv_s8): Likewise.
44621 (vminv_s16): Likewise.
44622 (vminv_s32): Likewise.
44623 (vminv_u8): Likewise.
44624 (vminv_u16): Likewise.
44625 (vminv_u32): Likewise.
44626 (vminvq_f32): Likewise.
44627 (vminvq_f64): Likewise.
44628 (vminvq_s8): Likewise.
44629 (vminvq_s16): Likewise.
44630 (vminvq_s32): Likewise.
44631 (vminvq_u8): Likewise.
44632 (vminvq_u16): Likewise.
44633 (vminvq_u32): Likewise.
44634 (vminnmv_f32): Likewise.
44635 (vminnmvq_f32): Likewise.
44636 (vminnmvq_f64): Likewise.
44637
44638 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
44639
44640 * config/aarch64/aarch64-simd.md
44641 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
44642 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
44643 (*aarch64_mul3_elt<mode>): Likewise.
44644 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
44645 (*aarch64_mul3_elt_to_64v2df): Likewise.
44646 (*aarch64_mla_elt<mode>): Likewise.
44647 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
44648 (*aarch64_mls_elt<mode>): Likewise.
44649 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
44650 (*aarch64_fma4_elt<mode>): Likewise.
44651 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
44652 (*aarch64_fma4_elt_to_64v2df): Likewise.
44653 (*aarch64_fnma4_elt<mode>): Likewise.
44654 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
44655 (*aarch64_fnma4_elt_to_64v2df): Likewise.
44656 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
44657 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
44658 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
44659 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
44660 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
44661 (aarch64_sqdmull_lane<mode>_internal): Likewise.
44662 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
44663
44664 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
44665
44666 * config/aarch64/aarch64-simd.md
44667 (aarch64_be_checked_get_lane<mode>): New define_expand.
44668 * config/aarch64/aarch64-simd-builtins.def
44669 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
44670 New builtin definition.
44671 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
44672 Use new safe be builtin.
44673
44674 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
44675
44676 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
44677 New define_insn.
44678 (aarch64_be_st1<mode>): Likewise.
44679 (aarch_ld1<VALL:mode>): Define_expand modified.
44680 (aarch_st1<VALL:mode>): Likewise.
44681 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
44682 (UNSPEC_ST1): Likewise.
44683
44684 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
44685
44686 * config/microblaze/microblaze.md: Add trap insn and attribute
44687
44688 2014-01-23 Dodji Seketeli <dodji@redhat.com>
44689
44690 PR preprocessor/58580
44691 * input.h (location_get_source_line): Take an additional line_size
44692 parameter.
44693 (void diagnostics_file_cache_fini): Declare new function.
44694 * input.c (struct fcache): New type.
44695 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
44696 New static constants.
44697 (diagnostic_file_cache_init, total_lines_num)
44698 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
44699 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
44700 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
44701 (get_next_line, read_next_line, goto_next_line, read_line_num):
44702 New static function definitions.
44703 (diagnostic_file_cache_fini): New function.
44704 (location_get_source_line): Take an additional output line_len
44705 parameter. Re-write using lookup_or_add_file_to_cache_tab and
44706 read_line_num.
44707 * diagnostic.c (diagnostic_finish): Call
44708 diagnostic_file_cache_fini.
44709 (adjust_line): Take an additional input parameter for the length
44710 of the line, rather than calculating it with strlen.
44711 (diagnostic_show_locus): Adjust the use of
44712 location_get_source_line and adjust_line with respect to their new
44713 signature. While displaying a line now, do not stop at the first
44714 null byte. Rather, display the zero byte as a space and keep
44715 going until we reach the size of the line.
44716 * Makefile.in: Add vec.o to OBJS-libcommon
44717
44718 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
44719 Ilya Tocar <ilya.tocar@intel.com>
44720
44721 * config/i386/avx512fintrin.h (_mm512_kmov): New.
44722 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
44723 (__builtin_ia32_kmov16): Ditto.
44724 * config/i386/i386.md (UNSPEC_KMOV): New.
44725 (kmovw): Ditto.
44726
44727 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
44728
44729 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
44730 (_mm512_storeu_si512): Ditto.
44731
44732 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
44733
44734 PR target/52125
44735 * rtl.h (get_referenced_operands): Declare.
44736 * recog.c (get_referenced_operands): New function.
44737 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
44738 operands have been referenced when recording LO_SUM references.
44739
44740 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
44741
44742 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
44743
44744 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
44745
44746 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
44747 Enable for generic and recent AMD targets.
44748
44749 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
44750
44751 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
44752 ARG_SIZE note when adjustment was eliminated.
44753
44754 2014-01-22 Jeff Law <law@redhat.com>
44755
44756 PR tree-optimization/59597
44757 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
44758 in file. Accept new argument REGISTERING and use it to modify
44759 dump output appropriately.
44760 (register_jump_thread): Corresponding changes.
44761 (mark_threaded_blocks): Reinstate code to cancel unprofitable
44762 thread paths involving joiner blocks. Add code to dump cancelled
44763 jump threading paths.
44764
44765 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
44766
44767 PR rtl-optimization/59477
44768 * lra-constraints.c (inherit_in_ebb): Process call for living hard
44769 regs. Update reloads_num and potential_reload_hard_regs for all insns.
44770
44771 2014-01-22 Tom Tromey <tromey@redhat.com>
44772
44773 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
44774 PARAMS.
44775 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
44776
44777 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
44778
44779 PR rtl-optimization/59896
44780 * lra-constraints.c (process_alt_operands): Check unused note for
44781 matched operands of insn with no output reloads.
44782
44783 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
44784
44785 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
44786 (mips_move_from_gpr_cost): Likewise.
44787
44788 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
44789
44790 PR rtl-optimization/59858
44791 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
44792 ira_class_hard_regs_num.
44793 (process_alt_operands): Increase reject for dying matched operand.
44794
44795 2014-01-21 Jakub Jelinek <jakub@redhat.com>
44796
44797 PR target/59003
44798 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
44799 smaller than size, perform several stores or loads and stores
44800 at dst + count - size to store or copy all of size bytes, rather
44801 than just last modesize bytes.
44802
44803 2014-01-20 DJ Delorie <dj@redhat.com>
44804
44805 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
44806 that CLOBBERs are REGs before propogating their values.
44807
44808 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
44809
44810 PR middle-end/59789
44811 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
44812 (cgraph_inline_failed_type): New function.
44813 * cgraph.h (DEFCIFCODE): Add type.
44814 (cgraph_inline_failed_type_t): New enum.
44815 (cgraph_inline_failed_type): New prototype.
44816 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
44817 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
44818 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
44819 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
44820 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
44821 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
44822 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
44823 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
44824 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
44825 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
44826 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
44827 OPTIMIZATION_MISMATCH.
44828 * tree-inline.c (expand_call_inline): Emit errors during
44829 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
44830
44831 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
44832
44833 PR target/59685
44834 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
44835 mode attribute in insn output.
44836
44837 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
44838
44839 * output.h (output_constant): Delete.
44840 * varasm.c (output_constant): Make private.
44841
44842 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
44843
44844 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
44845
44846 2014-01-20 Jakub Jelinek <jakub@redhat.com>
44847
44848 PR middle-end/59860
44849 * tree.h (fold_builtin_strcat): New prototype.
44850 * builtins.c (fold_builtin_strcat): No longer static. Add len
44851 argument, if non-NULL, don't call c_strlen. Optimize
44852 directly into __builtin_memcpy instead of __builtin_strcpy.
44853 (fold_builtin_2): Adjust fold_builtin_strcat caller.
44854 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
44855
44856 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
44857
44858 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
44859 for SImode_address_operand operands, having only a REG argument.
44860
44861 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
44862
44863 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
44864 loader name using mbig-endian.
44865 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
44866
44867 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
44868
44869 * doc/invoke.texi (-march): Clarify documentation for AArch64.
44870 (-mtune): Likewise.
44871 (-mcpu): Likewise.
44872
44873 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
44874
44875 * config/aarch64/aarch64-protos.h
44876 (aarch64_cannot_change_mode_class_ptr): Declare.
44877 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
44878 aarch64_cannot_change_mode_class_ptr): New.
44879 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
44880 backend hook aarch64_cannot_change_mode_class.
44881
44882 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
44883
44884 * common/config/aarch64/aarch64-common.c
44885 (aarch64_handle_option): Don't handle any option order logic here.
44886 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
44887 selected_cpu, warn on architecture version mismatch.
44888 (aarch64_override_options): Fix parsing order for option strings.
44889
44890 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
44891 Iain Sandoe <iain@codesourcery.com>
44892
44893 PR bootstrap/59496
44894 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
44895 warning. Amend comment to reflect current functionality.
44896
44897 2014-01-20 Richard Biener <rguenther@suse.de>
44898
44899 PR middle-end/59860
44900 * builtins.c (fold_builtin_strcat): Remove case better handled
44901 by tree-ssa-strlen.c.
44902
44903 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
44904
44905 * config/aarch64/aarch64.opt
44906 (mcpu, march, mtune): Make case-insensitive.
44907
44908 2014-01-20 Jakub Jelinek <jakub@redhat.com>
44909
44910 PR target/59880
44911 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
44912 if operands[1] is a REG or ZERO_EXTEND of a REG.
44913
44914 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
44915
44916 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
44917
44918 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
44919
44920 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
44921 long non-pic millicode calls.
44922
44923 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
44924
44925 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
44926
44927 2014-01-19 Kito Cheng <kito@0xlab.org>
44928
44929 * builtins.c (expand_movstr): Check movstr expand done or fail.
44930
44931 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
44932 H.J. Lu <hongjiu.lu@intel.com>
44933
44934 PR target/59379
44935 * config/i386/i386.md (*lea<mode>): Zero-extend return register
44936 to DImode for zero-extended addresses.
44937
44938 2014-01-19 Jakub Jelinek <jakub@redhat.com>
44939
44940 PR rtl-optimization/57763
44941 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
44942 on the new indirect jump_insn and increment LABEL_NUSES (label).
44943
44944 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
44945
44946 PR bootstrap/59580
44947 PR bootstrap/59583
44948 * config.gcc (x86_archs): New variable.
44949 (x86_64_archs): Likewise.
44950 (x86_cpus): Likewise.
44951 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
44952 --with-arch/--with-cpu= options.
44953 Support --with-arch=/--with-cpu={nehalem,westmere,
44954 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
44955
44956 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
44957
44958 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
44959 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
44960
44961 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
44962
44963 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
44964
44965 2014-01-18 Jakub Jelinek <jakub@redhat.com>
44966
44967 PR target/58944
44968 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
44969 clear cpp_get_options (parse_in)->warn_unused_macros for
44970 ix86_target_macros_internal with cpp_define.
44971
44972 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
44973
44974 * jump.c (delete_related_insns): Keep (use (insn))s.
44975 * reorg.c (redundant_insn): Check for barriers too.
44976
44977 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
44978
44979 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
44980
44981 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
44982
44983 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
44984 call to $$dyncall when TARGET_LONG_CALLS is true.
44985
44986 2014-01-17 Jeff Law <law@redhat.com>
44987
44988 * ree.c (combine_set_extension): Temporarily disable test for
44989 changing number of hard registers.
44990
44991 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
44992
44993 PR middle-end/58125
44994 * ipa-inline-analysis.c (inline_free_summary):
44995 Do not free summary of aliases.
44996
44997 2014-01-17 Jakub Jelinek <jakub@redhat.com>
44998
44999 PR middle-end/59706
45000 * gimplify.c (gimplify_expr): Use create_tmp_var
45001 instead of create_tmp_var_raw. If cond doesn't have
45002 integral type, don't add the IFN_ANNOTATE builtin at all.
45003
45004 2014-01-17 Martin Jambor <mjambor@suse.cz>
45005
45006 PR ipa/59736
45007 * ipa-cp.c (prev_edge_clone): New variable.
45008 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
45009 Also resize prev_edge_clone vector.
45010 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
45011 (ipcp_edge_removal_hook): New function.
45012 (ipcp_driver): Register ipcp_edge_removal_hook.
45013
45014 2014-01-17 Andrew Pinski <apinski@cavium.com>
45015 Steve Ellcey <sellcey@mips.com>
45016
45017 PR target/59462
45018 * config/mips/mips.c (mips_print_operand): Check operand mode instead
45019 of operator mode.
45020
45021 2014-01-17 Jeff Law <law@redhat.com>
45022
45023 PR middle-end/57904
45024 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
45025 so that pass_ccp runs first.
45026
45027 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
45028
45029 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
45030 (ix86_adjust_cost): Use !TARGET_XXX.
45031 (do_reorder_for_imul): Likewise.
45032 (swap_top_of_ready_list): Likewise.
45033 (ix86_sched_reorder): Likewise.
45034
45035 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
45036
45037 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
45038 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
45039 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
45040 (intel_memset): New. Duplicate slm_memset.
45041 (intel_cost): New. Duplicate slm_cost.
45042 (m_INTEL): New macro.
45043 (processor_target_table): Add "intel".
45044 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
45045 with PROCESSOR_INTEL for "intel".
45046 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
45047 PROCESSOR_SILVERMONT.
45048 (ix86_issue_rate): Likewise.
45049 (ix86_adjust_cost): Likewise.
45050 (ia32_multipass_dfa_lookahead): Likewise.
45051 (swap_top_of_ready_list): Likewise.
45052 (ix86_sched_reorder): Likewise.
45053 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
45054 instead of TARGET_OPT_AGU.
45055 * config/i386/i386.h (TARGET_INTEL): New.
45056 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
45057 (processor_type): Add PROCESSOR_INTEL.
45058 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
45059 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
45060
45061 2014-01-17 Marek Polacek <polacek@redhat.com>
45062
45063 PR c/58346
45064 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
45065 size is zero.
45066
45067 2014-01-17 Richard Biener <rguenther@suse.de>
45068
45069 PR tree-optimization/46590
45070 * opts.c (default_options_table): Add entries for
45071 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
45072 all enabled at -O1 but not for -Og.
45073 * common.opt (fbranch-count-reg): Remove Init(1).
45074 (fmove-loop-invariants): Likewise.
45075 (ftree-pta): Likewise.
45076
45077 2014-01-17 Jakub Jelinek <jakub@redhat.com>
45078
45079 * config/i386/i386.c (ix86_data_alignment): For compatibility with
45080 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
45081 decls to at least the GCC 4.8 used alignments.
45082
45083 PR fortran/59440
45084 * tree-nested.c (convert_nonlocal_reference_stmt,
45085 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
45086 of GIMPLE_BIND stmts, adjust associated decls.
45087
45088 2014-01-17 Richard Biener <rguenther@suse.de>
45089
45090 PR tree-optimization/46590
45091 * vec.h (vec<>::bseach): New member function implementing
45092 binary search according to C89 bsearch.
45093 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
45094 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
45095 bitmap pointer again. Make accesses_in_loop a flat array.
45096 (mem_ref_obstack): New global.
45097 (outermost_indep_loop): Adjust for mem_ref->stored changes.
45098 (mark_ref_stored): Likewise.
45099 (ref_indep_loop_p_2): Likewise.
45100 (set_ref_stored_in_loop): New helper function.
45101 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
45102 (memref_free): Adjust.
45103 (record_mem_ref_loc): Simplify.
45104 (gather_mem_refs_stmt): Adjust.
45105 (sort_locs_in_loop_postorder_cmp): New function.
45106 (analyze_memory_references): Sort accesses_in_loop after
45107 loop postorder number.
45108 (find_ref_loc_in_loop_cmp): New function.
45109 (for_all_locs_in_loop): Find relevant cluster of locs in
45110 accesses_in_loop and iterate without recursion.
45111 (execute_sm): Avoid uninit warning.
45112 (struct ref_always_accessed): Simplify.
45113 (ref_always_accessed::operator ()): Likewise.
45114 (ref_always_accessed_p): Likewise.
45115 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
45116 loop postorder numbers here.
45117 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
45118 numbers.
45119
45120 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
45121
45122 PR c++/57945
45123 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
45124 on decls for which assemble_alias has been called.
45125
45126 2014-01-17 Nick Clifton <nickc@redhat.com>
45127
45128 * config/msp430/msp430.opt: (mcpu): New option.
45129 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
45130 (msp430_option_override): Parse target_cpu. If the MCU name
45131 matches a generic string, clear target_mcu.
45132 (msp430_attr): Allow numeric interrupt values up to 63.
45133 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
45134 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
45135 option.
45136 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
45137 Add mcpu matches.
45138 * config/msp430/msp430.md (popm): Use %J rather than %I.
45139 (addsi3): Use msp430_nonimmediate_operand for operand 2.
45140 (addhi_cy_i): Use immediate_operand for operand 2.
45141 * doc/invoke.texi: Document -mcpu option.
45142
45143 2014-01-17 Richard Biener <rguenther@suse.de>
45144
45145 PR rtl-optimization/38518
45146 * df.h (df_analyze_loop): Declare.
45147 * df-core.c: Include cfgloop.h.
45148 (df_analyze_1): Split out main part of df_analyze.
45149 (df_analyze): Adjust.
45150 (loop_inverted_post_order_compute): New function.
45151 (loop_post_order_compute): Likewise.
45152 (df_analyze_loop): New function avoiding whole-function
45153 postorder computes.
45154 * loop-invariant.c (find_defs): Use df_analyze_loop.
45155 (find_invariants): Adjust.
45156 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
45157
45158 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
45159
45160 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
45161 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
45162
45163 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
45164
45165 * ipa-ref.c (ipa_remove_stmt_references): Fix references
45166 traversal when removing references.
45167
45168 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
45169
45170 PR ipa/59775
45171 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
45172
45173 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
45174
45175 PR middle-end/56791
45176 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
45177 pushing a reload for an autoinc when we had previously reloaded an
45178 inner part of the address.
45179
45180 2014-01-16 Jakub Jelinek <jakub@redhat.com>
45181
45182 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
45183 field.
45184 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
45185 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
45186 when not giving up or versioning for alias only because of
45187 loop->safelen.
45188 (vect_analyze_data_ref_dependences): Set to true.
45189 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
45190 is a GIMPLE_PHI.
45191 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
45192 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
45193 to the condition.
45194
45195 PR middle-end/58344
45196 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
45197
45198 PR target/59839
45199 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
45200 operand 0 predicate for gathers, use a new pseudo as subtarget.
45201
45202 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
45203
45204 PR middle-end/59609
45205 * lra-constraints.c (process_alt_operands): Add printing debug info.
45206 Check absence of input/output reloads for matched operands too.
45207
45208 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
45209
45210 PR rtl-optimization/59835
45211 * ira.c (ira_init_register_move_cost): Increase cost for
45212 impossible modes.
45213
45214 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
45215
45216 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
45217
45218 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
45219
45220 PR target/59780
45221 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
45222 non-register objects. Use gen_(high/low)part more consistently.
45223 Fix assertions.
45224
45225 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
45226
45227 PR target/59844
45228 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
45229 endian support, remove tests for WORDS_BIG_ENDIAN.
45230 (p8_mfvsrd_3_<mode>): Likewise.
45231 (reload_gpr_from_vsx<mode>): Likewise.
45232 (reload_gpr_from_vsxsf): Likewise.
45233 (p8_mfvsrd_4_disf): Likewise.
45234
45235 2014-01-16 Richard Biener <rguenther@suse.de>
45236
45237 PR rtl-optimization/46590
45238 * lcm.c (compute_antinout_edge): Use postorder iteration.
45239 (compute_laterin): Use inverted postorder iteration.
45240
45241 2014-01-16 Nick Clifton <nickc@redhat.com>
45242
45243 PR middle-end/28865
45244 * varasm.c (output_constant): Return the number of bytes actually
45245 emitted.
45246 (output_constructor_array_range): Update the field size with the
45247 number of bytes emitted by output_constant.
45248 (output_constructor_regular_field): Likewise. Also do not
45249 complain if the total number of bytes emitted is now greater
45250 than the expected fieldpos.
45251 * output.h (output_constant): Update prototype and descriptive comment.
45252
45253 2014-01-16 Marek Polacek <polacek@redhat.com>
45254
45255 PR middle-end/59827
45256 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
45257 it is error_mark_node.
45258
45259 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
45260
45261 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
45262 VALID_AVX256_REG_OR_OI_MODE.
45263
45264 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
45265
45266 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
45267 current procedure should be profiled.
45268
45269 2014-01-15 Andrew Pinski <apinski@cavium.com>
45270
45271 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
45272 of moving from/to the STACK_REG register class.
45273
45274 2014-01-15 Richard Henderson <rth@redhat.com>
45275
45276 PR debug/54694
45277 * reginfo.c (global_regs_decl): Globalize.
45278 * rtl.h (global_regs_decl): Declare.
45279 * ira.c (do_reload): Diagnose frame_pointer_needed and it
45280 reserved via global_regs.
45281
45282 2014-01-15 Teresa Johnson <tejohnson@google.com>
45283
45284 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
45285
45286 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
45287
45288 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
45289 and vmulosh rather than call gen_vec_widen_smult_*.
45290 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
45291 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
45292 (vec_widen_smult_even_v16qi): Likewise.
45293 (vec_widen_umult_even_v8hi): Likewise.
45294 (vec_widen_smult_even_v8hi): Likewise.
45295 (vec_widen_umult_odd_v16qi): Likewise.
45296 (vec_widen_smult_odd_v16qi): Likewise.
45297 (vec_widen_umult_odd_v8hi): Likewise.
45298 (vec_widen_smult_odd_v8hi): Likewise.
45299 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
45300 vmuloub rather than call gen_vec_widen_umult_*.
45301 (vec_widen_umult_lo_v16qi): Likewise.
45302 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
45303 vmulosb rather than call gen_vec_widen_smult_*.
45304 (vec_widen_smult_lo_v16qi): Likewise.
45305 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
45306 rather than call gen_vec_widen_umult_*.
45307 (vec_widen_umult_lo_v8hi): Likewise.
45308 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
45309 rather than call gen_vec_widen_smult_*.
45310 (vec_widen_smult_lo_v8hi): Likewise.
45311
45312 2014-01-15 Jeff Law <law@redhat.com>
45313
45314 PR tree-optimization/59747
45315 * ree.c (find_and_remove_re): Properly handle case where a second
45316 eliminated extension requires widening a copy created for elimination
45317 of a prior extension.
45318 (combine_set_extension): Ensure that the number of hard regs needed
45319 for a destination register does not change when we widen it.
45320
45321 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
45322
45323 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
45324 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
45325 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
45326 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
45327 (avr-*-rtems*): Likewise.
45328 (bfin*-rtems*): Likewise.
45329 (moxie-*-rtems*): Likewise.
45330 (h8300-*-rtems*): Likewise.
45331 (i[34567]86-*-rtems*): Likewise.
45332 (lm32-*-rtems*): Likewise.
45333 (m32r-*-rtems*): Likewise.
45334 (m68k-*-rtems*): Likewise.
45335 (microblaze*-*-rtems*): Likewise.
45336 (mips*-*-rtems*): Likewise.
45337 (powerpc-*-rtems*): Likewise.
45338 (sh-*-rtems*): Likewise.
45339 (sparc-*-rtems*): Likewise.
45340 (sparc64-*-rtems*): Likewise.
45341 (v850-*-rtems*): Likewise.
45342 (m32c-*-rtems*): Likewise.
45343
45344 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
45345
45346 PR rtl-optimization/59511
45347 * ira.c (ira_init_register_move_cost): Use memory costs for some
45348 cases of register move cost calculations.
45349 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
45350 instead of BB frequency.
45351 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
45352 * lra-assigns.c (find_hard_regno_for): Ditto.
45353
45354 2014-01-15 Richard Biener <rguenther@suse.de>
45355
45356 PR tree-optimization/59822
45357 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
45358 (vectorizable_load): Use it to hoist defs of uses of invariant
45359 loads out of the loop.
45360
45361 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
45362 Kugan Vivekanandarajah <kuganv@linaro.org>
45363
45364 PR target/59695
45365 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
45366 truncation.
45367
45368 2014-01-15 Richard Biener <rguenther@suse.de>
45369
45370 PR rtl-optimization/59802
45371 * lcm.c (compute_available): Use inverted postorder to seed
45372 the initial worklist.
45373
45374 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
45375
45376 PR target/59803
45377 * config/s390/s390.c (s390_preferred_reload_class): Don't return
45378 ADDR_REGS for invalid symrefs in non-PIC code.
45379
45380 2014-01-15 Jakub Jelinek <jakub@redhat.com>
45381
45382 PR other/58712
45383 * builtins.c (determine_block_size): Initialize *probable_max_size
45384 even if len_rtx is CONST_INT.
45385
45386 2014-01-14 Andrew Pinski <apinski@cavium.com>
45387
45388 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
45389 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
45390 (cortexa53_tunings): Likewise.
45391 (aarch64_sched_issue_rate): New function.
45392 (TARGET_SCHED_ISSUE_RATE): Define.
45393
45394 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
45395
45396 * ira-costs.c (find_costs_and_classes): Add missed
45397 ira_init_register_move_cost_if_necessary.
45398
45399 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
45400
45401 PR target/59787
45402 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
45403
45404 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
45405
45406 PR target/59794
45407 * config/i386/i386.c (type_natural_mode): Add a bool parameter
45408 to indicate if type is used for function return value. Warn ABI
45409 change if the vector mode isn't available for function return value.
45410 (ix86_function_arg_advance): Pass false to type_natural_mode.
45411 (ix86_function_arg): Likewise.
45412 (ix86_gimplify_va_arg): Likewise.
45413 (function_arg_32): Don't warn ABI change.
45414 (ix86_function_value): Pass true to type_natural_mode.
45415 (ix86_return_in_memory): Likewise.
45416 (ix86_struct_value_rtx): Removed.
45417 (TARGET_STRUCT_VALUE_RTX): Likewise.
45418
45419 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
45420
45421 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
45422 converting a conditional jump into a conditional return.
45423
45424 2014-01-14 Richard Biener <rguenther@suse.de>
45425
45426 PR tree-optimization/58921
45427 PR tree-optimization/59006
45428 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
45429 hoisting invariant stmts.
45430 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
45431 invariant loads on the preheader edge if possible.
45432
45433 2014-01-14 Joey Ye <joey.ye@arm.com>
45434
45435 * doc/plugin.texi (Building GCC plugins): Update to C++.
45436
45437 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
45438
45439 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
45440 (_mm_rcp28_round_ss): Ditto.
45441 (_mm_rsqrt28_round_sd): Ditto.
45442 (_mm_rsqrt28_round_ss): Ditto.
45443 (_mm_rcp28_sd): Ditto.
45444 (_mm_rcp28_ss): Ditto.
45445 (_mm_rsqrt28_sd): Ditto.
45446 (_mm_rsqrt28_ss): Ditto.
45447 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
45448 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
45449 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
45450 (IX86_BUILTIN_RCP28SD): Ditto.
45451 (IX86_BUILTIN_RCP28SS): Ditto.
45452 (IX86_BUILTIN_RSQRT28SD): Ditto.
45453 (IX86_BUILTIN_RSQRT28SS): Ditto.
45454 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
45455 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
45456 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
45457 (ix86_expand_special_args_builtin): Expand new FTYPE.
45458 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
45459 (srcp14<mode>): Make insn unary.
45460 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
45461 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
45462 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
45463 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
45464 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
45465 Fix rounding: make it SAE only.
45466 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
45467 Ditto.
45468 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
45469 Ditto.
45470 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
45471 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
45472 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
45473 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
45474 (round_saeonly_mask_scalar_operand4): Ditto.
45475 (round_saeonly_mask_scalar_op3): Ditto.
45476 (round_saeonly_mask_scalar_op4): Ditto.
45477
45478 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45479
45480 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
45481 Implement -maltivec=be for vec_insert and vec_extract.
45482
45483 2014-01-10 DJ Delorie <dj@redhat.com>
45484
45485 * config/msp430/msp430.md (call_internal): Don't allow memory
45486 references with SP as the base register.
45487 (call_value_internal): Likewise.
45488 * config/msp430/constraints.md (Yc): New. For memory references
45489 that don't use SP as a base register.
45490
45491 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
45492 "an integer without a # prefix"
45493 * config/msp430/msp430.md (epilogue_helper): Use it.
45494
45495 2014-01-13 Jakub Jelinek <jakub@redhat.com>
45496
45497 PR target/59617
45498 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
45499 AVX512F gather builtins.
45500 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
45501 on gather decls with INTEGER_TYPE masktype.
45502 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
45503 directly into the builtin rather than hoisting it before loop.
45504
45505 PR tree-optimization/59387
45506 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
45507 (scev_const_prop): If folded_casts and type has undefined overflow,
45508 use force_gimple_operand instead of force_gimple_operand_gsi and
45509 for each added stmt if it is assign with
45510 arith_code_with_undefined_signed_overflow, call
45511 rewrite_to_defined_overflow.
45512 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
45513 gimple-fold.h instead.
45514 (arith_code_with_undefined_signed_overflow,
45515 rewrite_to_defined_overflow): Moved to ...
45516 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
45517 rewrite_to_defined_overflow): ... here. No longer static.
45518 Include gimplify-me.h.
45519 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
45520 rewrite_to_defined_overflow): New prototypes.
45521
45522 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45523
45524 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
45525
45526 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
45527
45528 * builtins.c (get_object_alignment_2): Minor tweak.
45529 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
45530
45531 2014-01-13 Christian Bruel <christian.bruel@st.com>
45532
45533 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
45534 optimized non constant lengths.
45535
45536 2014-01-13 Jakub Jelinek <jakub@redhat.com>
45537
45538 PR libgomp/59194
45539 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
45540 load as __atomic_load_N if possible.
45541
45542 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
45543
45544 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
45545 target parameter.
45546 (rs6000_expand_builtin): Adjust call.
45547
45548 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
45549
45550 PR target/58115
45551 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
45552 * config/rs6000/rs6000.c: Include target-globals.h.
45553 (rs6000_set_current_function): Instead of doing target_reinit
45554 unconditionally, use save_target_globals_default_opts and
45555 restore_target_globals.
45556
45557 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
45558 FPSCR.
45559 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
45560 (rs6000_expand_builtin): Handle mffs and mtfsf.
45561 (rs6000_init_builtins): Define mffs and mtfsf.
45562 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
45563 (rs6000_mffs): New pattern.
45564 (rs6000_mtfsf): New pattern.
45565
45566 2014-01-11 Bin Cheng <bin.cheng@arm.com>
45567
45568 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
45569 Start narrowing with START. Apply candidate-use pair
45570 and check overall cost in narrowing.
45571 (iv_ca_prune): Pass new argument.
45572
45573 2014-01-10 Jeff Law <law@redhat.com>
45574
45575 PR middle-end/59743
45576 * ree.c (combine_reaching_defs): Ensure the defining statement
45577 occurs before the extension when optimizing extensions with
45578 different source and destination hard registers.
45579
45580 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
45581
45582 PR ipa/58585
45583 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
45584 vtables into the type inheritance graph.
45585
45586 2014-01-10 Jakub Jelinek <jakub@redhat.com>
45587
45588 PR rtl-optimization/59754
45589 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
45590 modes in the REGNO != REGNO case.
45591
45592 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45593
45594 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
45595
45596 2014-01-10 Jakub Jelinek <jakub@redhat.com>
45597
45598 PR tree-optimization/59745
45599 * tree-predcom.c (tree_predictive_commoning_loop): Call
45600 free_affine_expand_cache if giving up because components is NULL.
45601
45602 * target-globals.c (save_target_globals): Allocate < 4KB structs using
45603 GC in payload of target_globals struct instead of allocating them on
45604 the heap and the larger structs separately using GC.
45605 * target-globals.h (struct target_globals): Make regs, hard_regs,
45606 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
45607 of GTY((skip)) and change type to void *.
45608 (reset_target_globals): Cast loads from those fields to corresponding
45609 types.
45610
45611 2014-01-10 Steve Ellcey <sellcey@mips.com>
45612
45613 PR plugins/59335
45614 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
45615 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
45616 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
45617
45618 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
45619
45620 PR target/59744
45621 * aarch64-modes.def (CC_Zmode): New flags mode.
45622 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
45623 represents an equality.
45624 (aarch64_get_condition_code): Handle CC_Zmode.
45625 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
45626
45627 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
45628
45629 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
45630 extraction in good case.
45631
45632 2014-01-10 Richard Biener <rguenther@suse.de>
45633
45634 PR tree-optimization/59374
45635 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
45636 checking after SLP discovery. Mark stmts not participating
45637 in any SLP instance properly.
45638
45639 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45640
45641 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
45642 when handling a SET rtx.
45643
45644 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45645
45646 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
45647 (cortex-a57): Likewise.
45648 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
45649
45650 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
45651
45652 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
45653 non-iwmmxt builtins.
45654
45655 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
45656
45657 PR ipa/58252
45658 PR ipa/59226
45659 * ipa-devirt.c record_target_from_binfo): Take as argument
45660 stack of binfos and lookup matching one for virtual inheritance.
45661 (possible_polymorphic_call_targets_1): Update.
45662
45663 2014-01-10 Huacai Chen <chenhc@lemote.com>
45664
45665 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
45666 kernel strings for Loongson-2E/2F/3A.
45667
45668 2014-01-10 Jakub Jelinek <jakub@redhat.com>
45669
45670 PR middle-end/59670
45671 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
45672 is_gimple_call before calling gimple_call_internal_p.
45673
45674 2014-01-09 Steve Ellcey <sellcey@mips.com>
45675
45676 * Makefile.in (TREE_FLOW_H): Remove.
45677 (TREE_SSA_H): Add file names from tree-flow.h.
45678 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
45679 * tree.h: Remove tree-flow.h reference.
45680 * hash-table.h: Remove tree-flow.h reference.
45681 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
45682 reference with tree-ssa-loop.h.
45683
45684 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45685
45686 * doc/invoke.texi: Add -maltivec={be,le} options, and document
45687 default element-order behavior for -maltivec.
45688 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
45689 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
45690 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
45691 when targeting big endian, at least for now.
45692 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
45693
45694 2014-01-09 Jakub Jelinek <jakub@redhat.com>
45695
45696 PR middle-end/47735
45697 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
45698 var satisfies use_register_for_decl, just take into account type
45699 alignment, rather than decl alignment.
45700
45701 PR tree-optimization/59622
45702 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
45703 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
45704 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
45705 Don't devirtualize for inplace at all. For targets.length () == 1,
45706 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
45707
45708 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
45709
45710 * config/i386/i386.md (cpu): Remove the unused btver1.
45711
45712 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
45713
45714 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
45715
45716 2014-01-09 Jakub Jelinek <jakub@redhat.com>
45717
45718 PR target/58115
45719 * tree-core.h (struct target_globals): New forward declaration.
45720 (struct tree_target_option): Add globals field.
45721 * tree.h (TREE_TARGET_GLOBALS): Define.
45722 (prepare_target_option_nodes_for_pch): New prototype.
45723 * target-globals.h (struct target_globals): Define even if
45724 !SWITCHABLE_TARGET.
45725 * tree.c (prepare_target_option_node_for_pch,
45726 prepare_target_option_nodes_for_pch): New functions.
45727 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
45728 * config/i386/i386.c: Include target-globals.h.
45729 (ix86_set_current_function): Instead of doing target_reinit
45730 unconditionally, use save_target_globals_default_opts and
45731 restore_target_globals.
45732
45733 2014-01-09 Richard Biener <rguenther@suse.de>
45734
45735 PR tree-optimization/59715
45736 * tree-cfg.h (split_critical_edges): Declare.
45737 * tree-cfg.c (split_critical_edges): Export.
45738 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
45739
45740 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
45741
45742 * cfgexpand.c (expand_stack_vars): Optionally disable
45743 asan stack protection.
45744 (expand_used_vars): Likewise.
45745 (partition_stack_vars): Likewise.
45746 * asan.c (asan_emit_stack_protection): Optionally disable
45747 after return stack usage.
45748 (instrument_derefs): Optionally disable memory access instrumentation.
45749 (instrument_builtin_call): Likewise.
45750 (instrument_strlen_call): Likewise.
45751 (asan_protect_global): Optionally disable global variables protection.
45752 * doc/invoke.texi: Added doc for new options.
45753 * params.def: Added new options.
45754 * params.h: Likewise.
45755
45756 2014-01-09 Jakub Jelinek <jakub@redhat.com>
45757
45758 PR rtl-optimization/59724
45759 * ifcvt.c (cond_exec_process_if_block): Don't call
45760 flow_find_head_matching_sequence with 0 longest_match.
45761 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
45762 non-active insns if !stop_after.
45763 (try_head_merge_bb): Revert 2014-01-07 changes.
45764
45765 2014-01-08 Jeff Law <law@redhat.com>
45766
45767 * ree.c (get_sub_rtx): New function, extracted from...
45768 (merge_def_and_ext): Here.
45769 (combine_reaching_defs): Use get_sub_rtx.
45770
45771 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
45772
45773 * cgraph.h (varpool_variable_node): Do not choke on null node.
45774
45775 2014-01-08 Catherine Moore <clm@codesourcery.com>
45776
45777 * config/mips/mips.md (simple_return): Attempt to use JRC
45778 for microMIPS.
45779 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
45780
45781 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
45782
45783 PR rtl-optimization/59137
45784 * reorg.c (steal_delay_list_from_target): Call update_block for
45785 elided insns.
45786 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
45787
45788 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45789
45790 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
45791 two duplicate entries.
45792
45793 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
45794
45795 Revert:
45796 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
45797
45798 * config/mips/mips.c (mips_truncated_op_cost): New function.
45799 (mips_rtx_costs): Adjust test for BADDU.
45800 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
45801
45802 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
45803
45804 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
45805 (*baddu_si): ...this new pattern.
45806
45807 2014-01-08 Jakub Jelinek <jakub@redhat.com>
45808
45809 PR ipa/59722
45810 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
45811
45812 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
45813
45814 PR middle-end/57748
45815 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
45816 inner_reference_p.
45817 (expand_expr, expand_normal): Adjust.
45818 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
45819 inner_reference_p. Use inner_reference_p to expand inner references.
45820 (store_expr): Adjust.
45821 * cfgexpand.c (expand_call_stmt): Adjust.
45822
45823 2014-01-08 Rong Xu <xur@google.com>
45824
45825 * gcov-io.c (gcov_var): Move from gcov-io.h.
45826 (gcov_position): Ditto.
45827 (gcov_is_error): Ditto.
45828 (gcov_rewrite): Ditto.
45829 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
45830 only part to libgcc/libgcov.h.
45831
45832 2014-01-08 Marek Polacek <polacek@redhat.com>
45833
45834 PR middle-end/59669
45835 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
45836
45837 2014-01-08 Marek Polacek <polacek@redhat.com>
45838
45839 PR sanitizer/59667
45840 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
45841
45842 2014-01-08 Jakub Jelinek <jakub@redhat.com>
45843
45844 PR rtl-optimization/59649
45845 * stor-layout.c (get_mode_bounds): For BImode return
45846 0 and STORE_FLAG_VALUE.
45847
45848 2014-01-08 Richard Biener <rguenther@suse.de>
45849
45850 PR middle-end/59630
45851 * gimple.h (is_gimple_builtin_call): Remove.
45852 (gimple_builtin_call_types_compatible_p): New.
45853 (gimple_call_builtin_p): New overload.
45854 * gimple.c (is_gimple_builtin_call): Remove.
45855 (validate_call): Rename to ...
45856 (gimple_builtin_call_types_compatible_p): ... this and export. Also
45857 check return types.
45858 (validate_type): New static function.
45859 (gimple_call_builtin_p): New overload and adjust.
45860 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
45861 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
45862 (gimple_fold_stmt_to_constant_1): Likewise.
45863 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
45864
45865 2014-01-08 Richard Biener <rguenther@suse.de>
45866
45867 PR middle-end/59471
45868 * gimplify.c (gimplify_expr): Gimplify register-register type
45869 VIEW_CONVERT_EXPRs to separate stmts.
45870
45871 2014-01-07 Jeff Law <law@redhat.com>
45872
45873 PR middle-end/53623
45874 * ree.c (combine_set_extension): Handle case where source
45875 and destination registers in an extension insn are different.
45876 (combine_reaching_defs): Allow source and destination registers
45877 in extension to be different under limited circumstances.
45878 (add_removable_extension): Remove restriction that the
45879 source and destination registers in the extension are the same.
45880 (find_and_remove_re): Emit a copy from the extension's
45881 destination to its source after the defining insn if
45882 the source and destination registers are different.
45883
45884 PR middle-end/59285
45885 * ifcvt.c (merge_if_block): If we are merging a block with more than
45886 one successor with a block with no successors, remove any BARRIER
45887 after the second block.
45888
45889 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
45890
45891 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
45892
45893 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
45894
45895 PR target/59652
45896 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
45897 for 14-bit register offsets when INT14_OK_STRICT is false.
45898
45899 2014-01-07 Roland Stigge <stigge@antcom.de>
45900 Michael Meissner <meissner@linux.vnet.ibm.com>
45901
45902 PR 57386/target
45903 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
45904 Only check TFmode for SPE constants. Don't check TImode or TDmode.
45905
45906 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
45907
45908 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
45909 -mcpu.
45910
45911 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
45912
45913 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
45914 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
45915 rtx is const0_rtx or not.
45916
45917 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
45918
45919 PR target/58115
45920 * target-globals.c (save_target_globals): Remove this_fn_optab
45921 handling.
45922 * toplev.c: Include optabs.h.
45923 (target_reinit): Temporarily restore the global options if another
45924 set of options are in force.
45925
45926 2014-01-07 Jakub Jelinek <jakub@redhat.com>
45927
45928 PR rtl-optimization/58668
45929 * cfgcleanup.c (flow_find_cross_jump): Don't count
45930 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
45931 to determine what is counted.
45932 (flow_find_head_matching_sequence): Use active_insn_p to determine
45933 what is counted.
45934 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
45935 counting change.
45936 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
45937 determine what is counted.
45938
45939 PR tree-optimization/59643
45940 * tree-predcom.c (split_data_refs_to_components): If one dr is
45941 read and one write, determine_offset fails and the write isn't
45942 in the bad component, just put the read into the bad component.
45943
45944 2014-01-07 Mike Stump <mikestump@comcast.net>
45945 Jakub Jelinek <jakub@redhat.com>
45946
45947 PR pch/59436
45948 * tree-core.h (struct tree_optimization_option): Change optabs
45949 type from unsigned char * to void *.
45950 * optabs.c (init_tree_optimization_optabs): Adjust
45951 TREE_OPTIMIZATION_OPTABS initialization.
45952
45953 2014-01-06 Jakub Jelinek <jakub@redhat.com>
45954
45955 PR target/59644
45956 * config/i386/i386.h (struct machine_function): Add
45957 no_drap_save_restore field.
45958 * config/i386/i386.c (ix86_save_reg): Use
45959 !cfun->machine->no_drap_save_restore instead of
45960 crtl->stack_realign_needed.
45961 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
45962 this function clears frame_pointer_needed. Set
45963 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
45964 and DRAP reg is needed.
45965
45966 2014-01-06 Marek Polacek <polacek@redhat.com>
45967
45968 PR c/57773
45969 * doc/implement-c.texi: Mention that other integer types are
45970 permitted as bit-field types in strictly conforming mode.
45971
45972 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
45973
45974 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
45975 is newly allocated.
45976
45977 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
45978
45979 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
45980
45981 2014-01-06 Martin Jambor <mjambor@suse.cz>
45982
45983 PR ipa/59008
45984 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
45985 to int.
45986 * ipa-prop.c (ipa_print_node_params): Fix indentation.
45987
45988 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
45989
45990 PR debug/59350
45991 PR debug/59510
45992 * var-tracking.c (add_stores): Preserve the value of the source even if
45993 we don't record the store.
45994
45995 2014-01-06 Terry Guo <terry.guo@arm.com>
45996
45997 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
45998
45999 2014-01-05 Iain Sandoe <iain@codesourcery.com>
46000
46001 PR bootstrap/59541
46002 * config/darwin.c (darwin_function_section): Adjust return values to
46003 correspond to optimisation changes made in r206070.
46004
46005 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
46006
46007 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
46008 from prefetch_block tune setting.
46009 (nocona_cost): Correct size of prefetch block to 64.
46010
46011 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
46012
46013 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
46014 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
46015 used to save the static chain register in the computation of the offset
46016 from which the FP registers need to be restored.
46017
46018 2014-01-04 Jakub Jelinek <jakub@redhat.com>
46019
46020 PR tree-optimization/59519
46021 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
46022 ICE if get_current_def (current_new_name) is already non-NULL, as long
46023 as it is a phi result of some other phi in *new_exit_bb that has
46024 the same argument.
46025
46026 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
46027 or vmovdqu* for misaligned_operand.
46028 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
46029 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
46030 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
46031 aligned_mem for AVX512F masked aligned load and store builtins and for
46032 non-temporal moves.
46033
46034 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
46035
46036 PR tree-optimization/59651
46037 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
46038 Address range for negative step should be added by TYPE_SIZE_UNIT.
46039
46040 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
46041
46042 * config/m68k/m68k.c (handle_move_double): Handle pushes with
46043 overlapping registers also for registers other than the stack pointer.
46044
46045 2014-01-03 Marek Polacek <polacek@redhat.com>
46046
46047 PR other/59661
46048 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
46049 __builtin_FILE.
46050
46051 2014-01-03 Jakub Jelinek <jakub@redhat.com>
46052
46053 PR target/59625
46054 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
46055 asm goto as jump.
46056
46057 * config/i386/i386.md (MODE_SIZE): New mode attribute.
46058 (push splitter): Use <P:MODE_SIZE> instead of
46059 GET_MODE_SIZE (<P:MODE>mode).
46060 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
46061 (mov -1, reg peephole2): Likewise.
46062 * config/i386/sse.md (*mov<mode>_internal,
46063 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
46064 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
46065 *<code><mode>3, *andnot<mode>3<mask_name>,
46066 <mask_codefor><code><mode>3<mask_name>): Likewise.
46067 * config/i386/subst.md (mask_mode512bit_condition,
46068 sd_mask_mode512bit_condition): Likewise.
46069
46070 2014-01-02 Xinliang David Li <davidxl@google.com>
46071
46072 PR tree-optimization/59303
46073 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
46074 (dump_predicates): Better output format.
46075 (pred_equal_p): New function.
46076 (is_neq_relop_p): Ditto.
46077 (is_neq_zero_form_p): Ditto.
46078 (pred_expr_equal_p): Ditto.
46079 (pred_neg_p): Ditto.
46080 (simplify_pred): Ditto.
46081 (simplify_preds_2): Ditto.
46082 (simplify_preds_3): Ditto.
46083 (simplify_preds_4): Ditto.
46084 (simplify_preds): Ditto.
46085 (push_pred): Ditto.
46086 (push_to_worklist): Ditto.
46087 (get_pred_info_from_cmp): Ditto.
46088 (is_degenerated_phi): Ditto.
46089 (normalize_one_pred_1): Ditto.
46090 (normalize_one_pred): Ditto.
46091 (normalize_one_pred_chain): Ditto.
46092 (normalize_preds): Ditto.
46093 (normalize_cond_1): Remove function.
46094 (normalize_cond): Ditto.
46095 (is_gcond_subset_of): Ditto.
46096 (is_subset_of_any): Ditto.
46097 (is_or_set_subset_of): Ditto.
46098 (is_and_set_subset_of): Ditto.
46099 (is_norm_cond_subset_of): Ditto.
46100 (pred_chain_length_cmp): Ditto.
46101 (convert_control_dep_chain_into_preds): Type change.
46102 (find_predicates): Ditto.
46103 (find_def_preds): Ditto.
46104 (destroy_predicates_vecs): Ditto.
46105 (find_matching_predicates_in_rest_chains): Ditto.
46106 (use_pred_not_overlap_with_undef_path_pred): Ditto.
46107 (is_pred_expr_subset): Ditto.
46108 (is_pred_chain_subset_of): Ditto.
46109 (is_included_in): Ditto.
46110 (is_superset_of): Ditto.
46111
46112 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
46113
46114 Update copyright years.
46115
46116 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
46117
46118 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
46119 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
46120 config/arc/arc.md, config/arc/arc.opt,
46121 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
46122 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
46123 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
46124 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
46125 config/linux-protos.h, config/linux.c, config/winnt-c.c,
46126 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
46127 vtable-verify.c, vtable-verify.h: Use the standard form for the
46128 copyright notice.
46129
46130 2014-01-02 Tobias Burnus <burnus@net-b.de>
46131
46132 * gcc.c (process_command): Update copyright notice dates.
46133 * gcov-dump.c: Ditto.
46134 * gcov.c: Ditto.
46135 * doc/cpp.texi: Bump @copying's copyright year.
46136 * doc/cppinternals.texi: Ditto.
46137 * doc/gcc.texi: Ditto.
46138 * doc/gccint.texi: Ditto.
46139 * doc/gcov.texi: Ditto.
46140 * doc/install.texi: Ditto.
46141 * doc/invoke.texi: Ditto.
46142
46143 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
46144
46145 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
46146
46147 2014-01-01 Jakub Jelinek <jakub@redhat.com>
46148
46149 * config/i386/sse.md (*mov<mode>_internal): Guard
46150 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
46151
46152 PR rtl-optimization/59647
46153 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
46154 new_rtx into UNSIGNED_FLOAT rtxes.
46155 \f
46156 Copyright (C) 2014 Free Software Foundation, Inc.
46157
46158 Copying and distribution of this file, with or without modification,
46159 are permitted in any medium without royalty provided the copyright
46160 notice and this notice are preserved.