]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
arm-cores.def: Add support for -mcpu=cortex-m0.small-multiply,cortex-m0plus.small...
[thirdparty/gcc.git] / gcc / ChangeLog
1 2014-11-06 Hale Wang <Hale.Wang@arm.com>
2
3 * config/arm/arm-cores.def: Add support for
4 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
5 cortex-m1.small-multiply.
6 * config/arm/arm-tables.opt: Regenerate.
7 * config/arm/arm-tune.md: Regenerate.
8 * config/arm/arm.c: Update the rtx-costs for MUL.
9 * config/arm/bpabi.h: Handle
10 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
11 cortex-m1.small-multiply.
12 * doc/invoke.texi: Document
13 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
14 cortex-m1.small-multiply.
15 * testsuite/gcc.target/arm/small-multiply-m0-1.c: New test case.
16 * testsuite/gcc.target/arm/small-multiply-m0-2.c: Likewise.
17 * testsuite/gcc.target/arm/small-multiply-m0-3.c: Likewise.
18 * testsuite/gcc.target/arm/small-multiply-m0plus-1.c: Likewise.
19 * testsuite/gcc.target/arm/small-multiply-m0plus-2.c: Likewise.
20 * testsuite/gcc.target/arm/small-multiply-m0plus-3.c: Likewise.
21 * testsuite/gcc.target/arm/small-multiply-m1-1.c: Likewise.
22 * testsuite/gcc.target/arm/small-multiply-m1-2.c: Likewise.
23 * testsuite/gcc.target/arm/small-multiply-m1-3.c: Likewise.
24
25 2014-11-06 Hale Wang <Hale.Wang@arm.com>
26
27 * config/arm/arm.c: Add cortex-m7 tune.
28 * config/arm/arm-cores.def: Use cortex-m7 tune.
29
30 2014-11-05 Uros Bizjak <ubizjak@gmail.com>
31
32 PR target/63538
33 * config/i386/i386.c (in_large_data_p): Reject automatic variables.
34 (ix86_encode_section_info): Do not check for non-automatic varibles
35 when setting SYMBOL_FLAG_FAR_ADDR flag.
36 (x86_64_elf_select_section): Do not check ix86_cmodel here.
37 (x86_64_elf_unique_section): Ditto.
38 (x86_elf_aligned_common): Emit tab before .largecomm.
39
40 2014-11-05 Joseph Myers <joseph@codesourcery.com>
41
42 PR preprocessor/9449
43 * doc/cpp.texi (Character sets, Tokenization)
44 (Implementation-defined behavior): Don't refer to UCNs in
45 identifiers requiring -fextended-identifiers.
46 * doc/cppopts.texi (-fextended-identifiers): Document as enabled
47 by default for C99 and later and C++.
48 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to extended
49 identifiers needing -fextended-identifiers.
50
51 2014-11-05 Ilya Tocar <ilya.tocar@intel.com>
52
53 * config/i386/i386.c (expand_vec_perm_pshufb): Try vpermq/vpermd
54 for 512-bit wide modes.
55 (expand_vec_perm_1): Use correct versions of patterns.
56 * config/i386/sse.md (avx512f_vec_dup<mode>_1): New.
57 (vashr<mode>3<mask_name>): Split V8HImode and V16QImode.
58
59 2014-11-05 Ilya Enkovich <ilya.enkovich@intel.com>
60
61 * ipa-chkp.c: New.
62 * ipa-chkp.h: New.
63 * tree-chkp.c: New.
64 * tree-chkp.h: New.
65 * tree-chkp-opt.c: New.
66 * rtl-chkp.c: New.
67 * rtl-chkp.h: New.
68 * Makefile.in (OBJS): Add ipa-chkp.o, rtl-chkp.o, tree-chkp.o
69 tree-chkp-opt.o.
70 (GTFILES): Add tree-chkp.c.
71 * mode-classes.def (MODE_POINTER_BOUNDS): New.
72 * tree.def (POINTER_BOUNDS_TYPE): New.
73 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
74 (POINTER_BOUNDS_MODE): New.
75 (make_pointer_bounds_mode): New.
76 * machmode.h (POINTER_BOUNDS_MODE_P): New.
77 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
78 (layout_type): Support POINTER_BOUNDS_TYPE.
79 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
80 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
81 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
82 (type_contains_placeholder_1): Likewise.
83 (build_common_tree_nodes): Initialize
84 pointer_bounds_type_node.
85 * tree.h (POINTER_BOUNDS_TYPE_P): New.
86 (pointer_bounds_type_node): New.
87 (POINTER_BOUNDS_P): New.
88 (BOUNDED_TYPE_P): New.
89 (BOUNDED_P): New.
90 (CALL_WITH_BOUNDS_P): New.
91 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
92 (gimple_call_with_bounds_p): New.
93 (gimple_call_set_with_bounds): New.
94 (gimple_return_retbnd): New.
95 (gimple_return_set_retbnd): New
96 * gimple.c (gimple_build_return): Increase number of ops
97 for return statement.
98 (gimple_build_call_from_tree): Propagate CALL_WITH_BOUNDS_P
99 flag.
100 * gimple-pretty-print.c (dump_gimple_return): Print second op.
101 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
102 * gimplify.c (gimplify_init_constructor): Avoid infinite
103 loop during gimplification of bounds initializer.
104 * calls.c: Include tree-chkp.h, rtl-chkp.h, bitmap.h.
105 (special_function_p): Use original decl name when analyzing
106 instrumentation clone.
107 (arg_data): Add fields special_slot, pointer_arg and
108 pointer_offset.
109 (store_bounds): New.
110 (emit_call_1): Propagate instrumentation flag for CALL.
111 (initialize_argument_information): Compute pointer_arg,
112 pointer_offset and special_slot for pointer bounds arguments.
113 (finalize_must_preallocate): Preallocate when storing bounds
114 in bounds table.
115 (compute_argument_addresses): Skip pointer bounds.
116 (expand_call): Store bounds into tables separately. Return
117 result joined with resulting bounds.
118 * cfgexpand.c: Include tree-chkp.h, rtl-chkp.h.
119 (expand_call_stmt): Propagate bounds flag for CALL_EXPR.
120 (expand_return): Add returned bounds arg. Handle returned bounds.
121 (expand_gimple_stmt_1): Adjust to new expand_return signature.
122 (gimple_expand_cfg): Reset rtx bounds map.
123 * expr.c: Include tree-chkp.h, rtl-chkp.h.
124 (expand_assignment): Handle returned bounds.
125 (store_expr_with_bounds): New. Replaces store_expr with new bounds
126 target argument. Handle bounds returned by calls.
127 (store_expr): Now wraps store_expr_with_bounds.
128 * expr.h (store_expr_with_bounds): New.
129 * function.c: Include tree-chkp.h, rtl-chkp.h.
130 (bounds_parm_data): New.
131 (use_register_for_decl): Do not registerize decls used for bounds
132 stores and loads.
133 (assign_parms_augmented_arg_list): Add bounds of the result
134 structure pointer as the second argument.
135 (assign_parm_find_entry_rtl): Mark bounds are never passed on
136 the stack.
137 (assign_parm_is_stack_parm): Likewise.
138 (assign_parm_load_bounds): New.
139 (assign_bounds): New.
140 (assign_parms): Load bounds and determine a location for
141 returned bounds.
142 (diddle_return_value_1): New.
143 (diddle_return_value): Handle returned bounds.
144 * function.h (rtl_data): Add field for returned bounds.
145 * varasm.c: Include tree-chkp.h.
146 (output_constant): Support POINTER_BOUNDS_TYPE.
147 (output_constant_pool_2): Support MODE_POINTER_BOUNDS.
148 (ultimate_transparent_alias_target): Move up.
149 (make_decl_rtl): For instrumented function use
150 name of the original decl.
151 (assemble_start_function): Mark function as global
152 in case it is instrumentation clone of the global
153 function.
154 (do_assemble_alias): Follow transparent alias chain
155 for identifier. Check if original alias is public.
156 (maybe_assemble_visibility): Use visibility of the
157 original function for instrumented version.
158 (default_unique_section): Likewise.
159 * emit-rtl.c (immed_double_const): Support MODE_POINTER_BOUNDS.
160 (init_emit_once): Build pointer bounds zero constants.
161 * explow.c (trunc_int_for_mode): Support MODE_POINTER_BOUNDS.
162 * target.def (builtin_chkp_function): New.
163 (chkp_bound_type): New.
164 (chkp_bound_mode): New.
165 (chkp_make_bounds_constant): New.
166 (chkp_initialize_bounds): New.
167 (load_bounds_for_arg): New.
168 (store_bounds_for_arg): New.
169 (load_returned_bounds): New.
170 (store_returned_bounds): New.
171 (chkp_function_value_bounds): New.
172 (setup_incoming_vararg_bounds): New.
173 (function_arg): Update hook description with new possible return
174 value CONST_INT.
175 * targhooks.h (default_load_bounds_for_arg): New.
176 (default_store_bounds_for_arg): New.
177 (default_load_returned_bounds): New.
178 (default_store_returned_bounds): New.
179 (default_chkp_bound_type): New.
180 (default_chkp_bound_mode): New.
181 (default_builtin_chkp_function): New.
182 (default_chkp_function_value_bounds): New.
183 (default_chkp_make_bounds_constant): New.
184 (default_chkp_initialize_bounds): New.
185 (default_setup_incoming_vararg_bounds): New.
186 * targhooks.c (default_load_bounds_for_arg): New.
187 (default_store_bounds_for_arg): New.
188 (default_load_returned_bounds): New.
189 (default_store_returned_bounds): New.
190 (default_chkp_bound_type): New.
191 (default_chkp_bound_mode); New.
192 (default_builtin_chkp_function): New.
193 (default_chkp_function_value_bounds): New.
194 (default_chkp_make_bounds_constant): New.
195 (default_chkp_initialize_bounds): New.
196 (default_setup_incoming_vararg_bounds): New.
197 * builtin-types.def (BT_BND): New.
198 (BT_FN_PTR_CONST_PTR): New.
199 (BT_FN_CONST_PTR_CONST_PTR): New.
200 (BT_FN_BND_CONST_PTR): New.
201 (BT_FN_CONST_PTR_BND): New.
202 (BT_FN_PTR_CONST_PTR_SIZE): New.
203 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
204 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
205 (BT_FN_VOID_CONST_PTR_SIZE): New.
206 (BT_FN_VOID_PTR_BND): New.
207 (BT_FN_CONST_PTR_CONST_PTR_CONST_PTR): New.
208 (BT_FN_BND_CONST_PTR_SIZE): New.
209 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
210 (BT_FN_VOID_CONST_PTR_BND_CONST_PTR): New.
211 * chkp-builtins.def: New.
212 * builtins.def: include chkp-builtins.def.
213 (DEF_CHKP_BUILTIN): New.
214 * builtins.c: Include tree-chkp.h and rtl-chkp.h.
215 (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
216 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
217 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
218 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
219 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
220 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
221 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
222 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
223 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_NARROW,
224 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
225 (std_expand_builtin_va_start): Init bounds for va_list.
226 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add
227 __CHKP__ macro when Pointer Bounds Checker is on.
228 * params.def (PARAM_CHKP_MAX_CTOR_SIZE): New.
229 * passes.def (pass_ipa_chkp_versioning): New.
230 (pass_early_local_passes): Renamed to pass_build_ssa_passes.
231 (pass_fixup_cfg): Moved to pass_chkp_instrumentation_passes.
232 (pass_chkp_instrumentation_passes): New.
233 (pass_ipa_chkp_produce_thunks): New.
234 (pass_local_optimization_passes): New.
235 (pass_chkp_opt): New.
236 * tree-pass.h (make_pass_ipa_chkp_versioning): New.
237 (make_pass_ipa_chkp_produce_thunks): New.
238 (make_pass_chkp): New.
239 (make_pass_chkp_opt): New.
240 (make_pass_early_local_passes): Renamed to ...
241 (make_pass_build_ssa_passes): This.
242 (make_pass_chkp_instrumentation_passes): New.
243 (make_pass_local_optimization_passes): New.
244 * passes.c (pass_manager::execute_early_local_passes): Execute
245 early passes in three steps.
246 (execute_all_early_local_passes): Renamed to ...
247 (execute_build_ssa_passes): This.
248 (pass_data_early_local_passes): Renamed to ...
249 (pass_data_build_ssa_passes): This.
250 (pass_early_local_passes): Renamed to ...
251 (pass_build_ssa_passes): This.
252 (pass_data_chkp_instrumentation_passes): New.
253 (pass_chkp_instrumentation_passes): New.
254 (pass_data_local_optimization_passes): New.
255 (pass_local_optimization_passes): New.
256 (make_pass_early_local_passes): Renamed to ...
257 (make_pass_build_ssa_passes): This.
258 (make_pass_chkp_instrumentation_passes): New.
259 (make_pass_local_optimization_passes): New.
260 * c-family/c.opt (fcheck-pointer-bounds): New.
261 (fchkp-check-incomplete-type): New.
262 (fchkp-zero-input-bounds-for-main): New.
263 (fchkp-first-field-has-own-bounds): New.
264 (fchkp-narrow-bounds): New.
265 (fchkp-narrow-to-innermost-array): New.
266 (fchkp-optimize): New.
267 (fchkp-use-fast-string-functions): New.
268 (fchkp-use-nochk-string-functions): New.
269 (fchkp-use-static-bounds): New.
270 (fchkp-use-static-const-bounds): New.
271 (fchkp-treat-zero-dynamic-size-as-infinite): New.
272 (fchkp-check-read): New.
273 (fchkp-check-write): New.
274 (fchkp-store-bounds): New.
275 (fchkp-instrument-calls): New.
276 (fchkp-instrument-marked-only): New.
277 (Wchkp): New.
278 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
279 (handle_bnd_legacy): New.
280 (handle_bnd_instrument): New.
281 (c_common_attribute_table): Add bnd_variable_size, bnd_legacy
282 and bnd_instrument. Fix documentation.
283 (c_common_format_attribute_table): Likewsie.
284 * toplev.c: include tree-chkp.h.
285 (process_options): Check Pointer Bounds Checker is supported.
286 (compile_file): Add chkp_finish_file call.
287 * ipa-cp.c (initialize_node_lattices): Use cgraph_local_p
288 to handle instrumentation clones properly.
289 (propagate_constants_accross_call): Do not propagate
290 through instrumentation thunks.
291 * ipa-pure-const.c (propagate_pure_const): Support
292 IPA_REF_CHKP.
293 * ipa-inline.c (early_inliner): Check edge has summary allocated.
294 * ipa-split.c: Include tree-chkp.h.
295 (find_retbnd): New.
296 (split_part_set_ssa_name_p): New.
297 (consider_split): Do not split retbnd and retval
298 producers.
299 (insert_bndret_call_after): new.
300 (split_function): Propagate Pointer Bounds Checker
301 instrumentation marks and handle returned bounds.
302 * tree-ssa-sccvn.h (vn_reference_op_struct): Transform opcode
303 into bit field and add with_bounds field.
304 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Set
305 with_bounds field for instrumented calls.
306 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Restore
307 CALL_WITH_BOUNDS_P flag for calls.
308 * tree-ssa-ccp.c: Include tree-chkp.h.
309 (insert_clobber_before_stack_restore): Handle
310 BUILT_IN_CHKP_BNDRET calls.
311 * tree-ssa-dce.c: Include tree-chkp.h.
312 (propagate_necessity): For free call fed by alloc check
313 bounds are also provided by the same alloc.
314 (eliminate_unnecessary_stmts): Handle BUILT_IN_CHKP_BNDRET
315 used by free calls.
316 * tree-inline.c: Include tree-chkp.h.
317 (declare_return_variable): Add arg holding
318 returned bounds slot. Create and initialize returned bounds var.
319 (remap_gimple_stmt): Handle returned bounds.
320 Return sequence of statements instead of a single statement.
321 (insert_init_stmt): Add declaration.
322 (remap_gimple_seq): Adjust to new remap_gimple_stmt signature.
323 (copy_bb): Adjust to changed return type of remap_gimple_stmt.
324 Properly handle bounds in va_arg_pack and va_arg_pack_len.
325 (expand_call_inline): Handle returned bounds. Add bounds copy
326 for generated mem to mem assignments.
327 * tree-inline.h (copy_body_data): Add fields retbnd and
328 assign_stmts.
329 * value-prof.c: Include tree-chkp.h.
330 (gimple_ic): Support returned bounds.
331 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
332 with "chkp ctor" and "bnd_legacy" attributes.
333 (symtab_remove_unreachable_nodes): Keep initial values for
334 pointer bounds to be used for checks eliminations.
335 (process_references): Handle IPA_REF_CHKP.
336 (walk_polymorphic_call_targets): Likewise.
337 * ipa-visibility.c (cgraph_externally_visible_p): Mark
338 instrumented 'main' as externally visible.
339 (function_and_variable_visibility): Filter instrumentation
340 thunks.
341 * cgraph.h (cgraph_thunk_info): Add add_pointer_bounds_args
342 field.
343 (cgraph_node): Add instrumented_version, orig_decl and
344 instrumentation_clone fields.
345 (symtab_node::get_alias_target): Allow IPA_REF_CHKP reference.
346 (varpool_node): Add need_bounds_init field.
347 (cgraph_local_p): New.
348 * cgraph.c: Include tree-chkp.h.
349 (cgraph_node::remove): Fix instrumented_version
350 of the referenced node if any.
351 (cgraph_node::dump): Dump instrumentation_clone and
352 instrumented_version fields.
353 (cgraph_node::verify_node): Check correctness of IPA_REF_CHKP
354 references and instrumentation thunks.
355 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Keep
356 all not instrumented instrumentation clones alive.
357 (cgraph_redirect_edge_call_stmt_to_callee): Support
358 returned bounds.
359 * cgraphbuild.c (rebuild_cgraph_edges): Rebuild IPA_REF_CHKP
360 reference.
361 (cgraph_rebuild_references): Likewise.
362 * cgraphunit.c: Include tree-chkp.h.
363 (assemble_thunks_and_aliases): Skip thunks calling instrumneted
364 function version.
365 (varpool_finalize_decl): Register statically initialized decls
366 in Pointer Bounds Checker.
367 (walk_polymorphic_call_targets): Do not mark generated call to
368 __builtin_unreachable as with_bounds.
369 (output_weakrefs): If there are both instrumented and original
370 versions, output only one of them.
371 (cgraph_node::expand_thunk): Set with_bounds flag
372 for created call statement.
373 * ipa-ref.h (ipa_ref_use): Add IPA_REF_CHKP.
374 (ipa_ref): increase size of use field.
375 * symtab.c (ipa_ref_use_name): Add element for IPA_REF_CHKP.
376 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
377 (ctor_for_folding): Do not fold constant bounds vars.
378 * lto-streamer.h (LTO_minor_version): Change minor version from
379 0 to 1.
380 * lto-cgraph.c (compute_ltrans_boundary): Keep initial values for
381 pointer bounds.
382 (lto_output_node): Output instrumentation_clone,
383 thunk.add_pointer_bounds_args and orig_decl field.
384 (lto_output_ref): Adjust to new ipa_ref::use field size.
385 (input_overwrite_node): Read instrumentation_clone field.
386 (input_node): Read thunk.add_pointer_bounds_args and orig_decl
387 fields.
388 (input_ref): Adjust to new ipa_ref::use field size.
389 (input_cgraph_1): Compute instrumented_version fields and restore
390 IDENTIFIER_TRANSPARENT_ALIAS chains.
391 (lto_output_varpool_node): Output
392 need_bounds_init value.
393 (input_varpool_node): Read need_bounds_init value.
394 * lto-partition.c (add_symbol_to_partition_1): Keep original
395 and instrumented versions together.
396 (privatize_symbol_name): Restore transparent alias chain if required.
397 (add_references_to_partition): Add references to pointer bounds vars.
398 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
399 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
400 (gen_type_die_with_usage): Skip pointer bounds.
401 (dwarf2out_global_decl): Likewise.
402 (is_base_type): Support POINTER_BOUNDS_TYPE.
403 (gen_formal_types_die): Skip pointer bounds.
404 (gen_decl_die): Likewise.
405 * var-tracking.c (vt_add_function_parameters): Skip
406 bounds parameters.
407 * ipa-icf.c (sem_function::merge): Do not merge when instrumentation
408 thunk still exists.
409 (sem_variable::merge): Reset need_bounds_init flag.
410 * doc/extend.texi: Document Pointer Bounds Checker built-in functions
411 and attributes.
412 * doc/tm.texi.in (TARGET_LOAD_BOUNDS_FOR_ARG): New.
413 (TARGET_STORE_BOUNDS_FOR_ARG): New.
414 (TARGET_LOAD_RETURNED_BOUNDS): New.
415 (TARGET_STORE_RETURNED_BOUNDS): New.
416 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
417 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
418 (TARGET_BUILTIN_CHKP_FUNCTION): New.
419 (TARGET_CHKP_BOUND_TYPE): New.
420 (TARGET_CHKP_BOUND_MODE): New.
421 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
422 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
423 * doc/tm.texi: Regenerated.
424 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
425 (BND32mode): New.
426 (BND64mode): New.
427 * doc/invoke.texi (-mmpx): New.
428 (-mno-mpx): New.
429 (chkp-max-ctor-size): New.
430 * config/i386/constraints.md (w): New.
431 (Ti): New.
432 (Tb): New.
433 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
434 * config/i386/i386-modes.def (BND32): New.
435 (BND64): New.
436 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
437 * config/i386/i386.c: Include tree-chkp.h, rtl-chkp.h, tree-iterator.h.
438 (regclass_map): Add bound registers.
439 (dbx_register_map): Likewise.
440 (dbx64_register_map): Likewise.
441 (svr4_dbx_register_map): Likewise.
442 (isa_opts): Add -mmpx.
443 (PTA_MPX): New.
444 (ix86_option_override_internal): Support MPX ISA.
445 (ix86_conditional_register_usage): Support bound registers.
446 (ix86_code_end): Add MPX bnd prefix.
447 (output_set_got): Likewise.
448 (print_reg): Avoid prefixes for bound registers.
449 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
450 (ix86_print_operand_punct_valid_p): Likewise.
451 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
452 UNSPEC_BNDLDX_ADDR.
453 (ix86_output_call_insn): Add MPX bnd prefix to branch instructions.
454 (ix86_class_likely_spilled_p): Add bound regs support.
455 (ix86_hard_regno_mode_ok): Likewise.
456 (x86_order_regs_for_local_alloc): Likewise.
457 (ix86_bnd_prefixed_insn_p): New.
458 (ix86_builtins): Add
459 IX86_BUILTIN_BNDMK, IX86_BUILTIN_BNDSTX,
460 IX86_BUILTIN_BNDLDX, IX86_BUILTIN_BNDCL,
461 IX86_BUILTIN_BNDCU, IX86_BUILTIN_BNDRET,
462 IX86_BUILTIN_BNDNARROW, IX86_BUILTIN_BNDINT,
463 IX86_BUILTIN_SIZEOF, IX86_BUILTIN_BNDLOWER,
464 IX86_BUILTIN_BNDUPPER.
465 (builtin_isa): Add leaf_p and nothrow_p fields.
466 (def_builtin): Initialize leaf_p and nothrow_p.
467 (ix86_add_new_builtins): Handle leaf_p and nothrow_p
468 flags.
469 (bdesc_mpx): New.
470 (bdesc_mpx_const): New.
471 (ix86_init_mpx_builtins): New.
472 (ix86_init_builtins): Call ix86_init_mpx_builtins.
473 (ix86_emit_cmove): New.
474 (ix86_emit_move_max): New.
475 (ix86_expand_builtin): Expand IX86_BUILTIN_BNDMK,
476 IX86_BUILTIN_BNDSTX, IX86_BUILTIN_BNDLDX,
477 IX86_BUILTIN_BNDCL, IX86_BUILTIN_BNDCU,
478 IX86_BUILTIN_BNDRET, IX86_BUILTIN_BNDNARROW,
479 IX86_BUILTIN_BNDINT, IX86_BUILTIN_SIZEOF,
480 IX86_BUILTIN_BNDLOWER, IX86_BUILTIN_BNDUPPER.
481 (ix86_function_value_bounds): New.
482 (ix86_builtin_mpx_function): New.
483 (ix86_get_arg_address_for_bt): New.
484 (ix86_load_bounds): New.
485 (ix86_store_bounds): New.
486 (ix86_load_returned_bounds): New.
487 (ix86_store_returned_bounds): New.
488 (ix86_mpx_bound_mode): New.
489 (ix86_make_bounds_constant): New.
490 (ix86_initialize_bounds):
491 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
492 (TARGET_STORE_BOUNDS_FOR_ARG): New.
493 (TARGET_LOAD_RETURNED_BOUNDS): New.
494 (TARGET_STORE_RETURNED_BOUNDS): New.
495 (TARGET_CHKP_BOUND_MODE): New.
496 (TARGET_BUILTIN_CHKP_FUNCTION): New.
497 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
498 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
499 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
500 (ix86_option_override_internal): Do not
501 support x32 with MPX.
502 (init_cumulative_args): Init stdarg, bnd_regno, bnds_in_bt
503 and force_bnd_pass.
504 (function_arg_advance_32): Return number of used integer
505 registers.
506 (function_arg_advance_64): Likewise.
507 (function_arg_advance_ms_64): Likewise.
508 (ix86_function_arg_advance): Handle pointer bounds.
509 (ix86_function_arg): Likewise.
510 (ix86_function_value_regno_p): Mark fisrt bounds registers as
511 possible function value.
512 (ix86_function_value_1): Handle pointer bounds type/mode
513 (ix86_return_in_memory): Likewise.
514 (ix86_print_operand): Analyse insn to decide abounf "bnd" prefix.
515 (ix86_expand_call): Generate returned bounds.
516 (ix86_setup_incoming_vararg_bounds): New.
517 (ix86_va_start): Initialize bounds for pointers in va_list.
518 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
519 * config/i386/i386.h (TARGET_MPX): New.
520 (TARGET_MPX_P): New.
521 (FIRST_PSEUDO_REGISTER): Fix to new value.
522 (FIXED_REGISTERS): Add bound registers.
523 (CALL_USED_REGISTERS): Likewise.
524 (REG_ALLOC_ORDER): Likewise.
525 (HARD_REGNO_NREGS): Likewise.
526 (VALID_BND_REG_MODE): New.
527 (FIRST_BND_REG): New.
528 (LAST_BND_REG): New.
529 (reg_class): Add BND_REGS.
530 (REG_CLASS_NAMES): Likewise.
531 (REG_CLASS_CONTENTS): Likewise.
532 (BND_REGNO_P): New.
533 (ANY_BND_REG_P): New.
534 (BNDmode): New.
535 (HI_REGISTER_NAMES): Add bound registers.
536 (ix86_args): Add bnd_regno, bnds_in_bt, force_bnd_pass and
537 stdarg fields.
538 * config/i386/i386.md (UNSPEC_BNDMK): New.
539 (UNSPEC_BNDMK_ADDR): New.
540 (UNSPEC_BNDSTX): New.
541 (UNSPEC_BNDLDX): New.
542 (UNSPEC_BNDLDX_ADDR): New.
543 (UNSPEC_BNDCL): New.
544 (UNSPEC_BNDCU): New.
545 (UNSPEC_BNDCN): New.
546 (UNSPEC_MPX_FENCE): New.
547 (UNSPEC_SIZEOF): New.
548 (BND0_REG): New.
549 (BND1_REG): New.
550 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
551 (length_immediate): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
552 (prefix_rep): Check for bnd prefix.
553 (prefix_0f): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
554 (length_nobnd): New.
555 (length): Use length_nobnd when specified.
556 (memory): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
557 (BND): New.
558 (bnd_ptr): New.
559 (BNDCHECK): New.
560 (bndcheck): New.
561 (*jcc_1): Add MPX bnd prefix.
562 (*jcc_2): Likewise.
563 (jump): Likewise.
564 (*indirect_jump): Likewise.
565 (*tablejump_1): Likewise.
566 (simple_return_internal): Likewise.
567 (simple_return_internal_long): Likewise.
568 (simple_return_pop_internal): Likewise.
569 (simple_return_indirect_internal): Likewise.
570 (<mode>_mk): New.
571 (*<mode>_mk): New.
572 (mov<mode>): New.
573 (*mov<mode>_internal_mpx): New.
574 (<mode>_<bndcheck>): New.
575 (*<mode>_<bndcheck>): New.
576 (<mode>_ldx): New.
577 (*<mode>_ldx): New.
578 (<mode>_stx): New.
579 (*<mode>_stx): New.
580 move_size_reloc_<mode>): New.
581 * config/i386/predicates.md (address_mpx_no_base_operand): New.
582 (address_mpx_no_index_operand): New.
583 (bnd_mem_operator): New.
584 (symbol_operand): New.
585 (x86_64_immediate_size_operand): New.
586 * config/i386/i386.opt (mmpx): New.
587 * config/i386/i386-builtin-types.def (BND): New.
588 (ULONG): New.
589 (BND_FTYPE_PCVOID_ULONG): New.
590 (VOID_FTYPE_BND_PCVOID): New.
591 (VOID_FTYPE_PCVOID_PCVOID_BND): New.
592 (BND_FTYPE_PCVOID_PCVOID): New.
593 (BND_FTYPE_PCVOID): New.
594 (BND_FTYPE_BND_BND): New.
595 (PVOID_FTYPE_PVOID_PVOID_ULONG): New.
596 (PVOID_FTYPE_PCVOID_BND_ULONG): New.
597 (ULONG_FTYPE_VOID): New.
598 (PVOID_FTYPE_BND): New.
599
600 2014-11-05 Bernd Schmidt <bernds@codesourcery.com>
601
602 * passes.def (pass_compute_alignments, pass_duplicate_computed_gotos,
603 pass_variable_tracking, pass_free_cfg, pass_machine_reorg,
604 pass_cleanup_barriers, pass_delay_slots,
605 pass_split_for_shorten_branches, pass_convert_to_eh_region_ranges,
606 pass_shorten_branches, pass_est_nothrow_function_flags,
607 pass_dwarf2_frame, pass_final): Move outside of pass_postreload and
608 into pass_late_compilation.
609 (pass_late_compilation): Add.
610 * passes.c (pass_data_late_compilation, pass_late_compilation,
611 make_pass_late_compilation): New.
612 * timevar.def (TV_LATE_COMPILATION): New.
613
614 * target.def (omit_struct_return_reg): New data hook.
615 * doc/tm.texi.in: Add @hook TARGET_OMIT_STRUCT_RETURN_REG.
616 * doc/tm.texi: Regenerate.
617 * function.c (expand_function_end): Use it.
618
619 * target.def (no_register_allocation): New data hook.
620 * doc/tm.texi.in: Add @hook TARGET_NO_REGISTER_ALLOCATION.
621 * doc/tm.texi: Regenerate.
622 * ira.c (gate_ira): New function.
623 (pass_data_ira): Set has_gate.
624 (pass_ira): Add a gate function.
625 (pass_data_reload): Likewise.
626 (pass_reload): Add a gate function.
627 (pass_ira): Use it.
628 * reload1.c (eliminate_regs): If reg_eliminate_is NULL, assert that
629 no register allocation happens on the target and return.
630 * final.c (alter_subreg): Ensure register is not a pseudo before
631 calling simplify_subreg.
632 (output_operand): Assert that x isn't a pseudo only if doing
633 register allocation.
634
635 * dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
636 global vars.
637
638 * optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
639 sorry if necessary.
640
641 2014-11-05 Alex Velenko <Alex.Velenko@arm.com>
642
643 * simplify-rtx.c (simplify_binary_operation_1): Div check added.
644 * rtl.h (SUBREG_P): New macro added.
645
646 2014-11-05 Tejas Belagod <tejas.belagod@arm.com>
647
648 * config/aarch64/aarch64-builtins.c
649 (aarch64_build_scalar_type): Remove.
650 (aarch64_scalar_builtin_types, aarch64_simd_type,
651 aarch64_simd_type, aarch64_mangle_builtin_scalar_type,
652 aarch64_mangle_builtin_vector_type,
653 aarch64_mangle_builtin_type, aarch64_simd_builtin_std_type,
654 aarch64_lookup_simd_builtin_type, aarch64_simd_builtin_type,
655 aarch64_init_simd_builtin_types,
656 aarch64_init_simd_builtin_scalar_types): New.
657 (aarch64_init_simd_builtins): Refactor.
658 (aarch64_init_crc32_builtins): Fixup with qualifier.
659 * config/aarch64/aarch64-protos.h
660 (aarch64_mangle_builtin_type): Export.
661 * config/aarch64/aarch64-simd-builtin-types.def: New.
662 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Remove.
663 (aarch64_mangle_type): Refactor.
664 * config/aarch64/arm_neon.h: Declare vector types based on
665 internal types.
666 * config/aarch64/t-aarch64: Update dependency.
667
668 2014-11-04 Pat Haugen <pthaugen@us.ibm.com>
669
670 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl,
671 atomic_update_decl): Guard declaration with #ifdef.
672
673 2014-11-04 Marek Polacek <polacek@redhat.com>
674
675 * sanopt.c (sanopt_optimize_walker): Remove unused variables.
676
677 2014-11-04 Marek Polacek <polacek@redhat.com>
678
679 * Makefile.in (OBJS): Add sanopt.o.
680 (GTFILES): Add sanopt.c.
681 * asan.h (asan_expand_check_ifn): Declare.
682 * asan.c (asan_expand_check_ifn): No longer static.
683 (class pass_sanopt, pass_sanopt::execute, make_pass_sanopt): Move...
684 * sanopt.c: ...here. New file.
685
686 2014-11-04 Jiong Wang <jiong.wang@arm.com>
687 2014-11-04 Wilco Dijkstra <wilco.dijkstra@arm.com>
688
689 PR target/63293
690 * config/aarch64/aarch64.c (aarch64_expand_epiloue): Add barriers before
691 stack adjustment.
692
693 2014-11-04 Bernd Schmidt <bernds@codesourcery.com>
694
695 * combine.c (combine_simplify_rtx): In STORE_FLAG_VALUE == -1 case,
696 also verify that mode is equal to the mode of op0.
697
698 * bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn,
699 emit into a sequence instead.
700
701 2014-11-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
702
703 * config/sh/sh.c (emit_fpu_switch): Drop unused automatic variable.
704
705 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
706
707 config/arm/neon.md (reduc_smin_<mode> *2): Rename to...
708 (reduc_smin_scal_<mode> *2): ...this; extract scalar result.
709 (reduc_smax_<mode> *2): Rename to...
710 (reduc_smax_scal_<mode> *2): ...this; extract scalar result.
711 (reduc_umin_<mode> *2): Rename to...
712 (reduc_umin_scal_<mode> *2): ...this; extract scalar result.
713 (reduc_umax_<mode> *2): Rename to...
714 (reduc_umax_scal_<mode> *2): ...this; extract scalar result.
715
716 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
717
718 config/arm/neon.md (reduc_plus_*): Rename to...
719 (reduc_plus_scal_*): ...this; reduce to temp and extract scalar result.
720
721 2014-11-04 Michael Collison <michael.collison@linaro.org>
722
723 * config/aarch64/iterators.md (lconst_atomic): New mode attribute
724 to support constraints for CONST_INT in atomic operations.
725 * config/aarch64/atomics.md
726 (atomic_<atomic_optab><mode>): Use lconst_atomic constraint.
727 (atomic_nand<mode>): Likewise.
728 (atomic_fetch_<atomic_optab><mode>): Likewise.
729 (atomic_fetch_nand<mode>): Likewise.
730 (atomic_<atomic_optab>_fetch<mode>): Likewise.
731 (atomic_nand_fetch<mode>): Likewise.
732
733 2014-11-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
734
735 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in definition
736 of __ARM_FEATURE_IDIV.
737
738 2014-11-04 Marek Polacek <polacek@redhat.com>
739
740 * ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.
741
742 2014-11-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
743
744 * config/rx/rx.c (rx_handle_func_attribute): Mark unused argument.
745
746 2014-11-04 Zhenqiang Chen <zhenqiang.chen@arm.com>
747
748 Revert:
749 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
750 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
751 Allow CC mode if HAVE_cbranchcc4.
752
753 2014-11-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
754
755 * godump.c (go_format_type): Rewrite RECORD_TYPE nad UNION_TYPE support
756 with -fdump-go-spec. Anonymous substructures are now flattened and
757 replaced by their fields (record) or the first named, non-bitfield
758 field (union).
759
760 2014-11-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
761
762 * input.c (expand_location_to_spelling_point): Fix typo.
763 (expansion_point_location_if_in_system_header): Fix comment.
764
765 2014-11-03 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
766
767 * config/avr/gen-avr-mmcu-specs.c: Remove unnecessary format specifier.
768
769 2014-11-03 Richard Biener <rguenther@suse.de>
770
771 * tree-eh.c (operation_could_trap_helper_p): Handle conversions
772 like ordinary operations.
773 * gimplify.c (gimplify_conversion): Gimplify CONVERT_EXPR
774 as NOP_EXPR.
775
776 2014-11-03 Joseph Myers <joseph@codesourcery.com>
777
778 * configure.ac (TARGET_GLIBC_MAJOR, TARGET_GLIBC_MINOR): Define
779 macros.
780 * configure, config.h.in: Regenerate.
781 * config/rs6000/linux.h [TARGET_GLIBC_MAJOR > 2 ||
782 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
783 (RS6000_GLIBC_ATOMIC_FENV): New macro.
784 * config/rs6000/linux64.h [TARGET_GLIBC_MAJOR > 2 ||
785 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
786 (RS6000_GLIBC_ATOMIC_FENV): New macro.
787 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl)
788 (atomic_update_decl): New static variables.
789 (rs6000_atomic_assign_expand_fenv) [RS6000_GLIBC_ATOMIC_FENV]:
790 Generate calls to __atomic_feholdexcept, __atomic_feclearexcept
791 and __atomic_feupdateenv for soft-float and no-FPRs.
792
793 2014-11-03 Richard Biener <rguenther@suse.de>
794
795 * match.pd: Add two abs patterns. Announce tree_expr_nonnegative_p.
796 Also drop bogus FLOAT_EXPR and FIX_TRUNC_EXPR.
797 * fold-const.c (fold_unary_loc): Remove them here.
798 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
799 * gimple-fold.c (fold_gimple_assign): Remove now obsolete
800 GIMPLE_UNARY_RHS case.
801 (gimple_fold_stmt_to_constant_1): Likewise.
802 (replace_stmt_with_simplification): Fix inverted comparison.
803
804 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
805
806 PR tree-optimization/60770
807 * tree-into-ssa.c (rewrite_update_stmt): Return whether the
808 statement should be removed.
809 (maybe_register_def): Likewise. Replace clobbers with default
810 definitions.
811 (rewrite_dom_walker::before_dom_children): Remove statement if
812 rewrite_update_stmt says so.
813 * tree-ssa-live.c: Include tree-ssa.h.
814 (set_var_live_on_entry): Do not mark undefined variables as live.
815 (verify_live_on_entry): Do not check undefined variables.
816 * tree-ssa.h (ssa_undefined_value_p): New parameter for the case
817 of partially undefined variables.
818 * tree-ssa.c (ssa_undefined_value_p): Likewise.
819 (execute_update_addresses_taken): Do not drop clobbers.
820
821 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
822
823 PR tree-optimization/63666
824 * fold-const.c: Include "optabs.h".
825 (fold_ternary_loc) <VEC_PERM_EXPR>: Avoid canonicalizing a
826 can_vec_perm_p permutation to one that is not.
827
828 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
829
830 * ifcvt.c (noce_try_store_flag_mask): Check rtx cost.
831
832 2014-11-03 Andrew Pinski <apinski@cavium.com>
833
834 * config/mips/mips-cpus.def (octeon3): New cpu.
835 * config/mips/mips.c (mips_rtx_cost_data): Add octeon3.
836 (mips_print_operand <case 'T', case 't'>): Fix a bug as the mode
837 of the comparison no longer matches mode of the operands.
838 (mips_issue_rate): Handle PROCESSOR_OCTEON3.
839 * config/mips/mips.h (TARGET_OCTEON): Add Octeon3.
840 (TARGET_OCTEON2): Likewise.
841 (TUNE_OCTEON): Add Octeon3.
842 * config/mips/mips.md (processor): Add octeon3.
843 * config/mips/octeon.md (octeon_fpu): New automaton and cpu_unit.
844 (octeon_arith): Add octeon3.
845 (octeon_condmove): Remove.
846 (octeon_condmove_o1): New reservation.
847 (octeon_condmove_o2): New reservation.
848 (octeon_condmove_o3_int_on_cc): New reservation.
849 (octeon_load_o2): Add octeon3.
850 (octeon_cop_o2): Likewise.
851 (octeon_store): Likewise.
852 (octeon_brj_o2): Likewise.
853 (octeon_imul3_o2): Likewise.
854 (octeon_imul_o2): Likewise.
855 (octeon_mfhilo_o2): Likewise.
856 (octeon_imadd_o2): Likewise.
857 (octeon_idiv_o2_si): Likewise.
858 (octeon_idiv_o2_di): Likewise.
859 (octeon_fpu): Add to the automaton.
860 (octeon_fpu): New cpu unit.
861 (octeon_condmove_o2): Check for non floating point modes.
862 (octeon_load_o2): Add prefetchx.
863 (octeon_cop_o2): Don't check for octeon3.
864 (octeon3_faddsubcvt): New reservation.
865 (octeon3_fmul): Likewise.
866 (octeon3_fmadd): Likewise.
867 (octeon3_div_sf): Likewise.
868 (octeon3_div_df): Likewise.
869 (octeon3_sqrt_sf): Likewise.
870 (octeon3_sqrt_df): Likewise.
871 (octeon3_rsqrt_sf): Likewise.
872 (octeon3_rsqrt_df): Likewise.
873 (octeon3_fabsnegmov): Likewise.
874 (octeon_fcond): Likewise.
875 (octeon_fcondmov): Likewise.
876 (octeon_fpmtc1): Likewise.
877 (octeon_fpmfc1): Likewise.
878 (octeon_fpload): Likewise.
879 (octeon_fpstore): Likewise.
880 * config/mips/mips-tables.opt: Regenerate.
881 * doc/invoke.texi (-march=@var{arch}): Add octeon3.
882
883 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
884
885 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
886 Allow CC mode if HAVE_cbranchcc4.
887
888 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
889
890 * config/arc/arc.c (write_ext_corereg_1): Delete.
891 (arc_write_ext_corereg): Use FOR_EACH_SUBRTX.
892
893 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
894
895 * config/arc/arc.c (arc600_corereg_hazard_1): Delete.
896 (arc600_corereg_hazard): Use FOR_EACH_SUBRTX.
897
898 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
899
900 * config/arc/arc.c (arc_rewrite_small_data_p): Constify argument.
901 (small_data_pattern_1): Delete.
902 (small_data_pattern): Use FOR_EACH_SUBRTX.
903
904 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
905
906 * config/arc/arc.c: Include rtl-iter.h.
907 (arc_rewrite_small_data_1): Delete.
908 (arc_rewrite_small_data): Use FOR_EACH_SUBRTX_PTR.
909
910 2014-11-02 Michael Collison <michael.collison@linaro.org>
911
912 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update
913 to support vector modes.
914 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
915
916 2014-11-01 Andrew MacLeod <amacleod@redhat,com>
917
918 * optabs.h: Flatten insn-codes.h to source files. Move some prototypes
919 and structs to genopinit.c. Adjust protyoptypes to match optabs.c.
920 * genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
921 * optabs.c: (gen_move_insn): Move to expr.c.
922 * expr.h: Move protypes and enums to optabs.h.
923 * expr.c: (gen_move_insn): Relocate from optabs.c.
924 * genemit.c (main): Include insn-codes.h.
925 * gengtype.c (open_base_files): Include insn-codes.h.
926 * asan.c: Include insn-codes.h.
927 * bb-reorder.c: Ditto.
928 * builtins.c: Ditto.
929 * calls.c: Ditto.
930 * cfgexpand.c: Ditto.
931 * cilk-common.c: Ditto.
932 * combine.c: Ditto.
933 * dojump.c: Ditto.
934 * dse.c: Ditto.
935 * except.c: Ditto.
936 * explow.c: Ditto.
937 * expmed.c: Ditto.
938 * function.c: Ditto.
939 * ifcvt.c: Ditto.
940 * internal-fn.c: Ditto.
941 * loop-unroll.c: Ditto.
942 * lra.c: Ditto.
943 * modulo-sched.c: Ditto.
944 * omp-low.c: Ditto.
945 * postreload.c: Ditto.
946 * ree.c: Ditto.
947 * reload.c: Ditto.
948 * reload1.c: Ditto.
949 * shrink-wrap.c: Ditto.
950 * simplify-rtx.c: Ditto.
951 * stmt.c: Ditto.
952 * target-globals.c: Ditto.
953 * targhooks.c: Ditto.
954 * toplev.c: Ditto.
955 * tree-if-conv.c: Ditto.
956 * tree-ssa-forwprop.c: Ditto.
957 * tree-ssa-loop-prefetch.c: Ditto.
958 * tree-ssa-math-opts.c: Ditto.
959 * tree-ssa-phiopt.c: Ditto.
960 * tree-ssa-reassoc.c: Ditto.
961 * tree-switch-conversion.c: Ditto.
962 * tree-vect-data-refs.c: Ditto.
963 * tree-vect-generic.c: Ditto.
964 * tree-vect-loop.c: Ditto.
965 * tree-vect-patterns.c: Ditto.
966 * tree-vect-slp.c: Ditto.
967 * tree-vect-stmts.c: Ditto.
968 * tree-vrp.c: Ditto.
969 * value-prof.c: Ditto.
970 * config/aarch64/aarch64-builtins.c: Ditto.
971 * config/alpha/alpha.c: Ditto.
972 * config/arm/arm.c: Ditto.
973 * config/cris/cris.c: Ditto.
974 * config/epiphany/epiphany.c: Ditto.
975 * config/frv/frv.c: Ditto.
976 * config/h8300/h8300.c: Ditto.
977 * config/ia64/ia64.c: Ditto.
978 * config/iq2000/iq2000.c: Ditto.
979 * config/m32c/m32c.c: Ditto.
980 * config/mep/mep.c: Ditto.
981 * config/microblaze/microblaze.c: Ditto.
982 * config/mips/mips.c: Ditto.
983 * config/mn10300/mn10300.c: Ditto.
984 * config/moxie/moxie.c: Ditto.
985 * config/msp430/msp430.c: Ditto.
986 * config/nios2/nios2.c: Ditto.
987 * config/pa/pa.c: Ditto.
988 * config/rl78/rl78.c: Ditto.
989 * config/rs6000/rs6000.c: Ditto.
990 * config/rx/rx.c: Ditto.
991 * config/s390/s390.c: Ditto.
992 * config/sh/sh.c: Ditto.
993 * config/sh/sh_treg_combine.cc: Ditto.
994 * config/spu/spu.c: Ditto.
995 * config/stormy16/stormy16.c: Ditto.
996 * config/tilegx/mul-tables.c: Ditto.
997 * config/tilegx/tilegx.c: Ditto.
998 * config/tilepro/mul-tables.c: Ditto.
999 * config/tilepro/tilepro.c: Ditto.
1000 * config/vax/vax.c: Ditto.
1001
1002 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
1003
1004 * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove.
1005 (CLEAR_BY_PIECES_P): Likewise.
1006 (SET_BY_PIECES_P): Likewise.
1007 (STORE_BY_PIECES_P): Likewise.
1008 * doc/tm.texi: Regenerate.
1009 * system.h: Poison MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P,
1010 SET_BY_PIECES_P, STORE_BY_PIECES_P.
1011 * expr.c (MOVE_BY_PIECES_P): Remove.
1012 (CLEAR_BY_PIECES_P): Likewise.
1013 (SET_BY_PIECES_P): Likewise.
1014 (STORE_BY_PIECES_P): Likewise.
1015 (can_move_by_pieces): Rewrite in terms of
1016 targetm.use_by_pieces_infrastructure_p.
1017 (emit_block_move_hints): Likewise.
1018 (can_store_by_pieces): Likewise.
1019 (store_by_pieces): Likewise.
1020 (clear_storage_hints): Likewise.
1021 (emit_push_insn): Likewise.
1022 (expand_constructor): Likewise.
1023
1024 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
1025
1026 * config/aarch64/aarch64.c
1027 (aarch64_use_by_pieces_infrastructre_p): New.
1028 (TARGET_USE_BY_PIECES_INFRASTRUCTURE): Likewise.
1029 * config/aarch64/aarch64.h (STORE_BY_PIECES_P): Delete.
1030
1031 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
1032
1033 * config/mips/mips.h (MOVE_BY_PIECES_P): Remove.
1034 (STORE_BY_PIECES_P): Likewise.
1035 * config/mips/mips.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
1036 (mips_move_by_pieces_p): Rename to...
1037 (mips_use_by_pieces_infrastructure_p): ...this, use new hook
1038 parameters, use the default hook implementation as a
1039 fall-back.
1040
1041 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
1042
1043 * config/sh/sh.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
1044 (sh_use_by_pieces_infrastructure_p): Likewise.
1045 * config/sh/sh.h (MOVE_BY_PIECES_P): Remove.
1046 (STORE_BY_PIECES_P): Likewise.
1047 (SET_BY_PIECES_P): Likewise.
1048
1049 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
1050
1051 * config/arc/arc.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
1052 (arc_use_by_pieces_infrastructure_p): Likewise.
1053 * confir/arc/arc.h (MOVE_BY_PIECES_P): Delete.
1054 (CAN_MOVE_BY_PIECES): Likewise.
1055
1056 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
1057
1058 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p): New.
1059 (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Likewise.
1060 * config/s390/s390.h (MOVE_BY_PIECES_P): Remove.
1061 (CLEAR_BY_PIECES): Likewise.
1062 (SET_BY_PIECES): Likewise.
1063 (STORE_BY_PIECES): Likewise.
1064
1065 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
1066
1067 * target.def (use_by_pieces_infrastructure_p): New.
1068 * doc/tm.texi.in (MOVE_BY_PIECES_P): Describe that this macro
1069 is deprecated.
1070 (STORE_BY_PIECES_P): Likewise.
1071 (CLEAR_BY_PIECES_P): Likewise.
1072 (SET_BY_PIECES_P): Likewise.
1073 (TARGET_MOVE_BY_PIECES_PROFITABLE_P): Add hook.
1074 * doc/tm.texi: Regenerate.
1075 * expr.c (MOVE_BY_PIECES_P): Rewrite in terms of
1076 TARGET_USE_BY_PIECES_INFRASTRUCTURE_P.
1077 (STORE_BY_PIECES_P): Likewise.
1078 (CLEAR_BY_PIECES_P): Likewise.
1079 (SET_BY_PIECES_P): Likewise.
1080 (STORE_MAX_PIECES): Move to...
1081 * defaults.h (STORE_MAX_PIECES): ...here.
1082 * targhooks.c (get_move_ratio): New.
1083 (default_use_by_pieces_infrastructure_p): Likewise.
1084 * targhooks.h (default_use_by_pieces_infrastructure_p): New.
1085 * target.h (by_pieces_operation): New.
1086
1087 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
1088
1089 PR target/63702
1090 * config/i386/i386.c (ix86_expand_args_builtin): Remove extra
1091 assignment to 'nargs' variable.
1092
1093 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
1094
1095 PR target/63620
1096 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
1097 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
1098 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
1099 be reloaded through memory.
1100 (*pushxf): Ditto.
1101 (*pushdf): Ditto.
1102
1103 2014-10-31 Jakub Jelinek <jakub@redhat.com>
1104
1105 PR rtl-optimization/63659
1106 * ree.c (update_reg_equal_equiv_notes): New function.
1107 (combine_set_extension, transform_ifelse): Use it.
1108
1109 2014-10-31 Jeff Law <law@redhat.com>
1110
1111 * doc/contrib.texi: Add contribution notes for Balaji Iyer (Cilk+)
1112 and Jonny Grant (collect2).
1113
1114 2014-10-31 Richard Biener <rguenther@suse.de>
1115
1116 * builtins.c (fold_builtin_atomic_always_lock_free): Use
1117 CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where
1118 approprate.
1119 (fold_builtin_expect): Likewise.
1120 (integer_valued_real_p): Likewise.
1121 * cfgexpand.c (expand_debug_expr): Likewise.
1122 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Likewise.
1123 (find_foldable_builtin_expect): Likewise.
1124 * trans-mem.c (thread_private_new_memory): Likewise.
1125 * tree-affine.c (aff_combination_expand): Likewise.
1126 * tree-data-ref.c (initialize_matrix_A): Likewise.
1127 * tree-inline.c (copy_bb): Likewise.
1128 * tree-pretty-print.c (dump_function_name): Likewise.
1129 (print_call_name): Likewise.
1130 * tree-ssa-forwprop.c (constant_pointer_difference): Likewise.
1131 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise.
1132 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
1133 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Likewise.
1134 (vect_recog_widen_mult_pattern): Likewise.
1135 (vect_operation_fits_smaller_type): Likewise.
1136 * tree-vrp.c (find_assert_locations_1): Likewise.
1137 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
1138 converts to NOP_EXPR.
1139
1140 2014-10-31 Richard Biener <rguenther@suse.de>
1141
1142 * genmatch.c (expr::gen_transform): Use NOP_EXPRs instead of
1143 CONVERT_EXPRs in generated code.
1144 (dt_simplify::gen): Likewise.
1145
1146 2014-10-31 Evgeny Stupachenko <evstupac@gmail.com>
1147
1148 PR target/63534
1149 * config/i386/i386.c (ix86_init_pic_reg): Emit SET_GOT to
1150 REAL_PIC_OFFSET_TABLE_REGNUM for mcount profiling.
1151 (ix86_save_reg): Save REAL_PIC_OFFSET_TABLE_REGNUM when profiling
1152 using mcount in 32bit PIC mode.
1153 (ix86_elim_entry_set_got): New.
1154 (ix86_expand_prologue): For the mcount profiling emit new SET_GOT
1155 in PROLOGUE, delete initial if possible.
1156
1157 2014-10-31 Eric Botcazou <ebotcazou@adacore.com>
1158
1159 * ipa-inline.c (want_inline_small_function_p): Fix typo and formatting.
1160 (want_inline_function_to_all_callers_p): Fix formatting and simplify.
1161
1162 2014-10-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
1163
1164 PR tree-optimization/63259
1165 * tree-ssa-math-opts.c (bswap_replace): Replace expression by a
1166 rotation left if it is a 16 bit byte swap.
1167 (pass_optimize_bswap::execute): Also consider bswap in LROTATE_EXPR
1168 and RROTATE_EXPR statements if it is a byte rotation.
1169
1170 2014-10-31 Jakub Jelinek <jakub@redhat.com>
1171
1172 PR sanitizer/63697
1173 * tree-vrp.c (simplify_internal_call_using_ranges): For subcode ==
1174 MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min
1175 instead of vr0.min - vr1.min and vr0.max - vr1.max.
1176
1177 2014-10-31 Max Ostapenko <m.ostapenko@partner.samsung.com>
1178
1179 PR ipa/63696
1180 * ipa-icf.c (sem_function::~sem_function): Change free to delete to avoid
1181 alloc-dealloc mismatch with new, called in ipa_icf::sem_function::init.
1182
1183 2014-10-30 Felix Yang <felix.yang@huawei.com>
1184
1185 * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro.
1186 * config/xtensa/xtensa.c: Include dumpfile.h and hw-doloop.h.
1187 (xtensa_reorg, xtensa_reorg_loops): New.
1188 (xtensa_can_use_doloop_p, xtensa_invalid_within_doloop): New.
1189 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg): New.
1190 (xtensa_emit_loop_end): Emit the zero-overhead loop end label.
1191 (xtensa_doloop_hooks): Define.
1192 * config/xtensa/xtensa.md (doloop_end, loop_end): New
1193 (zero_cost_loop_start): Rewritten.
1194 (zero_cost_loop_end): Likewise.
1195
1196 2014-10-30 Steve Ellcey <sellcey@imgtec.com>
1197
1198 * config.gcc (mips*-*-linux*): Combine 32 and 64 bit cases.
1199
1200 2014-10-30 Richard Biener <rguenther@suse.de>
1201
1202 * genmatch.c: Remove <map>, <utility> and <string> includes.
1203 Include ggc.h and hash-map.h.
1204 (ggc_internal_cleared_alloc): Provide stub definition.
1205 (ggc_free): Likewise.
1206 (struct capture_id_map_hasher): New traits for hash_map.
1207 (cid_map_t): New typedef.
1208 (everywhere else): Replace std::map use with cid_map_t.
1209 * hash-map.h (hash_map::elements): New member function.
1210 * Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
1211 hash-map.h and $(GGC_H) as dependency.
1212
1213 2014-10-30 Richard Biener <rguenther@suse.de>
1214
1215 * genmatch.c (capture_info::walk_c_expr): Ignore capture
1216 uses inside TREE_TYPE ().
1217 * gimple-ssa-strength-reduction.c (stmt_cost): Use CASE_CONVERT.
1218 (find_candidates_dom_walker::before_dom_children): Likewise.
1219 (replace_mult_candidate): Use CONVERT_EXPR_CODE_P.
1220 (replace_profitable_candidates): Likewise.
1221 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
1222 CONVERT_EXPR_CODE_P to CONVERT_EXPR.
1223 * convert.c (convert_to_integer): Use CASE_CONVERT.
1224
1225 2014-10-30 Richard Biener <rguenther@suse.de>
1226
1227 * match.pd: Implement more patterns that simplify to a single value.
1228 * fold-const.c (fold_binary_loc): Remove them here.
1229 * tree-ssa-forwprop.c (simplify_bitwise_binary): Likewise.
1230 (fwprop_ssa_val): Remove restriction on single uses.
1231
1232 2014-10-30 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1233
1234 * config/avr/driver-avr.c (avr_set_current_device): Remove.
1235
1236 2014-10-30 Martin Liska <mliska@suse.cz>
1237
1238 PR ipa/63574
1239 PR ipa/63664
1240 * ipa-icf-gimple.c (func_checker::parse_labels): Missing comment added.
1241 (func_checker::compare_gimple_label): Simlified comparison introduced.
1242 * ipa-icf-gimple.h: Missing comment added.
1243
1244 2014-10-30 Jeff Law <law@redhat.com>
1245
1246 * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen
1247 argument from rtx to rtx_insn *.
1248 (compute_movmem_length, compute_clrmem_length): Likewise.
1249 (copy_fp_args, length_fp_args): Likewise.
1250 * config/pa/pa.c (legitimize_pic_address): Promote local variable
1251 "insn" from rtx to rtx_insn *.
1252 (legitimize_tls_address, pa_emit_move_sequence): Likewise.
1253 (pa_output_block_move, store_reg, store_reg_modify): Likewise.
1254 (set_reg_plus_d, pa_expand_prologue, hppa_profile_hook): Likewise.
1255 (branch_to_delay_slot_p, branch_needs_nop_p, use_skip_p): Likewise.
1256 (pa_output_arg_descriptor): Strengthen argument to an rtx_insn *.
1257 (compute_movmem_length, compute_clrmem_length): Likewise.
1258 (copy_fp-args, length_fp_args): Likewise.
1259
1260 2014-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1261
1262 * config/arm/arm.h (MACHMODE): Treat machine_mode as a
1263 scalar typedef.
1264 (CUMULATIVE_ARGS): Guard against target includes.
1265 (machine_function): Likewise.
1266
1267 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1268
1269 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
1270 recog state after aarch64_prev_real_insn call.
1271
1272 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1273
1274 * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.
1275
1276 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1277
1278 * config/arm/arm.h (MACHMODE): Add 'enum' to machine_mode.
1279 (struct machine_function): Gate definition on
1280 !defined(USED_FOR_TARGET).
1281
1282 2014-10-29 DJ Delorie <dj@redhat.com>
1283
1284 * expmed.c (strict_volatile_bitfield_p): Fix off-by-one error.
1285
1286 2014-10-29 Martin Liska <mliska@suse.cz>
1287
1288 PR ipa/63587
1289 * cgraphunit.c (cgraph_node::expand_thunk): Only VAR_DECLs are put
1290 to local declarations.
1291 * function.c (add_local_decl): Implementation moved from header
1292 file, assert introduced for tree type.
1293 * function.h: Likewise.
1294
1295 2014-10-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1296
1297 * godump.c (go_format_type): Represent "float _Complex" and
1298 "double _Complex" as complex64 or complex128 in Go, as appropriate.
1299
1300 2014-10-29 Richard Biener <rguenther@suse.de>
1301
1302 * match.pd: Implement a first set of conversion patterns.
1303 * fold-const.c (fold_unary_loc): Remove them here.
1304 * tree-ssa-forwprop.c (simplify_vce): Remove.
1305 (pass_forwprop::execute): Do not call simplify_vce.
1306
1307 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1308
1309 * addresses.h, alias.c, asan.c, auto-inc-dec.c, bt-load.c, builtins.c,
1310 builtins.h, caller-save.c, calls.c, calls.h, cfgexpand.c, cfgloop.h,
1311 cfgrtl.c, combine.c, compare-elim.c, config/aarch64/aarch64-builtins.c,
1312 config/aarch64/aarch64-protos.h, config/aarch64/aarch64-simd.md,
1313 config/aarch64/aarch64.c, config/aarch64/aarch64.h,
1314 config/aarch64/aarch64.md, config/alpha/alpha-protos.h,
1315 config/alpha/alpha.c, config/arc/arc-protos.h, config/arc/arc.c,
1316 config/arc/arc.h, config/arc/predicates.md,
1317 config/arm/aarch-common-protos.h, config/arm/aarch-common.c,
1318 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
1319 config/arm/arm.md, config/arm/neon.md, config/arm/thumb2.md,
1320 config/avr/avr-log.c, config/avr/avr-protos.h, config/avr/avr.c,
1321 config/avr/avr.md, config/bfin/bfin-protos.h, config/bfin/bfin.c,
1322 config/c6x/c6x-protos.h, config/c6x/c6x.c, config/c6x/c6x.md,
1323 config/cr16/cr16-protos.h, config/cr16/cr16.c,
1324 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.md,
1325 config/darwin-protos.h, config/darwin.c,
1326 config/epiphany/epiphany-protos.h, config/epiphany/epiphany.c,
1327 config/epiphany/epiphany.md, config/fr30/fr30.c,
1328 config/frv/frv-protos.h, config/frv/frv.c, config/frv/predicates.md,
1329 config/h8300/h8300-protos.h, config/h8300/h8300.c,
1330 config/i386/i386-builtin-types.awk, config/i386/i386-protos.h,
1331 config/i386/i386.c, config/i386/i386.md, config/i386/predicates.md,
1332 config/i386/sse.md, config/i386/sync.md, config/ia64/ia64-protos.h,
1333 config/ia64/ia64.c, config/iq2000/iq2000-protos.h,
1334 config/iq2000/iq2000.c, config/iq2000/iq2000.md,
1335 config/lm32/lm32-protos.h, config/lm32/lm32.c,
1336 config/m32c/m32c-protos.h, config/m32c/m32c.c,
1337 config/m32r/m32r-protos.h, config/m32r/m32r.c,
1338 config/m68k/m68k-protos.h, config/m68k/m68k.c,
1339 config/mcore/mcore-protos.h, config/mcore/mcore.c,
1340 config/mcore/mcore.md, config/mep/mep-protos.h, config/mep/mep.c,
1341 config/microblaze/microblaze-protos.h, config/microblaze/microblaze.c,
1342 config/mips/mips-protos.h, config/mips/mips.c,
1343 config/mmix/mmix-protos.h, config/mmix/mmix.c,
1344 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
1345 config/moxie/moxie.c, config/msp430/msp430-protos.h,
1346 config/msp430/msp430.c, config/nds32/nds32-cost.c,
1347 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
1348 config/nds32/nds32-protos.h, config/nds32/nds32.c,
1349 config/nios2/nios2-protos.h, config/nios2/nios2.c,
1350 config/pa/pa-protos.h, config/pa/pa.c, config/pdp11/pdp11-protos.h,
1351 config/pdp11/pdp11.c, config/rl78/rl78-protos.h, config/rl78/rl78.c,
1352 config/rs6000/altivec.md, config/rs6000/rs6000-c.c,
1353 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
1354 config/rs6000/rs6000.h, config/rx/rx-protos.h, config/rx/rx.c,
1355 config/s390/predicates.md, config/s390/s390-protos.h,
1356 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
1357 config/sh/predicates.md, config/sh/sh-protos.h, config/sh/sh.c,
1358 config/sh/sh.md, config/sparc/predicates.md,
1359 config/sparc/sparc-protos.h, config/sparc/sparc.c,
1360 config/sparc/sparc.md, config/spu/spu-protos.h, config/spu/spu.c,
1361 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
1362 config/tilegx/tilegx-protos.h, config/tilegx/tilegx.c,
1363 config/tilegx/tilegx.md, config/tilepro/tilepro-protos.h,
1364 config/tilepro/tilepro.c, config/v850/v850-protos.h,
1365 config/v850/v850.c, config/v850/v850.md, config/vax/vax-protos.h,
1366 config/vax/vax.c, config/vms/vms-c.c, config/xtensa/xtensa-protos.h,
1367 config/xtensa/xtensa.c, coverage.c, cprop.c, cse.c, cselib.c, cselib.h,
1368 dbxout.c, ddg.c, df-problems.c, dfp.c, dfp.h, doc/md.texi,
1369 doc/rtl.texi, doc/tm.texi, doc/tm.texi.in, dojump.c, dse.c,
1370 dwarf2cfi.c, dwarf2out.c, dwarf2out.h, emit-rtl.c, emit-rtl.h,
1371 except.c, explow.c, expmed.c, expmed.h, expr.c, expr.h, final.c,
1372 fixed-value.c, fixed-value.h, fold-const.c, function.c, function.h,
1373 fwprop.c, gcse.c, gengenrtl.c, genmodes.c, genopinit.c, genoutput.c,
1374 genpreds.c, genrecog.c, gensupport.c, gimple-ssa-strength-reduction.c,
1375 graphite-clast-to-gimple.c, haifa-sched.c, hooks.c, hooks.h, ifcvt.c,
1376 internal-fn.c, ira-build.c, ira-color.c, ira-conflicts.c, ira-costs.c,
1377 ira-emit.c, ira-int.h, ira-lives.c, ira.c, ira.h, jump.c, langhooks.h,
1378 libfuncs.h, lists.c, loop-doloop.c, loop-invariant.c, loop-iv.c,
1379 loop-unroll.c, lower-subreg.c, lower-subreg.h, lra-assigns.c,
1380 lra-constraints.c, lra-eliminations.c, lra-int.h, lra-lives.c,
1381 lra-spills.c, lra.c, lra.h, machmode.h, omp-low.c, optabs.c, optabs.h,
1382 output.h, postreload.c, print-tree.c, read-rtl.c, real.c, real.h,
1383 recog.c, recog.h, ree.c, reg-stack.c, regcprop.c, reginfo.c,
1384 regrename.c, regs.h, reload.c, reload.h, reload1.c, rtl.c, rtl.h,
1385 rtlanal.c, rtlhash.c, rtlhooks-def.h, rtlhooks.c, sched-deps.c,
1386 sel-sched-dump.c, sel-sched-ir.c, sel-sched-ir.h, sel-sched.c,
1387 simplify-rtx.c, stmt.c, stor-layout.c, stor-layout.h, target.def,
1388 targhooks.c, targhooks.h, tree-affine.c, tree-call-cdce.c,
1389 tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-if-conv.c,
1390 tree-inline.c, tree-outof-ssa.c, tree-scalar-evolution.c,
1391 tree-ssa-address.c, tree-ssa-ccp.c, tree-ssa-loop-ivopts.c,
1392 tree-ssa-loop-ivopts.h, tree-ssa-loop-manip.c,
1393 tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c, tree-ssa-reassoc.c,
1394 tree-ssa-sccvn.c, tree-streamer-in.c, tree-switch-conversion.c,
1395 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop.c,
1396 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
1397 tree-vrp.c, tree.c, tree.h, tsan.c, ubsan.c, valtrack.c,
1398 var-tracking.c, varasm.c: Remove redundant enum from
1399 machine_mode.
1400 * gengtype.c (main): Treat machine_mode as a scalar typedef.
1401 * genmodes.c (emit_insn_modes_h): Hide inline functions if
1402 USED_FOR_TARGET.
1403
1404 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1405
1406 PR rtl-optimization/63340 (part 2)
1407 * rtl.h (invalid_mode_change_p): Delete.
1408 (valid_mode_changes_for_regno): New function.
1409 * reginfo.c (invalid_mode_change_p): Delete.
1410 (valid_mode_changes_for_regno): New function.
1411 * ira-costs.c (setup_regno_cost_classes_by_aclass): Restrict the
1412 classes to registers that are allowed by valid_mode_changes_for_regno.
1413 (setup_regno_cost_classes_by_mode): Likewise.
1414 (print_allocno_costs): Remove invalid_mode_change_p test.
1415 (print_pseudo_costs, find_costs_and_classes): Likewise.
1416
1417 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1418
1419 PR rtl-optimization/63340 (part 1)
1420 * ira-costs.c (all_cost_classes): New variable.
1421 (complete_cost_classes): New function, split out from...
1422 (setup_cost_classes): ...here.
1423 (initiate_regno_cost_classes): Set up all_cost_classes.
1424 (restrict_cost_classes): New function.
1425 (setup_regno_cost_classes_by_aclass): Restrict the cost classes to
1426 registers that are valid for the register's mode.
1427 (setup_regno_cost_classes_by_mode): Model the mode cache as a
1428 restriction of all_cost_classes to a particular mode.
1429 (print_allocno_costs): Remove contains_reg_of_mode check.
1430 (print_pseudo_costs, find_costs_and_classes): Likewise.
1431
1432 2014-10-29 Richard Biener <rguenther@suse.de>
1433
1434 PR tree-optimization/63666
1435 * tree-vect-slp.c (vect_get_mask_element): Properly handle
1436 accessing out-of-bound elements.
1437
1438 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
1439 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1440 Anna Tikhonova <anna.tikhonova@intel.com>
1441 Ilya Tocar <ilya.tocar@intel.com>
1442 Andrey Turetskiy <andrey.turetskiy@intel.com>
1443 Ilya Verbin <ilya.verbin@intel.com>
1444 Kirill Yukhin <kirill.yukhin@intel.com>
1445 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1446
1447 * config/i386/i386.md
1448 (movhi_internal): Always detect maskmov.
1449 (movqi_internal): Fix target check.
1450
1451 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
1452 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1453 Anna Tikhonova <anna.tikhonova@intel.com>
1454 Ilya Tocar <ilya.tocar@intel.com>
1455 Andrey Turetskiy <andrey.turetskiy@intel.com>
1456 Ilya Verbin <ilya.verbin@intel.com>
1457 Kirill Yukhin <kirill.yukhin@intel.com>
1458 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1459
1460 * config/i386/avx512bwintrin.h: Add new intrinsics.
1461 * config/i386/avx512vlbwintrin.h: Ditto.
1462 * config/i386/avx512vlintrin.h: Ditto.
1463
1464 2014-10-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
1465
1466 * godump.c (precision_to_units): New helper function.
1467 (go_append_artificial_name): Ditto.
1468 (go_append_decl_name): Ditto.
1469 (go_append_bitfield): Ditto.
1470 (go_get_uinttype_for_precision): Ditto.
1471 (go_append_padding): Ditto.
1472 (go_force_record_alignment): Ditto.
1473 (go_format_type): Represent unions with an array of uints of the size
1474 of the alignment in go. This fixes the 'random' size of the union's
1475 representation using just the first field.
1476 (go_format_type): Add argument that indicates whether a record is
1477 nested (used for generation of artificial go names).
1478 (go_output_fndecl): Adapt to new go_format_type signature.
1479 (go_output_typedef): Ditto.
1480 (go_output_var): Ditto.
1481 (go_output_var): Prefer to output type as alias (typedef).
1482 (go_format_type): Bitfields in records are simulated as arrays of bytes
1483 in go.
1484
1485 * godump.c (go_format_type): Fix handling of arrays with zero elements.
1486
1487 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
1488
1489 * cgraph.h: Flatten. Remove all include files.
1490 (symbol_table::initialize): Move to cgraph.c.
1491 * cgraph.c: Adjust include files.
1492 (symbol_table::initialize): Relocate from cgraph.h.
1493 * gengtype.c (open_base_files): Adjust include files.
1494 * gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
1495 included files.
1496 * ipa-inline.h: Remove all include files.
1497 * ipa-prop.h: Ditto.
1498 * ipa-reference.h: Ditto.
1499 * ipa-utils.h: Ditto:
1500 * lto-streamer.h: Remove cgraph.h from include list.
1501 * asan.c: Adjust include files.
1502 * auto-profile.c: Ditto.
1503 * bb-reorder.c: Ditto.
1504 * calls.c: Ditto.
1505 * cfgexpand.c: Ditto.
1506 * cgraphbuild.c: Ditto.
1507 * cgraphclones.c: Ditto.
1508 * cgraphunit.c: Ditto.
1509 * combine.c: Ditto.
1510 * coverage.c: Ditto.
1511 * data-streamer.c: Ditto.
1512 * data-streamer-in.c: Ditto.
1513 * data-streamer-out.c: Ditto.
1514 * dbxout.c: Ditto.
1515 * dwarf2out.c: Ditto.
1516 * except.c: Ditto.
1517 * expr.c: Ditto.
1518 * final.c: Ditto.
1519 * fold-const.c: Ditto.
1520 * ggc-page.c: Ditto.
1521 * gimple-fold.c: Ditto.
1522 * gimple-iterator.c: Ditto.
1523 * gimple-pretty-print.c: Ditto.
1524 * gimple-streamer-in.c: Ditto.
1525 * gimple-streamer-out.c: Ditto.
1526 * gimplify.c: Ditto.
1527 * ipa.c: Ditto.
1528 * ipa-comdats.c: Ditto.
1529 * ipa-cp.c: Ditto.
1530 * ipa-devirt.c: Ditto.
1531 * ipa-icf.c: Ditto.
1532 * ipa-icf-gimple.c: Ditto.
1533 * ipa-inline-analysis.c: Ditto.
1534 * ipa-inline.c: Ditto.
1535 * ipa-inline-transform.c: Ditto.
1536 * ipa-polymorphic-call.c: Ditto.
1537 * ipa-profile.c: Ditto.
1538 * ipa-prop.c: Ditto.
1539 * ipa-pure-const.c: Ditto.
1540 * ipa-ref.c: Ditto.
1541 * ipa-reference.c: Ditto.
1542 * ipa-split.c: Ditto.
1543 * ipa-utils.c: Ditto.
1544 * ipa-visibility.c: Ditto.
1545 * langhooks.c: Ditto.
1546 * lto-cgraph.c: Ditto.
1547 * lto-compress.c: Ditto.
1548 * lto-opts.c: Ditto.
1549 * lto-section-in.c: Ditto.
1550 * lto-section-out.c: Ditto.
1551 * lto-streamer.c: Ditto.
1552 * lto-streamer-in.c: Ditto.
1553 * lto-streamer-out.c: Ditto.
1554 * omp-low.c: Ditto.
1555 * opts-global.c: Ditto.
1556 * passes.c: Ditto.
1557 * predict.c: Ditto.
1558 * print-tree.c: Ditto.
1559 * profile.c: Ditto.
1560 * ree.c: Ditto.
1561 * stor-layout.c: Ditto.
1562 * symtab.c: Ditto.
1563 * toplev.c: Ditto.
1564 * trans-mem.c: Ditto.
1565 * tree.c: Ditto.
1566 * tree-cfg.c: Ditto.
1567 * tree-eh.c: Ditto.
1568 * tree-emutls.c: Ditto.
1569 * tree-inline.c: Ditto.
1570 * tree-nested.c: Ditto.
1571 * tree-pretty-print.c: Ditto.
1572 * tree-profile.c: Ditto.
1573 * tree-sra.c: Ditto.
1574 * tree-ssa-alias.c: Ditto.
1575 * tree-ssa-loop-ivcanon.c: Ditto.
1576 * tree-ssa-loop-ivopts.c: Ditto.
1577 * tree-ssa-pre.c: Ditto.
1578 * tree-ssa-structalias.c: Ditto.
1579 * tree-streamer.c: Ditto.
1580 * tree-streamer-in.c: Ditto.
1581 * tree-streamer-out.c: Ditto.
1582 * tree-switch-conversion.c: Ditto.
1583 * tree-tailcall.c: Ditto.
1584 * tree-vect-data-refs.c: Ditto.
1585 * tree-vectorizer.c: Ditto.
1586 * tree-vect-stmts.c: Ditto.
1587 * tsan.c: Ditto.
1588 * ubsan.c: Ditto.
1589 * value-prof.c: Ditto.
1590 * varasm.c: Ditto.
1591 * varpool.c: Ditto.
1592 * config/arm/arm.c: Ditto.
1593 * config/bfin/bfin.c: Ditto.
1594 * config/c6x/c6x.c: Ditto.
1595 * config/cris/cris.c: Ditto.
1596 * config/darwin.c: Ditto.
1597 * config/darwin-c.c: Ditto.
1598 * config/i386/i386.c: Ditto.
1599 * config/i386/winnt.c: Ditto.
1600 * config/microblaze/microblaze.c: Ditto.
1601 * config/mips/mips.c: Ditto.
1602 * config/rs6000/rs6000.c: Ditto.
1603 * config/rx/rx.c: Ditto.
1604
1605 2014-10-28 Richard Biener <rguenther@suse.de>
1606
1607 * gimple-fold.h (follow_single_use_edges): Declare.
1608 * gimple-fold.c (follow_single_use_edges): New function.
1609 (gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
1610 * tree-ssa-propagate.c
1611 (substitute_and_fold_dom_walker::before_dom_children): Allow
1612 following single-use edges when folding stmts we propagated into.
1613
1614 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1615 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1616 Anna Tikhonova <anna.tikhonova@intel.com>
1617 Ilya Tocar <ilya.tocar@intel.com>
1618 Andrey Turetskiy <andrey.turetskiy@intel.com>
1619 Ilya Verbin <ilya.verbin@intel.com>
1620 Kirill Yukhin <kirill.yukhin@intel.com>
1621 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1622
1623 * config/i386/avx512bwintrin.h: New.
1624 * config/i386/avx512dqintrin.h: Ditto.
1625 * config/i386/avx512vlbwintrin.h: Ditto.
1626 * config/i386/avx512vldqintrin.h: Ditto.
1627 * config/i386/avx512vlintrin.h: Ditto.
1628 * config/i386/immintrin.h: Include avx512vlintrin.h, avx512bwintrin.h,
1629 avx512dqintrin.h, avx512vlbwintrin.h, avx512vldqintrin.h.
1630
1631 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1632 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1633 Anna Tikhonova <anna.tikhonova@intel.com>
1634 Ilya Tocar <ilya.tocar@intel.com>
1635 Andrey Turetskiy <andrey.turetskiy@intel.com>
1636 Ilya Verbin <ilya.verbin@intel.com>
1637 Kirill Yukhin <kirill.yukhin@intel.com>
1638 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1639
1640 * config/i386/i386.c
1641 (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
1642 avx_shufpd256_mask, avx_vpermilv2df_mask.
1643
1644 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1645 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1646 Anna Tikhonova <anna.tikhonova@intel.com>
1647 Ilya Tocar <ilya.tocar@intel.com>
1648 Andrey Turetskiy <andrey.turetskiy@intel.com>
1649 Ilya Verbin <ilya.verbin@intel.com>
1650 Kirill Yukhin <kirill.yukhin@intel.com>
1651 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1652
1653 * config/i386/i386.c
1654 (ix86_init_mmx_sse_builtins):
1655 Define __builtin_ia32_gather3siv2df, __builtin_ia32_gather3siv4df,
1656 __builtin_ia32_gather3div2df, __builtin_ia32_gather3div4df,
1657 __builtin_ia32_gather3siv4sf, __builtin_ia32_gather3siv8sf,
1658 __builtin_ia32_gather3div4sf, __builtin_ia32_gather3div8sf,
1659 __builtin_ia32_gather3siv2di, __builtin_ia32_gather3siv4di,
1660 __builtin_ia32_gather3div2di, __builtin_ia32_gather3div4di,
1661 __builtin_ia32_gather3siv4si, __builtin_ia32_gather3siv8si,
1662 __builtin_ia32_gather3div4si, __builtin_ia32_gather3div8si,
1663 __builtin_ia32_gather3altsiv4df, __builtin_ia32_gather3altdiv8sf,
1664 __builtin_ia32_gather3altsiv4di, __builtin_ia32_gather3altdiv8si,
1665 __builtin_ia32_scattersiv8sf, __builtin_ia32_scattersiv4sf,
1666 __builtin_ia32_scattersiv4df, __builtin_ia32_scattersiv2df,
1667 __builtin_ia32_scatterdiv8sf, __builtin_ia32_scatterdiv4sf,
1668 __builtin_ia32_scatterdiv4df, __builtin_ia32_scatterdiv2df,
1669 __builtin_ia32_scattersiv8si, __builtin_ia32_scattersiv4si,
1670 __builtin_ia32_scattersiv4di, __builtin_ia32_scattersiv2di,
1671 __builtin_ia32_scatterdiv8si, __builtin_ia32_scatterdiv4si,
1672 __builtin_ia32_scatterdiv4di, __builtin_ia32_scatterdiv2di.
1673
1674 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1675 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1676 Anna Tikhonova <anna.tikhonova@intel.com>
1677 Ilya Tocar <ilya.tocar@intel.com>
1678 Andrey Turetskiy <andrey.turetskiy@intel.com>
1679 Ilya Verbin <ilya.verbin@intel.com>
1680 Kirill Yukhin <kirill.yukhin@intel.com>
1681 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1682
1683 * config/i386/i386.c
1684 (ix86_builtins): Add IX86_BUILTIN_GATHER3ALTSIV4DF,
1685 IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTSIV4DI,
1686 IX86_BUILTIN_GATHER3ALTDIV8SI.
1687 (ix86_expand_builtin):
1688 Handle IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTDIV8SI,
1689 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV4DI,
1690 IX86_BUILTIN_SCATTERDIV2DF, IX86_BUILTIN_SCATTERDIV4DF,
1691 IX86_BUILTIN_GATHER3ALTSIV4DI, IX86_BUILTIN_GATHER3ALTSIV4DF,
1692 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
1693 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3DIV8SI,
1694 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV4DI,
1695 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3SIV8SF,
1696 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
1697 IX86_BUILTIN_GATHER3DIV2DI, IX86_BUILTIN_GATHER3DIV4DI,
1698 IX86_BUILTIN_SCATTERDIV4SF, IX86_BUILTIN_SCATTERSIV2DI,
1699 IX86_BUILTIN_GATHER3SIV2DI, IX86_BUILTIN_GATHER3SIV4SI,
1700 IX86_BUILTIN_GATHER3SIV4SF, IX86_BUILTIN_GATHER3SIV2DF,
1701 IX86_BUILTIN_SCATTERSIV2DF, IX86_BUILTIN_SCATTERDIV4SI,
1702 IX86_BUILTIN_SCATTERSIV4SF, IX86_BUILTIN_SCATTERSIV4SI,
1703 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
1704 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV8SF,
1705 IX86_BUILTIN_GATHER3DIV4SF, IX86_BUILTIN_SCATTERDIV8SF.
1706 (ix86_vectorize_builtin_gather): Update V2DFmode, V4DFmode, V2DImode,
1707 V4DImode, V4SFmode, V8SFmode, V4SImode, V8SImode.
1708
1709 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
1710 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1711 Anna Tikhonova <anna.tikhonova@intel.com>
1712 Ilya Tocar <ilya.tocar@intel.com>
1713 Andrey Turetskiy <andrey.turetskiy@intel.com>
1714 Ilya Verbin <ilya.verbin@intel.com>
1715 Kirill Yukhin <kirill.yukhin@intel.com>
1716 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1717
1718 * config/i386/i386-builtin-types.def
1719 (SHORT): New.
1720 (V32HI): Ditto.
1721 (V12QI): Ditto.
1722 (V14QI): Ditto.
1723 (V32SI): Ditto.
1724 (V8UDI): Ditto.
1725 (V16USI): Ditto.
1726 (V32UHI): Ditto.
1727 (PSHORT): Ditto.
1728 (PV32QI): Ditto.
1729 (PV32HI): Ditto.
1730 (PV64QI): Ditto.
1731 (PCV8HI): Ditto.
1732 (PCV16QI): Ditto.
1733 (PCV16HI): Ditto.
1734 (PCV32QI): Ditto.
1735 (PCV32HI): Ditto.
1736 (PCV64QI): Ditto.
1737 (V4SF_FTYPE_V2DF_V4SF_QI): Ditto.
1738 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
1739 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
1740 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
1741 (V16SF_FTYPE_V16HI): Ditto.
1742 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
1743 (V16SF_FTYPE_V16SI): Ditto.
1744 (V4DI_FTYPE_V4DI): Ditto.
1745 (V16SI_FTYPE_V16SF): Ditto.
1746 (V8DI_FTYPE_PV2DI): Ditto.
1747 (V8DF_FTYPE_PV2DF): Ditto.
1748 (V4DI_FTYPE_PV2DI): Ditto.
1749 (V4DF_FTYPE_PV2DF): Ditto.
1750 (V16SI_FTYPE_PV2SI): Ditto.
1751 (V16SF_FTYPE_PV2SF): Ditto.
1752 (V8SF_FTYPE_FLOAT): Ditto.
1753 (V4SF_FTYPE_FLOAT): Ditto.
1754 (V4DF_FTYPE_DOUBLE): Ditto.
1755 (V8SF_FTYPE_PV4SF): Ditto.
1756 (V8SI_FTYPE_PV4SI): Ditto.
1757 (V4SI_FTYPE_PV2SI): Ditto.
1758 (V8SF_FTYPE_PV2SF): Ditto.
1759 (V8SI_FTYPE_PV2SI): Ditto.
1760 (V16SF_FTYPE_PV8SF): Ditto.
1761 (V16SI_FTYPE_PV8SI): Ditto.
1762 (V8DI_FTYPE_V8SF): Ditto.
1763 (V4DI_FTYPE_V4SF): Ditto.
1764 (V2DI_FTYPE_V4SF): Ditto.
1765 (V64QI_FTYPE_QI): Ditto.
1766 (V32HI_FTYPE_HI): Ditto.
1767 (V16UHI_FTYPE_V16UHI): Ditto.
1768 (V32UHI_FTYPE_V32UHI): Ditto.
1769 (V2UDI_FTYPE_V2UDI): Ditto.
1770 (V4UDI_FTYPE_V4UDI): Ditto.
1771 (V8UDI_FTYPE_V8UDI): Ditto.
1772 (V4USI_FTYPE_V4USI): Ditto.
1773 (V16USI_FTYPE_V16USI): Ditto.
1774 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
1775 (V2DF_FTYPE_V8DF_INT): Ditto.
1776 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
1777 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
1778 (V8DF_FTYPE_V8DF_INT): Ditto.
1779 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
1780 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
1781 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
1782 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
1783 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
1784 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
1785 (V8DI_FTYPE_V8DI_INT): Ditto.
1786 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
1787 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
1788 (V8SF_FTYPE_V16SF_INT): Ditto.
1789 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
1790 (V64QI_FTYPE_V32HI_V32HI): Ditto.
1791 (V32HI_FTYPE_V16SI_V16SI): Ditto.
1792 (V8DF_FTYPE_V8DF_V2DF_INT): Ditto.
1793 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
1794 (V8DF_FTYPE_V8DF_V8DF_INT): Ditto.
1795 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT): Ditto.
1796 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT): Ditto.
1797 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
1798 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
1799 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
1800 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT): Ditto.
1801 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
1802 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
1803 (V32HI_FTYPE_V64QI_V64QI): Ditto.
1804 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
1805 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
1806 (V32HI_FTYPE_V32HI_V32HI): Ditto.
1807 (V32HI_FTYPE_V32HI_INT): Ditto.
1808 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
1809 (V16SI_FTYPE_V32HI_V32HI): Ditto.
1810 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
1811 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
1812 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
1813 (V8SI_FTYPE_V16SI_INT): Ditto.
1814 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
1815 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
1816 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
1817 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
1818 (V8DI_FTYPE_V8DI_V4DI_INT): Ditto.
1819 (V8DI_FTYPE_V8DI_V2DI_INT): Ditto.
1820 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
1821 (V8DI_FTYPE_V16SI_V16SI): Ditto.
1822 (V8DI_FTYPE_V64QI_V64QI): Ditto.
1823 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
1824 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
1825 (V2DI_FTYPE_V8DI_INT): Ditto.
1826 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
1827 (QI_FTYPE_QI): Ditto.
1828 (SI_FTYPE_SI): Ditto.
1829 (DI_FTYPE_DI): Ditto.
1830 (HI_FTYPE_V16QI): Ditto.
1831 (SI_FTYPE_V32QI): Ditto.
1832 (DI_FTYPE_V64QI): Ditto.
1833 (QI_FTYPE_V8HI): Ditto.
1834 (HI_FTYPE_V16HI): Ditto.
1835 (SI_FTYPE_V32HI): Ditto.
1836 (QI_FTYPE_V4SI): Ditto.
1837 (QI_FTYPE_V8SI): Ditto.
1838 (HI_FTYPE_V16SI): Ditto.
1839 (QI_FTYPE_V2DI): Ditto.
1840 (QI_FTYPE_V4DI): Ditto.
1841 (QI_FTYPE_V8DI): Ditto.
1842 (V16QI_FTYPE_HI): Ditto.
1843 (V32QI_FTYPE_SI): Ditto.
1844 (V64QI_FTYPE_DI): Ditto.
1845 (V8HI_FTYPE_QI): Ditto.
1846 (V16HI_FTYPE_HI): Ditto.
1847 (V32HI_FTYPE_SI): Ditto.
1848 (V4SI_FTYPE_QI): Ditto.
1849 (V4SI_FTYPE_HI): Ditto.
1850 (V8SI_FTYPE_QI): Ditto.
1851 (V8SI_FTYPE_HI): Ditto.
1852 (V2DI_FTYPE_QI): Ditto.
1853 (V4DI_FTYPE_QI): Ditto.
1854 (QI_FTYPE_QI_QI): Ditto.
1855 (SI_FTYPE_SI_SI): Ditto.
1856 (DI_FTYPE_DI_DI): Ditto.
1857 (QI_FTYPE_QI_INT): Ditto.
1858 (SI_FTYPE_SI_INT): Ditto.
1859 (DI_FTYPE_DI_INT): Ditto.
1860 (HI_FTYPE_V16QI_V16QI): Ditto.
1861 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
1862 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
1863 (SI_FTYPE_V32QI_V32QI): Ditto.
1864 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
1865 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
1866 (DI_FTYPE_V64QI_V64QI): Ditto.
1867 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
1868 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
1869 (QI_FTYPE_V8HI_V8HI): Ditto.
1870 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
1871 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
1872 (HI_FTYPE_V16HI_V16HI): Ditto.
1873 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
1874 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
1875 (SI_FTYPE_V32HI_V32HI): Ditto.
1876 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
1877 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
1878 (QI_FTYPE_V4SI_V4SI): Ditto.
1879 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
1880 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
1881 (QI_FTYPE_V8SI_V8SI): Ditto.
1882 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
1883 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
1884 (QI_FTYPE_V2DI_V2DI): Ditto.
1885 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
1886 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
1887 (QI_FTYPE_V4DI_V4DI): Ditto.
1888 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
1889 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
1890 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
1891 (V4DF_FTYPE_V4DF_V4DI_INT): Ditto.
1892 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
1893 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
1894 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
1895 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
1896 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
1897 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
1898 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
1899 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
1900 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
1901 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
1902 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
1903 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
1904 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
1905 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
1906 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
1907 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
1908 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
1909 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
1910 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
1911 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
1912 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
1913 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
1914 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
1915 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
1916 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
1917 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
1918 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
1919 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
1920 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
1921 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
1922 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
1923 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
1924 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
1925 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
1926 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
1927 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
1928 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
1929 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
1930 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
1931 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
1932 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
1933 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
1934 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
1935 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
1936 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
1937 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
1938 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
1939 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
1940 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
1941 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
1942 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
1943 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
1944 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
1945 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
1946 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
1947 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
1948 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
1949 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
1950 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
1951 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
1952 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
1953 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
1954 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
1955 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
1956 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
1957 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
1958 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
1959 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
1960 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
1961 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
1962 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
1963 (V32HI_FTYPE_V64QI_V64QI_INT): Ditto.
1964 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
1965 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
1966 (V16HI_FTYPE_V32QI_V32QI_INT): Ditto.
1967 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
1968 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
1969 (V8HI_FTYPE_V16QI_V16QI_INT): Ditto.
1970 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
1971 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
1972 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
1973 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
1974 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
1975 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
1976 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
1977 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
1978 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
1979 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
1980 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
1981 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
1982 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
1983 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
1984 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
1985 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
1986 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
1987 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
1988 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
1989 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
1990 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
1991 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
1992 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
1993 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
1994 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
1995 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
1996 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
1997 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
1998 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
1999 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
2000 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
2001 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
2002 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
2003 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
2004 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
2005 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
2006 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
2007 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
2008 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
2009 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
2010 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
2011 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
2012 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
2013 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
2014 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
2015 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
2016 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
2017 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
2018 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
2019 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
2020 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
2021 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
2022 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
2023 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
2024 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
2025 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
2026 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
2027 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
2028 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
2029 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
2030 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
2031 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
2032 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
2033 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
2034 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
2035 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
2036 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
2037 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
2038 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
2039 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
2040 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
2041 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
2042 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
2043 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
2044 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
2045 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
2046 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
2047 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
2048 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
2049 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
2050 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
2051 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
2052 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
2053 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
2054 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
2055 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
2056 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
2057 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
2058 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
2059 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
2060 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
2061 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
2062 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
2063 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
2064 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
2065 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
2066 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
2067 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
2068 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
2069 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
2070 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
2071 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
2072 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
2073 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
2074 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
2075 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
2076 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
2077 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
2078 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
2079 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
2080 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
2081 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
2082 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
2083 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
2084 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
2085 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
2086 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
2087 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
2088 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
2089 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
2090 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
2091 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
2092 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
2093 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
2094 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
2095 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
2096 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
2097 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
2098 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
2099 (QI_FTYPE_V8DF_INT): Ditto.
2100 (QI_FTYPE_V4DF_INT): Ditto.
2101 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
2102 (QI_FTYPE_V2DF_INT): Ditto.
2103 (HI_FTYPE_V16SF_INT): Ditto.
2104 (QI_FTYPE_V8SF_INT): Ditto.
2105 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
2106 (QI_FTYPE_V4SF_INT): Ditto.
2107 (QI_FTYPE_V8DF_INT_QI): Ditto.
2108 (QI_FTYPE_V4DF_INT_QI): Ditto.
2109 (QI_FTYPE_V2DF_INT_QI): Ditto.
2110 (HI_FTYPE_V16SF_INT_HI): Ditto.
2111 (QI_FTYPE_V8SF_INT_QI): Ditto.
2112 (QI_FTYPE_V4SF_INT_QI): Ditto.
2113 (V8DI_FTYPE_V8DF_V8DI_QI_INT): Ditto.
2114 (V8DI_FTYPE_V8SF_V8DI_QI_INT): Ditto.
2115 (V8DF_FTYPE_V8DI_V8DF_QI_INT): Ditto.
2116 (V8SF_FTYPE_V8DI_V8SF_QI_INT): Ditto.
2117 (V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_QI_INT): Ditto.
2118 (V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_QI_INT): Ditto.
2119 (V4DF_FTYPE_V4DF_PCDOUBLE_V8SI_QI_INT): Ditto.
2120 (V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_QI_INT): Ditto.
2121 (V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_QI_INT): Ditto.
2122 (V4SF_FTYPE_V4SF_PCFLOAT_V4SI_QI_INT): Ditto.
2123 (V8SF_FTYPE_V8SF_PCFLOAT_V8SI_QI_INT): Ditto.
2124 (V4SF_FTYPE_V4SF_PCFLOAT_V2DI_QI_INT): Ditto.
2125 (V4SF_FTYPE_V4SF_PCFLOAT_V4DI_QI_INT): Ditto.
2126 (V8SF_FTYPE_V8SF_PCFLOAT_V4DI_QI_INT): Ditto.
2127 (V2DI_FTYPE_V2DI_PCINT64_V4SI_QI_INT): Ditto.
2128 (V4DI_FTYPE_V4DI_PCINT64_V4SI_QI_INT): Ditto.
2129 (V4DI_FTYPE_V4DI_PCINT64_V8SI_QI_INT): Ditto.
2130 (V2DI_FTYPE_V2DI_PCINT64_V2DI_QI_INT): Ditto.
2131 (V4DI_FTYPE_V4DI_PCINT64_V4DI_QI_INT): Ditto.
2132 (V4SI_FTYPE_V4SI_PCINT_V4SI_QI_INT): Ditto.
2133 (V8SI_FTYPE_V8SI_PCINT_V8SI_QI_INT): Ditto.
2134 (V4SI_FTYPE_V4SI_PCINT_V2DI_QI_INT): Ditto.
2135 (V4SI_FTYPE_V4SI_PCINT_V4DI_QI_INT): Ditto.
2136 (V8SI_FTYPE_V8SI_PCINT_V4DI_QI_INT): Ditto.
2137 (VOID_FTYPE_PFLOAT_QI_V8SI_V8SF_INT): Ditto.
2138 (VOID_FTYPE_PFLOAT_QI_V4SI_V4SF_INT): Ditto.
2139 (VOID_FTYPE_PDOUBLE_QI_V4SI_V4DF_INT): Ditto.
2140 (VOID_FTYPE_PDOUBLE_QI_V4SI_V2DF_INT): Ditto.
2141 (VOID_FTYPE_PFLOAT_QI_V4DI_V4SF_INT): Ditto.
2142 (VOID_FTYPE_PFLOAT_QI_V2DI_V4SF_INT): Ditto.
2143 (VOID_FTYPE_PDOUBLE_QI_V4DI_V4DF_INT): Ditto.
2144 (VOID_FTYPE_PDOUBLE_QI_V2DI_V2DF_INT): Ditto.
2145 (VOID_FTYPE_PINT_QI_V8SI_V8SI_INT): Ditto.
2146 (VOID_FTYPE_PINT_QI_V4SI_V4SI_INT): Ditto.
2147 (VOID_FTYPE_PLONGLONG_QI_V4SI_V4DI_INT): Ditto.
2148 (VOID_FTYPE_PLONGLONG_QI_V4SI_V2DI_INT): Ditto.
2149 (VOID_FTYPE_PINT_QI_V4DI_V4SI_INT): Ditto.
2150 (VOID_FTYPE_PINT_QI_V2DI_V4SI_INT): Ditto.
2151 (VOID_FTYPE_PLONGLONG_QI_V4DI_V4DI_INT): Ditto.
2152 (VOID_FTYPE_PLONGLONG_QI_V2DI_V2DI_INT): Ditto.
2153 (V8DI_FTYPE_V8DI_INT): Ditto.
2154 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
2155 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
2156 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
2157 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
2158 (V2DF_FTYPE_ V2DF_ V2DF_ V2DI_ INT_ QI): Remove.
2159 (V4SF_FTYPE_ V4SF_ V2DF_ V4SF_ QI): Ditto.
2160 (V4SF_FTYPE_ V4SF_ V4SF_ V4SF_ QI): Ditto.
2161 (V2DF_FTYPE_ PCDOUBLE_ V2DF_ QI): Ditto.
2162 (V4SF_FTYPE_ PCFLOAT_ V4SF_ QI): Ditto.
2163 (V16QI_FTYPE_ V16SI_ V16QI_ HI): Ditto.
2164 (V16QI_FTYPE_ V8DI_ V16QI_ QI): Ditto.
2165 (V4SF_FTYPE_ V4SF_ V4SF_ INT_ V4SF_ QI): Ditto.
2166 (V2DF_FTYPE_ V2DF_ V2DF_ INT_ V2DF_ QI): Ditto.
2167 (V8DI_FTYPE_ V16SI_ V16SI_ V8DI_ QI): Ditto.
2168 * config/i386/i386.c (ix86_builtins):
2169 Add IX86_BUILTIN_PMOVUSQD256_MEM, IX86_BUILTIN_PMOVUSQD128_MEM,
2170 IX86_BUILTIN_PMOVSQD256_MEM, IX86_BUILTIN_PMOVSQD128_MEM,
2171 IX86_BUILTIN_PMOVQD256_MEM, IX86_BUILTIN_PMOVQD128_MEM,
2172 IX86_BUILTIN_PMOVUSQW256_MEM, IX86_BUILTIN_PMOVUSQW128_MEM,
2173 IX86_BUILTIN_PMOVSQW256_MEM, IX86_BUILTIN_PMOVSQW128_MEM,
2174 IX86_BUILTIN_PMOVQW256_MEM, IX86_BUILTIN_PMOVQW128_MEM,
2175 IX86_BUILTIN_PMOVUSQB256_MEM, IX86_BUILTIN_PMOVUSQB128_MEM,
2176 IX86_BUILTIN_PMOVSQB256_MEM, IX86_BUILTIN_PMOVSQB128_MEM,
2177 IX86_BUILTIN_PMOVQB256_MEM, IX86_BUILTIN_PMOVQB128_MEM,
2178 IX86_BUILTIN_PMOVUSDW256_MEM, IX86_BUILTIN_PMOVUSDW128_MEM,
2179 IX86_BUILTIN_PMOVSDW256_MEM, IX86_BUILTIN_PMOVSDW128_MEM,
2180 IX86_BUILTIN_PMOVDW256_MEM, IX86_BUILTIN_PMOVDW128_MEM,
2181 IX86_BUILTIN_PMOVUSDB256_MEM, IX86_BUILTIN_PMOVUSDB128_MEM,
2182 IX86_BUILTIN_PMOVSDB256_MEM, IX86_BUILTIN_PMOVSDB128_MEM,
2183 IX86_BUILTIN_PMOVDB256_MEM, IX86_BUILTIN_PMOVDB128_MEM,
2184 IX86_BUILTIN_MOVDQA64LOAD256_MASK, IX86_BUILTIN_MOVDQA64LOAD128_MASK,
2185 IX86_BUILTIN_MOVDQA32LOAD256_MASK, IX86_BUILTIN_MOVDQA32LOAD128_MASK,
2186 IX86_BUILTIN_MOVDQA64STORE256_MASK, IX86_BUILTIN_MOVDQA64STORE128_MASK,
2187 IX86_BUILTIN_MOVDQA32STORE256_MASK, IX86_BUILTIN_MOVDQA32STORE128_MASK,
2188 IX86_BUILTIN_LOADAPD256_MASK, IX86_BUILTIN_LOADAPD128_MASK,
2189 IX86_BUILTIN_LOADAPS256_MASK, IX86_BUILTIN_LOADAPS128_MASK,
2190 IX86_BUILTIN_STOREAPD256_MASK, IX86_BUILTIN_STOREAPD128_MASK,
2191 IX86_BUILTIN_STOREAPS256_MASK, IX86_BUILTIN_STOREAPS128_MASK,
2192 IX86_BUILTIN_LOADUPD256_MASK, IX86_BUILTIN_LOADUPD128_MASK,
2193 IX86_BUILTIN_LOADUPS256_MASK, IX86_BUILTIN_LOADUPS128_MASK,
2194 IX86_BUILTIN_STOREUPD256_MASK, IX86_BUILTIN_STOREUPD128_MASK,
2195 IX86_BUILTIN_STOREUPS256_MASK, IX86_BUILTIN_STOREUPS128_MASK,
2196 IX86_BUILTIN_LOADDQUDI256_MASK, IX86_BUILTIN_LOADDQUDI128_MASK,
2197 IX86_BUILTIN_LOADDQUSI256_MASK, IX86_BUILTIN_LOADDQUSI128_MASK,
2198 IX86_BUILTIN_LOADDQUHI256_MASK, IX86_BUILTIN_LOADDQUHI128_MASK,
2199 IX86_BUILTIN_LOADDQUQI256_MASK, IX86_BUILTIN_LOADDQUQI128_MASK,
2200 IX86_BUILTIN_STOREDQUDI256_MASK, IX86_BUILTIN_STOREDQUDI128_MASK,
2201 IX86_BUILTIN_STOREDQUSI256_MASK, IX86_BUILTIN_STOREDQUSI128_MASK,
2202 IX86_BUILTIN_STOREDQUHI256_MASK, IX86_BUILTIN_STOREDQUHI128_MASK,
2203 IX86_BUILTIN_STOREDQUQI256_MASK, IX86_BUILTIN_STOREDQUQI128_MASK,
2204 IX86_BUILTIN_COMPRESSPDSTORE256, IX86_BUILTIN_COMPRESSPDSTORE128,
2205 IX86_BUILTIN_COMPRESSPSSTORE256, IX86_BUILTIN_COMPRESSPSSTORE128,
2206 IX86_BUILTIN_PCOMPRESSQSTORE256, IX86_BUILTIN_PCOMPRESSQSTORE128,
2207 IX86_BUILTIN_PCOMPRESSDSTORE256, IX86_BUILTIN_PCOMPRESSDSTORE128,
2208 IX86_BUILTIN_EXPANDPDLOAD256, IX86_BUILTIN_EXPANDPDLOAD128,
2209 IX86_BUILTIN_EXPANDPSLOAD256, IX86_BUILTIN_EXPANDPSLOAD128,
2210 IX86_BUILTIN_PEXPANDQLOAD256, IX86_BUILTIN_PEXPANDQLOAD128,
2211 IX86_BUILTIN_PEXPANDDLOAD256, IX86_BUILTIN_PEXPANDDLOAD128,
2212 IX86_BUILTIN_EXPANDPDLOAD256Z, IX86_BUILTIN_EXPANDPDLOAD128Z,
2213 IX86_BUILTIN_EXPANDPSLOAD256Z, IX86_BUILTIN_EXPANDPSLOAD128Z,
2214 IX86_BUILTIN_PEXPANDQLOAD256Z, IX86_BUILTIN_PEXPANDQLOAD128Z,
2215 IX86_BUILTIN_PEXPANDDLOAD256Z, IX86_BUILTIN_PEXPANDDLOAD128Z,
2216 IX86_BUILTIN_PALIGNR256_MASK, IX86_BUILTIN_PALIGNR128_MASK,
2217 IX86_BUILTIN_MOVDQA64_256_MASK, IX86_BUILTIN_MOVDQA64_128_MASK,
2218 IX86_BUILTIN_MOVDQA32_256_MASK, IX86_BUILTIN_MOVDQA32_128_MASK,
2219 IX86_BUILTIN_MOVAPD256_MASK, IX86_BUILTIN_MOVAPD128_MASK,
2220 IX86_BUILTIN_MOVAPS256_MASK, IX86_BUILTIN_MOVAPS128_MASK,
2221 IX86_BUILTIN_MOVDQUHI256_MASK, IX86_BUILTIN_MOVDQUHI128_MASK,
2222 IX86_BUILTIN_MOVDQUQI256_MASK, IX86_BUILTIN_MOVDQUQI128_MASK,
2223 IX86_BUILTIN_MINPS128_MASK, IX86_BUILTIN_MAXPS128_MASK,
2224 IX86_BUILTIN_MINPD128_MASK, IX86_BUILTIN_MAXPD128_MASK,
2225 IX86_BUILTIN_MAXPD256_MASK, IX86_BUILTIN_MAXPS256_MASK,
2226 IX86_BUILTIN_MINPD256_MASK, IX86_BUILTIN_MINPS256_MASK,
2227 IX86_BUILTIN_MULPS128_MASK, IX86_BUILTIN_DIVPS128_MASK,
2228 IX86_BUILTIN_MULPD128_MASK, IX86_BUILTIN_DIVPD128_MASK,
2229 IX86_BUILTIN_DIVPD256_MASK, IX86_BUILTIN_DIVPS256_MASK,
2230 IX86_BUILTIN_MULPD256_MASK, IX86_BUILTIN_MULPS256_MASK,
2231 IX86_BUILTIN_ADDPD128_MASK, IX86_BUILTIN_ADDPD256_MASK,
2232 IX86_BUILTIN_ADDPS128_MASK, IX86_BUILTIN_ADDPS256_MASK,
2233 IX86_BUILTIN_SUBPD128_MASK, IX86_BUILTIN_SUBPD256_MASK,
2234 IX86_BUILTIN_SUBPS128_MASK, IX86_BUILTIN_SUBPS256_MASK,
2235 IX86_BUILTIN_XORPD256_MASK, IX86_BUILTIN_XORPD128_MASK,
2236 IX86_BUILTIN_XORPS256_MASK, IX86_BUILTIN_XORPS128_MASK,
2237 IX86_BUILTIN_ORPD256_MASK, IX86_BUILTIN_ORPD128_MASK,
2238 IX86_BUILTIN_ORPS256_MASK, IX86_BUILTIN_ORPS128_MASK,
2239 IX86_BUILTIN_BROADCASTF32x2_256, IX86_BUILTIN_BROADCASTI32x2_256,
2240 IX86_BUILTIN_BROADCASTI32x2_128, IX86_BUILTIN_BROADCASTF64X2_256,
2241 IX86_BUILTIN_BROADCASTI64X2_256, IX86_BUILTIN_BROADCASTF32X4_256,
2242 IX86_BUILTIN_BROADCASTI32X4_256, IX86_BUILTIN_EXTRACTF32X4_256,
2243 IX86_BUILTIN_EXTRACTI32X4_256, IX86_BUILTIN_DBPSADBW256,
2244 IX86_BUILTIN_DBPSADBW128, IX86_BUILTIN_CVTTPD2QQ256,
2245 IX86_BUILTIN_CVTTPD2QQ128, IX86_BUILTIN_CVTTPD2UQQ256,
2246 IX86_BUILTIN_CVTTPD2UQQ128, IX86_BUILTIN_CVTPD2QQ256,
2247 IX86_BUILTIN_CVTPD2QQ128, IX86_BUILTIN_CVTPD2UQQ256,
2248 IX86_BUILTIN_CVTPD2UQQ128, IX86_BUILTIN_CVTPD2UDQ256_MASK,
2249 IX86_BUILTIN_CVTPD2UDQ128_MASK, IX86_BUILTIN_CVTTPS2QQ256,
2250 IX86_BUILTIN_CVTTPS2QQ128, IX86_BUILTIN_CVTTPS2UQQ256,
2251 IX86_BUILTIN_CVTTPS2UQQ128, IX86_BUILTIN_CVTTPS2DQ256_MASK,
2252 IX86_BUILTIN_CVTTPS2DQ128_MASK, IX86_BUILTIN_CVTTPS2UDQ256,
2253 IX86_BUILTIN_CVTTPS2UDQ128, IX86_BUILTIN_CVTTPD2DQ256_MASK,
2254 IX86_BUILTIN_CVTTPD2DQ128_MASK, IX86_BUILTIN_CVTTPD2UDQ256_MASK,
2255 IX86_BUILTIN_CVTTPD2UDQ128_MASK, IX86_BUILTIN_CVTPD2DQ256_MASK,
2256 IX86_BUILTIN_CVTPD2DQ128_MASK, IX86_BUILTIN_CVTDQ2PD256_MASK,
2257 IX86_BUILTIN_CVTDQ2PD128_MASK, IX86_BUILTIN_CVTUDQ2PD256_MASK,
2258 IX86_BUILTIN_CVTUDQ2PD128_MASK, IX86_BUILTIN_CVTDQ2PS256_MASK,
2259 IX86_BUILTIN_CVTDQ2PS128_MASK, IX86_BUILTIN_CVTUDQ2PS256_MASK,
2260 IX86_BUILTIN_CVTUDQ2PS128_MASK, IX86_BUILTIN_CVTPS2PD256_MASK,
2261 IX86_BUILTIN_CVTPS2PD128_MASK, IX86_BUILTIN_PBROADCASTB256_MASK,
2262 IX86_BUILTIN_PBROADCASTB256_GPR_MASK, IX86_BUILTIN_PBROADCASTB128_MASK,
2263 IX86_BUILTIN_PBROADCASTB128_GPR_MASK, IX86_BUILTIN_PBROADCASTW256_MASK,
2264 IX86_BUILTIN_PBROADCASTW256_GPR_MASK, IX86_BUILTIN_PBROADCASTW128_MASK,
2265 IX86_BUILTIN_PBROADCASTW128_GPR_MASK, IX86_BUILTIN_PBROADCASTD256_MASK,
2266 IX86_BUILTIN_PBROADCASTD256_GPR_MASK, IX86_BUILTIN_PBROADCASTD128_MASK,
2267 IX86_BUILTIN_PBROADCASTD128_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MASK,
2268 IX86_BUILTIN_PBROADCASTQ256_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
2269 IX86_BUILTIN_PBROADCASTQ128_MASK, IX86_BUILTIN_PBROADCASTQ128_GPR_MASK,
2270 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK, IX86_BUILTIN_BROADCASTSS256,
2271 IX86_BUILTIN_BROADCASTSS128, IX86_BUILTIN_BROADCASTSD256,
2272 IX86_BUILTIN_EXTRACTF64X2_256, IX86_BUILTIN_EXTRACTI64X2_256,
2273 IX86_BUILTIN_INSERTF32X4_256, IX86_BUILTIN_INSERTI32X4_256,
2274 IX86_BUILTIN_PMOVSXBW256_MASK, IX86_BUILTIN_PMOVSXBW128_MASK,
2275 IX86_BUILTIN_PMOVSXBD256_MASK, IX86_BUILTIN_PMOVSXBD128_MASK,
2276 IX86_BUILTIN_PMOVSXBQ256_MASK, IX86_BUILTIN_PMOVSXBQ128_MASK,
2277 IX86_BUILTIN_PMOVSXWD256_MASK, IX86_BUILTIN_PMOVSXWD128_MASK,
2278 IX86_BUILTIN_PMOVSXWQ256_MASK, IX86_BUILTIN_PMOVSXWQ128_MASK,
2279 IX86_BUILTIN_PMOVSXDQ256_MASK, IX86_BUILTIN_PMOVSXDQ128_MASK,
2280 IX86_BUILTIN_PMOVZXBW256_MASK, IX86_BUILTIN_PMOVZXBW128_MASK,
2281 IX86_BUILTIN_PMOVZXBD256_MASK, IX86_BUILTIN_PMOVZXBD128_MASK,
2282 IX86_BUILTIN_PMOVZXBQ256_MASK, IX86_BUILTIN_PMOVZXBQ128_MASK,
2283 IX86_BUILTIN_PMOVZXWD256_MASK, IX86_BUILTIN_PMOVZXWD128_MASK,
2284 IX86_BUILTIN_PMOVZXWQ256_MASK, IX86_BUILTIN_PMOVZXWQ128_MASK,
2285 IX86_BUILTIN_PMOVZXDQ256_MASK, IX86_BUILTIN_PMOVZXDQ128_MASK,
2286 IX86_BUILTIN_REDUCEPD256_MASK, IX86_BUILTIN_REDUCEPD128_MASK,
2287 IX86_BUILTIN_REDUCEPS256_MASK, IX86_BUILTIN_REDUCEPS128_MASK,
2288 IX86_BUILTIN_REDUCESD_MASK, IX86_BUILTIN_REDUCESS_MASK,
2289 IX86_BUILTIN_VPERMVARHI256_MASK, IX86_BUILTIN_VPERMVARHI128_MASK,
2290 IX86_BUILTIN_VPERMT2VARHI256, IX86_BUILTIN_VPERMT2VARHI256_MASKZ,
2291 IX86_BUILTIN_VPERMT2VARHI128, IX86_BUILTIN_VPERMT2VARHI128_MASKZ,
2292 IX86_BUILTIN_VPERMI2VARHI256, IX86_BUILTIN_VPERMI2VARHI128,
2293 IX86_BUILTIN_RCP14PD256, IX86_BUILTIN_RCP14PD128,
2294 IX86_BUILTIN_RCP14PS256, IX86_BUILTIN_RCP14PS128,
2295 IX86_BUILTIN_RSQRT14PD256_MASK, IX86_BUILTIN_RSQRT14PD128_MASK,
2296 IX86_BUILTIN_RSQRT14PS256_MASK, IX86_BUILTIN_RSQRT14PS128_MASK,
2297 IX86_BUILTIN_SQRTPD256_MASK, IX86_BUILTIN_SQRTPD128_MASK,
2298 IX86_BUILTIN_SQRTPS256_MASK, IX86_BUILTIN_SQRTPS128_MASK,
2299 IX86_BUILTIN_PADDB128_MASK, IX86_BUILTIN_PADDW128_MASK,
2300 IX86_BUILTIN_PADDD128_MASK, IX86_BUILTIN_PADDQ128_MASK,
2301 IX86_BUILTIN_PSUBB128_MASK, IX86_BUILTIN_PSUBW128_MASK,
2302 IX86_BUILTIN_PSUBD128_MASK, IX86_BUILTIN_PSUBQ128_MASK,
2303 IX86_BUILTIN_PADDSB128_MASK, IX86_BUILTIN_PADDSW128_MASK,
2304 IX86_BUILTIN_PSUBSB128_MASK, IX86_BUILTIN_PSUBSW128_MASK,
2305 IX86_BUILTIN_PADDUSB128_MASK, IX86_BUILTIN_PADDUSW128_MASK,
2306 IX86_BUILTIN_PSUBUSB128_MASK, IX86_BUILTIN_PSUBUSW128_MASK,
2307 IX86_BUILTIN_PADDB256_MASK, IX86_BUILTIN_PADDW256_MASK,
2308 IX86_BUILTIN_PADDD256_MASK, IX86_BUILTIN_PADDQ256_MASK,
2309 IX86_BUILTIN_PADDSB256_MASK, IX86_BUILTIN_PADDSW256_MASK,
2310 IX86_BUILTIN_PADDUSB256_MASK, IX86_BUILTIN_PADDUSW256_MASK,
2311 IX86_BUILTIN_PSUBB256_MASK, IX86_BUILTIN_PSUBW256_MASK,
2312 IX86_BUILTIN_PSUBD256_MASK, IX86_BUILTIN_PSUBQ256_MASK,
2313 IX86_BUILTIN_PSUBSB256_MASK, IX86_BUILTIN_PSUBSW256_MASK,
2314 IX86_BUILTIN_PSUBUSB256_MASK, IX86_BUILTIN_PSUBUSW256_MASK,
2315 IX86_BUILTIN_SHUF_F64x2_256, IX86_BUILTIN_SHUF_I64x2_256,
2316 IX86_BUILTIN_SHUF_I32x4_256, IX86_BUILTIN_SHUF_F32x4_256,
2317 IX86_BUILTIN_PMOVWB128, IX86_BUILTIN_PMOVWB256,
2318 IX86_BUILTIN_PMOVSWB128, IX86_BUILTIN_PMOVSWB256,
2319 IX86_BUILTIN_PMOVUSWB128, IX86_BUILTIN_PMOVUSWB256,
2320 IX86_BUILTIN_PMOVDB128, IX86_BUILTIN_PMOVDB256,
2321 IX86_BUILTIN_PMOVSDB128, IX86_BUILTIN_PMOVSDB256,
2322 IX86_BUILTIN_PMOVUSDB128, IX86_BUILTIN_PMOVUSDB256,
2323 IX86_BUILTIN_PMOVDW128, IX86_BUILTIN_PMOVDW256,
2324 IX86_BUILTIN_PMOVSDW128, IX86_BUILTIN_PMOVSDW256,
2325 IX86_BUILTIN_PMOVUSDW128, IX86_BUILTIN_PMOVUSDW256,
2326 IX86_BUILTIN_PMOVQB128, IX86_BUILTIN_PMOVQB256,
2327 IX86_BUILTIN_PMOVSQB128, IX86_BUILTIN_PMOVSQB256,
2328 IX86_BUILTIN_PMOVUSQB128, IX86_BUILTIN_PMOVUSQB256,
2329 IX86_BUILTIN_PMOVQW128, IX86_BUILTIN_PMOVQW256,
2330 IX86_BUILTIN_PMOVSQW128, IX86_BUILTIN_PMOVSQW256,
2331 IX86_BUILTIN_PMOVUSQW128, IX86_BUILTIN_PMOVUSQW256,
2332 IX86_BUILTIN_PMOVQD128, IX86_BUILTIN_PMOVQD256,
2333 IX86_BUILTIN_PMOVSQD128, IX86_BUILTIN_PMOVSQD256,
2334 IX86_BUILTIN_PMOVUSQD128, IX86_BUILTIN_PMOVUSQD256,
2335 IX86_BUILTIN_RANGEPD256, IX86_BUILTIN_RANGEPD128,
2336 IX86_BUILTIN_RANGEPS256, IX86_BUILTIN_RANGEPS128,
2337 IX86_BUILTIN_GETEXPPS256, IX86_BUILTIN_GETEXPPD256,
2338 IX86_BUILTIN_GETEXPPS128, IX86_BUILTIN_GETEXPPD128,
2339 IX86_BUILTIN_FIXUPIMMPD256_MASK, IX86_BUILTIN_FIXUPIMMPD256_MASKZ,
2340 IX86_BUILTIN_FIXUPIMMPS256_MASK, IX86_BUILTIN_FIXUPIMMPS256_MASKZ,
2341 IX86_BUILTIN_FIXUPIMMPD128_MASK, IX86_BUILTIN_FIXUPIMMPD128_MASKZ,
2342 IX86_BUILTIN_FIXUPIMMPS128_MASK, IX86_BUILTIN_FIXUPIMMPS128_MASKZ,
2343 IX86_BUILTIN_PABSQ256, IX86_BUILTIN_PABSQ128,
2344 IX86_BUILTIN_PABSD256_MASK, IX86_BUILTIN_PABSD128_MASK,
2345 IX86_BUILTIN_PMULHRSW256_MASK, IX86_BUILTIN_PMULHRSW128_MASK,
2346 IX86_BUILTIN_PMULHUW128_MASK, IX86_BUILTIN_PMULHUW256_MASK,
2347 IX86_BUILTIN_PMULHW256_MASK, IX86_BUILTIN_PMULHW128_MASK,
2348 IX86_BUILTIN_PMULLW256_MASK, IX86_BUILTIN_PMULLW128_MASK,
2349 IX86_BUILTIN_PMULLQ256, IX86_BUILTIN_PMULLQ128,
2350 IX86_BUILTIN_ANDPD256_MASK, IX86_BUILTIN_ANDPD128_MASK,
2351 IX86_BUILTIN_ANDPS256_MASK, IX86_BUILTIN_ANDPS128_MASK,
2352 IX86_BUILTIN_ANDNPD256_MASK, IX86_BUILTIN_ANDNPD128_MASK,
2353 IX86_BUILTIN_ANDNPS256_MASK, IX86_BUILTIN_ANDNPS128_MASK,
2354 IX86_BUILTIN_PSLLWI128_MASK, IX86_BUILTIN_PSLLDI128_MASK,
2355 IX86_BUILTIN_PSLLQI128_MASK, IX86_BUILTIN_PSLLW128_MASK,
2356 IX86_BUILTIN_PSLLD128_MASK, IX86_BUILTIN_PSLLQ128_MASK,
2357 IX86_BUILTIN_PSLLWI256_MASK , IX86_BUILTIN_PSLLW256_MASK,
2358 IX86_BUILTIN_PSLLDI256_MASK, IX86_BUILTIN_PSLLD256_MASK,
2359 IX86_BUILTIN_PSLLQI256_MASK, IX86_BUILTIN_PSLLQ256_MASK,
2360 IX86_BUILTIN_PSRADI128_MASK, IX86_BUILTIN_PSRAD128_MASK,
2361 IX86_BUILTIN_PSRADI256_MASK, IX86_BUILTIN_PSRAD256_MASK,
2362 IX86_BUILTIN_PSRAQI128_MASK, IX86_BUILTIN_PSRAQ128_MASK,
2363 IX86_BUILTIN_PSRAQI256_MASK, IX86_BUILTIN_PSRAQ256_MASK,
2364 IX86_BUILTIN_PANDD256, IX86_BUILTIN_PANDD128,
2365 IX86_BUILTIN_PSRLDI128_MASK, IX86_BUILTIN_PSRLD128_MASK,
2366 IX86_BUILTIN_PSRLDI256_MASK, IX86_BUILTIN_PSRLD256_MASK,
2367 IX86_BUILTIN_PSRLQI128_MASK, IX86_BUILTIN_PSRLQ128_MASK,
2368 IX86_BUILTIN_PSRLQI256_MASK, IX86_BUILTIN_PSRLQ256_MASK,
2369 IX86_BUILTIN_PANDQ256, IX86_BUILTIN_PANDQ128,
2370 IX86_BUILTIN_PANDND256, IX86_BUILTIN_PANDND128,
2371 IX86_BUILTIN_PANDNQ256, IX86_BUILTIN_PANDNQ128,
2372 IX86_BUILTIN_PORD256, IX86_BUILTIN_PORD128,
2373 IX86_BUILTIN_PORQ256, IX86_BUILTIN_PORQ128,
2374 IX86_BUILTIN_PXORD256, IX86_BUILTIN_PXORD128,
2375 IX86_BUILTIN_PXORQ256, IX86_BUILTIN_PXORQ128,
2376 IX86_BUILTIN_PACKSSWB256_MASK, IX86_BUILTIN_PACKSSWB128_MASK,
2377 IX86_BUILTIN_PACKUSWB256_MASK, IX86_BUILTIN_PACKUSWB128_MASK,
2378 IX86_BUILTIN_RNDSCALEPS256, IX86_BUILTIN_RNDSCALEPD256,
2379 IX86_BUILTIN_RNDSCALEPS128, IX86_BUILTIN_RNDSCALEPD128,
2380 IX86_BUILTIN_VTERNLOGQ256_MASK, IX86_BUILTIN_VTERNLOGQ256_MASKZ,
2381 IX86_BUILTIN_VTERNLOGD256_MASK, IX86_BUILTIN_VTERNLOGD256_MASKZ,
2382 IX86_BUILTIN_VTERNLOGQ128_MASK, IX86_BUILTIN_VTERNLOGQ128_MASKZ,
2383 IX86_BUILTIN_VTERNLOGD128_MASK, IX86_BUILTIN_VTERNLOGD128_MASKZ,
2384 IX86_BUILTIN_SCALEFPD256, IX86_BUILTIN_SCALEFPS256,
2385 IX86_BUILTIN_SCALEFPD128, IX86_BUILTIN_SCALEFPS128,
2386 IX86_BUILTIN_VFMADDPD256_MASK, IX86_BUILTIN_VFMADDPD256_MASK3,
2387 IX86_BUILTIN_VFMADDPD256_MASKZ, IX86_BUILTIN_VFMADDPD128_MASK,
2388 IX86_BUILTIN_VFMADDPD128_MASK3, IX86_BUILTIN_VFMADDPD128_MASKZ,
2389 IX86_BUILTIN_VFMADDPS256_MASK, IX86_BUILTIN_VFMADDPS256_MASK3,
2390 IX86_BUILTIN_VFMADDPS256_MASKZ, IX86_BUILTIN_VFMADDPS128_MASK,
2391 IX86_BUILTIN_VFMADDPS128_MASK3, IX86_BUILTIN_VFMADDPS128_MASKZ,
2392 IX86_BUILTIN_VFMSUBPD256_MASK3, IX86_BUILTIN_VFMSUBPD128_MASK3,
2393 IX86_BUILTIN_VFMSUBPS256_MASK3, IX86_BUILTIN_VFMSUBPS128_MASK3,
2394 IX86_BUILTIN_VFNMADDPD256_MASK, IX86_BUILTIN_VFNMADDPD128_MASK,
2395 IX86_BUILTIN_VFNMADDPS256_MASK, IX86_BUILTIN_VFNMADDPS128_MASK,
2396 IX86_BUILTIN_VFNMSUBPD256_MASK, IX86_BUILTIN_VFNMSUBPD256_MASK3,
2397 IX86_BUILTIN_VFNMSUBPD128_MASK, IX86_BUILTIN_VFNMSUBPD128_MASK3,
2398 IX86_BUILTIN_VFNMSUBPS256_MASK, IX86_BUILTIN_VFNMSUBPS256_MASK3,
2399 IX86_BUILTIN_VFNMSUBPS128_MASK, IX86_BUILTIN_VFNMSUBPS128_MASK3,
2400 IX86_BUILTIN_VFMADDSUBPD256_MASK, IX86_BUILTIN_VFMADDSUBPD256_MASK3,
2401 IX86_BUILTIN_VFMADDSUBPD256_MASKZ, IX86_BUILTIN_VFMADDSUBPD128_MASK,
2402 IX86_BUILTIN_VFMADDSUBPD128_MASK3, IX86_BUILTIN_VFMADDSUBPD128_MASKZ,
2403 IX86_BUILTIN_VFMADDSUBPS256_MASK, IX86_BUILTIN_VFMADDSUBPS256_MASK3,
2404 IX86_BUILTIN_VFMADDSUBPS256_MASKZ, IX86_BUILTIN_VFMADDSUBPS128_MASK,
2405 IX86_BUILTIN_VFMADDSUBPS128_MASK3, IX86_BUILTIN_VFMADDSUBPS128_MASKZ,
2406 IX86_BUILTIN_VFMSUBADDPD256_MASK3, IX86_BUILTIN_VFMSUBADDPD128_MASK3,
2407 IX86_BUILTIN_VFMSUBADDPS256_MASK3, IX86_BUILTIN_VFMSUBADDPS128_MASK3,
2408 IX86_BUILTIN_INSERTF64X2_256, IX86_BUILTIN_INSERTI64X2_256,
2409 IX86_BUILTIN_PSRAVV16HI, IX86_BUILTIN_PSRAVV8HI,
2410 IX86_BUILTIN_PMADDUBSW256_MASK, IX86_BUILTIN_PMADDUBSW128_MASK,
2411 IX86_BUILTIN_PMADDWD256_MASK, IX86_BUILTIN_PMADDWD128_MASK,
2412 IX86_BUILTIN_PSRLVV16HI, IX86_BUILTIN_PSRLVV8HI,
2413 IX86_BUILTIN_CVTPS2DQ256_MASK, IX86_BUILTIN_CVTPS2DQ128_MASK,
2414 IX86_BUILTIN_CVTPS2UDQ256, IX86_BUILTIN_CVTPS2UDQ128,
2415 IX86_BUILTIN_CVTPS2QQ256, IX86_BUILTIN_CVTPS2QQ128,
2416 IX86_BUILTIN_CVTPS2UQQ256, IX86_BUILTIN_CVTPS2UQQ128,
2417 IX86_BUILTIN_GETMANTPS256, IX86_BUILTIN_GETMANTPS128,
2418 IX86_BUILTIN_GETMANTPD256, IX86_BUILTIN_GETMANTPD128,
2419 IX86_BUILTIN_MOVDDUP256_MASK, IX86_BUILTIN_MOVDDUP128_MASK,
2420 IX86_BUILTIN_MOVSHDUP256_MASK, IX86_BUILTIN_MOVSHDUP128_MASK,
2421 IX86_BUILTIN_MOVSLDUP256_MASK, IX86_BUILTIN_MOVSLDUP128_MASK,
2422 IX86_BUILTIN_CVTQQ2PS256, IX86_BUILTIN_CVTQQ2PS128,
2423 IX86_BUILTIN_CVTUQQ2PS256, IX86_BUILTIN_CVTUQQ2PS128,
2424 IX86_BUILTIN_CVTQQ2PD256, IX86_BUILTIN_CVTQQ2PD128,
2425 IX86_BUILTIN_CVTUQQ2PD256, IX86_BUILTIN_CVTUQQ2PD128,
2426 IX86_BUILTIN_VPERMT2VARQ256, IX86_BUILTIN_VPERMT2VARQ256_MASKZ,
2427 IX86_BUILTIN_VPERMT2VARD256, IX86_BUILTIN_VPERMT2VARD256_MASKZ,
2428 IX86_BUILTIN_VPERMI2VARQ256, IX86_BUILTIN_VPERMI2VARD256,
2429 IX86_BUILTIN_VPERMT2VARPD256, IX86_BUILTIN_VPERMT2VARPD256_MASKZ,
2430 IX86_BUILTIN_VPERMT2VARPS256, IX86_BUILTIN_VPERMT2VARPS256_MASKZ,
2431 IX86_BUILTIN_VPERMI2VARPD256, IX86_BUILTIN_VPERMI2VARPS256,
2432 IX86_BUILTIN_VPERMT2VARQ128, IX86_BUILTIN_VPERMT2VARQ128_MASKZ,
2433 IX86_BUILTIN_VPERMT2VARD128, IX86_BUILTIN_VPERMT2VARD128_MASKZ,
2434 IX86_BUILTIN_VPERMI2VARQ128, IX86_BUILTIN_VPERMI2VARD128,
2435 IX86_BUILTIN_VPERMT2VARPD128, IX86_BUILTIN_VPERMT2VARPD128_MASKZ,
2436 IX86_BUILTIN_VPERMT2VARPS128, IX86_BUILTIN_VPERMT2VARPS128_MASKZ,
2437 IX86_BUILTIN_VPERMI2VARPD128, IX86_BUILTIN_VPERMI2VARPS128,
2438 IX86_BUILTIN_PSHUFB256_MASK, IX86_BUILTIN_PSHUFB128_MASK,
2439 IX86_BUILTIN_PSHUFHW256_MASK, IX86_BUILTIN_PSHUFHW128_MASK,
2440 IX86_BUILTIN_PSHUFLW256_MASK, IX86_BUILTIN_PSHUFLW128_MASK,
2441 IX86_BUILTIN_PSHUFD256_MASK, IX86_BUILTIN_PSHUFD128_MASK,
2442 IX86_BUILTIN_SHUFPD256_MASK, IX86_BUILTIN_SHUFPD128_MASK,
2443 IX86_BUILTIN_SHUFPS256_MASK, IX86_BUILTIN_SHUFPS128_MASK,
2444 IX86_BUILTIN_PROLVQ256, IX86_BUILTIN_PROLVQ128,
2445 IX86_BUILTIN_PROLQ256, IX86_BUILTIN_PROLQ128,
2446 IX86_BUILTIN_PRORVQ256, IX86_BUILTIN_PRORVQ128,
2447 IX86_BUILTIN_PRORQ256, IX86_BUILTIN_PRORQ128,
2448 IX86_BUILTIN_PSRAVQ128, IX86_BUILTIN_PSRAVQ256,
2449 IX86_BUILTIN_PSLLVV4DI_MASK, IX86_BUILTIN_PSLLVV2DI_MASK,
2450 IX86_BUILTIN_PSLLVV8SI_MASK, IX86_BUILTIN_PSLLVV4SI_MASK,
2451 IX86_BUILTIN_PSRAVV8SI_MASK, IX86_BUILTIN_PSRAVV4SI_MASK,
2452 IX86_BUILTIN_PSRLVV4DI_MASK, IX86_BUILTIN_PSRLVV2DI_MASK,
2453 IX86_BUILTIN_PSRLVV8SI_MASK, IX86_BUILTIN_PSRLVV4SI_MASK,
2454 IX86_BUILTIN_PSRAWI256_MASK, IX86_BUILTIN_PSRAW256_MASK,
2455 IX86_BUILTIN_PSRAWI128_MASK, IX86_BUILTIN_PSRAW128_MASK,
2456 IX86_BUILTIN_PSRLWI256_MASK, IX86_BUILTIN_PSRLW256_MASK,
2457 IX86_BUILTIN_PSRLWI128_MASK, IX86_BUILTIN_PSRLW128_MASK,
2458 IX86_BUILTIN_PRORVD256, IX86_BUILTIN_PROLVD256,
2459 IX86_BUILTIN_PRORD256, IX86_BUILTIN_PROLD256,
2460 IX86_BUILTIN_PRORVD128, IX86_BUILTIN_PROLVD128,
2461 IX86_BUILTIN_PRORD128, IX86_BUILTIN_PROLD128,
2462 IX86_BUILTIN_FPCLASSPD256, IX86_BUILTIN_FPCLASSPD128,
2463 IX86_BUILTIN_FPCLASSSD, IX86_BUILTIN_FPCLASSPS256,
2464 IX86_BUILTIN_FPCLASSPS128, IX86_BUILTIN_FPCLASSSS,
2465 IX86_BUILTIN_CVTB2MASK128, IX86_BUILTIN_CVTB2MASK256,
2466 IX86_BUILTIN_CVTW2MASK128, IX86_BUILTIN_CVTW2MASK256,
2467 IX86_BUILTIN_CVTD2MASK128, IX86_BUILTIN_CVTD2MASK256,
2468 IX86_BUILTIN_CVTQ2MASK128, IX86_BUILTIN_CVTQ2MASK256,
2469 IX86_BUILTIN_CVTMASK2B128, IX86_BUILTIN_CVTMASK2B256,
2470 IX86_BUILTIN_CVTMASK2W128, IX86_BUILTIN_CVTMASK2W256,
2471 IX86_BUILTIN_CVTMASK2D128, IX86_BUILTIN_CVTMASK2D256,
2472 IX86_BUILTIN_CVTMASK2Q128, IX86_BUILTIN_CVTMASK2Q256,
2473 IX86_BUILTIN_PCMPEQB128_MASK, IX86_BUILTIN_PCMPEQB256_MASK,
2474 IX86_BUILTIN_PCMPEQW128_MASK, IX86_BUILTIN_PCMPEQW256_MASK,
2475 IX86_BUILTIN_PCMPEQD128_MASK, IX86_BUILTIN_PCMPEQD256_MASK,
2476 IX86_BUILTIN_PCMPEQQ128_MASK, IX86_BUILTIN_PCMPEQQ256_MASK,
2477 IX86_BUILTIN_PCMPGTB128_MASK, IX86_BUILTIN_PCMPGTB256_MASK,
2478 IX86_BUILTIN_PCMPGTW128_MASK, IX86_BUILTIN_PCMPGTW256_MASK,
2479 IX86_BUILTIN_PCMPGTD128_MASK, IX86_BUILTIN_PCMPGTD256_MASK,
2480 IX86_BUILTIN_PCMPGTQ128_MASK, IX86_BUILTIN_PCMPGTQ256_MASK,
2481 IX86_BUILTIN_PTESTMB128, IX86_BUILTIN_PTESTMB256,
2482 IX86_BUILTIN_PTESTMW128, IX86_BUILTIN_PTESTMW256,
2483 IX86_BUILTIN_PTESTMD128, IX86_BUILTIN_PTESTMD256,
2484 IX86_BUILTIN_PTESTMQ128, IX86_BUILTIN_PTESTMQ256,
2485 IX86_BUILTIN_PTESTNMB128, IX86_BUILTIN_PTESTNMB256,
2486 IX86_BUILTIN_PTESTNMW128, IX86_BUILTIN_PTESTNMW256,
2487 IX86_BUILTIN_PTESTNMD128, IX86_BUILTIN_PTESTNMD256,
2488 IX86_BUILTIN_PTESTNMQ128, IX86_BUILTIN_PTESTNMQ256,
2489 IX86_BUILTIN_PBROADCASTMB128, IX86_BUILTIN_PBROADCASTMB256,
2490 IX86_BUILTIN_PBROADCASTMW128, IX86_BUILTIN_PBROADCASTMW256,
2491 IX86_BUILTIN_COMPRESSPD256, IX86_BUILTIN_COMPRESSPD128,
2492 IX86_BUILTIN_COMPRESSPS256, IX86_BUILTIN_COMPRESSPS128,
2493 IX86_BUILTIN_PCOMPRESSQ256, IX86_BUILTIN_PCOMPRESSQ128,
2494 IX86_BUILTIN_PCOMPRESSD256, IX86_BUILTIN_PCOMPRESSD128,
2495 IX86_BUILTIN_EXPANDPD256, IX86_BUILTIN_EXPANDPD128,
2496 IX86_BUILTIN_EXPANDPS256, IX86_BUILTIN_EXPANDPS128,
2497 IX86_BUILTIN_PEXPANDQ256, IX86_BUILTIN_PEXPANDQ128,
2498 IX86_BUILTIN_PEXPANDD256, IX86_BUILTIN_PEXPANDD128,
2499 IX86_BUILTIN_EXPANDPD256Z, IX86_BUILTIN_EXPANDPD128Z,
2500 IX86_BUILTIN_EXPANDPS256Z, IX86_BUILTIN_EXPANDPS128Z,
2501 IX86_BUILTIN_PEXPANDQ256Z, IX86_BUILTIN_PEXPANDQ128Z,
2502 IX86_BUILTIN_PEXPANDD256Z, IX86_BUILTIN_PEXPANDD128Z,
2503 IX86_BUILTIN_PMAXSD256_MASK, IX86_BUILTIN_PMINSD256_MASK,
2504 IX86_BUILTIN_PMAXUD256_MASK, IX86_BUILTIN_PMINUD256_MASK,
2505 IX86_BUILTIN_PMAXSD128_MASK, IX86_BUILTIN_PMINSD128_MASK,
2506 IX86_BUILTIN_PMAXUD128_MASK, IX86_BUILTIN_PMINUD128_MASK,
2507 IX86_BUILTIN_PMAXSQ256_MASK, IX86_BUILTIN_PMINSQ256_MASK,
2508 IX86_BUILTIN_PMAXUQ256_MASK, IX86_BUILTIN_PMINUQ256_MASK,
2509 IX86_BUILTIN_PMAXSQ128_MASK, IX86_BUILTIN_PMINSQ128_MASK,
2510 IX86_BUILTIN_PMAXUQ128_MASK, IX86_BUILTIN_PMINUQ128_MASK,
2511 IX86_BUILTIN_PMINSB256_MASK, IX86_BUILTIN_PMINUB256_MASK,
2512 IX86_BUILTIN_PMAXSB256_MASK, IX86_BUILTIN_PMAXUB256_MASK,
2513 IX86_BUILTIN_PMINSB128_MASK, IX86_BUILTIN_PMINUB128_MASK,
2514 IX86_BUILTIN_PMAXSB128_MASK, IX86_BUILTIN_PMAXUB128_MASK,
2515 IX86_BUILTIN_PMINSW256_MASK, IX86_BUILTIN_PMINUW256_MASK,
2516 IX86_BUILTIN_PMAXSW256_MASK, IX86_BUILTIN_PMAXUW256_MASK,
2517 IX86_BUILTIN_PMINSW128_MASK, IX86_BUILTIN_PMINUW128_MASK,
2518 IX86_BUILTIN_PMAXSW128_MASK, IX86_BUILTIN_PMAXUW128_MASK,
2519 IX86_BUILTIN_VPCONFLICTQ256, IX86_BUILTIN_VPCONFLICTD256,
2520 IX86_BUILTIN_VPCLZCNTQ256, IX86_BUILTIN_VPCLZCNTD256,
2521 IX86_BUILTIN_UNPCKHPD256_MASK, IX86_BUILTIN_UNPCKHPD128_MASK,
2522 IX86_BUILTIN_UNPCKHPS256_MASK, IX86_BUILTIN_UNPCKHPS128_MASK,
2523 IX86_BUILTIN_UNPCKLPD256_MASK, IX86_BUILTIN_UNPCKLPD128_MASK,
2524 IX86_BUILTIN_UNPCKLPS256_MASK, IX86_BUILTIN_VPCONFLICTQ128,
2525 IX86_BUILTIN_VPCONFLICTD128, IX86_BUILTIN_VPCLZCNTQ128,
2526 IX86_BUILTIN_VPCLZCNTD128, IX86_BUILTIN_UNPCKLPS128_MASK,
2527 IX86_BUILTIN_ALIGND256, IX86_BUILTIN_ALIGNQ256,
2528 IX86_BUILTIN_ALIGND128, IX86_BUILTIN_ALIGNQ128,
2529 IX86_BUILTIN_CVTPS2PH256_MASK, IX86_BUILTIN_CVTPS2PH_MASK,
2530 IX86_BUILTIN_CVTPH2PS_MASK, IX86_BUILTIN_CVTPH2PS256_MASK,
2531 IX86_BUILTIN_PUNPCKHDQ128_MASK, IX86_BUILTIN_PUNPCKHDQ256_MASK,
2532 IX86_BUILTIN_PUNPCKHQDQ128_MASK, IX86_BUILTIN_PUNPCKHQDQ256_MASK,
2533 IX86_BUILTIN_PUNPCKLDQ128_MASK, IX86_BUILTIN_PUNPCKLDQ256_MASK,
2534 IX86_BUILTIN_PUNPCKLQDQ128_MASK, IX86_BUILTIN_PUNPCKLQDQ256_MASK,
2535 IX86_BUILTIN_PUNPCKHBW128_MASK, IX86_BUILTIN_PUNPCKHBW256_MASK,
2536 IX86_BUILTIN_PUNPCKHWD128_MASK, IX86_BUILTIN_PUNPCKHWD256_MASK,
2537 IX86_BUILTIN_PUNPCKLBW128_MASK, IX86_BUILTIN_PUNPCKLBW256_MASK,
2538 IX86_BUILTIN_PUNPCKLWD128_MASK, IX86_BUILTIN_PUNPCKLWD256_MASK,
2539 IX86_BUILTIN_PSLLVV16HI, IX86_BUILTIN_PSLLVV8HI,
2540 IX86_BUILTIN_PACKSSDW256_MASK, IX86_BUILTIN_PACKSSDW128_MASK,
2541 IX86_BUILTIN_PACKUSDW256_MASK, IX86_BUILTIN_PACKUSDW128_MASK,
2542 IX86_BUILTIN_PAVGB256_MASK, IX86_BUILTIN_PAVGW256_MASK,
2543 IX86_BUILTIN_PAVGB128_MASK, IX86_BUILTIN_PAVGW128_MASK,
2544 IX86_BUILTIN_VPERMVARSF256_MASK, IX86_BUILTIN_VPERMVARDF256_MASK,
2545 IX86_BUILTIN_VPERMDF256_MASK, IX86_BUILTIN_PABSB256_MASK,
2546 IX86_BUILTIN_PABSB128_MASK, IX86_BUILTIN_PABSW256_MASK,
2547 IX86_BUILTIN_PABSW128_MASK, IX86_BUILTIN_VPERMILVARPD_MASK,
2548 IX86_BUILTIN_VPERMILVARPS_MASK, IX86_BUILTIN_VPERMILVARPD256_MASK,
2549 IX86_BUILTIN_VPERMILVARPS256_MASK, IX86_BUILTIN_VPERMILPD_MASK,
2550 IX86_BUILTIN_VPERMILPS_MASK, IX86_BUILTIN_VPERMILPD256_MASK,
2551 IX86_BUILTIN_VPERMILPS256_MASK, IX86_BUILTIN_BLENDMQ256,
2552 IX86_BUILTIN_BLENDMD256, IX86_BUILTIN_BLENDMPD256,
2553 IX86_BUILTIN_BLENDMPS256, IX86_BUILTIN_BLENDMQ128,
2554 IX86_BUILTIN_BLENDMD128, IX86_BUILTIN_BLENDMPD128,
2555 IX86_BUILTIN_BLENDMPS128, IX86_BUILTIN_BLENDMW256,
2556 IX86_BUILTIN_BLENDMB256, IX86_BUILTIN_BLENDMW128,
2557 IX86_BUILTIN_BLENDMB128, IX86_BUILTIN_PMULLD256_MASK,
2558 IX86_BUILTIN_PMULLD128_MASK, IX86_BUILTIN_PMULUDQ256_MASK,
2559 IX86_BUILTIN_PMULDQ256_MASK, IX86_BUILTIN_PMULDQ128_MASK,
2560 IX86_BUILTIN_PMULUDQ128_MASK, IX86_BUILTIN_CVTPD2PS256_MASK,
2561 IX86_BUILTIN_CVTPD2PS_MASK, IX86_BUILTIN_VPERMVARSI256_MASK,
2562 IX86_BUILTIN_VPERMVARDI256_MASK, IX86_BUILTIN_VPERMDI256_MASK,
2563 IX86_BUILTIN_CMPQ256, IX86_BUILTIN_CMPD256,
2564 IX86_BUILTIN_UCMPQ256, IX86_BUILTIN_UCMPD256,
2565 IX86_BUILTIN_CMPB256, IX86_BUILTIN_CMPW256,
2566 IX86_BUILTIN_UCMPB256, IX86_BUILTIN_UCMPW256,
2567 IX86_BUILTIN_CMPPD256_MASK, IX86_BUILTIN_CMPPS256_MASK,
2568 IX86_BUILTIN_CMPQ128, IX86_BUILTIN_CMPD128,
2569 IX86_BUILTIN_UCMPQ128, IX86_BUILTIN_UCMPD128,
2570 IX86_BUILTIN_CMPB128, IX86_BUILTIN_CMPW128,
2571 IX86_BUILTIN_UCMPB128, IX86_BUILTIN_UCMPW128,
2572 IX86_BUILTIN_CMPPD128_MASK, IX86_BUILTIN_CMPPS128_MASK,
2573 IX86_BUILTIN_GATHER3SIV8SF, IX86_BUILTIN_GATHER3SIV4SF,
2574 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV2DF,
2575 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3DIV4SF,
2576 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
2577 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3SIV4SI,
2578 IX86_BUILTIN_GATHER3SIV4DI, IX86_BUILTIN_GATHER3SIV2DI,
2579 IX86_BUILTIN_GATHER3DIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
2580 IX86_BUILTIN_GATHER3DIV4DI, IX86_BUILTIN_GATHER3DIV2DI,
2581 IX86_BUILTIN_SCATTERSIV8SF, IX86_BUILTIN_SCATTERSIV4SF,
2582 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV2DF,
2583 IX86_BUILTIN_SCATTERDIV8SF, IX86_BUILTIN_SCATTERDIV4SF,
2584 IX86_BUILTIN_SCATTERDIV4DF, IX86_BUILTIN_SCATTERDIV2DF,
2585 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV4SI,
2586 IX86_BUILTIN_SCATTERSIV4DI, IX86_BUILTIN_SCATTERSIV2DI,
2587 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_SCATTERDIV4SI,
2588 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
2589 IX86_BUILTIN_RANGESD128, IX86_BUILTIN_RANGESS128,
2590 IX86_BUILTIN_KUNPCKWD, IX86_BUILTIN_KUNPCKDQ,
2591 IX86_BUILTIN_BROADCASTF32x2_512, IX86_BUILTIN_BROADCASTI32x2_512,
2592 IX86_BUILTIN_BROADCASTF64X2_512, IX86_BUILTIN_BROADCASTI64X2_512,
2593 IX86_BUILTIN_BROADCASTF32X8_512, IX86_BUILTIN_BROADCASTI32X8_512,
2594 IX86_BUILTIN_EXTRACTF64X2_512, IX86_BUILTIN_EXTRACTF32X8,
2595 IX86_BUILTIN_EXTRACTI64X2_512, IX86_BUILTIN_EXTRACTI32X8,
2596 IX86_BUILTIN_REDUCEPD512_MASK, IX86_BUILTIN_REDUCEPS512_MASK,
2597 IX86_BUILTIN_PMULLQ512, IX86_BUILTIN_XORPD512,
2598 IX86_BUILTIN_XORPS512, IX86_BUILTIN_ORPD512,
2599 IX86_BUILTIN_ORPS512, IX86_BUILTIN_ANDPD512,
2600 IX86_BUILTIN_ANDPS512, IX86_BUILTIN_ANDNPD512,
2601 IX86_BUILTIN_ANDNPS512, IX86_BUILTIN_INSERTF32X8,
2602 IX86_BUILTIN_INSERTI32X8, IX86_BUILTIN_INSERTF64X2_512,
2603 IX86_BUILTIN_INSERTI64X2_512, IX86_BUILTIN_FPCLASSPD512,
2604 IX86_BUILTIN_FPCLASSPS512, IX86_BUILTIN_CVTD2MASK512,
2605 IX86_BUILTIN_CVTQ2MASK512, IX86_BUILTIN_CVTMASK2D512,
2606 IX86_BUILTIN_CVTMASK2Q512, IX86_BUILTIN_CVTPD2QQ512,
2607 IX86_BUILTIN_CVTPS2QQ512, IX86_BUILTIN_CVTPD2UQQ512,
2608 IX86_BUILTIN_CVTPS2UQQ512, IX86_BUILTIN_CVTQQ2PS512,
2609 IX86_BUILTIN_CVTUQQ2PS512, IX86_BUILTIN_CVTQQ2PD512,
2610 IX86_BUILTIN_CVTUQQ2PD512, IX86_BUILTIN_CVTTPS2QQ512,
2611 IX86_BUILTIN_CVTTPS2UQQ512, IX86_BUILTIN_CVTTPD2QQ512,
2612 IX86_BUILTIN_CVTTPD2UQQ512, IX86_BUILTIN_RANGEPS512,
2613 IX86_BUILTIN_RANGEPD512, IX86_BUILTIN_PACKUSDW512,
2614 IX86_BUILTIN_PACKSSDW512, IX86_BUILTIN_LOADDQUHI512_MASK,
2615 IX86_BUILTIN_LOADDQUQI512_MASK, IX86_BUILTIN_PSLLDQ512,
2616 IX86_BUILTIN_PSRLDQ512, IX86_BUILTIN_STOREDQUHI512_MASK,
2617 IX86_BUILTIN_STOREDQUQI512_MASK, IX86_BUILTIN_PALIGNR512,
2618 IX86_BUILTIN_PALIGNR512_MASK, IX86_BUILTIN_MOVDQUHI512_MASK,
2619 IX86_BUILTIN_MOVDQUQI512_MASK, IX86_BUILTIN_PSADBW512,
2620 IX86_BUILTIN_DBPSADBW512, IX86_BUILTIN_PBROADCASTB512,
2621 IX86_BUILTIN_PBROADCASTB512_GPR, IX86_BUILTIN_PBROADCASTW512,
2622 IX86_BUILTIN_PBROADCASTW512_GPR, IX86_BUILTIN_PMOVSXBW512_MASK,
2623 IX86_BUILTIN_PMOVZXBW512_MASK, IX86_BUILTIN_VPERMVARHI512_MASK,
2624 IX86_BUILTIN_VPERMT2VARHI512, IX86_BUILTIN_VPERMT2VARHI512_MASKZ,
2625 IX86_BUILTIN_VPERMI2VARHI512, IX86_BUILTIN_PAVGB512,
2626 IX86_BUILTIN_PAVGW512, IX86_BUILTIN_PADDB512,
2627 IX86_BUILTIN_PSUBB512, IX86_BUILTIN_PSUBSB512,
2628 IX86_BUILTIN_PADDSB512, IX86_BUILTIN_PSUBUSB512,
2629 IX86_BUILTIN_PADDUSB512, IX86_BUILTIN_PSUBW512,
2630 IX86_BUILTIN_PADDW512, IX86_BUILTIN_PSUBSW512,
2631 IX86_BUILTIN_PADDSW512, IX86_BUILTIN_PSUBUSW512,
2632 IX86_BUILTIN_PADDUSW512, IX86_BUILTIN_PMAXUW512,
2633 IX86_BUILTIN_PMAXSW512, IX86_BUILTIN_PMINUW512,
2634 IX86_BUILTIN_PMINSW512, IX86_BUILTIN_PMAXUB512,
2635 IX86_BUILTIN_PMAXSB512, IX86_BUILTIN_PMINUB512,
2636 IX86_BUILTIN_PMINSB512, IX86_BUILTIN_PMOVWB512,
2637 IX86_BUILTIN_PMOVSWB512, IX86_BUILTIN_PMOVUSWB512,
2638 IX86_BUILTIN_PMULHRSW512_MASK, IX86_BUILTIN_PMULHUW512_MASK,
2639 IX86_BUILTIN_PMULHW512_MASK, IX86_BUILTIN_PMULLW512_MASK,
2640 IX86_BUILTIN_PSLLWI512_MASK, IX86_BUILTIN_PSLLW512_MASK,
2641 IX86_BUILTIN_PACKSSWB512, IX86_BUILTIN_PACKUSWB512,
2642 IX86_BUILTIN_PSRAVV32HI, IX86_BUILTIN_PMADDUBSW512_MASK,
2643 IX86_BUILTIN_PMADDWD512_MASK, IX86_BUILTIN_PSRLVV32HI,
2644 IX86_BUILTIN_PUNPCKHBW512, IX86_BUILTIN_PUNPCKHWD512,
2645 IX86_BUILTIN_PUNPCKLBW512, IX86_BUILTIN_PUNPCKLWD512,
2646 IX86_BUILTIN_PSHUFB512, IX86_BUILTIN_PSHUFHW512,
2647 IX86_BUILTIN_PSHUFLW512, IX86_BUILTIN_PSRAWI512,
2648 IX86_BUILTIN_PSRAW512, IX86_BUILTIN_PSRLWI512,
2649 IX86_BUILTIN_PSRLW512, IX86_BUILTIN_CVTB2MASK512,
2650 IX86_BUILTIN_CVTW2MASK512, IX86_BUILTIN_CVTMASK2B512,
2651 IX86_BUILTIN_CVTMASK2W512, IX86_BUILTIN_PCMPEQB512_MASK,
2652 IX86_BUILTIN_PCMPEQW512_MASK, IX86_BUILTIN_PCMPGTB512_MASK,
2653 IX86_BUILTIN_PCMPGTW512_MASK, IX86_BUILTIN_PTESTMB512,
2654 IX86_BUILTIN_PTESTMW512, IX86_BUILTIN_PTESTNMB512,
2655 IX86_BUILTIN_PTESTNMW512, IX86_BUILTIN_PSLLVV32HI,
2656 IX86_BUILTIN_PABSB512, IX86_BUILTIN_PABSW512,
2657 IX86_BUILTIN_BLENDMW512, IX86_BUILTIN_BLENDMB512,
2658 IX86_BUILTIN_CMPB512, IX86_BUILTIN_CMPW512,
2659 IX86_BUILTIN_UCMPB512, IX86_BUILTIN_UCMPW512.
2660 (bdesc_special_args):
2661 Add __builtin_ia32_loaddquhi512_mask, __builtin_ia32_loaddquqi512_mask,
2662 __builtin_ia32_storedquhi512_mask, __builtin_ia32_storedquqi512_mask,
2663 __builtin_ia32_loaddquhi256_mask, __builtin_ia32_loaddquhi128_mask,
2664 __builtin_ia32_loaddquqi256_mask, __builtin_ia32_loaddquqi128_mask,
2665 __builtin_ia32_movdqa64load256_mask, __builtin_ia32_movdqa64load128_mask,
2666 __builtin_ia32_movdqa32load256_mask, __builtin_ia32_movdqa32load128_mask,
2667 __builtin_ia32_movdqa64store256_mask, __builtin_ia32_movdqa64store128_mask,
2668 __builtin_ia32_movdqa32store256_mask, __builtin_ia32_movdqa32store128_mask,
2669 __builtin_ia32_loadapd256_mask, __builtin_ia32_loadapd128_mask,
2670 __builtin_ia32_loadaps256_mask, __builtin_ia32_loadaps128_mask,
2671 __builtin_ia32_storeapd256_mask, __builtin_ia32_storeapd128_mask,
2672 __builtin_ia32_storeaps256_mask, __builtin_ia32_storeaps128_mask,
2673 __builtin_ia32_loadupd256_mask, __builtin_ia32_loadupd128_mask,
2674 __builtin_ia32_loadups256_mask, __builtin_ia32_loadups128_mask,
2675 __builtin_ia32_storeupd256_mask, __builtin_ia32_storeupd128_mask,
2676 __builtin_ia32_storeups256_mask, __builtin_ia32_storeups128_mask,
2677 __builtin_ia32_loaddqudi256_mask, __builtin_ia32_loaddqudi128_mask,
2678 __builtin_ia32_loaddqusi256_mask, __builtin_ia32_loaddqusi128_mask,
2679 __builtin_ia32_storedqudi256_mask, __builtin_ia32_storedqudi128_mask,
2680 __builtin_ia32_storedqusi256_mask, __builtin_ia32_storedqusi128_mask,
2681 __builtin_ia32_storedquhi256_mask, __builtin_ia32_storedquhi128_mask,
2682 __builtin_ia32_storedquqi256_mask, __builtin_ia32_storedquqi128_mask,
2683 __builtin_ia32_compressstoredf256_mask, __builtin_ia32_compressstoredf128_mask,
2684 __builtin_ia32_compressstoresf256_mask, __builtin_ia32_compressstoresf128_mask,
2685 __builtin_ia32_compressstoredi256_mask, __builtin_ia32_compressstoredi128_mask,
2686 __builtin_ia32_compressstoresi256_mask, __builtin_ia32_compressstoresi128_mask,
2687 __builtin_ia32_expandloaddf256_mask, __builtin_ia32_expandloaddf128_mask,
2688 __builtin_ia32_expandloadsf256_mask, __builtin_ia32_expandloadsf128_mask,
2689 __builtin_ia32_expandloaddi256_mask, __builtin_ia32_expandloaddi128_mask,
2690 __builtin_ia32_expandloadsi256_mask, __builtin_ia32_expandloadsi128_mask,
2691 __builtin_ia32_expandloaddf256_maskz, __builtin_ia32_expandloaddf128_maskz,
2692 __builtin_ia32_expandloadsf256_maskz, __builtin_ia32_expandloadsf128_maskz,
2693 __builtin_ia32_expandloaddi256_maskz, __builtin_ia32_expandloaddi128_maskz,
2694 __builtin_ia32_expandloadsi256_maskz, __builtin_ia32_expandloadsi128_maskz,
2695 __builtin_ia32_pmovqd256mem_mask, __builtin_ia32_pmovqd128mem_mask,
2696 __builtin_ia32_pmovsqd256mem_mask, __builtin_ia32_pmovsqd128mem_mask,
2697 __builtin_ia32_pmovusqd256mem_mask, __builtin_ia32_pmovusqd128mem_mask,
2698 __builtin_ia32_pmovqw256mem_mask, __builtin_ia32_pmovqw128mem_mask,
2699 __builtin_ia32_pmovsqw256mem_mask, __builtin_ia32_pmovsqw128mem_mask,
2700 __builtin_ia32_pmovusqw256mem_mask, __builtin_ia32_pmovusqw128mem_mask,
2701 __builtin_ia32_pmovqb256mem_mask, __builtin_ia32_pmovqb128mem_mask,
2702 __builtin_ia32_pmovsqb256mem_mask, __builtin_ia32_pmovsqb128mem_mask,
2703 __builtin_ia32_pmovusqb256mem_mask, __builtin_ia32_pmovusqb128mem_mask,
2704 __builtin_ia32_pmovdb256mem_mask, __builtin_ia32_pmovdb128mem_mask,
2705 __builtin_ia32_pmovsdb256mem_mask, __builtin_ia32_pmovsdb128mem_mask,
2706 __builtin_ia32_pmovusdb256mem_mask, __builtin_ia32_pmovusdb128mem_mask,
2707 __builtin_ia32_pmovdw256mem_mask, __builtin_ia32_pmovdw128mem_mask,
2708 __builtin_ia32_pmovsdw256mem_mask, __builtin_ia32_pmovsdw128mem_mask,
2709 __builtin_ia32_pmovusdw256mem_mask, __builtin_ia32_pmovusdw128mem_mask,
2710 __builtin_ia32_palignr256_mask, __builtin_ia32_palignr128_mask,
2711 __builtin_ia32_movdqa64_256_mask, __builtin_ia32_movdqa64_128_mask,
2712 __builtin_ia32_movdqa32_256_mask, __builtin_ia32_movdqa32_128_mask,
2713 __builtin_ia32_movapd256_mask, __builtin_ia32_movapd128_mask,
2714 __builtin_ia32_movaps256_mask, __builtin_ia32_movaps128_mask,
2715 __builtin_ia32_movdquhi256_mask, __builtin_ia32_movdquhi128_mask,
2716 __builtin_ia32_movdquqi256_mask, __builtin_ia32_movdquqi128_mask,
2717 __builtin_ia32_minps_mask, __builtin_ia32_maxps_mask,
2718 __builtin_ia32_minpd_mask, __builtin_ia32_maxpd_mask,
2719 __builtin_ia32_maxpd256_mask, __builtin_ia32_maxps256_mask,
2720 __builtin_ia32_minpd256_mask, __builtin_ia32_minps256_mask,
2721 __builtin_ia32_mulps_mask, __builtin_ia32_divps_mask,
2722 __builtin_ia32_mulpd_mask, __builtin_ia32_divpd_mask,
2723 __builtin_ia32_divpd256_mask, __builtin_ia32_divps256_mask,
2724 __builtin_ia32_mulpd256_mask, __builtin_ia32_mulps256_mask,
2725 __builtin_ia32_addpd128_mask, __builtin_ia32_addpd256_mask,
2726 __builtin_ia32_addps128_mask, __builtin_ia32_addps256_mask,
2727 __builtin_ia32_subpd128_mask, __builtin_ia32_subpd256_mask,
2728 __builtin_ia32_subps128_mask, __builtin_ia32_subps256_mask,
2729 __builtin_ia32_xorpd256_mask, __builtin_ia32_xorpd128_mask,
2730 __builtin_ia32_xorps256_mask, __builtin_ia32_xorps128_mask,
2731 __builtin_ia32_orpd256_mask, __builtin_ia32_orpd128_mask,
2732 __builtin_ia32_orps256_mask, __builtin_ia32_orps128_mask,
2733 __builtin_ia32_broadcastf32x2_256_mask, __builtin_ia32_broadcasti32x2_256_mask,
2734 __builtin_ia32_broadcasti32x2_128_mask, __builtin_ia32_broadcastf64x2_256_mask,
2735 __builtin_ia32_broadcasti64x2_256_mask, __builtin_ia32_broadcastf32x4_256_mask,
2736 __builtin_ia32_broadcasti32x4_256_mask, __builtin_ia32_extractf32x4_256_mask,
2737 __builtin_ia32_extracti32x4_256_mask, __builtin_ia32_dbpsadbw256_mask,
2738 __builtin_ia32_dbpsadbw128_mask, __builtin_ia32_cvttpd2qq256_mask,
2739 __builtin_ia32_cvttpd2qq128_mask, __builtin_ia32_cvttpd2uqq256_mask,
2740 __builtin_ia32_cvttpd2uqq128_mask, __builtin_ia32_cvtpd2qq256_mask,
2741 __builtin_ia32_cvtpd2qq128_mask, __builtin_ia32_cvtpd2uqq256_mask,
2742 __builtin_ia32_cvtpd2uqq128_mask, __builtin_ia32_cvtpd2udq256_mask,
2743 __builtin_ia32_cvtpd2udq128_mask, __builtin_ia32_cvttps2qq256_mask,
2744 __builtin_ia32_cvttps2qq128_mask, __builtin_ia32_cvttps2uqq256_mask,
2745 __builtin_ia32_cvttps2uqq128_mask, __builtin_ia32_cvttps2dq256_mask,
2746 __builtin_ia32_cvttps2dq128_mask, __builtin_ia32_cvttps2udq256_mask,
2747 __builtin_ia32_cvttps2udq128_mask, __builtin_ia32_cvttpd2dq256_mask,
2748 __builtin_ia32_cvttpd2dq128_mask, __builtin_ia32_cvttpd2udq256_mask,
2749 __builtin_ia32_cvttpd2udq128_mask, __builtin_ia32_cvtpd2dq256_mask,
2750 __builtin_ia32_cvtpd2dq128_mask, __builtin_ia32_cvtdq2pd256_mask,
2751 __builtin_ia32_cvtdq2pd128_mask, __builtin_ia32_cvtudq2pd256_mask,
2752 __builtin_ia32_cvtudq2pd128_mask, __builtin_ia32_cvtdq2ps256_mask,
2753 __builtin_ia32_cvtdq2ps128_mask, __builtin_ia32_cvtudq2ps256_mask,
2754 __builtin_ia32_cvtudq2ps128_mask, __builtin_ia32_cvtps2pd256_mask,
2755 __builtin_ia32_cvtps2pd128_mask, __builtin_ia32_pbroadcastb256_mask,
2756 __builtin_ia32_pbroadcastb256_gpr_mask, __builtin_ia32_pbroadcastb128_mask,
2757 __builtin_ia32_pbroadcastb128_gpr_mask, __builtin_ia32_pbroadcastw256_mask,
2758 __builtin_ia32_pbroadcastw256_gpr_mask, __builtin_ia32_pbroadcastw128_mask,
2759 __builtin_ia32_pbroadcastw128_gpr_mask, __builtin_ia32_pbroadcastd256_mask,
2760 __builtin_ia32_pbroadcastd256_gpr_mask, __builtin_ia32_pbroadcastd128_mask,
2761 __builtin_ia32_pbroadcastd128_gpr_mask, __builtin_ia32_pbroadcastq256_mask,
2762 __builtin_ia32_pbroadcastq256_gpr_mask, __builtin_ia32_pbroadcastq256_mem_mask,
2763 __builtin_ia32_pbroadcastq128_mask, __builtin_ia32_pbroadcastq128_gpr_mask,
2764 __builtin_ia32_pbroadcastq128_mem_mask, __builtin_ia32_broadcastss256_mask,
2765 __builtin_ia32_broadcastss128_mask, __builtin_ia32_broadcastsd256_mask,
2766 __builtin_ia32_extractf64x2_256_mask, __builtin_ia32_extracti64x2_256_mask,
2767 __builtin_ia32_insertf32x4_256_mask, __builtin_ia32_inserti32x4_256_mask,
2768 __builtin_ia32_pmovsxbw256_mask, __builtin_ia32_pmovsxbw128_mask,
2769 __builtin_ia32_pmovsxbd256_mask, __builtin_ia32_pmovsxbd128_mask,
2770 __builtin_ia32_pmovsxbq256_mask, __builtin_ia32_pmovsxbq128_mask,
2771 __builtin_ia32_pmovsxwd256_mask, __builtin_ia32_pmovsxwd128_mask,
2772 __builtin_ia32_pmovsxwq256_mask, __builtin_ia32_pmovsxwq128_mask,
2773 __builtin_ia32_pmovsxdq256_mask, __builtin_ia32_pmovsxdq128_mask,
2774 __builtin_ia32_pmovzxbw256_mask, __builtin_ia32_pmovzxbw128_mask,
2775 __builtin_ia32_pmovzxbd256_mask, __builtin_ia32_pmovzxbd128_mask,
2776 __builtin_ia32_pmovzxbq256_mask, __builtin_ia32_pmovzxbq128_mask,
2777 __builtin_ia32_pmovzxwd256_mask, __builtin_ia32_pmovzxwd128_mask,
2778 __builtin_ia32_pmovzxwq256_mask, __builtin_ia32_pmovzxwq128_mask,
2779 __builtin_ia32_pmovzxdq256_mask, __builtin_ia32_pmovzxdq128_mask,
2780 __builtin_ia32_reducepd256_mask, __builtin_ia32_reducepd128_mask,
2781 __builtin_ia32_reduceps256_mask, __builtin_ia32_reduceps128_mask,
2782 __builtin_ia32_reducesd, __builtin_ia32_reducess,
2783 __builtin_ia32_permvarhi256_mask, __builtin_ia32_permvarhi128_mask,
2784 __builtin_ia32_vpermt2varhi256_mask, __builtin_ia32_vpermt2varhi256_maskz,
2785 __builtin_ia32_vpermt2varhi128_mask, __builtin_ia32_vpermt2varhi128_maskz,
2786 __builtin_ia32_vpermi2varhi256_mask, __builtin_ia32_vpermi2varhi128_mask,
2787 __builtin_ia32_rcp14pd256_mask, __builtin_ia32_rcp14pd128_mask,
2788 __builtin_ia32_rcp14ps256_mask, __builtin_ia32_rcp14ps128_mask,
2789 __builtin_ia32_rsqrt14pd256_mask, __builtin_ia32_rsqrt14pd128_mask,
2790 __builtin_ia32_rsqrt14ps256_mask, __builtin_ia32_rsqrt14ps128_mask,
2791 __builtin_ia32_sqrtpd256_mask, __builtin_ia32_sqrtpd128_mask,
2792 __builtin_ia32_sqrtps256_mask, __builtin_ia32_sqrtps128_mask,
2793 __builtin_ia32_paddb128_mask, __builtin_ia32_paddw128_mask,
2794 __builtin_ia32_paddd128_mask, __builtin_ia32_paddq128_mask,
2795 __builtin_ia32_psubb128_mask, __builtin_ia32_psubw128_mask,
2796 __builtin_ia32_psubd128_mask, __builtin_ia32_psubq128_mask,
2797 __builtin_ia32_paddsb128_mask, __builtin_ia32_paddsw128_mask,
2798 __builtin_ia32_psubsb128_mask, __builtin_ia32_psubsw128_mask,
2799 __builtin_ia32_paddusb128_mask, __builtin_ia32_paddusw128_mask,
2800 __builtin_ia32_psubusb128_mask, __builtin_ia32_psubusw128_mask,
2801 __builtin_ia32_paddb256_mask, __builtin_ia32_paddw256_mask,
2802 __builtin_ia32_paddd256_mask, __builtin_ia32_paddq256_mask,
2803 __builtin_ia32_paddsb256_mask, __builtin_ia32_paddsw256_mask,
2804 __builtin_ia32_paddusb256_mask, __builtin_ia32_paddusw256_mask,
2805 __builtin_ia32_psubb256_mask, __builtin_ia32_psubw256_mask,
2806 __builtin_ia32_psubd256_mask, __builtin_ia32_psubq256_mask,
2807 __builtin_ia32_psubsb256_mask, __builtin_ia32_psubsw256_mask,
2808 __builtin_ia32_psubusb256_mask, __builtin_ia32_psubusw256_mask,
2809 __builtin_ia32_shuf_f64x2_256_mask, __builtin_ia32_shuf_i64x2_256_mask,
2810 __builtin_ia32_shuf_i32x4_256_mask, __builtin_ia32_shuf_f32x4_256_mask,
2811 __builtin_ia32_pmovwb128_mask, __builtin_ia32_pmovwb256_mask,
2812 __builtin_ia32_pmovswb128_mask, __builtin_ia32_pmovswb256_mask,
2813 __builtin_ia32_pmovuswb128_mask, __builtin_ia32_pmovuswb256_mask,
2814 __builtin_ia32_pmovdb128_mask, __builtin_ia32_pmovdb256_mask,
2815 __builtin_ia32_pmovsdb128_mask, __builtin_ia32_pmovsdb256_mask,
2816 __builtin_ia32_pmovusdb128_mask, __builtin_ia32_pmovusdb256_mask,
2817 __builtin_ia32_pmovdw128_mask, __builtin_ia32_pmovdw256_mask,
2818 __builtin_ia32_pmovsdw128_mask, __builtin_ia32_pmovsdw256_mask,
2819 __builtin_ia32_pmovusdw128_mask, __builtin_ia32_pmovusdw256_mask,
2820 __builtin_ia32_pmovqb128_mask, __builtin_ia32_pmovqb256_mask,
2821 __builtin_ia32_pmovsqb128_mask, __builtin_ia32_pmovsqb256_mask,
2822 __builtin_ia32_pmovusqb128_mask, __builtin_ia32_pmovusqb256_mask,
2823 __builtin_ia32_pmovqw128_mask, __builtin_ia32_pmovqw256_mask,
2824 __builtin_ia32_pmovsqw128_mask, __builtin_ia32_pmovsqw256_mask,
2825 __builtin_ia32_pmovusqw128_mask, __builtin_ia32_pmovusqw256_mask,
2826 __builtin_ia32_pmovqd128_mask, __builtin_ia32_pmovqd256_mask,
2827 __builtin_ia32_pmovsqd128_mask, __builtin_ia32_pmovsqd256_mask,
2828 __builtin_ia32_pmovusqd128_mask, __builtin_ia32_pmovusqd256_mask,
2829 __builtin_ia32_rangepd256_mask, __builtin_ia32_rangepd128_mask,
2830 __builtin_ia32_rangeps256_mask, __builtin_ia32_rangeps128_mask,
2831 __builtin_ia32_getexpps256_mask, __builtin_ia32_getexppd256_mask,
2832 __builtin_ia32_getexpps128_mask, __builtin_ia32_getexppd128_mask,
2833 __builtin_ia32_fixupimmpd256, __builtin_ia32_fixupimmpd256_mask,
2834 __builtin_ia32_fixupimmpd256_maskz, __builtin_ia32_fixupimmps256,
2835 __builtin_ia32_fixupimmps256_mask, __builtin_ia32_fixupimmps256_maskz,
2836 __builtin_ia32_fixupimmpd128, __builtin_ia32_fixupimmpd128_mask,
2837 __builtin_ia32_fixupimmpd128_maskz, __builtin_ia32_fixupimmps128,
2838 __builtin_ia32_fixupimmps128_mask, __builtin_ia32_fixupimmps128_maskz,
2839 __builtin_ia32_pabsq256_mask, __builtin_ia32_pabsq128_mask,
2840 __builtin_ia32_pabsd256_mask, __builtin_ia32_pabsd128_mask,
2841 __builtin_ia32_pmulhrsw256_mask, __builtin_ia32_pmulhrsw128_mask,
2842 __builtin_ia32_pmulhuw128_mask, __builtin_ia32_pmulhuw256_mask,
2843 __builtin_ia32_pmulhw256_mask, __builtin_ia32_pmulhw128_mask,
2844 __builtin_ia32_pmullw256_mask, __builtin_ia32_pmullw128_mask,
2845 __builtin_ia32_pmullq256_mask, __builtin_ia32_pmullq128_mask,
2846 __builtin_ia32_andpd256_mask, __builtin_ia32_andpd128_mask,
2847 __builtin_ia32_andps256_mask, __builtin_ia32_andps128_mask,
2848 __builtin_ia32_andnpd256_mask, __builtin_ia32_andnpd128_mask,
2849 __builtin_ia32_andnps256_mask, __builtin_ia32_andnps128_mask,
2850 __builtin_ia32_psllwi128_mask, __builtin_ia32_pslldi128_mask,
2851 __builtin_ia32_psllqi128_mask, __builtin_ia32_psllw128_mask,
2852 __builtin_ia32_pslld128_mask, __builtin_ia32_psllq128_mask,
2853 __builtin_ia32_psllwi256_mask, __builtin_ia32_psllw256_mask,
2854 __builtin_ia32_pslldi256_mask, __builtin_ia32_pslld256_mask,
2855 __builtin_ia32_psllqi256_mask, __builtin_ia32_psllq256_mask,
2856 __builtin_ia32_psradi128_mask, __builtin_ia32_psrad128_mask,
2857 __builtin_ia32_psradi256_mask, __builtin_ia32_psrad256_mask,
2858 __builtin_ia32_psraqi128_mask, __builtin_ia32_psraq128_mask,
2859 __builtin_ia32_psraqi256_mask, __builtin_ia32_psraq256_mask,
2860 __builtin_ia32_pandd256_mask, __builtin_ia32_pandd128_mask,
2861 __builtin_ia32_psrldi128_mask, __builtin_ia32_psrld128_mask,
2862 __builtin_ia32_psrldi256_mask, __builtin_ia32_psrld256_mask,
2863 __builtin_ia32_psrlqi128_mask, __builtin_ia32_psrlq128_mask,
2864 __builtin_ia32_psrlqi256_mask, __builtin_ia32_psrlq256_mask,
2865 __builtin_ia32_pandq256_mask, __builtin_ia32_pandq128_mask,
2866 __builtin_ia32_pandnd256_mask, __builtin_ia32_pandnd128_mask,
2867 __builtin_ia32_pandnq256_mask, __builtin_ia32_pandnq128_mask,
2868 __builtin_ia32_pord256_mask, __builtin_ia32_pord128_mask,
2869 __builtin_ia32_porq256_mask, __builtin_ia32_porq128_mask,
2870 __builtin_ia32_pxord256_mask, __builtin_ia32_pxord128_mask,
2871 __builtin_ia32_pxorq256_mask, __builtin_ia32_pxorq128_mask,
2872 __builtin_ia32_packsswb256_mask, __builtin_ia32_packsswb128_mask,
2873 __builtin_ia32_packuswb256_mask, __builtin_ia32_packuswb128_mask,
2874 __builtin_ia32_rndscaleps_256_mask, __builtin_ia32_rndscalepd_256_mask,
2875 __builtin_ia32_rndscaleps_128_mask, __builtin_ia32_rndscalepd_128_mask,
2876 __builtin_ia32_pternlogq256_mask, __builtin_ia32_pternlogq256_maskz,
2877 __builtin_ia32_pternlogd256_mask, __builtin_ia32_pternlogd256_maskz,
2878 __builtin_ia32_pternlogq128_mask, __builtin_ia32_pternlogq128_maskz,
2879 __builtin_ia32_pternlogd128_mask, __builtin_ia32_pternlogd128_maskz,
2880 __builtin_ia32_scalefpd256_mask, __builtin_ia32_scalefps256_mask,
2881 __builtin_ia32_scalefpd128_mask, __builtin_ia32_scalefps128_mask,
2882 __builtin_ia32_vfmaddpd256_mask, __builtin_ia32_vfmaddpd256_mask3,
2883 __builtin_ia32_vfmaddpd256_maskz, __builtin_ia32_vfmaddpd128_mask,
2884 __builtin_ia32_vfmaddpd128_mask3, __builtin_ia32_vfmaddpd128_maskz,
2885 __builtin_ia32_vfmaddps256_mask, __builtin_ia32_vfmaddps256_mask3,
2886 __builtin_ia32_vfmaddps256_maskz, __builtin_ia32_vfmaddps128_mask,
2887 __builtin_ia32_vfmaddps128_mask3, __builtin_ia32_vfmaddps128_maskz,
2888 __builtin_ia32_vfmsubpd256_mask3, __builtin_ia32_vfmsubpd128_mask3,
2889 __builtin_ia32_vfmsubps256_mask3, __builtin_ia32_vfmsubps128_mask3,
2890 __builtin_ia32_vfnmaddpd256_mask, __builtin_ia32_vfnmaddpd128_mask,
2891 __builtin_ia32_vfnmaddps256_mask, __builtin_ia32_vfnmaddps128_mask,
2892 __builtin_ia32_vfnmsubpd256_mask, __builtin_ia32_vfnmsubpd256_mask3,
2893 __builtin_ia32_vfnmsubpd128_mask, __builtin_ia32_vfnmsubpd128_mask3,
2894 __builtin_ia32_vfnmsubps256_mask, __builtin_ia32_vfnmsubps256_mask3,
2895 __builtin_ia32_vfnmsubps128_mask, __builtin_ia32_vfnmsubps128_mask3,
2896 __builtin_ia32_vfmaddsubpd256_mask, __builtin_ia32_vfmaddsubpd256_mask3,
2897 __builtin_ia32_vfmaddsubpd256_maskz, __builtin_ia32_vfmaddsubpd128_mask,
2898 __builtin_ia32_vfmaddsubpd128_mask3, __builtin_ia32_vfmaddsubpd128_maskz,
2899 __builtin_ia32_vfmaddsubps256_mask, __builtin_ia32_vfmaddsubps256_mask3,
2900 __builtin_ia32_vfmaddsubps256_maskz, __builtin_ia32_vfmaddsubps128_mask,
2901 __builtin_ia32_vfmaddsubps128_mask3, __builtin_ia32_vfmaddsubps128_maskz,
2902 __builtin_ia32_vfmsubaddpd256_mask3, __builtin_ia32_vfmsubaddpd128_mask3,
2903 __builtin_ia32_vfmsubaddps256_mask3, __builtin_ia32_vfmsubaddps128_mask3,
2904 __builtin_ia32_insertf64x2_256_mask, __builtin_ia32_inserti64x2_256_mask,
2905 __builtin_ia32_psrav16hi_mask, __builtin_ia32_psrav8hi_mask,
2906 __builtin_ia32_pmaddubsw256_mask, __builtin_ia32_pmaddubsw128_mask,
2907 __builtin_ia32_pmaddwd256_mask, __builtin_ia32_pmaddwd128_mask,
2908 __builtin_ia32_psrlv16hi_mask, __builtin_ia32_psrlv8hi_mask,
2909 __builtin_ia32_cvtps2dq256_mask, __builtin_ia32_cvtps2dq128_mask,
2910 __builtin_ia32_cvtps2udq256_mask, __builtin_ia32_cvtps2udq128_mask,
2911 __builtin_ia32_cvtps2qq256_mask, __builtin_ia32_cvtps2qq128_mask,
2912 __builtin_ia32_cvtps2uqq256_mask, __builtin_ia32_cvtps2uqq128_mask,
2913 __builtin_ia32_getmantps256_mask, __builtin_ia32_getmantps128_mask,
2914 __builtin_ia32_getmantpd256_mask, __builtin_ia32_getmantpd128_mask,
2915 __builtin_ia32_movddup256_mask, __builtin_ia32_movddup128_mask,
2916 __builtin_ia32_movshdup256_mask, __builtin_ia32_movshdup128_mask,
2917 __builtin_ia32_movsldup256_mask, __builtin_ia32_movsldup128_mask,
2918 __builtin_ia32_cvtqq2ps256_mask, __builtin_ia32_cvtqq2ps128_mask,
2919 __builtin_ia32_cvtuqq2ps256_mask, __builtin_ia32_cvtuqq2ps128_mask,
2920 __builtin_ia32_cvtqq2pd256_mask, __builtin_ia32_cvtqq2pd128_mask,
2921 __builtin_ia32_cvtuqq2pd256_mask, __builtin_ia32_cvtuqq2pd128_mask,
2922 __builtin_ia32_vpermt2varq256_mask, __builtin_ia32_vpermt2varq256_maskz,
2923 __builtin_ia32_vpermt2vard256_mask, __builtin_ia32_vpermt2vard256_maskz,
2924 __builtin_ia32_vpermi2varq256_mask, __builtin_ia32_vpermi2vard256_mask,
2925 __builtin_ia32_vpermt2varpd256_mask, __builtin_ia32_vpermt2varpd256_maskz,
2926 __builtin_ia32_vpermt2varps256_mask, __builtin_ia32_vpermt2varps256_maskz,
2927 __builtin_ia32_vpermi2varpd256_mask, __builtin_ia32_vpermi2varps256_mask,
2928 __builtin_ia32_vpermt2varq128_mask, __builtin_ia32_vpermt2varq128_maskz,
2929 __builtin_ia32_vpermt2vard128_mask, __builtin_ia32_vpermt2vard128_maskz,
2930 __builtin_ia32_vpermi2varq128_mask, __builtin_ia32_vpermi2vard128_mask,
2931 __builtin_ia32_vpermt2varpd128_mask, __builtin_ia32_vpermt2varpd128_maskz,
2932 __builtin_ia32_vpermt2varps128_mask, __builtin_ia32_vpermt2varps128_maskz,
2933 __builtin_ia32_vpermi2varpd128_mask, __builtin_ia32_vpermi2varps128_mask,
2934 __builtin_ia32_pshufb256_mask, __builtin_ia32_pshufb128_mask,
2935 __builtin_ia32_pshufhw256_mask, __builtin_ia32_pshufhw128_mask,
2936 __builtin_ia32_pshuflw256_mask, __builtin_ia32_pshuflw128_mask,
2937 __builtin_ia32_pshufd256_mask, __builtin_ia32_pshufd128_mask,
2938 __builtin_ia32_shufpd256_mask, __builtin_ia32_shufpd128_mask,
2939 __builtin_ia32_shufps256_mask, __builtin_ia32_shufps128_mask,
2940 __builtin_ia32_prolvq256_mask, __builtin_ia32_prolvq128_mask,
2941 __builtin_ia32_prolq256_mask, __builtin_ia32_prolq128_mask,
2942 __builtin_ia32_prorvq256_mask, __builtin_ia32_prorvq128_mask,
2943 __builtin_ia32_prorq256_mask, __builtin_ia32_prorq128_mask,
2944 __builtin_ia32_psravq128_mask, __builtin_ia32_psravq256_mask,
2945 __builtin_ia32_psllv4di_mask, __builtin_ia32_psllv2di_mask,
2946 __builtin_ia32_psllv8si_mask, __builtin_ia32_psllv4si_mask,
2947 __builtin_ia32_psrav8si_mask, __builtin_ia32_psrav4si_mask,
2948 __builtin_ia32_psrlv4di_mask, __builtin_ia32_psrlv2di_mask,
2949 __builtin_ia32_psrlv8si_mask, __builtin_ia32_psrlv4si_mask,
2950 __builtin_ia32_psrawi256_mask, __builtin_ia32_psraw256_mask,
2951 __builtin_ia32_psrawi128_mask, __builtin_ia32_psraw128_mask,
2952 __builtin_ia32_psrlwi256_mask, __builtin_ia32_psrlw256_mask,
2953 __builtin_ia32_psrlwi128_mask, __builtin_ia32_psrlw128_mask,
2954 __builtin_ia32_prorvd256_mask, __builtin_ia32_prolvd256_mask,
2955 __builtin_ia32_prord256_mask, __builtin_ia32_prold256_mask,
2956 __builtin_ia32_prorvd128_mask, __builtin_ia32_prolvd128_mask,
2957 __builtin_ia32_prord128_mask, __builtin_ia32_prold128_mask,
2958 __builtin_ia32_fpclasspd256_mask, __builtin_ia32_fpclasspd128_mask,
2959 __builtin_ia32_fpclasssd, __builtin_ia32_fpclassps256_mask,
2960 __builtin_ia32_fpclassps128_mask, __builtin_ia32_fpclassss,
2961 __builtin_ia32_cvtb2mask128, __builtin_ia32_cvtb2mask256,
2962 __builtin_ia32_cvtw2mask128, __builtin_ia32_cvtw2mask256,
2963 __builtin_ia32_cvtd2mask128, __builtin_ia32_cvtd2mask256,
2964 __builtin_ia32_cvtq2mask128, __builtin_ia32_cvtq2mask256,
2965 __builtin_ia32_cvtmask2b128, __builtin_ia32_cvtmask2b256,
2966 __builtin_ia32_cvtmask2w128, __builtin_ia32_cvtmask2w256,
2967 __builtin_ia32_cvtmask2d128, __builtin_ia32_cvtmask2d256,
2968 __builtin_ia32_cvtmask2q128, __builtin_ia32_cvtmask2q256,
2969 __builtin_ia32_pcmpeqb128_mask, __builtin_ia32_pcmpeqb256_mask,
2970 __builtin_ia32_pcmpeqw128_mask, __builtin_ia32_pcmpeqw256_mask,
2971 __builtin_ia32_pcmpeqd128_mask, __builtin_ia32_pcmpeqd256_mask,
2972 __builtin_ia32_pcmpeqq128_mask, __builtin_ia32_pcmpeqq256_mask,
2973 __builtin_ia32_pcmpgtb128_mask, __builtin_ia32_pcmpgtb256_mask,
2974 __builtin_ia32_pcmpgtw128_mask, __builtin_ia32_pcmpgtw256_mask,
2975 __builtin_ia32_pcmpgtd128_mask, __builtin_ia32_pcmpgtd256_mask,
2976 __builtin_ia32_pcmpgtq128_mask, __builtin_ia32_pcmpgtq256_mask,
2977 __builtin_ia32_ptestmb128, __builtin_ia32_ptestmb256,
2978 __builtin_ia32_ptestmw128, __builtin_ia32_ptestmw256,
2979 __builtin_ia32_ptestmd128, __builtin_ia32_ptestmd256,
2980 __builtin_ia32_ptestmq128, __builtin_ia32_ptestmq256,
2981 __builtin_ia32_ptestnmb128, __builtin_ia32_ptestnmb256,
2982 __builtin_ia32_ptestnmw128, __builtin_ia32_ptestnmw256,
2983 __builtin_ia32_ptestnmd128, __builtin_ia32_ptestnmd256,
2984 __builtin_ia32_ptestnmq128, __builtin_ia32_ptestnmq256,
2985 __builtin_ia32_broadcastmb128, __builtin_ia32_broadcastmb256,
2986 __builtin_ia32_broadcastmw128, __builtin_ia32_broadcastmw256,
2987 __builtin_ia32_compressdf256_mask, __builtin_ia32_compressdf128_mask,
2988 __builtin_ia32_compresssf256_mask, __builtin_ia32_compresssf128_mask,
2989 __builtin_ia32_compressdi256_mask, __builtin_ia32_compressdi128_mask,
2990 __builtin_ia32_compresssi256_mask, __builtin_ia32_compresssi128_mask,
2991 __builtin_ia32_expanddf256_mask, __builtin_ia32_expanddf128_mask,
2992 __builtin_ia32_expandsf256_mask, __builtin_ia32_expandsf128_mask,
2993 __builtin_ia32_expanddi256_mask, __builtin_ia32_expanddi128_mask,
2994 __builtin_ia32_expandsi256_mask, __builtin_ia32_expandsi128_mask,
2995 __builtin_ia32_expanddf256_maskz, __builtin_ia32_expanddf128_maskz,
2996 __builtin_ia32_expandsf256_maskz, __builtin_ia32_expandsf128_maskz,
2997 __builtin_ia32_expanddi256_maskz, __builtin_ia32_expanddi128_maskz,
2998 __builtin_ia32_expandsi256_maskz, __builtin_ia32_expandsi128_maskz,
2999 __builtin_ia32_pmaxsd256_mask, __builtin_ia32_pminsd256_mask,
3000 __builtin_ia32_pmaxud256_mask, __builtin_ia32_pminud256_mask,
3001 __builtin_ia32_pmaxsd128_mask, __builtin_ia32_pminsd128_mask,
3002 __builtin_ia32_pmaxud128_mask, __builtin_ia32_pminud128_mask,
3003 __builtin_ia32_pmaxsq256_mask, __builtin_ia32_pminsq256_mask,
3004 __builtin_ia32_pmaxuq256_mask, __builtin_ia32_pminuq256_mask,
3005 __builtin_ia32_pmaxsq128_mask, __builtin_ia32_pminsq128_mask,
3006 __builtin_ia32_pmaxuq128_mask, __builtin_ia32_pminuq128_mask,
3007 __builtin_ia32_pminsb256_mask, __builtin_ia32_pminub256_mask,
3008 __builtin_ia32_pmaxsb256_mask, __builtin_ia32_pmaxub256_mask,
3009 __builtin_ia32_pminsb128_mask, __builtin_ia32_pminub128_mask,
3010 __builtin_ia32_pmaxsb128_mask, __builtin_ia32_pmaxub128_mask,
3011 __builtin_ia32_pminsw256_mask, __builtin_ia32_pminuw256_mask,
3012 __builtin_ia32_pmaxsw256_mask, __builtin_ia32_pmaxuw256_mask,
3013 __builtin_ia32_pminsw128_mask, __builtin_ia32_pminuw128_mask,
3014 __builtin_ia32_pmaxsw128_mask, __builtin_ia32_pmaxuw128_mask,
3015 __builtin_ia32_vpconflictdi_256_mask, __builtin_ia32_vpconflictsi_256_mask,
3016 __builtin_ia32_vplzcntq_256_mask, __builtin_ia32_vplzcntd_256_mask,
3017 __builtin_ia32_unpckhpd256_mask, __builtin_ia32_unpckhpd128_mask,
3018 __builtin_ia32_unpckhps256_mask, __builtin_ia32_unpckhps128_mask,
3019 __builtin_ia32_unpcklpd256_mask, __builtin_ia32_unpcklpd128_mask,
3020 __builtin_ia32_unpcklps256_mask, __builtin_ia32_vpconflictdi_128_mask,
3021 __builtin_ia32_vpconflictsi_128_mask, __builtin_ia32_vplzcntq_128_mask,
3022 __builtin_ia32_vplzcntd_128_mask, __builtin_ia32_unpcklps128_mask,
3023 __builtin_ia32_alignd256_mask, __builtin_ia32_alignq256_mask,
3024 __builtin_ia32_alignd128_mask, __builtin_ia32_alignq128_mask,
3025 __builtin_ia32_vcvtps2ph256_mask, __builtin_ia32_vcvtps2ph_mask,
3026 __builtin_ia32_vcvtph2ps_mask, __builtin_ia32_vcvtph2ps256_mask,
3027 __builtin_ia32_punpckhdq128_mask, __builtin_ia32_punpckhdq256_mask,
3028 __builtin_ia32_punpckhqdq128_mask, __builtin_ia32_punpckhqdq256_mask,
3029 __builtin_ia32_punpckldq128_mask, __builtin_ia32_punpckldq256_mask,
3030 __builtin_ia32_punpcklqdq128_mask, __builtin_ia32_punpcklqdq256_mask,
3031 __builtin_ia32_punpckhbw128_mask, __builtin_ia32_punpckhbw256_mask,
3032 __builtin_ia32_punpckhwd128_mask, __builtin_ia32_punpckhwd256_mask,
3033 __builtin_ia32_punpcklbw128_mask, __builtin_ia32_punpcklbw256_mask,
3034 __builtin_ia32_punpcklwd128_mask, __builtin_ia32_punpcklwd256_mask,
3035 __builtin_ia32_psllv16hi_mask, __builtin_ia32_psllv8hi_mask,
3036 __builtin_ia32_packssdw256_mask, __builtin_ia32_packssdw128_mask,
3037 __builtin_ia32_packusdw256_mask, __builtin_ia32_packusdw128_mask,
3038 __builtin_ia32_pavgb256_mask, __builtin_ia32_pavgw256_mask,
3039 __builtin_ia32_pavgb128_mask, __builtin_ia32_pavgw128_mask,
3040 __builtin_ia32_permvarsf256_mask, __builtin_ia32_permvardf256_mask,
3041 __builtin_ia32_permdf256_mask, __builtin_ia32_pabsb256_mask,
3042 __builtin_ia32_pabsb128_mask, __builtin_ia32_pabsw256_mask,
3043 __builtin_ia32_pabsw128_mask, __builtin_ia32_vpermilvarpd_mask,
3044 __builtin_ia32_vpermilvarps_mask, __builtin_ia32_vpermilvarpd256_mask,
3045 __builtin_ia32_vpermilvarps256_mask, __builtin_ia32_vpermilpd_mask,
3046 __builtin_ia32_vpermilps_mask, __builtin_ia32_vpermilpd256_mask,
3047 __builtin_ia32_vpermilps256_mask, __builtin_ia32_blendmq_256_mask,
3048 __builtin_ia32_blendmd_256_mask, __builtin_ia32_blendmpd_256_mask,
3049 __builtin_ia32_blendmps_256_mask, __builtin_ia32_blendmq_128_mask,
3050 __builtin_ia32_blendmd_128_mask, __builtin_ia32_blendmpd_128_mask,
3051 __builtin_ia32_blendmps_128_mask, __builtin_ia32_blendmw_256_mask,
3052 __builtin_ia32_blendmb_256_mask, __builtin_ia32_blendmw_128_mask,
3053 __builtin_ia32_blendmb_128_mask, __builtin_ia32_pmulld256_mask,
3054 __builtin_ia32_pmulld128_mask, __builtin_ia32_pmuludq256_mask,
3055 __builtin_ia32_pmuldq256_mask, __builtin_ia32_pmuldq128_mask,
3056 __builtin_ia32_pmuludq128_mask, __builtin_ia32_cvtpd2ps256_mask,
3057 __builtin_ia32_cvtpd2ps_mask, __builtin_ia32_permvarsi256_mask,
3058 __builtin_ia32_permvardi256_mask, __builtin_ia32_permdi256_mask,
3059 __builtin_ia32_cmpq256_mask, __builtin_ia32_cmpd256_mask,
3060 __builtin_ia32_ucmpq256_mask, __builtin_ia32_ucmpd256_mask,
3061 __builtin_ia32_cmpb256_mask, __builtin_ia32_cmpw256_mask,
3062 __builtin_ia32_ucmpb256_mask, __builtin_ia32_ucmpw256_mask,
3063 __builtin_ia32_cmppd256_mask, __builtin_ia32_cmpps256_mask,
3064 __builtin_ia32_cmpq128_mask, __builtin_ia32_cmpd128_mask,
3065 __builtin_ia32_ucmpq128_mask, __builtin_ia32_ucmpd128_mask,
3066 __builtin_ia32_cmpb128_mask, __builtin_ia32_cmpw128_mask,
3067 __builtin_ia32_ucmpb128_mask, __builtin_ia32_ucmpw128_mask,
3068 __builtin_ia32_cmppd128_mask, __builtin_ia32_cmpps128_mask,
3069 __builtin_ia32_broadcastf32x2_512_mask, __builtin_ia32_broadcasti32x2_512_mask,
3070 __builtin_ia32_broadcastf64x2_512_mask, __builtin_ia32_broadcasti64x2_512_mask,
3071 __builtin_ia32_broadcastf32x8_512_mask, __builtin_ia32_broadcasti32x8_512_mask,
3072 __builtin_ia32_extractf64x2_512_mask, __builtin_ia32_extractf32x8_mask,
3073 __builtin_ia32_extracti64x2_512_mask, __builtin_ia32_extracti32x8_mask,
3074 __builtin_ia32_reducepd512_mask, __builtin_ia32_reduceps512_mask,
3075 __builtin_ia32_pmullq512_mask, __builtin_ia32_xorpd512_mask,
3076 __builtin_ia32_xorps512_mask, __builtin_ia32_orpd512_mask,
3077 __builtin_ia32_orps512_mask, __builtin_ia32_andpd512_mask,
3078 __builtin_ia32_andps512_mask, __builtin_ia32_andnpd512_mask,
3079 __builtin_ia32_andnps512_mask, __builtin_ia32_insertf32x8_mask,
3080 __builtin_ia32_inserti32x8_mask, __builtin_ia32_insertf64x2_512_mask,
3081 __builtin_ia32_inserti64x2_512_mask, __builtin_ia32_fpclasspd512_mask,
3082 __builtin_ia32_fpclassps512_mask, __builtin_ia32_cvtd2mask512,
3083 __builtin_ia32_cvtq2mask512, __builtin_ia32_cvtmask2d512,
3084 __builtin_ia32_cvtmask2q512, __builtin_ia32_kunpcksi,
3085 __builtin_ia32_kunpckdi, __builtin_ia32_packusdw512_mask,
3086 __builtin_ia32_pslldq512, __builtin_ia32_psrldq512,
3087 __builtin_ia32_packssdw512_mask, __builtin_ia32_palignr512,
3088 __builtin_ia32_palignr512_mask, __builtin_ia32_movdquhi512_mask,
3089 __builtin_ia32_movdquqi512_mask, __builtin_ia32_psadbw512,
3090 __builtin_ia32_dbpsadbw512_mask, __builtin_ia32_pbroadcastb512_mask,
3091 __builtin_ia32_pbroadcastb512_gpr_mask, __builtin_ia32_pbroadcastw512_mask,
3092 __builtin_ia32_pbroadcastw512_gpr_mask, __builtin_ia32_pmovsxbw512_mask,
3093 __builtin_ia32_pmovzxbw512_mask, __builtin_ia32_permvarhi512_mask,
3094 __builtin_ia32_vpermt2varhi512_mask, __builtin_ia32_vpermt2varhi512_maskz,
3095 __builtin_ia32_vpermi2varhi512_mask, __builtin_ia32_pavgb512_mask,
3096 __builtin_ia32_pavgw512_mask, __builtin_ia32_paddb512_mask,
3097 __builtin_ia32_psubb512_mask, __builtin_ia32_psubsb512_mask,
3098 __builtin_ia32_paddsb512_mask, __builtin_ia32_psubusb512_mask,
3099 __builtin_ia32_paddusb512_mask, __builtin_ia32_psubw512_mask,
3100 __builtin_ia32_paddw512_mask, __builtin_ia32_psubsw512_mask,
3101 __builtin_ia32_paddsw512_mask, __builtin_ia32_psubusw512_mask,
3102 __builtin_ia32_paddusw512_mask, __builtin_ia32_pmaxuw512_mask,
3103 __builtin_ia32_pmaxsw512_mask, __builtin_ia32_pminuw512_mask,
3104 __builtin_ia32_pminsw512_mask, __builtin_ia32_pmaxub512_mask,
3105 __builtin_ia32_pmaxsb512_mask, __builtin_ia32_pminub512_mask,
3106 __builtin_ia32_pminsb512_mask, __builtin_ia32_pmovwb512_mask,
3107 __builtin_ia32_pmovswb512_mask, __builtin_ia32_pmovuswb512_mask,
3108 __builtin_ia32_pmulhrsw512_mask, __builtin_ia32_pmulhuw512_mask,
3109 __builtin_ia32_pmulhw512_mask, __builtin_ia32_pmullw512_mask,
3110 __builtin_ia32_psllwi512_mask, __builtin_ia32_psllw512_mask,
3111 __builtin_ia32_packsswb512_mask, __builtin_ia32_packuswb512_mask,
3112 __builtin_ia32_psrav32hi_mask, __builtin_ia32_pmaddubsw512_mask,
3113 __builtin_ia32_pmaddwd512_mask, __builtin_ia32_psrlv32hi_mask,
3114 __builtin_ia32_punpckhbw512_mask, __builtin_ia32_punpckhwd512_mask,
3115 __builtin_ia32_punpcklbw512_mask, __builtin_ia32_punpcklwd512_mask,
3116 __builtin_ia32_pshufb512_mask, __builtin_ia32_pshufhw512_mask,
3117 __builtin_ia32_pshuflw512_mask, __builtin_ia32_psrawi512_mask,
3118 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
3119 __builtin_ia32_psrlw512_mask, __builtin_ia32_cvtb2mask512,
3120 __builtin_ia32_cvtw2mask512, __builtin_ia32_cvtmask2b512,
3121 __builtin_ia32_cvtmask2w512, __builtin_ia32_pcmpeqb512_mask,
3122 __builtin_ia32_pcmpeqw512_mask, __builtin_ia32_pcmpgtb512_mask,
3123 __builtin_ia32_pcmpgtw512_mask, __builtin_ia32_ptestmb512,
3124 __builtin_ia32_ptestmw512, __builtin_ia32_ptestnmb512,
3125 __builtin_ia32_ptestnmw512, __builtin_ia32_psllv32hi_mask,
3126 __builtin_ia32_pabsb512_mask, __builtin_ia32_pabsw512_mask,
3127 __builtin_ia32_blendmw_512_mask, __builtin_ia32_blendmb_512_mask,
3128 __builtin_ia32_cmpb512_mask, __builtin_ia32_cmpw512_mask,
3129 __builtin_ia32_ucmpb512_mask, __builtin_ia32_ucmpw512_mask,
3130 __builtin_ia32_rangesd128_round, __builtin_ia32_rangess128_round,
3131 __builtin_ia32_cvtpd2qq512_mask, __builtin_ia32_cvtps2qq512_mask,
3132 __builtin_ia32_cvtpd2uqq512_mask, __builtin_ia32_cvtps2uqq512_mask,
3133 __builtin_ia32_cvtqq2ps512_mask, __builtin_ia32_cvtuqq2ps512_mask,
3134 __builtin_ia32_cvtqq2pd512_mask, __builtin_ia32_cvtuqq2pd512_mask,
3135 __builtin_ia32_cvttps2qq512_mask, __builtin_ia32_cvttps2uqq512_mask,
3136 __builtin_ia32_cvttpd2qq512_mask, __builtin_ia32_cvttpd2uqq512_mask,
3137 __builtin_ia32_rangeps512_mask, __builtin_ia32_rangepd512_mask.
3138 (ix86_expand_args_builtin): Handle HI_FTYPE_V16QI, SI_FTYPE_V32QI,
3139 DI_FTYPE_V64QI, V16QI_FTYPE_HI, V32QI_FTYPE_SI, V64QI_FTYPE_DI,
3140 V8HI_FTYPE_QI, V16HI_FTYPE_HI, V32HI_FTYPE_SI, V4SI_FTYPE_QI,
3141 V8SI_FTYPE_QI, V4SI_FTYPE_HI, V8SI_FTYPE_HI, QI_FTYPE_V8HI,
3142 HI_FTYPE_V16HI, SI_FTYPE_V32HI, QI_FTYPE_V4SI, QI_FTYPE_V8SI,
3143 HI_FTYPE_V16SI, QI_FTYPE_V2DI, QI_FTYPE_V4DI, QI_FTYPE_V8DI,
3144 V2DI_FTYPE_QI, V4DI_FTYPE_QI, V8DI_FTYPE_V64QI_V64QI,
3145 SI_FTYPE_SI_SI,DI_FTYPE_DI_DI, V8DI_FTYPE_V8DI_INT_CONVERT,
3146 QI_FTYPE_V4SF_INT, QI_FTYPE_V2DF_INT,
3147 V8SF_FTYPE_V4SF_V8SF_QI, V4DF_FTYPE_V2DF_V4DF_QI,
3148 V8SI_FTYPE_V4SI_V8SI_QI, V8SI_FTYPE_SI_V8SI_QI,
3149 V4SI_FTYPE_V4SI_V4SI_QI, V4SI_FTYPE_SI_V4SI_QI,
3150 V4DI_FTYPE_V2DI_V4DI_QI, V4DI_FTYPE_DI_V4DI_QI,
3151 V2DI_FTYPE_V2DI_V2DI_QI, V2DI_FTYPE_DI_V2DI_QI,
3152 V64QI_FTYPE_V64QI_V64QI_DI, V64QI_FTYPE_V16QI_V64QI_DI,
3153 V64QI_FTYPE_QI_V64QI_DI, V32QI_FTYPE_V32QI_V32QI_SI,
3154 V32QI_FTYPE_V16QI_V32QI_SI, V32QI_FTYPE_QI_V32QI_SI,
3155 V16QI_FTYPE_V16QI_V16QI_HI, V16QI_FTYPE_QI_V16QI_HI,
3156 V32HI_FTYPE_V8HI_V32HI_SI, V32HI_FTYPE_HI_V32HI_SI,
3157 V16HI_FTYPE_V8HI_V16HI_HI, V16HI_FTYPE_HI_V16HI_HI,
3158 V8HI_FTYPE_V8HI_V8HI_QI, V8HI_FTYPE_HI_V8HI_QI,
3159 V8SF_FTYPE_V8HI_V8SF_QI, V4SF_FTYPE_V8HI_V4SF_QI,
3160 V8SI_FTYPE_V8SF_V8SI_QI, V4SI_FTYPE_V4SF_V4SI_QI,
3161 V8DI_FTYPE_V8SF_V8DI_QI, V4DI_FTYPE_V4SF_V4DI_QI,
3162 V2DI_FTYPE_V4SF_V2DI_QI, V8SF_FTYPE_V8DI_V8SF_QI,
3163 V4SF_FTYPE_V4DI_V4SF_QI, V4SF_FTYPE_V2DI_V4SF_QI,
3164 V8DF_FTYPE_V8DI_V8DF_QI, V4DF_FTYPE_V4DI_V4DF_QI,
3165 V2DF_FTYPE_V2DI_V2DF_QI, V16QI_FTYPE_V8HI_V16QI_QI,
3166 V16QI_FTYPE_V16HI_V16QI_HI, V16QI_FTYPE_V4SI_V16QI_QI,
3167 V16QI_FTYPE_V8SI_V16QI_QI, V8HI_FTYPE_V4SI_V8HI_QI,
3168 V8HI_FTYPE_V8SI_V8HI_QI, V16QI_FTYPE_V2DI_V16QI_QI,
3169 V16QI_FTYPE_V4DI_V16QI_QI, V8HI_FTYPE_V2DI_V8HI_QI,
3170 V8HI_FTYPE_V4DI_V8HI_QI, V4SI_FTYPE_V2DI_V4SI_QI,
3171 V4SI_FTYPE_V4DI_V4SI_QI, V32QI_FTYPE_V32HI_V32QI_SI,
3172 HI_FTYPE_V16QI_V16QI_HI, SI_FTYPE_V32QI_V32QI_SI,
3173 DI_FTYPE_V64QI_V64QI_DI, QI_FTYPE_V8HI_V8HI_QI,
3174 HI_FTYPE_V16HI_V16HI_HI, SI_FTYPE_V32HI_V32HI_SI,
3175 QI_FTYPE_V4SI_V4SI_QI, QI_FTYPE_V8SI_V8SI_QI,
3176 QI_FTYPE_V2DI_V2DI_QI, QI_FTYPE_V4DI_V4DI_QI,
3177 V4SF_FTYPE_V2DF_V4SF_QI, V4SF_FTYPE_V4DF_V4SF_QI,
3178 V2DI_FTYPE_V4SI_V2DI_QI, V2DI_FTYPE_V8HI_V2DI_QI,
3179 V2DI_FTYPE_V16QI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_QI,
3180 V4DI_FTYPE_V4SI_V4DI_QI, V4DI_FTYPE_V8HI_V4DI_QI,
3181 V4DI_FTYPE_V16QI_V4DI_QI, V8DI_FTYPE_V8DF_V8DI_QI,
3182 V4DI_FTYPE_V4DF_V4DI_QI, V2DI_FTYPE_V2DF_V2DI_QI,
3183 V4SI_FTYPE_V4DF_V4SI_QI, V4SI_FTYPE_V2DF_V4SI_QI,
3184 V4SI_FTYPE_V8HI_V4SI_QI, V4SI_FTYPE_V16QI_V4SI_QI,
3185 V8SI_FTYPE_V8SI_V8SI_V8SI, V8SF_FTYPE_V8SF_V8SF_QI,
3186 V8SF_FTYPE_V8SI_V8SF_QI, V4DF_FTYPE_V4DF_V4DF_QI,
3187 V4SF_FTYPE_V4SF_V4SF_QI, V2DF_FTYPE_V2DF_V2DF_QI,
3188 V2DF_FTYPE_V4SF_V2DF_QI, V2DF_FTYPE_V4SI_V2DF_QI,
3189 V4SF_FTYPE_V4SI_V4SF_QI, V4DF_FTYPE_V4SF_V4DF_QI,
3190 V4DF_FTYPE_V4SI_V4DF_QI, V8SI_FTYPE_V8SI_V8SI_QI,
3191 V8SI_FTYPE_V8HI_V8SI_QI, V8SI_FTYPE_V16QI_V8SI_QI,
3192 V16SF_FTYPE_V8SF_V16SF_HI, V16SI_FTYPE_V8SI_V16SI_HI,
3193 V16HI_FTYPE_V16HI_V16HI_HI, V8HI_FTYPE_V16QI_V8HI_QI,
3194 V16HI_FTYPE_V16QI_V16HI_HI, V32HI_FTYPE_V32HI_V32HI_SI,
3195 V32HI_FTYPE_V32QI_V32HI_SI, V8DI_FTYPE_V8DI_V8DI_INT_CONVERT,
3196 V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI_CONVERT, QI_FTYPE_V8DF_INT_QI,
3197 QI_FTYPE_V4DF_INT_QI, QI_FTYPE_V2DF_INT_QI,
3198 HI_FTYPE_V16SF_INT_HI, QI_FTYPE_V8SF_INT_QI,
3199 QI_FTYPE_V4SF_INT_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI_CONVERT,
3200 V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI_CONVERT, V32QI_FTYPE_V32QI_V32QI_V32QI_SI,
3201 V32HI_FTYPE_V32HI_V32HI_V32HI_SI, V32HI_FTYPE_V64QI_V64QI_V32HI_SI,
3202 V16SI_FTYPE_V32HI_V32HI_V16SI_HI, V64QI_FTYPE_V64QI_V64QI_V64QI_DI,
3203 V32HI_FTYPE_V32HI_V8HI_V32HI_SI, V16HI_FTYPE_V16HI_V8HI_V16HI_HI,
3204 V8SI_FTYPE_V8SI_V4SI_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_V4DI_QI,
3205 V64QI_FTYPE_V32HI_V32HI_V64QI_DI, V32QI_FTYPE_V16HI_V16HI_V32QI_SI,
3206 V16QI_FTYPE_V8HI_V8HI_V16QI_HI, V32HI_FTYPE_V16SI_V16SI_V32HI_SI,
3207 V16HI_FTYPE_V8SI_V8SI_V16HI_HI, V8HI_FTYPE_V4SI_V4SI_V8HI_QI,
3208 V4DF_FTYPE_V4DF_V4DI_V4DF_QI, V8SF_FTYPE_V8SF_V8SI_V8SF_QI,
3209 V4SF_FTYPE_V4SF_V4SI_V4SF_QI, V2DF_FTYPE_V2DF_V2DI_V2DF_QI,
3210 V2DI_FTYPE_V4SI_V4SI_V2DI_QI, V4DI_FTYPE_V8SI_V8SI_V4DI_QI,
3211 V4DF_FTYPE_V4DI_V4DF_V4DF_QI, V8SF_FTYPE_V8SI_V8SF_V8SF_QI,
3212 V2DF_FTYPE_V2DI_V2DF_V2DF_QI, V4SF_FTYPE_V4SI_V4SF_V4SF_QI,
3213 V8HI_FTYPE_V8HI_V8HI_V8HI_QI, V8SI_FTYPE_V8SI_V8SI_V8SI_QI,
3214 V4SI_FTYPE_V4SI_V4SI_V4SI_QI, V8SF_FTYPE_V8SF_V8SF_V8SF_QI,
3215 V16QI_FTYPE_V16QI_V16QI_V16QI_HI, V16HI_FTYPE_V16HI_V16HI_V16HI_HI,
3216 V2DI_FTYPE_V2DI_V2DI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_V4DI_QI,
3217 V4DF_FTYPE_V4DF_V4DF_V4DF_QI, V8HI_FTYPE_V16QI_V16QI_V8HI_QI,
3218 V16HI_FTYPE_V32QI_V32QI_V16HI_HI, V8SI_FTYPE_V16HI_V16HI_V8SI_QI,
3219 V4SI_FTYPE_V8HI_V8HI_V4SI_QI, QI_FTYPE_V4DI_V4DI_INT_QI,
3220 QI_FTYPE_V8SI_V8SI_INT_QI, QI_FTYPE_V4DF_V4DF_INT_QI,
3221 QI_FTYPE_V8SF_V8SF_INT_QI, QI_FTYPE_V2DI_V2DI_INT_QI,
3222 QI_FTYPE_V4SI_V4SI_INT_QI, DI_FTYPE_V64QI_V64QI_INT_DI,
3223 SI_FTYPE_V32QI_V32QI_INT_SI, HI_FTYPE_V16QI_V16QI_INT_HI,
3224 SI_FTYPE_V32HI_V32HI_INT_SI, HI_FTYPE_V16HI_V16HI_INT_HI,
3225 QI_FTYPE_V8HI_V8HI_INT_QI, V8SF_FTYPE_V8SF_INT_V8SF_QI,
3226 V4SF_FTYPE_V4SF_INT_V4SF_QI, V2DF_FTYPE_V4DF_INT_V2DF_QI,
3227 V2DI_FTYPE_V4DI_INT_V2DI_QI, V8SF_FTYPE_V16SF_INT_V8SF_QI,
3228 V8SI_FTYPE_V16SI_INT_V8SI_QI, V2DF_FTYPE_V8DF_INT_V2DF_QI,
3229 V2DI_FTYPE_V8DI_INT_V2DI_QI, V4SF_FTYPE_V8SF_INT_V4SF_QI,
3230 V4SI_FTYPE_V8SI_INT_V4SI_QI, V8HI_FTYPE_V8SF_INT_V8HI_QI,
3231 V8HI_FTYPE_V4SF_INT_V8HI_QI, V32HI_FTYPE_V32HI_INT_V32HI_SI,
3232 V16HI_FTYPE_V16HI_INT_V16HI_HI, V8HI_FTYPE_V8HI_INT_V8HI_QI,
3233 V4DI_FTYPE_V4DI_INT_V4DI_QI, V2DI_FTYPE_V2DI_INT_V2DI_QI,
3234 V8SI_FTYPE_V8SI_INT_V8SI_QI, V4SI_FTYPE_V4SI_INT_V4SI_QI,
3235 V4DF_FTYPE_V4DF_INT_V4DF_QI, V2DF_FTYPE_V2DF_INT_V2DF_QI,
3236 V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI,
3237 V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI, V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI,
3238 V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI,
3239 V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI, V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI,
3240 V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI, V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI,
3241 V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI, V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI,
3242 V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI, V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI,
3243 V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI,
3244 V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI,
3245 V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI, V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI,
3246 V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI, V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI,
3247 V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI, V8DI_FTYPE_V8DF_V8DI_QI_INT,
3248 V8SF_FTYPE_V8DI_V8SF_QI_INT, V8DF_FTYPE_V8DI_V8DF_QI_INT,
3249 V8DI_FTYPE_V8SF_V8DI_QI_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT,
3250 V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT, VOID_FTYPE_PV4DI_V4DI_QI,
3251 VOID_FTYPE_PV2DI_V2DI_QI, VOID_FTYPE_PV8SI_V8SI_QI,
3252 VOID_FTYPE_PV4SI_V4SI_QI, VOID_FTYPE_PV4SI_V4DI_QI,
3253 VOID_FTYPE_PV4SI_V2DI_QI, VOID_FTYPE_PV8HI_V4DI_QI,
3254 VOID_FTYPE_PV8HI_V2DI_QI, VOID_FTYPE_PV8HI_V8SI_QI,
3255 VOID_FTYPE_PV8HI_V4SI_QI, VOID_FTYPE_PV16QI_V4DI_QI,
3256 VOID_FTYPE_PV16QI_V2DI_QI, VOID_FTYPE_PV16QI_V8SI_QI,
3257 VOID_FTYPE_PV16QI_V4SI_QI, VOID_FTYPE_PV8HI_V8HI_QI,
3258 VOID_FTYPE_PV16HI_V16HI_HI, VOID_FTYPE_PV32HI_V32HI_SI,
3259 VOID_FTYPE_PV16QI_V16QI_HI, VOID_FTYPE_PV32QI_V32QI_SI,
3260 VOID_FTYPE_PV64QI_V64QI_DI, VOID_FTYPE_PV4DF_V4DF_QI,
3261 VOID_FTYPE_PV2DF_V2DF_QI, VOID_FTYPE_PV8SF_V8SF_QI,
3262 VOID_FTYPE_PV4SF_V4SF_QI, V4SF_FTYPE_PCV4SF_V4SF_QI,
3263 V8SF_FTYPE_PCV8SF_V8SF_QI, V4SI_FTYPE_PCV4SI_V4SI_QI,
3264 V8SI_FTYPE_PCV8SI_V8SI_QI, V2DF_FTYPE_PCV2DF_V2DF_QI,
3265 V4DF_FTYPE_PCV4DF_V4DF_QI, V2DI_FTYPE_PCV2DI_V2DI_QI,
3266 V4DI_FTYPE_PCV4DI_V4DI_QI, V8HI_FTYPE_PCV8HI_V8HI_QI,
3267 V16HI_FTYPE_PCV16HI_V16HI_HI, V32HI_FTYPE_PCV32HI_V32HI_SI,
3268 V16QI_FTYPE_PCV16QI_V16QI_HI, V32QI_FTYPE_PCV32QI_V32QI_SI,
3269 V64QI_FTYPE_PCV64QI_V64QI_DI, do not handle V8USI_FTYPE_V8USI.
3270
3271 2014-10-28 Jakub Jelinek <jakub@redhat.com>
3272
3273 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t
3274 type for the left shift in CASE_CONVERT case.
3275
3276 2014-10-28 Max Ostapenko <m.ostapenko@partner.samsung.com>
3277
3278 * asan.h (asan_intercepted_p): New function.
3279 * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
3280 hash value construction. Call iterative_hash_expr instead of explicit
3281 hash building.
3282 (asan_mem_ref_hasher::equal): Change condition.
3283 (has_mem_ref_been_instrumented): Likewise.
3284 (update_mem_ref_hash_table): Likewise.
3285 (maybe_update_mem_ref_hash_table): New function.
3286 (instrument_strlen_call): Removed.
3287 (get_mem_refs_of_builtin_call): Handle new parameter.
3288 (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
3289 of instrument_mem_region_access if intercepted_p is true.
3290 (instrument_mem_region_access): Instrument only base with len instead of
3291 base and end with 1.
3292 (build_check_stmt): Remove start_instrumented and end_instrumented
3293 parameters.
3294 (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
3295 ASAN_CHECK_END_INSTRUMENTED. Change ASAN_CHECK_LAST.
3296 (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
3297 * builtins.c (expand_builtin): Include asan.h. Don't expand string/memory
3298 builtin functions that have interceptors if ASan is enabled.
3299
3300 2014-10-28 Richard Biener <rguenther@suse.de>
3301
3302 PR middle-end/63665
3303 * fold-const.c (fold_comparison): Properly guard simplifying
3304 against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
3305
3306 2014-10-28 Alan Lawrence <alan.lawrence@arm.com>
3307
3308 * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
3309 * fold-const.c (const_binop): Likewise.
3310 * cfgexpand.c (expand_debug_expr): Likewise.
3311 * tree-inline.c (estimate_operator_cost): Likewise.
3312 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
3313 * optabs.c (optab_for_tree_code): Likewise.
3314 (expand_vec_shift_expr): Likewise, update comment.
3315 * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
3316 * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
3317 * optabs.def: Remove vec_shl_optab.
3318 * doc/md.texi: Remove references to vec_shr_m.
3319
3320 2014-10-28 Yury Gribov <y.gribov@samsung.com>
3321
3322 * asan.c (report_error_func): Add noabort path.
3323 (check_func): Ditto. Formatting.
3324 (asan_expand_check_ifn): Handle noabort path.
3325 * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
3326 to default value.
3327 * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
3328 * opts.c (finish_options): Reword comment.
3329 * sanitizer.def: Add noabort ASan builtins.
3330
3331 2014-10-28 Yury Gribov <y.gribov@samsung.com>
3332
3333 * asan.c (set_asan_shadow_offset): New function.
3334 (asan_shadow_offset): Likewise.
3335 (asan_emit_stack_protection): Call asan_shadow_offset.
3336 (build_shadow_mem_access): Likewise.
3337 * asan.h (set_asan_shadow_offset): Declare.
3338 * common.opt (fasan-shadow-offset): New option.
3339 (frandom-seed): Fixed parameter name.
3340 * doc/invoke.texi (fasan-shadow-offset): Describe new option.
3341 (frandom-seed): Fixed parameter name.
3342 * opts-global.c (handle_common_deferred_options): Handle
3343 -fasan-shadow-offset.
3344 * opts.c (common_handle_option): Likewise.
3345
3346 2014-10-27 Jiong Wang <jiong.wang@arm.com>
3347
3348 PR target/63442
3349 * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
3350
3351 2014-10-27 DJ Delorie <dj@redhat.com>
3352
3353 * tree.c (build_common_tree_nodes): Don't even store the
3354 __int128 types if they're not supported.
3355
3356 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
3357
3358 * config/i386/i386.c (ix86_loop_memcount): Delete.
3359 (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
3360
3361 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
3362
3363 * config/i386/i386.c (find_constant_1): Delete.
3364 (find_constant): Use FOR_EACH_SUBRTX.
3365
3366 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
3367
3368 * config/i386/i386.c (extended_reg_mentioned_1): Delete.
3369 (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
3370
3371 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
3372
3373 * config/i386/i386.c: Include rtl-iter.h
3374 (ix86_check_avx256_register): Take a const_rtx and return a bool.
3375 (ix86_check_avx256_stores): Update call accordingly.
3376 (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
3377 (ix86_avx_u128_mode_needed): Likewise. Use FOR_EACH_SUBRTX.
3378
3379 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
3380
3381 * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
3382 Take an rtx and return a bool.
3383 * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
3384 Use FOR_EACH_SUBRTX_VAR.
3385 * config/alpha/predicates.md (some_small_symbolic_operand): Update
3386 accordingly.
3387
3388 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
3389
3390 * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
3391 a bool.
3392 * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
3393 (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX. Return a bool.
3394
3395 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
3396
3397 * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
3398 (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
3399
3400 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
3401
3402 * config/alpha/alpha.c: Include rtl-iter.h.
3403 (split_small_symbolic_operand_1): Delete.
3404 (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
3405
3406 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
3407
3408 * config/s390/s390.c: Include rtl-iter.h.
3409 (check_dpu): Delete.
3410 (s390_loop_unroll_adjust): Only iterate over patterns.
3411 Use FOR_EACH_SUBRTX.
3412
3413 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
3414
3415 * config/spu/spu.c: Include rtl-iter.h
3416 (ea_symbol_ref): Replace with...
3417 (ea_symbol_ref_p): ...this new function.
3418 (spu_legitimate_address_p): Update call accordingly.
3419 (spu_legitimate_constant_p): Likewise. Use FOR_EACH_SUBRTX.
3420
3421 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
3422 Tom Tromey <tromey@redhat.com>
3423
3424 * aclocal.m4, configure: Rebuild.
3425 * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
3426 * configure.ac: Use GCC_ENABLE_PLUGINS.
3427 * stor-layout.c (finish_bitfield_layout): Now public. Change
3428 argument type to 'tree'.
3429 (finish_record_layout): Update.
3430 * stor-layout.h (finish_bitfield_layout): Declare.
3431
3432 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
3433
3434 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
3435 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
3436 Restore, enable for bigendian, update to use __builtin..._scal...
3437
3438 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
3439
3440 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
3441 reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
3442 (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
3443 reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
3444
3445 * config/aarch64/aarch64-simd.md
3446 (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
3447 (reduc_<maxmin_uns>_internal<mode>): ...this.
3448 (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
3449 (reduc_<maxmin_uns>_scal_<mode>): New (*2).
3450
3451 (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
3452 (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
3453 (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
3454
3455 * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
3456 vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
3457 vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
3458 vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
3459 vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
3460 vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
3461 vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
3462 __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
3463
3464 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
3465
3466 * config/aarch64/aarch64-simd-builtins.def
3467 (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
3468 Remove.
3469 (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
3470
3471 * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
3472 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
3473
3474 (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
3475 (aarch64_reduc_plus_internal<mode>): ...this.
3476
3477 (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
3478 (aarch64_reduc_plus_internalv2si): ...this.
3479
3480 (reduc_splus_<mode>/V2F): Rename to...
3481 (aarch64_reduc_plus_internal<mode>): ...this.
3482
3483 * config/aarch64/iterators.md
3484 (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
3485 (UNSPEC_ADDV): New.
3486 (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
3487
3488 * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
3489 vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
3490 vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
3491 vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
3492 __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
3493
3494 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
3495
3496 PR tree-optimization/61114
3497 * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
3498 optabs, and note in reduc_[us](plus|min|max) to prefer the former.
3499
3500 * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
3501 back to old reduc_... + BIT_FIELD_REF only if not.
3502
3503 * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
3504 return the reduce-to-scalar (reduc_..._scal) optab.
3505 (scalar_reduc_to_vector): New.
3506
3507 * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
3508 reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
3509 New.
3510
3511 * optabs.h (scalar_reduc_to_vector): Declare.
3512
3513 * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
3514 to either scalar or vector.
3515
3516 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
3517
3518 PR tree-optimization/61114
3519 * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
3520 extract_bit_field around optab result.
3521
3522 * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
3523 scalar not vector.
3524
3525 * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
3526 for REDUC_{MIN,MAX,PLUS}_EXPR.
3527
3528 * tree-vect-loop.c (vect_analyze_loop): Update comment.
3529 (vect_create_epilog_for_reduction): For direct vector reduction, use
3530 result of tree code directly without extract_bit_field.
3531
3532 * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
3533 comment.
3534
3535 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
3536
3537 * basic-block.h: Remove all includes.
3538 (enum profile_status_d, struct control_flow_graph): Move to cfg.h
3539 * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
3540 * Makefile.in (GTFILES): Add cfg.h to list.
3541 * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
3542 * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
3543 * genconditions.c (write_header): Add predict.h and basic-block.h to
3544 lits of includes.
3545 * genemit.c (main): Ditto.
3546 * genpreds.c (write_insn_preds_c): Ditto.
3547 * genrecog.c (write_header): Ditto.
3548 * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
3549 to list of includes.
3550 * alias.c: Adjust include files.
3551 * asan.c: Ditto.
3552 * auto-inc-dec.c: Ditto.
3553 * auto-profile.c: Ditto.
3554 * bb-reorder.c: Ditto.
3555 * bt-load.c: Ditto.
3556 * builtins.c: Ditto.
3557 * caller-save.c: Ditto.
3558 * calls.c: Ditto.
3559 * cfg.c: Ditto.
3560 * cfganal.c: Ditto.
3561 * cfgbuild.c: Ditto.
3562 * cfgcleanup.c: Ditto.
3563 * cfgexpand.c: Ditto.
3564 * cfghooks.c: Ditto.
3565 * cfgloop.c: Ditto.
3566 * cfgloopanal.c: Ditto.
3567 * cfgloopmanip.c: Ditto.
3568 * cfgrtl.c: Ditto.
3569 * cgraphbuild.c: Ditto.
3570 * cgraphclones.c: Ditto.
3571 * cgraphunit.c: Ditto.
3572 * combine-stack-adj.c: Ditto.
3573 * combine.c: Ditto.
3574 * compare-elim.c: Ditto.
3575 * coverage.c: Ditto.
3576 * cprop.c: Ditto.
3577 * cse.c: Ditto.
3578 * cselib.c: Ditto.
3579 * data-streamer-in.c: Ditto.
3580 * data-streamer-out.c: Ditto.
3581 * data-streamer.c: Ditto.
3582 * dce.c: Ditto.
3583 * ddg.c: Ditto.
3584 * ddg.h: Ditto.
3585 * df-core.c: Ditto.
3586 * df-problems.c: Ditto.
3587 * df-scan.c: Ditto.
3588 * df.h: Ditto.
3589 * dojump.c: Ditto.
3590 * dominance.c: Ditto.
3591 * domwalk.c: Ditto.
3592 * dse.c: Ditto.
3593 * dwarf2cfi.c: Ditto.
3594 * emit-rtl.c: Ditto.
3595 * et-forest.c: Ditto.
3596 * except.c: Ditto.
3597 * expmed.c: Ditto.
3598 * expr.c: Ditto.
3599 * final.c: Ditto.
3600 * fold-const.c: Ditto.
3601 * function.c: Ditto.
3602 * fwprop.c: Ditto.
3603 * gcc-plugin.h: Ditto.
3604 * gcse.c: Ditto.
3605 * generic-match-head.c: Ditto.
3606 * ggc-page.c: Ditto.
3607 * gimple-builder.c: Ditto.
3608 * gimple-expr.c: Ditto.
3609 * gimple-fold.c: Ditto.
3610 * gimple-iterator.c: Ditto.
3611 * gimple-low.c: Ditto.
3612 * gimple-match-head.c: Ditto.
3613 * gimple-pretty-print.c: Ditto.
3614 * gimple-ssa-isolate-paths.c: Ditto.
3615 * gimple-ssa-strength-reduction.c: Ditto.
3616 * gimple-streamer-in.c: Ditto.
3617 * gimple-streamer-out.c: Ditto.
3618 * gimple-streamer.h: Ditto.
3619 * gimple-walk.c: Ditto.
3620 * gimple.c: Ditto.
3621 * gimplify-me.c: Ditto.
3622 * gimplify.c: Ditto.
3623 * graph.c: Ditto.
3624 * graphite-blocking.c: Ditto.
3625 * graphite-clast-to-gimple.c: Ditto.
3626 * graphite-dependences.c: Ditto.
3627 * graphite-interchange.c: Ditto.
3628 * graphite-isl-ast-to-gimple.c: Ditto.
3629 * graphite-optimize-isl.c: Ditto.
3630 * graphite-poly.c: Ditto.
3631 * graphite-scop-detection.c: Ditto.
3632 * graphite-sese-to-poly.c: Ditto.
3633 * graphite.c: Ditto.
3634 * haifa-sched.c: Ditto.
3635 * hw-doloop.c: Ditto.
3636 * ifcvt.c: Ditto.
3637 * init-regs.c: Ditto.
3638 * internal-fn.c: Ditto.
3639 * ipa-cp.c: Ditto.
3640 * ipa-devirt.c: Ditto.
3641 * ipa-icf-gimple.c: Ditto.
3642 * ipa-icf.c: Ditto.
3643 * ipa-inline-analysis.c: Ditto.
3644 * ipa-inline.c: Ditto.
3645 * ipa-polymorphic-call.c: Ditto.
3646 * ipa-profile.c: Ditto.
3647 * ipa-prop.c: Ditto.
3648 * ipa-pure-const.c: Ditto.
3649 * ipa-reference.c: Ditto.
3650 * ipa-split.c: Ditto.
3651 * ipa-utils.c: Ditto.
3652 * ipa.c: Ditto.
3653 * ira-build.c: Ditto.
3654 * ira-color.c: Ditto.
3655 * ira-conflicts.c: Ditto.
3656 * ira-costs.c: Ditto.
3657 * ira-emit.c: Ditto.
3658 * ira-lives.c: Ditto.
3659 * ira.c: Ditto.
3660 * jump.c: Ditto.
3661 * lcm.c: Ditto.
3662 * loop-doloop.c: Ditto.
3663 * loop-init.c: Ditto.
3664 * loop-invariant.c: Ditto.
3665 * loop-iv.c: Ditto.
3666 * loop-unroll.c: Ditto.
3667 * lower-subreg.c: Ditto.
3668 * lra-assigns.c: Ditto.
3669 * lra-coalesce.c: Ditto.
3670 * lra-constraints.c: Ditto.
3671 * lra-eliminations.c: Ditto.
3672 * lra-lives.c: Ditto.
3673 * lra-spills.c: Ditto.
3674 * lra.c: Ditto.
3675 * lto-cgraph.c: Ditto.
3676 * lto-compress.c: Ditto.
3677 * lto-opts.c: Ditto.
3678 * lto-section-in.c: Ditto.
3679 * lto-section-out.c: Ditto.
3680 * lto-streamer-in.c: Ditto.
3681 * lto-streamer-out.c: Ditto.
3682 * lto-streamer.c: Ditto.
3683 * mcf.c: Ditto.
3684 * mode-switching.c: Ditto.
3685 * modulo-sched.c: Ditto.
3686 * omp-low.c: Ditto.
3687 * optabs.c: Ditto.
3688 * opts-global.c: Ditto.
3689 * passes.c: Ditto.
3690 * postreload-gcse.c: Ditto.
3691 * postreload.c: Ditto.
3692 * predict.c: Ditto.
3693 * print-rtl.c: Ditto.
3694 * profile.c: Ditto.
3695 * recog.c: Ditto.
3696 * ree.c: Ditto.
3697 * reg-stack.c: Ditto.
3698 * regcprop.c: Ditto.
3699 * regcprop.h: Ditto.
3700 * reginfo.c: Ditto.
3701 * regrename.c: Ditto.
3702 * regstat.c: Ditto.
3703 * reload.c: Ditto.
3704 * reload1.c: Ditto.
3705 * reorg.c: Ditto.
3706 * resource.c: Ditto.
3707 * rtlanal.c: Ditto.
3708 * sched-deps.c: Ditto.
3709 * sched-ebb.c: Ditto.
3710 * sched-int.h: Ditto.
3711 * sched-rgn.c: Ditto.
3712 * sched-vis.c: Ditto.
3713 * sel-sched-dump.c: Ditto.
3714 * sel-sched-ir.c: Ditto.
3715 * sel-sched-ir.h: Ditto.
3716 * sel-sched.c: Ditto.
3717 * sese.c: Ditto.
3718 * shrink-wrap.c: Ditto.
3719 * stack-ptr-mod.c: Ditto.
3720 * stmt.c: Ditto.
3721 * store-motion.c: Ditto.
3722 * symtab.c: Ditto.
3723 * toplev.c: Ditto.
3724 * tracer.c: Ditto.
3725 * trans-mem.c: Ditto.
3726 * tree-affine.c: Ditto.
3727 * tree-call-cdce.c: Ditto.
3728 * tree-cfg.c: Ditto.
3729 * tree-cfgcleanup.c: Ditto.
3730 * tree-chrec.c: Ditto.
3731 * tree-complex.c: Ditto.
3732 * tree-data-ref.c: Ditto.
3733 * tree-dfa.c: Ditto.
3734 * tree-eh.c: Ditto.
3735 * tree-emutls.c: Ditto.
3736 * tree-if-conv.c: Ditto.
3737 * tree-inline.c: Ditto.
3738 * tree-into-ssa.c: Ditto.
3739 * tree-loop-distribution.c: Ditto.
3740 * tree-nested.c: Ditto.
3741 * tree-nrv.c: Ditto.
3742 * tree-object-size.c: Ditto.
3743 * tree-outof-ssa.c: Ditto.
3744 * tree-parloops.c: Ditto.
3745 * tree-phinodes.c: Ditto.
3746 * tree-predcom.c: Ditto.
3747 * tree-pretty-print.c: Ditto.
3748 * tree-profile.c: Ditto.
3749 * tree-scalar-evolution.c: Ditto.
3750 * tree-sra.c: Ditto.
3751 * tree-ssa-address.c: Ditto.
3752 * tree-ssa-alias.c: Ditto.
3753 * tree-ssa-ccp.c: Ditto.
3754 * tree-ssa-coalesce.c: Ditto.
3755 * tree-ssa-copy.c: Ditto.
3756 * tree-ssa-copyrename.c: Ditto.
3757 * tree-ssa-dce.c: Ditto.
3758 * tree-ssa-dom.c: Ditto.
3759 * tree-ssa-dse.c: Ditto.
3760 * tree-ssa-forwprop.c: Ditto.
3761 * tree-ssa-ifcombine.c: Ditto.
3762 * tree-ssa-live.c: Ditto.
3763 * tree-ssa-loop-ch.c: Ditto.
3764 * tree-ssa-loop-im.c: Ditto.
3765 * tree-ssa-loop-ivcanon.c: Ditto.
3766 * tree-ssa-loop-ivopts.c: Ditto.
3767 * tree-ssa-loop-manip.c: Ditto.
3768 * tree-ssa-loop-niter.c: Ditto.
3769 * tree-ssa-loop-prefetch.c: Ditto.
3770 * tree-ssa-loop-unswitch.c: Ditto.
3771 * tree-ssa-loop.c: Ditto.
3772 * tree-ssa-math-opts.c: Ditto.
3773 * tree-ssa-operands.c: Ditto.
3774 * tree-ssa-phiopt.c: Ditto.
3775 * tree-ssa-phiprop.c: Ditto.
3776 * tree-ssa-pre.c: Ditto.
3777 * tree-ssa-propagate.c: Ditto.
3778 * tree-ssa-reassoc.c: Ditto.
3779 * tree-ssa-sccvn.c: Ditto.
3780 * tree-ssa-sink.c: Ditto.
3781 * tree-ssa-strlen.c: Ditto.
3782 * tree-ssa-structalias.c: Ditto.
3783 * tree-ssa-tail-merge.c: Ditto.
3784 * tree-ssa-ter.c: Ditto.
3785 * tree-ssa-threadedge.c: Ditto.
3786 * tree-ssa-threadupdate.c: Ditto.
3787 * tree-ssa-uncprop.c: Ditto.
3788 * tree-ssa-uninit.c: Ditto.
3789 * tree-ssa.c: Ditto.
3790 * tree-ssanames.c: Ditto.
3791 * tree-stdarg.c: Ditto.
3792 * tree-streamer-in.c: Ditto.
3793 * tree-streamer-out.c: Ditto.
3794 * tree-streamer.c: Ditto.
3795 * tree-switch-conversion.c: Ditto.
3796 * tree-tailcall.c: Ditto.
3797 * tree-vect-data-refs.c: Ditto.
3798 * tree-vect-generic.c: Ditto.
3799 * tree-vect-loop-manip.c: Ditto.
3800 * tree-vect-loop.c: Ditto.
3801 * tree-vect-patterns.c: Ditto.
3802 * tree-vect-slp.c: Ditto.
3803 * tree-vect-stmts.c: Ditto.
3804 * tree-vectorizer.c: Ditto.
3805 * tree-vrp.c: Ditto.
3806 * tree.c: Ditto.
3807 * tsan.c: Ditto.
3808 * ubsan.c: Ditto.
3809 * valtrack.c: Ditto.
3810 * valtrack.h: Ditto.
3811 * value-prof.c: Ditto.
3812 * var-tracking.c: Ditto.
3813 * varasm.c: Ditto.
3814 * varpool.c: Ditto.
3815 * vtable-verify.c: Ditto.
3816 * web.c: Ditto.
3817 * config/aarch64/aarch64-builtins.c: Ditto.
3818 * config/aarch64/aarch64.c: Ditto.
3819 * config/alpha/alpha.c: Ditto.
3820 * config/arc/arc.c: Ditto.
3821 * config/arm/arm.c: Ditto.
3822 * config/avr/avr.c: Ditto.
3823 * config/bfin/bfin.c: Ditto.
3824 * config/c6x/c6x.c: Ditto.
3825 * config/cr16/cr16.c: Ditto.
3826 * config/cris/cris.c: Ditto.
3827 * config/darwin-c.c: Ditto.
3828 * config/darwin.c: Ditto.
3829 * config/epiphany/epiphany.c: Ditto.
3830 * config/epiphany/mode-switch-use.c: Ditto.
3831 * config/epiphany/resolve-sw-modes.c: Ditto.
3832 * config/fr30/fr30.c: Ditto.
3833 * config/frv/frv.c: Ditto.
3834 * config/h8300/h8300.c: Ditto.
3835 * config/i386/i386.c: Ditto.
3836 * config/i386/winnt.c: Ditto.
3837 * config/ia64/ia64.c: Ditto.
3838 * config/iq2000/iq2000.c: Ditto.
3839 * config/lm32/lm32.c: Ditto.
3840 * config/m32c/m32c.c: Ditto.
3841 * config/m32r/m32r.c: Ditto.
3842 * config/m68k/m68k.c: Ditto.
3843 * config/mcore/mcore.c: Ditto.
3844 * config/mep/mep.c: Ditto.
3845 * config/microblaze/microblaze.c: Ditto.
3846 * config/mips/mips.c: Ditto.
3847 * config/mmix/mmix.c: Ditto.
3848 * config/mn10300/mn10300.c: Ditto.
3849 * config/moxie/moxie.c: Ditto.
3850 * config/msp430/msp430.c: Ditto.
3851 * config/nds32/nds32-cost.c: Ditto.
3852 * config/nds32/nds32-fp-as-gp.c: Ditto.
3853 * config/nds32/nds32-intrinsic.c: Ditto.
3854 * config/nds32/nds32-isr.c: Ditto.
3855 * config/nds32/nds32-md-auxiliary.c: Ditto.
3856 * config/nds32/nds32-memory-manipulation.c: Ditto.
3857 * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
3858 * config/nds32/nds32-predicates.c: Ditto.
3859 * config/nds32/nds32.c: Ditto.
3860 * config/nios2/nios2.c: Ditto.
3861 * config/pa/pa.c: Ditto.
3862 * config/pdp11/pdp11.c: Ditto.
3863 * config/rl78/rl78.c: Ditto.
3864 * config/rs6000/rs6000.c: Ditto.
3865 * config/rx/rx.c: Ditto.
3866 * config/s390/s390.c: Ditto.
3867 * config/sh/sh-mem.cc: Ditto.
3868 * config/sh/sh.c: Ditto.
3869 * config/sh/sh_optimize_sett_clrt.cc: Ditto.
3870 * config/sh/sh_treg_combine.cc: Ditto.
3871 * config/sparc/sparc.c: Ditto.
3872 * config/spu/spu.c: Ditto.
3873 * config/stormy16/stormy16.c: Ditto.
3874 * config/tilegx/tilegx.c: Ditto.
3875 * config/tilepro/tilepro.c: Ditto.
3876 * config/v850/v850.c: Ditto.
3877 * config/vax/vax.c: Ditto.
3878 * config/xtensa/xtensa.c: Ditto.
3879
3880 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
3881
3882 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
3883 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
3884 Remove using preprocessor directives.
3885
3886 2014-10-27 Richard Biener <rguenther@suse.de>
3887
3888 * match.pd (0 % X): Properly use the iterator iterating over
3889 all modulo operators.
3890 (X % 1): Likewise.
3891
3892 2014-10-27 Richard Biener <rguenther@suse.de>
3893
3894 * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
3895 (lattice): New global.
3896 (fwprop_ssa_val): New function.
3897 (fold_all_stmts): Likewise.
3898 (pass_forwprop::execute): Finally fold all stmts.
3899
3900 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
3901
3902 PR c++/53061
3903 * doc/invoke.texi (fmessage-length): Update text to match reality.
3904
3905 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
3906
3907 * config/microblaze/microblaze.c: Include rtl-iter.h.
3908 (microblaze_tls_referenced_p_1): Delete.
3909 (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
3910
3911 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
3912
3913 * config/mips/mips.c (mips_at_reg_p): Delete.
3914 (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
3915
3916 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
3917
3918 * config/mips/mips.c (mips_record_lo_sum): Replace with...
3919 (mips_record_lo_sums): ...this new function.
3920 (mips_reorg_process_insns): Update accordingly.
3921
3922 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
3923
3924 * config/mips/mips.c (mips_sim_insn): Update comment.
3925 (mips_sim_wait_regs_2): Delete.
3926 (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
3927
3928 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
3929
3930 * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
3931 and return a bool. Iterate over all subrtxes here.
3932 (r10k_needs_protection_p): Update accordingly.
3933
3934 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
3935
3936 * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
3937 rather than an rtx pointer. Change type of insn from "void *"
3938 to its real type. Return bool rather than int. Iterate over
3939 all subrtxes here.
3940 (r10k_needs_protection_p_store): Update accordingly.
3941 (r10k_needs_protection_p): Likewise.
3942
3943 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
3944
3945 * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
3946 (mips16_rewrite_pool_refs): Take the insn and constant pool as
3947 parameters. Iterate over the instruction's pattern and return void.
3948 (mips16_lay_out_constants): Update accordingly.
3949
3950 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
3951
3952 * config/mips/mips.c (mips_kernel_reg_p): Replace with...
3953 (mips_refers_to_kernel_reg_p): ...this new function.
3954 (mips_expand_prologue): Update accordingly.
3955
3956 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
3957
3958 * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
3959 as a parameter instead of the containing MEM. Iterate over all
3960 subrtxes. Don't return a value.
3961 (mips_rewrite_small_data): Update call accordingly.
3962
3963 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
3964
3965 * config/mips/mips.c: Include rtl-iter.h.
3966 (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
3967 Take the context as a parameter instead of the containing MEM.
3968 Iterate over all subrtxes.
3969 (mips_small_data_pattern_p): Update call accordingly.
3970
3971 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
3972
3973 * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
3974 (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
3975
3976 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
3977
3978 * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
3979 return a bool. Replace "void *" with specific type. Iterate
3980 over all subrtxes.
3981 (mep_store_data_bypass_1): Update calls accordingly.
3982
3983 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
3984
3985 * config/mep/mep.c: Include rtl-iter.h.
3986 (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
3987 (xtensa_tls_referenced_p): Return a bool. Use FOR_EACH_SUBRTX.
3988
3989 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
3990
3991 * config/xtensa/xtensa.c: Include rtl-iter.h.
3992 (xtensa_tls_referenced_p_1): Delete.
3993 (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
3994
3995 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
3996
3997 * config/sh/sh.c (sh_contains_memref_p_1): Delete.
3998 (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
3999
4000 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
4001
4002 * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
4003 rtx as argument and return the number of changes.
4004 * config/sh/sh.c: Include rtl-iter.h.
4005 (shmedia_cleanup_truncate): Take an rtx as argument and iterate
4006 over all subrtxes. Return the number of changes made.
4007 * config/sh/sh.md: Update caller accordingly.
4008
4009 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
4010
4011 * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
4012 (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
4013
4014 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
4015
4016 * config/m68k/m68k.c: Include rtl-iter.h.
4017 (m68k_final_prescan_insn_1): Delete.
4018 (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
4019
4020 2014-10-25 Jakub Jelinek <jakub@redhat.com>
4021
4022 PR tree-optimization/63641
4023 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
4024 to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
4025
4026 2014-10-25 Alan Modra <amodra@gmail.com>
4027
4028 PR rtl-optimization/63615
4029 * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
4030 decomposing PLUS or MINUS if operands are not placed adjacent
4031 in the "ops" array.
4032
4033 2014-10-25 Joseph Myers <joseph@codesourcery.com>
4034
4035 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
4036 not allow e500 double in registers not satisyfing
4037 SPE_SIMD_REGNO_P.
4038
4039 2014-10-24 Aldy Hernandez <aldyh@redhat.com>
4040
4041 * dwarf2out.c (declare_in_namespace): Only emit external
4042 declarations in the local scope once.
4043
4044 2014-10-24 Jonathan Wakely <jwakely@redhat.com>
4045
4046 * ginclude/stdbool.h: Do not define bool, true or false in C++11.
4047
4048 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
4049
4050 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
4051 update uses to use new macro arguments.
4052 (__LD3_LANE_FUNC): Likewise.
4053 (__LD4_LANE_FUNC): Likewise.
4054
4055 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
4056
4057 * config/aarch64/aarch64-builtins.c
4058 (aarch64_types_loadstruct_lane_qualifiers): Define.
4059 * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
4060 ld4_lane): New builtins.
4061 * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
4062 New pattern.
4063 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
4064 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
4065 (aarch64_ld2_lane<mode>): New expand.
4066 (aarch64_ld3_lane<mode>): Likewise.
4067 (aarch64_ld4_lane<mode>): Likewise.
4068 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
4069 UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
4070
4071 2014-10-24 Georg-Johann Lay <avr@gjlay.de>
4072
4073 * avr-protos.h (avr_out_sign_extend): New.
4074 * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
4075 (avr_out_sign_extend): New function.
4076 * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
4077 (extendhisi2, extendpsisi2): Use it.
4078 (adjust_len) [sext]: New.
4079
4080 2014-10-24 Martin Liska <mliska@suse.cz>
4081
4082 * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
4083 added.
4084
4085 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4086
4087 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
4088 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
4089 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
4090 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
4091
4092 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4093
4094 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
4095 do while (0).
4096 * config/aarch64/aarch64.c (is_mem_p): Delete.
4097 (is_memory_op): Rename to...
4098 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
4099 (dep_between_memop_and_curr): Assert that the input is a SET.
4100 (aarch64_madd_needs_nop): Add comment. Do not call
4101 dep_between_memop_and_curr on NULL body.
4102 (aarch64_final_prescan_insn): Add comment.
4103 Include rtl-iter.h.
4104
4105 2014-10-24 Richard Biener <rguenther@suse.de>
4106
4107 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
4108 to genmatch BUILD_LIBS instead.
4109
4110 2014-10-24 Richard Biener <rguenther@suse.de>
4111
4112 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
4113 and build_call_expr_loc.
4114 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
4115 non_lvalue_loc to build it for GENERIC.
4116 (decision_tree::gen_generic): Add location argument to
4117 generic_simplify prototype.
4118 (capture_info): New class.
4119 (capture_info::capture_info): New constructor.
4120 (capture_info::walk_match): New method.
4121 (capture_info::walk_result): New method.
4122 (capture_info::walk_c_expr): New method.
4123 (dt_simplify::gen): Handle preserving side-effects for
4124 GENERIC code generation.
4125 (decision_tree::gen_generic): Do not reject operands
4126 with TREE_SIDE_EFFECTS.
4127 * generic-match.h: New file.
4128 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
4129 * match.pd: Add some constant folding patterns from fold-const.c.
4130 * fold-const.c: Include generic-match.h.
4131 (fold_unary_loc): Dispatch to generic_simplify.
4132 (fold_ternary_loc): Likewise.
4133 (fold_binary_loc): Likewise. Remove patterns now implemented
4134 by generic_simplify.
4135 * gimple-fold.c (replace_stmt_with_simplification): New function.
4136 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
4137 (no_follow_ssa_edges): New function.
4138 (fold_stmt): New overload with valueization hook. Use
4139 no_follow_ssa_edges for the overload without hook.
4140 (fold_stmt_inplace): Likewise.
4141 * gimple-fold.h (no_follow_ssa_edges): Declare.
4142
4143 2014-10-24 Felix Yang <felix.yang@huawei.com>
4144 Jiji Jiang <jiangjiji@huawei.com>
4145
4146 PR target/63173
4147 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
4148 (__LD3R_FUNC): Ditto.
4149 (__LD4R_FUNC): Ditto.
4150 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
4151 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
4152 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
4153 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
4154 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
4155 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
4156 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
4157 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
4158 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
4159 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
4160 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
4161 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
4162 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
4163 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
4164 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
4165 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
4166 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
4167 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
4168 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
4169 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
4170 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
4171 builtins.
4172 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
4173 (aarch64_simd_ld3r<mode>): Likewise.
4174 (aarch64_simd_ld4r<mode>): Likewise.
4175 (aarch64_ld2r<mode>): New expand.
4176 (aarch64_ld3r<mode>): Likewise.
4177 (aarch64_ld4r<mode>): Likewise.
4178
4179 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
4180
4181 * rtlanal.c (get_base_term): Handle SCRATCH.
4182
4183 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
4184
4185 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
4186 register pressure.
4187
4188 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
4189
4190 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
4191 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
4192 (max_issue, choose_ready, sched_init): Update.
4193
4194 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
4195
4196 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
4197 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
4198 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
4199 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
4200 (print_rank_for_schedule_stats): Print out elements of ready list that
4201 ended up on their respective places due to each of the sorting
4202 heuristics.
4203 (ready_sort): Update.
4204 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
4205 (schedule_block): Update.
4206
4207 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
4208
4209 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
4210 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
4211 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
4212 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
4213 (model_start_schedule): Update.
4214 (sched_pressure_start_bb): New static function. Calculate
4215 sched_class_regs_num.
4216 (schedule_block): Use it.
4217 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
4218
4219 2014-10-24 Richard Biener <rguenther@suse.de>
4220
4221 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
4222 host library and make sure to pull in the required libintl
4223 and libiconv dependencies.
4224
4225 2014-10-24 Richard Biener <rguenther@suse.de>
4226
4227 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
4228
4229 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
4230
4231 PR bootstrap/63632
4232 * collect2.c (main): Filter out -fno-lto.
4233
4234 2014-10-24 Martin Liska <mliska@suse.cz>
4235
4236 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
4237 division by zero in dumps.
4238 (sem_item_optimizer::merge_classes): Ditto.
4239
4240 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
4241
4242 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
4243
4244 2014-10-23 Ian Lance Taylor <iant@google.com>
4245
4246 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
4247
4248 2014-10-23 Ian Lance Taylor <iant@google.com>
4249
4250 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
4251
4252 2014-10-23 Jakub Jelinek <jakub@redhat.com>
4253
4254 PR debug/63623
4255 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
4256 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
4257 instead of only handling autoinc in dest if it is a MEM.
4258 (vt_stack_adjustments): Fix up formatting.
4259
4260 2014-10-23 DJ Delorie <dj@redhat.com>
4261
4262 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
4263 independend of -mlarge.
4264 * config/msp430/constraints.md (Ys): Update comment.
4265
4266 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
4267
4268 PR target/63534
4269 PR target/63618
4270 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
4271 while it is pseudo.
4272 * dse.c (deletable_insn_p): Likewise.
4273
4274 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
4275
4276 * config/avr/avr.c: Fix GNU coding rules and typos.
4277 * config/avr/avr.h: Dito.
4278 * config/avr/avr-c.c: Dito.
4279 * config/avr/avr.md: Dito.
4280
4281 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
4282
4283 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
4284 New.
4285 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
4286 iterator.
4287 (define_expand "abs<mode>2"): Ditto.
4288
4289 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
4290
4291 * tree-core.h (tree_var_decl): Extend `function_code' field
4292 by one bit, move `regdecl_flag' field to ...
4293 (tree_decl_with_vis): Here.
4294 * tree.h (DECL_STATIC_CHAIN): Update struct name.
4295
4296 2014-10-23 Richard Biener <rguenther@suse.de>
4297
4298 * Makefile.in (BUILD_CPPLIB): Add.
4299 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
4300 Drop LIBIBERTY.
4301
4302 2014-10-23 Richard Biener <rguenther@suse.de>
4303
4304 * fold-const.c (fold_binary_loc): Preserve side-effects of
4305 X - X when simplifying to 0.
4306 * stor-layout.c (finish_bitfield_representative): Strip
4307 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
4308
4309 2014-10-22 Richard Biener <rguenther@suse.de>
4310 Tobias Burnus <burnus@net-b.de>
4311
4312 PR lto/63603
4313 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
4314
4315 2014-10-22 Dehao Chen <dehao@google.com>
4316
4317 * auto-profile.c: Change order of header files.
4318
4319 2014-10-22 Guozhi Wei <carrot@google.com>
4320
4321 PR tree-optimization/63530
4322 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
4323 pointer alignment according to DR_MISALIGNMENT.
4324
4325 2014-10-22 David Malcolm <dmalcolm@redhat.com>
4326
4327 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
4328
4329 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
4330
4331 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
4332 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
4333 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
4334 * dominance.h: New. Add prototypes for dominance.c.
4335 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
4336 * cfghooks.h: (struct profile_record) Relocate here.
4337 Relocate 2 prototypes from basic-block.h.
4338 * basic-block.h: Move prototypes and struct to new header files.
4339 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
4340 * rtl.h: Move a few prototypes to new header files.
4341 * cfgcleanup.c (merge_memattrs): Make static.
4342 * genopinit.c (main): Add predict.h to list of includes.
4343 * predict.h: Update prototype list to match predict.c.
4344 * predict.c (maybe_hot_count_p): Export.
4345 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
4346 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
4347 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
4348 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
4349 * profile.h: Adjust prototypes.
4350 * ifcvt.h: New. Relocate struct ce_if_block here.
4351 * ifcvt.c: Include ifcvt.h.
4352 * config/frv/frv.c: Include ifcvt.h.
4353 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
4354
4355 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
4356
4357 * lra.c (lra): Remove call to recog_init.
4358 * config/i386/i386.md (preferred_for_speed): New attribute
4359 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
4360 "enabled". Remove check for sched1.
4361
4362 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
4363
4364 * recog.h (recog_data_d): Remove enabled_alternatives.
4365 * recog.c (extract_insn): Don't set it.
4366 * reload.c (find_reloads): Call get_enabled_alternatives.
4367
4368 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
4369
4370 * recog.h (constrain_operands): Add an alternative_mask parameter.
4371 (constrain_operands_cached): Likewise.
4372 (get_preferred_alternatives): Declare new form.
4373 * recog.c (get_preferred_alternatives): New bb-taking instance.
4374 (constrain_operands): Take the set of available alternatives as
4375 a parameter.
4376 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
4377 (extract_constrain_insn_cached): Update calls to constrain_operands.
4378 * caller-save.c (reg_save_code): Likewise.
4379 * ira.c (setup_prohibited_mode_move_regs): Likewise.
4380 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4381 * ree.c (combine_reaching_defs): Likewise.
4382 * reload.c (can_reload_into): Likewise.
4383 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
4384 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
4385 (emit_insn_if_valid_for_reload): Likewise.
4386 * reorg.c (fill_slots_from_thread): Likewise.
4387 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
4388 * config/pa/pa.c (pa_can_combine_p): Likewise.
4389 * config/rl78/rl78.c (insn_ok_now): Likewise.
4390 * config/sh/sh.md (define_peephole2): Likewise.
4391 * final.c (final_scan_insn): Update call to constrain_operands_cached.
4392
4393 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
4394
4395 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
4396 attributes.
4397 * genattr.c (main): Handle "preferred_for_size" and
4398 "preferred_for_speed" in the same way as "enabled".
4399 * recog.h (bool_attr): New enum.
4400 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
4401 (get_preferred_alternatives, check_bool_attrs): Declare.
4402 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
4403 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
4404 New functions.
4405 (get_enabled_alternatives): Use get_bool_attr_mask.
4406 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
4407 instead of recog_data.enabled_alternatives.
4408 * ira.c (ira_setup_alts): Likewise.
4409 * postreload.c (reload_cse_simplify_operands): Likewise.
4410 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4411 * ira-lives.c (preferred_alternatives): New variable.
4412 (process_bb_node_lives): Set it.
4413 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
4414 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
4415 of recog_data.enabled_alternatives.
4416 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
4417 to preferred_alternatives.
4418 * lra-constraints.c (process_alt_operands): Update accordingly.
4419 * lra.c (lra_set_insn_recog_data): Likewise.
4420 (lra_update_insn_recog_data): Assert check_bool_attrs.
4421
4422 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
4423
4424 * recog.h (extract_constrain_insn): Declare.
4425 * recog.c (extract_constrain_insn): New function.
4426 * lra.c (check_rtl): Use it.
4427 * postreload.c (reload_cse_simplify_operands): Likewise.
4428 * reg-stack.c (check_asm_stack_operands): Likewise.
4429 (subst_asm_stack_regs): Likewise.
4430 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
4431 * regrename.c (build_def_use): Likewise.
4432 * sel-sched.c (get_reg_class): Likewise.
4433 * config/arm/arm.c (note_invalid_constants): Likewise.
4434 * config/s390/predicates.md (execute_operation): Likewise.
4435
4436 2014-10-22 Jakub Jelinek <jakub@redhat.com>
4437 Yury Gribov <y.gribov@samsung.com>
4438
4439 * common.opt (flag_sanitize_recover): New variable.
4440 (fsanitize-recover): Remove Var/Init, deprecate.
4441 (fsanitize-recover=): New option.
4442 * doc/invoke.texi (fsanitize-recover): Update docs.
4443 * opts.c (finish_options): Use opts->x_flag_sanitize
4444 instead of flag_sanitize. Prohibit -fsanitize-recover
4445 for anything besides UBSan. Formatting.
4446 (common_handle_option): Handle OPT_fsanitize_recover_
4447 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
4448 instead of flag_sanitize.
4449 * asan.c (pass_sanopt::execute): Fix up formatting.
4450 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
4451 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
4452 instrument_bool_enum_load, ubsan_instrument_float_cast,
4453 instrument_nonnull_arg, instrument_nonnull_return): Check
4454 bits in flag_sanitize_recover bitmask instead of
4455 flag_sanitize_recover as bool flag.
4456
4457 2014-10-22 Jiong Wang <jiong.wang@arm.com>
4458
4459 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
4460
4461 2014-10-22 Renlin Li <renlin.li@arm.com>
4462
4463 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
4464 __ARM_FEATURE_IDIV__.
4465
4466 2014-10-22 Richard Biener <rguenther@suse.de>
4467
4468 * Makefile.in (s-match): Adjust dependencies to only catch
4469 match.pd.
4470
4471 2014-10-22 Richard Biener <rguenther@suse.de>
4472 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
4473
4474 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
4475 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
4476 (gimple-match.c): Generate by triggering s-match.
4477 (generic-match.c): Likewise.
4478 (s-match): Rule to build gimple-match.c and generic-match.c
4479 by running the genmatch generator program.
4480 (build/hash-table.o): Dependencies to build hash-table.c for the host.
4481 (build/genmatch.o): Dependencies to build genmatch.
4482 (genprog): Add match.
4483 (build/genmatch): Likewise.
4484 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
4485 * generic-match-head.c: New file.
4486 * gimple-match-head.c: Likewise.
4487 * gimple-match.h: Likewise.
4488 * genmatch.c: Likewise.
4489 * match.pd: Likewise.
4490 * builtins.h (fold_builtin_n): Export.
4491 * builtins.c (fold_builtin_n): Likewise.
4492 * gimple-fold.h (gimple_build): Declare various overloads.
4493 (gimple_simplify): Likewise.
4494 (gimple_convert): Re-implement in terms of gimple_build.
4495 * gimple-fold.c (gimple_convert): Remove.
4496 (gimple_build): New functions.
4497 * doc/match-and-simplify.texi: New file.
4498 * doc/gccint.texi: Add menu item Match and Simplify and include
4499 match-and-simplify.texi.
4500
4501 2014-10-22 Jakub Jelinek <jakub@redhat.com>
4502
4503 PR target/63594
4504 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
4505 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
4506 even for just TARGET_AVX2, not only for
4507 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
4508 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
4509 otherwise build it using concatenation of 256-bit
4510 broadcast.
4511 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
4512 avx512 broadcast patterns.
4513 (vec_dup<mode>): Likewise. For avx2 use
4514 v<sseintprefix>broadcast<bcstscalarsuff> instead of
4515 vbroadcast<ssescalarmodesuffix>.
4516 (AVX2_VEC_DUP_MODE): New mode iterator.
4517 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
4518 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
4519
4520 PR target/63542
4521 * config/i386/i386.c (ix86_pic_register_p): Also return
4522 true if x is a hard register with ORIGINAL_REGNO equal to
4523 pic_offset_table_rtx pseudo REGNO.
4524 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
4525 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
4526
4527 2014-10-22 Alan Modra <amodra@gmail.com>
4528
4529 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
4530 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
4531 (gcc_obstack_init): Use obstack_specify_allocation in place of
4532 _obstack_begin.
4533 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
4534 (regexp_representation): Likewise.
4535 * godump.c (go_output_type): Likewise.
4536
4537 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
4538
4539 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
4540 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
4541 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
4542
4543 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4544
4545 * doc/invoke.texi (pedantic-errors): Explain better.
4546
4547 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
4548 Vidya Praveen <vidya.praveen@atmel.com>
4549 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
4550 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
4551 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
4552
4553 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
4554 __MEMX for avrtiny.
4555 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
4556 (avr_nonconst_pointer_addrspace): Likewise.
4557 * config/avr/avr.h (AVR_HAVE_LPM): Define.
4558
4559 Added AVRTINY architecture to avr target.
4560 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
4561 (base_arch_s): member added for AVRTINY architecture.
4562 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
4563 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
4564 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
4565 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
4566 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
4567 in callee saved register list.
4568 (avr_option_override): CCP address updated for AVRTINY.
4569 (avr_init_expanders): tmp and zero rtx initialized as per arch.
4570 Reset avr_have_dimode if AVRTINY.
4571 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
4572 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
4573 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
4574 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
4575 (expand_epilogue): Likewise.
4576 (avr_print_operand): Print CCP address in case of AVRTINY also.
4577 <TBD>bad address
4578 (function_arg_regno_p): Check different register list for arguments
4579 if AVRTINY.
4580 (init_cumulative_args): Check for AVRTINY to update number of argument
4581 registers.
4582 (tiny_valid_direct_memory_access_range): New function. Return false if
4583 direct memory access range is not in accepted range for AVRTINY.
4584 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
4585 indirect load (with displacement) for AVRTINY.
4586 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
4587 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
4588 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
4589 indirect load (no displacement) for AVRTINY.
4590 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
4591 indirect load (with displacement) for AVRTINY.
4592 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
4593 indirect load for pre-decrement address.
4594 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
4595 functions. Update instruction length for AVRTINY.
4596 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
4597 SImode.
4598 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
4599 (out_movsi_r_mr): Likewise, for SImode.
4600 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
4601 indirect store (no displacement) for AVRTINY.
4602 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
4603 indirect store (with displacement) for AVRTINY.
4604 (out_movsi_mr_r): Emit out insn for IO address store. Update store
4605 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
4606 store functions.
4607 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
4608 indirect load (no displacement) for PSImode in AVRTINY.
4609 (avr_out_load_psi_reg_disp_tiny): New function to handle register
4610 indirect load (with displacement) for PSImode in AVRTINY.
4611 (avr_out_load_psi): Call PSImode register indirect load functions for
4612 AVRTINY. Update instruction length for AVRTINY.
4613 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
4614 indirect store (no displacement) for PSImode in AVRTINY.
4615 (avr_out_store_psi_reg_disp_tiny): New function to handle register
4616 indirect store (with displacement) for PSImode in AVRTINY.
4617 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
4618 register indirect store functions for AVRTINY.
4619 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
4620 register indirect store (with displacement) for AVRTINY.
4621 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
4622 register indirect store function for QImode in AVRTINY.
4623 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
4624 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
4625 indirect store (no displacement) for HImode in AVRTINY.
4626 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
4627 indirect store (with displacement) for HImode in AVRTINY.
4628 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
4629 indirect store for post-increment address in HImode.
4630 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
4631 register indirect store function for HImode in AVRTINY.
4632 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
4633 in case of AVRTINY.
4634 (order_regs_for_local_alloc): Updated register allocation order for
4635 AVRTINY.
4636 (avr_conditional_register_usage): New function. It is a target hook
4637 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
4638 used registers list and register allocation order for AVRTINY.
4639 (avr_return_in_memory): Update return value size for AVRTINY.
4640 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
4641 for AVRTINY arch and tiny program memory base address.
4642 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
4643 (avr_texinfo): Added description for AVRTINY arch.
4644 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
4645 STATIC_CHAIN_REGNUM for AVRTINY.
4646 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
4647 * config/avr/avr.md: Added constants for tmp/ zero registers in
4648 AVRTINY. Attributes for AVRTINY added.
4649 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
4650 memory access range.
4651 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
4652 in AVRTINY memory access range.
4653 (*mov<mode>): Likewise for HImode and SImode.
4654 (*movsf): Likewise for SFmode.
4655 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
4656 not have sbiw.
4657 * config/avr/avr-protos.h: Added function prototype for
4658 tiny_valid_direct_memory_access_range.
4659 * config/avr/avr-tables.opt: Regenerate.
4660 * gcc/config/avr/t-multilib: Regenerate.
4661 * doc/avr-mmcu.texi: Regenerate.
4662
4663 2014-10-21 Andrew Pinski <apinski@cavium.com>
4664
4665 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
4666 available option also.
4667 * config/aarch64/aarch64-cost-tables.h: New file.
4668 * config/aarch64/aarch64-cores.def (thunderx): New core.
4669 * config/aarch64/aarch64-tune.md: Regenerate.
4670 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
4671 of config/arm/aarch-cost-tables.h.
4672 (thunderx_regmove_cost): New variable.
4673 (thunderx_tunings): New variable.
4674
4675 2014-10-21 Dehao Chen <dehao@google.com>
4676
4677 * auto-profile.c: New file.
4678 * auto-profile.h: New file.
4679 * basic-block.h (maybe_hot_count_p): New export func.
4680 (add_working_set): New export func.
4681 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
4682 (GCOV_TAG_AFDO_FUNCTION): Likewise.
4683 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
4684 * opts.c (enable_fdo_optimizations): New func.
4685 (common_handle_option): Handle -fauto-profile flag.
4686 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
4687 (class pass_early_inline): Export early_inliner.
4688 (early_inliner): Likewise.
4689 (pass_early_inline::execute): Likewise.
4690 * ipa-inline.h (early_inliner): Likewise.
4691 * predict.c (maybe_hot_count_p): New export func.
4692 (counts_to_freqs): AutoFDO logic.
4693 (rebuild_frequencies): Likewise.
4694 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
4695 * profile.c (add_working_set): New func.
4696 * Makefile.in (auto-profile.o): New object file.
4697 * passes.def (pass_ipa_auto_profile): New pass.
4698 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
4699 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
4700 * toplev.c (compile_file): AutoFDO logic.
4701 * doc/invoke.texi (-fauto-profile): New doc.
4702 * coverage.c (coverage_init): AutoFDO logic.
4703 * common.opt (-fauto-profile): New flag.
4704 * timevar.def (TV_IPA_AUTOFDO): New tag.
4705 * value-prof.c (gimple_alloc_histogram_value): New export func.
4706 (check_ic_target): Likewise.
4707 * value-prof.h (gimple_alloc_histogram_value): Likewise.
4708 (check_ic_target): Likewise.
4709
4710 2014-10-21 David Malcolm <dmalcolm@redhat.com>
4711
4712 * cgraph.c (cgraph_c_finalize): New function.
4713 * cgraph.h (cgraph_c_finalize): New prototype.
4714 (cgraphunit_c_finalize): New prototype.
4715 * cgraphunit.c (first_analyzed): Move from analyze_functions
4716 to file-scope.
4717 (first_analyzed_var): Likewise.
4718 (analyze_functions): Move static variables into file-scope.
4719 (cgraphunit_c_finalize): New function.
4720 * diagnostic.c (diagnostic_finish): Free the memory for
4721 context->classify_diagnostic and context->printer, running the
4722 destructor for the latter.
4723 (bt_stop): Use toplev::main.
4724 * dwarf2out.c (dwarf2out_finalize): New function.
4725 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
4726 * gcse.c (gcse_c_finalize): New function.
4727 * gcse.h (gcse_c_finalize): New prototype.
4728 * ggc-page.c (init_ggc): Make idempotent.
4729 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
4730 * ipa-cp.c (ipa_cp_c_finalize): New function.
4731 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
4732 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
4733 a field of class pass_ipa_pure_const.
4734 (node_duplication_hook_holder): Likewise.
4735 (node_removal_hook_holder): Likewise.
4736 (register_hooks): Convert to method...
4737 (pass_ipa_pure_const::register_hooks): ...here, converting
4738 static variable init_p into...
4739 (pass_ipa_pure_const::init_p): ...new field.
4740 (pure_const_generate_summary): Update invocation of
4741 register_hooks to invoke as a method of current_pass.
4742 (pure_const_read_summary): Likewise.
4743 (propagate): Convert to...
4744 (pass_ipa_pure_const::execute): ...method.
4745 * ipa-reference.c (ipa_init): Move static bool init_p from here
4746 to...
4747 (ipa_init_p): New file-scope variable, so that it can be reset
4748 when repeatedly invoking the compiler within one process by...
4749 (ipa_reference_c_finalize): New function.
4750 * ipa-reference.h (ipa_reference_c_finalize): New.
4751 * main.c (main): Replace invocation of toplev_main with
4752 construction of a toplev instance, and call its "main" method.
4753 * params.c (global_init_params): Add an assert that
4754 params_finished is false.
4755 (params_c_finalize): New.
4756 * params.h (params_c_finalize): New.
4757 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
4758 invoking generate_summary, for the benefit of pass_ipa_pure_const.
4759 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
4760 before calling write_summary hook.
4761 (ipa_write_optimization_summaries_1): Likewise when calling
4762 write_optimization_summary hook.
4763 (ipa_read_summaries_1): Likewise for read_summary hook.
4764 (ipa_read_optimization_summaries_1): Likewise for
4765 read_optimization_summary hook.
4766 (execute_ipa_stmt_fixups): Likewise.
4767 * stringpool.c (init_stringpool): Clean up if we're called more
4768 than once.
4769 * timevar.c (timevar_init): Ignore repeated calls.
4770 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
4771 "ipa-prop.h".
4772 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
4773 (initialize_rtl): Move static local "initialized_once"
4774 into file scope, and rename to...
4775 (rtl_initialized): New variable.
4776 (do_compile): Move timevar initialization from here to
4777 toplev::start_timevars.
4778 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
4779 toplev::finalize): New functions.
4780 (toplev_main): Rename to...
4781 (toplev::main): ...this.
4782 * toplev.h (class toplev): New class.
4783
4784 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
4785
4786 * loop-doloop.c: Include loop-unroll.h.
4787
4788 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
4789
4790 * cfg.h: New. Header file for cfg.c.
4791 * cfganal.h: New. Header file for cfganal.c.
4792 * lcm.h: New. Header file for lcm.c.
4793 * loop-unroll.h: New. Header file for loop-unroll.h.
4794 * cfgloop.h: (unroll_loops): Remove prototype.
4795 * basic-block.h: Move prototypes and structs to new header files.
4796 Include cfg.h, cfganal.h, and lcm.h.
4797 * loop-init.c: Include loop-unroll.h.
4798 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
4799 * modulo-sched.c: Include loop-unroll.h.
4800
4801 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
4802
4803 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
4804 MARKER_BYTE_UNKNOWN markers when handling casts.
4805
4806 2014-10-21 Richard Biener <rguenther@suse.de>
4807
4808 * tree-ssa-phiopt.c (value_replacement): Properly verify we
4809 are the non-singleton PHI.
4810
4811 2014-10-21 Jakub Jelinek <jakub@redhat.com>
4812
4813 PR tree-optimization/63563
4814 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
4815 if either dra or drb stmts are not normal loads/stores.
4816
4817 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
4818
4819 * config/i386/i386.c (expand_vec_perm_1): Fix
4820 expand_vec_perm_palignr case.
4821 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
4822 VI1_AVX512.
4823
4824 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
4825
4826 * cfgloopanal.c (seq_cost): Delete.
4827 * rtl.h (seq_cost): New prototype.
4828 * rtlanal.c (seq_cost): New function.
4829 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
4830
4831 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
4832
4833 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
4834 * basic-block.h: Remove prototypes for cfgrtl.c.
4835 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
4836 prototypes to cfgrtl.h.
4837 * profile.h (profile_info): Add extern export declaration.
4838 * rtl.h: Remove prototypes for cfgrtl.h.
4839 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
4840 * ipa-inline.c: Include profile.h.
4841 * loop-unroll.c: Ditto.
4842 * modulo-sched.c: Ditto.
4843 * postreload-gcse.c: Ditto.
4844 * predict.c: Ditto.
4845 * sched-ebb.c: Ditto.
4846 * sched-rgn.c: Ditto.
4847 * tracer.c: Ditto.
4848 * tree-ssa-loop-ivcanon.c: Ditto.
4849
4850 2014-10-20 Richard Biener <rguenther@suse.de>
4851
4852 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
4853 operands to get a def operand kind match. Signal mismatches
4854 to the parent so we can try swapping its operands.
4855 (vect_build_slp_tree): Try swapping operands if they have
4856 a mismatched operand kind.
4857
4858 2014-10-20 Alan Modra <amodra@gmail.com>
4859
4860 PR debug/60655
4861 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
4862 Increase "ops" array size. Correct array size tests. Init
4863 n_constants in loop. Break out of innermost loop when finding
4864 a trivial CONST expression.
4865
4866 2014-10-20 Martin Liska <mliska@suse.cz>
4867
4868 PR ipa/63583
4869 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
4870 Gimple tempate string is compared.
4871
4872 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
4873
4874 * varasm.c (const_alias_set): Remove.
4875 (init_varasm_once): Remove initialization of const_alias_set.
4876 (build_constant_desc): Do not set alias set to const_alias_set.
4877
4878 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
4879
4880 * configure: Regenerate.
4881 * configure.ac: Move the test for section attribute specifier "e" in GAS
4882 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
4883 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
4884 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
4885 ifdef HAVE_GAS_SECTION_EXCLUDE.
4886
4887 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
4888
4889 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
4890 match_operand expression.
4891
4892 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
4893 David Edelsohn <dje.gcc@gmail.com>
4894
4895 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
4896 function.
4897 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
4898
4899 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
4900
4901 * doc/invoke.texi (Options to Request or Suppress Warnings):
4902 Explain options precedence.
4903 (Wtrampolines): Do not indent paragraph.
4904
4905 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
4906
4907 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
4908 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
4909 (pa_jump_in_call_delay): Likewise.
4910 * config/pa/pa.c (pa_option_override): Remove jump in call delay
4911 override.
4912 (pa_output_millicode_call): Remove support for jump in call delay.
4913 (pa_output_call): Likewise.
4914 (pa_jump_in_call_delay): Delete.
4915 (pa_following_call): Likewise.
4916 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
4917 (uncond_branch): Remove following call check from attribute length.
4918
4919 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
4920
4921 PR target/53513
4922 * config/sh/sh-modes.def (PSI): Remove.
4923 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
4924 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
4925 (sh_reorg): Remove commented out FPSCR code.
4926 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
4927 insn instead of move insn.
4928 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
4929 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
4930 handling.
4931 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
4932 (sh1_builtin_p): Uncomment.
4933 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
4934 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
4935 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
4936 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
4937 (general_movsrc_operand, general_movdst_operand): Disallow
4938 fpscr_operand.
4939 * config/sh/sh.md (FPSCR_FR): New constant.
4940 (push_fpscr): Emit sts_fpscr insn.
4941 (pop_fpscr): Emit lds_fpscr_insn.
4942 (movsi_ie): Disallow FPSCR operands.
4943 (fpu_switch, unnamed related split, extend_psi_si,
4944 truncate_si_psi): Remove insns.
4945 (lds_fpscr, sts_fpscr): New insns.
4946 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
4947
4948 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
4949
4950 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
4951 (clone_inlined_nodes): Do not overwrite the clone if above predicate
4952 returns true.
4953
4954 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
4955
4956 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
4957 (expand_vec_perm_d): Ditto.
4958 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
4959 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
4960 V4DFmode.
4961 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
4962 (ix86_expand_sse_unpack): Handle V64QImode.
4963 (expand_vec_perm_blend): Update conditions for TARGET, handle
4964 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
4965 (expand_vec_perm_pshufb): Handle V64QImode.
4966 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
4967 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
4968 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
4969 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
4970 (ix86_expand_vecop_qihi): Handle V64QImode.
4971 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
4972 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
4973 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
4974 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
4975 (mul<mode>3): Use VI1_AVX512.
4976 (<sse2_avx2>_packsswb): Ditto.
4977 (<sse2_avx2>_packuswb): Ditto.
4978 (<ssse3_avx2>_pshufb<mode>3): Ditto.
4979 (<shift_insn><mode>3): Ditto.
4980
4981 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
4982
4983 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
4984 conditions to fix bootstrap.
4985
4986 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
4987
4988 gcc-plugin.h: Add tm.h and flattened includes from function.h.
4989
4990 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
4991 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4992 Anna Tikhonova <anna.tikhonova@intel.com>
4993 Ilya Tocar <ilya.tocar@intel.com>
4994 Andrey Turetskiy <andrey.turetskiy@intel.com>
4995 Ilya Verbin <ilya.verbin@intel.com>
4996 Kirill Yukhin <kirill.yukhin@intel.com>
4997 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4998
4999 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
5000 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
5001 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
5002 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
5003 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
5004 (define_expand "vec_init<mode>"): Use VF48_I1248.
5005
5006 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
5007 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5008 Anna Tikhonova <anna.tikhonova@intel.com>
5009 Ilya Tocar <ilya.tocar@intel.com>
5010 Andrey Turetskiy <andrey.turetskiy@intel.com>
5011 Ilya Verbin <ilya.verbin@intel.com>
5012 Kirill Yukhin <kirill.yukhin@intel.com>
5013 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5014
5015 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
5016 expand_sse2_mulvxdi3.
5017
5018 2014-10-17 Richard Biener <rguenther@suse.de>
5019
5020 * fold-const.c (fold_comparison): Remove redundant constant
5021 folding and operand swapping.
5022 (fold_binary_loc): Do comparison operand swapping here.
5023 (fold_ternary_loc): Canonicalize operand order for
5024 commutative ternary operations.
5025 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
5026 and FMA_EXPR.
5027
5028 2014-10-17 Jakub Jelinek <jakub@redhat.com>
5029
5030 PR tree-optimization/63464
5031 * gimple.h (gimple_seq_discard): New prototype.
5032 * gimple.c: Include stringpool.h and tree-ssanames.h.
5033 (gimple_seq_discard): New function.
5034 * optabs.h (lshift_cheap_p): New prototype.
5035 * optabs.c (lshift_cheap_p): New function, moved from...
5036 * tree-switch-conversion.c (lshift_cheap_p): ... here.
5037 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
5038 (reassoc_branch_fixups): New variable.
5039 (update_range_test): Add otherrangep and seq arguments.
5040 Unshare exp. If otherrange is NULL, use for other ranges
5041 array of pointers pointed by otherrangep instead.
5042 Emit seq before gimplified statements for tem.
5043 (optimize_range_tests_diff): Adjust update_range_test
5044 caller.
5045 (optimize_range_tests_xor): Likewise. Fix up comment.
5046 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
5047 functions.
5048 (optimize_range_tests): Adjust update_range_test caller.
5049 Call optimize_range_tests_to_bit_test.
5050 (branch_fixup): New function.
5051 (execute_reassoc): Call branch_fixup.
5052
5053 PR tree-optimization/63302
5054 * tree-ssa-reassoc.c (optimize_range_tests_xor,
5055 optimize_range_tests_diff): Use !integer_pow2p () instead of
5056 tree_log2 () < 0.
5057
5058 2014-10-17 Martin Liska <mliska@suse.cz>
5059
5060 * ipa-icf.c (sem_function::merge): Local flags are set to false
5061 to enforce equal calling convention to be used.
5062 * opts.c (common_handle_option): Indentation fix.
5063
5064 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
5065
5066 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
5067
5068 2014-10-17 Tom de Vries <tom@codesourcery.com>
5069
5070 PR rtl-optimization/61605
5071 * regcprop.c (copyprop_hardreg_forward_1): Use
5072 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
5073
5074 2014-10-17 Tom de Vries <tom@codesourcery.com>
5075
5076 PR rtl-optimization/61605
5077 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p. Don't
5078 notice stores for noops. Don't regard noops as copies.
5079
5080 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
5081
5082 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
5083 register in a special way.
5084 (__cpuid_count): Ditto.
5085 * config/i386/driver-i386.h: Protect with
5086 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
5087 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
5088 is required to compile the function.
5089
5090 2014-10-16 DJ Delorie <dj@redhat.com>
5091
5092 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
5093 integers.
5094
5095 * config/rs6000/rs6000-c.c (rid_int128): New.
5096 (rs6000_macro_to_expand): Use instead of RID_INT128.
5097
5098 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
5099
5100 * function.h: Flatten file. Remove includes, adjust prototypes to
5101 reflect only what is in function.h.
5102 (enum direction, struct args_size, struct locate_and_pad_arg_data,
5103 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
5104 from expr.h.
5105 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
5106 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
5107 prototypes to predict.h.
5108 (init_varasm_status): Move prototype to varasm.h.
5109 * expr.h: Adjust include files.
5110 (enum direction, struct args_size, struct locate_and_pad_arg_data,
5111 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
5112 to function.h.
5113 (locate_and_pad_parm): Move prototype to function.h.
5114 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
5115 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
5116 assign_temp, reposition_prologue_and_epilogue_notes,
5117 prologue_epilogue_contains, sibcall_epilogue_contains,
5118 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
5119 set_return_jump_label): Move prototypes to function.h.
5120 * predict.h (optimize_function_for_size_p,
5121 optimize_function_for_speed_p): Relocate prototypes from function.h.
5122 * shrink-wrap.h (emit_return_into_block, active_insn_between,
5123 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
5124 function.h.
5125 * varasm.h (init_varasm_status): Relocate prototype from function.h.
5126 * genattrtab.c (write_header): Add predict.h to include list.
5127 * genconditions.c (write_header): Add predict.h to include list.
5128 * genemit.c (main): Adjust header file includes.
5129 * gengtype.c (ifiles): Add flattened function.h header files.
5130 * genoutput.c (output_prologue): Add predict.h to include list.
5131 * genpreds.c (write_insn_preds_c): Adjust header file includes.
5132 * genrecog.c (write_header): Add flattened function.h header files.
5133 * alias.c: Adjust include files.
5134 * auto-inc-dec.c: Likewise.
5135 * basic-block.h: Likewise.
5136 * bb-reorder.c: Likewise.
5137 * bt-load.c: Likewise.
5138 * builtins.c: Likewise.
5139 * caller-save.c: Likewise.
5140 * calls.c: Likewise.
5141 * cfgbuild.c: Likewise.
5142 * cfgcleanup.c: Likewise.
5143 * cfgexpand.c: Likewise.
5144 * cfgloop.c: Likewise.
5145 * cfgloop.h: Likewise.
5146 * cfgrtl.c: Likewise.
5147 * cgraph.h: Likewise.
5148 * cgraphclones.c: Likewise.
5149 * cgraphunit.c: Likewise.
5150 * combine-stack-adj.c: Likewise.
5151 * combine.c: Likewise.
5152 * coverage.c: Likewise.
5153 * cprop.c: Likewise.
5154 * cse.c: Likewise.
5155 * cselib.c: Likewise.
5156 * dbxout.c: Likewise.
5157 * ddg.c: Likewise.
5158 * df-core.c: Likewise.
5159 * df-problems.c: Likewise.
5160 * df-scan.c: Likewise.
5161 * dojump.c: Likewise.
5162 * dwarf2cfi.c: Likewise.
5163 * dwarf2out.c: Likewise.
5164 * emit-rtl.c: Likewise.
5165 * except.c: Likewise.
5166 * explow.c: Likewise.
5167 * expr.c: Likewise.
5168 * final.c: Likewise.
5169 * function.c: Likewise.
5170 * gcse.c: Likewise.
5171 * gimple-fold.c: Likewise.
5172 * gimple-low.c: Likewise.
5173 * gimple-streamer.h: Likewise.
5174 * haifa-sched.c: Likewise.
5175 * ifcvt.c: Likewise.
5176 * ira.c: Likewise.
5177 * jump.c: Likewise.
5178 * lcm.c: Likewise.
5179 * loop-invariant.c: Likewise.
5180 * lra-assigns.c: Likewise.
5181 * lra-coalesce.c: Likewise.
5182 * lra-constraints.c: Likewise.
5183 * lra-eliminations.c: Likewise.
5184 * lra-lives.c: Likewise.
5185 * lra-spills.c: Likewise.
5186 * lra.c: Likewise.
5187 * lto-cgraph.c: Likewise.
5188 * lto-section-in.c: Likewise.
5189 * lto-section-out.c: Likewise.
5190 * lto-streamer-in.c: Likewise.
5191 * lto-streamer-out.c: Likewise.
5192 * mode-switching.c: Likewise.
5193 * modulo-sched.c: Likewise.
5194 * omp-low.c: Likewise.
5195 * optabs.c: Likewise.
5196 * passes.c: Likewise.
5197 * postreload-gcse.c: Likewise.
5198 * postreload.c: Likewise.
5199 * predict.c: Likewise.
5200 * profile.c: Likewise.
5201 * recog.c: Likewise.
5202 * ree.c: Likewise.
5203 * reg-stack.c: Likewise.
5204 * regcprop.c: Likewise.
5205 * reginfo.c: Likewise.
5206 * regrename.c: Likewise.
5207 * reload.c: Likewise.
5208 * reload1.c: Likewise.
5209 * reorg.c: Likewise.
5210 * resource.c: Likewise.
5211 * rtlanal.c: Likewise.
5212 * sched-deps.c: Likewise.
5213 * sched-ebb.c: Likewise.
5214 * sched-rgn.c: Likewise.
5215 * sel-sched-dump.c: Likewise.
5216 * sel-sched-ir.c: Likewise.
5217 * sel-sched.c: Likewise.
5218 * shrink-wrap.c: Likewise.
5219 * simplify-rtx.c: Likewise.
5220 * statistics.c: Likewise.
5221 * stmt.c: Likewise.
5222 * stor-layout.c: Likewise.
5223 * store-motion.c: Likewise.
5224 * symtab.c: Likewise.
5225 * targhooks.c: Likewise.
5226 * toplev.c: Likewise.
5227 * trans-mem.c: Likewise.
5228 * tree-cfg.c: Likewise.
5229 * tree-cfgcleanup.c: Likewise.
5230 * tree-dfa.c: Likewise.
5231 * tree-eh.c: Likewise.
5232 * tree-inline.c: Likewise.
5233 * tree-into-ssa.c: Likewise.
5234 * tree-nested.c: Likewise.
5235 * tree-nrv.c: Likewise.
5236 * tree-profile.c: Likewise.
5237 * tree-ssa-alias.c: Likewise.
5238 * tree-ssa-ccp.c: Likewise.
5239 * tree-ssa-copy.c: Likewise.
5240 * tree-ssa-copyrename.c: Likewise.
5241 * tree-ssa-dom.c: Likewise.
5242 * tree-ssa-operands.c: Likewise.
5243 * tree-ssa-propagate.c: Likewise.
5244 * tree-ssa-structalias.c: Likewise.
5245 * tree-ssa-tail-merge.c: Likewise.
5246 * tree-ssa-threadedge.c: Likewise.
5247 * tree-ssa-threadupdate.c: Likewise.
5248 * tree-ssa-uncprop.c: Likewise.
5249 * tree-ssa-uninit.c: Likewise.
5250 * tree-ssa.c: Likewise.
5251 * tree-stdarg.c: Likewise.
5252 * tree-tailcall.c: Likewise.
5253 * tree.c: Likewise.
5254 * tsan.c: Likewise.
5255 * valtrack.c: Likewise.
5256 * varasm.c: Likewise.
5257 * vmsdbgout.c: Likewise.
5258 * web.c: Likewise.
5259 * config/aarch64/aarch64.c: Add flattened includes from function.h.
5260 * config/alpha/alpha.c: Likewise.
5261 * config/arc/arc.c: Likewise.
5262 * config/arm/arm.c: Likewise.
5263 * config/avr/avr-log.c: Likewise.
5264 * config/avr/avr.c: Likewise.
5265 * config/bfin/bfin.c: Likewise.
5266 * config/c6x/c6x.c: Likewise.
5267 * config/cr16/cr16.c: Likewise.
5268 * config/cris/cris.c: Likewise.
5269 * config/darwin.c: Likewise.
5270 * config/epiphany/epiphany.c: Likewise.
5271 * config/epiphany/mode-switch-use.c: Likewise.
5272 * config/epiphany/resolve-sw-modes.c: Likewise.
5273 * config/fr30/fr30.c: Likewise.
5274 * config/frv/frv.c: Likewise.
5275 * config/h8300/h8300.c: Likewise.
5276 * config/i386/i386.c: Likewise.
5277 * config/ia64/ia64.c: Likewise.
5278 * config/iq2000/iq2000.c: Likewise.
5279 * config/lm32/lm32.c: Likewise.
5280 * config/m32c/m32c.c: Likewise.
5281 * config/m32r/m32r.c: Likewise.
5282 * config/m68k/m68k.c: Likewise.
5283 * config/mcore/mcore.c: Likewise.
5284 * config/mep/mep-pragma.c: Likewise.
5285 * config/mep/mep.c: Likewise.
5286 * config/microblaze/microblaze.c: Likewise.
5287 * config/mips/mips.c: Likewise.
5288 * config/mmix/mmix.c: Likewise.
5289 * config/mn10300/mn10300.c: Likewise.
5290 * config/moxie/moxie.c: Likewise.
5291 * config/msp430/msp430.c: Likewise.
5292 * config/nds32/nds32-cost.c: Likewise.
5293 * config/nds32/nds32-fp-as-gp.c: Likewise.
5294 * config/nds32/nds32-intrinsic.c: Likewise.
5295 * config/nds32/nds32-isr.c: Likewise.
5296 * config/nds32/nds32-md-auxiliary.c: Likewise.
5297 * config/nds32/nds32-memory-manipulation.c: Likewise.
5298 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5299 * config/nds32/nds32-predicates.c: Likewise.
5300 * config/nds32/nds32.c: Likewise.
5301 * config/nios2/nios2.c: Likewise.
5302 * config/pa/pa.c: Likewise.
5303 * config/pdp11/pdp11.c: Likewise.
5304 * config/rl78/rl78.c: Likewise.
5305 * config/rs6000/rs6000.c: Likewise.
5306 * config/rx/rx.c: Likewise.
5307 * config/s390/s390.c: Likewise.
5308 * config/score/score.c: Likewise.
5309 * config/sh/sh.c: Likewise.
5310 * config/sparc/sparc.c: Likewise.
5311 * config/spu/spu.c: Likewise.
5312 * config/stormy16/stormy16.c: Likewise.
5313 * config/tilegx/tilegx.c: Likewise.
5314 * config/tilepro/tilepro.c: Likewise.
5315 * config/v850/v850.c: Likewise.
5316 * config/vax/vax.c: Likewise.
5317 * config/xtensa/xtensa.c: Likewise.
5318
5319 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
5320
5321 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
5322 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
5323
5324 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
5325
5326 * config/sh/sh-protos.h (fldi_ok): Remove.
5327 * config/sh/sh.c (fldi_ok): Likewise.
5328 (sh_secondary_reload): Don't use fldi_ok.
5329 * config/sh/constraints.md (G constraint, H constraint): Don't use
5330 fldi_ok.
5331
5332 2014-10-16 Martin Liska <mliska@suse.cz>
5333
5334 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
5335 Cast to unsigned long.
5336 (sem_item_optimizer::dump_cong_classes): Likewise.
5337
5338 2014-10-16 Tom de Vries <tom@codesourcery.com>
5339
5340 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
5341 with SSA_NAME_IN_FREELIST.
5342
5343 2014-10-16 Richard Biener <rguenther@suse.de>
5344
5345 PR middle-end/63554
5346 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
5347 (fold_builtin_strncat_chk): Move ...
5348 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
5349 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
5350
5351 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
5352
5353 PR target/59401
5354 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
5355 GBR to 0.
5356
5357 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
5358 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5359 Anna Tikhonova <anna.tikhonova@intel.com>
5360 Ilya Tocar <ilya.tocar@intel.com>
5361 Andrey Turetskiy <andrey.turetskiy@intel.com>
5362 Ilya Verbin <ilya.verbin@intel.com>
5363 Kirill Yukhin <kirill.yukhin@intel.com>
5364 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5365
5366 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
5367 V64QI modes.
5368
5369 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
5370 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5371 Anna Tikhonova <anna.tikhonova@intel.com>
5372 Ilya Tocar <ilya.tocar@intel.com>
5373 Andrey Turetskiy <andrey.turetskiy@intel.com>
5374 Ilya Verbin <ilya.verbin@intel.com>
5375 Kirill Yukhin <kirill.yukhin@intel.com>
5376 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5377
5378 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
5379 V16SI, V32HI, V64QI modes.
5380
5381 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
5382
5383 PR target/53513
5384 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
5385 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
5386
5387 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
5388 to match fp insn patterns.
5389 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
5390 list.
5391 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
5392 expand_df_unop, expand_df_binop): Remove.
5393 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
5394 FPSCR_STAT_REG as not call clobbered.
5395 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
5396 invoking fpscr_set_from_mem.
5397
5398 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
5399 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
5400 FPSCR_STAT_REG.
5401 (REGISTER_NAMES): Adjust.
5402 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
5403 (FIRST_PSEUDO_REGISTER): Increase to 156.
5404 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
5405 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
5406 FPSCR_STAT_REG.
5407 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
5408 FPSCR_MODES_REG and FPSCR_STAT_REG.
5409 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
5410
5411 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
5412 FPSCR_SZ): Add new constants.
5413 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
5414
5415 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
5416 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
5417 Use TARGET_FPU_ANY condition.
5418 (fpu_switch peephole2): Remove.
5419 (fpu_switch split): Use simple_mem_operand to capture the mem and
5420 adjust split implementation.
5421 (extend_psi_si, truncate_si_psi): New insns.
5422 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
5423 set of FPSCR_MODES_REG.
5424
5425 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
5426 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
5427 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
5428 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
5429 call_value_compact, call_value_compact_rettramp, call,
5430 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
5431 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
5432 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
5433 sibcall_value_compact, sibcall_value, call_value_pop_compact,
5434 call_value_pop_compact_rettramp, various unnamed splits):
5435 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
5436 function uses.
5437
5438 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
5439 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
5440 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
5441 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
5442 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
5443
5444 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
5445 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
5446 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
5447 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
5448 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
5449 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
5450 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
5451
5452 2014-10-16 Martin Liska <mliska@suse.cz>
5453 Jan Hubicka <hubicka@ucw.cz>
5454
5455 * Makefile.in: New object files included.
5456 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
5457 is printed.
5458 (verify_edge_corresponds_to_fndecl): More sensitive verification
5459 of nodes that are merged by IPA ICF.
5460 * cgraph.h (cgraph_node::num_references): New function.
5461 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
5462 * common.opt: New options ipa-icf, ipa-icf-functions and
5463 ipa-icf-variables introduced.
5464 * doc/invoke.texi: Documentation of new options introduced.
5465 * ipa-icf-gimple.c: New file.
5466 * ipa-icf-gimple.h: New file.
5467 * ipa-icf.c: New file.
5468 * ipa-icf.h: New file.
5469 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
5470 (input_overwrite_node): Likewise.
5471 * lto-section-in.c: New icf section added.
5472 * lto-streamer.h (enum lto_section_type): Likewise.
5473 * opts.c (common_handle_option): New option added.
5474 * passes.def: New pass included.
5475 * timevar.def: Time variable for IPA ICF added.
5476 * tree-pass.h: New IPA ICF pass entry point added.
5477
5478 2014-10-16 Richard Biener <rguenther@suse.de>
5479
5480 PR tree-optimization/63168
5481 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
5482 latches if after merging they are no longer simple.
5483 * cfghooks.c (merge_blocks): Handle merging a latch block
5484 into another block.
5485
5486 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
5487 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5488 Anna Tikhonova <anna.tikhonova@intel.com>
5489 Ilya Tocar <ilya.tocar@intel.com>
5490 Andrey Turetskiy <andrey.turetskiy@intel.com>
5491 Ilya Verbin <ilya.verbin@intel.com>
5492 Kirill Yukhin <kirill.yukhin@intel.com>
5493 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5494
5495 * config/i386/sse.md
5496 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
5497 support AVX-512VL instructions.
5498
5499 2014-10-16 DJ Delorie <dj@redhat.com>
5500
5501 * tree-core.h: Fix comment to not assume pointers are multiples of
5502 bytes.
5503
5504 2014-10-15 Tom Tromey <tromey@redhat.com>
5505
5506 * timevar.h (class auto_timevar): New class.
5507
5508 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
5509
5510 PR go/59432
5511 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
5512 Remove the second alternative.
5513 (regprefix): Remove mode attribute.
5514 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
5515 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
5516
5517 Revert:
5518 2013-11-05 Ian Lance Taylor <iant@google.com>
5519
5520 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
5521 If possible, add .cfi directives to record change to bx.
5522 * config/i386/i386.c (ix86_emit_cfi): New function.
5523 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
5524
5525 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
5526
5527 PR lto/62026
5528 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
5529 to duplicate.
5530 * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
5531 at WPA time.
5532
5533 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
5534
5535 PR rtl-optimization/63448
5536 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
5537 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
5538 (LRA_MAX_INHERITANCE_PASSES): Use it.
5539 (lra_constraint_iter_after_spill): Remove.
5540 (lra_assignment_iter): New.
5541 (lra_assignment_iter_after_spill): New.
5542 * lra-assigns.c (lra_assignment_iter): New.
5543 (lra_assignment_iter_after_spill): New.
5544 (former_reload_pseudo_spill_p): New.
5545 (spill_for): Set up former_reload_pseudo_spill_p.
5546 (setup_live_pseudos_and_spill_after_risky): Ditto.
5547 (assign_by_spills): Ditto.
5548 (lra_assign): Increment lra_assignment_iter. Print the iteration
5549 number. Reset former_reload_pseudo_spill_p. Check
5550 lra_assignment_iter_after_spill.
5551 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
5552 lra_assignment_iter and lra_assignment_iter_after_spill.
5553 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
5554 (lra_constraints): Remove code with
5555 lra_assignment_iter_after_spill.
5556
5557 2014-10-15 Teresa Johnson <tejohnson@google.com>
5558
5559 PR bootstrap/63432
5560 * tree-ssa-threadupdate.c (recompute_probabilities): Better
5561 overflow checking.
5562
5563 2014-10-15 Renlin Li <renlin.li@arm.com>
5564
5565 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
5566 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
5567 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
5568 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
5569
5570 2014-10-15 Richard Biener <rguenther@suse.de>
5571
5572 * gimple-fold.c (gimple_fold_call): Properly keep virtual
5573 SSA form up-to-date when devirtualizing a call to
5574 __builtin_unreachable and avoid fixing up EH info here.
5575
5576 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
5577 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5578 Anna Tikhonova <anna.tikhonova@intel.com>
5579 Ilya Tocar <ilya.tocar@intel.com>
5580 Andrey Turetskiy <andrey.turetskiy@intel.com>
5581 Ilya Verbin <ilya.verbin@intel.com>
5582 Kirill Yukhin <kirill.yukhin@intel.com>
5583 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5584
5585 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
5586 to support AVX-512BW.
5587 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
5588 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
5589 (define_insn "*<plusminus_insn><mode>3"): Ditto.
5590 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
5591 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
5592 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
5593 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
5594 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
5595 (define_insn "*andnot<mode>3"): Ditto.
5596 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
5597 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
5598 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
5599 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
5600 (define_insn "*abs<mode>2"): Remove masking support.
5601 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
5602 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
5603 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
5604
5605 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
5606 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5607 Anna Tikhonova <anna.tikhonova@intel.com>
5608 Ilya Tocar <ilya.tocar@intel.com>
5609 Andrey Turetskiy <andrey.turetskiy@intel.com>
5610 Ilya Verbin <ilya.verbin@intel.com>
5611 Kirill Yukhin <kirill.yukhin@intel.com>
5612 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5613
5614 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
5615 * config/i386/sse.md
5616 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
5617 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
5618 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
5619 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
5620 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
5621 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
5622 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
5623
5624 2014-10-15 Renlin Li <renlin.li@arm.com>
5625
5626 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
5627
5628 2014-10-15 Jakub Jelinek <jakub@redhat.com>
5629
5630 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
5631 MINUS_EXPR in unsigned type to avoid undefined behavior.
5632
5633 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
5634
5635 * stor-layout.c (self_referential_size): Do not promote arguments.
5636
5637 2014-10-15 Marek Polacek <polacek@redhat.com>
5638
5639 * doc/invoke.texi: Update to reflect that GNU11 is the default
5640 mode for C.
5641 * c-common.h (c_language_kind): Update comment.
5642
5643 2014-10-15 Richard Biener <rguenther@suse.de>
5644
5645 * hash-table.c: Include bconfig.h if building for the host.
5646 * hash-table.h: Do not include ggc.h on the host but just declare
5647 a few ggc allocation templates.
5648
5649 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
5650 Jeff Law <law@redhat.com>
5651
5652 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
5653 multiple hard registers, use smaller mode derived from MODE.
5654
5655 2014-10-15 Andreas Schwab <schwab@suse.de>
5656
5657 * explow.c (convert_memory_address_addr_space_1): Mark in_const
5658 as ATTRIBUTE_UNUSED.
5659
5660 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
5661
5662 * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
5663 (decide_unrolling): ... this one.
5664 (peel_loops_completely): Remove.
5665 (decide_peel_simple): Remove.
5666 (decide_peel_once_rolling): Remove.
5667 (decide_peel_completely): Remove.
5668 (peel_loop_simple): Remove.
5669 (peel_loop_completely): Remove.
5670 (unroll_and_peel_loops): Rename to ...
5671 (unroll_loops): ... this one; handle only unrolling.
5672 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
5673 LPT_PEEL_SIMPLE.
5674 (UAP_PEEL): Remove.
5675 (unroll_and_peel_loops): Remove.
5676 (unroll_loops): New.
5677 * passes.def: Replace
5678 pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
5679 * loop-init.c (gate_rtl_unroll_and_peel_loops,
5680 rtl_unroll_and_peel_loops): Rename to ...
5681 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
5682 (pass_rtl_unroll_and_peel_loops): Rename to ...
5683 (pass_rtl_unroll_loops): ... this one.
5684 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
5685 (make_pass_rtl_unroll_loops): New.
5686 * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
5687 (canonicalize_loop_induction_variables): Update.
5688
5689 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
5690
5691 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
5692 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
5693 !TARGET_HARD_FLOAT_POSTINC.
5694 (*lsip, *ssip): new instructions.
5695
5696 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
5697
5698 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
5699 remove.
5700
5701 2014-10-14 Andrew Pinski <apinski@cavium.com>
5702
5703 * explow.c (convert_memory_address_addr_space): Rename to ...
5704 (convert_memory_address_addr_space_1): This. Add in_const argument.
5705 Inside a CONST RTL, permute the conversion and addition of constant
5706 for zero and sign extended pointers.
5707 (convert_memory_address_addr_space): New function.
5708
5709 2014-10-14 Andrew Pinski <apinski@cavium.com>
5710
5711 Revert:
5712 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
5713
5714 PR middle-end/49721
5715 * explow.c (convert_memory_address_addr_space): Also permute the
5716 conversion and addition of constant for zero-extend.
5717
5718 2014-10-14 DJ Delorie <dj@redhat.com>
5719
5720 * config/msp430/msp430-modes.def (PSI): Add.
5721
5722 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
5723 (msp430_hard_regno_nregs_with_padding): New.
5724 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
5725 (msp430_hard_regno_nregs_has_padding): New.
5726 (msp430_hard_regno_nregs_with_padding): New.
5727 (msp430_unwind_word_mode): Use PSImode instead of SImode.
5728 (msp430_addr_space_legitimate_address_p): New.
5729 (msp430_asm_integer): New.
5730 (msp430_init_dwarf_reg_sizes_extra): New.
5731 (msp430_print_operand): Use X suffix for PSImode even in small model.
5732 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
5733 (PTR_SIZE): ...but 4 bytes for EH.
5734 (SIZE_TYPE): Use __int20.
5735 (PTRDIFF_TYPE): Likewise.
5736 (INCOMING_FRAME_SP_OFFSET): Adjust.
5737 * config/msp430/msp430.md (movqi_topbyte): New.
5738 (movpsi): Use fixed suffixes.
5739 (movsipsi2): Enable for 430X, not large model.
5740 (extendhipsi2): Likewise.
5741 (zero_extendhisi2): Likewise.
5742 (zero_extendhisipsi2): Likewise.
5743 (extend_and_shift1_hipsi2): Likewise.
5744 (extendpsisi2): Likewise.
5745 (*bitbranch<mode>4_z): Fix suffix logic.
5746
5747 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
5748
5749 PR ada/62019
5750 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
5751 do not choke on null node.
5752 <VAR_DECL>: Likewise.
5753
5754 2014-10-14 DJ Delorie <dj@redhat.com>
5755
5756 * machmode.h (int_n_data_t): New.
5757 (int_n_enabled_p): New.
5758 (int_n_data): New.
5759 * tree.c (int_n_enabled_p): New.
5760 (int_n_trees): New.
5761 (make_or_reuse_type): Check for all __intN types, not just
5762 __int128.
5763 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
5764 entries.
5765 * tree.h (int128_integer_type_node): Remove.
5766 (int128_unsigned_type_node): Remove.
5767 (int_n_trees_t): New.
5768 (int_n_enabled_p): New.
5769 (int_n_trees): New.
5770 * toplev.c (standard_type_bitsize): New.
5771 (do_compile): Check which __intN types are enabled for the current
5772 run.
5773 * builtin-types.def (BT_INT128): Remove.
5774 (BT_UINT128): Remove.
5775 * machmode.def: Add macro to create __int128 for all targets.
5776 * stor-layout.c (mode_for_size): Support __intN types.
5777 (smallest_mode_for_size): Likewise.
5778 (initialize_sizetypes): Support __intN types.
5779 * genmodes.c (struct mode_data): Add int_n field.
5780 (blank_mode): Likewise.
5781 (INT_N): New.
5782 (make_int_n): New.
5783 (emit_insn_modes_h): Count __intN entries and define
5784 NUM_INT_N_ENTS.
5785 (emit_mode_int_n): New.
5786 (emit_insn_modes_c): Call it.
5787 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
5788 types, not just __int128.
5789 * tree-core.h (integer_type_kind): Remove __int128-specific
5790 entries, reserve spots for __intN entries.
5791
5792 * config/msp430/msp430-modes.def (PSI): Add.
5793
5794 2014-10-14 Kito Cheng <kito@0xlab.org>
5795
5796 * ira.c: Fix typo in comment.
5797 * ira.h: Ditto.
5798 * ira-build.c: Ditto.
5799 * ira-color.c: Ditto.
5800 * ira-emit.c: Ditto.
5801 * ira-int.h: Ditto.
5802 * ira-lives.c: Ditto.
5803
5804 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
5805
5806 PR rtl-optimization/63475
5807 * alias.c (true_dependence_1): Always use get_addr to extract
5808 true address operands from x_addr and mem_addr. Use extracted
5809 address operands to check for references with alignment ANDs.
5810 Use extracted address operands with find_base_term and
5811 base_alias_check. For noncanonicalized operands call canon_rtx with
5812 extracted address operand.
5813 (write_dependence_1): Ditto.
5814 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
5815
5816 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
5817
5818 PR target/63534
5819 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
5820 __morestack local.
5821
5822 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5823 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5824 Anna Tikhonova <anna.tikhonova@intel.com>
5825 Ilya Tocar <ilya.tocar@intel.com>
5826 Andrey Turetskiy <andrey.turetskiy@intel.com>
5827 Ilya Verbin <ilya.verbin@intel.com>
5828 Kirill Yukhin <kirill.yukhin@intel.com>
5829 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5830
5831 * config/i386/i386.c
5832 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
5833 (ix86_expand_int_vcond): Ditto.
5834
5835 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5836 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5837 Anna Tikhonova <anna.tikhonova@intel.com>
5838 Ilya Tocar <ilya.tocar@intel.com>
5839 Andrey Turetskiy <andrey.turetskiy@intel.com>
5840 Ilya Verbin <ilya.verbin@intel.com>
5841 Kirill Yukhin <kirill.yukhin@intel.com>
5842 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5843
5844 * config/i386/i386.c
5845 (emit_reduc_half): Handle V64QI and V32HI mode.
5846 * config/i386/sse.md
5847 (define_mode_iterator VI_AVX512BW): New.
5848 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
5849
5850 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5851 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5852 Anna Tikhonova <anna.tikhonova@intel.com>
5853 Ilya Tocar <ilya.tocar@intel.com>
5854 Andrey Turetskiy <andrey.turetskiy@intel.com>
5855 Ilya Verbin <ilya.verbin@intel.com>
5856 Kirill Yukhin <kirill.yukhin@intel.com>
5857 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5858
5859 * config/i386/sse.md
5860 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
5861
5862 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5863 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5864 Anna Tikhonova <anna.tikhonova@intel.com>
5865 Ilya Tocar <ilya.tocar@intel.com>
5866 Andrey Turetskiy <andrey.turetskiy@intel.com>
5867 Ilya Verbin <ilya.verbin@intel.com>
5868 Kirill Yukhin <kirill.yukhin@intel.com>
5869 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5870
5871 * config/i386/i386.c
5872 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
5873 * config/i386/sse.md
5874 (define_mode_iterator VI): Add V64QI and V32HI modes.
5875
5876 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5877 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5878 Anna Tikhonova <anna.tikhonova@intel.com>
5879 Ilya Tocar <ilya.tocar@intel.com>
5880 Andrey Turetskiy <andrey.turetskiy@intel.com>
5881 Ilya Verbin <ilya.verbin@intel.com>
5882 Kirill Yukhin <kirill.yukhin@intel.com>
5883 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5884
5885 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
5886
5887 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5888 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5889 Anna Tikhonova <anna.tikhonova@intel.com>
5890 Ilya Tocar <ilya.tocar@intel.com>
5891 Andrey Turetskiy <andrey.turetskiy@intel.com>
5892 Ilya Verbin <ilya.verbin@intel.com>
5893 Kirill Yukhin <kirill.yukhin@intel.com>
5894 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5895
5896 * config/i386/sse.md
5897 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
5898 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
5899
5900 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5901 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5902 Anna Tikhonova <anna.tikhonova@intel.com>
5903 Ilya Tocar <ilya.tocar@intel.com>
5904 Andrey Turetskiy <andrey.turetskiy@intel.com>
5905 Ilya Verbin <ilya.verbin@intel.com>
5906 Kirill Yukhin <kirill.yukhin@intel.com>
5907 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5908
5909 * config/i386/sse.md
5910 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
5911 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
5912
5913 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5914 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5915 Anna Tikhonova <anna.tikhonova@intel.com>
5916 Ilya Tocar <ilya.tocar@intel.com>
5917 Andrey Turetskiy <andrey.turetskiy@intel.com>
5918 Ilya Verbin <ilya.verbin@intel.com>
5919 Kirill Yukhin <kirill.yukhin@intel.com>
5920 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5921
5922 * config/i386/sse.md
5923 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
5924 (define_mode_iterator VI2_AVX2): Add V32HI mode.
5925 (define_expand "mul<mode>3<mask_name>"): Add masking.
5926 (define_insn "*mul<mode>3<mask_name>"): Ditto.
5927 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
5928 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
5929 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
5930 (define_mode_attr SDOT_PMADD_SUF): Ditto.
5931 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
5932 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
5933 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
5934 (define_insn "avx2_packusdw"): Delete.
5935 (define_insn "sse4_1_packusdw"): Ditto.
5936 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
5937
5938 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5939 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5940 Anna Tikhonova <anna.tikhonova@intel.com>
5941 Ilya Tocar <ilya.tocar@intel.com>
5942 Andrey Turetskiy <andrey.turetskiy@intel.com>
5943 Ilya Verbin <ilya.verbin@intel.com>
5944 Kirill Yukhin <kirill.yukhin@intel.com>
5945 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5946
5947 * config/i386/sse.md
5948 (define_insn "vec_dup<mode>"): Update constraints.
5949
5950 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5951 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5952 Anna Tikhonova <anna.tikhonova@intel.com>
5953 Ilya Tocar <ilya.tocar@intel.com>
5954 Andrey Turetskiy <andrey.turetskiy@intel.com>
5955 Ilya Verbin <ilya.verbin@intel.com>
5956 Kirill Yukhin <kirill.yukhin@intel.com>
5957 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5958
5959 * config/i386/sse.md
5960 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
5961 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
5962 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
5963
5964 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5965 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5966 Anna Tikhonova <anna.tikhonova@intel.com>
5967 Ilya Tocar <ilya.tocar@intel.com>
5968 Andrey Turetskiy <andrey.turetskiy@intel.com>
5969 Ilya Verbin <ilya.verbin@intel.com>
5970 Kirill Yukhin <kirill.yukhin@intel.com>
5971 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5972
5973 * config/i386/sse.md
5974 (define_expand "mul<mode>3<mask_name>"): Add masking.
5975
5976 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5977 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5978 Anna Tikhonova <anna.tikhonova@intel.com>
5979 Ilya Tocar <ilya.tocar@intel.com>
5980 Andrey Turetskiy <andrey.turetskiy@intel.com>
5981 Ilya Verbin <ilya.verbin@intel.com>
5982 Kirill Yukhin <kirill.yukhin@intel.com>
5983 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5984
5985 * config/i386/sse.md
5986 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
5987 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
5988
5989 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5990 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5991 Anna Tikhonova <anna.tikhonova@intel.com>
5992 Ilya Tocar <ilya.tocar@intel.com>
5993 Andrey Turetskiy <andrey.turetskiy@intel.com>
5994 Ilya Verbin <ilya.verbin@intel.com>
5995 Kirill Yukhin <kirill.yukhin@intel.com>
5996 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5997
5998 * config/i386/sse.md
5999 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
6000 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
6001 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
6002 Ditto.
6003
6004 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6005 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6006 Anna Tikhonova <anna.tikhonova@intel.com>
6007 Ilya Tocar <ilya.tocar@intel.com>
6008 Andrey Turetskiy <andrey.turetskiy@intel.com>
6009 Ilya Verbin <ilya.verbin@intel.com>
6010 Kirill Yukhin <kirill.yukhin@intel.com>
6011 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6012
6013 * config/i386/sse.md
6014 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
6015 use VF_128_256 mode iterator and update assembler emit code.
6016 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
6017 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
6018 Add masking, use VF_128_256 mode iterator.
6019 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
6020 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
6021 Add masking, use VF_128_256 mode iterator and update assembler emit
6022 code.
6023 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
6024 (define_mode_attr avx512flogicsuff): Delete.
6025 (define_insn "avx512f_<logic><mode>"): Ditto.
6026 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
6027 MODE_TI.
6028 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
6029
6030 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6031 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6032 Anna Tikhonova <anna.tikhonova@intel.com>
6033 Ilya Tocar <ilya.tocar@intel.com>
6034 Andrey Turetskiy <andrey.turetskiy@intel.com>
6035 Ilya Verbin <ilya.verbin@intel.com>
6036 Kirill Yukhin <kirill.yukhin@intel.com>
6037 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6038
6039 * config/i386/sse.md
6040 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
6041 (define_expand "vashr<mode>3<mask_name>"): Add masking,
6042 use VI12_128 mode iterator.
6043 (define_expand "ashrv2di3<mask_name>"): New.
6044
6045 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6046 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6047 Anna Tikhonova <anna.tikhonova@intel.com>
6048 Ilya Tocar <ilya.tocar@intel.com>
6049 Andrey Turetskiy <andrey.turetskiy@intel.com>
6050 Ilya Verbin <ilya.verbin@intel.com>
6051 Kirill Yukhin <kirill.yukhin@intel.com>
6052 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6053
6054 * config/i386/i386.c
6055 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
6056 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
6057 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
6058 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
6059 CODE_FOR_avx512vl_ucmpv4si3_mask.
6060 * config/i386/sse.md
6061 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
6062 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
6063 (define_insn
6064 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
6065 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
6066 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
6067 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
6068 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
6069 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
6070
6071 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6072 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6073 Anna Tikhonova <anna.tikhonova@intel.com>
6074 Ilya Tocar <ilya.tocar@intel.com>
6075 Andrey Turetskiy <andrey.turetskiy@intel.com>
6076 Ilya Verbin <ilya.verbin@intel.com>
6077 Kirill Yukhin <kirill.yukhin@intel.com>
6078 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6079
6080 * config/i386/sse.md
6081 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
6082 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
6083 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
6084 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
6085 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
6086 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
6087 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
6088 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
6089 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
6090
6091 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6092 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6093 Anna Tikhonova <anna.tikhonova@intel.com>
6094 Ilya Tocar <ilya.tocar@intel.com>
6095 Andrey Turetskiy <andrey.turetskiy@intel.com>
6096 Ilya Verbin <ilya.verbin@intel.com>
6097 Kirill Yukhin <kirill.yukhin@intel.com>
6098 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6099
6100 * config/i386/sse.md
6101 (define_insn "avx512f_blendm<mode>"): Delete.
6102 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
6103 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
6104 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
6105 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
6106 (define_insn
6107 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
6108 Remove.
6109 (define_insn
6110 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
6111 New.
6112 (define_insn
6113 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
6114 Ditto.
6115 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
6116 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
6117 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
6118 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
6119 Delete.
6120 (define_insn
6121 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
6122 New.
6123 (define_insn
6124 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
6125 Ditto.
6126 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
6127 Delete.
6128 (define_insn
6129 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
6130 New.
6131 (define_insn
6132 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
6133 Ditto.
6134
6135 2014-10-14 Richard Biener <rguenther@suse.de>
6136
6137 PR tree-optimization/63512
6138 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
6139 modified.
6140
6141 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
6142
6143 PR target/63260
6144 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
6145 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
6146 of FPSCR.
6147 (negsf2_i): Rename to *negsf2_i.
6148 (abssf2_i): Rename to *abssf2_i.
6149 (negdf2_i): Rename to *negdf2_i.
6150 (absdf2_i): Rename to *absdf2_i.
6151
6152 2014-10-14 Felix Yang <felix.yang@huawei.com>
6153 Jeff Law <law@redhat.com>
6154
6155 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
6156 "replace" into boolean bitfields; turn member "loop_depth" into a short
6157 integer; add new member "no_equiv" and "reserved".
6158 (no_equiv): Set no_equiv of struct equivalence if register is marked
6159 as having no known equivalence.
6160 (update_equiv_regs): Check all definitions for a multiple-set
6161 register to make sure that the RHS have the same value.
6162
6163 2014-10-13 Richard Henderson <rth@redhat.com>
6164
6165 * combine-stack-adj.c (no_unhandled_cfa): New.
6166 (maybe_merge_cfa_adjust): New.
6167 (combine_stack_adjustments_for_block): Use them.
6168
6169 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
6170
6171 * Makefile.in (TAGS): Tag ../include files.
6172
6173 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6174
6175 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
6176 to rs6000_dbx_register_number.
6177 (DWARF_FRAME_REGNUM): Redefine as identity map.
6178 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
6179 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
6180 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
6181 argument to handle .debug_frame and .eh_frame directly. Always
6182 translate SPE high register numbers. Add special treatment for CR,
6183 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
6184
6185 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
6186 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
6187 (RS6000_USE_DWARF_NUMBERING): Define.
6188 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
6189 (RS6000_USE_DWARF_NUMBERING): Define.
6190 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
6191 (RS6000_USE_DWARF_NUMBERING): Define.
6192 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
6193 (RS6000_USE_DWARF_NUMBERING): Define.
6194 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
6195 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
6196
6197 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
6198
6199 * config/i386/i386.c (ix86_address_cost): Lower cost for
6200 when address contains GOT register.
6201
6202 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
6203 Vladimir Makarov <vmakarov@redhat.com>
6204
6205 PR target/8340
6206 PR middle-end/47602
6207 PR rtl-optimization/55458
6208 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
6209 (ix86_init_pic_reg): New.
6210 (ix86_select_alt_pic_regnum): Add check on pseudo register.
6211 (ix86_save_reg): Likewise.
6212 (ix86_expand_prologue): Remove PIC register initialization
6213 now performed in ix86_init_pic_reg.
6214 (ix86_output_function_epilogue): Add check on pseudo register.
6215 (set_pic_reg_ever_alive): New.
6216 (legitimize_pic_address): Replace df_set_regs_ever_live with new
6217 set_pic_reg_ever_alive.
6218 (legitimize_tls_address): Likewise.
6219 (ix86_pic_register_p): New check.
6220 (ix86_delegitimize_address): Add check on pseudo register.
6221 (ix86_expand_call): Insert move from pseudo PIC register to ABI
6222 defined REAL_PIC_OFFSET_TABLE_REGNUM.
6223 (TARGET_INIT_PIC_REG): New.
6224 (TARGET_USE_PSEUDO_PIC_REG): New.
6225 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
6226 if pic_offset_table_rtx exists.
6227 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
6228 Document.
6229 * doc/tm.texi: Regenerate.
6230 * function.c (assign_parms): Generate pseudo register for PIC.
6231 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
6232 register.
6233 * ira-color.c (color_pass): Add check on pseudo register.
6234 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
6235 register.
6236 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
6237 register.
6238 (ira): Add target specific PIC register initialization.
6239 (do_reload): Keep PIC pseudo register.
6240 * lra-assigns.c (spill_for): Add checks on pseudo register.
6241 * lra-constraints.c (contains_symbol_ref_p): New.
6242 (lra_constraints): Enable lra risky transformations when PIC is pseudo
6243 register.
6244 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
6245 * target.def (use_pseudo_pic_reg): New.
6246 (init_pic_reg): New.
6247
6248 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
6249
6250 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
6251 Remove m_SILVERMONT and m_INTEL from the tune.
6252
6253 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6254
6255 PR libfortran/63471
6256 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
6257 when _HPUX_SOURCE is defined.
6258
6259 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
6260
6261 PR tree-optimization/62127
6262 * tree.c (remap_type_1): When remapping array, remap
6263 also its type.
6264
6265 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
6266
6267 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
6268 longer impact parallelization.
6269
6270 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
6271
6272 PR bootstrap/63496
6273 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
6274
6275 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
6276
6277 * asan.c (instrument_derefs): BIT_FIELD_REF added.
6278
6279 2014-10-13 Richard Biener <rguenther@suse.de>
6280
6281 PR tree-optimization/63419
6282 * gimple-fold.h (gimple_convert): New function.
6283 * gimple-fold.c (gimple_convert): Likewise.
6284 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
6285 to split out required conversions early.
6286
6287 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
6288
6289 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
6290 Add the parts of an insn in reverse order, with the pattern at
6291 the top of the queue. Detect when we're iterating over a SEQUENCE
6292 pattern and in that case just consider patterns of subinstructions.
6293
6294 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
6295
6296 PR target/59401
6297 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
6298 of rtx.
6299 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
6300 insn walking.
6301 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
6302 address. Use def chains to handle GBR clobbering call insns.
6303
6304 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
6305
6306 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
6307 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
6308 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
6309 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
6310 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
6311 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
6312 * doc/gty.texi (for_user): Document new option.
6313 * gengtype.c (create_user_defined_type): Don't try to get a struct for
6314 char.
6315 (walk_type): Don't error out on for_user option.
6316 (write_func_for_structure): Emit user marking routines if requested by
6317 for_user option.
6318 (write_local_func_for_structure): Likewise.
6319 (main): Mark types with for_user option as used.
6320 * ggc.h (gt_pch_nx): Add overload for unsigned int.
6321 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
6322 * hash-table.h (ggc_hasher): New struct.
6323 (hash_table::create_ggc): New function.
6324 (gt_pch_nx): New overload for hash_table.
6325
6326 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
6327
6328 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
6329 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
6330 * config/sh/sh.c: Likewise.
6331 * config/sh/sh-mem.cc: Likewise.
6332 * config/sh/sh.md: Likewise.
6333 * config/sh/predicates.md: Likewise.
6334 * config/sh/sync.md: Likewise.
6335
6336 2014-10-11 Martin Liska <mliska@suse.cz>
6337
6338 PR middle-end/63376
6339 * cgraphunit.c (symbol_table::process_new_functions): Missing call
6340 for call_cgraph_insertion_hooks added.
6341
6342 2014-10-10 Jakub Jelinek <jakub@redhat.com>
6343
6344 PR c/63495
6345 * stor-layout.c (min_align_of_type): Don't decrease alignment
6346 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
6347 TYPE_USER_ALIGN is set.
6348
6349 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
6350
6351 PR rtl-optimization/63483
6352 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
6353 references when alignment ANDs are involved.
6354 (write_dependence_p): Ditto.
6355 (may_alias_p): Ditto.
6356
6357 2014-10-10 Marek Polacek <polacek@redhat.com>
6358
6359 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
6360 * doc/invoke.texi: Document -fsanitize=object-size.
6361 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
6362 or it into SANITIZE_UNDEFINED.
6363 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
6364 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
6365 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
6366 * opts.c (common_handle_option): Handle -fsanitize=object-size.
6367 * ubsan.c: Include tree-object-size.h.
6368 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
6369 (ubsan_expand_bounds_ifn): Use false instead of 0.
6370 (ubsan_expand_objsize_ifn): New function.
6371 (instrument_object_size): New function.
6372 (pass_ubsan::execute): Add object size instrumentation.
6373 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
6374
6375 2014-10-10 Richard Henderson <rth@redhat.com>
6376
6377 PR target/63404
6378 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
6379 Restrict the set of expressions we're willing to move.
6380
6381 2014-10-10 Jeff Law <law@redhat.com>
6382
6383 * ira.c (struct equivalence): Promote INIT_INSNs field to
6384 an rtx_insn_list. Add comments.
6385 (no_equiv): Promote LIST to an rtx_insn_list. Update
6386 testing for and creating the special marker. Use methods
6387 to extract the insn and next pointers. Promote INSN to an
6388 rtx_insn.
6389 (update_equiv_regs): Update test for special marker in the
6390 INIT_INSNs list.
6391
6392 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6393
6394 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
6395 * configure: Regenerate.
6396 * config/aarch64/aarch64.c (aarch64_override_options): Handle
6397 TARGET_FIX_ERR_A53_835769_DEFAULT.
6398 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
6399 value to 2.
6400 * doc/install.texi (aarch64*-*-*): Document
6401 new --enable-fix-cortex-a53-835769 option.
6402
6403 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6404 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6405
6406 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
6407 (ADJUST_INSN_LENGTH): Define.
6408 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
6409 * config/aarch64/aarch64.c (is_mem_p): New function.
6410 (is_memory_op): Likewise.
6411 (aarch64_prev_real_insn): Likewise.
6412 (is_madd_op): Likewise.
6413 (dep_between_memop_and_curr): Likewise.
6414 (aarch64_madd_needs_nop): Likewise.
6415 (aarch64_final_prescan_insn): Likewise.
6416 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
6417 and -mno-fix-cortex-a53-835769 options.
6418
6419 2014-10-10 Jakub Jelinek <jakub@redhat.com>
6420
6421 PR tree-optimization/63464
6422 * tree-switch-conversion.c (struct case_bit_test): Remove
6423 hi and lo fields, add wide_int mask field.
6424 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
6425 hi/lo fields into wide_int mask operations, optimize by pretending
6426 minval to be 0 if maxval is small enough.
6427 (process_switch): Adjust caller.
6428
6429 2014-10-10 Richard Biener <rguenther@suse.de>
6430
6431 PR tree-optimization/63379
6432 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
6433 a neutral operand for min/max when it is not a reduction chain.
6434
6435 2014-10-10 Richard Biener <rguenther@suse.de>
6436
6437 PR tree-optimization/63476
6438 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
6439 (BB_LIVE_VOP_ON_EXIT): New define.
6440 (create_expression_by_pieces): Assign VUSEs to stmts.
6441 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
6442 (pass_pre::execute): Assert virtual SSA form is up-to-date
6443 after insertion.
6444
6445 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
6446
6447 * lra-assigns.c (assign_by_spills): Error out on spill failure.
6448
6449 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
6450
6451 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
6452 assertion.
6453
6454 2014-10-09 Richard Biener <rguenther@suse.de>
6455
6456 PR tree-optimization/63380
6457 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
6458 may trap.
6459
6460 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
6461
6462 * config/avr/avr.opt (mmcu=): Change to have a string value.
6463 (mn-flash=, mskip-bug, march=, mrmw): New options.
6464 (HeaderInclude): New.
6465 (mmcu=): Remove Var / Init clauses.
6466 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
6467 -specs option.
6468 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
6469 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
6470 (SYMBOL_FLAG_IO_LOW): Define.
6471 (avr_device_to_as, avr_device_to_ld): Don't declare.
6472 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
6473 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
6474 (EXTRA_SPEC_FUNCTIONS): Don't define.
6475 (ASM_SPEC): Translate -arch= option to -mmcu= option.
6476 (LINK_SPEC): Translate -arch= option to -m= option.
6477 Don't use device_to_ld / device_to_data_start.
6478 (STARTFILE_SPEC): Now empty.
6479 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
6480 * config/avr/gen-avr-mmcu-specs.c: New file.
6481 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
6482 (s-device-specs): Likewise.
6483 (GCC_PASSES): Add s-device-specs.
6484 (install-driver): Depend on install-device-specs.
6485 (install-device-specs): New rule.
6486 * config/avr/avr.c (avr_option_override): Look up mcu arch by
6487 avr_arch_index and provide fallback initialization for avr_n_flash.
6488 (varasm.h): #include.
6489 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
6490 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
6491 (avr_attribute_table): Add "io", "address" and "io_low".
6492 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
6493 Add special handling for symbols with "io" and/or "address" attributes.
6494 (avr_asm_asm_output_aligned_bss): New function.
6495 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
6496 as appropriate. Handle io_low attribute.
6497 (avr_out_sbxx_branch): Handle symbolic io addresses.
6498 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
6499 avr_n_flash instead of avr_current_device->n_flash.
6500 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
6501 (avr_emit_movmemhi): Likewise.
6502 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
6503 Use TARGET_RMW instead of avr_current_device->dev_attributes.
6504 Don't define avr_current_device->macro (that's the specfile's job).
6505 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
6506 * config/avr/avr.c (avr_2word_insn_p): Likewise.
6507 * config/avr/avr.md (*cpse.ne): Likewise.
6508 (mov<mode>): Use avr_eval_addr_attrib.
6509 (cbi): Change constraint for low_io_address_operand operand to "i".
6510 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
6511 * config/avr/predicates.md (io_address_operand):
6512 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
6513 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
6514 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
6515 Update prototype.
6516 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
6517 * config/avr/genmultilib.awk: Use -march=.
6518 Remove Multilib matches processing.
6519 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
6520 * config/avr/avr-arch.h: Add double include guard.
6521 (avr_mcu_t) <library_name>: Update comment.
6522 * config/avr/driver-avr.c (avr_device_to_as): Delete.
6523 (avr_device_to_ld, avr_device_to_data_start): Likewise.
6524 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
6525 (avr_device_to_sp8): Likewise.
6526 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
6527
6528 * doc/extend.texi (io, address): Document new AVR variable attributes.
6529 (io_low): Likewise.
6530
6531 2014-10-09 Marek Polacek <polacek@redhat.com>
6532
6533 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
6534
6535 2014-10-08 Richard Biener <rguenther@suse.de>
6536
6537 PR tree-optimization/61969
6538 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
6539 variables.
6540
6541 2014-10-09 Richard Biener <rguenther@suse.de>
6542
6543 PR tree-optimization/63445
6544 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
6545 overflow for non-equality compares.
6546
6547 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
6548
6549 PR rtl-optimization/57003
6550 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
6551 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
6552 killing regs_invalidated_by_call.
6553
6554 2014-10-08 Teresa Johnson <tejohnson@google.com>
6555
6556 PR bootstrap/63432.
6557 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
6558 (ssa_fix_duplicate_block_edges): Invoke it.
6559 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
6560
6561 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
6562
6563 PR target/52941
6564 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
6565 atomic_fetch_<fetchop_name>si_hard,
6566 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
6567 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
6568 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
6569 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
6570
6571 2014-10-08 Rong Xu <xur@google.com>
6572
6573 * gcov-tool.c (profile_overlap): New driver function
6574 to compute profile overlap.
6575 (print_overlap_usage_message): New.
6576 (overlap_usage): New.
6577 (do_overlap): New.
6578 (print_usage): Add calls to overlap function.
6579 (main): Ditto.
6580 * doc/gcov-tool.texi: Add documentation.
6581
6582 2014-10-08 Steve Ellcey <sellcey@mips.com>
6583
6584 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
6585 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
6586
6587 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
6588
6589 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
6590 pattern matching of MEM_REF.
6591 (check_stmt_for_type_change): Update.
6592
6593 2014-10-08 Steve Ellcey <sellcey@mips.com>
6594
6595 * config/mips/linux64.h: Remove.
6596 * config/mips/gnu-user64.h: Remove.
6597 * gcc.config (mips*-*-*): Remove references to linux64.h and
6598 gnu-user64.h
6599 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
6600 with modified version from gnu-user64.h.
6601 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
6602 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
6603 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
6604 linux64.h.
6605 (GNU_USER_LINK_EMULATION64): Ditto.
6606 (GNU_USER_LINK_EMULATIONN32): Ditto.
6607 (GLIBC_DYNAMIC_LINKER32): Ditto.
6608 (GLIBC_DYNAMIC_LINKER64): Ditto.
6609 (GLIBC_DYNAMIC_LINKERN32): Ditto.
6610 (UCLIBC_DYNAMIC_LINKER32): Ditto.
6611 (UCLIBC_DYNAMIC_LINKER64): Ditto.
6612 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
6613 (BIONIC_DYNAMIC_LINKERN32): Ditto.
6614 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
6615 (GLIBC_DYNAMIC_LINKER): Delete.
6616 (UCLIBC_DYNAMIC_LINKER): Delete.
6617
6618 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
6619 Richard Biener <rguenther@suse.de>
6620
6621 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
6622 Get address space from operand 0 (BASE).
6623
6624 2014-10-07 Iain Sandoe <iain@codesourcery.com>
6625
6626 PR target/61387
6627 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
6628
6629 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
6630
6631 * dwarf2out.c: Remove current_function_has_inlines.
6632 (gen_subprogram_die): Same.
6633 (gen_inlined_subroutine_die): Same.
6634
6635 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
6636
6637 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
6638 type.
6639 (_addcarry_u64): Ditto.
6640 (_addcarryx_u64): Ditto.
6641
6642 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
6643
6644 * cgraph.h (cgraph_node::get_fun): Declare.
6645 * cgraph.c (cgraph_node::get_fun): New method.
6646 * ipa-inline.c (can_inline_edge_p): Use it.
6647
6648 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
6649
6650 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
6651 and -ftrapping-math.
6652 * lto-wrapper.c (merge_and_complain): Likewise.
6653 (run_gcc): Likewise.
6654
6655 2014-10-06 Rong Xu <xur@google.com>
6656
6657 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
6658 * tree-profile.c: (params.h): New include.
6659 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
6660 and __gcov_indirect_call_topn_counters for
6661 indirect_call_topn_profile.
6662 (gimple_init_edge_profiler): New decls for
6663 __gcov_indirect_call_topn_profiler.
6664 (gimple_gen_ic_profiler): Generate the correct profiler call.
6665 (gimple_gen_ic_func_profiler): Fix format.
6666 * value-prof.c (params.h): New include.
6667 (dump_histogram_value): Hanlde indirect_call_topn counters.
6668 (stream_in_histogram_value): Ditto.
6669 (gimple_indirect_call_to_profile): Use indirect_call_topn
6670 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
6671 (gimple_find_values_to_profile): Hanlde indirect_call_topn
6672 counters.
6673 * value-prof.h (enum hist_type): Histrogram type for
6674 indirect_call_topn counters.
6675 * profile.c (instrument_values): Instrument
6676 indirect_call_topn counters.
6677
6678 2014-10-06 Rong Xu <xur@google.com>
6679
6680 * Makefile.in: Fix dependence.
6681 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
6682 indirect call topn profiler.
6683 * gcov-io.h: Ditto.
6684
6685 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
6686
6687 * calls.c (expand_call): Do not use the target as the return slot if
6688 it is not sufficiently aligned.
6689
6690 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6691
6692 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
6693 discussion of permutes and why we don't handle them.
6694
6695 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
6696
6697 * config/sparc/predicates.md (int_register_operand): Delete.
6698
6699 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
6700
6701 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
6702
6703 2014-10-06 Jakub Jelinek <jakub@redhat.com>
6704
6705 * ubsan.h (ubsan_get_source_location): New prototype.
6706 * ubsan.c (ubsan_source_location_type): New variable.
6707 Function renamed to ...
6708 (ubsan_get_source_location_type): ... this. Cache
6709 return value in ubsan_source_location_type variable.
6710 (ubsan_source_location, ubsan_create_data): Use
6711 ubsan_get_source_location_type instead of
6712 ubsan_source_location_type.
6713 * asan.c (asan_protect_global): Don't protect globals
6714 with ubsan_get_source_location_type () type.
6715 (asan_add_global): Provide global decl location info
6716 if possible.
6717
6718 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
6719
6720 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
6721 sanity check.
6722
6723 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
6724
6725 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
6726 on size.
6727 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
6728 into vptr pointer.
6729 (ipa_polymorphic_call_context::dump): Fix formating.
6730 (walk_ssa_copies): Add logic avoiding loops; update uses.
6731 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
6732
6733 2014-10-02 Mark Wielaard <mjw@redhat.com>
6734
6735 PR debug/63239
6736 * dwarf2out.c (gen_subprogram_die): When a member function is
6737 explicitly deleted then add a DW_AT_GNU_deleted attribute.
6738 * langhooks.h (struct lang_hooks_for_decls): Add
6739 function_decl_deleted_p langhook.
6740 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
6741 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
6742
6743 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
6744
6745 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
6746 NULL pointer checks.
6747 (ipa_polymorphic_call_context::get_dynamic_type): Return true
6748 if type doesn't change.
6749 * cgraph.h (cgraph_indirect_call_info): New flag.
6750 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
6751 (cgraph_node::dump): Dump it.
6752 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
6753 of context.get_dynamic_type.
6754 (ipa_make_edge_direct_to_target): Do not speculate
6755 edge that is already speuclative.
6756 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
6757 speculate to __builtin_unreachable
6758 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
6759 vptr_changed.
6760 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
6761
6762 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
6763
6764 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
6765 get_dynamic_type; drop TODO.
6766 * ipa-polymorphic-call.c
6767 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
6768 for otr_type to be unknown.
6769
6770 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
6771
6772 * common/config/score/score-common.c: Remove.
6773 * config.gcc: Remove support for score-*.
6774 * config/score/constraints.md: Remove.
6775 * config/score/elf.h: Remove.
6776 * config/score/predicates.md: Remove.
6777 * config/score/score-conv.h: Remove.
6778 * config/score/score-generic.md: Remove.
6779 * config/score/score-modes.def: Remove.
6780 * config/score/score-protos.h: Remove.
6781 * config/score/score.c: Remove.
6782 * config/score/score.h: Remove.
6783 * config/score/score.md: Remove.
6784 * config/score/score.opt: Remove.
6785 * doc/md.texi: Don't document score-*.
6786
6787 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
6788
6789 PR pch/63429
6790 * genconditions.c: Directly include ggc.h before rtl.h.
6791
6792 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
6793
6794 * ipa-polymorphic-call.c
6795 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
6796 code determining speculative type.
6797 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
6798
6799 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6800
6801 * altivec.md (altivec_lvsl): New define_expand.
6802 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
6803 (altivec_lvsr): New define_expand.
6804 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
6805 * rs6000.c (rs6000_expand_builtin): Change to use
6806 altivec_lvs[lr]_direct; remove commented-out code.
6807
6808 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6809
6810 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6811 Issue a warning message when vec_lvsl or vec_lvsr is used with a
6812 little endian target.
6813
6814 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6815
6816 * tree-pretty-print.c (dump_location): Make it extern. Dump also
6817 the column.
6818 * tree-pretty-print.h (dump_location): Declare.
6819 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
6820 (pp_gimple_stmt_1): Likewise.
6821 (dump_implicit_edges): Likewise.
6822 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
6823 LOCATION_LINE.
6824
6825
6826 2014-10-03 David Malcolm <dmalcolm@redhat.com>
6827
6828 * gcc.c (driver::global_initializations): Remove "const" so
6829 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
6830 and decoded_options_count.
6831
6832 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
6833
6834 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
6835 macro.
6836 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
6837 TARGET_E500_DOUBLE case here.
6838
6839 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
6840
6841 PR c++/54427
6842 PR c++/57198
6843 PR c++/58845
6844 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
6845
6846 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
6847
6848 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
6849 * lto-cgraph.c (lto_output_edge, input_edge): Stream
6850 in_polymorphic_cdtor
6851 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
6852 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
6853 * cgraphclones.c (cgraph_edge::clone): Likewise.
6854 * ipa-prop.c (update_jump_functions_after_inlining,
6855 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
6856 to possible_dynamic_type_change.
6857 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
6858 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
6859 IN_POLY_CDOTR argument.
6860
6861 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
6862 for BASE and OUTER_TYPE being NULL.
6863 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
6864 in_poly_cdtor parameter.
6865
6866 2014-10-03 Jakub Jelinek <jakub@redhat.com>
6867
6868 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
6869 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
6870 TARGET_AVX512F.
6871 (expand_vec_perm_1): Likewise.
6872
6873 2014-10-03 Jakub Jelinek <jakub@redhat.com>
6874 Uros Bizjak <ubizjak@gmail.com>
6875
6876 PR tree-optimization/61403
6877 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
6878 error in comment. Also optimize 256-bit vectors for AVX2
6879 or AVX (floating vectors only), provided the first permutation
6880 can be performed in one insn.
6881
6882 2014-10-03 David Malcolm <dmalcolm@redhat.com>
6883
6884 * gcc.c (class driver): New class.
6885 (main): Reimplement in terms of driver::main, moving most of the
6886 locals to be locals within individual methods of class driver.
6887 The remaining locals "explicit_link_files", "decoded_options" and
6888 "decoded_options_count" are used by multiple driver:: methods, and
6889 so become member data. Doing so isolates the argc/argv reads and
6890 writes. Replace "goto out" with a special exit code from
6891 new method driver::prepare_infiles. Split out the old
6892 implementation of main into the following...
6893 (driver::main): New function, corresponding to the old "main"
6894 implementation.
6895 (driver::set_progname): New function, taken from the old
6896 "main" implementation.
6897 (driver::expand_at_files): Likewise.
6898 (driver::decode_argv): Likewise.
6899 (driver::global_initializations): Likewise.
6900 (driver::build_multilib_strings): Likewise.
6901 (driver::set_up_specs): Likewise.
6902 (driver::putenv_COLLECT_GCC): Likewise.
6903 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
6904 (driver::handle_unrecognized_options): Likewise.
6905 (driver::maybe_print_and_exit): Likewise.
6906 (driver::prepare_infiles): Likewise.
6907 (driver::do_spec_on_infiles): Likewise.
6908 (driver::maybe_run_linker): Likewise.
6909 (driver::final_actions): Likewise.
6910 (driver::get_exit_code): Likewise.
6911
6912 2014-10-03 Yury Gribov <y.gribov@samsung.com>
6913
6914 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
6915 don't emit empty ctors.
6916
6917 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
6918
6919 * convert.c (convert_to_integer): Do not introduce useless conversions
6920 between integral types.
6921
6922 2014-10-03 David Sherwood <david.sherwood@arm.com>
6923
6924 * ira-int.h (ira_allocno): Mark hard_regno as signed.
6925
6926 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
6927
6928 * lra-constraints.c (inherit_in_ebb): Handle calls with
6929 multiple return values.
6930 * caller-save.c (save_call_clobbered_regs): Likewise.
6931
6932 2014-10-03 Jakub Jelinek <jakub@redhat.com>
6933
6934 * tree-vect-data-refs.c (vect_permute_load_chain,
6935 vect_shift_permute_load_chain): Fix a typo in temporary var names,
6936 suffle3 to shuffle3.
6937
6938 PR libgomp/61200
6939 * omp-low.c (taskreg_contexts): New variable.
6940 (scan_omp_parallel): Push newly created context into taskreg_contexts
6941 vector and move record layout code to finish_taskreg_scan.
6942 (scan_omp_task): Likewise.
6943 (finish_taskreg_scan): New function.
6944 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
6945 vector elements and release it.
6946
6947 PR target/62128
6948 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
6949 of palignr arguments can't be used due to min 0 or max - min
6950 too high, try also op0, op1 order of palignr arguments.
6951
6952 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
6953
6954 * cgraph.h (ipa_polymorphic_call_context):
6955 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
6956 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
6957 * ipa-polymorphic-call.c
6958 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
6959 past end of dynamic types.
6960 (ipa_polymorphic_call_context::stream_out,
6961 speculative_outer_type): Stream dynamic flag.
6962 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
6963 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
6964 Clear DYNAMIC.
6965 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
6966 set it.
6967 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
6968 * ipa-prop.c (update_jump_functions_after_inlining,
6969 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
6970
6971 2014-10-02 Teresa Johnson <tejohnson@google.com>
6972
6973 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
6974 up when synthesizing counts to avoid rounding errors.
6975
6976 2014-10-02 Teresa Johnson <tejohnson@google.com>
6977
6978 PR middle-end/63422
6979 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
6980 asserts to handle incoming insanities.
6981
6982 2014-10-02 Martin Jambor <mjambor@suse.cz>
6983
6984 PR tree-optimization/63375
6985 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
6986 references.
6987
6988 2014-10-02 Olivier Hainque <hainque@adacore.com>
6989
6990 * Makefile.in (CROSS): Define, to @CROSS.
6991
6992 2014-10-02 Jakub Jelinek <jakub@redhat.com>
6993
6994 PR target/62128
6995 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
6996 if it expands to a single insn only.
6997 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
6998 fail unless in_order is true. Add forward declaration.
6999 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
7000 is useful for one_operand_p.
7001 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
7002
7003 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
7004
7005 * cgraphclones.c (build_function_type_skip_args): Do not make new
7006 type variant of old.
7007
7008 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
7009
7010 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
7011 when speculation is added.
7012 (ipa_edge_args): Add polymorphic_call_contexts.
7013 (ipa_get_ith_polymorhic_call_context): New accesor.
7014 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
7015 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
7016 (ipa_compute_jump_functions_for_edge): Compute contexts.
7017 (update_jump_functions_after_inlining): Update contexts.
7018 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
7019 update dumping; add speculative edge creation.
7020 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
7021 context updating.
7022 (update_indirect_edges_after_inlining): Pass down context.
7023 (ipa_edge_duplication_hook): Duplicate contexts.
7024 (ipa_write_node_info): Stream out contexts.
7025 (ipa_read_node_info): Stream in contexts.
7026 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
7027 types.
7028 (try_speculative_devirtualization): New function.
7029 * ipa-utils.h (try_speculative_devirtualization): Declare.
7030
7031 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
7032
7033 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
7034 dumping during WPA.
7035
7036 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
7037
7038 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
7039 type variants.
7040
7041 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
7042
7043 * ipa-polymorphic-call.c
7044 (ipa_polymorphic_call_context::restrict_to_inner_class):
7045 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
7046 use speculation_consistent_p to do so; Add CONSDER_BASES
7047 and CONSIDER_PLACEMENT_NEW parameters.
7048 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
7049 short circuit obvious cases.
7050 (ipa_polymorphic_call_context::dump): Improve formatting.
7051 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
7052 combine_speculation_with to record speculations; Do not ICE when
7053 object is located in pointer type decl; do not ICE for methods
7054 of UNION_TYPE; do not record nonpolymorphic types.
7055 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
7056 (ipa_polymorphic_call_context::combine_speculation_with): New method.
7057 (ipa_polymorphic_call_context::combine_with): New method.
7058 (ipa_polymorphic_call_context::make_speculative): Move here; use
7059 combine speculation.
7060 * cgraph.h (ipa_polymorphic_call_context): Update
7061 restrict_to_inner_class prototype; add offset_by, make_speculative,
7062 combine_with, useless_p, combine_speculation_with and
7063 speculation_consistent_p methods.
7064 (ipa_polymorphic_call_context::offset_by): New method.
7065 (ipa_polymorphic_call_context::useless_p): New method.
7066
7067 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7068
7069 PR rtl-optimization/62151
7070 * combine.c (can_combine_p): Allow the destination register of INSN
7071 to be clobbered in I3.
7072 (subst): Do not substitute into clobbers of registers.
7073
7074 2014-10-01 Jakub Jelinek <jakub@redhat.com>
7075
7076 PR debug/63342
7077 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
7078 offset, TARGET_MEM_REF and SSA_NAME.
7079
7080 * config/i386/i386.c (expand_vec_perm_palignr): Handle
7081 256-bit vectors for TARGET_AVX2.
7082
7083 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
7084 dfirst permutation.
7085
7086 PR target/63428
7087 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
7088 argument to avx2_permv2ti.
7089
7090 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7091
7092 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
7093
7094 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
7095
7096 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
7097 (fmod<mode>3): Ditto.
7098 (fpremxf4_i387): Ditto.
7099 (reminderxf3): Ditto.
7100 (reminder<mode>3): Ditto.
7101 (fprem1xf4_i387): Ditto.
7102
7103 2014-09-30 Teresa Johnson <tejohnson@google.com>
7104
7105 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
7106 duplicate_blocks bitmap.
7107 (remove_ctrl_stmt_and_useless_edges): Ditto.
7108 (create_block_for_threading): Ditto.
7109 (compute_path_counts): New function.
7110 (update_profile): Ditto.
7111 (recompute_probabilities): Ditto.
7112 (update_joiner_offpath_counts): Ditto.
7113 (freqs_to_counts_path): Ditto.
7114 (clear_counts_path): Ditto.
7115 (ssa_fix_duplicate_block_edges): Update profile info.
7116 (ssa_create_duplicates): Pass new parameter.
7117 (ssa_redirect_edges): Remove old profile update.
7118 (thread_block_1): New duplicate_blocks bitmap,
7119 remove old profile update.
7120 (thread_single_edge): Pass new parameter.
7121
7122 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
7123
7124 PR middle-end/62120
7125 * varasm.c (decode_reg_name_and_count): Check availability for
7126 registers from ADDITIONAL_REGISTER_NAMES.
7127
7128 2014-09-30 David Malcolm <dmalcolm@redhat.com>
7129
7130 PR plugins/63410
7131 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
7132 (PLUGIN_HEADERS): Add pass-instances.def.
7133
7134 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
7135
7136 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
7137 iterator.
7138 * config/aarch64/aarch64-simd.md
7139 (aarch64_sqdmull_laneq<mode>): Expand iterator.
7140 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
7141 (vqdmulls_lane_s32): Fix return type.
7142 (vqdmulls_laneq_s32): New.
7143
7144 2014-09-30 Jakub Jelinek <jakub@redhat.com>
7145
7146 PR inline-asm/63282
7147 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
7148 or invert_jump_1 if jump isn't any_condjump_p.
7149
7150 2014-09-30 Terry Guo <terry.guo@arm.com>
7151
7152 * config/arm/arm-cores.def (cortex-m7): New core name.
7153 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
7154 (fpv5-d16): Ditto.
7155 * config/arm/arm-tables.opt: Regenerated.
7156 * config/arm/arm-tune.md: Regenerated.
7157 * config/arm/arm.h (TARGET_VFP5): New macro.
7158 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
7159 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
7160 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
7161 * doc/invoke.texi: Document new cpu and fpu names.
7162
7163 2014-09-30 Jiong Wang <jiong.wang@arm.com>
7164
7165 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
7166 before sinking insn.
7167
7168 2014-09-30 David Sherwood <david.sherwood@arm.com>
7169
7170 * ira-int.h (ira_allocno): Add "wmode" field.
7171 * ira-build.c (create_insn_allocnos): Add new "parent" function
7172 parameter.
7173 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
7174 that cannot be accessed in wmode.
7175
7176 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
7177
7178 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
7179 integer overflow.
7180
7181 2014-09-29 Andi Kleen <ak@linux.intel.com>
7182
7183 * opts.c (print_filtered_help): Print --param min/max/default
7184 with -Q.
7185
7186 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
7187
7188 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
7189
7190 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
7191
7192 * tree-vrp.c (get_single_symbol): New function.
7193 (build_symbolic_expr): Likewise.
7194 (symbolic_range_based_on_p): New predicate.
7195 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
7196 for PLUS and MINUS. Do not drop symbolic ranges at the end.
7197 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
7198 operand is symbolic and based on the other operand.
7199
7200 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
7201
7202 * config/microblaze/microblaze.md (call_internal1): Use VOID
7203 instead of SI to fix "((void (*)(void)) 0)()" issue
7204
7205 2014-09-29 Nick Clifton <nickc@redhat.com>
7206
7207 * config/msp430/msp430.c (msp430_expand_prologue): Return a
7208 CLOBBER rtx for naked functions.
7209 (msp430_expand_epilogue): Likewise.
7210 (msp430_use_f5_series_hwmult): Cache result.
7211 (use_32bit_hwmult): Cache result.
7212 (msp430_no_hwmult): New function.
7213 (msp430_output_labelref): Use it.
7214
7215 2014-09-29 Jakub Jelinek <jakub@redhat.com>
7216
7217 PR middle-end/63247
7218 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
7219 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
7220 use the alignment of avar rather than ovar.
7221
7222 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
7223
7224 * config/pa/pa.c (pa_output_function_epilogue): Only update
7225 last_address when a nonnote insn is found.
7226
7227 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
7228
7229 PR ipa/60665
7230 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
7231
7232 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
7233
7234 PR ipa/62121
7235 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
7236 fix pasto in checking array size.
7237
7238 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
7239
7240 PR middle-end/35545
7241 * passes.def (pass_tracer): Move before last dominator pass.
7242
7243 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
7244
7245 * gcc.c (try_generate_repro): Remove argument "prog". Change all
7246 users.
7247 (run_attempt): Handle errors of "pex_run" invocation.
7248
7249 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
7250
7251 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
7252 (CC1_SPEC): Define.
7253 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
7254 (TARGET_ASAN_SHADOW_OFFSET): Define.
7255
7256 2014-09-26 Martin Liska <mliska@suse.cz>
7257
7258 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
7259 introduced.
7260 * cgraph.h: Likewise.
7261 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
7262 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
7263 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
7264 * tree-ssa-alias.h: Likewise.
7265
7266 2014-09-26 Jakub Jelinek <jakub@redhat.com>
7267 Max Ostapenko <m.ostapenko@partner.samsung.com>
7268
7269 * common.opt: New option.
7270 * doc/invoke.texi: Describe new option.
7271 * gcc.c (execute): Don't free first string early, but at the end
7272 of the function. Call retry_ice if compiler exited with
7273 ICE_EXIT_CODE.
7274 (main): Factor out common code.
7275 (print_configuration): New function.
7276 (files_equal_p): Likewise.
7277 (check_repro): Likewise.
7278 (run_attempt): Likewise.
7279 (do_report_bug): Likewise.
7280 (append_text): Likewise.
7281 (try_generate_repro): Likewise
7282
7283 2014-09-25 Andi Kleen <ak@linux.intel.com>
7284
7285 * config/i386/i386.c (x86_print_call_or_nop): New function.
7286 (x86_function_profiler): Support -mnop-mcount and
7287 -mrecord-mcount.
7288 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
7289 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
7290
7291 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
7292
7293 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
7294 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
7295 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
7296 Remove.
7297
7298 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
7299
7300 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
7301 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
7302 types_odr_comparable): Declare.
7303 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
7304 * ipa-polymorphic-call.c: New file.
7305 (contains_polymorphic_type_p, possible_placement_new,
7306 ipa_polymorphic_call_context::restrict_to_inner_class,
7307 contains_type_p, decl_maybe_in_construction_p,
7308 ipa_polymorphic_call_context::stream_out,
7309 ipa_polymorphic_call_context::debug,
7310 ipa_polymorphic_call_context::stream_in,
7311 ipa_polymorphic_call_context::set_by_decl,
7312 ipa_polymorphic_call_context::set_by_invariant,
7313 walk_ssa_copies,
7314 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
7315 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
7316 extr_type_from_vtbl_ptr_store, record_known_type
7317 check_stmt_for_type_change,
7318 ipa_polymorphic_call_context::get_dynamic_type): Move here from
7319 ipa-devirt.c
7320 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
7321 and streamer-hooks.h
7322 (contains_polymorphic_type_p, possible_placement_new,
7323 ipa_polymorphic_call_context::restrict_to_inner_class,
7324 contains_type_p, decl_maybe_in_construction_p,
7325 ipa_polymorphic_call_context::stream_out,
7326 ipa_polymorphic_call_context::debug,
7327 ipa_polymorphic_call_context::stream_in,
7328 ipa_polymorphic_call_context::set_by_decl,
7329 ipa_polymorphic_call_context::set_by_invariant,
7330 walk_ssa_copies,
7331 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
7332 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
7333 extr_type_from_vtbl_ptr_store, record_known_type
7334 check_stmt_for_type_change,
7335 ipa_polymorphic_call_context::get_dynamic_type): Move to
7336 ipa-polymorphic-call.c
7337 (type_all_derivations_known_p, types_odr_comparable,
7338 types_must_be_same_for_odr): Export.
7339 (type_known_to_have_no_deriavations_p): New function.
7340 * Makefile.in: Add ipa-polymorphic-call.c
7341
7342 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
7343
7344 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
7345 for better storage.
7346 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
7347 (possible_polymorphic_call_targets): Instead of computing both
7348 speculative and non-speculative answers, do just one at a time.
7349 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
7350 (dump_targets): Break out from ...
7351 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
7352 and non-speculative lists.
7353 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
7354 * ipa-utils.h (possible_polymorphic_call_targets): Update.
7355
7356 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
7357
7358 PR rtl-optimization/63348
7359 * emit-rtl.c (try_split): Do not emit extra barrier.
7360
7361 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
7362
7363 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
7364 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
7365 new predicates.
7366 (aarch64_<sur>shll2_n<mode>): Likewise.
7367 (aarch64_<sur>shr_n<mode>): Likewise.
7368 (aarch64_<sur>sra_n<mode>: Likewise.
7369 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
7370 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
7371 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
7372 * config/aarch64/iterators.md (ve_mode): New.
7373 (offsetlr): Remap to infix text for use in new predicates.
7374 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
7375 (aarch64_simd_shift_imm_hi): Likewise.
7376 (aarch64_simd_shift_imm_si): Likewise.
7377 (aarch64_simd_shift_imm_di): Likewise.
7378 (aarch64_simd_shift_imm_offset_qi): Likewise.
7379 (aarch64_simd_shift_imm_offset_hi): Likewise.
7380 (aarch64_simd_shift_imm_offset_si): Likewise.
7381 (aarch64_simd_shift_imm_offset_di): Likewise.
7382 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
7383 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
7384 (aarch64_simd_shift_imm_bitsize_si): Likewise.
7385 (aarch64_simd_shift_imm_bitsize_di): Likewise.
7386
7387 2014-09-25 Jiong Wang <jiong.wang@arm.com>
7388
7389 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
7390 new created BB as the intersection of live-in from "old_dest" and
7391 live-out from "bb".
7392
7393 2014-09-25 Felix Yang <felix.yang@huawei.com>
7394
7395 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
7396 * genautomata.c (merge_states): Ditto.
7397
7398 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
7399
7400 PR target/62218
7401 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
7402 in instruction sequence.
7403
7404 2014-09-25 Nick Clifton <nickc@redhat.com>
7405
7406 PR target/62218
7407 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
7408 in instruction sequence.
7409
7410 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7411
7412 PR target/63335
7413 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
7414 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
7415
7416 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
7417 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7418 Anna Tikhonova <anna.tikhonova@intel.com>
7419 Ilya Tocar <ilya.tocar@intel.com>
7420 Andrey Turetskiy <andrey.turetskiy@intel.com>
7421 Ilya Verbin <ilya.verbin@intel.com>
7422 Kirill Yukhin <kirill.yukhin@intel.com>
7423 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7424
7425 * config/i386/sse.md
7426 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
7427 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
7428 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
7429 (define_expand "<avx512>_perm<mode>_mask"): ... this.
7430 Use VI8F_256_512 mode iterator.
7431 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
7432 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
7433
7434 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
7435 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7436 Anna Tikhonova <anna.tikhonova@intel.com>
7437 Ilya Tocar <ilya.tocar@intel.com>
7438 Andrey Turetskiy <andrey.turetskiy@intel.com>
7439 Ilya Verbin <ilya.verbin@intel.com>
7440 Kirill Yukhin <kirill.yukhin@intel.com>
7441 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7442
7443 * config/i386/sse.md
7444 (define_insn "avx_movshdup256<mask_name>"): Add masking.
7445 (define_insn "sse3_movshdup<mask_name>"): Ditto.
7446 (define_insn "avx_movsldup256<mask_name>"): Ditto.
7447 (define_insn "sse3_movsldup<mask_name>"): Ditto.
7448 (define_insn "vec_dupv2df<mask_name>"): Ditto.
7449 (define_insn "*vec_concatv2df"): Add EVEX version.
7450
7451 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
7452 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7453 Anna Tikhonova <anna.tikhonova@intel.com>
7454 Ilya Tocar <ilya.tocar@intel.com>
7455 Andrey Turetskiy <andrey.turetskiy@intel.com>
7456 Ilya Verbin <ilya.verbin@intel.com>
7457 Kirill Yukhin <kirill.yukhin@intel.com>
7458 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7459
7460 * config/i386/sse.md
7461 (define_insn "vec_set<mode>_0"): Add EVEX version.
7462
7463 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
7464 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7465 Anna Tikhonova <anna.tikhonova@intel.com>
7466 Ilya Tocar <ilya.tocar@intel.com>
7467 Andrey Turetskiy <andrey.turetskiy@intel.com>
7468 Ilya Verbin <ilya.verbin@intel.com>
7469 Kirill Yukhin <kirill.yukhin@intel.com>
7470 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7471
7472 * config/i386/sse.md
7473 (define_insn
7474 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
7475 New.
7476 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
7477 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
7478 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
7479 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
7480 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
7481 (define_expand "sse2_cvtpd2ps_mask): New.
7482 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
7483 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
7484
7485 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
7486 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7487 Anna Tikhonova <anna.tikhonova@intel.com>
7488 Ilya Tocar <ilya.tocar@intel.com>
7489 Andrey Turetskiy <andrey.turetskiy@intel.com>
7490 Ilya Verbin <ilya.verbin@intel.com>
7491 Kirill Yukhin <kirill.yukhin@intel.com>
7492 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7493
7494 * config/i386/i386.c
7495 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
7496 (ufix_notruncv8dfv8si2_mask_round): ... this.
7497 * config/i386/sse.md
7498 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
7499 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
7500 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
7501 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
7502 (define_expand "sse2_cvtpd2dq"): Delete.
7503 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
7504 make 2nd operand const0 vector.
7505 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
7506 Delete.
7507 (define_mode_attr pd2udqsuff): New.
7508 (define_insn
7509 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
7510 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
7511 (define_insn "*avx_cvttpd2dq256_2"): Delete.
7512 (define_expand "sse2_cvttpd2dq"): Ditto.
7513 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
7514 make 2nd operand const0 vector.
7515
7516 2014-09-25 Jakub Jelinek <jakub@redhat.com>
7517
7518 PR tree-optimization/63341
7519 * tree-vectorizer.h (vect_create_data_ref_ptr,
7520 vect_create_addr_base_for_vector_ref): Add another tree argument
7521 defaulting to NULL_TREE.
7522 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
7523 argument, pass it down to vect_create_addr_base_for_vector_ref.
7524 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
7525 add that to base_offset too if non-NULL.
7526 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
7527 for dr_explicit_realign_optimized set it to vector byte size
7528 - 1 instead of setting offset, pass byte_offset down to
7529 vect_create_data_ref_ptr.
7530
7531 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
7532
7533 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
7534 forgotten debug output; canonicalize querries more wtih LTO.
7535
7536 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
7537
7538 * cgraph.h (class ipa_polymorphic_call_context): Move here from
7539 ipa-utils.h; add stream_int and stream_out methods.
7540 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
7541 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
7542 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
7543 add CONTEXT.
7544 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
7545 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
7546 ipa_polymorphic_call_context::clear_speculation,
7547 ipa_polymorphic_call_context::clear_outer_type): Move here from
7548 ipa-utils.h
7549 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
7550 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
7551 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
7552 ipa_polymorphic_call_context::clear_speculation,
7553 ipa_polymorphic_call_context::clear_outer_type): Likewise.
7554 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
7555 streamer-hooks.h
7556 (ipa_polymorphic_call_context::stream_out): New method.
7557 (ipa_polymorphic_call_context::stream_in): New method.
7558 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
7559 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
7560 OUTER_TYPE.
7561 (ipa_analyze_call_uses): Simplify.
7562 (update_indirect_edges_after_inlining): Do not care about outer_type.
7563 (ipa_write_indirect_edge_info): Update.
7564 (ipa_write_indirect_edge_info): Likewise.
7565 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
7566 (dump_edge_flags): Break out from ...
7567 (cgraph_node::dump): ... here; dump indirect edges.
7568
7569 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
7570
7571 * ipa-utils.h (polymorphic_call_context): Add
7572 metdhos dump, debug and clear_outer_type.
7573 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
7574 (ipa_polymorphic_call_context::clear_outer_type): New method.
7575 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
7576 * ipa-devirt.c (types_odr_comparable): New function.
7577 (types_must_be_same_for_odr): New function.
7578 (odr_subtypes_equivalent_p): Simplify.
7579 (possible_placement_new): Break out from ...
7580 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
7581 be more cuatious about returning false in cases the context may be
7582 valid in derived type or via placement new.
7583 (contains_type_p): Clear maybe_derived_type
7584 (ipa_polymorphic_call_context::dump): New method.
7585 (ipa_polymorphic_call_context::debug): New method.
7586 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
7587 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
7588 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
7589 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
7590 to suceed on all valid cases; remove confused sanity check.
7591 (dump_possible_polymorphic_call_targets): Simplify.
7592
7593 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
7594
7595 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
7596 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
7597 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
7598 varpool.c: Rename all instances of DECL_ABSTRACT to
7599 DECL_ABSTRACT_P.
7600
7601 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7602
7603 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
7604 special handling for stores whose SET_SRC is an UNSPEC (such as
7605 UNSPEC_STVE).
7606
7607 2014-09-24 Jiong Wang <jiong.wang@arm.com>
7608
7609 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
7610 !REG_P (src) to release more instruction sink opportunities.
7611
7612 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
7613
7614 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
7615 move costs for 128-bit types.
7616
7617 2014-09-24 Martin Jambor <mjambor@suse.cz>
7618
7619 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
7620 when duplicating a PASS_THROUGH jump function when creating a
7621 speculative edge.
7622
7623 2014-09-24 Marek Polacek <polacek@redhat.com>
7624
7625 PR c/61405
7626 PR c/53874
7627 * asan.c (maybe_instrument_call): Add default case.
7628 * ipa-pure-const.c (special_builtin_state): Likewise.
7629 * predict.c (expr_expected_value_1): Likewise.
7630 * lto-streamer-out.c (write_symbol): Initialize variable.
7631
7632 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7633
7634 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
7635 the lane.
7636 (vmuld_laneq_f64): Likewise.
7637 (vmuls_lane_f32): Likewise.
7638 (vmuls_laneq_f32): Likewise.
7639
7640 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
7641
7642 PR bootstrap/63235
7643 * varpool.c (varpool_node::add): Pass decl attributes
7644 to lookup_attribute.
7645
7646 2014-09-24 Jakub Jelinek <jakub@redhat.com>
7647
7648 PR sanitizer/63316
7649 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
7650
7651 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
7652
7653 PR tree-optimization/63266
7654 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
7655 marker for unknown byte value.
7656 (MARKER_MASK): New macro.
7657 (MARKER_BYTE_UNKNOWN): New macro.
7658 (HEAD_MARKER): New macro.
7659 (do_shift_rotate): Mark bytes with unknown values due to sign
7660 extension when doing an arithmetic right shift. Replace hardcoded
7661 mask for marker by new MARKER_MASK macro.
7662 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
7663 numbers accordingly.
7664
7665 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
7666 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7667 Anna Tikhonova <anna.tikhonova@intel.com>
7668 Ilya Tocar <ilya.tocar@intel.com>
7669 Andrey Turetskiy <andrey.turetskiy@intel.com>
7670 Ilya Verbin <ilya.verbin@intel.com>
7671 Kirill Yukhin <kirill.yukhin@intel.com>
7672 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7673
7674 * config/i386/sse.md
7675 (define_insn
7676 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
7677 Add masking.
7678 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
7679 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
7680
7681 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
7682 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7683 Anna Tikhonova <anna.tikhonova@intel.com>
7684 Ilya Tocar <ilya.tocar@intel.com>
7685 Andrey Turetskiy <andrey.turetskiy@intel.com>
7686 Ilya Verbin <ilya.verbin@intel.com>
7687 Kirill Yukhin <kirill.yukhin@intel.com>
7688 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7689
7690 * config/i386/sse.md
7691 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
7692 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
7693 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
7694 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
7695 (define_expand "avx512vl_pshuflw_mask"): New.
7696 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
7697 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
7698 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
7699 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
7700 (define_expand "avx512vl_pshufhw_mask"): New.
7701 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
7702
7703 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
7704 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7705 Anna Tikhonova <anna.tikhonova@intel.com>
7706 Ilya Tocar <ilya.tocar@intel.com>
7707 Andrey Turetskiy <andrey.turetskiy@intel.com>
7708 Ilya Verbin <ilya.verbin@intel.com>
7709 Kirill Yukhin <kirill.yukhin@intel.com>
7710 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7711
7712 * config/i386/i386.c
7713 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
7714 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
7715 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
7716 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
7717 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
7718 * config/i386/sse.md
7719 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
7720 (define_insn
7721 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
7722 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
7723 (define_insn
7724 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
7725 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
7726 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
7727 (define_expand "avx512vl_pshufd_mask"): New.
7728 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
7729
7730 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
7731 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7732 Anna Tikhonova <anna.tikhonova@intel.com>
7733 Ilya Tocar <ilya.tocar@intel.com>
7734 Andrey Turetskiy <andrey.turetskiy@intel.com>
7735 Ilya Verbin <ilya.verbin@intel.com>
7736 Kirill Yukhin <kirill.yukhin@intel.com>
7737 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7738
7739 * config/i386/i386.c
7740 (CODE_FOR_avx2_extracti128): Rename to ...
7741 (CODE_FOR_avx_vextractf128v4di): this.
7742 (CODE_FOR_avx2_inserti128): Rename to ...
7743 (CODE_FOR_avx_vinsertf128v4di): this.
7744 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
7745 CODE_FOR_avx_vextractf128v4di.
7746 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
7747 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
7748 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
7749 CODE_FOR_avx512vl_vinsertv8si.
7750 * config/i386/sse.md
7751 (define_expand
7752 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
7753 AVX512_VEC mode iterator.
7754 (define_insn
7755 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
7756 Ditto.
7757 (define_expand
7758 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
7759 AVX512_VEC_2 mode iterator.
7760 (define_insn "vec_set_lo_<mode><mask_name>"): New.
7761 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
7762 (define_expand "avx512vl_vinsert<mode>"): Ditto.
7763 (define_insn "avx2_vec_set_lo_v4di"): Delete.
7764 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
7765 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
7766 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
7767 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
7768 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
7769 (define_expand "avx2_extracti128"): Delete.
7770 (define_expand "avx2_inserti128"): Ditto.
7771
7772 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
7773 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7774 Anna Tikhonova <anna.tikhonova@intel.com>
7775 Ilya Tocar <ilya.tocar@intel.com>
7776 Andrey Turetskiy <andrey.turetskiy@intel.com>
7777 Ilya Verbin <ilya.verbin@intel.com>
7778 Kirill Yukhin <kirill.yukhin@intel.com>
7779 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7780
7781 * config/i386/sse.md
7782 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
7783 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
7784 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
7785 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
7786 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
7787 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
7788 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
7789 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
7790 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
7791 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
7792 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
7793 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
7794 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
7795
7796 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
7797
7798 PR rtl-optimization/63210
7799 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
7800 HARD_REGNO is not available for CONFLICT_A.
7801
7802 2014-09-23 Andi Kleen <ak@linux.intel.com>
7803
7804 * cgraph.h (symtab_node): Add no_reorder attribute.
7805 (symbol_table::output_asm_statements): Remove.
7806 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
7807 (cgraph_node::create_version_clone): Dito.
7808 (symbol_table::output_asm_statements): Remove.
7809 * trans-mem.c (ipa_tm_create_version_alias): Dito.
7810 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
7811 (output_in_order): Add no_reorder flag. Only handle no_reorder
7812 nodes when set.
7813 (symbol_table::compile): Add separate pass for no_reorder nodes.
7814 (process_common_attributes): Set no_reorder flag in symtab node.
7815 Add node argument.
7816 (process_function_and_variable_attributes): Pass symtab nodes to
7817 process_common_attributes.
7818 * doc/extend.texi (no_reorder): Document no_reorder attribute.
7819 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
7820 (lto_output_varpool_node): Dito.
7821 (input_overwrite_node): Dito.
7822 (input_varpool_node): Dito.
7823 * varpool.c (varpool_node::add): Set no_reorder attribute.
7824 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
7825 (symbol_table::output_variables): Dito.
7826 * symtab.c (symtab_node::dump_base): Print no_reorder.
7827
7828 2014-09-23 Jiong Wang <jiong.wang@arm.com>
7829
7830 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
7831 be INVALID_REGNUM.
7832
7833 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
7834
7835 * configure: Regenerate.
7836
7837 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
7838
7839 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
7840 when result_mode == shift_mode.
7841
7842 2014-09-23 Kostya Serebryany <kcc@google.com>
7843
7844 Update to match the changed asan API.
7845 * asan.c (asan_global_struct): Update the __asan_global definition
7846 to match the new API.
7847 (asan_add_global): Ditto.
7848 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
7849 to __asan_init_v4.
7850
7851 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
7852
7853 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
7854 refine the constraints used on 32/64-bit floating point moves.
7855 (f32_av): Likewise.
7856 (f64_vsx): Likewise.
7857 (f64_dm): Likewise.
7858 (f64_av): Likewise.
7859 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
7860 (BOOL_REGS_OP1): Likewise.
7861 (BOOL_REGS_OP2): Likewise.
7862 (BOOL_REGS_UNARY): Likewise.
7863 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
7864 32/64-bit floating point moves. Do not use wa, instead use ww/ws
7865 for moves involving VSX registers. Do not use constraints that
7866 target VSX registers for decimal types.
7867 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
7868 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
7869
7870 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
7871
7872 * tree.h (int_bit_position): Turn into inline function;
7873 implement using wide int.
7874 * tree.c (int_bit_position): Remove.
7875
7876 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
7877
7878 PR bootstrap/63280
7879 * target-globals.c (target_globals::~target_globals): Fix location
7880 of ira_int destruction.
7881
7882 2014-09-23 Renlin Li <renlin.li@arm.com>
7883
7884 * config/aarch64/aarch64.md (return): New.
7885 (simple_return): Likewise.
7886 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
7887 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
7888
7889 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
7890
7891 * common/config/aarch64/aarch64-common.c:
7892 (default_options aarch_option_optimization_table):
7893 Default to -fsched-pressure.
7894
7895 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
7896
7897 * cfgcleanup.c (try_optimize_cfg): Do not remove label
7898 with LABEL_PRESERVE_P flag set.
7899
7900 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
7901 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7902 Anna Tikhonova <anna.tikhonova@intel.com>
7903 Ilya Tocar <ilya.tocar@intel.com>
7904 Andrey Turetskiy <andrey.turetskiy@intel.com>
7905 Ilya Verbin <ilya.verbin@intel.com>
7906 Kirill Yukhin <kirill.yukhin@intel.com>
7907 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7908
7909 * config/i386/sse.md
7910 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
7911 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
7912 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
7913 (define_insn "sse2_shufpd_v2df_mask"): New.
7914
7915 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
7916 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7917 Anna Tikhonova <anna.tikhonova@intel.com>
7918 Ilya Tocar <ilya.tocar@intel.com>
7919 Andrey Turetskiy <andrey.turetskiy@intel.com>
7920 Ilya Verbin <ilya.verbin@intel.com>
7921 Kirill Yukhin <kirill.yukhin@intel.com>
7922 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7923
7924 * config/i386/sse.md
7925 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
7926 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
7927 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
7928 (define_insn "sse_shufps_v4sf_mask"): New.
7929
7930 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
7931 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7932 Anna Tikhonova <anna.tikhonova@intel.com>
7933 Ilya Tocar <ilya.tocar@intel.com>
7934 Andrey Turetskiy <andrey.turetskiy@intel.com>
7935 Ilya Verbin <ilya.verbin@intel.com>
7936 Kirill Yukhin <kirill.yukhin@intel.com>
7937 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7938
7939 * config/i386/sse.md
7940 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
7941 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
7942 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
7943 (define_insn "unpcklps128_mask"): New.
7944
7945 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
7946 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7947 Anna Tikhonova <anna.tikhonova@intel.com>
7948 Ilya Tocar <ilya.tocar@intel.com>
7949 Andrey Turetskiy <andrey.turetskiy@intel.com>
7950 Ilya Verbin <ilya.verbin@intel.com>
7951 Kirill Yukhin <kirill.yukhin@intel.com>
7952 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7953
7954 * config/i386/sse.md
7955 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
7956 (define_insn "avx512vl_unpckhpd128_mask"): New.
7957 (define_expand "avx_movddup256<mask_name>"): Add masking.
7958 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
7959 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
7960 (define_insn "avx512vl_unpcklpd128_mask"): New.
7961
7962 2014-09-22 Joseph Myers <joseph@codesourcery.com>
7963
7964 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7965 * doc/tm.texi: Regenerate.
7966 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
7967 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7968 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
7969 Remove.
7970 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7971 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7972 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7973 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7974 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
7975 Remove.
7976 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7977 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7978 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7979 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7980 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7981 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7982 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7983 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7984 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7985 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7986 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
7987 Remove.
7988
7989 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
7990
7991 * tree-ssa-ccp.c (prop_value_d): Rename to ...
7992 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
7993 * ipa-prop.c (struct type_change_info): Rename to ...
7994 (prop_type_change_info): ... this; update uses.
7995 * ggc-page.c (globals): Rename to ...
7996 (static struct ggc_globals): ... this; update uses.
7997 * tree-ssa-loop-im.c (mem_ref): Rename to ...
7998 (im_mem_ref): ... this; update uses.
7999 * ggc-common.c (loc_descriptor): Rename to ...
8000 (ggc_loc_descriptor): ... this; update uses.
8001 * lra-eliminations.c (elim_table): Rename to ...
8002 (lra_elim_table): ... this; update uses.
8003 * bitmap.c (output_info): Rename to ...
8004 (bitmap_output_info): ... this; update uses.
8005 * gcse.c (expr): Rename to ...
8006 (gcse_expr) ... this; update uses.
8007 (occr): Rename to ...
8008 (gcse_occr): .. this; update uses.
8009 * tree-ssa-copy.c (prop_value_d): Rename to ...
8010 (prop_value_t): ... this.
8011 * predict.c (block_info_def): Rename to ...
8012 (block_info): ... this; update uses.
8013 (edge_info_def): Rename to ...
8014 (edge_info): ... this; update uses.
8015 * profile.c (bb_info): Rename to ...
8016 (bb_profile_info): ... this; update uses.
8017 * alloc-pool.c (output_info): Rename to ...
8018 (pool_output_info): ... this; update uses.
8019 * ipa-cp.c (topo_info): Rename to ..
8020 (ipa_topo_info): ... this; update uses.
8021 * tree-nrv.c (nrv_data): Rename to ...
8022 (nrv_data_t): ... this; update uses.
8023 * ipa-split.c (bb_info): Rename to ...
8024 (split_bb_info): ... this one.
8025 * profile.h (edge_info): Rename to ...
8026 (edge_profile_info): ... this one; update uses.
8027 * dse.c (bb_info): Rename to ...
8028 (dse_bb_info): ... this one; update uses.
8029 * cprop.c (occr): Rename to ...
8030 (cprop_occr): ... this one; update uses.
8031 (expr): Rename to ...
8032 (cprop_expr): ... this one; update uses.
8033
8034 2014-09-22 Jason Merrill <jason@redhat.com>
8035
8036 * Makefile.in (check-parallel-%): Add @.
8037
8038 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
8039
8040 * config/aarch64/geniterators.sh: New.
8041 * config/aarch64/iterators.md (VDQF_DF): New.
8042 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
8043 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
8044
8045 2014-09-22 Peter A. Bigot <pab@pabigot.com>
8046
8047 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
8048 -lnosys when -msim absent.
8049
8050 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
8051
8052 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
8053
8054 2014-09-22 Richard Biener <rguenther@suse.de>
8055
8056 * gimplify.c (gimplify_init_constructor): Do not leave
8057 non-GIMPLE vector constructors around.
8058 * tree-cfg.c (verify_gimple_assign_single): Verify that
8059 CONSTRUCTORs have gimple elements.
8060
8061 2014-09-22 Jakub Jelinek <jakub@redhat.com>
8062
8063 PR debug/63328
8064 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
8065 insert a debug source bind stmt setting DEBUG_EXPR_DECL
8066 instead of a normal gimple assignment stmt.
8067
8068 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
8069
8070 * config/bfin/bfin.md: Fix use of constraints in define_split.
8071
8072 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
8073
8074 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
8075 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
8076
8077 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
8078
8079 * hard-reg-set.h: Include hash-table.h.
8080 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
8081 field.
8082 * target-globals.c (target_globals::~target_globals): Call
8083 hard_regs->finalize.
8084 * rtl.h (subreg_shape): New structure.
8085 (shape_of_subreg): New function.
8086 (simplifiable_subregs): Declare.
8087 * reginfo.c (simplifiable_subreg): New structure.
8088 (simplifiable_subregs_hasher): Likewise.
8089 (simplifiable_subregs): New function.
8090 (invalid_mode_changes): Delete.
8091 (alid_mode_changes, valid_mode_changes_obstack): New variables.
8092 (record_subregs_of_mode): Remove subregs_of_mode parameter.
8093 Record valid mode changes in valid_mode_changes.
8094 (find_subregs_of_mode): Remove subregs_of_mode parameter.
8095 Update calls to record_subregs_of_mode.
8096 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
8097 handling. Initialize new variables. Update call to
8098 find_subregs_of_mode.
8099 (invalid_mode_change_p): Check new variables instead of
8100 invalid_mode_changes.
8101 (finish_subregs_of_mode): Finalize new variables instead of
8102 invalid_mode_changes.
8103 (target_hard_regs::finalize): New function.
8104 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
8105 even when CLASS_CANNOT_CHANGE_MODE is undefined.
8106
8107 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
8108
8109 * combine.c (subst): Use simplify_subreg_regno rather than
8110 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
8111
8112 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
8113
8114 * rtl.h (subreg_info): Expand commentary
8115 * rtlanal.c (subreg_get_info): Likewise.
8116
8117 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
8118
8119 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
8120 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
8121 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
8122
8123 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
8124
8125 * config/arm/arm.c: #include "tm-constrs.h"
8126 (thumb1_size_rtx_costs): Adjust rtx costs.
8127
8128 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
8129
8130 * configure.ac (target_header_dir): Move block defining
8131 this to before the block setting inhibit_libc.
8132 (inhibit_libc): When considering $with_headers, just
8133 check it it's explicitly "no". If not, also check if
8134 $target_header_dir/stdio.h is present. If not, set
8135 inhibit_libc=true.
8136 * configure: Regenerate.
8137
8138 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
8139
8140 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
8141
8142 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
8143
8144 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
8145 insn for divides by integer powers of two.
8146 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
8147 (mod<mode>3): Fix formatting.
8148 (three anonymous define_insn and two define_split): Delete.
8149
8150 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
8151
8152 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
8153 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
8154 (floatdisf2_internal2): Ditto.
8155 (ashrdi3_no_power): Ditto. Fix formatting.
8156
8157 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
8158
8159 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
8160 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
8161 Tidy.
8162
8163 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
8164
8165 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
8166 constant, use addsi3 directly.
8167 (three anonymous define_insn, two define_split): Delete.
8168 (sub<mode>3): Move. Do not allow constant second operand.
8169 Generate different insn for constant first operand.
8170 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
8171 (subf<mode>3_imm): New.
8172 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
8173 (*plus_ltu<mode>): Only handle registers.
8174 (*plus_ltu<mode>_1): New. Handle integer third operand.
8175 (*plus_gtu<mode>): Only handle registers.
8176 (*plus_gtu<mode>_1): New. Handle integer third operand.
8177
8178 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
8179
8180 * config/rs6000/rs6000.md (iorxor): New code_iterator.
8181 (iorxor): New code_attr.
8182 (IORXOR): New code_attr.
8183 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
8184 (ior<mode>3, xor<mode>3): Delete.
8185 (<iorxor><mode>3): New.
8186 (splitter for "big" integer ior, xor): New.
8187 (*bool<mode>3): Move. Also handle AND.
8188 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
8189 (splitter for "big" integer ior, xor): Delete.
8190
8191 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
8192
8193 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
8194 (two anonymous define_insn and two define_split): Delete.
8195 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
8196
8197 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
8198
8199 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
8200 (two anonymous define_insn and two define_split): Delete.
8201 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
8202
8203 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
8204
8205 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
8206
8207 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
8208
8209 * config/rs6000/predicates.md (ca_operand): Allow subregs.
8210 (input_operand): Do not allow ca_operand.
8211 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
8212 carry bit, allow SImode and Pmode.
8213 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
8214
8215 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
8216
8217 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
8218 clobbered registers using clobber_reg. Remove UNSPEC decoration.
8219 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
8220 (*call_rex64_ms_sysv): Remove.
8221 (*call_value_rex64_ms_sysv): Ditto.
8222 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
8223
8224 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
8225
8226 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
8227 operand 3 to "CnL".
8228
8229 2014-09-20 Andreas Schwab <schwab@suse.de>
8230
8231 * config/ia64/ia64.md: Remove constraints from define_split
8232 patterns.
8233
8234 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
8235
8236 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
8237 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
8238 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
8239 (get_dynamic_type): Remove.
8240 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
8241 (clear_speculation): Bring to ipa-deivrt.h
8242 (get_class_context): Rename to ...
8243 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
8244 (contains_type_p): Update.
8245 (get_dynamic_type): Rename to ...
8246 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
8247 (possible_polymorphic_call_targets): UPdate.
8248 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
8249 * ipa-prop.c (ipa_analyze_call_uses): Update.
8250
8251 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
8252
8253 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
8254 privatize dynamic TLS variables.
8255
8256 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
8257
8258 * diagnostic.c (warning_n): New function.
8259 * diagnostic-core.h (warning_n): Declare.
8260 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
8261 output dynamic counts when available.
8262
8263 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
8264
8265 PR tree-optimization/63255
8266 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
8267 issue in setting body_removed flag.
8268
8269 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
8270
8271 PR c++/61825
8272 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
8273 that visibility change is possible
8274 (handle_weakref_attribute): Likewise.
8275 * cgraph.h (symtab_node): Add method get_create and
8276 field refuse_visibility_changes.
8277 (symtab_node::get_create): New method.
8278 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
8279 * varasm.c (mark_weak): Verify that visibility change is
8280 possible.
8281
8282 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
8283
8284 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
8285 for base_reg_operand to be common between LO_SUM and PLUS.
8286 (fusion_gpr_mem_combo): New predicate to match a fused address
8287 that combines the addis and memory offset address.
8288
8289 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
8290 calling signature.
8291 (emit_fusion_gpr_load): Likewise.
8292
8293 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
8294 signature to pass each argument separately, rather than
8295 using an operands array. Rewrite the insns found by peephole2 to
8296 be a single insn, rather than hoping the insns will still be
8297 together when the peephole pass is done. Drop being called via a
8298 normal peephole.
8299 (emit_fusion_gpr_load): Change calling signature to be called from
8300 the fusion_gpr_load_<mode> insns with a combined memory address
8301 instead of the peephole pass passing the addis and offset
8302 separately.
8303
8304 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
8305 fusion.
8306 (power8 fusion peephole): Drop support for doing power8 via a
8307 normal peephole that was created by the peephole2 pass.
8308 (power8 fusion peephole2): Create a new insn with the fused
8309 address, so that the fused operation is kept together after
8310 register allocation is done.
8311 (fusion_gpr_load_<mode>): Likewise.
8312
8313 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
8314
8315 PR lto/63286
8316 * tree.c (need_assembler_name_p): Do not mangle variadic types.
8317
8318 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
8319
8320 * recog.c (scratch_operand): Do not simply allow all hard registers:
8321 only allow those that are allocatable.
8322
8323 2014-09-19 Felix Yang <felix.yang@huawei.com>
8324
8325 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
8326 comments and fix spacing to conform to coding style.
8327
8328 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
8329
8330 * genrecog.c (validate_pattern): Allow empty constraints in
8331 a match_scratch.
8332
8333 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
8334
8335 * dwarf2out.c (decl_ultimate_origin): Update comment.
8336 * tree.c (block_ultimate_origin): Same.
8337
8338 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8339
8340 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
8341 Update GCC version name to GCC 5.
8342 (rs6000_function_arg_boundary): Likewise.
8343 (rs6000_function_arg): Likewise.
8344
8345 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
8346
8347 * config/sh/sh.md: Fix use of constraints in define_split.
8348
8349 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
8350
8351 PR ipa/61998
8352 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
8353
8354 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
8355
8356 * doc/md.texi (Modifiers): Consistently use "read/write"
8357 nomenclature rather than "input/output".
8358 * genrecog.c (constraints_supported_in_insn_p): New.
8359 (validate_pattern): If needed, also check constraints on
8360 MATCH_SCRATCH operands.
8361 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
8362 operands with no '=' or '+' modifier.
8363
8364 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
8365
8366 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
8367 scratch register as written.
8368
8369 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8370
8371 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
8372 assignment.
8373
8374 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8375
8376 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
8377 expanders.
8378
8379 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8380
8381 PR target/62662
8382 * config/s390/s390.c (s390_emit_epilogue): When doing the return
8383 address load optimization force s390_optimize_prologue to leave it
8384 that way. Only do the optimization if we already decided to push
8385 r14 into a stack slot.
8386
8387 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
8388
8389 * asan.c (build_check_stmt): Alignment arg was added.
8390 (asan_expand_check_ifn): Optimization for alignment >= 8.
8391
8392 2014-09-19 Olivier Hainque <hainque@adacore.com>
8393
8394 * config/i386/vxworksae.h: Remove obsolete definitions.
8395 (STACK_CHECK_PROTECT): Define.
8396 * config/i386/vx-common.h: Remove. Merge contents within
8397 config/i386/vxworks.h.
8398 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
8399 i386/vx-common.h.
8400
8401 2014-09-19 Olivier Hainque <hainque@adacore.com>
8402
8403 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
8404 * config/rs6000/t-vxworksmils: New file.
8405 * config/rs6000/vxworksmils.h: New file.
8406
8407 2014-09-19 Olivier Hainque <hainque@adacore.com>
8408
8409 * varasm.c (default_section_type_flags): Flag .persistent.bss
8410 sections as SECTION_BSS.
8411
8412 2014-09-19 Nick Clifton <nickc@redhat.com>
8413
8414 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
8415 pop'ed registers so that DCE does not eliminate them.
8416
8417 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
8418
8419 PR lto/63298
8420 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
8421
8422 2014-09-18 Joseph Myers <joseph@codesourcery.com>
8423
8424 * system.h (LIBGCC2_TF_CEXT): Poison.
8425 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
8426 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
8427 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
8428 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
8429 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
8430 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
8431 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
8432 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
8433 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
8434
8435 2014-09-19 Kito Cheng <kito@0xlab.org>
8436
8437 * except.h: Fix header guard.
8438 * addresses.h: Add missing header guard.
8439 * cfghooks.h: Likewise.
8440 * collect-utils.h: Likewise.
8441 * collect2-aix.h: Likewise.
8442 * conditions.h: Likewise.
8443 * cselib.h: Likewise.
8444 * dwarf2asm.h: Likewise.
8445 * graphds.h: Likewise.
8446 * graphite-scop-detection.h: Likewise.
8447 * gsyms.h: Likewise.
8448 * hw-doloop.h: Likewise.
8449 * incpath.h: Likewise.
8450 * ipa-inline.h: Likewise.
8451 * ipa-ref.h: Likewise.
8452 * ira-int.h: Likewise.
8453 * ira.h: Likewise.
8454 * lra-int.h: Likewise.
8455 * lra.h: Likewise.
8456 * lto-section-names.h: Likewise.
8457 * read-md.h: Likewise.
8458 * reload.h: Likewise.
8459 * rtl-error.h: Likewise.
8460 * sdbout.h: Likewise.
8461 * targhooks.h: Likewise.
8462 * tree-affine.h: Likewise.
8463 * xcoff.h: Likewise.
8464 * xcoffout.h: Likewise.
8465
8466 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
8467
8468 PR debug/63285
8469 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
8470 if advance != 0.
8471
8472 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
8473
8474 PR target/61360
8475 * lra.c (lra): Call recog_init.
8476
8477 2014-09-18 Jakub Jelinek <jakub@redhat.com>
8478
8479 PR c++/62017
8480 * asan.c (transform_statements): Don't instrument clobber statements.
8481
8482 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8483
8484 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
8485 to neon_load1_1reg<q>.
8486
8487 2014-09-17 Jakub Jelinek <jakub@redhat.com>
8488
8489 PR debug/63284
8490 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
8491 if there are only debug stmts after the noreturn call, instead
8492 remove the debug stmts.
8493
8494 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
8495
8496 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
8497 (odr_types_equivalent_p): Use pair hash.
8498 (odr_subtypes_equivalent_p): Likewise, do structural compare
8499 on ODR types that may be mismatched.
8500 (warn_odr): Support warning when only one field is given.
8501 (odr_types_equivalent_p): Strenghten comparsions made;
8502 support VOIDtype.
8503 (add_type_duplicate): Update VISITED hash set.
8504
8505 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
8506
8507 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
8508 Enable selection of 'posix' or no thread model.
8509
8510 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
8511
8512 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
8513 when architecture is older than ARMv7.
8514
8515 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
8516
8517 PR target/61853
8518 * config/pa/pa.c (pa_function_value): Directly handle aggregates
8519 that fit exactly in a word or double word.
8520
8521 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
8522
8523 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
8524 zmm/k regs support.
8525
8526 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
8527 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8528 Anna Tikhonova <anna.tikhonova@intel.com>
8529 Ilya Tocar <ilya.tocar@intel.com>
8530 Andrey Turetskiy <andrey.turetskiy@intel.com>
8531 Ilya Verbin <ilya.verbin@intel.com>
8532 Kirill Yukhin <kirill.yukhin@intel.com>
8533 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8534
8535 * config/i386/i386.c
8536 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
8537 * config/i386/sse.md
8538 (define_mode_iterator VI48F_256): New.
8539 (define_mode_attr extract_type): Ditto.
8540 (define_mode_attr extract_suf): Ditto.
8541 (define_mode_iterator AVX512_VEC): Ditto.
8542 (define_expand
8543 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
8544 AVX512_VEC.
8545 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
8546 (define_insn
8547 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
8548 Ditto.
8549 (define_mode_attr extract_type_2): Ditto.
8550 (define_mode_attr extract_suf_2): Ditto.
8551 (define_mode_iterator AVX512_VEC_2): Ditto.
8552 (define_expand
8553 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
8554 AVX512_VEC_2 mode iterator.
8555 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
8556 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
8557 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
8558 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
8559 (define_split for V16FI mode): Ditto.
8560 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
8561 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
8562 (define_split for VI8F_256 mode): Ditto.
8563 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
8564 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
8565 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
8566 (define_split for VI4F_256 mode): Ditto.
8567 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
8568 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
8569 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
8570 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
8571 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
8572 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
8573 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
8574 Update `type' attribute, remove explicit `memory' attribute calculation.
8575
8576 2014-09-16 Kito Cheng <kito@0xlab.org>
8577
8578 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
8579 ira_spilled_reg_stack_slots_num if using lra.
8580 (do_reload): Remove release ira_spilled_reg_stack_slots part.
8581 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
8582 make sure not using lra.
8583 (ira_reuse_stack_slot): Likewise.
8584 (ira_mark_new_stack_slot): Likewise.
8585
8586 2014-09-15 Andi Kleen <ak@linux.intel.com>
8587
8588 * function.c (allocate_struct_function): Force
8589 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
8590 profiling is disabled.
8591
8592 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
8593
8594 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
8595 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
8596 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
8597 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
8598 macro with statically checked member functions.
8599 * rtl.h (rtx_insn::deleted): New method.
8600 (rtx_insn::set_deleted): Likewise.
8601 (rtx_insn::set_undeleted): Likewise.
8602 (INSN_DELETED_P): Remove.
8603
8604 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
8605
8606 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
8607 result of emit_jump_insn_before to a new variable.
8608 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
8609 (mark_jump_label_1): Likewise.
8610 (mark_jump_label_asm): Likewise.
8611 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
8612 * rtl.h (mark_jump_label): Adjust.
8613
8614 2014-09-15 Jakub Jelinek <jakub@redhat.com>
8615
8616 * Makefile.in (dg_target_exps): Remove.
8617 (check_gcc_parallelize): Change to just an upper bound number.
8618 (check-%-subtargets): Always print the non-parallelized goals.
8619 (check_p_vars, check_p_comma, check_p_subwork): Remove.
8620 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
8621 check_p_numbers3, check_p_numbers4, check_p_numbers5,
8622 check_p_numbers6): New variables.
8623 (check_p_numbers): Set to sequence from 1 to 9999.
8624 (check_p_subdirs): Set to sequence from 1 to minimum of
8625 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
8626 or 128.
8627 (check-%, check-parallel-%): Rewritten so that for parallelized
8628 testing each job runs all the *.exp files, with
8629 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
8630
8631 2014-09-15 David Malcolm <dmalcolm@redhat.com>
8632
8633 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
8634 rtx to rtx_insn *.
8635 (arc_sets_cc_p): Likewise.
8636 * config/arc/arc.c (arc_print_operand): Use methods of
8637 "final_sequence" for clarity, and to enable strengthening of
8638 locals "jump" and "delay" from rtx to rtx_insn *.
8639 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
8640 rtx_insn *; use method of rtx_sequence for typesafety.
8641 (arc_get_insn_variants): Use insn method of rtx_sequence for
8642 typesafety.
8643 (arc_pad_return): Likewise.
8644 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
8645 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
8646 dyn_cast to rtx_sequence *, using insn method for typesafety.
8647 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
8648 rtx_sequence * and use insn method when invoking get_attr_length.
8649 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
8650 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
8651 rtx_sequence *, introducing a local "seq", using its insn method
8652 from typesafety and clarity.
8653 (add_sched_insns_for_speculation): Strengthen local "next" from
8654 rtx to rtx_insn *.
8655 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
8656 (predicate_insn): Likewise.
8657 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
8658 second param.
8659 * config/cris/cris.c (cris_notice_update_cc): Likewise.
8660 * config/epiphany/epiphany-protos.h
8661 (extern void epiphany_insert_mode_switch_use): Likewise for param
8662 "insn".
8663 (get_attr_sched_use_fpu): Likewise for param.
8664 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
8665 Likewise for param "insn".
8666 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
8667 param "insn" of "target_insert_mode_switch_use" callback.
8668 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
8669 (frv_issues_to_branch_unit_p): Likewise.
8670 (frv_pack_insn_p): Likewise.
8671 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
8672 const rtx * (i.e. mutable rtx_def * const *) to
8673 rtx_insn * const *.
8674 * config/i386/i386-protos.h (standard_sse_constant_opcode):
8675 Strengthen first param from rtx to rtx_insn *.
8676 (output_fix_trunc): Likewise.
8677 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
8678 (output_fix_trunc): Likewise.
8679 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
8680 local "insn".
8681 (min_insn_size): Likewise for param "insn".
8682 (get_mem_group): Likewise.
8683 (is_cmp): Likewise.
8684 (get_insn_path): Likewise.
8685 (get_insn_group): Likewise.
8686 (count_num_restricted): Likewise.
8687 (fits_dispatch_window): Likewise.
8688 (add_insn_window): Likewise.
8689 (add_to_dispatch_window): Likewise.
8690 (debug_insn_dispatch_info_file): Likewise.
8691 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
8692 first param.
8693 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
8694 "cmp" and local "prev".
8695 (m32c_output_compare): Likewise for param "insn".
8696 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
8697 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
8698 (define_predicate "large_insn_p"): Likewise.
8699 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
8700 param from rtx to rtx_insn *.
8701 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
8702 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
8703 (m68k_sched_attr_size): Likewise.
8704 (sched_get_opxy_mem_type): Likewise for param "insn".
8705 (m68k_sched_attr_op_mem): Likewise.
8706 (sched_mem_operand_p): Likewise.
8707 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
8708 * config/mep/mep.c (mep_multi_slot): Likewise.
8709 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
8710 first param.
8711 (mips_sync_loop_insns): Likewise.
8712 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
8713 method of "final_sequence" for typesafety.
8714 (mips_process_sync_loop): Strengthen param "insn" from rtx to
8715 rtx_insn *.
8716 (mips_output_sync_loop): Likewise.
8717 (mips_sync_loop_insns): Likewise.
8718 (mips_74k_agen_init): Likewise.
8719 (mips_sched_init): Use NULL rather than NULL_RTX when working with
8720 insns.
8721 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
8722 Strengthen param "insn" from rtx to rtx_insn *.
8723 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
8724 local "insn".
8725 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
8726 param.
8727 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
8728 "insn". Use method of rtx_sequence for typesafety.
8729 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
8730 rtx_insn *.
8731 (branch_needs_nop_p): Likewise.
8732 (use_skip_p): Likewise.
8733 (pa_insn_refs_are_delayed): Likewise.
8734 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
8735 for locals "insn", "ninsn".
8736 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
8737 "insn".
8738 (is_cracked_insn): Likewise.
8739 (is_branch_slot_insn): Likewise.
8740 (is_nonpipeline_insn): Likewise.
8741 (insn_terminates_group_p): Likewise.
8742 (insn_must_be_first_in_group): Likewise.
8743 (insn_must_be_last_in_group): Likewise.
8744 (force_new_group): Likewise for param "next_insn".
8745 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
8746 "insn".
8747 (s390_sched_score): Likewise.
8748 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
8749 (rtx sfunc_uses_reg): Likewise for sole param.
8750 * config/sh/sh.c (sh_print_operand): Use insn method of
8751 final_sequence for typesafety.
8752 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
8753 Use insn method of final_sequence for typesafety.
8754 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
8755 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
8756 for param.
8757 (eligible_for_return_delay): Likewise.
8758 (eligible_for_sibcall_delay): Likewise.
8759 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
8760 (eligible_for_return_delay): Likewise.
8761 (eligible_for_sibcall_delay): Likewise.
8762 * config/stormy16/stormy16-protos.h
8763 (xstormy16_output_cbranch_hi): Likewise for final param.
8764 (xstormy16_output_cbranch_si): Likewise.
8765 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
8766 (xstormy16_output_cbranch_si): Likewise.
8767 * config/v850/v850-protos.h (notice_update_cc): Likewise.
8768 * config/v850/v850.c (notice_update_cc): Likewise.
8769
8770 * final.c (get_attr_length_1): Strengthen param "insn" and param
8771 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
8772 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
8773 (get_attr_min_length): Likewise.
8774 (shorten_branches): Likewise for signature of locals "length_fun"
8775 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
8776 from a checked cast and use its methods for clarity and to enable
8777 strengthening local "inner_insn" from rtx to rtx_insn *.
8778 * genattr.c (gen_attr): When writing out the prototypes of the
8779 various generated "get_attr_" functions, strengthen the params of
8780 the non-const functions from rtx to rtx_insn *.
8781 Similarly, strengthen the params of insn_default_length,
8782 insn_min_length, insn_variable_length_p, insn_current_length.
8783 (main): Similarly, strengthen the param of num_delay_slots,
8784 internal_dfa_insn_code, insn_default_latency, bypass_p,
8785 insn_latency, min_issue_delay, print_reservation,
8786 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
8787 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
8788 to hook_int_rtx_insn_unreachable.
8789 * genattrtab.c (write_attr_get): When writing out the generated
8790 "get_attr_" functions, strengthen the param "insn" from rtx to
8791 rtx_insn *, eliminating a checked cast.
8792 (make_automaton_attrs): When writing out prototypes of
8793 "internal_dfa_insn_code_", "insn_default_latency_" functions
8794 and the "internal_dfa_insn_code" and "insn_default_latency"
8795 callbacks, strengthen their params from rtx to rtx_insn *
8796 * genautomata.c (output_internal_insn_code_evaluation): When
8797 writing out code, add a checked cast from rtx to rtx_insn * when
8798 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
8799 (output_dfa_insn_code_func): Strengthen param of generated
8800 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
8801 (output_trans_func): Likewise for generated function
8802 "state_transition".
8803 (output_internal_insn_latency_func): When writing out generated
8804 function "internal_insn_latency", rename params from "insn" and
8805 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
8806 locals "insn" and "insn2" as rtx_insn * with checked casts once
8807 we've proven that we're not dealing with const0_rtx.
8808 (output_insn_latency_func): Strengthen param of generated
8809 function "insn_latency" from rtx to rtx_insn *.
8810 (output_print_reservation_func): Likewise for generated function
8811 "print_reservation".
8812 (output_insn_has_dfa_reservation_p): Likewise for generated
8813 function "insn_has_dfa_reservation_p".
8814 * hooks.c (hook_int_rtx_unreachable): Rename to...
8815 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
8816 from rtx to rtx_insn *.
8817 * hooks.h (hook_int_rtx_unreachable): Likewise.
8818 (extern int hook_int_rtx_insn_unreachable): Likewise.
8819 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
8820 (get_attr_min_length): Likewise.
8821 * recog.c (get_enabled_alternatives): Likewise.
8822 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
8823 * reorg.c (find_end_label): Introduce local rtx "pat" and
8824 strengthen local "insn" from rtx to rtx_insn *.
8825 (redundant_insn): Use insn method of "seq" rather than element for
8826 typesafety; strengthen local "control" from rtx to rtx_insn *.
8827 * resource.c (mark_referenced_resources): Add checked cast to
8828 rtx_insn * within INSN/JUMP_INSN case.
8829 (mark_set_resources): Likewise.
8830 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
8831 rtx to rtx_insn *.
8832
8833 2014-09-15 David Malcolm <dmalcolm@redhat.com>
8834
8835 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
8836 param "label" from rtx to rtx_insn *.
8837 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
8838 and local "op".
8839 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
8840 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
8841 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
8842 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
8843 * final.c (default_label_align_after_barrier_max_skip): Strengthen
8844 param from rtx to rtx_insn *.
8845 (default_loop_align_max_skip): Likewise.
8846 (default_label_align_max_skip): Likewise.
8847 (default_jump_align_max_skip): Likewise.
8848 * target.def (label_align_after_barrier_max_skip): Likewise.
8849 (loop_align_max_skip): Likewise.
8850 (label_align_max_skip): Likewise.
8851 (jump_align_max_skip): Likewise.
8852 * targhooks.h (default_label_align_after_barrier_max_skip):
8853 Likewise.
8854 (default_loop_align_max_skip): Likewise.
8855 (default_label_align_max_skip): Likewise.
8856 (default_jump_align_max_skip): Likewise.
8857
8858 2014-09-15 David Malcolm <dmalcolm@redhat.com>
8859
8860 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
8861 from const_rtx to const rtx_insn *. Update union members from rtx
8862 to rtx_insn *.
8863 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
8864 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
8865 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
8866 strengthen both params from const_rtx to const rtx_insn *.
8867 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
8868 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
8869 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
8870 rtx_insn *.
8871 * target.def (can_follow_jump): Strengthen both params from
8872 const_rtx to const rtx_insn *, and update default implementation
8873 from hook_bool_const_rtx_const_rtx_true to
8874 hook_bool_const_rtx_insn_const_rtx_insn_true.
8875
8876 2014-09-15 David Malcolm <dmalcolm@redhat.com>
8877
8878 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
8879 "insn" from rtx to rtx_insn *.
8880 * sched-int.h (deps_start_bb): Likewise for 2nd param.
8881
8882 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
8883 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8884 Anna Tikhonova <anna.tikhonova@intel.com>
8885 Ilya Tocar <ilya.tocar@intel.com>
8886 Andrey Turetskiy <andrey.turetskiy@intel.com>
8887 Ilya Verbin <ilya.verbin@intel.com>
8888 Kirill Yukhin <kirill.yukhin@intel.com>
8889 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8890
8891 * config/i386/sse.md
8892 (define_insn "vcvtph2ps<mask_name>"): Add masking.
8893 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
8894 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
8895 (define_expand "vcvtps2ph_mask"): New.
8896 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
8897 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
8898 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
8899
8900 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
8901 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8902 Anna Tikhonova <anna.tikhonova@intel.com>
8903 Ilya Tocar <ilya.tocar@intel.com>
8904 Andrey Turetskiy <andrey.turetskiy@intel.com>
8905 Ilya Verbin <ilya.verbin@intel.com>
8906 Kirill Yukhin <kirill.yukhin@intel.com>
8907 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8908
8909 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
8910 New.
8911 (define_mode_iterator VI24_AVX512BW_1): Ditto.
8912 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
8913 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
8914 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
8915 also for TARGET_AVX512VL.
8916 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
8917
8918 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
8919
8920 * doc/install.texi (Options specification): add
8921 --disable-libsanitizer item.
8922
8923 2014-09-14 James Clarke <jrtc27@jrtc27.com>
8924 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8925
8926 PR target/61407
8927 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
8928 and above.
8929 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
8930 kernel version check to avoid incrementing it after every major OS X
8931 release.
8932 (darwin_default_min_version): Avoid static memory buffer.
8933
8934 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
8935
8936 * tree.c (need_assembler_name_p): Store C++ type mangling only
8937 for aggregates.
8938
8939 2014-09-13 Marek Polacek <polacek@redhat.com>
8940
8941 * tree.c (protected_set_expr_location): Don't check whether T is
8942 non-null here.
8943
8944 2014-09-12 DJ Delorie <dj@redhat.com>
8945
8946 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
8947 (extend_and_shift1_hipsi2): Likewise.
8948 (extend_and_shift2_hipsi2): Likewise.
8949
8950 2014-09-12 David Malcolm <dmalcolm@redhat.com>
8951
8952 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
8953 with NULL when dealing with an insn.
8954 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
8955 from rtx to rtx_insn *.
8956 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
8957 const_rtx to const rtx_insn *.
8958 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
8959
8960 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
8961
8962 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
8963 assert.
8964
8965 2014-09-12 Joseph Myers <joseph@codesourcery.com>
8966
8967 * target.def (libgcc_floating_mode_supported_p): New hook.
8968 * targhooks.c (default_libgcc_floating_mode_supported_p): New
8969 function.
8970 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
8971 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
8972 (LIBGCC2_HAS_TF_MODE): Remove.
8973 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
8974 * doc/tm.texi: Regenerate.
8975 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
8976 machine mode.
8977 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
8978 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
8979 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
8980 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
8981 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
8982 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
8983 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
8984 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
8985 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
8986 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
8987 function.
8988 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
8989 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
8990 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
8991 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
8992 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
8993 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
8994 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
8995 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
8996 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
8997 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
8998 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
8999 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
9000 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
9001 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
9002 Remove.
9003 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
9004 New macro.
9005 (ia64_libgcc_floating_mode_supported_p): New function.
9006 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
9007 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
9008 (IA64_NO_LIBGCC_TFMODE): Define.
9009 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
9010 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
9011 macro.
9012 (pdp11_scalar_mode_supported_p): New function.
9013 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
9014 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
9015
9016 2014-09-12 Richard Biener <rguenther@suse.de>
9017
9018 PR middle-end/63237
9019 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
9020
9021 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
9022
9023 * tree.c (integer_each_onep): New function.
9024 * tree.h (integer_each_onep): Declare it.
9025 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
9026 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
9027 (X & 1) == 0 for vector and complex.
9028
9029 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
9030
9031 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
9032 for A57.
9033 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
9034 cost to spilling from integer to FP registers.
9035
9036 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
9037
9038 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
9039 move handling.
9040 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
9041 are now handled correctly.
9042
9043 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
9044
9045 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
9046 handling of CALLER_SAVE_REGS and POINTER_REGS.
9047
9048 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
9049
9050 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
9051 the number of hard registers.
9052
9053 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
9054 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9055 Anna Tikhonova <anna.tikhonova@intel.com>
9056 Ilya Tocar <ilya.tocar@intel.com>
9057 Andrey Turetskiy <andrey.turetskiy@intel.com>
9058 Ilya Verbin <ilya.verbin@intel.com>
9059 Kirill Yukhin <kirill.yukhin@intel.com>
9060 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9061
9062 * config/i386/sse.md
9063 (define_mode_iterator VI48_AVX512VL): New.
9064 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
9065 "avx512f_vternlog<mode>_maskz" and update mode iterator.
9066 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
9067 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
9068 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
9069 "avx512f_vternlog<mode>_mask" and update mode iterator.
9070 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
9071 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
9072 iterator.
9073 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
9074 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
9075 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
9076 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
9077 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
9078 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
9079
9080 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
9081 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9082 Anna Tikhonova <anna.tikhonova@intel.com>
9083 Ilya Tocar <ilya.tocar@intel.com>
9084 Andrey Turetskiy <andrey.turetskiy@intel.com>
9085 Ilya Verbin <ilya.verbin@intel.com>
9086 Kirill Yukhin <kirill.yukhin@intel.com>
9087 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9088
9089 * config/i386/sse.md (VI128_256): Delete.
9090 (define_mode_iterator VI124_256): New.
9091 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
9092 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
9093 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
9094 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
9095 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
9096 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
9097 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
9098 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
9099 iterator.
9100 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
9101 in presence of AVX-512.
9102
9103 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
9104 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9105 Anna Tikhonova <anna.tikhonova@intel.com>
9106 Ilya Tocar <ilya.tocar@intel.com>
9107 Andrey Turetskiy <andrey.turetskiy@intel.com>
9108 Ilya Verbin <ilya.verbin@intel.com>
9109 Kirill Yukhin <kirill.yukhin@intel.com>
9110 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9111
9112 * config/i386/sse.md
9113 (define_expand "<avx512>_gathersi<mode>"): Rename from
9114 "avx512f_gathersi<mode>".
9115 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
9116 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
9117 (define_expand "<avx512>_gatherdi<mode>"): Rename from
9118 "avx512f_gatherdi<mode>".
9119 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
9120 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
9121 wide versions.
9122 (define_expand "<avx512>_scattersi<mode>"): Rename from
9123 "avx512f_scattersi<mode>".
9124 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
9125 (define_expand "<avx512>_scatterdi<mode>"): Rename from
9126 "avx512f_scatterdi<mode>".
9127 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
9128
9129 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
9130
9131 * ira.h (ira_finish_once): Delete.
9132 * ira-int.h (target_ira_int::~target_ira_int): Declare.
9133 (target_ira_int::free_ira_costs): Likewise.
9134 (target_ira_int::free_register_move_costs): Likewise.
9135 (ira_finish_costs_once): Delete.
9136 * ira.c (free_register_move_costs): Replace with...
9137 (target_ira_int::free_register_move_costs): ...this new function.
9138 (target_ira_int::~target_ira_int): Define.
9139 (ira_init): Call free_register_move_costs as a member function rather
9140 than a global function.
9141 (ira_finish_once): Delete.
9142 * ira-costs.c (free_ira_costs): Replace with...
9143 (target_ira_int::free_ira_costs): ...this new function.
9144 (ira_init_costs): Call free_ira_costs as a member function rather
9145 than a global function.
9146 (ira_finish_costs_once): Delete.
9147 * target-globals.c (target_globals::~target_globals): Call the
9148 target_ira_int destructor.
9149 * toplev.c: Include lra.h.
9150 (finalize): Call lra_finish_once rather than ira_finish_once.
9151
9152 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
9153
9154 * common.opt (flto-odr-type-merging): New flag.
9155 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
9156 (types_same_for_odr): Likewise.
9157 (odr_subtypes_equivalent_p): Likewise.
9158 (add_type_duplicate): Do not walk type variants.
9159 (register_odr_type): New function.
9160 * ipa-utils.h (register_odr_type): Declare.
9161 (odr_type_p): New function.
9162 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
9163 TYPE_DECLs
9164 * doc/invoke.texi (-flto-odr-type-merging): Document.
9165 * tree.c (need_assembler_name_p): Compute ODR names when asked
9166 for it.
9167 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
9168
9169 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
9170
9171 PR target/63228
9172 * config/i386/i386.c (ix86_option_override_internal): Also turn
9173 off OPTION_MASK_ABI_X32 for -m16.
9174
9175 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
9176
9177 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
9178 GPR instead of P.
9179
9180 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
9181
9182 PR target/58757
9183 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
9184 Directly forward to __*_DENORM_MIN__.
9185
9186 2014-09-11 David Malcolm <dmalcolm@redhat.com>
9187
9188 * rtl.h (LABEL_REF_LABEL): New macro.
9189
9190 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
9191 of XEXP (, 0), where we know that we have a LABEL_REF.
9192 * cfgbuild.c (make_edges): Likewise.
9193 (purge_dead_tablejump_edges): Likewise.
9194 * cfgexpand.c (convert_debug_memory_address): Likewise.
9195 * cfgrtl.c (patch_jump_insn): Likewise.
9196 * combine.c (distribute_notes): Likewise.
9197 * cse.c (hash_rtx_cb): Likewise.
9198 (exp_equiv_p): Likewise.
9199 (fold_rtx): Likewise.
9200 (check_for_label_ref): Likewise.
9201 * cselib.c (rtx_equal_for_cselib_1): Likewise.
9202 (cselib_hash_rtx): Likewise.
9203 * emit-rtl.c (mark_label_nuses): Likewise.
9204 * explow.c (convert_memory_address_addr_space): Likewise.
9205 * final.c (output_asm_label): Likewise.
9206 (output_addr_const): Likewise.
9207 * gcse.c (add_label_notes): Likewise.
9208 * genconfig.c (walk_insn_part): Likewise.
9209 * genrecog.c (validate_pattern): Likewise.
9210 * ifcvt.c (cond_exec_get_condition): Likewise.
9211 (noce_emit_store_flag): Likewise.
9212 (noce_get_alt_condition): Likewise.
9213 (noce_get_condition): Likewise.
9214 * jump.c (maybe_propagate_label_ref): Likewise.
9215 (mark_jump_label_1): Likewise.
9216 (redirect_exp_1): Likewise.
9217 (rtx_renumbered_equal_p): Likewise.
9218 * lra-constraints.c (operands_match_p): Likewise.
9219 * reload.c (operands_match_p): Likewise.
9220 (find_reloads): Likewise.
9221 * reload1.c (set_label_offsets): Likewise.
9222 * reorg.c (get_branch_condition): Likewise.
9223 * rtl.c (rtx_equal_p_cb): Likewise.
9224 (rtx_equal_p): Likewise.
9225 * rtlanal.c (reg_mentioned_p): Likewise.
9226 (rtx_referenced_p): Likewise.
9227 (get_condition): Likewise.
9228 * sched-vis.c (print_value): Likewise.
9229 * varasm.c (const_hash_1): Likewise.
9230 (compare_constant): Likewise.
9231 (const_rtx_hash_1): Likewise.
9232 (output_constant_pool_1): Likewise.
9233
9234 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
9235
9236 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
9237 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
9238 instead of minus.
9239 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
9240 cr6_test_for_lt_reverse): Ditto.
9241
9242 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
9243
9244 PR c++/61489
9245 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
9246
9247 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
9248
9249 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
9250 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
9251 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
9252 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
9253 Delete.
9254
9255 (aarch64_fold_builtin): Remove all reinterpret cases.
9256
9257 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
9258
9259 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
9260
9261 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
9262 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
9263 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
9264 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
9265 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
9266 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
9267 aarch64_reinterpretv2df<mode>): Delete.
9268
9269 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
9270
9271 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
9272 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
9273 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
9274 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
9275 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
9276 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
9277 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
9278 vreinterpret_u32_f64): Use cast.
9279
9280 * config/aarch64/iterators.md (VD_RE): Delete.
9281
9282 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
9283
9284 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
9285 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
9286 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
9287 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
9288 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
9289 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
9290 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
9291 Replace inline assembler with __aarch64_vset_lane_any.
9292
9293 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
9294
9295 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
9296 types.
9297 (vmull_high_lane_s32): Likewise.
9298 (vmull_high_lane_u16): Likewise.
9299 (vmull_high_lane_u32): Likewise.
9300
9301 2014-09-11 Jason Merrill <jason@redhat.com>
9302
9303 PR c++/58678
9304 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
9305
9306 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
9307
9308 PR target/63223
9309 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
9310 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
9311 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
9312
9313 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9314 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9315 Anna Tikhonova <anna.tikhonova@intel.com>
9316 Ilya Tocar <ilya.tocar@intel.com>
9317 Andrey Turetskiy <andrey.turetskiy@intel.com>
9318 Ilya Verbin <ilya.verbin@intel.com>
9319 Kirill Yukhin <kirill.yukhin@intel.com>
9320 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9321
9322 * config/i386/sse.md
9323 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
9324 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
9325 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
9326 New.
9327 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
9328 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
9329 iterator.
9330 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
9331 New.
9332 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
9333 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
9334 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
9335 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
9336 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
9337 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
9338 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
9339 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
9340 iterator.
9341 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
9342 New.
9343 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
9344 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
9345 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
9346
9347 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
9348
9349 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
9350 to access removed nodes.
9351
9352 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
9353
9354 PR tree-optimization/63186
9355 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
9356 (mark_nonssa_use): Likewise.
9357 (verify_non_ssa_vars): Verify all header blocks for label
9358 definitions.
9359
9360 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
9361 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9362 Anna Tikhonova <anna.tikhonova@intel.com>
9363 Ilya Tocar <ilya.tocar@intel.com>
9364 Andrey Turetskiy <andrey.turetskiy@intel.com>
9365 Ilya Verbin <ilya.verbin@intel.com>
9366 Kirill Yukhin <kirill.yukhin@intel.com>
9367 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9368
9369 * config/i386/sse.md
9370 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
9371 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
9372 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
9373 "<avx2_avx512f>_permvar<mode><mask_name>".
9374 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
9375 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
9376 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
9377 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
9378 Ditto.
9379 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
9380 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
9381 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
9382 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
9383
9384 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
9385
9386 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
9387 V2DF, V4SF, DF, and DI modes.
9388 (vsx_fmav2df2): Likewise.
9389 (vsx_float_fix_<mode>2): Likewise.
9390 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
9391
9392 2014-09-10 Xinliang David Li <davidxl@google.com>
9393
9394 PR target/63209
9395 * config/arm/arm.md (movcond_addsi): Handle case where source
9396 and target operands are the same.
9397
9398 2014-09-10 David Malcolm <dmalcolm@redhat.com>
9399
9400 * final.c (this_is_asm_operands): Strengthen this variable from
9401 rtx to const rtx_insn *.
9402 * output.h (this_is_asm_operands): Likewise.
9403 * rtl-error.c (location_for_asm): Strengthen param "insn" from
9404 const_rtx to const rtx_insn *.
9405 (diagnostic_for_asm): Likewise.
9406 * rtl-error.h (error_for_asm): Likewise.
9407 (warning_for_asm): Likewise.
9408
9409 2014-09-10 David Malcolm <dmalcolm@redhat.com>
9410
9411 * genextract.c (print_header): When writing out insn_extract to
9412 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
9413 * recog.h (insn_extract): Strengthen the param from rtx to
9414 rtx_insn *.
9415
9416 2014-09-10 Mike Stump <mikestump@comcast.net>
9417
9418 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
9419 8.6.1.
9420
9421 2014-09-10 Martin Jambor <mjambor@suse.cz>
9422
9423 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
9424 (analyze): Do not set analyze flag if expand_thunk returns false;.
9425 (create_wrapper): Likewise.
9426 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
9427
9428 2014-09-10 Martin Jambor <mjambor@suse.cz>
9429
9430 PR ipa/61654
9431 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
9432 new decl properly. Analyze the new thunk if it is expanded.
9433
9434 2014-09-10 Andreas Schwab <schwab@suse.de>
9435
9436 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
9437 [USED_FOR_TARGET]: Define.
9438
9439 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
9440
9441 * config/mips/mips.c (mips_secondary_reload_class): Handle
9442 regno < 0 case.
9443
9444 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
9445
9446 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
9447 assignment.
9448
9449 2014-09-10 Jakub Jelinek <jakub@redhat.com>
9450
9451 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
9452 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
9453 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
9454 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
9455 flag_delete_null_pointer_checks for them.
9456 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
9457 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
9458 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
9459 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
9460 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
9461 stmt's iterator.
9462 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
9463 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
9464 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
9465 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
9466 * doc/invoke.texi (-fsanitize=nonnull-attribute,
9467 -fsanitize=returns-nonnull-attribute): Document.
9468
9469 * ubsan.h (struct ubsan_mismatch_data): Removed.
9470 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
9471 * ubsan.c (ubsan_source_location): For unknown locations,
9472 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
9473 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
9474 Allow more than one location and arbitrary extra arguments passed
9475 in ... instead of through MISMATCH pointer.
9476 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
9477 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
9478 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
9479 callers.
9480
9481 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
9482 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9483 Anna Tikhonova <anna.tikhonova@intel.com>
9484 Ilya Tocar <ilya.tocar@intel.com>
9485 Andrey Turetskiy <andrey.turetskiy@intel.com>
9486 Ilya Verbin <ilya.verbin@intel.com>
9487 Kirill Yukhin <kirill.yukhin@intel.com>
9488 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9489
9490 * config/i386/sse.md
9491 (define_mode_iterator VI48F): New.
9492 (define_insn "<avx512>_compress<mode>_mask"): Rename from
9493 "avx512f_compress<mode>_mask" and update mode iterator.
9494 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
9495 "avx512f_compressstore<mode>_mask" and update mode iterator.
9496 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
9497 "avx512f_expand<mode>_maskz" and update mode iterator.
9498 (define_insn "<avx512>_expand<mode>_mask"): Rename from
9499 "avx512f_expand<mode>_mask" and update mode iterator.
9500
9501 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
9502 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9503 Anna Tikhonova <anna.tikhonova@intel.com>
9504 Ilya Tocar <ilya.tocar@intel.com>
9505 Andrey Turetskiy <andrey.turetskiy@intel.com>
9506 Ilya Verbin <ilya.verbin@intel.com>
9507 Kirill Yukhin <kirill.yukhin@intel.com>
9508 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9509
9510 * config/i386/i386.c
9511 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
9512 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
9513 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
9514 avx512dq_rangepv4sf_mask.
9515 * config/i386/sse.md
9516 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
9517 UNSPEC_RANGE.
9518 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
9519 (define_insn "reduces<mode>"): Ditto.
9520 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
9521 Ditto.
9522 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
9523 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
9524 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
9525
9526 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
9527 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9528 Anna Tikhonova <anna.tikhonova@intel.com>
9529 Ilya Tocar <ilya.tocar@intel.com>
9530 Andrey Turetskiy <andrey.turetskiy@intel.com>
9531 Ilya Verbin <ilya.verbin@intel.com>
9532 Kirill Yukhin <kirill.yukhin@intel.com>
9533 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9534
9535 * config/i386/i386.c
9536 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
9537 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
9538 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
9539 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
9540 avx512vl_getmantv2df_mask.
9541 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
9542 avx512f_vgetmantv4sf_round.
9543 * config/i386/sse.md
9544 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
9545 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
9546 mode iterator.
9547 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
9548 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
9549 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
9550 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
9551 iterator..
9552 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
9553 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
9554 update mode iterator.
9555 (define_expand
9556 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
9557 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
9558 mode iterator.
9559 (define_insn
9560 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
9561 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
9562 update mode iterator.
9563 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
9564 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
9565 iterator..
9566 (define_insn
9567 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
9568 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
9569 mode iterator..
9570 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
9571 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
9572 update mode iterator.
9573 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
9574 "avx512f_getmant<mode><round_saeonly_name>".
9575
9576 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
9577
9578 PR ipa/63166
9579 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
9580
9581 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
9582 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9583 Anna Tikhonova <anna.tikhonova@intel.com>
9584 Ilya Tocar <ilya.tocar@intel.com>
9585 Andrey Turetskiy <andrey.turetskiy@intel.com>
9586 Ilya Verbin <ilya.verbin@intel.com>
9587 Kirill Yukhin <kirill.yukhin@intel.com>
9588 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9589
9590 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
9591 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
9592 (define_mode_iterator FMAMODE_AVX512): New.
9593 (define_mode_iterator FMAMODE): Remove conditions.
9594 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
9595 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
9596 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
9597 mode iterator.
9598 (define_mode_iterator FMAMODE_NOVF512): Remove.
9599 (define_insn "*fma_fmadd_<mode>"): Rename from
9600 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
9601 FMAMODE mode iterator.
9602 (define_mode_iterator VF_SF_AVX512VL): New.
9603 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
9604 Use VF_SF_AVX512VL mode iterator.
9605 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
9606 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
9607 iterator.
9608 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
9609 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
9610 iterator.
9611 (define_insn "*fma_fmsub_<mode>"): Rename from
9612 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
9613 FMAMODE mode iterator.
9614 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
9615 Use VF_SF_AVX512VL mode iterator.
9616 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
9617 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
9618 iterator.
9619 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
9620 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
9621 iterator.
9622 (define_insn "*fma_fnmadd_<mode>"): Rename from
9623 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
9624 use FMAMODE mode iterator.
9625 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
9626 Use VF_SF_AVX512VL mode iterator.
9627 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
9628 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
9629 iterator.
9630 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
9631 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
9632 iterator.
9633 (define_insn "*fma_fnmsub_<mode>"): Rename from
9634 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
9635 FMAMODE mode iterator.
9636 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
9637 Use VF_SF_AVX512VL mode iterator.
9638 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
9639 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
9640 iterator.
9641 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
9642 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
9643 iterator.
9644 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
9645 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
9646 use VF_AVX512VL mode iterator.
9647 (define_insn "*fma_fmaddsub_<mode>"): Rename from
9648 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
9649 remove subst usage.
9650 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
9651 Use VF_SF_AVX512VL mode iterator.
9652 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
9653 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
9654 iterator.
9655 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
9656 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
9657 iterator.
9658 (define_insn "*fma_fmsubadd_<mode>"): Rename from
9659 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
9660 remove usage of subst.
9661 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
9662 Use VF_SF_AVX512VL mode iterator.
9663 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
9664 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
9665 iterator.
9666 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
9667 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
9668 iterator.
9669
9670 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
9671
9672 Revert r213751:
9673 * calls.c (precompute_arguments): Check
9674 promoted_for_signed_and_unsigned_p and set the promoted mode.
9675 (promoted_for_signed_and_unsigned_p): New function.
9676 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
9677 and set the promoted mode.
9678 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
9679 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
9680 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
9681
9682 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
9683
9684 * opth-gen.awk: Generate mapping from cpp message reasons to the
9685 options that enable them.
9686 * doc/options.texi (CppReason): Document.
9687
9688 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
9689
9690 * doc/invoke.texi (Wnormalized=): Update.
9691
9692 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
9693
9694 PR target/63195
9695 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
9696 operands. Split off the constant operand alternative to ...
9697 (*bool<mode>3_imm): New.
9698
9699 2014-09-09 David Malcolm <dmalcolm@redhat.com>
9700
9701 * rtl.h (single_set_2): Strengthen first param from const_rtx to
9702 const rtx_insn *, and move prototype to above...
9703 (single_set): ...this. Convert this from a macro to an inline
9704 function, enforcing the requirement that the param is a const
9705 rtx_insn *.
9706 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
9707
9708 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
9709 Strengthen both params from rtx to rtx_insn *.
9710 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
9711 Likewise; introduce locals "producer_set", "consumer_set", using
9712 them in place of "producer" and "consumer" when dealing with SET
9713 rather than insn.
9714 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
9715 when invoking single_set in region guarded by INSN_P.
9716 (avr_out_bitop): Likewise.
9717 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
9718 region guarded by GET_CODE check, using methods to strengthen
9719 local "this_insn" from rtx to rtx_insn *, and for clarity.
9720 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
9721 Strengthen local "insn" from rtx to rtx_insn *.
9722 (define_insn_and_split "xload<mode>_A"): Likewise.
9723 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
9724 "insn".
9725 (find_load): Likewise for return type.
9726 (workaround_speculation): Likewise for both locals named
9727 "load_insn".
9728 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
9729 local "cc0_user".
9730 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
9731 for local "prev".
9732 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
9733 param 2.
9734 * config/h8300/h8300.c (notice_update_cc): Likewise.
9735 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
9736 "insn" and "dep_insn".
9737 (exact_store_load_dependency): Likewise for both params.
9738 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
9739 since this now clashes with inline function. Instead, delay
9740 calling single_set until the point where its needed, and then
9741 assign the result to "compare_set" and rework the conditional that
9742 follows.
9743 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
9744 local "last" from rtx to rtx_insn *.
9745 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
9746 second param.
9747 (mips_store_data_bypass_p): Likewise for both params.
9748 * config/mips/mips.c (mips_load_store_insns): Likewise for second
9749 param.
9750 (mips_store_data_bypass_p): Likewise for both params.
9751 (mips_orphaned_high_part_p): Likewise for param "insn".
9752 * config/mn10300/mn10300.c (extract_bundle): Likewise.
9753 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
9754 Introduce local rtx "insn2_pat".
9755 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
9756 "ninsn".
9757 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
9758 Introduce local rtx "set", using it in place of "insn" for the
9759 result of single_set. This appears to fix a bug, since the call
9760 to find_regno_note on a SET does nothing.
9761 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
9762 params from rtx to rtx_insn *.
9763 (set_to_load_agen): Likewise.
9764 * config/s390/s390.c (s390_label_align): Likewise for local
9765 "prev_insn". Introduce new rtx locals "set" and "src", using
9766 them in place of "prev_insn" for the results of single_set
9767 and SET_SRC respectively.
9768 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
9769 Introduce new rtx local "set" using in place of "jump" for the
9770 result of single_set. Use SET_SRC (set) rather than plain
9771 XEXP (set, 1).
9772 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
9773 rtx to rtx_insn *.
9774 (noncall_uses_reg): Likewise.
9775 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
9776 guarded by GET_CODE check, using its methods for clarity, and to
9777 enable strengthening local "this_insn" from rtx to rtx_insn *.
9778 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
9779 "insn" from rtx to rtx_insn *.
9780 (define_expand "umulhisi3"): Likewise.
9781 (define_expand "smulsi3_highpart"): Likewise.
9782 (define_expand "umulsi3_highpart"): Likewise.
9783 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
9784 local "after". Replace GET_CODE check with a dyn_cast,
9785 introducing new local rtx_sequence * "seq", using insn method for
9786 typesafety.
9787
9788 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
9789 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
9790 place of "insn" once we're dealing with patterns rather than the
9791 input insn.
9792 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
9793 (scan_trace): Likewise for local "elt", updating lookups within
9794 sequence to use insn method rather than element method.
9795 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
9796 to rtx_insn *.
9797 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
9798 * ifcvt.c (noce_try_abs): Likewise for local "insn".
9799 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
9800 invoking single_set.
9801 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
9802 "insn" from rtx to rtx_insn *.
9803 (skip_usage_debug_insns): Likewise for return type, adding a
9804 checked cast.
9805 (check_secondary_memory_needed_p): Likewise for local "insn".
9806 (inherit_reload_reg): Likewise.
9807 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
9808 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
9809 checked casts.
9810 (store_data_bypass_p): Likewise for both params.
9811 (if_test_bypass_p): Likewise.
9812 * recog.h (store_data_bypass_p): Likewise for both params.
9813 (if_test_bypass_p): Likewise.
9814 * reload.c (find_equiv_reg): Likewise for local "where".
9815 * reorg.c (delete_jump): Likewise for param "insn".
9816 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
9817 to const rtx_insn *.
9818 * store-motion.c (replace_store_insn): Likewise for param "del".
9819 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
9820 and use its methods for clarity, and to strengthen local "del"
9821 from rtx to rtx_insn *.
9822 (build_store_vectors): Use insn method of "st" when calling
9823 replace_store_insn for typesafety and clarity.
9824
9825 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9826
9827 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
9828 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
9829 on how to make it legal in future.
9830
9831 2014-09-09 David Malcolm <dmalcolm@redhat.com>
9832
9833 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
9834 to rtx_insn *.
9835 (restinsn): Likewise.
9836 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
9837 Likewise for param.
9838 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
9839 Likewise.
9840 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
9841 first param.
9842 (arc_hazard): Likewise for both params.
9843 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
9844 checked casts to rtx_sequence * and uses of the insn method for
9845 type-safety.
9846 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
9847 (arc_adjust_insn_length): Likewise for param "insn".
9848 (struct insn_length_parameters_s): Likewise for first param of
9849 "get_variants" callback field.
9850 (arc_get_insn_variants): Likewise for first param and local
9851 "inner". Replace a check of GET_CODE with a dyn_cast to
9852 rtx_sequence *, using methods for type-safety and clarity.
9853 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
9854 rtx_sequence * and uses of the insn method for type-safety when
9855 invoking arc_adjust_insn_length.
9856 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
9857 for param.
9858 (arm_address_offset_is_imm): Likewise.
9859 (struct tune_params): Likewise for params 1 and 3 of the
9860 "sched_adjust_cost" callback field.
9861 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
9862 params 1 and 3 ("insn" and "dep").
9863 (xscale_sched_adjust_cost): Likewise.
9864 (fa726te_sched_adjust_cost): Likewise.
9865 (cortexa7_older_only): Likewise for param "insn".
9866 (cortexa7_younger): Likewise.
9867 (arm_attr_length_move_neon): Likewise.
9868 (arm_address_offset_is_imm): Likewise.
9869 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
9870 * config/avr/avr.c (avr_notice_update_cc): Likewise.
9871 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
9872 (workaround_speculation): Likewise for local "last_condjump".
9873 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
9874 (shadow_or_blockage_p): Likewise.
9875 (get_unit_reqs): Likewise.
9876 (get_unit_operand_masks): Likewise.
9877 (c6x_registers_update): Likewise.
9878 (returning_call_p): Likewise.
9879 (can_use_callp): Likewise.
9880 (convert_to_callp): Likewise.
9881 (find_last_same_clock): Likwise for local "t".
9882 (reorg_split_calls): Likewise for local "shadow".
9883 (hwloop_pattern_reg): Likewise for param "insn".
9884 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
9885 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
9886 (frv_extract_membar): Likewise.
9887 (frv_optimize_membar_local): Strengthen param "last_membar" from
9888 rtx * to rtx_insn **.
9889 (frv_optimize_membar_global): Strengthen param "membar" from rtx
9890 to rtx_insn *.
9891 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
9892 to rtx_insn **.
9893 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
9894 both params from rtx to rtx_insn *.
9895 (ia64_ld_address_bypass_p): Likewise.
9896 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
9897 "insn".
9898 (ia64_safe_type): Likewise.
9899 (group_barrier_needed): Likewise.
9900 (safe_group_barrier_needed): Likewise.
9901 (ia64_single_set): Likewise.
9902 (is_load_p): Likewise.
9903 (record_memory_reference): Likewise.
9904 (get_mode_no_for_insn): Likewise.
9905 (important_for_bundling_p): Likewise.
9906 (unknown_for_bundling_p): Likewise.
9907 (ia64_st_address_bypass_p): Likewise for both params.
9908 (ia64_ld_address_bypass_p): Likewise.
9909 (expand_vselect): Introduce new local rtx_insn * "insn", using it
9910 in place of rtx "x" after the emit_insn call.
9911 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
9912 Strengthen param from rtx to rtx_insn *.
9913 (ix86_agi_dependent): Likewise for both params.
9914 (ix86_attr_length_immediate_default): Likewise for param 1.
9915 (ix86_attr_length_address_default): Likewise for param.
9916 (ix86_attr_length_vex_default): Likewise for param 1.
9917 * config/i386/i386.c (ix86_attr_length_immediate_default):
9918 Likewise for param "insn".
9919 (ix86_attr_length_address_default): Likewise.
9920 (ix86_attr_length_vex_default): Likewise.
9921 (ix86_agi_dependent): Likewise for both params.
9922 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
9923 (vselect_insn): Likewise for this variable.
9924 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
9925 for param 1.
9926 (m68k_sched_attr_opy_type): Likewise.
9927 * config/m68k/m68k.c (sched_get_operand): Likewise.
9928 (sched_attr_op_type): Likewise.
9929 (m68k_sched_attr_opx_type): Likewise.
9930 (m68k_sched_attr_opy_type): Likewise.
9931 (sched_get_reg_operand): Likewise.
9932 (sched_get_mem_operand): Likewise.
9933 (m68k_sched_address_bypass_p): Likewise for both params.
9934 (sched_get_indexed_address_scale): Likewise.
9935 (m68k_sched_indexed_address_bypass_p): Likewise.
9936 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
9937 (m68k_sched_indexed_address_bypass_p): Likewise.
9938 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
9939 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
9940 removing another.
9941 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
9942 params from rtx to rtx_insn *.
9943 (mips_fmadd_bypass): Likewise.
9944 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
9945 (mips_linked_madd_p): Likewise.
9946 (mips_macc_chains_last_hilo): Likewise for this variable.
9947 (mips_macc_chains_record): Likewise for param.
9948 (vr4130_last_insn): Likewise for this variable.
9949 (vr4130_swap_insns_p): Likewise for both params.
9950 (mips_ls2_variable_issue): Likewise for param.
9951 (mips_need_noat_wrapper_p): Likewise for param "insn".
9952 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
9953 in place of "x" after the emit_insn.
9954 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
9955 params from rtx to rtx_insn *.
9956 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
9957 (pa_combine_instructions): Introduce local "par" for result of
9958 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
9959 to make_insn_raw.
9960 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
9961 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
9962 (rl78_alloc_physical_registers_op1): Likewise.
9963 (rl78_alloc_physical_registers_op2): Likewise.
9964 (rl78_alloc_physical_registers_ro1): Likewise.
9965 (rl78_alloc_physical_registers_cmp): Likewise.
9966 (rl78_alloc_physical_registers_umul): Likewise.
9967 (rl78_alloc_address_registers_macax): Likewise.
9968 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
9969 * config/s390/predicates.md (execute_operation): Likewise for
9970 local "insn".
9971 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
9972 params.
9973 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
9974 (addr_generation_dependency_p): Likewise for param "insn".
9975 (s390_agen_dep_p): Likewise for both params.
9976 (s390_fpload_toreg): Likewise for param "insn".
9977 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
9978 * config/sh/sh.c (sh_loop_align): Likewise for param and local
9979 "next".
9980 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
9981 * config/sh/sh_treg_combine.cc
9982 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
9983 and local "i".
9984 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
9985 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
9986 "and_insn", "load", "shift".
9987 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
9988 "insn".
9989 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
9990 for XEXP (note, 0) of the REG_CC_SETTER note.
9991 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
9992 rtx_insn *, eliminating a checked cast made redundant by this.
9993 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
9994 to rtx_insn *.
9995 * genattr.c (main): When writing out the prototype to
9996 const_num_delay_slots, strengthen the param from rtx to
9997 rtx_insn *.
9998 * genattrtab.c (write_const_num_delay_slots): Likewise when
9999 writing out the implementation of const_num_delay_slots.
10000 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
10001 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
10002 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
10003 favor of new rtx locals "src" and "set" and new local rtx_insn *
10004 "insn" and "seq".
10005 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
10006 to rtx_insn *.
10007 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
10008 locals "cond", "if_then_else", "set" and new rtx_insn * locals
10009 "insn" and "seq".
10010 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
10011 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
10012 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
10013 the top-level scope, replacing with new more tightly-scoped rtx
10014 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
10015 "new_insn", "copy_of_insn_b", and make local rtx "set" more
10016 tightly-scoped.
10017 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
10018 rtx_insn *.
10019 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
10020 "move_insn".
10021 (ira_setup_alts): Likewise for param "insn".
10022 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
10023 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
10024 and an rtx_insn *.
10025 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
10026 new more-tightly scoped rtx locals "add3_insn", "insn",
10027 "add2_insn" and rtx_insn * "move_insn".
10028 * postreload-gcse.c (eliminate_partially_redundant_load): Add
10029 checked cast on result of gen_move_insn when invoking
10030 extract_insn.
10031 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
10032 rtx_insn *.
10033 (verify_changes): Add a checked cast on "object" when invoking
10034 insn_invalid_p.
10035 (extract_insn_cached): Strengthen param "insn" from rtx to
10036 rtx_insn *.
10037 (extract_constrain_insn_cached): Likewise.
10038 (extract_insn): Likewise.
10039 * recog.h (insn_invalid_p): Likewise for param 1.
10040 (recog_memoized): Likewise for param.
10041 (extract_insn): Likewise.
10042 (extract_constrain_insn_cached): Likewise.
10043 (extract_insn_cached): Likewise.
10044 * reload.c (can_reload_into): Likewise for local "test_insn".
10045 * reload.h (cleanup_subreg_operands): Likewise for param.
10046 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
10047 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
10048 result of emit_insn. Remove a checked cast made redundant by this
10049 change.
10050 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
10051 rtx to rtx_insn *.
10052 * sel-sched.c (get_reg_class): Likewise.
10053
10054 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
10055 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10056
10057 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
10058 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
10059 Define.
10060 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
10061
10062 2014-09-09 David Malcolm <dmalcolm@redhat.com>
10063
10064 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
10065 const rtx_insn *, and from rtx to rtx_insn * for the other
10066 overloaded variant.
10067 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
10068 INSN_LOCATION, since we know INSN_P holds.
10069 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
10070 (insn_file): Likewise.
10071 (insn_scope): Likewise.
10072 (insn_location): Likewise.
10073
10074 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
10075 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
10076 for the result of gen_load_const_gp.
10077 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
10078 param from rtx to rtx_insn *.
10079 * config/rs6000/rs6000.c (output_call): Likewise.
10080 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
10081 introducing a checked cast to rtx_sequence * and use of the insn
10082 method.
10083 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
10084 from rtx to rtx_insn *.
10085 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
10086 (insn_line): Likewise.
10087 (insn_file): Likewise.
10088 (insn_location): Likewise.
10089 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
10090 from rtx to rtx_insn *.
10091 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
10092 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
10093 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
10094 via a checked cast.
10095 * reorg.c (relax_delay_slots): Strengthen locals named "after"
10096 from rtx to rtx_insn *; use methods of "pat" for type-safety.
10097
10098 2014-09-09 David Malcolm <dmalcolm@redhat.com>
10099
10100 * combine.c (try_combine): Eliminate checked cast on result of
10101 gen_rtx_INSN.
10102 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
10103 autogenerated one by strengthening the return type and params 2 and 3
10104 from rtx to rtx_insn *, and by naming the params.
10105 * gengenrtl.c (special_rtx): Add INSN to those that are
10106 special-cased.
10107 * rtl.h (gen_rtx_INSN): New prototype.
10108
10109 2014-09-09 David Malcolm <dmalcolm@redhat.com>
10110
10111 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
10112 than NULL_RTX.
10113 (no_equiv): Likewise.
10114 (update_equiv_regs): Likewise.
10115 (setup_reg_equiv): Likewise. Strengthen locals "elem",
10116 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
10117 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
10118 clarity.
10119 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
10120 from rtx to rtx_insn_list *.
10121 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
10122 rtx_insn_list * and use methods for clarity and typesafety.
10123 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
10124 "list".
10125 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
10126 redundant check on INSN_P (insns): this cannot hold, as "insns" is
10127 an INSN_LIST, not an insn.
10128 (reverse_equiv_p): Strengthen local "insns" from rtx to
10129 rtx_insn_list * and use methods for clarity and typesafety.
10130 (contains_reloaded_insn_p): Likewise for local "list".
10131
10132 2014-09-09 Jiong Wang <jiong.wang@arm.com>
10133
10134 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
10135 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
10136 (arm_builtin_vectorized_function): Likewise.
10137 * config/arm/arm_neon_builtins.def: New macro for copysignf.
10138 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
10139
10140 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
10141
10142 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
10143 * builtins.h (default_target_builtins): Likewise.
10144 * gcse.h (default_target_gcse): Likewise.
10145 * target-globals.h (target_globals): Add a destructor. Convert
10146 void-pointer fields back to their real type and change from
10147 GTY((atomic)) to GTY((skip)).
10148 (restore_target_globals): Remove casts accordingly.
10149 * target-globals.c (save_target_globals): Use XCNEW rather than
10150 ggc_internal_cleared_alloc to allocate non-GC structures.
10151 Use ggc_cleared_alloc to allocate the target_globals structure
10152 itself.
10153 (target_globals::~target_globals): Define.
10154
10155 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10156
10157 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
10158 mnemonic instead of fldmfdd.
10159 * config/arm/arm.c (vfp_output_fstmd): Rename to...
10160 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
10161 Output vpush when address register is SP.
10162 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
10163 (vfp_output_vstmd): ... This.
10164 * config/arm/vfp.md (push_multi_vfp): Update call to
10165 vfp_output_vstmd.
10166
10167 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10168
10169 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
10170
10171 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10172
10173 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
10174 (*sqrtdf2_vfp): Likewise.
10175 (*cmpsf_vfp): Likewise.
10176 (*cmpsf_trap_vfp): Likewise.
10177 (*cmpdf_vfp): Likewise.
10178 (*cmpdf_trap_vfp): Likewise.
10179
10180 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10181
10182 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
10183 (*truncdfsf2_vfp): Likewise.
10184 (*truncsisf2_vfp): Likewise.
10185 (*truncsidf2_vfp): Likewise.
10186 (fixuns_truncsfsi2): Likewise.
10187 (fixuns_truncdfsi2): Likewise.
10188 (*floatsisf2_vfp): Likewise.
10189 (*floatsidf2_vfp): Likewise.
10190 (floatunssisf2): Likewise.
10191 (floatunssidf2): Likewise.
10192
10193 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10194
10195 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
10196 (*muldf3_vfp): Likewise.
10197 (*mulsf3negsf_vfp): Likewise.
10198 (*muldf3negdf_vfp): Likewise.
10199 (*mulsf3addsf_vfp): Likewise.
10200 (*muldf3adddf_vfp): Likewise.
10201 (*mulsf3subsf_vfp): Likewise.
10202 (*muldf3subdf_vfp): Likewise.
10203 (*mulsf3negsfaddsf_vfp): Likewise.
10204 (*fmuldf3negdfadddf_vfp): Likewise.
10205 (*mulsf3negsfsubsf_vfp): Likewise.
10206 (*muldf3negdfsubdf_vfp): Likewise.
10207
10208 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10209
10210 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
10211 (*absdf2_vfp): Likewise.
10212 (*negsf2_vfp): Likewise.
10213 (*negdf2_vfp): Likewise.
10214 (*addsf3_vfp): Likewise.
10215 (*adddf3_vfp): Likewise.
10216 (*subsf3_vfp): Likewise.
10217 (*subdf3_vfp): Likewise.
10218 (*divsf3_vfp): Likewise.
10219 (*divdf3_vfp): Likewise.
10220
10221 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10222
10223 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
10224 multiple.
10225 (arm_print_operand): Don't convert real values to decimal
10226 representation in default case.
10227 (fp_immediate_constant): Delete.
10228 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
10229 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
10230 syntax.
10231 (*thumb2_movsi_vfp): Likewise.
10232 (*movdi_vfp): Likewise.
10233 (*movdi_vfp_cortexa8): Likewise.
10234 (*movhf_vfp_neon): Likewise.
10235 (*movhf_vfp): Likewise.
10236 (*movsf_vfp): Likewise.
10237 (*thumb2_movsf_vfp): Likewise.
10238 (*movdf_vfp): Likewise.
10239 (*thumb2_movdf_vfp): Likewise.
10240 (*movsfcc_vfp): Likewise.
10241 (*thumb2_movsfcc_vfp): Likewise.
10242 (*movdfcc_vfp): Likewise.
10243 (*thumb2_movdfcc_vfp): Likewise.
10244
10245 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
10246
10247 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
10248 (-mtune): Likewise.
10249 (-mcpu): Likewise.
10250
10251 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10252
10253 PR target/61749
10254 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
10255 Use qualifier_immediate for last operand. Rename to...
10256 (aarch64_types_ternop_lane_qualifiers): ... This.
10257 (TYPES_QUADOP): Rename to...
10258 (TYPES_TERNOP_LANE): ... This.
10259 (aarch64_simd_expand_args): Return const0_rtx when encountering user
10260 error. Change return of 0 to return of NULL_RTX.
10261 (aarch64_crc32_expand_builtin): Likewise.
10262 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
10263 ICE when expanding unknown builtin.
10264 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
10265 TERNOP_LANE qualifiers.
10266 (sqdmlsl_lane): Likewise.
10267 (sqdmlal_laneq): Likewise.
10268 (sqdmlsl_laneq): Likewise.
10269 (sqdmlal2_lane): Likewise.
10270 (sqdmlsl2_lane): Likewise.
10271 (sqdmlal2_laneq): Likewise.
10272 (sqdmlsl2_laneq): Likewise.
10273
10274 2014-09-09 Nick Clifton <nickc@redhat.com>
10275
10276 * doc/invoke.texi (Optimization Options): Add missing @gol to the
10277 end of a line.
10278 (S/390 and zSeries Options): Remove superfluous word from the
10279 description of the -mhotpatch option.
10280
10281 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
10282
10283 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
10284 * ira.c: #include "shrink-wrap.h"
10285 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
10286 * ifcvt.c: #include "shrink-wrap.h"
10287 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
10288
10289 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
10290
10291 * common/config/picochip/picochip-common.c: Remove.
10292 * config.gcc: Remove support for picochip.
10293 * config/picochip/constraints.md: Remove.
10294 * config/picochip/dfa_space.md: Remove.
10295 * config/picochip/dfa_speed.md: Remove.
10296 * config/picochip/picochip-protos.h: Remove.
10297 * config/picochip/picochip.c: Remove.
10298 * config/picochip/picochip.h: Remove.
10299 * config/picochip/picochip.md: Remove.
10300 * config/picochip/picochip.opt: Remove.
10301 * config/picochip/predicates.md: Remove.
10302 * config/picochip/t-picochip: Remove.
10303 * doc/md.texi: Don't document picochi.
10304
10305 2014-09-08 David Malcolm <dmalcolm@redhat.com>
10306
10307 * basic-block.h (control_flow_insn_p): Strengthen param from
10308 const_rtx to const rtx_insn *.
10309 * cfgbuild.c (control_flow_insn_p): Likewise.
10310
10311 2014-09-08 David Malcolm <dmalcolm@redhat.com>
10312
10313 * gcse.c (modify_mem_list): Strengthen this variable from
10314 vec<rtx> * to vec<rtx_insn *> *.
10315 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
10316 vec<rtx_insn *>.
10317 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
10318 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
10319 (record_last_mem_set_info): Strengthen param "insn" from rtx to
10320 rtx_insn *.
10321 (record_last_set_info): Likewise for local "last_set_insn".
10322
10323 2014-09-08 DJ Delorie <dj@redhat.com>
10324
10325 * doc/invoke.texi (MSP430 Options): Add -minrt.
10326
10327 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10328
10329 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
10330 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
10331 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
10332 handling SH_SPLAT.
10333 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
10334 of extracted lane.
10335 (adjust_splat): New function.
10336 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
10337 (dump_swap_insn_table): Add case for SH_SPLAT.
10338
10339 2014-09-08 Richard Biener <rguenther@suse.de>
10340
10341 PR ipa/63196
10342 * tree-inline.c (copy_loops): The source loop header should
10343 always be non-NULL.
10344 (tree_function_versioning): If loops need fixup after removing
10345 unreachable blocks fix them.
10346 * omp-low.c (simd_clone_adjust): Do not add incr block to
10347 loop under construction.
10348
10349 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
10350
10351 * config/aarch64/aarch64-builtins.c
10352 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
10353
10354 2014-09-08 Joseph Myers <joseph@codesourcery.com>
10355
10356 * config/i386/cygming.h (TF_SIZE): Remove.
10357 * config/i386/darwin.h (TF_SIZE): Remove.
10358 * config/i386/dragonfly.h (TF_SIZE): Remove.
10359 * config/i386/freebsd.h (TF_SIZE): Remove.
10360 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
10361 * config/i386/openbsdelf.h (TF_SIZE): Remove.
10362 * config/i386/sol2.h (TF_SIZE): Remove.
10363 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
10364 * config/ia64/linux.h (TF_SIZE): Remove.
10365 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
10366 * doc/tm.texi: Regenerate.
10367 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
10368
10369 2014-09-08 Joseph Myers <joseph@codesourcery.com>
10370
10371 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
10372 Remove.
10373 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
10374 Remove.
10375 * doc/tm.texi: Regenerate.
10376 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
10377 Poison.
10378 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
10379 * config/cris/cris.h (__make_dp): Remove.
10380
10381 2014-09-08 Richard Biener <rguenther@suse.de>
10382
10383 PR bootstrap/63204
10384 * cfgloop.c (mark_loop_for_removal): Track former header
10385 unconditionally.
10386 * cfgloop.h (struct loop): Add former_header member unconditionally.
10387 * loop-init.c (fix_loop_structure): Enable bogus loop removal
10388 diagnostic unconditionally.
10389
10390 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
10391
10392 PR target/63190
10393 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
10394 constraint for operand0 and remove write only modifier from operand3.
10395
10396 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
10397
10398 PR rtl-optimization/62208
10399 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
10400 rather than const0_rtx in eq/ne-xor simplifications.
10401
10402 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
10403
10404 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
10405 (arc_output_mi_thunk): Likewise.
10406
10407 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
10408 arguments to silence bogus warning.
10409
10410 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
10411
10412 PR middle-end/63171
10413 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
10414
10415 2014-09-06 Tom de Vries <tom@codesourcery.com>
10416
10417 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
10418 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
10419 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10420
10421 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
10422
10423 PR target/63188
10424 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
10425 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
10426
10427 2014-09-05 Easwaran Raman <eraman@google.com>
10428
10429 PR rtl-optimization/62146
10430 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
10431 hoisted instruction unconditional.
10432
10433 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
10434
10435 PR target/63187
10436 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
10437 Do not allow any_mask_operand for operands[2].
10438 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
10439
10440 2014-09-05 David Malcolm <dmalcolm@redhat.com>
10441
10442 * config/arc/arc.c (arc_print_operand): Use insn method of
10443 final_sequence for type-safety.
10444 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
10445 "insn" from rtx to rtx_insn *.
10446 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
10447 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
10448 Likewise for locals "branch", "label".
10449 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
10450 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
10451 (same_cmp_following_p): Likewise for locals "i2", "i3".
10452 * config/sh/sh_optimize_sett_clrt.cc
10453 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
10454 param "cbranch_insn".
10455 * function.c (convert_jumps_to_returns): Likewis for local "jump".
10456 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
10457 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
10458 const rtx_insn *.
10459 (condjump_p): Likewise.
10460 (condjump_in_parallel_p): Likewise.
10461 (pc_set): Likewise.
10462 (any_uncondjump_p): Likewise.
10463 (any_condjump_p): Likewise.
10464 (condjump_label): Likewise.
10465 (returnjump_p): Strengthen param "insn" from rtx to
10466 const rtx_insn *.
10467 (onlyjump_p): Strengthen param "insn" from const_rtx to
10468 const rtx_insn *.
10469 (jump_to_label_p): Likewise.
10470 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
10471 (invert_jump): Likewise.
10472 * reorg.c (simplejump_or_return_p): Add checked cast when calling
10473 simplejump_p.
10474 (get_jump_flags): Strengthen param "insn" from rtx to
10475 const rtx_insn *.
10476 (get_branch_condition): Likewise.
10477 (condition_dominates_p): Likewise.
10478 (make_return_insns): Move declaration of local "pat" earlier, to
10479 after we've handled NONJUMP_INSN_P and non-sequences, using its
10480 methods to simplify the code and for type-safety.
10481 * rtl.h (find_constant_src): Strengthen param from const_rtx to
10482 const rtx_insn *.
10483 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
10484 (condjump_p): Strengthen param from const_rtx to
10485 const rtx_insn *.
10486 (any_condjump_p): Likewise.
10487 (any_uncondjump_p): Likewise.
10488 (pc_set): Likewise.
10489 (condjump_label): Likewise.
10490 (simplejump_p): Likewise.
10491 (returnjump_p): Likewise.
10492 (onlyjump_p): Likewise.
10493 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
10494 (invert_jump): Likewise.
10495 (condjump_in_parallel_p): Strengthen param from const_rtx to
10496 const rtx_insn *.
10497 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
10498 to const rtx_insn *.
10499 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
10500 to const rtx_insn *.
10501 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
10502
10503 2014-09-05 David Malcolm <dmalcolm@redhat.com>
10504
10505 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
10506 above the conditional, and convert the check on GET_CODE to a
10507 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
10508 the conditional. Simplify the conditional by using methods of
10509 "trial_seq".
10510
10511 2014-09-05 David Malcolm <dmalcolm@redhat.com>
10512
10513 * haifa-sched.c (check_clobbered_conditions): Strengthen local
10514 "link" from rtx to rtx_insn_list *, and use its methods for
10515 clarity and type-safety.
10516 (toggle_cancelled_flags): Likewise.
10517 (restore_last_backtrack_point): Likewise.
10518 (queue_to_ready): Use insn method of "link" in one place.
10519 (schedule_block): Strengthen local "link" from rtx to
10520 rtx_insn_list *, and use its methods for clarity and type-safety.
10521
10522 2014-09-05 David Malcolm <dmalcolm@redhat.com>
10523
10524 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
10525 param "insn" from const_rtx to const rtx_insn *.
10526 (sched_get_reverse_condition_uncached): Likewise.
10527 (sched_get_condition_with_rev): Likewise.
10528 (sched_has_condition_p): Likewise.
10529 (sched_insns_conditions_mutex_p): Likewise for both params.
10530 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
10531 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
10532 (setup_insn_reg_uses): Move local "list" to be more tightly
10533 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
10534 its methods for clarity and type-safety.
10535 (sched_analyze_1): Strengthen local "pending" from rtx to
10536 rtx_insn_list *, and local "pending_mem" from rtx to
10537 rtx_expr_list *. Use methods of each for clarity and type-safety.
10538 (sched_analyze_2): Likewise.
10539 (sched_analyze_insn): Likewise.
10540
10541 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
10542 param from const_rtx to const rtx_insn *.
10543 (sched_insns_conditions_mutex_p): Likewise for both params.
10544 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
10545 param.
10546
10547 * system.h (CONST_CAST_RTX_INSN): New macro.
10548
10549 2014-09-05 David Malcolm <dmalcolm@redhat.com>
10550
10551 * recog.c (peep2_attempt): Strengthen return type from rtx to
10552 rtx_insn *.
10553 (peep2_update_life): Likewise for params "last", "prev", removing
10554 a checked cast made redundant by this.
10555 (peephole2_optimize): Likewise for local "last".
10556
10557 2014-09-05 David Malcolm <dmalcolm@redhat.com>
10558
10559 * basic-block.h (set_block_for_insn): Eliminate this macro in
10560 favor of...
10561 * rtl.h (set_block_for_insn): New inline function, imposing the
10562 requirement that the "insn" param is an rtx_insn *.
10563
10564 2014-09-05 David Malcolm <dmalcolm@redhat.com>
10565
10566 * caller-save.c (setup_save_areas): Strengthen local "insn" from
10567 rtx to rtx_insn *.
10568 * final.c (get_call_reg_set_usage): Likewise for first param,
10569 eliminating a checked cast.
10570 * regs.h (get_call_reg_set_usage): Likewise for first param.
10571 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
10572 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
10573 cast, replacing references to "x" with "call_insn" where
10574 appropriate.
10575 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
10576 rtx_insn *, adding a checked cast.
10577
10578 2014-09-05 David Malcolm <dmalcolm@redhat.com>
10579
10580 * output.h (final_scan_insn): Strengthen first param from rtx to
10581 rtx_insn *.
10582
10583 * final.c (final_scan_insn): Likewise, renaming it back from
10584 "uncast_insn" to "insn", eliminating the checked cast.
10585
10586 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
10587 "vec" with an rtx_sequence * "seq", taking a copy of
10588 "final_sequence", and using methods of "seq" for clarity, and for
10589 type-safety in the calls to final_scan_insn.
10590 * config/mips/mips.c (mips_output_conditional_branch): Use methods
10591 of "final_sequence" for clarity, and for type-safety in the call to
10592 final_scan_insn.
10593 * config/sh/sh.c (print_slot): Strengthen param from rtx to
10594 rtx_sequence * and rename from "insn" to "seq".
10595
10596 2014-09-05 David Malcolm <dmalcolm@redhat.com>
10597
10598 * jump.c (delete_related_insns): Introduce a new local "table" by
10599 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
10600 get_labels method of "table" to simplify access to the labels in
10601 the jump table.
10602
10603 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10604
10605 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
10606 f_minmaxs, f_minmaxd types.
10607
10608 2014-09-05 Richard Biener <rguenther@suse.de>
10609
10610 * cfgloop.c (mark_loop_for_removal): Record former header
10611 when ENABLE_CHECKING.
10612 * cfgloop.h (strut loop): Add former_header member when
10613 ENABLE_CHECKING.
10614 * loop-init.c (fix_loop_structure): Sanity check loops
10615 marked for removal if they re-appeared.
10616
10617 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
10618
10619 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
10620 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
10621
10622 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
10623 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
10624 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
10625 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
10626 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
10627 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
10628 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
10629 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
10630 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
10631 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
10632 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
10633 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
10634 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
10635 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
10636 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
10637 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
10638 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
10639 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
10640 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
10641 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
10642 with int{32,16,8}_t.
10643
10644 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
10645
10646 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
10647 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
10648 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
10649 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
10650 Remove temporary __asm__ and reimplement.
10651
10652 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
10653
10654 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
10655 handling cmge, cmgt, cmeq, cmtst.
10656
10657 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
10658 cmlt, cmgeu, cmgtu, cmtst): Remove.
10659
10660 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
10661 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
10662 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
10663 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
10664
10665 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
10666
10667 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
10668 TYPES_TST): Define.
10669 (aarch64_fold_builtin): Update pattern for cmtst.
10670
10671 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
10672 Declare.
10673
10674 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
10675
10676 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
10677 Switch operands, separate out more cases, refactor.
10678
10679 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
10680
10681 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
10682 argument; rename old version to...
10683 (aarch64_const_vec_all_same_in_range_p): ...this.
10684 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
10685
10686 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
10687
10688 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
10689
10690 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
10691 Remove qualifier_const_pointer, update comment.
10692
10693 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
10694
10695 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
10696
10697 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
10698
10699 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
10700 varargs with pointer parameter.
10701 (aarch64_simd_expand_builtin): pass pointer into previous.
10702
10703 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10704
10705 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
10706 alus_ext.
10707
10708 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
10709
10710 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
10711 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
10712 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
10713 Replace temporary asm with call to builtin.
10714 (vrbit_p8, vrbitq_p8): New functions.
10715
10716 2014-09-05 Richard Biener <rguenther@suse.de>
10717
10718 * cfgloop.c (mark_loop_for_removal): New function.
10719 * cfgloop.h (mark_loop_for_removal): Declare.
10720 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
10721 (merge_blocks): Likewise.
10722 (duplicate_block): Likewise.
10723 * except.c (sjlj_emit_dispatch_table): Likewise.
10724 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
10725 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
10726 (thread_through_loop_header): Likewise.
10727
10728 2014-09-05 Richard Biener <rguenther@suse.de>
10729
10730 PR middle-end/63148
10731 * fold-const.c (try_move_mult_to_index): Remove.
10732 (fold_binary_loc): Do not call it.
10733 * tree-data-ref.c (dr_analyze_indices): Strip conversions
10734 from the base object again.
10735
10736 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
10737
10738 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
10739 DImode.
10740
10741 2014-09-05 Bin Cheng <bin.cheng@arm.com>
10742
10743 PR target/55701
10744 * config/arm/arm.md (setmem): New pattern.
10745 * config/arm/arm-protos.h (struct tune_params): New fields.
10746 (arm_gen_setmem): New prototype.
10747 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
10748 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
10749 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
10750 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
10751 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
10752 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
10753 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
10754 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
10755 (arm_const_inline_cost): New function.
10756 (arm_block_set_max_insns): New function.
10757 (arm_block_set_non_vect_profit_p): New function.
10758 (arm_block_set_vect_profit_p): New function.
10759 (arm_block_set_unaligned_vect): New function.
10760 (arm_block_set_aligned_vect): New function.
10761 (arm_block_set_unaligned_non_vect): New function.
10762 (arm_block_set_aligned_non_vect): New function.
10763 (arm_block_set_vect, arm_gen_setmem): New functions.
10764
10765 2014-09-05 Bin Cheng <bin.cheng@arm.com>
10766
10767 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
10768
10769 2014-09-05 Bin Cheng <bin.cheng@arm.com>
10770
10771 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
10772
10773 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
10774
10775 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
10776 an rtx.
10777 * valtrack.h: Adjust.
10778
10779 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
10780
10781 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
10782 an rtx.
10783 (emit_jump_insn_before_noloc): Likewise.
10784 (emit_call_insn_before_noloc): Likewise.
10785 (emit_label_before): Likewise.
10786 (emit_label_after): Likewise.
10787 (emit_insn_before_setloc): Likewise.
10788 (emit_jump_insn_before_setloc): Likewise.
10789 (emit_call_insn_before_setloc): Likewise.
10790 (emit_call_insn_before): Likewise.
10791 * rtl.h: Adjust.
10792
10793 2014-09-05 David Malcolm <dmalcolm@redhat.com>
10794
10795 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
10796 rtx_insn *, eliminating a checked cast.
10797
10798 2014-09-05 David Malcolm <dmalcolm@redhat.com>
10799
10800 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
10801 const_rtx to const rtx_insn *.
10802 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
10803 cast.
10804
10805 2014-09-05 David Malcolm <dmalcolm@redhat.com>
10806
10807 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
10808 fixup_args_size_notes.
10809 * expr.c (fixup_args_size_notes): Strengthen first two params from
10810 rtx to rtx_insn *, eliminating a checked cast.
10811 * rtl.h (fixup_args_size_notes): Strengthen first two params from
10812 rtx to rtx_insn *.
10813
10814 2014-09-05 David Malcolm <dmalcolm@redhat.com>
10815
10816 * haifa-sched.c (get_ready_element): Strengthen return type from
10817 rtx to rtx_insn *.
10818 * sched-int.h (get_ready_element): Likewise.
10819
10820 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
10821
10822 PR target/63165
10823 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
10824 indexed_or_indirect_operand instead of memory_operand.
10825 (floatsi<mode>2_lfiwzx_mem): Ditto.
10826
10827 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
10828
10829 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
10830 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
10831 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
10832
10833 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
10834
10835 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
10836 rtx.
10837 (get_last_nonnote_insn): Likewise.
10838 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
10839 * resource.c (find_basic_block): Likewise.
10840 * rtl.h: Adjust.
10841 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
10842 const_rtx.
10843
10844 2014-09-04 David Malcolm <dmalcolm@redhat.com>
10845
10846 * genattr.c (main): Within the prototype of insn_latency written
10847 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
10848 * genautomata.c (output_internal_maximal_insn_latency_func):
10849 Within the implementation of insn_latency written out to
10850 insn-automata.c, strengthen both params from rtx to rtx_insn *,
10851 eliminating a pair of checked casts.
10852
10853 2014-09-04 David Malcolm <dmalcolm@redhat.com>
10854
10855 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
10856 rtx_insn *.
10857
10858 * rtl.h (eh_returnjump_p): Likewise.
10859
10860 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
10861
10862 * Makefile.in (TAGS): Handle constructs in timevar.def.
10863
10864 2014-09-04 Guozhi Wei <carrot@google.com>
10865
10866 PR target/62040
10867 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
10868 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
10869 it into two patterns.
10870 (move_lo_quad_internal_be_<mode>): Likewise.
10871
10872 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
10873
10874 * doc/options.texi: Document that Var and Init are required if CPP
10875 is given.
10876 * optc-gen.awk: Require Var and Init if CPP is given.
10877 * common.opt (Wpedantic): Use Init.
10878
10879 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10880
10881 * config/rs6000/rs6000.c (special_handling_values): Add
10882 SH_EXTRACT.
10883 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
10884 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
10885 as swappable with special handling SH_EXTRACT. Remove
10886 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
10887 optimization.
10888 (adjust_extract): New function.
10889 (handle_special_swappables): Add default to case statement; add
10890 case for SH_EXTRACT that calls adjust_extract.
10891 (dump_swap_insn_table): Handle SH_EXTRACT.
10892
10893 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10894
10895 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
10896 selection of 0th memory doubleword, regardless of endianness.
10897
10898 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10899
10900 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
10901
10902 2014-09-04 Alan Modra <amodra@gmail.com>
10903
10904 PR debug/60655
10905 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
10906 can't be output.
10907
10908 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
10909
10910 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
10911 * targhooks.c (default_dwarf_frame_reg_mode): New function.
10912 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
10913 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
10914 * doc/tm.texi: Regenerate.
10915 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
10916 selection logic to default_dwarf_frame_reg_mode.
10917
10918 2014-09-03 Marek Polacek <polacek@redhat.com>
10919
10920 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
10921 by -Wall.
10922
10923 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
10924
10925 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
10926 the automodified register.
10927
10928 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
10929
10930 * output.h (get_some_local_dynamic_name): Declare.
10931 * final.c (some_local_dynamic_name): New variable.
10932 (get_some_local_dynamic_name): New function.
10933 (final_end_function): Clear some_local_dynamic_name.
10934 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
10935 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
10936 (print_operand): Report an error if '%&' is used inappropriately.
10937 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
10938 (get_some_local_dynamic_name_1): Delete.
10939 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
10940 (rs6000_get_some_local_dynamic_name): Delete.
10941 (rs6000_get_some_local_dynamic_name_1): Delete.
10942 (print_operand): Report an error if '%&' is used inappropriately.
10943 * config/s390/s390.c (machine_function): Remove some_ld_name.
10944 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
10945 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
10946 * config/sparc/sparc.c: Include rtl-iter.h.
10947 (machine_function): Remove some_ld_name.
10948 (sparc_print_operand): Report an error if '%&' is used inappropriately.
10949 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
10950
10951 2014-09-03 Richard Henderson <rth@redhat.com>
10952
10953 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
10954 (aarch64_popwb_pair_reg): Remove.
10955 (aarch64_set_frame_expr): Remove.
10956 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
10957 the restore ops performed by the insns generated.
10958 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
10959 insn. Perform the calls_eh_return addition later; do not attempt to
10960 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
10961 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
10962 special markup at all. Load cfun->machine->frame.hard_fp_offset
10963 into a local variable.
10964 (aarch64_frame_pointer_required): Don't check calls_alloca.
10965
10966 2014-09-03 Richard Biener <rguenther@suse.de>
10967
10968 * opts.c (default_options_optimization): Adjust
10969 max-combine-insns to 2 for -Og.
10970
10971 2014-09-03 Martin Jambor <mjambor@suse.cz>
10972
10973 PR ipa/62015
10974 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
10975 pass-trough jump functions correctly.
10976
10977 2014-09-03 Martin Jambor <mjambor@suse.cz>
10978
10979 PR ipa/61986
10980 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
10981 created replacements in ascending order of offsets.
10982 (known_aggs_to_agg_replacement_list): Likewise.
10983
10984 2014-09-03 Martin Liska <mliska@suse.cz>
10985
10986 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
10987 is set to set uninitialized value for vnresult.
10988
10989 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
10990
10991 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
10992 for TARGET_MUST_PASS_IN_STACK.
10993
10994 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
10995
10996 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
10997 for TARGET_ARG_PARTIAL_BYTES.
10998
10999 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
11000
11001 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
11002 instructions for varargs implementation.
11003 (nds32_expand_epilogue): Emit stack adjustment instructions for
11004 varargs implementation.
11005
11006 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
11007
11008 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
11009 optimization detection.
11010
11011 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
11012
11013 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
11014 arguments.
11015 (nds32_function_arg_advance): Deal with nameless arguments.
11016 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
11017 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
11018 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
11019
11020 2014-09-03 Richard Biener <rguenther@suse.de>
11021
11022 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
11023 (struct bb_bitmap_sets): Remove deferred member.
11024 (BB_DEFERRED): Remove.
11025 (defer_or_phi_translate_block): Remove.
11026 (compute_antic_aux): Remove deferring of blocks, assert
11027 proper iteration order.
11028 (compute_antic): Do not set BB_DEFERRED.
11029 (eliminate): Allocate el_avail of proper size initially.
11030
11031 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
11032
11033 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
11034 according to the value of crtl->args.pretend_args_size.
11035
11036 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
11037
11038 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
11039 varargs information.
11040
11041 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
11042
11043 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
11044 implementation for TARGET_SETUP_INCOMING_VARARGS.
11045 (nds32_strict_argument_naming): Refine comment.
11046 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
11047 Define for future implementation.
11048
11049 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
11050
11051 * config/i386/adxintrin.h (_subborrow_u32): New.
11052 (_addcarry_u32): Ditto.
11053 (_subborrow_u64): Ditto.
11054 (_addcarry_u64): Ditto.
11055 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
11056 IX86_BUILTIN_SBB64.
11057 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
11058 __builtin_ia32_sbb_u64
11059
11060 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
11061
11062 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
11063 GPR-specific stuff.
11064 (nds32_function_arg_advance): Likewise.
11065 (nds32_init_cumulative_args): Likewise.
11066 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
11067 (NDS32_FIRST_GPR_REGNUM): Define.
11068 (NDS32_LAST_GPR_REGNUM): Define.
11069 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
11070 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
11071 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
11072 (machine_function): Use GRP-specific stuff.
11073
11074 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
11075
11076 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
11077 (nds32_expand_epilogue): Likewise.
11078 (nds32_expand_prologue_v3push): Likewise.
11079 (nds32_expand_epilogue_v3pop): Likewise.
11080
11081 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
11082
11083 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
11084 v3push/v3pop for variadic function.
11085 * config/nds32/nds32.md (prologue, epilogue): Likewise.
11086
11087 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
11088
11089 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
11090 Check rtx for varargs implementation.
11091 (nds32_output_stack_pop): Likewise.
11092 * config/nds32/nds32-protos.h: Have a rtx argument for
11093 nds32_output_stack_push and nds32_output_stack_pop.
11094 * config/nds32/nds32.md: Likewise.
11095
11096 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
11097
11098 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
11099 to check if FUNC is an interrupt service routine.
11100 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
11101
11102 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
11103
11104 * config/nds32/nds32.h (machine_function): Add some fields for variadic
11105 arguments implementation.
11106
11107 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
11108
11109 * config/nds32/nds32-predicates.c
11110 (nds32_valid_stack_push_pop): Rename to ...
11111 (nds32_valid_stack_push_pop_p): ... this.
11112 * config/nds32/nds32-protos.h: Likewise.
11113 * config/nds32/predicates.md: Likewise.
11114
11115 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
11116
11117 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
11118 (nds32_emit_stack_v3push): ... this.
11119 (nds32_gen_stack_v3pop): Rename to ...
11120 (nds32_emit_stack_v3pop): ... this and consider CFA restore
11121 information.
11122
11123 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
11124
11125 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
11126 (nds32_emit_stack_push_multiple): ... this.
11127 (nds32_gen_stack_pop_multiple): Rename to ...
11128 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
11129 information.
11130
11131 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11132
11133 PR target/61078
11134 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
11135 and add a second splitter to handle the remaining cases.
11136
11137 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
11138
11139 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
11140
11141 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
11142
11143 * cfgexpand.c (label_rtx_for_bb): Change type to
11144 hash_map<basic_block, rtx_code_label *> *.
11145 (expand_gimple_basic_block): Adjust.
11146 (pass_expand::execute): Likewise.
11147
11148 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
11149
11150 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
11151 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
11152 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
11153 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
11154 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
11155 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
11156 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
11157 of rtx.
11158
11159 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
11160
11161 * alloc-pool.c: Include coretypes.h.
11162 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
11163 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
11164 hash_set instead of htab.
11165 * ggc-page.c (in_gc): New variable.
11166 (ggc_free): Do nothing if a collection is taking place.
11167 (ggc_collect): Set in_gc appropriately.
11168 * ggc.h (gt_ggc_mx(const char *)): New function.
11169 (gt_pch_nx(const char *)): Likewise.
11170 (gt_ggc_mx(int)): Likewise.
11171 (gt_pch_nx(int)): Likewise.
11172 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
11173 (hash_map::hash_entry::pch_nx): Likewise.
11174 (hash_map::hash_entry::pch_nx_helper): Likewise.
11175 (hash_map::hash_map): Adjust.
11176 (hash_map::create_ggc): New function.
11177 (gt_ggc_mx): Likewise.
11178 (gt_pch_nx): Likewise.
11179 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
11180 (default_hashset_traits::pch_nx): Likewise.
11181 (hash_set::hash_entry::ggc_mx): Likewise.
11182 (hash_set::hash_entry::pch_nx): Likewise.
11183 (hash_set::hash_entry::pch_nx_helper): Likewise.
11184 (hash_set::hash_set): Adjust.
11185 (hash_set::create_ggc): New function.
11186 (hash_set::elements): Likewise.
11187 (gt_ggc_mx): Likewise.
11188 (gt_pch_nx): Likewise.
11189 * hash-table.h (hash_table::hash_table): Adjust.
11190 (hash_table::m_ggc): New member.
11191 (hash_table::~hash_table): Adjust.
11192 (hash_table::expand): Likewise.
11193 (hash_table::empty): Likewise.
11194 (gt_ggc_mx): New function.
11195 (hashtab_entry_note_pointers): Likewise.
11196 (gt_pch_nx): Likewise.
11197
11198 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11199
11200 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
11201 built-in definition.
11202 (XVCVUXDDP_SCALE): Likewise.
11203 (XVCVDPSXDS_SCALE): Likewise.
11204 (XVCVDPUXDS_SCALE): Likewise.
11205 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11206 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
11207 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
11208 VSX_BUILTIN_XVCVDPUXDS_SCALE.
11209 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
11210 prototype.
11211 * config/rs6000/rs6000.c (real.h): New include.
11212 (rs6000_scale_v2df): New function.
11213 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
11214 (UNSPEC_VSX_XVCVUXDDP): Likewise.
11215 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
11216 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
11217 (vsx_xvcvsxddp_scale): New define_expand.
11218 (vsx_xvcvsxddp): New define_insn.
11219 (vsx_xvcvuxddp_scale): New define_expand.
11220 (vsx_xvcvuxddp): New define_insn.
11221 (vsx_xvcvdpsxds_scale): New define_expand.
11222 (vsx_xvcvdpsxds): New define_insn.
11223 (vsx_xvcvdpuxds_scale): New define_expand.
11224 (vsx_xvcvdpuxds): New define_insn.
11225 * doc/extend.texi (vec_ctf): Add new prototypes.
11226 (vec_cts): Likewise.
11227 (vec_ctu): Likewise.
11228 (vec_splat): Likewise.
11229 (vec_div): Likewise.
11230 (vec_mul): Likewise.
11231
11232 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11233
11234 PR target/62275
11235 * config/arm/neon.md
11236 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
11237 <v_cmp_result>): New pattern.
11238 * config/arm/iterators.md (NEON_VCVT): New int iterator.
11239 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
11240 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
11241 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
11242 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
11243 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
11244
11245 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11246
11247 PR target/62275
11248 * config/arm/iterators.md (FIXUORS): New code iterator.
11249 (VCVT): New int iterator.
11250 (su_optab): New code attribute.
11251 (su): Likewise.
11252 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
11253
11254 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11255
11256 * config/aarch64/predicates.md (aarch64_comparison_operation):
11257 New special predicate.
11258 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
11259 aarch64_comparison_operation instead of matching an operator.
11260 Update operand numbers.
11261 (csinc3<mode>_insn): Likewise.
11262 (*csinv3<mode>_insn): Likewise.
11263 (*csneg3<mode>_insn): Likewise.
11264 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
11265 * config/aarch64/aarch64.c (aarch64_get_condition_code):
11266 Return -1 instead of aborting on invalid condition codes.
11267 (aarch64_print_operand): Update aarch64_get_condition_code callsites
11268 to assert that the returned condition code is valid.
11269 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
11270
11271 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
11272
11273 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
11274 tree.def, and gimple.def
11275
11276 2014-09-02 Jakub Jelinek <jakub@redhat.com>
11277 Balaji V. Iyer <balaji.v.iyer@intel.com>
11278 Igor Zamyatin <igor.zamyatin@intel.com>
11279
11280 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
11281 (__cilkrts_cilk_for_64): Likewise.
11282 * cilk-common.c (declare_cilk_for_builtin): New function.
11283 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
11284 __cilkrts_cilk_for_64 bultins.
11285 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
11286 CILK_TI_F_LOOP_64.
11287 (cilk_for_32_fndecl): New define.
11288 (cilk_for_64_fndecl): Likewise.
11289 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
11290 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
11291 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
11292 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
11293 GF_OMP_FOR_COMBINED_INTO.
11294 * gimplify.c (gimplify_scan_omp_clauses): Added
11295 OMP_CLAUSE__CILK_FOR_COUNT_ case.
11296 (gimplify_adjust_omp_clauses): Ditto.
11297 (gimplify_omp_for): Added CILK_FOR case.
11298 (gimplify_expr): Ditto.
11299 * omp-low.c: Include cilk.h.
11300 (extract_omp_for_data): Set appropriate kind for
11301 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
11302 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
11303 (create_omp_child_function_name): Added second argument to handle
11304 cilk_for case.
11305 (cilk_for_check_loop_diff_type): New function.
11306 (expand_cilk_for_call): Likewise.
11307 (expand_cilk_for): Likewise.
11308 (create_omp_child_function): Set cilk_for_count; handle the cases when
11309 it is true; call create_omp_child_function_name with second argument.
11310 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
11311 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
11312 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
11313 * tree-nested.c (convert_nonlocal_omp_clauses): Added
11314 OMP_CLAUSE__CILK_FOR_COUNT_ case.
11315 (convert_local_omp_clauses): Ditto.
11316 * tree-pretty-print.c (dump_omp_clause): Added
11317 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
11318 (dump_generic_node): Added CILK_FOR case.
11319 * tree.c (omp_clause_num_ops): New element
11320 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
11321 (omp_clause_code_name): New element _Cilk_for_count_.
11322 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
11323 * tree.def: Add tree code for CILK_FOR.
11324
11325 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
11326
11327 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
11328 (ppc403-compare): Add "exts with dot" case.
11329 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
11330 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
11331 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
11332 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
11333 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
11334 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
11335 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
11336 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
11337 cell-cmp-microcoded): Similarly.
11338 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
11339 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
11340 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
11341 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
11342 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
11343 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
11344 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
11345 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
11346 (power6-compare): Add "exts with dot" case.
11347 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
11348 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
11349 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
11350
11351 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
11352 if avoiding Cell microcode.
11353 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
11354 (is_cracked_insn): Ditto.
11355 (insn_must_be_first_in_group): Ditto.
11356 * config/rs6000/rs6000.md (dot): Adjust comment.
11357 (cell_micro): Handle exts+dot.
11358 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
11359 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
11360 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
11361 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
11362 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
11363 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
11364 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
11365
11366 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
11367
11368 * config/rs6000/rs6000.md (QHSI): Delete.
11369 (EXTQI, EXTHI, EXTSI): New mode iterators.
11370 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
11371 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
11372 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
11373 9 anonymous instructions, and 8 splitters): Delete.
11374 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
11375 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
11376 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
11377 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
11378 *zero_extendsi<mode>2_dot2): New.
11379
11380 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
11381
11382 * config/rs6000/rs6000.md (any_extend): New code iterator.
11383 (u, su): New code attributes.
11384 (dmode, DMODE): New mode attributes.
11385 (<su>mul<mode>3_highpart): New.
11386 (*<su>mul<mode>3_highpart): New.
11387 (<su>mulsi3_highpart_le): New.
11388 (<su>muldi3_highpart_le): New.
11389 (<su>mulsi3_highpart_64): New.
11390 (<u>mul<mode><dmode>3): New.
11391 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
11392 splitters): Delete.
11393 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
11394 splitters): Delete.
11395
11396 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
11397
11398 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
11399 *mulsi3_internal2, and two splitters): Delete.
11400 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
11401 Delete.
11402 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
11403
11404 2014-09-02 Richard Biener <rguenther@suse.de>
11405
11406 PR tree-optimization/62695
11407 * tree-ssa-structalias.c (find_func_clobbers): Add missing
11408 vector truncate.
11409
11410 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
11411
11412 PR target/62312
11413 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
11414
11415 2014-09-01 Andi Kleen <ak@linux.intel.com>
11416
11417 * file-find.c (add_prefix_begin): Add.
11418 (do_add_prefix): Rename from add_prefix with first argument.
11419 (add_prefix): Add new wrapper.
11420 * file-find.h (add_prefix_begin): Add.
11421 * gcc-ar.c (main): Support -B option.
11422
11423 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
11424
11425 * genemit.c: Include dumpfile.h.
11426 (gen_split): Print name of splitter function to dump file.
11427
11428 2014-09-01 Richard Biener <rguenther@suse.de>
11429
11430 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
11431 Use stack auto_vecs for constraint expressions.
11432 (find_func_aliases_for_call): Likewise.
11433 (find_func_aliases): Likewise.
11434 (find_func_clobbers): Likewise.
11435
11436 2014-09-01 Richard Biener <rguenther@suse.de>
11437
11438 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
11439 operands vector in most cases. Remove redundant code.
11440
11441 2014-09-01 Olivier Hainque <hainque@adacore.com>
11442
11443 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
11444 $WIND_BASE instead of designating a harcoded arbitrary home dir.
11445 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
11446
11447 2014-09-01 Richard Biener <rguenther@suse.de>
11448
11449 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
11450 copy_reference_ops_from_call, vn_nary_op_compute_hash,
11451 vn_reference_compute_hash, vn_reference_insert): Remove.
11452 (vn_reference_lookup_call): New function.
11453 * tree-ssa-sccvn.c (vn_reference_compute_hash,
11454 copy_reference_ops_from_ref, copy_reference_ops_from_call,
11455 vn_reference_insert, vn_nary_op_compute_hash): Make static.
11456 (create_reference_ops_from_call): Remove.
11457 (vn_reference_lookup_3): Properly update shared_lookup_references.
11458 (vn_reference_lookup_pieces): Assert that we updated
11459 shared_lookup_references properly.
11460 (vn_reference_lookup): Likewise.
11461 (vn_reference_lookup_call): New function.
11462 (visit_reference_op_call): Use it. Avoid re-building the
11463 reference ops.
11464 (visit_reference_op_load): Remove redundant lookup.
11465 (visit_reference_op_store): Perform special tail-merging work
11466 only when possibly doing tail-merging.
11467 (visit_use): Likewise.
11468 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
11469
11470 2014-09-01 Jakub Jelinek <jakub@redhat.com>
11471
11472 PR target/62025
11473 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
11474 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
11475 (find_inc): Revert 2014-08-13 change.
11476
11477 2014-09-01 Marek Polacek <polacek@redhat.com>
11478
11479 PR middle-end/61903
11480 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
11481 Change the type of V to unsigned HOST_WIDE_INT.
11482
11483 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
11484
11485 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
11486 the size of byte markers.
11487 (do_shift_rotate): Fix confusion between host, target and marker byte
11488 size.
11489 (verify_symbolic_number_p): Likewise.
11490 (find_bswap_or_nop_1): Likewise.
11491 (find_bswap_or_nop): Likewise.
11492
11493 2014-09-01 Olivier Hainque <hainque@adacore.com>
11494
11495 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
11496 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
11497
11498 2014-09-01 Jakub Jelinek <jakub@redhat.com>
11499
11500 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
11501 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
11502 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
11503
11504 2014-09-01 Yury Gribov <y.gribov@samsung.com>
11505
11506 PR sanitizer/61897
11507 PR sanitizer/62140
11508 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
11509 (build_check_stmt): Likewise.
11510 (instrument_strlen_call): Likewise.
11511 (asan_expand_check_ifn): Likewise and fix types.
11512 (maybe_cast_to_ptrmode): New function.
11513
11514 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11515
11516 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
11517
11518 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
11519
11520 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
11521
11522 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
11523
11524 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
11525 prefix to function labels when generating fast indirect calls.
11526
11527 2014-08-30 David Malcolm <dmalcolm@redhat.com>
11528
11529 PR bootstrap/62304
11530
11531 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
11532 param back from rtx_insn * to rtx. Rename param from "label" to
11533 "label_or_return", reintroducing "label" as an rtx_insn * after
11534 we've ensured it's not a RETURN.
11535 (first_active_target_insn): Likewise for return type and param;
11536 add a checked cast to rtx_insn * once we've ensured "insn" is not
11537 a RETURN.
11538 (steal_delay_list_from_target): Convert param "pnew_thread" back
11539 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
11540 with JUMP_LABEL.
11541 (own_thread_p): Convert param "thread" back from an rtx_insn * to
11542 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
11543 cast once we've established we're not dealing with a RETURN,
11544 renaming subsequent uses of "thread" to "thread_insn".
11545 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
11546 to JUMP_LABEL.
11547 (follow_jumps): Convert return type and param "label" from
11548 rtx_insn * back to rtx. Move initialization of "value" to after
11549 the handling for ANY_RETURN_P, adding a checked cast there to
11550 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
11551 rename to "this_label_or_return", reintroducing "this_label" as
11552 an rtx_insn * once we've handled the case where it could be an
11553 ANY_RETURN_P.
11554 (fill_slots_from_thread): Rename param "thread" to
11555 "thread_or_return", converting from an rtx_insn * back to an rtx.
11556 Reintroduce name "thread" as an rtx_insn * local with a checked
11557 cast once we've handled the case of it being an ANY_RETURN_P.
11558 Convert local "new_thread" from an rtx_insn * back to an rtx.
11559 Add a checked cast when assigning to "trial" from "new_thread".
11560 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
11561 checked cast to rtx_insn * from "new_thread" when invoking
11562 get_label_before.
11563 (fill_eager_delay_slots): Convert locals "target_label",
11564 "insn_at_target" from rtx_insn * back to rtx.
11565 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
11566 (relax_delay_slots): Convert locals "trial", "target_label" from
11567 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
11568 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
11569 invoking update_block.
11570 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
11571 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
11572
11573 * resource.h (mark_target_live_regs): Undo erroneous conversion
11574 of second param of r214693, converting it back from rtx_insn * to
11575 rtx, since it could be a RETURN.
11576
11577 * resource.c (find_dead_or_set_registers): Similarly, convert
11578 param "jump_target" back from an rtx_insn ** to an rtx *, as we
11579 could be writing back a RETURN. Rename local rtx_insn * "next" to
11580 "next_insn", and introduce "lab_or_return" as a local rtx,
11581 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
11582 (mark_target_live_regs): Undo erroneous conversion
11583 of second param of r214693, converting it back from rtx_insn * to
11584 rtx, since it could be a RETURN. Rename it from "target" to
11585 "target_maybe_return", reintroducing the name "target" as a local
11586 rtx_insn * with a checked cast, after we've handled the case of
11587 ANY_RETURN_P.
11588
11589 2014-08-29 DJ Delorie <dj@redhat.com>
11590
11591 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
11592 pointer size up to a power of two.
11593 * defaults.h (DWARF2_ADDR_SIZE): Round up.
11594 (POINTER_SIZE_UNITS): New, rounded up value.
11595 * dwarf2asm.c (size_of_encoded_value): Use it.
11596 (dw2_output_indirect_constant_1): Likewise.
11597 * expmed.c (init_expmed_one_conv): We now know the sizes of
11598 partial int modes.
11599 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
11600 * optabs.c (expand_float): Use precision, not size.
11601 (expand_fix): Likewise.
11602 * simplify-rtx (simplify_unary_operation_1): Likewise.
11603 * tree-dfa.c (get_ref_base_and_extent): Likewise.
11604 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
11605 (default_assemble_integer) Likewise.
11606 (dump_tm_clone_pairs): Likewise.
11607 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
11608 * var-tracking.c (adjust_mems): Allow partial-int modes also.
11609 (prepare_call_arguments): Likewise.
11610 * stor-layout.c (finalize_type_size): Preserve precision.
11611 (layout_type): Use precision, not size.
11612
11613 * expr.c (convert_move): If the target has an explicit converter,
11614 use it.
11615
11616 2014-08-29 David Malcolm <dmalcolm@redhat.com>
11617
11618 * gdbinit.in: Skip various inline functions in rtl.h when
11619 stepping.
11620
11621 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
11622
11623 PR bootstrap/62301
11624 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
11625
11626 2014-08-29 Richard Biener <rguenther@suse.de>
11627
11628 PR tree-optimization/62291
11629 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
11630 exactly the vector size needed and use quick_push.
11631 (phi_translate_1): Adjust comment.
11632 (valid_in_sets): Remove block argument and remove pointless
11633 checking of NAMEs.
11634 (dependent_clean): Adjust for removal of block argument.
11635 (clean): Likewise.
11636 (compute_antic_aux): Likewise.
11637 (compute_partial_antic_aux): Likewise.
11638
11639 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
11640 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11641 Anna Tikhonova <anna.tikhonova@intel.com>
11642 Ilya Tocar <ilya.tocar@intel.com>
11643 Andrey Turetskiy <andrey.turetskiy@intel.com>
11644 Ilya Verbin <ilya.verbin@intel.com>
11645 Kirill Yukhin <kirill.yukhin@intel.com>
11646 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11647
11648 * config/i386/sse.md
11649 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
11650 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
11651 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
11652 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
11653
11654 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
11655 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11656 Anna Tikhonova <anna.tikhonova@intel.com>
11657 Ilya Tocar <ilya.tocar@intel.com>
11658 Andrey Turetskiy <andrey.turetskiy@intel.com>
11659 Ilya Verbin <ilya.verbin@intel.com>
11660 Kirill Yukhin <kirill.yukhin@intel.com>
11661 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11662
11663 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
11664 * config/i386/sse.md
11665 (define_mode_iterator VI4_128_8_256): New.
11666 (define_mode_iterator VI2_128_4_256): Ditto.
11667 (define_mode_iterator PMOV_DST_MODE): Rename into
11668 (define_mode_iterator PMOV_DST_MODE_1): this.
11669 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
11670 Use PMOV_DST_MODE_1 mode iterator.
11671 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
11672 Ditto.
11673 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
11674 Ditto.
11675 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
11676 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
11677 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
11678 (define_mode_iterator PMOV_DST_MODE_2): New.
11679 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
11680 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
11681 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
11682 Ditto.
11683 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
11684 (define_mode_attr pmov_dst_3): Ditto.
11685 (define_mode_attr pmov_dst_zeroed_3): Ditto.
11686 (define_mode_attr pmov_suff_3): Ditto.
11687 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
11688 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
11689 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
11690 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
11691 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
11692 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
11693 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
11694 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
11695 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
11696 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
11697 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
11698 (define_mode_attr pmov_dst_4): Ditto.
11699 (define_mode_attr pmov_dst_zeroed_4): Ditto.
11700 (define_mode_attr pmov_suff_4): Ditto.
11701 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
11702 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
11703 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
11704 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
11705 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
11706 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
11707 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
11708 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
11709 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
11710 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
11711 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
11712
11713 2014-08-29 Richard Biener <rguenther@suse.de>
11714
11715 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
11716 NON_LVALUE_EXPR in gimple.
11717
11718 2014-08-29 Richard Biener <rguenther@suse.de>
11719
11720 PR middle-end/62292
11721 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
11722 from previous refactoring.
11723 (gimple_fold_builtin_strncpy): Likewise.
11724
11725 2014-08-29 David Malcolm <dmalcolm@redhat.com>
11726
11727 PR bootstrap/62300
11728 * function.c (assign_parm_setup_reg): Remove erroneous checked
11729 cast to rtx_insn * on result of gen_extend_insn in favor of
11730 introducing a new local rtx "pat".
11731
11732 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11733
11734 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
11735 to silence warning.
11736 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
11737
11738 2014-08-28 David Malcolm <dmalcolm@redhat.com>
11739
11740 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
11741 (next_insn): Likewise.
11742 * emit-rtl.c (next_insn): Likewise.
11743 (previous_insn): Likewise.
11744 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
11745 "insn" and "next" from rtx to rtx_insn *.
11746 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
11747 "insn", "insn1", "vliw_start", "prologue_end_note",
11748 "last_insn_in_packet".
11749
11750 2014-08-28 David Malcolm <dmalcolm@redhat.com>
11751
11752 * shrink-wrap.h (active_insn_between): Strengthen both params from
11753 rtx to rtx_insn *.
11754 * function.c (active_insn_between): Likewise.
11755
11756 2014-08-28 David Malcolm <dmalcolm@redhat.com>
11757
11758 * genattr.c (main): When writing out insn-attr.h, strengthen param
11759 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
11760 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
11761 writing out the definition of dfa_clear_single_insn_cache to the
11762 generated insn-automata.c
11763
11764 2014-08-28 David Malcolm <dmalcolm@redhat.com>
11765
11766 * resource.h (clear_hashed_info_for_insn): Strengthen param from
11767 rtx to rtx_insn *.
11768 (incr_ticks_for_insn): Likewise.
11769 (init_resource_info): Likewise.
11770
11771 * resource.c (init_resource_info): Likewise.
11772 (clear_hashed_info_for_insn): Likewise.
11773 (incr_ticks_for_insn): Likewise.
11774
11775 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
11776 rtx to rtx_insn *.
11777 (steal_delay_list_from_target): Use methods of "seq".
11778 (try_merge_delay_insns): Use methods of "merged_insns".
11779 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
11780 (reorg_redirect_jump): Likewise for param "jump".
11781
11782 2014-08-28 David Malcolm <dmalcolm@redhat.com>
11783
11784 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
11785 rtx to rtx_insn *.
11786 * config/s390/s390.c (s390_split_branches): Eliminate top-level
11787 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
11788 "set_insn".
11789 (s390_mainpool_finish): In three places, split out a local rtx
11790 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
11791 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
11792 and split another local rtx "insn" out into rtx "pat" and
11793 rtx_insn * "insn".
11794 * config/sh/sh.c (output_branchy_insn): Rather than working
11795 directly on operands[9], introduce local rtx_code_label *
11796 variables named "lab" in two places, working on them, and then
11797 assigning them to operands[9], so that the intervening operations
11798 are known by the type system to be on insns.
11799
11800 2014-08-28 David Malcolm <dmalcolm@redhat.com>
11801
11802 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
11803 const rtx_insn *.
11804
11805 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
11806 in invocation of INSN_HAS_LOCATION.
11807
11808 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11809
11810 * config/rs6000/altivec.h (vec_xl): New #define.
11811 (vec_xst): Likewise.
11812 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
11813 (XXSPLTD_V2DI): Likewise.
11814 (DIV_V2DI): Likewise.
11815 (UDIV_V2DI): Likewise.
11816 (MUL_V2DI): Likewise.
11817 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11818 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
11819 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
11820 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
11821 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
11822 (UNSPEC_VSX_DIVSD): Likewise.
11823 (UNSPEC_VSX_DIVUD): Likewise.
11824 (UNSPEC_VSX_MULSD): Likewise.
11825 (vsx_mul_v2di): New insn-and-split.
11826 (vsx_div_v2di): Likewise.
11827 (vsx_udiv_v2di): Likewise.
11828 (vsx_xxspltd_<mode>): New insn.
11829
11830 2014-08-28 David Malcolm <dmalcolm@redhat.com>
11831
11832 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
11833 NEXT_INSN.
11834 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
11835 (NEXT_INSN): Likewise.
11836 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
11837 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
11838 const rtx_insn *.
11839 (no_labels_between_p): Likewise for both params.
11840
11841 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
11842 cast when using NEXT_INSN on operands[2].
11843 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
11844 "insn" from rtx to rtx_insn *, adding a checked cast.
11845 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
11846 rtx_insn *.
11847 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
11848 for third param.
11849 (arc_text_label): Likewise for param "insn".
11850 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
11851 "insn".
11852 (arc_ccfsm_record_condition): Likewise for param "jump".
11853 (arc_text_label): Likewise for local "label".
11854 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
11855 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
11856 a method for typesafety. Add a checked cast.
11857 * config/arc/constraints.md (Clb): Add a checked cast when getting
11858 the CODE_LABEL from a LABEL_REF.
11859 * config/arm/arm.c (require_pic_register): Strengthen locals
11860 "seq", "insn" from rtx to rtx_insn *.
11861 (create_fix_barrier): Likewise for locals "selected", "next".
11862 (thumb1_reorg): Likewise for locals "prev", "insn".
11863 (arm_expand_prologue): Likewise for local "last".
11864 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
11865 operands[0].
11866 (thumb2_output_casesi): Likewise for operands[2].
11867 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
11868 strengthen local "insn" from rtx to rtx_insn *.
11869 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
11870 type and param "insn".
11871 (find_prev_insn_start): Likewise.
11872 (hwloop_optimize): Likewise for locals "insn", "last_insn",
11873 "prev".
11874 (gen_one_bundle): Likewise for loal "t".
11875 (find_load): Likewise for param "insn".
11876 (workaround_speculation): Likewise for locals "insn", "next",
11877 "target", "next_tgt".
11878 * config/c6x/c6x.c (assign_reservations): Likewise for both params
11879 and for locals "insn", "within", "last".
11880 (count_unit_reqs): Likewise for params "head", "tail" and local
11881 "insn".
11882 (try_rename_operands): Likewise for params "head", "tail".
11883 (reshuffle_units): Likewise for locals "head", "tail", "insn".
11884 (struct c6x_sched_context): Likewise for fields
11885 "last_scheduled_insn", "last_scheduled_iter0".
11886 (init_sched_state): Replace NULL_RTX with NULL.
11887 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
11888 to rtx_insn *.
11889 (undo_split_delayed_nonbranch): Likewise for param and for local
11890 "prev".
11891 (conditionalize_after_sched): Likewise for local "insn".
11892 (bb_earliest_end_cycle): Likewise.
11893 (filter_insns_above): Likewise for locals "insn", "next".
11894 (hwloop_optimize): Remove redundant checked cast.
11895 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
11896 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
11897 NULL_RTX with NULL.
11898 (cris_simple_epilogue): Likewise.
11899 (cris_expand_prologue): Likewise.
11900 (cris_expand_epilogue): Likewise.
11901 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
11902 local "insn" from rtx to rtx_insn *.
11903 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
11904 (struct frv_packet_group): Likewise for the elements within array
11905 fields "insns", "sorted", and for field "nop".
11906 (frv_packet): Likewise for the elements within array field
11907 "insns".
11908 (frv_add_insn_to_packet): Likewise for param "insn".
11909 (frv_insert_nop_in_packet): Likewise for param "insn" and local
11910 "last".
11911 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
11912 (frv_sort_insn_group_1): Likewise for local "insn".
11913 (frv_optimize_membar_local): Likewise.
11914 (frv_align_label): Likewise for locals "x", "last", "barrier",
11915 "label".
11916 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
11917 local.
11918 (ia64_sched_init): Likewise for local "insn".
11919 (scheduled_good_insn): Likewise for param "last".
11920 (struct _ia64_sched_context): Likewise for field
11921 "last_scheduled_insn".
11922 (ia64_init_sched_context): Replace NULL_RTX with NULL.
11923 (struct bundle_state): Likewise for field "insn".
11924 (issue_nops_and_insn): Likewise for param "insn".
11925 (get_next_important_insn): Likewise for return type and both
11926 params.
11927 (ia64_add_bundle_selector_before): Likewise for param "insn".
11928 (bundling): Likewise for params "prev_head_insn", "tail" and
11929 locals "insn", "next_insn", "b". Eliminate top-level local rtx
11930 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
11931 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
11932 Strengthen final param from rtx to rtx_insn *.
11933 (iq2000_move_1word): Likewise for second param.
11934 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
11935 param "cur_insn" and local "next_insn".
11936 (iq2000_move_1word): Likewise for param "insn".
11937 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
11938 casts when using NEXT_INSN on operands[1].
11939 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
11940 "insn" from rtx to rtx_insn *.
11941 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
11942 "x", introducing local rtx_insn * "insn" for when working with the
11943 CODE_LABEL of the LABEL_REF.
11944 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
11945 rtx_insn *.
11946 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
11947 param.
11948 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
11949 type.
11950 (conditionalize_block): Likewise for return type and param.
11951 (mcore_is_dead): Likewise for param "first" and local "insn".
11952 (emit_new_cond_insn): Likewise for return type.
11953 (conditionalize_block): Likewise for return type, param, and
11954 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
11955 "newinsn".
11956 (conditionalize_optimization): Likewise for local "insn".
11957 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
11958 using NEXT_INSN.
11959 * config/microblaze/microblaze.md: Add checked casts when using
11960 NEXT_INSN.
11961 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
11962 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
11963 and rtx_insn * "insn".
11964 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
11965 checked cast when using NEXT_INSN on operands[2].
11966 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
11967 local "insn" from rtx to rtx_insn *.
11968 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
11969 Likewise.
11970 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
11971 Add a checked cast when using NEXT_INSN on operands[1].
11972 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
11973 rtx to rtx_insn *.
11974 (pa_output_cbranch): Likewise for final param.
11975 (pa_output_lbranch): Likewise for second param.
11976 (pa_output_bb): Likewise for third param.
11977 (pa_output_bvb): Likewise.
11978 (pa_output_dbra): Likewise for second param.
11979 (pa_output_movb): Likewise.
11980 (pa_output_parallel_movb): Likewise.
11981 (pa_output_parallel_addb): Likewise.
11982 (pa_output_millicode_call): Likewise for first param.
11983 (pa_output_mul_insn): Likewise for second param.
11984 (pa_output_div_insn): Likewise for third param.
11985 (pa_output_mod_insn): Likewise for second param.
11986 (pa_jump_in_call_delay): Likewise for param.
11987 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
11988 (pa_output_div_insn): Likewise.
11989 (pa_output_mod_insn): Likewise.
11990 (pa_output_cbranch): Likewise.
11991 (pa_output_lbranch): Likewise.
11992 (pa_output_bb): Likewise.
11993 (pa_output_bvb): Likewise.
11994 (pa_output_dbra): Likewise.
11995 (pa_output_movb): Likewise.
11996 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
11997 to simplify and for typesafety.
11998 (pa_output_call): Use method of rtx_sequence *.
11999 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
12000 (pa_jump_in_call_delay): Likewise.
12001 (pa_output_parallel_movb): Likewise.
12002 (pa_output_parallel_addb): Likewise.
12003 (pa_following_call): Likewise.
12004 (pa_combine_instructions): Likewise for locals "anchor",
12005 "floater".
12006 (pa_can_combine_p): Likewise for params "anchor", "floater" and
12007 locals "start", "end".
12008 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
12009 param "insn" and local "local_insn".
12010 (picochip_final_prescan_insn): Likewise for local "local_insn".
12011 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
12012 local "insn".
12013 (uses_TOC): Likewise.
12014 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
12015 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
12016 splitting out to more tightly-scoped locals, 3 as rtx and one as
12017 rtx_insn *.
12018 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
12019 to rtx_insn *.
12020 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
12021 where needed.
12022 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
12023 to rtx_insn *.
12024 (fixup_addr_diff_vecs): Likewise.
12025 (reg_unused_after): Likewise for param 2.
12026 (sh_can_redirect_branch): Likewise for both params.
12027 (check_use_sfunc_addr): Likewise for param 1.
12028 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
12029 (find_barrier): Likewise for local "last_got".
12030 (gen_block_redirect): Likewise for return type, param "jump" and
12031 locals "prev", "scan", "next", "insn".
12032 (struct far_branch): Likewise for fields "near_label",
12033 "insert_place", "far_label".
12034 (gen_far_branch): Likewise for local "jump".
12035 (fixup_addr_diff_vecs): Likewise for param "first" and locals
12036 "insn", "prev".
12037 (barrier_align): Likewise for param and for locals "prev", "x".
12038 Introduce local rtx_sequence * "prev_seq" and use insn method for
12039 typesafety and clarity.
12040 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
12041 (get_dest_uid): Likewise for local "dest".
12042 (split_branches): Likewise for locals "next", "beyond", "label",
12043 "block", "far_label". Add checked casts when assigning to
12044 bp->far_label and "far_label".
12045 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
12046 (sequence_insn_p): Likewise.
12047 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
12048 more loop-scoped rtx "insn" when walking LABEL_REFS.
12049 (sh_can_redirect_branch): Strengthen both params from rtx to
12050 rtx_insn *.
12051 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
12052 new local rtx_sequence * "seq" via a dyn_cast, and use a method
12053 for clarity and typesafety.
12054 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
12055 "insn" from rtx to rtx_insn *.
12056 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
12057 when using NEXT_INSN on the CODE_LABEL in operands[2].
12058 (define_insn "casesi_worker_2"): Likewise.
12059 (define_insn "casesi_shift_media"): Likewise.
12060 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
12061 operands[3].
12062 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
12063 Strengthen field "insn" from rtx to rtx_insn *.
12064 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
12065 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
12066 param "start_insn" and local "start_insn".
12067 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
12068 field "insn".
12069 (find_set_of_reg_bb): Likewise for param "insn".
12070 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
12071 (trace_reg_uses): Likewise for param "start_insn".
12072 (sh_treg_combine::cbranch_trace): Likewise for field
12073 "cbranch_insn".
12074 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
12075 param "insn".
12076 (sh_treg_combine::record_set_of_reg): Likewise for param
12077 "start_insn" and local "i".
12078 (sh_treg_combine::can_remove_cstore): Likewise for local
12079 "prev_insn".
12080 (sh_treg_combine::try_optimize_cbranch): Likewise for param
12081 "insn".
12082 (sh_treg_combine::execute): Likewise for local "i".
12083 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
12084 param.
12085 (sparc_check_64): Likewise for second param.
12086 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
12087 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
12088 dyn_cast, using its insn method for typesafety and clarity.
12089 (empty_delay_slot): Strengthen param "insn" from rtx to
12090 rtx_insn *.
12091 (set_extends): Likewise.
12092 (sparc_check_64): Likewise.
12093 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
12094 for locals "seq", "last_insn".
12095 (combine_bnp): Likewise for param "insn".
12096 (xstormy16_reorg): Likewise for local "insn".
12097 * config/v850/v850.c (substitute_ep_register): Likewise for params
12098 "first_insn", "last_insn" and local "insn".
12099 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
12100 elements of "regs" array, and local "insn".
12101 * except.c (emit_note_eh_region_end): Likewise for param "insn".
12102 * final.c (final_sequence): Strengthen this global from rtx to
12103 rtx_sequence *.
12104 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
12105 rtx_insn *.
12106 (final_scan_insn): Update assignment to "final_sequence" to be
12107 from "seq", the cast version of "body", for type-safety.
12108 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
12109 "insns" from rtx to rtx_insn *.
12110 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
12111 * genattr.c (main): When writing out generated insn-attr.h,
12112 strengthen params 1 and 3 of eligible_for_delay,
12113 eligible_for_annul_true, eligible_for_annul_false from rtx to
12114 rtx_insn *.
12115 * genattrtab.c (write_eligible_delay): Likewise when writing out
12116 generated insn-attrtab.c; also local "insn" the generated
12117 functions.
12118 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
12119 to rtx_insn *.
12120 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
12121 "start_label" from rtx to rtx_insn *.
12122 * ira.c (decrease_live_ranges_number): Likewise for local "p".
12123 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
12124 "insns" and local "insn".
12125 (validate_equiv_mem): Likewise for param "start" and local "insn".
12126 (memref_used_between_p): Likewise for params "start", "end" and
12127 local "insn".
12128 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
12129 final param.
12130 * loop-doloop.c (doloop_optimize): Within region guarded by
12131 INSN_P (doloop_pat), introduce a new local rtx_insn *
12132 "doloop_insn" via a checked cast, and use it for typesafety,
12133 eventually writing the value back into doloop_pat.
12134 * output.h (final_sequence): Strengthen this global from rtx to
12135 rtx_sequence *.
12136 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
12137 reintroducing "insn" as an rtx_insn * via a checked cast.
12138 Strengthen param "attempt" and local "new_insn"from rtx to
12139 rtx_insn *.
12140 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
12141 to rtx_insn *.
12142 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
12143 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
12144 "p" in favor of more tightly-scoped replacements, sometimes rtx
12145 and sometimes rtx_insn *, as appropriate.
12146 (delete_output_reload): Eliminate top-level rtx "i1", splitting
12147 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
12148 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
12149 local "trial" from rtx to rtx_insn *.
12150 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
12151 rtx to rtx_insn *. Strenghten local "pat" from rtx to
12152 rtx_sequence * and use methods for clarity and typesafety.
12153 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
12154 rtx to rtx_insn *. Strenghten local "li" from rtx to
12155 rtx_insn_list * and use its methods for clarity and typesafety.
12156 (steal_delay_list_from_target): Strengthen param "insn" from rtx
12157 to rtx_insn *.
12158 (steal_delay_list_from_fallthrough): Likewise.
12159 (try_merge_delay_insns): Likewise for param "thread" and locals
12160 "trial", "next_trial", "delay_insn".
12161 (redundant_insn): Likewise for param "target" and local "trial".
12162 (own_thread_p): Likewise for param "thread" and locals
12163 "active_insn", "insn".
12164 (get_label_before): Likewise for param "insn".
12165 (fill_simple_delay_slots): Likewise for local "new_label"; use
12166 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
12167 (label_before_next_insn): Strengthen return type and local "insn"
12168 from rtx to rtx_insn *.
12169 (relax_delay_slots): Likewise for locals "other", "tmp".
12170 (make_return_insns): Likewise for param "first" and locals "insn",
12171 "jump_insn", "prev". Move declaration of "pat" to its assignment
12172 and strengthen from rtx to rtx_sequence *. Use its methods for
12173 clarity and typesafety.
12174 * rtlanal.c (no_labels_between_p): Strengthen params from
12175 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
12176 rtx_insn *.
12177 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
12178 from const_rtx to const rtx_insn *.
12179 (reg_set_between_p): Rename param "from_insn" to
12180 "uncast_from_insn", and reintroduce "from_insn" as a
12181 const rtx_insn * via a checked cast.
12182 (modified_between_p): Likewise for param "start" as "uncast_start".
12183 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
12184 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
12185 "tmp", head" from rtx to rtx_insn *.
12186 (recompute_rev_top_order): Likewise for local "insn".
12187 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
12188 * store-motion.c (build_store_vectors): Likewise for local "insn".
12189 Strengthen local "st" from rtx to rtx_insn_list * and use methods
12190 for clarity and typesafety.
12191 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
12192 rtx to rtx_insn *.
12193 (computation_cost): Likewise for local "seq".
12194 (get_address_cost): Likewise.
12195
12196 2014-08-28 David Malcolm <dmalcolm@redhat.com>
12197
12198 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
12199 const rtx_insn *.
12200 (label_is_jump_target_p): Likewise for second param.
12201
12202 * rtlanal.c (tablejump_p): Likewise for param "insn".
12203 (label_is_jump_target_p): Likewise for param "jump_insn".
12204
12205 2014-08-28 David Malcolm <dmalcolm@redhat.com>
12206
12207 * rtl.h (find_first_parameter_load): Strengthen return type and
12208 both params from rtx to rtx_insn *.
12209 * rtlanal.c (find_first_parameter_load): Strengthen return type,
12210 both params and locals "before", "first_set" from rtx to
12211 rtx_insn *. Remove now-redundant cast.
12212 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
12213
12214 2014-08-28 David Malcolm <dmalcolm@redhat.com>
12215
12216 * rtl.h (find_last_value): Delete.
12217 * rtlanal.c (find_last_value): Delete.
12218
12219 2014-08-28 David Malcolm <dmalcolm@redhat.com>
12220
12221 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
12222 from rtx to rtx_insn *.
12223 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
12224 rtx "note" with new local rtx_insn * "new_head" when calculating
12225 head insn of new basic block.
12226 * combine.c (combine_split_insns): Strengthen return type and local
12227 "ret" from rtx to rtx_insn *.
12228 (likely_spilled_retval_p): Likewise for locals "use" and "p".
12229 (try_combine): Eliminate local "m_split", splitting into new
12230 locals "m_split_insn" and "m_split_pat".
12231 (find_split_point): Strengthen local "seq" from rtx into
12232 rtx_insn *.
12233 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
12234 locals "label", "branch".
12235 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
12236 for local "insn".
12237 (define_expand "umulsi3_highpart"): Likewise for local "insn".
12238 * dse.c (note_add_store_info): Likewise for fields "first",
12239 "current".
12240 (note_add_store): Likewise for local "insn".
12241 (emit_inc_dec_insn_before): Likewise for locals "insn",
12242 "new_insn", "cur".
12243 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
12244 (replace_read): Likewise for locals "insns", "this_insn".
12245 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
12246 (notice_eh_throw): Likewise for param "insn".
12247 (before_next_cfi_note): Likewise for return type, param, and local
12248 "prev".
12249 (connect_traces): Likewise for local "note".
12250 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
12251 (verify_rtl_sharing): Likewise.
12252 (unshare_all_rtl_in_chain): Likewise for param "insn".
12253 (get_first_nonnote_insn): Likewise for local "insn".
12254 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
12255 "seq" and use its methods to clarify things.
12256 (next_insn): Strengthen return type from rtx to rtx_insn *.
12257 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
12258 local rtx_insn * using a checked cast, dropping a checked cast
12259 made redundant by this change. Use a cast to and method of
12260 rtx_sequence to clarify the code.
12261 (previous_insn): Rename param "insn" to "uncast_insn" and
12262 reintroduce "insn" as a local rtx_insn * using a checked cast,
12263 dropping a checked cast made redundant by this change. Use a cast
12264 to and method of rtx_sequence to clarify the code.
12265 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
12266 reintroduce "insn" as a local rtx_insn * using a checked cast,
12267 dropping a checked cast made redundant by this change.
12268 (next_nonnote_insn_bb): Likewise.
12269 (prev_nonnote_insn): Likewise.
12270 (prev_nonnote_insn_bb): Likewise.
12271 (next_nondebug_insn): Likewise.
12272 (prev_nondebug_insn): Likewise.
12273 (next_nonnote_nondebug_insn): Likewise.
12274 (prev_nonnote_nondebug_insn): Likewise.
12275 (next_real_insn): Likewise.
12276 (prev_real_insn): Likewise.
12277 (next_active_insn): Likewise.
12278 (prev_active_insn): Likewise.
12279 (next_cc0_user): Likewise. Use rtx_sequence and a method for
12280 clarity.
12281 (prev_cc0_setter): Likewise.
12282 (try_split): Rename param "trial" to "uncast_trial" and
12283 reintroduce "insn" as a local rtx_insn * using a checked cast,
12284 dropping checked casts made redundant by this change.
12285 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
12286 rtx to rtx_insn *.
12287 (remove_insn): Rename param "insn" to "uncast_insn" and
12288 reintroduce "insn" as a local rtx_insn * using a checked cast.
12289 (emit_pattern_after_setloc): Likewise for param "after", as
12290 "uncast_after".
12291 (emit_pattern_after): Likewise. Strengthen local "prev" from
12292 rtx to rtx_insn *.
12293 (emit_pattern_before_setloc): Rename param "before" to
12294 "uncast_before" and reintroduce "before" as a local rtx_insn *
12295 using a checked cast. Strengthen locals "first", "last" from
12296 rtx to rtx_insn *.
12297 (emit_pattern_before): Likewise rename/cast param "before" to
12298 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
12299 * except.c (copy_reg_eh_region_note_forward): Strengthen param
12300 "first" and local "insn" from rtx to rtx_insn *.
12301 (copy_reg_eh_region_note_backward): Likewise for param "last"
12302 and local "insn".
12303 * expr.c (fixup_args_size_notes): Rename param "last" to
12304 "uncast_last" and reintroduce "last" as a local rtx_insn *
12305 using a checked cast. Strengthen local "insn" from rtx to
12306 rtx_insn *.
12307 * function.c (set_insn_locations): Strengthen param "insn" from
12308 rtx to rtx_insn *.
12309 (record_insns): Likewise for param "insns" and local "tmp".
12310 (active_insn_between): Rename param "tail" to
12311 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
12312 using a checked cast.
12313 (thread_prologue_and_epilogue_insns): Split out top-level local
12314 rtx "seq" into three different rtx_insn * locals. Strengthen
12315 local "prologue_seq" from rtx to rtx_insn *.
12316 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
12317 from rtx to rtx_insn *.
12318 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
12319 (priority): Likewise for locals "prev_first", "twin".
12320 (setup_insn_max_reg_pressure): Likewise for param "after".
12321 (sched_setup_bb_reg_pressure_info): Likewise.
12322 (no_real_insns_p): Strengthen params from const_rtx to
12323 const rtx_insn *.
12324 (schedule_block): Strengthen local "next_tail" from rtx to
12325 rtx_insn *.
12326 * ifcvt.c (find_active_insn_before): Strengthen return type and
12327 param "insn" from rtx to rtx_insn *.
12328 (find_active_insn_after): Likewise.
12329 (cond_exec_process_insns): Likewise for param "start" and local "insn".
12330 (cond_exec_process_if_block): Likewise for locals "then_start",
12331 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
12332 (noce_process_if_block): Likewise for local "jump".
12333 (merge_if_block): Likewise for two locals named "end".
12334 (cond_exec_find_if_block): Likewise for local "last_insn".
12335 * jump.c (delete_related_insns): Rename param "insn" to
12336 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
12337 checked cast. Strengthen local "p" from rtx to rtx_insn *.
12338 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
12339 NULL.
12340 (split_reg): Likewise.
12341 * lra.c (lra_process_new_insns): Likewise.
12342 * modulo-sched.c (permute_partial_schedule): Strengthen param
12343 "last" from rtx to rtx_insn *.
12344 * optabs.c (add_equal_note): Likewise for param "insns" and local
12345 "last_insn".
12346 (expand_binop_directly): Add checked casts to rtx_insn * within
12347 NEXT_INSN (pat) uses.
12348 (expand_unop_direct): Likewise.
12349 (maybe_emit_unop_insn): Likewise.
12350 * recog.c (peep2_attempt): Strengthen locals "last",
12351 "before_try", "x" from rtx to rtx_insn *.
12352 * reorg.c (optimize_skip): Strengthen return type and local
12353 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
12354 and locals "trial", "next_trial" from rtx to rtx_insn *.
12355 * resource.c (next_insn_no_annul): Strengthen return type and
12356 param "insn" from rtx to rtx_insn *. Use a cast to and method of
12357 rtx_sequence to clarify the code.
12358 (mark_referenced_resources): Add a checked cast to rtx_insn *
12359 within PREV_INSN (x).
12360 (find_dead_or_set_registers): Strengthen return type, param
12361 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
12362 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
12363 to rtx_insn **.
12364 (mark_target_live_regs): Strengthen params "insns" and "target",
12365 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
12366 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
12367 the code.
12368 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
12369 from rtx to rtx_insn *.
12370 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
12371 from rtx to rtx_insn *.
12372 (copy_reg_eh_region_note_backward): Likewise.
12373 (unshare_all_rtl_in_chain): Likewise for sole param.
12374 (dump_rtl_slim): Strengthen second and third params from const_rtx
12375 to const rtx_insn *.
12376 * sched-deps.c (sched_free_deps): Strengthen params "head" and
12377 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
12378 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
12379 "next_tail" from rtx to rtx_insn *.
12380 (begin_move_insn): Likewise for local "next".
12381 * sched-int.h (sched_free_deps): Likewise for first and second
12382 params.
12383 (no_real_insns_p): Strengthen both params from const_rtx to
12384 const rtx_insn *.
12385 (sched_setup_bb_reg_pressure_info): Strengthen second params from
12386 rtx to rtx_insn *.
12387 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
12388 "next_tail".
12389 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
12390 and locals "insn", "tail" from const_rtx to const rtx_insn *.
12391 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
12392 rtx_insn *.
12393 (debug_rtl_slim): Strengthen params "first" and "last" from
12394 const_rtx to const rtx_insn *.
12395 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
12396 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
12397 (convert_to_simple_return): Likewise for param "returnjump".
12398 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
12399 "prologue_seq".
12400 (convert_to_simple_return): Likewise for param "returnjump".
12401 * valtrack.c (propagate_for_debug): Likewise for params
12402 "insn", "last".
12403 * valtrack.h (propagate_for_debug): Likewise for second param.
12404
12405 2014-08-28 David Malcolm <dmalcolm@redhat.com>
12406
12407 * output.h (insn_current_reference_address): Strengthen param
12408 from rtx to rtx_insn *.
12409 * final.c (insn_current_reference_address): Likewise.
12410
12411 2014-08-28 David Malcolm <dmalcolm@redhat.com>
12412
12413 * basic-block.h (inside_basic_block_p): Strengthen param from
12414 const_rtx to const rtx_insn *.
12415 * cfgbuild.c (inside_basic_block_p): Likewise.
12416
12417 2014-08-28 David Malcolm <dmalcolm@redhat.com>
12418
12419 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
12420 rtx_insn *.
12421 (get_trace_info): Likewise for param "insn".
12422 (save_point_p): Likewise.
12423 (maybe_record_trace_start): Likewise for both params.
12424 (maybe_record_trace_start_abnormal): Likewise.
12425 (create_trace_edges): Likewise for sole param and for three of the
12426 locals named "lab".
12427 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
12428 to rtx_insn *, and update a call to pat->element to pat->insn.
12429
12430 2014-08-28 David Malcolm <dmalcolm@redhat.com>
12431
12432 * function.h (struct expr_status): Convert field "x_forced_labels"
12433 from rtx_expr_list * to rtx_insn_list *.
12434
12435 * cfgbuild.c (make_edges): Convert local "x" from an
12436 rtx_expr_list * to an rtx_insn_list *, replacing use of
12437 "element" method with "insn" method.
12438 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
12439 * except.c (sjlj_emit_dispatch_table): Replace use of
12440 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
12441 forced_labels.
12442 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
12443 rtx_expr_list * to an rtx_insn_list *, replacing use of
12444 "element" method with "insn" method.
12445 * reload1.c (set_initial_label_offsets): Likewise for local "x".
12446 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
12447 rtx_insn *, adding a checked cast. Replace use of
12448 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
12449 forced_labels.
12450 (expand_label): Likewise for local "label_r".
12451
12452 2014-08-28 David Malcolm <dmalcolm@redhat.com>
12453
12454 * function.h (struct rtl_data): Convert field
12455 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
12456 rtx_insn_list *.
12457 * rtl.h (remove_node_from_insn_list): New prototype.
12458
12459 * builtins.c (expand_builtin): When prepending to
12460 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
12461 gen_rtx_EXPR_LIST.
12462 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
12463 to rtx_insn_list *, and use its "insn" method rather than
12464 "element" method.
12465 * cfgrtl.c (delete_insn): Use new function
12466 remove_node_from_insn_list rather than
12467 remove_node_from_expr_list.
12468 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
12469 to rtx_insn_list *, and use its "insn" method rather than
12470 "element" method.
12471 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
12472 * reload1.c (set_initial_label_offsets): Likewise for local "x".
12473 * rtlanal.c (remove_node_from_insn_list): New function, adapted
12474 from remove_node_from_expr_list.
12475 * stmt.c (expand_label): When prepending to
12476 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
12477 gen_rtx_EXPR_LIST.
12478
12479 2014-08-28 David Malcolm <dmalcolm@redhat.com>
12480
12481 * function.h (struct rtl_data): Strengthen fields "x_return_label"
12482 and "x_naked_return_label" from rtx to rtx_code_label *.
12483
12484 2014-08-28 David Malcolm <dmalcolm@redhat.com>
12485
12486 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
12487 (SET_NEXT_INSN): Likewise.
12488 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
12489
12490 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
12491 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
12492 to split out the SEQUENCE from local "bundle", strengthening the
12493 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
12494 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
12495 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
12496 and the type of the elements of the "slot" array from rtx to
12497 rtx_insn *.
12498 (reorg_split_calls): Likewise for locals "insn" and "next", and
12499 the type of the elements of the "slot" array.
12500
12501 * config/frv/frv.c (frv_nops): Likewise for the elements of this
12502 array.
12503 (frv_function_prologue): Likewise for locals "insn", "next",
12504 "last_call".
12505 (frv_register_nop): Introduce a local "nop_insn" to be the
12506 rtx_insn * containing rtx "nop".
12507
12508 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
12509 used as an insn and sometimes as a pattern, so rename it to
12510 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
12511 using it where dealing with the core insn.
12512
12513 * config/picochip/picochip.c (reorder_var_tracking_notes):
12514 Strengthen locals "insn", "next", "last_insn", "queue",
12515 "next_queue", "prev" from rtx to rtx_insn *.
12516
12517 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
12518 the second param is an rtx_insn ** rather than an rtx **.
12519 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
12520 from rtx to rtx_sequence *, and introduce local named "sequence",
12521 using methods of rtx_sequence to clarify the code.
12522 (remove_insn): Introduce local rtx_sequence * named "sequence" and
12523 use its methods.
12524 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
12525 Rename param "after" to "uncast_after", reintroducing "after" as a
12526 local rtx_insn * with a checked cast.
12527 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
12528 reintroducing "after" as a local rtx_insn * with a checked cast.
12529 Strengthen local "last" from rtx to rtx_insn * and remove the
12530 now-redundant checked casts.
12531 (copy_delay_slot_insn): Strengthen return type and param from rtx
12532 to rtx_insn *.
12533
12534 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
12535 "last" from rtx to rtx_insn *.
12536
12537 2014-08-28 David Malcolm <dmalcolm@redhat.com>
12538
12539 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
12540 param from rtx to rtx_insn *.
12541
12542 * emit-rtl.c (copy_delay_slot_insn): Likewise.
12543
12544 * reorg.c (skip_consecutive_labels): Strengthen return type, param
12545 and local "insn" from rtx to rtx_insn *.
12546 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
12547 (unfilled_slots_next): Likewise.
12548 (function_return_label): Strengthen from rtx to rtx_code_label *.
12549 (function_simple_return_label): Likewise.
12550 (first_active_target_insn): Strengthen return type and param from
12551 rtx to rtx_insn *.
12552 (find_end_label): Strengthen return type from rtx to
12553 rtx_code_label *; strengthen locals as appropriate.
12554 (emit_delay_sequence): Strengthen return type, param "insn" and
12555 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
12556 and local "li" from rtx to rtx_insn_list *, using methods of
12557 rtx_insn_list for clarity and typesafety.
12558 (add_to_delay_list): Strengthen return type and param "insn" from
12559 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
12560 rtx_insn_list * and use methods of rtx_insn_list.
12561 (delete_from_delay_slot): Strengthen return type, param "insn",
12562 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
12563 Strengthen local "seq" from rtx to rtx_sequence *, and local
12564 "delay_list" from rtx to rtx_insn_list *, using methods of
12565 rtx_sequence for clarity and type-safety.
12566 (delete_scheduled_jump): Add checked cast when invoking
12567 delete_from_delay_slot. Strengthen local "trial" from rtx to
12568 rtx_insn *.
12569 (optimize_skip): Strengthen return type and local "delay_list"
12570 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
12571 rtx_insn *.
12572 (steal_delay_list_from_target): Strengthen return type, param
12573 "delay_list" and local "new_delay_list" from rtx to
12574 rtx_insn_list *. Strengthen param "seq" from rtx to
12575 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
12576 rtx_insn **.
12577 Split out local "temp" into multiple more-tightly scoped locals:
12578 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
12579 of rtx_insn_list and rtx_sequence for clarity and typesafety.
12580 Strengthen locals named "trial" from rtx to rtx_insn *.
12581 (steal_delay_list_from_fallthrough): Strengthen return type and
12582 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
12583 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
12584 Strengthen local "trial" from rtx to rtx_insn *.
12585 (try_merge_delay_insns): Strength local "merged_insns" from rtx
12586 to rtx_insn_list * and use its methods. Strengthen local "pat"
12587 from rtx to rtx_sequence * and use its methods. Strengthen locals
12588 "dtrial" and "new_rtx" from rtx to rtx_insn *.
12589 (get_label_before): Strengthen return type and local "label" from
12590 rtx to rtx_insn *.
12591 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
12592 "next_trial", "next", prev". Strengthen local "delay_list" from
12593 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
12594 rtx_insn **.
12595 (follow_jumps): Strengthen return type, param "label" and locals
12596 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
12597 (fill_slots_from_thread): Strengthen return type, param
12598 "delay_list" from rtx to rtx_insn_list *. Strengthen params
12599 "insn", "thread", "opposite_thread" and locals "new_thread",
12600 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
12601 "sequence" from a checked cast to rtx_sequence so that we can call
12602 steal_delay_list_from_target and steal_delay_list_from_fallthrough
12603 with an rtx_sequence *.
12604 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
12605 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
12606 Strengthen local "delay_list" from rtx to rtx_insn_list *.
12607 (relax_delay_slots): Strengthen param "first" and locals "insn",
12608 "next", "trial", "delay_insn", "target_label" from rtx to
12609 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
12610 Introduce a local "trial_seq" for PATTERN (trial) of type
12611 rtx_sequence *, in both cases using methods of rtx_sequence.
12612 (dbr_schedule): Strengthen param "first" and locals "insn",
12613 "next", "epilogue_insn" from rtx to rtx_insn *.
12614
12615 2014-08-28 Richard Biener <rguenther@suse.de>
12616
12617 PR tree-optimization/62283
12618 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
12619 Do not peel loops for alignment where the vector loop likely
12620 doesn't run at least VF times.
12621
12622 2014-08-28 Bin Cheng <bin.cheng@arm.com>
12623
12624 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
12625 important_candidates. Consider all important candidates if
12626 IVS doesn't give any result. Remove check on ivs->upto.
12627 (try_add_cand_for): Call iv_ca_add_use only once.
12628
12629 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
12630 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12631 Anna Tikhonova <anna.tikhonova@intel.com>
12632 Ilya Tocar <ilya.tocar@intel.com>
12633 Andrey Turetskiy <andrey.turetskiy@intel.com>
12634 Ilya Verbin <ilya.verbin@intel.com>
12635 Kirill Yukhin <kirill.yukhin@intel.com>
12636 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12637
12638 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
12639 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
12640 masking.
12641 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
12642 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
12643 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
12644 (define_insn "*mul<mode>3"): Add EVEX version.
12645
12646 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
12647 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12648 Anna Tikhonova <anna.tikhonova@intel.com>
12649 Ilya Tocar <ilya.tocar@intel.com>
12650 Andrey Turetskiy <andrey.turetskiy@intel.com>
12651 Ilya Verbin <ilya.verbin@intel.com>
12652 Kirill Yukhin <kirill.yukhin@intel.com>
12653 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12654
12655 * config/i386/sse.md
12656 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
12657 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
12658 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
12659 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
12660 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
12661 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
12662 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
12663 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
12664 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
12665 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
12666 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
12667 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
12668 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
12669 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
12670 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
12671 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
12672
12673 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
12674 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12675 Anna Tikhonova <anna.tikhonova@intel.com>
12676 Ilya Tocar <ilya.tocar@intel.com>
12677 Andrey Turetskiy <andrey.turetskiy@intel.com>
12678 Ilya Verbin <ilya.verbin@intel.com>
12679 Kirill Yukhin <kirill.yukhin@intel.com>
12680 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12681
12682 * config/i386/sse.md
12683 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
12684 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
12685 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
12686
12687 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
12688 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12689 Anna Tikhonova <anna.tikhonova@intel.com>
12690 Ilya Tocar <ilya.tocar@intel.com>
12691 Andrey Turetskiy <andrey.turetskiy@intel.com>
12692 Ilya Verbin <ilya.verbin@intel.com>
12693 Kirill Yukhin <kirill.yukhin@intel.com>
12694 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12695
12696 * config/i386/sse.md
12697 (define_mode_iterator VI128_256): New.
12698 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
12699
12700 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
12701 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12702 Anna Tikhonova <anna.tikhonova@intel.com>
12703 Ilya Tocar <ilya.tocar@intel.com>
12704 Andrey Turetskiy <andrey.turetskiy@intel.com>
12705 Ilya Verbin <ilya.verbin@intel.com>
12706 Kirill Yukhin <kirill.yukhin@intel.com>
12707 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12708
12709 * config/i386/sse.md
12710 (define_mode_iterator VI8_256_512): New.
12711 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
12712 Ditto.
12713 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
12714 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
12715 Ditto.
12716 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
12717
12718 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12719
12720 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
12721 pointer to the cumulative reloc value and return the value for
12722 this reloc instead.
12723 (compute_reloc_for_rtx): Take a const_rtx. Call
12724 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
12725 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
12726 for_each_rtx for the CONST case.
12727
12728 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12729
12730 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
12731 (mark_constants_in_pattern): ...this new function to iterate over
12732 all the subrtxes.
12733 (mark_constants): Update accordingly.
12734
12735 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12736
12737 * varasm.c: Include rtl-iter.h.
12738 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
12739 Remove the pointer to the cumulative hashval_t and just return
12740 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
12741 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
12742 Accumulate the hashval_ts here instead of const_rtx_hash_1.
12743
12744 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12745
12746 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
12747 Give real type of data parameter. Remove return value.
12748 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
12749 to iterate over subrtxes.
12750
12751 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12752
12753 * var-tracking.c (use_narrower_mode_test): Turn from being a
12754 for_each_rtx callback to being a function that examines each
12755 subrtx itself.
12756 (adjust_mems): Update accordingly.
12757
12758 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12759
12760 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
12761 callback to being a function that examines each subrtx itself.
12762 Remove handling of null rtxes.
12763 (add_uses): Update accordingly.
12764
12765 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12766
12767 * var-tracking.c: Include rtl-iter.h.
12768 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
12769 to being a function that examines each subrtx itself.
12770 (use_type): Update accordingly.
12771
12772 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12773
12774 * store-motion.c: Include rtl-iter.h.
12775 (extract_mentioned_regs_1): Delete.
12776 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
12777 for_each_rtx to iterate over subrtxes.
12778
12779 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12780
12781 * sel-sched.c: Include rtl-iter.h
12782 (count_occurrences_1): Delete.
12783 (count_occurrences_equiv): Turn rtxes into const_rtxes.
12784 Use FOR_EACH_SUBRTX rather than for_each_rtx.
12785
12786 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12787
12788 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
12789 * rtlanal.c (tls_referenced_p_1): Delete.
12790 (tls_referenced_p): Take a const_rtx rather than an rtx.
12791 Use FOR_EACH_SUBRTX rather than for_each_rtx.
12792
12793 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12794
12795 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
12796 (for_each_inc_dec): Take an rtx rather than an rtx *.
12797 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
12798 (cselib_record_sets): Likewise.
12799 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
12800 (check_for_inc_dec): Likewise.
12801 * rtlanal.c (for_each_inc_dec_ops): Delete.
12802 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
12803 rather than a pointer to the memory address. Replace
12804 for_each_inc_dec_ops argument with separate function and data
12805 arguments. Abort on non-autoinc addresses.
12806 (for_each_inc_dec_find_mem): Delete.
12807 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
12808 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
12809
12810 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12811
12812 * rtl.h (find_all_hard_regs): Declare.
12813 * rtlanal.c (find_all_hard_regs): New function.
12814 (record_hard_reg_uses_1): Delete.
12815 (record_hard_reg_uses): Use find_all_hard_regs.
12816
12817 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12818
12819 * rtl.h (replace_label_data): Delete.
12820 (replace_label): Take the old label, new label and update-nuses flag
12821 as direct arguments. Return void.
12822 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
12823 * rtlanal.c (replace_label): Update interface as above. Handle
12824 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
12825 iterator. Use FOR_EACH_SUBRTX_PTR.
12826
12827 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12828
12829 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
12830 with const_rtx parameters.
12831 * varasm.c (get_pool_constant): Likewise.
12832 * rtlanal.c (rtx_referenced_p_1): Delete.
12833 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
12834 Assert that the rtx we're looking for is nonnull. Allow searches
12835 for constant pool SYMBOL_REFs.
12836
12837 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12838
12839 * reload1.c: Include rtl-iter.h.
12840 (note_reg_elim_costly): Turn from being a for_each_rtx callback
12841 to being a function that examines each subrtx itself.
12842 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
12843
12844 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12845
12846 * regcprop.c (cprop_find_used_regs_1): Delete.
12847 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
12848
12849 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12850
12851 * regcprop.c: Include rtl-iter.h.
12852 (kill_value): Take a const_rtx.
12853 (kill_autoinc_value): Turn from being a for_each_rtx callback
12854 to being a function that examines each subrtx itself.
12855 (copyprop_hardreg_forward_1): Update accordingly.
12856
12857 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12858
12859 * reg-stack.c: Include rtl-iter.h.
12860 (subst_stack_regs_in_debug_insn): Delete.
12861 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
12862 instead of for_each_rtx.
12863
12864 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12865
12866 * lower-subreg.c (find_decomposable_subregs): Turn from being
12867 a for_each_rtx callback to being a function that examines each
12868 subrtx itself. Remove handling of null rtxes.
12869 (decompose_multiword_subregs): Update accordingly.
12870
12871 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12872
12873 * lower-subreg.c (adjust_decomposed_uses): Delete.
12874 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
12875 Remove handling of null rtxes.
12876
12877 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12878
12879 * lower-subreg.c: Include rtl-iter.h.
12880 (resolve_subreg_use): Turn from being a for_each_rtx callback
12881 to being a function that examines each subrtx itself. Remove
12882 handling of null rtxes.
12883 (resolve_reg_notes, resolve_simple_move): Update accordingly.
12884 (decompose_multiword_subregs): Likewise.
12885
12886 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12887
12888 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
12889 to being a function that examines each subrtx itself.
12890 (simplify_using_condition, simplify_using_initial_values): Update
12891 accordingly.
12892
12893 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12894
12895 * loop-iv.c: Include rtl-iter.h.
12896 (find_single_def_src): New function.
12897 (replace_single_def_regs): Turn from being a for_each_rtx callback
12898 to being a function that examines each subrtx itself.
12899 (replace_in_expr, simplify_using_initial_values): Update accordingly.
12900
12901 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12902
12903 * jump.c (eh_returnjump_p_1): Delete.
12904 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
12905 Remove handling of null rtxes.
12906
12907 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12908
12909 * jump.c: Include rtl-iter.h.
12910 (returnjump_p_1): Delete.
12911 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
12912 Remove handling of null rtxes.
12913
12914 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12915
12916 * ira.c: Include rtl-iter.h.
12917 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
12918 to being a function that examines each subrtx itself. Remove
12919 handling of null rtxes.
12920 (update_equiv_regs): Update call accordingly.
12921
12922 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12923
12924 * fwprop.c: Include rtl-iter.h.
12925 (varying_mem_p): Turn from being a for_each_rtx callback to being
12926 a function that examines each subrtx itself.
12927 (propagate_rtx): Update accordingly.
12928
12929 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12930
12931 * function.c: Include rtl-iter.h
12932 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
12933 callback to being a function that examines each subrtx itself.
12934 Return the changed flag.
12935 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
12936 (instantiate_virtual_regs): Update calls accordingly.
12937
12938 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12939
12940 * final.c: Include rtl-iter.h.
12941 (mark_symbol_ref_as_used): Delete.
12942 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
12943 for_each_rtx.
12944
12945 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12946
12947 * emit-rtl.c: Include rtl-iter.h.
12948 (find_auto_inc): Turn from being a for_each_rtx callback to being
12949 a function that examines each subrtx itself. Assume the first operand
12950 to an RTX_AUTOINC is the automodified register.
12951 (try_split): Update call accordingly.
12952
12953 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12954
12955 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
12956 Return a bool, inverting the result so that 0/false means "not ok".
12957 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
12958 subrtxes of a CONST.
12959 (mem_loc_descriptor, add_const_value_attribute)
12960 (resolve_addr_in_expr): Update calls accordingly.
12961
12962 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12963
12964 * dwarf2out.c: Include rtl-iter.h.
12965 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
12966 Remove unused data parameter. Return a bool, inverting the result
12967 so that 0/false means "not ok".
12968 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
12969 instead of for_each_rtx.
12970
12971 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12972
12973 * dse.c: Include rtl-iter.h.
12974 (check_mem_read_rtx): Change void * parameter to real type.
12975 Remove return value.
12976 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
12977 for_each_rtx. Don't handle null rtxes.
12978
12979 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12980
12981 * df-problems.c: Include rtl-iter.h.
12982 (find_memory): Turn from being a for_each_rtx callback to being
12983 a function that examines each subrtx itself. Continue to look for
12984 volatile references even after a nonvolatile one has been found.
12985 (can_move_insns_across): Update calls accordingly.
12986
12987 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12988
12989 * ddg.c (walk_mems_2, walk_mems_1): Delete.
12990 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
12991 to iterate over subrtxes. Return a bool rather than an int.
12992
12993 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
12994
12995 * ddg.c: Include rtl-iter.h.
12996 (mark_mem_use_1): Rename to...
12997 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
12998 instead of for_each_rtx.
12999 (mem_read_insn_p): Update accordingly.
13000
13001 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
13002
13003 * cse.c (change_cc_mode_args): Delete.
13004 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
13005 a function that examines each subrtx itself. Take the fields of
13006 change_cc_mode_args as argument and return void.
13007 (cse_change_cc_mode_insn): Update calls accordingly.
13008
13009 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
13010
13011 * cse.c (is_dead_reg): Change argument to const_rtx.
13012 (dead_debug_insn_data): Delete.
13013 (is_dead_debug_insn): Expand commentary. Turn from being a
13014 for_each_rtx callback to being a function that examines
13015 each subrtx itself. Take the fields of dead_debug_insn_data
13016 as argument.
13017 (delete_trivially_dead_insns): Update call accordingly.
13018
13019 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
13020
13021 * cse.c (check_for_label_ref): Move earlier in file. Turn from
13022 being a for_each_rtx callback to being a function that examines
13023 each subrtx itself.
13024 (cse_extended_basic_block): Update call accordingly.
13025
13026 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
13027
13028 * cse.c (check_dependence_data): Delete.
13029 (check_dependence): Change from being a for_each_rtx callback to being
13030 a function that examines all subrtxes itself. Don't handle null rtxes.
13031 (invalidate): Update call accordingly.
13032
13033 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
13034
13035 * cse.c: Include rtl-iter.h.
13036 (approx_reg_cost_1): Delete.
13037 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
13038 Don't handle null rtxes.
13039
13040 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
13041
13042 * cfgcleanup.c: Include rtl-iter.h.
13043 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
13044 to being a function that examines each subrtx itself.
13045 (thread_jump): Update accordingly.
13046
13047 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
13048
13049 * combine-stack-adj.c: Include rtl-iter.h.
13050 (record_stack_refs_data): Delete.
13051 (record_stack_refs): Turn from being a for_each_rtx callback
13052 to being a function that examines each subrtx itself.
13053 Take a pointer to the reflist. Invert sense of return value
13054 so that true means success and false means failure. Don't
13055 handle null rtxes.
13056 (combine_stack_adjustments_for_block): Update accordingly.
13057
13058 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
13059
13060 * combine.c (record_truncated_value): Turn from being a for_each_rtx
13061 callback to a function that takes an rtx and returns a bool
13062 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
13063 for_each_rtx.
13064
13065 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
13066
13067 * combine.c: Include rtl-iter.h.
13068 (unmentioned_reg_p_1): Delete.
13069 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
13070 Don't handle null rtxes.
13071
13072 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
13073
13074 * calls.c: Include rtl-iter.h.
13075 (internal_arg_pointer_based_exp_1): Delete.
13076 (internal_arg_pointer_based_exp): Take a const_rtx.
13077 Use FOR_EACH_SUBRTX to iterate over subrtxes.
13078
13079 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
13080
13081 * caller-save.c: Include rtl-iter.h.
13082 (add_used_regs_1): Delete.
13083 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
13084 to iterate over subrtxes. Assert that any remaining pseudos
13085 have been spilled.
13086
13087 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
13088
13089 * bt-load.c: Include rtl-iter.h.
13090 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
13091 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
13092 to iterate over subrtxes.
13093 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
13094 find_btr_use rather than btr_referenced_p.
13095
13096 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
13097
13098 * alias.c: Include rtl-iter.h.
13099 (refs_newer_value_cb): Delete.
13100 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
13101
13102 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
13103
13104 * rtl-iter.h: New file.
13105 * rtlanal.c: Include it.
13106 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
13107 (generic_subrtx_iterator <T>::add_single_to_queue)
13108 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
13109 (generic_subrtx_iterator <T>::free_array): New functions.
13110 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
13111 (generic_subrtx_iterator <const_rtx_accessor>)
13112 (generic_subrtx_iterator <rtx_var_accessor>
13113 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
13114 (setup_reg_subrtx_bounds): New function.
13115 (init_rtlanal): Call it.
13116
13117 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
13118
13119 PR target/62261
13120 * config/sh/sh.md (ashlsi3): Handle negative shift count for
13121 TARGET_SHMEDIA.
13122 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
13123
13124 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
13125
13126 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
13127
13128 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13129
13130 * rtl.h (JUMP_LABEL_AS_INSN): New.
13131
13132 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13133
13134 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
13135 rtx_expr_list **.
13136 (alloc_EXPR_LIST): Strengthen return type from rtx to
13137 rtx_expr_list *.
13138 (remove_free_EXPR_LIST_node): Likewise for param.
13139 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
13140 from rtx to rtx_expr_list *.
13141 * sched-int.h (struct deps_desc): Strengthen fields
13142 "pending_read_mems" and "pending_write_mems" from rtx to
13143 rtx_expr_list *.
13144
13145 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
13146 rtx to rtx_expr_list *.
13147 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
13148 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
13149 rtx_expr_list **.
13150 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
13151 from rtx to rtx_expr_list *.
13152 * loop-iv.c (simplify_using_initial_values): Strengthen local
13153 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
13154 "pnote_next" from rtx * to rtx_expr_list **.
13155 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
13156 param "exprp" from rtx * to rtx_expr_list **.
13157 (add_insn_mem_dependence): Strengthen local "mem_list" from
13158 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
13159 to rtx_expr_list *.
13160 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
13161 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
13162 param "old_mems_p" from rtx * to rtx_expr_list **.
13163 * var-tracking.c (struct adjust_mem_data): Strengthen field
13164 "side_effects" from rtx to rtx_expr_list *.
13165 (adjust_insn): Replace NULL_RTX with NULL when assigning to
13166 rtx_expr_list *.
13167 (prepare_call_arguments): Likewise.
13168
13169 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13170
13171 * function.h (struct rtl_data): Strengthen field
13172 "x_stack_slot_list" from rtx to rtx_expr_list *.
13173
13174 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
13175 when assigning to stack_slot_list.
13176
13177 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13178
13179 * function.h (struct rtl_data): Strengthen field
13180 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
13181 * rtl.h (remove_node_from_expr_list): Strengthen second param from
13182 rtx * to rtx_expr_list **.
13183
13184 * cfgbuild.c (make_edges): In loop over
13185 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
13186 rtx_expr_list *, and use methods of the latter class to clarify
13187 the code.
13188 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
13189 rtx_expr_list *, and use methods of the latter class to clarify
13190 the code.
13191 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
13192 * reload1.c (set_initial_label_offsets): Likewise for local "x".
13193 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
13194 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
13195 to rtx_expr_list *. Use methods of the latter class to clarify
13196 the code.
13197
13198 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13199
13200 * function.h (struct expr_status): Strengthen field
13201 "x_forced_labels" from rtx to rtx_expr_list *.
13202
13203 * cfgbuild.c (make_edges): Split local "x" into two locals,
13204 strengthening one from rtx to rtx_expr_list *, and using methods
13205 of said class.
13206 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
13207 loop over forced_labels, introduce strengthen it from rtx to
13208 rtx_expr_list *, using methods to clarify the code.
13209 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
13210 to rtx_expr_list *, using methods of said class to clarify the
13211 code.
13212 * reload1.c (set_initial_label_offsets): Split local "x" into two
13213 per-loop variables, strengthening the first from rtx to
13214 rtx_expr_list * and using methods.
13215
13216 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13217
13218 * coretypes.h (class rtx_expr_list): Add forward declaration.
13219 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
13220 * gengenrtl.c (special_rtx): Add EXPR_LIST.
13221 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
13222 invariant: GET_CODE (X) == EXPR_LIST.
13223 (is_a_helper <rtx_expr_list *>::test): New.
13224 (rtx_expr_list::next): New.
13225 (rtx_expr_list::element): New.
13226 (gen_rtx_EXPR_LIST): New.
13227
13228 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13229
13230 * varasm.c (mark_constants): Convert a GET_CODE check into a
13231 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
13232 Use methods of rtx_sequence to clarify the code.
13233
13234 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13235
13236 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
13237 local "seq" via a checked cast, and use methods of rtx_sequence
13238 to simplify the code.
13239
13240 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13241
13242 * resource.c (mark_referenced_resources): Strengthen local
13243 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
13244 using methods of rtx_sequence to clarify the code.
13245 (find_dead_or_set_registers): Within the switch statement, convert
13246 a GET_CODE check to a dyn_cast, introducing local "seq". Within
13247 the JUMP_P handling, introduce another local "seq", adding a
13248 checked cast to rtx_sequence *. In both cases, use methods of
13249 rtx_sequence to clarify the code.
13250 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
13251 via a checked cast, and use methods of rtx_sequence to simplify
13252 the code.
13253
13254 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13255
13256 * reorg.c (redundant_insn): In two places in the function, replace
13257 a check of GET_CODE with a dyn_cast, introducing local "seq", and
13258 usings methods of rtx_sequence to clarify the code.
13259
13260 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13261
13262 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
13263 local "seq" with a checked cast, and use methods of rtx_sequence
13264 to clarify the code.
13265
13266 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13267
13268 * function.c (contains): Introduce local "seq" for PATTERN (insn),
13269 with a checked cast, in the region for where we know it's a
13270 SEQUENCE. Use methods of rtx_sequence.
13271
13272 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13273
13274 * final.c (get_attr_length_1): Replace GET_CODE check with a
13275 dyn_cast, introducing local "seq" and the use of methods of
13276 rtx_sequence.
13277 (shorten_branches): Likewise, introducing local "body_seq".
13278 Strengthen local "inner_insn" from rtx to rtx_insn *.
13279 (reemit_insn_block_notes): Replace GET_CODE check with a
13280 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
13281 Use methods of rtx_sequence.
13282 (final_scan_insn): Likewise, introducing local "seq" for when
13283 "body" is known to be a SEQUENCE, using its methods.
13284
13285 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13286
13287 * except.c (can_throw_external): Strengthen local "seq" from rtx
13288 to rtx_sequence *. Use methods of rtx_sequence.
13289 (insn_nothrow_p): Likewise.
13290
13291 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13292
13293 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
13294 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
13295 Use methods of rtx_sequence.
13296 (scan_trace): Likewise for local "pat".
13297
13298 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13299
13300 * coretypes.h (class rtx_sequence): Add forward declaration.
13301 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
13302 invariant: GET_CODE (X) == SEQUENCE.
13303 (is_a_helper <rtx_sequence *>::test): New.
13304 (is_a_helper <const rtx_sequence *>::test): New.
13305 (rtx_sequence::len): New.
13306 (rtx_sequence::element): New.
13307 (rtx_sequence::insn): New.
13308
13309 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13310
13311 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
13312 rtx_insn_list **.
13313 (alloc_INSN_LIST): Strengthen return type from rtx to
13314 rtx_insn_list *.
13315 (copy_INSN_LIST): Likewise for return type and param.
13316 (concat_INSN_LIST): Likewise for both params and return type.
13317 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
13318 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
13319 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
13320 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
13321
13322 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
13323 "implicit_sets", "control_uses", "clobbers" from rtx to
13324 rtx_insn_list *.
13325 (struct deps_desc): Likewise for fields "pending_read_insns",
13326 "pending_write_insns", "pending_jump_insns",
13327 "last_pending_memory_flush", "last_function_call",
13328 "last_function_call_may_noreturn", "sched_before_next_call",
13329 "sched_before_next_jump".
13330 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
13331 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
13332
13333 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
13334 from rtx to rtx_insn_list *.
13335 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
13336 rtx_insn_list *.
13337
13338 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
13339 to rtx_insn_list **.
13340 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
13341 rtx_insn_list *.
13342 (queue_insn): Likewise for local "link".
13343 (struct haifa_saved_data): Strengthen field "insn_queue" from
13344 rtx * to rtx_insn_list **.
13345 (save_backtrack_point): Update allocation of save->insn_queue to
13346 reflect the strengthening of elements from rtx to rtx_insn_list *.
13347 (queue_to_ready): Strengthen local "link" from rtx to
13348 rtx_insn_list *; use methods "next" and "insn" when traversing the
13349 list.
13350 (early_queue_to_ready): Likewise for locals "link", "next_link",
13351 "prev_link".
13352 (schedule_block): Update allocation of insn_queue to reflect the
13353 strengthening of elements from rtx to rtx_insn_list *. Strengthen
13354 local "link" from rtx to rtx_insn_list *, and use methods when
13355 working it.
13356 (add_to_speculative_block): Strengthen locals "twins" and
13357 "next_node" from rtx to rtx_insn_list *, and use methods when
13358 working with them. Strengthen local "twin" from rtx to
13359 rtx_insn *, eliminating a checked cast.
13360 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
13361 from rtx to rtx_insn_list *, and use methods when working with
13362 them.
13363
13364 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
13365 from rtx to rtx_insn_list *, adding a checked cast.
13366 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
13367 rtx_insn_list **.
13368 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
13369 "newlink" from rtx to rtx_insn_list *. Strengthen local
13370 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
13371 from rtx to rtx_insn *.
13372 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
13373 from rtx to rtx_insn_list *. Use methods of the latter class.
13374 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
13375 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
13376 (remove_free_INSN_LIST_node): Strengthen return type and local
13377 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
13378 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
13379 rtx_insn_list *, using "insn" method.
13380
13381 * sched-deps.c (add_dependence_list): Strengthen param "list"
13382 from rtx to rtx_insn_list *, and use methods when working with it.
13383 (add_dependence_list_and_free): Strengthen param "listp" from
13384 rtx * to rtx_insn_list **.
13385 (remove_from_dependence_list): Strenghten param "listp" from rtx *
13386 to rtx_insn_list **, and use methods when working with *listp.
13387 (remove_from_both_dependence_lists): Strengthen param "listp" from
13388 rtx * to rtx_insn_list **
13389 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
13390 to rtx_insn_list **. Eliminate local "link", in favor of two new
13391 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
13392 respectively.
13393 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
13394 by introducing local "cond_deps".
13395 (remove_from_deps): Strengthen param "insn" from rtx to
13396 rtx_insn *.
13397
13398 * sched-rgn.c (concat_insn_mem_list): Strengthen param
13399 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
13400 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
13401 Use methods of rtx_insn_list.
13402
13403 * store-motion.c (struct st_expr): Strengthen fields
13404 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
13405 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
13406 rtx_insn_list *.
13407 (find_moveable_store): Split out "tmp" into multiple more-tightly
13408 scoped locals. Use methods of rtx_insn_list *.
13409 (compute_store_table): Strengthen local "tmp" from rtx to
13410 rtx_insn *. Use methods of rtx_insn_list *.
13411
13412 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13413
13414 * coretypes.h (class rtx_insn_list): Add forward declaration.
13415 * rtl.h (class rtx_insn_list): New subclass of rtx_def
13416 (is_a_helper <rtx_insn_list *>::test): New.
13417 (rtx_insn_list::next): New.
13418 (rtx_insn_list::insn): New.
13419 (gen_rtx_INSN_LIST): Add prototype.
13420 * emit-rtl.c (gen_rtx_INSN_LIST): New.
13421 * gengenrtl.c (special_rtx): Add INSN_LIST.
13422
13423 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13424
13425 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
13426 "prev" from rtx to rtx_insn *.
13427
13428 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13429
13430 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
13431 functions. Require merely an rtx for now, not an rtx_insn *.
13432 (BLOCK_FOR_INSN): Likewise.
13433 (INSN_LOCATION): Likewise.
13434 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
13435
13436 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13437
13438 * rtl.h (PATTERN): Convert this macro into a pair of inline
13439 functions, for now, requiring const_rtx and rtx.
13440
13441 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13442
13443 * target.def (unwind_emit): Strengthen param "insn" from rtx to
13444 rtx_insn *.
13445 (final_postscan_insn): Likewise.
13446 (adjust_cost): Likewise.
13447 (adjust_priority): Likewise.
13448 (variable_issue): Likewise.
13449 (macro_fusion_pair_p): Likewise.
13450 (dfa_post_cycle_insn): Likewise.
13451 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
13452 (first_cycle_multipass_issue): Likewise.
13453 (dfa_new_cycle): Likewise.
13454 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
13455 (speculate_insn): Likewise for param "insn".
13456 (gen_spec_check): Likewise for params "insn" and "label".
13457 (get_insn_spec_ds): Likewise for param "insn".
13458 (get_insn_checked_ds): Likewise.
13459 (dispatch_do): Likewise.
13460 (dispatch): Likewise.
13461 (cannot_copy_insn_p): Likewise.
13462 (invalid_within_doloop): Likewise.
13463 (legitimate_combined_insn): Likewise.
13464 (needed): Likewise.
13465 (after): Likewise.
13466
13467 * doc/tm.texi: Automatically updated to reflect changes to
13468 target.def.
13469
13470 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
13471 working with insn.
13472 (schedule_block): Likewise.
13473 (sched_init): Likewise.
13474 (sched_speculate_insn): Strengthen param "insn" from rtx to
13475 rtx_insn *.
13476 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
13477 working with insn.
13478 * hooks.c (hook_bool_rtx_true): Rename to...
13479 hook_bool_rtx_insn_true): ...this, and strengthen first param from
13480 rtx to rtx_insn *.
13481 (hook_constcharptr_const_rtx_null): Rename to...
13482 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
13483 first param from const_rtx to const rtx_insn *.
13484 (hook_bool_rtx_int_false): Rename to...
13485 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
13486 param from rtx to rtx_insn *.
13487 (hook_void_rtx_int): Rename to...
13488 (hook_void_rtx_insn_int): ...this, and strengthen first param from
13489 rtx to rtx_insn *.
13490
13491 * hooks.h (hook_bool_rtx_true): Rename to...
13492 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
13493 rtx to rtx_insn *.
13494 (hook_bool_rtx_int_false): Rename to...
13495 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
13496 param from rtx to rtx_insn *.
13497 (hook_void_rtx_int): Rename to...
13498 (hook_void_rtx_insn_int): ...this, and strengthen first param from
13499 rtx to rtx_insn *.
13500 (hook_constcharptr_const_rtx_null): Rename to...
13501 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
13502 first param from const_rtx to const rtx_insn *.
13503
13504 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
13505 and local "prev" from rtx to rtx_insn *.
13506
13507 * sched-int.h (sched_speculate_insn): Strengthen first param from
13508 rtx to rtx_insn *.
13509
13510 * sel-sched.c (create_speculation_check): Likewise for local "label".
13511 * targhooks.c (default_invalid_within_doloop): Strengthen param
13512 "insn" from const_rtx to const rtx_insn *.
13513 * targhooks.h (default_invalid_within_doloop): Strengthen param
13514 from const_rtx to const rtx_insn *.
13515
13516 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
13517 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
13518
13519 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
13520 "insn".
13521 (arc_invalid_within_doloop): Likewise, with const.
13522
13523 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
13524 (arm_cannot_copy_insn_p): Likewise for param "insn".
13525 (arm_unwind_emit): Likewise.
13526
13527 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
13528 "dep_insn".
13529
13530 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
13531 (c6x_variable_issue): Likewise. Removed now-redundant checked
13532 cast.
13533 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
13534
13535 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
13536 Likewise for param "insn".
13537 (epiphany_mode_after): Likewise.
13538 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
13539 params "insn", "dep_insn".
13540 (epiphany_mode_needed): Likewise for param "insn".
13541 (epiphany_mode_after): Likewise.
13542
13543 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
13544 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13545 (ix86_avx_u128_mode_needed): Likewise.
13546 (ix86_i387_mode_needed): Likewise.
13547 (ix86_mode_needed): Likewise.
13548 (ix86_avx_u128_mode_after): Likewise.
13549 (ix86_mode_after): Likewise.
13550 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
13551 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
13552 (ix86_adjust_priority): Likewise for param "insn".
13553 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
13554 (do_dispatch): Likewise.
13555 (has_dispatch): Likewise.
13556 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
13557
13558 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
13559 reflect renaming of default hook implementation from
13560 hook_constcharptr_const_rtx_null to
13561 hook_constcharptr_const_rtx_insn_null.
13562 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
13563 rtx to rtx_insn *.
13564 (ia64_variable_issue): Likewise for param "insn".
13565 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
13566 (ia64_dfa_new_cycle): Likewise.
13567 (ia64_get_insn_spec_ds): Likewise.
13568 (ia64_get_insn_checked_ds): Likewise.
13569 (ia64_speculate_insn): Likewise.
13570 (ia64_gen_spec_check): Likewise for params "insn", "label".
13571 (ia64_asm_unwind_emit): Likewise for param "insn".
13572
13573 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
13574
13575 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
13576 "insn", "def_insn".
13577 (m68k_sched_variable_issue): Likewise for param "insn".
13578
13579 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
13580 "def_insn".
13581
13582 * config/microblaze/microblaze.c (microblaze_adjust_cost):
13583 Likewise for params "insn", "dep".
13584
13585 * config/mips/mips.c (mips_adjust_cost): Likewise.
13586 (mips_variable_issue): Likewise for param "insn".
13587 (mips_final_postscan_insn): Likewise.
13588
13589 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
13590 for params "insn", "dep".
13591
13592 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
13593 "dep_insn".
13594 (pa_adjust_priority): Likewise for param "insn".
13595
13596 * config/picochip/picochip.c (picochip_sched_adjust_cost):
13597 Likewise for params "insn", "dep_insn".
13598
13599 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
13600 param "insn".
13601 (rs6000_variable_issue): Likewise.
13602 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
13603 (rs6000_debug_adjust_cost): Likewise.
13604 (rs6000_adjust_priority): Likewise for param "insn".
13605 (rs6000_use_sched_lookahead_guard): Likewise.
13606 (get_next_active_insn): Likewise for return type and both params.
13607 (redefine_groups): Likewise for params "prev_head_insn", "tail"
13608 and locals "insn", "next_insn".
13609 (pad_groups): Likewise.
13610
13611 * config/s390/s390.c (s390_adjust_priority): Likewise for param
13612 "insn".
13613 (s390_cannot_copy_insn_p): Likewise.
13614 (s390_sched_variable_issue): Likewise for third param, eliminating
13615 checked cast.
13616 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
13617 default hook implementation from hook_constcharptr_const_rtx_null
13618 to hook_constcharptr_const_rtx_insn_null.
13619
13620 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
13621 from rtx to rtx_insn *.
13622 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
13623 (sh_variable_issue): Likewise for param "insn".
13624 (sh_dfa_new_cycle): Likewise.
13625 (sh_mode_needed): Likewise.
13626 (sh_mode_after): Likewise.
13627
13628 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
13629 params "insn", "dep_insn".
13630 (hypersparc_adjust_cost): Likewise.
13631 (sparc_adjust_cost): Likewise.
13632
13633 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
13634 param, eliminated checked cast.
13635 (spu_sched_adjust_cost): Likewise for first and third params.
13636
13637 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
13638 params "insn" and "dep_insn" from rtx to rtx_insn *.
13639
13640 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
13641
13642 2014-08-27 David Malcolm <dmalcolm@redhat.com>
13643
13644 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
13645 (set_is_load_p): ...this, updating to work on a SET pattern rather
13646 than an insn.
13647 (is_store_insn): Rename to...
13648 (set_is_store_p): ...this, updating to work on a SET pattern
13649 rather than an insn.
13650 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
13651 top of function to where it is needed. Rewrite the bogus
13652 condition that checks for "insn" and "dep" being PARALLEL to
13653 instead use single_set, introducing locals "insn_set" and
13654 "dep_set". Given that we only ever returned "cost" for a non-pair
13655 of SETs, bail out early if we don't have a pair of SET.
13656 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
13657 use the new locals "insn_set" and "dep_set", and update calls to
13658 is_load_insn and is_store_insn to be calls to set_is_load_p and
13659 set_is_store_p.
13660
13661 2014-08-27 Guozhi Wei <carrot@google.com>
13662
13663 PR target/62262
13664 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
13665 amount before using it.
13666
13667 2014-08-27 Richard Biener <rguenther@suse.de>
13668
13669 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
13670 get_maxval_strlen inside a more useful API.
13671 (gimple_fold_builtin_with_strlen): Remove and fold into ...
13672 (gimple_fold_builtin): ... caller.
13673 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
13674 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
13675 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
13676 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
13677 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
13678 gimple_fold_builtin_sprintf): Adjust to compute maxval
13679 themselves.
13680
13681 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
13682
13683 PR other/62248
13684 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
13685
13686 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
13687 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13688 Anna Tikhonova <anna.tikhonova@intel.com>
13689 Ilya Tocar <ilya.tocar@intel.com>
13690 Andrey Turetskiy <andrey.turetskiy@intel.com>
13691 Ilya Verbin <ilya.verbin@intel.com>
13692 Kirill Yukhin <kirill.yukhin@intel.com>
13693 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13694
13695 * config/i386/sse.md
13696 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
13697 Use `concat_tg_mode' attribute to determine asm register size.
13698
13699 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
13700 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13701 Anna Tikhonova <anna.tikhonova@intel.com>
13702 Ilya Tocar <ilya.tocar@intel.com>
13703 Andrey Turetskiy <andrey.turetskiy@intel.com>
13704 Ilya Verbin <ilya.verbin@intel.com>
13705 Kirill Yukhin <kirill.yukhin@intel.com>
13706 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13707
13708 * config/i386/sse.md
13709 (define_mode_iterator VI48_AVX512VL): New.
13710 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
13711 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
13712 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
13713 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
13714 with VI1): Change mode iterator.
13715 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
13716 with VI_ULOADSTORE_BW_AVX512VL): New.
13717 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
13718 with VI_ULOADSTORE_F_AVX512VL): Ditto.
13719 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
13720 with VI1): Change mode iterator.
13721 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
13722 with VI_ULOADSTORE_BW_AVX512VL): New.
13723 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
13724 with VI_ULOADSTORE_F_AVX512VL): Ditto.
13725 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
13726 with VI1): Change mode iterator.
13727 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
13728 with VI_ULOADSTORE_BW_AVX512VL): New.
13729 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
13730 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
13731 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
13732 (define_insn "<avx512>_storedqu<mode>_mask" with
13733 VI48_AVX512VL): New.
13734 (define_insn "<avx512>_storedqu<mode>_mask" with
13735 VI12_AVX512VL): Ditto.
13736
13737 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
13738 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13739 Anna Tikhonova <anna.tikhonova@intel.com>
13740 Ilya Tocar <ilya.tocar@intel.com>
13741 Andrey Turetskiy <andrey.turetskiy@intel.com>
13742 Ilya Verbin <ilya.verbin@intel.com>
13743 Kirill Yukhin <kirill.yukhin@intel.com>
13744 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13745
13746 * config/i386/sse.md
13747 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
13748 (define_mode_iterator VI48_AVX512BW): New.
13749 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
13750 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
13751 with VI48_AVX2_48_AVX512F): New.
13752 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
13753 with VI2_AVX512VL): Ditto.
13754
13755 2014-08-27 Richard Biener <rguenther@suse.de>
13756
13757 PR middle-end/62239
13758 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
13759 (fold_builtin_3): Do not fold strcat_chk here.
13760 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
13761 from builtins.c.
13762 (gimple_fold_builtin): Fold strcat_chk here.
13763
13764 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
13765
13766 * dwarf2out.h (dwarf2out_decl): Remove prototype.
13767 * dwarf2out.c (dwarf2out_decl): Make static.
13768
13769 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
13770
13771 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
13772
13773 2014-08-26 David Malcolm <dmalcolm@redhat.com>
13774
13775 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
13776 from rtx to rtx_insn *.
13777 (cselib_lookup_from_insn): Likewise for final param.
13778 (cselib_subst_to_values_from_insn): Likewise.
13779 (cselib_add_permanent_equiv): Likewise.
13780
13781 * cselib.c (cselib_current_insn): Likewise for this variable.
13782 (cselib_subst_to_values_from_insn): Likewise for param "insn".
13783 (cselib_lookup_from_insn): Likewise.
13784 (cselib_add_permanent_equiv): Likewise for param "insn" and local
13785 "save_cselib_current_insn".
13786 (cselib_process_insn): Replace use of NULL_RTX with NULL.
13787
13788 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
13789 from rtx to rtx_insn *.
13790
13791 2014-08-26 David Malcolm <dmalcolm@redhat.com>
13792
13793 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
13794 rtx_insn *.
13795
13796 2014-08-26 David Malcolm <dmalcolm@redhat.com>
13797
13798 * df.h (df_dump_insn_problem_function): Strengthen first param of
13799 this callback from const_rtx to const rtx_insn *.
13800 (struct df_insn_info): Strengthen field "insn" from rtx to
13801 rtx_insn *.
13802 (DF_REF_INSN): Eliminate this function, reinstating the older
13803 macro definition.
13804 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
13805 (df_reg_defined): Likewise.
13806 (df_find_use): Likewise.
13807 (df_reg_used): Likewise.
13808 (df_dump_insn_top): Strengthen param 1 from const_rtx to
13809 const rtx_insn *.
13810 (df_dump_insn_bottom): Likewise.
13811 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
13812 (df_insn_debug_regno): Likewise.
13813 (debug_df_insn): Likewise.
13814 (df_rd_simulate_one_insn): Likewise for param 2.
13815 (df_word_lr_simulate_defs): Likewise for param 1.
13816 (df_word_lr_simulate_uses): Likewise.
13817 (df_md_simulate_one_insn): Likewise for param 2.
13818 (df_simulate_find_noclobber_defs): Likewise for param 1.
13819 (df_simulate_find_defs): Likewise.
13820 (df_simulate_defs): Likewise.
13821 (df_simulate_uses): Likewise.
13822 (df_simulate_one_insn_backwards): Likewise for param 2.
13823 (df_simulate_one_insn_forwards): Likewise.
13824 (df_uses_create): Likewise for param 2.
13825 (df_insn_create_insn_record): Likewise for param 1.
13826 (df_insn_delete): Likewise.
13827 (df_insn_rescan): Likewise.
13828 (df_insn_rescan_debug_internal): Likewise.
13829 (df_insn_change_bb): Likewise.
13830 (df_notes_rescan): Likewise.
13831 * rtl.h (remove_death): Likewise for param 2.
13832 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
13833 const rtx_insn *.
13834 * sched-int.h (reemit_notes): Strengthen param from rtx to
13835 rtx_insn *.
13836 * valtrack.h (propagate_for_debug): Likewise for param 1.
13837
13838 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
13839 local "tmp_rtx" from const_rtx to const rtx_insn *.
13840 * combine.c (remove_death): Strengthen param "insn" from rtx to
13841 rtx_insn *.
13842 (move_deaths): Likewise for local "where_dead".
13843 * cse.c (delete_trivially_dead_insns): Introduce local
13844 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
13845 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
13846 rtx_insn *.
13847 (df_reg_defined): Likewise.
13848 (df_find_use): Likewise.
13849 (df_reg_used): Likewise.
13850 (df_dump_insn_problem_data): Strengthen param "insn" from
13851 const_rtx to const rtx_insn *.
13852 (df_dump_insn_top): Likewise.
13853 (df_dump_insn_bottom): Likewise.
13854 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
13855 (df_insn_debug_regno): Likewise.
13856 (debug_df_insn): Likewise.
13857 (DF_REF_INSN): Delete.
13858 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
13859 from rtx to rtx_insn *.
13860 (df_chain_insn_top_dump): Strengthen param "insn" from
13861 const_rtx to const rtx_insn *.
13862 (df_chain_insn_bottom_dump): Likewise.
13863 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
13864 rtx_insn *.
13865 (df_word_lr_simulate_uses): Likewise.
13866 (df_print_note): Likewise.
13867 (df_remove_dead_and_unused_notes): Likewise.
13868 (df_set_unused_notes_for_mw): Likewise.
13869 (df_set_dead_notes_for_mw): Likewise.
13870 (df_create_unused_note): Likewise.
13871 (df_simulate_find_defs): Likewise.
13872 (df_simulate_find_uses): Likewise.
13873 (df_simulate_find_noclobber_defs): Likewise.
13874 (df_simulate_defs): Likewise.
13875 (df_simulate_uses): Likewise.
13876 (df_simulate_one_insn_backwards): Likewise.
13877 (df_simulate_one_insn_forwards): Likewise.
13878 (df_md_simulate_one_insn): Likewise.
13879 * df-scan.c (df_uses_create): Likewise.
13880 (df_insn_create_insn_record): Likewise.
13881 (df_insn_delete): Likewise.
13882 (df_insn_rescan): Likewise.
13883 (df_insn_rescan_debug_internal): Likewise.
13884 (df_insn_change_bb): Likewise.
13885 (df_notes_rescan): Likewise.
13886 (df_refs_add_to_chains): Likewise.
13887 (df_insn_refs_verify): Likewise.
13888 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
13889 when invoking df_insn_delete.
13890 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
13891 (set_unique_reg_note): Add checked cast.
13892 * final.c (cleanup_subreg_operands): Likewise.
13893 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
13894 "insn" from rtx to rtx_insn *.
13895 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
13896 "last" from rtx to rtx_insn *.
13897 * ira-emit.c (change_regs_in_insn): New function.
13898 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
13899 Invoke change_regs_in_insn rather than change_regs.
13900 * ira.c (update_equiv_regs): Strengthen locals "insn",
13901 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
13902 for_each_rtx_in_insn rather than for_each_rtx.
13903 * recog.c (confirm_change_group): Add checked casts.
13904 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
13905 Add checked cast.
13906 (peep2_fill_buffer): Add checked cast.
13907 * rtlanal.c (remove_note): Likewise.
13908 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
13909 locals "next" "end" from rtx to rtx_insn *.
13910
13911 2014-08-26 David Malcolm <dmalcolm@redhat.com>
13912
13913 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
13914 to rtx_insn *.
13915 (struct reg_use_data): Likewise for field "insn".
13916 (insn_cost): Likewise for param.
13917 (real_insn_for_shadow): Likewise for return type and param.
13918 (increase_insn_priority): Likewise for param 1.
13919 (debug_dependencies): Likewise for both params.
13920
13921 * haifa-sched.c (insn_delay): Likewise for param "insn".
13922 (real_insn_for_shadow): Likewise for return type and param "insn".
13923 (update_insn_after_change): Likewise for param "insn".
13924 (recompute_todo_spec): Likewise for param "next" and locals "pro",
13925 "other".
13926 (insn_cost): Likewise for param "insn".
13927 (increase_insn_priority): Likewise.
13928 (calculate_reg_deaths): Likewise.
13929 (setup_insn_reg_pressure_info): Likewise.
13930 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
13931 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
13932 (model_recompute): Likewise.
13933 (must_restore_pattern_p): Likewise for param "next".
13934 (model_excess_cost): Likewise for param "insn".
13935 (queue_remove): Likewise.
13936 (adjust_priority): Likewise for param "prev".
13937 (update_register_pressure): Likewise for param "insn".
13938 (setup_insn_max_reg_pressure): Likewise for local "insn".
13939 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
13940 (model_add_to_schedule): Likewise.
13941 (model_reset_queue_indices): Likewise for local "insn".
13942 (unschedule_insns_until): Strengthen local "recompute_vec" from
13943 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
13944 "con" from rtx to rtx_insn *.
13945 (restore_last_backtrack_point): Likewise for both locals "x". Add
13946 checked casts.
13947 (estimate_insn_tick): Likewise for param "insn".
13948 (commit_schedule): Likewise for params "prev_head", "tail" and
13949 local "x".
13950 (verify_shadows): Likewise for locals "i1", "i2".
13951 (dump_insn_stream): Likewise for params "head", "tail" and locals
13952 "next_tail", "insn".
13953 (schedule_block): Likewise for locals "insn", "x". Add a checked
13954 cast.
13955 (fix_inter_tick): Likewise for params "head", "tail".
13956 (create_check_block_twin): Likewise for local "jump".
13957 (haifa_change_pattern): Likewise for param "insn".
13958 (haifa_speculate_insn): Likewise.
13959 (dump_new_block_header): Likewise for params "head", "tail".
13960 (fix_jump_move): Likewise for param "jump".
13961 (move_block_after_check): Likewise.
13962 (sched_init_insn_luid): Likewise for param "insn".
13963 (sched_init_luids): Likewise for local "insn".
13964 (insn_luid): Likewise for param "insn".
13965 (init_h_i_d): Likewise.
13966 (haifa_init_h_i_d): Likewise for local "insn".
13967 (haifa_init_insn): Likewise for param "insn".
13968 * sched-deps.c (add_dependence): Likewise for local "real_pro",
13969 "other".
13970 (create_insn_reg_use): Likewise for param "insn".
13971 (setup_insn_reg_uses): Likewise. Add a checked cast.
13972 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
13973 "tail" from rtx to rtx_insn *.
13974 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
13975 "insn", "next_tail".
13976
13977 2014-08-26 David Malcolm <dmalcolm@redhat.com>
13978
13979 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
13980 from rtx to rtx_insn *.
13981 (model_add_to_schedule): Likewise for locals "start", "end",
13982 "iter".
13983
13984 2014-08-26 David Malcolm <dmalcolm@redhat.com>
13985
13986 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
13987 rtx_insn *.
13988 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
13989 "to" and locals "insn", "next", "copy". Remove now-redundant
13990 checked cast.
13991
13992 2014-08-26 David Malcolm <dmalcolm@redhat.com>
13993
13994 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
13995 rtx_insn * and param 4 from rtx * to rtx_insn **.
13996 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
13997 param 2 from rtx * to rtx_insn **.
13998
13999 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
14000 rtx_insn * and final param from rtx * to rtx_insn **.
14001
14002 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
14003 from rtx to rtx_insn *.
14004 (try_head_merge_bb): Likewise for both locals named "move_upto".
14005 * df-problems.c (can_move_insns_across): Likewise for params
14006 "from", "to", "across_from", "across_to" and locals "insn",
14007 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
14008 rtx_insn **.
14009 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
14010 from rtx to rtx_insn *.
14011 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
14012 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
14013 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
14014 rtx_insn *.
14015 (noce_try_abs): Likewise.
14016 (noce_get_condition): Likewise for param "jump". Strengthen param
14017 "earliest" from rtx * to rtx_insn **.
14018 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
14019 rtx_insn *.
14020 (find_cond_trap): Likewise.
14021 (dead_or_predicable): Likewise for local "earliest".
14022 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
14023 checked cast.
14024 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
14025 and local "prev". Strengthen param "earliest" from rtx * to
14026 rtx_insn **.
14027 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
14028 Strengthen param "earliest" from rtx * to rtx_insn **.
14029
14030 2014-08-26 David Malcolm <dmalcolm@redhat.com>
14031
14032 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
14033 "to" and local "insn" from rtx to rtx_insn *.
14034
14035 2014-08-26 David Malcolm <dmalcolm@redhat.com>
14036
14037 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
14038 from rtx to rtx_insn *.
14039 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
14040 (code_motion_path_driver): Likewise for local "last_insn".
14041 (simplify_changed_insns): Likewise for local "insn".
14042
14043 2014-08-26 David Malcolm <dmalcolm@redhat.com>
14044
14045 * rtl.h (push_to_sequence): Strengthen param from rtx to
14046 rtx_insn *.
14047 (push_to_sequence2): Likewise for both params.
14048 (delete_insns_since): Likewise for param.
14049 (reorder_insns_nobb): Likewise for all three params.
14050 (set_new_first_and_last_insn): Likewise for both params.
14051
14052 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
14053 rtx_insn *. Remove now-redundant cast.
14054 (set_last_insn): Likewise.
14055
14056 * builtins.c (expand_builtin_return): Strengthen local
14057 "call_fusage" from rtx to rtx_insn *.
14058 * cfgrtl.c (create_basic_block_structure): Likewise for local
14059 "after".
14060 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
14061 "first", "last" and local "insn".
14062 (delete_insns_since): Likewise for param "from".
14063 (reorder_insns_nobb): Likewise for params "from", "to", "after"
14064 and local "x".
14065 (push_to_sequence): Likewise for param "first" and local "last".
14066 (push_to_sequence2): Likewise for params "first" and "last".
14067 * lra.c (emit_add3_insn): Likewise for local "last".
14068 (lra_emit_add): Likewise.
14069 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
14070 "last_insn".
14071 (process_address_1): Likewise for locals "insn", last".
14072 * modulo-sched.c (ps_first_note): Likewise for return type.
14073 * optabs.c (expand_binop_directly): Likewise for param "last".
14074
14075 2014-08-26 David Malcolm <dmalcolm@redhat.com>
14076
14077 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
14078 to rtx_insn*.
14079 * emit-rtl.c (get_last_insn_anywhere): Likewise.
14080
14081 2014-08-26 David Malcolm <dmalcolm@redhat.com>
14082
14083 * function.h (struct sequence_stack): Strengthen fields "first"
14084 and "last" from rtx to rtx_insn *.
14085 (struct emit_status): Likewise for fields "x_first_insn" and
14086 "x_last_insn".
14087
14088 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
14089 (set_first_insn): Add checked cast.
14090 (get_last_insn): Remove now-redundant checked cast.
14091 (set_last_insn): Add checked cast.
14092
14093 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
14094 "saved_first" and "saved_last" from rtx to rtx_insn *.
14095
14096 2014-08-26 David Malcolm <dmalcolm@redhat.com>
14097
14098 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
14099 (unlink_insn_chain): Strengthen both params from rtx to
14100 rtx_insn *.
14101
14102 * cfgrtl.c (cfg_layout_function_header): Likewise for this
14103 variable.
14104 (unlink_insn_chain): Likewise for params "first" and "last".
14105 Remove now-redundant checked cast.
14106 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
14107 (fixup_reorder_chain): Strengthen local "insn" from rtx to
14108 rtx_insn *.
14109 * emit-rtl.c (link_insn_into_chain): Likewise for all three
14110 params.
14111 (add_insn): Likewise for param "insn" and local "prev".
14112 (add_insn_after_nobb): Likewise for both params and local "next".
14113 (add_insn_before_nobb): Likewise for both params and local "prev".
14114 (add_insn_after): Rename param "after" to "uncast_after",
14115 introducing local "after" with another checked cast.
14116 (add_insn_before): Rename params "insn" and "before", giving them
14117 "uncast_" prefixes, adding the old names back using checked casts.
14118 (emit_note_after): Likewise for param "after".
14119 (emit_note_before): Likewise for param "before".
14120 (emit_label): Add a checked cast.
14121
14122 2014-08-26 David Malcolm <dmalcolm@redhat.com>
14123
14124 * cselib.h (cselib_record_sets_hook): Strengthen initial param
14125 "insn" from rtx to rtx_insn *.
14126
14127 * cselib.c (cselib_record_sets_hook): Likewise.
14128
14129 * var-tracking.c (add_with_sets): Likewise, renaming back from
14130 "uncast_insn" to "insn" and eliminating the checked cast from rtx
14131 to rtx_insn *.
14132
14133 2014-08-26 David Malcolm <dmalcolm@redhat.com>
14134
14135 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
14136 and "header_" from rtx to rtx_insn *.
14137 (struct basic_block_d): Likewise for field "head_" within "x"
14138 field of union basic_block_il_dependent.
14139 (BB_HEAD): Drop function...
14140 (SET_BB_HEAD): ...and this function in favor of...
14141 (BB_HEAD): ...reinstate macro.
14142 (BB_END): Drop function...
14143 (SET_BB_END): ...and this function in favor of...
14144 (BB_END): ...reinstate macro.
14145 (BB_HEADER): Drop function...
14146 (SET_BB_HEADER): ...and this function in favor of...
14147 (BB_HEADER): ...reinstate macro.
14148
14149 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
14150 (fix_crossing_unconditional_branches): Likewise.
14151 * caller-save.c (save_call_clobbered_regs): Likewise.
14152 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
14153 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
14154 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14155 (merge_blocks_move_successor_nojumps): Likewise.
14156 (outgoing_edges_match): Update use of for_each_rtx to
14157 for_each_rtx_in_insn.
14158 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
14159 (expand_gimple_cond): Likewise.
14160 (expand_gimple_tailcall): Likewise.
14161 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
14162 SET_BB_END.
14163 (construct_exit_block): Drop use of SET_BB_END.
14164 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
14165 rtx_insn *.
14166 (delete_insn): Rename param "insn" to "uncast_insn", introducing
14167 a new local "insn" with a checked cast to rtx_insn *. Drop use of
14168 SET_BB_HEAD and SET_BB_END.
14169 (create_basic_block_structure): Drop use of SET_BB_HEAD and
14170 SET_BB_END.
14171 (rtl_delete_block): Drop use of SET_BB_HEAD.
14172 (rtl_split_block): Drop use of SET_BB_END.
14173 (emit_nop_for_unique_locus_between): Likewise.
14174 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
14175 (block_label): Drop use of SET_BB_HEAD.
14176 (fixup_abnormal_edges): Drop use of SET_BB_END.
14177 (record_effective_endpoints): Drop use of SET_BB_HEADER.
14178 (relink_block_chain): Likewise.
14179 (fixup_reorder_chain): Drop use of SET_BB_END.
14180 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
14181 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
14182 rtx_insn **. Drop use of SET_BB_HEADER.
14183 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
14184 SET_BB_HEAD.
14185 (BB_HEAD): Delete this function.
14186 (SET_BB_HEAD): Likewise.
14187 (BB_END): Likewise.
14188 (SET_BB_END): Likewise.
14189 (BB_HEADER): Likewise.
14190 (SET_BB_HEADER): Likewise.
14191 * emit-rtl.c (add_insn_after): Rename param "insn" to
14192 "uncast_insn", adding a new local "insn" and a checked cast to
14193 rtx_insn *. Drop use of SET_BB_END.
14194 (remove_insn): Strengthen locals "next" and "prev" from rtx to
14195 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
14196 (reorder_insns): Drop use of SET_BB_END.
14197 (emit_insn_after_1): Strengthen param "first" and locals "last",
14198 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
14199 (emit_pattern_after_noloc): Add checked cast.
14200 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
14201 (restore_other_notes): Likewise.
14202 (move_insn): Likewise.
14203 (sched_extend_bb): Likewise.
14204 (fix_jump_move): Likewise.
14205 * ifcvt.c (noce_process_if_block): Likewise.
14206 (dead_or_predicable): Likewise.
14207 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
14208 * reg-stack.c (change_stack): Drop use of SET_BB_END.
14209 * sel-sched-ir.c (sel_move_insn): Likewise.
14210 * sel-sched.c (move_nop_to_previous_block): Likewise.
14211
14212 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
14213 SET_BB_END.
14214 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
14215
14216 2014-08-26 David Malcolm <dmalcolm@redhat.com>
14217
14218 * basic-block.h (create_basic_block_structure): Strengthen params
14219 1 "head" and 2 "end" from rtx to rtx_insn *.
14220 * cfgrtl.c (create_basic_block_structure): Likewise.
14221 (rtl_create_basic_block): Update casts from void * to rtx to
14222 rtx_insn *, so that we can pass them as rtx_insn * to
14223 create_basic_block_structure.
14224 * sel-sched-ir.c (sel_create_basic_block): Likewise.
14225
14226 2014-08-26 David Malcolm <dmalcolm@redhat.com>
14227
14228 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
14229 rtx_insn **.
14230 (check_for_inc_dec): Strengthen param "insn" from rtx to
14231 rtx_insn *.
14232
14233 * cselib.h (cselib_process_insn): Likewise.
14234
14235 * cselib.c (cselib_record_sets): Likewise.
14236 (cselib_process_insn): Likewise.
14237
14238 * dse.c (struct insn_info): Likewise for field "insn".
14239 (check_for_inc_dec_1): Likewise for local "insn".
14240 (check_for_inc_dec): Likewise for param "insn".
14241 (scan_insn): Likewise.
14242 (dse_step1): Likewise for local "insn".
14243
14244 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
14245 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
14246
14247 2014-08-26 David Malcolm <dmalcolm@redhat.com>
14248
14249 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
14250 from rtx to rtx_insn *.
14251 (DEP_PRO): Delete this function and...
14252 (SET_DEP_PRO): ...this function in favor of...
14253 (DEP_PRO): ...reinstate this macro.
14254 (DEP_CON): Delete this function and...
14255 (SET_DEP_CON): ...this function in favor of...
14256 (DEP_CON): ...reinstate this old macro.
14257 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
14258 (init_dep): Likewise.
14259 (set_priorities): Likewise for both params.
14260 (sd_copy_back_deps): Likewise for params 1 and 2.
14261
14262 * haifa-sched.c (priority): Likewise for param "insn" and local
14263 "next".
14264 (set_priorities): Likewise for params "head" and "tail" and local
14265 "insn".
14266 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
14267 local "consumer".
14268 (add_to_speculative_block): Add a checked cast.
14269 (create_check_block_twin): Drop use of SET_DEP_CON.
14270 (add_jump_dependencies): Strengthen params "insn" and "jump" from
14271 rtx to rtx_insn *.
14272
14273 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
14274 Drop use of SET_DEP_PRO
14275 (init_dep): Strengthen params "pro" and "con" from rtx to
14276 rtx_insn *.
14277 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
14278 use of SET_DEP_CON.
14279 (DEP_PRO): Delete.
14280 (DEP_CON): Delete.
14281 (SET_DEP_PRO): Delete.
14282 (SET_DEP_CON): Delete.
14283
14284 2014-08-26 David Malcolm <dmalcolm@redhat.com>
14285
14286 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
14287 from rtx to rtx_insn *.
14288 (VINSN_INSN_RTX): Eliminate rvalue function and...
14289 (SET_VINSN_INSN): ...lvalue function in favor of...
14290 (VINSN_INSN_RTX): reinstate this old macro.
14291
14292 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
14293 in favor of VINSN_INSN_RTX.
14294 (VINSN_INSN_RTX): Delete this function.
14295 (SET_VINSN_INSN_RTX): Likewise.
14296
14297 2014-08-26 David Malcolm <dmalcolm@redhat.com>
14298
14299 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
14300 (BND_TO): Delete this function and...
14301 (SET_BND_TO): ...this functions in favor of...
14302 (BND_TO): ...reinstating this macro.
14303 (struct _fence): Strengthen field "executing_insns" from
14304 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
14305 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
14306 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
14307 and param "insn" from rtx to insn_t.
14308 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
14309 rtx_insn *.
14310
14311 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
14312 vec<rtx_insn *> .
14313 (rtx_vec_t): Likewise.
14314 (struct sched_deps_info_def): Strengthen param of "start_insn"
14315 callback from rtx to rtx_insn *. Likewise for param "insn2" of
14316 "note_mem_dep" callback and first param of "note_dep" callback.
14317
14318 * haifa-sched.c (add_to_speculative_block): Strengthen param
14319 "insn" from rtx to rtx_insn *.
14320 (clear_priorities): Likewise.
14321 (calc_priorities): Likewise for local "insn".
14322
14323 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
14324 Remove redundant checked cast.
14325 (haifa_note_mem_dep): Likewise for param "pending_insn".
14326 (haifa_note_dep): Likewise for param "elem".
14327 (note_mem_dep): Likewise for param "e".
14328 (sched_analyze_1): Add checked casts.
14329 (sched_analyze_2): Likewise.
14330
14331 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
14332 from rtx to rtx_insn *.
14333 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
14334 from vec<rtx> * to vec<rtx_insn *> *.
14335
14336 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
14337 scaffolding.
14338 (flist_add): Strengthen param "executing_insns" from
14339 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
14340 (advance_deps_context): Remove now-redundant checked cast.
14341 (init_fences): Replace uses of NULL_RTX with NULL.
14342 (merge_fences): Strengthen params "last_scheduled_insn" and
14343 "sched_next" from rtx to rtx_insn * and "executing_insns" from
14344 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
14345 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
14346 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
14347 an instruction, rather than doing double-duty as a pattern.
14348 (return_nop_to_pool): Update for change of insn_t.
14349 (deps_init_id): Remove now-redundant checked cast.
14350 (struct sched_scan_info_def): Strengthen param of "init_insn"
14351 callback from rtx to insn_t.
14352 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
14353 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
14354 NULL.
14355 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
14356 "end" from rtx to rtx_insn *.
14357 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
14358 (rtx insn_rtx, bool force_unique_p)
14359 (BND_TO): Delete function.
14360 (SET_BND_TO): Delete function.
14361
14362 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
14363 rtx to rtx_insn *.
14364 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
14365 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
14366 rtx to rtx_insn *.
14367 (undo_transformations): Likewise for param "insn".
14368 (update_liveness_on_insn): Likewise.
14369 (compute_live_below_insn): Likewise for param "insn" and local
14370 "succ".
14371 (update_data_sets): Likewise for param "insn".
14372 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
14373 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
14374 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
14375 rtx_insn *.
14376 (move_cond_jump): Likewise for param "insn".
14377 (move_cond_jump): Drop use of SET_BND_TO.
14378 (compute_av_set_on_boundaries): Likewise.
14379 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
14380 (update_and_record_unavailable_insns): Strengthen local "bb_end"
14381 from rtx to rtx_insn *.
14382 (maybe_emit_renaming_copy): Likewise for param "insn".
14383 (maybe_emit_speculative_check): Likewise.
14384 (handle_emitting_transformations): Likewise.
14385 (remove_insn_from_stream): Likewise.
14386 (code_motion_process_successors): Strengthen local "succ" from rtx
14387 to insn_t.
14388
14389 2014-08-26 David Malcolm <dmalcolm@redhat.com>
14390
14391 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
14392 ilist_t, not _xlist_t;
14393 (ILIST_INSN): Define in terms of new union field "insn".
14394 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
14395 _XLIST_NEXT.
14396 (struct _list_node): Add new field "insn" to the union, of type
14397 insn_t.
14398 (ilist_add): Replace macro with an inline function, requiring an
14399 insn_t.
14400 (ilist_remove): Define this macro directly in terms of
14401 _list_remove, rather than indirectly via _xlist_remove.
14402 (ilist_clear): Likewise, in terms of _list_clear rather than
14403 _xlist_clear.
14404 (ilist_is_in_p): Replace macro with an inline function, requiring
14405 an insn_t.
14406 (_list_iter_cond_insn): New function.
14407 (ilist_iter_remove): Define this macro directly in terms of
14408 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
14409 (ilist_iterator): Define directly in terms of _list_iterator
14410 rather than indirectly through _xlist_iterator.
14411 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
14412 than in terms of _FOR_EACH_X.
14413 (FOR_EACH_INSN_1): Likewise.
14414
14415 2014-08-26 Joseph Myers <joseph@codesourcery.com>
14416
14417 PR target/60606
14418 PR target/61330
14419 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
14420 DECL_HARD_REGISTER and return for invalid register specifications.
14421 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
14422 DECL_HARD_REGISTER, call expand_one_error_var.
14423 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
14424 CC_REGNUM with non-MODE_CC modes.
14425 (arm_regno_class): Return NO_REGS for PC_REGNUM.
14426
14427 2014-08-26 Marek Polacek <polacek@redhat.com>
14428
14429 PR c/61271
14430 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
14431
14432 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
14433
14434 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
14435 qi cost; add di cost.
14436 (cortexa57_addrcost_table): Likewise.
14437
14438 2014-08-26 Marek Polacek <polacek@redhat.com>
14439
14440 PR c/61271
14441 * expr.c (is_aligning_offset): Remove logical not.
14442
14443 2014-08-26 Marek Polacek <polacek@redhat.com>
14444
14445 PR c/61271
14446 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
14447 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
14448
14449 2014-08-26 Richard Biener <rguenther@suse.de>
14450
14451 PR tree-optimization/62175
14452 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
14453 expand possibly trapping operations.
14454
14455 2014-08-26 David Malcolm <dmalcolm@redhat.com>
14456
14457 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
14458 "insn" from rtx to rtx_insn *.
14459 (permute_load): Likewise for param "insn".
14460 (permute_store): Likewise.
14461 (handle_special_swappables): Likewise for local "insn".
14462 (replace_swap_with_copy): Likewise for locals "insn" and
14463 "new_insn".
14464 (rs6000_analyze_swaps): Likewise for local "insn".
14465
14466 2014-08-25 David Malcolm <dmalcolm@redhat.com>
14467
14468 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
14469 to rtx_insn *.
14470
14471 2014-08-25 David Malcolm <dmalcolm@redhat.com>
14472
14473 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
14474 "note_list" from rtx to rtx_insn *.
14475 (BB_NOTE_LIST): Replace this function and...
14476 (SET_BB_NOTE_LIST): ...this function with...
14477 (BB_NOTE_LIST): ...the former macro implementation.
14478
14479 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
14480 local "from_start" from rtx to rtx_insn *. Strengthen param
14481 "to_endp" from rtx * to rtx_insn **.
14482
14483 * haifa-sched.c (concat_note_lists): Likewise.
14484 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
14485 BB_NOTE_LIST.
14486 (sel_restore_notes): Likewise.
14487 (move_bb_info): Likewise.
14488 (BB_NOTE_LIST): Delete this function.
14489 (SET_BB_NOTE_LIST): Delete this function.
14490 * sel-sched.c (create_block_for_bookkeeping): Eliminate
14491 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
14492
14493 2014-08-25 David Malcolm <dmalcolm@redhat.com>
14494
14495 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
14496 from rtx * to rtx_insn **.
14497 (reorder2): Likewise.
14498 (dependencies_evaluation_hook): Strengthen params "head", "tail"
14499 from rtx to rtx_insn *.
14500
14501 * doc/tm.texi: Update mechanically for above change to target.def.
14502
14503 * sched-int.h (note_list): Strengthen this variable from rtx to
14504 rtx_insn *.
14505 (remove_notes): Likewise for both params.
14506 (restore_other_notes): Likewise for return type and first param.
14507 (struct ready_list): Strengthen field "vec" from rtx * to
14508 rtx_insn **.
14509 (struct dep_replacement): Strenghten field "insn" from rtx to
14510 rtx_insn *.
14511 (struct deps_desc): Likewise for fields "last_debug_insn",
14512 "last_args_size".
14513 (struct haifa_sched_info): Likewise for callback field
14514 "can_schedule_ready_p"'s param, for first param of "new_ready"
14515 callback field, for both params of "rank" callback field, for
14516 first field of "print_insn" callback field (with a const), for
14517 both params of "contributes_to_priority" callback, for param
14518 of "insn_finishes_block_p" callback, for fields "prev_head",
14519 "next_tail", "head", "tail", for first param of "add_remove_insn"
14520 callback, for first param of "begin_schedule_ready" callback, for
14521 both params of "begin_move_insn" callback, and for second param
14522 of "advance_target_bb" callback.
14523 (add_dependence): Likewise for params 1 and 2.
14524 (sched_analyze): Likewise for params 2 and 3.
14525 (deps_analyze_insn): Likewise for param 2.
14526 (ready_element): Likewise for return type.
14527 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
14528 (try_ready): Strenghten param from rtx to rtx_insn *.
14529 (sched_emit_insn): Likewise for return type.
14530 (record_delay_slot_pair): Likewise for params 1 and 2.
14531 (add_delay_dependencies): Likewise for param.
14532 (contributes_to_priority): Likewise for both params.
14533 (find_modifiable_mems): Likewise.
14534
14535 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
14536 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
14537 "first_older_only_insn" from rtx to rtx_insn *.
14538 (arm_sched_reorder): Strengthen param "ready" from rtx * to
14539 rtx_insn **.
14540
14541 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
14542 "last_scheduled_iter0" from rtx to rtx_insn *.
14543 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
14544 (c6x_sched_reorder_1): Strengthen param "ready" and locals
14545 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
14546 "insn" from rtx to rtx_insn *.
14547 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
14548 rtx_insn **.
14549 (c6x_sched_reorder2): Strengthen param "ready" and locals
14550 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
14551 "insn" from rtx to rtx_insn *.
14552 (c6x_variable_issue): Add a checked cast when assigning from insn
14553 to ss.last_scheduled_iter0.
14554 (split_delayed_branch): Strengthen param "insn" and local "i1"
14555 from rtx to rtx_insn *.
14556 (split_delayed_nonbranch): Likewise.
14557 (undo_split_delayed_nonbranch): Likewise for local "insn".
14558 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
14559 "entry_after", "end_packet", "head_insn", "tail_insn",
14560 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
14561 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
14562 to rtx_insn **. Remove now-redundant checked cast on last_insn,
14563 but add a checked cast on loop->start_label. Consolidate calls to
14564 avoid assigning result of gen_spkernel to "insn", now an
14565 rtx_insn *.
14566
14567 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
14568 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
14569 rtx to rtx_insn *.
14570 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
14571 rtx_insn **. Strengthen locals "top", "next" from rtx to
14572 rtx_insn *.
14573 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
14574 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
14575 (add_parameter_dependencies): Strengthen params "call", "head" and
14576 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
14577 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
14578 (add_dependee_for_func_arg): Likewise for param "arg" and local
14579 "insn".
14580 (ix86_dependencies_evaluation_hook): Likewise for params "head",
14581 "tail" and locals "insn", "first_arg".
14582
14583 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
14584 for params "head", "tail" and locals "insn", "next", "next_tail".
14585 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
14586 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
14587 "insn", "lowest", "highest" from rtx to rtx_insn *.
14588 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
14589 rtx_insn **.
14590 (ia64_sched_reorder2): Likewise.
14591
14592 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
14593 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
14594 from rtx * to rtx_insn **.
14595 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
14596 rtx_insn **.
14597 (mep_print_sched_insn): Strengthen param "insn" from rtx to
14598 rtx_insn *.
14599 (mep_sched_reorder): Strengthen param "ready" from rtx * to
14600 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
14601 to rtx_insn *.
14602
14603 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
14604 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
14605 to rtx_insn *.
14606 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
14607 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
14608 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
14609 rtx_insn **.
14610 (vr4130_reorder): Likewise.
14611 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
14612 rtx to rtx_insn *.
14613 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
14614 rtx_insn **.
14615 (mips_sched_reorder): Likewise.
14616 (mips_sched_reorder2): Likewise.
14617
14618 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
14619
14620 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
14621 Strengthen local "tmp" from rtx to rtx_insn *.
14622 (rs6000_sched_reorder2): Likewise.
14623
14624 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
14625 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
14626 (s390_sched_reorder): Strengthen param "ready" from rtx * to
14627 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
14628
14629 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
14630 "tmp2" from rtx to rtx_insn *.
14631 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
14632 Strengthen local "insn" from rtx to rtx_insn *.
14633 (ready_reorder): Strengthen param "ready" from rtx * to
14634 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
14635 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
14636 (sh_reorder2): Likewise.
14637
14638 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
14639 local "insn" from rtx to rtx_insn *.
14640
14641 * haifa-sched.c (note_list): Strengthen this variable from rtx to
14642 rtx_insn *.
14643 (scheduled_insns): Strengthen this variable from vec<rtx> to
14644 vec<rtx_insn *>.
14645 (set_modulo_params): Likewise for locals "i1", "i2".
14646 (record_delay_slot_pair): Likewise for params "i1", "i2".
14647 (add_delay_dependencies): Likewise for param "insn".
14648 (cond_clobbered_p): Likewise.
14649 (recompute_todo_spec): Likewise for local "prev".
14650 (last_scheduled_insn): Likewise for this variable.
14651 (nonscheduled_insns_begin): Likewise.
14652 (model_set_excess_costs): Strengthen param "insns" from rtx * to
14653 rtx_insn **.
14654 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
14655 rtx_insn *.
14656 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
14657 Strengthen local "insn" from rtx to rtx_insn *.
14658 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
14659 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
14660 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
14661 (ready_remove_first): Likewise for return type and local "t".
14662 (ready_element): Likewise for return type.
14663 (ready_remove): Likewise for return type and local "t".
14664 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
14665 (check_clobbered_conditions): Strengthen local "x" from rtx to
14666 rtx_insn *, adding a checked cast.
14667 (schedule_insn): Likewise for param "insn".
14668 (remove_notes): Likewise for params "head", "tail" and locals
14669 "next_tail", "insn", "next".
14670 (struct haifa_saved_data): Likewise for fields
14671 "last_scheduled_insn", "nonscheduled_insns_begin".
14672 (save_backtrack_point): Update for change to field "vec" of
14673 struct ready_list.
14674 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
14675 rtx_insn **.
14676 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
14677 from rtx to rtx_insn *
14678 (resolve_dependencies): Strengthen param "insn" from rtx to
14679 rtx_insn *
14680 (restore_other_notes): Likewise for return type, for param "head"
14681 and local "note_head".
14682 (undo_all_replacements): Likewise for local "insn".
14683 (first_nonscheduled_insn): Likewise for return type and local "insn".
14684 (queue_to_ready): Likewise for local "insn", adding checked casts.
14685 (early_queue_to_ready): Likewise for local "insn".
14686 (debug_ready_list_1): Strengthen local "p" from rtx * to
14687 rtx_insn **.
14688 (move_insn): Strengthen param "insn" and local "note" from rtx to
14689 rtx_insn *
14690 (insn_finishes_cycle_p): Likewise for param "insn".
14691 (max_issue): Likewise for local "insn".
14692 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
14693 to rtx_insn **.
14694 (commit_schedule): Strengthen param "prev_head" and local "insn"
14695 from rtx to rtx_insn *
14696 (prune_ready_list): Likewise for local "insn".
14697 (schedule_block): Likewise for locals "prev_head", "head", "tail",
14698 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
14699 (set_priorities): Likewise for local "prev_head".
14700 (try_ready): Likewise for param "next".
14701 (fix_tick_ready): Likewise.
14702 (change_queue_index): Likewise.
14703 (sched_extend_ready_list): Update for change to field "vec" of
14704 struct ready_list.
14705 (generate_recovery_code): Strengthen param "insn" from rtx to
14706 rtx_insn *.
14707 (begin_speculative_block): Likewise.
14708 (create_check_block_twin): Likewise for param "insn" and locals
14709 "label", "check", "twin". Introduce local "check_pat" to avoid
14710 "check" being used as a plain rtx before being used as an insn.
14711 (fix_recovery_deps): Add a checked cast to rtx_insn * when
14712 extracting elements from ready_list.
14713 (sched_remove_insn): Strengthen param "insn" from rtx to
14714 rtx_insn *.
14715 (sched_emit_insn): Likewise for return type.
14716 (ready_remove_first_dispatch): Likewise for return type and local
14717 "insn".
14718
14719 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
14720
14721 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
14722 const rtx_insn *.
14723
14724 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
14725 from rtx to rtx_insn *.
14726 (add_dependence_list): Likewise for param "insn". Add a checked
14727 cast.
14728 (add_dependence_list_and_free): Strengthen param "insn" from rtx
14729 to rtx_insn *. Strengthen param "list_p" from rtx * to
14730 rtx_insn **.
14731 (chain_to_prev_insn): Strengthen param "insn" and locals
14732 "prec_nonnote", "i" from rtx to rtx_insn *.
14733 (flush_pending_lists): Likewise for param "insn".
14734 (cur_insn): Likewise for this variable.
14735 (haifa_start_insn): Add a checked cast.
14736 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
14737 (sched_analyze_reg): Likewise for param "insn".
14738 (sched_analyze_1): Likewise.
14739 (sched_analyze_2): Likewise. Add checked casts.
14740 (sched_analyze_insn): Likewise. Also for local "prev".
14741 (deps_analyze_insn): Likewise for param "insn".
14742 (sched_analyze): Likewise for params "head", "tail" and local "insn".
14743 (add_dependence_1): Likewise for params "insn", "elem".
14744 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
14745 (parse_add_or_inc): Likewise for param "insn".
14746 (find_inc): Likewise for local "inc_cand".
14747 (find_modifiable_mems): Likewise for params "head", "tail" and
14748 locals "insn", "next_tail".
14749
14750 * sched-ebb.c (init_ready_list): Likewise for local "insn".
14751 (begin_schedule_ready): Likewise for param "insn".
14752 (begin_move_insn): Likewise for params "insn" and "last".
14753 (ebb_print_insn): Strengthen param "insn" from const_rtx to
14754 const rtx_insn *.
14755 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
14756 (ebb_contributes_to_priority): Likewise for params "next", "insn".
14757 (ebb_add_remove_insn): Likewise for param "insn".
14758 (advance_target_bb): Likewise.
14759
14760 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
14761 "insn".
14762 (check_live): Likewise for param "insn".
14763 (init_ready_list): Likewise for local "insn".
14764 (can_schedule_ready_p): Likewise for param "insn".
14765 (begin_schedule_ready): Likewise.
14766 (new_ready): Likewise for param "next".
14767 (rgn_print_insn): Likewise for param "insn".
14768 (rgn_rank): Likewise for params "insn1", "insn2".
14769 (contributes_to_priority): Likewise for params "next", "insn".
14770 (rgn_insn_finishes_block_p): Likewise for param "insn".
14771 (add_branch_dependences): Likewise for params "head", "tail" and
14772 locals "insn", "last".
14773 (rgn_add_remove_insn): Likewise for param "insn".
14774 (advance_target_bb): Likewise.
14775
14776 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
14777 const_rtx to const rtx_insn *.
14778
14779 * sel-sched-dump.h (sel_print_insn): Likewise.
14780
14781 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
14782 (deps_init_id): Likewise.
14783
14784 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
14785 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
14786 rtx_insn **.
14787
14788 2014-08-25 David Malcolm <dmalcolm@redhat.com>
14789
14790 * output.h (final_start_function): Strengthen param 1 from rtx to
14791 rtx_insn *.
14792
14793 * final.c (final_start_function): Likewise, renaming back from
14794 "uncast_first" to "first", and dropping the checked cast from rtx
14795 to rtx_insn *.
14796
14797 2014-08-25 David Malcolm <dmalcolm@redhat.com>
14798
14799 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
14800 * final.c (final): Likewise. Rename param back from
14801 "uncast_first" to "first" and eliminate the checked cast from rtx
14802 to rtx_insn *.
14803
14804 2014-08-25 David Malcolm <dmalcolm@redhat.com>
14805
14806 * output.h (shorten_branches): Strengthen param from rtx to
14807 rtx_insn *.
14808
14809 * final.c (shorten_branches): Likewise, renaming param back from
14810 "uncast_first" to "first", and dropping the checked cast from rtx
14811 to rtx_insn *.
14812
14813 * genattr.c (gen_attr): Likewise when writing out the prototype of
14814 shorten_branches.
14815
14816 2014-08-25 David Malcolm <dmalcolm@redhat.com>
14817
14818 * sched-int.h (struct haifa_sched_info): Strengthen fields
14819 "prev_head" and "next_tail" from rtx to rtx_insn *.
14820
14821 2014-08-25 David Malcolm <dmalcolm@redhat.com>
14822
14823 * rtl.h (rtx_jump_table_data::get_labels): New method.
14824 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
14825 with use of the new rtx_jump_table_data::get_labels method.
14826 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
14827 to rtx_jump_table_data *. Simplify by using get_labels method.
14828 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
14829 a dyn_cast, introducing local "table", using it to replace
14830 label-lookup logic with a get_labels method call.
14831 (patch_jump_insn): Simplify using get_labels method.
14832 * dwarf2cfi.c (create_trace_edges): Likewise.
14833 * rtlanal.c (label_is_jump_target_p): Likewise.
14834
14835 2014-08-25 David Malcolm <dmalcolm@redhat.com>
14836
14837 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
14838 to rtx_insn *.
14839
14840 * emit-rtl.c (unshare_all_rtl_1): Likewise.
14841 (unshare_all_rtl_again): Likewise, also for local "p".
14842
14843 2014-08-25 David Malcolm <dmalcolm@redhat.com>
14844
14845 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
14846 to rtx_insn *.
14847 * cfgrtl.c (delete_insn_and_edges): Likewise.
14848
14849 2014-08-25 David Malcolm <dmalcolm@redhat.com>
14850
14851 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
14852 from rtx to rtx_insn *.
14853
14854 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
14855
14856 2014-08-25 David Malcolm <dmalcolm@redhat.com>
14857
14858 * function.c (thread_prologue_and_epilogue_insns): Likewise for
14859 locals "returnjump", "epilogue_end", "insn", "next".
14860
14861 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
14862 "returnjump" from rtx * to rtx_insn **.
14863 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
14864
14865 2014-08-25 David Malcolm <dmalcolm@redhat.com>
14866
14867 * basic-block.h (struct edge_def). Strengthen "r" within
14868 union edge_def_insns from rtx to rtx_insn *.
14869
14870 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
14871 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
14872 rtx_insn *.
14873 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
14874 from rtx to rtx_insn *.
14875 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
14876 rtx_insn *.
14877 * postreload-gcse.c (reg_killed_on_edge): Likewise.
14878 (reg_used_on_edge): Likewise.
14879 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
14880 (gt_pch_nx): New overload for rtx_insn *&.
14881 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
14882 from rtx to rtx_insn *.
14883
14884 2014-08-25 David Malcolm <dmalcolm@redhat.com>
14885
14886 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
14887 from rtx to rtx_insn *.
14888 (BB_FOOTER): Replace function with access macro.
14889 (SET_BB_FOOTER): Delete.
14890
14891 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
14892 with BB_FOOTER.
14893 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14894 (emit_barrier_after_bb): Likewise.
14895 (record_effective_endpoints): Likewise.
14896 (relink_block_chain): Likewise.
14897 (fixup_fallthru_exit_predecessor): Likewise.
14898 (cfg_layout_duplicate_bb): Likewise.
14899 (cfg_layout_split_block): Likewise.
14900 (cfg_layout_delete_block): Likewise.
14901 (cfg_layout_merge_blocks): Likewise.
14902 (BB_FOOTER): Delete function.
14903 (SET_BB_FOOTER): Delete function.
14904 * combine.c (update_cfg_for_uncondjump): Replace uses of
14905 SET_BB_FOOTER with BB_FOOTER.
14906
14907 2014-08-25 David Malcolm <dmalcolm@redhat.com>
14908
14909 * except.h (struct eh_landing_pad_d): Strengthen field
14910 "landing_pad" from rtx to rtx_code_label *.
14911
14912 * except.c (sjlj_emit_dispatch_table): Likewise for param
14913 "dispatch_label"
14914 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
14915
14916 2014-08-25 David Malcolm <dmalcolm@redhat.com>
14917
14918 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
14919 first param from rtx to rtx_insn *.
14920 * config/xtensa/xtensa.c (struct machine_function): Likewise for
14921 field "set_frame_ptr_insn".
14922 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
14923 "csend" from rtx to rtx_code_label *.
14924 (xtensa_expand_atomic): Likewise for local "csloop".
14925 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
14926 rtx_insn *.
14927 (xtensa_call_tls_desc): Likewise for return type and locals
14928 "call_insn", "insns".
14929 (xtensa_legitimize_tls_address): Likewise for local "insns".
14930 (xtensa_expand_prologue): Likewise for locals "insn", "first".
14931
14932 2014-08-25 David Malcolm <dmalcolm@redhat.com>
14933
14934 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
14935 first param from rtx to rtx_insn *.
14936 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
14937 "insn".
14938
14939 2014-08-25 David Malcolm <dmalcolm@redhat.com>
14940
14941 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
14942 Strengthen param 1 from rtx to rtx_insn *.
14943 (tilepro_output_cbranch): Likewise.
14944 (tilepro_adjust_insn_length): Likewise.
14945 (tilepro_final_prescan_insn): Likewise for sole param.
14946
14947 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
14948 Likewise for local "last".
14949 (cbranch_predicted_p): Likewise for param "insn".
14950 (tilepro_output_simple_cbranch_with_opcode): Likewise.
14951 (tilepro_output_cbranch_with_opcode): Likewise.
14952 (tilepro_output_cbranch): Likewise.
14953 (frame_emit_load): Likewise for return type and locals "seq",
14954 "insn".
14955 (emit_sp_adjust): Likewise for return type and local "insn".
14956 (tilepro_expand_epilogue): Likewise for locals "last_insn",
14957 "insn".
14958 (tilepro_adjust_insn_length): Likewise for param "insn".
14959 (next_insn_to_bundle): Likewise for return type and params
14960 "r", "end".
14961 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
14962 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
14963 local "new_insns".
14964 (match_addli_pcrel): Likewise for param "insn".
14965 (replace_addli_pcrel): Likewise.
14966 (match_auli_pcrel): Likewise.
14967 (replace_auli_pcrel): Likewise.
14968 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
14969 "next_insn".
14970 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
14971 "queue", "next_queue", "prev".
14972 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
14973 (tilepro_final_prescan_insn): Likewise for param "insn".
14974
14975 2014-08-25 David Malcolm <dmalcolm@redhat.com>
14976
14977 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
14978 Strengthen param 1 from rtx to rtx_insn *.
14979 (tilegx_output_cbranch): Likewise.
14980 (tilegx_adjust_insn_length): Likewise.
14981 (tilegx_final_prescan_insn): Likewise for sole param.
14982
14983 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
14984 or local "last".
14985 (cbranch_predicted_p): Likewise for param "insn".
14986 (tilegx_output_simple_cbranch_with_opcode): Likewise.
14987 (tilegx_output_cbranch_with_opcode): Likewise.
14988 (tilegx_output_cbranch): Likewise.
14989 (frame_emit_load): Likewise for return type.
14990 (set_frame_related_p): Likewise for locals "seq", "insn".
14991 (emit_sp_adjust): Likewise for return type, and for local "insn".
14992 Introduce local "pat" for use in place of "insn" where the latter
14993 isn't an instruction.
14994 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
14995 from rtx to rtx_insn *.
14996 (tilegx_adjust_insn_length): Likewise for param "insn".
14997 (next_insn_to_bundle): Likewise for return type and params "r" and
14998 "end".
14999 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
15000 "end".
15001 (replace_insns): Likewise for params "old_insn", "new_insns".
15002 (replace_mov_pcrel_step1): Likewise for param "insn" and local
15003 "new_insns".
15004 (replace_mov_pcrel_step2): Likewise.
15005 (replace_mov_pcrel_step3): Likewise.
15006 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
15007 "next_insn".
15008 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
15009 "queue", "next_queue", "prev".
15010 (tilegx_output_mi_thunk): Likewise for local "insn".
15011 (tilegx_final_prescan_insn): Likewise for param "insn".
15012
15013 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15014
15015 * config/spu/spu.c (frame_emit_store): Strengthen return type from
15016 rtx to rtx_insn *.
15017 (frame_emit_load): Likewise.
15018 (frame_emit_add_imm): Likewise, also for local "insn".
15019 (spu_expand_prologue): Likewise for local "insn".
15020 (struct spu_bb_info): Likewise for field "prop_jump".
15021 (emit_nop_for_insn): Likewise for param "insn" and local
15022 "new_insn".
15023 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
15024 "hbr_insn".
15025 (spu_emit_branch_hint): Likewise for params "before", "branch" and
15026 locals "hint", "insn".
15027 (get_branch_target): Likewise for param "branch".
15028 (insn_clobbers_hbr): Likewise for param "insn".
15029 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
15030 locals "insn", "before_4", "before_16".
15031 (insert_hbrp): Likewise for local "insn".
15032 (spu_machine_dependent_reorg): Likewise for locals "branch",
15033 "insn", "next", "bbend".
15034 (uses_ls_unit): Likewise for param "insn".
15035 (get_pipe): Likewise.
15036 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
15037 introducing a checked cast.
15038 (spu_sched_adjust_cost): Likewise for params "insn" and
15039 "dep_insn".
15040 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
15041 (spu_sms_res_mii): Likewise.
15042
15043 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15044
15045 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
15046 from rtx to rtx_insn *.
15047 (output_cbranch): Likewise for param 6.
15048 (output_return): Likewise for param 1.
15049 (output_sibcall): Likewise.
15050 (output_v8plus_shift): Likewise.
15051 (output_v8plus_mult): Likewise.
15052 (output_v9branch): Likewise for param 7.
15053 (output_cbcond): Likewise for param 3.
15054
15055 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
15056 for local "insn".
15057 (sparc_legitimize_pic_address): Likewise.
15058 (sparc_emit_call_insn): Likewise.
15059 (emit_save_or_restore_regs): Likewise.
15060 (emit_window_save): Likewise for return type and local "insn".
15061 (sparc_expand_prologue): Likewise for local "insn".
15062 (sparc_flat_expand_prologue): Likewise.
15063 (output_return): Likewise for param "insn".
15064 (output_sibcall): Likewise for param "insn" and local "delay".
15065 (output_ubranch): Likewise for param "insn".
15066 (output_cbranch): Likewise.
15067 (output_cbcond): Likewise.
15068 (output_v9branch): Likewise.
15069 (output_v8plus_shift): Likewise.
15070 (sparc_output_mi_thunk): Likewise for local "insn".
15071 (get_some_local_dynamic_name): Likewise.
15072 (output_v8plus_mult): Likewise for param "insn".
15073
15074 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15075
15076 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
15077 from rtx to rtx_insn *.
15078 (output_branchy_insn): Likewise for param 3.
15079 (output_far_jump): Likewise for param 1.
15080 (final_prescan_insn): Likewise.
15081 (sh_insn_length_adjustment): Likewise for sole param.
15082
15083 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
15084 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
15085 rtx_code_label *.
15086 (sh_emit_compare_and_set): Likewise for local "lab".
15087 (output_far_jump): Strengthen param "insn" and local "prev" from
15088 rtx to rtx_insn *.
15089 (output_branchy_insn): Likewise for param "insn" and local
15090 "next_insn".
15091 (output_ieee_ccmpeq): Likewise for param "insn".
15092 (struct label_ref_list_d): Strengthen field "label" from rtx to
15093 rtx_code_label *.
15094 (pool_node): Likewise.
15095 (pool_window_label): Likewise for this global.
15096 (add_constant): Likewise for return type and locals "lab", "new_rtx".
15097 (dump_table): Strengthen params "start", "barrier" and local
15098 "scan" from rtx to rtx_insn *.
15099 (broken_move): Likewise for param "insn".
15100 (untangle_mova): Likewise for params "first_mova" and "new_mova".
15101 Strengthen param "first_mova" from rtx * to rtx_insn **.
15102 (mova_p): Likewise for param "insn".
15103 (fixup_mova): Likewise for param "mova".
15104 (find_barrier): Likewise for return type, params "mova" and
15105 "from", and locals "barrier_before_mova", "found_barrier",
15106 "good_barrier", "orig", "last_symoff", "next". Strengthen local
15107 "label" from rtx to rtx_code_label *.
15108 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
15109 rtx to rtx_insn *.
15110 (sh_reorg): Likewise for locals "link", "scan", "barrier".
15111 (split_branches): Likewise for param "first" and local "insn".
15112 (final_prescan_insn): Likewise for param "insn".
15113 (sequence_insn_p): Likewise for locals "prev", "next".
15114 (sh_insn_length_adjustment): Likewise for param "insn".
15115 (sh_can_redirect_branch): Likewise for local "insn".
15116 (find_r0_life_regions): Likewise for locals "end", "insn".
15117 (sh_output_mi_thunk): Likewise for local "insns".
15118
15119 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15120
15121 * config/score/score.c (score_output_mi_thunk): Strengthen local
15122 "insn" from rtx to rtx_insn *.
15123 (score_prologue): Likewise.
15124
15125 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15126
15127 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
15128 1 from rtx to rtx_insn *.
15129 (s390_emit_jump): Likewise for return type.
15130 (s390_emit_call): Likewise.
15131 (s390_load_got): Likewise.
15132
15133 * config/s390/s390.c (last_scheduled_insn): Likewise for this
15134 variable.
15135 (s390_match_ccmode): Likewise for param "insn".
15136 (s390_emit_jump): Likewise for return type.
15137 (s390_split_branches): Likewise for local "label".
15138 (struct constant): Strengthen field "label" from rtx to
15139 rtx_code_label *.
15140 (struct constant_pool): Likewise for field "label". Strengthen
15141 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
15142 rtx_insn *.
15143 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
15144 insns.
15145 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
15146 (s390_end_pool): Likewise.
15147 (s390_dump_pool): Likewise for local "insn".
15148 (s390_mainpool_start): Likewise.
15149 (s390_chunkify_start): Likewise.
15150 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
15151 with insns. Strengthen locals "label", "jump", "barrier", "next",
15152 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
15153 (s390_chunkify_finish): Strengthen local "insn" from rtx to
15154 rtx_insn *.
15155 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
15156 "jump", "label", "next_insn".
15157 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
15158 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
15159 "tbegin_insn".
15160 (s390_load_got): Likewise for return type and local "insns".
15161 (s390_save_gprs_to_fprs): Likewise for local "insn".
15162 (s390_restore_gprs_from_fprs): Likewise.
15163 (pass_s390_early_mach::execute): Likewise.
15164 (s390_emit_prologue): Likewise for local "insns".
15165 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
15166 rtx_code_label *.
15167 (s390_emit_call): Strengthen return type and local "insn" from
15168 rtx to rtx_insn *.
15169 (s390_emit_tpf_eh_return): Likewise for local "insn".
15170 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
15171 "next_insn", introducing locals "s_pat", "rpat" to allow this.
15172 (s390_fix_long_loop_prediction): Likewise for param "insn" and
15173 local "cur_insn".
15174 (s390_non_addr_reg_read_p): Likewise for param "insn".
15175 (find_cond_jump): Likewise for return type and param "insn".
15176 (s390_swap_cmp): Likewise for param "insn".
15177 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
15178 "prev_insn", "next_insn".
15179 (s390_reorg): Likewise for locals "insn", "target".
15180 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
15181 (s390_sched_variable_issue): For now, rename param "insn" to
15182 "uncast_insn", introducing a checked cast.
15183 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
15184 insn.
15185 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
15186 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
15187
15188 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15189
15190 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
15191 param from rtx to rtx_insn *.
15192 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
15193
15194 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15195
15196 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
15197 4 from rtx to rtx_insn *.
15198 (rs6000_final_prescan_insn): Likewise for first param.
15199 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
15200 local "insn".
15201 (rs6000_get_some_local_dynamic_name): Likewise.
15202 (output_cbranch): Likewise for param "insn".
15203 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
15204 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
15205 (rs6000_emit_allocate_stack): Likewise for local "insn".
15206 (load_cr_save): Likewise.
15207 (restore_saved_cr): Likewise.
15208 (restore_saved_lr): Likewise.
15209 (emit_cfa_restores): Likewise.
15210 (rs6000_output_function_epilogue): Likewise for locals "insn" and
15211 "deleted_debug_label".
15212 (rs6000_output_mi_thunk): Likewise for local "insn".
15213 (rs6000_final_prescan_insn): Likewise for param "insn".
15214
15215 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15216
15217 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
15218 Strengthen param "insn" from rtx to rtx_insn *.
15219 * config/picochip/picochip.c (picochip_current_prescan_insn):
15220 Likewise for this variable.
15221 (picochip_final_prescan_insn): Likewise for param "insn".
15222
15223 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15224
15225 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
15226 from rtx to rtx_insn *.
15227 (pa_output_indirect_call): Likewise.
15228 (pa_adjust_insn_length): Likewise.
15229 (pa_attr_length_millicode_call): Likewise.
15230 (pa_attr_length_call): Likewise.
15231 (pa_attr_length_indirect_call): Likewise.
15232
15233 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
15234 "insn".
15235 (pa_attr_length_millicode_call): Likewise.
15236 (pa_attr_length_call): Likewise.
15237 (pa_output_call): Likewise.
15238 (pa_attr_length_indirect_call): Likewise.
15239 (pa_output_indirect_call): Likewise.
15240
15241 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15242
15243 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
15244 Strengthen first param from rtx to rtx_insn *.
15245 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
15246 param "insn".
15247
15248 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15249
15250 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
15251 type from rtx to rtx_insn *.
15252 (mips_expand_call): Likewise.
15253 (mips_adjust_insn_length): Likewise for first param.
15254 (mips_output_conditional_branch): Likewise.
15255 (mips_output_order_conditional_branch): Likewise.
15256 (mips_final_prescan_insn): Likewise.
15257
15258 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
15259 rtx_insn * for the SEQUENCE case.
15260 (SEQ_END): Likewise.
15261 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
15262 (mips_emit_call_insn): Likewise, also for local "insn".
15263 (mips16_gp_pseudo_reg): Likewise for local "scan".
15264 (mips16_build_call_stub): Likewise for return type and for local
15265 "insn". Introduce a new local "pattern" so that "insn" can indeed
15266 be an insn.
15267 (mips_expand_call): Strengthen return type and local "insn" from
15268 rtx to rtx_insn *.
15269 (mips_block_move_loop): Strengthen local "label" from rtx to
15270 rtx_code_label *.
15271 (mips_expand_synci_loop): Likewise for locals "label",
15272 "end_label".
15273 (mips_set_frame_expr): Strengthen local "insn" from rtx to
15274 rtx_insn *.
15275 (mips16e_collect_argument_saves): Likewise for locals "insn",
15276 "next".
15277 (mips_find_gp_ref): Likewise for param of callback for "pred"
15278 param, and for local "insn".
15279 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
15280 (mips_insn_has_flexible_gp_ref_p): Likewise.
15281 (mips_epilogue_emit_cfa_restores): Likewise for return type and
15282 local "insn".
15283 (mips_epilogue_set_cfa): Likewise for local "insn".
15284 (mips_expand_epilogue): Likewise.
15285 (mips_adjust_insn_length): Likewise for param "insn".
15286 (mips_output_conditional_branch): Likewise.
15287 (mips_output_order_conditional_branch): Likewise.
15288 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
15289 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
15290 "falu2_turn_enabled_insn".
15291 (mips_builtin_branch_and_move): Strengthen locals "true_label",
15292 "done_label" from rtx to rtx_code_label *.
15293 (struct mips16_constant): Likewise for field "label".
15294 (mips16_add_constant): Likewise for return type.
15295 (mips16_emit_constants_1): Strengthen return type and param "insn"
15296 from rtx to rtx_insn *.
15297 (mips16_emit_constants): Likewise for param "insn".
15298 (mips16_insn_length): Likewise.
15299 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
15300 to rtx_code_label *.
15301 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
15302 from rtx to rtx_insn *.
15303 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
15304 "jump". Strengthen local "label" from rtx to rtx_code_label *.
15305 (r10k_simplify_address): Strengthen param "insn" and local
15306 "def_insn" from rtx to rtx_insn *.
15307 (r10k_safe_address_p): Strengthen param "insn" from rtx to
15308 rtx_insn *.
15309 (r10k_needs_protection_p_1): Update target type of cast of data
15310 from to rtx to rtx_insn *.
15311 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
15312 rtx * to rtx_insn **.
15313 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
15314 rtx_insn *.
15315 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
15316 (mips_call_expr_from_insn): Likewise for param "insn".
15317 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
15318 (mips_find_pic_call_symbol): Likewise for param "insn".
15319 (mips_annotate_pic_calls): Likewise for local "insn".
15320 (mips_sim_insn): Likewise for this variable.
15321 (struct mips_sim): Likewise for field "insn" within elements of
15322 last_set array.
15323 (mips_sim_wait_reg): Likewise for param "insn".
15324 (mips_sim_wait_regs): Likewise.
15325 (mips_sim_wait_units): Likewise.
15326 (mips_sim_wait_insn): Likewise.
15327 (mips_sim_issue_insn): Likewise.
15328 (mips_sim_finish_insn): Likewise.
15329 (mips_seq_time): Likewise for param "seq" and local "insn".
15330 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
15331 locals "first", "second".
15332 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
15333 "last", "last2", "next".
15334 (mips_avoid_hazard): Likewise for params "after", "insn".
15335 (mips_reorg_process_insns): Likewise for locals "insn",
15336 "last_insn", "subinsn", "next_insn".
15337 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
15338 (mips16_split_long_branches): Likewise for locals "insn" "jump",
15339 "jump_sequence".
15340 (mips_output_mi_thunk): Likewise for local "insn".
15341 (mips_final_prescan_insn): Likewise for param "insn".
15342
15343 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15344
15345 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
15346 Strengthen return type and local "insns" from rtx to rtx_insn *.
15347 (microblaze_legitimize_tls_address): Likewise for local "insns".
15348 (microblaze_block_move_loop): Strengthen local "label" from rtx
15349 to rtx_code_label *.
15350 (microblaze_expand_prologue): Strengthen two locals named "insn"
15351 from rtx to rtx_insn *.
15352 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
15353 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
15354 "insn". Strengthen locals "div_label", "div_end_label" from rtx
15355 to rtx_code_label *.
15356
15357 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15358
15359 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
15360 param from rtx to rtx_insn *.
15361 (mep_reuse_lo): Likewise for third param.
15362 (mep_use_post_modify_p): Likewise for first param.
15363 (mep_core_address_length): Likewise.
15364 (mep_cop_address_length): Likewise.
15365 (mep_final_prescan_insn): Likewise.
15366 (mep_store_data_bypass_p): Likewise for both params.
15367 (mep_mul_hilo_bypass_p): Likewise.
15368 (mep_ipipe_ldc_p): Likewise for param.
15369
15370 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
15371 (mep_rewrite_mult): Likewise.
15372 (mep_rewrite_mulsi3): Likewise.
15373 (mep_rewrite_maddsi3): Likewise.
15374 (mep_reuse_lo_p_1): Likewise.
15375 (mep_reuse_lo_p): Likewise.
15376 (mep_frame_expr): Likewise.
15377 (mep_make_parallel): Likewise for both params.
15378 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
15379 local "insn".
15380 (mep_use_post_modify_p): Likewise for param "insn".
15381 (mep_core_address_length): Likewise.
15382 (mep_cop_address_length): Likewise.
15383 (mep_reg_set_in_function): Likewise for local "insn".
15384 (mep_asm_without_operands_p): Likewise.
15385 (F): Likewise for return type and param "x".
15386 (add_constant): Likewise for local "insn".
15387 (maybe_dead_move): Likewise for return type and local "insn".
15388 (mep_expand_prologue): Likewise for local "insn".
15389 (mep_final_prescan_insn): Likewise for param "insn".
15390 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
15391 "next", "follow", "x".
15392 (mep_insert_repeat_label_last): Likewise for return type, param
15393 "last_insn", and locals "next", "prev". Strengthen param "label"
15394 from rtx to rtx_code_label *.
15395 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
15396 rtx_insn *.
15397 (struct mep_doloop_end): Likewise for fields "insn" and
15398 "fallthrough".
15399 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
15400 Strengthen local "repeat_label" from rtx to rtx_code_label *.
15401 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
15402 rtx_insn *.
15403 (mep_invert_branch): Likewise for params "insn" and "after".
15404 (mep_reorg_erepeat): Likewise for param "insns" and locals
15405 "insn", "prev", "new_last", "barrier", "user". Strengthen local
15406 "l" from rtx to rtx_code_label *.
15407 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
15408 from rtx to rtx_insn *.
15409 (mep_reorg_addcombine): Likewise for param "insns" and locals
15410 "i", "n".
15411 (add_sp_insn_p): Likewise for param "insn".
15412 (mep_reorg_noframe): Likewise for param "insns" and locals
15413 "start_frame_insn", "end_frame_insn", "next".
15414 (mep_reorg): Likewise for local "insns".
15415 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
15416 cast.
15417 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
15418 (mep_mul_hilo_bypass_p): Likewise.
15419 (mep_ipipe_ldc_p): Likewise for param "insn".
15420 (mep_make_bundle): Likewise for return type, param "cop" and local
15421 "insn", splitting out the latter into a new local "seq" for when it
15422 is a SEQUENCE rather than an insn.
15423 (core_insn_p): Likewise for param "insn".
15424 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
15425 "last", "first", "note", "prev", "core_insn".
15426
15427 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15428
15429 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
15430 rtx to rtx_insn *.
15431 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
15432 (m68k_final_prescan_insn): Likewise for first param.
15433
15434 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
15435 (m68k_set_frame_related): Likewise for param "insn".
15436 (output_btst): Likewise for param "insn".
15437 (m68k_final_prescan_insn): Likewise.
15438 (m68k_move_to_reg): Likewise for local "insn".
15439 (m68k_call_tls_get_addr): Likewise for local "insns".
15440 (m68k_call_m68k_read_tp): Likewise.
15441 (strict_low_part_peephole_ok): Likewise for param "first_insn".
15442 (m68k_output_mi_thunk): Likewise for local "insn".
15443
15444 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15445
15446 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
15447 first param from rtx to rtx_insn *.
15448 (iq2000_adjust_insn_length): Likewise.
15449 (iq2000_output_conditional_branch): Likewise.
15450 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
15451 "insn" and local "nop_insn".
15452 (iq2000_annotate_frame_insn): Likewise for param "insn".
15453 (iq2000_expand_prologue): Likewise for both locals "insn".
15454 (iq2000_adjust_insn_length): Likewise for param "insn".
15455 (iq2000_output_conditional_branch): Likewise.
15456
15457 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15458
15459 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
15460 "insns" from rtx to rtx_insn *.
15461 (ia64_emit_cond_move): Likewise for locals "insn", "first".
15462 (struct spill_fill_data): Likewise for field "init_after" and for
15463 elements of array field "prev_insn".
15464 (spill_restore_mem): Likewise for locals "insn", "first".
15465 (do_spill): Likewise for local "insn".
15466 (do_restore): Likewise.
15467 (ia64_expand_prologue): Likewise.
15468 (ia64_expand_epilogue): Likewise.
15469 (emit_insn_group_barriers): Likewise for locals "insn",
15470 "last_label".
15471 (emit_all_insn_group_barriers): Likewise for locals "insn",
15472 "last".
15473 (dfa_stop_insn): Likewise for this global.
15474 (dfa_pre_cycle_insn): Likewise.
15475 (ia64_nop): Likewise.
15476 (final_emit_insn_group_barriers): Likewise for locals "insn",
15477 "last".
15478 (emit_predicate_relation_info): Likewise for locals "head", "n",
15479 "insn", "b", "a".
15480 (ia64_reorg): Likewise for local "insn".
15481 (ia64_output_mi_thunk): Likewise.
15482 (expand_vec_perm_interleave_2): Likewise for local "seq".
15483
15484 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15485
15486 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
15487 param 1 "insn" from rtx to rtx_insn *.
15488 (ix86_use_lea_for_mov): Likewise.
15489 (ix86_avoid_lea_for_addr): Likewise.
15490 (ix86_split_lea_for_addr): Likewise.
15491 (ix86_lea_for_add_ok): Likewise.
15492 (ix86_output_call_insn): Likewise.
15493
15494 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
15495 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
15496 (ix86_output_function_epilogue): Likewise for locals "insn",
15497 "deleted_debug_label".
15498 (legitimize_tls_address): Likewise for local "insn".
15499 (get_some_local_dynamic_name): Likewise.
15500 (increase_distance): Likewise for params "prev", "next".
15501 (distance_non_agu_define_in_bb): Likewise for params "insn",
15502 "start" and locals "prev", "next".
15503 (distance_non_agu_define): Likewise for param "insn".
15504 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
15505 locals "next", "prev".
15506 (distance_agu_use): Likewise for param "insn".
15507 (ix86_lea_outperforms): Likewise.
15508 (ix86_ok_to_clobber_flags): Likewise.
15509 (ix86_avoid_lea_for_add): Likewise.
15510 (ix86_use_lea_for_mov): Likewise.
15511 (ix86_avoid_lea_for_addr): Likewise.
15512 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
15513 (ix86_split_lea_for_addr): Likewise for param "insn".
15514 (ix86_lea_for_add_ok): Likewise for param "insn".
15515 (ix86_expand_carry_flag_compare): Likewise for local
15516 "compare_seq".
15517 (ix86_expand_int_movcc): Likewise.
15518 (ix86_output_call_insn): Likewise for param "insn".
15519 (ix86_output_call_insn): Likewise for local "i".
15520 (x86_output_mi_thunk): Introduce local "insn", using it in place
15521 of "tmp" when dealing with insns.
15522 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
15523 "start".
15524 (ix86_pad_returns): Likewise for locals "ret", "prev".
15525 (ix86_count_insn_bb): Likewise for local "insn".
15526 (ix86_pad_short_function): Likewise for locals "ret", "insn".
15527 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
15528 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
15529 (expand_vec_perm_interleave2): Likewise for local "seq".
15530 (expand_vec_perm_vperm2f128_vblend): Likewise.
15531 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
15532 call to for_each_rtx with for_each_rtx_in_insn.
15533
15534 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15535
15536 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
15537 "label" from rtx to rtx_code_label *.
15538 (ix86_expand_prologue): Likewise.
15539 (ix86_expand_split_stack_prologue): Likewise for locals "label",
15540 "varargs_label".
15541 (ix86_split_idivmod): Likewise for locals "end_label" and
15542 "qimode_label".
15543 (ix86_expand_branch): Likewise for local "label2".
15544 (ix86_expand_aligntest): Likewise for return type and local "label".
15545 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
15546 "top_label".
15547 (expand_movmem_epilogue): Likewise for the various locals named
15548 "label".
15549 (expand_setmem_epilogue): Likewise.
15550 (expand_small_movmem_or_setmem): Likewise for local "label".
15551 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
15552 Strengthen param "done_label" from rtx * to rtx_code_label **.
15553 Strengthen locals "loop_label" and "label" from rtx to
15554 rtx_code_label *.
15555 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
15556 Likewise for locals "loop_label", "label".
15557 (ix86_expand_set_or_movmem): Likewise for locals "label",
15558 "jump_around_label", "hot_label".
15559 (ix86_expand_strlensi_unroll_1): Likewise for locals
15560 "align_2_label", align_3_label", "align_4_label", "end_0_label",
15561 "end_2_label".
15562 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
15563 (void ix86_emit_i387_log1p): Likewise for locals "label1",
15564 "label2", "jump_label".
15565 (ix86_expand_sse_compare_and_jump): Likewise for return type and
15566 local "label".
15567 (ix86_expand_lfloorceil): Likewise for local "label".
15568 (ix86_expand_rint): Likewise.
15569 (ix86_expand_floorceildf_32): Likewise.
15570 (ix86_expand_floorceil): Likewise.
15571 (ix86_expand_rounddf_32): Likewise.
15572 (ix86_expand_trunc): Likewise.
15573 (ix86_expand_truncdf_32): Likewise.
15574 (ix86_expand_round): Likewise.
15575
15576 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15577
15578 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
15579 first param from rtx to rtx_insn *.
15580 (h8300_insn_length_from_table): Likewise.
15581 * config/h8300/h8300.c (F): Likewise for return type and param
15582 "x".
15583 (Fpa): Add a checked cast to rtx_insn *.
15584 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
15585 rtx_insn *.
15586 (final_prescan_insn): Likewise for param "insn".
15587 (h8300_binary_length): Likewise.
15588 (h8300_insn_length_from_table): Likewise.
15589
15590 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15591
15592 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
15593 Strengthen first param "insn" from rtx to rtx_insn *.
15594
15595 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
15596 Likewise.
15597 (frame_insn): Likewise for return type. Introduce local "insn"
15598 for use in place of local "x" for use as an rtx_insn *.
15599 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
15600 (epiphany_expand_prologue): Likewise for local "insn".
15601 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
15602 * config/epiphany/resolve-sw-modes.c
15603 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
15604 "seq".
15605
15606 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15607
15608 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
15609 param from rtx to rtx_insn *.
15610 (c6x_final_prescan_insn): Likewise for first param.
15611
15612 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
15613 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
15614 (c6x_expand_compare): Strengthen local "insns" from rtx to
15615 rtx_insn *.
15616 (c6x_get_unit_specifier): Likewise for param "insn".
15617 (c6x_print_unit_specifier_field): Likewise.
15618 (c6x_final_prescan_insn): Likewise.
15619 (emit_add_sp_const): Likewise for local "insn".
15620 (c6x_expand_prologue): Likewise.
15621
15622 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15623
15624 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
15625 param 1 from rtx to rtx_insn *.
15626 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
15627 the various locals named "insn".
15628 (expand_epilogue_reg_restore): Likewise.
15629 (frame_related_constant_load): Likewise.
15630 (add_to_reg): Likewise.
15631 (emit_link_insn): Likewise.
15632 (do_link): Likewise.
15633 (expand_interrupt_handler_prologue): Likewise.
15634 (branch_dest): Likewise for param "branch".
15635 (asm_conditional_branch): Likewise for param "insn".
15636 (gen_one_bundle): Likewise for elements of param "slot" and local
15637 "t".
15638 (bfin_gen_bundles): Likewise for locals "insn", "next" and
15639 elements of local "slot".
15640 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
15641 "queue", "next_queue", "prev".
15642 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
15643 (add_sched_insns_for_speculation): Likewise for local "insn".
15644
15645 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15646
15647 * config/avr/avr-protos.h (output_movqi): Strengthen first param
15648 from rtx to rtx_insn *.
15649 (output_movhi): Likewise.
15650 (output_movsisf): Likewise.
15651 (avr_out_tstsi): Likewise.
15652 (avr_out_tsthi): Likewise.
15653 (avr_out_tstpsi): Likewise.
15654 (avr_out_compare): Likewise.
15655 (avr_out_compare64): Likewise.
15656 (avr_out_movpsi): Likewise.
15657 (ashlqi3_out): Likewise.
15658 (ashlhi3_out): Likewise.
15659 (ashlsi3_out): Likewise.
15660 (ashrqi3_out): Likewise.
15661 (ashrhi3_out): Likewise.
15662 (ashrsi3_out): Likewise.
15663 (lshrqi3_out): Likewise.
15664 (lshrhi3_out): Likewise.
15665 (lshrsi3_out): Likewise.
15666 (avr_out_ashlpsi3): Likewise.
15667 (avr_out_ashrpsi3): Likewise.
15668 (avr_out_lshrpsi3): Likewise.
15669 (avr_out_fract): Likewise.
15670 (avr_out_sbxx_branch): Likewise.
15671 (avr_out_round): Likewise.
15672 (avr_out_xload): Likewise.
15673 (avr_out_movmem): Likewise.
15674 (adjust_insn_length): Likewise.
15675 (avr_out_lpm): Likewise.
15676 (reg_unused_after): Likewise.
15677 (_reg_unused_after): Likewise.
15678 (avr_jump_mode): Likewise for second param.
15679 (jump_over_one_insn): Likewise for first param.
15680 (avr_final_prescan_insn): Likewise.
15681 (out_shift_with_cnt): Likewise for second param.
15682
15683 * config/avr/avr.c (get_sequence_length): Likewise for param
15684 "insns" and local "insn".
15685 (emit_push_byte): Likewise for local "insn".
15686 (emit_push_sfr): Likewise.
15687 (avr_prologue_setup_frame): Likewise for locals "insn",
15688 "fp_plus_insns", "sp_plus_insns".
15689 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
15690 "sp_plus_insns".
15691 (avr_jump_mode): Likewise for param "insn".
15692 (avr_final_prescan_insn): Likewise.
15693 (avr_find_unused_d_reg): Likewise.
15694 (avr_out_lpm_no_lpmx): Likewise.
15695 (avr_out_lpm): Likewise.
15696 (avr_out_xload): Likewise.
15697 (output_movqi): Likewise.
15698 (output_movhi): Likewise.
15699 (out_movqi_r_mr): Likewise.
15700 (out_movhi_r_mr): Likewise.
15701 (out_movsi_r_mr): Likewise.
15702 (out_movsi_mr_r): Likewise.
15703 (output_movsisf): Likewise.
15704 (avr_out_load_psi): Likewise.
15705 (avr_out_store_psi): Likewise.
15706 (avr_out_movpsi): Likewise.
15707 (out_movqi_mr_r): Likewise.
15708 (avr_out_movhi_mr_r_xmega): Likewise.
15709 (out_movhi_mr_r): Likewise.
15710 (compare_condition): Likewise for param "insn" and local "next".
15711 (compare_sign_p): Likewise for param "insn".
15712 (compare_diff_p): Likewise.
15713 (compare_eq_p): Likewise.
15714 (avr_out_compare): Likewise.
15715 (avr_out_compare64): Likewise.
15716 (avr_out_tsthi): Likewise.
15717 (avr_out_tstpsi): Likewise.
15718 (avr_out_tstsi): Likewise.
15719 (out_shift_with_cnt): Likewise.
15720 (ashlqi3_out): Likewise.
15721 (ashlhi3_out): Likewise.
15722 (avr_out_ashlpsi3): Likewise.
15723 (ashlsi3_out): Likewise.
15724 (ashrqi3_out): Likewise.
15725 (ashrhi3_out): Likewise.
15726 (avr_out_ashrpsi3): Likewise.
15727 (ashrsi3_out): Likewise.
15728 (lshrqi3_out): Likewise.
15729 (lshrhi3_out): Likewise.
15730 (avr_out_lshrpsi3): Likewise.
15731 (lshrsi3_out): Likewise.
15732 (avr_out_fract): Likewise.
15733 (avr_out_round): Likewise.
15734 (avr_adjust_insn_length): Likewise.
15735 (reg_unused_after): Likewise.
15736 (_reg_unused_after): Likewise.
15737 (avr_compare_pattern): Likewise.
15738 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
15739 and locals "branch1", "branch2", "insn2", "jump".
15740 (avr_reorg): Likewise for local "insn".
15741 (avr_2word_insn_p): Likewise for param "insn".
15742 (jump_over_one_insn_p): Likewise.
15743 (avr_out_sbxx_branch): Likewise.
15744 (avr_out_movmem): Likewise.
15745
15746 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15747
15748 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
15749 param from rtx to rtx_insn *.
15750 (thumb1_final_prescan_insn): Likewise.
15751 (thumb2_final_prescan_insn): Likewise.
15752
15753 * config/arm/arm.c (emit_set_insn): Strengthen return type from
15754 rtx to rtx_insn *.
15755 (struct minipool_node): Likewise for field "insn".
15756 (dump_minipool): Likewise for param "scan".
15757 (create_fix_barrier): Likewise for local "from". Strengthen local
15758 "label" from rtx to rtx_code_label *.
15759 (push_minipool_barrier): Strengthen param "insn" from rtx to
15760 rtx_insn *.
15761 (push_minipool_fix): Likewise.
15762 (note_invalid_constants): Likewise.
15763 (thumb2_reorg): Likewise for local "insn".
15764 (arm_reorg): Likewise.
15765 (thumb2_final_prescan_insn): Likewise for param
15766 "insn" and local "first_insn".
15767 (arm_final_prescan_insn): Likewise for param "insn" and locals
15768 "start_insn", "this_insn".
15769 (arm_debugger_arg_offset): Likewise for param "insn".
15770 (thumb1_emit_multi_reg_push): Likewise for return type and local
15771 "insn".
15772 (thumb1_final_prescan_insn): Likewise for param "insn".
15773 (thumb_far_jump_used_p): Likewise for local "insn".
15774 (thumb1_expand_prologue): Likewise.
15775 (arm_expand_epilogue_apcs_frame): Likewise.
15776 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
15777 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
15778 from rtx to rtx_code_label *.
15779 (arm_split_atomic_op): Likewise for local "label".
15780 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
15781
15782 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15783
15784 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
15785 first param from rtx to rtx_insn *.
15786 (arc_verify_short): Likewise.
15787 (arc_short_long): Likewise.
15788 (arc_need_delay): Likewise.
15789
15790 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
15791 "target_insn".
15792 (arc_ccfsm_advance): Likewise for param "insn" and locals
15793 "start_insn", "this_insn".
15794 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
15795 (arc_ccfsm_post_advance): Likewise for param "insn".
15796 (arc_next_active_insn): Likewise for return type and param "insn".
15797 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
15798 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
15799 (output_short_suffix): Likewise for local "insn".
15800 (arc_final_prescan_insn): Likewise for param "insn". Remove
15801 now-redundant checked cast.
15802 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
15803 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
15804 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
15805 for use where lc_set became an insn.
15806 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
15807 rtx to rtx_insn *.
15808 (arc_get_insn_variants): Likewise for local "prev".
15809 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
15810 "next".
15811 (arc_predicate_delay_insns): Likewise for local "insn".
15812 (arc_pad_return): Likewise for local "prev". For now, add a
15813 checked cast when extracting the insn from "final_sequence".
15814 (arc_short_long): Likewise for param "insn".
15815 (arc_need_delay): Likewise for param "insn" and local "next".
15816 (arc_label_align): Likewise for locals "prev", "next".
15817
15818 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15819
15820 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
15821 "insn" from rtx to rtx_insn *.
15822 (alpha_gp_save_rtx): Likewise for local "seq".
15823 (alpha_instantiate_decls): Likewise for local "top".
15824 (get_some_local_dynamic_name): Likewise for local "insn".
15825 (alpha_does_function_need_gp): Likewise.
15826 (set_frame_related_p): Likewise for return type and for locals
15827 "seq" and "insn".
15828 (emit_frame_store_1): Likewise for local "insn".
15829 (alpha_expand_prologue): Likewise for locals "insn", "seq".
15830 (alpha_end_function): Likewise for local "insn".
15831 (alpha_output_mi_thunk_osf): Likewise.
15832 (alphaev4_insn_pipe): Likewise for param "insn".
15833 (alphaev5_insn_pipe): Likewise.
15834 (alphaev4_next_group): Likewise for return type and param 1
15835 "insn".
15836 (alphaev5_next_group): Likewise.
15837 (alpha_align_insns_1): Likewise for return type and param 1 of
15838 callback param "next_group", and for locals "i", "next", "prev",
15839 "where", "where2", "insn".
15840
15841 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
15842
15843 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
15844 rather than modifying the stmt.
15845
15846 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15847
15848 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
15849 cgraph_state conversion.
15850
15851 2014-08-25 David Malcolm <dmalcolm@redhat.com>
15852
15853 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15854 Strengthen local "insns" from rtx to rtx_insn *.
15855 (aarch64_set_frame_expr): Likewise for local "insn".
15856 (aarch64_save_or_restore_fprs): Likewise.
15857 (aarch64_save_or_restore_callee_save_registers): Likewise.
15858 (aarch64_expand_prologue): Likewise.
15859 (aarch64_expand_epilogue): Likewise.
15860 (aarch64_output_mi_thunk): Likewise.
15861 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
15862 "label2" from rtx to rtx_code_label *.
15863 (aarch64_split_atomic_op): Likewise for local "label".
15864
15865 2014-08-25 Martin Liska <mliska@suse.cz>
15866
15867 * cgraph.h (symtab_node):
15868 (bool needed_p (void)): created from decide_is_symbol_needed
15869 (bool referred_to_p (void)): created from referred_to_p
15870 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
15871 * cgraph.h (cgraph_node):
15872 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
15873 (void expand (void)): created from expand_function
15874 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
15875 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
15876 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
15877 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
15878 * cgraph.h (varpool_node):
15879 (static void add (tree decl): created from varpool_add_new_variable
15880 * cgraph.h (cgraph_edge):
15881 void remove (void);
15882 (void remove_caller (void)): created from cgraph_edge_remove_caller
15883 (void remove_callee (void)): created from cgraph_edge_remove_callee
15884 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
15885 created from cgraph_set_call_stmt
15886 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
15887 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
15888 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
15889 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
15890 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
15891 created from cgraph_speculative_call_info
15892 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
15893 int freq_scale, bool update_original)): created from cgraph_clone_edge
15894 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
15895 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
15896 (bool recursive_p (void)): created from cgraph_edge_recursive_p
15897 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
15898 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
15899 (static void rebuild_references (void)): created from cgraph_rebuild_references
15900 * cgraph.h (symbol_table):
15901 (create_reference): renamed from add_reference
15902 (maybe_create_reference): renamed from maybe_add_reference
15903 (void register_symbol (symtab_node *node)): new function
15904 (void clear_asm_symbols (void)): new function
15905 (void unregister (symtab_node *node)): new function
15906 (void release_symbol (cgraph_node *node, int uid)): new function
15907 (cgraph_node * allocate_cgraph_symbol (void)): new function
15908 (void initialize (void)): created from cgraph_init
15909 (symtab_node *first_symbol (void)):new function
15910 (asm_node *first_asm_symbol (void)):new function
15911 (symtab_node *first_defined_symbol (void)):new function
15912 (varpool_node *first_variable (void)):new function
15913 (varpool_node *next_variable (varpool_node *node)):new function
15914 (varpool_node *first_static_initializer (void)):new function
15915 (varpool_node *next_static_initializer (varpool_node *node)):new function
15916 (varpool_node *first_defined_variable (void)):new function
15917 (varpool_node *next_defined_variable (varpool_node *node)):new function
15918 (cgraph_node *first_defined_function (void)):new function
15919 (cgraph_node *next_defined_function (cgraph_node *node)):new function
15920 (cgraph_node *first_function (void)):new function
15921 (cgraph_node *next_function (cgraph_node *node)):new function
15922 (cgraph_node *first_function_with_gimple_body (void)):new function
15923 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
15924 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
15925 created from symtab_remove_unreachable_nodes
15926 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
15927 (void process_new_functions (void)): created from cgraph_process_new_functions
15928 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
15929 (bool output_variables (void)): created from varpool_node::output_variables
15930 (void output_asm_statements (void)): created from output_asm_statements
15931 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
15932 (void compile (void)): created from compile
15933 (void output_weakrefs (void)): created from output_weakrefs
15934 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
15935 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
15936 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
15937 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
15938 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
15939 created from cgraph_next_function_with_gimple_body
15940 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
15941 created from cgraph_remove_edge_removal_hook
15942 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
15943 created from cgraph_add_node_removal_hook
15944 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
15945 created from cgraph_remove_node_removal_hook
15946 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
15947 created from varpool_add_node_removal_hook
15948 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
15949 created from varpool_remove_node_removal_hook
15950 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
15951 created from cgraph_add_function_insertion_hook
15952 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
15953 created from cgraph_remove_function_insertion_hook
15954 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
15955 created from varpool_add_variable_insertion_hook
15956 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
15957 created from varpool_remove_variable_insertion_hook
15958 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
15959 created from cgraph_add_edge_duplication_hook
15960 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
15961 created from cgraph_remove_edge_duplication_hook
15962 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
15963 created from cgraph_add_node_duplication_hook
15964 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
15965 created from cgraph_remove_node_duplication_hook
15966 (void call_edge_removal_hooks (cgraph_edge *e)):
15967 created from cgraph_call_edge_removal_hooks
15968 (void call_cgraph_insertion_hooks (cgraph_node *node)):
15969 created from call_function_insertion_hooks
15970 (void call_cgraph_removal_hooks (cgraph_node *node)):
15971 created from cgraph_call_node_removal_hooks
15972 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
15973 created from cgraph_node::call_duplication_hooks
15974 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
15975 created from cgraph_call_edge_duplication_hooks
15976 (void call_varpool_removal_hooks (varpool_node *node)):
15977 created from varpool_call_node_removal_hooks
15978 (void call_varpool_insertion_hooks (varpool_node *node)):
15979 created from varpool_call_variable_insertion_hooks
15980 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
15981 created from insert_to_assembler_name_hash
15982 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
15983 created from unlink_from_assembler_name_hash
15984 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
15985 created from symtab_prevail_in_asm_name_hash
15986 (void symtab_initialize_asm_name_hash (void)):
15987 created from symtab_initialize_asm_name_hash
15988 (void change_decl_assembler_name (tree decl, tree name)):
15989 created from change_decl_assembler_name
15990 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
15991 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
15992 created from decl_assembler_name_hash
15993 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
15994 created from decl_assembler_name_equal
15995 (static hashval_t hash_node_by_assembler_name (const void *p)):
15996 created from hash_node_by_assembler_name
15997 (static int eq_assembler_name (const void *p1, const void *p2)):
15998 created from eq_assembler_name
15999
16000 2014-08-25 Marek Polacek <polacek@redhat.com>
16001
16002 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
16003
16004 2014-08-25 Petr Murzin <petr.murzin@intel.com>
16005
16006 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
16007 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
16008 SWI1248_AVX512BW mode iterator.
16009
16010 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
16011
16012 PR target/62111
16013 * config/sh/predicates.md (general_extend_operand): Disable
16014 TRUNCATE before reload completes.
16015
16016 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
16017
16018 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
16019
16020 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
16021
16022 PR target/61996
16023 * config/sh/sh.opt (musermode): Allow negative form.
16024 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
16025 targets that don't support it.
16026 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
16027 Document -mno-usermode option.
16028
16029 2014-08-24 Kito Cheng <kito@0xlab.org>
16030
16031 * system.h (CALLER_SAVE_PROFITABLE): Poison.
16032 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
16033 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
16034 * doc/tm.texi: Regenerate.
16035
16036 2014-08-24 Kito Cheng <kito@0xlab.org>
16037
16038 * ira.c: Fix typo in comment.
16039
16040 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
16041
16042 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
16043 Deprecate c++1y. Change language to reflect greater confidence in C++14.
16044
16045 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
16046
16047 PR target/62038
16048 * config/pa/pa.c (pa_output_function_epilogue): Don't set
16049 last_address when the current function is a thunk.
16050 (pa_asm_output_mi_thunk): When we don't have named sections or they
16051 are not being used, check that thunk can reach the stub table with a
16052 short branch.
16053
16054 2014-08-23 David Malcolm <dmalcolm@redhat.com>
16055
16056 * web.c (union_match_dups): Strengthen param "insn" from rtx to
16057 rtx_insn *.
16058 (pass_web::execute): Likewise for local "insn".
16059
16060 2014-08-23 David Malcolm <dmalcolm@redhat.com>
16061
16062 * var-tracking.c (struct micro_operation_def): Strengthen field
16063 "insn" from rtx to rtx_insn *.
16064 (struct emit_note_data_def): Likewise.
16065 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
16066 (vt_stack_adjustments): Likewise for local "insn".
16067 (adjust_insn): Likewise for param "insn".
16068 (val_store): Likewise.
16069 (val_resolve): Likewise.
16070 (struct count_use_info): Likewise for field "insn".
16071 (log_op_type): Likewise for param "insn".
16072 (reverse_op): Likewise.
16073 (prepare_call_arguments): Likewise.
16074 (add_with_sets): The initial param takes an insn, but we can't
16075 yet strengthen it from rtx to rtx_insn * since it's used as a
16076 cselib_record_sets_hook callback. For now rename initial param
16077 from "insn" to "uncast_insn", and introduce a local "insn" of
16078 the stronger rtx_insn * type, with a checked cast.
16079 (compute_bb_dataflow): Strengthen local "insn" from rtx to
16080 rtx_insn *.
16081 (emit_note_insn_var_location): Likewise.
16082 (emit_notes_for_changes): Likewise.
16083 (emit_notes_for_differences): Likewise.
16084 (next_non_note_insn_var_location): Likewise for return type and
16085 for param "insn".
16086 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
16087 (vt_initialize): Likewise for local "insn".
16088 (delete_debug_insns): Likewise for locals "insn" and "next".
16089
16090 2014-08-23 David Malcolm <dmalcolm@redhat.com>
16091
16092 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
16093 rtx_insn *.
16094 (mark_constant_pool): Likewise for local "insn".
16095
16096 2014-08-23 David Malcolm <dmalcolm@redhat.com>
16097
16098 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
16099 rtx to rtx_insn *.
16100 (dead_debug_promote_uses): Likewise.
16101 (dead_debug_insert_temp): Likewise.
16102
16103 2014-08-23 David Malcolm <dmalcolm@redhat.com>
16104
16105 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
16106 from const_rtx to const rtx_insn *.
16107 (store_killed_after): Likewise. Strengthen locals "last", "act"
16108 from rtx to rtx_insn *.
16109 (store_killed_before): Strengthen param "insn" from const_rtx to
16110 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
16111 (find_moveable_store): Strengthen param "insn" from rtx to
16112 rtx_insn *.
16113 (compute_store_table): Likewise for local "insn".
16114 (insert_insn_start_basic_block): Likewise for param "insn" and
16115 locals "prev", "before", "insn".
16116 (insert_store): For now, add a checked cast to rtx_insn * on the
16117 result of gen_move_insn.
16118 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
16119 to rtx_insn *.
16120 (replace_store_insn): Likewise. For now, add a checked cast to
16121 rtx_insn * on the result of gen_move_insn.
16122
16123 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16124
16125 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
16126 rtx_insn *.
16127 (expand_sjlj_dispatch_table): Likewise.
16128
16129 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16130
16131 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
16132 "insn" from rtx to rtx_insn *.
16133
16134 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16135
16136 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
16137 "insn" from rtx to rtx_insn *.
16138 (dup_block_and_redirect): Likewise for param 3 "before".
16139
16140 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
16141 from rtx to rtx_insn *.
16142 (move_insn_for_shrink_wrap): Likewise.
16143 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
16144 (dup_block_and_redirect): Likewise for param "before" and local
16145 "insn".
16146 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
16147 "end".
16148 (convert_to_simple_return): Likewise for local "start".
16149
16150 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
16151 Strengthen local "insn" from rtx to rtx_insn *, for use when
16152 invoking requires_stack_frame_p.
16153
16154 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16155
16156 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
16157 rtx_insn *.
16158 (speculate_expr): Likewise for locals "orig_insn_rtx",
16159 "spec_insn_rtx".
16160 (eq_transformed_insns): Likewise for locals "i1", "i2".
16161 (check_for_new_jump): Likewise for return type and local "end".
16162 (find_new_jump): Likewise for return type and local "jump".
16163 (sel_split_edge): Likewise for local "jump".
16164 (sel_create_recovery_block): Likewise.
16165 (sel_redirect_edge_and_branch_force): Likewise.
16166 (sel_redirect_edge_and_branch): Likewise.
16167
16168 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16169
16170 * sel-sched.c (substitute_reg_in_expr): Strengthen local
16171 "new_insn" from rtx to rtx_insn *.
16172 (create_insn_rtx_with_rhs): Likewise for return type and for local
16173 "insn_rtx".
16174 (create_insn_rtx_with_lhs): Likewise.
16175 (create_speculation_check): Likewise for local "insn_rtx".
16176 (implicit_clobber_conflict_p): Likewise for local "insn".
16177 (get_expr_cost): Likewise.
16178 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
16179 (move_cond_jump): Likewise for locals "next", "prev", "link",
16180 "head", "from", "to".
16181
16182 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16183
16184 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
16185 "next" from rtx to rtx_insn *.
16186 (find_conditional_protection): Likewise for local "next".
16187 (is_conditionally_protected): Likewise for local "insn1".
16188 (is_pfree): Likewise for locals "insn1", "insn2".
16189
16190 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16191
16192 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
16193 from rtx to rtx_insn *.
16194
16195 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
16196 locals "insn1", "insn2" from rtx to rtx_insn *.
16197 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
16198 locals "insn", "prev", "last_jump", "next_tail".
16199 (schedule_ebb): Likewise for params "head", "tail".
16200 (schedule_ebbs): Likewise for locals "tail", "head".
16201
16202 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
16203 to rtx_insn on "last_insn" in one of the invocations of
16204 schedule_ebb.
16205
16206 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16207
16208 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
16209 "elem", "insn" from rtx to rtx_insn *.
16210 (change_spec_dep_to_hard): Likewise.
16211 (get_back_and_forw_lists): Likewise for local "con".
16212 (sd_add_dep): Likewise for locals "elem", "insn".
16213 (sd_resolve_dep): Likewise for locals "pro", "con".
16214 (sd_unresolve_dep): Likewise.
16215 (sd_delete_dep): Likewise.
16216 (chain_to_prev_insn): Likewise for local "pro".
16217 (find_inc): Likewise for locals "pro", "con".
16218
16219 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16220
16221 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
16222 to rtx_insn *.
16223 (reg_set_between_p): Strengthen local "insn" from const_rtx to
16224 const rtx_insn *.
16225 (modified_between_p): Strengthen local "insn" from rtx to
16226 rtx_insn *.
16227 (remove_reg_equal_equiv_notes_for_regno): Likewise.
16228 (keep_with_call_p): Strengthen local "i2" from const_rtx to
16229 const rtx_insn *.
16230
16231 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16232
16233 * resource.c (next_insn_no_annul): Strengthen local "next" from
16234 rtx to rtx_insn *.
16235 (mark_referenced_resources): Likewise for local "insn".
16236
16237 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16238
16239 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
16240 to rtx_insn *.
16241 (find_reloads): Likewise for param 1.
16242 (subst_reloads): Likewise for sole param.
16243 (find_equiv_reg): Likwise for param 2.
16244 (regno_clobbered_p): Likwise for param 2.
16245 (reload): Likewise for param 1.
16246
16247 * caller-save.c (save_call_clobbered_regs): Strengthen local
16248 "insn" from rtx to rtx_insn *.
16249 (insert_one_insn): Likewise for local "insn".
16250
16251 * reload.c (this_insn): Likewise for this global.
16252 (find_reloads): Likewise for param "insn".
16253 (find_reloads_toplev): Likewise.
16254 (find_reloads_address): Likewise.
16255 (subst_reg_equivs): Likewise.
16256 (update_auto_inc_notes): Likewise.
16257 (find_reloads_address_1): Likewise.
16258 (find_reloads_subreg_address): Likewise.
16259 (subst_reloads): Likewise.
16260 (find_equiv_reg): Likewise, also for local "p".
16261 (regno_clobbered_p): Likewise for param "insn".
16262
16263 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
16264 array.
16265 (spill_reg_store): Likewise for the elements of this array.
16266 (remove_init_insns): Likewise for local "equiv_insn".
16267 (will_delete_init_insn_p): Likewise for param "insn".
16268 (reload): Likewise for param ""first" and local "insn".
16269 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
16270 rtx_insn *.
16271 (calculate_elim_costs_all_insns): Likewise.
16272 (delete_caller_save_insns): Likewise.
16273 (spill_failure): Likewise for param "insn".
16274 (delete_dead_insn): Likewise.
16275 (set_label_offsets): Likewise.
16276 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
16277 "prev_insn".
16278 (elimination_costs_in_insn): Likewise for param "insn".
16279 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
16280 when referring to an insn.
16281 (set_initial_label_offsets): Likewise.
16282 (set_offsets_for_label): Strengthen param "insn" from rtx to
16283 rtx_insn *.
16284 (init_eliminable_invariants): Likewise for param "first" and local
16285 "insn".
16286 (fixup_eh_region_note): Likewise for param "insn".
16287 (reload_as_needed): Likewise for locals "prev", "insn",
16288 "old_next", "old_prev", "next".
16289 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
16290 "last".
16291 (reload_inheritance_insn): Strengthen elements of this array from
16292 rtx to rtx_insn *.
16293 (failed_reload): Likewise for param "insn".
16294 (choose_reload_regs): Likewise for local "insn". Replace use of
16295 NULL_RTX with NULL when referring to an insn.
16296 (input_reload_insns): Strengthen elements of this array from rtx
16297 to rtx_insn *.
16298 (other_input_address_reload_insns): Likewise for this global.
16299 (other_input_reload_insns): Likewise for this global.
16300 (input_address_reload_insns): Likwise for the elements of this
16301 array.
16302 (inpaddr_address_reload_insns): Likwise for the elements of this
16303 array.
16304 (output_reload_insns): Likewise for the elements of this array.
16305 (output_address_reload_insns): Likewise for the elements of this
16306 array.
16307 (outaddr_address_reload_insns): Likewise for the elements of this
16308 array.
16309 (operand_reload_insns): Likewise for this global.
16310 (other_operand_reload_insns): Likewise for this global.
16311 (other_output_reload_insns): Likewise for the elements of this
16312 array.
16313 (new_spill_reg_store): Likewise for the elements of this
16314 array.
16315 (emit_input_reload_insns): Likewise for locals "insn", "temp".
16316 Strengthen local "where" from rtx * to rtx_insn **.
16317 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
16318 from rtx to rtx_insn *.
16319 (do_input_reload): Likewise for local "insn".
16320 (do_output_reload): Likewise for local "insn".
16321 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
16322 (emit_insn_if_valid_for_reload): Likewise for return type and local
16323 "last". Add checked cast to rtx_insn when returning "insn" since
16324 this has been through emit_insn.
16325 (gen_reload): Strengthen return type and locals "last", "insn", "set"
16326 from rtx to rtx_insn *. Add checked cast to rtx_insn when
16327 returning "insn" since it's been through
16328 emit_insn_if_valid_for_reload at this point.
16329 (delete_output_reload): Strengthen param "insn" and locals
16330 "output_reload_insn", "i2" from rtx to rtx_insn *.
16331 (delete_address_reloads): Likewise for params "dead_insn",
16332 "current_insn" and locals "prev", "next".
16333 (delete_address_reloads_1): Likewise for params "dead_insn",
16334 "current_insn" and locals "prev", "i2".
16335 (inc_for_reload): Likewise for locals "last", "add_insn".
16336 (add_auto_inc_notes): Strengthen param "insn" from rtx to
16337 rtx_insn *.
16338
16339 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
16340 param of this duplicate of the prototype from reload.h
16341
16342 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16343
16344 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
16345 rtx to rtx_insn *.
16346 (regstat_bb_compute_calls_crossed): Likewise.
16347
16348 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16349
16350 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
16351 to rtx_insn *.
16352 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
16353 with an insn.
16354 (regrename_analyze): Strengthen local "insn" from rtx to
16355 rtx_insn *.
16356 (scan_rtx_reg): Likewise for param "insn".
16357 (scan_rtx_address): Likewise.
16358 (scan_rtx): Likewise.
16359 (restore_operands): Likewise.
16360 (record_out_operands): Likewise.
16361 (build_def_use): Likewise for local "insn". Replace use of
16362 NULL_RTX with NULL when dealing with an insn.
16363
16364 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16365
16366 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
16367 * reginfo.c (reg_scan): Likewise, also for local "insn".
16368 (reg_scan_mark_refs): Likewise for param "insn".
16369 (init_subregs_of_mode): Likewise for local "insn".
16370
16371 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16372
16373 * regcprop.c (struct queued_debug_insn_change): Strengthen field
16374 "insn" from rtx to rtx_insn *.
16375 (replace_oldest_value_reg): Likewise for param "insn".
16376 (replace_oldest_value_addr): Likewise.
16377 (replace_oldest_value_mem): Likewise.
16378 (apply_debug_insn_changes): Likewise for local "last_insn".
16379 (copyprop_hardreg_forward_1): Likewise for local "insn".
16380
16381 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16382
16383 * reg-stack.c (next_flags_user): Strengthen return type and param
16384 "insn" from rtx to rtx_insn *.
16385 (straighten_stack): Likewise for param "insn".
16386 (check_asm_stack_operands): Likewise.
16387 (remove_regno_note): Likewise.
16388 (emit_pop_insn): Likewise for return type, param "insn", local
16389 "pop_insn".
16390 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
16391 "limit" from rtx to rtx_insn *.
16392 (swap_to_top): Likewise for param "insn".
16393 (move_for_stack_reg): Likewise.
16394 (move_nan_for_stack_reg): Likewise.
16395 (swap_rtx_condition): Likewise.
16396 (compare_for_stack_reg): Likewise.
16397 (subst_all_stack_regs_in_debug_insn): Likewise.
16398 (subst_stack_regs_pat): Likewise, and local "insn2".
16399 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
16400 rtx_insn *.
16401 (subst_stack_regs): Likewise.
16402 (change_stack): Likewise.
16403 (convert_regs_1): Likewise for locals "insn", "next".
16404
16405 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16406
16407 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
16408 rtx_insn *.
16409 (combine_set_extension): Likewise for param "curr_insn".
16410 (transform_ifelse): Likewise for param "def_insn".
16411 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
16412 from vec<rtx> * to vec<rtx_insn *> *.
16413 (is_cond_copy_insn): Likewise for param "insn".
16414 (struct ext_state): Strengthen the four vec fields from vec<rtx>
16415 to vec<rtx_insn *>.
16416 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
16417 local "def_insn" from rtx to rtx_insn *.
16418 (get_sub_rtx): Likewise for param "def_insn".
16419 (merge_def_and_ext): Likewise.
16420 (combine_reaching_defs): Likewise.
16421 (add_removable_extension): Likewise for param "insn".
16422 (find_removable_extensions): Likewise for local "insn".
16423 (find_and_remove_re): Likewise for locals "curr_insn" and
16424 "def_insn". Strengthen locals "reinsn_del_list" and
16425 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
16426
16427 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16428
16429 * recog.c (split_insn): Strengthen param "insn" and locals
16430 "first", "last" from rtx to rtx_insn *.
16431 (split_all_insns): Likewise for locals "insn", "next".
16432 (split_all_insns_noflow): Likewise.
16433
16434 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16435
16436 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
16437 const rtx_insn *.
16438 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
16439 (debug_rtx_find): Likewise for param 1 "x".
16440
16441 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
16442 const_rtx to const rtx_insn *. Likewise for local "insn".
16443 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
16444 (debug_rtx_find): Likewise for param 1 "x".
16445 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
16446 from const_rtx to const rtx_insn * within the appropriate cases of
16447 the switch statement.
16448
16449 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
16450 Strengthen local "insns" from rtx to rtx_insn * since this is
16451 passed to a call to debug_rtx_list.
16452
16453 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16454
16455 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
16456 to rtx_insn *.
16457
16458 * function.c (stack_protect_epilogue): Add checked cast to
16459 rtx_insn for now when invoking predict_insn_def.
16460
16461 * predict.c (predict_insn): Strengthen param "insn" from rtx to
16462 rtx_insn *.
16463 (predict_insn_def): Likewise.
16464 (rtl_predict_edge): Likewise for local "last_insn".
16465 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
16466 const rtx_insn *.
16467 (combine_predictions_for_insn): Strengthen param "insn" from rtx
16468 to rtx_insn *.
16469 (bb_estimate_probability_locally): Likewise for local "last_insn".
16470 (expensive_function_p): Likewise for local "insn".
16471
16472 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
16473 local "jmp", since this is used when invoking predict_insn_def.
16474
16475 2014-08-22 Marek Polacek <polacek@redhat.com>
16476
16477 PR c++/62199
16478 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
16479
16480 2014-08-22 Marek Polacek <polacek@redhat.com>
16481
16482 PR c/61271
16483 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
16484 a comparison in parens.
16485 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
16486 in parens.
16487
16488 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16489
16490 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
16491 rtx_insn *.
16492
16493 * cprop.c (fis_get_condition): Likewise.
16494
16495 * postreload.c (reload_cse_regs): Likewise for param "first".
16496 (reload_cse_simplify): Likewise for param "insn".
16497 (reload_cse_regs_1): Likewise for local "insn".
16498 (reload_cse_simplify_set): Likewise for param "insn".
16499 (reload_cse_simplify_operands): Likewise.
16500 (struct reg_use): Likewise for field "insn".
16501 (reload_combine_purge_insn_uses): Likewise for param "insn".
16502 (fixup_debug_insns): Likewise for params "from", "to" and local
16503 "insn".
16504 (try_replace_in_use): Likewise for local "use_insn".
16505 (reload_combine_recognize_const_pattern): Likewise for param
16506 "insn" and locals "add_moved_after_insn", "use_insn".
16507 (reload_combine_recognize_pattern): Likewise for param "insn" and
16508 local "prev".
16509 (reload_combine): Likewise for locals "insn", "prev".
16510 (reload_combine_note_use): Likewise for param "insn".
16511 (move2add_use_add2_insn): Likewise.
16512 (move2add_use_add3_insn): Likewise.
16513 (reload_cse_move2add): Likewise, also for local "next".
16514 (move2add_note_store): Likewise for local "insn".
16515
16516 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16517
16518 * postreload-gcse.c (struct occr): Strengthen field "insn" from
16519 rtx to rtx_insn *.
16520 (struct unoccr): Likewise.
16521 (struct modifies_mem): Likewise.
16522 (alloc_mem): Likewise for local "insn".
16523 (insert_expr_in_table): Likewise for param "insn".
16524 (dump_expr_hash_table_entry): Likewise for local "insn".
16525 (oprs_unchanged_p): Likewise for param "insn".
16526 (load_killed_in_block_p): Likewise for local "setter".
16527 (record_last_reg_set_info): Likewise for param "insn".
16528 (record_last_reg_set_info_regno): Likewise.
16529 (record_last_mem_set_info): Likewise.
16530 (record_last_set_info): Likewise for local "last_set_insn".
16531 (record_opr_changes): Likewise for param "insn".
16532 (hash_scan_set): Likewise.
16533 (compute_hash_table): Likewise for local "insn".
16534 (get_avail_load_store_reg): Likewise for param "insn".
16535 (eliminate_partially_redundant_load): Likewise, also for locals
16536 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
16537 RTX for insns.
16538 (eliminate_partially_redundant_loads): Likewise for local "insn".
16539
16540 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16541
16542 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
16543 rtx to rtx_insn *.
16544 (expand_binop): Likewise for locals "entry_last", "last", "insns"
16545 (expand_twoval_unop): Likewise for locals entry_last", "last".
16546 (expand_twoval_binop): Likewise.
16547 (expand_twoval_binop_libfunc): Likewise for local "insns".
16548 (widen_leading): Likewise for local "last".
16549 (expand_doubleword_clz): Likewise for local "seq". Strengthen
16550 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
16551 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
16552 (expand_parity): Likewise for locals "last" and "seq".
16553 (expand_ffs): Likewise for local "seq". Strengthen local
16554 "nonzero_label" from rtx to rtx_code_label *.
16555 (expand_absneg_bit): Strengthen local "insns" from rtx to
16556 rtx_insn *.
16557 (expand_unop_direct): Likewise for local "last".
16558 (expand_unop): Likewise for locals "last", "insns".
16559 (expand_abs_nojump): Likewise for local "last".
16560 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
16561 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
16562 rtx_insn *.
16563 (expand_copysign_absneg): Strengthen local "label" from rtx to
16564 rtx_code_label *.
16565 (expand_copysign_bit): Strengthen local "insns" from rtx to
16566 rtx_insn *.
16567 (struct no_conflict_data): Likewise for fields "first", "insn".
16568 (emit_libcall_block_1): Likewise for param "insns" and locals
16569 "next", "last", "insn".
16570 (emit_libcall_block): For now, add a checked cast to rtx_insn *
16571 on "insns" when invoking emit_libcall_block_1. Ultimately we
16572 want to strengthen insns itself.
16573 (prepare_cmp_insn): Strengthen local "last" from rtx to
16574 rtx_insn *.
16575 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
16576 (prepare_float_lib_cmp): Likewise for local "insns".
16577 (emit_conditional_move): Likewise for local "last".
16578 (emit_conditional_add): Likewise.
16579 (have_sub2_insn): Likewise for local "seq".
16580 (expand_float): Likewise for local "insns". Strengthen locals
16581 "label", "neglabel" from rtx to rtx_code_label *.
16582 (expand_fix): Likewise for locals "last", "insn", "insns" (to
16583 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
16584 (expand_fixed_convert): Likewise for local "insns" (to
16585 rtx_insn *).
16586 (expand_sfix_optab): Likewise for local "last".
16587 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
16588 to rtx_code_label *.
16589 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
16590 from rtx to rtx_insn *.
16591 (expand_atomic_fetch_op): Likewise for local "insn".
16592 (maybe_legitimize_operand_same_code): Likewise for local "last".
16593 (maybe_legitimize_operands): Likewise.
16594
16595 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16596
16597 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
16598 "insn" from rtx to rtx_insn *.
16599 (ps_rtl_insn): Likewise for return type.
16600 (doloop_register_get): Likewise for params "head", "tail" and
16601 locals "insn", "first_insn_not_to_check".
16602 (schedule_reg_move): Likewise for local "this_insn".
16603 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
16604 of gen_move_insn for now.
16605 (reset_sched_times): Strengthen local "insn" from rtx to
16606 rtx_insn *.
16607 (permute_partial_schedule): Likewise.
16608 (duplicate_insns_of_cycles): Likewise for local "u_insn".
16609 (dump_insn_location): Likewise for param "insn".
16610 (loop_canon_p): Likewise for local "insn".
16611 (sms_schedule): Likewise.
16612 (print_partial_schedule): Likewise.
16613 (ps_has_conflicts): Likewise.
16614
16615 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16616
16617 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
16618 "tailp" from rtx * to rtx_insn **.
16619
16620 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
16621 from rtx to rtx_insn *.
16622 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
16623 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
16624 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
16625 rtx to rtx_insn *.
16626 * modulo-sched.c (const_iteration_count): Strengthen return type
16627 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
16628 use of NULL_RTX with NULL when working with insns.
16629 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
16630 to rtx_insn *.
16631 (sms_schedule): Likewise.
16632 * sched-rgn.c (init_ready_list): Likewise, also for locals
16633 "src_head" and "src_next_tail".
16634 (compute_block_dependences): Likewise.
16635 (free_block_dependencies): Likewise.
16636 (debug_rgn_dependencies): Likewise.
16637 (free_rgn_deps): Likewise.
16638 (compute_priorities): Likewise.
16639 (schedule_region): Likewise.
16640 * sel-sched.c (find_ebb_boundaries): Likewise.
16641
16642 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
16643 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
16644
16645 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16646
16647 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
16648 from rtx to rtx_insn *.
16649 (new_seginfo): Likewise for param "insn".
16650 (create_pre_exit): Likewise for locals "last_insn",
16651 "before_return_copy", "return_copy".
16652 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
16653 "mode_set".
16654
16655 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16656
16657 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
16658 from rtx to rtx_insn *.
16659 (lra_push_insn): Likewise for 1st param.
16660 (lra_push_insn_and_update_insn_regno_info): Likewise.
16661 (lra_pop_insn): Likewise for return type.
16662 (lra_invalidate_insn_data): Likewise for 1st param.
16663 (lra_set_insn_deleted): Likewise.
16664 (lra_delete_dead_insn): Likewise.
16665 (lra_process_new_insns): Likewise for first 3 params.
16666 (lra_set_insn_recog_data): Likewise for 1st param.
16667 (lra_update_insn_recog_data): Likewise.
16668 (lra_set_used_insn_alternative): Likewise.
16669 (lra_invalidate_insn_regno_info): Likewise.
16670 (lra_update_insn_regno_info): Likewise.
16671 (lra_former_scratch_operand_p): Likewise.
16672 (lra_eliminate_regs_1): Likewise.
16673 (lra_get_insn_recog_data): Likewise.
16674
16675 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
16676 rtx to rtx_insn *.
16677
16678 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
16679 "mv1" and "mv2".
16680 (substitute_within_insn): New.
16681 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
16682 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
16683 Replace call to "substitute" with call to substitute_within_insn.
16684
16685 * lra-constraints.c (curr_insn): Strengthen from rtx to
16686 rtx_insn *.
16687 (get_equiv_with_elimination): Likewise for param "insn".
16688 (match_reload): Strengthen params "before" and "after" from rtx *
16689 to rtx_insn **.
16690 (emit_spill_move): Likewise for return type. Add a checked cast
16691 to rtx_insn * on result of gen_move_insn for now.
16692 (check_and_process_move): Likewise for local "before". Replace
16693 NULL_RTX with NULL when referring to insns.
16694 (process_addr_reg): Strengthen params "before" and "after" from
16695 rtx * to rtx_insn **.
16696 (insert_move_for_subreg): Likewise.
16697 (simplify_operand_subreg): Strengthen locals "before" and "after"
16698 from rtx to rtx_insn *.
16699 (process_address_1): Strengthen params "before" and "after" from
16700 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
16701 rtx to rtx_insn *.
16702 (process_address): Strengthen params "before" and "after" from
16703 rtx * to rtx_insn **.
16704 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
16705 (curr_insn_transform): Strengthen locals "before" and "after"
16706 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
16707 to insns.
16708 (loc_equivalence_callback): Update cast of "data", changing
16709 resulting type from rtx to rtx_insn *.
16710 (substitute_pseudo_within_insn): New.
16711 (inherit_reload_reg): Strengthen param "insn" from rtx to
16712 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
16713 NULL when referring to insns. Add a checked cast to rtx_insn *
16714 when using usage_insn to invoke lra_update_insn_regno_info.
16715 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
16716 likewise for locals "restore", "save". Add checked casts to
16717 rtx_insn * when using usage_insn to invoke
16718 lra_update_insn_regno_info and lra_process_new_insns. Replace
16719 NULL_RTX with NULL when referring to insns.
16720 (split_if_necessary): Strengthen param "insn" from rtx to
16721 rtx_insn *.
16722 (update_ebb_live_info): Likewise for params "head", "tail" and local
16723 "prev_insn".
16724 (get_last_insertion_point): Likewise for return type and local "insn".
16725 (get_live_on_other_edges): Likewise for local "last".
16726 (inherit_in_ebb): Likewise for params "head", "tail" and locals
16727 "prev_insn", "next_insn", "restore".
16728 (remove_inheritance_pseudos): Likewise for local "prev_insn".
16729 (undo_optional_reloads): Likewise for local "insn".
16730
16731 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
16732 "insn".
16733 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
16734 insns.
16735 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
16736 rtx_insn *.
16737 (spill_pseudos): Likewise for local "insn".
16738 (init_elimination): Likewise.
16739 (process_insn_for_elimination): Likewise for param "insn".
16740
16741 * lra-lives.c (curr_insn): Likewise.;
16742
16743 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
16744 (remove_pseudos): Likewise for param "insn".
16745 (spill_pseudos): Likewise for local "insn".
16746 (lra_final_code_change): Likewise for locals "insn", "curr".
16747
16748 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
16749 (lra_set_insn_deleted): Likewise.
16750 (lra_delete_dead_insn): Likewise, and for local "prev".
16751 (new_insn_reg): Likewise for param "insn".
16752 (lra_set_insn_recog_data): Likewise.
16753 (lra_update_insn_recog_data): Likewise.
16754 (lra_set_used_insn_alternative): Likewise.
16755 (get_insn_freq): Likewise.
16756 (invalidate_insn_data_regno_info): Likewise.
16757 (lra_invalidate_insn_regno_info): Likewise.
16758 (lra_update_insn_regno_info): Likewise.
16759 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
16760 vec<rtx_insn *>.
16761 (lra_push_insn_1): Strengthen param "insn" from rtx to
16762 rtx_insn *.
16763 (lra_push_insn): Likewise.
16764 (lra_push_insn_and_update_insn_regno_info): Likewise.
16765 (lra_pop_insn): Likewise for return type and local "insn".
16766 (push_insns): Likewise for params "from", "to", and local "insn".
16767 (setup_sp_offset): Likewise for params "from", "last" and locals
16768 "before", "insn".
16769 (lra_process_new_insns): Likewise for params "insn", "before",
16770 "after" and local "last".
16771 (struct sloc): Likewise for field "insn".
16772 (lra_former_scratch_operand_p): Likewise for param "insn".
16773 (remove_scratches): Likewise for locals "insn", "last".
16774 (check_rtl): Likewise for local "insn".
16775 (add_auto_inc_notes): Likewise for param "insn".
16776 (update_inc_notes): Likewise for local "insn".
16777 (lra): Replace NULL_RTX with NULL when referring to insn.
16778
16779 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16780
16781 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
16782 to rtx_insn *.
16783 (resolve_reg_notes): Likewise.
16784 (resolve_simple_move): Likewise for return type, param "insn", and
16785 locals "insns", "minsn".
16786 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
16787 (resolve_use): Likewise.
16788 (resolve_debug): Likewise.
16789 (find_decomposable_shift_zext): Likewise.
16790 (resolve_shift_zext): Likewise for return type, param "insn", and
16791 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
16792 (decompose_multiword_subregs): Likewise for local "insn",
16793 "orig_insn", "decomposed_shift", "end".
16794
16795 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16796
16797 * basic-block.h (basic_block split_edge_and_insert): Strengthen
16798 param "insns" from rtx to rtx_insn *.
16799
16800 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
16801 rtx to rtx_insn *.
16802 (struct iv_to_split): Likewise.
16803 (loop_exit_at_end_p): Likewise for local "insn".
16804 (split_edge_and_insert): Likewise for param "insns".
16805 (compare_and_jump_seq): Likewise for return type, param "cinsn",
16806 and locals "seq", "jump".
16807 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
16808 "branch_code"; update invocations of compare_and_jump_seq to
16809 eliminate NULL_RTX in favor of NULL.
16810 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
16811 rtx to rtx_insn *.
16812 (reset_debug_uses_in_loop): Likewise.
16813 (analyze_insn_to_expand_var): Likewise for param "insn".
16814 (analyze_iv_to_split_insn): Likewise.
16815 (analyze_insns_in_loop): Likewise for local "insn".
16816 (insert_base_initialization): Likewise for param
16817 "insn" and local "seq".
16818 (split_iv): Likewise for param "insn" and local "seq".
16819 (expand_var_during_unrolling): Likewise for param "insn".
16820 (insert_var_expansion_initialization): Likewise for local "seq".
16821 (combine_var_copies_in_loop_exit): Likewise.
16822 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
16823 "insn".
16824 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
16825 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
16826 "next".
16827
16828 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16829
16830 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
16831 rtx_insn *.
16832 (iv_analyze_result): Likewise.
16833 (iv_analyze_expr): Likewise.
16834 (biv_p): Likewise.
16835
16836 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
16837 local "def_insn" from rtx to rtx_insn *.
16838 (get_biv_step_1): Likewise for local "insn".
16839 (iv_analyze_expr): Likewise for param "insn".
16840 (iv_analyze_def): Likewise for local "insn".
16841 (iv_analyze_op): Likewise for param "insn".
16842 (iv_analyze): Likewise.
16843 (iv_analyze_result): Likewise.
16844 (biv_p): Likewise.
16845 (suitable_set_for_replacement): Likewise.
16846 (simplify_using_initial_values): Likewise for local "insn".
16847 (iv_number_of_iterations): Likewise for param "insn".
16848 (check_simple_exit): Add checked cast to rtx_insn when invoking
16849 iv_number_of_iterations for now (until get_condition is
16850 strengthened).
16851
16852 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
16853 "insn" from rtx to rtx_insn *.
16854 (analyze_insns_in_loop): Likewise for local "insn".
16855
16856 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16857
16858 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
16859 to rtx_insn *.
16860 (struct invariant): Likewise.
16861 (hash_invariant_expr_1): Likewise for param "insn".
16862 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
16863 (find_exits): Likewise for local "insn".
16864 (create_new_invariant): Likewise for param "insn".
16865 (check_dependencies): Likewise.
16866 (find_invariant_insn): Likewise.
16867 (record_uses): Likewise.
16868 (find_invariants_insn): Likewise.
16869 (find_invariants_bb): Likewise for local "insn".
16870 (get_pressure_class_and_nregs): Likewise for param "insn".
16871 (calculate_loop_reg_pressure): Likewise for local "insn".
16872
16873 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16874
16875 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
16876 to rtx_insn *.
16877 (add_test): Likewise for locals "seq", "jump".
16878 (doloop_modify): Likewise for locals "sequence", "jump_insn".
16879
16880 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16881
16882 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
16883 rtx_insn *.
16884 (rebuild_jump_labels_chain): Likewise for param "chain".
16885
16886 * cfgexpand.c (pass_expand::execute): Add checked cast to
16887 rtx_insn * when calling rebuild_jump_labels_chain in region where
16888 we know e->insns.r is non-NULL.
16889
16890 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
16891 rtx_insn *.
16892 (rebuild_jump_labels): Likewise.
16893 (rebuild_jump_labels_chain): Likewise for param "chain".
16894 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
16895 (init_label_info): Likewise for param "f".
16896 (maybe_propagate_label_ref): Likewise for params "jump_insn",
16897 "prev_nonjump_insn".
16898 (mark_all_labels): Likewise for param "f" and locals "insn",
16899 "prev_nonjump_insn".
16900
16901 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16902
16903 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
16904 from rtx to rtx_insn *insn.
16905 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
16906 (ira_add_allocno_copy): Likewise.
16907 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
16908 rtx to rtx_insn *.
16909 (ira_create_copy): Likewise.
16910 (ira_add_allocno_copy): Likewise.
16911 (create_bb_allocnos): Likewise for local "insn".
16912 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
16913 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
16914 process_regs_for_copy for rtx_insn * param.
16915 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
16916 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
16917 process_regs_for_copy for rtx_insn * param.
16918 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
16919 * ira-costs.c (record_reg_classes): Likewise for param "insn".
16920 (record_operand_costs): Likewise.
16921 (scan_one_insn): Likewise for return type, and for param "insn".
16922 (process_bb_for_costs): Likewise for local "insn".
16923 (process_bb_node_for_hard_reg_moves): Likewise.
16924 * ira-emit.c (struct move): Likewise for field "insn".
16925 (create_move): Eliminate use of NULL_RTX when dealing with an
16926 rtx_insn *.
16927 (emit_move_list): Strengthen return type and locals "result",
16928 "insn" from rtx to rtx_insn *insn.
16929 (emit_moves): Likewise for locals "insns", "tmp".
16930 (ira_emit): Likewise for local "insn".
16931 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
16932 "insn".
16933 (find_call_crossed_cheap_reg): Likewise.
16934 (process_bb_node_lives): Likewise for local "insn".
16935 * ira.c (decrease_live_ranges_number): Likewise.
16936 (compute_regs_asm_clobbered): Likewise.
16937 (build_insn_chain): Likewise.
16938 (find_moveable_pseudos): Likewise, also locals "def_insn",
16939 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
16940 to rtx_insn **. Add a checked cast when assigning from
16941 "closest_use" into closest_uses array in a region where we know
16942 it's a non-NULL insn.
16943 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
16944 to rtx_insn *.
16945 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
16946 "last_interesting_insn", "uin".
16947 (move_unallocated_pseudos): Likewise for locals "def_insn",
16948 "move_insn", "newinsn".
16949
16950 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16951
16952 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
16953 Strengthen locals "done_label", "do_error" from rtx to
16954 rtx_code_label *.
16955 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
16956 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
16957 rtx_code_label *.
16958 (ubsan_expand_si_overflow_neg_check): Likewise for locals
16959 "done_label", "do_error" to rtx_code_label * and local "last" to
16960 rtx_insn *.
16961 (ubsan_expand_si_overflow_mul_check): Likewise for locals
16962 "done_label", "do_error", "large_op0", "small_op0_large_op1",
16963 "one_small_one_large", "both_ops_large", "after_hipart_neg",
16964 "after_lopart_neg", "do_overflow", "hipart_different" to
16965 rtx_code_label * and local "last" to rtx_insn *.
16966
16967 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16968
16969 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
16970 "insn" and "move_insn" from rtx to rtx_insn *.
16971
16972 2014-08-22 David Malcolm <dmalcolm@redhat.com>
16973
16974 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
16975 rtx_insn *.
16976 (cheap_bb_rtx_cost_p): Likewise.
16977 (first_active_insn): Likewise for return type and local "insn".
16978 (last_active_insn): Likewise for return type and locals "insn",
16979 "head".
16980 (struct noce_if_info): Likewise for fields "jump", "insn_a",
16981 "insn_b".
16982 (end_ifcvt_sequence): Likewise for return type and locals "insn",
16983 "seq".
16984 (noce_try_move): Likewise for local "seq".
16985 (noce_try_store_flag): Likewise.
16986 (noce_try_store_flag_constants): Likewise.
16987 (noce_try_addcc): Likewise.
16988 (noce_try_store_flag_mask): Likewise.
16989 (noce_try_cmove): Likewise.
16990 (noce_try_minmax): Likewise.
16991 (noce_try_abs): Likewise.
16992 (noce_try_sign_mask): Likewise.
16993 (noce_try_bitop): Likewise.
16994 (noce_can_store_speculate_p): Likewise for local "insn".
16995 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
16996 seq".
16997 (check_cond_move_block): Likewise for local "insn".
16998 (cond_move_convert_if_block): Likewise.
16999 (cond_move_process_if_block): Likewise for locals "seq",
17000 "loc_insn".
17001 (noce_find_if_block): Likewise for local "jump".
17002 (merge_if_block): Likewise for local "last".
17003 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
17004 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
17005 (block_has_only_trap): Likewise for return type and local "trap".
17006 (find_if_case_1): Likewise for local "jump".
17007 (dead_or_predicable): Likewise for locals "head", "end", "jump",
17008 "insn".
17009
17010 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17011
17012 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
17013 "last_insn", "loop_end" from rtx to rtx_insn *.
17014
17015 * hw-doloop.c (scan_loop): Likewise for local "insn".
17016 (discover_loop): Likewise for param "tail_insn".
17017 (discover_loops): Likewise for local "tail".
17018
17019 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
17020 cast to rtx_insn * when assigning from an rtx local to a
17021 hwloop_info's "last_insn" field.
17022
17023 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17024
17025 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
17026 (add_delay_dependencies): Strengthen local "pro" from rtx to
17027 rtx_insn *.
17028 (recompute_todo_spec): Likewise.
17029 (dep_cost_1): Likewise for locals "insn", "used".
17030 (schedule_insn): Likewise for local "dbg".
17031 (schedule_insn): Likewise for locals "pro", "next".
17032 (unschedule_insns_until): Likewise for local "con".
17033 (restore_pattern): Likewise for local "next".
17034 (estimate_insn_tick): Likewise for local "pro".
17035 (resolve_dependencies): Likewise for local "next".
17036 (fix_inter_tick): Likewise.
17037 (fix_tick_ready): Likewise for local "pro".
17038 (add_to_speculative_block): Likewise for locals "check", "twin",
17039 "pro".
17040 (sched_extend_bb): Likewise for locals "end", "insn".
17041 (init_before_recovery): Likewise for local "x".
17042 (sched_create_recovery_block): Likewise for local "barrier".
17043 (create_check_block_twin): Likewise for local "pro".
17044 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
17045 "consumer".
17046 (unlink_bb_notes): Update for change to type of bb_header.
17047 Strengthen locals "prev", "label", "note", "next" from rtx to
17048 rtx_insn *.
17049 (clear_priorities): Likewise for local "pro".
17050
17051 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17052
17053 * gcse.c (struct occr): Strengthen field "insn" from rtx to
17054 rtx_insn *.
17055 (test_insn): Likewise for this global.
17056 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
17057 const rtx_insn *.
17058 (oprs_anticipatable_p): Likewise.
17059 (oprs_available_p): Likewise.
17060 (insert_expr_in_table): Strengthen param "insn" from rtx to
17061 rtx_insn *.
17062 (hash_scan_set): Likewise.
17063 (hash_scan_clobber): Likewise.
17064 (hash_scan_call): Likewise.
17065 (hash_scan_insn): Likewise.
17066 (compute_hash_table_work): Likewise for local "insn".
17067 (process_insert_insn): Likewise for return type and local "pat".
17068 (insert_insn_end_basic_block): Likewise for locals "new_insn",
17069 "pat", "pat_end", "maybe_cc0_setter".
17070 (pre_edge_insert): Likewise for local "insn".
17071 (pre_insert_copy_insn): Likewise for param "insn".
17072 (pre_insert_copies): Likewise for local "insn".
17073 (struct set_data): Likewise for field "insn".
17074 (single_set_gcse): Likewise for param "insn".
17075 (gcse_emit_move_after): Likewise.
17076 (pre_delete): Likewise for local "insn".
17077 (update_bb_reg_pressure): Likewise for param "from" and local
17078 "insn".
17079 (should_hoist_expr_to_dom): Likewise for param "from".
17080 (hoist_code): Likewise for local "insn".
17081 (get_pressure_class_and_nregs): Likewise for param "insn".
17082 (calculate_bb_reg_pressure): Likewise for local "insn".
17083 (compute_ld_motion_mems): Likewise.
17084
17085 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17086
17087 * genpeep.c (main): Rename param back from "uncast_ins1" to
17088 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
17089 checked cast.
17090
17091 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
17092
17093 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
17094
17095 PR target/62195
17096 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
17097 documentation to state it is only for VSX operations.
17098
17099 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
17100 constraint only active if VSX.
17101
17102 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
17103 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
17104 (lfiwzx): Likewise.
17105
17106 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17107
17108 * fwprop.c (single_def_use_dom_walker::before_dom_children):
17109 Strengthen local "insn" from rtx to rtx_insn *.
17110 (use_killed_between): Likewise for param "target_insn".
17111 (all_uses_available_at): Likewise for param "target_insn" and
17112 local "next".
17113 (update_df_init): Likewise for params "def_insn", "insn".
17114 (update_df): Likewise for param "insn".
17115 (try_fwprop_subst): Likewise for param "def_insn" and local
17116 "insn".
17117 (free_load_extend): Likewise for param "insn".
17118 (forward_propagate_subreg): Likewise for param "def_insn" and
17119 local "use_insn".
17120 (forward_propagate_asm): Likewise for param "def_insn" and local
17121 "use_insn".
17122 (forward_propagate_and_simplify): Likewise for param "def_insn"
17123 and local "use_insn".
17124 (forward_propagate_into): Likewise for locals "def_insn" and
17125 "use_insn".
17126
17127 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17128
17129 * function.c (emit_initial_value_sets): Strengthen local "seq"
17130 from rtx to rtx_insn *.
17131 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
17132 local "seq".
17133 (instantiate_virtual_regs): Likewise for local "insn".
17134 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
17135 (reorder_blocks_1): Likewise for param "insns" and local "insn".
17136 (expand_function_end): Likewise for locals "insn" and "seq".
17137 (epilogue_done): Likewise for local "insn".
17138 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
17139 "last", "trial".
17140 (reposition_prologue_and_epilogue_notes): Likewise for locals
17141 "insn", "last", "note", "first".
17142 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
17143 (pass_match_asm_constraints::execute): Likewise for local "insn".
17144
17145 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17146
17147 * output.h (final_scan_insn): Strengthen return type from rtx to
17148 rtx_insn *.
17149 (final_forward_branch_p): Likewise for param.
17150 (current_output_insn): Likewise for this global.
17151
17152 * final.c (rtx debug_insn): Likewise for this variable.
17153 (current_output_insn): Likewise.
17154 (get_attr_length_1): Rename param "insn" to "uncast_insn",
17155 adding "insn" back in as an rtx_insn * with a checked cast, so
17156 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
17157 first param.
17158 (compute_alignments): Strengthen local "label" from rtx to
17159 rtx_insn *.
17160 (shorten_branches): Rename param from "first" to "uncast_first",
17161 introducing a new local rtx_insn * "first" using a checked cast to
17162 effectively strengthen "first" from rtx to rtx_insn * without
17163 affecting the type signature. Strengthen locals "insn", "seq",
17164 "next", "label" from rtx to rtx_insn *.
17165 (change_scope): Strengthen param "orig_insn" and local "insn" from
17166 rtx to rtx_insn *.
17167 (final_start_function): Rename param from "first" to "uncast_first",
17168 introducing a new local rtx_insn * "first" using a checked cast to
17169 effectively strengthen "first" from rtx to rtx_insn * without
17170 affecting the type signature. Strengthen local "insn" from rtx to
17171 rtx_insn *.
17172 (dump_basic_block_info): Strengthen param "insn" from rtx to
17173 rtx_insn *.
17174 (final): Rename param from "first" to "uncast_first",
17175 introducing a new local rtx_insn * "first" using a checked cast to
17176 effectively strengthen "first" from rtx to rtx_insn * without
17177 affecting the type signature. Strengthen locals "insn", "next"
17178 from rtx to rtx_insn *.
17179 (output_alternate_entry_point): Strengthen param "insn" from rtx to
17180 rtx_insn *.
17181 (call_from_call_insn): Strengthen param "insn" from rtx to
17182 rtx_call_insn *.
17183 (final_scan_insn): Rename param from "insn" to "uncast_insn",
17184 introducing a new local rtx_insn * "insn" using a checked cast to
17185 effectively strengthen "insn" from rtx to rtx_insn * without
17186 affecting the type signature. Strengthen return type and locals
17187 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
17188 now-redundant checked cast to rtx_insn * from both invocations of
17189 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
17190 introducing a local "call_insn" for use when invoking
17191 call_from_call_insn.
17192 (notice_source_line): Strengthen param "insn" from rtx to
17193 rtx_insn *.
17194 (leaf_function_p): Likewise for local "insn".
17195 (final_forward_branch_p): Likewise.
17196 (leaf_renumber_regs): Likewise for param "first".
17197 (rest_of_clean_state): Likewise for locals "insn" and "next".
17198 (self_recursive_call_p): Likewise for param "insn".
17199 (collect_fn_hard_reg_usage): Likewise for local "insn".
17200 (get_call_fndecl): Likewise for param "insn".
17201 (get_call_cgraph_rtl_info): Likewise.
17202 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
17203 introducing a new local rtx_insn * "insn" using a checked cast to
17204 effectively strengthen "insn" from rtx to rtx_insn * without
17205 affecting the type signature.
17206
17207 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
17208 cast when assigning from param "insn" to current_output_insn.
17209 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
17210 so that we can assign it back to current_output_insn.
17211
17212 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17213
17214 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
17215 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
17216 atmxt540s and atmxt540sreva devices.
17217 * config/avr/avr-tables.opt: Regenerate.
17218 * config/avr/t-multilib: Regenerate.
17219 * doc/avr-mmcu.texi: Regenerate.
17220
17221 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17222
17223 * expr.c (convert_move): Strengthen local "insns" from rtx to
17224 rtx_insn *.
17225 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
17226 "top_label" from rtx to rtx_code_label *.
17227 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
17228 rtx_insn *.
17229 (emit_single_push_insn): Likewise for locals "prev", "last".
17230 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
17231 to rtx_code_label *.
17232 (store_constructor): Likewise for locals "loop_start", "loop_end".
17233 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
17234 rtx_insn *.
17235 (expand_expr_real_2): Likewise.
17236 (expand_expr_real_1): Strengthen local "label" from rtx to
17237 rtx_code_label *.
17238
17239 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17240
17241 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
17242 from rtx to rtx_insn *.
17243 (store_bit_field_1): Likewise.
17244 (extract_bit_field_1): Likewise.
17245 (expand_mult_const): Likewise for local "insns".
17246 (expmed_mult_highpart): Strengthen local "label" from rtx to
17247 rtx_code_label *.
17248 (expand_smod_pow2): Likewise.
17249 (expand_sdiv_pow2): Likewise.
17250 (expand_divmod): Strengthen locals "last", "insn" from rtx to
17251 rtx_insn *. Strengthen locals "label", "label1", "label2",
17252 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
17253 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
17254 (emit_store_flag): Likewise.
17255 (emit_store_flag_force): Strengthen local "label" from rtx to
17256 rtx_code_label *.
17257 (do_cmp_and_jump): Likewise for param "label".
17258
17259 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17260
17261 * explow.c (force_reg): Strengthen local "insn" from rtx to
17262 rtx_insn *.
17263 (adjust_stack_1): Likewise.
17264 (allocate_dynamic_stack_space): Likewise. Strengthen locals
17265 "final_label", "available_label", "space_available" from rtx to
17266 rtx_code_label *.
17267 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
17268 (anti_adjust_stack_and_probe): Likewise.
17269
17270 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17271
17272 * except.h (sjlj_emit_function_exit_after): Strengthen param
17273 "after" from rtx to rtx_insn *. This is only called with
17274 result of get_last_insn (in function.c) so type-change should be
17275 self-contained.
17276
17277 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
17278 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
17279 to rtx_insn *. These fields are only used from except.c so this
17280 type-change should be self-contained to this patch.
17281
17282 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
17283 local "last" from rtx to rtx_insn *.
17284 (dw2_build_landing_pads): Likewise for local "seq".
17285 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
17286 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
17287 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
17288 rtx to rtx_insn *.
17289 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
17290 to rtx_insn *.
17291 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
17292 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
17293 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
17294 referring to an insn. Strengthen local "dispatch_label" from
17295 rtx to rtx_code_label *.
17296 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
17297 rtx_insn *.
17298 (expand_eh_return): Strengthen local "around_label" from
17299 rtx to rtx_code_label *.
17300 (convert_to_eh_region_ranges): Strengthen locals "iter",
17301 "last_action_insn", "first_no_action_insn",
17302 "first_no_action_insn_before_switch",
17303 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
17304
17305 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17306
17307 * dwarf2out.c (last_var_location_insn): Strengthen this variable
17308 from rtx to rtx_insn *.
17309 (cached_next_real_insn): Likewise.
17310 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
17311 working with insns.
17312 (dwarf2out_var_location): Strengthen locals "next_real",
17313 "next_note", "expected_next_loc_note", "last_start", "insn" from
17314 rtx to rtx_insn *.
17315
17316 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17317
17318 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
17319 from rtx to rtx_insn *.
17320 (create_pseudo_cfg): Likewise for local "insn".
17321
17322 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17323
17324 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
17325 from rtx to rtx_insn *.
17326 (df_bb_regno_last_def_find): Likewise.
17327
17328 * df-problems.c (df_rd_bb_local_compute): Likewise.
17329 (df_lr_bb_local_compute): Likewise.
17330 (df_live_bb_local_compute): Likewise.
17331 (df_chain_remove_problem): Likewise.
17332 (df_chain_create_bb): Likewise.
17333 (df_word_lr_bb_local_compute): Likewise.
17334 (df_remove_dead_eq_notes): Likewise for param "insn".
17335 (df_note_bb_compute): Likewise for local "insn".
17336 (simulate_backwards_to_point): Likewise.
17337 (df_md_bb_local_compute): Likewise.
17338
17339 * df-scan.c (df_scan_free_bb_info): Likewise.
17340 (df_scan_start_dump): Likewise.
17341 (df_scan_start_block): Likewise.
17342 (df_install_ref_incremental): Likewise for local "insn".
17343 (df_insn_rescan_all): Likewise.
17344 (df_reorganize_refs_by_reg_by_insn): Likewise.
17345 (df_reorganize_refs_by_insn_bb): Likewise.
17346 (df_recompute_luids): Likewise.
17347 (df_bb_refs_record): Likewise.
17348 (df_update_entry_exit_and_calls): Likewise.
17349 (df_bb_verify): Likewise.
17350
17351 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17352
17353 * ddg.h (struct ddg_node): Strengthen fields "insn" and
17354 "first_note" from rtx to rtx_insn *.
17355 (get_node_of_insn): Likewise for param 2 "insn".
17356 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
17357
17358 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
17359 rtx_insn *.
17360 (mem_write_insn_p): Likewise.
17361 (mem_access_insn_p): Likewise.
17362 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
17363 (def_has_ccmode_p): Likewise for param "insn".
17364 (add_cross_iteration_register_deps): Likewise for locals
17365 "def_insn" and "use_insn".
17366 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
17367 (build_intra_loop_deps): Likewise for local "src_insn".
17368 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
17369 to rtx_insn *.
17370 (get_node_of_insn): Likewise for param "insn".
17371
17372 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17373
17374 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
17375 (deletable_insn_p): Strengthen param "insn" from rtx to
17376 rtx_insn *. Add checked cast to rtx_call_insn when invoking
17377 find_call_stack_args, since this is guarded by CALL_P (insn).
17378 (marked_insn_p): Strengthen param "insn" from rtx to
17379 rtx_insn *.
17380 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
17381 invoking find_call_stack_args, since this is guarded by
17382 CALL_P (insn).
17383 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
17384 rtx_insn *; we know this is an insn since this was called by
17385 mark_nonreg_stores.
17386 (mark_nonreg_stores_2): Likewise.
17387 (mark_nonreg_stores): Strengthen param "insn" from rtx to
17388 rtx_insn *.
17389 (find_call_stack_args): Strengthen param "call_insn" from rtx to
17390 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
17391 to rtx_insn *.
17392 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
17393 from rtx to rtx_insn *.
17394 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
17395 "next", "ref_insn".
17396 (delete_unmarked_insns): Likewise for locals "insn", "next".
17397 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
17398 (mark_reg_dependencies): Likewise for param "insn".
17399 (rest_of_handle_ud_dce): Likewise for local "insn".
17400 (word_dce_process_block): Likewise.
17401 (dce_process_block): Likewise.
17402
17403 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17404
17405 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
17406 from rtx to rtx_insn *.
17407 (struct change_cc_mode_args): Likewise for field "insn".
17408 (this_insn): Strengthen from rtx to rtx_insn *.
17409 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
17410 with insn.
17411 (validate_canon_reg): Strengthen param "insn" from rtx to
17412 rtx_insn *.
17413 (canon_reg): Likewise.
17414 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
17415 dealing with insn.
17416 (record_jump_equiv): Strengthen param "insn" from rtx to
17417 rtx_insn *.
17418 (try_back_substitute_reg): Likewise, also for locals "prev",
17419 "bb_head".
17420 (find_sets_in_insn): Likewise for param "insn".
17421 (canonicalize_insn): Likewise.
17422 (cse_insn): Likewise. Add a checked cast.
17423 (invalidate_from_clobbers): Likewise for param "insn".
17424 (invalidate_from_sets_and_clobbers): Likewise.
17425 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
17426 dealing with insn.
17427 (cse_prescan_path): Strengthen local "insn" from rtx to
17428 rtx_insn *.
17429 (cse_extended_basic_block): Likewise for locals "insn" and
17430 "prev_insn".
17431 (cse_main): Likewise for param "f".
17432 (check_for_label_ref): Likewise for local "insn".
17433 (set_live_p): Likewise for second param ("insn").
17434 (insn_live_p): Likewise for first param ("insn") and for local
17435 "next".
17436 (cse_change_cc_mode_insn): Likewise for first param "insn".
17437 (cse_change_cc_mode_insns): Likewise for first and second params
17438 "start" and "end".
17439 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
17440 and "end".
17441 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
17442 "cc_src_insn".
17443
17444 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
17445 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17446 Anna Tikhonova <anna.tikhonova@intel.com>
17447 Ilya Tocar <ilya.tocar@intel.com>
17448 Andrey Turetskiy <andrey.turetskiy@intel.com>
17449 Ilya Verbin <ilya.verbin@intel.com>
17450 Kirill Yukhin <kirill.yukhin@intel.com>
17451 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17452
17453 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
17454 New.
17455 * config/i386/sse.md
17456 (define_mode_iterator VI248_AVX2): Delete.
17457 (define_mode_iterator VI2_AVX2_AVX512BW): New.
17458 (define_mode_iterator VI48_AVX2): Ditto.
17459 (define_insn <shift_insn><mode>3): Delete.
17460 (define_insn "<shift_insn><mode>3<mask_name>" with
17461 VI2_AVX2_AVX512BW): New.
17462 (define_insn "<shift_insn><mode>3<mask_name>" with
17463 VI48_AVX2): Ditto.
17464
17465 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
17466 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17467 Anna Tikhonova <anna.tikhonova@intel.com>
17468 Ilya Tocar <ilya.tocar@intel.com>
17469 Andrey Turetskiy <andrey.turetskiy@intel.com>
17470 Ilya Verbin <ilya.verbin@intel.com>
17471 Kirill Yukhin <kirill.yukhin@intel.com>
17472 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17473
17474 * config/i386/sse.md
17475 (define_mode_iterator VI4F_BRCST32x2): New.
17476 (define_mode_attr 64x2_mode): Ditto.
17477 (define_mode_attr 32x2mode): Ditto.
17478 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
17479 with VI4F_BRCST32x2): Ditto.
17480 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
17481 with V16FI mode iterator): Ditto.
17482 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
17483 with V16FI): Ditto.
17484 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
17485 with VI8F_BRCST64x2): Ditto.
17486
17487 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
17488 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17489 Anna Tikhonova <anna.tikhonova@intel.com>
17490 Ilya Tocar <ilya.tocar@intel.com>
17491 Andrey Turetskiy <andrey.turetskiy@intel.com>
17492 Ilya Verbin <ilya.verbin@intel.com>
17493 Kirill Yukhin <kirill.yukhin@intel.com>
17494 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17495
17496 * config/i386/sse.md
17497 (define_mode_iterator VI8_AVX512VL): New.
17498 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
17499
17500 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
17501
17502 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
17503 (define_mode_iterator V48_AVX512VL): New.
17504 (define_mode_iterator V12_AVX512VL): Ditto.
17505 (define_insn <avx512>_load<mode>_mask): Split into two similar
17506 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
17507 Refactor output template.
17508 (define_insn "<avx512>_store<mode>_mask"): Ditto.
17509
17510 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17511
17512 * cprop.c (struct occr): Strengthen field "insn" from rtx to
17513 rtx_insn *.
17514 (reg_available_p): Likewise for param "insn".
17515 (insert_set_in_table): Likewise.
17516 (hash_scan_set): Likewise.
17517 (hash_scan_insn): Likewise.
17518 (make_set_regs_unavailable): Likewise.
17519 (compute_hash_table_work): Likewise for local "insn".
17520 (reg_not_set_p): Strengthen param "insn" from const_rtx to
17521 const rtx_insn *.
17522 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
17523 (try_replace_reg): Likewise.
17524 (find_avail_set): Likewise.
17525 (cprop_jump): Likewise for params "setcc", "jump".
17526 (constprop_register): Likewise for param "insn".
17527 (cprop_insn): Likewise.
17528 (do_local_cprop): Likewise.
17529 (local_cprop_pass): Likewise for local "insn".
17530 (bypass_block): Likewise for params "setcc" and "jump".
17531 (bypass_conditional_jumps): Likewise for locals "setcc" and
17532 "insn".
17533 (one_cprop_pass): Likewise for local "insn".
17534
17535 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17536
17537 * compare-elim.c (struct comparison_use): Strengthen field "insn"
17538 from rtx to rtx_insn *.
17539 (struct comparison): Likewise, also for field "prev_clobber".
17540 (conforming_compare): Likewise for param "insn".
17541 (arithmetic_flags_clobber_p): Likewise.
17542 (find_flags_uses_in_insn): Likewise.
17543 (find_comparison_dom_walker::before_dom_children): Likewise for
17544 locals "insn", "next", "last_clobber".
17545 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
17546
17547 2014-08-22 David Malcolm <dmalcolm@redhat.com>
17548
17549 * combine-stack-adj.c (struct csa_reflist): Strengthen field
17550 "insn" from rtx to rtx_insn *.
17551 (single_set_for_csa): Likewise for param "insn".
17552 (record_one_stack_ref): Likewise.
17553 (try_apply_stack_adjustment): Likewise.
17554 (struct record_stack_refs_data): Likewise for field "insn".
17555 (maybe_move_args_size_note): Likewise for params "last" and "insn".
17556 (prev_active_insn_bb): Likewise for return type and param "insn".
17557 (next_active_insn_bb): Likewise.
17558 (force_move_args_size_note): Likewise for params "prev" and "last"
17559 and locals "test", "next_candidate", "prev_candidate".
17560 (combine_stack_adjustments_for_block): Strengthen locals
17561 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
17562 rtx_insn *.
17563
17564 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17565
17566 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
17567 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
17568 (subst_insn): Likewise for this variable.
17569 (added_links_insn): Likewise.
17570 (struct insn_link): Likewise for field "insn".
17571 (alloc_insn_link): Likewise for param "insn".
17572 (struct undobuf): Likewise for field "other_insn".
17573 (find_single_use): Likewise for param "insn" and local "next".
17574 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
17575 (delete_noop_moves): Likewise for locals "insn", "next".
17576 (create_log_links): Likewise for locals "insn", "use_insn".
17577 Strengthen local "next_use" from rtx * to rtx_insn **.
17578 (insn_a_feeds_b): Likewise for params "a", "b".
17579 (combine_instructions): Likewise for param "f" and locals "insn",
17580 "next", "prev", "first", "last_combined_insn", "link", "link1",
17581 "temp". Replace use of NULL_RTX with NULL when referring to
17582 insns.
17583 (setup_incoming_promotions): Likewise for param "first"
17584 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
17585 (can_combine_p): Likewise for params "insn", "i3", "pred",
17586 "pred2", "succ", "succ2" and for local "p".
17587 (combinable_i3pat): Likewise for param "i3".
17588 (cant_combine_insn_p): Likewise for param "insn".
17589 (likely_spilled_retval_p): Likewise.
17590 (adjust_for_new_dest): Likewise.
17591 (update_cfg_for_uncondjump): Likewise, also for local "insn".
17592 (try_combine): Likewise for return type and for params "i3", "i2",
17593 "i1", "i0", "last_combined_insn", and for locals "insn",
17594 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
17595 "i0_insn". Eliminate local "tem" in favor of new locals
17596 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
17597 checked cast for now to rtx_insn * on the return type of
17598 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
17599 insns.
17600 (find_split_point): Strengthen param "insn" from rtx to
17601 rtx_insn *.
17602 (simplify_set): Likewise for local "other_insn".
17603 (recog_for_combine): Likewise for param "insn".
17604 (record_value_for_reg): Likewise.
17605 (record_dead_and_set_regs_1): Likewise for local
17606 "record_dead_insn".
17607 (record_dead_and_set_regs): Likewise for param "insn".
17608 (record_promoted_value): Likewise.
17609 (check_promoted_subreg): Likewise.
17610 (get_last_value_validate): Likewise.
17611 (reg_dead_at_p): Likewise.
17612 (move_deaths): Likewise for param "to_insn".
17613 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
17614 and locals "place", "place2", "cc0_setter". Eliminate local "tem
17615 in favor of new locals "tem_note" and "tem_insn", the latter being
17616 an rtx_insn *.
17617 (distribute_links): Strengthen locals "place", "insn" from rtx to
17618 rtx_insn *.
17619
17620 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17621
17622 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
17623 than a const_rtx.
17624 (can_delete_label_p): Require a const rtx_code_label * rather than
17625 a const_rtx.
17626 (delete_insn): Add checked cast to rtx_code_label * when we know
17627 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
17628 rtx to rtx_insn *.
17629 (delete_insn_chain): Strengthen locals "prev" and "current" from
17630 rtx to rtx_insn *. Add a checked cast when assigning from
17631 "finish" (strengthening the params will come later). Add a
17632 checked cast to rtx_note * in region where we know
17633 NOTE_P (current).
17634 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
17635 rtx_insn *.
17636 (compute_bb_for_insn): Likewise.
17637 (free_bb_for_insn): Likewise for local "insn".
17638 (compute_bb_for_insn): Likewise.
17639 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
17640 local "insn" from rtx to rtx_insn *
17641 (flow_active_insn_p): Require a const rtx_insn * rather than a
17642 const_rtx.
17643 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
17644 rtx_insn *.
17645 (can_fallthru): Likewise for locals "insn" and "insn2".
17646 (bb_note): Likewise for local "note".
17647 (first_insn_after_basic_block_note): Likewise for local "note" and
17648 for return type.
17649 (rtl_split_block): Likewise for locals "insn" and "next".
17650 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
17651 "end".
17652 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
17653 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
17654 "prev", "tmp".
17655 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
17656 them), "kill_from", "barrier", "new_insn".
17657 (patch_jump_insn): Likewise for params "insn", "old_label".
17658 (redirect_branch_edge): Likewise for locals "old_label", "insn".
17659 (force_nonfallthru_and_redirect): Likewise for locals "insn",
17660 "old_label", "new_label".
17661 (rtl_tidy_fallthru_edge): Likewise for local "q".
17662 (rtl_split_edge): Likewise for locals "before", "last".
17663 (commit_one_edge_insertion): Likewise for locals "before",
17664 "after", "insns", "tmp", "last", adding a checked cast where
17665 currently necessary.
17666 (commit_edge_insertions): Likewise.
17667 (rtl_dump_bb): Likewise for locals "insn", "last".
17668 (print_rtl_with_bb): Likewise for local "x".
17669 (rtl_verify_bb_insns): Likewise for local "x".
17670 (rtl_verify_bb_pointers): Likewise for local "insn".
17671 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
17672 "head", "end".
17673 (rtl_verify_fallthru): Likewise for local "insn".
17674 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
17675 (purge_dead_edges): Likewise for local "insn".
17676 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
17677 (skip_insns_after_block): Likewise for return type and for locals
17678 "insn", "last_insn", "next_head", "prev".
17679 (record_effective_endpoints): Likewise for locals "next_insn",
17680 "insn", "end".
17681 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
17682 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
17683 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
17684 (duplicate_insn_chain): For now, add checked cast from rtx to
17685 rtx_insn * when returning insn.
17686 (cfg_layout_duplicate_bb): Likewise for local "insn".
17687 (cfg_layout_delete_block): Likewise for locals "insn", "next",
17688 "prev", "remaints".
17689 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
17690 (rtl_block_empty_p): Likewise.
17691 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
17692 "split_point", "last".
17693 (rtl_block_ends_with_call_p): Likewise for local "insn".
17694 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
17695 const rtx_insn *.
17696 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
17697 "split_at_insn" from rtx to rtx_insn *.
17698 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
17699 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
17700 to const rtx_insn *.
17701 (rtl_account_profile_record): Likewise.
17702
17703 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17704
17705 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
17706 rtx to rtx_insn *.
17707 (average_num_loop_insns): Likewise.
17708 (init_set_costs): Likewise for local "seq".
17709 (seq_cost): Likewise for param "seq", from const_rtx to const
17710 rtx_insn *.
17711
17712 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17713
17714 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
17715 rtx to rtx_insn *.
17716
17717 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17718
17719 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
17720 "f1" and "f2" from rtx * to rtx_insn **.
17721 (flow_find_head_matching_sequence): Likewise.
17722
17723 * cfgcleanup.c (try_simplify_condjump): Strengthen local
17724 "cbranch_insn" from rtx to rtx_insn *.
17725 (thread_jump): Likewise for local "insn".
17726 (try_forward_edges): Likewise for local "last".
17727 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
17728 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
17729 "real_b_end".
17730 (can_replace_by): Likewise for params "i1", "i2".
17731 (old_insns_match_p): Likewise.
17732 (merge_notes): Likewise.
17733 (walk_to_nondebug_insn): Likewise for param "i1".
17734 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
17735 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
17736 "afterlast1", "afterlast2" from rtx to rtx_insn *.
17737 (flow_find_head_matching_sequence): Strengthen params "f1" and
17738 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
17739 "last1", "last2", "beforelast1", "beforelast2" from rtx to
17740 rtx_insn *.
17741 (outgoing_edges_match): Likewise for locals "last1", "last2".
17742 (try_crossjump_to_edge): Likewise for local "insn".
17743 Replace call to for_each_rtx with for_each_rtx_in_insn.
17744
17745 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
17746 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
17747 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
17748 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
17749 (try_optimize_cfg): Strengthen local "last" from rtx to
17750 rtx_insn *.
17751 (delete_dead_jumptables): Likewise for locals "insn", "next",
17752 "label".
17753
17754 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
17755 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
17756 "rtx else_first_tail", to reflect the basic-block.h changes above.
17757
17758 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17759
17760 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
17761 rtx_insn *.
17762 (purge_dead_tablejump_edges): Likewise.
17763 (find_bb_boundaries): Likewise for locals "insn", "end",
17764 "flow_transfer_insn".
17765
17766 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17767
17768 * caller-save.c (save_call_clobbered_regs): Strengthen locals
17769 "ins" and "prev" from rtx to rtx_insn *.
17770
17771 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17772
17773 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
17774 rtx_insn *.
17775 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
17776 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
17777 "scan_start".
17778 (load_register_parameters): Likewise for local "before_arg".
17779 (check_sibcall_argument_overlap): Likewise for param "insn".
17780 (expand_call): Likewise for locals "normal_call_insns",
17781 "tail_call_insns", "insns", "before_call", "after_args",
17782 "before_arg", "last", "prev". Strengthen one of the "last" from
17783 rtx to rtx_call_insn *.
17784 (fixup_tail_calls): Strengthen local "insn" from rtx to
17785 rtx_insn *.
17786 (emit_library_call_value_1): Likewise for locals "before_call" and
17787 "last".
17788
17789 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17790
17791 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
17792 and "last" from rtx to rtx_insn *.
17793 (expand_builtin_nonlocal_goto): Likewise for local "insn".
17794 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
17795 rtx_call_insn *.
17796 (expand_errno_check): Strengthen local "lab" from rtx to
17797 rtx_code_label *.
17798 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
17799 rtx_insn *.
17800 (expand_builtin_mathfn_2): Likewise.
17801 (expand_builtin_mathfn_ternary): Likewise.
17802 (expand_builtin_mathfn_3): Likewise.
17803 (expand_builtin_interclass_mathfn): Likewise for local "last".
17804 (expand_builtin_int_roundingfn): Likewise for local "insns".
17805 (expand_builtin_int_roundingfn_2): Likewise.
17806 (expand_builtin_strlen): Likewise for local "before_strlen".
17807 (expand_builtin_strncmp): Likewise for local "seq".
17808 (expand_builtin_signbit): Likewise for local "last".
17809 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
17810 from rtx to rtx_code_label *.
17811 (expand_stack_restore): Strengthen local "prev" from rtx to
17812 rtx_insn *.
17813
17814 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17815
17816 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
17817 to rtx_insn *.
17818 (struct btr_def_s): Likewise.
17819 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
17820 const rtx_insn *.
17821 (add_btr_def): Likewise.
17822 (new_btr_user): Likewise.
17823 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
17824 rtx to rtx_insn *.
17825 (link_btr_uses): Likewise.
17826 (move_btr_def): Likewise for locals "insp", "old_insn",
17827 "new_insn". Add checked cast to rtx_insn * for now on result of
17828 gen_move_insn.
17829 (can_move_up): Strengthen param "insn" from const_rtx to
17830 const rtx_insn *.
17831
17832 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17833
17834 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
17835 rtx_insn *.
17836 (get_uncond_jump_length): Likewise for locals "label", "jump".
17837 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
17838 "jump", "insn".
17839 (add_labels_and_missing_jumps): Likewise for local "new_jump".
17840 (fix_up_fall_thru_edges): Likewise for local "old_jump".
17841 (find_jump_block): Likewise for local "insn".
17842 (fix_crossing_conditional_branches): Likewise for locals
17843 "old_jump", "new_jump".
17844 (fix_crossing_unconditional_branches): Likewise for locals
17845 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
17846 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
17847
17848 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17849
17850 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
17851 rtx to rtx_insn *.
17852 (struct mem_insn): Likewise for field "insn".
17853 (reg_next_use): Strengthen from rtx * to rtx_insn **.
17854 (reg_next_inc_use): Likewise.
17855 (reg_next_def): Likewise.
17856 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
17857 from rtx to rtx_insn *.
17858 (move_insn_before): Likewise for param "next_insn" and local "insns".
17859 (attempt_change): Likewise for local "mov_insn".
17860 (try_merge): Likewise for param "last_insn".
17861 (get_next_ref): Likewise for return type and local "insn".
17862 Strengthen param "next_array" from rtx * to rtx_insn **.
17863 (parse_add_or_inc): Strengthen param "insn" from rtx to
17864 rtx_insn *.
17865 (find_inc): Likewise for locals "insn" and "other_insn" (three of
17866 the latter).
17867 (merge_in_block): Likewise for locals "insn", "curr",
17868 "other_insn".
17869 (pass_inc_dec::execute): Update allocations of the arrays to
17870 reflect the stronger types.
17871
17872 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17873
17874 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
17875 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
17876 from rtx to rtx_code_label *.
17877
17878 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17879
17880 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
17881 to rtx_insn *.
17882
17883 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
17884
17885 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
17886 generated a warning and prevented bootstrapping the compiler.
17887
17888 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17889
17890 * rtl.h (delete_related_insns): Strengthen return type from rtx to
17891 rtx_insn *.
17892
17893 * jump.c (delete_related_insns): Likewise, also for locals "next"
17894 and "prev".
17895
17896 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17897
17898 * genautomata.c (output_internal_insn_latency_func): When writing
17899 the function "internal_insn_latency" to insn-automata.c,
17900 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
17901 allowing the optional guard function of (define_bypass) clauses to
17902 expect a pair of rtx_insn *, rather than a pair of rtx.
17903 (output_insn_latency_func): When writing the function
17904 "insn_latency", add an "uncast_" prefix to params "insn" and
17905 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
17906 using checked casts from the params, thus enabling the above
17907 change to the generated "internal_insn_latency" function.
17908
17909 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
17910
17911 PR tree-optimization/62091
17912 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
17913 handle correctly arrays.
17914 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
17915 inheritance binfos.
17916 (record_known_type): Walk into inner type.
17917 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
17918 condition on no type changes.
17919
17920 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17921
17922 * genattrtab.c (write_attr_get): Within the generated get_attr_
17923 functions, rename param "insn" to "uncast_insn" and reintroduce
17924 "insn" as an local rtx_insn * using a checked cast, so that "insn"
17925 is an rtx_insn * within insn-attrtab.c
17926
17927 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17928
17929 * output.h (peephole): Strengthen return type from rtx to
17930 rtx_insn *.
17931 * rtl.h (delete_for_peephole): Likewise for both params.
17932 * genpeep.c (main): In generated "peephole" function, strengthen
17933 return type and local "insn" from rtx to rtx_insn *. For now,
17934 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
17935 rtx_insn *, with a checked cast.
17936 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
17937 locals "insn", "next", "prev" from rtx to rtx_insn *.
17938
17939 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
17940
17941 PR tree-optimization/62112
17942 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
17943 * gimple-iterator.h (gsi_replace): Return bool.
17944 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
17945 moved from ref_may_alias_global_p.
17946 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
17947 New overloads.
17948 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
17949 (stmt_kills_ref_p_1): Rename...
17950 (stmt_kills_ref_p): ... to this.
17951 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
17952 stmt_kills_ref_p): Declare.
17953 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
17954 Move the self-assignment case...
17955 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
17956
17957 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17958
17959 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
17960
17961 * emit-rtl.c (try_split): Likewise, also for locals "before" and
17962 "after". For now, don't strengthen param "trial", which requires
17963 adding checked casts when returning it.
17964
17965 2014-08-21 David Malcolm <dmalcolm@redhat.com>
17966
17967 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
17968 "label" from rtx to rtx_code_label *. Strengthen param 1 of
17969 "var_location" hook from rtx to rtx_insn *.
17970 (debug_nothing_rtx): Delete in favor of...
17971 (debug_nothing_rtx_code_label): New prototype.
17972 (debug_nothing_rtx_rtx): Delete unused prototype.
17973 (debug_nothing_rtx_insn): New prototype.
17974
17975 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
17976 invoking debug_hooks->var_location (in two places, one in a NOTE
17977 case of a switch statement, the other guarded by a CALL_P
17978 conditional. Add checked cast to rtx_code_label * when invoking
17979 debug_hooks->label (within CODE_LABEL case of switch statement).
17980
17981 * dbxout.c (dbx_debug_hooks): Update "label" hook from
17982 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
17983 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
17984 (xcoff_debug_hooks): Likewise.
17985 * debug.c (do_nothing_debug_hooks): Likewise.
17986 (debug_nothing_rtx): Delete in favor of...
17987 (debug_nothing_rtx_insn): New function.
17988 (debug_nothing_rtx_rtx): Delete unused function.
17989 (debug_nothing_rtx_code_label): New function.
17990 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
17991 debug_nothing_rtx to debug_nothing_rtx_code_label.
17992 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
17993 to rtx_insn *.
17994 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
17995 debug_nothing_rtx to debug_nothing_rtx_insn.
17996 (sdbout_label): Strengthen param "insn" from rtx to
17997 rtx_code_label *.
17998 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
17999 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
18000 "var_location" hook from debug_nothing_rtx to
18001 debug_nothing_rtx_insn.
18002
18003 2014-08-21 David Malcolm <dmalcolm@redhat.com>
18004
18005 * recog.h (insn_output_fn): Update this function typedef to match
18006 the changes below to the generated output functions, strengthening
18007 the 2nd param from rtx to rtx_insn *.
18008
18009 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
18010 insn when invoking an output function, to match the new signature
18011 of insn_output_fn with a stronger second param.
18012
18013 * genconditions.c (write_header): In the generated code for
18014 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
18015 to match the other changes in this patch.
18016
18017 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
18018 the generated "gen_" functions from rtx to rtx_insn * within their
18019 implementations.
18020
18021 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
18022 the subfunctions within the generated "recog_", "split", "peephole2"
18023 function trees from rtx to rtx_insn *. For now, the top-level
18024 generated functions ("recog", "split", "peephole2") continue to
18025 take a plain rtx for "insn", to avoid introducing dependencies on
18026 other patches. Rename this 2nd param from "insn" to
18027 "uncast_insn", and reintroduce "insn" as a local variable of type
18028 rtx_insn *, initialized at the top of the generated function with
18029 a checked cast on "uncast_insn".
18030 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
18031 the generated "gen_" functions from rtx to rtx_insn * within their
18032 prototypes.
18033
18034 * genoutput.c (process_template): Strengthen the 2nd param within
18035 the generated "output_" functions "insn" from rtx to rtx_insn *.
18036
18037 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
18038
18039 * tree-profile.c (tree_profiling): Skip external functions
18040 when doing coverage instrumentation.
18041 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
18042
18043 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18044
18045 * config/rs6000/altivec.h (vec_cpsgn): New #define.
18046 (vec_mergee): Likewise.
18047 (vec_mergeo): Likewise.
18048 (vec_cntlz): Likewise.
18049 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
18050 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
18051 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
18052 VMRGEW, and VMRGOW.
18053 * doc/extend.texi: Document various forms of vec_cpsgn,
18054 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
18055 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
18056 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
18057 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
18058 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
18059
18060 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18061
18062 * config/rs6000/rs6000.c (context.h): New include.
18063 (tree-pass.h): Likewise.
18064 (make_pass_analyze_swaps): New decl.
18065 (rs6000_option_override): Register pass_analyze_swaps.
18066 (swap_web_entry): New subsclass of web_entry_base (df.h).
18067 (special_handling_values): New enum.
18068 (union_defs): New function.
18069 (union_uses): Likewise.
18070 (insn_is_load_p): Likewise.
18071 (insn_is_store_p): Likewise.
18072 (insn_is_swap_p): Likewise.
18073 (rtx_is_swappable_p): Likewise.
18074 (insn_is_swappable_p): Likewise.
18075 (chain_purpose): New enum.
18076 (chain_contains_only_swaps): New function.
18077 (mark_swaps_for_removal): Likewise.
18078 (swap_const_vector_halves): Likewise.
18079 (adjust_subreg_index): Likewise.
18080 (permute_load): Likewise.
18081 (permute_store): Likewise.
18082 (handle_special_swappables): Likewise.
18083 (replace_swap_with_copy): Likewise.
18084 (dump_swap_insn_table): Likewise.
18085 (rs6000_analyze_swaps): Likewise.
18086 (pass_data_analyze_swaps): New pass_data.
18087 (pass_analyze_swaps): New rtl_opt_pass.
18088 (make_pass_analyze_swaps): New function.
18089 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
18090
18091 2014-08-21 David Malcolm <dmalcolm@redhat.com>
18092
18093 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
18094 type from rtx to rtx_insn *.
18095 (create_copy_of_insn_rtx): Likewise.
18096 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
18097 (create_copy_of_insn_rtx): Likewise, also for local "res".
18098
18099 2014-08-21 David Malcolm <dmalcolm@redhat.com>
18100
18101 * rtl.h (find_first_parameter_load): Strengthen return type from
18102 rtx to rtx_insn *.
18103 * rtlanal.c (find_first_parameter_load): Strengthen return type
18104 from rtx to rtx_insn *. Add checked cast for now, to postpone
18105 strengthening the params.
18106
18107 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
18108
18109 PR fortran/44054
18110 * diagnostic.c: Set default caret.
18111 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
18112 line is needed.
18113 * diagnostic.h (struct diagnostic_context):
18114
18115 2014-08-21 David Malcolm <dmalcolm@redhat.com>
18116
18117 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
18118 (sel_bb_head): Strengthen return type insn_t (currently just an
18119 rtx) to rtx_insn *.
18120 (sel_bb_end): Likewise.
18121
18122 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
18123 (sel_bb_head): Strengthen return type and local "head" from
18124 insn_t (currently just an rtx) to rtx_insn *.
18125 (sel_bb_end): Likewise for return type.
18126 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
18127 working with insn.
18128
18129 2014-08-21 David Malcolm <dmalcolm@redhat.com>
18130
18131 * basic-block.h (get_last_bb_insn): Strengthen return type from
18132 rtx to rtx_insn *.
18133 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
18134 end".
18135
18136 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
18137
18138 PR fortran/44054
18139 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
18140 to here ...
18141 (diagnostic_report_diagnostic): ... from here.
18142 * toplev.c (general_init): Move code to c-family.
18143
18144 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18145
18146 * df.h (web_entry_base): Replace existing struct web_entry with a
18147 new class web_entry_base with only the predecessor member.
18148 (unionfind_root): Remove declaration and move to class member.
18149 (unionfind_union): Remove declaration and move to friend
18150 function.
18151 (union_defs): Remove declaration.
18152 * web.c (web_entry_base::unionfind_root): Modify to be member
18153 function and adjust accessors.
18154 (unionfind_union): Modify to be friend function and adjust
18155 accessors.
18156 (web_entry): New subclass of web_entry_base containing the reg
18157 member.
18158 (union_match_dups): Modify for struct -> class changes.
18159 (union_defs): Likewise.
18160 (entry_register): Likewise.
18161 (pass_web::execute): Likewise.
18162
18163 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
18164
18165 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
18166 builtin define __VEC_ELEMENT_REG_ORDER__.
18167
18168 2014-08-20 Martin Jambor <mjambor@suse.cz>
18169 Wei Mi <wmi@google.com>
18170
18171 PR ipa/60449
18172 PR middle-end/61776
18173 * tree-ssa-operands.c (update_stmt_operands): Remove
18174 MODIFIED_NORETURN_CALLS.
18175 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
18176 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
18177 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
18178 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
18179 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
18180 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
18181 (gimple_call_set_ctrl_altering): New func.
18182 (gimple_call_ctrl_altering_p): Ditto.
18183 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
18184 (make_blocks): Use gimple_call_initialize_ctrl_altering.
18185 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
18186 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
18187 remove MODIFIED_NORETURN_CALLS.
18188
18189 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
18190
18191 * coverage.c (coverage_compute_profile_id): Return non-0;
18192 also handle symbols with unique name.
18193 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
18194
18195 2014-08-20 Steve Ellcey <sellcey@mips.com>
18196
18197 PR middle-end/49191
18198 * doc/sourcebuild.texi (non_strict_align): New.
18199
18200 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
18201
18202 * cgraphunit.c (ipa_passes, compile): Reshedule
18203 symtab_remove_unreachable_nodes passes; update comments.
18204 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
18205 TODO_remove_functions before the pass; the functions ought to be
18206 already removed.
18207 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
18208 TODO_remove_functions.
18209 * passes.c (pass_data_early_local_passes): Do not schedule function
18210 removal.
18211 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
18212
18213 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
18214
18215 PR c/59304
18216 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
18217 before setting the option.
18218 * diagnostic.c (diagnostic_classify_diagnostic): Record
18219 command-line status.
18220
18221 2014-08-20 Richard Biener <rguenther@suse.de>
18222
18223 PR lto/62190
18224 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
18225 to build uint{16,32,64}_type_node.
18226
18227 2014-08-20 Terry Guo <terry.guo@arm.com>
18228
18229 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
18230 with immediate_operand.
18231
18232 2014-08-20 David Malcolm <dmalcolm@redhat.com>
18233
18234 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
18235 "insn" from an as_a to a safe_as_a, for the case when "insn" is
18236 NULL.
18237
18238 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
18239
18240 PR preprocessor/51303
18241 * incpath.c (remove_duplicates): Use cpp_warning.
18242
18243 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
18244
18245 PR c/60975
18246 PR c/53063
18247 * doc/options.texi (CPP): Document it.
18248 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
18249 * optc-gen.awk: Handle CPP.
18250 * opth-gen.awk: Likewise.
18251
18252 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18253
18254 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
18255 rtx_insn *.
18256 (duplicate_insn_chain): Likewise.
18257 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
18258 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
18259 checked cast for now (until we can strengthen the params in the
18260 same way).
18261 (duplicate_insn_chain): Likewise.
18262
18263 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18264
18265 * rtl.h (next_cc0_user): Strengthen return type from rtx to
18266 rtx_insn *.
18267 (prev_cc0_setter): Likewise.
18268
18269 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
18270 rtx_insn *, adding checked casts for now as necessary.
18271 (prev_cc0_setter): Likewise.
18272
18273 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18274
18275 * expr.h (emit_move_insn): Strengthen return type from rtx to
18276 rtx_insn *.
18277 (emit_move_insn_1): Likewise.
18278 (emit_move_complex_push): Likewise.
18279 (emit_move_complex_parts): Likewise.
18280
18281 * expr.c (emit_move_via_integer): Strengthen return type from rtx
18282 to rtx_insn *. Replace use of NULL_RTX with NULL when working
18283 with insns.
18284 (emit_move_complex_push): Strengthen return type from rtx to
18285 rtx_insn *.
18286 (emit_move_complex): Likewise, also for local "ret".
18287 (emit_move_ccmode): Likewise.
18288 (emit_move_multi_word): Likewise for return type and locals
18289 "last_insn", "seq".
18290 (emit_move_insn_1): Likewise for return type and locals "result",
18291 "ret".
18292 (emit_move_insn): Likewise for return type and local "last_insn".
18293 (compress_float_constant): Likewise.
18294
18295 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18296
18297 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
18298 from rtx to rtx_insn *.
18299
18300 * rtl.h (emit_insn_before): Likewise.
18301 (emit_insn_before_noloc): Likewise.
18302 (emit_insn_before_setloc): Likewise.
18303 (emit_jump_insn_before): Likewise.
18304 (emit_jump_insn_before_noloc): Likewise.
18305 (emit_jump_insn_before_setloc): Likewise.
18306 (emit_call_insn_before): Likewise.
18307 (emit_call_insn_before_noloc): Likewise.
18308 (emit_call_insn_before_setloc): Likewise.
18309 (emit_debug_insn_before): Likewise.
18310 (emit_debug_insn_before_noloc): Likewise.
18311 (emit_debug_insn_before_setloc): Likewise.
18312 (emit_label_before): Likewise.
18313 (emit_insn_after): Likewise.
18314 (emit_insn_after_noloc): Likewise.
18315 (emit_insn_after_setloc): Likewise.
18316 (emit_jump_insn_after): Likewise.
18317 (emit_jump_insn_after_noloc): Likewise.
18318 (emit_jump_insn_after_setloc): Likewise.
18319 (emit_call_insn_after): Likewise.
18320 (emit_call_insn_after_noloc): Likewise.
18321 (emit_call_insn_after_setloc): Likewise.
18322 (emit_debug_insn_after): Likewise.
18323 (emit_debug_insn_after_noloc): Likewise.
18324 (emit_debug_insn_after_setloc): Likewise.
18325 (emit_label_after): Likewise.
18326 (emit_insn): Likewise.
18327 (emit_debug_insn): Likewise.
18328 (emit_jump_insn): Likewise.
18329 (emit_call_insn): Likewise.
18330 (emit_label): Likewise.
18331 (gen_clobber): Likewise.
18332 (emit_clobber): Likewise.
18333 (gen_use): Likewise.
18334 (emit_use): Likewise.
18335 (emit): Likewise.
18336
18337 (emit_barrier_before): Strengthen return type from rtx to
18338 rtx_barrier *.
18339 (emit_barrier_after): Likewise.
18340 (emit_barrier): Likewise.
18341
18342 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
18343 from rtx to rtx_insn *. Add checked casts for now when converting
18344 "last" from rtx to rtx_insn *.
18345 (emit_insn_before_noloc): Likewise for return type.
18346 (emit_jump_insn_before_noloc): Likewise.
18347 (emit_call_insn_before_noloc): Likewise.
18348 (emit_debug_insn_before_noloc): Likewise.
18349 (emit_barrier_before): Strengthen return type and local "insn"
18350 from rtx to rtx_barrier *.
18351 (emit_label_before): Strengthen return type from rtx to
18352 rtx_insn *. Add checked cast for now when returning param
18353 (emit_pattern_after_noloc): Strengthen return type from rtx to
18354 rtx_insn *. Add checked casts for now when converting "last" from
18355 rtx to rtx_insn *.
18356 (emit_insn_after_noloc): Strengthen return type from rtx to
18357 rtx_insn *.
18358 (emit_jump_insn_after_noloc): Likewise.
18359 (emit_call_insn_after_noloc): Likewise.
18360 (emit_debug_insn_after_noloc): Likewise.
18361 (emit_barrier_after): Strengthen return type from rtx to
18362 rtx_barrier *.
18363 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
18364 Add checked cast for now when converting "label" from rtx to
18365 rtx_insn *.
18366 (emit_pattern_after_setloc): Strengthen return type from rtx to
18367 rtx_insn *. Add checked casts for now when converting "last" from
18368 rtx to rtx_insn *.
18369 (emit_pattern_after): Strengthen return type from rtx to
18370 rtx_insn *.
18371 (emit_insn_after_setloc): Likewise.
18372 (emit_insn_after): Likewise.
18373 (emit_jump_insn_after_setloc): Likewise.
18374 (emit_jump_insn_after): Likewise.
18375 (emit_call_insn_after_setloc): Likewise.
18376 (emit_call_insn_after): Likewise.
18377 (emit_debug_insn_after_setloc): Likewise.
18378 (emit_debug_insn_after): Likewise.
18379 (emit_pattern_before_setloc): Likewise. Add checked casts for now
18380 when converting "last" from rtx to rtx_insn *.
18381 (emit_pattern_before): Strengthen return type from rtx to
18382 rtx_insn *.
18383 (emit_insn_before_setloc): Likewise.
18384 (emit_insn_before): Likewise.
18385 (emit_jump_insn_before_setloc): Likewise.
18386 (emit_jump_insn_before): Likewise.
18387 (emit_call_insn_before_setloc): Likewise.
18388 (emit_call_insn_before): Likewise.
18389 (emit_debug_insn_before_setloc): Likewise.
18390 (emit_debug_insn_before): Likewise.
18391 (emit_insn): Strengthen return type and locals "last", "insn",
18392 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
18393 within cases where we know we have an insn.
18394 (emit_debug_insn): Likewise.
18395 (emit_jump_insn): Likewise.
18396 (emit_call_insn): Strengthen return type and local "insn" from rtx
18397 to rtx_insn *.
18398 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
18399 a checked cast to rtx_insn * for now on "label".
18400 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
18401 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
18402 (emit_use): Likewise.
18403 (gen_use): Likewise, also for local "seq".
18404 (emit): Likewise for return type and local "insn".
18405 (rtx_insn): Likewise for return type and local "new_rtx".
18406
18407 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
18408 from rtx to rtx_barrier *.
18409
18410 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
18411 changed return type from rtx to rtx_insn *, we must update
18412 "emit_fn" type, and this in turn means updating...
18413 (frame_insn): ...this. Strengthen return type from rtx to
18414 rtx_insn *. Introduce a new local "insn" of the appropriate type.
18415
18416 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18417
18418 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
18419 rtx to rtx_jump_table_data *. Also for local.
18420 * rtl.h (emit_jump_table_data): Likewise.
18421
18422 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18423
18424 * basic-block.h (create_basic_block_structure): Strengthen third
18425 param "bb_note" from rtx to rtx_note *.
18426 * rtl.h (emit_note_before): Strengthen return type from rtx to
18427 rtx_note *.
18428 (emit_note_after): Likewise.
18429 (emit_note): Likewise.
18430 (emit_note_copy): Likewise. Also, strengthen param similarly.
18431 * function.h (struct rtl_data): Strengthen field
18432 "x_stack_check_probe_note" from rtx to rtx_note *.
18433
18434 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
18435 from rtx to rtx_note *.
18436 * cfgrtl.c (create_basic_block_structure): Strengthen third param
18437 "bb_note" from rtx to rtx_note *.
18438 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
18439 when calling emit_note_copy.
18440 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
18441 rtx_note *.
18442 (emit_note_after): Likewise.
18443 (emit_note_before): Likewise.
18444 (emit_note_copy): Likewise. Also, strengthen param similarly.
18445 (emit_note): Likewise.
18446 * except.c (emit_note_eh_region_end): Likewise for return type.
18447 Strengthen local "next" from rtx to rtx_insn *.
18448 (convert_to_eh_region_ranges): Strengthen local "note"
18449 from rtx to rtx_note *.
18450 * final.c (change_scope): Likewise.
18451 (reemit_insn_block_notes): Likewise, for both locals named "note".
18452 Also, strengthen local "insn" from rtx to rtx_insn *.
18453 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
18454 rtx to rtx_note *.
18455 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
18456 strengthen local "seq" from rtx to rtx_insn *.
18457 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
18458 to rtx_note *.
18459 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
18460 vec<rtx_note *>.
18461 (get_bb_note_from_pool): Strengthen return type from rtx to
18462 rtx_note *.
18463 (sel_create_basic_block): Strengthen local "new_bb_note" from
18464 insn_t to rtx_note *.
18465 * var-tracking.c (emit_note_insn_var_location): Strengthen local
18466 "note" from rtx to rtx_note *.
18467 (emit_notes_in_bb): Likewise.
18468
18469 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18470
18471 * function.h (struct rtl_data): Strengthen field
18472 "x_parm_birth_insn" from rtx to rtx_insn *.
18473 * function.c (struct assign_parm_data_all): Strengthen fields
18474 "first_conversion_insn" and "last_conversion_insn" from rtx to
18475 rtx_insn *.
18476
18477 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18478
18479 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
18480 to rtx_insn *; also for local "var_end_seq".
18481 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
18482 (maybe_cleanup_end_of_block): Likewise for param "last" and local
18483 "insn".
18484 (expand_gimple_cond): Likewise for locals "last2" and "last".
18485 (mark_transaction_restart_calls): Likewise for local "insn".
18486 (expand_gimple_stmt): Likewise for return type and locals "last"
18487 and "insn".
18488 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
18489 (avoid_complex_debug_insns): Likewise for param "insn".
18490 (expand_debug_locations): Likewise for locals "insn", "last",
18491 "prev_insn" and "insn2".
18492 (expand_gimple_basic_block): Likewise for local "last".
18493 (construct_exit_block): Likewise for locals "head", "end",
18494 "orig_end".
18495 (pass_expand::execute): Likewise for locals "var_seq",
18496 "var_ret_seq", "next".
18497
18498 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18499
18500 * asan.h (asan_emit_stack_protection): Strengthen return type from
18501 rtx to rtx_insn *.
18502 * asan.c (asan_emit_stack_protection): Likewise. Add local
18503 "insns" to hold the return value.
18504
18505 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18506
18507 * basic-block.h (bb_note): Strengthen return type from rtx to
18508 rtx_note *.
18509 * sched-int.h (bb_note): Likewise.
18510 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
18511
18512 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18513
18514 * rtl.h (make_insn_raw): Strengthen return type from rtx to
18515 rtx_insn *.
18516
18517 * emit-rtl.c (make_insn_raw): Strengthen return type and local
18518 "insn" from rtx to rtx_insn *.
18519 (make_debug_insn_raw): Strengthen return type from rtx to
18520 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
18521 (make_jump_insn_raw): Strengthen return type from rtx to
18522 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
18523 (make_call_insn_raw): Strengthen return type from rtx to
18524 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
18525 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
18526 callback from rtx to rtx_insn *; likewise for local "insn" and
18527 "next", adding a checked cast to rtx_insn in the relevant cases of
18528 the switch statement.
18529 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
18530 callback from rtx to rtx_insn *.
18531 (emit_pattern_after_setloc): Likewise.
18532 (emit_pattern_after): Likewise.
18533 (emit_pattern_before_setloc): Likewise.
18534 (emit_pattern_before): Likewise.
18535
18536 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18537
18538 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
18539 rtx_call_insn *.
18540 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
18541 accepting an rtx_insn *.
18542 (last_call_insn): Strengthen return type from rtx to
18543 rtx_call_insn *.
18544
18545 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18546
18547 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
18548 "insns" from rtx to rtx_insn *.
18549 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
18550 locals "insn" and "prev".
18551
18552 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18553
18554 * rtl.h (tablejump_p): Strengthen third param from rtx * to
18555 rtx_jump_table_data **.
18556
18557 * cfgbuild.c (make_edges): Introduce local "table", using it in
18558 place of "tmp" for jump table data.
18559 (find_bb_boundaries): Strengthen local "table" from rtx to
18560 rtx_jump_table_data *.
18561 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
18562 (outgoing_edges_match): Likewise for locals "table1" and "table2".
18563 (try_crossjump_to_edge): Likewise.
18564 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
18565 "table".
18566 (patch_jump_insn): Introduce local "table", using it in place of
18567 "tmp" for jump table data.
18568 (force_nonfallthru_and_redirect): Introduce local "table", so that
18569 call to tablejump_p can receive an rtx_jump_table_data **. Update
18570 logic around the call to overwrite "note" appropriately if
18571 tablejump_p returns non-zero.
18572 (get_last_bb_insn): Introduce local "table", using it in place of
18573 "tmp" for jump table data.
18574 * dwarf2cfi.c (create_trace_edges): Likewise.
18575
18576 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
18577 from rtx to rtx_jump_table_data *.
18578 (create_fix_barrier): Strengthen local "tmp" from rtx to
18579 rtx_jump_table_data *.
18580 (arm_reorg): Likewise for local "table".
18581
18582 * config/s390/s390.c (s390_chunkify_start): Likewise.
18583
18584 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
18585
18586 * jump.c (delete_related_insns): Strengthen local "lab_next" from
18587 rtx to rtx_jump_table_data *.
18588
18589 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
18590 rtx_jump_table_data **. Add a checked cast when writing through
18591 the pointer: we know there that local "table" is non-NULL and that
18592 JUMP_TABLE_DATA_P (table) holds.
18593 (label_is_jump_target_p): Introduce local "table", using it in
18594 place of "tmp" for jump table data.
18595
18596 2014-08-19 Marek Polacek <polacek@redhat.com>
18597
18598 PR c++/62153
18599 * doc/invoke.texi: Document -Wbool-compare.
18600
18601 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18602
18603 * rtl.h (entry_of_function): Strengthen return type from rtx to
18604 rtx_insn *.
18605 * cfgrtl.c (entry_of_function): Likewise.
18606
18607 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18608
18609 * emit-rtl.h (get_insns): Strengthen return type from rtx to
18610 rtx_insn *, adding a checked cast for now.
18611 (get_last_insn): Likewise.
18612
18613 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18614
18615 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
18616 rtx_code_label *.
18617
18618 * emit-rtl.c (gen_label_rtx): Likewise.
18619
18620 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18621
18622 * rtl.h (previous_insn): Strengthen return type from rtx to
18623 rtx_insn *.
18624 (next_insn): Likewise.
18625 (prev_nonnote_insn): Likewise.
18626 (prev_nonnote_insn_bb): Likewise.
18627 (next_nonnote_insn): Likewise.
18628 (next_nonnote_insn_bb): Likewise.
18629 (prev_nondebug_insn): Likewise.
18630 (next_nondebug_insn): Likewise.
18631 (prev_nonnote_nondebug_insn): Likewise.
18632 (next_nonnote_nondebug_insn): Likewise.
18633 (prev_real_insn): Likewise.
18634 (next_real_insn): Likewise.
18635 (prev_active_insn): Likewise.
18636 (next_active_insn): Likewise.
18637
18638 * emit-rtl.c (next_insn): Strengthen return type from rtx to
18639 rtx_insn *, adding a checked cast.
18640 (previous_insn): Likewise.
18641 (next_nonnote_insn): Likewise.
18642 (next_nonnote_insn_bb): Likewise.
18643 (prev_nonnote_insn): Likewise.
18644 (prev_nonnote_insn_bb): Likewise.
18645 (next_nondebug_insn): Likewise.
18646 (prev_nondebug_insn): Likewise.
18647 (next_nonnote_nondebug_insn): Likewise.
18648 (prev_nonnote_nondebug_insn): Likewise.
18649 (next_real_insn): Likewise.
18650 (prev_real_insn): Likewise.
18651 (next_active_insn): Likewise.
18652 (prev_active_insn): Likewise.
18653
18654 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
18655 param "stepfunc" so that it returns an rtx_insn * rather than an
18656 rtx, to track the change to prev_nonnote_insn_bb, which is the
18657 only function this is called with.
18658 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
18659
18660 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
18661
18662 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
18663 assert.
18664
18665 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18666
18667 * coretypes.h (class rtx_debug_insn): Add forward declaration.
18668 (class rtx_nonjump_insn): Likewise.
18669 (class rtx_jump_insn): Likewise.
18670 (class rtx_call_insn): Likewise.
18671 (class rtx_jump_table_data): Likewise.
18672 (class rtx_barrier): Likewise.
18673 (class rtx_code_label): Likewise.
18674 (class rtx_note): Likewise.
18675
18676 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
18677 adding the invariant DEBUG_INSN_P (X).
18678 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
18679 the invariant NONJUMP_INSN_P (X).
18680 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
18681 the invariant JUMP_P (X).
18682 (class rtx_call_insn): New, a subclass of rtx_insn, adding
18683 the invariant CALL_P (X).
18684 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
18685 invariant JUMP_TABLE_DATA_P (X).
18686 (class rtx_barrier): New, a subclass of rtx_insn, adding the
18687 invariant BARRIER_P (X).
18688 (class rtx_code_label): New, a subclass of rtx_insn, adding
18689 the invariant LABEL_P (X).
18690 (class rtx_note): New, a subclass of rtx_insn, adding
18691 the invariant NOTE_P(X).
18692 (is_a_helper <rtx_debug_insn *>::test): New.
18693 (is_a_helper <rtx_nonjump_insn *>::test): New.
18694 (is_a_helper <rtx_jump_insn *>::test): New.
18695 (is_a_helper <rtx_call_insn *>::test): New.
18696 (is_a_helper <rtx_jump_table_data *>::test): New functions,
18697 overloaded for both rtx and rtx_insn *.
18698 (is_a_helper <rtx_barrier *>::test): New.
18699 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
18700 for both rtx and rtx_insn *.
18701 (is_a_helper <rtx_note *>::test): New.
18702
18703 2014-08-19 Marek Polacek <polacek@redhat.com>
18704
18705 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
18706 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
18707 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
18708 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
18709
18710 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18711
18712 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
18713 rtx_insn *. To help with transition, for now, convert from an
18714 access macro into a pair of functions: BND_TO, returning an
18715 rtx_insn *, and...
18716 (SET_BND_TO): New function, for use where BND_TO is used as an
18717 lvalue.
18718
18719 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
18720 SET_BND_TO.
18721 (BND_TO): New function, adding a checked cast.
18722 (SET_BND_TO): New function.
18723
18724 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
18725 SET_BND_TO.
18726 (compute_av_set_on_boundaries): Likewise.
18727
18728 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
18729
18730 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
18731 destination if it is used in source.
18732 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
18733 (*popcount<mode>2_falsedep_1): Likewise.
18734
18735 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
18736
18737 PR other/62168
18738 * configure.ac: Set install_gold_as_default to no first.
18739 * configure: Regenerated.
18740
18741 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18742
18743 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
18744 "note_list" field will eventually be an rtx_insn *. To help with
18745 transition, for now, convert from an access macro into a pair of
18746 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
18747 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
18748 used as an lvalue.
18749
18750 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
18751 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
18752
18753 * sel-sched-ir.c (init_bb): Likewise.
18754 (sel_restore_notes): Likewise.
18755 (move_bb_info): Likewise.
18756 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
18757 (SET_BB_NOTE_LIST): New function.
18758
18759 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18760
18761 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
18762 field will eventually be an rtx_insn *. To help with transition,
18763 for now, convert from an access macro into a pair of functions:
18764 VINSN_INSN_RTX, returning an rtx_insn *, and...
18765 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
18766 is used as an lvalue.
18767
18768 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
18769 SET_VINSN_INSN_RTX where it's used as an lvalue.
18770 (VINSN_INSN_RTX): New function.
18771 (SET_VINSN_INSN_RTX): New function.
18772
18773 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18774
18775 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
18776 eventually be rtx_insn *, but to help with transition, for now,
18777 convert from an access macro into a pair of functions: DEP_PRO
18778 returning an rtx_insn * and...
18779 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
18780 lvalue, returning an rtx&.
18781 (DEP_CON): Analogous changes to DEP_PRO above.
18782 (SET_DEP_CON): Likewise.
18783
18784 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
18785 an lvalue to SET_DEP_CON.
18786 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
18787 (sd_copy_back_deps): Likewise for DEP_CON.
18788 (DEP_PRO): New function, adding a checked cast for now.
18789 (DEP_CON): Likewise.
18790 (SET_DEP_PRO): New function.
18791 (SET_DEP_CON): Likewise.
18792
18793 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
18794
18795 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
18796 (extra_options): Add i386/cygwin.opt.
18797 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
18798 (CPP_SPEC): Accept -pthread.
18799 (LINK_SPEC): Ditto.
18800 (GOMP_SELF_SPECS): Update comment.
18801 * config/i386/cygwin.opt: New file for -pthread flag.
18802
18803 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18804
18805 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
18806 * df.h (DF_REF_INSN): Convert from a macro to a function, so
18807 that we can return an rtx_insn *.
18808
18809 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
18810
18811 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
18812 when building executables, not DLLs. Add --large-address-aware
18813 under the same conditions.
18814 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
18815 when building executables, not DLLs. Add --large-address-aware
18816 under the same conditions when using -m32.
18817
18818 * config/i386/cygwin-stdint.h: Throughout, make type
18819 definitions dependent on target architecture, not host.
18820
18821 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18822
18823 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
18824 the return type from rtx to rtx_insn *, which will enable various
18825 conversions in followup patches. For now this is is done by a
18826 checked cast.
18827 (NEXT_INSN): Likewise.
18828 (SET_PREV_INSN): Convert to an inline function. This is intended
18829 for use as an lvalue, and so returns an rtx& to allow in-place
18830 modification.
18831 (SET_NEXT_INSN): Likewise.
18832
18833 2014-07-08 Mark Wielaard <mjw@redhat.com>
18834
18835 PR debug/59051
18836 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
18837
18838 2014-08-19 Marek Polacek <polacek@redhat.com>
18839
18840 PR c/61271
18841 * cgraphunit.c (handle_alias_pairs): Fix condition.
18842
18843 2014-08-19 Richard Biener <rguenther@suse.de>
18844
18845 * gimple-fold.c (fold_gimple_assign): Properly build a
18846 null-pointer constant when devirtualizing addresses.
18847
18848 2014-07-07 Mark Wielaard <mjw@redhat.com>
18849
18850 * dwarf2out.c (decl_quals): New function.
18851 (modified_type_die): Take one cv_quals argument instead of two,
18852 one for const and one for volatile.
18853 (add_type_attribute): Likewise.
18854 (generic_parameter_die): Call add_type_attribute with one modifier
18855 argument.
18856 (base_type_for_mode): Likewise.
18857 (add_bounds_info): Likewise.
18858 (add_subscript_info): Likewise.
18859 (gen_array_type_die): Likewise.
18860 (gen_descr_array_type_die): Likewise.
18861 (gen_entry_point_die): Likewise.
18862 (gen_enumeration_type_die): Likewise.
18863 (gen_formal_parameter_die): Likewise.
18864 (gen_subprogram_die): Likewise.
18865 (gen_variable_die): Likewise.
18866 (gen_const_die): Likewise.
18867 (gen_field_die): Likewise.
18868 (gen_pointer_type_die): Likewise.
18869 (gen_reference_type_die): Likewise.
18870 (gen_ptr_to_mbr_type_die): Likewise.
18871 (gen_inheritance_die): Likewise.
18872 (gen_subroutine_type_die): Likewise.
18873 (gen_typedef_die): Likewise.
18874 (force_type_die): Likewise.
18875
18876 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18877
18878 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
18879 if unset.
18880 * configure: Regenerate.
18881
18882 2014-08-19 Richard Biener <rguenther@suse.de>
18883
18884 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
18885 DECL_EXTERNALs in BLOCKs as non-references.
18886 * tree-streamer-out.c (streamer_write_chain): Likewise.
18887
18888 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
18889 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
18890 Anna Tikhonova <anna.tikhonova@intel.com>
18891 Ilya Tocar <ilya.tocar@intel.com>
18892 Andrey Turetskiy <andrey.turetskiy@intel.com>
18893 Ilya Verbin <ilya.verbin@intel.com>
18894 Kirill Yukhin <kirill.yukhin@intel.com>
18895 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
18896
18897 * config/i386/sse.md
18898 (define_mode_iterator VI48_AVX512F): Delete.
18899 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
18900 (define_mode_iterator VI2_AVX512VL): Ditto.
18901 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
18902 Delete.
18903 (define_insn
18904 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
18905 New.
18906 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
18907 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
18908 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
18909 with VI48_AVX512F_AVX512VL): New.
18910 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
18911 with VI2_AVX512VL): Ditto.
18912
18913 2014-08-19 Marek Polacek <polacek@redhat.com>
18914
18915 * doc/invoke.texi: Document -Wc99-c11-compat.
18916
18917 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18918
18919 * rtl.h (PREV_INSN): Split macro in two: the existing one,
18920 for rvalues, and...
18921 (SET_PREV_INSN): New macro, for use as an lvalue.
18922 (NEXT_INSN, SET_NEXT_INSN): Likewise.
18923
18924 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
18925 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
18926 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
18927 (fixup_abnormal_edges): Likewise.
18928 (unlink_insn_chain): Likewise.
18929 (fixup_reorder_chain): Likewise.
18930 (cfg_layout_delete_block): Likewise.
18931 (cfg_layout_merge_blocks): Likewise.
18932 * combine.c (update_cfg_for_uncondjump): Likewise.
18933 * emit-rtl.c (link_insn_into_chain): Likewise.
18934 (remove_insn): Likewise.
18935 (delete_insns_since): Likewise.
18936 (reorder_insns_nobb): Likewise.
18937 (emit_insn_after_1): Likewise.
18938 * final.c (rest_of_clean_state): Likewise.
18939 (final_scan_insn): Likewise.
18940 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
18941 * haifa-sched.c (concat_note_lists): Likewise.
18942 (remove_notes): Likewise.
18943 (restore_other_notes): Likewise.
18944 (move_insn): Likewise.
18945 (unlink_bb_notes): Likewise.
18946 (restore_bb_notes): Likewise.
18947 * jump.c (delete_for_peephole): Likewise.
18948 * optabs.c (emit_libcall_block_1): Likewise.
18949 * reorg.c (emit_delay_sequence): Likewise.
18950 (fill_simple_delay_slots): Likewise.
18951 * sel-sched-ir.c (sel_move_insn): Likewise.
18952 (sel_remove_insn): Likewise.
18953 (get_bb_note_from_pool): Likewise.
18954 * sel-sched.c (move_nop_to_previous_block): Likewise.
18955
18956 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
18957 * config/c6x/c6x.c (gen_one_bundle): Likewise.
18958 (c6x_gen_bundles): Likewise.
18959 (hwloop_optimize): Likewise.
18960 * config/frv/frv.c (frv_function_prologue): Likewise.
18961 (frv_register_nop): Likewise.
18962 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
18963 (ia64_reorg): Likewise.
18964 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
18965 (mep_make_bundle): Likewise.
18966 (mep_bundle_insns): Likewise.
18967 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
18968 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
18969 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
18970
18971 2014-08-19 David Malcolm <dmalcolm@redhat.com>
18972
18973 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
18974 return type from rtx to rtx_insn *.
18975 (BB_END): Likewise.
18976 (BB_HEADER): Likewise.
18977 (BB_FOOTER): Likewise.
18978 (SET_BB_HEAD): Convert to a function.
18979 (SET_BB_END): Likewise.
18980 (SET_BB_HEADER): Likewise.
18981 (SET_BB_FOOTER): Likewise.
18982
18983 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
18984 Strengthen the return type from rtx to rtx_insn *. For now, this
18985 is done by adding a checked cast, but this will eventually
18986 become a field lookup.
18987 (BB_END): Likewise.
18988 (BB_HEADER): Likewise.
18989 (BB_FOOTER): Likewise.
18990 (SET_BB_HEAD): New function, from macro of same name. This is
18991 intended for use as an lvalue, and so returns an rtx& to allow
18992 in-place modification.
18993 (SET_BB_END): Likewise.
18994 (SET_BB_HEADER): Likewise.
18995 (SET_BB_FOOTER): Likewise.
18996
18997 2014-08-18 David Malcolm <dmalcolm@redhat.com>
18998
18999 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
19000 for rvalues, and...
19001 (SET_BB_HEAD): New macro, for use as a lvalue.
19002 (BB_END, SET_BB_END): Likewise.
19003 (BB_HEADER, SET_BB_HEADER): Likewise.
19004 (BB_FOOTER, SET_BB_FOOTER): Likewise.
19005
19006 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
19007 of BB_* macros into SET_BB_* macros.
19008 (fix_crossing_unconditional_branches): Likewise.
19009 * caller-save.c (save_call_clobbered_regs): Likewise.
19010 (insert_one_insn): Likewise.
19011 * cfgbuild.c (find_bb_boundaries): Likewise.
19012 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
19013 (outgoing_edges_match): Likewise.
19014 (try_optimize_cfg): Likewise.
19015 * cfgexpand.c (expand_gimple_cond): Likewise.
19016 (expand_gimple_tailcall): Likewise.
19017 (expand_gimple_basic_block): Likewise.
19018 (construct_exit_block): Likewise.
19019 * cfgrtl.c (delete_insn): Likewise.
19020 (create_basic_block_structure): Likewise.
19021 (rtl_delete_block): Likewise.
19022 (rtl_split_block): Likewise.
19023 (emit_nop_for_unique_locus_between): Likewise.
19024 (rtl_merge_blocks): Likewise.
19025 (block_label): Likewise.
19026 (try_redirect_by_replacing_jump): Likewise.
19027 (emit_barrier_after_bb): Likewise.
19028 (fixup_abnormal_edges): Likewise.
19029 (record_effective_endpoints): Likewise.
19030 (relink_block_chain): Likewise.
19031 (fixup_reorder_chain): Likewise.
19032 (fixup_fallthru_exit_predecessor): Likewise.
19033 (cfg_layout_duplicate_bb): Likewise.
19034 (cfg_layout_split_block): Likewise.
19035 (cfg_layout_delete_block): Likewise.
19036 (cfg_layout_merge_blocks): Likewise.
19037 * combine.c (update_cfg_for_uncondjump): Likewise.
19038 * emit-rtl.c (add_insn_after): Likewise.
19039 (remove_insn): Likewise.
19040 (reorder_insns): Likewise.
19041 (emit_insn_after_1): Likewise.
19042 * haifa-sched.c (get_ebb_head_tail): Likewise.
19043 (restore_other_notes): Likewise.
19044 (move_insn): Likewise.
19045 (sched_extend_bb): Likewise.
19046 (fix_jump_move): Likewise.
19047 * ifcvt.c (noce_process_if_block): Likewise.
19048 (dead_or_predicable): Likewise.
19049 * ira.c (update_equiv_regs): Likewise.
19050 * reg-stack.c (change_stack): Likewise.
19051 * sel-sched-ir.c (sel_move_insn): Likewise.
19052 * sel-sched.c (move_nop_to_previous_block): Likewise.
19053
19054 * config/c6x/c6x.c (hwloop_optimize): Likewise.
19055 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
19056
19057 2014-08-18 David Malcolm <dmalcolm@redhat.com>
19058
19059 * rtl.h (for_each_rtx_in_insn): New function.
19060 * rtlanal.c (for_each_rtx_in_insn): Likewise.
19061
19062 2014-08-18 David Malcolm <dmalcolm@redhat.com>
19063
19064 * coretypes.h (class rtx_insn): Add forward declaration.
19065
19066 * rtl.h: Include is-a.h.
19067 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
19068 workaround to ensure gengtype knows inheritance is occurring,
19069 whilst continuing to use the pre-existing special-casing for
19070 rtx_def.
19071 (class rtx_insn): New subclass of rtx_def, adding the
19072 invariant that we're dealing with something we can sanely use
19073 INSN_UID, NEXT_INSN, PREV_INSN on.
19074 (is_a_helper <rtx_insn *>::test): New.
19075 (is_a_helper <const rtx_insn *>::test): New.
19076
19077 2014-08-18 David Malcolm <dmalcolm@redhat.com>
19078
19079 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
19080
19081 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
19082
19083 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
19084 comdats as extern.
19085
19086 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
19087
19088 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
19089 to BUILT_IN_UNREACHABLE.
19090
19091 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
19092
19093 PR target/62011
19094 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
19095 New tune flag.
19096 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
19097 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
19098 (ffs<mode>2): Do not expand with tzcnt for
19099 TARGET_AVOID_FALSE_DEP_FOR_BMI.
19100 (ffssi2_no_cmove): Ditto.
19101 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
19102 (ctz<mode>2): New expander.
19103 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
19104 (*ctz<mode>2_falsedep): New insn.
19105 (*ctz<mode>2): Rename from ctz<mode>2.
19106 (clz<mode>2_lzcnt): New expander.
19107 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
19108 (*clz<mode>2_lzcnt_falsedep): New insn.
19109 (*clz<mode>2): Rename from ctz<mode>2.
19110 (popcount<mode>2): New expander.
19111 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
19112 (*popcount<mode>2_falsedep): New insn.
19113 (*popcount<mode>2): Rename from ctz<mode>2.
19114 (*popcount<mode>2_cmp): Remove.
19115 (*popcountsi2_cmp_zext): Ditto.
19116
19117 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
19118
19119 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
19120 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
19121 * config/microblaze/microblaze.h
19122 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
19123
19124 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
19125
19126 PR other/62168
19127 * configure.ac: Set install_gold_as_default to no for
19128 --enable-gold=no.
19129 * configure: Regenerated.
19130
19131 2014-08-18 Roman Gareev <gareevroman@gmail.com>
19132
19133 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
19134 * config.in: Add undef of HAVE_isl.
19135 * configure: Regenerate.
19136 * configure.ac: Add definition of HAVE_isl.
19137 * graphite-blocking.c: Add checking of HAVE_isl.
19138 * graphite-dependences.c: Likewise.
19139 * graphite-interchange.c: Likewise.
19140 * graphite-isl-ast-to-gimple.c: Likewise.
19141 * graphite-optimize-isl.c: Likewise.
19142 * graphite-poly.c: Likewise.
19143 * graphite-scop-detection.c: Likewise.
19144 * graphite-sese-to-poly.c: Likewise.
19145 * graphite.c: Likewise.
19146 * toplev.c: Replace the checking of HAVE_cloog with the checking
19147 of HAVE_isl.
19148
19149 2014-08-18 Richard Biener <rguenther@suse.de>
19150
19151 PR tree-optimization/62090
19152 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
19153 (fold_builtin_3): Do not fold snprintf.
19154 (fold_builtin_4): Likewise.
19155 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
19156 moved from builtins.c.
19157 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
19158 (gimple_fold_builtin): Do not fold sprintf here.
19159
19160 2014-08-18 Richard Biener <rguenther@suse.de>
19161
19162 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
19163 code to ...
19164 (maybe_canonicalize_mem_ref_addr): ... this function.
19165 (fold_stmt_1): Apply it here before all simplification.
19166
19167 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
19168
19169 PR ipa/61800
19170 * cgraph.h (cgraph_node::create_indirect_edge): Add
19171 compute_indirect_info param.
19172 * cgraph.c (cgraph_node::create_indirect_edge): Compute
19173 indirect_info only when it is required.
19174 * cgraphclones.c (cgraph_clone_edge): Do not recompute
19175 indirect_info fore cloned indirect edge.
19176
19177 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
19178 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19179 Anna Tikhonova <anna.tikhonova@intel.com>
19180 Ilya Tocar <ilya.tocar@intel.com>
19181 Andrey Turetskiy <andrey.turetskiy@intel.com>
19182 Ilya Verbin <ilya.verbin@intel.com>
19183 Kirill Yukhin <kirill.yukhin@intel.com>
19184 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19185
19186 * config/i386/sse.md
19187 (define_mode_iterator VI8_AVX2_AVX512BW): New.
19188 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
19189
19190 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
19191 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19192 Anna Tikhonova <anna.tikhonova@intel.com>
19193 Ilya Tocar <ilya.tocar@intel.com>
19194 Andrey Turetskiy <andrey.turetskiy@intel.com>
19195 Ilya Verbin <ilya.verbin@intel.com>
19196 Kirill Yukhin <kirill.yukhin@intel.com>
19197 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19198
19199 * config/i386/sse.md
19200 (define_mode_iterator VF1_AVX512VL): New.
19201 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
19202 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
19203 New.
19204
19205 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
19206 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19207 Anna Tikhonova <anna.tikhonova@intel.com>
19208 Ilya Tocar <ilya.tocar@intel.com>
19209 Andrey Turetskiy <andrey.turetskiy@intel.com>
19210 Ilya Verbin <ilya.verbin@intel.com>
19211 Kirill Yukhin <kirill.yukhin@intel.com>
19212 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19213
19214 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
19215 * config/i386/i386.md
19216 (define_code_iterator any_float): New.
19217 (define_code_attr floatsuffix): New.
19218 * config/i386/sse.md
19219 (define_mode_iterator VF1_128_256VL): New.
19220 (define_mode_iterator VF2_512_256VL): New.
19221 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
19222 TARGET check.
19223 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
19224 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
19225 New.
19226 (define_mode_attr qq2pssuff): New.
19227 (define_mode_attr sselongvecmode): New.
19228 (define_mode_attr sselongvecmodelower): New.
19229 (define_mode_attr sseintvecmode3): New.
19230 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
19231 New.
19232 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
19233 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
19234 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
19235 (define_insn "ufloatv2siv2df2<mask_name>"): New.
19236
19237 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
19238 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19239 Anna Tikhonova <anna.tikhonova@intel.com>
19240 Ilya Tocar <ilya.tocar@intel.com>
19241 Andrey Turetskiy <andrey.turetskiy@intel.com>
19242 Ilya Verbin <ilya.verbin@intel.com>
19243 Kirill Yukhin <kirill.yukhin@intel.com>
19244 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19245
19246 * config/i386/sse.md
19247 (define_mode_iterator VF2_AVX512VL): New.
19248 (define_mode_attr sseintvecmode2): New.
19249 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
19250 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
19251 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
19252 (define_insn
19253 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
19254 Ditto.
19255 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
19256 Ditto.
19257 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
19258 Ditto.
19259
19260 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
19261 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19262 Anna Tikhonova <anna.tikhonova@intel.com>
19263 Ilya Tocar <ilya.tocar@intel.com>
19264 Andrey Turetskiy <andrey.turetskiy@intel.com>
19265 Ilya Verbin <ilya.verbin@intel.com>
19266 Kirill Yukhin <kirill.yukhin@intel.com>
19267 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19268
19269 * config/i386/i386.md
19270 (define_insn "*movoi_internal_avx"): Add evex version.
19271 (define_insn "*movti_internal"): Ditto.
19272
19273 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
19274 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19275 Anna Tikhonova <anna.tikhonova@intel.com>
19276 Ilya Tocar <ilya.tocar@intel.com>
19277 Andrey Turetskiy <andrey.turetskiy@intel.com>
19278 Ilya Verbin <ilya.verbin@intel.com>
19279 Kirill Yukhin <kirill.yukhin@intel.com>
19280 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19281
19282 * config/i386/i386.md
19283 (define_attr "isa"): Add avx512dq, noavx512dq.
19284 (define_attr "enabled"): Ditto.
19285 * config/i386/sse.md
19286 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
19287
19288 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
19289 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19290 Anna Tikhonova <anna.tikhonova@intel.com>
19291 Ilya Tocar <ilya.tocar@intel.com>
19292 Andrey Turetskiy <andrey.turetskiy@intel.com>
19293 Ilya Verbin <ilya.verbin@intel.com>
19294 Kirill Yukhin <kirill.yukhin@intel.com>
19295 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19296
19297 * config/i386/i386.c
19298 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
19299 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
19300 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
19301 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
19302 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
19303 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
19304 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
19305 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
19306 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
19307 * config/i386/sse.md
19308 (define_mode_iterator VMOVE): Allow V4TI mode.
19309 (define_mode_iterator V_AVX512VL): New.
19310 (define_mode_iterator V): New handling for AVX512VL.
19311 (define_insn "avx512f_load<mode>_mask"): Delete.
19312 (define_insn "<avx512>_load<mode>_mask"): New.
19313 (define_insn "avx512f_store<mode>_mask"): Delete.
19314 (define_insn "<avx512>_store<mode>_mask"): New.
19315
19316
19317 2014-08-18 Yury Gribov <y.gribov@samsung.com>
19318
19319 PR sanitizer/62089
19320 * asan.c (instrument_derefs): Fix bitfield check.
19321
19322 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
19323
19324 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
19325 * config/rs6000/htm.md (ttest): Remove clobber.
19326 * config/rs6000/predicates.md (any_mask_operand): New predicate.
19327 (and_operand): Reformat.
19328 (and_2rld_operand): New predicate.
19329 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
19330 parameter.
19331 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
19332 parameter. Handle AND directly.
19333 (rs6000_split_logical_di): Remove last parameter.
19334 (rs6000_split_logical): Remove last parameter. Remove obsolete
19335 comment.
19336 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
19337 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
19338 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
19339 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
19340 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
19341 and 5 anonymous splitters): Delete.
19342 (and<mode>3): New expander.
19343 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
19344 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
19345 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
19346 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
19347 (floatdisf2_internal1): Remove clobbers.
19348 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
19349 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
19350 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
19351 (and<mode>3 for BOOL_128): Remove clobber.
19352 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
19353 rs6000_split_logical.
19354 (*bool<mode>3_internal for BOOL_128): Adjust call of
19355 rs6000_split_logical.
19356 (*boolc<mode>3_internal1 for BOOL_128,
19357 *boolc<mode>3_internal2 for BOOL_128,
19358 *boolcc<mode>3_internal1 for BOOL_128,
19359 *boolcc<mode>3_internal2 for BOOL_128,
19360 *eqv<mode>3_internal1 for BOOL_128,
19361 *eqv<mode>3_internal2 for BOOL_128,
19362 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
19363 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
19364 clobber.
19365 (*vec_reload_and_reg_<mptrsize>): Delete.
19366
19367 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
19368
19369 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
19370 and split, *boolccsi3_internal3 and split): Delete.
19371 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
19372 *boolccdi3_internal3 and split): Delete.
19373 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
19374 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
19375
19376 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
19377
19378 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
19379 and split, *boolcsi3_internal3 and split): Delete.
19380 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
19381 *boolcdi3_internal3 and split): Delete.
19382 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
19383
19384 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
19385
19386 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
19387 <'u'>: Also support printing the low-order 16 bits.
19388 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
19389 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
19390 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
19391 *booldi3_internal3 and split): Delete.
19392 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
19393 *bool<mode>3_dot2): New.
19394 (two anonymous define_splits for non_logical_cint_operand): Merge.
19395
19396 2014-08-17 Marek Polacek <polacek@redhat.com>
19397 Manuel López-Ibáñez <manu@gcc.gnu.org>
19398
19399 PR c/62059
19400 * diagnostic.c (adjust_line): Add gcc_checking_assert.
19401 (diagnostic_show_locus): Don't print caret diagnostic
19402 if a column is larger than the line_width.
19403
19404 2014-08-17 Roman Gareev <gareevroman@gmail.com>
19405
19406 * common.opt: Make the ISL AST generator to be the main code generator
19407 of Graphite.
19408
19409 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
19410
19411 * wide-int.h (generic_wide_int): Declare as class instead of struct.
19412
19413 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
19414
19415 PR target/61641
19416 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
19417 Declare.
19418 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
19419 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
19420 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
19421 Define.
19422 * config/pa/pa.md (begin_brtab): Delete insn.
19423 (end_brtab): Likewise.
19424
19425 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
19426
19427 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
19428
19429 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
19430
19431 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
19432 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
19433 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
19434 (get_dynamic_type): Remove.
19435 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
19436 (clear_speculation): Bring to ipa-deivrt.h
19437 (get_class_context): Rename to ...
19438 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
19439 (contains_type_p): Update.
19440 (get_dynamic_type): Rename to ...
19441 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
19442 (possible_polymorphic_call_targets): UPdate.
19443 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
19444 * ipa-prop.c (ipa_analyze_call_uses): Update.
19445
19446 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
19447
19448 * doc/invoke.texi (SH options): Document missing processor variant
19449 options. Remove references to Hitachi. Undocument deprecated mspace
19450 option.
19451
19452 2014-08-15 Jason Merrill <jason@redhat.com>
19453
19454 * tree.c (type_hash_canon): Uncomment assert.
19455
19456 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
19457
19458 * input.h (in_system_header_at): Add comment.
19459
19460 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
19461
19462 PR fortran/44054
19463 * diagnostic.c (build_message_string): Make it extern.
19464 * diagnostic.h (build_message_string): Make it extern.
19465
19466 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
19467
19468 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
19469 load/store from/to non-floating class pseudo.
19470
19471 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
19472
19473 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
19474
19475 2014-08-15 Richard Biener <rguenther@suse.de>
19476
19477 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
19478 (get_constraint_for_ssa_var): Remove dead code.
19479 (get_constraint_for_1): Adjust.
19480 (find_what_var_points_to): Likewise.
19481 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
19482
19483 2014-08-15 Ilya Tocar <tocarip@gmail.com>
19484
19485 PR target/61878
19486 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
19487 (_mm512_mask_cmpge_epu32_mask): Ditto.
19488 (_mm512_cmpge_epu32_mask): Ditto.
19489 (_mm512_mask_cmpge_epi64_mask): Ditto.
19490 (_mm512_cmpge_epi64_mask): Ditto.
19491 (_mm512_mask_cmpge_epu64_mask): Ditto.
19492 (_mm512_cmpge_epu64_mask): Ditto.
19493 (_mm512_mask_cmple_epi32_mask): Ditto.
19494 (_mm512_cmple_epi32_mask): Ditto.
19495 (_mm512_mask_cmple_epu32_mask): Ditto.
19496 (_mm512_cmple_epu32_mask): Ditto.
19497 (_mm512_mask_cmple_epi64_mask): Ditto.
19498 (_mm512_cmple_epi64_mask): Ditto.
19499 (_mm512_mask_cmple_epu64_mask): Ditto.
19500 (_mm512_cmple_epu64_mask): Ditto.
19501 (_mm512_mask_cmplt_epi32_mask): Ditto.
19502 (_mm512_cmplt_epi32_mask): Ditto.
19503 (_mm512_mask_cmplt_epu32_mask): Ditto.
19504 (_mm512_cmplt_epu32_mask): Ditto.
19505 (_mm512_mask_cmplt_epi64_mask): Ditto.
19506 (_mm512_cmplt_epi64_mask): Ditto.
19507 (_mm512_mask_cmplt_epu64_mask): Ditto.
19508 (_mm512_cmplt_epu64_mask): Ditto.
19509 (_mm512_mask_cmpneq_epi32_mask): Ditto.
19510 (_mm512_mask_cmpneq_epu32_mask): Ditto.
19511 (_mm512_cmpneq_epu32_mask): Ditto.
19512 (_mm512_mask_cmpneq_epi64_mask): Ditto.
19513 (_mm512_cmpneq_epi64_mask): Ditto.
19514 (_mm512_mask_cmpneq_epu64_mask): Ditto.
19515 (_mm512_cmpneq_epu64_mask): Ditto.
19516 (_mm512_castpd_ps): Ditto.
19517 (_mm512_castpd_si512): Ditto.
19518 (_mm512_castps_pd): Ditto.
19519 (_mm512_castps_si512): Ditto.
19520 (_mm512_castsi512_ps): Ditto.
19521 (_mm512_castsi512_pd): Ditto.
19522 (_mm512_castpd512_pd128): Ditto.
19523 (_mm512_castps512_ps128): Ditto.
19524 (_mm512_castsi512_si128): Ditto.
19525 (_mm512_castpd512_pd256): Ditto.
19526 (_mm512_castps512_ps256): Ditto.
19527 (_mm512_castsi512_si256): Ditto.
19528 (_mm512_castpd128_pd512): Ditto.
19529 (_mm512_castps128_ps512): Ditto.
19530 (_mm512_castsi128_si512): Ditto.
19531 (_mm512_castpd256_pd512): Ditto.
19532 (_mm512_castps256_ps512): Ditto.
19533 (_mm512_castsi256_si512): Ditto.
19534 (_mm512_cmpeq_epu32_mask): Ditto.
19535 (_mm512_mask_cmpeq_epu32_mask): Ditto.
19536 (_mm512_mask_cmpeq_epu64_mask): Ditto.
19537 (_mm512_cmpeq_epu64_mask): Ditto.
19538 (_mm512_cmpgt_epu32_mask): Ditto.
19539 (_mm512_mask_cmpgt_epu32_mask): Ditto.
19540 (_mm512_mask_cmpgt_epu64_mask): Ditto.
19541 (_mm512_cmpgt_epu64_mask): Ditto.
19542 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
19543 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
19544 * config/i386/i386.c (enum ix86_builtins): Add
19545 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
19546 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
19547 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
19548 (bdesc_args): Add __builtin_ia32_si512_256si,
19549 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
19550 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
19551 __builtin_ia32_pd512_pd.
19552 (ix86_expand_args_builtin): Handle new FTYPEs.
19553 * config/i386/sse.md (castmode): Add 512-bit modes.
19554 (AVX512MODE2P): New.
19555 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
19556 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
19557
19558 2014-08-15 Richard Biener <rguenther@suse.de>
19559
19560 * fold-const.c (tree_swap_operands_p): Put all constants
19561 last, also strip sign-changing NOPs when considering further
19562 canonicalization. Canonicalize also when optimizing for size.
19563
19564 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19565
19566 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
19567 one_match > zero_match case to just before simple_sequence.
19568
19569 2014-08-15 Richard Biener <rguenther@suse.de>
19570
19571 * data-streamer.h (streamer_string_index, string_for_index):
19572 Remove.
19573 * data-streamer-out.c (streamer_string_index): Make static.
19574 * data-streamer-in.c (string_for_index): Likewise.
19575 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
19576 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
19577
19578 2014-08-15 Richard Biener <rguenther@suse.de>
19579
19580 PR tree-optimization/62031
19581 * tree-data-ref.c (dr_analyze_indices): Do not set
19582 DR_UNCONSTRAINED_BASE.
19583 (dr_may_alias_p): All indirect accesses have to go the
19584 formerly DR_UNCONSTRAINED_BASE path.
19585 * tree-data-ref.h (struct indices): Remove
19586 unconstrained_base member.
19587 (DR_UNCONSTRAINED_BASE): Remove.
19588
19589 2014-08-15 Jakub Jelinek <jakub@redhat.com>
19590
19591 PR middle-end/62092
19592 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
19593 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
19594 in OMP_CLAUSE_MAP in some outer target region.
19595
19596 2014-08-15 Bin Cheng <bin.cheng@arm.com>
19597
19598 * tree-ssa-loop-ivopts.c (ivopts_data): New field
19599 name_expansion_cache.
19600 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
19601 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
19602 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
19603 (difference_cannot_overflow_p): New parameter. Use affine
19604 expansion for equality check.
19605 (iv_elimination_compare_lt): Pass new argument.
19606
19607 2014-08-14 DJ Delorie <dj@redhat.com>
19608
19609 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
19610 variables to the accumulator.
19611
19612 * config/rl78/predicates.md (rl78_near_mem_operand): New.
19613 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
19614 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
19615 with far-far moves.
19616
19617 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
19618 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
19619 (umulqihi3_virt): Likewise.
19620 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
19621 (umulqihi3_real): Likewise.
19622
19623 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
19624
19625 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
19626
19627 PR tree-optimization/62091
19628 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
19629 function_entry_reached.
19630 (walk_aliased_vdefs): Clear it here.
19631 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
19632
19633 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
19634
19635 * ipa-utils.h (compare_virtual_tables): Declare.
19636 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
19637
19638 2014-08-14 Marek Polacek <polacek@redhat.com>
19639
19640 DR 458
19641 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
19642 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
19643
19644 2014-08-14 Tom de Vries <tom@codesourcery.com>
19645
19646 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
19647
19648 2014-08-14 Tom de Vries <tom@codesourcery.com>
19649
19650 PR rtl-optimization/62004
19651 PR rtl-optimization/62030
19652 * ifcvt.c (rtx_interchangeable_p): New function.
19653 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
19654 * emit-rtl.h (mem_attrs_eq_p): Declare.
19655
19656 2014-08-14 Roman Gareev <gareevroman@gmail.com>
19657
19658 * graphite-scop-detection.c:
19659 Add inclusion of cp-tree.h.
19660 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
19661 in case they are pointers to object types
19662
19663 2014-08-14 Richard Biener <rguenther@suse.de>
19664
19665 * BASE-VER: Change to 5.0.0
19666
19667 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
19668 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19669 Anna Tikhonova <anna.tikhonova@intel.com>
19670 Ilya Tocar <ilya.tocar@intel.com>
19671 Andrey Turetskiy <andrey.turetskiy@intel.com>
19672 Ilya Verbin <ilya.verbin@intel.com>
19673 Kirill Yukhin <kirill.yukhin@intel.com>
19674 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19675
19676 * config/i386/sse.md (define_mode_attr avx512): New.
19677 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
19678 V4DI modes.
19679 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
19680 (define_mode_attr ssse3_avx2): Ditto.
19681 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
19682 (define_mode_attr avx2_avx512bw): New.
19683 (define_mode_attr ssedoublemodelower): New.
19684 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
19685 V32HI, V64QI modes.
19686 (define_mode_attr ssebytemode): Allow V8DI modes.
19687 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
19688 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
19689 (define_mode_attr ssePSmode2): New.
19690 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
19691 V16HI, V32HI modes.
19692 (define_mode_attr dbpsadbwmode): New.
19693 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
19694 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
19695 (vi8_sse4_1_avx2_avx512): New.
19696 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
19697 mode attribute.
19698 (define_mode_attr blendbits): Move before its immediate use.
19699
19700 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
19701 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19702 Anna Tikhonova <anna.tikhonova@intel.com>
19703 Ilya Tocar <ilya.tocar@intel.com>
19704 Andrey Turetskiy <andrey.turetskiy@intel.com>
19705 Ilya Verbin <ilya.verbin@intel.com>
19706 Kirill Yukhin <kirill.yukhin@intel.com>
19707 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19708
19709 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
19710 * config/i386/subst.md
19711 (define_mode_iterator SUBST_V): Update.
19712 (define_mode_iterator SUBST_A): Ditto.
19713 (define_subst_attr "mask_operand7"): New.
19714 (define_subst_attr "mask_operand10"): New.
19715 (define_subst_attr "mask_operand_arg34") : New.
19716 (define_subst_attr "mask_expand_op3"): New.
19717 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
19718 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
19719 (define_subst_attr "mask_avx512vl_condition"): New.
19720 (define_subst_attr "round_mask_operand4"): Ditto.
19721 (define_subst_attr "round_mask_scalar_op3"): Delete.
19722 (define_subst_attr "round_mask_op4"): New.
19723 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
19724 V16SImode.
19725 (define_subst_attr "round_modev8sf_condition"): New.
19726 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
19727 <MODE>mode.
19728 (define_subst_attr "round_saeonly_mask_operand4"): New.
19729 (define_subst_attr "round_saeonly_mask_op4"): New.
19730 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
19731 V8DImode, V16SImode.
19732 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
19733 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
19734 (define_subst_attr "mask_expand4_args"): New.
19735 (define_subst "mask_expand4"): New.
19736
19737 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
19738 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19739 Anna Tikhonova <anna.tikhonova@intel.com>
19740 Ilya Tocar <ilya.tocar@intel.com>
19741 Andrey Turetskiy <andrey.turetskiy@intel.com>
19742 Ilya Verbin <ilya.verbin@intel.com>
19743 Kirill Yukhin <kirill.yukhin@intel.com>
19744 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19745
19746 * config/i386/i386.md
19747 (define_attr "isa"): Add avx512bw,noavx512bw.
19748 (define_attr "enabled"): Ditto.
19749 (define_split): Add 32/64-bit mask logic.
19750 (define_insn "*k<logic>qi"): New.
19751 (define_insn "*k<logic>hi"): New.
19752 (define_insn "*anddi_1"): Add mask version.
19753 (define_insn "*andsi_1"): Ditto.
19754 (define_insn "*<code><mode>_1"): Ditto.
19755 (define_insn "*<code>hi_1"): Ditto.
19756 (define_insn "kxnor<mode>"): New.
19757 (define_insn "kunpcksi"): New.
19758 (define_insn "kunpckdi"): New.
19759 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
19760 (define_insn "*one_cmplhi2_1"): Ditto.
19761
19762 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
19763 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19764 Anna Tikhonova <anna.tikhonova@intel.com>
19765 Ilya Tocar <ilya.tocar@intel.com>
19766 Andrey Turetskiy <andrey.turetskiy@intel.com>
19767 Ilya Verbin <ilya.verbin@intel.com>
19768 Kirill Yukhin <kirill.yukhin@intel.com>
19769 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19770
19771 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
19772 V32HImode.
19773
19774 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
19775 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19776 Anna Tikhonova <anna.tikhonova@intel.com>
19777 Ilya Tocar <ilya.tocar@intel.com>
19778 Andrey Turetskiy <andrey.turetskiy@intel.com>
19779 Ilya Verbin <ilya.verbin@intel.com>
19780 Kirill Yukhin <kirill.yukhin@intel.com>
19781 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19782
19783 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
19784 registers.
19785 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
19786 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
19787 xmm/ymm16+ when availble.
19788 * config/i386/i386.h
19789 (HARD_REGNO_NREGS): Add mask regs.
19790 (VALID_AVX512F_REG_MODE): Ditto.
19791 (VALID_AVX512F_REG_MODE) : Define.
19792 (VALID_MASK_AVX512BW_MODE): Ditto.
19793 (reg_class) (MASK_REG_P(X)): Define.
19794 * config/i386/i386.md: Do not split long moves with mask register,
19795 use kmovb if avx512bw is availible.
19796 (movdi_internal): Handle mask registers.
19797
19798 2014-08-14 Richard Biener <rguenther@suse.de>
19799
19800 PR tree-optimization/62081
19801 * tree-ssa-loop.c (pass_fix_loops): New pass.
19802 (pass_tree_loop::gate): Do not fixup loops here.
19803 * tree-pass.h (make_pass_fix_loops): Declare.
19804 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
19805
19806 2014-08-14 Richard Biener <rguenther@suse.de>
19807
19808 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
19809 (type_hash_canon): ... this and avoid 2nd lookup for the add.
19810
19811 2014-08-14 Richard Biener <rguenther@suse.de>
19812
19813 PR tree-optimization/62090
19814 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
19815 (fold_builtin_2): Do not fold sprintf.
19816 (fold_builtin_3): Likewise.
19817 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
19818 moved from builtins.c.
19819 (gimple_fold_builtin): Fold sprintf.
19820
19821 2014-08-14 Richard Biener <rguenther@suse.de>
19822
19823 PR rtl-optimization/62079
19824 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
19825 run cleanup_cfg.
19826
19827 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
19828
19829 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
19830 current_function_decl.
19831
19832 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
19833
19834 * cgraph.c (cgraph_node::function_symbol): Fix wrong
19835 cgraph_function_node to cgraph_node::function_symbol
19836 refactoring.
19837
19838 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
19839
19840 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
19841 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
19842
19843 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
19844
19845 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
19846 warning.
19847
19848 2014-08-13 Roman Gareev <gareevroman@gmail.com>
19849
19850 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
19851 generator.
19852
19853 2014-08-12 Jakub Jelinek <jakub@redhat.com>
19854
19855 PR target/62025
19856 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
19857 any registers that are used in mem_insn.
19858
19859 2014-08-12 Steve Ellcey <sellcey@mips.com>
19860
19861 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
19862
19863 2014-08-12 Steve Ellcey <sellcey@mips.com>
19864
19865 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
19866 (MULTILIB_DIRNAMES): Ditto.
19867 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
19868 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
19869 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
19870 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
19871 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
19872 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
19873
19874 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19875
19876 PR target/61413
19877 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
19878 of __ARM_SIZEOF_WCHAR_T.
19879
19880 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19881
19882 PR target/62098
19883 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
19884 Remove unnecessary attributes.
19885
19886 2014-08-12 Yury Gribov <y.gribov@samsung.com>
19887
19888 * internal-fn.c (init_internal_fns): Fix off-by-one.
19889
19890 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
19891 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
19892 Anna Tikhonova <anna.tikhonova@intel.com>
19893 Ilya Tocar <ilya.tocar@intel.com>
19894 Andrey Turetskiy <andrey.turetskiy@intel.com>
19895 Ilya Verbin <ilya.verbin@intel.com>
19896 Kirill Yukhin <kirill.yukhin@intel.com>
19897 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
19898
19899 * config/i386/i386.c (standard_sse_constant_opcode): Use
19900 vpxord/vpternlog if avx512 is availible.
19901
19902 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
19903
19904 PR middle-end/62103
19905 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
19906 bitfields, that is when size doesn't match the size of type or the
19907 size of the constructor.
19908
19909 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19910
19911 * config/rs6000/constraints.md (wh constraint): New constraint,
19912 for FP registers if direct move is available.
19913 (wi constraint): New constraint, for VSX/FP registers that can
19914 handle 64-bit integers.
19915 (wj constraint): New constraint for VSX/FP registers that can
19916 handle 64-bit integers for direct moves.
19917 (wk constraint): New constraint for VSX/FP registers that can
19918 handle 64-bit doubles for direct moves.
19919 (wy constraint): Make documentation match implementation.
19920
19921 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
19922 scalar_in_vmx_p field to simplify tests of whether SFmode or
19923 DFmode can go in the Altivec registers.
19924 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
19925 (rs6000_setup_reg_addr_masks): Likewise.
19926 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
19927 field, and wh/wi/wj/wk constraints.
19928 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
19929 the wh/wi/wj/wk constraints.
19930 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
19931 upper registers, prefer VSX registers unless the operation is a
19932 memory operation with REG+OFFSET addressing.
19933
19934 * config/rs6000/vsx.md (VSr mode attribute): Add support for
19935 DImode. Change SFmode to use ww constraint instead of d to allow
19936 SF registers in the upper registers.
19937 (VSr2): Likewise.
19938 (VSr3): Likewise.
19939 (VSr5): Fix thinko in comment.
19940 (VSa): New mode attribute that is an alternative to wa, that
19941 returns the VSX register class that a mode can go in, but may not
19942 be the preferred register class.
19943 (VS_64dm): New mode attribute for appropriate register classes for
19944 referencing 64-bit elements of vectors for direct moves and normal
19945 moves.
19946 (VS_64reg): Likewise.
19947 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
19948 register allocator to only registers the data type can handle.
19949 (vsx_le_perm_load_<mode>): Likewise.
19950 (vsx_le_perm_store_<mode>): Likewise.
19951 (vsx_xxpermdi2_le_<mode>): Likewise.
19952 (vsx_xxpermdi4_le_<mode>): Likewise.
19953 (vsx_lxvd2x2_le_<mode>): Likewise.
19954 (vsx_lxvd2x4_le_<mode>): Likewise.
19955 (vsx_stxvd2x2_le_<mode>): Likewise.
19956 (vsx_add<mode>3): Likewise.
19957 (vsx_sub<mode>3): Likewise.
19958 (vsx_mul<mode>3): Likewise.
19959 (vsx_div<mode>3): Likewise.
19960 (vsx_tdiv<mode>3_internal): Likewise.
19961 (vsx_fre<mode>2): Likewise.
19962 (vsx_neg<mode>2): Likewise.
19963 (vsx_abs<mode>2): Likewise.
19964 (vsx_nabs<mode>2): Likewise.
19965 (vsx_smax<mode>3): Likewise.
19966 (vsx_smin<mode>3): Likewise.
19967 (vsx_sqrt<mode>2): Likewise.
19968 (vsx_rsqrte<mode>2): Likewise.
19969 (vsx_tsqrt<mode>2_internal): Likewise.
19970 (vsx_fms<mode>4): Likewise.
19971 (vsx_nfma<mode>4): Likewise.
19972 (vsx_eq<mode>): Likewise.
19973 (vsx_gt<mode>): Likewise.
19974 (vsx_ge<mode>): Likewise.
19975 (vsx_eq<mode>_p): Likewise.
19976 (vsx_gt<mode>_p): Likewise.
19977 (vsx_ge<mode>_p): Likewise.
19978 (vsx_xxsel<mode>): Likewise.
19979 (vsx_xxsel<mode>_uns): Likewise.
19980 (vsx_copysign<mode>3): Likewise.
19981 (vsx_float<VSi><mode>2): Likewise.
19982 (vsx_floatuns<VSi><mode>2): Likewise.
19983 (vsx_fix_trunc<mode><VSi>2): Likewise.
19984 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
19985 (vsx_x<VSv>r<VSs>i): Likewise.
19986 (vsx_x<VSv>r<VSs>ic): Likewise.
19987 (vsx_btrunc<mode>2): Likewise.
19988 (vsx_b2trunc<mode>2): Likewise.
19989 (vsx_floor<mode>2): Likewise.
19990 (vsx_ceil<mode>2): Likewise.
19991 (vsx_<VS_spdp_insn>): Likewise.
19992 (vsx_xscvspdp): Likewise.
19993 (vsx_xvcvspuxds): Likewise.
19994 (vsx_float_fix_<mode>2): Likewise.
19995 (vsx_set_<mode>): Likewise.
19996 (vsx_extract_<mode>_internal1): Likewise.
19997 (vsx_extract_<mode>_internal2): Likewise.
19998 (vsx_extract_<mode>_load): Likewise.
19999 (vsx_extract_<mode>_store): Likewise.
20000 (vsx_splat_<mode>): Likewise.
20001 (vsx_xxspltw_<mode>): Likewise.
20002 (vsx_xxspltw_<mode>_direct): Likewise.
20003 (vsx_xxmrghw_<mode>): Likewise.
20004 (vsx_xxmrglw_<mode>): Likewise.
20005 (vsx_xxsldwi_<mode>): Likewise.
20006 (vsx_xscvdpspn): Tighten constraints to only use register classes
20007 the types use.
20008 (vsx_xscvspdpn): Likewise.
20009 (vsx_xscvdpspn_scalar): Likewise.
20010
20011 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
20012 wj, and wk constraints.
20013 (GPR_REG_CLASS_P): New helper macro for register classes targeting
20014 general purpose registers.
20015
20016 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
20017 direct moves.
20018 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
20019 DImode instead of wm. Use wk constraint for direct move of DFmode
20020 instead of wm.
20021 (extendsidi2_lfiwax): Likewise.
20022 (lfiwax): Likewise.
20023 (lfiwzx): Likewise.
20024 (movdi_internal64): Likewise.
20025
20026 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
20027 wk constraints. Make the wy constraint documentation match them
20028 implementation.
20029
20030 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
20031
20032 Replacement of isl_int by isl_val
20033 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
20034 (compute_bounds_for_param): use isl_val instead of isl_int
20035 (compute_bounds_for_loop): likewise
20036 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
20037 (build_linearized_memory_access): use isl_val instead of isl_int
20038 (pdr_stride_in_loop): likewise
20039 * graphite-optimize-isl.c:
20040 (getPrevectorMap): use isl_val instead of isl_int
20041 * graphite-poly.c:
20042 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
20043 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
20044 (extern the_isl_ctx): declare
20045 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
20046 (extract_affine_gmp): likewise
20047 (wrap): likewise
20048 (build_loop_iteration_domains): likewise
20049 (add_param_constraints): likewise
20050
20051 2014-08-11 Richard Biener <rguenther@suse.de>
20052
20053 PR tree-optimization/62075
20054 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
20055 handle uses in patterns.
20056
20057 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
20058 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20059 Anna Tikhonova <anna.tikhonova@intel.com>
20060 Ilya Tocar <ilya.tocar@intel.com>
20061 Andrey Turetskiy <andrey.turetskiy@intel.com>
20062 Ilya Verbin <ilya.verbin@intel.com>
20063 Kirill Yukhin <kirill.yukhin@intel.com>
20064 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20065
20066 * common/config/i386/i386-common.c
20067 (OPTION_MASK_ISA_AVX512VL_SET): Define.
20068 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
20069 (ix86_handle_option): Handle OPT_mavx512vl.
20070 * config/i386/cpuid.h (bit_AVX512VL): Define.
20071 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
20072 set -mavx512vl accordingly.
20073 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20074 OPTION_MASK_ISA_AVX512VL.
20075 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
20076 (ix86_option_override_internal): Define PTA_AVX512VL, handle
20077 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
20078 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
20079 * config/i386/i386.h (TARGET_AVX512VL): Define.
20080 (TARGET_AVX512VL_P(x)): Ditto.
20081 * config/i386/i386.opt: Add mavx512vl.
20082
20083 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
20084
20085 PR tree-optimization/62073
20086 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
20087 a basic block.
20088
20089 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
20090 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20091 Anna Tikhonova <anna.tikhonova@intel.com>
20092 Ilya Tocar <ilya.tocar@intel.com>
20093 Andrey Turetskiy <andrey.turetskiy@intel.com>
20094 Ilya Verbin <ilya.verbin@intel.com>
20095 Kirill Yukhin <kirill.yukhin@intel.com>
20096 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20097
20098 * common/config/i386/i386-common.c
20099 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
20100 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
20101 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
20102 (ix86_handle_option): Handle OPT_mavx512bw.
20103 * config/i386/cpuid.h (bit_AVX512BW): Define.
20104 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
20105 set -mavx512bw accordingly.
20106 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20107 OPTION_MASK_ISA_AVX512BW.
20108 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
20109 (ix86_option_override_internal): Define PTA_AVX512BW, handle
20110 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
20111 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
20112 * config/i386/i386.h (TARGET_AVX512BW): Define.
20113 (TARGET_AVX512BW_P(x)): Ditto.
20114 * config/i386/i386.opt: Add mavx512bw.
20115
20116 2014-08-11 Richard Biener <rguenther@suse.de>
20117
20118 PR tree-optimization/62070
20119 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
20120 Remove SSA checking.
20121
20122 2014-08-11 Yury Gribov <y.gribov@samsung.com>
20123
20124 * asan.c (asan_check_flags): New enum.
20125 (build_check_stmt_with_calls): Removed function.
20126 (build_check_stmt): Split inlining logic to
20127 asan_expand_check_ifn.
20128 (instrument_derefs): Rename parameter.
20129 (instrument_mem_region_access): Rename parameter.
20130 (instrument_strlen_call): Likewise.
20131 (asan_expand_check_ifn): New function.
20132 (asan_instrument): Remove old code.
20133 (pass_sanopt::execute): Change handling of
20134 asan-instrumentation-with-call-threshold.
20135 (asan_clear_shadow): Fix formatting.
20136 (asan_function_start): Likewise.
20137 (asan_emit_stack_protection): Likewise.
20138 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
20139 Update description.
20140 * internal-fn.c (expand_ASAN_CHECK): New function.
20141 * internal-fn.def (ASAN_CHECK): New internal function.
20142 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
20143 Update description.
20144 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
20145 * tree.c: Small comment fix.
20146
20147 2014-08-11 Yury Gribov <y.gribov@samsung.com>
20148
20149 * gimple.c (gimple_call_fnspec): Support internal functions.
20150 (gimple_call_return_flags): Use const.
20151 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
20152 * internal-fn.def: Add fnspec information.
20153 * internal-fn.h (internal_fn_fnspec): New function.
20154 (init_internal_fns): Declare new function.
20155 * internal-fn.c (internal_fn_fnspec_array): New global variable.
20156 (init_internal_fns): New function.
20157 * tree-core.h: Update macro call.
20158 * tree.c (build_common_builtin_nodes): Initialize internal fns.
20159
20160 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
20161
20162 * lto-streamer.h (struct output_block::symbol): Change from
20163 struct symtab_node to plain symtab_node.
20164 (referenced_from_this_partition_p): Change first parameter
20165 from struct symtab_node to plain symtab_node.
20166
20167 2014-08-10 Marek Polacek <polacek@redhat.com>
20168
20169 PR c/51849
20170 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
20171
20172 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
20173
20174 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
20175 DECL correctly; do not give up on types in static storage.
20176
20177 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
20178
20179 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
20180
20181 2014-08-09 Roman Gareev <gareevroman@gmail.com>
20182
20183 * graphite-isl-ast-to-gimple.c:
20184 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
20185
20186 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
20187
20188 2014-08-08 Guozhi Wei <carrot@google.com>
20189
20190 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
20191
20192 2014-08-08 Cary Coutant <ccoutant@google.com>
20193
20194 * dwarf2out.c (get_skeleton_type_unit): Remove.
20195 (output_skeleton_debug_sections): Remove skeleton type units.
20196 (output_comdat_type_unit): Likewise.
20197 (dwarf2out_finish): Likewise.
20198
20199 2014-08-07 Yi Yang <ahyangyi@google.com>
20200
20201 * predict.c (expr_expected_value_1): Remove the redundant assignment.
20202
20203 2014-08-08 Richard Biener <rguenther@suse.de>
20204
20205 * lto-streamer.h (struct lto_input_block): Make it a class
20206 with a constructor.
20207 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
20208 (struct lto_function_header, struct lto_simple_header,
20209 struct lto_simple_header_with_strings,
20210 struct lto_decl_header, struct lto_function_header): Make
20211 a simple inheritance hieararchy. Remove unused fields.
20212 (struct lto_asm_header): Remove.
20213 * lto-streamer-out.c (produce_asm): Adjust.
20214 (lto_output_toplevel_asms): Likewise.
20215 (produce_asm_for_decls): Likewise.
20216 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
20217 * data-streamer-in.c (string_for_index): Likewise.
20218 * ipa-inline-analysis.c (inline_read_section): Likewise.
20219 * ipa-prop.c (ipa_prop_read_section): Likewise.
20220 (read_replacements_section): Likewise.
20221 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
20222 * lto-section-in.c (lto_create_simple_input_block): Likewise.
20223 (lto_destroy_simple_input_block): Likewise.
20224 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
20225 (lto_input_toplevel_asms): Likewise.
20226
20227 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
20228 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20229 Anna Tikhonova <anna.tikhonova@intel.com>
20230 Ilya Tocar <ilya.tocar@intel.com>
20231 Andrey Turetskiy <andrey.turetskiy@intel.com>
20232 Ilya Verbin <ilya.verbin@intel.com>
20233 Kirill Yukhin <kirill.yukhin@intel.com>
20234 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
20235
20236 * common/config/i386/i386-common.c
20237 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
20238 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
20239 (ix86_handle_option): Handle OPT_mavx512dq.
20240 * config/i386/cpuid.h (bit_AVX512DQ): Define.
20241 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
20242 set -mavx512dq accordingly.
20243 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20244 OPTION_MASK_ISA_AVX512DQ.
20245 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
20246 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
20247 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
20248 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
20249 * config/i386/i386.h (TARGET_AVX512DQ): Define.
20250 (TARGET_AVX512DQ_P(x)): Ditto.
20251 * config/i386/i386.opt: Add mavx512dq.
20252
20253 2014-08-08 Richard Biener <rguenther@suse.de>
20254
20255 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
20256 target_percent, target_percent_s): Export.
20257 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
20258 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
20259 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
20260 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
20261 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
20262 Move to gimple-fold.c.
20263 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
20264 strcat and strcpy.
20265 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
20266 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
20267 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
20268 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
20269 (rewrite_call_expr_array): Remove.
20270 (fold_builtin_sprintf_chk): Likewise.
20271 (fold_builtin_snprintf_chk): Likewise.
20272 (fold_builtin_varargs): Remove handling of sprintf_chk,
20273 vsprintf_chk, snprintf_chk and vsnprintf_chk.
20274 (gimple_fold_builtin_sprintf_chk): Remove.
20275 (gimple_fold_builtin_snprintf_chk): Likewise.
20276 (gimple_fold_builtin_varargs): Likewise.
20277 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
20278 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
20279 * gimple.c (gimple_seq_add_seq_without_update): New function.
20280 * gimple.h (gimple_seq_add_seq_without_update): Declare.
20281 * gimple-fold.c: Include output.h.
20282 (gsi_replace_with_seq_vops): New function, split out from ...
20283 (gimplify_and_update_call_from_tree): ... here.
20284 (replace_call_with_value): New function.
20285 (replace_call_with_call_and_fold): Likewise.
20286 (var_decl_component_p): Moved from builtins.c.
20287 (gimple_fold_builtin_memory_op): Moved from builtins.c
20288 fold_builtin_memory_op and rewritten to GIMPLE.
20289 (gimple_fold_builtin_memset): Likewise.
20290 (gimple_fold_builtin_strcpy): Likewise.
20291 (gimple_fold_builtin_strncpy): Likewise.
20292 (gimple_fold_builtin_strcat): Likewise.
20293 (gimple_fold_builtin_fputs): Likewise.
20294 (gimple_fold_builtin_memory_chk): Likewise.
20295 (gimple_fold_builtin_stxcpy_chk): Likewise.
20296 (gimple_fold_builtin_stxncpy_chk): Likewise.
20297 (gimple_fold_builtin_snprintf_chk): Likewise.
20298 (gimple_fold_builtin_sprintf_chk): Likewise.
20299 (gimple_fold_builtin_strlen): New function.
20300 (gimple_fold_builtin_with_strlen): New function split out from
20301 gimple_fold_builtin.
20302 (gimple_fold_builtin): Change signature and handle
20303 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
20304 here. Call gimple_fold_builtin_with_strlen.
20305 (gimple_fold_call): Adjust.
20306
20307 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
20308
20309 * calls.c (precompute_arguments): Check
20310 promoted_for_signed_and_unsigned_p and set the promoted mode.
20311 (promoted_for_signed_and_unsigned_p): New function.
20312 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
20313 and set the promoted mode.
20314 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
20315 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
20316 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
20317
20318
20319 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
20320
20321 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
20322 instead of SUBREG_PROMOTED_UNSIGNED_SET.
20323 (expand_call): Likewise.
20324 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
20325 to get promoted mode.
20326 * combine.c (record_promoted_value): Skip > 0 comparison with
20327 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
20328 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
20329 of SUBREG_PROMOTED_UNSIGNED_P.
20330 (convert_modes): Likewise.
20331 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
20332 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
20333 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
20334 SUBREG_PROMOTED_UNSIGNED_SET.
20335 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
20336 instead of SUBREG_PROMOTED_UNSIGNED_SET.
20337 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
20338 SUBREG_PROMOTED_SET.
20339 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
20340 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
20341 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
20342 of SUBREG_PROMOTED_UNSIGNED_P.
20343 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
20344 (SUBREG_PROMOTED_SET): New define.
20345 (SUBREG_PROMOTED_GET): Likewise.
20346 (SUBREG_PROMOTED_SIGN): Likewise.
20347 (SUBREG_PROMOTED_SIGNED_P): Likewise.
20348 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
20349 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
20350 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
20351 instead of SUBREG_PROMOTED_UNSIGNED_GET.
20352 (nonzero_bits1): Skip > 0 comparison with the results as
20353 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
20354 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
20355 of !SUBREG_PROMOTED_UNSIGNED_P.
20356 * simplify-rtx.c (simplify_unary_operation_1): Use new
20357 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
20358 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
20359 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
20360 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
20361
20362 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
20363
20364 * ipa-devirt.c: Include gimple-pretty-print.h
20365 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
20366 further tests.
20367 (decl_maybe_in_construction_p): Fix conditional on cdtor check
20368 (get_polymorphic_call_info): Fix return value
20369 (type_change_info): New sturcture based on ipa-prop
20370 variant.
20371 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
20372 based on ipa-prop variant.
20373 (extr_type_from_vtbl_ptr_store): New function
20374 based on ipa-prop variant.
20375 (record_known_type): New function.
20376 (check_stmt_for_type_change): New function.
20377 (get_dynamic_type): New function.
20378 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
20379 * tree-ssa-pre.c: ipa-utils.h
20380 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
20381 machinery; sanity check with ipa-prop devirtualization.
20382 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
20383 polymorphic flag.
20384
20385 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
20386
20387 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
20388 * alias.c, cfgexpand.c, cgraphbuild.c,
20389 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
20390 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
20391 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
20392 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
20393 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
20394 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
20395 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
20396 dse.c, except.c, gengtype.c, gimple-expr.c,
20397 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
20398 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
20399 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
20400 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
20401 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
20402 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
20403 pointer-set.h.
20404 * pointer-set.c: Remove file.
20405 * pointer-set.h: Remove file.
20406
20407 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20408
20409 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
20410 * config/arm/types.md (f_sels, f_seld): Delete.
20411
20412 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20413
20414 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
20415 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
20416 (aarch64_movdi_<mode>high): Likewise.
20417 (aarch64_mov<mode>high_di): Likewise.
20418 (aarch64_movdi_<mode>low): Likewise.
20419 (aarch64_mov<mode>low_di): Likewise.
20420 (aarch64_movtilow_tilow): Likewise.
20421 Add comment explaining usage of fp,simd attributes and of
20422 TARGET_FLOAT and TARGET_SIMD.
20423
20424 2014-08-07 Ian Bolton <ian.bolton@arm.com>
20425 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20426
20427 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
20428 Use MOVN when one of the half-words is 0xffff.
20429
20430 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
20431
20432 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
20433
20434 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20435
20436 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
20437 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
20438 (rfs_str): String corresponding to RFS_* constants.
20439 (rank_for_schedule_stats_t): New typedef.
20440 (rank_for_schedule_stats): New static variable.
20441 (rfs_result): New static function.
20442 (rank_for_schedule): Track statistics for deciding heuristics.
20443 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
20444 static functions.
20445 (ready_sort): Use them for debug printouts.
20446 (schedule_block): Init statistics state. Print statistics on
20447 rank_for_schedule decisions.
20448
20449 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20450
20451 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
20452
20453 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
20454
20455 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
20456 constraint.
20457
20458 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
20459
20460 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
20461 function to not conflict.
20462 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
20463 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
20464 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
20465 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
20466 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
20467 of pointer_map.
20468
20469 2014-08-07 Marek Polacek <polacek@redhat.com>
20470
20471 * fold-const.c (fold_binary_loc): Add folding of
20472 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
20473
20474 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
20475
20476 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
20477 instead of type size.
20478 (ASM_FINISH_DECLARE_OBJECT): Likewise.
20479
20480 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
20481
20482 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
20483 (*thumb1_movqi_insn): Likewise.
20484 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
20485
20486 2014-08-07 Tom de Vries <tom@codesourcery.com>
20487
20488 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
20489 (glibc_2_11_or_earlier): Remove effective-target keywords.
20490
20491 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
20492
20493 * config/arm/arm.c (bdesc_2arg): Fix typo.
20494 (arm_atomic_assign_expand_fenv): Remove The default implementation.
20495
20496 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
20497
20498 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
20499
20500 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
20501
20502 PR debug/61923
20503 * haifa-sched.c (advance_one_cycle): Fix dump.
20504 (schedule_block): Don't advance cycle if we are already at the
20505 beginning of the cycle.
20506
20507 2014-08-06 Martin Jambor <mjambor@suse.cz>
20508
20509 PR ipa/61393
20510 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
20511
20512 2014-08-06 Richard Biener <rguenther@suse.de>
20513
20514 PR lto/62034
20515 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
20516 SCCs here.
20517 (lto_input_tree): Pop SCCs here.
20518
20519 2014-08-06 Richard Biener <rguenther@suse.de>
20520
20521 PR tree-optimization/61320
20522 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
20523 handle misaligned loads.
20524
20525 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
20526
20527 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
20528 (aarch64_expand_vec_perm_const): Check for dup before zip.
20529
20530 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20531
20532 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
20533 CONST_INT_P instead of GET_CODE and compare.
20534 (aarch64_select_cc_mode): Likewise.
20535 (aarch64_print_operand): Likewise.
20536 (aarch64_rtx_costs): Likewise.
20537 (aarch64_simd_valid_immediate): Likewise.
20538 (aarch64_simd_check_vect_par_cnst_half): Likewise.
20539 (aarch64_simd_emit_pair_result_insn): Likewise.
20540
20541 2014-08-05 David Malcolm <dmalcolm@redhat.com>
20542
20543 * gdbhooks.py (find_gcc_source_dir): New helper function.
20544 (class PassNames): New class, locating and parsing passes.def.
20545 (class BreakOnPass): New command "break-on-pass".
20546
20547 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
20548
20549 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
20550 getting olde.
20551
20552 2014-08-05 Richard Biener <rguenther@suse.de>
20553
20554 PR rtl-optimization/61672
20555 * emit-rtl.h (mem_attrs_eq_p): Declare.
20556 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
20557 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
20558 * cfgcleanup.c (merge_memattrs): Likewise.
20559 Include emit-rtl.h.
20560
20561 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20562
20563 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
20564 rather than singleton vectors.
20565 (vqdmlsls_lane_s32): Likewise.
20566
20567 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20568
20569 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
20570 Use VSDQ_HSI mode iterator.
20571 (aarch64_sqrdmulh_laneq<mode>): Likewise.
20572 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
20573 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
20574 Use BUILTIN_VDQHS macro.
20575 (sqrdmulh_laneq): Likewise.
20576 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
20577 (vqdmlals_laneq_s32): Likewise.
20578 (vqdmlslh_laneq_s16): Likewise.
20579 (vqdmlsls_laneq_s32): Likewise.
20580 (vqdmulhh_laneq_s16): Likewise.
20581 (vqdmulhs_laneq_s32): Likewise.
20582 (vqrdmulhh_laneq_s16): Likewise.
20583 (vqrdmulhs_laneq_s32): Likewise.
20584
20585 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20586
20587 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
20588 (vmuld_laneq_f64): Likewise.
20589 (vmuls_laneq_f32): Likewise.
20590 (vmul_n_f64): Likewise.
20591 (vmuld_lane_f64): Reimplement in C.
20592 (vmuls_lane_f32): Likewise.
20593
20594 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20595
20596 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
20597 to reservation.
20598 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
20599
20600 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20601
20602 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
20603 (rbitsi2): Likewise.
20604 (*arm_rev): Set predicable and predicable_short_it attributes.
20605
20606 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20607
20608 * convert.c (convert_to_integer): Guard transformation to lrint by
20609 -fno-math-errno.
20610
20611 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
20612
20613 * config/aarch64/aarch64-builtins.c
20614 (aarch64_simd_builtin_type_mode): Delete.
20615 (v8qi_UP): Remap to V8QImode.
20616 (v4hi_UP): Remap to V4HImode.
20617 (v2si_UP): Remap to V2SImode.
20618 (v2sf_UP): Remap to V2SFmode.
20619 (v1df_UP): Remap to V1DFmode.
20620 (di_UP): Remap to DImode.
20621 (df_UP): Remap to DFmode.
20622 (v16qi_UP):V16QImode.
20623 (v8hi_UP): Remap to V8HImode.
20624 (v4si_UP): Remap to V4SImode.
20625 (v4sf_UP): Remap to V4SFmode.
20626 (v2di_UP): Remap to V2DImode.
20627 (v2df_UP): Remap to V2DFmode.
20628 (ti_UP): Remap to TImode.
20629 (ei_UP): Remap to EImode.
20630 (oi_UP): Remap to OImode.
20631 (ci_UP): Map to CImode.
20632 (xi_UP): Remap to XImode.
20633 (si_UP): Remap to SImode.
20634 (sf_UP): Remap to SFmode.
20635 (hi_UP): Remap to HImode.
20636 (qi_UP): Remap to QImode.
20637 (aarch64_simd_builtin_datum): Make mode a machine_mode.
20638 (VAR1): Build builtin name.
20639 (aarch64_init_simd_builtins): Remove dead code.
20640
20641 2014-08-05 Roman Gareev <gareevroman@gmail.com>
20642
20643 * graphite-isl-ast-to-gimple.c:
20644 (set_options): New function.
20645 (scop_to_isl_ast): Add calling of set_options.
20646
20647 2014-08-05 Jakub Jelinek <jakub@redhat.com>
20648
20649 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
20650 (analyze_iv_to_split_insn): Don't initialize them.
20651 (get_ivts_expr): Removed.
20652 (allocate_basic_variable, insert_base_initialization): Use
20653 SET_SRC instead of *get_ivts_expr.
20654 (split_iv): Use &SET_SRC instead of get_ivts_expr.
20655
20656 2014-08-05 Roman Gareev <gareevroman@gmail.com>
20657
20658 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
20659 (translate_isl_ast_for_loop): Add checking of the
20660 flag_loop_parallelize_all.
20661 (ast_build_before_for): New function.
20662 (scop_to_isl_ast): Add checking of the
20663 flag_loop_parallelize_all.
20664 * graphite-dependences.c: Move the defenition of the
20665 scop_get_dependences from graphite-optimize-isl.c to this file.
20666 (apply_schedule_on_deps): Add checking of the ux's emptiness.
20667 (carries_deps): Add checking of the x's value.
20668 * graphite-optimize-isl.c: Move the defenition of the
20669 scop_get_dependences to graphite-dependences.c.
20670 * graphite-poly.h: Add declarations of scop_get_dependences
20671 and carries_deps.
20672
20673 2014-08-04 Rohit <rohitarulraj@freescale.com>
20674
20675 PR target/60102
20676 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
20677 names.
20678 (alt_reg_names): Likewise.
20679 (rs6000_dwarf_register_span): For SPE high registers, replace
20680 dwarf register numbers with GCC hard register numbers.
20681 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
20682 (rs6000_dbx_register_number): For SPE high registers, return dwarf
20683 register number for the corresponding GCC hard register number.
20684 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
20685 newly added GCC hard register numbers for SPE high registers.
20686 (DWARF_FRAME_REGISTERS): Likewise.
20687 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
20688 (DWARF_FRAME_REGNUM): Likewise.
20689 (FIXED_REGISTERS): Likewise.
20690 (CALL_USED_REGISTERS): Likewise.
20691 (CALL_REALLY_USED_REGISTERS): Likewise.
20692 (REG_ALLOC_ORDER): Likewise.
20693 (enum reg_class): Likewise.
20694 (REG_CLASS_NAMES): Likewise.
20695 (REG_CLASS_CONTENTS): Likewise.
20696 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
20697
20698 2014-08-04 Richard Biener <rguenther@suse.de>
20699
20700 * gimple-fold.h (gimple_fold_builtin): Remove.
20701 * gimple-fold.c (gimple_fold_builtin): Make static.
20702 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
20703 fold_stmt, not gimple_fold_builtin.
20704
20705 2014-08-04 Martin Liska <mliska@suse.cz>
20706
20707 * cgraph.h (csi_end_p): Removed.
20708 (csi_next): Likewise.
20709 (csi_node): Likewise.
20710 (csi_start): Likewise.
20711 (cgraph_node_in_set_p): Likewise.
20712 (cgraph_node_set_size): Likewise.
20713 (vsi_end_p): Likewise.
20714 (vsi_next): Likewise.
20715 (vsi_node): Likewise.
20716 (vsi_start): Likewise.
20717 (varpool_node_set_size): Likewise.
20718 (cgraph_node_set_nonempty_p): Likewise.
20719 (varpool_node_set_nonempty_p): Likewise.
20720 * cgraphunit.c (cgraph_process_new_functions): vec replaces
20721 cgraph_node_set.
20722 * ipa-inline-transform.c: Likewise.
20723 * ipa-utils.c (cgraph_node_set_new): Removed.
20724 (cgraph_node_set_add): Likewise.
20725 (cgraph_node_set_remove): Likewise.
20726 (cgraph_node_set_find): Likewise.
20727 (dump_cgraph_node_set): Likewise.
20728 (debug_cgraph_node_set): Likewise.
20729 (free_cgraph_node_set): Likewise.
20730 (varpool_node_set_new): Likewise.
20731 (varpool_node_set_add): Likewise.
20732 (varpool_node_set_remove): Likewise.
20733 (varpool_node_set_find): Likewise.
20734 (dump_varpool_node_set): Likewise.
20735 (free_varpool_node_set): Likewise.
20736 (debug_varpool_node_set): Likewise.
20737 * tree-emutls.c (struct tls_var_data):
20738 (emutls_index): Removed.
20739 (emutls_decl): Likewise.
20740 (gen_emutls_addr): Function implementation uses newly added
20741 hash_map<varpool_node *, tls_var_data>.
20742 (clear_access_vars): Likewise.
20743 (create_emultls_var): Likewise.
20744 (ipa_lower_emutls): Likewise.
20745 (reset_access): New function.
20746
20747 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
20748
20749 * config/i386/i386.c (ix86_option_override_internal): Add
20750 PTA_RDRND and PTA_MOVBE for bdver4.
20751
20752 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20753 James Greenhalgh <james.greenhalgh@arm.com>
20754
20755 * doc/md.texi (clrsb): Document.
20756 (clz): Change reference to x into operand 1.
20757 (ctz): Likewise.
20758 (popcount): Likewise.
20759
20760 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20761
20762 PR target/61713
20763 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
20764 move to subtarget in serial version if result is ignored.
20765
20766 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20767 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20768
20769 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
20770 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
20771 (sched_analyze_insn): Update use of try_group_insn to
20772 sched_macro_fuse_insns.
20773 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
20774 arguments that are not conditional jumps.
20775
20776 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
20777
20778 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
20779 family information. Handle BTVER2 cpu with cpuid family value.
20780
20781 2014-08-04 Tom de Vries <tom@codesourcery.com>
20782
20783 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
20784 (glibc_2_11_or_earlier): Document effective-target keywords.
20785
20786 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
20787
20788 * ipa-devirt.c (odr_type_warn_count): Add type.
20789 (possible_polymorphic_call_targets): Set it.
20790 (ipa_devirt): Use it.
20791
20792 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
20793
20794 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
20795 Document.
20796 * ipa-devirt.c: Include hash-map.h
20797 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
20798 (clear_speculation): Break out of ...
20799 (get_class_context): ... here; speed up handling obviously useless
20800 speculations.
20801 (odr_type_warn_count, decl_warn_count): New structures.
20802 (final_warning_record): New structure.
20803 (final_warning_records): New static variable.
20804 (possible_polymorphic_call_targets): Cleanup handling of
20805 speculative info; do not build speculation when user do not care;
20806 record info about warnings when asked for.
20807 (add_decl_warning): New function.
20808 (type_warning_cmp): New function.
20809 (decl_warning_cmp): New function.
20810 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
20811 (gate): Enable pass when warnings are requested.
20812 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
20813 options.
20814
20815 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
20816
20817 * hash-map.h (default_hashmap_traits::mark_key_deleted):
20818 Fix cast.
20819 (hash_map::remove): New method.
20820 (hash_map::traverse): New method.
20821 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
20822 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
20823 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
20824 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
20825 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
20826 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
20827 pointer_map.
20828
20829 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
20830
20831 * hash-set.h: new File.
20832 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
20833 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
20834 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
20835 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
20836 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
20837 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
20838 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
20839 varpool.c: Use hash_set instead of pointer_set.
20840
20841 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
20842
20843 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
20844
20845 2014-08-01 Jiong Wang <jiong.wang@arm.com>
20846
20847 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
20848 for frame access when strict_p is false.
20849
20850 2014-08-01 Renlin Li <renlin.li@arm.com>
20851 2014-08-01 Jiong Wang <jiong.wang@arm.com>
20852
20853 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
20854 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
20855 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
20856 Declaration.
20857 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
20858 predicate.
20859 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
20860 aarch64_mem_pair_offset.
20861
20862 2014-08-01 Jiong Wang <jiong.wang@arm.com>
20863
20864 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
20865 offset.
20866 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
20867 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
20868
20869 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
20870
20871 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
20872
20873 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
20874
20875 PR regression/61510
20876 * cgraphunit.c (analyze_functions): Use get_create rather than get
20877 for decls which are clones of abstract functions.
20878
20879 2014-08-01 Martin Liska <mliska@suse.cz>
20880
20881 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
20882 * ipa-prop.h (count_formal_params): Global function created from static.
20883 * ipa-prop.c (count_formal_params): Likewise.
20884 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
20885 profiles for semantically equivalent functions.
20886 * passes.c (do_per_function): If we load body of a function
20887 during WPA, this condition should behave same.
20888 * varpool.c (ctor_for_folding): More tolerant assert for variable
20889 aliases created during WPA.
20890
20891 2014-08-01 Martin Liska <mliska@suse.cz>
20892
20893 * doc/invoke.texi (Options That Control Optimization): Documentation
20894 for -foptimize-strlen introduced. Optimization levels default options
20895 fixed.
20896
20897 2014-08-01 Jakub Jelinek <jakub@redhat.com>
20898
20899 * opts.c (common_handle_option): Handle -fsanitize=alignment.
20900 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
20901 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
20902 type to bool.
20903 * stor-layout.h (min_align_of_type): New prototype.
20904 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
20905 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
20906 check.
20907 * ubsan.c: Include builtins.h.
20908 (ubsan_expand_bounds_ifn): Change return type to bool,
20909 always return true.
20910 (ubsan_expand_null_ifn): Change return type to bool, change
20911 argument to gimple_stmt_iterator *. Handle both null and alignment
20912 sanitization, take type from ckind argument's type rather than
20913 first argument.
20914 (instrument_member_call): Removed.
20915 (instrument_mem_ref): Remove t argument, add mem and base arguments.
20916 Handle both null and alignment sanitization, don't say whole
20917 struct access is member access. Build 3 argument IFN_UBSAN_NULL
20918 call instead of 2 argument.
20919 (instrument_null): Adjust instrument_mem_ref caller. Don't
20920 instrument calls here.
20921 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
20922 like SANITIZE_NULL.
20923 * stor-layout.c (min_align_of_type): New function.
20924 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
20925 Or it into SANITIZE_UNDEFINED.
20926 * doc/invoke.texi (-fsanitize=alignment): Document.
20927
20928 2014-07-31 Andi Kleen <ak@linux.intel.com>
20929
20930 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
20931
20932 2014-07-31 Andi Kleen <ak@linux.intel.com>
20933
20934 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
20935 inchash.
20936 (vn_reference_compute_hash): Dito.
20937 (vn_nary_op_compute_hash): Dito.
20938 (vn_phi_compute_hash): Dito.
20939 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
20940
20941 2014-07-31 Andi Kleen <ak@linux.intel.com>
20942
20943 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
20944 Rename to inchash:add_expr_commutative. Convert to inchash.
20945 (iterative_hash_hashable_expr): Rename to
20946 inchash:add_hashable_expr. Convert to inchash.
20947 (avail_expr_hash): Dito.
20948
20949 2014-07-31 Andi Kleen <ak@linux.intel.com>
20950
20951 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
20952 Convert to inchash.
20953
20954 2014-07-31 Andi Kleen <ak@linux.intel.com>
20955
20956 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
20957
20958 2014-07-31 Andi Kleen <ak@linux.intel.com>
20959
20960 * Makefile.in (OBJS): Add rtlhash.o
20961 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
20962 (loc_checksum): Dito.
20963 (loc_checksum_ordered): Dito.
20964 (hash_loc_operands): Dito.
20965 (hash_locs): Dito.
20966 (hash_loc_list): Dito.
20967 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
20968 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
20969 * rtlhash.c: New file.
20970 * rtlhash.h: New file.
20971
20972 2014-07-31 Andi Kleen <ak@linux.intel.com>
20973
20974 * inchash.h (inchash): Change inchash class to namespace.
20975 (class hash): ... Rename from inchash.
20976 (add_object): Move from macro to class template.
20977 * lto-streamer-out.c (hash_tree): Change inchash
20978 to inchash::hash.
20979 * tree.c (build_type_attribute_qual_variant): Dito.
20980 (type_hash_list): Dito.
20981 (attribute_hash_list): Dito.
20982 (iterative_hstate_expr): Rename to inchash::add_expr
20983 (build_range_type_1): Change inchash to inchash::hash
20984 and use hash::add_expr.
20985 (build_array_type_1): Dito.
20986 (build_function_type): Dito
20987 (build_method_type_directly): Dito.
20988 (build_offset_type): Dito.
20989 (build_complex_type): Dito.
20990 (make_vector_type): Dito.
20991 * tree.h (iterative_hash_expr): Dito.
20992
20993 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
20994
20995 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
20996
20997 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
20998
20999 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
21000 correct alphabetical position.
21001 (vpaddd_f64): Rewrite using builtins.
21002 (vpaddd_s64): Move to correct alphabetical position.
21003 (vpaddd_u64): New.
21004
21005 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
21006
21007 PR target/61844
21008 * config/sh/sh.c (sh_legitimate_address_p,
21009 sh_legitimize_reload_address): Handle reg+reg address modes when
21010 ALLOW_INDEXED_ADDRESS is false.
21011 * config/sh/predicates.md (general_movsrc_operand,
21012 general_movdst_operand): Likewise.
21013
21014 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
21015
21016 * config/aarch64/aarch64-builtins.c
21017 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
21018 BYTES_BIG_ENDIAN.
21019
21020 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
21021
21022 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
21023 the generated mask based on BYTES_BIG_ENDIAN.
21024 (aarch64_simd_check_vect_par_cnst_half): New.
21025 * config/aarch64/aarch64-protos.h
21026 (aarch64_simd_check_vect_par_cnst_half): New.
21027 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
21028 the check out to aarch64_simd_check_vect_par_cnst_half.
21029 (vect_par_cnst_lo_half): Likewise.
21030 * config/aarch64/aarch64-simd.md
21031 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
21032 (move_hi_quad_<mode>): Always generate a low mask.
21033
21034 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21035
21036 * doc/invoke.texi (AVR Options): Add documentation about
21037 __AVR_DEVICE_NAME__ built-in macro.
21038
21039 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
21040
21041 PR target/61948
21042 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
21043 constraints are satisfied.
21044 (<shift>di3_neon): Likewise.
21045
21046 2014-07-31 Richard Biener <rguenther@suse.de>
21047
21048 PR tree-optimization/61964
21049 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
21050 by structural equality.
21051
21052 2014-07-31 Yury Gribov <y.gribov@samsung.com>
21053
21054 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
21055 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
21056 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
21057 New enums.
21058 * gcc.c (sanitize_spec_function): Support new option.
21059 (SANITIZER_SPEC): Remove now redundant check.
21060 * opts.c (common_handle_option): Support new option.
21061 (finish_options): Check for incompatibilities.
21062 * toplev.c (process_options): Split userspace-specific checks.
21063
21064 2014-07-31 Richard Biener <rguenther@suse.de>
21065
21066 * lto-streamer.h (struct output_block): Remove global.
21067 (struct data_in): Remove labels, num_named_labels and
21068 num_unnamed_labels.
21069 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
21070 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
21071
21072 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
21073
21074 PR c++/60517
21075 * common.opt (-Wreturn-local-addr): Moved from c.opt.
21076 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
21077 (isolate_path): New argument to avoid inserting a trap.
21078 (find_implicit_erroneous_behaviour): Handle returning the address
21079 of a local variable.
21080 (find_explicit_erroneous_behaviour): Likewise.
21081
21082 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
21083
21084 PR lto/61868
21085 * toplev.c (init_random_seed): Move piece of code never called to
21086 set_random_seed.
21087 (set_random_seed): see above.
21088
21089 2014-07-31 Tom de Vries <tom@codesourcery.com>
21090
21091 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
21092
21093 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
21094
21095 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
21096 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
21097
21098 2014-07-31 Richard Biener <rguenther@suse.de>
21099
21100 * data-streamer.h (streamer_write_data_stream): Declare here,
21101 renamed from ...
21102 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
21103 * lto-cgraph.c (lto_output_node): Adjust.
21104 (lto_output_varpool_node): Likewise.
21105 * data-streamer-out.c (streamer_string_index): Likewise.
21106 (streamer_write_data_stream, lto_append_block): Move from ...
21107 * lto-section-out.c (lto_output_data_stream,
21108 lto_append_block): ... here.
21109
21110 2014-07-30 Mike Stump <mikestump@comcast.net>
21111
21112 * configure.ac: Also check for popen.
21113 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
21114 * configure: Regenerate.
21115 * config.in: Regenerate.
21116
21117 2014-07-30 Martin Jambor <mjambor@suse.cz>
21118
21119 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
21120 parameter to gimple.
21121
21122 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21123
21124 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
21125 address as second parameter to __tpf_eh_return routine.
21126
21127 2014-07-30 Jiong Wang <jiong.wang@arm.com>
21128
21129 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
21130 Thumb2.
21131
21132 2014-07-30 Tom Tromey <tromey@redhat.com>
21133
21134 PR c/59855
21135 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
21136 * doc/extend.texi (Type Attributes): Document designated_init
21137 attribute.
21138
21139 2014-07-30 Roman Gareev <gareevroman@gmail.com>
21140
21141 * graphite-isl-ast-to-gimple.c:
21142 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
21143 (gcc_expression_from_isl_expression): Pass type to
21144 gcc_expression_from_isl_ast_expr_id.
21145
21146 2014-07-30 Richard Biener <rguenther@suse.de>
21147
21148 * lto-streamer.h (lto_write_data): New function.
21149 * langhooks.c (lhd_append_data): Do not free block.
21150 * lto-section-out.c (lto_write_data): New function writing
21151 raw data to the current section.
21152 (lto_write_stream): Adjust for langhook semantic change.
21153 (lto_destroy_simple_output_block): Write header directly.
21154 * lto-opts.c (lto_write_options): Write options directly.
21155 * lto-streamer-out.c (produce_asm): Write heaeder directly.
21156 (lto_output_toplevel_asms): Likewise.
21157 (copy_function_or_variable): Copy data directly.
21158 (write_global_references): Output index table directly.
21159 (lto_output_decl_state_refs): Likewise.
21160 (write_symbol): Write data directly.
21161 (produce_symtab): Adjust.
21162 (produce_asm_for_decls): Output header and refs directly.
21163
21164 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
21165
21166 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
21167 to speculative_targets
21168 (get_class_context): Fix handling of contextes without outer type;
21169 avoid matching non-polymorphic types in LTO.
21170 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
21171 parameter to speculative_targetsp; handle speculation.
21172 (dump_possible_polymorphic_call_targets): Update dumping.
21173
21174 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
21175
21176 * common.opt (Wodr): Enable by default.
21177
21178 2014-07-29 Olivier Hainque <hainque@adacore.com>
21179
21180 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
21181
21182 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
21183
21184 PR bootstrap/61914
21185 * gengtype.c (strtoken): New function.
21186 (create_user_defined_type): Replace strtok with strtoken.
21187
21188 2014-07-29 Nathan Sidwell <nathan@acm.org>
21189
21190 * gcov-io.c (gcov_var): Make hidden.
21191 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
21192 (gcov_do_dump): Declare.
21193 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
21194
21195 2014-07-29 Martin Jambor <mjambor@suse.cz>
21196
21197 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
21198 parameter to gimple.
21199 (sra_modify_assign): Likewise.
21200
21201 2014-07-29 Richard Biener <rguenther@suse.de>
21202
21203 PR middle-end/52478
21204 * expr.c (expand_expr_real_2): Revert last change.
21205
21206 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
21207
21208 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
21209 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
21210 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
21211 call.
21212 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
21213 (contains_type_p): Forward declare.
21214 (polymorphic_call_target_hasher::hash): Hash speculative info.
21215 (polymorphic_call_target_hasher::equal): Compare speculative info.
21216 (get_class_context): Handle speuclation.
21217 (contains_type_p): Update.
21218 (get_polymorphic_call_info_for_decl): Update.
21219 (walk_ssa_copies): Break out from ...
21220 (get_polymorphic_call_info): ... here; set speculative context
21221 before giving up.
21222 * ipa-prop.c (ipa_write_indirect_edge_info,
21223 ipa_read_indirect_edge_info): Stream speculative context.
21224 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
21225 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
21226 SPECULATIVE_MAYBE_DERIVED_TYPE).
21227 (possible_polymorphic_call_targets overriders): Update.
21228 (dump_possible_polymorphic_call_targets overriders): Update.
21229 (dump_possible_polymorphic_call_target_p overriders): Update.
21230
21231 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
21232
21233 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
21234 ipa-devirt path; fix thinko there.
21235
21236 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
21237
21238 * config/i386/i386.c (ix86_return_in_memory): Replace one
21239 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
21240
21241 2014-07-28 Marek Polacek <polacek@redhat.com>
21242
21243 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
21244
21245 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
21246
21247 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
21248 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
21249 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
21250 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
21251 (USE_LD_AS_NEEDED): Likewise.
21252 (ASM_APP_ON): Likewise.
21253 (ASM_APP_OFF): Likewise.
21254 (TARGET_POSIX_IO): Likewise.
21255 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
21256 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
21257 (USE_LD_AS_NEEDED): Likewise.
21258 (ASM_APP_ON): Likewise.
21259 (ASM_APP_OFF): Likewise.
21260 (TARGET_POSIX_IO): Likewise.
21261
21262 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
21263
21264 PR middle-end/61734
21265 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
21266 operators other than the equality operators.
21267
21268 2014-07-28 Richard Biener <rguenther@suse.de>
21269
21270 PR middle-end/52478
21271 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
21272 sure to register SImode ones, not only >= word_mode ones.
21273 * expr.c (expand_expr_real_2): When expanding -ftrapv
21274 binops do not use OPTAB_LIB_WIDEN.
21275
21276 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
21277
21278 PR middle-end/61919
21279 * tree-outof-ssa.c (insert_partition_copy_on_edge)
21280 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
21281 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
21282 inserting them in the insn stream.
21283
21284 2014-07-28 Marek Polacek <polacek@redhat.com>
21285
21286 PR middle-end/61913
21287 * common.opt (Wodr): Add Var.
21288
21289 2014-07-28 Richard Biener <rguenther@suse.de>
21290
21291 PR tree-optimization/61921
21292 * tree-ssa-structalias.c (create_variable_info_for_1): Check
21293 if there is a varpool node before dereferencing it.
21294
21295 2014-07-28 Roman Gareev <gareevroman@gmail.com>
21296
21297 * graphite-sese-to-poly.c:
21298 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
21299 id of the pbb), which contains pointer to the pbb1.
21300
21301 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
21302
21303 2014-07-28 Roman Gareev <gareevroman@gmail.com>
21304
21305 * graphite-isl-ast-to-gimple.c:
21306 (graphite_create_new_guard): New function.
21307 (translate_isl_ast_node_if): New function.
21308 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
21309
21310 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
21311
21312 2014-07-27 Anthony Green <green@moxielogic.com>
21313
21314 * config.gcc: Add moxie-*-moxiebox* configuration.
21315 * config/moxie/moxiebox.h: New file.
21316
21317 2014-07-26 Andrew Pinski <apinski@cavium.com>
21318
21319 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
21320 from the read only register.
21321
21322 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
21323
21324 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
21325 as the allocation class if it isn't likely to be spilled.
21326
21327 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
21328
21329 * rtl.h (tls_referenced_p): Declare.
21330 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
21331 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
21332 (mips_cannot_force_const_mem): Use tls_referenced_p.
21333 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
21334 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
21335 instead of pa_tls_referenced_p.
21336 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
21337 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
21338 (pa_legitimate_constant_p): Likewise.
21339 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
21340 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
21341 (rs6000_cannot_force_const_mem, rs6000_emit_move)
21342 (rs6000_address_for_altivec): Use tls_referenced_p instead of
21343 rs6000_tls_referenced_p.
21344 (rs6000_tls_symbol_ref_1): Delete.
21345
21346 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
21347
21348 PR target/44551
21349 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
21350 Optimize inverse of a VEC_CONCAT.
21351
21352 2014-07-25 Xinliang David Li <davidxl@google.com>
21353
21354 * params.def: New parameter.
21355 * coverage.c (get_coverage_counts): Check new flag.
21356 (coverage_compute_profile_id): Check new flag.
21357 (coverage_begin_function): Check new flag.
21358 (coverage_end_function): Check new flag.
21359 * value-prof.c (coverage_node_map_initialized_p): New function.
21360 (init_node_map): Populate map with all functions.
21361 * doc/invoke.texi: Document new parameter.
21362
21363 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
21364 Richard Biener <rguenther@suse.de>
21365
21366 * lto-streamer-out.c (struct sccs): Turn to ...
21367 (class DFS): ... this one; refactor the DFS walk so it can
21368 be re-done on per-SCC basis.
21369 (DFS::DFS): New constructor.
21370 (DFS::~DFS): New destructor.
21371 (hash_tree): Add new MAP argument holding in-SCC hash values;
21372 remove POINTER_TYPE hashing hack.
21373 (scc_entry_compare): Rename to ...
21374 (DFS::scc_entry_compare): ... this one.
21375 (hash_scc): Rename to ...
21376 (DFS::hash_scc): ... this one; pass output_block instead
21377 of streamer_cache; work harder to get unique and stable SCC
21378 hashes.
21379 (DFS_write_tree): Rename to ...
21380 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
21381 (lto_output_tree): Update.
21382
21383 2014-07-25 Andi Kleen <ak@linux.intel.com>
21384
21385 * lto-streamer-out.c (hash_tree): Convert to inchash.
21386
21387 2014-07-25 Andi Kleen <ak@linux.intel.com>
21388
21389 * tree.c (build_type_attribute_qual_variant): Use inchash.
21390 (type_hash_list): Dito.
21391 (attribute_hash_list): Dito
21392 (iterative_hstate_expr): Dito.
21393 (iterative_hash_expr): Dito.
21394 (build_range_type_1): Dito.
21395 (build_array_type_1): Dito.
21396 (build_function_type): Dito.
21397 (build_method_type_directly): Dito.
21398 (build_offset_type): Dito.
21399 (build_complex_type): Dito.
21400 (make_vector_type): Dito.
21401 * tree.h (iterative_hash_expr): Add compat wrapper.
21402 (iterative_hstate_expr): Add.
21403
21404 2014-07-25 Andi Kleen <ak@linux.intel.com>
21405
21406 * Makefile.in (OBJS): Add inchash.o.
21407 (PLUGIN_HEADERS): Add inchash.h.
21408 * ipa-devirt.c: Include inchash.h.
21409 * lto-streamer-out.c: Dito.
21410 * tree-ssa-dom.c: Dito.
21411 * tree-ssa-pre.c: Dito.
21412 * tree-ssa-sccvn.c: Dito.
21413 * tree-ssa-tail-merge.c: Dito.
21414 * asan.c: Dito.
21415 * tree.c (iterative_hash_hashval_t): Move to ...
21416 (iterative_hash_host_wide_int): Move to ...
21417 * inchash.c: Here. New file.
21418 * tree.h (iterative_hash_hashval_t): Move to ...
21419 (iterative_hash_host_wide_int): Move to ...
21420 * inchash.h: Here. New file.
21421
21422 2014-07-25 Richard Biener <rguenther@suse.de>
21423
21424 PR middle-end/61762
21425 PR middle-end/61894
21426 * fold-const.c (native_encode_int): Add and handle offset
21427 parameter to do partial encodings of expr.
21428 (native_encode_fixed): Likewise.
21429 (native_encode_real): Likewise.
21430 (native_encode_complex): Likewise.
21431 (native_encode_vector): Likewise.
21432 (native_encode_string): Likewise.
21433 (native_encode_expr): Likewise.
21434 * fold-const.c (native_encode_expr): Add offset parameter
21435 defaulting to -1.
21436 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
21437 (fold_ctor_reference): Handle all reads from tcc_constant
21438 ctors.
21439
21440 2014-07-25 Richard Biener <rguenther@suse.de>
21441
21442 * tree-inline.c (estimate_move_cost): Mark speed_p argument
21443 as possibly unused.
21444
21445 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21446
21447 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
21448
21449 2014-07-24 Kyle McMartin <kyle@redhat.com>
21450
21451 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
21452
21453 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21454
21455 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
21456 Add prototype.
21457 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
21458 function.
21459 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
21460 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
21461 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
21462
21463 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21464
21465 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
21466 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
21467 aggregate types. Instead, *all* aggregate types, except for single-
21468 element or homogeneous float/vector aggregates, are quadword-aligned
21469 if required by their type alignment. Issue -Wpsabi note when a type
21470 is now treated differently than before.
21471
21472 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21473
21474 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
21475 does not fit fully into floating-point registers, and there is still
21476 space in the register parameter area, use GPRs to pass those parts
21477 of the argument. Issue -Wpsabi note if any parameter is now treated
21478 differently than before.
21479 (rs6000_arg_partial_bytes): Update.
21480
21481 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
21482
21483 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
21484
21485 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
21486
21487 * rtl.h (target_rtl): Remove lang_dependent_initialized.
21488 * toplev.c (initialize_rtl): Don't use it. Move previously
21489 "language-dependent" calls to...
21490 (backend_init): ...here.
21491 (lang_dependent_init_target): Don't set lang_dependent_initialized.
21492 Assert that RTL initialization hasn't happend yet.
21493
21494 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
21495
21496 PR rtl-optimization/61629
21497 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
21498 they have already been initialized.
21499
21500 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
21501
21502 PR middle-end/61268
21503 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
21504 DECL_INCOMING_RTL and entry_parm.
21505 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
21506 * calls.c (load_register_parameters): Likewise argument values.
21507 (emit_library_call_value_1, store_one_arg): Likewise argument
21508 save areas.
21509 * config/i386/i386.c (assign_386_stack_local): Likewise the local
21510 stack slot.
21511 * explow.c (validize_mem): Modify the argument in-place.
21512
21513 2014-07-24 Jiong Wang <jiong.wang@arm.com>
21514
21515 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
21516 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
21517
21518 2014-07-24 Jiong Wang <jiong.wang@arm.com>
21519
21520 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
21521 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
21522
21523 2014-07-24 Jiong Wang <jiong.wang@arm.com>
21524
21525 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
21526 (aarch64_save_callee_saves): New parameter "skip_wb".
21527 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
21528
21529 2014-07-24 Jiong Wang <jiong.wang@arm.com>
21530
21531 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
21532 "wb_candidate2".
21533 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
21534
21535 2014-07-24 Roman Gareev <gareevroman@gmail.com>
21536
21537 * graphite-isl-ast-to-gimple.c:
21538 (graphite_create_new_loop): Add calling of isl_id_free to properly
21539 decrement reference counts.
21540
21541 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
21542
21543 2014-07-24 Martin Liska <mliska@suse.cz>
21544 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
21545 function used.
21546 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
21547 (rs6000_code_end): Likewise.
21548
21549 2014-07-24 Martin Liska <mliska@suse.cz>
21550
21551 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
21552 symtab_node funtion used.
21553 (rs6000_xcoff_declare_object_name): Likewise.
21554
21555 2014-07-24 Martin Liska <mliska@suse.cz>
21556
21557 * cgraphunit.c (compile): Correct function used.
21558
21559 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
21560
21561 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
21562 as non-indexable.
21563
21564 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
21565
21566 PR lto/61802
21567 * varasm.c (bss_initializer_p): Handle offlined ctors.
21568 (align_variable, get_variable_align): Likewise.
21569 (make_decl_one_only): Likewise.
21570 (default_binds_local_p_1): Likewise.
21571 (decl_binds_to_current_def_p): Likewise.
21572 (get_variable_section): Get constructor if it is offlined.
21573 (assemble_variable_contents): Sanity check that the caller
21574 streamed in the ctor in LTO.
21575
21576 2014-07-24 Roman Gareev <gareevroman@gmail.com>
21577
21578 * graphite-isl-ast-to-gimple.c:
21579 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
21580 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
21581 isl_ast_op_pdiv_r to the different case.
21582
21583 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
21584
21585 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21586
21587 PR middle-end/61876
21588 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
21589 when flag_errno_math is on.
21590
21591 2014-07-24 Martin Liska <mliska@suse.cz>
21592
21593 * cgraph.h (varpool_node):
21594 (availability get_availability (void)):
21595 created from cgraph_variable_initializer_availability
21596 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
21597 created from: cgraph_variable_initializer_availability
21598 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
21599 (void finalize_named_section_flags (void)):
21600 created from varpool_finalize_named_section_flags
21601 (bool assemble_decl (void)): created from varpool_assemble_decl
21602 (void analyze (void)): created from varpool_analyze_node
21603 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
21604 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
21605 (void remove_initializer (void)): created from varpool_remove_initializer
21606 (tree get_constructor (void)): created from varpool_get_constructor
21607 (bool externally_visible_p (void)): created from varpool_externally_visible_p
21608 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
21609 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
21610 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
21611 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
21612 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
21613 (static bool output_variables (void)): created from varpool_output_variables
21614 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
21615 created from varpool_extra_name_alias
21616 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
21617 (static void dump_varpool (FILE *f)): created from dump_varpool
21618 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
21619 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
21620 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
21621 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
21622 (void assemble_aliases (void)): created from assemble_aliases
21623
21624 2014-07-24 Martin Liska <mliska@suse.cz>
21625
21626 * cgraph.h (symtab_node):
21627 (void register_symbol (void)): created from symtab_register_node
21628 (void remove (void)): created from symtab_remove_node
21629 (void dump (FILE *f)): created from dump_symtab_node
21630 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
21631 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
21632 (struct ipa_ref *add_reference (symtab_node *referred_node,
21633 enum ipa_ref_use use_type)): created from add_reference
21634 (struct ipa_ref *add_reference (symtab_node *referred_node,
21635 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
21636 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
21637 gimple stmt)): created from maybe_add_reference
21638 (bool semantically_equivalent_p (symtab_node *target)): created from
21639 symtab_semantically_equivalent_p
21640 (void remove_from_same_comdat_group (void)): created from
21641 remove_from_same_comdat_group
21642 (void add_to_same_comdat_group (symtab_node *old_node)): created from
21643 symtab_add_to_same_comdat_group
21644 (void dissolve_same_comdat_group_list (void)): created from
21645 symtab_dissolve_same_comdat_group_list
21646 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
21647 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
21648 created from symtab_alias_ultimate_target
21649 (inline symtab_node *next_defined_symbol (void)): created from
21650 symtab_next_defined_symbol
21651 (bool resolve_alias (symtab_node *target)): created from
21652 symtab_resolve_alias
21653 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
21654 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
21655 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
21656 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
21657 (void set_section (const char *section)): created from set_section_1
21658 (enum availability get_availability (void)): created from symtab_node_availability
21659 (void make_decl_local (void)): created from symtab_make_decl_local
21660 (bool real_symbol_p (void)): created from symtab_read_node
21661 (can_be_discarded_p (void)): created from symtab_can_be_discarded
21662 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
21663 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
21664 symtab_in_same_comdat_p;
21665 (bool address_taken_from_non_vtable_p (void)): created from
21666 address_taken_from_non_vtable_p
21667 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
21668 (static void dump_table (FILE *)): created from dump_symtab
21669 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
21670 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
21671 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
21672 symtab_used_from_object_file_p
21673 (void dump_base (FILE *)): created from dump_symtab_base
21674 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
21675 (void unregister (void)): created from symtab_unregister_node
21676 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
21677 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
21678 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
21679 symtab_nonoverwritable_alias_1
21680 * cgraph.h (cgraph_node):
21681 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
21682 created from cgraph_remove_node_and_inline_clones
21683 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
21684 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
21685 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
21686 (cgraph_node *function_symbol (enum availability *avail = NULL)):
21687 created from cgraph_function_node
21688 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
21689 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
21690 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
21691 created from cgraph_create_clone
21692 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
21693 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
21694 created from cgraph_create_virtual_clone
21695 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
21696 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
21697 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
21698 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
21699 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
21700 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
21701 created from cgraph_function_version_info
21702 (struct cgraph_function_version_info *insert_new_function_version (void)):
21703 created from insert_new_cgraph_node_version
21704 (struct cgraph_function_version_info *function_version (void)): created from
21705 get_cgraph_node_version
21706 (void analyze (void)): created from analyze_function
21707 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
21708 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
21709 tree real_alias) cgraph_add_thunk
21710 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
21711 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
21712 created from cgraph_function_or_thunk_node
21713 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
21714 created from expand_thunk
21715 (void reset (void)): created from cgraph_reset_node
21716 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
21717 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
21718 (void remove (void)): created from cgraph_remove_node
21719 (void dump (FILE *f)): created from dump_cgraph_node
21720 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
21721 (bool get_body (void)): created from cgraph_get_body
21722 (void release_body (void)): created from cgraph_release_function_body
21723 (void unnest (void)): created from cgraph_unnest_node
21724 (void make_local (void)): created from cgraph_make_node_local
21725 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
21726 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
21727 gcov_type count, int freq)): created from cgraph_create_edge
21728 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
21729 gcov_type count, int freq)): created from cgraph_create_indirect_edge
21730 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
21731 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
21732 created from cgraph_create_edge_including_clones
21733 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
21734 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
21735 (void remove_callers (void)): created from cgraph_node_remove_callers
21736 (void remove_callees (void)): created from cgraph_node_remove_callees
21737 (enum availability get_availability (void)): created from cgraph_function_body_availability
21738 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
21739 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
21740 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
21741 (void call_duplication_hooks (cgraph_node *node2)): created from
21742 cgraph_call_node_duplication_hooks
21743 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
21744 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
21745 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
21746 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
21747 (void call_function_insertion_hooks (void)):
21748 created from cgraph_call_function_insertion_hooks
21749 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
21750 (bool local_p (void)): created from cgraph_local_node
21751 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
21752 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
21753 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
21754 (inline bool only_called_directly_or_aliased_p (void)):
21755 created from cgraph_only_called_directly_or_aliased_p
21756 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
21757 created from cgraph_will_be_removed_from_program_if_no_direct_calls
21758 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
21759 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
21760 (bool can_remove_if_no_direct_calls_p (void)):
21761 created from cgraph_can_remove_if_no_direct_calls_p
21762 (inline bool has_gimple_body_p (void)):
21763 created from cgraph_function_with_gimple_body_p
21764 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
21765 (static void dump_cgraph (FILE *f)): created from dump_cgraph
21766 (static inline void debug_cgraph (void)): created from debug_cgraph
21767 (static void record_function_versions (tree decl1, tree decl2)):
21768 created from record_function_versions
21769 (static void delete_function_version (tree decl)):
21770 created from delete_function_version
21771 (static void add_new_function (tree fndecl, bool lowered)):
21772 created from cgraph_add_new_function
21773 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
21774 (static cgraph_node * create (tree decl)): created from cgraph_create_node
21775 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
21776 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
21777 (static cgraph_node *get_for_asmname (tree asmname)):
21778 created from cgraph_node_for_asm
21779 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
21780 created from cgraph_same_body_alias
21781 (static bool used_from_object_file_p_worker (cgraph_node *node,
21782 void *): new function
21783 (static bool non_local_p (cgraph_node *node, void *)):
21784 created from cgraph_non_local_node_p_1
21785 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
21786 created from verify_cgraph
21787 (static bool make_local (cgraph_node *node, void *)):
21788 created from cgraph_make_node_local
21789 (static cgraph_node *create_alias (tree alias, tree target)):
21790 created from cgraph_create_function_alias
21791 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
21792 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
21793 created from cgraph_create_edge_1
21794 * cgraph.h (varpool_node):
21795 (void remove (void)): created from varpool_remove_node
21796 (void dump (FILE *f)): created from dump_varpool_node
21797
21798 2014-07-24 Richard Biener <rguenther@suse.de>
21799
21800 PR ipa/61823
21801 * tree-ssa-structalias.c (create_variable_info_for_1):
21802 Use varpool_get_constructor.
21803 (create_variable_info_for): Likewise.
21804
21805 2014-07-24 Jiong Wang <jiong.wang@arm.com>
21806
21807 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
21808 subtract outgoing area size when restoring stack_pointer_rtx.
21809
21810 2014-07-24 Nick Clifton <nickc@redhat.com>
21811
21812 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
21813 that operations are taking place in parallel.
21814 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
21815
21816 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
21817
21818 * omp-low.c (extract_omp_for_data): Add missing break statement.
21819
21820 2014-07-24 Richard Biener <rguenther@suse.de>
21821
21822 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
21823 * tree-inline.c (estimate_move_cost): Add speed_p parameter
21824 and adjust MOVE_RATIO query accordingly.
21825 (estimate_num_insns): Adjust callers.
21826 * ipa-prop.c (ipa_populate_param_decls): Likewise.
21827 * ipa-cp.c (gather_context_independent_values,
21828 estimate_local_effects): Likewise.
21829 * ipa-split.c (consider_split): Likewise.
21830
21831 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
21832
21833 * config/i386/driver-i386.c: Remove names of unused arguments and
21834 unnecessary unused attributes.
21835 * config/i386/host-mingw32.c: Likewise.
21836 * config/i386/i386.c: Likewise.
21837 * config/i386/winnt-stubs.c: Likewise.
21838 * config/i386/winnt.c: Likewise.
21839
21840 2014-07-23 Jiong Wang <jiong.wang@arm.com>
21841
21842 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
21843 (aarch64_gen_loadwb_pair): New helper function.
21844 (aarch64_expand_epilogue): Simplify code using new helper functions.
21845 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
21846
21847 2014-07-23 Jiong Wang <jiong.wang@arm.com>
21848
21849 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
21850 (aarch64_gen_storewb_pair): New helper function.
21851 (aarch64_expand_prologue): Simplify code using new helper functions.
21852 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
21853
21854 2014-07-23 Jiong Wang <jiong.wang@arm.com>
21855
21856 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
21857 Rename to aarch64_save_callee_saves, remove restore code.
21858 (aarch64_restore_callee_saves): New function.
21859
21860 2014-07-23 Jiong Wang <jiong.wang@arm.com>
21861
21862 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
21863 (aarch64_save_callee_saves): New function to handle reg save
21864 for both core and vectore regs.
21865
21866 2014-07-23 Jiong Wang <jiong.wang@arm.com>
21867
21868 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
21869 (aarch64_gen_store_pair): New helper function.
21870 (aarch64_save_or_restore_callee_save_registers)
21871 (aarch64_save_or_restore_fprs): Use new helper functions.
21872
21873 2014-07-23 Jiong Wang <jiong.wang@arm.com>
21874
21875 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
21876 (aarch64_save_or_restore_callee_save_registers)
21877 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
21878
21879 2014-07-23 Jiong Wang <jiong.wang@arm.com>
21880
21881 * config/aarch64/aarch64.c
21882 (aarch64_save_or_restore_callee_save_registers)
21883 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
21884
21885 2014-07-23 Jiong Wang <jiong.wang@arm.com>
21886
21887 * config/aarch64/aarch64.c
21888 (aarch64_save_or_restore_callee_save_registers)
21889 (aarch64_save_or_restore_fprs): Remove 'increment'.
21890
21891 2014-07-23 Jiong Wang <jiong.wang@arm.com>
21892
21893 * config/aarch64/aarch64.c
21894 (aarch64_save_or_restore_callee_save_registers)
21895 (aarch64_save_or_restore_fprs): Use register offset in
21896 cfun->machine->frame.reg_offset.
21897
21898 2014-07-23 Jiong Wang <jiong.wang@arm.com>
21899
21900 * config/aarch64/aarch64.c
21901 (aarch64_save_or_restore_callee_save_registers)
21902 (aarch64_save_or_restore_fprs): Remove base_rtx.
21903
21904 2014-07-23 Jiong Wang <jiong.wang@arm.com>
21905
21906 * config/aarch64/aarch64.c
21907 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
21908 to 'start_offset'. Remove local variable 'start_offset'.
21909
21910 2014-07-23 Jiong Wang <jiong.wang@arm.com>
21911
21912 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
21913 type to HOST_WIDE_INT.
21914
21915 2014-07-23 Jiong Wang <jiong.wang@arm.com>
21916
21917 * config/aarch64/aarch64.c (aarch64_expand_prologue)
21918 (aarch64_save_or_restore_fprs)
21919 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
21920
21921 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
21922
21923 * config/arm/t-rtems-eabi: Add
21924 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
21925 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
21926 mbig-endian/mthumb/march=armv7-r, and
21927 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
21928 multilibs.
21929
21930 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
21931 Chris Johns <chrisj@rtems.org>
21932 Joel Sherrill <joel.sherrill@oarcorp.com>
21933
21934 * config.gcc: Add nios2-*-rtems*.
21935 * config/nios2/rtems.h: New file.
21936 * gcc/config/nios2/t-rtems: New file.
21937
21938 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
21939
21940 PR target/61396
21941 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
21942 constant numbers, not general constants.
21943 (rs6000_expand_vector_init): Ditto.
21944
21945 2014-07-23 Nathan Sidwell <nathan@acm.org>
21946
21947 * gcov-tool.c (gcov_list): Declare here.
21948 (set_gcov_list): Remove.
21949 (gcov_output_files): Set gcov_list directly.
21950
21951 2014-07-23 Host Schirmeier <horst@schirmeier.com>
21952
21953 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
21954
21955 2014-07-23 Jiong Wang <jiong.wang@arm.com>
21956
21957 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
21958 callee-saved registers are available for padding purpose
21959 and r3 is not mandatory, then prefer use those callee-saved
21960 instead of r3.
21961
21962 2014-07-23 Richard Biener <rguenther@suse.de>
21963
21964 * params.def (PARAM_MAX_COMBINE_INSNS): New.
21965 * combine.c: Include statistics.h and params.h.
21966 (combine_instructions): Guard three and four insn combines
21967 with max-combine-insns value. Record statistics for combines
21968 performed.
21969 * doc/invoke.texi (max-combine-insns): Document new param.
21970
21971 2014-07-23 Roman Gareev <gareevroman@gmail.com>
21972
21973 * graphite-isl-ast-to-gimple.c:
21974 (translate_isl_ast_node_block): New function.
21975 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
21976
21977 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
21978 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
21979
21980 2014-07-23 Roman Gareev <gareevroman@gmail.com>
21981
21982 * graphite-isl-ast-to-gimple.c:
21983 (get_max_schedule_dimensions): New function.
21984 (extend_schedule): Likewise.
21985 (generate_isl_schedule): Add calling of extend_schedule and
21986 get_max_schedule_dimensions.
21987
21988 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21989
21990 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
21991 (case UNSPEC): Handle UNSPEC_RBIT.
21992
21993 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21994
21995 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
21996 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
21997
21998 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21999
22000 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
22001
22002 2014-07-22 Roman Gareev <gareevroman@gmail.com>
22003
22004 * graphite-isl-ast-to-gimple.c:
22005 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
22006 (ivs_params_clear):
22007 (build_iv_mapping): New function.
22008 (translate_isl_ast_node_user): Likewise.
22009 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
22010
22011 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
22012 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
22013 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
22014
22015 2014-07-21 Bin Cheng <bin.cheng@arm.com>
22016
22017 PR target/55701
22018 * config/arm/arm.md (setmem): New pattern.
22019 * config/arm/arm-protos.h (struct tune_params): New fields.
22020 (arm_gen_setmem): New prototype.
22021 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
22022 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
22023 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
22024 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
22025 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
22026 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
22027 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
22028 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
22029 (arm_const_inline_cost): New function.
22030 (arm_block_set_max_insns): New function.
22031 (arm_block_set_non_vect_profit_p): New function.
22032 (arm_block_set_vect_profit_p): New function.
22033 (arm_block_set_unaligned_vect): New function.
22034 (arm_block_set_aligned_vect): New function.
22035 (arm_block_set_unaligned_non_vect): New function.
22036 (arm_block_set_aligned_non_vect): New function.
22037 (arm_block_set_vect, arm_gen_setmem): New functions.
22038
22039 2014-07-21 Bin Cheng <bin.cheng@arm.com>
22040
22041 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
22042
22043 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
22044
22045 PR target/61855
22046 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
22047 out of #ifdef __OPTIMIZE__.
22048
22049 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
22050
22051 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
22052 different trapping status if -fnon-call-exceptions is enabled.
22053
22054 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
22055
22056 * expr.c (store_field): Handle VOIDmode for calls that return values
22057 in multiple locations.
22058
22059 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22060
22061 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
22062 (altivec_vsldoi_<mode>): Likewise.
22063
22064 2014-07-20 Roman Gareev <gareevroman@gmail.com>
22065
22066 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
22067 to the number of characters in the line.
22068
22069 2014-07-20 Roman Gareev <gareevroman@gmail.com>
22070
22071 * graphite-isl-ast-to-gimple.c: Add using of
22072 build_nonstandard_integer_type instead of int128_integer_type_node.
22073
22074 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
22075
22076 * toplev.c (output_stack_usage): Adjust the location of the warning.
22077
22078 2014-07-19 Daniel Cederman <cederman@gaisler.com>
22079
22080 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
22081 (*membar_storeload): Disable for LEON3.
22082
22083 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
22084
22085 PR rtl-optimization/61461
22086 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
22087
22088 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
22089
22090 PR target/61794
22091 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
22092 Fix instruction constraint.
22093 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
22094
22095 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
22096
22097 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
22098
22099 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
22100
22101 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
22102 GNU coding standards.
22103 (nds32_register_move_cost): Likewise.
22104 (nds32_memory_move_cost): Likewise.
22105 (nds32_address_cost): Likewise.
22106
22107 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22108
22109 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
22110
22111 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
22112
22113 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
22114 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
22115 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
22116 (HAVE_sync_compare_and_swapqi): Define.
22117 (HAVE_sync_compare_and_swaphi): Likewise.
22118 (HAVE_sync_compare_and_swapsi): Likewise.
22119
22120 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
22121
22122 * config/mips/p5600.md: Add missing cpu tests.
22123
22124 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22125
22126 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
22127 (vmla_f64): Likewise.
22128 (vfms_f64): Likewise.
22129 (vmls_f64): Likewise.
22130
22131 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22132
22133 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
22134 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
22135
22136 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22137
22138 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
22139 (vmlal_high_lane_s32): Likewise.
22140 (vmlal_high_lane_u16): Likewise.
22141 (vmlal_high_lane_u32): Likewise.
22142 (vmlsl_high_lane_s16): Likewise.
22143 (vmlsl_high_lane_s32): Likewise.
22144 (vmlsl_high_lane_u16): Likewise.
22145 (vmlsl_high_lane_u32): Likewise.
22146
22147 2014-07-17 Terry Guo <terry.guo@arm.com>
22148
22149 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
22150 (alus_reg): Renamed to alus_sreg.
22151 * config/arm/arm-fixed.md: Change type of non-dsp instructions
22152 from alu_reg to alu_sreg. Change type of dsp instructions from
22153 alu_reg to alu_dsp_reg.
22154 * config/arm/thumb1.md: Likewise.
22155 * config/arm/thumb2.md: Likewise.
22156 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
22157 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
22158 with alu_sreg and alus_sreg.
22159 * config/arm/arm1026ejs.md (alu_op): Likewise.
22160 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
22161 * config/arm/arm926ejs.md (9_alu_op): Likewise.
22162 * config/arm/fa526.md (526_alu_op): Likewise.
22163 * config/arm/fa606te.md (606te_alu_op): Likewise.
22164 * config/arm/fa626te.md (626te_alu_op): Likewise.
22165 * config/arm/fa726te.md (726te_alu_op): Likewise.
22166 * config/arm/fmp626.md (mp626_alu_op): Likewise.
22167 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
22168 alu_sreg, alu_dsp_reg and alus_sreg.
22169 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
22170 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
22171 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
22172 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
22173 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
22174 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
22175 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
22176 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
22177 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
22178 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
22179 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
22180 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
22181 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
22182 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
22183 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
22184 alus_reg to alus_sreg.
22185
22186 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
22187
22188 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
22189 infinity format.
22190
22191 2014-07-17 Richard Biener <rguenther@suse.de>
22192
22193 PR rtl-optimization/61801
22194 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
22195 don't set reg_pending_barrier if it appears in a debug-insn.
22196
22197 2014-07-16 DJ Delorie <dj@redhat.com>
22198
22199 * config/rx/rx.c (rx_option_override): Fix alignment values.
22200 (rx_align_for_label): Likewise.
22201
22202 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
22203
22204 PR target/61737.
22205 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
22206 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
22207 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
22208 functions.
22209 (cris_print_index, cris_print_operand, cris_constant_index_p)
22210 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
22211 (cris_address_cost): Ditto last CONSTANT_P.
22212 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
22213 callers changed. Yield cris_offsettable_symbol for non-PIC
22214 constant symbolic expressions including labels. Yield cris_unspec
22215 for all unspecs.
22216 (cris_expand_pic_call_address): New parameter MARKERP. Set its
22217 target to pic_offset_table_rtx for calls that will likely go
22218 through PLT, const0_rtx when they can't. All callers changed.
22219 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
22220 symbolic expressions to be PICified. Remove second, redundant,
22221 assert on can_create_pseudo_p returning non-zero. Use
22222 replace_equiv_address_nv, not replace_equiv_address, for final
22223 operand update.
22224 * config/cris/cris.md ("movsi"): Move variable t to pattern
22225 toplevel. Adjust assert for new cris_symbol_type member. Use
22226 CONSTANT_P instead of CONSTANT_ADDRESS_P.
22227 ("*movsi_internal") <case 9>: Make check for valid unspec operands
22228 for lapc stricter.
22229 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
22230 ("call", "call_value"): Use second incoming operand as a marker
22231 for pic-offset-table-register being used.
22232 ("*expanded_call_non_v32", "*expanded_call_v32")
22233 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
22234 second incoming operand to CALL, match cris_call_type_marker.
22235 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
22236 ("*expanded_call_side"): Ditto. Fix typo in comment.
22237 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
22238 CONSTANT_P.
22239 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
22240 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
22241 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
22242 users changed. Add members cris_offsettable_symbol and cris_unspec.
22243 (cris_symbol_type): Rename from cris_pic_symbol_type.
22244 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
22245 just CONSTANT_P.
22246 * config/cris/cris-protos.h (cris_symbol_type_of,
22247 cris_expand_pic_call_address): Adjust prototypes.
22248 (cris_legitimate_constant_p): New prototype.
22249
22250 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
22251 an existing tmake_file. Don't add t-slibgcc and t-linux.
22252
22253 2014-07-17 Jason Merrill <jason@redhat.com>
22254
22255 PR c++/61623
22256 * symtab.c (symtab_remove_from_same_comdat_group): Also
22257 set_comdat_group to NULL_TREE.
22258 (verify_symtab): Fix diagnostic.
22259
22260 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
22261
22262 PR target/61662
22263 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
22264
22265 2014-07-16 Dodji Seketeli <dodji@redhat.com>
22266
22267 Support location tracking for built-in macro tokens
22268 * input.h (is_location_from_builtin_token): New function declaration.
22269 * input.c (is_location_from_builtin_token): New function definition.
22270 * toplev.c (general_init): Tell libcpp what the pre-defined
22271 spelling location for built-in tokens is.
22272
22273 2014-07-16 Jakub Jelinek <jakub@redhat.com>
22274
22275 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
22276 on the FUNCTION_DECL.
22277
22278 2014-07-16 Richard Biener <rguenther@suse.de>
22279
22280 PR other/61782
22281 * doc/extend.texi (always_inline): Clarify.
22282
22283 2014-07-15 Eric Christopher <echristo@gmail.com>
22284
22285 * doc/invoke.texi (Link Options): Document -z option.
22286
22287 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
22288
22289 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
22290 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
22291
22292 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
22293
22294 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
22295
22296 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
22297
22298 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
22299 varpool_assemble_decl.
22300 * varpool.c (varpool_assemble_decl): Assert that node->definition is
22301 true.
22302
22303 2014-07-15 Michael Matz <matz@suse.de>
22304
22305 PR rtl-optimization/61772
22306 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
22307
22308 2014-07-15 Richard Biener <rguenther@suse.de>
22309
22310 * opts.c (default_options_table): Disable bit-ccp at -Og.
22311
22312 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
22313
22314 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
22315
22316 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
22317
22318 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
22319 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
22320 call langhook for unknown declaration.
22321 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
22322 * tree.h (DECL_ARGUMENTS): Update.
22323 * print-tree.c (print_node): Update.
22324 * tree-core.h (tree_decl_non_common): Remove arguments.
22325 (tree_function_decl): Add arguments.
22326
22327 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
22328
22329 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
22330
22331 2014-07-14 Richard Biener <rguenther@suse.de>
22332
22333 PR tree-optimization/61779
22334 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
22335 simplifying a condition.
22336
22337 2014-07-14 Richard Biener <rguenther@suse.de>
22338
22339 * builtins.c (c_strlen): Make only_value == 2 really only
22340 affect warning generation.
22341
22342 2014-07-14 Richard Biener <rguenther@suse.de>
22343
22344 PR tree-optimization/61757
22345 PR tree-optimization/61783
22346 PR tree-optimization/61787
22347 * tree-ssa-dom.c (record_equality): Revert canonicalization
22348 change and add comment.
22349 (propagate_rhs_into_lhs): Revert previous fix, removing
22350 loop depth restriction again.
22351
22352 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22353
22354 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
22355 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
22356 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
22357 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
22358 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
22359 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
22360 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
22361
22362 2014-07-14 Richard Biener <rguenther@suse.de>
22363
22364 * cgraph.h (decl_in_symtab_p): Make inline.
22365
22366 2014-07-14 Jakub Jelinek <jakub@redhat.com>
22367
22368 PR middle-end/61294
22369 * doc/invoke.texi (-Wmemset-transposed-args): Document.
22370
22371 PR target/61656
22372 * config/i386/i386.c (classify_argument): Don't merge classes above
22373 number of words.
22374
22375 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
22376
22377 * cgraph.h (symtab_node): Add nonzero_address.
22378 (decl_in_symtab_p): Break out from ...
22379 (symtab_get_node): ... here.
22380 * fold-const.c: Include cgraph.h
22381 (tree_single_nonzero_warnv_p): Use symtab to determine
22382 if symbol is non-zero.
22383 * symtab.c (symtab_node::nonzero_address): New method.
22384
22385 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
22386
22387 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
22388 forgotten in previous commit.
22389
22390 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
22391
22392 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
22393 on builtin types.
22394 * ipa-devirt.c: Include stor-layout.h and intl.h
22395 (odr_subtypes_equivalent_p): New function.
22396 (warn_odr): New function.
22397 (warn_type_mismatch): New function.
22398 (odr_types_equivalent_p): New function.
22399 (add_type_duplicate): Use it.
22400 * common.opt (Wodr): New flag.
22401 * doc/invoke.texi (Wodr): Document new warning.
22402
22403 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
22404
22405 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
22406 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
22407 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
22408 (varpool_get_constructor): Push CTORS_IN timevar.
22409 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
22410
22411 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
22412
22413 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
22414 Remove VOID_FTYPE_PUSHORT.
22415 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
22416 Change code to USHORT_FTYPE_VOID.
22417 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
22418 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
22419 (ix86_atomic_assign_expand_fenv): Update for
22420 __builtin_ia32_fnstsw changes.
22421 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
22422 (fnstsw): Change operand 0 to nonimmediate operand.
22423
22424 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
22425
22426 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
22427 (varpool_get_constructor): New function.
22428 (varpool_ctor_useable_for_folding_p): Break out from ...
22429 (ctor_for_folding): ... here; use varpool_get_constructor.
22430 (varpool_assemble_decl): Likewise.
22431 * lto-streamer.h (struct output_block): Turn cgraph_node
22432 to symbol filed.
22433 (lto_input_variable_constructor): Declare.
22434 * ipa-visibility.c (function_and_variable_visibility): Use
22435 varpool_get_constructor.
22436 * cgraph.h (varpool_get_constructor): Declare.
22437 (varpool_ctor_useable_for_folding_p): New function.
22438 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
22439 parameter; return error_mark_node for non-trivial constructors.
22440 (lto_write_tree_1, DFS_write_tree): Update use of
22441 get_symbol_initial_value.
22442 (output_function): Update initialization of symbol.
22443 (output_constructor): New function.
22444 (copy_function): Rename to ..
22445 (copy_function_or_variable): ... this one; handle vars too.
22446 (lto_output): Output variable sections.
22447 * lto-streamer-in.c (input_constructor): New function.
22448 (lto_read_body): Rename from ...
22449 (lto_read_body_or_constructor): ... this one; handle vars too.
22450 (lto_input_variable_constructor): New function.
22451 * ipa-prop.c (ipa_prop_write_jump_functions,
22452 ipa_prop_write_all_agg_replacement): Update.
22453 * lto-cgraph.c (compute_ltrans_boundary): Use it.
22454 (output_cgraph_opt_summary): Set symbol to NULL.
22455
22456 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
22457
22458 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
22459 non-polymorphic types.
22460 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
22461 * ipa-devirt.c (types_same_for_odr): Do not explode when one
22462 of types is not polymorphic.
22463
22464 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
22465
22466 * lra-constraints.c (remove_inheritance_pseudos): Process
22467 destination pseudo too.
22468
22469 2014-07-11 Rong Xu <xur@google.com>
22470
22471 * gcov-tool.c (gcov_output_files): Fix build error introduced in
22472 commit r212448.
22473
22474 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22475
22476 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
22477 * config/avr/avr-devices.c (AVR_MCU): Same.
22478 (avr_mcu_types): add text start value to end of device list.
22479 * config/avr/avr-mcus.def: Add text section start for all devices.
22480 (ata5782): Add new avr5 device.
22481 (ata5831): Same.
22482 * config/avr/avr-tables.opt: Regenerate.
22483 * config/avr/avr.h: Add declaration for text section start handler.
22484 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
22485 SPEC functions.
22486 (LINK_SPEC): Include text section start handler to linker spec.
22487 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
22488 pass -Ttext option to linker if the text section start for the device
22489 is not zero.
22490 * config/avr/t-multilib: Regenerate.
22491 * doc/avr-mmcu.texi: Regenerate.
22492
22493 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
22494
22495 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
22496 * config/rs6000/aix52.h (LINK_SPEC): Same.
22497 * config/rs6000/aix53.h (LINK_SPEC): Same.
22498 * config/rs6000/aix61.h (LINK_SPEC): Same.
22499 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
22500
22501 2014-07-11 Roman Gareev <gareevroman@gmail.com>
22502
22503 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
22504 (graphite_verify): New function.
22505 (ivs_params_clear): New function.
22506 (gcc_expression_from_isl_ast_expr_id): New function.
22507 (gcc_expression_from_isl_expr_int): New function.
22508 (binary_op_to_tree): New function.
22509 (ternary_op_to_tree): New function.
22510 (unary_op_to_tree): New function.
22511 (nary_op_to_tree): New function.
22512 (gcc_expression_from_isl_expr_op): New function.
22513 (gcc_expression_from_isl_expression): New function.
22514 (graphite_create_new_loop): New function.
22515 (translate_isl_ast_for_loop): New function.
22516 (get_upper_bound): New function.
22517 (graphite_create_new_loop_guard): New function.
22518 (translate_isl_ast_node_for): New function.
22519 (translate_isl_ast): New function.
22520 (add_parameters_to_ivs_params): New function.
22521 (scop_to_isl_ast): New parameter ip.
22522 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
22523
22524 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
22525
22526 * config/xtensa/predicates.md (call expander): Update for
22527 DECL_SECTION_NAME being string.
22528
22529 2014-07-11 Richard Biener <rguenther@suse.de>
22530
22531 PR middle-end/61473
22532 * builtins.c (fold_builtin_memory_op): Inline memory moves that
22533 can be implemented with a single load followed by a single store.
22534 (c_strlen): Only warn when only_value is not 2.
22535
22536 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
22537
22538 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
22539
22540 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
22541
22542 PR target/61561
22543 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
22544 (*movhi_bytes): Likewise.
22545 (*arm_movqi_insn): Likewise.
22546
22547 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
22548
22549 PR target/56858
22550 * config/alpha/alpha.c: Include tree-pass.h, context.h
22551 and pass_manager.h.
22552 (pass_data_handle_trap_shadows): New pass.
22553 (pass_handle_trap_shadows::gate): New pass gate function.
22554 (make_pass_handle_trap_shadows): New function.
22555 (rest_of_handle_trap_shadows): Ditto.
22556
22557 (alpha_align_insns_1): Rename from alpha_align_insns.
22558 (pass_data_align_insns): New pass.
22559 (pass_align_insns::gate): New pass gate function.
22560 (make_pass_aling_insns): New function.
22561 (rest_of_align_insns): Ditto.
22562 (alpha_align_insns): Ditto.
22563
22564 (alpha_option_override): Declare handle_trap_shadows info
22565 and align_insns_info. Register handle_trap_shadows and align_insns
22566 passes here.
22567 (alpha_reorg): Do not call alpha_trap_shadows and
22568 alpha_align_insn from here.
22569
22570 (alpha_pad_function_end): Do not skip BARRIERs.
22571
22572 2014-07-10 Rong Xu <xur@google.com>
22573
22574 Add gcov-tool: an offline gcda profile processing tool support.
22575 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
22576 (gcov_is_error): Ditto.
22577 (gcov_read_string): Ditto.
22578 (gcov_read_sync): Ditto.
22579 * gcov-io.h: Move counter defines to gcov-counter.def.
22580 * gcov-dump.c (tag_counters): Use gcov-counter.def.
22581 * coverage.c: Ditto.
22582 * gcov-tool.c: Offline gcda profile processing tool.
22583 (unlink_gcda_file): Remove one gcda file.
22584 (unlink_profile_dir): Remove gcda files from the profile path.
22585 (gcov_output_files): Output gcda files to an output dir.
22586 (profile_merge): Merge two profiles in directory.
22587 (print_merge_usage_message): Print merge usage.
22588 (merge_usage): Print merge usage and exit.
22589 (do_merge): Driver for profile merge sub-command.
22590 (profile_rewrite): Rewrite profile.
22591 (print_rewrite_usage_message): Print rewrite usage.
22592 (rewrite_usage): Print rewrite usage and exit.
22593 (do_rewrite): Driver for profile rewrite sub-command.
22594 (print_usage): Print gcov-info usage and exit.
22595 (print_version): Print gcov-info version.
22596 (process_args): Process arguments.
22597 (main): Main routine for gcov-tool.
22598 * Makefile.in: Build and install gcov-tool.
22599 * gcov-counter.def: New file split from gcov-io.h.
22600 * doc/gcc.texi: Include gcov-tool.texi.
22601 * doc/gcov-tool.texi: Document for gcov-tool.
22602
22603 2014-07-10 Richard Biener <rguenther@suse.de>
22604
22605 PR tree-optimization/61757
22606 * tree-ssa-dom.c (loop_depth_of_name): Restore.
22607 (propagate_rhs_into_lhs): Revert part of last change.
22608
22609 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
22610
22611 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
22612 FUNCTION_DECLs.
22613
22614 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
22615
22616 PR middle-end/53590
22617 * function.c (allocate_struct_function): Revert r188667 change.
22618
22619 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
22620
22621 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
22622
22623 * doc/install.texi: Remove links to defunct package providers for
22624 Solaris.
22625
22626 2014-07-09 Tom de Vries <tom@codesourcery.com>
22627
22628 * final.c (get_call_fndecl): Declare.
22629 (self_recursive_call_p): New function.
22630 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
22631
22632 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
22633
22634 * ipa-devirt.c (record_node): Walk through aliases.
22635
22636 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
22637
22638 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
22639
22640 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
22641
22642 Revert:
22643 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
22644
22645 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
22646
22647 * ipa-visibility.c (function_and_variable_visibility): Remove
22648 temporary hack disabling local aliases on AIX.
22649
22650 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
22651
22652 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
22653 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
22654
22655 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
22656
22657 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
22658 * rs6000/rs6000.c: Inline output of .set instruction.
22659 (declare_alias_data): New struct.
22660 (rs6000_declare_alias): New function.
22661 (rs6000_xcoff_declare_function_name): Use it.
22662 (rs6000_xcoff_declare_object_name): New function.
22663 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
22664 (ASM_OUTPUT_DEF): Turn to empty definition.
22665
22666 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
22667
22668 PR bootstrap/61679
22669 * hash-table.h: use hash_table::value_type instead of
22670 Descriptor::value_type in the return types of several methods.
22671
22672 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
22673
22674 * tree-pass.h (pass_data): Remove has_execute member.
22675 * passes.c (execute_one_pass): Don't check pass->has_execute.
22676 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
22677 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
22678 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
22679 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22680 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
22681 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
22682 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
22683 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
22684 gimple-low.c, gimple-ssa-isolate-paths.c,
22685 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
22686 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
22687 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
22688 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
22689 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
22690 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
22691 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
22692 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
22693 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
22694 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
22695 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
22696 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
22697 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
22698 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22699 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22700 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22701 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22702 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22703 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22704 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22705 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
22706 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
22707 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
22708 web.c: Remove initializer for pass_data::has_execute.
22709
22710 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
22711
22712 * graphite-htab.h: Use hash_map instead of hash_table.
22713 * graphite-clast-to-gimple.c: Adjust.
22714 * passes.c: Use hash_map instead of hash_table.
22715 * sese.c: Likewise.
22716 * sese.h: Remove now unused code.
22717
22718 2014-07-08 Sriraman Tallam <tmsriram@google.com>
22719
22720 PR target/61599
22721 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
22722 than zero.
22723
22724 2014-07-08 Jakub Jelinek <jakub@redhat.com>
22725
22726 PR rtl-optimization/61673
22727 * combine.c (simplify_comparison): Test just mode's sign bit
22728 in tmode rather than the sign bit and any bits above it.
22729
22730 2014-07-08 Roman Gareev <gareevroman@gmail.com>
22731
22732 * graphite-isl-ast-to-gimple.c (generate_isl_context):
22733 Add __isl_give to the declaration.
22734 (generate_isl_schedule): Likewise.
22735 (scop_to_isl_ast): Likewise.
22736
22737 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22738
22739 * config/arm/arm.c (cortexa5_extra_costs): New table.
22740 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
22741
22742 2014-07-08 Jakub Jelinek <jakub@redhat.com>
22743
22744 PR tree-optimization/61725
22745 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
22746 range, use range_includes_zerop_p instead of integer_zerop on
22747 vr0->min, only use log2 of max if min is not negative.
22748
22749 2014-07-08 Richard Biener <rguenther@suse.de>
22750
22751 * tree-ssa-dom.h (loop_depth_of_name): Remove.
22752 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
22753 restriction on loop depth difference.
22754 (record_equality): Likewise.
22755 (propagate_rhs_into_lhs): Likewise. Simplify condition.
22756 (loop_depth_of_name): Remove.
22757 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
22758 restriction on loop depth difference.
22759 (init_copy_prop): Likewise.
22760
22761 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
22762
22763 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
22764 parameter.
22765 (walk_aliased_vdefs): Likewise.
22766 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
22767 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
22768 (detect_type_change_from_memory_writes): Check if entry was reached.
22769
22770 2014-07-08 Richard Biener <rguenther@suse.de>
22771
22772 PR tree-optimization/61681
22773 * tree-ssa-structalias.c (find_what_var_points_to): Expand
22774 NONLOCAL inside ESCAPED.
22775
22776 2014-07-08 Richard Biener <rguenther@suse.de>
22777
22778 PR tree-optimization/61680
22779 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
22780 Handle properly all read-write dependences with group accesses.
22781
22782 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
22783
22784 PR tree-optimization/61576
22785 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
22786 block containing reduction statement is predecessor of phi basi block.
22787
22788 2014-07-08 Marek Polacek <polacek@redhat.com>
22789
22790 PR c/60226
22791 * fold-const.c (round_up_loc): Change the parameter type.
22792 Remove assert.
22793 * fold-const.h (round_up_loc): Adjust declaration.
22794 * stor-layout.c (finalize_record_size): Check for too large types.
22795
22796 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
22797
22798 * symtab.c: Include calls.h.
22799 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
22800
22801 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
22802
22803 * config/rs6000/rs6000.c (output_vec_const_move): Handle
22804 little-endian code generation.
22805 * config/rs6000/spe.md (spe_evmergehi): Rename to...
22806 (vec_perm00_v2si): ... this. Handle little-endian code generation.
22807 (spe_evmergehilo): Rename to...
22808 (vec_perm01_v2si): ... this. Handle little-endian code generation.
22809 (spe_evmergelo): Rename to...
22810 (vec_perm11_v2si): ... this. Handle little-endian code generation.
22811 (spe_evmergelohi): Rename to...
22812 (vec_perm10_v2si): ... this. Handle little-endian code generation.
22813 (spe_evmergehi, spe_evmergehilo): New expanders.
22814 (spe_evmergelo, spe_evmergelohi): Likewise.
22815 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
22816 (*frob_tf_ti): Likewise.
22817 (*frob_<mode>_di_2): Likewise.
22818 (*frob_tf_di_8_2): Likewise.
22819 (*frob_di_<mode>): Likewise.
22820 (*frob_ti_tf): Likewise.
22821 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
22822 (*frob_ti_<mode>_8_2): Likewise.
22823 (*frob_ti_tf_2): Likewise.
22824 (mov_si<mode>_e500_subreg0): Rename to...
22825 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
22826 endianness only.
22827 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
22828 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
22829 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
22830 the big endianness only.
22831 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
22832 (*mov_si<mode>_e500_subreg0_2): Rename to...
22833 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
22834 big big endianness only.
22835 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
22836 (*mov_si<mode>_e500_subreg4): Rename to...
22837 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
22838 endianness only.
22839 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
22840 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
22841 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
22842 the big endianness only.
22843 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
22844 pattern.
22845 (*mov_si<mode>_e500_subreg4_2): Rename to...
22846 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
22847 endianness only.
22848 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
22849 (*mov_sitf_e500_subreg8): Rename to...
22850 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
22851 endianness only.
22852 (*mov_sitf_e500_subreg8_le): New instruction pattern.
22853 (*mov_sitf_e500_subreg8_2): Rename to...
22854 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
22855 endianness only.
22856 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
22857 (*mov_sitf_e500_subreg12): Rename to...
22858 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
22859 endianness only.
22860 (*mov_sitf_e500_subreg12_le): New instruction pattern.
22861 (*mov_sitf_e500_subreg12_2): Rename to...
22862 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
22863 endianness only.
22864 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
22865
22866 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
22867
22868 * asan.c (instrument_strlen_call): Do not instrument first byte
22869 in strlen if already instrumented.
22870
22871 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22872
22873 * config/arm/arm.opt (mwords-little-endian): Delete.
22874 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
22875 of TARGET_LITTLE_WORDS.
22876 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
22877 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
22878 warning.
22879 * doc/invoke.texi: Remove references to -mwords-little-endian.
22880
22881 2014-07-07 Jakub Jelinek <jakub@redhat.com>
22882
22883 * expmed.c (struct init_expmed_rtl): Change all fields but
22884 pow2 and cint from struct rtx_def to rtx.
22885 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
22886 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
22887 at the end again.
22888
22889 2014-07-06 Marek Polacek <polacek@redhat.com>
22890
22891 PR c/6940
22892 * doc/invoke.texi: Document -Wsizeof-array-argument.
22893
22894 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
22895
22896 * wide-int.h (wide_int_storage): Change declaration from struct
22897 to class.
22898
22899 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
22900
22901 * cgraph.c (cgraph_create_indirect_edge): Update call of
22902 get_polymorphic_call_info.
22903 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
22904 (possible_polymorphic_call_targets): Add parameter call.
22905 (decl_maybe_in_construction_p): New predicate.
22906 (get_polymorphic_call_info): Add parameter call;
22907 use decl_maybe_in_construction_p.
22908 * gimple-fold.c (fold_gimple_assign): Update use of
22909 possible_polymorphic_call_targets.
22910 (gimple_fold_call): Likewise.
22911 * ipa-prop.c: Inlcude calls.h
22912 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
22913 (param_type_may_change_p): New predicate.
22914 (detect_type_change_from_memory_writes): Break out from ...
22915 (detect_type_change): ... this one; use param_type_may_change_p.
22916 (detect_type_change_ssa): Use param_type_may_change_p.
22917 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
22918
22919 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
22920
22921 PR target/49423
22922 * config/arm/arm-protos.h (arm_legitimate_address_p,
22923 arm_is_constant_pool_ref): Add prototypes.
22924 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
22925 (arm_is_constant_pool_ref) New function.
22926 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
22927 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
22928 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
22929 operand. Remove pool_range and neg_pool_range attributes.
22930 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
22931 pool_range and neg_pool_range attributes.
22932 * config/arm/constraints.md (Uh): New constraint.
22933 (Uq): Don't allow constant pool references.
22934
22935 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
22936
22937 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
22938 (move_lo_quad_internal_be_<mode>): Likewise.
22939 (move_lo_quad_<mode>): Convert to define_expand.
22940 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
22941 (aarch64_simd_move_hi_quad_be_<mode>): New.
22942 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
22943 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
22944 (aarch64_combinez_be<mode>): New.
22945 (aarch64_combine<mode>): Convert to define_expand.
22946 (aarch64_combine_internal<mode>): New.
22947 (aarch64_simd_combine<mode>): Remove bogus RTL description.
22948
22949 2014-07-04 Tom de Vries <tom@codesourcery.com>
22950
22951 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
22952 combination of earlyclobber and read/write modifiers.
22953
22954 2014-07-04 Tom de Vries <tom@codesourcery.com>
22955
22956 * config/aarch64/aarch64-simd.md
22957 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
22958
22959 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
22960
22961 PR target/61714
22962 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
22963
22964 2014-07-04 Jakub Jelinek <jakub@redhat.com>
22965
22966 PR middle-end/61654
22967 * cgraphunit.c (expand_thunk): Call free_dominance_info.
22968
22969 PR tree-optimization/61684
22970 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
22971 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
22972
22973 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
22974 Kito Cheng <kito@0xlab.org>
22975 Monk Chiang <sh.chiang04@gmail.com>
22976
22977 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
22978 (nds32_symbol_load_store_p): Move to ...
22979 (nds32_fp_as_gp_check_available): Move to ...
22980 * config/nds32/nds32-fp-as-gp.c: ... here.
22981 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
22982 extern declaration.
22983
22984 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
22985 Kito Cheng <kito@0xlab.org>
22986 Monk Chiang <sh.chiang04@gmail.com>
22987
22988 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
22989 (nds32_expand_store_multiple): Move to ...
22990 (nds32_expand_movmemqi): Move to ...
22991 * config/nds32/nds32-memory-manipulation.c: ... here.
22992
22993 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
22994 Kito Cheng <kito@0xlab.org>
22995 Monk Chiang <sh.chiang04@gmail.com>
22996
22997 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
22998 (nds32_output_casesi_pc_relative): Move to ...
22999 (nds32_output_casesi): Move to ...
23000 (nds32_mem_format): Move to ...
23001 (nds32_output_16bit_store): Move to ...
23002 (nds32_output_16bit_load): Move to ...
23003 (nds32_output_32bit_store): Move to ...
23004 (nds32_output_32bit_load): Move to ...
23005 (nds32_output_32bit_load_s): Move to ...
23006 (nds32_output_stack_push): Move to ...
23007 (nds32_output_stack_pop): Move to ...
23008 * config/nds32/nds32-md-auxiliary.c: ... here.
23009
23010 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
23011 Ling-Hua Tseng <uranus@tinlans.org>
23012
23013 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
23014 the purpose of this file.
23015
23016 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
23017 Kito Cheng <kito@0xlab.org>
23018 Monk Chiang <sh.chiang04@gmail.com>
23019
23020 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
23021 (nds32_address_cost): Move implementation to ...
23022 * config/nds32/nds32-cost.c: ... here.
23023 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
23024 (nds32_address_cost_impl): Declare.
23025
23026 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
23027 Kito Cheng <kito@0xlab.org>
23028 Monk Chiang <sh.chiang04@gmail.com>
23029
23030 * config/nds32/nds32.c
23031 (nds32_consecutive_registers_load_store_p): Move to ...
23032 (nds32_valid_multiple_load_store): Move to ...
23033 (nds32_valid_stack_push_pop): Move to ...
23034 (nds32_can_use_bclr_p): Move to ...
23035 (nds32_can_use_bset_p): Move to ...
23036 (nds32_can_use_btgl_p): Move to ...
23037 (nds32_can_use_bitci_p): Move to ...
23038 * config/nds32/nds32-predicates.c: ... here.
23039
23040 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
23041 Kito Cheng <kito@0xlab.org>
23042 Monk Chiang <sh.chiang04@gmail.com>
23043
23044 * config/nds32/nds32.c
23045 (nds32_expand_builtin_null_ftype_reg): Move to ...
23046 (nds32_expand_builtin_reg_ftype_imm): Move to ...
23047 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
23048 (nds32_init_builtins): Move implementation to ...
23049 (nds32_expand_builtin): Move implementation to ...
23050 * config/nds32/nds32-intrinsic.c: ... here.
23051 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
23052 (nds32_expand_builtin_impl): Declare.
23053
23054 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
23055 Kito Cheng <kito@0xlab.org>
23056 Monk Chiang <sh.chiang04@gmail.com>
23057
23058 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
23059 (nds32_emit_section_tail_template): Move to ...
23060 (nds32_emit_isr_jmptbl_section): Move to ...
23061 (nds32_emit_isr_vector_section): Move to ...
23062 (nds32_emit_isr_reset_conten): Move to ...
23063 (nds32_check_isr_attrs_conflict): Move to ...
23064 (nds32_construct_isr_vectors_information): Move to ...
23065 (nds32_asm_file_start): Move implementation to ...
23066 (nds32_asm_file_end): Move implementation to ...
23067 * config/nds32/nds32-isr.c: ... here.
23068 * config/nds32/nds32-protos.h
23069 (nds32_check_isr_attrs_conflict): Declare.
23070 (nds32_construct_isr_vectors_information): Declare.
23071 (nds32_asm_file_start_for_isr): Declare.
23072 (nds32_asm_file_end_for_isr): Declare.
23073
23074 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
23075 Kito Cheng <kito@0xlab.org>
23076 Monk Chiang <sh.chiang04@gmail.com>
23077
23078 * config.gcc (nds32*): Add new modules to extra_objs.
23079 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
23080 (nds32be-*-*): Likewise.
23081 * config/nds32/nds32-cost.c: New file.
23082 * config/nds32/nds32-fp-as-gp.c: New file.
23083 * config/nds32/nds32-intrinsic.c: New file.
23084 * config/nds32/nds32-isr.c: New file.
23085 * config/nds32/nds32-md-auxiliary.c: New file.
23086 * config/nds32/nds32-memory-manipulation.c: New file.
23087 * config/nds32/nds32-pipelines-auxiliary.c: New file.
23088 * config/nds32/nds32-predicates.c: New file.
23089 * config/nds32/t-nds32: New file.
23090
23091 2014-07-03 Jakub Jelinek <jakub@redhat.com>
23092
23093 PR tree-optimization/61682
23094 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
23095 using cases and when one of the operands is equal to 1.
23096
23097 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
23098
23099 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
23100 ashr<mode>3): Correct mode of operands[2].
23101 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
23102 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
23103 Correct mode of operands[2]. Fix split condition.
23104
23105 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
23106
23107 * arm.md (arch): Add armv6_or_vfpv3.
23108 (arch_enabled): Add test for the above.
23109 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
23110 on VFP9.
23111 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
23112
23113 2014-07-03 Jakub Jelinek <jakub@redhat.com>
23114
23115 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
23116 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
23117 HWI 1 and negate the unsigned value.
23118 * expmed.c (expand_sdiv_pow2): For modes wider than word always
23119 use AND instead of shift.
23120 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
23121
23122 2014-07-03 Marek Polacek <polacek@redhat.com>
23123
23124 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
23125 (-fsanitize=float-divide-by-zero): Move to the table with
23126 -fsanitize=undefined suboptions.
23127 (-fsanitize=float-cast-overflow): Likewise.
23128
23129 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
23130
23131 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
23132 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
23133 endianness.
23134
23135 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23136
23137 * loop-invariant.c (struct invariant): Add a new member: eqno;
23138 (find_identical_invariants): Update eqno;
23139 (create_new_invariant): Init eqno;
23140 (get_inv_cost): Compute comp_cost with eqno;
23141
23142 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
23143
23144 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
23145 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
23146 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
23147 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
23148 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
23149
23150 2014-07-02 Christian Bruel <christian.bruel@st.com>
23151
23152 PR target/29349
23153 PR target/53513
23154 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
23155 (make_preds_opaque): Delete.
23156 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
23157 (commit_mode_sets): New function.
23158 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
23159 Process all modes at once.
23160 * basic-block.h (pre_edge_lcm_avs): Declare.
23161 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
23162 Call clear_aux_for_edges. Fix comments.
23163 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
23164 (pre_edge_rev_lcm): Idem.
23165 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
23166 parameter.
23167 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
23168 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
23169 Idem.
23170 * config/i386/i386.c (x96_emit_mode_set): Idem.
23171 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
23172 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
23173 (fpscr_toggle) Disallow from delay slot.
23174 * target.def (emit_mode_set): Add prev_mode parameter.
23175 * doc/tm.texi: Regenerate.
23176
23177 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23178
23179 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
23180 variable i.
23181
23182 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
23183
23184 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
23185 vtable_pointer_value_to_vtable): Constify.
23186 (contains_polymorphic_type_p): Declare.
23187 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
23188 vtable_pointer_value_to_vtable): Constify.
23189 (contains_polymorphic_type_p): New predicate.
23190 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
23191 polymorphic types.
23192 (ipa_set_ancestor_jf): Likewise.
23193 (detect_type_change): Return false in easy cases.
23194 (compute_complex_assign_jump_func): Require type to contain
23195 polymorphic type.
23196 (compute_known_type_jump_func): Likewise.
23197
23198 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
23199
23200 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
23201 Remove.
23202 (type_in_anonymous_namespace_p): Constify argument.
23203 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
23204 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
23205 (main_odr_variant): New function.
23206 (hash_type_name): Make static; update assert; do not ICE on
23207 non-records.
23208 (types_same_for_odr): Bring here from tree.c; simplify and remove
23209 old structural comparing code that doesn't work for templates.
23210 (odr_hasher::equal): Update assert.
23211 (add_type_duplicate): Return true when bases should be computed;
23212 replace incomplete loader by complete; do not output duplicated
23213 warnings; do not ICE on non-records; set odr_violated flag.
23214 (get_odr_type): Be ready to replace incomplete type by complete
23215 one; work on ODR variants instead of main variants; reorder item
23216 in array so bases have still smaller indexes.
23217 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
23218 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
23219
23220 2014-07-01 Cary Coutant <ccoutant@google.com>
23221
23222 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
23223 lookup.
23224 (resolve_addr_in_expr): When replacing the rtx in a location list
23225 entry, get a new address table entry.
23226 (dwarf2out_finish): Call index_location_lists even if there are no
23227 addr_index_table entries yet.
23228
23229 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
23230
23231 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
23232 change for not being obvious.
23233
23234 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
23235
23236 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
23237 unused argument.
23238
23239 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23240
23241 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
23242 (vcagt_f64): Likewise.
23243 (vcale_f64): Likewise.
23244 (vcaled_f64): Likewise.
23245 (vcales_f32): Likewise.
23246 (vcalt_f64): Likewise.
23247 (vcaltd_f64): Likewise.
23248 (vcalts_f32): Likewise.
23249
23250 2014-07-01 Marek Polacek <polacek@redhat.com>
23251
23252 * doc/invoke.texi: Document -Wint-conversion.
23253
23254 2014-07-01 Marek Polacek <polacek@redhat.com>
23255
23256 PR c/58286
23257 * doc/invoke.texi: Document -Wincompatible-pointer-types.
23258
23259 2014-07-01 Martin Liska <mliska@suse.cz>
23260
23261 IPA REF alias refactoring
23262 * cgraph.h (iterate_direct_aliases): New function.
23263 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
23264 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
23265 FOR_EACH_ALIAS added.
23266 (cgraph_for_node_and_aliases): Likewise.
23267 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
23268 * ipa-inline.c (reset_edge_caches): Likewise.
23269 (update_caller_keys): Likewise.
23270 * trans-mem.c (ipa_tm_execute): Likewise.
23271 *varpool.c (varpool_analyze_node): Likewise.
23272 (varpool_for_node_and_aliases): Likewise.
23273 * ipa-ref.h (first_alias): New function.
23274 (last_alias): Likewise.
23275 (has_aliases_p): Likewise.
23276 * ipa-ref.c (ipa_ref::remove_reference): Removal function
23277 is sensitive to IPA_REF_ALIASes.
23278 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
23279 are put at the beginning of the list.
23280 (symtab_node::iterate_direct_aliases): New function.
23281
23282 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
23283
23284 Revert:
23285 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
23286 type is complete.
23287 (write_ts_type_common_tree_pointers): Do not stream fields not set
23288 for incomplete types; do not stream duplicated fields for variants;
23289 sanity check that variant and type match.
23290 (write_ts_type_non_common_tree_pointers): Likewise.
23291 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
23292 TYPE_SIZE whether type is complete.
23293 (lto_input_ts_type_common_tree_pointers): Do same changes as in
23294 write_ts_type_common_tree_pointers
23295 (lto_input_ts_type_non_common_tree_pointers): Likewise.
23296
23297 2014-06-30 Joseph Myers <joseph@codesourcery.com>
23298
23299 * var-tracking.c (add_stores): Return instead of asserting if old
23300 and new values for conditional store are the same.
23301
23302 2014-06-30 Richard Henderson <rth@redhat.com>
23303
23304 PR rtl-opt/61608
23305 PR target/39284
23306 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
23307 the cfg if there were any changes.
23308 * passes.def: Revert move of peephole2 after reorder_blocks;
23309 move duplicate_computed_gotos before peephole2.
23310
23311 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
23312
23313 * except.c (emit_note_eh_region_end): New helper function.
23314 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
23315 emit EH_REGION_END note.
23316 * jump.c (cleanup_barriers): Do not split a call and its
23317 corresponding CALL_ARG_LOCATION note.
23318
23319 2014-06-30 Jeff Law <law@redhat.com>
23320
23321 PR tree-optimization/61607
23322 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
23323 deeper into the SSA_NAME_VALUE chain.
23324
23325 2014-06-30 Marek Polacek <polacek@redhat.com>
23326
23327 * convert.c (convert_to_integer): Don't instrument conversions if the
23328 function has no_sanitize_undefined attribute.
23329 * ubsan.c: Don't run the ubsan pass if the function has
23330 no_sanitize_undefined attribute.
23331
23332 2014-06-30 Jakub Jelinek <jakub@redhat.com>
23333
23334 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
23335 -fsanitize=undefined suboptions.
23336
23337 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
23338
23339 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
23340 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
23341 against bigendian and adjust indices.
23342
23343 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
23344
23345 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
23346
23347 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
23348
23349 PR target/61633
23350 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
23351 Add alternative; make early clobber. Adjust both split patterns
23352 to use operand 0 as the working register.
23353
23354 2014-06-30 Jakub Jelinek <jakub@redhat.com>
23355
23356 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
23357 as ira_object_id_map might be NULL, or 1.
23358
23359 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23360
23361 * loop-invariant.c (get_inv_cost): Handle register class.
23362 (gain_for_invariant): Check the register pressure of the inv
23363 and its overlapped register class, other than all.
23364
23365 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
23366
23367 * doc/invoke.texi (Optimize Options): Fix descriptions of
23368 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
23369
23370 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
23371
23372 * doc/extend.texi (Function Attributes): Update 'naked' attribute
23373 documentation.
23374
23375 2014-06-29 Tobias Grosser <tobias@grosser.es>
23376
23377 PR bootstrap/61650
23378 * graphite-isl-ast-to-gimple.c: Add missing guards.
23379
23380 2014-06-29 Roman Gareev <gareevroman@gmail.com>
23381
23382 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
23383 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
23384 * flag-types.h: Add new enum fgraphite_generator.
23385 * graphite-isl-ast-to-gimple.c: New.
23386 * graphite-isl-ast-to-gimple.h: New.
23387 * graphite.c (graphite_transform_loops): Add choice of Graphite
23388 code generator, which depends on flag_graphite_code_gen.
23389
23390 2014-06-29 Roman Gareev <gareevroman@gmail.com>
23391
23392 * graphite-dependences.c (subtract_commutative_associative_deps):
23393 Add NULL checking of the following variables: must_raw_no_source,
23394 may_raw_no_source, must_war_no_source, may_war_no_source,
23395 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
23396 must_war, may_war, must_waw, may_waw.
23397
23398 2014-06-29 Roman Gareev <gareevroman@gmail.com>
23399
23400 * graphite-clast-to-gimple.c: gloog is renamed to
23401 graphite_regenerate_ast_cloog. gloog_error is renamed to
23402 graphite_regenerate_error.
23403 * graphite-clast-to-gimple.h: The definition of the struct
23404 bb_pbb_def is moved to graphite-htab.h.
23405 Add inclusion of the hash-table.h.
23406 * graphite-htab.h: The declaration of the function gloog is moved
23407 to graphite-clast-to-gimple.h and renamed to
23408 graphite_regenerate_ast_cloog.
23409 * graphite.c (graphite_transform_loops): gloog is renamed
23410 to graphite_regenerate_ast_cloog.
23411
23412 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
23413
23414 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
23415 type is complete.
23416 (write_ts_type_common_tree_pointers): Do not stream fields not set
23417 for incomplete types; do not stream duplicated fields for variants;
23418 sanity check that variant and type match.
23419 (write_ts_type_non_common_tree_pointers): Likewise.
23420 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
23421 TYPE_SIZE whether type is complete.
23422 (lto_input_ts_type_common_tree_pointers): Do same changes as in
23423 write_ts_type_common_tree_pointers
23424 (lto_input_ts_type_non_common_tree_pointers): Likewise.
23425
23426 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
23427
23428 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
23429
23430 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
23431
23432 * tree-inline.c (remap_type_1): Do not duplicate fields
23433 that are shared in between type and its main variant.
23434
23435 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
23436
23437 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
23438 of the type.
23439 (ipa_set_ancestor_jf) Likewise.
23440 (check_stmt_for_type_change): Check that we work on main variant.
23441 (detect_type_change): Look into main variant.
23442 (compute_known_type_jump_func): Check that main variant has BINFO.
23443
23444 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
23445
23446 * ipa-devirt.c (set_type_binfo): New function.
23447 (add_type_duplicate): Use it.
23448 (get_odr_type): Sanity check that binfos points to main variants.
23449 (get_class_context): Be sure the context's outer_type is main variant.
23450 (contains_type_p): Walk main variant.
23451 (get_polymorphic_call_info_for_decl): Set outer_type to be
23452 main variant.
23453 (get_polymorphic_call_info): Likewise.
23454 (possible_polymorphic_call_targets): Sanity check that we operate
23455 on main variant.
23456
23457 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
23458
23459 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
23460
23461 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23462
23463 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
23464 accidental change due to wide-int branch merge.
23465
23466 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23467
23468 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
23469 compressed debug support.
23470 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
23471 * configure: Regenerate.
23472 * config.in: Regenerate.
23473 * common.opt (compressed_debug_sections): New enum.
23474 (gz, gz=): New options.
23475 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
23476 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
23477 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
23478 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
23479 LINK_COMPRESS_DEBUG_SPEC.
23480 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
23481 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
23482 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
23483 (Debugging Options): Document -gz[=type].
23484
23485 2014-06-27 Martin Jambor <mjambor@suse.cz>
23486
23487 PR ipa/61160
23488 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
23489 args_to_skip, use those from node instead. Copy args_to_skip and
23490 combined_args_to_skip from node to the new thunk.
23491 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
23492 (cgraph_create_virtual_clone): Moved computation of
23493 combined_args_to_skip...
23494 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
23495
23496 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
23497
23498 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
23499 redundant diagnostic machinary.
23500
23501 2014-06-27 Richard Biener <rguenther@suse.de>
23502
23503 * tree-ssa-math-opts.c (bswap_replace): Fix
23504 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
23505
23506 2014-06-27 Martin Liska <mliska@suse.cz>
23507
23508 * gimple.h (gimple_location_safe): New function introduced.
23509 * cgraphunit.c (walk_polymorphic_call_targets): Usage
23510 of gimple_location_safe replaces gimple_location.
23511 (gimple_fold_call): Likewise.
23512 * ipa-devirt.c (ipa_devirt): Likewise.
23513 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
23514 * ipa.c (walk_polymorphic_call_targets): Likewise.
23515 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
23516
23517 2014-06-27 Jakub Jelinek <jakub@redhat.com>
23518
23519 PR tree-optimization/57233
23520 PR tree-optimization/61299
23521 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
23522 functions.
23523 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
23524 would be lowered to scalar shifts, check if corresponding
23525 shifts and vector BIT_IOR_EXPR are supported and don't lower
23526 or lower just to narrower vector type in that case.
23527 * expmed.c (expand_shift_1): Fix up handling of vector
23528 shifts and rotates.
23529
23530 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
23531
23532 PR target/61586
23533 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
23534
23535 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
23536
23537 * doc/invoke.texi (-fsemantic-interposition): Document.
23538 * common.opt (fsemantic-interposition): New flag.
23539 * varasm.c (decl_replaceable_p): Use it.
23540
23541 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23542
23543 PR target/61542
23544 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
23545 extraction other than index 3.
23546
23547 2014-06-26 Teresa Johnson <tejohnson@google.com>
23548
23549 * doc/invoke.texi: Fix typo.
23550 * dumpfile.c: Add support for documented -fdump-* options
23551 optimized/missed/note/optall.
23552
23553 2014-06-26 Martin Jambor <mjambor@suse.cz>
23554
23555 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
23556 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
23557 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
23558 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
23559 * opts.c (default_options_optimization): Set
23560 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
23561 * doc/invoke.texi (allow-load-data-races)
23562 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
23563 (allow-store-data-races): Document the new default.
23564
23565 2014-06-26 Martin Jambor <mjambor@suse.cz>
23566
23567 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
23568 renamed to ipa_impossible_devirt_target. Fix typo.
23569 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
23570 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
23571 ipa_impossible_devirt_target.
23572
23573 2014-06-26 Richard Biener <rguenther@suse.de>
23574
23575 PR tree-optimization/61607
23576 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
23577 explaining why we restrict copies on loop depth.
23578 * tree-ssa-dom.c (cprop_operand): Remove restriction on
23579 on loop depth.
23580 (record_equivalences_from_phis): Instead add it here.
23581
23582 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
23583
23584 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
23585 (LTO_WRAPPER_OBJS): New variable.
23586 (lto-wrapper$(exeext)): Use it.
23587 * collect2.c: Include "collect-utils.h".
23588 (verbose, debug): Remove variables.
23589 (at_file_supplied): No longer static.
23590 (tool_name): New variable.
23591 (do_wait, fork_execute, maybe_unlink): Don't declare.
23592 (tool_cleanup): No longer static.
23593 (notice): Remove function.
23594 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
23595 fork_execute calls.
23596 (collect_wait, do_wait, collect_execute): Remove functions.
23597 (maybe_unlink): No longer static.
23598 * collect2.h (verbose, debug): Don't declare.
23599 (at_file_supplied): Declare.
23600 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
23601 changed.
23602 (collect_execute): Replace with implementation from collect2, plus a
23603 new arg use_atfile. All callers changed.
23604 (collect_wait): Replace with implementation from collect2.
23605 (maybe_unlink_file): Remove function.
23606 (fork_execute): Replace with implementation from collect2, plus a
23607 new arg use_atfile. All callers changed.
23608 (do_wait): Add call to utils_cleanup to the error path.
23609 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
23610 (tool_cleanup): Adjust declarations.
23611 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
23612 * tlink.c: Include "collect-utils.h".
23613 (tlink_execute): New arg use_atfile. All callers changed.
23614 (tlink_init, tlink_execute): Remove declarations.
23615
23616 * collect-utils.c (save_temps): New variable.
23617 (do_wait): Use it instead of debug. Use fatal_error.
23618 * collect-utils.h (save_temps): Declare.
23619 * collect2.c (verbose): Rename from vflag. All uses changed.
23620 (tool_cleanup): New function, copied from collect_atexit.
23621 (collect_atexit, handler): Just call it.
23622 * collect2.h (verbose): Declaration renamed from vflag.
23623 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
23624 debug.
23625
23626 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
23627 (lto-wrapper$(exeext)): Link with collect-utils.o.
23628 * collect-utils.c: New file.
23629 * collect-utils.h: New file.
23630 * lto-wrapper.c: Include "collect-utils.h".
23631 (args_name): Delete variable.
23632 (tool_name): New variable.
23633 (tool_cleanup): New function.
23634 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
23635 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
23636 (fork_execute): Remove functions.
23637
23638 2014-06-26 Nick Clifton <nickc@redhat.com>
23639
23640 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
23641
23642 * doc/extend.texi (Function Attributes): Fix typo in description
23643 of RX vector attribute.
23644
23645 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23646
23647 * config.gcc (supported_defaults): Error when passing either
23648 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
23649
23650 2014-06-26 Richard Biener <rguenther@suse.de>
23651
23652 * tree-ssa-dom.c (cprop_operand): Remove restriction on
23653 propagating volatile pointers.
23654
23655 2014-06-26 Richard Biener <rguenther@suse.de>
23656
23657 PR tree-optimization/61607
23658 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
23659 loop if we redirected its latch edge.
23660 (thread_block_1): Do not cancel loops prematurely.
23661
23662 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
23663
23664 * toplev.c (backend_init_target): Move init_emit_regs and
23665 init_regs to...
23666 (backend_init) ... here; skip ira_init_once and backend_init_target.
23667 (target_reinit) ... and here; clear
23668 this_target_rtl->lang_dependent_initialized.
23669 (lang_dependent_init_target): Clear
23670 this_target_rtl->lang_dependent_initialized;
23671 break out rtl initialization to ...
23672 (initialize_rtl): ... here; call also backend_init_target
23673 and ira_init_once.
23674 * toplev.h (initialize_rtl): New function.
23675 * function.c: Include toplev.h
23676 (init_function_start): Call initialize_rtl.
23677 * rtl.h (target_rtl): Add target_specific_initialized,
23678 lang_dependent_initialized.
23679
23680 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
23681 Jakub Jelinek <jakub@redhat.com>
23682
23683 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
23684
23685 2014-06-25 Tom de Vries <tom@codesourcery.com>
23686
23687 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
23688
23689 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
23690
23691 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
23692 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
23693 Issue a strict overflow warning if appropriate.
23694
23695 2014-06-25 Martin Liska <mliska@suse.cz>
23696
23697 IPA REF refactoring
23698 * Makefile.in: Removed header file (ipa-ref-inline.h).
23699 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
23700 called.
23701 (cgraph_speculative_call_info): Likewise.
23702 (cgraph_for_node_thunks_and_aliases): Likewise.
23703 (cgraph_for_node_and_aliases): Likewise.
23704 (verify_cgraph_node): Likewise.
23705 * cgraph.h: Batch of IPA REF functions become member functions of
23706 symtab_node: add_reference, maybe_add_reference, clone_references,
23707 clone_referring, clone_reference, find_reference,
23708 remove_stmt_references, remove_all_references,
23709 remove_all_referring, dump_references, dump_referring,
23710 has_alias_p, iterate_reference, iterate_referring.
23711 * cgraphbuild.c (record_reference): New IPA REF function used.
23712 (record_type_list): Likewise.
23713 (record_eh_tables): Likewise.
23714 (mark_address): Likewise.
23715 (mark_load): Likewise.
23716 (mark_store): Likewise.
23717 (pass_build_cgraph_edges): Likewise.
23718 (rebuild_cgraph_edge): Likewise.
23719 (cgraph_rebuild_references): Likewise.
23720 (pass_remove_cgraph_callee_edges): Likewise.
23721 * cgraphclones.c (cgraph_clone_node): Likewise.
23722 (cgraph_create_virtual_clone): Likewise.
23723 (cgraph_materialize_clone): Likewise.
23724 (cgraph_materialize_all_clones): Likewise.
23725 * cgraphunit.c (cgraph_reset_node): Likewise.
23726 (cgraph_reset_node): Likewise.
23727 (analyze_function): Likewise.
23728 (assemble_thunks_and_aliases): Likewise.
23729 (expand_function): Likewise.
23730 * ipa-comdats.c (propagate_comdat_group): Likewise.
23731 (enqueue_references): Likewise.
23732 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
23733 (create_specialized_node): Likewise.
23734 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
23735 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
23736 * ipa-inline.c (reset_edge_caches): Likewise.
23737 (update_caller_keys): Likewise.
23738 (execute): Likewise.
23739 * ipa-prop.c (remove_described_reference): Likewise.
23740 (propagate_controlled_uses): Likewise.
23741 (ipa_edge_duplication_hook): Likewise.
23742 (ipa_modify_call_arguments): Likewise.
23743 * ipa-pure-const.c (propagate_pure_const): Likewise.
23744 * ipa-ref-inline.h: Header file removed, functions moved
23745 to symtab_node class.
23746 * ipa-ref.c (remove_reference): New class member function.
23747 (cannot_lead_to_return): New class member function.
23748 (referring_ref_list): Likewise.
23749 (referred_ref_list): Likewise.
23750 Rest of functions moved to symtab_node class.
23751 * ipa-ref.h: New member functions remove_reference,
23752 cannot_lead_to_return, referring_ref_list, referred_ref_list added
23753 to ipa_ref class.
23754 ipa_ref_list class has new member functions: first_reference,
23755 first_referring, clear, nreferences.
23756 * ipa-reference.c (analyze_function): New IPA REF function used.
23757 (write_node_summary_p): Likewise.
23758 (ipa_reference_write_optimization_summary): Likewise.
23759 * ipa-split.c (split_function): Likewise.
23760 * ipa-utils.c (ipa_reverse_postorder): Likewise.
23761 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
23762 (function_and_variable_visibility): Likewise.
23763 * ipa.c (has_addr_references_p): Likewise.
23764 (process_references): Argument type changed.
23765 (symtab_remove_unreachable_nodes): New IPA REF function used.
23766 (process_references): Likewise.
23767 (set_writeonly_bit): Likewise.
23768 * lto-cgraph.c: Implementation of new symtab_node member functions
23769 that uses new IPA REF functions.
23770 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
23771 function used.
23772 * lto-streamer-out.c (output_symbol_p): Likewise.
23773 * lto-streamer.h (referenced_from_this_partition_p): Argument type
23774 changed.
23775 * symtab.c: Implementation of new IPA REF API.
23776 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
23777 (ipa_tm_create_version): Likewise.
23778 (ipa_tm_execute): Likewise.
23779 * tree-emutls.c (gen_emutls_addr): Likewise.
23780 * tree-inline.c (copy_bb): Likewise.
23781 (delete_unreachable_blocks_update_callgraph): Likewise.
23782 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
23783 (varpool_for_node_and_aliases): Likewise.
23784
23785 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
23786
23787 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
23788
23789 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
23790
23791 PR bootstrap/61598
23792 * fold-const.c (fold_checksum_tree): Use a hash_table of const
23793 tree_node * instead of tree_node *.
23794 (fold): Adjust.
23795 (print_fold_checksum): Likewise.
23796 (fold_check_failed): Likewise.
23797 (debug_fold_checksum): Likewise.
23798 (fold_build1_stat_loc): Likewise.
23799 (fold_build2_stat_loc): Likewise.
23800 (fold_build3_stat_loc): Likewise.
23801 (fold_build_call_array_loc): Likewise.
23802
23803 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
23804
23805 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
23806 implementation with call to...
23807 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
23808 function.
23809 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
23810 Declare.
23811
23812 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
23813
23814 PR tree-optimization/57742
23815 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
23816 after replacing the statement.
23817
23818 2014-06-25 Nick Clifton <nickc@redhat.com>
23819
23820 * config/v850/v850.c (GHS_default_section_names): Change to const
23821 char * type.
23822 (GHS_current_section_names): Likewise.
23823 (v850_insert_attributes): Do not build strings, just assign the
23824 names directly. Change the type of 'chosen_section' to const
23825 char*.
23826 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
23827 directly to the array entry.
23828 * config/v850/v850.h (GHS_default_section_names): Change to const
23829 char * type.
23830 (GHS_current_section_names): Likewise.
23831
23832 2014-06-25 Jakub Jelinek <jakub@redhat.com>
23833
23834 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
23835 (LANG_HOOKS_DECLS): Add it.
23836 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
23837 has correct type.
23838 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
23839 * langhooks.h (struct lang_hooks_for_decls): Add
23840 omp_clause_linear_ctor hook.
23841 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
23842 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
23843 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
23844 combined simd loop use omp_clause_linear_ctor hook.
23845
23846 2014-06-24 Cong Hou <congh@google.com>
23847
23848 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
23849 pattern recognition.
23850 (type_conversion_p): PROMOTION is true if it's a type promotion
23851 conversion, and false otherwise. Return true if the given expression
23852 is a type conversion one.
23853 * tree-vectorizer.h: Adjust the number of patterns.
23854 * tree.def: Add SAD_EXPR.
23855 * optabs.def: Add sad_optab.
23856 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
23857 * expr.c (expand_expr_real_2): Likewise.
23858 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
23859 * gimple.c (get_gimple_rhs_num_ops): Likewise.
23860 * optabs.c (optab_for_tree_code): Likewise.
23861 * tree-cfg.c (estimate_operator_cost): Likewise.
23862 * tree-ssa-operands.c (get_expr_operands): Likewise.
23863 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
23864 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
23865 * doc/generic.texi: Add document for SAD_EXPR.
23866 * doc/md.texi: Add document for ssad and usad.
23867
23868 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
23869
23870 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
23871 qualification in cast.
23872
23873 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
23874
23875 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
23876 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
23877 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
23878 (tree_function_decl): ... here.
23879 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
23880 streaming of vindex to ...
23881 (write_ts_function_decl_tree_pointers): ... here.
23882 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
23883 Do not stream DECL_VINDEX.
23884 (lto_input_ts_function_decl_tree_pointers): Stream it here.
23885
23886 2014-06-24 Catherine Moore <clm@codesourcery.com>
23887 Sandra Loosemore <sandra@codesourcery.com>
23888
23889 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
23890 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
23891 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
23892
23893 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
23894
23895 * doc/invoke.texi (Warning Options): Remove duplicated
23896 -Wmaybe-uninitialized.
23897
23898 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
23899
23900 PR tree-optimization/57742
23901 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
23902 (handle_builtin_malloc, handle_builtin_memset): New functions.
23903 (strlen_optimize_stmt): Call them.
23904 * passes.def: Move strlen after loop+dom but before vrp.
23905
23906 2014-06-24 Jakub Jelinek <jakub@redhat.com>
23907
23908 PR target/61570
23909 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
23910 model family 6 CPU with has_longmode never use a CPU without
23911 64-bit support.
23912
23913 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
23914
23915 PR target/61570
23916 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
23917 the last change.
23918
23919 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
23920
23921 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
23922 * dominance.c (iterate_fix_dominators): Use hash_map instead of
23923 pointer_map.
23924 * hash-map.h: New file.
23925 * ipa-comdats.c: Use hash_map instead of pointer_map.
23926 * ipa.c: Likewise.
23927 * lto-section-out.c: Adjust.
23928 * lto-streamer.h: Replace pointer_map with hash_map.
23929 * symtab.c (verify_symtab): Likewise.
23930 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
23931 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
23932 * tree-streamer.h: Likewise.
23933 * tree-streamer.c: Adjust.
23934 * pointer-set.h: Remove pointer_map.
23935
23936 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
23937
23938 * hash-table.h: Add a template arg to choose between storing values
23939 and storing pointers to values, and then provide partial
23940 specializations for both.
23941 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
23942 should store, not the type values should point to.
23943 * tree-into-ssa.c (var_info_hasher): Likewise.
23944 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
23945 * tree-complex.c: Adjust.
23946 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
23947 table instead of int_tree_map *.
23948 * tree-parloops.c: Adjust.
23949 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
23950 type is being stored.
23951 * tree-vectorizer.c: Adjust.
23952
23953 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
23954
23955 * hash-table.h: Remove a layer of indirection from hash_table so that
23956 it contains the hash table's data instead of a pointer to the data.
23957 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
23958 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
23959 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
23960 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
23961 fold-const.c, gcse.c, ggc-common.c,
23962 gimple-ssa-strength-reduction.c, gimplify.c,
23963 graphite-clast-to-gimple.c, graphite-dependences.c,
23964 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
23965 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
23966 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
23967 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
23968 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
23969 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
23970 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
23971 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
23972 tree-ssa-live.c, tree-ssa-loop-im.c,
23973 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
23974 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
23975 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
23976 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
23977 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
23978 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
23979 vtable-verify.c, vtable-verify.h: Adjust.
23980
23981 2014-06-24 Richard Biener <rguenther@suse.de>
23982
23983 PR tree-optimization/61572
23984 * tree-ssa-sink.c (statement_sink_location): Do not sink
23985 loads from hard registers.
23986
23987 2014-06-24 Jakub Jelinek <jakub@redhat.com>
23988
23989 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
23990 not mentioned in clauses use private clause if the iterator is
23991 declared in #pragma omp for simd, and when adding lastprivate
23992 instead, add it to the outer #pragma omp for too. Diagnose
23993 if the variable is private in outer context. For simd collapse > 1
23994 loops, replace all iterators with temporaries.
23995 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
23996 same even in collapse > 1 loops.
23997
23998 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
23999 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
24000 non-NULL.
24001 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
24002 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
24003 non-NULL.
24004 (gimplify_adjust_omp_clauses): Likewise.
24005 * omp-low.c (lower_rec_simd_input_clauses,
24006 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
24007 safelen the same as safelen(1).
24008 * tree-nested.c (convert_nonlocal_omp_clauses,
24009 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
24010 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
24011 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
24012 Fixup handling of GIMPLE_OMP_TARGET.
24013 (convert_tramp_reference_stmt, convert_gimple_call): Handle
24014 GIMPLE_OMP_TARGET.
24015
24016 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
24017
24018 PR tree-optimization/61554
24019 * tree-ssa-propagate.c: Include "bitmap.h".
24020 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
24021 properly update constructor/destructor.
24022 (substitute_and_fold_dom_walker::before_dom_children):
24023 Remove call to gimple_purge_dead_eh_edges, add bb->index to
24024 need_eh_cleaup instead.
24025 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
24026 need_eh_cleanup.
24027
24028 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
24029
24030 * varpool.c (dump_varpool_node): Dump used_by_single_function.
24031 * tree-pass.h (make_pass_ipa_single_use): New pass.
24032 * cgraph.h (used_by_single_function): New flag.
24033 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
24034 Stream it.
24035 * passes.def (pass_ipa_single_use): Scedule.
24036 * ipa.c (BOTTOM): New macro.
24037 (meet): New function
24038 (propagate_single_user): New function.
24039 (ipa_single_use): New function.
24040 (pass_data_ipa_single_use): New pass.
24041 (pass_ipa_single_use): New pass.
24042 (pass_ipa_single_use::gate): New gate.
24043 (make_pass_ipa_single_use): New function.
24044
24045 2014-06-23 Kai Tietz <ktietz@redhat.com>
24046
24047 PR target/39284
24048 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
24049 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
24050
24051 2014-06-23 Richard Biener <rguenther@suse.de>
24052
24053 * tree-ssa-loop.c (gate_loop): New function.
24054 (pass_tree_loop::gate): Call it.
24055 (pass_data_tree_no_loop, pass_tree_no_loop,
24056 make_pass_tree_no_loop): New.
24057 * tree-vectorizer.c: Include tree-scalar-evolution.c
24058 (pass_slp_vectorize::execute): Initialize loops and SCEV if
24059 required.
24060 (pass_slp_vectorize::clone): New method.
24061 * timevar.def (TV_TREE_NOLOOP): New.
24062 * tree-pass.h (make_pass_tree_no_loop): Declare.
24063 * passes.def (pass_tree_no_loop): New pass group with
24064 SLP vectorizer.
24065
24066 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
24067
24068 PR target/61570
24069 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
24070 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
24071
24072 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
24073
24074 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
24075 "yes" where needed.
24076
24077 2014-06-23 Alan Modra <amodra@gmail.com>
24078
24079 PR bootstrap/61583
24080 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
24081 to zero on debug statements.
24082
24083 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
24084
24085 PR target/60825
24086 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
24087 Ignore third operand if present by marking qualifier_internal.
24088
24089 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
24090
24091 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
24092 vector extension.
24093 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
24094 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
24095 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
24096 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
24097 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
24098 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
24099 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
24100 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
24101 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
24102 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
24103 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
24104 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
24105 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
24106 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
24107 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
24108 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
24109 logic in GCC vector extensions
24110
24111 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
24112 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
24113 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
24114 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
24115 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
24116 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
24117 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
24118 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
24119 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
24120 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
24121
24122 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
24123
24124 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
24125 extensions.
24126
24127 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
24128 (vget_low_s64): Use __GET_LOW macro.
24129 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
24130 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
24131 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
24132 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
24133 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
24134
24135 (vcombine_s64): Use GCC vector extensions; remove cast.
24136 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
24137 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
24138 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
24139 Fix type signature; remove cast.
24140
24141 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
24142
24143 PR target/60825
24144 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
24145 V1DFmode.
24146 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
24147 add V1DFmode
24148 (BUILTIN_VD1): New.
24149 (BUILTIN_VD_RE): Remove.
24150 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
24151 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
24152 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
24153 variant but not df.
24154 (vreinterpretv1df*, vreinterpret*v1df): New.
24155 (vreinterpretdf*, vreinterpret*df): Remove.
24156 * config/aarch64/aarch64-simd.md (aarch64_create,
24157 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
24158 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
24159 (VD1): New.
24160 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
24161 (vcreate_f64): Remove cast, use v1df builtin.
24162 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
24163 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
24164 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
24165 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
24166 vmov_n_f64, vst1_f64): Use gcc vector extensions.
24167 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
24168 add range check using __builtin_aarch64_im_lane_boundsi.
24169 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
24170 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
24171 type signature, use gcc vector extensions.
24172 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
24173 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
24174 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
24175 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
24176 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
24177 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
24178 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
24179 vreinterpret_u64_f64): Use v1df builtin not df.
24180
24181 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
24182
24183 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
24184 vector registers.
24185
24186 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
24187
24188 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
24189 priority directly.
24190
24191 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24192
24193 * loop-invariant.c (pre_check_invariant_p): New function.
24194 (find_invariant_insn): Call pre_check_invariant_p.
24195
24196 2014-06-22 Richard Henderson <rth@redhat.com>
24197
24198 PR target/61565
24199 * compare-elim.c (struct comparison): Add eh_note.
24200 (find_comparison_dom_walker::before_dom_children): Don't eliminate
24201 a redundant comparison in a different EH region. Purge EH edges if
24202 necessary.
24203
24204 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
24205
24206 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
24207 (var_shift): Use it.
24208 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
24209 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
24210 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
24211 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
24212 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
24213 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
24214 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
24215 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
24216 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
24217 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
24218 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
24219 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
24220 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
24221 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
24222 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
24223 *rotldi3_internal15be): Use the new attribute. Merge register and
24224 integer alternatives.
24225
24226 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
24227
24228 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
24229 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
24230 split, *ashrdi3_internal3 and split): Delete, merge into...
24231 (ashr<mode>3): New expander.
24232 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
24233 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
24234
24235 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
24236
24237 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
24238 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
24239 *rotldi3_internal3 and split): Delete, merge into...
24240 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
24241 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
24242 Use "rotlw" extended mnemonic.
24243
24244 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
24245
24246 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
24247 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
24248 and split, *ashldi3_internal3 and split): Delete, merge into...
24249 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
24250 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
24251
24252 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
24253
24254 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
24255 (lshrsi3, two anonymous define_insns and define_splits,
24256 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
24257 *lshrdi3_internal3 and split): Delete, merge into...
24258 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
24259 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
24260
24261 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
24262
24263 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
24264 Remove "O" alternative.
24265
24266 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
24267
24268 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
24269 (mips_move_from_gpr_cost): Likewise.
24270 (mips_register_move_cost): Update accordingly.
24271 (mips_secondary_reload_class): Remove name of in_p.
24272
24273 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
24274
24275 PR target/61503
24276 * config/i386/i386.md (x86_64_shrd, x86_shrd,
24277 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
24278
24279 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24280
24281 * config/nios2/nios2.c: Include "builtins.h".
24282
24283 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
24284
24285 * cgraph.h (tls_model_names): New variable.
24286 * print-tree.c (print_node): Simplify.
24287 * varpool.c (tls_model_names): New variable.
24288 (dump_varpool_node): Output tls model.
24289
24290 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
24291
24292 * ipa-visibility.c (function_and_variable_visibility): Disable
24293 temporarily local aliases for some targets.
24294
24295 2014-06-20 Marek Polacek <polacek@redhat.com>
24296
24297 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
24298 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
24299 into SANITIZE_UNDEFINED.
24300 * doc/invoke.texi: Describe -fsanitize=bounds.
24301 * gimplify.c (gimplify_call_expr): Add gimplification of internal
24302 functions created in the FEs.
24303 * internal-fn.c: Move "internal-fn.h" after "tree.h".
24304 (expand_UBSAN_BOUNDS): New function.
24305 * internal-fn.def (UBSAN_BOUNDS): New internal function.
24306 * internal-fn.h: Don't define internal functions here.
24307 * opts.c (common_handle_option): Add -fsanitize=bounds.
24308 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
24309 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
24310 * tree-core.h: Define internal functions here.
24311 (struct tree_base): Add ifn field.
24312 * tree-pretty-print.c: Include "internal-fn.h".
24313 (dump_generic_node): Handle functions without CALL_EXPR_FN.
24314 * tree.c (get_callee_fndecl): Likewise.
24315 (build_call_expr_internal_loc): New function.
24316 * tree.def (CALL_EXPR): Update description.
24317 * tree.h (CALL_EXPR_IFN): Define.
24318 (build_call_expr_internal_loc): Declare.
24319 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
24320 types.
24321 (ubsan_type_descriptor): Change bool parameter to enum
24322 ubsan_print_style. Adjust the code. Add handling of
24323 UBSAN_PRINT_ARRAY.
24324 (ubsan_expand_bounds_ifn): New function.
24325 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
24326 (ubsan_build_overflow_builtin): Likewise.
24327 (instrument_bool_enum_load): Likewise.
24328 (ubsan_instrument_float_cast): Likewise.
24329 * ubsan.h (enum ubsan_print_style): New enum.
24330 (ubsan_expand_bounds_ifn): Declare.
24331 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
24332
24333 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
24334
24335 * config/rs6000/rs6000.md: Append `DONE' to preparation
24336 statements of `bswap' pattern splitters.
24337
24338 2014-06-20 Tom de Vries <tom@codesourcery.com>
24339
24340 * target.def (call_fusage_contains_non_callee_clobbers): Update
24341 definition.
24342 * doc/tm.texi: Regenerate.
24343
24344 2014-06-20 Yury Gribov <y.gribov@samsung.com>
24345 Max Ostapenko <m.ostapenko@partner.samsung.com>
24346
24347 PR sanitizer/61547
24348 * asan.c (instrument_strlen_call): Fixed instrumentation of
24349 trailing byte.
24350
24351 2014-06-20 Martin Jambor <mjambor@suse.cz>
24352
24353 PR ipa/61540
24354 * ipa-prop.c (impossible_devirt_target): New function.
24355 (try_make_edge_direct_virtual_call): Use it, also instead of
24356 asserting.
24357
24358 2014-06-20 Yury Gribov <y.gribov@samsung.com>
24359 Max Ostapenko <m.ostapenko@partner.samsung.com>
24360
24361 PR sanitizer/61530
24362 * asan.c (build_check_stmt): Add condition.
24363
24364 2014-06-20 Martin Jambor <mjambor@suse.cz>
24365
24366 PR ipa/61211
24367 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
24368 expanded clones.
24369
24370 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24371
24372 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
24373 Update comments.
24374 (VCONQ): Make comment more helpful.
24375 (VCON): Delete.
24376 * config/aarch64/aarch64-simd.md
24377 (aarch64_sqdmulh_lane<mode>):
24378 Use VCOND for operands 2. Update lane checking and flipping logic.
24379 (aarch64_sqrdmulh_lane<mode>): Likewise.
24380 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
24381 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
24382 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
24383 attribute of operand 3 to VCOND.
24384 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
24385 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
24386 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
24387 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
24388 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
24389 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
24390 define_insn.
24391 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
24392 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
24393 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
24394 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
24395 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
24396 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
24397 operand to VCOND. Update lane flipping and bounds checking logic.
24398 (aarch64_sqdmlal2_lane<mode>): Likewise.
24399 (aarch64_sqdmlsl_lane<mode>): Likewise.
24400 (aarch64_sqdmull_lane<mode>): Likewise.
24401 (aarch64_sqdmull2_lane<mode>): Likewise.
24402 (aarch64_sqdmlal_laneq<mode>):
24403 Replace VCON usage with VCONQ.
24404 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
24405 (aarch64_sqdmlal2_laneq<mode>): Emit
24406 aarch64_sqdmlal2_laneq<mode>_internal insn.
24407 Replace VCON with VCONQ.
24408 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
24409 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
24410 (aarch64_sqdmull_laneq<mode>): Emit
24411 aarch64_sqdmull_laneq<mode>_internal insn.
24412 Replace VCON with VCONQ.
24413 (aarch64_sqdmull2_laneq<mode>): Emit
24414 aarch64_sqdmull2_laneq<mode>_internal insn.
24415 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
24416 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
24417 of 3rd argument to int16x4_t.
24418 (vqdmlalh_lane_s16): Likewise.
24419 (vqdmlslh_lane_s16): Likewise.
24420 (vqdmull_high_lane_s16): Likewise.
24421 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
24422 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
24423 (vqdmlsl_lane_s16): Likewise.
24424 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
24425 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
24426 (vqdmlals_lane_s32): Likewise.
24427 (vqdmlsls_lane_s32): Likewise.
24428 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
24429 (vqdmulls_lane_s32): Likewise.
24430 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
24431 (vqdmlsl_lane_s32): Likewise.
24432 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
24433 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
24434 (vqrdmulhh_lane_s16): Likewise.
24435 (vqdmlsl_high_lane_s16): Likewise.
24436 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
24437 (vqdmlsl_high_lane_s32): Likewise.
24438 (vqrdmulhs_lane_s32): Likewise.
24439
24440 2014-06-20 Tom de Vries <tom@codesourcery.com>
24441
24442 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
24443 get_call_reg_set_usage.
24444
24445 2014-06-20 Tom de Vries <tom@codesourcery.com>
24446
24447 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
24448 it contains all call_used_regs.
24449
24450 2014-06-20 Tom de Vries <tom@codesourcery.com>
24451
24452 * final.c (collect_fn_hard_reg_usage): Add and use variable
24453 function_used_regs.
24454
24455 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
24456
24457 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
24458 (set_init_priority, get_init_priority, set_fini_priority,
24459 get_fini_priority): New methods.
24460 * tree.c (init_priority_for_decl): Remove.
24461 (init_ttree): Do not initialize init priority.
24462 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
24463 (decl_priority_info): Remove.
24464 (decl_init_priority_insert): Rewrite.
24465 (decl_fini_priority_insert): Rewrite.
24466 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
24467 tree_priority_map_marked_p): Remove.
24468 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
24469 * lto-streamer-out.c (hash_tree): Do not hash priorities.
24470 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
24471 not output priorities.
24472 (pack_ts_function_decl_value_fields): Likewise.
24473 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
24474 not input priorities.
24475 (unpack_ts_function_decl_value_fields): Likewise.
24476 * symtab.c (symbol_priority_map): Declare.
24477 (init_priority_hash): Declare.
24478 (symtab_unregister_node): Unregister from priority hash, too.
24479 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
24480 New methods.
24481 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
24482 (symbol_priority_info): New function.
24483 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
24484 New methods.
24485 * tree-core.h (tree_priority_map): Remove.
24486
24487 2014-06-20 Jakub Jelinek <jakub@redhat.com>
24488
24489 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
24490 0xff to uint64_t before shifting it up.
24491
24492 2014-06-20 Julian Brown <julian@codesourcery.com>
24493 Chung-Lin Tang <cltang@codesourcery.com>
24494
24495 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
24496 TARGET_THUMB1_ONLY. Add comments.
24497
24498 2014-06-19 Tom de Vries <tom@codesourcery.com>
24499
24500 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
24501 return type to void.
24502 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
24503
24504 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24505
24506 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
24507 as "move", from depends_on.
24508
24509 2014-06-19 Terry Guo <terry.guo@arm.com>
24510
24511 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
24512 stage.
24513
24514 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
24515
24516 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
24517 Remove cr5.
24518 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
24519
24520 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
24521
24522 PR target/61550
24523 * config/sh/sh.c (prepare_move_operands): Don't process TLS
24524 addresses here if reload in progress or completed.
24525
24526 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
24527
24528 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
24529 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
24530 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
24531 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
24532 (mips_register_priority): New function that implements the target
24533 hook TARGET_REGISTER_PRIORITY.
24534 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
24535 (mips_lra_p): Likewise for TARGET_LRA_P.
24536 (TARGET_REGISTER_PRIORITY): Define macro.
24537 (TARGET_SPILL_CLASS): Likewise.
24538 (TARGET_LRA_P): Likewise.
24539 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
24540 classes.
24541 (REG_CLASS_NAMES): Likewise.
24542 (REG_CLASS_CONTENTS): Likewise.
24543 (BASE_REG_CLASS): Use M16_SP_REGS.
24544 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
24545 New set attribute to enable alternatives depending on the register
24546 allocator used.
24547 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
24548 (*lea64): Disable pattern for MIPS16.
24549 * config/mips/mips.opt (mlra): New option.
24550
24551 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
24552
24553 * lra-constraints.c (base_to_reg): New function.
24554 (process_address): Use new function.
24555
24556 2014-06-18 Tom de Vries <tom@codesourcery.com>
24557
24558 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
24559 * config/aarch64/aarch64.c
24560 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
24561 (aarch64_emit_call_insn): New function.
24562 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
24563 of emit_call_insn.
24564 * config/aarch64/aarch64.md (define_expand "call_internal")
24565 (define_expand "call_value_internal", define_expand "sibcall_internal")
24566 (define_expand "sibcall_value_internal"): New.
24567 (define_expand "call", define_expand "call_value")
24568 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
24569 expand variant and aarch64_emit_call_insn.
24570
24571 2014-06-18 Radovan Obradovic <robradovic@mips.com>
24572 Tom de Vries <tom@codesourcery.com>
24573
24574 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
24575 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
24576 Redefine to true.
24577 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
24578 clobbers to CALL_INSN_FUNCTION_USAGE.
24579 (define_expand "sibcall_internal")
24580 (define_expand "sibcall_value_internal"): New.
24581 (define_expand "call", define_expand "call_value"): Add argument to
24582 arm_emit_call_insn.
24583 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
24584 (define_expand "sibcall_value"): Use sibcall_value_internal and
24585 arm_emit_call_insn.
24586
24587 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
24588
24589 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
24590
24591 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
24592
24593 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
24594 __udivmoddi4.
24595
24596 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
24597
24598 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
24599 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
24600 annotations. Fix DWARF information.
24601
24602 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
24603
24604 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
24605 __udivmoddi4, and fixups for negative operands.
24606
24607 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
24608
24609 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
24610
24611 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
24612
24613 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
24614 to __udivmoddi4.
24615
24616 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
24617
24618 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
24619 manipulation.
24620
24621 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
24622
24623 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
24624 describing register usage on function entry and exit.
24625
24626 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
24627
24628 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
24629 (__aeabi_ldivmod): Fix whitespace.
24630
24631 2014-06-18 Andreas Schwab <schwab@suse.de>
24632
24633 * doc/md.texi (Standard Names): Use @itemx for grouped items.
24634 Remove blank line after @item.
24635
24636 2014-06-18 Richard Henderson <rth@redhat.com>
24637
24638 PR target/61545
24639 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
24640
24641 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
24642
24643 * config/arm/arm.c (neon_vector_mem_operand): Allow register
24644 POST_MODIFY for neon loads and stores.
24645 (arm_print_operand): Output post-index register for neon loads and
24646 stores.
24647
24648 2014-06-18 Richard Biener <rguenther@suse.de>
24649
24650 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
24651
24652 2014-06-18 Richard Biener <rguenther@suse.de>
24653
24654 * tree-pass.h (make_pass_dce_loop): Remove.
24655 * passes.def: Replace pass_dce_loop with pass_dce.
24656 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
24657 changed free niter estimates and reset the scev cache.
24658 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
24659 make_pass_dce_loop): Remove.
24660 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
24661 (fini_copy_prop): Return whether something changed. Always
24662 let substitute_and_fold perform DCE and free niter estimates
24663 and reset the scev cache if so.
24664 (execute_copy_prop): If sth changed schedule cleanup-cfg.
24665 (pass_data_copy_prop): Do not unconditionally schedule
24666 cleanup-cfg or update-ssa.
24667
24668 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
24669
24670 PR tree-optimization/61518
24671 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
24672 reduction var is used in reduction stmt or phi-function only.
24673
24674 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24675
24676 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
24677
24678 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
24679
24680 PR tree-optimization/61517
24681 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
24682 whose rhs's first tree is the source expression instead of the
24683 expression itself.
24684 (find_bswap_or_nop): Likewise.
24685 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
24686 gimple stmt whose rhs's first tree is the source. In the memory source
24687 case, move the stmt to be replaced close to one of the original load to
24688 avoid the problem of a store between the load and the stmt's original
24689 location.
24690 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
24691 signature.
24692
24693 2014-06-18 Andreas Schwab <schwab@suse.de>
24694
24695 PR rtl-optimization/54555
24696 * postreload.c (move2add_use_add2_insn): Substitute
24697 STRICT_LOW_PART only if it is cheaper.
24698
24699 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
24700
24701 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
24702 Do not use unspec as call operand. Use memory_operand instead of
24703 memory_nox32_operand and add "m" operand constraint. Disable
24704 pattern for TARGET_X32.
24705 (*sibcall_pop_memory): Ditto.
24706 (*sibcall_value_memory): Ditto.
24707 (*sibcall_value_pop_memory): Ditto.
24708 (sibcall peepholes): Merge SImode and DImode patterns using
24709 W mode iterator. Use memory_operand instead of memory_nox32_operand.
24710 Disable pattern for TARGET_X32. Check if eliminated register is
24711 really dead after call insn. Generate call RTX without unspec operand.
24712 (sibcall_value peepholes): Ditto.
24713 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
24714 instead of memory_nox32_operand. Check if eliminated register is
24715 really dead after call insn. Generate call RTX without unspec operand.
24716 (sibcall_value_pop peepholes): Ditto.
24717 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
24718
24719 2014-06-18 Terry Guo <terry.guo@arm.com>
24720
24721 PR target/61544
24722 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
24723 reach the head.
24724
24725 2014-06-18 Olivier Hainque <hainque@adacore.com>
24726
24727 * tree-core.h (tree_block): Add an "end_locus" field, allowing
24728 memorization of the end of block source location.
24729 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
24730 * gimplify.c (gimplify_bind_expr): Propagate the block start and
24731 end source location info we have on the block entry/exit code we
24732 generate.
24733
24734 2014-06-18 Richard Biener <rguenther@suse.de>
24735
24736 * common.opt (fssa-phiopt): New option.
24737 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
24738 but not with -Og.
24739 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
24740 * doc/invoke.texi (-fssa-phiopt): Document.
24741
24742 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24743
24744 * genattrtab.c (n_bypassed): New variable.
24745 (process_bypasses): Initialise n_bypassed.
24746 Count number of bypassed reservations.
24747 (make_automaton_attrs): Allocate space for bypassed reservations
24748 rather than number of bypasses.
24749
24750 2014-06-18 Richard Biener <rguenther@suse.de>
24751
24752 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
24753 we propagated anything.
24754 (substitute_and_fold_dom_walker::before_dom_children): Something
24755 changed if we propagated into PHI arguments.
24756 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
24757 we removed a stmt.
24758
24759 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
24760
24761 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
24762 vector case.
24763 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
24764 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
24765 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
24766 Introduces alternative way of loads group permutaions.
24767 (vect_transform_grouped_load): Try alternative way of permutations.
24768
24769 2014-06-18 Jakub Jelinek <jakub@redhat.com>
24770
24771 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
24772 changed in ORT_TARGET region, don't jump to do_outer.
24773 (struct gimplify_adjust_omp_clauses_data): New type.
24774 (gimplify_adjust_omp_clauses_1): Adjust for data being
24775 a struct gimplify_adjust_omp_clauses_data pointer instead
24776 of tree *. Pass pre_p as a new argument to
24777 lang_hooks.decls.omp_finish_clause hook.
24778 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
24779 splay_tree_foreach to pass both list_p and pre_p.
24780 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
24781 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
24782 gimplify_adjust_omp_clauses callers.
24783 * langhooks.c (lhd_omp_finish_clause): New function.
24784 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
24785 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
24786 * langhooks.h (struct lang_hooks_for_decls): Add a new
24787 gimple_seq * argument to omp_finish_clause hook.
24788 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
24789 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
24790 (scan_omp_parallel, lower_omp_for): When adding
24791 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
24792 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
24793 * tree-nested.c (convert_nonlocal_omp_clauses,
24794 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
24795 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
24796
24797 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
24798
24799 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
24800 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
24801
24802 2014-06-17 Xinliang David Li <davidxl@google.com>
24803
24804 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
24805 * passes.c (pass_init_dump_file): Do not set initialize
24806 flag to false unconditionally.
24807
24808 2014-06-17 Richard Biener <rguenther@suse.de>
24809
24810 * genopinit.c (main): Use vec<>::qsort method.
24811 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
24812 Likewise.
24813 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
24814
24815 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
24816
24817 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
24818 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
24819 (mips_move_to_gpr_cost): Remove ST_REGS case.
24820 (mips_move_from_gpr_cost): Likewise.
24821 (mips_register_move_cost): Likewise.
24822 (mips_secondary_reload_class): Likewise.
24823
24824 2014-06-17 Richard Biener <rguenther@suse.de>
24825
24826 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
24827 (pass_all_optimizations): Move 3rd copy-prop pass from after
24828 fre to before ifcombine/phiopt.
24829
24830 2014-06-17 Richard Biener <rguenther@suse.de>
24831
24832 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
24833 and allow all blocks to be forwarders.
24834
24835 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
24836
24837 PR target/61483
24838 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
24839 variable 'size'; calculate 'size' right in the front; use
24840 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
24841 pcum->aapcs_stack_words.
24842
24843 2014-06-17 Nick Clifton <nickc@redhat.com>
24844
24845 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
24846 (umulhi3, mulsidi3, umulsidi3): Likewise.
24847
24848 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
24849
24850 PR middle-end/61508
24851 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
24852 check for section name.
24853
24854 2014-06-17 Richard Biener <rguenther@suse.de>
24855
24856 * tree-ssa-propagate.c: Include domwalk.h.
24857 (substitute_and_fold): Outline main worker into a domwalker ...
24858 (substitute_and_fold_dom_walker::before_dom_children): ... here.
24859 Schedule stmts we can fully propagate for removal. Remove
24860 poor-mans DCE.
24861 (substitute_and_fold): Apply a dominator walk to perform
24862 substitution. Process stmts scheduled for removal here.
24863
24864 2014-06-17 Richard Biener <rguenther@suse.de>
24865
24866 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
24867 of PHI node moving.
24868
24869 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
24870
24871 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
24872 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
24873 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
24874 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
24875 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
24876 TARGET_HARD_FLOAT.
24877 (get_fpscr) : Likewise.
24878
24879 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
24880
24881 PR rtl-optimization/61325
24882 * lra-constraints.c (valid_address_p): Add forward declaration.
24883 (simplify_operand_subreg): Check address validity before and after
24884 alter_reg of memory subreg.
24885
24886 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
24887
24888 * config/i386/i386.c (decide_alg): Correctly handle
24889 maximum size of stringop algorithm.
24890
24891 2014-06-16 Yury Gribov <y.gribov@samsung.com>
24892
24893 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
24894
24895 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
24896
24897 PR rtl-optimization/61522
24898 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
24899
24900 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
24901
24902 Revert:
24903 * symtab.c (symtab_node::reset_section): New method.
24904 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
24905 for localization.
24906 * cgraph.h (reset_section): Declare.
24907 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
24908 do not consider comdat locals.
24909 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
24910 for new symbol.
24911 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
24912 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
24913 reset sections of symbols dragged out of the comdats.
24914 (function_and_variable_visibility): Reset sections of
24915 localized symbols.
24916
24917 2014-06-16 Richard Biener <rguenther@suse.de>
24918
24919 PR tree-optimization/61482
24920 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
24921 [-INF(OVF), +INF(OVF)] range.
24922
24923 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
24924
24925 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
24926 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
24927 handling 32-bit multiplication.
24928
24929 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
24930
24931 PR middle-end/61430
24932 * lra-lives.c (process_bb_lives): Skip creating copy during
24933 insn scan when src/dest has constrained to same regno.
24934
24935 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
24936
24937 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
24938 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
24939
24940 2014-06-16 Yury Gribov <y.gribov@samsung.com>
24941
24942 * asan.c (check_func): New function.
24943 (maybe_create_ssa_name): Likewise.
24944 (build_check_stmt_with_calls): Likewise.
24945 (use_calls_p): Likewise.
24946 (report_error_func): Change interface.
24947 (build_check_stmt): Allow non-integer lengths; add support
24948 for new parameter.
24949 (asan_instrument): Likewise.
24950 (instrument_mem_region_access): Moved code to build_check_stmt.
24951 (instrument_derefs): Likewise.
24952 (instrument_strlen_call): Likewise.
24953 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
24954 * doc/invoke.texi: Describe new parameter.
24955 * params.def: Define new parameter.
24956 * params.h: Likewise.
24957 * sanitizer.def: Describe new builtins.
24958
24959 2014-06-16 Richard Biener <rguenther@suse.de>
24960
24961 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24962 Make all defs available at the end.
24963 (eliminate): If we remove a PHI node schedule cfg-cleanup.
24964
24965 2014-06-18 Jakub Jelinek <jakub@redhat.com>
24966
24967 PR plugins/45078
24968 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
24969
24970 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
24971
24972 PR bootstrap/61516
24973 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
24974 initialization. Replace remaining use of uid.
24975
24976 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
24977
24978 * c-family/c-common.c (handle_tls_model_attribute): Use
24979 set_decl_tls_model.
24980 * c-family/c-common.c (handle_tls_model_attribute): Use
24981 set_decl_tls_model.
24982 * cgraph.h (struct varpool_node): Add tls_model.
24983 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
24984 * tree.h (DECL_TLS_MODEL): Update.
24985 (DECL_THREAD_LOCAL_P): Check that variable is static.
24986 (decl_tls_model): Declare.
24987 (set_decl_tls_model): Declare.
24988 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
24989 set symbol prorperties.
24990 (get_emutls_init_templ_addr): Cleanup.
24991 (new_emutls_decl): Update.
24992 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
24993 (lto_input_varpool_node): Likewise.
24994 * lto-streamer-out.c (hash_tree): Likewise.
24995 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
24996 not stream DECL_TLS_MODEL.
24997 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
24998 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
24999
25000 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
25001
25002 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
25003
25004 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
25005
25006 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
25007 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
25008 lists.
25009 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
25010 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
25011 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
25012 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
25013 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
25014 (df_get_artificial_defs, df_get_artificial_uses)
25015 (df_single_def, df_single_use): Update accordingly.
25016 (df_refs_chain_dump): Take the first element in a linked list as
25017 parameter, rather than a pointer to an array of pointers.
25018 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
25019 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
25020 (df_chain_create_bb_process_use): Likewise.
25021 (df_md_bb_local_compute_process_def): Likewise.
25022 * fwprop.c (process_defs, process_uses): Likewise.
25023 (register_active_defs, update_uses): Likewise.
25024 (forward_propagate_asm): Update for new df_ref linking.
25025 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
25026 (df_null_ref_rec, df_null_mw_rec): Likewise.
25027 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
25028 explicitly.
25029 (df_scan_free_bb_info): Remove check for null artificial_defs.
25030 (df_install_ref_incremental): Adjust for new df_ref linking.
25031 Use a single-element insertion rather than a full sort.
25032 (df_ref_chain_delete_du_chain): Take the first element
25033 in a linked list as parameter, rather than a pointer to an array of
25034 pointers.
25035 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
25036 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
25037 (df_insn_info_delete): Remove check for null defs and call to
25038 df_scan_free_mws_vec.
25039 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
25040 null rather than df_null_*_rec.
25041 (df_insn_rescan_debug_internal): Likewise, and update null
25042 checks in the same way. Remove check for null defs.
25043 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
25044 Move a single element rather doing a full sort.
25045 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
25046 linking.
25047 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
25048 Initialize df_ref and df_mw_hardreg lists to null rather than
25049 df_null_*_rec.
25050 (df_ref_compare): Take df_refs as parameter, transferring the
25051 old interface to...
25052 (df_ref_ptr_compare): ...this new function.
25053 (df_sort_and_compress_refs): Update accordingly.
25054 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
25055 old interface to...
25056 (df_mw_ptr_compare): ...this new function.
25057 (df_sort_and_compress_mws): Update accordingly.
25058 (df_install_refs, df_install_mws): Return a linked list rather than
25059 an array of pointers.
25060 (df_refs_add_to_chains): Assert that old lists are empty rather
25061 than freeing them.
25062 (df_insn_refs_verify): Don't handle null defs speciailly.
25063 * web.c (union_match_dups): Update for new df_ref linking.
25064
25065 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
25066
25067 * df.h (df_ref_create, df_ref_remove): Delete.
25068 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
25069 (df_ref_remove): Likewise.
25070
25071 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
25072
25073 * df.h (df_single_def, df_single_use): New functions.
25074 * ira.c (find_moveable_pseudos): Use them.
25075
25076 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
25077
25078 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
25079 * df-problems.c (df_note_bb_compute): Use it.
25080 * regstat.c (regstat_bb_compute_ri): Likewise.
25081
25082 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
25083
25084 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
25085 * cse.c (cse_extended_basic_block): Use them.
25086 * dce.c (mark_artificial_use): Likewise.
25087 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
25088 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
25089 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
25090 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
25091 (df_simulate_initialize_backwards): Likewise.
25092 (df_simulate_finalize_backwards): Likewise.
25093 (df_simulate_initialize_forwards): Likewise.
25094 (df_md_simulate_artificial_defs_at_top): Likewise.
25095 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
25096 * regrename.c (init_rename_info): Likewise.
25097 * regstat.c (regstat_bb_compute_ri): Likewise.
25098 (regstat_bb_compute_calls_crossed): Likewise.
25099
25100 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
25101
25102 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
25103 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
25104 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
25105 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
25106 * combine.c (create_log_links): Likewise.
25107 * compare-elim.c (find_flags_uses_in_insn): Likewise.
25108 (try_eliminate_compare): Likewise.
25109 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
25110 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
25111 (remove_reg_equal_equiv_notes_for_defs): Likewise.
25112 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
25113 (word_dce_process_block, dce_process_block): Likewise.
25114 * ddg.c (def_has_ccmode_p): Likewise.
25115 * df-core.c (df_bb_regno_first_def_find): Likewise.
25116 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
25117 * df-problems.c (df_rd_simulate_one_insn): Likewise.
25118 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
25119 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
25120 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
25121 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
25122 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
25123 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
25124 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
25125 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
25126 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
25127 * fwprop.c (local_ref_killed_between_p): Likewise.
25128 (all_uses_available_at, free_load_extend): Likewise.
25129 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
25130 * hw-doloop.c (scan_loop): Likewise.
25131 * ifcvt.c (dead_or_predicable): Likewise.
25132 * init-regs.c (initialize_uninitialized_regs): Likewise.
25133 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
25134 (process_bb_node_lives): Likewise.
25135 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
25136 (find_moveable_pseudos): Likewise.
25137 * loop-invariant.c (check_dependencies, record_uses): Likewise.
25138 * recog.c (peep2_find_free_register): Likewise.
25139 * ree.c (get_defs): Likewise.
25140 * regstat.c (regstat_bb_compute_ri): Likewise.
25141 (regstat_bb_compute_calls_crossed): Likewise.
25142 * sched-deps.c (find_inc, find_mem): Likewise.
25143 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
25144 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
25145 * shrink-wrap.c (requires_stack_frame_p): Likewise.
25146 (prepare_shrink_wrap): Likewise.
25147 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
25148 * web.c (union_defs, pass_web::execute): Likewise.
25149 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
25150 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
25151
25152 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
25153
25154 * lra-assign.c (assign_by_spills): Add code to assign vector regs
25155 to inheritance pseudos.
25156 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
25157
25158 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
25159
25160 PR target/61415
25161 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
25162 (BU_MISC_2): Rename to ...
25163 (BU_LDBL128_2): ... this.
25164 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
25165 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
25166 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
25167 RS6000_BTM_LDBL128.
25168 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
25169 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
25170 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
25171 (unpacktf_1): Likewise.
25172 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
25173 (__builtin_longdouble_dw1): Likewise.
25174 * doc/sourcebuild.texi (longdouble128): Document.
25175
25176 2014-06-13 Jeff Law <law@redhat.com>
25177
25178 PR rtl-optimization/61094
25179 PR rtl-optimization/61446
25180 * ree.c (combine_reaching_defs): Get the mode for the copy from
25181 the extension insn rather than the defining insn.
25182
25183 2014-06-13 Dehao Chen <dehao@google.com>
25184
25185 * dwarf2out.c (add_linkage_name): Emit more linkage name.
25186
25187 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
25188
25189 * doc/install.texi (--enable-linker-plugin-configure-flags)
25190 (--enable-linker-plugin-flags): Document new flags.
25191
25192 2014-06-13 Martin Jambor <mjambor@suse.cz>
25193
25194 PR ipa/61186
25195 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
25196 cache_token if returning early.
25197
25198 2014-06-13 Nick Clifton <nickc@redhat.com>
25199
25200 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
25201 requested alignment is active.
25202 (LABEL_ALIGN): Likewise.
25203 (LOOP_ALIGN): Likewise.
25204
25205 2014-06-13 Richard Biener <rguenther@suse.de>
25206
25207 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
25208 Rewrite to propagate the VN result into all uses where
25209 possible and to remove stmts becoming dead because of that.
25210 (eliminate): Generalize stmt removal handling, remove in
25211 reverse dominator order to support proper debug stmt
25212 generation. Update stmts before removing stmts.
25213 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
25214
25215 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
25216
25217 PR tree-optimization/61375
25218 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
25219 symbolic number cannot be represented in an uint64_t.
25220 (find_bswap_or_nop_1): Likewise.
25221
25222 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
25223
25224 * symtab.c (symtab_node::reset_section): New method.
25225 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
25226 for localization.
25227 * cgraph.h (reset_section): Declare.
25228 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
25229 do not consider comdat locals.
25230 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
25231 for new symbol.
25232 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
25233 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
25234 reset sections of symbols dragged out of the comdats.
25235 (function_and_variable_visibility): Reset sections of
25236 localized symbols.
25237
25238 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
25239
25240 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
25241 to use symtab and decl_binds_to_current_def_p
25242 * tree-vectorizer.c (increase_alignment): Increase alignment
25243 of alias target, too.
25244
25245 2014-06-12 Jakub Jelinek <jakub@redhat.com>
25246
25247 PR middle-end/61486
25248 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
25249 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
25250 if outer combined construct is distribute.
25251 (gimplify_omp_for): For OMP_DISTRIBUTE set
25252 gimplify_omp_ctxp->distribute.
25253 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
25254 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
25255 mapping into decl map.
25256
25257 2014-06-12 Jason Merrill <jason@redhat.com>
25258
25259 * common.opt (fabi-version): Change default to 0.
25260
25261 2014-06-12 Jason Merrill <jason@redhat.com>
25262
25263 * toplev.c (process_options): Reject -fabi-version=1.
25264
25265 2014-06-12 Jeff Law <law@redhat.com>
25266
25267 PR tree-optimization/61009
25268 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
25269 value when we stop processing a block due to problematic PHIs.
25270
25271 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
25272
25273 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
25274 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
25275 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
25276 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
25277 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
25278 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
25279 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
25280 are not in the spec.
25281
25282 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
25283
25284 PR target/59843
25285 * config/aarch64/aarch64-modes.def: Add V1DFmode.
25286 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
25287 Support V1DFmode.
25288
25289 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
25290
25291 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
25292
25293 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
25294
25295 PR target/61443
25296 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
25297 loading from address spaces.
25298
25299 2014-06-12 Martin Liska <mliska@suse.cz>
25300
25301 PR ipa/61462
25302 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
25303 statement is reachable.
25304
25305 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
25306
25307 * symtab.c (section_hash): New hash.
25308 (symtab_unregister_node): Clear section before freeing.
25309 (hash_section_hash_entry): New haser.
25310 (eq_sections): New function.
25311 (symtab_node::set_section_for_node): New method.
25312 (set_section_1): Update.
25313 (symtab_node::set_section): Take string instead of tree as parameter.
25314 (symtab_resolve_alias): Update.
25315 * cgraph.h (section_hash_entry_d): New structure.
25316 (section_hash_entry): New typedef.
25317 (cgraph_node): Change comdat_group_ to x_comdat_group,
25318 change section_ to x_section and turn into section_hash_entry;
25319 update accestors; put set_section_for_node offline.
25320 * tree.c (decl_section_name): Turn into string.
25321 (set_decl_section_name): Change parameter to be string.
25322 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
25323 * sdbout.c (sdbout_one_type): Update.
25324 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
25325 * varasm.c (IN_NAMED_SECTION, get_named_section,
25326 resolve_unique_section, hot_function_section, get_named_text_section,
25327 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
25328 make_decl_rtl, default_unique_section): Update.
25329 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
25330 (c6x_elf_unique_section): Update.
25331 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
25332 * config/pa/pa.c (pa_function_section): Update.
25333 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
25334 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
25335 * config/arc/arc.c (arc_in_small_data_p): Update.
25336 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
25337 * config/mcore/mcore.c (mcore_unique_section): Update.
25338 * config/mips/mips.c (mips16_build_function_stub): Update.
25339 (mips16_build_call_stub): Update.
25340 (mips_function_rodata_section): Update.
25341 (mips_in_small_data_p): Update.
25342 * config/score/score.c (score_in_small_data_p): Update.
25343 * config/rx/rx.c (rx_in_small_data): Update.
25344 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
25345 (rs6000_xcoff_asm_named_section): Update.
25346 (rs6000_xcoff_unique_section): Update.
25347 * config/frv/frv.c (frv_string_begins_with): Update.
25348 (frv_in_small_data_p): Update.
25349 * config/v850/v850.c (v850_encode_data_area): Update.
25350 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
25351 (bfin_handle_l1_data_attribute): Update.
25352 (bfin_handle_l2_attribute): Update.
25353 * config/mep/mep.c (mep_unique_section): Update.
25354 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
25355 Update.
25356 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
25357 (h8300_handle_tiny_data_attribute): Update.
25358 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
25359 (m32r_in_small_data_p): Update.
25360 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
25361 * config/i386/i386.c (ix86_in_large_data_p): Update.
25362 * config/i386/winnt.c (i386_pe_unique_section): Update.
25363 * config/darwin.c (darwin_function_section): Update.
25364 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
25365 * tree-emutls.c (get_emutls_init_templ_addr): Update.
25366 (new_emutls_decl): Update.
25367 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
25368 input_varpool_node): Update.
25369 (ead_string_cst): Turn to ...
25370 (read_string): ... this one.
25371 * dwarf2out.c (secname_for_decl): Update.
25372 * asan.c (asan_protect_global): Update.
25373
25374 2014-06-11 DJ Delorie <dj@redhat.com>
25375
25376 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
25377 cache lines.
25378 * config/rx/rx.c (rx_option_override): Likewise.
25379 (rx_align_for_label): Likewise.
25380
25381 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
25382
25383 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
25384
25385 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
25386 prototype.
25387
25388 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
25389
25390 * common.md: New file.
25391 * doc/md.texi: Update description of generic, machine-independent
25392 constraints.
25393 * config/s390/constraints.md (e): Delete.
25394 * Makefile.in (md_file): Include common.md.
25395 * config/m32c/t-m32c (md_file): Likewise.
25396 * genpreds.c (general_mem): New array.
25397 (generic_constraint_letters): Remove constraints now defined by
25398 common.md.
25399 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
25400 Allow the first character to be '<' or '>' as well.
25401 * genoutput.c (general_mem): New array.
25402 (indep_constraints): Remove constraints now defined by common.md.
25403 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
25404 Remove special handling of 'm'.
25405 * ira-costs.c (record_reg_classes): Remove special handling of
25406 constraints now defined by common.md.
25407 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
25408 * ira-lives.c (single_reg_class): Likewise.
25409 (ira_implicitly_set_insn_hard_regs): Likewise.
25410 * lra-constraints.c (reg_class_from_constraints): Likewise.
25411 (process_alt_operands, process_address, curr_insn_transform): Likewise.
25412 * postreload.c (reload_cse_simplify_operands): Likewise.
25413 * reload.c (push_secondary_reload, scratch_reload_class)
25414 (find_reloads, alternative_allows_const_pool_ref): Likewise.
25415 * reload1.c (maybe_fix_stack_asms): Likewise.
25416 * targhooks.c (default_secondary_reload): Likewise.
25417 * stmt.c (parse_output_constraint): Likewise.
25418 * recog.c (preprocess_constraints): Likewise.
25419 (constrain_operands, peep2_find_free_register): Likewise.
25420 (asm_operand_ok): Likewise, but add a comment saying why 'o'
25421 must be handled specially.
25422
25423 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
25424
25425 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
25426 * genpreds.c (have_const_dbl_constraints): Delete.
25427 (add_constraint): Don't set it.
25428 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
25429 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
25430 constraints using the lookup_constraint logic.
25431 * ira-lives.c (single_reg_class): Likewise.
25432 * ira.c (ira_setup_alts): Likewise.
25433 * lra-constraints.c (process_alt_operands): Likewise.
25434 * recog.c (asm_operand_ok, constrain_operands): Likewise.
25435 * reload.c (find_reloads): Likewise.
25436
25437 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
25438
25439 * genpreds.c (const_int_start, const_int_end): New variables.
25440 (choose_enum_order): Output CONST_INT constraints before memory
25441 constraints.
25442 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
25443 Add CT_CONST_INT.
25444 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
25445 * ira.c (ira_setup_alts): Likewise.
25446 * lra-constraints.c (process_alt_operands): Likewise.
25447 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
25448 * reload.c (find_reloads): Likewise.
25449
25450 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
25451
25452 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
25453 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
25454 * recog.c (preprocess_constraints): Update accordingly.
25455
25456 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
25457
25458 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
25459 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
25460 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
25461 * genpreds.c (print_type_tree): New function.
25462 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
25463 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
25464 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
25465 Write out enum constraint_type and get_constraint_type.
25466 * lra-constraints.c (satisfies_memory_constraint_p): Take a
25467 constraint_num rather than a constraint string.
25468 (satisfies_address_constraint_p): Likewise.
25469 (reg_class_from_constraints): Avoid old constraint macros.
25470 (process_alt_operands, process_address_1): Likewise.
25471 (curr_insn_transform): Likewise.
25472 * ira-costs.c (record_reg_classes): Likewise.
25473 (record_operand_costs): Likewise.
25474 * ira-lives.c (single_reg_class): Likewise.
25475 (ira_implicitly_set_insn_hard_regs): Likewise.
25476 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
25477 * postreload.c (reload_cse_simplify_operands): Likewise.
25478 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
25479 (constrain_operands, peep2_find_free_register): Likewise.
25480 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
25481 (find_reloads, alternative_allows_const_pool_ref): Likewise.
25482 * reload1.c (maybe_fix_stack_asms): Likewise.
25483 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
25484 * targhooks.c (default_secondary_reload): Likewise.
25485 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
25486 to EXTRA_CONSTRAINT_STR.
25487 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
25488
25489 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
25490
25491 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
25492 (write_constraint_satisfied_p_array): ...this new function.
25493 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
25494 an array.
25495 (write_insn_preds_c): Update accordingly.
25496
25497 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
25498
25499 * genpreds.c (write_lookup_constraint): Rename to...
25500 (write_lookup_constraint_1): ...this.
25501 (write_lookup_constraint_array): New function.
25502 (write_tm_preds_h): Define lookup_constraint as an inline function
25503 that uses write_lookup_constraint_array where possible.
25504 (write_insn_preds_c): Update for the changes above.
25505
25506 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
25507
25508 * doc/md.texi (regclass_for_constraint): Rename to...
25509 (reg_class_for_constraint): ...this.
25510 * genpreds.c (num_constraints, enum_order, register_start)
25511 (register_end, satisfied_start, memory_start, memory_end)
25512 (address_start, address_end): New variables.
25513 (add_constraint): Count the number of constraints.
25514 (choose_enum_order): New function.
25515 (write_enum_constraint_num): Iterate over enum_order.
25516 (write_regclass_for_constraint): Rename to...
25517 (write_reg_class_for_constraint_1): ...this and update output
25518 accordingly.
25519 (write_constraint_satisfied_p): Rename to...
25520 (write_constraint_satisfied_p_1): ...this and update output
25521 accordingly. Do nothing if all extra constraints are register
25522 constraints.
25523 (write_insn_extra_memory_constraint): Delete.
25524 (write_insn_extra_address_constraint): Delete.
25525 (write_range_function): New function.
25526 (write_tm_preds_h): Define constraint_satisfied_p and
25527 reg_class_for_constraint as inline functions that do a range check
25528 before calling the out-of-line function. Use write_range_function
25529 to implement insn_extra_{register,memory,address}_constraint,
25530 the first of which is new.
25531 (write_insn_preds_c): Update after above changes to write_* functions.
25532 (main): Call choose_enum_order.
25533
25534 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
25535
25536 PR tree-optimization/61306
25537 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
25538 expression instead of its size.
25539 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
25540 false to prevent optimization when the result is unpredictable due to
25541 arithmetic right shift of signed type with highest byte is set.
25542 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
25543 (init_symbolic_number): Likewise.
25544 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
25545 when the result is unpredictable due to sign extension.
25546
25547 2014-06-11 Terry Guo <terry.guo@arm.com>
25548
25549 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
25550 (*thumb1_addsi3): Ditto.
25551 (*thumb_subdi3): Ditto.
25552 (thumb1_subsi3_insn): Ditto.
25553 (*thumb_mulsi3): Ditto.
25554 (*thumb_mulsi3_v6): Ditto.
25555 (*thumb1_andsi3_insn): Ditto.
25556 (thumb1_bicsi3): Ditto.
25557 (*thumb1_iorsi3_insn): Ditto.
25558 (*thumb1_xorsi3_insn): Ditto.
25559 (*thumb1_ashlsi3): Ditto.
25560 (*thumb1_ashrsi3): Ditto.
25561 (*thumb1_lshrsi3): Ditto.
25562 (*thumb1_rotrsi3): Ditto.
25563 (*thumb1_negdi2): Ditto.
25564 (*thumb1_negsi2): Ditto.
25565 (*thumb1_abssi2): Ditto.
25566 (*thumb1_neg_abssi2): Ditto.
25567 (*thumb1_one_cmplsi2): Ditto.
25568 (*thumb1_zero_extendhisi2): Ditto.
25569 (*thumb1_zero_extendqisi2): Ditto.
25570 (*thumb1_zero_extendqisi2_v6): Ditto.
25571 (thumb1_extendhisi2): Ditto.
25572 (thumb1_extendqisi2): Ditto.
25573 (*thumb1_movdi_insn): Ditto.
25574 (*thumb1_movsi_insn): Ditto.
25575 (*thumb1_movhi_insn): Ditto.
25576 (thumb_movhi_clobber): Ditto.
25577 (*thumb1_movqi_insn): Ditto.
25578 (*thumb1_movhf): Ditto.
25579 (*thumb1_movsf_insn): Ditto.
25580 (*thumb_movdf_insn): Ditto.
25581 (movmem12b): Ditto.
25582 (movmem8b): Ditto.
25583 (cbranchqi4): Ditto.
25584 (cbranchsi4_insn): Ditto.
25585 (cbranchsi4_scratch): Ditto.
25586 (*negated_cbranchsi4): Ditto.
25587 (*tbit_cbranch): Ditto.
25588 (*tlobits_cbranch): Ditto.
25589 (*tstsi3_cbranch): Ditto.
25590 (*cbranchne_decr1): Ditto.
25591 (*addsi3_cbranch): Ditto.
25592 (*addsi3_cbranch_scratch): Ditto.
25593 (*thumb_cmpdi_zero): Ditto.
25594 (cstoresi_eq0_thumb1): Ditto.
25595 (cstoresi_ne0_thumb1): Ditto.
25596 (*cstoresi_eq0_thumb1_insn): Ditto.
25597 (*cstoresi_ne0_thumb1_insn): Ditto.
25598 (cstoresi_nltu_thumb1): Ditto.
25599 (cstoresi_ltu_thumb1): Ditto.
25600 (thumb1_addsi3_addgeu): Ditto.
25601 (*thumb_jump): Ditto.
25602 (*call_reg_thumb1_v5): Ditto.
25603 (*call_reg_thumb1): Ditto.
25604 (*call_value_reg_thumb1_v5): Ditto.
25605 (*call_value_reg_thumb1): Ditto.
25606 (*call_insn): Ditto.
25607 (*call_value_insn): Ditto.
25608 (thumb1_casesi_internal_pic): Ditto.
25609 (thumb1_casesi_dispatch): Ditto.
25610 (*thumb1_indirect_jump): Ditto.
25611 (prologue_thumb1_interwork): Ditto.
25612 (*epilogue_insns): Ditto.
25613 (consttable_1): Ditto.
25614 (consttable_2): Ditto.
25615 (tablejump): Ditto.
25616 (*thumb1_tablejump): Ditto.
25617 (thumb_eh_return): Ditto.
25618 (define_peephole2): Two of them are thumb1 only and got moved into
25619 new file thumb1.md.
25620 (define_split): Six of them are thumb1 only and got moved into new
25621 file thumb1.md.
25622 * config/arm/thumb1.md: New file comprised of above thumb1 only
25623 patterns.
25624
25625 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25626
25627 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
25628 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
25629 dependencies.
25630 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
25631 (aarch64_crc_builtin_datum): New struct.
25632 (aarch64_crc_builtin_data): New.
25633 (aarch64_init_crc32_builtins): New function.
25634 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
25635 (aarch64_crc32_expand_builtin): New.
25636 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
25637 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
25638 __ARM_FEATURE_CRC32 when appropriate.
25639 (TARGET_CRC32): Define.
25640 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
25641 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
25642 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
25643 (aarch64_<crc_variant>): New pattern.
25644 * config/aarch64/arm_acle.h: New file.
25645 * config/aarch64/iterators.md (CRC): New int iterator.
25646 (crc_variant, crc_mode): New int attributes.
25647 * doc/aarch64-acle-intrinsics.texi: New file.
25648 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
25649 Include aarch64-acle-intrinsics.texi.
25650
25651 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
25652
25653 * tree-vect-data-refs.c (vect_grouped_store_supported): New
25654 check for stores group of length 3.
25655 (vect_permute_store_chain): New permutations for stores group of
25656 length 3.
25657 * tree-vect-stmts.c (vect_model_store_cost): Change cost
25658 of vec_perm_shuffle for the new permutations.
25659
25660 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
25661
25662 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
25663 table rewriting temporarily on targets not supporting ONE_ONLY.
25664
25665 2014-06-11 Richard Biener <rguenther@suse.de>
25666
25667 PR middle-end/61437
25668 Revert
25669 2014-06-04 Richard Biener <rguenther@suse.de>
25670
25671 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
25672 TREE_PUBLIC and DECL_EXTERNAL decls.
25673
25674 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
25675
25676 * varasm.c (set_implicit_section): New function.
25677 (resolve_unique_section): Use it to set implicit section
25678 for aliases, too.
25679 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
25680 (default_function_section): Likewise.
25681 (decl_binds_to_current_def_p): Constify argument.
25682 * varasm.h (decl_binds_to_current_def_p): Update prototype.
25683 * asan.c (asan_protect_global): Use
25684 symtab_get_node (decl)->implicit_section.
25685 * symtab.c (dump_symtab_base): Dump implicit sections.
25686 (verify_symtab_base): Verify sanity of sectoins and comdats.
25687 (symtab_resolve_alias): Alias share the section of its target.
25688 (set_section_1): New function.
25689 (symtab_node::set_section): Move here, recurse to aliases.
25690 (verify_symtab): Check for duplicated symtab lists.
25691 * tree-core.h (implicit_section_name_p): Remove.
25692 * tree-vect-data-refs.c: Include varasm.h.
25693 (vect_can_force_dr_alignment_p): Fix conditional on when
25694 decl bints to current definition; use
25695 symtab_get_node (decl)->implicit_section.
25696 * cgraph.c (cgraph_make_node_local_1): Fix section set.
25697 * cgraph.h (struct symtab_node): Add implicit_section.
25698 (set_section): Rename to ...
25699 (set_section_for_node): ... this one.
25700 (set_section): Declare.
25701 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
25702 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25703 input_overwrite_node, input_varpool_node): Stream implicit_section.
25704 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
25705 removal; it will fail in LTO.
25706
25707 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25708
25709 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
25710 Change second alternative type to f_mcr.
25711 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
25712 and 12th alternatives' types to f_mcr and f_mrc.
25713 (*movdi_aarch64): Same for 12th and 13th alternatives.
25714 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
25715 (aarch64_movtilow_tilow): Change type to fmov.
25716
25717 2014-06-10 Jiong Wang <jiong.wang@arm.com>
25718
25719 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
25720 (aarch64_save_or_restore_callee_save_registers): Fix layout.
25721
25722 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25723
25724 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
25725 New expander.
25726 (aarch64_sqrdmulh_lane<mode>): Likewise.
25727 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
25728 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
25729 (aarch64_sqdmulh_laneq<mode>): New expander.
25730 (aarch64_sqrdmulh_laneq<mode>): Likewise.
25731 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
25732 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
25733 (aarch64_sqdmulh_lane<mode>): New expander.
25734 (aarch64_sqrdmulh_lane<mode>): Likewise.
25735 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
25736 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
25737 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
25738 (aarch64_sqdmlal_laneq<mode>): Likewise.
25739 (aarch64_sqdmlsl_lane<mode>): Likewise.
25740 (aarch64_sqdmlsl_laneq<mode>): Likewise.
25741 (aarch64_sqdmlal2_lane<mode>): Likewise.
25742 (aarch64_sqdmlal2_laneq<mode>): Likewise.
25743 (aarch64_sqdmlsl2_lane<mode>): Likewise.
25744 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
25745 (aarch64_sqdmull_lane<mode>): Likewise.
25746 (aarch64_sqdmull_laneq<mode>): Likewise.
25747 (aarch64_sqdmull2_lane<mode>): Likewise.
25748 (aarch64_sqdmull2_laneq<mode>): Likewise.
25749
25750 2014-06-10 Richard Biener <rguenther@suse.de>
25751
25752 PR tree-optimization/61438
25753 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
25754 (eliminate_dom_walker::before_dom_children): Only try to inhibit
25755 insertion of IVs if running PRE.
25756 (eliminate): Adjust.
25757 (pass_pre::execute): Likewise.
25758 (pass_fre::execute): Likewise.
25759
25760 2014-06-10 Richard Biener <rguenther@suse.de>
25761
25762 PR middle-end/61456
25763 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25764 Do not use the main variant for the type comparison.
25765 (ncr_compar): Likewise.
25766 (nonoverlapping_component_refs_p): Likewise.
25767
25768 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
25769
25770 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
25771 REG_CFA_RESTORE mode.
25772
25773 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
25774
25775 * config/i386/i386.c (expand_vec_perm_pblendv): New.
25776 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
25777 expand_vec_perm_pblendv.
25778
25779 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25780
25781 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
25782 available.
25783 Simplify description of __crc32d and __crc32cd intrinsics.
25784 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
25785 availability.
25786
25787 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
25788
25789 PR lto/61334
25790 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
25791 * config.in: Regenerate.
25792 * configure: Likewise.
25793
25794 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
25795
25796 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
25797 and public vars.
25798 (intersect_static_var_sets): Remove.
25799 (propagate): Do not prune local statics.
25800
25801 2014-06-10 Jakub Jelinek <jakub@redhat.com>
25802
25803 PR fortran/60928
25804 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
25805 Set lastprivate_firstprivate even if omp_private_outer_ref
25806 langhook returns true.
25807 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
25808 langhook, call unshare_expr on new_var and call
25809 build_outer_var_ref to get the last argument.
25810
25811 2014-06-10 Marek Polacek <polacek@redhat.com>
25812
25813 PR c/60988
25814 * doc/extend.texi: Add cindex for transparent_union.
25815
25816 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
25817
25818 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
25819 init_symbolic_number ().
25820
25821 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
25822
25823 PR middle-end/61141
25824 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
25825 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
25826 (verify_rtl_sharing): Likewise.
25827
25828 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
25829
25830 PR c++/54442
25831 * tree.c (build_qualified_type): Use a canonical type for
25832 TYPE_CANONICAL.
25833
25834 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25835
25836 * config/arm/arm-modes.def: Remove XFmode.
25837
25838 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
25839
25840 PR target/61062
25841 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
25842 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
25843 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
25844 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
25845 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
25846 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
25847 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
25848 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
25849 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
25850
25851 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
25852
25853 * tree-core.h (tree_decl_with_vis): Remove section_name.
25854
25855 2014-06-09 Kito Cheng <kito@0xlab.org>
25856
25857 * ira.c (ira): Don't call init_caller_save if LRA enabled
25858 since LRA use its own infrastructure to handle that.
25859
25860 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
25861
25862 * symtab.c (dump_symtab_base): Update dumping.
25863 (symtab_make_decl_local): Clear only DECL_COMDAT.
25864 * tree-vect-data-refs.c (Check that variable is static before
25865 tampering with sections.
25866 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
25867 (cgraph_create_virtual_clone): Likewise.
25868 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
25869 (decl_section_name, set_decl_section_name): New accessors.
25870 (find_decls_types_r): Do not walk section name
25871 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
25872 (decl_comdat_group, decl_comdat_group_id): Constify.
25873 (decl_section_name, set_decl_section_name): Update.
25874 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
25875 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
25876 (cgraph_make_node_local_1): Clear section and comdat group.
25877 * cgraph.h (set_comdat_group): Sanity check.
25878 (get_section, set_section): New.
25879 * ipa-comdats.c (ipa_comdats): Use get_section.
25880 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
25881 * lto-streamer-out.c: Do not follow section names.
25882 * c-family/c-common.c (handle_section_attribute): Update.
25883 * lto-cgraph.c (lto_output_node): Output section.
25884 (lto_output_varpool_node): Likewise.
25885 (read_comdat_group): Rename to ...
25886 (read_identifier): ... this one.
25887 (read_string_cst): New function.
25888 (input_node, input_varpool_node): Input section names.
25889 * tree-emutls.c (get_emutls_init_templ_addr): Update.
25890 (new_emutls_decl): Update.
25891 (secname_for_decl): Check section names only of static vars.
25892 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
25893 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
25894 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
25895 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
25896 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
25897 * config/mcore/mcore.c (mcore_unique_section): Likewise.
25898 * config/mips/mips.c (mips16_build_function_stub): Likewise.
25899 * config/v850/v850.c (v850_insert_attributes): Likewise.
25900 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
25901 Likewise.
25902 (h8300_handle_tiny_data_attribute): Likewise.
25903 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
25904 (bfin_handle_l2_attribute): Likewise.
25905
25906 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
25907
25908 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
25909 remove static initializer.
25910
25911 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
25912
25913 * varasm.c (use_blocks_for_decl_p): Check symbol table
25914 instead of alias attribute.
25915 (place_block_symbol): Recurse on aliases.
25916
25917 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
25918
25919 * ipa-visibility.c: Include varasm.h
25920 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
25921
25922 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
25923
25924 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
25925 outputting aliases.
25926
25927 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
25928
25929 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
25930 from test_insn into GGC space escape via SET_SRC.
25931
25932 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
25933
25934 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
25935 call statement, if any.
25936 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
25937 statements, if any. Tidy up.
25938
25939 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
25940
25941 PR target/61431
25942 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
25943 iterators, VSX_D that handles 64-bit types, and VSX_LE that
25944 handles swapping the two 64-bit double words on little endian
25945 systems. Include V1TImode and optionally TImode in VSX_LE so that
25946 these types are properly swapped. Change all of the insns and
25947 splits that do the 64-bit swaps to use VSX_LE.
25948 (vsx_le_perm_load_<mode>): Likewise.
25949 (vsx_le_perm_store_<mode>): Likewise.
25950 (splitters for little endian memory operations): Likewise.
25951 (vsx_xxpermdi2_le_<mode>): Likewise.
25952 (vsx_lxvd2x2_le_<mode>): Likewise.
25953 (vsx_stxvd2x2_le_<mode>): Likewise.
25954
25955 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
25956
25957 PR target/61423
25958 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
25959 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
25960 and corresponding splitters. Zero extend general register
25961 or memory input operand to XMM temporary. Enable for
25962 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
25963 (floatunssi<mode>2): Update expander predicate.
25964
25965 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
25966
25967 PR rtl-optimization/61325
25968 * lra-constraints.c (process_address_1): Check scale equal to one
25969 to prevent transformation: base + scale * index => base + new_reg.
25970
25971 2014-06-06 Richard Biener <rguenther@suse.de>
25972
25973 PR tree-optimization/59299
25974 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
25975 a def operand.
25976 (nearest_common_dominator_of_uses): Likewise.
25977 (statement_sink_location): Adjust. Support sinking loads.
25978
25979 2014-06-06 Martin Jambor <mjambor@suse.cz>
25980
25981 * ipa-prop.c (get_place_in_agg_contents_list): New function.
25982 (build_agg_jump_func_from_list): Likewise.
25983 (determine_known_aggregate_parts): Renamed to
25984 determine_locally_known_aggregate_parts. Moved some functionality
25985 to the two functions above, removed bound checks.
25986
25987 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
25988
25989 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
25990 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
25991 (aarch64_progress_pointer): Likewise.
25992 (aarch64_copy_one_part_and_move_pointers): Likewise.
25993 (aarch64_expand_movmen): Likewise.
25994 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
25995 * config/aarch64/aarch64.md (movmem<mode>): New.
25996
25997 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
25998
25999 * targhooks.c (default_add_stmt_cost): Call target specific
26000 hook instead of default one.
26001
26002 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
26003
26004 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
26005 endianness instead of host endianness.
26006 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
26007 comments.
26008
26009 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
26010
26011 PR debug/53927
26012 * function.c (instantiate_decls): Process the saved static chain.
26013 (expand_function_start): If not optimizing, save the static chain
26014 onto the stack.
26015 * tree-nested.c (convert_all_function_calls): Always create the static
26016 chain for nested functions if not optimizing.
26017
26018 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
26019
26020 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
26021
26022 2014-06-06 Richard Biener <rguenther@suse.de>
26023
26024 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
26025 (construct_init_block): Likewise.
26026 (construct_exit_block): Likewise.
26027 (pass_expand::execute): Likewise.
26028 * graphite.c (graphite_transforms): Replace check for current_loops
26029 with a check for > 1 loops.
26030 (pass_graphite_transforms::execute): Adjust.
26031 * ipa-split.c (split_function): Remove check for current_loops.
26032 * omp-low.c (expand_parallel_call): Likewise.
26033 (expand_omp_for_init_counts): Likewise.
26034 (extract_omp_for_update_vars): Likewise.
26035 (expand_omp_for_generic): Likewise.
26036 (expand_omp_sections): Likewise.
26037 (expand_omp_target): Likewise.
26038 * tracer.c (tail_duplicate): Likewise.
26039 (pass_tracer::execute): Likewise.
26040 * trans-mem.c (expand_transaction): Likewise.
26041 * tree-complex.c (expand_complex_div_wide): Likewise.
26042 * tree-eh.c (lower_resx): Likewise.
26043 (cleanup_empty_eh_merge_phis): Likewise.
26044 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
26045 current_loops with a check for > 1 loops.
26046 (pass_predcom::execute): Adjust.
26047 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
26048 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
26049 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
26050 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
26051 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
26052 * tree-switch-conversion.c (process_switch): Likewise.
26053 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
26054 * tree-vrp.c (vrp_visit_phi_node): Likewise.
26055 (execute_vrp): Likewise.
26056 * ubsan.c (ubsan_expand_null_ifn): Likewise.
26057
26058 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
26059
26060 * rtl.h (insn_location): Declare.
26061 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
26062 with UNKNOWN_LOCATION.
26063 * emit-rtl.c (insn_location): New function.
26064 * final.c (notice_source_line): Check that the instruction has a
26065 location before retrieving it and use insn_location.
26066 * modulo-sched.c (loop_single_full_bb_p): Likewise.
26067 * print-rtl.c (print_rtx): Likewise.
26068
26069 2014-06-06 Richard Biener <rguenther@suse.de>
26070
26071 * passes.def: Move 2nd VRP pass before phi-only-cprop.
26072
26073 2014-06-06 Christian Bruel <christian.bruel@st.com>
26074
26075 PR tree-optimization/43934
26076 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
26077 cost.
26078
26079 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
26080
26081 * ira-lives.c (single_reg_class): Add missing break. Explicitly
26082 return NO_REGS for extra address and memory constraints. Handle
26083 operands that match (or are equivalent to something that matches)
26084 extra constant constraints. Ignore other non-register operands.
26085
26086 2014-06-06 Alan Modra <amodra@gmail.com>
26087
26088 PR target/61300
26089 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
26090 * doc/tm.texi: Regenerate.
26091 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
26092 Use throughout in place of REG_PARM_STACK_SPACE.
26093 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
26094 "incoming" param. Pass to rs6000_function_parms_need_stack.
26095 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
26096 prototype_p when incoming. Use function decl when incoming
26097 to handle K&R style functions.
26098 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
26099 (INCOMING_REG_PARM_STACK_SPACE): Define.
26100
26101 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26102
26103 PR target/52472
26104 * cfgexpand.c (expand_debug_expr): Use address space of nested
26105 TREE_TYPE for ADDR_EXPR and MEM_REF.
26106
26107 2014-06-05 Jeff Law <law@redhat.com>
26108
26109 PR tree-optimization/61289
26110 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
26111 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
26112 looking for those which match LHS. All callers changed.
26113 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
26114 parameters and code which manipulated them. All callers changed.
26115 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
26116 and DST_MAP parameters. Simplify invalidation code by just calling
26117 invalidate_equivalences. All callers changed.
26118 (thread_across_edge): Simplify now that we don't need to maintain
26119 the map of equivalences to invalidate.
26120
26121 2014-06-05 Kai Tietz <ktietz@redhat.com>
26122 Richard Henderson <rth@redhat.com>
26123
26124 PR target/46219
26125 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
26126 checking for !TARGET_X32.
26127 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
26128 (sibcall_intern): New define_insn, plus required peepholes.
26129 (sibcall_pop_intern): Likewise.
26130 (sibcall_value_intern): Likewise.
26131 (sibcall_value_pop_intern): Likewise.
26132
26133 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
26134
26135 * tree-inline.c (tree_function_versioning): Check DF info existence
26136 before accessing it.
26137
26138 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
26139
26140 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
26141 frame_size.
26142 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
26143 aarch64_frame hard_fp_offset and frame_size.
26144 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
26145 frame_size; remove original_frame_size.
26146 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
26147 (aarch64_initial_elimination_offset): Remove frame_size and
26148 offset. Use aarch64_frame frame_size.
26149
26150 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
26151 Jiong Wang <jiong.wang@arm.com>
26152 Renlin <renlin.li@arm.com>
26153
26154 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
26155 initialization of R30 offset. Update offset. Iterate core
26156 regisers upto X30. Remove X29, X30 specific code.
26157
26158 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
26159 Jiong Wang <jiong.wang@arm.com>
26160
26161 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
26162 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
26163 (aarch64_register_saved_on_entry): Adjust test.
26164
26165 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
26166
26167 * config/aarch64/aarch64.h (machine_function): Move
26168 saved_varargs_size from here...
26169 (aarch64_frame): ... to here.
26170
26171 * config/aarch64/aarch64.c (aarch64_expand_prologue)
26172 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
26173 (aarch64_initial_elimination_offset)
26174 (aarch64_setup_incoming_varargs): Adjust location of
26175 saved_varargs_size.
26176
26177 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
26178
26179 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
26180 layout comment.
26181
26182 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
26183 Prachi Godbole <Prachi.Godbole@imgtec.com>
26184
26185 * config/mips/mips-cpus.def: Add definition for p5600. Updated
26186 mips32r5 entry to use PROCESSOR_P5600.
26187 * config/mips/mips-tables.opt: Regenerate.
26188 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
26189 * config/mips/mips.c (mips_fmadd_bypass): New function.
26190 (mips_rtx_cost_data): Add costs for p5600.
26191 (mips_issue_rate): Add support for p5600.
26192 (mips_multipass_dfa_lookahead): Likewise.
26193 * config/mips/mips.h (TUNE_P5600): New define.
26194 (TUNE_MACC_CHAINS): Add TUNE_P5600.
26195 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
26196 * config/mips/mips.md: Include p5600.md.
26197 (processor): Add p5600.
26198 * config/mips/p5600.md: New file.
26199
26200 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
26201
26202 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
26203 * config/i386/predicates.md (palignr_operand): New.
26204 Indicates if permutation is suitable for palignr instruction.
26205
26206 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
26207
26208 PR tree-optimization/61319
26209 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
26210 stmt belongs to loop.
26211
26212 2014-06-05 Richard Biener <rguenther@suse.de>
26213
26214 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
26215 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
26216 (lookup_tmp_var): Adjust.
26217 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
26218
26219 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26220
26221 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
26222
26223 2014-06-05 Marek Polacek <polacek@redhat.com>
26224
26225 PR c/49706
26226 * doc/invoke.texi: Document -Wlogical-not-parentheses.
26227
26228 2014-06-04 Tom de Vries <tom@codesourcery.com>
26229
26230 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
26231 CONST_INT.
26232
26233 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
26234
26235 PR tree-optimization/61385
26236 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
26237
26238 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
26239
26240 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
26241 changed to use fatal_error.
26242 (main): Ensure lto_wrapper_cleanup is run atexit.
26243
26244 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
26245
26246 * lra-constraints.c (valid_address_p): Move earlier in file.
26247 (address_eliminator): New structure.
26248 (satisfies_memory_constraint_p): New function.
26249 (satisfies_address_constraint_p): Likewise.
26250 (process_alt_operands, process_address, curr_insn_transform): Use them.
26251
26252 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
26253
26254 * lra-int.h (lra_static_insn_data): Make operand_alternative a
26255 const pointer.
26256 (target_lra_int, default_target_lra_int, this_target_lra_int)
26257 (op_alt_data): Delete.
26258 * lra.h (lra_init): Delete.
26259 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
26260 (init_insn_code_data_once): Remove op_alt_data handling.
26261 (finish_insn_code_data_once): Likewise.
26262 (init_op_alt_data): Delete.
26263 (get_static_insn_data): Initialize operand_alternative to null.
26264 (free_insn_recog_data): Cast operand_alternative before freeing it.
26265 (setup_operand_alternative): Take the operand_alternative as
26266 parameter and assume it isn't already cached in the static
26267 insn data.
26268 (lra_set_insn_recog_data): Update accordingly.
26269 (lra_init): Delete.
26270 * ira.c (ira_init): Don't call lra_init.
26271 * target-globals.h (this_target_lra_int): Declare.
26272 (target_globals): Remove lra_int.
26273 (restore_target_globals): Update accordingly.
26274 * target-globals.c: Don't include lra-int.h.
26275 (default_target_globals, save_target_globals): Remove lra_int.
26276
26277 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
26278
26279 * recog.h (operand_alternative): Convert reg_class, reject,
26280 matched and matches into bitfields.
26281 (preprocess_constraints): New overload.
26282 (preprocess_insn_constraints): New function.
26283 (preprocess_constraints): Take the insn as parameter.
26284 (recog_op_alt): Change into a pointer.
26285 (target_recog): Add x_op_alt.
26286 * recog.c (asm_op_alt): New variable.
26287 (recog_op_alt): Change into a pointer.
26288 (preprocess_constraints): New overload, replacing the old function
26289 definition with one that doesn't use global state.
26290 (preprocess_insn_constraints): New function.
26291 (preprocess_constraints): Use them. Take the insn as parameter.
26292 Use asm_op_alt for asms.
26293 (recog_init): Free existing x_op_alt entries.
26294 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
26295 pointer const.
26296 (make_early_clobber_and_input_conflicts): Likewise.
26297 (process_bb_node_lives): Pass the insn to process_constraints.
26298 * reg-stack.c (check_asm_stack_operands): Likewise.
26299 (subst_asm_stack_regs): Likewise.
26300 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
26301 * regrename.c (build_def_use): Likewise.
26302 * sched-deps.c (sched_analyze_insn): Likewise.
26303 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
26304 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
26305 (note_invalid_constants): Likewise.
26306 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
26307 (ix86_legitimate_combined_insn): Make operand_alternative pointer
26308 const.
26309
26310 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
26311
26312 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
26313 * ira-lives.c (check_and_make_def_conflict): Check for disabled
26314 alternatives.
26315 (make_early_clobber_and_input_conflicts): Likewise.
26316 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
26317
26318 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
26319
26320 * recog.h (alternative_class): New function.
26321 (which_op_alt): Return a const recog_op_alt.
26322 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
26323 (subst_asm_stack_regs): Likewise.
26324 * config/arm/arm.c (note_invalid_constants): Likewise.
26325 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
26326 the operand_alternative; use alternative class instead.
26327 * sel-sched.c (get_reg_class): Likewise.
26328 * regrename.c (build_def_use): Likewise.
26329 (hide_operands, restore_operands, record_out_operands): Update type
26330 accordingly.
26331
26332 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
26333
26334 * recog.h (recog_op_alt): Convert to a flat array.
26335 (which_op_alt): New function.
26336 * recog.c (recog_op_alt): Convert to a flat array.
26337 (preprocess_constraints): Update accordingly, grouping all
26338 operands of the same alternative together, rather than the
26339 other way around.
26340 * ira-lives.c (check_and_make_def_conflict): Likewise.
26341 (make_early_clobber_and_input_conflicts): Likewise.
26342 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
26343 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
26344 (subst_asm_stack_regs): Likewise.
26345 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
26346 * regrename.c (hide_operands, record_out_operands): Likewise.
26347 (build_def_use): Likewise.
26348 * sel-sched.c (get_reg_class): Likewise.
26349 * config/arm/arm.c (note_invalid_constants): Likewise.
26350
26351 2014-06-04 Jason Merrill <jason@redhat.com>
26352
26353 PR c++/51253
26354 PR c++/61382
26355 * gimplify.c (gimplify_arg): Non-static.
26356 * gimplify.h: Declare it.
26357
26358 2014-06-04 Richard Biener <rguenther@suse.de>
26359
26360 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
26361 TREE_PUBLIC and DECL_EXTERNAL decls.
26362
26363 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
26364
26365 * regcprop.c (copyprop_hardreg_forward_1): Account for
26366 HARD_REGNO_CALL_PART_CLOBBERED.
26367
26368 2014-06-04 Richard Biener <rguenther@suse.de>
26369
26370 * configure.ac: Check whether the underlying type of int64_t
26371 is long or long long.
26372 * configure: Regenerate.
26373 * config.in: Likewise.
26374 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
26375 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
26376
26377 2014-06-04 Richard Biener <rguenther@suse.de>
26378
26379 PR tree-optimization/60098
26380 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
26381 we hit a kill.
26382 (dse_optimize_stmt): Simplify, now that we found a kill
26383 earlier.
26384
26385 2014-06-04 Richard Biener <rguenther@suse.de>
26386
26387 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
26388 of accesses with non-invariant address.
26389
26390 2014-06-04 Martin Liska <mliska@suse.cz>
26391
26392 * cgraph.h (cgraph_make_wrapper): New function introduced.
26393 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
26394 * ipa-inline.h (inline_analyze_function): The function is global.
26395 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
26396
26397 2014-06-04 Martin Liska <mliska@suse.cz>
26398
26399 * tree.h (private_lookup_attribute_starting): New function.
26400 (lookup_attribute_starting): Likewise.
26401 * tree.c (private_lookup_attribute_starting): Likewise.
26402
26403 2014-06-04 Martin Liska <mliska@suse.cz>
26404
26405 * cgraph.h (expand_thunk): New argument added.
26406 (address_taken_from_non_vtable_p): New global function.
26407 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
26408 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
26409 * cgraphunit.c (analyze_function): Likewise.
26410 (assemble_thunks_and_aliases): Argument added to call.
26411 (expand_thunk): New argument forces to produce GIMPLE thunk.
26412
26413 2014-06-04 Martin Liska <mliska@suse.cz>
26414
26415 * coverage.h (coverage_compute_cfg_checksum): Argument added.
26416 * coverage.c (coverage_compute_cfg_checksum): Likewise.
26417 * profile.c (branch_prob): Likewise.
26418
26419 2014-06-04 Martin Jambor <mjambor@suse.cz>
26420
26421 PR ipa/61340
26422 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
26423 handler for switch on an ipa_ref_use enum.
26424 * ipa-reference.c (analyze_function): Likewise.
26425
26426 2014-06-04 Kai Tietz <ktietz@redhat.com>
26427
26428 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
26429 from old call-instruction.
26430
26431 2014-06-04 Bin Cheng <bin.cheng@arm.com>
26432
26433 * config/aarch64/aarch64.c (aarch64_classify_address)
26434 (aarch64_legitimize_reload_address): Support full addressing modes
26435 for vector modes.
26436 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
26437 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
26438
26439 2014-06-03 Andrew Pinski <apinski@cavium.com>
26440
26441 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
26442 for OP0.
26443
26444 2014-06-03 Andrew Pinski <apinski@cavium.com>
26445
26446 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
26447 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
26448
26449 2014-06-03 Kai Tietz <ktietz@redhat.com>
26450
26451 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
26452 for 64-bit ms-abi.
26453
26454 2014-06-03 Dehao Chen <dehao@google.com>
26455
26456 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
26457 the same loop.
26458
26459 2014-06-03 Marek Polacek <polacek@redhat.com>
26460
26461 PR c/60439
26462 * doc/invoke.texi: Document -Wswitch-bool.
26463 * function.c (stack_protect_epilogue): Cast controlling expression of
26464 the switch to int.
26465 * gengtype.c (walk_type): Generate switch expression with its
26466 controlling expression cast to int.
26467
26468 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
26469
26470 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
26471 and attiny841.
26472 * config/avr/avr-tables.opt: Regenerate.
26473 * config/avr/t-multilib: Regenerate.
26474 * doc/avr-mmcu.texi: Regenerate.
26475
26476 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
26477 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26478
26479 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
26480 (ata6617c, ata664251): Add new avr35 devices.
26481 (ata6612c): Add new avr4 device.
26482 (ata6613c, ata6614q): Add new avr5 devices.
26483 * config/avr/avr-tables.opt: Regenerate.
26484 * config/avr/t-multilib: Regenerate.
26485 * doc/avr-mmcu.texi: Regenerate.
26486
26487 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
26488
26489 * gcc/config/aarch64/aarch64-builtins.c
26490 (aarch64_types_binop_ssu_qualifiers): New static data.
26491 (TYPES_BINOP_SSU): Define.
26492 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
26493 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
26494 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
26495 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
26496 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
26497 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
26498 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
26499 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
26500 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
26501 suffix to builtin function name, remove cast.
26502 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
26503 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
26504 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
26505
26506 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
26507
26508 * gcc/config/aarch64/aarch64-builtins.c
26509 (aarch64_types_binop_uus_qualifiers,
26510 aarch64_types_shift_to_unsigned_qualifiers,
26511 aarch64_types_unsigned_shiftacc_qualifiers): Define.
26512 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
26513 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
26514 sqshlu_n, uqshl_n): Update qualifiers.
26515 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
26516 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
26517 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
26518 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
26519 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
26520 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
26521 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
26522 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
26523 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
26524 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
26525 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
26526 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
26527 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
26528 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
26529 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
26530 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
26531 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
26532 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
26533 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
26534 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
26535 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
26536 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
26537 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
26538 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
26539 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
26540 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
26541 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
26542
26543 2014-06-03 Teresa Johnson <tejohnson@google.com>
26544
26545 * tree-sra.c (modify_function): Record caller nodes after rebuild.
26546
26547 2014-06-02 Jason Merrill <jason@redhat.com>
26548
26549 PR c++/61020
26550 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
26551
26552 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
26553
26554 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
26555 location == 0.
26556
26557 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
26558
26559 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
26560 New pattern.
26561 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
26562 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
26563 * config/aarch64/iterators.md (REVERSE): New iterator.
26564 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
26565 (rev_op): New int_attribute.
26566 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
26567 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
26568 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
26569 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
26570 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
26571 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
26572 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
26573 Replace temporary __asm__ with __builtin_shuffle.
26574
26575 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
26576
26577 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
26578 mips64r5.
26579 * config/mips/mips-tables.opt: Regenerate.
26580 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
26581 to use mips_isa_rev rather than ISA_MIPS32R2.
26582 * config/mips/mips.h (ISA_MIPS32R3): New define.
26583 (ISA_MIPS32R5): New define.
26584 (ISA_MIPS64R3): New define.
26585 (ISA_MIPS64R5): New define.
26586 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
26587 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
26588 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
26589 and mips64r5.
26590 (MIPS_ISA_SYNCI_SPEC): Likewise.
26591 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
26592 (LINK_SPEC): Added mips32r3 and mips32r5.
26593 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
26594 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
26595 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
26596 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
26597 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
26598 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
26599 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
26600
26601 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
26602
26603 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
26604 options.
26605 * config/mips/mips.opt (mxpa): New option.
26606 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
26607 assembler.
26608
26609 2014-06-03 Martin Jambor <mjambor@suse.cz>
26610
26611 PR ipa/61160
26612 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
26613 thunks.
26614
26615 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
26616
26617 PR tree-optimization/61328
26618 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
26619 initialization from find_bswap_or_nop_1.
26620 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
26621 in source_expr2 before using the size value the function sets. Also
26622 make use of init_symbolic_number () in both the old place and
26623 find_bswap_or_nop_load () to avoid reading uninitialized memory when
26624 doing recursion in the GIMPLE_BINARY_RHS case.
26625
26626 2014-06-03 Richard Biener <rguenther@suse.de>
26627
26628 PR tree-optimization/61383
26629 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
26630 stmts can't trap.
26631
26632 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
26633
26634 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
26635 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
26636 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
26637 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
26638 in this file.
26639 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
26640 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
26641 * system.h: ...here and make it unconditional.
26642 * target.def (conditional_register_usage): Mention
26643 define_register_constraint instead of old-style constraint macros.
26644 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
26645 * doc/tm.texi: Regenerate.
26646 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
26647 protected by !USE_MD_CONSTRAINTS.
26648 * config/frv/frv.md: Remove quote from old version of documentation.
26649 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
26650 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
26651 CONST_DOUBLE_OK_FOR_LETTER.
26652 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
26653
26654 2014-06-02 Andrew Pinski <apinski@cavium.com>
26655
26656 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
26657 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
26658 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
26659 file whose name depends on -mabi= and -mbig-endian.
26660 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
26661 Handle LP64 better and handle ilp32 too.
26662 (MULTILIB_OPTIONS): Delete.
26663 (MULTILIB_DIRNAMES): Delete.
26664
26665 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
26666
26667 * expr.h: Remove prototypes of functions defined in builtins.c.
26668 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
26669 Remove prototypes of functions defined in builtins.c.
26670 * builtins.h: Update prototype list to include all exported functions.
26671 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
26672 no_c99_libc_has_function): Move to targhooks.c
26673 (build_string_literal, build_call_expr_loc_array,
26674 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
26675 to tree.c.
26676 (expand_builtin_object_size, fold_builtin_object_size): Make static.
26677 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
26678 no_c99_libc_has_function): Relocate from builtins.c.
26679 * tree.c: Include builtins.h.
26680 (build_call_expr_loc_array, build_call_expr_loc_vec,
26681 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
26682 from builtins.c.
26683 * fold-const.h (fold_fma): Move prototype to builtins.h.
26684 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
26685 * asan.c: Include builtins.h.
26686 * cfgexpand.c: Likewise.
26687 * convert.c: Likewise.
26688 * emit-rtl.c: Likewise.
26689 * except.c: Likewise.
26690 * expr.c: Likewise.
26691 * fold-const.c: Likewise.
26692 * gimple-fold.c: Likewise.
26693 * gimple-ssa-strength-reduction.c: Likewise.
26694 * gimplify.c: Likewise.
26695 * ipa-inline.c: Likewise.
26696 * ipa-prop.c: Likewise.
26697 * lto-streamer-out.c: Likewise.
26698 * stmt.c: Likewise.
26699 * tree-inline.c: Likewise.
26700 * tree-object-size.c: Likewise.
26701 * tree-sra.c: Likewise.
26702 * tree-ssa-ccp.c: Likewise.
26703 * tree-ssa-forwprop.c: Likewise.
26704 * tree-ssa-loop-ivcanon.c: Likewise.
26705 * tree-ssa-loop-ivopts.c: Likewise.
26706 * tree-ssa-math-opts.c: Likewise.
26707 * tree-ssa-reassoc.c: Likewise.
26708 * tree-ssa-threadedge.c: Likewise.
26709 * tree-streamer-in.c: Likewise.
26710 * tree-vect-data-refs.c: Likewise.
26711 * tree-vect-patterns.c: Likewise.
26712 * tree-vect-stmts.c: Likewise.
26713 * config/aarch64/aarch64.c: Likewise.
26714 * config/alpha/alpha.c: Likewise.
26715 * config/arc/arc.c: Likewise.
26716 * config/arm/arm.c: Likewise.
26717 * config/avr/avr.c: Likewise.
26718 * config/bfin/bfin.c: Likewise.
26719 * config/c6x/c6x.c: Likewise.
26720 * config/cr16/cr16.c: Likewise.
26721 * config/cris/cris.c: Likewise.
26722 * config/epiphany/epiphany.c: Likewise.
26723 * config/fr30/fr30.c: Likewise.
26724 * config/frv/frv.c: Likewise.
26725 * config/h8300/h8300.c: Likewise.
26726 * config/i386/i386.c: Likewise.
26727 * config/i386/winnt.c: Likewise.
26728 * config/ia64/ia64.c: Likewise.
26729 * config/iq2000/iq2000.c: Likewise.
26730 * config/lm32/lm32.c: Likewise.
26731 * config/m32c/m32c.c: Likewise.
26732 * config/m32r/m32r.c: Likewise.
26733 * config/m68k/m68k.c: Likewise.
26734 * config/mcore/mcore.c: Likewise.
26735 * config/mep/mep.c: Likewise.
26736 * config/microblaze/microblaze.c: Likewise.
26737 * config/mips/mips.c: Likewise.
26738 * config/mmix/mmix.c: Likewise.
26739 * config/mn10300/mn10300.c: Likewise.
26740 * config/moxie/moxie.c: Likewise.
26741 * config/msp430/msp430.c: Likewise.
26742 * config/nds32/nds32.c: Likewise.
26743 * config/pa/pa.c: Likewise.
26744 * config/pdp11/pdp11.c: Likewise.
26745 * config/picochip/picochip.c: Likewise.
26746 * config/rl78/rl78.c: Likewise.
26747 * config/rs6000/rs6000.c: Likewise.
26748 * config/rx/rx.c: Likewise.
26749 * config/s390/s390.c: Likewise.
26750 * config/score/score.c: Likewise.
26751 * config/sh/sh.c: Likewise.
26752 * config/sparc/sparc.c: Likewise.
26753 * config/spu/spu.c: Likewise.
26754 * config/stormy16/stormy16.c: Likewise.
26755 * config/tilegx/tilegx.c: Likewise.
26756 * config/tilepro/tilepro.c: Likewise.
26757 * config/v850/v850.c: Likewise.
26758 * config/vax/vax.c: Likewise.
26759 * config/xtensa/xtensa.c: Likewise.
26760
26761 2014-06-02 Jeff Law <law@redhat.com>
26762
26763 PR rtl-optimization/61094
26764 * ree.c (combine_reaching_defs): Do not reextend an insn if it
26765 was marked as do_no_reextend. If a copy is needed to eliminate
26766 an extension, then mark it as do_not_reextend.
26767
26768 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
26769
26770 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
26771
26772 2014-06-02 Richard Henderson <rth@redhat.com>
26773
26774 PR target/61336
26775 * config/alpha/alpha.c (print_operand_address): Allow symbolic
26776 addresses inside asms. Use output_operand_lossage instead of
26777 gcc_unreachable.
26778
26779 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
26780
26781 PR target/61239
26782 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
26783 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
26784
26785 2014-06-02 Tom de Vries <tom@codesourcery.com>
26786
26787 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
26788 case that x has VOIDmode.
26789
26790 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
26791
26792 * varasm.c (copy_constant): Delete function.
26793 (build_constant_desc): Don't call it.
26794
26795 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26796
26797 PR target/61154
26798 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
26799 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
26800 with immediate_operand.
26801
26802 2014-06-02 Andreas Schwab <schwab@suse.de>
26803
26804 * config/ia64/ia64.c
26805 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
26806 pending_data_specs first.
26807
26808 2014-06-02 Richard Biener <rguenther@suse.de>
26809
26810 PR tree-optimization/61378
26811 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
26812 valueized_anything.
26813
26814 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
26815
26816 * config/i386/constraints.md (Bw): Rename from 'w'.
26817 (Bz): Rename from 'z'.
26818 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
26819
26820 2014-06-01 Kai Tietz <ktietz@redhat.com>
26821
26822 PR target/61377
26823 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
26824 * config/i386/i386.md (sibcall_insn_operand): Use Bs
26825 instead of m constraint.
26826
26827 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
26828
26829 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
26830 a separate alternative where the scratch operand 2 is marked as
26831 early clobber.
26832
26833 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
26834
26835 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
26836 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
26837 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
26838 and __builtins_arm_get_fpscr.
26839 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
26840 __builtins_arm_get_fpscr.
26841 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
26842 __builtins_arm_ldfpscr.
26843 (arm_atomic_assign_expand_fenv): New function.
26844 * config/arm/vfp.md (set_fpscr): New pattern.
26845 (get_fpscr) : Likewise.
26846 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
26847 VUNSPEC_SET_FPSCR.
26848 * doc/extend.texi (AARCH64 Built-in Functions) : Document
26849 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
26850
26851 2014-05-30 Jakub Jelinek <jakub@redhat.com>
26852
26853 * asan.c (report_error_func): Add SLOW_P argument, use
26854 BUILT_IN_ASAN_*_N if set.
26855 (build_check_stmt): Likewise.
26856 (instrument_derefs): If T has insufficient alignment,
26857 force same handling as for odd sizes.
26858
26859 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
26860 BUILT_IN_ASAN_REPORT_STORE_N): New.
26861 * asan.c (struct asan_mem_ref): Change access_size type to
26862 HOST_WIDE_INT.
26863 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
26864 update_mem_ref_hash_table): Likewise.
26865 (asan_mem_ref_hasher::hash): Hash in a HWI.
26866 (report_error_func): Change size_in_bytes argument to HWI.
26867 Use *_N builtins if size_in_bytes is larger than 16 or not power of
26868 two.
26869 (build_shadow_mem_access): New function.
26870 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
26871 Handle size_in_bytes not power of two or larger than 16.
26872 (instrument_derefs): Don't give up if size_in_bytes is not
26873 power of two or is larger than 16.
26874
26875 2014-05-30 Kai Tietz <ktietz@redhat.com>
26876
26877 PR target/60104
26878 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
26879 for sibling-tail-calls.
26880 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
26881 to its use.
26882 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
26883 (sibcall_insn_operand): Add check for sibcall_memory_operand.
26884
26885 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26886
26887 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
26888 * config/avr/avr-tables.opt: Regenerate.
26889 * config/avr/t-multilib: Regenerate.
26890 * doc/avr-mmcu.texi: Regenerate.
26891
26892 2014-05-30 Ian Lance Taylor <iant@google.com>
26893
26894 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
26895 target("sse").
26896
26897 2014-05-30 Tom de Vries <tom@codesourcery.com>
26898
26899 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
26900 Redefine as true.
26901
26902 2014-05-30 Tom de Vries <tom@codesourcery.com>
26903
26904 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
26905 * lra.c (initialize_lra_reg_info_element): Add init of
26906 actual_call_used_reg_set field.
26907 (lra): Call lra_create_live_ranges before lra_inheritance for
26908 -fuse-caller-save.
26909 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
26910 -fuse-caller-save.
26911 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
26912 instead of call_used_reg_set for -fuse-caller-save.
26913 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
26914
26915 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26916
26917 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
26918 to mov_imm.
26919 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
26920
26921 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
26922
26923 * ira.c (ira_get_dup_out_num): Check for output operands at
26924 the start of the loop. Handle cases where an included alternative
26925 follows an excluded one.
26926
26927 2014-05-29 Mike Stump <mikestump@comcast.net>
26928
26929 PR debug/61352
26930 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
26931 post ld passes when lto is used.
26932
26933 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
26934
26935 PR rtl-optimization/61325
26936 * lra-constraints.c (process_address): Rename to process_address_1.
26937 (process_address): New function.
26938
26939 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
26940
26941 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
26942 TYPES_BINOPV): New static data.
26943 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
26944 New builtin.
26945 * config/aarch64/aarch64-simd.md (aarch64_ext,
26946 aarch64_im_lane_boundsi): New patterns.
26947 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
26948 patterns for EXT.
26949 (aarch64_evpc_ext): New function.
26950
26951 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
26952
26953 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
26954 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
26955 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
26956 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
26957 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
26958
26959 2014-05-29 Tom de Vries <tom@codesourcery.com>
26960
26961 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
26962
26963 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
26964 Richard Sandiford <rdsandiford@googlemail.com>
26965
26966 * arm/iterators.md (shiftable_ops): New code iterator.
26967 (t2_binop0, arith_shift_insn): New code attributes.
26968 * arm/predicates.md (shift_nomul_operator): New predicate.
26969 * arm/arm.md (insn_enabled): Delete.
26970 (enabled): Remove insn_enabled test.
26971 (*arith_shiftsi): Delete. Replace with ...
26972 (*<arith_shift_insn>_multsi): ... new pattern.
26973 (*<arith_shift_insn>_shiftsi): ... new pattern.
26974 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
26975
26976 2014-05-29 Radovan Obradovic <robradovic@mips.com>
26977 Tom de Vries <tom@codesourcery.com>
26978
26979 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
26980 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
26981 clobber.
26982 (mips_split_call): Use POST_CALL_TMP_REG.
26983 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
26984
26985 2014-05-29 Tom de Vries <tom@codesourcery.com>
26986
26987 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
26988 with #ifdef STACK_REGS.
26989
26990 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
26991
26992 * varasm.c (get_variable_section): Walk aliases.
26993 (place_block_symbol): Walk aliases.
26994
26995 2014-05-28 Tom de Vries <tom@codesourcery.com>
26996
26997 Revert:
26998 2014-05-28 Tom de Vries <tom@codesourcery.com>
26999
27000 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
27001 * lra.c (initialize_lra_reg_info_element): Add init of
27002 actual_call_used_reg_set field.
27003 (lra): Call lra_create_live_ranges before lra_inheritance for
27004 -fuse-caller-save.
27005 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
27006 -fuse-caller-save.
27007 * lra-constraints.c (need_for_call_save_p): Use
27008 actual_call_used_reg_set instead of call_used_reg_set for
27009 -fuse-caller-save.
27010 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
27011
27012 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
27013
27014 * doc/md.texi: Document that the % constraint character must
27015 be at the beginning of the string.
27016 * genoutput.c (validate_insn_alternatives): Check that '=',
27017 '+' and '%' only appear at the beginning of a constraint.
27018 * ira.c (commutative_constraint_p): Delete.
27019 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
27020 at the start of the string.
27021 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
27022 duplicate '='s.
27023 * config/arm/neon.md (bicdi3_neon): Likewise.
27024 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
27025 (slt_si, sltu_si): Likewise.
27026 * config/vax/vax.md (sbcdi3): Likewise.
27027 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
27028 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
27029 (mul64): Move '%' to beginning of constraint.
27030 * config/arm/arm.md (*xordi3_insn): Likewise.
27031 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
27032 (xorsi3): Likewise.
27033
27034 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
27035
27036 * doc/md.texi: Document the restrictions on the "enabled" attribute.
27037
27038 2014-05-28 Jason Merrill <jason@redhat.com>
27039
27040 PR c++/47202
27041 * cgraph.h (symtab_node::get_comdat_group_id): New.
27042 * cgraphunit.c (analyze_functions): Call it.
27043 * symtab.c (dump_symtab_node): Likewise.
27044 * tree.c (decl_comdat_group_id): New.
27045 * tree.h: Declare it.
27046 * lto-streamer-out.c (write_symbol): Use it.
27047 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
27048
27049 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
27050
27051 PR bootstrap/PR61146
27052 * wide-int.cc: Do not include longlong.h when compiling with clang.
27053
27054 2014-05-28 Richard Biener <rguenther@suse.de>
27055
27056 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
27057 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
27058 (vrp_visit_assignment_or_call): Print less vertical space.
27059 (vrp_visit_stmt): Likewise.
27060 (vrp_visit_phi_node): Likewise. For a PHI argument with
27061 VR_VARYING range consider recording it as copy.
27062
27063 2014-05-28 Richard Biener <rguenther@suse.de>
27064
27065 Revert
27066 2014-05-28 Richard Biener <rguenther@suse.de>
27067
27068 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
27069
27070 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
27071
27072 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
27073 sufficiently aligned and an offset is used at the same time.
27074 (expand_expr_real_1): Likewise.
27075
27076 2014-05-28 Richard Biener <rguenther@suse.de>
27077
27078 PR middle-end/61045
27079 * fold-const.c (fold_comparison): When folding
27080 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
27081 the sign of the remaining constant operand stays the same.
27082
27083 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
27084
27085 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
27086 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
27087 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
27088 to the assembler.
27089 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
27090 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
27091 (m32bit-doubles) Likewise.
27092 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
27093 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
27094 option for RL78.
27095
27096 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27097
27098 * configure.ac ($gcc_cv_ld_clearcap): New test.
27099 * configure: Regenerate.
27100 * config.in: Regenerate.
27101 * config/sol2.opt (mclear-hwcap): New option.
27102 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
27103 * config/sol2-clearcap.map: Moved here from
27104 testsuite/gcc.target/i386/clearcap.map.
27105 * config/sol2-clearcapv2.map: Move here from
27106 gcc.target/i386/clearcapv2.map.
27107 * config/t-sol2 (install): Depend on install-clearcap-map.
27108 (install-clearcap-map): New target.
27109 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
27110 -mclear-hwcap.
27111
27112 2014-05-28 Richard Biener <rguenther@suse.de>
27113
27114 * hwint.h (*_HALF_WIDE_INT*): Move to ...
27115 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
27116 ... here and remove the rest.
27117 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
27118
27119 2014-05-28 Richard Biener <rguenther@suse.de>
27120
27121 PR tree-optimization/61335
27122 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
27123 new range fails, drop to varying.
27124
27125 2014-05-28 Olivier Hainque <hainque@adacore.com>
27126
27127 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
27128 (CPP_SPEC): Add entry for -mcpu=8548.
27129 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
27130 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
27131
27132 2014-05-28 Tom de Vries <tom@codesourcery.com>
27133
27134 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
27135 * lra.c (initialize_lra_reg_info_element): Add init of
27136 actual_call_used_reg_set field.
27137 (lra): Call lra_create_live_ranges before lra_inheritance for
27138 -fuse-caller-save.
27139 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
27140 -fuse-caller-save.
27141 * lra-constraints.c (need_for_call_save_p): Use
27142 actual_call_used_reg_set instead of call_used_reg_set for
27143 -fuse-caller-save.
27144 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
27145
27146 2014-05-28 Radovan Obradovic <robradovic@mips.com>
27147 Tom de Vries <tom@codesourcery.com>
27148
27149 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
27150 to gccoptlist.
27151 (@item -fuse-caller-save): New item.
27152
27153 2014-05-28 Radovan Obradovic <robradovic@mips.com>
27154 Tom de Vries <tom@codesourcery.com>
27155
27156 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
27157 OPT_fuse_caller_save.
27158
27159 2014-05-28 Radovan Obradovic <robradovic@mips.com>
27160 Tom de Vries <tom@codesourcery.com>
27161
27162 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
27163 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
27164 get_call_reg_set_usage.
27165 * resource.c (mark_set_resources, mark_target_live_regs): Use
27166 get_call_reg_set_usage.
27167 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
27168 field.
27169 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
27170 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
27171 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
27172 * ira-build.c (ira_create_allocno): Init
27173 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
27174 (create_cap_allocno, propagate_allocno_info)
27175 (propagate_some_info_from_allocno)
27176 (copy_info_to_removed_store_destinations): Handle
27177 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
27178 * ira-costs.c (ira_tune_allocno_costs): Use
27179 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
27180
27181 2014-05-28 Radovan Obradovic <robradovic@mips.com>
27182 Tom de Vries <tom@codesourcery.com>
27183
27184 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
27185 and function_used_regs_valid fields.
27186 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
27187 find_all_hard_reg_sets.
27188 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
27189 (get_call_reg_set_usage): New function.
27190 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
27191 * regs.h (get_call_reg_set_usage): Declare.
27192
27193 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
27194
27195 PR libgcc/61152
27196 * config/dbx.h (License): Add Runtime Library Exception.
27197 * config/newlib-stdint.h (License): Same.
27198 * config/rtems.h (License): Same
27199 * config/initfini-array.h (License): Same
27200 * config/v850/v850.h (License): Same.
27201 * config/v850/v850-opts.h (License): Same
27202 * config/v850/rtems.h (License): Same.
27203
27204 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
27205
27206 PR target/61044
27207 * doc/extend.texi (Local Labels): Note that label differences are
27208 not supported for AVR.
27209
27210 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
27211 Olivier Hainque <hainque@adacore.com>
27212
27213 * rtl.h (set_for_reg_notes): Declare.
27214 * emit-rtl.c (set_for_reg_notes): New function.
27215 (set_unique_reg_note): Use it.
27216 * optabs.c (add_equal_note): Likewise
27217
27218 2014-05-27 Andrew Pinski <apinski@cavium.com>
27219
27220 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
27221 Use <w> for the register in assembly template.
27222 (stack_protect_test): Use the mode of operands[0] for the result.
27223 (stack_protect_test_<mode>): Use <w> for the register
27224 in assembly template.
27225
27226 2014-05-27 DJ Delorie <dj@redhat.com>
27227
27228 * config/rx/rx.c (add_vector_labels): New.
27229 (rx_output_function_prologue): Call it.
27230 (rx_handle_func_attribute): Don't require empty arguments.
27231 (rx_handle_vector_attribute): New.
27232 (rx_attribute_table): Add "vector" attribute.
27233 * doc/extend.texi (interrupt, vector): Document new/changed
27234 RX-specific attributes.
27235
27236 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
27237
27238 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
27239
27240 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
27241 predicate to detect a negative quotient.
27242
27243 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
27244
27245 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
27246 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
27247 Add X - Y CMP 0 to X CMP Y transformation.
27248 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
27249
27250 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
27251
27252 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
27253 before printing.
27254
27255 2014-05-27 Steve Ellcey <sellcey@mips.com>
27256
27257 * config/mips/mips.c: Add include of cgraph.h.
27258
27259 2014-05-27 Richard Biener <rguenther@suse.de>
27260
27261 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
27262
27263 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
27264
27265 PR libgcc/61152
27266 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
27267 * config/arm/arm-cores.def (License): Same.
27268 * config/arm/arm-opts.h (License): Same.
27269 * config/arm/aout.h (License): Same.
27270 * config/arm/bpabi.h (License): Same.
27271 * config/arm/elf.h (License): Same.
27272 * config/arm/linux-elf.h (License): Same.
27273 * config/arm/linux-gas.h (License): Same.
27274 * config/arm/netbsd-elf.h (License): Same.
27275 * config/arm/uclinux-eabi.h (License): Same.
27276 * config/arm/uclinux-elf.h (License): Same.
27277 * config/arm/vxworks.h (License): Same.
27278
27279 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27280
27281 * config/arm/neon.md (neon_bswap<mode>): New pattern.
27282 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
27283 (arm_init_neon_builtins): Handle NEON_BSWAP.
27284 Define required type nodes.
27285 (arm_expand_neon_builtin): Handle NEON_BSWAP.
27286 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
27287 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
27288 * config/arm/iterators.md (VDQHSD): New mode iterator.
27289
27290 2014-05-27 Richard Biener <rguenther@suse.de>
27291
27292 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
27293 Try using literal operands when comparing value-ranges failed.
27294
27295 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
27296
27297 * ira.c (commutative_operand): Adjust for change to recog_data.
27298 [Missing from previous commit.]
27299
27300 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
27301
27302 * system.h (TEST_BIT): New macro.
27303 * recog.h (alternative_mask): New type.
27304 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
27305 (recog_data_d): Replace alternative_enabled_p array with
27306 enabled_alternatives.
27307 (target_recog): New structure.
27308 (default_target_recog, this_target_recog): Declare.
27309 (get_enabled_alternatives, recog_init): Likewise.
27310 * recog.c (default_target_recog, this_target_recog): New variables.
27311 (get_enabled_alternatives): New function.
27312 (extract_insn): Use it.
27313 (recog_init): New function.
27314 (preprocess_constraints, constrain_operands): Adjust for change to
27315 recog_data.
27316 * postreload.c (reload_cse_simplify_operands): Likewise.
27317 * reload.c (find_reloads): Likewise.
27318 * ira-costs.c (record_reg_classes): Likewise.
27319 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
27320 all alternatives after a disabled one would be skipped.
27321 (ira_implicitly_set_insn_hard_regs): Likewise.
27322 * ira.c (ira_setup_alts): Adjust for change to recog_data.
27323 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
27324 with enabled_alternatives.
27325 * lra.c (free_insn_recog_data): Update accordingly.
27326 (lra_update_insn_recog_data): Likewise.
27327 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
27328 * lra-constraints.c (process_alt_operands): Likewise. Handle
27329 only_alternative as part of the enabled mask.
27330 * target-globals.h (this_target_recog): Declare.
27331 (target_globals): Add a recog field.
27332 (restore_target_globals): Restore this_target_recog.
27333 * target-globals.c: Include recog.h.
27334 (default_target_globals): Initialize recog field.
27335 (save_target_globals): Likewise.
27336 * reginfo.c (reinit_regs): Call recog_init.
27337 * toplev.c (backend_init_target): Likewise.
27338
27339 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
27340
27341 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
27342 rather than any named insn's code.
27343
27344 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
27345
27346 PR libgcc/61152
27347 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
27348 * config/arm/arm-cores.def (License): Same.
27349
27350 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
27351
27352 * tree.h (decl_comdat_group): Declare.
27353 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
27354 * tree.c (decl_comdat_group): Here.
27355
27356 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
27357
27358 PR rtl-optimization/61222
27359 * combine.c (simplify_shift_const_1): When moving a PLUS outside
27360 the shift, truncate the PLUS operand to the result mode.
27361
27362 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
27363
27364 PR target/61271
27365 * config/i386/i386.c (ix86_rtx_costs)
27366 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
27367 Fix condition.
27368
27369 2014-05-26 Martin Jambor <mjambor@suse.cz>
27370
27371 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
27372 subreg uses.
27373
27374 2014-05-26 Richard Biener <rguenther@suse.de>
27375
27376 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
27377 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
27378 Provide specializations.
27379 (wi::int_traits <HOST_WIDE_INT>,
27380 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
27381
27382 2014-05-26 Alan Modra <amodra@gmail.com>
27383
27384 PR target/61098
27385 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
27386 params and return a bool. Remove dead code. Update comment.
27387 Assert we have a const_int source. Remove bogus code from
27388 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
27389 handling of constants > 2G and reg_equal note, from..
27390 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
27391 return value. Update comment. If we can, use a new pseudo
27392 for intermediate calculations.
27393 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
27394 prototype.
27395 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
27396 call to rs6000_emit_set_const in splitter.
27397 (movdi_internal64+2, +3): Likewise.
27398
27399 2014-05-26 Richard Biener <rguenther@suse.de>
27400
27401 * system.h: Define __STDC_FORMAT_MACROS before
27402 including inttypes.h.
27403 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
27404 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
27405 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
27406 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
27407 HOST_WIDEST_INT_C): Remove.
27408 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
27409 if C99 inttypes.h is not available.
27410 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
27411 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
27412 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
27413 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
27414 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
27415 (struct output_info): Likewise.
27416 (print_statistics): Adjust.
27417 (dump_bitmap_statistics): Likewise.
27418 * bt-load.c (migrate_btr_defs): Print with PRId64.
27419 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
27420 (MAX_SAFE_MULTIPLIER): Adjust.
27421 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
27422 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
27423 dump_cgraph_node): Likewise.
27424 * final.c (dump_basic_block_info): Likewise.
27425 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
27426 * gcov.c (format_gcov): Likewise.
27427 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
27428 for calculation.
27429 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
27430 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
27431 (inline_small_functions, dump_overall_stats, dump_inline_stats):
27432 Use PRId64 for dumping.
27433 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
27434 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
27435 (add_allocno_hard_regs): Adjust.
27436 * loop-doloop.c (doloop_modify): Print using PRId64.
27437 * loop-iv.c (inverse): Compute in uint64_t.
27438 (determine_max_iter, iv_number_of_iterations): Likewise.
27439 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
27440 Print using PRId64.
27441 * lto-streamer-out.c (write_symbol): Use uint64_t.
27442 * mcf.c (CAP_INFINITY): Use int64_t maximum.
27443 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
27444 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
27445 * modulo-sched.c (const_iteration_count): Use int64_t.
27446 (sms_schedule): Dump using PRId64.
27447 * predict.c (dump_prediction): Likewise.
27448 * pretty-print.h (pp_widest_integer): Remove.
27449 * profile.c (get_working_sets, is_edge_inconsistent,
27450 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
27451 * tree-pretty-print.c (pp_double_int): Remove case handling
27452 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
27453 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
27454 and adjust users.
27455 (pass_optimize_bswap::execute): Remove restriction on hosts.
27456 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
27457 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
27458 * tree.c (widest_int_cst_value): Remove.
27459 * tree.h (widest_int_cst_value): Likewise.
27460 * value-prof.c (dump_histogram_value): Print using PRId64.
27461 * gengtype.c (main): Also inject int64_t.
27462 * ggc-page.c (struct max_alignment): Use int64_t.
27463 * alloc-pool.c (struct allocation_object_def): Likewise.
27464 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
27465 for computation.
27466 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
27467 * doc/tm.texi: Regenerated.
27468 * gengtype-lex.l (IWORD): Handle [u]int64_t.
27469 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
27470 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
27471 mmix_output_register_setting): Use [u]int64_t in prototypes.
27472 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
27473 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
27474 mmix_output_octa, mmix_output_shifted_value): Adjust.
27475 (mmix_intval): Adjust. Remove unreachable case.
27476 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
27477
27478 2014-05-26 Richard Biener <rguenther@suse.de>
27479
27480 * configure.ac: Drop __int64 type check. Insist that we
27481 found uint64_t and int64_t.
27482 * hwint.h (HOST_BITS_PER___INT64): Remove.
27483 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
27484 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
27485 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
27486 (HOST_WIDEST_FAST_INT): Remove __int64 case.
27487 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
27488 for dst_q_src_df_rms_cdt.
27489 * configure: Regenerate.
27490 * config.in: Likewise.
27491
27492 2014-05-26 Michael Tautschnig <mt@debian.org>
27493
27494 PR target/61249
27495 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
27496 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
27497
27498 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27499
27500 PR rtl-optimization/61278
27501 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
27502
27503 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27504
27505 PR rtl-optimization/61220
27506 Part of PR rtl-optimization/61225
27507 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
27508 insn; skip split_edge for a block with only one successor.
27509
27510 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
27511
27512 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
27513 for variables.
27514
27515 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
27516
27517 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
27518 (update_vtable_references): New function.
27519 (function_and_variable_visibility): Rewrite also vtable initializers.
27520 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
27521
27522 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
27523
27524 * ggc.h (ggc_grow): New function.
27525 * ggc-none.c (ggc_grow): New function.
27526 * ggc-page.c (ggc_grow): Likewise.
27527
27528 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
27529
27530 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
27531 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
27532 comdat_can_be_unshared_p, cgraph_externally_visible_p,
27533 varpool_externally_visible_p, can_replace_by_local_alias,
27534 update_visibility_by_resolution_info, function_and_variable_visibility,
27535 pass_data_ipa_function_and_variable_visibility,
27536 make_pass_ipa_function_and_variable_visibility,
27537 whole_program_function_and_variable_visibility,
27538 pass_data_ipa_whole_program_visibility,
27539 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
27540 * cgraph.h (cgraph_local_node_p): Declare.
27541 * ipa-visibility.c: New file.
27542 * Makefile.in (OBJS): Add ipa-visiblity.o
27543
27544 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
27545
27546 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
27547 that var decl is available.
27548
27549 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
27550
27551 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
27552 symtab_node pointer.
27553 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
27554 (find_decls_types_r): Do not walk COMDAT_GROUP.
27555 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
27556 * varasm.c (make_decl_one_only): Use set_comdat_group;
27557 create node if needed.
27558 * ipa-inline-transform.c (save_inline_function_body): Update
27559 way we decl->symtab mapping.
27560 * symtab.c (symtab_hash, hash_node, eq_node
27561 symtab_insert_node_to_hashtable): Remove.
27562 (symtab_register_node): Update.
27563 (symtab_unregister_node): Update.
27564 (symtab_get_node): Reimplement as inline function.
27565 (symtab_add_to_same_comdat_group): Update.
27566 (symtab_dissolve_same_comdat_group_list): Update.
27567 (dump_symtab_base): Update.
27568 (verify_symtab_base): Update.
27569 (symtab_make_decl_local): Update.
27570 (fixup_same_cpp_alias_visibility): Update.
27571 (symtab_nonoverwritable_alias): Update.
27572 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
27573 * ipa.c (update_visibility_by_resolution_info): UPdate.
27574 * bb-reorder.c: Include cgraph.h
27575 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
27576 with comdat groups.
27577 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
27578 * cgraph.c (cgraph_get_create_node): Update.
27579 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
27580 and comdat_group_.
27581 (symtab_get_node): Make inline.
27582 (symtab_insert_node_to_hashtable): Remove.
27583 (symtab_can_be_discarded): Update.
27584 (decl_comdat_group): New function.
27585 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
27586 Update.
27587 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
27588 comdat group name.
27589 (read_comdat_group): New function.
27590 (input_node, input_varpool_node): Use it.
27591 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
27592 comdat groups.
27593 * mips.c (mips_start_unique_function): Likewise.
27594 (ix86_code_end): Likewise.
27595 (rs6000_code_end): Likweise.
27596 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
27597
27598 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
27599
27600 * gengtype-state.c (fatal_reading_state): Bring offline.
27601 * optabs.c (widening_optab_handler): Bring offline.
27602 * optabs.h (widening_optab_handler): Likewise.
27603 * final.c (get_attr_length_1): Likewise.
27604
27605 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
27606
27607 * sched-int.h (sd_iterator_cond): Manually tail recurse.
27608
27609 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
27610
27611 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
27612 (ppc440-compare): Include shift with dot.
27613 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
27614 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
27615 without dot.
27616 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
27617 without dot.
27618 (e6500_sfx2): Include it.
27619 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
27620 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
27621 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
27622 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
27623 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
27624 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
27625 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
27626 *lshiftrt_internal1le, *lshiftrt_internal1be,
27627 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
27628 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
27629 *rotldi3_internal10le, *rotldi3_internal10be,
27630 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
27631 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
27632 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
27633 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
27634 define_insns): Use type "shift" in the appropriate alternatives.
27635
27636 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
27637
27638 * config/rs6000/rs6000.md (type): Add "logical". Delete
27639 "fast_compare".
27640 (dot): Adjust comment.
27641 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
27642 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
27643 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
27644 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
27645 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
27646 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
27647 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
27648 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
27649
27650 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
27651 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
27652 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
27653 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
27654 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
27655 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
27656 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
27657 * config/rs6000/8540.md (ppc8540_su): Adjust.
27658 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
27659 cell-cmp-microcoded): Adjust.
27660 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
27661 * config/rs6000/e500mc.md (e500mc_su): Adjust.
27662 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
27663 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
27664 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
27665 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
27666 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
27667 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
27668 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
27669 Adjust.
27670 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
27671 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
27672 Adjust. Adjust comment.
27673 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
27674 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
27675
27676 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
27677
27678 * config/rs6000/rs6000.md (type): Add "add".
27679 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
27680 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
27681 define_insns): Use it.
27682 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
27683
27684 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
27685 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
27686 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
27687 * config/rs6000/601.md (ppc601-integer): Adjust.
27688 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
27689 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
27690 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
27691 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
27692 * config/rs6000/8540.md (ppc8540_su): Adjust.
27693 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
27694 cell-cmp-microcoded): Adjust.
27695 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
27696 * config/rs6000/e500mc.md (e500mc_su): Adjust.
27697 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
27698 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
27699 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
27700 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
27701 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
27702 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
27703 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
27704 Adjust.
27705 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
27706 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
27707 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
27708 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
27709
27710 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
27711
27712 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
27713 "delayed_compare", "var_delayed_compare".
27714 (var_shift): New attribute.
27715 (cell_micro): Adjust.
27716 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
27717 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
27718 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
27719 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
27720 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
27721 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
27722 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
27723 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
27724 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
27725 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
27726 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
27727 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
27728 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
27729 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
27730 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
27731 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
27732 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
27733 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
27734 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
27735 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
27736 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
27737 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
27738 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
27739 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
27740 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
27741
27742 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
27743 * config/rs6000/440.md (ppc440-integer): Adjust.
27744 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
27745 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
27746 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
27747 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
27748 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
27749 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
27750 * config/rs6000/8540.md (ppc8540_su): Adjust.
27751 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
27752 cell-cmp-microcoded): Adjust.
27753 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
27754 * config/rs6000/e500mc.md (e500mc_su): Adjust.
27755 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
27756 e500mc64_delayed): Adjust.
27757 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
27758 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
27759 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
27760 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
27761 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
27762 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
27763 power6-delayed-compare, power6-var-delayed-compare): Adjust.
27764 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
27765 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
27766 Adjust comment.
27767 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
27768 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
27769
27770 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
27771
27772 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
27773 (bits): New mode_attr.
27774 (idiv_ldiv): Delete mode_attr.
27775 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
27776 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
27777 rs6000_adjust_priority, is_nonpipeline_insn,
27778 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
27779
27780 * config/rs6000/40x.md (ppc403-idiv): Adjust.
27781 * config/rs6000/440.md (ppc440-idiv): Adjust.
27782 * config/rs6000/476.md (ppc476-idiv): Adjust.
27783 * config/rs6000/601.md (ppc601-idiv): Adjust.
27784 * config/rs6000/603.md (ppc603-idiv): Adjust.
27785 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
27786 ppc620-ldiv): Adjust.
27787 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
27788 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
27789 * config/rs6000/8540.md (ppc8540_divide): Adjust.
27790 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
27791 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
27792 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
27793 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
27794 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
27795 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
27796 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
27797 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
27798 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
27799 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
27800 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
27801 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
27802 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
27803 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
27804 * config/rs6000/titan.md (titan_fxu_div): Adjust.
27805
27806 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
27807
27808 * config/rs6000/rs6000.md (type): Delete "insert_word",
27809 "insert_dword". Add "insert".
27810 (size): Update comment.
27811 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
27812 insn_must_be_first_in_group): Adjust.
27813 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
27814 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
27815 *insvsi_internal6, insvdi_internal): Adjust.
27816
27817 * config/rs6000/40x.md (ppc403-integer): Adjust.
27818 * config/rs6000/440.md (ppc440-integer): Adjust.
27819 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
27820 * config/rs6000/601.md (ppc601-integer): Adjust.
27821 * config/rs6000/603.md (ppc603-integer): Adjust.
27822 * config/rs6000/6xx.md (ppc604-integer): Adjust.
27823 * config/rs6000/7450.md (ppc7450-integer): Adjust.
27824 * config/rs6000/7xx.md (ppc750-integer): Adjust.
27825 * config/rs6000/8540.md (ppc8540_su): Adjust.
27826 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
27827 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
27828 * config/rs6000/e500mc.md (e500mc_su): Adjust.
27829 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
27830 * config/rs6000/e5500.md (e5500_sfx): Adjust.
27831 * config/rs6000/e6500.md (e6500_sfx): Adjust.
27832 * config/rs6000/mpc.md (mpccore-integer): Adjust.
27833 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
27834 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
27835 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
27836 * config/rs6000/power7.md (power7-integer): Adjust.
27837 * config/rs6000/power8.md (power8-1cyc): Adjust.
27838 * config/rs6000/rs64.md (rs64a-integer): Adjust.
27839 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
27840
27841 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
27842
27843 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
27844 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
27845 (size): New attribute.
27846 (dot): New attribute.
27847 (cell_micro): Adjust.
27848 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
27849 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
27850 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
27851 umuldi3_highpart): Adjust.
27852 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
27853 rs6000_adjust_priority, is_nonpipeline_insn,
27854 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
27855
27856 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
27857 ppc405-imul3): Adjust.
27858 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
27859 * config/rs6000/476.md (ppc476-imul): Adjust.
27860 * config/rs6000/601.md (ppc601-imul): Adjust.
27861 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
27862 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
27863 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
27864 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
27865 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
27866 Adjust.
27867 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
27868 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
27869 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
27870 cell-imul): Adjust.
27871 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
27872 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
27873 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
27874 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
27875 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
27876 * config/rs6000/mpc.md (mpccore-imul): Adjust.
27877 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
27878 power4-lmul, power4-imul, power4-imul3): Adjust.
27879 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
27880 power5-lmul, power5-imul, power5-imul3): Adjust.
27881 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
27882 power6-lmul, power6-imul, power6-imul3): Adjust.
27883 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
27884 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
27885
27886 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
27887 rs64a-lmul): Adjust.
27888 * config/rs6000/titan.md (titan_imul): Adjust.
27889
27890 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
27891
27892 * config/rs6000/rs6000.md (type): Add new value "halfmul".
27893 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
27894 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
27895 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
27896 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
27897 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
27898 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
27899 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
27900 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
27901 * config/rs6000/titan.md: Delete nonsensical comment.
27902 (titan_imul): Add type imul3.
27903 (titan_mulhw): Remove type imul3; add type halfmul.
27904
27905 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
27906
27907 * config/rs6000/rs6000.md (type): Reorder, reformat.
27908
27909 2014-05-23 Martin Jambor <mjambor@suse.cz>
27910
27911 PR tree-optimization/53787
27912 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
27913 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
27914 analysis_done, update all uses.
27915 * ipa-prop.c: Include domwalk.h
27916 (param_analysis_info): Removed.
27917 (param_aa_status): New type.
27918 (ipa_bb_info): Likewise.
27919 (func_body_info): Likewise.
27920 (ipa_get_bb_info): New function.
27921 (aa_overwalked): Likewise.
27922 (find_dominating_aa_status): Likewise.
27923 (parm_bb_aa_status_for_bb): Likewise.
27924 (parm_preserved_before_stmt_p): Changed to use new param AA info.
27925 (load_from_unmodified_param): Accept func_body_info as a parameter
27926 instead of parms_ainfo.
27927 (parm_ref_data_preserved_p): Changed to use new param AA info.
27928 (parm_ref_data_pass_through_p): Likewise.
27929 (ipa_load_from_parm_agg_1): Likewise. Update callers.
27930 (compute_complex_assign_jump_func): Changed to use new param AA info.
27931 (compute_complex_ancestor_jump_func): Likewise.
27932 (ipa_compute_jump_functions_for_edge): Likewise.
27933 (ipa_compute_jump_functions): Removed.
27934 (ipa_compute_jump_functions_for_bb): New function.
27935 (ipa_analyze_indirect_call_uses): Likewise, moved variable
27936 declarations down.
27937 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
27938 and info, moved variable declarations down.
27939 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
27940 node and info.
27941 (ipa_analyze_stmt_uses): Likewise.
27942 (ipa_analyze_params_uses): Removed.
27943 (ipa_analyze_params_uses_in_bb): New function.
27944 (ipa_analyze_controlled_uses): Likewise.
27945 (free_ipa_bb_info): Likewise.
27946 (analysis_dom_walker): New class.
27947 (ipa_analyze_node): Handle node-specific forbidden analysis,
27948 initialize and free func_body_info, use dominator walker.
27949 (ipcp_modif_dom_walker): New class.
27950 (ipcp_transform_function): Create and free func_body_info, use
27951 ipcp_modif_dom_walker, moved a lot of functionality there.
27952
27953 2014-05-23 Marek Polacek <polacek@redhat.com>
27954 Jakub Jelinek <jakub@redhat.com>
27955
27956 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
27957 * gcc.c (sanitize_spec_function): Likewise.
27958 * convert.c (convert_to_integer): Include "ubsan.h". Add
27959 floating-point to integer instrumentation.
27960 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
27961 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
27962 SANITIZE_NONDEFAULT.
27963 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
27964 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
27965 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
27966 * ubsan.c: Include "realmpfr.h" and "dfp.h".
27967 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
27968 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
27969 float/double/long double.
27970 (ubsan_instrument_float_cast): New function.
27971 * ubsan.h (ubsan_instrument_float_cast): Declare.
27972
27973 2014-05-23 Jiong Wang <jiong.wang@arm.com>
27974
27975 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
27976 predicate.
27977 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
27978 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
27979 Adjust for tailcalling through registers.
27980 * config/aarch64/aarch64.h (enum reg_class): New caller save
27981 register class.
27982 (REG_CLASS_NAMES): Likewise.
27983 (REG_CLASS_CONTENTS): Likewise.
27984 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
27985 Allow tailcalling without decls.
27986
27987 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
27988
27989 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
27990 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
27991
27992 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
27993 gsi, and variables v_* to v*.
27994
27995 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
27996
27997 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
27998
27999 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
28000
28001 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
28002 * omp-low.c: Update accordingly.
28003
28004 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
28005 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
28006 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
28007 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
28008 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
28009 GF_OMP_TARGET_KIND_UPDATE.
28010
28011 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
28012 Explicitly enumerate the expected region types.
28013
28014 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
28015
28016 PR other/56955
28017 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
28018 documentation; the old documentation didn't clearly state the
28019 constraints on the contents of the pointed-to storage.
28020
28021 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28022
28023 Fix bootstrap error on ia64
28024 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
28025 Return default value.
28026
28027 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
28028
28029 PR tree-optimization/54733
28030 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
28031 (CMPNOP): Define.
28032 (find_bswap_or_nop_load): New.
28033 (find_bswap_1): Renamed to ...
28034 (find_bswap_or_nop_1): This. Also add support for memory source.
28035 (find_bswap): Renamed to ...
28036 (find_bswap_or_nop): This. Also add support for memory source and
28037 detection of bitwise operations equivalent to load in target
28038 endianness.
28039 (execute_optimize_bswap): Likewise. Also move its leading comment back
28040 in place and split statement transformation into ...
28041 (bswap_replace): This.
28042
28043 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
28044
28045 PR rtl-optimization/61215
28046 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
28047 simplify_gen_subreg until final substitution.
28048
28049 2014-05-23 Alan Modra <amodra@gmail.com>
28050
28051 PR target/61231
28052 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
28053 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
28054 Use "Y" constraint rather than "m".
28055
28056 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
28057
28058 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
28059 define.
28060 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
28061 New function declaration.
28062 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
28063 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
28064 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
28065 (aarch64_init_builtins) : Initialize builtins
28066 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
28067 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
28068 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
28069 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
28070 and __builtins_aarch64_set_fpsr.
28071 (aarch64_atomic_assign_expand_fenv): New function.
28072 * config/aarch64/aarch64.md (set_fpcr): New pattern.
28073 (get_fpcr) : Likewise.
28074 (set_fpsr) : Likewise.
28075 (get_fpsr) : Likewise.
28076 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
28077 and UNSPECV_SET_FPSR.
28078 * doc/extend.texi (AARCH64 Built-in Functions) : Document
28079 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
28080 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
28081
28082 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
28083
28084 PR rtl-optimization/60969
28085 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
28086 constraints. Set up mem cost for NO_REGS case.
28087
28088 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
28089
28090 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
28091
28092 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
28093
28094 * config/darwin.c: Include "lto-section-names.h".
28095 (LTO_SEGMENT_NAME): Don't define.
28096 * config/i386/winnt.c: Include "lto-section-names.h".
28097 * lto-streamer.c: Include "lto-section-names.h".
28098 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
28099 * lto-wrapper.c: Include "lto-section-names.h".
28100 (LTO_SECTION_NAME_PREFIX): Don't define.
28101 * lto-section-names.h: New file.
28102 * cgraphunit.c: Include "lto-section-names.h".
28103
28104 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
28105
28106 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
28107
28108 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
28109
28110 PR target/61208
28111 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
28112
28113 2014-05-22 Nick Clifton <nickc@redhat.com>
28114
28115 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
28116
28117 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
28118
28119 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
28120 -> (T)A transformation to integer types.
28121
28122 2014-05-22 Teresa Johnson <tejohnson@google.com>
28123
28124 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
28125 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
28126 (gcov_rewrite): Use gcov_nonruntime_assert.
28127 (gcov_open): Ditto.
28128 (gcov_write_words): Ditto.
28129 (gcov_write_length): Ditto.
28130 (gcov_read_words): Use gcov_nonruntime_assert, and remove
28131 gcc_assert from IN_LIBGCOV code.
28132 (gcov_read_summary): Use gcov_error to flag profile corruption.
28133 (gcov_sync): Use gcov_nonruntime_assert.
28134 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
28135 (gcov_histo_index): Use gcov_nonruntime_assert.
28136 (static void gcov_histogram_merge): Ditto.
28137 (compute_working_sets): Ditto.
28138 * gcov-io.h (gcov_nonruntime_assert): Define.
28139 (gcov_error): Define for !IN_LIBGCOV
28140
28141 2014-05-22 Richard Biener <rguenther@suse.de>
28142
28143 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
28144 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
28145 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
28146 and deallocation site.
28147 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
28148 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
28149 passing through the incoming points-to set.
28150 (handle_lhs_call): Use flags argument instead of recomputing it.
28151 (find_func_aliases_for_call): Call handle_lhs_call with proper
28152 call return flags.
28153
28154 2014-05-22 Jakub Jelinek <jakub@redhat.com>
28155
28156 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
28157 all padding bits in REAL_VALUE_TYPE are cleared.
28158
28159 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28160
28161 Cleanup and improve multipass_dfa_lookahead_guard
28162 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
28163 (core2i7_first_cycle_multipass_begin,)
28164 (core2i7_first_cycle_multipass_issue,)
28165 (core2i7_first_cycle_multipass_backtrack): Update signature.
28166 * config/ia64/ia64.c
28167 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
28168 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
28169 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
28170 hook definition.
28171 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
28172 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
28173 values.
28174 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
28175 return values.
28176 * doc/tm.texi: Regenerate.
28177 * doc/tm.texi.in
28178 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
28179 * haifa-sched.c (ready_try): Make signed to allow negative values.
28180 (rebug_ready_list_1): Update.
28181 (choose_ready): Simplify.
28182 (sched_extend_ready_list): Update.
28183
28184 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28185
28186 Remove IA64 speculation tweaking flags
28187 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
28188 speculation tuning flags.
28189 (msched-prefer-non-data-spec-insns,)
28190 (msched-prefer-non-control-spec-insns): Obsolete options.
28191 * haifa-sched.c (choose_ready): Remove handling of
28192 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
28193 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
28194 and PREFER_NON_DATA_SPEC.
28195 * sel-sched.c (process_spec_exprs): Remove handling of
28196 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
28197
28198 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28199
28200 Improve scheduling debug output
28201 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
28202 (advance_one_cycle): Update.
28203 (schedule_insn, queue_to_ready): Add debug printouts.
28204 (debug_ready_list_1): New static function.
28205 (debug_ready_list): Update.
28206 (max_issue): Add debug printouts.
28207 (dump_insn_stream): New static function.
28208 (schedule_block): Use it. Also better indent printouts.
28209
28210 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28211
28212 Fix sched_insn debug counter
28213 * haifa-sched.c (schedule_insn): Update.
28214 (struct haifa_saved_data): Add nonscheduled_insns_begin.
28215 (save_backtrack_point, restore_backtrack_point): Update.
28216 (first_nonscheduled_insn): New static function.
28217 (queue_to_ready, choose_ready): Use it.
28218 (schedule_block): Init nonscheduled_insns_begin.
28219 (sched_emit_insn): Update.
28220
28221
28222 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
28223
28224 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
28225 to GENERAL_REGS.
28226 (aarch64_secondary_reload) : LikeWise.
28227 (aarch64_class_max_nregs) : Remove CORE_REGS.
28228 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
28229 (REG_CLASS_NAMES) : Likewise.
28230 (REG_CLASS_CONTENTS) : LikeWise.
28231 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
28232
28233 2014-05-21 Guozhi Wei <carrot@google.com>
28234
28235 PR target/61202
28236 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
28237 constraint.
28238 (vqdmulhq_n_s16): Likewise.
28239
28240 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
28241
28242 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
28243
28244 2014-05-21 Marek Polacek <polacek@redhat.com>
28245
28246 PR sanitizer/61272
28247 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
28248
28249 2014-05-21 Martin Jambor <mjambor@suse.cz>
28250
28251 * doc/invoke.texi (Optimize Options): Document parameters
28252 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
28253 ipa-cp-array-index-hint-bonus.
28254
28255 2014-05-21 Mark Wielaard <mjw@redhat.com>
28256
28257 PR debug/16063
28258 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
28259 version >= 3 or not strict DWARF.
28260 * langhooks.h (struct lang_hooks_for_types): Add
28261 enum_underlying_base_type.
28262 * langhooks.c (lhd_enum_underlying_base_type): New function.
28263 * gcc/langhooks.h (struct lang_hooks_for_types): Add
28264 enum_underlying_base_type.
28265 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
28266 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
28267 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
28268
28269 2014-05-21 Richard Biener <rguenther@suse.de>
28270
28271 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
28272
28273 2014-05-21 John Marino <gnugcc@marino.st>
28274
28275 * config.gcc (*-*-dragonfly*): New target.
28276 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
28277 * configure: Regenerate.
28278 * config/dragonfly-stdint.h: New.
28279 * config/dragonfly.h: New.
28280 * config/dragonfly.opt: New.
28281 * config/i386/dragonfly.h: New.
28282 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
28283
28284 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28285
28286 * tree.def (VOID_CST): New.
28287 * tree-core.h (TI_VOID): New.
28288 * tree.h (void_node): New.
28289 * tree.c (tree_node_structure_for_code, tree_code_size)
28290 (iterative_hash_expr): Handle VOID_CST.
28291 (build_common_tree_nodes): Initialize void_node.
28292
28293 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
28294
28295 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
28296 functions.
28297 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
28298
28299 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
28300 more places.
28301
28302 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
28303 flag_reorder_blocks_and_partition.
28304 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
28305
28306 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
28307
28308 PR target/54236
28309 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
28310 constraints.
28311 (*addc_r_t): Add new insn_and_split.
28312
28313 2014-05-21 Jakub Jelinek <jakub@redhat.com>
28314
28315 PR middle-end/61252
28316 * omp-low.c (handle_simd_reference): New function.
28317 (lower_rec_input_clauses): Use it. Defer adding reference
28318 initialization even for reduction without placeholder if in simd,
28319 handle it properly later on.
28320
28321 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
28322
28323 PR tree-optimization/60899
28324 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
28325 assume all static symbols will have definition wile parsing and
28326 check the do have definition later in compilation; check that
28327 variable referring symbol will be output before concluding that
28328 reference is safe; be conservative for referring local statics;
28329 be more precise about when comdat is output in other partition.
28330
28331 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
28332
28333 PR bootstrap/60984
28334 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
28335 parameter.
28336 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
28337 (ipa_inline): Loop inline_to_all_callers until no more aliases
28338 are removed.
28339
28340 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
28341
28342 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
28343 set writeonly flag only for vars actually written to.
28344
28345 2014-05-20 Dehao Chen <dehao@google.com>
28346
28347 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
28348 and callee count to get clone count.
28349 * tree-inline.c (expand_call_inline): Use callee count instead of bb
28350 count in copy_body.
28351
28352 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
28353
28354 PR rtl-optimization/61243
28355 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
28356
28357 2014-05-20 Xinliang David Li <davidxl@google.com>
28358
28359 * cgraphunit.c (walk_polymorphic_call_targets): Add
28360 dbgcnt and fopt-info support.
28361 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
28362 * ipa-devirt.c (ipa_devirt): Ditto.
28363 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
28364 * ipa.c (walk_polymorphic_call_targets): Ditto.
28365 * gimple-fold.c (fold_gimple_assign): Ditto.
28366 (gimple_fold_call): Ditto.
28367 * dbgcnt.def: New counter.
28368
28369 2014-05-20 DJ Delorie <dj@redhat.com>
28370
28371 * config/msp430/msp430.md (split): Don't allow subregs when
28372 splitting SImode adds.
28373 (andneghi): Fix subtraction logic.
28374 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
28375
28376 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
28377
28378 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
28379 symbols.
28380 * except.c (switch_to_exception_section, resolve_unique_section,
28381 get_named_text_section, default_function_rodata_section,
28382 align_variable, get_block_for_decl, default_section_type_flags):
28383 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
28384 * symtab.c (symtab_add_to_same_comdat_group,
28385 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
28386 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
28387 Likewise.
28388 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
28389 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
28390 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
28391 (c6x_function_in_section_p): Likewise.
28392 * config/darwin.c (machopic_select_section): Likewise.
28393 * config/arm/arm.c (arm_function_in_section_p): Likewise.
28394 * config/mips/mips.c (mips_function_rodata_section): Likewise.
28395 * config/mep/mep.c (mep_select_section): LIkewise.
28396 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
28397
28398 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
28399
28400 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
28401 EH region of calls to pure functions that can throw an exception.
28402 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
28403 (copy_reference_ops_from_call): Also copy the EH region of the call if
28404 it can throw an exception.
28405
28406 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28407
28408 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
28409 nested VEC_SELECTs that are inverses of each other.
28410
28411 2014-05-20 Richard Biener <rguenther@suse.de>
28412
28413 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
28414 (extract_and_process_scc_for_name): not here.
28415 (cond_dom_walker::before_dom_children): Only process
28416 stmts that end the BB in interesting ways.
28417 (run_scc_vn): Mark param uses as visited.
28418
28419 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28420
28421 * config/arm/arm.md (arith_shiftsi): Do not predicate for
28422 arm_restrict_it.
28423
28424 2014-05-20 Nick Clifton <nickc@redhat.com>
28425
28426 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
28427 (msp430_gimplify_va_arg_expr): New function.
28428 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
28429
28430 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
28431 operand 0 in order to prevent confusion about the number of
28432 registers involved.
28433
28434 2014-05-20 Richard Biener <rguenther@suse.de>
28435
28436 PR tree-optimization/61221
28437 * tree-ssa-pre.c (el_to_update): Remove.
28438 (eliminate_dom_walker::before_dom_children): Handle released
28439 VDEFs by value-numbering them to the associated VUSE. Update
28440 stmt immediately for substituted call address.
28441 (eliminate): Remove delayed stmt updating code.
28442 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
28443 possibly late re-numbered vuses.
28444 (vn_reference_lookup_2): Adjust.
28445 (vn_reference_lookup_pieces): Likewise.
28446 (vn_reference_lookup): Likewise.
28447
28448 2014-05-20 Richard Biener <rguenther@suse.de>
28449
28450 * config.gcc: Remove need_64bit_hwint.
28451 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
28452 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
28453 it to be true.
28454 * config.in: Regenerate.
28455 * configure: Likewise.
28456
28457 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
28458
28459 * doc/extend.texi: Create Label Attributes section,
28460 move all label attributes into it and reference it.
28461
28462 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
28463
28464 * arm.c (thumb1_reorg): When scanning backwards skip anything
28465 that's not a proper insn.
28466
28467 2014-05-19 Richard Biener <rguenther@suse.de>
28468
28469 PR tree-optimization/61221
28470 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
28471 Do nothing for unreachable blocks.
28472 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
28473 Improve unreachability detection.
28474
28475 2014-05-19 Richard Biener <rguenther@suse.de>
28476
28477 PR tree-optimization/61209
28478 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
28479
28480 2014-05-19 Nick Clifton <nickc@redhat.com>
28481
28482 * except.c (init_eh): Fix computation of builtin setjmp buffer
28483 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
28484
28485 2014-05-19 Richard Biener <rguenther@suse.de>
28486
28487 PR tree-optimization/61184
28488 * tree-vrp.c (is_negative_overflow_infinity): Use
28489 TREE_OVERFLOW_P and do that check first.
28490 (is_positive_overflow_infinity): Likewise.
28491 (is_overflow_infinity): Likewise.
28492 (vrp_operand_equal_p): Properly treat operands with
28493 differing overflow as not equal.
28494
28495 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
28496
28497 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
28498 shift simplification where it was intended.
28499
28500 2014-05-19 Christian Bruel <christian.bruel@st.com>
28501
28502 PR target/61195
28503 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
28504
28505 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
28506
28507 PR target/61084
28508 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
28509 than wide_int.
28510
28511 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28512
28513 * reg-notes.def (CROSSING_JUMP): Likewise.
28514 * rtl.h (rtx_def): Update comment for jump flag.
28515 (CROSSING_JUMP_P): Define.
28516 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
28517 of a REG_CROSSING_JUMP note.
28518 * cfghooks.c (tidy_fallthru_edges): Likewise.
28519 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
28520 * emit-rtl.c (try_split): Likewise.
28521 * haifa-sched.c (sched_create_recovery_edges): Likewise.
28522 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
28523 * jump.c (redirect_jump_2): Likewise.
28524 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
28525 (relax_delay_slots): Likewise.
28526 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
28527 (bbit_di): Likewise.
28528 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
28529 * config/sh/sh.md (jump_compact): Likewise.
28530 * bb-reorder.c (rotate_loop): Likewise.
28531 (pass_duplicate_computed_gotos::execute): Likewise.
28532 (add_reg_crossing_jump_notes): Rename to...
28533 (update_crossing_jump_flags): ...this.
28534 (pass_partition_blocks::execute): Update accordingly.
28535
28536 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
28537
28538 * tree.h: Remove extraneous template <>.
28539
28540 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
28541
28542 * ipa.c (symtab_remove_unreachable_nodes): Remove
28543 symbol from comdat group if its body was eliminated.
28544 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
28545 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
28546 (symtab_unregister_node): ... this one.
28547 (verify_symtab_base): More strict checking of comdats.
28548 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
28549
28550 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
28551
28552 * tree-pass.h (make_pass_ipa_comdats): New pass.
28553 * timevar.def (TV_IPA_COMDATS): New timevar.
28554 * passes.def (pass_ipa_comdats): Add.
28555 * Makefile.in (OBJS): Add ipa-comdats.o
28556 * ipa-comdats.c: New file.
28557
28558 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
28559
28560 * ipa.c (update_visibility_by_resolution_info): New function.
28561 (function_and_variable_visibility): Use it.
28562
28563 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
28564
28565 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
28566 New functions.
28567 (FOR_EACH_DEFINED_SYMBOL): New macro.
28568 (varpool_first_static_initializer, varpool_next_static_initializer,
28569 varpool_first_defined_variable, varpool_next_defined_variable):
28570 Fix comments.
28571 (symtab_in_same_comdat_p): Correctly deal with inline functions.
28572
28573 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
28574
28575 * ggc-page.c (ggc_handle_finalizers): Add comment.
28576
28577 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
28578
28579 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
28580 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
28581 (ggc_internal_cleared_alloc): Likewise.
28582 * ggc-page.c (finalizer): New class.
28583 (vec_finalizer): Likewise.
28584 (globals::finalizers): New member.
28585 (globals::vec_finalizers): Likewise.
28586 (ggc_internal_alloc): Record the finalizer if any for the block being
28587 allocated.
28588 (ggc_handle_finalizers): New function.
28589 (ggc_collect): Call ggc_handle_finalizers.
28590 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
28591 finalizer.
28592 (ggc_internal_cleared_alloc): Likewise.
28593 (finalize): New function.
28594 (need_finalization_p): Likewise.
28595 (ggc_alloc): Install the type's destructor as the finalizer if it
28596 might do something.
28597 (ggc_cleared_alloc): Likewise.
28598 (ggc_vec_alloc): Likewise.
28599 (ggc_cleared_vec_alloc): Likewise.
28600
28601 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
28602
28603 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
28604
28605 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
28606
28607 * alias.c (record_alias_subset): Adjust.
28608 * bitmap.c (bitmap_element_allocate): Likewise.
28609 (bitmap_gc_alloc_stat): Likewise.
28610 * cfg.c (init_flow): Likewise.
28611 (alloc_block): Likewise.
28612 (unchecked_make_edge): Likewise.
28613 * cfgloop.c (alloc_loop): Likewise.
28614 (flow_loops_find): Likewise.
28615 (rescan_loop_exit): Likewise.
28616 * cfgrtl.c (init_rtl_bb_info): Likewise.
28617 * cgraph.c (insert_new_cgraph_node_version): Likewise.
28618 (cgraph_allocate_node): Likewise.
28619 (cgraph_create_edge_1): Likewise.
28620 (cgraph_allocate_init_indirect_info): Likewise.
28621 * cgraphclones.c (cgraph_clone_edge): Likewise.
28622 * cgraphunit.c (add_asm_node): Likewise.
28623 (init_lowered_empty_function): Likewise.
28624 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
28625 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
28626 (alpha_use_linkage): Likewise.
28627 * config/arc/arc.c (arc_init_machine_status): Likewise.
28628 * config/arm/arm.c (arm_init_machine_status): Likewise.
28629 * config/avr/avr.c (avr_init_machine_status): Likewise.
28630 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
28631 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
28632 * config/cris/cris.c (cris_init_machine_status): Likewise.
28633 * config/darwin.c (machopic_indirection_name): Likewise.
28634 (darwin_build_constant_cfstring): Likewise.
28635 (darwin_enter_string_into_cfstring_table): Likewise.
28636 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
28637 * config/frv/frv.c (frv_init_machine_status): Likewise.
28638 * config/i386/i386.c (get_dllimport_decl): Likewise.
28639 (ix86_init_machine_status): Likewise.
28640 (assign_386_stack_local): Likewise.
28641 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
28642 (i386_pe_maybe_record_exported_symbol): Likewise.
28643 (i386_pe_record_stub): Likewise.
28644 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
28645 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
28646 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
28647 (m32c_note_pragma_address): Likewise.
28648 * config/mep/mep.c (mep_init_machine_status): Likewise.
28649 (mep_note_pragma_flag): Likewise.
28650 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
28651 (mips16_local_alias): Likewise.
28652 (mips_init_machine_status): Likewise.
28653 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
28654 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
28655 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
28656 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
28657 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
28658 * config/pa/pa.c (pa_init_machine_status): Likewise.
28659 (pa_get_deferred_plabel): Likewise.
28660 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
28661 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
28662 (rs6000_init_machine_status): Likewise.
28663 (output_toc): Likewise.
28664 * config/s390/s390.c (s390_init_machine_status): Likewise.
28665 * config/score/score.c (score_output_external): Likewise.
28666 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
28667 * config/spu/spu.c (spu_init_machine_status): Likewise.
28668 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
28669 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
28670 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
28671 * coverage.c (coverage_end_function): Likewise.
28672 * dbxout.c (dbxout_init): Likewise.
28673 * doc/gty.texi: Don't mention variable_size attribute.
28674 * dwarf2cfi.c (new_cfi): Adjust.
28675 (new_cfi_row): Likewise.
28676 (copy_cfi_row): Likewise.
28677 (create_cie_data): Likewise.
28678 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
28679 (new_loc_descr): Likewise.
28680 (find_AT_string_in_table): Likewise.
28681 (add_addr_table_entry): Likewise.
28682 (new_die): Likewise.
28683 (add_var_loc_to_decl): Likewise.
28684 (clone_die): Likewise.
28685 (clone_as_declaration): Likewise.
28686 (break_out_comdat_types): Likewise.
28687 (new_loc_list): Likewise.
28688 (add_loc_descr_to_each): Likewise.
28689 (add_location_or_const_value_attribute): Likewise.
28690 (add_linkage_name): Likewise.
28691 (lookup_filename): Likewise.
28692 (dwarf2out_var_location): Likewise.
28693 (new_line_info_table): Likewise.
28694 (dwarf2out_init): Likewise.
28695 (mem_loc_descriptor): Likewise.
28696 (loc_descriptor): Likewise.
28697 (add_const_value_attribute): Likewise.
28698 (tree_add_const_value_attribute): Likewise.
28699 (comp_dir_string): Likewise.
28700 (dwarf2out_vms_debug_main_pointer): Likewise.
28701 (string_cst_pool_decl): Likewise.
28702 * emit-rtl.c (set_mem_attrs): Likewise.
28703 (get_reg_attrs): Likewise.
28704 (start_sequence): Likewise.
28705 (init_emit): Likewise.
28706 (init_emit_regs): Likewise.
28707 * except.c (init_eh_for_function): Likewise.
28708 (gen_eh_region): Likewise.
28709 (gen_eh_region_catch): Likewise.
28710 (gen_eh_landing_pad): Likewise.
28711 (add_call_site): Likewise.
28712 * function.c (add_frame_space): Likewise.
28713 (insert_temp_slot_address): Likewise.
28714 (assign_stack_temp_for_type): Likewise.
28715 (get_hard_reg_initial_val): Likewise.
28716 (allocate_struct_function): Likewise.
28717 (prepare_function_start): Likewise.
28718 (types_used_by_var_decl_insert): Likewise.
28719 * gengtype.c (variable_size_p): Remove function.
28720 (enum alloc_quantity): Remove enum.
28721 (write_typed_alloc_def): Remove function.
28722 (write_typed_struct_alloc_def): Likewise.
28723 (write_typed_typedef_alloc_def): Likewise.
28724 (write_typed_alloc_defns): Likewise.
28725 (main): Adjust.
28726 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
28727 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
28728 * ggc.h (ggc_alloc): new function.
28729 (ggc_cleared_alloc): Likewise.
28730 (ggc_vec_alloc): Template on type of vector element, and remove
28731 element size argument.
28732 (ggc_cleared_vec_alloc): Likewise.
28733 * gimple.c (gimple_build_omp_for): Adjust.
28734 (gimple_copy): Likewise.
28735 * ipa-cp.c (get_replacement_map): Likewise.
28736 (find_aggregate_values_for_callers_subset): Likewise.
28737 (known_aggs_to_agg_replacement_list): Likewise.
28738 * ipa-devirt.c (get_odr_type): Likewise.
28739 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
28740 (read_agg_replacement_chain): Likewise.
28741 * loop-iv.c (get_simple_loop_desc): Likewise.
28742 * lto-cgraph.c (input_node_opt_summary): Likewise.
28743 * lto-section-in.c (lto_new_in_decl_state): Likewise.
28744 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
28745 (input_eh_region): Likewise.
28746 (input_eh_lp): Likewise.
28747 (input_cfg): Likewise.
28748 * optabs.c (set_optab_libfunc): Likewise.
28749 (init_tree_optimization_optabs): Likewise.
28750 (set_conv_libfunc): Likewise.
28751 * passes.c (do_per_function_toporder): Likewise.
28752 * rtl.h: Don't use variable_size gty attribute.
28753 * sese.c (if_region_set_false_region): Adjust.
28754 * stringpool.c (gt_pch_save_stringpool): Likewise.
28755 * target-globals.c (save_target_globals): Likewise.
28756 * toplev.c (general_init): Likewise.
28757 * trans-mem.c (record_tm_replacement): Likewise.
28758 (split_bb_make_tm_edge): Likewise.
28759 * tree-cfg.c (move_sese_region_to_fn): Likewise.
28760 * tree-data-ref.h (lambda_vector_new): Likewise.
28761 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
28762 * tree-iterator.c (tsi_link_before): Likewise.
28763 (tsi_link_after): Likewise.
28764 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
28765 * tree-ssa-loop-niter.c (record_estimate): Likewise.
28766 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
28767 * tree-ssa-operands.h: Don't use variable_size gty attribute.
28768 * tree-ssa.c (init_tree_ssa): Adjust.
28769 * tree-ssanames.c (set_range_info): Likewise.
28770 (get_ptr_info): Likewise.
28771 (duplicate_ssa_name_ptr_info): Likewise.
28772 (duplicate_ssa_name_range_info): Likewise.
28773 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
28774 (unpack_ts_fixed_cst_value_fields): Likewise.
28775 * tree.c (build_fixed): Likewise.
28776 (build_real): Likewise.
28777 (build_string): Likewise.
28778 (decl_priority_info): Likewise.
28779 (decl_debug_expr_insert): Likewise.
28780 (decl_value_expr_insert): Likewise.
28781 (decl_debug_args_insert): Likewise.
28782 (type_hash_add): Likewise.
28783 (build_omp_clause): Likewise.
28784 * ubsan.c (decl_for_type_insert): Likewise.
28785 * varasm.c (get_unnamed_section): Likewise.
28786 (get_noswitch_section): Likewise.
28787 (get_section): Likewise.
28788 (get_block_for_section): Likewise.
28789 (create_block_symbol): Likewise.
28790 (build_constant_desc): Likewise.
28791 (create_constant_pool): Likewise.
28792 (force_const_mem): Likewise.
28793 (record_tm_clone_pair): Likewise.
28794 * varpool.c (varpool_create_empty_node): Likewise.
28795
28796 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
28797
28798 * dwarf2out.c (tree_add_const_value_attribute): Call
28799 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
28800 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
28801 instead of ggc_internal_<x>alloc_stat.
28802 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
28803 (ggc_realloc): Likewise.
28804 * ggc-none.c (ggc_internal_alloc): Likewise.
28805 (ggc_internal_cleared_alloc): Likewise.
28806 * ggc-page.c: Likewise.
28807 * ggc.h (ggc_internal_alloc_stat): Likewise.
28808 (ggc_internal_alloc): Remove macro.
28809 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
28810 (ggc_internal_cleared_alloc): Remove macro.
28811 (GGC_RESIZEVEC): Adjust.
28812 (ggc_resizevar): Remove macro.
28813 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
28814 (ggc_internal_cleared_vec_alloc_stat): Likewise.
28815 (ggc_internal_vec_cleared_alloc): Remove macro.
28816 (ggc_alloc_atomic_stat): Drop _stat suffix.
28817 (ggc_alloc_atomic): Remove macro.
28818 (ggc_alloc_cleared_atomic): Remove macro.
28819 (ggc_alloc_string_stat): Drop _stat suffix.
28820 (ggc_alloc_string): Remove macro.
28821 (ggc_alloc_rtx_def_stat): Adjust.
28822 (ggc_alloc_tree_node_stat): Likewise.
28823 (ggc_alloc_cleared_tree_node_stat): Likewise.
28824 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
28825 (ggc_alloc_cleared_simd_clone_stat): Likewise.
28826 * gimple.c (gimple_build_omp_for): Likewise.
28827 (gimple_copy): Likewise.
28828 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
28829 * toplev.c (realloc_for_line_map): Adjust.
28830 * tree-data-ref.h (lambda_vector_new): Likewise.
28831 * tree-phinodes.c (allocate_phi_node): Likewise.
28832 * tree.c (grow_tree_vec_stat): Likewise.
28833 * vec.h (va_gc::reserve): Adjust.
28834
28835 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
28836
28837 * config/microblaze/microblaze.c (break_handler): New Declaration.
28838 (microblaze_break_function_p,microblaze_is_break_handler): New.
28839 (compute_frame_size): Use microblaze_break_function_p.
28840 Add the test of break_handler.
28841 (microblaze_function_prologue) : Add the test of variable
28842 break_handler. Check the fnname by BREAK_HANDLER_NAME.
28843 (microblaze_function_epilogue) : Add the test of break_handler.
28844 (microblaze_globalize_label) : Add the test of break_handler.
28845 Check the name by BREAK_HANDLER_NAME.
28846
28847 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
28848
28849 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
28850 microblaze_is_break_handler test.
28851 (call_internal1,call_value_intern): Use microblaze_break_function_p.
28852 Use SYMBOL_REF_DECL.
28853
28854 * config/microblaze/microblaze-protos.h
28855 (microblaze_break_function_p,microblaze_is_break_handler):
28856 New Declaration.
28857
28858 * doc/extend.texi (MicroBlaze break_handler Functions): Document
28859 new MicroBlaze break_handler functions.
28860
28861 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
28862
28863 * doc/extend.texi (Size of an asm): Move node text according
28864 to its @menu entry position.
28865
28866 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
28867
28868 PR tree-optimization/61140
28869 PR tree-optimization/61150
28870 PR tree-optimization/61197
28871 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
28872
28873 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
28874
28875 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
28876
28877 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
28878
28879 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
28880 __SIZEOF_INT128__ is defined.
28881
28882 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
28883
28884 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
28885 (rs6000_delegitimize_address): Use it.
28886
28887 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
28888
28889 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
28890 inplace argument. Store the new address in the original MEM when true.
28891 * emit-rtl.c (change_address_1): Likewise.
28892 (adjust_address_1, adjust_automodify_address_1, offset_address):
28893 Update accordingly.
28894 * rtl.h (plus_constant): Add an inplace argument.
28895 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
28896 when true. Avoid generating (plus X (const_int 0)).
28897 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
28898 in-place. Pass true to plus_constant.
28899 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
28900
28901 2014-05-16 Dehao Chen <dehao@google.com>
28902
28903 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
28904
28905 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
28906
28907 PR target/54089
28908 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
28909 patterns.
28910 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
28911
28912 2014-05-16 Dehao Chen <dehao@google.com>
28913
28914 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
28915 optimize_function_for_size_p.
28916 * regs.h (REG_FREQ_FROM_BB): Likewise.
28917
28918 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
28919
28920 PR target/51244
28921 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
28922 negt_reg_operand cases.
28923 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
28924 predicate.
28925 * config/sh/predicates.md (cbranch_treg_value): Simplify.
28926
28927 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
28928
28929 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
28930 target variants.
28931
28932 2014-05-16 David Malcolm <dmalcolm@redhat.com>
28933
28934 Revert:
28935 2014-04-29 David Malcolm <dmalcolm@redhat.com>
28936
28937 * tree-cfg.c (dump_function_to_file): Dump the return type of
28938 functions, in a line to itself before the function body, mimicking
28939 the layout of a C function.
28940
28941 2014-05-16 Dehao Chen <dehao@google.com>
28942
28943 * cfghooks.c (make_forwarder_block): Use direct computation to
28944 get fall-through edge's count and frequency.
28945
28946 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
28947
28948 * config/arc/arc.c (arc_init): Fix typo in error message.
28949 * config/i386/i386.c (ix86_expand_builtin): Likewise.
28950 (split_stack_prologue_scratch_regno): Likewise.
28951 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
28952 word from error message.
28953
28954 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
28955
28956 * ira-costs.c: Fix typo in comment.
28957
28958 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
28959
28960 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
28961
28962 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
28963
28964 * varpool.c (dump_varpool_node): Dump write-only flag.
28965 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
28966 write-only flag.
28967 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
28968 write-only variables.
28969 * ipa.c (process_references): New function.
28970 (set_readonly_bit): New function.
28971 (set_writeonly_bit): New function.
28972 (clear_addressable_bit): New function.
28973 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
28974 fix handling of aliases.
28975 * cgraph.h (struct varpool_node): Add writeonly flag.
28976
28977 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
28978
28979 PR rtl-optimization/60969
28980 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
28981 Calculate costs for this case.
28982
28983 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
28984
28985 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
28986 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
28987
28988 2014-05-16 Richard Biener <rguenther@suse.de>
28989
28990 PR tree-optimization/61194
28991 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
28992 bool patterns ending in a COND_EXPR.
28993
28994 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
28995
28996 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
28997
28998 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
28999
29000 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
29001 where we were unable to cost an RTX.
29002
29003 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
29004
29005 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
29006 HIGH, LO_SUM.
29007
29008 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
29009 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
29010
29011 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
29012
29013 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
29014 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
29015
29016 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
29017 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
29018
29019 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
29020 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
29021
29022 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
29023 operators.
29024
29025 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
29026 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
29027
29028 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
29029 DIV/MOD.
29030
29031 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
29032 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
29033
29034 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
29035 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
29036
29037 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
29038 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
29039
29040 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
29041 rotates and shifts.
29042
29043 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
29044 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
29045
29046 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
29047 ZERO_EXTEND and SIGN_EXTEND better.
29048
29049 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
29050 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
29051
29052 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
29053 logical operations.
29054
29055 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
29056 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
29057
29058 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
29059 costs when costing loads and stores to memory.
29060
29061 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
29062 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
29063
29064 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
29065 for SET RTX.
29066
29067 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
29068
29069 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
29070
29071 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
29072 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
29073
29074 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
29075 to...
29076 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
29077 well formed.
29078 (aarch64_rtx_mult_cost): New.
29079 (aarch64_rtx_costs): Use it, refactor as appropriate.
29080
29081 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
29082 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
29083
29084 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
29085 emit instructions, return number of instructions which would
29086 be emitted.
29087 (aarch64_add_constant): Update call to aarch64_build_constant.
29088 (aarch64_output_mi_thunk): Likewise.
29089 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
29090 a CONST_DOUBLE.
29091
29092 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
29093
29094 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
29095 (TARGET_RTX_COSTS): Call it.
29096
29097 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
29098
29099 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
29100 (cortexa57_vector_cost): Likewise.
29101 (cortexa57_tunings): Use them.
29102
29103 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
29104
29105 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
29106 (cpu_addrcost_table): Use it.
29107 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
29108 (aarch64_address_cost): Rewrite using aarch64_classify_address,
29109 move it.
29110
29111 2014-05-16 Richard Biener <rguenther@suse.de>
29112
29113 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
29114 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
29115 (visit_phi): Ignore edges marked as not executable.
29116 (class cond_dom_walker): New.
29117 (cond_dom_walker::before_dom_children): Value-number
29118 control statements and mark successor edges as not
29119 executable if possible.
29120 (run_scc_vn): First walk all control statements in
29121 dominator order, marking edges as not executable.
29122 * tree-inline.c (copy_edges_for_bb): Be not confused
29123 about random edge flags.
29124
29125 2014-05-16 Richard Biener <rguenther@suse.de>
29126
29127 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
29128
29129 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
29130
29131 PR target/61193
29132 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
29133 (__TM_simple_begin): Use it.
29134 (__TM_begin): Likewise.
29135
29136 2014-05-15 Martin Jambor <mjambor@suse.cz>
29137
29138 PR ipa/61085
29139 * ipa-prop.c (update_indirect_edges_after_inlining): Check
29140 type_preserved flag when the indirect edge is polymorphic.
29141
29142 2014-05-15 Martin Jambor <mjambor@suse.cz>
29143
29144 PR tree-optimization/61090
29145 * tree-sra.c (sra_modify_expr): Pass the current gsi to
29146 build_ref_for_model.
29147
29148 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29149
29150 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
29151 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
29152
29153 2014-05-15 Jakub Jelinek <jakub@redhat.com>
29154
29155 PR tree-optimization/61158
29156 * fold-const.c (fold_binary_loc): If X is zero-extended and
29157 shiftc >= prec, make sure zerobits is all ones instead of
29158 invoking undefined behavior.
29159
29160 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29161
29162 * regcprop.h: New file.
29163 * regcprop.c (skip_debug_insn_p): New decl.
29164 (replace_oldest_value_reg): Check skip_debug_insn_p.
29165 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
29166 * shrink-wrap.c: Include regcprop.h.
29167 (prepare_shrink_wrap): Call
29168 copyprop_hardreg_forward_bb_without_debug_insn.
29169
29170 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29171
29172 * shrink-wrap.h: Update comment.
29173 * shrink-wrap.c: Update comment.
29174 (next_block_for_reg): Rename to live_edge_for_reg.
29175 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
29176 (move_insn_for_shrink_wrap): Split live_edge.
29177 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
29178
29179 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
29180
29181 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
29182 Delete.
29183 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
29184 * config/sparc/sparc.md (fptype_ut699): New attribute.
29185 (in_branch_delay): Return false if -mfix-ut699 is specified and
29186 fptype_ut699 is set to single.
29187 (truncdfsf2): Add fptype_ut699 attribute.
29188 (fix_truncdfsi2): Likewise.
29189 (floatsisf2): Change fptype attribute.
29190 (fix_truncsfsi2): Likewise.
29191 (negtf2_notv9): Delete.
29192 (negtf2_v9): Likewise.
29193 (negtf2_hq): New instruction.
29194 (negtf2): New instruction and splitter.
29195 (negdf2_notv9): Rewrite.
29196 (abstf2_notv9): Delete.
29197 (abstf2_hq_v9): Likewise.
29198 (abstf2_v9): Likewise.
29199 (abstf2_hq): New instruction.
29200 (abstf2): New instruction and splitter.
29201 (absdf2_notv9): Rewrite.
29202
29203 2014-05-14 Cary Coutant <ccoutant@google.com>
29204
29205 PR debug/61013
29206 * opts.c (common_handle_option): Don't special-case "-g".
29207 (set_debug_level): Default to at least level 2 with "-g".
29208
29209 2014-05-14 DJ Delorie <dj@redhat.com>
29210
29211 * config/msp430/msp430.c (msp430_builtin): Add
29212 MSP430_BUILTIN_DELAY_CYCLES.
29213 (msp430_init_builtins): Register void __delay_cycles(long long).
29214 (msp430_builtin_decl): Add it.
29215 (cg_magic_constant): New.
29216 (msp430_expand_delay_cycles): New.
29217 (msp430_expand_builtin): Call it.
29218 (msp430_print_operand_raw): Change integer printing from "int" to
29219 HOST_WIDE_INT.
29220 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
29221 (delay_cycles_start): New.
29222 (delay_cycles_end): New.
29223 (delay_cycles_32): New.
29224 (delay_cycles_32x): New.
29225 (delay_cycles_16): New.
29226 (delay_cycles_16x): New.
29227 (delay_cycles_2): New.
29228 (delay_cycles_1): New.
29229 * doc/extend.texi: Document __delay_cycles().
29230
29231 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
29232
29233 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
29234 length attribute computation.
29235
29236 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
29237
29238 PR debug/61188
29239 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
29240
29241 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
29242
29243 PR target/61084
29244 * config/sparc/sparc.md: Fix types of low and high in DI constant
29245 splitter. Use gen_int_mode in some other splitters.
29246
29247 2014-05-14 Martin Jambor <mjambor@suse.cz>
29248
29249 PR ipa/60897
29250 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
29251
29252 2014-05-14 James Norris <jnorris@codesourcery.com>
29253
29254 * omp-low.c (expand_parallel_call): Remove shadow variable.
29255 (expand_omp_taskreg): Likewise.
29256
29257 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
29258
29259 * common/config/i386/i386-common.c
29260 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
29261 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
29262 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
29263 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
29264 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
29265 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
29266 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
29267 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
29268 xsavecintrin.h, xsavesintrin.h.
29269 (x86_64-*-*): Ditto.
29270 * config/i386/clflushoptintrin.h: New.
29271 * config/i386/xsavecintrin.h: Ditto.
29272 * config/i386/xsavesintrin.h: Ditto.
29273 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
29274 (bit_XSAVES): Ditto.
29275 (bit_XSAVES): Ditto.
29276 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
29277 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
29278 -mno-clflushopt.
29279 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29280 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
29281 OPTION_MASK_ISA_XSAVES.
29282 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
29283 -mxsavec, -mxsaves.
29284 (PTA_CLFLUSHOPT) Define.
29285 (PTA_XSAVEC): Ditto.
29286 (PTA_XSAVES): Ditto.
29287 (ix86_option_override_internal): Handle new options.
29288 (ix86_valid_target_attribute_inner_p): Ditto.
29289 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
29290 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
29291 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
29292 (bdesc_special_args): Add __builtin_ia32_xsaves,
29293 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
29294 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
29295 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
29296 (ix86_expand_builtin): Handle new builtins.
29297 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
29298 (TARGET_CLFLUSHOPT_P): Ditto.
29299 (TARGET_XSAVEC): Ditto.
29300 (TARGET_XSAVEC_P): Ditto.
29301 (TARGET_XSAVES): Ditto.
29302 (TARGET_XSAVES_P): Ditto.
29303 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
29304 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
29305 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
29306 (ANY_XRSTOR): New.
29307 (ANY_XRSTOR64): Ditto.
29308 (xrstor): Ditto.
29309 (xrstor): Change into <xrstor>.
29310 (xrstor_rex64): Change into <xrstor>_rex64.
29311 (xrstor64): Change into <xrstor>64
29312 (clflushopt): New.
29313 * config/i386/i386.opt (mclflushopt): New.
29314 (mxsavec): Ditto.
29315 (mxsaves): Ditto.
29316 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
29317 xsavecintrin.h.
29318 * doc/invoke.texi: Document new options.
29319
29320 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
29321
29322 PR rtl-optimization/60866
29323 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
29324 Default it to -1. Pass it down to init_simplejump_data.
29325 (init_simplejump_data): New parameter old_seqno. Pass it down
29326 to get_seqno_for_a_jump.
29327 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
29328 initializing new jump seqno as a last resort. Add comment.
29329 (sel_redirect_edge_and_branch): Save old seqno of the conditional
29330 jump and pass it down to sel_init_new_insn.
29331 (sel_redirect_edge_and_branch_force): Likewise.
29332
29333 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
29334
29335 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
29336 shifted values to avoid build warning.
29337
29338 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
29339
29340 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
29341 * cfgrtl.c (rtl_merge_blocks): Fix comment.
29342 (cfg_layout_merge_blocks): Likewise.
29343 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
29344
29345 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
29346
29347 PR rtl-optimization/60901
29348 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
29349 bb predecessor belongs to the same scheduling region. Adjust comment.
29350
29351 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
29352
29353 * doc/sourcebuild.texi: (dfp_hw): Document.
29354 (p8vector_hw): Likewise.
29355 (powerpc_eabi_ok): Likewise.
29356 (powerpc_elfv2): Likewise.
29357 (powerpc_htm_ok): Likewise.
29358 (ppc_recip_hw): Likewise.
29359 (vsx_hw): Likewise.
29360
29361 2014-05-13 Cary Coutant <ccoutant@google.com>
29362
29363 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
29364
29365 2014-05-13 David Malcolm <dmalcolm@redhat.com>
29366
29367 * gengtype-parse.c (require3): Eliminate in favor of...
29368 (require4): New.
29369 (require_template_declaration): Update to support optional single *
29370 on a type.
29371
29372 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
29373 (create_user_defined_type): Handle a single level of explicit
29374 pointerness within template arguments.
29375 (struct write_types_data): Add field "kind".
29376 (filter_type_name): Handle "*" character.
29377 (write_user_func_for_structure_ptr): Require a write_types_data
29378 rather than just a prefix string, so that we can look up the kind
29379 of the wtd and use it as an index into wrote_user_func_for_ptr,
29380 ensuring that such functions are written at most once. Support
29381 subclasses by invoking the marking function of the ultimate base class.
29382 (write_user_func_for_structure_body): Require a write_types_data
29383 rather than just a prefix string, so that we can pass this to
29384 write_user_func_for_structure_ptr.
29385 (write_func_for_structure): Likewise.
29386 (ggc_wtd): Add initializer of new "kind" field.
29387 (pch_wtd): Likewise.
29388
29389 * gengtype.h (enum write_types_kinds): New.
29390 (struct type): Add field wrote_user_func_for_ptr to the "s"
29391 union member.
29392
29393 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
29394
29395 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
29396 instead of const_binop.
29397 (fold_binary_loc): Likewise.
29398
29399 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
29400
29401 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
29402 calculation to match get_ref_base_and_extent.
29403
29404 2014-05-13 Catherine Moore <clm@codesourcery.com>
29405 Sandra Loosemore <sandra@codesourcery.com>
29406
29407 * configure.ac: Fix assembly for explicit JALR relocation check.
29408 * configure: Regenerate.
29409
29410 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29411
29412 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
29413 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
29414 Remove associated type declarations and initialisations.
29415 (arm_expand_neon_builtin): Likewise.
29416 (neon_emit_pair_result_insn): Delete.
29417 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
29418 * config/arm/neon.md (neon_vtrn<mode>): Delete.
29419 (neon_vzip<mode>): Likewise.
29420 (neon_vuzp<mode>): Likewise.
29421
29422 2014-05-13 Richard Biener <rguenther@suse.de>
29423
29424 PR ipa/60973
29425 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
29426 it needs revisiting whether the call still may be tail-called.
29427
29428 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
29429
29430 * rtl.def (SYMBOL_REF): Remove middle "0" field.
29431 * rtl.h (block_symbol): Reduce number of fields to 2.
29432 (rtx_def): Add u2.symbol_ref_flags.
29433 (SYMBOL_REF_FLAGS): Use it.
29434 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
29435 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
29436 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
29437 Lower index of SYMBOL_REF_DATA.
29438 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
29439 Print SYMBOL_REF_FLAGS at the same time.
29440 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
29441
29442 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
29443
29444 * rtl.def (VAR_LOCATION): Remove "i" field.
29445 * rtl.h (rtx_def): Add u2.var_location_status.
29446 (PAT_VAR_LOCATION_STATUS): Use it.
29447 (gen_rtx_VAR_LOCATION): Declare.
29448 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
29449 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
29450 * var-tracking.c (emit_note_insn_var_location): Remove casts.
29451
29452 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
29453
29454 * rtl.def (scratch): Fix outdated comment and remove "0" field.
29455 * gengtype.c (adjust_field_rtx_def): Update accordingly.
29456
29457 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
29458
29459 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
29460 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
29461 * rtl.h (rtx_def): Add insn_uid to u2 field.
29462 (RTX_FLAG_CHECK8): Delete in favor of...
29463 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
29464 (INSN_DELETED_P): Update accordingly.
29465 (INSN_UID): Use u2.insn_uid.
29466 (INSN_CHAIN_CODE_P): Define.
29467 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
29468 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
29469 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
29470 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
29471 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
29472 indices accordingly.
29473 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
29474 Update indices for insn-chain rtxes.
29475 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
29476 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
29477 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
29478 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
29479 * combine.c (try_combine): Likewise.
29480 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29481
29482 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
29483
29484 * rtl.def (REG): Remove middle field.
29485 * rtl.h (rtx_def): Add orignal_regno to u2.
29486 (ORIGINAL_REGNO): Use it instead of field 1.
29487 (REG_ATTRS): Lower field index accordingly.
29488 * gengtype.c (adjust_field_rtx_def): Remove handling of
29489 ORIGINAL_REGNO. Move REG_ATTRS index down.
29490 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
29491 code that prints the REGNO.
29492
29493 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
29494
29495 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
29496 GENERATOR_FILE.
29497
29498 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
29499
29500 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
29501
29502 2014-05-13 Bin Cheng <bin.cheng@arm.com>
29503
29504 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
29505 (alloc_iv): Lower base expressions containing ADDR_EXPR.
29506
29507 2014-05-13 Ian Bolton <ian.bolton@arm.com>
29508
29509 * config/aarch64/aarch64-protos.h
29510 (aarch64_hard_regno_caller_save_mode): New prototype.
29511 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
29512 New function.
29513 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
29514
29515 2014-05-13 Christian Bruel <christian.bruel@st.com>
29516
29517 * target.def (mode_switching): New hook vector.
29518 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
29519 (mode_exit, modepriority_to_mode): Likewise.
29520 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
29521 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
29522 * target.h: Include tm.h and hard-reg-set.h.
29523 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
29524 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
29525 * doc/tm.texi Regenerate.
29526 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
29527 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
29528 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
29529 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
29530 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
29531 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
29532 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
29533 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
29534 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
29535 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
29536 (ix86_emit_mode_set): Hookify.
29537 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
29538 Delete.
29539 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
29540 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
29541 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
29542 (epiphany_mode_priority_to_mode): Remove declaration.
29543 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
29544 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
29545 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
29546 Likewise.
29547 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
29548 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
29549 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
29550
29551 2014-05-13 Jakub Jelinek <jakub@redhat.com>
29552
29553 PR target/61060
29554 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
29555 is const0_rtx, return immediately. Don't test count == 0 when
29556 it is always true.
29557
29558 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29559
29560 * Makefile.in: add shrink-wrap.o.
29561 * config/i386/i386.c: include "shrink-wrap.h"
29562 * function.c: Likewise.
29563 (requires_stack_frame_p, next_block_for_reg,
29564 move_insn_for_shrink_wrap, prepare_shrink_wrap,
29565 dup_block_and_redirect): Move to shrink-wrap.c
29566 (thread_prologue_and_epilogue_insns): Extract three code segments
29567 as functions in shrink-wrap.c
29568 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
29569 shrink-wrap.h
29570 * shrink-wrap.c: New file.
29571 * shrink-wrap.h: New file.
29572
29573 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
29574
29575 * doc/extend.texi: Reflect current numbers of pragmas. Remove
29576 reference to Solaris.
29577
29578 2014-05-12 Mike Stump <mikestump@comcast.net>
29579
29580 PR other/31778
29581 * genattrtab.c (filename): Add.
29582 (convert_set_attr_alternative): Improve error message.
29583 (check_defs): Restore read_md_filename for error messages.
29584 (gen_insn): Save filename.
29585
29586 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
29587
29588 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
29589 -fno-local-ivars and -fivar-visibility.
29590 * c-family/c.opt: Make -Wshadow also implicitly enable
29591 -Wshadow-ivar.
29592
29593 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
29594
29595 * doc/tm.texi: Remove reference to deleted macro.
29596 * doc/tm.texi.in: Likewise.
29597
29598 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29599
29600 PR target/60991
29601 * config/avr/avr.c (avr_out_store_psi): Use correct constant
29602 to restore Y.
29603
29604 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
29605
29606 PR libgcc/61152
29607 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
29608 * config/arm/aout.h (License): Same.
29609 * config/arm/bpabi.h (License): Same.
29610 * config/arm/elf.h (License): Same.
29611 * config/arm/linux-elf.h (License): Same.
29612 * config/arm/linux-gas.h (License): Same.
29613 * config/arm/netbsd-elf.h (License): Same.
29614 * config/arm/uclinux-eabi.h (License): Same.
29615 * config/arm/uclinux-elf.h (License): Same.
29616 * config/arm/vxworks.h (License): Same.
29617
29618 2014-05-11 Jakub Jelinek <jakub@redhat.com>
29619
29620 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
29621 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
29622 number of operands to 3.
29623 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
29624 * tree-nested.c (convert_nonlocal_omp_clauses,
29625 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
29626 * gimplify.c (gimplify_scan_omp_clauses): Handle
29627 OMP_CLAUSE_LINEAR_STMT.
29628 * omp-low.c (lower_rec_input_clauses): Fix typo.
29629 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
29630 cast between Fortran boolean_type_node and C _Bool if
29631 needed.
29632
29633 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
29634
29635 PR tree-optimization/61136
29636 * wide-int.h (multiple_of_p): Define a version that doesn't return
29637 the quotient.
29638 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
29639 integer_zerop/const_binop pair.
29640 (multiple_of_p): Likewise, converting both operands to widest_int
29641 precision.
29642
29643 2014-05-09 Teresa Johnson <tejohnson@google.com>
29644
29645 * cgraphunit.c (analyze_functions): Use correct dump file.
29646
29647 2014-05-09 Florian Weimer <fweimer@redhat.com>
29648
29649 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
29650 expand_used_vars.
29651 (stack_protect_return_slot_p): New function.
29652 (expand_used_vars): Call stack_protect_decl_p and
29653 stack_protect_return_slot_p for -fstack-protector-strong.
29654
29655 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
29656 Andrew Haley <aph@redhat.com>
29657 Richard Sandiford <rdsandiford@googlemail.com>
29658
29659 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
29660 pages.
29661
29662 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
29663
29664 PR middle-end/61111
29665 * fold-const.c (fold_binary_loc): Changed width of mask.
29666
29667 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
29668
29669 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
29670 unsigned int initializers for regno_in, regno_out.
29671
29672 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
29673
29674 PR target/61055
29675 * config/avr/avr.md (cc): Add new attribute set_vzn.
29676 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
29677 Set cc insn attribute to set_vzn instead of set_zn for alternatives
29678 with INC, DEC or NEG.
29679 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
29680 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
29681 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
29682
29683 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29684
29685 Revert:
29686 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29687
29688 * wide-int.cc (UTItype): Define.
29689 (UDWtype): Define for appropriate W_TYPE_SIZE.
29690
29691 2014-05-09 Richard Biener <rguenther@suse.de>
29692
29693 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
29694 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
29695 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
29696 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
29697 ssa_propagate): Adjust.
29698
29699 2014-05-08 Jeff Law <law@redhat.com>
29700
29701 PR tree-optimization/61009
29702 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
29703 tri-state rather than a boolean. When a block is too big to
29704 thread through, inform caller via negative return value.
29705 (thread_across_edge): If a block was too big for normal threading,
29706 then it's too big for a joiner too, so remove temporary equivalences
29707 and return immediately.
29708
29709 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
29710 Matthias Klose <doko@ubuntu.com>
29711
29712 PR driver/61106
29713 * optc-gen.awk: Fix option handling for -Wunused-parameter.
29714
29715 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
29716
29717 PR target/59952
29718 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
29719
29720 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
29721
29722 PR target/61092
29723 * config/alpha/alpha.c: Include gimple-iterator.h.
29724 (alpha_gimple_fold_builtin): New function. Move
29725 ALPHA_BUILTIN_UMULH folding from ...
29726 (alpha_fold_builtin): ... here.
29727 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
29728
29729 2014-05-08 Wei Mi <wmi@google.com>
29730
29731 PR target/58066
29732 * config/i386/i386.c (ix86_compute_frame_layout): Update
29733 preferred_stack_boundary for call, expanded from tls descriptor.
29734 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
29735 to depend on SP register.
29736 (*tls_local_dynamic_base_32_gnu): Ditto.
29737 (*tls_local_dynamic_32_once): Ditto.
29738 (tls_global_dynamic_64_<mode>): Set
29739 ix86_tls_descriptor_calls_expanded_in_cfun.
29740 (tls_local_dynamic_base_64_<mode>): Ditto.
29741 (tls_global_dynamic_32): Set
29742 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
29743 to depend on SP register.
29744 (tls_local_dynamic_base_32): Ditto.
29745
29746 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29747
29748 * config/arm/arm_neon.h: Update comment.
29749 * config/arm/neon-docgen.ml: Delete.
29750 * config/arm/neon-gen.ml: Delete.
29751 * doc/arm-neon-intrinsics.texi: Update comment.
29752
29753 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29754
29755 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
29756 and v4sf versions.
29757 (vand, vorr, veor, vorn, vbic): Remove.
29758 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
29759 iterator.
29760 (neon_vsub_unspec): Likewise.
29761 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
29762
29763 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29764
29765 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
29766 (vadd_s16): Likewise.
29767 (vadd_s32): Likewise.
29768 (vadd_f32): Likewise.
29769 (vadd_u8): Likewise.
29770 (vadd_u16): Likewise.
29771 (vadd_u32): Likewise.
29772 (vadd_s64): Likewise.
29773 (vadd_u64): Likewise.
29774 (vaddq_s8): Likewise.
29775 (vaddq_s16): Likewise.
29776 (vaddq_s32): Likewise.
29777 (vaddq_s64): Likewise.
29778 (vaddq_f32): Likewise.
29779 (vaddq_u8): Likewise.
29780 (vaddq_u16): Likewise.
29781 (vaddq_u32): Likewise.
29782 (vaddq_u64): Likewise.
29783 (vmul_s8): Likewise.
29784 (vmul_s16): Likewise.
29785 (vmul_s32): Likewise.
29786 (vmul_f32): Likewise.
29787 (vmul_u8): Likewise.
29788 (vmul_u16): Likewise.
29789 (vmul_u32): Likewise.
29790 (vmul_p8): Likewise.
29791 (vmulq_s8): Likewise.
29792 (vmulq_s16): Likewise.
29793 (vmulq_s32): Likewise.
29794 (vmulq_f32): Likewise.
29795 (vmulq_u8): Likewise.
29796 (vmulq_u16): Likewise.
29797 (vmulq_u32): Likewise.
29798 (vsub_s8): Likewise.
29799 (vsub_s16): Likewise.
29800 (vsub_s32): Likewise.
29801 (vsub_f32): Likewise.
29802 (vsub_u8): Likewise.
29803 (vsub_u16): Likewise.
29804 (vsub_u32): Likewise.
29805 (vsub_s64): Likewise.
29806 (vsub_u64): Likewise.
29807 (vsubq_s8): Likewise.
29808 (vsubq_s16): Likewise.
29809 (vsubq_s32): Likewise.
29810 (vsubq_s64): Likewise.
29811 (vsubq_f32): Likewise.
29812 (vsubq_u8): Likewise.
29813 (vsubq_u16): Likewise.
29814 (vsubq_u32): Likewise.
29815 (vsubq_u64): Likewise.
29816 (vand_s8): Likewise.
29817 (vand_s16): Likewise.
29818 (vand_s32): Likewise.
29819 (vand_u8): Likewise.
29820 (vand_u16): Likewise.
29821 (vand_u32): Likewise.
29822 (vand_s64): Likewise.
29823 (vand_u64): Likewise.
29824 (vandq_s8): Likewise.
29825 (vandq_s16): Likewise.
29826 (vandq_s32): Likewise.
29827 (vandq_s64): Likewise.
29828 (vandq_u8): Likewise.
29829 (vandq_u16): Likewise.
29830 (vandq_u32): Likewise.
29831 (vandq_u64): Likewise.
29832 (vorr_s8): Likewise.
29833 (vorr_s16): Likewise.
29834 (vorr_s32): Likewise.
29835 (vorr_u8): Likewise.
29836 (vorr_u16): Likewise.
29837 (vorr_u32): Likewise.
29838 (vorr_s64): Likewise.
29839 (vorr_u64): Likewise.
29840 (vorrq_s8): Likewise.
29841 (vorrq_s16): Likewise.
29842 (vorrq_s32): Likewise.
29843 (vorrq_s64): Likewise.
29844 (vorrq_u8): Likewise.
29845 (vorrq_u16): Likewise.
29846 (vorrq_u32): Likewise.
29847 (vorrq_u64): Likewise.
29848 (veor_s8): Likewise.
29849 (veor_s16): Likewise.
29850 (veor_s32): Likewise.
29851 (veor_u8): Likewise.
29852 (veor_u16): Likewise.
29853 (veor_u32): Likewise.
29854 (veor_s64): Likewise.
29855 (veor_u64): Likewise.
29856 (veorq_s8): Likewise.
29857 (veorq_s16): Likewise.
29858 (veorq_s32): Likewise.
29859 (veorq_s64): Likewise.
29860 (veorq_u8): Likewise.
29861 (veorq_u16): Likewise.
29862 (veorq_u32): Likewise.
29863 (veorq_u64): Likewise.
29864 (vbic_s8): Likewise.
29865 (vbic_s16): Likewise.
29866 (vbic_s32): Likewise.
29867 (vbic_u8): Likewise.
29868 (vbic_u16): Likewise.
29869 (vbic_u32): Likewise.
29870 (vbic_s64): Likewise.
29871 (vbic_u64): Likewise.
29872 (vbicq_s8): Likewise.
29873 (vbicq_s16): Likewise.
29874 (vbicq_s32): Likewise.
29875 (vbicq_s64): Likewise.
29876 (vbicq_u8): Likewise.
29877 (vbicq_u16): Likewise.
29878 (vbicq_u32): Likewise.
29879 (vbicq_u64): Likewise.
29880 (vorn_s8): Likewise.
29881 (vorn_s16): Likewise.
29882 (vorn_s32): Likewise.
29883 (vorn_u8): Likewise.
29884 (vorn_u16): Likewise.
29885 (vorn_u32): Likewise.
29886 (vorn_s64): Likewise.
29887 (vorn_u64): Likewise.
29888 (vornq_s8): Likewise.
29889 (vornq_s16): Likewise.
29890 (vornq_s32): Likewise.
29891 (vornq_s64): Likewise.
29892 (vornq_u8): Likewise.
29893 (vornq_u16): Likewise.
29894 (vornq_u32): Likewise.
29895 (vornq_u64): Likewise.
29896
29897 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29898
29899 * wide-int.cc (UTItype): Define.
29900 (UDWtype): Define for appropriate W_TYPE_SIZE.
29901
29902 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
29903
29904 PR tree-optimization/59100
29905 * tree-ssa-phiopt.c: Include tree-inline.h.
29906 (neutral_element_p, absorbing_element_p): New functions.
29907 (value_replacement): Handle conditional binary operations with a
29908 neutral or absorbing element.
29909
29910 2014-05-08 Richard Biener <rguenther@suse.de>
29911
29912 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
29913 folding the expression.
29914 (valueize_expr): Remove.
29915 (visit_reference_op_load): Do not valueize the result of
29916 vn_get_expr_for.
29917 (simplify_binary_expression): Likewise.
29918 (simplify_unary_expression): Likewise.
29919
29920 2014-05-08 Richard Biener <rguenther@suse.de>
29921
29922 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
29923 looking at TYPE_ARG_TYPES.
29924
29925 2014-05-08 Richard Biener <rguenther@suse.de>
29926
29927 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
29928 pointer propagation special-case.
29929
29930 2014-05-08 Bin Cheng <bin.cheng@arm.com>
29931
29932 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
29933 core part of address expressions.
29934
29935 2014-05-08 Alan Modra <amodra@gmail.com>
29936
29937 PR target/60737
29938 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
29939 loads and stores when -mno-strict-align at any alignment.
29940 (expand_block_clear): Similarly. Also correct calculation of
29941 instruction count.
29942
29943 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
29944
29945 PR middle-end/39246
29946 * tree-complex.c (expand_complex_move): Keep line info when expanding
29947 complex move.
29948 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
29949 of complex expression. Use new argument to display correct location
29950 for values coming from phi statement.
29951 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
29952 (warn_uninitialized_phi): Pass location of phi argument to
29953 warn_uninit.
29954 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
29955 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
29956
29957 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
29958
29959 * config/rs6000/predicates.md (indexed_address_mem): New.
29960 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
29961 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
29962 fpstore_ux, fpstore_u.
29963 (sign_extend, indexed, update): New.
29964 (cell_micro): Adjust.
29965 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
29966 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
29967 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
29968 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
29969 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
29970 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
29971 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
29972 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
29973 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
29974 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
29975 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
29976 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
29977 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
29978 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
29979 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
29980
29981 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
29982 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
29983 *vsx_extract_<mode>_store): Adjust.
29984 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
29985 is_cracked_insn, insn_must_be_first_in_group,
29986 insn_must_be_last_in_group): Adjust.
29987
29988 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
29989 Adjust.
29990 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
29991 ppc440-fpstore): Adjust.
29992 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
29993 ppc476-fpstore): Adjust.
29994 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
29995 ppc601-fpstore): Adjust.
29996 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
29997 Adjust.
29998 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
29999 Adjust.
30000 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
30001 ppc7450-fpstore): Adjust.
30002 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
30003 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
30004 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
30005 Adjust.
30006 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
30007 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
30008 cell-fpstore, cell-fpstore-update): Adjust.
30009 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
30010 ppce300c3_store, ppce300c3_fpstore): Adjust.
30011 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
30012 e500mc_fpstore): Adjust.
30013 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
30014 e500mc64_store, e500mc64_fpstore): Adjust.
30015 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
30016 e5500_fpstore): Adjust.
30017 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
30018 e6500_fpstore): Adjust.
30019 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
30020 Adjust.
30021 * config/rs6000/power4.md (power4-load, power4-load-ext,
30022 power4-load-ext-update, power4-load-ext-update-indexed,
30023 power4-load-update-indexed, power4-load-update, power4-fpload,
30024 power4-fpload-update, power4-store, power4-store-update,
30025 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
30026 Adjust.
30027 * config/rs6000/power5.md (power5-load, power5-load-ext,
30028 power5-load-ext-update, power5-load-ext-update-indexed,
30029 power5-load-update-indexed, power5-load-update, power5-fpload,
30030 power5-fpload-update, power5-store, power5-store-update,
30031 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
30032 Adjust.
30033 * config/rs6000/power6.md (power6-load, power6-load-ext,
30034 power6-load-update, power6-load-update-indexed,
30035 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
30036 power6-fpload-update, power6-store, power6-store-update,
30037 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
30038 Adjust.
30039 * config/rs6000/power7.md (power7-load, power7-load-ext,
30040 power7-load-update, power7-load-update-indexed,
30041 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
30042 power7-fpload-update, power7-store, power7-store-update,
30043 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
30044 Adjust.
30045 * config/rs6000/power8.md (power8-load, power8-load-update,
30046 power8-load-ext, power8-load-ext-update, power8-fpload,
30047 power8-fpload-update, power8-store, power8-store-update-indexed,
30048 power8-fpstore, power8-fpstore-update): Adjust.
30049 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
30050 Adjust.
30051 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
30052 titan_lsu_store, titan_lsu_fpstore): Adjust.
30053 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
30054
30055 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
30056
30057 PR target/60884
30058 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
30059 unrolled byte insns. Emit address increments after move insns.
30060
30061 2014-05-07 David Malcolm <dmalcolm@redhat.com>
30062
30063 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
30064 const_gimple, rather than a gimple.
30065 (gimple_call_builtin_p): Likewise, for the three variants.
30066
30067 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
30068 (gimple_call_builtin_p): Likewise, for the three variants.
30069
30070 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30071
30072 PR tree-optimization/61095
30073 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
30074
30075 2014-05-07 Richard Biener <rguenther@suse.de>
30076
30077 PR tree-optimization/61034
30078 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
30079 (maybe_skip_until): Use translate to take into account
30080 lattices when trying to do disambiguations.
30081 (get_continuation_for_phi_1): Likewise.
30082 (get_continuation_for_phi): Adjust for added translate arguments.
30083 (walk_non_aliased_vuses): Likewise.
30084 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
30085 (walk_non_aliased_vuses): Likewise.
30086 (call_may_clobber_ref_p_1): Declare.
30087 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
30088 calls. Stop early if we are only supposed to disambiguate.
30089 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
30090
30091 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
30092
30093 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
30094 Emit an error when the function has arguments.
30095
30096 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
30097
30098 * cfgloop.h (unswitch_loops): Remove.
30099 * doc/passes.texi: Remove references to loop-unswitch.c
30100 * timevar.def (TV_LOOP_UNSWITCH): Remove.
30101
30102 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
30103
30104 * tree-vect-data-refs.c (vect_grouped_load_supported): New
30105 check for loads group of length 3.
30106 (vect_permute_load_chain): New permutations for loads group of
30107 length 3.
30108 * tree-vect-stmts.c (vect_model_load_cost): Change cost
30109 of vec_perm_shuffle for the new permutations.
30110
30111 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
30112
30113 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
30114 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
30115 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
30116 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
30117 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
30118 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
30119 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
30120 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
30121
30122 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
30123
30124 * loop-unswitch.c: Delete.
30125
30126 2014-05-07 Richard Biener <rguenther@suse.de>
30127
30128 * config.gcc: Always set need_64bit_hwint to yes.
30129
30130 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
30131
30132 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
30133 of using optimize_size.
30134
30135 2014-05-06 Mike Stump <mikestump@comcast.net>
30136
30137 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
30138
30139 2014-05-06 Joseph Myers <joseph@codesourcery.com>
30140
30141 * config/i386/sse.md (*mov<mode>_internal)
30142 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
30143 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
30144 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
30145 (*<code><mode>3, *andnot<mode>3<mask_name>)
30146 (<mask_codefor><code><mode>3<mask_name>): Only consider
30147 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
30148
30149 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
30150
30151 Revert:
30152 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
30153
30154 * lra-constraints.c (valid_address_p): Move earlier in file.
30155 Add a constraint argument to the address_info version.
30156 (satisfies_memory_constraint_p): New function.
30157 (satisfies_address_constraint_p): Likewise.
30158 (process_alt_operands, curr_insn_transform): Use them.
30159 (process_address): Pass the constraint to valid_address_p when
30160 checking address operands.
30161
30162 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
30163
30164 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
30165 to their respective blocks. Fix inadvertent use of "node".
30166
30167 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
30168
30169 * emit-rtl.c (init_derived_machine_modes): New functionm, split
30170 out from...
30171 (init_emit_once): ...here.
30172 * rtl.h (init_derived_machine_modes): Declare.
30173 * toplev.c (do_compile): Call it even if no_backend.
30174
30175 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
30176 Mike Stump <mikestump@comcast.net>
30177 Richard Sandiford <rdsandiford@googlemail.com>
30178 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30179
30180 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
30181 (rtx_equal_for_memref_p): Update comment.
30182 (adjust_offset_for_component_ref): Use wide-int interfaces.
30183 * builtins.c (get_object_alignment_2): Likewise.
30184 (c_readstr): Likewise.
30185 (target_char_cast): Add comment.
30186 (determine_block_size): Use wide-int interfaces.
30187 (expand_builtin_signbit): Likewise.
30188 (fold_builtin_int_roundingfn): Likewise.
30189 (fold_builtin_bitop): Likewise.
30190 (fold_builtin_bswap): Likewise.
30191 (fold_builtin_logarithm): Use signop.
30192 (fold_builtin_pow): Likewise.
30193 (fold_builtin_memory_op): Use wide-int interfaces.
30194 (fold_builtin_object_size): Likewise.
30195 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
30196 nb_iterations_estimate.
30197 (record_niter_bound): Use wide-int interfaces.
30198 (get_estimated_loop_iterations_int): Likewise.
30199 (get_estimated_loop_iterations): Likewise.
30200 (get_max_loop_iterations): Likewise.
30201 * cfgloop.h: Include wide-int.h.
30202 (struct nb_iter_bound): Change bound to widest_int.
30203 (struct loop): Change nb_iterations_upper_bound and
30204 nb_iterations_estimate to widest_int.
30205 (record_niter_bound): Switch to use widest_int.
30206 (get_estimated_loop_iterations): Likewise.
30207 (get_max_loop_iterations): Likewise.
30208 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
30209 update for wide-int.
30210 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
30211 * combine.c (try_combine): Likewise.
30212 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
30213 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
30214 interfaces.
30215 (aarch64_float_const_representable_p): Likewise.
30216 * config/arc/arc.c: Include wide-int.h.
30217 (arc_can_use_doloop_p): Use wide-int interfaces.
30218 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
30219 (vfp3_const_double_index): Likewise.
30220 * config/avr/avr.c (avr_out_round): Likewise.
30221 (avr_fold_builtin): Likewise.
30222 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
30223 (bfin_can_use_doloop_p): Likewise.
30224 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
30225 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
30226 * config/i386/i386.c: Include wide-int.h.
30227 (ix86_data_alignment): Use wide-int interfaces.
30228 (ix86_local_alignment): Likewise.
30229 (ix86_emit_swsqrtsf): Update real_from_integer.
30230 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
30231 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30232 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
30233 (zero_constant): Likewise.
30234 (input_operand): Likewise.
30235 (splat_input_operand): Likewise.
30236 (non_logical_cint_operand): Change const_double to const_wide_int.
30237 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
30238 (easy_altivec_constant): Remove comment.
30239 (paired_expand_vector_init): Use CONSTANT_P.
30240 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
30241 (rs6000_emit_move): Update checks.
30242 (rs6000_aggregate_candidate): Use wide-int interfaces.
30243 (rs6000_expand_ternop_builtin): Likewise.
30244 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
30245 (rs6000_assemble_integer): Likewise.
30246 (rs6000_hash_constant): Likewise.
30247 (output_toc): Likewise.
30248 (rs6000_rtx_costs): Likewise.
30249 (rs6000_emit_swrsqrt); Update call to real_from_integer.
30250 * config/rs6000/rs6000-c.c: Include wide-int.h.
30251 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
30252 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
30253 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
30254 Handle CONST_WIDE_INT.
30255 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
30256 Use tree_fits_uhwi_p.
30257 * config/sparc/sparc.c: Include wide-int.h.
30258 (sparc_fold_builtin): Use wide-int interfaces.
30259 * config/vax/vax.c: Include wide-int.h.
30260 (vax_float_literal): Use real_from_integer.
30261 * coretypes.h (struct hwivec_def): New.
30262 (hwivec): New.
30263 (const_hwivec): New.
30264 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
30265 (equiv_constant): Handle CONST_WIDE_INT.
30266 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
30267 (cselib_hash_rtx): Handle CONST_WIDE_INT.
30268 * dbxout.c (stabstr_U): Use wide-int interfaces.
30269 (dbxout_type): Update to use cst_fits_shwi_p.
30270 * defaults.h (LOG2_BITS_PER_UNIT): Define.
30271 (TARGET_SUPPORTS_WIDE_INT): Add default.
30272 * dfp.c: Include wide-int.h.
30273 (decimal_real_to_integer2): Use wide-int interfaces and rename to
30274 decimal_real_to_integer.
30275 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
30276 decimal_real_to_integer.
30277 * doc/generic.texi (Constant expressions): Update for wide_int.
30278 * doc/rtl.texi (const_double): Likewise.
30279 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
30280 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
30281 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
30282 (REAL_VALUE_FROM_INT): Remove.
30283 (TARGET_SUPPORTS_WIDE_INT): New.
30284 * doc/tm.texi: Regenerate.
30285 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
30286 * double-int.h: Include wide-int.h.
30287 (struct wi::int_traits): New.
30288 * dwarf2out.c (get_full_len): New.
30289 (dw_val_equal_p): Add case dw_val_class_wide_int.
30290 (size_of_loc_descr): Likewise.
30291 (output_loc_operands): Likewise.
30292 (insert_double): Remove.
30293 (insert_wide_int): New.
30294 (add_AT_wide): New.
30295 (print_die): Add case dw_val_class_wide_int.
30296 (attr_checksum): Likewise.
30297 (attr_checksum_ordered): Likewise.
30298 (same_dw_val_p): Likewise.
30299 (size_of_die): Likewise.
30300 (value_format): Likewise.
30301 (output_die): Likewise.
30302 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
30303 Use wide-int.
30304 (clz_loc_descriptor): Use wide-int interfaces.
30305 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
30306 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
30307 (round_up_to_align): Use wide-int interfaces.
30308 (field_byte_offset): Likewise.
30309 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
30310 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
30311 CONST_DOUBLE handling. Use wide-int interfaces.
30312 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
30313 (gen_enumeration_type_die): Use add_AT_wide.
30314 (hash_loc_operands): Add case dw_val_class_wide_int.
30315 (compare_loc_operands): Likewise.
30316 * dwarf2out.h: Include wide-int.h.
30317 (wide_int_ptr): New.
30318 (enum dw_val_class): Add dw_val_class_wide_int.
30319 (struct dw_val_struct): Add val_wide.
30320 * emit-rtl.c (const_wide_int_htab): New.
30321 (const_wide_int_htab_hash): New.
30322 (const_wide_int_htab_eq): New.
30323 (lookup_const_wide_int): New.
30324 (const_double_htab_hash): Use wide-int interfaces.
30325 (const_double_htab_eq): Likewise.
30326 (rtx_to_double_int): Conditionally compile for wide-int.
30327 (immed_double_int_const): Rename to immed_wide_int_const and
30328 update for wide-int.
30329 (immed_double_const): Conditionally compile for wide-int.
30330 (init_emit_once): Use wide-int interfaces.
30331 * explow.c (plus_constant): Likewise.
30332 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
30333 (lshift_value): Use wide-int interfaces.
30334 (expand_mult): Likewise.
30335 (choose_multiplier): Likewise.
30336 (expand_smod_pow2): Likewise.
30337 (make_tree): Likewise.
30338 * expr.c (convert_modes): Consolidate handling of constants.
30339 Use wide-int interfaces.
30340 (emit_group_load_1): Add note.
30341 (store_expr): Update comment.
30342 (get_inner_reference): Use wide-int interfaces.
30343 (expand_constructor): Update comment.
30344 (expand_expr_real_2): Use wide-int interfaces.
30345 (expand_expr_real_1): Likewise.
30346 (reduce_to_bit_field_precision): Likewise.
30347 (const_vector_from_tree): Likewise.
30348 * final.c: Include wide-int-print.h.
30349 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
30350 * fixed-value.c: Include wide-int.h.
30351 (fixed_from_string): Use wide-int interfaces.
30352 (fixed_to_decimal): Likewise.
30353 (fixed_convert_from_real): Likewise.
30354 (real_convert_from_fixed): Likewise.
30355 * fold-const.h (mem_ref_offset): Return an offset_int.
30356 (div_if_zero_remainder): Remove code parameter.
30357 * fold-const.c (div_if_zero_remainder): Remove code parameter.
30358 Use wide-int interfaces.
30359 (may_negate_without_overflow_p): Use wide-int interfaces.
30360 (negate_expr_p): Likewise.
30361 (fold_negate_expr): Likewise.
30362 (int_const_binop_1): Likewise.
30363 (const_binop): Likewise.
30364 (fold_convert_const_int_from_int): Likewise.
30365 (fold_convert_const_int_from_real): Likewise.
30366 (fold_convert_const_int_from_fixed): Likewise.
30367 (fold_convert_const_fixed_from_int): Likewise.
30368 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
30369 (sign_bit_p): Use wide-int interfaces.
30370 (make_range_step): Likewise.
30371 (build_range_check): Likewise. Pass an integer of the correct type
30372 instead of using integer_one_node.
30373 (range_predecessor): Pass an integer of the correct type instead
30374 of using integer_one_node.
30375 (range_successor): Likewise.
30376 (merge_ranges): Likewise.
30377 (unextend): Use wide-int interfaces.
30378 (extract_muldiv_1): Likewise.
30379 (fold_div_compare): Likewise.
30380 (fold_single_bit_test): Likewise.
30381 (fold_sign_changed_comparison): Likewise.
30382 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
30383 (fold_plusminus_mult_expr): Use wide-int interfaces.
30384 (native_encode_int): Likewise.
30385 (native_interpret_int): Likewise.
30386 (fold_unary_loc): Likewise.
30387 (pointer_may_wrap_p): Likewise.
30388 (size_low_cst): Likewise.
30389 (mask_with_tz): Likewise.
30390 (fold_binary_loc): Likewise.
30391 (fold_ternary_loc): Likewise.
30392 (multiple_of_p): Likewise.
30393 (tree_call_nonnegative_warnv_p): Update calls to
30394 tree_int_cst_min_precision and real_from_integer.
30395 (fold_negate_const): Use wide-int interfaces.
30396 (fold_abs_const): Likewise.
30397 (fold_relational_const): Use tree_int_cst_lt.
30398 (round_up_loc): Use wide-int interfaces.
30399 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
30400 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
30401 * gengtype.c: Remove include of double-int.h.
30402 (do_typedef): Use wide-int interfaces.
30403 (open_base_files): Add wide-int.h.
30404 (main): Add offset_int and widest_int typedefs.
30405 * gengtype-lex.l: Handle "^".
30406 (CXX_KEYWORD): Add "static".
30407 * gengtype-parse.c (require3): New.
30408 (require_template_declaration): Handle constant template arguments
30409 and nested templates.
30410 * gengtype-state.c: Don't include "double-int.h".
30411 * genpreds.c (write_one_predicate_function): Update comment.
30412 (write_tm_constrs_h): Add check for hval and lval use in
30413 CONST_WIDE_INT.
30414 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
30415 (add_to_sequence): Likewise.
30416 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
30417 and const_double_operand.
30418 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
30419 interfaces.
30420 * gimple-fold.c (get_base_constructor): Likewise.
30421 (fold_array_ctor_reference): Likewise.
30422 (fold_nonarray_ctor_reference): Likewise.
30423 (fold_const_aggregate_ref_1): Likewise.
30424 (gimple_val_nonnegative_real_p): Likewise.
30425 (gimple_fold_indirect_ref): Likewise.
30426 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
30427 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
30428 (struct slsr_cand_d): Change index to be widest_int.
30429 (struct incr_info_d): Change incr to be widest_int.
30430 (alloc_cand_and_find_basis): Use wide-int interfaces.
30431 (slsr_process_phi): Likewise.
30432 (backtrace_base_for_ref): Likewise. Return a widest_int.
30433 (restructure_reference): Take a widest_int instead of a double_int.
30434 (slsr_process_ref): Use wide-int interfaces.
30435 (create_mul_ssa_cand): Likewise.
30436 (create_mul_imm_cand): Likewise.
30437 (create_add_ssa_cand): Likewise.
30438 (create_add_imm_cand): Take a widest_int instead of a double_int.
30439 (slsr_process_add): Use wide-int interfaces.
30440 (slsr_process_cast): Likewise.
30441 (slsr_process_copy): Likewise.
30442 (dump_candidate): Likewise.
30443 (dump_incr_vec): Likewise.
30444 (replace_ref): Likewise.
30445 (cand_increment): Likewise. Return a widest_int.
30446 (cand_abs_increment): Likewise.
30447 (replace_mult_candidate): Take a widest_int instead of a double_int.
30448 (replace_unconditional_candidate): Use wide-int interfaces.
30449 (incr_vec_index): Take a widest_int instead of a double_int.
30450 (create_add_on_incoming_edge): Likewise.
30451 (create_phi_basis): Use wide-int interfaces.
30452 (replace_conditional_candidate): Likewise.
30453 (record_increment): Take a widest_int instead of a double_int.
30454 (record_phi_increments): Use wide-int interfaces.
30455 (phi_incr_cost): Take a widest_int instead of a double_int.
30456 (lowest_cost_path): Likewise.
30457 (total_savings): Likewise.
30458 (analyze_increments): Use wide-int interfaces.
30459 (ncd_with_phi): Take a widest_int instead of a double_int.
30460 (ncd_of_cand_and_phis): Likewise.
30461 (nearest_common_dominator_for_cands): Likewise.
30462 (insert_initializers): Use wide-int interfaces.
30463 (all_phi_incrs_profitable): Likewise.
30464 (replace_one_candidate): Likewise.
30465 (replace_profitable_candidates): Likewise.
30466 * godump.c: Include wide-int-print.h.
30467 (go_output_typedef): Use wide-int interfaces.
30468 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
30469 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
30470 (build_loop_iteration_domains): Likewise.
30471 * hooks.h: Include wide-int.h rather than double-int.h.
30472 (hook_bool_dint_dint_uint_bool_true): Delete.
30473 (hook_bool_wint_wint_uint_bool_true): Declare.
30474 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
30475 (hook_bool_wint_wint_uint_bool_true): New.
30476 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
30477 interfaces.
30478 (ubsan_expand_si_overflow_mul_check): Likewise.
30479 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
30480 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
30481 (get_ancestor_addr_info): Likewise.
30482 (ipa_modify_call_arguments): Likewise.
30483 * loop-doloop.c (doloop_modify): Likewise.
30484 (doloop_optimize): Likewise.
30485 * loop-iv.c (iv_number_of_iterations): Likewise.
30486 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
30487 (unroll_loop_constant_iterations): Likewise.
30488 (decide_unroll_runtime_iterations): Likewise.
30489 (unroll_loop_runtime_iterations): Likewise.
30490 (decide_peel_simple): Likewise.
30491 (decide_unroll_stupid): Likewise.
30492 * lto-streamer-in.c (streamer_read_wi): Add.
30493 (input_cfg): Use wide-int interfaces.
30494 (lto_input_tree_1): Likewise.
30495 * lto-streamer-out.c (streamer_write_wi): Add.
30496 (hash_tree): Use wide-int interfaces.
30497 (output_cfg): Likewise.
30498 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
30499 (GTFILES): Add wide-int.h and signop.h.
30500 (TAGS): Look for .cc files too.
30501 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
30502 * optabs.c (expand_subword_shift): Likewise.
30503 (expand_doubleword_shift): Likewise.
30504 (expand_absneg_bit): Likewise.
30505 (expand_copysign_absneg): Likewise.
30506 (expand_copysign_bit): Likewise.
30507 * postreload.c (reload_cse_simplify_set): Likewise.
30508 * predict.c (predict_iv_comparison): Likewise.
30509 * pretty-print.h: Include wide-int-print.h.
30510 (pp_wide_int) New.
30511 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
30512 * print-tree.c: Include wide-int-print.h.
30513 (print_node_brief): Use wide-int interfaces.
30514 (print_node): Likewise.
30515 * read-rtl.c (validate_const_wide_int): New.
30516 (read_rtx_code): Add CONST_WIDE_INT case.
30517 * real.c: Include wide-int.h.
30518 (real_to_integer2): Delete.
30519 (real_to_integer): New function, returning a wide_int.
30520 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
30521 (ten_to_ptwo): Update call to real_from_integer.
30522 (real_digit): Likewise.
30523 * real.h: Include signop.h, wide-int.h and insn-modes.h.
30524 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
30525 (REAL_VALUE_TO_INT): Delete.
30526 (real_to_integer): Declare a wide-int form.
30527 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
30528 * recog.c (const_int_operand): Improve comment.
30529 (const_scalar_int_operand): New.
30530 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
30531 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
30532 (split_double): Likewise.
30533 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
30534 (rtx_size): Likewise.
30535 (rtx_alloc_stat_v): New.
30536 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
30537 (cwi_output_hex): New.
30538 (iterative_hash_rtx): Handle CONST_WIDE_INT.
30539 (cwi_check_failed_bounds): New.
30540 * rtl.def (CONST_WIDE_INT): New.
30541 * rtl.h: Include <utility> and wide-int.h.
30542 (struct hwivec_def): New.
30543 (CWI_GET_NUM_ELEM): New.
30544 (CWI_PUT_NUM_ELEM): New.
30545 (struct rtx_def): Add num_elem and hwiv.
30546 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
30547 (CASE_CONST_UNIQUE): Likewise.
30548 (CASE_CONST_ANY): Likewise.
30549 (CONST_SCALAR_INT_P): Likewise.
30550 (CONST_WIDE_INT_P): New.
30551 (CWI_ELT): New.
30552 (HWIVEC_CHECK): New.
30553 (cwi_check_failed_bounds): New.
30554 (CWI_ELT): New.
30555 (HWIVEC_CHECK): New.
30556 (CONST_WIDE_INT_VEC) New.
30557 (CONST_WIDE_INT_NUNITS) New.
30558 (CONST_WIDE_INT_ELT) New.
30559 (rtx_mode_t): New type.
30560 (wi::int_traits <rtx_mode_t>): New.
30561 (wi::shwi): New.
30562 (wi::min_value): New.
30563 (wi::max_value): New.
30564 (rtx_alloc_v) New.
30565 (const_wide_int_alloc): New.
30566 (immed_wide_int_const): New.
30567 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
30568 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
30569 * signop.h: New file.
30570 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
30571 (simplify_const_unary_operation): Use wide-int interfaces.
30572 (simplify_binary_operation_1): Likewise.
30573 (simplify_const_binary_operation): Likewise.
30574 (simplify_const_relational_operation): Likewise.
30575 (simplify_immed_subreg): Likewise.
30576 * stmt.c (expand_case): Likewise.
30577 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
30578 signop rather than a bool.
30579 * stor-layout.c (layout_type): Use wide-int interfaces.
30580 (initialize_sizetypes): Update calls to
30581 set_min_and_max_values_for_integral_type.
30582 (set_min_and_max_values_for_integral_type): Take a signop rather
30583 than a bool. Use wide-int interfaces.
30584 (fixup_signed_type): Update accordingly. Remove
30585 HOST_BITS_PER_DOUBLE_INT limit.
30586 (fixup_unsigned_type): Likewise.
30587 * system.h (STATIC_CONSTANT_P): New.
30588 (STATIC_ASSERT): New.
30589 * target.def (can_use_doloop_p): Take widest_ints rather than
30590 double_ints.
30591 * target.h: Include wide-int.h rather than double-int.h.
30592 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
30593 than double_ints.
30594 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
30595 rather than INT_CST_LT_UNSIGNED.
30596 (can_use_doloop_if_innermost): Take widest_ints rather than
30597 double_ints.
30598 * tree-affine.c: Include wide-int-print.h.
30599 (double_int_ext_for_comb): Delete.
30600 (wide_int_ext_for_comb): New.
30601 (aff_combination_zero): Use wide-int interfaces.
30602 (aff_combination_const): Take a widest_int instead of a double_int.
30603 (aff_combination_elt): Use wide-int interfaces.
30604 (aff_combination_scale): Take a widest_int instead of a double_int.
30605 (aff_combination_add_elt): Likewise.
30606 (aff_combination_add_cst): Likewise.
30607 (aff_combination_add): Use wide-int interfaces.
30608 (aff_combination_convert): Likewise.
30609 (tree_to_aff_combination): Likewise.
30610 (add_elt_to_tree): Take a widest_int instead of a double_int.
30611 (aff_combination_to_tree): Use wide-int interfaces.
30612 (aff_combination_remove_elt): Likewise.
30613 (aff_combination_add_product): Take a widest_int instead of
30614 a double_int.
30615 (aff_combination_mult): Use wide-int interfaces.
30616 (aff_combination_expand): Likewise.
30617 (double_int_constant_multiple_p): Delete.
30618 (wide_int_constant_multiple_p): New.
30619 (aff_combination_constant_multiple_p): Take a widest_int pointer
30620 instead of a double_int pointer.
30621 (print_aff): Use wide-int interfaces.
30622 (get_inner_reference_aff): Take a widest_int pointer
30623 instead of a double_int pointer.
30624 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
30625 * tree-affine.h: Include wide-int.h.
30626 (struct aff_comb_elt): Change type of coef to widest_int.
30627 (struct affine_tree_combination): Change type of offset to widest_int.
30628 (double_int_ext_for_comb): Delete.
30629 (wide_int_ext_for_comb): New.
30630 (aff_combination_const): Use widest_int instead of double_int.
30631 (aff_combination_scale): Likewise.
30632 (aff_combination_add_elt): Likewise.
30633 (aff_combination_constant_multiple_p): Likewise.
30634 (get_inner_reference_aff): Likewise.
30635 (aff_comb_cannot_overlap_p): Likewise.
30636 (aff_combination_zero_p): Use wide-int interfaces.
30637 * tree.c: Include tree.h.
30638 (init_ttree): Use make_int_cst.
30639 (tree_code_size): Removed code for INTEGER_CST case.
30640 (tree_size): Add INTEGER_CST case.
30641 (make_node_stat): Update comment.
30642 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
30643 (build_int_cst_type): Use wide-int interfaces.
30644 (double_int_to_tree): Likewise.
30645 (double_int_fits_to_tree_p): Delete.
30646 (force_fit_type_double): Delete.
30647 (force_fit_type): New.
30648 (int_cst_hash_hash): Use wide-int interfaces.
30649 (int_cst_hash_eq): Likewise.
30650 (build_int_cst_wide): Delete.
30651 (wide_int_to_tree): New.
30652 (cache_integer_cst): Use wide-int interfaces.
30653 (build_low_bits_mask): Likewise.
30654 (cst_and_fits_in_hwi): Likewise.
30655 (real_value_from_int_cst): Likewise.
30656 (make_int_cst_stat): New.
30657 (integer_zerop): Use wide_int interfaces.
30658 (integer_onep): Likewise.
30659 (integer_all_onesp): Likewise.
30660 (integer_pow2p): Likewise.
30661 (integer_nonzerop): Likewise.
30662 (tree_log2): Likewise.
30663 (tree_floor_log2): Likewise.
30664 (tree_ctz): Likewise.
30665 (int_size_in_bytes): Likewise.
30666 (mem_ref_offset): Return an offset_int rather than a double_int.
30667 (build_type_attribute_qual_variant): Use wide_int interfaces.
30668 (type_hash_eq): Likewise
30669 (tree_int_cst_equal): Likewise.
30670 (tree_int_cst_lt): Delete.
30671 (tree_int_cst_compare): Likewise.
30672 (tree_fits_shwi_p): Use wide_int interfaces.
30673 (tree_fits_uhwi_p): Likewise.
30674 (tree_int_cst_sign_bit): Likewise.
30675 (tree_int_cst_sgn): Likewise.
30676 (tree_int_cst_min_precision): Take a signop rather than a bool.
30677 (simple_cst_equal): Use wide_int interfaces.
30678 (compare_tree_int): Likewise.
30679 (iterative_hash_expr): Likewise.
30680 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
30681 INT_CST_LT.
30682 (get_type_static_bounds): Use wide_int interfaces.
30683 (tree_int_cst_elt_check_failed): New.
30684 (build_common_tree_nodes): Reordered to set prec before filling in
30685 value.
30686 (int_cst_value): Check cst_and_fits_in_hwi.
30687 (widest_int_cst_value): Use wide_int interfaces.
30688 (upper_bound_in_type): Likewise.
30689 (lower_bound_in_type): Likewise.
30690 (num_ending_zeros): Likewise.
30691 (drop_tree_overflow): Likewise.
30692 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
30693 (gen_conditions_for_pow_cst_base): Likewise.
30694 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
30695 (group_case_labels_stmt): Use wide-int interfaces.
30696 (verify_gimple_assign_binary): Likewise.
30697 (print_loop): Likewise.
30698 * tree-chrec.c (tree_fold_binomial): Likewise.
30699 * tree-core.h (struct tree_base): Add int_length.
30700 (struct tree_int_cst): Change rep of value.
30701 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
30702 (dr_may_alias_p): Likewise.
30703 (max_stmt_executions_tree): Likewise.
30704 * tree.def (INTEGER_CST): Update comment.
30705 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
30706 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
30707 * tree-dump.c: Include wide-int.h and wide-int-print.h.
30708 (dequeue_and_dump): Use wide-int interfaces.
30709 * tree.h: Include wide-int.h.
30710 (NULL_TREE): Moved to earlier loc in file.
30711 (TREE_INT_CST_ELT_CHECK): New.
30712 (tree_int_cst_elt_check_failed): New.
30713 (TYPE_SIGN): New.
30714 (TREE_INT_CST): Delete.
30715 (TREE_INT_CST_LOW): Use wide-int interfaces.
30716 (TREE_INT_CST_HIGH): Delete.
30717 (TREE_INT_CST_NUNITS): New.
30718 (TREE_INT_CST_EXT_NUNITS): Likewise.
30719 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
30720 (TREE_INT_CST_ELT): Likewise.
30721 (INT_CST_LT): Delete.
30722 (tree_int_cst_elt_check): New (two forms).
30723 (type_code_size): Update comment.
30724 (make_int_cst_stat, make_int_cst): New.
30725 (tree_to_double_int): Delete.
30726 (double_int_fits_to_tree_p): Delete.
30727 (force_fit_type_double): Delete.
30728 (build_int_cstu): Replace with out-of-line function.
30729 (build_int_cst_wide): Delete.
30730 (tree_int_cst_lt): Define inline.
30731 (tree_int_cst_le): New.
30732 (tree_int_cst_compare): Define inline.
30733 (tree_int_cst_min_precision): Take a signop rather than a bool.
30734 (wi::int_traits <const_tree>): New.
30735 (wi::int_traits <tree>): New.
30736 (wi::extended_tree): New.
30737 (wi::int_traits <wi::extended_tree>): New.
30738 (wi::to_widest): New.
30739 (wi::to_offset): New.
30740 (wi::fits_to_tree_p): New.
30741 (wi::min_value): New.
30742 (wi::max_value): New.
30743 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
30744 (copy_tree_body_r): Likewise.
30745 * tree-object-size.c (compute_object_offset): Likewise.
30746 (addr_object_size): Likewise.
30747 * tree-predcom.c: Include wide-int-print.h.
30748 (struct dref_d): Change type of offset to widest_int.
30749 (dump_dref): Call wide-int printer.
30750 (aff_combination_dr_offset): Use wide-int interfaces.
30751 (determine_offset): Take a widest_int pointer rather than a
30752 double_int pointer.
30753 (split_data_refs_to_components): Use wide-int interfaces.
30754 (suitable_component_p): Likewise.
30755 (order_drefs): Likewise.
30756 (add_ref_to_chain): Likewise.
30757 (valid_initializer_p): Likewise.
30758 (determine_roots_comp): Likewise.
30759 * tree-pretty-print.c: Include wide-int-print.h.
30760 (dump_generic_node): Use wide-int interfaces.
30761 * tree-sra.c (sra_ipa_modify_expr): Likewise.
30762 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
30763 (move_fixed_address_to_symbol): Likewise.
30764 (move_hint_to_base): Likewise.
30765 (move_pointer_to_base): Likewise.
30766 (move_variant_to_index): Likewise.
30767 (most_expensive_mult_to_index): Likewise.
30768 (addr_to_parts): Likewise.
30769 (copy_ref_info): Likewise.
30770 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
30771 (indirect_refs_may_alias_p): Likewise.
30772 (stmt_kills_ref_p_1): Likewise.
30773 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
30774 * tree-ssa-ccp.c: Update comment at top of file. Include
30775 wide-int-print.h.
30776 (struct prop_value_d): Change type of mask to widest_int.
30777 (extend_mask): New function.
30778 (dump_lattice_value): Use wide-int interfaces.
30779 (get_default_value): Likewise.
30780 (set_constant_value): Likewise.
30781 (set_value_varying): Likewise.
30782 (valid_lattice_transition): Likewise.
30783 (set_lattice_value): Likewise.
30784 (value_to_double_int): Delete.
30785 (value_to_wide_int): New.
30786 (get_value_from_alignment): Use wide-int interfaces.
30787 (get_value_for_expr): Likewise.
30788 (do_dbg_cnt): Likewise.
30789 (ccp_finalize): Likewise.
30790 (ccp_lattice_meet): Likewise.
30791 (bit_value_unop_1): Use widest_ints rather than double_ints.
30792 (bit_value_binop_1): Likewise.
30793 (bit_value_unop): Use wide-int interfaces.
30794 (bit_value_binop): Likewise.
30795 (bit_value_assume_aligned): Likewise.
30796 (evaluate_stmt): Likewise.
30797 (ccp_fold_stmt): Likewise.
30798 (visit_cond_stmt): Likewise.
30799 (ccp_visit_stmt): Likewise.
30800 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
30801 (constant_pointer_difference): Likewise.
30802 (associate_pointerplus): Likewise.
30803 (combine_conversions): Likewise.
30804 * tree-ssa-loop.h: Include wide-int.h.
30805 (struct tree_niter_desc): Change type of max to widest_int.
30806 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
30807 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
30808 (remove_redundant_iv_tests): Likewise.
30809 (canonicalize_loop_induction_variables): Likewise.
30810 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
30811 (constant_multiple_of): Take a widest_int pointer instead of
30812 a double_int pointer.
30813 (get_computation_aff): Use wide-int interfaces.
30814 (ptr_difference_cost): Likewise.
30815 (difference_cost): Likewise.
30816 (get_loop_invariant_expr_id): Likewise.
30817 (get_computation_cost_at): Likewise.
30818 (iv_elimination_compare_lt): Likewise.
30819 (may_eliminate_iv): Likewise.
30820 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
30821 instead of double_int.
30822 (max_loop_iterations): Likewise.
30823 (max_stmt_executions): Likewise.
30824 (estimated_stmt_executions): Likewise.
30825 * tree-ssa-loop-niter.c: Include wide-int-print.h.
30826 (split_to_var_and_offset): Use wide-int interfaces.
30827 (determine_value_range): Likewise.
30828 (bound_difference_of_offsetted_base): Likewise.
30829 (bounds_add): Take a widest_int instead of a double_int.
30830 (number_of_iterations_ne_max): Use wide-int interfaces.
30831 (number_of_iterations_ne): Likewise.
30832 (number_of_iterations_lt_to_ne): Likewise.
30833 (assert_loop_rolls_lt): Likewise.
30834 (number_of_iterations_lt): Likewise.
30835 (number_of_iterations_le): Likewise.
30836 (number_of_iterations_cond): Likewise.
30837 (number_of_iterations_exit): Likewise.
30838 (finite_loop_p): Likewise.
30839 (derive_constant_upper_bound_assign): Likewise.
30840 (derive_constant_upper_bound): Return a widest_int.
30841 (derive_constant_upper_bound_ops): Likewise.
30842 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
30843 (record_estimate): Take a widest_int rather than a double_int.
30844 (record_nonwrapping_iv): Use wide-int interfaces.
30845 (double_int_cmp): Delete.
30846 (wide_int_cmp): New.
30847 (bound_index): Take a widest_int rather than a double_int.
30848 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
30849 (maybe_lower_iteration_bound): Likewise.
30850 (estimate_numbers_of_iterations_loop): Likewise.
30851 (estimated_loop_iterations): Take a widest_int pointer than than
30852 a double_int pointer.
30853 (estimated_loop_iterations_int): Use wide-int interfaces.
30854 (max_loop_iterations): Take a widest_int pointer than than
30855 a double_int pointer.
30856 (max_loop_iterations_int): Use wide-int interfaces.
30857 (max_stmt_executions): Take a widest_int pointer than than
30858 a double_int pointer.
30859 (estimated_stmt_executions): Likewise.
30860 (n_of_executions_at_most): Use wide-int interfaces.
30861 (scev_probably_wraps_p): Likewise.
30862 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
30863 to real_to_integer.
30864 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
30865 interfaces.
30866 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
30867 double_ints. Adjust for trailing_wide_ints <3> representation.
30868 (set_nonzero_bits): Likewise.
30869 (get_range_info): Return wide_ints rather than double_ints.
30870 Adjust for trailing_wide_ints <3> representation.
30871 (get_nonzero_bits): Likewise.
30872 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
30873 representation.
30874 * tree-ssanames.h (struct range_info_def): Replace min, max and
30875 nonzero_bits with a trailing_wide_ints <3>.
30876 (set_range_info): Use wide_int_refs rather than double_ints.
30877 (set_nonzero_bits): Likewise.
30878 (get_range_info): Return wide_ints rather than double_ints.
30879 (get_nonzero_bits): Likewise.
30880 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
30881 * tree-ssa-pre.c (phi_translate_1): Likewise.
30882 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
30883 (acceptable_pow_call): Likewise.
30884 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
30885 interfaces.
30886 (vn_reference_fold_indirect): Likewise.
30887 (vn_reference_maybe_forwprop_address): Likewise.
30888 (valueize_refs_1): Likewise.
30889 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
30890 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
30891 tree_int_cst_lt and tree_int_cst_le.
30892 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
30893 interfaces.
30894 (streamer_alloc_tree): Likewise.
30895 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
30896 (streamer_write_tree_header): Likewise.
30897 (streamer_write_integer_cst): Likewise.
30898 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
30899 (build_constructors): Likewise.
30900 (array_value_type): Likewise.
30901 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
30902 (vect_check_gather): Likewise.
30903 * tree-vect-generic.c (build_replicated_const): Likewise.
30904 (expand_vector_divmod): Likewise.
30905 * tree-vect-loop.c (vect_transform_loop): Likewise.
30906 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
30907 (vect_do_peeling_for_alignment): Likewise.
30908 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
30909 * tree-vrp.c: Include wide-int.h.
30910 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
30911 (extract_range_from_assert): Use wide-int interfaces.
30912 (vrp_int_const_binop): Likewise.
30913 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
30914 double_int pointers.
30915 (ranges_from_anti_range): Use wide-int interfaces.
30916 (quad_int_cmp): Delete.
30917 (quad_int_pair_sort): Likewise.
30918 (extract_range_from_binary_expr_1): Use wide-int interfaces.
30919 (extract_range_from_unary_expr_1): Likewise.
30920 (adjust_range_with_scev): Likewise.
30921 (masked_increment): Take and return wide_ints rather than double_ints.
30922 (register_edge_assert_for_2): Use wide-int interfaces.
30923 (check_array_ref): Likewise.
30924 (search_for_addr_array): Likewise.
30925 (maybe_set_nonzero_bits): Likewise.
30926 (union_ranges): Pass an integer of the correct type instead of
30927 using integer_one_node.
30928 (intersect_ranges): Likewise.
30929 (simplify_truth_ops_using_ranges): Likewise.
30930 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
30931 (range_fits_type_p): Likewise.
30932 (simplify_cond_using_ranges): Likewise. Take a signop rather than
30933 a bool.
30934 (simplify_conversion_using_ranges): Use wide-int interfaces.
30935 (simplify_float_conversion_using_ranges): Likewise.
30936 (vrp_finalize): Likewise.
30937 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
30938 (gimple_stringops_transform): Likewise.
30939 * varasm.c (decode_addr_const): Likewise.
30940 (const_hash_1): Likewise.
30941 (const_rtx_hash_1): Likewise
30942 (output_constant): Likewise.
30943 (array_size_for_constructor): Likewise.
30944 (output_constructor_regular_field): Likewise.
30945 (output_constructor_bitfield): Likewise.
30946 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
30947 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
30948 GENERATOR_FILEs.
30949 * gencheck.c: Define BITS_PER_UNIT.
30950 * wide-int.cc: New.
30951 * wide-int.h: New.
30952 * wide-int-print.cc: New.
30953 * wide-int-print.h: New.
30954
30955 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30956
30957 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
30958
30959 2014-05-06 Richard Biener <rguenther@suse.de>
30960
30961 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
30962 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
30963 (TODO_verify_all): Adjust.
30964 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
30965 TODO_verify_stmts and TODO_verify_rtl_sharing.
30966 * bb-reorder.c: Likewise.
30967 * cfgexpand.c: Likewise.
30968 * cprop.c: Likewise.
30969 * cse.c: Likewise.
30970 * function.c: Likewise.
30971 * fwprop.c: Likewise.
30972 * gcse.c: Likewise.
30973 * gimple-ssa-isolate-paths.c: Likewise.
30974 * gimple-ssa-strength-reduction.c: Likewise.
30975 * ipa-split.c: Likewise.
30976 * loop-init.c: Likewise.
30977 * loop-unroll.c: Likewise.
30978 * lower-subreg.c: Likewise.
30979 * modulo-sched.c: Likewise.
30980 * postreload-gcse.c: Likewise.
30981 * predict.c: Likewise.
30982 * recog.c: Likewise.
30983 * sched-rgn.c: Likewise.
30984 * store-motion.c: Likewise.
30985 * tracer.c: Likewise.
30986 * trans-mem.c: Likewise.
30987 * tree-call-cdce.c: Likewise.
30988 * tree-cfg.c: Likewise.
30989 * tree-cfgcleanup.c: Likewise.
30990 * tree-complex.c: Likewise.
30991 * tree-eh.c: Likewise.
30992 * tree-emutls.c: Likewise.
30993 * tree-if-conv.c: Likewise.
30994 * tree-into-ssa.c: Likewise.
30995 * tree-loop-distribution.c: Likewise.
30996 * tree-object-size.c: Likewise.
30997 * tree-parloops.c: Likewise.
30998 * tree-pass.h: Likewise.
30999 * tree-sra.c: Likewise.
31000 * tree-ssa-ccp.c: Likewise.
31001 * tree-ssa-copy.c: Likewise.
31002 * tree-ssa-copyrename.c: Likewise.
31003 * tree-ssa-dce.c: Likewise.
31004 * tree-ssa-dom.c: Likewise.
31005 * tree-ssa-dse.c: Likewise.
31006 * tree-ssa-forwprop.c: Likewise.
31007 * tree-ssa-ifcombine.c: Likewise.
31008 * tree-ssa-loop-ch.c: Likewise.
31009 * tree-ssa-loop-ivcanon.c: Likewise.
31010 * tree-ssa-loop.c: Likewise.
31011 * tree-ssa-math-opts.c: Likewise.
31012 * tree-ssa-phiopt.c: Likewise.
31013 * tree-ssa-phiprop.c: Likewise.
31014 * tree-ssa-pre.c: Likewise.
31015 * tree-ssa-reassoc.c: Likewise.
31016 * tree-ssa-sink.c: Likewise.
31017 * tree-ssa-strlen.c: Likewise.
31018 * tree-ssa-tail-merge.c: Likewise.
31019 * tree-ssa-uncprop.c: Likewise.
31020 * tree-switch-conversion.c: Likewise.
31021 * tree-tailcall.c: Likewise.
31022 * tree-vect-generic.c: Likewise.
31023 * tree-vectorizer.c: Likewise.
31024 * tree-vrp.c: Likewise.
31025 * tsan.c: Likewise.
31026 * var-tracking.c: Likewise.
31027 * bt-load.c: Likewise.
31028 * cfgcleanup.c: Likewise.
31029 * combine-stack-adj.c: Likewise.
31030 * combine.c: Likewise.
31031 * compare-elim.c: Likewise.
31032 * config/epiphany/resolve-sw-modes.c: Likewise.
31033 * config/i386/i386.c: Likewise.
31034 * config/mips/mips.c: Likewise.
31035 * config/s390/s390.c: Likewise.
31036 * config/sh/sh_treg_combine.cc: Likewise.
31037 * config/sparc/sparc.c: Likewise.
31038 * dce.c: Likewise.
31039 * dse.c: Likewise.
31040 * final.c: Likewise.
31041 * ifcvt.c: Likewise.
31042 * mode-switching.c: Likewise.
31043 * passes.c: Likewise.
31044 * postreload.c: Likewise.
31045 * ree.c: Likewise.
31046 * reg-stack.c: Likewise.
31047 * regcprop.c: Likewise.
31048 * regrename.c: Likewise.
31049 * web.c: Likewise.
31050
31051 2014-05-06 Richard Biener <rguenther@suse.de>
31052
31053 PR middle-end/61070
31054 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
31055 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
31056
31057 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
31058
31059 PR ipa/60965
31060 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
31061
31062 2014-05-05 Radovan Obradovic <robradovic@mips.com>
31063 Tom de Vries <tom@codesourcery.com>
31064
31065 * target.def (call_fusage_contains_non_callee_clobbers): New
31066 DEFHOOKPOD.
31067 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
31068 Hooks to @menu.
31069 (@node Miscellaneous Register Hooks): New node.
31070 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
31071 * doc/tm.texi: Regenerate.
31072
31073 2014-05-05 Marek Polacek <polacek@redhat.com>
31074
31075 PR driver/61065
31076 * opts.c (common_handle_option): Call error_at instead of warning_at.
31077
31078 2014-05-05 Richard Biener <rguenther@suse.de>
31079
31080 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
31081 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
31082 under the TODO_verify_il umbrella.
31083
31084 2014-05-05 Richard Biener <rguenther@suse.de>
31085
31086 * passes.c (execute_function_todo): Move TODO_verify_flow under
31087 the TODO_verify_ul umbrella.
31088
31089 2014-05-05 Richard Biener <rguenther@suse.de>
31090
31091 PR middle-end/61010
31092 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
31093 X & CST away from a CST that is the mask of a mode.
31094
31095 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31096
31097 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
31098 int argument to enum machine_mode.
31099 (picochip_class_max_nregs): Ditto.
31100 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
31101 (picochip_class_max_nregs): Ditto.
31102
31103 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31104
31105 * target.def: Add new target hook.
31106 * doc/tm.texi: Regenerate.
31107 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
31108 * targhooks.c (default_keep_leaf_when_profiled): New function.
31109
31110 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
31111 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
31112
31113 2014-05-05 Bin Cheng <bin.cheng@arm.com>
31114
31115 PR tree-optimization/60363
31116 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
31117 (copy_phi_args): New parameters. Call get_value_locus_in_path.
31118 (update_destination_phis): New parameter.
31119 (create_edge_and_update_destination_phis): Ditto.
31120 (ssa_fix_duplicate_block_edges): Pass new arguments.
31121 (thread_single_edge): Ditto.
31122
31123 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
31124
31125 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
31126 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
31127 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
31128 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
31129 Use RS6000_BTM_HARD_FLOAT.
31130 (BU_MISC_2): Likewise.
31131 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
31132 RS6000_BTM_HARD_FLOAT.
31133 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
31134 is explicitly used.
31135 (rs6000_invalid_builtin): Add hard floating builtin support.
31136 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
31137 hard float builtins.
31138 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
31139
31140 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
31141
31142 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
31143 Add missing function* argument.
31144
31145 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
31146
31147 * lra-constraints.c (valid_address_p): Move earlier in file.
31148 Add a constraint argument to the address_info version.
31149 (satisfies_memory_constraint_p): New function.
31150 (satisfies_address_constraint_p): Likewise.
31151 (process_alt_operands, curr_insn_transform): Use them.
31152 (process_address): Pass the constraint to valid_address_p when
31153 checking address operands.
31154
31155 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
31156
31157 * config/mips/mips.c (mips_isa_rev): New variable.
31158 (mips_set_architecture): Set it.
31159 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
31160 from mips_isa_rev.
31161 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
31162 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
31163 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
31164 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
31165 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
31166 conditions in terms of mips_isa_rev.
31167 (mips_isa_rev): Declare.
31168
31169 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
31170
31171 * config/sh/sh-mem.cc: Use tabs instead of spaces.
31172 (prob_unlikely, prob_likely): Make variables const.
31173
31174 2014-05-03 Denis Chertykov <chertykov@gmail.com>
31175
31176 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
31177
31178 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
31179
31180 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
31181
31182 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
31183
31184 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
31185 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
31186 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
31187 functions.
31188 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
31189 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
31190 sh_pass_in_reg_p.
31191 Replace usage of ROUND_REG with sh_round_reg.
31192 Use CEIL instead of ROUND_ADVANCE.
31193
31194 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
31195
31196 PR target/61026
31197 * config/sh/sh.c: Include stdlib headers before everything else.
31198
31199 2014-05-02 Jakub Jelinek <jakub@redhat.com>
31200
31201 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
31202 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
31203 (gimplify_adjust_omp_clauses): Simd region is never
31204 directly nested in combined parallel. Instead, for linear
31205 with copyin/copyout, if in combined for simd loop, make decl
31206 firstprivate/lastprivate on OMP_FOR.
31207 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
31208 expand_omp_for_static_chunk): When setting endvar, also set
31209 fd->loop.v to the same value.
31210
31211 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
31212
31213 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
31214
31215 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
31216
31217 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
31218 expression.
31219
31220 2014-05-02 Marek Polacek <polacek@redhat.com>
31221
31222 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
31223
31224 2014-05-02 Kito Cheng <kito@0xlab.org>
31225
31226 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
31227 to a C expression marco.
31228 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
31229 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
31230 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
31231 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
31232 HONOR_REG_ALLOC_ORDER.
31233 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
31234
31235 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31236
31237 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
31238
31239 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31240
31241 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
31242
31243 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
31244
31245 * tree-if-conv.c (is_cond_scalar_reduction): New function.
31246 (convert_scalar_cond_reduction): Likewise.
31247 (predicate_scalar_phi): Add recognition and transformation
31248 of simple conditioanl reduction to be vectorizable.
31249
31250 2014-05-01 Marek Polacek <polacek@redhat.com>
31251
31252 PR c/43245
31253 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
31254
31255 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
31256
31257 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
31258 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
31259 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
31260 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
31261 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
31262 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
31263 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
31264 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
31265
31266 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
31267
31268 * config/arc/arc.opt (mlra): Move comment above option name
31269 to avoid mis-parsing as language options.
31270
31271 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31272
31273 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
31274 * config/sol2.h: ... here.
31275 * config/sol2-10.h: Remove.
31276
31277 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
31278 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
31279 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
31280 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
31281 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
31282 * config/sol2.h: ... here.
31283 (SECTION_NAME_FORMAT): Don't redefine.
31284 (STARTFILE_ARCH32_SPEC): Rename to ...
31285 (STARTFILE_ARCH_SPEC): ... this.
31286 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
31287 * config/sparc/sol2.h: ... here.
31288 (SECTION_NAME_FORMAT): Don't undef.
31289 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
31290 (SUBTARGET_EXTRA_SPECS): Remove.
31291 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
31292
31293 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
31294 (MD_STARTFILE_PREFIX): Remove.
31295 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
31296 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
31297 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
31298 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
31299 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
31300 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
31301 * config/i386/sol2.h: ... here.
31302 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
31303 * config/i386/sol2-bi.h: Remove.
31304 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
31305 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
31306
31307 * config/i386/t-sol2-64: Rename to ...
31308 * config/i386/t-sol2: ... this.
31309 * config/sparc/t-sol2-64: Rename to ...
31310 * config/sparc/t-sol2: ... this.
31311
31312 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
31313 sol2_tm_file_head, sol2_tm_file_tail.
31314 Include ${cpu_type}/sol2.h before sol2.h.
31315 Remove sol2-10.h.
31316 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
31317 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
31318 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
31319 Reflect i386/t-sol2-64 renaming.
31320 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
31321 Reflect sparc/t-sol2-64 renaming.
31322
31323 2014-04-30 Richard Biener <rguenther@suse.de>
31324
31325 * passes.c (execute_function_todo): Move TODO_verify_stmts
31326 and TODO_verify_ssa under the TODO_verify_il umbrella.
31327 * tree-ssa.h (verify_ssa): Adjust prototype.
31328 * tree-ssa.c (verify_ssa): Add parameter to tell whether
31329 we should verify SSA operands.
31330 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
31331 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
31332 whether we should verify whether not throwing stmts have EH info.
31333 * graphite-scop-detection.c (create_sese_edges): Adjust.
31334 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
31335 * tree-eh.c (lower_try_finally_switch): Do not add the
31336 default case label twice.
31337
31338 2014-04-30 Marek Polacek <polacek@redhat.com>
31339
31340 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
31341 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
31342 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
31343 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
31344
31345 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
31346
31347 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
31348 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
31349 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
31350 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
31351 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
31352 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
31353 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
31354 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
31355
31356 2014-04-29 David Malcolm <dmalcolm@redhat.com>
31357
31358 * tree-cfg.c (dump_function_to_file): Dump the return type of
31359 functions, in a line to itself before the function body, mimicking
31360 the layout of a C function.
31361
31362 2014-04-29 Jakub Jelinek <jakub@redhat.com>
31363
31364 PR tree-optimization/60971
31365 * tree-tailcall.c (process_assignment): Reject conversions which
31366 reduce precision.
31367
31368 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
31369
31370 * calls.c (initialize_argument_information): Always treat
31371 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
31372 (expand_call): Likewise.
31373 (emit_library_call_calue_1): Likewise.
31374 * expr.c (PUSH_ARGS_REVERSED): Do not define.
31375 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
31376 code accordingly.
31377
31378 2014-04-29 Nick Clifton <nickc@redhat.com>
31379
31380 * config/msp430/msp430.md (umulsidi): Fix typo.
31381 (mulhisi3): Enable even inside interrupt handlers.
31382 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
31383 bigger return address pushed in large mode.
31384
31385 2014-04-29 Nick Clifton <nickc@redhat.com>
31386
31387 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
31388 (arc_init_reg_tables): Use a machine_mode enum to iterate over
31389 available modes.
31390 * config/m32r/m32r.c (init_reg_tables): Likewise.
31391 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
31392 enum to hold the modes.
31393
31394 2014-04-29 Richard Biener <rguenther@suse.de>
31395
31396 * dominance.c (free_dominance_info): Add overload with
31397 function parameter.
31398 (dom_info_state): Likewise.
31399 (dom_info_available_p): Likewise.
31400 * basic-block.h (free_dominance_info, dom_info_state,
31401 dom_info_available_p): Declare overloads.
31402 * passes.c (execute_function_todo): Verify that verifiers
31403 don't change dominator info state. Drop dominator info
31404 for IPA pass invocations.
31405 * cgraph.c (release_function_body): Restore asserts that
31406 dominator information is released.
31407
31408 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
31409
31410 * doc/invoke.texi: Fix typo.
31411 * tree-vrp.c: Fix typos.
31412 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
31413
31414 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
31415
31416 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
31417
31418 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
31419
31420 * config/aarch64/aarch64-builtins.c
31421 (aarch64_types_storestruct_lane_qualifiers): New.
31422 (TYPES_STORESTRUCT_LANE): Likewise.
31423 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
31424 (st3_lane): Likewise.
31425 (st4_lane): Likewise.
31426 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
31427 (vec_store_lanesci_lane<mode>): Likewise.
31428 (vec_store_lanesxi_lane<mode>): Likewise.
31429 (aarch64_st2_lane<VQ:mode>): Likewise.
31430 (aarch64_st3_lane<VQ:mode>): Likewise.
31431 (aarch64_st4_lane<VQ:mode>): Likewise.
31432 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
31433 * config/aarch64/arm_neon.h
31434 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
31435 use new macro arguments.
31436 (__ST3_LANE_FUNC): Likewise.
31437 (__ST4_LANE_FUNC): Likewise.
31438 * config/aarch64/iterators.md (V_TWO_ELEM): New.
31439 (V_THREE_ELEM): Likewise.
31440 (V_FOUR_ELEM): Likewise.
31441
31442 2014-04-28 David Malcolm <dmalcolm@redhat.com>
31443
31444 * doc/gimple.texi: Replace the description of the now-defunct
31445 union gimple_statement_d with a diagram showing the
31446 gimple_statement_base class hierarchy and its relationships to
31447 the GSS_ and GIMPLE_ enums.
31448
31449 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
31450
31451 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
31452 * config/aarch64/aarch64.c
31453 (aarch64_cannot_change_mode_class): Weaken conditions.
31454 (aarch64_modes_tieable_p): New.
31455 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
31456
31457 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
31458
31459 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
31460 (loadsync_<mode>): Change mode.
31461 (load_quadpti, store_quadpti): New.
31462 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
31463 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
31464
31465 2014-04-28 Martin Jambor <mjambor@suse.cz>
31466
31467 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
31468 same alias type as the original statement.
31469 (subreplacement_assignment_data): New type.
31470 (handle_unscalarized_data_in_subtree): New type of parameter,
31471 generate new memory accesses with same alias type as the original
31472 statement.
31473 (load_assign_lhs_subreplacements): Likewise.
31474 (sra_modify_constructor_assign): Generate new memory accesses with
31475 same alias type as the original statement.
31476
31477 2014-04-28 Richard Biener <rguenther@suse.de>
31478
31479 * tree-pass.h (TODO_verify_il): Define.
31480 (TODO_verify_all): Complete properly.
31481 * passes.c (execute_function_todo): Move existing loop-closed
31482 SSA verification under TODO_verify_il.
31483 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
31484 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
31485 Fix tree sharing issue.
31486
31487 2014-04-28 Richard Biener <rguenther@suse.de>
31488
31489 PR middle-end/60092
31490 * builtins.def (DEF_C11_BUILTIN): Add.
31491 (BUILT_IN_ALIGNED_ALLOC): Likewise.
31492 * coretypes.h (enum function_class): Add function_c11_misc.
31493 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
31494 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
31495 (call_may_clobber_ref_p_1): Likewise.
31496 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
31497 (mark_all_reaching_defs_necessary_1): Likewise.
31498 (propagate_necessity): Likewise.
31499 (eliminate_unnecessary_stmts): Likewise.
31500 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
31501
31502 2014-04-28 Richard Biener <rguenther@suse.de>
31503
31504 * tree-vrp.c (vrp_var_may_overflow): Remove.
31505 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
31506 with overflow immediately bump to one before that value and
31507 let iteration figure out overflow status.
31508
31509 2014-04-28 Richard Biener <rguenther@suse.de>
31510
31511 * configure.ac: Do valgrind header checks unconditionally.
31512 Add --enable-valgrind-annotations.
31513 * system.h: Guard valgrind header inclusion with
31514 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
31515 * alloc-pool.c (pool_alloc, pool_free): Use
31516 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
31517 to guard possibly dead code.
31518 * config.in: Regenerated.
31519 * configure: Likewise.
31520
31521 2014-04-28 Jeff Law <law@redhat.com>
31522
31523 PR tree-optimization/60902
31524 * tree-ssa-threadedge.c
31525 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
31526 over real defs when invalidating outputs from statements that do not
31527 produce useful outputs for threading.
31528
31529 2014-04-28 Richard Biener <rguenther@suse.de>
31530
31531 PR tree-optimization/60979
31532 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
31533 SCOPs that end in a block with a successor with abnormal
31534 predecessors.
31535
31536 2014-04-28 Richard Biener <rguenther@suse.de>
31537
31538 * tree-pass.h (execute_pass_list): Adjust prototype.
31539 * passes.c (pass_manager::execute_early_local_passes): Adjust.
31540 (do_per_function): Change callback signature, push all actual
31541 work to the callbals.
31542 (do_per_function_toporder): Likewise.
31543 (execute_function_dump): Adjust.
31544 (execute_function_todo): Likewise.
31545 (clear_last_verified): Likewise.
31546 (verify_curr_properties): Likewise.
31547 (update_properties_after_pass): Likewise.
31548 (execute_pass_list_1): Split out from ...
31549 (execute_pass_list): ... here. Adjust.
31550 (execute_ipa_pass_list): Likewise.
31551 * cgraphunit.c (cgraph_add_new_function): Adjust.
31552 (analyze_function): Likewise.
31553 (expand_function): Likewise.
31554 * cgraph.c (release_function_body): Free dominance info
31555 here instead of asserting it was magically freed elsewhere.
31556
31557 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
31558
31559 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
31560 * configure: Regenerate.
31561 * config/sparc/sparc.opt (muser-mode): New option.
31562 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
31563 for LEON3.
31564 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
31565 * doc/invoke.texi (SPARC options): Document -muser-mode.
31566
31567 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
31568
31569 * cselib.c (find_slot_memmode): Delete.
31570 (cselib_hasher): Change compare_type to a struct.
31571 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
31572 constants.
31573 (preserve_constants_and_equivs): Adjust for new compare_type.
31574 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
31575 (wrap_constant): Delete.
31576 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
31577
31578 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
31579
31580 * doc/install.texi (Building with profile feedback): Remove
31581 outdated sentence.
31582
31583 2014-04-26 Tom de Vries <tom@codesourcery.com>
31584
31585 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
31586 array accesses.
31587
31588 2014-04-25 Cary Coutant <ccoutant@google.com>
31589
31590 PR debug/60929
31591 * dwarf2out.c (should_move_die_to_comdat): A type definition
31592 can contain a subprogram definition, but don't move it to a
31593 comdat unit.
31594 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
31595 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
31596 from original DIE.
31597 (clone_tree_hash): Rename to...
31598 (clone_tree_partial): ...this; change callers. Copy
31599 DW_TAG_subprogram DIEs as declarations.
31600 (copy_decls_walk): Don't copy children of a declaration into a
31601 type unit.
31602
31603 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
31604
31605 PR target/60969
31606 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
31607 alternative 12.
31608
31609 2014-04-25 Jiong Wang <jiong.wang@arm.com>
31610
31611 * config/arm/predicates.md (call_insn_operand): Add long_call check.
31612 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
31613 reg for long_call.
31614 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
31615 restriction.
31616
31617 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31618
31619 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
31620
31621 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31622
31623 PR tree-optimization/60930
31624 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
31625 creating a multiply candidate by folding two constant
31626 multiplicands when the result overflows.
31627
31628 2014-04-25 Jakub Jelinek <jakub@redhat.com>
31629
31630 PR tree-optimization/60960
31631 * tree-vect-generic.c (expand_vector_operation): Only call
31632 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
31633
31634 2014-04-25 Tom de Vries <tom@codesourcery.com>
31635
31636 * expr.c (clobber_reg_mode): New function.
31637 * expr.h (clobber_reg): New function.
31638
31639 2014-04-25 Tom de Vries <tom@codesourcery.com>
31640
31641 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
31642 clobbers.
31643
31644 2014-04-25 Radovan Obradovic <robradovic@mips.com>
31645 Tom de Vries <tom@codesourcery.com>
31646
31647 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
31648 handle.
31649 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
31650 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
31651 new argument to find_all_hard_reg_sets call.
31652
31653 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31654
31655 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
31656 Use HOST_WIDE_INT_C for mask literal.
31657 (aarch_rev16_shleft_mask_imm_p): Likewise.
31658
31659 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
31660
31661 PR target/60941
31662 * config/sparc/sparc.md (ashlsi3_extend): Delete.
31663
31664 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
31665
31666 PR preprocessor/56540
31667 * config/i386/i386-c.c (ix86_target_macros): Define
31668 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
31669
31670 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31671
31672 * configure.ac (tga_func): Remove.
31673 (LIB_TLS_SPEC): Remove.
31674 * configure: Regenerate.
31675 * config.in: Regenerate.
31676 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
31677
31678 2014-04-25 Richard Biener <rguenther@suse.de>
31679
31680 PR ipa/60912
31681 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
31682 call stmt use/clobber sets during stmt walk instead of
31683 walking the possibly incomplete set of caller edges.
31684
31685 2014-04-25 Richard Biener <rguenther@suse.de>
31686
31687 PR ipa/60911
31688 * passes.c (apply_ipa_transforms): Inline into only caller ...
31689 (execute_one_pass): ... here. Properly bring in function
31690 bodies for nodes we want to apply IPA transforms to.
31691
31692 2014-04-24 Cong Hou <congh@google.com>
31693
31694 PR tree-optimization/60896
31695 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
31696 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
31697 (vect_mark_pattern_stmts): Set the def type of all statements in
31698 PATTERN_DEF_SEQ as vect_internal_def.
31699
31700 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
31701
31702 * doc/extend.texi (PowerPC Built-in Functions): Document new
31703 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
31704 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
31705
31706 * config/rs6000/predicates.md (const_0_to_3_operand): New
31707 predicate to match 0..3 integer constants.
31708
31709 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
31710 to support adding miscellaneous builtin functions.
31711 (BU_DFP_MISC_2): Likewise.
31712 (BU_P7_MISC_1): Likewise.
31713 (BU_P7_MISC_2): Likewise.
31714 (BU_P8V_MISC_3): Likewise.
31715 (BU_MISC_1): Likewise.
31716 (BU_MISC_2): Likewise.
31717 (DIVWE): Add extended divide builtin functions.
31718 (DIVWEO): Likewise.
31719 (DIVWEU): Likewise.
31720 (DIVWEUO): Likewise.
31721 (DIVDE): Likewise.
31722 (DIVDEO): Likewise.
31723 (DIVDEU): Likewise.
31724 (DIVDEUO): Likewise.
31725 (DXEX): Add decimal floating-point builtin functions.
31726 (DXEXQ): Likewise.
31727 (DDEDPD): Likewise.
31728 (DDEDPDQ): Likewise.
31729 (DENBCD): Likewise.
31730 (DENBCDQ): Likewise.
31731 (DIEX): Likewise.
31732 (DIEXQ): Likewise.
31733 (DSCLI): Likewise.
31734 (DSCLIQ): Likewise.
31735 (DSCRI): Likewise.
31736 (DSCRIQ): Likewise.
31737 (CDTBCD): Add new BCD builtin functions.
31738 (CBCDTD): Likewise.
31739 (ADDG6S): Likewise.
31740 (BCDADD): Likewise.
31741 (BCDADD_LT): Likewise.
31742 (BCDADD_EQ): Likewise.
31743 (BCDADD_GT): Likewise.
31744 (BCDADD_OV): Likewise.
31745 (BCDSUB): Likewise.
31746 (BCDSUB_LT): Likewise.
31747 (BCDSUB_EQ): Likewise.
31748 (BCDSUB_GT): Likewise.
31749 (BCDSUB_OV): Likewise.
31750 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
31751 (UNPACK_TD): Likewise.
31752 (PACK_TF): Likewise.
31753 (UNPACK_TF): Likewise.
31754 (UNPACK_TF_0): Likewise.
31755 (UNPACK_TF_1): Likewise.
31756 (PACK_V1TI): Likewise.
31757 (UNPACK_V1TI): Likewise.
31758
31759 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
31760 support for decimal floating point builtin functions.
31761 (rs6000_expand_ternop_builtin): Add checks for the new builtin
31762 functions that take constant arguments.
31763 (rs6000_invalid_builtin): Add decimal floating point builtin support.
31764 (rs6000_init_builtins): Setup long double, _Decimal64, and
31765 _Decimal128 types for new builtin functions.
31766 (builtin_function_type): Set the unsigned flags appropriately for
31767 the new builtin functions.
31768 (rs6000_opt_masks): Add support for decimal floating point builtin
31769 functions.
31770
31771 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
31772 floating point builtin functions.
31773 (RS6000_BTM_COMMON): Likewise.
31774 (RS6000_BTI_long_double): Likewise.
31775 (RS6000_BTI_dfloat64): Likewise.
31776 (RS6000_BTI_dfloat128): Likewise.
31777 (long_double_type_internal_node): Likewise.
31778 (dfloat64_type_internal_node): Likewise.
31779 (dfloat128_type_internal_node): Likewise.
31780
31781 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
31782 2.07 bcd arithmetic instructions.
31783 (UNSPEC_BCDSUB): Likewise.
31784 (UNSPEC_BCD_OVERFLOW): Likewise.
31785 (UNSPEC_BCD_ADD_SUB): Likewise.
31786 (bcd_add_sub): Likewise.
31787 (BCD_TEST): Likewise.
31788 (bcd<bcd_add_sub>): Likewise.
31789 (bcd<bcd_add_sub>_test): Likewise.
31790 (bcd<bcd_add_sub>_test2): Likewise.
31791 (bcd<bcd_add_sub>_<code>): Likewise.
31792 (peephole2 for combined bcd ops): Likewise.
31793
31794 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
31795 decimal floating point builtin functions.
31796 (UNSPEC_DENBCD): Likewise.
31797 (UNSPEC_DXEX): Likewise.
31798 (UNSPEC_DIEX): Likewise.
31799 (UNSPEC_DSCLI): Likewise.
31800 (UNSPEC_DSCRI): Likewise.
31801 (D64_D128): Likewise.
31802 (dfp_suffix): Likewise.
31803 (dfp_ddedpd_<mode>): Likewise.
31804 (dfp_denbcd_<mode>): Likewise.
31805 (dfp_dxex_<mode>): Likewise.
31806 (dfp_diex_<mode>): Likewise.
31807 (dfp_dscli_<mode>): Likewise.
31808 (dfp_dscri_<mode>): Likewise.
31809
31810 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
31811 builtin functions.
31812 (UNSPEC_CDTBCD): Likewise.
31813 (UNSPEC_CBCDTD): Likewise.
31814 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
31815 (UNSPEC_DIVEO): Likewise.
31816 (UNSPEC_DIVEU): Likewise.
31817 (UNSPEC_DIVEUO): Likewise.
31818 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
31819 pack/unpack 128-bit types.
31820 (UNSPEC_PACK_128BIT): Likewise.
31821 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
31822 (udiv<mode>3): Use idiv_ldiv mode attribute.
31823 (div<mode>3): Likewise.
31824 (addg6s): Add new BCD builtin functions.
31825 (cdtbcd): Likewise.
31826 (cbcdtd): Likewise.
31827 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
31828 (div_extend): Likewise.
31829 (div<div_extend>_<mode>"): Likewise.
31830 (FP128_64): Add support for new builtin functions to pack/unpack
31831 128-bit types.
31832 (unpack<mode>): Likewise.
31833 (unpacktf_0): Likewise.
31834 (unpacktf_1): Likewise.
31835 (unpack<mode>_dm): Likewise.
31836 (unpack<mode>_nodm): Likewise.
31837 (pack<mode>): Likewise.
31838 (unpackv1ti): Likewise.
31839 (packv1ti): Likewise.
31840
31841 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
31842
31843 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
31844 is disabled.
31845
31846 2014-04-24 Jakub Jelinek <jakub@redhat.com>
31847
31848 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
31849 * gimplify.c (omp_is_private): Change last argument's type to int.
31850 Only diagnose lastprivate if the simd argument is 1, only diagnose
31851 linear if the simd argument is 2.
31852 (gimplify_omp_for): Adjust omp_is_private callers. When adding
31853 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
31854 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
31855 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
31856 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
31857 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
31858 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
31859 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
31860 * tree-nested.c (convert_nonlocal_omp_clauses,
31861 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
31862
31863 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
31864
31865 PR target/60822
31866 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
31867 operand 1.
31868
31869 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
31870
31871 * flag-types.h (enum ivar_visibility): Add.
31872
31873 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
31874
31875 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
31876 function * argument.
31877
31878 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
31879
31880 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
31881
31882 2014-04-24 Radovan Obradovic <robradovic@mips.com>
31883 Tom de Vries <tom@codesourcery.com>
31884
31885 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
31886 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
31887 reg-note.
31888 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
31889 * emit-rtl.c (try_split): Same.
31890
31891 2014-04-24 Radovan Obradovic <robradovic@mips.com>
31892 Tom de Vries <tom@codesourcery.com>
31893
31894 * common.opt (fuse-caller-save): New option.
31895
31896 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
31897
31898 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
31899 elements for big-endian.
31900
31901 2014-04-24 Richard Biener <rguenther@suse.de>
31902
31903 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
31904 during TER and instead use the sepops interface for expanding
31905 non-GIMPLE_SINGLE_RHS.
31906
31907 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31908
31909 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
31910 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
31911
31912 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31913
31914 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
31915 assembler 64-bit option.
31916 * configure: Regenerate.
31917
31918 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31919
31920 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
31921 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
31922 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
31923 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
31924 (TARGET_CRYPTO): Take TARGET_SIMD into account.
31925
31926 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31927
31928 * config/aarch64/aarch64-builtins.c
31929 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
31930 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
31931 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
31932 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
31933 builtins.
31934 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
31935 (Vrevsuff): New mode attribute.
31936
31937 2014-04-24 Terry Guo <terry.guo@arm.com>
31938
31939 * config/arm/arm.h (machine_function): Define variable
31940 after_arm_reorg here.
31941 * config/arm/arm.c (after_arm_reorg): Remove the definition.
31942 (arm_split_constant): Update the way to access variable
31943 after_arm_reorg.
31944 (arm_reorg): Ditto.
31945 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
31946
31947 2014-04-23 Tom de Vries <tom@codesourcery.com>
31948
31949 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
31950
31951 2014-04-23 David Malcolm <dmalcolm@redhat.com>
31952
31953 * is-a.h: Update comments to reflect the following changes to the
31954 "pointerness" of the API, making the template parameter match the
31955 return type, allowing use of is-a.h with typedefs of pointers.
31956 (is_a_helper::cast): Return a T rather then a pointer to a T, so
31957 that the return type matches the parameter to the is_a_helper.
31958 (as_a): Likewise.
31959 (dyn_cast): Likewise.
31960
31961 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
31962 pointer from the is-a.h API.
31963
31964 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
31965 (is_a_helper <cgraph_node *>::test): ...this, matching change to
31966 is-a.h API.
31967 (is_a_helper <varpool_node>::test): Likewise, convert to...
31968 (is_a_helper <varpool_node *>::test): ...this.
31969
31970 (varpool_first_variable): Update for removal of implicit pointer
31971 from the is-a.h API.
31972 (varpool_next_variable): Likewise.
31973 (varpool_first_static_initializer): Likewise.
31974 (varpool_next_static_initializer): Likewise.
31975 (varpool_first_defined_variable): Likewise.
31976 (varpool_next_defined_variable): Likewise.
31977 (cgraph_first_defined_function): Likewise.
31978 (cgraph_next_defined_function): Likewise.
31979 (cgraph_first_function): Likewise.
31980 (cgraph_next_function): Likewise.
31981 (cgraph_first_function_with_gimple_body): Likewise.
31982 (cgraph_next_function_with_gimple_body): Likewise.
31983 (cgraph_alias_target): Likewise.
31984 (varpool_alias_target): Likewise.
31985 (cgraph_function_or_thunk_node): Likewise.
31986 (varpool_variable_node): Likewise.
31987 (symtab_real_symbol_p): Likewise.
31988 * cgraphunit.c (referred_to_p): Likewise.
31989 (analyze_functions): Likewise.
31990 (handle_alias_pairs): Likewise.
31991 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
31992 * gimple-ssa.h (gimple_vuse_op): Likewise.
31993 (gimple_vdef_op): Likewise.
31994 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
31995 * gimple.c (gimple_build_asm_1): Likewise.
31996 (gimple_build_try): Likewise.
31997 (gimple_build_resx): Likewise.
31998 (gimple_build_eh_dispatch): Likewise.
31999 (gimple_build_omp_for): Likewise.
32000 (gimple_omp_for_set_clauses): Likewise.
32001
32002 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
32003 (is_a_helper <gimple_statement_asm *>::test): ...this.
32004 (is_a_helper <gimple_statement_bind>::test): Convert to...
32005 (is_a_helper <gimple_statement_bind *>::test): ...this.
32006 (is_a_helper <gimple_statement_call>::test): Convert to...
32007 (is_a_helper <gimple_statement_call *>::test): ...this.
32008 (is_a_helper <gimple_statement_catch>::test): Convert to...
32009 (is_a_helper <gimple_statement_catch *>::test): ...this.
32010 (is_a_helper <gimple_statement_resx>::test): Convert to...
32011 (is_a_helper <gimple_statement_resx *>::test): ...this.
32012 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
32013 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
32014 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
32015 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
32016 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
32017 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
32018 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
32019 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
32020 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
32021 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
32022 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
32023 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
32024 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
32025 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
32026 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
32027 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
32028 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
32029 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
32030 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
32031 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
32032 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
32033 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
32034 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
32035 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
32036 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
32037 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
32038 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
32039 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
32040 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
32041 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
32042 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
32043 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
32044 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
32045 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
32046 (is_a_helper <gimple_statement_phi>::test): Convert to...
32047 (is_a_helper <gimple_statement_phi *>::test): ...this.
32048 (is_a_helper <gimple_statement_transaction>::test): Convert to...
32049 (is_a_helper <gimple_statement_transaction *>::test): ...this.
32050 (is_a_helper <gimple_statement_try>::test): Convert to...
32051 (is_a_helper <gimple_statement_try *>::test): ...this.
32052 (is_a_helper <gimple_statement_wce>::test): Convert to...
32053 (is_a_helper <gimple_statement_wce *>::test): ...this.
32054 (is_a_helper <const gimple_statement_asm>::test): Convert to...
32055 (is_a_helper <const gimple_statement_asm *>::test): ...this.
32056 (is_a_helper <const gimple_statement_bind>::test): Convert to...
32057 (is_a_helper <const gimple_statement_bind *>::test): ...this.
32058 (is_a_helper <const gimple_statement_call>::test): Convert to...
32059 (is_a_helper <const gimple_statement_call *>::test): ...this.
32060 (is_a_helper <const gimple_statement_catch>::test): Convert to...
32061 (is_a_helper <const gimple_statement_catch *>::test): ...this.
32062 (is_a_helper <const gimple_statement_resx>::test): Convert to...
32063 (is_a_helper <const gimple_statement_resx *>::test): ...this.
32064 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
32065 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
32066 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
32067 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
32068 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
32069 Convert to...
32070 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
32071 ...this.
32072 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
32073 Convert to...
32074 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
32075 ...this.
32076 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
32077 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
32078 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
32079 to...
32080 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
32081 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
32082 to...
32083 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
32084 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
32085 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
32086 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
32087 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
32088 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
32089 to...
32090 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
32091 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
32092 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
32093 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
32094 to...
32095 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
32096 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
32097 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
32098 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
32099 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
32100 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
32101 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
32102 (is_a_helper <const gimple_statement_phi>::test): Convert to...
32103 (is_a_helper <const gimple_statement_phi *>::test): ...this.
32104 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
32105 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
32106 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
32107 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
32108 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
32109 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
32110 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
32111 to...
32112 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
32113 ...this.
32114 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
32115 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
32116
32117 (gimple_use_ops): Update for removal of implicit pointer from the
32118 is-a.h API.
32119 (gimple_set_use_ops): Likewise.
32120 (gimple_vuse): Likewise.
32121 (gimple_vdef): Likewise.
32122 (gimple_vuse_ptr): Likewise.
32123 (gimple_vdef_ptr): Likewise.
32124 (gimple_set_vuse): Likewise.
32125 (gimple_set_vdef): Likewise.
32126 (gimple_omp_return_set_lhs): Likewise.
32127 (gimple_omp_return_lhs): Likewise.
32128 (gimple_omp_return_lhs_ptr): Likewise.
32129 (gimple_call_fntype): Likewise.
32130 (gimple_call_set_fntype): Likewise.
32131 (gimple_call_set_internal_fn): Likewise.
32132 (gimple_call_use_set): Likewise.
32133 (gimple_call_clobber_set): Likewise.
32134 (gimple_bind_vars): Likewise.
32135 (gimple_bind_set_vars): Likewise.
32136 (gimple_bind_body_ptr): Likewise.
32137 (gimple_bind_set_body): Likewise.
32138 (gimple_bind_add_stmt): Likewise.
32139 (gimple_bind_block): Likewise.
32140 (gimple_bind_set_block): Likewise.
32141 (gimple_asm_ninputs): Likewise.
32142 (gimple_asm_noutputs): Likewise.
32143 (gimple_asm_nclobbers): Likewise.
32144 (gimple_asm_nlabels): Likewise.
32145 (gimple_asm_input_op): Likewise.
32146 (gimple_asm_input_op_ptr): Likewise.
32147 (gimple_asm_output_op): Likewise.
32148 (gimple_asm_output_op_ptr): Likewise.
32149 (gimple_asm_set_output_op): Likewise.
32150 (gimple_asm_clobber_op): Likewise.
32151 (gimple_asm_set_clobber_op): Likewise.
32152 (gimple_asm_label_op): Likewise.
32153 (gimple_asm_set_label_op): Likewise.
32154 (gimple_asm_string): Likewise.
32155 (gimple_catch_types): Likewise.
32156 (gimple_catch_types_ptr): Likewise.
32157 (gimple_catch_handler_ptr): Likewise.
32158 (gimple_catch_set_types): Likewise.
32159 (gimple_catch_set_handler): Likewise.
32160 (gimple_eh_filter_types): Likewise.
32161 (gimple_eh_filter_types_ptr): Likewise.
32162 (gimple_eh_filter_failure_ptr): Likewise.
32163 (gimple_eh_filter_set_types): Likewise.
32164 (gimple_eh_filter_set_failure): Likewise.
32165 (gimple_eh_must_not_throw_fndecl): Likewise.
32166 (gimple_eh_must_not_throw_set_fndecl): Likewise.
32167 (gimple_eh_else_n_body_ptr): Likewise.
32168 (gimple_eh_else_e_body_ptr): Likewise.
32169 (gimple_eh_else_set_n_body): Likewise.
32170 (gimple_eh_else_set_e_body): Likewise.
32171 (gimple_try_eval_ptr): Likewise.
32172 (gimple_try_cleanup_ptr): Likewise.
32173 (gimple_try_set_eval): Likewise.
32174 (gimple_try_set_cleanup): Likewise.
32175 (gimple_wce_cleanup_ptr): Likewise.
32176 (gimple_wce_set_cleanup): Likewise.
32177 (gimple_phi_capacity): Likewise.
32178 (gimple_phi_num_args): Likewise.
32179 (gimple_phi_result): Likewise.
32180 (gimple_phi_result_ptr): Likewise.
32181 (gimple_phi_set_result): Likewise.
32182 (gimple_phi_arg): Likewise.
32183 (gimple_phi_set_arg): Likewise.
32184 (gimple_resx_region): Likewise.
32185 (gimple_resx_set_region): Likewise.
32186 (gimple_eh_dispatch_region): Likewise.
32187 (gimple_eh_dispatch_set_region): Likewise.
32188 (gimple_omp_critical_name): Likewise.
32189 (gimple_omp_critical_name_ptr): Likewise.
32190 (gimple_omp_critical_set_name): Likewise.
32191 (gimple_omp_for_clauses): Likewise.
32192 (gimple_omp_for_clauses_ptr): Likewise.
32193 (gimple_omp_for_set_clauses): Likewise.
32194 (gimple_omp_for_collapse): Likewise.
32195 (gimple_omp_for_index): Likewise.
32196 (gimple_omp_for_index_ptr): Likewise.
32197 (gimple_omp_for_set_index): Likewise.
32198 (gimple_omp_for_initial): Likewise.
32199 (gimple_omp_for_initial_ptr): Likewise.
32200 (gimple_omp_for_set_initial): Likewise.
32201 (gimple_omp_for_final): Likewise.
32202 (gimple_omp_for_final_ptr): Likewise.
32203 (gimple_omp_for_set_final): Likewise.
32204 (gimple_omp_for_incr): Likewise.
32205 (gimple_omp_for_incr_ptr): Likewise.
32206 (gimple_omp_for_set_incr): Likewise.
32207 (gimple_omp_for_pre_body_ptr): Likewise.
32208 (gimple_omp_for_set_pre_body): Likewise.
32209 (gimple_omp_parallel_clauses): Likewise.
32210 (gimple_omp_parallel_clauses_ptr): Likewise.
32211 (gimple_omp_parallel_set_clauses): Likewise.
32212 (gimple_omp_parallel_child_fn): Likewise.
32213 (gimple_omp_parallel_child_fn_ptr): Likewise.
32214 (gimple_omp_parallel_set_child_fn): Likewise.
32215 (gimple_omp_parallel_data_arg): Likewise.
32216 (gimple_omp_parallel_data_arg_ptr): Likewise.
32217 (gimple_omp_parallel_set_data_arg): Likewise.
32218 (gimple_omp_task_clauses): Likewise.
32219 (gimple_omp_task_clauses_ptr): Likewise.
32220 (gimple_omp_task_set_clauses): Likewise.
32221 (gimple_omp_task_child_fn): Likewise.
32222 (gimple_omp_task_child_fn_ptr): Likewise.
32223 (gimple_omp_task_set_child_fn): Likewise.
32224 (gimple_omp_task_data_arg): Likewise.
32225 (gimple_omp_task_data_arg_ptr): Likewise.
32226 (gimple_omp_task_set_data_arg): Likewise.
32227 (gimple_omp_taskreg_clauses): Likewise.
32228 (gimple_omp_taskreg_clauses_ptr): Likewise.
32229 (gimple_omp_taskreg_set_clauses): Likewise.
32230 (gimple_omp_taskreg_child_fn): Likewise.
32231 (gimple_omp_taskreg_child_fn_ptr): Likewise.
32232 (gimple_omp_taskreg_set_child_fn): Likewise.
32233 (gimple_omp_taskreg_data_arg): Likewise.
32234 (gimple_omp_taskreg_data_arg_ptr): Likewise.
32235 (gimple_omp_taskreg_set_data_arg): Likewise.
32236 (gimple_omp_task_copy_fn): Likewise.
32237 (gimple_omp_task_copy_fn_ptr): Likewise.
32238 (gimple_omp_task_set_copy_fn): Likewise.
32239 (gimple_omp_task_arg_size): Likewise.
32240 (gimple_omp_task_arg_size_ptr): Likewise.
32241 (gimple_omp_task_set_arg_size): Likewise.
32242 (gimple_omp_task_arg_align): Likewise.
32243 (gimple_omp_task_arg_align_ptr): Likewise.
32244 (gimple_omp_task_set_arg_align): Likewise.
32245 (gimple_omp_single_clauses): Likewise.
32246 (gimple_omp_single_clauses_ptr): Likewise.
32247 (gimple_omp_single_set_clauses): Likewise.
32248 (gimple_omp_target_clauses): Likewise.
32249 (gimple_omp_target_clauses_ptr): Likewise.
32250 (gimple_omp_target_set_clauses): Likewise.
32251 (gimple_omp_target_child_fn): Likewise.
32252 (gimple_omp_target_child_fn_ptr): Likewise.
32253 (gimple_omp_target_set_child_fn): Likewise.
32254 (gimple_omp_target_data_arg): Likewise.
32255 (gimple_omp_target_data_arg_ptr): Likewise.
32256 (gimple_omp_target_set_data_arg): Likewise.
32257 (gimple_omp_teams_clauses): Likewise.
32258 (gimple_omp_teams_clauses_ptr): Likewise.
32259 (gimple_omp_teams_set_clauses): Likewise.
32260 (gimple_omp_sections_clauses): Likewise.
32261 (gimple_omp_sections_clauses_ptr): Likewise.
32262 (gimple_omp_sections_set_clauses): Likewise.
32263 (gimple_omp_sections_control): Likewise.
32264 (gimple_omp_sections_control_ptr): Likewise.
32265 (gimple_omp_sections_set_control): Likewise.
32266 (gimple_omp_for_set_cond): Likewise.
32267 (gimple_omp_for_cond): Likewise.
32268 (gimple_omp_atomic_store_set_val): Likewise.
32269 (gimple_omp_atomic_store_val): Likewise.
32270 (gimple_omp_atomic_store_val_ptr): Likewise.
32271 (gimple_omp_atomic_load_set_lhs): Likewise.
32272 (gimple_omp_atomic_load_lhs): Likewise.
32273 (gimple_omp_atomic_load_lhs_ptr): Likewise.
32274 (gimple_omp_atomic_load_set_rhs): Likewise.
32275 (gimple_omp_atomic_load_rhs): Likewise.
32276 (gimple_omp_atomic_load_rhs_ptr): Likewise.
32277 (gimple_omp_continue_control_def): Likewise.
32278 (gimple_omp_continue_control_def_ptr): Likewise.
32279 (gimple_omp_continue_set_control_def): Likewise.
32280 (gimple_omp_continue_control_use): Likewise.
32281 (gimple_omp_continue_control_use_ptr): Likewise.
32282 (gimple_omp_continue_set_control_use): Likewise.
32283 (gimple_transaction_body_ptr): Likewise.
32284 (gimple_transaction_label): Likewise.
32285 (gimple_transaction_label_ptr): Likewise.
32286 (gimple_transaction_set_body): Likewise.
32287 (gimple_transaction_set_label): Likewise.
32288
32289 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
32290 * ipa-inline-analysis.c (inline_write_summary): Likewise.
32291 * ipa-ref.c (ipa_record_reference): Likewise.
32292 * ipa-reference.c (analyze_function): Likewise.
32293 (ipa_reference_write_optimization_summary): Likewise.
32294 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
32295 (address_taken_from_non_vtable_p): Likewise.
32296 (comdat_can_be_unshared_p_1): Likewise.
32297 * lto-cgraph.c (lto_output_ref): Likewise.
32298 (add_references): Likewise.
32299 (compute_ltrans_boundary): Likewise.
32300 (output_symtab): Likewise.
32301 (input_ref): Likewise.
32302 (input_cgraph_1): Likewise.
32303 (output_cgraph_opt_summary): Likewise.
32304 * lto-streamer-out.c (lto_output): Likewise.
32305 (output_symbol_p): Likewise.
32306 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
32307 (lsei_start_function_in_partition): Likewise.
32308 (lsei_next_variable_in_partition): Likewise.
32309 (lsei_start_variable_in_partition): Likewise.
32310 * symtab.c (insert_to_assembler_name_hash): Likewise.
32311 (unlink_from_assembler_name_hash): Likewise.
32312 (symtab_unregister_node): Likewise.
32313 (symtab_remove_node): Likewise.
32314 (dump_symtab_node): Likewise.
32315 (verify_symtab_base): Likewise.
32316 (verify_symtab_node): Likewise.
32317 (symtab_make_decl_local): Likewise.
32318 (symtab_alias_ultimate_target): Likewise.
32319 (symtab_resolve_alias): Likewise.
32320 (symtab_get_symbol_partitioning_class): Likewise.
32321 * tree-phinodes.c (allocate_phi_node): Likewise.
32322 (reserve_phi_args_for_new_edge): Likewise.
32323 (remove_phi_args): Likewise.
32324 * varpool.c (varpool_node_for_asm): Likewise.
32325 (varpool_remove_unreferenced_decls): Likewise.
32326
32327 2014-04-23 Jeff Law <law@redhat.com>
32328
32329 PR tree-optimization/60902
32330 * tree-ssa-threadedge.c
32331 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
32332 invalidate outputs from statements that do not produce useful
32333 outputs for threading.
32334
32335 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
32336
32337 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
32338 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
32339 machine descriptions for Stack Smashing Protector.
32340
32341 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
32342
32343 * aarch64.md (<optab>_rol<mode>3): New pattern.
32344 (<optab>_rolsi3_uxtw): Likewise.
32345 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
32346
32347 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
32348
32349 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
32350 (arm_cortex_a12_tune): Likewise.
32351
32352 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32353
32354 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
32355
32356 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32357
32358 * config/arm/arm.md (arm_rev16si2): New pattern.
32359 (arm_rev16si2_alt): Likewise.
32360 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
32361
32362 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32363
32364 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
32365 (rev16<mode>2_alt): Likewise.
32366 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
32367 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
32368 (aarch_rev16_shleft_mask_imm_p): Likewise.
32369 (aarch_rev16_p_1): Likewise.
32370 (aarch_rev16_p): Likewise.
32371 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
32372 (aarch_rev16_shright_mask_imm_p): Likewise.
32373 (aarch_rev16_shleft_mask_imm_p): Likewise.
32374
32375 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32376
32377 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
32378 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
32379 rev cost.
32380 (cortex_a53_extra_costs): Likewise.
32381 (cortex_a57_extra_costs): Likewise.
32382 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
32383 (cortexa7_extra_costs): Likewise.
32384 (cortexa8_extra_costs): Likewise.
32385 (cortexa12_extra_costs): Likewise.
32386 (cortexa15_extra_costs): Likewise.
32387 (v7m_extra_costs): Likewise.
32388 (arm_new_rtx_costs): Handle BSWAP.
32389
32390 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32391
32392 * config/arm/arm.c (cortexa8_extra_costs): New table.
32393 (arm_cortex_a8_tune): New tuning struct.
32394 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
32395
32396 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32397
32398 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
32399
32400 2014-04-23 Richard Biener <rguenther@suse.de>
32401
32402 * Makefile.in (OBJS): Remove loop-unswitch.o.
32403 * tree-pass.h (make_pass_rtl_unswitch): Remove.
32404 * passes.def (pass_rtl_unswitch): Likewise.
32405 * loop-init.c (gate_rtl_unswitch): Likewise.
32406 (rtl_unswitch): Likewise.
32407 (pass_data_rtl_unswitch): Likewise.
32408 (pass_rtl_unswitch): Likewise.
32409 (make_pass_rtl_unswitch): Likewise.
32410 * rtl.h (reversed_condition): Likewise.
32411 (compare_and_jump_seq): Likewise.
32412 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
32413 and make static.
32414 * loop-unroll.c (compare_and_jump_seq): Likewise.
32415
32416 2014-04-23 Richard Biener <rguenther@suse.de>
32417
32418 PR tree-optimization/60903
32419 * tree-ssa-loop-im.c (analyze_memory_references): Remove
32420 commented code block.
32421 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
32422 loop flags to newly created BBs and edges.
32423
32424 2014-04-23 Nick Clifton <nickc@redhat.com>
32425
32426 * config/msp430/msp430.c (msp430_handle_option): Move function
32427 to msp430-common.c
32428 (msp430_option_override): Simplify mcu and mcpu option handling.
32429 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
32430 support for -mhwmult command line option.
32431 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
32432 -mhwmult command line option.
32433 (msp430_hwmult_enabled): Delete.
32434 (msp43o_output_labelref): Add support for -mhwmult command line option.
32435 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
32436 (umulsidi3): Likewise.
32437 * config/msp430/msp430.opt (mmcu): Add Report attribute.
32438 (mcpu, mlarge, msmall): Likewise.
32439 (mhwmult): New option.
32440 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
32441 prototype.
32442 (msp430_is_f5_mcu): Remove prototype.
32443 (msp430_use_f5_series_hwmult): Add prototype.
32444 * config/msp430/msp430-opts.h: New file.
32445 * common/config/msp430: New directory.
32446 * common/config/msp430/msp430-common.c: New file.
32447 * config.gcc (msp430): Remove target_has_targetm_common.
32448 * doc/invoke.texi: Document -mhwmult command line option.
32449
32450 2014-04-23 Nick Clifton <nickc@redhat.com>
32451
32452 * config/i386/cygwin.h (ENDFILE_SPEC): Include
32453 default-manifest.o if it can be found in the search path.
32454 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
32455
32456 2014-04-23 Terry Guo <terry.guo@arm.com>
32457
32458 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
32459
32460 2014-04-23 Richard Biener <rguenther@suse.de>
32461
32462 PR middle-end/60895
32463 * tree-inline.c (declare_return_variable): Use mark_addressable.
32464
32465 2014-04-23 Richard Biener <rguenther@suse.de>
32466
32467 PR middle-end/60891
32468 * loop-init.c (loop_optimizer_init): Make sure to apply
32469 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
32470
32471 2014-04-22 Jakub Jelinek <jakub@redhat.com>
32472
32473 PR sanitizer/60275
32474 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
32475 New options.
32476 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
32477 if flag_sanitize_undefined_trap_on_error.
32478 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
32479 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
32480 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
32481 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
32482 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
32483 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
32484 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
32485 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
32486 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
32487 * ubsan.c (ubsan_instrument_unreachable): Return
32488 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
32489 (ubsan_expand_null_ifn): Emit __builtin_trap ()
32490 if flag_sanitize_undefined_trap_on_error and
32491 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
32492 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
32493 instrument_bool_enum_load): Emit __builtin_trap () if
32494 flag_sanitize_undefined_trap_on_error and
32495 __builtin_handle_*_abort () if !flag_sanitize_recover.
32496 * doc/invoke.texi (-fsanitize-recover,
32497 -fsanitize-undefined-trap-on-error): Document.
32498
32499 2014-04-22 Christian Bruel <christian.bruel@st.com>
32500
32501 * config/sh/sh.md (mov<mode>): Replace movQIHI.
32502 Force immediates to SImode.
32503
32504 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
32505
32506 * config/nios2/nios2.md (UNSPEC_ROUND): New.
32507 (lroundsfsi2): New.
32508 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
32509 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
32510 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
32511 (nios2_fpu_insn): Add entry for round.
32512 (N2FPU_NO_ERRNO_P): Define.
32513 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
32514 flag_errno_math.
32515 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
32516
32517 2014-04-22 Richard Henderson <rth@redhat.com>
32518
32519 * config/aarch64/aarch64 (addti3, subti3): New expanders.
32520 (add<GPI>3_compare0): Remove leading * from name.
32521 (add<GPI>3_carryin): Likewise.
32522 (sub<GPI>3_compare0): Likewise.
32523 (sub<GPI>3_carryin): Likewise.
32524 (<su_optab>mulditi3): New expander.
32525 (multi3): New expander.
32526 (madd<GPI>): Remove leading * from name.
32527
32528 2014-04-22 Martin Jambor <mjambor@suse.cz>
32529
32530 * cgraphclones.c (cgraph_function_versioning): Copy
32531 ipa_transforms_to_apply instead of asserting it is empty.
32532
32533 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
32534
32535 PR target/60868
32536 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
32537 on count_exp to get mode.
32538
32539 2014-04-22 Andrew Pinski <apinski@cavium.com>
32540
32541 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
32542 Handle TLS for ILP32.
32543 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
32544 (tlsie_small_<mode>): this and handle PTR.
32545 (tlsie_small_sidi): New pattern.
32546 (tlsle_small): Change to an expand to handle ILP32.
32547 (tlsle_small_<mode>): New pattern.
32548 (tlsdesc_small): Rename to ...
32549 (tlsdesc_small_<mode>): this and handle PTR.
32550
32551 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32552
32553 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
32554
32555 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
32556
32557 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
32558 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
32559 (aarch64_types_signed_poly_qualifiers): Likewise.
32560 (aarch64_types_unsigned_signed_qualifiers): Likewise.
32561 (aarch64_types_poly_signed_qualifiers): Likewise.
32562 (TYPES_REINTERP_SS): Type macro added.
32563 (TYPES_REINTERP_SU): Likewise.
32564 (TYPES_REINTERP_SP): Likewise.
32565 (TYPES_REINTERP_US): Likewise.
32566 (TYPES_REINTERP_PS): Likewise.
32567 (aarch64_fold_builtin): New expression folding added.
32568 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
32569 Declarations removed.
32570 (REINTERP_SS): Declarations added.
32571 (REINTERP_US): Likewise.
32572 (REINTERP_PS): Likewise.
32573 (REINTERP_SU): Likewise.
32574 (REINTERP_SP): Likewise.
32575 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
32576 (vreinterpretq_p8_f64): Likewise.
32577 (vreinterpret_p16_f64): Likewise.
32578 (vreinterpretq_p16_f64): Likewise.
32579 (vreinterpret_f32_f64): Likewise.
32580 (vreinterpretq_f32_f64): Likewise.
32581 (vreinterpret_f64_f32): Likewise.
32582 (vreinterpret_f64_p8): Likewise.
32583 (vreinterpret_f64_p16): Likewise.
32584 (vreinterpret_f64_s8): Likewise.
32585 (vreinterpret_f64_s16): Likewise.
32586 (vreinterpret_f64_s32): Likewise.
32587 (vreinterpret_f64_s64): Likewise.
32588 (vreinterpret_f64_u8): Likewise.
32589 (vreinterpret_f64_u16): Likewise.
32590 (vreinterpret_f64_u32): Likewise.
32591 (vreinterpret_f64_u64): Likewise.
32592 (vreinterpretq_f64_f32): Likewise.
32593 (vreinterpretq_f64_p8): Likewise.
32594 (vreinterpretq_f64_p16): Likewise.
32595 (vreinterpretq_f64_s8): Likewise.
32596 (vreinterpretq_f64_s16): Likewise.
32597 (vreinterpretq_f64_s32): Likewise.
32598 (vreinterpretq_f64_s64): Likewise.
32599 (vreinterpretq_f64_u8): Likewise.
32600 (vreinterpretq_f64_u16): Likewise.
32601 (vreinterpretq_f64_u32): Likewise.
32602 (vreinterpretq_f64_u64): Likewise.
32603 (vreinterpret_s64_f64): Likewise.
32604 (vreinterpretq_s64_f64): Likewise.
32605 (vreinterpret_u64_f64): Likewise.
32606 (vreinterpretq_u64_f64): Likewise.
32607 (vreinterpret_s8_f64): Likewise.
32608 (vreinterpretq_s8_f64): Likewise.
32609 (vreinterpret_s16_f64): Likewise.
32610 (vreinterpretq_s16_f64): Likewise.
32611 (vreinterpret_s32_f64): Likewise.
32612 (vreinterpretq_s32_f64): Likewise.
32613 (vreinterpret_u8_f64): Likewise.
32614 (vreinterpretq_u8_f64): Likewise.
32615 (vreinterpret_u16_f64): Likewise.
32616 (vreinterpretq_u16_f64): Likewise.
32617 (vreinterpret_u32_f64): Likewise.
32618 (vreinterpretq_u32_f64): Likewise.
32619
32620 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
32621
32622 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
32623 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
32624 (vreinterpret_p8_s8): Likewise.
32625 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
32626 (vreinterpret_p8_s16): Likewise.
32627 (vreinterpret_p8_s32): Likewise.
32628 (vreinterpret_p8_s64): Likewise.
32629 (vreinterpret_p8_f32): Likewise.
32630 (vreinterpret_p8_u8): Likewise.
32631 (vreinterpret_p8_u16): Likewise.
32632 (vreinterpret_p8_u32): Likewise.
32633 (vreinterpret_p8_u64): Likewise.
32634 (vreinterpret_p8_p16): Likewise.
32635 (vreinterpretq_p8_s8): Likewise.
32636 (vreinterpretq_p8_s16): Likewise.
32637 (vreinterpretq_p8_s32): Likewise.
32638 (vreinterpretq_p8_s64): Likewise.
32639 (vreinterpretq_p8_f32): Likewise.
32640 (vreinterpretq_p8_u8): Likewise.
32641 (vreinterpretq_p8_u16): Likewise.
32642 (vreinterpretq_p8_u32): Likewise.
32643 (vreinterpretq_p8_u64): Likewise.
32644 (vreinterpretq_p8_p16): Likewise.
32645 (vreinterpret_p16_s8): Likewise.
32646 (vreinterpret_p16_s16): Likewise.
32647 (vreinterpret_p16_s32): Likewise.
32648 (vreinterpret_p16_s64): Likewise.
32649 (vreinterpret_p16_f32): Likewise.
32650 (vreinterpret_p16_u8): Likewise.
32651 (vreinterpret_p16_u16): Likewise.
32652 (vreinterpret_p16_u32): Likewise.
32653 (vreinterpret_p16_u64): Likewise.
32654 (vreinterpret_p16_p8): Likewise.
32655 (vreinterpretq_p16_s8): Likewise.
32656 (vreinterpretq_p16_s16): Likewise.
32657 (vreinterpretq_p16_s32): Likewise.
32658 (vreinterpretq_p16_s64): Likewise.
32659 (vreinterpretq_p16_f32): Likewise.
32660 (vreinterpretq_p16_u8): Likewise.
32661 (vreinterpretq_p16_u16): Likewise.
32662 (vreinterpretq_p16_u32): Likewise.
32663 (vreinterpretq_p16_u64): Likewise.
32664 (vreinterpretq_p16_p8): Likewise.
32665 (vreinterpret_f32_s8): Likewise.
32666 (vreinterpret_f32_s16): Likewise.
32667 (vreinterpret_f32_s32): Likewise.
32668 (vreinterpret_f32_s64): Likewise.
32669 (vreinterpret_f32_u8): Likewise.
32670 (vreinterpret_f32_u16): Likewise.
32671 (vreinterpret_f32_u32): Likewise.
32672 (vreinterpret_f32_u64): Likewise.
32673 (vreinterpret_f32_p8): Likewise.
32674 (vreinterpret_f32_p16): Likewise.
32675 (vreinterpretq_f32_s8): Likewise.
32676 (vreinterpretq_f32_s16): Likewise.
32677 (vreinterpretq_f32_s32): Likewise.
32678 (vreinterpretq_f32_s64): Likewise.
32679 (vreinterpretq_f32_u8): Likewise.
32680 (vreinterpretq_f32_u16): Likewise.
32681 (vreinterpretq_f32_u32): Likewise.
32682 (vreinterpretq_f32_u64): Likewise.
32683 (vreinterpretq_f32_p8): Likewise.
32684 (vreinterpretq_f32_p16): Likewise.
32685 (vreinterpret_s64_s8): Likewise.
32686 (vreinterpret_s64_s16): Likewise.
32687 (vreinterpret_s64_s32): Likewise.
32688 (vreinterpret_s64_f32): Likewise.
32689 (vreinterpret_s64_u8): Likewise.
32690 (vreinterpret_s64_u16): Likewise.
32691 (vreinterpret_s64_u32): Likewise.
32692 (vreinterpret_s64_u64): Likewise.
32693 (vreinterpret_s64_p8): Likewise.
32694 (vreinterpret_s64_p16): Likewise.
32695 (vreinterpretq_s64_s8): Likewise.
32696 (vreinterpretq_s64_s16): Likewise.
32697 (vreinterpretq_s64_s32): Likewise.
32698 (vreinterpretq_s64_f32): Likewise.
32699 (vreinterpretq_s64_u8): Likewise.
32700 (vreinterpretq_s64_u16): Likewise.
32701 (vreinterpretq_s64_u32): Likewise.
32702 (vreinterpretq_s64_u64): Likewise.
32703 (vreinterpretq_s64_p8): Likewise.
32704 (vreinterpretq_s64_p16): Likewise.
32705 (vreinterpret_u64_s8): Likewise.
32706 (vreinterpret_u64_s16): Likewise.
32707 (vreinterpret_u64_s32): Likewise.
32708 (vreinterpret_u64_s64): Likewise.
32709 (vreinterpret_u64_f32): Likewise.
32710 (vreinterpret_u64_u8): Likewise.
32711 (vreinterpret_u64_u16): Likewise.
32712 (vreinterpret_u64_u32): Likewise.
32713 (vreinterpret_u64_p8): Likewise.
32714 (vreinterpret_u64_p16): Likewise.
32715 (vreinterpretq_u64_s8): Likewise.
32716 (vreinterpretq_u64_s16): Likewise.
32717 (vreinterpretq_u64_s32): Likewise.
32718 (vreinterpretq_u64_s64): Likewise.
32719 (vreinterpretq_u64_f32): Likewise.
32720 (vreinterpretq_u64_u8): Likewise.
32721 (vreinterpretq_u64_u16): Likewise.
32722 (vreinterpretq_u64_u32): Likewise.
32723 (vreinterpretq_u64_p8): Likewise.
32724 (vreinterpretq_u64_p16): Likewise.
32725 (vreinterpret_s8_s16): Likewise.
32726 (vreinterpret_s8_s32): Likewise.
32727 (vreinterpret_s8_s64): Likewise.
32728 (vreinterpret_s8_f32): Likewise.
32729 (vreinterpret_s8_u8): Likewise.
32730 (vreinterpret_s8_u16): Likewise.
32731 (vreinterpret_s8_u32): Likewise.
32732 (vreinterpret_s8_u64): Likewise.
32733 (vreinterpret_s8_p8): Likewise.
32734 (vreinterpret_s8_p16): Likewise.
32735 (vreinterpretq_s8_s16): Likewise.
32736 (vreinterpretq_s8_s32): Likewise.
32737 (vreinterpretq_s8_s64): Likewise.
32738 (vreinterpretq_s8_f32): Likewise.
32739 (vreinterpretq_s8_u8): Likewise.
32740 (vreinterpretq_s8_u16): Likewise.
32741 (vreinterpretq_s8_u32): Likewise.
32742 (vreinterpretq_s8_u64): Likewise.
32743 (vreinterpretq_s8_p8): Likewise.
32744 (vreinterpretq_s8_p16): Likewise.
32745 (vreinterpret_s16_s8): Likewise.
32746 (vreinterpret_s16_s32): Likewise.
32747 (vreinterpret_s16_s64): Likewise.
32748 (vreinterpret_s16_f32): Likewise.
32749 (vreinterpret_s16_u8): Likewise.
32750 (vreinterpret_s16_u16): Likewise.
32751 (vreinterpret_s16_u32): Likewise.
32752 (vreinterpret_s16_u64): Likewise.
32753 (vreinterpret_s16_p8): Likewise.
32754 (vreinterpret_s16_p16): Likewise.
32755 (vreinterpretq_s16_s8): Likewise.
32756 (vreinterpretq_s16_s32): Likewise.
32757 (vreinterpretq_s16_s64): Likewise.
32758 (vreinterpretq_s16_f32): Likewise.
32759 (vreinterpretq_s16_u8): Likewise.
32760 (vreinterpretq_s16_u16): Likewise.
32761 (vreinterpretq_s16_u32): Likewise.
32762 (vreinterpretq_s16_u64): Likewise.
32763 (vreinterpretq_s16_p8): Likewise.
32764 (vreinterpretq_s16_p16): Likewise.
32765 (vreinterpret_s32_s8): Likewise.
32766 (vreinterpret_s32_s16): Likewise.
32767 (vreinterpret_s32_s64): Likewise.
32768 (vreinterpret_s32_f32): Likewise.
32769 (vreinterpret_s32_u8): Likewise.
32770 (vreinterpret_s32_u16): Likewise.
32771 (vreinterpret_s32_u32): Likewise.
32772 (vreinterpret_s32_u64): Likewise.
32773 (vreinterpret_s32_p8): Likewise.
32774 (vreinterpret_s32_p16): Likewise.
32775 (vreinterpretq_s32_s8): Likewise.
32776 (vreinterpretq_s32_s16): Likewise.
32777 (vreinterpretq_s32_s64): Likewise.
32778 (vreinterpretq_s32_f32): Likewise.
32779 (vreinterpretq_s32_u8): Likewise.
32780 (vreinterpretq_s32_u16): Likewise.
32781 (vreinterpretq_s32_u32): Likewise.
32782 (vreinterpretq_s32_u64): Likewise.
32783 (vreinterpretq_s32_p8): Likewise.
32784 (vreinterpretq_s32_p16): Likewise.
32785 (vreinterpret_u8_s8): Likewise.
32786 (vreinterpret_u8_s16): Likewise.
32787 (vreinterpret_u8_s32): Likewise.
32788 (vreinterpret_u8_s64): Likewise.
32789 (vreinterpret_u8_f32): Likewise.
32790 (vreinterpret_u8_u16): Likewise.
32791 (vreinterpret_u8_u32): Likewise.
32792 (vreinterpret_u8_u64): Likewise.
32793 (vreinterpret_u8_p8): Likewise.
32794 (vreinterpret_u8_p16): Likewise.
32795 (vreinterpretq_u8_s8): Likewise.
32796 (vreinterpretq_u8_s16): Likewise.
32797 (vreinterpretq_u8_s32): Likewise.
32798 (vreinterpretq_u8_s64): Likewise.
32799 (vreinterpretq_u8_f32): Likewise.
32800 (vreinterpretq_u8_u16): Likewise.
32801 (vreinterpretq_u8_u32): Likewise.
32802 (vreinterpretq_u8_u64): Likewise.
32803 (vreinterpretq_u8_p8): Likewise.
32804 (vreinterpretq_u8_p16): Likewise.
32805 (vreinterpret_u16_s8): Likewise.
32806 (vreinterpret_u16_s16): Likewise.
32807 (vreinterpret_u16_s32): Likewise.
32808 (vreinterpret_u16_s64): Likewise.
32809 (vreinterpret_u16_f32): Likewise.
32810 (vreinterpret_u16_u8): Likewise.
32811 (vreinterpret_u16_u32): Likewise.
32812 (vreinterpret_u16_u64): Likewise.
32813 (vreinterpret_u16_p8): Likewise.
32814 (vreinterpret_u16_p16): Likewise.
32815 (vreinterpretq_u16_s8): Likewise.
32816 (vreinterpretq_u16_s16): Likewise.
32817 (vreinterpretq_u16_s32): Likewise.
32818 (vreinterpretq_u16_s64): Likewise.
32819 (vreinterpretq_u16_f32): Likewise.
32820 (vreinterpretq_u16_u8): Likewise.
32821 (vreinterpretq_u16_u32): Likewise.
32822 (vreinterpretq_u16_u64): Likewise.
32823 (vreinterpretq_u16_p8): Likewise.
32824 (vreinterpretq_u16_p16): Likewise.
32825 (vreinterpret_u32_s8): Likewise.
32826 (vreinterpret_u32_s16): Likewise.
32827 (vreinterpret_u32_s32): Likewise.
32828 (vreinterpret_u32_s64): Likewise.
32829 (vreinterpret_u32_f32): Likewise.
32830 (vreinterpret_u32_u8): Likewise.
32831 (vreinterpret_u32_u16): Likewise.
32832 (vreinterpret_u32_u64): Likewise.
32833 (vreinterpret_u32_p8): Likewise.
32834 (vreinterpret_u32_p16): Likewise.
32835 (vreinterpretq_u32_s8): Likewise.
32836 (vreinterpretq_u32_s16): Likewise.
32837 (vreinterpretq_u32_s32): Likewise.
32838 (vreinterpretq_u32_s64): Likewise.
32839 (vreinterpretq_u32_f32): Likewise.
32840 (vreinterpretq_u32_u8): Likewise.
32841 (vreinterpretq_u32_u16): Likewise.
32842 (vreinterpretq_u32_u64): Likewise.
32843 (vreinterpretq_u32_p8): Likewise.
32844 (vreinterpretq_u32_p16): Likewise.
32845
32846 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
32847
32848 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
32849 Pattern extended.
32850 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
32851 (sqabs): Likewise.
32852 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
32853 (vqnegd_s64): Likewise.
32854 (vqabs_s64): Likewise.
32855 (vqabsd_s64): Likewise.
32856
32857 2014-04-22 Richard Henderson <rth@redhat.com>
32858
32859 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
32860 computation to the top of the loop.
32861
32862 2014-04-22 Renlin <renlin.li@arm.com>
32863 Jiong Wang <jiong.wang@arm.com>
32864
32865 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
32866 * config/aarch64/aarch64.c (aarch64_layout_frame)
32867 (aarch64_initial_elimination_offset): Likewise.
32868
32869 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
32870
32871 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
32872 Fix indentation.
32873
32874 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
32875
32876 * machmode.h (bitwise_mode_for_mode): Declare.
32877 * stor-layout.h (bitwise_type_for_mode): Likewise.
32878 * stor-layout.c (bitwise_mode_for_mode): New function.
32879 (bitwise_type_for_mode): Likewise.
32880 * builtins.c (fold_builtin_memory_op): Use it instead of
32881 int_mode_for_mode and build_nonstandard_integer_type.
32882
32883 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32884
32885 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
32886 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
32887 (*-*-solaris2*): Simplify.
32888 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
32889 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
32890 *-*-solaris2.9* handling.
32891
32892 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
32893 as bug.
32894 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
32895 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
32896 handling, simplify.
32897 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
32898 * configure: Regenerate.
32899
32900 * config/i386/sol2-9.h: Remove.
32901
32902 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
32903 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
32904 Remove Solaris 9 references.
32905
32906 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
32907
32908 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
32909 (floatuns<GPI:mode><GPF:mode>2): Remove.
32910 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
32911 and floatuns conversions.
32912 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
32913 and floatuns conversions.
32914 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
32915 (w1,w2): New mode attributes for inequal width conversions.
32916
32917 2014-04-22 Renlin Li <Renlin.Li@arm.com>
32918
32919 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
32920 the output asm format.
32921
32922 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
32923
32924 * config/aarch64/aarch64-simd.md
32925 (aarch64_cm<optab>di): Always split.
32926 (*aarch64_cm<optab>di): New.
32927 (aarch64_cmtstdi): Always split.
32928 (*aarch64_cmtstdi): New.
32929
32930 2014-04-22 Jakub Jelinek <jakub@redhat.com>
32931
32932 PR tree-optimization/60823
32933 * omp-low.c (ipa_simd_modify_function_body): Go through
32934 all SSA_NAMEs and for those refering to vector arguments
32935 which are going to be replaced adjust SSA_NAME_VAR and,
32936 if it is a default definition, change it into a non-default
32937 definition assigned at the beginning of function from new_decl.
32938 (ipa_simd_modify_stmt_ops): Rewritten.
32939 * tree-dfa.c (set_ssa_default_def): When removing default def,
32940 check for NULL loc instead of NULL *loc.
32941
32942 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32943
32944 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
32945 restrictions on core registers for DImode values in Thumb2.
32946
32947 2014-04-22 Ian Bolton <ian.bolton@arm.com>
32948
32949 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
32950 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
32951
32952 2014-04-22 Ian Bolton <ian.bolton@arm.com>
32953
32954 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
32955 (*iordi_notzesidi_di): Likewise.
32956 (*iordi_notsesidi_di): Likewise.
32957
32958 2014-04-22 Ian Bolton <ian.bolton@arm.com>
32959
32960 * config/arm/arm-protos.h (tune_params): New struct members.
32961 * config/arm/arm.c: Initialise tune_params per processor.
32962 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
32963 for speed, based on new tune_params.
32964
32965 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
32966
32967 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
32968 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
32969 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
32970 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
32971 * config/aarch64/arm_neon.h (vrnd_f64): Added.
32972 (vrnda_f64): Likewise.
32973 (vrndi_f64): Likewise.
32974 (vrndm_f64): Likewise.
32975 (vrndn_f64): Likewise.
32976 (vrndp_f64): Likewise.
32977 (vrndx_f64): Likewise.
32978
32979 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32980
32981 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
32982 GET_MODE_SIZE argument is enum machine_mode.
32983
32984 2014-04-22 Jakub Jelinek <jakub@redhat.com>
32985
32986 PR target/60910
32987 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
32988 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
32989
32990 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
32991
32992 PR middle-end/60281
32993 * asan.c (asan_emit_stack_protection): Force the base to align to
32994 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
32995 appropriate bits if STRICT_ALIGNMENT.
32996 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
32997 when asan is on.
32998 (expand_used_vars): Leave a space in the stack frame for alignment
32999 if STRICT_ALIGNMENT.
33000
33001 2014-04-21 David Malcolm <dmalcolm@redhat.com>
33002
33003 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
33004 than a gimple.
33005 (gimple_store_p): Likewise.
33006 (gimple_assign_load_p): Likewise.
33007 (gimple_assign_cast_p): Likewise.
33008 (gimple_clobber_p): Likewise.
33009
33010 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
33011 rather than a gimple.
33012 (gimple_assign_cast_p): Likewise.
33013
33014 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
33015
33016 PR target/60735
33017 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
33018 If mode is DDmode and TARGET_E500_DOUBLE allow move.
33019
33020 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
33021 more debug information for E500 if -mdebug=reg.
33022
33023 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
33024
33025 PR target/60909
33026 * config/i386/i386.c (ix86_expand_builtin)
33027 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
33028 register for target RTX.
33029 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
33030
33031 2014-04-18 Cong Hou <congh@google.com>
33032
33033 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
33034 the widen-mult pattern by handling two operands with different sizes,
33035 and operands whose size is smaller than half of the result type.
33036
33037 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
33038
33039 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
33040 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
33041 (do_estimate_edge_time): Compute it.
33042 * ipa-inline.c (want_inline_small_function_p): Bypass
33043 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
33044
33045 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
33046
33047 * ipa-inline.c (spec_rem): New static variable.
33048 (dump_overall_stats): New function.
33049 (dump_inline_stats): New function.
33050
33051 2014-04-18 Richard Henderson <rth@redhat.com>
33052
33053 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
33054 to GET_MODE_SIZE, not a reg_class_t.
33055
33056 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33057
33058 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
33059 (vsx_xxmrglw_<mode>): Likewise.
33060
33061 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
33062
33063 PR target/60876
33064 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
33065 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
33066 (rs6000_init_hard_regno_mode_ok): Likewise.
33067
33068 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
33069
33070 * ipa-inline.c (inline_small_functions): Account only non-cold
33071 functions.
33072 * doc/invoke.texi (inline-unit-growth): Update documentation.
33073
33074 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
33075
33076 * config/rs6000/rs6000.md (addti3, subti3): New.
33077
33078 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
33079
33080 PR target/60863
33081 * config/i386/i386.c (ix86_expand_clear): Remove outdated
33082 comment. Check optimize_insn_for_size_p instead of
33083 optimize_insn_for_speed_p.
33084
33085 2014-04-17 Martin Jambor <mjambor@suse.cz>
33086
33087 * gimple-iterator.c (gsi_start_edge): New function.
33088 * gimple-iterator.h (gsi_start_edge): Declare.
33089 * tree-sra.c (single_non_eh_succ): New function.
33090 (disqualify_ops_if_throwing_stmt): Renamed to
33091 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
33092 having one non-EH successor BB.
33093 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
33094 generate loads into replacements.
33095 (sra_modify_assign): Likewise and and also use the simple path for
33096 such statements.
33097 (sra_modify_function_body): Commit statements on edges.
33098
33099 2014-04-17 Richard Biener <rguenther@suse.de>
33100
33101 PR middle-end/60849
33102 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
33103 comparison results and add clarifying comment.
33104
33105 2014-04-17 Jakub Jelinek <jakub@redhat.com>
33106
33107 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
33108 (blank_mode): Initialize it.
33109 (emit_mode_size_inline, emit_mode_nunits_inline,
33110 emit_mode_inner_inline): New functions.
33111 (emit_insn_modes_h): Call them and surround their output with
33112 #if GCC_VERSION >= 4001 ... #endif.
33113 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
33114 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
33115 mode_* arrays if the argument is __builtin_constant_p.
33116 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
33117 is enum machine_mode.
33118
33119 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
33120
33121 * passes.c (opt_pass::execute): Adjust.
33122 (pass_manager::execute_pass_mode_switching): Likewise.
33123 (early_local_passes::execute): Likewise.
33124 (execute_one_pass): Pass cfun to the pass's execute method.
33125 * tree-pass.h (opt_pass::execute): Add function * argument.
33126 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
33127 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
33128 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
33129 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
33130 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
33131 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
33132 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
33133 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
33134 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
33135 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
33136 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
33137 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
33138 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
33139 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
33140 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
33141 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
33142 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
33143 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
33144 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
33145 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
33146 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
33147 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
33148 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
33149 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
33150 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
33151 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
33152 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
33153 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
33154 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
33155 Adjust.
33156
33157 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
33158
33159 * passes.c (opt_pass::gate): Take function * argument.
33160 (gate_all_early_local_passes): Merge into
33161 (early_local_passes::gate): this.
33162 (gate_all_early_optimizations): Merge into
33163 (all_early_optimizations::gate): this.
33164 (gate_all_optimizations): Mege into
33165 (all_optimizations::gate): this.
33166 (gate_all_optimizations_g): Merge into
33167 (all_optimizations_g::gate): this.
33168 (gate_rest_of_compilation): Mege into
33169 (rest_of_compilation::gate): this.
33170 (gate_postreload): Merge into
33171 (postreload::gate): this.
33172 (dump_one_pass): Pass cfun to the pass's gate method.
33173 (execute_ipa_summary_passes): Likewise.
33174 (execute_one_pass): Likewise.
33175 (ipa_write_summaries_2): Likewise.
33176 (ipa_write_optimization_summaries_1): Likewise.
33177 (ipa_read_summaries_1): Likewise.
33178 (ipa_read_optimization_summaries_1): Likewise.
33179 (execute_ipa_stmt_fixups): Likewise.
33180 * tree-pass.h (opt_pass::gate): Add function * argument.
33181 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
33182 combine-stack-adj.c, combine.c, compare-elim.c,
33183 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
33184 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
33185 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
33186 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
33187 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
33188 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
33189 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
33190 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
33191 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
33192 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
33193 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
33194 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
33195 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
33196 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
33197 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
33198 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
33199 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
33200 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
33201 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
33202 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
33203 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
33204 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
33205 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
33206 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
33207 var-tracking.c, vtable-verify.c, web.c: Adjust.
33208
33209 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
33210
33211 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
33212 * configure: Regenerate.
33213
33214 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
33215
33216 * passes.c (dump_one_pass): don't check pass->has_gate.
33217 (execute_ipa_summary_passes): Likewise.
33218 (execute_one_pass): Likewise.
33219 (ipa_write_summaries_2): Likewise.
33220 (ipa_write_optimization_summaries_1): Likewise.
33221 (ipa_read_optimization_summaries_1): Likewise.
33222 (execute_ipa_stmt_fixups): Likewise.
33223 * tree-pass.h (pass_data::has_gate): Remove.
33224 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
33225 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
33226 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
33227 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
33228 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
33229 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
33230 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
33231 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
33232 gimple-low.c, gimple-ssa-isolate-paths.c,
33233 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
33234 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
33235 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
33236 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
33237 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
33238 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
33239 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
33240 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
33241 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
33242 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
33243 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
33244 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
33245 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
33246 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
33247 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
33248 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
33249 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
33250 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
33251 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
33252 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
33253 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
33254 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
33255 Adjust.
33256
33257 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
33258
33259 * pass_manager.h (pass_manager::register_dump_files_1): Remove
33260 declaration.
33261 * passes.c (pass_manager::register_dump_files_1): Merge into
33262 (pass_manager::register_dump_files): this, and remove its handling of
33263 properties since the pass always has the properties anyway.
33264 (pass_manager::pass_manager): Adjust.
33265
33266 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
33267
33268 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
33269 * passes.c (pass_manager::register_dump_files_1): Remove dead code
33270 dealing with properties.
33271 (pass_manager::register_dump_files): Adjust.
33272
33273 2014-03-20 Mark Wielaard <mjw@redhat.com>
33274
33275 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
33276 then represent the bound as normal constant value.
33277
33278 2014-04-17 Jakub Jelinek <jakub@redhat.com>
33279
33280 PR target/60847
33281 Forward port from 4.8 branch
33282 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
33283
33284 * config/i386/bmiintrin.h (_blsi_u32): New.
33285 (_blsi_u64): Ditto.
33286 (_blsr_u32): Ditto.
33287 (_blsr_u64): Ditto.
33288 (_blsmsk_u32): Ditto.
33289 (_blsmsk_u64): Ditto.
33290 (_tzcnt_u32): Ditto.
33291 (_tzcnt_u64): Ditto.
33292
33293 2014-04-17 Kito Cheng <kito@0xlab.org>
33294
33295 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
33296
33297 2014-04-17 Richard Biener <rguenther@suse.de>
33298
33299 PR middle-end/60849
33300 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
33301 boolean results for comparisons.
33302
33303 2014-04-17 Richard Biener <rguenther@suse.de>
33304
33305 PR tree-optimization/60836
33306 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
33307 initial PHI args to be gimple values.
33308
33309 2014-04-17 Richard Biener <rguenther@suse.de>
33310
33311 PR tree-optimization/60841
33312 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
33313 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
33314 of stmts to SLP build.
33315 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
33316 (vect_analyze_slp): Likewise.
33317 (vect_analyze_slp_instance): Likewise.
33318 (vect_build_slp_tree): Limit overall SLP tree growth.
33319 * tree-vectorizer.h (vect_analyze_data_refs,
33320 vect_analyze_slp): Adjust prototypes.
33321
33322 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
33323
33324 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
33325 Silvermont.
33326
33327 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
33328
33329 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
33330 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
33331 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
33332 for TARGET_SLOW_PSHUFB
33333
33334 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
33335
33336 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
33337 * config/i386/i386.c (intel_cost): Ditto.
33338
33339 2014-04-17 Joey Ye <joey.ye@arm.com>
33340
33341 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
33342
33343 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
33344
33345 * opts.c (common_handle_option): Disable -fipa-reference coorectly
33346 with -fuse-profile.
33347
33348 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
33349
33350 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
33351 (type_all_derivations_known_p): New predicate.
33352 (type_all_ctors_visible_p): New predicate.
33353 (type_possibly_instantiated_p): New predicate.
33354 (get_odr_type): Compute all_derivations_known.
33355 (dump_odr_type): Dump the flag.
33356 (maybe_record_type): Cleanup.
33357 (record_target_from_binfo): Add bases_to_consider array;
33358 record bases for types w/o instances and skip CXX destructor.
33359 (possible_polymorphic_call_targets_1): Add bases_to_consider
33360 and consider_construction parameters; check if type may have instance.
33361 (get_polymorphic_call_info): Set maybe_in_construction to true
33362 when we know nothing.
33363 (record_targets_from_bases): Skip CXX destructors; they are
33364 never called for types in construction.
33365 (possible_polymorphic_call_targets): Do not record target when
33366 type may not have instance.
33367
33368 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
33369
33370 PR ipa/60854
33371 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
33372 external aliases alive, too.
33373
33374 2014-04-16 Andrew Pinski <apinski@cavium.com>
33375
33376 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
33377 definition.
33378
33379 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
33380
33381 * final.c (compute_alignments): Do not apply loop alignment to a block
33382 falling through to the exit.
33383
33384 2014-04-16 Catherine Moore <clm@codesourcery.com>
33385
33386 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
33387 Adjust constraints for microMIPS store patterns.
33388
33389 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
33390
33391 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
33392
33393 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
33394
33395 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
33396 (append_use): Run at -O0.
33397 (append_vdef): Likewise.
33398 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
33399 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
33400
33401 2014-04-16 Jakub Jelinek <jakub@redhat.com>
33402
33403 PR tree-optimization/60844
33404 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
33405 (propagate_op_to_single_use, remove_visited_stmt_chain,
33406 linearize_expr, repropagate_negates, reassociate_bb): Use it
33407 instead of gsi_remove.
33408
33409 2014-04-16 Martin Jambor <mjambor@suse.cz>
33410
33411 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
33412 ipa_transforms_to_apply.
33413 (cgraph_function_versioning): Assert that old_node has empty
33414 ipa_transforms_to_apply.
33415 * trans-mem.c (ipa_tm_create_version): Likewise.
33416 * tree-inline.c (tree_function_versioning): Do not duplicate
33417 ipa_transforms_to_apply.
33418
33419 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33420
33421 PR target/60817
33422 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
33423 x86_64-*-* cases.
33424 Pass necessary as flags on 64-bit Solaris/x86.
33425 Use lowercase relocs for x86_64-*-*.
33426 * configure: Regenerate.
33427
33428 2014-04-15 Jan Hubicka <jh@suse.cz>
33429
33430 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
33431 (maybe_record_node, likely_target_p): Use it.
33432
33433 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33434
33435 PR target/60839
33436 Revert following patch
33437
33438 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
33439
33440 PR target/60735
33441 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
33442 software floating point or no floating point registers, do not
33443 allow any type in the FPRs. Eliminate a test for SPE SIMD types
33444 in GPRs that occurs after we tested for GPRs that would never be
33445 true.
33446
33447 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
33448 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
33449 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
33450 specifically allow DDmode, since that does not use the SPE SIMD
33451 instructions.
33452
33453 2014-03-21 Mark Wielaard <mjw@redhat.com>
33454
33455 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
33456 as unsigned or int depending on type and value used.
33457
33458 2014-04-15 Richard Biener <rguenther@suse.de>
33459
33460 PR rtl-optimization/56965
33461 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
33462 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
33463 ... here.
33464 * alias.c (true_dependence_1): Do not call
33465 nonoverlapping_component_refs_p.
33466 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
33467 nonoverlapping_component_refs_p.
33468 (indirect_refs_may_alias_p): Likewise.
33469
33470 2014-04-15 Teresa Johnson <tejohnson@google.com>
33471
33472 * cfg.c (dump_bb_info): Fix flags check.
33473 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
33474
33475 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33476
33477 PR rtl-optimization/60663
33478 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
33479 avoid 0 cost.
33480
33481 2014-04-15 Richard Biener <rguenther@suse.de>
33482
33483 * lto-streamer.h (LTO_major_version): Bump to 4.
33484
33485 2014-04-15 Richard Biener <rguenther@suse.de>
33486
33487 * common.opt (lto_partition_model): New enum.
33488 (flto-partition=): Merge separate options with a single with argument,
33489 add -flto-partition=one support.
33490 * flag-types.h (enum lto_partition_model): Declare.
33491 * opts.c (finish_options): Remove duplicate -flto-partition=
33492 option check.
33493 * lto-wrapper.c (run_gcc): Adjust.
33494
33495 2014-04-15 Richard Biener <rguenther@suse.de>
33496
33497 * alias.c (ncr_compar): New function.
33498 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
33499
33500 2014-04-15 Richard Biener <rguenther@suse.de>
33501
33502 * alias.c (record_component_aliases): Do not walk BINFOs.
33503
33504 2014-04-15 Richard Biener <rguenther@suse.de>
33505
33506 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
33507 Add struct function argument and adjust.
33508 (find_func_aliases_for_call): Likewise.
33509 (find_func_aliases): Likewise.
33510 (find_func_clobbers): Likewise.
33511 (intra_create_variable_infos): Likewise.
33512 (compute_points_to_sets): Likewise.
33513 (ipa_pta_execute): Adjust. Do not push/pop cfun.
33514
33515 2014-04-15 Richard Biener <rguenther@suse.de>
33516
33517 * tree.c (iterative_hash_expr): Use enum tree_code_class
33518 to store TREE_CODE_CLASS.
33519 (tree_block): Likewise.
33520 (tree_set_block): Likewise.
33521 * tree.h (fold_build_pointer_plus_loc): Use
33522 convert_to_ptrofftype_loc.
33523
33524 2014-04-15 Jakub Jelinek <jakub@redhat.com>
33525
33526 PR plugins/59335
33527 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
33528 added in 4.9.
33529
33530 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
33531
33532 * cfgloop.h (struct loop): Move force_vectorize down.
33533 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
33534 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
33535 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
33536 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
33537 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
33538 * tree-core.h (enum annot_expr_kind): Add new kind values.
33539 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
33540 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
33541 kinds.
33542 * tree.def (ANNOTATE_EXPR): Tweak comment.
33543
33544 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
33545
33546 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
33547 cxa_pure_virtual).
33548
33549 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
33550
33551 * tree.h (TYPE_IDENTIFIER): Declare.
33552 * tree.c (subrange_type_for_debug_p): Use it.
33553 * godump.c (go_format_type): Likewise.
33554 * dwarf2out.c (is_cxx_auto, modified_type_die,
33555 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
33556 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
33557
33558 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
33559
33560 PR lto/60820
33561 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
33562
33563 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
33564
33565 * config/i386/i386.c (examine_argument): Return bool. Return true if
33566 parameter should be passed in memory.
33567 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
33568 (construct_container): Update calls to examine_argument.
33569 (function_arg_advance_64): Ditto.
33570 (return_in_memory_32): Merge with ix86_return_in_memory.
33571 (return_in_memory_64): Ditto.
33572 (return_in_memory_ms_64): Ditto.
33573
33574 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
33575
33576 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
33577 * coverage.c (coverage_compute_profile_id): Handle externally visible
33578 symbols.
33579
33580 2014-04-14 Martin Jambor <mjambor@suse.cz>
33581
33582 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
33583 DECL_DISREGARD_INLINE_LIMITS functions.
33584
33585 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
33586
33587 PR target/60827
33588 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
33589
33590 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
33591
33592 PR target/60827
33593 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
33594 optimize_insn_for_speed_p instead of
33595 optimize_function_for_speed_p.
33596
33597 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
33598
33599 * doc/invoke.texi (free): Document AArch64.
33600
33601 2014-04-14 Richard Biener <rguenther@suse.de>
33602
33603 PR tree-optimization/60042
33604 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
33605 (insert_into_preds_of_block): Do not prevent PHI insertion
33606 for REFERENCE exprs here ...
33607 (eliminate_dom_walker::before_dom_children): ... but prevent
33608 their use here under similar conditions when applied to the
33609 IL after PRE optimizations.
33610
33611 2014-04-14 Richard Biener <rguenther@suse.de>
33612
33613 * passes.def: Move early points-to after early SRA.
33614
33615 2014-04-14 Richard Biener <rguenther@suse.de>
33616
33617 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
33618 check for which sign-changes we allow when forwarding
33619 a converted value into a switch.
33620
33621 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
33622
33623 * stor-layout.c (place_field): Finalize non-constant offset for the
33624 field, if any.
33625
33626 2014-04-14 Richard Biener <rguenther@suse.de>
33627
33628 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
33629 as argument.
33630 (expand_switch_using_bit_tests_p): Likewise.
33631 (process_switch): Compute and pass on speed_p based on the
33632 switch stmt.
33633 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
33634 optimize_bb_for_speed_p.
33635
33636 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
33637
33638 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
33639 * function.h (struct function): Rename has_force_vect_loops into
33640 has_force_vectorize_loops.
33641 * lto-streamer-in.c (input_cfg): Adjust for renaming.
33642 (input_struct_function_base): Likewise.
33643 * lto-streamer-out.c (output_cfg): Likewise.
33644 (output_struct_function_base): Likewise.
33645 * omp-low.c (expand_omp_simd): Likewise.
33646 * tree-cfg.c (move_sese_region_to_fn): Likewise.
33647 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
33648 (version_loop_for_if_conversion): Likewise.
33649 (tree_if_conversion): Likewise.
33650 (main_tree_if_conversion): Likewise.
33651 (gate_tree_if_conversion): Likewise.
33652 * tree-inline.c (copy_loops): Likewise.
33653 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
33654 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
33655 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
33656 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
33657 * tree-vectorizer.c (vectorize_loops): Likewise.
33658 * tree-vectorizer.h (unlimited_cost_model): Likewise.
33659
33660 2014-04-14 Richard Biener <rguenther@suse.de>
33661
33662 PR lto/60720
33663 * lto-streamer-out.c (wrap_refs): New function.
33664 (lto_output): Wrap symbol references in global initializes in
33665 type-preserving MEM_REFs.
33666
33667 2014-04-14 Christian Bruel <christian.bruel@st.com>
33668
33669 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
33670
33671 2014-04-14 Christian Bruel <christian.bruel@st.com>
33672
33673 * config/sh/sh.md (setmemqi): New expand pattern.
33674 * config/sh/sh.h (CLEAR_RATIO): Define.
33675 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
33676 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
33677
33678 2014-04-14 Richard Biener <rguenther@suse.de>
33679
33680 PR middle-end/55022
33681 * fold-const.c (negate_expr_p): Don't negate directional rounding
33682 division.
33683 (fold_negate_expr): Likewise.
33684
33685 2014-04-14 Richard Biener <rguenther@suse.de>
33686
33687 PR tree-optimization/59817
33688 PR tree-optimization/60453
33689 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
33690 recursion to catch all CHRECs in the scalar evolution and restrict
33691 the predicate for the remains appropriately.
33692
33693 2014-04-12 Catherine Moore <clm@codesourcery.com>
33694
33695 * config/mips/constraints.md: Add new register constraint "kb".
33696 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
33697 (*movhi_internal): Likewise.
33698 (*movqi_internal): Likewise.
33699 * config/mips/mips.h (M16_STORE_REGS): New register class.
33700 (REG_CLASS_NAMES): Add M16_STORE_REGS.
33701 (REG_CLASS_CONTENTS): Likewise.
33702 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
33703
33704 2014-04-11 Tobias Burnus <burnus@net-b.de>
33705
33706 PR c/60194
33707 * doc/invoke.texi (-Wformat-signedness): Document it.
33708 (Wformat=2): Mention that this enables -Wformat-signedness.
33709
33710 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
33711
33712 * common/config/epiphany/epiphany-common.c
33713 (epiphany_option_optimization_table): Enable section anchors by
33714 default at -O1 or higher.
33715 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
33716 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
33717 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
33718 carries no extra cost.
33719 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
33720 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
33721 * config/epiphany/predicates.md (memclob_operand): New predicate.
33722 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
33723 Use memclob_operand predicate and X constraint for operand 3.
33724
33725 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
33726
33727 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
33728 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
33729 its operands.
33730
33731 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
33732
33733 PR rtl-optimization/60651
33734 * mode-switching.c (optimize_mode_switching): Make sure to emit
33735 sets of a lower numbered entity before sets of a higher numbered
33736 entity to a mode of the same or lower priority.
33737 When creating a seginfo for a basic block that starts with a code
33738 label, move the insertion point past the code label.
33739 (new_seginfo): Document and enforce requirement that
33740 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
33741 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
33742 * doc/tm.texi: Regenerate.
33743
33744 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
33745
33746 PR target/60811
33747 * config/arc/arc.c (arc_save_restore): Fix assert typo.
33748
33749 2013-04-11 Jakub Jelinek <jakub@redhat.com>
33750
33751 * BASE-VER: Set to 4.10.0.
33752
33753 2014-04-11 Tobias Burnus <burnus@net-b.de>
33754
33755 PR other/59055
33756 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
33757 * doc/gcc.texi (Service): Update description in the @menu
33758 * doc/invoke.texi (Option Summary): Remove misplaced and
33759 duplicated @menu.
33760
33761 2014-04-11 Steve Ellcey <sellcey@mips.com>
33762 Jakub Jelinek <jakub@redhat.com>
33763
33764 PR middle-end/60556
33765 * expr.c (convert_move): Use emit_store_flag_force instead of
33766 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
33767 argument to it.
33768
33769 2014-04-11 Richard Biener <rguenther@suse.de>
33770
33771 PR middle-end/60797
33772 * varasm.c (assemble_alias): Avoid endless error reporting
33773 recursion by setting TREE_ASM_WRITTEN.
33774
33775 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33776
33777 * config/s390/s390.md: Add a splitter for NOT rtx.
33778
33779 2014-04-11 Jakub Jelinek <jakub@redhat.com>
33780
33781 PR rtl-optimization/60663
33782 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
33783
33784 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
33785 Jakub Jelinek <jakub@redhat.com>
33786
33787 PR lto/60567
33788 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
33789 flag from decl_node to node.
33790
33791 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33792
33793 PR debug/60655
33794 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
33795 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
33796 ameliorating the cases where it can be.
33797
33798 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
33799
33800 Revert
33801 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
33802
33803 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
33804 (loadsync_<mode>): Change mode.
33805 (load_quadpti, store_quadpti): New.
33806 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
33807 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
33808 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
33809
33810 2014-04-09 Cong Hou <congh@google.com>
33811
33812 PR testsuite/60773
33813 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
33814 documentation.
33815
33816 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33817
33818 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
33819 instead of vnor to exploit possible fusion opportunity in the
33820 future.
33821 (altivec_expand_vec_perm_const_le): Likewise.
33822
33823 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
33824
33825 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
33826 (loadsync_<mode>): Change mode.
33827 (load_quadpti, store_quadpti): New.
33828 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
33829 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
33830
33831 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
33832
33833 PR target/60763
33834 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
33835 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
33836 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
33837
33838 2014-04-08 Richard Biener <rguenther@suse.de>
33839
33840 PR middle-end/60706
33841 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
33842 a 64bit widest int print double-int similar to on HWI64 hosts.
33843
33844 2014-04-08 Richard Biener <rguenther@suse.de>
33845
33846 PR tree-optimization/60785
33847 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
33848 default defs properly.
33849
33850 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
33851
33852 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
33853 (Weffc++): Likewise.
33854
33855 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
33856
33857 * ipa-devirt.c (maybe_record_node): When node is not recorded,
33858 set completep to false rather than true.
33859
33860 2014-04-07 Douglas B Rupp <rupp@adacore.com>
33861
33862 PR target/60504
33863 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
33864 ARM_TARGET2_DWARF_FORMAT.
33865
33866 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
33867
33868 PR target/60609
33869 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
33870 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
33871 ADDR_DIFF_VEC.
33872
33873 2014-04-07 Richard Biener <rguenther@suse.de>
33874
33875 PR tree-optimization/60766
33876 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
33877 (may_eliminate_iv): Convert cand_value_at result to desired type.
33878
33879 2014-04-07 Jason Merrill <jason@redhat.com>
33880
33881 PR c++/60731
33882 * common.opt (-fno-gnu-unique): Add.
33883 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
33884
33885 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33886
33887 * haifa-sched.c: Fix outdated function reference and minor
33888 grammar errors in introductory comment.
33889
33890 2014-04-07 Richard Biener <rguenther@suse.de>
33891
33892 PR middle-end/60750
33893 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
33894 for noreturn calls.
33895 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
33896
33897 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
33898
33899 PR debug/55794
33900 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
33901 size accounting for thunks.
33902 (pa_asm_output_mi_thunk): Use final_start_function() and
33903 final_end_function() to output function start and end directives.
33904
33905 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
33906
33907 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
33908 device specific ISA/ feature information. Remove short_sp and
33909 errata_skip ds. Add avr_device_specific_features enum to have device
33910 specific info.
33911 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
33912 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
33913 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
33914 updated device specific info.
33915 * config/avr/avr-mcus.def: Merge device specific details to
33916 dev_attribute field.
33917 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
33918 errata_skip.
33919 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
33920 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
33921 assembler if RMW isa supported by current device.
33922 * config/avr/genmultilib.awk: Update as device info structure changed.
33923 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
33924
33925 2014-04-04 Cong Hou <congh@google.com>
33926
33927 PR tree-optimization/60656
33928 * tree-vect-stmts.c (supportable_widening_operation):
33929 Fix a bug that elements in a vector with vect_used_by_reduction
33930 property are incorrectly reordered when the operation on it is not
33931 consistant with the one in reduction operation.
33932
33933 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
33934
33935 PR rtl-optimization/60155
33936 * gcse.c (record_set_data): New function.
33937 (single_set_gcse): New function.
33938 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
33939 (hoist_code): Likewise.
33940 (get_pressure_class_and_nregs): Likewise.
33941
33942 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
33943
33944 * explow.c (probe_stack_range): Emit a final optimization blockage.
33945
33946 2014-04-04 Anthony Green <green@moxielogic.com>
33947
33948 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
33949 typos.
33950
33951 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
33952
33953 PR ipa/59626
33954 * lto-cgraph.c (input_overwrite_node): Check that partitioning
33955 flags are set only during streaming.
33956 * ipa.c (process_references, walk_polymorphic_call_targets,
33957 symtab_remove_unreachable_nodes): Drop bodies of always inline
33958 after early inlining.
33959 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
33960
33961 2014-04-04 Jakub Jelinek <jakub@redhat.com>
33962 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33963
33964 PR debug/60655
33965 * dwarf2out.c (const_ok_for_output_1): Reject expressions
33966 containing a NOT.
33967
33968 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33969
33970 PR bootstrap/60743
33971 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
33972 duration.
33973 (cortex_a53_fdivd): Likewise.
33974
33975 2014-04-04 Martin Jambor <mjambor@suse.cz>
33976
33977 PR ipa/60640
33978 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
33979 Adjust all callers.
33980 * cgraph.c (clone_of_p): Also return true if thunks match.
33981 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
33982 cgraph_function_or_thunk_node and an obsolete comment.
33983 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
33984 file.
33985 (build_function_decl_skip_args): Likewise.
33986 (set_new_clone_decl_and_node_flags): New function.
33987 (duplicate_thunk_for_node): Likewise.
33988 (redirect_edge_duplicating_thunks): Likewise.
33989 (cgraph_clone_node): New parameter args_to_skip, pass it to
33990 redirect_edge_duplicating_thunks which is called instead of
33991 cgraph_redirect_edge_callee.
33992 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
33993 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
33994
33995 2014-04-04 Jeff Law <law@redhat.com>
33996
33997 PR target/60657
33998 * config/arm/predicates.md (const_int_I_operand): New predicate.
33999 (const_int_M_operand): Similarly.
34000 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
34001 const_int_operand.
34002 (insv_t2, extv_reg, extzv_t2): Likewise.
34003 (load_multiple_with_writeback): Similarly for const_int_I_operand.
34004 (pop_multiple_with_writeback_and_return): Likewise.
34005 (vfp_pop_multiple_with_writeback): Likewise
34006
34007 2014-04-04 Richard Biener <rguenther@suse.de>
34008
34009 PR ipa/60746
34010 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
34011 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
34012 non-GIMPLE_LABELs.
34013 * gimplify.h (gimple_add_tmp_var_fn): Declare.
34014 * gimplify.c (gimple_add_tmp_var_fn): New function.
34015 * gimple-expr.h (create_tmp_reg_fn): Declare.
34016 * gimple-expr.c (create_tmp_reg_fn): New function.
34017 * gimple-low.c (record_vars_into): Don't change cfun.
34018 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
34019 code generation without cfun.
34020
34021 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
34022
34023 PR bootstrap/60719
34024 * Makefile.in (install-driver): Fix shell scripting.
34025
34026 2014-04-03 Cong Hou <congh@google.com>
34027
34028 PR tree-optimization/60505
34029 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
34030 threshold of number of iterations below which no vectorization
34031 will be done.
34032 * tree-vect-loop.c (new_loop_vec_info):
34033 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
34034 * tree-vect-loop.c (vect_analyze_loop_operations):
34035 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
34036 * tree-vect-loop.c (vect_transform_loop):
34037 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
34038 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
34039 of iterations of the loop and see if we should build the epilogue.
34040
34041 2014-04-03 Richard Biener <rguenther@suse.de>
34042
34043 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
34044 (streamer_tree_cache_create): Adjust.
34045 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
34046 to allow optional nodes array.
34047 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
34048 (streamer_tree_cache_append): Likewise.
34049 (streamer_tree_cache_create): Create nodes array optionally
34050 as specified by parameter.
34051 * lto-streamer-out.c (create_output_block): Avoid maintaining
34052 the node array in the writer cache.
34053 (DFS_write_tree): Remove assertion.
34054 (produce_asm_for_decls): Free the out decl state hash table early.
34055 * lto-streamer-in.c (lto_data_in_create): Adjust for
34056 streamer_tree_cache_create prototype change.
34057
34058 2014-04-03 Richard Biener <rguenther@suse.de>
34059
34060 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
34061 set TREE_CHAIN to NULL_TREE.
34062
34063 2014-04-03 Richard Biener <rguenther@suse.de>
34064
34065 PR tree-optimization/60740
34066 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
34067 over all GIMPLE_COND operands.
34068
34069 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
34070
34071 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
34072 (Weffc++): Remove Scott's numbering, merge lists and reference
34073 Wnon-virtual-dtor.
34074
34075 2014-04-03 Nick Clifton <nickc@redhat.com>
34076
34077 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
34078 properly.
34079
34080 2014-04-03 Martin Jambor <mjambor@suse.cz>
34081
34082 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
34083 mention gcc_unreachable before failing.
34084 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
34085 removed symbols.
34086
34087 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
34088
34089 PR ipa/60659
34090 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
34091 inconsistent code and instead mark the context inconsistent.
34092 (possible_polymorphic_call_targets): For inconsistent contexts
34093 return empty complete list.
34094
34095 2014-04-02 Anthony Green <green@moxielogic.com>
34096
34097 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
34098 (extendqisi2, extendhisi2): Define.
34099 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
34100 (WCHAR_TYPE): Change to unsigned int.
34101
34102 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34103
34104 PR tree-optimization/60733
34105 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
34106 insertion point for PHI candidates to be the end of the feeding
34107 block for the PHI argument.
34108
34109 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
34110
34111 PR rtl-optimization/60650
34112 * lra-constraints.c (process_alt_operands): Decrease reject for
34113 earlyclobber matching.
34114
34115 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34116
34117 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
34118
34119 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
34120
34121 * config/spu/spu.c (pad_bb): Do not crash when the last
34122 insn is CODE_FOR_blockage.
34123
34124 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
34125
34126 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
34127 lies outside the target mode.
34128
34129 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
34130
34131 PR target/60735
34132 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
34133 software floating point or no floating point registers, do not
34134 allow any type in the FPRs. Eliminate a test for SPE SIMD types
34135 in GPRs that occurs after we tested for GPRs that would never be
34136 true.
34137
34138 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
34139 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
34140 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
34141 specifically allow DDmode, since that does not use the SPE SIMD
34142 instructions.
34143
34144 2014-04-02 Richard Biener <rguenther@suse.de>
34145
34146 PR middle-end/60729
34147 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
34148 MODE_INTs. Properly use negv_optab.
34149 (expand_abs): Likewise.
34150
34151 2014-04-02 Richard Biener <rguenther@suse.de>
34152
34153 PR bootstrap/60719
34154 * Makefile.in (install-driver): Guard extra installs with special
34155 names properly.
34156
34157 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
34158
34159 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
34160 Document vec_vgbbd.
34161
34162 2014-04-01 Richard Henderson <rth@redhat.com>
34163
34164 PR target/60704
34165 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
34166 alternative enabled before register allocation.
34167
34168 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
34169
34170 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
34171 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
34172 typo.
34173 (nios2_large_got_address): Remove unneeded 'sym' parameter.
34174 (nios2_got_address): Update nios2_large_got_address call site.
34175 (nios2_delegitimize_address): New function.
34176 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
34177 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
34178 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
34179
34180 2014-04-01 Martin Husemann <martin@duskware.de>
34181
34182 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
34183 for -mabi=32.
34184
34185 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
34186
34187 PR rtl-optimization/60604
34188 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
34189 check from register_operand.
34190 (register_operand): Redefine in terms of general_operand.
34191 (nonmemory_operand): Use register_operand for the non-constant cases.
34192
34193 2014-04-01 Richard Biener <rguenther@suse.de>
34194
34195 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
34196
34197 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
34198
34199 * doc/invoke.texi (mapp-regs): Clarify.
34200
34201 2014-03-31 Ulrich Drepper <drepper@gmail.com>
34202
34203 * config/i386/avx512fintrin.h (__v32hi): Define type.
34204 (__v64qi): Likewise.
34205 (_mm512_set1_epi8): Define.
34206 (_mm512_set1_epi16): Define.
34207 (_mm512_set4_epi32): Define.
34208 (_mm512_set4_epi64): Define.
34209 (_mm512_set4_pd): Define.
34210 (_mm512_set4_ps): Define.
34211 (_mm512_setr4_epi64): Define.
34212 (_mm512_setr4_epi32): Define.
34213 (_mm512_setr4_pd): Define.
34214 (_mm512_setr4_ps): Define.
34215 (_mm512_setzero_epi32): Define.
34216
34217 2014-03-31 Martin Jambor <mjambor@suse.cz>
34218
34219 PR middle-end/60647
34220 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
34221 callsite_arguments_match_p. Updated all callers. Also check types of
34222 corresponding formal parameters and actual arguments.
34223 (not_all_callers_have_enough_arguments_p) Renamed to
34224 some_callers_have_mismatched_arguments_p.
34225
34226 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
34227
34228 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
34229
34230 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
34231
34232 PR target/60034
34233 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
34234 section anchor.
34235
34236 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
34237
34238 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
34239 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
34240 Split out
34241 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
34242 Use FMAMODE_NOVF512 mode iterator.
34243 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
34244 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
34245 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
34246 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
34247 Split out
34248 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
34249 Use VF_128_256 mode iterator.
34250 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
34251 Ditto.
34252
34253 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
34254
34255 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
34256 static chain if needed.
34257
34258 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
34259
34260 PR target/60697
34261 * lra-constraints.c (index_part_to_reg): New.
34262 (process_address): Use it.
34263
34264 2014-03-27 Jeff Law <law@redhat.com>
34265 Jakub Jelinek <jakub@redhat.com>
34266
34267 PR target/60648
34268 * expr.c (do_tablejump): Use simplify_gen_binary rather than
34269 gen_rtx_{PLUS,MULT} to build up the address expression.
34270
34271 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
34272 creating non-canonical RTL.
34273
34274 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
34275
34276 PR ipa/60243
34277 * ipa-inline.c (want_inline_small_function_p): Short circuit large
34278 functions; reorganize to make cheap checks first.
34279 (inline_small_functions): Do not estimate growth when dumping;
34280 it is expensive.
34281 * ipa-inline.h (inline_summary): Add min_size.
34282 (growth_likely_positive): New function.
34283 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
34284 (set_cond_stmt_execution_predicate): Cleanup.
34285 (estimate_edge_size_and_time): Compute min_size.
34286 (estimate_calls_size_and_time): Likewise.
34287 (estimate_node_size_and_time): Likewise.
34288 (inline_update_overall_summary): Update min_size.
34289 (do_estimate_edge_time): Likewise.
34290 (do_estimate_edge_size): Update.
34291 (do_estimate_edge_hints): Update.
34292 (growth_likely_positive): New function.
34293
34294 2014-03-28 Jakub Jelinek <jakub@redhat.com>
34295
34296 PR target/60693
34297 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
34298 also if addr has VOIDmode.
34299
34300 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34301
34302 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
34303 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
34304 Declare extern.
34305 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
34306 instructions as well as AdvancedSIMD loads.
34307
34308 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34309
34310 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
34311 Use crypto_aese type.
34312 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
34313 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
34314 crypto_aese, crypto_aesmc. Move to types.md.
34315 * config/arm/types.md (crypto_aes): Split into crypto_aese,
34316 crypto_aesmc.
34317 * config/arm/iterators.md (crypto_type): Likewise.
34318
34319 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
34320
34321 * cgraph.c: Include expr.h and tree-dfa.h.
34322 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
34323 remove LHS.
34324
34325 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
34326
34327 PR target/60675
34328 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
34329 regs from checking multi-reg pseudos.
34330
34331 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34332
34333 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
34334
34335 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
34336
34337 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
34338 if it would clobber the stack pointer, even temporarily.
34339
34340 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
34341
34342 * mode-switching.c: Make small adjustments to the top comment.
34343
34344 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
34345
34346 * config/rs6000/constraints.md (wD constraint): New constraint to
34347 match the constant integer to get the top DImode/DFmode out of a
34348 vector in a VSX register.
34349
34350 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
34351 match the constant integer to get the top DImode/DFmode out of a
34352 vector in a VSX register.
34353
34354 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
34355 for ISA 2.07.
34356
34357 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
34358 vbpermq builtins.
34359
34360 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
34361 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
34362
34363 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
34364 Optimize vec_extract of 64-bit values, where the value being
34365 extracted is in the top word, where we can use scalar
34366 instructions. Add direct move and store support. Combine the big
34367 endian/little endian vector select load support into a single insn.
34368 (vsx_extract_<mode>_internal1): Likewise.
34369 (vsx_extract_<mode>_internal2): Likewise.
34370 (vsx_extract_<mode>_load): Likewise.
34371 (vsx_extract_<mode>_store): Likewise.
34372 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
34373 combined into vsx_extract_<mode>_load.
34374 (vsx_extract_<mode>_one_le): Likewise.
34375
34376 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
34377 define the top 64-bit vector element.
34378
34379 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
34380 constraint.
34381
34382 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
34383 Document vec_vbpermq builtin.
34384
34385 PR target/60672
34386 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
34387 enable use of xxsldwi and xxpermdi builtin functions.
34388 (vec_xxpermdi): Likewise.
34389
34390 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
34391 Document use of vec_xxsldwi and vec_xxpermdi builtins.
34392
34393 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
34394
34395 PR rtl-optimization/60650
34396 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
34397 first_p. Use it.
34398 (find_spills_for): New.
34399 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
34400 Spill all pseudos on the second iteration.
34401
34402 2014-03-27 Marek Polacek <polacek@redhat.com>
34403
34404 PR c/50347
34405 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
34406 types.
34407
34408 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34409
34410 * config/s390/s390.c (s390_can_use_return_insn): Check for
34411 call-saved FPRs on 31 bit.
34412
34413 2014-03-27 Jakub Jelinek <jakub@redhat.com>
34414
34415 PR middle-end/60682
34416 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
34417 if they need regimplification, just drop them instead of
34418 calling gimple_regimplify_operands on them.
34419
34420 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
34421
34422 PR target/60580
34423 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
34424 (aarch64_frame_pointer_required): Adjust logic.
34425 (aarch64_can_eliminate): Adjust logic.
34426 (aarch64_override_options_after_change): Adjust logic.
34427
34428 2014-03-27 Dehao Chen <dehao@google.com>
34429
34430 * ipa-inline.c (early_inliner): Update node's inline info.
34431
34432 2014-03-26 Dehao Chen <dehao@google.com>
34433
34434 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
34435 compiler inserted conditional jumps for NAN float check.
34436
34437 2014-03-26 Jakub Jelinek <jakub@redhat.com>
34438
34439 * ubsan.h (ubsan_create_data): Change second argument's type
34440 to const location_t *.
34441 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
34442 _("<unknown>").
34443 (ubsan_create_data): Change second argument to const location_t *PLOC.
34444 Create Loc field whenever PLOC is non-NULL.
34445 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
34446 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
34447 callers.
34448
34449 PR other/59545
34450 * real.c (real_to_integer2): Change type of low to UHWI.
34451
34452 2014-03-26 Tobias Burnus <burnus@net-b.de>
34453
34454 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
34455 (CILK_SELF_SPECS): New define.
34456 (driver_self_specs): Use it.
34457
34458 2014-03-26 Richard Biener <rguenther@suse.de>
34459
34460 * tree-pretty-print.c (percent_K_format): Implement special
34461 case for LTO and its stripped down BLOCK tree.
34462
34463 2014-03-26 Jakub Jelinek <jakub@redhat.com>
34464
34465 PR sanitizer/60636
34466 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
34467
34468 * tree-vrp.c (simplify_internal_call_using_ranges): If only
34469 one range is range_int_cst_p, but not both, at least optimize
34470 addition/subtraction of 0 and multiplication by 0 or 1.
34471 * gimple-fold.c (gimple_fold_call): Fold
34472 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
34473 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
34474 INTEGER_CSTs, try to fold at least x * 0 and y - y.
34475
34476 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
34477
34478 PR rtl-optimization/60452
34479 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
34480 <case REG>: Return 1 for invalid offsets from the frame pointer.
34481
34482 2014-03-26 Marek Polacek <polacek@redhat.com>
34483
34484 PR c/37428
34485 * doc/extend.texi (C Extensions): Mention variable-length arrays in
34486 a structure/union.
34487
34488 2014-03-26 Marek Polacek <polacek@redhat.com>
34489
34490 PR c/39525
34491 * doc/extend.texi (Designated Inits): Describe what happens to omitted
34492 field members.
34493
34494 2014-03-26 Marek Polacek <polacek@redhat.com>
34495
34496 PR other/59545
34497 * ira-color.c (update_conflict_hard_regno_costs): Perform the
34498 multiplication in unsigned type.
34499
34500 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
34501
34502 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
34503
34504 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
34505
34506 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
34507
34508 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
34509
34510 PR ipa/60315
34511 * cif-code.def (UNREACHABLE) New code.
34512 * ipa-inline.c (inline_small_functions): Skip edges to
34513 __builtlin_unreachable.
34514 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
34515 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
34516 predicate to __bulitin_unreachable.
34517 (set_cond_stmt_execution_predicate): Fix issue when
34518 invert_tree_comparison returns ERROR_MARK.
34519 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
34520 propagate to inline clones.
34521 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
34522 to unreachable.
34523 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
34524 * cgraphclones.c (cgraph_clone_node): If call destination is already
34525 ureachable, do not redirect it back.
34526 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
34527 unreachable.
34528
34529 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
34530
34531 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
34532 Do not modify inline clones.
34533
34534 2014-03-25 Jakub Jelinek <jakub@redhat.com>
34535
34536 * config/i386/i386.md (general_sext_operand): New mode attr.
34537 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
34538 don't generate (sign_extend (const_int)).
34539 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
34540 operands[2]. Use We constraint instead of <i> and
34541 <general_sext_operand> predicate instead of <general_operand>.
34542 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
34543 * config/i386/constraints.md (We): New constraint.
34544 * config/i386/predicates.md (x86_64_sext_operand,
34545 sext_operand): New predicates.
34546
34547 2014-03-25 Martin Jambor <mjambor@suse.cz>
34548
34549 PR ipa/60600
34550 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
34551 inconsistent devirtualizations to __builtin_unreachable.
34552
34553 2014-03-25 Marek Polacek <polacek@redhat.com>
34554
34555 PR c/35449
34556 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
34557
34558 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
34559
34560 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
34561 order of elements for big-endian.
34562
34563 2014-03-25 Richard Biener <rguenther@suse.de>
34564
34565 PR middle-end/60635
34566 * gimplify-me.c (gimple_regimplify_operands): Update the
34567 re-gimplifed stmt.
34568
34569 2014-03-25 Martin Jambor <mjambor@suse.cz>
34570
34571 PR ipa/59176
34572 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
34573 (lto_output_varpool_node): Likewise.
34574 (input_overwrite_node): Likewise.
34575 (input_varpool_node): Likewise.
34576
34577 2014-03-25 Richard Biener <rguenther@suse.de>
34578
34579 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
34580 (run_gcc): Likewise.
34581
34582 2014-03-25 Jakub Jelinek <jakub@redhat.com>
34583
34584 * combine.c (simplify_compare_const): Add MODE argument.
34585 Handle mode_width 0 as very large mode_width.
34586 (try_combine, simplify_comparison): Adjust callers.
34587
34588 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
34589 type to avoid signed integer overflow.
34590 * explow.c (plus_constant): Likewise.
34591
34592 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
34593
34594 * doc/generic.texi: Correct typos.
34595
34596 2014-03-24 Tobias Burnus <burnus@net-b.de>
34597
34598 * doc/invoke.texi (-flto): Expand section about
34599 using static libraries with LTO.
34600
34601 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34602
34603 PR rtl-optimization/60501
34604 * optabs.def (addptr3_optab): New optab.
34605 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
34606 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
34607 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
34608
34609 * lra.c (emit_add3_insn): Use the addptr pattern if available.
34610
34611 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
34612
34613 2014-03-24 Ulrich Drepper <drepper@gmail.com>
34614
34615 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
34616 _mm512_set1_pd.
34617
34618 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
34619 (_mm256_undefined_ps): Define.
34620 (_mm256_undefined_pd): Define.
34621 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
34622 (_mm_undefined_pd): Define.
34623 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
34624 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
34625 (_mm512_undefined_ps): Define.
34626 (_mm512_undefined_pd): Define.
34627 Use _mm*_undefined_*.
34628 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
34629
34630 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
34631
34632 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
34633 (lshr_simd): DI mode added.
34634 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
34635 (aarch64_ushr_simddi): Likewise.
34636 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
34637 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
34638 (vshrd_n_u64): Likewise.
34639
34640 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34641
34642 * Makefile.in (s-macro_list): Depend on cc1.
34643
34644 2014-03-23 Teresa Johnson <tejohnson@google.com>
34645
34646 * ipa-utils.c (ipa_print_order): Use specified dump file.
34647
34648 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
34649
34650 PR rtl-optimization/60601
34651 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
34652
34653 * gcc.c (eval_spec_function): Initialize save_growing_value.
34654
34655 2014-03-22 Jakub Jelinek <jakub@redhat.com>
34656
34657 PR sanitizer/60613
34658 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
34659 code == MINUS_EXPR, never swap op0 with op1.
34660
34661 * toplev.c (init_local_tick): Avoid signed integer multiplication
34662 overflow.
34663 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
34664 shift by first operand's bitsize.
34665
34666 2014-03-21 Jakub Jelinek <jakub@redhat.com>
34667
34668 PR target/60610
34669 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
34670 redefine to 1 or 0.
34671 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
34672 TARGET_ISA_64BIT_P(x).
34673
34674 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34675
34676 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
34677 pattern for vector nor instead of subtract from splat(-1).
34678 (altivec_expand_vec_perm_const_le): Likewise.
34679
34680 2014-03-21 Richard Henderson <rth@twiddle.net>
34681
34682 PR target/60598
34683 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
34684 related insns after epilogue_completed.
34685
34686 2014-03-21 Martin Jambor <mjambor@suse.cz>
34687
34688 PR ipa/59176
34689 * cgraph.h (symtab_node): New flag body_removed.
34690 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
34691 when removing bodies.
34692 * symtab.c (dump_symtab_base): Dump body_removed flag.
34693 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
34694 had their bodies removed.
34695
34696 2014-03-21 Martin Jambor <mjambor@suse.cz>
34697
34698 PR ipa/60419
34699 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
34700 in the border.
34701
34702 2014-03-21 Richard Biener <rguenther@suse.de>
34703
34704 PR tree-optimization/60577
34705 * tree-core.h (struct tree_base): Document nothrow_flag use
34706 in DECL_NONALIASED.
34707 * tree.h (DECL_NONALIASED): New.
34708 (may_be_aliased): Adjust.
34709 * coverage.c (build_var): Set DECL_NONALIASED.
34710
34711 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
34712
34713 * expr.c (expand_expr_real_1): Remove outdated comment.
34714
34715 2014-03-20 Jakub Jelinek <jakub@redhat.com>
34716
34717 PR middle-end/60597
34718 * ira.c (adjust_cleared_regs): Call copy_rtx on
34719 *reg_equiv[REGNO (loc)].src_p before passing it to
34720 simplify_replace_fn_rtx.
34721
34722 PR target/60568
34723 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
34724 into CONST, put pic register as first operand of PLUS. Use
34725 gen_const_mem for both 32-bit and 64-bit PIC got loads.
34726
34727 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34728
34729 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
34730
34731 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
34732
34733 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
34734 around for store forwarding issue in the FPU on the UT699.
34735 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
34736 loads and operations if -mfix-ut699 is specified.
34737 (divtf3_hq): Tweak attribute.
34738 (sqrttf2_hq): Likewise.
34739
34740 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
34741
34742 * calls.c (store_one_arg): Remove incorrect const qualification on the
34743 type of the temporary.
34744 * cfgexpand.c (expand_return): Likewise.
34745 * expr.c (expand_constructor): Likewise.
34746 (expand_expr_real_1): Likewise.
34747
34748 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
34749
34750 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
34751 of parts.
34752
34753 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
34754
34755 PR target/60039
34756 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
34757
34758 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
34759
34760 * config/arm/aarch-common-protos.h
34761 (alu_cost_table): Fix spelling of "extend".
34762 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
34763
34764 2014-03-19 Richard Biener <rguenther@suse.de>
34765
34766 PR middle-end/60553
34767 * tree-core.h (tree_type_common): Re-order pointer members
34768 to reduce recursion depth during GC walks.
34769
34770 2014-03-19 Marek Polacek <polacek@redhat.com>
34771
34772 PR sanitizer/60569
34773 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
34774 before accessing it.
34775
34776 2014-03-19 Richard Biener <rguenther@suse.de>
34777
34778 PR lto/59543
34779 * lto-streamer-in.c (input_function): In WPA stage do not drop
34780 debug stmts.
34781
34782 2014-03-19 Jakub Jelinek <jakub@redhat.com>
34783
34784 PR tree-optimization/60559
34785 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
34786 with build_zero_cst assignment.
34787
34788 2014-03-18 Kai Tietz <ktietz@redhat.com>
34789
34790 PR rtl-optimization/56356
34791 * sdbout.c (sdbout_parms): Verify that parms'
34792 incoming argument is valid.
34793 (sdbout_reg_parms): Likewise.
34794
34795 2014-03-18 Richard Henderson <rth@redhat.com>
34796
34797 PR target/60562
34798 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
34799 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
34800 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
34801
34802 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
34803
34804 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
34805 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
34806 Italicize plugin event names in description. Explain that
34807 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
34808 Remind that no GCC functions should be called after PLUGIN_FINISH.
34809 Explain what pragmas with expansion are.
34810
34811 2014-03-18 Martin Liska <mliska@suse.cz>
34812
34813 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
34814 gimple call statement is update.
34815 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
34816 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
34817
34818 2014-03-18 Jakub Jelinek <jakub@redhat.com>
34819
34820 PR sanitizer/60557
34821 * ubsan.c (ubsan_instrument_unreachable): Call
34822 initialize_sanitizer_builtins.
34823 (ubsan_pass): Likewise.
34824
34825 PR sanitizer/60535
34826 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
34827 varpool_finalize_decl instead of rest_of_decl_compilation.
34828
34829 2014-03-18 Richard Biener <rguenther@suse.de>
34830
34831 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
34832 by using bitmap_and_compl instead of bitmap_and_compl_into.
34833 (df_rd_transfer_function): Likewise.
34834
34835 2014-03-18 Richard Biener <rguenther@suse.de>
34836
34837 * doc/lto.texi (fresolution): Fix typo.
34838
34839 2014-03-18 Richard Biener <rguenther@suse.de>
34840
34841 * doc/invoke.texi (flto): Update for changes in 4.9.
34842
34843 2014-03-18 Richard Biener <rguenther@suse.de>
34844
34845 * doc/loop.texi: Remove section on the removed lambda framework.
34846 Update loop docs with recent changes in preserving loop structure.
34847
34848 2014-03-18 Richard Biener <rguenther@suse.de>
34849
34850 * doc/lto.texi (-fresolution): Document.
34851
34852 2014-03-18 Richard Biener <rguenther@suse.de>
34853
34854 * doc/contrib.texi: Adjust my name.
34855
34856 2014-03-18 Jakub Jelinek <jakub@redhat.com>
34857
34858 PR ipa/58721
34859 * internal-fn.c: Include diagnostic-core.h.
34860 (expand_BUILTIN_EXPECT): New function.
34861 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
34862 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
34863 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
34864 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
34865 IFN_BUILTIN_EXPECT.
34866 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
34867 Revert 3 argument __builtin_expect code.
34868 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
34869 * gimple-fold.c (gimple_fold_call): Likewise.
34870 * tree.h (fold_builtin_expect): New prototype.
34871 * builtins.c (build_builtin_expect_predicate): Add predictor
34872 argument, if non-NULL, create 3 argument __builtin_expect.
34873 (fold_builtin_expect): No longer static. Add ARG2 argument,
34874 pass it through to build_builtin_expect_predicate.
34875 (fold_builtin_2): Adjust caller.
34876 (fold_builtin_3): Handle BUILT_IN_EXPECT.
34877 * internal-fn.def (BUILTIN_EXPECT): New.
34878
34879 2014-03-18 Tobias Burnus <burnus@net-b.de>
34880
34881 PR ipa/58721
34882 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
34883 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
34884 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
34885
34886 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
34887
34888 PR ipa/58721
34889 * predict.c (combine_predictions_for_bb): Fix up formatting.
34890 (expr_expected_value_1, expr_expected_value): Add predictor argument,
34891 fill what it points to if non-NULL.
34892 (tree_predict_by_opcode): Adjust caller, use the predictor.
34893 * predict.def (PRED_COMPARE_AND_SWAP): Add.
34894
34895 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
34896
34897 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
34898 proper constant for the store mode.
34899
34900 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
34901
34902 * symtab.c (change_decl_assembler_name): Fix transparent alias
34903 chain construction.
34904
34905 2014-03-16 Renlin Li <Renlin.Li@arm.com>
34906
34907 * config/aarch64/aarch64.c: Correct the comments about the
34908 aarch64 stack layout.
34909
34910 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
34911
34912 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
34913 check for GF_OMP_FOR_KIND_FOR.
34914
34915 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
34916
34917 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
34918 ymm and zmm register names.
34919
34920 2014-03-17 Jakub Jelinek <jakub@redhat.com>
34921
34922 PR target/60516
34923 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
34924 note creation for the 2010-08-31 changes.
34925
34926 2014-03-17 Marek Polacek <polacek@redhat.com>
34927
34928 PR middle-end/60534
34929 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
34930 as -fno-tree-loop-vectorize.
34931 (expand_omp_simd): Likewise.
34932
34933 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
34934
34935 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
34936 (eligible_for_call_delay): New prototype.
34937 * config/sparc/sparc.c (tls_call_delay): Rename into...
34938 (eligible_for_call_delay): ...this. Return false if the instruction
34939 cannot be put in the delay slot of a branch.
34940 (eligible_for_restore_insn): Simplify.
34941 (eligible_for_return_delay): Return false if the instruction cannot be
34942 put in the delay slot of a branch and simplify.
34943 (eligible_for_sibcall_delay): Return false if the instruction cannot be
34944 put in the delay slot of a branch.
34945 * config/sparc/sparc.md (fix_ut699): New attribute.
34946 (tls_call_delay): Delete.
34947 (in_call_delay): Reimplement.
34948 (eligible_for_sibcall_delay): Rename into...
34949 (in_sibcall_delay): ...this.
34950 (eligible_for_return_delay): Rename into...
34951 (in_return_delay): ...this.
34952 (in_branch_delay): Reimplement.
34953 (in_uncond_branch_delay): Delete.
34954 (in_annul_branch_delay): Delete.
34955
34956 2014-03-14 Richard Henderson <rth@redhat.com>
34957
34958 PR target/60525
34959 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
34960 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
34961 (*floathi<X87MODEF>2_i387_with_temp): Remove.
34962 (floathi splitters): Remove.
34963 (float<SWI48x>xf2): New pattern.
34964 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
34965 code that tried to handle DImode for 32-bit, but which was excluded
34966 by the pattern's condition. Drop allocation of stack temporary.
34967 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
34968 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
34969 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
34970 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
34971 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
34972 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
34973 (*float<SWI48><MODEF>2_sse_interunit): Remove.
34974 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
34975 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
34976 (*float<SWI48x><X87MODEF>2_i387): Remove.
34977 (all float _with_temp splitters): Remove.
34978 (*float<SWI48x><MODEF>2_i387): New pattern.
34979 (*float<SWI48><MODEF>2_sse): New pattern.
34980 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
34981 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
34982
34983 2014-03-14 Jakub Jelinek <jakub@redhat.com>
34984 Marek Polacek <polacek@redhat.com>
34985
34986 PR middle-end/60484
34987 * common.opt (dump_base_name_prefixed): New Variable.
34988 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
34989 if x_dump_base_name_prefixed is already set, set it at the end.
34990
34991 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
34992
34993 PR rtl-optimization/60508
34994 * lra-constraints.c (get_reload_reg): Add new parameter
34995 in_subreg_p.
34996 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
34997 Pass the new parameter values.
34998
34999 2014-03-14 Richard Biener <rguenther@suse.de>
35000
35001 * common.opt: Revert unintented changes from r205065.
35002 * opts.c: Likewise.
35003
35004 2014-03-14 Richard Biener <rguenther@suse.de>
35005
35006 PR middle-end/60518
35007 * cfghooks.c (split_block): Properly adjust all loops the
35008 block was a latch of.
35009
35010 2014-03-14 Martin Jambor <mjambor@suse.cz>
35011
35012 PR lto/60461
35013 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
35014 and simplify it.
35015
35016 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
35017
35018 PR target/59396
35019 * config/avr/avr.c (avr_set_current_function): Pass function name
35020 through default_strip_name_encoding before sanity checking instead
35021 of skipping the first char of the assembler name.
35022
35023 2014-03-13 Richard Henderson <rth@redhat.com>
35024
35025 PR debug/60438
35026 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
35027 (ix86_force_to_memory, ix86_free_from_memory): Remove.
35028 * config/i386/i386-protos.h: Likewise.
35029 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
35030 in the expander instead of a splitter.
35031 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
35032 any possibility of requiring a memory.
35033 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
35034 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
35035 (fp branch splitters): Update for ix86_split_fp_branch.
35036 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
35037 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
35038 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
35039 (*fop_<MODEF>_2_i387): Remove f/r alternative.
35040 (*fop_<MODEF>_3_i387): Likewise.
35041 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
35042 (splitters for the fop_* register patterns): Remove.
35043 (fscalexf4_i387): Rename from *fscalexf4_i387.
35044 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
35045
35046 2014-03-13 Jakub Jelinek <jakub@redhat.com>
35047
35048 PR tree-optimization/59779
35049 * tree-dfa.c (get_ref_base_and_extent): Use double_int
35050 type for bitsize and maxsize instead of HOST_WIDE_INT.
35051
35052 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
35053
35054 PR rtl-optimization/57320
35055 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
35056 the CFG after thread_prologue_and_epilogue_insns.
35057
35058 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
35059
35060 PR rtl-optimization/57189
35061 * lra-constraints.c (process_alt_operands): Disfavor spilling
35062 vector pseudos.
35063
35064 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
35065
35066 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
35067
35068 2014-03-13 Jakub Jelinek <jakub@redhat.com>
35069
35070 PR tree-optimization/59025
35071 PR middle-end/60418
35072 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
35073 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
35074
35075 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
35076
35077 PR target/60486
35078 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
35079 calls of avr_out_plus_1.
35080
35081 2014-03-13 Bin Cheng <bin.cheng@arm.com>
35082
35083 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
35084 BB's single pred and update the father loop's latch info later.
35085
35086 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
35087
35088 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
35089 (VEC_M): Likewise.
35090 (VEC_N): Likewise.
35091 (VEC_R): Likewise.
35092 (VEC_base): Likewise.
35093 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
35094 registers, we need to swap double words in little endian mode.
35095
35096 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
35097 to be a container mode for 128-bit integer operations added in ISA
35098 2.07. Unlike TImode and PTImode, the preferred register set is
35099 the Altivec/VMX registers for the 128-bit operations.
35100
35101 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
35102 declarations.
35103 (rs6000_split_128bit_ok_p): Likewise.
35104
35105 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
35106 macros for creating ISA 2.07 normal and overloaded builtin
35107 functions with 3 arguments.
35108 (BU_P8V_OVERLOAD_3): Likewise.
35109 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
35110 for use as overloaded functions.
35111 (VPERM_1TI_UNS): Likewise.
35112 (VSEL_1TI): Likewise.
35113 (VSEL_1TI_UNS): Likewise.
35114 (ST_INTERNAL_1ti): Likewise.
35115 (LD_INTERNAL_1ti): Likewise.
35116 (XXSEL_1TI): Likewise.
35117 (XXSEL_1TI_UNS): Likewise.
35118 (VPERM_1TI): Likewise.
35119 (VPERM_1TI_UNS): Likewise.
35120 (XXPERMDI_1TI): Likewise.
35121 (SET_1TI): Likewise.
35122 (LXVD2X_V1TI): Likewise.
35123 (STXVD2X_V1TI): Likewise.
35124 (VEC_INIT_V1TI): Likewise.
35125 (VEC_SET_V1TI): Likewise.
35126 (VEC_EXT_V1TI): Likewise.
35127 (EQV_V1TI): Likewise.
35128 (NAND_V1TI): Likewise.
35129 (ORC_V1TI): Likewise.
35130 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
35131 added in ISA 2.07. Add both normal 'altivec' builtins, and the
35132 overloaded builtin.
35133 (VADDUQM): Likewise.
35134 (VSUBCUQ): Likewise.
35135 (VADDEUQM): Likewise.
35136 (VADDECUQ): Likewise.
35137 (VSUBEUQM): Likewise.
35138 (VSUBECUQ): Likewise.
35139
35140 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
35141 __int128_t and __uint128_t types.
35142 (__uint128_type): Likewise.
35143 (altivec_categorize_keyword): Add support for vector __int128_t,
35144 vector __uint128_t, vector __int128, and vector unsigned __int128
35145 as a container type for TImode operations that need to be done in
35146 VSX/Altivec registers.
35147 (rs6000_macro_to_expand): Likewise.
35148 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
35149 to support 128-bit integer instructions vaddcuq, vadduqm,
35150 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
35151 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
35152
35153 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
35154 for V1TImode, and set up preferences to use VSX/Altivec registers.
35155 Setup VSX reload handlers.
35156 (rs6000_debug_reg_global): Likewise.
35157 (rs6000_init_hard_regno_mode_ok): Likewise.
35158 (rs6000_preferred_simd_mode): Likewise.
35159 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
35160 (easy_altivec_constant): Likewise.
35161 (output_vec_const_move): Likewise.
35162 (rs6000_expand_vector_set): Convert V1TImode set and extract to
35163 simple move.
35164 (rs6000_expand_vector_extract): Likewise.
35165 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
35166 addressing.
35167 (rs6000_const_vec): Add support for V1TImode.
35168 (rs6000_emit_le_vsx_load): Swap double words when loading or
35169 storing TImode/V1TImode.
35170 (rs6000_emit_le_vsx_store): Likewise.
35171 (rs6000_emit_le_vsx_move): Likewise.
35172 (rs6000_emit_move): Add support for V1TImode.
35173 (altivec_expand_ld_builtin): Likewise.
35174 (altivec_expand_st_builtin): Likewise.
35175 (altivec_expand_vec_init_builtin): Likewise.
35176 (altivec_expand_builtin): Likewise.
35177 (rs6000_init_builtins): Add support for V1TImode type. Add
35178 support for ISA 2.07 128-bit integer builtins. Define type names
35179 for the VSX/Altivec vector types.
35180 (altivec_init_builtins): Add support for overloaded vector
35181 functions with V1TImode type.
35182 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
35183 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
35184 external function.
35185 (rs6000_split_128bit_ok_p): Likewise.
35186 (rs6000_handle_altivec_attribute): Create V1TImode from vector
35187 __int128_t and vector __uint128_t.
35188
35189 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
35190 and mode attributes.
35191 (VSX_M): Likewise.
35192 (VSX_M2): Likewise.
35193 (VSm): Likewise.
35194 (VSs): Likewise.
35195 (VSr): Likewise.
35196 (VSv): Likewise.
35197 (VS_scalar): Likewise.
35198 (VS_double): Likewise.
35199 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
35200
35201 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
35202 we support the ISA 2.07 128-bit integer arithmetic instructions.
35203 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
35204 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
35205 and TImode types for use with the builtin functions.
35206 (V1TI_type_node): Likewise.
35207 (unsigned_V1TI_type_node): Likewise.
35208 (intTI_type_internal_node): Likewise.
35209 (uintTI_type_internal_node): Likewise.
35210
35211 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
35212 128-bit builtin functions.
35213 (UNSPEC_VADDEUQM): Likewise.
35214 (UNSPEC_VADDECUQ): Likewise.
35215 (UNSPEC_VSUBCUQ): Likewise.
35216 (UNSPEC_VSUBEUQM): Likewise.
35217 (UNSPEC_VSUBECUQ): Likewise.
35218 (VM): Add V1TImode to vector mode iterators.
35219 (VM2): Likewise.
35220 (VI_unit): Likewise.
35221 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
35222 (altivec_vaddcuq): Likewise.
35223 (altivec_vsubuqm): Likewise.
35224 (altivec_vsubcuq): Likewise.
35225 (altivec_vaddeuqm): Likewise.
35226 (altivec_vaddecuq): Likewise.
35227 (altivec_vsubeuqm): Likewise.
35228 (altivec_vsubecuq): Likewise.
35229
35230 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
35231 mode iterators.
35232 (BOOL_128): Likewise.
35233 (BOOL_REGS_OUTPUT): Likewise.
35234 (BOOL_REGS_OP1): Likewise.
35235 (BOOL_REGS_OP2): Likewise.
35236 (BOOL_REGS_UNARY): Likewise.
35237 (BOOL_REGS_AND_CR0): Likewise.
35238
35239 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
35240 128-bit integer builtin support.
35241 (vec_vadduqm): Likewise.
35242 (vec_vaddecuq): Likewise.
35243 (vec_vaddeuqm): Likewise.
35244 (vec_vsubecuq): Likewise.
35245 (vec_vsubeuqm): Likewise.
35246 (vec_vsubcuq): Likewise.
35247 (vec_vsubuqm): Likewise.
35248
35249 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
35250 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
35251 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
35252 128-bit integer add/subtract to ISA 2.07.
35253
35254 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
35255
35256 * config/arc/arc.c (arc_predicate_delay_insns):
35257 Fix third argument passed to conditionalize_nonjump.
35258
35259 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
35260
35261 * config/aarch64/aarch64-builtins.c
35262 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
35263 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
35264 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
35265 instead of __builtin_lfloor.
35266 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
35267
35268 2014-03-12 Jakub Jelinek <jakub@redhat.com>
35269
35270 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
35271 (tree_ssa_ifcombine_bb_1): New function.
35272 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
35273 is an empty forwarder block to then_bb or vice versa and then_bb
35274 and else_bb are effectively swapped.
35275
35276 2014-03-12 Christian Bruel <christian.bruel@st.com>
35277
35278 PR target/60264
35279 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
35280 REG_CFA_DEF_CFA note.
35281 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
35282 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
35283
35284 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
35285
35286 PR tree-optimization/60454
35287 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
35288
35289 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35290
35291 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
35292 Do not define target_cpu_default2 to generic.
35293 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
35294 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
35295 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
35296
35297 2014-03-12 Jakub Jelinek <jakub@redhat.com>
35298 Marc Glisse <marc.glisse@inria.fr>
35299
35300 PR tree-optimization/60502
35301 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
35302 instead of build_low_bits_mask.
35303
35304 2014-03-12 Jakub Jelinek <jakub@redhat.com>
35305
35306 PR middle-end/60482
35307 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
35308 if there are multiple uses, but op doesn't live on E edge.
35309 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
35310 clobber stmts before __builtin_unreachable.
35311
35312 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
35313
35314 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
35315 hard_frame_pointer_rtx.
35316 * cse.c (cse_insn): Remove volatile check.
35317 * cselib.c (cselib_process_insn): Likewise.
35318 * dse.c (scan_insn): Likewise.
35319
35320 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
35321
35322 * config/arc/arc.c (conditionalize_nonjump): New function,
35323 broken out of ...
35324 (arc_ifcvt): ... this.
35325 (arc_predicate_delay_insns): Use it.
35326
35327 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
35328
35329 * config/arc/predicates.md (extend_operand): During/after reload,
35330 allow const_int_operand.
35331 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
35332 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
35333 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
35334 to "i".
35335 (umulsi3_highpart_i): Likewise.
35336
35337 2014-03-11 Richard Biener <rguenther@suse.de>
35338
35339 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
35340 Add asserts to guard possible wrong-code bugs.
35341
35342 2014-03-11 Richard Biener <rguenther@suse.de>
35343
35344 PR tree-optimization/60429
35345 PR tree-optimization/60485
35346 * tree-ssa-structalias.c (set_union_with_increment): Properly
35347 take into account all fields that overlap the shifted vars.
35348 (do_sd_constraint): Likewise.
35349 (do_ds_constraint): Likewise.
35350 (get_constraint_for_ptr_offset): Likewise.
35351
35352 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
35353
35354 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
35355 (nios2_compute_frame_layout):
35356 Add calculation of cfun->machine->fp_save_offset.
35357 (nios2_expand_prologue): Correct setting of frame pointer register
35358 in prologue.
35359 (nios2_expand_epilogue): Update recovery of stack pointer from
35360 frame pointer accordingly.
35361 (nios2_initial_elimination_offset): Update calculation of offset
35362 for eliminating to HARD_FRAME_POINTER_REGNUM.
35363
35364 2014-03-10 Jakub Jelinek <jakub@redhat.com>
35365
35366 PR ipa/60457
35367 * ipa.c (symtab_remove_unreachable_nodes): Don't call
35368 cgraph_get_create_node on VAR_DECLs.
35369
35370 2014-03-10 Richard Biener <rguenther@suse.de>
35371
35372 PR middle-end/60474
35373 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
35374
35375 2014-03-08 Douglas B Rupp <rupp@gnat.com>
35376
35377 * config/vms/vms.opt (vms_float_format): New variable.
35378
35379 2014-03-08 Tobias Burnus <burnus@net-b.de>
35380
35381 * doc/invoke.texi (-fcilkplus): Update implementation status.
35382
35383 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
35384 Richard Biener <rguenther@suse.de>
35385
35386 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
35387 consistently accross all TUs.
35388 (run_gcc): Enable -fshort-double automatically at link at link-time
35389 and disallow override.
35390
35391 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
35392
35393 PR target/58271
35394 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
35395 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
35396 if they can't be used.
35397
35398 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35399
35400 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
35401 for Solaris 11/x86 ld.
35402 * configure: Regenerate.
35403
35404 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35405
35406 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
35407 (LIB_TLS_SPEC): Save as ld_tls_libs.
35408 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
35409 (HAVE_AS_IX86_TLSLDM): New test.
35410 * configure, config.in: Regenerate.
35411 * config/i386/i386.c (legitimize_tls_address): Fall back to
35412 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
35413 cannot support TLS_MODEL_LOCAL_DYNAMIC.
35414 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
35415 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
35416
35417 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
35418
35419 * common.opt (fira-loop-pressure): Mark as optimization.
35420
35421 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
35422
35423 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
35424 an OpenMP mappable type.
35425
35426 2014-03-06 Matthias Klose <doko@ubuntu.com>
35427
35428 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
35429 MULTILIB_OSDIRNAMES is not defined.
35430
35431 2014-03-06 Jakub Jelinek <jakub@redhat.com>
35432 Meador Inge <meadori@codesourcery.com>
35433
35434 PR target/58595
35435 * config/arm/arm.c (arm_tls_symbol_p): Remove.
35436 (arm_legitimize_address): Call legitimize_tls_address for any
35437 arm_tls_referenced_p expression, handle constant addend. Call it
35438 before testing for !TARGET_ARM.
35439 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
35440
35441 2014-03-06 Richard Biener <rguenther@suse.de>
35442
35443 PR middle-end/60445
35444 PR lto/60424
35445 PR lto/60427
35446 Revert
35447 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
35448
35449 * tree-streamer.c (record_common_node): Assert we don't record
35450 nodes with type double.
35451 (preload_common_node): Skip type double, complex double and double
35452 pointer since it is now frontend dependent due to fshort-double option.
35453
35454 2014-03-06 Richard Biener <rguenther@suse.de>
35455
35456 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
35457 or -fno-lto is specified and the linker has full plugin support.
35458 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
35459 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
35460 * lto-wrapper.c (merge_and_complain): Merge compile-time
35461 optimization levels.
35462 (run_gcc): And pass it through to the link options.
35463
35464 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
35465
35466 PR debug/60381
35467 Revert:
35468 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
35469 PR debug/59992
35470 * cselib.c (remove_useless_values): Skip to avoid quadratic
35471 behavior if the condition moved from...
35472 (cselib_process_insn): ... here holds.
35473
35474 2014-03-05 Jakub Jelinek <jakub@redhat.com>
35475
35476 PR plugins/59335
35477 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
35478 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
35479
35480 PR plugins/59335
35481 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
35482 (TM_H): Add x86-tune.def.
35483
35484 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35485
35486 * config/aarch64/aarch64.c (generic_tunings):
35487 Use cortexa57_extra_costs.
35488
35489 2014-03-05 Jakub Jelinek <jakub@redhat.com>
35490
35491 PR lto/60404
35492 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
35493 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
35494 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
35495 cost for in_lto_p.
35496
35497 2014-03-04 Heiher <r@hev.cc>
35498
35499 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
35500 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
35501
35502 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
35503
35504 * config/i386/predicates.md (const2356_operand): Change to ...
35505 (const2367_operand): ... this.
35506 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
35507 const2367_operand.
35508 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
35509 (*avx512pf_scatterpf<mode>sf): Ditto.
35510 (avx512pf_scatterpf<mode>df): Ditto.
35511 (*avx512pf_scatterpf<mode>df_mask): Ditto.
35512 (*avx512pf_scatterpf<mode>df): Ditto.
35513 * config/i386/i386.c (ix86_expand_builtin): Update
35514 incorrect hint operand error message.
35515
35516 2014-03-04 Richard Biener <rguenther@suse.de>
35517
35518 * lto-section-in.c (lto_get_section_data): Fix const cast.
35519
35520 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
35521
35522 * tree-streamer.c (record_common_node): Assert we don't record
35523 nodes with type double.
35524 (preload_common_node): Skip type double, complex double and double
35525 pointer since it is now frontend dependent due to fshort-double option.
35526
35527 2014-03-04 Richard Biener <rguenther@suse.de>
35528
35529 PR lto/60405
35530 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
35531 (lto_input_toplevel_asms): Likewise.
35532 * lto-section-in.c (lto_get_section_data): Instead do it here
35533 for every section.
35534
35535 2014-03-04 Richard Biener <rguenther@suse.de>
35536
35537 PR tree-optimization/60382
35538 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
35539 dead PHIs a reduction.
35540
35541 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
35542
35543 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
35544 hint value.
35545 (_mm_prefetch): Move out of GCC target("sse") pragma.
35546 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
35547 GCC target("prfchw") pragma.
35548 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
35549 for locality <= 2.
35550 * config/i386/i386.c (ix86_option_override_internal): Enable
35551 -mprfchw with -mprefetchwt1.
35552
35553 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
35554
35555 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
35556 Mark as varying.
35557
35558 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
35559
35560 * opts.h (CL_PCH_IGNORE): Define.
35561 * targhooks.c (option_affects_pch_p):
35562 Return false for options that have CL_PCH_IGNORE set.
35563 * opt-functions.awk: Process PchIgnore.
35564 * doc/options.texi: Document PchIgnore.
35565
35566 * config/arc/arc.opt (misize): Add PchIgnore property.
35567
35568 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35569
35570 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
35571 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
35572 constraint on constants to permit them being loaded into
35573 GENERAL_REGS or BASE_REGS.
35574
35575 2014-03-03 Nick Clifton <nickc@redhat.com>
35576
35577 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
35578 anti-cacnonical alternatives.
35579 (negandhi3_real): New pattern.
35580 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
35581
35582 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
35583
35584 * config/avr/avr-mcus.def: Remove atxmega16x1.
35585 * config/avr/avr-tables.opt: Regenerate.
35586 * config/avr/t-multilib: Regenerate.
35587 * doc/avr-mmcu.texi: Regenerate.
35588
35589 2014-03-03 Tobias Grosser <tobias@grosser.es>
35590 Mircea Namolaru <mircea.namolaru@inria.fr>
35591
35592 PR tree-optimization/58028
35593 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
35594 scalar dimensions.
35595
35596 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35597
35598 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
35599 not handled by recognizers.
35600
35601 2014-03-03 Jakub Jelinek <jakub@redhat.com>
35602
35603 PR middle-end/60175
35604 * function.c (expand_function_end): Don't emit
35605 clobber_return_register sequence if clobber_after is a BARRIER.
35606 * cfgexpand.c (construct_exit_block): Append instructions before
35607 return_label to prev_bb.
35608
35609 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35610
35611 * config/rs6000/constraints.md: Document reserved use of "wc".
35612
35613 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
35614
35615 PR ipa/60150
35616 * ipa.c (function_and_variable_visibility): When dissolving comdat
35617 group, also set all symbols to local.
35618
35619 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
35620
35621 PR ipa/60306
35622
35623 Revert:
35624 2013-12-14 Jan Hubicka <jh@suse.cz>
35625 PR middle-end/58477
35626 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
35627
35628 2014-03-02 Jon Beniston <jon@beniston.com>
35629
35630 PR bootstrap/48230
35631 PR bootstrap/50927
35632 PR bootstrap/52466
35633 PR target/46898
35634 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
35635 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
35636 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
35637 (simple_return, *simple_return): New patterns
35638 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
35639 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
35640
35641 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
35642
35643 * dwarf2out.c (gen_subprogram_die): Tidy.
35644
35645 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
35646
35647 PR target/60071
35648 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
35649 (*mov_t_msb_neg_negc): ... this new insn.
35650
35651 2014-02-28 Jason Merrill <jason@redhat.com>
35652
35653 PR c++/58678
35654 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
35655 function.
35656
35657 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
35658
35659 PR c++/60314
35660 * dwarf2out.c (decltype_auto_die): New static.
35661 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
35662 (gen_type_die_with_usage): Handle 'decltype(auto)'.
35663 (is_cxx_auto): Likewise.
35664
35665 2014-02-28 Ian Bolton <ian.bolton@arm.com>
35666
35667 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
35668 we are not using general regs only.
35669
35670 2014-02-28 Richard Biener <rguenther@suse.de>
35671
35672 PR target/60280
35673 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
35674 previous fix and only allow to remove trivial pre-headers
35675 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
35676 (remove_forwarder_block): Properly update the latch of a loop.
35677
35678 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
35679
35680 PR debug/59992
35681 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
35682 (cselib_preserved_hash_table): New.
35683 (preserve_constants_and_equivs): Move preserved vals to it.
35684 (cselib_find_slot): Look it up first.
35685 (cselib_init): Initialize it.
35686 (cselib_finish): Release it.
35687 (dump_cselib_table): Dump it.
35688
35689 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
35690
35691 PR debug/59992
35692 * cselib.c (remove_useless_values): Skip to avoid quadratic
35693 behavior if the condition moved from...
35694 (cselib_process_insn): ... here holds.
35695
35696 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
35697
35698 PR debug/57232
35699 * var-tracking.c (vt_initialize): Apply the same condition to
35700 preserve the CFA base value.
35701
35702 2014-02-28 Joey Ye <joey.ye@arm.com>
35703
35704 PR target/PR60169
35705 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
35706 if reload in progress or completed.
35707
35708 2014-02-28 Tobias Burnus <burnus@net-b.de>
35709
35710 PR middle-end/60147
35711 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
35712 NAMELIST_DECL.
35713
35714 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
35715
35716 * doc/tm.texi.in (Condition Code Status): Update documention for
35717 relative locations of cc0-setter and cc0-user.
35718
35719 2014-02-27 Jeff Law <law@redhat.com>
35720
35721 PR rtl-optimization/52714
35722 * combine.c (try_combine): When splitting an unrecognized PARALLEL
35723 into two independent simple sets, if I3 is a jump, ensure the
35724 pattern we place into I3 is a (set (pc) ...).
35725
35726 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
35727 Jeff Law <law@redhat.com>
35728
35729 PR rtl-optimization/49847
35730 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
35731 are in different blocks.
35732 * doc/tm.texi (Condition Code Status): Update documention for
35733 relative locations of cc0-setter and cc0-user.
35734
35735 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
35736
35737 PR target/59222
35738 * lra.c (lra_emit_add): Check SUBREG too.
35739
35740 2014-02-27 Andreas Schwab <schwab@suse.de>
35741
35742 * config/m68k/m68k.c (m68k_option_override): Disable
35743 -flive-range-shrinkage for classic m68k.
35744 (m68k_override_options_after_change): Likewise.
35745
35746 2014-02-27 Marek Polacek <polacek@redhat.com>
35747
35748 PR middle-end/59223
35749 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
35750 -Wmaybe-uninitialized.
35751
35752 2014-02-27 Alan Modra <amodra@gmail.com>
35753
35754 PR target/57936
35755 * reload1.c (emit_input_reload_insns): When reload_override_in,
35756 set old to rl->in_reg when rl->in_reg is a subreg.
35757
35758 2014-02-26 Richard Biener <rguenther@suse.de>
35759
35760 PR bootstrap/60343
35761 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
35762
35763 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
35764
35765 * common/config/i386/predicates.md (const1256_operand): Remove.
35766 (const2356_operand): New.
35767 (const_1_to_2_operand): Remove.
35768 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
35769 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
35770 (*avx512pf_gatherpf<mode>sf): Ditto.
35771 (avx512pf_gatherpf<mode>df): Ditto.
35772 (*avx512pf_gatherpf<mode>df_mask): Ditto.
35773 (*avx512pf_gatherpf<mode>df): Ditto.
35774 (avx512pf_scatterpf<mode>sf): Ditto.
35775 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
35776 (*avx512pf_scatterpf<mode>sf): Ditto.
35777 (avx512pf_scatterpf<mode>df): Ditto.
35778 (*avx512pf_scatterpf<mode>df_mask): Ditto.
35779 (*avx512pf_scatterpf<mode>df): Ditto.
35780 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
35781
35782 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
35783
35784 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
35785 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
35786 (_mm512_mask_testn_epi64_mask): Move to ...
35787 * config/i386/avx512cdintrin.h: Here.
35788 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
35789 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
35790 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
35791 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
35792 TARGET_AVX512F from TARGET_AVX512CD.
35793
35794 2014-02-26 Richard Biener <rguenther@suse.de>
35795
35796 PR ipa/60327
35797 * ipa.c (walk_polymorphic_call_targets): Properly guard
35798 call to inline_update_overall_summary.
35799
35800 2014-02-26 Bin Cheng <bin.cheng@arm.com>
35801
35802 PR target/60280
35803 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
35804 and latches only if requested. Fix latch if it is removed.
35805 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
35806 LOOPS_HAVE_PREHEADERS.
35807
35808 2014-02-25 Andrew Pinski <apinski@cavium.com>
35809
35810 * builtins.c (expand_builtin_thread_pointer): Create a new target
35811 when the target is NULL.
35812
35813 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
35814
35815 PR rtl-optimization/60317
35816 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
35817 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
35818 * lra-assigns.c: Include params.h.
35819 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
35820 other reload pseudos considerations.
35821
35822 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35823
35824 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
35825 to use canonical form for nor<mode>3.
35826
35827 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35828
35829 PR target/55426
35830 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
35831 conversions.
35832
35833 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
35834
35835 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
35836 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
35837 (ix86_handle_option): Handle OPT_mprefetchwt1.
35838 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
35839 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
35840 PREFETCHWT1 CPUID.
35841 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
35842 OPTION_MASK_ISA_PREFETCHWT1.
35843 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
35844 (PTA_PREFETCHWT1): New.
35845 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
35846 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
35847 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
35848 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
35849 (*prefetch_avx512pf_<mode>_: Change into ...
35850 (*prefetch_prefetchwt1_<mode>: This.
35851 * config/i386/i386.opt (mprefetchwt1): New.
35852 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
35853 (_mm_prefetch): Handle intent to write.
35854 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
35855
35856 2014-02-25 Richard Biener <rguenther@suse.de>
35857
35858 PR middle-end/60291
35859 * emit-rtl.c (mem_attrs_htab): Remove.
35860 (mem_attrs_htab_hash): Likewise.
35861 (mem_attrs_htab_eq): Likewise.
35862 (set_mem_attrs): Always allocate new mem-attrs when something changed.
35863 (init_emit_once): Do not allocate mem_attrs_htab.
35864
35865 2014-02-25 Richard Biener <rguenther@suse.de>
35866
35867 PR lto/60319
35868 * lto-opts.c (lto_write_options): Output non-explicit conservative
35869 -fwrapv, -fno-trapv and -fno-strict-overflow.
35870 * lto-wrapper.c (merge_and_complain): Handle merging those options.
35871 (run_gcc): And pass them through.
35872
35873 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
35874
35875 * sel-sched.c (calculate_new_fences): New parameter ptime.
35876 Calculate it as a maximum over all fence cycles.
35877 (sel_sched_region_2): Adjust the call to calculate_new_fences.
35878 Print the final schedule timing when sched_verbose.
35879
35880 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
35881
35882 PR rtl-optimization/60292
35883 * sel-sched.c (fill_vec_av_set): Do not reset target availability
35884 bit fot the fence instruction.
35885
35886 2014-02-24 Alangi Derick <alangiderick@gmail.com>
35887
35888 * calls.h: Fix typo in comment.
35889
35890 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
35891
35892 * config/pa/pa.c (pa_output_move_double): Don't valididate when
35893 adjusting offsetable addresses.
35894
35895 2014-02-24 Guozhi Wei <carrot@google.com>
35896
35897 * sparseset.h (sparseset_pop): Fix the wrong index.
35898
35899 2014-02-24 Walter Lee <walt@tilera.com>
35900
35901 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
35902 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
35903 triplet.
35904 * common/config/tilegx/tilegx-common.c
35905 (TARGET_DEFAULT_TARGET_FLAGS): Define.
35906 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
35907 (LINK_SPEC): Ditto.
35908 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
35909 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
35910 (tilegx_gimplify_va_arg_expr): Handle big endian.
35911 (tilegx_expand_unaligned_load): Ditto.
35912 (tilegx_expand_unaligned_store): Ditto.
35913 (TARGET_RETURN_IN_MSB): New.
35914 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
35915 (TARGET_ENDIAN_DEFAULT): New.
35916 (TARGET_BIG_ENDIAN): Handle big endian.
35917 (BYTES_BIG_ENDIAN): Ditto.
35918 (WORDS_BIG_ENDIAN): Ditto.
35919 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
35920 (ENDIAN_SPEC): New.
35921 (EXTRA_SPECS): New.
35922 * config/tilegx/tilegx.md (extv): Handle big endian.
35923 (extzv): Ditto.
35924 (insn_st<n>): Ditto.
35925 (insn_st<n>_add<bitsuffix>): Ditto.
35926 (insn_stnt<n>): Ditto.
35927 (insn_stnt<n>_add<bitsuffix>):Ditto.
35928 (vec_interleave_highv8qi): Handle big endian.
35929 (vec_interleave_highv8qi_be): New.
35930 (vec_interleave_highv8qi_le): New.
35931 (insn_v1int_h): Handle big endian.
35932 (vec_interleave_lowv8qi): Handle big endian.
35933 (vec_interleave_lowv8qi_be): New.
35934 (vec_interleave_lowv8qi_le): New.
35935 (insn_v1int_l): Handle big endian.
35936 (vec_interleave_highv4hi): Handle big endian.
35937 (vec_interleave_highv4hi_be): New.
35938 (vec_interleave_highv4hi_le): New.
35939 (insn_v2int_h): Handle big endian.
35940 (vec_interleave_lowv4hi): Handle big endian.
35941 (vec_interleave_lowv4hi_be): New.
35942 (vec_interleave_lowv4hi_le): New.
35943 (insn_v2int_l): Handle big endian.
35944 (vec_interleave_highv2si): Handle big endian.
35945 (vec_interleave_highv2si_be): New.
35946 (vec_interleave_highv2si_le): New.
35947 (insn_v4int_h): Handle big endian.
35948 (vec_interleave_lowv2si): Handle big endian.
35949 (vec_interleave_lowv2si_be): New.
35950 (vec_interleave_lowv2si_le): New.
35951 (insn_v4int_l): Handle big endian.
35952 * config/tilegx/tilegx.opt (mbig-endian): New option.
35953 (mlittle-endian): New option.
35954 * doc/install.texi: Document tilegxbe-linux.
35955 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
35956
35957 2014-02-24 Martin Jambor <mjambor@suse.cz>
35958
35959 PR ipa/60266
35960 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
35961 there are no parameter descriptors.
35962
35963 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
35964
35965 PR rtl-optimization/60268
35966 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
35967 initialization to ...
35968 (sched_rgn_init): ... here.
35969 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
35970
35971 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
35972
35973 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
35974 names.
35975
35976 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
35977
35978 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
35979 definition.
35980
35981 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
35982
35983 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
35984 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
35985
35986 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
35987
35988 * config/microblaze/predicates.md: Add cmp_op predicate.
35989 * config/microblaze/microblaze.md: Add branch_compare instruction
35990 which uses cmp_op predicate and emits cmp insn before branch.
35991 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
35992 to microblaze_expand_conditional_branch and consolidate logic.
35993 (microblaze_expand_conditional_branch): emit branch_compare
35994 insn instead of handling cmp op separate from branch insn.
35995
35996 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35997
35998 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
35999 to permit subregs.
36000
36001 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36002
36003 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
36004 define_insn with define_expand and new define_insn
36005 *altivec_lve<VI_char>x_internal.
36006 (altivec_stve<VI_char>x): Replace define_insn with define_expand
36007 and new define_insn *altivec_stve<VI_char>x_internal.
36008 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
36009 prototype.
36010 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
36011 lve*x built-ins.
36012 (altivec_expand_stvex_be): New function.
36013
36014 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
36015
36016 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
36017 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
36018 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
36019 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
36020
36021 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
36022
36023 PR target/60298
36024 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
36025 instead of emit_move_insn.
36026
36027 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36028
36029 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
36030 vspltw with vsldoi.
36031 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
36032 gen_altivec_vsumsws.
36033
36034 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36035
36036 * config/rs6000/altivec.md (altivec_lvxl): Rename as
36037 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
36038 (altivec_lvxl_<mode>): New define_expand incorporating
36039 -maltivec=be semantics where needed.
36040 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
36041 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
36042 semantics where needed.
36043 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
36044 (altivec_stvx_<mode>): New define_expand incorporating
36045 -maltivec=be semantics where needed.
36046 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
36047 VM2 iterator instead of V4SI.
36048 (altivec_stvxl_<mode>): New define_expand incorporating
36049 -maltivec=be semantics where needed.
36050 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
36051 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
36052 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
36053 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
36054 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
36055 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
36056 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
36057 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
36058 ALTIVEC_BUILTIN_STVXL.
36059 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
36060 (altivec_expand_stvx_be): Likewise.
36061 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
36062 (altivec_expand_lvx_be): Likewise.
36063 (altivec_expand_stvx_be): Likewise.
36064 (altivec_expand_builtin): Add cases for
36065 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
36066 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
36067 (altivec_init_builtins): Add definitions for
36068 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
36069 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
36070
36071 2014-02-21 Catherine Moore <clm@codesourcery.com>
36072
36073 * doc/invoke.texi (mvirt, mno-virt): Document.
36074 * config/mips/mips.opt (mvirt): New option.
36075 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
36076
36077 2014-02-21 Richard Biener <rguenther@suse.de>
36078
36079 PR tree-optimization/60276
36080 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
36081 (STMT_VINFO_MIN_NEG_DIST): New macro.
36082 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
36083 STMT_VINFO_MIN_NEG_DIST.
36084 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
36085 made for negative dependence distances still hold.
36086
36087 2014-02-21 Richard Biener <rguenther@suse.de>
36088
36089 PR middle-end/60291
36090 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
36091 DECL_INITIAL for globals not in the current function context.
36092
36093 2014-02-21 Jakub Jelinek <jakub@redhat.com>
36094
36095 PR tree-optimization/56490
36096 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
36097 * tree-ssa-uninit.c: Include params.h.
36098 (compute_control_dep_chain): Add num_calls argument, return false
36099 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
36100 num_calls to recursive call.
36101 (find_predicates): Change dep_chain into normal array,
36102 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
36103 variable and adjust compute_control_dep_chain caller.
36104 (find_def_preds): Likewise.
36105
36106 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
36107
36108 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
36109 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
36110
36111 2014-02-21 Nick Clifton <nickc@redhat.com>
36112
36113 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
36114 (pushhi1): Likewise.
36115 (popqi1): Add mode to pre_dec.
36116 (pophi1): Likewise.
36117
36118 2014-02-21 Jakub Jelinek <jakub@redhat.com>
36119
36120 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
36121 mode for mask of V8SFmode permutation.
36122
36123 2014-02-20 Richard Henderson <rth@redhat.com>
36124
36125 PR c++/60272
36126 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
36127 a new pseudo for OLDVAL.
36128
36129 2014-02-20 Jakub Jelinek <jakub@redhat.com>
36130
36131 PR target/57896
36132 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
36133 gen_reg_rtx if d->testing_p.
36134 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
36135 if d->testing_p and we will certainly return true.
36136 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
36137 if d->testing_p.
36138
36139 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
36140
36141 * emit-rtl.c (gen_reg_rtx): Assert that
36142 crtl->emit.regno_pointer_align_length is non-zero.
36143
36144 2014-02-20 Richard Henderson <rth@redhat.com>
36145
36146 PR c++/60272
36147 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
36148 on failure the store back into EXPECT.
36149
36150 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
36151 Sandra Loosemore <sandra@codesourcery.com>
36152
36153 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
36154 * config/nios2/nios2.c (nios2_function_profiler): Add
36155 -fPIC (flag_pic == 2) support.
36156 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
36157 (nios2_large_offset_p): New function.
36158 (nios2_unspec_reloc_p): Move up position, update to use
36159 nios2_large_offset_p.
36160 (nios2_unspec_address): Remove function.
36161 (nios2_unspec_offset): New function.
36162 (nios2_large_got_address): New function.
36163 (nios2_got_address): Add large offset support.
36164 (nios2_legitimize_tls_address): Update usage of removed and new
36165 functions.
36166 (nios2_symbol_binds_local_p): New function.
36167 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
36168 (nios2_legitimize_address): Update to use nios2_large_offset_p.
36169 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
36170 (nios2_print_operand): Merge H/L processing, add hiadj/lo
36171 processing for (const (unspec ...)).
36172 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
36173
36174 2014-02-20 Richard Biener <rguenther@suse.de>
36175
36176 * tree-cfg.c (replace_uses_by): Mark altered BBs before
36177 doing the substitution.
36178 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
36179
36180 2014-02-20 Martin Jambor <mjambor@suse.cz>
36181
36182 PR ipa/55260
36183 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
36184 info when checking whether lattices are bottom.
36185
36186 2014-02-20 Richard Biener <rguenther@suse.de>
36187
36188 PR middle-end/60221
36189 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
36190 regions at -O0.
36191
36192 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
36193
36194 PR ipa/58555
36195 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
36196 parameter specifying the scaling.
36197 (inline_call): Update.
36198 (want_inline_recursively): Guard division by zero.
36199 (recursive_inlining): Update.
36200 * ipa-inline.h (clone_inlined_nodes): Update.
36201
36202 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
36203
36204 PR target/60204
36205 * config/i386/i386.c (classify_argument): Pass structures of size
36206 64 bytes or less in register.
36207
36208 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
36209 Kirill Yukhin <kirill.yukhin@intel.com>
36210
36211 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
36212 (_mm_rcp28_round_ss): Ditto.
36213 (_mm_rsqrt28_round_sd): Ditto.
36214 (_mm_rsqrt28_round_ss): Ditto.
36215 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
36216 (_mm_rcp14_round_ss): Ditto.
36217 (_mm_rsqrt14_round_sd): Ditto.
36218 (_mm_rsqrt14_round_ss): Ditto.
36219 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
36220 the first input operand, get rid of match_dup.
36221 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
36222 attribute to sse.
36223 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
36224 Ditto.
36225 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
36226 operand as the first input operand, set type attribute.
36227 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
36228 Set type attribute.
36229 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
36230 operand as the first input operand, set type attribute.
36231
36232 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36233
36234 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
36235 bit of zero.
36236
36237 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
36238
36239 PR target/60207
36240 * config/i386/i386.c (construct_container): Remove TFmode check
36241 for X86_64_INTEGER_CLASS.
36242
36243 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
36244
36245 PR target/59794
36246 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
36247 only when -Wpsabi is enabled.
36248
36249 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
36250
36251 PR target/59799
36252 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
36253 passing arrays in registers are the same as for structs, so remove the
36254 special case for them.
36255
36256 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
36257
36258 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
36259 destination type, extract only the valid bits if the source type is not
36260 integral and has a different mode.
36261
36262 2014-02-19 Richard Biener <rguenther@suse.de>
36263
36264 PR ipa/60243
36265 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
36266 for all calls.
36267
36268 2014-02-19 Richard Biener <rguenther@suse.de>
36269
36270 PR ipa/60243
36271 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
36272 (ipa_modify_call_arguments): Emit an argument load explicitely and
36273 preserve virtual SSA form there and for the replacement call.
36274 Do not update SSA form nor free dominance info.
36275
36276 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
36277
36278 * ipa.c (function_and_variable_visibility): Also clear WEAK
36279 flag when disolving COMDAT_GROUP.
36280
36281 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
36282
36283 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
36284 * ipa-prop.c (ipa_set_jf_known_type): Return early when
36285 not devirtualizing.
36286 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
36287 do more sanity checks.
36288 (detect_type_change): Return true when giving up early.
36289 (compute_complex_assign_jump_func): Fix type parameter of
36290 ipa_set_ancestor_jf.
36291 (compute_complex_ancestor_jump_func): Likewise.
36292 (update_jump_functions_after_inlining): Fix updating of
36293 ancestor function.
36294 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
36295
36296 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
36297
36298 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
36299 inline clones when edge disappears.
36300
36301 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
36302
36303 PR target/60203
36304 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
36305 Split 64-bit moves into 2 patterns. Do not allow the use of
36306 direct move for TDmode in little endian, since the decimal value
36307 has little endian bytes within a word, but the 64-bit pieces are
36308 ordered in a big endian fashion, and normal subreg's of TDmode are
36309 not allowed.
36310 (mov<mode>_64bit_dm): Likewise.
36311 (movtd_64bit_nodm): Likewise.
36312
36313 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
36314
36315 PR tree-optimization/60174
36316 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
36317 statement of an SSA_NAME that occurs in an abnormal PHI node.
36318
36319 2014-02-18 Jakub Jelinek <jakub@redhat.com>
36320
36321 PR sanitizer/60142
36322 * final.c (SEEN_BB): Remove.
36323 (SEEN_NOTE, SEEN_EMITTED): Renumber.
36324 (final_scan_insn): Don't force_source_line on second
36325 NOTE_INSN_BASIC_BLOCK.
36326
36327 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
36328
36329 PR target/60205
36330 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
36331 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
36332 (type_natural_mode): Warn ABI change when %zmm register is not
36333 available for AVX512F vector value passing.
36334
36335 2014-02-18 Kai Tietz <ktietz@redhat.com>
36336
36337 PR target/60193
36338 * config/i386/i386.c (ix86_expand_prologue): Use value in
36339 rax register as displacement when restoring %r10 or %rax.
36340 Fix wrong offset when restoring both registers.
36341
36342 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
36343
36344 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
36345 assertion with conditional return.
36346
36347 2014-02-18 Jakub Jelinek <jakub@redhat.com>
36348 Uros Bizjak <ubizjak@gmail.com>
36349
36350 PR driver/60233
36351 * config/i386/driver-i386.c (host_detect_local_cpu): If
36352 YMM state is not saved by the OS, also clear has_f16c. Move
36353 CPUID 0x80000001 handling before YMM state saving checking.
36354
36355 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
36356
36357 PR rtl-optimization/58960
36358 * haifa-sched.c (alloc_global_sched_pressure_data): New,
36359 factored out from ...
36360 (sched_init): ... here.
36361 (free_global_sched_pressure_data): New, factored out from ...
36362 (sched_finish): ... here.
36363 * sched-int.h (free_global_sched_pressure_data): Declare.
36364 * sched-rgn.c (nr_regions_initial): New static global.
36365 (haifa_find_rgns): Initialize it.
36366 (schedule_region): Disable sched-pressure for the newly
36367 generated regions.
36368
36369 2014-02-17 Richard Biener <rguenther@suse.de>
36370
36371 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
36372 release SSA defs of pattern stmts.
36373
36374 2014-02-17 Richard Biener <rguenther@suse.de>
36375
36376 * tree-inline.c (expand_call_inline): Release the virtual
36377 operand defined by the call we are about to inline.
36378
36379 2014-02-17 Richard Biener <rguenther@suse.de>
36380
36381 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
36382
36383 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
36384 Ilya Tocar <ilya.tocar@intel.com>
36385
36386 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
36387 arguments order in builtin.
36388 (_mm512_permutexvar_epi64): Ditto.
36389 (_mm512_mask_permutexvar_epi64): Ditto
36390 (_mm512_maskz_permutexvar_epi32): Ditto
36391 (_mm512_permutexvar_epi32): Ditto
36392 (_mm512_mask_permutexvar_epi32): Ditto
36393
36394 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36395
36396 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
36397 (p8_vmrgow): Likewise.
36398
36399 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36400
36401 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
36402 endian targets.
36403
36404 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
36405
36406 PR target/60203
36407 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
36408 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
36409 into 64-bit and 32-bit moves. On 64-bit moves, add support for
36410 using direct move instructions on ISA 2.07. Also adjust
36411 instruction length for 64-bit.
36412 (mov<mode>_64bit, TFmode/TDmode): Likewise.
36413 (mov<mode>_32bit, TFmode/TDmode): Likewise.
36414
36415 2014-02-15 Alan Modra <amodra@gmail.com>
36416
36417 PR target/58675
36418 PR target/57935
36419 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
36420 find_replacement on parts of insn rtl that might be reloaded.
36421
36422 2014-02-15 Richard Biener <rguenther@suse.de>
36423
36424 PR tree-optimization/60183
36425 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
36426 (tree_ssa_phiprop): Calculate and free post-dominators.
36427
36428 2014-02-14 Jeff Law <law@redhat.com>
36429
36430 PR rtl-optimization/60131
36431 * ree.c (get_extended_src_reg): New function.
36432 (combine_reaching_defs): Use it rather than assuming location of REG.
36433 (find_and_remove_re): Verify first operand of extension is
36434 a REG before adding the insns to the copy list.
36435
36436 2014-02-14 Roland McGrath <mcgrathr@google.com>
36437
36438 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
36439 * configure: Regenerated.
36440 * config.in: Regenerated.
36441 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
36442 instead of ASM_SHORT.
36443
36444 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
36445 Richard Earnshaw <rearnsha@arm.com>
36446
36447 PR rtl-optimization/59535
36448 * lra-constraints.c (process_alt_operands): Encourage alternative
36449 when unassigned pseudo class is superset of the alternative class.
36450 (inherit_reload_reg): Don't inherit when optimizing for code size.
36451 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
36452 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
36453 modes not less than 4 for Thumb1.
36454
36455 2014-02-14 Kyle McMartin <kyle@redhat.com>
36456
36457 PR pch/60010
36458 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
36459
36460 2014-02-14 Richard Biener <rguenther@suse.de>
36461
36462 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
36463 (get_frame_arg): Drop the assert with langhook types_compatible_p.
36464 Do not strip INDIRECT_REFs.
36465
36466 2014-02-14 Richard Biener <rguenther@suse.de>
36467
36468 PR lto/60179
36469 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
36470 DECL_FUNCTION_SPECIFIC_TARGET.
36471 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
36472 * tree-streamer-out.c (pack_ts_target_option): Remove.
36473 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
36474 (write_ts_function_decl_tree_pointers): Do not stream
36475 DECL_FUNCTION_SPECIFIC_TARGET.
36476 * tree-streamer-in.c (unpack_ts_target_option): Remove.
36477 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
36478 (lto_input_ts_function_decl_tree_pointers): Do not stream
36479 DECL_FUNCTION_SPECIFIC_TARGET.
36480
36481 2014-02-14 Jakub Jelinek <jakub@redhat.com>
36482
36483 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
36484 (get_initial_def_for_induction, vectorizable_induction): Ignore
36485 debug stmts when looking for exit_phi.
36486 (vectorizable_live_operation): Fix up condition.
36487
36488 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
36489
36490 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
36491 nreverse() because it changes the content of original tree list.
36492
36493 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
36494
36495 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
36496 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
36497
36498 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
36499
36500 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
36501 GNU coding standards.
36502
36503 2014-02-13 Jakub Jelinek <jakub@redhat.com>
36504
36505 PR debug/60152
36506 * dwarf2out.c (gen_subprogram_die): Don't call
36507 add_calling_convention_attribute if subr_die is old_die.
36508
36509 2014-02-13 Sharad Singhai <singhai@google.com>
36510
36511 * doc/optinfo.texi: Fix order of nodes.
36512
36513 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
36514
36515 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
36516 operands[2], not operands[3].
36517
36518 2014-02-13 Richard Biener <rguenther@suse.de>
36519
36520 PR bootstrap/59878
36521 * doc/install.texi (ISL): Update recommended version to 0.12.2,
36522 mention the possibility of an in-tree build.
36523 (CLooG): Update recommended version to 0.18.1, mention the
36524 possibility of an in-tree build and clarify that the ISL
36525 bundled with CLooG does not work.
36526
36527 2014-02-13 Jakub Jelinek <jakub@redhat.com>
36528
36529 PR target/43546
36530 * expr.c (compress_float_constant): If x is a hard register,
36531 extend into a pseudo and then move to x.
36532
36533 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
36534
36535 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
36536 caused by bad second argument to warning_at() with -mhotpatch and
36537 nested functions (e.g. with gfortran).
36538
36539 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
36540
36541 * opts.c (option_name): Remove "enabled by default" rider.
36542
36543 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
36544
36545 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
36546
36547 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
36548 Uros Bizjak <ubizjak@gmail.com>
36549
36550 PR target/60151
36551 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
36552 * configure: Regenerated.
36553
36554 2014-02-12 Richard Biener <rguenther@suse.de>
36555
36556 * vec.c (vec_prefix::calculate_allocation): Move as
36557 inline variant to vec.h.
36558 (vec_prefix::calculate_allocation_1): New out-of-line version.
36559 * vec.h (vec_prefix::calculate_allocation_1): Declare.
36560 (vec_prefix::m_has_auto_buf): Rename to ...
36561 (vec_prefix::m_using_auto_storage): ... this.
36562 (vec_prefix::calculate_allocation): Inline the easy cases
36563 and dispatch to calculate_allocation_1 which doesn't need the
36564 prefix address.
36565 (va_heap::reserve): Use gcc_checking_assert.
36566 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
36567 m_using_auto_storage.
36568 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
36569 member and adjust.
36570 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
36571 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
36572 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
36573
36574 2014-02-12 Richard Biener <rguenther@suse.de>
36575
36576 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
36577 when we found a dependence.
36578
36579 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
36580
36581 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
36582 common code...
36583 (maybe_fold_stmt): ... into this new function.
36584 * omp-low.c (lower_omp): Update comment.
36585
36586 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
36587 last use.
36588
36589 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
36590 dereference.
36591
36592 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
36593
36594 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
36595 identifiers in comments.
36596 (cortexa53_extra_costs): Likewise.
36597 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
36598 (cortexa7_extra_costs): Likewise.
36599 (cortexa12_extra_costs): Likewise.
36600 (cortexa15_extra_costs): Likewise.
36601 (v7m_extra_costs): Likewise.
36602
36603 2014-02-12 Richard Biener <rguenther@suse.de>
36604
36605 PR middle-end/60092
36606 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
36607 of posix_memalign being successful.
36608 (lower_stmt): Restrict lowering of posix_memalign to when
36609 -ftree-bit-ccp is enabled.
36610
36611 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
36612
36613 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
36614 arg_loc.
36615 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
36616
36617 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
36618
36619 PR rtl-optimization/60116
36620 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
36621 other_insn once the combination has been validated.
36622
36623 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
36624
36625 PR lto/59468
36626 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
36627 and wrapper.
36628 * ipa-devirt.c: Include demangle.h
36629 (odr_violation_reported): New static variable.
36630 (add_type_duplicate): Update odr_violations.
36631 (maybe_record_node): Add completep parameter; update it.
36632 (record_target_from_binfo): Add COMPLETEP parameter;
36633 update it as needed.
36634 (possible_polymorphic_call_targets_1): Likewise.
36635 (struct polymorphic_call_target_d): Add nonconstruction_targets;
36636 rename FINAL to COMPLETE.
36637 (record_targets_from_bases): Sanity check we found the binfo;
36638 fix COMPLETEP updating.
36639 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
36640 parameter, fix computing of COMPLETEP.
36641 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
36642 at LTO time do demangling.
36643 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
36644 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
36645 parameter.
36646 (gimple_get_virt_method_for_binfo): Likewise.
36647 * gimple-fold.h (gimple_get_virt_method_for_binfo,
36648 gimple_get_virt_method_for_vtable): Update prototypes.
36649
36650 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
36651
36652 PR target/49008
36653 * genautomata.c (add_presence_absence): Fix typo with
36654 {final_}presence_list.
36655
36656 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
36657
36658 PR target/60137
36659 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
36660 for VSX/Altivec vectors that land in GPR registers.
36661
36662 2014-02-11 Richard Henderson <rth@redhat.com>
36663 Jakub Jelinek <jakub@redhat.com>
36664
36665 PR debug/59776
36666 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
36667 around drhs if type conversion to lacc->type is not useless.
36668
36669 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36670
36671 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
36672 tuning struct.
36673 (cortex-a57.cortex-a53): Likewise.
36674 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
36675
36676 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36677
36678 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
36679 arm_restrict_it.
36680
36681 2014-02-11 Renlin Li <Renlin.Li@arm.com>
36682
36683 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
36684 add_options_for_arm_vfp3.
36685
36686 2014-02-11 Jeff Law <law@redhat.com>
36687
36688 PR middle-end/54041
36689 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
36690 object with an undesirable mode.
36691
36692 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36693
36694 PR libgomp/60107
36695 * config/i386/sol2-9.h: New file.
36696 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
36697 *-*-solaris2.9*): Use it.
36698
36699 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
36700
36701 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
36702 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
36703
36704 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
36705
36706 * config/microblaze/microblaze.c: Extend mcpu version format
36707
36708 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
36709
36710 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
36711
36712 2014-02-10 Richard Henderson <rth@redhat.com>
36713
36714 PR target/59927
36715 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
36716 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
36717 ms-abi vs -mno-accumulate-outgoing-args.
36718 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
36719 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
36720 respect to ms-abi.
36721
36722 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
36723
36724 PR middle-end/60080
36725 * cfgexpand.c (expand_asm_operands): Attach source location to
36726 ASM_INPUT rtx objects.
36727 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
36728
36729 2014-02-10 Nick Clifton <nickc@redhat.com>
36730
36731 * config/mn10300/mn10300.c (popcount): New function.
36732 (mn10300_expand_prologue): Include saved registers in stack usage
36733 count.
36734
36735 2014-02-10 Jeff Law <law@redhat.com>
36736
36737 PR middle-end/52306
36738 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
36739 when changing the SET_DEST of a prior insn to avoid an input reload.
36740
36741 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
36742
36743 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
36744 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
36745 -mcall-openbsd, or -mcall-linux.
36746 (CC1_ENDIAN_BIG_SPEC): Remove.
36747 (CC1_ENDIAN_LITTLE_SPEC): Remove.
36748 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
36749 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
36750 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
36751 and %cc1_endian_default.
36752 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
36753
36754 2014-02-10 Richard Biener <rguenther@suse.de>
36755
36756 PR tree-optimization/60115
36757 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
36758 MEM_REF handling. Properly verify that the accesses are not
36759 out of the objects bound.
36760
36761 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36762
36763 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
36764 coretex to cortex.
36765
36766 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
36767
36768 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
36769 proper constants and fix formatting.
36770 (possible_polymorphic_call_targets): Fix formatting.
36771
36772 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
36773 Ilya Tocar <ilya.tocar@intel.com>
36774
36775 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
36776 (_mm512_loadu_epi32): Renamed into...
36777 (_mm512_loadu_si512): This.
36778 (_mm512_storeu_epi32): Renamed into...
36779 (_mm512_storeu_si512): This.
36780 (_mm512_maskz_ceil_ps): Removed.
36781 (_mm512_maskz_ceil_pd): Ditto.
36782 (_mm512_maskz_floor_ps): Ditto.
36783 (_mm512_maskz_floor_pd): Ditto.
36784 (_mm512_floor_round_ps): Ditto.
36785 (_mm512_floor_round_pd): Ditto.
36786 (_mm512_ceil_round_ps): Ditto.
36787 (_mm512_ceil_round_pd): Ditto.
36788 (_mm512_mask_floor_round_ps): Ditto.
36789 (_mm512_mask_floor_round_pd): Ditto.
36790 (_mm512_mask_ceil_round_ps): Ditto.
36791 (_mm512_mask_ceil_round_pd): Ditto.
36792 (_mm512_maskz_floor_round_ps): Ditto.
36793 (_mm512_maskz_floor_round_pd): Ditto.
36794 (_mm512_maskz_ceil_round_ps): Ditto.
36795 (_mm512_maskz_ceil_round_pd): Ditto.
36796 (_mm512_expand_pd): Ditto.
36797 (_mm512_expand_ps): Ditto.
36798 * config/i386/i386.c (ix86_builtins): Remove
36799 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
36800 (bdesc_args): Ditto.
36801 * config/i386/predicates.md (const1256_operand): New.
36802 (const_1_to_2_operand): Ditto.
36803 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
36804 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
36805 (*avx512pf_gatherpf<mode>sf): Ditto.
36806 (avx512pf_gatherpf<mode>df): Ditto.
36807 (*avx512pf_gatherpf<mode>df_mask): Ditto.
36808 (*avx512pf_gatherpf<mode>df): Ditto.
36809 (avx512pf_scatterpf<mode>sf): Ditto.
36810 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
36811 (*avx512pf_scatterpf<mode>sf): Ditto.
36812 (avx512pf_scatterpf<mode>df): Ditto.
36813 (*avx512pf_scatterpf<mode>df_mask): Ditto.
36814 (*avx512pf_scatterpf<mode>df): Ditto.
36815 (avx512f_expand<mode>): Removed.
36816 (<shift_insn><mode>3<mask_name>): Change predicate type.
36817
36818 2014-02-08 Jakub Jelinek <jakub@redhat.com>
36819
36820 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
36821 not at the end of datarefs vector use ordered_remove to avoid
36822 reordering datarefs vector.
36823
36824 PR c/59984
36825 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
36826 mark local addressable non-static vars as GOVD_PRIVATE
36827 instead of GOVD_LOCAL.
36828 * omp-low.c (lower_omp_for): Move gimple_bind_vars
36829 and BLOCK_VARS of gimple_bind_block to new_stmt rather
36830 than copying them.
36831
36832 PR middle-end/60092
36833 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
36834 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
36835 assume_aligned or alloc_align attributes.
36836 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
36837 arguments. Handle also assume_aligned and alloc_align attributes.
36838 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
36839 calls to functions with assume_aligned or alloc_align attributes.
36840 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
36841
36842 2014-02-08 Terry Guo <terry.guo@arm.com>
36843
36844 * doc/invoke.texi: Document ARM -march=armv7e-m.
36845
36846 2014-02-08 Jakub Jelinek <jakub@redhat.com>
36847
36848 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
36849 flag on __cilkrts_rethrow builtin.
36850
36851 PR ipa/60026
36852 * ipa-cp.c (determine_versionability): Fail at -O0
36853 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
36854 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
36855
36856 Revert:
36857 2014-02-04 Jakub Jelinek <jakub@redhat.com>
36858
36859 PR ipa/60026
36860 * tree-inline.c (copy_forbidden): Fail for
36861 __attribute__((optimize (0))) functions.
36862
36863 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
36864
36865 * varpool.c: Include pointer-set.h.
36866 (varpool_remove_unreferenced_decls): Variables in other partitions
36867 will not be output; be however careful to not lose information
36868 about partitioning.
36869
36870 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
36871
36872 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
36873 lookup in the vtable constructor.
36874
36875 2014-02-07 Jeff Law <law@redhat.com>
36876
36877 PR target/40977
36878 * config/m68k/m68k.md (ashldi_extsi): Turn into a
36879 define_insn_and_split.
36880
36881 * ipa-inline.c (inline_small_functions): Fix typos.
36882
36883 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
36884
36885 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
36886 (s390_can_use_return_insn): Declare.
36887 * config/s390/s390.h (EPILOGUE_USES): Define.
36888 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
36889 instructions.
36890 (s390_chunkify_start): Handle return JUMP_LABELs.
36891 (s390_early_mach): Emit a main_pool instruction on the entry edge.
36892 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
36893 (s390_can_use_return_insn): New functions.
36894 (s390_fix_long_loop_prediction): Handle conditional returns.
36895 (TARGET_SET_UP_BY_PROLOGUE): Define.
36896 * config/s390/s390.md (ANY_RETURN): New code iterator.
36897 (*creturn, *csimple_return, return, simple_return): New patterns.
36898
36899 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
36900
36901 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
36902 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
36903 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
36904 REG_CFA_RESTORE list when deciding not to restore a register.
36905
36906 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
36907
36908 * config/s390/s390.c: Include tree-pass.h and context.h.
36909 (s390_early_mach): New function, split out from...
36910 (s390_emit_prologue): ...here.
36911 (pass_data_s390_early_mach): New pass structure.
36912 (pass_s390_early_mach): New class.
36913 (s390_option_override): Create and register early_mach pass.
36914 Move to end of file.
36915
36916 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
36917
36918 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
36919 to match for the exit block.
36920
36921 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36922
36923 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
36924 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
36925 Reject misaligned operands.
36926
36927 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36928
36929 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
36930
36931 2014-02-07 Richard Biener <rguenther@suse.de>
36932
36933 PR middle-end/60092
36934 * gimple-low.c (lower_builtin_posix_memalign): New function.
36935 (lower_stmt): Call it to lower posix_memalign in a way
36936 to make alignment info accessible.
36937
36938 2014-02-07 Jakub Jelinek <jakub@redhat.com>
36939
36940 PR c++/60082
36941 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
36942 __builtin_setjmp_receiver.
36943
36944 2014-02-07 Richard Biener <rguenther@suse.de>
36945
36946 PR middle-end/60092
36947 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
36948 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
36949 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36950 Handle BUILT_IN_POSIX_MEMALIGN.
36951 (find_func_clobbers): Likewise.
36952 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
36953 (call_may_clobber_ref_p_1): Likewise.
36954
36955 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
36956
36957 PR ipa/59918
36958 * ipa-devirt.c (record_target_from_binfo): Remove overactive
36959 sanity check.
36960
36961 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
36962
36963 PR ipa/59469
36964 * lto-cgraph.c (lto_output_node): Use
36965 symtab_get_symbol_partitioning_class.
36966 (lto_output_varpool_node): likewise.
36967 (symtab_get_symbol_partitioning_class): Move here from
36968 lto/lto-partition.c
36969 * cgraph.h (symbol_partitioning_class): Likewise.
36970 (symtab_get_symbol_partitioning_class): Declare.
36971
36972 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
36973
36974 * ggc.h (ggc_internal_cleared_alloc): New macro.
36975 * vec.h (vec_safe_copy): Handle memory stats.
36976 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
36977 * target-globals.c (save_target_globals): Likewise.
36978
36979 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
36980
36981 PR target/60077
36982 * expr.c (emit_move_resolve_push): Export; be bit more selective
36983 on when to clear alias set.
36984 * expr.h (emit_move_resolve_push): Declare.
36985 * function.h (struct function): Add tail_call_marked.
36986 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
36987 * config/i386/i386-protos.h (ix86_expand_push): Remove.
36988 * config/i386/i386.md (TImode move expander): De not call
36989 ix86_expand_push.
36990 (FP push expanders): Preserve memory attributes.
36991 * config/i386/sse.md (push<mode>1): Remove.
36992 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
36993 (ix86_expand_push): Remove.
36994 * config/i386/mmx.md (push<mode>1): Remove.
36995
36996 2014-02-06 Jakub Jelinek <jakub@redhat.com>
36997
36998 PR rtl-optimization/60030
36999 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
37000 lopart with paradoxical subreg before shifting it up by hprec.
37001
37002 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37003
37004 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
37005 Remove extra newline at end of file.
37006 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
37007 (arm_issue_rate): Handle cortexa57.
37008 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
37009 (cortex-a57.cortex-a53): Likewise.
37010
37011 2014-02-06 Jakub Jelinek <jakub@redhat.com>
37012
37013 PR target/59575
37014 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
37015 don't record in REG_FRAME_RELATED_EXPR registers not set in that
37016 bitmask.
37017 (arm_expand_prologue): Adjust all callers.
37018 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
37019 info, registers also at the lowest numbered registers side. Use
37020 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
37021 XEXP.
37022
37023 PR debug/59992
37024 * var-tracking.c (adjust_mems): Before adding a SET to
37025 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
37026
37027 2014-02-06 Alan Modra <amodra@gmail.com>
37028
37029 PR target/60032
37030 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
37031 change SDmode to DDmode when lra_in_progress.
37032
37033 2014-02-06 Jakub Jelinek <jakub@redhat.com>
37034
37035 PR middle-end/59150
37036 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
37037 free_data_ref on the dr first, and before goto again also set dr
37038 to the next dr. For simd_lane_access, free old datarefs[i] before
37039 overwriting it. For get_vectype_for_scalar_type failure, don't
37040 free_data_ref if simd_lane_access.
37041
37042 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
37043
37044 PR target/60062
37045 * tree.h (opts_for_fn): New inline function.
37046 (opt_for_fn): Define.
37047 * config/i386/i386.c (ix86_function_regparm): Use
37048 opt_for_fn (decl, optimize) instead of optimize.
37049
37050 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
37051
37052 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
37053 for SYMBOL_REF in large memory model.
37054
37055 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37056
37057 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
37058 and crypto support.
37059 (cortex-a57): Likewise.
37060 (cortex-a57.cortex-a53): Likewise.
37061
37062 2014-02-06 Yury Gribov <y.gribov@samsung.com>
37063 Kugan Vivekanandarajah <kuganv@linaro.org>
37064
37065 * config/arm/arm.c (arm_vector_alignment_reachable): Check
37066 unaligned_access.
37067 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
37068
37069 2014-02-06 Richard Biener <rguenther@suse.de>
37070
37071 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
37072 set_loop_copy and initialize_original_copy_tables.
37073
37074 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
37075
37076 * config/aarch64/aarch64-simd.md
37077 (aarch64_ashr_simddi): Change QI to SI.
37078
37079 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
37080 Jakub Jelinek <jakub@redhat.com>
37081
37082 PR middle-end/60013
37083 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
37084 of the dataflow.
37085
37086 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37087
37088 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
37089 CODE_FOR_altivec_vpku[hw]um to
37090 CODE_FOR_altivec_vpku[hw]um_direct.
37091 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
37092 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
37093 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
37094 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
37095
37096 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37097
37098 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
37099 generation for -maltivec=be.
37100 (altivec_vsumsws): Simplify redundant test.
37101
37102 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37103
37104 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
37105 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
37106 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
37107 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
37108 gen_altivec_vpkuwum.
37109 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
37110 BYTES_BIG_ENDIAN.
37111 (altivec_vpks<VI_char>ss): Likewise.
37112 (altivec_vpks<VI_char>us): Likewise.
37113 (altivec_vpku<VI_char>us): Likewise.
37114 (altivec_vpku<VI_char>um): Likewise.
37115 (altivec_vpku<VI_char>um_direct): New (copy of
37116 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
37117 internal use).
37118 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
37119 target is little endian and -maltivec=be is not specified.
37120 (*altivec_vupkhs<VU_char>_direct): New (copy of
37121 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
37122 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
37123 target is little endian and -maltivec=be is not specified.
37124 (*altivec_vupkls<VU_char>_direct): New (copy of
37125 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
37126 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
37127 little endian and -maltivec=be is not specified.
37128 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
37129 little endian and -maltivec=be is not specified.
37130
37131 2014-02-05 Richard Henderson <rth@redhat.com>
37132
37133 PR debug/52727
37134 * combine-stack-adj.c: Revert r206943.
37135 * sched-int.h (struct deps_desc): Add last_args_size.
37136 * sched-deps.c (init_deps): Initialize it.
37137 (sched_analyze_insn): Add OUTPUT dependencies between insns that
37138 contain REG_ARGS_SIZE notes.
37139
37140 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
37141
37142 * lto-cgraph.c (asm_nodes_output): Make global.
37143 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
37144 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
37145 (driver_handle_option): Handle OPT_fwpa.
37146
37147 2014-02-05 Jakub Jelinek <jakub@redhat.com>
37148
37149 PR ipa/59947
37150 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
37151 a comment typo and formatting issue. If odr_hash hasn't been
37152 created, return vNULL and set *completep to false.
37153
37154 PR middle-end/57499
37155 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
37156 bb with no successors.
37157
37158 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
37159
37160 PR target/59718
37161 * doc/invoke.texi (-march): Clarify documentation for ARM.
37162 (-mtune): Likewise.
37163 (-mcpu): Likewise.
37164
37165 2014-02-05 Richard Biener <rguenther@suse.de>
37166
37167 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
37168 when not vectorizing because of too many alias checks.
37169 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
37170 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
37171
37172 2014-02-05 Nick Clifton <nickc@redhat.com>
37173
37174 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
37175 accept extended registers in any mode when compiling for the MN10300.
37176
37177 2014-02-05 Yury Gribov <y.gribov@samsung.com>
37178
37179 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
37180 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
37181 sanitization attributes.
37182 (can_inline_edge_p): Likewise.
37183 (sanitize_attrs_match_for_inline_p): New function.
37184
37185 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
37186
37187 * ipa-prop.c (detect_type_change): Shor circuit testing of
37188 type changes on THIS pointer.
37189
37190 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
37191
37192 PR target/59777
37193 * config/pa/pa.c (legitimize_tls_address): Return original address
37194 if not passed a SYMBOL_REF rtx.
37195 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
37196 addresses.
37197 (pa_emit_move_sequence): Simplify TLS source operands.
37198 (pa_legitimate_constant_p): Reject all TLS constants.
37199 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
37200 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
37201
37202 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
37203
37204 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
37205 groups when we know they are controlled by LTO.
37206 * varasm.c (default_binds_local_p_1): If object is in other partition,
37207 it will be resolved locally.
37208
37209 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
37210
37211 * config/host-linux.c (linux_gt_pch_use_address): Don't
37212 use SSIZE_MAX because it is not always defined.
37213
37214 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
37215
37216 PR bootstrap/59913
37217 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
37218 threshold for pseudo splitting.
37219 (update_ebb_live_info): Process call argument hard registers and
37220 hard registers from insn definition too.
37221 (max_small_class_regs_num): New constant.
37222 (inherit_in_ebb): Update live hard regs through EBBs. Update
37223 reloads_num only for small register classes. Don't split for
37224 outputs of jumps.
37225
37226 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
37227
37228 PR ipa/60058
37229 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
37230 is non-null.
37231
37232 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
37233
37234 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
37235 visibility is safe.
37236
37237 2014-02-04 Marek Polacek <polacek@redhat.com>
37238
37239 * gdbinit.in (pel): Define.
37240
37241 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
37242
37243 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
37244 behavior.
37245
37246 2014-02-04 Richard Biener <rguenther@suse.de>
37247
37248 PR lto/59723
37249 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
37250 in function context local.
37251 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
37252 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
37253 similar to LTO_imported_decl_ref.
37254
37255 2014-02-04 Jakub Jelinek <jakub@redhat.com>
37256
37257 PR tree-optimization/60002
37258 * cgraphclones.c (build_function_decl_skip_args): Clear
37259 DECL_LANG_SPECIFIC.
37260
37261 PR tree-optimization/60023
37262 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
37263 false to gsi_replace.
37264 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
37265 has been in some EH region and vec_stmt could throw, add
37266 vec_stmt into the same EH region.
37267 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
37268 has no lhs, ignore it.
37269 * internal-fn.c (expand_MASK_LOAD): Likewise.
37270
37271 PR ipa/60026
37272 * tree-inline.c (copy_forbidden): Fail for
37273 __attribute__((optimize (0))) functions.
37274
37275 PR other/58712
37276 * omp-low.c (simd_clone_struct_copy): If from->inbranch
37277 is set, copy one less argument.
37278 (expand_simd_clones): Don't subtract clone_info->inbranch
37279 from simd_clone_struct_alloc argument.
37280
37281 PR rtl-optimization/57915
37282 * recog.c (simplify_while_replacing): If all unary/binary/relational
37283 operation arguments are constant, attempt to simplify those.
37284
37285 PR middle-end/59261
37286 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
37287 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
37288
37289 2014-02-04 Richard Biener <rguenther@suse.de>
37290
37291 PR tree-optimization/60012
37292 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
37293 TBAA disambiguation to all DDRs.
37294
37295 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37296
37297 PR target/59788
37298 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
37299 (LINK_SPEC): Use it for -shared, -shared-libgcc.
37300
37301 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
37302
37303 PR ipa/59882
37304 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
37305
37306 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
37307
37308 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
37309 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
37310
37311 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
37312
37313 PR ipa/59831
37314 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
37315 to figure out targets of polymorphic calls with known decl.
37316 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
37317 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
37318 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
37319 (get_polymorphic_call_info): ... here.
37320 (get_polymorphic_call_info_from_invariant): New function.
37321
37322 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
37323
37324 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
37325 lookup via vtable pointer; check for type consistency
37326 and turn inconsitent facts into UNREACHABLE.
37327 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
37328 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
37329 type inconsistent querries; return UNREACHABLE instead.
37330
37331 2014-02-03 Richard Henderson <rth@twiddle.net>
37332
37333 PR tree-opt/59924
37334 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
37335 already processed this node.
37336 (normalize_one_pred_1): Pass along mark_set.
37337 (normalize_one_pred): Create and destroy a pointer_set_t.
37338 (normalize_one_pred_chain): Likewise.
37339
37340 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
37341
37342 PR gcov-profile/58602
37343 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
37344
37345 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
37346
37347 PR ipa/59831
37348 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
37349 -fno-devirtualize; try to devirtualize by the knowledge of
37350 virtual table pointer given by aggregate propagation.
37351 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
37352 (ipa_print_node_jump_functions): Dump also offset that
37353 is relevant for polymorphic calls.
37354 (determine_known_aggregate_parts): Add arg_type parameter; use it
37355 instead of determining the type from pointer type.
37356 (ipa_compute_jump_functions_for_edge): Update call of
37357 determine_known_aggregate_parts.
37358 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
37359 (gimple_get_virt_method_for_binfo): ... here; simplify using
37360 vtable_pointer_value_to_vtable.
37361 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
37362 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
37363 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
37364 (vtable_pointer_value_to_vtable): Break out from ...; handle also
37365 POINTER_PLUS_EXPR.
37366 (vtable_pointer_value_to_binfo): ... here.
37367 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
37368
37369 2014-02-03 Teresa Johnson <tejohnson@google.com>
37370
37371 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
37372 redef of outer loop index variable.
37373
37374 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
37375
37376 PR c++/53017
37377 PR c++/59211
37378 * doc/extend.texi (Function Attributes): Typo.
37379
37380 2014-02-03 Cong Hou <congh@google.com>
37381
37382 PR tree-optimization/60000
37383 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
37384 if the vectorized statement is a store. A store statement can only
37385 appear at the end of pattern statements.
37386
37387 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
37388
37389 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
37390 (ix86_option_override_internal): Default long double to 64-bit for
37391 32-bit Bionic and to 128-bit for 64-bit Bionic.
37392
37393 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
37394 TARGET_LONG_DOUBLE_128 is true.
37395 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
37396
37397 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
37398 (mlong-double-64): Negate -mlong-double-128.
37399 (mlong-double-128): New option.
37400
37401 * config/i386/i386-c.c (ix86_target_macros): Define
37402 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
37403
37404 * doc/invoke.texi: Document -mlong-double-128.
37405
37406 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
37407
37408 PR rtl-optimization/60024
37409 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
37410
37411 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
37412
37413 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
37414
37415 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
37416
37417 PR rtl-optimization/57662
37418 * sel-sched.c (code_motion_path_driver): Do not mark already not
37419 existing blocks in the visiting bitmap.
37420
37421 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
37422
37423 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
37424 on the insn being emitted.
37425
37426 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
37427 Will Deacon <will.deacon@arm.com>
37428
37429 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
37430
37431 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37432
37433 * config/arm/arm-tables.opt: Regenerate.
37434
37435 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37436
37437 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
37438 for vector types other than V16QImode.
37439 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
37440 define_expand, and call altivec_expand_vec_perm_le when producing
37441 code with little endian element order.
37442 (*altivec_vperm_<mode>_internal): New insn having previous
37443 behavior of altivec_vperm_<mode>.
37444 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
37445 altivec_expand_vec_perm_le when producing code with little endian
37446 element order.
37447 (*altivec_vperm_<mode>_uns_internal): New insn having previous
37448 behavior of altivec_vperm_<mode>_uns.
37449
37450 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37451
37452 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
37453 (altivec_vsumsws): Add handling for -maltivec=be with a little
37454 endian target.
37455 (altivec_vsumsws_direct): New.
37456 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
37457 gen_altivec_vsumsws.
37458
37459 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
37460
37461 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
37462 vtable_pointer_value_to_binfo): New functions.
37463 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
37464 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
37465
37466 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
37467
37468 * config/nios2/nios2.md (load_got_register): Initialize GOT
37469 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
37470 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
37471
37472 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
37473
37474 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
37475 preserverd by passthrough, do not propagate the type.
37476
37477 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
37478
37479 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
37480 (mips_atomic_assign_expand_fenv): New function.
37481 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
37482
37483 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
37484
37485 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
37486 (__builtin_mips_set_fcsr): Likewise.
37487 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
37488 MIPS_USI_FTYPE_VOID.
37489 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
37490 (mips16_expand_set_fcsr): Likewise.
37491 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
37492 (mips16_set_fcsr_stub): Likewise.
37493 (mips16_get_fcsr_one_only_stub): New class.
37494 (mips16_set_fcsr_one_only_stub): Likewise.
37495 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
37496 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
37497 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
37498 (hard_float): New availability predicate.
37499 (mips_builtins): Add get_fcsr and set_fcsr.
37500 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
37501 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
37502 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
37503 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
37504 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
37505 patterns.
37506
37507 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
37508
37509 * config/mips/mips.c (mips_one_only_stub): New class.
37510 (mips_need_mips16_rdhwr_p): Replace with...
37511 (mips16_rdhwr_stub): ...this new variable.
37512 (mips16_stub_call_address): New function.
37513 (mips16_rdhwr_one_only_stub): New class.
37514 (mips_expand_thread_pointer): Use mips16_stub_call_address.
37515 (mips_output_mips16_rdhwr): Delete.
37516 (mips_finish_stub): New function.
37517 (mips_code_end): Use it to handle rdhwr stubs.
37518
37519 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
37520
37521 PR target/60017
37522 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
37523 when calculating size of integer atomic types.
37524
37525 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
37526
37527 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
37528
37529 2014-02-01 Jakub Jelinek <jakub@redhat.com>
37530
37531 PR tree-optimization/60003
37532 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
37533 * profile.c (branch_prob): Use gimple_call_builtin_p
37534 to check for BUILT_IN_SETJMP_RECEIVER.
37535 * tree-inline.c (copy_bb): Call notice_special_calls.
37536
37537 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
37538
37539 PR bootstrap/59985
37540 * lra-constraints.c (process_alt_operands): Update reload_sum only
37541 on the first pass.
37542
37543 2014-01-31 Richard Henderson <rth@redhat.com>
37544
37545 PR middle-end/60004
37546 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
37547 until after else_eh is processed.
37548
37549 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
37550
37551 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
37552 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
37553 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
37554 in smmintrin.h, remove them.
37555 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
37556 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
37557 * config/i386/i386.md (ROUND_SAE): Fix value.
37558 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
37559 (const48_operand): New.
37560 * config/i386/subst.md (round), (round_expand): Use
37561 const_4_or_8_to_11_operand.
37562 (round_saeonly), (round_saeonly_expand): Use const48_operand.
37563
37564 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
37565
37566 * config/i386/constraints.md (Yk): Swap meaning with k.
37567 * config/i386/i386.md (movhi_internal): Change Yk to k.
37568 (movqi_internal): Ditto.
37569 (*k<logic><mode>): Ditto.
37570 (*andhi_1): Ditto.
37571 (*andqi_1): Ditto.
37572 (kandn<mode>): Ditto.
37573 (*<code>hi_1): Ditto.
37574 (*<code>qi_1): Ditto.
37575 (kxnor<mode>): Ditto.
37576 (kortestzhi): Ditto.
37577 (kortestchi): Ditto.
37578 (kunpckhi): Ditto.
37579 (*one_cmplhi2_1): Ditto.
37580 (*one_cmplqi2_1): Ditto.
37581 * config/i386/sse.md (): Change k to Yk.
37582 (avx512f_load<mode>_mask): Ditto.
37583 (avx512f_blendm<mode>): Ditto.
37584 (avx512f_store<mode>_mask): Ditto.
37585 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
37586 (avx512f_storedqu<mode>_mask): Ditto.
37587 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
37588 Ditto.
37589 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
37590 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
37591 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
37592 (avx512f_maskcmp<mode>3): Ditto.
37593 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
37594 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
37595 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
37596 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
37597 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
37598 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
37599 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
37600 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
37601 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
37602 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
37603 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
37604 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
37605 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
37606 (vec_extract_lo_<mode>_maskm): Ditto.
37607 (vec_extract_hi_<mode>_maskm): Ditto.
37608 (avx512f_vternlog<mode>_mask): Ditto.
37609 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
37610 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
37611 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
37612 (avx512f_<code>v8div16qi2_mask): Ditto.
37613 (avx512f_<code>v8div16qi2_mask_store): Ditto.
37614 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
37615 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
37616 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
37617 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
37618 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
37619 (*avx512pf_gatherpf<mode>df_mask): Ditto.
37620 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
37621 (*avx512pf_scatterpf<mode>df_mask): Ditto.
37622 (avx512cd_maskb_vec_dupv8di): Ditto.
37623 (avx512cd_maskw_vec_dupv16si): Ditto.
37624 (avx512f_vpermi2var<mode>3_maskz): Ditto.
37625 (avx512f_vpermi2var<mode>3_mask): Ditto.
37626 (avx512f_vpermi2var<mode>3_mask): Ditto.
37627 (avx512f_vpermt2var<mode>3_maskz): Ditto.
37628 (*avx512f_gathersi<mode>): Ditto.
37629 (*avx512f_gathersi<mode>_2): Ditto.
37630 (*avx512f_gatherdi<mode>): Ditto.
37631 (*avx512f_gatherdi<mode>_2): Ditto.
37632 (*avx512f_scattersi<mode>): Ditto.
37633 (*avx512f_scatterdi<mode>): Ditto.
37634 (avx512f_compress<mode>_mask): Ditto.
37635 (avx512f_compressstore<mode>_mask): Ditto.
37636 (avx512f_expand<mode>_mask): Ditto.
37637 * config/i386/subst.md (mask): Change k to Yk.
37638 (mask_scalar_merge): Ditto.
37639 (sd): Ditto.
37640
37641 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
37642
37643 * doc/extend.texi (Vector Extensions): Document ?: in C++.
37644
37645 2014-01-31 Richard Biener <rguenther@suse.de>
37646
37647 PR middle-end/59990
37648 * builtins.c (fold_builtin_memory_op): Make sure to not
37649 use a floating-point mode or a boolean or enumeral type for
37650 the copy operation.
37651
37652 2014-01-30 DJ Delorie <dj@redhat.com>
37653
37654 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
37655 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
37656 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
37657 whenever main() has an epilogue.
37658
37659 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37660
37661 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
37662 unused variable "field".
37663 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
37664 (vsx_mergeh_<mode>): Likewise.
37665 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
37666 (altivec_vmrghh): Likewise.
37667 (altivec_vmrghw): Likewise.
37668 (altivec_vmrglb): Likewise.
37669 (altivec_vmrglh): Likewise.
37670 (altivec_vmrglw): Likewise.
37671 (altivec_vspltb): Add missing uses.
37672 (altivec_vsplth): Likewise.
37673 (altivec_vspltw): Likewise.
37674 (altivec_vspltsf): Likewise.
37675
37676 2014-01-30 Jakub Jelinek <jakub@redhat.com>
37677
37678 PR target/59923
37679 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
37680 frame related instructions.
37681
37682 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
37683
37684 PR rtl-optimization/59959
37685 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
37686 any reload of register whose subreg is invalid.
37687
37688 2014-01-30 Jakub Jelinek <jakub@redhat.com>
37689
37690 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
37691 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
37692 Add missing return type - void.
37693
37694 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37695
37696 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
37697 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
37698 remove element index adjustment for endian (now handled in vsx.md
37699 and altivec.md).
37700 (altivec_expand_vec_perm_const): Use
37701 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
37702 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
37703 (vsx_xxspltw_<mode>): Adjust element index for little endian.
37704 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
37705 define_expand and a new define_insn *altivec_vspltb_internal;
37706 adjust for -maltivec=be on a little endian target.
37707 (altivec_vspltb_direct): New.
37708 (altivec_vsplth): Divide into a define_expand and a new
37709 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
37710 little endian target.
37711 (altivec_vsplth_direct): New.
37712 (altivec_vspltw): Divide into a define_expand and a new
37713 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
37714 little endian target.
37715 (altivec_vspltw_direct): New.
37716 (altivec_vspltsf): Divide into a define_expand and a new
37717 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
37718 a little endian target.
37719
37720 2014-01-30 Richard Biener <rguenther@suse.de>
37721
37722 PR tree-optimization/59993
37723 * tree-ssa-forwprop.c (associate_pointerplus): Check we
37724 can propagate form the earlier stmt and avoid the transform
37725 when the intermediate result is needed.
37726
37727 2014-01-30 Alangi Derick <alangiderick@gmail.com>
37728
37729 * README.Portability: Fix typo.
37730
37731 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
37732
37733 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
37734 comparison_operator with ordered_comparison_operator.
37735
37736 2014-01-30 Nick Clifton <nickc@redhat.com>
37737
37738 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
37739 Rename to mn10300_store_multiple_regs.
37740 * config/mn10300/mn10300.c: Likewise.
37741 * config/mn10300/mn10300.md (store_movm): Fix typo: call
37742 store_multiple_regs.
37743 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
37744 Call mn10300_store_multiple_regs.
37745
37746 2014-01-30 Nick Clifton <nickc@redhat.com>
37747 DJ Delorie <dj@redhat.com>
37748
37749 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
37750 %fp 2 to keep registers after it properly word-aligned.
37751 (rl78_alloc_physical_registers_umul): Handle the case where both
37752 input operands are the same.
37753
37754 2014-01-30 Richard Biener <rguenther@suse.de>
37755
37756 PR tree-optimization/59903
37757 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
37758 check properly.
37759
37760 2014-01-30 Jason Merrill <jason@redhat.com>
37761
37762 PR c++/59633
37763 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
37764
37765 PR c++/59645
37766 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
37767
37768 2014-01-30 Richard Biener <rguenther@suse.de>
37769
37770 PR tree-optimization/59951
37771 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
37772
37773 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
37774
37775 PR target/59784
37776 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
37777 SFmode to DFmode case.
37778
37779 2014-01-29 DJ Delorie <dj@redhat.com>
37780
37781 * config/msp430/msp430.opt (-minrt): New.
37782 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
37783 if -minrt given.
37784 (ENDFILE_SPEC): Likewise.
37785
37786 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
37787
37788 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
37789 (estimate_function_body_sizes): Use it.
37790
37791 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
37792
37793 PR c++/58561
37794 * dwarf2out.c (is_cxx_auto): New.
37795 (is_base_type): Use it.
37796 (gen_type_die_with_usage): Likewise.
37797
37798 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37799
37800 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
37801 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
37802 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
37803 -maltivec=be with LE targets.
37804 (vsx_mergeh_<mode>): Likewise.
37805 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
37806 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
37807 (altivec_vmrghb): Replace with define_expand and new
37808 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
37809 (altivec_vmrghb_direct): New define_insn.
37810 (altivec_vmrghh): Replace with define_expand and new
37811 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
37812 (altivec_vmrghh_direct): New define_insn.
37813 (altivec_vmrghw): Replace with define_expand and new
37814 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
37815 (altivec_vmrghw_direct): New define_insn.
37816 (*altivec_vmrghsf): Adjust for endianness.
37817 (altivec_vmrglb): Replace with define_expand and new
37818 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
37819 (altivec_vmrglb_direct): New define_insn.
37820 (altivec_vmrglh): Replace with define_expand and new
37821 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
37822 (altivec_vmrglh_direct): New define_insn.
37823 (altivec_vmrglw): Replace with define_expand and new
37824 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
37825 (altivec_vmrglw_direct): New define_insn.
37826 (*altivec_vmrglsf): Adjust for endianness.
37827 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
37828 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
37829 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
37830 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
37831 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
37832 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
37833 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
37834 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
37835
37836 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
37837
37838 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
37839 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
37840 whitespace.
37841
37842 2014-01-29 Richard Biener <rguenther@suse.de>
37843
37844 PR tree-optimization/58742
37845 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
37846 associate_pointerplus_align.
37847 (associate_pointerplus_diff): New function.
37848 (associate_pointerplus): Likewise. Call associate_pointerplus_align
37849 and associate_pointerplus_diff.
37850
37851 2014-01-29 Richard Biener <rguenther@suse.de>
37852
37853 * lto-streamer.h (LTO_major_version): Bump to 3.
37854 (LTO_minor_version): Reset to 0.
37855
37856 2014-01-29 Renlin Li <Renlin.Li@arm.com>
37857
37858 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
37859 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
37860 (arm_file_start): Generate correct asm header for armv7ve.
37861 * config/arm/bpabi.h: Add multilib support for armv7ve.
37862 * config/arm/driver-arm.c: Change the architectures of cortex-a7
37863 and cortex-a15 to armv7ve.
37864 * config/arm/t-aprofile: Add multilib support for armv7ve.
37865 * doc/invoke.texi: Document -march=armv7ve.
37866
37867 2014-01-29 Richard Biener <rguenther@suse.de>
37868
37869 PR tree-optimization/58742
37870 * tree-ssa-forwprop.c (associate_plusminus): Return true
37871 if we changed sth, defer EH cleanup to ...
37872 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
37873 (simplify_mult): New function.
37874
37875 2014-01-29 Jakub Jelinek <jakub@redhat.com>
37876
37877 PR middle-end/59917
37878 PR tree-optimization/59920
37879 * tree.c (build_common_builtin_nodes): Remove
37880 __builtin_setjmp_dispatcher initialization.
37881 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
37882 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
37883 instead of gsi_after_labels + manually skipping debug stmts.
37884 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
37885 ignore bbs with IFN_ABNORMAL_DISPATCHER.
37886 * tree-inline.c (copy_edges_for_bb): Remove
37887 can_make_abnormal_goto argument, instead add abnormal_goto_dest
37888 argument. Ignore computed_goto_p stmts. Don't call
37889 make_abnormal_goto_edges. If a call might need abnormal edges
37890 for non-local gotos, see if it already has an edge to
37891 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
37892 with true argument, don't do anything then, otherwise add
37893 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
37894 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
37895 caller.
37896 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
37897 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
37898 (lower_stmt): Don't set data->calls_builtin_setjmp.
37899 (lower_builtin_setjmp): Adjust comment.
37900 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
37901 * tree-cfg.c (found_computed_goto): Remove.
37902 (factor_computed_gotos): Remove.
37903 (make_goto_expr_edges): Return bool, true for computed gotos.
37904 Don't call make_abnormal_goto_edges.
37905 (build_gimple_cfg): Don't set found_computed_goto, don't call
37906 factor_computed_gotos.
37907 (computed_goto_p): No longer static.
37908 (make_blocks): Don't set found_computed_goto.
37909 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
37910 (make_edges): If make_goto_expr_edges returns true, push bb
37911 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
37912 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
37913 vector. Record mapping between bbs and OpenMP regions if there
37914 are any, adjust make_gimple_omp_edges caller. Call
37915 handle_abnormal_edges.
37916 (make_abnormal_goto_edges): Remove.
37917 * tree-cfg.h (make_abnormal_goto_edges): Remove.
37918 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
37919 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
37920 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
37921 * internal-fn.def (ABNORMAL_DISPATCHER): New.
37922 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
37923 filling *region also set *region_idx to (*region)->entry->index.
37924
37925 PR other/58712
37926 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
37927 For REGs set ORIGINAL_REGNO.
37928
37929 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
37930
37931 * doc/md.texi: Mention that a target shouldn't implement
37932 vec_widen_(s|u)mul_even/odd pair if it is less efficient
37933 than hi/lo pair.
37934
37935 2014-01-29 Jakub Jelinek <jakub@redhat.com>
37936
37937 PR tree-optimization/59594
37938 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
37939 a copy of the datarefs vector rather than the vector itself.
37940
37941 2014-01-28 Jason Merrill <jason@redhat.com>
37942
37943 PR c++/53756
37944 * dwarf2out.c (auto_die): New static.
37945 (gen_type_die_with_usage): Handle C++1y 'auto'.
37946 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
37947 on definition.
37948
37949 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
37950
37951 PR target/59672
37952 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
37953 (SPEC_X32): Likewise.
37954 (SPEC_64): Likewise.
37955 * config/i386/i386.c (ix86_option_override_internal): Turn off
37956 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
37957 for TARGET_16BIT.
37958 (x86_file_start): Output .code16gcc for TARGET_16BIT.
37959 * config/i386/i386.h (TARGET_16BIT): New macro.
37960 (TARGET_16BIT_P): Likewise.
37961 * config/i386/i386.opt: Add m16.
37962 * doc/invoke.texi: Document -m16.
37963
37964 2014-01-28 Jakub Jelinek <jakub@redhat.com>
37965
37966 PR preprocessor/59935
37967 * input.c (location_get_source_line): Bail out on when line number
37968 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
37969
37970 2014-01-28 Richard Biener <rguenther@suse.de>
37971
37972 PR tree-optimization/58742
37973 * tree-ssa-forwprop.c (associate_plusminus): Handle
37974 pointer subtraction of the form (T)(P + A) - (T)P.
37975
37976 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37977
37978 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
37979 at const_int_cost.
37980
37981 2014-01-28 Richard Biener <rguenther@suse.de>
37982
37983 Revert
37984 2014-01-28 Richard Biener <rguenther@suse.de>
37985
37986 PR rtl-optimization/45364
37987 PR rtl-optimization/59890
37988 * var-tracking.c (local_get_addr_clear_given_value): Handle
37989 already cleared slot.
37990 (val_reset): Handle not allocated local_get_addr_cache.
37991 (vt_find_locations): Use post-order on the inverted CFG.
37992
37993 2014-01-28 Richard Biener <rguenther@suse.de>
37994
37995 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
37996
37997 2014-01-28 Richard Biener <rguenther@suse.de>
37998
37999 PR rtl-optimization/45364
38000 PR rtl-optimization/59890
38001 * var-tracking.c (local_get_addr_clear_given_value): Handle
38002 already cleared slot.
38003 (val_reset): Handle not allocated local_get_addr_cache.
38004 (vt_find_locations): Use post-order on the inverted CFG.
38005
38006 2014-01-28 Alan Modra <amodra@gmail.com>
38007
38008 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
38009 * configure.ac <recursive call for build != host>: Define
38010 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
38011 and LD_FOR_BUILD too.
38012 * configure: Regenerate.
38013
38014 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
38015
38016 * config/i386/i386.c (get_builtin_code_for_version): Separate
38017 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
38018 Broadwell from Haswell.
38019
38020 2014-01-27 Steve Ellcey <sellcey@mips.com>
38021
38022 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
38023 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
38024 * config/mips/mips.c (mips_option_override): Change setting
38025 of TARGET_DSP.
38026 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
38027 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
38028 Change from Mask to Var.
38029
38030 2014-01-27 Jeff Law <law@redhat.com>
38031
38032 * ipa-inline.c (inline_small_functions): Fix typo.
38033
38034 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
38035
38036 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
38037 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
38038 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
38039 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
38040 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
38041 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
38042 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
38043 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
38044 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
38045 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
38046 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
38047 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
38048 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
38049 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
38050 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
38051 (_mm512_storeu_epi64): Ditto.
38052 (_mm512_cmpge_epi32_mask): Ditto.
38053 (_mm512_cmpge_epu32_mask): Ditto.
38054 (_mm512_cmpge_epi64_mask): Ditto.
38055 (_mm512_cmpge_epu64_mask): Ditto.
38056 (_mm512_cmple_epi32_mask): Ditto.
38057 (_mm512_cmple_epu32_mask): Ditto.
38058 (_mm512_cmple_epi64_mask): Ditto.
38059 (_mm512_cmple_epu64_mask): Ditto.
38060 (_mm512_cmplt_epi32_mask): Ditto.
38061 (_mm512_cmplt_epu32_mask): Ditto.
38062 (_mm512_cmplt_epi64_mask): Ditto.
38063 (_mm512_cmplt_epu64_mask): Ditto.
38064 (_mm512_cmpneq_epi32_mask): Ditto.
38065 (_mm512_cmpneq_epu32_mask): Ditto.
38066 (_mm512_cmpneq_epi64_mask): Ditto.
38067 (_mm512_cmpneq_epu64_mask): Ditto.
38068 (_mm512_expand_pd): Ditto.
38069 (_mm512_expand_ps): Ditto.
38070 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
38071 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
38072 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
38073 * config/i386/i386.c (ix86_builtins): Add
38074 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
38075 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
38076 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
38077 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
38078 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
38079 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
38080 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
38081 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
38082 IX86_BUILTIN_PMOVUSQW512_MEM.
38083 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
38084 __builtin_ia32_pmovsqd512mem_mask,
38085 __builtin_ia32_pmovqd512mem_mask,
38086 __builtin_ia32_pmovusqw512mem_mask,
38087 __builtin_ia32_pmovsqw512mem_mask,
38088 __builtin_ia32_pmovqw512mem_mask,
38089 __builtin_ia32_pmovusdw512mem_mask,
38090 __builtin_ia32_pmovsdw512mem_mask,
38091 __builtin_ia32_pmovdw512mem_mask,
38092 __builtin_ia32_pmovqb512mem_mask,
38093 __builtin_ia32_pmovusqb512mem_mask,
38094 __builtin_ia32_pmovsqb512mem_mask,
38095 __builtin_ia32_pmovusdb512mem_mask,
38096 __builtin_ia32_pmovsdb512mem_mask,
38097 __builtin_ia32_pmovdb512mem_mask.
38098 (bdesc_args): Add __builtin_ia32_expanddf512,
38099 __builtin_ia32_expandsf512.
38100 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
38101 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
38102 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
38103 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
38104 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
38105 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
38106 (avx512f_<code>v8div16qi2_mask_store): This.
38107 (avx512f_expand<mode>): New.
38108
38109 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
38110
38111 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
38112 New.
38113 (_mm512_mask_prefetch_i64gather_pd): Ditto.
38114 (_mm512_prefetch_i32scatter_pd): Ditto.
38115 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
38116 (_mm512_prefetch_i64scatter_pd): Ditto.
38117 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
38118 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
38119 (_mm512_mask_prefetch_i64gather_ps): Ditto.
38120 (_mm512_prefetch_i32scatter_ps): Ditto.
38121 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
38122 (_mm512_prefetch_i64scatter_ps): Ditto.
38123 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
38124 * config/i386/i386-builtin-types.def: Define
38125 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
38126 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
38127 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
38128 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
38129 IX86_BUILTIN_SCATTERPFQPD.
38130 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
38131 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
38132 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
38133 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
38134 __builtin_ia32_scatterpfqps.
38135 (ix86_expand_builtin): Expand new built-ins.
38136 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
38137 fix memory access data type.
38138 (*avx512pf_gatherpf<mode>_mask): Ditto.
38139 (*avx512pf_gatherpf<mode>): Ditto.
38140 (avx512pf_scatterpf<mode>): Ditto.
38141 (*avx512pf_scatterpf<mode>_mask): Ditto.
38142 (*avx512pf_scatterpf<mode>): Ditto.
38143 (GATHER_SCATTER_SF_MEM_MODE): New.
38144 (avx512pf_gatherpf<mode>df): Ditto.
38145 (*avx512pf_gatherpf<mode>df_mask): Ditto.
38146 (*avx512pf_scatterpf<mode>df): Ditto.
38147
38148 2014-01-27 Jakub Jelinek <jakub@redhat.com>
38149
38150 PR bootstrap/59934
38151 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
38152 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
38153 reached.
38154
38155 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
38156
38157 * common/config/arm/arm-common.c
38158 (arm_rewrite_mcpu): Handle multiple names.
38159 * config/arm/arm.h
38160 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
38161
38162 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
38163
38164 * gimple-builder.h (create_gimple_tmp): Delete.
38165
38166 2014-01-27 Christian Bruel <christian.bruel@st.com>
38167
38168 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
38169 words comparisons.
38170
38171 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
38172
38173 * config/pa/pa.md (call): Generate indirect long calls to non-local
38174 functions when outputing 32-bit code.
38175 (call_value): Likewise except for special call to buggy powf function.
38176
38177 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
38178 portable runtime and PIC indirect calls.
38179 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
38180 and PIC call sequences. Use ldo instead of blr to set return register
38181 in PIC call sequence.
38182
38183 2014-01-25 Walter Lee <walt@tilera.com>
38184
38185 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
38186 avoid clobbering a live register.
38187
38188 2014-01-25 Walter Lee <walt@tilera.com>
38189
38190 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
38191 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
38192 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
38193 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
38194
38195 2014-01-25 Walter Lee <walt@tilera.com>
38196
38197 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
38198 arguments on even registers.
38199 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
38200 STACK_BOUNDARY.
38201 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
38202 (BIGGEST_ALIGNMENT): Ditto.
38203 (BIGGEST_FIELD_ALIGNMENT): Ditto.
38204
38205 2014-01-25 Walter Lee <walt@tilera.com>
38206
38207 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
38208 insns before bundling.
38209 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
38210
38211 2014-01-25 Walter Lee <walt@tilera.com>
38212
38213 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
38214 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
38215 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
38216
38217 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
38218
38219 * config/mips/constraints.md (kl): Delete.
38220 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
38221 define expands, using...
38222 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
38223 instructions for MIPS16.
38224 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
38225 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
38226
38227 2014-01-25 Walter Lee <walt@tilera.com>
38228
38229 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
38230 (clzdi2): Ditto.
38231 (ffsdi2): Ditto.
38232
38233 2014-01-25 Walter Lee <walt@tilera.com>
38234
38235 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
38236 (TARGET_EXPAND_TO_RTL_HOOK): Define.
38237
38238 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
38239
38240 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
38241 Handle XOR.
38242
38243 2014-01-25 Jakub Jelinek <jakub@redhat.com>
38244
38245 * print-rtl.c (in_call_function_usage): New var.
38246 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
38247 EXPR_LIST mode as mode and not as reg note name.
38248
38249 PR middle-end/59561
38250 * cfgloopmanip.c (copy_loop_info): If
38251 loop->warned_aggressive_loop_optimizations, make sure
38252 the flag is set in target loop too.
38253
38254 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
38255
38256 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
38257 flag_cilkplus.
38258 * builtins.def: Likewise.
38259 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
38260 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
38261 * ira.c (ira_setup_eliminable_regset): Likewise.
38262 * omp-low.c (gate_expand_omp): Likewise.
38263 (execute_lower_omp): Likewise.
38264 (diagnose_sb_0): Likewise.
38265 (gate_diagnose_omp_blocks): Likewise.
38266 (simd_clone_clauses_extract): Likewise.
38267 (gate): Likewise.
38268
38269 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
38270
38271 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
38272 correction for little endian...
38273 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
38274 here.
38275
38276 2014-01-24 Jeff Law <law@redhat.com>
38277
38278 PR tree-optimization/59919
38279 * tree-vrp.c (find_assert_locations_1): Do not register asserts
38280 for non-returning calls.
38281
38282 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
38283
38284 * common/config/aarch64/aarch64-common.c
38285 (aarch64_rewrite_mcpu): Handle multiple names.
38286 * config/aarch64/aarch64.h
38287 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
38288
38289 2014-01-24 Dodji Seketeli <dodji@redhat.com>
38290
38291 * input.c (add_file_to_cache_tab): Handle the case where fopen
38292 returns NULL.
38293
38294 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
38295
38296 PR target/59929
38297 * config/i386/i386.md (pushsf splitter): Get stack adjustment
38298 from push operand if code of push isn't PRE_DEC.
38299
38300 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
38301
38302 PR target/59909
38303 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
38304 -mquad-memory-atomic. Update -mquad-memory documentation to say
38305 it is only used for non-atomic loads/stores.
38306
38307 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
38308 -mquad-memory or -mquad-memory-atomic switches.
38309
38310 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
38311 -mquad-memory-atomic to ISA 2.07 support.
38312
38313 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
38314 to separate support of normal quad word memory operations (ldq, stq)
38315 from the atomic quad word memory operations.
38316
38317 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
38318 support to separate non-atomic quad word operations from atomic
38319 quad word operations. Disable non-atomic quad word operations in
38320 little endian mode so that we don't have to swap words after the
38321 load and before the store.
38322 (quad_load_store_p): Add comment about atomic quad word support.
38323 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
38324 options printed with -mdebug=reg.
38325
38326 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
38327 -mquad-memory-atomic as the test for whether we have quad word
38328 atomic instructions.
38329 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
38330 or -mp8-vector are used, allow byte/half-word atomic operations.
38331
38332 * config/rs6000/sync.md (load_lockedti): Insure that the address
38333 is a proper indexed or indirect address for the lqarx instruction.
38334 On little endian systems, swap the hi/lo registers after the lqarx
38335 instruction.
38336 (load_lockedpti): Use indexed_or_indirect_operand predicate to
38337 insure the address is valid for the lqarx instruction.
38338 (store_conditionalti): Insure that the address is a proper indexed
38339 or indirect address for the stqcrx. instruction. On little endian
38340 systems, swap the hi/lo registers before doing the stqcrx.
38341 instruction.
38342 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
38343 insure the address is valid for the stqcrx. instruction.
38344
38345 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
38346 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
38347 type of quad memory support is available.
38348
38349 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
38350
38351 PR regression/59915
38352 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
38353 there is a danger of looping.
38354
38355 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
38356
38357 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
38358 force flag_ira_loop_pressure if set via command line.
38359
38360 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
38361
38362 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
38363 (ashr_simd): New builtin handling DI mode.
38364 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
38365 (aarch64_sshr_simddi): New match pattern.
38366 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
38367 (vshrd_n_s64): Likewise.
38368 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
38369
38370 2014-01-23 Nick Clifton <nickc@redhat.com>
38371
38372 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
38373 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
38374 favour of mcu specific scripts.
38375 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
38376 430x multilibs.
38377
38378 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
38379 Alex Velenko <Alex.Velenko@arm.com>
38380
38381 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
38382 (vaddv_s16): Likewise.
38383 (vaddv_s32): Likewise.
38384 (vaddv_u8): Likewise.
38385 (vaddv_u16): Likewise.
38386 (vaddv_u32): Likewise.
38387 (vaddvq_s8): Likewise.
38388 (vaddvq_s16): Likewise.
38389 (vaddvq_s32): Likewise.
38390 (vaddvq_s64): Likewise.
38391 (vaddvq_u8): Likewise.
38392 (vaddvq_u16): Likewise.
38393 (vaddvq_u32): Likewise.
38394 (vaddvq_u64): Likewise.
38395 (vaddv_f32): Likewise.
38396 (vaddvq_f32): Likewise.
38397 (vaddvq_f64): Likewise.
38398 (vmaxv_f32): Likewise.
38399 (vmaxv_s8): Likewise.
38400 (vmaxv_s16): Likewise.
38401 (vmaxv_s32): Likewise.
38402 (vmaxv_u8): Likewise.
38403 (vmaxv_u16): Likewise.
38404 (vmaxv_u32): Likewise.
38405 (vmaxvq_f32): Likewise.
38406 (vmaxvq_f64): Likewise.
38407 (vmaxvq_s8): Likewise.
38408 (vmaxvq_s16): Likewise.
38409 (vmaxvq_s32): Likewise.
38410 (vmaxvq_u8): Likewise.
38411 (vmaxvq_u16): Likewise.
38412 (vmaxvq_u32): Likewise.
38413 (vmaxnmv_f32): Likewise.
38414 (vmaxnmvq_f32): Likewise.
38415 (vmaxnmvq_f64): Likewise.
38416 (vminv_f32): Likewise.
38417 (vminv_s8): Likewise.
38418 (vminv_s16): Likewise.
38419 (vminv_s32): Likewise.
38420 (vminv_u8): Likewise.
38421 (vminv_u16): Likewise.
38422 (vminv_u32): Likewise.
38423 (vminvq_f32): Likewise.
38424 (vminvq_f64): Likewise.
38425 (vminvq_s8): Likewise.
38426 (vminvq_s16): Likewise.
38427 (vminvq_s32): Likewise.
38428 (vminvq_u8): Likewise.
38429 (vminvq_u16): Likewise.
38430 (vminvq_u32): Likewise.
38431 (vminnmv_f32): Likewise.
38432 (vminnmvq_f32): Likewise.
38433 (vminnmvq_f64): Likewise.
38434
38435 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
38436
38437 * config/aarch64/aarch64-simd.md
38438 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
38439 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
38440 (*aarch64_mul3_elt<mode>): Likewise.
38441 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
38442 (*aarch64_mul3_elt_to_64v2df): Likewise.
38443 (*aarch64_mla_elt<mode>): Likewise.
38444 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
38445 (*aarch64_mls_elt<mode>): Likewise.
38446 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
38447 (*aarch64_fma4_elt<mode>): Likewise.
38448 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
38449 (*aarch64_fma4_elt_to_64v2df): Likewise.
38450 (*aarch64_fnma4_elt<mode>): Likewise.
38451 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
38452 (*aarch64_fnma4_elt_to_64v2df): Likewise.
38453 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
38454 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
38455 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
38456 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
38457 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
38458 (aarch64_sqdmull_lane<mode>_internal): Likewise.
38459 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
38460
38461 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
38462
38463 * config/aarch64/aarch64-simd.md
38464 (aarch64_be_checked_get_lane<mode>): New define_expand.
38465 * config/aarch64/aarch64-simd-builtins.def
38466 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
38467 New builtin definition.
38468 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
38469 Use new safe be builtin.
38470
38471 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
38472
38473 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
38474 New define_insn.
38475 (aarch64_be_st1<mode>): Likewise.
38476 (aarch_ld1<VALL:mode>): Define_expand modified.
38477 (aarch_st1<VALL:mode>): Likewise.
38478 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
38479 (UNSPEC_ST1): Likewise.
38480
38481 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
38482
38483 * config/microblaze/microblaze.md: Add trap insn and attribute
38484
38485 2014-01-23 Dodji Seketeli <dodji@redhat.com>
38486
38487 PR preprocessor/58580
38488 * input.h (location_get_source_line): Take an additional line_size
38489 parameter.
38490 (void diagnostics_file_cache_fini): Declare new function.
38491 * input.c (struct fcache): New type.
38492 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
38493 New static constants.
38494 (diagnostic_file_cache_init, total_lines_num)
38495 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
38496 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
38497 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
38498 (get_next_line, read_next_line, goto_next_line, read_line_num):
38499 New static function definitions.
38500 (diagnostic_file_cache_fini): New function.
38501 (location_get_source_line): Take an additional output line_len
38502 parameter. Re-write using lookup_or_add_file_to_cache_tab and
38503 read_line_num.
38504 * diagnostic.c (diagnostic_finish): Call
38505 diagnostic_file_cache_fini.
38506 (adjust_line): Take an additional input parameter for the length
38507 of the line, rather than calculating it with strlen.
38508 (diagnostic_show_locus): Adjust the use of
38509 location_get_source_line and adjust_line with respect to their new
38510 signature. While displaying a line now, do not stop at the first
38511 null byte. Rather, display the zero byte as a space and keep
38512 going until we reach the size of the line.
38513 * Makefile.in: Add vec.o to OBJS-libcommon
38514
38515 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
38516 Ilya Tocar <ilya.tocar@intel.com>
38517
38518 * config/i386/avx512fintrin.h (_mm512_kmov): New.
38519 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
38520 (__builtin_ia32_kmov16): Ditto.
38521 * config/i386/i386.md (UNSPEC_KMOV): New.
38522 (kmovw): Ditto.
38523
38524 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
38525
38526 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
38527 (_mm512_storeu_si512): Ditto.
38528
38529 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
38530
38531 PR target/52125
38532 * rtl.h (get_referenced_operands): Declare.
38533 * recog.c (get_referenced_operands): New function.
38534 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
38535 operands have been referenced when recording LO_SUM references.
38536
38537 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
38538
38539 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
38540
38541 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
38542
38543 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
38544 Enable for generic and recent AMD targets.
38545
38546 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
38547
38548 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
38549 ARG_SIZE note when adjustment was eliminated.
38550
38551 2014-01-22 Jeff Law <law@redhat.com>
38552
38553 PR tree-optimization/59597
38554 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
38555 in file. Accept new argument REGISTERING and use it to modify
38556 dump output appropriately.
38557 (register_jump_thread): Corresponding changes.
38558 (mark_threaded_blocks): Reinstate code to cancel unprofitable
38559 thread paths involving joiner blocks. Add code to dump cancelled
38560 jump threading paths.
38561
38562 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
38563
38564 PR rtl-optimization/59477
38565 * lra-constraints.c (inherit_in_ebb): Process call for living hard
38566 regs. Update reloads_num and potential_reload_hard_regs for all insns.
38567
38568 2014-01-22 Tom Tromey <tromey@redhat.com>
38569
38570 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
38571 PARAMS.
38572 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
38573
38574 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
38575
38576 PR rtl-optimization/59896
38577 * lra-constraints.c (process_alt_operands): Check unused note for
38578 matched operands of insn with no output reloads.
38579
38580 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
38581
38582 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
38583 (mips_move_from_gpr_cost): Likewise.
38584
38585 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
38586
38587 PR rtl-optimization/59858
38588 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
38589 ira_class_hard_regs_num.
38590 (process_alt_operands): Increase reject for dying matched operand.
38591
38592 2014-01-21 Jakub Jelinek <jakub@redhat.com>
38593
38594 PR target/59003
38595 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
38596 smaller than size, perform several stores or loads and stores
38597 at dst + count - size to store or copy all of size bytes, rather
38598 than just last modesize bytes.
38599
38600 2014-01-20 DJ Delorie <dj@redhat.com>
38601
38602 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
38603 that CLOBBERs are REGs before propogating their values.
38604
38605 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
38606
38607 PR middle-end/59789
38608 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
38609 (cgraph_inline_failed_type): New function.
38610 * cgraph.h (DEFCIFCODE): Add type.
38611 (cgraph_inline_failed_type_t): New enum.
38612 (cgraph_inline_failed_type): New prototype.
38613 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
38614 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
38615 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
38616 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
38617 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
38618 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
38619 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
38620 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
38621 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
38622 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
38623 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
38624 OPTIMIZATION_MISMATCH.
38625 * tree-inline.c (expand_call_inline): Emit errors during
38626 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
38627
38628 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
38629
38630 PR target/59685
38631 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
38632 mode attribute in insn output.
38633
38634 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
38635
38636 * output.h (output_constant): Delete.
38637 * varasm.c (output_constant): Make private.
38638
38639 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
38640
38641 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
38642
38643 2014-01-20 Jakub Jelinek <jakub@redhat.com>
38644
38645 PR middle-end/59860
38646 * tree.h (fold_builtin_strcat): New prototype.
38647 * builtins.c (fold_builtin_strcat): No longer static. Add len
38648 argument, if non-NULL, don't call c_strlen. Optimize
38649 directly into __builtin_memcpy instead of __builtin_strcpy.
38650 (fold_builtin_2): Adjust fold_builtin_strcat caller.
38651 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
38652
38653 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
38654
38655 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
38656 for SImode_address_operand operands, having only a REG argument.
38657
38658 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
38659
38660 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
38661 loader name using mbig-endian.
38662 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
38663
38664 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
38665
38666 * doc/invoke.texi (-march): Clarify documentation for AArch64.
38667 (-mtune): Likewise.
38668 (-mcpu): Likewise.
38669
38670 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
38671
38672 * config/aarch64/aarch64-protos.h
38673 (aarch64_cannot_change_mode_class_ptr): Declare.
38674 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
38675 aarch64_cannot_change_mode_class_ptr): New.
38676 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
38677 backend hook aarch64_cannot_change_mode_class.
38678
38679 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
38680
38681 * common/config/aarch64/aarch64-common.c
38682 (aarch64_handle_option): Don't handle any option order logic here.
38683 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
38684 selected_cpu, warn on architecture version mismatch.
38685 (aarch64_override_options): Fix parsing order for option strings.
38686
38687 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
38688 Iain Sandoe <iain@codesourcery.com>
38689
38690 PR bootstrap/59496
38691 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
38692 warning. Amend comment to reflect current functionality.
38693
38694 2014-01-20 Richard Biener <rguenther@suse.de>
38695
38696 PR middle-end/59860
38697 * builtins.c (fold_builtin_strcat): Remove case better handled
38698 by tree-ssa-strlen.c.
38699
38700 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
38701
38702 * config/aarch64/aarch64.opt
38703 (mcpu, march, mtune): Make case-insensitive.
38704
38705 2014-01-20 Jakub Jelinek <jakub@redhat.com>
38706
38707 PR target/59880
38708 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
38709 if operands[1] is a REG or ZERO_EXTEND of a REG.
38710
38711 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
38712
38713 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
38714
38715 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
38716
38717 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
38718 long non-pic millicode calls.
38719
38720 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
38721
38722 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
38723
38724 2014-01-19 Kito Cheng <kito@0xlab.org>
38725
38726 * builtins.c (expand_movstr): Check movstr expand done or fail.
38727
38728 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
38729 H.J. Lu <hongjiu.lu@intel.com>
38730
38731 PR target/59379
38732 * config/i386/i386.md (*lea<mode>): Zero-extend return register
38733 to DImode for zero-extended addresses.
38734
38735 2014-01-19 Jakub Jelinek <jakub@redhat.com>
38736
38737 PR rtl-optimization/57763
38738 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
38739 on the new indirect jump_insn and increment LABEL_NUSES (label).
38740
38741 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
38742
38743 PR bootstrap/59580
38744 PR bootstrap/59583
38745 * config.gcc (x86_archs): New variable.
38746 (x86_64_archs): Likewise.
38747 (x86_cpus): Likewise.
38748 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
38749 --with-arch/--with-cpu= options.
38750 Support --with-arch=/--with-cpu={nehalem,westmere,
38751 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
38752
38753 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
38754
38755 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
38756 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
38757
38758 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
38759
38760 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
38761
38762 2014-01-18 Jakub Jelinek <jakub@redhat.com>
38763
38764 PR target/58944
38765 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
38766 clear cpp_get_options (parse_in)->warn_unused_macros for
38767 ix86_target_macros_internal with cpp_define.
38768
38769 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
38770
38771 * jump.c (delete_related_insns): Keep (use (insn))s.
38772 * reorg.c (redundant_insn): Check for barriers too.
38773
38774 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
38775
38776 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
38777
38778 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
38779
38780 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
38781 call to $$dyncall when TARGET_LONG_CALLS is true.
38782
38783 2014-01-17 Jeff Law <law@redhat.com>
38784
38785 * ree.c (combine_set_extension): Temporarily disable test for
38786 changing number of hard registers.
38787
38788 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
38789
38790 PR middle-end/58125
38791 * ipa-inline-analysis.c (inline_free_summary):
38792 Do not free summary of aliases.
38793
38794 2014-01-17 Jakub Jelinek <jakub@redhat.com>
38795
38796 PR middle-end/59706
38797 * gimplify.c (gimplify_expr): Use create_tmp_var
38798 instead of create_tmp_var_raw. If cond doesn't have
38799 integral type, don't add the IFN_ANNOTATE builtin at all.
38800
38801 2014-01-17 Martin Jambor <mjambor@suse.cz>
38802
38803 PR ipa/59736
38804 * ipa-cp.c (prev_edge_clone): New variable.
38805 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
38806 Also resize prev_edge_clone vector.
38807 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
38808 (ipcp_edge_removal_hook): New function.
38809 (ipcp_driver): Register ipcp_edge_removal_hook.
38810
38811 2014-01-17 Andrew Pinski <apinski@cavium.com>
38812 Steve Ellcey <sellcey@mips.com>
38813
38814 PR target/59462
38815 * config/mips/mips.c (mips_print_operand): Check operand mode instead
38816 of operator mode.
38817
38818 2014-01-17 Jeff Law <law@redhat.com>
38819
38820 PR middle-end/57904
38821 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
38822 so that pass_ccp runs first.
38823
38824 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
38825
38826 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
38827 (ix86_adjust_cost): Use !TARGET_XXX.
38828 (do_reorder_for_imul): Likewise.
38829 (swap_top_of_ready_list): Likewise.
38830 (ix86_sched_reorder): Likewise.
38831
38832 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
38833
38834 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
38835 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
38836 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
38837 (intel_memset): New. Duplicate slm_memset.
38838 (intel_cost): New. Duplicate slm_cost.
38839 (m_INTEL): New macro.
38840 (processor_target_table): Add "intel".
38841 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
38842 with PROCESSOR_INTEL for "intel".
38843 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
38844 PROCESSOR_SILVERMONT.
38845 (ix86_issue_rate): Likewise.
38846 (ix86_adjust_cost): Likewise.
38847 (ia32_multipass_dfa_lookahead): Likewise.
38848 (swap_top_of_ready_list): Likewise.
38849 (ix86_sched_reorder): Likewise.
38850 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
38851 instead of TARGET_OPT_AGU.
38852 * config/i386/i386.h (TARGET_INTEL): New.
38853 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
38854 (processor_type): Add PROCESSOR_INTEL.
38855 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
38856 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
38857
38858 2014-01-17 Marek Polacek <polacek@redhat.com>
38859
38860 PR c/58346
38861 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
38862 size is zero.
38863
38864 2014-01-17 Richard Biener <rguenther@suse.de>
38865
38866 PR tree-optimization/46590
38867 * opts.c (default_options_table): Add entries for
38868 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
38869 all enabled at -O1 but not for -Og.
38870 * common.opt (fbranch-count-reg): Remove Init(1).
38871 (fmove-loop-invariants): Likewise.
38872 (ftree-pta): Likewise.
38873
38874 2014-01-17 Jakub Jelinek <jakub@redhat.com>
38875
38876 * config/i386/i386.c (ix86_data_alignment): For compatibility with
38877 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
38878 decls to at least the GCC 4.8 used alignments.
38879
38880 PR fortran/59440
38881 * tree-nested.c (convert_nonlocal_reference_stmt,
38882 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
38883 of GIMPLE_BIND stmts, adjust associated decls.
38884
38885 2014-01-17 Richard Biener <rguenther@suse.de>
38886
38887 PR tree-optimization/46590
38888 * vec.h (vec<>::bseach): New member function implementing
38889 binary search according to C89 bsearch.
38890 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
38891 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
38892 bitmap pointer again. Make accesses_in_loop a flat array.
38893 (mem_ref_obstack): New global.
38894 (outermost_indep_loop): Adjust for mem_ref->stored changes.
38895 (mark_ref_stored): Likewise.
38896 (ref_indep_loop_p_2): Likewise.
38897 (set_ref_stored_in_loop): New helper function.
38898 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
38899 (memref_free): Adjust.
38900 (record_mem_ref_loc): Simplify.
38901 (gather_mem_refs_stmt): Adjust.
38902 (sort_locs_in_loop_postorder_cmp): New function.
38903 (analyze_memory_references): Sort accesses_in_loop after
38904 loop postorder number.
38905 (find_ref_loc_in_loop_cmp): New function.
38906 (for_all_locs_in_loop): Find relevant cluster of locs in
38907 accesses_in_loop and iterate without recursion.
38908 (execute_sm): Avoid uninit warning.
38909 (struct ref_always_accessed): Simplify.
38910 (ref_always_accessed::operator ()): Likewise.
38911 (ref_always_accessed_p): Likewise.
38912 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
38913 loop postorder numbers here.
38914 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
38915 numbers.
38916
38917 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
38918
38919 PR c++/57945
38920 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
38921 on decls for which assemble_alias has been called.
38922
38923 2014-01-17 Nick Clifton <nickc@redhat.com>
38924
38925 * config/msp430/msp430.opt: (mcpu): New option.
38926 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
38927 (msp430_option_override): Parse target_cpu. If the MCU name
38928 matches a generic string, clear target_mcu.
38929 (msp430_attr): Allow numeric interrupt values up to 63.
38930 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
38931 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
38932 option.
38933 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
38934 Add mcpu matches.
38935 * config/msp430/msp430.md (popm): Use %J rather than %I.
38936 (addsi3): Use msp430_nonimmediate_operand for operand 2.
38937 (addhi_cy_i): Use immediate_operand for operand 2.
38938 * doc/invoke.texi: Document -mcpu option.
38939
38940 2014-01-17 Richard Biener <rguenther@suse.de>
38941
38942 PR rtl-optimization/38518
38943 * df.h (df_analyze_loop): Declare.
38944 * df-core.c: Include cfgloop.h.
38945 (df_analyze_1): Split out main part of df_analyze.
38946 (df_analyze): Adjust.
38947 (loop_inverted_post_order_compute): New function.
38948 (loop_post_order_compute): Likewise.
38949 (df_analyze_loop): New function avoiding whole-function
38950 postorder computes.
38951 * loop-invariant.c (find_defs): Use df_analyze_loop.
38952 (find_invariants): Adjust.
38953 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
38954
38955 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
38956
38957 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
38958 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
38959
38960 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
38961
38962 * ipa-ref.c (ipa_remove_stmt_references): Fix references
38963 traversal when removing references.
38964
38965 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
38966
38967 PR ipa/59775
38968 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
38969
38970 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
38971
38972 PR middle-end/56791
38973 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
38974 pushing a reload for an autoinc when we had previously reloaded an
38975 inner part of the address.
38976
38977 2014-01-16 Jakub Jelinek <jakub@redhat.com>
38978
38979 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
38980 field.
38981 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
38982 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
38983 when not giving up or versioning for alias only because of
38984 loop->safelen.
38985 (vect_analyze_data_ref_dependences): Set to true.
38986 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
38987 is a GIMPLE_PHI.
38988 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
38989 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
38990 to the condition.
38991
38992 PR middle-end/58344
38993 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
38994
38995 PR target/59839
38996 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
38997 operand 0 predicate for gathers, use a new pseudo as subtarget.
38998
38999 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
39000
39001 PR middle-end/59609
39002 * lra-constraints.c (process_alt_operands): Add printing debug info.
39003 Check absence of input/output reloads for matched operands too.
39004
39005 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
39006
39007 PR rtl-optimization/59835
39008 * ira.c (ira_init_register_move_cost): Increase cost for
39009 impossible modes.
39010
39011 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
39012
39013 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
39014
39015 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
39016
39017 PR target/59780
39018 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
39019 non-register objects. Use gen_(high/low)part more consistently.
39020 Fix assertions.
39021
39022 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
39023
39024 PR target/59844
39025 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
39026 endian support, remove tests for WORDS_BIG_ENDIAN.
39027 (p8_mfvsrd_3_<mode>): Likewise.
39028 (reload_gpr_from_vsx<mode>): Likewise.
39029 (reload_gpr_from_vsxsf): Likewise.
39030 (p8_mfvsrd_4_disf): Likewise.
39031
39032 2014-01-16 Richard Biener <rguenther@suse.de>
39033
39034 PR rtl-optimization/46590
39035 * lcm.c (compute_antinout_edge): Use postorder iteration.
39036 (compute_laterin): Use inverted postorder iteration.
39037
39038 2014-01-16 Nick Clifton <nickc@redhat.com>
39039
39040 PR middle-end/28865
39041 * varasm.c (output_constant): Return the number of bytes actually
39042 emitted.
39043 (output_constructor_array_range): Update the field size with the
39044 number of bytes emitted by output_constant.
39045 (output_constructor_regular_field): Likewise. Also do not
39046 complain if the total number of bytes emitted is now greater
39047 than the expected fieldpos.
39048 * output.h (output_constant): Update prototype and descriptive comment.
39049
39050 2014-01-16 Marek Polacek <polacek@redhat.com>
39051
39052 PR middle-end/59827
39053 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
39054 it is error_mark_node.
39055
39056 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
39057
39058 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
39059 VALID_AVX256_REG_OR_OI_MODE.
39060
39061 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
39062
39063 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
39064 current procedure should be profiled.
39065
39066 2014-01-15 Andrew Pinski <apinski@cavium.com>
39067
39068 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
39069 of moving from/to the STACK_REG register class.
39070
39071 2014-01-15 Richard Henderson <rth@redhat.com>
39072
39073 PR debug/54694
39074 * reginfo.c (global_regs_decl): Globalize.
39075 * rtl.h (global_regs_decl): Declare.
39076 * ira.c (do_reload): Diagnose frame_pointer_needed and it
39077 reserved via global_regs.
39078
39079 2014-01-15 Teresa Johnson <tejohnson@google.com>
39080
39081 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
39082
39083 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
39084
39085 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
39086 and vmulosh rather than call gen_vec_widen_smult_*.
39087 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
39088 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
39089 (vec_widen_smult_even_v16qi): Likewise.
39090 (vec_widen_umult_even_v8hi): Likewise.
39091 (vec_widen_smult_even_v8hi): Likewise.
39092 (vec_widen_umult_odd_v16qi): Likewise.
39093 (vec_widen_smult_odd_v16qi): Likewise.
39094 (vec_widen_umult_odd_v8hi): Likewise.
39095 (vec_widen_smult_odd_v8hi): Likewise.
39096 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
39097 vmuloub rather than call gen_vec_widen_umult_*.
39098 (vec_widen_umult_lo_v16qi): Likewise.
39099 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
39100 vmulosb rather than call gen_vec_widen_smult_*.
39101 (vec_widen_smult_lo_v16qi): Likewise.
39102 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
39103 rather than call gen_vec_widen_umult_*.
39104 (vec_widen_umult_lo_v8hi): Likewise.
39105 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
39106 rather than call gen_vec_widen_smult_*.
39107 (vec_widen_smult_lo_v8hi): Likewise.
39108
39109 2014-01-15 Jeff Law <law@redhat.com>
39110
39111 PR tree-optimization/59747
39112 * ree.c (find_and_remove_re): Properly handle case where a second
39113 eliminated extension requires widening a copy created for elimination
39114 of a prior extension.
39115 (combine_set_extension): Ensure that the number of hard regs needed
39116 for a destination register does not change when we widen it.
39117
39118 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
39119
39120 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
39121 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
39122 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
39123 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
39124 (avr-*-rtems*): Likewise.
39125 (bfin*-rtems*): Likewise.
39126 (moxie-*-rtems*): Likewise.
39127 (h8300-*-rtems*): Likewise.
39128 (i[34567]86-*-rtems*): Likewise.
39129 (lm32-*-rtems*): Likewise.
39130 (m32r-*-rtems*): Likewise.
39131 (m68k-*-rtems*): Likewise.
39132 (microblaze*-*-rtems*): Likewise.
39133 (mips*-*-rtems*): Likewise.
39134 (powerpc-*-rtems*): Likewise.
39135 (sh-*-rtems*): Likewise.
39136 (sparc-*-rtems*): Likewise.
39137 (sparc64-*-rtems*): Likewise.
39138 (v850-*-rtems*): Likewise.
39139 (m32c-*-rtems*): Likewise.
39140
39141 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
39142
39143 PR rtl-optimization/59511
39144 * ira.c (ira_init_register_move_cost): Use memory costs for some
39145 cases of register move cost calculations.
39146 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
39147 instead of BB frequency.
39148 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
39149 * lra-assigns.c (find_hard_regno_for): Ditto.
39150
39151 2014-01-15 Richard Biener <rguenther@suse.de>
39152
39153 PR tree-optimization/59822
39154 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
39155 (vectorizable_load): Use it to hoist defs of uses of invariant
39156 loads out of the loop.
39157
39158 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
39159 Kugan Vivekanandarajah <kuganv@linaro.org>
39160
39161 PR target/59695
39162 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
39163 truncation.
39164
39165 2014-01-15 Richard Biener <rguenther@suse.de>
39166
39167 PR rtl-optimization/59802
39168 * lcm.c (compute_available): Use inverted postorder to seed
39169 the initial worklist.
39170
39171 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39172
39173 PR target/59803
39174 * config/s390/s390.c (s390_preferred_reload_class): Don't return
39175 ADDR_REGS for invalid symrefs in non-PIC code.
39176
39177 2014-01-15 Jakub Jelinek <jakub@redhat.com>
39178
39179 PR other/58712
39180 * builtins.c (determine_block_size): Initialize *probable_max_size
39181 even if len_rtx is CONST_INT.
39182
39183 2014-01-14 Andrew Pinski <apinski@cavium.com>
39184
39185 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
39186 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
39187 (cortexa53_tunings): Likewise.
39188 (aarch64_sched_issue_rate): New function.
39189 (TARGET_SCHED_ISSUE_RATE): Define.
39190
39191 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
39192
39193 * ira-costs.c (find_costs_and_classes): Add missed
39194 ira_init_register_move_cost_if_necessary.
39195
39196 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
39197
39198 PR target/59787
39199 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
39200
39201 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
39202
39203 PR target/59794
39204 * config/i386/i386.c (type_natural_mode): Add a bool parameter
39205 to indicate if type is used for function return value. Warn ABI
39206 change if the vector mode isn't available for function return value.
39207 (ix86_function_arg_advance): Pass false to type_natural_mode.
39208 (ix86_function_arg): Likewise.
39209 (ix86_gimplify_va_arg): Likewise.
39210 (function_arg_32): Don't warn ABI change.
39211 (ix86_function_value): Pass true to type_natural_mode.
39212 (ix86_return_in_memory): Likewise.
39213 (ix86_struct_value_rtx): Removed.
39214 (TARGET_STRUCT_VALUE_RTX): Likewise.
39215
39216 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
39217
39218 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
39219 converting a conditional jump into a conditional return.
39220
39221 2014-01-14 Richard Biener <rguenther@suse.de>
39222
39223 PR tree-optimization/58921
39224 PR tree-optimization/59006
39225 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
39226 hoisting invariant stmts.
39227 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
39228 invariant loads on the preheader edge if possible.
39229
39230 2014-01-14 Joey Ye <joey.ye@arm.com>
39231
39232 * doc/plugin.texi (Building GCC plugins): Update to C++.
39233
39234 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
39235
39236 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
39237 (_mm_rcp28_round_ss): Ditto.
39238 (_mm_rsqrt28_round_sd): Ditto.
39239 (_mm_rsqrt28_round_ss): Ditto.
39240 (_mm_rcp28_sd): Ditto.
39241 (_mm_rcp28_ss): Ditto.
39242 (_mm_rsqrt28_sd): Ditto.
39243 (_mm_rsqrt28_ss): Ditto.
39244 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
39245 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
39246 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
39247 (IX86_BUILTIN_RCP28SD): Ditto.
39248 (IX86_BUILTIN_RCP28SS): Ditto.
39249 (IX86_BUILTIN_RSQRT28SD): Ditto.
39250 (IX86_BUILTIN_RSQRT28SS): Ditto.
39251 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
39252 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
39253 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
39254 (ix86_expand_special_args_builtin): Expand new FTYPE.
39255 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
39256 (srcp14<mode>): Make insn unary.
39257 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
39258 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
39259 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
39260 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
39261 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
39262 Fix rounding: make it SAE only.
39263 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
39264 Ditto.
39265 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
39266 Ditto.
39267 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
39268 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
39269 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
39270 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
39271 (round_saeonly_mask_scalar_operand4): Ditto.
39272 (round_saeonly_mask_scalar_op3): Ditto.
39273 (round_saeonly_mask_scalar_op4): Ditto.
39274
39275 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39276
39277 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
39278 Implement -maltivec=be for vec_insert and vec_extract.
39279
39280 2014-01-10 DJ Delorie <dj@redhat.com>
39281
39282 * config/msp430/msp430.md (call_internal): Don't allow memory
39283 references with SP as the base register.
39284 (call_value_internal): Likewise.
39285 * config/msp430/constraints.md (Yc): New. For memory references
39286 that don't use SP as a base register.
39287
39288 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
39289 "an integer without a # prefix"
39290 * config/msp430/msp430.md (epilogue_helper): Use it.
39291
39292 2014-01-13 Jakub Jelinek <jakub@redhat.com>
39293
39294 PR target/59617
39295 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
39296 AVX512F gather builtins.
39297 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
39298 on gather decls with INTEGER_TYPE masktype.
39299 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
39300 directly into the builtin rather than hoisting it before loop.
39301
39302 PR tree-optimization/59387
39303 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
39304 (scev_const_prop): If folded_casts and type has undefined overflow,
39305 use force_gimple_operand instead of force_gimple_operand_gsi and
39306 for each added stmt if it is assign with
39307 arith_code_with_undefined_signed_overflow, call
39308 rewrite_to_defined_overflow.
39309 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
39310 gimple-fold.h instead.
39311 (arith_code_with_undefined_signed_overflow,
39312 rewrite_to_defined_overflow): Moved to ...
39313 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
39314 rewrite_to_defined_overflow): ... here. No longer static.
39315 Include gimplify-me.h.
39316 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
39317 rewrite_to_defined_overflow): New prototypes.
39318
39319 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39320
39321 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
39322
39323 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
39324
39325 * builtins.c (get_object_alignment_2): Minor tweak.
39326 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
39327
39328 2014-01-13 Christian Bruel <christian.bruel@st.com>
39329
39330 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
39331 optimized non constant lengths.
39332
39333 2014-01-13 Jakub Jelinek <jakub@redhat.com>
39334
39335 PR libgomp/59194
39336 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
39337 load as __atomic_load_N if possible.
39338
39339 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
39340
39341 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
39342 target parameter.
39343 (rs6000_expand_builtin): Adjust call.
39344
39345 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
39346
39347 PR target/58115
39348 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
39349 * config/rs6000/rs6000.c: Include target-globals.h.
39350 (rs6000_set_current_function): Instead of doing target_reinit
39351 unconditionally, use save_target_globals_default_opts and
39352 restore_target_globals.
39353
39354 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
39355 FPSCR.
39356 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
39357 (rs6000_expand_builtin): Handle mffs and mtfsf.
39358 (rs6000_init_builtins): Define mffs and mtfsf.
39359 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
39360 (rs6000_mffs): New pattern.
39361 (rs6000_mtfsf): New pattern.
39362
39363 2014-01-11 Bin Cheng <bin.cheng@arm.com>
39364
39365 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
39366 Start narrowing with START. Apply candidate-use pair
39367 and check overall cost in narrowing.
39368 (iv_ca_prune): Pass new argument.
39369
39370 2014-01-10 Jeff Law <law@redhat.com>
39371
39372 PR middle-end/59743
39373 * ree.c (combine_reaching_defs): Ensure the defining statement
39374 occurs before the extension when optimizing extensions with
39375 different source and destination hard registers.
39376
39377 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
39378
39379 PR ipa/58585
39380 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
39381 vtables into the type inheritance graph.
39382
39383 2014-01-10 Jakub Jelinek <jakub@redhat.com>
39384
39385 PR rtl-optimization/59754
39386 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
39387 modes in the REGNO != REGNO case.
39388
39389 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39390
39391 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
39392
39393 2014-01-10 Jakub Jelinek <jakub@redhat.com>
39394
39395 PR tree-optimization/59745
39396 * tree-predcom.c (tree_predictive_commoning_loop): Call
39397 free_affine_expand_cache if giving up because components is NULL.
39398
39399 * target-globals.c (save_target_globals): Allocate < 4KB structs using
39400 GC in payload of target_globals struct instead of allocating them on
39401 the heap and the larger structs separately using GC.
39402 * target-globals.h (struct target_globals): Make regs, hard_regs,
39403 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
39404 of GTY((skip)) and change type to void *.
39405 (reset_target_globals): Cast loads from those fields to corresponding
39406 types.
39407
39408 2014-01-10 Steve Ellcey <sellcey@mips.com>
39409
39410 PR plugins/59335
39411 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
39412 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
39413 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
39414
39415 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
39416
39417 PR target/59744
39418 * aarch64-modes.def (CC_Zmode): New flags mode.
39419 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
39420 represents an equality.
39421 (aarch64_get_condition_code): Handle CC_Zmode.
39422 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
39423
39424 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39425
39426 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
39427 extraction in good case.
39428
39429 2014-01-10 Richard Biener <rguenther@suse.de>
39430
39431 PR tree-optimization/59374
39432 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
39433 checking after SLP discovery. Mark stmts not participating
39434 in any SLP instance properly.
39435
39436 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39437
39438 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
39439 when handling a SET rtx.
39440
39441 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39442
39443 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
39444 (cortex-a57): Likewise.
39445 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
39446
39447 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39448
39449 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
39450 non-iwmmxt builtins.
39451
39452 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
39453
39454 PR ipa/58252
39455 PR ipa/59226
39456 * ipa-devirt.c record_target_from_binfo): Take as argument
39457 stack of binfos and lookup matching one for virtual inheritance.
39458 (possible_polymorphic_call_targets_1): Update.
39459
39460 2014-01-10 Huacai Chen <chenhc@lemote.com>
39461
39462 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
39463 kernel strings for Loongson-2E/2F/3A.
39464
39465 2014-01-10 Jakub Jelinek <jakub@redhat.com>
39466
39467 PR middle-end/59670
39468 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
39469 is_gimple_call before calling gimple_call_internal_p.
39470
39471 2014-01-09 Steve Ellcey <sellcey@mips.com>
39472
39473 * Makefile.in (TREE_FLOW_H): Remove.
39474 (TREE_SSA_H): Add file names from tree-flow.h.
39475 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
39476 * tree.h: Remove tree-flow.h reference.
39477 * hash-table.h: Remove tree-flow.h reference.
39478 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
39479 reference with tree-ssa-loop.h.
39480
39481 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39482
39483 * doc/invoke.texi: Add -maltivec={be,le} options, and document
39484 default element-order behavior for -maltivec.
39485 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
39486 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
39487 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
39488 when targeting big endian, at least for now.
39489 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
39490
39491 2014-01-09 Jakub Jelinek <jakub@redhat.com>
39492
39493 PR middle-end/47735
39494 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
39495 var satisfies use_register_for_decl, just take into account type
39496 alignment, rather than decl alignment.
39497
39498 PR tree-optimization/59622
39499 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
39500 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
39501 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
39502 Don't devirtualize for inplace at all. For targets.length () == 1,
39503 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
39504
39505 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
39506
39507 * config/i386/i386.md (cpu): Remove the unused btver1.
39508
39509 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
39510
39511 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
39512
39513 2014-01-09 Jakub Jelinek <jakub@redhat.com>
39514
39515 PR target/58115
39516 * tree-core.h (struct target_globals): New forward declaration.
39517 (struct tree_target_option): Add globals field.
39518 * tree.h (TREE_TARGET_GLOBALS): Define.
39519 (prepare_target_option_nodes_for_pch): New prototype.
39520 * target-globals.h (struct target_globals): Define even if
39521 !SWITCHABLE_TARGET.
39522 * tree.c (prepare_target_option_node_for_pch,
39523 prepare_target_option_nodes_for_pch): New functions.
39524 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
39525 * config/i386/i386.c: Include target-globals.h.
39526 (ix86_set_current_function): Instead of doing target_reinit
39527 unconditionally, use save_target_globals_default_opts and
39528 restore_target_globals.
39529
39530 2014-01-09 Richard Biener <rguenther@suse.de>
39531
39532 PR tree-optimization/59715
39533 * tree-cfg.h (split_critical_edges): Declare.
39534 * tree-cfg.c (split_critical_edges): Export.
39535 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
39536
39537 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
39538
39539 * cfgexpand.c (expand_stack_vars): Optionally disable
39540 asan stack protection.
39541 (expand_used_vars): Likewise.
39542 (partition_stack_vars): Likewise.
39543 * asan.c (asan_emit_stack_protection): Optionally disable
39544 after return stack usage.
39545 (instrument_derefs): Optionally disable memory access instrumentation.
39546 (instrument_builtin_call): Likewise.
39547 (instrument_strlen_call): Likewise.
39548 (asan_protect_global): Optionally disable global variables protection.
39549 * doc/invoke.texi: Added doc for new options.
39550 * params.def: Added new options.
39551 * params.h: Likewise.
39552
39553 2014-01-09 Jakub Jelinek <jakub@redhat.com>
39554
39555 PR rtl-optimization/59724
39556 * ifcvt.c (cond_exec_process_if_block): Don't call
39557 flow_find_head_matching_sequence with 0 longest_match.
39558 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
39559 non-active insns if !stop_after.
39560 (try_head_merge_bb): Revert 2014-01-07 changes.
39561
39562 2014-01-08 Jeff Law <law@redhat.com>
39563
39564 * ree.c (get_sub_rtx): New function, extracted from...
39565 (merge_def_and_ext): Here.
39566 (combine_reaching_defs): Use get_sub_rtx.
39567
39568 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
39569
39570 * cgraph.h (varpool_variable_node): Do not choke on null node.
39571
39572 2014-01-08 Catherine Moore <clm@codesourcery.com>
39573
39574 * config/mips/mips.md (simple_return): Attempt to use JRC
39575 for microMIPS.
39576 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
39577
39578 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
39579
39580 PR rtl-optimization/59137
39581 * reorg.c (steal_delay_list_from_target): Call update_block for
39582 elided insns.
39583 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
39584
39585 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39586
39587 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
39588 two duplicate entries.
39589
39590 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
39591
39592 Revert:
39593 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
39594
39595 * config/mips/mips.c (mips_truncated_op_cost): New function.
39596 (mips_rtx_costs): Adjust test for BADDU.
39597 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
39598
39599 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
39600
39601 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
39602 (*baddu_si): ...this new pattern.
39603
39604 2014-01-08 Jakub Jelinek <jakub@redhat.com>
39605
39606 PR ipa/59722
39607 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
39608
39609 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
39610
39611 PR middle-end/57748
39612 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
39613 inner_reference_p.
39614 (expand_expr, expand_normal): Adjust.
39615 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
39616 inner_reference_p. Use inner_reference_p to expand inner references.
39617 (store_expr): Adjust.
39618 * cfgexpand.c (expand_call_stmt): Adjust.
39619
39620 2014-01-08 Rong Xu <xur@google.com>
39621
39622 * gcov-io.c (gcov_var): Move from gcov-io.h.
39623 (gcov_position): Ditto.
39624 (gcov_is_error): Ditto.
39625 (gcov_rewrite): Ditto.
39626 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
39627 only part to libgcc/libgcov.h.
39628
39629 2014-01-08 Marek Polacek <polacek@redhat.com>
39630
39631 PR middle-end/59669
39632 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
39633
39634 2014-01-08 Marek Polacek <polacek@redhat.com>
39635
39636 PR sanitizer/59667
39637 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
39638
39639 2014-01-08 Jakub Jelinek <jakub@redhat.com>
39640
39641 PR rtl-optimization/59649
39642 * stor-layout.c (get_mode_bounds): For BImode return
39643 0 and STORE_FLAG_VALUE.
39644
39645 2014-01-08 Richard Biener <rguenther@suse.de>
39646
39647 PR middle-end/59630
39648 * gimple.h (is_gimple_builtin_call): Remove.
39649 (gimple_builtin_call_types_compatible_p): New.
39650 (gimple_call_builtin_p): New overload.
39651 * gimple.c (is_gimple_builtin_call): Remove.
39652 (validate_call): Rename to ...
39653 (gimple_builtin_call_types_compatible_p): ... this and export. Also
39654 check return types.
39655 (validate_type): New static function.
39656 (gimple_call_builtin_p): New overload and adjust.
39657 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
39658 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
39659 (gimple_fold_stmt_to_constant_1): Likewise.
39660 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
39661
39662 2014-01-08 Richard Biener <rguenther@suse.de>
39663
39664 PR middle-end/59471
39665 * gimplify.c (gimplify_expr): Gimplify register-register type
39666 VIEW_CONVERT_EXPRs to separate stmts.
39667
39668 2014-01-07 Jeff Law <law@redhat.com>
39669
39670 PR middle-end/53623
39671 * ree.c (combine_set_extension): Handle case where source
39672 and destination registers in an extension insn are different.
39673 (combine_reaching_defs): Allow source and destination registers
39674 in extension to be different under limited circumstances.
39675 (add_removable_extension): Remove restriction that the
39676 source and destination registers in the extension are the same.
39677 (find_and_remove_re): Emit a copy from the extension's
39678 destination to its source after the defining insn if
39679 the source and destination registers are different.
39680
39681 PR middle-end/59285
39682 * ifcvt.c (merge_if_block): If we are merging a block with more than
39683 one successor with a block with no successors, remove any BARRIER
39684 after the second block.
39685
39686 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
39687
39688 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
39689
39690 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
39691
39692 PR target/59652
39693 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
39694 for 14-bit register offsets when INT14_OK_STRICT is false.
39695
39696 2014-01-07 Roland Stigge <stigge@antcom.de>
39697 Michael Meissner <meissner@linux.vnet.ibm.com>
39698
39699 PR 57386/target
39700 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
39701 Only check TFmode for SPE constants. Don't check TImode or TDmode.
39702
39703 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
39704
39705 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
39706 -mcpu.
39707
39708 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
39709
39710 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
39711 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
39712 rtx is const0_rtx or not.
39713
39714 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
39715
39716 PR target/58115
39717 * target-globals.c (save_target_globals): Remove this_fn_optab
39718 handling.
39719 * toplev.c: Include optabs.h.
39720 (target_reinit): Temporarily restore the global options if another
39721 set of options are in force.
39722
39723 2014-01-07 Jakub Jelinek <jakub@redhat.com>
39724
39725 PR rtl-optimization/58668
39726 * cfgcleanup.c (flow_find_cross_jump): Don't count
39727 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
39728 to determine what is counted.
39729 (flow_find_head_matching_sequence): Use active_insn_p to determine
39730 what is counted.
39731 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
39732 counting change.
39733 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
39734 determine what is counted.
39735
39736 PR tree-optimization/59643
39737 * tree-predcom.c (split_data_refs_to_components): If one dr is
39738 read and one write, determine_offset fails and the write isn't
39739 in the bad component, just put the read into the bad component.
39740
39741 2014-01-07 Mike Stump <mikestump@comcast.net>
39742 Jakub Jelinek <jakub@redhat.com>
39743
39744 PR pch/59436
39745 * tree-core.h (struct tree_optimization_option): Change optabs
39746 type from unsigned char * to void *.
39747 * optabs.c (init_tree_optimization_optabs): Adjust
39748 TREE_OPTIMIZATION_OPTABS initialization.
39749
39750 2014-01-06 Jakub Jelinek <jakub@redhat.com>
39751
39752 PR target/59644
39753 * config/i386/i386.h (struct machine_function): Add
39754 no_drap_save_restore field.
39755 * config/i386/i386.c (ix86_save_reg): Use
39756 !cfun->machine->no_drap_save_restore instead of
39757 crtl->stack_realign_needed.
39758 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
39759 this function clears frame_pointer_needed. Set
39760 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
39761 and DRAP reg is needed.
39762
39763 2014-01-06 Marek Polacek <polacek@redhat.com>
39764
39765 PR c/57773
39766 * doc/implement-c.texi: Mention that other integer types are
39767 permitted as bit-field types in strictly conforming mode.
39768
39769 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
39770
39771 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
39772 is newly allocated.
39773
39774 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
39775
39776 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
39777
39778 2014-01-06 Martin Jambor <mjambor@suse.cz>
39779
39780 PR ipa/59008
39781 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
39782 to int.
39783 * ipa-prop.c (ipa_print_node_params): Fix indentation.
39784
39785 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
39786
39787 PR debug/59350
39788 PR debug/59510
39789 * var-tracking.c (add_stores): Preserve the value of the source even if
39790 we don't record the store.
39791
39792 2014-01-06 Terry Guo <terry.guo@arm.com>
39793
39794 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
39795
39796 2014-01-05 Iain Sandoe <iain@codesourcery.com>
39797
39798 PR bootstrap/59541
39799 * config/darwin.c (darwin_function_section): Adjust return values to
39800 correspond to optimisation changes made in r206070.
39801
39802 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
39803
39804 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
39805 from prefetch_block tune setting.
39806 (nocona_cost): Correct size of prefetch block to 64.
39807
39808 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
39809
39810 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
39811 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
39812 used to save the static chain register in the computation of the offset
39813 from which the FP registers need to be restored.
39814
39815 2014-01-04 Jakub Jelinek <jakub@redhat.com>
39816
39817 PR tree-optimization/59519
39818 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
39819 ICE if get_current_def (current_new_name) is already non-NULL, as long
39820 as it is a phi result of some other phi in *new_exit_bb that has
39821 the same argument.
39822
39823 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
39824 or vmovdqu* for misaligned_operand.
39825 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
39826 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
39827 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
39828 aligned_mem for AVX512F masked aligned load and store builtins and for
39829 non-temporal moves.
39830
39831 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
39832
39833 PR tree-optimization/59651
39834 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
39835 Address range for negative step should be added by TYPE_SIZE_UNIT.
39836
39837 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
39838
39839 * config/m68k/m68k.c (handle_move_double): Handle pushes with
39840 overlapping registers also for registers other than the stack pointer.
39841
39842 2014-01-03 Marek Polacek <polacek@redhat.com>
39843
39844 PR other/59661
39845 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
39846 __builtin_FILE.
39847
39848 2014-01-03 Jakub Jelinek <jakub@redhat.com>
39849
39850 PR target/59625
39851 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
39852 asm goto as jump.
39853
39854 * config/i386/i386.md (MODE_SIZE): New mode attribute.
39855 (push splitter): Use <P:MODE_SIZE> instead of
39856 GET_MODE_SIZE (<P:MODE>mode).
39857 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
39858 (mov -1, reg peephole2): Likewise.
39859 * config/i386/sse.md (*mov<mode>_internal,
39860 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
39861 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
39862 *<code><mode>3, *andnot<mode>3<mask_name>,
39863 <mask_codefor><code><mode>3<mask_name>): Likewise.
39864 * config/i386/subst.md (mask_mode512bit_condition,
39865 sd_mask_mode512bit_condition): Likewise.
39866
39867 2014-01-02 Xinliang David Li <davidxl@google.com>
39868
39869 PR tree-optimization/59303
39870 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
39871 (dump_predicates): Better output format.
39872 (pred_equal_p): New function.
39873 (is_neq_relop_p): Ditto.
39874 (is_neq_zero_form_p): Ditto.
39875 (pred_expr_equal_p): Ditto.
39876 (pred_neg_p): Ditto.
39877 (simplify_pred): Ditto.
39878 (simplify_preds_2): Ditto.
39879 (simplify_preds_3): Ditto.
39880 (simplify_preds_4): Ditto.
39881 (simplify_preds): Ditto.
39882 (push_pred): Ditto.
39883 (push_to_worklist): Ditto.
39884 (get_pred_info_from_cmp): Ditto.
39885 (is_degenerated_phi): Ditto.
39886 (normalize_one_pred_1): Ditto.
39887 (normalize_one_pred): Ditto.
39888 (normalize_one_pred_chain): Ditto.
39889 (normalize_preds): Ditto.
39890 (normalize_cond_1): Remove function.
39891 (normalize_cond): Ditto.
39892 (is_gcond_subset_of): Ditto.
39893 (is_subset_of_any): Ditto.
39894 (is_or_set_subset_of): Ditto.
39895 (is_and_set_subset_of): Ditto.
39896 (is_norm_cond_subset_of): Ditto.
39897 (pred_chain_length_cmp): Ditto.
39898 (convert_control_dep_chain_into_preds): Type change.
39899 (find_predicates): Ditto.
39900 (find_def_preds): Ditto.
39901 (destroy_predicates_vecs): Ditto.
39902 (find_matching_predicates_in_rest_chains): Ditto.
39903 (use_pred_not_overlap_with_undef_path_pred): Ditto.
39904 (is_pred_expr_subset): Ditto.
39905 (is_pred_chain_subset_of): Ditto.
39906 (is_included_in): Ditto.
39907 (is_superset_of): Ditto.
39908
39909 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39910
39911 Update copyright years.
39912
39913 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
39914
39915 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
39916 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
39917 config/arc/arc.md, config/arc/arc.opt,
39918 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
39919 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
39920 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
39921 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
39922 config/linux-protos.h, config/linux.c, config/winnt-c.c,
39923 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
39924 vtable-verify.c, vtable-verify.h: Use the standard form for the
39925 copyright notice.
39926
39927 2014-01-02 Tobias Burnus <burnus@net-b.de>
39928
39929 * gcc.c (process_command): Update copyright notice dates.
39930 * gcov-dump.c: Ditto.
39931 * gcov.c: Ditto.
39932 * doc/cpp.texi: Bump @copying's copyright year.
39933 * doc/cppinternals.texi: Ditto.
39934 * doc/gcc.texi: Ditto.
39935 * doc/gccint.texi: Ditto.
39936 * doc/gcov.texi: Ditto.
39937 * doc/install.texi: Ditto.
39938 * doc/invoke.texi: Ditto.
39939
39940 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
39941
39942 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
39943
39944 2014-01-01 Jakub Jelinek <jakub@redhat.com>
39945
39946 * config/i386/sse.md (*mov<mode>_internal): Guard
39947 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
39948
39949 PR rtl-optimization/59647
39950 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
39951 new_rtx into UNSIGNED_FLOAT rtxes.
39952 \f
39953 Copyright (C) 2014 Free Software Foundation, Inc.
39954
39955 Copying and distribution of this file, with or without modification,
39956 are permitted in any medium without royalty provided the copyright
39957 notice and this notice are preserved.