1 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_to_from_gp):
5 (cortex_a15_gp_to_vfp): ...This.
6 (cortex_a15_fp_to_gp): ...And this.
7 Define and comment bypass from vfp operations to fp->gp moves.
9 2014-11-18 Martin Liska <mliska@suse.cz>
11 * var-tracking.c (vt_find_locations): New fibonacci_node is used.
13 2014-11-18 Martin Liska <mliska@suse.cz>
15 * bt-load.c (add_btr_def): New fibonacci_heap is used.
16 (migrate_btr_defs): Likewise.
18 2014-11-18 Martin Liska <mliska@suse.cz>
20 * tracer.c (tail_duplicate): New fibonacci_heap class is used.
22 2014-11-18 Martin Liska <mliska@suse.cz>
24 * bb-reorder.c (mark_bb_visited): New fibonacci_heap is used.
25 (find_traces): Likewise.
26 (find_traces_1_round): Likewise.
28 2014-11-18 Martin Liska <mliska@suse.cz>
30 * fibonacci_heap.h: New file.
31 (fibonacci_heap::insert): Created from fibheap_insert.
32 (fibonacci_heap::empty): Created from fibheap_empty.
33 (fibonacci_heap::nodes): Created from fibheap_nodes.
34 (fibonacci_heap::min_key): Created from fibheap_min_key.
35 (fibonacci_heap::decrease_key): Created from fibheap_replace_key.
36 (fibonacci_heap::replace_key_data): Created from fibheap_replace_key_data.
37 (fibonacci_heap::extract_min): Created from fibheap_extract_min.
38 (fibonacci_heap::min): Created from fibheap_min.
39 (fibonacci_heap::replace_data): Created from fibheap_replace_data.
40 (fibonacci_heap::delete_node): Created from fibheap_delete_node.
41 (fibonacci_heap::union_with): Created from fibheap_union.
42 * ipa-inline.c (update_edge_key): New heap API is used.
43 (update_caller_keys): Likewise.
44 (update_callee_keys): Likewise.
45 (lookup_recursive_calls): Likewise.
46 (recursive_inlining): Likewise.
47 (add_new_edges_to_heap): Likewise.
48 (heap_edge_removal_hook): Likewise.
49 (inline_small_functions): Likewise.
51 2014-11-18 Marek Polacek <polacek@redhat.com>
54 * asan.c (asan_global_struct): Create a TYPE_DECL for "__asan_global",
55 put it into TYPE_NAME and TYPE_STUB_DECL.
56 * ubsan.c (ubsan_type_descriptor_type): New variable.
57 Function renamed to ...
58 (ubsan_get_type_descriptor_type): ... this. Cache
59 return value in ubsan_type_descriptor_type variable.
60 Create a TYPE_DECL for "__ubsan_type_descriptor", put it into
61 TYPE_NAME and TYPE_STUB_DECL.
62 (ubsan_get_source_location_type): Create a TYPE_DECL for
63 "__ubsan_source_location", put it into TYPE_NAME and TYPE_STUB_DECL.
64 (ubsan_type_descriptor, ubsan_create_data): Call
65 ubsan_get_type_descriptor_type instead of ubsan_type_descriptor_type.
66 Create a TYPE_DECL for name, put it into TYPE_NAME and TYPE_STUB_DECL.
68 2014-11-18 Felix Yang <felix.yang@huawei.com>
70 * config/aarch64/aarch64.c (doloop_end): New pattern.
71 * config/aarch64/aarch64.md (TARGET_CAN_USE_DOLOOP_P): Implement.
73 2014-11-18 Jason Merrill <jason@redhat.com>
75 * tree.c (warn_deprecated_use): Show declaration with inform.
77 2014-11-18 Richard Biener <rguenther@suse.de>
79 PR tree-optimization/63914
80 * tree-ssa-ccp.c (canonicalize_value): Remove float value
82 (valid_lattice_transition): Allow (partial) transition
83 from NaN to non-NaN if !HONOR_NANS.
84 (set_lattice_value): Check for valid lattice transitions
85 only when checking is enabled.
87 2014-11-18 Bernd Schmidt <bernds@codesourcery.com>
89 * config/nvptx/nvptx.c: Include <sstream> directly after "config.h".
91 2014-11-18 Christophe Lyon <christophe.lyon@linaro.org>
93 * config/arm/neon-testgen.ml (emit_prologue): Handle new
94 compile_test_optim argument.
95 (emit_automatics): Rename to emit_variables. Support variable
96 indentation of its output.
97 (compile_test_optim): New function.
98 (test_intrinsic): Call compile_test_optim.
99 * config/arm/neon.ml (features): Add Compiler_optim.
100 (ops): Add Compiler_optim feature to Vbic and Vorn.
101 (type_in_crypto_only): Replace 'or' by '||'.
102 (reinterp): Likewise.
103 (reinterpq): Likewise.
105 2014-11-18 Alan Lawrence <alan.lawrence@arm.com>
107 * config/aarch64/arm_neon.h (vld1_dup_f32, vld1_dup_f64, vld1_dup_p8,
108 vld1_dup_p16, vld1_dup_s8, vld1_dup_s16, vld1_dup_s32, vld1_dup_s64,
109 vld1_dup_u8, vld1_dup_u16, vld1_dup_u32, vld1_dup_u64, vld1q_dup_f32,
110 vld1q_dup_f64, vld1q_dup_p8, vld1q_dup_p16, vld1q_dup_s8, vld1q_dup_s16,
111 vld1q_dup_s32, vld1q_dup_s64, vld1q_dup_u8, vld1q_dup_u16,
112 vld1q_dup_u32, vld1q_dup_u64): Replace inline asm with vdup_n_ and
115 2014-11-18 Marc Glisse <marc.glisse@inria.fr>
117 * tree.c (element_mode, integer_truep): New functions.
118 * tree.h (element_mode, integer_truep): Declare them.
119 * fold-const.c (negate_expr_p, fold_negate_expr, combine_comparisons,
120 fold_cond_expr_with_comparison, fold_real_zero_addition_p,
121 fold_comparison, fold_ternary_loc, tree_call_nonnegative_warnv_p,
122 fold_strip_sign_ops): Use element_mode.
123 (fold_binary_loc): Use element_mode and element_precision.
124 * match.pd: Use integer_truep, element_mode, element_precision,
125 VECTOR_TYPE_P and build_one_cst. Extend some transformations to
126 vectors. Simplify A/-A.
128 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
130 * config/arm/arm.md (unaligned_loaddi): Use std::swap instead of
131 manual swapping implementation.
132 (movcond_addsi): Likewise.
133 * config/arm/arm.c (arm_canonicalize_comparison): Likewise.
134 (arm_select_dominance_cc_mode): Likewise.
135 (arm_reload_out_hi): Likewise.
136 (gen_operands_ldrd_strd): Likewise.
137 (output_move_double): Likewise.
138 (arm_print_operand_address): Likewise.
139 (thumb_output_move_mem_multiple): Likewise.
142 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
144 * config/arm/arm-builtins.c (CONVERT_QUALIFIERS): Delete.
145 (COPYSIGNF_QUALIFIERS): Likewise.
146 (CREATE_QUALIFIERS): Likewise.
147 (DUP_QUALIFIERS): Likewise.
148 (FLOAT_WIDEN_QUALIFIERS): Likewise.
149 (FLOAT_NARROW_QUALIFIERS): Likewise.
150 (REINTERP_QUALIFIERS): Likewise.
151 (RINT_QUALIFIERS): Likewise.
152 (SPLIT_QUALIFIERS): Likewise.
153 (FIXCONV_QUALIFIERS): Likewise.
154 (SCALARMUL_QUALIFIERS): Likewise.
155 (SCALARMULL_QUALIFIERS): Likewise.
156 (SCALARMULH_QUALIFIERS): Likewise.
157 (SELECT_QUALIFIERS): Likewise.
158 (VTBX_QUALIFIERS): Likewise.
159 (SHIFTIMM_QUALIFIERS): Likewise.
160 (SCALARMAC_QUALIFIERS): Likewise.
161 (LANEMUL_QUALIFIERS): Likewise.
162 (LANEMULH_QUALIFIERS): Likewise.
163 (LANEMULL_QUALIFIERS): Likewise.
164 (SHIFTACC_QUALIFIERS): Likewise.
165 (SHIFTINSERT_QUALIFIERS): Likewise.
166 (VTBL_QUALIFIERS): Likewise.
167 (LOADSTRUCT_QUALIFIERS): Likewise.
168 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
169 (STORESTRUCT_QUALIFIERS): Likewise.
170 (STORESTRUCTLANE_QUALIFIERS): Likewise.
171 (neon_builtin_type_mode): Delete.
172 (v8qi_UP): Map to V8QImode.
173 (v8qi_UP): Map to V8QImode.
174 (v4hi_UP): Map to V4HImode.
175 (v4hf_UP): Map to V4HFmode.
176 (v2si_UP): Map to V2SImode.
177 (v2sf_UP): Map to V2SFmode.
178 (di_UP): Map to DImode.
179 (v16qi_UP): Map to V16QImode.
180 (v8hi_UP): Map to V8HImode.
181 (v4si_UP): Map to V4SImode.
182 (v4sf_UP): Map to V4SFmode.
183 (v2di_UP): Map to V2DImode.
184 (ti_UP): Map to TImode.
185 (ei_UP): Map to EImode.
186 (oi_UP): Map to OImode.
187 (neon_itype): Delete.
188 (neon_builtin_datum): Remove itype, make mode a machine_mode.
189 (VAR1): Update accordingly.
190 (arm_init_neon_builtins): Use machine_mode directly.
191 (neon_dereference_pointer): Likewise.
192 (arm_expand_neon_args): Use qualifiers to decide operand types.
193 (arm_expand_neon_builtin): Likewise.
194 * config/arm/arm_neon_builtins.def: Remap operation type for
197 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
199 * config/arm/arm-builtins.c (arm_scalar_builtin_types): New.
200 (enum arm_simd_type): Likewise.
201 (struct arm_simd_type_info): Likewise
202 (arm_mangle_builtin_scalar_type): Likewise.
203 (arm_mangle_builtin_vector_type): Likewise.
204 (arm_mangle_builtin_type): Likewise.
205 (arm_simd_builtin_std_type): Likewise.
206 (arm_lookup_simd_builtin_type): Likewise.
207 (arm_simd_builtin_type): Likewise.
208 (arm_init_simd_builtin_types): Likewise.
209 (arm_init_simd_builtin_scalar_types): Likewise.
210 (arm_init_neon_builtins): Rewrite using qualifiers.
211 * config/arm/arm-protos.h (arm_mangle_builtin_type): New.
212 * config/arm/arm-simd-builtin-types.def: New file.
213 * config/arm/t-arm (arm-builtins.o): Depend on it.
214 * config/arm/arm.c (arm_mangle_type): Call arm_mangle_builtin_type.
215 * config/arm/arm_neon.h (int8x8_t): Use new internal type.
216 (int16x4_t): Likewise.
217 (int32x2_t): Likewise.
218 (float16x4_t): Likewise.
219 (float32x2_t): Likewise.
220 (poly8x8_t): Likewise.
221 (poly16x4_t): Likewise.
222 (uint8x8_t): Likewise.
223 (uint16x4_t): Likewise.
224 (uint32x2_t): Likewise.
225 (int8x16_t): Likewise.
226 (int16x8_t): Likewise.
227 (int32x4_t): Likewise.
228 (int64x2_t): Likewise.
229 (float32x4_t): Likewise.
230 (poly8x16_t): Likewise.
231 (poly16x8_t): Likewise.
232 (uint8x16_t): Likewise.
233 (uint16x8_t): Likewise.
234 (uint32x4_t): Likewise.
235 (uint64x2_t): Likewise.
237 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
239 * gcc/config/arm/arm-builtins.c (arm_type_qualifiers): New.
240 (neon_itype): Add new types corresponding to the types used in
242 (arm_unop_qualifiers): New.
243 (arm_bswap_qualifiers): Likewise.
244 (arm_binop_qualifiers): Likewise.
245 (arm_ternop_qualifiers): Likewise.
246 (arm_getlane_qualifiers): Likewise.
247 (arm_lanemac_qualifiers): Likewise.
248 (arm_setlane_qualifiers): Likewise.
249 (arm_combine_qualifiers): Likewise.
250 (arm_load1_qualifiers): Likewise.
251 (arm_load1_lane_qualifiers): Likewise.
252 (arm_store1_qualifiers): Likewise.
253 (arm_storestruct_lane_qualifiers): Likewise.
254 (UNOP_QUALIFIERS): Likewise.
255 (DUP_QUALIFIERS): Likewise.
256 (SPLIT_QUALIFIERS): Likewise.
257 (CONVERT_QUALIFIERS): Likewise.
258 (FLOAT_WIDEN_QUALIFIERS): Likewise.
259 (FLOAT_NARROW_QUALIFIERS): Likewise.
260 (RINT_QUALIFIERS): Likewise.
261 (COPYSIGNF_QUALIFIERS): Likewise.
262 (CREATE_QUALIFIERS): Likewise.
263 (REINTERP_QUALIFIERS): Likewise.
264 (BSWAP_QUALIFIERS): Likewise.
265 (BINOP_QUALIFIERS): Likewise.
266 (FIXCONV_QUALIFIERS): Likewise.
267 (SCALARMUL_QUALIFIERS): Likewise.
268 (SCALARMULL_QUALIFIERS): Likewise.
269 (SCALARMULH_QUALIFIERS): Likewise.
270 (TERNOP_QUALIFIERS): Likewise.
271 (SELECT_QUALIFIERS): Likewise.
272 (VTBX_QUALIFIERS): Likewise.
273 (GETLANE_QUALIFIERS): Likewise.
274 (SHIFTIMM_QUALIFIERS): Likewise.
275 (LANEMAC_QUALIFIERS): Likewise.
276 (SCALARMAC_QUALIFIERS): Likewise.
277 (SETLANE_QUALIFIERS): Likewise.
278 (SHIFTINSERT_QUALIFIERS): Likewise.
279 (SHIFTACC_QUALIFIERS): Likewise.
280 (LANEMUL_QUALIFIERS): Likewise.
281 (LANEMULL_QUALIFIERS): Likewise.
282 (LANEMULH_QUALIFIERS): Likewise.
283 (COMBINE_QUALIFIERS): Likewise.
284 (VTBL_QUALIFIERS): Likewise.
285 (LOAD1_QUALIFIERS): Likewise.
286 (LOADSTRUCT_QUALIFIERS): Likewise.
287 (LOAD1LANE_QUALIFIERS): Likewise.
288 (LOADSTRUCTLANE_QUALIFIERS): Likewise.
289 (STORE1_QUALIFIERS): Likewise.
290 (STORESTRUCT_QUALIFIERS): Likewise.
291 (STORE1LANE_QUALIFIERS): Likewise.
292 (STORESTRUCTLANE_QUALIFIERS): Likewise.
293 (neon_builtin_datum): Keep track of qualifiers.
296 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
298 * config/arm/arm-builtins.c (VAR1): Add a comma.
299 (VAR2): Rewrite in terms of VAR1.
301 (arm_builtins): Remove leading comma before ARM_BUILTIN_MAX.
302 * config/arm/arm_neon_builtins.def: Remove trailing commas.
304 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
306 * config.gcc (extra_objs): Add arm-builtins.o for arm*-*-*.
307 (target_gtfiles): Add config/arm/arm-builtins.c for arm*-*-*.
308 * config/arm/arm-builtins.c: New.
309 * config/arm/t-arm (arm_builtins.o): New.
310 * config/arm/arm-protos.h (arm_expand_builtin): New.
311 (arm_builtin_decl): Likewise.
312 (arm_init_builtins): Likewise.
313 (arm_atomic_assign_expand_fenv): Likewise.
314 * config/arm/arm.c (arm_atomic_assign_expand_fenv): Remove prototype.
315 (arm_init_builtins): Likewise.
316 (arm_init_iwmmxt_builtins): Likewise
317 (safe_vector_operand): Likewise
318 (arm_expand_binop_builtin): Likewise
319 (arm_expand_unop_builtin): Likewise
320 (arm_expand_builtin): Likewise
321 (arm_builtin_decl): Likewise
322 (insn_flags): Remove static.
323 (tune_flags): Likewise.
324 (enum arm_builtins): Move to config/arm/arm-builtins.c.
325 (arm_init_neon_builtins): Likewise.
326 (struct builtin_description): Likewise.
327 (arm_init_iwmmxt_builtins): Likewise.
328 (arm_init_fp16_builtins): Likewise.
329 (arm_init_crc32_builtins): Likewise.
330 (arm_init_builtins): Likewise.
331 (arm_builtin_decl): Likewise.
332 (safe_vector_operand): Likewise.
333 (arm_expand_ternop_builtin): Likewise.
334 (arm_expand_binop_builtin): Likewise.
335 (arm_expand_unop_builtin): Likewise.
336 (neon_dereference_pointer): Likewise.
337 (arm_expand_neon_args): Likewise.
338 (arm_expand_neon_builtin): Likewise.
339 (neon_split_vcombine): Likewise.
340 (arm_expand_builtin): Likewise.
341 (arm_builtin_vectorized_function): Likewise.
342 (arm_atomic_assign_expand_fenv): Likewise.
344 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
346 * config/arm/t-arm (arm.o): Include arm-protos.h in the recipe.
347 * config/arm/arm.c (FL_CO_PROC): Move to arm-protos.h.
348 (FL_ARCH3M): Likewise.
349 (FL_MODE26): Likewise.
350 (FL_MODE32): Likewise.
351 (FL_ARCH4): Likewise.
352 (FL_ARCH5): Likewise.
353 (FL_THUMB): Likewise.
354 (FL_LDSCHED): Likewise.
355 (FL_STRONG): Likewise.
356 (FL_ARCH5E): Likewise.
357 (FL_XSCALE): Likewise.
358 (FL_ARCH6): Likewise.
359 (FL_VFPV2): Likewise.
361 (FL_ARCH6K): Likewise.
362 (FL_THUMB2): Likewise.
364 (FL_THUMB_DIV): Likewise.
365 (FL_VFPV3): Likewise.
367 (FL_ARCH7EM): Likewise.
368 (FL_ARCH7): Likewise.
369 (FL_ARM_DIV): Likewise.
370 (FL_ARCH8): Likewise.
371 (FL_CRC32): Likewise.
372 (FL_SMALLMUL): Likewise.
373 (FL_IWMMXT): Likewise.
374 (FL_IWMMXT2): Likewise.
376 (FL_FOR_ARCH2): Likewise.
377 (FL_FOR_ARCH3): Likewise.
378 (FL_FOR_ARCH3M): Likewise.
379 (FL_FOR_ARCH4): Likewise.
380 (FL_FOR_ARCH4T): Likewise.
381 (FL_FOR_ARCH5): Likewise.
382 (FL_FOR_ARCH5T): Likewise.
383 (FL_FOR_ARCH5E): Likewise.
384 (FL_FOR_ARCH5TE): Likewise.
385 (FL_FOR_ARCH5TEJ): Likewise.
386 (FL_FOR_ARCH6): Likewise.
387 (FL_FOR_ARCH6J): Likewise.
388 (FL_FOR_ARCH6K): Likewise.
389 (FL_FOR_ARCH6Z): Likewise.
390 (FL_FOR_ARCH6ZK): Likewise.
391 (FL_FOR_ARCH6T2): Likewise.
392 (FL_FOR_ARCH6M): Likewise.
393 (FL_FOR_ARCH7): Likewise.
394 (FL_FOR_ARCH7A): Likewise.
395 (FL_FOR_ARCH7VE): Likewise.
396 (FL_FOR_ARCH7R): Likewise.
397 (FL_FOR_ARCH7M): Likewise.
398 (FL_FOR_ARCH7EM): Likewise.
399 (FL_FOR_ARCH8A): Likewise.
400 * config/arm/arm-protos.h: Take definitions moved from arm.c.
402 2014-11-18 James Greenhalgh <james.greenhalgh@arm.com>
404 * config/arm/arm.c (arm_expand_neon_builtin): Remove "Magic Word"
405 parameter, rearrange switch statement accordingly.
406 (arm_evpc_neon_vrev): Remove "Magic Word".
407 * config/arm/unspecs.md (unspec): Split many UNSPECs to
408 rounding, or signed/unsigned variants.
409 * config/arm/neon.md (vcond<mode><mode>): Remove "Magic Word" code.
410 (vcondu<mode><mode>): Likewise.
411 (neon_vadd): Remove "Magic Word" operand.
412 (neon_vaddl): Remove "Magic Word" operand, convert to use
413 signed/unsigned iterator.
414 (neon_vaddw): Likewise.
415 (neon_vhadd): Likewise, also iterate over "rounding" forms.
416 (neon_vqadd): Remove "Magic Word" operand, convert to use
417 signed/unsigned iterator.
418 (neon_v<r>addhn): Remove "Magic Word" operand, convert to iterate
419 over "rounding" forms.
420 (neon_vmul): Remove "Magic Word" operand, iterate over
421 polynomial/float instruction forms.
422 (neon_vmla): Remove "Magic Word" operand.
423 (neon_vfma): Likewise.
424 (neon_vfms): Likewise.
425 (neon_vmls): Likewise.
426 (neon_vmlal): Remove "Magic Word" operand, iterate over
427 signed/unsigned forms.
428 (neon_vmlsl): Likewise.
429 (neon_vqdmulh): Remove "Magic Word" operand, iterate over "rounding"
431 (neon_vqdmlal): Remove "Magic Word" operand, iterate over
432 signed/unsigned forms.
433 (neon_vqdmlsl): Likewise.
434 (neon_vmull): Likewise.
435 (neon_vqdmull): Remove "Magic Word" operand.
436 (neon_vsub): Remove "Magic Word" operand.
437 (neon_vsubl): Remove "Magic Word" operand, convert to use
438 signed/unsigned iterator.
439 (neon_vsubw): Likewise.
440 (neon_vhsub): Likewise.
441 (neon_vqsub): Likewise.
442 (neon_v<r>subhn): Remove "Magic Word" operand, convert to iterate
443 over "rounding" forms.
444 (neon_vceq): Remove "Magic Word" operand.
445 (neon_vcge): Likewise.
446 (neon_vcgeu): Likewise.
447 (neon_vcgt): Likewise.
448 (neon_vcgtu): Likewise.
449 (neon_vcle): Likewise.
450 (neon_vclt): Likewise.
451 (neon_vcage): Likewise.
452 (neon_vcagt): Likewise.
453 (neon_vabd): Remove "Magic Word" operand, iterate over
454 signed/unsigned forms, and split out...
455 (neon_vabdf): ...this as new.
456 (neon_vabdl): Remove "Magic Word" operand, iterate over
457 signed/unsigned forms.
458 (neon_vaba): Likewise.
459 (neon_vmax): Remove "Magic Word" operand, iterate over
460 signed/unsigned and max/min forms, and split out...
461 (neon_v<maxmin>f): ...this as new.
463 (neon_vpadd): Remove "Magic Word" operand.
464 (neon_vpaddl): Remove "Magic Word" operand, iterate over
465 signed/unsigned variants.
466 (neon_vpadal): Likewise.
467 (neon_vpmax): Remove "Magic Word" operand, iterate over
468 signed/unsigned and max/min forms, and split out...
469 (neon_vp<maxmin>f): ...this as new.
470 (neon_vpmin): Delete.
471 (neon_vrecps): Remove "Magic Word" operand.
472 (neon_vrsqrts): Likewise.
473 (neon_vabs): Likewise.
474 (neon_vqabs): Likewise.
475 (neon_vneg): Likewise.
476 (neon_vqneg): Likewise.
477 (neon_vcls): Likewise.
478 (neon_vcnt): Likewise.
479 (neon_vrecpe): Likewise.
480 (neon_vrsqrte): Likewise.
481 (neon_vmvn): Likewise.
482 (neon_vget_lane): Likewise.
483 (neon_vget_laneu): New.
484 (neon_vget_lanedi): Remove "Magic Word" operand.
485 (neon_vget_lanev2di): Likewise.
486 (neon_vcvt): Remove "Magic Word" operand, iterate over
487 signed/unsigned variants.
488 (neon_vcvt_n): Likewise.
489 (neon_vmovn): Remove "Magic Word" operand.
490 (neon_vqmovn): Remove "Magic Word" operand, iterate over
491 signed/unsigned variants.
492 (neon_vmovun): Remove "Magic Word" operand.
493 (neon_vmovl): Remove "Magic Word" operand, iterate over
494 signed/unsigned variants.
495 (neon_vmul_lane): Remove "Magic Word" operand.
496 (neon_vmull_lane): Remove "Magic Word" operand, iterate over
497 signed/unsigned variants.
498 (neon_vqdmull_lane): Remove "Magic Word" operand.
499 (neon_vqdmulh_lane): Remove "Magic Word" operand, iterate over
501 (neon_vmla_lane): Remove "Magic Word" operand.
502 (neon_vmlal_lane): Remove "Magic Word" operand, iterate over
503 signed/unsigned variants.
504 (neon_vqdmlal_lane): Remove "Magic Word" operand.
505 (neon_vmls_lane): Likewise.
506 (neon_vmlsl_lane): Remove "Magic Word" operand, iterate over
507 signed/unsigned variants.
508 (neon_vqdmlsl_lane): Remove "Magic Word" operand.
509 (neon_vmul_n): Remove "Magic Word" operand.
510 (neon_vmull_n): Rename to...
511 (neon_vmulls_n): ...this, remove "Magic Word" operand.
512 (neon_vmullu_n): New.
513 (neon_vqdmull_n): Remove "Magic Word" operand.
514 (neon_vqdmulh_n): Likewise.
515 (neon_vqrdmulh_n): New.
516 (neon_vmla_n): Remove "Magic Word" operand.
517 (neon_vmls_n): Likewise.
518 (neon_vmlal_n): Rename to...
519 (neon_vmlals_n): ...this, remove "Magic Word" operand.
520 (neon_vmlalu_n): New.
521 (neon_vqdmlal_n): Remove "Magic Word" operand.
522 (neon_vmlsl_n): Rename to...
523 (neon_vmlsls_n): ...this, remove "Magic Word" operand.
524 (neon_vmlslu_n): New.
525 (neon_vqdmlsl_n): Remove "Magic Word" operand.
526 (neon_vrev64): Remove "Magic Word" operand.
527 (neon_vrev32): Likewise.
528 (neon_vrev16): Likewise.
529 (neon_vshl): Remove "Magic Word" operand, iterate over
530 signed/unsigned and "rounding" forms.
531 (neon_vqshl): Likewise.
532 (neon_vshr_n): Likewise.
533 (neon_vshrn_n): Remove "Magic Word" operand, iterate over
535 (neon_vqshrn_n): Remove "Magic Word" operand, iterate over
536 signed/unsigned and "rounding" forms.
537 (neon_vqshrun_n): Remove "Magic Word" operand, iterate over
539 (neon_vshl_n): Remove "Magic Word" operand.
540 (neon_vqshl_n): Remove "Magic Word" operand, iterate over
541 signed/unsigned variants.
542 (neon_vqshlu_n): Remove "Magic Word" operand.
543 (neon_vshll_n): Remove "Magic Word" operand, iterate over
544 signed/unsigned variants.
545 (neon_vsra_n): Remove "Magic Word" operand, iterate over
546 signed/unsigned and "rounding" forms.
547 * config/arm/iterators.md (VPF): New.
554 (VMLAL_LANE): Likewise.
556 (VMLSL_LANE): Likewise.
558 (VQDMULH_LANE): Likewise.
560 (VMULL_LANE): Likewise.
569 (VMAXMINF): Likewise.
572 (VPMAXMIN): Likewise.
573 (VPMAXMINF): Likewise.
575 (VCVT_US_N): Likewise.
582 (VQSHRN_N): Likewise.
583 (VQSHRUN_N): Likewise.
591 (shift_op): Likewise.
592 * config/arm/arm_neon_builtins.def (vaddl): Split to...
593 (vaddls): ...this and...
596 (vaddws): ...this and...
599 (vhadds): ...this and...
600 (vhaddu): ...this and...
601 (vrhadds): ...this and...
604 (vqadds): ...this and...
606 (vaddhn): Split to itself and...
609 (vmulf): ...this and...
612 (vmlals): ...this and...
615 (vmlsls): ...this and...
617 (vqdmulh): Split to itself and...
620 (vmullp): ...this and...
621 (vmulls): ...this and...
623 (vmull_n): Split to...
624 (vmulls_n): ...this and...
626 (vmull_lane): Split to...
627 (vmulls_lane): ...this and...
628 (vmullu_lane): ...this.
629 (vqdmulh_n): Split to itself and...
630 (vqrdmulh_n): ...this.
631 (vqdmulh_lane): Split to itself and...
632 (vqrdmulh_lane): ...this.
634 (vshls): ...this and...
635 (vshlu): ...this and...
636 (vrshls): ...this and...
639 (vqshls): ...this and...
640 (vqrshlu): ...this and...
641 (vqrshls): ...this and...
643 (vshr_n): Split to...
644 (vshrs_n): ...this and...
645 (vshru_n): ...this and...
646 (vrshrs_n): ...this and...
648 (vshrn_n): Split to itself and...
650 (vqshrn_n): Split to...
651 (vqshrns_n): ...this and...
652 (vqshrnu_n): ...this and...
653 (vqrshrns_n): ...this and...
654 (vqrshrnu_n): ...this.
655 (vqshrun_n): Split to itself and...
656 (vqrshrun_n): ...this.
657 (vqshl_n): Split to...
658 (vqshl_s_n): ...this and...
659 (vqshl_u_n): ...this.
660 (vshll_n): Split to...
661 (vshlls_n): ...this and...
663 (vsra_n): Split to...
664 (vsras_n): ...this and...
665 (vsrau_n): ...this and.
666 (vrsras_n): ...this and...
667 (vrsrau_n): ...this and.
669 (vsubls): ...this and...
672 (vsubws): ...this and...
675 (vqsubs): ...this and...
678 (vhsubs): ...this and...
680 (vsubhn): Split to itself and...
683 (vabds): ...this and...
684 (vabdu): ...this and...
687 (vabdls): ...this and...
690 (vabas): ...this and...
691 (vabau): ...this and...
693 (vabals): ...this and...
696 (vmaxs): ...this and...
697 (vmaxu): ...this and...
700 (vmins): ...this and...
701 (vminu): ...this and...
704 (vpmaxs): ...this and...
705 (vpmaxu): ...this and...
708 (vpmins): ...this and...
709 (vpminu): ...this and...
711 (vpaddl): Split to...
712 (vpaddls): ...this and...
714 (vpadal): Split to...
715 (vpadals): ...this and...
718 (vqmovn): Split to...
719 (vqmovns): ...this and...
722 (vmovls): ...this and...
724 (vmlal_lane): Split to...
725 (vmlals_lane): ...this and...
726 (vmlalu_lane): ...this.
727 (vmlsl_lane): Split to...
728 (vmlsls_lane): ...this and...
729 (vmlslu_lane): ...this.
730 (vmlal_n): Split to...
731 (vmlals_n): ...this and...
733 (vmlsl_n): Split to...
734 (vmlsls_n): ...this and...
736 (vext): Make type "SHIFTINSERT".
738 (vcvts): ...this and...
740 (vcvt_n): Split to...
741 (vcvts_n): ...this and...
743 * config/arm/arm_neon.h (vaddl_s8): Remove "Magic Word".
744 (vaddl_s16): Likewise.
745 (vaddl_s32): Likewise.
746 (vaddl_u8): Likewise.
747 (vaddl_u16): Likewise.
748 (vaddl_u32): Likewise.
749 (vaddw_s8): Likewise.
750 (vaddw_s16): Likewise.
751 (vaddw_s32): Likewise.
752 (vaddw_u8): Likewise.
753 (vaddw_u16): Likewise.
754 (vaddw_u32): Likewise.
755 (vhadd_s8): Likewise.
756 (vhadd_s16): Likewise.
757 (vhadd_s32): Likewise.
758 (vhadd_u8): Likewise.
759 (vhadd_u16): Likewise.
760 (vhadd_u32): Likewise.
761 (vhaddq_s8): Likewise.
762 (vhaddq_s16): Likewise.
763 (vhaddq_s32): Likewise.
764 (vhaddq_u8): Likewise.
765 (vhaddq_u16): Likewise.
766 (vrhadd_s8): Likewise.
767 (vrhadd_s16): Likewise.
768 (vrhadd_s32): Likewise.
769 (vrhadd_u8): Likewise.
770 (vrhadd_u16): Likewise.
771 (vrhadd_u32): Likewise.
772 (vrhaddq_s8): Likewise.
773 (vrhaddq_s16): Likewise.
774 (vrhaddq_s32): Likewise.
775 (vrhaddq_u8): Likewise.
776 (vrhaddq_u16): Likewise.
777 (vrhaddq_u32): Likewise.
778 (vqadd_s8): Likewise.
779 (vqadd_s16): Likewise.
780 (vqadd_s32): Likewise.
781 (vqadd_s64): Likewise.
782 (vqadd_u8): Likewise.
783 (vqadd_u16): Likewise.
784 (vqadd_u32): Likewise.
785 (vqadd_u64): Likewise.
786 (vqaddq_s8): Likewise.
787 (vqaddq_s16): Likewise.
788 (vqaddq_s32): Likewise.
789 (vqaddq_s64): Likewise.
790 (vqaddq_u8): Likewise.
791 (vqaddq_u16): Likewise.
792 (vqaddq_u32): Likewise.
793 (vqaddq_u64): Likewise.
794 (vaddhn_s16): Likewise.
795 (vaddhn_s32): Likewise.
796 (vaddhn_s64): Likewise.
797 (vaddhn_u16): Likewise.
798 (vaddhn_u32): Likewise.
799 (vaddhn_u64): Likewise.
800 (vraddhn_s16): Likewise.
801 (vraddhn_s32): Likewise.
802 (vraddhn_s64): Likewise.
803 (vraddhn_u16): Likewise.
804 (vraddhn_u32): Likewise.
805 (vraddhn_u64): Likewise.
807 (vmulq_p8): Likewise.
808 (vqdmulh_s16): Likewise.
809 (vqdmulh_s32): Likewise.
810 (vqdmulhq_s16): Likewise.
811 (vqdmulhq_s32): Likewise.
812 (vqrdmulh_s16): Likewise.
813 (vqrdmulh_s32): Likewise.
814 (vqrdmulhq_s16): Likewise.
815 (vqrdmulhq_s32): Likewise.
816 (vmull_s8): Likewise.
817 (vmull_s16): Likewise.
818 (vmull_s32): Likewise.
819 (vmull_u8): Likewise.
820 (vmull_u16): Likewise.
821 (vmull_u32): Likewise.
822 (vmull_p8): Likewise.
823 (vqdmull_s16): Likewise.
824 (vqdmull_s32): Likewise.
826 (vmla_s16): Likewise.
827 (vmla_s32): Likewise.
828 (vmla_f32): Likewise.
830 (vmla_u16): Likewise.
831 (vmla_u32): Likewise.
832 (vmlaq_s8): Likewise.
833 (vmlaq_s16): Likewise.
834 (vmlaq_s32): Likewise.
835 (vmlaq_f32): Likewise.
836 (vmlaq_u8): Likewise.
837 (vmlaq_u16): Likewise.
838 (vmlaq_u32): Likewise.
839 (vmlal_s8): Likewise.
840 (vmlal_s16): Likewise.
841 (vmlal_s32): Likewise.
842 (vmlal_u8): Likewise.
843 (vmlal_u16): Likewise.
844 (vmlal_u32): Likewise.
845 (vqdmlal_s16): Likewise.
846 (vqdmlal_s32): Likewise.
848 (vmls_s16): Likewise.
849 (vmls_s32): Likewise.
850 (vmls_f32): Likewise.
852 (vmls_u16): Likewise.
853 (vmls_u32): Likewise.
854 (vmlsq_s8): Likewise.
855 (vmlsq_s16): Likewise.
856 (vmlsq_s32): Likewise.
857 (vmlsq_f32): Likewise.
858 (vmlsq_u8): Likewise.
859 (vmlsq_u16): Likewise.
860 (vmlsq_u32): Likewise.
861 (vmlsl_s8): Likewise.
862 (vmlsl_s16): Likewise.
863 (vmlsl_s32): Likewise.
864 (vmlsl_u8): Likewise.
865 (vmlsl_u16): Likewise.
866 (vmlsl_u32): Likewise.
867 (vqdmlsl_s16): Likewise.
868 (vqdmlsl_s32): Likewise.
869 (vfma_f32): Likewise.
870 (vfmaq_f32): Likewise.
871 (vfms_f32): Likewise.
872 (vfmsq_f32): Likewise.
873 (vsubl_s8): Likewise.
874 (vsubl_s16): Likewise.
875 (vsubl_s32): Likewise.
876 (vsubl_u8): Likewise.
877 (vsubl_u16): Likewise.
878 (vsubl_u32): Likewise.
879 (vsubw_s8): Likewise.
880 (vsubw_s16): Likewise.
881 (vsubw_s32): Likewise.
882 (vsubw_u8): Likewise.
883 (vsubw_u16): Likewise.
884 (vsubw_u32): Likewise.
885 (vhsub_s8): Likewise.
886 (vhsub_s16): Likewise.
887 (vhsub_s32): Likewise.
888 (vhsub_u8): Likewise.
889 (vhsub_u16): Likewise.
890 (vhsub_u32): Likewise.
891 (vhsubq_s8): Likewise.
892 (vhsubq_s16): Likewise.
893 (vhsubq_s32): Likewise.
894 (vhsubq_u8): Likewise.
895 (vhsubq_u16): Likewise.
896 (vhsubq_u32): Likewise.
897 (vqsub_s8): Likewise.
898 (vqsub_s16): Likewise.
899 (vqsub_s32): Likewise.
900 (vqsub_s64): Likewise.
901 (vqsub_u8): Likewise.
902 (vqsub_u16): Likewise.
903 (vqsub_u32): Likewise.
904 (vqsub_u64): Likewise.
905 (vqsubq_s8): Likewise.
906 (vqsubq_s16): Likewise.
907 (vqsubq_s32): Likewise.
908 (vqsubq_s64): Likewise.
909 (vqsubq_u8): Likewise.
910 (vqsubq_u16): Likewise.
911 (vqsubq_u32): Likewise.
912 (vqsubq_u64): Likewise.
913 (vsubhn_s16): Likewise.
914 (vsubhn_s32): Likewise.
915 (vsubhn_s64): Likewise.
916 (vsubhn_u16): Likewise.
917 (vsubhn_u32): Likewise.
918 (vsubhn_u64): Likewise.
919 (vrsubhn_s16): Likewise.
920 (vrsubhn_s32): Likewise.
921 (vrsubhn_s64): Likewise.
922 (vrsubhn_u16): Likewise.
923 (vrsubhn_u32): Likewise.
924 (vrsubhn_u64): Likewise.
926 (vceq_s16): Likewise.
927 (vceq_s32): Likewise.
928 (vceq_f32): Likewise.
930 (vceq_u16): Likewise.
931 (vceq_u32): Likewise.
933 (vceqq_s8): Likewise.
934 (vceqq_s16): Likewise.
935 (vceqq_s32): Likewise.
936 (vceqq_f32): Likewise.
937 (vceqq_u8): Likewise.
938 (vceqq_u16): Likewise.
939 (vceqq_u32): Likewise.
940 (vceqq_p8): Likewise.
942 (vcge_s16): Likewise.
943 (vcge_s32): Likewise.
944 (vcge_f32): Likewise.
946 (vcge_u16): Likewise.
947 (vcge_u32): Likewise.
948 (vcgeq_s8): Likewise.
949 (vcgeq_s16): Likewise.
950 (vcgeq_s32): Likewise.
951 (vcgeq_f32): Likewise.
952 (vcgeq_u8): Likewise.
953 (vcgeq_u16): Likewise.
954 (vcgeq_u32): Likewise.
956 (vcle_s16): Likewise.
957 (vcle_s32): Likewise.
958 (vcle_f32): Likewise.
960 (vcle_u16): Likewise.
961 (vcle_u32): Likewise.
962 (vcleq_s8): Likewise.
963 (vcleq_s16): Likewise.
964 (vcleq_s32): Likewise.
965 (vcleq_f32): Likewise.
966 (vcleq_u8): Likewise.
967 (vcleq_u16): Likewise.
968 (vcleq_u32): Likewise.
970 (vcgt_s16): Likewise.
971 (vcgt_s32): Likewise.
972 (vcgt_f32): Likewise.
974 (vcgt_u16): Likewise.
975 (vcgt_u32): Likewise.
976 (vcgtq_s8): Likewise.
977 (vcgtq_s16): Likewise.
978 (vcgtq_s32): Likewise.
979 (vcgtq_f32): Likewise.
980 (vcgtq_u8): Likewise.
981 (vcgtq_u16): Likewise.
982 (vcgtq_u32): Likewise.
984 (vclt_s16): Likewise.
985 (vclt_s32): Likewise.
986 (vclt_f32): Likewise.
988 (vclt_u16): Likewise.
989 (vclt_u32): Likewise.
990 (vcltq_s8): Likewise.
991 (vcltq_s16): Likewise.
992 (vcltq_s32): Likewise.
993 (vcltq_f32): Likewise.
994 (vcltq_u8): Likewise.
995 (vcltq_u16): Likewise.
996 (vcltq_u32): Likewise.
997 (vcage_f32): Likewise.
998 (vcageq_f32): Likewise.
999 (vcale_f32): Likewise.
1000 (vcaleq_f32): Likewise.
1001 (vcagt_f32): Likewise.
1002 (vcagtq_f32): Likewise.
1003 (vcalt_f32): Likewise.
1004 (vcaltq_f32): Likewise.
1005 (vtst_s8): Likewise.
1006 (vtst_s16): Likewise.
1007 (vtst_s32): Likewise.
1008 (vtst_u8): Likewise.
1009 (vtst_u16): Likewise.
1010 (vtst_u32): Likewise.
1011 (vtst_p8): Likewise.
1012 (vtstq_s8): Likewise.
1013 (vtstq_s16): Likewise.
1014 (vtstq_s32): Likewise.
1015 (vtstq_u8): Likewise.
1016 (vtstq_u16): Likewise.
1017 (vtstq_u32): Likewise.
1018 (vtstq_p8): Likewise.
1019 (vabd_s8): Likewise.
1020 (vabd_s16): Likewise.
1021 (vabd_s32): Likewise.
1022 (vabd_f32): Likewise.
1023 (vabd_u8): Likewise.
1024 (vabd_u16): Likewise.
1025 (vabd_u32): Likewise.
1026 (vabdq_s8): Likewise.
1027 (vabdq_s16): Likewise.
1028 (vabdq_s32): Likewise.
1029 (vabdq_f32): Likewise.
1030 (vabdq_u8): Likewise.
1031 (vabdq_u16): Likewise.
1032 (vabdq_u32): Likewise.
1033 (vabdl_s8): Likewise.
1034 (vabdl_s16): Likewise.
1035 (vabdl_s32): Likewise.
1036 (vabdl_u8): Likewise.
1037 (vabdl_u16): Likewise.
1038 (vabdl_u32): Likewise.
1039 (vaba_s8): Likewise.
1040 (vaba_s16): Likewise.
1041 (vaba_s32): Likewise.
1042 (vaba_u8): Likewise.
1043 (vaba_u16): Likewise.
1044 (vaba_u32): Likewise.
1045 (vabaq_s8): Likewise.
1046 (vabaq_s16): Likewise.
1047 (vabaq_s32): Likewise.
1048 (vabaq_u8): Likewise.
1049 (vabaq_u16): Likewise.
1050 (vabaq_u32): Likewise.
1051 (vabal_s8): Likewise.
1052 (vabal_s16): Likewise.
1053 (vabal_s32): Likewise.
1054 (vabal_u8): Likewise.
1055 (vabal_u16): Likewise.
1056 (vabal_u32): Likewise.
1057 (vmax_s8): Likewise.
1058 (vmax_s16): Likewise.
1059 (vmax_s32): Likewise.
1060 (vmax_f32): Likewise.
1061 (vmax_u8): Likewise.
1062 (vmax_u16): Likewise.
1063 (vmax_u32): Likewise.
1064 (vmaxq_s8): Likewise.
1065 (vmaxq_s16): Likewise.
1066 (vmaxq_s32): Likewise.
1067 (vmaxq_f32): Likewise.
1068 (vmaxq_u8): Likewise.
1069 (vmaxq_u16): Likewise.
1070 (vmaxq_u32): Likewise.
1071 (vmin_s8): Likewise.
1072 (vmin_s16): Likewise.
1073 (vmin_s32): Likewise.
1074 (vmin_f32): Likewise.
1075 (vmin_u8): Likewise.
1076 (vmin_u16): Likewise.
1077 (vmin_u32): Likewise.
1078 (vminq_s8): Likewise.
1079 (vminq_s16): Likewise.
1080 (vminq_s32): Likewise.
1081 (vminq_f32): Likewise.
1082 (vminq_u8): Likewise.
1083 (vminq_u16): Likewise.
1084 (vminq_u32): Likewise.
1085 (vpadd_s8): Likewise.
1086 (vpadd_s16): Likewise.
1087 (vpadd_s32): Likewise.
1088 (vpadd_f32): Likewise.
1089 (vpadd_u8): Likewise.
1090 (vpadd_u16): Likewise.
1091 (vpadd_u32): Likewise.
1092 (vpaddl_s8): Likewise.
1093 (vpaddl_s16): Likewise.
1094 (vpaddl_s32): Likewise.
1095 (vpaddl_u8): Likewise.
1096 (vpaddl_u16): Likewise.
1097 (vpaddl_u32): Likewise.
1098 (vpaddlq_s8): Likewise.
1099 (vpaddlq_s16): Likewise.
1100 (vpaddlq_s32): Likewise.
1101 (vpaddlq_u8): Likewise.
1102 (vpaddlq_u16): Likewise.
1103 (vpaddlq_u32): Likewise.
1104 (vpadal_s8): Likewise.
1105 (vpadal_s16): Likewise.
1106 (vpadal_s32): Likewise.
1107 (vpadal_u8): Likewise.
1108 (vpadal_u16): Likewise.
1109 (vpadal_u32): Likewise.
1110 (vpadalq_s8): Likewise.
1111 (vpadalq_s16): Likewise.
1112 (vpadalq_s32): Likewise.
1113 (vpadalq_u8): Likewise.
1114 (vpadalq_u16): Likewise.
1115 (vpadalq_u32): Likewise.
1116 (vpmax_s8): Likewise.
1117 (vpmax_s16): Likewise.
1118 (vpmax_s32): Likewise.
1119 (vpmax_f32): Likewise.
1120 (vpmax_u8): Likewise.
1121 (vpmax_u16): Likewise.
1122 (vpmax_u32): Likewise.
1123 (vpmin_s8): Likewise.
1124 (vpmin_s16): Likewise.
1125 (vpmin_s32): Likewise.
1126 (vpmin_f32): Likewise.
1127 (vpmin_u8): Likewise.
1128 (vpmin_u16): Likewise.
1129 (vpmin_u32): Likewise.
1130 (vrecps_f32): Likewise.
1131 (vrecpsq_f32): Likewise.
1132 (vrsqrts_f32): Likewise.
1133 (vrsqrtsq_f32): Likewise.
1134 (vshl_s8): Likewise.
1135 (vshl_s16): Likewise.
1136 (vshl_s32): Likewise.
1137 (vshl_s64): Likewise.
1138 (vshl_u8): Likewise.
1139 (vshl_u16): Likewise.
1140 (vshl_u32): Likewise.
1141 (vshl_u64): Likewise.
1142 (vshlq_s8): Likewise.
1143 (vshlq_s16): Likewise.
1144 (vshlq_s32): Likewise.
1145 (vshlq_s64): Likewise.
1146 (vshlq_u8): Likewise.
1147 (vshlq_u16): Likewise.
1148 (vshlq_u32): Likewise.
1149 (vshlq_u64): Likewise.
1150 (vrshl_s8): Likewise.
1151 (vrshl_s16): Likewise.
1152 (vrshl_s32): Likewise.
1153 (vrshl_s64): Likewise.
1154 (vrshl_u8): Likewise.
1155 (vrshl_u16): Likewise.
1156 (vrshl_u32): Likewise.
1157 (vrshl_u64): Likewise.
1158 (vrshlq_s8): Likewise.
1159 (vrshlq_s16): Likewise.
1160 (vrshlq_s32): Likewise.
1161 (vrshlq_s64): Likewise.
1162 (vrshlq_u8): Likewise.
1163 (vrshlq_u16): Likewise.
1164 (vrshlq_u32): Likewise.
1165 (vrshlq_u64): Likewise.
1166 (vqshl_s8): Likewise.
1167 (vqshl_s16): Likewise.
1168 (vqshl_s32): Likewise.
1169 (vqshl_s64): Likewise.
1170 (vqshl_u8): Likewise.
1171 (vqshl_u16): Likewise.
1172 (vqshl_u32): Likewise.
1173 (vqshl_u64): Likewise.
1174 (vqshlq_s8): Likewise.
1175 (vqshlq_s16): Likewise.
1176 (vqshlq_s32): Likewise.
1177 (vqshlq_s64): Likewise.
1178 (vqshlq_u8): Likewise.
1179 (vqshlq_u16): Likewise.
1180 (vqshlq_u32): Likewise.
1181 (vqshlq_u64): Likewise.
1182 (vqrshl_s8): Likewise.
1183 (vqrshl_s16): Likewise.
1184 (vqrshl_s32): Likewise.
1185 (vqrshl_s64): Likewise.
1186 (vqrshl_u8): Likewise.
1187 (vqrshl_u16): Likewise.
1188 (vqrshl_u32): Likewise.
1189 (vqrshl_u64): Likewise.
1190 (vqrshlq_s8): Likewise.
1191 (vqrshlq_s16): Likewise.
1192 (vqrshlq_s32): Likewise.
1193 (vqrshlq_s64): Likewise.
1194 (vqrshlq_u8): Likewise.
1195 (vqrshlq_u16): Likewise.
1196 (vqrshlq_u32): Likewise.
1197 (vqrshlq_u64): Likewise.
1198 (vshr_n_s8): Likewise.
1199 (vshr_n_s16): Likewise.
1200 (vshr_n_s32): Likewise.
1201 (vshr_n_s64): Likewise.
1202 (vshr_n_u8): Likewise.
1203 (vshr_n_u16): Likewise.
1204 (vshr_n_u32): Likewise.
1205 (vshr_n_u64): Likewise.
1206 (vshrq_n_s8): Likewise.
1207 (vshrq_n_s16): Likewise.
1208 (vshrq_n_s32): Likewise.
1209 (vshrq_n_s64): Likewise.
1210 (vshrq_n_u8): Likewise.
1211 (vshrq_n_u16): Likewise.
1212 (vshrq_n_u32): Likewise.
1213 (vshrq_n_u64): Likewise.
1214 (vrshr_n_s8): Likewise.
1215 (vrshr_n_s16): Likewise.
1216 (vrshr_n_s32): Likewise.
1217 (vrshr_n_s64): Likewise.
1218 (vrshr_n_u8): Likewise.
1219 (vrshr_n_u16): Likewise.
1220 (vrshr_n_u32): Likewise.
1221 (vrshr_n_u64): Likewise.
1222 (vrshrq_n_s8): Likewise.
1223 (vrshrq_n_s16): Likewise.
1224 (vrshrq_n_s32): Likewise.
1225 (vrshrq_n_s64): Likewise.
1226 (vrshrq_n_u8): Likewise.
1227 (vrshrq_n_u16): Likewise.
1228 (vrshrq_n_u32): Likewise.
1229 (vrshrq_n_u64): Likewise.
1230 (vshrn_n_s16): Likewise.
1231 (vshrn_n_s32): Likewise.
1232 (vshrn_n_s64): Likewise.
1233 (vshrn_n_u16): Likewise.
1234 (vshrn_n_u32): Likewise.
1235 (vshrn_n_u64): Likewise.
1236 (vrshrn_n_s16): Likewise.
1237 (vrshrn_n_s32): Likewise.
1238 (vrshrn_n_s64): Likewise.
1239 (vrshrn_n_u16): Likewise.
1240 (vrshrn_n_u32): Likewise.
1241 (vrshrn_n_u64): Likewise.
1242 (vqshrn_n_s16): Likewise.
1243 (vqshrn_n_s32): Likewise.
1244 (vqshrn_n_s64): Likewise.
1245 (vqshrn_n_u16): Likewise.
1246 (vqshrn_n_u32): Likewise.
1247 (vqshrn_n_u64): Likewise.
1248 (vqrshrn_n_s16): Likewise.
1249 (vqrshrn_n_s32): Likewise.
1250 (vqrshrn_n_s64): Likewise.
1251 (vqrshrn_n_u16): Likewise.
1252 (vqrshrn_n_u32): Likewise.
1253 (vqrshrn_n_u64): Likewise.
1254 (vqshrun_n_s16): Likewise.
1255 (vqshrun_n_s32): Likewise.
1256 (vqshrun_n_s64): Likewise.
1257 (vqrshrun_n_s16): Likewise.
1258 (vqrshrun_n_s32): Likewise.
1259 (vqrshrun_n_s64): Likewise.
1260 (vshl_n_s8): Likewise.
1261 (vshl_n_s16): Likewise.
1262 (vshl_n_s32): Likewise.
1263 (vshl_n_s64): Likewise.
1264 (vshl_n_u8): Likewise.
1265 (vshl_n_u16): Likewise.
1266 (vshl_n_u32): Likewise.
1267 (vshl_n_u64): Likewise.
1268 (vshlq_n_s8): Likewise.
1269 (vshlq_n_s16): Likewise.
1270 (vshlq_n_s32): Likewise.
1271 (vshlq_n_s64): Likewise.
1272 (vshlq_n_u8): Likewise.
1273 (vshlq_n_u16): Likewise.
1274 (vshlq_n_u32): Likewise.
1275 (vshlq_n_u64): Likewise.
1276 (vqshl_n_s8): Likewise.
1277 (vqshl_n_s16): Likewise.
1278 (vqshl_n_s32): Likewise.
1279 (vqshl_n_s64): Likewise.
1280 (vqshl_n_u8): Likewise.
1281 (vqshl_n_u16): Likewise.
1282 (vqshl_n_u32): Likewise.
1283 (vqshl_n_u64): Likewise.
1284 (vqshlq_n_s8): Likewise.
1285 (vqshlq_n_s16): Likewise.
1286 (vqshlq_n_s32): Likewise.
1287 (vqshlq_n_s64): Likewise.
1288 (vqshlq_n_u8): Likewise.
1289 (vqshlq_n_u16): Likewise.
1290 (vqshlq_n_u32): Likewise.
1291 (vqshlq_n_u64): Likewise.
1292 (vqshlu_n_s8): Likewise.
1293 (vqshlu_n_s16): Likewise.
1294 (vqshlu_n_s32): Likewise.
1295 (vqshlu_n_s64): Likewise.
1296 (vqshluq_n_s8): Likewise.
1297 (vqshluq_n_s16): Likewise.
1298 (vqshluq_n_s32): Likewise.
1299 (vqshluq_n_s64): Likewise.
1300 (vshll_n_s8): Likewise.
1301 (vshll_n_s16): Likewise.
1302 (vshll_n_s32): Likewise.
1303 (vshll_n_u8): Likewise.
1304 (vshll_n_u16): Likewise.
1305 (vshll_n_u32): Likewise.
1306 (vsra_n_s8): Likewise.
1307 (vsra_n_s16): Likewise.
1308 (vsra_n_s32): Likewise.
1309 (vsra_n_s64): Likewise.
1310 (vsra_n_u8): Likewise.
1311 (vsra_n_u16): Likewise.
1312 (vsra_n_u32): Likewise.
1313 (vsra_n_u64): Likewise.
1314 (vsraq_n_s8): Likewise.
1315 (vsraq_n_s16): Likewise.
1316 (vsraq_n_s32): Likewise.
1317 (vsraq_n_s64): Likewise.
1318 (vsraq_n_u8): Likewise.
1319 (vsraq_n_u16): Likewise.
1320 (vsraq_n_u32): Likewise.
1321 (vsraq_n_u64): Likewise.
1322 (vrsra_n_s8): Likewise.
1323 (vrsra_n_s16): Likewise.
1324 (vrsra_n_s32): Likewise.
1325 (vrsra_n_s64): Likewise.
1326 (vrsra_n_u8): Likewise.
1327 (vrsra_n_u16): Likewise.
1328 (vrsra_n_u32): Likewise.
1329 (vrsra_n_u64): Likewise.
1330 (vrsraq_n_s8): Likewise.
1331 (vrsraq_n_s16): Likewise.
1332 (vrsraq_n_s32): Likewise.
1333 (vrsraq_n_s64): Likewise.
1334 (vrsraq_n_u8): Likewise.
1335 (vrsraq_n_u16): Likewise.
1336 (vrsraq_n_u32): Likewise.
1337 (vrsraq_n_u64): Likewise.
1338 (vabs_s8): Likewise.
1339 (vabs_s16): Likewise.
1340 (vabs_s32): Likewise.
1341 (vabs_f32): Likewise.
1342 (vabsq_s8): Likewise.
1343 (vabsq_s16): Likewise.
1344 (vabsq_s32): Likewise.
1345 (vabsq_f32): Likewise.
1346 (vqabs_s8): Likewise.
1347 (vqabs_s16): Likewise.
1348 (vqabs_s32): Likewise.
1349 (vqabsq_s8): Likewise.
1350 (vqabsq_s16): Likewise.
1351 (vqabsq_s32): Likewise.
1352 (vneg_s8): Likewise.
1353 (vneg_s16): Likewise.
1354 (vneg_s32): Likewise.
1355 (vneg_f32): Likewise.
1356 (vnegq_s8): Likewise.
1357 (vnegq_s16): Likewise.
1358 (vnegq_s32): Likewise.
1359 (vnegq_f32): Likewise.
1360 (vqneg_s8): Likewise.
1361 (vqneg_s16): Likewise.
1362 (vqneg_s32): Likewise.
1363 (vqnegq_s8): Likewise.
1364 (vqnegq_s16): Likewise.
1365 (vqnegq_s32): Likewise.
1366 (vmvn_s8): Likewise.
1367 (vmvn_s16): Likewise.
1368 (vmvn_s32): Likewise.
1369 (vmvn_u8): Likewise.
1370 (vmvn_u16): Likewise.
1371 (vmvn_u32): Likewise.
1372 (vmvn_p8): Likewise.
1373 (vmvnq_s8): Likewise.
1374 (vmvnq_s16): Likewise.
1375 (vmvnq_s32): Likewise.
1376 (vmvnq_u8): Likewise.
1377 (vmvnq_u16): Likewise.
1378 (vmvnq_u32): Likewise.
1379 (vmvnq_p8): Likewise.
1380 (vcls_s8): Likewise.
1381 (vcls_s16): Likewise.
1382 (vcls_s32): Likewise.
1383 (vclsq_s8): Likewise.
1384 (vclsq_s16): Likewise.
1385 (vclsq_s32): Likewise.
1386 (vclz_s8): Likewise.
1387 (vclz_s16): Likewise.
1388 (vclz_s32): Likewise.
1389 (vclz_u8): Likewise.
1390 (vclz_u16): Likewise.
1391 (vclz_u32): Likewise.
1392 (vclzq_s8): Likewise.
1393 (vclzq_s16): Likewise.
1394 (vclzq_s32): Likewise.
1395 (vclzq_u8): Likewise.
1396 (vclzq_u16): Likewise.
1397 (vclzq_u32): Likewise.
1398 (vcnt_s8): Likewise.
1399 (vcnt_u8): Likewise.
1400 (vcnt_p8): Likewise.
1401 (vcntq_s8): Likewise.
1402 (vcntq_u8): Likewise.
1403 (vcntq_p8): Likewise.
1404 (vrecpe_f32): Likewise.
1405 (vrecpe_u32): Likewise.
1406 (vrecpeq_f32): Likewise.
1407 (vrecpeq_u32): Likewise.
1408 (vrsqrte_f32): Likewise.
1409 (vrsqrte_u32): Likewise.
1410 (vrsqrteq_f32): Likewise.
1411 (vrsqrteq_u32): Likewise.
1412 (vget_lane_s8): Likewise.
1413 (vget_lane_s16): Likewise.
1414 (vget_lane_s32): Likewise.
1415 (vget_lane_f32): Likewise.
1416 (vget_lane_u8): Likewise.
1417 (vget_lane_u16): Likewise.
1418 (vget_lane_u32): Likewise.
1419 (vget_lane_p8): Likewise.
1420 (vget_lane_p16): Likewise.
1421 (vget_lane_s64): Likewise.
1422 (vget_lane_u64): Likewise.
1423 (vgetq_lane_s8): Likewise.
1424 (vgetq_lane_s16): Likewise.
1425 (vgetq_lane_s32): Likewise.
1426 (vgetq_lane_f32): Likewise.
1427 (vgetq_lane_u8): Likewise.
1428 (vgetq_lane_u16): Likewise.
1429 (vgetq_lane_u32): Likewise.
1430 (vgetq_lane_p8): Likewise.
1431 (vgetq_lane_p16): Likewise.
1432 (vgetq_lane_s64): Likewise.
1433 (vgetq_lane_u64): Likewise.
1434 (vcvt_s32_f32): Likewise.
1435 (vcvt_f32_s32): Likewise.
1436 (vcvt_f32_u32): Likewise.
1437 (vcvt_u32_f32): Likewise.
1438 (vcvtq_s32_f32): Likewise.
1439 (vcvtq_f32_s32): Likewise.
1440 (vcvtq_f32_u32): Likewise.
1441 (vcvtq_u32_f32): Likewise.
1442 (vcvt_n_s32_f32): Likewise.
1443 (vcvt_n_f32_s32): Likewise.
1444 (vcvt_n_f32_u32): Likewise.
1445 (vcvt_n_u32_f32): Likewise.
1446 (vcvtq_n_s32_f32): Likewise.
1447 (vcvtq_n_f32_s32): Likewise.
1448 (vcvtq_n_f32_u32): Likewise.
1449 (vcvtq_n_u32_f32): Likewise.
1450 (vmovn_s16): Likewise.
1451 (vmovn_s32): Likewise.
1452 (vmovn_s64): Likewise.
1453 (vmovn_u16): Likewise.
1454 (vmovn_u32): Likewise.
1455 (vmovn_u64): Likewise.
1456 (vqmovn_s16): Likewise.
1457 (vqmovn_s32): Likewise.
1458 (vqmovn_s64): Likewise.
1459 (vqmovn_u16): Likewise.
1460 (vqmovn_u32): Likewise.
1461 (vqmovn_u64): Likewise.
1462 (vqmovun_s16): Likewise.
1463 (vqmovun_s32): Likewise.
1464 (vqmovun_s64): Likewise.
1465 (vmovl_s8): Likewise.
1466 (vmovl_s16): Likewise.
1467 (vmovl_s32): Likewise.
1468 (vmovl_u8): Likewise.
1469 (vmovl_u16): Likewise.
1470 (vmovl_u32): Likewise.
1471 (vmul_lane_s16): Likewise.
1472 (vmul_lane_s32): Likewise.
1473 (vmul_lane_f32): Likewise.
1474 (vmul_lane_u16): Likewise.
1475 (vmul_lane_u32): Likewise.
1476 (vmulq_lane_s16): Likewise.
1477 (vmulq_lane_s32): Likewise.
1478 (vmulq_lane_f32): Likewise.
1479 (vmulq_lane_u16): Likewise.
1480 (vmulq_lane_u32): Likewise.
1481 (vmla_lane_s16): Likewise.
1482 (vmla_lane_s32): Likewise.
1483 (vmla_lane_f32): Likewise.
1484 (vmla_lane_u16): Likewise.
1485 (vmla_lane_u32): Likewise.
1486 (vmlaq_lane_s16): Likewise.
1487 (vmlaq_lane_s32): Likewise.
1488 (vmlaq_lane_f32): Likewise.
1489 (vmlaq_lane_u16): Likewise.
1490 (vmlaq_lane_u32): Likewise.
1491 (vmlal_lane_s16): Likewise.
1492 (vmlal_lane_s32): Likewise.
1493 (vmlal_lane_u16): Likewise.
1494 (vmlal_lane_u32): Likewise.
1495 (vqdmlal_lane_s16): Likewise.
1496 (vqdmlal_lane_s32): Likewise.
1497 (vmls_lane_s16): Likewise.
1498 (vmls_lane_s32): Likewise.
1499 (vmls_lane_f32): Likewise.
1500 (vmls_lane_u16): Likewise.
1501 (vmls_lane_u32): Likewise.
1502 (vmlsq_lane_s16): Likewise.
1503 (vmlsq_lane_s32): Likewise.
1504 (vmlsq_lane_f32): Likewise.
1505 (vmlsq_lane_u16): Likewise.
1506 (vmlsq_lane_u32): Likewise.
1507 (vmlsl_lane_s16): Likewise.
1508 (vmlsl_lane_s32): Likewise.
1509 (vmlsl_lane_u16): Likewise.
1510 (vmlsl_lane_u32): Likewise.
1511 (vqdmlsl_lane_s16): Likewise.
1512 (vqdmlsl_lane_s32): Likewise.
1513 (vmull_lane_s16): Likewise.
1514 (vmull_lane_s32): Likewise.
1515 (vmull_lane_u16): Likewise.
1516 (vmull_lane_u32): Likewise.
1517 (vqdmull_lane_s16): Likewise.
1518 (vqdmull_lane_s32): Likewise.
1519 (vqdmulhq_lane_s16): Likewise.
1520 (vqdmulhq_lane_s32): Likewise.
1521 (vqdmulh_lane_s16): Likewise.
1522 (vqdmulh_lane_s32): Likewise.
1523 (vqrdmulhq_lane_s16): Likewise.
1524 (vqrdmulhq_lane_s32): Likewise.
1525 (vqrdmulh_lane_s16): Likewise.
1526 (vqrdmulh_lane_s32): Likewise.
1527 (vmul_n_s16): Likewise.
1528 (vmul_n_s32): Likewise.
1529 (vmul_n_f32): Likewise.
1530 (vmul_n_u16): Likewise.
1531 (vmul_n_u32): Likewise.
1532 (vmulq_n_s16): Likewise.
1533 (vmulq_n_s32): Likewise.
1534 (vmulq_n_f32): Likewise.
1535 (vmulq_n_u16): Likewise.
1536 (vmulq_n_u32): Likewise.
1537 (vmull_n_s16): Likewise.
1538 (vmull_n_s32): Likewise.
1539 (vmull_n_u16): Likewise.
1540 (vmull_n_u32): Likewise.
1541 (vqdmull_n_s16): Likewise.
1542 (vqdmull_n_s32): Likewise.
1543 (vqdmulhq_n_s16): Likewise.
1544 (vqdmulhq_n_s32): Likewise.
1545 (vqdmulh_n_s16): Likewise.
1546 (vqdmulh_n_s32): Likewise.
1547 (vqrdmulhq_n_s16): Likewise.
1548 (vqrdmulhq_n_s32): Likewise.
1549 (vqrdmulh_n_s16): Likewise.
1550 (vqrdmulh_n_s32): Likewise.
1551 (vmla_n_s16): Likewise.
1552 (vmla_n_s32): Likewise.
1553 (vmla_n_f32): Likewise.
1554 (vmla_n_u16): Likewise.
1555 (vmla_n_u32): Likewise.
1556 (vmlaq_n_s16): Likewise.
1557 (vmlaq_n_s32): Likewise.
1558 (vmlaq_n_f32): Likewise.
1559 (vmlaq_n_u16): Likewise.
1560 (vmlaq_n_u32): Likewise.
1561 (vmlal_n_s16): Likewise.
1562 (vmlal_n_s32): Likewise.
1563 (vmlal_n_u16): Likewise.
1564 (vmlal_n_u32): Likewise.
1565 (vqdmlal_n_s16): Likewise.
1566 (vqdmlal_n_s32): Likewise.
1567 (vmls_n_s16): Likewise.
1568 (vmls_n_s32): Likewise.
1569 (vmls_n_f32): Likewise.
1570 (vmls_n_u16): Likewise.
1571 (vmls_n_u32): Likewise.
1572 (vmlsq_n_s16): Likewise.
1573 (vmlsq_n_s32): Likewise.
1574 (vmlsq_n_f32): Likewise.
1575 (vmlsq_n_u16): Likewise.
1576 (vmlsq_n_u32): Likewise.
1577 (vmlsl_n_s16): Likewise.
1578 (vmlsl_n_s32): Likewise.
1579 (vmlsl_n_u16): Likewise.
1580 (vmlsl_n_u32): Likewise.
1581 (vqdmlsl_n_s16): Likewise.
1582 (vqdmlsl_n_s32): Likewise.
1584 2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1586 * config/arm/arm.c (arm_new_rtx_costs, case PLUS, MINUS):
1587 Add cost of alu.arith in simple SImode case.
1589 2014-11-18 Jiong Wang <jiong.wang@arm.com>
1591 * lra-eliminations.c (update_reg_eliminate): Relax gcc_assert for fixed
1594 2014-11-18 Marat Zakirov <m.zakirov@samsung.com>
1596 * opts.c (finish_options): Disable aggressive opts for sanitizer.
1597 (common_handle_option): Move code to finish_options.
1599 2014-11-18 Yury Gribov <y.gribov@samsung.com>
1602 * stor-layout.c (min_align_of_type): Respect user alignment
1605 2014-11-18 Ilya Enkovich <ilya.enkovich@intel.com>
1607 * passes.c (remove_cgraph_node_from_order): New.
1608 (do_per_function_toporder): Register cgraph removal
1611 2014-11-17 Terry Guo <terry.guo@arm.com>
1613 * config/arm/arm.c (arm_issue_rate): Return 2 for cortex-m7.
1614 * config/arm/arm.md (generic_sched): Exclude cortex-m7.
1615 (generic_vfp): Likewise.
1616 * config/arm/cortex-m7.md: Pipeline description for cortex-m7.
1618 2014-11-17 Vladimir Makarov <vmakarov@redhat.com>
1620 PR rtl-optimization/63906
1621 * lra-remat.c (operand_to_remat): Check SP and
1622 frame_pointer_required.
1624 2014-11-17 Mircea Namolaru <mircea.namolaru@inria.fr>
1626 * doc/invoke.texi (floop-unroll-and-jam): Document
1627 (loop-unroll-jam-size): Likewise.
1628 (loop-unroll-jam-depth): Likewise.
1629 * graphite-optimize-isl.c (getPrevectorMap_full): Modify comment.
1630 (getScheduleForBandList): Replaced unsafe union_map reuse.
1632 2014-11-17 Andrew Pinski <apinski@cavium.com>
1634 * config/aarch64/thunderx.md: Remove copyright which should not
1637 2014-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
1638 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1640 * config/rs6000/rs6000.c (RELOAD_REG_AND_M16): Add support for
1641 Altivec style vector loads that ignore the bottom 3 bits of the
1643 (rs6000_debug_addr_mask): New function to print the addr_mask
1644 values if debugging.
1645 (rs6000_debug_print_mode): Call rs6000_debug_addr_mask to print
1647 (rs6000_setup_reg_addr_masks): Add support for Altivec style
1648 vector loads that ignore the bottom 3 bits of the address. Allow
1649 pre-increment and pre-decrement on floating point, even if the
1650 -mupper-regs-{sf,df} options were used.
1651 (rs6000_init_hard_regno_mode_ok): Rework DFmode support if
1652 -mupper-regs-df. Add support for -mupper-regs-sf. Rearrange code
1653 placement for direct move support.
1654 (rs6000_option_override_internal): Add checks for -mupper-regs-df
1655 requiring -mvsx, and -mupper-regs-sf requiring -mpower8-vector.
1656 If -mupper-regs, set both -mupper-regs-sf and -mupper-regs-df,
1657 depending on the underlying cpu.
1658 (rs6000_secondary_reload_fail): Add ATTRIBUTE_NORETURN.
1659 (rs6000_secondary_reload_toc_costs): Helper function to identify
1660 costs of a TOC load for secondary reload support.
1661 (rs6000_secondary_reload_memory): Helper function for secondary
1662 reload, to determine if a particular memory operation is directly
1663 handled by the hardware, or if it needs support from secondary
1664 reload to create a valid address.
1665 (rs6000_secondary_reload): Rework code, to be clearer. If the
1666 appropriate -mupper-regs-{sf,df} is used, use FPR registers to
1667 reload scalar values, since the FPR registers have D-form
1668 addressing. Move most of the code handling memory to the function
1669 rs6000_secondary_reload_memory, and use the reg_addr structure to
1670 determine what type of address modes are supported. Print more
1671 debug information if -mdebug=addr.
1672 (rs6000_secondary_reload_inner): Rework entire function to be more
1673 general. Use the reg_addr bits to determine what type of
1674 addressing is supported.
1675 (rs6000_preferred_reload_class): Rework. Move constant handling
1676 into a single place. Prefer using FLOAT_REGS for scalar floating
1678 (rs6000_secondary_reload_class): Use a FPR register to move a
1679 value from an Altivec register to a GPR, and vice versa. Move VSX
1680 handling above traditional floating point.
1682 * config/rs6000/rs6000.md (mov<mode>_hardfloat, FMOVE32 case):
1683 Delete some spaces in the constraints.
1684 (DF->DF move peephole2): Disable if -mupper-regs-{sf,df} to
1685 allow using FPR registers to load/store an Altivec register for
1686 scalar floating point types.
1687 (SF->SF move peephole2): Likewise.
1688 (DFmode splitter): Add a define_split to move floating point
1689 constants to the constant pool before register allocation.
1690 Normally constants are put into the pool immediately, but
1691 -ffast-math delays putting them into the constant pool for the
1692 reciprocal approximation support.
1693 (SFmode splitter): Likewise.
1695 * config/rs6000/rs6000.opt (-mupper-regs-df): Make option public.
1696 (-mupper-regs-sf): Likewise.
1698 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1699 __UPPER_REGS_DF__ if -mupper-regs-df. Define __UPPER_REGS_SF__ if
1701 (-mupper-regs): New combination option that sets -mupper-regs-sf
1702 and -mupper-regs-df by default if the cpu supports the instructions.
1704 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1705 -mupper-regs, -mupper-regs-sf, and -mupper-regs-df.
1707 * config/rs6000/predicates.md (memory_fp_constant): New predicate
1708 to return true if the operand is a floating point constant that
1709 must be put into the constant pool, before register allocation
1712 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Enable
1713 -mupper-regs-df by default.
1714 (ISA_2_7_MASKS_SERVER): Enable -mupper-regs-sf by default.
1715 (POWERPC_MASKS): Add -mupper-regs-{sf,df} as options set by the
1716 various -mcpu=... options.
1717 (power7 cpu): Enable -mupper-regs-df by default.
1719 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1722 2014-11-17 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1724 * ira-conflicts.c (build_conflict_bit_table): Add the current
1725 object to OBJECTS_LIVE after traversing OBJECTS_LIVE.
1727 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
1729 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
1730 (ipa_get_indirect_edge_target): Add SPECULATIVE argument.
1731 (devirtualization_time_bonus): Use it.
1732 (ipcp_discover_new_direct_edges): Likewise.
1733 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Update.
1734 * ipa-prop.h (ipa_get_indirect_edge_target): Update prototype.
1736 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
1738 * tree.c (free_lang_data_in_decl): Set DECL_FUNCTION_SPECIFIC_OPTIMIZATION
1739 to optimization_default_node.
1741 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
1743 * cgraphunit.c (analyze_functions): Use opt_for_fn.
1744 * cgraph.h (cgraph_node::optimize_for_size_p): Likewise.
1746 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
1748 * cgraph.c (symbol_table::create_edge): Use opt_for_fn.
1749 (cgraph_node::cannot_return_p): Likewise.
1750 (cgraph_edge::cannot_lead_to_return_p): Likewise.
1751 (cgraph_edge::maybe_hot_p): Likewise.
1753 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
1755 * predict.c (maybe_hot_frequency_p): Use opt_for_fn.
1756 (optimize_function_for_size_p): Likewise.
1757 (probably_never_executed): Likewise; replace cfun by fun.
1759 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
1761 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Add
1762 variant reading from memory and assembling to ld1.
1764 * config/aarch64/arm_neon.h (vld1_lane_f32, vld1_lane_f64, vld1_lane_p8,
1765 vld1_lane_p16, vld1_lane_s8, vld1_lane_s16, vld1_lane_s32,
1766 vld1_lane_s64, vld1_lane_u8, vld1_lane_u16, vld1_lane_u32,
1767 vld1_lane_u64, vld1q_lane_f32, vld1q_lane_f64, vld1q_lane_p8,
1768 vld1q_lane_p16, vld1q_lane_s8, vld1q_lane_s16, vld1q_lane_s32,
1769 vld1q_lane_s64, vld1q_lane_u8, vld1q_lane_u16, vld1q_lane_u32,
1770 vld1q_lane_u64): Replace asm with vset_lane and pointer dereference.
1772 2014-11-17 Jason Merrill <jason@redhat.com>
1774 * tree-inline.c (copy_fn): New.
1775 * tree-inline.h: Declare it.
1777 2014-11-17 Alan Lawrence <alan.lawrence@arm.com>
1779 * config/aarch64/aarch64-builtins.c (TYPES_CREATE): Remove.
1780 * config/aarch64/aarch64-simd-builtins.def (create): Remove.
1781 * config/aarch64/aarch64-simd.md (aarch64_create<mode>): Remove.
1782 * config/aarch64/arm_neon.h (vcreate_f64, vreinterpret_f64_s64,
1783 vreinterpret_f64_u64): Replace __builtin_aarch64_createv1df with C casts.
1784 * config/aarch64/iterators.md (VD1): Remove.
1786 2014-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1788 * config/aarch64/aarch64-cores.def (cortex-a53): Remove
1789 AARCH64_FL_CRYPTO from feature flags.
1790 (cortex-a57): Likewise.
1791 (cortex-a57.cortex-a53): Likewise.
1793 2014-11-17 Jan Hubicka <hubicka@ucw.cz>
1795 * tree.c (free_lang_data_in_decl): Annotate all functio nbodies with
1796 DECL_FUNCTION_SPECIFIC_TARGET.
1797 * i386.c (ix86_set_current_function): Handle explicit default options.
1799 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
1801 * builtins.c (expand_builtin_memcpy_with_bounds): Use target hook
1803 (expand_builtin_mempcpy_with_bounds): Likewise.
1804 (expand_builtin_memset_with_bounds): Likewise.
1806 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
1808 * tree-ssa-strlen.c: include ipa-chkp.h, cgraph.h,
1809 ipa-ref.h, plugin-api.h.
1810 (get_string_length): Handle calls with bounds.
1811 (adjust_last_stmt): Likewise.
1812 (handle_builtin_strchr): Likewise.
1813 (handle_builtin_strcpy): Likewise.
1814 (handle_builtin_memcpy): Likewise.
1815 (handle_builtin_strcat): Likewise.
1817 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
1819 * tree-chkp-opt.c (chkp_get_nobnd_fndecl): New.
1820 (chkp_get_nochk_fndecl): New.
1821 (chkp_optimize_string_function_calls): New.
1822 (chkp_opt_execute): Call chkp_optimize_string_function_calls.
1823 * tree-cfg.h (insert_cond_bb): New.
1824 * tree-cfg.c (insert_cond_bb): New.
1826 2014-11-17 Ilya Enkovich <ilya.enkovich@intel.com>
1828 * tree-core.h (built_in_class): Add builtin codes to be used
1829 by Pointer Bounds Checker for instrumented builtin functions.
1830 * tree-streamer-in.c: Include ipa-chkp.h.
1831 (streamer_get_builtin_tree): Created instrumented decl if
1833 * ipa-chkp.h (chkp_maybe_clone_builtin_fndecl): New.
1834 * ipa-chkp.c (chkp_build_instrumented_fndecl): Support builtin
1836 (chkp_maybe_clone_builtin_fndecl): New.
1837 (chkp_maybe_create_clone): Support builtin function decls.
1838 (chkp_versioning): Clone builtin functions.
1839 * tree-chkp.c (chkp_instrument_normal_builtin): New.
1840 (chkp_add_bounds_to_call_stmt): Support builtin functions.
1841 (chkp_replace_function_pointer): Likewise.
1842 * builtins.c (expand_builtin_memcpy_args): New.
1843 (expand_builtin_memcpy): Call expand_builtin_memcpy_args.
1844 (expand_builtin_memcpy_with_bounds): New.
1845 (expand_builtin_mempcpy_with_bounds): New.
1846 (expand_builtin_mempcpy_args): Add orig_exp arg. Support
1847 BUILT_IN_CHKP_MEMCPY_NOBND_NOCHK
1848 (expand_builtin_memset_with_bounds): New.
1849 (expand_builtin_memset_args): Support BUILT_IN_CHKP_MEMSET_NOBND_NOCHK.
1850 (expand_builtin_with_bounds): New.
1851 * builtins.h (expand_builtin_with_bounds): New.
1852 * expr.c (expand_expr_real_1): Support instrumented builtin calls.
1854 2014-11-17 Dodji Seketeli <dodji@redhat.com>
1856 * gimple.h (gimple_set_visited, gimple_visited_p)
1857 (gimple_set_plf, gimple_plf, gimple_set_uid, gimple_uid): Add more
1858 comments to these accessors.
1860 2014-11-17 Georg-Johann Lay <avr@gjlay.de>
1862 * config/avr/avr-log.c (avr_log_set_avr_log) [TARGET_ALL_DEBUG]:
1863 Set avr_log_details to "all".
1865 2014-11-17 Richard Biener <rguenther@suse.de>
1868 * match.pd: Guard X / CST -> X * CST' transform against
1871 2014-11-17 Terry Guo <terry.guo@arm.com>
1873 * config/arm/thumb1.md (*addsi3_cbranch_scratch): Updated to UAL
1876 2014-11-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
1878 * ifcvt.c (HAVE_cbranchcc4): Define.
1879 (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
1880 Use HAVE_cbranchcc4.
1882 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1884 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
1885 aarch64_convert_mode, aarch64_gen_ccmp_first,
1886 aarch64_gen_ccmp_next): New functions.
1887 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.
1889 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1891 * config/aarch64/aarch64-protos.h (aarch64_ccmp_mode_to_code): New.
1892 * aarch64.c (aarch64_nzcv_codes): New data.
1893 (aarch64_ccmp_mode_to_code): New.
1894 (aarch64_print_operand): Output nzcv.
1895 config/aarch64/aarch64.md (cbranchcc4, *ccmp_and, *ccmp_ior, cstorecc4):
1897 (cstore<mode>4): Handle ccmp_cc_register.
1898 * config/aarch64/predicates.md (const0_operand): New.
1900 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1902 * config/aarch64/aarch64-modes.def: Define ccmp CC mode.
1903 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): New function
1904 extacted from aarch64_get_condition_code.
1905 (aarch64_get_condition_code): Call aarch64_get_condition_code_1.
1906 config/aarch64/predicates.md (ccmp_cc_register): New predicate.
1908 014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1910 * config/aarch64/constraints.md (Usn, aarch64_ccmp_immediate,
1911 aarch64_ccmp_operand): New constraints.
1913 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1915 * Makefile.in: Add ccmp.o.
1918 * expr.c: include "ccmp.h"
1919 (expand_cond_expr_using_cmove): Handle VOIDmode.
1920 (expand_expr_real_1): Try to expand ccmp.
1922 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1924 * cfgexpand.c (expand_gimple_cond): Check ccmp.
1925 * expmed.c (emit_cstore): Make it global.
1926 * expmed.h: #include "insn-codes.h"
1927 (emit_cstore): New prototype.
1928 * expr.c (expand_operands): Make it global.
1929 * expr.h (expand_operands): New prototype.
1930 * optabs.c (get_rtx_code): Make it global.
1931 * optabs.h (get_rtx_code): New prototype.
1933 2014-11-17 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1935 * target.def (gen_ccmp_first, gen_ccmp_first): Add two new hooks.
1936 * doc/tm.texi.in (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
1937 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New.
1939 2014-11-16 Patrick Palka <ppalka@gcc.gnu.org>
1942 * tree-ssa-forwprop.c (forward_propagate_into_comparison_1):
1943 Always combine comparisons or conversions from booleans.
1945 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
1947 * ipa-polymorphic-call.c
1948 (ipa_polymorphic_call_context::speculation_consistent_p): Constify.
1949 (ipa_polymorphic_call_context::meet_speculation_with): New function.
1950 (ipa_polymorphic_call_context::combine_with): Handle types in construction
1952 (ipa_polymorphic_call_context::equal_to): Do not bother about useless
1954 (ipa_polymorphic_call_context::meet_with): New function.
1955 * cgraph.h (class ipa_polymorphic_call_context): Add
1956 meet_width, meet_speculation_with; constify speculation_consistent_p.
1957 * ipa-cp.c (ipa_context_from_jfunc): Handle speculation; combine with incomming
1959 (propagate_context_accross_jump_function): Likewise; be more cureful.
1960 about set_contains_variable.
1961 (ipa_get_indirect_edge_target_1): Fix handling of dynamic type changes.
1962 (find_more_scalar_values_for_callers_subset): Fix.
1963 (find_more_contexts_for_caller_subset): Perform meet operation.
1965 2014-11-16 Jan Hubicka <hubicka@ucw.cz>
1967 * passes.c (execute_one_pass): Do not apply all transforms prior
1968 every simple IPA pass.
1969 * cgraphunit.c: Do not include fibheap.h
1970 (expand_thunk): Use get_untransformed_body.
1971 (cgraph_node::expand): Likewise.
1972 * tree-ssa-structalias.c (ipa_pta_execute): Skip inline clones.
1973 * cgraph.c (release_function_body): Do not push cfun when CFG is not there.
1974 (cgraph_node::get_untransformed_body): Break out from ...
1975 (cgraph_node::get_body): ... here; add code to apply all transforms.
1976 * cgraph.h (cgraph_node): Add get_untransformed_body.
1977 * ipa-icf.c (sem_function::init): Use get_untransformed_body.
1978 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
1979 * tree-inline.c (expand_call_inline): LIkewise.
1980 * i386.c (ix86_reset_to_default_globals): Break out from ...
1981 (ix86_set_current_function): ... here;
1982 (ix86_reset_previous_fndecl): Use it.
1983 (ix86_simd_clone_adjust): Use ix86_reset_previous_fndecl.
1985 2014-11-16 Eric Botcazou <ebotcazou@adacore.com>
1987 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Move around.
1988 * doc/tm.texi: Regenerate.
1990 2014-11-16 Uros Bizjak <ubizjak@gmail.com>
1992 * config/sh/sh.c: Do not include algorithm.
1993 (sh_emit_scc_to_t): Replace open-coded swap with std::swap
1995 (sh_emit_compare_and_branch): Ditto.
1996 (sh_emit_compare_and_set): Ditto.
1997 * config/sh/sh.md (replacement peephole2): Ditto.
1998 (cstore4_media): Ditto.
2001 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
2003 * lra-remat.c (cand_transf_func): Process regno for
2004 rematerialization too.
2005 * lra.c (lra): Switch on rematerialization pass.
2007 2014-11-15 Vladimir Makarov <vmakarov@redhat.com>
2009 * lra.c (lra): Switch off rematerialization pass.
2011 2014-11-15 Marc Glisse <marc.glisse@inria.fr>
2013 * config/i386/xmmintrin.h (_mm_add_ps, _mm_sub_ps, _mm_mul_ps,
2014 _mm_div_ps, _mm_store_ss, _mm_cvtss_f32): Use vector extensions
2015 instead of builtins.
2016 * config/i386/emmintrin.h (__v2du, __v4su, __v8hu, __v16qu): New
2018 (_mm_sqrt_sd): Fix comment.
2019 (_mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
2020 _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
2021 _mm_mullo_epi16, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
2022 _mm_cmplt_epi8, _mm_cmplt_epi16, _mm_cmplt_epi32, _mm_cmpgt_epi8,
2023 _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_and_si128, _mm_or_si128,
2024 _mm_xor_si128, _mm_store_sd, _mm_cvtsd_f64, _mm_storeh_pd,
2025 _mm_cvtsi128_si64, _mm_cvtsi128_si64x, _mm_add_pd, _mm_sub_pd,
2026 _mm_mul_pd, _mm_div_pd, _mm_storel_epi64, _mm_movepi64_pi64):
2027 Use vector extensions instead of builtins.
2028 * config/i386/smmintrin.h (_mm_cmpeq_epi64, _mm_cmpgt_epi64,
2029 _mm_mullo_epi32): Likewise.
2030 * config/i386/avxintrin.h (__v4du, __v8su, __v16hu, __v32qu):
2032 (_mm256_add_pd, _mm256_add_ps, _mm256_div_pd, _mm256_div_ps,
2033 _mm256_mul_pd, _mm256_mul_ps, _mm256_sub_pd, _mm256_sub_ps):
2034 Use vector extensions instead of builtins.
2035 * config/i386/avx2intrin.h (_mm256_cmpeq_epi8, _mm256_cmpeq_epi16,
2036 _mm256_cmpeq_epi32, _mm256_cmpeq_epi64, _mm256_cmpgt_epi8,
2037 _mm256_cmpgt_epi16, _mm256_cmpgt_epi32, _mm256_cmpgt_epi64,
2038 _mm256_and_si256, _mm256_or_si256, _mm256_xor_si256, _mm256_add_epi8,
2039 _mm256_add_epi16, _mm256_add_epi32, _mm256_add_epi64,
2040 _mm256_mullo_epi16, _mm256_mullo_epi32, _mm256_sub_epi8,
2041 _mm256_sub_epi16, _mm256_sub_epi32, _mm256_sub_epi64): Likewise.
2042 * config/i386/avx512fintrin.h (__v8du, __v16su, __v32hu, __v64qu):
2044 (_mm512_or_si512, _mm512_or_epi32, _mm512_or_epi64, _mm512_xor_si512,
2045 _mm512_xor_epi32, _mm512_xor_epi64, _mm512_and_si512,
2046 _mm512_and_epi32, _mm512_and_epi64, _mm512_mullo_epi32,
2047 _mm512_add_epi64, _mm512_sub_epi64, _mm512_add_epi32,
2048 _mm512_sub_epi32, _mm512_add_pd, _mm512_add_ps, _mm512_sub_pd,
2049 _mm512_sub_ps, _mm512_mul_pd, _mm512_mul_ps, _mm512_div_pd,
2050 _mm512_div_ps): Use vector extensions instead of builtins.
2051 * config/i386/avx512bwintrin.h (_mm512_mullo_epi16, _mm512_add_epi8,
2052 _mm512_sub_epi8, _mm512_sub_epi16, _mm512_add_epi16): Likewise.
2053 * config/i386/avx512dqintrin.h (_mm512_mullo_epi64): Likewise.
2054 * config/i386/avx512vldqintrin.h (_mm256_mullo_epi64, _mm_mullo_epi64):
2057 2014-11-15 Jan Hubicka <hubicka@ucw.cz>
2059 * lto-streamer-out.c (hash_tree): Use cl_optimization_hash.
2060 * lto-streamer.h (cl_optimization_stream_out, cl_optimization_stream_in): Declare.
2061 * optc-save-gen.awk: Generate cl_optimization LTO streaming and hashing routines.
2062 * opth-gen.awk: Add prototype of cl_optimization_hash.
2063 * tree-streamer-in.c (unpack_ts_optimization): Remove.
2064 (streamer_unpack_tree_bitfields): Use cl_optimization_stream_in.
2065 * tree-streamer-out.c (pack_ts_optimization): Remove.
2066 (streamer_pack_tree_bitfields): Use cl_optimization_stream_out.
2068 2014-11-15 Mircea Namolaru <mircea.namolaru@inria.fr>
2070 * common.opt (flag_loop_unroll_and_jam): New flag.
2071 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE): Parameter for unroll and
2073 (PARAM_LOOP_UNROLL_JAM_DEPTH): Likewise.
2074 * graphite-poly.h (struct poly_bb:map_sepclass): New field
2075 * graphite-poly.c (new_poly_bb): Initialization for new field.
2076 (apply_poly_transforms): Support for unroll and jam flag.
2077 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass): Compute the
2079 (generate_luj_sepclass_opt): Build the separation class option.
2080 (generate_luj_options): Set unroll and jam options.
2081 (set_options): Support for unroll and jam options.
2082 (scop_to_isl_ast): Likewise
2083 * graphite-optimize-isl.c (getPrevectorMap_full): New function for
2084 computing the separating class map.
2085 (optimize_isl): Support for the separating class map.
2086 (apply_schedule_map_to_scop): Likewise.
2087 (getScheduleMap): Likewise.
2088 (getScheduleForBand): Likewise.
2089 (getScheduleForBandList): Likewise.
2090 * graphite.c (gate_graphite_transforms): Add unroll and jam flag.
2091 * toplev.c (process_options) Likewise.
2093 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
2095 * tree-cfg.c (replace_loop_annotate_in_block): New function extracted
2097 (replace_loop_annotate): ...here. Call it on the header and on the
2098 latch block, if any. Restore proper behavior of final cleanup.
2100 2014-11-15 Eric Botcazou <ebotcazou@adacore.com>
2102 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add log message
2103 for max-completely-peeled-insns limit.
2105 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
2107 * ipa-prop.h (ipa_known_type_data): Remove.
2108 (ipa_binfo_from_known_type_jfunc): Remove.
2110 2014-11-14 Andrew Pinski <apinski@cavium.com>
2112 * config/aarch64/aarch64-cores.def (thunderx): Change the scheduler
2114 * config/aarch64/aarch64.md: Include thunderx.md.
2115 (generic_sched): Set to no for thunderx.
2116 * config/aarch64/thunderx.md: New file.
2118 2014-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2120 * config/rs6000/predicates.md (easy_fp_constant): Delete redunant
2123 * config/rs6000/vector.md (VEC_R): Move secondary reload support
2124 insns to rs6000.md from vector.md.
2125 (reload_<VEC_R:mode>_<P:mptrsize>_store): Likewise.
2126 (reload_<VEC_R:mode>_<P:mptrsize>_load): Likewise.
2127 (vec_reload_and_plus_<mptrsize>): Likewise.
2129 * config/rs6000/rs6000.md (Fa): New mode attribute to give
2130 constraint for the Altivec registers for a type.
2131 (RELOAD): New mode iterator for all of the types that have
2132 secondary reload address support to load up a base register.
2133 (extendsfdf2_fpr): Use correct constraint.
2134 (copysign<mode>3_fcpsgn): For SFmode, use correct xscpsgndp
2136 (floatsi<mode>2_lfiwax): Add support for -mupper-regs-{sf,df}.
2137 Generate the non-VSX instruction if all registers were FPRs. Do
2138 not use the patterns in vsx.md for scalar operations.
2139 (floatsi<mode>2_lfiwax_mem): Likewise.
2140 (floatunssi<mode>2_lfiwzx): Likewise.
2141 (floatunssi<mode>2_lfiwzx_mem): Likewise.
2142 (fix_trunc<mode>di2_fctidz): Likewise.
2143 (fixuns_trunc<mode>di2_fctiduz): Likewise.
2144 (fctiwz_<mode>): Likewise.
2145 (fctiwuz_<mode>): Likewise.
2147 (floatdidf2_fpr): Likewise.
2148 (floatdidf2_mem): Likewise.
2149 (floatunsdidf2): Likewise.
2150 (floatunsdidf2_fcfidu): Likewise.
2151 (floatunsdidf2_mem): Likewise.
2152 (floatdisf2_fcfids): Likewise.
2153 (floatdisf2_mem): Likewise.
2154 (floatdisf2_internal1): Add explicit test for not FCFIDS to make
2155 it more obvious that the code is for pre-ISA 2.06 machines.
2156 (floatdisf2_internal2): Likewise.
2157 (floatunsdisf2_fcfidus): Add support for -mupper-regs-{sf,df}.
2158 Generate the non-VSX instruction if all registers were FPRs. Do
2159 not use the patterns in vsx.md for scalar operations.
2160 (floatunsdisf2_mem): Likewise.
2161 (reload_<RELOAD:mode>_<P:mptrsize>_store): Move the reload
2162 handlers here from vector.md, and expand the types we generate
2163 reload handlers for.
2164 (reload_<RELOAD:mode>_<P:mptrsize>_load): Likewise.
2165 (vec_reload_and_plus_<mptrsize>): Likewise.
2167 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Only provide the
2168 vector forms of the instructions. Move VSX scalar forms to
2169 rs6000.md, and add support for -mupper-regs-sf.
2170 (vsx_floatuns<VSi><mode>2): Likewise.
2171 (vsx_fix_trunc<mode><VSi>2): Likewise.
2172 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
2173 (vsx_float_fix_<mode>2): Delete DF version, rename to
2174 vsx_float_fix_v2df2.
2175 (vsx_float_fix_v2df2): Likewise.
2177 2014-11-14 Martin Jambor <mjambor@suse.cz>
2179 * ipa-prop.h (jump_func_type): Removed value IPA_JF_KNOWN_TYPE.
2180 (ipa_pass_through_data): Removed field type_preserved.
2181 (ipa_ancestor_jf_data): removed fields type and type_preserved.
2182 (ipa_jump_func): Removed field known_type.
2183 (ipa_get_jf_known_type_offset): Removed.
2184 (ipa_get_jf_known_type_base_type): Likewise.
2185 (ipa_get_jf_known_type_component_type): Likewise.
2186 (ipa_get_jf_ancestor_type): Likewise.
2187 * ipa-cp.c (print_ipcp_constant_value): Removed BINFO handling.
2188 (ipa_get_jf_pass_through_result): Likewise.
2189 (ipa_get_jf_ancestor_result): Always build ptr_node_type accesses.
2190 (values_equal_for_ipcp_p): Removed BINFO handling.
2191 (ipa_get_indirect_edge_target_1): Updated comment.
2192 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Removed handling
2193 of IPA_JF_KNOWN_TYPE jump functions. Do not print removed fields.
2194 (ipa_set_jf_known_type): Removed.
2195 (ipa_set_jf_simple_pass_through): Do not set removed fields. Update
2197 (ipa_set_jf_arith_pass_through): Likewise.
2198 (ipa_set_ancestor_jf): Likewise.
2199 (ipa_binfo_from_known_type_jfunc): Removed.
2200 (prop_type_change_info): Removed fields known_current_type and
2201 multiple_types_encountered.
2202 (extr_type_from_vtbl_ptr_store): Removed.
2203 (check_stmt_for_type_change): Do not attempt to identify changed type.
2204 (detect_type_change_from_memory_writes): Do not set the removed fields,
2205 always set jfunc to unknown.
2206 (compute_complex_assign_jump_func): Do not detect dynamic type change.
2207 (compute_complex_ancestor_jump_func): Likewise.
2208 (compute_known_type_jump_func): Removed.
2209 (ipa_compute_jump_functions_for_edge): Do not detect dynamic type
2210 change. Do not comute known type jump functions.
2211 (combine_known_type_and_ancestor_jfs): Removed.
2212 (update_jump_functions_after_inlining): Removed handling of
2213 IPA_JF_KNOWN_TYPE jump functions. Do not set removed fields.
2214 (ipa_write_jump_function): Do not stream removed fields or known type
2216 (ipa_read_jump_function): Likewise.
2218 2014-11-14 Vladimir Makarov <vmakarov@redhat.com>
2220 * lra-int.h (lra_create_live_ranges): Add parameter.
2221 * lra-lives.c (temp_bitmap): Move higher.
2222 (initiate_live_solver): Move temp_bitmap initialization into
2223 lra_live_ranges_init.
2224 (finish_live_solver): Move temp_bitmap clearing into
2226 (process_bb_lives): Add parameter. Use it to control live info
2227 update and dead insn elimination. Pass it to mark_regno_live and
2229 (lra_create_live_ranges): Add parameter. Pass it to
2231 (lra_live_ranges_init, lra_live_ranges_finish): See changes in
2232 initiate_live_solver and finish_live_solver.
2233 * lra-remat.c (do_remat): Process insn non-operand hard regs too.
2234 Use temp_bitmap to update avail_cands.
2235 * lra.c (lra): Pass new parameter to lra_create_live_ranges. Move
2236 check with lra_need_for_spill_p after live range pass. Switch on
2237 rematerialization pass.
2239 2014-11-14 Martin Jambor <mjambor@suse.cz>
2241 * ipa-prop.h (ipa_get_jf_pass_through_type_preserved): use
2242 agg_preserved flag instead.
2243 (ipa_get_jf_ancestor_type_preserved): Likewise.
2244 (ipa_node_params): Rename known_vals to known_csts, update all users.
2245 New field known_contexts.
2246 (ipa_get_indirect_edge_target): Update prototype.
2247 (ipcp_poly_ctx_values_pool): Declare.
2248 (ipa_context_from_jfunc): Likewise.
2249 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Updated prototype.
2250 * cgraph.h (ipa_polymorphic_call_context): New method equal_to. New
2251 parameter newline of method dump.
2252 * ipa-cp.c (ctxlat): New field.
2253 (ipcp_values_pool): Renamed to ipcp_cst_values_pool, updated all users.
2254 (ipcp_poly_ctx_values_pool):New variable.
2255 (ipa_get_poly_ctx_lat): New function.
2256 (print_ipcp_constant_value): New overloaded function for contexts.
2257 (print_all_lattices): Also print contexts.
2258 (ipa_topo_info): New field contexts;
2259 (set_all_contains_variable): Also set the flag in the context lattice.
2260 (initialize_node_lattices): Likewise for flag bottom.
2261 (ipa_get_jf_ancestor_result): Removed BINFO handling.
2262 (ipa_value_from_jfunc): Likewise.
2263 (ipa_context_from_jfunc): New function.
2264 (values_equal_for_ipcp_p): New overloaded function for contexts.
2265 (allocate_and_init_ipcp_value): Construct the value.
2266 (allocate_and_init_ipcp_value): New overloaded function for contexts.
2267 (propagate_scalar_accross_jump_function): Removed handling of
2268 KNOWN_TYPE jump functions.
2269 (propagate_context_accross_jump_function): New function.
2270 (propagate_constants_accross_call): Also propagate contexts.
2271 (ipa_get_indirect_edge_target_1): Work on contexts rather than BINFOs.
2272 (ipa_get_indirect_edge_target): Likewise.
2273 (devirtualization_time_bonus): Likewise.
2274 (gather_context_independent_values): Create and populate known_contexts
2275 vector rather than known_binfos.
2276 (perform_estimation_of_a_value): Work on contexts rather than BINFOs.
2277 (estimate_local_effects): Likewise.
2278 (add_all_node_vals_to_toposort): Also add contexts to teir topological
2280 (ipcp_propagate_stage): Also propagate effects of contexts.
2281 (ipcp_discover_new_direct_edges): Receive and pass known_contexts to
2282 ipa_get_indirect_edge_target_1.
2283 (cgraph_edge_brings_value_p): New overloaded function for contexts.
2284 (create_specialized_node): Work on contexts rather than BINFOs.
2285 (find_more_contexts_for_caller_subset): New function.
2286 (known_contexts_useful_p): New function.
2287 (copy_useful_known_contexts): Likewise.
2288 (modify_known_vectors_with_val): Likewise.
2289 (ipcp_val_in_agg_replacements_p): Renamed to
2290 ipcp_val_agg_replacement_ok_p, return true for all offset indicating
2292 (ipcp_val_agg_replacement_ok_p): New overloaded function for contexts.
2293 (decide_about_value): Work on contexts rather than BINFOs.
2294 (decide_whether_version_node): Likewise.
2295 (ipcp_driver): Initialize the new alloc pool.
2296 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Prettify
2297 printing of edge contexts.
2298 (ipa_set_ancestor_jf): Replace assert with conditional setting of
2299 type_preserved to false.
2300 (update_jump_functions_after_inlining): Use access function instead of
2301 reading agg_preserved directly. Store combined context in the ancestor
2303 (try_make_edge_direct_virtual_call): Work on contexts rather than
2305 (update_indirect_edges_after_inlining): Get context from
2306 ipa_context_from_jfunc.
2307 (ipa_free_node_params_substructures): Free also known_contexts.
2308 (ipa_free_all_structures_after_ipa_cp): Free the new alloc pool.
2309 (ipa_free_all_structures_after_iinln): Likewise.
2310 * ipa-inline-analysis.c (evaluate_properties_for_edge): Work on
2311 contexts rather than BINFOs.
2312 (estimate_edge_devirt_benefit): Likewise.
2313 (estimate_edge_size_and_time): Likewise.
2314 (estimate_calls_size_and_time): Likewise.
2315 (estimate_node_size_and_time): Likewise.
2316 (estimate_ipcp_clone_size_and_time): Likewise.
2317 (do_estimate_edge_time): Likewise.
2318 (do_estimate_edge_size): Likewise.
2319 (do_estimate_edge_hints): Likewise.
2320 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::dump): New
2321 parameter newline, ouput newline only when it is set.
2322 (ipa_polymorphic_call_context::equal_to): New method.
2324 2014-11-14 Martin Jambor <mjambor@suse.cz>
2326 * ipa-cp.c (ipcp_value_source): Converted to a template class. All
2327 users converted to the same specialization as the using class/function
2328 or specialization on tree.
2329 (ipcp_value): Likewise.
2330 (ipcp_lattice): Likewise.
2331 (ipcp_agg_lattice): Now derived from tree specialization of
2333 (values_topo): Moved to new class value_topo_info.
2334 (ipa_lat_is_single_const): Turned into ipcp_lattice::is_single_const.
2335 Updated all callers.
2336 (print_lattice): Turned into ipcp_lattice::print. Updated all
2338 (value_topo_info): New class template.
2339 (ipa_topo_info): New field constants. New constructor.
2340 (build_toporder_info): Do not clear stack_top, only checkign assert
2342 (set_lattice_to_bottom): Turned into ipcp_lattice::set_to_bottom.
2343 Updated all callers.
2344 (set_lattice_contains_variable): Turned into
2345 ipcp_lattice::set_contains_variable. Updated all callers.
2346 (add_value_source): Turned into ipcp_value::add_source. Updated all
2348 (allocate_and_init_ipcp_value): New function.
2349 (add_value_to_lattice): Turned into ipcp_lattice::add_value. Last
2350 parameter got default a value. Updated all callers.
2351 (add_scalar_value_to_lattice): Removed, users converted to using
2352 ipcp_lattice::add_value with default value of the last parameter.
2353 (add_val_to_toposort): Turned to value_topo_info::add_val. Updated
2355 (propagate_effects): Made method of value_topo_info.
2356 (cgraph_edge_brings_value_p): Now a template function.
2357 (get_info_about_necessary_edges): Likewise.
2358 (gather_edges_for_value): Likewise.
2359 (perhaps_add_new_callers): Likewise.
2360 (decide_about_value): Likewise.
2361 * ipa-prop.h (ipcp_lattice): Remove fowrward declaration.
2363 2014-11-14 Jakub Jelinek <jakub@redhat.com>
2365 * doc/install.texi (--with-diagnostics-color=): Document.
2367 * tree-ssa.dce.c (eliminate_unnecessary_stmts): Eliminate
2368 IFN_GOMP_SIMD_LANE without lhs as useless.
2370 * ipa-pure-const.c (struct funct_state_d): Add can_free field.
2371 (varying_state): Add true for can_free.
2372 (check_call): For builtin or internal !nonfreeing_call_p set
2374 (check_stmt): For asm volatile and asm with "memory" set
2376 (analyze_function): Clear local->can_free initially, continue
2377 calling check_stmt until all flags are computed, dump can_free
2379 (pure_const_write_summary): Write can_free flag.
2380 (pure_const_read_summary): Read it back.
2381 (propagate_pure_const): Propagate also can_free flag, set
2382 w->nonfreeing_fn if it is false after propagation.
2383 * cgraph.h (cgraph_node): Add nonfreeing_fn member.
2384 * gimple.c: Include ipa-ref.h, lto-streamer.h and cgraph.h.
2385 (nonfreeing_call_p): Return cgraph nonfreeing_fn flag if set.
2386 Also return true for IFN_ABNORMAL_DISPATCHER.
2387 * cgraph.c (cgraph_node::dump): Dump nonfreeing_fn flag.
2388 * lto-cgraph.c (lto_output_node): Write nonfreeing_fn flag.
2389 (input_overwrite_node): Read it back.
2391 2014-11-14 Jakub Jelinek <jakub@redhat.com>
2392 Marek Polacek <polacek@redhat.com>
2394 * sanopt.c: Include tree-ssa-operands.h.
2395 (struct sanopt_info): Add has_freeing_call_p,
2396 has_freeing_call_computed_p, imm_dom_path_with_freeing_call_p,
2397 imm_dom_path_with_freeing_call_computed_p, freeing_call_events,
2398 being_visited_p fields.
2399 (struct sanopt_ctx): Add asan_check_map field.
2400 (imm_dom_path_with_freeing_call, maybe_optimize_ubsan_null_ifn,
2401 maybe_optimize_asan_check_ifn): New functions.
2402 (sanopt_optimize_walker): Use them, optimize even ASAN_CHECK
2404 (pass_sanopt::execute): Call sanopt_optimize even for
2406 * gimple.c (nonfreeing_call_p): Return true for non-ECF_LEAF
2409 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
2411 * tree-vect-loop.c (vect_create_epilog_for_reduction): Move code for
2412 'if (extract_scalar_result)' to the only place that it is true.
2414 2014-11-14 H.J. Lu <hongjiu.lu@intel.com>
2416 * config.gcc (default_gnu_indirect_function): Set to yes
2417 for i[34567]86-*-linux* and x86_64-*-linux* if not targeting
2420 2014-11-14 Felix Yang <felix.yang@huawei.com>
2421 Jiji Jiang <jiangjiji@huawei.com>
2423 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): Use
2424 VALL mode iterator instead of VALLDI.
2427 2014-11-14 Jan Hubicka <hubicka@ucw.cz>
2429 * optc-save-gen.awk: Output cl_target_option_eq,
2430 cl_target_option_hash, cl_target_option_stream_out,
2431 cl_target_option_stream_in functions.
2432 * opth-gen.awk: Output prototypes for
2433 cl_target_option_eq and cl_target_option_hash.
2434 * lto-streamer.h (cl_target_option_stream_out,
2435 cl_target_option_stream_in): Declare.
2436 * tree.c (cl_option_hash_hash): Use cl_target_option_hash.
2437 (cl_option_hash_eq): Use cl_target_option_eq.
2438 * tree-streamer-in.c (unpack_value_fields): Stream in
2440 * lto-streamer-out.c (DFS::DFS_write_tree_body): Follow
2441 DECL_FUNCTION_SPECIFIC_TARGET.
2442 (hash_tree): Hash TREE_TARGET_OPTION; visit
2443 DECL_FUNCTION_SPECIFIC_TARGET.
2444 * tree-streamer-out.c (streamer_pack_tree_bitfields): Skip
2446 (streamer_write_tree_body): Output TS_TARGET_OPTION.
2448 2014-11-14 Richard Biener <rguenther@suse.de>
2450 * gimple-fold.h (gimple_fold_stmt_to_constant_1): Add 2nd
2451 valueization hook defaulted to no_follow_ssa_edges.
2452 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Pass
2453 2nd valueization hook to gimple_simplify.
2454 * tree-ssa-ccp.c (valueize_op_1): New function to be
2455 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
2457 * tree-vrp.c (vrp_valueize_1): New function to be
2458 used for gimple_simplify called via gimple_fold_stmt_to_constant_1.
2459 (vrp_visit_assignment_or_call): Adjust.
2461 2014-11-14 Marek Polacek <polacek@redhat.com>
2463 * fold-const.c (fold_negate_expr): Don't fold INTEGER_CST if
2464 that overflows when SANITIZE_SI_OVERFLOW is on. Guard -(-A)
2465 folding with TYPE_OVERFLOW_SANITIZED.
2467 2014-11-14 Marek Polacek <polacek@redhat.com>
2470 * asan.c (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST,
2471 ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
2472 * builtin-attrs.def (ATTR_COLD_CONST_NORETURN_NOTHROW_LEAF_LIST):
2474 * builtins.c (fold_builtin_0): Don't include ubsan.h. Don't
2475 instrument BUILT_IN_UNREACHABLE here.
2476 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Make
2478 * sanopt.c (pass_sanopt::execute): Instrument BUILT_IN_UNREACHABLE.
2479 * tree-ssa-ccp.c (optimize_unreachable): Bail out if
2480 SANITIZE_UNREACHABLE.
2481 * ubsan.c (ubsan_instrument_unreachable): Rewrite for GIMPLE.
2482 * ubsan.h (ubsan_instrument_unreachable): Adjust declaration.
2484 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
2486 * config/rs6000/vector.md (vec_shl_<mode>): Remove.
2487 (vec_shr_<mode>): Reverse shift if BYTES_BIG_ENDIAN.
2489 2014-11-14 Alan Lawrence <alan.lawrence@arm.com>
2491 * optabs.c (shift_amt_for_vec_perm_mask): Remove code conditional on
2493 * tree-vect-loop.c (calc_vec_perm_mask_for_shift,
2494 vect_create_epilog_for_reduction): Likewise.
2495 * doc/md.texi (vec_shr_m): Clarify direction of shifting.
2497 2014-11-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2500 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Split out
2501 numerical immediate handling to...
2502 (aarch64_internal_mov_immediate): ...this. New.
2503 (aarch64_rtx_costs): Use aarch64_internal_mov_immediate.
2504 (aarch64_mov_operand_p): Relax predicate.
2505 * config/aarch64/aarch64.md (mov<mode>:GPI): Do not expand CONST_INTs.
2506 (*movsi_aarch64): Turn into define_insn_and_split and new alternative
2508 (*movdi_aarch64): Likewise.
2510 2014-11-14 Richard Biener <rguenther@suse.de>
2512 * match.pd: Implement more binary patterns exercised by
2514 * fold-const.c (sing_bit_p): Export.
2515 (exact_inverse): Likewise.
2516 (fold_binary_loc): Remove patterns here.
2517 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
2518 * fold-const.h (sing_bit_p): Declare.
2519 (exact_inverse): Likewise.
2521 2014-11-14 Marek Polacek <polacek@redhat.com>
2523 * tree.c (build_common_builtin_nodes): Remove doubled ECF_LEAF.
2525 2014-11-14 Richard Biener <rguenther@suse.de>
2527 * genmatch.c (add_operator): Allow CONSTRUCTOR.
2528 (dt_node::gen_kids): Handle CONSTRUCTOR not as GENERIC.
2529 (parser::parse_op): Allow to iterate over predicates.
2531 2014-11-14 Jakub Jelinek <jakub@redhat.com>
2533 * configure.ac (--with-diagnostics-color): New configure
2534 option, default to --with-diagnostics-color=auto.
2535 * toplev.c (process_options): Use DIAGNOSTICS_COLOR_DEFAULT
2536 to determine -fdiagnostics-color= option default.
2537 * doc/invoke.texi (-fdiagnostics-color=): Document new
2539 * configure: Regenerated.
2540 * config.in: Regenerated.
2542 2014-11-13 Teresa Johnson <tejohnson@google.com>
2544 PR tree-optimization/63841
2545 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
2547 2014-11-14 Bin Cheng <bin.cheng@arm.com>
2549 * timevar.def (TV_SCHED_FUSION): New time var.
2550 * passes.def (pass_sched_fusion): New pass.
2551 * config/arm/arm.c (TARGET_SCHED_FUSION_PRIORITY): New.
2552 (extract_base_offset_in_addr, fusion_load_store): New.
2553 (arm_sched_fusion_priority): New.
2554 (arm_option_override): Disable scheduling fusion by default
2555 on non-armv7 processors or ldrd/strd isn't preferred.
2556 * sched-int.h (struct _haifa_insn_data): New field.
2557 (INSN_FUSION_PRIORITY, FUSION_MAX_PRIORITY, sched_fusion): New.
2558 * sched-rgn.c (rest_of_handle_sched_fusion): New.
2559 (pass_data_sched_fusion, pass_sched_fusion): New.
2560 (make_pass_sched_fusion): New.
2561 * haifa-sched.c (sched_fusion): New.
2562 (insn_cost): Handle sched_fusion.
2563 (priority): Handle sched_fusion by calling target hook.
2564 (enum rfs_decision): New enum value.
2565 (rfs_str): New element for RFS_FUSION.
2566 (rank_for_schedule): Support sched_fusion.
2567 (schedule_insn, max_issue, prune_ready_list): Handle sched_fusion.
2568 (schedule_block, fix_tick_ready): Handle sched_fusion.
2569 * common.opt (flag_schedule_fusion): New.
2570 * tree-pass.h (make_pass_sched_fusion): New.
2571 * target.def (fusion_priority): New.
2572 * doc/tm.texi.in (TARGET_SCHED_FUSION_PRIORITY): New.
2573 * doc/tm.texi: Regenerated.
2574 * doc/invoke.texi (-fschedule-fusion): New.
2576 2014-11-13 Rong Xu <xur@google.com>
2579 * cfgrtl.c (emit_barrier_after_bb): Append the barrier to the
2580 footer, instead of unconditionally overwritten.
2582 2014-11-14 Martin Jambor <mjambor@suse.cz>
2584 * cgraph.h (clear_outer_type): Make public. Fix comment.
2585 * ipa-devirt.c (possible_polymorphic_call_targets): Use
2586 clear_outer_type when resetting the context.
2588 2014-11-13 Dominique Dhumieres <dominiq@lps.ens.fr>
2591 * gcc.c (handle_foffload_option): Replace strchrnul with strchr.
2592 * lto-wrapper.c (parse_env_var, append_offload_options): Likewise.
2594 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
2596 * fold-const.c (const_binop): Remove code handling VEC_RSHIFT_EXPR.
2597 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
2598 * tree-inline.c (estimate_operator_cost): Likewise.
2599 * tree-pretty-print.c (dump_generic_node, op_code_prio, op_symbol_code):
2602 * tree-vect-generic.c (expand_vector_operations_1): Remove assertion
2603 against VEC_RSHIFT_EXPR.
2605 * optabs.h (expand_vec_shift_expr): Remove.
2606 * optabs.c (optab_for_tree_code): Remove case VEC_RSHIFT_EXPR.
2607 (expand_vec_shift_expr): Remove.
2608 * tree.def (VEC_RSHIFT_EXPR): Remove
2610 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
2612 * optabs.c (can_vec_perm_p): Update comment, does not consider vec_shr.
2613 (shift_amt_for_vec_perm_mask): New.
2614 (expand_vec_perm_1): Use vec_shr_optab if second vector is const0_rtx
2615 and mask appropriate.
2617 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): New.
2618 (have_whole_vector_shift): New.
2619 (vect_model_reduction_cost): Call have_whole_vector_shift instead of
2620 looking for vec_shr_optab.
2621 (vect_create_epilog_for_reduction): Likewise; also rename local variable
2622 have_whole_vector_shift to reduce_with_shift; output VEC_PERM_EXPRs
2623 instead of VEC_RSHIFT_EXPRs.
2625 * tree-vect-stmts.c (vect_gen_perm_mask_checked): Extend comment.
2627 2014-11-13 Alan Lawrence <alan.lawrence@arm.com>
2629 * tree-vectorizer.h (vect_gen_perm_mask): Remove.
2630 (vect_gen_perm_mask_checked, vect_gen_perm_mask_any): New.
2632 tree_vec_data_refs.c (vect_permute_load_chain, vec_permute_store_chain,
2633 vec_shift_permute_load_chain): Replace vect_gen_perm_mask & assert
2634 with vect_gen_perm_mask_checked.
2636 * tree-vect-stmts.c (vectorizable_mask_load_store, vectorizable_load):
2639 (vect_gen_perm_mask_checked): New.
2640 (vect_gen_perm_mask): Remove can_vec_perm_p check, rename to...
2641 (vect_gen_perm_mask_any): ...this.
2643 (perm_mask_for_reverse): Call can_vec_perm_p and
2644 vect_gen_perm_mask_checked.
2646 2014-11-13 Felix Yang <felix.yang@huawei.com>
2648 * ipa-utils.h: Fix typo in comments.
2649 * ipa-profile.c: Likewise.
2650 * tree-ssa-loop-ivcanon.c: Fix typo in comments and debugging dumps.
2652 2014-11-13 Teresa Johnson <tejohnson@google.com>
2654 PR tree-optimization/63841
2655 * tree-ssa-strlen.c (strlen_optimize_stmt): Ignore clobbers.
2657 2014-11-13 Teresa Johnson <tejohnson@google.com>
2659 PR tree-optimization/63841
2660 * tree.c (initializer_zerop): A clobber does not zero initialize.
2662 2014-11-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2664 * optabs.c (prepare_operand): Gracefully fail if the mode of X
2665 does not match the operand mode expected by the insn pattern.
2667 2014-11-13 Richard Biener <rguenther@suse.de>
2669 * match.pd: Add tcc_comparison, inverted_tcc_comparison
2670 and inverted_tcc_comparison_with_nans operator lists.
2671 Use tcc_comparison in the truth_valued_p predicate definition.
2672 Restrict logical_inverted_value with bit_xor to integral types.
2673 Build a boolean true for simplifying x |^ !x because of
2674 vector types. Implement patterns from forward_propagate_comparison
2675 * tree-ssa-forwprop.c (forward_propagate_comparison): Remove.
2676 (get_prop_dest_stmt): Likewise.
2677 (pass_forwprop::execute): Do not call it.
2678 * fold-const.c (fold_unary_loc): Remove the pattern here.
2680 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
2681 Andrey Turetskiy <andrey.turetskiy@intel.com>
2683 * config.gcc (*-intelmic-* | *-intelmicemul-*): Add i386/t-intelmic to
2685 (i[34567]86-*-* | x86_64-*-*): Build mkoffload$(exeext) with the
2686 accelerator compiler.
2687 * config/i386/intelmic-mkoffload.c: New file.
2688 * config/i386/t-intelmic: Ditto.
2690 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
2691 Andrey Turetskiy <andrey.turetskiy@intel.com>
2692 Ilya Verbin <ilya.verbin@intel.com>
2694 * common.opt (foffload, foffload-abi): New options.
2695 * config/i386/i386.c (ix86_offload_options): New static function.
2696 (TARGET_OFFLOAD_OPTIONS): Define.
2697 * coretypes.h (enum offload_abi): New enum.
2698 * doc/tm.texi: Regenerate.
2699 * doc/tm.texi.in (TARGET_OFFLOAD_OPTIONS): Document.
2700 * gcc.c (offload_targets): New static variable.
2701 (handle_foffload_option): New static function.
2702 (driver_handle_option): Handle OPT_foffload_.
2703 (driver::maybe_putenv_OFFLOAD_TARGETS): Set OFFLOAD_TARGET_NAMES
2704 according to offload_targets.
2705 * hooks.c (hook_charptr_void_null): New hook.
2706 * hooks.h (hook_charptr_void_null): Declare.
2707 * lto-opts.c: Include lto-section-names.h.
2708 (lto_write_options): Append options from target offload_options hook and
2709 store them to offload_lto section. Do not store target-specific,
2710 driver and diagnostic options in offload_lto section.
2711 * lto-wrapper.c (merge_and_complain): Handle OPT_foffload_ and
2713 (append_compiler_options, append_linker_options)
2714 (append_offload_options): New static functions.
2715 (compile_offload_image): Add new arguments with options.
2716 Call append_compiler_options and append_offload_options.
2717 (compile_images_for_offload_targets): Add new arguments with options.
2718 (find_and_merge_options): New static function.
2719 (run_gcc): Outline options handling into the new functions:
2720 find_and_merge_options, append_compiler_options, append_linker_options.
2721 * opts.c (common_handle_option): Don't handle OPT_foffload_.
2722 Forbid OPT_foffload_abi_ for non-offload compiler.
2723 * target.def (offload_options): New target hook.
2725 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
2726 Bernd Schmidt <bernds@codesourcery.com>
2727 Andrey Turetskiy <andrey.turetskiy@intel.com>
2728 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2730 * gcc.c (spec_host_machine, accel_dir_suffix): New variables.
2731 (process_command): Tweak path construction for the possibility
2732 of being configured as an offload compiler.
2733 (driver::maybe_putenv_OFFLOAD_TARGETS): New function.
2734 (driver::main): Call maybe_putenv_OFFLOAD_TARGETS.
2735 (driver::set_up_specs): Tweak path construction for the possibility of
2736 being configured as an offload compiler.
2737 * lto-wrapper.c (OFFLOAD_TARGET_NAMES_ENV): Define.
2738 (offload_names, offloadbegin, offloadend): New static variables.
2739 (free_array_of_ptrs, parse_env_var, access_check, compile_offload_image)
2740 (compile_images_for_offload_targets, copy_file, find_offloadbeginend):
2741 New static functions.
2742 (run_gcc): Determine whether offload sections are present. If so, run
2743 compile_images_for_offload_targets and return the names of new generated
2744 objects to linker. If there are offload sections, but no LTO sections,
2745 then return the copies of input objects without link-time recompilation.
2747 2014-11-13 Richard Biener <rguenther@suse.de>
2749 * genmatch.c (dt_node::gen_kids): Fix placement of break statement.
2751 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
2752 Bernd Schmidt <bernds@codesourcery.com>
2753 Andrey Turetskiy <andrey.turetskiy@intel.com>
2754 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2756 * Makefile.in (GTFILES): Add omp-low.h to list of GC files.
2757 * cgraphunit.c: Include omp-low.h.
2758 * doc/tm.texi: Regenerate.
2759 * doc/tm.texi.in (TARGET_RECORD_OFFLOAD_SYMBOL): Document.
2760 * gengtype.c (open_base_files): Add omp-low.h to ifiles.
2761 * lto-cgraph.c (output_offload_tables): New function.
2762 (input_offload_tables): Likewise.
2763 * lto-section-in.c (lto_section_name): Add "offload_table".
2764 * lto-section-names.h (OFFLOAD_VAR_TABLE_SECTION_NAME): Define.
2765 (OFFLOAD_FUNC_TABLE_SECTION_NAME): Likewise.
2766 * lto-streamer-out.c (lto_output): Call output_offload_tables.
2767 * lto-streamer.h (lto_section_type): Add LTO_section_offload_table.
2768 (output_offload_tables, input_offload_tables): Declare.
2769 * omp-low.c: Include common/common-target.h and lto-section-names.h.
2770 (offload_funcs, offload_vars): New global <tree, va_gc> vectors.
2771 (expand_omp_target): Add child_fn into offload_funcs vector.
2772 (add_decls_addresses_to_decl_constructor): New function.
2773 (omp_finish_file): Likewise.
2774 * omp-low.h (omp_finish_file, offload_funcs, offload_vars): Declare.
2775 * target.def (record_offload_symbol): New DEFHOOK.
2776 * toplev.c: Include omp-low.h.
2777 (compile_file): Call omp_finish_file.
2778 * varpool.c: Include omp-low.h.
2779 (varpool_node::get_create): Add decl into offload_vars vector.
2781 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
2782 Ilya Tocar <ilya.tocar@intel.com>
2783 Andrey Turetskiy <andrey.turetskiy@intel.com>
2784 Bernd Schmidt <bernds@codesourcery.com>
2786 * cgraph.c: Include context.h.
2787 (cgraph_node::create): Set node->offloadable and g->have_offload if
2788 decl have "omp declare target" attribute.
2789 * cgraph.h (symtab_node): Add need_lto_streaming and offloadable flags.
2790 * cgraphunit.c: Include lto-section-names.h.
2791 (ipa_passes): Call ipa_write_summaries if there is something to write to
2792 OFFLOAD_SECTION_NAME_PREFIX sections.
2793 (symbol_table::compile): Set flag_generate_lto if there is something to
2795 Replace flag_lto with flag_generate_lto before lto_streamer_hooks_init.
2796 * context.c (gcc::context::context): Initialize have_offload with false.
2797 * context.h (class context): Add have_offload flag.
2798 * ipa-inline-analysis.c (inline_generate_summary): Do not exit under
2800 (inline_free_summary): Always remove hooks.
2801 * lto-cgraph.c (referenced_from_other_partition_p): Ignore references
2802 from non-offloadable nodes while streaming a node into offload section.
2803 (reachable_from_other_partition_p): Likewise.
2804 (select_what_to_stream): New function.
2805 (compute_ltrans_boundary): Do not call
2806 lto_set_symtab_encoder_in_partition if the node should not be streamed.
2807 * lto-section-names.h (OFFLOAD_SECTION_NAME_PREFIX): Define.
2808 (section_name_prefix): Declare.
2809 * lto-streamer.c (section_name_prefix): New variable.
2810 (lto_get_section_name): Use section_name_prefix instead of
2811 LTO_SECTION_NAME_PREFIX.
2812 * lto-streamer.h (select_what_to_stream): Declare.
2813 * omp-low.c: Include context.h.
2814 (is_targetreg_ctx): New function.
2815 (scan_sharing_clauses): Use offloadable flag, instead of an attribute.
2816 (create_omp_child_function, check_omp_nesting_restrictions): Use new
2817 is_targetreg_ctx function. Replace usage of "omp declare target"
2818 attribute with a cgraph_node flag offloadable.
2819 (expand_omp_target): Set mark_force_output for offloadable functions.
2820 (lower_omp_critical): Set offloadable flag for omp critical symbol.
2821 * passes.c (ipa_write_summaries): New argument offload_lto_mode. Call
2822 select_what_to_stream. Do not call lto_set_symtab_encoder_in_partition
2823 if the node should not be streamed out.
2824 * tree-pass.h (ipa_write_summaries): New bool argument.
2825 * varpool.c: Include context.h.
2826 (varpool_node::get_create): Set node->offloadable and g->have_offload if
2827 decl have "omp declare target" attribute.
2829 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
2830 Thomas Schwinge <thomas@codesourcery.com>
2831 Ilya Verbin <ilya.verbin@intel.com>
2832 Andrey Turetskiy <andrey.turetskiy@intel.com>
2834 * Makefile.in (real_target_noncanonical, accel_dir_suffix)
2835 (enable_as_accelerator): New variables substituted by configure.
2836 (libsubdir, libexecsubdir, unlibsubdir): Tweak for the possibility of
2837 being configured as an offload compiler.
2838 (DRIVER_DEFINES): Pass new defines DEFAULT_REAL_TARGET_MACHINE and
2840 (install-cpp, install-common, install_driver, install-gcc-ar): Do not
2841 install for the offload compiler.
2842 * config.in: Regenerate.
2843 * configure: Regenerate.
2844 * configure.ac (real_target_noncanonical, accel_dir_suffix)
2845 (enable_as_accelerator): Compute new variables.
2846 (ACCEL_COMPILER): Define if the compiler is built as the accel compiler.
2847 (OFFLOAD_TARGETS): List of target names suitable for offloading.
2848 (ENABLE_OFFLOADING): Define if list of offload targets is not empty.
2849 * doc/install.texi (Options specification): Document
2850 --enable-as-accelerator-for and --enable-offload-targets.
2852 2014-11-13 H.J. Lu <hongjiu.lu@intel.com>
2854 PR tree-optimization/63828
2855 * ipa-polymorphic-call.c (possible_placement_new): Check
2856 POINTER_SIZE, instead of BITS_PER_WORD, for pointer size.
2858 2014-11-13 Eric Botcazou <ebotcazou@adacore.com>
2860 * doc/tm.texi.in (SELECT_CC_MODE): Update example.
2861 (REVERSIBLE_CC_MODE): Fix example.
2862 (REVERSE_CONDITION): Fix typo.
2863 * doc/tm.texi: Regenerate.
2865 2014-11-13 Tom de Vries <tom@codesourcery.com>
2867 * omp-low.c (pass_data_expand_omp): Set properties_provided to
2869 (pass_expand_omp::gate): Remove function. Move gate expression to ...
2870 (pass_expand_omp::execute): ... here, as new variable gate. Add early
2871 exit if gate is false.
2872 (pass_data pass_data_expand_omp_ssa): New pass_data.
2873 (class pass_expand_omp_ssa): New pass.
2874 (make_pass_expand_omp_ssa): New function.
2875 * passes.def (pass_parallelize_loops): Use PUSH_INSERT_PASSES_WITHIN
2876 instead of NEXT_PASS.
2877 (pass_expand_omp_ssa): Add after pass_parallelize_loops.
2878 * tree-parloops.c (gen_parallel_loop): Remove call to omp_expand_local.
2879 (pass_parallelize_loops::execute): Don't do cleanups TODO_cleanup_cfg
2880 and TODO_rebuild_alias yet. Add TODO_update_ssa. Set
2881 cfun->omp_expand_needed.
2882 * tree-pass.h: Add define PROP_gimple_eomp.
2883 (make_pass_expand_omp_ssa): Declare.
2885 2014-11-13 Marek Polacek <polacek@redhat.com>
2887 * tree.h (TYPE_OVERFLOW_SANITIZED): Define.
2888 * fold-const.c (fold_binary_loc): Use it.
2889 * match.pd: Likewise.
2891 2014-11-14 Kirill Yukhin <kirill.yukhin@intel.com>
2893 * lra-lives.c (struct bb_data): Rename to ...
2894 (struct bb_data_pseudos): ... this.
2895 (initiate_live_solver): Update struct name.
2897 2014-11-13 Richard Biener <rguenther@suse.de>
2899 * match.pd: Implement conditional expression patterns.
2900 * tree-ssa-forwprop.c (forward_propagate_into_cond): Remove
2902 (combine_cond_exprs): Remove.
2903 (pass_forwprop::execute): Do not call combine_cond_exprs.
2904 * fold-const.c (fold_ternary_loc): Remove patterns here.
2905 (pedantic_omit_one_operand_loc): Remove.
2907 2014-12-13 Richard Biener <rguenther@suse.de>
2910 * match.pd: Implement bswap patterns for transforms checked by
2911 gcc.dg/builtin-bswap-8.c.
2913 2014-11-13 Vladimir Makarov <vmakarov@redhat.com>
2915 * lra.c (lra): Switch off rematerialization pass.
2917 2014-11-12 Vladimir Makarov <vmakarov@redhat.com>
2919 * common.opt (flra-remat): New.
2920 * opts.c (default_options_table): Add entry for flra_remat.
2921 * timevar_def (TV_LRA_REMAT): New.
2922 * doc/invoke.texi (-flra-remat): Add description of the new
2924 * doc/passes.texi (-flra-remat): Remove lra-equivs.c and
2925 lra-saves.c. Add lra-remat.c.
2926 * Makefile.in (OBJS): Add lra-remat.o.
2927 * lra-remat.c: New file.
2928 * lra.c: Add info about the rematerialization pass in the top
2930 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info):
2931 Process unallocatable regs too.
2932 (lra_constraint_new_insn_uid_start): Remove.
2933 (lra): Add code for calling rematerialization sub-pass.
2934 * lra-int.h (lra_constraint_new_insn_uid_start): Remove.
2935 (lra_constrain_insn, lra_remat): New prototypes.
2936 (lra_eliminate_regs_1): Add parameter.
2937 * lra-lives.c (make_hard_regno_born, make_hard_regno_dead):
2938 Process unallocatable hard regs too.
2939 (process_bb_lives): Ditto.
2940 * lra-spills.c (remove_pseudos): Add argument to
2941 lra_eliminate_regs_1 call.
2942 * lra-eliminations.c (lra_eliminate_regs_1): Add parameter. Use it
2943 for sp offset calculation.
2944 (lra_eliminate_regs): Add argument for lra_eliminate_regs_1 call.
2945 (eliminate_regs_in_insn): Add parameter. Use it for sp offset
2947 (process_insn_for_elimination): Add argument for
2948 eliminate_regs_in_insn call.
2949 * lra-constraints.c (get_equiv_with_elimination): Add argument
2950 for lra_eliminate_regs_1 call.
2951 (process_addr_reg): Add parameter. Use it.
2952 (process_address_1): Ditto. Add argument for process_addr_reg
2954 (process_address): Ditto.
2955 (curr_insn_transform): Add parameter. Use it. Add argument for
2956 process_address calls.
2957 (lra_constrain_insn): New function.
2958 (lra_constraints): Add argument for curr_insn_transform call.
2960 2014-11-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2962 * opts-global.c (postpone_unknown_option_warning): Fix spelling.
2963 (print_ignored_options): Fix quoting.
2964 * opts.c (common_handle_option): Likewise.
2965 (set_debug_level): Likewise.
2966 * toplev.c (process_options): Likewise.
2968 2014-11-12 Jakub Jelinek <jakub@redhat.com>
2971 * ipa-pure-const.c (propagate_nothrow): Walk w->indirect_calls
2972 chain instead of node->indirect_calls. Put !can_throw into
2973 conditions of all the loops.
2975 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
2977 * config/i386/i386.c (x86_output_mi_thunk): Use gen_rtx_REG to
2978 set pic_offset_table_rtx.
2980 2014-11-12 Matthew Fortune <matthew.fortune@imgtec.com>
2982 * common/config/mips/mips-common.c (mips_handle_option): Ensure
2983 that -mfp32, -mfp64 disable -mfpxx and -mfpxx disables -mfp64.
2984 * config.gcc (--with-fp-32): New option.
2985 (--with-odd-spreg-32): Likewise.
2986 * config.in (HAVE_AS_DOT_MODULE): New config define.
2987 * config/mips/mips-protos.h
2988 (mips_secondary_memory_needed): New prototype.
2989 (mips_hard_regno_caller_save_mode): Likewise.
2990 * config/mips/mips.c (mips_get_reg_raw_mode): New static prototype.
2991 (mips_get_arg_info): Assert that V2SFmode is only handled specially
2992 with TARGET_PAIRED_SINGLE_FLOAT.
2993 (mips_return_mode_in_fpr_p): Likewise.
2994 (mips16_call_stub_mode_suffix): Likewise.
2995 (mips_get_reg_raw_mode): New static function.
2996 (mips_return_fpr_pair): O32 return values span two registers.
2997 (mips16_build_call_stub): Likewise.
2998 (mips_function_value_regno_p): Support both FP return registers.
2999 (mips_output_64bit_xfer): Use mthc1 whenever TARGET_HAS_MXHC1. Add
3000 specific cases for TARGET_FPXX to move via memory.
3001 (mips_dwarf_register_span): For TARGET_FPXX pretend that modes larger
3002 than UNITS_PER_FPREG 'span' one register.
3003 (mips_dwarf_frame_reg_mode): New static function.
3004 (mips_file_start): Switch to using .module instead of .gnu_attribute.
3005 No longer support FP ABI 4 (-mips32r2 -mfp64), replace with FP ABI 6.
3006 Add FP ABI 5 (-mfpxx) and FP ABI 7 (-mfp64 -mno-odd-spreg).
3007 (mips_save_reg, mips_restore_reg): Always represent DFmode frame
3008 slots with two CFI directives even for O32 FP64.
3009 (mips_for_each_saved_gpr_and_fpr): Account for fixed_regs when
3010 saving/restoring callee-saved registers.
3011 (mips_hard_regno_mode_ok_p): Implement O32 FP64A extension.
3012 (mips_secondary_memory_needed): New function.
3013 (mips_option_override): ABI check for TARGET_FLOATXX. Disable
3014 odd-numbered single-precision registers when using TARGET_FLOATXX.
3015 Implement -modd-spreg and defaults.
3016 (mips_conditional_register_usage): Redefine O32 FP64 to match O32 FP32
3017 callee-saved behaviour.
3018 (mips_hard_regno_caller_save_mode): Implement.
3019 (TARGET_GET_RAW_RESULT_MODE): Define target hook.
3020 (TARGET_GET_RAW_ARG_MODE): Define target hook.
3021 (TARGET_DWARF_FRAME_REG_MODE): Define target hook.
3022 * config/mips/mips.h (TARGET_FLOAT32): New macro.
3023 (TARGET_O32_FP64A_ABI): Likewise.
3024 (TARGET_CPU_CPP_BUILTINS): TARGET_FPXX is __mips_fpr==0. Add
3025 _MIPS_SPFPSET builtin define.
3026 (MIPS_FPXX_OPTION_SPEC): New macro.
3027 (OPTION_DEFAULT_SPECS): Pass through --with-fp-32=* to -mfp and
3028 --with-odd-spreg-32=* to -m[no-]odd-spreg.
3029 (ISA_HAS_ODD_SPREG): New macro.
3030 (ISA_HAS_MXHC1): True for anything other than -mfp32.
3031 (ASM_SPEC): Pass through mfpxx, mfp64, -mno-odd-spreg and -modd-spreg.
3032 (MIN_FPRS_PER_FMT): Redefine in terms of TARGET_ODD_SPREG.
3033 (HARD_REGNO_CALLER_SAVE_MODE): Define. Implement O32 FPXX extension
3034 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
3035 (SECONDARY_MEMORY_NEEDED): Likewise.
3036 (FUNCTION_ARG_REGNO_P): Update for O32 FPXX and FP64 extensions.
3037 * config/mips/mips.md (define_attr enabled): Implement O32 FPXX and
3038 FP64A ABI extensions.
3039 (move_doubleword_fpr<mode>): Use ISA_HAS_MXHC1 instead of
3041 * config/mips/mips.opt (mfpxx): New target option.
3042 (modd-spreg): Likewise.
3043 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Infer FP ABI from arch.
3044 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise and remove
3046 * config/mips/t-mti-elf: Remove fp64 multilib.
3047 * config/mips/t-mti-linux: Likewise.
3048 * configure.ac: Detect .module support.
3049 * configure: Regenerate.
3050 * doc/invoke.texi: Document -mfpxx, -modd-spreg, -mno-odd-spreg option.
3051 * doc/install.texi (--with-fp-32, --with-odd-spreg-32): Document new
3054 2014-11-12 H.J. Lu <hongjiu.lu@intel.com>
3057 * config/i386/i386.c (ix86_init_large_pic_reg): New. Extracted
3059 (ix86_init_pic_reg): Here. Use ix86_init_large_pic_reg.
3060 (x86_output_mi_thunk): Set PIC register to %r11. Call
3061 ix86_init_large_pic_reg to initialize PIC register.
3063 2014-11-12 Kai Tietz <ktietz@redhat.com>
3065 * sdbout.c (sdbout_symbol): Eliminate register only
3066 if decl isn't a global variable.
3068 2014-11-12 Alan Lawrence <alan.lawrence@arm.com>
3070 * config/aarch64/aarch64.c (aarch64_simd_lane_bounds): Display indices.
3072 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add
3073 qualifier_lane_index.
3074 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): Rename to...
3075 (aarch64_types_quadop_lane_qualifiers, TYPES_QUADOP_LANE): ...these.
3076 (aarch64_types_ternop_lane_qualifiers, TYPES_TERNOP_LANE): New.
3078 (aarch64_types_getlane_qualifiers): Rename to...
3079 (aarch64_types_binop_imm_qualifiers): ...this.
3080 (TYPES_SHIFTIMM): Follow renaming.
3081 (TYPES_GETLANE): Rename to...
3082 (TYPE_GETREG): ...this.
3084 (aarch64_types_setlane_qualifiers): Rename to...
3085 (aarch64_type_ternop_imm_qualifiers): ...this.
3086 (TYPES_SHIFTINSERT, TYPES_SHIFTACC): Follow renaming.
3087 (TYPES_SETLANE): Follow renaming above, and rename self to...
3088 (TYPE_SETREG): ...this.
3090 (enum builtin_simd_arg): Add SIMD_ARG_LANE_INDEX.
3091 (aarch64_simd_expand_args): Add range check and endianness-flip.
3093 (aarch64_simd_expand_builtin): Add mapping for qualifier_lane_index.
3095 * config/aarch64/aarch64-simd.md
3096 (aarch64_sq<r>dmulh_lane<mode>_internal *2): Rename to...
3097 (aarch64_sq<r>dmulh_lane<mode>): ...this, and remove lane bounds check.
3098 (aarch64_sqdmulh_lane<mode> *2, aarch64_sqrdmulh_lane<mode> *2): Delete.
3100 (aarch64_sq<r>dmulh_laneq<mode>_internal): Rename to...
3101 (aarch64_sq<r>dmulh_lane<mode>): ...this.
3103 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal *2): Rename to...
3104 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>): ...this.
3106 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal *2): Rename to...
3107 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>): ...this.
3109 (aarch64_sqdmull_lane<mode>_internal *2): Rename to...
3110 (aarch64_sqdmull_lane<mode>): ...this.
3112 (aarch64_sqdmull_laneq<mode>_internal *2): Rename to...
3113 (aarch64_sqdmull_laneq<mode>): ...this.
3115 (aarch64_sqdmulh_laneq<mode>, aarch64_sqrdmulh_laneq<mode>,
3116 (aarch64_sqdmlal_lane<mode>, aarch64_sqdmlal_laneq<mode>,
3117 aarch64_sqdmlsl_lane<mode>, aarch64_sqdmlsl_laneq<mode>,
3118 aarch64_sqdmull_lane<mode>, aarch64_sqdmull_laneq<mode>): Delete.
3120 (aarch64_sqdmlal2_lane<mode>, aarch64_sqdmlal2_laneq<mode>,
3121 aarch64_sqdmlsl2_lane<mode>, aarch64_sqdmlsl2_laneq<mode>,
3122 aarch64_sqdmull2_lane<mode>, aarch64_sqdmull2_laneq<mode>): Remove
3123 bounds check and lane flip.
3125 * config/aarch64/aarch64-simd-builtins.def (be_checked_get_lane,
3126 get_dregoi, get_dregci, getdregxi, get_qregoi,get_qregci, get_qregxi,
3127 set_qregoi, set_qregci, set_qregxi): Change qualifiers to GETREG.
3129 (sqdmlal_lane, sqdmlsl_lane, sqdmlal_laneq, sqdmlsl_laneq,
3130 sqdmlal2_lane, sqdmlsl2_lane, sqdmlal2_laneq, sqdmlsl2_laneq): Follow
3131 renaming of TERNOP_LANE to QUADOP_LANE.
3133 (sqdmull_lane, sqdmull_laneq, sqdmull2_lane, sqdmull2_laneq,
3134 sqdmulh_lane, sqdmulh_laneq, sqrdmulh_lane, sqrdmulh_laneq): Set
3135 qualifiers to TERNOP_LANE.
3137 2014-11-12 Tobias Burnus <burnus@net-b.de>
3139 * Makefile.in (CLOOGLIBS, CLOOGINC): Remove.
3140 * configure.ac: Ditto.
3141 * graphite-interchange.c: Remove HAVE_CLOOG block.
3142 * config.in: Regenerate.
3143 * configure: Regenerate.
3145 2014-11-12 Jiong Wang <jiong.wang@arm.com>
3147 * config/aarch64/aarch64.h (CALL_USED_REGISTERS): Mark LR as
3149 (EPILOGUE_USES): Guard the check by epilogue_completed.
3150 * config/aarch64/aarch64.c (aarch64_layout_frame): Explictly check for
3152 (aarch64_can_eliminate): Check LR_REGNUM liveness.
3154 2014-11-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3156 * config/arm/arm.c (*<arith_shift_insn>_shiftsi): Fix typo.
3158 2014-11-12 Marek Polacek <polacek@redhat.com>
3160 * fold-const.c (fold_binary_loc): Don't fold if the result
3162 * match.pd (A + (-B) -> A - B, A - (-B) -> A + B,
3163 -(-A) -> A): Likewise.
3165 2014-11-12 Richard Biener <rguenther@suse.de>
3167 Merge from match-and-simplify branch
3168 2014-11-04 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
3170 * genmatch.c (user_id): Add new member is_oper_list.
3171 (user_id::user_id): Add new default argument.
3172 (parser::parse_operator_list): New function.
3173 (parser::parse_for): Allow operator-list.
3174 (parser::parse_pattern): Call parser::parse_operator_list.
3175 (parser::parse_operation): Reject operator-list.
3176 * match-builtin.pd: Define operator lists POWs, CBRTs and SQRTs.
3178 2014-10-31 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
3180 * genmatch.c (parser::parse_c_expr): Mark user-defined ops as used.
3182 2014-10-30 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
3184 * genmatch.c (parser::parse_op): Check if predicate is used in
3187 2014-10-29 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
3189 * genmatch.c (parser::parse_for): Make sure to have a valid
3190 token to report errors at.
3192 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
3194 * genmatch.c (parser): Add new member parsing_match_operand.
3195 (parser::parse_operation): Check for conditional convert in result
3197 (parser::parse_expr): Check for commutative operator in result operand.
3198 Check for :type in match operand.
3199 (parser::parse_simplify): Set/unset parsing_match_operand.
3200 (parser::parser): Initialize parsing_match_operand.
3202 2014-10-28 Richard Biener <rguenther@suse.de>
3204 * genmatch.c (parser::parse_for): Properly check for already
3207 2014-10-28 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
3209 * genmatch.c (error_cb): Adjust for printing warnings.
3210 (warning_at): New function.
3211 (user_id): Add new member used.
3212 (get_operator): Mark user_id as used.
3213 (parse_for): Warn for unused operators.
3215 2014-11-12 Richard Biener <rguenther@suse.de>
3217 * match.pd: Implement simple complex operations cancelling.
3218 * fold-const.c (fold_unary_loc): Remove them here.
3220 2014-11-12 Joseph Myers <joseph@codesourcery.com>
3222 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
3223 Define __NO_MATH_ERRNO__ if -fno-math-errno.
3224 * doc/cpp.texi (__NO_MATH_ERRNO__): Document predefined macro.
3226 2014-11-12 Richard Biener <rguenther@suse.de>
3228 * genmatch.c (::gen_transform): Add capture_info and
3229 expand_compares arguments.
3230 (struct expr): Add is_generic flag.
3231 (lower_cond): New functions lowering [VEC_]COND_EXPR
3232 conditions to a GENERIC and a GIMPLE variant.
3233 (lower): Call lower_cond.
3234 (cmp_operand): Also compare the is_generic flag.
3235 (capture_info::cinfo): Add cond_expr_cond_p flag.
3236 (capture_info::capture_info): Pass down whether the
3237 expression argument is a COND_EXPR condition.
3238 (capture_info::walk_match): Likewise, mark captures
3239 capturing COND_EXPR conditions with cond_expr_cond_p.
3240 (expr::gen_transform): Pass down whether we need to
3241 expand compares from COND_EXPR conditions.
3242 (capture::gen_transform): Expand compares substituted
3243 from COND_EXPR conditions into non-COND_EXPR conditions.
3244 (dt_operand::gen_gimple_expr): Handle explicitely marked
3245 GENERIC expressions as generic.
3246 (dt_simplify::gen): Pass whether we need to expand
3247 conditions to gen_transform. Handle capture results
3248 which are from COND_EXPR conditions.
3249 (main): Pass gimple flag down to lower.
3251 2014-11-12 Jakub Jelinek <jakub@redhat.com>
3254 * builtin-attrs.def (ATTR_NOTHROW_TYPEGENERIC_LEAF): New attribute.
3255 * builtins.c (fold_builtin_arith_overflow): New function.
3256 (fold_builtin_3): Use it.
3257 * builtins.def (BUILT_IN_ADD_OVERFLOW, BUILT_IN_SUB_OVERFLOW,
3258 BUILT_IN_MUL_OVERFLOW, BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW,
3259 BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW,
3260 BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW,
3261 BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW,
3262 BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADDL_OVERFLOW,
3263 BUILT_IN_UADDLL_OVERFLOW, BUILT_IN_USUB_OVERFLOW,
3264 BUILT_IN_USUBL_OVERFLOW, BUILT_IN_USUBLL_OVERFLOW,
3265 BUILT_IN_UMUL_OVERFLOW, BUILT_IN_UMULL_OVERFLOW,
3266 BUILT_IN_UMULLL_OVERFLOW): New built-in functions.
3267 * builtin-types.def (BT_PTR_UINT, BT_PTR_ULONG, BT_PTR_LONGLONG,
3268 BT_FN_BOOL_INT_INT_INTPTR, BT_FN_BOOL_LONG_LONG_LONGPTR,
3269 BT_FN_BOOL_LONGLONG_LONGLONG_LONGLONGPTR, BT_FN_BOOL_UINT_UINT_UINTPTR,
3270 BT_FN_BOOL_ULONG_ULONG_ULONGPTR,
3271 BT_FN_BOOL_ULONGLONG_ULONGLONG_ULONGLONGPTR, BT_FN_BOOL_VAR): New.
3272 * expr.c (write_complex_part): Remove prototype, no longer static.
3273 * expr.h (write_complex_part): New prototype.
3274 * function.c (aggregate_value_p): For internal functions return 0.
3275 * gimple-fold.c (arith_overflowed_p): New functions.
3276 (gimple_fold_call): Fold {ADD,SUB,MUL}_OVERFLOW internal calls.
3277 * gimple-fold.h (arith_overflowed_p): New prototype.
3278 * tree-ssa-dce.c: Include tree-ssa-propagate.h and gimple-fold.h.
3279 (find_non_realpart_uses, maybe_optimize_arith_overflow): New
3281 (eliminate_unnecessary_stmts): Transform {ADD,SUB,MUL}_OVERFLOW
3282 into COMPLEX_CST/COMPLEX_EXPR if IMAGPART_EXPR of the result is
3284 * gimplify.c (gimplify_call_expr): Handle gimplification of
3285 internal calls with lhs.
3286 * internal-fn.c (get_range_pos_neg, get_min_precision,
3287 expand_arith_overflow_result_store): New functions.
3288 (ubsan_expand_si_overflow_addsub_check): Renamed to ...
3289 (expand_addsub_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
3290 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
3291 Handle ADD_OVERFLOW and SUB_OVERFLOW expansion.
3292 (ubsan_expand_si_overflow_neg_check): Renamed to ...
3293 (expand_neg_overflow): ... this. Add LOC, LHS, ARG1, IS_UBSAN
3294 arguments, remove STMT argument. Handle SUB_OVERFLOW with
3295 0 as first argument expansion.
3296 (ubsan_expand_si_overflow_mul_check): Renamed to ...
3297 (expand_mul_overflow): ... this. Add LOC, LHS, ARG0, ARG1,
3298 UNSR_P, UNS0_P, UNS1_P, IS_UBSAN arguments, remove STMT argument.
3299 Handle MUL_OVERFLOW expansion.
3300 (expand_UBSAN_CHECK_ADD): Use expand_addsub_overflow, prepare
3302 (expand_UBSAN_CHECK_SUB): Use expand_addsub_overflow or
3303 expand_neg_overflow, prepare arguments for it.
3304 (expand_UBSAN_CHECK_MUL): Use expand_mul_overflow, prepare arguments
3306 (expand_arith_overflow, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW,
3307 expand_MUL_OVERFLOW): New functions.
3308 * internal-fn.def (ADD_OVERFLOW, SUB_OVERFLOW, MUL_OVERFLOW): New
3310 * tree-vrp.c (check_for_binary_op_overflow): New function.
3311 (extract_range_basic): Handle {REAL,IMAG}PART_EXPR if the operand
3312 is SSA_NAME set by {ADD,SUB,MUL}_OVERFLOW internal functions.
3313 (simplify_internal_call_using_ranges): Handle {ADD,SUB,MUL}_OVERFLOW
3315 * optabs.def (umulv4_optab): New optab.
3316 * config/i386/i386.md (umulv<mode>4, <u>mulvqi4): New define_expands.
3317 (*umulv<mode>4, *<u>mulvqi4): New define_insns.
3318 * doc/extend.texi (Integer Overflow Builtins): Document
3319 __builtin_*_overflow.
3321 2014-11-12 Richard Biener <rguenther@suse.de>
3323 * genmatch.c (capture_info::capture_info): Add missing
3325 (capture_info::walk_match): Fix COND_EXPR handling.
3326 (capture_info::walk_result): Likewise.
3328 2014-11-12 Richard Biener <rguenther@suse.de>
3331 * match.pd: Add missing conversion to the -(T)-X pattern.
3333 2014-11-12 Richard Biener <rguenther@suse.de>
3336 * hash-table.h: Include ggc.h also for generator programs.
3337 * genmatch.c (ggc_internal_cleared_alloc): Properly define
3338 using MEM_STAT_DECL instead of CXX_MEM_STAT_INFO.
3340 2014-11-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
3342 PR tree-optimization/63761
3343 * tree-ssa-math-opts.c (bswap_replace): Construct gsi from cur_stmt
3344 rather than taking it as a parameter. Add some comments to explain the
3345 gsi_move_before in case of load and why canonicalization of bswap into
3346 a rotation is only done for 16bit values.
3347 (pass_optimize_bswap::execute): Adapt for loop via gsi to make gsi
3348 refer to the statement just before cur_stmt. Ignore 16bit bswap that
3349 are already in canonical form. Adapt bswap_replace to removal of its
3352 2014-11-12 Richard Sandiford <richard.sandiford@arm.com>
3354 * rtl.h (rtx_function, for_each_rtx, for_each_rtx_in_insn): Delete.
3355 * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1, for_each_rtx):
3356 (for_each_rtx_in_insn): Delete.
3357 (init_rtlanal): Remove initialization of non_rtx_starting_operands.
3358 * df-core.c: Remove reference to for_each_rtx in comment.
3360 2014-11-12 Tejas Belagod <tejas.belagod@arm.com>
3362 * Makefile.in (TEXI_GCC_FILES): Remove arm-acle-intrinsics.texi,
3363 arm-neon-intrinsics.texi, aarch64-acle-intrinsics.texi.
3364 * doc/aarch64-acle-intrinsics.texi: Remove.
3365 * doc/arm-acle-intrinsics.texi: Remove.
3366 * doc/arm-neon-intrinsics.texi: Remove.
3367 * doc/extend.texi: Consolidate sections AArch64 intrinsics,
3368 ARM NEON Intrinsics, ARM ACLE Intrinsics into one ARM C Language
3369 Extension section. Add references to public ACLE specification.
3371 2014-11-11 Patrick Palka <ppalka@gcc.gnu.org>
3373 * tree-vrp.c (register_edge_assert_for_2): Change return type to
3374 void and adjust accordingly.
3375 (register_edge_assert_for_1): Likewise.
3376 (register_edge_assert_for): Likewise.
3377 (find_conditional_asserts): Likewise.
3378 (find_switch_asserts): Likewise.
3379 (find_assert_locations_1): Likewise.
3380 (find_assert_locations): Likewise.
3381 (insert_range_insertions): Inspect the need_assert_for bitmap.
3383 2014-11-11 Andrew Pinski <apinski@cavium.com>
3386 * config.gcc (aarch64*-*-*): Set target_gtfiles to include
3388 * config/aarch64/aarch64-builtins.c: Include gt-aarch64-builtins.h
3389 at the end of the file.
3391 2014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
3392 Manuel López-Ibáñez <manu@gcc.gnu.org>
3395 * diagnostic-core.h: Add prototype for fatal_error.
3396 * diagnostic.c (fatal_error): New function fatal_error.
3397 * gcc.c (store_arg): Remove have_o_argbuf_index.
3398 (process_command): Check if input and output files are the same.
3399 * toplev.c (init_asm_output): Check if input and output files are
3402 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
3404 * reorg.c (fill_slots_from_thread): Do not copy frame-related insns.
3406 2014-11-11 Eric Botcazou <ebotcazou@adacore.com>
3409 * config/sparc/sparc.c (function_arg_vector_value): Deal with vectors
3410 smaller than 8 bytes.
3411 (sparc_function_arg_1): Tweak.
3412 (sparc_function_value_1): Tweak.
3414 2014-11-11 David Malcolm <dmalcolm@redhat.com>
3416 * ChangeLog.jit: New.
3417 * Makefile.in (doc_build_sys): New variable, set to "sphinx" if
3418 sphinx is installed, falling back to "texinfo" otherwise.
3419 (FULL_DRIVER_NAME): New variable, adapted from the
3420 install-driver target. New target, a symlink within the builddir,
3421 linked to "xgcc", for use when running the JIT library from the
3423 (MOSTLYCLEANFILES): Add FULL_DRIVER_NAME.
3424 (install-driver): Use $(FULL_DRIVER_NAME) rather than spelling it
3426 * configure.ac (doc_build_sys): New variable, set to "sphinx" if
3427 sphinx is installed, falling back to "texinfo" otherwise.
3428 (GCC_DRIVER_NAME): Generate a gcc-driver-name.h file containing
3429 GCC_DRIVER_NAME for the benefit of jit/internal-api.c.
3430 * configure: Regenerate.
3431 * doc/install.texi (--enable-host-shared): Specify that this is
3432 required when building libgccjit.
3433 (Tools/packages necessary for modifying GCC): Add Sphinx.
3434 * timevar.def (TV_JIT_REPLAY): New.
3439 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3442 * configure: Regenerate.
3444 2014-11-11 James Greenhalgh <james.greenhalgh@arm.com>
3446 * config/aarch64/aarch64-simd.md
3447 (aarch64_simd_bsl<mode>_internal): Remove float cases, canonicalize.
3448 (aarch64_simd_bsl<mode>): Add gen_lowpart expressions where we
3449 are punning between float vectors and integer vectors.
3451 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
3453 * config/alpha/alpha.c (alpha_emit_conditional_branch): Replace
3454 open-coded swap with std::swap to swap values.
3455 (alpha_emit_setcc): Ditto.
3456 (alpha_emit_conditional_move): Ditto.
3457 (alpha_split_tmode_pair): Ditto.
3459 2014-11-11 Evgeny Stupachenko <evstupac@gmail.com>
3461 * tree-vect-data-refs.c (vect_shift_permute_load_chain): Extend shift
3462 permutations on power of 2 cases.
3464 2014-11-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3466 * config/aarch64/aarch64.h (MACHMODE): Remove 'enum' keyword.
3467 (CUMULATIVE_ARGS): Guard on !defined(USED_FOR_TARGET).
3469 2014-11-11 Richard Biener <rguenther@suse.de>
3471 * tree-core.h (pedantic_lvalues): Remove.
3472 * fold-const.c (pedantic_lvalues): Likewise.
3473 (pedantic_non_lvalue_loc): Remove conditional non_lvalue_loc call.
3475 2014-11-11 Martin Liska <mliska@suse.cz>
3479 * ipa-icf.c (sem_function::merge): Add new target symbol alias
3481 (sem_variable::merge): Likewise.
3482 * ipa-icf.h (target_supports_symbol_aliases_p): New function.
3484 2014-11-11 Richard Biener <rguenther@suse.de>
3486 * match.pd: Implement patterns from associate_plusminus
3487 and factor in differences from the fold-const.c implementation.
3488 * fold-const.c (fold_binary_loc): Remove patterns here.
3489 * tree-ssa-forwprop.c (associate_plusminus): Remove.
3490 (pass_forwprop::execute): Don't call it.
3491 * tree.c (tree_nop_conversion_p): New function, factored
3492 from tree_nop_conversion.
3493 * tree.h (tree_nop_conversion_p): Declare.
3495 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
3497 * system.h: Include algorithm and utility.
3498 * rtl.h: Do not include utility here.
3499 * wide-int.h: Ditto.
3500 * tree-vect-data-refs.c (swap): Remove template.
3501 (vect_prune_runtime_alias_test_list): Use std::swap instead of swap.
3503 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3507 * system.h: Include <string> before "safe-ctype.h"
3508 * wide-int.h (wi::smin, wi::smax, wi::umin, wi::umax): Prefix
3509 calls to min/max with wi namespace.
3510 * ipa-chkp.c: Don't include <string>.
3512 2014-11-11 Terry Guo <terry.guo@arm.com>
3514 * doc/invoke.texi (-masm-syntax-unified): Reword and fix typo.
3515 * config/arm/thumb1.md (*thumb_mulsi3): Use movs to move low
3517 (*thumb1_movhf): Likewise.
3519 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
3521 * sreal.c (sreal::to_int): Use INTTYPE_MAXIMUM (int64_t)
3522 instead of INT64_MAX.
3524 2014-11-11 Tobias Burnus <burnus@net-b.de>
3526 * doc/install.texi (Prerequisites): Remove CLooG.
3528 2014-11-10 Trevor Saunders <tsaunders@mozilla.com>
3530 * ipa-inline.c (edge_badness): Adjust.
3531 (inline_small_functions): Likewise.
3532 * predict.c (propagate_freq): Likewise.
3533 (estimate_bb_frequencies): Likewise.
3534 * sreal.c (sreal::dump): Rename from dump_sreal.
3536 (copy): Remove function.
3537 (sreal::shift_right): Rename from sreal_sift_right.
3538 (sreal::normalize): Rename from normalize.
3539 (sreal_init): Remove function.
3540 (sreal::to_int): Rename from sreal_to_int.
3541 (sreal_compare): Remove function.
3542 (sreal::operator+): Rename from sreal_add.
3543 (sreal::operator-): Rename from sreal_sub.
3544 (sreal::operator*): Rename from sreal_mul.
3545 (sreal::operator/): Rename from sreal_div.
3546 * sreal.h (class sreal): Adjust.
3547 (inline sreal &operator+=): New operator.
3548 (inline sreal &operator-=): Likewise.
3549 (inline sreal &operator/=): Likewise.
3550 (inline sreal &operator*=): Likewise.
3551 (inline bool operator!=): Likewise.
3552 (inline bool operator>): Likewise.
3553 (inline bool operator<=): Likewise.
3554 (inline bool operator>=): Likewise.
3556 2014-11-11 Bin Cheng <bin.cheng@arm.com>
3558 * sched-deps.c (sched_analyze_1): Check pending list if it is not
3559 less than MAX_PENDING_LIST_LENGTH.
3560 (sched_analyze_2, sched_analyze_insn, deps_analyze_insn): Ditto.
3562 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
3564 * config/i386/i386.c (ix86_decompose_address): Replace open-coded
3565 swap with std::swap to swap values.
3566 (ix86_fixup_binary_operands): Ditto.
3567 (ix86_binary_operator_ok): Ditto.
3568 (ix86_prepare_fp_compare_args): Ditto.
3569 (ix86_expand_branch): Ditto.
3570 (ix86_expand_carry_flag_compare): Ditto.
3571 (ix86_expand_int_movcc): Ditto.
3572 (ix86_prepare_sse_fp_compare_args): Ditto.
3573 (ix86_expand_sse_fp_minmax): Ditto.
3574 (ix86_expand_int_vcond): Ditto.
3575 (ix86_split_long_move): Ditto.
3576 (ix86_expand_sse_comi): Ditto.
3577 (ix86_expand_sse_compare_and_jump): Ditto.
3578 (ix86_expand_sse_compare_mask): Ditto.
3579 * config/i386/i386.md (*add<mode>_1): Ditto.
3580 (addsi_1_zext): Ditto.
3583 (*add<mode>_2): Ditto.
3584 (*addsi_2_zext): Ditto.
3585 (*add<mode>_3): Ditto.
3586 (*addsi_3_zext): Ditto.
3587 (*add<mode>_5): Ditto.
3588 (absneg splitter): Ditto.
3590 2014-11-11 Uros Bizjak <ubizjak@gmail.com>
3593 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
3596 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
3597 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
3598 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
3599 be reloaded through memory.
3603 2014-11-11 Jakub Jelinek <jakub@redhat.com>
3604 Martin Liska <mliska@suse.cz>
3606 * ipa-icf-gimple.c (func_checker::compare_bb): Fix comment typo.
3607 (func_checker::compare_gimple_call): Compare gimple_call_fn,
3608 gimple_call_chain, gimple_call_fntype and call flags.
3610 2014-11-10 Vladimir Makarov <vmakarov@redhat.com>
3612 PR rtl-optimization/63620
3613 PR rtl-optimization/63799
3614 * lra-lives.c (process_bb_lives): Do not delete EH_REGION, trapped
3615 and setting PIC pseudo insns.
3616 (lra_create_live_ranges): Fix the typo.
3618 2014-11-10 Patrick Palka <ppalka@gcc.gnu.org>
3621 * tree-ssa-propagate.c (may_propagate_copy): Allow propagating
3622 SSA copies whose source and destination names both occur in
3625 2014-11-10 Roman Gareev <gareevroman@gmail.com>
3627 * Makefile.in: Remove the compilation of graphite-clast-to-gimple.o.
3628 * common.opt: Remove using of fgraphite-code-generator flag.
3629 * flag-types.h: Likewise.
3630 * graphite.c: Remove using of CLooG.
3631 * graphite-blocking.c: Likewise.
3632 * graphite-dependences.c: Likewise.
3633 * graphite-poly.c: Likewise.
3634 * graphite-poly.h: Likewise.
3635 * graphite-scop-detection.c: Likewise.
3636 * graphite-sese-to-poly.c: Likewise.
3637 * graphite-clast-to-gimple.c: Removed.
3638 * graphite-clast-to-gimple.h: Likewise.
3639 * graphite-htab.h: Likewise.
3641 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
3643 * doc/invoke.texi ([-Wshift-count-negative, -Wshift-count-overflow]):
3646 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
3648 * config/frv/frv.c (frv_io_handle_use_1): Delete.
3649 (frv_io_handle_use): Use find_all_hard_regs.
3651 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
3653 * config/frv/frv.c (frv_registers_conflict_p_1): Take an rtx rather
3654 than an rtx *. Take the regstate_t directly rather than via a void *.
3655 Return a bool rather than an int. Iterate over all subrtxes here.
3656 (frv_registers_conflict_p): Update accordingly.
3658 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
3660 * config/frv/frv.c: Include rtl-iter.h.
3661 (frv_acc_group_1): Delete.
3662 (frv_acc_group): Use FOR_EACH_SUBRTX.
3664 2014-11-10 Richard Sandiford <richard.sandiford@arm.com>
3666 * config/frv/frv.c: Move include of rtl.h after hard-reg-set.h.
3667 (frv_clear_registers_used): Delete.
3668 (frv_ifcvt_modify_tests): Use find_all_hard_regs.
3670 2014-11-10 Jan Hubicka <hubicka@ucw.cz>
3673 * calls.c (initialize_argument_information): When emitting thunk call
3674 use original memory placement of the argument.
3676 2014-11-10 Renlin Li <renlin.li@arm.com>
3679 * tree-ssa-threadupdate.c (compute_path_counts): Bound path_in_freq.
3681 2014-11-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
3683 * expmed.c (expand_shift_1): Expand 8 bit rotate of 16 bit value to
3684 bswaphi if available.
3686 2014-11-10 Bernd Schmidt <bernds@codesourcery.com>
3688 * config/nvptx/nvptx.c: New file.
3689 * config/nvptx/nvptx.h: New file.
3690 * config/nvptx/nvptx-protos.h: New file.
3691 * config/nvptx/nvptx.md: New file.
3692 * config/nvptx/t-nvptx: New file.
3693 * config/nvptx/nvptx.opt: New file.
3694 * common/config/nvptx/nvptx-common.c: New file.
3695 * config.gcc: Handle nvptx-*-*.
3697 2014-11-10 Richard Biener <rguenther@suse.de>
3699 * tree-ssa-operands.c (finalize_ssa_uses): Properly put
3700 released operands on the free list.
3702 2014-11-10 Richard Biener <rguenther@suse.de>
3704 * match.pd: Implement pattern from simplify_mult.
3705 * tree-ssa-forwprop.c (simplify_mult): Remove.
3706 (pass_forwprop::execute): Do not call simplify_mult.
3708 2014-11-10 Richard Biener <rguenther@suse.de>
3710 PR tree-optimization/63800
3711 * tree-ssa-pre.c (eliminate_push_avail): Push in a way so
3712 we can restore the previous availability in after_dom_children.
3713 (eliminate_dom_walker::after_dom_children): Restore
3714 previous availability.
3716 2014-11-10 Richard Biener <rguenther@suse.de>
3719 * expr.c (expand_expr_real_2): When expanding FMA_EXPRs
3720 properly treat the embedded multiplication as commutative
3721 when looking for feeding negates.
3723 2014-11-10 Joern Rennecke <joern.rennecke@embecosm.com>
3725 * config/avr/avr.h (CPLUSPLUS_CPP_SPEC): Define.
3727 2014-11-10 Martin Liska <mliska@suse.cz>
3729 * gcc.dg/tree-ssa/ldist-19.c: ICF is disabled
3730 for the test because of default char signedness
3731 on powerpc64 target.
3733 2014-11-10 Richard Biener <rguenther@suse.de>
3735 * match.pd: Implement pattern from simplify_conversion_from_bitmask.
3736 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): Remove.
3737 (pass_forwprop::execute): Do not call simplify_conversion_from_bitmask.
3739 2014-11-10 Richard Biener <rguenther@suse.de>
3741 * match.pd: Move rest of the conversion combining patterns
3742 from tree-ssa-forwprop.c.
3743 * tree-ssa-forwprop.c (combine_conversions): Remove.
3744 (pass_forwprop::execute): Do not call it.
3746 2014-11-10 Eric Botcazou <ebotcazou@adacore.com>
3748 * gimple-low.c (lower_function_body): Clear the location of the first
3749 inserted representative return if it also fills in for the fallthru.
3751 2014-11-10 Yuri Rumyantsev <ysrumyan@gmail.com>
3753 * tree-if-conv.c (add_to_predicate_list): Check unconditionally
3754 that bb is always executed to early exit. Use predicate of
3755 cd-equivalent block for join blocks if it exists.
3756 (if_convertible_loop_p_1): Recompute POST_DOMINATOR tree.
3757 (tree_if_conversion): Free post-dominance information.
3759 2014-11-09 Jason Merrill <jason@redhat.com>
3761 * config/i386/avx512vldqintrin.h (_mm256_broadcast_f32x2): __mmask8.
3762 * config/i386/avx512vlintrin.h (_mm256_mask_cvtepi32_storeu_epi16)
3763 (_mm_mask_cvtusepi32_storeu_epi16)
3764 (_mm_mask_cvtsepi64_storeu_epi32): Return void.
3766 2014-11-09 Joern Rennecke <joern.rennecke@embecosm.com>
3768 * config/avr/predicates.md (low_io_address_operand): Fix typo.
3770 2014-11-09 Vladimir Makarov <vmakarov@redhat.com>
3772 PR rtl-optimization/63620
3773 * lra-constraints.c (substitute_pseudo): Add prefix lra_ to the
3774 name. Move to lra.c. Make it external.
3775 (substitute_pseudo_within_insn): Ditto.
3776 (inherit_reload_reg, split_reg, remove_inheritance_pseudos): Use
3778 (undo_optional_reloads): Ditto.
3779 * lra-int.h (lra_dump_bitmap_with_title, lra_substitute_pseudo):
3781 (lra_substitute_pseudo_within_insn): Ditto.
3782 * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): New.
3783 (mark_regno_live): Add parameter. Update bb_gen_pseudos.
3784 (mark_regno_dead): Add parameter. Update bb_gen_pseudos and
3786 (struct bb_data, bb_data_t, bb_data): New.
3787 (get_bb_data, get_bb_data_by_index): Ditto.
3788 (all_hard_regs_bitmap): New.
3789 (live_trans_fun, live_con_fun_0, live_con_fun_n, all_blocks): New.
3790 (initiate_live_solver, finish_live_solver): New.
3791 (process_bb_lives): Change return type. Add code updating local
3792 live data and removing dead insns. Pass new argument to
3793 mark_regno_live and mark_regno_dead. Check changing bb pseudo
3794 life info. Return the result.
3795 (lra_create_live_ranges): Add code to do global pseudo live
3797 (lra_live_ranges_init): Call initiate_live_solver.
3798 (lra_live_ranges_finish): Call finish_live_solver.
3799 * lra.c (lra_dump_bitmap_with_title): New.
3800 (lra_substitute_pseudo, lra_substitute_pseudo_within_insn): Move
3801 from lra-constraints.c.
3803 2014-11-09 Richard Biener <rguenther@suse.de>
3805 * match.pd: Add patterns convering two conversions in a row
3807 * fold-const.c (fold_unary_loc): Remove them here.
3808 * tree-ssa-forwprop.c (combine_conversions): Likewise.
3809 * genmatch.c (dt_node::gen_kids): Check whether we may
3810 follow SSA use-def chains.
3812 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
3814 * config/aarch64/aarch64.c: Include rtl-iter.h.
3815 (aarch64_tls_operand_p_1): Delete.
3816 (aarch64_tls_operand_p): Use FOR_EACH_SUBRTX.
3818 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
3820 * config/arm/arm.c (arm_note_pic_base): Delete.
3821 (arm_cannot_copy_insn_p): Use FOR_EACH_SUBRTX.
3823 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
3825 * config/arm/arm.c: Include rtl-iter.h.
3826 (arm_tls_referenced_p_1): Delete.
3827 (arm_tls_referenced_p): Use FOR_EACH_SUBRTX.
3829 2014-11-08 Richard Sandiford <richard.sandiford@arm.com>
3831 * config/arm/aarch-common.c: Include rtl-iter.h.
3832 (search_term, arm_find_sub_rtx_with_search_term): Delete.
3833 (arm_find_sub_rtx_with_code): Use FOR_EACH_SUBRTX_VAR.
3834 (arm_get_set_operands): Pass the insn pattern rather than the
3836 (arm_no_early_store_addr_dep): Likewise.
3838 2014-11-08 Eric Botcazou <ebotcazou@adacore.com>
3840 * config/arm/arm.c (arm_set_return_address): Mark the store as frame
3842 (thumb_set_return_address): Likewise.
3844 2014-11-07 Jeff Law <law@redhat.com>
3846 PR tree-optimization/61515
3847 * tree-ssa-threadedge.c (invalidate_equivalences): Walk the unwinding
3848 stack rather than looking at every SSA_NAME's value.
3850 2014-11-07 Richard Biener <rguenther@suse.de>
3852 PR tree-optimization/63605
3853 * fold-const.c (fold_binary_loc): Properly use element_precision
3854 for types that may not be scalar.
3856 2014-11-07 Evgeny Stupachenko <evstupac@gmail.com>
3859 * config/i386/i386.md (builtin_setjmp_receiver): Use
3860 pic_offset_table_rtx for PIC register.
3861 (nonlocal_goto_receiver): Delete.
3863 2014-11-07 Daniel Hellstrom <daniel@gaisler.com>
3865 * config.gcc (sparc-*-rtems*): Clean away unused t-elf.
3866 * config/sparc/t-rtems: Add leon3v7 and muser-mode multilibs.
3868 2014-11-07 Martin Liska <mliska@suse.cz>
3871 * cgraphunit.c (cgraph_node::create_wrapper):
3872 TREE_ADDRESSABLE is set to false for a newly created thunk.
3874 2014-11-07 Martin Liska <mliska@suse.cz>
3877 * ipa-icf-gimple.c (func_checker::compare_gimple_switch):
3878 Missing checking for CASE_LOW and CASE_HIGH added.
3880 2014-11-07 Martin Liska <mliska@suse.cz>
3883 * cgraphunit.c (cgraph_node::expand_thunk): DECL_BY_REFERENCE
3884 is correctly handled for thunks created by IPA ICF.
3886 2014-11-07 Jiong Wang <jiong.wang@arm.com>
3887 2014-11-07 Richard Biener <rguenther@suse.de>
3889 PR tree-optimization/63676
3890 * gimple-fold.c (fold_gimple_assign): Do not fold node when
3891 TREE_CLOBBER_P be true.
3893 2014-11-07 Richard Biener <rguenther@suse.de>
3896 * match.pd: Guard conflicting GENERIC pattern properly.
3898 2014-11-07 Richard Biener <rguenther@suse.de>
3900 * match.pd: Add patterns for POINTER_PLUS_EXPR association
3901 and special patterns from tree-ssa-forwprop.c
3902 * fold-const.c (fold_binary_loc): Remove them here.
3903 * tree-ssa-forwprop.c (to_purge): New global bitmap.
3904 (fwprop_set_lattice_val): New function.
3905 (fwprop_invalidate_lattice): Likewise.
3906 (remove_prop_source_from_use): Instead of purging dead EH
3907 edges record blocks to do that in to_purge.
3908 (tidy_after_forward_propagate_addr): Likewise.
3909 (forward_propagate_addr_expr): Invalidate the lattice for
3910 SSA names we release.
3911 (simplify_conversion_from_bitmask): Likewise.
3912 (simplify_builtin_call): Likewise.
3913 (associate_pointerplus_align): Remove.
3914 (associate_pointerplus_diff): Likewise.
3915 (associate_pointerplus): Likewise.
3916 (fold_all_stmts): Merge with ...
3917 (pass_forwprop::execute): ... the original loop over all
3918 basic-blocks. Delay purging dead EH edges and invalidate
3919 the lattice for SSA names we release.
3921 2014-11-07 Terry Guo <terry.guo@arm.com>
3923 * config/arm/arm.opt (masm-syntax-unified): New option.
3924 * doc/invoke.texi (-masm-syntax-unified): Document new option.
3925 * config/arm/arm.h (TARGET_UNIFIED_ASM): Also include thumb1.
3926 (ASM_APP_ON): Redefined.
3927 * config/arm/arm.c (arm_option_override): Thumb2 inline assembly
3928 code always use UAL syntax.
3929 (arm_output_mi_thunk): Use UAL syntax for Thumb1 target.
3930 * config/arm/thumb1.md: Likewise.
3932 2014-11-06 John David Anglin <danglin@gcc.gnu.org>
3934 * config/pa/pa.md (trap): New insn. Add "trap" to attribute type.
3935 Don't allow trap insn in in_branch_delay, in_nullified_branch_delay
3938 2014-11-06 Steve Ellcey <sellcey@imgtec.com>
3940 * config.gcc (mips*-mti-linux*): Remove gnu_ld and gas assignments.
3941 Set default_mips_arch and default_mips_abi instead of tm_defines.
3942 (mips*-*-linux*): Set default_mips_arch and default_mips_abi instead
3944 (mips*-*-*): Check with_arch and with_abi. Set tm_defines.
3945 * config/mips/mips.h (STANDARD_STARTFILE_PREFIX_1): Set default
3946 based on MIPS_ABI_DEFAULT.
3947 (STANDARD_STARTFILE_PREFIX_2): Ditto.
3949 2014-11-06 Joseph Myers <joseph@codesourcery.com>
3951 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to corner
3952 cases of extended identifiers.
3954 2014-11-06 Eric Botcazou <ebotcazou@adacore.com>
3956 * tree-cfgcleanup.c (fixup_noreturn_call): Do not perform DCE here.
3958 2014-11-06 DJ Delorie <dj@redhat.com>
3960 * config/m32c/cond.md (movqicc_<code>_<mode>): Remove mode of
3962 (movhicc_<code>_<mode>): Likewise.
3963 * config/m32c/m32c.c (encode_pattern_1): Specialise PSImode
3965 (m32c_eh_return_data_regno): Change to using memregs to avoid
3966 tying up all the compute regs.
3967 (m32c_legitimate_address_p) Subregs are not valid addresses.
3969 2014-11-06 Bernd Schmidt <bernds@codesourcery.com>
3971 * function.c (thread_prologue_and_epilogue_insns): No longer static.
3972 * function.h (thread_prologue_and_epilogue_insns): Declare.
3974 * target.def (assemble_undefined_decl): New hooks.
3975 * hooks.c (hook_void_FILEptr_constcharptr_const_tree): New function.
3976 * hooks.h (hook_void_FILEptr_constcharptr_const_tree): Declare.
3977 * doc/tm.texi.in (TARGET_ASM_ASSEMBLE_UNDEFINED_DECL): Add.
3978 * doc/tm.texi: Regenerate.
3979 * output.h (assemble_undefined_decl): Declare.
3980 (get_fnname_from_decl): Declare.
3981 * varasm.c (assemble_undefined_decl): New function.
3982 (get_fnname_from_decl): New function.
3983 * final.c (rest_of_handle_final): Use it.
3984 * varpool.c (varpool_output_variables): Call assemble_undefined_decl
3985 for nodes without a definition.
3987 * target.def (call_args, end_call_args): New hooks.
3988 * hooks.c (hook_void_rtx_tree): New empty function.
3989 * hooks.h (hook_void_rtx_tree): Declare.
3990 * doc/tm.texi.in (TARGET_CALL_ARGS, TARGET_END_CALL_ARGS): Add.
3991 * doc/tm.texi: Regenerate.
3992 * calls.c (expand_call): Slightly rearrange the code. Use the two new
3994 (expand_library_call_value_1): Use the two new hooks.
3996 * expr.c (use_reg_mode): Just return for pseudo registers.
3998 * combine.c (try_combine): Don't allow a call as one of the source
4001 * target.def (decl_end): New hook.
4002 * varasm.c (assemble_variable_contents, assemble_constant_contents):
4004 * doc/tm.texi.in (TARGET_ASM_DECL_END): Add.
4005 * doc/tm.texi: Regenerate.
4007 2014-11-06 Renlin Li <renlin.li@arm.com>
4009 * config/aarch64/aarch64.c (aarch64_architecture_version): New.
4010 (processor): New architecture_version field.
4011 (aarch64_override_options): Initialize aarch64_architecture_version.
4012 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_ARCH,
4013 __ARM_ARCH_PROFILE, aarch64_arch_name macro.
4015 2014-11-06 James Greenhalgh <james.greenhalgh@arm.com>
4017 * params.def (sra-max-scalarization-size-Ospeed): New.
4018 (sra-max-scalarization-size-Osize): Likewise.
4019 * doc/invoke.texi (sra-max-scalarization-size-Ospeed): Document.
4020 (sra-max-scalarization-size-Osize): Likewise.
4021 * toplev.c (process_options): Set default values for new
4023 * tree-sra.c (analyze_all_variable_accesses): Use new parameters.
4024 * targhooks.c (get_move_ratio): Remove static designator.
4025 * target.h (get_move_ratio): Declare.
4027 2014-11-06 Marek Polacek <polacek@redhat.com>
4029 * sanopt.c (sanopt_optimize_walker): Limit removal of the checks.
4030 Remove vector limit.
4032 2014-11-06 Richard Biener <rguenther@suse.de>
4034 * match.pd: Implement bitwise binary and unary simplifications
4035 from tree-ssa-forwprop.c.
4036 * fold-const.c (fold_unary_loc): Remove them here.
4037 (fold_binary_loc): Likewise.
4038 * tree-ssa-forwprop.c (simplify_not_neg_expr): Remove.
4039 (truth_valued_ssa_name): Likewise.
4040 (lookup_logical_inverted_value): Likewise.
4041 (simplify_bitwise_binary_1): Likewise.
4042 (hoist_conversion_for_bitop_p): Likewise.
4043 (simplify_bitwise_binary_boolean): Likewise.
4044 (simplify_bitwise_binary): Likewise.
4045 (pass_forwprop::execute): Remove calls to simplify_not_neg_expr
4046 and simplify_bitwise_binary.
4047 * genmatch.c (dt_node::append_true_op): Use safe_as_a for parent.
4048 (decision_tree::insert): Also insert non-expressions.
4050 2014-11-06 Hale Wang <hale.wang@arm.com>
4052 * config/arm/arm-cores.def: Add support for
4053 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
4054 cortex-m1.small-multiply.
4055 * config/arm/arm-tables.opt: Regenerate.
4056 * config/arm/arm-tune.md: Regenerate.
4057 * config/arm/arm.c: Update the rtx-costs for MUL.
4058 * config/arm/bpabi.h: Handle
4059 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
4060 cortex-m1.small-multiply.
4061 * doc/invoke.texi: Document
4062 -mcpu=cortex-m0.small-multiply,cortex-m0plus.small-multiply,
4063 cortex-m1.small-multiply.
4065 2014-11-06 Hale Wang <hale.wang@arm.com>
4067 * config/arm/arm.c: Add cortex-m7 tune.
4068 * config/arm/arm-cores.def: Use cortex-m7 tune.
4070 2014-11-05 Uros Bizjak <ubizjak@gmail.com>
4073 * config/i386/i386.c (in_large_data_p): Reject automatic variables.
4074 (ix86_encode_section_info): Do not check for non-automatic varibles
4075 when setting SYMBOL_FLAG_FAR_ADDR flag.
4076 (x86_64_elf_select_section): Do not check ix86_cmodel here.
4077 (x86_64_elf_unique_section): Ditto.
4078 (x86_elf_aligned_common): Emit tab before .largecomm.
4080 2014-11-05 Joseph Myers <joseph@codesourcery.com>
4082 PR preprocessor/9449
4083 * doc/cpp.texi (Character sets, Tokenization)
4084 (Implementation-defined behavior): Don't refer to UCNs in
4085 identifiers requiring -fextended-identifiers.
4086 * doc/cppopts.texi (-fextended-identifiers): Document as enabled
4087 by default for C99 and later and C++.
4088 * doc/invoke.texi (-std=c99, -std=c11): Don't refer to extended
4089 identifiers needing -fextended-identifiers.
4091 2014-11-05 Ilya Tocar <ilya.tocar@intel.com>
4093 * config/i386/i386.c (expand_vec_perm_pshufb): Try vpermq/vpermd
4094 for 512-bit wide modes.
4095 (expand_vec_perm_1): Use correct versions of patterns.
4096 * config/i386/sse.md (avx512f_vec_dup<mode>_1): New.
4097 (vashr<mode>3<mask_name>): Split V8HImode and V16QImode.
4099 2014-11-05 Ilya Enkovich <ilya.enkovich@intel.com>
4105 * tree-chkp-opt.c: New.
4108 * Makefile.in (OBJS): Add ipa-chkp.o, rtl-chkp.o, tree-chkp.o
4110 (GTFILES): Add tree-chkp.c.
4111 * mode-classes.def (MODE_POINTER_BOUNDS): New.
4112 * tree.def (POINTER_BOUNDS_TYPE): New.
4113 * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
4114 (POINTER_BOUNDS_MODE): New.
4115 (make_pointer_bounds_mode): New.
4116 * machmode.h (POINTER_BOUNDS_MODE_P): New.
4117 * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
4118 (layout_type): Support POINTER_BOUNDS_TYPE.
4119 * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
4120 * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
4121 * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
4122 (type_contains_placeholder_1): Likewise.
4123 (build_common_tree_nodes): Initialize
4124 pointer_bounds_type_node.
4125 * tree.h (POINTER_BOUNDS_TYPE_P): New.
4126 (pointer_bounds_type_node): New.
4127 (POINTER_BOUNDS_P): New.
4128 (BOUNDED_TYPE_P): New.
4130 (CALL_WITH_BOUNDS_P): New.
4131 * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
4132 (gimple_call_with_bounds_p): New.
4133 (gimple_call_set_with_bounds): New.
4134 (gimple_return_retbnd): New.
4135 (gimple_return_set_retbnd): New
4136 * gimple.c (gimple_build_return): Increase number of ops
4137 for return statement.
4138 (gimple_build_call_from_tree): Propagate CALL_WITH_BOUNDS_P
4140 * gimple-pretty-print.c (dump_gimple_return): Print second op.
4141 * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
4142 * gimplify.c (gimplify_init_constructor): Avoid infinite
4143 loop during gimplification of bounds initializer.
4144 * calls.c: Include tree-chkp.h, rtl-chkp.h, bitmap.h.
4145 (special_function_p): Use original decl name when analyzing
4146 instrumentation clone.
4147 (arg_data): Add fields special_slot, pointer_arg and
4149 (store_bounds): New.
4150 (emit_call_1): Propagate instrumentation flag for CALL.
4151 (initialize_argument_information): Compute pointer_arg,
4152 pointer_offset and special_slot for pointer bounds arguments.
4153 (finalize_must_preallocate): Preallocate when storing bounds
4155 (compute_argument_addresses): Skip pointer bounds.
4156 (expand_call): Store bounds into tables separately. Return
4157 result joined with resulting bounds.
4158 * cfgexpand.c: Include tree-chkp.h, rtl-chkp.h.
4159 (expand_call_stmt): Propagate bounds flag for CALL_EXPR.
4160 (expand_return): Add returned bounds arg. Handle returned bounds.
4161 (expand_gimple_stmt_1): Adjust to new expand_return signature.
4162 (gimple_expand_cfg): Reset rtx bounds map.
4163 * expr.c: Include tree-chkp.h, rtl-chkp.h.
4164 (expand_assignment): Handle returned bounds.
4165 (store_expr_with_bounds): New. Replaces store_expr with new bounds
4166 target argument. Handle bounds returned by calls.
4167 (store_expr): Now wraps store_expr_with_bounds.
4168 * expr.h (store_expr_with_bounds): New.
4169 * function.c: Include tree-chkp.h, rtl-chkp.h.
4170 (bounds_parm_data): New.
4171 (use_register_for_decl): Do not registerize decls used for bounds
4173 (assign_parms_augmented_arg_list): Add bounds of the result
4174 structure pointer as the second argument.
4175 (assign_parm_find_entry_rtl): Mark bounds are never passed on
4177 (assign_parm_is_stack_parm): Likewise.
4178 (assign_parm_load_bounds): New.
4179 (assign_bounds): New.
4180 (assign_parms): Load bounds and determine a location for
4182 (diddle_return_value_1): New.
4183 (diddle_return_value): Handle returned bounds.
4184 * function.h (rtl_data): Add field for returned bounds.
4185 * varasm.c: Include tree-chkp.h.
4186 (output_constant): Support POINTER_BOUNDS_TYPE.
4187 (output_constant_pool_2): Support MODE_POINTER_BOUNDS.
4188 (ultimate_transparent_alias_target): Move up.
4189 (make_decl_rtl): For instrumented function use
4190 name of the original decl.
4191 (assemble_start_function): Mark function as global
4192 in case it is instrumentation clone of the global
4194 (do_assemble_alias): Follow transparent alias chain
4195 for identifier. Check if original alias is public.
4196 (maybe_assemble_visibility): Use visibility of the
4197 original function for instrumented version.
4198 (default_unique_section): Likewise.
4199 * emit-rtl.c (immed_double_const): Support MODE_POINTER_BOUNDS.
4200 (init_emit_once): Build pointer bounds zero constants.
4201 * explow.c (trunc_int_for_mode): Support MODE_POINTER_BOUNDS.
4202 * target.def (builtin_chkp_function): New.
4203 (chkp_bound_type): New.
4204 (chkp_bound_mode): New.
4205 (chkp_make_bounds_constant): New.
4206 (chkp_initialize_bounds): New.
4207 (load_bounds_for_arg): New.
4208 (store_bounds_for_arg): New.
4209 (load_returned_bounds): New.
4210 (store_returned_bounds): New.
4211 (chkp_function_value_bounds): New.
4212 (setup_incoming_vararg_bounds): New.
4213 (function_arg): Update hook description with new possible return
4215 * targhooks.h (default_load_bounds_for_arg): New.
4216 (default_store_bounds_for_arg): New.
4217 (default_load_returned_bounds): New.
4218 (default_store_returned_bounds): New.
4219 (default_chkp_bound_type): New.
4220 (default_chkp_bound_mode): New.
4221 (default_builtin_chkp_function): New.
4222 (default_chkp_function_value_bounds): New.
4223 (default_chkp_make_bounds_constant): New.
4224 (default_chkp_initialize_bounds): New.
4225 (default_setup_incoming_vararg_bounds): New.
4226 * targhooks.c (default_load_bounds_for_arg): New.
4227 (default_store_bounds_for_arg): New.
4228 (default_load_returned_bounds): New.
4229 (default_store_returned_bounds): New.
4230 (default_chkp_bound_type): New.
4231 (default_chkp_bound_mode); New.
4232 (default_builtin_chkp_function): New.
4233 (default_chkp_function_value_bounds): New.
4234 (default_chkp_make_bounds_constant): New.
4235 (default_chkp_initialize_bounds): New.
4236 (default_setup_incoming_vararg_bounds): New.
4237 * builtin-types.def (BT_BND): New.
4238 (BT_FN_PTR_CONST_PTR): New.
4239 (BT_FN_CONST_PTR_CONST_PTR): New.
4240 (BT_FN_BND_CONST_PTR): New.
4241 (BT_FN_CONST_PTR_BND): New.
4242 (BT_FN_PTR_CONST_PTR_SIZE): New.
4243 (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
4244 (BT_FN_VOID_PTRPTR_CONST_PTR): New.
4245 (BT_FN_VOID_CONST_PTR_SIZE): New.
4246 (BT_FN_VOID_PTR_BND): New.
4247 (BT_FN_CONST_PTR_CONST_PTR_CONST_PTR): New.
4248 (BT_FN_BND_CONST_PTR_SIZE): New.
4249 (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
4250 (BT_FN_VOID_CONST_PTR_BND_CONST_PTR): New.
4251 * chkp-builtins.def: New.
4252 * builtins.def: include chkp-builtins.def.
4253 (DEF_CHKP_BUILTIN): New.
4254 * builtins.c: Include tree-chkp.h and rtl-chkp.h.
4255 (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
4256 BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
4257 BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
4258 BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
4259 BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
4260 BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
4261 BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
4262 BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
4263 BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_NARROW,
4264 BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
4265 (std_expand_builtin_va_start): Init bounds for va_list.
4266 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add
4267 __CHKP__ macro when Pointer Bounds Checker is on.
4268 * params.def (PARAM_CHKP_MAX_CTOR_SIZE): New.
4269 * passes.def (pass_ipa_chkp_versioning): New.
4270 (pass_early_local_passes): Renamed to pass_build_ssa_passes.
4271 (pass_fixup_cfg): Moved to pass_chkp_instrumentation_passes.
4272 (pass_chkp_instrumentation_passes): New.
4273 (pass_ipa_chkp_produce_thunks): New.
4274 (pass_local_optimization_passes): New.
4275 (pass_chkp_opt): New.
4276 * tree-pass.h (make_pass_ipa_chkp_versioning): New.
4277 (make_pass_ipa_chkp_produce_thunks): New.
4278 (make_pass_chkp): New.
4279 (make_pass_chkp_opt): New.
4280 (make_pass_early_local_passes): Renamed to ...
4281 (make_pass_build_ssa_passes): This.
4282 (make_pass_chkp_instrumentation_passes): New.
4283 (make_pass_local_optimization_passes): New.
4284 * passes.c (pass_manager::execute_early_local_passes): Execute
4285 early passes in three steps.
4286 (execute_all_early_local_passes): Renamed to ...
4287 (execute_build_ssa_passes): This.
4288 (pass_data_early_local_passes): Renamed to ...
4289 (pass_data_build_ssa_passes): This.
4290 (pass_early_local_passes): Renamed to ...
4291 (pass_build_ssa_passes): This.
4292 (pass_data_chkp_instrumentation_passes): New.
4293 (pass_chkp_instrumentation_passes): New.
4294 (pass_data_local_optimization_passes): New.
4295 (pass_local_optimization_passes): New.
4296 (make_pass_early_local_passes): Renamed to ...
4297 (make_pass_build_ssa_passes): This.
4298 (make_pass_chkp_instrumentation_passes): New.
4299 (make_pass_local_optimization_passes): New.
4300 * c-family/c.opt (fcheck-pointer-bounds): New.
4301 (fchkp-check-incomplete-type): New.
4302 (fchkp-zero-input-bounds-for-main): New.
4303 (fchkp-first-field-has-own-bounds): New.
4304 (fchkp-narrow-bounds): New.
4305 (fchkp-narrow-to-innermost-array): New.
4306 (fchkp-optimize): New.
4307 (fchkp-use-fast-string-functions): New.
4308 (fchkp-use-nochk-string-functions): New.
4309 (fchkp-use-static-bounds): New.
4310 (fchkp-use-static-const-bounds): New.
4311 (fchkp-treat-zero-dynamic-size-as-infinite): New.
4312 (fchkp-check-read): New.
4313 (fchkp-check-write): New.
4314 (fchkp-store-bounds): New.
4315 (fchkp-instrument-calls): New.
4316 (fchkp-instrument-marked-only): New.
4318 * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
4319 (handle_bnd_legacy): New.
4320 (handle_bnd_instrument): New.
4321 (c_common_attribute_table): Add bnd_variable_size, bnd_legacy
4322 and bnd_instrument. Fix documentation.
4323 (c_common_format_attribute_table): Likewsie.
4324 * toplev.c: include tree-chkp.h.
4325 (process_options): Check Pointer Bounds Checker is supported.
4326 (compile_file): Add chkp_finish_file call.
4327 * ipa-cp.c (initialize_node_lattices): Use cgraph_local_p
4328 to handle instrumentation clones properly.
4329 (propagate_constants_accross_call): Do not propagate
4330 through instrumentation thunks.
4331 * ipa-pure-const.c (propagate_pure_const): Support
4333 * ipa-inline.c (early_inliner): Check edge has summary allocated.
4334 * ipa-split.c: Include tree-chkp.h.
4336 (split_part_set_ssa_name_p): New.
4337 (consider_split): Do not split retbnd and retval
4339 (insert_bndret_call_after): new.
4340 (split_function): Propagate Pointer Bounds Checker
4341 instrumentation marks and handle returned bounds.
4342 * tree-ssa-sccvn.h (vn_reference_op_struct): Transform opcode
4343 into bit field and add with_bounds field.
4344 * tree-ssa-sccvn.c (copy_reference_ops_from_call): Set
4345 with_bounds field for instrumented calls.
4346 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Restore
4347 CALL_WITH_BOUNDS_P flag for calls.
4348 * tree-ssa-ccp.c: Include tree-chkp.h.
4349 (insert_clobber_before_stack_restore): Handle
4350 BUILT_IN_CHKP_BNDRET calls.
4351 * tree-ssa-dce.c: Include tree-chkp.h.
4352 (propagate_necessity): For free call fed by alloc check
4353 bounds are also provided by the same alloc.
4354 (eliminate_unnecessary_stmts): Handle BUILT_IN_CHKP_BNDRET
4356 * tree-inline.c: Include tree-chkp.h.
4357 (declare_return_variable): Add arg holding
4358 returned bounds slot. Create and initialize returned bounds var.
4359 (remap_gimple_stmt): Handle returned bounds.
4360 Return sequence of statements instead of a single statement.
4361 (insert_init_stmt): Add declaration.
4362 (remap_gimple_seq): Adjust to new remap_gimple_stmt signature.
4363 (copy_bb): Adjust to changed return type of remap_gimple_stmt.
4364 Properly handle bounds in va_arg_pack and va_arg_pack_len.
4365 (expand_call_inline): Handle returned bounds. Add bounds copy
4366 for generated mem to mem assignments.
4367 * tree-inline.h (copy_body_data): Add fields retbnd and
4369 * value-prof.c: Include tree-chkp.h.
4370 (gimple_ic): Support returned bounds.
4371 * ipa.c (cgraph_build_static_cdtor_1): Support contructors
4372 with "chkp ctor" and "bnd_legacy" attributes.
4373 (symtab_remove_unreachable_nodes): Keep initial values for
4374 pointer bounds to be used for checks eliminations.
4375 (process_references): Handle IPA_REF_CHKP.
4376 (walk_polymorphic_call_targets): Likewise.
4377 * ipa-visibility.c (cgraph_externally_visible_p): Mark
4378 instrumented 'main' as externally visible.
4379 (function_and_variable_visibility): Filter instrumentation
4381 * cgraph.h (cgraph_thunk_info): Add add_pointer_bounds_args
4383 (cgraph_node): Add instrumented_version, orig_decl and
4384 instrumentation_clone fields.
4385 (symtab_node::get_alias_target): Allow IPA_REF_CHKP reference.
4386 (varpool_node): Add need_bounds_init field.
4387 (cgraph_local_p): New.
4388 * cgraph.c: Include tree-chkp.h.
4389 (cgraph_node::remove): Fix instrumented_version
4390 of the referenced node if any.
4391 (cgraph_node::dump): Dump instrumentation_clone and
4392 instrumented_version fields.
4393 (cgraph_node::verify_node): Check correctness of IPA_REF_CHKP
4394 references and instrumentation thunks.
4395 (cgraph_can_remove_if_no_direct_calls_and_refs_p): Keep
4396 all not instrumented instrumentation clones alive.
4397 (cgraph_redirect_edge_call_stmt_to_callee): Support
4399 * cgraphbuild.c (rebuild_cgraph_edges): Rebuild IPA_REF_CHKP
4401 (cgraph_rebuild_references): Likewise.
4402 * cgraphunit.c: Include tree-chkp.h.
4403 (assemble_thunks_and_aliases): Skip thunks calling instrumneted
4405 (varpool_finalize_decl): Register statically initialized decls
4406 in Pointer Bounds Checker.
4407 (walk_polymorphic_call_targets): Do not mark generated call to
4408 __builtin_unreachable as with_bounds.
4409 (output_weakrefs): If there are both instrumented and original
4410 versions, output only one of them.
4411 (cgraph_node::expand_thunk): Set with_bounds flag
4412 for created call statement.
4413 * ipa-ref.h (ipa_ref_use): Add IPA_REF_CHKP.
4414 (ipa_ref): increase size of use field.
4415 * symtab.c (ipa_ref_use_name): Add element for IPA_REF_CHKP.
4416 * varpool.c (dump_varpool_node): Dump need_bounds_init field.
4417 (ctor_for_folding): Do not fold constant bounds vars.
4418 * lto-streamer.h (LTO_minor_version): Change minor version from
4420 * lto-cgraph.c (compute_ltrans_boundary): Keep initial values for
4422 (lto_output_node): Output instrumentation_clone,
4423 thunk.add_pointer_bounds_args and orig_decl field.
4424 (lto_output_ref): Adjust to new ipa_ref::use field size.
4425 (input_overwrite_node): Read instrumentation_clone field.
4426 (input_node): Read thunk.add_pointer_bounds_args and orig_decl
4428 (input_ref): Adjust to new ipa_ref::use field size.
4429 (input_cgraph_1): Compute instrumented_version fields and restore
4430 IDENTIFIER_TRANSPARENT_ALIAS chains.
4431 (lto_output_varpool_node): Output
4432 need_bounds_init value.
4433 (input_varpool_node): Read need_bounds_init value.
4434 * lto-partition.c (add_symbol_to_partition_1): Keep original
4435 and instrumented versions together.
4436 (privatize_symbol_name): Restore transparent alias chain if required.
4437 (add_references_to_partition): Add references to pointer bounds vars.
4438 * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
4439 * dwarf2out.c (gen_subprogram_die): Ignore bound args.
4440 (gen_type_die_with_usage): Skip pointer bounds.
4441 (dwarf2out_global_decl): Likewise.
4442 (is_base_type): Support POINTER_BOUNDS_TYPE.
4443 (gen_formal_types_die): Skip pointer bounds.
4444 (gen_decl_die): Likewise.
4445 * var-tracking.c (vt_add_function_parameters): Skip
4447 * ipa-icf.c (sem_function::merge): Do not merge when instrumentation
4449 (sem_variable::merge): Reset need_bounds_init flag.
4450 * doc/extend.texi: Document Pointer Bounds Checker built-in functions
4452 * doc/tm.texi.in (TARGET_LOAD_BOUNDS_FOR_ARG): New.
4453 (TARGET_STORE_BOUNDS_FOR_ARG): New.
4454 (TARGET_LOAD_RETURNED_BOUNDS): New.
4455 (TARGET_STORE_RETURNED_BOUNDS): New.
4456 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
4457 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
4458 (TARGET_BUILTIN_CHKP_FUNCTION): New.
4459 (TARGET_CHKP_BOUND_TYPE): New.
4460 (TARGET_CHKP_BOUND_MODE): New.
4461 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
4462 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
4463 * doc/tm.texi: Regenerated.
4464 * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
4467 * doc/invoke.texi (-mmpx): New.
4469 (chkp-max-ctor-size): New.
4470 * config/i386/constraints.md (w): New.
4473 * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
4474 * config/i386/i386-modes.def (BND32): New.
4476 * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
4477 * config/i386/i386.c: Include tree-chkp.h, rtl-chkp.h, tree-iterator.h.
4478 (regclass_map): Add bound registers.
4479 (dbx_register_map): Likewise.
4480 (dbx64_register_map): Likewise.
4481 (svr4_dbx_register_map): Likewise.
4482 (isa_opts): Add -mmpx.
4484 (ix86_option_override_internal): Support MPX ISA.
4485 (ix86_conditional_register_usage): Support bound registers.
4486 (ix86_code_end): Add MPX bnd prefix.
4487 (output_set_got): Likewise.
4488 (print_reg): Avoid prefixes for bound registers.
4489 (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
4490 (ix86_print_operand_punct_valid_p): Likewise.
4491 (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
4493 (ix86_output_call_insn): Add MPX bnd prefix to branch instructions.
4494 (ix86_class_likely_spilled_p): Add bound regs support.
4495 (ix86_hard_regno_mode_ok): Likewise.
4496 (x86_order_regs_for_local_alloc): Likewise.
4497 (ix86_bnd_prefixed_insn_p): New.
4498 (ix86_builtins): Add
4499 IX86_BUILTIN_BNDMK, IX86_BUILTIN_BNDSTX,
4500 IX86_BUILTIN_BNDLDX, IX86_BUILTIN_BNDCL,
4501 IX86_BUILTIN_BNDCU, IX86_BUILTIN_BNDRET,
4502 IX86_BUILTIN_BNDNARROW, IX86_BUILTIN_BNDINT,
4503 IX86_BUILTIN_SIZEOF, IX86_BUILTIN_BNDLOWER,
4504 IX86_BUILTIN_BNDUPPER.
4505 (builtin_isa): Add leaf_p and nothrow_p fields.
4506 (def_builtin): Initialize leaf_p and nothrow_p.
4507 (ix86_add_new_builtins): Handle leaf_p and nothrow_p
4510 (bdesc_mpx_const): New.
4511 (ix86_init_mpx_builtins): New.
4512 (ix86_init_builtins): Call ix86_init_mpx_builtins.
4513 (ix86_emit_cmove): New.
4514 (ix86_emit_move_max): New.
4515 (ix86_expand_builtin): Expand IX86_BUILTIN_BNDMK,
4516 IX86_BUILTIN_BNDSTX, IX86_BUILTIN_BNDLDX,
4517 IX86_BUILTIN_BNDCL, IX86_BUILTIN_BNDCU,
4518 IX86_BUILTIN_BNDRET, IX86_BUILTIN_BNDNARROW,
4519 IX86_BUILTIN_BNDINT, IX86_BUILTIN_SIZEOF,
4520 IX86_BUILTIN_BNDLOWER, IX86_BUILTIN_BNDUPPER.
4521 (ix86_function_value_bounds): New.
4522 (ix86_builtin_mpx_function): New.
4523 (ix86_get_arg_address_for_bt): New.
4524 (ix86_load_bounds): New.
4525 (ix86_store_bounds): New.
4526 (ix86_load_returned_bounds): New.
4527 (ix86_store_returned_bounds): New.
4528 (ix86_mpx_bound_mode): New.
4529 (ix86_make_bounds_constant): New.
4530 (ix86_initialize_bounds):
4531 (TARGET_LOAD_BOUNDS_FOR_ARG): New.
4532 (TARGET_STORE_BOUNDS_FOR_ARG): New.
4533 (TARGET_LOAD_RETURNED_BOUNDS): New.
4534 (TARGET_STORE_RETURNED_BOUNDS): New.
4535 (TARGET_CHKP_BOUND_MODE): New.
4536 (TARGET_BUILTIN_CHKP_FUNCTION): New.
4537 (TARGET_CHKP_FUNCTION_VALUE_BOUNDS): New.
4538 (TARGET_CHKP_MAKE_BOUNDS_CONSTANT): New.
4539 (TARGET_CHKP_INITIALIZE_BOUNDS): New.
4540 (ix86_option_override_internal): Do not
4541 support x32 with MPX.
4542 (init_cumulative_args): Init stdarg, bnd_regno, bnds_in_bt
4544 (function_arg_advance_32): Return number of used integer
4546 (function_arg_advance_64): Likewise.
4547 (function_arg_advance_ms_64): Likewise.
4548 (ix86_function_arg_advance): Handle pointer bounds.
4549 (ix86_function_arg): Likewise.
4550 (ix86_function_value_regno_p): Mark fisrt bounds registers as
4551 possible function value.
4552 (ix86_function_value_1): Handle pointer bounds type/mode
4553 (ix86_return_in_memory): Likewise.
4554 (ix86_print_operand): Analyse insn to decide abounf "bnd" prefix.
4555 (ix86_expand_call): Generate returned bounds.
4556 (ix86_setup_incoming_vararg_bounds): New.
4557 (ix86_va_start): Initialize bounds for pointers in va_list.
4558 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): New.
4559 * config/i386/i386.h (TARGET_MPX): New.
4560 (TARGET_MPX_P): New.
4561 (FIRST_PSEUDO_REGISTER): Fix to new value.
4562 (FIXED_REGISTERS): Add bound registers.
4563 (CALL_USED_REGISTERS): Likewise.
4564 (REG_ALLOC_ORDER): Likewise.
4565 (HARD_REGNO_NREGS): Likewise.
4566 (VALID_BND_REG_MODE): New.
4567 (FIRST_BND_REG): New.
4568 (LAST_BND_REG): New.
4569 (reg_class): Add BND_REGS.
4570 (REG_CLASS_NAMES): Likewise.
4571 (REG_CLASS_CONTENTS): Likewise.
4573 (ANY_BND_REG_P): New.
4575 (HI_REGISTER_NAMES): Add bound registers.
4576 (ix86_args): Add bnd_regno, bnds_in_bt, force_bnd_pass and
4578 * config/i386/i386.md (UNSPEC_BNDMK): New.
4579 (UNSPEC_BNDMK_ADDR): New.
4580 (UNSPEC_BNDSTX): New.
4581 (UNSPEC_BNDLDX): New.
4582 (UNSPEC_BNDLDX_ADDR): New.
4583 (UNSPEC_BNDCL): New.
4584 (UNSPEC_BNDCU): New.
4585 (UNSPEC_BNDCN): New.
4586 (UNSPEC_MPX_FENCE): New.
4587 (UNSPEC_SIZEOF): New.
4590 (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
4591 (length_immediate): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
4592 (prefix_rep): Check for bnd prefix.
4593 (prefix_0f): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
4594 (length_nobnd): New.
4595 (length): Use length_nobnd when specified.
4596 (memory): Support mpxmov, mpxmk, mpxchk, mpxld, mpxst.
4601 (*jcc_1): Add MPX bnd prefix.
4604 (*indirect_jump): Likewise.
4605 (*tablejump_1): Likewise.
4606 (simple_return_internal): Likewise.
4607 (simple_return_internal_long): Likewise.
4608 (simple_return_pop_internal): Likewise.
4609 (simple_return_indirect_internal): Likewise.
4613 (*mov<mode>_internal_mpx): New.
4614 (<mode>_<bndcheck>): New.
4615 (*<mode>_<bndcheck>): New.
4620 move_size_reloc_<mode>): New.
4621 * config/i386/predicates.md (address_mpx_no_base_operand): New.
4622 (address_mpx_no_index_operand): New.
4623 (bnd_mem_operator): New.
4624 (symbol_operand): New.
4625 (x86_64_immediate_size_operand): New.
4626 * config/i386/i386.opt (mmpx): New.
4627 * config/i386/i386-builtin-types.def (BND): New.
4629 (BND_FTYPE_PCVOID_ULONG): New.
4630 (VOID_FTYPE_BND_PCVOID): New.
4631 (VOID_FTYPE_PCVOID_PCVOID_BND): New.
4632 (BND_FTYPE_PCVOID_PCVOID): New.
4633 (BND_FTYPE_PCVOID): New.
4634 (BND_FTYPE_BND_BND): New.
4635 (PVOID_FTYPE_PVOID_PVOID_ULONG): New.
4636 (PVOID_FTYPE_PCVOID_BND_ULONG): New.
4637 (ULONG_FTYPE_VOID): New.
4638 (PVOID_FTYPE_BND): New.
4640 2014-11-05 Bernd Schmidt <bernds@codesourcery.com>
4642 * passes.def (pass_compute_alignments, pass_duplicate_computed_gotos,
4643 pass_variable_tracking, pass_free_cfg, pass_machine_reorg,
4644 pass_cleanup_barriers, pass_delay_slots,
4645 pass_split_for_shorten_branches, pass_convert_to_eh_region_ranges,
4646 pass_shorten_branches, pass_est_nothrow_function_flags,
4647 pass_dwarf2_frame, pass_final): Move outside of pass_postreload and
4648 into pass_late_compilation.
4649 (pass_late_compilation): Add.
4650 * passes.c (pass_data_late_compilation, pass_late_compilation,
4651 make_pass_late_compilation): New.
4652 * timevar.def (TV_LATE_COMPILATION): New.
4654 * target.def (omit_struct_return_reg): New data hook.
4655 * doc/tm.texi.in: Add @hook TARGET_OMIT_STRUCT_RETURN_REG.
4656 * doc/tm.texi: Regenerate.
4657 * function.c (expand_function_end): Use it.
4659 * target.def (no_register_allocation): New data hook.
4660 * doc/tm.texi.in: Add @hook TARGET_NO_REGISTER_ALLOCATION.
4661 * doc/tm.texi: Regenerate.
4662 * ira.c (gate_ira): New function.
4663 (pass_data_ira): Set has_gate.
4664 (pass_ira): Add a gate function.
4665 (pass_data_reload): Likewise.
4666 (pass_reload): Add a gate function.
4668 * reload1.c (eliminate_regs): If reg_eliminate_is NULL, assert that
4669 no register allocation happens on the target and return.
4670 * final.c (alter_subreg): Ensure register is not a pseudo before
4671 calling simplify_subreg.
4672 (output_operand): Assert that x isn't a pseudo only if doing
4673 register allocation.
4675 * dbxout.c (dbxout_symbol): Don't call eliminate_regs on decls for
4678 * optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
4681 2014-11-05 Alex Velenko <Alex.Velenko@arm.com>
4683 * simplify-rtx.c (simplify_binary_operation_1): Div check added.
4684 * rtl.h (SUBREG_P): New macro added.
4686 2014-11-05 Tejas Belagod <tejas.belagod@arm.com>
4688 * config/aarch64/aarch64-builtins.c
4689 (aarch64_build_scalar_type): Remove.
4690 (aarch64_scalar_builtin_types, aarch64_simd_type,
4691 aarch64_simd_type, aarch64_mangle_builtin_scalar_type,
4692 aarch64_mangle_builtin_vector_type,
4693 aarch64_mangle_builtin_type, aarch64_simd_builtin_std_type,
4694 aarch64_lookup_simd_builtin_type, aarch64_simd_builtin_type,
4695 aarch64_init_simd_builtin_types,
4696 aarch64_init_simd_builtin_scalar_types): New.
4697 (aarch64_init_simd_builtins): Refactor.
4698 (aarch64_init_crc32_builtins): Fixup with qualifier.
4699 * config/aarch64/aarch64-protos.h
4700 (aarch64_mangle_builtin_type): Export.
4701 * config/aarch64/aarch64-simd-builtin-types.def: New.
4702 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Remove.
4703 (aarch64_mangle_type): Refactor.
4704 * config/aarch64/arm_neon.h: Declare vector types based on
4706 * config/aarch64/t-aarch64: Update dependency.
4708 2014-11-04 Pat Haugen <pthaugen@us.ibm.com>
4710 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl,
4711 atomic_update_decl): Guard declaration with #ifdef.
4713 2014-11-04 Marek Polacek <polacek@redhat.com>
4715 * sanopt.c (sanopt_optimize_walker): Remove unused variables.
4717 2014-11-04 Marek Polacek <polacek@redhat.com>
4719 * Makefile.in (OBJS): Add sanopt.o.
4720 (GTFILES): Add sanopt.c.
4721 * asan.h (asan_expand_check_ifn): Declare.
4722 * asan.c (asan_expand_check_ifn): No longer static.
4723 (class pass_sanopt, pass_sanopt::execute, make_pass_sanopt): Move...
4724 * sanopt.c: ...here. New file.
4726 2014-11-04 Jiong Wang <jiong.wang@arm.com>
4727 2014-11-04 Wilco Dijkstra <wilco.dijkstra@arm.com>
4730 * config/aarch64/aarch64.c (aarch64_expand_epiloue): Add barriers before
4733 2014-11-04 Bernd Schmidt <bernds@codesourcery.com>
4735 * combine.c (combine_simplify_rtx): In STORE_FLAG_VALUE == -1 case,
4736 also verify that mode is equal to the mode of op0.
4738 * bb-reorder.c (get_uncond_jump_length): Avoid using delete_insn,
4739 emit into a sequence instead.
4741 2014-11-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4743 * config/sh/sh.c (emit_fpu_switch): Drop unused automatic variable.
4745 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
4747 config/arm/neon.md (reduc_smin_<mode> *2): Rename to...
4748 (reduc_smin_scal_<mode> *2): ...this; extract scalar result.
4749 (reduc_smax_<mode> *2): Rename to...
4750 (reduc_smax_scal_<mode> *2): ...this; extract scalar result.
4751 (reduc_umin_<mode> *2): Rename to...
4752 (reduc_umin_scal_<mode> *2): ...this; extract scalar result.
4753 (reduc_umax_<mode> *2): Rename to...
4754 (reduc_umax_scal_<mode> *2): ...this; extract scalar result.
4756 2014-11-04 Alan Lawrence <alan.lawrence@arm.com>
4758 config/arm/neon.md (reduc_plus_*): Rename to...
4759 (reduc_plus_scal_*): ...this; reduce to temp and extract scalar result.
4761 2014-11-04 Michael Collison <michael.collison@linaro.org>
4763 * config/aarch64/iterators.md (lconst_atomic): New mode attribute
4764 to support constraints for CONST_INT in atomic operations.
4765 * config/aarch64/atomics.md
4766 (atomic_<atomic_optab><mode>): Use lconst_atomic constraint.
4767 (atomic_nand<mode>): Likewise.
4768 (atomic_fetch_<atomic_optab><mode>): Likewise.
4769 (atomic_fetch_nand<mode>): Likewise.
4770 (atomic_<atomic_optab>_fetch<mode>): Likewise.
4771 (atomic_nand_fetch<mode>): Likewise.
4773 2014-11-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4775 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in definition
4776 of __ARM_FEATURE_IDIV.
4778 2014-11-04 Marek Polacek <polacek@redhat.com>
4780 * ubsan.c (instrument_object_size): Optimize [x & CST] array accesses.
4782 2014-11-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4784 * config/rx/rx.c (rx_handle_func_attribute): Mark unused argument.
4786 2014-11-04 Zhenqiang Chen <zhenqiang.chen@arm.com>
4789 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
4790 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
4791 Allow CC mode if HAVE_cbranchcc4.
4793 2014-11-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
4795 * godump.c (go_format_type): Rewrite RECORD_TYPE nad UNION_TYPE support
4796 with -fdump-go-spec. Anonymous substructures are now flattened and
4797 replaced by their fields (record) or the first named, non-bitfield
4800 2014-11-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4802 * input.c (expand_location_to_spelling_point): Fix typo.
4803 (expansion_point_location_if_in_system_header): Fix comment.
4805 2014-11-03 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4807 * config/avr/gen-avr-mmcu-specs.c: Remove unnecessary format specifier.
4809 2014-11-03 Richard Biener <rguenther@suse.de>
4811 * tree-eh.c (operation_could_trap_helper_p): Handle conversions
4812 like ordinary operations.
4813 * gimplify.c (gimplify_conversion): Gimplify CONVERT_EXPR
4816 2014-11-03 Joseph Myers <joseph@codesourcery.com>
4818 * configure.ac (TARGET_GLIBC_MAJOR, TARGET_GLIBC_MINOR): Define
4820 * configure, config.h.in: Regenerate.
4821 * config/rs6000/linux.h [TARGET_GLIBC_MAJOR > 2 ||
4822 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
4823 (RS6000_GLIBC_ATOMIC_FENV): New macro.
4824 * config/rs6000/linux64.h [TARGET_GLIBC_MAJOR > 2 ||
4825 (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
4826 (RS6000_GLIBC_ATOMIC_FENV): New macro.
4827 * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl)
4828 (atomic_update_decl): New static variables.
4829 (rs6000_atomic_assign_expand_fenv) [RS6000_GLIBC_ATOMIC_FENV]:
4830 Generate calls to __atomic_feholdexcept, __atomic_feclearexcept
4831 and __atomic_feupdateenv for soft-float and no-FPRs.
4833 2014-11-03 Richard Biener <rguenther@suse.de>
4835 * match.pd: Add two abs patterns. Announce tree_expr_nonnegative_p.
4836 Also drop bogus FLOAT_EXPR and FIX_TRUNC_EXPR.
4837 * fold-const.c (fold_unary_loc): Remove them here.
4838 (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
4839 * gimple-fold.c (fold_gimple_assign): Remove now obsolete
4840 GIMPLE_UNARY_RHS case.
4841 (gimple_fold_stmt_to_constant_1): Likewise.
4842 (replace_stmt_with_simplification): Fix inverted comparison.
4844 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
4846 PR tree-optimization/60770
4847 * tree-into-ssa.c (rewrite_update_stmt): Return whether the
4848 statement should be removed.
4849 (maybe_register_def): Likewise. Replace clobbers with default
4851 (rewrite_dom_walker::before_dom_children): Remove statement if
4852 rewrite_update_stmt says so.
4853 * tree-ssa-live.c: Include tree-ssa.h.
4854 (set_var_live_on_entry): Do not mark undefined variables as live.
4855 (verify_live_on_entry): Do not check undefined variables.
4856 * tree-ssa.h (ssa_undefined_value_p): New parameter for the case
4857 of partially undefined variables.
4858 * tree-ssa.c (ssa_undefined_value_p): Likewise.
4859 (execute_update_addresses_taken): Do not drop clobbers.
4861 2014-11-03 Marc Glisse <marc.glisse@inria.fr>
4863 PR tree-optimization/63666
4864 * fold-const.c: Include "optabs.h".
4865 (fold_ternary_loc) <VEC_PERM_EXPR>: Avoid canonicalizing a
4866 can_vec_perm_p permutation to one that is not.
4868 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
4870 * ifcvt.c (noce_try_store_flag_mask): Check rtx cost.
4872 2014-11-03 Andrew Pinski <apinski@cavium.com>
4874 * config/mips/mips-cpus.def (octeon3): New cpu.
4875 * config/mips/mips.c (mips_rtx_cost_data): Add octeon3.
4876 (mips_print_operand <case 'T', case 't'>): Fix a bug as the mode
4877 of the comparison no longer matches mode of the operands.
4878 (mips_issue_rate): Handle PROCESSOR_OCTEON3.
4879 * config/mips/mips.h (TARGET_OCTEON): Add Octeon3.
4880 (TARGET_OCTEON2): Likewise.
4881 (TUNE_OCTEON): Add Octeon3.
4882 * config/mips/mips.md (processor): Add octeon3.
4883 * config/mips/octeon.md (octeon_fpu): New automaton and cpu_unit.
4884 (octeon_arith): Add octeon3.
4885 (octeon_condmove): Remove.
4886 (octeon_condmove_o1): New reservation.
4887 (octeon_condmove_o2): New reservation.
4888 (octeon_condmove_o3_int_on_cc): New reservation.
4889 (octeon_load_o2): Add octeon3.
4890 (octeon_cop_o2): Likewise.
4891 (octeon_store): Likewise.
4892 (octeon_brj_o2): Likewise.
4893 (octeon_imul3_o2): Likewise.
4894 (octeon_imul_o2): Likewise.
4895 (octeon_mfhilo_o2): Likewise.
4896 (octeon_imadd_o2): Likewise.
4897 (octeon_idiv_o2_si): Likewise.
4898 (octeon_idiv_o2_di): Likewise.
4899 (octeon_fpu): Add to the automaton.
4900 (octeon_fpu): New cpu unit.
4901 (octeon_condmove_o2): Check for non floating point modes.
4902 (octeon_load_o2): Add prefetchx.
4903 (octeon_cop_o2): Don't check for octeon3.
4904 (octeon3_faddsubcvt): New reservation.
4905 (octeon3_fmul): Likewise.
4906 (octeon3_fmadd): Likewise.
4907 (octeon3_div_sf): Likewise.
4908 (octeon3_div_df): Likewise.
4909 (octeon3_sqrt_sf): Likewise.
4910 (octeon3_sqrt_df): Likewise.
4911 (octeon3_rsqrt_sf): Likewise.
4912 (octeon3_rsqrt_df): Likewise.
4913 (octeon3_fabsnegmov): Likewise.
4914 (octeon_fcond): Likewise.
4915 (octeon_fcondmov): Likewise.
4916 (octeon_fpmtc1): Likewise.
4917 (octeon_fpmfc1): Likewise.
4918 (octeon_fpload): Likewise.
4919 (octeon_fpstore): Likewise.
4920 * config/mips/mips-tables.opt: Regenerate.
4921 * doc/invoke.texi (-march=@var{arch}): Add octeon3.
4923 2014-11-03 Zhenqiang Chen <zhenqiang.chen@arm.com>
4925 * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
4926 Allow CC mode if HAVE_cbranchcc4.
4928 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
4930 * config/arc/arc.c (write_ext_corereg_1): Delete.
4931 (arc_write_ext_corereg): Use FOR_EACH_SUBRTX.
4933 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
4935 * config/arc/arc.c (arc600_corereg_hazard_1): Delete.
4936 (arc600_corereg_hazard): Use FOR_EACH_SUBRTX.
4938 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
4940 * config/arc/arc.c (arc_rewrite_small_data_p): Constify argument.
4941 (small_data_pattern_1): Delete.
4942 (small_data_pattern): Use FOR_EACH_SUBRTX.
4944 2014-11-02 Richard Sandiford <richard.sandiford@arm.com>
4946 * config/arc/arc.c: Include rtl-iter.h.
4947 (arc_rewrite_small_data_1): Delete.
4948 (arc_rewrite_small_data): Use FOR_EACH_SUBRTX_PTR.
4950 2014-11-02 Michael Collison <michael.collison@linaro.org>
4952 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update
4953 to support vector modes.
4954 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
4956 2014-11-01 Andrew MacLeod <amacleod@redhat,com>
4958 * optabs.h: Flatten insn-codes.h to source files. Move some prototypes
4959 and structs to genopinit.c. Adjust protyoptypes to match optabs.c.
4960 * genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
4961 * optabs.c: (gen_move_insn): Move to expr.c.
4962 * expr.h: Move protypes and enums to optabs.h.
4963 * expr.c: (gen_move_insn): Relocate from optabs.c.
4964 * genemit.c (main): Include insn-codes.h.
4965 * gengtype.c (open_base_files): Include insn-codes.h.
4966 * asan.c: Include insn-codes.h.
4967 * bb-reorder.c: Ditto.
4968 * builtins.c: Ditto.
4970 * cfgexpand.c: Ditto.
4971 * cilk-common.c: Ditto.
4978 * function.c: Ditto.
4980 * internal-fn.c: Ditto.
4981 * loop-unroll.c: Ditto.
4983 * modulo-sched.c: Ditto.
4985 * postreload.c: Ditto.
4989 * shrink-wrap.c: Ditto.
4990 * simplify-rtx.c: Ditto.
4992 * target-globals.c: Ditto.
4993 * targhooks.c: Ditto.
4995 * tree-if-conv.c: Ditto.
4996 * tree-ssa-forwprop.c: Ditto.
4997 * tree-ssa-loop-prefetch.c: Ditto.
4998 * tree-ssa-math-opts.c: Ditto.
4999 * tree-ssa-phiopt.c: Ditto.
5000 * tree-ssa-reassoc.c: Ditto.
5001 * tree-switch-conversion.c: Ditto.
5002 * tree-vect-data-refs.c: Ditto.
5003 * tree-vect-generic.c: Ditto.
5004 * tree-vect-loop.c: Ditto.
5005 * tree-vect-patterns.c: Ditto.
5006 * tree-vect-slp.c: Ditto.
5007 * tree-vect-stmts.c: Ditto.
5008 * tree-vrp.c: Ditto.
5009 * value-prof.c: Ditto.
5010 * config/aarch64/aarch64-builtins.c: Ditto.
5011 * config/alpha/alpha.c: Ditto.
5012 * config/arm/arm.c: Ditto.
5013 * config/cris/cris.c: Ditto.
5014 * config/epiphany/epiphany.c: Ditto.
5015 * config/frv/frv.c: Ditto.
5016 * config/h8300/h8300.c: Ditto.
5017 * config/ia64/ia64.c: Ditto.
5018 * config/iq2000/iq2000.c: Ditto.
5019 * config/m32c/m32c.c: Ditto.
5020 * config/mep/mep.c: Ditto.
5021 * config/microblaze/microblaze.c: Ditto.
5022 * config/mips/mips.c: Ditto.
5023 * config/mn10300/mn10300.c: Ditto.
5024 * config/moxie/moxie.c: Ditto.
5025 * config/msp430/msp430.c: Ditto.
5026 * config/nios2/nios2.c: Ditto.
5027 * config/pa/pa.c: Ditto.
5028 * config/rl78/rl78.c: Ditto.
5029 * config/rs6000/rs6000.c: Ditto.
5030 * config/rx/rx.c: Ditto.
5031 * config/s390/s390.c: Ditto.
5032 * config/sh/sh.c: Ditto.
5033 * config/sh/sh_treg_combine.cc: Ditto.
5034 * config/spu/spu.c: Ditto.
5035 * config/stormy16/stormy16.c: Ditto.
5036 * config/tilegx/mul-tables.c: Ditto.
5037 * config/tilegx/tilegx.c: Ditto.
5038 * config/tilepro/mul-tables.c: Ditto.
5039 * config/tilepro/tilepro.c: Ditto.
5040 * config/vax/vax.c: Ditto.
5042 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
5044 * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove.
5045 (CLEAR_BY_PIECES_P): Likewise.
5046 (SET_BY_PIECES_P): Likewise.
5047 (STORE_BY_PIECES_P): Likewise.
5048 * doc/tm.texi: Regenerate.
5049 * system.h: Poison MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P,
5050 SET_BY_PIECES_P, STORE_BY_PIECES_P.
5051 * expr.c (MOVE_BY_PIECES_P): Remove.
5052 (CLEAR_BY_PIECES_P): Likewise.
5053 (SET_BY_PIECES_P): Likewise.
5054 (STORE_BY_PIECES_P): Likewise.
5055 (can_move_by_pieces): Rewrite in terms of
5056 targetm.use_by_pieces_infrastructure_p.
5057 (emit_block_move_hints): Likewise.
5058 (can_store_by_pieces): Likewise.
5059 (store_by_pieces): Likewise.
5060 (clear_storage_hints): Likewise.
5061 (emit_push_insn): Likewise.
5062 (expand_constructor): Likewise.
5064 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
5066 * config/aarch64/aarch64.c
5067 (aarch64_use_by_pieces_infrastructre_p): New.
5068 (TARGET_USE_BY_PIECES_INFRASTRUCTURE): Likewise.
5069 * config/aarch64/aarch64.h (STORE_BY_PIECES_P): Delete.
5071 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
5073 * config/mips/mips.h (MOVE_BY_PIECES_P): Remove.
5074 (STORE_BY_PIECES_P): Likewise.
5075 * config/mips/mips.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
5076 (mips_move_by_pieces_p): Rename to...
5077 (mips_use_by_pieces_infrastructure_p): ...this, use new hook
5078 parameters, use the default hook implementation as a
5081 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
5083 * config/sh/sh.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
5084 (sh_use_by_pieces_infrastructure_p): Likewise.
5085 * config/sh/sh.h (MOVE_BY_PIECES_P): Remove.
5086 (STORE_BY_PIECES_P): Likewise.
5087 (SET_BY_PIECES_P): Likewise.
5089 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
5091 * config/arc/arc.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
5092 (arc_use_by_pieces_infrastructure_p): Likewise.
5093 * confir/arc/arc.h (MOVE_BY_PIECES_P): Delete.
5094 (CAN_MOVE_BY_PIECES): Likewise.
5096 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
5098 * config/s390/s390.c (s390_use_by_pieces_infrastructure_p): New.
5099 (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Likewise.
5100 * config/s390/s390.h (MOVE_BY_PIECES_P): Remove.
5101 (CLEAR_BY_PIECES): Likewise.
5102 (SET_BY_PIECES): Likewise.
5103 (STORE_BY_PIECES): Likewise.
5105 2014-11-01 James Greenhalgh <james.greenhalgh@arm.com>
5107 * target.def (use_by_pieces_infrastructure_p): New.
5108 * doc/tm.texi.in (MOVE_BY_PIECES_P): Describe that this macro
5110 (STORE_BY_PIECES_P): Likewise.
5111 (CLEAR_BY_PIECES_P): Likewise.
5112 (SET_BY_PIECES_P): Likewise.
5113 (TARGET_MOVE_BY_PIECES_PROFITABLE_P): Add hook.
5114 * doc/tm.texi: Regenerate.
5115 * expr.c (MOVE_BY_PIECES_P): Rewrite in terms of
5116 TARGET_USE_BY_PIECES_INFRASTRUCTURE_P.
5117 (STORE_BY_PIECES_P): Likewise.
5118 (CLEAR_BY_PIECES_P): Likewise.
5119 (SET_BY_PIECES_P): Likewise.
5120 (STORE_MAX_PIECES): Move to...
5121 * defaults.h (STORE_MAX_PIECES): ...here.
5122 * targhooks.c (get_move_ratio): New.
5123 (default_use_by_pieces_infrastructure_p): Likewise.
5124 * targhooks.h (default_use_by_pieces_infrastructure_p): New.
5125 * target.h (by_pieces_operation): New.
5127 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
5130 * config/i386/i386.c (ix86_expand_args_builtin): Remove extra
5131 assignment to 'nargs' variable.
5133 2014-10-31 Uros Bizjak <ubizjak@gmail.com>
5136 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
5137 * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
5138 * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
5139 be reloaded through memory.
5143 2014-10-31 Jakub Jelinek <jakub@redhat.com>
5145 PR rtl-optimization/63659
5146 * ree.c (update_reg_equal_equiv_notes): New function.
5147 (combine_set_extension, transform_ifelse): Use it.
5149 2014-10-31 Jeff Law <law@redhat.com>
5151 * doc/contrib.texi: Add contribution notes for Balaji Iyer (Cilk+)
5152 and Jonny Grant (collect2).
5154 2014-10-31 Richard Biener <rguenther@suse.de>
5156 * builtins.c (fold_builtin_atomic_always_lock_free): Use
5157 CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where
5159 (fold_builtin_expect): Likewise.
5160 (integer_valued_real_p): Likewise.
5161 * cfgexpand.c (expand_debug_expr): Likewise.
5162 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Likewise.
5163 (find_foldable_builtin_expect): Likewise.
5164 * trans-mem.c (thread_private_new_memory): Likewise.
5165 * tree-affine.c (aff_combination_expand): Likewise.
5166 * tree-data-ref.c (initialize_matrix_A): Likewise.
5167 * tree-inline.c (copy_bb): Likewise.
5168 * tree-pretty-print.c (dump_function_name): Likewise.
5169 (print_call_name): Likewise.
5170 * tree-ssa-forwprop.c (constant_pointer_difference): Likewise.
5171 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise.
5172 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
5173 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Likewise.
5174 (vect_recog_widen_mult_pattern): Likewise.
5175 (vect_operation_fits_smaller_type): Likewise.
5176 * tree-vrp.c (find_assert_locations_1): Likewise.
5177 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
5178 converts to NOP_EXPR.
5180 2014-10-31 Richard Biener <rguenther@suse.de>
5182 * genmatch.c (expr::gen_transform): Use NOP_EXPRs instead of
5183 CONVERT_EXPRs in generated code.
5184 (dt_simplify::gen): Likewise.
5186 2014-10-31 Evgeny Stupachenko <evstupac@gmail.com>
5189 * config/i386/i386.c (ix86_init_pic_reg): Emit SET_GOT to
5190 REAL_PIC_OFFSET_TABLE_REGNUM for mcount profiling.
5191 (ix86_save_reg): Save REAL_PIC_OFFSET_TABLE_REGNUM when profiling
5192 using mcount in 32bit PIC mode.
5193 (ix86_elim_entry_set_got): New.
5194 (ix86_expand_prologue): For the mcount profiling emit new SET_GOT
5195 in PROLOGUE, delete initial if possible.
5197 2014-10-31 Eric Botcazou <ebotcazou@adacore.com>
5199 * ipa-inline.c (want_inline_small_function_p): Fix typo and formatting.
5200 (want_inline_function_to_all_callers_p): Fix formatting and simplify.
5202 2014-10-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
5204 PR tree-optimization/63259
5205 * tree-ssa-math-opts.c (bswap_replace): Replace expression by a
5206 rotation left if it is a 16 bit byte swap.
5207 (pass_optimize_bswap::execute): Also consider bswap in LROTATE_EXPR
5208 and RROTATE_EXPR statements if it is a byte rotation.
5210 2014-10-31 Jakub Jelinek <jakub@redhat.com>
5213 * tree-vrp.c (simplify_internal_call_using_ranges): For subcode ==
5214 MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min
5215 instead of vr0.min - vr1.min and vr0.max - vr1.max.
5217 2014-10-31 Max Ostapenko <m.ostapenko@partner.samsung.com>
5220 * ipa-icf.c (sem_function::~sem_function): Change free to delete to avoid
5221 alloc-dealloc mismatch with new, called in ipa_icf::sem_function::init.
5223 2014-10-30 Felix Yang <felix.yang@huawei.com>
5225 * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro.
5226 * config/xtensa/xtensa.c: Include dumpfile.h and hw-doloop.h.
5227 (xtensa_reorg, xtensa_reorg_loops): New.
5228 (xtensa_can_use_doloop_p, xtensa_invalid_within_doloop): New.
5229 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg): New.
5230 (xtensa_emit_loop_end): Emit the zero-overhead loop end label.
5231 (xtensa_doloop_hooks): Define.
5232 * config/xtensa/xtensa.md (doloop_end, loop_end): New
5233 (zero_cost_loop_start): Rewritten.
5234 (zero_cost_loop_end): Likewise.
5236 2014-10-30 Steve Ellcey <sellcey@imgtec.com>
5238 * config.gcc (mips*-*-linux*): Combine 32 and 64 bit cases.
5240 2014-10-30 Richard Biener <rguenther@suse.de>
5242 * genmatch.c: Remove <map>, <utility> and <string> includes.
5243 Include ggc.h and hash-map.h.
5244 (ggc_internal_cleared_alloc): Provide stub definition.
5245 (ggc_free): Likewise.
5246 (struct capture_id_map_hasher): New traits for hash_map.
5247 (cid_map_t): New typedef.
5248 (everywhere else): Replace std::map use with cid_map_t.
5249 * hash-map.h (hash_map::elements): New member function.
5250 * Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
5251 hash-map.h and $(GGC_H) as dependency.
5253 2014-10-30 Richard Biener <rguenther@suse.de>
5255 * genmatch.c (capture_info::walk_c_expr): Ignore capture
5256 uses inside TREE_TYPE ().
5257 * gimple-ssa-strength-reduction.c (stmt_cost): Use CASE_CONVERT.
5258 (find_candidates_dom_walker::before_dom_children): Likewise.
5259 (replace_mult_candidate): Use CONVERT_EXPR_CODE_P.
5260 (replace_profitable_candidates): Likewise.
5261 * tree-ssa-dom.c (initialize_hash_element): Canonicalize
5262 CONVERT_EXPR_CODE_P to CONVERT_EXPR.
5263 * convert.c (convert_to_integer): Use CASE_CONVERT.
5265 2014-10-30 Richard Biener <rguenther@suse.de>
5267 * match.pd: Implement more patterns that simplify to a single value.
5268 * fold-const.c (fold_binary_loc): Remove them here.
5269 * tree-ssa-forwprop.c (simplify_bitwise_binary): Likewise.
5270 (fwprop_ssa_val): Remove restriction on single uses.
5272 2014-10-30 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5274 * config/avr/driver-avr.c (avr_set_current_device): Remove.
5276 2014-10-30 Martin Liska <mliska@suse.cz>
5280 * ipa-icf-gimple.c (func_checker::parse_labels): Missing comment added.
5281 (func_checker::compare_gimple_label): Simlified comparison introduced.
5282 * ipa-icf-gimple.h: Missing comment added.
5284 2014-10-30 Jeff Law <law@redhat.com>
5286 * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen
5287 argument from rtx to rtx_insn *.
5288 (compute_movmem_length, compute_clrmem_length): Likewise.
5289 (copy_fp_args, length_fp_args): Likewise.
5290 * config/pa/pa.c (legitimize_pic_address): Promote local variable
5291 "insn" from rtx to rtx_insn *.
5292 (legitimize_tls_address, pa_emit_move_sequence): Likewise.
5293 (pa_output_block_move, store_reg, store_reg_modify): Likewise.
5294 (set_reg_plus_d, pa_expand_prologue, hppa_profile_hook): Likewise.
5295 (branch_to_delay_slot_p, branch_needs_nop_p, use_skip_p): Likewise.
5296 (pa_output_arg_descriptor): Strengthen argument to an rtx_insn *.
5297 (compute_movmem_length, compute_clrmem_length): Likewise.
5298 (copy_fp-args, length_fp_args): Likewise.
5300 2014-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5302 * config/arm/arm.h (MACHMODE): Treat machine_mode as a
5304 (CUMULATIVE_ARGS): Guard against target includes.
5305 (machine_function): Likewise.
5307 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5309 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
5310 recog state after aarch64_prev_real_insn call.
5312 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5314 * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.
5316 2014-10-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5318 * config/arm/arm.h (MACHMODE): Add 'enum' to machine_mode.
5319 (struct machine_function): Gate definition on
5320 !defined(USED_FOR_TARGET).
5322 2014-10-29 DJ Delorie <dj@redhat.com>
5324 * expmed.c (strict_volatile_bitfield_p): Fix off-by-one error.
5326 2014-10-29 Martin Liska <mliska@suse.cz>
5329 * cgraphunit.c (cgraph_node::expand_thunk): Only VAR_DECLs are put
5330 to local declarations.
5331 * function.c (add_local_decl): Implementation moved from header
5332 file, assert introduced for tree type.
5333 * function.h: Likewise.
5335 2014-10-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
5337 * godump.c (go_format_type): Represent "float _Complex" and
5338 "double _Complex" as complex64 or complex128 in Go, as appropriate.
5340 2014-10-29 Richard Biener <rguenther@suse.de>
5342 * match.pd: Implement a first set of conversion patterns.
5343 * fold-const.c (fold_unary_loc): Remove them here.
5344 * tree-ssa-forwprop.c (simplify_vce): Remove.
5345 (pass_forwprop::execute): Do not call simplify_vce.
5347 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
5349 * addresses.h, alias.c, asan.c, auto-inc-dec.c, bt-load.c, builtins.c,
5350 builtins.h, caller-save.c, calls.c, calls.h, cfgexpand.c, cfgloop.h,
5351 cfgrtl.c, combine.c, compare-elim.c, config/aarch64/aarch64-builtins.c,
5352 config/aarch64/aarch64-protos.h, config/aarch64/aarch64-simd.md,
5353 config/aarch64/aarch64.c, config/aarch64/aarch64.h,
5354 config/aarch64/aarch64.md, config/alpha/alpha-protos.h,
5355 config/alpha/alpha.c, config/arc/arc-protos.h, config/arc/arc.c,
5356 config/arc/arc.h, config/arc/predicates.md,
5357 config/arm/aarch-common-protos.h, config/arm/aarch-common.c,
5358 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
5359 config/arm/arm.md, config/arm/neon.md, config/arm/thumb2.md,
5360 config/avr/avr-log.c, config/avr/avr-protos.h, config/avr/avr.c,
5361 config/avr/avr.md, config/bfin/bfin-protos.h, config/bfin/bfin.c,
5362 config/c6x/c6x-protos.h, config/c6x/c6x.c, config/c6x/c6x.md,
5363 config/cr16/cr16-protos.h, config/cr16/cr16.c,
5364 config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.md,
5365 config/darwin-protos.h, config/darwin.c,
5366 config/epiphany/epiphany-protos.h, config/epiphany/epiphany.c,
5367 config/epiphany/epiphany.md, config/fr30/fr30.c,
5368 config/frv/frv-protos.h, config/frv/frv.c, config/frv/predicates.md,
5369 config/h8300/h8300-protos.h, config/h8300/h8300.c,
5370 config/i386/i386-builtin-types.awk, config/i386/i386-protos.h,
5371 config/i386/i386.c, config/i386/i386.md, config/i386/predicates.md,
5372 config/i386/sse.md, config/i386/sync.md, config/ia64/ia64-protos.h,
5373 config/ia64/ia64.c, config/iq2000/iq2000-protos.h,
5374 config/iq2000/iq2000.c, config/iq2000/iq2000.md,
5375 config/lm32/lm32-protos.h, config/lm32/lm32.c,
5376 config/m32c/m32c-protos.h, config/m32c/m32c.c,
5377 config/m32r/m32r-protos.h, config/m32r/m32r.c,
5378 config/m68k/m68k-protos.h, config/m68k/m68k.c,
5379 config/mcore/mcore-protos.h, config/mcore/mcore.c,
5380 config/mcore/mcore.md, config/mep/mep-protos.h, config/mep/mep.c,
5381 config/microblaze/microblaze-protos.h, config/microblaze/microblaze.c,
5382 config/mips/mips-protos.h, config/mips/mips.c,
5383 config/mmix/mmix-protos.h, config/mmix/mmix.c,
5384 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
5385 config/moxie/moxie.c, config/msp430/msp430-protos.h,
5386 config/msp430/msp430.c, config/nds32/nds32-cost.c,
5387 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
5388 config/nds32/nds32-protos.h, config/nds32/nds32.c,
5389 config/nios2/nios2-protos.h, config/nios2/nios2.c,
5390 config/pa/pa-protos.h, config/pa/pa.c, config/pdp11/pdp11-protos.h,
5391 config/pdp11/pdp11.c, config/rl78/rl78-protos.h, config/rl78/rl78.c,
5392 config/rs6000/altivec.md, config/rs6000/rs6000-c.c,
5393 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
5394 config/rs6000/rs6000.h, config/rx/rx-protos.h, config/rx/rx.c,
5395 config/s390/predicates.md, config/s390/s390-protos.h,
5396 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
5397 config/sh/predicates.md, config/sh/sh-protos.h, config/sh/sh.c,
5398 config/sh/sh.md, config/sparc/predicates.md,
5399 config/sparc/sparc-protos.h, config/sparc/sparc.c,
5400 config/sparc/sparc.md, config/spu/spu-protos.h, config/spu/spu.c,
5401 config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
5402 config/tilegx/tilegx-protos.h, config/tilegx/tilegx.c,
5403 config/tilegx/tilegx.md, config/tilepro/tilepro-protos.h,
5404 config/tilepro/tilepro.c, config/v850/v850-protos.h,
5405 config/v850/v850.c, config/v850/v850.md, config/vax/vax-protos.h,
5406 config/vax/vax.c, config/vms/vms-c.c, config/xtensa/xtensa-protos.h,
5407 config/xtensa/xtensa.c, coverage.c, cprop.c, cse.c, cselib.c, cselib.h,
5408 dbxout.c, ddg.c, df-problems.c, dfp.c, dfp.h, doc/md.texi,
5409 doc/rtl.texi, doc/tm.texi, doc/tm.texi.in, dojump.c, dse.c,
5410 dwarf2cfi.c, dwarf2out.c, dwarf2out.h, emit-rtl.c, emit-rtl.h,
5411 except.c, explow.c, expmed.c, expmed.h, expr.c, expr.h, final.c,
5412 fixed-value.c, fixed-value.h, fold-const.c, function.c, function.h,
5413 fwprop.c, gcse.c, gengenrtl.c, genmodes.c, genopinit.c, genoutput.c,
5414 genpreds.c, genrecog.c, gensupport.c, gimple-ssa-strength-reduction.c,
5415 graphite-clast-to-gimple.c, haifa-sched.c, hooks.c, hooks.h, ifcvt.c,
5416 internal-fn.c, ira-build.c, ira-color.c, ira-conflicts.c, ira-costs.c,
5417 ira-emit.c, ira-int.h, ira-lives.c, ira.c, ira.h, jump.c, langhooks.h,
5418 libfuncs.h, lists.c, loop-doloop.c, loop-invariant.c, loop-iv.c,
5419 loop-unroll.c, lower-subreg.c, lower-subreg.h, lra-assigns.c,
5420 lra-constraints.c, lra-eliminations.c, lra-int.h, lra-lives.c,
5421 lra-spills.c, lra.c, lra.h, machmode.h, omp-low.c, optabs.c, optabs.h,
5422 output.h, postreload.c, print-tree.c, read-rtl.c, real.c, real.h,
5423 recog.c, recog.h, ree.c, reg-stack.c, regcprop.c, reginfo.c,
5424 regrename.c, regs.h, reload.c, reload.h, reload1.c, rtl.c, rtl.h,
5425 rtlanal.c, rtlhash.c, rtlhooks-def.h, rtlhooks.c, sched-deps.c,
5426 sel-sched-dump.c, sel-sched-ir.c, sel-sched-ir.h, sel-sched.c,
5427 simplify-rtx.c, stmt.c, stor-layout.c, stor-layout.h, target.def,
5428 targhooks.c, targhooks.h, tree-affine.c, tree-call-cdce.c,
5429 tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-if-conv.c,
5430 tree-inline.c, tree-outof-ssa.c, tree-scalar-evolution.c,
5431 tree-ssa-address.c, tree-ssa-ccp.c, tree-ssa-loop-ivopts.c,
5432 tree-ssa-loop-ivopts.h, tree-ssa-loop-manip.c,
5433 tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c, tree-ssa-reassoc.c,
5434 tree-ssa-sccvn.c, tree-streamer-in.c, tree-switch-conversion.c,
5435 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop.c,
5436 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
5437 tree-vrp.c, tree.c, tree.h, tsan.c, ubsan.c, valtrack.c,
5438 var-tracking.c, varasm.c: Remove redundant enum from
5440 * gengtype.c (main): Treat machine_mode as a scalar typedef.
5441 * genmodes.c (emit_insn_modes_h): Hide inline functions if
5444 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
5446 PR rtl-optimization/63340 (part 2)
5447 * rtl.h (invalid_mode_change_p): Delete.
5448 (valid_mode_changes_for_regno): New function.
5449 * reginfo.c (invalid_mode_change_p): Delete.
5450 (valid_mode_changes_for_regno): New function.
5451 * ira-costs.c (setup_regno_cost_classes_by_aclass): Restrict the
5452 classes to registers that are allowed by valid_mode_changes_for_regno.
5453 (setup_regno_cost_classes_by_mode): Likewise.
5454 (print_allocno_costs): Remove invalid_mode_change_p test.
5455 (print_pseudo_costs, find_costs_and_classes): Likewise.
5457 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
5459 PR rtl-optimization/63340 (part 1)
5460 * ira-costs.c (all_cost_classes): New variable.
5461 (complete_cost_classes): New function, split out from...
5462 (setup_cost_classes): ...here.
5463 (initiate_regno_cost_classes): Set up all_cost_classes.
5464 (restrict_cost_classes): New function.
5465 (setup_regno_cost_classes_by_aclass): Restrict the cost classes to
5466 registers that are valid for the register's mode.
5467 (setup_regno_cost_classes_by_mode): Model the mode cache as a
5468 restriction of all_cost_classes to a particular mode.
5469 (print_allocno_costs): Remove contains_reg_of_mode check.
5470 (print_pseudo_costs, find_costs_and_classes): Likewise.
5472 2014-10-29 Richard Biener <rguenther@suse.de>
5474 PR tree-optimization/63666
5475 * tree-vect-slp.c (vect_get_mask_element): Properly handle
5476 accessing out-of-bound elements.
5478 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
5479 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5480 Anna Tikhonova <anna.tikhonova@intel.com>
5481 Ilya Tocar <ilya.tocar@intel.com>
5482 Andrey Turetskiy <andrey.turetskiy@intel.com>
5483 Ilya Verbin <ilya.verbin@intel.com>
5484 Kirill Yukhin <kirill.yukhin@intel.com>
5485 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5487 * config/i386/i386.md
5488 (movhi_internal): Always detect maskmov.
5489 (movqi_internal): Fix target check.
5491 2014-10-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
5492 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5493 Anna Tikhonova <anna.tikhonova@intel.com>
5494 Ilya Tocar <ilya.tocar@intel.com>
5495 Andrey Turetskiy <andrey.turetskiy@intel.com>
5496 Ilya Verbin <ilya.verbin@intel.com>
5497 Kirill Yukhin <kirill.yukhin@intel.com>
5498 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5500 * config/i386/avx512bwintrin.h: Add new intrinsics.
5501 * config/i386/avx512vlbwintrin.h: Ditto.
5502 * config/i386/avx512vlintrin.h: Ditto.
5504 2014-10-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
5506 * godump.c (precision_to_units): New helper function.
5507 (go_append_artificial_name): Ditto.
5508 (go_append_decl_name): Ditto.
5509 (go_append_bitfield): Ditto.
5510 (go_get_uinttype_for_precision): Ditto.
5511 (go_append_padding): Ditto.
5512 (go_force_record_alignment): Ditto.
5513 (go_format_type): Represent unions with an array of uints of the size
5514 of the alignment in go. This fixes the 'random' size of the union's
5515 representation using just the first field.
5516 (go_format_type): Add argument that indicates whether a record is
5517 nested (used for generation of artificial go names).
5518 (go_output_fndecl): Adapt to new go_format_type signature.
5519 (go_output_typedef): Ditto.
5520 (go_output_var): Ditto.
5521 (go_output_var): Prefer to output type as alias (typedef).
5522 (go_format_type): Bitfields in records are simulated as arrays of bytes
5525 * godump.c (go_format_type): Fix handling of arrays with zero elements.
5527 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
5529 * cgraph.h: Flatten. Remove all include files.
5530 (symbol_table::initialize): Move to cgraph.c.
5531 * cgraph.c: Adjust include files.
5532 (symbol_table::initialize): Relocate from cgraph.h.
5533 * gengtype.c (open_base_files): Adjust include files.
5534 * gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
5536 * ipa-inline.h: Remove all include files.
5537 * ipa-prop.h: Ditto.
5538 * ipa-reference.h: Ditto.
5539 * ipa-utils.h: Ditto:
5540 * lto-streamer.h: Remove cgraph.h from include list.
5541 * asan.c: Adjust include files.
5542 * auto-profile.c: Ditto.
5543 * bb-reorder.c: Ditto.
5545 * cfgexpand.c: Ditto.
5546 * cgraphbuild.c: Ditto.
5547 * cgraphclones.c: Ditto.
5548 * cgraphunit.c: Ditto.
5550 * coverage.c: Ditto.
5551 * data-streamer.c: Ditto.
5552 * data-streamer-in.c: Ditto.
5553 * data-streamer-out.c: Ditto.
5555 * dwarf2out.c: Ditto.
5559 * fold-const.c: Ditto.
5560 * ggc-page.c: Ditto.
5561 * gimple-fold.c: Ditto.
5562 * gimple-iterator.c: Ditto.
5563 * gimple-pretty-print.c: Ditto.
5564 * gimple-streamer-in.c: Ditto.
5565 * gimple-streamer-out.c: Ditto.
5566 * gimplify.c: Ditto.
5568 * ipa-comdats.c: Ditto.
5570 * ipa-devirt.c: Ditto.
5572 * ipa-icf-gimple.c: Ditto.
5573 * ipa-inline-analysis.c: Ditto.
5574 * ipa-inline.c: Ditto.
5575 * ipa-inline-transform.c: Ditto.
5576 * ipa-polymorphic-call.c: Ditto.
5577 * ipa-profile.c: Ditto.
5578 * ipa-prop.c: Ditto.
5579 * ipa-pure-const.c: Ditto.
5581 * ipa-reference.c: Ditto.
5582 * ipa-split.c: Ditto.
5583 * ipa-utils.c: Ditto.
5584 * ipa-visibility.c: Ditto.
5585 * langhooks.c: Ditto.
5586 * lto-cgraph.c: Ditto.
5587 * lto-compress.c: Ditto.
5588 * lto-opts.c: Ditto.
5589 * lto-section-in.c: Ditto.
5590 * lto-section-out.c: Ditto.
5591 * lto-streamer.c: Ditto.
5592 * lto-streamer-in.c: Ditto.
5593 * lto-streamer-out.c: Ditto.
5595 * opts-global.c: Ditto.
5598 * print-tree.c: Ditto.
5601 * stor-layout.c: Ditto.
5604 * trans-mem.c: Ditto.
5606 * tree-cfg.c: Ditto.
5608 * tree-emutls.c: Ditto.
5609 * tree-inline.c: Ditto.
5610 * tree-nested.c: Ditto.
5611 * tree-pretty-print.c: Ditto.
5612 * tree-profile.c: Ditto.
5613 * tree-sra.c: Ditto.
5614 * tree-ssa-alias.c: Ditto.
5615 * tree-ssa-loop-ivcanon.c: Ditto.
5616 * tree-ssa-loop-ivopts.c: Ditto.
5617 * tree-ssa-pre.c: Ditto.
5618 * tree-ssa-structalias.c: Ditto.
5619 * tree-streamer.c: Ditto.
5620 * tree-streamer-in.c: Ditto.
5621 * tree-streamer-out.c: Ditto.
5622 * tree-switch-conversion.c: Ditto.
5623 * tree-tailcall.c: Ditto.
5624 * tree-vect-data-refs.c: Ditto.
5625 * tree-vectorizer.c: Ditto.
5626 * tree-vect-stmts.c: Ditto.
5629 * value-prof.c: Ditto.
5632 * config/arm/arm.c: Ditto.
5633 * config/bfin/bfin.c: Ditto.
5634 * config/c6x/c6x.c: Ditto.
5635 * config/cris/cris.c: Ditto.
5636 * config/darwin.c: Ditto.
5637 * config/darwin-c.c: Ditto.
5638 * config/i386/i386.c: Ditto.
5639 * config/i386/winnt.c: Ditto.
5640 * config/microblaze/microblaze.c: Ditto.
5641 * config/mips/mips.c: Ditto.
5642 * config/rs6000/rs6000.c: Ditto.
5643 * config/rx/rx.c: Ditto.
5645 2014-10-28 Richard Biener <rguenther@suse.de>
5647 * gimple-fold.h (follow_single_use_edges): Declare.
5648 * gimple-fold.c (follow_single_use_edges): New function.
5649 (gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
5650 * tree-ssa-propagate.c
5651 (substitute_and_fold_dom_walker::before_dom_children): Allow
5652 following single-use edges when folding stmts we propagated into.
5654 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5655 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5656 Anna Tikhonova <anna.tikhonova@intel.com>
5657 Ilya Tocar <ilya.tocar@intel.com>
5658 Andrey Turetskiy <andrey.turetskiy@intel.com>
5659 Ilya Verbin <ilya.verbin@intel.com>
5660 Kirill Yukhin <kirill.yukhin@intel.com>
5661 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5663 * config/i386/avx512bwintrin.h: New.
5664 * config/i386/avx512dqintrin.h: Ditto.
5665 * config/i386/avx512vlbwintrin.h: Ditto.
5666 * config/i386/avx512vldqintrin.h: Ditto.
5667 * config/i386/avx512vlintrin.h: Ditto.
5668 * config/i386/immintrin.h: Include avx512vlintrin.h, avx512bwintrin.h,
5669 avx512dqintrin.h, avx512vlbwintrin.h, avx512vldqintrin.h.
5671 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5672 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5673 Anna Tikhonova <anna.tikhonova@intel.com>
5674 Ilya Tocar <ilya.tocar@intel.com>
5675 Andrey Turetskiy <andrey.turetskiy@intel.com>
5676 Ilya Verbin <ilya.verbin@intel.com>
5677 Kirill Yukhin <kirill.yukhin@intel.com>
5678 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5680 * config/i386/i386.c
5681 (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
5682 avx_shufpd256_mask, avx_vpermilv2df_mask.
5684 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5685 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5686 Anna Tikhonova <anna.tikhonova@intel.com>
5687 Ilya Tocar <ilya.tocar@intel.com>
5688 Andrey Turetskiy <andrey.turetskiy@intel.com>
5689 Ilya Verbin <ilya.verbin@intel.com>
5690 Kirill Yukhin <kirill.yukhin@intel.com>
5691 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5693 * config/i386/i386.c
5694 (ix86_init_mmx_sse_builtins):
5695 Define __builtin_ia32_gather3siv2df, __builtin_ia32_gather3siv4df,
5696 __builtin_ia32_gather3div2df, __builtin_ia32_gather3div4df,
5697 __builtin_ia32_gather3siv4sf, __builtin_ia32_gather3siv8sf,
5698 __builtin_ia32_gather3div4sf, __builtin_ia32_gather3div8sf,
5699 __builtin_ia32_gather3siv2di, __builtin_ia32_gather3siv4di,
5700 __builtin_ia32_gather3div2di, __builtin_ia32_gather3div4di,
5701 __builtin_ia32_gather3siv4si, __builtin_ia32_gather3siv8si,
5702 __builtin_ia32_gather3div4si, __builtin_ia32_gather3div8si,
5703 __builtin_ia32_gather3altsiv4df, __builtin_ia32_gather3altdiv8sf,
5704 __builtin_ia32_gather3altsiv4di, __builtin_ia32_gather3altdiv8si,
5705 __builtin_ia32_scattersiv8sf, __builtin_ia32_scattersiv4sf,
5706 __builtin_ia32_scattersiv4df, __builtin_ia32_scattersiv2df,
5707 __builtin_ia32_scatterdiv8sf, __builtin_ia32_scatterdiv4sf,
5708 __builtin_ia32_scatterdiv4df, __builtin_ia32_scatterdiv2df,
5709 __builtin_ia32_scattersiv8si, __builtin_ia32_scattersiv4si,
5710 __builtin_ia32_scattersiv4di, __builtin_ia32_scattersiv2di,
5711 __builtin_ia32_scatterdiv8si, __builtin_ia32_scatterdiv4si,
5712 __builtin_ia32_scatterdiv4di, __builtin_ia32_scatterdiv2di.
5714 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5715 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5716 Anna Tikhonova <anna.tikhonova@intel.com>
5717 Ilya Tocar <ilya.tocar@intel.com>
5718 Andrey Turetskiy <andrey.turetskiy@intel.com>
5719 Ilya Verbin <ilya.verbin@intel.com>
5720 Kirill Yukhin <kirill.yukhin@intel.com>
5721 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5723 * config/i386/i386.c
5724 (ix86_builtins): Add IX86_BUILTIN_GATHER3ALTSIV4DF,
5725 IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTSIV4DI,
5726 IX86_BUILTIN_GATHER3ALTDIV8SI.
5727 (ix86_expand_builtin):
5728 Handle IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTDIV8SI,
5729 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV4DI,
5730 IX86_BUILTIN_SCATTERDIV2DF, IX86_BUILTIN_SCATTERDIV4DF,
5731 IX86_BUILTIN_GATHER3ALTSIV4DI, IX86_BUILTIN_GATHER3ALTSIV4DF,
5732 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
5733 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3DIV8SI,
5734 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV4DI,
5735 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3SIV8SF,
5736 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
5737 IX86_BUILTIN_GATHER3DIV2DI, IX86_BUILTIN_GATHER3DIV4DI,
5738 IX86_BUILTIN_SCATTERDIV4SF, IX86_BUILTIN_SCATTERSIV2DI,
5739 IX86_BUILTIN_GATHER3SIV2DI, IX86_BUILTIN_GATHER3SIV4SI,
5740 IX86_BUILTIN_GATHER3SIV4SF, IX86_BUILTIN_GATHER3SIV2DF,
5741 IX86_BUILTIN_SCATTERSIV2DF, IX86_BUILTIN_SCATTERDIV4SI,
5742 IX86_BUILTIN_SCATTERSIV4SF, IX86_BUILTIN_SCATTERSIV4SI,
5743 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
5744 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV8SF,
5745 IX86_BUILTIN_GATHER3DIV4SF, IX86_BUILTIN_SCATTERDIV8SF.
5746 (ix86_vectorize_builtin_gather): Update V2DFmode, V4DFmode, V2DImode,
5747 V4DImode, V4SFmode, V8SFmode, V4SImode, V8SImode.
5749 2014-10-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
5750 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5751 Anna Tikhonova <anna.tikhonova@intel.com>
5752 Ilya Tocar <ilya.tocar@intel.com>
5753 Andrey Turetskiy <andrey.turetskiy@intel.com>
5754 Ilya Verbin <ilya.verbin@intel.com>
5755 Kirill Yukhin <kirill.yukhin@intel.com>
5756 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5758 * config/i386/i386-builtin-types.def
5777 (V4SF_FTYPE_V2DF_V4SF_QI): Ditto.
5778 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
5779 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
5780 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
5781 (V16SF_FTYPE_V16HI): Ditto.
5782 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
5783 (V16SF_FTYPE_V16SI): Ditto.
5784 (V4DI_FTYPE_V4DI): Ditto.
5785 (V16SI_FTYPE_V16SF): Ditto.
5786 (V8DI_FTYPE_PV2DI): Ditto.
5787 (V8DF_FTYPE_PV2DF): Ditto.
5788 (V4DI_FTYPE_PV2DI): Ditto.
5789 (V4DF_FTYPE_PV2DF): Ditto.
5790 (V16SI_FTYPE_PV2SI): Ditto.
5791 (V16SF_FTYPE_PV2SF): Ditto.
5792 (V8SF_FTYPE_FLOAT): Ditto.
5793 (V4SF_FTYPE_FLOAT): Ditto.
5794 (V4DF_FTYPE_DOUBLE): Ditto.
5795 (V8SF_FTYPE_PV4SF): Ditto.
5796 (V8SI_FTYPE_PV4SI): Ditto.
5797 (V4SI_FTYPE_PV2SI): Ditto.
5798 (V8SF_FTYPE_PV2SF): Ditto.
5799 (V8SI_FTYPE_PV2SI): Ditto.
5800 (V16SF_FTYPE_PV8SF): Ditto.
5801 (V16SI_FTYPE_PV8SI): Ditto.
5802 (V8DI_FTYPE_V8SF): Ditto.
5803 (V4DI_FTYPE_V4SF): Ditto.
5804 (V2DI_FTYPE_V4SF): Ditto.
5805 (V64QI_FTYPE_QI): Ditto.
5806 (V32HI_FTYPE_HI): Ditto.
5807 (V16UHI_FTYPE_V16UHI): Ditto.
5808 (V32UHI_FTYPE_V32UHI): Ditto.
5809 (V2UDI_FTYPE_V2UDI): Ditto.
5810 (V4UDI_FTYPE_V4UDI): Ditto.
5811 (V8UDI_FTYPE_V8UDI): Ditto.
5812 (V4USI_FTYPE_V4USI): Ditto.
5813 (V16USI_FTYPE_V16USI): Ditto.
5814 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
5815 (V2DF_FTYPE_V8DF_INT): Ditto.
5816 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
5817 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
5818 (V8DF_FTYPE_V8DF_INT): Ditto.
5819 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
5820 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
5821 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
5822 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
5823 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
5824 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
5825 (V8DI_FTYPE_V8DI_INT): Ditto.
5826 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
5827 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
5828 (V8SF_FTYPE_V16SF_INT): Ditto.
5829 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
5830 (V64QI_FTYPE_V32HI_V32HI): Ditto.
5831 (V32HI_FTYPE_V16SI_V16SI): Ditto.
5832 (V8DF_FTYPE_V8DF_V2DF_INT): Ditto.
5833 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
5834 (V8DF_FTYPE_V8DF_V8DF_INT): Ditto.
5835 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT): Ditto.
5836 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT): Ditto.
5837 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
5838 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
5839 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
5840 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT): Ditto.
5841 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
5842 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
5843 (V32HI_FTYPE_V64QI_V64QI): Ditto.
5844 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
5845 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
5846 (V32HI_FTYPE_V32HI_V32HI): Ditto.
5847 (V32HI_FTYPE_V32HI_INT): Ditto.
5848 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
5849 (V16SI_FTYPE_V32HI_V32HI): Ditto.
5850 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
5851 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
5852 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
5853 (V8SI_FTYPE_V16SI_INT): Ditto.
5854 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
5855 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
5856 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
5857 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
5858 (V8DI_FTYPE_V8DI_V4DI_INT): Ditto.
5859 (V8DI_FTYPE_V8DI_V2DI_INT): Ditto.
5860 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
5861 (V8DI_FTYPE_V16SI_V16SI): Ditto.
5862 (V8DI_FTYPE_V64QI_V64QI): Ditto.
5863 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
5864 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
5865 (V2DI_FTYPE_V8DI_INT): Ditto.
5866 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
5867 (QI_FTYPE_QI): Ditto.
5868 (SI_FTYPE_SI): Ditto.
5869 (DI_FTYPE_DI): Ditto.
5870 (HI_FTYPE_V16QI): Ditto.
5871 (SI_FTYPE_V32QI): Ditto.
5872 (DI_FTYPE_V64QI): Ditto.
5873 (QI_FTYPE_V8HI): Ditto.
5874 (HI_FTYPE_V16HI): Ditto.
5875 (SI_FTYPE_V32HI): Ditto.
5876 (QI_FTYPE_V4SI): Ditto.
5877 (QI_FTYPE_V8SI): Ditto.
5878 (HI_FTYPE_V16SI): Ditto.
5879 (QI_FTYPE_V2DI): Ditto.
5880 (QI_FTYPE_V4DI): Ditto.
5881 (QI_FTYPE_V8DI): Ditto.
5882 (V16QI_FTYPE_HI): Ditto.
5883 (V32QI_FTYPE_SI): Ditto.
5884 (V64QI_FTYPE_DI): Ditto.
5885 (V8HI_FTYPE_QI): Ditto.
5886 (V16HI_FTYPE_HI): Ditto.
5887 (V32HI_FTYPE_SI): Ditto.
5888 (V4SI_FTYPE_QI): Ditto.
5889 (V4SI_FTYPE_HI): Ditto.
5890 (V8SI_FTYPE_QI): Ditto.
5891 (V8SI_FTYPE_HI): Ditto.
5892 (V2DI_FTYPE_QI): Ditto.
5893 (V4DI_FTYPE_QI): Ditto.
5894 (QI_FTYPE_QI_QI): Ditto.
5895 (SI_FTYPE_SI_SI): Ditto.
5896 (DI_FTYPE_DI_DI): Ditto.
5897 (QI_FTYPE_QI_INT): Ditto.
5898 (SI_FTYPE_SI_INT): Ditto.
5899 (DI_FTYPE_DI_INT): Ditto.
5900 (HI_FTYPE_V16QI_V16QI): Ditto.
5901 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
5902 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
5903 (SI_FTYPE_V32QI_V32QI): Ditto.
5904 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
5905 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
5906 (DI_FTYPE_V64QI_V64QI): Ditto.
5907 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
5908 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
5909 (QI_FTYPE_V8HI_V8HI): Ditto.
5910 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
5911 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
5912 (HI_FTYPE_V16HI_V16HI): Ditto.
5913 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
5914 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
5915 (SI_FTYPE_V32HI_V32HI): Ditto.
5916 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
5917 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
5918 (QI_FTYPE_V4SI_V4SI): Ditto.
5919 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
5920 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
5921 (QI_FTYPE_V8SI_V8SI): Ditto.
5922 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
5923 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
5924 (QI_FTYPE_V2DI_V2DI): Ditto.
5925 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
5926 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
5927 (QI_FTYPE_V4DI_V4DI): Ditto.
5928 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
5929 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
5930 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
5931 (V4DF_FTYPE_V4DF_V4DI_INT): Ditto.
5932 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
5933 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
5934 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
5935 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
5936 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
5937 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
5938 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
5939 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
5940 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
5941 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
5942 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
5943 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
5944 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
5945 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
5946 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
5947 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
5948 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
5949 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
5950 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
5951 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
5952 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
5953 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
5954 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
5955 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
5956 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
5957 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
5958 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
5959 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
5960 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
5961 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
5962 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
5963 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
5964 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
5965 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
5966 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
5967 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
5968 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
5969 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
5970 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
5971 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
5972 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
5973 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
5974 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
5975 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
5976 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
5977 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
5978 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
5979 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
5980 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
5981 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
5982 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
5983 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
5984 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
5985 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
5986 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
5987 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
5988 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
5989 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
5990 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
5991 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
5992 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
5993 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
5994 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
5995 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
5996 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
5997 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
5998 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
5999 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
6000 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
6001 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
6002 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
6003 (V32HI_FTYPE_V64QI_V64QI_INT): Ditto.
6004 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
6005 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
6006 (V16HI_FTYPE_V32QI_V32QI_INT): Ditto.
6007 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
6008 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
6009 (V8HI_FTYPE_V16QI_V16QI_INT): Ditto.
6010 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
6011 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
6012 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
6013 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
6014 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
6015 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
6016 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
6017 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
6018 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
6019 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
6020 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
6021 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
6022 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
6023 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
6024 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
6025 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
6026 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
6027 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
6028 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
6029 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
6030 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
6031 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
6032 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
6033 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
6034 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
6035 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
6036 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
6037 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
6038 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
6039 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
6040 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
6041 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
6042 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
6043 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
6044 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
6045 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
6046 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
6047 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
6048 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
6049 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
6050 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
6051 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
6052 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
6053 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
6054 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
6055 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
6056 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
6057 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
6058 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
6059 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
6060 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
6061 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
6062 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
6063 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
6064 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
6065 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
6066 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
6067 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
6068 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
6069 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
6070 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
6071 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
6072 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
6073 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
6074 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
6075 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
6076 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
6077 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
6078 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
6079 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
6080 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
6081 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
6082 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
6083 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
6084 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
6085 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
6086 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
6087 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
6088 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
6089 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
6090 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
6091 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
6092 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
6093 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
6094 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
6095 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
6096 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
6097 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
6098 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
6099 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
6100 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
6101 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
6102 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
6103 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
6104 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
6105 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
6106 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
6107 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
6108 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
6109 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
6110 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
6111 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
6112 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
6113 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
6114 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
6115 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
6116 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
6117 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
6118 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
6119 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
6120 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
6121 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
6122 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
6123 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
6124 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
6125 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
6126 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
6127 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
6128 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
6129 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
6130 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
6131 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
6132 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
6133 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
6134 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
6135 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
6136 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
6137 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
6138 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
6139 (QI_FTYPE_V8DF_INT): Ditto.
6140 (QI_FTYPE_V4DF_INT): Ditto.
6141 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
6142 (QI_FTYPE_V2DF_INT): Ditto.
6143 (HI_FTYPE_V16SF_INT): Ditto.
6144 (QI_FTYPE_V8SF_INT): Ditto.
6145 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
6146 (QI_FTYPE_V4SF_INT): Ditto.
6147 (QI_FTYPE_V8DF_INT_QI): Ditto.
6148 (QI_FTYPE_V4DF_INT_QI): Ditto.
6149 (QI_FTYPE_V2DF_INT_QI): Ditto.
6150 (HI_FTYPE_V16SF_INT_HI): Ditto.
6151 (QI_FTYPE_V8SF_INT_QI): Ditto.
6152 (QI_FTYPE_V4SF_INT_QI): Ditto.
6153 (V8DI_FTYPE_V8DF_V8DI_QI_INT): Ditto.
6154 (V8DI_FTYPE_V8SF_V8DI_QI_INT): Ditto.
6155 (V8DF_FTYPE_V8DI_V8DF_QI_INT): Ditto.
6156 (V8SF_FTYPE_V8DI_V8SF_QI_INT): Ditto.
6157 (V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_QI_INT): Ditto.
6158 (V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_QI_INT): Ditto.
6159 (V4DF_FTYPE_V4DF_PCDOUBLE_V8SI_QI_INT): Ditto.
6160 (V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_QI_INT): Ditto.
6161 (V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_QI_INT): Ditto.
6162 (V4SF_FTYPE_V4SF_PCFLOAT_V4SI_QI_INT): Ditto.
6163 (V8SF_FTYPE_V8SF_PCFLOAT_V8SI_QI_INT): Ditto.
6164 (V4SF_FTYPE_V4SF_PCFLOAT_V2DI_QI_INT): Ditto.
6165 (V4SF_FTYPE_V4SF_PCFLOAT_V4DI_QI_INT): Ditto.
6166 (V8SF_FTYPE_V8SF_PCFLOAT_V4DI_QI_INT): Ditto.
6167 (V2DI_FTYPE_V2DI_PCINT64_V4SI_QI_INT): Ditto.
6168 (V4DI_FTYPE_V4DI_PCINT64_V4SI_QI_INT): Ditto.
6169 (V4DI_FTYPE_V4DI_PCINT64_V8SI_QI_INT): Ditto.
6170 (V2DI_FTYPE_V2DI_PCINT64_V2DI_QI_INT): Ditto.
6171 (V4DI_FTYPE_V4DI_PCINT64_V4DI_QI_INT): Ditto.
6172 (V4SI_FTYPE_V4SI_PCINT_V4SI_QI_INT): Ditto.
6173 (V8SI_FTYPE_V8SI_PCINT_V8SI_QI_INT): Ditto.
6174 (V4SI_FTYPE_V4SI_PCINT_V2DI_QI_INT): Ditto.
6175 (V4SI_FTYPE_V4SI_PCINT_V4DI_QI_INT): Ditto.
6176 (V8SI_FTYPE_V8SI_PCINT_V4DI_QI_INT): Ditto.
6177 (VOID_FTYPE_PFLOAT_QI_V8SI_V8SF_INT): Ditto.
6178 (VOID_FTYPE_PFLOAT_QI_V4SI_V4SF_INT): Ditto.
6179 (VOID_FTYPE_PDOUBLE_QI_V4SI_V4DF_INT): Ditto.
6180 (VOID_FTYPE_PDOUBLE_QI_V4SI_V2DF_INT): Ditto.
6181 (VOID_FTYPE_PFLOAT_QI_V4DI_V4SF_INT): Ditto.
6182 (VOID_FTYPE_PFLOAT_QI_V2DI_V4SF_INT): Ditto.
6183 (VOID_FTYPE_PDOUBLE_QI_V4DI_V4DF_INT): Ditto.
6184 (VOID_FTYPE_PDOUBLE_QI_V2DI_V2DF_INT): Ditto.
6185 (VOID_FTYPE_PINT_QI_V8SI_V8SI_INT): Ditto.
6186 (VOID_FTYPE_PINT_QI_V4SI_V4SI_INT): Ditto.
6187 (VOID_FTYPE_PLONGLONG_QI_V4SI_V4DI_INT): Ditto.
6188 (VOID_FTYPE_PLONGLONG_QI_V4SI_V2DI_INT): Ditto.
6189 (VOID_FTYPE_PINT_QI_V4DI_V4SI_INT): Ditto.
6190 (VOID_FTYPE_PINT_QI_V2DI_V4SI_INT): Ditto.
6191 (VOID_FTYPE_PLONGLONG_QI_V4DI_V4DI_INT): Ditto.
6192 (VOID_FTYPE_PLONGLONG_QI_V2DI_V2DI_INT): Ditto.
6193 (V8DI_FTYPE_V8DI_INT): Ditto.
6194 (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
6195 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
6196 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
6197 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
6198 (V2DF_FTYPE_ V2DF_ V2DF_ V2DI_ INT_ QI): Remove.
6199 (V4SF_FTYPE_ V4SF_ V2DF_ V4SF_ QI): Ditto.
6200 (V4SF_FTYPE_ V4SF_ V4SF_ V4SF_ QI): Ditto.
6201 (V2DF_FTYPE_ PCDOUBLE_ V2DF_ QI): Ditto.
6202 (V4SF_FTYPE_ PCFLOAT_ V4SF_ QI): Ditto.
6203 (V16QI_FTYPE_ V16SI_ V16QI_ HI): Ditto.
6204 (V16QI_FTYPE_ V8DI_ V16QI_ QI): Ditto.
6205 (V4SF_FTYPE_ V4SF_ V4SF_ INT_ V4SF_ QI): Ditto.
6206 (V2DF_FTYPE_ V2DF_ V2DF_ INT_ V2DF_ QI): Ditto.
6207 (V8DI_FTYPE_ V16SI_ V16SI_ V8DI_ QI): Ditto.
6208 * config/i386/i386.c (ix86_builtins):
6209 Add IX86_BUILTIN_PMOVUSQD256_MEM, IX86_BUILTIN_PMOVUSQD128_MEM,
6210 IX86_BUILTIN_PMOVSQD256_MEM, IX86_BUILTIN_PMOVSQD128_MEM,
6211 IX86_BUILTIN_PMOVQD256_MEM, IX86_BUILTIN_PMOVQD128_MEM,
6212 IX86_BUILTIN_PMOVUSQW256_MEM, IX86_BUILTIN_PMOVUSQW128_MEM,
6213 IX86_BUILTIN_PMOVSQW256_MEM, IX86_BUILTIN_PMOVSQW128_MEM,
6214 IX86_BUILTIN_PMOVQW256_MEM, IX86_BUILTIN_PMOVQW128_MEM,
6215 IX86_BUILTIN_PMOVUSQB256_MEM, IX86_BUILTIN_PMOVUSQB128_MEM,
6216 IX86_BUILTIN_PMOVSQB256_MEM, IX86_BUILTIN_PMOVSQB128_MEM,
6217 IX86_BUILTIN_PMOVQB256_MEM, IX86_BUILTIN_PMOVQB128_MEM,
6218 IX86_BUILTIN_PMOVUSDW256_MEM, IX86_BUILTIN_PMOVUSDW128_MEM,
6219 IX86_BUILTIN_PMOVSDW256_MEM, IX86_BUILTIN_PMOVSDW128_MEM,
6220 IX86_BUILTIN_PMOVDW256_MEM, IX86_BUILTIN_PMOVDW128_MEM,
6221 IX86_BUILTIN_PMOVUSDB256_MEM, IX86_BUILTIN_PMOVUSDB128_MEM,
6222 IX86_BUILTIN_PMOVSDB256_MEM, IX86_BUILTIN_PMOVSDB128_MEM,
6223 IX86_BUILTIN_PMOVDB256_MEM, IX86_BUILTIN_PMOVDB128_MEM,
6224 IX86_BUILTIN_MOVDQA64LOAD256_MASK, IX86_BUILTIN_MOVDQA64LOAD128_MASK,
6225 IX86_BUILTIN_MOVDQA32LOAD256_MASK, IX86_BUILTIN_MOVDQA32LOAD128_MASK,
6226 IX86_BUILTIN_MOVDQA64STORE256_MASK, IX86_BUILTIN_MOVDQA64STORE128_MASK,
6227 IX86_BUILTIN_MOVDQA32STORE256_MASK, IX86_BUILTIN_MOVDQA32STORE128_MASK,
6228 IX86_BUILTIN_LOADAPD256_MASK, IX86_BUILTIN_LOADAPD128_MASK,
6229 IX86_BUILTIN_LOADAPS256_MASK, IX86_BUILTIN_LOADAPS128_MASK,
6230 IX86_BUILTIN_STOREAPD256_MASK, IX86_BUILTIN_STOREAPD128_MASK,
6231 IX86_BUILTIN_STOREAPS256_MASK, IX86_BUILTIN_STOREAPS128_MASK,
6232 IX86_BUILTIN_LOADUPD256_MASK, IX86_BUILTIN_LOADUPD128_MASK,
6233 IX86_BUILTIN_LOADUPS256_MASK, IX86_BUILTIN_LOADUPS128_MASK,
6234 IX86_BUILTIN_STOREUPD256_MASK, IX86_BUILTIN_STOREUPD128_MASK,
6235 IX86_BUILTIN_STOREUPS256_MASK, IX86_BUILTIN_STOREUPS128_MASK,
6236 IX86_BUILTIN_LOADDQUDI256_MASK, IX86_BUILTIN_LOADDQUDI128_MASK,
6237 IX86_BUILTIN_LOADDQUSI256_MASK, IX86_BUILTIN_LOADDQUSI128_MASK,
6238 IX86_BUILTIN_LOADDQUHI256_MASK, IX86_BUILTIN_LOADDQUHI128_MASK,
6239 IX86_BUILTIN_LOADDQUQI256_MASK, IX86_BUILTIN_LOADDQUQI128_MASK,
6240 IX86_BUILTIN_STOREDQUDI256_MASK, IX86_BUILTIN_STOREDQUDI128_MASK,
6241 IX86_BUILTIN_STOREDQUSI256_MASK, IX86_BUILTIN_STOREDQUSI128_MASK,
6242 IX86_BUILTIN_STOREDQUHI256_MASK, IX86_BUILTIN_STOREDQUHI128_MASK,
6243 IX86_BUILTIN_STOREDQUQI256_MASK, IX86_BUILTIN_STOREDQUQI128_MASK,
6244 IX86_BUILTIN_COMPRESSPDSTORE256, IX86_BUILTIN_COMPRESSPDSTORE128,
6245 IX86_BUILTIN_COMPRESSPSSTORE256, IX86_BUILTIN_COMPRESSPSSTORE128,
6246 IX86_BUILTIN_PCOMPRESSQSTORE256, IX86_BUILTIN_PCOMPRESSQSTORE128,
6247 IX86_BUILTIN_PCOMPRESSDSTORE256, IX86_BUILTIN_PCOMPRESSDSTORE128,
6248 IX86_BUILTIN_EXPANDPDLOAD256, IX86_BUILTIN_EXPANDPDLOAD128,
6249 IX86_BUILTIN_EXPANDPSLOAD256, IX86_BUILTIN_EXPANDPSLOAD128,
6250 IX86_BUILTIN_PEXPANDQLOAD256, IX86_BUILTIN_PEXPANDQLOAD128,
6251 IX86_BUILTIN_PEXPANDDLOAD256, IX86_BUILTIN_PEXPANDDLOAD128,
6252 IX86_BUILTIN_EXPANDPDLOAD256Z, IX86_BUILTIN_EXPANDPDLOAD128Z,
6253 IX86_BUILTIN_EXPANDPSLOAD256Z, IX86_BUILTIN_EXPANDPSLOAD128Z,
6254 IX86_BUILTIN_PEXPANDQLOAD256Z, IX86_BUILTIN_PEXPANDQLOAD128Z,
6255 IX86_BUILTIN_PEXPANDDLOAD256Z, IX86_BUILTIN_PEXPANDDLOAD128Z,
6256 IX86_BUILTIN_PALIGNR256_MASK, IX86_BUILTIN_PALIGNR128_MASK,
6257 IX86_BUILTIN_MOVDQA64_256_MASK, IX86_BUILTIN_MOVDQA64_128_MASK,
6258 IX86_BUILTIN_MOVDQA32_256_MASK, IX86_BUILTIN_MOVDQA32_128_MASK,
6259 IX86_BUILTIN_MOVAPD256_MASK, IX86_BUILTIN_MOVAPD128_MASK,
6260 IX86_BUILTIN_MOVAPS256_MASK, IX86_BUILTIN_MOVAPS128_MASK,
6261 IX86_BUILTIN_MOVDQUHI256_MASK, IX86_BUILTIN_MOVDQUHI128_MASK,
6262 IX86_BUILTIN_MOVDQUQI256_MASK, IX86_BUILTIN_MOVDQUQI128_MASK,
6263 IX86_BUILTIN_MINPS128_MASK, IX86_BUILTIN_MAXPS128_MASK,
6264 IX86_BUILTIN_MINPD128_MASK, IX86_BUILTIN_MAXPD128_MASK,
6265 IX86_BUILTIN_MAXPD256_MASK, IX86_BUILTIN_MAXPS256_MASK,
6266 IX86_BUILTIN_MINPD256_MASK, IX86_BUILTIN_MINPS256_MASK,
6267 IX86_BUILTIN_MULPS128_MASK, IX86_BUILTIN_DIVPS128_MASK,
6268 IX86_BUILTIN_MULPD128_MASK, IX86_BUILTIN_DIVPD128_MASK,
6269 IX86_BUILTIN_DIVPD256_MASK, IX86_BUILTIN_DIVPS256_MASK,
6270 IX86_BUILTIN_MULPD256_MASK, IX86_BUILTIN_MULPS256_MASK,
6271 IX86_BUILTIN_ADDPD128_MASK, IX86_BUILTIN_ADDPD256_MASK,
6272 IX86_BUILTIN_ADDPS128_MASK, IX86_BUILTIN_ADDPS256_MASK,
6273 IX86_BUILTIN_SUBPD128_MASK, IX86_BUILTIN_SUBPD256_MASK,
6274 IX86_BUILTIN_SUBPS128_MASK, IX86_BUILTIN_SUBPS256_MASK,
6275 IX86_BUILTIN_XORPD256_MASK, IX86_BUILTIN_XORPD128_MASK,
6276 IX86_BUILTIN_XORPS256_MASK, IX86_BUILTIN_XORPS128_MASK,
6277 IX86_BUILTIN_ORPD256_MASK, IX86_BUILTIN_ORPD128_MASK,
6278 IX86_BUILTIN_ORPS256_MASK, IX86_BUILTIN_ORPS128_MASK,
6279 IX86_BUILTIN_BROADCASTF32x2_256, IX86_BUILTIN_BROADCASTI32x2_256,
6280 IX86_BUILTIN_BROADCASTI32x2_128, IX86_BUILTIN_BROADCASTF64X2_256,
6281 IX86_BUILTIN_BROADCASTI64X2_256, IX86_BUILTIN_BROADCASTF32X4_256,
6282 IX86_BUILTIN_BROADCASTI32X4_256, IX86_BUILTIN_EXTRACTF32X4_256,
6283 IX86_BUILTIN_EXTRACTI32X4_256, IX86_BUILTIN_DBPSADBW256,
6284 IX86_BUILTIN_DBPSADBW128, IX86_BUILTIN_CVTTPD2QQ256,
6285 IX86_BUILTIN_CVTTPD2QQ128, IX86_BUILTIN_CVTTPD2UQQ256,
6286 IX86_BUILTIN_CVTTPD2UQQ128, IX86_BUILTIN_CVTPD2QQ256,
6287 IX86_BUILTIN_CVTPD2QQ128, IX86_BUILTIN_CVTPD2UQQ256,
6288 IX86_BUILTIN_CVTPD2UQQ128, IX86_BUILTIN_CVTPD2UDQ256_MASK,
6289 IX86_BUILTIN_CVTPD2UDQ128_MASK, IX86_BUILTIN_CVTTPS2QQ256,
6290 IX86_BUILTIN_CVTTPS2QQ128, IX86_BUILTIN_CVTTPS2UQQ256,
6291 IX86_BUILTIN_CVTTPS2UQQ128, IX86_BUILTIN_CVTTPS2DQ256_MASK,
6292 IX86_BUILTIN_CVTTPS2DQ128_MASK, IX86_BUILTIN_CVTTPS2UDQ256,
6293 IX86_BUILTIN_CVTTPS2UDQ128, IX86_BUILTIN_CVTTPD2DQ256_MASK,
6294 IX86_BUILTIN_CVTTPD2DQ128_MASK, IX86_BUILTIN_CVTTPD2UDQ256_MASK,
6295 IX86_BUILTIN_CVTTPD2UDQ128_MASK, IX86_BUILTIN_CVTPD2DQ256_MASK,
6296 IX86_BUILTIN_CVTPD2DQ128_MASK, IX86_BUILTIN_CVTDQ2PD256_MASK,
6297 IX86_BUILTIN_CVTDQ2PD128_MASK, IX86_BUILTIN_CVTUDQ2PD256_MASK,
6298 IX86_BUILTIN_CVTUDQ2PD128_MASK, IX86_BUILTIN_CVTDQ2PS256_MASK,
6299 IX86_BUILTIN_CVTDQ2PS128_MASK, IX86_BUILTIN_CVTUDQ2PS256_MASK,
6300 IX86_BUILTIN_CVTUDQ2PS128_MASK, IX86_BUILTIN_CVTPS2PD256_MASK,
6301 IX86_BUILTIN_CVTPS2PD128_MASK, IX86_BUILTIN_PBROADCASTB256_MASK,
6302 IX86_BUILTIN_PBROADCASTB256_GPR_MASK, IX86_BUILTIN_PBROADCASTB128_MASK,
6303 IX86_BUILTIN_PBROADCASTB128_GPR_MASK, IX86_BUILTIN_PBROADCASTW256_MASK,
6304 IX86_BUILTIN_PBROADCASTW256_GPR_MASK, IX86_BUILTIN_PBROADCASTW128_MASK,
6305 IX86_BUILTIN_PBROADCASTW128_GPR_MASK, IX86_BUILTIN_PBROADCASTD256_MASK,
6306 IX86_BUILTIN_PBROADCASTD256_GPR_MASK, IX86_BUILTIN_PBROADCASTD128_MASK,
6307 IX86_BUILTIN_PBROADCASTD128_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MASK,
6308 IX86_BUILTIN_PBROADCASTQ256_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
6309 IX86_BUILTIN_PBROADCASTQ128_MASK, IX86_BUILTIN_PBROADCASTQ128_GPR_MASK,
6310 IX86_BUILTIN_PBROADCASTQ128_MEM_MASK, IX86_BUILTIN_BROADCASTSS256,
6311 IX86_BUILTIN_BROADCASTSS128, IX86_BUILTIN_BROADCASTSD256,
6312 IX86_BUILTIN_EXTRACTF64X2_256, IX86_BUILTIN_EXTRACTI64X2_256,
6313 IX86_BUILTIN_INSERTF32X4_256, IX86_BUILTIN_INSERTI32X4_256,
6314 IX86_BUILTIN_PMOVSXBW256_MASK, IX86_BUILTIN_PMOVSXBW128_MASK,
6315 IX86_BUILTIN_PMOVSXBD256_MASK, IX86_BUILTIN_PMOVSXBD128_MASK,
6316 IX86_BUILTIN_PMOVSXBQ256_MASK, IX86_BUILTIN_PMOVSXBQ128_MASK,
6317 IX86_BUILTIN_PMOVSXWD256_MASK, IX86_BUILTIN_PMOVSXWD128_MASK,
6318 IX86_BUILTIN_PMOVSXWQ256_MASK, IX86_BUILTIN_PMOVSXWQ128_MASK,
6319 IX86_BUILTIN_PMOVSXDQ256_MASK, IX86_BUILTIN_PMOVSXDQ128_MASK,
6320 IX86_BUILTIN_PMOVZXBW256_MASK, IX86_BUILTIN_PMOVZXBW128_MASK,
6321 IX86_BUILTIN_PMOVZXBD256_MASK, IX86_BUILTIN_PMOVZXBD128_MASK,
6322 IX86_BUILTIN_PMOVZXBQ256_MASK, IX86_BUILTIN_PMOVZXBQ128_MASK,
6323 IX86_BUILTIN_PMOVZXWD256_MASK, IX86_BUILTIN_PMOVZXWD128_MASK,
6324 IX86_BUILTIN_PMOVZXWQ256_MASK, IX86_BUILTIN_PMOVZXWQ128_MASK,
6325 IX86_BUILTIN_PMOVZXDQ256_MASK, IX86_BUILTIN_PMOVZXDQ128_MASK,
6326 IX86_BUILTIN_REDUCEPD256_MASK, IX86_BUILTIN_REDUCEPD128_MASK,
6327 IX86_BUILTIN_REDUCEPS256_MASK, IX86_BUILTIN_REDUCEPS128_MASK,
6328 IX86_BUILTIN_REDUCESD_MASK, IX86_BUILTIN_REDUCESS_MASK,
6329 IX86_BUILTIN_VPERMVARHI256_MASK, IX86_BUILTIN_VPERMVARHI128_MASK,
6330 IX86_BUILTIN_VPERMT2VARHI256, IX86_BUILTIN_VPERMT2VARHI256_MASKZ,
6331 IX86_BUILTIN_VPERMT2VARHI128, IX86_BUILTIN_VPERMT2VARHI128_MASKZ,
6332 IX86_BUILTIN_VPERMI2VARHI256, IX86_BUILTIN_VPERMI2VARHI128,
6333 IX86_BUILTIN_RCP14PD256, IX86_BUILTIN_RCP14PD128,
6334 IX86_BUILTIN_RCP14PS256, IX86_BUILTIN_RCP14PS128,
6335 IX86_BUILTIN_RSQRT14PD256_MASK, IX86_BUILTIN_RSQRT14PD128_MASK,
6336 IX86_BUILTIN_RSQRT14PS256_MASK, IX86_BUILTIN_RSQRT14PS128_MASK,
6337 IX86_BUILTIN_SQRTPD256_MASK, IX86_BUILTIN_SQRTPD128_MASK,
6338 IX86_BUILTIN_SQRTPS256_MASK, IX86_BUILTIN_SQRTPS128_MASK,
6339 IX86_BUILTIN_PADDB128_MASK, IX86_BUILTIN_PADDW128_MASK,
6340 IX86_BUILTIN_PADDD128_MASK, IX86_BUILTIN_PADDQ128_MASK,
6341 IX86_BUILTIN_PSUBB128_MASK, IX86_BUILTIN_PSUBW128_MASK,
6342 IX86_BUILTIN_PSUBD128_MASK, IX86_BUILTIN_PSUBQ128_MASK,
6343 IX86_BUILTIN_PADDSB128_MASK, IX86_BUILTIN_PADDSW128_MASK,
6344 IX86_BUILTIN_PSUBSB128_MASK, IX86_BUILTIN_PSUBSW128_MASK,
6345 IX86_BUILTIN_PADDUSB128_MASK, IX86_BUILTIN_PADDUSW128_MASK,
6346 IX86_BUILTIN_PSUBUSB128_MASK, IX86_BUILTIN_PSUBUSW128_MASK,
6347 IX86_BUILTIN_PADDB256_MASK, IX86_BUILTIN_PADDW256_MASK,
6348 IX86_BUILTIN_PADDD256_MASK, IX86_BUILTIN_PADDQ256_MASK,
6349 IX86_BUILTIN_PADDSB256_MASK, IX86_BUILTIN_PADDSW256_MASK,
6350 IX86_BUILTIN_PADDUSB256_MASK, IX86_BUILTIN_PADDUSW256_MASK,
6351 IX86_BUILTIN_PSUBB256_MASK, IX86_BUILTIN_PSUBW256_MASK,
6352 IX86_BUILTIN_PSUBD256_MASK, IX86_BUILTIN_PSUBQ256_MASK,
6353 IX86_BUILTIN_PSUBSB256_MASK, IX86_BUILTIN_PSUBSW256_MASK,
6354 IX86_BUILTIN_PSUBUSB256_MASK, IX86_BUILTIN_PSUBUSW256_MASK,
6355 IX86_BUILTIN_SHUF_F64x2_256, IX86_BUILTIN_SHUF_I64x2_256,
6356 IX86_BUILTIN_SHUF_I32x4_256, IX86_BUILTIN_SHUF_F32x4_256,
6357 IX86_BUILTIN_PMOVWB128, IX86_BUILTIN_PMOVWB256,
6358 IX86_BUILTIN_PMOVSWB128, IX86_BUILTIN_PMOVSWB256,
6359 IX86_BUILTIN_PMOVUSWB128, IX86_BUILTIN_PMOVUSWB256,
6360 IX86_BUILTIN_PMOVDB128, IX86_BUILTIN_PMOVDB256,
6361 IX86_BUILTIN_PMOVSDB128, IX86_BUILTIN_PMOVSDB256,
6362 IX86_BUILTIN_PMOVUSDB128, IX86_BUILTIN_PMOVUSDB256,
6363 IX86_BUILTIN_PMOVDW128, IX86_BUILTIN_PMOVDW256,
6364 IX86_BUILTIN_PMOVSDW128, IX86_BUILTIN_PMOVSDW256,
6365 IX86_BUILTIN_PMOVUSDW128, IX86_BUILTIN_PMOVUSDW256,
6366 IX86_BUILTIN_PMOVQB128, IX86_BUILTIN_PMOVQB256,
6367 IX86_BUILTIN_PMOVSQB128, IX86_BUILTIN_PMOVSQB256,
6368 IX86_BUILTIN_PMOVUSQB128, IX86_BUILTIN_PMOVUSQB256,
6369 IX86_BUILTIN_PMOVQW128, IX86_BUILTIN_PMOVQW256,
6370 IX86_BUILTIN_PMOVSQW128, IX86_BUILTIN_PMOVSQW256,
6371 IX86_BUILTIN_PMOVUSQW128, IX86_BUILTIN_PMOVUSQW256,
6372 IX86_BUILTIN_PMOVQD128, IX86_BUILTIN_PMOVQD256,
6373 IX86_BUILTIN_PMOVSQD128, IX86_BUILTIN_PMOVSQD256,
6374 IX86_BUILTIN_PMOVUSQD128, IX86_BUILTIN_PMOVUSQD256,
6375 IX86_BUILTIN_RANGEPD256, IX86_BUILTIN_RANGEPD128,
6376 IX86_BUILTIN_RANGEPS256, IX86_BUILTIN_RANGEPS128,
6377 IX86_BUILTIN_GETEXPPS256, IX86_BUILTIN_GETEXPPD256,
6378 IX86_BUILTIN_GETEXPPS128, IX86_BUILTIN_GETEXPPD128,
6379 IX86_BUILTIN_FIXUPIMMPD256_MASK, IX86_BUILTIN_FIXUPIMMPD256_MASKZ,
6380 IX86_BUILTIN_FIXUPIMMPS256_MASK, IX86_BUILTIN_FIXUPIMMPS256_MASKZ,
6381 IX86_BUILTIN_FIXUPIMMPD128_MASK, IX86_BUILTIN_FIXUPIMMPD128_MASKZ,
6382 IX86_BUILTIN_FIXUPIMMPS128_MASK, IX86_BUILTIN_FIXUPIMMPS128_MASKZ,
6383 IX86_BUILTIN_PABSQ256, IX86_BUILTIN_PABSQ128,
6384 IX86_BUILTIN_PABSD256_MASK, IX86_BUILTIN_PABSD128_MASK,
6385 IX86_BUILTIN_PMULHRSW256_MASK, IX86_BUILTIN_PMULHRSW128_MASK,
6386 IX86_BUILTIN_PMULHUW128_MASK, IX86_BUILTIN_PMULHUW256_MASK,
6387 IX86_BUILTIN_PMULHW256_MASK, IX86_BUILTIN_PMULHW128_MASK,
6388 IX86_BUILTIN_PMULLW256_MASK, IX86_BUILTIN_PMULLW128_MASK,
6389 IX86_BUILTIN_PMULLQ256, IX86_BUILTIN_PMULLQ128,
6390 IX86_BUILTIN_ANDPD256_MASK, IX86_BUILTIN_ANDPD128_MASK,
6391 IX86_BUILTIN_ANDPS256_MASK, IX86_BUILTIN_ANDPS128_MASK,
6392 IX86_BUILTIN_ANDNPD256_MASK, IX86_BUILTIN_ANDNPD128_MASK,
6393 IX86_BUILTIN_ANDNPS256_MASK, IX86_BUILTIN_ANDNPS128_MASK,
6394 IX86_BUILTIN_PSLLWI128_MASK, IX86_BUILTIN_PSLLDI128_MASK,
6395 IX86_BUILTIN_PSLLQI128_MASK, IX86_BUILTIN_PSLLW128_MASK,
6396 IX86_BUILTIN_PSLLD128_MASK, IX86_BUILTIN_PSLLQ128_MASK,
6397 IX86_BUILTIN_PSLLWI256_MASK , IX86_BUILTIN_PSLLW256_MASK,
6398 IX86_BUILTIN_PSLLDI256_MASK, IX86_BUILTIN_PSLLD256_MASK,
6399 IX86_BUILTIN_PSLLQI256_MASK, IX86_BUILTIN_PSLLQ256_MASK,
6400 IX86_BUILTIN_PSRADI128_MASK, IX86_BUILTIN_PSRAD128_MASK,
6401 IX86_BUILTIN_PSRADI256_MASK, IX86_BUILTIN_PSRAD256_MASK,
6402 IX86_BUILTIN_PSRAQI128_MASK, IX86_BUILTIN_PSRAQ128_MASK,
6403 IX86_BUILTIN_PSRAQI256_MASK, IX86_BUILTIN_PSRAQ256_MASK,
6404 IX86_BUILTIN_PANDD256, IX86_BUILTIN_PANDD128,
6405 IX86_BUILTIN_PSRLDI128_MASK, IX86_BUILTIN_PSRLD128_MASK,
6406 IX86_BUILTIN_PSRLDI256_MASK, IX86_BUILTIN_PSRLD256_MASK,
6407 IX86_BUILTIN_PSRLQI128_MASK, IX86_BUILTIN_PSRLQ128_MASK,
6408 IX86_BUILTIN_PSRLQI256_MASK, IX86_BUILTIN_PSRLQ256_MASK,
6409 IX86_BUILTIN_PANDQ256, IX86_BUILTIN_PANDQ128,
6410 IX86_BUILTIN_PANDND256, IX86_BUILTIN_PANDND128,
6411 IX86_BUILTIN_PANDNQ256, IX86_BUILTIN_PANDNQ128,
6412 IX86_BUILTIN_PORD256, IX86_BUILTIN_PORD128,
6413 IX86_BUILTIN_PORQ256, IX86_BUILTIN_PORQ128,
6414 IX86_BUILTIN_PXORD256, IX86_BUILTIN_PXORD128,
6415 IX86_BUILTIN_PXORQ256, IX86_BUILTIN_PXORQ128,
6416 IX86_BUILTIN_PACKSSWB256_MASK, IX86_BUILTIN_PACKSSWB128_MASK,
6417 IX86_BUILTIN_PACKUSWB256_MASK, IX86_BUILTIN_PACKUSWB128_MASK,
6418 IX86_BUILTIN_RNDSCALEPS256, IX86_BUILTIN_RNDSCALEPD256,
6419 IX86_BUILTIN_RNDSCALEPS128, IX86_BUILTIN_RNDSCALEPD128,
6420 IX86_BUILTIN_VTERNLOGQ256_MASK, IX86_BUILTIN_VTERNLOGQ256_MASKZ,
6421 IX86_BUILTIN_VTERNLOGD256_MASK, IX86_BUILTIN_VTERNLOGD256_MASKZ,
6422 IX86_BUILTIN_VTERNLOGQ128_MASK, IX86_BUILTIN_VTERNLOGQ128_MASKZ,
6423 IX86_BUILTIN_VTERNLOGD128_MASK, IX86_BUILTIN_VTERNLOGD128_MASKZ,
6424 IX86_BUILTIN_SCALEFPD256, IX86_BUILTIN_SCALEFPS256,
6425 IX86_BUILTIN_SCALEFPD128, IX86_BUILTIN_SCALEFPS128,
6426 IX86_BUILTIN_VFMADDPD256_MASK, IX86_BUILTIN_VFMADDPD256_MASK3,
6427 IX86_BUILTIN_VFMADDPD256_MASKZ, IX86_BUILTIN_VFMADDPD128_MASK,
6428 IX86_BUILTIN_VFMADDPD128_MASK3, IX86_BUILTIN_VFMADDPD128_MASKZ,
6429 IX86_BUILTIN_VFMADDPS256_MASK, IX86_BUILTIN_VFMADDPS256_MASK3,
6430 IX86_BUILTIN_VFMADDPS256_MASKZ, IX86_BUILTIN_VFMADDPS128_MASK,
6431 IX86_BUILTIN_VFMADDPS128_MASK3, IX86_BUILTIN_VFMADDPS128_MASKZ,
6432 IX86_BUILTIN_VFMSUBPD256_MASK3, IX86_BUILTIN_VFMSUBPD128_MASK3,
6433 IX86_BUILTIN_VFMSUBPS256_MASK3, IX86_BUILTIN_VFMSUBPS128_MASK3,
6434 IX86_BUILTIN_VFNMADDPD256_MASK, IX86_BUILTIN_VFNMADDPD128_MASK,
6435 IX86_BUILTIN_VFNMADDPS256_MASK, IX86_BUILTIN_VFNMADDPS128_MASK,
6436 IX86_BUILTIN_VFNMSUBPD256_MASK, IX86_BUILTIN_VFNMSUBPD256_MASK3,
6437 IX86_BUILTIN_VFNMSUBPD128_MASK, IX86_BUILTIN_VFNMSUBPD128_MASK3,
6438 IX86_BUILTIN_VFNMSUBPS256_MASK, IX86_BUILTIN_VFNMSUBPS256_MASK3,
6439 IX86_BUILTIN_VFNMSUBPS128_MASK, IX86_BUILTIN_VFNMSUBPS128_MASK3,
6440 IX86_BUILTIN_VFMADDSUBPD256_MASK, IX86_BUILTIN_VFMADDSUBPD256_MASK3,
6441 IX86_BUILTIN_VFMADDSUBPD256_MASKZ, IX86_BUILTIN_VFMADDSUBPD128_MASK,
6442 IX86_BUILTIN_VFMADDSUBPD128_MASK3, IX86_BUILTIN_VFMADDSUBPD128_MASKZ,
6443 IX86_BUILTIN_VFMADDSUBPS256_MASK, IX86_BUILTIN_VFMADDSUBPS256_MASK3,
6444 IX86_BUILTIN_VFMADDSUBPS256_MASKZ, IX86_BUILTIN_VFMADDSUBPS128_MASK,
6445 IX86_BUILTIN_VFMADDSUBPS128_MASK3, IX86_BUILTIN_VFMADDSUBPS128_MASKZ,
6446 IX86_BUILTIN_VFMSUBADDPD256_MASK3, IX86_BUILTIN_VFMSUBADDPD128_MASK3,
6447 IX86_BUILTIN_VFMSUBADDPS256_MASK3, IX86_BUILTIN_VFMSUBADDPS128_MASK3,
6448 IX86_BUILTIN_INSERTF64X2_256, IX86_BUILTIN_INSERTI64X2_256,
6449 IX86_BUILTIN_PSRAVV16HI, IX86_BUILTIN_PSRAVV8HI,
6450 IX86_BUILTIN_PMADDUBSW256_MASK, IX86_BUILTIN_PMADDUBSW128_MASK,
6451 IX86_BUILTIN_PMADDWD256_MASK, IX86_BUILTIN_PMADDWD128_MASK,
6452 IX86_BUILTIN_PSRLVV16HI, IX86_BUILTIN_PSRLVV8HI,
6453 IX86_BUILTIN_CVTPS2DQ256_MASK, IX86_BUILTIN_CVTPS2DQ128_MASK,
6454 IX86_BUILTIN_CVTPS2UDQ256, IX86_BUILTIN_CVTPS2UDQ128,
6455 IX86_BUILTIN_CVTPS2QQ256, IX86_BUILTIN_CVTPS2QQ128,
6456 IX86_BUILTIN_CVTPS2UQQ256, IX86_BUILTIN_CVTPS2UQQ128,
6457 IX86_BUILTIN_GETMANTPS256, IX86_BUILTIN_GETMANTPS128,
6458 IX86_BUILTIN_GETMANTPD256, IX86_BUILTIN_GETMANTPD128,
6459 IX86_BUILTIN_MOVDDUP256_MASK, IX86_BUILTIN_MOVDDUP128_MASK,
6460 IX86_BUILTIN_MOVSHDUP256_MASK, IX86_BUILTIN_MOVSHDUP128_MASK,
6461 IX86_BUILTIN_MOVSLDUP256_MASK, IX86_BUILTIN_MOVSLDUP128_MASK,
6462 IX86_BUILTIN_CVTQQ2PS256, IX86_BUILTIN_CVTQQ2PS128,
6463 IX86_BUILTIN_CVTUQQ2PS256, IX86_BUILTIN_CVTUQQ2PS128,
6464 IX86_BUILTIN_CVTQQ2PD256, IX86_BUILTIN_CVTQQ2PD128,
6465 IX86_BUILTIN_CVTUQQ2PD256, IX86_BUILTIN_CVTUQQ2PD128,
6466 IX86_BUILTIN_VPERMT2VARQ256, IX86_BUILTIN_VPERMT2VARQ256_MASKZ,
6467 IX86_BUILTIN_VPERMT2VARD256, IX86_BUILTIN_VPERMT2VARD256_MASKZ,
6468 IX86_BUILTIN_VPERMI2VARQ256, IX86_BUILTIN_VPERMI2VARD256,
6469 IX86_BUILTIN_VPERMT2VARPD256, IX86_BUILTIN_VPERMT2VARPD256_MASKZ,
6470 IX86_BUILTIN_VPERMT2VARPS256, IX86_BUILTIN_VPERMT2VARPS256_MASKZ,
6471 IX86_BUILTIN_VPERMI2VARPD256, IX86_BUILTIN_VPERMI2VARPS256,
6472 IX86_BUILTIN_VPERMT2VARQ128, IX86_BUILTIN_VPERMT2VARQ128_MASKZ,
6473 IX86_BUILTIN_VPERMT2VARD128, IX86_BUILTIN_VPERMT2VARD128_MASKZ,
6474 IX86_BUILTIN_VPERMI2VARQ128, IX86_BUILTIN_VPERMI2VARD128,
6475 IX86_BUILTIN_VPERMT2VARPD128, IX86_BUILTIN_VPERMT2VARPD128_MASKZ,
6476 IX86_BUILTIN_VPERMT2VARPS128, IX86_BUILTIN_VPERMT2VARPS128_MASKZ,
6477 IX86_BUILTIN_VPERMI2VARPD128, IX86_BUILTIN_VPERMI2VARPS128,
6478 IX86_BUILTIN_PSHUFB256_MASK, IX86_BUILTIN_PSHUFB128_MASK,
6479 IX86_BUILTIN_PSHUFHW256_MASK, IX86_BUILTIN_PSHUFHW128_MASK,
6480 IX86_BUILTIN_PSHUFLW256_MASK, IX86_BUILTIN_PSHUFLW128_MASK,
6481 IX86_BUILTIN_PSHUFD256_MASK, IX86_BUILTIN_PSHUFD128_MASK,
6482 IX86_BUILTIN_SHUFPD256_MASK, IX86_BUILTIN_SHUFPD128_MASK,
6483 IX86_BUILTIN_SHUFPS256_MASK, IX86_BUILTIN_SHUFPS128_MASK,
6484 IX86_BUILTIN_PROLVQ256, IX86_BUILTIN_PROLVQ128,
6485 IX86_BUILTIN_PROLQ256, IX86_BUILTIN_PROLQ128,
6486 IX86_BUILTIN_PRORVQ256, IX86_BUILTIN_PRORVQ128,
6487 IX86_BUILTIN_PRORQ256, IX86_BUILTIN_PRORQ128,
6488 IX86_BUILTIN_PSRAVQ128, IX86_BUILTIN_PSRAVQ256,
6489 IX86_BUILTIN_PSLLVV4DI_MASK, IX86_BUILTIN_PSLLVV2DI_MASK,
6490 IX86_BUILTIN_PSLLVV8SI_MASK, IX86_BUILTIN_PSLLVV4SI_MASK,
6491 IX86_BUILTIN_PSRAVV8SI_MASK, IX86_BUILTIN_PSRAVV4SI_MASK,
6492 IX86_BUILTIN_PSRLVV4DI_MASK, IX86_BUILTIN_PSRLVV2DI_MASK,
6493 IX86_BUILTIN_PSRLVV8SI_MASK, IX86_BUILTIN_PSRLVV4SI_MASK,
6494 IX86_BUILTIN_PSRAWI256_MASK, IX86_BUILTIN_PSRAW256_MASK,
6495 IX86_BUILTIN_PSRAWI128_MASK, IX86_BUILTIN_PSRAW128_MASK,
6496 IX86_BUILTIN_PSRLWI256_MASK, IX86_BUILTIN_PSRLW256_MASK,
6497 IX86_BUILTIN_PSRLWI128_MASK, IX86_BUILTIN_PSRLW128_MASK,
6498 IX86_BUILTIN_PRORVD256, IX86_BUILTIN_PROLVD256,
6499 IX86_BUILTIN_PRORD256, IX86_BUILTIN_PROLD256,
6500 IX86_BUILTIN_PRORVD128, IX86_BUILTIN_PROLVD128,
6501 IX86_BUILTIN_PRORD128, IX86_BUILTIN_PROLD128,
6502 IX86_BUILTIN_FPCLASSPD256, IX86_BUILTIN_FPCLASSPD128,
6503 IX86_BUILTIN_FPCLASSSD, IX86_BUILTIN_FPCLASSPS256,
6504 IX86_BUILTIN_FPCLASSPS128, IX86_BUILTIN_FPCLASSSS,
6505 IX86_BUILTIN_CVTB2MASK128, IX86_BUILTIN_CVTB2MASK256,
6506 IX86_BUILTIN_CVTW2MASK128, IX86_BUILTIN_CVTW2MASK256,
6507 IX86_BUILTIN_CVTD2MASK128, IX86_BUILTIN_CVTD2MASK256,
6508 IX86_BUILTIN_CVTQ2MASK128, IX86_BUILTIN_CVTQ2MASK256,
6509 IX86_BUILTIN_CVTMASK2B128, IX86_BUILTIN_CVTMASK2B256,
6510 IX86_BUILTIN_CVTMASK2W128, IX86_BUILTIN_CVTMASK2W256,
6511 IX86_BUILTIN_CVTMASK2D128, IX86_BUILTIN_CVTMASK2D256,
6512 IX86_BUILTIN_CVTMASK2Q128, IX86_BUILTIN_CVTMASK2Q256,
6513 IX86_BUILTIN_PCMPEQB128_MASK, IX86_BUILTIN_PCMPEQB256_MASK,
6514 IX86_BUILTIN_PCMPEQW128_MASK, IX86_BUILTIN_PCMPEQW256_MASK,
6515 IX86_BUILTIN_PCMPEQD128_MASK, IX86_BUILTIN_PCMPEQD256_MASK,
6516 IX86_BUILTIN_PCMPEQQ128_MASK, IX86_BUILTIN_PCMPEQQ256_MASK,
6517 IX86_BUILTIN_PCMPGTB128_MASK, IX86_BUILTIN_PCMPGTB256_MASK,
6518 IX86_BUILTIN_PCMPGTW128_MASK, IX86_BUILTIN_PCMPGTW256_MASK,
6519 IX86_BUILTIN_PCMPGTD128_MASK, IX86_BUILTIN_PCMPGTD256_MASK,
6520 IX86_BUILTIN_PCMPGTQ128_MASK, IX86_BUILTIN_PCMPGTQ256_MASK,
6521 IX86_BUILTIN_PTESTMB128, IX86_BUILTIN_PTESTMB256,
6522 IX86_BUILTIN_PTESTMW128, IX86_BUILTIN_PTESTMW256,
6523 IX86_BUILTIN_PTESTMD128, IX86_BUILTIN_PTESTMD256,
6524 IX86_BUILTIN_PTESTMQ128, IX86_BUILTIN_PTESTMQ256,
6525 IX86_BUILTIN_PTESTNMB128, IX86_BUILTIN_PTESTNMB256,
6526 IX86_BUILTIN_PTESTNMW128, IX86_BUILTIN_PTESTNMW256,
6527 IX86_BUILTIN_PTESTNMD128, IX86_BUILTIN_PTESTNMD256,
6528 IX86_BUILTIN_PTESTNMQ128, IX86_BUILTIN_PTESTNMQ256,
6529 IX86_BUILTIN_PBROADCASTMB128, IX86_BUILTIN_PBROADCASTMB256,
6530 IX86_BUILTIN_PBROADCASTMW128, IX86_BUILTIN_PBROADCASTMW256,
6531 IX86_BUILTIN_COMPRESSPD256, IX86_BUILTIN_COMPRESSPD128,
6532 IX86_BUILTIN_COMPRESSPS256, IX86_BUILTIN_COMPRESSPS128,
6533 IX86_BUILTIN_PCOMPRESSQ256, IX86_BUILTIN_PCOMPRESSQ128,
6534 IX86_BUILTIN_PCOMPRESSD256, IX86_BUILTIN_PCOMPRESSD128,
6535 IX86_BUILTIN_EXPANDPD256, IX86_BUILTIN_EXPANDPD128,
6536 IX86_BUILTIN_EXPANDPS256, IX86_BUILTIN_EXPANDPS128,
6537 IX86_BUILTIN_PEXPANDQ256, IX86_BUILTIN_PEXPANDQ128,
6538 IX86_BUILTIN_PEXPANDD256, IX86_BUILTIN_PEXPANDD128,
6539 IX86_BUILTIN_EXPANDPD256Z, IX86_BUILTIN_EXPANDPD128Z,
6540 IX86_BUILTIN_EXPANDPS256Z, IX86_BUILTIN_EXPANDPS128Z,
6541 IX86_BUILTIN_PEXPANDQ256Z, IX86_BUILTIN_PEXPANDQ128Z,
6542 IX86_BUILTIN_PEXPANDD256Z, IX86_BUILTIN_PEXPANDD128Z,
6543 IX86_BUILTIN_PMAXSD256_MASK, IX86_BUILTIN_PMINSD256_MASK,
6544 IX86_BUILTIN_PMAXUD256_MASK, IX86_BUILTIN_PMINUD256_MASK,
6545 IX86_BUILTIN_PMAXSD128_MASK, IX86_BUILTIN_PMINSD128_MASK,
6546 IX86_BUILTIN_PMAXUD128_MASK, IX86_BUILTIN_PMINUD128_MASK,
6547 IX86_BUILTIN_PMAXSQ256_MASK, IX86_BUILTIN_PMINSQ256_MASK,
6548 IX86_BUILTIN_PMAXUQ256_MASK, IX86_BUILTIN_PMINUQ256_MASK,
6549 IX86_BUILTIN_PMAXSQ128_MASK, IX86_BUILTIN_PMINSQ128_MASK,
6550 IX86_BUILTIN_PMAXUQ128_MASK, IX86_BUILTIN_PMINUQ128_MASK,
6551 IX86_BUILTIN_PMINSB256_MASK, IX86_BUILTIN_PMINUB256_MASK,
6552 IX86_BUILTIN_PMAXSB256_MASK, IX86_BUILTIN_PMAXUB256_MASK,
6553 IX86_BUILTIN_PMINSB128_MASK, IX86_BUILTIN_PMINUB128_MASK,
6554 IX86_BUILTIN_PMAXSB128_MASK, IX86_BUILTIN_PMAXUB128_MASK,
6555 IX86_BUILTIN_PMINSW256_MASK, IX86_BUILTIN_PMINUW256_MASK,
6556 IX86_BUILTIN_PMAXSW256_MASK, IX86_BUILTIN_PMAXUW256_MASK,
6557 IX86_BUILTIN_PMINSW128_MASK, IX86_BUILTIN_PMINUW128_MASK,
6558 IX86_BUILTIN_PMAXSW128_MASK, IX86_BUILTIN_PMAXUW128_MASK,
6559 IX86_BUILTIN_VPCONFLICTQ256, IX86_BUILTIN_VPCONFLICTD256,
6560 IX86_BUILTIN_VPCLZCNTQ256, IX86_BUILTIN_VPCLZCNTD256,
6561 IX86_BUILTIN_UNPCKHPD256_MASK, IX86_BUILTIN_UNPCKHPD128_MASK,
6562 IX86_BUILTIN_UNPCKHPS256_MASK, IX86_BUILTIN_UNPCKHPS128_MASK,
6563 IX86_BUILTIN_UNPCKLPD256_MASK, IX86_BUILTIN_UNPCKLPD128_MASK,
6564 IX86_BUILTIN_UNPCKLPS256_MASK, IX86_BUILTIN_VPCONFLICTQ128,
6565 IX86_BUILTIN_VPCONFLICTD128, IX86_BUILTIN_VPCLZCNTQ128,
6566 IX86_BUILTIN_VPCLZCNTD128, IX86_BUILTIN_UNPCKLPS128_MASK,
6567 IX86_BUILTIN_ALIGND256, IX86_BUILTIN_ALIGNQ256,
6568 IX86_BUILTIN_ALIGND128, IX86_BUILTIN_ALIGNQ128,
6569 IX86_BUILTIN_CVTPS2PH256_MASK, IX86_BUILTIN_CVTPS2PH_MASK,
6570 IX86_BUILTIN_CVTPH2PS_MASK, IX86_BUILTIN_CVTPH2PS256_MASK,
6571 IX86_BUILTIN_PUNPCKHDQ128_MASK, IX86_BUILTIN_PUNPCKHDQ256_MASK,
6572 IX86_BUILTIN_PUNPCKHQDQ128_MASK, IX86_BUILTIN_PUNPCKHQDQ256_MASK,
6573 IX86_BUILTIN_PUNPCKLDQ128_MASK, IX86_BUILTIN_PUNPCKLDQ256_MASK,
6574 IX86_BUILTIN_PUNPCKLQDQ128_MASK, IX86_BUILTIN_PUNPCKLQDQ256_MASK,
6575 IX86_BUILTIN_PUNPCKHBW128_MASK, IX86_BUILTIN_PUNPCKHBW256_MASK,
6576 IX86_BUILTIN_PUNPCKHWD128_MASK, IX86_BUILTIN_PUNPCKHWD256_MASK,
6577 IX86_BUILTIN_PUNPCKLBW128_MASK, IX86_BUILTIN_PUNPCKLBW256_MASK,
6578 IX86_BUILTIN_PUNPCKLWD128_MASK, IX86_BUILTIN_PUNPCKLWD256_MASK,
6579 IX86_BUILTIN_PSLLVV16HI, IX86_BUILTIN_PSLLVV8HI,
6580 IX86_BUILTIN_PACKSSDW256_MASK, IX86_BUILTIN_PACKSSDW128_MASK,
6581 IX86_BUILTIN_PACKUSDW256_MASK, IX86_BUILTIN_PACKUSDW128_MASK,
6582 IX86_BUILTIN_PAVGB256_MASK, IX86_BUILTIN_PAVGW256_MASK,
6583 IX86_BUILTIN_PAVGB128_MASK, IX86_BUILTIN_PAVGW128_MASK,
6584 IX86_BUILTIN_VPERMVARSF256_MASK, IX86_BUILTIN_VPERMVARDF256_MASK,
6585 IX86_BUILTIN_VPERMDF256_MASK, IX86_BUILTIN_PABSB256_MASK,
6586 IX86_BUILTIN_PABSB128_MASK, IX86_BUILTIN_PABSW256_MASK,
6587 IX86_BUILTIN_PABSW128_MASK, IX86_BUILTIN_VPERMILVARPD_MASK,
6588 IX86_BUILTIN_VPERMILVARPS_MASK, IX86_BUILTIN_VPERMILVARPD256_MASK,
6589 IX86_BUILTIN_VPERMILVARPS256_MASK, IX86_BUILTIN_VPERMILPD_MASK,
6590 IX86_BUILTIN_VPERMILPS_MASK, IX86_BUILTIN_VPERMILPD256_MASK,
6591 IX86_BUILTIN_VPERMILPS256_MASK, IX86_BUILTIN_BLENDMQ256,
6592 IX86_BUILTIN_BLENDMD256, IX86_BUILTIN_BLENDMPD256,
6593 IX86_BUILTIN_BLENDMPS256, IX86_BUILTIN_BLENDMQ128,
6594 IX86_BUILTIN_BLENDMD128, IX86_BUILTIN_BLENDMPD128,
6595 IX86_BUILTIN_BLENDMPS128, IX86_BUILTIN_BLENDMW256,
6596 IX86_BUILTIN_BLENDMB256, IX86_BUILTIN_BLENDMW128,
6597 IX86_BUILTIN_BLENDMB128, IX86_BUILTIN_PMULLD256_MASK,
6598 IX86_BUILTIN_PMULLD128_MASK, IX86_BUILTIN_PMULUDQ256_MASK,
6599 IX86_BUILTIN_PMULDQ256_MASK, IX86_BUILTIN_PMULDQ128_MASK,
6600 IX86_BUILTIN_PMULUDQ128_MASK, IX86_BUILTIN_CVTPD2PS256_MASK,
6601 IX86_BUILTIN_CVTPD2PS_MASK, IX86_BUILTIN_VPERMVARSI256_MASK,
6602 IX86_BUILTIN_VPERMVARDI256_MASK, IX86_BUILTIN_VPERMDI256_MASK,
6603 IX86_BUILTIN_CMPQ256, IX86_BUILTIN_CMPD256,
6604 IX86_BUILTIN_UCMPQ256, IX86_BUILTIN_UCMPD256,
6605 IX86_BUILTIN_CMPB256, IX86_BUILTIN_CMPW256,
6606 IX86_BUILTIN_UCMPB256, IX86_BUILTIN_UCMPW256,
6607 IX86_BUILTIN_CMPPD256_MASK, IX86_BUILTIN_CMPPS256_MASK,
6608 IX86_BUILTIN_CMPQ128, IX86_BUILTIN_CMPD128,
6609 IX86_BUILTIN_UCMPQ128, IX86_BUILTIN_UCMPD128,
6610 IX86_BUILTIN_CMPB128, IX86_BUILTIN_CMPW128,
6611 IX86_BUILTIN_UCMPB128, IX86_BUILTIN_UCMPW128,
6612 IX86_BUILTIN_CMPPD128_MASK, IX86_BUILTIN_CMPPS128_MASK,
6613 IX86_BUILTIN_GATHER3SIV8SF, IX86_BUILTIN_GATHER3SIV4SF,
6614 IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV2DF,
6615 IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3DIV4SF,
6616 IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
6617 IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3SIV4SI,
6618 IX86_BUILTIN_GATHER3SIV4DI, IX86_BUILTIN_GATHER3SIV2DI,
6619 IX86_BUILTIN_GATHER3DIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
6620 IX86_BUILTIN_GATHER3DIV4DI, IX86_BUILTIN_GATHER3DIV2DI,
6621 IX86_BUILTIN_SCATTERSIV8SF, IX86_BUILTIN_SCATTERSIV4SF,
6622 IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV2DF,
6623 IX86_BUILTIN_SCATTERDIV8SF, IX86_BUILTIN_SCATTERDIV4SF,
6624 IX86_BUILTIN_SCATTERDIV4DF, IX86_BUILTIN_SCATTERDIV2DF,
6625 IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV4SI,
6626 IX86_BUILTIN_SCATTERSIV4DI, IX86_BUILTIN_SCATTERSIV2DI,
6627 IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_SCATTERDIV4SI,
6628 IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
6629 IX86_BUILTIN_RANGESD128, IX86_BUILTIN_RANGESS128,
6630 IX86_BUILTIN_KUNPCKWD, IX86_BUILTIN_KUNPCKDQ,
6631 IX86_BUILTIN_BROADCASTF32x2_512, IX86_BUILTIN_BROADCASTI32x2_512,
6632 IX86_BUILTIN_BROADCASTF64X2_512, IX86_BUILTIN_BROADCASTI64X2_512,
6633 IX86_BUILTIN_BROADCASTF32X8_512, IX86_BUILTIN_BROADCASTI32X8_512,
6634 IX86_BUILTIN_EXTRACTF64X2_512, IX86_BUILTIN_EXTRACTF32X8,
6635 IX86_BUILTIN_EXTRACTI64X2_512, IX86_BUILTIN_EXTRACTI32X8,
6636 IX86_BUILTIN_REDUCEPD512_MASK, IX86_BUILTIN_REDUCEPS512_MASK,
6637 IX86_BUILTIN_PMULLQ512, IX86_BUILTIN_XORPD512,
6638 IX86_BUILTIN_XORPS512, IX86_BUILTIN_ORPD512,
6639 IX86_BUILTIN_ORPS512, IX86_BUILTIN_ANDPD512,
6640 IX86_BUILTIN_ANDPS512, IX86_BUILTIN_ANDNPD512,
6641 IX86_BUILTIN_ANDNPS512, IX86_BUILTIN_INSERTF32X8,
6642 IX86_BUILTIN_INSERTI32X8, IX86_BUILTIN_INSERTF64X2_512,
6643 IX86_BUILTIN_INSERTI64X2_512, IX86_BUILTIN_FPCLASSPD512,
6644 IX86_BUILTIN_FPCLASSPS512, IX86_BUILTIN_CVTD2MASK512,
6645 IX86_BUILTIN_CVTQ2MASK512, IX86_BUILTIN_CVTMASK2D512,
6646 IX86_BUILTIN_CVTMASK2Q512, IX86_BUILTIN_CVTPD2QQ512,
6647 IX86_BUILTIN_CVTPS2QQ512, IX86_BUILTIN_CVTPD2UQQ512,
6648 IX86_BUILTIN_CVTPS2UQQ512, IX86_BUILTIN_CVTQQ2PS512,
6649 IX86_BUILTIN_CVTUQQ2PS512, IX86_BUILTIN_CVTQQ2PD512,
6650 IX86_BUILTIN_CVTUQQ2PD512, IX86_BUILTIN_CVTTPS2QQ512,
6651 IX86_BUILTIN_CVTTPS2UQQ512, IX86_BUILTIN_CVTTPD2QQ512,
6652 IX86_BUILTIN_CVTTPD2UQQ512, IX86_BUILTIN_RANGEPS512,
6653 IX86_BUILTIN_RANGEPD512, IX86_BUILTIN_PACKUSDW512,
6654 IX86_BUILTIN_PACKSSDW512, IX86_BUILTIN_LOADDQUHI512_MASK,
6655 IX86_BUILTIN_LOADDQUQI512_MASK, IX86_BUILTIN_PSLLDQ512,
6656 IX86_BUILTIN_PSRLDQ512, IX86_BUILTIN_STOREDQUHI512_MASK,
6657 IX86_BUILTIN_STOREDQUQI512_MASK, IX86_BUILTIN_PALIGNR512,
6658 IX86_BUILTIN_PALIGNR512_MASK, IX86_BUILTIN_MOVDQUHI512_MASK,
6659 IX86_BUILTIN_MOVDQUQI512_MASK, IX86_BUILTIN_PSADBW512,
6660 IX86_BUILTIN_DBPSADBW512, IX86_BUILTIN_PBROADCASTB512,
6661 IX86_BUILTIN_PBROADCASTB512_GPR, IX86_BUILTIN_PBROADCASTW512,
6662 IX86_BUILTIN_PBROADCASTW512_GPR, IX86_BUILTIN_PMOVSXBW512_MASK,
6663 IX86_BUILTIN_PMOVZXBW512_MASK, IX86_BUILTIN_VPERMVARHI512_MASK,
6664 IX86_BUILTIN_VPERMT2VARHI512, IX86_BUILTIN_VPERMT2VARHI512_MASKZ,
6665 IX86_BUILTIN_VPERMI2VARHI512, IX86_BUILTIN_PAVGB512,
6666 IX86_BUILTIN_PAVGW512, IX86_BUILTIN_PADDB512,
6667 IX86_BUILTIN_PSUBB512, IX86_BUILTIN_PSUBSB512,
6668 IX86_BUILTIN_PADDSB512, IX86_BUILTIN_PSUBUSB512,
6669 IX86_BUILTIN_PADDUSB512, IX86_BUILTIN_PSUBW512,
6670 IX86_BUILTIN_PADDW512, IX86_BUILTIN_PSUBSW512,
6671 IX86_BUILTIN_PADDSW512, IX86_BUILTIN_PSUBUSW512,
6672 IX86_BUILTIN_PADDUSW512, IX86_BUILTIN_PMAXUW512,
6673 IX86_BUILTIN_PMAXSW512, IX86_BUILTIN_PMINUW512,
6674 IX86_BUILTIN_PMINSW512, IX86_BUILTIN_PMAXUB512,
6675 IX86_BUILTIN_PMAXSB512, IX86_BUILTIN_PMINUB512,
6676 IX86_BUILTIN_PMINSB512, IX86_BUILTIN_PMOVWB512,
6677 IX86_BUILTIN_PMOVSWB512, IX86_BUILTIN_PMOVUSWB512,
6678 IX86_BUILTIN_PMULHRSW512_MASK, IX86_BUILTIN_PMULHUW512_MASK,
6679 IX86_BUILTIN_PMULHW512_MASK, IX86_BUILTIN_PMULLW512_MASK,
6680 IX86_BUILTIN_PSLLWI512_MASK, IX86_BUILTIN_PSLLW512_MASK,
6681 IX86_BUILTIN_PACKSSWB512, IX86_BUILTIN_PACKUSWB512,
6682 IX86_BUILTIN_PSRAVV32HI, IX86_BUILTIN_PMADDUBSW512_MASK,
6683 IX86_BUILTIN_PMADDWD512_MASK, IX86_BUILTIN_PSRLVV32HI,
6684 IX86_BUILTIN_PUNPCKHBW512, IX86_BUILTIN_PUNPCKHWD512,
6685 IX86_BUILTIN_PUNPCKLBW512, IX86_BUILTIN_PUNPCKLWD512,
6686 IX86_BUILTIN_PSHUFB512, IX86_BUILTIN_PSHUFHW512,
6687 IX86_BUILTIN_PSHUFLW512, IX86_BUILTIN_PSRAWI512,
6688 IX86_BUILTIN_PSRAW512, IX86_BUILTIN_PSRLWI512,
6689 IX86_BUILTIN_PSRLW512, IX86_BUILTIN_CVTB2MASK512,
6690 IX86_BUILTIN_CVTW2MASK512, IX86_BUILTIN_CVTMASK2B512,
6691 IX86_BUILTIN_CVTMASK2W512, IX86_BUILTIN_PCMPEQB512_MASK,
6692 IX86_BUILTIN_PCMPEQW512_MASK, IX86_BUILTIN_PCMPGTB512_MASK,
6693 IX86_BUILTIN_PCMPGTW512_MASK, IX86_BUILTIN_PTESTMB512,
6694 IX86_BUILTIN_PTESTMW512, IX86_BUILTIN_PTESTNMB512,
6695 IX86_BUILTIN_PTESTNMW512, IX86_BUILTIN_PSLLVV32HI,
6696 IX86_BUILTIN_PABSB512, IX86_BUILTIN_PABSW512,
6697 IX86_BUILTIN_BLENDMW512, IX86_BUILTIN_BLENDMB512,
6698 IX86_BUILTIN_CMPB512, IX86_BUILTIN_CMPW512,
6699 IX86_BUILTIN_UCMPB512, IX86_BUILTIN_UCMPW512.
6700 (bdesc_special_args):
6701 Add __builtin_ia32_loaddquhi512_mask, __builtin_ia32_loaddquqi512_mask,
6702 __builtin_ia32_storedquhi512_mask, __builtin_ia32_storedquqi512_mask,
6703 __builtin_ia32_loaddquhi256_mask, __builtin_ia32_loaddquhi128_mask,
6704 __builtin_ia32_loaddquqi256_mask, __builtin_ia32_loaddquqi128_mask,
6705 __builtin_ia32_movdqa64load256_mask, __builtin_ia32_movdqa64load128_mask,
6706 __builtin_ia32_movdqa32load256_mask, __builtin_ia32_movdqa32load128_mask,
6707 __builtin_ia32_movdqa64store256_mask, __builtin_ia32_movdqa64store128_mask,
6708 __builtin_ia32_movdqa32store256_mask, __builtin_ia32_movdqa32store128_mask,
6709 __builtin_ia32_loadapd256_mask, __builtin_ia32_loadapd128_mask,
6710 __builtin_ia32_loadaps256_mask, __builtin_ia32_loadaps128_mask,
6711 __builtin_ia32_storeapd256_mask, __builtin_ia32_storeapd128_mask,
6712 __builtin_ia32_storeaps256_mask, __builtin_ia32_storeaps128_mask,
6713 __builtin_ia32_loadupd256_mask, __builtin_ia32_loadupd128_mask,
6714 __builtin_ia32_loadups256_mask, __builtin_ia32_loadups128_mask,
6715 __builtin_ia32_storeupd256_mask, __builtin_ia32_storeupd128_mask,
6716 __builtin_ia32_storeups256_mask, __builtin_ia32_storeups128_mask,
6717 __builtin_ia32_loaddqudi256_mask, __builtin_ia32_loaddqudi128_mask,
6718 __builtin_ia32_loaddqusi256_mask, __builtin_ia32_loaddqusi128_mask,
6719 __builtin_ia32_storedqudi256_mask, __builtin_ia32_storedqudi128_mask,
6720 __builtin_ia32_storedqusi256_mask, __builtin_ia32_storedqusi128_mask,
6721 __builtin_ia32_storedquhi256_mask, __builtin_ia32_storedquhi128_mask,
6722 __builtin_ia32_storedquqi256_mask, __builtin_ia32_storedquqi128_mask,
6723 __builtin_ia32_compressstoredf256_mask, __builtin_ia32_compressstoredf128_mask,
6724 __builtin_ia32_compressstoresf256_mask, __builtin_ia32_compressstoresf128_mask,
6725 __builtin_ia32_compressstoredi256_mask, __builtin_ia32_compressstoredi128_mask,
6726 __builtin_ia32_compressstoresi256_mask, __builtin_ia32_compressstoresi128_mask,
6727 __builtin_ia32_expandloaddf256_mask, __builtin_ia32_expandloaddf128_mask,
6728 __builtin_ia32_expandloadsf256_mask, __builtin_ia32_expandloadsf128_mask,
6729 __builtin_ia32_expandloaddi256_mask, __builtin_ia32_expandloaddi128_mask,
6730 __builtin_ia32_expandloadsi256_mask, __builtin_ia32_expandloadsi128_mask,
6731 __builtin_ia32_expandloaddf256_maskz, __builtin_ia32_expandloaddf128_maskz,
6732 __builtin_ia32_expandloadsf256_maskz, __builtin_ia32_expandloadsf128_maskz,
6733 __builtin_ia32_expandloaddi256_maskz, __builtin_ia32_expandloaddi128_maskz,
6734 __builtin_ia32_expandloadsi256_maskz, __builtin_ia32_expandloadsi128_maskz,
6735 __builtin_ia32_pmovqd256mem_mask, __builtin_ia32_pmovqd128mem_mask,
6736 __builtin_ia32_pmovsqd256mem_mask, __builtin_ia32_pmovsqd128mem_mask,
6737 __builtin_ia32_pmovusqd256mem_mask, __builtin_ia32_pmovusqd128mem_mask,
6738 __builtin_ia32_pmovqw256mem_mask, __builtin_ia32_pmovqw128mem_mask,
6739 __builtin_ia32_pmovsqw256mem_mask, __builtin_ia32_pmovsqw128mem_mask,
6740 __builtin_ia32_pmovusqw256mem_mask, __builtin_ia32_pmovusqw128mem_mask,
6741 __builtin_ia32_pmovqb256mem_mask, __builtin_ia32_pmovqb128mem_mask,
6742 __builtin_ia32_pmovsqb256mem_mask, __builtin_ia32_pmovsqb128mem_mask,
6743 __builtin_ia32_pmovusqb256mem_mask, __builtin_ia32_pmovusqb128mem_mask,
6744 __builtin_ia32_pmovdb256mem_mask, __builtin_ia32_pmovdb128mem_mask,
6745 __builtin_ia32_pmovsdb256mem_mask, __builtin_ia32_pmovsdb128mem_mask,
6746 __builtin_ia32_pmovusdb256mem_mask, __builtin_ia32_pmovusdb128mem_mask,
6747 __builtin_ia32_pmovdw256mem_mask, __builtin_ia32_pmovdw128mem_mask,
6748 __builtin_ia32_pmovsdw256mem_mask, __builtin_ia32_pmovsdw128mem_mask,
6749 __builtin_ia32_pmovusdw256mem_mask, __builtin_ia32_pmovusdw128mem_mask,
6750 __builtin_ia32_palignr256_mask, __builtin_ia32_palignr128_mask,
6751 __builtin_ia32_movdqa64_256_mask, __builtin_ia32_movdqa64_128_mask,
6752 __builtin_ia32_movdqa32_256_mask, __builtin_ia32_movdqa32_128_mask,
6753 __builtin_ia32_movapd256_mask, __builtin_ia32_movapd128_mask,
6754 __builtin_ia32_movaps256_mask, __builtin_ia32_movaps128_mask,
6755 __builtin_ia32_movdquhi256_mask, __builtin_ia32_movdquhi128_mask,
6756 __builtin_ia32_movdquqi256_mask, __builtin_ia32_movdquqi128_mask,
6757 __builtin_ia32_minps_mask, __builtin_ia32_maxps_mask,
6758 __builtin_ia32_minpd_mask, __builtin_ia32_maxpd_mask,
6759 __builtin_ia32_maxpd256_mask, __builtin_ia32_maxps256_mask,
6760 __builtin_ia32_minpd256_mask, __builtin_ia32_minps256_mask,
6761 __builtin_ia32_mulps_mask, __builtin_ia32_divps_mask,
6762 __builtin_ia32_mulpd_mask, __builtin_ia32_divpd_mask,
6763 __builtin_ia32_divpd256_mask, __builtin_ia32_divps256_mask,
6764 __builtin_ia32_mulpd256_mask, __builtin_ia32_mulps256_mask,
6765 __builtin_ia32_addpd128_mask, __builtin_ia32_addpd256_mask,
6766 __builtin_ia32_addps128_mask, __builtin_ia32_addps256_mask,
6767 __builtin_ia32_subpd128_mask, __builtin_ia32_subpd256_mask,
6768 __builtin_ia32_subps128_mask, __builtin_ia32_subps256_mask,
6769 __builtin_ia32_xorpd256_mask, __builtin_ia32_xorpd128_mask,
6770 __builtin_ia32_xorps256_mask, __builtin_ia32_xorps128_mask,
6771 __builtin_ia32_orpd256_mask, __builtin_ia32_orpd128_mask,
6772 __builtin_ia32_orps256_mask, __builtin_ia32_orps128_mask,
6773 __builtin_ia32_broadcastf32x2_256_mask, __builtin_ia32_broadcasti32x2_256_mask,
6774 __builtin_ia32_broadcasti32x2_128_mask, __builtin_ia32_broadcastf64x2_256_mask,
6775 __builtin_ia32_broadcasti64x2_256_mask, __builtin_ia32_broadcastf32x4_256_mask,
6776 __builtin_ia32_broadcasti32x4_256_mask, __builtin_ia32_extractf32x4_256_mask,
6777 __builtin_ia32_extracti32x4_256_mask, __builtin_ia32_dbpsadbw256_mask,
6778 __builtin_ia32_dbpsadbw128_mask, __builtin_ia32_cvttpd2qq256_mask,
6779 __builtin_ia32_cvttpd2qq128_mask, __builtin_ia32_cvttpd2uqq256_mask,
6780 __builtin_ia32_cvttpd2uqq128_mask, __builtin_ia32_cvtpd2qq256_mask,
6781 __builtin_ia32_cvtpd2qq128_mask, __builtin_ia32_cvtpd2uqq256_mask,
6782 __builtin_ia32_cvtpd2uqq128_mask, __builtin_ia32_cvtpd2udq256_mask,
6783 __builtin_ia32_cvtpd2udq128_mask, __builtin_ia32_cvttps2qq256_mask,
6784 __builtin_ia32_cvttps2qq128_mask, __builtin_ia32_cvttps2uqq256_mask,
6785 __builtin_ia32_cvttps2uqq128_mask, __builtin_ia32_cvttps2dq256_mask,
6786 __builtin_ia32_cvttps2dq128_mask, __builtin_ia32_cvttps2udq256_mask,
6787 __builtin_ia32_cvttps2udq128_mask, __builtin_ia32_cvttpd2dq256_mask,
6788 __builtin_ia32_cvttpd2dq128_mask, __builtin_ia32_cvttpd2udq256_mask,
6789 __builtin_ia32_cvttpd2udq128_mask, __builtin_ia32_cvtpd2dq256_mask,
6790 __builtin_ia32_cvtpd2dq128_mask, __builtin_ia32_cvtdq2pd256_mask,
6791 __builtin_ia32_cvtdq2pd128_mask, __builtin_ia32_cvtudq2pd256_mask,
6792 __builtin_ia32_cvtudq2pd128_mask, __builtin_ia32_cvtdq2ps256_mask,
6793 __builtin_ia32_cvtdq2ps128_mask, __builtin_ia32_cvtudq2ps256_mask,
6794 __builtin_ia32_cvtudq2ps128_mask, __builtin_ia32_cvtps2pd256_mask,
6795 __builtin_ia32_cvtps2pd128_mask, __builtin_ia32_pbroadcastb256_mask,
6796 __builtin_ia32_pbroadcastb256_gpr_mask, __builtin_ia32_pbroadcastb128_mask,
6797 __builtin_ia32_pbroadcastb128_gpr_mask, __builtin_ia32_pbroadcastw256_mask,
6798 __builtin_ia32_pbroadcastw256_gpr_mask, __builtin_ia32_pbroadcastw128_mask,
6799 __builtin_ia32_pbroadcastw128_gpr_mask, __builtin_ia32_pbroadcastd256_mask,
6800 __builtin_ia32_pbroadcastd256_gpr_mask, __builtin_ia32_pbroadcastd128_mask,
6801 __builtin_ia32_pbroadcastd128_gpr_mask, __builtin_ia32_pbroadcastq256_mask,
6802 __builtin_ia32_pbroadcastq256_gpr_mask, __builtin_ia32_pbroadcastq256_mem_mask,
6803 __builtin_ia32_pbroadcastq128_mask, __builtin_ia32_pbroadcastq128_gpr_mask,
6804 __builtin_ia32_pbroadcastq128_mem_mask, __builtin_ia32_broadcastss256_mask,
6805 __builtin_ia32_broadcastss128_mask, __builtin_ia32_broadcastsd256_mask,
6806 __builtin_ia32_extractf64x2_256_mask, __builtin_ia32_extracti64x2_256_mask,
6807 __builtin_ia32_insertf32x4_256_mask, __builtin_ia32_inserti32x4_256_mask,
6808 __builtin_ia32_pmovsxbw256_mask, __builtin_ia32_pmovsxbw128_mask,
6809 __builtin_ia32_pmovsxbd256_mask, __builtin_ia32_pmovsxbd128_mask,
6810 __builtin_ia32_pmovsxbq256_mask, __builtin_ia32_pmovsxbq128_mask,
6811 __builtin_ia32_pmovsxwd256_mask, __builtin_ia32_pmovsxwd128_mask,
6812 __builtin_ia32_pmovsxwq256_mask, __builtin_ia32_pmovsxwq128_mask,
6813 __builtin_ia32_pmovsxdq256_mask, __builtin_ia32_pmovsxdq128_mask,
6814 __builtin_ia32_pmovzxbw256_mask, __builtin_ia32_pmovzxbw128_mask,
6815 __builtin_ia32_pmovzxbd256_mask, __builtin_ia32_pmovzxbd128_mask,
6816 __builtin_ia32_pmovzxbq256_mask, __builtin_ia32_pmovzxbq128_mask,
6817 __builtin_ia32_pmovzxwd256_mask, __builtin_ia32_pmovzxwd128_mask,
6818 __builtin_ia32_pmovzxwq256_mask, __builtin_ia32_pmovzxwq128_mask,
6819 __builtin_ia32_pmovzxdq256_mask, __builtin_ia32_pmovzxdq128_mask,
6820 __builtin_ia32_reducepd256_mask, __builtin_ia32_reducepd128_mask,
6821 __builtin_ia32_reduceps256_mask, __builtin_ia32_reduceps128_mask,
6822 __builtin_ia32_reducesd, __builtin_ia32_reducess,
6823 __builtin_ia32_permvarhi256_mask, __builtin_ia32_permvarhi128_mask,
6824 __builtin_ia32_vpermt2varhi256_mask, __builtin_ia32_vpermt2varhi256_maskz,
6825 __builtin_ia32_vpermt2varhi128_mask, __builtin_ia32_vpermt2varhi128_maskz,
6826 __builtin_ia32_vpermi2varhi256_mask, __builtin_ia32_vpermi2varhi128_mask,
6827 __builtin_ia32_rcp14pd256_mask, __builtin_ia32_rcp14pd128_mask,
6828 __builtin_ia32_rcp14ps256_mask, __builtin_ia32_rcp14ps128_mask,
6829 __builtin_ia32_rsqrt14pd256_mask, __builtin_ia32_rsqrt14pd128_mask,
6830 __builtin_ia32_rsqrt14ps256_mask, __builtin_ia32_rsqrt14ps128_mask,
6831 __builtin_ia32_sqrtpd256_mask, __builtin_ia32_sqrtpd128_mask,
6832 __builtin_ia32_sqrtps256_mask, __builtin_ia32_sqrtps128_mask,
6833 __builtin_ia32_paddb128_mask, __builtin_ia32_paddw128_mask,
6834 __builtin_ia32_paddd128_mask, __builtin_ia32_paddq128_mask,
6835 __builtin_ia32_psubb128_mask, __builtin_ia32_psubw128_mask,
6836 __builtin_ia32_psubd128_mask, __builtin_ia32_psubq128_mask,
6837 __builtin_ia32_paddsb128_mask, __builtin_ia32_paddsw128_mask,
6838 __builtin_ia32_psubsb128_mask, __builtin_ia32_psubsw128_mask,
6839 __builtin_ia32_paddusb128_mask, __builtin_ia32_paddusw128_mask,
6840 __builtin_ia32_psubusb128_mask, __builtin_ia32_psubusw128_mask,
6841 __builtin_ia32_paddb256_mask, __builtin_ia32_paddw256_mask,
6842 __builtin_ia32_paddd256_mask, __builtin_ia32_paddq256_mask,
6843 __builtin_ia32_paddsb256_mask, __builtin_ia32_paddsw256_mask,
6844 __builtin_ia32_paddusb256_mask, __builtin_ia32_paddusw256_mask,
6845 __builtin_ia32_psubb256_mask, __builtin_ia32_psubw256_mask,
6846 __builtin_ia32_psubd256_mask, __builtin_ia32_psubq256_mask,
6847 __builtin_ia32_psubsb256_mask, __builtin_ia32_psubsw256_mask,
6848 __builtin_ia32_psubusb256_mask, __builtin_ia32_psubusw256_mask,
6849 __builtin_ia32_shuf_f64x2_256_mask, __builtin_ia32_shuf_i64x2_256_mask,
6850 __builtin_ia32_shuf_i32x4_256_mask, __builtin_ia32_shuf_f32x4_256_mask,
6851 __builtin_ia32_pmovwb128_mask, __builtin_ia32_pmovwb256_mask,
6852 __builtin_ia32_pmovswb128_mask, __builtin_ia32_pmovswb256_mask,
6853 __builtin_ia32_pmovuswb128_mask, __builtin_ia32_pmovuswb256_mask,
6854 __builtin_ia32_pmovdb128_mask, __builtin_ia32_pmovdb256_mask,
6855 __builtin_ia32_pmovsdb128_mask, __builtin_ia32_pmovsdb256_mask,
6856 __builtin_ia32_pmovusdb128_mask, __builtin_ia32_pmovusdb256_mask,
6857 __builtin_ia32_pmovdw128_mask, __builtin_ia32_pmovdw256_mask,
6858 __builtin_ia32_pmovsdw128_mask, __builtin_ia32_pmovsdw256_mask,
6859 __builtin_ia32_pmovusdw128_mask, __builtin_ia32_pmovusdw256_mask,
6860 __builtin_ia32_pmovqb128_mask, __builtin_ia32_pmovqb256_mask,
6861 __builtin_ia32_pmovsqb128_mask, __builtin_ia32_pmovsqb256_mask,
6862 __builtin_ia32_pmovusqb128_mask, __builtin_ia32_pmovusqb256_mask,
6863 __builtin_ia32_pmovqw128_mask, __builtin_ia32_pmovqw256_mask,
6864 __builtin_ia32_pmovsqw128_mask, __builtin_ia32_pmovsqw256_mask,
6865 __builtin_ia32_pmovusqw128_mask, __builtin_ia32_pmovusqw256_mask,
6866 __builtin_ia32_pmovqd128_mask, __builtin_ia32_pmovqd256_mask,
6867 __builtin_ia32_pmovsqd128_mask, __builtin_ia32_pmovsqd256_mask,
6868 __builtin_ia32_pmovusqd128_mask, __builtin_ia32_pmovusqd256_mask,
6869 __builtin_ia32_rangepd256_mask, __builtin_ia32_rangepd128_mask,
6870 __builtin_ia32_rangeps256_mask, __builtin_ia32_rangeps128_mask,
6871 __builtin_ia32_getexpps256_mask, __builtin_ia32_getexppd256_mask,
6872 __builtin_ia32_getexpps128_mask, __builtin_ia32_getexppd128_mask,
6873 __builtin_ia32_fixupimmpd256, __builtin_ia32_fixupimmpd256_mask,
6874 __builtin_ia32_fixupimmpd256_maskz, __builtin_ia32_fixupimmps256,
6875 __builtin_ia32_fixupimmps256_mask, __builtin_ia32_fixupimmps256_maskz,
6876 __builtin_ia32_fixupimmpd128, __builtin_ia32_fixupimmpd128_mask,
6877 __builtin_ia32_fixupimmpd128_maskz, __builtin_ia32_fixupimmps128,
6878 __builtin_ia32_fixupimmps128_mask, __builtin_ia32_fixupimmps128_maskz,
6879 __builtin_ia32_pabsq256_mask, __builtin_ia32_pabsq128_mask,
6880 __builtin_ia32_pabsd256_mask, __builtin_ia32_pabsd128_mask,
6881 __builtin_ia32_pmulhrsw256_mask, __builtin_ia32_pmulhrsw128_mask,
6882 __builtin_ia32_pmulhuw128_mask, __builtin_ia32_pmulhuw256_mask,
6883 __builtin_ia32_pmulhw256_mask, __builtin_ia32_pmulhw128_mask,
6884 __builtin_ia32_pmullw256_mask, __builtin_ia32_pmullw128_mask,
6885 __builtin_ia32_pmullq256_mask, __builtin_ia32_pmullq128_mask,
6886 __builtin_ia32_andpd256_mask, __builtin_ia32_andpd128_mask,
6887 __builtin_ia32_andps256_mask, __builtin_ia32_andps128_mask,
6888 __builtin_ia32_andnpd256_mask, __builtin_ia32_andnpd128_mask,
6889 __builtin_ia32_andnps256_mask, __builtin_ia32_andnps128_mask,
6890 __builtin_ia32_psllwi128_mask, __builtin_ia32_pslldi128_mask,
6891 __builtin_ia32_psllqi128_mask, __builtin_ia32_psllw128_mask,
6892 __builtin_ia32_pslld128_mask, __builtin_ia32_psllq128_mask,
6893 __builtin_ia32_psllwi256_mask, __builtin_ia32_psllw256_mask,
6894 __builtin_ia32_pslldi256_mask, __builtin_ia32_pslld256_mask,
6895 __builtin_ia32_psllqi256_mask, __builtin_ia32_psllq256_mask,
6896 __builtin_ia32_psradi128_mask, __builtin_ia32_psrad128_mask,
6897 __builtin_ia32_psradi256_mask, __builtin_ia32_psrad256_mask,
6898 __builtin_ia32_psraqi128_mask, __builtin_ia32_psraq128_mask,
6899 __builtin_ia32_psraqi256_mask, __builtin_ia32_psraq256_mask,
6900 __builtin_ia32_pandd256_mask, __builtin_ia32_pandd128_mask,
6901 __builtin_ia32_psrldi128_mask, __builtin_ia32_psrld128_mask,
6902 __builtin_ia32_psrldi256_mask, __builtin_ia32_psrld256_mask,
6903 __builtin_ia32_psrlqi128_mask, __builtin_ia32_psrlq128_mask,
6904 __builtin_ia32_psrlqi256_mask, __builtin_ia32_psrlq256_mask,
6905 __builtin_ia32_pandq256_mask, __builtin_ia32_pandq128_mask,
6906 __builtin_ia32_pandnd256_mask, __builtin_ia32_pandnd128_mask,
6907 __builtin_ia32_pandnq256_mask, __builtin_ia32_pandnq128_mask,
6908 __builtin_ia32_pord256_mask, __builtin_ia32_pord128_mask,
6909 __builtin_ia32_porq256_mask, __builtin_ia32_porq128_mask,
6910 __builtin_ia32_pxord256_mask, __builtin_ia32_pxord128_mask,
6911 __builtin_ia32_pxorq256_mask, __builtin_ia32_pxorq128_mask,
6912 __builtin_ia32_packsswb256_mask, __builtin_ia32_packsswb128_mask,
6913 __builtin_ia32_packuswb256_mask, __builtin_ia32_packuswb128_mask,
6914 __builtin_ia32_rndscaleps_256_mask, __builtin_ia32_rndscalepd_256_mask,
6915 __builtin_ia32_rndscaleps_128_mask, __builtin_ia32_rndscalepd_128_mask,
6916 __builtin_ia32_pternlogq256_mask, __builtin_ia32_pternlogq256_maskz,
6917 __builtin_ia32_pternlogd256_mask, __builtin_ia32_pternlogd256_maskz,
6918 __builtin_ia32_pternlogq128_mask, __builtin_ia32_pternlogq128_maskz,
6919 __builtin_ia32_pternlogd128_mask, __builtin_ia32_pternlogd128_maskz,
6920 __builtin_ia32_scalefpd256_mask, __builtin_ia32_scalefps256_mask,
6921 __builtin_ia32_scalefpd128_mask, __builtin_ia32_scalefps128_mask,
6922 __builtin_ia32_vfmaddpd256_mask, __builtin_ia32_vfmaddpd256_mask3,
6923 __builtin_ia32_vfmaddpd256_maskz, __builtin_ia32_vfmaddpd128_mask,
6924 __builtin_ia32_vfmaddpd128_mask3, __builtin_ia32_vfmaddpd128_maskz,
6925 __builtin_ia32_vfmaddps256_mask, __builtin_ia32_vfmaddps256_mask3,
6926 __builtin_ia32_vfmaddps256_maskz, __builtin_ia32_vfmaddps128_mask,
6927 __builtin_ia32_vfmaddps128_mask3, __builtin_ia32_vfmaddps128_maskz,
6928 __builtin_ia32_vfmsubpd256_mask3, __builtin_ia32_vfmsubpd128_mask3,
6929 __builtin_ia32_vfmsubps256_mask3, __builtin_ia32_vfmsubps128_mask3,
6930 __builtin_ia32_vfnmaddpd256_mask, __builtin_ia32_vfnmaddpd128_mask,
6931 __builtin_ia32_vfnmaddps256_mask, __builtin_ia32_vfnmaddps128_mask,
6932 __builtin_ia32_vfnmsubpd256_mask, __builtin_ia32_vfnmsubpd256_mask3,
6933 __builtin_ia32_vfnmsubpd128_mask, __builtin_ia32_vfnmsubpd128_mask3,
6934 __builtin_ia32_vfnmsubps256_mask, __builtin_ia32_vfnmsubps256_mask3,
6935 __builtin_ia32_vfnmsubps128_mask, __builtin_ia32_vfnmsubps128_mask3,
6936 __builtin_ia32_vfmaddsubpd256_mask, __builtin_ia32_vfmaddsubpd256_mask3,
6937 __builtin_ia32_vfmaddsubpd256_maskz, __builtin_ia32_vfmaddsubpd128_mask,
6938 __builtin_ia32_vfmaddsubpd128_mask3, __builtin_ia32_vfmaddsubpd128_maskz,
6939 __builtin_ia32_vfmaddsubps256_mask, __builtin_ia32_vfmaddsubps256_mask3,
6940 __builtin_ia32_vfmaddsubps256_maskz, __builtin_ia32_vfmaddsubps128_mask,
6941 __builtin_ia32_vfmaddsubps128_mask3, __builtin_ia32_vfmaddsubps128_maskz,
6942 __builtin_ia32_vfmsubaddpd256_mask3, __builtin_ia32_vfmsubaddpd128_mask3,
6943 __builtin_ia32_vfmsubaddps256_mask3, __builtin_ia32_vfmsubaddps128_mask3,
6944 __builtin_ia32_insertf64x2_256_mask, __builtin_ia32_inserti64x2_256_mask,
6945 __builtin_ia32_psrav16hi_mask, __builtin_ia32_psrav8hi_mask,
6946 __builtin_ia32_pmaddubsw256_mask, __builtin_ia32_pmaddubsw128_mask,
6947 __builtin_ia32_pmaddwd256_mask, __builtin_ia32_pmaddwd128_mask,
6948 __builtin_ia32_psrlv16hi_mask, __builtin_ia32_psrlv8hi_mask,
6949 __builtin_ia32_cvtps2dq256_mask, __builtin_ia32_cvtps2dq128_mask,
6950 __builtin_ia32_cvtps2udq256_mask, __builtin_ia32_cvtps2udq128_mask,
6951 __builtin_ia32_cvtps2qq256_mask, __builtin_ia32_cvtps2qq128_mask,
6952 __builtin_ia32_cvtps2uqq256_mask, __builtin_ia32_cvtps2uqq128_mask,
6953 __builtin_ia32_getmantps256_mask, __builtin_ia32_getmantps128_mask,
6954 __builtin_ia32_getmantpd256_mask, __builtin_ia32_getmantpd128_mask,
6955 __builtin_ia32_movddup256_mask, __builtin_ia32_movddup128_mask,
6956 __builtin_ia32_movshdup256_mask, __builtin_ia32_movshdup128_mask,
6957 __builtin_ia32_movsldup256_mask, __builtin_ia32_movsldup128_mask,
6958 __builtin_ia32_cvtqq2ps256_mask, __builtin_ia32_cvtqq2ps128_mask,
6959 __builtin_ia32_cvtuqq2ps256_mask, __builtin_ia32_cvtuqq2ps128_mask,
6960 __builtin_ia32_cvtqq2pd256_mask, __builtin_ia32_cvtqq2pd128_mask,
6961 __builtin_ia32_cvtuqq2pd256_mask, __builtin_ia32_cvtuqq2pd128_mask,
6962 __builtin_ia32_vpermt2varq256_mask, __builtin_ia32_vpermt2varq256_maskz,
6963 __builtin_ia32_vpermt2vard256_mask, __builtin_ia32_vpermt2vard256_maskz,
6964 __builtin_ia32_vpermi2varq256_mask, __builtin_ia32_vpermi2vard256_mask,
6965 __builtin_ia32_vpermt2varpd256_mask, __builtin_ia32_vpermt2varpd256_maskz,
6966 __builtin_ia32_vpermt2varps256_mask, __builtin_ia32_vpermt2varps256_maskz,
6967 __builtin_ia32_vpermi2varpd256_mask, __builtin_ia32_vpermi2varps256_mask,
6968 __builtin_ia32_vpermt2varq128_mask, __builtin_ia32_vpermt2varq128_maskz,
6969 __builtin_ia32_vpermt2vard128_mask, __builtin_ia32_vpermt2vard128_maskz,
6970 __builtin_ia32_vpermi2varq128_mask, __builtin_ia32_vpermi2vard128_mask,
6971 __builtin_ia32_vpermt2varpd128_mask, __builtin_ia32_vpermt2varpd128_maskz,
6972 __builtin_ia32_vpermt2varps128_mask, __builtin_ia32_vpermt2varps128_maskz,
6973 __builtin_ia32_vpermi2varpd128_mask, __builtin_ia32_vpermi2varps128_mask,
6974 __builtin_ia32_pshufb256_mask, __builtin_ia32_pshufb128_mask,
6975 __builtin_ia32_pshufhw256_mask, __builtin_ia32_pshufhw128_mask,
6976 __builtin_ia32_pshuflw256_mask, __builtin_ia32_pshuflw128_mask,
6977 __builtin_ia32_pshufd256_mask, __builtin_ia32_pshufd128_mask,
6978 __builtin_ia32_shufpd256_mask, __builtin_ia32_shufpd128_mask,
6979 __builtin_ia32_shufps256_mask, __builtin_ia32_shufps128_mask,
6980 __builtin_ia32_prolvq256_mask, __builtin_ia32_prolvq128_mask,
6981 __builtin_ia32_prolq256_mask, __builtin_ia32_prolq128_mask,
6982 __builtin_ia32_prorvq256_mask, __builtin_ia32_prorvq128_mask,
6983 __builtin_ia32_prorq256_mask, __builtin_ia32_prorq128_mask,
6984 __builtin_ia32_psravq128_mask, __builtin_ia32_psravq256_mask,
6985 __builtin_ia32_psllv4di_mask, __builtin_ia32_psllv2di_mask,
6986 __builtin_ia32_psllv8si_mask, __builtin_ia32_psllv4si_mask,
6987 __builtin_ia32_psrav8si_mask, __builtin_ia32_psrav4si_mask,
6988 __builtin_ia32_psrlv4di_mask, __builtin_ia32_psrlv2di_mask,
6989 __builtin_ia32_psrlv8si_mask, __builtin_ia32_psrlv4si_mask,
6990 __builtin_ia32_psrawi256_mask, __builtin_ia32_psraw256_mask,
6991 __builtin_ia32_psrawi128_mask, __builtin_ia32_psraw128_mask,
6992 __builtin_ia32_psrlwi256_mask, __builtin_ia32_psrlw256_mask,
6993 __builtin_ia32_psrlwi128_mask, __builtin_ia32_psrlw128_mask,
6994 __builtin_ia32_prorvd256_mask, __builtin_ia32_prolvd256_mask,
6995 __builtin_ia32_prord256_mask, __builtin_ia32_prold256_mask,
6996 __builtin_ia32_prorvd128_mask, __builtin_ia32_prolvd128_mask,
6997 __builtin_ia32_prord128_mask, __builtin_ia32_prold128_mask,
6998 __builtin_ia32_fpclasspd256_mask, __builtin_ia32_fpclasspd128_mask,
6999 __builtin_ia32_fpclasssd, __builtin_ia32_fpclassps256_mask,
7000 __builtin_ia32_fpclassps128_mask, __builtin_ia32_fpclassss,
7001 __builtin_ia32_cvtb2mask128, __builtin_ia32_cvtb2mask256,
7002 __builtin_ia32_cvtw2mask128, __builtin_ia32_cvtw2mask256,
7003 __builtin_ia32_cvtd2mask128, __builtin_ia32_cvtd2mask256,
7004 __builtin_ia32_cvtq2mask128, __builtin_ia32_cvtq2mask256,
7005 __builtin_ia32_cvtmask2b128, __builtin_ia32_cvtmask2b256,
7006 __builtin_ia32_cvtmask2w128, __builtin_ia32_cvtmask2w256,
7007 __builtin_ia32_cvtmask2d128, __builtin_ia32_cvtmask2d256,
7008 __builtin_ia32_cvtmask2q128, __builtin_ia32_cvtmask2q256,
7009 __builtin_ia32_pcmpeqb128_mask, __builtin_ia32_pcmpeqb256_mask,
7010 __builtin_ia32_pcmpeqw128_mask, __builtin_ia32_pcmpeqw256_mask,
7011 __builtin_ia32_pcmpeqd128_mask, __builtin_ia32_pcmpeqd256_mask,
7012 __builtin_ia32_pcmpeqq128_mask, __builtin_ia32_pcmpeqq256_mask,
7013 __builtin_ia32_pcmpgtb128_mask, __builtin_ia32_pcmpgtb256_mask,
7014 __builtin_ia32_pcmpgtw128_mask, __builtin_ia32_pcmpgtw256_mask,
7015 __builtin_ia32_pcmpgtd128_mask, __builtin_ia32_pcmpgtd256_mask,
7016 __builtin_ia32_pcmpgtq128_mask, __builtin_ia32_pcmpgtq256_mask,
7017 __builtin_ia32_ptestmb128, __builtin_ia32_ptestmb256,
7018 __builtin_ia32_ptestmw128, __builtin_ia32_ptestmw256,
7019 __builtin_ia32_ptestmd128, __builtin_ia32_ptestmd256,
7020 __builtin_ia32_ptestmq128, __builtin_ia32_ptestmq256,
7021 __builtin_ia32_ptestnmb128, __builtin_ia32_ptestnmb256,
7022 __builtin_ia32_ptestnmw128, __builtin_ia32_ptestnmw256,
7023 __builtin_ia32_ptestnmd128, __builtin_ia32_ptestnmd256,
7024 __builtin_ia32_ptestnmq128, __builtin_ia32_ptestnmq256,
7025 __builtin_ia32_broadcastmb128, __builtin_ia32_broadcastmb256,
7026 __builtin_ia32_broadcastmw128, __builtin_ia32_broadcastmw256,
7027 __builtin_ia32_compressdf256_mask, __builtin_ia32_compressdf128_mask,
7028 __builtin_ia32_compresssf256_mask, __builtin_ia32_compresssf128_mask,
7029 __builtin_ia32_compressdi256_mask, __builtin_ia32_compressdi128_mask,
7030 __builtin_ia32_compresssi256_mask, __builtin_ia32_compresssi128_mask,
7031 __builtin_ia32_expanddf256_mask, __builtin_ia32_expanddf128_mask,
7032 __builtin_ia32_expandsf256_mask, __builtin_ia32_expandsf128_mask,
7033 __builtin_ia32_expanddi256_mask, __builtin_ia32_expanddi128_mask,
7034 __builtin_ia32_expandsi256_mask, __builtin_ia32_expandsi128_mask,
7035 __builtin_ia32_expanddf256_maskz, __builtin_ia32_expanddf128_maskz,
7036 __builtin_ia32_expandsf256_maskz, __builtin_ia32_expandsf128_maskz,
7037 __builtin_ia32_expanddi256_maskz, __builtin_ia32_expanddi128_maskz,
7038 __builtin_ia32_expandsi256_maskz, __builtin_ia32_expandsi128_maskz,
7039 __builtin_ia32_pmaxsd256_mask, __builtin_ia32_pminsd256_mask,
7040 __builtin_ia32_pmaxud256_mask, __builtin_ia32_pminud256_mask,
7041 __builtin_ia32_pmaxsd128_mask, __builtin_ia32_pminsd128_mask,
7042 __builtin_ia32_pmaxud128_mask, __builtin_ia32_pminud128_mask,
7043 __builtin_ia32_pmaxsq256_mask, __builtin_ia32_pminsq256_mask,
7044 __builtin_ia32_pmaxuq256_mask, __builtin_ia32_pminuq256_mask,
7045 __builtin_ia32_pmaxsq128_mask, __builtin_ia32_pminsq128_mask,
7046 __builtin_ia32_pmaxuq128_mask, __builtin_ia32_pminuq128_mask,
7047 __builtin_ia32_pminsb256_mask, __builtin_ia32_pminub256_mask,
7048 __builtin_ia32_pmaxsb256_mask, __builtin_ia32_pmaxub256_mask,
7049 __builtin_ia32_pminsb128_mask, __builtin_ia32_pminub128_mask,
7050 __builtin_ia32_pmaxsb128_mask, __builtin_ia32_pmaxub128_mask,
7051 __builtin_ia32_pminsw256_mask, __builtin_ia32_pminuw256_mask,
7052 __builtin_ia32_pmaxsw256_mask, __builtin_ia32_pmaxuw256_mask,
7053 __builtin_ia32_pminsw128_mask, __builtin_ia32_pminuw128_mask,
7054 __builtin_ia32_pmaxsw128_mask, __builtin_ia32_pmaxuw128_mask,
7055 __builtin_ia32_vpconflictdi_256_mask, __builtin_ia32_vpconflictsi_256_mask,
7056 __builtin_ia32_vplzcntq_256_mask, __builtin_ia32_vplzcntd_256_mask,
7057 __builtin_ia32_unpckhpd256_mask, __builtin_ia32_unpckhpd128_mask,
7058 __builtin_ia32_unpckhps256_mask, __builtin_ia32_unpckhps128_mask,
7059 __builtin_ia32_unpcklpd256_mask, __builtin_ia32_unpcklpd128_mask,
7060 __builtin_ia32_unpcklps256_mask, __builtin_ia32_vpconflictdi_128_mask,
7061 __builtin_ia32_vpconflictsi_128_mask, __builtin_ia32_vplzcntq_128_mask,
7062 __builtin_ia32_vplzcntd_128_mask, __builtin_ia32_unpcklps128_mask,
7063 __builtin_ia32_alignd256_mask, __builtin_ia32_alignq256_mask,
7064 __builtin_ia32_alignd128_mask, __builtin_ia32_alignq128_mask,
7065 __builtin_ia32_vcvtps2ph256_mask, __builtin_ia32_vcvtps2ph_mask,
7066 __builtin_ia32_vcvtph2ps_mask, __builtin_ia32_vcvtph2ps256_mask,
7067 __builtin_ia32_punpckhdq128_mask, __builtin_ia32_punpckhdq256_mask,
7068 __builtin_ia32_punpckhqdq128_mask, __builtin_ia32_punpckhqdq256_mask,
7069 __builtin_ia32_punpckldq128_mask, __builtin_ia32_punpckldq256_mask,
7070 __builtin_ia32_punpcklqdq128_mask, __builtin_ia32_punpcklqdq256_mask,
7071 __builtin_ia32_punpckhbw128_mask, __builtin_ia32_punpckhbw256_mask,
7072 __builtin_ia32_punpckhwd128_mask, __builtin_ia32_punpckhwd256_mask,
7073 __builtin_ia32_punpcklbw128_mask, __builtin_ia32_punpcklbw256_mask,
7074 __builtin_ia32_punpcklwd128_mask, __builtin_ia32_punpcklwd256_mask,
7075 __builtin_ia32_psllv16hi_mask, __builtin_ia32_psllv8hi_mask,
7076 __builtin_ia32_packssdw256_mask, __builtin_ia32_packssdw128_mask,
7077 __builtin_ia32_packusdw256_mask, __builtin_ia32_packusdw128_mask,
7078 __builtin_ia32_pavgb256_mask, __builtin_ia32_pavgw256_mask,
7079 __builtin_ia32_pavgb128_mask, __builtin_ia32_pavgw128_mask,
7080 __builtin_ia32_permvarsf256_mask, __builtin_ia32_permvardf256_mask,
7081 __builtin_ia32_permdf256_mask, __builtin_ia32_pabsb256_mask,
7082 __builtin_ia32_pabsb128_mask, __builtin_ia32_pabsw256_mask,
7083 __builtin_ia32_pabsw128_mask, __builtin_ia32_vpermilvarpd_mask,
7084 __builtin_ia32_vpermilvarps_mask, __builtin_ia32_vpermilvarpd256_mask,
7085 __builtin_ia32_vpermilvarps256_mask, __builtin_ia32_vpermilpd_mask,
7086 __builtin_ia32_vpermilps_mask, __builtin_ia32_vpermilpd256_mask,
7087 __builtin_ia32_vpermilps256_mask, __builtin_ia32_blendmq_256_mask,
7088 __builtin_ia32_blendmd_256_mask, __builtin_ia32_blendmpd_256_mask,
7089 __builtin_ia32_blendmps_256_mask, __builtin_ia32_blendmq_128_mask,
7090 __builtin_ia32_blendmd_128_mask, __builtin_ia32_blendmpd_128_mask,
7091 __builtin_ia32_blendmps_128_mask, __builtin_ia32_blendmw_256_mask,
7092 __builtin_ia32_blendmb_256_mask, __builtin_ia32_blendmw_128_mask,
7093 __builtin_ia32_blendmb_128_mask, __builtin_ia32_pmulld256_mask,
7094 __builtin_ia32_pmulld128_mask, __builtin_ia32_pmuludq256_mask,
7095 __builtin_ia32_pmuldq256_mask, __builtin_ia32_pmuldq128_mask,
7096 __builtin_ia32_pmuludq128_mask, __builtin_ia32_cvtpd2ps256_mask,
7097 __builtin_ia32_cvtpd2ps_mask, __builtin_ia32_permvarsi256_mask,
7098 __builtin_ia32_permvardi256_mask, __builtin_ia32_permdi256_mask,
7099 __builtin_ia32_cmpq256_mask, __builtin_ia32_cmpd256_mask,
7100 __builtin_ia32_ucmpq256_mask, __builtin_ia32_ucmpd256_mask,
7101 __builtin_ia32_cmpb256_mask, __builtin_ia32_cmpw256_mask,
7102 __builtin_ia32_ucmpb256_mask, __builtin_ia32_ucmpw256_mask,
7103 __builtin_ia32_cmppd256_mask, __builtin_ia32_cmpps256_mask,
7104 __builtin_ia32_cmpq128_mask, __builtin_ia32_cmpd128_mask,
7105 __builtin_ia32_ucmpq128_mask, __builtin_ia32_ucmpd128_mask,
7106 __builtin_ia32_cmpb128_mask, __builtin_ia32_cmpw128_mask,
7107 __builtin_ia32_ucmpb128_mask, __builtin_ia32_ucmpw128_mask,
7108 __builtin_ia32_cmppd128_mask, __builtin_ia32_cmpps128_mask,
7109 __builtin_ia32_broadcastf32x2_512_mask, __builtin_ia32_broadcasti32x2_512_mask,
7110 __builtin_ia32_broadcastf64x2_512_mask, __builtin_ia32_broadcasti64x2_512_mask,
7111 __builtin_ia32_broadcastf32x8_512_mask, __builtin_ia32_broadcasti32x8_512_mask,
7112 __builtin_ia32_extractf64x2_512_mask, __builtin_ia32_extractf32x8_mask,
7113 __builtin_ia32_extracti64x2_512_mask, __builtin_ia32_extracti32x8_mask,
7114 __builtin_ia32_reducepd512_mask, __builtin_ia32_reduceps512_mask,
7115 __builtin_ia32_pmullq512_mask, __builtin_ia32_xorpd512_mask,
7116 __builtin_ia32_xorps512_mask, __builtin_ia32_orpd512_mask,
7117 __builtin_ia32_orps512_mask, __builtin_ia32_andpd512_mask,
7118 __builtin_ia32_andps512_mask, __builtin_ia32_andnpd512_mask,
7119 __builtin_ia32_andnps512_mask, __builtin_ia32_insertf32x8_mask,
7120 __builtin_ia32_inserti32x8_mask, __builtin_ia32_insertf64x2_512_mask,
7121 __builtin_ia32_inserti64x2_512_mask, __builtin_ia32_fpclasspd512_mask,
7122 __builtin_ia32_fpclassps512_mask, __builtin_ia32_cvtd2mask512,
7123 __builtin_ia32_cvtq2mask512, __builtin_ia32_cvtmask2d512,
7124 __builtin_ia32_cvtmask2q512, __builtin_ia32_kunpcksi,
7125 __builtin_ia32_kunpckdi, __builtin_ia32_packusdw512_mask,
7126 __builtin_ia32_pslldq512, __builtin_ia32_psrldq512,
7127 __builtin_ia32_packssdw512_mask, __builtin_ia32_palignr512,
7128 __builtin_ia32_palignr512_mask, __builtin_ia32_movdquhi512_mask,
7129 __builtin_ia32_movdquqi512_mask, __builtin_ia32_psadbw512,
7130 __builtin_ia32_dbpsadbw512_mask, __builtin_ia32_pbroadcastb512_mask,
7131 __builtin_ia32_pbroadcastb512_gpr_mask, __builtin_ia32_pbroadcastw512_mask,
7132 __builtin_ia32_pbroadcastw512_gpr_mask, __builtin_ia32_pmovsxbw512_mask,
7133 __builtin_ia32_pmovzxbw512_mask, __builtin_ia32_permvarhi512_mask,
7134 __builtin_ia32_vpermt2varhi512_mask, __builtin_ia32_vpermt2varhi512_maskz,
7135 __builtin_ia32_vpermi2varhi512_mask, __builtin_ia32_pavgb512_mask,
7136 __builtin_ia32_pavgw512_mask, __builtin_ia32_paddb512_mask,
7137 __builtin_ia32_psubb512_mask, __builtin_ia32_psubsb512_mask,
7138 __builtin_ia32_paddsb512_mask, __builtin_ia32_psubusb512_mask,
7139 __builtin_ia32_paddusb512_mask, __builtin_ia32_psubw512_mask,
7140 __builtin_ia32_paddw512_mask, __builtin_ia32_psubsw512_mask,
7141 __builtin_ia32_paddsw512_mask, __builtin_ia32_psubusw512_mask,
7142 __builtin_ia32_paddusw512_mask, __builtin_ia32_pmaxuw512_mask,
7143 __builtin_ia32_pmaxsw512_mask, __builtin_ia32_pminuw512_mask,
7144 __builtin_ia32_pminsw512_mask, __builtin_ia32_pmaxub512_mask,
7145 __builtin_ia32_pmaxsb512_mask, __builtin_ia32_pminub512_mask,
7146 __builtin_ia32_pminsb512_mask, __builtin_ia32_pmovwb512_mask,
7147 __builtin_ia32_pmovswb512_mask, __builtin_ia32_pmovuswb512_mask,
7148 __builtin_ia32_pmulhrsw512_mask, __builtin_ia32_pmulhuw512_mask,
7149 __builtin_ia32_pmulhw512_mask, __builtin_ia32_pmullw512_mask,
7150 __builtin_ia32_psllwi512_mask, __builtin_ia32_psllw512_mask,
7151 __builtin_ia32_packsswb512_mask, __builtin_ia32_packuswb512_mask,
7152 __builtin_ia32_psrav32hi_mask, __builtin_ia32_pmaddubsw512_mask,
7153 __builtin_ia32_pmaddwd512_mask, __builtin_ia32_psrlv32hi_mask,
7154 __builtin_ia32_punpckhbw512_mask, __builtin_ia32_punpckhwd512_mask,
7155 __builtin_ia32_punpcklbw512_mask, __builtin_ia32_punpcklwd512_mask,
7156 __builtin_ia32_pshufb512_mask, __builtin_ia32_pshufhw512_mask,
7157 __builtin_ia32_pshuflw512_mask, __builtin_ia32_psrawi512_mask,
7158 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
7159 __builtin_ia32_psrlw512_mask, __builtin_ia32_cvtb2mask512,
7160 __builtin_ia32_cvtw2mask512, __builtin_ia32_cvtmask2b512,
7161 __builtin_ia32_cvtmask2w512, __builtin_ia32_pcmpeqb512_mask,
7162 __builtin_ia32_pcmpeqw512_mask, __builtin_ia32_pcmpgtb512_mask,
7163 __builtin_ia32_pcmpgtw512_mask, __builtin_ia32_ptestmb512,
7164 __builtin_ia32_ptestmw512, __builtin_ia32_ptestnmb512,
7165 __builtin_ia32_ptestnmw512, __builtin_ia32_psllv32hi_mask,
7166 __builtin_ia32_pabsb512_mask, __builtin_ia32_pabsw512_mask,
7167 __builtin_ia32_blendmw_512_mask, __builtin_ia32_blendmb_512_mask,
7168 __builtin_ia32_cmpb512_mask, __builtin_ia32_cmpw512_mask,
7169 __builtin_ia32_ucmpb512_mask, __builtin_ia32_ucmpw512_mask,
7170 __builtin_ia32_rangesd128_round, __builtin_ia32_rangess128_round,
7171 __builtin_ia32_cvtpd2qq512_mask, __builtin_ia32_cvtps2qq512_mask,
7172 __builtin_ia32_cvtpd2uqq512_mask, __builtin_ia32_cvtps2uqq512_mask,
7173 __builtin_ia32_cvtqq2ps512_mask, __builtin_ia32_cvtuqq2ps512_mask,
7174 __builtin_ia32_cvtqq2pd512_mask, __builtin_ia32_cvtuqq2pd512_mask,
7175 __builtin_ia32_cvttps2qq512_mask, __builtin_ia32_cvttps2uqq512_mask,
7176 __builtin_ia32_cvttpd2qq512_mask, __builtin_ia32_cvttpd2uqq512_mask,
7177 __builtin_ia32_rangeps512_mask, __builtin_ia32_rangepd512_mask.
7178 (ix86_expand_args_builtin): Handle HI_FTYPE_V16QI, SI_FTYPE_V32QI,
7179 DI_FTYPE_V64QI, V16QI_FTYPE_HI, V32QI_FTYPE_SI, V64QI_FTYPE_DI,
7180 V8HI_FTYPE_QI, V16HI_FTYPE_HI, V32HI_FTYPE_SI, V4SI_FTYPE_QI,
7181 V8SI_FTYPE_QI, V4SI_FTYPE_HI, V8SI_FTYPE_HI, QI_FTYPE_V8HI,
7182 HI_FTYPE_V16HI, SI_FTYPE_V32HI, QI_FTYPE_V4SI, QI_FTYPE_V8SI,
7183 HI_FTYPE_V16SI, QI_FTYPE_V2DI, QI_FTYPE_V4DI, QI_FTYPE_V8DI,
7184 V2DI_FTYPE_QI, V4DI_FTYPE_QI, V8DI_FTYPE_V64QI_V64QI,
7185 SI_FTYPE_SI_SI,DI_FTYPE_DI_DI, V8DI_FTYPE_V8DI_INT_CONVERT,
7186 QI_FTYPE_V4SF_INT, QI_FTYPE_V2DF_INT,
7187 V8SF_FTYPE_V4SF_V8SF_QI, V4DF_FTYPE_V2DF_V4DF_QI,
7188 V8SI_FTYPE_V4SI_V8SI_QI, V8SI_FTYPE_SI_V8SI_QI,
7189 V4SI_FTYPE_V4SI_V4SI_QI, V4SI_FTYPE_SI_V4SI_QI,
7190 V4DI_FTYPE_V2DI_V4DI_QI, V4DI_FTYPE_DI_V4DI_QI,
7191 V2DI_FTYPE_V2DI_V2DI_QI, V2DI_FTYPE_DI_V2DI_QI,
7192 V64QI_FTYPE_V64QI_V64QI_DI, V64QI_FTYPE_V16QI_V64QI_DI,
7193 V64QI_FTYPE_QI_V64QI_DI, V32QI_FTYPE_V32QI_V32QI_SI,
7194 V32QI_FTYPE_V16QI_V32QI_SI, V32QI_FTYPE_QI_V32QI_SI,
7195 V16QI_FTYPE_V16QI_V16QI_HI, V16QI_FTYPE_QI_V16QI_HI,
7196 V32HI_FTYPE_V8HI_V32HI_SI, V32HI_FTYPE_HI_V32HI_SI,
7197 V16HI_FTYPE_V8HI_V16HI_HI, V16HI_FTYPE_HI_V16HI_HI,
7198 V8HI_FTYPE_V8HI_V8HI_QI, V8HI_FTYPE_HI_V8HI_QI,
7199 V8SF_FTYPE_V8HI_V8SF_QI, V4SF_FTYPE_V8HI_V4SF_QI,
7200 V8SI_FTYPE_V8SF_V8SI_QI, V4SI_FTYPE_V4SF_V4SI_QI,
7201 V8DI_FTYPE_V8SF_V8DI_QI, V4DI_FTYPE_V4SF_V4DI_QI,
7202 V2DI_FTYPE_V4SF_V2DI_QI, V8SF_FTYPE_V8DI_V8SF_QI,
7203 V4SF_FTYPE_V4DI_V4SF_QI, V4SF_FTYPE_V2DI_V4SF_QI,
7204 V8DF_FTYPE_V8DI_V8DF_QI, V4DF_FTYPE_V4DI_V4DF_QI,
7205 V2DF_FTYPE_V2DI_V2DF_QI, V16QI_FTYPE_V8HI_V16QI_QI,
7206 V16QI_FTYPE_V16HI_V16QI_HI, V16QI_FTYPE_V4SI_V16QI_QI,
7207 V16QI_FTYPE_V8SI_V16QI_QI, V8HI_FTYPE_V4SI_V8HI_QI,
7208 V8HI_FTYPE_V8SI_V8HI_QI, V16QI_FTYPE_V2DI_V16QI_QI,
7209 V16QI_FTYPE_V4DI_V16QI_QI, V8HI_FTYPE_V2DI_V8HI_QI,
7210 V8HI_FTYPE_V4DI_V8HI_QI, V4SI_FTYPE_V2DI_V4SI_QI,
7211 V4SI_FTYPE_V4DI_V4SI_QI, V32QI_FTYPE_V32HI_V32QI_SI,
7212 HI_FTYPE_V16QI_V16QI_HI, SI_FTYPE_V32QI_V32QI_SI,
7213 DI_FTYPE_V64QI_V64QI_DI, QI_FTYPE_V8HI_V8HI_QI,
7214 HI_FTYPE_V16HI_V16HI_HI, SI_FTYPE_V32HI_V32HI_SI,
7215 QI_FTYPE_V4SI_V4SI_QI, QI_FTYPE_V8SI_V8SI_QI,
7216 QI_FTYPE_V2DI_V2DI_QI, QI_FTYPE_V4DI_V4DI_QI,
7217 V4SF_FTYPE_V2DF_V4SF_QI, V4SF_FTYPE_V4DF_V4SF_QI,
7218 V2DI_FTYPE_V4SI_V2DI_QI, V2DI_FTYPE_V8HI_V2DI_QI,
7219 V2DI_FTYPE_V16QI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_QI,
7220 V4DI_FTYPE_V4SI_V4DI_QI, V4DI_FTYPE_V8HI_V4DI_QI,
7221 V4DI_FTYPE_V16QI_V4DI_QI, V8DI_FTYPE_V8DF_V8DI_QI,
7222 V4DI_FTYPE_V4DF_V4DI_QI, V2DI_FTYPE_V2DF_V2DI_QI,
7223 V4SI_FTYPE_V4DF_V4SI_QI, V4SI_FTYPE_V2DF_V4SI_QI,
7224 V4SI_FTYPE_V8HI_V4SI_QI, V4SI_FTYPE_V16QI_V4SI_QI,
7225 V8SI_FTYPE_V8SI_V8SI_V8SI, V8SF_FTYPE_V8SF_V8SF_QI,
7226 V8SF_FTYPE_V8SI_V8SF_QI, V4DF_FTYPE_V4DF_V4DF_QI,
7227 V4SF_FTYPE_V4SF_V4SF_QI, V2DF_FTYPE_V2DF_V2DF_QI,
7228 V2DF_FTYPE_V4SF_V2DF_QI, V2DF_FTYPE_V4SI_V2DF_QI,
7229 V4SF_FTYPE_V4SI_V4SF_QI, V4DF_FTYPE_V4SF_V4DF_QI,
7230 V4DF_FTYPE_V4SI_V4DF_QI, V8SI_FTYPE_V8SI_V8SI_QI,
7231 V8SI_FTYPE_V8HI_V8SI_QI, V8SI_FTYPE_V16QI_V8SI_QI,
7232 V16SF_FTYPE_V8SF_V16SF_HI, V16SI_FTYPE_V8SI_V16SI_HI,
7233 V16HI_FTYPE_V16HI_V16HI_HI, V8HI_FTYPE_V16QI_V8HI_QI,
7234 V16HI_FTYPE_V16QI_V16HI_HI, V32HI_FTYPE_V32HI_V32HI_SI,
7235 V32HI_FTYPE_V32QI_V32HI_SI, V8DI_FTYPE_V8DI_V8DI_INT_CONVERT,
7236 V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI_CONVERT, QI_FTYPE_V8DF_INT_QI,
7237 QI_FTYPE_V4DF_INT_QI, QI_FTYPE_V2DF_INT_QI,
7238 HI_FTYPE_V16SF_INT_HI, QI_FTYPE_V8SF_INT_QI,
7239 QI_FTYPE_V4SF_INT_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI_CONVERT,
7240 V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI_CONVERT, V32QI_FTYPE_V32QI_V32QI_V32QI_SI,
7241 V32HI_FTYPE_V32HI_V32HI_V32HI_SI, V32HI_FTYPE_V64QI_V64QI_V32HI_SI,
7242 V16SI_FTYPE_V32HI_V32HI_V16SI_HI, V64QI_FTYPE_V64QI_V64QI_V64QI_DI,
7243 V32HI_FTYPE_V32HI_V8HI_V32HI_SI, V16HI_FTYPE_V16HI_V8HI_V16HI_HI,
7244 V8SI_FTYPE_V8SI_V4SI_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_V4DI_QI,
7245 V64QI_FTYPE_V32HI_V32HI_V64QI_DI, V32QI_FTYPE_V16HI_V16HI_V32QI_SI,
7246 V16QI_FTYPE_V8HI_V8HI_V16QI_HI, V32HI_FTYPE_V16SI_V16SI_V32HI_SI,
7247 V16HI_FTYPE_V8SI_V8SI_V16HI_HI, V8HI_FTYPE_V4SI_V4SI_V8HI_QI,
7248 V4DF_FTYPE_V4DF_V4DI_V4DF_QI, V8SF_FTYPE_V8SF_V8SI_V8SF_QI,
7249 V4SF_FTYPE_V4SF_V4SI_V4SF_QI, V2DF_FTYPE_V2DF_V2DI_V2DF_QI,
7250 V2DI_FTYPE_V4SI_V4SI_V2DI_QI, V4DI_FTYPE_V8SI_V8SI_V4DI_QI,
7251 V4DF_FTYPE_V4DI_V4DF_V4DF_QI, V8SF_FTYPE_V8SI_V8SF_V8SF_QI,
7252 V2DF_FTYPE_V2DI_V2DF_V2DF_QI, V4SF_FTYPE_V4SI_V4SF_V4SF_QI,
7253 V8HI_FTYPE_V8HI_V8HI_V8HI_QI, V8SI_FTYPE_V8SI_V8SI_V8SI_QI,
7254 V4SI_FTYPE_V4SI_V4SI_V4SI_QI, V8SF_FTYPE_V8SF_V8SF_V8SF_QI,
7255 V16QI_FTYPE_V16QI_V16QI_V16QI_HI, V16HI_FTYPE_V16HI_V16HI_V16HI_HI,
7256 V2DI_FTYPE_V2DI_V2DI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_V4DI_QI,
7257 V4DF_FTYPE_V4DF_V4DF_V4DF_QI, V8HI_FTYPE_V16QI_V16QI_V8HI_QI,
7258 V16HI_FTYPE_V32QI_V32QI_V16HI_HI, V8SI_FTYPE_V16HI_V16HI_V8SI_QI,
7259 V4SI_FTYPE_V8HI_V8HI_V4SI_QI, QI_FTYPE_V4DI_V4DI_INT_QI,
7260 QI_FTYPE_V8SI_V8SI_INT_QI, QI_FTYPE_V4DF_V4DF_INT_QI,
7261 QI_FTYPE_V8SF_V8SF_INT_QI, QI_FTYPE_V2DI_V2DI_INT_QI,
7262 QI_FTYPE_V4SI_V4SI_INT_QI, DI_FTYPE_V64QI_V64QI_INT_DI,
7263 SI_FTYPE_V32QI_V32QI_INT_SI, HI_FTYPE_V16QI_V16QI_INT_HI,
7264 SI_FTYPE_V32HI_V32HI_INT_SI, HI_FTYPE_V16HI_V16HI_INT_HI,
7265 QI_FTYPE_V8HI_V8HI_INT_QI, V8SF_FTYPE_V8SF_INT_V8SF_QI,
7266 V4SF_FTYPE_V4SF_INT_V4SF_QI, V2DF_FTYPE_V4DF_INT_V2DF_QI,
7267 V2DI_FTYPE_V4DI_INT_V2DI_QI, V8SF_FTYPE_V16SF_INT_V8SF_QI,
7268 V8SI_FTYPE_V16SI_INT_V8SI_QI, V2DF_FTYPE_V8DF_INT_V2DF_QI,
7269 V2DI_FTYPE_V8DI_INT_V2DI_QI, V4SF_FTYPE_V8SF_INT_V4SF_QI,
7270 V4SI_FTYPE_V8SI_INT_V4SI_QI, V8HI_FTYPE_V8SF_INT_V8HI_QI,
7271 V8HI_FTYPE_V4SF_INT_V8HI_QI, V32HI_FTYPE_V32HI_INT_V32HI_SI,
7272 V16HI_FTYPE_V16HI_INT_V16HI_HI, V8HI_FTYPE_V8HI_INT_V8HI_QI,
7273 V4DI_FTYPE_V4DI_INT_V4DI_QI, V2DI_FTYPE_V2DI_INT_V2DI_QI,
7274 V8SI_FTYPE_V8SI_INT_V8SI_QI, V4SI_FTYPE_V4SI_INT_V4SI_QI,
7275 V4DF_FTYPE_V4DF_INT_V4DF_QI, V2DF_FTYPE_V2DF_INT_V2DF_QI,
7276 V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI,
7277 V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI, V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI,
7278 V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI,
7279 V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI, V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI,
7280 V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI, V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI,
7281 V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI, V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI,
7282 V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI, V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI,
7283 V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI,
7284 V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI,
7285 V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI, V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI,
7286 V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI, V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI,
7287 V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI, V8DI_FTYPE_V8DF_V8DI_QI_INT,
7288 V8SF_FTYPE_V8DI_V8SF_QI_INT, V8DF_FTYPE_V8DI_V8DF_QI_INT,
7289 V8DI_FTYPE_V8SF_V8DI_QI_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT,
7290 V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT, VOID_FTYPE_PV4DI_V4DI_QI,
7291 VOID_FTYPE_PV2DI_V2DI_QI, VOID_FTYPE_PV8SI_V8SI_QI,
7292 VOID_FTYPE_PV4SI_V4SI_QI, VOID_FTYPE_PV4SI_V4DI_QI,
7293 VOID_FTYPE_PV4SI_V2DI_QI, VOID_FTYPE_PV8HI_V4DI_QI,
7294 VOID_FTYPE_PV8HI_V2DI_QI, VOID_FTYPE_PV8HI_V8SI_QI,
7295 VOID_FTYPE_PV8HI_V4SI_QI, VOID_FTYPE_PV16QI_V4DI_QI,
7296 VOID_FTYPE_PV16QI_V2DI_QI, VOID_FTYPE_PV16QI_V8SI_QI,
7297 VOID_FTYPE_PV16QI_V4SI_QI, VOID_FTYPE_PV8HI_V8HI_QI,
7298 VOID_FTYPE_PV16HI_V16HI_HI, VOID_FTYPE_PV32HI_V32HI_SI,
7299 VOID_FTYPE_PV16QI_V16QI_HI, VOID_FTYPE_PV32QI_V32QI_SI,
7300 VOID_FTYPE_PV64QI_V64QI_DI, VOID_FTYPE_PV4DF_V4DF_QI,
7301 VOID_FTYPE_PV2DF_V2DF_QI, VOID_FTYPE_PV8SF_V8SF_QI,
7302 VOID_FTYPE_PV4SF_V4SF_QI, V4SF_FTYPE_PCV4SF_V4SF_QI,
7303 V8SF_FTYPE_PCV8SF_V8SF_QI, V4SI_FTYPE_PCV4SI_V4SI_QI,
7304 V8SI_FTYPE_PCV8SI_V8SI_QI, V2DF_FTYPE_PCV2DF_V2DF_QI,
7305 V4DF_FTYPE_PCV4DF_V4DF_QI, V2DI_FTYPE_PCV2DI_V2DI_QI,
7306 V4DI_FTYPE_PCV4DI_V4DI_QI, V8HI_FTYPE_PCV8HI_V8HI_QI,
7307 V16HI_FTYPE_PCV16HI_V16HI_HI, V32HI_FTYPE_PCV32HI_V32HI_SI,
7308 V16QI_FTYPE_PCV16QI_V16QI_HI, V32QI_FTYPE_PCV32QI_V32QI_SI,
7309 V64QI_FTYPE_PCV64QI_V64QI_DI, do not handle V8USI_FTYPE_V8USI.
7311 2014-10-28 Jakub Jelinek <jakub@redhat.com>
7313 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t
7314 type for the left shift in CASE_CONVERT case.
7316 2014-10-28 Max Ostapenko <m.ostapenko@partner.samsung.com>
7318 * asan.h (asan_intercepted_p): New function.
7319 * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
7320 hash value construction. Call iterative_hash_expr instead of explicit
7322 (asan_mem_ref_hasher::equal): Change condition.
7323 (has_mem_ref_been_instrumented): Likewise.
7324 (update_mem_ref_hash_table): Likewise.
7325 (maybe_update_mem_ref_hash_table): New function.
7326 (instrument_strlen_call): Removed.
7327 (get_mem_refs_of_builtin_call): Handle new parameter.
7328 (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
7329 of instrument_mem_region_access if intercepted_p is true.
7330 (instrument_mem_region_access): Instrument only base with len instead of
7331 base and end with 1.
7332 (build_check_stmt): Remove start_instrumented and end_instrumented
7334 (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
7335 ASAN_CHECK_END_INSTRUMENTED. Change ASAN_CHECK_LAST.
7336 (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
7337 * builtins.c (expand_builtin): Include asan.h. Don't expand string/memory
7338 builtin functions that have interceptors if ASan is enabled.
7340 2014-10-28 Richard Biener <rguenther@suse.de>
7343 * fold-const.c (fold_comparison): Properly guard simplifying
7344 against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
7346 2014-10-28 Alan Lawrence <alan.lawrence@arm.com>
7348 * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
7349 * fold-const.c (const_binop): Likewise.
7350 * cfgexpand.c (expand_debug_expr): Likewise.
7351 * tree-inline.c (estimate_operator_cost): Likewise.
7352 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
7353 * optabs.c (optab_for_tree_code): Likewise.
7354 (expand_vec_shift_expr): Likewise, update comment.
7355 * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
7356 * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
7357 * optabs.def: Remove vec_shl_optab.
7358 * doc/md.texi: Remove references to vec_shr_m.
7360 2014-10-28 Yury Gribov <y.gribov@samsung.com>
7362 * asan.c (report_error_func): Add noabort path.
7363 (check_func): Ditto. Formatting.
7364 (asan_expand_check_ifn): Handle noabort path.
7365 * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
7367 * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
7368 * opts.c (finish_options): Reword comment.
7369 * sanitizer.def: Add noabort ASan builtins.
7371 2014-10-28 Yury Gribov <y.gribov@samsung.com>
7373 * asan.c (set_asan_shadow_offset): New function.
7374 (asan_shadow_offset): Likewise.
7375 (asan_emit_stack_protection): Call asan_shadow_offset.
7376 (build_shadow_mem_access): Likewise.
7377 * asan.h (set_asan_shadow_offset): Declare.
7378 * common.opt (fasan-shadow-offset): New option.
7379 (frandom-seed): Fixed parameter name.
7380 * doc/invoke.texi (fasan-shadow-offset): Describe new option.
7381 (frandom-seed): Fixed parameter name.
7382 * opts-global.c (handle_common_deferred_options): Handle
7383 -fasan-shadow-offset.
7384 * opts.c (common_handle_option): Likewise.
7386 2014-10-27 Jiong Wang <jiong.wang@arm.com>
7389 * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
7391 2014-10-27 DJ Delorie <dj@redhat.com>
7393 * tree.c (build_common_tree_nodes): Don't even store the
7394 __int128 types if they're not supported.
7396 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
7398 * config/i386/i386.c (ix86_loop_memcount): Delete.
7399 (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
7401 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
7403 * config/i386/i386.c (find_constant_1): Delete.
7404 (find_constant): Use FOR_EACH_SUBRTX.
7406 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
7408 * config/i386/i386.c (extended_reg_mentioned_1): Delete.
7409 (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
7411 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
7413 * config/i386/i386.c: Include rtl-iter.h
7414 (ix86_check_avx256_register): Take a const_rtx and return a bool.
7415 (ix86_check_avx256_stores): Update call accordingly.
7416 (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
7417 (ix86_avx_u128_mode_needed): Likewise. Use FOR_EACH_SUBRTX.
7419 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
7421 * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
7422 Take an rtx and return a bool.
7423 * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
7424 Use FOR_EACH_SUBRTX_VAR.
7425 * config/alpha/predicates.md (some_small_symbolic_operand): Update
7428 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
7430 * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
7432 * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
7433 (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX. Return a bool.
7435 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
7437 * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
7438 (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
7440 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
7442 * config/alpha/alpha.c: Include rtl-iter.h.
7443 (split_small_symbolic_operand_1): Delete.
7444 (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
7446 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
7448 * config/s390/s390.c: Include rtl-iter.h.
7449 (check_dpu): Delete.
7450 (s390_loop_unroll_adjust): Only iterate over patterns.
7451 Use FOR_EACH_SUBRTX.
7453 2014-10-27 Richard Sandiford <richard.sandiford@arm.com>
7455 * config/spu/spu.c: Include rtl-iter.h
7456 (ea_symbol_ref): Replace with...
7457 (ea_symbol_ref_p): ...this new function.
7458 (spu_legitimate_address_p): Update call accordingly.
7459 (spu_legitimate_constant_p): Likewise. Use FOR_EACH_SUBRTX.
7461 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
7462 Tom Tromey <tromey@redhat.com>
7464 * aclocal.m4, configure: Rebuild.
7465 * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
7466 * configure.ac: Use GCC_ENABLE_PLUGINS.
7467 * stor-layout.c (finish_bitfield_layout): Now public. Change
7468 argument type to 'tree'.
7469 (finish_record_layout): Update.
7470 * stor-layout.h (finish_bitfield_layout): Declare.
7472 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
7474 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
7475 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
7476 Restore, enable for bigendian, update to use __builtin..._scal...
7478 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
7480 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
7481 reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
7482 (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
7483 reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
7485 * config/aarch64/aarch64-simd.md
7486 (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
7487 (reduc_<maxmin_uns>_internal<mode>): ...this.
7488 (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
7489 (reduc_<maxmin_uns>_scal_<mode>): New (*2).
7491 (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
7492 (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
7493 (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
7495 * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
7496 vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
7497 vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
7498 vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
7499 vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
7500 vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
7501 vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
7502 __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
7504 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
7506 * config/aarch64/aarch64-simd-builtins.def
7507 (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
7509 (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
7511 * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
7512 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
7514 (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
7515 (aarch64_reduc_plus_internal<mode>): ...this.
7517 (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
7518 (aarch64_reduc_plus_internalv2si): ...this.
7520 (reduc_splus_<mode>/V2F): Rename to...
7521 (aarch64_reduc_plus_internal<mode>): ...this.
7523 * config/aarch64/iterators.md
7524 (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
7526 (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
7528 * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
7529 vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
7530 vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
7531 vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
7532 __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
7534 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
7536 PR tree-optimization/61114
7537 * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
7538 optabs, and note in reduc_[us](plus|min|max) to prefer the former.
7540 * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
7541 back to old reduc_... + BIT_FIELD_REF only if not.
7543 * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
7544 return the reduce-to-scalar (reduc_..._scal) optab.
7545 (scalar_reduc_to_vector): New.
7547 * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
7548 reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
7551 * optabs.h (scalar_reduc_to_vector): Declare.
7553 * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
7554 to either scalar or vector.
7556 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
7558 PR tree-optimization/61114
7559 * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
7560 extract_bit_field around optab result.
7562 * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
7565 * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
7566 for REDUC_{MIN,MAX,PLUS}_EXPR.
7568 * tree-vect-loop.c (vect_analyze_loop): Update comment.
7569 (vect_create_epilog_for_reduction): For direct vector reduction, use
7570 result of tree code directly without extract_bit_field.
7572 * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
7575 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
7577 * basic-block.h: Remove all includes.
7578 (enum profile_status_d, struct control_flow_graph): Move to cfg.h
7579 * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
7580 * Makefile.in (GTFILES): Add cfg.h to list.
7581 * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
7582 * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
7583 * genconditions.c (write_header): Add predict.h and basic-block.h to
7585 * genemit.c (main): Ditto.
7586 * genpreds.c (write_insn_preds_c): Ditto.
7587 * genrecog.c (write_header): Ditto.
7588 * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
7589 to list of includes.
7590 * alias.c: Adjust include files.
7592 * auto-inc-dec.c: Ditto.
7593 * auto-profile.c: Ditto.
7594 * bb-reorder.c: Ditto.
7596 * builtins.c: Ditto.
7597 * caller-save.c: Ditto.
7601 * cfgbuild.c: Ditto.
7602 * cfgcleanup.c: Ditto.
7603 * cfgexpand.c: Ditto.
7604 * cfghooks.c: Ditto.
7606 * cfgloopanal.c: Ditto.
7607 * cfgloopmanip.c: Ditto.
7609 * cgraphbuild.c: Ditto.
7610 * cgraphclones.c: Ditto.
7611 * cgraphunit.c: Ditto.
7612 * combine-stack-adj.c: Ditto.
7614 * compare-elim.c: Ditto.
7615 * coverage.c: Ditto.
7619 * data-streamer-in.c: Ditto.
7620 * data-streamer-out.c: Ditto.
7621 * data-streamer.c: Ditto.
7626 * df-problems.c: Ditto.
7630 * dominance.c: Ditto.
7633 * dwarf2cfi.c: Ditto.
7634 * emit-rtl.c: Ditto.
7635 * et-forest.c: Ditto.
7640 * fold-const.c: Ditto.
7641 * function.c: Ditto.
7643 * gcc-plugin.h: Ditto.
7645 * generic-match-head.c: Ditto.
7646 * ggc-page.c: Ditto.
7647 * gimple-builder.c: Ditto.
7648 * gimple-expr.c: Ditto.
7649 * gimple-fold.c: Ditto.
7650 * gimple-iterator.c: Ditto.
7651 * gimple-low.c: Ditto.
7652 * gimple-match-head.c: Ditto.
7653 * gimple-pretty-print.c: Ditto.
7654 * gimple-ssa-isolate-paths.c: Ditto.
7655 * gimple-ssa-strength-reduction.c: Ditto.
7656 * gimple-streamer-in.c: Ditto.
7657 * gimple-streamer-out.c: Ditto.
7658 * gimple-streamer.h: Ditto.
7659 * gimple-walk.c: Ditto.
7661 * gimplify-me.c: Ditto.
7662 * gimplify.c: Ditto.
7664 * graphite-blocking.c: Ditto.
7665 * graphite-clast-to-gimple.c: Ditto.
7666 * graphite-dependences.c: Ditto.
7667 * graphite-interchange.c: Ditto.
7668 * graphite-isl-ast-to-gimple.c: Ditto.
7669 * graphite-optimize-isl.c: Ditto.
7670 * graphite-poly.c: Ditto.
7671 * graphite-scop-detection.c: Ditto.
7672 * graphite-sese-to-poly.c: Ditto.
7673 * graphite.c: Ditto.
7674 * haifa-sched.c: Ditto.
7675 * hw-doloop.c: Ditto.
7677 * init-regs.c: Ditto.
7678 * internal-fn.c: Ditto.
7680 * ipa-devirt.c: Ditto.
7681 * ipa-icf-gimple.c: Ditto.
7683 * ipa-inline-analysis.c: Ditto.
7684 * ipa-inline.c: Ditto.
7685 * ipa-polymorphic-call.c: Ditto.
7686 * ipa-profile.c: Ditto.
7687 * ipa-prop.c: Ditto.
7688 * ipa-pure-const.c: Ditto.
7689 * ipa-reference.c: Ditto.
7690 * ipa-split.c: Ditto.
7691 * ipa-utils.c: Ditto.
7693 * ira-build.c: Ditto.
7694 * ira-color.c: Ditto.
7695 * ira-conflicts.c: Ditto.
7696 * ira-costs.c: Ditto.
7697 * ira-emit.c: Ditto.
7698 * ira-lives.c: Ditto.
7702 * loop-doloop.c: Ditto.
7703 * loop-init.c: Ditto.
7704 * loop-invariant.c: Ditto.
7706 * loop-unroll.c: Ditto.
7707 * lower-subreg.c: Ditto.
7708 * lra-assigns.c: Ditto.
7709 * lra-coalesce.c: Ditto.
7710 * lra-constraints.c: Ditto.
7711 * lra-eliminations.c: Ditto.
7712 * lra-lives.c: Ditto.
7713 * lra-spills.c: Ditto.
7715 * lto-cgraph.c: Ditto.
7716 * lto-compress.c: Ditto.
7717 * lto-opts.c: Ditto.
7718 * lto-section-in.c: Ditto.
7719 * lto-section-out.c: Ditto.
7720 * lto-streamer-in.c: Ditto.
7721 * lto-streamer-out.c: Ditto.
7722 * lto-streamer.c: Ditto.
7724 * mode-switching.c: Ditto.
7725 * modulo-sched.c: Ditto.
7728 * opts-global.c: Ditto.
7730 * postreload-gcse.c: Ditto.
7731 * postreload.c: Ditto.
7733 * print-rtl.c: Ditto.
7737 * reg-stack.c: Ditto.
7738 * regcprop.c: Ditto.
7739 * regcprop.h: Ditto.
7741 * regrename.c: Ditto.
7746 * resource.c: Ditto.
7748 * sched-deps.c: Ditto.
7749 * sched-ebb.c: Ditto.
7750 * sched-int.h: Ditto.
7751 * sched-rgn.c: Ditto.
7752 * sched-vis.c: Ditto.
7753 * sel-sched-dump.c: Ditto.
7754 * sel-sched-ir.c: Ditto.
7755 * sel-sched-ir.h: Ditto.
7756 * sel-sched.c: Ditto.
7758 * shrink-wrap.c: Ditto.
7759 * stack-ptr-mod.c: Ditto.
7761 * store-motion.c: Ditto.
7765 * trans-mem.c: Ditto.
7766 * tree-affine.c: Ditto.
7767 * tree-call-cdce.c: Ditto.
7768 * tree-cfg.c: Ditto.
7769 * tree-cfgcleanup.c: Ditto.
7770 * tree-chrec.c: Ditto.
7771 * tree-complex.c: Ditto.
7772 * tree-data-ref.c: Ditto.
7773 * tree-dfa.c: Ditto.
7775 * tree-emutls.c: Ditto.
7776 * tree-if-conv.c: Ditto.
7777 * tree-inline.c: Ditto.
7778 * tree-into-ssa.c: Ditto.
7779 * tree-loop-distribution.c: Ditto.
7780 * tree-nested.c: Ditto.
7781 * tree-nrv.c: Ditto.
7782 * tree-object-size.c: Ditto.
7783 * tree-outof-ssa.c: Ditto.
7784 * tree-parloops.c: Ditto.
7785 * tree-phinodes.c: Ditto.
7786 * tree-predcom.c: Ditto.
7787 * tree-pretty-print.c: Ditto.
7788 * tree-profile.c: Ditto.
7789 * tree-scalar-evolution.c: Ditto.
7790 * tree-sra.c: Ditto.
7791 * tree-ssa-address.c: Ditto.
7792 * tree-ssa-alias.c: Ditto.
7793 * tree-ssa-ccp.c: Ditto.
7794 * tree-ssa-coalesce.c: Ditto.
7795 * tree-ssa-copy.c: Ditto.
7796 * tree-ssa-copyrename.c: Ditto.
7797 * tree-ssa-dce.c: Ditto.
7798 * tree-ssa-dom.c: Ditto.
7799 * tree-ssa-dse.c: Ditto.
7800 * tree-ssa-forwprop.c: Ditto.
7801 * tree-ssa-ifcombine.c: Ditto.
7802 * tree-ssa-live.c: Ditto.
7803 * tree-ssa-loop-ch.c: Ditto.
7804 * tree-ssa-loop-im.c: Ditto.
7805 * tree-ssa-loop-ivcanon.c: Ditto.
7806 * tree-ssa-loop-ivopts.c: Ditto.
7807 * tree-ssa-loop-manip.c: Ditto.
7808 * tree-ssa-loop-niter.c: Ditto.
7809 * tree-ssa-loop-prefetch.c: Ditto.
7810 * tree-ssa-loop-unswitch.c: Ditto.
7811 * tree-ssa-loop.c: Ditto.
7812 * tree-ssa-math-opts.c: Ditto.
7813 * tree-ssa-operands.c: Ditto.
7814 * tree-ssa-phiopt.c: Ditto.
7815 * tree-ssa-phiprop.c: Ditto.
7816 * tree-ssa-pre.c: Ditto.
7817 * tree-ssa-propagate.c: Ditto.
7818 * tree-ssa-reassoc.c: Ditto.
7819 * tree-ssa-sccvn.c: Ditto.
7820 * tree-ssa-sink.c: Ditto.
7821 * tree-ssa-strlen.c: Ditto.
7822 * tree-ssa-structalias.c: Ditto.
7823 * tree-ssa-tail-merge.c: Ditto.
7824 * tree-ssa-ter.c: Ditto.
7825 * tree-ssa-threadedge.c: Ditto.
7826 * tree-ssa-threadupdate.c: Ditto.
7827 * tree-ssa-uncprop.c: Ditto.
7828 * tree-ssa-uninit.c: Ditto.
7829 * tree-ssa.c: Ditto.
7830 * tree-ssanames.c: Ditto.
7831 * tree-stdarg.c: Ditto.
7832 * tree-streamer-in.c: Ditto.
7833 * tree-streamer-out.c: Ditto.
7834 * tree-streamer.c: Ditto.
7835 * tree-switch-conversion.c: Ditto.
7836 * tree-tailcall.c: Ditto.
7837 * tree-vect-data-refs.c: Ditto.
7838 * tree-vect-generic.c: Ditto.
7839 * tree-vect-loop-manip.c: Ditto.
7840 * tree-vect-loop.c: Ditto.
7841 * tree-vect-patterns.c: Ditto.
7842 * tree-vect-slp.c: Ditto.
7843 * tree-vect-stmts.c: Ditto.
7844 * tree-vectorizer.c: Ditto.
7845 * tree-vrp.c: Ditto.
7849 * valtrack.c: Ditto.
7850 * valtrack.h: Ditto.
7851 * value-prof.c: Ditto.
7852 * var-tracking.c: Ditto.
7855 * vtable-verify.c: Ditto.
7857 * config/aarch64/aarch64-builtins.c: Ditto.
7858 * config/aarch64/aarch64.c: Ditto.
7859 * config/alpha/alpha.c: Ditto.
7860 * config/arc/arc.c: Ditto.
7861 * config/arm/arm.c: Ditto.
7862 * config/avr/avr.c: Ditto.
7863 * config/bfin/bfin.c: Ditto.
7864 * config/c6x/c6x.c: Ditto.
7865 * config/cr16/cr16.c: Ditto.
7866 * config/cris/cris.c: Ditto.
7867 * config/darwin-c.c: Ditto.
7868 * config/darwin.c: Ditto.
7869 * config/epiphany/epiphany.c: Ditto.
7870 * config/epiphany/mode-switch-use.c: Ditto.
7871 * config/epiphany/resolve-sw-modes.c: Ditto.
7872 * config/fr30/fr30.c: Ditto.
7873 * config/frv/frv.c: Ditto.
7874 * config/h8300/h8300.c: Ditto.
7875 * config/i386/i386.c: Ditto.
7876 * config/i386/winnt.c: Ditto.
7877 * config/ia64/ia64.c: Ditto.
7878 * config/iq2000/iq2000.c: Ditto.
7879 * config/lm32/lm32.c: Ditto.
7880 * config/m32c/m32c.c: Ditto.
7881 * config/m32r/m32r.c: Ditto.
7882 * config/m68k/m68k.c: Ditto.
7883 * config/mcore/mcore.c: Ditto.
7884 * config/mep/mep.c: Ditto.
7885 * config/microblaze/microblaze.c: Ditto.
7886 * config/mips/mips.c: Ditto.
7887 * config/mmix/mmix.c: Ditto.
7888 * config/mn10300/mn10300.c: Ditto.
7889 * config/moxie/moxie.c: Ditto.
7890 * config/msp430/msp430.c: Ditto.
7891 * config/nds32/nds32-cost.c: Ditto.
7892 * config/nds32/nds32-fp-as-gp.c: Ditto.
7893 * config/nds32/nds32-intrinsic.c: Ditto.
7894 * config/nds32/nds32-isr.c: Ditto.
7895 * config/nds32/nds32-md-auxiliary.c: Ditto.
7896 * config/nds32/nds32-memory-manipulation.c: Ditto.
7897 * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
7898 * config/nds32/nds32-predicates.c: Ditto.
7899 * config/nds32/nds32.c: Ditto.
7900 * config/nios2/nios2.c: Ditto.
7901 * config/pa/pa.c: Ditto.
7902 * config/pdp11/pdp11.c: Ditto.
7903 * config/rl78/rl78.c: Ditto.
7904 * config/rs6000/rs6000.c: Ditto.
7905 * config/rx/rx.c: Ditto.
7906 * config/s390/s390.c: Ditto.
7907 * config/sh/sh-mem.cc: Ditto.
7908 * config/sh/sh.c: Ditto.
7909 * config/sh/sh_optimize_sett_clrt.cc: Ditto.
7910 * config/sh/sh_treg_combine.cc: Ditto.
7911 * config/sparc/sparc.c: Ditto.
7912 * config/spu/spu.c: Ditto.
7913 * config/stormy16/stormy16.c: Ditto.
7914 * config/tilegx/tilegx.c: Ditto.
7915 * config/tilepro/tilepro.c: Ditto.
7916 * config/v850/v850.c: Ditto.
7917 * config/vax/vax.c: Ditto.
7918 * config/xtensa/xtensa.c: Ditto.
7920 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
7922 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
7923 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
7924 Remove using preprocessor directives.
7926 2014-10-27 Richard Biener <rguenther@suse.de>
7928 * match.pd (0 % X): Properly use the iterator iterating over
7929 all modulo operators.
7932 2014-10-27 Richard Biener <rguenther@suse.de>
7934 * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
7935 (lattice): New global.
7936 (fwprop_ssa_val): New function.
7937 (fold_all_stmts): Likewise.
7938 (pass_forwprop::execute): Finally fold all stmts.
7940 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
7943 * doc/invoke.texi (fmessage-length): Update text to match reality.
7945 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
7947 * config/microblaze/microblaze.c: Include rtl-iter.h.
7948 (microblaze_tls_referenced_p_1): Delete.
7949 (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
7951 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
7953 * config/mips/mips.c (mips_at_reg_p): Delete.
7954 (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
7956 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
7958 * config/mips/mips.c (mips_record_lo_sum): Replace with...
7959 (mips_record_lo_sums): ...this new function.
7960 (mips_reorg_process_insns): Update accordingly.
7962 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
7964 * config/mips/mips.c (mips_sim_insn): Update comment.
7965 (mips_sim_wait_regs_2): Delete.
7966 (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
7968 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
7970 * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
7971 and return a bool. Iterate over all subrtxes here.
7972 (r10k_needs_protection_p): Update accordingly.
7974 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
7976 * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
7977 rather than an rtx pointer. Change type of insn from "void *"
7978 to its real type. Return bool rather than int. Iterate over
7980 (r10k_needs_protection_p_store): Update accordingly.
7981 (r10k_needs_protection_p): Likewise.
7983 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
7985 * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
7986 (mips16_rewrite_pool_refs): Take the insn and constant pool as
7987 parameters. Iterate over the instruction's pattern and return void.
7988 (mips16_lay_out_constants): Update accordingly.
7990 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
7992 * config/mips/mips.c (mips_kernel_reg_p): Replace with...
7993 (mips_refers_to_kernel_reg_p): ...this new function.
7994 (mips_expand_prologue): Update accordingly.
7996 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
7998 * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
7999 as a parameter instead of the containing MEM. Iterate over all
8000 subrtxes. Don't return a value.
8001 (mips_rewrite_small_data): Update call accordingly.
8003 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
8005 * config/mips/mips.c: Include rtl-iter.h.
8006 (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
8007 Take the context as a parameter instead of the containing MEM.
8008 Iterate over all subrtxes.
8009 (mips_small_data_pattern_p): Update call accordingly.
8011 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
8013 * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
8014 (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
8016 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
8018 * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
8019 return a bool. Replace "void *" with specific type. Iterate
8021 (mep_store_data_bypass_1): Update calls accordingly.
8023 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
8025 * config/mep/mep.c: Include rtl-iter.h.
8026 (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
8027 (xtensa_tls_referenced_p): Return a bool. Use FOR_EACH_SUBRTX.
8029 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
8031 * config/xtensa/xtensa.c: Include rtl-iter.h.
8032 (xtensa_tls_referenced_p_1): Delete.
8033 (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
8035 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
8037 * config/sh/sh.c (sh_contains_memref_p_1): Delete.
8038 (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
8040 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
8042 * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
8043 rtx as argument and return the number of changes.
8044 * config/sh/sh.c: Include rtl-iter.h.
8045 (shmedia_cleanup_truncate): Take an rtx as argument and iterate
8046 over all subrtxes. Return the number of changes made.
8047 * config/sh/sh.md: Update caller accordingly.
8049 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
8051 * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
8052 (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
8054 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
8056 * config/m68k/m68k.c: Include rtl-iter.h.
8057 (m68k_final_prescan_insn_1): Delete.
8058 (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
8060 2014-10-25 Jakub Jelinek <jakub@redhat.com>
8062 PR tree-optimization/63641
8063 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
8064 to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
8066 2014-10-25 Alan Modra <amodra@gmail.com>
8068 PR rtl-optimization/63615
8069 * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
8070 decomposing PLUS or MINUS if operands are not placed adjacent
8073 2014-10-25 Joseph Myers <joseph@codesourcery.com>
8075 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
8076 not allow e500 double in registers not satisyfing
8079 2014-10-24 Aldy Hernandez <aldyh@redhat.com>
8081 * dwarf2out.c (declare_in_namespace): Only emit external
8082 declarations in the local scope once.
8084 2014-10-24 Jonathan Wakely <jwakely@redhat.com>
8086 * ginclude/stdbool.h: Do not define bool, true or false in C++11.
8088 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
8090 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
8091 update uses to use new macro arguments.
8092 (__LD3_LANE_FUNC): Likewise.
8093 (__LD4_LANE_FUNC): Likewise.
8095 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
8097 * config/aarch64/aarch64-builtins.c
8098 (aarch64_types_loadstruct_lane_qualifiers): Define.
8099 * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
8100 ld4_lane): New builtins.
8101 * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
8103 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
8104 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
8105 (aarch64_ld2_lane<mode>): New expand.
8106 (aarch64_ld3_lane<mode>): Likewise.
8107 (aarch64_ld4_lane<mode>): Likewise.
8108 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
8109 UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
8111 2014-10-24 Georg-Johann Lay <avr@gjlay.de>
8113 * avr-protos.h (avr_out_sign_extend): New.
8114 * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
8115 (avr_out_sign_extend): New function.
8116 * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
8117 (extendhisi2, extendpsisi2): Use it.
8118 (adjust_len) [sext]: New.
8120 2014-10-24 Martin Liska <mliska@suse.cz>
8122 * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
8125 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8127 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
8128 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
8129 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
8130 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
8132 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8134 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
8136 * config/aarch64/aarch64.c (is_mem_p): Delete.
8137 (is_memory_op): Rename to...
8138 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
8139 (dep_between_memop_and_curr): Assert that the input is a SET.
8140 (aarch64_madd_needs_nop): Add comment. Do not call
8141 dep_between_memop_and_curr on NULL body.
8142 (aarch64_final_prescan_insn): Add comment.
8145 2014-10-24 Richard Biener <rguenther@suse.de>
8147 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
8148 to genmatch BUILD_LIBS instead.
8150 2014-10-24 Richard Biener <rguenther@suse.de>
8152 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
8153 and build_call_expr_loc.
8154 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
8155 non_lvalue_loc to build it for GENERIC.
8156 (decision_tree::gen_generic): Add location argument to
8157 generic_simplify prototype.
8158 (capture_info): New class.
8159 (capture_info::capture_info): New constructor.
8160 (capture_info::walk_match): New method.
8161 (capture_info::walk_result): New method.
8162 (capture_info::walk_c_expr): New method.
8163 (dt_simplify::gen): Handle preserving side-effects for
8164 GENERIC code generation.
8165 (decision_tree::gen_generic): Do not reject operands
8166 with TREE_SIDE_EFFECTS.
8167 * generic-match.h: New file.
8168 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
8169 * match.pd: Add some constant folding patterns from fold-const.c.
8170 * fold-const.c: Include generic-match.h.
8171 (fold_unary_loc): Dispatch to generic_simplify.
8172 (fold_ternary_loc): Likewise.
8173 (fold_binary_loc): Likewise. Remove patterns now implemented
8174 by generic_simplify.
8175 * gimple-fold.c (replace_stmt_with_simplification): New function.
8176 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
8177 (no_follow_ssa_edges): New function.
8178 (fold_stmt): New overload with valueization hook. Use
8179 no_follow_ssa_edges for the overload without hook.
8180 (fold_stmt_inplace): Likewise.
8181 * gimple-fold.h (no_follow_ssa_edges): Declare.
8183 2014-10-24 Felix Yang <felix.yang@huawei.com>
8184 Jiji Jiang <jiangjiji@huawei.com>
8187 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
8188 (__LD3R_FUNC): Ditto.
8189 (__LD4R_FUNC): Ditto.
8190 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
8191 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
8192 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
8193 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
8194 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
8195 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
8196 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
8197 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
8198 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
8199 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
8200 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
8201 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
8202 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
8203 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
8204 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
8205 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
8206 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
8207 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
8208 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
8209 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
8210 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
8212 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
8213 (aarch64_simd_ld3r<mode>): Likewise.
8214 (aarch64_simd_ld4r<mode>): Likewise.
8215 (aarch64_ld2r<mode>): New expand.
8216 (aarch64_ld3r<mode>): Likewise.
8217 (aarch64_ld4r<mode>): Likewise.
8219 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
8221 * rtlanal.c (get_base_term): Handle SCRATCH.
8223 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
8225 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
8228 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
8230 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
8231 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
8232 (max_issue, choose_ready, sched_init): Update.
8234 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
8236 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
8237 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
8238 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
8239 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
8240 (print_rank_for_schedule_stats): Print out elements of ready list that
8241 ended up on their respective places due to each of the sorting
8243 (ready_sort): Update.
8244 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
8245 (schedule_block): Update.
8247 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
8249 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
8250 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
8251 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
8252 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
8253 (model_start_schedule): Update.
8254 (sched_pressure_start_bb): New static function. Calculate
8255 sched_class_regs_num.
8256 (schedule_block): Use it.
8257 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
8259 2014-10-24 Richard Biener <rguenther@suse.de>
8261 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
8262 host library and make sure to pull in the required libintl
8263 and libiconv dependencies.
8265 2014-10-24 Richard Biener <rguenther@suse.de>
8267 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
8269 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
8272 * collect2.c (main): Filter out -fno-lto.
8274 2014-10-24 Martin Liska <mliska@suse.cz>
8276 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
8277 division by zero in dumps.
8278 (sem_item_optimizer::merge_classes): Ditto.
8280 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
8282 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
8284 2014-10-23 Ian Lance Taylor <iant@google.com>
8286 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
8288 2014-10-23 Ian Lance Taylor <iant@google.com>
8290 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
8292 2014-10-23 Jakub Jelinek <jakub@redhat.com>
8295 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
8296 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
8297 instead of only handling autoinc in dest if it is a MEM.
8298 (vt_stack_adjustments): Fix up formatting.
8300 2014-10-23 DJ Delorie <dj@redhat.com>
8302 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
8303 independend of -mlarge.
8304 * config/msp430/constraints.md (Ys): Update comment.
8306 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
8310 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
8312 * dse.c (deletable_insn_p): Likewise.
8314 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
8316 * config/avr/avr.c: Fix GNU coding rules and typos.
8317 * config/avr/avr.h: Dito.
8318 * config/avr/avr-c.c: Dito.
8319 * config/avr/avr.md: Dito.
8321 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
8323 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
8325 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
8327 (define_expand "abs<mode>2"): Ditto.
8329 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
8331 * tree-core.h (tree_var_decl): Extend `function_code' field
8332 by one bit, move `regdecl_flag' field to ...
8333 (tree_decl_with_vis): Here.
8334 * tree.h (DECL_STATIC_CHAIN): Update struct name.
8336 2014-10-23 Richard Biener <rguenther@suse.de>
8338 * Makefile.in (BUILD_CPPLIB): Add.
8339 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
8342 2014-10-23 Richard Biener <rguenther@suse.de>
8344 * fold-const.c (fold_binary_loc): Preserve side-effects of
8345 X - X when simplifying to 0.
8346 * stor-layout.c (finish_bitfield_representative): Strip
8347 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
8349 2014-10-22 Richard Biener <rguenther@suse.de>
8350 Tobias Burnus <burnus@net-b.de>
8353 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
8355 2014-10-22 Dehao Chen <dehao@google.com>
8357 * auto-profile.c: Change order of header files.
8359 2014-10-22 Guozhi Wei <carrot@google.com>
8361 PR tree-optimization/63530
8362 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
8363 pointer alignment according to DR_MISALIGNMENT.
8365 2014-10-22 David Malcolm <dmalcolm@redhat.com>
8367 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
8369 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
8371 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
8372 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
8373 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
8374 * dominance.h: New. Add prototypes for dominance.c.
8375 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
8376 * cfghooks.h: (struct profile_record) Relocate here.
8377 Relocate 2 prototypes from basic-block.h.
8378 * basic-block.h: Move prototypes and struct to new header files.
8379 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
8380 * rtl.h: Move a few prototypes to new header files.
8381 * cfgcleanup.c (merge_memattrs): Make static.
8382 * genopinit.c (main): Add predict.h to list of includes.
8383 * predict.h: Update prototype list to match predict.c.
8384 * predict.c (maybe_hot_count_p): Export.
8385 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
8386 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
8387 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
8388 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
8389 * profile.h: Adjust prototypes.
8390 * ifcvt.h: New. Relocate struct ce_if_block here.
8391 * ifcvt.c: Include ifcvt.h.
8392 * config/frv/frv.c: Include ifcvt.h.
8393 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
8395 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
8397 * lra.c (lra): Remove call to recog_init.
8398 * config/i386/i386.md (preferred_for_speed): New attribute
8399 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
8400 "enabled". Remove check for sched1.
8402 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
8404 * recog.h (recog_data_d): Remove enabled_alternatives.
8405 * recog.c (extract_insn): Don't set it.
8406 * reload.c (find_reloads): Call get_enabled_alternatives.
8408 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
8410 * recog.h (constrain_operands): Add an alternative_mask parameter.
8411 (constrain_operands_cached): Likewise.
8412 (get_preferred_alternatives): Declare new form.
8413 * recog.c (get_preferred_alternatives): New bb-taking instance.
8414 (constrain_operands): Take the set of available alternatives as
8416 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
8417 (extract_constrain_insn_cached): Update calls to constrain_operands.
8418 * caller-save.c (reg_save_code): Likewise.
8419 * ira.c (setup_prohibited_mode_move_regs): Likewise.
8420 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
8421 * ree.c (combine_reaching_defs): Likewise.
8422 * reload.c (can_reload_into): Likewise.
8423 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
8424 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
8425 (emit_insn_if_valid_for_reload): Likewise.
8426 * reorg.c (fill_slots_from_thread): Likewise.
8427 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
8428 * config/pa/pa.c (pa_can_combine_p): Likewise.
8429 * config/rl78/rl78.c (insn_ok_now): Likewise.
8430 * config/sh/sh.md (define_peephole2): Likewise.
8431 * final.c (final_scan_insn): Update call to constrain_operands_cached.
8433 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
8435 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
8437 * genattr.c (main): Handle "preferred_for_size" and
8438 "preferred_for_speed" in the same way as "enabled".
8439 * recog.h (bool_attr): New enum.
8440 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
8441 (get_preferred_alternatives, check_bool_attrs): Declare.
8442 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
8443 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
8445 (get_enabled_alternatives): Use get_bool_attr_mask.
8446 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
8447 instead of recog_data.enabled_alternatives.
8448 * ira.c (ira_setup_alts): Likewise.
8449 * postreload.c (reload_cse_simplify_operands): Likewise.
8450 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
8451 * ira-lives.c (preferred_alternatives): New variable.
8452 (process_bb_node_lives): Set it.
8453 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
8454 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
8455 of recog_data.enabled_alternatives.
8456 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
8457 to preferred_alternatives.
8458 * lra-constraints.c (process_alt_operands): Update accordingly.
8459 * lra.c (lra_set_insn_recog_data): Likewise.
8460 (lra_update_insn_recog_data): Assert check_bool_attrs.
8462 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
8464 * recog.h (extract_constrain_insn): Declare.
8465 * recog.c (extract_constrain_insn): New function.
8466 * lra.c (check_rtl): Use it.
8467 * postreload.c (reload_cse_simplify_operands): Likewise.
8468 * reg-stack.c (check_asm_stack_operands): Likewise.
8469 (subst_asm_stack_regs): Likewise.
8470 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
8471 * regrename.c (build_def_use): Likewise.
8472 * sel-sched.c (get_reg_class): Likewise.
8473 * config/arm/arm.c (note_invalid_constants): Likewise.
8474 * config/s390/predicates.md (execute_operation): Likewise.
8476 2014-10-22 Jakub Jelinek <jakub@redhat.com>
8477 Yury Gribov <y.gribov@samsung.com>
8479 * common.opt (flag_sanitize_recover): New variable.
8480 (fsanitize-recover): Remove Var/Init, deprecate.
8481 (fsanitize-recover=): New option.
8482 * doc/invoke.texi (fsanitize-recover): Update docs.
8483 * opts.c (finish_options): Use opts->x_flag_sanitize
8484 instead of flag_sanitize. Prohibit -fsanitize-recover
8485 for anything besides UBSan. Formatting.
8486 (common_handle_option): Handle OPT_fsanitize_recover_
8487 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
8488 instead of flag_sanitize.
8489 * asan.c (pass_sanopt::execute): Fix up formatting.
8490 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
8491 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
8492 instrument_bool_enum_load, ubsan_instrument_float_cast,
8493 instrument_nonnull_arg, instrument_nonnull_return): Check
8494 bits in flag_sanitize_recover bitmask instead of
8495 flag_sanitize_recover as bool flag.
8497 2014-10-22 Jiong Wang <jiong.wang@arm.com>
8499 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
8501 2014-10-22 Renlin Li <renlin.li@arm.com>
8503 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
8504 __ARM_FEATURE_IDIV__.
8506 2014-10-22 Richard Biener <rguenther@suse.de>
8508 * Makefile.in (s-match): Adjust dependencies to only catch
8511 2014-10-22 Richard Biener <rguenther@suse.de>
8512 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
8514 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
8515 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
8516 (gimple-match.c): Generate by triggering s-match.
8517 (generic-match.c): Likewise.
8518 (s-match): Rule to build gimple-match.c and generic-match.c
8519 by running the genmatch generator program.
8520 (build/hash-table.o): Dependencies to build hash-table.c for the host.
8521 (build/genmatch.o): Dependencies to build genmatch.
8522 (genprog): Add match.
8523 (build/genmatch): Likewise.
8524 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
8525 * generic-match-head.c: New file.
8526 * gimple-match-head.c: Likewise.
8527 * gimple-match.h: Likewise.
8528 * genmatch.c: Likewise.
8529 * match.pd: Likewise.
8530 * builtins.h (fold_builtin_n): Export.
8531 * builtins.c (fold_builtin_n): Likewise.
8532 * gimple-fold.h (gimple_build): Declare various overloads.
8533 (gimple_simplify): Likewise.
8534 (gimple_convert): Re-implement in terms of gimple_build.
8535 * gimple-fold.c (gimple_convert): Remove.
8536 (gimple_build): New functions.
8537 * doc/match-and-simplify.texi: New file.
8538 * doc/gccint.texi: Add menu item Match and Simplify and include
8539 match-and-simplify.texi.
8541 2014-10-22 Jakub Jelinek <jakub@redhat.com>
8544 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
8545 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
8546 even for just TARGET_AVX2, not only for
8547 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
8548 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
8549 otherwise build it using concatenation of 256-bit
8551 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
8552 avx512 broadcast patterns.
8553 (vec_dup<mode>): Likewise. For avx2 use
8554 v<sseintprefix>broadcast<bcstscalarsuff> instead of
8555 vbroadcast<ssescalarmodesuffix>.
8556 (AVX2_VEC_DUP_MODE): New mode iterator.
8557 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
8558 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
8561 * config/i386/i386.c (ix86_pic_register_p): Also return
8562 true if x is a hard register with ORIGINAL_REGNO equal to
8563 pic_offset_table_rtx pseudo REGNO.
8564 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
8565 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
8567 2014-10-22 Alan Modra <amodra@gmail.com>
8569 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
8570 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
8571 (gcc_obstack_init): Use obstack_specify_allocation in place of
8573 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
8574 (regexp_representation): Likewise.
8575 * godump.c (go_output_type): Likewise.
8577 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
8579 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
8580 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
8581 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
8583 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8585 * doc/invoke.texi (pedantic-errors): Explain better.
8587 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
8588 Vidya Praveen <vidya.praveen@atmel.com>
8589 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
8590 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
8591 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
8593 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
8595 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
8596 (avr_nonconst_pointer_addrspace): Likewise.
8597 * config/avr/avr.h (AVR_HAVE_LPM): Define.
8599 Added AVRTINY architecture to avr target.
8600 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
8601 (base_arch_s): member added for AVRTINY architecture.
8602 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
8603 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
8604 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
8605 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
8606 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
8607 in callee saved register list.
8608 (avr_option_override): CCP address updated for AVRTINY.
8609 (avr_init_expanders): tmp and zero rtx initialized as per arch.
8610 Reset avr_have_dimode if AVRTINY.
8611 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
8612 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
8613 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
8614 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
8615 (expand_epilogue): Likewise.
8616 (avr_print_operand): Print CCP address in case of AVRTINY also.
8618 (function_arg_regno_p): Check different register list for arguments
8620 (init_cumulative_args): Check for AVRTINY to update number of argument
8622 (tiny_valid_direct_memory_access_range): New function. Return false if
8623 direct memory access range is not in accepted range for AVRTINY.
8624 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
8625 indirect load (with displacement) for AVRTINY.
8626 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
8627 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
8628 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
8629 indirect load (no displacement) for AVRTINY.
8630 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
8631 indirect load (with displacement) for AVRTINY.
8632 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
8633 indirect load for pre-decrement address.
8634 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
8635 functions. Update instruction length for AVRTINY.
8636 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
8638 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
8639 (out_movsi_r_mr): Likewise, for SImode.
8640 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
8641 indirect store (no displacement) for AVRTINY.
8642 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
8643 indirect store (with displacement) for AVRTINY.
8644 (out_movsi_mr_r): Emit out insn for IO address store. Update store
8645 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
8647 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
8648 indirect load (no displacement) for PSImode in AVRTINY.
8649 (avr_out_load_psi_reg_disp_tiny): New function to handle register
8650 indirect load (with displacement) for PSImode in AVRTINY.
8651 (avr_out_load_psi): Call PSImode register indirect load functions for
8652 AVRTINY. Update instruction length for AVRTINY.
8653 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
8654 indirect store (no displacement) for PSImode in AVRTINY.
8655 (avr_out_store_psi_reg_disp_tiny): New function to handle register
8656 indirect store (with displacement) for PSImode in AVRTINY.
8657 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
8658 register indirect store functions for AVRTINY.
8659 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
8660 register indirect store (with displacement) for AVRTINY.
8661 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
8662 register indirect store function for QImode in AVRTINY.
8663 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
8664 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
8665 indirect store (no displacement) for HImode in AVRTINY.
8666 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
8667 indirect store (with displacement) for HImode in AVRTINY.
8668 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
8669 indirect store for post-increment address in HImode.
8670 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
8671 register indirect store function for HImode in AVRTINY.
8672 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
8674 (order_regs_for_local_alloc): Updated register allocation order for
8676 (avr_conditional_register_usage): New function. It is a target hook
8677 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
8678 used registers list and register allocation order for AVRTINY.
8679 (avr_return_in_memory): Update return value size for AVRTINY.
8680 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
8681 for AVRTINY arch and tiny program memory base address.
8682 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
8683 (avr_texinfo): Added description for AVRTINY arch.
8684 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
8685 STATIC_CHAIN_REGNUM for AVRTINY.
8686 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
8687 * config/avr/avr.md: Added constants for tmp/ zero registers in
8688 AVRTINY. Attributes for AVRTINY added.
8689 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
8690 memory access range.
8691 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
8692 in AVRTINY memory access range.
8693 (*mov<mode>): Likewise for HImode and SImode.
8694 (*movsf): Likewise for SFmode.
8695 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
8697 * config/avr/avr-protos.h: Added function prototype for
8698 tiny_valid_direct_memory_access_range.
8699 * config/avr/avr-tables.opt: Regenerate.
8700 * gcc/config/avr/t-multilib: Regenerate.
8701 * doc/avr-mmcu.texi: Regenerate.
8703 2014-10-21 Andrew Pinski <apinski@cavium.com>
8705 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
8706 available option also.
8707 * config/aarch64/aarch64-cost-tables.h: New file.
8708 * config/aarch64/aarch64-cores.def (thunderx): New core.
8709 * config/aarch64/aarch64-tune.md: Regenerate.
8710 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
8711 of config/arm/aarch-cost-tables.h.
8712 (thunderx_regmove_cost): New variable.
8713 (thunderx_tunings): New variable.
8715 2014-10-21 Dehao Chen <dehao@google.com>
8717 * auto-profile.c: New file.
8718 * auto-profile.h: New file.
8719 * basic-block.h (maybe_hot_count_p): New export func.
8720 (add_working_set): New export func.
8721 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
8722 (GCOV_TAG_AFDO_FUNCTION): Likewise.
8723 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
8724 * opts.c (enable_fdo_optimizations): New func.
8725 (common_handle_option): Handle -fauto-profile flag.
8726 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
8727 (class pass_early_inline): Export early_inliner.
8728 (early_inliner): Likewise.
8729 (pass_early_inline::execute): Likewise.
8730 * ipa-inline.h (early_inliner): Likewise.
8731 * predict.c (maybe_hot_count_p): New export func.
8732 (counts_to_freqs): AutoFDO logic.
8733 (rebuild_frequencies): Likewise.
8734 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
8735 * profile.c (add_working_set): New func.
8736 * Makefile.in (auto-profile.o): New object file.
8737 * passes.def (pass_ipa_auto_profile): New pass.
8738 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
8739 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
8740 * toplev.c (compile_file): AutoFDO logic.
8741 * doc/invoke.texi (-fauto-profile): New doc.
8742 * coverage.c (coverage_init): AutoFDO logic.
8743 * common.opt (-fauto-profile): New flag.
8744 * timevar.def (TV_IPA_AUTOFDO): New tag.
8745 * value-prof.c (gimple_alloc_histogram_value): New export func.
8746 (check_ic_target): Likewise.
8747 * value-prof.h (gimple_alloc_histogram_value): Likewise.
8748 (check_ic_target): Likewise.
8750 2014-10-21 David Malcolm <dmalcolm@redhat.com>
8752 * cgraph.c (cgraph_c_finalize): New function.
8753 * cgraph.h (cgraph_c_finalize): New prototype.
8754 (cgraphunit_c_finalize): New prototype.
8755 * cgraphunit.c (first_analyzed): Move from analyze_functions
8757 (first_analyzed_var): Likewise.
8758 (analyze_functions): Move static variables into file-scope.
8759 (cgraphunit_c_finalize): New function.
8760 * diagnostic.c (diagnostic_finish): Free the memory for
8761 context->classify_diagnostic and context->printer, running the
8762 destructor for the latter.
8763 (bt_stop): Use toplev::main.
8764 * dwarf2out.c (dwarf2out_finalize): New function.
8765 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
8766 * gcse.c (gcse_c_finalize): New function.
8767 * gcse.h (gcse_c_finalize): New prototype.
8768 * ggc-page.c (init_ggc): Make idempotent.
8769 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
8770 * ipa-cp.c (ipa_cp_c_finalize): New function.
8771 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
8772 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
8773 a field of class pass_ipa_pure_const.
8774 (node_duplication_hook_holder): Likewise.
8775 (node_removal_hook_holder): Likewise.
8776 (register_hooks): Convert to method...
8777 (pass_ipa_pure_const::register_hooks): ...here, converting
8778 static variable init_p into...
8779 (pass_ipa_pure_const::init_p): ...new field.
8780 (pure_const_generate_summary): Update invocation of
8781 register_hooks to invoke as a method of current_pass.
8782 (pure_const_read_summary): Likewise.
8783 (propagate): Convert to...
8784 (pass_ipa_pure_const::execute): ...method.
8785 * ipa-reference.c (ipa_init): Move static bool init_p from here
8787 (ipa_init_p): New file-scope variable, so that it can be reset
8788 when repeatedly invoking the compiler within one process by...
8789 (ipa_reference_c_finalize): New function.
8790 * ipa-reference.h (ipa_reference_c_finalize): New.
8791 * main.c (main): Replace invocation of toplev_main with
8792 construction of a toplev instance, and call its "main" method.
8793 * params.c (global_init_params): Add an assert that
8794 params_finished is false.
8795 (params_c_finalize): New.
8796 * params.h (params_c_finalize): New.
8797 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
8798 invoking generate_summary, for the benefit of pass_ipa_pure_const.
8799 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
8800 before calling write_summary hook.
8801 (ipa_write_optimization_summaries_1): Likewise when calling
8802 write_optimization_summary hook.
8803 (ipa_read_summaries_1): Likewise for read_summary hook.
8804 (ipa_read_optimization_summaries_1): Likewise for
8805 read_optimization_summary hook.
8806 (execute_ipa_stmt_fixups): Likewise.
8807 * stringpool.c (init_stringpool): Clean up if we're called more
8809 * timevar.c (timevar_init): Ignore repeated calls.
8810 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
8812 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
8813 (initialize_rtl): Move static local "initialized_once"
8814 into file scope, and rename to...
8815 (rtl_initialized): New variable.
8816 (do_compile): Move timevar initialization from here to
8817 toplev::start_timevars.
8818 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
8819 toplev::finalize): New functions.
8820 (toplev_main): Rename to...
8821 (toplev::main): ...this.
8822 * toplev.h (class toplev): New class.
8824 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
8826 * loop-doloop.c: Include loop-unroll.h.
8828 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
8830 * cfg.h: New. Header file for cfg.c.
8831 * cfganal.h: New. Header file for cfganal.c.
8832 * lcm.h: New. Header file for lcm.c.
8833 * loop-unroll.h: New. Header file for loop-unroll.h.
8834 * cfgloop.h: (unroll_loops): Remove prototype.
8835 * basic-block.h: Move prototypes and structs to new header files.
8836 Include cfg.h, cfganal.h, and lcm.h.
8837 * loop-init.c: Include loop-unroll.h.
8838 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
8839 * modulo-sched.c: Include loop-unroll.h.
8841 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
8843 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
8844 MARKER_BYTE_UNKNOWN markers when handling casts.
8846 2014-10-21 Richard Biener <rguenther@suse.de>
8848 * tree-ssa-phiopt.c (value_replacement): Properly verify we
8849 are the non-singleton PHI.
8851 2014-10-21 Jakub Jelinek <jakub@redhat.com>
8853 PR tree-optimization/63563
8854 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
8855 if either dra or drb stmts are not normal loads/stores.
8857 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
8859 * config/i386/i386.c (expand_vec_perm_1): Fix
8860 expand_vec_perm_palignr case.
8861 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
8864 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
8866 * cfgloopanal.c (seq_cost): Delete.
8867 * rtl.h (seq_cost): New prototype.
8868 * rtlanal.c (seq_cost): New function.
8869 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
8871 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
8873 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
8874 * basic-block.h: Remove prototypes for cfgrtl.c.
8875 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
8876 prototypes to cfgrtl.h.
8877 * profile.h (profile_info): Add extern export declaration.
8878 * rtl.h: Remove prototypes for cfgrtl.h.
8879 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
8880 * ipa-inline.c: Include profile.h.
8881 * loop-unroll.c: Ditto.
8882 * modulo-sched.c: Ditto.
8883 * postreload-gcse.c: Ditto.
8885 * sched-ebb.c: Ditto.
8886 * sched-rgn.c: Ditto.
8888 * tree-ssa-loop-ivcanon.c: Ditto.
8890 2014-10-20 Richard Biener <rguenther@suse.de>
8892 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
8893 operands to get a def operand kind match. Signal mismatches
8894 to the parent so we can try swapping its operands.
8895 (vect_build_slp_tree): Try swapping operands if they have
8896 a mismatched operand kind.
8898 2014-10-20 Alan Modra <amodra@gmail.com>
8901 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
8902 Increase "ops" array size. Correct array size tests. Init
8903 n_constants in loop. Break out of innermost loop when finding
8904 a trivial CONST expression.
8906 2014-10-20 Martin Liska <mliska@suse.cz>
8909 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
8910 Gimple tempate string is compared.
8912 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
8914 * varasm.c (const_alias_set): Remove.
8915 (init_varasm_once): Remove initialization of const_alias_set.
8916 (build_constant_desc): Do not set alias set to const_alias_set.
8918 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
8920 * configure: Regenerate.
8921 * configure.ac: Move the test for section attribute specifier "e" in GAS
8922 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
8923 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
8924 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
8925 ifdef HAVE_GAS_SECTION_EXCLUDE.
8927 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
8929 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
8930 match_operand expression.
8932 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
8933 David Edelsohn <dje.gcc@gmail.com>
8935 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
8937 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8939 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
8941 * doc/invoke.texi (Options to Request or Suppress Warnings):
8942 Explain options precedence.
8943 (Wtrampolines): Do not indent paragraph.
8945 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
8947 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
8948 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
8949 (pa_jump_in_call_delay): Likewise.
8950 * config/pa/pa.c (pa_option_override): Remove jump in call delay
8952 (pa_output_millicode_call): Remove support for jump in call delay.
8953 (pa_output_call): Likewise.
8954 (pa_jump_in_call_delay): Delete.
8955 (pa_following_call): Likewise.
8956 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
8957 (uncond_branch): Remove following call check from attribute length.
8959 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
8962 * config/sh/sh-modes.def (PSI): Remove.
8963 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
8964 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
8965 (sh_reorg): Remove commented out FPSCR code.
8966 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
8967 insn instead of move insn.
8968 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
8969 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
8971 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
8972 (sh1_builtin_p): Uncomment.
8973 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
8974 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
8975 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
8976 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
8977 (general_movsrc_operand, general_movdst_operand): Disallow
8979 * config/sh/sh.md (FPSCR_FR): New constant.
8980 (push_fpscr): Emit sts_fpscr insn.
8981 (pop_fpscr): Emit lds_fpscr_insn.
8982 (movsi_ie): Disallow FPSCR operands.
8983 (fpu_switch, unnamed related split, extend_psi_si,
8984 truncate_si_psi): Remove insns.
8985 (lds_fpscr, sts_fpscr): New insns.
8986 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
8989 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
8991 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
8992 (clone_inlined_nodes): Do not overwrite the clone if above predicate
8995 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
8997 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
8998 (expand_vec_perm_d): Ditto.
8999 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
9000 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
9002 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
9003 (ix86_expand_sse_unpack): Handle V64QImode.
9004 (expand_vec_perm_blend): Update conditions for TARGET, handle
9005 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
9006 (expand_vec_perm_pshufb): Handle V64QImode.
9007 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
9008 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
9009 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
9010 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
9011 (ix86_expand_vecop_qihi): Handle V64QImode.
9012 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
9013 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
9014 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
9015 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
9016 (mul<mode>3): Use VI1_AVX512.
9017 (<sse2_avx2>_packsswb): Ditto.
9018 (<sse2_avx2>_packuswb): Ditto.
9019 (<ssse3_avx2>_pshufb<mode>3): Ditto.
9020 (<shift_insn><mode>3): Ditto.
9022 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
9024 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
9025 conditions to fix bootstrap.
9027 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
9029 gcc-plugin.h: Add tm.h and flattened includes from function.h.
9031 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
9032 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9033 Anna Tikhonova <anna.tikhonova@intel.com>
9034 Ilya Tocar <ilya.tocar@intel.com>
9035 Andrey Turetskiy <andrey.turetskiy@intel.com>
9036 Ilya Verbin <ilya.verbin@intel.com>
9037 Kirill Yukhin <kirill.yukhin@intel.com>
9038 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9040 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
9041 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
9042 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
9043 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
9044 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
9045 (define_expand "vec_init<mode>"): Use VF48_I1248.
9047 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
9048 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9049 Anna Tikhonova <anna.tikhonova@intel.com>
9050 Ilya Tocar <ilya.tocar@intel.com>
9051 Andrey Turetskiy <andrey.turetskiy@intel.com>
9052 Ilya Verbin <ilya.verbin@intel.com>
9053 Kirill Yukhin <kirill.yukhin@intel.com>
9054 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9056 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
9057 expand_sse2_mulvxdi3.
9059 2014-10-17 Richard Biener <rguenther@suse.de>
9061 * fold-const.c (fold_comparison): Remove redundant constant
9062 folding and operand swapping.
9063 (fold_binary_loc): Do comparison operand swapping here.
9064 (fold_ternary_loc): Canonicalize operand order for
9065 commutative ternary operations.
9066 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
9069 2014-10-17 Jakub Jelinek <jakub@redhat.com>
9071 PR tree-optimization/63464
9072 * gimple.h (gimple_seq_discard): New prototype.
9073 * gimple.c: Include stringpool.h and tree-ssanames.h.
9074 (gimple_seq_discard): New function.
9075 * optabs.h (lshift_cheap_p): New prototype.
9076 * optabs.c (lshift_cheap_p): New function, moved from...
9077 * tree-switch-conversion.c (lshift_cheap_p): ... here.
9078 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
9079 (reassoc_branch_fixups): New variable.
9080 (update_range_test): Add otherrangep and seq arguments.
9081 Unshare exp. If otherrange is NULL, use for other ranges
9082 array of pointers pointed by otherrangep instead.
9083 Emit seq before gimplified statements for tem.
9084 (optimize_range_tests_diff): Adjust update_range_test
9086 (optimize_range_tests_xor): Likewise. Fix up comment.
9087 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
9089 (optimize_range_tests): Adjust update_range_test caller.
9090 Call optimize_range_tests_to_bit_test.
9091 (branch_fixup): New function.
9092 (execute_reassoc): Call branch_fixup.
9094 PR tree-optimization/63302
9095 * tree-ssa-reassoc.c (optimize_range_tests_xor,
9096 optimize_range_tests_diff): Use !integer_pow2p () instead of
9099 2014-10-17 Martin Liska <mliska@suse.cz>
9101 * ipa-icf.c (sem_function::merge): Local flags are set to false
9102 to enforce equal calling convention to be used.
9103 * opts.c (common_handle_option): Indentation fix.
9105 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
9107 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
9109 2014-10-17 Tom de Vries <tom@codesourcery.com>
9111 PR rtl-optimization/61605
9112 * regcprop.c (copyprop_hardreg_forward_1): Use
9113 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
9115 2014-10-17 Tom de Vries <tom@codesourcery.com>
9117 PR rtl-optimization/61605
9118 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p. Don't
9119 notice stores for noops. Don't regard noops as copies.
9121 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
9123 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
9124 register in a special way.
9125 (__cpuid_count): Ditto.
9126 * config/i386/driver-i386.h: Protect with
9127 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
9128 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
9129 is required to compile the function.
9131 2014-10-16 DJ Delorie <dj@redhat.com>
9133 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
9136 * config/rs6000/rs6000-c.c (rid_int128): New.
9137 (rs6000_macro_to_expand): Use instead of RID_INT128.
9139 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
9141 * function.h: Flatten file. Remove includes, adjust prototypes to
9142 reflect only what is in function.h.
9143 (enum direction, struct args_size, struct locate_and_pad_arg_data,
9144 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
9146 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
9147 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
9148 prototypes to predict.h.
9149 (init_varasm_status): Move prototype to varasm.h.
9150 * expr.h: Adjust include files.
9151 (enum direction, struct args_size, struct locate_and_pad_arg_data,
9152 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
9154 (locate_and_pad_parm): Move prototype to function.h.
9155 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
9156 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
9157 assign_temp, reposition_prologue_and_epilogue_notes,
9158 prologue_epilogue_contains, sibcall_epilogue_contains,
9159 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
9160 set_return_jump_label): Move prototypes to function.h.
9161 * predict.h (optimize_function_for_size_p,
9162 optimize_function_for_speed_p): Relocate prototypes from function.h.
9163 * shrink-wrap.h (emit_return_into_block, active_insn_between,
9164 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
9166 * varasm.h (init_varasm_status): Relocate prototype from function.h.
9167 * genattrtab.c (write_header): Add predict.h to include list.
9168 * genconditions.c (write_header): Add predict.h to include list.
9169 * genemit.c (main): Adjust header file includes.
9170 * gengtype.c (ifiles): Add flattened function.h header files.
9171 * genoutput.c (output_prologue): Add predict.h to include list.
9172 * genpreds.c (write_insn_preds_c): Adjust header file includes.
9173 * genrecog.c (write_header): Add flattened function.h header files.
9174 * alias.c: Adjust include files.
9175 * auto-inc-dec.c: Likewise.
9176 * basic-block.h: Likewise.
9177 * bb-reorder.c: Likewise.
9178 * bt-load.c: Likewise.
9179 * builtins.c: Likewise.
9180 * caller-save.c: Likewise.
9181 * calls.c: Likewise.
9182 * cfgbuild.c: Likewise.
9183 * cfgcleanup.c: Likewise.
9184 * cfgexpand.c: Likewise.
9185 * cfgloop.c: Likewise.
9186 * cfgloop.h: Likewise.
9187 * cfgrtl.c: Likewise.
9188 * cgraph.h: Likewise.
9189 * cgraphclones.c: Likewise.
9190 * cgraphunit.c: Likewise.
9191 * combine-stack-adj.c: Likewise.
9192 * combine.c: Likewise.
9193 * coverage.c: Likewise.
9194 * cprop.c: Likewise.
9196 * cselib.c: Likewise.
9197 * dbxout.c: Likewise.
9199 * df-core.c: Likewise.
9200 * df-problems.c: Likewise.
9201 * df-scan.c: Likewise.
9202 * dojump.c: Likewise.
9203 * dwarf2cfi.c: Likewise.
9204 * dwarf2out.c: Likewise.
9205 * emit-rtl.c: Likewise.
9206 * except.c: Likewise.
9207 * explow.c: Likewise.
9209 * final.c: Likewise.
9210 * function.c: Likewise.
9212 * gimple-fold.c: Likewise.
9213 * gimple-low.c: Likewise.
9214 * gimple-streamer.h: Likewise.
9215 * haifa-sched.c: Likewise.
9216 * ifcvt.c: Likewise.
9220 * loop-invariant.c: Likewise.
9221 * lra-assigns.c: Likewise.
9222 * lra-coalesce.c: Likewise.
9223 * lra-constraints.c: Likewise.
9224 * lra-eliminations.c: Likewise.
9225 * lra-lives.c: Likewise.
9226 * lra-spills.c: Likewise.
9228 * lto-cgraph.c: Likewise.
9229 * lto-section-in.c: Likewise.
9230 * lto-section-out.c: Likewise.
9231 * lto-streamer-in.c: Likewise.
9232 * lto-streamer-out.c: Likewise.
9233 * mode-switching.c: Likewise.
9234 * modulo-sched.c: Likewise.
9235 * omp-low.c: Likewise.
9236 * optabs.c: Likewise.
9237 * passes.c: Likewise.
9238 * postreload-gcse.c: Likewise.
9239 * postreload.c: Likewise.
9240 * predict.c: Likewise.
9241 * profile.c: Likewise.
9242 * recog.c: Likewise.
9244 * reg-stack.c: Likewise.
9245 * regcprop.c: Likewise.
9246 * reginfo.c: Likewise.
9247 * regrename.c: Likewise.
9248 * reload.c: Likewise.
9249 * reload1.c: Likewise.
9250 * reorg.c: Likewise.
9251 * resource.c: Likewise.
9252 * rtlanal.c: Likewise.
9253 * sched-deps.c: Likewise.
9254 * sched-ebb.c: Likewise.
9255 * sched-rgn.c: Likewise.
9256 * sel-sched-dump.c: Likewise.
9257 * sel-sched-ir.c: Likewise.
9258 * sel-sched.c: Likewise.
9259 * shrink-wrap.c: Likewise.
9260 * simplify-rtx.c: Likewise.
9261 * statistics.c: Likewise.
9263 * stor-layout.c: Likewise.
9264 * store-motion.c: Likewise.
9265 * symtab.c: Likewise.
9266 * targhooks.c: Likewise.
9267 * toplev.c: Likewise.
9268 * trans-mem.c: Likewise.
9269 * tree-cfg.c: Likewise.
9270 * tree-cfgcleanup.c: Likewise.
9271 * tree-dfa.c: Likewise.
9272 * tree-eh.c: Likewise.
9273 * tree-inline.c: Likewise.
9274 * tree-into-ssa.c: Likewise.
9275 * tree-nested.c: Likewise.
9276 * tree-nrv.c: Likewise.
9277 * tree-profile.c: Likewise.
9278 * tree-ssa-alias.c: Likewise.
9279 * tree-ssa-ccp.c: Likewise.
9280 * tree-ssa-copy.c: Likewise.
9281 * tree-ssa-copyrename.c: Likewise.
9282 * tree-ssa-dom.c: Likewise.
9283 * tree-ssa-operands.c: Likewise.
9284 * tree-ssa-propagate.c: Likewise.
9285 * tree-ssa-structalias.c: Likewise.
9286 * tree-ssa-tail-merge.c: Likewise.
9287 * tree-ssa-threadedge.c: Likewise.
9288 * tree-ssa-threadupdate.c: Likewise.
9289 * tree-ssa-uncprop.c: Likewise.
9290 * tree-ssa-uninit.c: Likewise.
9291 * tree-ssa.c: Likewise.
9292 * tree-stdarg.c: Likewise.
9293 * tree-tailcall.c: Likewise.
9296 * valtrack.c: Likewise.
9297 * varasm.c: Likewise.
9298 * vmsdbgout.c: Likewise.
9300 * config/aarch64/aarch64.c: Add flattened includes from function.h.
9301 * config/alpha/alpha.c: Likewise.
9302 * config/arc/arc.c: Likewise.
9303 * config/arm/arm.c: Likewise.
9304 * config/avr/avr-log.c: Likewise.
9305 * config/avr/avr.c: Likewise.
9306 * config/bfin/bfin.c: Likewise.
9307 * config/c6x/c6x.c: Likewise.
9308 * config/cr16/cr16.c: Likewise.
9309 * config/cris/cris.c: Likewise.
9310 * config/darwin.c: Likewise.
9311 * config/epiphany/epiphany.c: Likewise.
9312 * config/epiphany/mode-switch-use.c: Likewise.
9313 * config/epiphany/resolve-sw-modes.c: Likewise.
9314 * config/fr30/fr30.c: Likewise.
9315 * config/frv/frv.c: Likewise.
9316 * config/h8300/h8300.c: Likewise.
9317 * config/i386/i386.c: Likewise.
9318 * config/ia64/ia64.c: Likewise.
9319 * config/iq2000/iq2000.c: Likewise.
9320 * config/lm32/lm32.c: Likewise.
9321 * config/m32c/m32c.c: Likewise.
9322 * config/m32r/m32r.c: Likewise.
9323 * config/m68k/m68k.c: Likewise.
9324 * config/mcore/mcore.c: Likewise.
9325 * config/mep/mep-pragma.c: Likewise.
9326 * config/mep/mep.c: Likewise.
9327 * config/microblaze/microblaze.c: Likewise.
9328 * config/mips/mips.c: Likewise.
9329 * config/mmix/mmix.c: Likewise.
9330 * config/mn10300/mn10300.c: Likewise.
9331 * config/moxie/moxie.c: Likewise.
9332 * config/msp430/msp430.c: Likewise.
9333 * config/nds32/nds32-cost.c: Likewise.
9334 * config/nds32/nds32-fp-as-gp.c: Likewise.
9335 * config/nds32/nds32-intrinsic.c: Likewise.
9336 * config/nds32/nds32-isr.c: Likewise.
9337 * config/nds32/nds32-md-auxiliary.c: Likewise.
9338 * config/nds32/nds32-memory-manipulation.c: Likewise.
9339 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9340 * config/nds32/nds32-predicates.c: Likewise.
9341 * config/nds32/nds32.c: Likewise.
9342 * config/nios2/nios2.c: Likewise.
9343 * config/pa/pa.c: Likewise.
9344 * config/pdp11/pdp11.c: Likewise.
9345 * config/rl78/rl78.c: Likewise.
9346 * config/rs6000/rs6000.c: Likewise.
9347 * config/rx/rx.c: Likewise.
9348 * config/s390/s390.c: Likewise.
9349 * config/score/score.c: Likewise.
9350 * config/sh/sh.c: Likewise.
9351 * config/sparc/sparc.c: Likewise.
9352 * config/spu/spu.c: Likewise.
9353 * config/stormy16/stormy16.c: Likewise.
9354 * config/tilegx/tilegx.c: Likewise.
9355 * config/tilepro/tilepro.c: Likewise.
9356 * config/v850/v850.c: Likewise.
9357 * config/vax/vax.c: Likewise.
9358 * config/xtensa/xtensa.c: Likewise.
9360 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
9362 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
9363 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
9365 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
9367 * config/sh/sh-protos.h (fldi_ok): Remove.
9368 * config/sh/sh.c (fldi_ok): Likewise.
9369 (sh_secondary_reload): Don't use fldi_ok.
9370 * config/sh/constraints.md (G constraint, H constraint): Don't use
9373 2014-10-16 Martin Liska <mliska@suse.cz>
9375 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
9376 Cast to unsigned long.
9377 (sem_item_optimizer::dump_cong_classes): Likewise.
9379 2014-10-16 Tom de Vries <tom@codesourcery.com>
9381 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
9382 with SSA_NAME_IN_FREELIST.
9384 2014-10-16 Richard Biener <rguenther@suse.de>
9387 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
9388 (fold_builtin_strncat_chk): Move ...
9389 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
9390 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
9392 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
9395 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
9398 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
9399 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9400 Anna Tikhonova <anna.tikhonova@intel.com>
9401 Ilya Tocar <ilya.tocar@intel.com>
9402 Andrey Turetskiy <andrey.turetskiy@intel.com>
9403 Ilya Verbin <ilya.verbin@intel.com>
9404 Kirill Yukhin <kirill.yukhin@intel.com>
9405 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9407 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
9410 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
9411 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9412 Anna Tikhonova <anna.tikhonova@intel.com>
9413 Ilya Tocar <ilya.tocar@intel.com>
9414 Andrey Turetskiy <andrey.turetskiy@intel.com>
9415 Ilya Verbin <ilya.verbin@intel.com>
9416 Kirill Yukhin <kirill.yukhin@intel.com>
9417 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9419 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
9420 V16SI, V32HI, V64QI modes.
9422 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
9425 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
9426 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
9428 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
9429 to match fp insn patterns.
9430 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
9432 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
9433 expand_df_unop, expand_df_binop): Remove.
9434 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
9435 FPSCR_STAT_REG as not call clobbered.
9436 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
9437 invoking fpscr_set_from_mem.
9439 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
9440 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
9442 (REGISTER_NAMES): Adjust.
9443 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
9444 (FIRST_PSEUDO_REGISTER): Increase to 156.
9445 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
9446 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
9448 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
9449 FPSCR_MODES_REG and FPSCR_STAT_REG.
9450 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
9452 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
9453 FPSCR_SZ): Add new constants.
9454 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
9456 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
9457 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
9458 Use TARGET_FPU_ANY condition.
9459 (fpu_switch peephole2): Remove.
9460 (fpu_switch split): Use simple_mem_operand to capture the mem and
9461 adjust split implementation.
9462 (extend_psi_si, truncate_si_psi): New insns.
9463 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
9464 set of FPSCR_MODES_REG.
9466 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
9467 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
9468 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
9469 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
9470 call_value_compact, call_value_compact_rettramp, call,
9471 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
9472 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
9473 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
9474 sibcall_value_compact, sibcall_value, call_value_pop_compact,
9475 call_value_pop_compact_rettramp, various unnamed splits):
9476 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
9479 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
9480 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
9481 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
9482 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
9483 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
9485 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
9486 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
9487 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
9488 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
9489 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
9490 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
9491 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
9493 2014-10-16 Martin Liska <mliska@suse.cz>
9494 Jan Hubicka <hubicka@ucw.cz>
9496 * Makefile.in: New object files included.
9497 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
9499 (verify_edge_corresponds_to_fndecl): More sensitive verification
9500 of nodes that are merged by IPA ICF.
9501 * cgraph.h (cgraph_node::num_references): New function.
9502 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
9503 * common.opt: New options ipa-icf, ipa-icf-functions and
9504 ipa-icf-variables introduced.
9505 * doc/invoke.texi: Documentation of new options introduced.
9506 * ipa-icf-gimple.c: New file.
9507 * ipa-icf-gimple.h: New file.
9508 * ipa-icf.c: New file.
9509 * ipa-icf.h: New file.
9510 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
9511 (input_overwrite_node): Likewise.
9512 * lto-section-in.c: New icf section added.
9513 * lto-streamer.h (enum lto_section_type): Likewise.
9514 * opts.c (common_handle_option): New option added.
9515 * passes.def: New pass included.
9516 * timevar.def: Time variable for IPA ICF added.
9517 * tree-pass.h: New IPA ICF pass entry point added.
9519 2014-10-16 Richard Biener <rguenther@suse.de>
9521 PR tree-optimization/63168
9522 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
9523 latches if after merging they are no longer simple.
9524 * cfghooks.c (merge_blocks): Handle merging a latch block
9527 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
9528 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9529 Anna Tikhonova <anna.tikhonova@intel.com>
9530 Ilya Tocar <ilya.tocar@intel.com>
9531 Andrey Turetskiy <andrey.turetskiy@intel.com>
9532 Ilya Verbin <ilya.verbin@intel.com>
9533 Kirill Yukhin <kirill.yukhin@intel.com>
9534 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9536 * config/i386/sse.md
9537 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
9538 support AVX-512VL instructions.
9540 2014-10-16 DJ Delorie <dj@redhat.com>
9542 * tree-core.h: Fix comment to not assume pointers are multiples of
9545 2014-10-15 Tom Tromey <tromey@redhat.com>
9547 * timevar.h (class auto_timevar): New class.
9549 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
9552 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
9553 Remove the second alternative.
9554 (regprefix): Remove mode attribute.
9555 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
9556 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
9559 2013-11-05 Ian Lance Taylor <iant@google.com>
9561 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
9562 If possible, add .cfi directives to record change to bx.
9563 * config/i386/i386.c (ix86_emit_cfi): New function.
9564 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
9566 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
9569 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
9571 * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
9574 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
9576 PR rtl-optimization/63448
9577 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
9578 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
9579 (LRA_MAX_INHERITANCE_PASSES): Use it.
9580 (lra_constraint_iter_after_spill): Remove.
9581 (lra_assignment_iter): New.
9582 (lra_assignment_iter_after_spill): New.
9583 * lra-assigns.c (lra_assignment_iter): New.
9584 (lra_assignment_iter_after_spill): New.
9585 (former_reload_pseudo_spill_p): New.
9586 (spill_for): Set up former_reload_pseudo_spill_p.
9587 (setup_live_pseudos_and_spill_after_risky): Ditto.
9588 (assign_by_spills): Ditto.
9589 (lra_assign): Increment lra_assignment_iter. Print the iteration
9590 number. Reset former_reload_pseudo_spill_p. Check
9591 lra_assignment_iter_after_spill.
9592 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
9593 lra_assignment_iter and lra_assignment_iter_after_spill.
9594 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
9595 (lra_constraints): Remove code with
9596 lra_assignment_iter_after_spill.
9598 2014-10-15 Teresa Johnson <tejohnson@google.com>
9601 * tree-ssa-threadupdate.c (recompute_probabilities): Better
9604 2014-10-15 Renlin Li <renlin.li@arm.com>
9606 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9607 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
9608 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
9609 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
9611 2014-10-15 Richard Biener <rguenther@suse.de>
9613 * gimple-fold.c (gimple_fold_call): Properly keep virtual
9614 SSA form up-to-date when devirtualizing a call to
9615 __builtin_unreachable and avoid fixing up EH info here.
9617 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
9618 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9619 Anna Tikhonova <anna.tikhonova@intel.com>
9620 Ilya Tocar <ilya.tocar@intel.com>
9621 Andrey Turetskiy <andrey.turetskiy@intel.com>
9622 Ilya Verbin <ilya.verbin@intel.com>
9623 Kirill Yukhin <kirill.yukhin@intel.com>
9624 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9626 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
9627 to support AVX-512BW.
9628 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
9629 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
9630 (define_insn "*<plusminus_insn><mode>3"): Ditto.
9631 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
9632 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
9633 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
9634 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
9635 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
9636 (define_insn "*andnot<mode>3"): Ditto.
9637 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
9638 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
9639 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
9640 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
9641 (define_insn "*abs<mode>2"): Remove masking support.
9642 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
9643 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
9644 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
9646 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
9647 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9648 Anna Tikhonova <anna.tikhonova@intel.com>
9649 Ilya Tocar <ilya.tocar@intel.com>
9650 Andrey Turetskiy <andrey.turetskiy@intel.com>
9651 Ilya Verbin <ilya.verbin@intel.com>
9652 Kirill Yukhin <kirill.yukhin@intel.com>
9653 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9655 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
9656 * config/i386/sse.md
9657 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
9658 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
9659 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
9660 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
9661 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
9662 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
9663 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
9665 2014-10-15 Renlin Li <renlin.li@arm.com>
9667 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
9669 2014-10-15 Jakub Jelinek <jakub@redhat.com>
9671 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
9672 MINUS_EXPR in unsigned type to avoid undefined behavior.
9674 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
9676 * stor-layout.c (self_referential_size): Do not promote arguments.
9678 2014-10-15 Marek Polacek <polacek@redhat.com>
9680 * doc/invoke.texi: Update to reflect that GNU11 is the default
9682 * c-common.h (c_language_kind): Update comment.
9684 2014-10-15 Richard Biener <rguenther@suse.de>
9686 * hash-table.c: Include bconfig.h if building for the host.
9687 * hash-table.h: Do not include ggc.h on the host but just declare
9688 a few ggc allocation templates.
9690 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
9691 Jeff Law <law@redhat.com>
9693 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
9694 multiple hard registers, use smaller mode derived from MODE.
9696 2014-10-15 Andreas Schwab <schwab@suse.de>
9698 * explow.c (convert_memory_address_addr_space_1): Mark in_const
9699 as ATTRIBUTE_UNUSED.
9701 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
9703 * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
9704 (decide_unrolling): ... this one.
9705 (peel_loops_completely): Remove.
9706 (decide_peel_simple): Remove.
9707 (decide_peel_once_rolling): Remove.
9708 (decide_peel_completely): Remove.
9709 (peel_loop_simple): Remove.
9710 (peel_loop_completely): Remove.
9711 (unroll_and_peel_loops): Rename to ...
9712 (unroll_loops): ... this one; handle only unrolling.
9713 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
9716 (unroll_and_peel_loops): Remove.
9717 (unroll_loops): New.
9718 * passes.def: Replace
9719 pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
9720 * loop-init.c (gate_rtl_unroll_and_peel_loops,
9721 rtl_unroll_and_peel_loops): Rename to ...
9722 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
9723 (pass_rtl_unroll_and_peel_loops): Rename to ...
9724 (pass_rtl_unroll_loops): ... this one.
9725 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
9726 (make_pass_rtl_unroll_loops): New.
9727 * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
9728 (canonicalize_loop_induction_variables): Update.
9730 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
9732 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
9733 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
9734 !TARGET_HARD_FLOAT_POSTINC.
9735 (*lsip, *ssip): new instructions.
9737 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
9739 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
9742 2014-10-14 Andrew Pinski <apinski@cavium.com>
9744 * explow.c (convert_memory_address_addr_space): Rename to ...
9745 (convert_memory_address_addr_space_1): This. Add in_const argument.
9746 Inside a CONST RTL, permute the conversion and addition of constant
9747 for zero and sign extended pointers.
9748 (convert_memory_address_addr_space): New function.
9750 2014-10-14 Andrew Pinski <apinski@cavium.com>
9753 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
9756 * explow.c (convert_memory_address_addr_space): Also permute the
9757 conversion and addition of constant for zero-extend.
9759 2014-10-14 DJ Delorie <dj@redhat.com>
9761 * config/msp430/msp430-modes.def (PSI): Add.
9763 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
9764 (msp430_hard_regno_nregs_with_padding): New.
9765 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
9766 (msp430_hard_regno_nregs_has_padding): New.
9767 (msp430_hard_regno_nregs_with_padding): New.
9768 (msp430_unwind_word_mode): Use PSImode instead of SImode.
9769 (msp430_addr_space_legitimate_address_p): New.
9770 (msp430_asm_integer): New.
9771 (msp430_init_dwarf_reg_sizes_extra): New.
9772 (msp430_print_operand): Use X suffix for PSImode even in small model.
9773 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
9774 (PTR_SIZE): ...but 4 bytes for EH.
9775 (SIZE_TYPE): Use __int20.
9776 (PTRDIFF_TYPE): Likewise.
9777 (INCOMING_FRAME_SP_OFFSET): Adjust.
9778 * config/msp430/msp430.md (movqi_topbyte): New.
9779 (movpsi): Use fixed suffixes.
9780 (movsipsi2): Enable for 430X, not large model.
9781 (extendhipsi2): Likewise.
9782 (zero_extendhisi2): Likewise.
9783 (zero_extendhisipsi2): Likewise.
9784 (extend_and_shift1_hipsi2): Likewise.
9785 (extendpsisi2): Likewise.
9786 (*bitbranch<mode>4_z): Fix suffix logic.
9788 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
9791 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
9792 do not choke on null node.
9793 <VAR_DECL>: Likewise.
9795 2014-10-14 DJ Delorie <dj@redhat.com>
9797 * machmode.h (int_n_data_t): New.
9798 (int_n_enabled_p): New.
9800 * tree.c (int_n_enabled_p): New.
9802 (make_or_reuse_type): Check for all __intN types, not just
9804 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
9806 * tree.h (int128_integer_type_node): Remove.
9807 (int128_unsigned_type_node): Remove.
9808 (int_n_trees_t): New.
9809 (int_n_enabled_p): New.
9811 * toplev.c (standard_type_bitsize): New.
9812 (do_compile): Check which __intN types are enabled for the current
9814 * builtin-types.def (BT_INT128): Remove.
9815 (BT_UINT128): Remove.
9816 * machmode.def: Add macro to create __int128 for all targets.
9817 * stor-layout.c (mode_for_size): Support __intN types.
9818 (smallest_mode_for_size): Likewise.
9819 (initialize_sizetypes): Support __intN types.
9820 * genmodes.c (struct mode_data): Add int_n field.
9821 (blank_mode): Likewise.
9824 (emit_insn_modes_h): Count __intN entries and define
9826 (emit_mode_int_n): New.
9827 (emit_insn_modes_c): Call it.
9828 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
9829 types, not just __int128.
9830 * tree-core.h (integer_type_kind): Remove __int128-specific
9831 entries, reserve spots for __intN entries.
9833 * config/msp430/msp430-modes.def (PSI): Add.
9835 2014-10-14 Kito Cheng <kito@0xlab.org>
9837 * ira.c: Fix typo in comment.
9839 * ira-build.c: Ditto.
9840 * ira-color.c: Ditto.
9841 * ira-emit.c: Ditto.
9843 * ira-lives.c: Ditto.
9845 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
9847 PR rtl-optimization/63475
9848 * alias.c (true_dependence_1): Always use get_addr to extract
9849 true address operands from x_addr and mem_addr. Use extracted
9850 address operands to check for references with alignment ANDs.
9851 Use extracted address operands with find_base_term and
9852 base_alias_check. For noncanonicalized operands call canon_rtx with
9853 extracted address operand.
9854 (write_dependence_1): Ditto.
9855 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
9857 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
9860 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
9863 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9864 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9865 Anna Tikhonova <anna.tikhonova@intel.com>
9866 Ilya Tocar <ilya.tocar@intel.com>
9867 Andrey Turetskiy <andrey.turetskiy@intel.com>
9868 Ilya Verbin <ilya.verbin@intel.com>
9869 Kirill Yukhin <kirill.yukhin@intel.com>
9870 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9872 * config/i386/i386.c
9873 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
9874 (ix86_expand_int_vcond): Ditto.
9876 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9877 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9878 Anna Tikhonova <anna.tikhonova@intel.com>
9879 Ilya Tocar <ilya.tocar@intel.com>
9880 Andrey Turetskiy <andrey.turetskiy@intel.com>
9881 Ilya Verbin <ilya.verbin@intel.com>
9882 Kirill Yukhin <kirill.yukhin@intel.com>
9883 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9885 * config/i386/i386.c
9886 (emit_reduc_half): Handle V64QI and V32HI mode.
9887 * config/i386/sse.md
9888 (define_mode_iterator VI_AVX512BW): New.
9889 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
9891 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9892 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9893 Anna Tikhonova <anna.tikhonova@intel.com>
9894 Ilya Tocar <ilya.tocar@intel.com>
9895 Andrey Turetskiy <andrey.turetskiy@intel.com>
9896 Ilya Verbin <ilya.verbin@intel.com>
9897 Kirill Yukhin <kirill.yukhin@intel.com>
9898 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9900 * config/i386/sse.md
9901 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
9903 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9904 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9905 Anna Tikhonova <anna.tikhonova@intel.com>
9906 Ilya Tocar <ilya.tocar@intel.com>
9907 Andrey Turetskiy <andrey.turetskiy@intel.com>
9908 Ilya Verbin <ilya.verbin@intel.com>
9909 Kirill Yukhin <kirill.yukhin@intel.com>
9910 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9912 * config/i386/i386.c
9913 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
9914 * config/i386/sse.md
9915 (define_mode_iterator VI): Add V64QI and V32HI modes.
9917 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9918 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9919 Anna Tikhonova <anna.tikhonova@intel.com>
9920 Ilya Tocar <ilya.tocar@intel.com>
9921 Andrey Turetskiy <andrey.turetskiy@intel.com>
9922 Ilya Verbin <ilya.verbin@intel.com>
9923 Kirill Yukhin <kirill.yukhin@intel.com>
9924 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9926 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
9928 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9929 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9930 Anna Tikhonova <anna.tikhonova@intel.com>
9931 Ilya Tocar <ilya.tocar@intel.com>
9932 Andrey Turetskiy <andrey.turetskiy@intel.com>
9933 Ilya Verbin <ilya.verbin@intel.com>
9934 Kirill Yukhin <kirill.yukhin@intel.com>
9935 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9937 * config/i386/sse.md
9938 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
9939 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
9941 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9942 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9943 Anna Tikhonova <anna.tikhonova@intel.com>
9944 Ilya Tocar <ilya.tocar@intel.com>
9945 Andrey Turetskiy <andrey.turetskiy@intel.com>
9946 Ilya Verbin <ilya.verbin@intel.com>
9947 Kirill Yukhin <kirill.yukhin@intel.com>
9948 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9950 * config/i386/sse.md
9951 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
9952 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
9954 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9955 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9956 Anna Tikhonova <anna.tikhonova@intel.com>
9957 Ilya Tocar <ilya.tocar@intel.com>
9958 Andrey Turetskiy <andrey.turetskiy@intel.com>
9959 Ilya Verbin <ilya.verbin@intel.com>
9960 Kirill Yukhin <kirill.yukhin@intel.com>
9961 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9963 * config/i386/sse.md
9964 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
9965 (define_mode_iterator VI2_AVX2): Add V32HI mode.
9966 (define_expand "mul<mode>3<mask_name>"): Add masking.
9967 (define_insn "*mul<mode>3<mask_name>"): Ditto.
9968 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
9969 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
9970 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
9971 (define_mode_attr SDOT_PMADD_SUF): Ditto.
9972 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
9973 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
9974 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
9975 (define_insn "avx2_packusdw"): Delete.
9976 (define_insn "sse4_1_packusdw"): Ditto.
9977 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
9979 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9980 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9981 Anna Tikhonova <anna.tikhonova@intel.com>
9982 Ilya Tocar <ilya.tocar@intel.com>
9983 Andrey Turetskiy <andrey.turetskiy@intel.com>
9984 Ilya Verbin <ilya.verbin@intel.com>
9985 Kirill Yukhin <kirill.yukhin@intel.com>
9986 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9988 * config/i386/sse.md
9989 (define_insn "vec_dup<mode>"): Update constraints.
9991 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
9992 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9993 Anna Tikhonova <anna.tikhonova@intel.com>
9994 Ilya Tocar <ilya.tocar@intel.com>
9995 Andrey Turetskiy <andrey.turetskiy@intel.com>
9996 Ilya Verbin <ilya.verbin@intel.com>
9997 Kirill Yukhin <kirill.yukhin@intel.com>
9998 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10000 * config/i386/sse.md
10001 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
10002 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
10003 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
10005 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10006 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10007 Anna Tikhonova <anna.tikhonova@intel.com>
10008 Ilya Tocar <ilya.tocar@intel.com>
10009 Andrey Turetskiy <andrey.turetskiy@intel.com>
10010 Ilya Verbin <ilya.verbin@intel.com>
10011 Kirill Yukhin <kirill.yukhin@intel.com>
10012 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10014 * config/i386/sse.md
10015 (define_expand "mul<mode>3<mask_name>"): Add masking.
10017 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10018 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10019 Anna Tikhonova <anna.tikhonova@intel.com>
10020 Ilya Tocar <ilya.tocar@intel.com>
10021 Andrey Turetskiy <andrey.turetskiy@intel.com>
10022 Ilya Verbin <ilya.verbin@intel.com>
10023 Kirill Yukhin <kirill.yukhin@intel.com>
10024 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10026 * config/i386/sse.md
10027 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
10028 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
10030 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10031 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10032 Anna Tikhonova <anna.tikhonova@intel.com>
10033 Ilya Tocar <ilya.tocar@intel.com>
10034 Andrey Turetskiy <andrey.turetskiy@intel.com>
10035 Ilya Verbin <ilya.verbin@intel.com>
10036 Kirill Yukhin <kirill.yukhin@intel.com>
10037 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10039 * config/i386/sse.md
10040 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
10041 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
10042 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
10045 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10046 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10047 Anna Tikhonova <anna.tikhonova@intel.com>
10048 Ilya Tocar <ilya.tocar@intel.com>
10049 Andrey Turetskiy <andrey.turetskiy@intel.com>
10050 Ilya Verbin <ilya.verbin@intel.com>
10051 Kirill Yukhin <kirill.yukhin@intel.com>
10052 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10054 * config/i386/sse.md
10055 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
10056 use VF_128_256 mode iterator and update assembler emit code.
10057 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
10058 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
10059 Add masking, use VF_128_256 mode iterator.
10060 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
10061 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
10062 Add masking, use VF_128_256 mode iterator and update assembler emit
10064 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
10065 (define_mode_attr avx512flogicsuff): Delete.
10066 (define_insn "avx512f_<logic><mode>"): Ditto.
10067 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
10069 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
10071 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10072 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10073 Anna Tikhonova <anna.tikhonova@intel.com>
10074 Ilya Tocar <ilya.tocar@intel.com>
10075 Andrey Turetskiy <andrey.turetskiy@intel.com>
10076 Ilya Verbin <ilya.verbin@intel.com>
10077 Kirill Yukhin <kirill.yukhin@intel.com>
10078 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10080 * config/i386/sse.md
10081 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
10082 (define_expand "vashr<mode>3<mask_name>"): Add masking,
10083 use VI12_128 mode iterator.
10084 (define_expand "ashrv2di3<mask_name>"): New.
10086 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10087 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10088 Anna Tikhonova <anna.tikhonova@intel.com>
10089 Ilya Tocar <ilya.tocar@intel.com>
10090 Andrey Turetskiy <andrey.turetskiy@intel.com>
10091 Ilya Verbin <ilya.verbin@intel.com>
10092 Kirill Yukhin <kirill.yukhin@intel.com>
10093 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10095 * config/i386/i386.c
10096 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
10097 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
10098 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
10099 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
10100 CODE_FOR_avx512vl_ucmpv4si3_mask.
10101 * config/i386/sse.md
10102 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
10103 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
10105 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
10106 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
10107 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
10108 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
10109 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
10110 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
10112 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10113 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10114 Anna Tikhonova <anna.tikhonova@intel.com>
10115 Ilya Tocar <ilya.tocar@intel.com>
10116 Andrey Turetskiy <andrey.turetskiy@intel.com>
10117 Ilya Verbin <ilya.verbin@intel.com>
10118 Kirill Yukhin <kirill.yukhin@intel.com>
10119 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10121 * config/i386/sse.md
10122 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
10123 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
10124 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
10125 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
10126 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
10127 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
10128 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
10129 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
10130 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
10132 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10133 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10134 Anna Tikhonova <anna.tikhonova@intel.com>
10135 Ilya Tocar <ilya.tocar@intel.com>
10136 Andrey Turetskiy <andrey.turetskiy@intel.com>
10137 Ilya Verbin <ilya.verbin@intel.com>
10138 Kirill Yukhin <kirill.yukhin@intel.com>
10139 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10141 * config/i386/sse.md
10142 (define_insn "avx512f_blendm<mode>"): Delete.
10143 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
10144 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
10145 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
10146 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
10148 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
10151 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
10154 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
10156 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
10157 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
10158 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
10159 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
10162 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
10165 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
10167 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
10170 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
10173 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
10176 2014-10-14 Richard Biener <rguenther@suse.de>
10178 PR tree-optimization/63512
10179 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
10182 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
10185 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
10186 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
10188 (negsf2_i): Rename to *negsf2_i.
10189 (abssf2_i): Rename to *abssf2_i.
10190 (negdf2_i): Rename to *negdf2_i.
10191 (absdf2_i): Rename to *absdf2_i.
10193 2014-10-14 Felix Yang <felix.yang@huawei.com>
10194 Jeff Law <law@redhat.com>
10196 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
10197 "replace" into boolean bitfields; turn member "loop_depth" into a short
10198 integer; add new member "no_equiv" and "reserved".
10199 (no_equiv): Set no_equiv of struct equivalence if register is marked
10200 as having no known equivalence.
10201 (update_equiv_regs): Check all definitions for a multiple-set
10202 register to make sure that the RHS have the same value.
10204 2014-10-13 Richard Henderson <rth@redhat.com>
10206 * combine-stack-adj.c (no_unhandled_cfa): New.
10207 (maybe_merge_cfa_adjust): New.
10208 (combine_stack_adjustments_for_block): Use them.
10210 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
10212 * Makefile.in (TAGS): Tag ../include files.
10214 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10216 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
10217 to rs6000_dbx_register_number.
10218 (DWARF_FRAME_REGNUM): Redefine as identity map.
10219 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
10220 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
10221 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
10222 argument to handle .debug_frame and .eh_frame directly. Always
10223 translate SPE high register numbers. Add special treatment for CR,
10224 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
10226 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
10227 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
10228 (RS6000_USE_DWARF_NUMBERING): Define.
10229 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
10230 (RS6000_USE_DWARF_NUMBERING): Define.
10231 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
10232 (RS6000_USE_DWARF_NUMBERING): Define.
10233 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
10234 (RS6000_USE_DWARF_NUMBERING): Define.
10235 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
10236 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
10238 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
10240 * config/i386/i386.c (ix86_address_cost): Lower cost for
10241 when address contains GOT register.
10243 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
10244 Vladimir Makarov <vmakarov@redhat.com>
10247 PR middle-end/47602
10248 PR rtl-optimization/55458
10249 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
10250 (ix86_init_pic_reg): New.
10251 (ix86_select_alt_pic_regnum): Add check on pseudo register.
10252 (ix86_save_reg): Likewise.
10253 (ix86_expand_prologue): Remove PIC register initialization
10254 now performed in ix86_init_pic_reg.
10255 (ix86_output_function_epilogue): Add check on pseudo register.
10256 (set_pic_reg_ever_alive): New.
10257 (legitimize_pic_address): Replace df_set_regs_ever_live with new
10258 set_pic_reg_ever_alive.
10259 (legitimize_tls_address): Likewise.
10260 (ix86_pic_register_p): New check.
10261 (ix86_delegitimize_address): Add check on pseudo register.
10262 (ix86_expand_call): Insert move from pseudo PIC register to ABI
10263 defined REAL_PIC_OFFSET_TABLE_REGNUM.
10264 (TARGET_INIT_PIC_REG): New.
10265 (TARGET_USE_PSEUDO_PIC_REG): New.
10266 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
10267 if pic_offset_table_rtx exists.
10268 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
10270 * doc/tm.texi: Regenerate.
10271 * function.c (assign_parms): Generate pseudo register for PIC.
10272 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
10274 * ira-color.c (color_pass): Add check on pseudo register.
10275 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
10277 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
10279 (ira): Add target specific PIC register initialization.
10280 (do_reload): Keep PIC pseudo register.
10281 * lra-assigns.c (spill_for): Add checks on pseudo register.
10282 * lra-constraints.c (contains_symbol_ref_p): New.
10283 (lra_constraints): Enable lra risky transformations when PIC is pseudo
10285 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
10286 * target.def (use_pseudo_pic_reg): New.
10287 (init_pic_reg): New.
10289 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
10291 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
10292 Remove m_SILVERMONT and m_INTEL from the tune.
10294 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10296 PR libfortran/63471
10297 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10298 when _HPUX_SOURCE is defined.
10300 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
10302 PR tree-optimization/62127
10303 * tree.c (remap_type_1): When remapping array, remap
10306 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
10308 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
10309 longer impact parallelization.
10311 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
10314 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
10316 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
10318 * asan.c (instrument_derefs): BIT_FIELD_REF added.
10320 2014-10-13 Richard Biener <rguenther@suse.de>
10322 PR tree-optimization/63419
10323 * gimple-fold.h (gimple_convert): New function.
10324 * gimple-fold.c (gimple_convert): Likewise.
10325 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
10326 to split out required conversions early.
10328 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
10330 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
10331 Add the parts of an insn in reverse order, with the pattern at
10332 the top of the queue. Detect when we're iterating over a SEQUENCE
10333 pattern and in that case just consider patterns of subinstructions.
10335 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
10338 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
10340 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
10342 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
10343 address. Use def chains to handle GBR clobbering call insns.
10345 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
10347 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
10348 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
10349 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
10350 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
10351 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
10352 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
10353 * doc/gty.texi (for_user): Document new option.
10354 * gengtype.c (create_user_defined_type): Don't try to get a struct for
10356 (walk_type): Don't error out on for_user option.
10357 (write_func_for_structure): Emit user marking routines if requested by
10359 (write_local_func_for_structure): Likewise.
10360 (main): Mark types with for_user option as used.
10361 * ggc.h (gt_pch_nx): Add overload for unsigned int.
10362 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
10363 * hash-table.h (ggc_hasher): New struct.
10364 (hash_table::create_ggc): New function.
10365 (gt_pch_nx): New overload for hash_table.
10367 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
10369 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
10370 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
10371 * config/sh/sh.c: Likewise.
10372 * config/sh/sh-mem.cc: Likewise.
10373 * config/sh/sh.md: Likewise.
10374 * config/sh/predicates.md: Likewise.
10375 * config/sh/sync.md: Likewise.
10377 2014-10-11 Martin Liska <mliska@suse.cz>
10379 PR middle-end/63376
10380 * cgraphunit.c (symbol_table::process_new_functions): Missing call
10381 for call_cgraph_insertion_hooks added.
10383 2014-10-10 Jakub Jelinek <jakub@redhat.com>
10386 * stor-layout.c (min_align_of_type): Don't decrease alignment
10387 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
10388 TYPE_USER_ALIGN is set.
10390 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
10392 PR rtl-optimization/63483
10393 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
10394 references when alignment ANDs are involved.
10395 (write_dependence_p): Ditto.
10396 (may_alias_p): Ditto.
10398 2014-10-10 Marek Polacek <polacek@redhat.com>
10400 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
10401 * doc/invoke.texi: Document -fsanitize=object-size.
10402 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
10403 or it into SANITIZE_UNDEFINED.
10404 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
10405 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
10406 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
10407 * opts.c (common_handle_option): Handle -fsanitize=object-size.
10408 * ubsan.c: Include tree-object-size.h.
10409 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
10410 (ubsan_expand_bounds_ifn): Use false instead of 0.
10411 (ubsan_expand_objsize_ifn): New function.
10412 (instrument_object_size): New function.
10413 (pass_ubsan::execute): Add object size instrumentation.
10414 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
10416 2014-10-10 Richard Henderson <rth@redhat.com>
10419 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
10420 Restrict the set of expressions we're willing to move.
10422 2014-10-10 Jeff Law <law@redhat.com>
10424 * ira.c (struct equivalence): Promote INIT_INSNs field to
10425 an rtx_insn_list. Add comments.
10426 (no_equiv): Promote LIST to an rtx_insn_list. Update
10427 testing for and creating the special marker. Use methods
10428 to extract the insn and next pointers. Promote INSN to an
10430 (update_equiv_regs): Update test for special marker in the
10433 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10435 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
10436 * configure: Regenerate.
10437 * config/aarch64/aarch64.c (aarch64_override_options): Handle
10438 TARGET_FIX_ERR_A53_835769_DEFAULT.
10439 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
10441 * doc/install.texi (aarch64*-*-*): Document
10442 new --enable-fix-cortex-a53-835769 option.
10444 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10445 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10447 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
10448 (ADJUST_INSN_LENGTH): Define.
10449 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
10450 * config/aarch64/aarch64.c (is_mem_p): New function.
10451 (is_memory_op): Likewise.
10452 (aarch64_prev_real_insn): Likewise.
10453 (is_madd_op): Likewise.
10454 (dep_between_memop_and_curr): Likewise.
10455 (aarch64_madd_needs_nop): Likewise.
10456 (aarch64_final_prescan_insn): Likewise.
10457 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
10458 and -mno-fix-cortex-a53-835769 options.
10460 2014-10-10 Jakub Jelinek <jakub@redhat.com>
10462 PR tree-optimization/63464
10463 * tree-switch-conversion.c (struct case_bit_test): Remove
10464 hi and lo fields, add wide_int mask field.
10465 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
10466 hi/lo fields into wide_int mask operations, optimize by pretending
10467 minval to be 0 if maxval is small enough.
10468 (process_switch): Adjust caller.
10470 2014-10-10 Richard Biener <rguenther@suse.de>
10472 PR tree-optimization/63379
10473 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
10474 a neutral operand for min/max when it is not a reduction chain.
10476 2014-10-10 Richard Biener <rguenther@suse.de>
10478 PR tree-optimization/63476
10479 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
10480 (BB_LIVE_VOP_ON_EXIT): New define.
10481 (create_expression_by_pieces): Assign VUSEs to stmts.
10482 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
10483 (pass_pre::execute): Assert virtual SSA form is up-to-date
10486 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
10488 * lra-assigns.c (assign_by_spills): Error out on spill failure.
10490 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
10492 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
10495 2014-10-09 Richard Biener <rguenther@suse.de>
10497 PR tree-optimization/63380
10498 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
10501 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
10503 * config/avr/avr.opt (mmcu=): Change to have a string value.
10504 (mn-flash=, mskip-bug, march=, mrmw): New options.
10505 (HeaderInclude): New.
10506 (mmcu=): Remove Var / Init clauses.
10507 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
10509 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
10510 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
10511 (SYMBOL_FLAG_IO_LOW): Define.
10512 (avr_device_to_as, avr_device_to_ld): Don't declare.
10513 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
10514 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
10515 (EXTRA_SPEC_FUNCTIONS): Don't define.
10516 (ASM_SPEC): Translate -arch= option to -mmcu= option.
10517 (LINK_SPEC): Translate -arch= option to -m= option.
10518 Don't use device_to_ld / device_to_data_start.
10519 (STARTFILE_SPEC): Now empty.
10520 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
10521 * config/avr/gen-avr-mmcu-specs.c: New file.
10522 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
10523 (s-device-specs): Likewise.
10524 (GCC_PASSES): Add s-device-specs.
10525 (install-driver): Depend on install-device-specs.
10526 (install-device-specs): New rule.
10527 * config/avr/avr.c (avr_option_override): Look up mcu arch by
10528 avr_arch_index and provide fallback initialization for avr_n_flash.
10529 (varasm.h): #include.
10530 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
10531 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
10532 (avr_attribute_table): Add "io", "address" and "io_low".
10533 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
10534 Add special handling for symbols with "io" and/or "address" attributes.
10535 (avr_asm_asm_output_aligned_bss): New function.
10536 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
10537 as appropriate. Handle io_low attribute.
10538 (avr_out_sbxx_branch): Handle symbolic io addresses.
10539 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
10540 avr_n_flash instead of avr_current_device->n_flash.
10541 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
10542 (avr_emit_movmemhi): Likewise.
10543 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
10544 Use TARGET_RMW instead of avr_current_device->dev_attributes.
10545 Don't define avr_current_device->macro (that's the specfile's job).
10546 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
10547 * config/avr/avr.c (avr_2word_insn_p): Likewise.
10548 * config/avr/avr.md (*cpse.ne): Likewise.
10549 (mov<mode>): Use avr_eval_addr_attrib.
10550 (cbi): Change constraint for low_io_address_operand operand to "i".
10551 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
10552 * config/avr/predicates.md (io_address_operand):
10553 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
10554 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
10555 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
10557 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
10558 * config/avr/genmultilib.awk: Use -march=.
10559 Remove Multilib matches processing.
10560 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
10561 * config/avr/avr-arch.h: Add double include guard.
10562 (avr_mcu_t) <library_name>: Update comment.
10563 * config/avr/driver-avr.c (avr_device_to_as): Delete.
10564 (avr_device_to_ld, avr_device_to_data_start): Likewise.
10565 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
10566 (avr_device_to_sp8): Likewise.
10567 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
10569 * doc/extend.texi (io, address): Document new AVR variable attributes.
10570 (io_low): Likewise.
10572 2014-10-09 Marek Polacek <polacek@redhat.com>
10574 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
10576 2014-10-08 Richard Biener <rguenther@suse.de>
10578 PR tree-optimization/61969
10579 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
10582 2014-10-09 Richard Biener <rguenther@suse.de>
10584 PR tree-optimization/63445
10585 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
10586 overflow for non-equality compares.
10588 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
10590 PR rtl-optimization/57003
10591 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
10592 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
10593 killing regs_invalidated_by_call.
10595 2014-10-08 Teresa Johnson <tejohnson@google.com>
10597 PR bootstrap/63432.
10598 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
10599 (ssa_fix_duplicate_block_edges): Invoke it.
10600 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
10602 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
10605 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
10606 atomic_fetch_<fetchop_name>si_hard,
10607 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
10608 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
10609 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
10610 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
10612 2014-10-08 Rong Xu <xur@google.com>
10614 * gcov-tool.c (profile_overlap): New driver function
10615 to compute profile overlap.
10616 (print_overlap_usage_message): New.
10617 (overlap_usage): New.
10619 (print_usage): Add calls to overlap function.
10621 * doc/gcov-tool.texi: Add documentation.
10623 2014-10-08 Steve Ellcey <sellcey@mips.com>
10625 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
10626 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
10628 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
10630 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
10631 pattern matching of MEM_REF.
10632 (check_stmt_for_type_change): Update.
10634 2014-10-08 Steve Ellcey <sellcey@mips.com>
10636 * config/mips/linux64.h: Remove.
10637 * config/mips/gnu-user64.h: Remove.
10638 * gcc.config (mips*-*-*): Remove references to linux64.h and
10640 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
10641 with modified version from gnu-user64.h.
10642 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
10643 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
10644 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
10646 (GNU_USER_LINK_EMULATION64): Ditto.
10647 (GNU_USER_LINK_EMULATIONN32): Ditto.
10648 (GLIBC_DYNAMIC_LINKER32): Ditto.
10649 (GLIBC_DYNAMIC_LINKER64): Ditto.
10650 (GLIBC_DYNAMIC_LINKERN32): Ditto.
10651 (UCLIBC_DYNAMIC_LINKER32): Ditto.
10652 (UCLIBC_DYNAMIC_LINKER64): Ditto.
10653 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
10654 (BIONIC_DYNAMIC_LINKERN32): Ditto.
10655 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
10656 (GLIBC_DYNAMIC_LINKER): Delete.
10657 (UCLIBC_DYNAMIC_LINKER): Delete.
10659 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
10660 Richard Biener <rguenther@suse.de>
10662 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
10663 Get address space from operand 0 (BASE).
10665 2014-10-07 Iain Sandoe <iain@codesourcery.com>
10668 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
10670 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
10672 * dwarf2out.c: Remove current_function_has_inlines.
10673 (gen_subprogram_die): Same.
10674 (gen_inlined_subroutine_die): Same.
10676 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
10678 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
10680 (_addcarry_u64): Ditto.
10681 (_addcarryx_u64): Ditto.
10683 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
10685 * cgraph.h (cgraph_node::get_fun): Declare.
10686 * cgraph.c (cgraph_node::get_fun): New method.
10687 * ipa-inline.c (can_inline_edge_p): Use it.
10689 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
10691 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
10692 and -ftrapping-math.
10693 * lto-wrapper.c (merge_and_complain): Likewise.
10694 (run_gcc): Likewise.
10696 2014-10-06 Rong Xu <xur@google.com>
10698 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
10699 * tree-profile.c: (params.h): New include.
10700 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
10701 and __gcov_indirect_call_topn_counters for
10702 indirect_call_topn_profile.
10703 (gimple_init_edge_profiler): New decls for
10704 __gcov_indirect_call_topn_profiler.
10705 (gimple_gen_ic_profiler): Generate the correct profiler call.
10706 (gimple_gen_ic_func_profiler): Fix format.
10707 * value-prof.c (params.h): New include.
10708 (dump_histogram_value): Hanlde indirect_call_topn counters.
10709 (stream_in_histogram_value): Ditto.
10710 (gimple_indirect_call_to_profile): Use indirect_call_topn
10711 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
10712 (gimple_find_values_to_profile): Hanlde indirect_call_topn
10714 * value-prof.h (enum hist_type): Histrogram type for
10715 indirect_call_topn counters.
10716 * profile.c (instrument_values): Instrument
10717 indirect_call_topn counters.
10719 2014-10-06 Rong Xu <xur@google.com>
10721 * Makefile.in: Fix dependence.
10722 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
10723 indirect call topn profiler.
10724 * gcov-io.h: Ditto.
10726 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
10728 * calls.c (expand_call): Do not use the target as the return slot if
10729 it is not sufficiently aligned.
10731 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10733 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
10734 discussion of permutes and why we don't handle them.
10736 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
10738 * config/sparc/predicates.md (int_register_operand): Delete.
10740 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
10742 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
10744 2014-10-06 Jakub Jelinek <jakub@redhat.com>
10746 * ubsan.h (ubsan_get_source_location): New prototype.
10747 * ubsan.c (ubsan_source_location_type): New variable.
10748 Function renamed to ...
10749 (ubsan_get_source_location_type): ... this. Cache
10750 return value in ubsan_source_location_type variable.
10751 (ubsan_source_location, ubsan_create_data): Use
10752 ubsan_get_source_location_type instead of
10753 ubsan_source_location_type.
10754 * asan.c (asan_protect_global): Don't protect globals
10755 with ubsan_get_source_location_type () type.
10756 (asan_add_global): Provide global decl location info
10759 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
10761 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
10764 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
10766 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
10768 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
10770 (ipa_polymorphic_call_context::dump): Fix formating.
10771 (walk_ssa_copies): Add logic avoiding loops; update uses.
10772 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
10774 2014-10-02 Mark Wielaard <mjw@redhat.com>
10777 * dwarf2out.c (gen_subprogram_die): When a member function is
10778 explicitly deleted then add a DW_AT_GNU_deleted attribute.
10779 * langhooks.h (struct lang_hooks_for_decls): Add
10780 function_decl_deleted_p langhook.
10781 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
10782 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
10784 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
10786 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
10787 NULL pointer checks.
10788 (ipa_polymorphic_call_context::get_dynamic_type): Return true
10789 if type doesn't change.
10790 * cgraph.h (cgraph_indirect_call_info): New flag.
10791 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
10792 (cgraph_node::dump): Dump it.
10793 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
10794 of context.get_dynamic_type.
10795 (ipa_make_edge_direct_to_target): Do not speculate
10796 edge that is already speuclative.
10797 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
10798 speculate to __builtin_unreachable
10799 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
10801 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
10803 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
10805 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
10806 get_dynamic_type; drop TODO.
10807 * ipa-polymorphic-call.c
10808 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
10809 for otr_type to be unknown.
10811 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
10813 * common/config/score/score-common.c: Remove.
10814 * config.gcc: Remove support for score-*.
10815 * config/score/constraints.md: Remove.
10816 * config/score/elf.h: Remove.
10817 * config/score/predicates.md: Remove.
10818 * config/score/score-conv.h: Remove.
10819 * config/score/score-generic.md: Remove.
10820 * config/score/score-modes.def: Remove.
10821 * config/score/score-protos.h: Remove.
10822 * config/score/score.c: Remove.
10823 * config/score/score.h: Remove.
10824 * config/score/score.md: Remove.
10825 * config/score/score.opt: Remove.
10826 * doc/md.texi: Don't document score-*.
10828 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
10831 * genconditions.c: Directly include ggc.h before rtl.h.
10833 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
10835 * ipa-polymorphic-call.c
10836 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
10837 code determining speculative type.
10838 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
10840 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10842 * altivec.md (altivec_lvsl): New define_expand.
10843 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
10844 (altivec_lvsr): New define_expand.
10845 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
10846 * rs6000.c (rs6000_expand_builtin): Change to use
10847 altivec_lvs[lr]_direct; remove commented-out code.
10849 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10851 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10852 Issue a warning message when vec_lvsl or vec_lvsr is used with a
10853 little endian target.
10855 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
10857 * tree-pretty-print.c (dump_location): Make it extern. Dump also
10859 * tree-pretty-print.h (dump_location): Declare.
10860 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
10861 (pp_gimple_stmt_1): Likewise.
10862 (dump_implicit_edges): Likewise.
10863 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
10867 2014-10-03 David Malcolm <dmalcolm@redhat.com>
10869 * gcc.c (driver::global_initializations): Remove "const" so
10870 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
10871 and decoded_options_count.
10873 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
10875 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
10877 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
10878 TARGET_E500_DOUBLE case here.
10880 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
10885 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
10887 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
10889 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
10890 * lto-cgraph.c (lto_output_edge, input_edge): Stream
10891 in_polymorphic_cdtor
10892 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
10893 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
10894 * cgraphclones.c (cgraph_edge::clone): Likewise.
10895 * ipa-prop.c (update_jump_functions_after_inlining,
10896 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
10897 to possible_dynamic_type_change.
10898 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
10899 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
10900 IN_POLY_CDOTR argument.
10902 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
10903 for BASE and OUTER_TYPE being NULL.
10904 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
10905 in_poly_cdtor parameter.
10907 2014-10-03 Jakub Jelinek <jakub@redhat.com>
10909 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
10910 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
10912 (expand_vec_perm_1): Likewise.
10914 2014-10-03 Jakub Jelinek <jakub@redhat.com>
10915 Uros Bizjak <ubizjak@gmail.com>
10917 PR tree-optimization/61403
10918 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
10919 error in comment. Also optimize 256-bit vectors for AVX2
10920 or AVX (floating vectors only), provided the first permutation
10921 can be performed in one insn.
10923 2014-10-03 David Malcolm <dmalcolm@redhat.com>
10925 * gcc.c (class driver): New class.
10926 (main): Reimplement in terms of driver::main, moving most of the
10927 locals to be locals within individual methods of class driver.
10928 The remaining locals "explicit_link_files", "decoded_options" and
10929 "decoded_options_count" are used by multiple driver:: methods, and
10930 so become member data. Doing so isolates the argc/argv reads and
10931 writes. Replace "goto out" with a special exit code from
10932 new method driver::prepare_infiles. Split out the old
10933 implementation of main into the following...
10934 (driver::main): New function, corresponding to the old "main"
10936 (driver::set_progname): New function, taken from the old
10937 "main" implementation.
10938 (driver::expand_at_files): Likewise.
10939 (driver::decode_argv): Likewise.
10940 (driver::global_initializations): Likewise.
10941 (driver::build_multilib_strings): Likewise.
10942 (driver::set_up_specs): Likewise.
10943 (driver::putenv_COLLECT_GCC): Likewise.
10944 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
10945 (driver::handle_unrecognized_options): Likewise.
10946 (driver::maybe_print_and_exit): Likewise.
10947 (driver::prepare_infiles): Likewise.
10948 (driver::do_spec_on_infiles): Likewise.
10949 (driver::maybe_run_linker): Likewise.
10950 (driver::final_actions): Likewise.
10951 (driver::get_exit_code): Likewise.
10953 2014-10-03 Yury Gribov <y.gribov@samsung.com>
10955 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
10956 don't emit empty ctors.
10958 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
10960 * convert.c (convert_to_integer): Do not introduce useless conversions
10961 between integral types.
10963 2014-10-03 David Sherwood <david.sherwood@arm.com>
10965 * ira-int.h (ira_allocno): Mark hard_regno as signed.
10967 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
10969 * lra-constraints.c (inherit_in_ebb): Handle calls with
10970 multiple return values.
10971 * caller-save.c (save_call_clobbered_regs): Likewise.
10973 2014-10-03 Jakub Jelinek <jakub@redhat.com>
10975 * tree-vect-data-refs.c (vect_permute_load_chain,
10976 vect_shift_permute_load_chain): Fix a typo in temporary var names,
10977 suffle3 to shuffle3.
10980 * omp-low.c (taskreg_contexts): New variable.
10981 (scan_omp_parallel): Push newly created context into taskreg_contexts
10982 vector and move record layout code to finish_taskreg_scan.
10983 (scan_omp_task): Likewise.
10984 (finish_taskreg_scan): New function.
10985 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
10986 vector elements and release it.
10989 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
10990 of palignr arguments can't be used due to min 0 or max - min
10991 too high, try also op0, op1 order of palignr arguments.
10993 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
10995 * cgraph.h (ipa_polymorphic_call_context):
10996 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
10997 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
10998 * ipa-polymorphic-call.c
10999 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
11000 past end of dynamic types.
11001 (ipa_polymorphic_call_context::stream_out,
11002 speculative_outer_type): Stream dynamic flag.
11003 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
11004 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
11006 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
11008 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
11009 * ipa-prop.c (update_jump_functions_after_inlining,
11010 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
11012 2014-10-02 Teresa Johnson <tejohnson@google.com>
11014 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
11015 up when synthesizing counts to avoid rounding errors.
11017 2014-10-02 Teresa Johnson <tejohnson@google.com>
11019 PR middle-end/63422
11020 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
11021 asserts to handle incoming insanities.
11023 2014-10-02 Martin Jambor <mjambor@suse.cz>
11025 PR tree-optimization/63375
11026 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
11029 2014-10-02 Olivier Hainque <hainque@adacore.com>
11031 * Makefile.in (CROSS): Define, to @CROSS.
11033 2014-10-02 Jakub Jelinek <jakub@redhat.com>
11036 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
11037 if it expands to a single insn only.
11038 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
11039 fail unless in_order is true. Add forward declaration.
11040 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
11041 is useful for one_operand_p.
11042 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
11044 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
11046 * cgraphclones.c (build_function_type_skip_args): Do not make new
11047 type variant of old.
11049 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
11051 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
11052 when speculation is added.
11053 (ipa_edge_args): Add polymorphic_call_contexts.
11054 (ipa_get_ith_polymorhic_call_context): New accesor.
11055 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
11056 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
11057 (ipa_compute_jump_functions_for_edge): Compute contexts.
11058 (update_jump_functions_after_inlining): Update contexts.
11059 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
11060 update dumping; add speculative edge creation.
11061 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
11063 (update_indirect_edges_after_inlining): Pass down context.
11064 (ipa_edge_duplication_hook): Duplicate contexts.
11065 (ipa_write_node_info): Stream out contexts.
11066 (ipa_read_node_info): Stream in contexts.
11067 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
11069 (try_speculative_devirtualization): New function.
11070 * ipa-utils.h (try_speculative_devirtualization): Declare.
11072 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
11074 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
11075 dumping during WPA.
11077 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
11079 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
11082 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
11084 * ipa-polymorphic-call.c
11085 (ipa_polymorphic_call_context::restrict_to_inner_class):
11086 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
11087 use speculation_consistent_p to do so; Add CONSDER_BASES
11088 and CONSIDER_PLACEMENT_NEW parameters.
11089 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
11090 short circuit obvious cases.
11091 (ipa_polymorphic_call_context::dump): Improve formatting.
11092 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
11093 combine_speculation_with to record speculations; Do not ICE when
11094 object is located in pointer type decl; do not ICE for methods
11095 of UNION_TYPE; do not record nonpolymorphic types.
11096 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
11097 (ipa_polymorphic_call_context::combine_speculation_with): New method.
11098 (ipa_polymorphic_call_context::combine_with): New method.
11099 (ipa_polymorphic_call_context::make_speculative): Move here; use
11100 combine speculation.
11101 * cgraph.h (ipa_polymorphic_call_context): Update
11102 restrict_to_inner_class prototype; add offset_by, make_speculative,
11103 combine_with, useless_p, combine_speculation_with and
11104 speculation_consistent_p methods.
11105 (ipa_polymorphic_call_context::offset_by): New method.
11106 (ipa_polymorphic_call_context::useless_p): New method.
11108 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11110 PR rtl-optimization/62151
11111 * combine.c (can_combine_p): Allow the destination register of INSN
11112 to be clobbered in I3.
11113 (subst): Do not substitute into clobbers of registers.
11115 2014-10-01 Jakub Jelinek <jakub@redhat.com>
11118 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
11119 offset, TARGET_MEM_REF and SSA_NAME.
11121 * config/i386/i386.c (expand_vec_perm_palignr): Handle
11122 256-bit vectors for TARGET_AVX2.
11124 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
11125 dfirst permutation.
11128 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
11129 argument to avx2_permv2ti.
11131 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11133 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
11135 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
11137 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
11138 (fmod<mode>3): Ditto.
11139 (fpremxf4_i387): Ditto.
11140 (reminderxf3): Ditto.
11141 (reminder<mode>3): Ditto.
11142 (fprem1xf4_i387): Ditto.
11144 2014-09-30 Teresa Johnson <tejohnson@google.com>
11146 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
11147 duplicate_blocks bitmap.
11148 (remove_ctrl_stmt_and_useless_edges): Ditto.
11149 (create_block_for_threading): Ditto.
11150 (compute_path_counts): New function.
11151 (update_profile): Ditto.
11152 (recompute_probabilities): Ditto.
11153 (update_joiner_offpath_counts): Ditto.
11154 (freqs_to_counts_path): Ditto.
11155 (clear_counts_path): Ditto.
11156 (ssa_fix_duplicate_block_edges): Update profile info.
11157 (ssa_create_duplicates): Pass new parameter.
11158 (ssa_redirect_edges): Remove old profile update.
11159 (thread_block_1): New duplicate_blocks bitmap,
11160 remove old profile update.
11161 (thread_single_edge): Pass new parameter.
11163 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
11165 PR middle-end/62120
11166 * varasm.c (decode_reg_name_and_count): Check availability for
11167 registers from ADDITIONAL_REGISTER_NAMES.
11169 2014-09-30 David Malcolm <dmalcolm@redhat.com>
11172 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
11173 (PLUGIN_HEADERS): Add pass-instances.def.
11175 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
11177 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
11179 * config/aarch64/aarch64-simd.md
11180 (aarch64_sqdmull_laneq<mode>): Expand iterator.
11181 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
11182 (vqdmulls_lane_s32): Fix return type.
11183 (vqdmulls_laneq_s32): New.
11185 2014-09-30 Jakub Jelinek <jakub@redhat.com>
11187 PR inline-asm/63282
11188 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
11189 or invert_jump_1 if jump isn't any_condjump_p.
11191 2014-09-30 Terry Guo <terry.guo@arm.com>
11193 * config/arm/arm-cores.def (cortex-m7): New core name.
11194 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
11196 * config/arm/arm-tables.opt: Regenerated.
11197 * config/arm/arm-tune.md: Regenerated.
11198 * config/arm/arm.h (TARGET_VFP5): New macro.
11199 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
11200 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
11201 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
11202 * doc/invoke.texi: Document new cpu and fpu names.
11204 2014-09-30 Jiong Wang <jiong.wang@arm.com>
11206 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
11207 before sinking insn.
11209 2014-09-30 David Sherwood <david.sherwood@arm.com>
11211 * ira-int.h (ira_allocno): Add "wmode" field.
11212 * ira-build.c (create_insn_allocnos): Add new "parent" function
11214 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
11215 that cannot be accessed in wmode.
11217 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
11219 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
11222 2014-09-29 Andi Kleen <ak@linux.intel.com>
11224 * opts.c (print_filtered_help): Print --param min/max/default
11227 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
11229 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
11231 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
11233 * tree-vrp.c (get_single_symbol): New function.
11234 (build_symbolic_expr): Likewise.
11235 (symbolic_range_based_on_p): New predicate.
11236 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
11237 for PLUS and MINUS. Do not drop symbolic ranges at the end.
11238 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
11239 operand is symbolic and based on the other operand.
11241 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
11243 * config/microblaze/microblaze.md (call_internal1): Use VOID
11244 instead of SI to fix "((void (*)(void)) 0)()" issue
11246 2014-09-29 Nick Clifton <nickc@redhat.com>
11248 * config/msp430/msp430.c (msp430_expand_prologue): Return a
11249 CLOBBER rtx for naked functions.
11250 (msp430_expand_epilogue): Likewise.
11251 (msp430_use_f5_series_hwmult): Cache result.
11252 (use_32bit_hwmult): Cache result.
11253 (msp430_no_hwmult): New function.
11254 (msp430_output_labelref): Use it.
11256 2014-09-29 Jakub Jelinek <jakub@redhat.com>
11258 PR middle-end/63247
11259 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
11260 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
11261 use the alignment of avar rather than ovar.
11263 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
11265 * config/pa/pa.c (pa_output_function_epilogue): Only update
11266 last_address when a nonnote insn is found.
11268 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
11271 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
11273 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
11276 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
11277 fix pasto in checking array size.
11279 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
11281 PR middle-end/35545
11282 * passes.def (pass_tracer): Move before last dominator pass.
11284 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
11286 * gcc.c (try_generate_repro): Remove argument "prog". Change all
11288 (run_attempt): Handle errors of "pex_run" invocation.
11290 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
11292 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
11293 (CC1_SPEC): Define.
11294 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
11295 (TARGET_ASAN_SHADOW_OFFSET): Define.
11297 2014-09-26 Martin Liska <mliska@suse.cz>
11299 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
11301 * cgraph.h: Likewise.
11302 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
11303 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
11304 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
11305 * tree-ssa-alias.h: Likewise.
11307 2014-09-26 Jakub Jelinek <jakub@redhat.com>
11308 Max Ostapenko <m.ostapenko@partner.samsung.com>
11310 * common.opt: New option.
11311 * doc/invoke.texi: Describe new option.
11312 * gcc.c (execute): Don't free first string early, but at the end
11313 of the function. Call retry_ice if compiler exited with
11315 (main): Factor out common code.
11316 (print_configuration): New function.
11317 (files_equal_p): Likewise.
11318 (check_repro): Likewise.
11319 (run_attempt): Likewise.
11320 (do_report_bug): Likewise.
11321 (append_text): Likewise.
11322 (try_generate_repro): Likewise
11324 2014-09-25 Andi Kleen <ak@linux.intel.com>
11326 * config/i386/i386.c (x86_print_call_or_nop): New function.
11327 (x86_function_profiler): Support -mnop-mcount and
11329 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
11330 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
11332 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
11334 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
11335 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
11336 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
11339 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
11341 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
11342 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
11343 types_odr_comparable): Declare.
11344 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
11345 * ipa-polymorphic-call.c: New file.
11346 (contains_polymorphic_type_p, possible_placement_new,
11347 ipa_polymorphic_call_context::restrict_to_inner_class,
11348 contains_type_p, decl_maybe_in_construction_p,
11349 ipa_polymorphic_call_context::stream_out,
11350 ipa_polymorphic_call_context::debug,
11351 ipa_polymorphic_call_context::stream_in,
11352 ipa_polymorphic_call_context::set_by_decl,
11353 ipa_polymorphic_call_context::set_by_invariant,
11355 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
11356 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
11357 extr_type_from_vtbl_ptr_store, record_known_type
11358 check_stmt_for_type_change,
11359 ipa_polymorphic_call_context::get_dynamic_type): Move here from
11361 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
11362 and streamer-hooks.h
11363 (contains_polymorphic_type_p, possible_placement_new,
11364 ipa_polymorphic_call_context::restrict_to_inner_class,
11365 contains_type_p, decl_maybe_in_construction_p,
11366 ipa_polymorphic_call_context::stream_out,
11367 ipa_polymorphic_call_context::debug,
11368 ipa_polymorphic_call_context::stream_in,
11369 ipa_polymorphic_call_context::set_by_decl,
11370 ipa_polymorphic_call_context::set_by_invariant,
11372 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
11373 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
11374 extr_type_from_vtbl_ptr_store, record_known_type
11375 check_stmt_for_type_change,
11376 ipa_polymorphic_call_context::get_dynamic_type): Move to
11377 ipa-polymorphic-call.c
11378 (type_all_derivations_known_p, types_odr_comparable,
11379 types_must_be_same_for_odr): Export.
11380 (type_known_to_have_no_deriavations_p): New function.
11381 * Makefile.in: Add ipa-polymorphic-call.c
11383 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
11385 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
11386 for better storage.
11387 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
11388 (possible_polymorphic_call_targets): Instead of computing both
11389 speculative and non-speculative answers, do just one at a time.
11390 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
11391 (dump_targets): Break out from ...
11392 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
11393 and non-speculative lists.
11394 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
11395 * ipa-utils.h (possible_polymorphic_call_targets): Update.
11397 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
11399 PR rtl-optimization/63348
11400 * emit-rtl.c (try_split): Do not emit extra barrier.
11402 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
11404 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
11405 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
11407 (aarch64_<sur>shll2_n<mode>): Likewise.
11408 (aarch64_<sur>shr_n<mode>): Likewise.
11409 (aarch64_<sur>sra_n<mode>: Likewise.
11410 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
11411 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
11412 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
11413 * config/aarch64/iterators.md (ve_mode): New.
11414 (offsetlr): Remap to infix text for use in new predicates.
11415 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
11416 (aarch64_simd_shift_imm_hi): Likewise.
11417 (aarch64_simd_shift_imm_si): Likewise.
11418 (aarch64_simd_shift_imm_di): Likewise.
11419 (aarch64_simd_shift_imm_offset_qi): Likewise.
11420 (aarch64_simd_shift_imm_offset_hi): Likewise.
11421 (aarch64_simd_shift_imm_offset_si): Likewise.
11422 (aarch64_simd_shift_imm_offset_di): Likewise.
11423 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
11424 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
11425 (aarch64_simd_shift_imm_bitsize_si): Likewise.
11426 (aarch64_simd_shift_imm_bitsize_di): Likewise.
11428 2014-09-25 Jiong Wang <jiong.wang@arm.com>
11430 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
11431 new created BB as the intersection of live-in from "old_dest" and
11432 live-out from "bb".
11434 2014-09-25 Felix Yang <felix.yang@huawei.com>
11436 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
11437 * genautomata.c (merge_states): Ditto.
11439 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11442 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
11443 in instruction sequence.
11445 2014-09-25 Nick Clifton <nickc@redhat.com>
11448 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
11449 in instruction sequence.
11451 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11454 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
11455 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
11457 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
11458 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11459 Anna Tikhonova <anna.tikhonova@intel.com>
11460 Ilya Tocar <ilya.tocar@intel.com>
11461 Andrey Turetskiy <andrey.turetskiy@intel.com>
11462 Ilya Verbin <ilya.verbin@intel.com>
11463 Kirill Yukhin <kirill.yukhin@intel.com>
11464 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11466 * config/i386/sse.md
11467 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
11468 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
11469 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
11470 (define_expand "<avx512>_perm<mode>_mask"): ... this.
11471 Use VI8F_256_512 mode iterator.
11472 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
11473 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
11475 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
11476 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11477 Anna Tikhonova <anna.tikhonova@intel.com>
11478 Ilya Tocar <ilya.tocar@intel.com>
11479 Andrey Turetskiy <andrey.turetskiy@intel.com>
11480 Ilya Verbin <ilya.verbin@intel.com>
11481 Kirill Yukhin <kirill.yukhin@intel.com>
11482 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11484 * config/i386/sse.md
11485 (define_insn "avx_movshdup256<mask_name>"): Add masking.
11486 (define_insn "sse3_movshdup<mask_name>"): Ditto.
11487 (define_insn "avx_movsldup256<mask_name>"): Ditto.
11488 (define_insn "sse3_movsldup<mask_name>"): Ditto.
11489 (define_insn "vec_dupv2df<mask_name>"): Ditto.
11490 (define_insn "*vec_concatv2df"): Add EVEX version.
11492 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
11493 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11494 Anna Tikhonova <anna.tikhonova@intel.com>
11495 Ilya Tocar <ilya.tocar@intel.com>
11496 Andrey Turetskiy <andrey.turetskiy@intel.com>
11497 Ilya Verbin <ilya.verbin@intel.com>
11498 Kirill Yukhin <kirill.yukhin@intel.com>
11499 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11501 * config/i386/sse.md
11502 (define_insn "vec_set<mode>_0"): Add EVEX version.
11504 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
11505 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11506 Anna Tikhonova <anna.tikhonova@intel.com>
11507 Ilya Tocar <ilya.tocar@intel.com>
11508 Andrey Turetskiy <andrey.turetskiy@intel.com>
11509 Ilya Verbin <ilya.verbin@intel.com>
11510 Kirill Yukhin <kirill.yukhin@intel.com>
11511 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11513 * config/i386/sse.md
11515 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
11517 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
11518 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
11519 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
11520 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
11521 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
11522 (define_expand "sse2_cvtpd2ps_mask): New.
11523 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
11524 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
11526 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
11527 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11528 Anna Tikhonova <anna.tikhonova@intel.com>
11529 Ilya Tocar <ilya.tocar@intel.com>
11530 Andrey Turetskiy <andrey.turetskiy@intel.com>
11531 Ilya Verbin <ilya.verbin@intel.com>
11532 Kirill Yukhin <kirill.yukhin@intel.com>
11533 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11535 * config/i386/i386.c
11536 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
11537 (ufix_notruncv8dfv8si2_mask_round): ... this.
11538 * config/i386/sse.md
11539 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
11540 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
11541 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
11542 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
11543 (define_expand "sse2_cvtpd2dq"): Delete.
11544 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
11545 make 2nd operand const0 vector.
11546 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
11548 (define_mode_attr pd2udqsuff): New.
11550 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
11551 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
11552 (define_insn "*avx_cvttpd2dq256_2"): Delete.
11553 (define_expand "sse2_cvttpd2dq"): Ditto.
11554 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
11555 make 2nd operand const0 vector.
11557 2014-09-25 Jakub Jelinek <jakub@redhat.com>
11559 PR tree-optimization/63341
11560 * tree-vectorizer.h (vect_create_data_ref_ptr,
11561 vect_create_addr_base_for_vector_ref): Add another tree argument
11562 defaulting to NULL_TREE.
11563 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
11564 argument, pass it down to vect_create_addr_base_for_vector_ref.
11565 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
11566 add that to base_offset too if non-NULL.
11567 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
11568 for dr_explicit_realign_optimized set it to vector byte size
11569 - 1 instead of setting offset, pass byte_offset down to
11570 vect_create_data_ref_ptr.
11572 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
11574 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
11575 forgotten debug output; canonicalize querries more wtih LTO.
11577 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
11579 * cgraph.h (class ipa_polymorphic_call_context): Move here from
11580 ipa-utils.h; add stream_int and stream_out methods.
11581 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
11582 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
11583 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
11585 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
11586 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
11587 ipa_polymorphic_call_context::clear_speculation,
11588 ipa_polymorphic_call_context::clear_outer_type): Move here from
11590 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
11591 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
11592 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
11593 ipa_polymorphic_call_context::clear_speculation,
11594 ipa_polymorphic_call_context::clear_outer_type): Likewise.
11595 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
11597 (ipa_polymorphic_call_context::stream_out): New method.
11598 (ipa_polymorphic_call_context::stream_in): New method.
11599 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
11600 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
11602 (ipa_analyze_call_uses): Simplify.
11603 (update_indirect_edges_after_inlining): Do not care about outer_type.
11604 (ipa_write_indirect_edge_info): Update.
11605 (ipa_write_indirect_edge_info): Likewise.
11606 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
11607 (dump_edge_flags): Break out from ...
11608 (cgraph_node::dump): ... here; dump indirect edges.
11610 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
11612 * ipa-utils.h (polymorphic_call_context): Add
11613 metdhos dump, debug and clear_outer_type.
11614 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
11615 (ipa_polymorphic_call_context::clear_outer_type): New method.
11616 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
11617 * ipa-devirt.c (types_odr_comparable): New function.
11618 (types_must_be_same_for_odr): New function.
11619 (odr_subtypes_equivalent_p): Simplify.
11620 (possible_placement_new): Break out from ...
11621 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
11622 be more cuatious about returning false in cases the context may be
11623 valid in derived type or via placement new.
11624 (contains_type_p): Clear maybe_derived_type
11625 (ipa_polymorphic_call_context::dump): New method.
11626 (ipa_polymorphic_call_context::debug): New method.
11627 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
11628 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
11629 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
11630 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
11631 to suceed on all valid cases; remove confused sanity check.
11632 (dump_possible_polymorphic_call_targets): Simplify.
11634 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
11636 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
11637 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
11638 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
11639 varpool.c: Rename all instances of DECL_ABSTRACT to
11642 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11644 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
11645 special handling for stores whose SET_SRC is an UNSPEC (such as
11648 2014-09-24 Jiong Wang <jiong.wang@arm.com>
11650 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
11651 !REG_P (src) to release more instruction sink opportunities.
11653 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
11655 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
11656 move costs for 128-bit types.
11658 2014-09-24 Martin Jambor <mjambor@suse.cz>
11660 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
11661 when duplicating a PASS_THROUGH jump function when creating a
11664 2014-09-24 Marek Polacek <polacek@redhat.com>
11668 * asan.c (maybe_instrument_call): Add default case.
11669 * ipa-pure-const.c (special_builtin_state): Likewise.
11670 * predict.c (expr_expected_value_1): Likewise.
11671 * lto-streamer-out.c (write_symbol): Initialize variable.
11673 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11675 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
11677 (vmuld_laneq_f64): Likewise.
11678 (vmuls_lane_f32): Likewise.
11679 (vmuls_laneq_f32): Likewise.
11681 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
11684 * varpool.c (varpool_node::add): Pass decl attributes
11685 to lookup_attribute.
11687 2014-09-24 Jakub Jelinek <jakub@redhat.com>
11690 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
11692 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
11694 PR tree-optimization/63266
11695 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
11696 marker for unknown byte value.
11697 (MARKER_MASK): New macro.
11698 (MARKER_BYTE_UNKNOWN): New macro.
11699 (HEAD_MARKER): New macro.
11700 (do_shift_rotate): Mark bytes with unknown values due to sign
11701 extension when doing an arithmetic right shift. Replace hardcoded
11702 mask for marker by new MARKER_MASK macro.
11703 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
11704 numbers accordingly.
11706 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
11707 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11708 Anna Tikhonova <anna.tikhonova@intel.com>
11709 Ilya Tocar <ilya.tocar@intel.com>
11710 Andrey Turetskiy <andrey.turetskiy@intel.com>
11711 Ilya Verbin <ilya.verbin@intel.com>
11712 Kirill Yukhin <kirill.yukhin@intel.com>
11713 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11715 * config/i386/sse.md
11717 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
11719 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
11720 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
11722 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
11723 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11724 Anna Tikhonova <anna.tikhonova@intel.com>
11725 Ilya Tocar <ilya.tocar@intel.com>
11726 Andrey Turetskiy <andrey.turetskiy@intel.com>
11727 Ilya Verbin <ilya.verbin@intel.com>
11728 Kirill Yukhin <kirill.yukhin@intel.com>
11729 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11731 * config/i386/sse.md
11732 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
11733 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
11734 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
11735 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
11736 (define_expand "avx512vl_pshuflw_mask"): New.
11737 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
11738 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
11739 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
11740 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
11741 (define_expand "avx512vl_pshufhw_mask"): New.
11742 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
11744 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
11745 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11746 Anna Tikhonova <anna.tikhonova@intel.com>
11747 Ilya Tocar <ilya.tocar@intel.com>
11748 Andrey Turetskiy <andrey.turetskiy@intel.com>
11749 Ilya Verbin <ilya.verbin@intel.com>
11750 Kirill Yukhin <kirill.yukhin@intel.com>
11751 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11753 * config/i386/i386.c
11754 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
11755 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
11756 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
11757 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
11758 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
11759 * config/i386/sse.md
11760 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
11762 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
11763 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
11765 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
11766 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
11767 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
11768 (define_expand "avx512vl_pshufd_mask"): New.
11769 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
11771 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
11772 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11773 Anna Tikhonova <anna.tikhonova@intel.com>
11774 Ilya Tocar <ilya.tocar@intel.com>
11775 Andrey Turetskiy <andrey.turetskiy@intel.com>
11776 Ilya Verbin <ilya.verbin@intel.com>
11777 Kirill Yukhin <kirill.yukhin@intel.com>
11778 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11780 * config/i386/i386.c
11781 (CODE_FOR_avx2_extracti128): Rename to ...
11782 (CODE_FOR_avx_vextractf128v4di): this.
11783 (CODE_FOR_avx2_inserti128): Rename to ...
11784 (CODE_FOR_avx_vinsertf128v4di): this.
11785 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
11786 CODE_FOR_avx_vextractf128v4di.
11787 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
11788 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
11789 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
11790 CODE_FOR_avx512vl_vinsertv8si.
11791 * config/i386/sse.md
11793 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
11794 AVX512_VEC mode iterator.
11796 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
11799 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
11800 AVX512_VEC_2 mode iterator.
11801 (define_insn "vec_set_lo_<mode><mask_name>"): New.
11802 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
11803 (define_expand "avx512vl_vinsert<mode>"): Ditto.
11804 (define_insn "avx2_vec_set_lo_v4di"): Delete.
11805 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
11806 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
11807 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
11808 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
11809 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
11810 (define_expand "avx2_extracti128"): Delete.
11811 (define_expand "avx2_inserti128"): Ditto.
11813 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
11814 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11815 Anna Tikhonova <anna.tikhonova@intel.com>
11816 Ilya Tocar <ilya.tocar@intel.com>
11817 Andrey Turetskiy <andrey.turetskiy@intel.com>
11818 Ilya Verbin <ilya.verbin@intel.com>
11819 Kirill Yukhin <kirill.yukhin@intel.com>
11820 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11822 * config/i386/sse.md
11823 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
11824 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
11825 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
11826 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
11827 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
11828 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
11829 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
11830 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
11831 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
11832 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
11833 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
11834 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
11835 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
11837 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
11839 PR rtl-optimization/63210
11840 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
11841 HARD_REGNO is not available for CONFLICT_A.
11843 2014-09-23 Andi Kleen <ak@linux.intel.com>
11845 * cgraph.h (symtab_node): Add no_reorder attribute.
11846 (symbol_table::output_asm_statements): Remove.
11847 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
11848 (cgraph_node::create_version_clone): Dito.
11849 (symbol_table::output_asm_statements): Remove.
11850 * trans-mem.c (ipa_tm_create_version_alias): Dito.
11851 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
11852 (output_in_order): Add no_reorder flag. Only handle no_reorder
11854 (symbol_table::compile): Add separate pass for no_reorder nodes.
11855 (process_common_attributes): Set no_reorder flag in symtab node.
11857 (process_function_and_variable_attributes): Pass symtab nodes to
11858 process_common_attributes.
11859 * doc/extend.texi (no_reorder): Document no_reorder attribute.
11860 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
11861 (lto_output_varpool_node): Dito.
11862 (input_overwrite_node): Dito.
11863 (input_varpool_node): Dito.
11864 * varpool.c (varpool_node::add): Set no_reorder attribute.
11865 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
11866 (symbol_table::output_variables): Dito.
11867 * symtab.c (symtab_node::dump_base): Print no_reorder.
11869 2014-09-23 Jiong Wang <jiong.wang@arm.com>
11871 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
11874 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
11876 * configure: Regenerate.
11878 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
11880 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
11881 when result_mode == shift_mode.
11883 2014-09-23 Kostya Serebryany <kcc@google.com>
11885 Update to match the changed asan API.
11886 * asan.c (asan_global_struct): Update the __asan_global definition
11887 to match the new API.
11888 (asan_add_global): Ditto.
11889 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
11892 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
11894 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
11895 refine the constraints used on 32/64-bit floating point moves.
11896 (f32_av): Likewise.
11897 (f64_vsx): Likewise.
11898 (f64_dm): Likewise.
11899 (f64_av): Likewise.
11900 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
11901 (BOOL_REGS_OP1): Likewise.
11902 (BOOL_REGS_OP2): Likewise.
11903 (BOOL_REGS_UNARY): Likewise.
11904 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
11905 32/64-bit floating point moves. Do not use wa, instead use ww/ws
11906 for moves involving VSX registers. Do not use constraints that
11907 target VSX registers for decimal types.
11908 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
11909 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
11911 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
11913 * tree.h (int_bit_position): Turn into inline function;
11914 implement using wide int.
11915 * tree.c (int_bit_position): Remove.
11917 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
11920 * target-globals.c (target_globals::~target_globals): Fix location
11921 of ira_int destruction.
11923 2014-09-23 Renlin Li <renlin.li@arm.com>
11925 * config/aarch64/aarch64.md (return): New.
11926 (simple_return): Likewise.
11927 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
11928 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
11930 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
11932 * common/config/aarch64/aarch64-common.c:
11933 (default_options aarch_option_optimization_table):
11934 Default to -fsched-pressure.
11936 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
11938 * cfgcleanup.c (try_optimize_cfg): Do not remove label
11939 with LABEL_PRESERVE_P flag set.
11941 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
11942 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11943 Anna Tikhonova <anna.tikhonova@intel.com>
11944 Ilya Tocar <ilya.tocar@intel.com>
11945 Andrey Turetskiy <andrey.turetskiy@intel.com>
11946 Ilya Verbin <ilya.verbin@intel.com>
11947 Kirill Yukhin <kirill.yukhin@intel.com>
11948 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11950 * config/i386/sse.md
11951 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
11952 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
11953 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
11954 (define_insn "sse2_shufpd_v2df_mask"): New.
11956 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
11957 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11958 Anna Tikhonova <anna.tikhonova@intel.com>
11959 Ilya Tocar <ilya.tocar@intel.com>
11960 Andrey Turetskiy <andrey.turetskiy@intel.com>
11961 Ilya Verbin <ilya.verbin@intel.com>
11962 Kirill Yukhin <kirill.yukhin@intel.com>
11963 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11965 * config/i386/sse.md
11966 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
11967 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
11968 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
11969 (define_insn "sse_shufps_v4sf_mask"): New.
11971 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
11972 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11973 Anna Tikhonova <anna.tikhonova@intel.com>
11974 Ilya Tocar <ilya.tocar@intel.com>
11975 Andrey Turetskiy <andrey.turetskiy@intel.com>
11976 Ilya Verbin <ilya.verbin@intel.com>
11977 Kirill Yukhin <kirill.yukhin@intel.com>
11978 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11980 * config/i386/sse.md
11981 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
11982 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
11983 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
11984 (define_insn "unpcklps128_mask"): New.
11986 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
11987 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11988 Anna Tikhonova <anna.tikhonova@intel.com>
11989 Ilya Tocar <ilya.tocar@intel.com>
11990 Andrey Turetskiy <andrey.turetskiy@intel.com>
11991 Ilya Verbin <ilya.verbin@intel.com>
11992 Kirill Yukhin <kirill.yukhin@intel.com>
11993 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11995 * config/i386/sse.md
11996 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
11997 (define_insn "avx512vl_unpckhpd128_mask"): New.
11998 (define_expand "avx_movddup256<mask_name>"): Add masking.
11999 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
12000 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
12001 (define_insn "avx512vl_unpcklpd128_mask"): New.
12003 2014-09-22 Joseph Myers <joseph@codesourcery.com>
12005 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
12006 * doc/tm.texi: Regenerate.
12007 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
12008 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
12009 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
12011 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
12012 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
12013 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
12014 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
12015 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
12017 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
12018 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
12019 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
12020 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
12021 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
12022 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
12023 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
12024 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
12025 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
12026 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
12027 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
12030 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
12032 * tree-ssa-ccp.c (prop_value_d): Rename to ...
12033 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
12034 * ipa-prop.c (struct type_change_info): Rename to ...
12035 (prop_type_change_info): ... this; update uses.
12036 * ggc-page.c (globals): Rename to ...
12037 (static struct ggc_globals): ... this; update uses.
12038 * tree-ssa-loop-im.c (mem_ref): Rename to ...
12039 (im_mem_ref): ... this; update uses.
12040 * ggc-common.c (loc_descriptor): Rename to ...
12041 (ggc_loc_descriptor): ... this; update uses.
12042 * lra-eliminations.c (elim_table): Rename to ...
12043 (lra_elim_table): ... this; update uses.
12044 * bitmap.c (output_info): Rename to ...
12045 (bitmap_output_info): ... this; update uses.
12046 * gcse.c (expr): Rename to ...
12047 (gcse_expr) ... this; update uses.
12048 (occr): Rename to ...
12049 (gcse_occr): .. this; update uses.
12050 * tree-ssa-copy.c (prop_value_d): Rename to ...
12051 (prop_value_t): ... this.
12052 * predict.c (block_info_def): Rename to ...
12053 (block_info): ... this; update uses.
12054 (edge_info_def): Rename to ...
12055 (edge_info): ... this; update uses.
12056 * profile.c (bb_info): Rename to ...
12057 (bb_profile_info): ... this; update uses.
12058 * alloc-pool.c (output_info): Rename to ...
12059 (pool_output_info): ... this; update uses.
12060 * ipa-cp.c (topo_info): Rename to ..
12061 (ipa_topo_info): ... this; update uses.
12062 * tree-nrv.c (nrv_data): Rename to ...
12063 (nrv_data_t): ... this; update uses.
12064 * ipa-split.c (bb_info): Rename to ...
12065 (split_bb_info): ... this one.
12066 * profile.h (edge_info): Rename to ...
12067 (edge_profile_info): ... this one; update uses.
12068 * dse.c (bb_info): Rename to ...
12069 (dse_bb_info): ... this one; update uses.
12070 * cprop.c (occr): Rename to ...
12071 (cprop_occr): ... this one; update uses.
12072 (expr): Rename to ...
12073 (cprop_expr): ... this one; update uses.
12075 2014-09-22 Jason Merrill <jason@redhat.com>
12077 * Makefile.in (check-parallel-%): Add @.
12079 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
12081 * config/aarch64/geniterators.sh: New.
12082 * config/aarch64/iterators.md (VDQF_DF): New.
12083 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
12084 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
12086 2014-09-22 Peter A. Bigot <pab@pabigot.com>
12088 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
12089 -lnosys when -msim absent.
12091 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
12093 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
12095 2014-09-22 Richard Biener <rguenther@suse.de>
12097 * gimplify.c (gimplify_init_constructor): Do not leave
12098 non-GIMPLE vector constructors around.
12099 * tree-cfg.c (verify_gimple_assign_single): Verify that
12100 CONSTRUCTORs have gimple elements.
12102 2014-09-22 Jakub Jelinek <jakub@redhat.com>
12105 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
12106 insert a debug source bind stmt setting DEBUG_EXPR_DECL
12107 instead of a normal gimple assignment stmt.
12109 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
12111 * config/bfin/bfin.md: Fix use of constraints in define_split.
12113 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
12115 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
12116 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
12118 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
12120 * hard-reg-set.h: Include hash-table.h.
12121 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
12123 * target-globals.c (target_globals::~target_globals): Call
12124 hard_regs->finalize.
12125 * rtl.h (subreg_shape): New structure.
12126 (shape_of_subreg): New function.
12127 (simplifiable_subregs): Declare.
12128 * reginfo.c (simplifiable_subreg): New structure.
12129 (simplifiable_subregs_hasher): Likewise.
12130 (simplifiable_subregs): New function.
12131 (invalid_mode_changes): Delete.
12132 (alid_mode_changes, valid_mode_changes_obstack): New variables.
12133 (record_subregs_of_mode): Remove subregs_of_mode parameter.
12134 Record valid mode changes in valid_mode_changes.
12135 (find_subregs_of_mode): Remove subregs_of_mode parameter.
12136 Update calls to record_subregs_of_mode.
12137 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
12138 handling. Initialize new variables. Update call to
12139 find_subregs_of_mode.
12140 (invalid_mode_change_p): Check new variables instead of
12141 invalid_mode_changes.
12142 (finish_subregs_of_mode): Finalize new variables instead of
12143 invalid_mode_changes.
12144 (target_hard_regs::finalize): New function.
12145 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
12146 even when CLASS_CANNOT_CHANGE_MODE is undefined.
12148 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
12150 * combine.c (subst): Use simplify_subreg_regno rather than
12151 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
12153 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
12155 * rtl.h (subreg_info): Expand commentary
12156 * rtlanal.c (subreg_get_info): Likewise.
12158 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
12160 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
12161 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
12162 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
12164 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
12166 * config/arm/arm.c: #include "tm-constrs.h"
12167 (thumb1_size_rtx_costs): Adjust rtx costs.
12169 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
12171 * configure.ac (target_header_dir): Move block defining
12172 this to before the block setting inhibit_libc.
12173 (inhibit_libc): When considering $with_headers, just
12174 check it it's explicitly "no". If not, also check if
12175 $target_header_dir/stdio.h is present. If not, set
12177 * configure: Regenerate.
12179 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
12181 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
12183 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12185 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
12186 insn for divides by integer powers of two.
12187 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
12188 (mod<mode>3): Fix formatting.
12189 (three anonymous define_insn and two define_split): Delete.
12191 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12193 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
12194 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
12195 (floatdisf2_internal2): Ditto.
12196 (ashrdi3_no_power): Ditto. Fix formatting.
12198 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12200 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
12201 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
12204 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12206 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
12207 constant, use addsi3 directly.
12208 (three anonymous define_insn, two define_split): Delete.
12209 (sub<mode>3): Move. Do not allow constant second operand.
12210 Generate different insn for constant first operand.
12211 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
12212 (subf<mode>3_imm): New.
12213 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
12214 (*plus_ltu<mode>): Only handle registers.
12215 (*plus_ltu<mode>_1): New. Handle integer third operand.
12216 (*plus_gtu<mode>): Only handle registers.
12217 (*plus_gtu<mode>_1): New. Handle integer third operand.
12219 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12221 * config/rs6000/rs6000.md (iorxor): New code_iterator.
12222 (iorxor): New code_attr.
12223 (IORXOR): New code_attr.
12224 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
12225 (ior<mode>3, xor<mode>3): Delete.
12226 (<iorxor><mode>3): New.
12227 (splitter for "big" integer ior, xor): New.
12228 (*bool<mode>3): Move. Also handle AND.
12229 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
12230 (splitter for "big" integer ior, xor): Delete.
12232 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12234 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
12235 (two anonymous define_insn and two define_split): Delete.
12236 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
12238 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12240 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
12241 (two anonymous define_insn and two define_split): Delete.
12242 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
12244 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12246 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
12248 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12250 * config/rs6000/predicates.md (ca_operand): Allow subregs.
12251 (input_operand): Do not allow ca_operand.
12252 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
12253 carry bit, allow SImode and Pmode.
12254 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
12256 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
12258 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
12259 clobbered registers using clobber_reg. Remove UNSPEC decoration.
12260 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
12261 (*call_rex64_ms_sysv): Remove.
12262 (*call_value_rex64_ms_sysv): Ditto.
12263 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
12265 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
12267 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
12268 operand 3 to "CnL".
12270 2014-09-20 Andreas Schwab <schwab@suse.de>
12272 * config/ia64/ia64.md: Remove constraints from define_split
12275 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
12277 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
12278 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
12279 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
12280 (get_dynamic_type): Remove.
12281 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
12282 (clear_speculation): Bring to ipa-deivrt.h
12283 (get_class_context): Rename to ...
12284 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
12285 (contains_type_p): Update.
12286 (get_dynamic_type): Rename to ...
12287 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
12288 (possible_polymorphic_call_targets): UPdate.
12289 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
12290 * ipa-prop.c (ipa_analyze_call_uses): Update.
12292 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
12294 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
12295 privatize dynamic TLS variables.
12297 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
12299 * diagnostic.c (warning_n): New function.
12300 * diagnostic-core.h (warning_n): Declare.
12301 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
12302 output dynamic counts when available.
12304 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
12306 PR tree-optimization/63255
12307 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
12308 issue in setting body_removed flag.
12310 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
12313 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
12314 that visibility change is possible
12315 (handle_weakref_attribute): Likewise.
12316 * cgraph.h (symtab_node): Add method get_create and
12317 field refuse_visibility_changes.
12318 (symtab_node::get_create): New method.
12319 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
12320 * varasm.c (mark_weak): Verify that visibility change is
12323 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
12325 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
12326 for base_reg_operand to be common between LO_SUM and PLUS.
12327 (fusion_gpr_mem_combo): New predicate to match a fused address
12328 that combines the addis and memory offset address.
12330 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
12332 (emit_fusion_gpr_load): Likewise.
12334 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
12335 signature to pass each argument separately, rather than
12336 using an operands array. Rewrite the insns found by peephole2 to
12337 be a single insn, rather than hoping the insns will still be
12338 together when the peephole pass is done. Drop being called via a
12340 (emit_fusion_gpr_load): Change calling signature to be called from
12341 the fusion_gpr_load_<mode> insns with a combined memory address
12342 instead of the peephole pass passing the addis and offset
12345 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
12347 (power8 fusion peephole): Drop support for doing power8 via a
12348 normal peephole that was created by the peephole2 pass.
12349 (power8 fusion peephole2): Create a new insn with the fused
12350 address, so that the fused operation is kept together after
12351 register allocation is done.
12352 (fusion_gpr_load_<mode>): Likewise.
12354 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
12357 * tree.c (need_assembler_name_p): Do not mangle variadic types.
12359 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
12361 * recog.c (scratch_operand): Do not simply allow all hard registers:
12362 only allow those that are allocatable.
12364 2014-09-19 Felix Yang <felix.yang@huawei.com>
12366 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
12367 comments and fix spacing to conform to coding style.
12369 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
12371 * genrecog.c (validate_pattern): Allow empty constraints in
12374 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
12376 * dwarf2out.c (decl_ultimate_origin): Update comment.
12377 * tree.c (block_ultimate_origin): Same.
12379 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12381 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
12382 Update GCC version name to GCC 5.
12383 (rs6000_function_arg_boundary): Likewise.
12384 (rs6000_function_arg): Likewise.
12386 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
12388 * config/sh/sh.md: Fix use of constraints in define_split.
12390 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
12393 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
12395 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
12397 * doc/md.texi (Modifiers): Consistently use "read/write"
12398 nomenclature rather than "input/output".
12399 * genrecog.c (constraints_supported_in_insn_p): New.
12400 (validate_pattern): If needed, also check constraints on
12401 MATCH_SCRATCH operands.
12402 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
12403 operands with no '=' or '+' modifier.
12405 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
12407 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
12408 scratch register as written.
12410 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12412 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
12415 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12417 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
12420 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12423 * config/s390/s390.c (s390_emit_epilogue): When doing the return
12424 address load optimization force s390_optimize_prologue to leave it
12425 that way. Only do the optimization if we already decided to push
12426 r14 into a stack slot.
12428 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
12430 * asan.c (build_check_stmt): Alignment arg was added.
12431 (asan_expand_check_ifn): Optimization for alignment >= 8.
12433 2014-09-19 Olivier Hainque <hainque@adacore.com>
12435 * config/i386/vxworksae.h: Remove obsolete definitions.
12436 (STACK_CHECK_PROTECT): Define.
12437 * config/i386/vx-common.h: Remove. Merge contents within
12438 config/i386/vxworks.h.
12439 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
12442 2014-09-19 Olivier Hainque <hainque@adacore.com>
12444 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
12445 * config/rs6000/t-vxworksmils: New file.
12446 * config/rs6000/vxworksmils.h: New file.
12448 2014-09-19 Olivier Hainque <hainque@adacore.com>
12450 * varasm.c (default_section_type_flags): Flag .persistent.bss
12451 sections as SECTION_BSS.
12453 2014-09-19 Nick Clifton <nickc@redhat.com>
12455 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
12456 pop'ed registers so that DCE does not eliminate them.
12458 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
12461 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
12463 2014-09-18 Joseph Myers <joseph@codesourcery.com>
12465 * system.h (LIBGCC2_TF_CEXT): Poison.
12466 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
12467 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
12468 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
12469 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
12470 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
12471 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
12472 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
12473 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
12474 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
12476 2014-09-19 Kito Cheng <kito@0xlab.org>
12478 * except.h: Fix header guard.
12479 * addresses.h: Add missing header guard.
12480 * cfghooks.h: Likewise.
12481 * collect-utils.h: Likewise.
12482 * collect2-aix.h: Likewise.
12483 * conditions.h: Likewise.
12484 * cselib.h: Likewise.
12485 * dwarf2asm.h: Likewise.
12486 * graphds.h: Likewise.
12487 * graphite-scop-detection.h: Likewise.
12488 * gsyms.h: Likewise.
12489 * hw-doloop.h: Likewise.
12490 * incpath.h: Likewise.
12491 * ipa-inline.h: Likewise.
12492 * ipa-ref.h: Likewise.
12493 * ira-int.h: Likewise.
12495 * lra-int.h: Likewise.
12497 * lto-section-names.h: Likewise.
12498 * read-md.h: Likewise.
12499 * reload.h: Likewise.
12500 * rtl-error.h: Likewise.
12501 * sdbout.h: Likewise.
12502 * targhooks.h: Likewise.
12503 * tree-affine.h: Likewise.
12504 * xcoff.h: Likewise.
12505 * xcoffout.h: Likewise.
12507 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
12510 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
12513 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
12516 * lra.c (lra): Call recog_init.
12518 2014-09-18 Jakub Jelinek <jakub@redhat.com>
12521 * asan.c (transform_statements): Don't instrument clobber statements.
12523 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12525 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
12526 to neon_load1_1reg<q>.
12528 2014-09-17 Jakub Jelinek <jakub@redhat.com>
12531 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
12532 if there are only debug stmts after the noreturn call, instead
12533 remove the debug stmts.
12535 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
12537 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
12538 (odr_types_equivalent_p): Use pair hash.
12539 (odr_subtypes_equivalent_p): Likewise, do structural compare
12540 on ODR types that may be mismatched.
12541 (warn_odr): Support warning when only one field is given.
12542 (odr_types_equivalent_p): Strenghten comparsions made;
12544 (add_type_duplicate): Update VISITED hash set.
12546 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
12548 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
12549 Enable selection of 'posix' or no thread model.
12551 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
12553 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
12554 when architecture is older than ARMv7.
12556 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
12559 * config/pa/pa.c (pa_function_value): Directly handle aggregates
12560 that fit exactly in a word or double word.
12562 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
12564 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
12565 zmm/k regs support.
12567 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
12568 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12569 Anna Tikhonova <anna.tikhonova@intel.com>
12570 Ilya Tocar <ilya.tocar@intel.com>
12571 Andrey Turetskiy <andrey.turetskiy@intel.com>
12572 Ilya Verbin <ilya.verbin@intel.com>
12573 Kirill Yukhin <kirill.yukhin@intel.com>
12574 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12576 * config/i386/i386.c
12577 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
12578 * config/i386/sse.md
12579 (define_mode_iterator VI48F_256): New.
12580 (define_mode_attr extract_type): Ditto.
12581 (define_mode_attr extract_suf): Ditto.
12582 (define_mode_iterator AVX512_VEC): Ditto.
12584 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
12586 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
12588 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
12590 (define_mode_attr extract_type_2): Ditto.
12591 (define_mode_attr extract_suf_2): Ditto.
12592 (define_mode_iterator AVX512_VEC_2): Ditto.
12594 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
12595 AVX512_VEC_2 mode iterator.
12596 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
12597 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
12598 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
12599 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
12600 (define_split for V16FI mode): Ditto.
12601 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
12602 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
12603 (define_split for VI8F_256 mode): Ditto.
12604 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
12605 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
12606 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
12607 (define_split for VI4F_256 mode): Ditto.
12608 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
12609 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
12610 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
12611 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
12612 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
12613 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
12614 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
12615 Update `type' attribute, remove explicit `memory' attribute calculation.
12617 2014-09-16 Kito Cheng <kito@0xlab.org>
12619 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
12620 ira_spilled_reg_stack_slots_num if using lra.
12621 (do_reload): Remove release ira_spilled_reg_stack_slots part.
12622 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
12623 make sure not using lra.
12624 (ira_reuse_stack_slot): Likewise.
12625 (ira_mark_new_stack_slot): Likewise.
12627 2014-09-15 Andi Kleen <ak@linux.intel.com>
12629 * function.c (allocate_struct_function): Force
12630 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
12631 profiling is disabled.
12633 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
12635 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
12636 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
12637 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
12638 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
12639 macro with statically checked member functions.
12640 * rtl.h (rtx_insn::deleted): New method.
12641 (rtx_insn::set_deleted): Likewise.
12642 (rtx_insn::set_undeleted): Likewise.
12643 (INSN_DELETED_P): Remove.
12645 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
12647 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
12648 result of emit_jump_insn_before to a new variable.
12649 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
12650 (mark_jump_label_1): Likewise.
12651 (mark_jump_label_asm): Likewise.
12652 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
12653 * rtl.h (mark_jump_label): Adjust.
12655 2014-09-15 Jakub Jelinek <jakub@redhat.com>
12657 * Makefile.in (dg_target_exps): Remove.
12658 (check_gcc_parallelize): Change to just an upper bound number.
12659 (check-%-subtargets): Always print the non-parallelized goals.
12660 (check_p_vars, check_p_comma, check_p_subwork): Remove.
12661 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
12662 check_p_numbers3, check_p_numbers4, check_p_numbers5,
12663 check_p_numbers6): New variables.
12664 (check_p_numbers): Set to sequence from 1 to 9999.
12665 (check_p_subdirs): Set to sequence from 1 to minimum of
12666 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
12668 (check-%, check-parallel-%): Rewritten so that for parallelized
12669 testing each job runs all the *.exp files, with
12670 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
12672 2014-09-15 David Malcolm <dmalcolm@redhat.com>
12674 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
12676 (arc_sets_cc_p): Likewise.
12677 * config/arc/arc.c (arc_print_operand): Use methods of
12678 "final_sequence" for clarity, and to enable strengthening of
12679 locals "jump" and "delay" from rtx to rtx_insn *.
12680 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
12681 rtx_insn *; use method of rtx_sequence for typesafety.
12682 (arc_get_insn_variants): Use insn method of rtx_sequence for
12684 (arc_pad_return): Likewise.
12685 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
12686 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
12687 dyn_cast to rtx_sequence *, using insn method for typesafety.
12688 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
12689 rtx_sequence * and use insn method when invoking get_attr_length.
12690 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
12691 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
12692 rtx_sequence *, introducing a local "seq", using its insn method
12693 from typesafety and clarity.
12694 (add_sched_insns_for_speculation): Strengthen local "next" from
12696 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
12697 (predicate_insn): Likewise.
12698 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
12700 * config/cris/cris.c (cris_notice_update_cc): Likewise.
12701 * config/epiphany/epiphany-protos.h
12702 (extern void epiphany_insert_mode_switch_use): Likewise for param
12704 (get_attr_sched_use_fpu): Likewise for param.
12705 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
12706 Likewise for param "insn".
12707 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
12708 param "insn" of "target_insert_mode_switch_use" callback.
12709 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
12710 (frv_issues_to_branch_unit_p): Likewise.
12711 (frv_pack_insn_p): Likewise.
12712 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
12713 const rtx * (i.e. mutable rtx_def * const *) to
12714 rtx_insn * const *.
12715 * config/i386/i386-protos.h (standard_sse_constant_opcode):
12716 Strengthen first param from rtx to rtx_insn *.
12717 (output_fix_trunc): Likewise.
12718 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
12719 (output_fix_trunc): Likewise.
12720 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
12722 (min_insn_size): Likewise for param "insn".
12723 (get_mem_group): Likewise.
12724 (is_cmp): Likewise.
12725 (get_insn_path): Likewise.
12726 (get_insn_group): Likewise.
12727 (count_num_restricted): Likewise.
12728 (fits_dispatch_window): Likewise.
12729 (add_insn_window): Likewise.
12730 (add_to_dispatch_window): Likewise.
12731 (debug_insn_dispatch_info_file): Likewise.
12732 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
12734 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
12735 "cmp" and local "prev".
12736 (m32c_output_compare): Likewise for param "insn".
12737 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
12738 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
12739 (define_predicate "large_insn_p"): Likewise.
12740 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
12741 param from rtx to rtx_insn *.
12742 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
12743 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
12744 (m68k_sched_attr_size): Likewise.
12745 (sched_get_opxy_mem_type): Likewise for param "insn".
12746 (m68k_sched_attr_op_mem): Likewise.
12747 (sched_mem_operand_p): Likewise.
12748 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
12749 * config/mep/mep.c (mep_multi_slot): Likewise.
12750 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
12752 (mips_sync_loop_insns): Likewise.
12753 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
12754 method of "final_sequence" for typesafety.
12755 (mips_process_sync_loop): Strengthen param "insn" from rtx to
12757 (mips_output_sync_loop): Likewise.
12758 (mips_sync_loop_insns): Likewise.
12759 (mips_74k_agen_init): Likewise.
12760 (mips_sched_init): Use NULL rather than NULL_RTX when working with
12762 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
12763 Strengthen param "insn" from rtx to rtx_insn *.
12764 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
12766 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
12768 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
12769 "insn". Use method of rtx_sequence for typesafety.
12770 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
12772 (branch_needs_nop_p): Likewise.
12773 (use_skip_p): Likewise.
12774 (pa_insn_refs_are_delayed): Likewise.
12775 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
12776 for locals "insn", "ninsn".
12777 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
12779 (is_cracked_insn): Likewise.
12780 (is_branch_slot_insn): Likewise.
12781 (is_nonpipeline_insn): Likewise.
12782 (insn_terminates_group_p): Likewise.
12783 (insn_must_be_first_in_group): Likewise.
12784 (insn_must_be_last_in_group): Likewise.
12785 (force_new_group): Likewise for param "next_insn".
12786 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
12788 (s390_sched_score): Likewise.
12789 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
12790 (rtx sfunc_uses_reg): Likewise for sole param.
12791 * config/sh/sh.c (sh_print_operand): Use insn method of
12792 final_sequence for typesafety.
12793 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
12794 Use insn method of final_sequence for typesafety.
12795 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
12796 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
12798 (eligible_for_return_delay): Likewise.
12799 (eligible_for_sibcall_delay): Likewise.
12800 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
12801 (eligible_for_return_delay): Likewise.
12802 (eligible_for_sibcall_delay): Likewise.
12803 * config/stormy16/stormy16-protos.h
12804 (xstormy16_output_cbranch_hi): Likewise for final param.
12805 (xstormy16_output_cbranch_si): Likewise.
12806 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
12807 (xstormy16_output_cbranch_si): Likewise.
12808 * config/v850/v850-protos.h (notice_update_cc): Likewise.
12809 * config/v850/v850.c (notice_update_cc): Likewise.
12811 * final.c (get_attr_length_1): Strengthen param "insn" and param
12812 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
12813 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
12814 (get_attr_min_length): Likewise.
12815 (shorten_branches): Likewise for signature of locals "length_fun"
12816 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
12817 from a checked cast and use its methods for clarity and to enable
12818 strengthening local "inner_insn" from rtx to rtx_insn *.
12819 * genattr.c (gen_attr): When writing out the prototypes of the
12820 various generated "get_attr_" functions, strengthen the params of
12821 the non-const functions from rtx to rtx_insn *.
12822 Similarly, strengthen the params of insn_default_length,
12823 insn_min_length, insn_variable_length_p, insn_current_length.
12824 (main): Similarly, strengthen the param of num_delay_slots,
12825 internal_dfa_insn_code, insn_default_latency, bypass_p,
12826 insn_latency, min_issue_delay, print_reservation,
12827 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
12828 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
12829 to hook_int_rtx_insn_unreachable.
12830 * genattrtab.c (write_attr_get): When writing out the generated
12831 "get_attr_" functions, strengthen the param "insn" from rtx to
12832 rtx_insn *, eliminating a checked cast.
12833 (make_automaton_attrs): When writing out prototypes of
12834 "internal_dfa_insn_code_", "insn_default_latency_" functions
12835 and the "internal_dfa_insn_code" and "insn_default_latency"
12836 callbacks, strengthen their params from rtx to rtx_insn *
12837 * genautomata.c (output_internal_insn_code_evaluation): When
12838 writing out code, add a checked cast from rtx to rtx_insn * when
12839 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
12840 (output_dfa_insn_code_func): Strengthen param of generated
12841 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
12842 (output_trans_func): Likewise for generated function
12843 "state_transition".
12844 (output_internal_insn_latency_func): When writing out generated
12845 function "internal_insn_latency", rename params from "insn" and
12846 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
12847 locals "insn" and "insn2" as rtx_insn * with checked casts once
12848 we've proven that we're not dealing with const0_rtx.
12849 (output_insn_latency_func): Strengthen param of generated
12850 function "insn_latency" from rtx to rtx_insn *.
12851 (output_print_reservation_func): Likewise for generated function
12852 "print_reservation".
12853 (output_insn_has_dfa_reservation_p): Likewise for generated
12854 function "insn_has_dfa_reservation_p".
12855 * hooks.c (hook_int_rtx_unreachable): Rename to...
12856 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
12857 from rtx to rtx_insn *.
12858 * hooks.h (hook_int_rtx_unreachable): Likewise.
12859 (extern int hook_int_rtx_insn_unreachable): Likewise.
12860 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
12861 (get_attr_min_length): Likewise.
12862 * recog.c (get_enabled_alternatives): Likewise.
12863 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
12864 * reorg.c (find_end_label): Introduce local rtx "pat" and
12865 strengthen local "insn" from rtx to rtx_insn *.
12866 (redundant_insn): Use insn method of "seq" rather than element for
12867 typesafety; strengthen local "control" from rtx to rtx_insn *.
12868 * resource.c (mark_referenced_resources): Add checked cast to
12869 rtx_insn * within INSN/JUMP_INSN case.
12870 (mark_set_resources): Likewise.
12871 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
12874 2014-09-15 David Malcolm <dmalcolm@redhat.com>
12876 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
12877 param "label" from rtx to rtx_insn *.
12878 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
12880 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
12881 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
12882 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
12883 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
12884 * final.c (default_label_align_after_barrier_max_skip): Strengthen
12885 param from rtx to rtx_insn *.
12886 (default_loop_align_max_skip): Likewise.
12887 (default_label_align_max_skip): Likewise.
12888 (default_jump_align_max_skip): Likewise.
12889 * target.def (label_align_after_barrier_max_skip): Likewise.
12890 (loop_align_max_skip): Likewise.
12891 (label_align_max_skip): Likewise.
12892 (jump_align_max_skip): Likewise.
12893 * targhooks.h (default_label_align_after_barrier_max_skip):
12895 (default_loop_align_max_skip): Likewise.
12896 (default_label_align_max_skip): Likewise.
12897 (default_jump_align_max_skip): Likewise.
12899 2014-09-15 David Malcolm <dmalcolm@redhat.com>
12901 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
12902 from const_rtx to const rtx_insn *. Update union members from rtx
12904 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
12905 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
12906 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
12907 strengthen both params from const_rtx to const rtx_insn *.
12908 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
12909 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
12910 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
12912 * target.def (can_follow_jump): Strengthen both params from
12913 const_rtx to const rtx_insn *, and update default implementation
12914 from hook_bool_const_rtx_const_rtx_true to
12915 hook_bool_const_rtx_insn_const_rtx_insn_true.
12917 2014-09-15 David Malcolm <dmalcolm@redhat.com>
12919 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
12920 "insn" from rtx to rtx_insn *.
12921 * sched-int.h (deps_start_bb): Likewise for 2nd param.
12923 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
12924 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12925 Anna Tikhonova <anna.tikhonova@intel.com>
12926 Ilya Tocar <ilya.tocar@intel.com>
12927 Andrey Turetskiy <andrey.turetskiy@intel.com>
12928 Ilya Verbin <ilya.verbin@intel.com>
12929 Kirill Yukhin <kirill.yukhin@intel.com>
12930 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12932 * config/i386/sse.md
12933 (define_insn "vcvtph2ps<mask_name>"): Add masking.
12934 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
12935 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
12936 (define_expand "vcvtps2ph_mask"): New.
12937 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
12938 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
12939 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
12941 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
12942 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
12943 Anna Tikhonova <anna.tikhonova@intel.com>
12944 Ilya Tocar <ilya.tocar@intel.com>
12945 Andrey Turetskiy <andrey.turetskiy@intel.com>
12946 Ilya Verbin <ilya.verbin@intel.com>
12947 Kirill Yukhin <kirill.yukhin@intel.com>
12948 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12950 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
12952 (define_mode_iterator VI24_AVX512BW_1): Ditto.
12953 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
12954 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
12955 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
12956 also for TARGET_AVX512VL.
12957 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
12959 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
12961 * doc/install.texi (Options specification): add
12962 --disable-libsanitizer item.
12964 2014-09-14 James Clarke <jrtc27@jrtc27.com>
12965 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12968 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
12970 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
12971 kernel version check to avoid incrementing it after every major OS X
12973 (darwin_default_min_version): Avoid static memory buffer.
12975 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
12977 * tree.c (need_assembler_name_p): Store C++ type mangling only
12980 2014-09-13 Marek Polacek <polacek@redhat.com>
12982 * tree.c (protected_set_expr_location): Don't check whether T is
12985 2014-09-12 DJ Delorie <dj@redhat.com>
12987 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
12988 (extend_and_shift1_hipsi2): Likewise.
12989 (extend_and_shift2_hipsi2): Likewise.
12991 2014-09-12 David Malcolm <dmalcolm@redhat.com>
12993 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
12994 with NULL when dealing with an insn.
12995 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
12996 from rtx to rtx_insn *.
12997 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
12998 const_rtx to const rtx_insn *.
12999 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
13001 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
13003 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
13006 2014-09-12 Joseph Myers <joseph@codesourcery.com>
13008 * target.def (libgcc_floating_mode_supported_p): New hook.
13009 * targhooks.c (default_libgcc_floating_mode_supported_p): New
13011 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
13012 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
13013 (LIBGCC2_HAS_TF_MODE): Remove.
13014 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
13015 * doc/tm.texi: Regenerate.
13016 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
13018 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
13019 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
13020 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
13021 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
13022 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
13023 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
13024 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
13025 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
13026 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
13027 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
13029 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
13030 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
13031 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
13032 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
13033 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
13034 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
13035 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
13036 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
13037 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
13038 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
13039 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
13040 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
13041 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
13042 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
13044 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
13046 (ia64_libgcc_floating_mode_supported_p): New function.
13047 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
13048 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
13049 (IA64_NO_LIBGCC_TFMODE): Define.
13050 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
13051 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
13053 (pdp11_scalar_mode_supported_p): New function.
13054 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
13055 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
13057 2014-09-12 Richard Biener <rguenther@suse.de>
13059 PR middle-end/63237
13060 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
13062 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
13064 * tree.c (integer_each_onep): New function.
13065 * tree.h (integer_each_onep): Declare it.
13066 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
13067 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
13068 (X & 1) == 0 for vector and complex.
13070 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
13072 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
13074 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
13075 cost to spilling from integer to FP registers.
13077 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
13079 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
13081 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
13082 are now handled correctly.
13084 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
13086 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
13087 handling of CALLER_SAVE_REGS and POINTER_REGS.
13089 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
13091 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
13092 the number of hard registers.
13094 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
13095 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13096 Anna Tikhonova <anna.tikhonova@intel.com>
13097 Ilya Tocar <ilya.tocar@intel.com>
13098 Andrey Turetskiy <andrey.turetskiy@intel.com>
13099 Ilya Verbin <ilya.verbin@intel.com>
13100 Kirill Yukhin <kirill.yukhin@intel.com>
13101 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13103 * config/i386/sse.md
13104 (define_mode_iterator VI48_AVX512VL): New.
13105 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
13106 "avx512f_vternlog<mode>_maskz" and update mode iterator.
13107 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
13108 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
13109 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
13110 "avx512f_vternlog<mode>_mask" and update mode iterator.
13111 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
13112 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
13114 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
13115 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
13116 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
13117 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
13118 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
13119 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
13121 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
13122 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13123 Anna Tikhonova <anna.tikhonova@intel.com>
13124 Ilya Tocar <ilya.tocar@intel.com>
13125 Andrey Turetskiy <andrey.turetskiy@intel.com>
13126 Ilya Verbin <ilya.verbin@intel.com>
13127 Kirill Yukhin <kirill.yukhin@intel.com>
13128 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13130 * config/i386/sse.md (VI128_256): Delete.
13131 (define_mode_iterator VI124_256): New.
13132 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
13133 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
13134 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
13135 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
13136 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
13137 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
13138 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
13139 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
13141 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
13142 in presence of AVX-512.
13144 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
13145 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13146 Anna Tikhonova <anna.tikhonova@intel.com>
13147 Ilya Tocar <ilya.tocar@intel.com>
13148 Andrey Turetskiy <andrey.turetskiy@intel.com>
13149 Ilya Verbin <ilya.verbin@intel.com>
13150 Kirill Yukhin <kirill.yukhin@intel.com>
13151 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13153 * config/i386/sse.md
13154 (define_expand "<avx512>_gathersi<mode>"): Rename from
13155 "avx512f_gathersi<mode>".
13156 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
13157 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
13158 (define_expand "<avx512>_gatherdi<mode>"): Rename from
13159 "avx512f_gatherdi<mode>".
13160 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
13161 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
13163 (define_expand "<avx512>_scattersi<mode>"): Rename from
13164 "avx512f_scattersi<mode>".
13165 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
13166 (define_expand "<avx512>_scatterdi<mode>"): Rename from
13167 "avx512f_scatterdi<mode>".
13168 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
13170 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
13172 * ira.h (ira_finish_once): Delete.
13173 * ira-int.h (target_ira_int::~target_ira_int): Declare.
13174 (target_ira_int::free_ira_costs): Likewise.
13175 (target_ira_int::free_register_move_costs): Likewise.
13176 (ira_finish_costs_once): Delete.
13177 * ira.c (free_register_move_costs): Replace with...
13178 (target_ira_int::free_register_move_costs): ...this new function.
13179 (target_ira_int::~target_ira_int): Define.
13180 (ira_init): Call free_register_move_costs as a member function rather
13181 than a global function.
13182 (ira_finish_once): Delete.
13183 * ira-costs.c (free_ira_costs): Replace with...
13184 (target_ira_int::free_ira_costs): ...this new function.
13185 (ira_init_costs): Call free_ira_costs as a member function rather
13186 than a global function.
13187 (ira_finish_costs_once): Delete.
13188 * target-globals.c (target_globals::~target_globals): Call the
13189 target_ira_int destructor.
13190 * toplev.c: Include lra.h.
13191 (finalize): Call lra_finish_once rather than ira_finish_once.
13193 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
13195 * common.opt (flto-odr-type-merging): New flag.
13196 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
13197 (types_same_for_odr): Likewise.
13198 (odr_subtypes_equivalent_p): Likewise.
13199 (add_type_duplicate): Do not walk type variants.
13200 (register_odr_type): New function.
13201 * ipa-utils.h (register_odr_type): Declare.
13202 (odr_type_p): New function.
13203 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
13205 * doc/invoke.texi (-flto-odr-type-merging): Document.
13206 * tree.c (need_assembler_name_p): Compute ODR names when asked
13208 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
13210 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
13213 * config/i386/i386.c (ix86_option_override_internal): Also turn
13214 off OPTION_MASK_ABI_X32 for -m16.
13216 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
13218 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
13221 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
13224 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
13225 Directly forward to __*_DENORM_MIN__.
13227 2014-09-11 David Malcolm <dmalcolm@redhat.com>
13229 * rtl.h (LABEL_REF_LABEL): New macro.
13231 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
13232 of XEXP (, 0), where we know that we have a LABEL_REF.
13233 * cfgbuild.c (make_edges): Likewise.
13234 (purge_dead_tablejump_edges): Likewise.
13235 * cfgexpand.c (convert_debug_memory_address): Likewise.
13236 * cfgrtl.c (patch_jump_insn): Likewise.
13237 * combine.c (distribute_notes): Likewise.
13238 * cse.c (hash_rtx_cb): Likewise.
13239 (exp_equiv_p): Likewise.
13240 (fold_rtx): Likewise.
13241 (check_for_label_ref): Likewise.
13242 * cselib.c (rtx_equal_for_cselib_1): Likewise.
13243 (cselib_hash_rtx): Likewise.
13244 * emit-rtl.c (mark_label_nuses): Likewise.
13245 * explow.c (convert_memory_address_addr_space): Likewise.
13246 * final.c (output_asm_label): Likewise.
13247 (output_addr_const): Likewise.
13248 * gcse.c (add_label_notes): Likewise.
13249 * genconfig.c (walk_insn_part): Likewise.
13250 * genrecog.c (validate_pattern): Likewise.
13251 * ifcvt.c (cond_exec_get_condition): Likewise.
13252 (noce_emit_store_flag): Likewise.
13253 (noce_get_alt_condition): Likewise.
13254 (noce_get_condition): Likewise.
13255 * jump.c (maybe_propagate_label_ref): Likewise.
13256 (mark_jump_label_1): Likewise.
13257 (redirect_exp_1): Likewise.
13258 (rtx_renumbered_equal_p): Likewise.
13259 * lra-constraints.c (operands_match_p): Likewise.
13260 * reload.c (operands_match_p): Likewise.
13261 (find_reloads): Likewise.
13262 * reload1.c (set_label_offsets): Likewise.
13263 * reorg.c (get_branch_condition): Likewise.
13264 * rtl.c (rtx_equal_p_cb): Likewise.
13265 (rtx_equal_p): Likewise.
13266 * rtlanal.c (reg_mentioned_p): Likewise.
13267 (rtx_referenced_p): Likewise.
13268 (get_condition): Likewise.
13269 * sched-vis.c (print_value): Likewise.
13270 * varasm.c (const_hash_1): Likewise.
13271 (compare_constant): Likewise.
13272 (const_rtx_hash_1): Likewise.
13273 (output_constant_pool_1): Likewise.
13275 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
13277 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
13278 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
13280 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
13281 cr6_test_for_lt_reverse): Ditto.
13283 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
13286 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
13288 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
13290 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
13291 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
13292 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
13293 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
13296 (aarch64_fold_builtin): Remove all reinterpret cases.
13298 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
13300 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
13302 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
13303 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
13304 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
13305 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
13306 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
13307 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
13308 aarch64_reinterpretv2df<mode>): Delete.
13310 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
13312 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
13313 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
13314 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
13315 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
13316 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
13317 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
13318 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
13319 vreinterpret_u32_f64): Use cast.
13321 * config/aarch64/iterators.md (VD_RE): Delete.
13323 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
13325 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
13326 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
13327 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
13328 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
13329 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
13330 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
13331 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
13332 Replace inline assembler with __aarch64_vset_lane_any.
13334 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
13336 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
13338 (vmull_high_lane_s32): Likewise.
13339 (vmull_high_lane_u16): Likewise.
13340 (vmull_high_lane_u32): Likewise.
13342 2014-09-11 Jason Merrill <jason@redhat.com>
13345 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
13347 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
13350 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
13351 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
13352 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
13354 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13355 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13356 Anna Tikhonova <anna.tikhonova@intel.com>
13357 Ilya Tocar <ilya.tocar@intel.com>
13358 Andrey Turetskiy <andrey.turetskiy@intel.com>
13359 Ilya Verbin <ilya.verbin@intel.com>
13360 Kirill Yukhin <kirill.yukhin@intel.com>
13361 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13363 * config/i386/sse.md
13364 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
13365 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
13366 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
13368 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
13369 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
13371 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
13373 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
13374 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
13375 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
13376 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
13377 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
13378 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
13379 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
13380 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
13382 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
13384 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
13385 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
13386 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
13388 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
13390 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
13391 to access removed nodes.
13393 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
13395 PR tree-optimization/63186
13396 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
13397 (mark_nonssa_use): Likewise.
13398 (verify_non_ssa_vars): Verify all header blocks for label
13401 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
13402 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13403 Anna Tikhonova <anna.tikhonova@intel.com>
13404 Ilya Tocar <ilya.tocar@intel.com>
13405 Andrey Turetskiy <andrey.turetskiy@intel.com>
13406 Ilya Verbin <ilya.verbin@intel.com>
13407 Kirill Yukhin <kirill.yukhin@intel.com>
13408 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13410 * config/i386/sse.md
13411 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
13412 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
13413 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
13414 "<avx2_avx512f>_permvar<mode><mask_name>".
13415 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
13416 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
13417 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
13418 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
13420 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
13421 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
13422 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
13423 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
13425 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
13427 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
13428 V2DF, V4SF, DF, and DI modes.
13429 (vsx_fmav2df2): Likewise.
13430 (vsx_float_fix_<mode>2): Likewise.
13431 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
13433 2014-09-10 Xinliang David Li <davidxl@google.com>
13436 * config/arm/arm.md (movcond_addsi): Handle case where source
13437 and target operands are the same.
13439 2014-09-10 David Malcolm <dmalcolm@redhat.com>
13441 * final.c (this_is_asm_operands): Strengthen this variable from
13442 rtx to const rtx_insn *.
13443 * output.h (this_is_asm_operands): Likewise.
13444 * rtl-error.c (location_for_asm): Strengthen param "insn" from
13445 const_rtx to const rtx_insn *.
13446 (diagnostic_for_asm): Likewise.
13447 * rtl-error.h (error_for_asm): Likewise.
13448 (warning_for_asm): Likewise.
13450 2014-09-10 David Malcolm <dmalcolm@redhat.com>
13452 * genextract.c (print_header): When writing out insn_extract to
13453 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
13454 * recog.h (insn_extract): Strengthen the param from rtx to
13457 2014-09-10 Mike Stump <mikestump@comcast.net>
13459 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
13462 2014-09-10 Martin Jambor <mjambor@suse.cz>
13464 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
13465 (analyze): Do not set analyze flag if expand_thunk returns false;.
13466 (create_wrapper): Likewise.
13467 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
13469 2014-09-10 Martin Jambor <mjambor@suse.cz>
13472 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
13473 new decl properly. Analyze the new thunk if it is expanded.
13475 2014-09-10 Andreas Schwab <schwab@suse.de>
13477 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
13478 [USED_FOR_TARGET]: Define.
13480 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
13482 * config/mips/mips.c (mips_secondary_reload_class): Handle
13485 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
13487 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
13490 2014-09-10 Jakub Jelinek <jakub@redhat.com>
13492 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
13493 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
13494 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
13495 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
13496 flag_delete_null_pointer_checks for them.
13497 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
13498 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
13499 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
13500 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
13501 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
13503 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
13504 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
13505 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
13506 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
13507 * doc/invoke.texi (-fsanitize=nonnull-attribute,
13508 -fsanitize=returns-nonnull-attribute): Document.
13510 * ubsan.h (struct ubsan_mismatch_data): Removed.
13511 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
13512 * ubsan.c (ubsan_source_location): For unknown locations,
13513 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
13514 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
13515 Allow more than one location and arbitrary extra arguments passed
13516 in ... instead of through MISMATCH pointer.
13517 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
13518 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
13519 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
13522 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
13523 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13524 Anna Tikhonova <anna.tikhonova@intel.com>
13525 Ilya Tocar <ilya.tocar@intel.com>
13526 Andrey Turetskiy <andrey.turetskiy@intel.com>
13527 Ilya Verbin <ilya.verbin@intel.com>
13528 Kirill Yukhin <kirill.yukhin@intel.com>
13529 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13531 * config/i386/sse.md
13532 (define_mode_iterator VI48F): New.
13533 (define_insn "<avx512>_compress<mode>_mask"): Rename from
13534 "avx512f_compress<mode>_mask" and update mode iterator.
13535 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
13536 "avx512f_compressstore<mode>_mask" and update mode iterator.
13537 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
13538 "avx512f_expand<mode>_maskz" and update mode iterator.
13539 (define_insn "<avx512>_expand<mode>_mask"): Rename from
13540 "avx512f_expand<mode>_mask" and update mode iterator.
13542 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
13543 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13544 Anna Tikhonova <anna.tikhonova@intel.com>
13545 Ilya Tocar <ilya.tocar@intel.com>
13546 Andrey Turetskiy <andrey.turetskiy@intel.com>
13547 Ilya Verbin <ilya.verbin@intel.com>
13548 Kirill Yukhin <kirill.yukhin@intel.com>
13549 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13551 * config/i386/i386.c
13552 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
13553 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
13554 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
13555 avx512dq_rangepv4sf_mask.
13556 * config/i386/sse.md
13557 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
13559 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
13560 (define_insn "reduces<mode>"): Ditto.
13561 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
13563 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
13564 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
13565 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
13567 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
13568 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13569 Anna Tikhonova <anna.tikhonova@intel.com>
13570 Ilya Tocar <ilya.tocar@intel.com>
13571 Andrey Turetskiy <andrey.turetskiy@intel.com>
13572 Ilya Verbin <ilya.verbin@intel.com>
13573 Kirill Yukhin <kirill.yukhin@intel.com>
13574 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13576 * config/i386/i386.c
13577 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
13578 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
13579 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
13580 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
13581 avx512vl_getmantv2df_mask.
13582 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
13583 avx512f_vgetmantv4sf_round.
13584 * config/i386/sse.md
13585 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
13586 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
13588 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
13589 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
13590 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
13591 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
13593 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
13594 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
13595 update mode iterator.
13597 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
13598 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
13601 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
13602 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
13603 update mode iterator.
13604 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
13605 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
13608 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
13609 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
13611 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
13612 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
13613 update mode iterator.
13614 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
13615 "avx512f_getmant<mode><round_saeonly_name>".
13617 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
13620 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
13622 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
13623 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13624 Anna Tikhonova <anna.tikhonova@intel.com>
13625 Ilya Tocar <ilya.tocar@intel.com>
13626 Andrey Turetskiy <andrey.turetskiy@intel.com>
13627 Ilya Verbin <ilya.verbin@intel.com>
13628 Kirill Yukhin <kirill.yukhin@intel.com>
13629 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13631 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
13632 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
13633 (define_mode_iterator FMAMODE_AVX512): New.
13634 (define_mode_iterator FMAMODE): Remove conditions.
13635 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
13636 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
13637 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
13639 (define_mode_iterator FMAMODE_NOVF512): Remove.
13640 (define_insn "*fma_fmadd_<mode>"): Rename from
13641 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
13642 FMAMODE mode iterator.
13643 (define_mode_iterator VF_SF_AVX512VL): New.
13644 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
13645 Use VF_SF_AVX512VL mode iterator.
13646 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
13647 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
13649 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
13650 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
13652 (define_insn "*fma_fmsub_<mode>"): Rename from
13653 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
13654 FMAMODE mode iterator.
13655 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
13656 Use VF_SF_AVX512VL mode iterator.
13657 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
13658 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
13660 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
13661 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
13663 (define_insn "*fma_fnmadd_<mode>"): Rename from
13664 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
13665 use FMAMODE mode iterator.
13666 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
13667 Use VF_SF_AVX512VL mode iterator.
13668 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
13669 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
13671 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
13672 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
13674 (define_insn "*fma_fnmsub_<mode>"): Rename from
13675 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
13676 FMAMODE mode iterator.
13677 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
13678 Use VF_SF_AVX512VL mode iterator.
13679 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
13680 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
13682 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
13683 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
13685 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
13686 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
13687 use VF_AVX512VL mode iterator.
13688 (define_insn "*fma_fmaddsub_<mode>"): Rename from
13689 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
13690 remove subst usage.
13691 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
13692 Use VF_SF_AVX512VL mode iterator.
13693 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
13694 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
13696 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
13697 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
13699 (define_insn "*fma_fmsubadd_<mode>"): Rename from
13700 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
13701 remove usage of subst.
13702 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
13703 Use VF_SF_AVX512VL mode iterator.
13704 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
13705 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
13707 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
13708 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
13711 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
13714 * calls.c (precompute_arguments): Check
13715 promoted_for_signed_and_unsigned_p and set the promoted mode.
13716 (promoted_for_signed_and_unsigned_p): New function.
13717 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
13718 and set the promoted mode.
13719 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
13720 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
13721 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
13723 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13725 * opth-gen.awk: Generate mapping from cpp message reasons to the
13726 options that enable them.
13727 * doc/options.texi (CppReason): Document.
13729 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13731 * doc/invoke.texi (Wnormalized=): Update.
13733 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
13736 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
13737 operands. Split off the constant operand alternative to ...
13738 (*bool<mode>3_imm): New.
13740 2014-09-09 David Malcolm <dmalcolm@redhat.com>
13742 * rtl.h (single_set_2): Strengthen first param from const_rtx to
13743 const rtx_insn *, and move prototype to above...
13744 (single_set): ...this. Convert this from a macro to an inline
13745 function, enforcing the requirement that the param is a const
13747 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
13749 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
13750 Strengthen both params from rtx to rtx_insn *.
13751 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
13752 Likewise; introduce locals "producer_set", "consumer_set", using
13753 them in place of "producer" and "consumer" when dealing with SET
13755 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
13756 when invoking single_set in region guarded by INSN_P.
13757 (avr_out_bitop): Likewise.
13758 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
13759 region guarded by GET_CODE check, using methods to strengthen
13760 local "this_insn" from rtx to rtx_insn *, and for clarity.
13761 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
13762 Strengthen local "insn" from rtx to rtx_insn *.
13763 (define_insn_and_split "xload<mode>_A"): Likewise.
13764 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
13766 (find_load): Likewise for return type.
13767 (workaround_speculation): Likewise for both locals named
13769 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
13771 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
13773 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
13775 * config/h8300/h8300.c (notice_update_cc): Likewise.
13776 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
13777 "insn" and "dep_insn".
13778 (exact_store_load_dependency): Likewise for both params.
13779 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
13780 since this now clashes with inline function. Instead, delay
13781 calling single_set until the point where its needed, and then
13782 assign the result to "compare_set" and rework the conditional that
13784 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
13785 local "last" from rtx to rtx_insn *.
13786 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
13788 (mips_store_data_bypass_p): Likewise for both params.
13789 * config/mips/mips.c (mips_load_store_insns): Likewise for second
13791 (mips_store_data_bypass_p): Likewise for both params.
13792 (mips_orphaned_high_part_p): Likewise for param "insn".
13793 * config/mn10300/mn10300.c (extract_bundle): Likewise.
13794 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
13795 Introduce local rtx "insn2_pat".
13796 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
13798 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
13799 Introduce local rtx "set", using it in place of "insn" for the
13800 result of single_set. This appears to fix a bug, since the call
13801 to find_regno_note on a SET does nothing.
13802 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
13803 params from rtx to rtx_insn *.
13804 (set_to_load_agen): Likewise.
13805 * config/s390/s390.c (s390_label_align): Likewise for local
13806 "prev_insn". Introduce new rtx locals "set" and "src", using
13807 them in place of "prev_insn" for the results of single_set
13808 and SET_SRC respectively.
13809 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
13810 Introduce new rtx local "set" using in place of "jump" for the
13811 result of single_set. Use SET_SRC (set) rather than plain
13813 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
13815 (noncall_uses_reg): Likewise.
13816 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
13817 guarded by GET_CODE check, using its methods for clarity, and to
13818 enable strengthening local "this_insn" from rtx to rtx_insn *.
13819 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
13820 "insn" from rtx to rtx_insn *.
13821 (define_expand "umulhisi3"): Likewise.
13822 (define_expand "smulsi3_highpart"): Likewise.
13823 (define_expand "umulsi3_highpart"): Likewise.
13824 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
13825 local "after". Replace GET_CODE check with a dyn_cast,
13826 introducing new local rtx_sequence * "seq", using insn method for
13829 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
13830 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
13831 place of "insn" once we're dealing with patterns rather than the
13833 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
13834 (scan_trace): Likewise for local "elt", updating lookups within
13835 sequence to use insn method rather than element method.
13836 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
13838 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
13839 * ifcvt.c (noce_try_abs): Likewise for local "insn".
13840 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
13841 invoking single_set.
13842 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
13843 "insn" from rtx to rtx_insn *.
13844 (skip_usage_debug_insns): Likewise for return type, adding a
13846 (check_secondary_memory_needed_p): Likewise for local "insn".
13847 (inherit_reload_reg): Likewise.
13848 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
13849 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
13851 (store_data_bypass_p): Likewise for both params.
13852 (if_test_bypass_p): Likewise.
13853 * recog.h (store_data_bypass_p): Likewise for both params.
13854 (if_test_bypass_p): Likewise.
13855 * reload.c (find_equiv_reg): Likewise for local "where".
13856 * reorg.c (delete_jump): Likewise for param "insn".
13857 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
13858 to const rtx_insn *.
13859 * store-motion.c (replace_store_insn): Likewise for param "del".
13860 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
13861 and use its methods for clarity, and to strengthen local "del"
13862 from rtx to rtx_insn *.
13863 (build_store_vectors): Use insn method of "st" when calling
13864 replace_store_insn for typesafety and clarity.
13866 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13868 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
13869 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
13870 on how to make it legal in future.
13872 2014-09-09 David Malcolm <dmalcolm@redhat.com>
13874 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
13876 (restinsn): Likewise.
13877 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
13878 Likewise for param.
13879 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
13881 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
13883 (arc_hazard): Likewise for both params.
13884 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
13885 checked casts to rtx_sequence * and uses of the insn method for
13887 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
13888 (arc_adjust_insn_length): Likewise for param "insn".
13889 (struct insn_length_parameters_s): Likewise for first param of
13890 "get_variants" callback field.
13891 (arc_get_insn_variants): Likewise for first param and local
13892 "inner". Replace a check of GET_CODE with a dyn_cast to
13893 rtx_sequence *, using methods for type-safety and clarity.
13894 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
13895 rtx_sequence * and uses of the insn method for type-safety when
13896 invoking arc_adjust_insn_length.
13897 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
13899 (arm_address_offset_is_imm): Likewise.
13900 (struct tune_params): Likewise for params 1 and 3 of the
13901 "sched_adjust_cost" callback field.
13902 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
13903 params 1 and 3 ("insn" and "dep").
13904 (xscale_sched_adjust_cost): Likewise.
13905 (fa726te_sched_adjust_cost): Likewise.
13906 (cortexa7_older_only): Likewise for param "insn".
13907 (cortexa7_younger): Likewise.
13908 (arm_attr_length_move_neon): Likewise.
13909 (arm_address_offset_is_imm): Likewise.
13910 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
13911 * config/avr/avr.c (avr_notice_update_cc): Likewise.
13912 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
13913 (workaround_speculation): Likewise for local "last_condjump".
13914 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
13915 (shadow_or_blockage_p): Likewise.
13916 (get_unit_reqs): Likewise.
13917 (get_unit_operand_masks): Likewise.
13918 (c6x_registers_update): Likewise.
13919 (returning_call_p): Likewise.
13920 (can_use_callp): Likewise.
13921 (convert_to_callp): Likewise.
13922 (find_last_same_clock): Likwise for local "t".
13923 (reorg_split_calls): Likewise for local "shadow".
13924 (hwloop_pattern_reg): Likewise for param "insn".
13925 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
13926 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
13927 (frv_extract_membar): Likewise.
13928 (frv_optimize_membar_local): Strengthen param "last_membar" from
13929 rtx * to rtx_insn **.
13930 (frv_optimize_membar_global): Strengthen param "membar" from rtx
13932 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
13934 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
13935 both params from rtx to rtx_insn *.
13936 (ia64_ld_address_bypass_p): Likewise.
13937 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
13939 (ia64_safe_type): Likewise.
13940 (group_barrier_needed): Likewise.
13941 (safe_group_barrier_needed): Likewise.
13942 (ia64_single_set): Likewise.
13943 (is_load_p): Likewise.
13944 (record_memory_reference): Likewise.
13945 (get_mode_no_for_insn): Likewise.
13946 (important_for_bundling_p): Likewise.
13947 (unknown_for_bundling_p): Likewise.
13948 (ia64_st_address_bypass_p): Likewise for both params.
13949 (ia64_ld_address_bypass_p): Likewise.
13950 (expand_vselect): Introduce new local rtx_insn * "insn", using it
13951 in place of rtx "x" after the emit_insn call.
13952 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
13953 Strengthen param from rtx to rtx_insn *.
13954 (ix86_agi_dependent): Likewise for both params.
13955 (ix86_attr_length_immediate_default): Likewise for param 1.
13956 (ix86_attr_length_address_default): Likewise for param.
13957 (ix86_attr_length_vex_default): Likewise for param 1.
13958 * config/i386/i386.c (ix86_attr_length_immediate_default):
13959 Likewise for param "insn".
13960 (ix86_attr_length_address_default): Likewise.
13961 (ix86_attr_length_vex_default): Likewise.
13962 (ix86_agi_dependent): Likewise for both params.
13963 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
13964 (vselect_insn): Likewise for this variable.
13965 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
13967 (m68k_sched_attr_opy_type): Likewise.
13968 * config/m68k/m68k.c (sched_get_operand): Likewise.
13969 (sched_attr_op_type): Likewise.
13970 (m68k_sched_attr_opx_type): Likewise.
13971 (m68k_sched_attr_opy_type): Likewise.
13972 (sched_get_reg_operand): Likewise.
13973 (sched_get_mem_operand): Likewise.
13974 (m68k_sched_address_bypass_p): Likewise for both params.
13975 (sched_get_indexed_address_scale): Likewise.
13976 (m68k_sched_indexed_address_bypass_p): Likewise.
13977 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
13978 (m68k_sched_indexed_address_bypass_p): Likewise.
13979 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
13980 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
13982 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
13983 params from rtx to rtx_insn *.
13984 (mips_fmadd_bypass): Likewise.
13985 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
13986 (mips_linked_madd_p): Likewise.
13987 (mips_macc_chains_last_hilo): Likewise for this variable.
13988 (mips_macc_chains_record): Likewise for param.
13989 (vr4130_last_insn): Likewise for this variable.
13990 (vr4130_swap_insns_p): Likewise for both params.
13991 (mips_ls2_variable_issue): Likewise for param.
13992 (mips_need_noat_wrapper_p): Likewise for param "insn".
13993 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
13994 in place of "x" after the emit_insn.
13995 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
13996 params from rtx to rtx_insn *.
13997 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
13998 (pa_combine_instructions): Introduce local "par" for result of
13999 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
14001 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
14002 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
14003 (rl78_alloc_physical_registers_op1): Likewise.
14004 (rl78_alloc_physical_registers_op2): Likewise.
14005 (rl78_alloc_physical_registers_ro1): Likewise.
14006 (rl78_alloc_physical_registers_cmp): Likewise.
14007 (rl78_alloc_physical_registers_umul): Likewise.
14008 (rl78_alloc_address_registers_macax): Likewise.
14009 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
14010 * config/s390/predicates.md (execute_operation): Likewise for
14012 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
14014 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
14015 (addr_generation_dependency_p): Likewise for param "insn".
14016 (s390_agen_dep_p): Likewise for both params.
14017 (s390_fpload_toreg): Likewise for param "insn".
14018 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
14019 * config/sh/sh.c (sh_loop_align): Likewise for param and local
14021 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
14022 * config/sh/sh_treg_combine.cc
14023 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
14025 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
14026 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
14027 "and_insn", "load", "shift".
14028 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
14030 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
14031 for XEXP (note, 0) of the REG_CC_SETTER note.
14032 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
14033 rtx_insn *, eliminating a checked cast made redundant by this.
14034 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
14036 * genattr.c (main): When writing out the prototype to
14037 const_num_delay_slots, strengthen the param from rtx to
14039 * genattrtab.c (write_const_num_delay_slots): Likewise when
14040 writing out the implementation of const_num_delay_slots.
14041 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
14042 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
14043 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
14044 favor of new rtx locals "src" and "set" and new local rtx_insn *
14046 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
14048 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
14049 locals "cond", "if_then_else", "set" and new rtx_insn * locals
14051 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
14052 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
14053 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
14054 the top-level scope, replacing with new more tightly-scoped rtx
14055 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
14056 "new_insn", "copy_of_insn_b", and make local rtx "set" more
14058 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
14060 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
14062 (ira_setup_alts): Likewise for param "insn".
14063 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
14064 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
14066 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
14067 new more-tightly scoped rtx locals "add3_insn", "insn",
14068 "add2_insn" and rtx_insn * "move_insn".
14069 * postreload-gcse.c (eliminate_partially_redundant_load): Add
14070 checked cast on result of gen_move_insn when invoking
14072 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
14074 (verify_changes): Add a checked cast on "object" when invoking
14076 (extract_insn_cached): Strengthen param "insn" from rtx to
14078 (extract_constrain_insn_cached): Likewise.
14079 (extract_insn): Likewise.
14080 * recog.h (insn_invalid_p): Likewise for param 1.
14081 (recog_memoized): Likewise for param.
14082 (extract_insn): Likewise.
14083 (extract_constrain_insn_cached): Likewise.
14084 (extract_insn_cached): Likewise.
14085 * reload.c (can_reload_into): Likewise for local "test_insn".
14086 * reload.h (cleanup_subreg_operands): Likewise for param.
14087 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
14088 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
14089 result of emit_insn. Remove a checked cast made redundant by this
14091 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
14093 * sel-sched.c (get_reg_class): Likewise.
14095 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
14096 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14098 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
14099 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
14101 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
14103 2014-09-09 David Malcolm <dmalcolm@redhat.com>
14105 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
14106 const rtx_insn *, and from rtx to rtx_insn * for the other
14107 overloaded variant.
14108 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
14109 INSN_LOCATION, since we know INSN_P holds.
14110 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
14111 (insn_file): Likewise.
14112 (insn_scope): Likewise.
14113 (insn_location): Likewise.
14115 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
14116 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
14117 for the result of gen_load_const_gp.
14118 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
14119 param from rtx to rtx_insn *.
14120 * config/rs6000/rs6000.c (output_call): Likewise.
14121 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
14122 introducing a checked cast to rtx_sequence * and use of the insn
14124 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
14125 from rtx to rtx_insn *.
14126 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
14127 (insn_line): Likewise.
14128 (insn_file): Likewise.
14129 (insn_location): Likewise.
14130 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
14131 from rtx to rtx_insn *.
14132 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
14133 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
14134 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
14135 via a checked cast.
14136 * reorg.c (relax_delay_slots): Strengthen locals named "after"
14137 from rtx to rtx_insn *; use methods of "pat" for type-safety.
14139 2014-09-09 David Malcolm <dmalcolm@redhat.com>
14141 * combine.c (try_combine): Eliminate checked cast on result of
14143 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
14144 autogenerated one by strengthening the return type and params 2 and 3
14145 from rtx to rtx_insn *, and by naming the params.
14146 * gengenrtl.c (special_rtx): Add INSN to those that are
14148 * rtl.h (gen_rtx_INSN): New prototype.
14150 2014-09-09 David Malcolm <dmalcolm@redhat.com>
14152 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
14154 (no_equiv): Likewise.
14155 (update_equiv_regs): Likewise.
14156 (setup_reg_equiv): Likewise. Strengthen locals "elem",
14157 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
14158 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
14160 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
14161 from rtx to rtx_insn_list *.
14162 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
14163 rtx_insn_list * and use methods for clarity and typesafety.
14164 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
14166 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
14167 redundant check on INSN_P (insns): this cannot hold, as "insns" is
14168 an INSN_LIST, not an insn.
14169 (reverse_equiv_p): Strengthen local "insns" from rtx to
14170 rtx_insn_list * and use methods for clarity and typesafety.
14171 (contains_reloaded_insn_p): Likewise for local "list".
14173 2014-09-09 Jiong Wang <jiong.wang@arm.com>
14175 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
14176 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
14177 (arm_builtin_vectorized_function): Likewise.
14178 * config/arm/arm_neon_builtins.def: New macro for copysignf.
14179 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
14181 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
14183 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
14184 * builtins.h (default_target_builtins): Likewise.
14185 * gcse.h (default_target_gcse): Likewise.
14186 * target-globals.h (target_globals): Add a destructor. Convert
14187 void-pointer fields back to their real type and change from
14188 GTY((atomic)) to GTY((skip)).
14189 (restore_target_globals): Remove casts accordingly.
14190 * target-globals.c (save_target_globals): Use XCNEW rather than
14191 ggc_internal_cleared_alloc to allocate non-GC structures.
14192 Use ggc_cleared_alloc to allocate the target_globals structure
14194 (target_globals::~target_globals): Define.
14196 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14198 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
14199 mnemonic instead of fldmfdd.
14200 * config/arm/arm.c (vfp_output_fstmd): Rename to...
14201 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
14202 Output vpush when address register is SP.
14203 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
14204 (vfp_output_vstmd): ... This.
14205 * config/arm/vfp.md (push_multi_vfp): Update call to
14208 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14210 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
14212 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14214 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
14215 (*sqrtdf2_vfp): Likewise.
14216 (*cmpsf_vfp): Likewise.
14217 (*cmpsf_trap_vfp): Likewise.
14218 (*cmpdf_vfp): Likewise.
14219 (*cmpdf_trap_vfp): Likewise.
14221 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14223 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
14224 (*truncdfsf2_vfp): Likewise.
14225 (*truncsisf2_vfp): Likewise.
14226 (*truncsidf2_vfp): Likewise.
14227 (fixuns_truncsfsi2): Likewise.
14228 (fixuns_truncdfsi2): Likewise.
14229 (*floatsisf2_vfp): Likewise.
14230 (*floatsidf2_vfp): Likewise.
14231 (floatunssisf2): Likewise.
14232 (floatunssidf2): Likewise.
14234 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14236 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
14237 (*muldf3_vfp): Likewise.
14238 (*mulsf3negsf_vfp): Likewise.
14239 (*muldf3negdf_vfp): Likewise.
14240 (*mulsf3addsf_vfp): Likewise.
14241 (*muldf3adddf_vfp): Likewise.
14242 (*mulsf3subsf_vfp): Likewise.
14243 (*muldf3subdf_vfp): Likewise.
14244 (*mulsf3negsfaddsf_vfp): Likewise.
14245 (*fmuldf3negdfadddf_vfp): Likewise.
14246 (*mulsf3negsfsubsf_vfp): Likewise.
14247 (*muldf3negdfsubdf_vfp): Likewise.
14249 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14251 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
14252 (*absdf2_vfp): Likewise.
14253 (*negsf2_vfp): Likewise.
14254 (*negdf2_vfp): Likewise.
14255 (*addsf3_vfp): Likewise.
14256 (*adddf3_vfp): Likewise.
14257 (*subsf3_vfp): Likewise.
14258 (*subdf3_vfp): Likewise.
14259 (*divsf3_vfp): Likewise.
14260 (*divdf3_vfp): Likewise.
14262 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14264 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
14266 (arm_print_operand): Don't convert real values to decimal
14267 representation in default case.
14268 (fp_immediate_constant): Delete.
14269 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
14270 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
14272 (*thumb2_movsi_vfp): Likewise.
14273 (*movdi_vfp): Likewise.
14274 (*movdi_vfp_cortexa8): Likewise.
14275 (*movhf_vfp_neon): Likewise.
14276 (*movhf_vfp): Likewise.
14277 (*movsf_vfp): Likewise.
14278 (*thumb2_movsf_vfp): Likewise.
14279 (*movdf_vfp): Likewise.
14280 (*thumb2_movdf_vfp): Likewise.
14281 (*movsfcc_vfp): Likewise.
14282 (*thumb2_movsfcc_vfp): Likewise.
14283 (*movdfcc_vfp): Likewise.
14284 (*thumb2_movdfcc_vfp): Likewise.
14286 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
14288 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
14289 (-mtune): Likewise.
14292 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14295 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
14296 Use qualifier_immediate for last operand. Rename to...
14297 (aarch64_types_ternop_lane_qualifiers): ... This.
14298 (TYPES_QUADOP): Rename to...
14299 (TYPES_TERNOP_LANE): ... This.
14300 (aarch64_simd_expand_args): Return const0_rtx when encountering user
14301 error. Change return of 0 to return of NULL_RTX.
14302 (aarch64_crc32_expand_builtin): Likewise.
14303 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
14304 ICE when expanding unknown builtin.
14305 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
14306 TERNOP_LANE qualifiers.
14307 (sqdmlsl_lane): Likewise.
14308 (sqdmlal_laneq): Likewise.
14309 (sqdmlsl_laneq): Likewise.
14310 (sqdmlal2_lane): Likewise.
14311 (sqdmlsl2_lane): Likewise.
14312 (sqdmlal2_laneq): Likewise.
14313 (sqdmlsl2_laneq): Likewise.
14315 2014-09-09 Nick Clifton <nickc@redhat.com>
14317 * doc/invoke.texi (Optimization Options): Add missing @gol to the
14319 (S/390 and zSeries Options): Remove superfluous word from the
14320 description of the -mhotpatch option.
14322 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
14324 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
14325 * ira.c: #include "shrink-wrap.h"
14326 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
14327 * ifcvt.c: #include "shrink-wrap.h"
14328 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
14330 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
14332 * common/config/picochip/picochip-common.c: Remove.
14333 * config.gcc: Remove support for picochip.
14334 * config/picochip/constraints.md: Remove.
14335 * config/picochip/dfa_space.md: Remove.
14336 * config/picochip/dfa_speed.md: Remove.
14337 * config/picochip/picochip-protos.h: Remove.
14338 * config/picochip/picochip.c: Remove.
14339 * config/picochip/picochip.h: Remove.
14340 * config/picochip/picochip.md: Remove.
14341 * config/picochip/picochip.opt: Remove.
14342 * config/picochip/predicates.md: Remove.
14343 * config/picochip/t-picochip: Remove.
14344 * doc/md.texi: Don't document picochi.
14346 2014-09-08 David Malcolm <dmalcolm@redhat.com>
14348 * basic-block.h (control_flow_insn_p): Strengthen param from
14349 const_rtx to const rtx_insn *.
14350 * cfgbuild.c (control_flow_insn_p): Likewise.
14352 2014-09-08 David Malcolm <dmalcolm@redhat.com>
14354 * gcse.c (modify_mem_list): Strengthen this variable from
14355 vec<rtx> * to vec<rtx_insn *> *.
14356 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
14358 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
14359 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
14360 (record_last_mem_set_info): Strengthen param "insn" from rtx to
14362 (record_last_set_info): Likewise for local "last_set_insn".
14364 2014-09-08 DJ Delorie <dj@redhat.com>
14366 * doc/invoke.texi (MSP430 Options): Add -minrt.
14368 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14370 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
14371 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
14372 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
14374 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
14376 (adjust_splat): New function.
14377 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
14378 (dump_swap_insn_table): Add case for SH_SPLAT.
14380 2014-09-08 Richard Biener <rguenther@suse.de>
14383 * tree-inline.c (copy_loops): The source loop header should
14384 always be non-NULL.
14385 (tree_function_versioning): If loops need fixup after removing
14386 unreachable blocks fix them.
14387 * omp-low.c (simd_clone_adjust): Do not add incr block to
14388 loop under construction.
14390 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
14392 * config/aarch64/aarch64-builtins.c
14393 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
14395 2014-09-08 Joseph Myers <joseph@codesourcery.com>
14397 * config/i386/cygming.h (TF_SIZE): Remove.
14398 * config/i386/darwin.h (TF_SIZE): Remove.
14399 * config/i386/dragonfly.h (TF_SIZE): Remove.
14400 * config/i386/freebsd.h (TF_SIZE): Remove.
14401 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
14402 * config/i386/openbsdelf.h (TF_SIZE): Remove.
14403 * config/i386/sol2.h (TF_SIZE): Remove.
14404 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
14405 * config/ia64/linux.h (TF_SIZE): Remove.
14406 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
14407 * doc/tm.texi: Regenerate.
14408 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
14410 2014-09-08 Joseph Myers <joseph@codesourcery.com>
14412 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
14414 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
14416 * doc/tm.texi: Regenerate.
14417 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
14419 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
14420 * config/cris/cris.h (__make_dp): Remove.
14422 2014-09-08 Richard Biener <rguenther@suse.de>
14425 * cfgloop.c (mark_loop_for_removal): Track former header
14427 * cfgloop.h (struct loop): Add former_header member unconditionally.
14428 * loop-init.c (fix_loop_structure): Enable bogus loop removal
14429 diagnostic unconditionally.
14431 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
14434 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
14435 constraint for operand0 and remove write only modifier from operand3.
14437 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
14439 PR rtl-optimization/62208
14440 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
14441 rather than const0_rtx in eq/ne-xor simplifications.
14443 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
14445 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
14446 (arc_output_mi_thunk): Likewise.
14448 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
14449 arguments to silence bogus warning.
14451 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
14453 PR middle-end/63171
14454 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
14456 2014-09-06 Tom de Vries <tom@codesourcery.com>
14458 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
14459 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
14460 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14462 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
14465 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
14466 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
14468 2014-09-05 Easwaran Raman <eraman@google.com>
14470 PR rtl-optimization/62146
14471 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
14472 hoisted instruction unconditional.
14474 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
14477 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
14478 Do not allow any_mask_operand for operands[2].
14479 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
14481 2014-09-05 David Malcolm <dmalcolm@redhat.com>
14483 * config/arc/arc.c (arc_print_operand): Use insn method of
14484 final_sequence for type-safety.
14485 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
14486 "insn" from rtx to rtx_insn *.
14487 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
14488 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
14489 Likewise for locals "branch", "label".
14490 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
14491 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
14492 (same_cmp_following_p): Likewise for locals "i2", "i3".
14493 * config/sh/sh_optimize_sett_clrt.cc
14494 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
14495 param "cbranch_insn".
14496 * function.c (convert_jumps_to_returns): Likewis for local "jump".
14497 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
14498 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
14500 (condjump_p): Likewise.
14501 (condjump_in_parallel_p): Likewise.
14502 (pc_set): Likewise.
14503 (any_uncondjump_p): Likewise.
14504 (any_condjump_p): Likewise.
14505 (condjump_label): Likewise.
14506 (returnjump_p): Strengthen param "insn" from rtx to
14508 (onlyjump_p): Strengthen param "insn" from const_rtx to
14510 (jump_to_label_p): Likewise.
14511 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
14512 (invert_jump): Likewise.
14513 * reorg.c (simplejump_or_return_p): Add checked cast when calling
14515 (get_jump_flags): Strengthen param "insn" from rtx to
14517 (get_branch_condition): Likewise.
14518 (condition_dominates_p): Likewise.
14519 (make_return_insns): Move declaration of local "pat" earlier, to
14520 after we've handled NONJUMP_INSN_P and non-sequences, using its
14521 methods to simplify the code and for type-safety.
14522 * rtl.h (find_constant_src): Strengthen param from const_rtx to
14524 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
14525 (condjump_p): Strengthen param from const_rtx to
14527 (any_condjump_p): Likewise.
14528 (any_uncondjump_p): Likewise.
14529 (pc_set): Likewise.
14530 (condjump_label): Likewise.
14531 (simplejump_p): Likewise.
14532 (returnjump_p): Likewise.
14533 (onlyjump_p): Likewise.
14534 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
14535 (invert_jump): Likewise.
14536 (condjump_in_parallel_p): Strengthen param from const_rtx to
14538 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
14539 to const rtx_insn *.
14540 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
14541 to const rtx_insn *.
14542 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
14544 2014-09-05 David Malcolm <dmalcolm@redhat.com>
14546 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
14547 above the conditional, and convert the check on GET_CODE to a
14548 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
14549 the conditional. Simplify the conditional by using methods of
14552 2014-09-05 David Malcolm <dmalcolm@redhat.com>
14554 * haifa-sched.c (check_clobbered_conditions): Strengthen local
14555 "link" from rtx to rtx_insn_list *, and use its methods for
14556 clarity and type-safety.
14557 (toggle_cancelled_flags): Likewise.
14558 (restore_last_backtrack_point): Likewise.
14559 (queue_to_ready): Use insn method of "link" in one place.
14560 (schedule_block): Strengthen local "link" from rtx to
14561 rtx_insn_list *, and use its methods for clarity and type-safety.
14563 2014-09-05 David Malcolm <dmalcolm@redhat.com>
14565 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
14566 param "insn" from const_rtx to const rtx_insn *.
14567 (sched_get_reverse_condition_uncached): Likewise.
14568 (sched_get_condition_with_rev): Likewise.
14569 (sched_has_condition_p): Likewise.
14570 (sched_insns_conditions_mutex_p): Likewise for both params.
14571 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
14572 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
14573 (setup_insn_reg_uses): Move local "list" to be more tightly
14574 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
14575 its methods for clarity and type-safety.
14576 (sched_analyze_1): Strengthen local "pending" from rtx to
14577 rtx_insn_list *, and local "pending_mem" from rtx to
14578 rtx_expr_list *. Use methods of each for clarity and type-safety.
14579 (sched_analyze_2): Likewise.
14580 (sched_analyze_insn): Likewise.
14582 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
14583 param from const_rtx to const rtx_insn *.
14584 (sched_insns_conditions_mutex_p): Likewise for both params.
14585 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
14588 * system.h (CONST_CAST_RTX_INSN): New macro.
14590 2014-09-05 David Malcolm <dmalcolm@redhat.com>
14592 * recog.c (peep2_attempt): Strengthen return type from rtx to
14594 (peep2_update_life): Likewise for params "last", "prev", removing
14595 a checked cast made redundant by this.
14596 (peephole2_optimize): Likewise for local "last".
14598 2014-09-05 David Malcolm <dmalcolm@redhat.com>
14600 * basic-block.h (set_block_for_insn): Eliminate this macro in
14602 * rtl.h (set_block_for_insn): New inline function, imposing the
14603 requirement that the "insn" param is an rtx_insn *.
14605 2014-09-05 David Malcolm <dmalcolm@redhat.com>
14607 * caller-save.c (setup_save_areas): Strengthen local "insn" from
14609 * final.c (get_call_reg_set_usage): Likewise for first param,
14610 eliminating a checked cast.
14611 * regs.h (get_call_reg_set_usage): Likewise for first param.
14612 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
14613 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
14614 cast, replacing references to "x" with "call_insn" where
14616 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
14617 rtx_insn *, adding a checked cast.
14619 2014-09-05 David Malcolm <dmalcolm@redhat.com>
14621 * output.h (final_scan_insn): Strengthen first param from rtx to
14624 * final.c (final_scan_insn): Likewise, renaming it back from
14625 "uncast_insn" to "insn", eliminating the checked cast.
14627 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
14628 "vec" with an rtx_sequence * "seq", taking a copy of
14629 "final_sequence", and using methods of "seq" for clarity, and for
14630 type-safety in the calls to final_scan_insn.
14631 * config/mips/mips.c (mips_output_conditional_branch): Use methods
14632 of "final_sequence" for clarity, and for type-safety in the call to
14634 * config/sh/sh.c (print_slot): Strengthen param from rtx to
14635 rtx_sequence * and rename from "insn" to "seq".
14637 2014-09-05 David Malcolm <dmalcolm@redhat.com>
14639 * jump.c (delete_related_insns): Introduce a new local "table" by
14640 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
14641 get_labels method of "table" to simplify access to the labels in
14644 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14646 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
14647 f_minmaxs, f_minmaxd types.
14649 2014-09-05 Richard Biener <rguenther@suse.de>
14651 * cfgloop.c (mark_loop_for_removal): Record former header
14652 when ENABLE_CHECKING.
14653 * cfgloop.h (strut loop): Add former_header member when
14655 * loop-init.c (fix_loop_structure): Sanity check loops
14656 marked for removal if they re-appeared.
14658 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
14660 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
14661 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
14663 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
14664 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
14665 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
14666 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
14667 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
14668 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
14669 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
14670 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
14671 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
14672 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
14673 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
14674 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
14675 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
14676 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
14677 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
14678 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
14679 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
14680 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
14681 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
14682 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
14683 with int{32,16,8}_t.
14685 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
14687 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
14688 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
14689 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
14690 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
14691 Remove temporary __asm__ and reimplement.
14693 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
14695 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
14696 handling cmge, cmgt, cmeq, cmtst.
14698 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
14699 cmlt, cmgeu, cmgtu, cmtst): Remove.
14701 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
14702 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
14703 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
14704 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
14706 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
14708 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
14709 TYPES_TST): Define.
14710 (aarch64_fold_builtin): Update pattern for cmtst.
14712 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
14715 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
14717 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
14718 Switch operands, separate out more cases, refactor.
14720 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
14722 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
14723 argument; rename old version to...
14724 (aarch64_const_vec_all_same_in_range_p): ...this.
14725 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
14727 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
14729 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
14731 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
14732 Remove qualifier_const_pointer, update comment.
14734 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
14736 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
14738 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
14740 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
14741 varargs with pointer parameter.
14742 (aarch64_simd_expand_builtin): pass pointer into previous.
14744 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14746 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
14749 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
14751 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
14752 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
14753 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
14754 Replace temporary asm with call to builtin.
14755 (vrbit_p8, vrbitq_p8): New functions.
14757 2014-09-05 Richard Biener <rguenther@suse.de>
14759 * cfgloop.c (mark_loop_for_removal): New function.
14760 * cfgloop.h (mark_loop_for_removal): Declare.
14761 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
14762 (merge_blocks): Likewise.
14763 (duplicate_block): Likewise.
14764 * except.c (sjlj_emit_dispatch_table): Likewise.
14765 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
14766 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
14767 (thread_through_loop_header): Likewise.
14769 2014-09-05 Richard Biener <rguenther@suse.de>
14771 PR middle-end/63148
14772 * fold-const.c (try_move_mult_to_index): Remove.
14773 (fold_binary_loc): Do not call it.
14774 * tree-data-ref.c (dr_analyze_indices): Strip conversions
14775 from the base object again.
14777 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
14779 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
14782 2014-09-05 Bin Cheng <bin.cheng@arm.com>
14785 * config/arm/arm.md (setmem): New pattern.
14786 * config/arm/arm-protos.h (struct tune_params): New fields.
14787 (arm_gen_setmem): New prototype.
14788 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
14789 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
14790 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
14791 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
14792 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
14793 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
14794 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
14795 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
14796 (arm_const_inline_cost): New function.
14797 (arm_block_set_max_insns): New function.
14798 (arm_block_set_non_vect_profit_p): New function.
14799 (arm_block_set_vect_profit_p): New function.
14800 (arm_block_set_unaligned_vect): New function.
14801 (arm_block_set_aligned_vect): New function.
14802 (arm_block_set_unaligned_non_vect): New function.
14803 (arm_block_set_aligned_non_vect): New function.
14804 (arm_block_set_vect, arm_gen_setmem): New functions.
14806 2014-09-05 Bin Cheng <bin.cheng@arm.com>
14808 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
14810 2014-09-05 Bin Cheng <bin.cheng@arm.com>
14812 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
14814 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
14816 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
14818 * valtrack.h: Adjust.
14820 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
14822 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
14824 (emit_jump_insn_before_noloc): Likewise.
14825 (emit_call_insn_before_noloc): Likewise.
14826 (emit_label_before): Likewise.
14827 (emit_label_after): Likewise.
14828 (emit_insn_before_setloc): Likewise.
14829 (emit_jump_insn_before_setloc): Likewise.
14830 (emit_call_insn_before_setloc): Likewise.
14831 (emit_call_insn_before): Likewise.
14834 2014-09-05 David Malcolm <dmalcolm@redhat.com>
14836 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
14837 rtx_insn *, eliminating a checked cast.
14839 2014-09-05 David Malcolm <dmalcolm@redhat.com>
14841 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
14842 const_rtx to const rtx_insn *.
14843 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
14846 2014-09-05 David Malcolm <dmalcolm@redhat.com>
14848 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
14849 fixup_args_size_notes.
14850 * expr.c (fixup_args_size_notes): Strengthen first two params from
14851 rtx to rtx_insn *, eliminating a checked cast.
14852 * rtl.h (fixup_args_size_notes): Strengthen first two params from
14855 2014-09-05 David Malcolm <dmalcolm@redhat.com>
14857 * haifa-sched.c (get_ready_element): Strengthen return type from
14859 * sched-int.h (get_ready_element): Likewise.
14861 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
14864 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
14865 indexed_or_indirect_operand instead of memory_operand.
14866 (floatsi<mode>2_lfiwzx_mem): Ditto.
14868 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
14870 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
14871 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
14872 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
14874 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
14876 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
14878 (get_last_nonnote_insn): Likewise.
14879 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
14880 * resource.c (find_basic_block): Likewise.
14882 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
14885 2014-09-04 David Malcolm <dmalcolm@redhat.com>
14887 * genattr.c (main): Within the prototype of insn_latency written
14888 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
14889 * genautomata.c (output_internal_maximal_insn_latency_func):
14890 Within the implementation of insn_latency written out to
14891 insn-automata.c, strengthen both params from rtx to rtx_insn *,
14892 eliminating a pair of checked casts.
14894 2014-09-04 David Malcolm <dmalcolm@redhat.com>
14896 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
14899 * rtl.h (eh_returnjump_p): Likewise.
14901 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
14903 * Makefile.in (TAGS): Handle constructs in timevar.def.
14905 2014-09-04 Guozhi Wei <carrot@google.com>
14908 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
14909 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
14910 it into two patterns.
14911 (move_lo_quad_internal_be_<mode>): Likewise.
14913 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
14915 * doc/options.texi: Document that Var and Init are required if CPP
14917 * optc-gen.awk: Require Var and Init if CPP is given.
14918 * common.opt (Wpedantic): Use Init.
14920 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14922 * config/rs6000/rs6000.c (special_handling_values): Add
14924 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
14925 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
14926 as swappable with special handling SH_EXTRACT. Remove
14927 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
14929 (adjust_extract): New function.
14930 (handle_special_swappables): Add default to case statement; add
14931 case for SH_EXTRACT that calls adjust_extract.
14932 (dump_swap_insn_table): Handle SH_EXTRACT.
14934 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14936 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
14937 selection of 0th memory doubleword, regardless of endianness.
14939 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14941 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
14943 2014-09-04 Alan Modra <amodra@gmail.com>
14946 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
14949 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
14951 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
14952 * targhooks.c (default_dwarf_frame_reg_mode): New function.
14953 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
14954 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
14955 * doc/tm.texi: Regenerate.
14956 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
14957 selection logic to default_dwarf_frame_reg_mode.
14959 2014-09-03 Marek Polacek <polacek@redhat.com>
14961 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
14964 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
14966 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
14967 the automodified register.
14969 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
14971 * output.h (get_some_local_dynamic_name): Declare.
14972 * final.c (some_local_dynamic_name): New variable.
14973 (get_some_local_dynamic_name): New function.
14974 (final_end_function): Clear some_local_dynamic_name.
14975 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
14976 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
14977 (print_operand): Report an error if '%&' is used inappropriately.
14978 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
14979 (get_some_local_dynamic_name_1): Delete.
14980 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
14981 (rs6000_get_some_local_dynamic_name): Delete.
14982 (rs6000_get_some_local_dynamic_name_1): Delete.
14983 (print_operand): Report an error if '%&' is used inappropriately.
14984 * config/s390/s390.c (machine_function): Remove some_ld_name.
14985 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
14986 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
14987 * config/sparc/sparc.c: Include rtl-iter.h.
14988 (machine_function): Remove some_ld_name.
14989 (sparc_print_operand): Report an error if '%&' is used inappropriately.
14990 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
14992 2014-09-03 Richard Henderson <rth@redhat.com>
14994 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
14995 (aarch64_popwb_pair_reg): Remove.
14996 (aarch64_set_frame_expr): Remove.
14997 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
14998 the restore ops performed by the insns generated.
14999 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
15000 insn. Perform the calls_eh_return addition later; do not attempt to
15001 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
15002 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
15003 special markup at all. Load cfun->machine->frame.hard_fp_offset
15004 into a local variable.
15005 (aarch64_frame_pointer_required): Don't check calls_alloca.
15007 2014-09-03 Richard Biener <rguenther@suse.de>
15009 * opts.c (default_options_optimization): Adjust
15010 max-combine-insns to 2 for -Og.
15012 2014-09-03 Martin Jambor <mjambor@suse.cz>
15015 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
15016 pass-trough jump functions correctly.
15018 2014-09-03 Martin Jambor <mjambor@suse.cz>
15021 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
15022 created replacements in ascending order of offsets.
15023 (known_aggs_to_agg_replacement_list): Likewise.
15025 2014-09-03 Martin Liska <mliska@suse.cz>
15027 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
15028 is set to set uninitialized value for vnresult.
15030 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
15032 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
15033 for TARGET_MUST_PASS_IN_STACK.
15035 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
15037 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
15038 for TARGET_ARG_PARTIAL_BYTES.
15040 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
15042 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
15043 instructions for varargs implementation.
15044 (nds32_expand_epilogue): Emit stack adjustment instructions for
15045 varargs implementation.
15047 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
15049 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
15050 optimization detection.
15052 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
15054 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
15056 (nds32_function_arg_advance): Deal with nameless arguments.
15057 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
15058 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
15059 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
15061 2014-09-03 Richard Biener <rguenther@suse.de>
15063 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
15064 (struct bb_bitmap_sets): Remove deferred member.
15065 (BB_DEFERRED): Remove.
15066 (defer_or_phi_translate_block): Remove.
15067 (compute_antic_aux): Remove deferring of blocks, assert
15068 proper iteration order.
15069 (compute_antic): Do not set BB_DEFERRED.
15070 (eliminate): Allocate el_avail of proper size initially.
15072 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
15074 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
15075 according to the value of crtl->args.pretend_args_size.
15077 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
15079 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
15080 varargs information.
15082 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
15084 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
15085 implementation for TARGET_SETUP_INCOMING_VARARGS.
15086 (nds32_strict_argument_naming): Refine comment.
15087 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
15088 Define for future implementation.
15090 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
15092 * config/i386/adxintrin.h (_subborrow_u32): New.
15093 (_addcarry_u32): Ditto.
15094 (_subborrow_u64): Ditto.
15095 (_addcarry_u64): Ditto.
15096 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
15097 IX86_BUILTIN_SBB64.
15098 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
15099 __builtin_ia32_sbb_u64
15101 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
15103 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
15104 GPR-specific stuff.
15105 (nds32_function_arg_advance): Likewise.
15106 (nds32_init_cumulative_args): Likewise.
15107 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
15108 (NDS32_FIRST_GPR_REGNUM): Define.
15109 (NDS32_LAST_GPR_REGNUM): Define.
15110 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
15111 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
15112 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
15113 (machine_function): Use GRP-specific stuff.
15115 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
15117 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
15118 (nds32_expand_epilogue): Likewise.
15119 (nds32_expand_prologue_v3push): Likewise.
15120 (nds32_expand_epilogue_v3pop): Likewise.
15122 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
15124 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
15125 v3push/v3pop for variadic function.
15126 * config/nds32/nds32.md (prologue, epilogue): Likewise.
15128 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
15130 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
15131 Check rtx for varargs implementation.
15132 (nds32_output_stack_pop): Likewise.
15133 * config/nds32/nds32-protos.h: Have a rtx argument for
15134 nds32_output_stack_push and nds32_output_stack_pop.
15135 * config/nds32/nds32.md: Likewise.
15137 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
15139 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
15140 to check if FUNC is an interrupt service routine.
15141 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
15143 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
15145 * config/nds32/nds32.h (machine_function): Add some fields for variadic
15146 arguments implementation.
15148 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
15150 * config/nds32/nds32-predicates.c
15151 (nds32_valid_stack_push_pop): Rename to ...
15152 (nds32_valid_stack_push_pop_p): ... this.
15153 * config/nds32/nds32-protos.h: Likewise.
15154 * config/nds32/predicates.md: Likewise.
15156 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
15158 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
15159 (nds32_emit_stack_v3push): ... this.
15160 (nds32_gen_stack_v3pop): Rename to ...
15161 (nds32_emit_stack_v3pop): ... this and consider CFA restore
15164 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
15166 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
15167 (nds32_emit_stack_push_multiple): ... this.
15168 (nds32_gen_stack_pop_multiple): Rename to ...
15169 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
15172 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15175 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
15176 and add a second splitter to handle the remaining cases.
15178 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
15180 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
15182 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
15184 * cfgexpand.c (label_rtx_for_bb): Change type to
15185 hash_map<basic_block, rtx_code_label *> *.
15186 (expand_gimple_basic_block): Adjust.
15187 (pass_expand::execute): Likewise.
15189 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
15191 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
15192 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
15193 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
15194 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
15195 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
15196 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
15197 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
15200 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
15202 * alloc-pool.c: Include coretypes.h.
15203 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
15204 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
15205 hash_set instead of htab.
15206 * ggc-page.c (in_gc): New variable.
15207 (ggc_free): Do nothing if a collection is taking place.
15208 (ggc_collect): Set in_gc appropriately.
15209 * ggc.h (gt_ggc_mx(const char *)): New function.
15210 (gt_pch_nx(const char *)): Likewise.
15211 (gt_ggc_mx(int)): Likewise.
15212 (gt_pch_nx(int)): Likewise.
15213 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
15214 (hash_map::hash_entry::pch_nx): Likewise.
15215 (hash_map::hash_entry::pch_nx_helper): Likewise.
15216 (hash_map::hash_map): Adjust.
15217 (hash_map::create_ggc): New function.
15218 (gt_ggc_mx): Likewise.
15219 (gt_pch_nx): Likewise.
15220 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
15221 (default_hashset_traits::pch_nx): Likewise.
15222 (hash_set::hash_entry::ggc_mx): Likewise.
15223 (hash_set::hash_entry::pch_nx): Likewise.
15224 (hash_set::hash_entry::pch_nx_helper): Likewise.
15225 (hash_set::hash_set): Adjust.
15226 (hash_set::create_ggc): New function.
15227 (hash_set::elements): Likewise.
15228 (gt_ggc_mx): Likewise.
15229 (gt_pch_nx): Likewise.
15230 * hash-table.h (hash_table::hash_table): Adjust.
15231 (hash_table::m_ggc): New member.
15232 (hash_table::~hash_table): Adjust.
15233 (hash_table::expand): Likewise.
15234 (hash_table::empty): Likewise.
15235 (gt_ggc_mx): New function.
15236 (hashtab_entry_note_pointers): Likewise.
15237 (gt_pch_nx): Likewise.
15239 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15241 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
15242 built-in definition.
15243 (XVCVUXDDP_SCALE): Likewise.
15244 (XVCVDPSXDS_SCALE): Likewise.
15245 (XVCVDPUXDS_SCALE): Likewise.
15246 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15247 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
15248 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
15249 VSX_BUILTIN_XVCVDPUXDS_SCALE.
15250 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
15252 * config/rs6000/rs6000.c (real.h): New include.
15253 (rs6000_scale_v2df): New function.
15254 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
15255 (UNSPEC_VSX_XVCVUXDDP): Likewise.
15256 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
15257 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
15258 (vsx_xvcvsxddp_scale): New define_expand.
15259 (vsx_xvcvsxddp): New define_insn.
15260 (vsx_xvcvuxddp_scale): New define_expand.
15261 (vsx_xvcvuxddp): New define_insn.
15262 (vsx_xvcvdpsxds_scale): New define_expand.
15263 (vsx_xvcvdpsxds): New define_insn.
15264 (vsx_xvcvdpuxds_scale): New define_expand.
15265 (vsx_xvcvdpuxds): New define_insn.
15266 * doc/extend.texi (vec_ctf): Add new prototypes.
15267 (vec_cts): Likewise.
15268 (vec_ctu): Likewise.
15269 (vec_splat): Likewise.
15270 (vec_div): Likewise.
15271 (vec_mul): Likewise.
15273 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15276 * config/arm/neon.md
15277 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
15278 <v_cmp_result>): New pattern.
15279 * config/arm/iterators.md (NEON_VCVT): New int iterator.
15280 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
15281 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
15282 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
15283 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
15284 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
15286 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15289 * config/arm/iterators.md (FIXUORS): New code iterator.
15290 (VCVT): New int iterator.
15291 (su_optab): New code attribute.
15293 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
15295 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15297 * config/aarch64/predicates.md (aarch64_comparison_operation):
15298 New special predicate.
15299 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
15300 aarch64_comparison_operation instead of matching an operator.
15301 Update operand numbers.
15302 (csinc3<mode>_insn): Likewise.
15303 (*csinv3<mode>_insn): Likewise.
15304 (*csneg3<mode>_insn): Likewise.
15305 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
15306 * config/aarch64/aarch64.c (aarch64_get_condition_code):
15307 Return -1 instead of aborting on invalid condition codes.
15308 (aarch64_print_operand): Update aarch64_get_condition_code callsites
15309 to assert that the returned condition code is valid.
15310 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
15312 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
15314 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
15315 tree.def, and gimple.def
15317 2014-09-02 Jakub Jelinek <jakub@redhat.com>
15318 Balaji V. Iyer <balaji.v.iyer@intel.com>
15319 Igor Zamyatin <igor.zamyatin@intel.com>
15321 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
15322 (__cilkrts_cilk_for_64): Likewise.
15323 * cilk-common.c (declare_cilk_for_builtin): New function.
15324 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
15325 __cilkrts_cilk_for_64 bultins.
15326 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
15328 (cilk_for_32_fndecl): New define.
15329 (cilk_for_64_fndecl): Likewise.
15330 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
15331 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
15332 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
15333 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
15334 GF_OMP_FOR_COMBINED_INTO.
15335 * gimplify.c (gimplify_scan_omp_clauses): Added
15336 OMP_CLAUSE__CILK_FOR_COUNT_ case.
15337 (gimplify_adjust_omp_clauses): Ditto.
15338 (gimplify_omp_for): Added CILK_FOR case.
15339 (gimplify_expr): Ditto.
15340 * omp-low.c: Include cilk.h.
15341 (extract_omp_for_data): Set appropriate kind for
15342 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
15343 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
15344 (create_omp_child_function_name): Added second argument to handle
15346 (cilk_for_check_loop_diff_type): New function.
15347 (expand_cilk_for_call): Likewise.
15348 (expand_cilk_for): Likewise.
15349 (create_omp_child_function): Set cilk_for_count; handle the cases when
15350 it is true; call create_omp_child_function_name with second argument.
15351 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
15352 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
15353 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
15354 * tree-nested.c (convert_nonlocal_omp_clauses): Added
15355 OMP_CLAUSE__CILK_FOR_COUNT_ case.
15356 (convert_local_omp_clauses): Ditto.
15357 * tree-pretty-print.c (dump_omp_clause): Added
15358 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
15359 (dump_generic_node): Added CILK_FOR case.
15360 * tree.c (omp_clause_num_ops): New element
15361 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
15362 (omp_clause_code_name): New element _Cilk_for_count_.
15363 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
15364 * tree.def: Add tree code for CILK_FOR.
15366 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
15368 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
15369 (ppc403-compare): Add "exts with dot" case.
15370 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
15371 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
15372 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
15373 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
15374 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
15375 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
15376 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
15377 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
15378 cell-cmp-microcoded): Similarly.
15379 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
15380 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
15381 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
15382 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
15383 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
15384 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
15385 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
15386 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
15387 (power6-compare): Add "exts with dot" case.
15388 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
15389 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
15390 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
15392 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
15393 if avoiding Cell microcode.
15394 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
15395 (is_cracked_insn): Ditto.
15396 (insn_must_be_first_in_group): Ditto.
15397 * config/rs6000/rs6000.md (dot): Adjust comment.
15398 (cell_micro): Handle exts+dot.
15399 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
15400 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
15401 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
15402 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
15403 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
15404 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
15405 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
15407 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
15409 * config/rs6000/rs6000.md (QHSI): Delete.
15410 (EXTQI, EXTHI, EXTSI): New mode iterators.
15411 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
15412 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
15413 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
15414 9 anonymous instructions, and 8 splitters): Delete.
15415 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
15416 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
15417 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
15418 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
15419 *zero_extendsi<mode>2_dot2): New.
15421 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
15423 * config/rs6000/rs6000.md (any_extend): New code iterator.
15424 (u, su): New code attributes.
15425 (dmode, DMODE): New mode attributes.
15426 (<su>mul<mode>3_highpart): New.
15427 (*<su>mul<mode>3_highpart): New.
15428 (<su>mulsi3_highpart_le): New.
15429 (<su>muldi3_highpart_le): New.
15430 (<su>mulsi3_highpart_64): New.
15431 (<u>mul<mode><dmode>3): New.
15432 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
15433 splitters): Delete.
15434 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
15435 splitters): Delete.
15437 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
15439 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
15440 *mulsi3_internal2, and two splitters): Delete.
15441 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
15443 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
15445 2014-09-02 Richard Biener <rguenther@suse.de>
15447 PR tree-optimization/62695
15448 * tree-ssa-structalias.c (find_func_clobbers): Add missing
15451 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
15454 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
15456 2014-09-01 Andi Kleen <ak@linux.intel.com>
15458 * file-find.c (add_prefix_begin): Add.
15459 (do_add_prefix): Rename from add_prefix with first argument.
15460 (add_prefix): Add new wrapper.
15461 * file-find.h (add_prefix_begin): Add.
15462 * gcc-ar.c (main): Support -B option.
15464 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
15466 * genemit.c: Include dumpfile.h.
15467 (gen_split): Print name of splitter function to dump file.
15469 2014-09-01 Richard Biener <rguenther@suse.de>
15471 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
15472 Use stack auto_vecs for constraint expressions.
15473 (find_func_aliases_for_call): Likewise.
15474 (find_func_aliases): Likewise.
15475 (find_func_clobbers): Likewise.
15477 2014-09-01 Richard Biener <rguenther@suse.de>
15479 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
15480 operands vector in most cases. Remove redundant code.
15482 2014-09-01 Olivier Hainque <hainque@adacore.com>
15484 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
15485 $WIND_BASE instead of designating a harcoded arbitrary home dir.
15486 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
15488 2014-09-01 Richard Biener <rguenther@suse.de>
15490 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
15491 copy_reference_ops_from_call, vn_nary_op_compute_hash,
15492 vn_reference_compute_hash, vn_reference_insert): Remove.
15493 (vn_reference_lookup_call): New function.
15494 * tree-ssa-sccvn.c (vn_reference_compute_hash,
15495 copy_reference_ops_from_ref, copy_reference_ops_from_call,
15496 vn_reference_insert, vn_nary_op_compute_hash): Make static.
15497 (create_reference_ops_from_call): Remove.
15498 (vn_reference_lookup_3): Properly update shared_lookup_references.
15499 (vn_reference_lookup_pieces): Assert that we updated
15500 shared_lookup_references properly.
15501 (vn_reference_lookup): Likewise.
15502 (vn_reference_lookup_call): New function.
15503 (visit_reference_op_call): Use it. Avoid re-building the
15505 (visit_reference_op_load): Remove redundant lookup.
15506 (visit_reference_op_store): Perform special tail-merging work
15507 only when possibly doing tail-merging.
15508 (visit_use): Likewise.
15509 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
15511 2014-09-01 Jakub Jelinek <jakub@redhat.com>
15514 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
15515 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
15516 (find_inc): Revert 2014-08-13 change.
15518 2014-09-01 Marek Polacek <polacek@redhat.com>
15520 PR middle-end/61903
15521 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
15522 Change the type of V to unsigned HOST_WIDE_INT.
15524 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
15526 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
15527 the size of byte markers.
15528 (do_shift_rotate): Fix confusion between host, target and marker byte
15530 (verify_symbolic_number_p): Likewise.
15531 (find_bswap_or_nop_1): Likewise.
15532 (find_bswap_or_nop): Likewise.
15534 2014-09-01 Olivier Hainque <hainque@adacore.com>
15536 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
15537 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
15539 2014-09-01 Jakub Jelinek <jakub@redhat.com>
15541 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
15542 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
15543 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
15545 2014-09-01 Yury Gribov <y.gribov@samsung.com>
15549 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
15550 (build_check_stmt): Likewise.
15551 (instrument_strlen_call): Likewise.
15552 (asan_expand_check_ifn): Likewise and fix types.
15553 (maybe_cast_to_ptrmode): New function.
15555 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15557 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
15559 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
15561 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
15563 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
15565 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
15566 prefix to function labels when generating fast indirect calls.
15568 2014-08-30 David Malcolm <dmalcolm@redhat.com>
15572 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
15573 param back from rtx_insn * to rtx. Rename param from "label" to
15574 "label_or_return", reintroducing "label" as an rtx_insn * after
15575 we've ensured it's not a RETURN.
15576 (first_active_target_insn): Likewise for return type and param;
15577 add a checked cast to rtx_insn * once we've ensured "insn" is not
15579 (steal_delay_list_from_target): Convert param "pnew_thread" back
15580 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
15582 (own_thread_p): Convert param "thread" back from an rtx_insn * to
15583 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
15584 cast once we've established we're not dealing with a RETURN,
15585 renaming subsequent uses of "thread" to "thread_insn".
15586 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
15588 (follow_jumps): Convert return type and param "label" from
15589 rtx_insn * back to rtx. Move initialization of "value" to after
15590 the handling for ANY_RETURN_P, adding a checked cast there to
15591 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
15592 rename to "this_label_or_return", reintroducing "this_label" as
15593 an rtx_insn * once we've handled the case where it could be an
15595 (fill_slots_from_thread): Rename param "thread" to
15596 "thread_or_return", converting from an rtx_insn * back to an rtx.
15597 Reintroduce name "thread" as an rtx_insn * local with a checked
15598 cast once we've handled the case of it being an ANY_RETURN_P.
15599 Convert local "new_thread" from an rtx_insn * back to an rtx.
15600 Add a checked cast when assigning to "trial" from "new_thread".
15601 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
15602 checked cast to rtx_insn * from "new_thread" when invoking
15604 (fill_eager_delay_slots): Convert locals "target_label",
15605 "insn_at_target" from rtx_insn * back to rtx.
15606 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
15607 (relax_delay_slots): Convert locals "trial", "target_label" from
15608 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
15609 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
15610 invoking update_block.
15611 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
15612 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
15614 * resource.h (mark_target_live_regs): Undo erroneous conversion
15615 of second param of r214693, converting it back from rtx_insn * to
15616 rtx, since it could be a RETURN.
15618 * resource.c (find_dead_or_set_registers): Similarly, convert
15619 param "jump_target" back from an rtx_insn ** to an rtx *, as we
15620 could be writing back a RETURN. Rename local rtx_insn * "next" to
15621 "next_insn", and introduce "lab_or_return" as a local rtx,
15622 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
15623 (mark_target_live_regs): Undo erroneous conversion
15624 of second param of r214693, converting it back from rtx_insn * to
15625 rtx, since it could be a RETURN. Rename it from "target" to
15626 "target_maybe_return", reintroducing the name "target" as a local
15627 rtx_insn * with a checked cast, after we've handled the case of
15630 2014-08-29 DJ Delorie <dj@redhat.com>
15632 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
15633 pointer size up to a power of two.
15634 * defaults.h (DWARF2_ADDR_SIZE): Round up.
15635 (POINTER_SIZE_UNITS): New, rounded up value.
15636 * dwarf2asm.c (size_of_encoded_value): Use it.
15637 (dw2_output_indirect_constant_1): Likewise.
15638 * expmed.c (init_expmed_one_conv): We now know the sizes of
15640 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
15641 * optabs.c (expand_float): Use precision, not size.
15642 (expand_fix): Likewise.
15643 * simplify-rtx (simplify_unary_operation_1): Likewise.
15644 * tree-dfa.c (get_ref_base_and_extent): Likewise.
15645 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
15646 (default_assemble_integer) Likewise.
15647 (dump_tm_clone_pairs): Likewise.
15648 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
15649 * var-tracking.c (adjust_mems): Allow partial-int modes also.
15650 (prepare_call_arguments): Likewise.
15651 * stor-layout.c (finalize_type_size): Preserve precision.
15652 (layout_type): Use precision, not size.
15654 * expr.c (convert_move): If the target has an explicit converter,
15657 2014-08-29 David Malcolm <dmalcolm@redhat.com>
15659 * gdbinit.in: Skip various inline functions in rtl.h when
15662 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
15665 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
15667 2014-08-29 Richard Biener <rguenther@suse.de>
15669 PR tree-optimization/62291
15670 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
15671 exactly the vector size needed and use quick_push.
15672 (phi_translate_1): Adjust comment.
15673 (valid_in_sets): Remove block argument and remove pointless
15675 (dependent_clean): Adjust for removal of block argument.
15677 (compute_antic_aux): Likewise.
15678 (compute_partial_antic_aux): Likewise.
15680 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
15681 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15682 Anna Tikhonova <anna.tikhonova@intel.com>
15683 Ilya Tocar <ilya.tocar@intel.com>
15684 Andrey Turetskiy <andrey.turetskiy@intel.com>
15685 Ilya Verbin <ilya.verbin@intel.com>
15686 Kirill Yukhin <kirill.yukhin@intel.com>
15687 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15689 * config/i386/sse.md
15690 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
15691 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
15692 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
15693 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
15695 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
15696 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15697 Anna Tikhonova <anna.tikhonova@intel.com>
15698 Ilya Tocar <ilya.tocar@intel.com>
15699 Andrey Turetskiy <andrey.turetskiy@intel.com>
15700 Ilya Verbin <ilya.verbin@intel.com>
15701 Kirill Yukhin <kirill.yukhin@intel.com>
15702 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15704 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
15705 * config/i386/sse.md
15706 (define_mode_iterator VI4_128_8_256): New.
15707 (define_mode_iterator VI2_128_4_256): Ditto.
15708 (define_mode_iterator PMOV_DST_MODE): Rename into
15709 (define_mode_iterator PMOV_DST_MODE_1): this.
15710 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
15711 Use PMOV_DST_MODE_1 mode iterator.
15712 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
15714 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
15716 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
15717 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
15718 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
15719 (define_mode_iterator PMOV_DST_MODE_2): New.
15720 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
15721 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
15722 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
15724 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
15725 (define_mode_attr pmov_dst_3): Ditto.
15726 (define_mode_attr pmov_dst_zeroed_3): Ditto.
15727 (define_mode_attr pmov_suff_3): Ditto.
15728 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
15729 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
15730 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
15731 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
15732 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
15733 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
15734 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
15735 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
15736 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
15737 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
15738 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
15739 (define_mode_attr pmov_dst_4): Ditto.
15740 (define_mode_attr pmov_dst_zeroed_4): Ditto.
15741 (define_mode_attr pmov_suff_4): Ditto.
15742 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
15743 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
15744 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
15745 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
15746 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
15747 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
15748 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
15749 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
15750 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
15751 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
15752 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
15754 2014-08-29 Richard Biener <rguenther@suse.de>
15756 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
15757 NON_LVALUE_EXPR in gimple.
15759 2014-08-29 Richard Biener <rguenther@suse.de>
15761 PR middle-end/62292
15762 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
15763 from previous refactoring.
15764 (gimple_fold_builtin_strncpy): Likewise.
15766 2014-08-29 David Malcolm <dmalcolm@redhat.com>
15769 * function.c (assign_parm_setup_reg): Remove erroneous checked
15770 cast to rtx_insn * on result of gen_extend_insn in favor of
15771 introducing a new local rtx "pat".
15773 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15775 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
15776 to silence warning.
15777 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
15779 2014-08-28 David Malcolm <dmalcolm@redhat.com>
15781 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
15782 (next_insn): Likewise.
15783 * emit-rtl.c (next_insn): Likewise.
15784 (previous_insn): Likewise.
15785 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
15786 "insn" and "next" from rtx to rtx_insn *.
15787 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
15788 "insn", "insn1", "vliw_start", "prologue_end_note",
15789 "last_insn_in_packet".
15791 2014-08-28 David Malcolm <dmalcolm@redhat.com>
15793 * shrink-wrap.h (active_insn_between): Strengthen both params from
15795 * function.c (active_insn_between): Likewise.
15797 2014-08-28 David Malcolm <dmalcolm@redhat.com>
15799 * genattr.c (main): When writing out insn-attr.h, strengthen param
15800 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
15801 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
15802 writing out the definition of dfa_clear_single_insn_cache to the
15803 generated insn-automata.c
15805 2014-08-28 David Malcolm <dmalcolm@redhat.com>
15807 * resource.h (clear_hashed_info_for_insn): Strengthen param from
15809 (incr_ticks_for_insn): Likewise.
15810 (init_resource_info): Likewise.
15812 * resource.c (init_resource_info): Likewise.
15813 (clear_hashed_info_for_insn): Likewise.
15814 (incr_ticks_for_insn): Likewise.
15816 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
15818 (steal_delay_list_from_target): Use methods of "seq".
15819 (try_merge_delay_insns): Use methods of "merged_insns".
15820 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
15821 (reorg_redirect_jump): Likewise for param "jump".
15823 2014-08-28 David Malcolm <dmalcolm@redhat.com>
15825 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
15827 * config/s390/s390.c (s390_split_branches): Eliminate top-level
15828 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
15830 (s390_mainpool_finish): In three places, split out a local rtx
15831 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
15832 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
15833 and split another local rtx "insn" out into rtx "pat" and
15835 * config/sh/sh.c (output_branchy_insn): Rather than working
15836 directly on operands[9], introduce local rtx_code_label *
15837 variables named "lab" in two places, working on them, and then
15838 assigning them to operands[9], so that the intervening operations
15839 are known by the type system to be on insns.
15841 2014-08-28 David Malcolm <dmalcolm@redhat.com>
15843 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
15846 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
15847 in invocation of INSN_HAS_LOCATION.
15849 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15851 * config/rs6000/altivec.h (vec_xl): New #define.
15852 (vec_xst): Likewise.
15853 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
15854 (XXSPLTD_V2DI): Likewise.
15855 (DIV_V2DI): Likewise.
15856 (UDIV_V2DI): Likewise.
15857 (MUL_V2DI): Likewise.
15858 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15859 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
15860 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
15861 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
15862 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
15863 (UNSPEC_VSX_DIVSD): Likewise.
15864 (UNSPEC_VSX_DIVUD): Likewise.
15865 (UNSPEC_VSX_MULSD): Likewise.
15866 (vsx_mul_v2di): New insn-and-split.
15867 (vsx_div_v2di): Likewise.
15868 (vsx_udiv_v2di): Likewise.
15869 (vsx_xxspltd_<mode>): New insn.
15871 2014-08-28 David Malcolm <dmalcolm@redhat.com>
15873 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
15875 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
15876 (NEXT_INSN): Likewise.
15877 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
15878 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
15880 (no_labels_between_p): Likewise for both params.
15882 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
15883 cast when using NEXT_INSN on operands[2].
15884 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
15885 "insn" from rtx to rtx_insn *, adding a checked cast.
15886 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
15888 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
15890 (arc_text_label): Likewise for param "insn".
15891 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
15893 (arc_ccfsm_record_condition): Likewise for param "jump".
15894 (arc_text_label): Likewise for local "label".
15895 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
15896 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
15897 a method for typesafety. Add a checked cast.
15898 * config/arc/constraints.md (Clb): Add a checked cast when getting
15899 the CODE_LABEL from a LABEL_REF.
15900 * config/arm/arm.c (require_pic_register): Strengthen locals
15901 "seq", "insn" from rtx to rtx_insn *.
15902 (create_fix_barrier): Likewise for locals "selected", "next".
15903 (thumb1_reorg): Likewise for locals "prev", "insn".
15904 (arm_expand_prologue): Likewise for local "last".
15905 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
15907 (thumb2_output_casesi): Likewise for operands[2].
15908 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
15909 strengthen local "insn" from rtx to rtx_insn *.
15910 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
15911 type and param "insn".
15912 (find_prev_insn_start): Likewise.
15913 (hwloop_optimize): Likewise for locals "insn", "last_insn",
15915 (gen_one_bundle): Likewise for loal "t".
15916 (find_load): Likewise for param "insn".
15917 (workaround_speculation): Likewise for locals "insn", "next",
15918 "target", "next_tgt".
15919 * config/c6x/c6x.c (assign_reservations): Likewise for both params
15920 and for locals "insn", "within", "last".
15921 (count_unit_reqs): Likewise for params "head", "tail" and local
15923 (try_rename_operands): Likewise for params "head", "tail".
15924 (reshuffle_units): Likewise for locals "head", "tail", "insn".
15925 (struct c6x_sched_context): Likewise for fields
15926 "last_scheduled_insn", "last_scheduled_iter0".
15927 (init_sched_state): Replace NULL_RTX with NULL.
15928 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
15930 (undo_split_delayed_nonbranch): Likewise for param and for local
15932 (conditionalize_after_sched): Likewise for local "insn".
15933 (bb_earliest_end_cycle): Likewise.
15934 (filter_insns_above): Likewise for locals "insn", "next".
15935 (hwloop_optimize): Remove redundant checked cast.
15936 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
15937 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
15938 NULL_RTX with NULL.
15939 (cris_simple_epilogue): Likewise.
15940 (cris_expand_prologue): Likewise.
15941 (cris_expand_epilogue): Likewise.
15942 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
15943 local "insn" from rtx to rtx_insn *.
15944 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
15945 (struct frv_packet_group): Likewise for the elements within array
15946 fields "insns", "sorted", and for field "nop".
15947 (frv_packet): Likewise for the elements within array field
15949 (frv_add_insn_to_packet): Likewise for param "insn".
15950 (frv_insert_nop_in_packet): Likewise for param "insn" and local
15952 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
15953 (frv_sort_insn_group_1): Likewise for local "insn".
15954 (frv_optimize_membar_local): Likewise.
15955 (frv_align_label): Likewise for locals "x", "last", "barrier",
15957 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
15959 (ia64_sched_init): Likewise for local "insn".
15960 (scheduled_good_insn): Likewise for param "last".
15961 (struct _ia64_sched_context): Likewise for field
15962 "last_scheduled_insn".
15963 (ia64_init_sched_context): Replace NULL_RTX with NULL.
15964 (struct bundle_state): Likewise for field "insn".
15965 (issue_nops_and_insn): Likewise for param "insn".
15966 (get_next_important_insn): Likewise for return type and both
15968 (ia64_add_bundle_selector_before): Likewise for param "insn".
15969 (bundling): Likewise for params "prev_head_insn", "tail" and
15970 locals "insn", "next_insn", "b". Eliminate top-level local rtx
15971 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
15972 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
15973 Strengthen final param from rtx to rtx_insn *.
15974 (iq2000_move_1word): Likewise for second param.
15975 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
15976 param "cur_insn" and local "next_insn".
15977 (iq2000_move_1word): Likewise for param "insn".
15978 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
15979 casts when using NEXT_INSN on operands[1].
15980 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
15981 "insn" from rtx to rtx_insn *.
15982 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
15983 "x", introducing local rtx_insn * "insn" for when working with the
15984 CODE_LABEL of the LABEL_REF.
15985 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
15987 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
15989 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
15991 (conditionalize_block): Likewise for return type and param.
15992 (mcore_is_dead): Likewise for param "first" and local "insn".
15993 (emit_new_cond_insn): Likewise for return type.
15994 (conditionalize_block): Likewise for return type, param, and
15995 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
15997 (conditionalize_optimization): Likewise for local "insn".
15998 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
16000 * config/microblaze/microblaze.md: Add checked casts when using
16002 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
16003 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
16004 and rtx_insn * "insn".
16005 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
16006 checked cast when using NEXT_INSN on operands[2].
16007 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
16008 local "insn" from rtx to rtx_insn *.
16009 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
16011 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
16012 Add a checked cast when using NEXT_INSN on operands[1].
16013 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
16015 (pa_output_cbranch): Likewise for final param.
16016 (pa_output_lbranch): Likewise for second param.
16017 (pa_output_bb): Likewise for third param.
16018 (pa_output_bvb): Likewise.
16019 (pa_output_dbra): Likewise for second param.
16020 (pa_output_movb): Likewise.
16021 (pa_output_parallel_movb): Likewise.
16022 (pa_output_parallel_addb): Likewise.
16023 (pa_output_millicode_call): Likewise for first param.
16024 (pa_output_mul_insn): Likewise for second param.
16025 (pa_output_div_insn): Likewise for third param.
16026 (pa_output_mod_insn): Likewise for second param.
16027 (pa_jump_in_call_delay): Likewise for param.
16028 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
16029 (pa_output_div_insn): Likewise.
16030 (pa_output_mod_insn): Likewise.
16031 (pa_output_cbranch): Likewise.
16032 (pa_output_lbranch): Likewise.
16033 (pa_output_bb): Likewise.
16034 (pa_output_bvb): Likewise.
16035 (pa_output_dbra): Likewise.
16036 (pa_output_movb): Likewise.
16037 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
16038 to simplify and for typesafety.
16039 (pa_output_call): Use method of rtx_sequence *.
16040 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
16041 (pa_jump_in_call_delay): Likewise.
16042 (pa_output_parallel_movb): Likewise.
16043 (pa_output_parallel_addb): Likewise.
16044 (pa_following_call): Likewise.
16045 (pa_combine_instructions): Likewise for locals "anchor",
16047 (pa_can_combine_p): Likewise for params "anchor", "floater" and
16048 locals "start", "end".
16049 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
16050 param "insn" and local "local_insn".
16051 (picochip_final_prescan_insn): Likewise for local "local_insn".
16052 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
16054 (uses_TOC): Likewise.
16055 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
16056 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
16057 splitting out to more tightly-scoped locals, 3 as rtx and one as
16059 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
16061 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
16063 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
16065 (fixup_addr_diff_vecs): Likewise.
16066 (reg_unused_after): Likewise for param 2.
16067 (sh_can_redirect_branch): Likewise for both params.
16068 (check_use_sfunc_addr): Likewise for param 1.
16069 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
16070 (find_barrier): Likewise for local "last_got".
16071 (gen_block_redirect): Likewise for return type, param "jump" and
16072 locals "prev", "scan", "next", "insn".
16073 (struct far_branch): Likewise for fields "near_label",
16074 "insert_place", "far_label".
16075 (gen_far_branch): Likewise for local "jump".
16076 (fixup_addr_diff_vecs): Likewise for param "first" and locals
16078 (barrier_align): Likewise for param and for locals "prev", "x".
16079 Introduce local rtx_sequence * "prev_seq" and use insn method for
16080 typesafety and clarity.
16081 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
16082 (get_dest_uid): Likewise for local "dest".
16083 (split_branches): Likewise for locals "next", "beyond", "label",
16084 "block", "far_label". Add checked casts when assigning to
16085 bp->far_label and "far_label".
16086 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
16087 (sequence_insn_p): Likewise.
16088 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
16089 more loop-scoped rtx "insn" when walking LABEL_REFS.
16090 (sh_can_redirect_branch): Strengthen both params from rtx to
16092 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
16093 new local rtx_sequence * "seq" via a dyn_cast, and use a method
16094 for clarity and typesafety.
16095 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
16096 "insn" from rtx to rtx_insn *.
16097 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
16098 when using NEXT_INSN on the CODE_LABEL in operands[2].
16099 (define_insn "casesi_worker_2"): Likewise.
16100 (define_insn "casesi_shift_media"): Likewise.
16101 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
16103 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
16104 Strengthen field "insn" from rtx to rtx_insn *.
16105 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
16106 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
16107 param "start_insn" and local "start_insn".
16108 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
16110 (find_set_of_reg_bb): Likewise for param "insn".
16111 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
16112 (trace_reg_uses): Likewise for param "start_insn".
16113 (sh_treg_combine::cbranch_trace): Likewise for field
16115 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
16117 (sh_treg_combine::record_set_of_reg): Likewise for param
16118 "start_insn" and local "i".
16119 (sh_treg_combine::can_remove_cstore): Likewise for local
16121 (sh_treg_combine::try_optimize_cbranch): Likewise for param
16123 (sh_treg_combine::execute): Likewise for local "i".
16124 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
16126 (sparc_check_64): Likewise for second param.
16127 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
16128 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
16129 dyn_cast, using its insn method for typesafety and clarity.
16130 (empty_delay_slot): Strengthen param "insn" from rtx to
16132 (set_extends): Likewise.
16133 (sparc_check_64): Likewise.
16134 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
16135 for locals "seq", "last_insn".
16136 (combine_bnp): Likewise for param "insn".
16137 (xstormy16_reorg): Likewise for local "insn".
16138 * config/v850/v850.c (substitute_ep_register): Likewise for params
16139 "first_insn", "last_insn" and local "insn".
16140 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
16141 elements of "regs" array, and local "insn".
16142 * except.c (emit_note_eh_region_end): Likewise for param "insn".
16143 * final.c (final_sequence): Strengthen this global from rtx to
16145 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
16147 (final_scan_insn): Update assignment to "final_sequence" to be
16148 from "seq", the cast version of "body", for type-safety.
16149 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
16150 "insns" from rtx to rtx_insn *.
16151 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
16152 * genattr.c (main): When writing out generated insn-attr.h,
16153 strengthen params 1 and 3 of eligible_for_delay,
16154 eligible_for_annul_true, eligible_for_annul_false from rtx to
16156 * genattrtab.c (write_eligible_delay): Likewise when writing out
16157 generated insn-attrtab.c; also local "insn" the generated
16159 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
16161 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
16162 "start_label" from rtx to rtx_insn *.
16163 * ira.c (decrease_live_ranges_number): Likewise for local "p".
16164 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
16165 "insns" and local "insn".
16166 (validate_equiv_mem): Likewise for param "start" and local "insn".
16167 (memref_used_between_p): Likewise for params "start", "end" and
16169 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
16171 * loop-doloop.c (doloop_optimize): Within region guarded by
16172 INSN_P (doloop_pat), introduce a new local rtx_insn *
16173 "doloop_insn" via a checked cast, and use it for typesafety,
16174 eventually writing the value back into doloop_pat.
16175 * output.h (final_sequence): Strengthen this global from rtx to
16177 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
16178 reintroducing "insn" as an rtx_insn * via a checked cast.
16179 Strengthen param "attempt" and local "new_insn"from rtx to
16181 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
16183 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
16184 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
16185 "p" in favor of more tightly-scoped replacements, sometimes rtx
16186 and sometimes rtx_insn *, as appropriate.
16187 (delete_output_reload): Eliminate top-level rtx "i1", splitting
16188 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
16189 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
16190 local "trial" from rtx to rtx_insn *.
16191 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
16192 rtx to rtx_insn *. Strenghten local "pat" from rtx to
16193 rtx_sequence * and use methods for clarity and typesafety.
16194 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
16195 rtx to rtx_insn *. Strenghten local "li" from rtx to
16196 rtx_insn_list * and use its methods for clarity and typesafety.
16197 (steal_delay_list_from_target): Strengthen param "insn" from rtx
16199 (steal_delay_list_from_fallthrough): Likewise.
16200 (try_merge_delay_insns): Likewise for param "thread" and locals
16201 "trial", "next_trial", "delay_insn".
16202 (redundant_insn): Likewise for param "target" and local "trial".
16203 (own_thread_p): Likewise for param "thread" and locals
16204 "active_insn", "insn".
16205 (get_label_before): Likewise for param "insn".
16206 (fill_simple_delay_slots): Likewise for local "new_label"; use
16207 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
16208 (label_before_next_insn): Strengthen return type and local "insn"
16209 from rtx to rtx_insn *.
16210 (relax_delay_slots): Likewise for locals "other", "tmp".
16211 (make_return_insns): Likewise for param "first" and locals "insn",
16212 "jump_insn", "prev". Move declaration of "pat" to its assignment
16213 and strengthen from rtx to rtx_sequence *. Use its methods for
16214 clarity and typesafety.
16215 * rtlanal.c (no_labels_between_p): Strengthen params from
16216 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
16218 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
16219 from const_rtx to const rtx_insn *.
16220 (reg_set_between_p): Rename param "from_insn" to
16221 "uncast_from_insn", and reintroduce "from_insn" as a
16222 const rtx_insn * via a checked cast.
16223 (modified_between_p): Likewise for param "start" as "uncast_start".
16224 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
16225 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
16226 "tmp", head" from rtx to rtx_insn *.
16227 (recompute_rev_top_order): Likewise for local "insn".
16228 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
16229 * store-motion.c (build_store_vectors): Likewise for local "insn".
16230 Strengthen local "st" from rtx to rtx_insn_list * and use methods
16231 for clarity and typesafety.
16232 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
16234 (computation_cost): Likewise for local "seq".
16235 (get_address_cost): Likewise.
16237 2014-08-28 David Malcolm <dmalcolm@redhat.com>
16239 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
16241 (label_is_jump_target_p): Likewise for second param.
16243 * rtlanal.c (tablejump_p): Likewise for param "insn".
16244 (label_is_jump_target_p): Likewise for param "jump_insn".
16246 2014-08-28 David Malcolm <dmalcolm@redhat.com>
16248 * rtl.h (find_first_parameter_load): Strengthen return type and
16249 both params from rtx to rtx_insn *.
16250 * rtlanal.c (find_first_parameter_load): Strengthen return type,
16251 both params and locals "before", "first_set" from rtx to
16252 rtx_insn *. Remove now-redundant cast.
16253 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
16255 2014-08-28 David Malcolm <dmalcolm@redhat.com>
16257 * rtl.h (find_last_value): Delete.
16258 * rtlanal.c (find_last_value): Delete.
16260 2014-08-28 David Malcolm <dmalcolm@redhat.com>
16262 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
16263 from rtx to rtx_insn *.
16264 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
16265 rtx "note" with new local rtx_insn * "new_head" when calculating
16266 head insn of new basic block.
16267 * combine.c (combine_split_insns): Strengthen return type and local
16268 "ret" from rtx to rtx_insn *.
16269 (likely_spilled_retval_p): Likewise for locals "use" and "p".
16270 (try_combine): Eliminate local "m_split", splitting into new
16271 locals "m_split_insn" and "m_split_pat".
16272 (find_split_point): Strengthen local "seq" from rtx into
16274 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
16275 locals "label", "branch".
16276 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
16278 (define_expand "umulsi3_highpart"): Likewise for local "insn".
16279 * dse.c (note_add_store_info): Likewise for fields "first",
16281 (note_add_store): Likewise for local "insn".
16282 (emit_inc_dec_insn_before): Likewise for locals "insn",
16284 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
16285 (replace_read): Likewise for locals "insns", "this_insn".
16286 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
16287 (notice_eh_throw): Likewise for param "insn".
16288 (before_next_cfi_note): Likewise for return type, param, and local
16290 (connect_traces): Likewise for local "note".
16291 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
16292 (verify_rtl_sharing): Likewise.
16293 (unshare_all_rtl_in_chain): Likewise for param "insn".
16294 (get_first_nonnote_insn): Likewise for local "insn".
16295 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
16296 "seq" and use its methods to clarify things.
16297 (next_insn): Strengthen return type from rtx to rtx_insn *.
16298 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
16299 local rtx_insn * using a checked cast, dropping a checked cast
16300 made redundant by this change. Use a cast to and method of
16301 rtx_sequence to clarify the code.
16302 (previous_insn): Rename param "insn" to "uncast_insn" and
16303 reintroduce "insn" as a local rtx_insn * using a checked cast,
16304 dropping a checked cast made redundant by this change. Use a cast
16305 to and method of rtx_sequence to clarify the code.
16306 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
16307 reintroduce "insn" as a local rtx_insn * using a checked cast,
16308 dropping a checked cast made redundant by this change.
16309 (next_nonnote_insn_bb): Likewise.
16310 (prev_nonnote_insn): Likewise.
16311 (prev_nonnote_insn_bb): Likewise.
16312 (next_nondebug_insn): Likewise.
16313 (prev_nondebug_insn): Likewise.
16314 (next_nonnote_nondebug_insn): Likewise.
16315 (prev_nonnote_nondebug_insn): Likewise.
16316 (next_real_insn): Likewise.
16317 (prev_real_insn): Likewise.
16318 (next_active_insn): Likewise.
16319 (prev_active_insn): Likewise.
16320 (next_cc0_user): Likewise. Use rtx_sequence and a method for
16322 (prev_cc0_setter): Likewise.
16323 (try_split): Rename param "trial" to "uncast_trial" and
16324 reintroduce "insn" as a local rtx_insn * using a checked cast,
16325 dropping checked casts made redundant by this change.
16326 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
16328 (remove_insn): Rename param "insn" to "uncast_insn" and
16329 reintroduce "insn" as a local rtx_insn * using a checked cast.
16330 (emit_pattern_after_setloc): Likewise for param "after", as
16332 (emit_pattern_after): Likewise. Strengthen local "prev" from
16334 (emit_pattern_before_setloc): Rename param "before" to
16335 "uncast_before" and reintroduce "before" as a local rtx_insn *
16336 using a checked cast. Strengthen locals "first", "last" from
16338 (emit_pattern_before): Likewise rename/cast param "before" to
16339 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
16340 * except.c (copy_reg_eh_region_note_forward): Strengthen param
16341 "first" and local "insn" from rtx to rtx_insn *.
16342 (copy_reg_eh_region_note_backward): Likewise for param "last"
16344 * expr.c (fixup_args_size_notes): Rename param "last" to
16345 "uncast_last" and reintroduce "last" as a local rtx_insn *
16346 using a checked cast. Strengthen local "insn" from rtx to
16348 * function.c (set_insn_locations): Strengthen param "insn" from
16350 (record_insns): Likewise for param "insns" and local "tmp".
16351 (active_insn_between): Rename param "tail" to
16352 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
16353 using a checked cast.
16354 (thread_prologue_and_epilogue_insns): Split out top-level local
16355 rtx "seq" into three different rtx_insn * locals. Strengthen
16356 local "prologue_seq" from rtx to rtx_insn *.
16357 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
16358 from rtx to rtx_insn *.
16359 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
16360 (priority): Likewise for locals "prev_first", "twin".
16361 (setup_insn_max_reg_pressure): Likewise for param "after".
16362 (sched_setup_bb_reg_pressure_info): Likewise.
16363 (no_real_insns_p): Strengthen params from const_rtx to
16365 (schedule_block): Strengthen local "next_tail" from rtx to
16367 * ifcvt.c (find_active_insn_before): Strengthen return type and
16368 param "insn" from rtx to rtx_insn *.
16369 (find_active_insn_after): Likewise.
16370 (cond_exec_process_insns): Likewise for param "start" and local "insn".
16371 (cond_exec_process_if_block): Likewise for locals "then_start",
16372 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
16373 (noce_process_if_block): Likewise for local "jump".
16374 (merge_if_block): Likewise for two locals named "end".
16375 (cond_exec_find_if_block): Likewise for local "last_insn".
16376 * jump.c (delete_related_insns): Rename param "insn" to
16377 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
16378 checked cast. Strengthen local "p" from rtx to rtx_insn *.
16379 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
16381 (split_reg): Likewise.
16382 * lra.c (lra_process_new_insns): Likewise.
16383 * modulo-sched.c (permute_partial_schedule): Strengthen param
16384 "last" from rtx to rtx_insn *.
16385 * optabs.c (add_equal_note): Likewise for param "insns" and local
16387 (expand_binop_directly): Add checked casts to rtx_insn * within
16388 NEXT_INSN (pat) uses.
16389 (expand_unop_direct): Likewise.
16390 (maybe_emit_unop_insn): Likewise.
16391 * recog.c (peep2_attempt): Strengthen locals "last",
16392 "before_try", "x" from rtx to rtx_insn *.
16393 * reorg.c (optimize_skip): Strengthen return type and local
16394 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
16395 and locals "trial", "next_trial" from rtx to rtx_insn *.
16396 * resource.c (next_insn_no_annul): Strengthen return type and
16397 param "insn" from rtx to rtx_insn *. Use a cast to and method of
16398 rtx_sequence to clarify the code.
16399 (mark_referenced_resources): Add a checked cast to rtx_insn *
16400 within PREV_INSN (x).
16401 (find_dead_or_set_registers): Strengthen return type, param
16402 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
16403 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
16405 (mark_target_live_regs): Strengthen params "insns" and "target",
16406 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
16407 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
16409 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
16410 from rtx to rtx_insn *.
16411 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
16412 from rtx to rtx_insn *.
16413 (copy_reg_eh_region_note_backward): Likewise.
16414 (unshare_all_rtl_in_chain): Likewise for sole param.
16415 (dump_rtl_slim): Strengthen second and third params from const_rtx
16416 to const rtx_insn *.
16417 * sched-deps.c (sched_free_deps): Strengthen params "head" and
16418 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
16419 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
16420 "next_tail" from rtx to rtx_insn *.
16421 (begin_move_insn): Likewise for local "next".
16422 * sched-int.h (sched_free_deps): Likewise for first and second
16424 (no_real_insns_p): Strengthen both params from const_rtx to
16426 (sched_setup_bb_reg_pressure_info): Strengthen second params from
16428 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
16430 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
16431 and locals "insn", "tail" from const_rtx to const rtx_insn *.
16432 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
16434 (debug_rtl_slim): Strengthen params "first" and "last" from
16435 const_rtx to const rtx_insn *.
16436 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
16437 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
16438 (convert_to_simple_return): Likewise for param "returnjump".
16439 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
16441 (convert_to_simple_return): Likewise for param "returnjump".
16442 * valtrack.c (propagate_for_debug): Likewise for params
16444 * valtrack.h (propagate_for_debug): Likewise for second param.
16446 2014-08-28 David Malcolm <dmalcolm@redhat.com>
16448 * output.h (insn_current_reference_address): Strengthen param
16449 from rtx to rtx_insn *.
16450 * final.c (insn_current_reference_address): Likewise.
16452 2014-08-28 David Malcolm <dmalcolm@redhat.com>
16454 * basic-block.h (inside_basic_block_p): Strengthen param from
16455 const_rtx to const rtx_insn *.
16456 * cfgbuild.c (inside_basic_block_p): Likewise.
16458 2014-08-28 David Malcolm <dmalcolm@redhat.com>
16460 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
16462 (get_trace_info): Likewise for param "insn".
16463 (save_point_p): Likewise.
16464 (maybe_record_trace_start): Likewise for both params.
16465 (maybe_record_trace_start_abnormal): Likewise.
16466 (create_trace_edges): Likewise for sole param and for three of the
16467 locals named "lab".
16468 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
16469 to rtx_insn *, and update a call to pat->element to pat->insn.
16471 2014-08-28 David Malcolm <dmalcolm@redhat.com>
16473 * function.h (struct expr_status): Convert field "x_forced_labels"
16474 from rtx_expr_list * to rtx_insn_list *.
16476 * cfgbuild.c (make_edges): Convert local "x" from an
16477 rtx_expr_list * to an rtx_insn_list *, replacing use of
16478 "element" method with "insn" method.
16479 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
16480 * except.c (sjlj_emit_dispatch_table): Replace use of
16481 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
16483 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
16484 rtx_expr_list * to an rtx_insn_list *, replacing use of
16485 "element" method with "insn" method.
16486 * reload1.c (set_initial_label_offsets): Likewise for local "x".
16487 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
16488 rtx_insn *, adding a checked cast. Replace use of
16489 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
16491 (expand_label): Likewise for local "label_r".
16493 2014-08-28 David Malcolm <dmalcolm@redhat.com>
16495 * function.h (struct rtl_data): Convert field
16496 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
16498 * rtl.h (remove_node_from_insn_list): New prototype.
16500 * builtins.c (expand_builtin): When prepending to
16501 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
16503 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
16504 to rtx_insn_list *, and use its "insn" method rather than
16506 * cfgrtl.c (delete_insn): Use new function
16507 remove_node_from_insn_list rather than
16508 remove_node_from_expr_list.
16509 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
16510 to rtx_insn_list *, and use its "insn" method rather than
16512 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
16513 * reload1.c (set_initial_label_offsets): Likewise for local "x".
16514 * rtlanal.c (remove_node_from_insn_list): New function, adapted
16515 from remove_node_from_expr_list.
16516 * stmt.c (expand_label): When prepending to
16517 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
16520 2014-08-28 David Malcolm <dmalcolm@redhat.com>
16522 * function.h (struct rtl_data): Strengthen fields "x_return_label"
16523 and "x_naked_return_label" from rtx to rtx_code_label *.
16525 2014-08-28 David Malcolm <dmalcolm@redhat.com>
16527 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
16528 (SET_NEXT_INSN): Likewise.
16529 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
16531 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
16532 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
16533 to split out the SEQUENCE from local "bundle", strengthening the
16534 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
16535 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
16536 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
16537 and the type of the elements of the "slot" array from rtx to
16539 (reorg_split_calls): Likewise for locals "insn" and "next", and
16540 the type of the elements of the "slot" array.
16542 * config/frv/frv.c (frv_nops): Likewise for the elements of this
16544 (frv_function_prologue): Likewise for locals "insn", "next",
16546 (frv_register_nop): Introduce a local "nop_insn" to be the
16547 rtx_insn * containing rtx "nop".
16549 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
16550 used as an insn and sometimes as a pattern, so rename it to
16551 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
16552 using it where dealing with the core insn.
16554 * config/picochip/picochip.c (reorder_var_tracking_notes):
16555 Strengthen locals "insn", "next", "last_insn", "queue",
16556 "next_queue", "prev" from rtx to rtx_insn *.
16558 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
16559 the second param is an rtx_insn ** rather than an rtx **.
16560 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
16561 from rtx to rtx_sequence *, and introduce local named "sequence",
16562 using methods of rtx_sequence to clarify the code.
16563 (remove_insn): Introduce local rtx_sequence * named "sequence" and
16565 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
16566 Rename param "after" to "uncast_after", reintroducing "after" as a
16567 local rtx_insn * with a checked cast.
16568 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
16569 reintroducing "after" as a local rtx_insn * with a checked cast.
16570 Strengthen local "last" from rtx to rtx_insn * and remove the
16571 now-redundant checked casts.
16572 (copy_delay_slot_insn): Strengthen return type and param from rtx
16575 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
16576 "last" from rtx to rtx_insn *.
16578 2014-08-28 David Malcolm <dmalcolm@redhat.com>
16580 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
16581 param from rtx to rtx_insn *.
16583 * emit-rtl.c (copy_delay_slot_insn): Likewise.
16585 * reorg.c (skip_consecutive_labels): Strengthen return type, param
16586 and local "insn" from rtx to rtx_insn *.
16587 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
16588 (unfilled_slots_next): Likewise.
16589 (function_return_label): Strengthen from rtx to rtx_code_label *.
16590 (function_simple_return_label): Likewise.
16591 (first_active_target_insn): Strengthen return type and param from
16593 (find_end_label): Strengthen return type from rtx to
16594 rtx_code_label *; strengthen locals as appropriate.
16595 (emit_delay_sequence): Strengthen return type, param "insn" and
16596 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
16597 and local "li" from rtx to rtx_insn_list *, using methods of
16598 rtx_insn_list for clarity and typesafety.
16599 (add_to_delay_list): Strengthen return type and param "insn" from
16600 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
16601 rtx_insn_list * and use methods of rtx_insn_list.
16602 (delete_from_delay_slot): Strengthen return type, param "insn",
16603 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
16604 Strengthen local "seq" from rtx to rtx_sequence *, and local
16605 "delay_list" from rtx to rtx_insn_list *, using methods of
16606 rtx_sequence for clarity and type-safety.
16607 (delete_scheduled_jump): Add checked cast when invoking
16608 delete_from_delay_slot. Strengthen local "trial" from rtx to
16610 (optimize_skip): Strengthen return type and local "delay_list"
16611 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
16613 (steal_delay_list_from_target): Strengthen return type, param
16614 "delay_list" and local "new_delay_list" from rtx to
16615 rtx_insn_list *. Strengthen param "seq" from rtx to
16616 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
16618 Split out local "temp" into multiple more-tightly scoped locals:
16619 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
16620 of rtx_insn_list and rtx_sequence for clarity and typesafety.
16621 Strengthen locals named "trial" from rtx to rtx_insn *.
16622 (steal_delay_list_from_fallthrough): Strengthen return type and
16623 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
16624 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
16625 Strengthen local "trial" from rtx to rtx_insn *.
16626 (try_merge_delay_insns): Strength local "merged_insns" from rtx
16627 to rtx_insn_list * and use its methods. Strengthen local "pat"
16628 from rtx to rtx_sequence * and use its methods. Strengthen locals
16629 "dtrial" and "new_rtx" from rtx to rtx_insn *.
16630 (get_label_before): Strengthen return type and local "label" from
16632 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
16633 "next_trial", "next", prev". Strengthen local "delay_list" from
16634 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
16636 (follow_jumps): Strengthen return type, param "label" and locals
16637 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
16638 (fill_slots_from_thread): Strengthen return type, param
16639 "delay_list" from rtx to rtx_insn_list *. Strengthen params
16640 "insn", "thread", "opposite_thread" and locals "new_thread",
16641 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
16642 "sequence" from a checked cast to rtx_sequence so that we can call
16643 steal_delay_list_from_target and steal_delay_list_from_fallthrough
16644 with an rtx_sequence *.
16645 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
16646 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
16647 Strengthen local "delay_list" from rtx to rtx_insn_list *.
16648 (relax_delay_slots): Strengthen param "first" and locals "insn",
16649 "next", "trial", "delay_insn", "target_label" from rtx to
16650 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
16651 Introduce a local "trial_seq" for PATTERN (trial) of type
16652 rtx_sequence *, in both cases using methods of rtx_sequence.
16653 (dbr_schedule): Strengthen param "first" and locals "insn",
16654 "next", "epilogue_insn" from rtx to rtx_insn *.
16656 2014-08-28 Richard Biener <rguenther@suse.de>
16658 PR tree-optimization/62283
16659 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16660 Do not peel loops for alignment where the vector loop likely
16661 doesn't run at least VF times.
16663 2014-08-28 Bin Cheng <bin.cheng@arm.com>
16665 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
16666 important_candidates. Consider all important candidates if
16667 IVS doesn't give any result. Remove check on ivs->upto.
16668 (try_add_cand_for): Call iv_ca_add_use only once.
16670 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
16671 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16672 Anna Tikhonova <anna.tikhonova@intel.com>
16673 Ilya Tocar <ilya.tocar@intel.com>
16674 Andrey Turetskiy <andrey.turetskiy@intel.com>
16675 Ilya Verbin <ilya.verbin@intel.com>
16676 Kirill Yukhin <kirill.yukhin@intel.com>
16677 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16679 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
16680 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
16682 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
16683 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
16684 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
16685 (define_insn "*mul<mode>3"): Add EVEX version.
16687 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
16688 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16689 Anna Tikhonova <anna.tikhonova@intel.com>
16690 Ilya Tocar <ilya.tocar@intel.com>
16691 Andrey Turetskiy <andrey.turetskiy@intel.com>
16692 Ilya Verbin <ilya.verbin@intel.com>
16693 Kirill Yukhin <kirill.yukhin@intel.com>
16694 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16696 * config/i386/sse.md
16697 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
16698 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
16699 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
16700 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
16701 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
16702 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
16703 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
16704 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
16705 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
16706 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
16707 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
16708 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
16709 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
16710 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
16711 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
16712 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
16714 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
16715 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16716 Anna Tikhonova <anna.tikhonova@intel.com>
16717 Ilya Tocar <ilya.tocar@intel.com>
16718 Andrey Turetskiy <andrey.turetskiy@intel.com>
16719 Ilya Verbin <ilya.verbin@intel.com>
16720 Kirill Yukhin <kirill.yukhin@intel.com>
16721 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16723 * config/i386/sse.md
16724 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
16725 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
16726 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
16728 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
16729 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16730 Anna Tikhonova <anna.tikhonova@intel.com>
16731 Ilya Tocar <ilya.tocar@intel.com>
16732 Andrey Turetskiy <andrey.turetskiy@intel.com>
16733 Ilya Verbin <ilya.verbin@intel.com>
16734 Kirill Yukhin <kirill.yukhin@intel.com>
16735 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16737 * config/i386/sse.md
16738 (define_mode_iterator VI128_256): New.
16739 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
16741 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
16742 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16743 Anna Tikhonova <anna.tikhonova@intel.com>
16744 Ilya Tocar <ilya.tocar@intel.com>
16745 Andrey Turetskiy <andrey.turetskiy@intel.com>
16746 Ilya Verbin <ilya.verbin@intel.com>
16747 Kirill Yukhin <kirill.yukhin@intel.com>
16748 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16750 * config/i386/sse.md
16751 (define_mode_iterator VI8_256_512): New.
16752 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
16754 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
16755 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
16757 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
16759 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16761 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
16762 pointer to the cumulative reloc value and return the value for
16763 this reloc instead.
16764 (compute_reloc_for_rtx): Take a const_rtx. Call
16765 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
16766 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
16767 for_each_rtx for the CONST case.
16769 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16771 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
16772 (mark_constants_in_pattern): ...this new function to iterate over
16774 (mark_constants): Update accordingly.
16776 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16778 * varasm.c: Include rtl-iter.h.
16779 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
16780 Remove the pointer to the cumulative hashval_t and just return
16781 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
16782 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
16783 Accumulate the hashval_ts here instead of const_rtx_hash_1.
16785 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16787 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
16788 Give real type of data parameter. Remove return value.
16789 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
16790 to iterate over subrtxes.
16792 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16794 * var-tracking.c (use_narrower_mode_test): Turn from being a
16795 for_each_rtx callback to being a function that examines each
16797 (adjust_mems): Update accordingly.
16799 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16801 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
16802 callback to being a function that examines each subrtx itself.
16803 Remove handling of null rtxes.
16804 (add_uses): Update accordingly.
16806 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16808 * var-tracking.c: Include rtl-iter.h.
16809 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
16810 to being a function that examines each subrtx itself.
16811 (use_type): Update accordingly.
16813 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16815 * store-motion.c: Include rtl-iter.h.
16816 (extract_mentioned_regs_1): Delete.
16817 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
16818 for_each_rtx to iterate over subrtxes.
16820 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16822 * sel-sched.c: Include rtl-iter.h
16823 (count_occurrences_1): Delete.
16824 (count_occurrences_equiv): Turn rtxes into const_rtxes.
16825 Use FOR_EACH_SUBRTX rather than for_each_rtx.
16827 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16829 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
16830 * rtlanal.c (tls_referenced_p_1): Delete.
16831 (tls_referenced_p): Take a const_rtx rather than an rtx.
16832 Use FOR_EACH_SUBRTX rather than for_each_rtx.
16834 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16836 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
16837 (for_each_inc_dec): Take an rtx rather than an rtx *.
16838 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
16839 (cselib_record_sets): Likewise.
16840 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
16841 (check_for_inc_dec): Likewise.
16842 * rtlanal.c (for_each_inc_dec_ops): Delete.
16843 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
16844 rather than a pointer to the memory address. Replace
16845 for_each_inc_dec_ops argument with separate function and data
16846 arguments. Abort on non-autoinc addresses.
16847 (for_each_inc_dec_find_mem): Delete.
16848 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
16849 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
16851 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16853 * rtl.h (find_all_hard_regs): Declare.
16854 * rtlanal.c (find_all_hard_regs): New function.
16855 (record_hard_reg_uses_1): Delete.
16856 (record_hard_reg_uses): Use find_all_hard_regs.
16858 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16860 * rtl.h (replace_label_data): Delete.
16861 (replace_label): Take the old label, new label and update-nuses flag
16862 as direct arguments. Return void.
16863 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
16864 * rtlanal.c (replace_label): Update interface as above. Handle
16865 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
16866 iterator. Use FOR_EACH_SUBRTX_PTR.
16868 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16870 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
16871 with const_rtx parameters.
16872 * varasm.c (get_pool_constant): Likewise.
16873 * rtlanal.c (rtx_referenced_p_1): Delete.
16874 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
16875 Assert that the rtx we're looking for is nonnull. Allow searches
16876 for constant pool SYMBOL_REFs.
16878 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16880 * reload1.c: Include rtl-iter.h.
16881 (note_reg_elim_costly): Turn from being a for_each_rtx callback
16882 to being a function that examines each subrtx itself.
16883 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
16885 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16887 * regcprop.c (cprop_find_used_regs_1): Delete.
16888 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
16890 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16892 * regcprop.c: Include rtl-iter.h.
16893 (kill_value): Take a const_rtx.
16894 (kill_autoinc_value): Turn from being a for_each_rtx callback
16895 to being a function that examines each subrtx itself.
16896 (copyprop_hardreg_forward_1): Update accordingly.
16898 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16900 * reg-stack.c: Include rtl-iter.h.
16901 (subst_stack_regs_in_debug_insn): Delete.
16902 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
16903 instead of for_each_rtx.
16905 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16907 * lower-subreg.c (find_decomposable_subregs): Turn from being
16908 a for_each_rtx callback to being a function that examines each
16909 subrtx itself. Remove handling of null rtxes.
16910 (decompose_multiword_subregs): Update accordingly.
16912 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16914 * lower-subreg.c (adjust_decomposed_uses): Delete.
16915 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
16916 Remove handling of null rtxes.
16918 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16920 * lower-subreg.c: Include rtl-iter.h.
16921 (resolve_subreg_use): Turn from being a for_each_rtx callback
16922 to being a function that examines each subrtx itself. Remove
16923 handling of null rtxes.
16924 (resolve_reg_notes, resolve_simple_move): Update accordingly.
16925 (decompose_multiword_subregs): Likewise.
16927 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16929 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
16930 to being a function that examines each subrtx itself.
16931 (simplify_using_condition, simplify_using_initial_values): Update
16934 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16936 * loop-iv.c: Include rtl-iter.h.
16937 (find_single_def_src): New function.
16938 (replace_single_def_regs): Turn from being a for_each_rtx callback
16939 to being a function that examines each subrtx itself.
16940 (replace_in_expr, simplify_using_initial_values): Update accordingly.
16942 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16944 * jump.c (eh_returnjump_p_1): Delete.
16945 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
16946 Remove handling of null rtxes.
16948 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16950 * jump.c: Include rtl-iter.h.
16951 (returnjump_p_1): Delete.
16952 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
16953 Remove handling of null rtxes.
16955 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16957 * ira.c: Include rtl-iter.h.
16958 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
16959 to being a function that examines each subrtx itself. Remove
16960 handling of null rtxes.
16961 (update_equiv_regs): Update call accordingly.
16963 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16965 * fwprop.c: Include rtl-iter.h.
16966 (varying_mem_p): Turn from being a for_each_rtx callback to being
16967 a function that examines each subrtx itself.
16968 (propagate_rtx): Update accordingly.
16970 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16972 * function.c: Include rtl-iter.h
16973 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
16974 callback to being a function that examines each subrtx itself.
16975 Return the changed flag.
16976 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
16977 (instantiate_virtual_regs): Update calls accordingly.
16979 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16981 * final.c: Include rtl-iter.h.
16982 (mark_symbol_ref_as_used): Delete.
16983 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
16986 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16988 * emit-rtl.c: Include rtl-iter.h.
16989 (find_auto_inc): Turn from being a for_each_rtx callback to being
16990 a function that examines each subrtx itself. Assume the first operand
16991 to an RTX_AUTOINC is the automodified register.
16992 (try_split): Update call accordingly.
16994 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
16996 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
16997 Return a bool, inverting the result so that 0/false means "not ok".
16998 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
16999 subrtxes of a CONST.
17000 (mem_loc_descriptor, add_const_value_attribute)
17001 (resolve_addr_in_expr): Update calls accordingly.
17003 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17005 * dwarf2out.c: Include rtl-iter.h.
17006 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
17007 Remove unused data parameter. Return a bool, inverting the result
17008 so that 0/false means "not ok".
17009 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
17010 instead of for_each_rtx.
17012 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17014 * dse.c: Include rtl-iter.h.
17015 (check_mem_read_rtx): Change void * parameter to real type.
17016 Remove return value.
17017 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
17018 for_each_rtx. Don't handle null rtxes.
17020 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17022 * df-problems.c: Include rtl-iter.h.
17023 (find_memory): Turn from being a for_each_rtx callback to being
17024 a function that examines each subrtx itself. Continue to look for
17025 volatile references even after a nonvolatile one has been found.
17026 (can_move_insns_across): Update calls accordingly.
17028 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17030 * ddg.c (walk_mems_2, walk_mems_1): Delete.
17031 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
17032 to iterate over subrtxes. Return a bool rather than an int.
17034 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17036 * ddg.c: Include rtl-iter.h.
17037 (mark_mem_use_1): Rename to...
17038 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
17039 instead of for_each_rtx.
17040 (mem_read_insn_p): Update accordingly.
17042 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17044 * cse.c (change_cc_mode_args): Delete.
17045 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
17046 a function that examines each subrtx itself. Take the fields of
17047 change_cc_mode_args as argument and return void.
17048 (cse_change_cc_mode_insn): Update calls accordingly.
17050 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17052 * cse.c (is_dead_reg): Change argument to const_rtx.
17053 (dead_debug_insn_data): Delete.
17054 (is_dead_debug_insn): Expand commentary. Turn from being a
17055 for_each_rtx callback to being a function that examines
17056 each subrtx itself. Take the fields of dead_debug_insn_data
17058 (delete_trivially_dead_insns): Update call accordingly.
17060 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17062 * cse.c (check_for_label_ref): Move earlier in file. Turn from
17063 being a for_each_rtx callback to being a function that examines
17064 each subrtx itself.
17065 (cse_extended_basic_block): Update call accordingly.
17067 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17069 * cse.c (check_dependence_data): Delete.
17070 (check_dependence): Change from being a for_each_rtx callback to being
17071 a function that examines all subrtxes itself. Don't handle null rtxes.
17072 (invalidate): Update call accordingly.
17074 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17076 * cse.c: Include rtl-iter.h.
17077 (approx_reg_cost_1): Delete.
17078 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
17079 Don't handle null rtxes.
17081 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17083 * cfgcleanup.c: Include rtl-iter.h.
17084 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
17085 to being a function that examines each subrtx itself.
17086 (thread_jump): Update accordingly.
17088 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17090 * combine-stack-adj.c: Include rtl-iter.h.
17091 (record_stack_refs_data): Delete.
17092 (record_stack_refs): Turn from being a for_each_rtx callback
17093 to being a function that examines each subrtx itself.
17094 Take a pointer to the reflist. Invert sense of return value
17095 so that true means success and false means failure. Don't
17097 (combine_stack_adjustments_for_block): Update accordingly.
17099 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17101 * combine.c (record_truncated_value): Turn from being a for_each_rtx
17102 callback to a function that takes an rtx and returns a bool
17103 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
17106 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17108 * combine.c: Include rtl-iter.h.
17109 (unmentioned_reg_p_1): Delete.
17110 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
17111 Don't handle null rtxes.
17113 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17115 * calls.c: Include rtl-iter.h.
17116 (internal_arg_pointer_based_exp_1): Delete.
17117 (internal_arg_pointer_based_exp): Take a const_rtx.
17118 Use FOR_EACH_SUBRTX to iterate over subrtxes.
17120 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17122 * caller-save.c: Include rtl-iter.h.
17123 (add_used_regs_1): Delete.
17124 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
17125 to iterate over subrtxes. Assert that any remaining pseudos
17128 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17130 * bt-load.c: Include rtl-iter.h.
17131 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
17132 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
17133 to iterate over subrtxes.
17134 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
17135 find_btr_use rather than btr_referenced_p.
17137 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17139 * alias.c: Include rtl-iter.h.
17140 (refs_newer_value_cb): Delete.
17141 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
17143 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
17145 * rtl-iter.h: New file.
17146 * rtlanal.c: Include it.
17147 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
17148 (generic_subrtx_iterator <T>::add_single_to_queue)
17149 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
17150 (generic_subrtx_iterator <T>::free_array): New functions.
17151 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
17152 (generic_subrtx_iterator <const_rtx_accessor>)
17153 (generic_subrtx_iterator <rtx_var_accessor>
17154 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
17155 (setup_reg_subrtx_bounds): New function.
17156 (init_rtlanal): Call it.
17158 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
17161 * config/sh/sh.md (ashlsi3): Handle negative shift count for
17163 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
17165 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
17167 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
17169 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17171 * rtl.h (JUMP_LABEL_AS_INSN): New.
17173 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17175 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
17177 (alloc_EXPR_LIST): Strengthen return type from rtx to
17179 (remove_free_EXPR_LIST_node): Likewise for param.
17180 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
17181 from rtx to rtx_expr_list *.
17182 * sched-int.h (struct deps_desc): Strengthen fields
17183 "pending_read_mems" and "pending_write_mems" from rtx to
17186 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
17187 rtx to rtx_expr_list *.
17188 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
17189 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
17191 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
17192 from rtx to rtx_expr_list *.
17193 * loop-iv.c (simplify_using_initial_values): Strengthen local
17194 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
17195 "pnote_next" from rtx * to rtx_expr_list **.
17196 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
17197 param "exprp" from rtx * to rtx_expr_list **.
17198 (add_insn_mem_dependence): Strengthen local "mem_list" from
17199 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
17200 to rtx_expr_list *.
17201 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
17202 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
17203 param "old_mems_p" from rtx * to rtx_expr_list **.
17204 * var-tracking.c (struct adjust_mem_data): Strengthen field
17205 "side_effects" from rtx to rtx_expr_list *.
17206 (adjust_insn): Replace NULL_RTX with NULL when assigning to
17208 (prepare_call_arguments): Likewise.
17210 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17212 * function.h (struct rtl_data): Strengthen field
17213 "x_stack_slot_list" from rtx to rtx_expr_list *.
17215 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
17216 when assigning to stack_slot_list.
17218 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17220 * function.h (struct rtl_data): Strengthen field
17221 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
17222 * rtl.h (remove_node_from_expr_list): Strengthen second param from
17223 rtx * to rtx_expr_list **.
17225 * cfgbuild.c (make_edges): In loop over
17226 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
17227 rtx_expr_list *, and use methods of the latter class to clarify
17229 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
17230 rtx_expr_list *, and use methods of the latter class to clarify
17232 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
17233 * reload1.c (set_initial_label_offsets): Likewise for local "x".
17234 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
17235 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
17236 to rtx_expr_list *. Use methods of the latter class to clarify
17239 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17241 * function.h (struct expr_status): Strengthen field
17242 "x_forced_labels" from rtx to rtx_expr_list *.
17244 * cfgbuild.c (make_edges): Split local "x" into two locals,
17245 strengthening one from rtx to rtx_expr_list *, and using methods
17247 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
17248 loop over forced_labels, introduce strengthen it from rtx to
17249 rtx_expr_list *, using methods to clarify the code.
17250 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
17251 to rtx_expr_list *, using methods of said class to clarify the
17253 * reload1.c (set_initial_label_offsets): Split local "x" into two
17254 per-loop variables, strengthening the first from rtx to
17255 rtx_expr_list * and using methods.
17257 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17259 * coretypes.h (class rtx_expr_list): Add forward declaration.
17260 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
17261 * gengenrtl.c (special_rtx): Add EXPR_LIST.
17262 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
17263 invariant: GET_CODE (X) == EXPR_LIST.
17264 (is_a_helper <rtx_expr_list *>::test): New.
17265 (rtx_expr_list::next): New.
17266 (rtx_expr_list::element): New.
17267 (gen_rtx_EXPR_LIST): New.
17269 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17271 * varasm.c (mark_constants): Convert a GET_CODE check into a
17272 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
17273 Use methods of rtx_sequence to clarify the code.
17275 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17277 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
17278 local "seq" via a checked cast, and use methods of rtx_sequence
17279 to simplify the code.
17281 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17283 * resource.c (mark_referenced_resources): Strengthen local
17284 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
17285 using methods of rtx_sequence to clarify the code.
17286 (find_dead_or_set_registers): Within the switch statement, convert
17287 a GET_CODE check to a dyn_cast, introducing local "seq". Within
17288 the JUMP_P handling, introduce another local "seq", adding a
17289 checked cast to rtx_sequence *. In both cases, use methods of
17290 rtx_sequence to clarify the code.
17291 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
17292 via a checked cast, and use methods of rtx_sequence to simplify
17295 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17297 * reorg.c (redundant_insn): In two places in the function, replace
17298 a check of GET_CODE with a dyn_cast, introducing local "seq", and
17299 usings methods of rtx_sequence to clarify the code.
17301 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17303 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
17304 local "seq" with a checked cast, and use methods of rtx_sequence
17305 to clarify the code.
17307 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17309 * function.c (contains): Introduce local "seq" for PATTERN (insn),
17310 with a checked cast, in the region for where we know it's a
17311 SEQUENCE. Use methods of rtx_sequence.
17313 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17315 * final.c (get_attr_length_1): Replace GET_CODE check with a
17316 dyn_cast, introducing local "seq" and the use of methods of
17318 (shorten_branches): Likewise, introducing local "body_seq".
17319 Strengthen local "inner_insn" from rtx to rtx_insn *.
17320 (reemit_insn_block_notes): Replace GET_CODE check with a
17321 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
17322 Use methods of rtx_sequence.
17323 (final_scan_insn): Likewise, introducing local "seq" for when
17324 "body" is known to be a SEQUENCE, using its methods.
17326 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17328 * except.c (can_throw_external): Strengthen local "seq" from rtx
17329 to rtx_sequence *. Use methods of rtx_sequence.
17330 (insn_nothrow_p): Likewise.
17332 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17334 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
17335 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
17336 Use methods of rtx_sequence.
17337 (scan_trace): Likewise for local "pat".
17339 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17341 * coretypes.h (class rtx_sequence): Add forward declaration.
17342 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
17343 invariant: GET_CODE (X) == SEQUENCE.
17344 (is_a_helper <rtx_sequence *>::test): New.
17345 (is_a_helper <const rtx_sequence *>::test): New.
17346 (rtx_sequence::len): New.
17347 (rtx_sequence::element): New.
17348 (rtx_sequence::insn): New.
17350 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17352 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
17354 (alloc_INSN_LIST): Strengthen return type from rtx to
17356 (copy_INSN_LIST): Likewise for return type and param.
17357 (concat_INSN_LIST): Likewise for both params and return type.
17358 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
17359 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
17360 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
17361 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
17363 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
17364 "implicit_sets", "control_uses", "clobbers" from rtx to
17366 (struct deps_desc): Likewise for fields "pending_read_insns",
17367 "pending_write_insns", "pending_jump_insns",
17368 "last_pending_memory_flush", "last_function_call",
17369 "last_function_call_may_noreturn", "sched_before_next_call",
17370 "sched_before_next_jump".
17371 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
17372 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
17374 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
17375 from rtx to rtx_insn_list *.
17376 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
17379 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
17380 to rtx_insn_list **.
17381 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
17383 (queue_insn): Likewise for local "link".
17384 (struct haifa_saved_data): Strengthen field "insn_queue" from
17385 rtx * to rtx_insn_list **.
17386 (save_backtrack_point): Update allocation of save->insn_queue to
17387 reflect the strengthening of elements from rtx to rtx_insn_list *.
17388 (queue_to_ready): Strengthen local "link" from rtx to
17389 rtx_insn_list *; use methods "next" and "insn" when traversing the
17391 (early_queue_to_ready): Likewise for locals "link", "next_link",
17393 (schedule_block): Update allocation of insn_queue to reflect the
17394 strengthening of elements from rtx to rtx_insn_list *. Strengthen
17395 local "link" from rtx to rtx_insn_list *, and use methods when
17397 (add_to_speculative_block): Strengthen locals "twins" and
17398 "next_node" from rtx to rtx_insn_list *, and use methods when
17399 working with them. Strengthen local "twin" from rtx to
17400 rtx_insn *, eliminating a checked cast.
17401 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
17402 from rtx to rtx_insn_list *, and use methods when working with
17405 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
17406 from rtx to rtx_insn_list *, adding a checked cast.
17407 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
17409 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
17410 "newlink" from rtx to rtx_insn_list *. Strengthen local
17411 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
17412 from rtx to rtx_insn *.
17413 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
17414 from rtx to rtx_insn_list *. Use methods of the latter class.
17415 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
17416 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
17417 (remove_free_INSN_LIST_node): Strengthen return type and local
17418 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
17419 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
17420 rtx_insn_list *, using "insn" method.
17422 * sched-deps.c (add_dependence_list): Strengthen param "list"
17423 from rtx to rtx_insn_list *, and use methods when working with it.
17424 (add_dependence_list_and_free): Strengthen param "listp" from
17425 rtx * to rtx_insn_list **.
17426 (remove_from_dependence_list): Strenghten param "listp" from rtx *
17427 to rtx_insn_list **, and use methods when working with *listp.
17428 (remove_from_both_dependence_lists): Strengthen param "listp" from
17429 rtx * to rtx_insn_list **
17430 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
17431 to rtx_insn_list **. Eliminate local "link", in favor of two new
17432 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
17434 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
17435 by introducing local "cond_deps".
17436 (remove_from_deps): Strengthen param "insn" from rtx to
17439 * sched-rgn.c (concat_insn_mem_list): Strengthen param
17440 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
17441 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
17442 Use methods of rtx_insn_list.
17444 * store-motion.c (struct st_expr): Strengthen fields
17445 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
17446 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
17448 (find_moveable_store): Split out "tmp" into multiple more-tightly
17449 scoped locals. Use methods of rtx_insn_list *.
17450 (compute_store_table): Strengthen local "tmp" from rtx to
17451 rtx_insn *. Use methods of rtx_insn_list *.
17453 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17455 * coretypes.h (class rtx_insn_list): Add forward declaration.
17456 * rtl.h (class rtx_insn_list): New subclass of rtx_def
17457 (is_a_helper <rtx_insn_list *>::test): New.
17458 (rtx_insn_list::next): New.
17459 (rtx_insn_list::insn): New.
17460 (gen_rtx_INSN_LIST): Add prototype.
17461 * emit-rtl.c (gen_rtx_INSN_LIST): New.
17462 * gengenrtl.c (special_rtx): Add INSN_LIST.
17464 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17466 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
17467 "prev" from rtx to rtx_insn *.
17469 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17471 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
17472 functions. Require merely an rtx for now, not an rtx_insn *.
17473 (BLOCK_FOR_INSN): Likewise.
17474 (INSN_LOCATION): Likewise.
17475 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
17477 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17479 * rtl.h (PATTERN): Convert this macro into a pair of inline
17480 functions, for now, requiring const_rtx and rtx.
17482 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17484 * target.def (unwind_emit): Strengthen param "insn" from rtx to
17486 (final_postscan_insn): Likewise.
17487 (adjust_cost): Likewise.
17488 (adjust_priority): Likewise.
17489 (variable_issue): Likewise.
17490 (macro_fusion_pair_p): Likewise.
17491 (dfa_post_cycle_insn): Likewise.
17492 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
17493 (first_cycle_multipass_issue): Likewise.
17494 (dfa_new_cycle): Likewise.
17495 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
17496 (speculate_insn): Likewise for param "insn".
17497 (gen_spec_check): Likewise for params "insn" and "label".
17498 (get_insn_spec_ds): Likewise for param "insn".
17499 (get_insn_checked_ds): Likewise.
17500 (dispatch_do): Likewise.
17501 (dispatch): Likewise.
17502 (cannot_copy_insn_p): Likewise.
17503 (invalid_within_doloop): Likewise.
17504 (legitimate_combined_insn): Likewise.
17505 (needed): Likewise.
17508 * doc/tm.texi: Automatically updated to reflect changes to
17511 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
17513 (schedule_block): Likewise.
17514 (sched_init): Likewise.
17515 (sched_speculate_insn): Strengthen param "insn" from rtx to
17517 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
17519 * hooks.c (hook_bool_rtx_true): Rename to...
17520 hook_bool_rtx_insn_true): ...this, and strengthen first param from
17522 (hook_constcharptr_const_rtx_null): Rename to...
17523 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
17524 first param from const_rtx to const rtx_insn *.
17525 (hook_bool_rtx_int_false): Rename to...
17526 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
17527 param from rtx to rtx_insn *.
17528 (hook_void_rtx_int): Rename to...
17529 (hook_void_rtx_insn_int): ...this, and strengthen first param from
17532 * hooks.h (hook_bool_rtx_true): Rename to...
17533 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
17535 (hook_bool_rtx_int_false): Rename to...
17536 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
17537 param from rtx to rtx_insn *.
17538 (hook_void_rtx_int): Rename to...
17539 (hook_void_rtx_insn_int): ...this, and strengthen first param from
17541 (hook_constcharptr_const_rtx_null): Rename to...
17542 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
17543 first param from const_rtx to const rtx_insn *.
17545 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
17546 and local "prev" from rtx to rtx_insn *.
17548 * sched-int.h (sched_speculate_insn): Strengthen first param from
17551 * sel-sched.c (create_speculation_check): Likewise for local "label".
17552 * targhooks.c (default_invalid_within_doloop): Strengthen param
17553 "insn" from const_rtx to const rtx_insn *.
17554 * targhooks.h (default_invalid_within_doloop): Strengthen param
17555 from const_rtx to const rtx_insn *.
17557 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
17558 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
17560 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
17562 (arc_invalid_within_doloop): Likewise, with const.
17564 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
17565 (arm_cannot_copy_insn_p): Likewise for param "insn".
17566 (arm_unwind_emit): Likewise.
17568 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
17571 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
17572 (c6x_variable_issue): Likewise. Removed now-redundant checked
17574 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
17576 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
17577 Likewise for param "insn".
17578 (epiphany_mode_after): Likewise.
17579 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
17580 params "insn", "dep_insn".
17581 (epiphany_mode_needed): Likewise for param "insn".
17582 (epiphany_mode_after): Likewise.
17584 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
17585 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17586 (ix86_avx_u128_mode_needed): Likewise.
17587 (ix86_i387_mode_needed): Likewise.
17588 (ix86_mode_needed): Likewise.
17589 (ix86_avx_u128_mode_after): Likewise.
17590 (ix86_mode_after): Likewise.
17591 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
17592 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
17593 (ix86_adjust_priority): Likewise for param "insn".
17594 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
17595 (do_dispatch): Likewise.
17596 (has_dispatch): Likewise.
17597 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
17599 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
17600 reflect renaming of default hook implementation from
17601 hook_constcharptr_const_rtx_null to
17602 hook_constcharptr_const_rtx_insn_null.
17603 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
17605 (ia64_variable_issue): Likewise for param "insn".
17606 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
17607 (ia64_dfa_new_cycle): Likewise.
17608 (ia64_get_insn_spec_ds): Likewise.
17609 (ia64_get_insn_checked_ds): Likewise.
17610 (ia64_speculate_insn): Likewise.
17611 (ia64_gen_spec_check): Likewise for params "insn", "label".
17612 (ia64_asm_unwind_emit): Likewise for param "insn".
17614 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
17616 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
17617 "insn", "def_insn".
17618 (m68k_sched_variable_issue): Likewise for param "insn".
17620 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
17623 * config/microblaze/microblaze.c (microblaze_adjust_cost):
17624 Likewise for params "insn", "dep".
17626 * config/mips/mips.c (mips_adjust_cost): Likewise.
17627 (mips_variable_issue): Likewise for param "insn".
17628 (mips_final_postscan_insn): Likewise.
17630 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
17631 for params "insn", "dep".
17633 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
17635 (pa_adjust_priority): Likewise for param "insn".
17637 * config/picochip/picochip.c (picochip_sched_adjust_cost):
17638 Likewise for params "insn", "dep_insn".
17640 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
17642 (rs6000_variable_issue): Likewise.
17643 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
17644 (rs6000_debug_adjust_cost): Likewise.
17645 (rs6000_adjust_priority): Likewise for param "insn".
17646 (rs6000_use_sched_lookahead_guard): Likewise.
17647 (get_next_active_insn): Likewise for return type and both params.
17648 (redefine_groups): Likewise for params "prev_head_insn", "tail"
17649 and locals "insn", "next_insn".
17650 (pad_groups): Likewise.
17652 * config/s390/s390.c (s390_adjust_priority): Likewise for param
17654 (s390_cannot_copy_insn_p): Likewise.
17655 (s390_sched_variable_issue): Likewise for third param, eliminating
17657 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
17658 default hook implementation from hook_constcharptr_const_rtx_null
17659 to hook_constcharptr_const_rtx_insn_null.
17661 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
17662 from rtx to rtx_insn *.
17663 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
17664 (sh_variable_issue): Likewise for param "insn".
17665 (sh_dfa_new_cycle): Likewise.
17666 (sh_mode_needed): Likewise.
17667 (sh_mode_after): Likewise.
17669 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
17670 params "insn", "dep_insn".
17671 (hypersparc_adjust_cost): Likewise.
17672 (sparc_adjust_cost): Likewise.
17674 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
17675 param, eliminated checked cast.
17676 (spu_sched_adjust_cost): Likewise for first and third params.
17678 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
17679 params "insn" and "dep_insn" from rtx to rtx_insn *.
17681 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
17683 2014-08-27 David Malcolm <dmalcolm@redhat.com>
17685 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
17686 (set_is_load_p): ...this, updating to work on a SET pattern rather
17688 (is_store_insn): Rename to...
17689 (set_is_store_p): ...this, updating to work on a SET pattern
17690 rather than an insn.
17691 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
17692 top of function to where it is needed. Rewrite the bogus
17693 condition that checks for "insn" and "dep" being PARALLEL to
17694 instead use single_set, introducing locals "insn_set" and
17695 "dep_set". Given that we only ever returned "cost" for a non-pair
17696 of SETs, bail out early if we don't have a pair of SET.
17697 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
17698 use the new locals "insn_set" and "dep_set", and update calls to
17699 is_load_insn and is_store_insn to be calls to set_is_load_p and
17702 2014-08-27 Guozhi Wei <carrot@google.com>
17705 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
17706 amount before using it.
17708 2014-08-27 Richard Biener <rguenther@suse.de>
17710 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
17711 get_maxval_strlen inside a more useful API.
17712 (gimple_fold_builtin_with_strlen): Remove and fold into ...
17713 (gimple_fold_builtin): ... caller.
17714 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
17715 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
17716 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
17717 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
17718 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
17719 gimple_fold_builtin_sprintf): Adjust to compute maxval
17722 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
17725 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
17727 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
17728 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17729 Anna Tikhonova <anna.tikhonova@intel.com>
17730 Ilya Tocar <ilya.tocar@intel.com>
17731 Andrey Turetskiy <andrey.turetskiy@intel.com>
17732 Ilya Verbin <ilya.verbin@intel.com>
17733 Kirill Yukhin <kirill.yukhin@intel.com>
17734 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17736 * config/i386/sse.md
17737 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
17738 Use `concat_tg_mode' attribute to determine asm register size.
17740 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
17741 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17742 Anna Tikhonova <anna.tikhonova@intel.com>
17743 Ilya Tocar <ilya.tocar@intel.com>
17744 Andrey Turetskiy <andrey.turetskiy@intel.com>
17745 Ilya Verbin <ilya.verbin@intel.com>
17746 Kirill Yukhin <kirill.yukhin@intel.com>
17747 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17749 * config/i386/sse.md
17750 (define_mode_iterator VI48_AVX512VL): New.
17751 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
17752 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
17753 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
17754 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
17755 with VI1): Change mode iterator.
17756 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
17757 with VI_ULOADSTORE_BW_AVX512VL): New.
17758 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
17759 with VI_ULOADSTORE_F_AVX512VL): Ditto.
17760 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
17761 with VI1): Change mode iterator.
17762 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
17763 with VI_ULOADSTORE_BW_AVX512VL): New.
17764 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
17765 with VI_ULOADSTORE_F_AVX512VL): Ditto.
17766 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
17767 with VI1): Change mode iterator.
17768 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
17769 with VI_ULOADSTORE_BW_AVX512VL): New.
17770 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
17771 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
17772 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
17773 (define_insn "<avx512>_storedqu<mode>_mask" with
17774 VI48_AVX512VL): New.
17775 (define_insn "<avx512>_storedqu<mode>_mask" with
17776 VI12_AVX512VL): Ditto.
17778 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
17779 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
17780 Anna Tikhonova <anna.tikhonova@intel.com>
17781 Ilya Tocar <ilya.tocar@intel.com>
17782 Andrey Turetskiy <andrey.turetskiy@intel.com>
17783 Ilya Verbin <ilya.verbin@intel.com>
17784 Kirill Yukhin <kirill.yukhin@intel.com>
17785 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
17787 * config/i386/sse.md
17788 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
17789 (define_mode_iterator VI48_AVX512BW): New.
17790 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
17791 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
17792 with VI48_AVX2_48_AVX512F): New.
17793 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
17794 with VI2_AVX512VL): Ditto.
17796 2014-08-27 Richard Biener <rguenther@suse.de>
17798 PR middle-end/62239
17799 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
17800 (fold_builtin_3): Do not fold strcat_chk here.
17801 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
17803 (gimple_fold_builtin): Fold strcat_chk here.
17805 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
17807 * dwarf2out.h (dwarf2out_decl): Remove prototype.
17808 * dwarf2out.c (dwarf2out_decl): Make static.
17810 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
17812 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
17814 2014-08-26 David Malcolm <dmalcolm@redhat.com>
17816 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
17817 from rtx to rtx_insn *.
17818 (cselib_lookup_from_insn): Likewise for final param.
17819 (cselib_subst_to_values_from_insn): Likewise.
17820 (cselib_add_permanent_equiv): Likewise.
17822 * cselib.c (cselib_current_insn): Likewise for this variable.
17823 (cselib_subst_to_values_from_insn): Likewise for param "insn".
17824 (cselib_lookup_from_insn): Likewise.
17825 (cselib_add_permanent_equiv): Likewise for param "insn" and local
17826 "save_cselib_current_insn".
17827 (cselib_process_insn): Replace use of NULL_RTX with NULL.
17829 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
17830 from rtx to rtx_insn *.
17832 2014-08-26 David Malcolm <dmalcolm@redhat.com>
17834 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
17837 2014-08-26 David Malcolm <dmalcolm@redhat.com>
17839 * df.h (df_dump_insn_problem_function): Strengthen first param of
17840 this callback from const_rtx to const rtx_insn *.
17841 (struct df_insn_info): Strengthen field "insn" from rtx to
17843 (DF_REF_INSN): Eliminate this function, reinstating the older
17845 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
17846 (df_reg_defined): Likewise.
17847 (df_find_use): Likewise.
17848 (df_reg_used): Likewise.
17849 (df_dump_insn_top): Strengthen param 1 from const_rtx to
17851 (df_dump_insn_bottom): Likewise.
17852 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
17853 (df_insn_debug_regno): Likewise.
17854 (debug_df_insn): Likewise.
17855 (df_rd_simulate_one_insn): Likewise for param 2.
17856 (df_word_lr_simulate_defs): Likewise for param 1.
17857 (df_word_lr_simulate_uses): Likewise.
17858 (df_md_simulate_one_insn): Likewise for param 2.
17859 (df_simulate_find_noclobber_defs): Likewise for param 1.
17860 (df_simulate_find_defs): Likewise.
17861 (df_simulate_defs): Likewise.
17862 (df_simulate_uses): Likewise.
17863 (df_simulate_one_insn_backwards): Likewise for param 2.
17864 (df_simulate_one_insn_forwards): Likewise.
17865 (df_uses_create): Likewise for param 2.
17866 (df_insn_create_insn_record): Likewise for param 1.
17867 (df_insn_delete): Likewise.
17868 (df_insn_rescan): Likewise.
17869 (df_insn_rescan_debug_internal): Likewise.
17870 (df_insn_change_bb): Likewise.
17871 (df_notes_rescan): Likewise.
17872 * rtl.h (remove_death): Likewise for param 2.
17873 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
17875 * sched-int.h (reemit_notes): Strengthen param from rtx to
17877 * valtrack.h (propagate_for_debug): Likewise for param 1.
17879 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
17880 local "tmp_rtx" from const_rtx to const rtx_insn *.
17881 * combine.c (remove_death): Strengthen param "insn" from rtx to
17883 (move_deaths): Likewise for local "where_dead".
17884 * cse.c (delete_trivially_dead_insns): Introduce local
17885 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
17886 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
17888 (df_reg_defined): Likewise.
17889 (df_find_use): Likewise.
17890 (df_reg_used): Likewise.
17891 (df_dump_insn_problem_data): Strengthen param "insn" from
17892 const_rtx to const rtx_insn *.
17893 (df_dump_insn_top): Likewise.
17894 (df_dump_insn_bottom): Likewise.
17895 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
17896 (df_insn_debug_regno): Likewise.
17897 (debug_df_insn): Likewise.
17898 (DF_REF_INSN): Delete.
17899 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
17900 from rtx to rtx_insn *.
17901 (df_chain_insn_top_dump): Strengthen param "insn" from
17902 const_rtx to const rtx_insn *.
17903 (df_chain_insn_bottom_dump): Likewise.
17904 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
17906 (df_word_lr_simulate_uses): Likewise.
17907 (df_print_note): Likewise.
17908 (df_remove_dead_and_unused_notes): Likewise.
17909 (df_set_unused_notes_for_mw): Likewise.
17910 (df_set_dead_notes_for_mw): Likewise.
17911 (df_create_unused_note): Likewise.
17912 (df_simulate_find_defs): Likewise.
17913 (df_simulate_find_uses): Likewise.
17914 (df_simulate_find_noclobber_defs): Likewise.
17915 (df_simulate_defs): Likewise.
17916 (df_simulate_uses): Likewise.
17917 (df_simulate_one_insn_backwards): Likewise.
17918 (df_simulate_one_insn_forwards): Likewise.
17919 (df_md_simulate_one_insn): Likewise.
17920 * df-scan.c (df_uses_create): Likewise.
17921 (df_insn_create_insn_record): Likewise.
17922 (df_insn_delete): Likewise.
17923 (df_insn_rescan): Likewise.
17924 (df_insn_rescan_debug_internal): Likewise.
17925 (df_insn_change_bb): Likewise.
17926 (df_notes_rescan): Likewise.
17927 (df_refs_add_to_chains): Likewise.
17928 (df_insn_refs_verify): Likewise.
17929 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
17930 when invoking df_insn_delete.
17931 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
17932 (set_unique_reg_note): Add checked cast.
17933 * final.c (cleanup_subreg_operands): Likewise.
17934 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
17935 "insn" from rtx to rtx_insn *.
17936 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
17937 "last" from rtx to rtx_insn *.
17938 * ira-emit.c (change_regs_in_insn): New function.
17939 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
17940 Invoke change_regs_in_insn rather than change_regs.
17941 * ira.c (update_equiv_regs): Strengthen locals "insn",
17942 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
17943 for_each_rtx_in_insn rather than for_each_rtx.
17944 * recog.c (confirm_change_group): Add checked casts.
17945 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
17947 (peep2_fill_buffer): Add checked cast.
17948 * rtlanal.c (remove_note): Likewise.
17949 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
17950 locals "next" "end" from rtx to rtx_insn *.
17952 2014-08-26 David Malcolm <dmalcolm@redhat.com>
17954 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
17956 (struct reg_use_data): Likewise for field "insn".
17957 (insn_cost): Likewise for param.
17958 (real_insn_for_shadow): Likewise for return type and param.
17959 (increase_insn_priority): Likewise for param 1.
17960 (debug_dependencies): Likewise for both params.
17962 * haifa-sched.c (insn_delay): Likewise for param "insn".
17963 (real_insn_for_shadow): Likewise for return type and param "insn".
17964 (update_insn_after_change): Likewise for param "insn".
17965 (recompute_todo_spec): Likewise for param "next" and locals "pro",
17967 (insn_cost): Likewise for param "insn".
17968 (increase_insn_priority): Likewise.
17969 (calculate_reg_deaths): Likewise.
17970 (setup_insn_reg_pressure_info): Likewise.
17971 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
17972 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
17973 (model_recompute): Likewise.
17974 (must_restore_pattern_p): Likewise for param "next".
17975 (model_excess_cost): Likewise for param "insn".
17976 (queue_remove): Likewise.
17977 (adjust_priority): Likewise for param "prev".
17978 (update_register_pressure): Likewise for param "insn".
17979 (setup_insn_max_reg_pressure): Likewise for local "insn".
17980 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
17981 (model_add_to_schedule): Likewise.
17982 (model_reset_queue_indices): Likewise for local "insn".
17983 (unschedule_insns_until): Strengthen local "recompute_vec" from
17984 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
17985 "con" from rtx to rtx_insn *.
17986 (restore_last_backtrack_point): Likewise for both locals "x". Add
17988 (estimate_insn_tick): Likewise for param "insn".
17989 (commit_schedule): Likewise for params "prev_head", "tail" and
17991 (verify_shadows): Likewise for locals "i1", "i2".
17992 (dump_insn_stream): Likewise for params "head", "tail" and locals
17993 "next_tail", "insn".
17994 (schedule_block): Likewise for locals "insn", "x". Add a checked
17996 (fix_inter_tick): Likewise for params "head", "tail".
17997 (create_check_block_twin): Likewise for local "jump".
17998 (haifa_change_pattern): Likewise for param "insn".
17999 (haifa_speculate_insn): Likewise.
18000 (dump_new_block_header): Likewise for params "head", "tail".
18001 (fix_jump_move): Likewise for param "jump".
18002 (move_block_after_check): Likewise.
18003 (sched_init_insn_luid): Likewise for param "insn".
18004 (sched_init_luids): Likewise for local "insn".
18005 (insn_luid): Likewise for param "insn".
18006 (init_h_i_d): Likewise.
18007 (haifa_init_h_i_d): Likewise for local "insn".
18008 (haifa_init_insn): Likewise for param "insn".
18009 * sched-deps.c (add_dependence): Likewise for local "real_pro",
18011 (create_insn_reg_use): Likewise for param "insn".
18012 (setup_insn_reg_uses): Likewise. Add a checked cast.
18013 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
18014 "tail" from rtx to rtx_insn *.
18015 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
18016 "insn", "next_tail".
18018 2014-08-26 David Malcolm <dmalcolm@redhat.com>
18020 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
18021 from rtx to rtx_insn *.
18022 (model_add_to_schedule): Likewise for locals "start", "end",
18025 2014-08-26 David Malcolm <dmalcolm@redhat.com>
18027 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
18029 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
18030 "to" and locals "insn", "next", "copy". Remove now-redundant
18033 2014-08-26 David Malcolm <dmalcolm@redhat.com>
18035 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
18036 rtx_insn * and param 4 from rtx * to rtx_insn **.
18037 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
18038 param 2 from rtx * to rtx_insn **.
18040 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
18041 rtx_insn * and final param from rtx * to rtx_insn **.
18043 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
18044 from rtx to rtx_insn *.
18045 (try_head_merge_bb): Likewise for both locals named "move_upto".
18046 * df-problems.c (can_move_insns_across): Likewise for params
18047 "from", "to", "across_from", "across_to" and locals "insn",
18048 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
18050 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
18051 from rtx to rtx_insn *.
18052 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
18053 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
18054 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
18056 (noce_try_abs): Likewise.
18057 (noce_get_condition): Likewise for param "jump". Strengthen param
18058 "earliest" from rtx * to rtx_insn **.
18059 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
18061 (find_cond_trap): Likewise.
18062 (dead_or_predicable): Likewise for local "earliest".
18063 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
18065 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
18066 and local "prev". Strengthen param "earliest" from rtx * to
18068 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
18069 Strengthen param "earliest" from rtx * to rtx_insn **.
18071 2014-08-26 David Malcolm <dmalcolm@redhat.com>
18073 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
18074 "to" and local "insn" from rtx to rtx_insn *.
18076 2014-08-26 David Malcolm <dmalcolm@redhat.com>
18078 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
18079 from rtx to rtx_insn *.
18080 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
18081 (code_motion_path_driver): Likewise for local "last_insn".
18082 (simplify_changed_insns): Likewise for local "insn".
18084 2014-08-26 David Malcolm <dmalcolm@redhat.com>
18086 * rtl.h (push_to_sequence): Strengthen param from rtx to
18088 (push_to_sequence2): Likewise for both params.
18089 (delete_insns_since): Likewise for param.
18090 (reorder_insns_nobb): Likewise for all three params.
18091 (set_new_first_and_last_insn): Likewise for both params.
18093 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
18094 rtx_insn *. Remove now-redundant cast.
18095 (set_last_insn): Likewise.
18097 * builtins.c (expand_builtin_return): Strengthen local
18098 "call_fusage" from rtx to rtx_insn *.
18099 * cfgrtl.c (create_basic_block_structure): Likewise for local
18101 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
18102 "first", "last" and local "insn".
18103 (delete_insns_since): Likewise for param "from".
18104 (reorder_insns_nobb): Likewise for params "from", "to", "after"
18106 (push_to_sequence): Likewise for param "first" and local "last".
18107 (push_to_sequence2): Likewise for params "first" and "last".
18108 * lra.c (emit_add3_insn): Likewise for local "last".
18109 (lra_emit_add): Likewise.
18110 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
18112 (process_address_1): Likewise for locals "insn", last".
18113 * modulo-sched.c (ps_first_note): Likewise for return type.
18114 * optabs.c (expand_binop_directly): Likewise for param "last".
18116 2014-08-26 David Malcolm <dmalcolm@redhat.com>
18118 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
18120 * emit-rtl.c (get_last_insn_anywhere): Likewise.
18122 2014-08-26 David Malcolm <dmalcolm@redhat.com>
18124 * function.h (struct sequence_stack): Strengthen fields "first"
18125 and "last" from rtx to rtx_insn *.
18126 (struct emit_status): Likewise for fields "x_first_insn" and
18129 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
18130 (set_first_insn): Add checked cast.
18131 (get_last_insn): Remove now-redundant checked cast.
18132 (set_last_insn): Add checked cast.
18134 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
18135 "saved_first" and "saved_last" from rtx to rtx_insn *.
18137 2014-08-26 David Malcolm <dmalcolm@redhat.com>
18139 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
18140 (unlink_insn_chain): Strengthen both params from rtx to
18143 * cfgrtl.c (cfg_layout_function_header): Likewise for this
18145 (unlink_insn_chain): Likewise for params "first" and "last".
18146 Remove now-redundant checked cast.
18147 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
18148 (fixup_reorder_chain): Strengthen local "insn" from rtx to
18150 * emit-rtl.c (link_insn_into_chain): Likewise for all three
18152 (add_insn): Likewise for param "insn" and local "prev".
18153 (add_insn_after_nobb): Likewise for both params and local "next".
18154 (add_insn_before_nobb): Likewise for both params and local "prev".
18155 (add_insn_after): Rename param "after" to "uncast_after",
18156 introducing local "after" with another checked cast.
18157 (add_insn_before): Rename params "insn" and "before", giving them
18158 "uncast_" prefixes, adding the old names back using checked casts.
18159 (emit_note_after): Likewise for param "after".
18160 (emit_note_before): Likewise for param "before".
18161 (emit_label): Add a checked cast.
18163 2014-08-26 David Malcolm <dmalcolm@redhat.com>
18165 * cselib.h (cselib_record_sets_hook): Strengthen initial param
18166 "insn" from rtx to rtx_insn *.
18168 * cselib.c (cselib_record_sets_hook): Likewise.
18170 * var-tracking.c (add_with_sets): Likewise, renaming back from
18171 "uncast_insn" to "insn" and eliminating the checked cast from rtx
18174 2014-08-26 David Malcolm <dmalcolm@redhat.com>
18176 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
18177 and "header_" from rtx to rtx_insn *.
18178 (struct basic_block_d): Likewise for field "head_" within "x"
18179 field of union basic_block_il_dependent.
18180 (BB_HEAD): Drop function...
18181 (SET_BB_HEAD): ...and this function in favor of...
18182 (BB_HEAD): ...reinstate macro.
18183 (BB_END): Drop function...
18184 (SET_BB_END): ...and this function in favor of...
18185 (BB_END): ...reinstate macro.
18186 (BB_HEADER): Drop function...
18187 (SET_BB_HEADER): ...and this function in favor of...
18188 (BB_HEADER): ...reinstate macro.
18190 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
18191 (fix_crossing_unconditional_branches): Likewise.
18192 * caller-save.c (save_call_clobbered_regs): Likewise.
18193 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
18194 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
18195 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
18196 (merge_blocks_move_successor_nojumps): Likewise.
18197 (outgoing_edges_match): Update use of for_each_rtx to
18198 for_each_rtx_in_insn.
18199 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
18200 (expand_gimple_cond): Likewise.
18201 (expand_gimple_tailcall): Likewise.
18202 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
18204 (construct_exit_block): Drop use of SET_BB_END.
18205 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
18207 (delete_insn): Rename param "insn" to "uncast_insn", introducing
18208 a new local "insn" with a checked cast to rtx_insn *. Drop use of
18209 SET_BB_HEAD and SET_BB_END.
18210 (create_basic_block_structure): Drop use of SET_BB_HEAD and
18212 (rtl_delete_block): Drop use of SET_BB_HEAD.
18213 (rtl_split_block): Drop use of SET_BB_END.
18214 (emit_nop_for_unique_locus_between): Likewise.
18215 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
18216 (block_label): Drop use of SET_BB_HEAD.
18217 (fixup_abnormal_edges): Drop use of SET_BB_END.
18218 (record_effective_endpoints): Drop use of SET_BB_HEADER.
18219 (relink_block_chain): Likewise.
18220 (fixup_reorder_chain): Drop use of SET_BB_END.
18221 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
18222 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
18223 rtx_insn **. Drop use of SET_BB_HEADER.
18224 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
18226 (BB_HEAD): Delete this function.
18227 (SET_BB_HEAD): Likewise.
18228 (BB_END): Likewise.
18229 (SET_BB_END): Likewise.
18230 (BB_HEADER): Likewise.
18231 (SET_BB_HEADER): Likewise.
18232 * emit-rtl.c (add_insn_after): Rename param "insn" to
18233 "uncast_insn", adding a new local "insn" and a checked cast to
18234 rtx_insn *. Drop use of SET_BB_END.
18235 (remove_insn): Strengthen locals "next" and "prev" from rtx to
18236 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
18237 (reorder_insns): Drop use of SET_BB_END.
18238 (emit_insn_after_1): Strengthen param "first" and locals "last",
18239 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
18240 (emit_pattern_after_noloc): Add checked cast.
18241 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
18242 (restore_other_notes): Likewise.
18243 (move_insn): Likewise.
18244 (sched_extend_bb): Likewise.
18245 (fix_jump_move): Likewise.
18246 * ifcvt.c (noce_process_if_block): Likewise.
18247 (dead_or_predicable): Likewise.
18248 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
18249 * reg-stack.c (change_stack): Drop use of SET_BB_END.
18250 * sel-sched-ir.c (sel_move_insn): Likewise.
18251 * sel-sched.c (move_nop_to_previous_block): Likewise.
18253 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
18255 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
18257 2014-08-26 David Malcolm <dmalcolm@redhat.com>
18259 * basic-block.h (create_basic_block_structure): Strengthen params
18260 1 "head" and 2 "end" from rtx to rtx_insn *.
18261 * cfgrtl.c (create_basic_block_structure): Likewise.
18262 (rtl_create_basic_block): Update casts from void * to rtx to
18263 rtx_insn *, so that we can pass them as rtx_insn * to
18264 create_basic_block_structure.
18265 * sel-sched-ir.c (sel_create_basic_block): Likewise.
18267 2014-08-26 David Malcolm <dmalcolm@redhat.com>
18269 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
18271 (check_for_inc_dec): Strengthen param "insn" from rtx to
18274 * cselib.h (cselib_process_insn): Likewise.
18276 * cselib.c (cselib_record_sets): Likewise.
18277 (cselib_process_insn): Likewise.
18279 * dse.c (struct insn_info): Likewise for field "insn".
18280 (check_for_inc_dec_1): Likewise for local "insn".
18281 (check_for_inc_dec): Likewise for param "insn".
18282 (scan_insn): Likewise.
18283 (dse_step1): Likewise for local "insn".
18285 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
18286 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
18288 2014-08-26 David Malcolm <dmalcolm@redhat.com>
18290 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
18291 from rtx to rtx_insn *.
18292 (DEP_PRO): Delete this function and...
18293 (SET_DEP_PRO): ...this function in favor of...
18294 (DEP_PRO): ...reinstate this macro.
18295 (DEP_CON): Delete this function and...
18296 (SET_DEP_CON): ...this function in favor of...
18297 (DEP_CON): ...reinstate this old macro.
18298 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
18299 (init_dep): Likewise.
18300 (set_priorities): Likewise for both params.
18301 (sd_copy_back_deps): Likewise for params 1 and 2.
18303 * haifa-sched.c (priority): Likewise for param "insn" and local
18305 (set_priorities): Likewise for params "head" and "tail" and local
18307 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
18309 (add_to_speculative_block): Add a checked cast.
18310 (create_check_block_twin): Drop use of SET_DEP_CON.
18311 (add_jump_dependencies): Strengthen params "insn" and "jump" from
18314 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
18315 Drop use of SET_DEP_PRO
18316 (init_dep): Strengthen params "pro" and "con" from rtx to
18318 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
18319 use of SET_DEP_CON.
18322 (SET_DEP_PRO): Delete.
18323 (SET_DEP_CON): Delete.
18325 2014-08-26 David Malcolm <dmalcolm@redhat.com>
18327 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
18328 from rtx to rtx_insn *.
18329 (VINSN_INSN_RTX): Eliminate rvalue function and...
18330 (SET_VINSN_INSN): ...lvalue function in favor of...
18331 (VINSN_INSN_RTX): reinstate this old macro.
18333 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
18334 in favor of VINSN_INSN_RTX.
18335 (VINSN_INSN_RTX): Delete this function.
18336 (SET_VINSN_INSN_RTX): Likewise.
18338 2014-08-26 David Malcolm <dmalcolm@redhat.com>
18340 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
18341 (BND_TO): Delete this function and...
18342 (SET_BND_TO): ...this functions in favor of...
18343 (BND_TO): ...reinstating this macro.
18344 (struct _fence): Strengthen field "executing_insns" from
18345 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
18346 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
18347 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
18348 and param "insn" from rtx to insn_t.
18349 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
18352 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
18354 (rtx_vec_t): Likewise.
18355 (struct sched_deps_info_def): Strengthen param of "start_insn"
18356 callback from rtx to rtx_insn *. Likewise for param "insn2" of
18357 "note_mem_dep" callback and first param of "note_dep" callback.
18359 * haifa-sched.c (add_to_speculative_block): Strengthen param
18360 "insn" from rtx to rtx_insn *.
18361 (clear_priorities): Likewise.
18362 (calc_priorities): Likewise for local "insn".
18364 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
18365 Remove redundant checked cast.
18366 (haifa_note_mem_dep): Likewise for param "pending_insn".
18367 (haifa_note_dep): Likewise for param "elem".
18368 (note_mem_dep): Likewise for param "e".
18369 (sched_analyze_1): Add checked casts.
18370 (sched_analyze_2): Likewise.
18372 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
18373 from rtx to rtx_insn *.
18374 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
18375 from vec<rtx> * to vec<rtx_insn *> *.
18377 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
18379 (flist_add): Strengthen param "executing_insns" from
18380 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
18381 (advance_deps_context): Remove now-redundant checked cast.
18382 (init_fences): Replace uses of NULL_RTX with NULL.
18383 (merge_fences): Strengthen params "last_scheduled_insn" and
18384 "sched_next" from rtx to rtx_insn * and "executing_insns" from
18385 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
18386 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
18387 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
18388 an instruction, rather than doing double-duty as a pattern.
18389 (return_nop_to_pool): Update for change of insn_t.
18390 (deps_init_id): Remove now-redundant checked cast.
18391 (struct sched_scan_info_def): Strengthen param of "init_insn"
18392 callback from rtx to insn_t.
18393 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
18394 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
18396 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
18397 "end" from rtx to rtx_insn *.
18398 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
18399 (rtx insn_rtx, bool force_unique_p)
18400 (BND_TO): Delete function.
18401 (SET_BND_TO): Delete function.
18403 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
18405 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
18406 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
18408 (undo_transformations): Likewise for param "insn".
18409 (update_liveness_on_insn): Likewise.
18410 (compute_live_below_insn): Likewise for param "insn" and local
18412 (update_data_sets): Likewise for param "insn".
18413 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
18414 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
18415 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
18417 (move_cond_jump): Likewise for param "insn".
18418 (move_cond_jump): Drop use of SET_BND_TO.
18419 (compute_av_set_on_boundaries): Likewise.
18420 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
18421 (update_and_record_unavailable_insns): Strengthen local "bb_end"
18422 from rtx to rtx_insn *.
18423 (maybe_emit_renaming_copy): Likewise for param "insn".
18424 (maybe_emit_speculative_check): Likewise.
18425 (handle_emitting_transformations): Likewise.
18426 (remove_insn_from_stream): Likewise.
18427 (code_motion_process_successors): Strengthen local "succ" from rtx
18430 2014-08-26 David Malcolm <dmalcolm@redhat.com>
18432 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
18433 ilist_t, not _xlist_t;
18434 (ILIST_INSN): Define in terms of new union field "insn".
18435 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
18437 (struct _list_node): Add new field "insn" to the union, of type
18439 (ilist_add): Replace macro with an inline function, requiring an
18441 (ilist_remove): Define this macro directly in terms of
18442 _list_remove, rather than indirectly via _xlist_remove.
18443 (ilist_clear): Likewise, in terms of _list_clear rather than
18445 (ilist_is_in_p): Replace macro with an inline function, requiring
18447 (_list_iter_cond_insn): New function.
18448 (ilist_iter_remove): Define this macro directly in terms of
18449 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
18450 (ilist_iterator): Define directly in terms of _list_iterator
18451 rather than indirectly through _xlist_iterator.
18452 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
18453 than in terms of _FOR_EACH_X.
18454 (FOR_EACH_INSN_1): Likewise.
18456 2014-08-26 Joseph Myers <joseph@codesourcery.com>
18460 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
18461 DECL_HARD_REGISTER and return for invalid register specifications.
18462 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
18463 DECL_HARD_REGISTER, call expand_one_error_var.
18464 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
18465 CC_REGNUM with non-MODE_CC modes.
18466 (arm_regno_class): Return NO_REGS for PC_REGNUM.
18468 2014-08-26 Marek Polacek <polacek@redhat.com>
18471 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
18473 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
18475 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
18476 qi cost; add di cost.
18477 (cortexa57_addrcost_table): Likewise.
18479 2014-08-26 Marek Polacek <polacek@redhat.com>
18482 * expr.c (is_aligning_offset): Remove logical not.
18484 2014-08-26 Marek Polacek <polacek@redhat.com>
18487 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
18488 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
18490 2014-08-26 Richard Biener <rguenther@suse.de>
18492 PR tree-optimization/62175
18493 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
18494 expand possibly trapping operations.
18496 2014-08-26 David Malcolm <dmalcolm@redhat.com>
18498 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
18499 "insn" from rtx to rtx_insn *.
18500 (permute_load): Likewise for param "insn".
18501 (permute_store): Likewise.
18502 (handle_special_swappables): Likewise for local "insn".
18503 (replace_swap_with_copy): Likewise for locals "insn" and
18505 (rs6000_analyze_swaps): Likewise for local "insn".
18507 2014-08-25 David Malcolm <dmalcolm@redhat.com>
18509 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
18512 2014-08-25 David Malcolm <dmalcolm@redhat.com>
18514 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
18515 "note_list" from rtx to rtx_insn *.
18516 (BB_NOTE_LIST): Replace this function and...
18517 (SET_BB_NOTE_LIST): ...this function with...
18518 (BB_NOTE_LIST): ...the former macro implementation.
18520 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
18521 local "from_start" from rtx to rtx_insn *. Strengthen param
18522 "to_endp" from rtx * to rtx_insn **.
18524 * haifa-sched.c (concat_note_lists): Likewise.
18525 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
18527 (sel_restore_notes): Likewise.
18528 (move_bb_info): Likewise.
18529 (BB_NOTE_LIST): Delete this function.
18530 (SET_BB_NOTE_LIST): Delete this function.
18531 * sel-sched.c (create_block_for_bookkeeping): Eliminate
18532 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
18534 2014-08-25 David Malcolm <dmalcolm@redhat.com>
18536 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
18537 from rtx * to rtx_insn **.
18538 (reorder2): Likewise.
18539 (dependencies_evaluation_hook): Strengthen params "head", "tail"
18540 from rtx to rtx_insn *.
18542 * doc/tm.texi: Update mechanically for above change to target.def.
18544 * sched-int.h (note_list): Strengthen this variable from rtx to
18546 (remove_notes): Likewise for both params.
18547 (restore_other_notes): Likewise for return type and first param.
18548 (struct ready_list): Strengthen field "vec" from rtx * to
18550 (struct dep_replacement): Strenghten field "insn" from rtx to
18552 (struct deps_desc): Likewise for fields "last_debug_insn",
18554 (struct haifa_sched_info): Likewise for callback field
18555 "can_schedule_ready_p"'s param, for first param of "new_ready"
18556 callback field, for both params of "rank" callback field, for
18557 first field of "print_insn" callback field (with a const), for
18558 both params of "contributes_to_priority" callback, for param
18559 of "insn_finishes_block_p" callback, for fields "prev_head",
18560 "next_tail", "head", "tail", for first param of "add_remove_insn"
18561 callback, for first param of "begin_schedule_ready" callback, for
18562 both params of "begin_move_insn" callback, and for second param
18563 of "advance_target_bb" callback.
18564 (add_dependence): Likewise for params 1 and 2.
18565 (sched_analyze): Likewise for params 2 and 3.
18566 (deps_analyze_insn): Likewise for param 2.
18567 (ready_element): Likewise for return type.
18568 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
18569 (try_ready): Strenghten param from rtx to rtx_insn *.
18570 (sched_emit_insn): Likewise for return type.
18571 (record_delay_slot_pair): Likewise for params 1 and 2.
18572 (add_delay_dependencies): Likewise for param.
18573 (contributes_to_priority): Likewise for both params.
18574 (find_modifiable_mems): Likewise.
18576 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
18577 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
18578 "first_older_only_insn" from rtx to rtx_insn *.
18579 (arm_sched_reorder): Strengthen param "ready" from rtx * to
18582 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
18583 "last_scheduled_iter0" from rtx to rtx_insn *.
18584 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
18585 (c6x_sched_reorder_1): Strengthen param "ready" and locals
18586 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
18587 "insn" from rtx to rtx_insn *.
18588 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
18590 (c6x_sched_reorder2): Strengthen param "ready" and locals
18591 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
18592 "insn" from rtx to rtx_insn *.
18593 (c6x_variable_issue): Add a checked cast when assigning from insn
18594 to ss.last_scheduled_iter0.
18595 (split_delayed_branch): Strengthen param "insn" and local "i1"
18596 from rtx to rtx_insn *.
18597 (split_delayed_nonbranch): Likewise.
18598 (undo_split_delayed_nonbranch): Likewise for local "insn".
18599 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
18600 "entry_after", "end_packet", "head_insn", "tail_insn",
18601 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
18602 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
18603 to rtx_insn **. Remove now-redundant checked cast on last_insn,
18604 but add a checked cast on loop->start_label. Consolidate calls to
18605 avoid assigning result of gen_spkernel to "insn", now an
18608 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
18609 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
18611 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
18612 rtx_insn **. Strengthen locals "top", "next" from rtx to
18614 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
18615 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
18616 (add_parameter_dependencies): Strengthen params "call", "head" and
18617 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
18618 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
18619 (add_dependee_for_func_arg): Likewise for param "arg" and local
18621 (ix86_dependencies_evaluation_hook): Likewise for params "head",
18622 "tail" and locals "insn", "first_arg".
18624 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
18625 for params "head", "tail" and locals "insn", "next", "next_tail".
18626 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
18627 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
18628 "insn", "lowest", "highest" from rtx to rtx_insn *.
18629 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
18631 (ia64_sched_reorder2): Likewise.
18633 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
18634 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
18635 from rtx * to rtx_insn **.
18636 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
18638 (mep_print_sched_insn): Strengthen param "insn" from rtx to
18640 (mep_sched_reorder): Strengthen param "ready" from rtx * to
18641 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
18644 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
18645 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
18647 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
18648 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
18649 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
18651 (vr4130_reorder): Likewise.
18652 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
18654 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
18656 (mips_sched_reorder): Likewise.
18657 (mips_sched_reorder2): Likewise.
18659 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
18661 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
18662 Strengthen local "tmp" from rtx to rtx_insn *.
18663 (rs6000_sched_reorder2): Likewise.
18665 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
18666 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
18667 (s390_sched_reorder): Strengthen param "ready" from rtx * to
18668 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
18670 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
18671 "tmp2" from rtx to rtx_insn *.
18672 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
18673 Strengthen local "insn" from rtx to rtx_insn *.
18674 (ready_reorder): Strengthen param "ready" from rtx * to
18675 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
18676 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
18677 (sh_reorder2): Likewise.
18679 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
18680 local "insn" from rtx to rtx_insn *.
18682 * haifa-sched.c (note_list): Strengthen this variable from rtx to
18684 (scheduled_insns): Strengthen this variable from vec<rtx> to
18686 (set_modulo_params): Likewise for locals "i1", "i2".
18687 (record_delay_slot_pair): Likewise for params "i1", "i2".
18688 (add_delay_dependencies): Likewise for param "insn".
18689 (cond_clobbered_p): Likewise.
18690 (recompute_todo_spec): Likewise for local "prev".
18691 (last_scheduled_insn): Likewise for this variable.
18692 (nonscheduled_insns_begin): Likewise.
18693 (model_set_excess_costs): Strengthen param "insns" from rtx * to
18695 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
18697 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
18698 Strengthen local "insn" from rtx to rtx_insn *.
18699 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
18700 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
18701 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
18702 (ready_remove_first): Likewise for return type and local "t".
18703 (ready_element): Likewise for return type.
18704 (ready_remove): Likewise for return type and local "t".
18705 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
18706 (check_clobbered_conditions): Strengthen local "x" from rtx to
18707 rtx_insn *, adding a checked cast.
18708 (schedule_insn): Likewise for param "insn".
18709 (remove_notes): Likewise for params "head", "tail" and locals
18710 "next_tail", "insn", "next".
18711 (struct haifa_saved_data): Likewise for fields
18712 "last_scheduled_insn", "nonscheduled_insns_begin".
18713 (save_backtrack_point): Update for change to field "vec" of
18715 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
18717 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
18718 from rtx to rtx_insn *
18719 (resolve_dependencies): Strengthen param "insn" from rtx to
18721 (restore_other_notes): Likewise for return type, for param "head"
18722 and local "note_head".
18723 (undo_all_replacements): Likewise for local "insn".
18724 (first_nonscheduled_insn): Likewise for return type and local "insn".
18725 (queue_to_ready): Likewise for local "insn", adding checked casts.
18726 (early_queue_to_ready): Likewise for local "insn".
18727 (debug_ready_list_1): Strengthen local "p" from rtx * to
18729 (move_insn): Strengthen param "insn" and local "note" from rtx to
18731 (insn_finishes_cycle_p): Likewise for param "insn".
18732 (max_issue): Likewise for local "insn".
18733 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
18735 (commit_schedule): Strengthen param "prev_head" and local "insn"
18736 from rtx to rtx_insn *
18737 (prune_ready_list): Likewise for local "insn".
18738 (schedule_block): Likewise for locals "prev_head", "head", "tail",
18739 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
18740 (set_priorities): Likewise for local "prev_head".
18741 (try_ready): Likewise for param "next".
18742 (fix_tick_ready): Likewise.
18743 (change_queue_index): Likewise.
18744 (sched_extend_ready_list): Update for change to field "vec" of
18746 (generate_recovery_code): Strengthen param "insn" from rtx to
18748 (begin_speculative_block): Likewise.
18749 (create_check_block_twin): Likewise for param "insn" and locals
18750 "label", "check", "twin". Introduce local "check_pat" to avoid
18751 "check" being used as a plain rtx before being used as an insn.
18752 (fix_recovery_deps): Add a checked cast to rtx_insn * when
18753 extracting elements from ready_list.
18754 (sched_remove_insn): Strengthen param "insn" from rtx to
18756 (sched_emit_insn): Likewise for return type.
18757 (ready_remove_first_dispatch): Likewise for return type and local
18760 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
18762 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
18765 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
18766 from rtx to rtx_insn *.
18767 (add_dependence_list): Likewise for param "insn". Add a checked
18769 (add_dependence_list_and_free): Strengthen param "insn" from rtx
18770 to rtx_insn *. Strengthen param "list_p" from rtx * to
18772 (chain_to_prev_insn): Strengthen param "insn" and locals
18773 "prec_nonnote", "i" from rtx to rtx_insn *.
18774 (flush_pending_lists): Likewise for param "insn".
18775 (cur_insn): Likewise for this variable.
18776 (haifa_start_insn): Add a checked cast.
18777 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
18778 (sched_analyze_reg): Likewise for param "insn".
18779 (sched_analyze_1): Likewise.
18780 (sched_analyze_2): Likewise. Add checked casts.
18781 (sched_analyze_insn): Likewise. Also for local "prev".
18782 (deps_analyze_insn): Likewise for param "insn".
18783 (sched_analyze): Likewise for params "head", "tail" and local "insn".
18784 (add_dependence_1): Likewise for params "insn", "elem".
18785 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
18786 (parse_add_or_inc): Likewise for param "insn".
18787 (find_inc): Likewise for local "inc_cand".
18788 (find_modifiable_mems): Likewise for params "head", "tail" and
18789 locals "insn", "next_tail".
18791 * sched-ebb.c (init_ready_list): Likewise for local "insn".
18792 (begin_schedule_ready): Likewise for param "insn".
18793 (begin_move_insn): Likewise for params "insn" and "last".
18794 (ebb_print_insn): Strengthen param "insn" from const_rtx to
18796 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
18797 (ebb_contributes_to_priority): Likewise for params "next", "insn".
18798 (ebb_add_remove_insn): Likewise for param "insn".
18799 (advance_target_bb): Likewise.
18801 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
18803 (check_live): Likewise for param "insn".
18804 (init_ready_list): Likewise for local "insn".
18805 (can_schedule_ready_p): Likewise for param "insn".
18806 (begin_schedule_ready): Likewise.
18807 (new_ready): Likewise for param "next".
18808 (rgn_print_insn): Likewise for param "insn".
18809 (rgn_rank): Likewise for params "insn1", "insn2".
18810 (contributes_to_priority): Likewise for params "next", "insn".
18811 (rgn_insn_finishes_block_p): Likewise for param "insn".
18812 (add_branch_dependences): Likewise for params "head", "tail" and
18813 locals "insn", "last".
18814 (rgn_add_remove_insn): Likewise for param "insn".
18815 (advance_target_bb): Likewise.
18817 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
18818 const_rtx to const rtx_insn *.
18820 * sel-sched-dump.h (sel_print_insn): Likewise.
18822 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
18823 (deps_init_id): Likewise.
18825 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
18826 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
18829 2014-08-25 David Malcolm <dmalcolm@redhat.com>
18831 * output.h (final_start_function): Strengthen param 1 from rtx to
18834 * final.c (final_start_function): Likewise, renaming back from
18835 "uncast_first" to "first", and dropping the checked cast from rtx
18838 2014-08-25 David Malcolm <dmalcolm@redhat.com>
18840 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
18841 * final.c (final): Likewise. Rename param back from
18842 "uncast_first" to "first" and eliminate the checked cast from rtx
18845 2014-08-25 David Malcolm <dmalcolm@redhat.com>
18847 * output.h (shorten_branches): Strengthen param from rtx to
18850 * final.c (shorten_branches): Likewise, renaming param back from
18851 "uncast_first" to "first", and dropping the checked cast from rtx
18854 * genattr.c (gen_attr): Likewise when writing out the prototype of
18857 2014-08-25 David Malcolm <dmalcolm@redhat.com>
18859 * sched-int.h (struct haifa_sched_info): Strengthen fields
18860 "prev_head" and "next_tail" from rtx to rtx_insn *.
18862 2014-08-25 David Malcolm <dmalcolm@redhat.com>
18864 * rtl.h (rtx_jump_table_data::get_labels): New method.
18865 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
18866 with use of the new rtx_jump_table_data::get_labels method.
18867 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
18868 to rtx_jump_table_data *. Simplify by using get_labels method.
18869 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
18870 a dyn_cast, introducing local "table", using it to replace
18871 label-lookup logic with a get_labels method call.
18872 (patch_jump_insn): Simplify using get_labels method.
18873 * dwarf2cfi.c (create_trace_edges): Likewise.
18874 * rtlanal.c (label_is_jump_target_p): Likewise.
18876 2014-08-25 David Malcolm <dmalcolm@redhat.com>
18878 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
18881 * emit-rtl.c (unshare_all_rtl_1): Likewise.
18882 (unshare_all_rtl_again): Likewise, also for local "p".
18884 2014-08-25 David Malcolm <dmalcolm@redhat.com>
18886 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
18888 * cfgrtl.c (delete_insn_and_edges): Likewise.
18890 2014-08-25 David Malcolm <dmalcolm@redhat.com>
18892 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
18893 from rtx to rtx_insn *.
18895 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
18897 2014-08-25 David Malcolm <dmalcolm@redhat.com>
18899 * function.c (thread_prologue_and_epilogue_insns): Likewise for
18900 locals "returnjump", "epilogue_end", "insn", "next".
18902 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
18903 "returnjump" from rtx * to rtx_insn **.
18904 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
18906 2014-08-25 David Malcolm <dmalcolm@redhat.com>
18908 * basic-block.h (struct edge_def). Strengthen "r" within
18909 union edge_def_insns from rtx to rtx_insn *.
18911 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
18912 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
18914 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
18915 from rtx to rtx_insn *.
18916 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
18918 * postreload-gcse.c (reg_killed_on_edge): Likewise.
18919 (reg_used_on_edge): Likewise.
18920 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
18921 (gt_pch_nx): New overload for rtx_insn *&.
18922 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
18923 from rtx to rtx_insn *.
18925 2014-08-25 David Malcolm <dmalcolm@redhat.com>
18927 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
18928 from rtx to rtx_insn *.
18929 (BB_FOOTER): Replace function with access macro.
18930 (SET_BB_FOOTER): Delete.
18932 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
18934 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
18935 (emit_barrier_after_bb): Likewise.
18936 (record_effective_endpoints): Likewise.
18937 (relink_block_chain): Likewise.
18938 (fixup_fallthru_exit_predecessor): Likewise.
18939 (cfg_layout_duplicate_bb): Likewise.
18940 (cfg_layout_split_block): Likewise.
18941 (cfg_layout_delete_block): Likewise.
18942 (cfg_layout_merge_blocks): Likewise.
18943 (BB_FOOTER): Delete function.
18944 (SET_BB_FOOTER): Delete function.
18945 * combine.c (update_cfg_for_uncondjump): Replace uses of
18946 SET_BB_FOOTER with BB_FOOTER.
18948 2014-08-25 David Malcolm <dmalcolm@redhat.com>
18950 * except.h (struct eh_landing_pad_d): Strengthen field
18951 "landing_pad" from rtx to rtx_code_label *.
18953 * except.c (sjlj_emit_dispatch_table): Likewise for param
18955 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
18957 2014-08-25 David Malcolm <dmalcolm@redhat.com>
18959 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
18960 first param from rtx to rtx_insn *.
18961 * config/xtensa/xtensa.c (struct machine_function): Likewise for
18962 field "set_frame_ptr_insn".
18963 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
18964 "csend" from rtx to rtx_code_label *.
18965 (xtensa_expand_atomic): Likewise for local "csloop".
18966 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
18968 (xtensa_call_tls_desc): Likewise for return type and locals
18969 "call_insn", "insns".
18970 (xtensa_legitimize_tls_address): Likewise for local "insns".
18971 (xtensa_expand_prologue): Likewise for locals "insn", "first".
18973 2014-08-25 David Malcolm <dmalcolm@redhat.com>
18975 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
18976 first param from rtx to rtx_insn *.
18977 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
18980 2014-08-25 David Malcolm <dmalcolm@redhat.com>
18982 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
18983 Strengthen param 1 from rtx to rtx_insn *.
18984 (tilepro_output_cbranch): Likewise.
18985 (tilepro_adjust_insn_length): Likewise.
18986 (tilepro_final_prescan_insn): Likewise for sole param.
18988 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
18989 Likewise for local "last".
18990 (cbranch_predicted_p): Likewise for param "insn".
18991 (tilepro_output_simple_cbranch_with_opcode): Likewise.
18992 (tilepro_output_cbranch_with_opcode): Likewise.
18993 (tilepro_output_cbranch): Likewise.
18994 (frame_emit_load): Likewise for return type and locals "seq",
18996 (emit_sp_adjust): Likewise for return type and local "insn".
18997 (tilepro_expand_epilogue): Likewise for locals "last_insn",
18999 (tilepro_adjust_insn_length): Likewise for param "insn".
19000 (next_insn_to_bundle): Likewise for return type and params
19002 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
19003 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
19005 (match_addli_pcrel): Likewise for param "insn".
19006 (replace_addli_pcrel): Likewise.
19007 (match_auli_pcrel): Likewise.
19008 (replace_auli_pcrel): Likewise.
19009 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
19011 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
19012 "queue", "next_queue", "prev".
19013 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
19014 (tilepro_final_prescan_insn): Likewise for param "insn".
19016 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19018 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
19019 Strengthen param 1 from rtx to rtx_insn *.
19020 (tilegx_output_cbranch): Likewise.
19021 (tilegx_adjust_insn_length): Likewise.
19022 (tilegx_final_prescan_insn): Likewise for sole param.
19024 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
19026 (cbranch_predicted_p): Likewise for param "insn".
19027 (tilegx_output_simple_cbranch_with_opcode): Likewise.
19028 (tilegx_output_cbranch_with_opcode): Likewise.
19029 (tilegx_output_cbranch): Likewise.
19030 (frame_emit_load): Likewise for return type.
19031 (set_frame_related_p): Likewise for locals "seq", "insn".
19032 (emit_sp_adjust): Likewise for return type, and for local "insn".
19033 Introduce local "pat" for use in place of "insn" where the latter
19034 isn't an instruction.
19035 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
19036 from rtx to rtx_insn *.
19037 (tilegx_adjust_insn_length): Likewise for param "insn".
19038 (next_insn_to_bundle): Likewise for return type and params "r" and
19040 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
19042 (replace_insns): Likewise for params "old_insn", "new_insns".
19043 (replace_mov_pcrel_step1): Likewise for param "insn" and local
19045 (replace_mov_pcrel_step2): Likewise.
19046 (replace_mov_pcrel_step3): Likewise.
19047 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
19049 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
19050 "queue", "next_queue", "prev".
19051 (tilegx_output_mi_thunk): Likewise for local "insn".
19052 (tilegx_final_prescan_insn): Likewise for param "insn".
19054 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19056 * config/spu/spu.c (frame_emit_store): Strengthen return type from
19058 (frame_emit_load): Likewise.
19059 (frame_emit_add_imm): Likewise, also for local "insn".
19060 (spu_expand_prologue): Likewise for local "insn".
19061 (struct spu_bb_info): Likewise for field "prop_jump".
19062 (emit_nop_for_insn): Likewise for param "insn" and local
19064 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
19066 (spu_emit_branch_hint): Likewise for params "before", "branch" and
19067 locals "hint", "insn".
19068 (get_branch_target): Likewise for param "branch".
19069 (insn_clobbers_hbr): Likewise for param "insn".
19070 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
19071 locals "insn", "before_4", "before_16".
19072 (insert_hbrp): Likewise for local "insn".
19073 (spu_machine_dependent_reorg): Likewise for locals "branch",
19074 "insn", "next", "bbend".
19075 (uses_ls_unit): Likewise for param "insn".
19076 (get_pipe): Likewise.
19077 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
19078 introducing a checked cast.
19079 (spu_sched_adjust_cost): Likewise for params "insn" and
19081 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
19082 (spu_sms_res_mii): Likewise.
19084 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19086 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
19087 from rtx to rtx_insn *.
19088 (output_cbranch): Likewise for param 6.
19089 (output_return): Likewise for param 1.
19090 (output_sibcall): Likewise.
19091 (output_v8plus_shift): Likewise.
19092 (output_v8plus_mult): Likewise.
19093 (output_v9branch): Likewise for param 7.
19094 (output_cbcond): Likewise for param 3.
19096 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
19098 (sparc_legitimize_pic_address): Likewise.
19099 (sparc_emit_call_insn): Likewise.
19100 (emit_save_or_restore_regs): Likewise.
19101 (emit_window_save): Likewise for return type and local "insn".
19102 (sparc_expand_prologue): Likewise for local "insn".
19103 (sparc_flat_expand_prologue): Likewise.
19104 (output_return): Likewise for param "insn".
19105 (output_sibcall): Likewise for param "insn" and local "delay".
19106 (output_ubranch): Likewise for param "insn".
19107 (output_cbranch): Likewise.
19108 (output_cbcond): Likewise.
19109 (output_v9branch): Likewise.
19110 (output_v8plus_shift): Likewise.
19111 (sparc_output_mi_thunk): Likewise for local "insn".
19112 (get_some_local_dynamic_name): Likewise.
19113 (output_v8plus_mult): Likewise for param "insn".
19115 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19117 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
19118 from rtx to rtx_insn *.
19119 (output_branchy_insn): Likewise for param 3.
19120 (output_far_jump): Likewise for param 1.
19121 (final_prescan_insn): Likewise.
19122 (sh_insn_length_adjustment): Likewise for sole param.
19124 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
19125 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
19127 (sh_emit_compare_and_set): Likewise for local "lab".
19128 (output_far_jump): Strengthen param "insn" and local "prev" from
19130 (output_branchy_insn): Likewise for param "insn" and local
19132 (output_ieee_ccmpeq): Likewise for param "insn".
19133 (struct label_ref_list_d): Strengthen field "label" from rtx to
19135 (pool_node): Likewise.
19136 (pool_window_label): Likewise for this global.
19137 (add_constant): Likewise for return type and locals "lab", "new_rtx".
19138 (dump_table): Strengthen params "start", "barrier" and local
19139 "scan" from rtx to rtx_insn *.
19140 (broken_move): Likewise for param "insn".
19141 (untangle_mova): Likewise for params "first_mova" and "new_mova".
19142 Strengthen param "first_mova" from rtx * to rtx_insn **.
19143 (mova_p): Likewise for param "insn".
19144 (fixup_mova): Likewise for param "mova".
19145 (find_barrier): Likewise for return type, params "mova" and
19146 "from", and locals "barrier_before_mova", "found_barrier",
19147 "good_barrier", "orig", "last_symoff", "next". Strengthen local
19148 "label" from rtx to rtx_code_label *.
19149 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
19151 (sh_reorg): Likewise for locals "link", "scan", "barrier".
19152 (split_branches): Likewise for param "first" and local "insn".
19153 (final_prescan_insn): Likewise for param "insn".
19154 (sequence_insn_p): Likewise for locals "prev", "next".
19155 (sh_insn_length_adjustment): Likewise for param "insn".
19156 (sh_can_redirect_branch): Likewise for local "insn".
19157 (find_r0_life_regions): Likewise for locals "end", "insn".
19158 (sh_output_mi_thunk): Likewise for local "insns".
19160 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19162 * config/score/score.c (score_output_mi_thunk): Strengthen local
19163 "insn" from rtx to rtx_insn *.
19164 (score_prologue): Likewise.
19166 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19168 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
19169 1 from rtx to rtx_insn *.
19170 (s390_emit_jump): Likewise for return type.
19171 (s390_emit_call): Likewise.
19172 (s390_load_got): Likewise.
19174 * config/s390/s390.c (last_scheduled_insn): Likewise for this
19176 (s390_match_ccmode): Likewise for param "insn".
19177 (s390_emit_jump): Likewise for return type.
19178 (s390_split_branches): Likewise for local "label".
19179 (struct constant): Strengthen field "label" from rtx to
19181 (struct constant_pool): Likewise for field "label". Strengthen
19182 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
19184 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
19186 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
19187 (s390_end_pool): Likewise.
19188 (s390_dump_pool): Likewise for local "insn".
19189 (s390_mainpool_start): Likewise.
19190 (s390_chunkify_start): Likewise.
19191 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
19192 with insns. Strengthen locals "label", "jump", "barrier", "next",
19193 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
19194 (s390_chunkify_finish): Strengthen local "insn" from rtx to
19196 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
19197 "jump", "label", "next_insn".
19198 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
19199 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
19201 (s390_load_got): Likewise for return type and local "insns".
19202 (s390_save_gprs_to_fprs): Likewise for local "insn".
19203 (s390_restore_gprs_from_fprs): Likewise.
19204 (pass_s390_early_mach::execute): Likewise.
19205 (s390_emit_prologue): Likewise for local "insns".
19206 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
19208 (s390_emit_call): Strengthen return type and local "insn" from
19210 (s390_emit_tpf_eh_return): Likewise for local "insn".
19211 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
19212 "next_insn", introducing locals "s_pat", "rpat" to allow this.
19213 (s390_fix_long_loop_prediction): Likewise for param "insn" and
19215 (s390_non_addr_reg_read_p): Likewise for param "insn".
19216 (find_cond_jump): Likewise for return type and param "insn".
19217 (s390_swap_cmp): Likewise for param "insn".
19218 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
19219 "prev_insn", "next_insn".
19220 (s390_reorg): Likewise for locals "insn", "target".
19221 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
19222 (s390_sched_variable_issue): For now, rename param "insn" to
19223 "uncast_insn", introducing a checked cast.
19224 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
19226 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
19227 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
19229 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19231 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
19232 param from rtx to rtx_insn *.
19233 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
19235 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19237 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
19238 4 from rtx to rtx_insn *.
19239 (rs6000_final_prescan_insn): Likewise for first param.
19240 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
19242 (rs6000_get_some_local_dynamic_name): Likewise.
19243 (output_cbranch): Likewise for param "insn".
19244 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
19245 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
19246 (rs6000_emit_allocate_stack): Likewise for local "insn".
19247 (load_cr_save): Likewise.
19248 (restore_saved_cr): Likewise.
19249 (restore_saved_lr): Likewise.
19250 (emit_cfa_restores): Likewise.
19251 (rs6000_output_function_epilogue): Likewise for locals "insn" and
19252 "deleted_debug_label".
19253 (rs6000_output_mi_thunk): Likewise for local "insn".
19254 (rs6000_final_prescan_insn): Likewise for param "insn".
19256 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19258 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
19259 Strengthen param "insn" from rtx to rtx_insn *.
19260 * config/picochip/picochip.c (picochip_current_prescan_insn):
19261 Likewise for this variable.
19262 (picochip_final_prescan_insn): Likewise for param "insn".
19264 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19266 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
19267 from rtx to rtx_insn *.
19268 (pa_output_indirect_call): Likewise.
19269 (pa_adjust_insn_length): Likewise.
19270 (pa_attr_length_millicode_call): Likewise.
19271 (pa_attr_length_call): Likewise.
19272 (pa_attr_length_indirect_call): Likewise.
19274 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
19276 (pa_attr_length_millicode_call): Likewise.
19277 (pa_attr_length_call): Likewise.
19278 (pa_output_call): Likewise.
19279 (pa_attr_length_indirect_call): Likewise.
19280 (pa_output_indirect_call): Likewise.
19282 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19284 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
19285 Strengthen first param from rtx to rtx_insn *.
19286 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
19289 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19291 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
19292 type from rtx to rtx_insn *.
19293 (mips_expand_call): Likewise.
19294 (mips_adjust_insn_length): Likewise for first param.
19295 (mips_output_conditional_branch): Likewise.
19296 (mips_output_order_conditional_branch): Likewise.
19297 (mips_final_prescan_insn): Likewise.
19299 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
19300 rtx_insn * for the SEQUENCE case.
19301 (SEQ_END): Likewise.
19302 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
19303 (mips_emit_call_insn): Likewise, also for local "insn".
19304 (mips16_gp_pseudo_reg): Likewise for local "scan".
19305 (mips16_build_call_stub): Likewise for return type and for local
19306 "insn". Introduce a new local "pattern" so that "insn" can indeed
19308 (mips_expand_call): Strengthen return type and local "insn" from
19310 (mips_block_move_loop): Strengthen local "label" from rtx to
19312 (mips_expand_synci_loop): Likewise for locals "label",
19314 (mips_set_frame_expr): Strengthen local "insn" from rtx to
19316 (mips16e_collect_argument_saves): Likewise for locals "insn",
19318 (mips_find_gp_ref): Likewise for param of callback for "pred"
19319 param, and for local "insn".
19320 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
19321 (mips_insn_has_flexible_gp_ref_p): Likewise.
19322 (mips_epilogue_emit_cfa_restores): Likewise for return type and
19324 (mips_epilogue_set_cfa): Likewise for local "insn".
19325 (mips_expand_epilogue): Likewise.
19326 (mips_adjust_insn_length): Likewise for param "insn".
19327 (mips_output_conditional_branch): Likewise.
19328 (mips_output_order_conditional_branch): Likewise.
19329 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
19330 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
19331 "falu2_turn_enabled_insn".
19332 (mips_builtin_branch_and_move): Strengthen locals "true_label",
19333 "done_label" from rtx to rtx_code_label *.
19334 (struct mips16_constant): Likewise for field "label".
19335 (mips16_add_constant): Likewise for return type.
19336 (mips16_emit_constants_1): Strengthen return type and param "insn"
19337 from rtx to rtx_insn *.
19338 (mips16_emit_constants): Likewise for param "insn".
19339 (mips16_insn_length): Likewise.
19340 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
19341 to rtx_code_label *.
19342 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
19343 from rtx to rtx_insn *.
19344 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
19345 "jump". Strengthen local "label" from rtx to rtx_code_label *.
19346 (r10k_simplify_address): Strengthen param "insn" and local
19347 "def_insn" from rtx to rtx_insn *.
19348 (r10k_safe_address_p): Strengthen param "insn" from rtx to
19350 (r10k_needs_protection_p_1): Update target type of cast of data
19351 from to rtx to rtx_insn *.
19352 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
19353 rtx * to rtx_insn **.
19354 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
19356 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
19357 (mips_call_expr_from_insn): Likewise for param "insn".
19358 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
19359 (mips_find_pic_call_symbol): Likewise for param "insn".
19360 (mips_annotate_pic_calls): Likewise for local "insn".
19361 (mips_sim_insn): Likewise for this variable.
19362 (struct mips_sim): Likewise for field "insn" within elements of
19364 (mips_sim_wait_reg): Likewise for param "insn".
19365 (mips_sim_wait_regs): Likewise.
19366 (mips_sim_wait_units): Likewise.
19367 (mips_sim_wait_insn): Likewise.
19368 (mips_sim_issue_insn): Likewise.
19369 (mips_sim_finish_insn): Likewise.
19370 (mips_seq_time): Likewise for param "seq" and local "insn".
19371 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
19372 locals "first", "second".
19373 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
19374 "last", "last2", "next".
19375 (mips_avoid_hazard): Likewise for params "after", "insn".
19376 (mips_reorg_process_insns): Likewise for locals "insn",
19377 "last_insn", "subinsn", "next_insn".
19378 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
19379 (mips16_split_long_branches): Likewise for locals "insn" "jump",
19381 (mips_output_mi_thunk): Likewise for local "insn".
19382 (mips_final_prescan_insn): Likewise for param "insn".
19384 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19386 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
19387 Strengthen return type and local "insns" from rtx to rtx_insn *.
19388 (microblaze_legitimize_tls_address): Likewise for local "insns".
19389 (microblaze_block_move_loop): Strengthen local "label" from rtx
19390 to rtx_code_label *.
19391 (microblaze_expand_prologue): Strengthen two locals named "insn"
19392 from rtx to rtx_insn *.
19393 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
19394 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
19395 "insn". Strengthen locals "div_label", "div_end_label" from rtx
19396 to rtx_code_label *.
19398 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19400 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
19401 param from rtx to rtx_insn *.
19402 (mep_reuse_lo): Likewise for third param.
19403 (mep_use_post_modify_p): Likewise for first param.
19404 (mep_core_address_length): Likewise.
19405 (mep_cop_address_length): Likewise.
19406 (mep_final_prescan_insn): Likewise.
19407 (mep_store_data_bypass_p): Likewise for both params.
19408 (mep_mul_hilo_bypass_p): Likewise.
19409 (mep_ipipe_ldc_p): Likewise for param.
19411 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
19412 (mep_rewrite_mult): Likewise.
19413 (mep_rewrite_mulsi3): Likewise.
19414 (mep_rewrite_maddsi3): Likewise.
19415 (mep_reuse_lo_p_1): Likewise.
19416 (mep_reuse_lo_p): Likewise.
19417 (mep_frame_expr): Likewise.
19418 (mep_make_parallel): Likewise for both params.
19419 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
19421 (mep_use_post_modify_p): Likewise for param "insn".
19422 (mep_core_address_length): Likewise.
19423 (mep_cop_address_length): Likewise.
19424 (mep_reg_set_in_function): Likewise for local "insn".
19425 (mep_asm_without_operands_p): Likewise.
19426 (F): Likewise for return type and param "x".
19427 (add_constant): Likewise for local "insn".
19428 (maybe_dead_move): Likewise for return type and local "insn".
19429 (mep_expand_prologue): Likewise for local "insn".
19430 (mep_final_prescan_insn): Likewise for param "insn".
19431 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
19432 "next", "follow", "x".
19433 (mep_insert_repeat_label_last): Likewise for return type, param
19434 "last_insn", and locals "next", "prev". Strengthen param "label"
19435 from rtx to rtx_code_label *.
19436 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
19438 (struct mep_doloop_end): Likewise for fields "insn" and
19440 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
19441 Strengthen local "repeat_label" from rtx to rtx_code_label *.
19442 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
19444 (mep_invert_branch): Likewise for params "insn" and "after".
19445 (mep_reorg_erepeat): Likewise for param "insns" and locals
19446 "insn", "prev", "new_last", "barrier", "user". Strengthen local
19447 "l" from rtx to rtx_code_label *.
19448 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
19449 from rtx to rtx_insn *.
19450 (mep_reorg_addcombine): Likewise for param "insns" and locals
19452 (add_sp_insn_p): Likewise for param "insn".
19453 (mep_reorg_noframe): Likewise for param "insns" and locals
19454 "start_frame_insn", "end_frame_insn", "next".
19455 (mep_reorg): Likewise for local "insns".
19456 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
19458 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
19459 (mep_mul_hilo_bypass_p): Likewise.
19460 (mep_ipipe_ldc_p): Likewise for param "insn".
19461 (mep_make_bundle): Likewise for return type, param "cop" and local
19462 "insn", splitting out the latter into a new local "seq" for when it
19463 is a SEQUENCE rather than an insn.
19464 (core_insn_p): Likewise for param "insn".
19465 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
19466 "last", "first", "note", "prev", "core_insn".
19468 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19470 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
19472 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
19473 (m68k_final_prescan_insn): Likewise for first param.
19475 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
19476 (m68k_set_frame_related): Likewise for param "insn".
19477 (output_btst): Likewise for param "insn".
19478 (m68k_final_prescan_insn): Likewise.
19479 (m68k_move_to_reg): Likewise for local "insn".
19480 (m68k_call_tls_get_addr): Likewise for local "insns".
19481 (m68k_call_m68k_read_tp): Likewise.
19482 (strict_low_part_peephole_ok): Likewise for param "first_insn".
19483 (m68k_output_mi_thunk): Likewise for local "insn".
19485 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19487 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
19488 first param from rtx to rtx_insn *.
19489 (iq2000_adjust_insn_length): Likewise.
19490 (iq2000_output_conditional_branch): Likewise.
19491 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
19492 "insn" and local "nop_insn".
19493 (iq2000_annotate_frame_insn): Likewise for param "insn".
19494 (iq2000_expand_prologue): Likewise for both locals "insn".
19495 (iq2000_adjust_insn_length): Likewise for param "insn".
19496 (iq2000_output_conditional_branch): Likewise.
19498 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19500 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
19501 "insns" from rtx to rtx_insn *.
19502 (ia64_emit_cond_move): Likewise for locals "insn", "first".
19503 (struct spill_fill_data): Likewise for field "init_after" and for
19504 elements of array field "prev_insn".
19505 (spill_restore_mem): Likewise for locals "insn", "first".
19506 (do_spill): Likewise for local "insn".
19507 (do_restore): Likewise.
19508 (ia64_expand_prologue): Likewise.
19509 (ia64_expand_epilogue): Likewise.
19510 (emit_insn_group_barriers): Likewise for locals "insn",
19512 (emit_all_insn_group_barriers): Likewise for locals "insn",
19514 (dfa_stop_insn): Likewise for this global.
19515 (dfa_pre_cycle_insn): Likewise.
19516 (ia64_nop): Likewise.
19517 (final_emit_insn_group_barriers): Likewise for locals "insn",
19519 (emit_predicate_relation_info): Likewise for locals "head", "n",
19521 (ia64_reorg): Likewise for local "insn".
19522 (ia64_output_mi_thunk): Likewise.
19523 (expand_vec_perm_interleave_2): Likewise for local "seq".
19525 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19527 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
19528 param 1 "insn" from rtx to rtx_insn *.
19529 (ix86_use_lea_for_mov): Likewise.
19530 (ix86_avoid_lea_for_addr): Likewise.
19531 (ix86_split_lea_for_addr): Likewise.
19532 (ix86_lea_for_add_ok): Likewise.
19533 (ix86_output_call_insn): Likewise.
19535 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
19536 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
19537 (ix86_output_function_epilogue): Likewise for locals "insn",
19538 "deleted_debug_label".
19539 (legitimize_tls_address): Likewise for local "insn".
19540 (get_some_local_dynamic_name): Likewise.
19541 (increase_distance): Likewise for params "prev", "next".
19542 (distance_non_agu_define_in_bb): Likewise for params "insn",
19543 "start" and locals "prev", "next".
19544 (distance_non_agu_define): Likewise for param "insn".
19545 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
19546 locals "next", "prev".
19547 (distance_agu_use): Likewise for param "insn".
19548 (ix86_lea_outperforms): Likewise.
19549 (ix86_ok_to_clobber_flags): Likewise.
19550 (ix86_avoid_lea_for_add): Likewise.
19551 (ix86_use_lea_for_mov): Likewise.
19552 (ix86_avoid_lea_for_addr): Likewise.
19553 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
19554 (ix86_split_lea_for_addr): Likewise for param "insn".
19555 (ix86_lea_for_add_ok): Likewise for param "insn".
19556 (ix86_expand_carry_flag_compare): Likewise for local
19558 (ix86_expand_int_movcc): Likewise.
19559 (ix86_output_call_insn): Likewise for param "insn".
19560 (ix86_output_call_insn): Likewise for local "i".
19561 (x86_output_mi_thunk): Introduce local "insn", using it in place
19562 of "tmp" when dealing with insns.
19563 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
19565 (ix86_pad_returns): Likewise for locals "ret", "prev".
19566 (ix86_count_insn_bb): Likewise for local "insn".
19567 (ix86_pad_short_function): Likewise for locals "ret", "insn".
19568 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
19569 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
19570 (expand_vec_perm_interleave2): Likewise for local "seq".
19571 (expand_vec_perm_vperm2f128_vblend): Likewise.
19572 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
19573 call to for_each_rtx with for_each_rtx_in_insn.
19575 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19577 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
19578 "label" from rtx to rtx_code_label *.
19579 (ix86_expand_prologue): Likewise.
19580 (ix86_expand_split_stack_prologue): Likewise for locals "label",
19582 (ix86_split_idivmod): Likewise for locals "end_label" and
19584 (ix86_expand_branch): Likewise for local "label2".
19585 (ix86_expand_aligntest): Likewise for return type and local "label".
19586 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
19588 (expand_movmem_epilogue): Likewise for the various locals named
19590 (expand_setmem_epilogue): Likewise.
19591 (expand_small_movmem_or_setmem): Likewise for local "label".
19592 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
19593 Strengthen param "done_label" from rtx * to rtx_code_label **.
19594 Strengthen locals "loop_label" and "label" from rtx to
19596 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
19597 Likewise for locals "loop_label", "label".
19598 (ix86_expand_set_or_movmem): Likewise for locals "label",
19599 "jump_around_label", "hot_label".
19600 (ix86_expand_strlensi_unroll_1): Likewise for locals
19601 "align_2_label", align_3_label", "align_4_label", "end_0_label",
19603 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
19604 (void ix86_emit_i387_log1p): Likewise for locals "label1",
19605 "label2", "jump_label".
19606 (ix86_expand_sse_compare_and_jump): Likewise for return type and
19608 (ix86_expand_lfloorceil): Likewise for local "label".
19609 (ix86_expand_rint): Likewise.
19610 (ix86_expand_floorceildf_32): Likewise.
19611 (ix86_expand_floorceil): Likewise.
19612 (ix86_expand_rounddf_32): Likewise.
19613 (ix86_expand_trunc): Likewise.
19614 (ix86_expand_truncdf_32): Likewise.
19615 (ix86_expand_round): Likewise.
19617 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19619 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
19620 first param from rtx to rtx_insn *.
19621 (h8300_insn_length_from_table): Likewise.
19622 * config/h8300/h8300.c (F): Likewise for return type and param
19624 (Fpa): Add a checked cast to rtx_insn *.
19625 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
19627 (final_prescan_insn): Likewise for param "insn".
19628 (h8300_binary_length): Likewise.
19629 (h8300_insn_length_from_table): Likewise.
19631 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19633 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
19634 Strengthen first param "insn" from rtx to rtx_insn *.
19636 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
19638 (frame_insn): Likewise for return type. Introduce local "insn"
19639 for use in place of local "x" for use as an rtx_insn *.
19640 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
19641 (epiphany_expand_prologue): Likewise for local "insn".
19642 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
19643 * config/epiphany/resolve-sw-modes.c
19644 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
19647 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19649 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
19650 param from rtx to rtx_insn *.
19651 (c6x_final_prescan_insn): Likewise for first param.
19653 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
19654 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
19655 (c6x_expand_compare): Strengthen local "insns" from rtx to
19657 (c6x_get_unit_specifier): Likewise for param "insn".
19658 (c6x_print_unit_specifier_field): Likewise.
19659 (c6x_final_prescan_insn): Likewise.
19660 (emit_add_sp_const): Likewise for local "insn".
19661 (c6x_expand_prologue): Likewise.
19663 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19665 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
19666 param 1 from rtx to rtx_insn *.
19667 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
19668 the various locals named "insn".
19669 (expand_epilogue_reg_restore): Likewise.
19670 (frame_related_constant_load): Likewise.
19671 (add_to_reg): Likewise.
19672 (emit_link_insn): Likewise.
19673 (do_link): Likewise.
19674 (expand_interrupt_handler_prologue): Likewise.
19675 (branch_dest): Likewise for param "branch".
19676 (asm_conditional_branch): Likewise for param "insn".
19677 (gen_one_bundle): Likewise for elements of param "slot" and local
19679 (bfin_gen_bundles): Likewise for locals "insn", "next" and
19680 elements of local "slot".
19681 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
19682 "queue", "next_queue", "prev".
19683 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
19684 (add_sched_insns_for_speculation): Likewise for local "insn".
19686 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19688 * config/avr/avr-protos.h (output_movqi): Strengthen first param
19689 from rtx to rtx_insn *.
19690 (output_movhi): Likewise.
19691 (output_movsisf): Likewise.
19692 (avr_out_tstsi): Likewise.
19693 (avr_out_tsthi): Likewise.
19694 (avr_out_tstpsi): Likewise.
19695 (avr_out_compare): Likewise.
19696 (avr_out_compare64): Likewise.
19697 (avr_out_movpsi): Likewise.
19698 (ashlqi3_out): Likewise.
19699 (ashlhi3_out): Likewise.
19700 (ashlsi3_out): Likewise.
19701 (ashrqi3_out): Likewise.
19702 (ashrhi3_out): Likewise.
19703 (ashrsi3_out): Likewise.
19704 (lshrqi3_out): Likewise.
19705 (lshrhi3_out): Likewise.
19706 (lshrsi3_out): Likewise.
19707 (avr_out_ashlpsi3): Likewise.
19708 (avr_out_ashrpsi3): Likewise.
19709 (avr_out_lshrpsi3): Likewise.
19710 (avr_out_fract): Likewise.
19711 (avr_out_sbxx_branch): Likewise.
19712 (avr_out_round): Likewise.
19713 (avr_out_xload): Likewise.
19714 (avr_out_movmem): Likewise.
19715 (adjust_insn_length): Likewise.
19716 (avr_out_lpm): Likewise.
19717 (reg_unused_after): Likewise.
19718 (_reg_unused_after): Likewise.
19719 (avr_jump_mode): Likewise for second param.
19720 (jump_over_one_insn): Likewise for first param.
19721 (avr_final_prescan_insn): Likewise.
19722 (out_shift_with_cnt): Likewise for second param.
19724 * config/avr/avr.c (get_sequence_length): Likewise for param
19725 "insns" and local "insn".
19726 (emit_push_byte): Likewise for local "insn".
19727 (emit_push_sfr): Likewise.
19728 (avr_prologue_setup_frame): Likewise for locals "insn",
19729 "fp_plus_insns", "sp_plus_insns".
19730 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
19732 (avr_jump_mode): Likewise for param "insn".
19733 (avr_final_prescan_insn): Likewise.
19734 (avr_find_unused_d_reg): Likewise.
19735 (avr_out_lpm_no_lpmx): Likewise.
19736 (avr_out_lpm): Likewise.
19737 (avr_out_xload): Likewise.
19738 (output_movqi): Likewise.
19739 (output_movhi): Likewise.
19740 (out_movqi_r_mr): Likewise.
19741 (out_movhi_r_mr): Likewise.
19742 (out_movsi_r_mr): Likewise.
19743 (out_movsi_mr_r): Likewise.
19744 (output_movsisf): Likewise.
19745 (avr_out_load_psi): Likewise.
19746 (avr_out_store_psi): Likewise.
19747 (avr_out_movpsi): Likewise.
19748 (out_movqi_mr_r): Likewise.
19749 (avr_out_movhi_mr_r_xmega): Likewise.
19750 (out_movhi_mr_r): Likewise.
19751 (compare_condition): Likewise for param "insn" and local "next".
19752 (compare_sign_p): Likewise for param "insn".
19753 (compare_diff_p): Likewise.
19754 (compare_eq_p): Likewise.
19755 (avr_out_compare): Likewise.
19756 (avr_out_compare64): Likewise.
19757 (avr_out_tsthi): Likewise.
19758 (avr_out_tstpsi): Likewise.
19759 (avr_out_tstsi): Likewise.
19760 (out_shift_with_cnt): Likewise.
19761 (ashlqi3_out): Likewise.
19762 (ashlhi3_out): Likewise.
19763 (avr_out_ashlpsi3): Likewise.
19764 (ashlsi3_out): Likewise.
19765 (ashrqi3_out): Likewise.
19766 (ashrhi3_out): Likewise.
19767 (avr_out_ashrpsi3): Likewise.
19768 (ashrsi3_out): Likewise.
19769 (lshrqi3_out): Likewise.
19770 (lshrhi3_out): Likewise.
19771 (avr_out_lshrpsi3): Likewise.
19772 (lshrsi3_out): Likewise.
19773 (avr_out_fract): Likewise.
19774 (avr_out_round): Likewise.
19775 (avr_adjust_insn_length): Likewise.
19776 (reg_unused_after): Likewise.
19777 (_reg_unused_after): Likewise.
19778 (avr_compare_pattern): Likewise.
19779 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
19780 and locals "branch1", "branch2", "insn2", "jump".
19781 (avr_reorg): Likewise for local "insn".
19782 (avr_2word_insn_p): Likewise for param "insn".
19783 (jump_over_one_insn_p): Likewise.
19784 (avr_out_sbxx_branch): Likewise.
19785 (avr_out_movmem): Likewise.
19787 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19789 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
19790 param from rtx to rtx_insn *.
19791 (thumb1_final_prescan_insn): Likewise.
19792 (thumb2_final_prescan_insn): Likewise.
19794 * config/arm/arm.c (emit_set_insn): Strengthen return type from
19796 (struct minipool_node): Likewise for field "insn".
19797 (dump_minipool): Likewise for param "scan".
19798 (create_fix_barrier): Likewise for local "from". Strengthen local
19799 "label" from rtx to rtx_code_label *.
19800 (push_minipool_barrier): Strengthen param "insn" from rtx to
19802 (push_minipool_fix): Likewise.
19803 (note_invalid_constants): Likewise.
19804 (thumb2_reorg): Likewise for local "insn".
19805 (arm_reorg): Likewise.
19806 (thumb2_final_prescan_insn): Likewise for param
19807 "insn" and local "first_insn".
19808 (arm_final_prescan_insn): Likewise for param "insn" and locals
19809 "start_insn", "this_insn".
19810 (arm_debugger_arg_offset): Likewise for param "insn".
19811 (thumb1_emit_multi_reg_push): Likewise for return type and local
19813 (thumb1_final_prescan_insn): Likewise for param "insn".
19814 (thumb_far_jump_used_p): Likewise for local "insn".
19815 (thumb1_expand_prologue): Likewise.
19816 (arm_expand_epilogue_apcs_frame): Likewise.
19817 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
19818 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
19819 from rtx to rtx_code_label *.
19820 (arm_split_atomic_op): Likewise for local "label".
19821 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
19823 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19825 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
19826 first param from rtx to rtx_insn *.
19827 (arc_verify_short): Likewise.
19828 (arc_short_long): Likewise.
19829 (arc_need_delay): Likewise.
19831 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
19833 (arc_ccfsm_advance): Likewise for param "insn" and locals
19834 "start_insn", "this_insn".
19835 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
19836 (arc_ccfsm_post_advance): Likewise for param "insn".
19837 (arc_next_active_insn): Likewise for return type and param "insn".
19838 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
19839 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
19840 (output_short_suffix): Likewise for local "insn".
19841 (arc_final_prescan_insn): Likewise for param "insn". Remove
19842 now-redundant checked cast.
19843 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
19844 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
19845 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
19846 for use where lc_set became an insn.
19847 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
19849 (arc_get_insn_variants): Likewise for local "prev".
19850 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
19852 (arc_predicate_delay_insns): Likewise for local "insn".
19853 (arc_pad_return): Likewise for local "prev". For now, add a
19854 checked cast when extracting the insn from "final_sequence".
19855 (arc_short_long): Likewise for param "insn".
19856 (arc_need_delay): Likewise for param "insn" and local "next".
19857 (arc_label_align): Likewise for locals "prev", "next".
19859 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19861 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
19862 "insn" from rtx to rtx_insn *.
19863 (alpha_gp_save_rtx): Likewise for local "seq".
19864 (alpha_instantiate_decls): Likewise for local "top".
19865 (get_some_local_dynamic_name): Likewise for local "insn".
19866 (alpha_does_function_need_gp): Likewise.
19867 (set_frame_related_p): Likewise for return type and for locals
19869 (emit_frame_store_1): Likewise for local "insn".
19870 (alpha_expand_prologue): Likewise for locals "insn", "seq".
19871 (alpha_end_function): Likewise for local "insn".
19872 (alpha_output_mi_thunk_osf): Likewise.
19873 (alphaev4_insn_pipe): Likewise for param "insn".
19874 (alphaev5_insn_pipe): Likewise.
19875 (alphaev4_next_group): Likewise for return type and param 1
19877 (alphaev5_next_group): Likewise.
19878 (alpha_align_insns_1): Likewise for return type and param 1 of
19879 callback param "next_group", and for locals "i", "next", "prev",
19880 "where", "where2", "insn".
19882 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
19884 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
19885 rather than modifying the stmt.
19887 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19889 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
19890 cgraph_state conversion.
19892 2014-08-25 David Malcolm <dmalcolm@redhat.com>
19894 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19895 Strengthen local "insns" from rtx to rtx_insn *.
19896 (aarch64_set_frame_expr): Likewise for local "insn".
19897 (aarch64_save_or_restore_fprs): Likewise.
19898 (aarch64_save_or_restore_callee_save_registers): Likewise.
19899 (aarch64_expand_prologue): Likewise.
19900 (aarch64_expand_epilogue): Likewise.
19901 (aarch64_output_mi_thunk): Likewise.
19902 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
19903 "label2" from rtx to rtx_code_label *.
19904 (aarch64_split_atomic_op): Likewise for local "label".
19906 2014-08-25 Martin Liska <mliska@suse.cz>
19908 * cgraph.h (symtab_node):
19909 (bool needed_p (void)): created from decide_is_symbol_needed
19910 (bool referred_to_p (void)): created from referred_to_p
19911 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
19912 * cgraph.h (cgraph_node):
19913 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
19914 (void expand (void)): created from expand_function
19915 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
19916 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
19917 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
19918 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
19919 * cgraph.h (varpool_node):
19920 (static void add (tree decl): created from varpool_add_new_variable
19921 * cgraph.h (cgraph_edge):
19922 void remove (void);
19923 (void remove_caller (void)): created from cgraph_edge_remove_caller
19924 (void remove_callee (void)): created from cgraph_edge_remove_callee
19925 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
19926 created from cgraph_set_call_stmt
19927 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
19928 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
19929 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
19930 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
19931 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
19932 created from cgraph_speculative_call_info
19933 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
19934 int freq_scale, bool update_original)): created from cgraph_clone_edge
19935 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
19936 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
19937 (bool recursive_p (void)): created from cgraph_edge_recursive_p
19938 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
19939 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
19940 (static void rebuild_references (void)): created from cgraph_rebuild_references
19941 * cgraph.h (symbol_table):
19942 (create_reference): renamed from add_reference
19943 (maybe_create_reference): renamed from maybe_add_reference
19944 (void register_symbol (symtab_node *node)): new function
19945 (void clear_asm_symbols (void)): new function
19946 (void unregister (symtab_node *node)): new function
19947 (void release_symbol (cgraph_node *node, int uid)): new function
19948 (cgraph_node * allocate_cgraph_symbol (void)): new function
19949 (void initialize (void)): created from cgraph_init
19950 (symtab_node *first_symbol (void)):new function
19951 (asm_node *first_asm_symbol (void)):new function
19952 (symtab_node *first_defined_symbol (void)):new function
19953 (varpool_node *first_variable (void)):new function
19954 (varpool_node *next_variable (varpool_node *node)):new function
19955 (varpool_node *first_static_initializer (void)):new function
19956 (varpool_node *next_static_initializer (varpool_node *node)):new function
19957 (varpool_node *first_defined_variable (void)):new function
19958 (varpool_node *next_defined_variable (varpool_node *node)):new function
19959 (cgraph_node *first_defined_function (void)):new function
19960 (cgraph_node *next_defined_function (cgraph_node *node)):new function
19961 (cgraph_node *first_function (void)):new function
19962 (cgraph_node *next_function (cgraph_node *node)):new function
19963 (cgraph_node *first_function_with_gimple_body (void)):new function
19964 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
19965 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
19966 created from symtab_remove_unreachable_nodes
19967 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
19968 (void process_new_functions (void)): created from cgraph_process_new_functions
19969 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
19970 (bool output_variables (void)): created from varpool_node::output_variables
19971 (void output_asm_statements (void)): created from output_asm_statements
19972 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
19973 (void compile (void)): created from compile
19974 (void output_weakrefs (void)): created from output_weakrefs
19975 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
19976 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
19977 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
19978 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
19979 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
19980 created from cgraph_next_function_with_gimple_body
19981 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
19982 created from cgraph_remove_edge_removal_hook
19983 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
19984 created from cgraph_add_node_removal_hook
19985 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
19986 created from cgraph_remove_node_removal_hook
19987 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
19988 created from varpool_add_node_removal_hook
19989 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
19990 created from varpool_remove_node_removal_hook
19991 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
19992 created from cgraph_add_function_insertion_hook
19993 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
19994 created from cgraph_remove_function_insertion_hook
19995 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
19996 created from varpool_add_variable_insertion_hook
19997 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
19998 created from varpool_remove_variable_insertion_hook
19999 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
20000 created from cgraph_add_edge_duplication_hook
20001 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
20002 created from cgraph_remove_edge_duplication_hook
20003 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
20004 created from cgraph_add_node_duplication_hook
20005 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
20006 created from cgraph_remove_node_duplication_hook
20007 (void call_edge_removal_hooks (cgraph_edge *e)):
20008 created from cgraph_call_edge_removal_hooks
20009 (void call_cgraph_insertion_hooks (cgraph_node *node)):
20010 created from call_function_insertion_hooks
20011 (void call_cgraph_removal_hooks (cgraph_node *node)):
20012 created from cgraph_call_node_removal_hooks
20013 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
20014 created from cgraph_node::call_duplication_hooks
20015 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
20016 created from cgraph_call_edge_duplication_hooks
20017 (void call_varpool_removal_hooks (varpool_node *node)):
20018 created from varpool_call_node_removal_hooks
20019 (void call_varpool_insertion_hooks (varpool_node *node)):
20020 created from varpool_call_variable_insertion_hooks
20021 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
20022 created from insert_to_assembler_name_hash
20023 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
20024 created from unlink_from_assembler_name_hash
20025 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
20026 created from symtab_prevail_in_asm_name_hash
20027 (void symtab_initialize_asm_name_hash (void)):
20028 created from symtab_initialize_asm_name_hash
20029 (void change_decl_assembler_name (tree decl, tree name)):
20030 created from change_decl_assembler_name
20031 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
20032 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
20033 created from decl_assembler_name_hash
20034 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
20035 created from decl_assembler_name_equal
20036 (static hashval_t hash_node_by_assembler_name (const void *p)):
20037 created from hash_node_by_assembler_name
20038 (static int eq_assembler_name (const void *p1, const void *p2)):
20039 created from eq_assembler_name
20041 2014-08-25 Marek Polacek <polacek@redhat.com>
20043 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
20045 2014-08-25 Petr Murzin <petr.murzin@intel.com>
20047 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
20048 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
20049 SWI1248_AVX512BW mode iterator.
20051 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
20054 * config/sh/predicates.md (general_extend_operand): Disable
20055 TRUNCATE before reload completes.
20057 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
20059 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
20061 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
20064 * config/sh/sh.opt (musermode): Allow negative form.
20065 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
20066 targets that don't support it.
20067 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
20068 Document -mno-usermode option.
20070 2014-08-24 Kito Cheng <kito@0xlab.org>
20072 * system.h (CALLER_SAVE_PROFITABLE): Poison.
20073 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
20074 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
20075 * doc/tm.texi: Regenerate.
20077 2014-08-24 Kito Cheng <kito@0xlab.org>
20079 * ira.c: Fix typo in comment.
20081 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
20083 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
20084 Deprecate c++1y. Change language to reflect greater confidence in C++14.
20086 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
20089 * config/pa/pa.c (pa_output_function_epilogue): Don't set
20090 last_address when the current function is a thunk.
20091 (pa_asm_output_mi_thunk): When we don't have named sections or they
20092 are not being used, check that thunk can reach the stub table with a
20095 2014-08-23 David Malcolm <dmalcolm@redhat.com>
20097 * web.c (union_match_dups): Strengthen param "insn" from rtx to
20099 (pass_web::execute): Likewise for local "insn".
20101 2014-08-23 David Malcolm <dmalcolm@redhat.com>
20103 * var-tracking.c (struct micro_operation_def): Strengthen field
20104 "insn" from rtx to rtx_insn *.
20105 (struct emit_note_data_def): Likewise.
20106 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
20107 (vt_stack_adjustments): Likewise for local "insn".
20108 (adjust_insn): Likewise for param "insn".
20109 (val_store): Likewise.
20110 (val_resolve): Likewise.
20111 (struct count_use_info): Likewise for field "insn".
20112 (log_op_type): Likewise for param "insn".
20113 (reverse_op): Likewise.
20114 (prepare_call_arguments): Likewise.
20115 (add_with_sets): The initial param takes an insn, but we can't
20116 yet strengthen it from rtx to rtx_insn * since it's used as a
20117 cselib_record_sets_hook callback. For now rename initial param
20118 from "insn" to "uncast_insn", and introduce a local "insn" of
20119 the stronger rtx_insn * type, with a checked cast.
20120 (compute_bb_dataflow): Strengthen local "insn" from rtx to
20122 (emit_note_insn_var_location): Likewise.
20123 (emit_notes_for_changes): Likewise.
20124 (emit_notes_for_differences): Likewise.
20125 (next_non_note_insn_var_location): Likewise for return type and
20127 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
20128 (vt_initialize): Likewise for local "insn".
20129 (delete_debug_insns): Likewise for locals "insn" and "next".
20131 2014-08-23 David Malcolm <dmalcolm@redhat.com>
20133 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
20135 (mark_constant_pool): Likewise for local "insn".
20137 2014-08-23 David Malcolm <dmalcolm@redhat.com>
20139 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
20141 (dead_debug_promote_uses): Likewise.
20142 (dead_debug_insert_temp): Likewise.
20144 2014-08-23 David Malcolm <dmalcolm@redhat.com>
20146 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
20147 from const_rtx to const rtx_insn *.
20148 (store_killed_after): Likewise. Strengthen locals "last", "act"
20149 from rtx to rtx_insn *.
20150 (store_killed_before): Strengthen param "insn" from const_rtx to
20151 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
20152 (find_moveable_store): Strengthen param "insn" from rtx to
20154 (compute_store_table): Likewise for local "insn".
20155 (insert_insn_start_basic_block): Likewise for param "insn" and
20156 locals "prev", "before", "insn".
20157 (insert_store): For now, add a checked cast to rtx_insn * on the
20158 result of gen_move_insn.
20159 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
20161 (replace_store_insn): Likewise. For now, add a checked cast to
20162 rtx_insn * on the result of gen_move_insn.
20164 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20166 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
20168 (expand_sjlj_dispatch_table): Likewise.
20170 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20172 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
20173 "insn" from rtx to rtx_insn *.
20175 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20177 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
20178 "insn" from rtx to rtx_insn *.
20179 (dup_block_and_redirect): Likewise for param 3 "before".
20181 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
20182 from rtx to rtx_insn *.
20183 (move_insn_for_shrink_wrap): Likewise.
20184 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
20185 (dup_block_and_redirect): Likewise for param "before" and local
20187 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
20189 (convert_to_simple_return): Likewise for local "start".
20191 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
20192 Strengthen local "insn" from rtx to rtx_insn *, for use when
20193 invoking requires_stack_frame_p.
20195 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20197 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
20199 (speculate_expr): Likewise for locals "orig_insn_rtx",
20201 (eq_transformed_insns): Likewise for locals "i1", "i2".
20202 (check_for_new_jump): Likewise for return type and local "end".
20203 (find_new_jump): Likewise for return type and local "jump".
20204 (sel_split_edge): Likewise for local "jump".
20205 (sel_create_recovery_block): Likewise.
20206 (sel_redirect_edge_and_branch_force): Likewise.
20207 (sel_redirect_edge_and_branch): Likewise.
20209 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20211 * sel-sched.c (substitute_reg_in_expr): Strengthen local
20212 "new_insn" from rtx to rtx_insn *.
20213 (create_insn_rtx_with_rhs): Likewise for return type and for local
20215 (create_insn_rtx_with_lhs): Likewise.
20216 (create_speculation_check): Likewise for local "insn_rtx".
20217 (implicit_clobber_conflict_p): Likewise for local "insn".
20218 (get_expr_cost): Likewise.
20219 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
20220 (move_cond_jump): Likewise for locals "next", "prev", "link",
20221 "head", "from", "to".
20223 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20225 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
20226 "next" from rtx to rtx_insn *.
20227 (find_conditional_protection): Likewise for local "next".
20228 (is_conditionally_protected): Likewise for local "insn1".
20229 (is_pfree): Likewise for locals "insn1", "insn2".
20231 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20233 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
20234 from rtx to rtx_insn *.
20236 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
20237 locals "insn1", "insn2" from rtx to rtx_insn *.
20238 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
20239 locals "insn", "prev", "last_jump", "next_tail".
20240 (schedule_ebb): Likewise for params "head", "tail".
20241 (schedule_ebbs): Likewise for locals "tail", "head".
20243 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
20244 to rtx_insn on "last_insn" in one of the invocations of
20247 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20249 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
20250 "elem", "insn" from rtx to rtx_insn *.
20251 (change_spec_dep_to_hard): Likewise.
20252 (get_back_and_forw_lists): Likewise for local "con".
20253 (sd_add_dep): Likewise for locals "elem", "insn".
20254 (sd_resolve_dep): Likewise for locals "pro", "con".
20255 (sd_unresolve_dep): Likewise.
20256 (sd_delete_dep): Likewise.
20257 (chain_to_prev_insn): Likewise for local "pro".
20258 (find_inc): Likewise for locals "pro", "con".
20260 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20262 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
20264 (reg_set_between_p): Strengthen local "insn" from const_rtx to
20266 (modified_between_p): Strengthen local "insn" from rtx to
20268 (remove_reg_equal_equiv_notes_for_regno): Likewise.
20269 (keep_with_call_p): Strengthen local "i2" from const_rtx to
20272 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20274 * resource.c (next_insn_no_annul): Strengthen local "next" from
20276 (mark_referenced_resources): Likewise for local "insn".
20278 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20280 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
20282 (find_reloads): Likewise for param 1.
20283 (subst_reloads): Likewise for sole param.
20284 (find_equiv_reg): Likwise for param 2.
20285 (regno_clobbered_p): Likwise for param 2.
20286 (reload): Likewise for param 1.
20288 * caller-save.c (save_call_clobbered_regs): Strengthen local
20289 "insn" from rtx to rtx_insn *.
20290 (insert_one_insn): Likewise for local "insn".
20292 * reload.c (this_insn): Likewise for this global.
20293 (find_reloads): Likewise for param "insn".
20294 (find_reloads_toplev): Likewise.
20295 (find_reloads_address): Likewise.
20296 (subst_reg_equivs): Likewise.
20297 (update_auto_inc_notes): Likewise.
20298 (find_reloads_address_1): Likewise.
20299 (find_reloads_subreg_address): Likewise.
20300 (subst_reloads): Likewise.
20301 (find_equiv_reg): Likewise, also for local "p".
20302 (regno_clobbered_p): Likewise for param "insn".
20304 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
20306 (spill_reg_store): Likewise for the elements of this array.
20307 (remove_init_insns): Likewise for local "equiv_insn".
20308 (will_delete_init_insn_p): Likewise for param "insn".
20309 (reload): Likewise for param ""first" and local "insn".
20310 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
20312 (calculate_elim_costs_all_insns): Likewise.
20313 (delete_caller_save_insns): Likewise.
20314 (spill_failure): Likewise for param "insn".
20315 (delete_dead_insn): Likewise.
20316 (set_label_offsets): Likewise.
20317 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
20319 (elimination_costs_in_insn): Likewise for param "insn".
20320 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
20321 when referring to an insn.
20322 (set_initial_label_offsets): Likewise.
20323 (set_offsets_for_label): Strengthen param "insn" from rtx to
20325 (init_eliminable_invariants): Likewise for param "first" and local
20327 (fixup_eh_region_note): Likewise for param "insn".
20328 (reload_as_needed): Likewise for locals "prev", "insn",
20329 "old_next", "old_prev", "next".
20330 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
20332 (reload_inheritance_insn): Strengthen elements of this array from
20334 (failed_reload): Likewise for param "insn".
20335 (choose_reload_regs): Likewise for local "insn". Replace use of
20336 NULL_RTX with NULL when referring to an insn.
20337 (input_reload_insns): Strengthen elements of this array from rtx
20339 (other_input_address_reload_insns): Likewise for this global.
20340 (other_input_reload_insns): Likewise for this global.
20341 (input_address_reload_insns): Likwise for the elements of this
20343 (inpaddr_address_reload_insns): Likwise for the elements of this
20345 (output_reload_insns): Likewise for the elements of this array.
20346 (output_address_reload_insns): Likewise for the elements of this
20348 (outaddr_address_reload_insns): Likewise for the elements of this
20350 (operand_reload_insns): Likewise for this global.
20351 (other_operand_reload_insns): Likewise for this global.
20352 (other_output_reload_insns): Likewise for the elements of this
20354 (new_spill_reg_store): Likewise for the elements of this
20356 (emit_input_reload_insns): Likewise for locals "insn", "temp".
20357 Strengthen local "where" from rtx * to rtx_insn **.
20358 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
20359 from rtx to rtx_insn *.
20360 (do_input_reload): Likewise for local "insn".
20361 (do_output_reload): Likewise for local "insn".
20362 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
20363 (emit_insn_if_valid_for_reload): Likewise for return type and local
20364 "last". Add checked cast to rtx_insn when returning "insn" since
20365 this has been through emit_insn.
20366 (gen_reload): Strengthen return type and locals "last", "insn", "set"
20367 from rtx to rtx_insn *. Add checked cast to rtx_insn when
20368 returning "insn" since it's been through
20369 emit_insn_if_valid_for_reload at this point.
20370 (delete_output_reload): Strengthen param "insn" and locals
20371 "output_reload_insn", "i2" from rtx to rtx_insn *.
20372 (delete_address_reloads): Likewise for params "dead_insn",
20373 "current_insn" and locals "prev", "next".
20374 (delete_address_reloads_1): Likewise for params "dead_insn",
20375 "current_insn" and locals "prev", "i2".
20376 (inc_for_reload): Likewise for locals "last", "add_insn".
20377 (add_auto_inc_notes): Strengthen param "insn" from rtx to
20380 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
20381 param of this duplicate of the prototype from reload.h
20383 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20385 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
20387 (regstat_bb_compute_calls_crossed): Likewise.
20389 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20391 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
20393 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
20395 (regrename_analyze): Strengthen local "insn" from rtx to
20397 (scan_rtx_reg): Likewise for param "insn".
20398 (scan_rtx_address): Likewise.
20399 (scan_rtx): Likewise.
20400 (restore_operands): Likewise.
20401 (record_out_operands): Likewise.
20402 (build_def_use): Likewise for local "insn". Replace use of
20403 NULL_RTX with NULL when dealing with an insn.
20405 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20407 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
20408 * reginfo.c (reg_scan): Likewise, also for local "insn".
20409 (reg_scan_mark_refs): Likewise for param "insn".
20410 (init_subregs_of_mode): Likewise for local "insn".
20412 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20414 * regcprop.c (struct queued_debug_insn_change): Strengthen field
20415 "insn" from rtx to rtx_insn *.
20416 (replace_oldest_value_reg): Likewise for param "insn".
20417 (replace_oldest_value_addr): Likewise.
20418 (replace_oldest_value_mem): Likewise.
20419 (apply_debug_insn_changes): Likewise for local "last_insn".
20420 (copyprop_hardreg_forward_1): Likewise for local "insn".
20422 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20424 * reg-stack.c (next_flags_user): Strengthen return type and param
20425 "insn" from rtx to rtx_insn *.
20426 (straighten_stack): Likewise for param "insn".
20427 (check_asm_stack_operands): Likewise.
20428 (remove_regno_note): Likewise.
20429 (emit_pop_insn): Likewise for return type, param "insn", local
20431 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
20432 "limit" from rtx to rtx_insn *.
20433 (swap_to_top): Likewise for param "insn".
20434 (move_for_stack_reg): Likewise.
20435 (move_nan_for_stack_reg): Likewise.
20436 (swap_rtx_condition): Likewise.
20437 (compare_for_stack_reg): Likewise.
20438 (subst_all_stack_regs_in_debug_insn): Likewise.
20439 (subst_stack_regs_pat): Likewise, and local "insn2".
20440 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
20442 (subst_stack_regs): Likewise.
20443 (change_stack): Likewise.
20444 (convert_regs_1): Likewise for locals "insn", "next".
20446 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20448 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
20450 (combine_set_extension): Likewise for param "curr_insn".
20451 (transform_ifelse): Likewise for param "def_insn".
20452 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
20453 from vec<rtx> * to vec<rtx_insn *> *.
20454 (is_cond_copy_insn): Likewise for param "insn".
20455 (struct ext_state): Strengthen the four vec fields from vec<rtx>
20456 to vec<rtx_insn *>.
20457 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
20458 local "def_insn" from rtx to rtx_insn *.
20459 (get_sub_rtx): Likewise for param "def_insn".
20460 (merge_def_and_ext): Likewise.
20461 (combine_reaching_defs): Likewise.
20462 (add_removable_extension): Likewise for param "insn".
20463 (find_removable_extensions): Likewise for local "insn".
20464 (find_and_remove_re): Likewise for locals "curr_insn" and
20465 "def_insn". Strengthen locals "reinsn_del_list" and
20466 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
20468 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20470 * recog.c (split_insn): Strengthen param "insn" and locals
20471 "first", "last" from rtx to rtx_insn *.
20472 (split_all_insns): Likewise for locals "insn", "next".
20473 (split_all_insns_noflow): Likewise.
20475 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20477 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
20479 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
20480 (debug_rtx_find): Likewise for param 1 "x".
20482 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
20483 const_rtx to const rtx_insn *. Likewise for local "insn".
20484 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
20485 (debug_rtx_find): Likewise for param 1 "x".
20486 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
20487 from const_rtx to const rtx_insn * within the appropriate cases of
20488 the switch statement.
20490 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
20491 Strengthen local "insns" from rtx to rtx_insn * since this is
20492 passed to a call to debug_rtx_list.
20494 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20496 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
20499 * function.c (stack_protect_epilogue): Add checked cast to
20500 rtx_insn for now when invoking predict_insn_def.
20502 * predict.c (predict_insn): Strengthen param "insn" from rtx to
20504 (predict_insn_def): Likewise.
20505 (rtl_predict_edge): Likewise for local "last_insn".
20506 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
20508 (combine_predictions_for_insn): Strengthen param "insn" from rtx
20510 (bb_estimate_probability_locally): Likewise for local "last_insn".
20511 (expensive_function_p): Likewise for local "insn".
20513 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
20514 local "jmp", since this is used when invoking predict_insn_def.
20516 2014-08-22 Marek Polacek <polacek@redhat.com>
20519 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
20521 2014-08-22 Marek Polacek <polacek@redhat.com>
20524 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
20525 a comparison in parens.
20526 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
20529 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20531 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
20534 * cprop.c (fis_get_condition): Likewise.
20536 * postreload.c (reload_cse_regs): Likewise for param "first".
20537 (reload_cse_simplify): Likewise for param "insn".
20538 (reload_cse_regs_1): Likewise for local "insn".
20539 (reload_cse_simplify_set): Likewise for param "insn".
20540 (reload_cse_simplify_operands): Likewise.
20541 (struct reg_use): Likewise for field "insn".
20542 (reload_combine_purge_insn_uses): Likewise for param "insn".
20543 (fixup_debug_insns): Likewise for params "from", "to" and local
20545 (try_replace_in_use): Likewise for local "use_insn".
20546 (reload_combine_recognize_const_pattern): Likewise for param
20547 "insn" and locals "add_moved_after_insn", "use_insn".
20548 (reload_combine_recognize_pattern): Likewise for param "insn" and
20550 (reload_combine): Likewise for locals "insn", "prev".
20551 (reload_combine_note_use): Likewise for param "insn".
20552 (move2add_use_add2_insn): Likewise.
20553 (move2add_use_add3_insn): Likewise.
20554 (reload_cse_move2add): Likewise, also for local "next".
20555 (move2add_note_store): Likewise for local "insn".
20557 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20559 * postreload-gcse.c (struct occr): Strengthen field "insn" from
20561 (struct unoccr): Likewise.
20562 (struct modifies_mem): Likewise.
20563 (alloc_mem): Likewise for local "insn".
20564 (insert_expr_in_table): Likewise for param "insn".
20565 (dump_expr_hash_table_entry): Likewise for local "insn".
20566 (oprs_unchanged_p): Likewise for param "insn".
20567 (load_killed_in_block_p): Likewise for local "setter".
20568 (record_last_reg_set_info): Likewise for param "insn".
20569 (record_last_reg_set_info_regno): Likewise.
20570 (record_last_mem_set_info): Likewise.
20571 (record_last_set_info): Likewise for local "last_set_insn".
20572 (record_opr_changes): Likewise for param "insn".
20573 (hash_scan_set): Likewise.
20574 (compute_hash_table): Likewise for local "insn".
20575 (get_avail_load_store_reg): Likewise for param "insn".
20576 (eliminate_partially_redundant_load): Likewise, also for locals
20577 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
20579 (eliminate_partially_redundant_loads): Likewise for local "insn".
20581 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20583 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
20585 (expand_binop): Likewise for locals "entry_last", "last", "insns"
20586 (expand_twoval_unop): Likewise for locals entry_last", "last".
20587 (expand_twoval_binop): Likewise.
20588 (expand_twoval_binop_libfunc): Likewise for local "insns".
20589 (widen_leading): Likewise for local "last".
20590 (expand_doubleword_clz): Likewise for local "seq". Strengthen
20591 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
20592 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
20593 (expand_parity): Likewise for locals "last" and "seq".
20594 (expand_ffs): Likewise for local "seq". Strengthen local
20595 "nonzero_label" from rtx to rtx_code_label *.
20596 (expand_absneg_bit): Strengthen local "insns" from rtx to
20598 (expand_unop_direct): Likewise for local "last".
20599 (expand_unop): Likewise for locals "last", "insns".
20600 (expand_abs_nojump): Likewise for local "last".
20601 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
20602 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
20604 (expand_copysign_absneg): Strengthen local "label" from rtx to
20606 (expand_copysign_bit): Strengthen local "insns" from rtx to
20608 (struct no_conflict_data): Likewise for fields "first", "insn".
20609 (emit_libcall_block_1): Likewise for param "insns" and locals
20610 "next", "last", "insn".
20611 (emit_libcall_block): For now, add a checked cast to rtx_insn *
20612 on "insns" when invoking emit_libcall_block_1. Ultimately we
20613 want to strengthen insns itself.
20614 (prepare_cmp_insn): Strengthen local "last" from rtx to
20616 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
20617 (prepare_float_lib_cmp): Likewise for local "insns".
20618 (emit_conditional_move): Likewise for local "last".
20619 (emit_conditional_add): Likewise.
20620 (have_sub2_insn): Likewise for local "seq".
20621 (expand_float): Likewise for local "insns". Strengthen locals
20622 "label", "neglabel" from rtx to rtx_code_label *.
20623 (expand_fix): Likewise for locals "last", "insn", "insns" (to
20624 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
20625 (expand_fixed_convert): Likewise for local "insns" (to
20627 (expand_sfix_optab): Likewise for local "last".
20628 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
20629 to rtx_code_label *.
20630 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
20631 from rtx to rtx_insn *.
20632 (expand_atomic_fetch_op): Likewise for local "insn".
20633 (maybe_legitimize_operand_same_code): Likewise for local "last".
20634 (maybe_legitimize_operands): Likewise.
20636 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20638 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
20639 "insn" from rtx to rtx_insn *.
20640 (ps_rtl_insn): Likewise for return type.
20641 (doloop_register_get): Likewise for params "head", "tail" and
20642 locals "insn", "first_insn_not_to_check".
20643 (schedule_reg_move): Likewise for local "this_insn".
20644 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
20645 of gen_move_insn for now.
20646 (reset_sched_times): Strengthen local "insn" from rtx to
20648 (permute_partial_schedule): Likewise.
20649 (duplicate_insns_of_cycles): Likewise for local "u_insn".
20650 (dump_insn_location): Likewise for param "insn".
20651 (loop_canon_p): Likewise for local "insn".
20652 (sms_schedule): Likewise.
20653 (print_partial_schedule): Likewise.
20654 (ps_has_conflicts): Likewise.
20656 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20658 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
20659 "tailp" from rtx * to rtx_insn **.
20661 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
20662 from rtx to rtx_insn *.
20663 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
20664 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
20665 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
20667 * modulo-sched.c (const_iteration_count): Strengthen return type
20668 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
20669 use of NULL_RTX with NULL when working with insns.
20670 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
20672 (sms_schedule): Likewise.
20673 * sched-rgn.c (init_ready_list): Likewise, also for locals
20674 "src_head" and "src_next_tail".
20675 (compute_block_dependences): Likewise.
20676 (free_block_dependencies): Likewise.
20677 (debug_rgn_dependencies): Likewise.
20678 (free_rgn_deps): Likewise.
20679 (compute_priorities): Likewise.
20680 (schedule_region): Likewise.
20681 * sel-sched.c (find_ebb_boundaries): Likewise.
20683 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
20684 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
20686 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20688 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
20689 from rtx to rtx_insn *.
20690 (new_seginfo): Likewise for param "insn".
20691 (create_pre_exit): Likewise for locals "last_insn",
20692 "before_return_copy", "return_copy".
20693 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
20696 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20698 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
20699 from rtx to rtx_insn *.
20700 (lra_push_insn): Likewise for 1st param.
20701 (lra_push_insn_and_update_insn_regno_info): Likewise.
20702 (lra_pop_insn): Likewise for return type.
20703 (lra_invalidate_insn_data): Likewise for 1st param.
20704 (lra_set_insn_deleted): Likewise.
20705 (lra_delete_dead_insn): Likewise.
20706 (lra_process_new_insns): Likewise for first 3 params.
20707 (lra_set_insn_recog_data): Likewise for 1st param.
20708 (lra_update_insn_recog_data): Likewise.
20709 (lra_set_used_insn_alternative): Likewise.
20710 (lra_invalidate_insn_regno_info): Likewise.
20711 (lra_update_insn_regno_info): Likewise.
20712 (lra_former_scratch_operand_p): Likewise.
20713 (lra_eliminate_regs_1): Likewise.
20714 (lra_get_insn_recog_data): Likewise.
20716 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
20719 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
20721 (substitute_within_insn): New.
20722 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
20723 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
20724 Replace call to "substitute" with call to substitute_within_insn.
20726 * lra-constraints.c (curr_insn): Strengthen from rtx to
20728 (get_equiv_with_elimination): Likewise for param "insn".
20729 (match_reload): Strengthen params "before" and "after" from rtx *
20731 (emit_spill_move): Likewise for return type. Add a checked cast
20732 to rtx_insn * on result of gen_move_insn for now.
20733 (check_and_process_move): Likewise for local "before". Replace
20734 NULL_RTX with NULL when referring to insns.
20735 (process_addr_reg): Strengthen params "before" and "after" from
20736 rtx * to rtx_insn **.
20737 (insert_move_for_subreg): Likewise.
20738 (simplify_operand_subreg): Strengthen locals "before" and "after"
20739 from rtx to rtx_insn *.
20740 (process_address_1): Strengthen params "before" and "after" from
20741 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
20743 (process_address): Strengthen params "before" and "after" from
20744 rtx * to rtx_insn **.
20745 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
20746 (curr_insn_transform): Strengthen locals "before" and "after"
20747 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
20749 (loc_equivalence_callback): Update cast of "data", changing
20750 resulting type from rtx to rtx_insn *.
20751 (substitute_pseudo_within_insn): New.
20752 (inherit_reload_reg): Strengthen param "insn" from rtx to
20753 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
20754 NULL when referring to insns. Add a checked cast to rtx_insn *
20755 when using usage_insn to invoke lra_update_insn_regno_info.
20756 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
20757 likewise for locals "restore", "save". Add checked casts to
20758 rtx_insn * when using usage_insn to invoke
20759 lra_update_insn_regno_info and lra_process_new_insns. Replace
20760 NULL_RTX with NULL when referring to insns.
20761 (split_if_necessary): Strengthen param "insn" from rtx to
20763 (update_ebb_live_info): Likewise for params "head", "tail" and local
20765 (get_last_insertion_point): Likewise for return type and local "insn".
20766 (get_live_on_other_edges): Likewise for local "last".
20767 (inherit_in_ebb): Likewise for params "head", "tail" and locals
20768 "prev_insn", "next_insn", "restore".
20769 (remove_inheritance_pseudos): Likewise for local "prev_insn".
20770 (undo_optional_reloads): Likewise for local "insn".
20772 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
20774 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
20776 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
20778 (spill_pseudos): Likewise for local "insn".
20779 (init_elimination): Likewise.
20780 (process_insn_for_elimination): Likewise for param "insn".
20782 * lra-lives.c (curr_insn): Likewise.;
20784 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
20785 (remove_pseudos): Likewise for param "insn".
20786 (spill_pseudos): Likewise for local "insn".
20787 (lra_final_code_change): Likewise for locals "insn", "curr".
20789 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
20790 (lra_set_insn_deleted): Likewise.
20791 (lra_delete_dead_insn): Likewise, and for local "prev".
20792 (new_insn_reg): Likewise for param "insn".
20793 (lra_set_insn_recog_data): Likewise.
20794 (lra_update_insn_recog_data): Likewise.
20795 (lra_set_used_insn_alternative): Likewise.
20796 (get_insn_freq): Likewise.
20797 (invalidate_insn_data_regno_info): Likewise.
20798 (lra_invalidate_insn_regno_info): Likewise.
20799 (lra_update_insn_regno_info): Likewise.
20800 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
20802 (lra_push_insn_1): Strengthen param "insn" from rtx to
20804 (lra_push_insn): Likewise.
20805 (lra_push_insn_and_update_insn_regno_info): Likewise.
20806 (lra_pop_insn): Likewise for return type and local "insn".
20807 (push_insns): Likewise for params "from", "to", and local "insn".
20808 (setup_sp_offset): Likewise for params "from", "last" and locals
20810 (lra_process_new_insns): Likewise for params "insn", "before",
20811 "after" and local "last".
20812 (struct sloc): Likewise for field "insn".
20813 (lra_former_scratch_operand_p): Likewise for param "insn".
20814 (remove_scratches): Likewise for locals "insn", "last".
20815 (check_rtl): Likewise for local "insn".
20816 (add_auto_inc_notes): Likewise for param "insn".
20817 (update_inc_notes): Likewise for local "insn".
20818 (lra): Replace NULL_RTX with NULL when referring to insn.
20820 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20822 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
20824 (resolve_reg_notes): Likewise.
20825 (resolve_simple_move): Likewise for return type, param "insn", and
20826 locals "insns", "minsn".
20827 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
20828 (resolve_use): Likewise.
20829 (resolve_debug): Likewise.
20830 (find_decomposable_shift_zext): Likewise.
20831 (resolve_shift_zext): Likewise for return type, param "insn", and
20832 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
20833 (decompose_multiword_subregs): Likewise for local "insn",
20834 "orig_insn", "decomposed_shift", "end".
20836 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20838 * basic-block.h (basic_block split_edge_and_insert): Strengthen
20839 param "insns" from rtx to rtx_insn *.
20841 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
20843 (struct iv_to_split): Likewise.
20844 (loop_exit_at_end_p): Likewise for local "insn".
20845 (split_edge_and_insert): Likewise for param "insns".
20846 (compare_and_jump_seq): Likewise for return type, param "cinsn",
20847 and locals "seq", "jump".
20848 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
20849 "branch_code"; update invocations of compare_and_jump_seq to
20850 eliminate NULL_RTX in favor of NULL.
20851 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
20853 (reset_debug_uses_in_loop): Likewise.
20854 (analyze_insn_to_expand_var): Likewise for param "insn".
20855 (analyze_iv_to_split_insn): Likewise.
20856 (analyze_insns_in_loop): Likewise for local "insn".
20857 (insert_base_initialization): Likewise for param
20858 "insn" and local "seq".
20859 (split_iv): Likewise for param "insn" and local "seq".
20860 (expand_var_during_unrolling): Likewise for param "insn".
20861 (insert_var_expansion_initialization): Likewise for local "seq".
20862 (combine_var_copies_in_loop_exit): Likewise.
20863 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
20865 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
20866 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
20869 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20871 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
20873 (iv_analyze_result): Likewise.
20874 (iv_analyze_expr): Likewise.
20877 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
20878 local "def_insn" from rtx to rtx_insn *.
20879 (get_biv_step_1): Likewise for local "insn".
20880 (iv_analyze_expr): Likewise for param "insn".
20881 (iv_analyze_def): Likewise for local "insn".
20882 (iv_analyze_op): Likewise for param "insn".
20883 (iv_analyze): Likewise.
20884 (iv_analyze_result): Likewise.
20886 (suitable_set_for_replacement): Likewise.
20887 (simplify_using_initial_values): Likewise for local "insn".
20888 (iv_number_of_iterations): Likewise for param "insn".
20889 (check_simple_exit): Add checked cast to rtx_insn when invoking
20890 iv_number_of_iterations for now (until get_condition is
20893 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
20894 "insn" from rtx to rtx_insn *.
20895 (analyze_insns_in_loop): Likewise for local "insn".
20897 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20899 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
20901 (struct invariant): Likewise.
20902 (hash_invariant_expr_1): Likewise for param "insn".
20903 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
20904 (find_exits): Likewise for local "insn".
20905 (create_new_invariant): Likewise for param "insn".
20906 (check_dependencies): Likewise.
20907 (find_invariant_insn): Likewise.
20908 (record_uses): Likewise.
20909 (find_invariants_insn): Likewise.
20910 (find_invariants_bb): Likewise for local "insn".
20911 (get_pressure_class_and_nregs): Likewise for param "insn".
20912 (calculate_loop_reg_pressure): Likewise for local "insn".
20914 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20916 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
20918 (add_test): Likewise for locals "seq", "jump".
20919 (doloop_modify): Likewise for locals "sequence", "jump_insn".
20921 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20923 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
20925 (rebuild_jump_labels_chain): Likewise for param "chain".
20927 * cfgexpand.c (pass_expand::execute): Add checked cast to
20928 rtx_insn * when calling rebuild_jump_labels_chain in region where
20929 we know e->insns.r is non-NULL.
20931 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
20933 (rebuild_jump_labels): Likewise.
20934 (rebuild_jump_labels_chain): Likewise for param "chain".
20935 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
20936 (init_label_info): Likewise for param "f".
20937 (maybe_propagate_label_ref): Likewise for params "jump_insn",
20938 "prev_nonjump_insn".
20939 (mark_all_labels): Likewise for param "f" and locals "insn",
20940 "prev_nonjump_insn".
20942 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20944 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
20945 from rtx to rtx_insn *insn.
20946 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
20947 (ira_add_allocno_copy): Likewise.
20948 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
20950 (ira_create_copy): Likewise.
20951 (ira_add_allocno_copy): Likewise.
20952 (create_bb_allocnos): Likewise for local "insn".
20953 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
20954 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
20955 process_regs_for_copy for rtx_insn * param.
20956 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
20957 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
20958 process_regs_for_copy for rtx_insn * param.
20959 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
20960 * ira-costs.c (record_reg_classes): Likewise for param "insn".
20961 (record_operand_costs): Likewise.
20962 (scan_one_insn): Likewise for return type, and for param "insn".
20963 (process_bb_for_costs): Likewise for local "insn".
20964 (process_bb_node_for_hard_reg_moves): Likewise.
20965 * ira-emit.c (struct move): Likewise for field "insn".
20966 (create_move): Eliminate use of NULL_RTX when dealing with an
20968 (emit_move_list): Strengthen return type and locals "result",
20969 "insn" from rtx to rtx_insn *insn.
20970 (emit_moves): Likewise for locals "insns", "tmp".
20971 (ira_emit): Likewise for local "insn".
20972 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
20974 (find_call_crossed_cheap_reg): Likewise.
20975 (process_bb_node_lives): Likewise for local "insn".
20976 * ira.c (decrease_live_ranges_number): Likewise.
20977 (compute_regs_asm_clobbered): Likewise.
20978 (build_insn_chain): Likewise.
20979 (find_moveable_pseudos): Likewise, also locals "def_insn",
20980 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
20981 to rtx_insn **. Add a checked cast when assigning from
20982 "closest_use" into closest_uses array in a region where we know
20983 it's a non-NULL insn.
20984 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
20986 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
20987 "last_interesting_insn", "uin".
20988 (move_unallocated_pseudos): Likewise for locals "def_insn",
20989 "move_insn", "newinsn".
20991 2014-08-22 David Malcolm <dmalcolm@redhat.com>
20993 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
20994 Strengthen locals "done_label", "do_error" from rtx to
20996 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
20997 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
20999 (ubsan_expand_si_overflow_neg_check): Likewise for locals
21000 "done_label", "do_error" to rtx_code_label * and local "last" to
21002 (ubsan_expand_si_overflow_mul_check): Likewise for locals
21003 "done_label", "do_error", "large_op0", "small_op0_large_op1",
21004 "one_small_one_large", "both_ops_large", "after_hipart_neg",
21005 "after_lopart_neg", "do_overflow", "hipart_different" to
21006 rtx_code_label * and local "last" to rtx_insn *.
21008 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21010 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
21011 "insn" and "move_insn" from rtx to rtx_insn *.
21013 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21015 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
21017 (cheap_bb_rtx_cost_p): Likewise.
21018 (first_active_insn): Likewise for return type and local "insn".
21019 (last_active_insn): Likewise for return type and locals "insn",
21021 (struct noce_if_info): Likewise for fields "jump", "insn_a",
21023 (end_ifcvt_sequence): Likewise for return type and locals "insn",
21025 (noce_try_move): Likewise for local "seq".
21026 (noce_try_store_flag): Likewise.
21027 (noce_try_store_flag_constants): Likewise.
21028 (noce_try_addcc): Likewise.
21029 (noce_try_store_flag_mask): Likewise.
21030 (noce_try_cmove): Likewise.
21031 (noce_try_minmax): Likewise.
21032 (noce_try_abs): Likewise.
21033 (noce_try_sign_mask): Likewise.
21034 (noce_try_bitop): Likewise.
21035 (noce_can_store_speculate_p): Likewise for local "insn".
21036 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
21038 (check_cond_move_block): Likewise for local "insn".
21039 (cond_move_convert_if_block): Likewise.
21040 (cond_move_process_if_block): Likewise for locals "seq",
21042 (noce_find_if_block): Likewise for local "jump".
21043 (merge_if_block): Likewise for local "last".
21044 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
21045 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
21046 (block_has_only_trap): Likewise for return type and local "trap".
21047 (find_if_case_1): Likewise for local "jump".
21048 (dead_or_predicable): Likewise for locals "head", "end", "jump",
21051 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21053 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
21054 "last_insn", "loop_end" from rtx to rtx_insn *.
21056 * hw-doloop.c (scan_loop): Likewise for local "insn".
21057 (discover_loop): Likewise for param "tail_insn".
21058 (discover_loops): Likewise for local "tail".
21060 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
21061 cast to rtx_insn * when assigning from an rtx local to a
21062 hwloop_info's "last_insn" field.
21064 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21066 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
21067 (add_delay_dependencies): Strengthen local "pro" from rtx to
21069 (recompute_todo_spec): Likewise.
21070 (dep_cost_1): Likewise for locals "insn", "used".
21071 (schedule_insn): Likewise for local "dbg".
21072 (schedule_insn): Likewise for locals "pro", "next".
21073 (unschedule_insns_until): Likewise for local "con".
21074 (restore_pattern): Likewise for local "next".
21075 (estimate_insn_tick): Likewise for local "pro".
21076 (resolve_dependencies): Likewise for local "next".
21077 (fix_inter_tick): Likewise.
21078 (fix_tick_ready): Likewise for local "pro".
21079 (add_to_speculative_block): Likewise for locals "check", "twin",
21081 (sched_extend_bb): Likewise for locals "end", "insn".
21082 (init_before_recovery): Likewise for local "x".
21083 (sched_create_recovery_block): Likewise for local "barrier".
21084 (create_check_block_twin): Likewise for local "pro".
21085 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
21087 (unlink_bb_notes): Update for change to type of bb_header.
21088 Strengthen locals "prev", "label", "note", "next" from rtx to
21090 (clear_priorities): Likewise for local "pro".
21092 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21094 * gcse.c (struct occr): Strengthen field "insn" from rtx to
21096 (test_insn): Likewise for this global.
21097 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
21099 (oprs_anticipatable_p): Likewise.
21100 (oprs_available_p): Likewise.
21101 (insert_expr_in_table): Strengthen param "insn" from rtx to
21103 (hash_scan_set): Likewise.
21104 (hash_scan_clobber): Likewise.
21105 (hash_scan_call): Likewise.
21106 (hash_scan_insn): Likewise.
21107 (compute_hash_table_work): Likewise for local "insn".
21108 (process_insert_insn): Likewise for return type and local "pat".
21109 (insert_insn_end_basic_block): Likewise for locals "new_insn",
21110 "pat", "pat_end", "maybe_cc0_setter".
21111 (pre_edge_insert): Likewise for local "insn".
21112 (pre_insert_copy_insn): Likewise for param "insn".
21113 (pre_insert_copies): Likewise for local "insn".
21114 (struct set_data): Likewise for field "insn".
21115 (single_set_gcse): Likewise for param "insn".
21116 (gcse_emit_move_after): Likewise.
21117 (pre_delete): Likewise for local "insn".
21118 (update_bb_reg_pressure): Likewise for param "from" and local
21120 (should_hoist_expr_to_dom): Likewise for param "from".
21121 (hoist_code): Likewise for local "insn".
21122 (get_pressure_class_and_nregs): Likewise for param "insn".
21123 (calculate_bb_reg_pressure): Likewise for local "insn".
21124 (compute_ld_motion_mems): Likewise.
21126 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21128 * genpeep.c (main): Rename param back from "uncast_ins1" to
21129 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
21132 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
21134 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
21137 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
21138 documentation to state it is only for VSX operations.
21140 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
21141 constraint only active if VSX.
21143 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
21144 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
21145 (lfiwzx): Likewise.
21147 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21149 * fwprop.c (single_def_use_dom_walker::before_dom_children):
21150 Strengthen local "insn" from rtx to rtx_insn *.
21151 (use_killed_between): Likewise for param "target_insn".
21152 (all_uses_available_at): Likewise for param "target_insn" and
21154 (update_df_init): Likewise for params "def_insn", "insn".
21155 (update_df): Likewise for param "insn".
21156 (try_fwprop_subst): Likewise for param "def_insn" and local
21158 (free_load_extend): Likewise for param "insn".
21159 (forward_propagate_subreg): Likewise for param "def_insn" and
21161 (forward_propagate_asm): Likewise for param "def_insn" and local
21163 (forward_propagate_and_simplify): Likewise for param "def_insn"
21164 and local "use_insn".
21165 (forward_propagate_into): Likewise for locals "def_insn" and
21168 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21170 * function.c (emit_initial_value_sets): Strengthen local "seq"
21171 from rtx to rtx_insn *.
21172 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
21174 (instantiate_virtual_regs): Likewise for local "insn".
21175 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
21176 (reorder_blocks_1): Likewise for param "insns" and local "insn".
21177 (expand_function_end): Likewise for locals "insn" and "seq".
21178 (epilogue_done): Likewise for local "insn".
21179 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
21181 (reposition_prologue_and_epilogue_notes): Likewise for locals
21182 "insn", "last", "note", "first".
21183 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
21184 (pass_match_asm_constraints::execute): Likewise for local "insn".
21186 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21188 * output.h (final_scan_insn): Strengthen return type from rtx to
21190 (final_forward_branch_p): Likewise for param.
21191 (current_output_insn): Likewise for this global.
21193 * final.c (rtx debug_insn): Likewise for this variable.
21194 (current_output_insn): Likewise.
21195 (get_attr_length_1): Rename param "insn" to "uncast_insn",
21196 adding "insn" back in as an rtx_insn * with a checked cast, so
21197 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
21199 (compute_alignments): Strengthen local "label" from rtx to
21201 (shorten_branches): Rename param from "first" to "uncast_first",
21202 introducing a new local rtx_insn * "first" using a checked cast to
21203 effectively strengthen "first" from rtx to rtx_insn * without
21204 affecting the type signature. Strengthen locals "insn", "seq",
21205 "next", "label" from rtx to rtx_insn *.
21206 (change_scope): Strengthen param "orig_insn" and local "insn" from
21208 (final_start_function): Rename param from "first" to "uncast_first",
21209 introducing a new local rtx_insn * "first" using a checked cast to
21210 effectively strengthen "first" from rtx to rtx_insn * without
21211 affecting the type signature. Strengthen local "insn" from rtx to
21213 (dump_basic_block_info): Strengthen param "insn" from rtx to
21215 (final): Rename param from "first" to "uncast_first",
21216 introducing a new local rtx_insn * "first" using a checked cast to
21217 effectively strengthen "first" from rtx to rtx_insn * without
21218 affecting the type signature. Strengthen locals "insn", "next"
21219 from rtx to rtx_insn *.
21220 (output_alternate_entry_point): Strengthen param "insn" from rtx to
21222 (call_from_call_insn): Strengthen param "insn" from rtx to
21224 (final_scan_insn): Rename param from "insn" to "uncast_insn",
21225 introducing a new local rtx_insn * "insn" using a checked cast to
21226 effectively strengthen "insn" from rtx to rtx_insn * without
21227 affecting the type signature. Strengthen return type and locals
21228 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
21229 now-redundant checked cast to rtx_insn * from both invocations of
21230 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
21231 introducing a local "call_insn" for use when invoking
21232 call_from_call_insn.
21233 (notice_source_line): Strengthen param "insn" from rtx to
21235 (leaf_function_p): Likewise for local "insn".
21236 (final_forward_branch_p): Likewise.
21237 (leaf_renumber_regs): Likewise for param "first".
21238 (rest_of_clean_state): Likewise for locals "insn" and "next".
21239 (self_recursive_call_p): Likewise for param "insn".
21240 (collect_fn_hard_reg_usage): Likewise for local "insn".
21241 (get_call_fndecl): Likewise for param "insn".
21242 (get_call_cgraph_rtl_info): Likewise.
21243 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
21244 introducing a new local rtx_insn * "insn" using a checked cast to
21245 effectively strengthen "insn" from rtx to rtx_insn * without
21246 affecting the type signature.
21248 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
21249 cast when assigning from param "insn" to current_output_insn.
21250 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
21251 so that we can assign it back to current_output_insn.
21253 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
21255 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
21256 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
21257 atmxt540s and atmxt540sreva devices.
21258 * config/avr/avr-tables.opt: Regenerate.
21259 * config/avr/t-multilib: Regenerate.
21260 * doc/avr-mmcu.texi: Regenerate.
21262 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21264 * expr.c (convert_move): Strengthen local "insns" from rtx to
21266 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
21267 "top_label" from rtx to rtx_code_label *.
21268 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
21270 (emit_single_push_insn): Likewise for locals "prev", "last".
21271 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
21272 to rtx_code_label *.
21273 (store_constructor): Likewise for locals "loop_start", "loop_end".
21274 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
21276 (expand_expr_real_2): Likewise.
21277 (expand_expr_real_1): Strengthen local "label" from rtx to
21280 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21282 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
21283 from rtx to rtx_insn *.
21284 (store_bit_field_1): Likewise.
21285 (extract_bit_field_1): Likewise.
21286 (expand_mult_const): Likewise for local "insns".
21287 (expmed_mult_highpart): Strengthen local "label" from rtx to
21289 (expand_smod_pow2): Likewise.
21290 (expand_sdiv_pow2): Likewise.
21291 (expand_divmod): Strengthen locals "last", "insn" from rtx to
21292 rtx_insn *. Strengthen locals "label", "label1", "label2",
21293 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
21294 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
21295 (emit_store_flag): Likewise.
21296 (emit_store_flag_force): Strengthen local "label" from rtx to
21298 (do_cmp_and_jump): Likewise for param "label".
21300 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21302 * explow.c (force_reg): Strengthen local "insn" from rtx to
21304 (adjust_stack_1): Likewise.
21305 (allocate_dynamic_stack_space): Likewise. Strengthen locals
21306 "final_label", "available_label", "space_available" from rtx to
21308 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
21309 (anti_adjust_stack_and_probe): Likewise.
21311 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21313 * except.h (sjlj_emit_function_exit_after): Strengthen param
21314 "after" from rtx to rtx_insn *. This is only called with
21315 result of get_last_insn (in function.c) so type-change should be
21318 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
21319 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
21320 to rtx_insn *. These fields are only used from except.c so this
21321 type-change should be self-contained to this patch.
21323 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
21324 local "last" from rtx to rtx_insn *.
21325 (dw2_build_landing_pads): Likewise for local "seq".
21326 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
21327 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
21328 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
21330 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
21332 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
21333 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
21334 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
21335 referring to an insn. Strengthen local "dispatch_label" from
21336 rtx to rtx_code_label *.
21337 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
21339 (expand_eh_return): Strengthen local "around_label" from
21340 rtx to rtx_code_label *.
21341 (convert_to_eh_region_ranges): Strengthen locals "iter",
21342 "last_action_insn", "first_no_action_insn",
21343 "first_no_action_insn_before_switch",
21344 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
21346 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21348 * dwarf2out.c (last_var_location_insn): Strengthen this variable
21349 from rtx to rtx_insn *.
21350 (cached_next_real_insn): Likewise.
21351 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
21352 working with insns.
21353 (dwarf2out_var_location): Strengthen locals "next_real",
21354 "next_note", "expected_next_loc_note", "last_start", "insn" from
21357 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21359 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
21360 from rtx to rtx_insn *.
21361 (create_pseudo_cfg): Likewise for local "insn".
21363 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21365 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
21366 from rtx to rtx_insn *.
21367 (df_bb_regno_last_def_find): Likewise.
21369 * df-problems.c (df_rd_bb_local_compute): Likewise.
21370 (df_lr_bb_local_compute): Likewise.
21371 (df_live_bb_local_compute): Likewise.
21372 (df_chain_remove_problem): Likewise.
21373 (df_chain_create_bb): Likewise.
21374 (df_word_lr_bb_local_compute): Likewise.
21375 (df_remove_dead_eq_notes): Likewise for param "insn".
21376 (df_note_bb_compute): Likewise for local "insn".
21377 (simulate_backwards_to_point): Likewise.
21378 (df_md_bb_local_compute): Likewise.
21380 * df-scan.c (df_scan_free_bb_info): Likewise.
21381 (df_scan_start_dump): Likewise.
21382 (df_scan_start_block): Likewise.
21383 (df_install_ref_incremental): Likewise for local "insn".
21384 (df_insn_rescan_all): Likewise.
21385 (df_reorganize_refs_by_reg_by_insn): Likewise.
21386 (df_reorganize_refs_by_insn_bb): Likewise.
21387 (df_recompute_luids): Likewise.
21388 (df_bb_refs_record): Likewise.
21389 (df_update_entry_exit_and_calls): Likewise.
21390 (df_bb_verify): Likewise.
21392 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21394 * ddg.h (struct ddg_node): Strengthen fields "insn" and
21395 "first_note" from rtx to rtx_insn *.
21396 (get_node_of_insn): Likewise for param 2 "insn".
21397 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
21399 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
21401 (mem_write_insn_p): Likewise.
21402 (mem_access_insn_p): Likewise.
21403 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
21404 (def_has_ccmode_p): Likewise for param "insn".
21405 (add_cross_iteration_register_deps): Likewise for locals
21406 "def_insn" and "use_insn".
21407 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
21408 (build_intra_loop_deps): Likewise for local "src_insn".
21409 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
21411 (get_node_of_insn): Likewise for param "insn".
21413 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21415 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
21416 (deletable_insn_p): Strengthen param "insn" from rtx to
21417 rtx_insn *. Add checked cast to rtx_call_insn when invoking
21418 find_call_stack_args, since this is guarded by CALL_P (insn).
21419 (marked_insn_p): Strengthen param "insn" from rtx to
21421 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
21422 invoking find_call_stack_args, since this is guarded by
21424 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
21425 rtx_insn *; we know this is an insn since this was called by
21426 mark_nonreg_stores.
21427 (mark_nonreg_stores_2): Likewise.
21428 (mark_nonreg_stores): Strengthen param "insn" from rtx to
21430 (find_call_stack_args): Strengthen param "call_insn" from rtx to
21431 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
21433 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
21434 from rtx to rtx_insn *.
21435 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
21436 "next", "ref_insn".
21437 (delete_unmarked_insns): Likewise for locals "insn", "next".
21438 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
21439 (mark_reg_dependencies): Likewise for param "insn".
21440 (rest_of_handle_ud_dce): Likewise for local "insn".
21441 (word_dce_process_block): Likewise.
21442 (dce_process_block): Likewise.
21444 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21446 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
21447 from rtx to rtx_insn *.
21448 (struct change_cc_mode_args): Likewise for field "insn".
21449 (this_insn): Strengthen from rtx to rtx_insn *.
21450 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
21452 (validate_canon_reg): Strengthen param "insn" from rtx to
21454 (canon_reg): Likewise.
21455 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
21457 (record_jump_equiv): Strengthen param "insn" from rtx to
21459 (try_back_substitute_reg): Likewise, also for locals "prev",
21461 (find_sets_in_insn): Likewise for param "insn".
21462 (canonicalize_insn): Likewise.
21463 (cse_insn): Likewise. Add a checked cast.
21464 (invalidate_from_clobbers): Likewise for param "insn".
21465 (invalidate_from_sets_and_clobbers): Likewise.
21466 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
21468 (cse_prescan_path): Strengthen local "insn" from rtx to
21470 (cse_extended_basic_block): Likewise for locals "insn" and
21472 (cse_main): Likewise for param "f".
21473 (check_for_label_ref): Likewise for local "insn".
21474 (set_live_p): Likewise for second param ("insn").
21475 (insn_live_p): Likewise for first param ("insn") and for local
21477 (cse_change_cc_mode_insn): Likewise for first param "insn".
21478 (cse_change_cc_mode_insns): Likewise for first and second params
21480 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
21482 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
21485 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
21486 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21487 Anna Tikhonova <anna.tikhonova@intel.com>
21488 Ilya Tocar <ilya.tocar@intel.com>
21489 Andrey Turetskiy <andrey.turetskiy@intel.com>
21490 Ilya Verbin <ilya.verbin@intel.com>
21491 Kirill Yukhin <kirill.yukhin@intel.com>
21492 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21494 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
21496 * config/i386/sse.md
21497 (define_mode_iterator VI248_AVX2): Delete.
21498 (define_mode_iterator VI2_AVX2_AVX512BW): New.
21499 (define_mode_iterator VI48_AVX2): Ditto.
21500 (define_insn <shift_insn><mode>3): Delete.
21501 (define_insn "<shift_insn><mode>3<mask_name>" with
21502 VI2_AVX2_AVX512BW): New.
21503 (define_insn "<shift_insn><mode>3<mask_name>" with
21506 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
21507 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21508 Anna Tikhonova <anna.tikhonova@intel.com>
21509 Ilya Tocar <ilya.tocar@intel.com>
21510 Andrey Turetskiy <andrey.turetskiy@intel.com>
21511 Ilya Verbin <ilya.verbin@intel.com>
21512 Kirill Yukhin <kirill.yukhin@intel.com>
21513 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21515 * config/i386/sse.md
21516 (define_mode_iterator VI4F_BRCST32x2): New.
21517 (define_mode_attr 64x2_mode): Ditto.
21518 (define_mode_attr 32x2mode): Ditto.
21519 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
21520 with VI4F_BRCST32x2): Ditto.
21521 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
21522 with V16FI mode iterator): Ditto.
21523 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
21524 with V16FI): Ditto.
21525 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
21526 with VI8F_BRCST64x2): Ditto.
21528 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
21529 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21530 Anna Tikhonova <anna.tikhonova@intel.com>
21531 Ilya Tocar <ilya.tocar@intel.com>
21532 Andrey Turetskiy <andrey.turetskiy@intel.com>
21533 Ilya Verbin <ilya.verbin@intel.com>
21534 Kirill Yukhin <kirill.yukhin@intel.com>
21535 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
21537 * config/i386/sse.md
21538 (define_mode_iterator VI8_AVX512VL): New.
21539 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
21541 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
21543 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
21544 (define_mode_iterator V48_AVX512VL): New.
21545 (define_mode_iterator V12_AVX512VL): Ditto.
21546 (define_insn <avx512>_load<mode>_mask): Split into two similar
21547 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
21548 Refactor output template.
21549 (define_insn "<avx512>_store<mode>_mask"): Ditto.
21551 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21553 * cprop.c (struct occr): Strengthen field "insn" from rtx to
21555 (reg_available_p): Likewise for param "insn".
21556 (insert_set_in_table): Likewise.
21557 (hash_scan_set): Likewise.
21558 (hash_scan_insn): Likewise.
21559 (make_set_regs_unavailable): Likewise.
21560 (compute_hash_table_work): Likewise for local "insn".
21561 (reg_not_set_p): Strengthen param "insn" from const_rtx to
21563 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
21564 (try_replace_reg): Likewise.
21565 (find_avail_set): Likewise.
21566 (cprop_jump): Likewise for params "setcc", "jump".
21567 (constprop_register): Likewise for param "insn".
21568 (cprop_insn): Likewise.
21569 (do_local_cprop): Likewise.
21570 (local_cprop_pass): Likewise for local "insn".
21571 (bypass_block): Likewise for params "setcc" and "jump".
21572 (bypass_conditional_jumps): Likewise for locals "setcc" and
21574 (one_cprop_pass): Likewise for local "insn".
21576 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21578 * compare-elim.c (struct comparison_use): Strengthen field "insn"
21579 from rtx to rtx_insn *.
21580 (struct comparison): Likewise, also for field "prev_clobber".
21581 (conforming_compare): Likewise for param "insn".
21582 (arithmetic_flags_clobber_p): Likewise.
21583 (find_flags_uses_in_insn): Likewise.
21584 (find_comparison_dom_walker::before_dom_children): Likewise for
21585 locals "insn", "next", "last_clobber".
21586 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
21588 2014-08-22 David Malcolm <dmalcolm@redhat.com>
21590 * combine-stack-adj.c (struct csa_reflist): Strengthen field
21591 "insn" from rtx to rtx_insn *.
21592 (single_set_for_csa): Likewise for param "insn".
21593 (record_one_stack_ref): Likewise.
21594 (try_apply_stack_adjustment): Likewise.
21595 (struct record_stack_refs_data): Likewise for field "insn".
21596 (maybe_move_args_size_note): Likewise for params "last" and "insn".
21597 (prev_active_insn_bb): Likewise for return type and param "insn".
21598 (next_active_insn_bb): Likewise.
21599 (force_move_args_size_note): Likewise for params "prev" and "last"
21600 and locals "test", "next_candidate", "prev_candidate".
21601 (combine_stack_adjustments_for_block): Strengthen locals
21602 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
21605 2014-08-21 David Malcolm <dmalcolm@redhat.com>
21607 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
21608 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
21609 (subst_insn): Likewise for this variable.
21610 (added_links_insn): Likewise.
21611 (struct insn_link): Likewise for field "insn".
21612 (alloc_insn_link): Likewise for param "insn".
21613 (struct undobuf): Likewise for field "other_insn".
21614 (find_single_use): Likewise for param "insn" and local "next".
21615 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
21616 (delete_noop_moves): Likewise for locals "insn", "next".
21617 (create_log_links): Likewise for locals "insn", "use_insn".
21618 Strengthen local "next_use" from rtx * to rtx_insn **.
21619 (insn_a_feeds_b): Likewise for params "a", "b".
21620 (combine_instructions): Likewise for param "f" and locals "insn",
21621 "next", "prev", "first", "last_combined_insn", "link", "link1",
21622 "temp". Replace use of NULL_RTX with NULL when referring to
21624 (setup_incoming_promotions): Likewise for param "first"
21625 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
21626 (can_combine_p): Likewise for params "insn", "i3", "pred",
21627 "pred2", "succ", "succ2" and for local "p".
21628 (combinable_i3pat): Likewise for param "i3".
21629 (cant_combine_insn_p): Likewise for param "insn".
21630 (likely_spilled_retval_p): Likewise.
21631 (adjust_for_new_dest): Likewise.
21632 (update_cfg_for_uncondjump): Likewise, also for local "insn".
21633 (try_combine): Likewise for return type and for params "i3", "i2",
21634 "i1", "i0", "last_combined_insn", and for locals "insn",
21635 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
21636 "i0_insn". Eliminate local "tem" in favor of new locals
21637 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
21638 checked cast for now to rtx_insn * on the return type of
21639 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
21641 (find_split_point): Strengthen param "insn" from rtx to
21643 (simplify_set): Likewise for local "other_insn".
21644 (recog_for_combine): Likewise for param "insn".
21645 (record_value_for_reg): Likewise.
21646 (record_dead_and_set_regs_1): Likewise for local
21647 "record_dead_insn".
21648 (record_dead_and_set_regs): Likewise for param "insn".
21649 (record_promoted_value): Likewise.
21650 (check_promoted_subreg): Likewise.
21651 (get_last_value_validate): Likewise.
21652 (reg_dead_at_p): Likewise.
21653 (move_deaths): Likewise for param "to_insn".
21654 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
21655 and locals "place", "place2", "cc0_setter". Eliminate local "tem
21656 in favor of new locals "tem_note" and "tem_insn", the latter being
21658 (distribute_links): Strengthen locals "place", "insn" from rtx to
21661 2014-08-21 David Malcolm <dmalcolm@redhat.com>
21663 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
21665 (can_delete_label_p): Require a const rtx_code_label * rather than
21667 (delete_insn): Add checked cast to rtx_code_label * when we know
21668 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
21670 (delete_insn_chain): Strengthen locals "prev" and "current" from
21671 rtx to rtx_insn *. Add a checked cast when assigning from
21672 "finish" (strengthening the params will come later). Add a
21673 checked cast to rtx_note * in region where we know
21675 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
21677 (compute_bb_for_insn): Likewise.
21678 (free_bb_for_insn): Likewise for local "insn".
21679 (compute_bb_for_insn): Likewise.
21680 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
21681 local "insn" from rtx to rtx_insn *
21682 (flow_active_insn_p): Require a const rtx_insn * rather than a
21684 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
21686 (can_fallthru): Likewise for locals "insn" and "insn2".
21687 (bb_note): Likewise for local "note".
21688 (first_insn_after_basic_block_note): Likewise for local "note" and
21690 (rtl_split_block): Likewise for locals "insn" and "next".
21691 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
21693 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
21694 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
21696 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
21697 them), "kill_from", "barrier", "new_insn".
21698 (patch_jump_insn): Likewise for params "insn", "old_label".
21699 (redirect_branch_edge): Likewise for locals "old_label", "insn".
21700 (force_nonfallthru_and_redirect): Likewise for locals "insn",
21701 "old_label", "new_label".
21702 (rtl_tidy_fallthru_edge): Likewise for local "q".
21703 (rtl_split_edge): Likewise for locals "before", "last".
21704 (commit_one_edge_insertion): Likewise for locals "before",
21705 "after", "insns", "tmp", "last", adding a checked cast where
21706 currently necessary.
21707 (commit_edge_insertions): Likewise.
21708 (rtl_dump_bb): Likewise for locals "insn", "last".
21709 (print_rtl_with_bb): Likewise for local "x".
21710 (rtl_verify_bb_insns): Likewise for local "x".
21711 (rtl_verify_bb_pointers): Likewise for local "insn".
21712 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
21714 (rtl_verify_fallthru): Likewise for local "insn".
21715 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
21716 (purge_dead_edges): Likewise for local "insn".
21717 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
21718 (skip_insns_after_block): Likewise for return type and for locals
21719 "insn", "last_insn", "next_head", "prev".
21720 (record_effective_endpoints): Likewise for locals "next_insn",
21722 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
21723 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
21724 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
21725 (duplicate_insn_chain): For now, add checked cast from rtx to
21726 rtx_insn * when returning insn.
21727 (cfg_layout_duplicate_bb): Likewise for local "insn".
21728 (cfg_layout_delete_block): Likewise for locals "insn", "next",
21729 "prev", "remaints".
21730 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
21731 (rtl_block_empty_p): Likewise.
21732 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
21733 "split_point", "last".
21734 (rtl_block_ends_with_call_p): Likewise for local "insn".
21735 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
21737 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
21738 "split_at_insn" from rtx to rtx_insn *.
21739 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
21740 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
21741 to const rtx_insn *.
21742 (rtl_account_profile_record): Likewise.
21744 2014-08-21 David Malcolm <dmalcolm@redhat.com>
21746 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
21748 (average_num_loop_insns): Likewise.
21749 (init_set_costs): Likewise for local "seq".
21750 (seq_cost): Likewise for param "seq", from const_rtx to const
21753 2014-08-21 David Malcolm <dmalcolm@redhat.com>
21755 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
21758 2014-08-21 David Malcolm <dmalcolm@redhat.com>
21760 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
21761 "f1" and "f2" from rtx * to rtx_insn **.
21762 (flow_find_head_matching_sequence): Likewise.
21764 * cfgcleanup.c (try_simplify_condjump): Strengthen local
21765 "cbranch_insn" from rtx to rtx_insn *.
21766 (thread_jump): Likewise for local "insn".
21767 (try_forward_edges): Likewise for local "last".
21768 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
21769 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
21771 (can_replace_by): Likewise for params "i1", "i2".
21772 (old_insns_match_p): Likewise.
21773 (merge_notes): Likewise.
21774 (walk_to_nondebug_insn): Likewise for param "i1".
21775 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
21776 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
21777 "afterlast1", "afterlast2" from rtx to rtx_insn *.
21778 (flow_find_head_matching_sequence): Strengthen params "f1" and
21779 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
21780 "last1", "last2", "beforelast1", "beforelast2" from rtx to
21782 (outgoing_edges_match): Likewise for locals "last1", "last2".
21783 (try_crossjump_to_edge): Likewise for local "insn".
21784 Replace call to for_each_rtx with for_each_rtx_in_insn.
21786 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
21787 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
21788 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
21789 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
21790 (try_optimize_cfg): Strengthen local "last" from rtx to
21792 (delete_dead_jumptables): Likewise for locals "insn", "next",
21795 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
21796 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
21797 "rtx else_first_tail", to reflect the basic-block.h changes above.
21799 2014-08-21 David Malcolm <dmalcolm@redhat.com>
21801 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
21803 (purge_dead_tablejump_edges): Likewise.
21804 (find_bb_boundaries): Likewise for locals "insn", "end",
21805 "flow_transfer_insn".
21807 2014-08-21 David Malcolm <dmalcolm@redhat.com>
21809 * caller-save.c (save_call_clobbered_regs): Strengthen locals
21810 "ins" and "prev" from rtx to rtx_insn *.
21812 2014-08-21 David Malcolm <dmalcolm@redhat.com>
21814 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
21816 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
21817 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
21819 (load_register_parameters): Likewise for local "before_arg".
21820 (check_sibcall_argument_overlap): Likewise for param "insn".
21821 (expand_call): Likewise for locals "normal_call_insns",
21822 "tail_call_insns", "insns", "before_call", "after_args",
21823 "before_arg", "last", "prev". Strengthen one of the "last" from
21824 rtx to rtx_call_insn *.
21825 (fixup_tail_calls): Strengthen local "insn" from rtx to
21827 (emit_library_call_value_1): Likewise for locals "before_call" and
21830 2014-08-21 David Malcolm <dmalcolm@redhat.com>
21832 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
21833 and "last" from rtx to rtx_insn *.
21834 (expand_builtin_nonlocal_goto): Likewise for local "insn".
21835 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
21837 (expand_errno_check): Strengthen local "lab" from rtx to
21839 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
21841 (expand_builtin_mathfn_2): Likewise.
21842 (expand_builtin_mathfn_ternary): Likewise.
21843 (expand_builtin_mathfn_3): Likewise.
21844 (expand_builtin_interclass_mathfn): Likewise for local "last".
21845 (expand_builtin_int_roundingfn): Likewise for local "insns".
21846 (expand_builtin_int_roundingfn_2): Likewise.
21847 (expand_builtin_strlen): Likewise for local "before_strlen".
21848 (expand_builtin_strncmp): Likewise for local "seq".
21849 (expand_builtin_signbit): Likewise for local "last".
21850 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
21851 from rtx to rtx_code_label *.
21852 (expand_stack_restore): Strengthen local "prev" from rtx to
21855 2014-08-21 David Malcolm <dmalcolm@redhat.com>
21857 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
21859 (struct btr_def_s): Likewise.
21860 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
21862 (add_btr_def): Likewise.
21863 (new_btr_user): Likewise.
21864 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
21866 (link_btr_uses): Likewise.
21867 (move_btr_def): Likewise for locals "insp", "old_insn",
21868 "new_insn". Add checked cast to rtx_insn * for now on result of
21870 (can_move_up): Strengthen param "insn" from const_rtx to
21873 2014-08-21 David Malcolm <dmalcolm@redhat.com>
21875 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
21877 (get_uncond_jump_length): Likewise for locals "label", "jump".
21878 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
21880 (add_labels_and_missing_jumps): Likewise for local "new_jump".
21881 (fix_up_fall_thru_edges): Likewise for local "old_jump".
21882 (find_jump_block): Likewise for local "insn".
21883 (fix_crossing_conditional_branches): Likewise for locals
21884 "old_jump", "new_jump".
21885 (fix_crossing_unconditional_branches): Likewise for locals
21886 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
21887 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
21889 2014-08-21 David Malcolm <dmalcolm@redhat.com>
21891 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
21893 (struct mem_insn): Likewise for field "insn".
21894 (reg_next_use): Strengthen from rtx * to rtx_insn **.
21895 (reg_next_inc_use): Likewise.
21896 (reg_next_def): Likewise.
21897 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
21898 from rtx to rtx_insn *.
21899 (move_insn_before): Likewise for param "next_insn" and local "insns".
21900 (attempt_change): Likewise for local "mov_insn".
21901 (try_merge): Likewise for param "last_insn".
21902 (get_next_ref): Likewise for return type and local "insn".
21903 Strengthen param "next_array" from rtx * to rtx_insn **.
21904 (parse_add_or_inc): Strengthen param "insn" from rtx to
21906 (find_inc): Likewise for locals "insn" and "other_insn" (three of
21908 (merge_in_block): Likewise for locals "insn", "curr",
21910 (pass_inc_dec::execute): Update allocations of the arrays to
21911 reflect the stronger types.
21913 2014-08-21 David Malcolm <dmalcolm@redhat.com>
21915 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
21916 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
21917 from rtx to rtx_code_label *.
21919 2014-08-21 David Malcolm <dmalcolm@redhat.com>
21921 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
21924 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
21926 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
21927 generated a warning and prevented bootstrapping the compiler.
21929 2014-08-21 David Malcolm <dmalcolm@redhat.com>
21931 * rtl.h (delete_related_insns): Strengthen return type from rtx to
21934 * jump.c (delete_related_insns): Likewise, also for locals "next"
21937 2014-08-21 David Malcolm <dmalcolm@redhat.com>
21939 * genautomata.c (output_internal_insn_latency_func): When writing
21940 the function "internal_insn_latency" to insn-automata.c,
21941 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
21942 allowing the optional guard function of (define_bypass) clauses to
21943 expect a pair of rtx_insn *, rather than a pair of rtx.
21944 (output_insn_latency_func): When writing the function
21945 "insn_latency", add an "uncast_" prefix to params "insn" and
21946 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
21947 using checked casts from the params, thus enabling the above
21948 change to the generated "internal_insn_latency" function.
21950 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
21952 PR tree-optimization/62091
21953 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
21954 handle correctly arrays.
21955 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
21956 inheritance binfos.
21957 (record_known_type): Walk into inner type.
21958 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
21959 condition on no type changes.
21961 2014-08-21 David Malcolm <dmalcolm@redhat.com>
21963 * genattrtab.c (write_attr_get): Within the generated get_attr_
21964 functions, rename param "insn" to "uncast_insn" and reintroduce
21965 "insn" as an local rtx_insn * using a checked cast, so that "insn"
21966 is an rtx_insn * within insn-attrtab.c
21968 2014-08-21 David Malcolm <dmalcolm@redhat.com>
21970 * output.h (peephole): Strengthen return type from rtx to
21972 * rtl.h (delete_for_peephole): Likewise for both params.
21973 * genpeep.c (main): In generated "peephole" function, strengthen
21974 return type and local "insn" from rtx to rtx_insn *. For now,
21975 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
21976 rtx_insn *, with a checked cast.
21977 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
21978 locals "insn", "next", "prev" from rtx to rtx_insn *.
21980 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
21982 PR tree-optimization/62112
21983 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
21984 * gimple-iterator.h (gsi_replace): Return bool.
21985 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
21986 moved from ref_may_alias_global_p.
21987 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
21989 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
21990 (stmt_kills_ref_p_1): Rename...
21991 (stmt_kills_ref_p): ... to this.
21992 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
21993 stmt_kills_ref_p): Declare.
21994 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
21995 Move the self-assignment case...
21996 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
21998 2014-08-21 David Malcolm <dmalcolm@redhat.com>
22000 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
22002 * emit-rtl.c (try_split): Likewise, also for locals "before" and
22003 "after". For now, don't strengthen param "trial", which requires
22004 adding checked casts when returning it.
22006 2014-08-21 David Malcolm <dmalcolm@redhat.com>
22008 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
22009 "label" from rtx to rtx_code_label *. Strengthen param 1 of
22010 "var_location" hook from rtx to rtx_insn *.
22011 (debug_nothing_rtx): Delete in favor of...
22012 (debug_nothing_rtx_code_label): New prototype.
22013 (debug_nothing_rtx_rtx): Delete unused prototype.
22014 (debug_nothing_rtx_insn): New prototype.
22016 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
22017 invoking debug_hooks->var_location (in two places, one in a NOTE
22018 case of a switch statement, the other guarded by a CALL_P
22019 conditional. Add checked cast to rtx_code_label * when invoking
22020 debug_hooks->label (within CODE_LABEL case of switch statement).
22022 * dbxout.c (dbx_debug_hooks): Update "label" hook from
22023 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
22024 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
22025 (xcoff_debug_hooks): Likewise.
22026 * debug.c (do_nothing_debug_hooks): Likewise.
22027 (debug_nothing_rtx): Delete in favor of...
22028 (debug_nothing_rtx_insn): New function.
22029 (debug_nothing_rtx_rtx): Delete unused function.
22030 (debug_nothing_rtx_code_label): New function.
22031 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
22032 debug_nothing_rtx to debug_nothing_rtx_code_label.
22033 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
22035 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
22036 debug_nothing_rtx to debug_nothing_rtx_insn.
22037 (sdbout_label): Strengthen param "insn" from rtx to
22039 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
22040 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
22041 "var_location" hook from debug_nothing_rtx to
22042 debug_nothing_rtx_insn.
22044 2014-08-21 David Malcolm <dmalcolm@redhat.com>
22046 * recog.h (insn_output_fn): Update this function typedef to match
22047 the changes below to the generated output functions, strengthening
22048 the 2nd param from rtx to rtx_insn *.
22050 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
22051 insn when invoking an output function, to match the new signature
22052 of insn_output_fn with a stronger second param.
22054 * genconditions.c (write_header): In the generated code for
22055 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
22056 to match the other changes in this patch.
22058 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
22059 the generated "gen_" functions from rtx to rtx_insn * within their
22062 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
22063 the subfunctions within the generated "recog_", "split", "peephole2"
22064 function trees from rtx to rtx_insn *. For now, the top-level
22065 generated functions ("recog", "split", "peephole2") continue to
22066 take a plain rtx for "insn", to avoid introducing dependencies on
22067 other patches. Rename this 2nd param from "insn" to
22068 "uncast_insn", and reintroduce "insn" as a local variable of type
22069 rtx_insn *, initialized at the top of the generated function with
22070 a checked cast on "uncast_insn".
22071 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
22072 the generated "gen_" functions from rtx to rtx_insn * within their
22075 * genoutput.c (process_template): Strengthen the 2nd param within
22076 the generated "output_" functions "insn" from rtx to rtx_insn *.
22078 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
22080 * tree-profile.c (tree_profiling): Skip external functions
22081 when doing coverage instrumentation.
22082 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
22084 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22086 * config/rs6000/altivec.h (vec_cpsgn): New #define.
22087 (vec_mergee): Likewise.
22088 (vec_mergeo): Likewise.
22089 (vec_cntlz): Likewise.
22090 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
22091 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
22092 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
22093 VMRGEW, and VMRGOW.
22094 * doc/extend.texi: Document various forms of vec_cpsgn,
22095 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
22096 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
22097 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
22098 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
22099 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
22101 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22103 * config/rs6000/rs6000.c (context.h): New include.
22104 (tree-pass.h): Likewise.
22105 (make_pass_analyze_swaps): New decl.
22106 (rs6000_option_override): Register pass_analyze_swaps.
22107 (swap_web_entry): New subsclass of web_entry_base (df.h).
22108 (special_handling_values): New enum.
22109 (union_defs): New function.
22110 (union_uses): Likewise.
22111 (insn_is_load_p): Likewise.
22112 (insn_is_store_p): Likewise.
22113 (insn_is_swap_p): Likewise.
22114 (rtx_is_swappable_p): Likewise.
22115 (insn_is_swappable_p): Likewise.
22116 (chain_purpose): New enum.
22117 (chain_contains_only_swaps): New function.
22118 (mark_swaps_for_removal): Likewise.
22119 (swap_const_vector_halves): Likewise.
22120 (adjust_subreg_index): Likewise.
22121 (permute_load): Likewise.
22122 (permute_store): Likewise.
22123 (handle_special_swappables): Likewise.
22124 (replace_swap_with_copy): Likewise.
22125 (dump_swap_insn_table): Likewise.
22126 (rs6000_analyze_swaps): Likewise.
22127 (pass_data_analyze_swaps): New pass_data.
22128 (pass_analyze_swaps): New rtl_opt_pass.
22129 (make_pass_analyze_swaps): New function.
22130 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
22132 2014-08-21 David Malcolm <dmalcolm@redhat.com>
22134 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
22135 type from rtx to rtx_insn *.
22136 (create_copy_of_insn_rtx): Likewise.
22137 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
22138 (create_copy_of_insn_rtx): Likewise, also for local "res".
22140 2014-08-21 David Malcolm <dmalcolm@redhat.com>
22142 * rtl.h (find_first_parameter_load): Strengthen return type from
22144 * rtlanal.c (find_first_parameter_load): Strengthen return type
22145 from rtx to rtx_insn *. Add checked cast for now, to postpone
22146 strengthening the params.
22148 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
22151 * diagnostic.c: Set default caret.
22152 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
22154 * diagnostic.h (struct diagnostic_context):
22156 2014-08-21 David Malcolm <dmalcolm@redhat.com>
22158 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
22159 (sel_bb_head): Strengthen return type insn_t (currently just an
22160 rtx) to rtx_insn *.
22161 (sel_bb_end): Likewise.
22163 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
22164 (sel_bb_head): Strengthen return type and local "head" from
22165 insn_t (currently just an rtx) to rtx_insn *.
22166 (sel_bb_end): Likewise for return type.
22167 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
22170 2014-08-21 David Malcolm <dmalcolm@redhat.com>
22172 * basic-block.h (get_last_bb_insn): Strengthen return type from
22174 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
22177 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
22180 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
22182 (diagnostic_report_diagnostic): ... from here.
22183 * toplev.c (general_init): Move code to c-family.
22185 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22187 * df.h (web_entry_base): Replace existing struct web_entry with a
22188 new class web_entry_base with only the predecessor member.
22189 (unionfind_root): Remove declaration and move to class member.
22190 (unionfind_union): Remove declaration and move to friend
22192 (union_defs): Remove declaration.
22193 * web.c (web_entry_base::unionfind_root): Modify to be member
22194 function and adjust accessors.
22195 (unionfind_union): Modify to be friend function and adjust
22197 (web_entry): New subclass of web_entry_base containing the reg
22199 (union_match_dups): Modify for struct -> class changes.
22200 (union_defs): Likewise.
22201 (entry_register): Likewise.
22202 (pass_web::execute): Likewise.
22204 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
22206 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
22207 builtin define __VEC_ELEMENT_REG_ORDER__.
22209 2014-08-20 Martin Jambor <mjambor@suse.cz>
22210 Wei Mi <wmi@google.com>
22213 PR middle-end/61776
22214 * tree-ssa-operands.c (update_stmt_operands): Remove
22215 MODIFIED_NORETURN_CALLS.
22216 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
22217 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
22218 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
22219 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
22220 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
22221 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
22222 (gimple_call_set_ctrl_altering): New func.
22223 (gimple_call_ctrl_altering_p): Ditto.
22224 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
22225 (make_blocks): Use gimple_call_initialize_ctrl_altering.
22226 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
22227 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
22228 remove MODIFIED_NORETURN_CALLS.
22230 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
22232 * coverage.c (coverage_compute_profile_id): Return non-0;
22233 also handle symbols with unique name.
22234 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
22236 2014-08-20 Steve Ellcey <sellcey@mips.com>
22238 PR middle-end/49191
22239 * doc/sourcebuild.texi (non_strict_align): New.
22241 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
22243 * cgraphunit.c (ipa_passes, compile): Reshedule
22244 symtab_remove_unreachable_nodes passes; update comments.
22245 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
22246 TODO_remove_functions before the pass; the functions ought to be
22248 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
22249 TODO_remove_functions.
22250 * passes.c (pass_data_early_local_passes): Do not schedule function
22252 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
22254 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
22257 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
22258 before setting the option.
22259 * diagnostic.c (diagnostic_classify_diagnostic): Record
22260 command-line status.
22262 2014-08-20 Richard Biener <rguenther@suse.de>
22265 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
22266 to build uint{16,32,64}_type_node.
22268 2014-08-20 Terry Guo <terry.guo@arm.com>
22270 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
22271 with immediate_operand.
22273 2014-08-20 David Malcolm <dmalcolm@redhat.com>
22275 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
22276 "insn" from an as_a to a safe_as_a, for the case when "insn" is
22279 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
22281 PR preprocessor/51303
22282 * incpath.c (remove_duplicates): Use cpp_warning.
22284 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
22288 * doc/options.texi (CPP): Document it.
22289 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
22290 * optc-gen.awk: Handle CPP.
22291 * opth-gen.awk: Likewise.
22293 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22295 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
22297 (duplicate_insn_chain): Likewise.
22298 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
22299 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
22300 checked cast for now (until we can strengthen the params in the
22302 (duplicate_insn_chain): Likewise.
22304 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22306 * rtl.h (next_cc0_user): Strengthen return type from rtx to
22308 (prev_cc0_setter): Likewise.
22310 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
22311 rtx_insn *, adding checked casts for now as necessary.
22312 (prev_cc0_setter): Likewise.
22314 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22316 * expr.h (emit_move_insn): Strengthen return type from rtx to
22318 (emit_move_insn_1): Likewise.
22319 (emit_move_complex_push): Likewise.
22320 (emit_move_complex_parts): Likewise.
22322 * expr.c (emit_move_via_integer): Strengthen return type from rtx
22323 to rtx_insn *. Replace use of NULL_RTX with NULL when working
22325 (emit_move_complex_push): Strengthen return type from rtx to
22327 (emit_move_complex): Likewise, also for local "ret".
22328 (emit_move_ccmode): Likewise.
22329 (emit_move_multi_word): Likewise for return type and locals
22330 "last_insn", "seq".
22331 (emit_move_insn_1): Likewise for return type and locals "result",
22333 (emit_move_insn): Likewise for return type and local "last_insn".
22334 (compress_float_constant): Likewise.
22336 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22338 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
22339 from rtx to rtx_insn *.
22341 * rtl.h (emit_insn_before): Likewise.
22342 (emit_insn_before_noloc): Likewise.
22343 (emit_insn_before_setloc): Likewise.
22344 (emit_jump_insn_before): Likewise.
22345 (emit_jump_insn_before_noloc): Likewise.
22346 (emit_jump_insn_before_setloc): Likewise.
22347 (emit_call_insn_before): Likewise.
22348 (emit_call_insn_before_noloc): Likewise.
22349 (emit_call_insn_before_setloc): Likewise.
22350 (emit_debug_insn_before): Likewise.
22351 (emit_debug_insn_before_noloc): Likewise.
22352 (emit_debug_insn_before_setloc): Likewise.
22353 (emit_label_before): Likewise.
22354 (emit_insn_after): Likewise.
22355 (emit_insn_after_noloc): Likewise.
22356 (emit_insn_after_setloc): Likewise.
22357 (emit_jump_insn_after): Likewise.
22358 (emit_jump_insn_after_noloc): Likewise.
22359 (emit_jump_insn_after_setloc): Likewise.
22360 (emit_call_insn_after): Likewise.
22361 (emit_call_insn_after_noloc): Likewise.
22362 (emit_call_insn_after_setloc): Likewise.
22363 (emit_debug_insn_after): Likewise.
22364 (emit_debug_insn_after_noloc): Likewise.
22365 (emit_debug_insn_after_setloc): Likewise.
22366 (emit_label_after): Likewise.
22367 (emit_insn): Likewise.
22368 (emit_debug_insn): Likewise.
22369 (emit_jump_insn): Likewise.
22370 (emit_call_insn): Likewise.
22371 (emit_label): Likewise.
22372 (gen_clobber): Likewise.
22373 (emit_clobber): Likewise.
22374 (gen_use): Likewise.
22375 (emit_use): Likewise.
22378 (emit_barrier_before): Strengthen return type from rtx to
22380 (emit_barrier_after): Likewise.
22381 (emit_barrier): Likewise.
22383 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
22384 from rtx to rtx_insn *. Add checked casts for now when converting
22385 "last" from rtx to rtx_insn *.
22386 (emit_insn_before_noloc): Likewise for return type.
22387 (emit_jump_insn_before_noloc): Likewise.
22388 (emit_call_insn_before_noloc): Likewise.
22389 (emit_debug_insn_before_noloc): Likewise.
22390 (emit_barrier_before): Strengthen return type and local "insn"
22391 from rtx to rtx_barrier *.
22392 (emit_label_before): Strengthen return type from rtx to
22393 rtx_insn *. Add checked cast for now when returning param
22394 (emit_pattern_after_noloc): Strengthen return type from rtx to
22395 rtx_insn *. Add checked casts for now when converting "last" from
22397 (emit_insn_after_noloc): Strengthen return type from rtx to
22399 (emit_jump_insn_after_noloc): Likewise.
22400 (emit_call_insn_after_noloc): Likewise.
22401 (emit_debug_insn_after_noloc): Likewise.
22402 (emit_barrier_after): Strengthen return type from rtx to
22404 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
22405 Add checked cast for now when converting "label" from rtx to
22407 (emit_pattern_after_setloc): Strengthen return type from rtx to
22408 rtx_insn *. Add checked casts for now when converting "last" from
22410 (emit_pattern_after): Strengthen return type from rtx to
22412 (emit_insn_after_setloc): Likewise.
22413 (emit_insn_after): Likewise.
22414 (emit_jump_insn_after_setloc): Likewise.
22415 (emit_jump_insn_after): Likewise.
22416 (emit_call_insn_after_setloc): Likewise.
22417 (emit_call_insn_after): Likewise.
22418 (emit_debug_insn_after_setloc): Likewise.
22419 (emit_debug_insn_after): Likewise.
22420 (emit_pattern_before_setloc): Likewise. Add checked casts for now
22421 when converting "last" from rtx to rtx_insn *.
22422 (emit_pattern_before): Strengthen return type from rtx to
22424 (emit_insn_before_setloc): Likewise.
22425 (emit_insn_before): Likewise.
22426 (emit_jump_insn_before_setloc): Likewise.
22427 (emit_jump_insn_before): Likewise.
22428 (emit_call_insn_before_setloc): Likewise.
22429 (emit_call_insn_before): Likewise.
22430 (emit_debug_insn_before_setloc): Likewise.
22431 (emit_debug_insn_before): Likewise.
22432 (emit_insn): Strengthen return type and locals "last", "insn",
22433 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
22434 within cases where we know we have an insn.
22435 (emit_debug_insn): Likewise.
22436 (emit_jump_insn): Likewise.
22437 (emit_call_insn): Strengthen return type and local "insn" from rtx
22439 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
22440 a checked cast to rtx_insn * for now on "label".
22441 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
22442 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
22443 (emit_use): Likewise.
22444 (gen_use): Likewise, also for local "seq".
22445 (emit): Likewise for return type and local "insn".
22446 (rtx_insn): Likewise for return type and local "new_rtx".
22448 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
22449 from rtx to rtx_barrier *.
22451 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
22452 changed return type from rtx to rtx_insn *, we must update
22453 "emit_fn" type, and this in turn means updating...
22454 (frame_insn): ...this. Strengthen return type from rtx to
22455 rtx_insn *. Introduce a new local "insn" of the appropriate type.
22457 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22459 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
22460 rtx to rtx_jump_table_data *. Also for local.
22461 * rtl.h (emit_jump_table_data): Likewise.
22463 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22465 * basic-block.h (create_basic_block_structure): Strengthen third
22466 param "bb_note" from rtx to rtx_note *.
22467 * rtl.h (emit_note_before): Strengthen return type from rtx to
22469 (emit_note_after): Likewise.
22470 (emit_note): Likewise.
22471 (emit_note_copy): Likewise. Also, strengthen param similarly.
22472 * function.h (struct rtl_data): Strengthen field
22473 "x_stack_check_probe_note" from rtx to rtx_note *.
22475 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
22476 from rtx to rtx_note *.
22477 * cfgrtl.c (create_basic_block_structure): Strengthen third param
22478 "bb_note" from rtx to rtx_note *.
22479 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
22480 when calling emit_note_copy.
22481 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
22483 (emit_note_after): Likewise.
22484 (emit_note_before): Likewise.
22485 (emit_note_copy): Likewise. Also, strengthen param similarly.
22486 (emit_note): Likewise.
22487 * except.c (emit_note_eh_region_end): Likewise for return type.
22488 Strengthen local "next" from rtx to rtx_insn *.
22489 (convert_to_eh_region_ranges): Strengthen local "note"
22490 from rtx to rtx_note *.
22491 * final.c (change_scope): Likewise.
22492 (reemit_insn_block_notes): Likewise, for both locals named "note".
22493 Also, strengthen local "insn" from rtx to rtx_insn *.
22494 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
22496 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
22497 strengthen local "seq" from rtx to rtx_insn *.
22498 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
22500 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
22502 (get_bb_note_from_pool): Strengthen return type from rtx to
22504 (sel_create_basic_block): Strengthen local "new_bb_note" from
22505 insn_t to rtx_note *.
22506 * var-tracking.c (emit_note_insn_var_location): Strengthen local
22507 "note" from rtx to rtx_note *.
22508 (emit_notes_in_bb): Likewise.
22510 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22512 * function.h (struct rtl_data): Strengthen field
22513 "x_parm_birth_insn" from rtx to rtx_insn *.
22514 * function.c (struct assign_parm_data_all): Strengthen fields
22515 "first_conversion_insn" and "last_conversion_insn" from rtx to
22518 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22520 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
22521 to rtx_insn *; also for local "var_end_seq".
22522 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
22523 (maybe_cleanup_end_of_block): Likewise for param "last" and local
22525 (expand_gimple_cond): Likewise for locals "last2" and "last".
22526 (mark_transaction_restart_calls): Likewise for local "insn".
22527 (expand_gimple_stmt): Likewise for return type and locals "last"
22529 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
22530 (avoid_complex_debug_insns): Likewise for param "insn".
22531 (expand_debug_locations): Likewise for locals "insn", "last",
22532 "prev_insn" and "insn2".
22533 (expand_gimple_basic_block): Likewise for local "last".
22534 (construct_exit_block): Likewise for locals "head", "end",
22536 (pass_expand::execute): Likewise for locals "var_seq",
22537 "var_ret_seq", "next".
22539 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22541 * asan.h (asan_emit_stack_protection): Strengthen return type from
22543 * asan.c (asan_emit_stack_protection): Likewise. Add local
22544 "insns" to hold the return value.
22546 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22548 * basic-block.h (bb_note): Strengthen return type from rtx to
22550 * sched-int.h (bb_note): Likewise.
22551 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
22553 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22555 * rtl.h (make_insn_raw): Strengthen return type from rtx to
22558 * emit-rtl.c (make_insn_raw): Strengthen return type and local
22559 "insn" from rtx to rtx_insn *.
22560 (make_debug_insn_raw): Strengthen return type from rtx to
22561 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
22562 (make_jump_insn_raw): Strengthen return type from rtx to
22563 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
22564 (make_call_insn_raw): Strengthen return type from rtx to
22565 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
22566 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
22567 callback from rtx to rtx_insn *; likewise for local "insn" and
22568 "next", adding a checked cast to rtx_insn in the relevant cases of
22569 the switch statement.
22570 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
22571 callback from rtx to rtx_insn *.
22572 (emit_pattern_after_setloc): Likewise.
22573 (emit_pattern_after): Likewise.
22574 (emit_pattern_before_setloc): Likewise.
22575 (emit_pattern_before): Likewise.
22577 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22579 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
22581 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
22582 accepting an rtx_insn *.
22583 (last_call_insn): Strengthen return type from rtx to
22586 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22588 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
22589 "insns" from rtx to rtx_insn *.
22590 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
22591 locals "insn" and "prev".
22593 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22595 * rtl.h (tablejump_p): Strengthen third param from rtx * to
22596 rtx_jump_table_data **.
22598 * cfgbuild.c (make_edges): Introduce local "table", using it in
22599 place of "tmp" for jump table data.
22600 (find_bb_boundaries): Strengthen local "table" from rtx to
22601 rtx_jump_table_data *.
22602 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
22603 (outgoing_edges_match): Likewise for locals "table1" and "table2".
22604 (try_crossjump_to_edge): Likewise.
22605 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
22607 (patch_jump_insn): Introduce local "table", using it in place of
22608 "tmp" for jump table data.
22609 (force_nonfallthru_and_redirect): Introduce local "table", so that
22610 call to tablejump_p can receive an rtx_jump_table_data **. Update
22611 logic around the call to overwrite "note" appropriately if
22612 tablejump_p returns non-zero.
22613 (get_last_bb_insn): Introduce local "table", using it in place of
22614 "tmp" for jump table data.
22615 * dwarf2cfi.c (create_trace_edges): Likewise.
22617 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
22618 from rtx to rtx_jump_table_data *.
22619 (create_fix_barrier): Strengthen local "tmp" from rtx to
22620 rtx_jump_table_data *.
22621 (arm_reorg): Likewise for local "table".
22623 * config/s390/s390.c (s390_chunkify_start): Likewise.
22625 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
22627 * jump.c (delete_related_insns): Strengthen local "lab_next" from
22628 rtx to rtx_jump_table_data *.
22630 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
22631 rtx_jump_table_data **. Add a checked cast when writing through
22632 the pointer: we know there that local "table" is non-NULL and that
22633 JUMP_TABLE_DATA_P (table) holds.
22634 (label_is_jump_target_p): Introduce local "table", using it in
22635 place of "tmp" for jump table data.
22637 2014-08-19 Marek Polacek <polacek@redhat.com>
22640 * doc/invoke.texi: Document -Wbool-compare.
22642 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22644 * rtl.h (entry_of_function): Strengthen return type from rtx to
22646 * cfgrtl.c (entry_of_function): Likewise.
22648 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22650 * emit-rtl.h (get_insns): Strengthen return type from rtx to
22651 rtx_insn *, adding a checked cast for now.
22652 (get_last_insn): Likewise.
22654 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22656 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
22659 * emit-rtl.c (gen_label_rtx): Likewise.
22661 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22663 * rtl.h (previous_insn): Strengthen return type from rtx to
22665 (next_insn): Likewise.
22666 (prev_nonnote_insn): Likewise.
22667 (prev_nonnote_insn_bb): Likewise.
22668 (next_nonnote_insn): Likewise.
22669 (next_nonnote_insn_bb): Likewise.
22670 (prev_nondebug_insn): Likewise.
22671 (next_nondebug_insn): Likewise.
22672 (prev_nonnote_nondebug_insn): Likewise.
22673 (next_nonnote_nondebug_insn): Likewise.
22674 (prev_real_insn): Likewise.
22675 (next_real_insn): Likewise.
22676 (prev_active_insn): Likewise.
22677 (next_active_insn): Likewise.
22679 * emit-rtl.c (next_insn): Strengthen return type from rtx to
22680 rtx_insn *, adding a checked cast.
22681 (previous_insn): Likewise.
22682 (next_nonnote_insn): Likewise.
22683 (next_nonnote_insn_bb): Likewise.
22684 (prev_nonnote_insn): Likewise.
22685 (prev_nonnote_insn_bb): Likewise.
22686 (next_nondebug_insn): Likewise.
22687 (prev_nondebug_insn): Likewise.
22688 (next_nonnote_nondebug_insn): Likewise.
22689 (prev_nonnote_nondebug_insn): Likewise.
22690 (next_real_insn): Likewise.
22691 (prev_real_insn): Likewise.
22692 (next_active_insn): Likewise.
22693 (prev_active_insn): Likewise.
22695 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
22696 param "stepfunc" so that it returns an rtx_insn * rather than an
22697 rtx, to track the change to prev_nonnote_insn_bb, which is the
22698 only function this is called with.
22699 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
22701 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
22703 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
22706 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22708 * coretypes.h (class rtx_debug_insn): Add forward declaration.
22709 (class rtx_nonjump_insn): Likewise.
22710 (class rtx_jump_insn): Likewise.
22711 (class rtx_call_insn): Likewise.
22712 (class rtx_jump_table_data): Likewise.
22713 (class rtx_barrier): Likewise.
22714 (class rtx_code_label): Likewise.
22715 (class rtx_note): Likewise.
22717 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
22718 adding the invariant DEBUG_INSN_P (X).
22719 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
22720 the invariant NONJUMP_INSN_P (X).
22721 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
22722 the invariant JUMP_P (X).
22723 (class rtx_call_insn): New, a subclass of rtx_insn, adding
22724 the invariant CALL_P (X).
22725 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
22726 invariant JUMP_TABLE_DATA_P (X).
22727 (class rtx_barrier): New, a subclass of rtx_insn, adding the
22728 invariant BARRIER_P (X).
22729 (class rtx_code_label): New, a subclass of rtx_insn, adding
22730 the invariant LABEL_P (X).
22731 (class rtx_note): New, a subclass of rtx_insn, adding
22732 the invariant NOTE_P(X).
22733 (is_a_helper <rtx_debug_insn *>::test): New.
22734 (is_a_helper <rtx_nonjump_insn *>::test): New.
22735 (is_a_helper <rtx_jump_insn *>::test): New.
22736 (is_a_helper <rtx_call_insn *>::test): New.
22737 (is_a_helper <rtx_jump_table_data *>::test): New functions,
22738 overloaded for both rtx and rtx_insn *.
22739 (is_a_helper <rtx_barrier *>::test): New.
22740 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
22741 for both rtx and rtx_insn *.
22742 (is_a_helper <rtx_note *>::test): New.
22744 2014-08-19 Marek Polacek <polacek@redhat.com>
22746 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
22747 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
22748 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
22749 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
22751 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22753 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
22754 rtx_insn *. To help with transition, for now, convert from an
22755 access macro into a pair of functions: BND_TO, returning an
22757 (SET_BND_TO): New function, for use where BND_TO is used as an
22760 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
22762 (BND_TO): New function, adding a checked cast.
22763 (SET_BND_TO): New function.
22765 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
22767 (compute_av_set_on_boundaries): Likewise.
22769 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
22771 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
22772 destination if it is used in source.
22773 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
22774 (*popcount<mode>2_falsedep_1): Likewise.
22776 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
22779 * configure.ac: Set install_gold_as_default to no first.
22780 * configure: Regenerated.
22782 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22784 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
22785 "note_list" field will eventually be an rtx_insn *. To help with
22786 transition, for now, convert from an access macro into a pair of
22787 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
22788 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
22791 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
22792 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
22794 * sel-sched-ir.c (init_bb): Likewise.
22795 (sel_restore_notes): Likewise.
22796 (move_bb_info): Likewise.
22797 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
22798 (SET_BB_NOTE_LIST): New function.
22800 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22802 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
22803 field will eventually be an rtx_insn *. To help with transition,
22804 for now, convert from an access macro into a pair of functions:
22805 VINSN_INSN_RTX, returning an rtx_insn *, and...
22806 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
22807 is used as an lvalue.
22809 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
22810 SET_VINSN_INSN_RTX where it's used as an lvalue.
22811 (VINSN_INSN_RTX): New function.
22812 (SET_VINSN_INSN_RTX): New function.
22814 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22816 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
22817 eventually be rtx_insn *, but to help with transition, for now,
22818 convert from an access macro into a pair of functions: DEP_PRO
22819 returning an rtx_insn * and...
22820 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
22821 lvalue, returning an rtx&.
22822 (DEP_CON): Analogous changes to DEP_PRO above.
22823 (SET_DEP_CON): Likewise.
22825 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
22826 an lvalue to SET_DEP_CON.
22827 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
22828 (sd_copy_back_deps): Likewise for DEP_CON.
22829 (DEP_PRO): New function, adding a checked cast for now.
22830 (DEP_CON): Likewise.
22831 (SET_DEP_PRO): New function.
22832 (SET_DEP_CON): Likewise.
22834 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
22836 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
22837 (extra_options): Add i386/cygwin.opt.
22838 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
22839 (CPP_SPEC): Accept -pthread.
22840 (LINK_SPEC): Ditto.
22841 (GOMP_SELF_SPECS): Update comment.
22842 * config/i386/cygwin.opt: New file for -pthread flag.
22844 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22846 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
22847 * df.h (DF_REF_INSN): Convert from a macro to a function, so
22848 that we can return an rtx_insn *.
22850 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
22852 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
22853 when building executables, not DLLs. Add --large-address-aware
22854 under the same conditions.
22855 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
22856 when building executables, not DLLs. Add --large-address-aware
22857 under the same conditions when using -m32.
22859 * config/i386/cygwin-stdint.h: Throughout, make type
22860 definitions dependent on target architecture, not host.
22862 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22864 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
22865 the return type from rtx to rtx_insn *, which will enable various
22866 conversions in followup patches. For now this is is done by a
22868 (NEXT_INSN): Likewise.
22869 (SET_PREV_INSN): Convert to an inline function. This is intended
22870 for use as an lvalue, and so returns an rtx& to allow in-place
22872 (SET_NEXT_INSN): Likewise.
22874 2014-07-08 Mark Wielaard <mjw@redhat.com>
22877 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
22879 2014-08-19 Marek Polacek <polacek@redhat.com>
22882 * cgraphunit.c (handle_alias_pairs): Fix condition.
22884 2014-08-19 Richard Biener <rguenther@suse.de>
22886 * gimple-fold.c (fold_gimple_assign): Properly build a
22887 null-pointer constant when devirtualizing addresses.
22889 2014-07-07 Mark Wielaard <mjw@redhat.com>
22891 * dwarf2out.c (decl_quals): New function.
22892 (modified_type_die): Take one cv_quals argument instead of two,
22893 one for const and one for volatile.
22894 (add_type_attribute): Likewise.
22895 (generic_parameter_die): Call add_type_attribute with one modifier
22897 (base_type_for_mode): Likewise.
22898 (add_bounds_info): Likewise.
22899 (add_subscript_info): Likewise.
22900 (gen_array_type_die): Likewise.
22901 (gen_descr_array_type_die): Likewise.
22902 (gen_entry_point_die): Likewise.
22903 (gen_enumeration_type_die): Likewise.
22904 (gen_formal_parameter_die): Likewise.
22905 (gen_subprogram_die): Likewise.
22906 (gen_variable_die): Likewise.
22907 (gen_const_die): Likewise.
22908 (gen_field_die): Likewise.
22909 (gen_pointer_type_die): Likewise.
22910 (gen_reference_type_die): Likewise.
22911 (gen_ptr_to_mbr_type_die): Likewise.
22912 (gen_inheritance_die): Likewise.
22913 (gen_subroutine_type_die): Likewise.
22914 (gen_typedef_die): Likewise.
22915 (force_type_die): Likewise.
22917 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22919 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
22921 * configure: Regenerate.
22923 2014-08-19 Richard Biener <rguenther@suse.de>
22925 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
22926 DECL_EXTERNALs in BLOCKs as non-references.
22927 * tree-streamer-out.c (streamer_write_chain): Likewise.
22929 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
22930 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
22931 Anna Tikhonova <anna.tikhonova@intel.com>
22932 Ilya Tocar <ilya.tocar@intel.com>
22933 Andrey Turetskiy <andrey.turetskiy@intel.com>
22934 Ilya Verbin <ilya.verbin@intel.com>
22935 Kirill Yukhin <kirill.yukhin@intel.com>
22936 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
22938 * config/i386/sse.md
22939 (define_mode_iterator VI48_AVX512F): Delete.
22940 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
22941 (define_mode_iterator VI2_AVX512VL): Ditto.
22942 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
22945 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
22947 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
22948 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
22949 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
22950 with VI48_AVX512F_AVX512VL): New.
22951 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
22952 with VI2_AVX512VL): Ditto.
22954 2014-08-19 Marek Polacek <polacek@redhat.com>
22956 * doc/invoke.texi: Document -Wc99-c11-compat.
22958 2014-08-19 David Malcolm <dmalcolm@redhat.com>
22960 * rtl.h (PREV_INSN): Split macro in two: the existing one,
22961 for rvalues, and...
22962 (SET_PREV_INSN): New macro, for use as an lvalue.
22963 (NEXT_INSN, SET_NEXT_INSN): Likewise.
22965 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
22966 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
22967 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
22968 (fixup_abnormal_edges): Likewise.
22969 (unlink_insn_chain): Likewise.
22970 (fixup_reorder_chain): Likewise.
22971 (cfg_layout_delete_block): Likewise.
22972 (cfg_layout_merge_blocks): Likewise.
22973 * combine.c (update_cfg_for_uncondjump): Likewise.
22974 * emit-rtl.c (link_insn_into_chain): Likewise.
22975 (remove_insn): Likewise.
22976 (delete_insns_since): Likewise.
22977 (reorder_insns_nobb): Likewise.
22978 (emit_insn_after_1): Likewise.
22979 * final.c (rest_of_clean_state): Likewise.
22980 (final_scan_insn): Likewise.
22981 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
22982 * haifa-sched.c (concat_note_lists): Likewise.
22983 (remove_notes): Likewise.
22984 (restore_other_notes): Likewise.
22985 (move_insn): Likewise.
22986 (unlink_bb_notes): Likewise.
22987 (restore_bb_notes): Likewise.
22988 * jump.c (delete_for_peephole): Likewise.
22989 * optabs.c (emit_libcall_block_1): Likewise.
22990 * reorg.c (emit_delay_sequence): Likewise.
22991 (fill_simple_delay_slots): Likewise.
22992 * sel-sched-ir.c (sel_move_insn): Likewise.
22993 (sel_remove_insn): Likewise.
22994 (get_bb_note_from_pool): Likewise.
22995 * sel-sched.c (move_nop_to_previous_block): Likewise.
22997 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
22998 * config/c6x/c6x.c (gen_one_bundle): Likewise.
22999 (c6x_gen_bundles): Likewise.
23000 (hwloop_optimize): Likewise.
23001 * config/frv/frv.c (frv_function_prologue): Likewise.
23002 (frv_register_nop): Likewise.
23003 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
23004 (ia64_reorg): Likewise.
23005 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
23006 (mep_make_bundle): Likewise.
23007 (mep_bundle_insns): Likewise.
23008 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
23009 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
23010 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
23012 2014-08-19 David Malcolm <dmalcolm@redhat.com>
23014 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
23015 return type from rtx to rtx_insn *.
23016 (BB_END): Likewise.
23017 (BB_HEADER): Likewise.
23018 (BB_FOOTER): Likewise.
23019 (SET_BB_HEAD): Convert to a function.
23020 (SET_BB_END): Likewise.
23021 (SET_BB_HEADER): Likewise.
23022 (SET_BB_FOOTER): Likewise.
23024 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
23025 Strengthen the return type from rtx to rtx_insn *. For now, this
23026 is done by adding a checked cast, but this will eventually
23027 become a field lookup.
23028 (BB_END): Likewise.
23029 (BB_HEADER): Likewise.
23030 (BB_FOOTER): Likewise.
23031 (SET_BB_HEAD): New function, from macro of same name. This is
23032 intended for use as an lvalue, and so returns an rtx& to allow
23033 in-place modification.
23034 (SET_BB_END): Likewise.
23035 (SET_BB_HEADER): Likewise.
23036 (SET_BB_FOOTER): Likewise.
23038 2014-08-18 David Malcolm <dmalcolm@redhat.com>
23040 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
23041 for rvalues, and...
23042 (SET_BB_HEAD): New macro, for use as a lvalue.
23043 (BB_END, SET_BB_END): Likewise.
23044 (BB_HEADER, SET_BB_HEADER): Likewise.
23045 (BB_FOOTER, SET_BB_FOOTER): Likewise.
23047 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
23048 of BB_* macros into SET_BB_* macros.
23049 (fix_crossing_unconditional_branches): Likewise.
23050 * caller-save.c (save_call_clobbered_regs): Likewise.
23051 (insert_one_insn): Likewise.
23052 * cfgbuild.c (find_bb_boundaries): Likewise.
23053 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
23054 (outgoing_edges_match): Likewise.
23055 (try_optimize_cfg): Likewise.
23056 * cfgexpand.c (expand_gimple_cond): Likewise.
23057 (expand_gimple_tailcall): Likewise.
23058 (expand_gimple_basic_block): Likewise.
23059 (construct_exit_block): Likewise.
23060 * cfgrtl.c (delete_insn): Likewise.
23061 (create_basic_block_structure): Likewise.
23062 (rtl_delete_block): Likewise.
23063 (rtl_split_block): Likewise.
23064 (emit_nop_for_unique_locus_between): Likewise.
23065 (rtl_merge_blocks): Likewise.
23066 (block_label): Likewise.
23067 (try_redirect_by_replacing_jump): Likewise.
23068 (emit_barrier_after_bb): Likewise.
23069 (fixup_abnormal_edges): Likewise.
23070 (record_effective_endpoints): Likewise.
23071 (relink_block_chain): Likewise.
23072 (fixup_reorder_chain): Likewise.
23073 (fixup_fallthru_exit_predecessor): Likewise.
23074 (cfg_layout_duplicate_bb): Likewise.
23075 (cfg_layout_split_block): Likewise.
23076 (cfg_layout_delete_block): Likewise.
23077 (cfg_layout_merge_blocks): Likewise.
23078 * combine.c (update_cfg_for_uncondjump): Likewise.
23079 * emit-rtl.c (add_insn_after): Likewise.
23080 (remove_insn): Likewise.
23081 (reorder_insns): Likewise.
23082 (emit_insn_after_1): Likewise.
23083 * haifa-sched.c (get_ebb_head_tail): Likewise.
23084 (restore_other_notes): Likewise.
23085 (move_insn): Likewise.
23086 (sched_extend_bb): Likewise.
23087 (fix_jump_move): Likewise.
23088 * ifcvt.c (noce_process_if_block): Likewise.
23089 (dead_or_predicable): Likewise.
23090 * ira.c (update_equiv_regs): Likewise.
23091 * reg-stack.c (change_stack): Likewise.
23092 * sel-sched-ir.c (sel_move_insn): Likewise.
23093 * sel-sched.c (move_nop_to_previous_block): Likewise.
23095 * config/c6x/c6x.c (hwloop_optimize): Likewise.
23096 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
23098 2014-08-18 David Malcolm <dmalcolm@redhat.com>
23100 * rtl.h (for_each_rtx_in_insn): New function.
23101 * rtlanal.c (for_each_rtx_in_insn): Likewise.
23103 2014-08-18 David Malcolm <dmalcolm@redhat.com>
23105 * coretypes.h (class rtx_insn): Add forward declaration.
23107 * rtl.h: Include is-a.h.
23108 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
23109 workaround to ensure gengtype knows inheritance is occurring,
23110 whilst continuing to use the pre-existing special-casing for
23112 (class rtx_insn): New subclass of rtx_def, adding the
23113 invariant that we're dealing with something we can sanely use
23114 INSN_UID, NEXT_INSN, PREV_INSN on.
23115 (is_a_helper <rtx_insn *>::test): New.
23116 (is_a_helper <const rtx_insn *>::test): New.
23118 2014-08-18 David Malcolm <dmalcolm@redhat.com>
23120 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
23122 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
23124 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
23127 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
23129 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
23130 to BUILT_IN_UNREACHABLE.
23132 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
23135 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
23137 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
23138 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
23139 (ffs<mode>2): Do not expand with tzcnt for
23140 TARGET_AVOID_FALSE_DEP_FOR_BMI.
23141 (ffssi2_no_cmove): Ditto.
23142 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
23143 (ctz<mode>2): New expander.
23144 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
23145 (*ctz<mode>2_falsedep): New insn.
23146 (*ctz<mode>2): Rename from ctz<mode>2.
23147 (clz<mode>2_lzcnt): New expander.
23148 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
23149 (*clz<mode>2_lzcnt_falsedep): New insn.
23150 (*clz<mode>2): Rename from ctz<mode>2.
23151 (popcount<mode>2): New expander.
23152 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
23153 (*popcount<mode>2_falsedep): New insn.
23154 (*popcount<mode>2): Rename from ctz<mode>2.
23155 (*popcount<mode>2_cmp): Remove.
23156 (*popcountsi2_cmp_zext): Ditto.
23158 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
23160 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
23161 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
23162 * config/microblaze/microblaze.h
23163 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
23165 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
23168 * configure.ac: Set install_gold_as_default to no for
23170 * configure: Regenerated.
23172 2014-08-18 Roman Gareev <gareevroman@gmail.com>
23174 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
23175 * config.in: Add undef of HAVE_isl.
23176 * configure: Regenerate.
23177 * configure.ac: Add definition of HAVE_isl.
23178 * graphite-blocking.c: Add checking of HAVE_isl.
23179 * graphite-dependences.c: Likewise.
23180 * graphite-interchange.c: Likewise.
23181 * graphite-isl-ast-to-gimple.c: Likewise.
23182 * graphite-optimize-isl.c: Likewise.
23183 * graphite-poly.c: Likewise.
23184 * graphite-scop-detection.c: Likewise.
23185 * graphite-sese-to-poly.c: Likewise.
23186 * graphite.c: Likewise.
23187 * toplev.c: Replace the checking of HAVE_cloog with the checking
23190 2014-08-18 Richard Biener <rguenther@suse.de>
23192 PR tree-optimization/62090
23193 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
23194 (fold_builtin_3): Do not fold snprintf.
23195 (fold_builtin_4): Likewise.
23196 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
23197 moved from builtins.c.
23198 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
23199 (gimple_fold_builtin): Do not fold sprintf here.
23201 2014-08-18 Richard Biener <rguenther@suse.de>
23203 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
23205 (maybe_canonicalize_mem_ref_addr): ... this function.
23206 (fold_stmt_1): Apply it here before all simplification.
23208 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
23211 * cgraph.h (cgraph_node::create_indirect_edge): Add
23212 compute_indirect_info param.
23213 * cgraph.c (cgraph_node::create_indirect_edge): Compute
23214 indirect_info only when it is required.
23215 * cgraphclones.c (cgraph_clone_edge): Do not recompute
23216 indirect_info fore cloned indirect edge.
23218 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
23219 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
23220 Anna Tikhonova <anna.tikhonova@intel.com>
23221 Ilya Tocar <ilya.tocar@intel.com>
23222 Andrey Turetskiy <andrey.turetskiy@intel.com>
23223 Ilya Verbin <ilya.verbin@intel.com>
23224 Kirill Yukhin <kirill.yukhin@intel.com>
23225 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23227 * config/i386/sse.md
23228 (define_mode_iterator VI8_AVX2_AVX512BW): New.
23229 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
23231 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
23232 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
23233 Anna Tikhonova <anna.tikhonova@intel.com>
23234 Ilya Tocar <ilya.tocar@intel.com>
23235 Andrey Turetskiy <andrey.turetskiy@intel.com>
23236 Ilya Verbin <ilya.verbin@intel.com>
23237 Kirill Yukhin <kirill.yukhin@intel.com>
23238 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23240 * config/i386/sse.md
23241 (define_mode_iterator VF1_AVX512VL): New.
23242 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
23243 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
23246 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
23247 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
23248 Anna Tikhonova <anna.tikhonova@intel.com>
23249 Ilya Tocar <ilya.tocar@intel.com>
23250 Andrey Turetskiy <andrey.turetskiy@intel.com>
23251 Ilya Verbin <ilya.verbin@intel.com>
23252 Kirill Yukhin <kirill.yukhin@intel.com>
23253 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23255 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
23256 * config/i386/i386.md
23257 (define_code_iterator any_float): New.
23258 (define_code_attr floatsuffix): New.
23259 * config/i386/sse.md
23260 (define_mode_iterator VF1_128_256VL): New.
23261 (define_mode_iterator VF2_512_256VL): New.
23262 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
23264 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
23265 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
23267 (define_mode_attr qq2pssuff): New.
23268 (define_mode_attr sselongvecmode): New.
23269 (define_mode_attr sselongvecmodelower): New.
23270 (define_mode_attr sseintvecmode3): New.
23271 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
23273 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
23274 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
23275 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
23276 (define_insn "ufloatv2siv2df2<mask_name>"): New.
23278 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
23279 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
23280 Anna Tikhonova <anna.tikhonova@intel.com>
23281 Ilya Tocar <ilya.tocar@intel.com>
23282 Andrey Turetskiy <andrey.turetskiy@intel.com>
23283 Ilya Verbin <ilya.verbin@intel.com>
23284 Kirill Yukhin <kirill.yukhin@intel.com>
23285 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23287 * config/i386/sse.md
23288 (define_mode_iterator VF2_AVX512VL): New.
23289 (define_mode_attr sseintvecmode2): New.
23290 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
23291 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
23292 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
23294 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
23296 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
23298 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
23301 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
23302 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
23303 Anna Tikhonova <anna.tikhonova@intel.com>
23304 Ilya Tocar <ilya.tocar@intel.com>
23305 Andrey Turetskiy <andrey.turetskiy@intel.com>
23306 Ilya Verbin <ilya.verbin@intel.com>
23307 Kirill Yukhin <kirill.yukhin@intel.com>
23308 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23310 * config/i386/i386.md
23311 (define_insn "*movoi_internal_avx"): Add evex version.
23312 (define_insn "*movti_internal"): Ditto.
23314 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
23315 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
23316 Anna Tikhonova <anna.tikhonova@intel.com>
23317 Ilya Tocar <ilya.tocar@intel.com>
23318 Andrey Turetskiy <andrey.turetskiy@intel.com>
23319 Ilya Verbin <ilya.verbin@intel.com>
23320 Kirill Yukhin <kirill.yukhin@intel.com>
23321 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23323 * config/i386/i386.md
23324 (define_attr "isa"): Add avx512dq, noavx512dq.
23325 (define_attr "enabled"): Ditto.
23326 * config/i386/sse.md
23327 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
23329 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
23330 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
23331 Anna Tikhonova <anna.tikhonova@intel.com>
23332 Ilya Tocar <ilya.tocar@intel.com>
23333 Andrey Turetskiy <andrey.turetskiy@intel.com>
23334 Ilya Verbin <ilya.verbin@intel.com>
23335 Kirill Yukhin <kirill.yukhin@intel.com>
23336 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23338 * config/i386/i386.c
23339 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
23340 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
23341 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
23342 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
23343 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
23344 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
23345 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
23346 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
23347 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
23348 * config/i386/sse.md
23349 (define_mode_iterator VMOVE): Allow V4TI mode.
23350 (define_mode_iterator V_AVX512VL): New.
23351 (define_mode_iterator V): New handling for AVX512VL.
23352 (define_insn "avx512f_load<mode>_mask"): Delete.
23353 (define_insn "<avx512>_load<mode>_mask"): New.
23354 (define_insn "avx512f_store<mode>_mask"): Delete.
23355 (define_insn "<avx512>_store<mode>_mask"): New.
23358 2014-08-18 Yury Gribov <y.gribov@samsung.com>
23361 * asan.c (instrument_derefs): Fix bitfield check.
23363 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
23365 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
23366 * config/rs6000/htm.md (ttest): Remove clobber.
23367 * config/rs6000/predicates.md (any_mask_operand): New predicate.
23368 (and_operand): Reformat.
23369 (and_2rld_operand): New predicate.
23370 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
23372 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
23373 parameter. Handle AND directly.
23374 (rs6000_split_logical_di): Remove last parameter.
23375 (rs6000_split_logical): Remove last parameter. Remove obsolete
23377 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
23378 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
23379 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
23380 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
23381 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
23382 and 5 anonymous splitters): Delete.
23383 (and<mode>3): New expander.
23384 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
23385 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
23386 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
23387 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
23388 (floatdisf2_internal1): Remove clobbers.
23389 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
23390 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
23391 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
23392 (and<mode>3 for BOOL_128): Remove clobber.
23393 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
23394 rs6000_split_logical.
23395 (*bool<mode>3_internal for BOOL_128): Adjust call of
23396 rs6000_split_logical.
23397 (*boolc<mode>3_internal1 for BOOL_128,
23398 *boolc<mode>3_internal2 for BOOL_128,
23399 *boolcc<mode>3_internal1 for BOOL_128,
23400 *boolcc<mode>3_internal2 for BOOL_128,
23401 *eqv<mode>3_internal1 for BOOL_128,
23402 *eqv<mode>3_internal2 for BOOL_128,
23403 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
23404 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
23406 (*vec_reload_and_reg_<mptrsize>): Delete.
23408 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
23410 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
23411 and split, *boolccsi3_internal3 and split): Delete.
23412 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
23413 *boolccdi3_internal3 and split): Delete.
23414 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
23415 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
23417 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
23419 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
23420 and split, *boolcsi3_internal3 and split): Delete.
23421 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
23422 *boolcdi3_internal3 and split): Delete.
23423 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
23425 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
23427 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
23428 <'u'>: Also support printing the low-order 16 bits.
23429 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
23430 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
23431 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
23432 *booldi3_internal3 and split): Delete.
23433 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
23434 *bool<mode>3_dot2): New.
23435 (two anonymous define_splits for non_logical_cint_operand): Merge.
23437 2014-08-17 Marek Polacek <polacek@redhat.com>
23438 Manuel López-Ibáñez <manu@gcc.gnu.org>
23441 * diagnostic.c (adjust_line): Add gcc_checking_assert.
23442 (diagnostic_show_locus): Don't print caret diagnostic
23443 if a column is larger than the line_width.
23445 2014-08-17 Roman Gareev <gareevroman@gmail.com>
23447 * common.opt: Make the ISL AST generator to be the main code generator
23450 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
23452 * wide-int.h (generic_wide_int): Declare as class instead of struct.
23454 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
23457 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
23459 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
23460 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
23461 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
23463 * config/pa/pa.md (begin_brtab): Delete insn.
23464 (end_brtab): Likewise.
23466 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
23468 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
23470 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
23472 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
23473 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
23474 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
23475 (get_dynamic_type): Remove.
23476 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
23477 (clear_speculation): Bring to ipa-deivrt.h
23478 (get_class_context): Rename to ...
23479 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
23480 (contains_type_p): Update.
23481 (get_dynamic_type): Rename to ...
23482 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
23483 (possible_polymorphic_call_targets): UPdate.
23484 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
23485 * ipa-prop.c (ipa_analyze_call_uses): Update.
23487 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
23489 * doc/invoke.texi (SH options): Document missing processor variant
23490 options. Remove references to Hitachi. Undocument deprecated mspace
23493 2014-08-15 Jason Merrill <jason@redhat.com>
23495 * tree.c (type_hash_canon): Uncomment assert.
23497 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
23499 * input.h (in_system_header_at): Add comment.
23501 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
23504 * diagnostic.c (build_message_string): Make it extern.
23505 * diagnostic.h (build_message_string): Make it extern.
23507 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
23509 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
23510 load/store from/to non-floating class pseudo.
23512 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
23514 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
23516 2014-08-15 Richard Biener <rguenther@suse.de>
23518 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
23519 (get_constraint_for_ssa_var): Remove dead code.
23520 (get_constraint_for_1): Adjust.
23521 (find_what_var_points_to): Likewise.
23522 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
23524 2014-08-15 Ilya Tocar <tocarip@gmail.com>
23527 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
23528 (_mm512_mask_cmpge_epu32_mask): Ditto.
23529 (_mm512_cmpge_epu32_mask): Ditto.
23530 (_mm512_mask_cmpge_epi64_mask): Ditto.
23531 (_mm512_cmpge_epi64_mask): Ditto.
23532 (_mm512_mask_cmpge_epu64_mask): Ditto.
23533 (_mm512_cmpge_epu64_mask): Ditto.
23534 (_mm512_mask_cmple_epi32_mask): Ditto.
23535 (_mm512_cmple_epi32_mask): Ditto.
23536 (_mm512_mask_cmple_epu32_mask): Ditto.
23537 (_mm512_cmple_epu32_mask): Ditto.
23538 (_mm512_mask_cmple_epi64_mask): Ditto.
23539 (_mm512_cmple_epi64_mask): Ditto.
23540 (_mm512_mask_cmple_epu64_mask): Ditto.
23541 (_mm512_cmple_epu64_mask): Ditto.
23542 (_mm512_mask_cmplt_epi32_mask): Ditto.
23543 (_mm512_cmplt_epi32_mask): Ditto.
23544 (_mm512_mask_cmplt_epu32_mask): Ditto.
23545 (_mm512_cmplt_epu32_mask): Ditto.
23546 (_mm512_mask_cmplt_epi64_mask): Ditto.
23547 (_mm512_cmplt_epi64_mask): Ditto.
23548 (_mm512_mask_cmplt_epu64_mask): Ditto.
23549 (_mm512_cmplt_epu64_mask): Ditto.
23550 (_mm512_mask_cmpneq_epi32_mask): Ditto.
23551 (_mm512_mask_cmpneq_epu32_mask): Ditto.
23552 (_mm512_cmpneq_epu32_mask): Ditto.
23553 (_mm512_mask_cmpneq_epi64_mask): Ditto.
23554 (_mm512_cmpneq_epi64_mask): Ditto.
23555 (_mm512_mask_cmpneq_epu64_mask): Ditto.
23556 (_mm512_cmpneq_epu64_mask): Ditto.
23557 (_mm512_castpd_ps): Ditto.
23558 (_mm512_castpd_si512): Ditto.
23559 (_mm512_castps_pd): Ditto.
23560 (_mm512_castps_si512): Ditto.
23561 (_mm512_castsi512_ps): Ditto.
23562 (_mm512_castsi512_pd): Ditto.
23563 (_mm512_castpd512_pd128): Ditto.
23564 (_mm512_castps512_ps128): Ditto.
23565 (_mm512_castsi512_si128): Ditto.
23566 (_mm512_castpd512_pd256): Ditto.
23567 (_mm512_castps512_ps256): Ditto.
23568 (_mm512_castsi512_si256): Ditto.
23569 (_mm512_castpd128_pd512): Ditto.
23570 (_mm512_castps128_ps512): Ditto.
23571 (_mm512_castsi128_si512): Ditto.
23572 (_mm512_castpd256_pd512): Ditto.
23573 (_mm512_castps256_ps512): Ditto.
23574 (_mm512_castsi256_si512): Ditto.
23575 (_mm512_cmpeq_epu32_mask): Ditto.
23576 (_mm512_mask_cmpeq_epu32_mask): Ditto.
23577 (_mm512_mask_cmpeq_epu64_mask): Ditto.
23578 (_mm512_cmpeq_epu64_mask): Ditto.
23579 (_mm512_cmpgt_epu32_mask): Ditto.
23580 (_mm512_mask_cmpgt_epu32_mask): Ditto.
23581 (_mm512_mask_cmpgt_epu64_mask): Ditto.
23582 (_mm512_cmpgt_epu64_mask): Ditto.
23583 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
23584 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
23585 * config/i386/i386.c (enum ix86_builtins): Add
23586 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
23587 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
23588 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
23589 (bdesc_args): Add __builtin_ia32_si512_256si,
23590 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
23591 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
23592 __builtin_ia32_pd512_pd.
23593 (ix86_expand_args_builtin): Handle new FTYPEs.
23594 * config/i386/sse.md (castmode): Add 512-bit modes.
23595 (AVX512MODE2P): New.
23596 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
23597 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
23599 2014-08-15 Richard Biener <rguenther@suse.de>
23601 * fold-const.c (tree_swap_operands_p): Put all constants
23602 last, also strip sign-changing NOPs when considering further
23603 canonicalization. Canonicalize also when optimizing for size.
23605 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23607 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
23608 one_match > zero_match case to just before simple_sequence.
23610 2014-08-15 Richard Biener <rguenther@suse.de>
23612 * data-streamer.h (streamer_string_index, string_for_index):
23614 * data-streamer-out.c (streamer_string_index): Make static.
23615 * data-streamer-in.c (string_for_index): Likewise.
23616 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
23617 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
23619 2014-08-15 Richard Biener <rguenther@suse.de>
23621 PR tree-optimization/62031
23622 * tree-data-ref.c (dr_analyze_indices): Do not set
23623 DR_UNCONSTRAINED_BASE.
23624 (dr_may_alias_p): All indirect accesses have to go the
23625 formerly DR_UNCONSTRAINED_BASE path.
23626 * tree-data-ref.h (struct indices): Remove
23627 unconstrained_base member.
23628 (DR_UNCONSTRAINED_BASE): Remove.
23630 2014-08-15 Jakub Jelinek <jakub@redhat.com>
23632 PR middle-end/62092
23633 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
23634 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
23635 in OMP_CLAUSE_MAP in some outer target region.
23637 2014-08-15 Bin Cheng <bin.cheng@arm.com>
23639 * tree-ssa-loop-ivopts.c (ivopts_data): New field
23640 name_expansion_cache.
23641 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
23642 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
23643 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
23644 (difference_cannot_overflow_p): New parameter. Use affine
23645 expansion for equality check.
23646 (iv_elimination_compare_lt): Pass new argument.
23648 2014-08-14 DJ Delorie <dj@redhat.com>
23650 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
23651 variables to the accumulator.
23653 * config/rl78/predicates.md (rl78_near_mem_operand): New.
23654 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
23655 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
23656 with far-far moves.
23658 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
23659 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
23660 (umulqihi3_virt): Likewise.
23661 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
23662 (umulqihi3_real): Likewise.
23664 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
23666 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
23668 PR tree-optimization/62091
23669 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
23670 function_entry_reached.
23671 (walk_aliased_vdefs): Clear it here.
23672 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
23674 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
23676 * ipa-utils.h (compare_virtual_tables): Declare.
23677 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
23679 2014-08-14 Marek Polacek <polacek@redhat.com>
23682 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
23683 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
23685 2014-08-14 Tom de Vries <tom@codesourcery.com>
23687 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
23689 2014-08-14 Tom de Vries <tom@codesourcery.com>
23691 PR rtl-optimization/62004
23692 PR rtl-optimization/62030
23693 * ifcvt.c (rtx_interchangeable_p): New function.
23694 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
23695 * emit-rtl.h (mem_attrs_eq_p): Declare.
23697 2014-08-14 Roman Gareev <gareevroman@gmail.com>
23699 * graphite-scop-detection.c:
23700 Add inclusion of cp-tree.h.
23701 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
23702 in case they are pointers to object types
23704 2014-08-14 Richard Biener <rguenther@suse.de>
23706 * BASE-VER: Change to 5.0.0
23708 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
23709 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
23710 Anna Tikhonova <anna.tikhonova@intel.com>
23711 Ilya Tocar <ilya.tocar@intel.com>
23712 Andrey Turetskiy <andrey.turetskiy@intel.com>
23713 Ilya Verbin <ilya.verbin@intel.com>
23714 Kirill Yukhin <kirill.yukhin@intel.com>
23715 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23717 * config/i386/sse.md (define_mode_attr avx512): New.
23718 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
23720 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
23721 (define_mode_attr ssse3_avx2): Ditto.
23722 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
23723 (define_mode_attr avx2_avx512bw): New.
23724 (define_mode_attr ssedoublemodelower): New.
23725 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
23726 V32HI, V64QI modes.
23727 (define_mode_attr ssebytemode): Allow V8DI modes.
23728 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
23729 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
23730 (define_mode_attr ssePSmode2): New.
23731 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
23732 V16HI, V32HI modes.
23733 (define_mode_attr dbpsadbwmode): New.
23734 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
23735 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
23736 (vi8_sse4_1_avx2_avx512): New.
23737 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
23739 (define_mode_attr blendbits): Move before its immediate use.
23741 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
23742 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
23743 Anna Tikhonova <anna.tikhonova@intel.com>
23744 Ilya Tocar <ilya.tocar@intel.com>
23745 Andrey Turetskiy <andrey.turetskiy@intel.com>
23746 Ilya Verbin <ilya.verbin@intel.com>
23747 Kirill Yukhin <kirill.yukhin@intel.com>
23748 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23750 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
23751 * config/i386/subst.md
23752 (define_mode_iterator SUBST_V): Update.
23753 (define_mode_iterator SUBST_A): Ditto.
23754 (define_subst_attr "mask_operand7"): New.
23755 (define_subst_attr "mask_operand10"): New.
23756 (define_subst_attr "mask_operand_arg34") : New.
23757 (define_subst_attr "mask_expand_op3"): New.
23758 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
23759 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
23760 (define_subst_attr "mask_avx512vl_condition"): New.
23761 (define_subst_attr "round_mask_operand4"): Ditto.
23762 (define_subst_attr "round_mask_scalar_op3"): Delete.
23763 (define_subst_attr "round_mask_op4"): New.
23764 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
23766 (define_subst_attr "round_modev8sf_condition"): New.
23767 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
23769 (define_subst_attr "round_saeonly_mask_operand4"): New.
23770 (define_subst_attr "round_saeonly_mask_op4"): New.
23771 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
23772 V8DImode, V16SImode.
23773 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
23774 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
23775 (define_subst_attr "mask_expand4_args"): New.
23776 (define_subst "mask_expand4"): New.
23778 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
23779 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
23780 Anna Tikhonova <anna.tikhonova@intel.com>
23781 Ilya Tocar <ilya.tocar@intel.com>
23782 Andrey Turetskiy <andrey.turetskiy@intel.com>
23783 Ilya Verbin <ilya.verbin@intel.com>
23784 Kirill Yukhin <kirill.yukhin@intel.com>
23785 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23787 * config/i386/i386.md
23788 (define_attr "isa"): Add avx512bw,noavx512bw.
23789 (define_attr "enabled"): Ditto.
23790 (define_split): Add 32/64-bit mask logic.
23791 (define_insn "*k<logic>qi"): New.
23792 (define_insn "*k<logic>hi"): New.
23793 (define_insn "*anddi_1"): Add mask version.
23794 (define_insn "*andsi_1"): Ditto.
23795 (define_insn "*<code><mode>_1"): Ditto.
23796 (define_insn "*<code>hi_1"): Ditto.
23797 (define_insn "kxnor<mode>"): New.
23798 (define_insn "kunpcksi"): New.
23799 (define_insn "kunpckdi"): New.
23800 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
23801 (define_insn "*one_cmplhi2_1"): Ditto.
23803 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
23804 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
23805 Anna Tikhonova <anna.tikhonova@intel.com>
23806 Ilya Tocar <ilya.tocar@intel.com>
23807 Andrey Turetskiy <andrey.turetskiy@intel.com>
23808 Ilya Verbin <ilya.verbin@intel.com>
23809 Kirill Yukhin <kirill.yukhin@intel.com>
23810 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23812 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
23815 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
23816 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
23817 Anna Tikhonova <anna.tikhonova@intel.com>
23818 Ilya Tocar <ilya.tocar@intel.com>
23819 Andrey Turetskiy <andrey.turetskiy@intel.com>
23820 Ilya Verbin <ilya.verbin@intel.com>
23821 Kirill Yukhin <kirill.yukhin@intel.com>
23822 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23824 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
23826 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
23827 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
23828 xmm/ymm16+ when availble.
23829 * config/i386/i386.h
23830 (HARD_REGNO_NREGS): Add mask regs.
23831 (VALID_AVX512F_REG_MODE): Ditto.
23832 (VALID_AVX512F_REG_MODE) : Define.
23833 (VALID_MASK_AVX512BW_MODE): Ditto.
23834 (reg_class) (MASK_REG_P(X)): Define.
23835 * config/i386/i386.md: Do not split long moves with mask register,
23836 use kmovb if avx512bw is availible.
23837 (movdi_internal): Handle mask registers.
23839 2014-08-14 Richard Biener <rguenther@suse.de>
23841 PR tree-optimization/62081
23842 * tree-ssa-loop.c (pass_fix_loops): New pass.
23843 (pass_tree_loop::gate): Do not fixup loops here.
23844 * tree-pass.h (make_pass_fix_loops): Declare.
23845 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
23847 2014-08-14 Richard Biener <rguenther@suse.de>
23849 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
23850 (type_hash_canon): ... this and avoid 2nd lookup for the add.
23852 2014-08-14 Richard Biener <rguenther@suse.de>
23854 PR tree-optimization/62090
23855 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
23856 (fold_builtin_2): Do not fold sprintf.
23857 (fold_builtin_3): Likewise.
23858 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
23859 moved from builtins.c.
23860 (gimple_fold_builtin): Fold sprintf.
23862 2014-08-14 Richard Biener <rguenther@suse.de>
23864 PR rtl-optimization/62079
23865 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
23868 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
23870 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
23871 current_function_decl.
23873 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
23875 * cgraph.c (cgraph_node::function_symbol): Fix wrong
23876 cgraph_function_node to cgraph_node::function_symbol
23879 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
23881 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
23882 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
23884 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
23886 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
23889 2014-08-13 Roman Gareev <gareevroman@gmail.com>
23891 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
23894 2014-08-12 Jakub Jelinek <jakub@redhat.com>
23897 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
23898 any registers that are used in mem_insn.
23900 2014-08-12 Steve Ellcey <sellcey@mips.com>
23902 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
23904 2014-08-12 Steve Ellcey <sellcey@mips.com>
23906 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
23907 (MULTILIB_DIRNAMES): Ditto.
23908 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
23909 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
23910 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
23911 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
23912 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
23913 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
23915 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23918 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
23919 of __ARM_SIZEOF_WCHAR_T.
23921 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23924 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
23925 Remove unnecessary attributes.
23927 2014-08-12 Yury Gribov <y.gribov@samsung.com>
23929 * internal-fn.c (init_internal_fns): Fix off-by-one.
23931 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
23932 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
23933 Anna Tikhonova <anna.tikhonova@intel.com>
23934 Ilya Tocar <ilya.tocar@intel.com>
23935 Andrey Turetskiy <andrey.turetskiy@intel.com>
23936 Ilya Verbin <ilya.verbin@intel.com>
23937 Kirill Yukhin <kirill.yukhin@intel.com>
23938 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
23940 * config/i386/i386.c (standard_sse_constant_opcode): Use
23941 vpxord/vpternlog if avx512 is availible.
23943 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
23945 PR middle-end/62103
23946 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
23947 bitfields, that is when size doesn't match the size of type or the
23948 size of the constructor.
23950 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23952 * config/rs6000/constraints.md (wh constraint): New constraint,
23953 for FP registers if direct move is available.
23954 (wi constraint): New constraint, for VSX/FP registers that can
23955 handle 64-bit integers.
23956 (wj constraint): New constraint for VSX/FP registers that can
23957 handle 64-bit integers for direct moves.
23958 (wk constraint): New constraint for VSX/FP registers that can
23959 handle 64-bit doubles for direct moves.
23960 (wy constraint): Make documentation match implementation.
23962 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
23963 scalar_in_vmx_p field to simplify tests of whether SFmode or
23964 DFmode can go in the Altivec registers.
23965 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
23966 (rs6000_setup_reg_addr_masks): Likewise.
23967 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
23968 field, and wh/wi/wj/wk constraints.
23969 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
23970 the wh/wi/wj/wk constraints.
23971 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
23972 upper registers, prefer VSX registers unless the operation is a
23973 memory operation with REG+OFFSET addressing.
23975 * config/rs6000/vsx.md (VSr mode attribute): Add support for
23976 DImode. Change SFmode to use ww constraint instead of d to allow
23977 SF registers in the upper registers.
23980 (VSr5): Fix thinko in comment.
23981 (VSa): New mode attribute that is an alternative to wa, that
23982 returns the VSX register class that a mode can go in, but may not
23983 be the preferred register class.
23984 (VS_64dm): New mode attribute for appropriate register classes for
23985 referencing 64-bit elements of vectors for direct moves and normal
23987 (VS_64reg): Likewise.
23988 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
23989 register allocator to only registers the data type can handle.
23990 (vsx_le_perm_load_<mode>): Likewise.
23991 (vsx_le_perm_store_<mode>): Likewise.
23992 (vsx_xxpermdi2_le_<mode>): Likewise.
23993 (vsx_xxpermdi4_le_<mode>): Likewise.
23994 (vsx_lxvd2x2_le_<mode>): Likewise.
23995 (vsx_lxvd2x4_le_<mode>): Likewise.
23996 (vsx_stxvd2x2_le_<mode>): Likewise.
23997 (vsx_add<mode>3): Likewise.
23998 (vsx_sub<mode>3): Likewise.
23999 (vsx_mul<mode>3): Likewise.
24000 (vsx_div<mode>3): Likewise.
24001 (vsx_tdiv<mode>3_internal): Likewise.
24002 (vsx_fre<mode>2): Likewise.
24003 (vsx_neg<mode>2): Likewise.
24004 (vsx_abs<mode>2): Likewise.
24005 (vsx_nabs<mode>2): Likewise.
24006 (vsx_smax<mode>3): Likewise.
24007 (vsx_smin<mode>3): Likewise.
24008 (vsx_sqrt<mode>2): Likewise.
24009 (vsx_rsqrte<mode>2): Likewise.
24010 (vsx_tsqrt<mode>2_internal): Likewise.
24011 (vsx_fms<mode>4): Likewise.
24012 (vsx_nfma<mode>4): Likewise.
24013 (vsx_eq<mode>): Likewise.
24014 (vsx_gt<mode>): Likewise.
24015 (vsx_ge<mode>): Likewise.
24016 (vsx_eq<mode>_p): Likewise.
24017 (vsx_gt<mode>_p): Likewise.
24018 (vsx_ge<mode>_p): Likewise.
24019 (vsx_xxsel<mode>): Likewise.
24020 (vsx_xxsel<mode>_uns): Likewise.
24021 (vsx_copysign<mode>3): Likewise.
24022 (vsx_float<VSi><mode>2): Likewise.
24023 (vsx_floatuns<VSi><mode>2): Likewise.
24024 (vsx_fix_trunc<mode><VSi>2): Likewise.
24025 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
24026 (vsx_x<VSv>r<VSs>i): Likewise.
24027 (vsx_x<VSv>r<VSs>ic): Likewise.
24028 (vsx_btrunc<mode>2): Likewise.
24029 (vsx_b2trunc<mode>2): Likewise.
24030 (vsx_floor<mode>2): Likewise.
24031 (vsx_ceil<mode>2): Likewise.
24032 (vsx_<VS_spdp_insn>): Likewise.
24033 (vsx_xscvspdp): Likewise.
24034 (vsx_xvcvspuxds): Likewise.
24035 (vsx_float_fix_<mode>2): Likewise.
24036 (vsx_set_<mode>): Likewise.
24037 (vsx_extract_<mode>_internal1): Likewise.
24038 (vsx_extract_<mode>_internal2): Likewise.
24039 (vsx_extract_<mode>_load): Likewise.
24040 (vsx_extract_<mode>_store): Likewise.
24041 (vsx_splat_<mode>): Likewise.
24042 (vsx_xxspltw_<mode>): Likewise.
24043 (vsx_xxspltw_<mode>_direct): Likewise.
24044 (vsx_xxmrghw_<mode>): Likewise.
24045 (vsx_xxmrglw_<mode>): Likewise.
24046 (vsx_xxsldwi_<mode>): Likewise.
24047 (vsx_xscvdpspn): Tighten constraints to only use register classes
24049 (vsx_xscvspdpn): Likewise.
24050 (vsx_xscvdpspn_scalar): Likewise.
24052 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
24053 wj, and wk constraints.
24054 (GPR_REG_CLASS_P): New helper macro for register classes targeting
24055 general purpose registers.
24057 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
24059 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
24060 DImode instead of wm. Use wk constraint for direct move of DFmode
24062 (extendsidi2_lfiwax): Likewise.
24063 (lfiwax): Likewise.
24064 (lfiwzx): Likewise.
24065 (movdi_internal64): Likewise.
24067 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
24068 wk constraints. Make the wy constraint documentation match them
24071 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
24073 Replacement of isl_int by isl_val
24074 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
24075 (compute_bounds_for_param): use isl_val instead of isl_int
24076 (compute_bounds_for_loop): likewise
24077 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
24078 (build_linearized_memory_access): use isl_val instead of isl_int
24079 (pdr_stride_in_loop): likewise
24080 * graphite-optimize-isl.c:
24081 (getPrevectorMap): use isl_val instead of isl_int
24083 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
24084 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
24085 (extern the_isl_ctx): declare
24086 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
24087 (extract_affine_gmp): likewise
24089 (build_loop_iteration_domains): likewise
24090 (add_param_constraints): likewise
24092 2014-08-11 Richard Biener <rguenther@suse.de>
24094 PR tree-optimization/62075
24095 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
24096 handle uses in patterns.
24098 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
24099 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
24100 Anna Tikhonova <anna.tikhonova@intel.com>
24101 Ilya Tocar <ilya.tocar@intel.com>
24102 Andrey Turetskiy <andrey.turetskiy@intel.com>
24103 Ilya Verbin <ilya.verbin@intel.com>
24104 Kirill Yukhin <kirill.yukhin@intel.com>
24105 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
24107 * common/config/i386/i386-common.c
24108 (OPTION_MASK_ISA_AVX512VL_SET): Define.
24109 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
24110 (ix86_handle_option): Handle OPT_mavx512vl.
24111 * config/i386/cpuid.h (bit_AVX512VL): Define.
24112 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
24113 set -mavx512vl accordingly.
24114 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24115 OPTION_MASK_ISA_AVX512VL.
24116 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
24117 (ix86_option_override_internal): Define PTA_AVX512VL, handle
24118 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
24119 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
24120 * config/i386/i386.h (TARGET_AVX512VL): Define.
24121 (TARGET_AVX512VL_P(x)): Ditto.
24122 * config/i386/i386.opt: Add mavx512vl.
24124 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
24126 PR tree-optimization/62073
24127 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
24130 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
24131 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
24132 Anna Tikhonova <anna.tikhonova@intel.com>
24133 Ilya Tocar <ilya.tocar@intel.com>
24134 Andrey Turetskiy <andrey.turetskiy@intel.com>
24135 Ilya Verbin <ilya.verbin@intel.com>
24136 Kirill Yukhin <kirill.yukhin@intel.com>
24137 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
24139 * common/config/i386/i386-common.c
24140 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
24141 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
24142 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
24143 (ix86_handle_option): Handle OPT_mavx512bw.
24144 * config/i386/cpuid.h (bit_AVX512BW): Define.
24145 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
24146 set -mavx512bw accordingly.
24147 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24148 OPTION_MASK_ISA_AVX512BW.
24149 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
24150 (ix86_option_override_internal): Define PTA_AVX512BW, handle
24151 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
24152 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
24153 * config/i386/i386.h (TARGET_AVX512BW): Define.
24154 (TARGET_AVX512BW_P(x)): Ditto.
24155 * config/i386/i386.opt: Add mavx512bw.
24157 2014-08-11 Richard Biener <rguenther@suse.de>
24159 PR tree-optimization/62070
24160 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
24161 Remove SSA checking.
24163 2014-08-11 Yury Gribov <y.gribov@samsung.com>
24165 * asan.c (asan_check_flags): New enum.
24166 (build_check_stmt_with_calls): Removed function.
24167 (build_check_stmt): Split inlining logic to
24168 asan_expand_check_ifn.
24169 (instrument_derefs): Rename parameter.
24170 (instrument_mem_region_access): Rename parameter.
24171 (instrument_strlen_call): Likewise.
24172 (asan_expand_check_ifn): New function.
24173 (asan_instrument): Remove old code.
24174 (pass_sanopt::execute): Change handling of
24175 asan-instrumentation-with-call-threshold.
24176 (asan_clear_shadow): Fix formatting.
24177 (asan_function_start): Likewise.
24178 (asan_emit_stack_protection): Likewise.
24179 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
24180 Update description.
24181 * internal-fn.c (expand_ASAN_CHECK): New function.
24182 * internal-fn.def (ASAN_CHECK): New internal function.
24183 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
24184 Update description.
24185 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
24186 * tree.c: Small comment fix.
24188 2014-08-11 Yury Gribov <y.gribov@samsung.com>
24190 * gimple.c (gimple_call_fnspec): Support internal functions.
24191 (gimple_call_return_flags): Use const.
24192 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
24193 * internal-fn.def: Add fnspec information.
24194 * internal-fn.h (internal_fn_fnspec): New function.
24195 (init_internal_fns): Declare new function.
24196 * internal-fn.c (internal_fn_fnspec_array): New global variable.
24197 (init_internal_fns): New function.
24198 * tree-core.h: Update macro call.
24199 * tree.c (build_common_builtin_nodes): Initialize internal fns.
24201 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
24203 * lto-streamer.h (struct output_block::symbol): Change from
24204 struct symtab_node to plain symtab_node.
24205 (referenced_from_this_partition_p): Change first parameter
24206 from struct symtab_node to plain symtab_node.
24208 2014-08-10 Marek Polacek <polacek@redhat.com>
24211 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
24213 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
24215 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
24216 DECL correctly; do not give up on types in static storage.
24218 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
24220 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
24222 2014-08-09 Roman Gareev <gareevroman@gmail.com>
24224 * graphite-isl-ast-to-gimple.c:
24225 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
24227 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
24229 2014-08-08 Guozhi Wei <carrot@google.com>
24231 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
24233 2014-08-08 Cary Coutant <ccoutant@google.com>
24235 * dwarf2out.c (get_skeleton_type_unit): Remove.
24236 (output_skeleton_debug_sections): Remove skeleton type units.
24237 (output_comdat_type_unit): Likewise.
24238 (dwarf2out_finish): Likewise.
24240 2014-08-07 Yi Yang <ahyangyi@google.com>
24242 * predict.c (expr_expected_value_1): Remove the redundant assignment.
24244 2014-08-08 Richard Biener <rguenther@suse.de>
24246 * lto-streamer.h (struct lto_input_block): Make it a class
24247 with a constructor.
24248 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
24249 (struct lto_function_header, struct lto_simple_header,
24250 struct lto_simple_header_with_strings,
24251 struct lto_decl_header, struct lto_function_header): Make
24252 a simple inheritance hieararchy. Remove unused fields.
24253 (struct lto_asm_header): Remove.
24254 * lto-streamer-out.c (produce_asm): Adjust.
24255 (lto_output_toplevel_asms): Likewise.
24256 (produce_asm_for_decls): Likewise.
24257 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
24258 * data-streamer-in.c (string_for_index): Likewise.
24259 * ipa-inline-analysis.c (inline_read_section): Likewise.
24260 * ipa-prop.c (ipa_prop_read_section): Likewise.
24261 (read_replacements_section): Likewise.
24262 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
24263 * lto-section-in.c (lto_create_simple_input_block): Likewise.
24264 (lto_destroy_simple_input_block): Likewise.
24265 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
24266 (lto_input_toplevel_asms): Likewise.
24268 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
24269 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
24270 Anna Tikhonova <anna.tikhonova@intel.com>
24271 Ilya Tocar <ilya.tocar@intel.com>
24272 Andrey Turetskiy <andrey.turetskiy@intel.com>
24273 Ilya Verbin <ilya.verbin@intel.com>
24274 Kirill Yukhin <kirill.yukhin@intel.com>
24275 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
24277 * common/config/i386/i386-common.c
24278 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
24279 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
24280 (ix86_handle_option): Handle OPT_mavx512dq.
24281 * config/i386/cpuid.h (bit_AVX512DQ): Define.
24282 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
24283 set -mavx512dq accordingly.
24284 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24285 OPTION_MASK_ISA_AVX512DQ.
24286 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
24287 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
24288 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
24289 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
24290 * config/i386/i386.h (TARGET_AVX512DQ): Define.
24291 (TARGET_AVX512DQ_P(x)): Ditto.
24292 * config/i386/i386.opt: Add mavx512dq.
24294 2014-08-08 Richard Biener <rguenther@suse.de>
24296 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
24297 target_percent, target_percent_s): Export.
24298 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
24299 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
24300 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
24301 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
24302 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
24303 Move to gimple-fold.c.
24304 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
24306 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
24307 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
24308 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
24309 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
24310 (rewrite_call_expr_array): Remove.
24311 (fold_builtin_sprintf_chk): Likewise.
24312 (fold_builtin_snprintf_chk): Likewise.
24313 (fold_builtin_varargs): Remove handling of sprintf_chk,
24314 vsprintf_chk, snprintf_chk and vsnprintf_chk.
24315 (gimple_fold_builtin_sprintf_chk): Remove.
24316 (gimple_fold_builtin_snprintf_chk): Likewise.
24317 (gimple_fold_builtin_varargs): Likewise.
24318 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
24319 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
24320 * gimple.c (gimple_seq_add_seq_without_update): New function.
24321 * gimple.h (gimple_seq_add_seq_without_update): Declare.
24322 * gimple-fold.c: Include output.h.
24323 (gsi_replace_with_seq_vops): New function, split out from ...
24324 (gimplify_and_update_call_from_tree): ... here.
24325 (replace_call_with_value): New function.
24326 (replace_call_with_call_and_fold): Likewise.
24327 (var_decl_component_p): Moved from builtins.c.
24328 (gimple_fold_builtin_memory_op): Moved from builtins.c
24329 fold_builtin_memory_op and rewritten to GIMPLE.
24330 (gimple_fold_builtin_memset): Likewise.
24331 (gimple_fold_builtin_strcpy): Likewise.
24332 (gimple_fold_builtin_strncpy): Likewise.
24333 (gimple_fold_builtin_strcat): Likewise.
24334 (gimple_fold_builtin_fputs): Likewise.
24335 (gimple_fold_builtin_memory_chk): Likewise.
24336 (gimple_fold_builtin_stxcpy_chk): Likewise.
24337 (gimple_fold_builtin_stxncpy_chk): Likewise.
24338 (gimple_fold_builtin_snprintf_chk): Likewise.
24339 (gimple_fold_builtin_sprintf_chk): Likewise.
24340 (gimple_fold_builtin_strlen): New function.
24341 (gimple_fold_builtin_with_strlen): New function split out from
24342 gimple_fold_builtin.
24343 (gimple_fold_builtin): Change signature and handle
24344 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
24345 here. Call gimple_fold_builtin_with_strlen.
24346 (gimple_fold_call): Adjust.
24348 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
24350 * calls.c (precompute_arguments): Check
24351 promoted_for_signed_and_unsigned_p and set the promoted mode.
24352 (promoted_for_signed_and_unsigned_p): New function.
24353 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
24354 and set the promoted mode.
24355 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
24356 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
24357 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
24360 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
24362 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
24363 instead of SUBREG_PROMOTED_UNSIGNED_SET.
24364 (expand_call): Likewise.
24365 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
24366 to get promoted mode.
24367 * combine.c (record_promoted_value): Skip > 0 comparison with
24368 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
24369 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
24370 of SUBREG_PROMOTED_UNSIGNED_P.
24371 (convert_modes): Likewise.
24372 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
24373 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
24374 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
24375 SUBREG_PROMOTED_UNSIGNED_SET.
24376 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
24377 instead of SUBREG_PROMOTED_UNSIGNED_SET.
24378 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
24379 SUBREG_PROMOTED_SET.
24380 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
24381 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
24382 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
24383 of SUBREG_PROMOTED_UNSIGNED_P.
24384 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
24385 (SUBREG_PROMOTED_SET): New define.
24386 (SUBREG_PROMOTED_GET): Likewise.
24387 (SUBREG_PROMOTED_SIGN): Likewise.
24388 (SUBREG_PROMOTED_SIGNED_P): Likewise.
24389 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
24390 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
24391 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
24392 instead of SUBREG_PROMOTED_UNSIGNED_GET.
24393 (nonzero_bits1): Skip > 0 comparison with the results as
24394 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
24395 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
24396 of !SUBREG_PROMOTED_UNSIGNED_P.
24397 * simplify-rtx.c (simplify_unary_operation_1): Use new
24398 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
24399 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
24400 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
24401 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
24403 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
24405 * ipa-devirt.c: Include gimple-pretty-print.h
24406 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
24408 (decl_maybe_in_construction_p): Fix conditional on cdtor check
24409 (get_polymorphic_call_info): Fix return value
24410 (type_change_info): New sturcture based on ipa-prop
24412 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
24413 based on ipa-prop variant.
24414 (extr_type_from_vtbl_ptr_store): New function
24415 based on ipa-prop variant.
24416 (record_known_type): New function.
24417 (check_stmt_for_type_change): New function.
24418 (get_dynamic_type): New function.
24419 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
24420 * tree-ssa-pre.c: ipa-utils.h
24421 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
24422 machinery; sanity check with ipa-prop devirtualization.
24423 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
24426 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
24428 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
24429 * alias.c, cfgexpand.c, cgraphbuild.c,
24430 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
24431 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
24432 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
24433 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
24434 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
24435 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24436 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
24437 dse.c, except.c, gengtype.c, gimple-expr.c,
24438 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
24439 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
24440 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
24441 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
24442 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
24443 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
24445 * pointer-set.c: Remove file.
24446 * pointer-set.h: Remove file.
24448 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24450 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
24451 * config/arm/types.md (f_sels, f_seld): Delete.
24453 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24455 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
24456 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
24457 (aarch64_movdi_<mode>high): Likewise.
24458 (aarch64_mov<mode>high_di): Likewise.
24459 (aarch64_movdi_<mode>low): Likewise.
24460 (aarch64_mov<mode>low_di): Likewise.
24461 (aarch64_movtilow_tilow): Likewise.
24462 Add comment explaining usage of fp,simd attributes and of
24463 TARGET_FLOAT and TARGET_SIMD.
24465 2014-08-07 Ian Bolton <ian.bolton@arm.com>
24466 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24468 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
24469 Use MOVN when one of the half-words is 0xffff.
24471 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
24473 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
24475 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24477 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
24478 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
24479 (rfs_str): String corresponding to RFS_* constants.
24480 (rank_for_schedule_stats_t): New typedef.
24481 (rank_for_schedule_stats): New static variable.
24482 (rfs_result): New static function.
24483 (rank_for_schedule): Track statistics for deciding heuristics.
24484 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
24486 (ready_sort): Use them for debug printouts.
24487 (schedule_block): Init statistics state. Print statistics on
24488 rank_for_schedule decisions.
24490 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24492 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
24494 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
24496 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
24499 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
24501 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
24502 function to not conflict.
24503 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
24504 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
24505 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
24506 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
24507 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
24510 2014-08-07 Marek Polacek <polacek@redhat.com>
24512 * fold-const.c (fold_binary_loc): Add folding of
24513 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
24515 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
24517 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
24518 instead of type size.
24519 (ASM_FINISH_DECLARE_OBJECT): Likewise.
24521 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
24523 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
24524 (*thumb1_movqi_insn): Likewise.
24525 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
24527 2014-08-07 Tom de Vries <tom@codesourcery.com>
24529 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
24530 (glibc_2_11_or_earlier): Remove effective-target keywords.
24532 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
24534 * config/arm/arm.c (bdesc_2arg): Fix typo.
24535 (arm_atomic_assign_expand_fenv): Remove The default implementation.
24537 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
24539 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
24541 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
24544 * haifa-sched.c (advance_one_cycle): Fix dump.
24545 (schedule_block): Don't advance cycle if we are already at the
24546 beginning of the cycle.
24548 2014-08-06 Martin Jambor <mjambor@suse.cz>
24551 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
24553 2014-08-06 Richard Biener <rguenther@suse.de>
24556 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
24558 (lto_input_tree): Pop SCCs here.
24560 2014-08-06 Richard Biener <rguenther@suse.de>
24562 PR tree-optimization/61320
24563 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
24564 handle misaligned loads.
24566 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
24568 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
24569 (aarch64_expand_vec_perm_const): Check for dup before zip.
24571 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24573 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
24574 CONST_INT_P instead of GET_CODE and compare.
24575 (aarch64_select_cc_mode): Likewise.
24576 (aarch64_print_operand): Likewise.
24577 (aarch64_rtx_costs): Likewise.
24578 (aarch64_simd_valid_immediate): Likewise.
24579 (aarch64_simd_check_vect_par_cnst_half): Likewise.
24580 (aarch64_simd_emit_pair_result_insn): Likewise.
24582 2014-08-05 David Malcolm <dmalcolm@redhat.com>
24584 * gdbhooks.py (find_gcc_source_dir): New helper function.
24585 (class PassNames): New class, locating and parsing passes.def.
24586 (class BreakOnPass): New command "break-on-pass".
24588 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
24590 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
24593 2014-08-05 Richard Biener <rguenther@suse.de>
24595 PR rtl-optimization/61672
24596 * emit-rtl.h (mem_attrs_eq_p): Declare.
24597 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
24598 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
24599 * cfgcleanup.c (merge_memattrs): Likewise.
24600 Include emit-rtl.h.
24602 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24604 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
24605 rather than singleton vectors.
24606 (vqdmlsls_lane_s32): Likewise.
24608 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24610 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
24611 Use VSDQ_HSI mode iterator.
24612 (aarch64_sqrdmulh_laneq<mode>): Likewise.
24613 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
24614 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
24615 Use BUILTIN_VDQHS macro.
24616 (sqrdmulh_laneq): Likewise.
24617 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
24618 (vqdmlals_laneq_s32): Likewise.
24619 (vqdmlslh_laneq_s16): Likewise.
24620 (vqdmlsls_laneq_s32): Likewise.
24621 (vqdmulhh_laneq_s16): Likewise.
24622 (vqdmulhs_laneq_s32): Likewise.
24623 (vqrdmulhh_laneq_s16): Likewise.
24624 (vqrdmulhs_laneq_s32): Likewise.
24626 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24628 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
24629 (vmuld_laneq_f64): Likewise.
24630 (vmuls_laneq_f32): Likewise.
24631 (vmul_n_f64): Likewise.
24632 (vmuld_lane_f64): Reimplement in C.
24633 (vmuls_lane_f32): Likewise.
24635 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24637 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
24639 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
24641 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24643 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
24644 (rbitsi2): Likewise.
24645 (*arm_rev): Set predicable and predicable_short_it attributes.
24647 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24649 * convert.c (convert_to_integer): Guard transformation to lrint by
24652 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
24654 * config/aarch64/aarch64-builtins.c
24655 (aarch64_simd_builtin_type_mode): Delete.
24656 (v8qi_UP): Remap to V8QImode.
24657 (v4hi_UP): Remap to V4HImode.
24658 (v2si_UP): Remap to V2SImode.
24659 (v2sf_UP): Remap to V2SFmode.
24660 (v1df_UP): Remap to V1DFmode.
24661 (di_UP): Remap to DImode.
24662 (df_UP): Remap to DFmode.
24663 (v16qi_UP):V16QImode.
24664 (v8hi_UP): Remap to V8HImode.
24665 (v4si_UP): Remap to V4SImode.
24666 (v4sf_UP): Remap to V4SFmode.
24667 (v2di_UP): Remap to V2DImode.
24668 (v2df_UP): Remap to V2DFmode.
24669 (ti_UP): Remap to TImode.
24670 (ei_UP): Remap to EImode.
24671 (oi_UP): Remap to OImode.
24672 (ci_UP): Map to CImode.
24673 (xi_UP): Remap to XImode.
24674 (si_UP): Remap to SImode.
24675 (sf_UP): Remap to SFmode.
24676 (hi_UP): Remap to HImode.
24677 (qi_UP): Remap to QImode.
24678 (aarch64_simd_builtin_datum): Make mode a machine_mode.
24679 (VAR1): Build builtin name.
24680 (aarch64_init_simd_builtins): Remove dead code.
24682 2014-08-05 Roman Gareev <gareevroman@gmail.com>
24684 * graphite-isl-ast-to-gimple.c:
24685 (set_options): New function.
24686 (scop_to_isl_ast): Add calling of set_options.
24688 2014-08-05 Jakub Jelinek <jakub@redhat.com>
24690 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
24691 (analyze_iv_to_split_insn): Don't initialize them.
24692 (get_ivts_expr): Removed.
24693 (allocate_basic_variable, insert_base_initialization): Use
24694 SET_SRC instead of *get_ivts_expr.
24695 (split_iv): Use &SET_SRC instead of get_ivts_expr.
24697 2014-08-05 Roman Gareev <gareevroman@gmail.com>
24699 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
24700 (translate_isl_ast_for_loop): Add checking of the
24701 flag_loop_parallelize_all.
24702 (ast_build_before_for): New function.
24703 (scop_to_isl_ast): Add checking of the
24704 flag_loop_parallelize_all.
24705 * graphite-dependences.c: Move the defenition of the
24706 scop_get_dependences from graphite-optimize-isl.c to this file.
24707 (apply_schedule_on_deps): Add checking of the ux's emptiness.
24708 (carries_deps): Add checking of the x's value.
24709 * graphite-optimize-isl.c: Move the defenition of the
24710 scop_get_dependences to graphite-dependences.c.
24711 * graphite-poly.h: Add declarations of scop_get_dependences
24714 2014-08-04 Rohit <rohitarulraj@freescale.com>
24717 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
24719 (alt_reg_names): Likewise.
24720 (rs6000_dwarf_register_span): For SPE high registers, replace
24721 dwarf register numbers with GCC hard register numbers.
24722 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
24723 (rs6000_dbx_register_number): For SPE high registers, return dwarf
24724 register number for the corresponding GCC hard register number.
24725 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
24726 newly added GCC hard register numbers for SPE high registers.
24727 (DWARF_FRAME_REGISTERS): Likewise.
24728 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
24729 (DWARF_FRAME_REGNUM): Likewise.
24730 (FIXED_REGISTERS): Likewise.
24731 (CALL_USED_REGISTERS): Likewise.
24732 (CALL_REALLY_USED_REGISTERS): Likewise.
24733 (REG_ALLOC_ORDER): Likewise.
24734 (enum reg_class): Likewise.
24735 (REG_CLASS_NAMES): Likewise.
24736 (REG_CLASS_CONTENTS): Likewise.
24737 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
24739 2014-08-04 Richard Biener <rguenther@suse.de>
24741 * gimple-fold.h (gimple_fold_builtin): Remove.
24742 * gimple-fold.c (gimple_fold_builtin): Make static.
24743 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
24744 fold_stmt, not gimple_fold_builtin.
24746 2014-08-04 Martin Liska <mliska@suse.cz>
24748 * cgraph.h (csi_end_p): Removed.
24749 (csi_next): Likewise.
24750 (csi_node): Likewise.
24751 (csi_start): Likewise.
24752 (cgraph_node_in_set_p): Likewise.
24753 (cgraph_node_set_size): Likewise.
24754 (vsi_end_p): Likewise.
24755 (vsi_next): Likewise.
24756 (vsi_node): Likewise.
24757 (vsi_start): Likewise.
24758 (varpool_node_set_size): Likewise.
24759 (cgraph_node_set_nonempty_p): Likewise.
24760 (varpool_node_set_nonempty_p): Likewise.
24761 * cgraphunit.c (cgraph_process_new_functions): vec replaces
24763 * ipa-inline-transform.c: Likewise.
24764 * ipa-utils.c (cgraph_node_set_new): Removed.
24765 (cgraph_node_set_add): Likewise.
24766 (cgraph_node_set_remove): Likewise.
24767 (cgraph_node_set_find): Likewise.
24768 (dump_cgraph_node_set): Likewise.
24769 (debug_cgraph_node_set): Likewise.
24770 (free_cgraph_node_set): Likewise.
24771 (varpool_node_set_new): Likewise.
24772 (varpool_node_set_add): Likewise.
24773 (varpool_node_set_remove): Likewise.
24774 (varpool_node_set_find): Likewise.
24775 (dump_varpool_node_set): Likewise.
24776 (free_varpool_node_set): Likewise.
24777 (debug_varpool_node_set): Likewise.
24778 * tree-emutls.c (struct tls_var_data):
24779 (emutls_index): Removed.
24780 (emutls_decl): Likewise.
24781 (gen_emutls_addr): Function implementation uses newly added
24782 hash_map<varpool_node *, tls_var_data>.
24783 (clear_access_vars): Likewise.
24784 (create_emultls_var): Likewise.
24785 (ipa_lower_emutls): Likewise.
24786 (reset_access): New function.
24788 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
24790 * config/i386/i386.c (ix86_option_override_internal): Add
24791 PTA_RDRND and PTA_MOVBE for bdver4.
24793 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24794 James Greenhalgh <james.greenhalgh@arm.com>
24796 * doc/md.texi (clrsb): Document.
24797 (clz): Change reference to x into operand 1.
24799 (popcount): Likewise.
24801 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24804 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
24805 move to subtarget in serial version if result is ignored.
24807 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24808 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24810 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
24811 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
24812 (sched_analyze_insn): Update use of try_group_insn to
24813 sched_macro_fuse_insns.
24814 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
24815 arguments that are not conditional jumps.
24817 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
24819 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
24820 family information. Handle BTVER2 cpu with cpuid family value.
24822 2014-08-04 Tom de Vries <tom@codesourcery.com>
24824 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
24825 (glibc_2_11_or_earlier): Document effective-target keywords.
24827 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
24829 * ipa-devirt.c (odr_type_warn_count): Add type.
24830 (possible_polymorphic_call_targets): Set it.
24831 (ipa_devirt): Use it.
24833 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
24835 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
24837 * ipa-devirt.c: Include hash-map.h
24838 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
24839 (clear_speculation): Break out of ...
24840 (get_class_context): ... here; speed up handling obviously useless
24842 (odr_type_warn_count, decl_warn_count): New structures.
24843 (final_warning_record): New structure.
24844 (final_warning_records): New static variable.
24845 (possible_polymorphic_call_targets): Cleanup handling of
24846 speculative info; do not build speculation when user do not care;
24847 record info about warnings when asked for.
24848 (add_decl_warning): New function.
24849 (type_warning_cmp): New function.
24850 (decl_warning_cmp): New function.
24851 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
24852 (gate): Enable pass when warnings are requested.
24853 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
24856 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
24858 * hash-map.h (default_hashmap_traits::mark_key_deleted):
24860 (hash_map::remove): New method.
24861 (hash_map::traverse): New method.
24862 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
24863 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
24864 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
24865 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
24866 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
24867 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
24870 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
24872 * hash-set.h: new File.
24873 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
24874 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
24875 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
24876 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
24877 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
24878 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
24879 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
24880 varpool.c: Use hash_set instead of pointer_set.
24882 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
24884 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
24886 2014-08-01 Jiong Wang <jiong.wang@arm.com>
24888 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
24889 for frame access when strict_p is false.
24891 2014-08-01 Renlin Li <renlin.li@arm.com>
24892 2014-08-01 Jiong Wang <jiong.wang@arm.com>
24894 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
24895 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
24896 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
24898 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
24900 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
24901 aarch64_mem_pair_offset.
24903 2014-08-01 Jiong Wang <jiong.wang@arm.com>
24905 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
24907 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
24908 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
24910 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
24912 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
24914 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
24916 PR regression/61510
24917 * cgraphunit.c (analyze_functions): Use get_create rather than get
24918 for decls which are clones of abstract functions.
24920 2014-08-01 Martin Liska <mliska@suse.cz>
24922 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
24923 * ipa-prop.h (count_formal_params): Global function created from static.
24924 * ipa-prop.c (count_formal_params): Likewise.
24925 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
24926 profiles for semantically equivalent functions.
24927 * passes.c (do_per_function): If we load body of a function
24928 during WPA, this condition should behave same.
24929 * varpool.c (ctor_for_folding): More tolerant assert for variable
24930 aliases created during WPA.
24932 2014-08-01 Martin Liska <mliska@suse.cz>
24934 * doc/invoke.texi (Options That Control Optimization): Documentation
24935 for -foptimize-strlen introduced. Optimization levels default options
24938 2014-08-01 Jakub Jelinek <jakub@redhat.com>
24940 * opts.c (common_handle_option): Handle -fsanitize=alignment.
24941 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
24942 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
24944 * stor-layout.h (min_align_of_type): New prototype.
24945 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
24946 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
24948 * ubsan.c: Include builtins.h.
24949 (ubsan_expand_bounds_ifn): Change return type to bool,
24950 always return true.
24951 (ubsan_expand_null_ifn): Change return type to bool, change
24952 argument to gimple_stmt_iterator *. Handle both null and alignment
24953 sanitization, take type from ckind argument's type rather than
24955 (instrument_member_call): Removed.
24956 (instrument_mem_ref): Remove t argument, add mem and base arguments.
24957 Handle both null and alignment sanitization, don't say whole
24958 struct access is member access. Build 3 argument IFN_UBSAN_NULL
24959 call instead of 2 argument.
24960 (instrument_null): Adjust instrument_mem_ref caller. Don't
24961 instrument calls here.
24962 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
24963 like SANITIZE_NULL.
24964 * stor-layout.c (min_align_of_type): New function.
24965 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
24966 Or it into SANITIZE_UNDEFINED.
24967 * doc/invoke.texi (-fsanitize=alignment): Document.
24969 2014-07-31 Andi Kleen <ak@linux.intel.com>
24971 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
24973 2014-07-31 Andi Kleen <ak@linux.intel.com>
24975 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
24977 (vn_reference_compute_hash): Dito.
24978 (vn_nary_op_compute_hash): Dito.
24979 (vn_phi_compute_hash): Dito.
24980 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
24982 2014-07-31 Andi Kleen <ak@linux.intel.com>
24984 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
24985 Rename to inchash:add_expr_commutative. Convert to inchash.
24986 (iterative_hash_hashable_expr): Rename to
24987 inchash:add_hashable_expr. Convert to inchash.
24988 (avail_expr_hash): Dito.
24990 2014-07-31 Andi Kleen <ak@linux.intel.com>
24992 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
24993 Convert to inchash.
24995 2014-07-31 Andi Kleen <ak@linux.intel.com>
24997 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
24999 2014-07-31 Andi Kleen <ak@linux.intel.com>
25001 * Makefile.in (OBJS): Add rtlhash.o
25002 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
25003 (loc_checksum): Dito.
25004 (loc_checksum_ordered): Dito.
25005 (hash_loc_operands): Dito.
25007 (hash_loc_list): Dito.
25008 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
25009 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
25010 * rtlhash.c: New file.
25011 * rtlhash.h: New file.
25013 2014-07-31 Andi Kleen <ak@linux.intel.com>
25015 * inchash.h (inchash): Change inchash class to namespace.
25016 (class hash): ... Rename from inchash.
25017 (add_object): Move from macro to class template.
25018 * lto-streamer-out.c (hash_tree): Change inchash
25020 * tree.c (build_type_attribute_qual_variant): Dito.
25021 (type_hash_list): Dito.
25022 (attribute_hash_list): Dito.
25023 (iterative_hstate_expr): Rename to inchash::add_expr
25024 (build_range_type_1): Change inchash to inchash::hash
25025 and use hash::add_expr.
25026 (build_array_type_1): Dito.
25027 (build_function_type): Dito
25028 (build_method_type_directly): Dito.
25029 (build_offset_type): Dito.
25030 (build_complex_type): Dito.
25031 (make_vector_type): Dito.
25032 * tree.h (iterative_hash_expr): Dito.
25034 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
25036 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
25038 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
25040 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
25041 correct alphabetical position.
25042 (vpaddd_f64): Rewrite using builtins.
25043 (vpaddd_s64): Move to correct alphabetical position.
25046 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
25049 * config/sh/sh.c (sh_legitimate_address_p,
25050 sh_legitimize_reload_address): Handle reg+reg address modes when
25051 ALLOW_INDEXED_ADDRESS is false.
25052 * config/sh/predicates.md (general_movsrc_operand,
25053 general_movdst_operand): Likewise.
25055 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
25057 * config/aarch64/aarch64-builtins.c
25058 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
25061 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
25063 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
25064 the generated mask based on BYTES_BIG_ENDIAN.
25065 (aarch64_simd_check_vect_par_cnst_half): New.
25066 * config/aarch64/aarch64-protos.h
25067 (aarch64_simd_check_vect_par_cnst_half): New.
25068 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
25069 the check out to aarch64_simd_check_vect_par_cnst_half.
25070 (vect_par_cnst_lo_half): Likewise.
25071 * config/aarch64/aarch64-simd.md
25072 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
25073 (move_hi_quad_<mode>): Always generate a low mask.
25075 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25077 * doc/invoke.texi (AVR Options): Add documentation about
25078 __AVR_DEVICE_NAME__ built-in macro.
25080 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
25083 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
25084 constraints are satisfied.
25085 (<shift>di3_neon): Likewise.
25087 2014-07-31 Richard Biener <rguenther@suse.de>
25089 PR tree-optimization/61964
25090 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
25091 by structural equality.
25093 2014-07-31 Yury Gribov <y.gribov@samsung.com>
25095 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
25096 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
25097 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
25099 * gcc.c (sanitize_spec_function): Support new option.
25100 (SANITIZER_SPEC): Remove now redundant check.
25101 * opts.c (common_handle_option): Support new option.
25102 (finish_options): Check for incompatibilities.
25103 * toplev.c (process_options): Split userspace-specific checks.
25105 2014-07-31 Richard Biener <rguenther@suse.de>
25107 * lto-streamer.h (struct output_block): Remove global.
25108 (struct data_in): Remove labels, num_named_labels and
25109 num_unnamed_labels.
25110 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
25111 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
25113 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
25116 * common.opt (-Wreturn-local-addr): Moved from c.opt.
25117 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
25118 (isolate_path): New argument to avoid inserting a trap.
25119 (find_implicit_erroneous_behaviour): Handle returning the address
25120 of a local variable.
25121 (find_explicit_erroneous_behaviour): Likewise.
25123 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
25126 * toplev.c (init_random_seed): Move piece of code never called to
25128 (set_random_seed): see above.
25130 2014-07-31 Tom de Vries <tom@codesourcery.com>
25132 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
25134 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
25136 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
25137 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
25139 2014-07-31 Richard Biener <rguenther@suse.de>
25141 * data-streamer.h (streamer_write_data_stream): Declare here,
25143 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
25144 * lto-cgraph.c (lto_output_node): Adjust.
25145 (lto_output_varpool_node): Likewise.
25146 * data-streamer-out.c (streamer_string_index): Likewise.
25147 (streamer_write_data_stream, lto_append_block): Move from ...
25148 * lto-section-out.c (lto_output_data_stream,
25149 lto_append_block): ... here.
25151 2014-07-30 Mike Stump <mikestump@comcast.net>
25153 * configure.ac: Also check for popen.
25154 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
25155 * configure: Regenerate.
25156 * config.in: Regenerate.
25158 2014-07-30 Martin Jambor <mjambor@suse.cz>
25160 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
25161 parameter to gimple.
25163 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25165 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
25166 address as second parameter to __tpf_eh_return routine.
25168 2014-07-30 Jiong Wang <jiong.wang@arm.com>
25170 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
25173 2014-07-30 Tom Tromey <tromey@redhat.com>
25176 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
25177 * doc/extend.texi (Type Attributes): Document designated_init
25180 2014-07-30 Roman Gareev <gareevroman@gmail.com>
25182 * graphite-isl-ast-to-gimple.c:
25183 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
25184 (gcc_expression_from_isl_expression): Pass type to
25185 gcc_expression_from_isl_ast_expr_id.
25187 2014-07-30 Richard Biener <rguenther@suse.de>
25189 * lto-streamer.h (lto_write_data): New function.
25190 * langhooks.c (lhd_append_data): Do not free block.
25191 * lto-section-out.c (lto_write_data): New function writing
25192 raw data to the current section.
25193 (lto_write_stream): Adjust for langhook semantic change.
25194 (lto_destroy_simple_output_block): Write header directly.
25195 * lto-opts.c (lto_write_options): Write options directly.
25196 * lto-streamer-out.c (produce_asm): Write heaeder directly.
25197 (lto_output_toplevel_asms): Likewise.
25198 (copy_function_or_variable): Copy data directly.
25199 (write_global_references): Output index table directly.
25200 (lto_output_decl_state_refs): Likewise.
25201 (write_symbol): Write data directly.
25202 (produce_symtab): Adjust.
25203 (produce_asm_for_decls): Output header and refs directly.
25205 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
25207 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
25208 to speculative_targets
25209 (get_class_context): Fix handling of contextes without outer type;
25210 avoid matching non-polymorphic types in LTO.
25211 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
25212 parameter to speculative_targetsp; handle speculation.
25213 (dump_possible_polymorphic_call_targets): Update dumping.
25215 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
25217 * common.opt (Wodr): Enable by default.
25219 2014-07-29 Olivier Hainque <hainque@adacore.com>
25221 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
25223 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
25226 * gengtype.c (strtoken): New function.
25227 (create_user_defined_type): Replace strtok with strtoken.
25229 2014-07-29 Nathan Sidwell <nathan@acm.org>
25231 * gcov-io.c (gcov_var): Make hidden.
25232 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
25233 (gcov_do_dump): Declare.
25234 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
25236 2014-07-29 Martin Jambor <mjambor@suse.cz>
25238 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
25239 parameter to gimple.
25240 (sra_modify_assign): Likewise.
25242 2014-07-29 Richard Biener <rguenther@suse.de>
25244 PR middle-end/52478
25245 * expr.c (expand_expr_real_2): Revert last change.
25247 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
25249 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
25250 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
25251 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
25253 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
25254 (contains_type_p): Forward declare.
25255 (polymorphic_call_target_hasher::hash): Hash speculative info.
25256 (polymorphic_call_target_hasher::equal): Compare speculative info.
25257 (get_class_context): Handle speuclation.
25258 (contains_type_p): Update.
25259 (get_polymorphic_call_info_for_decl): Update.
25260 (walk_ssa_copies): Break out from ...
25261 (get_polymorphic_call_info): ... here; set speculative context
25263 * ipa-prop.c (ipa_write_indirect_edge_info,
25264 ipa_read_indirect_edge_info): Stream speculative context.
25265 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
25266 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
25267 SPECULATIVE_MAYBE_DERIVED_TYPE).
25268 (possible_polymorphic_call_targets overriders): Update.
25269 (dump_possible_polymorphic_call_targets overriders): Update.
25270 (dump_possible_polymorphic_call_target_p overriders): Update.
25272 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
25274 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
25275 ipa-devirt path; fix thinko there.
25277 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
25279 * config/i386/i386.c (ix86_return_in_memory): Replace one
25280 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
25282 2014-07-28 Marek Polacek <polacek@redhat.com>
25284 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
25286 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
25288 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
25289 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
25290 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
25291 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
25292 (USE_LD_AS_NEEDED): Likewise.
25293 (ASM_APP_ON): Likewise.
25294 (ASM_APP_OFF): Likewise.
25295 (TARGET_POSIX_IO): Likewise.
25296 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
25297 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
25298 (USE_LD_AS_NEEDED): Likewise.
25299 (ASM_APP_ON): Likewise.
25300 (ASM_APP_OFF): Likewise.
25301 (TARGET_POSIX_IO): Likewise.
25303 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
25305 PR middle-end/61734
25306 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
25307 operators other than the equality operators.
25309 2014-07-28 Richard Biener <rguenther@suse.de>
25311 PR middle-end/52478
25312 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
25313 sure to register SImode ones, not only >= word_mode ones.
25314 * expr.c (expand_expr_real_2): When expanding -ftrapv
25315 binops do not use OPTAB_LIB_WIDEN.
25317 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
25319 PR middle-end/61919
25320 * tree-outof-ssa.c (insert_partition_copy_on_edge)
25321 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
25322 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
25323 inserting them in the insn stream.
25325 2014-07-28 Marek Polacek <polacek@redhat.com>
25327 PR middle-end/61913
25328 * common.opt (Wodr): Add Var.
25330 2014-07-28 Richard Biener <rguenther@suse.de>
25332 PR tree-optimization/61921
25333 * tree-ssa-structalias.c (create_variable_info_for_1): Check
25334 if there is a varpool node before dereferencing it.
25336 2014-07-28 Roman Gareev <gareevroman@gmail.com>
25338 * graphite-sese-to-poly.c:
25339 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
25340 id of the pbb), which contains pointer to the pbb1.
25342 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
25344 2014-07-28 Roman Gareev <gareevroman@gmail.com>
25346 * graphite-isl-ast-to-gimple.c:
25347 (graphite_create_new_guard): New function.
25348 (translate_isl_ast_node_if): New function.
25349 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
25351 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
25353 2014-07-27 Anthony Green <green@moxielogic.com>
25355 * config.gcc: Add moxie-*-moxiebox* configuration.
25356 * config/moxie/moxiebox.h: New file.
25358 2014-07-26 Andrew Pinski <apinski@cavium.com>
25360 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
25361 from the read only register.
25363 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
25365 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
25366 as the allocation class if it isn't likely to be spilled.
25368 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
25370 * rtl.h (tls_referenced_p): Declare.
25371 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
25372 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
25373 (mips_cannot_force_const_mem): Use tls_referenced_p.
25374 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
25375 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
25376 instead of pa_tls_referenced_p.
25377 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
25378 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
25379 (pa_legitimate_constant_p): Likewise.
25380 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
25381 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
25382 (rs6000_cannot_force_const_mem, rs6000_emit_move)
25383 (rs6000_address_for_altivec): Use tls_referenced_p instead of
25384 rs6000_tls_referenced_p.
25385 (rs6000_tls_symbol_ref_1): Delete.
25387 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
25390 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
25391 Optimize inverse of a VEC_CONCAT.
25393 2014-07-25 Xinliang David Li <davidxl@google.com>
25395 * params.def: New parameter.
25396 * coverage.c (get_coverage_counts): Check new flag.
25397 (coverage_compute_profile_id): Check new flag.
25398 (coverage_begin_function): Check new flag.
25399 (coverage_end_function): Check new flag.
25400 * value-prof.c (coverage_node_map_initialized_p): New function.
25401 (init_node_map): Populate map with all functions.
25402 * doc/invoke.texi: Document new parameter.
25404 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
25405 Richard Biener <rguenther@suse.de>
25407 * lto-streamer-out.c (struct sccs): Turn to ...
25408 (class DFS): ... this one; refactor the DFS walk so it can
25409 be re-done on per-SCC basis.
25410 (DFS::DFS): New constructor.
25411 (DFS::~DFS): New destructor.
25412 (hash_tree): Add new MAP argument holding in-SCC hash values;
25413 remove POINTER_TYPE hashing hack.
25414 (scc_entry_compare): Rename to ...
25415 (DFS::scc_entry_compare): ... this one.
25416 (hash_scc): Rename to ...
25417 (DFS::hash_scc): ... this one; pass output_block instead
25418 of streamer_cache; work harder to get unique and stable SCC
25420 (DFS_write_tree): Rename to ...
25421 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
25422 (lto_output_tree): Update.
25424 2014-07-25 Andi Kleen <ak@linux.intel.com>
25426 * lto-streamer-out.c (hash_tree): Convert to inchash.
25428 2014-07-25 Andi Kleen <ak@linux.intel.com>
25430 * tree.c (build_type_attribute_qual_variant): Use inchash.
25431 (type_hash_list): Dito.
25432 (attribute_hash_list): Dito
25433 (iterative_hstate_expr): Dito.
25434 (iterative_hash_expr): Dito.
25435 (build_range_type_1): Dito.
25436 (build_array_type_1): Dito.
25437 (build_function_type): Dito.
25438 (build_method_type_directly): Dito.
25439 (build_offset_type): Dito.
25440 (build_complex_type): Dito.
25441 (make_vector_type): Dito.
25442 * tree.h (iterative_hash_expr): Add compat wrapper.
25443 (iterative_hstate_expr): Add.
25445 2014-07-25 Andi Kleen <ak@linux.intel.com>
25447 * Makefile.in (OBJS): Add inchash.o.
25448 (PLUGIN_HEADERS): Add inchash.h.
25449 * ipa-devirt.c: Include inchash.h.
25450 * lto-streamer-out.c: Dito.
25451 * tree-ssa-dom.c: Dito.
25452 * tree-ssa-pre.c: Dito.
25453 * tree-ssa-sccvn.c: Dito.
25454 * tree-ssa-tail-merge.c: Dito.
25456 * tree.c (iterative_hash_hashval_t): Move to ...
25457 (iterative_hash_host_wide_int): Move to ...
25458 * inchash.c: Here. New file.
25459 * tree.h (iterative_hash_hashval_t): Move to ...
25460 (iterative_hash_host_wide_int): Move to ...
25461 * inchash.h: Here. New file.
25463 2014-07-25 Richard Biener <rguenther@suse.de>
25465 PR middle-end/61762
25466 PR middle-end/61894
25467 * fold-const.c (native_encode_int): Add and handle offset
25468 parameter to do partial encodings of expr.
25469 (native_encode_fixed): Likewise.
25470 (native_encode_real): Likewise.
25471 (native_encode_complex): Likewise.
25472 (native_encode_vector): Likewise.
25473 (native_encode_string): Likewise.
25474 (native_encode_expr): Likewise.
25475 * fold-const.c (native_encode_expr): Add offset parameter
25477 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
25478 (fold_ctor_reference): Handle all reads from tcc_constant
25481 2014-07-25 Richard Biener <rguenther@suse.de>
25483 * tree-inline.c (estimate_move_cost): Mark speed_p argument
25484 as possibly unused.
25486 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25488 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
25490 2014-07-24 Kyle McMartin <kyle@redhat.com>
25492 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
25494 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25496 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
25498 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
25500 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
25501 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
25502 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
25504 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25506 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
25507 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
25508 aggregate types. Instead, *all* aggregate types, except for single-
25509 element or homogeneous float/vector aggregates, are quadword-aligned
25510 if required by their type alignment. Issue -Wpsabi note when a type
25511 is now treated differently than before.
25513 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25515 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
25516 does not fit fully into floating-point registers, and there is still
25517 space in the register parameter area, use GPRs to pass those parts
25518 of the argument. Issue -Wpsabi note if any parameter is now treated
25519 differently than before.
25520 (rs6000_arg_partial_bytes): Update.
25522 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
25524 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
25526 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
25528 * rtl.h (target_rtl): Remove lang_dependent_initialized.
25529 * toplev.c (initialize_rtl): Don't use it. Move previously
25530 "language-dependent" calls to...
25531 (backend_init): ...here.
25532 (lang_dependent_init_target): Don't set lang_dependent_initialized.
25533 Assert that RTL initialization hasn't happend yet.
25535 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
25537 PR rtl-optimization/61629
25538 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
25539 they have already been initialized.
25541 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
25543 PR middle-end/61268
25544 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
25545 DECL_INCOMING_RTL and entry_parm.
25546 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
25547 * calls.c (load_register_parameters): Likewise argument values.
25548 (emit_library_call_value_1, store_one_arg): Likewise argument
25550 * config/i386/i386.c (assign_386_stack_local): Likewise the local
25552 * explow.c (validize_mem): Modify the argument in-place.
25554 2014-07-24 Jiong Wang <jiong.wang@arm.com>
25556 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
25557 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
25559 2014-07-24 Jiong Wang <jiong.wang@arm.com>
25561 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
25562 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
25564 2014-07-24 Jiong Wang <jiong.wang@arm.com>
25566 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
25567 (aarch64_save_callee_saves): New parameter "skip_wb".
25568 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
25570 2014-07-24 Jiong Wang <jiong.wang@arm.com>
25572 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
25574 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
25576 2014-07-24 Roman Gareev <gareevroman@gmail.com>
25578 * graphite-isl-ast-to-gimple.c:
25579 (graphite_create_new_loop): Add calling of isl_id_free to properly
25580 decrement reference counts.
25582 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
25584 2014-07-24 Martin Liska <mliska@suse.cz>
25585 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
25587 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
25588 (rs6000_code_end): Likewise.
25590 2014-07-24 Martin Liska <mliska@suse.cz>
25592 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
25593 symtab_node funtion used.
25594 (rs6000_xcoff_declare_object_name): Likewise.
25596 2014-07-24 Martin Liska <mliska@suse.cz>
25598 * cgraphunit.c (compile): Correct function used.
25600 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
25602 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
25605 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
25608 * varasm.c (bss_initializer_p): Handle offlined ctors.
25609 (align_variable, get_variable_align): Likewise.
25610 (make_decl_one_only): Likewise.
25611 (default_binds_local_p_1): Likewise.
25612 (decl_binds_to_current_def_p): Likewise.
25613 (get_variable_section): Get constructor if it is offlined.
25614 (assemble_variable_contents): Sanity check that the caller
25615 streamed in the ctor in LTO.
25617 2014-07-24 Roman Gareev <gareevroman@gmail.com>
25619 * graphite-isl-ast-to-gimple.c:
25620 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
25621 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
25622 isl_ast_op_pdiv_r to the different case.
25624 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
25626 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25628 PR middle-end/61876
25629 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
25630 when flag_errno_math is on.
25632 2014-07-24 Martin Liska <mliska@suse.cz>
25634 * cgraph.h (varpool_node):
25635 (availability get_availability (void)):
25636 created from cgraph_variable_initializer_availability
25637 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
25638 created from: cgraph_variable_initializer_availability
25639 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
25640 (void finalize_named_section_flags (void)):
25641 created from varpool_finalize_named_section_flags
25642 (bool assemble_decl (void)): created from varpool_assemble_decl
25643 (void analyze (void)): created from varpool_analyze_node
25644 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
25645 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
25646 (void remove_initializer (void)): created from varpool_remove_initializer
25647 (tree get_constructor (void)): created from varpool_get_constructor
25648 (bool externally_visible_p (void)): created from varpool_externally_visible_p
25649 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
25650 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
25651 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
25652 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
25653 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
25654 (static bool output_variables (void)): created from varpool_output_variables
25655 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
25656 created from varpool_extra_name_alias
25657 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
25658 (static void dump_varpool (FILE *f)): created from dump_varpool
25659 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
25660 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
25661 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
25662 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
25663 (void assemble_aliases (void)): created from assemble_aliases
25665 2014-07-24 Martin Liska <mliska@suse.cz>
25667 * cgraph.h (symtab_node):
25668 (void register_symbol (void)): created from symtab_register_node
25669 (void remove (void)): created from symtab_remove_node
25670 (void dump (FILE *f)): created from dump_symtab_node
25671 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
25672 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
25673 (struct ipa_ref *add_reference (symtab_node *referred_node,
25674 enum ipa_ref_use use_type)): created from add_reference
25675 (struct ipa_ref *add_reference (symtab_node *referred_node,
25676 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
25677 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
25678 gimple stmt)): created from maybe_add_reference
25679 (bool semantically_equivalent_p (symtab_node *target)): created from
25680 symtab_semantically_equivalent_p
25681 (void remove_from_same_comdat_group (void)): created from
25682 remove_from_same_comdat_group
25683 (void add_to_same_comdat_group (symtab_node *old_node)): created from
25684 symtab_add_to_same_comdat_group
25685 (void dissolve_same_comdat_group_list (void)): created from
25686 symtab_dissolve_same_comdat_group_list
25687 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
25688 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
25689 created from symtab_alias_ultimate_target
25690 (inline symtab_node *next_defined_symbol (void)): created from
25691 symtab_next_defined_symbol
25692 (bool resolve_alias (symtab_node *target)): created from
25693 symtab_resolve_alias
25694 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
25695 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
25696 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
25697 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
25698 (void set_section (const char *section)): created from set_section_1
25699 (enum availability get_availability (void)): created from symtab_node_availability
25700 (void make_decl_local (void)): created from symtab_make_decl_local
25701 (bool real_symbol_p (void)): created from symtab_read_node
25702 (can_be_discarded_p (void)): created from symtab_can_be_discarded
25703 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
25704 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
25705 symtab_in_same_comdat_p;
25706 (bool address_taken_from_non_vtable_p (void)): created from
25707 address_taken_from_non_vtable_p
25708 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
25709 (static void dump_table (FILE *)): created from dump_symtab
25710 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
25711 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
25712 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
25713 symtab_used_from_object_file_p
25714 (void dump_base (FILE *)): created from dump_symtab_base
25715 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
25716 (void unregister (void)): created from symtab_unregister_node
25717 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
25718 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
25719 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
25720 symtab_nonoverwritable_alias_1
25721 * cgraph.h (cgraph_node):
25722 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
25723 created from cgraph_remove_node_and_inline_clones
25724 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
25725 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
25726 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
25727 (cgraph_node *function_symbol (enum availability *avail = NULL)):
25728 created from cgraph_function_node
25729 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
25730 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
25731 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
25732 created from cgraph_create_clone
25733 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
25734 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
25735 created from cgraph_create_virtual_clone
25736 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
25737 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
25738 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
25739 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
25740 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
25741 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
25742 created from cgraph_function_version_info
25743 (struct cgraph_function_version_info *insert_new_function_version (void)):
25744 created from insert_new_cgraph_node_version
25745 (struct cgraph_function_version_info *function_version (void)): created from
25746 get_cgraph_node_version
25747 (void analyze (void)): created from analyze_function
25748 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
25749 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
25750 tree real_alias) cgraph_add_thunk
25751 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
25752 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
25753 created from cgraph_function_or_thunk_node
25754 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
25755 created from expand_thunk
25756 (void reset (void)): created from cgraph_reset_node
25757 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
25758 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
25759 (void remove (void)): created from cgraph_remove_node
25760 (void dump (FILE *f)): created from dump_cgraph_node
25761 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
25762 (bool get_body (void)): created from cgraph_get_body
25763 (void release_body (void)): created from cgraph_release_function_body
25764 (void unnest (void)): created from cgraph_unnest_node
25765 (void make_local (void)): created from cgraph_make_node_local
25766 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
25767 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
25768 gcov_type count, int freq)): created from cgraph_create_edge
25769 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
25770 gcov_type count, int freq)): created from cgraph_create_indirect_edge
25771 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
25772 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
25773 created from cgraph_create_edge_including_clones
25774 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
25775 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
25776 (void remove_callers (void)): created from cgraph_node_remove_callers
25777 (void remove_callees (void)): created from cgraph_node_remove_callees
25778 (enum availability get_availability (void)): created from cgraph_function_body_availability
25779 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
25780 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
25781 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
25782 (void call_duplication_hooks (cgraph_node *node2)): created from
25783 cgraph_call_node_duplication_hooks
25784 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
25785 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
25786 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
25787 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
25788 (void call_function_insertion_hooks (void)):
25789 created from cgraph_call_function_insertion_hooks
25790 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
25791 (bool local_p (void)): created from cgraph_local_node
25792 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
25793 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
25794 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
25795 (inline bool only_called_directly_or_aliased_p (void)):
25796 created from cgraph_only_called_directly_or_aliased_p
25797 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
25798 created from cgraph_will_be_removed_from_program_if_no_direct_calls
25799 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
25800 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
25801 (bool can_remove_if_no_direct_calls_p (void)):
25802 created from cgraph_can_remove_if_no_direct_calls_p
25803 (inline bool has_gimple_body_p (void)):
25804 created from cgraph_function_with_gimple_body_p
25805 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
25806 (static void dump_cgraph (FILE *f)): created from dump_cgraph
25807 (static inline void debug_cgraph (void)): created from debug_cgraph
25808 (static void record_function_versions (tree decl1, tree decl2)):
25809 created from record_function_versions
25810 (static void delete_function_version (tree decl)):
25811 created from delete_function_version
25812 (static void add_new_function (tree fndecl, bool lowered)):
25813 created from cgraph_add_new_function
25814 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
25815 (static cgraph_node * create (tree decl)): created from cgraph_create_node
25816 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
25817 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
25818 (static cgraph_node *get_for_asmname (tree asmname)):
25819 created from cgraph_node_for_asm
25820 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
25821 created from cgraph_same_body_alias
25822 (static bool used_from_object_file_p_worker (cgraph_node *node,
25823 void *): new function
25824 (static bool non_local_p (cgraph_node *node, void *)):
25825 created from cgraph_non_local_node_p_1
25826 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
25827 created from verify_cgraph
25828 (static bool make_local (cgraph_node *node, void *)):
25829 created from cgraph_make_node_local
25830 (static cgraph_node *create_alias (tree alias, tree target)):
25831 created from cgraph_create_function_alias
25832 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
25833 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
25834 created from cgraph_create_edge_1
25835 * cgraph.h (varpool_node):
25836 (void remove (void)): created from varpool_remove_node
25837 (void dump (FILE *f)): created from dump_varpool_node
25839 2014-07-24 Richard Biener <rguenther@suse.de>
25842 * tree-ssa-structalias.c (create_variable_info_for_1):
25843 Use varpool_get_constructor.
25844 (create_variable_info_for): Likewise.
25846 2014-07-24 Jiong Wang <jiong.wang@arm.com>
25848 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
25849 subtract outgoing area size when restoring stack_pointer_rtx.
25851 2014-07-24 Nick Clifton <nickc@redhat.com>
25853 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
25854 that operations are taking place in parallel.
25855 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
25857 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
25859 * omp-low.c (extract_omp_for_data): Add missing break statement.
25861 2014-07-24 Richard Biener <rguenther@suse.de>
25863 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
25864 * tree-inline.c (estimate_move_cost): Add speed_p parameter
25865 and adjust MOVE_RATIO query accordingly.
25866 (estimate_num_insns): Adjust callers.
25867 * ipa-prop.c (ipa_populate_param_decls): Likewise.
25868 * ipa-cp.c (gather_context_independent_values,
25869 estimate_local_effects): Likewise.
25870 * ipa-split.c (consider_split): Likewise.
25872 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
25874 * config/i386/driver-i386.c: Remove names of unused arguments and
25875 unnecessary unused attributes.
25876 * config/i386/host-mingw32.c: Likewise.
25877 * config/i386/i386.c: Likewise.
25878 * config/i386/winnt-stubs.c: Likewise.
25879 * config/i386/winnt.c: Likewise.
25881 2014-07-23 Jiong Wang <jiong.wang@arm.com>
25883 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
25884 (aarch64_gen_loadwb_pair): New helper function.
25885 (aarch64_expand_epilogue): Simplify code using new helper functions.
25886 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
25888 2014-07-23 Jiong Wang <jiong.wang@arm.com>
25890 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
25891 (aarch64_gen_storewb_pair): New helper function.
25892 (aarch64_expand_prologue): Simplify code using new helper functions.
25893 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
25895 2014-07-23 Jiong Wang <jiong.wang@arm.com>
25897 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
25898 Rename to aarch64_save_callee_saves, remove restore code.
25899 (aarch64_restore_callee_saves): New function.
25901 2014-07-23 Jiong Wang <jiong.wang@arm.com>
25903 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
25904 (aarch64_save_callee_saves): New function to handle reg save
25905 for both core and vectore regs.
25907 2014-07-23 Jiong Wang <jiong.wang@arm.com>
25909 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
25910 (aarch64_gen_store_pair): New helper function.
25911 (aarch64_save_or_restore_callee_save_registers)
25912 (aarch64_save_or_restore_fprs): Use new helper functions.
25914 2014-07-23 Jiong Wang <jiong.wang@arm.com>
25916 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
25917 (aarch64_save_or_restore_callee_save_registers)
25918 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
25920 2014-07-23 Jiong Wang <jiong.wang@arm.com>
25922 * config/aarch64/aarch64.c
25923 (aarch64_save_or_restore_callee_save_registers)
25924 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
25926 2014-07-23 Jiong Wang <jiong.wang@arm.com>
25928 * config/aarch64/aarch64.c
25929 (aarch64_save_or_restore_callee_save_registers)
25930 (aarch64_save_or_restore_fprs): Remove 'increment'.
25932 2014-07-23 Jiong Wang <jiong.wang@arm.com>
25934 * config/aarch64/aarch64.c
25935 (aarch64_save_or_restore_callee_save_registers)
25936 (aarch64_save_or_restore_fprs): Use register offset in
25937 cfun->machine->frame.reg_offset.
25939 2014-07-23 Jiong Wang <jiong.wang@arm.com>
25941 * config/aarch64/aarch64.c
25942 (aarch64_save_or_restore_callee_save_registers)
25943 (aarch64_save_or_restore_fprs): Remove base_rtx.
25945 2014-07-23 Jiong Wang <jiong.wang@arm.com>
25947 * config/aarch64/aarch64.c
25948 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
25949 to 'start_offset'. Remove local variable 'start_offset'.
25951 2014-07-23 Jiong Wang <jiong.wang@arm.com>
25953 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
25954 type to HOST_WIDE_INT.
25956 2014-07-23 Jiong Wang <jiong.wang@arm.com>
25958 * config/aarch64/aarch64.c (aarch64_expand_prologue)
25959 (aarch64_save_or_restore_fprs)
25960 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
25962 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
25964 * config/arm/t-rtems-eabi: Add
25965 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
25966 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
25967 mbig-endian/mthumb/march=armv7-r, and
25968 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
25971 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
25972 Chris Johns <chrisj@rtems.org>
25973 Joel Sherrill <joel.sherrill@oarcorp.com>
25975 * config.gcc: Add nios2-*-rtems*.
25976 * config/nios2/rtems.h: New file.
25977 * gcc/config/nios2/t-rtems: New file.
25979 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
25982 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
25983 constant numbers, not general constants.
25984 (rs6000_expand_vector_init): Ditto.
25986 2014-07-23 Nathan Sidwell <nathan@acm.org>
25988 * gcov-tool.c (gcov_list): Declare here.
25989 (set_gcov_list): Remove.
25990 (gcov_output_files): Set gcov_list directly.
25992 2014-07-23 Host Schirmeier <horst@schirmeier.com>
25994 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
25996 2014-07-23 Jiong Wang <jiong.wang@arm.com>
25998 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
25999 callee-saved registers are available for padding purpose
26000 and r3 is not mandatory, then prefer use those callee-saved
26003 2014-07-23 Richard Biener <rguenther@suse.de>
26005 * params.def (PARAM_MAX_COMBINE_INSNS): New.
26006 * combine.c: Include statistics.h and params.h.
26007 (combine_instructions): Guard three and four insn combines
26008 with max-combine-insns value. Record statistics for combines
26010 * doc/invoke.texi (max-combine-insns): Document new param.
26012 2014-07-23 Roman Gareev <gareevroman@gmail.com>
26014 * graphite-isl-ast-to-gimple.c:
26015 (translate_isl_ast_node_block): New function.
26016 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
26018 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
26019 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
26021 2014-07-23 Roman Gareev <gareevroman@gmail.com>
26023 * graphite-isl-ast-to-gimple.c:
26024 (get_max_schedule_dimensions): New function.
26025 (extend_schedule): Likewise.
26026 (generate_isl_schedule): Add calling of extend_schedule and
26027 get_max_schedule_dimensions.
26029 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26031 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
26032 (case UNSPEC): Handle UNSPEC_RBIT.
26034 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26036 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
26037 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
26039 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26041 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
26043 2014-07-22 Roman Gareev <gareevroman@gmail.com>
26045 * graphite-isl-ast-to-gimple.c:
26046 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
26047 (ivs_params_clear):
26048 (build_iv_mapping): New function.
26049 (translate_isl_ast_node_user): Likewise.
26050 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
26052 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
26053 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
26054 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
26056 2014-07-21 Bin Cheng <bin.cheng@arm.com>
26059 * config/arm/arm.md (setmem): New pattern.
26060 * config/arm/arm-protos.h (struct tune_params): New fields.
26061 (arm_gen_setmem): New prototype.
26062 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
26063 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
26064 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
26065 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
26066 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
26067 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
26068 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
26069 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
26070 (arm_const_inline_cost): New function.
26071 (arm_block_set_max_insns): New function.
26072 (arm_block_set_non_vect_profit_p): New function.
26073 (arm_block_set_vect_profit_p): New function.
26074 (arm_block_set_unaligned_vect): New function.
26075 (arm_block_set_aligned_vect): New function.
26076 (arm_block_set_unaligned_non_vect): New function.
26077 (arm_block_set_aligned_non_vect): New function.
26078 (arm_block_set_vect, arm_gen_setmem): New functions.
26080 2014-07-21 Bin Cheng <bin.cheng@arm.com>
26082 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
26084 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
26087 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
26088 out of #ifdef __OPTIMIZE__.
26090 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
26092 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
26093 different trapping status if -fnon-call-exceptions is enabled.
26095 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
26097 * expr.c (store_field): Handle VOIDmode for calls that return values
26098 in multiple locations.
26100 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26102 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
26103 (altivec_vsldoi_<mode>): Likewise.
26105 2014-07-20 Roman Gareev <gareevroman@gmail.com>
26107 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
26108 to the number of characters in the line.
26110 2014-07-20 Roman Gareev <gareevroman@gmail.com>
26112 * graphite-isl-ast-to-gimple.c: Add using of
26113 build_nonstandard_integer_type instead of int128_integer_type_node.
26115 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
26117 * toplev.c (output_stack_usage): Adjust the location of the warning.
26119 2014-07-19 Daniel Cederman <cederman@gaisler.com>
26121 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
26122 (*membar_storeload): Disable for LEON3.
26124 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
26126 PR rtl-optimization/61461
26127 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
26129 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
26132 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
26133 Fix instruction constraint.
26134 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
26136 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
26138 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
26140 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
26142 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
26143 GNU coding standards.
26144 (nds32_register_move_cost): Likewise.
26145 (nds32_memory_move_cost): Likewise.
26146 (nds32_address_cost): Likewise.
26148 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26150 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
26152 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
26154 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
26155 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
26156 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
26157 (HAVE_sync_compare_and_swapqi): Define.
26158 (HAVE_sync_compare_and_swaphi): Likewise.
26159 (HAVE_sync_compare_and_swapsi): Likewise.
26161 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
26163 * config/mips/p5600.md: Add missing cpu tests.
26165 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26167 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
26168 (vmla_f64): Likewise.
26169 (vfms_f64): Likewise.
26170 (vmls_f64): Likewise.
26172 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26174 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
26175 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
26177 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26179 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
26180 (vmlal_high_lane_s32): Likewise.
26181 (vmlal_high_lane_u16): Likewise.
26182 (vmlal_high_lane_u32): Likewise.
26183 (vmlsl_high_lane_s16): Likewise.
26184 (vmlsl_high_lane_s32): Likewise.
26185 (vmlsl_high_lane_u16): Likewise.
26186 (vmlsl_high_lane_u32): Likewise.
26188 2014-07-17 Terry Guo <terry.guo@arm.com>
26190 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
26191 (alus_reg): Renamed to alus_sreg.
26192 * config/arm/arm-fixed.md: Change type of non-dsp instructions
26193 from alu_reg to alu_sreg. Change type of dsp instructions from
26194 alu_reg to alu_dsp_reg.
26195 * config/arm/thumb1.md: Likewise.
26196 * config/arm/thumb2.md: Likewise.
26197 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
26198 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
26199 with alu_sreg and alus_sreg.
26200 * config/arm/arm1026ejs.md (alu_op): Likewise.
26201 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
26202 * config/arm/arm926ejs.md (9_alu_op): Likewise.
26203 * config/arm/fa526.md (526_alu_op): Likewise.
26204 * config/arm/fa606te.md (606te_alu_op): Likewise.
26205 * config/arm/fa626te.md (626te_alu_op): Likewise.
26206 * config/arm/fa726te.md (726te_alu_op): Likewise.
26207 * config/arm/fmp626.md (mp626_alu_op): Likewise.
26208 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
26209 alu_sreg, alu_dsp_reg and alus_sreg.
26210 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
26211 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
26212 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
26213 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
26214 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
26215 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
26216 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
26217 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
26218 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
26219 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
26220 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
26221 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
26222 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
26223 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
26224 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
26225 alus_reg to alus_sreg.
26227 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
26229 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
26232 2014-07-17 Richard Biener <rguenther@suse.de>
26234 PR rtl-optimization/61801
26235 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
26236 don't set reg_pending_barrier if it appears in a debug-insn.
26238 2014-07-16 DJ Delorie <dj@redhat.com>
26240 * config/rx/rx.c (rx_option_override): Fix alignment values.
26241 (rx_align_for_label): Likewise.
26243 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
26246 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
26247 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
26248 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
26250 (cris_print_index, cris_print_operand, cris_constant_index_p)
26251 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
26252 (cris_address_cost): Ditto last CONSTANT_P.
26253 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
26254 callers changed. Yield cris_offsettable_symbol for non-PIC
26255 constant symbolic expressions including labels. Yield cris_unspec
26257 (cris_expand_pic_call_address): New parameter MARKERP. Set its
26258 target to pic_offset_table_rtx for calls that will likely go
26259 through PLT, const0_rtx when they can't. All callers changed.
26260 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
26261 symbolic expressions to be PICified. Remove second, redundant,
26262 assert on can_create_pseudo_p returning non-zero. Use
26263 replace_equiv_address_nv, not replace_equiv_address, for final
26265 * config/cris/cris.md ("movsi"): Move variable t to pattern
26266 toplevel. Adjust assert for new cris_symbol_type member. Use
26267 CONSTANT_P instead of CONSTANT_ADDRESS_P.
26268 ("*movsi_internal") <case 9>: Make check for valid unspec operands
26270 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
26271 ("call", "call_value"): Use second incoming operand as a marker
26272 for pic-offset-table-register being used.
26273 ("*expanded_call_non_v32", "*expanded_call_v32")
26274 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
26275 second incoming operand to CALL, match cris_call_type_marker.
26276 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
26277 ("*expanded_call_side"): Ditto. Fix typo in comment.
26278 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
26280 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
26281 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
26282 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
26283 users changed. Add members cris_offsettable_symbol and cris_unspec.
26284 (cris_symbol_type): Rename from cris_pic_symbol_type.
26285 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
26287 * config/cris/cris-protos.h (cris_symbol_type_of,
26288 cris_expand_pic_call_address): Adjust prototypes.
26289 (cris_legitimate_constant_p): New prototype.
26291 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
26292 an existing tmake_file. Don't add t-slibgcc and t-linux.
26294 2014-07-17 Jason Merrill <jason@redhat.com>
26297 * symtab.c (symtab_remove_from_same_comdat_group): Also
26298 set_comdat_group to NULL_TREE.
26299 (verify_symtab): Fix diagnostic.
26301 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
26304 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
26306 2014-07-16 Dodji Seketeli <dodji@redhat.com>
26308 Support location tracking for built-in macro tokens
26309 * input.h (is_location_from_builtin_token): New function declaration.
26310 * input.c (is_location_from_builtin_token): New function definition.
26311 * toplev.c (general_init): Tell libcpp what the pre-defined
26312 spelling location for built-in tokens is.
26314 2014-07-16 Jakub Jelinek <jakub@redhat.com>
26316 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
26317 on the FUNCTION_DECL.
26319 2014-07-16 Richard Biener <rguenther@suse.de>
26322 * doc/extend.texi (always_inline): Clarify.
26324 2014-07-15 Eric Christopher <echristo@gmail.com>
26326 * doc/invoke.texi (Link Options): Document -z option.
26328 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
26330 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
26331 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
26333 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
26335 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
26337 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
26339 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
26340 varpool_assemble_decl.
26341 * varpool.c (varpool_assemble_decl): Assert that node->definition is
26344 2014-07-15 Michael Matz <matz@suse.de>
26346 PR rtl-optimization/61772
26347 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
26349 2014-07-15 Richard Biener <rguenther@suse.de>
26351 * opts.c (default_options_table): Disable bit-ccp at -Og.
26353 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
26355 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
26357 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
26359 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
26360 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
26361 call langhook for unknown declaration.
26362 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
26363 * tree.h (DECL_ARGUMENTS): Update.
26364 * print-tree.c (print_node): Update.
26365 * tree-core.h (tree_decl_non_common): Remove arguments.
26366 (tree_function_decl): Add arguments.
26368 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
26370 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
26372 2014-07-14 Richard Biener <rguenther@suse.de>
26374 PR tree-optimization/61779
26375 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
26376 simplifying a condition.
26378 2014-07-14 Richard Biener <rguenther@suse.de>
26380 * builtins.c (c_strlen): Make only_value == 2 really only
26381 affect warning generation.
26383 2014-07-14 Richard Biener <rguenther@suse.de>
26385 PR tree-optimization/61757
26386 PR tree-optimization/61783
26387 PR tree-optimization/61787
26388 * tree-ssa-dom.c (record_equality): Revert canonicalization
26389 change and add comment.
26390 (propagate_rhs_into_lhs): Revert previous fix, removing
26391 loop depth restriction again.
26393 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26395 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
26396 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
26397 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
26398 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
26399 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
26400 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
26401 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
26403 2014-07-14 Richard Biener <rguenther@suse.de>
26405 * cgraph.h (decl_in_symtab_p): Make inline.
26407 2014-07-14 Jakub Jelinek <jakub@redhat.com>
26409 PR middle-end/61294
26410 * doc/invoke.texi (-Wmemset-transposed-args): Document.
26413 * config/i386/i386.c (classify_argument): Don't merge classes above
26416 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
26418 * cgraph.h (symtab_node): Add nonzero_address.
26419 (decl_in_symtab_p): Break out from ...
26420 (symtab_get_node): ... here.
26421 * fold-const.c: Include cgraph.h
26422 (tree_single_nonzero_warnv_p): Use symtab to determine
26423 if symbol is non-zero.
26424 * symtab.c (symtab_node::nonzero_address): New method.
26426 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
26428 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
26429 forgotten in previous commit.
26431 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
26433 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
26435 * ipa-devirt.c: Include stor-layout.h and intl.h
26436 (odr_subtypes_equivalent_p): New function.
26437 (warn_odr): New function.
26438 (warn_type_mismatch): New function.
26439 (odr_types_equivalent_p): New function.
26440 (add_type_duplicate): Use it.
26441 * common.opt (Wodr): New flag.
26442 * doc/invoke.texi (Wodr): Document new warning.
26444 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
26446 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
26447 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
26448 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
26449 (varpool_get_constructor): Push CTORS_IN timevar.
26450 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
26452 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
26454 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
26455 Remove VOID_FTYPE_PUSHORT.
26456 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
26457 Change code to USHORT_FTYPE_VOID.
26458 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
26459 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
26460 (ix86_atomic_assign_expand_fenv): Update for
26461 __builtin_ia32_fnstsw changes.
26462 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
26463 (fnstsw): Change operand 0 to nonimmediate operand.
26465 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
26467 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
26468 (varpool_get_constructor): New function.
26469 (varpool_ctor_useable_for_folding_p): Break out from ...
26470 (ctor_for_folding): ... here; use varpool_get_constructor.
26471 (varpool_assemble_decl): Likewise.
26472 * lto-streamer.h (struct output_block): Turn cgraph_node
26474 (lto_input_variable_constructor): Declare.
26475 * ipa-visibility.c (function_and_variable_visibility): Use
26476 varpool_get_constructor.
26477 * cgraph.h (varpool_get_constructor): Declare.
26478 (varpool_ctor_useable_for_folding_p): New function.
26479 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
26480 parameter; return error_mark_node for non-trivial constructors.
26481 (lto_write_tree_1, DFS_write_tree): Update use of
26482 get_symbol_initial_value.
26483 (output_function): Update initialization of symbol.
26484 (output_constructor): New function.
26485 (copy_function): Rename to ..
26486 (copy_function_or_variable): ... this one; handle vars too.
26487 (lto_output): Output variable sections.
26488 * lto-streamer-in.c (input_constructor): New function.
26489 (lto_read_body): Rename from ...
26490 (lto_read_body_or_constructor): ... this one; handle vars too.
26491 (lto_input_variable_constructor): New function.
26492 * ipa-prop.c (ipa_prop_write_jump_functions,
26493 ipa_prop_write_all_agg_replacement): Update.
26494 * lto-cgraph.c (compute_ltrans_boundary): Use it.
26495 (output_cgraph_opt_summary): Set symbol to NULL.
26497 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
26499 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
26500 non-polymorphic types.
26501 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
26502 * ipa-devirt.c (types_same_for_odr): Do not explode when one
26503 of types is not polymorphic.
26505 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
26507 * lra-constraints.c (remove_inheritance_pseudos): Process
26508 destination pseudo too.
26510 2014-07-11 Rong Xu <xur@google.com>
26512 * gcov-tool.c (gcov_output_files): Fix build error introduced in
26515 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26517 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
26518 * config/avr/avr-devices.c (AVR_MCU): Same.
26519 (avr_mcu_types): add text start value to end of device list.
26520 * config/avr/avr-mcus.def: Add text section start for all devices.
26521 (ata5782): Add new avr5 device.
26523 * config/avr/avr-tables.opt: Regenerate.
26524 * config/avr/avr.h: Add declaration for text section start handler.
26525 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
26527 (LINK_SPEC): Include text section start handler to linker spec.
26528 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
26529 pass -Ttext option to linker if the text section start for the device
26531 * config/avr/t-multilib: Regenerate.
26532 * doc/avr-mmcu.texi: Regenerate.
26534 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
26536 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
26537 * config/rs6000/aix52.h (LINK_SPEC): Same.
26538 * config/rs6000/aix53.h (LINK_SPEC): Same.
26539 * config/rs6000/aix61.h (LINK_SPEC): Same.
26540 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
26542 2014-07-11 Roman Gareev <gareevroman@gmail.com>
26544 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
26545 (graphite_verify): New function.
26546 (ivs_params_clear): New function.
26547 (gcc_expression_from_isl_ast_expr_id): New function.
26548 (gcc_expression_from_isl_expr_int): New function.
26549 (binary_op_to_tree): New function.
26550 (ternary_op_to_tree): New function.
26551 (unary_op_to_tree): New function.
26552 (nary_op_to_tree): New function.
26553 (gcc_expression_from_isl_expr_op): New function.
26554 (gcc_expression_from_isl_expression): New function.
26555 (graphite_create_new_loop): New function.
26556 (translate_isl_ast_for_loop): New function.
26557 (get_upper_bound): New function.
26558 (graphite_create_new_loop_guard): New function.
26559 (translate_isl_ast_node_for): New function.
26560 (translate_isl_ast): New function.
26561 (add_parameters_to_ivs_params): New function.
26562 (scop_to_isl_ast): New parameter ip.
26563 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
26565 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
26567 * config/xtensa/predicates.md (call expander): Update for
26568 DECL_SECTION_NAME being string.
26570 2014-07-11 Richard Biener <rguenther@suse.de>
26572 PR middle-end/61473
26573 * builtins.c (fold_builtin_memory_op): Inline memory moves that
26574 can be implemented with a single load followed by a single store.
26575 (c_strlen): Only warn when only_value is not 2.
26577 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
26579 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
26581 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
26584 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
26585 (*movhi_bytes): Likewise.
26586 (*arm_movqi_insn): Likewise.
26588 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
26591 * config/alpha/alpha.c: Include tree-pass.h, context.h
26592 and pass_manager.h.
26593 (pass_data_handle_trap_shadows): New pass.
26594 (pass_handle_trap_shadows::gate): New pass gate function.
26595 (make_pass_handle_trap_shadows): New function.
26596 (rest_of_handle_trap_shadows): Ditto.
26598 (alpha_align_insns_1): Rename from alpha_align_insns.
26599 (pass_data_align_insns): New pass.
26600 (pass_align_insns::gate): New pass gate function.
26601 (make_pass_aling_insns): New function.
26602 (rest_of_align_insns): Ditto.
26603 (alpha_align_insns): Ditto.
26605 (alpha_option_override): Declare handle_trap_shadows info
26606 and align_insns_info. Register handle_trap_shadows and align_insns
26608 (alpha_reorg): Do not call alpha_trap_shadows and
26609 alpha_align_insn from here.
26611 (alpha_pad_function_end): Do not skip BARRIERs.
26613 2014-07-10 Rong Xu <xur@google.com>
26615 Add gcov-tool: an offline gcda profile processing tool support.
26616 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
26617 (gcov_is_error): Ditto.
26618 (gcov_read_string): Ditto.
26619 (gcov_read_sync): Ditto.
26620 * gcov-io.h: Move counter defines to gcov-counter.def.
26621 * gcov-dump.c (tag_counters): Use gcov-counter.def.
26622 * coverage.c: Ditto.
26623 * gcov-tool.c: Offline gcda profile processing tool.
26624 (unlink_gcda_file): Remove one gcda file.
26625 (unlink_profile_dir): Remove gcda files from the profile path.
26626 (gcov_output_files): Output gcda files to an output dir.
26627 (profile_merge): Merge two profiles in directory.
26628 (print_merge_usage_message): Print merge usage.
26629 (merge_usage): Print merge usage and exit.
26630 (do_merge): Driver for profile merge sub-command.
26631 (profile_rewrite): Rewrite profile.
26632 (print_rewrite_usage_message): Print rewrite usage.
26633 (rewrite_usage): Print rewrite usage and exit.
26634 (do_rewrite): Driver for profile rewrite sub-command.
26635 (print_usage): Print gcov-info usage and exit.
26636 (print_version): Print gcov-info version.
26637 (process_args): Process arguments.
26638 (main): Main routine for gcov-tool.
26639 * Makefile.in: Build and install gcov-tool.
26640 * gcov-counter.def: New file split from gcov-io.h.
26641 * doc/gcc.texi: Include gcov-tool.texi.
26642 * doc/gcov-tool.texi: Document for gcov-tool.
26644 2014-07-10 Richard Biener <rguenther@suse.de>
26646 PR tree-optimization/61757
26647 * tree-ssa-dom.c (loop_depth_of_name): Restore.
26648 (propagate_rhs_into_lhs): Revert part of last change.
26650 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
26652 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
26655 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
26657 PR middle-end/53590
26658 * function.c (allocate_struct_function): Revert r188667 change.
26660 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
26662 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
26664 * doc/install.texi: Remove links to defunct package providers for
26667 2014-07-09 Tom de Vries <tom@codesourcery.com>
26669 * final.c (get_call_fndecl): Declare.
26670 (self_recursive_call_p): New function.
26671 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
26673 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
26675 * ipa-devirt.c (record_node): Walk through aliases.
26677 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
26679 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
26681 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
26684 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
26686 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
26688 * ipa-visibility.c (function_and_variable_visibility): Remove
26689 temporary hack disabling local aliases on AIX.
26691 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
26693 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
26694 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
26696 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
26698 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
26699 * rs6000/rs6000.c: Inline output of .set instruction.
26700 (declare_alias_data): New struct.
26701 (rs6000_declare_alias): New function.
26702 (rs6000_xcoff_declare_function_name): Use it.
26703 (rs6000_xcoff_declare_object_name): New function.
26704 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
26705 (ASM_OUTPUT_DEF): Turn to empty definition.
26707 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
26710 * hash-table.h: use hash_table::value_type instead of
26711 Descriptor::value_type in the return types of several methods.
26713 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
26715 * tree-pass.h (pass_data): Remove has_execute member.
26716 * passes.c (execute_one_pass): Don't check pass->has_execute.
26717 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
26718 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
26719 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
26720 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
26721 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
26722 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
26723 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
26724 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
26725 gimple-low.c, gimple-ssa-isolate-paths.c,
26726 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
26727 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
26728 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
26729 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
26730 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
26731 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
26732 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
26733 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
26734 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
26735 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
26736 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
26737 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
26738 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
26739 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
26740 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
26741 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
26742 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
26743 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
26744 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
26745 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
26746 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
26747 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
26748 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
26749 web.c: Remove initializer for pass_data::has_execute.
26751 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
26753 * graphite-htab.h: Use hash_map instead of hash_table.
26754 * graphite-clast-to-gimple.c: Adjust.
26755 * passes.c: Use hash_map instead of hash_table.
26756 * sese.c: Likewise.
26757 * sese.h: Remove now unused code.
26759 2014-07-08 Sriraman Tallam <tmsriram@google.com>
26762 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
26765 2014-07-08 Jakub Jelinek <jakub@redhat.com>
26767 PR rtl-optimization/61673
26768 * combine.c (simplify_comparison): Test just mode's sign bit
26769 in tmode rather than the sign bit and any bits above it.
26771 2014-07-08 Roman Gareev <gareevroman@gmail.com>
26773 * graphite-isl-ast-to-gimple.c (generate_isl_context):
26774 Add __isl_give to the declaration.
26775 (generate_isl_schedule): Likewise.
26776 (scop_to_isl_ast): Likewise.
26778 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26780 * config/arm/arm.c (cortexa5_extra_costs): New table.
26781 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
26783 2014-07-08 Jakub Jelinek <jakub@redhat.com>
26785 PR tree-optimization/61725
26786 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
26787 range, use range_includes_zerop_p instead of integer_zerop on
26788 vr0->min, only use log2 of max if min is not negative.
26790 2014-07-08 Richard Biener <rguenther@suse.de>
26792 * tree-ssa-dom.h (loop_depth_of_name): Remove.
26793 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
26794 restriction on loop depth difference.
26795 (record_equality): Likewise.
26796 (propagate_rhs_into_lhs): Likewise. Simplify condition.
26797 (loop_depth_of_name): Remove.
26798 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
26799 restriction on loop depth difference.
26800 (init_copy_prop): Likewise.
26802 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
26804 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
26806 (walk_aliased_vdefs): Likewise.
26807 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
26808 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
26809 (detect_type_change_from_memory_writes): Check if entry was reached.
26811 2014-07-08 Richard Biener <rguenther@suse.de>
26813 PR tree-optimization/61681
26814 * tree-ssa-structalias.c (find_what_var_points_to): Expand
26815 NONLOCAL inside ESCAPED.
26817 2014-07-08 Richard Biener <rguenther@suse.de>
26819 PR tree-optimization/61680
26820 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
26821 Handle properly all read-write dependences with group accesses.
26823 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
26825 PR tree-optimization/61576
26826 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
26827 block containing reduction statement is predecessor of phi basi block.
26829 2014-07-08 Marek Polacek <polacek@redhat.com>
26832 * fold-const.c (round_up_loc): Change the parameter type.
26834 * fold-const.h (round_up_loc): Adjust declaration.
26835 * stor-layout.c (finalize_record_size): Check for too large types.
26837 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
26839 * symtab.c: Include calls.h.
26840 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
26842 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
26844 * config/rs6000/rs6000.c (output_vec_const_move): Handle
26845 little-endian code generation.
26846 * config/rs6000/spe.md (spe_evmergehi): Rename to...
26847 (vec_perm00_v2si): ... this. Handle little-endian code generation.
26848 (spe_evmergehilo): Rename to...
26849 (vec_perm01_v2si): ... this. Handle little-endian code generation.
26850 (spe_evmergelo): Rename to...
26851 (vec_perm11_v2si): ... this. Handle little-endian code generation.
26852 (spe_evmergelohi): Rename to...
26853 (vec_perm10_v2si): ... this. Handle little-endian code generation.
26854 (spe_evmergehi, spe_evmergehilo): New expanders.
26855 (spe_evmergelo, spe_evmergelohi): Likewise.
26856 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
26857 (*frob_tf_ti): Likewise.
26858 (*frob_<mode>_di_2): Likewise.
26859 (*frob_tf_di_8_2): Likewise.
26860 (*frob_di_<mode>): Likewise.
26861 (*frob_ti_tf): Likewise.
26862 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
26863 (*frob_ti_<mode>_8_2): Likewise.
26864 (*frob_ti_tf_2): Likewise.
26865 (mov_si<mode>_e500_subreg0): Rename to...
26866 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
26868 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
26869 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
26870 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
26871 the big endianness only.
26872 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
26873 (*mov_si<mode>_e500_subreg0_2): Rename to...
26874 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
26875 big big endianness only.
26876 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
26877 (*mov_si<mode>_e500_subreg4): Rename to...
26878 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
26880 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
26881 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
26882 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
26883 the big endianness only.
26884 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
26886 (*mov_si<mode>_e500_subreg4_2): Rename to...
26887 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
26889 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
26890 (*mov_sitf_e500_subreg8): Rename to...
26891 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
26893 (*mov_sitf_e500_subreg8_le): New instruction pattern.
26894 (*mov_sitf_e500_subreg8_2): Rename to...
26895 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
26897 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
26898 (*mov_sitf_e500_subreg12): Rename to...
26899 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
26901 (*mov_sitf_e500_subreg12_le): New instruction pattern.
26902 (*mov_sitf_e500_subreg12_2): Rename to...
26903 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
26905 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
26907 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
26909 * asan.c (instrument_strlen_call): Do not instrument first byte
26910 in strlen if already instrumented.
26912 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26914 * config/arm/arm.opt (mwords-little-endian): Delete.
26915 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
26916 of TARGET_LITTLE_WORDS.
26917 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
26918 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
26920 * doc/invoke.texi: Remove references to -mwords-little-endian.
26922 2014-07-07 Jakub Jelinek <jakub@redhat.com>
26924 * expmed.c (struct init_expmed_rtl): Change all fields but
26925 pow2 and cint from struct rtx_def to rtx.
26926 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
26927 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
26930 2014-07-06 Marek Polacek <polacek@redhat.com>
26933 * doc/invoke.texi: Document -Wsizeof-array-argument.
26935 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
26937 * wide-int.h (wide_int_storage): Change declaration from struct
26940 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
26942 * cgraph.c (cgraph_create_indirect_edge): Update call of
26943 get_polymorphic_call_info.
26944 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
26945 (possible_polymorphic_call_targets): Add parameter call.
26946 (decl_maybe_in_construction_p): New predicate.
26947 (get_polymorphic_call_info): Add parameter call;
26948 use decl_maybe_in_construction_p.
26949 * gimple-fold.c (fold_gimple_assign): Update use of
26950 possible_polymorphic_call_targets.
26951 (gimple_fold_call): Likewise.
26952 * ipa-prop.c: Inlcude calls.h
26953 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
26954 (param_type_may_change_p): New predicate.
26955 (detect_type_change_from_memory_writes): Break out from ...
26956 (detect_type_change): ... this one; use param_type_may_change_p.
26957 (detect_type_change_ssa): Use param_type_may_change_p.
26958 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
26960 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
26963 * config/arm/arm-protos.h (arm_legitimate_address_p,
26964 arm_is_constant_pool_ref): Add prototypes.
26965 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
26966 (arm_is_constant_pool_ref) New function.
26967 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
26968 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
26969 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
26970 operand. Remove pool_range and neg_pool_range attributes.
26971 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
26972 pool_range and neg_pool_range attributes.
26973 * config/arm/constraints.md (Uh): New constraint.
26974 (Uq): Don't allow constant pool references.
26976 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
26978 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
26979 (move_lo_quad_internal_be_<mode>): Likewise.
26980 (move_lo_quad_<mode>): Convert to define_expand.
26981 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
26982 (aarch64_simd_move_hi_quad_be_<mode>): New.
26983 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
26984 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
26985 (aarch64_combinez_be<mode>): New.
26986 (aarch64_combine<mode>): Convert to define_expand.
26987 (aarch64_combine_internal<mode>): New.
26988 (aarch64_simd_combine<mode>): Remove bogus RTL description.
26990 2014-07-04 Tom de Vries <tom@codesourcery.com>
26992 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
26993 combination of earlyclobber and read/write modifiers.
26995 2014-07-04 Tom de Vries <tom@codesourcery.com>
26997 * config/aarch64/aarch64-simd.md
26998 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
27000 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
27003 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
27005 2014-07-04 Jakub Jelinek <jakub@redhat.com>
27007 PR middle-end/61654
27008 * cgraphunit.c (expand_thunk): Call free_dominance_info.
27010 PR tree-optimization/61684
27011 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
27012 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
27014 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
27015 Kito Cheng <kito@0xlab.org>
27016 Monk Chiang <sh.chiang04@gmail.com>
27018 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
27019 (nds32_symbol_load_store_p): Move to ...
27020 (nds32_fp_as_gp_check_available): Move to ...
27021 * config/nds32/nds32-fp-as-gp.c: ... here.
27022 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
27023 extern declaration.
27025 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
27026 Kito Cheng <kito@0xlab.org>
27027 Monk Chiang <sh.chiang04@gmail.com>
27029 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
27030 (nds32_expand_store_multiple): Move to ...
27031 (nds32_expand_movmemqi): Move to ...
27032 * config/nds32/nds32-memory-manipulation.c: ... here.
27034 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
27035 Kito Cheng <kito@0xlab.org>
27036 Monk Chiang <sh.chiang04@gmail.com>
27038 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
27039 (nds32_output_casesi_pc_relative): Move to ...
27040 (nds32_output_casesi): Move to ...
27041 (nds32_mem_format): Move to ...
27042 (nds32_output_16bit_store): Move to ...
27043 (nds32_output_16bit_load): Move to ...
27044 (nds32_output_32bit_store): Move to ...
27045 (nds32_output_32bit_load): Move to ...
27046 (nds32_output_32bit_load_s): Move to ...
27047 (nds32_output_stack_push): Move to ...
27048 (nds32_output_stack_pop): Move to ...
27049 * config/nds32/nds32-md-auxiliary.c: ... here.
27051 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
27052 Ling-Hua Tseng <uranus@tinlans.org>
27054 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
27055 the purpose of this file.
27057 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
27058 Kito Cheng <kito@0xlab.org>
27059 Monk Chiang <sh.chiang04@gmail.com>
27061 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
27062 (nds32_address_cost): Move implementation to ...
27063 * config/nds32/nds32-cost.c: ... here.
27064 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
27065 (nds32_address_cost_impl): Declare.
27067 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
27068 Kito Cheng <kito@0xlab.org>
27069 Monk Chiang <sh.chiang04@gmail.com>
27071 * config/nds32/nds32.c
27072 (nds32_consecutive_registers_load_store_p): Move to ...
27073 (nds32_valid_multiple_load_store): Move to ...
27074 (nds32_valid_stack_push_pop): Move to ...
27075 (nds32_can_use_bclr_p): Move to ...
27076 (nds32_can_use_bset_p): Move to ...
27077 (nds32_can_use_btgl_p): Move to ...
27078 (nds32_can_use_bitci_p): Move to ...
27079 * config/nds32/nds32-predicates.c: ... here.
27081 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
27082 Kito Cheng <kito@0xlab.org>
27083 Monk Chiang <sh.chiang04@gmail.com>
27085 * config/nds32/nds32.c
27086 (nds32_expand_builtin_null_ftype_reg): Move to ...
27087 (nds32_expand_builtin_reg_ftype_imm): Move to ...
27088 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
27089 (nds32_init_builtins): Move implementation to ...
27090 (nds32_expand_builtin): Move implementation to ...
27091 * config/nds32/nds32-intrinsic.c: ... here.
27092 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
27093 (nds32_expand_builtin_impl): Declare.
27095 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
27096 Kito Cheng <kito@0xlab.org>
27097 Monk Chiang <sh.chiang04@gmail.com>
27099 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
27100 (nds32_emit_section_tail_template): Move to ...
27101 (nds32_emit_isr_jmptbl_section): Move to ...
27102 (nds32_emit_isr_vector_section): Move to ...
27103 (nds32_emit_isr_reset_conten): Move to ...
27104 (nds32_check_isr_attrs_conflict): Move to ...
27105 (nds32_construct_isr_vectors_information): Move to ...
27106 (nds32_asm_file_start): Move implementation to ...
27107 (nds32_asm_file_end): Move implementation to ...
27108 * config/nds32/nds32-isr.c: ... here.
27109 * config/nds32/nds32-protos.h
27110 (nds32_check_isr_attrs_conflict): Declare.
27111 (nds32_construct_isr_vectors_information): Declare.
27112 (nds32_asm_file_start_for_isr): Declare.
27113 (nds32_asm_file_end_for_isr): Declare.
27115 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
27116 Kito Cheng <kito@0xlab.org>
27117 Monk Chiang <sh.chiang04@gmail.com>
27119 * config.gcc (nds32*): Add new modules to extra_objs.
27120 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
27121 (nds32be-*-*): Likewise.
27122 * config/nds32/nds32-cost.c: New file.
27123 * config/nds32/nds32-fp-as-gp.c: New file.
27124 * config/nds32/nds32-intrinsic.c: New file.
27125 * config/nds32/nds32-isr.c: New file.
27126 * config/nds32/nds32-md-auxiliary.c: New file.
27127 * config/nds32/nds32-memory-manipulation.c: New file.
27128 * config/nds32/nds32-pipelines-auxiliary.c: New file.
27129 * config/nds32/nds32-predicates.c: New file.
27130 * config/nds32/t-nds32: New file.
27132 2014-07-03 Jakub Jelinek <jakub@redhat.com>
27134 PR tree-optimization/61682
27135 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
27136 using cases and when one of the operands is equal to 1.
27138 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
27140 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
27141 ashr<mode>3): Correct mode of operands[2].
27142 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
27143 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
27144 Correct mode of operands[2]. Fix split condition.
27146 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
27148 * arm.md (arch): Add armv6_or_vfpv3.
27149 (arch_enabled): Add test for the above.
27150 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
27152 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
27154 2014-07-03 Jakub Jelinek <jakub@redhat.com>
27156 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
27157 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
27158 HWI 1 and negate the unsigned value.
27159 * expmed.c (expand_sdiv_pow2): For modes wider than word always
27160 use AND instead of shift.
27161 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
27163 2014-07-03 Marek Polacek <polacek@redhat.com>
27165 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
27166 (-fsanitize=float-divide-by-zero): Move to the table with
27167 -fsanitize=undefined suboptions.
27168 (-fsanitize=float-cast-overflow): Likewise.
27170 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
27172 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
27173 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
27176 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27178 * loop-invariant.c (struct invariant): Add a new member: eqno;
27179 (find_identical_invariants): Update eqno;
27180 (create_new_invariant): Init eqno;
27181 (get_inv_cost): Compute comp_cost with eqno;
27183 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
27185 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
27186 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
27187 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
27188 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
27189 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
27191 2014-07-02 Christian Bruel <christian.bruel@st.com>
27195 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
27196 (make_preds_opaque): Delete.
27197 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
27198 (commit_mode_sets): New function.
27199 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
27200 Process all modes at once.
27201 * basic-block.h (pre_edge_lcm_avs): Declare.
27202 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
27203 Call clear_aux_for_edges. Fix comments.
27204 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
27205 (pre_edge_rev_lcm): Idem.
27206 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
27208 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
27209 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
27211 * config/i386/i386.c (x96_emit_mode_set): Idem.
27212 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
27213 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
27214 (fpscr_toggle) Disallow from delay slot.
27215 * target.def (emit_mode_set): Add prev_mode parameter.
27216 * doc/tm.texi: Regenerate.
27218 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27220 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
27223 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
27225 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
27226 vtable_pointer_value_to_vtable): Constify.
27227 (contains_polymorphic_type_p): Declare.
27228 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
27229 vtable_pointer_value_to_vtable): Constify.
27230 (contains_polymorphic_type_p): New predicate.
27231 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
27233 (ipa_set_ancestor_jf): Likewise.
27234 (detect_type_change): Return false in easy cases.
27235 (compute_complex_assign_jump_func): Require type to contain
27237 (compute_known_type_jump_func): Likewise.
27239 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
27241 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
27243 (type_in_anonymous_namespace_p): Constify argument.
27244 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
27245 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
27246 (main_odr_variant): New function.
27247 (hash_type_name): Make static; update assert; do not ICE on
27249 (types_same_for_odr): Bring here from tree.c; simplify and remove
27250 old structural comparing code that doesn't work for templates.
27251 (odr_hasher::equal): Update assert.
27252 (add_type_duplicate): Return true when bases should be computed;
27253 replace incomplete loader by complete; do not output duplicated
27254 warnings; do not ICE on non-records; set odr_violated flag.
27255 (get_odr_type): Be ready to replace incomplete type by complete
27256 one; work on ODR variants instead of main variants; reorder item
27257 in array so bases have still smaller indexes.
27258 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
27259 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
27261 2014-07-01 Cary Coutant <ccoutant@google.com>
27263 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
27265 (resolve_addr_in_expr): When replacing the rtx in a location list
27266 entry, get a new address table entry.
27267 (dwarf2out_finish): Call index_location_lists even if there are no
27268 addr_index_table entries yet.
27270 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
27272 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
27273 change for not being obvious.
27275 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
27277 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
27280 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27282 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
27283 (vcagt_f64): Likewise.
27284 (vcale_f64): Likewise.
27285 (vcaled_f64): Likewise.
27286 (vcales_f32): Likewise.
27287 (vcalt_f64): Likewise.
27288 (vcaltd_f64): Likewise.
27289 (vcalts_f32): Likewise.
27291 2014-07-01 Marek Polacek <polacek@redhat.com>
27293 * doc/invoke.texi: Document -Wint-conversion.
27295 2014-07-01 Marek Polacek <polacek@redhat.com>
27298 * doc/invoke.texi: Document -Wincompatible-pointer-types.
27300 2014-07-01 Martin Liska <mliska@suse.cz>
27302 IPA REF alias refactoring
27303 * cgraph.h (iterate_direct_aliases): New function.
27304 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
27305 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
27306 FOR_EACH_ALIAS added.
27307 (cgraph_for_node_and_aliases): Likewise.
27308 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
27309 * ipa-inline.c (reset_edge_caches): Likewise.
27310 (update_caller_keys): Likewise.
27311 * trans-mem.c (ipa_tm_execute): Likewise.
27312 *varpool.c (varpool_analyze_node): Likewise.
27313 (varpool_for_node_and_aliases): Likewise.
27314 * ipa-ref.h (first_alias): New function.
27315 (last_alias): Likewise.
27316 (has_aliases_p): Likewise.
27317 * ipa-ref.c (ipa_ref::remove_reference): Removal function
27318 is sensitive to IPA_REF_ALIASes.
27319 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
27320 are put at the beginning of the list.
27321 (symtab_node::iterate_direct_aliases): New function.
27323 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
27326 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
27328 (write_ts_type_common_tree_pointers): Do not stream fields not set
27329 for incomplete types; do not stream duplicated fields for variants;
27330 sanity check that variant and type match.
27331 (write_ts_type_non_common_tree_pointers): Likewise.
27332 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
27333 TYPE_SIZE whether type is complete.
27334 (lto_input_ts_type_common_tree_pointers): Do same changes as in
27335 write_ts_type_common_tree_pointers
27336 (lto_input_ts_type_non_common_tree_pointers): Likewise.
27338 2014-06-30 Joseph Myers <joseph@codesourcery.com>
27340 * var-tracking.c (add_stores): Return instead of asserting if old
27341 and new values for conditional store are the same.
27343 2014-06-30 Richard Henderson <rth@redhat.com>
27347 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
27348 the cfg if there were any changes.
27349 * passes.def: Revert move of peephole2 after reorder_blocks;
27350 move duplicate_computed_gotos before peephole2.
27352 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
27354 * except.c (emit_note_eh_region_end): New helper function.
27355 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
27356 emit EH_REGION_END note.
27357 * jump.c (cleanup_barriers): Do not split a call and its
27358 corresponding CALL_ARG_LOCATION note.
27360 2014-06-30 Jeff Law <law@redhat.com>
27362 PR tree-optimization/61607
27363 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
27364 deeper into the SSA_NAME_VALUE chain.
27366 2014-06-30 Marek Polacek <polacek@redhat.com>
27368 * convert.c (convert_to_integer): Don't instrument conversions if the
27369 function has no_sanitize_undefined attribute.
27370 * ubsan.c: Don't run the ubsan pass if the function has
27371 no_sanitize_undefined attribute.
27373 2014-06-30 Jakub Jelinek <jakub@redhat.com>
27375 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
27376 -fsanitize=undefined suboptions.
27378 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
27380 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
27381 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
27382 against bigendian and adjust indices.
27384 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
27386 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
27388 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
27391 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
27392 Add alternative; make early clobber. Adjust both split patterns
27393 to use operand 0 as the working register.
27395 2014-06-30 Jakub Jelinek <jakub@redhat.com>
27397 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
27398 as ira_object_id_map might be NULL, or 1.
27400 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27402 * loop-invariant.c (get_inv_cost): Handle register class.
27403 (gain_for_invariant): Check the register pressure of the inv
27404 and its overlapped register class, other than all.
27406 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
27408 * doc/invoke.texi (Optimize Options): Fix descriptions of
27409 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
27411 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
27413 * doc/extend.texi (Function Attributes): Update 'naked' attribute
27416 2014-06-29 Tobias Grosser <tobias@grosser.es>
27419 * graphite-isl-ast-to-gimple.c: Add missing guards.
27421 2014-06-29 Roman Gareev <gareevroman@gmail.com>
27423 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
27424 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
27425 * flag-types.h: Add new enum fgraphite_generator.
27426 * graphite-isl-ast-to-gimple.c: New.
27427 * graphite-isl-ast-to-gimple.h: New.
27428 * graphite.c (graphite_transform_loops): Add choice of Graphite
27429 code generator, which depends on flag_graphite_code_gen.
27431 2014-06-29 Roman Gareev <gareevroman@gmail.com>
27433 * graphite-dependences.c (subtract_commutative_associative_deps):
27434 Add NULL checking of the following variables: must_raw_no_source,
27435 may_raw_no_source, must_war_no_source, may_war_no_source,
27436 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
27437 must_war, may_war, must_waw, may_waw.
27439 2014-06-29 Roman Gareev <gareevroman@gmail.com>
27441 * graphite-clast-to-gimple.c: gloog is renamed to
27442 graphite_regenerate_ast_cloog. gloog_error is renamed to
27443 graphite_regenerate_error.
27444 * graphite-clast-to-gimple.h: The definition of the struct
27445 bb_pbb_def is moved to graphite-htab.h.
27446 Add inclusion of the hash-table.h.
27447 * graphite-htab.h: The declaration of the function gloog is moved
27448 to graphite-clast-to-gimple.h and renamed to
27449 graphite_regenerate_ast_cloog.
27450 * graphite.c (graphite_transform_loops): gloog is renamed
27451 to graphite_regenerate_ast_cloog.
27453 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
27455 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
27457 (write_ts_type_common_tree_pointers): Do not stream fields not set
27458 for incomplete types; do not stream duplicated fields for variants;
27459 sanity check that variant and type match.
27460 (write_ts_type_non_common_tree_pointers): Likewise.
27461 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
27462 TYPE_SIZE whether type is complete.
27463 (lto_input_ts_type_common_tree_pointers): Do same changes as in
27464 write_ts_type_common_tree_pointers
27465 (lto_input_ts_type_non_common_tree_pointers): Likewise.
27467 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
27469 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
27471 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
27473 * tree-inline.c (remap_type_1): Do not duplicate fields
27474 that are shared in between type and its main variant.
27476 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
27478 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
27480 (ipa_set_ancestor_jf) Likewise.
27481 (check_stmt_for_type_change): Check that we work on main variant.
27482 (detect_type_change): Look into main variant.
27483 (compute_known_type_jump_func): Check that main variant has BINFO.
27485 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
27487 * ipa-devirt.c (set_type_binfo): New function.
27488 (add_type_duplicate): Use it.
27489 (get_odr_type): Sanity check that binfos points to main variants.
27490 (get_class_context): Be sure the context's outer_type is main variant.
27491 (contains_type_p): Walk main variant.
27492 (get_polymorphic_call_info_for_decl): Set outer_type to be
27494 (get_polymorphic_call_info): Likewise.
27495 (possible_polymorphic_call_targets): Sanity check that we operate
27498 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
27500 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
27502 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27504 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
27505 accidental change due to wide-int branch merge.
27507 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27509 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
27510 compressed debug support.
27511 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
27512 * configure: Regenerate.
27513 * config.in: Regenerate.
27514 * common.opt (compressed_debug_sections): New enum.
27515 (gz, gz=): New options.
27516 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
27517 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
27518 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
27519 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
27520 LINK_COMPRESS_DEBUG_SPEC.
27521 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
27522 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
27523 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
27524 (Debugging Options): Document -gz[=type].
27526 2014-06-27 Martin Jambor <mjambor@suse.cz>
27529 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
27530 args_to_skip, use those from node instead. Copy args_to_skip and
27531 combined_args_to_skip from node to the new thunk.
27532 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
27533 (cgraph_create_virtual_clone): Moved computation of
27534 combined_args_to_skip...
27535 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
27537 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
27539 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
27540 redundant diagnostic machinary.
27542 2014-06-27 Richard Biener <rguenther@suse.de>
27544 * tree-ssa-math-opts.c (bswap_replace): Fix
27545 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
27547 2014-06-27 Martin Liska <mliska@suse.cz>
27549 * gimple.h (gimple_location_safe): New function introduced.
27550 * cgraphunit.c (walk_polymorphic_call_targets): Usage
27551 of gimple_location_safe replaces gimple_location.
27552 (gimple_fold_call): Likewise.
27553 * ipa-devirt.c (ipa_devirt): Likewise.
27554 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
27555 * ipa.c (walk_polymorphic_call_targets): Likewise.
27556 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
27558 2014-06-27 Jakub Jelinek <jakub@redhat.com>
27560 PR tree-optimization/57233
27561 PR tree-optimization/61299
27562 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
27564 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
27565 would be lowered to scalar shifts, check if corresponding
27566 shifts and vector BIT_IOR_EXPR are supported and don't lower
27567 or lower just to narrower vector type in that case.
27568 * expmed.c (expand_shift_1): Fix up handling of vector
27569 shifts and rotates.
27571 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
27574 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
27576 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
27578 * doc/invoke.texi (-fsemantic-interposition): Document.
27579 * common.opt (fsemantic-interposition): New flag.
27580 * varasm.c (decl_replaceable_p): Use it.
27582 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27585 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
27586 extraction other than index 3.
27588 2014-06-26 Teresa Johnson <tejohnson@google.com>
27590 * doc/invoke.texi: Fix typo.
27591 * dumpfile.c: Add support for documented -fdump-* options
27592 optimized/missed/note/optall.
27594 2014-06-26 Martin Jambor <mjambor@suse.cz>
27596 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
27597 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
27598 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
27599 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
27600 * opts.c (default_options_optimization): Set
27601 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
27602 * doc/invoke.texi (allow-load-data-races)
27603 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
27604 (allow-store-data-races): Document the new default.
27606 2014-06-26 Martin Jambor <mjambor@suse.cz>
27608 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
27609 renamed to ipa_impossible_devirt_target. Fix typo.
27610 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
27611 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
27612 ipa_impossible_devirt_target.
27614 2014-06-26 Richard Biener <rguenther@suse.de>
27616 PR tree-optimization/61607
27617 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
27618 explaining why we restrict copies on loop depth.
27619 * tree-ssa-dom.c (cprop_operand): Remove restriction on
27621 (record_equivalences_from_phis): Instead add it here.
27623 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
27625 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
27626 (LTO_WRAPPER_OBJS): New variable.
27627 (lto-wrapper$(exeext)): Use it.
27628 * collect2.c: Include "collect-utils.h".
27629 (verbose, debug): Remove variables.
27630 (at_file_supplied): No longer static.
27631 (tool_name): New variable.
27632 (do_wait, fork_execute, maybe_unlink): Don't declare.
27633 (tool_cleanup): No longer static.
27634 (notice): Remove function.
27635 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
27636 fork_execute calls.
27637 (collect_wait, do_wait, collect_execute): Remove functions.
27638 (maybe_unlink): No longer static.
27639 * collect2.h (verbose, debug): Don't declare.
27640 (at_file_supplied): Declare.
27641 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
27643 (collect_execute): Replace with implementation from collect2, plus a
27644 new arg use_atfile. All callers changed.
27645 (collect_wait): Replace with implementation from collect2.
27646 (maybe_unlink_file): Remove function.
27647 (fork_execute): Replace with implementation from collect2, plus a
27648 new arg use_atfile. All callers changed.
27649 (do_wait): Add call to utils_cleanup to the error path.
27650 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
27651 (tool_cleanup): Adjust declarations.
27652 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
27653 * tlink.c: Include "collect-utils.h".
27654 (tlink_execute): New arg use_atfile. All callers changed.
27655 (tlink_init, tlink_execute): Remove declarations.
27657 * collect-utils.c (save_temps): New variable.
27658 (do_wait): Use it instead of debug. Use fatal_error.
27659 * collect-utils.h (save_temps): Declare.
27660 * collect2.c (verbose): Rename from vflag. All uses changed.
27661 (tool_cleanup): New function, copied from collect_atexit.
27662 (collect_atexit, handler): Just call it.
27663 * collect2.h (verbose): Declaration renamed from vflag.
27664 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
27667 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
27668 (lto-wrapper$(exeext)): Link with collect-utils.o.
27669 * collect-utils.c: New file.
27670 * collect-utils.h: New file.
27671 * lto-wrapper.c: Include "collect-utils.h".
27672 (args_name): Delete variable.
27673 (tool_name): New variable.
27674 (tool_cleanup): New function.
27675 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
27676 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
27677 (fork_execute): Remove functions.
27679 2014-06-26 Nick Clifton <nickc@redhat.com>
27681 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
27683 * doc/extend.texi (Function Attributes): Fix typo in description
27684 of RX vector attribute.
27686 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
27688 * config.gcc (supported_defaults): Error when passing either
27689 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
27691 2014-06-26 Richard Biener <rguenther@suse.de>
27693 * tree-ssa-dom.c (cprop_operand): Remove restriction on
27694 propagating volatile pointers.
27696 2014-06-26 Richard Biener <rguenther@suse.de>
27698 PR tree-optimization/61607
27699 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
27700 loop if we redirected its latch edge.
27701 (thread_block_1): Do not cancel loops prematurely.
27703 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
27705 * toplev.c (backend_init_target): Move init_emit_regs and
27707 (backend_init) ... here; skip ira_init_once and backend_init_target.
27708 (target_reinit) ... and here; clear
27709 this_target_rtl->lang_dependent_initialized.
27710 (lang_dependent_init_target): Clear
27711 this_target_rtl->lang_dependent_initialized;
27712 break out rtl initialization to ...
27713 (initialize_rtl): ... here; call also backend_init_target
27715 * toplev.h (initialize_rtl): New function.
27716 * function.c: Include toplev.h
27717 (init_function_start): Call initialize_rtl.
27718 * rtl.h (target_rtl): Add target_specific_initialized,
27719 lang_dependent_initialized.
27721 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
27722 Jakub Jelinek <jakub@redhat.com>
27724 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
27726 2014-06-25 Tom de Vries <tom@codesourcery.com>
27728 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
27730 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
27732 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
27733 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
27734 Issue a strict overflow warning if appropriate.
27736 2014-06-25 Martin Liska <mliska@suse.cz>
27738 IPA REF refactoring
27739 * Makefile.in: Removed header file (ipa-ref-inline.h).
27740 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
27742 (cgraph_speculative_call_info): Likewise.
27743 (cgraph_for_node_thunks_and_aliases): Likewise.
27744 (cgraph_for_node_and_aliases): Likewise.
27745 (verify_cgraph_node): Likewise.
27746 * cgraph.h: Batch of IPA REF functions become member functions of
27747 symtab_node: add_reference, maybe_add_reference, clone_references,
27748 clone_referring, clone_reference, find_reference,
27749 remove_stmt_references, remove_all_references,
27750 remove_all_referring, dump_references, dump_referring,
27751 has_alias_p, iterate_reference, iterate_referring.
27752 * cgraphbuild.c (record_reference): New IPA REF function used.
27753 (record_type_list): Likewise.
27754 (record_eh_tables): Likewise.
27755 (mark_address): Likewise.
27756 (mark_load): Likewise.
27757 (mark_store): Likewise.
27758 (pass_build_cgraph_edges): Likewise.
27759 (rebuild_cgraph_edge): Likewise.
27760 (cgraph_rebuild_references): Likewise.
27761 (pass_remove_cgraph_callee_edges): Likewise.
27762 * cgraphclones.c (cgraph_clone_node): Likewise.
27763 (cgraph_create_virtual_clone): Likewise.
27764 (cgraph_materialize_clone): Likewise.
27765 (cgraph_materialize_all_clones): Likewise.
27766 * cgraphunit.c (cgraph_reset_node): Likewise.
27767 (cgraph_reset_node): Likewise.
27768 (analyze_function): Likewise.
27769 (assemble_thunks_and_aliases): Likewise.
27770 (expand_function): Likewise.
27771 * ipa-comdats.c (propagate_comdat_group): Likewise.
27772 (enqueue_references): Likewise.
27773 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
27774 (create_specialized_node): Likewise.
27775 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
27776 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
27777 * ipa-inline.c (reset_edge_caches): Likewise.
27778 (update_caller_keys): Likewise.
27779 (execute): Likewise.
27780 * ipa-prop.c (remove_described_reference): Likewise.
27781 (propagate_controlled_uses): Likewise.
27782 (ipa_edge_duplication_hook): Likewise.
27783 (ipa_modify_call_arguments): Likewise.
27784 * ipa-pure-const.c (propagate_pure_const): Likewise.
27785 * ipa-ref-inline.h: Header file removed, functions moved
27786 to symtab_node class.
27787 * ipa-ref.c (remove_reference): New class member function.
27788 (cannot_lead_to_return): New class member function.
27789 (referring_ref_list): Likewise.
27790 (referred_ref_list): Likewise.
27791 Rest of functions moved to symtab_node class.
27792 * ipa-ref.h: New member functions remove_reference,
27793 cannot_lead_to_return, referring_ref_list, referred_ref_list added
27795 ipa_ref_list class has new member functions: first_reference,
27796 first_referring, clear, nreferences.
27797 * ipa-reference.c (analyze_function): New IPA REF function used.
27798 (write_node_summary_p): Likewise.
27799 (ipa_reference_write_optimization_summary): Likewise.
27800 * ipa-split.c (split_function): Likewise.
27801 * ipa-utils.c (ipa_reverse_postorder): Likewise.
27802 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
27803 (function_and_variable_visibility): Likewise.
27804 * ipa.c (has_addr_references_p): Likewise.
27805 (process_references): Argument type changed.
27806 (symtab_remove_unreachable_nodes): New IPA REF function used.
27807 (process_references): Likewise.
27808 (set_writeonly_bit): Likewise.
27809 * lto-cgraph.c: Implementation of new symtab_node member functions
27810 that uses new IPA REF functions.
27811 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
27813 * lto-streamer-out.c (output_symbol_p): Likewise.
27814 * lto-streamer.h (referenced_from_this_partition_p): Argument type
27816 * symtab.c: Implementation of new IPA REF API.
27817 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
27818 (ipa_tm_create_version): Likewise.
27819 (ipa_tm_execute): Likewise.
27820 * tree-emutls.c (gen_emutls_addr): Likewise.
27821 * tree-inline.c (copy_bb): Likewise.
27822 (delete_unreachable_blocks_update_callgraph): Likewise.
27823 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
27824 (varpool_for_node_and_aliases): Likewise.
27826 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
27828 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
27830 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
27833 * fold-const.c (fold_checksum_tree): Use a hash_table of const
27834 tree_node * instead of tree_node *.
27836 (print_fold_checksum): Likewise.
27837 (fold_check_failed): Likewise.
27838 (debug_fold_checksum): Likewise.
27839 (fold_build1_stat_loc): Likewise.
27840 (fold_build2_stat_loc): Likewise.
27841 (fold_build3_stat_loc): Likewise.
27842 (fold_build_call_array_loc): Likewise.
27844 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
27846 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
27847 implementation with call to...
27848 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
27850 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
27853 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
27855 PR tree-optimization/57742
27856 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
27857 after replacing the statement.
27859 2014-06-25 Nick Clifton <nickc@redhat.com>
27861 * config/v850/v850.c (GHS_default_section_names): Change to const
27863 (GHS_current_section_names): Likewise.
27864 (v850_insert_attributes): Do not build strings, just assign the
27865 names directly. Change the type of 'chosen_section' to const
27867 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
27868 directly to the array entry.
27869 * config/v850/v850.h (GHS_default_section_names): Change to const
27871 (GHS_current_section_names): Likewise.
27873 2014-06-25 Jakub Jelinek <jakub@redhat.com>
27875 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
27876 (LANG_HOOKS_DECLS): Add it.
27877 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
27879 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
27880 * langhooks.h (struct lang_hooks_for_decls): Add
27881 omp_clause_linear_ctor hook.
27882 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
27883 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
27884 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
27885 combined simd loop use omp_clause_linear_ctor hook.
27887 2014-06-24 Cong Hou <congh@google.com>
27889 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
27890 pattern recognition.
27891 (type_conversion_p): PROMOTION is true if it's a type promotion
27892 conversion, and false otherwise. Return true if the given expression
27893 is a type conversion one.
27894 * tree-vectorizer.h: Adjust the number of patterns.
27895 * tree.def: Add SAD_EXPR.
27896 * optabs.def: Add sad_optab.
27897 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
27898 * expr.c (expand_expr_real_2): Likewise.
27899 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
27900 * gimple.c (get_gimple_rhs_num_ops): Likewise.
27901 * optabs.c (optab_for_tree_code): Likewise.
27902 * tree-cfg.c (estimate_operator_cost): Likewise.
27903 * tree-ssa-operands.c (get_expr_operands): Likewise.
27904 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
27905 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
27906 * doc/generic.texi: Add document for SAD_EXPR.
27907 * doc/md.texi: Add document for ssad and usad.
27909 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
27911 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
27912 qualification in cast.
27914 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
27916 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
27917 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
27918 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
27919 (tree_function_decl): ... here.
27920 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
27921 streaming of vindex to ...
27922 (write_ts_function_decl_tree_pointers): ... here.
27923 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
27924 Do not stream DECL_VINDEX.
27925 (lto_input_ts_function_decl_tree_pointers): Stream it here.
27927 2014-06-24 Catherine Moore <clm@codesourcery.com>
27928 Sandra Loosemore <sandra@codesourcery.com>
27930 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
27931 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
27932 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
27934 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
27936 * doc/invoke.texi (Warning Options): Remove duplicated
27937 -Wmaybe-uninitialized.
27939 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
27941 PR tree-optimization/57742
27942 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
27943 (handle_builtin_malloc, handle_builtin_memset): New functions.
27944 (strlen_optimize_stmt): Call them.
27945 * passes.def: Move strlen after loop+dom but before vrp.
27947 2014-06-24 Jakub Jelinek <jakub@redhat.com>
27950 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
27951 model family 6 CPU with has_longmode never use a CPU without
27954 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
27957 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
27960 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
27962 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
27963 * dominance.c (iterate_fix_dominators): Use hash_map instead of
27965 * hash-map.h: New file.
27966 * ipa-comdats.c: Use hash_map instead of pointer_map.
27968 * lto-section-out.c: Adjust.
27969 * lto-streamer.h: Replace pointer_map with hash_map.
27970 * symtab.c (verify_symtab): Likewise.
27971 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
27972 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
27973 * tree-streamer.h: Likewise.
27974 * tree-streamer.c: Adjust.
27975 * pointer-set.h: Remove pointer_map.
27977 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
27979 * hash-table.h: Add a template arg to choose between storing values
27980 and storing pointers to values, and then provide partial
27981 specializations for both.
27982 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
27983 should store, not the type values should point to.
27984 * tree-into-ssa.c (var_info_hasher): Likewise.
27985 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
27986 * tree-complex.c: Adjust.
27987 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
27988 table instead of int_tree_map *.
27989 * tree-parloops.c: Adjust.
27990 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
27991 type is being stored.
27992 * tree-vectorizer.c: Adjust.
27994 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
27996 * hash-table.h: Remove a layer of indirection from hash_table so that
27997 it contains the hash table's data instead of a pointer to the data.
27998 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
27999 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
28000 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
28001 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
28002 fold-const.c, gcse.c, ggc-common.c,
28003 gimple-ssa-strength-reduction.c, gimplify.c,
28004 graphite-clast-to-gimple.c, graphite-dependences.c,
28005 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
28006 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
28007 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
28008 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
28009 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
28010 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
28011 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
28012 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
28013 tree-ssa-live.c, tree-ssa-loop-im.c,
28014 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
28015 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
28016 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
28017 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
28018 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
28019 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
28020 vtable-verify.c, vtable-verify.h: Adjust.
28022 2014-06-24 Richard Biener <rguenther@suse.de>
28024 PR tree-optimization/61572
28025 * tree-ssa-sink.c (statement_sink_location): Do not sink
28026 loads from hard registers.
28028 2014-06-24 Jakub Jelinek <jakub@redhat.com>
28030 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
28031 not mentioned in clauses use private clause if the iterator is
28032 declared in #pragma omp for simd, and when adding lastprivate
28033 instead, add it to the outer #pragma omp for too. Diagnose
28034 if the variable is private in outer context. For simd collapse > 1
28035 loops, replace all iterators with temporaries.
28036 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
28037 same even in collapse > 1 loops.
28039 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
28040 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
28042 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
28043 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
28045 (gimplify_adjust_omp_clauses): Likewise.
28046 * omp-low.c (lower_rec_simd_input_clauses,
28047 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
28048 safelen the same as safelen(1).
28049 * tree-nested.c (convert_nonlocal_omp_clauses,
28050 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
28051 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
28052 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
28053 Fixup handling of GIMPLE_OMP_TARGET.
28054 (convert_tramp_reference_stmt, convert_gimple_call): Handle
28057 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
28059 PR tree-optimization/61554
28060 * tree-ssa-propagate.c: Include "bitmap.h".
28061 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
28062 properly update constructor/destructor.
28063 (substitute_and_fold_dom_walker::before_dom_children):
28064 Remove call to gimple_purge_dead_eh_edges, add bb->index to
28065 need_eh_cleaup instead.
28066 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
28069 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
28071 * varpool.c (dump_varpool_node): Dump used_by_single_function.
28072 * tree-pass.h (make_pass_ipa_single_use): New pass.
28073 * cgraph.h (used_by_single_function): New flag.
28074 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
28076 * passes.def (pass_ipa_single_use): Scedule.
28077 * ipa.c (BOTTOM): New macro.
28078 (meet): New function
28079 (propagate_single_user): New function.
28080 (ipa_single_use): New function.
28081 (pass_data_ipa_single_use): New pass.
28082 (pass_ipa_single_use): New pass.
28083 (pass_ipa_single_use::gate): New gate.
28084 (make_pass_ipa_single_use): New function.
28086 2014-06-23 Kai Tietz <ktietz@redhat.com>
28089 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
28090 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
28092 2014-06-23 Richard Biener <rguenther@suse.de>
28094 * tree-ssa-loop.c (gate_loop): New function.
28095 (pass_tree_loop::gate): Call it.
28096 (pass_data_tree_no_loop, pass_tree_no_loop,
28097 make_pass_tree_no_loop): New.
28098 * tree-vectorizer.c: Include tree-scalar-evolution.c
28099 (pass_slp_vectorize::execute): Initialize loops and SCEV if
28101 (pass_slp_vectorize::clone): New method.
28102 * timevar.def (TV_TREE_NOLOOP): New.
28103 * tree-pass.h (make_pass_tree_no_loop): Declare.
28104 * passes.def (pass_tree_no_loop): New pass group with
28107 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
28110 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
28111 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
28113 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
28115 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
28116 "yes" where needed.
28118 2014-06-23 Alan Modra <amodra@gmail.com>
28121 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
28122 to zero on debug statements.
28124 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
28127 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
28128 Ignore third operand if present by marking qualifier_internal.
28130 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
28132 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
28134 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
28135 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
28136 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
28137 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
28138 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
28139 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
28140 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
28141 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
28142 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
28143 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
28144 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
28145 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
28146 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
28147 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
28148 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
28149 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
28150 logic in GCC vector extensions
28152 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
28153 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
28154 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
28155 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
28156 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
28157 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
28158 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
28159 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
28160 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
28161 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
28163 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
28165 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
28168 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
28169 (vget_low_s64): Use __GET_LOW macro.
28170 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
28171 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
28172 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
28173 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
28174 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
28176 (vcombine_s64): Use GCC vector extensions; remove cast.
28177 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
28178 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
28179 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
28180 Fix type signature; remove cast.
28182 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
28185 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
28187 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
28189 (BUILTIN_VD1): New.
28190 (BUILTIN_VD_RE): Remove.
28191 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
28192 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
28193 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
28194 variant but not df.
28195 (vreinterpretv1df*, vreinterpret*v1df): New.
28196 (vreinterpretdf*, vreinterpret*df): Remove.
28197 * config/aarch64/aarch64-simd.md (aarch64_create,
28198 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
28199 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
28201 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
28202 (vcreate_f64): Remove cast, use v1df builtin.
28203 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
28204 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
28205 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
28206 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
28207 vmov_n_f64, vst1_f64): Use gcc vector extensions.
28208 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
28209 add range check using __builtin_aarch64_im_lane_boundsi.
28210 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
28211 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
28212 type signature, use gcc vector extensions.
28213 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
28214 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
28215 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
28216 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
28217 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
28218 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
28219 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
28220 vreinterpret_u64_f64): Use v1df builtin not df.
28222 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
28224 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
28227 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
28229 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
28232 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28234 * loop-invariant.c (pre_check_invariant_p): New function.
28235 (find_invariant_insn): Call pre_check_invariant_p.
28237 2014-06-22 Richard Henderson <rth@redhat.com>
28240 * compare-elim.c (struct comparison): Add eh_note.
28241 (find_comparison_dom_walker::before_dom_children): Don't eliminate
28242 a redundant comparison in a different EH region. Purge EH edges if
28245 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
28247 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
28248 (var_shift): Use it.
28249 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
28250 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
28251 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
28252 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
28253 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
28254 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
28255 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
28256 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
28257 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
28258 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
28259 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
28260 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
28261 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
28262 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
28263 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
28264 *rotldi3_internal15be): Use the new attribute. Merge register and
28265 integer alternatives.
28267 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
28269 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
28270 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
28271 split, *ashrdi3_internal3 and split): Delete, merge into...
28272 (ashr<mode>3): New expander.
28273 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
28274 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
28276 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
28278 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
28279 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
28280 *rotldi3_internal3 and split): Delete, merge into...
28281 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
28282 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
28283 Use "rotlw" extended mnemonic.
28285 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
28287 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
28288 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
28289 and split, *ashldi3_internal3 and split): Delete, merge into...
28290 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
28291 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
28293 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
28295 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
28296 (lshrsi3, two anonymous define_insns and define_splits,
28297 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
28298 *lshrdi3_internal3 and split): Delete, merge into...
28299 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
28300 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
28302 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
28304 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
28305 Remove "O" alternative.
28307 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
28309 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
28310 (mips_move_from_gpr_cost): Likewise.
28311 (mips_register_move_cost): Update accordingly.
28312 (mips_secondary_reload_class): Remove name of in_p.
28314 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
28317 * config/i386/i386.md (x86_64_shrd, x86_shrd,
28318 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
28320 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
28322 * config/nios2/nios2.c: Include "builtins.h".
28324 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
28326 * cgraph.h (tls_model_names): New variable.
28327 * print-tree.c (print_node): Simplify.
28328 * varpool.c (tls_model_names): New variable.
28329 (dump_varpool_node): Output tls model.
28331 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
28333 * ipa-visibility.c (function_and_variable_visibility): Disable
28334 temporarily local aliases for some targets.
28336 2014-06-20 Marek Polacek <polacek@redhat.com>
28338 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
28339 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
28340 into SANITIZE_UNDEFINED.
28341 * doc/invoke.texi: Describe -fsanitize=bounds.
28342 * gimplify.c (gimplify_call_expr): Add gimplification of internal
28343 functions created in the FEs.
28344 * internal-fn.c: Move "internal-fn.h" after "tree.h".
28345 (expand_UBSAN_BOUNDS): New function.
28346 * internal-fn.def (UBSAN_BOUNDS): New internal function.
28347 * internal-fn.h: Don't define internal functions here.
28348 * opts.c (common_handle_option): Add -fsanitize=bounds.
28349 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
28350 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
28351 * tree-core.h: Define internal functions here.
28352 (struct tree_base): Add ifn field.
28353 * tree-pretty-print.c: Include "internal-fn.h".
28354 (dump_generic_node): Handle functions without CALL_EXPR_FN.
28355 * tree.c (get_callee_fndecl): Likewise.
28356 (build_call_expr_internal_loc): New function.
28357 * tree.def (CALL_EXPR): Update description.
28358 * tree.h (CALL_EXPR_IFN): Define.
28359 (build_call_expr_internal_loc): Declare.
28360 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
28362 (ubsan_type_descriptor): Change bool parameter to enum
28363 ubsan_print_style. Adjust the code. Add handling of
28365 (ubsan_expand_bounds_ifn): New function.
28366 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
28367 (ubsan_build_overflow_builtin): Likewise.
28368 (instrument_bool_enum_load): Likewise.
28369 (ubsan_instrument_float_cast): Likewise.
28370 * ubsan.h (enum ubsan_print_style): New enum.
28371 (ubsan_expand_bounds_ifn): Declare.
28372 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
28374 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
28376 * config/rs6000/rs6000.md: Append `DONE' to preparation
28377 statements of `bswap' pattern splitters.
28379 2014-06-20 Tom de Vries <tom@codesourcery.com>
28381 * target.def (call_fusage_contains_non_callee_clobbers): Update
28383 * doc/tm.texi: Regenerate.
28385 2014-06-20 Yury Gribov <y.gribov@samsung.com>
28386 Max Ostapenko <m.ostapenko@partner.samsung.com>
28389 * asan.c (instrument_strlen_call): Fixed instrumentation of
28392 2014-06-20 Martin Jambor <mjambor@suse.cz>
28395 * ipa-prop.c (impossible_devirt_target): New function.
28396 (try_make_edge_direct_virtual_call): Use it, also instead of
28399 2014-06-20 Yury Gribov <y.gribov@samsung.com>
28400 Max Ostapenko <m.ostapenko@partner.samsung.com>
28403 * asan.c (build_check_stmt): Add condition.
28405 2014-06-20 Martin Jambor <mjambor@suse.cz>
28408 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
28411 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28413 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
28415 (VCONQ): Make comment more helpful.
28417 * config/aarch64/aarch64-simd.md
28418 (aarch64_sqdmulh_lane<mode>):
28419 Use VCOND for operands 2. Update lane checking and flipping logic.
28420 (aarch64_sqrdmulh_lane<mode>): Likewise.
28421 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
28422 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
28423 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
28424 attribute of operand 3 to VCOND.
28425 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
28426 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
28427 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
28428 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
28429 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
28430 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
28432 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
28433 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
28434 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
28435 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
28436 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
28437 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
28438 operand to VCOND. Update lane flipping and bounds checking logic.
28439 (aarch64_sqdmlal2_lane<mode>): Likewise.
28440 (aarch64_sqdmlsl_lane<mode>): Likewise.
28441 (aarch64_sqdmull_lane<mode>): Likewise.
28442 (aarch64_sqdmull2_lane<mode>): Likewise.
28443 (aarch64_sqdmlal_laneq<mode>):
28444 Replace VCON usage with VCONQ.
28445 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
28446 (aarch64_sqdmlal2_laneq<mode>): Emit
28447 aarch64_sqdmlal2_laneq<mode>_internal insn.
28448 Replace VCON with VCONQ.
28449 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
28450 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
28451 (aarch64_sqdmull_laneq<mode>): Emit
28452 aarch64_sqdmull_laneq<mode>_internal insn.
28453 Replace VCON with VCONQ.
28454 (aarch64_sqdmull2_laneq<mode>): Emit
28455 aarch64_sqdmull2_laneq<mode>_internal insn.
28456 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
28457 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
28458 of 3rd argument to int16x4_t.
28459 (vqdmlalh_lane_s16): Likewise.
28460 (vqdmlslh_lane_s16): Likewise.
28461 (vqdmull_high_lane_s16): Likewise.
28462 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
28463 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
28464 (vqdmlsl_lane_s16): Likewise.
28465 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
28466 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
28467 (vqdmlals_lane_s32): Likewise.
28468 (vqdmlsls_lane_s32): Likewise.
28469 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
28470 (vqdmulls_lane_s32): Likewise.
28471 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
28472 (vqdmlsl_lane_s32): Likewise.
28473 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
28474 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
28475 (vqrdmulhh_lane_s16): Likewise.
28476 (vqdmlsl_high_lane_s16): Likewise.
28477 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
28478 (vqdmlsl_high_lane_s32): Likewise.
28479 (vqrdmulhs_lane_s32): Likewise.
28481 2014-06-20 Tom de Vries <tom@codesourcery.com>
28483 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
28484 get_call_reg_set_usage.
28486 2014-06-20 Tom de Vries <tom@codesourcery.com>
28488 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
28489 it contains all call_used_regs.
28491 2014-06-20 Tom de Vries <tom@codesourcery.com>
28493 * final.c (collect_fn_hard_reg_usage): Add and use variable
28494 function_used_regs.
28496 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
28498 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
28499 (set_init_priority, get_init_priority, set_fini_priority,
28500 get_fini_priority): New methods.
28501 * tree.c (init_priority_for_decl): Remove.
28502 (init_ttree): Do not initialize init priority.
28503 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
28504 (decl_priority_info): Remove.
28505 (decl_init_priority_insert): Rewrite.
28506 (decl_fini_priority_insert): Rewrite.
28507 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
28508 tree_priority_map_marked_p): Remove.
28509 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
28510 * lto-streamer-out.c (hash_tree): Do not hash priorities.
28511 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
28512 not output priorities.
28513 (pack_ts_function_decl_value_fields): Likewise.
28514 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
28515 not input priorities.
28516 (unpack_ts_function_decl_value_fields): Likewise.
28517 * symtab.c (symbol_priority_map): Declare.
28518 (init_priority_hash): Declare.
28519 (symtab_unregister_node): Unregister from priority hash, too.
28520 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
28522 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
28523 (symbol_priority_info): New function.
28524 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
28526 * tree-core.h (tree_priority_map): Remove.
28528 2014-06-20 Jakub Jelinek <jakub@redhat.com>
28530 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
28531 0xff to uint64_t before shifting it up.
28533 2014-06-20 Julian Brown <julian@codesourcery.com>
28534 Chung-Lin Tang <cltang@codesourcery.com>
28536 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
28537 TARGET_THUMB1_ONLY. Add comments.
28539 2014-06-19 Tom de Vries <tom@codesourcery.com>
28541 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
28542 return type to void.
28543 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
28545 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28547 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
28548 as "move", from depends_on.
28550 2014-06-19 Terry Guo <terry.guo@arm.com>
28552 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
28555 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
28557 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
28559 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
28561 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
28564 * config/sh/sh.c (prepare_move_operands): Don't process TLS
28565 addresses here if reload in progress or completed.
28567 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
28569 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
28570 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
28571 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
28572 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
28573 (mips_register_priority): New function that implements the target
28574 hook TARGET_REGISTER_PRIORITY.
28575 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
28576 (mips_lra_p): Likewise for TARGET_LRA_P.
28577 (TARGET_REGISTER_PRIORITY): Define macro.
28578 (TARGET_SPILL_CLASS): Likewise.
28579 (TARGET_LRA_P): Likewise.
28580 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
28582 (REG_CLASS_NAMES): Likewise.
28583 (REG_CLASS_CONTENTS): Likewise.
28584 (BASE_REG_CLASS): Use M16_SP_REGS.
28585 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
28586 New set attribute to enable alternatives depending on the register
28588 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
28589 (*lea64): Disable pattern for MIPS16.
28590 * config/mips/mips.opt (mlra): New option.
28592 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
28594 * lra-constraints.c (base_to_reg): New function.
28595 (process_address): Use new function.
28597 2014-06-18 Tom de Vries <tom@codesourcery.com>
28599 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
28600 * config/aarch64/aarch64.c
28601 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
28602 (aarch64_emit_call_insn): New function.
28603 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
28605 * config/aarch64/aarch64.md (define_expand "call_internal")
28606 (define_expand "call_value_internal", define_expand "sibcall_internal")
28607 (define_expand "sibcall_value_internal"): New.
28608 (define_expand "call", define_expand "call_value")
28609 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
28610 expand variant and aarch64_emit_call_insn.
28612 2014-06-18 Radovan Obradovic <robradovic@mips.com>
28613 Tom de Vries <tom@codesourcery.com>
28615 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
28616 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
28618 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
28619 clobbers to CALL_INSN_FUNCTION_USAGE.
28620 (define_expand "sibcall_internal")
28621 (define_expand "sibcall_value_internal"): New.
28622 (define_expand "call", define_expand "call_value"): Add argument to
28623 arm_emit_call_insn.
28624 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
28625 (define_expand "sibcall_value"): Use sibcall_value_internal and
28626 arm_emit_call_insn.
28628 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
28630 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
28632 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
28634 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
28637 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
28639 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
28640 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
28641 annotations. Fix DWARF information.
28643 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
28645 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
28646 __udivmoddi4, and fixups for negative operands.
28648 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
28650 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
28652 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
28654 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
28657 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
28659 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
28662 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
28664 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
28665 describing register usage on function entry and exit.
28667 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
28669 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
28670 (__aeabi_ldivmod): Fix whitespace.
28672 2014-06-18 Andreas Schwab <schwab@suse.de>
28674 * doc/md.texi (Standard Names): Use @itemx for grouped items.
28675 Remove blank line after @item.
28677 2014-06-18 Richard Henderson <rth@redhat.com>
28680 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
28682 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
28684 * config/arm/arm.c (neon_vector_mem_operand): Allow register
28685 POST_MODIFY for neon loads and stores.
28686 (arm_print_operand): Output post-index register for neon loads and
28689 2014-06-18 Richard Biener <rguenther@suse.de>
28691 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
28693 2014-06-18 Richard Biener <rguenther@suse.de>
28695 * tree-pass.h (make_pass_dce_loop): Remove.
28696 * passes.def: Replace pass_dce_loop with pass_dce.
28697 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
28698 changed free niter estimates and reset the scev cache.
28699 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
28700 make_pass_dce_loop): Remove.
28701 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
28702 (fini_copy_prop): Return whether something changed. Always
28703 let substitute_and_fold perform DCE and free niter estimates
28704 and reset the scev cache if so.
28705 (execute_copy_prop): If sth changed schedule cleanup-cfg.
28706 (pass_data_copy_prop): Do not unconditionally schedule
28707 cleanup-cfg or update-ssa.
28709 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
28711 PR tree-optimization/61518
28712 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
28713 reduction var is used in reduction stmt or phi-function only.
28715 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28717 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
28719 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
28721 PR tree-optimization/61517
28722 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
28723 whose rhs's first tree is the source expression instead of the
28725 (find_bswap_or_nop): Likewise.
28726 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
28727 gimple stmt whose rhs's first tree is the source. In the memory source
28728 case, move the stmt to be replaced close to one of the original load to
28729 avoid the problem of a store between the load and the stmt's original
28731 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
28734 2014-06-18 Andreas Schwab <schwab@suse.de>
28736 PR rtl-optimization/54555
28737 * postreload.c (move2add_use_add2_insn): Substitute
28738 STRICT_LOW_PART only if it is cheaper.
28740 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
28742 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
28743 Do not use unspec as call operand. Use memory_operand instead of
28744 memory_nox32_operand and add "m" operand constraint. Disable
28745 pattern for TARGET_X32.
28746 (*sibcall_pop_memory): Ditto.
28747 (*sibcall_value_memory): Ditto.
28748 (*sibcall_value_pop_memory): Ditto.
28749 (sibcall peepholes): Merge SImode and DImode patterns using
28750 W mode iterator. Use memory_operand instead of memory_nox32_operand.
28751 Disable pattern for TARGET_X32. Check if eliminated register is
28752 really dead after call insn. Generate call RTX without unspec operand.
28753 (sibcall_value peepholes): Ditto.
28754 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
28755 instead of memory_nox32_operand. Check if eliminated register is
28756 really dead after call insn. Generate call RTX without unspec operand.
28757 (sibcall_value_pop peepholes): Ditto.
28758 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
28760 2014-06-18 Terry Guo <terry.guo@arm.com>
28763 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
28766 2014-06-18 Olivier Hainque <hainque@adacore.com>
28768 * tree-core.h (tree_block): Add an "end_locus" field, allowing
28769 memorization of the end of block source location.
28770 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
28771 * gimplify.c (gimplify_bind_expr): Propagate the block start and
28772 end source location info we have on the block entry/exit code we
28775 2014-06-18 Richard Biener <rguenther@suse.de>
28777 * common.opt (fssa-phiopt): New option.
28778 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
28780 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
28781 * doc/invoke.texi (-fssa-phiopt): Document.
28783 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28785 * genattrtab.c (n_bypassed): New variable.
28786 (process_bypasses): Initialise n_bypassed.
28787 Count number of bypassed reservations.
28788 (make_automaton_attrs): Allocate space for bypassed reservations
28789 rather than number of bypasses.
28791 2014-06-18 Richard Biener <rguenther@suse.de>
28793 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
28794 we propagated anything.
28795 (substitute_and_fold_dom_walker::before_dom_children): Something
28796 changed if we propagated into PHI arguments.
28797 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
28800 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
28802 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
28804 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
28805 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
28806 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
28807 Introduces alternative way of loads group permutaions.
28808 (vect_transform_grouped_load): Try alternative way of permutations.
28810 2014-06-18 Jakub Jelinek <jakub@redhat.com>
28812 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
28813 changed in ORT_TARGET region, don't jump to do_outer.
28814 (struct gimplify_adjust_omp_clauses_data): New type.
28815 (gimplify_adjust_omp_clauses_1): Adjust for data being
28816 a struct gimplify_adjust_omp_clauses_data pointer instead
28817 of tree *. Pass pre_p as a new argument to
28818 lang_hooks.decls.omp_finish_clause hook.
28819 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
28820 splay_tree_foreach to pass both list_p and pre_p.
28821 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
28822 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
28823 gimplify_adjust_omp_clauses callers.
28824 * langhooks.c (lhd_omp_finish_clause): New function.
28825 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
28826 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
28827 * langhooks.h (struct lang_hooks_for_decls): Add a new
28828 gimple_seq * argument to omp_finish_clause hook.
28829 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
28830 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
28831 (scan_omp_parallel, lower_omp_for): When adding
28832 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
28833 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
28834 * tree-nested.c (convert_nonlocal_omp_clauses,
28835 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
28836 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
28838 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
28840 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
28841 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
28843 2014-06-17 Xinliang David Li <davidxl@google.com>
28845 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
28846 * passes.c (pass_init_dump_file): Do not set initialize
28847 flag to false unconditionally.
28849 2014-06-17 Richard Biener <rguenther@suse.de>
28851 * genopinit.c (main): Use vec<>::qsort method.
28852 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
28854 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
28856 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
28858 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
28859 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
28860 (mips_move_to_gpr_cost): Remove ST_REGS case.
28861 (mips_move_from_gpr_cost): Likewise.
28862 (mips_register_move_cost): Likewise.
28863 (mips_secondary_reload_class): Likewise.
28865 2014-06-17 Richard Biener <rguenther@suse.de>
28867 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
28868 (pass_all_optimizations): Move 3rd copy-prop pass from after
28869 fre to before ifcombine/phiopt.
28871 2014-06-17 Richard Biener <rguenther@suse.de>
28873 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
28874 and allow all blocks to be forwarders.
28876 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
28879 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
28880 variable 'size'; calculate 'size' right in the front; use
28881 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
28882 pcum->aapcs_stack_words.
28884 2014-06-17 Nick Clifton <nickc@redhat.com>
28886 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
28887 (umulhi3, mulsidi3, umulsidi3): Likewise.
28889 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
28891 PR middle-end/61508
28892 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
28893 check for section name.
28895 2014-06-17 Richard Biener <rguenther@suse.de>
28897 * tree-ssa-propagate.c: Include domwalk.h.
28898 (substitute_and_fold): Outline main worker into a domwalker ...
28899 (substitute_and_fold_dom_walker::before_dom_children): ... here.
28900 Schedule stmts we can fully propagate for removal. Remove
28902 (substitute_and_fold): Apply a dominator walk to perform
28903 substitution. Process stmts scheduled for removal here.
28905 2014-06-17 Richard Biener <rguenther@suse.de>
28907 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
28908 of PHI node moving.
28910 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
28912 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
28913 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
28914 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
28915 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
28916 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
28918 (get_fpscr) : Likewise.
28920 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
28922 PR rtl-optimization/61325
28923 * lra-constraints.c (valid_address_p): Add forward declaration.
28924 (simplify_operand_subreg): Check address validity before and after
28925 alter_reg of memory subreg.
28927 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
28929 * config/i386/i386.c (decide_alg): Correctly handle
28930 maximum size of stringop algorithm.
28932 2014-06-16 Yury Gribov <y.gribov@samsung.com>
28934 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
28936 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
28938 PR rtl-optimization/61522
28939 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
28941 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
28944 * symtab.c (symtab_node::reset_section): New method.
28945 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
28947 * cgraph.h (reset_section): Declare.
28948 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
28949 do not consider comdat locals.
28950 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
28952 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
28953 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
28954 reset sections of symbols dragged out of the comdats.
28955 (function_and_variable_visibility): Reset sections of
28958 2014-06-16 Richard Biener <rguenther@suse.de>
28960 PR tree-optimization/61482
28961 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
28962 [-INF(OVF), +INF(OVF)] range.
28964 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
28966 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
28967 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
28968 handling 32-bit multiplication.
28970 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
28972 PR middle-end/61430
28973 * lra-lives.c (process_bb_lives): Skip creating copy during
28974 insn scan when src/dest has constrained to same regno.
28976 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
28978 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
28979 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
28981 2014-06-16 Yury Gribov <y.gribov@samsung.com>
28983 * asan.c (check_func): New function.
28984 (maybe_create_ssa_name): Likewise.
28985 (build_check_stmt_with_calls): Likewise.
28986 (use_calls_p): Likewise.
28987 (report_error_func): Change interface.
28988 (build_check_stmt): Allow non-integer lengths; add support
28990 (asan_instrument): Likewise.
28991 (instrument_mem_region_access): Moved code to build_check_stmt.
28992 (instrument_derefs): Likewise.
28993 (instrument_strlen_call): Likewise.
28994 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
28995 * doc/invoke.texi: Describe new parameter.
28996 * params.def: Define new parameter.
28997 * params.h: Likewise.
28998 * sanitizer.def: Describe new builtins.
29000 2014-06-16 Richard Biener <rguenther@suse.de>
29002 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
29003 Make all defs available at the end.
29004 (eliminate): If we remove a PHI node schedule cfg-cleanup.
29006 2014-06-18 Jakub Jelinek <jakub@redhat.com>
29009 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
29011 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
29014 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
29015 initialization. Replace remaining use of uid.
29017 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
29019 * c-family/c-common.c (handle_tls_model_attribute): Use
29020 set_decl_tls_model.
29021 * c-family/c-common.c (handle_tls_model_attribute): Use
29022 set_decl_tls_model.
29023 * cgraph.h (struct varpool_node): Add tls_model.
29024 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
29025 * tree.h (DECL_TLS_MODEL): Update.
29026 (DECL_THREAD_LOCAL_P): Check that variable is static.
29027 (decl_tls_model): Declare.
29028 (set_decl_tls_model): Declare.
29029 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
29030 set symbol prorperties.
29031 (get_emutls_init_templ_addr): Cleanup.
29032 (new_emutls_decl): Update.
29033 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
29034 (lto_input_varpool_node): Likewise.
29035 * lto-streamer-out.c (hash_tree): Likewise.
29036 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
29037 not stream DECL_TLS_MODEL.
29038 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
29039 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
29041 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
29043 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
29045 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
29047 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
29048 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
29050 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
29051 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
29052 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
29053 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
29054 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
29055 (df_get_artificial_defs, df_get_artificial_uses)
29056 (df_single_def, df_single_use): Update accordingly.
29057 (df_refs_chain_dump): Take the first element in a linked list as
29058 parameter, rather than a pointer to an array of pointers.
29059 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
29060 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
29061 (df_chain_create_bb_process_use): Likewise.
29062 (df_md_bb_local_compute_process_def): Likewise.
29063 * fwprop.c (process_defs, process_uses): Likewise.
29064 (register_active_defs, update_uses): Likewise.
29065 (forward_propagate_asm): Update for new df_ref linking.
29066 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
29067 (df_null_ref_rec, df_null_mw_rec): Likewise.
29068 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
29070 (df_scan_free_bb_info): Remove check for null artificial_defs.
29071 (df_install_ref_incremental): Adjust for new df_ref linking.
29072 Use a single-element insertion rather than a full sort.
29073 (df_ref_chain_delete_du_chain): Take the first element
29074 in a linked list as parameter, rather than a pointer to an array of
29076 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
29077 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
29078 (df_insn_info_delete): Remove check for null defs and call to
29079 df_scan_free_mws_vec.
29080 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
29081 null rather than df_null_*_rec.
29082 (df_insn_rescan_debug_internal): Likewise, and update null
29083 checks in the same way. Remove check for null defs.
29084 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
29085 Move a single element rather doing a full sort.
29086 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
29088 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
29089 Initialize df_ref and df_mw_hardreg lists to null rather than
29091 (df_ref_compare): Take df_refs as parameter, transferring the
29092 old interface to...
29093 (df_ref_ptr_compare): ...this new function.
29094 (df_sort_and_compress_refs): Update accordingly.
29095 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
29096 old interface to...
29097 (df_mw_ptr_compare): ...this new function.
29098 (df_sort_and_compress_mws): Update accordingly.
29099 (df_install_refs, df_install_mws): Return a linked list rather than
29100 an array of pointers.
29101 (df_refs_add_to_chains): Assert that old lists are empty rather
29103 (df_insn_refs_verify): Don't handle null defs speciailly.
29104 * web.c (union_match_dups): Update for new df_ref linking.
29106 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
29108 * df.h (df_ref_create, df_ref_remove): Delete.
29109 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
29110 (df_ref_remove): Likewise.
29112 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
29114 * df.h (df_single_def, df_single_use): New functions.
29115 * ira.c (find_moveable_pseudos): Use them.
29117 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
29119 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
29120 * df-problems.c (df_note_bb_compute): Use it.
29121 * regstat.c (regstat_bb_compute_ri): Likewise.
29123 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
29125 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
29126 * cse.c (cse_extended_basic_block): Use them.
29127 * dce.c (mark_artificial_use): Likewise.
29128 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
29129 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
29130 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
29131 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
29132 (df_simulate_initialize_backwards): Likewise.
29133 (df_simulate_finalize_backwards): Likewise.
29134 (df_simulate_initialize_forwards): Likewise.
29135 (df_md_simulate_artificial_defs_at_top): Likewise.
29136 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
29137 * regrename.c (init_rename_info): Likewise.
29138 * regstat.c (regstat_bb_compute_ri): Likewise.
29139 (regstat_bb_compute_calls_crossed): Likewise.
29141 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
29143 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
29144 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
29145 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
29146 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
29147 * combine.c (create_log_links): Likewise.
29148 * compare-elim.c (find_flags_uses_in_insn): Likewise.
29149 (try_eliminate_compare): Likewise.
29150 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
29151 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
29152 (remove_reg_equal_equiv_notes_for_defs): Likewise.
29153 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
29154 (word_dce_process_block, dce_process_block): Likewise.
29155 * ddg.c (def_has_ccmode_p): Likewise.
29156 * df-core.c (df_bb_regno_first_def_find): Likewise.
29157 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
29158 * df-problems.c (df_rd_simulate_one_insn): Likewise.
29159 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
29160 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
29161 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
29162 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
29163 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
29164 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
29165 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
29166 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
29167 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
29168 * fwprop.c (local_ref_killed_between_p): Likewise.
29169 (all_uses_available_at, free_load_extend): Likewise.
29170 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
29171 * hw-doloop.c (scan_loop): Likewise.
29172 * ifcvt.c (dead_or_predicable): Likewise.
29173 * init-regs.c (initialize_uninitialized_regs): Likewise.
29174 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
29175 (process_bb_node_lives): Likewise.
29176 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
29177 (find_moveable_pseudos): Likewise.
29178 * loop-invariant.c (check_dependencies, record_uses): Likewise.
29179 * recog.c (peep2_find_free_register): Likewise.
29180 * ree.c (get_defs): Likewise.
29181 * regstat.c (regstat_bb_compute_ri): Likewise.
29182 (regstat_bb_compute_calls_crossed): Likewise.
29183 * sched-deps.c (find_inc, find_mem): Likewise.
29184 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
29185 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
29186 * shrink-wrap.c (requires_stack_frame_p): Likewise.
29187 (prepare_shrink_wrap): Likewise.
29188 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
29189 * web.c (union_defs, pass_web::execute): Likewise.
29190 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
29191 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
29193 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
29195 * lra-assign.c (assign_by_spills): Add code to assign vector regs
29196 to inheritance pseudos.
29197 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
29199 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
29202 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
29203 (BU_MISC_2): Rename to ...
29204 (BU_LDBL128_2): ... this.
29205 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
29206 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
29207 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
29208 RS6000_BTM_LDBL128.
29209 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
29210 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
29211 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
29212 (unpacktf_1): Likewise.
29213 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
29214 (__builtin_longdouble_dw1): Likewise.
29215 * doc/sourcebuild.texi (longdouble128): Document.
29217 2014-06-13 Jeff Law <law@redhat.com>
29219 PR rtl-optimization/61094
29220 PR rtl-optimization/61446
29221 * ree.c (combine_reaching_defs): Get the mode for the copy from
29222 the extension insn rather than the defining insn.
29224 2014-06-13 Dehao Chen <dehao@google.com>
29226 * dwarf2out.c (add_linkage_name): Emit more linkage name.
29228 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
29230 * doc/install.texi (--enable-linker-plugin-configure-flags)
29231 (--enable-linker-plugin-flags): Document new flags.
29233 2014-06-13 Martin Jambor <mjambor@suse.cz>
29236 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
29237 cache_token if returning early.
29239 2014-06-13 Nick Clifton <nickc@redhat.com>
29241 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
29242 requested alignment is active.
29243 (LABEL_ALIGN): Likewise.
29244 (LOOP_ALIGN): Likewise.
29246 2014-06-13 Richard Biener <rguenther@suse.de>
29248 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
29249 Rewrite to propagate the VN result into all uses where
29250 possible and to remove stmts becoming dead because of that.
29251 (eliminate): Generalize stmt removal handling, remove in
29252 reverse dominator order to support proper debug stmt
29253 generation. Update stmts before removing stmts.
29254 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
29256 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29258 PR tree-optimization/61375
29259 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
29260 symbolic number cannot be represented in an uint64_t.
29261 (find_bswap_or_nop_1): Likewise.
29263 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
29265 * symtab.c (symtab_node::reset_section): New method.
29266 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
29268 * cgraph.h (reset_section): Declare.
29269 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
29270 do not consider comdat locals.
29271 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
29273 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
29274 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
29275 reset sections of symbols dragged out of the comdats.
29276 (function_and_variable_visibility): Reset sections of
29279 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
29281 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
29282 to use symtab and decl_binds_to_current_def_p
29283 * tree-vectorizer.c (increase_alignment): Increase alignment
29284 of alias target, too.
29286 2014-06-12 Jakub Jelinek <jakub@redhat.com>
29288 PR middle-end/61486
29289 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
29290 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
29291 if outer combined construct is distribute.
29292 (gimplify_omp_for): For OMP_DISTRIBUTE set
29293 gimplify_omp_ctxp->distribute.
29294 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
29295 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
29296 mapping into decl map.
29298 2014-06-12 Jason Merrill <jason@redhat.com>
29300 * common.opt (fabi-version): Change default to 0.
29302 2014-06-12 Jason Merrill <jason@redhat.com>
29304 * toplev.c (process_options): Reject -fabi-version=1.
29306 2014-06-12 Jeff Law <law@redhat.com>
29308 PR tree-optimization/61009
29309 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
29310 value when we stop processing a block due to problematic PHIs.
29312 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
29314 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
29315 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
29316 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
29317 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
29318 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
29319 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
29320 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
29321 are not in the spec.
29323 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
29326 * config/aarch64/aarch64-modes.def: Add V1DFmode.
29327 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
29330 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
29332 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
29334 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
29337 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
29338 loading from address spaces.
29340 2014-06-12 Martin Liska <mliska@suse.cz>
29343 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
29344 statement is reachable.
29346 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
29348 * symtab.c (section_hash): New hash.
29349 (symtab_unregister_node): Clear section before freeing.
29350 (hash_section_hash_entry): New haser.
29351 (eq_sections): New function.
29352 (symtab_node::set_section_for_node): New method.
29353 (set_section_1): Update.
29354 (symtab_node::set_section): Take string instead of tree as parameter.
29355 (symtab_resolve_alias): Update.
29356 * cgraph.h (section_hash_entry_d): New structure.
29357 (section_hash_entry): New typedef.
29358 (cgraph_node): Change comdat_group_ to x_comdat_group,
29359 change section_ to x_section and turn into section_hash_entry;
29360 update accestors; put set_section_for_node offline.
29361 * tree.c (decl_section_name): Turn into string.
29362 (set_decl_section_name): Change parameter to be string.
29363 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
29364 * sdbout.c (sdbout_one_type): Update.
29365 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
29366 * varasm.c (IN_NAMED_SECTION, get_named_section,
29367 resolve_unique_section, hot_function_section, get_named_text_section,
29368 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
29369 make_decl_rtl, default_unique_section): Update.
29370 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
29371 (c6x_elf_unique_section): Update.
29372 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
29373 * config/pa/pa.c (pa_function_section): Update.
29374 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
29375 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
29376 * config/arc/arc.c (arc_in_small_data_p): Update.
29377 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
29378 * config/mcore/mcore.c (mcore_unique_section): Update.
29379 * config/mips/mips.c (mips16_build_function_stub): Update.
29380 (mips16_build_call_stub): Update.
29381 (mips_function_rodata_section): Update.
29382 (mips_in_small_data_p): Update.
29383 * config/score/score.c (score_in_small_data_p): Update.
29384 * config/rx/rx.c (rx_in_small_data): Update.
29385 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
29386 (rs6000_xcoff_asm_named_section): Update.
29387 (rs6000_xcoff_unique_section): Update.
29388 * config/frv/frv.c (frv_string_begins_with): Update.
29389 (frv_in_small_data_p): Update.
29390 * config/v850/v850.c (v850_encode_data_area): Update.
29391 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
29392 (bfin_handle_l1_data_attribute): Update.
29393 (bfin_handle_l2_attribute): Update.
29394 * config/mep/mep.c (mep_unique_section): Update.
29395 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
29397 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
29398 (h8300_handle_tiny_data_attribute): Update.
29399 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
29400 (m32r_in_small_data_p): Update.
29401 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
29402 * config/i386/i386.c (ix86_in_large_data_p): Update.
29403 * config/i386/winnt.c (i386_pe_unique_section): Update.
29404 * config/darwin.c (darwin_function_section): Update.
29405 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
29406 * tree-emutls.c (get_emutls_init_templ_addr): Update.
29407 (new_emutls_decl): Update.
29408 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
29409 input_varpool_node): Update.
29410 (ead_string_cst): Turn to ...
29411 (read_string): ... this one.
29412 * dwarf2out.c (secname_for_decl): Update.
29413 * asan.c (asan_protect_global): Update.
29415 2014-06-11 DJ Delorie <dj@redhat.com>
29417 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
29419 * config/rx/rx.c (rx_option_override): Likewise.
29420 (rx_align_for_label): Likewise.
29422 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
29424 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
29426 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
29429 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
29431 * common.md: New file.
29432 * doc/md.texi: Update description of generic, machine-independent
29434 * config/s390/constraints.md (e): Delete.
29435 * Makefile.in (md_file): Include common.md.
29436 * config/m32c/t-m32c (md_file): Likewise.
29437 * genpreds.c (general_mem): New array.
29438 (generic_constraint_letters): Remove constraints now defined by
29440 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
29441 Allow the first character to be '<' or '>' as well.
29442 * genoutput.c (general_mem): New array.
29443 (indep_constraints): Remove constraints now defined by common.md.
29444 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
29445 Remove special handling of 'm'.
29446 * ira-costs.c (record_reg_classes): Remove special handling of
29447 constraints now defined by common.md.
29448 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
29449 * ira-lives.c (single_reg_class): Likewise.
29450 (ira_implicitly_set_insn_hard_regs): Likewise.
29451 * lra-constraints.c (reg_class_from_constraints): Likewise.
29452 (process_alt_operands, process_address, curr_insn_transform): Likewise.
29453 * postreload.c (reload_cse_simplify_operands): Likewise.
29454 * reload.c (push_secondary_reload, scratch_reload_class)
29455 (find_reloads, alternative_allows_const_pool_ref): Likewise.
29456 * reload1.c (maybe_fix_stack_asms): Likewise.
29457 * targhooks.c (default_secondary_reload): Likewise.
29458 * stmt.c (parse_output_constraint): Likewise.
29459 * recog.c (preprocess_constraints): Likewise.
29460 (constrain_operands, peep2_find_free_register): Likewise.
29461 (asm_operand_ok): Likewise, but add a comment saying why 'o'
29462 must be handled specially.
29464 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
29466 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
29467 * genpreds.c (have_const_dbl_constraints): Delete.
29468 (add_constraint): Don't set it.
29469 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
29470 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
29471 constraints using the lookup_constraint logic.
29472 * ira-lives.c (single_reg_class): Likewise.
29473 * ira.c (ira_setup_alts): Likewise.
29474 * lra-constraints.c (process_alt_operands): Likewise.
29475 * recog.c (asm_operand_ok, constrain_operands): Likewise.
29476 * reload.c (find_reloads): Likewise.
29478 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
29480 * genpreds.c (const_int_start, const_int_end): New variables.
29481 (choose_enum_order): Output CONST_INT constraints before memory
29483 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
29485 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
29486 * ira.c (ira_setup_alts): Likewise.
29487 * lra-constraints.c (process_alt_operands): Likewise.
29488 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
29489 * reload.c (find_reloads): Likewise.
29491 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
29493 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
29494 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
29495 * recog.c (preprocess_constraints): Update accordingly.
29497 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
29499 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
29500 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
29501 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
29502 * genpreds.c (print_type_tree): New function.
29503 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
29504 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
29505 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
29506 Write out enum constraint_type and get_constraint_type.
29507 * lra-constraints.c (satisfies_memory_constraint_p): Take a
29508 constraint_num rather than a constraint string.
29509 (satisfies_address_constraint_p): Likewise.
29510 (reg_class_from_constraints): Avoid old constraint macros.
29511 (process_alt_operands, process_address_1): Likewise.
29512 (curr_insn_transform): Likewise.
29513 * ira-costs.c (record_reg_classes): Likewise.
29514 (record_operand_costs): Likewise.
29515 * ira-lives.c (single_reg_class): Likewise.
29516 (ira_implicitly_set_insn_hard_regs): Likewise.
29517 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
29518 * postreload.c (reload_cse_simplify_operands): Likewise.
29519 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
29520 (constrain_operands, peep2_find_free_register): Likewise.
29521 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
29522 (find_reloads, alternative_allows_const_pool_ref): Likewise.
29523 * reload1.c (maybe_fix_stack_asms): Likewise.
29524 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
29525 * targhooks.c (default_secondary_reload): Likewise.
29526 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
29527 to EXTRA_CONSTRAINT_STR.
29528 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
29530 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
29532 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
29533 (write_constraint_satisfied_p_array): ...this new function.
29534 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
29536 (write_insn_preds_c): Update accordingly.
29538 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
29540 * genpreds.c (write_lookup_constraint): Rename to...
29541 (write_lookup_constraint_1): ...this.
29542 (write_lookup_constraint_array): New function.
29543 (write_tm_preds_h): Define lookup_constraint as an inline function
29544 that uses write_lookup_constraint_array where possible.
29545 (write_insn_preds_c): Update for the changes above.
29547 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
29549 * doc/md.texi (regclass_for_constraint): Rename to...
29550 (reg_class_for_constraint): ...this.
29551 * genpreds.c (num_constraints, enum_order, register_start)
29552 (register_end, satisfied_start, memory_start, memory_end)
29553 (address_start, address_end): New variables.
29554 (add_constraint): Count the number of constraints.
29555 (choose_enum_order): New function.
29556 (write_enum_constraint_num): Iterate over enum_order.
29557 (write_regclass_for_constraint): Rename to...
29558 (write_reg_class_for_constraint_1): ...this and update output
29560 (write_constraint_satisfied_p): Rename to...
29561 (write_constraint_satisfied_p_1): ...this and update output
29562 accordingly. Do nothing if all extra constraints are register
29564 (write_insn_extra_memory_constraint): Delete.
29565 (write_insn_extra_address_constraint): Delete.
29566 (write_range_function): New function.
29567 (write_tm_preds_h): Define constraint_satisfied_p and
29568 reg_class_for_constraint as inline functions that do a range check
29569 before calling the out-of-line function. Use write_range_function
29570 to implement insn_extra_{register,memory,address}_constraint,
29571 the first of which is new.
29572 (write_insn_preds_c): Update after above changes to write_* functions.
29573 (main): Call choose_enum_order.
29575 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
29577 PR tree-optimization/61306
29578 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
29579 expression instead of its size.
29580 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
29581 false to prevent optimization when the result is unpredictable due to
29582 arithmetic right shift of signed type with highest byte is set.
29583 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
29584 (init_symbolic_number): Likewise.
29585 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
29586 when the result is unpredictable due to sign extension.
29588 2014-06-11 Terry Guo <terry.guo@arm.com>
29590 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
29591 (*thumb1_addsi3): Ditto.
29592 (*thumb_subdi3): Ditto.
29593 (thumb1_subsi3_insn): Ditto.
29594 (*thumb_mulsi3): Ditto.
29595 (*thumb_mulsi3_v6): Ditto.
29596 (*thumb1_andsi3_insn): Ditto.
29597 (thumb1_bicsi3): Ditto.
29598 (*thumb1_iorsi3_insn): Ditto.
29599 (*thumb1_xorsi3_insn): Ditto.
29600 (*thumb1_ashlsi3): Ditto.
29601 (*thumb1_ashrsi3): Ditto.
29602 (*thumb1_lshrsi3): Ditto.
29603 (*thumb1_rotrsi3): Ditto.
29604 (*thumb1_negdi2): Ditto.
29605 (*thumb1_negsi2): Ditto.
29606 (*thumb1_abssi2): Ditto.
29607 (*thumb1_neg_abssi2): Ditto.
29608 (*thumb1_one_cmplsi2): Ditto.
29609 (*thumb1_zero_extendhisi2): Ditto.
29610 (*thumb1_zero_extendqisi2): Ditto.
29611 (*thumb1_zero_extendqisi2_v6): Ditto.
29612 (thumb1_extendhisi2): Ditto.
29613 (thumb1_extendqisi2): Ditto.
29614 (*thumb1_movdi_insn): Ditto.
29615 (*thumb1_movsi_insn): Ditto.
29616 (*thumb1_movhi_insn): Ditto.
29617 (thumb_movhi_clobber): Ditto.
29618 (*thumb1_movqi_insn): Ditto.
29619 (*thumb1_movhf): Ditto.
29620 (*thumb1_movsf_insn): Ditto.
29621 (*thumb_movdf_insn): Ditto.
29622 (movmem12b): Ditto.
29624 (cbranchqi4): Ditto.
29625 (cbranchsi4_insn): Ditto.
29626 (cbranchsi4_scratch): Ditto.
29627 (*negated_cbranchsi4): Ditto.
29628 (*tbit_cbranch): Ditto.
29629 (*tlobits_cbranch): Ditto.
29630 (*tstsi3_cbranch): Ditto.
29631 (*cbranchne_decr1): Ditto.
29632 (*addsi3_cbranch): Ditto.
29633 (*addsi3_cbranch_scratch): Ditto.
29634 (*thumb_cmpdi_zero): Ditto.
29635 (cstoresi_eq0_thumb1): Ditto.
29636 (cstoresi_ne0_thumb1): Ditto.
29637 (*cstoresi_eq0_thumb1_insn): Ditto.
29638 (*cstoresi_ne0_thumb1_insn): Ditto.
29639 (cstoresi_nltu_thumb1): Ditto.
29640 (cstoresi_ltu_thumb1): Ditto.
29641 (thumb1_addsi3_addgeu): Ditto.
29642 (*thumb_jump): Ditto.
29643 (*call_reg_thumb1_v5): Ditto.
29644 (*call_reg_thumb1): Ditto.
29645 (*call_value_reg_thumb1_v5): Ditto.
29646 (*call_value_reg_thumb1): Ditto.
29647 (*call_insn): Ditto.
29648 (*call_value_insn): Ditto.
29649 (thumb1_casesi_internal_pic): Ditto.
29650 (thumb1_casesi_dispatch): Ditto.
29651 (*thumb1_indirect_jump): Ditto.
29652 (prologue_thumb1_interwork): Ditto.
29653 (*epilogue_insns): Ditto.
29654 (consttable_1): Ditto.
29655 (consttable_2): Ditto.
29656 (tablejump): Ditto.
29657 (*thumb1_tablejump): Ditto.
29658 (thumb_eh_return): Ditto.
29659 (define_peephole2): Two of them are thumb1 only and got moved into
29660 new file thumb1.md.
29661 (define_split): Six of them are thumb1 only and got moved into new
29663 * config/arm/thumb1.md: New file comprised of above thumb1 only
29666 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29668 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
29669 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
29671 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
29672 (aarch64_crc_builtin_datum): New struct.
29673 (aarch64_crc_builtin_data): New.
29674 (aarch64_init_crc32_builtins): New function.
29675 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
29676 (aarch64_crc32_expand_builtin): New.
29677 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
29678 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
29679 __ARM_FEATURE_CRC32 when appropriate.
29680 (TARGET_CRC32): Define.
29681 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
29682 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
29683 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
29684 (aarch64_<crc_variant>): New pattern.
29685 * config/aarch64/arm_acle.h: New file.
29686 * config/aarch64/iterators.md (CRC): New int iterator.
29687 (crc_variant, crc_mode): New int attributes.
29688 * doc/aarch64-acle-intrinsics.texi: New file.
29689 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
29690 Include aarch64-acle-intrinsics.texi.
29692 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
29694 * tree-vect-data-refs.c (vect_grouped_store_supported): New
29695 check for stores group of length 3.
29696 (vect_permute_store_chain): New permutations for stores group of
29698 * tree-vect-stmts.c (vect_model_store_cost): Change cost
29699 of vec_perm_shuffle for the new permutations.
29701 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
29703 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
29704 table rewriting temporarily on targets not supporting ONE_ONLY.
29706 2014-06-11 Richard Biener <rguenther@suse.de>
29708 PR middle-end/61437
29710 2014-06-04 Richard Biener <rguenther@suse.de>
29712 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
29713 TREE_PUBLIC and DECL_EXTERNAL decls.
29715 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
29717 * varasm.c (set_implicit_section): New function.
29718 (resolve_unique_section): Use it to set implicit section
29720 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
29721 (default_function_section): Likewise.
29722 (decl_binds_to_current_def_p): Constify argument.
29723 * varasm.h (decl_binds_to_current_def_p): Update prototype.
29724 * asan.c (asan_protect_global): Use
29725 symtab_get_node (decl)->implicit_section.
29726 * symtab.c (dump_symtab_base): Dump implicit sections.
29727 (verify_symtab_base): Verify sanity of sectoins and comdats.
29728 (symtab_resolve_alias): Alias share the section of its target.
29729 (set_section_1): New function.
29730 (symtab_node::set_section): Move here, recurse to aliases.
29731 (verify_symtab): Check for duplicated symtab lists.
29732 * tree-core.h (implicit_section_name_p): Remove.
29733 * tree-vect-data-refs.c: Include varasm.h.
29734 (vect_can_force_dr_alignment_p): Fix conditional on when
29735 decl bints to current definition; use
29736 symtab_get_node (decl)->implicit_section.
29737 * cgraph.c (cgraph_make_node_local_1): Fix section set.
29738 * cgraph.h (struct symtab_node): Add implicit_section.
29739 (set_section): Rename to ...
29740 (set_section_for_node): ... this one.
29741 (set_section): Declare.
29742 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
29743 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
29744 input_overwrite_node, input_varpool_node): Stream implicit_section.
29745 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
29746 removal; it will fail in LTO.
29748 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29750 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
29751 Change second alternative type to f_mcr.
29752 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
29753 and 12th alternatives' types to f_mcr and f_mrc.
29754 (*movdi_aarch64): Same for 12th and 13th alternatives.
29755 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
29756 (aarch64_movtilow_tilow): Change type to fmov.
29758 2014-06-10 Jiong Wang <jiong.wang@arm.com>
29760 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
29761 (aarch64_save_or_restore_callee_save_registers): Fix layout.
29763 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29765 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
29767 (aarch64_sqrdmulh_lane<mode>): Likewise.
29768 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
29769 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
29770 (aarch64_sqdmulh_laneq<mode>): New expander.
29771 (aarch64_sqrdmulh_laneq<mode>): Likewise.
29772 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
29773 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
29774 (aarch64_sqdmulh_lane<mode>): New expander.
29775 (aarch64_sqrdmulh_lane<mode>): Likewise.
29776 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
29777 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
29778 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
29779 (aarch64_sqdmlal_laneq<mode>): Likewise.
29780 (aarch64_sqdmlsl_lane<mode>): Likewise.
29781 (aarch64_sqdmlsl_laneq<mode>): Likewise.
29782 (aarch64_sqdmlal2_lane<mode>): Likewise.
29783 (aarch64_sqdmlal2_laneq<mode>): Likewise.
29784 (aarch64_sqdmlsl2_lane<mode>): Likewise.
29785 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
29786 (aarch64_sqdmull_lane<mode>): Likewise.
29787 (aarch64_sqdmull_laneq<mode>): Likewise.
29788 (aarch64_sqdmull2_lane<mode>): Likewise.
29789 (aarch64_sqdmull2_laneq<mode>): Likewise.
29791 2014-06-10 Richard Biener <rguenther@suse.de>
29793 PR tree-optimization/61438
29794 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
29795 (eliminate_dom_walker::before_dom_children): Only try to inhibit
29796 insertion of IVs if running PRE.
29797 (eliminate): Adjust.
29798 (pass_pre::execute): Likewise.
29799 (pass_fre::execute): Likewise.
29801 2014-06-10 Richard Biener <rguenther@suse.de>
29803 PR middle-end/61456
29804 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
29805 Do not use the main variant for the type comparison.
29806 (ncr_compar): Likewise.
29807 (nonoverlapping_component_refs_p): Likewise.
29809 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
29811 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
29812 REG_CFA_RESTORE mode.
29814 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
29816 * config/i386/i386.c (expand_vec_perm_pblendv): New.
29817 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
29818 expand_vec_perm_pblendv.
29820 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29822 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
29824 Simplify description of __crc32d and __crc32cd intrinsics.
29825 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
29828 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
29831 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
29832 * config.in: Regenerate.
29833 * configure: Likewise.
29835 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
29837 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
29839 (intersect_static_var_sets): Remove.
29840 (propagate): Do not prune local statics.
29842 2014-06-10 Jakub Jelinek <jakub@redhat.com>
29845 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
29846 Set lastprivate_firstprivate even if omp_private_outer_ref
29847 langhook returns true.
29848 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
29849 langhook, call unshare_expr on new_var and call
29850 build_outer_var_ref to get the last argument.
29852 2014-06-10 Marek Polacek <polacek@redhat.com>
29855 * doc/extend.texi: Add cindex for transparent_union.
29857 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
29859 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
29860 init_symbolic_number ().
29862 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
29864 PR middle-end/61141
29865 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
29866 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
29867 (verify_rtl_sharing): Likewise.
29869 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
29872 * tree.c (build_qualified_type): Use a canonical type for
29875 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29877 * config/arm/arm-modes.def: Remove XFmode.
29879 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
29882 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
29883 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
29884 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
29885 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
29886 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
29887 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
29888 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
29889 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
29890 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
29892 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
29894 * tree-core.h (tree_decl_with_vis): Remove section_name.
29896 2014-06-09 Kito Cheng <kito@0xlab.org>
29898 * ira.c (ira): Don't call init_caller_save if LRA enabled
29899 since LRA use its own infrastructure to handle that.
29901 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
29903 * symtab.c (dump_symtab_base): Update dumping.
29904 (symtab_make_decl_local): Clear only DECL_COMDAT.
29905 * tree-vect-data-refs.c (Check that variable is static before
29906 tampering with sections.
29907 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
29908 (cgraph_create_virtual_clone): Likewise.
29909 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
29910 (decl_section_name, set_decl_section_name): New accessors.
29911 (find_decls_types_r): Do not walk section name
29912 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
29913 (decl_comdat_group, decl_comdat_group_id): Constify.
29914 (decl_section_name, set_decl_section_name): Update.
29915 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
29916 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
29917 (cgraph_make_node_local_1): Clear section and comdat group.
29918 * cgraph.h (set_comdat_group): Sanity check.
29919 (get_section, set_section): New.
29920 * ipa-comdats.c (ipa_comdats): Use get_section.
29921 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
29922 * lto-streamer-out.c: Do not follow section names.
29923 * c-family/c-common.c (handle_section_attribute): Update.
29924 * lto-cgraph.c (lto_output_node): Output section.
29925 (lto_output_varpool_node): Likewise.
29926 (read_comdat_group): Rename to ...
29927 (read_identifier): ... this one.
29928 (read_string_cst): New function.
29929 (input_node, input_varpool_node): Input section names.
29930 * tree-emutls.c (get_emutls_init_templ_addr): Update.
29931 (new_emutls_decl): Update.
29932 (secname_for_decl): Check section names only of static vars.
29933 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
29934 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
29935 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
29936 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
29937 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
29938 * config/mcore/mcore.c (mcore_unique_section): Likewise.
29939 * config/mips/mips.c (mips16_build_function_stub): Likewise.
29940 * config/v850/v850.c (v850_insert_attributes): Likewise.
29941 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
29943 (h8300_handle_tiny_data_attribute): Likewise.
29944 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
29945 (bfin_handle_l2_attribute): Likewise.
29947 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
29949 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
29950 remove static initializer.
29952 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
29954 * varasm.c (use_blocks_for_decl_p): Check symbol table
29955 instead of alias attribute.
29956 (place_block_symbol): Recurse on aliases.
29958 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
29960 * ipa-visibility.c: Include varasm.h
29961 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
29963 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
29965 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
29966 outputting aliases.
29968 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
29970 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
29971 from test_insn into GGC space escape via SET_SRC.
29973 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
29975 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
29976 call statement, if any.
29977 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
29978 statements, if any. Tidy up.
29980 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
29983 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
29984 iterators, VSX_D that handles 64-bit types, and VSX_LE that
29985 handles swapping the two 64-bit double words on little endian
29986 systems. Include V1TImode and optionally TImode in VSX_LE so that
29987 these types are properly swapped. Change all of the insns and
29988 splits that do the 64-bit swaps to use VSX_LE.
29989 (vsx_le_perm_load_<mode>): Likewise.
29990 (vsx_le_perm_store_<mode>): Likewise.
29991 (splitters for little endian memory operations): Likewise.
29992 (vsx_xxpermdi2_le_<mode>): Likewise.
29993 (vsx_lxvd2x2_le_<mode>): Likewise.
29994 (vsx_stxvd2x2_le_<mode>): Likewise.
29996 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
29999 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
30000 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
30001 and corresponding splitters. Zero extend general register
30002 or memory input operand to XMM temporary. Enable for
30003 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
30004 (floatunssi<mode>2): Update expander predicate.
30006 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
30008 PR rtl-optimization/61325
30009 * lra-constraints.c (process_address_1): Check scale equal to one
30010 to prevent transformation: base + scale * index => base + new_reg.
30012 2014-06-06 Richard Biener <rguenther@suse.de>
30014 PR tree-optimization/59299
30015 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
30017 (nearest_common_dominator_of_uses): Likewise.
30018 (statement_sink_location): Adjust. Support sinking loads.
30020 2014-06-06 Martin Jambor <mjambor@suse.cz>
30022 * ipa-prop.c (get_place_in_agg_contents_list): New function.
30023 (build_agg_jump_func_from_list): Likewise.
30024 (determine_known_aggregate_parts): Renamed to
30025 determine_locally_known_aggregate_parts. Moved some functionality
30026 to the two functions above, removed bound checks.
30028 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
30030 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
30031 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
30032 (aarch64_progress_pointer): Likewise.
30033 (aarch64_copy_one_part_and_move_pointers): Likewise.
30034 (aarch64_expand_movmen): Likewise.
30035 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
30036 * config/aarch64/aarch64.md (movmem<mode>): New.
30038 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
30040 * targhooks.c (default_add_stmt_cost): Call target specific
30041 hook instead of default one.
30043 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
30045 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
30046 endianness instead of host endianness.
30047 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
30050 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
30053 * function.c (instantiate_decls): Process the saved static chain.
30054 (expand_function_start): If not optimizing, save the static chain
30056 * tree-nested.c (convert_all_function_calls): Always create the static
30057 chain for nested functions if not optimizing.
30059 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
30061 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
30063 2014-06-06 Richard Biener <rguenther@suse.de>
30065 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
30066 (construct_init_block): Likewise.
30067 (construct_exit_block): Likewise.
30068 (pass_expand::execute): Likewise.
30069 * graphite.c (graphite_transforms): Replace check for current_loops
30070 with a check for > 1 loops.
30071 (pass_graphite_transforms::execute): Adjust.
30072 * ipa-split.c (split_function): Remove check for current_loops.
30073 * omp-low.c (expand_parallel_call): Likewise.
30074 (expand_omp_for_init_counts): Likewise.
30075 (extract_omp_for_update_vars): Likewise.
30076 (expand_omp_for_generic): Likewise.
30077 (expand_omp_sections): Likewise.
30078 (expand_omp_target): Likewise.
30079 * tracer.c (tail_duplicate): Likewise.
30080 (pass_tracer::execute): Likewise.
30081 * trans-mem.c (expand_transaction): Likewise.
30082 * tree-complex.c (expand_complex_div_wide): Likewise.
30083 * tree-eh.c (lower_resx): Likewise.
30084 (cleanup_empty_eh_merge_phis): Likewise.
30085 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
30086 current_loops with a check for > 1 loops.
30087 (pass_predcom::execute): Adjust.
30088 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
30089 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
30090 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
30091 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
30092 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
30093 * tree-switch-conversion.c (process_switch): Likewise.
30094 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
30095 * tree-vrp.c (vrp_visit_phi_node): Likewise.
30096 (execute_vrp): Likewise.
30097 * ubsan.c (ubsan_expand_null_ifn): Likewise.
30099 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
30101 * rtl.h (insn_location): Declare.
30102 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
30103 with UNKNOWN_LOCATION.
30104 * emit-rtl.c (insn_location): New function.
30105 * final.c (notice_source_line): Check that the instruction has a
30106 location before retrieving it and use insn_location.
30107 * modulo-sched.c (loop_single_full_bb_p): Likewise.
30108 * print-rtl.c (print_rtx): Likewise.
30110 2014-06-06 Richard Biener <rguenther@suse.de>
30112 * passes.def: Move 2nd VRP pass before phi-only-cprop.
30114 2014-06-06 Christian Bruel <christian.bruel@st.com>
30116 PR tree-optimization/43934
30117 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
30120 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
30122 * ira-lives.c (single_reg_class): Add missing break. Explicitly
30123 return NO_REGS for extra address and memory constraints. Handle
30124 operands that match (or are equivalent to something that matches)
30125 extra constant constraints. Ignore other non-register operands.
30127 2014-06-06 Alan Modra <amodra@gmail.com>
30130 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
30131 * doc/tm.texi: Regenerate.
30132 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
30133 Use throughout in place of REG_PARM_STACK_SPACE.
30134 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
30135 "incoming" param. Pass to rs6000_function_parms_need_stack.
30136 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
30137 prototype_p when incoming. Use function decl when incoming
30138 to handle K&R style functions.
30139 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
30140 (INCOMING_REG_PARM_STACK_SPACE): Define.
30142 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
30145 * cfgexpand.c (expand_debug_expr): Use address space of nested
30146 TREE_TYPE for ADDR_EXPR and MEM_REF.
30148 2014-06-05 Jeff Law <law@redhat.com>
30150 PR tree-optimization/61289
30151 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
30152 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
30153 looking for those which match LHS. All callers changed.
30154 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
30155 parameters and code which manipulated them. All callers changed.
30156 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
30157 and DST_MAP parameters. Simplify invalidation code by just calling
30158 invalidate_equivalences. All callers changed.
30159 (thread_across_edge): Simplify now that we don't need to maintain
30160 the map of equivalences to invalidate.
30162 2014-06-05 Kai Tietz <ktietz@redhat.com>
30163 Richard Henderson <rth@redhat.com>
30166 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
30167 checking for !TARGET_X32.
30168 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
30169 (sibcall_intern): New define_insn, plus required peepholes.
30170 (sibcall_pop_intern): Likewise.
30171 (sibcall_value_intern): Likewise.
30172 (sibcall_value_pop_intern): Likewise.
30174 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
30176 * tree-inline.c (tree_function_versioning): Check DF info existence
30177 before accessing it.
30179 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
30181 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
30183 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
30184 aarch64_frame hard_fp_offset and frame_size.
30185 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
30186 frame_size; remove original_frame_size.
30187 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
30188 (aarch64_initial_elimination_offset): Remove frame_size and
30189 offset. Use aarch64_frame frame_size.
30191 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
30192 Jiong Wang <jiong.wang@arm.com>
30193 Renlin <renlin.li@arm.com>
30195 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
30196 initialization of R30 offset. Update offset. Iterate core
30197 regisers upto X30. Remove X29, X30 specific code.
30199 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
30200 Jiong Wang <jiong.wang@arm.com>
30202 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
30203 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
30204 (aarch64_register_saved_on_entry): Adjust test.
30206 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
30208 * config/aarch64/aarch64.h (machine_function): Move
30209 saved_varargs_size from here...
30210 (aarch64_frame): ... to here.
30212 * config/aarch64/aarch64.c (aarch64_expand_prologue)
30213 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
30214 (aarch64_initial_elimination_offset)
30215 (aarch64_setup_incoming_varargs): Adjust location of
30216 saved_varargs_size.
30218 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
30220 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
30223 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
30224 Prachi Godbole <Prachi.Godbole@imgtec.com>
30226 * config/mips/mips-cpus.def: Add definition for p5600. Updated
30227 mips32r5 entry to use PROCESSOR_P5600.
30228 * config/mips/mips-tables.opt: Regenerate.
30229 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
30230 * config/mips/mips.c (mips_fmadd_bypass): New function.
30231 (mips_rtx_cost_data): Add costs for p5600.
30232 (mips_issue_rate): Add support for p5600.
30233 (mips_multipass_dfa_lookahead): Likewise.
30234 * config/mips/mips.h (TUNE_P5600): New define.
30235 (TUNE_MACC_CHAINS): Add TUNE_P5600.
30236 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
30237 * config/mips/mips.md: Include p5600.md.
30238 (processor): Add p5600.
30239 * config/mips/p5600.md: New file.
30241 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
30243 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
30244 * config/i386/predicates.md (palignr_operand): New.
30245 Indicates if permutation is suitable for palignr instruction.
30247 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
30249 PR tree-optimization/61319
30250 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
30251 stmt belongs to loop.
30253 2014-06-05 Richard Biener <rguenther@suse.de>
30255 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
30256 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
30257 (lookup_tmp_var): Adjust.
30258 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
30260 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30262 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
30264 2014-06-05 Marek Polacek <polacek@redhat.com>
30267 * doc/invoke.texi: Document -Wlogical-not-parentheses.
30269 2014-06-04 Tom de Vries <tom@codesourcery.com>
30271 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
30274 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
30276 PR tree-optimization/61385
30277 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
30279 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
30281 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
30282 changed to use fatal_error.
30283 (main): Ensure lto_wrapper_cleanup is run atexit.
30285 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
30287 * lra-constraints.c (valid_address_p): Move earlier in file.
30288 (address_eliminator): New structure.
30289 (satisfies_memory_constraint_p): New function.
30290 (satisfies_address_constraint_p): Likewise.
30291 (process_alt_operands, process_address, curr_insn_transform): Use them.
30293 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
30295 * lra-int.h (lra_static_insn_data): Make operand_alternative a
30297 (target_lra_int, default_target_lra_int, this_target_lra_int)
30298 (op_alt_data): Delete.
30299 * lra.h (lra_init): Delete.
30300 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
30301 (init_insn_code_data_once): Remove op_alt_data handling.
30302 (finish_insn_code_data_once): Likewise.
30303 (init_op_alt_data): Delete.
30304 (get_static_insn_data): Initialize operand_alternative to null.
30305 (free_insn_recog_data): Cast operand_alternative before freeing it.
30306 (setup_operand_alternative): Take the operand_alternative as
30307 parameter and assume it isn't already cached in the static
30309 (lra_set_insn_recog_data): Update accordingly.
30310 (lra_init): Delete.
30311 * ira.c (ira_init): Don't call lra_init.
30312 * target-globals.h (this_target_lra_int): Declare.
30313 (target_globals): Remove lra_int.
30314 (restore_target_globals): Update accordingly.
30315 * target-globals.c: Don't include lra-int.h.
30316 (default_target_globals, save_target_globals): Remove lra_int.
30318 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
30320 * recog.h (operand_alternative): Convert reg_class, reject,
30321 matched and matches into bitfields.
30322 (preprocess_constraints): New overload.
30323 (preprocess_insn_constraints): New function.
30324 (preprocess_constraints): Take the insn as parameter.
30325 (recog_op_alt): Change into a pointer.
30326 (target_recog): Add x_op_alt.
30327 * recog.c (asm_op_alt): New variable.
30328 (recog_op_alt): Change into a pointer.
30329 (preprocess_constraints): New overload, replacing the old function
30330 definition with one that doesn't use global state.
30331 (preprocess_insn_constraints): New function.
30332 (preprocess_constraints): Use them. Take the insn as parameter.
30333 Use asm_op_alt for asms.
30334 (recog_init): Free existing x_op_alt entries.
30335 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
30337 (make_early_clobber_and_input_conflicts): Likewise.
30338 (process_bb_node_lives): Pass the insn to process_constraints.
30339 * reg-stack.c (check_asm_stack_operands): Likewise.
30340 (subst_asm_stack_regs): Likewise.
30341 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
30342 * regrename.c (build_def_use): Likewise.
30343 * sched-deps.c (sched_analyze_insn): Likewise.
30344 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
30345 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
30346 (note_invalid_constants): Likewise.
30347 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
30348 (ix86_legitimate_combined_insn): Make operand_alternative pointer
30351 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
30353 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
30354 * ira-lives.c (check_and_make_def_conflict): Check for disabled
30356 (make_early_clobber_and_input_conflicts): Likewise.
30357 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
30359 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
30361 * recog.h (alternative_class): New function.
30362 (which_op_alt): Return a const recog_op_alt.
30363 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
30364 (subst_asm_stack_regs): Likewise.
30365 * config/arm/arm.c (note_invalid_constants): Likewise.
30366 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
30367 the operand_alternative; use alternative class instead.
30368 * sel-sched.c (get_reg_class): Likewise.
30369 * regrename.c (build_def_use): Likewise.
30370 (hide_operands, restore_operands, record_out_operands): Update type
30373 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
30375 * recog.h (recog_op_alt): Convert to a flat array.
30376 (which_op_alt): New function.
30377 * recog.c (recog_op_alt): Convert to a flat array.
30378 (preprocess_constraints): Update accordingly, grouping all
30379 operands of the same alternative together, rather than the
30381 * ira-lives.c (check_and_make_def_conflict): Likewise.
30382 (make_early_clobber_and_input_conflicts): Likewise.
30383 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
30384 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
30385 (subst_asm_stack_regs): Likewise.
30386 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
30387 * regrename.c (hide_operands, record_out_operands): Likewise.
30388 (build_def_use): Likewise.
30389 * sel-sched.c (get_reg_class): Likewise.
30390 * config/arm/arm.c (note_invalid_constants): Likewise.
30392 2014-06-04 Jason Merrill <jason@redhat.com>
30396 * gimplify.c (gimplify_arg): Non-static.
30397 * gimplify.h: Declare it.
30399 2014-06-04 Richard Biener <rguenther@suse.de>
30401 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
30402 TREE_PUBLIC and DECL_EXTERNAL decls.
30404 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
30406 * regcprop.c (copyprop_hardreg_forward_1): Account for
30407 HARD_REGNO_CALL_PART_CLOBBERED.
30409 2014-06-04 Richard Biener <rguenther@suse.de>
30411 * configure.ac: Check whether the underlying type of int64_t
30412 is long or long long.
30413 * configure: Regenerate.
30414 * config.in: Likewise.
30415 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
30416 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
30418 2014-06-04 Richard Biener <rguenther@suse.de>
30420 PR tree-optimization/60098
30421 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
30423 (dse_optimize_stmt): Simplify, now that we found a kill
30426 2014-06-04 Richard Biener <rguenther@suse.de>
30428 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
30429 of accesses with non-invariant address.
30431 2014-06-04 Martin Liska <mliska@suse.cz>
30433 * cgraph.h (cgraph_make_wrapper): New function introduced.
30434 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
30435 * ipa-inline.h (inline_analyze_function): The function is global.
30436 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
30438 2014-06-04 Martin Liska <mliska@suse.cz>
30440 * tree.h (private_lookup_attribute_starting): New function.
30441 (lookup_attribute_starting): Likewise.
30442 * tree.c (private_lookup_attribute_starting): Likewise.
30444 2014-06-04 Martin Liska <mliska@suse.cz>
30446 * cgraph.h (expand_thunk): New argument added.
30447 (address_taken_from_non_vtable_p): New global function.
30448 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
30449 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
30450 * cgraphunit.c (analyze_function): Likewise.
30451 (assemble_thunks_and_aliases): Argument added to call.
30452 (expand_thunk): New argument forces to produce GIMPLE thunk.
30454 2014-06-04 Martin Liska <mliska@suse.cz>
30456 * coverage.h (coverage_compute_cfg_checksum): Argument added.
30457 * coverage.c (coverage_compute_cfg_checksum): Likewise.
30458 * profile.c (branch_prob): Likewise.
30460 2014-06-04 Martin Jambor <mjambor@suse.cz>
30463 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
30464 handler for switch on an ipa_ref_use enum.
30465 * ipa-reference.c (analyze_function): Likewise.
30467 2014-06-04 Kai Tietz <ktietz@redhat.com>
30469 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
30470 from old call-instruction.
30472 2014-06-04 Bin Cheng <bin.cheng@arm.com>
30474 * config/aarch64/aarch64.c (aarch64_classify_address)
30475 (aarch64_legitimize_reload_address): Support full addressing modes
30477 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
30478 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
30480 2014-06-03 Andrew Pinski <apinski@cavium.com>
30482 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
30485 2014-06-03 Andrew Pinski <apinski@cavium.com>
30487 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
30488 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
30490 2014-06-03 Kai Tietz <ktietz@redhat.com>
30492 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
30495 2014-06-03 Dehao Chen <dehao@google.com>
30497 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
30500 2014-06-03 Marek Polacek <polacek@redhat.com>
30503 * doc/invoke.texi: Document -Wswitch-bool.
30504 * function.c (stack_protect_epilogue): Cast controlling expression of
30506 * gengtype.c (walk_type): Generate switch expression with its
30507 controlling expression cast to int.
30509 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
30511 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
30513 * config/avr/avr-tables.opt: Regenerate.
30514 * config/avr/t-multilib: Regenerate.
30515 * doc/avr-mmcu.texi: Regenerate.
30517 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
30518 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
30520 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
30521 (ata6617c, ata664251): Add new avr35 devices.
30522 (ata6612c): Add new avr4 device.
30523 (ata6613c, ata6614q): Add new avr5 devices.
30524 * config/avr/avr-tables.opt: Regenerate.
30525 * config/avr/t-multilib: Regenerate.
30526 * doc/avr-mmcu.texi: Regenerate.
30528 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
30530 * gcc/config/aarch64/aarch64-builtins.c
30531 (aarch64_types_binop_ssu_qualifiers): New static data.
30532 (TYPES_BINOP_SSU): Define.
30533 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
30534 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
30535 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
30536 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
30537 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
30538 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
30539 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
30540 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
30541 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
30542 suffix to builtin function name, remove cast.
30543 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
30544 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
30545 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
30547 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
30549 * gcc/config/aarch64/aarch64-builtins.c
30550 (aarch64_types_binop_uus_qualifiers,
30551 aarch64_types_shift_to_unsigned_qualifiers,
30552 aarch64_types_unsigned_shiftacc_qualifiers): Define.
30553 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
30554 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
30555 sqshlu_n, uqshl_n): Update qualifiers.
30556 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
30557 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
30558 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
30559 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
30560 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
30561 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
30562 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
30563 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
30564 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
30565 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
30566 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
30567 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
30568 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
30569 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
30570 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
30571 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
30572 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
30573 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
30574 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
30575 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
30576 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
30577 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
30578 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
30579 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
30580 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
30581 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
30582 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
30584 2014-06-03 Teresa Johnson <tejohnson@google.com>
30586 * tree-sra.c (modify_function): Record caller nodes after rebuild.
30588 2014-06-02 Jason Merrill <jason@redhat.com>
30591 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
30593 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
30595 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
30598 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
30600 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
30602 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
30603 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
30604 * config/aarch64/iterators.md (REVERSE): New iterator.
30605 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
30606 (rev_op): New int_attribute.
30607 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
30608 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
30609 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
30610 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
30611 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
30612 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
30613 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
30614 Replace temporary __asm__ with __builtin_shuffle.
30616 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
30618 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
30620 * config/mips/mips-tables.opt: Regenerate.
30621 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
30622 to use mips_isa_rev rather than ISA_MIPS32R2.
30623 * config/mips/mips.h (ISA_MIPS32R3): New define.
30624 (ISA_MIPS32R5): New define.
30625 (ISA_MIPS64R3): New define.
30626 (ISA_MIPS64R5): New define.
30627 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
30628 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
30629 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
30631 (MIPS_ISA_SYNCI_SPEC): Likewise.
30632 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
30633 (LINK_SPEC): Added mips32r3 and mips32r5.
30634 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
30635 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
30636 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
30637 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
30638 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
30639 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
30640 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
30642 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
30644 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
30646 * config/mips/mips.opt (mxpa): New option.
30647 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
30650 2014-06-03 Martin Jambor <mjambor@suse.cz>
30653 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
30656 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
30658 PR tree-optimization/61328
30659 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
30660 initialization from find_bswap_or_nop_1.
30661 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
30662 in source_expr2 before using the size value the function sets. Also
30663 make use of init_symbolic_number () in both the old place and
30664 find_bswap_or_nop_load () to avoid reading uninitialized memory when
30665 doing recursion in the GIMPLE_BINARY_RHS case.
30667 2014-06-03 Richard Biener <rguenther@suse.de>
30669 PR tree-optimization/61383
30670 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
30673 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
30675 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
30676 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
30677 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
30678 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
30680 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
30681 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
30682 * system.h: ...here and make it unconditional.
30683 * target.def (conditional_register_usage): Mention
30684 define_register_constraint instead of old-style constraint macros.
30685 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
30686 * doc/tm.texi: Regenerate.
30687 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
30688 protected by !USE_MD_CONSTRAINTS.
30689 * config/frv/frv.md: Remove quote from old version of documentation.
30690 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
30691 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
30692 CONST_DOUBLE_OK_FOR_LETTER.
30693 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
30695 2014-06-02 Andrew Pinski <apinski@cavium.com>
30697 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
30698 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
30699 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
30700 file whose name depends on -mabi= and -mbig-endian.
30701 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
30702 Handle LP64 better and handle ilp32 too.
30703 (MULTILIB_OPTIONS): Delete.
30704 (MULTILIB_DIRNAMES): Delete.
30706 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
30708 * expr.h: Remove prototypes of functions defined in builtins.c.
30709 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
30710 Remove prototypes of functions defined in builtins.c.
30711 * builtins.h: Update prototype list to include all exported functions.
30712 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
30713 no_c99_libc_has_function): Move to targhooks.c
30714 (build_string_literal, build_call_expr_loc_array,
30715 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
30717 (expand_builtin_object_size, fold_builtin_object_size): Make static.
30718 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
30719 no_c99_libc_has_function): Relocate from builtins.c.
30720 * tree.c: Include builtins.h.
30721 (build_call_expr_loc_array, build_call_expr_loc_vec,
30722 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
30724 * fold-const.h (fold_fma): Move prototype to builtins.h.
30725 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
30726 * asan.c: Include builtins.h.
30727 * cfgexpand.c: Likewise.
30728 * convert.c: Likewise.
30729 * emit-rtl.c: Likewise.
30730 * except.c: Likewise.
30731 * expr.c: Likewise.
30732 * fold-const.c: Likewise.
30733 * gimple-fold.c: Likewise.
30734 * gimple-ssa-strength-reduction.c: Likewise.
30735 * gimplify.c: Likewise.
30736 * ipa-inline.c: Likewise.
30737 * ipa-prop.c: Likewise.
30738 * lto-streamer-out.c: Likewise.
30739 * stmt.c: Likewise.
30740 * tree-inline.c: Likewise.
30741 * tree-object-size.c: Likewise.
30742 * tree-sra.c: Likewise.
30743 * tree-ssa-ccp.c: Likewise.
30744 * tree-ssa-forwprop.c: Likewise.
30745 * tree-ssa-loop-ivcanon.c: Likewise.
30746 * tree-ssa-loop-ivopts.c: Likewise.
30747 * tree-ssa-math-opts.c: Likewise.
30748 * tree-ssa-reassoc.c: Likewise.
30749 * tree-ssa-threadedge.c: Likewise.
30750 * tree-streamer-in.c: Likewise.
30751 * tree-vect-data-refs.c: Likewise.
30752 * tree-vect-patterns.c: Likewise.
30753 * tree-vect-stmts.c: Likewise.
30754 * config/aarch64/aarch64.c: Likewise.
30755 * config/alpha/alpha.c: Likewise.
30756 * config/arc/arc.c: Likewise.
30757 * config/arm/arm.c: Likewise.
30758 * config/avr/avr.c: Likewise.
30759 * config/bfin/bfin.c: Likewise.
30760 * config/c6x/c6x.c: Likewise.
30761 * config/cr16/cr16.c: Likewise.
30762 * config/cris/cris.c: Likewise.
30763 * config/epiphany/epiphany.c: Likewise.
30764 * config/fr30/fr30.c: Likewise.
30765 * config/frv/frv.c: Likewise.
30766 * config/h8300/h8300.c: Likewise.
30767 * config/i386/i386.c: Likewise.
30768 * config/i386/winnt.c: Likewise.
30769 * config/ia64/ia64.c: Likewise.
30770 * config/iq2000/iq2000.c: Likewise.
30771 * config/lm32/lm32.c: Likewise.
30772 * config/m32c/m32c.c: Likewise.
30773 * config/m32r/m32r.c: Likewise.
30774 * config/m68k/m68k.c: Likewise.
30775 * config/mcore/mcore.c: Likewise.
30776 * config/mep/mep.c: Likewise.
30777 * config/microblaze/microblaze.c: Likewise.
30778 * config/mips/mips.c: Likewise.
30779 * config/mmix/mmix.c: Likewise.
30780 * config/mn10300/mn10300.c: Likewise.
30781 * config/moxie/moxie.c: Likewise.
30782 * config/msp430/msp430.c: Likewise.
30783 * config/nds32/nds32.c: Likewise.
30784 * config/pa/pa.c: Likewise.
30785 * config/pdp11/pdp11.c: Likewise.
30786 * config/picochip/picochip.c: Likewise.
30787 * config/rl78/rl78.c: Likewise.
30788 * config/rs6000/rs6000.c: Likewise.
30789 * config/rx/rx.c: Likewise.
30790 * config/s390/s390.c: Likewise.
30791 * config/score/score.c: Likewise.
30792 * config/sh/sh.c: Likewise.
30793 * config/sparc/sparc.c: Likewise.
30794 * config/spu/spu.c: Likewise.
30795 * config/stormy16/stormy16.c: Likewise.
30796 * config/tilegx/tilegx.c: Likewise.
30797 * config/tilepro/tilepro.c: Likewise.
30798 * config/v850/v850.c: Likewise.
30799 * config/vax/vax.c: Likewise.
30800 * config/xtensa/xtensa.c: Likewise.
30802 2014-06-02 Jeff Law <law@redhat.com>
30804 PR rtl-optimization/61094
30805 * ree.c (combine_reaching_defs): Do not reextend an insn if it
30806 was marked as do_no_reextend. If a copy is needed to eliminate
30807 an extension, then mark it as do_not_reextend.
30809 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
30811 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
30813 2014-06-02 Richard Henderson <rth@redhat.com>
30816 * config/alpha/alpha.c (print_operand_address): Allow symbolic
30817 addresses inside asms. Use output_operand_lossage instead of
30820 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
30823 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
30824 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
30826 2014-06-02 Tom de Vries <tom@codesourcery.com>
30828 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
30829 case that x has VOIDmode.
30831 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
30833 * varasm.c (copy_constant): Delete function.
30834 (build_constant_desc): Don't call it.
30836 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30839 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
30840 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
30841 with immediate_operand.
30843 2014-06-02 Andreas Schwab <schwab@suse.de>
30845 * config/ia64/ia64.c
30846 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
30847 pending_data_specs first.
30849 2014-06-02 Richard Biener <rguenther@suse.de>
30851 PR tree-optimization/61378
30852 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
30853 valueized_anything.
30855 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
30857 * config/i386/constraints.md (Bw): Rename from 'w'.
30858 (Bz): Rename from 'z'.
30859 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
30861 2014-06-01 Kai Tietz <ktietz@redhat.com>
30864 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
30865 * config/i386/i386.md (sibcall_insn_operand): Use Bs
30866 instead of m constraint.
30868 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
30870 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
30871 a separate alternative where the scratch operand 2 is marked as
30874 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
30876 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
30877 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
30878 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
30879 and __builtins_arm_get_fpscr.
30880 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
30881 __builtins_arm_get_fpscr.
30882 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
30883 __builtins_arm_ldfpscr.
30884 (arm_atomic_assign_expand_fenv): New function.
30885 * config/arm/vfp.md (set_fpscr): New pattern.
30886 (get_fpscr) : Likewise.
30887 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
30889 * doc/extend.texi (AARCH64 Built-in Functions) : Document
30890 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
30892 2014-05-30 Jakub Jelinek <jakub@redhat.com>
30894 * asan.c (report_error_func): Add SLOW_P argument, use
30895 BUILT_IN_ASAN_*_N if set.
30896 (build_check_stmt): Likewise.
30897 (instrument_derefs): If T has insufficient alignment,
30898 force same handling as for odd sizes.
30900 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
30901 BUILT_IN_ASAN_REPORT_STORE_N): New.
30902 * asan.c (struct asan_mem_ref): Change access_size type to
30904 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
30905 update_mem_ref_hash_table): Likewise.
30906 (asan_mem_ref_hasher::hash): Hash in a HWI.
30907 (report_error_func): Change size_in_bytes argument to HWI.
30908 Use *_N builtins if size_in_bytes is larger than 16 or not power of
30910 (build_shadow_mem_access): New function.
30911 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
30912 Handle size_in_bytes not power of two or larger than 16.
30913 (instrument_derefs): Don't give up if size_in_bytes is not
30914 power of two or is larger than 16.
30916 2014-05-30 Kai Tietz <ktietz@redhat.com>
30919 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
30920 for sibling-tail-calls.
30921 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
30923 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
30924 (sibcall_insn_operand): Add check for sibcall_memory_operand.
30926 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
30928 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
30929 * config/avr/avr-tables.opt: Regenerate.
30930 * config/avr/t-multilib: Regenerate.
30931 * doc/avr-mmcu.texi: Regenerate.
30933 2014-05-30 Ian Lance Taylor <iant@google.com>
30935 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
30938 2014-05-30 Tom de Vries <tom@codesourcery.com>
30940 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
30943 2014-05-30 Tom de Vries <tom@codesourcery.com>
30945 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
30946 * lra.c (initialize_lra_reg_info_element): Add init of
30947 actual_call_used_reg_set field.
30948 (lra): Call lra_create_live_ranges before lra_inheritance for
30950 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
30952 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
30953 instead of call_used_reg_set for -fuse-caller-save.
30954 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
30956 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30958 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
30960 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
30962 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
30964 * ira.c (ira_get_dup_out_num): Check for output operands at
30965 the start of the loop. Handle cases where an included alternative
30966 follows an excluded one.
30968 2014-05-29 Mike Stump <mikestump@comcast.net>
30971 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
30972 post ld passes when lto is used.
30974 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
30976 PR rtl-optimization/61325
30977 * lra-constraints.c (process_address): Rename to process_address_1.
30978 (process_address): New function.
30980 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
30982 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
30983 TYPES_BINOPV): New static data.
30984 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
30986 * config/aarch64/aarch64-simd.md (aarch64_ext,
30987 aarch64_im_lane_boundsi): New patterns.
30988 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
30990 (aarch64_evpc_ext): New function.
30992 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
30994 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
30995 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
30996 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
30997 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
30998 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
31000 2014-05-29 Tom de Vries <tom@codesourcery.com>
31002 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
31004 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
31005 Richard Sandiford <rdsandiford@googlemail.com>
31007 * arm/iterators.md (shiftable_ops): New code iterator.
31008 (t2_binop0, arith_shift_insn): New code attributes.
31009 * arm/predicates.md (shift_nomul_operator): New predicate.
31010 * arm/arm.md (insn_enabled): Delete.
31011 (enabled): Remove insn_enabled test.
31012 (*arith_shiftsi): Delete. Replace with ...
31013 (*<arith_shift_insn>_multsi): ... new pattern.
31014 (*<arith_shift_insn>_shiftsi): ... new pattern.
31015 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
31017 2014-05-29 Radovan Obradovic <robradovic@mips.com>
31018 Tom de Vries <tom@codesourcery.com>
31020 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
31021 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
31023 (mips_split_call): Use POST_CALL_TMP_REG.
31024 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
31026 2014-05-29 Tom de Vries <tom@codesourcery.com>
31028 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
31029 with #ifdef STACK_REGS.
31031 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
31033 * varasm.c (get_variable_section): Walk aliases.
31034 (place_block_symbol): Walk aliases.
31036 2014-05-28 Tom de Vries <tom@codesourcery.com>
31039 2014-05-28 Tom de Vries <tom@codesourcery.com>
31041 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
31042 * lra.c (initialize_lra_reg_info_element): Add init of
31043 actual_call_used_reg_set field.
31044 (lra): Call lra_create_live_ranges before lra_inheritance for
31046 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
31048 * lra-constraints.c (need_for_call_save_p): Use
31049 actual_call_used_reg_set instead of call_used_reg_set for
31051 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
31053 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
31055 * doc/md.texi: Document that the % constraint character must
31056 be at the beginning of the string.
31057 * genoutput.c (validate_insn_alternatives): Check that '=',
31058 '+' and '%' only appear at the beginning of a constraint.
31059 * ira.c (commutative_constraint_p): Delete.
31060 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
31061 at the start of the string.
31062 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
31064 * config/arm/neon.md (bicdi3_neon): Likewise.
31065 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
31066 (slt_si, sltu_si): Likewise.
31067 * config/vax/vax.md (sbcdi3): Likewise.
31068 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
31069 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
31070 (mul64): Move '%' to beginning of constraint.
31071 * config/arm/arm.md (*xordi3_insn): Likewise.
31072 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
31073 (xorsi3): Likewise.
31075 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
31077 * doc/md.texi: Document the restrictions on the "enabled" attribute.
31079 2014-05-28 Jason Merrill <jason@redhat.com>
31082 * cgraph.h (symtab_node::get_comdat_group_id): New.
31083 * cgraphunit.c (analyze_functions): Call it.
31084 * symtab.c (dump_symtab_node): Likewise.
31085 * tree.c (decl_comdat_group_id): New.
31086 * tree.h: Declare it.
31087 * lto-streamer-out.c (write_symbol): Use it.
31088 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
31090 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
31092 PR bootstrap/PR61146
31093 * wide-int.cc: Do not include longlong.h when compiling with clang.
31095 2014-05-28 Richard Biener <rguenther@suse.de>
31097 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
31098 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
31099 (vrp_visit_assignment_or_call): Print less vertical space.
31100 (vrp_visit_stmt): Likewise.
31101 (vrp_visit_phi_node): Likewise. For a PHI argument with
31102 VR_VARYING range consider recording it as copy.
31104 2014-05-28 Richard Biener <rguenther@suse.de>
31107 2014-05-28 Richard Biener <rguenther@suse.de>
31109 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
31111 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
31113 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
31114 sufficiently aligned and an offset is used at the same time.
31115 (expand_expr_real_1): Likewise.
31117 2014-05-28 Richard Biener <rguenther@suse.de>
31119 PR middle-end/61045
31120 * fold-const.c (fold_comparison): When folding
31121 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
31122 the sign of the remaining constant operand stays the same.
31124 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
31126 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
31127 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
31128 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
31130 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
31131 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
31132 (m32bit-doubles) Likewise.
31133 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
31134 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
31137 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31139 * configure.ac ($gcc_cv_ld_clearcap): New test.
31140 * configure: Regenerate.
31141 * config.in: Regenerate.
31142 * config/sol2.opt (mclear-hwcap): New option.
31143 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
31144 * config/sol2-clearcap.map: Moved here from
31145 testsuite/gcc.target/i386/clearcap.map.
31146 * config/sol2-clearcapv2.map: Move here from
31147 gcc.target/i386/clearcapv2.map.
31148 * config/t-sol2 (install): Depend on install-clearcap-map.
31149 (install-clearcap-map): New target.
31150 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
31153 2014-05-28 Richard Biener <rguenther@suse.de>
31155 * hwint.h (*_HALF_WIDE_INT*): Move to ...
31156 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
31157 ... here and remove the rest.
31158 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
31160 2014-05-28 Richard Biener <rguenther@suse.de>
31162 PR tree-optimization/61335
31163 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
31164 new range fails, drop to varying.
31166 2014-05-28 Olivier Hainque <hainque@adacore.com>
31168 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
31169 (CPP_SPEC): Add entry for -mcpu=8548.
31170 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
31171 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
31173 2014-05-28 Tom de Vries <tom@codesourcery.com>
31175 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
31176 * lra.c (initialize_lra_reg_info_element): Add init of
31177 actual_call_used_reg_set field.
31178 (lra): Call lra_create_live_ranges before lra_inheritance for
31180 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
31182 * lra-constraints.c (need_for_call_save_p): Use
31183 actual_call_used_reg_set instead of call_used_reg_set for
31185 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
31187 2014-05-28 Radovan Obradovic <robradovic@mips.com>
31188 Tom de Vries <tom@codesourcery.com>
31190 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
31192 (@item -fuse-caller-save): New item.
31194 2014-05-28 Radovan Obradovic <robradovic@mips.com>
31195 Tom de Vries <tom@codesourcery.com>
31197 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
31198 OPT_fuse_caller_save.
31200 2014-05-28 Radovan Obradovic <robradovic@mips.com>
31201 Tom de Vries <tom@codesourcery.com>
31203 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
31204 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
31205 get_call_reg_set_usage.
31206 * resource.c (mark_set_resources, mark_target_live_regs): Use
31207 get_call_reg_set_usage.
31208 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
31210 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
31211 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
31212 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
31213 * ira-build.c (ira_create_allocno): Init
31214 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
31215 (create_cap_allocno, propagate_allocno_info)
31216 (propagate_some_info_from_allocno)
31217 (copy_info_to_removed_store_destinations): Handle
31218 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
31219 * ira-costs.c (ira_tune_allocno_costs): Use
31220 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
31222 2014-05-28 Radovan Obradovic <robradovic@mips.com>
31223 Tom de Vries <tom@codesourcery.com>
31225 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
31226 and function_used_regs_valid fields.
31227 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
31228 find_all_hard_reg_sets.
31229 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
31230 (get_call_reg_set_usage): New function.
31231 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
31232 * regs.h (get_call_reg_set_usage): Declare.
31234 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
31237 * config/dbx.h (License): Add Runtime Library Exception.
31238 * config/newlib-stdint.h (License): Same.
31239 * config/rtems.h (License): Same
31240 * config/initfini-array.h (License): Same
31241 * config/v850/v850.h (License): Same.
31242 * config/v850/v850-opts.h (License): Same
31243 * config/v850/rtems.h (License): Same.
31245 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
31248 * doc/extend.texi (Local Labels): Note that label differences are
31249 not supported for AVR.
31251 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
31252 Olivier Hainque <hainque@adacore.com>
31254 * rtl.h (set_for_reg_notes): Declare.
31255 * emit-rtl.c (set_for_reg_notes): New function.
31256 (set_unique_reg_note): Use it.
31257 * optabs.c (add_equal_note): Likewise
31259 2014-05-27 Andrew Pinski <apinski@cavium.com>
31261 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
31262 Use <w> for the register in assembly template.
31263 (stack_protect_test): Use the mode of operands[0] for the result.
31264 (stack_protect_test_<mode>): Use <w> for the register
31265 in assembly template.
31267 2014-05-27 DJ Delorie <dj@redhat.com>
31269 * config/rx/rx.c (add_vector_labels): New.
31270 (rx_output_function_prologue): Call it.
31271 (rx_handle_func_attribute): Don't require empty arguments.
31272 (rx_handle_vector_attribute): New.
31273 (rx_attribute_table): Add "vector" attribute.
31274 * doc/extend.texi (interrupt, vector): Document new/changed
31275 RX-specific attributes.
31277 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
31279 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
31281 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
31282 predicate to detect a negative quotient.
31284 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
31286 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
31287 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
31288 Add X - Y CMP 0 to X CMP Y transformation.
31289 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
31291 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
31293 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
31296 2014-05-27 Steve Ellcey <sellcey@mips.com>
31298 * config/mips/mips.c: Add include of cgraph.h.
31300 2014-05-27 Richard Biener <rguenther@suse.de>
31302 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
31304 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
31307 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
31308 * config/arm/arm-cores.def (License): Same.
31309 * config/arm/arm-opts.h (License): Same.
31310 * config/arm/aout.h (License): Same.
31311 * config/arm/bpabi.h (License): Same.
31312 * config/arm/elf.h (License): Same.
31313 * config/arm/linux-elf.h (License): Same.
31314 * config/arm/linux-gas.h (License): Same.
31315 * config/arm/netbsd-elf.h (License): Same.
31316 * config/arm/uclinux-eabi.h (License): Same.
31317 * config/arm/uclinux-elf.h (License): Same.
31318 * config/arm/vxworks.h (License): Same.
31320 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31322 * config/arm/neon.md (neon_bswap<mode>): New pattern.
31323 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
31324 (arm_init_neon_builtins): Handle NEON_BSWAP.
31325 Define required type nodes.
31326 (arm_expand_neon_builtin): Handle NEON_BSWAP.
31327 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
31328 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
31329 * config/arm/iterators.md (VDQHSD): New mode iterator.
31331 2014-05-27 Richard Biener <rguenther@suse.de>
31333 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
31334 Try using literal operands when comparing value-ranges failed.
31336 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
31338 * ira.c (commutative_operand): Adjust for change to recog_data.
31339 [Missing from previous commit.]
31341 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
31343 * system.h (TEST_BIT): New macro.
31344 * recog.h (alternative_mask): New type.
31345 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
31346 (recog_data_d): Replace alternative_enabled_p array with
31347 enabled_alternatives.
31348 (target_recog): New structure.
31349 (default_target_recog, this_target_recog): Declare.
31350 (get_enabled_alternatives, recog_init): Likewise.
31351 * recog.c (default_target_recog, this_target_recog): New variables.
31352 (get_enabled_alternatives): New function.
31353 (extract_insn): Use it.
31354 (recog_init): New function.
31355 (preprocess_constraints, constrain_operands): Adjust for change to
31357 * postreload.c (reload_cse_simplify_operands): Likewise.
31358 * reload.c (find_reloads): Likewise.
31359 * ira-costs.c (record_reg_classes): Likewise.
31360 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
31361 all alternatives after a disabled one would be skipped.
31362 (ira_implicitly_set_insn_hard_regs): Likewise.
31363 * ira.c (ira_setup_alts): Adjust for change to recog_data.
31364 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
31365 with enabled_alternatives.
31366 * lra.c (free_insn_recog_data): Update accordingly.
31367 (lra_update_insn_recog_data): Likewise.
31368 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
31369 * lra-constraints.c (process_alt_operands): Likewise. Handle
31370 only_alternative as part of the enabled mask.
31371 * target-globals.h (this_target_recog): Declare.
31372 (target_globals): Add a recog field.
31373 (restore_target_globals): Restore this_target_recog.
31374 * target-globals.c: Include recog.h.
31375 (default_target_globals): Initialize recog field.
31376 (save_target_globals): Likewise.
31377 * reginfo.c (reinit_regs): Call recog_init.
31378 * toplev.c (backend_init_target): Likewise.
31380 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
31382 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
31383 rather than any named insn's code.
31385 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
31388 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
31389 * config/arm/arm-cores.def (License): Same.
31391 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
31393 * tree.h (decl_comdat_group): Declare.
31394 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
31395 * tree.c (decl_comdat_group): Here.
31397 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
31399 PR rtl-optimization/61222
31400 * combine.c (simplify_shift_const_1): When moving a PLUS outside
31401 the shift, truncate the PLUS operand to the result mode.
31403 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
31406 * config/i386/i386.c (ix86_rtx_costs)
31407 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
31410 2014-05-26 Martin Jambor <mjambor@suse.cz>
31412 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
31415 2014-05-26 Richard Biener <rguenther@suse.de>
31417 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
31418 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
31419 Provide specializations.
31420 (wi::int_traits <HOST_WIDE_INT>,
31421 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
31423 2014-05-26 Alan Modra <amodra@gmail.com>
31426 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
31427 params and return a bool. Remove dead code. Update comment.
31428 Assert we have a const_int source. Remove bogus code from
31429 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
31430 handling of constants > 2G and reg_equal note, from..
31431 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
31432 return value. Update comment. If we can, use a new pseudo
31433 for intermediate calculations.
31434 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
31436 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
31437 call to rs6000_emit_set_const in splitter.
31438 (movdi_internal64+2, +3): Likewise.
31440 2014-05-26 Richard Biener <rguenther@suse.de>
31442 * system.h: Define __STDC_FORMAT_MACROS before
31443 including inttypes.h.
31444 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
31445 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
31446 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
31447 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
31448 HOST_WIDEST_INT_C): Remove.
31449 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
31450 if C99 inttypes.h is not available.
31451 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
31452 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
31453 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
31454 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
31455 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
31456 (struct output_info): Likewise.
31457 (print_statistics): Adjust.
31458 (dump_bitmap_statistics): Likewise.
31459 * bt-load.c (migrate_btr_defs): Print with PRId64.
31460 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
31461 (MAX_SAFE_MULTIPLIER): Adjust.
31462 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
31463 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
31464 dump_cgraph_node): Likewise.
31465 * final.c (dump_basic_block_info): Likewise.
31466 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
31467 * gcov.c (format_gcov): Likewise.
31468 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
31470 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
31471 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
31472 (inline_small_functions, dump_overall_stats, dump_inline_stats):
31473 Use PRId64 for dumping.
31474 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
31475 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
31476 (add_allocno_hard_regs): Adjust.
31477 * loop-doloop.c (doloop_modify): Print using PRId64.
31478 * loop-iv.c (inverse): Compute in uint64_t.
31479 (determine_max_iter, iv_number_of_iterations): Likewise.
31480 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
31481 Print using PRId64.
31482 * lto-streamer-out.c (write_symbol): Use uint64_t.
31483 * mcf.c (CAP_INFINITY): Use int64_t maximum.
31484 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
31485 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
31486 * modulo-sched.c (const_iteration_count): Use int64_t.
31487 (sms_schedule): Dump using PRId64.
31488 * predict.c (dump_prediction): Likewise.
31489 * pretty-print.h (pp_widest_integer): Remove.
31490 * profile.c (get_working_sets, is_edge_inconsistent,
31491 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
31492 * tree-pretty-print.c (pp_double_int): Remove case handling
31493 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
31494 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
31496 (pass_optimize_bswap::execute): Remove restriction on hosts.
31497 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
31498 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
31499 * tree.c (widest_int_cst_value): Remove.
31500 * tree.h (widest_int_cst_value): Likewise.
31501 * value-prof.c (dump_histogram_value): Print using PRId64.
31502 * gengtype.c (main): Also inject int64_t.
31503 * ggc-page.c (struct max_alignment): Use int64_t.
31504 * alloc-pool.c (struct allocation_object_def): Likewise.
31505 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
31507 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
31508 * doc/tm.texi: Regenerated.
31509 * gengtype-lex.l (IWORD): Handle [u]int64_t.
31510 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
31511 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
31512 mmix_output_register_setting): Use [u]int64_t in prototypes.
31513 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
31514 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
31515 mmix_output_octa, mmix_output_shifted_value): Adjust.
31516 (mmix_intval): Adjust. Remove unreachable case.
31517 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
31519 2014-05-26 Richard Biener <rguenther@suse.de>
31521 * configure.ac: Drop __int64 type check. Insist that we
31522 found uint64_t and int64_t.
31523 * hwint.h (HOST_BITS_PER___INT64): Remove.
31524 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
31525 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
31526 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
31527 (HOST_WIDEST_FAST_INT): Remove __int64 case.
31528 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
31529 for dst_q_src_df_rms_cdt.
31530 * configure: Regenerate.
31531 * config.in: Likewise.
31533 2014-05-26 Michael Tautschnig <mt@debian.org>
31536 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
31537 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
31539 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
31541 PR rtl-optimization/61278
31542 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
31544 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
31546 PR rtl-optimization/61220
31547 Part of PR rtl-optimization/61225
31548 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
31549 insn; skip split_edge for a block with only one successor.
31551 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
31553 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
31556 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
31558 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
31559 (update_vtable_references): New function.
31560 (function_and_variable_visibility): Rewrite also vtable initializers.
31561 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
31563 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
31565 * ggc.h (ggc_grow): New function.
31566 * ggc-none.c (ggc_grow): New function.
31567 * ggc-page.c (ggc_grow): Likewise.
31569 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
31571 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
31572 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
31573 comdat_can_be_unshared_p, cgraph_externally_visible_p,
31574 varpool_externally_visible_p, can_replace_by_local_alias,
31575 update_visibility_by_resolution_info, function_and_variable_visibility,
31576 pass_data_ipa_function_and_variable_visibility,
31577 make_pass_ipa_function_and_variable_visibility,
31578 whole_program_function_and_variable_visibility,
31579 pass_data_ipa_whole_program_visibility,
31580 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
31581 * cgraph.h (cgraph_local_node_p): Declare.
31582 * ipa-visibility.c: New file.
31583 * Makefile.in (OBJS): Add ipa-visiblity.o
31585 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
31587 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
31588 that var decl is available.
31590 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
31592 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
31593 symtab_node pointer.
31594 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
31595 (find_decls_types_r): Do not walk COMDAT_GROUP.
31596 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
31597 * varasm.c (make_decl_one_only): Use set_comdat_group;
31598 create node if needed.
31599 * ipa-inline-transform.c (save_inline_function_body): Update
31600 way we decl->symtab mapping.
31601 * symtab.c (symtab_hash, hash_node, eq_node
31602 symtab_insert_node_to_hashtable): Remove.
31603 (symtab_register_node): Update.
31604 (symtab_unregister_node): Update.
31605 (symtab_get_node): Reimplement as inline function.
31606 (symtab_add_to_same_comdat_group): Update.
31607 (symtab_dissolve_same_comdat_group_list): Update.
31608 (dump_symtab_base): Update.
31609 (verify_symtab_base): Update.
31610 (symtab_make_decl_local): Update.
31611 (fixup_same_cpp_alias_visibility): Update.
31612 (symtab_nonoverwritable_alias): Update.
31613 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
31614 * ipa.c (update_visibility_by_resolution_info): UPdate.
31615 * bb-reorder.c: Include cgraph.h
31616 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
31617 with comdat groups.
31618 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
31619 * cgraph.c (cgraph_get_create_node): Update.
31620 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
31622 (symtab_get_node): Make inline.
31623 (symtab_insert_node_to_hashtable): Remove.
31624 (symtab_can_be_discarded): Update.
31625 (decl_comdat_group): New function.
31626 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
31628 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
31630 (read_comdat_group): New function.
31631 (input_node, input_varpool_node): Use it.
31632 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
31634 * mips.c (mips_start_unique_function): Likewise.
31635 (ix86_code_end): Likewise.
31636 (rs6000_code_end): Likweise.
31637 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
31639 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
31641 * gengtype-state.c (fatal_reading_state): Bring offline.
31642 * optabs.c (widening_optab_handler): Bring offline.
31643 * optabs.h (widening_optab_handler): Likewise.
31644 * final.c (get_attr_length_1): Likewise.
31646 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
31648 * sched-int.h (sd_iterator_cond): Manually tail recurse.
31650 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
31652 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
31653 (ppc440-compare): Include shift with dot.
31654 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
31655 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
31657 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
31659 (e6500_sfx2): Include it.
31660 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
31661 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
31662 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
31663 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
31664 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
31665 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
31666 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
31667 *lshiftrt_internal1le, *lshiftrt_internal1be,
31668 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
31669 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
31670 *rotldi3_internal10le, *rotldi3_internal10be,
31671 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
31672 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
31673 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
31674 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
31675 define_insns): Use type "shift" in the appropriate alternatives.
31677 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
31679 * config/rs6000/rs6000.md (type): Add "logical". Delete
31681 (dot): Adjust comment.
31682 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
31683 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
31684 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
31685 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
31686 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
31687 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
31688 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
31689 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
31691 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
31692 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
31693 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
31694 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
31695 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
31696 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
31697 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
31698 * config/rs6000/8540.md (ppc8540_su): Adjust.
31699 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
31700 cell-cmp-microcoded): Adjust.
31701 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
31702 * config/rs6000/e500mc.md (e500mc_su): Adjust.
31703 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
31704 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
31705 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
31706 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
31707 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
31708 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
31709 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
31711 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
31712 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
31713 Adjust. Adjust comment.
31714 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
31715 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
31717 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
31719 * config/rs6000/rs6000.md (type): Add "add".
31720 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
31721 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
31722 define_insns): Use it.
31723 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
31725 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
31726 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
31727 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
31728 * config/rs6000/601.md (ppc601-integer): Adjust.
31729 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
31730 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
31731 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
31732 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
31733 * config/rs6000/8540.md (ppc8540_su): Adjust.
31734 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
31735 cell-cmp-microcoded): Adjust.
31736 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
31737 * config/rs6000/e500mc.md (e500mc_su): Adjust.
31738 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
31739 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
31740 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
31741 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
31742 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
31743 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
31744 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
31746 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
31747 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
31748 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
31749 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
31751 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
31753 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
31754 "delayed_compare", "var_delayed_compare".
31755 (var_shift): New attribute.
31756 (cell_micro): Adjust.
31757 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
31758 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
31759 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
31760 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
31761 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
31762 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
31763 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
31764 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
31765 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
31766 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
31767 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
31768 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
31769 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
31770 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
31771 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
31772 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
31773 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
31774 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
31775 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
31776 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
31777 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
31778 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
31779 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
31780 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
31781 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
31783 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
31784 * config/rs6000/440.md (ppc440-integer): Adjust.
31785 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
31786 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
31787 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
31788 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
31789 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
31790 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
31791 * config/rs6000/8540.md (ppc8540_su): Adjust.
31792 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
31793 cell-cmp-microcoded): Adjust.
31794 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
31795 * config/rs6000/e500mc.md (e500mc_su): Adjust.
31796 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
31797 e500mc64_delayed): Adjust.
31798 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
31799 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
31800 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
31801 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
31802 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
31803 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
31804 power6-delayed-compare, power6-var-delayed-compare): Adjust.
31805 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
31806 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
31808 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
31809 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
31811 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
31813 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
31814 (bits): New mode_attr.
31815 (idiv_ldiv): Delete mode_attr.
31816 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
31817 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
31818 rs6000_adjust_priority, is_nonpipeline_insn,
31819 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
31821 * config/rs6000/40x.md (ppc403-idiv): Adjust.
31822 * config/rs6000/440.md (ppc440-idiv): Adjust.
31823 * config/rs6000/476.md (ppc476-idiv): Adjust.
31824 * config/rs6000/601.md (ppc601-idiv): Adjust.
31825 * config/rs6000/603.md (ppc603-idiv): Adjust.
31826 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
31827 ppc620-ldiv): Adjust.
31828 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
31829 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
31830 * config/rs6000/8540.md (ppc8540_divide): Adjust.
31831 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
31832 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
31833 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
31834 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
31835 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
31836 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
31837 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
31838 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
31839 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
31840 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
31841 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
31842 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
31843 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
31844 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
31845 * config/rs6000/titan.md (titan_fxu_div): Adjust.
31847 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
31849 * config/rs6000/rs6000.md (type): Delete "insert_word",
31850 "insert_dword". Add "insert".
31851 (size): Update comment.
31852 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
31853 insn_must_be_first_in_group): Adjust.
31854 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
31855 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
31856 *insvsi_internal6, insvdi_internal): Adjust.
31858 * config/rs6000/40x.md (ppc403-integer): Adjust.
31859 * config/rs6000/440.md (ppc440-integer): Adjust.
31860 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
31861 * config/rs6000/601.md (ppc601-integer): Adjust.
31862 * config/rs6000/603.md (ppc603-integer): Adjust.
31863 * config/rs6000/6xx.md (ppc604-integer): Adjust.
31864 * config/rs6000/7450.md (ppc7450-integer): Adjust.
31865 * config/rs6000/7xx.md (ppc750-integer): Adjust.
31866 * config/rs6000/8540.md (ppc8540_su): Adjust.
31867 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
31868 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
31869 * config/rs6000/e500mc.md (e500mc_su): Adjust.
31870 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
31871 * config/rs6000/e5500.md (e5500_sfx): Adjust.
31872 * config/rs6000/e6500.md (e6500_sfx): Adjust.
31873 * config/rs6000/mpc.md (mpccore-integer): Adjust.
31874 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
31875 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
31876 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
31877 * config/rs6000/power7.md (power7-integer): Adjust.
31878 * config/rs6000/power8.md (power8-1cyc): Adjust.
31879 * config/rs6000/rs64.md (rs64a-integer): Adjust.
31880 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
31882 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
31884 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
31885 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
31886 (size): New attribute.
31887 (dot): New attribute.
31888 (cell_micro): Adjust.
31889 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
31890 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
31891 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
31892 umuldi3_highpart): Adjust.
31893 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
31894 rs6000_adjust_priority, is_nonpipeline_insn,
31895 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
31897 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
31898 ppc405-imul3): Adjust.
31899 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
31900 * config/rs6000/476.md (ppc476-imul): Adjust.
31901 * config/rs6000/601.md (ppc601-imul): Adjust.
31902 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
31903 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
31904 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
31905 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
31906 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
31908 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
31909 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
31910 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
31911 cell-imul): Adjust.
31912 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
31913 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
31914 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
31915 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
31916 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
31917 * config/rs6000/mpc.md (mpccore-imul): Adjust.
31918 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
31919 power4-lmul, power4-imul, power4-imul3): Adjust.
31920 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
31921 power5-lmul, power5-imul, power5-imul3): Adjust.
31922 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
31923 power6-lmul, power6-imul, power6-imul3): Adjust.
31924 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
31925 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
31927 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
31928 rs64a-lmul): Adjust.
31929 * config/rs6000/titan.md (titan_imul): Adjust.
31931 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
31933 * config/rs6000/rs6000.md (type): Add new value "halfmul".
31934 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
31935 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
31936 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
31937 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
31938 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
31939 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
31940 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
31941 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
31942 * config/rs6000/titan.md: Delete nonsensical comment.
31943 (titan_imul): Add type imul3.
31944 (titan_mulhw): Remove type imul3; add type halfmul.
31946 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
31948 * config/rs6000/rs6000.md (type): Reorder, reformat.
31950 2014-05-23 Martin Jambor <mjambor@suse.cz>
31952 PR tree-optimization/53787
31953 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
31954 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
31955 analysis_done, update all uses.
31956 * ipa-prop.c: Include domwalk.h
31957 (param_analysis_info): Removed.
31958 (param_aa_status): New type.
31959 (ipa_bb_info): Likewise.
31960 (func_body_info): Likewise.
31961 (ipa_get_bb_info): New function.
31962 (aa_overwalked): Likewise.
31963 (find_dominating_aa_status): Likewise.
31964 (parm_bb_aa_status_for_bb): Likewise.
31965 (parm_preserved_before_stmt_p): Changed to use new param AA info.
31966 (load_from_unmodified_param): Accept func_body_info as a parameter
31967 instead of parms_ainfo.
31968 (parm_ref_data_preserved_p): Changed to use new param AA info.
31969 (parm_ref_data_pass_through_p): Likewise.
31970 (ipa_load_from_parm_agg_1): Likewise. Update callers.
31971 (compute_complex_assign_jump_func): Changed to use new param AA info.
31972 (compute_complex_ancestor_jump_func): Likewise.
31973 (ipa_compute_jump_functions_for_edge): Likewise.
31974 (ipa_compute_jump_functions): Removed.
31975 (ipa_compute_jump_functions_for_bb): New function.
31976 (ipa_analyze_indirect_call_uses): Likewise, moved variable
31978 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
31979 and info, moved variable declarations down.
31980 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
31982 (ipa_analyze_stmt_uses): Likewise.
31983 (ipa_analyze_params_uses): Removed.
31984 (ipa_analyze_params_uses_in_bb): New function.
31985 (ipa_analyze_controlled_uses): Likewise.
31986 (free_ipa_bb_info): Likewise.
31987 (analysis_dom_walker): New class.
31988 (ipa_analyze_node): Handle node-specific forbidden analysis,
31989 initialize and free func_body_info, use dominator walker.
31990 (ipcp_modif_dom_walker): New class.
31991 (ipcp_transform_function): Create and free func_body_info, use
31992 ipcp_modif_dom_walker, moved a lot of functionality there.
31994 2014-05-23 Marek Polacek <polacek@redhat.com>
31995 Jakub Jelinek <jakub@redhat.com>
31997 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
31998 * gcc.c (sanitize_spec_function): Likewise.
31999 * convert.c (convert_to_integer): Include "ubsan.h". Add
32000 floating-point to integer instrumentation.
32001 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
32002 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
32003 SANITIZE_NONDEFAULT.
32004 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
32005 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
32006 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
32007 * ubsan.c: Include "realmpfr.h" and "dfp.h".
32008 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
32009 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
32010 float/double/long double.
32011 (ubsan_instrument_float_cast): New function.
32012 * ubsan.h (ubsan_instrument_float_cast): Declare.
32014 2014-05-23 Jiong Wang <jiong.wang@arm.com>
32016 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
32018 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
32019 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
32020 Adjust for tailcalling through registers.
32021 * config/aarch64/aarch64.h (enum reg_class): New caller save
32023 (REG_CLASS_NAMES): Likewise.
32024 (REG_CLASS_CONTENTS): Likewise.
32025 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
32026 Allow tailcalling without decls.
32028 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
32030 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
32031 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
32033 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
32034 gsi, and variables v_* to v*.
32036 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
32038 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
32040 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
32042 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
32043 * omp-low.c: Update accordingly.
32045 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
32046 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
32047 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
32048 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
32049 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
32050 GF_OMP_TARGET_KIND_UPDATE.
32052 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
32053 Explicitly enumerate the expected region types.
32055 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
32058 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
32059 documentation; the old documentation didn't clearly state the
32060 constraints on the contents of the pointed-to storage.
32062 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32064 Fix bootstrap error on ia64
32065 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
32066 Return default value.
32068 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
32070 PR tree-optimization/54733
32071 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
32073 (find_bswap_or_nop_load): New.
32074 (find_bswap_1): Renamed to ...
32075 (find_bswap_or_nop_1): This. Also add support for memory source.
32076 (find_bswap): Renamed to ...
32077 (find_bswap_or_nop): This. Also add support for memory source and
32078 detection of bitwise operations equivalent to load in target
32080 (execute_optimize_bswap): Likewise. Also move its leading comment back
32081 in place and split statement transformation into ...
32082 (bswap_replace): This.
32084 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
32086 PR rtl-optimization/61215
32087 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
32088 simplify_gen_subreg until final substitution.
32090 2014-05-23 Alan Modra <amodra@gmail.com>
32093 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
32094 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
32095 Use "Y" constraint rather than "m".
32097 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
32099 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
32101 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
32102 New function declaration.
32103 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
32104 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
32105 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
32106 (aarch64_init_builtins) : Initialize builtins
32107 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
32108 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
32109 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
32110 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
32111 and __builtins_aarch64_set_fpsr.
32112 (aarch64_atomic_assign_expand_fenv): New function.
32113 * config/aarch64/aarch64.md (set_fpcr): New pattern.
32114 (get_fpcr) : Likewise.
32115 (set_fpsr) : Likewise.
32116 (get_fpsr) : Likewise.
32117 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
32118 and UNSPECV_SET_FPSR.
32119 * doc/extend.texi (AARCH64 Built-in Functions) : Document
32120 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
32121 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
32123 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
32125 PR rtl-optimization/60969
32126 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
32127 constraints. Set up mem cost for NO_REGS case.
32129 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
32131 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
32133 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
32135 * config/darwin.c: Include "lto-section-names.h".
32136 (LTO_SEGMENT_NAME): Don't define.
32137 * config/i386/winnt.c: Include "lto-section-names.h".
32138 * lto-streamer.c: Include "lto-section-names.h".
32139 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
32140 * lto-wrapper.c: Include "lto-section-names.h".
32141 (LTO_SECTION_NAME_PREFIX): Don't define.
32142 * lto-section-names.h: New file.
32143 * cgraphunit.c: Include "lto-section-names.h".
32145 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
32147 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
32149 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
32152 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
32154 2014-05-22 Nick Clifton <nickc@redhat.com>
32156 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
32158 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
32160 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
32161 -> (T)A transformation to integer types.
32163 2014-05-22 Teresa Johnson <tejohnson@google.com>
32165 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
32166 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
32167 (gcov_rewrite): Use gcov_nonruntime_assert.
32168 (gcov_open): Ditto.
32169 (gcov_write_words): Ditto.
32170 (gcov_write_length): Ditto.
32171 (gcov_read_words): Use gcov_nonruntime_assert, and remove
32172 gcc_assert from IN_LIBGCOV code.
32173 (gcov_read_summary): Use gcov_error to flag profile corruption.
32174 (gcov_sync): Use gcov_nonruntime_assert.
32175 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
32176 (gcov_histo_index): Use gcov_nonruntime_assert.
32177 (static void gcov_histogram_merge): Ditto.
32178 (compute_working_sets): Ditto.
32179 * gcov-io.h (gcov_nonruntime_assert): Define.
32180 (gcov_error): Define for !IN_LIBGCOV
32182 2014-05-22 Richard Biener <rguenther@suse.de>
32184 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
32185 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
32186 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
32187 and deallocation site.
32188 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32189 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
32190 passing through the incoming points-to set.
32191 (handle_lhs_call): Use flags argument instead of recomputing it.
32192 (find_func_aliases_for_call): Call handle_lhs_call with proper
32195 2014-05-22 Jakub Jelinek <jakub@redhat.com>
32197 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
32198 all padding bits in REAL_VALUE_TYPE are cleared.
32200 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32202 Cleanup and improve multipass_dfa_lookahead_guard
32203 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
32204 (core2i7_first_cycle_multipass_begin,)
32205 (core2i7_first_cycle_multipass_issue,)
32206 (core2i7_first_cycle_multipass_backtrack): Update signature.
32207 * config/ia64/ia64.c
32208 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
32209 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
32210 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
32212 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
32213 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
32215 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
32217 * doc/tm.texi: Regenerate.
32219 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
32220 * haifa-sched.c (ready_try): Make signed to allow negative values.
32221 (rebug_ready_list_1): Update.
32222 (choose_ready): Simplify.
32223 (sched_extend_ready_list): Update.
32225 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32227 Remove IA64 speculation tweaking flags
32228 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
32229 speculation tuning flags.
32230 (msched-prefer-non-data-spec-insns,)
32231 (msched-prefer-non-control-spec-insns): Obsolete options.
32232 * haifa-sched.c (choose_ready): Remove handling of
32233 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
32234 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
32235 and PREFER_NON_DATA_SPEC.
32236 * sel-sched.c (process_spec_exprs): Remove handling of
32237 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
32239 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32241 Improve scheduling debug output
32242 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
32243 (advance_one_cycle): Update.
32244 (schedule_insn, queue_to_ready): Add debug printouts.
32245 (debug_ready_list_1): New static function.
32246 (debug_ready_list): Update.
32247 (max_issue): Add debug printouts.
32248 (dump_insn_stream): New static function.
32249 (schedule_block): Use it. Also better indent printouts.
32251 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32253 Fix sched_insn debug counter
32254 * haifa-sched.c (schedule_insn): Update.
32255 (struct haifa_saved_data): Add nonscheduled_insns_begin.
32256 (save_backtrack_point, restore_backtrack_point): Update.
32257 (first_nonscheduled_insn): New static function.
32258 (queue_to_ready, choose_ready): Use it.
32259 (schedule_block): Init nonscheduled_insns_begin.
32260 (sched_emit_insn): Update.
32263 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
32265 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
32267 (aarch64_secondary_reload) : LikeWise.
32268 (aarch64_class_max_nregs) : Remove CORE_REGS.
32269 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
32270 (REG_CLASS_NAMES) : Likewise.
32271 (REG_CLASS_CONTENTS) : LikeWise.
32272 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
32274 2014-05-21 Guozhi Wei <carrot@google.com>
32277 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
32279 (vqdmulhq_n_s16): Likewise.
32281 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
32283 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
32285 2014-05-21 Marek Polacek <polacek@redhat.com>
32288 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
32290 2014-05-21 Martin Jambor <mjambor@suse.cz>
32292 * doc/invoke.texi (Optimize Options): Document parameters
32293 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
32294 ipa-cp-array-index-hint-bonus.
32296 2014-05-21 Mark Wielaard <mjw@redhat.com>
32299 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
32300 version >= 3 or not strict DWARF.
32301 * langhooks.h (struct lang_hooks_for_types): Add
32302 enum_underlying_base_type.
32303 * langhooks.c (lhd_enum_underlying_base_type): New function.
32304 * gcc/langhooks.h (struct lang_hooks_for_types): Add
32305 enum_underlying_base_type.
32306 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
32307 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
32308 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
32310 2014-05-21 Richard Biener <rguenther@suse.de>
32312 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
32314 2014-05-21 John Marino <gnugcc@marino.st>
32316 * config.gcc (*-*-dragonfly*): New target.
32317 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
32318 * configure: Regenerate.
32319 * config/dragonfly-stdint.h: New.
32320 * config/dragonfly.h: New.
32321 * config/dragonfly.opt: New.
32322 * config/i386/dragonfly.h: New.
32323 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
32325 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32327 * tree.def (VOID_CST): New.
32328 * tree-core.h (TI_VOID): New.
32329 * tree.h (void_node): New.
32330 * tree.c (tree_node_structure_for_code, tree_code_size)
32331 (iterative_hash_expr): Handle VOID_CST.
32332 (build_common_tree_nodes): Initialize void_node.
32334 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
32336 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
32338 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
32340 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
32343 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
32344 flag_reorder_blocks_and_partition.
32345 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
32347 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
32350 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
32352 (*addc_r_t): Add new insn_and_split.
32354 2014-05-21 Jakub Jelinek <jakub@redhat.com>
32356 PR middle-end/61252
32357 * omp-low.c (handle_simd_reference): New function.
32358 (lower_rec_input_clauses): Use it. Defer adding reference
32359 initialization even for reduction without placeholder if in simd,
32360 handle it properly later on.
32362 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
32364 PR tree-optimization/60899
32365 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
32366 assume all static symbols will have definition wile parsing and
32367 check the do have definition later in compilation; check that
32368 variable referring symbol will be output before concluding that
32369 reference is safe; be conservative for referring local statics;
32370 be more precise about when comdat is output in other partition.
32372 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
32375 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
32377 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
32378 (ipa_inline): Loop inline_to_all_callers until no more aliases
32381 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
32383 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
32384 set writeonly flag only for vars actually written to.
32386 2014-05-20 Dehao Chen <dehao@google.com>
32388 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
32389 and callee count to get clone count.
32390 * tree-inline.c (expand_call_inline): Use callee count instead of bb
32391 count in copy_body.
32393 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
32395 PR rtl-optimization/61243
32396 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
32398 2014-05-20 Xinliang David Li <davidxl@google.com>
32400 * cgraphunit.c (walk_polymorphic_call_targets): Add
32401 dbgcnt and fopt-info support.
32402 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
32403 * ipa-devirt.c (ipa_devirt): Ditto.
32404 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
32405 * ipa.c (walk_polymorphic_call_targets): Ditto.
32406 * gimple-fold.c (fold_gimple_assign): Ditto.
32407 (gimple_fold_call): Ditto.
32408 * dbgcnt.def: New counter.
32410 2014-05-20 DJ Delorie <dj@redhat.com>
32412 * config/msp430/msp430.md (split): Don't allow subregs when
32413 splitting SImode adds.
32414 (andneghi): Fix subtraction logic.
32415 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
32417 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
32419 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
32421 * except.c (switch_to_exception_section, resolve_unique_section,
32422 get_named_text_section, default_function_rodata_section,
32423 align_variable, get_block_for_decl, default_section_type_flags):
32424 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
32425 * symtab.c (symtab_add_to_same_comdat_group,
32426 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
32427 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
32429 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
32430 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
32431 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
32432 (c6x_function_in_section_p): Likewise.
32433 * config/darwin.c (machopic_select_section): Likewise.
32434 * config/arm/arm.c (arm_function_in_section_p): Likewise.
32435 * config/mips/mips.c (mips_function_rodata_section): Likewise.
32436 * config/mep/mep.c (mep_select_section): LIkewise.
32437 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
32439 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
32441 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
32442 EH region of calls to pure functions that can throw an exception.
32443 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
32444 (copy_reference_ops_from_call): Also copy the EH region of the call if
32445 it can throw an exception.
32447 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32449 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
32450 nested VEC_SELECTs that are inverses of each other.
32452 2014-05-20 Richard Biener <rguenther@suse.de>
32454 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
32455 (extract_and_process_scc_for_name): not here.
32456 (cond_dom_walker::before_dom_children): Only process
32457 stmts that end the BB in interesting ways.
32458 (run_scc_vn): Mark param uses as visited.
32460 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32462 * config/arm/arm.md (arith_shiftsi): Do not predicate for
32465 2014-05-20 Nick Clifton <nickc@redhat.com>
32467 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
32468 (msp430_gimplify_va_arg_expr): New function.
32469 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
32471 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
32472 operand 0 in order to prevent confusion about the number of
32473 registers involved.
32475 2014-05-20 Richard Biener <rguenther@suse.de>
32477 PR tree-optimization/61221
32478 * tree-ssa-pre.c (el_to_update): Remove.
32479 (eliminate_dom_walker::before_dom_children): Handle released
32480 VDEFs by value-numbering them to the associated VUSE. Update
32481 stmt immediately for substituted call address.
32482 (eliminate): Remove delayed stmt updating code.
32483 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
32484 possibly late re-numbered vuses.
32485 (vn_reference_lookup_2): Adjust.
32486 (vn_reference_lookup_pieces): Likewise.
32487 (vn_reference_lookup): Likewise.
32489 2014-05-20 Richard Biener <rguenther@suse.de>
32491 * config.gcc: Remove need_64bit_hwint.
32492 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
32493 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
32495 * config.in: Regenerate.
32496 * configure: Likewise.
32498 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
32500 * doc/extend.texi: Create Label Attributes section,
32501 move all label attributes into it and reference it.
32503 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
32505 * arm.c (thumb1_reorg): When scanning backwards skip anything
32506 that's not a proper insn.
32508 2014-05-19 Richard Biener <rguenther@suse.de>
32510 PR tree-optimization/61221
32511 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
32512 Do nothing for unreachable blocks.
32513 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
32514 Improve unreachability detection.
32516 2014-05-19 Richard Biener <rguenther@suse.de>
32518 PR tree-optimization/61209
32519 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
32521 2014-05-19 Nick Clifton <nickc@redhat.com>
32523 * except.c (init_eh): Fix computation of builtin setjmp buffer
32524 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
32526 2014-05-19 Richard Biener <rguenther@suse.de>
32528 PR tree-optimization/61184
32529 * tree-vrp.c (is_negative_overflow_infinity): Use
32530 TREE_OVERFLOW_P and do that check first.
32531 (is_positive_overflow_infinity): Likewise.
32532 (is_overflow_infinity): Likewise.
32533 (vrp_operand_equal_p): Properly treat operands with
32534 differing overflow as not equal.
32536 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
32538 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
32539 shift simplification where it was intended.
32541 2014-05-19 Christian Bruel <christian.bruel@st.com>
32544 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
32546 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
32549 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
32552 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
32554 * reg-notes.def (CROSSING_JUMP): Likewise.
32555 * rtl.h (rtx_def): Update comment for jump flag.
32556 (CROSSING_JUMP_P): Define.
32557 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
32558 of a REG_CROSSING_JUMP note.
32559 * cfghooks.c (tidy_fallthru_edges): Likewise.
32560 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
32561 * emit-rtl.c (try_split): Likewise.
32562 * haifa-sched.c (sched_create_recovery_edges): Likewise.
32563 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
32564 * jump.c (redirect_jump_2): Likewise.
32565 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
32566 (relax_delay_slots): Likewise.
32567 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
32568 (bbit_di): Likewise.
32569 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
32570 * config/sh/sh.md (jump_compact): Likewise.
32571 * bb-reorder.c (rotate_loop): Likewise.
32572 (pass_duplicate_computed_gotos::execute): Likewise.
32573 (add_reg_crossing_jump_notes): Rename to...
32574 (update_crossing_jump_flags): ...this.
32575 (pass_partition_blocks::execute): Update accordingly.
32577 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
32579 * tree.h: Remove extraneous template <>.
32581 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
32583 * ipa.c (symtab_remove_unreachable_nodes): Remove
32584 symbol from comdat group if its body was eliminated.
32585 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
32586 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
32587 (symtab_unregister_node): ... this one.
32588 (verify_symtab_base): More strict checking of comdats.
32589 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
32591 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
32593 * tree-pass.h (make_pass_ipa_comdats): New pass.
32594 * timevar.def (TV_IPA_COMDATS): New timevar.
32595 * passes.def (pass_ipa_comdats): Add.
32596 * Makefile.in (OBJS): Add ipa-comdats.o
32597 * ipa-comdats.c: New file.
32599 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
32601 * ipa.c (update_visibility_by_resolution_info): New function.
32602 (function_and_variable_visibility): Use it.
32604 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
32606 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
32608 (FOR_EACH_DEFINED_SYMBOL): New macro.
32609 (varpool_first_static_initializer, varpool_next_static_initializer,
32610 varpool_first_defined_variable, varpool_next_defined_variable):
32612 (symtab_in_same_comdat_p): Correctly deal with inline functions.
32614 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
32616 * ggc-page.c (ggc_handle_finalizers): Add comment.
32618 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
32620 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
32621 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
32622 (ggc_internal_cleared_alloc): Likewise.
32623 * ggc-page.c (finalizer): New class.
32624 (vec_finalizer): Likewise.
32625 (globals::finalizers): New member.
32626 (globals::vec_finalizers): Likewise.
32627 (ggc_internal_alloc): Record the finalizer if any for the block being
32629 (ggc_handle_finalizers): New function.
32630 (ggc_collect): Call ggc_handle_finalizers.
32631 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
32633 (ggc_internal_cleared_alloc): Likewise.
32634 (finalize): New function.
32635 (need_finalization_p): Likewise.
32636 (ggc_alloc): Install the type's destructor as the finalizer if it
32637 might do something.
32638 (ggc_cleared_alloc): Likewise.
32639 (ggc_vec_alloc): Likewise.
32640 (ggc_cleared_vec_alloc): Likewise.
32642 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
32644 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
32646 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
32648 * alias.c (record_alias_subset): Adjust.
32649 * bitmap.c (bitmap_element_allocate): Likewise.
32650 (bitmap_gc_alloc_stat): Likewise.
32651 * cfg.c (init_flow): Likewise.
32652 (alloc_block): Likewise.
32653 (unchecked_make_edge): Likewise.
32654 * cfgloop.c (alloc_loop): Likewise.
32655 (flow_loops_find): Likewise.
32656 (rescan_loop_exit): Likewise.
32657 * cfgrtl.c (init_rtl_bb_info): Likewise.
32658 * cgraph.c (insert_new_cgraph_node_version): Likewise.
32659 (cgraph_allocate_node): Likewise.
32660 (cgraph_create_edge_1): Likewise.
32661 (cgraph_allocate_init_indirect_info): Likewise.
32662 * cgraphclones.c (cgraph_clone_edge): Likewise.
32663 * cgraphunit.c (add_asm_node): Likewise.
32664 (init_lowered_empty_function): Likewise.
32665 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
32666 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
32667 (alpha_use_linkage): Likewise.
32668 * config/arc/arc.c (arc_init_machine_status): Likewise.
32669 * config/arm/arm.c (arm_init_machine_status): Likewise.
32670 * config/avr/avr.c (avr_init_machine_status): Likewise.
32671 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
32672 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
32673 * config/cris/cris.c (cris_init_machine_status): Likewise.
32674 * config/darwin.c (machopic_indirection_name): Likewise.
32675 (darwin_build_constant_cfstring): Likewise.
32676 (darwin_enter_string_into_cfstring_table): Likewise.
32677 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
32678 * config/frv/frv.c (frv_init_machine_status): Likewise.
32679 * config/i386/i386.c (get_dllimport_decl): Likewise.
32680 (ix86_init_machine_status): Likewise.
32681 (assign_386_stack_local): Likewise.
32682 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
32683 (i386_pe_maybe_record_exported_symbol): Likewise.
32684 (i386_pe_record_stub): Likewise.
32685 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
32686 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
32687 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
32688 (m32c_note_pragma_address): Likewise.
32689 * config/mep/mep.c (mep_init_machine_status): Likewise.
32690 (mep_note_pragma_flag): Likewise.
32691 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
32692 (mips16_local_alias): Likewise.
32693 (mips_init_machine_status): Likewise.
32694 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
32695 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
32696 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
32697 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
32698 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
32699 * config/pa/pa.c (pa_init_machine_status): Likewise.
32700 (pa_get_deferred_plabel): Likewise.
32701 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
32702 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
32703 (rs6000_init_machine_status): Likewise.
32704 (output_toc): Likewise.
32705 * config/s390/s390.c (s390_init_machine_status): Likewise.
32706 * config/score/score.c (score_output_external): Likewise.
32707 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
32708 * config/spu/spu.c (spu_init_machine_status): Likewise.
32709 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
32710 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
32711 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
32712 * coverage.c (coverage_end_function): Likewise.
32713 * dbxout.c (dbxout_init): Likewise.
32714 * doc/gty.texi: Don't mention variable_size attribute.
32715 * dwarf2cfi.c (new_cfi): Adjust.
32716 (new_cfi_row): Likewise.
32717 (copy_cfi_row): Likewise.
32718 (create_cie_data): Likewise.
32719 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
32720 (new_loc_descr): Likewise.
32721 (find_AT_string_in_table): Likewise.
32722 (add_addr_table_entry): Likewise.
32723 (new_die): Likewise.
32724 (add_var_loc_to_decl): Likewise.
32725 (clone_die): Likewise.
32726 (clone_as_declaration): Likewise.
32727 (break_out_comdat_types): Likewise.
32728 (new_loc_list): Likewise.
32729 (add_loc_descr_to_each): Likewise.
32730 (add_location_or_const_value_attribute): Likewise.
32731 (add_linkage_name): Likewise.
32732 (lookup_filename): Likewise.
32733 (dwarf2out_var_location): Likewise.
32734 (new_line_info_table): Likewise.
32735 (dwarf2out_init): Likewise.
32736 (mem_loc_descriptor): Likewise.
32737 (loc_descriptor): Likewise.
32738 (add_const_value_attribute): Likewise.
32739 (tree_add_const_value_attribute): Likewise.
32740 (comp_dir_string): Likewise.
32741 (dwarf2out_vms_debug_main_pointer): Likewise.
32742 (string_cst_pool_decl): Likewise.
32743 * emit-rtl.c (set_mem_attrs): Likewise.
32744 (get_reg_attrs): Likewise.
32745 (start_sequence): Likewise.
32746 (init_emit): Likewise.
32747 (init_emit_regs): Likewise.
32748 * except.c (init_eh_for_function): Likewise.
32749 (gen_eh_region): Likewise.
32750 (gen_eh_region_catch): Likewise.
32751 (gen_eh_landing_pad): Likewise.
32752 (add_call_site): Likewise.
32753 * function.c (add_frame_space): Likewise.
32754 (insert_temp_slot_address): Likewise.
32755 (assign_stack_temp_for_type): Likewise.
32756 (get_hard_reg_initial_val): Likewise.
32757 (allocate_struct_function): Likewise.
32758 (prepare_function_start): Likewise.
32759 (types_used_by_var_decl_insert): Likewise.
32760 * gengtype.c (variable_size_p): Remove function.
32761 (enum alloc_quantity): Remove enum.
32762 (write_typed_alloc_def): Remove function.
32763 (write_typed_struct_alloc_def): Likewise.
32764 (write_typed_typedef_alloc_def): Likewise.
32765 (write_typed_alloc_defns): Likewise.
32767 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
32768 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
32769 * ggc.h (ggc_alloc): new function.
32770 (ggc_cleared_alloc): Likewise.
32771 (ggc_vec_alloc): Template on type of vector element, and remove
32772 element size argument.
32773 (ggc_cleared_vec_alloc): Likewise.
32774 * gimple.c (gimple_build_omp_for): Adjust.
32775 (gimple_copy): Likewise.
32776 * ipa-cp.c (get_replacement_map): Likewise.
32777 (find_aggregate_values_for_callers_subset): Likewise.
32778 (known_aggs_to_agg_replacement_list): Likewise.
32779 * ipa-devirt.c (get_odr_type): Likewise.
32780 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
32781 (read_agg_replacement_chain): Likewise.
32782 * loop-iv.c (get_simple_loop_desc): Likewise.
32783 * lto-cgraph.c (input_node_opt_summary): Likewise.
32784 * lto-section-in.c (lto_new_in_decl_state): Likewise.
32785 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
32786 (input_eh_region): Likewise.
32787 (input_eh_lp): Likewise.
32788 (input_cfg): Likewise.
32789 * optabs.c (set_optab_libfunc): Likewise.
32790 (init_tree_optimization_optabs): Likewise.
32791 (set_conv_libfunc): Likewise.
32792 * passes.c (do_per_function_toporder): Likewise.
32793 * rtl.h: Don't use variable_size gty attribute.
32794 * sese.c (if_region_set_false_region): Adjust.
32795 * stringpool.c (gt_pch_save_stringpool): Likewise.
32796 * target-globals.c (save_target_globals): Likewise.
32797 * toplev.c (general_init): Likewise.
32798 * trans-mem.c (record_tm_replacement): Likewise.
32799 (split_bb_make_tm_edge): Likewise.
32800 * tree-cfg.c (move_sese_region_to_fn): Likewise.
32801 * tree-data-ref.h (lambda_vector_new): Likewise.
32802 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
32803 * tree-iterator.c (tsi_link_before): Likewise.
32804 (tsi_link_after): Likewise.
32805 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
32806 * tree-ssa-loop-niter.c (record_estimate): Likewise.
32807 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
32808 * tree-ssa-operands.h: Don't use variable_size gty attribute.
32809 * tree-ssa.c (init_tree_ssa): Adjust.
32810 * tree-ssanames.c (set_range_info): Likewise.
32811 (get_ptr_info): Likewise.
32812 (duplicate_ssa_name_ptr_info): Likewise.
32813 (duplicate_ssa_name_range_info): Likewise.
32814 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
32815 (unpack_ts_fixed_cst_value_fields): Likewise.
32816 * tree.c (build_fixed): Likewise.
32817 (build_real): Likewise.
32818 (build_string): Likewise.
32819 (decl_priority_info): Likewise.
32820 (decl_debug_expr_insert): Likewise.
32821 (decl_value_expr_insert): Likewise.
32822 (decl_debug_args_insert): Likewise.
32823 (type_hash_add): Likewise.
32824 (build_omp_clause): Likewise.
32825 * ubsan.c (decl_for_type_insert): Likewise.
32826 * varasm.c (get_unnamed_section): Likewise.
32827 (get_noswitch_section): Likewise.
32828 (get_section): Likewise.
32829 (get_block_for_section): Likewise.
32830 (create_block_symbol): Likewise.
32831 (build_constant_desc): Likewise.
32832 (create_constant_pool): Likewise.
32833 (force_const_mem): Likewise.
32834 (record_tm_clone_pair): Likewise.
32835 * varpool.c (varpool_create_empty_node): Likewise.
32837 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
32839 * dwarf2out.c (tree_add_const_value_attribute): Call
32840 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
32841 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
32842 instead of ggc_internal_<x>alloc_stat.
32843 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
32844 (ggc_realloc): Likewise.
32845 * ggc-none.c (ggc_internal_alloc): Likewise.
32846 (ggc_internal_cleared_alloc): Likewise.
32847 * ggc-page.c: Likewise.
32848 * ggc.h (ggc_internal_alloc_stat): Likewise.
32849 (ggc_internal_alloc): Remove macro.
32850 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
32851 (ggc_internal_cleared_alloc): Remove macro.
32852 (GGC_RESIZEVEC): Adjust.
32853 (ggc_resizevar): Remove macro.
32854 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
32855 (ggc_internal_cleared_vec_alloc_stat): Likewise.
32856 (ggc_internal_vec_cleared_alloc): Remove macro.
32857 (ggc_alloc_atomic_stat): Drop _stat suffix.
32858 (ggc_alloc_atomic): Remove macro.
32859 (ggc_alloc_cleared_atomic): Remove macro.
32860 (ggc_alloc_string_stat): Drop _stat suffix.
32861 (ggc_alloc_string): Remove macro.
32862 (ggc_alloc_rtx_def_stat): Adjust.
32863 (ggc_alloc_tree_node_stat): Likewise.
32864 (ggc_alloc_cleared_tree_node_stat): Likewise.
32865 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
32866 (ggc_alloc_cleared_simd_clone_stat): Likewise.
32867 * gimple.c (gimple_build_omp_for): Likewise.
32868 (gimple_copy): Likewise.
32869 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
32870 * toplev.c (realloc_for_line_map): Adjust.
32871 * tree-data-ref.h (lambda_vector_new): Likewise.
32872 * tree-phinodes.c (allocate_phi_node): Likewise.
32873 * tree.c (grow_tree_vec_stat): Likewise.
32874 * vec.h (va_gc::reserve): Adjust.
32876 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
32878 * config/microblaze/microblaze.c (break_handler): New Declaration.
32879 (microblaze_break_function_p,microblaze_is_break_handler): New.
32880 (compute_frame_size): Use microblaze_break_function_p.
32881 Add the test of break_handler.
32882 (microblaze_function_prologue) : Add the test of variable
32883 break_handler. Check the fnname by BREAK_HANDLER_NAME.
32884 (microblaze_function_epilogue) : Add the test of break_handler.
32885 (microblaze_globalize_label) : Add the test of break_handler.
32886 Check the name by BREAK_HANDLER_NAME.
32888 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
32890 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
32891 microblaze_is_break_handler test.
32892 (call_internal1,call_value_intern): Use microblaze_break_function_p.
32893 Use SYMBOL_REF_DECL.
32895 * config/microblaze/microblaze-protos.h
32896 (microblaze_break_function_p,microblaze_is_break_handler):
32899 * doc/extend.texi (MicroBlaze break_handler Functions): Document
32900 new MicroBlaze break_handler functions.
32902 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
32904 * doc/extend.texi (Size of an asm): Move node text according
32905 to its @menu entry position.
32907 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
32909 PR tree-optimization/61140
32910 PR tree-optimization/61150
32911 PR tree-optimization/61197
32912 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
32914 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
32916 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
32918 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
32920 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
32921 __SIZEOF_INT128__ is defined.
32923 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
32925 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
32926 (rs6000_delegitimize_address): Use it.
32928 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
32930 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
32931 inplace argument. Store the new address in the original MEM when true.
32932 * emit-rtl.c (change_address_1): Likewise.
32933 (adjust_address_1, adjust_automodify_address_1, offset_address):
32934 Update accordingly.
32935 * rtl.h (plus_constant): Add an inplace argument.
32936 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
32937 when true. Avoid generating (plus X (const_int 0)).
32938 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
32939 in-place. Pass true to plus_constant.
32940 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
32942 2014-05-16 Dehao Chen <dehao@google.com>
32944 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
32946 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
32949 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
32951 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
32953 2014-05-16 Dehao Chen <dehao@google.com>
32955 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
32956 optimize_function_for_size_p.
32957 * regs.h (REG_FREQ_FROM_BB): Likewise.
32959 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
32962 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
32963 negt_reg_operand cases.
32964 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
32966 * config/sh/predicates.md (cbranch_treg_value): Simplify.
32968 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
32970 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
32973 2014-05-16 David Malcolm <dmalcolm@redhat.com>
32976 2014-04-29 David Malcolm <dmalcolm@redhat.com>
32978 * tree-cfg.c (dump_function_to_file): Dump the return type of
32979 functions, in a line to itself before the function body, mimicking
32980 the layout of a C function.
32982 2014-05-16 Dehao Chen <dehao@google.com>
32984 * cfghooks.c (make_forwarder_block): Use direct computation to
32985 get fall-through edge's count and frequency.
32987 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
32989 * config/arc/arc.c (arc_init): Fix typo in error message.
32990 * config/i386/i386.c (ix86_expand_builtin): Likewise.
32991 (split_stack_prologue_scratch_regno): Likewise.
32992 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
32993 word from error message.
32995 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
32997 * ira-costs.c: Fix typo in comment.
32999 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
33001 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
33003 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
33005 * varpool.c (dump_varpool_node): Dump write-only flag.
33006 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
33008 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
33009 write-only variables.
33010 * ipa.c (process_references): New function.
33011 (set_readonly_bit): New function.
33012 (set_writeonly_bit): New function.
33013 (clear_addressable_bit): New function.
33014 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
33015 fix handling of aliases.
33016 * cgraph.h (struct varpool_node): Add writeonly flag.
33018 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
33020 PR rtl-optimization/60969
33021 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
33022 Calculate costs for this case.
33024 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
33026 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
33027 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
33029 2014-05-16 Richard Biener <rguenther@suse.de>
33031 PR tree-optimization/61194
33032 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
33033 bool patterns ending in a COND_EXPR.
33035 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
33037 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
33039 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
33041 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
33042 where we were unable to cost an RTX.
33044 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
33046 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
33049 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
33050 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
33052 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
33054 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
33055 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
33057 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
33058 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
33060 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
33061 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
33063 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
33066 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
33067 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
33069 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
33072 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
33073 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
33075 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
33076 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
33078 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
33079 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
33081 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
33082 rotates and shifts.
33084 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
33085 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
33087 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
33088 ZERO_EXTEND and SIGN_EXTEND better.
33090 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
33091 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
33093 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
33094 logical operations.
33096 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
33097 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
33099 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
33100 costs when costing loads and stores to memory.
33102 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
33103 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
33105 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
33108 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
33110 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
33112 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
33113 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
33115 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
33117 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
33119 (aarch64_rtx_mult_cost): New.
33120 (aarch64_rtx_costs): Use it, refactor as appropriate.
33122 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
33123 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
33125 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
33126 emit instructions, return number of instructions which would
33128 (aarch64_add_constant): Update call to aarch64_build_constant.
33129 (aarch64_output_mi_thunk): Likewise.
33130 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
33133 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
33135 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
33136 (TARGET_RTX_COSTS): Call it.
33138 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
33140 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
33141 (cortexa57_vector_cost): Likewise.
33142 (cortexa57_tunings): Use them.
33144 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
33146 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
33147 (cpu_addrcost_table): Use it.
33148 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
33149 (aarch64_address_cost): Rewrite using aarch64_classify_address,
33152 2014-05-16 Richard Biener <rguenther@suse.de>
33154 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
33155 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
33156 (visit_phi): Ignore edges marked as not executable.
33157 (class cond_dom_walker): New.
33158 (cond_dom_walker::before_dom_children): Value-number
33159 control statements and mark successor edges as not
33160 executable if possible.
33161 (run_scc_vn): First walk all control statements in
33162 dominator order, marking edges as not executable.
33163 * tree-inline.c (copy_edges_for_bb): Be not confused
33164 about random edge flags.
33166 2014-05-16 Richard Biener <rguenther@suse.de>
33168 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
33170 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
33173 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
33174 (__TM_simple_begin): Use it.
33175 (__TM_begin): Likewise.
33177 2014-05-15 Martin Jambor <mjambor@suse.cz>
33180 * ipa-prop.c (update_indirect_edges_after_inlining): Check
33181 type_preserved flag when the indirect edge is polymorphic.
33183 2014-05-15 Martin Jambor <mjambor@suse.cz>
33185 PR tree-optimization/61090
33186 * tree-sra.c (sra_modify_expr): Pass the current gsi to
33187 build_ref_for_model.
33189 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33191 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
33192 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
33194 2014-05-15 Jakub Jelinek <jakub@redhat.com>
33196 PR tree-optimization/61158
33197 * fold-const.c (fold_binary_loc): If X is zero-extended and
33198 shiftc >= prec, make sure zerobits is all ones instead of
33199 invoking undefined behavior.
33201 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33203 * regcprop.h: New file.
33204 * regcprop.c (skip_debug_insn_p): New decl.
33205 (replace_oldest_value_reg): Check skip_debug_insn_p.
33206 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
33207 * shrink-wrap.c: Include regcprop.h.
33208 (prepare_shrink_wrap): Call
33209 copyprop_hardreg_forward_bb_without_debug_insn.
33211 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33213 * shrink-wrap.h: Update comment.
33214 * shrink-wrap.c: Update comment.
33215 (next_block_for_reg): Rename to live_edge_for_reg.
33216 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
33217 (move_insn_for_shrink_wrap): Split live_edge.
33218 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
33220 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
33222 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
33224 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
33225 * config/sparc/sparc.md (fptype_ut699): New attribute.
33226 (in_branch_delay): Return false if -mfix-ut699 is specified and
33227 fptype_ut699 is set to single.
33228 (truncdfsf2): Add fptype_ut699 attribute.
33229 (fix_truncdfsi2): Likewise.
33230 (floatsisf2): Change fptype attribute.
33231 (fix_truncsfsi2): Likewise.
33232 (negtf2_notv9): Delete.
33233 (negtf2_v9): Likewise.
33234 (negtf2_hq): New instruction.
33235 (negtf2): New instruction and splitter.
33236 (negdf2_notv9): Rewrite.
33237 (abstf2_notv9): Delete.
33238 (abstf2_hq_v9): Likewise.
33239 (abstf2_v9): Likewise.
33240 (abstf2_hq): New instruction.
33241 (abstf2): New instruction and splitter.
33242 (absdf2_notv9): Rewrite.
33244 2014-05-14 Cary Coutant <ccoutant@google.com>
33247 * opts.c (common_handle_option): Don't special-case "-g".
33248 (set_debug_level): Default to at least level 2 with "-g".
33250 2014-05-14 DJ Delorie <dj@redhat.com>
33252 * config/msp430/msp430.c (msp430_builtin): Add
33253 MSP430_BUILTIN_DELAY_CYCLES.
33254 (msp430_init_builtins): Register void __delay_cycles(long long).
33255 (msp430_builtin_decl): Add it.
33256 (cg_magic_constant): New.
33257 (msp430_expand_delay_cycles): New.
33258 (msp430_expand_builtin): Call it.
33259 (msp430_print_operand_raw): Change integer printing from "int" to
33261 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
33262 (delay_cycles_start): New.
33263 (delay_cycles_end): New.
33264 (delay_cycles_32): New.
33265 (delay_cycles_32x): New.
33266 (delay_cycles_16): New.
33267 (delay_cycles_16x): New.
33268 (delay_cycles_2): New.
33269 (delay_cycles_1): New.
33270 * doc/extend.texi: Document __delay_cycles().
33272 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
33274 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
33275 length attribute computation.
33277 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
33280 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
33282 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
33285 * config/sparc/sparc.md: Fix types of low and high in DI constant
33286 splitter. Use gen_int_mode in some other splitters.
33288 2014-05-14 Martin Jambor <mjambor@suse.cz>
33291 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
33293 2014-05-14 James Norris <jnorris@codesourcery.com>
33295 * omp-low.c (expand_parallel_call): Remove shadow variable.
33296 (expand_omp_taskreg): Likewise.
33298 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
33300 * common/config/i386/i386-common.c
33301 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
33302 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
33303 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
33304 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
33305 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
33306 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
33307 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
33308 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
33309 xsavecintrin.h, xsavesintrin.h.
33310 (x86_64-*-*): Ditto.
33311 * config/i386/clflushoptintrin.h: New.
33312 * config/i386/xsavecintrin.h: Ditto.
33313 * config/i386/xsavesintrin.h: Ditto.
33314 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
33315 (bit_XSAVES): Ditto.
33316 (bit_XSAVES): Ditto.
33317 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33318 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
33320 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
33321 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
33322 OPTION_MASK_ISA_XSAVES.
33323 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
33324 -mxsavec, -mxsaves.
33325 (PTA_CLFLUSHOPT) Define.
33326 (PTA_XSAVEC): Ditto.
33327 (PTA_XSAVES): Ditto.
33328 (ix86_option_override_internal): Handle new options.
33329 (ix86_valid_target_attribute_inner_p): Ditto.
33330 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
33331 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
33332 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
33333 (bdesc_special_args): Add __builtin_ia32_xsaves,
33334 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
33335 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
33336 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
33337 (ix86_expand_builtin): Handle new builtins.
33338 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
33339 (TARGET_CLFLUSHOPT_P): Ditto.
33340 (TARGET_XSAVEC): Ditto.
33341 (TARGET_XSAVEC_P): Ditto.
33342 (TARGET_XSAVES): Ditto.
33343 (TARGET_XSAVES_P): Ditto.
33344 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
33345 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
33346 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
33348 (ANY_XRSTOR64): Ditto.
33350 (xrstor): Change into <xrstor>.
33351 (xrstor_rex64): Change into <xrstor>_rex64.
33352 (xrstor64): Change into <xrstor>64
33354 * config/i386/i386.opt (mclflushopt): New.
33357 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
33359 * doc/invoke.texi: Document new options.
33361 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
33363 PR rtl-optimization/60866
33364 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
33365 Default it to -1. Pass it down to init_simplejump_data.
33366 (init_simplejump_data): New parameter old_seqno. Pass it down
33367 to get_seqno_for_a_jump.
33368 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
33369 initializing new jump seqno as a last resort. Add comment.
33370 (sel_redirect_edge_and_branch): Save old seqno of the conditional
33371 jump and pass it down to sel_init_new_insn.
33372 (sel_redirect_edge_and_branch_force): Likewise.
33374 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
33376 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
33377 shifted values to avoid build warning.
33379 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
33381 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
33382 * cfgrtl.c (rtl_merge_blocks): Fix comment.
33383 (cfg_layout_merge_blocks): Likewise.
33384 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
33386 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
33388 PR rtl-optimization/60901
33389 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
33390 bb predecessor belongs to the same scheduling region. Adjust comment.
33392 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
33394 * doc/sourcebuild.texi: (dfp_hw): Document.
33395 (p8vector_hw): Likewise.
33396 (powerpc_eabi_ok): Likewise.
33397 (powerpc_elfv2): Likewise.
33398 (powerpc_htm_ok): Likewise.
33399 (ppc_recip_hw): Likewise.
33400 (vsx_hw): Likewise.
33402 2014-05-13 Cary Coutant <ccoutant@google.com>
33404 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
33406 2014-05-13 David Malcolm <dmalcolm@redhat.com>
33408 * gengtype-parse.c (require3): Eliminate in favor of...
33410 (require_template_declaration): Update to support optional single *
33413 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
33414 (create_user_defined_type): Handle a single level of explicit
33415 pointerness within template arguments.
33416 (struct write_types_data): Add field "kind".
33417 (filter_type_name): Handle "*" character.
33418 (write_user_func_for_structure_ptr): Require a write_types_data
33419 rather than just a prefix string, so that we can look up the kind
33420 of the wtd and use it as an index into wrote_user_func_for_ptr,
33421 ensuring that such functions are written at most once. Support
33422 subclasses by invoking the marking function of the ultimate base class.
33423 (write_user_func_for_structure_body): Require a write_types_data
33424 rather than just a prefix string, so that we can pass this to
33425 write_user_func_for_structure_ptr.
33426 (write_func_for_structure): Likewise.
33427 (ggc_wtd): Add initializer of new "kind" field.
33428 (pch_wtd): Likewise.
33430 * gengtype.h (enum write_types_kinds): New.
33431 (struct type): Add field wrote_user_func_for_ptr to the "s"
33434 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
33436 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
33437 instead of const_binop.
33438 (fold_binary_loc): Likewise.
33440 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
33442 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
33443 calculation to match get_ref_base_and_extent.
33445 2014-05-13 Catherine Moore <clm@codesourcery.com>
33446 Sandra Loosemore <sandra@codesourcery.com>
33448 * configure.ac: Fix assembly for explicit JALR relocation check.
33449 * configure: Regenerate.
33451 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33453 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
33454 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
33455 Remove associated type declarations and initialisations.
33456 (arm_expand_neon_builtin): Likewise.
33457 (neon_emit_pair_result_insn): Delete.
33458 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
33459 * config/arm/neon.md (neon_vtrn<mode>): Delete.
33460 (neon_vzip<mode>): Likewise.
33461 (neon_vuzp<mode>): Likewise.
33463 2014-05-13 Richard Biener <rguenther@suse.de>
33466 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
33467 it needs revisiting whether the call still may be tail-called.
33469 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
33471 * rtl.def (SYMBOL_REF): Remove middle "0" field.
33472 * rtl.h (block_symbol): Reduce number of fields to 2.
33473 (rtx_def): Add u2.symbol_ref_flags.
33474 (SYMBOL_REF_FLAGS): Use it.
33475 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
33476 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
33477 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
33478 Lower index of SYMBOL_REF_DATA.
33479 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
33480 Print SYMBOL_REF_FLAGS at the same time.
33481 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
33483 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
33485 * rtl.def (VAR_LOCATION): Remove "i" field.
33486 * rtl.h (rtx_def): Add u2.var_location_status.
33487 (PAT_VAR_LOCATION_STATUS): Use it.
33488 (gen_rtx_VAR_LOCATION): Declare.
33489 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
33490 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
33491 * var-tracking.c (emit_note_insn_var_location): Remove casts.
33493 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
33495 * rtl.def (scratch): Fix outdated comment and remove "0" field.
33496 * gengtype.c (adjust_field_rtx_def): Update accordingly.
33498 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
33500 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
33501 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
33502 * rtl.h (rtx_def): Add insn_uid to u2 field.
33503 (RTX_FLAG_CHECK8): Delete in favor of...
33504 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
33505 (INSN_DELETED_P): Update accordingly.
33506 (INSN_UID): Use u2.insn_uid.
33507 (INSN_CHAIN_CODE_P): Define.
33508 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
33509 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
33510 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
33511 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
33512 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
33513 indices accordingly.
33514 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
33515 Update indices for insn-chain rtxes.
33516 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
33517 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
33518 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
33519 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
33520 * combine.c (try_combine): Likewise.
33521 * ira.c (setup_prohibited_mode_move_regs): Likewise.
33523 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
33525 * rtl.def (REG): Remove middle field.
33526 * rtl.h (rtx_def): Add orignal_regno to u2.
33527 (ORIGINAL_REGNO): Use it instead of field 1.
33528 (REG_ATTRS): Lower field index accordingly.
33529 * gengtype.c (adjust_field_rtx_def): Remove handling of
33530 ORIGINAL_REGNO. Move REG_ATTRS index down.
33531 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
33532 code that prints the REGNO.
33534 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
33536 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
33539 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
33541 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
33543 2014-05-13 Bin Cheng <bin.cheng@arm.com>
33545 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
33546 (alloc_iv): Lower base expressions containing ADDR_EXPR.
33548 2014-05-13 Ian Bolton <ian.bolton@arm.com>
33550 * config/aarch64/aarch64-protos.h
33551 (aarch64_hard_regno_caller_save_mode): New prototype.
33552 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
33554 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
33556 2014-05-13 Christian Bruel <christian.bruel@st.com>
33558 * target.def (mode_switching): New hook vector.
33559 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
33560 (mode_exit, modepriority_to_mode): Likewise.
33561 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
33562 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
33563 * target.h: Include tm.h and hard-reg-set.h.
33564 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
33565 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
33566 * doc/tm.texi Regenerate.
33567 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
33568 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
33569 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
33570 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
33571 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
33572 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
33573 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
33574 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
33575 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
33576 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
33577 (ix86_emit_mode_set): Hookify.
33578 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
33580 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
33581 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
33582 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
33583 (epiphany_mode_priority_to_mode): Remove declaration.
33584 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
33585 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
33586 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
33588 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
33589 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
33590 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
33592 2014-05-13 Jakub Jelinek <jakub@redhat.com>
33595 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
33596 is const0_rtx, return immediately. Don't test count == 0 when
33599 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
33601 * Makefile.in: add shrink-wrap.o.
33602 * config/i386/i386.c: include "shrink-wrap.h"
33603 * function.c: Likewise.
33604 (requires_stack_frame_p, next_block_for_reg,
33605 move_insn_for_shrink_wrap, prepare_shrink_wrap,
33606 dup_block_and_redirect): Move to shrink-wrap.c
33607 (thread_prologue_and_epilogue_insns): Extract three code segments
33608 as functions in shrink-wrap.c
33609 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
33611 * shrink-wrap.c: New file.
33612 * shrink-wrap.h: New file.
33614 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
33616 * doc/extend.texi: Reflect current numbers of pragmas. Remove
33617 reference to Solaris.
33619 2014-05-12 Mike Stump <mikestump@comcast.net>
33622 * genattrtab.c (filename): Add.
33623 (convert_set_attr_alternative): Improve error message.
33624 (check_defs): Restore read_md_filename for error messages.
33625 (gen_insn): Save filename.
33627 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
33629 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
33630 -fno-local-ivars and -fivar-visibility.
33631 * c-family/c.opt: Make -Wshadow also implicitly enable
33634 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
33636 * doc/tm.texi: Remove reference to deleted macro.
33637 * doc/tm.texi.in: Likewise.
33639 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33642 * config/avr/avr.c (avr_out_store_psi): Use correct constant
33645 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
33648 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
33649 * config/arm/aout.h (License): Same.
33650 * config/arm/bpabi.h (License): Same.
33651 * config/arm/elf.h (License): Same.
33652 * config/arm/linux-elf.h (License): Same.
33653 * config/arm/linux-gas.h (License): Same.
33654 * config/arm/netbsd-elf.h (License): Same.
33655 * config/arm/uclinux-eabi.h (License): Same.
33656 * config/arm/uclinux-elf.h (License): Same.
33657 * config/arm/vxworks.h (License): Same.
33659 2014-05-11 Jakub Jelinek <jakub@redhat.com>
33661 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
33662 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
33663 number of operands to 3.
33664 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
33665 * tree-nested.c (convert_nonlocal_omp_clauses,
33666 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
33667 * gimplify.c (gimplify_scan_omp_clauses): Handle
33668 OMP_CLAUSE_LINEAR_STMT.
33669 * omp-low.c (lower_rec_input_clauses): Fix typo.
33670 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
33671 cast between Fortran boolean_type_node and C _Bool if
33674 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
33676 PR tree-optimization/61136
33677 * wide-int.h (multiple_of_p): Define a version that doesn't return
33679 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
33680 integer_zerop/const_binop pair.
33681 (multiple_of_p): Likewise, converting both operands to widest_int
33684 2014-05-09 Teresa Johnson <tejohnson@google.com>
33686 * cgraphunit.c (analyze_functions): Use correct dump file.
33688 2014-05-09 Florian Weimer <fweimer@redhat.com>
33690 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
33692 (stack_protect_return_slot_p): New function.
33693 (expand_used_vars): Call stack_protect_decl_p and
33694 stack_protect_return_slot_p for -fstack-protector-strong.
33696 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
33697 Andrew Haley <aph@redhat.com>
33698 Richard Sandiford <rdsandiford@googlemail.com>
33700 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
33703 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
33705 PR middle-end/61111
33706 * fold-const.c (fold_binary_loc): Changed width of mask.
33708 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
33710 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
33711 unsigned int initializers for regno_in, regno_out.
33713 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
33716 * config/avr/avr.md (cc): Add new attribute set_vzn.
33717 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
33718 Set cc insn attribute to set_vzn instead of set_zn for alternatives
33719 with INC, DEC or NEG.
33720 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
33721 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
33722 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
33724 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33727 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33729 * wide-int.cc (UTItype): Define.
33730 (UDWtype): Define for appropriate W_TYPE_SIZE.
33732 2014-05-09 Richard Biener <rguenther@suse.de>
33734 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
33735 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
33736 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
33737 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
33738 ssa_propagate): Adjust.
33740 2014-05-08 Jeff Law <law@redhat.com>
33742 PR tree-optimization/61009
33743 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
33744 tri-state rather than a boolean. When a block is too big to
33745 thread through, inform caller via negative return value.
33746 (thread_across_edge): If a block was too big for normal threading,
33747 then it's too big for a joiner too, so remove temporary equivalences
33748 and return immediately.
33750 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
33751 Matthias Klose <doko@ubuntu.com>
33754 * optc-gen.awk: Fix option handling for -Wunused-parameter.
33756 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
33759 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
33761 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
33764 * config/alpha/alpha.c: Include gimple-iterator.h.
33765 (alpha_gimple_fold_builtin): New function. Move
33766 ALPHA_BUILTIN_UMULH folding from ...
33767 (alpha_fold_builtin): ... here.
33768 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
33770 2014-05-08 Wei Mi <wmi@google.com>
33773 * config/i386/i386.c (ix86_compute_frame_layout): Update
33774 preferred_stack_boundary for call, expanded from tls descriptor.
33775 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
33776 to depend on SP register.
33777 (*tls_local_dynamic_base_32_gnu): Ditto.
33778 (*tls_local_dynamic_32_once): Ditto.
33779 (tls_global_dynamic_64_<mode>): Set
33780 ix86_tls_descriptor_calls_expanded_in_cfun.
33781 (tls_local_dynamic_base_64_<mode>): Ditto.
33782 (tls_global_dynamic_32): Set
33783 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
33784 to depend on SP register.
33785 (tls_local_dynamic_base_32): Ditto.
33787 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33789 * config/arm/arm_neon.h: Update comment.
33790 * config/arm/neon-docgen.ml: Delete.
33791 * config/arm/neon-gen.ml: Delete.
33792 * doc/arm-neon-intrinsics.texi: Update comment.
33794 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33796 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
33798 (vand, vorr, veor, vorn, vbic): Remove.
33799 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
33801 (neon_vsub_unspec): Likewise.
33802 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
33804 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33806 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
33807 (vadd_s16): Likewise.
33808 (vadd_s32): Likewise.
33809 (vadd_f32): Likewise.
33810 (vadd_u8): Likewise.
33811 (vadd_u16): Likewise.
33812 (vadd_u32): Likewise.
33813 (vadd_s64): Likewise.
33814 (vadd_u64): Likewise.
33815 (vaddq_s8): Likewise.
33816 (vaddq_s16): Likewise.
33817 (vaddq_s32): Likewise.
33818 (vaddq_s64): Likewise.
33819 (vaddq_f32): Likewise.
33820 (vaddq_u8): Likewise.
33821 (vaddq_u16): Likewise.
33822 (vaddq_u32): Likewise.
33823 (vaddq_u64): Likewise.
33824 (vmul_s8): Likewise.
33825 (vmul_s16): Likewise.
33826 (vmul_s32): Likewise.
33827 (vmul_f32): Likewise.
33828 (vmul_u8): Likewise.
33829 (vmul_u16): Likewise.
33830 (vmul_u32): Likewise.
33831 (vmul_p8): Likewise.
33832 (vmulq_s8): Likewise.
33833 (vmulq_s16): Likewise.
33834 (vmulq_s32): Likewise.
33835 (vmulq_f32): Likewise.
33836 (vmulq_u8): Likewise.
33837 (vmulq_u16): Likewise.
33838 (vmulq_u32): Likewise.
33839 (vsub_s8): Likewise.
33840 (vsub_s16): Likewise.
33841 (vsub_s32): Likewise.
33842 (vsub_f32): Likewise.
33843 (vsub_u8): Likewise.
33844 (vsub_u16): Likewise.
33845 (vsub_u32): Likewise.
33846 (vsub_s64): Likewise.
33847 (vsub_u64): Likewise.
33848 (vsubq_s8): Likewise.
33849 (vsubq_s16): Likewise.
33850 (vsubq_s32): Likewise.
33851 (vsubq_s64): Likewise.
33852 (vsubq_f32): Likewise.
33853 (vsubq_u8): Likewise.
33854 (vsubq_u16): Likewise.
33855 (vsubq_u32): Likewise.
33856 (vsubq_u64): Likewise.
33857 (vand_s8): Likewise.
33858 (vand_s16): Likewise.
33859 (vand_s32): Likewise.
33860 (vand_u8): Likewise.
33861 (vand_u16): Likewise.
33862 (vand_u32): Likewise.
33863 (vand_s64): Likewise.
33864 (vand_u64): Likewise.
33865 (vandq_s8): Likewise.
33866 (vandq_s16): Likewise.
33867 (vandq_s32): Likewise.
33868 (vandq_s64): Likewise.
33869 (vandq_u8): Likewise.
33870 (vandq_u16): Likewise.
33871 (vandq_u32): Likewise.
33872 (vandq_u64): Likewise.
33873 (vorr_s8): Likewise.
33874 (vorr_s16): Likewise.
33875 (vorr_s32): Likewise.
33876 (vorr_u8): Likewise.
33877 (vorr_u16): Likewise.
33878 (vorr_u32): Likewise.
33879 (vorr_s64): Likewise.
33880 (vorr_u64): Likewise.
33881 (vorrq_s8): Likewise.
33882 (vorrq_s16): Likewise.
33883 (vorrq_s32): Likewise.
33884 (vorrq_s64): Likewise.
33885 (vorrq_u8): Likewise.
33886 (vorrq_u16): Likewise.
33887 (vorrq_u32): Likewise.
33888 (vorrq_u64): Likewise.
33889 (veor_s8): Likewise.
33890 (veor_s16): Likewise.
33891 (veor_s32): Likewise.
33892 (veor_u8): Likewise.
33893 (veor_u16): Likewise.
33894 (veor_u32): Likewise.
33895 (veor_s64): Likewise.
33896 (veor_u64): Likewise.
33897 (veorq_s8): Likewise.
33898 (veorq_s16): Likewise.
33899 (veorq_s32): Likewise.
33900 (veorq_s64): Likewise.
33901 (veorq_u8): Likewise.
33902 (veorq_u16): Likewise.
33903 (veorq_u32): Likewise.
33904 (veorq_u64): Likewise.
33905 (vbic_s8): Likewise.
33906 (vbic_s16): Likewise.
33907 (vbic_s32): Likewise.
33908 (vbic_u8): Likewise.
33909 (vbic_u16): Likewise.
33910 (vbic_u32): Likewise.
33911 (vbic_s64): Likewise.
33912 (vbic_u64): Likewise.
33913 (vbicq_s8): Likewise.
33914 (vbicq_s16): Likewise.
33915 (vbicq_s32): Likewise.
33916 (vbicq_s64): Likewise.
33917 (vbicq_u8): Likewise.
33918 (vbicq_u16): Likewise.
33919 (vbicq_u32): Likewise.
33920 (vbicq_u64): Likewise.
33921 (vorn_s8): Likewise.
33922 (vorn_s16): Likewise.
33923 (vorn_s32): Likewise.
33924 (vorn_u8): Likewise.
33925 (vorn_u16): Likewise.
33926 (vorn_u32): Likewise.
33927 (vorn_s64): Likewise.
33928 (vorn_u64): Likewise.
33929 (vornq_s8): Likewise.
33930 (vornq_s16): Likewise.
33931 (vornq_s32): Likewise.
33932 (vornq_s64): Likewise.
33933 (vornq_u8): Likewise.
33934 (vornq_u16): Likewise.
33935 (vornq_u32): Likewise.
33936 (vornq_u64): Likewise.
33938 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33940 * wide-int.cc (UTItype): Define.
33941 (UDWtype): Define for appropriate W_TYPE_SIZE.
33943 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
33945 PR tree-optimization/59100
33946 * tree-ssa-phiopt.c: Include tree-inline.h.
33947 (neutral_element_p, absorbing_element_p): New functions.
33948 (value_replacement): Handle conditional binary operations with a
33949 neutral or absorbing element.
33951 2014-05-08 Richard Biener <rguenther@suse.de>
33953 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
33954 folding the expression.
33955 (valueize_expr): Remove.
33956 (visit_reference_op_load): Do not valueize the result of
33958 (simplify_binary_expression): Likewise.
33959 (simplify_unary_expression): Likewise.
33961 2014-05-08 Richard Biener <rguenther@suse.de>
33963 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
33964 looking at TYPE_ARG_TYPES.
33966 2014-05-08 Richard Biener <rguenther@suse.de>
33968 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
33969 pointer propagation special-case.
33971 2014-05-08 Bin Cheng <bin.cheng@arm.com>
33973 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
33974 core part of address expressions.
33976 2014-05-08 Alan Modra <amodra@gmail.com>
33979 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
33980 loads and stores when -mno-strict-align at any alignment.
33981 (expand_block_clear): Similarly. Also correct calculation of
33984 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
33986 PR middle-end/39246
33987 * tree-complex.c (expand_complex_move): Keep line info when expanding
33989 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
33990 of complex expression. Use new argument to display correct location
33991 for values coming from phi statement.
33992 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
33993 (warn_uninitialized_phi): Pass location of phi argument to
33995 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
33996 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
33998 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
34000 * config/rs6000/predicates.md (indexed_address_mem): New.
34001 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
34002 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
34003 fpstore_ux, fpstore_u.
34004 (sign_extend, indexed, update): New.
34005 (cell_micro): Adjust.
34006 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
34007 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
34008 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
34009 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
34010 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
34011 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
34012 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
34013 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
34014 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
34015 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
34016 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
34017 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
34018 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
34019 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
34020 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
34022 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
34023 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
34024 *vsx_extract_<mode>_store): Adjust.
34025 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
34026 is_cracked_insn, insn_must_be_first_in_group,
34027 insn_must_be_last_in_group): Adjust.
34029 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
34031 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
34032 ppc440-fpstore): Adjust.
34033 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
34034 ppc476-fpstore): Adjust.
34035 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
34036 ppc601-fpstore): Adjust.
34037 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
34039 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
34041 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
34042 ppc7450-fpstore): Adjust.
34043 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
34044 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
34045 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
34047 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
34048 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
34049 cell-fpstore, cell-fpstore-update): Adjust.
34050 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
34051 ppce300c3_store, ppce300c3_fpstore): Adjust.
34052 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
34053 e500mc_fpstore): Adjust.
34054 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
34055 e500mc64_store, e500mc64_fpstore): Adjust.
34056 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
34057 e5500_fpstore): Adjust.
34058 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
34059 e6500_fpstore): Adjust.
34060 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
34062 * config/rs6000/power4.md (power4-load, power4-load-ext,
34063 power4-load-ext-update, power4-load-ext-update-indexed,
34064 power4-load-update-indexed, power4-load-update, power4-fpload,
34065 power4-fpload-update, power4-store, power4-store-update,
34066 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
34068 * config/rs6000/power5.md (power5-load, power5-load-ext,
34069 power5-load-ext-update, power5-load-ext-update-indexed,
34070 power5-load-update-indexed, power5-load-update, power5-fpload,
34071 power5-fpload-update, power5-store, power5-store-update,
34072 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
34074 * config/rs6000/power6.md (power6-load, power6-load-ext,
34075 power6-load-update, power6-load-update-indexed,
34076 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
34077 power6-fpload-update, power6-store, power6-store-update,
34078 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
34080 * config/rs6000/power7.md (power7-load, power7-load-ext,
34081 power7-load-update, power7-load-update-indexed,
34082 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
34083 power7-fpload-update, power7-store, power7-store-update,
34084 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
34086 * config/rs6000/power8.md (power8-load, power8-load-update,
34087 power8-load-ext, power8-load-ext-update, power8-fpload,
34088 power8-fpload-update, power8-store, power8-store-update-indexed,
34089 power8-fpstore, power8-fpstore-update): Adjust.
34090 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
34092 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
34093 titan_lsu_store, titan_lsu_fpstore): Adjust.
34094 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
34096 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
34099 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
34100 unrolled byte insns. Emit address increments after move insns.
34102 2014-05-07 David Malcolm <dmalcolm@redhat.com>
34104 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
34105 const_gimple, rather than a gimple.
34106 (gimple_call_builtin_p): Likewise, for the three variants.
34108 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
34109 (gimple_call_builtin_p): Likewise, for the three variants.
34111 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
34113 PR tree-optimization/61095
34114 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
34116 2014-05-07 Richard Biener <rguenther@suse.de>
34118 PR tree-optimization/61034
34119 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
34120 (maybe_skip_until): Use translate to take into account
34121 lattices when trying to do disambiguations.
34122 (get_continuation_for_phi_1): Likewise.
34123 (get_continuation_for_phi): Adjust for added translate arguments.
34124 (walk_non_aliased_vuses): Likewise.
34125 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
34126 (walk_non_aliased_vuses): Likewise.
34127 (call_may_clobber_ref_p_1): Declare.
34128 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
34129 calls. Stop early if we are only supposed to disambiguate.
34130 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
34132 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
34134 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
34135 Emit an error when the function has arguments.
34137 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
34139 * cfgloop.h (unswitch_loops): Remove.
34140 * doc/passes.texi: Remove references to loop-unswitch.c
34141 * timevar.def (TV_LOOP_UNSWITCH): Remove.
34143 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
34145 * tree-vect-data-refs.c (vect_grouped_load_supported): New
34146 check for loads group of length 3.
34147 (vect_permute_load_chain): New permutations for loads group of
34149 * tree-vect-stmts.c (vect_model_load_cost): Change cost
34150 of vec_perm_shuffle for the new permutations.
34152 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
34154 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
34155 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
34156 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
34157 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
34158 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
34159 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
34160 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
34161 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
34163 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
34165 * loop-unswitch.c: Delete.
34167 2014-05-07 Richard Biener <rguenther@suse.de>
34169 * config.gcc: Always set need_64bit_hwint to yes.
34171 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
34173 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
34174 of using optimize_size.
34176 2014-05-06 Mike Stump <mikestump@comcast.net>
34178 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
34180 2014-05-06 Joseph Myers <joseph@codesourcery.com>
34182 * config/i386/sse.md (*mov<mode>_internal)
34183 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
34184 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
34185 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
34186 (*<code><mode>3, *andnot<mode>3<mask_name>)
34187 (<mask_codefor><code><mode>3<mask_name>): Only consider
34188 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
34190 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
34193 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
34195 * lra-constraints.c (valid_address_p): Move earlier in file.
34196 Add a constraint argument to the address_info version.
34197 (satisfies_memory_constraint_p): New function.
34198 (satisfies_address_constraint_p): Likewise.
34199 (process_alt_operands, curr_insn_transform): Use them.
34200 (process_address): Pass the constraint to valid_address_p when
34201 checking address operands.
34203 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
34205 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
34206 to their respective blocks. Fix inadvertent use of "node".
34208 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
34210 * emit-rtl.c (init_derived_machine_modes): New functionm, split
34212 (init_emit_once): ...here.
34213 * rtl.h (init_derived_machine_modes): Declare.
34214 * toplev.c (do_compile): Call it even if no_backend.
34216 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
34217 Mike Stump <mikestump@comcast.net>
34218 Richard Sandiford <rdsandiford@googlemail.com>
34219 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34221 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
34222 (rtx_equal_for_memref_p): Update comment.
34223 (adjust_offset_for_component_ref): Use wide-int interfaces.
34224 * builtins.c (get_object_alignment_2): Likewise.
34225 (c_readstr): Likewise.
34226 (target_char_cast): Add comment.
34227 (determine_block_size): Use wide-int interfaces.
34228 (expand_builtin_signbit): Likewise.
34229 (fold_builtin_int_roundingfn): Likewise.
34230 (fold_builtin_bitop): Likewise.
34231 (fold_builtin_bswap): Likewise.
34232 (fold_builtin_logarithm): Use signop.
34233 (fold_builtin_pow): Likewise.
34234 (fold_builtin_memory_op): Use wide-int interfaces.
34235 (fold_builtin_object_size): Likewise.
34236 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
34237 nb_iterations_estimate.
34238 (record_niter_bound): Use wide-int interfaces.
34239 (get_estimated_loop_iterations_int): Likewise.
34240 (get_estimated_loop_iterations): Likewise.
34241 (get_max_loop_iterations): Likewise.
34242 * cfgloop.h: Include wide-int.h.
34243 (struct nb_iter_bound): Change bound to widest_int.
34244 (struct loop): Change nb_iterations_upper_bound and
34245 nb_iterations_estimate to widest_int.
34246 (record_niter_bound): Switch to use widest_int.
34247 (get_estimated_loop_iterations): Likewise.
34248 (get_max_loop_iterations): Likewise.
34249 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
34250 update for wide-int.
34251 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
34252 * combine.c (try_combine): Likewise.
34253 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
34254 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
34256 (aarch64_float_const_representable_p): Likewise.
34257 * config/arc/arc.c: Include wide-int.h.
34258 (arc_can_use_doloop_p): Use wide-int interfaces.
34259 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
34260 (vfp3_const_double_index): Likewise.
34261 * config/avr/avr.c (avr_out_round): Likewise.
34262 (avr_fold_builtin): Likewise.
34263 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
34264 (bfin_can_use_doloop_p): Likewise.
34265 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
34266 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
34267 * config/i386/i386.c: Include wide-int.h.
34268 (ix86_data_alignment): Use wide-int interfaces.
34269 (ix86_local_alignment): Likewise.
34270 (ix86_emit_swsqrtsf): Update real_from_integer.
34271 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
34272 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
34273 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
34274 (zero_constant): Likewise.
34275 (input_operand): Likewise.
34276 (splat_input_operand): Likewise.
34277 (non_logical_cint_operand): Change const_double to const_wide_int.
34278 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
34279 (easy_altivec_constant): Remove comment.
34280 (paired_expand_vector_init): Use CONSTANT_P.
34281 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
34282 (rs6000_emit_move): Update checks.
34283 (rs6000_aggregate_candidate): Use wide-int interfaces.
34284 (rs6000_expand_ternop_builtin): Likewise.
34285 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
34286 (rs6000_assemble_integer): Likewise.
34287 (rs6000_hash_constant): Likewise.
34288 (output_toc): Likewise.
34289 (rs6000_rtx_costs): Likewise.
34290 (rs6000_emit_swrsqrt); Update call to real_from_integer.
34291 * config/rs6000/rs6000-c.c: Include wide-int.h.
34292 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
34293 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
34294 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
34295 Handle CONST_WIDE_INT.
34296 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
34297 Use tree_fits_uhwi_p.
34298 * config/sparc/sparc.c: Include wide-int.h.
34299 (sparc_fold_builtin): Use wide-int interfaces.
34300 * config/vax/vax.c: Include wide-int.h.
34301 (vax_float_literal): Use real_from_integer.
34302 * coretypes.h (struct hwivec_def): New.
34304 (const_hwivec): New.
34305 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
34306 (equiv_constant): Handle CONST_WIDE_INT.
34307 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
34308 (cselib_hash_rtx): Handle CONST_WIDE_INT.
34309 * dbxout.c (stabstr_U): Use wide-int interfaces.
34310 (dbxout_type): Update to use cst_fits_shwi_p.
34311 * defaults.h (LOG2_BITS_PER_UNIT): Define.
34312 (TARGET_SUPPORTS_WIDE_INT): Add default.
34313 * dfp.c: Include wide-int.h.
34314 (decimal_real_to_integer2): Use wide-int interfaces and rename to
34315 decimal_real_to_integer.
34316 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
34317 decimal_real_to_integer.
34318 * doc/generic.texi (Constant expressions): Update for wide_int.
34319 * doc/rtl.texi (const_double): Likewise.
34320 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
34321 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
34322 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
34323 (REAL_VALUE_FROM_INT): Remove.
34324 (TARGET_SUPPORTS_WIDE_INT): New.
34325 * doc/tm.texi: Regenerate.
34326 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
34327 * double-int.h: Include wide-int.h.
34328 (struct wi::int_traits): New.
34329 * dwarf2out.c (get_full_len): New.
34330 (dw_val_equal_p): Add case dw_val_class_wide_int.
34331 (size_of_loc_descr): Likewise.
34332 (output_loc_operands): Likewise.
34333 (insert_double): Remove.
34334 (insert_wide_int): New.
34335 (add_AT_wide): New.
34336 (print_die): Add case dw_val_class_wide_int.
34337 (attr_checksum): Likewise.
34338 (attr_checksum_ordered): Likewise.
34339 (same_dw_val_p): Likewise.
34340 (size_of_die): Likewise.
34341 (value_format): Likewise.
34342 (output_die): Likewise.
34343 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
34345 (clz_loc_descriptor): Use wide-int interfaces.
34346 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
34347 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
34348 (round_up_to_align): Use wide-int interfaces.
34349 (field_byte_offset): Likewise.
34350 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
34351 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
34352 CONST_DOUBLE handling. Use wide-int interfaces.
34353 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
34354 (gen_enumeration_type_die): Use add_AT_wide.
34355 (hash_loc_operands): Add case dw_val_class_wide_int.
34356 (compare_loc_operands): Likewise.
34357 * dwarf2out.h: Include wide-int.h.
34358 (wide_int_ptr): New.
34359 (enum dw_val_class): Add dw_val_class_wide_int.
34360 (struct dw_val_struct): Add val_wide.
34361 * emit-rtl.c (const_wide_int_htab): New.
34362 (const_wide_int_htab_hash): New.
34363 (const_wide_int_htab_eq): New.
34364 (lookup_const_wide_int): New.
34365 (const_double_htab_hash): Use wide-int interfaces.
34366 (const_double_htab_eq): Likewise.
34367 (rtx_to_double_int): Conditionally compile for wide-int.
34368 (immed_double_int_const): Rename to immed_wide_int_const and
34369 update for wide-int.
34370 (immed_double_const): Conditionally compile for wide-int.
34371 (init_emit_once): Use wide-int interfaces.
34372 * explow.c (plus_constant): Likewise.
34373 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
34374 (lshift_value): Use wide-int interfaces.
34375 (expand_mult): Likewise.
34376 (choose_multiplier): Likewise.
34377 (expand_smod_pow2): Likewise.
34378 (make_tree): Likewise.
34379 * expr.c (convert_modes): Consolidate handling of constants.
34380 Use wide-int interfaces.
34381 (emit_group_load_1): Add note.
34382 (store_expr): Update comment.
34383 (get_inner_reference): Use wide-int interfaces.
34384 (expand_constructor): Update comment.
34385 (expand_expr_real_2): Use wide-int interfaces.
34386 (expand_expr_real_1): Likewise.
34387 (reduce_to_bit_field_precision): Likewise.
34388 (const_vector_from_tree): Likewise.
34389 * final.c: Include wide-int-print.h.
34390 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
34391 * fixed-value.c: Include wide-int.h.
34392 (fixed_from_string): Use wide-int interfaces.
34393 (fixed_to_decimal): Likewise.
34394 (fixed_convert_from_real): Likewise.
34395 (real_convert_from_fixed): Likewise.
34396 * fold-const.h (mem_ref_offset): Return an offset_int.
34397 (div_if_zero_remainder): Remove code parameter.
34398 * fold-const.c (div_if_zero_remainder): Remove code parameter.
34399 Use wide-int interfaces.
34400 (may_negate_without_overflow_p): Use wide-int interfaces.
34401 (negate_expr_p): Likewise.
34402 (fold_negate_expr): Likewise.
34403 (int_const_binop_1): Likewise.
34404 (const_binop): Likewise.
34405 (fold_convert_const_int_from_int): Likewise.
34406 (fold_convert_const_int_from_real): Likewise.
34407 (fold_convert_const_int_from_fixed): Likewise.
34408 (fold_convert_const_fixed_from_int): Likewise.
34409 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
34410 (sign_bit_p): Use wide-int interfaces.
34411 (make_range_step): Likewise.
34412 (build_range_check): Likewise. Pass an integer of the correct type
34413 instead of using integer_one_node.
34414 (range_predecessor): Pass an integer of the correct type instead
34415 of using integer_one_node.
34416 (range_successor): Likewise.
34417 (merge_ranges): Likewise.
34418 (unextend): Use wide-int interfaces.
34419 (extract_muldiv_1): Likewise.
34420 (fold_div_compare): Likewise.
34421 (fold_single_bit_test): Likewise.
34422 (fold_sign_changed_comparison): Likewise.
34423 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
34424 (fold_plusminus_mult_expr): Use wide-int interfaces.
34425 (native_encode_int): Likewise.
34426 (native_interpret_int): Likewise.
34427 (fold_unary_loc): Likewise.
34428 (pointer_may_wrap_p): Likewise.
34429 (size_low_cst): Likewise.
34430 (mask_with_tz): Likewise.
34431 (fold_binary_loc): Likewise.
34432 (fold_ternary_loc): Likewise.
34433 (multiple_of_p): Likewise.
34434 (tree_call_nonnegative_warnv_p): Update calls to
34435 tree_int_cst_min_precision and real_from_integer.
34436 (fold_negate_const): Use wide-int interfaces.
34437 (fold_abs_const): Likewise.
34438 (fold_relational_const): Use tree_int_cst_lt.
34439 (round_up_loc): Use wide-int interfaces.
34440 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
34441 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
34442 * gengtype.c: Remove include of double-int.h.
34443 (do_typedef): Use wide-int interfaces.
34444 (open_base_files): Add wide-int.h.
34445 (main): Add offset_int and widest_int typedefs.
34446 * gengtype-lex.l: Handle "^".
34447 (CXX_KEYWORD): Add "static".
34448 * gengtype-parse.c (require3): New.
34449 (require_template_declaration): Handle constant template arguments
34450 and nested templates.
34451 * gengtype-state.c: Don't include "double-int.h".
34452 * genpreds.c (write_one_predicate_function): Update comment.
34453 (write_tm_constrs_h): Add check for hval and lval use in
34455 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
34456 (add_to_sequence): Likewise.
34457 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
34458 and const_double_operand.
34459 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
34461 * gimple-fold.c (get_base_constructor): Likewise.
34462 (fold_array_ctor_reference): Likewise.
34463 (fold_nonarray_ctor_reference): Likewise.
34464 (fold_const_aggregate_ref_1): Likewise.
34465 (gimple_val_nonnegative_real_p): Likewise.
34466 (gimple_fold_indirect_ref): Likewise.
34467 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
34468 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
34469 (struct slsr_cand_d): Change index to be widest_int.
34470 (struct incr_info_d): Change incr to be widest_int.
34471 (alloc_cand_and_find_basis): Use wide-int interfaces.
34472 (slsr_process_phi): Likewise.
34473 (backtrace_base_for_ref): Likewise. Return a widest_int.
34474 (restructure_reference): Take a widest_int instead of a double_int.
34475 (slsr_process_ref): Use wide-int interfaces.
34476 (create_mul_ssa_cand): Likewise.
34477 (create_mul_imm_cand): Likewise.
34478 (create_add_ssa_cand): Likewise.
34479 (create_add_imm_cand): Take a widest_int instead of a double_int.
34480 (slsr_process_add): Use wide-int interfaces.
34481 (slsr_process_cast): Likewise.
34482 (slsr_process_copy): Likewise.
34483 (dump_candidate): Likewise.
34484 (dump_incr_vec): Likewise.
34485 (replace_ref): Likewise.
34486 (cand_increment): Likewise. Return a widest_int.
34487 (cand_abs_increment): Likewise.
34488 (replace_mult_candidate): Take a widest_int instead of a double_int.
34489 (replace_unconditional_candidate): Use wide-int interfaces.
34490 (incr_vec_index): Take a widest_int instead of a double_int.
34491 (create_add_on_incoming_edge): Likewise.
34492 (create_phi_basis): Use wide-int interfaces.
34493 (replace_conditional_candidate): Likewise.
34494 (record_increment): Take a widest_int instead of a double_int.
34495 (record_phi_increments): Use wide-int interfaces.
34496 (phi_incr_cost): Take a widest_int instead of a double_int.
34497 (lowest_cost_path): Likewise.
34498 (total_savings): Likewise.
34499 (analyze_increments): Use wide-int interfaces.
34500 (ncd_with_phi): Take a widest_int instead of a double_int.
34501 (ncd_of_cand_and_phis): Likewise.
34502 (nearest_common_dominator_for_cands): Likewise.
34503 (insert_initializers): Use wide-int interfaces.
34504 (all_phi_incrs_profitable): Likewise.
34505 (replace_one_candidate): Likewise.
34506 (replace_profitable_candidates): Likewise.
34507 * godump.c: Include wide-int-print.h.
34508 (go_output_typedef): Use wide-int interfaces.
34509 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
34510 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
34511 (build_loop_iteration_domains): Likewise.
34512 * hooks.h: Include wide-int.h rather than double-int.h.
34513 (hook_bool_dint_dint_uint_bool_true): Delete.
34514 (hook_bool_wint_wint_uint_bool_true): Declare.
34515 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
34516 (hook_bool_wint_wint_uint_bool_true): New.
34517 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
34519 (ubsan_expand_si_overflow_mul_check): Likewise.
34520 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
34521 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
34522 (get_ancestor_addr_info): Likewise.
34523 (ipa_modify_call_arguments): Likewise.
34524 * loop-doloop.c (doloop_modify): Likewise.
34525 (doloop_optimize): Likewise.
34526 * loop-iv.c (iv_number_of_iterations): Likewise.
34527 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
34528 (unroll_loop_constant_iterations): Likewise.
34529 (decide_unroll_runtime_iterations): Likewise.
34530 (unroll_loop_runtime_iterations): Likewise.
34531 (decide_peel_simple): Likewise.
34532 (decide_unroll_stupid): Likewise.
34533 * lto-streamer-in.c (streamer_read_wi): Add.
34534 (input_cfg): Use wide-int interfaces.
34535 (lto_input_tree_1): Likewise.
34536 * lto-streamer-out.c (streamer_write_wi): Add.
34537 (hash_tree): Use wide-int interfaces.
34538 (output_cfg): Likewise.
34539 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
34540 (GTFILES): Add wide-int.h and signop.h.
34541 (TAGS): Look for .cc files too.
34542 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
34543 * optabs.c (expand_subword_shift): Likewise.
34544 (expand_doubleword_shift): Likewise.
34545 (expand_absneg_bit): Likewise.
34546 (expand_copysign_absneg): Likewise.
34547 (expand_copysign_bit): Likewise.
34548 * postreload.c (reload_cse_simplify_set): Likewise.
34549 * predict.c (predict_iv_comparison): Likewise.
34550 * pretty-print.h: Include wide-int-print.h.
34552 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
34553 * print-tree.c: Include wide-int-print.h.
34554 (print_node_brief): Use wide-int interfaces.
34555 (print_node): Likewise.
34556 * read-rtl.c (validate_const_wide_int): New.
34557 (read_rtx_code): Add CONST_WIDE_INT case.
34558 * real.c: Include wide-int.h.
34559 (real_to_integer2): Delete.
34560 (real_to_integer): New function, returning a wide_int.
34561 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
34562 (ten_to_ptwo): Update call to real_from_integer.
34563 (real_digit): Likewise.
34564 * real.h: Include signop.h, wide-int.h and insn-modes.h.
34565 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
34566 (REAL_VALUE_TO_INT): Delete.
34567 (real_to_integer): Declare a wide-int form.
34568 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
34569 * recog.c (const_int_operand): Improve comment.
34570 (const_scalar_int_operand): New.
34571 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
34572 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
34573 (split_double): Likewise.
34574 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
34575 (rtx_size): Likewise.
34576 (rtx_alloc_stat_v): New.
34577 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
34578 (cwi_output_hex): New.
34579 (iterative_hash_rtx): Handle CONST_WIDE_INT.
34580 (cwi_check_failed_bounds): New.
34581 * rtl.def (CONST_WIDE_INT): New.
34582 * rtl.h: Include <utility> and wide-int.h.
34583 (struct hwivec_def): New.
34584 (CWI_GET_NUM_ELEM): New.
34585 (CWI_PUT_NUM_ELEM): New.
34586 (struct rtx_def): Add num_elem and hwiv.
34587 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
34588 (CASE_CONST_UNIQUE): Likewise.
34589 (CASE_CONST_ANY): Likewise.
34590 (CONST_SCALAR_INT_P): Likewise.
34591 (CONST_WIDE_INT_P): New.
34593 (HWIVEC_CHECK): New.
34594 (cwi_check_failed_bounds): New.
34596 (HWIVEC_CHECK): New.
34597 (CONST_WIDE_INT_VEC) New.
34598 (CONST_WIDE_INT_NUNITS) New.
34599 (CONST_WIDE_INT_ELT) New.
34600 (rtx_mode_t): New type.
34601 (wi::int_traits <rtx_mode_t>): New.
34603 (wi::min_value): New.
34604 (wi::max_value): New.
34606 (const_wide_int_alloc): New.
34607 (immed_wide_int_const): New.
34608 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
34609 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
34610 * signop.h: New file.
34611 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
34612 (simplify_const_unary_operation): Use wide-int interfaces.
34613 (simplify_binary_operation_1): Likewise.
34614 (simplify_const_binary_operation): Likewise.
34615 (simplify_const_relational_operation): Likewise.
34616 (simplify_immed_subreg): Likewise.
34617 * stmt.c (expand_case): Likewise.
34618 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
34619 signop rather than a bool.
34620 * stor-layout.c (layout_type): Use wide-int interfaces.
34621 (initialize_sizetypes): Update calls to
34622 set_min_and_max_values_for_integral_type.
34623 (set_min_and_max_values_for_integral_type): Take a signop rather
34624 than a bool. Use wide-int interfaces.
34625 (fixup_signed_type): Update accordingly. Remove
34626 HOST_BITS_PER_DOUBLE_INT limit.
34627 (fixup_unsigned_type): Likewise.
34628 * system.h (STATIC_CONSTANT_P): New.
34629 (STATIC_ASSERT): New.
34630 * target.def (can_use_doloop_p): Take widest_ints rather than
34632 * target.h: Include wide-int.h rather than double-int.h.
34633 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
34635 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
34636 rather than INT_CST_LT_UNSIGNED.
34637 (can_use_doloop_if_innermost): Take widest_ints rather than
34639 * tree-affine.c: Include wide-int-print.h.
34640 (double_int_ext_for_comb): Delete.
34641 (wide_int_ext_for_comb): New.
34642 (aff_combination_zero): Use wide-int interfaces.
34643 (aff_combination_const): Take a widest_int instead of a double_int.
34644 (aff_combination_elt): Use wide-int interfaces.
34645 (aff_combination_scale): Take a widest_int instead of a double_int.
34646 (aff_combination_add_elt): Likewise.
34647 (aff_combination_add_cst): Likewise.
34648 (aff_combination_add): Use wide-int interfaces.
34649 (aff_combination_convert): Likewise.
34650 (tree_to_aff_combination): Likewise.
34651 (add_elt_to_tree): Take a widest_int instead of a double_int.
34652 (aff_combination_to_tree): Use wide-int interfaces.
34653 (aff_combination_remove_elt): Likewise.
34654 (aff_combination_add_product): Take a widest_int instead of
34656 (aff_combination_mult): Use wide-int interfaces.
34657 (aff_combination_expand): Likewise.
34658 (double_int_constant_multiple_p): Delete.
34659 (wide_int_constant_multiple_p): New.
34660 (aff_combination_constant_multiple_p): Take a widest_int pointer
34661 instead of a double_int pointer.
34662 (print_aff): Use wide-int interfaces.
34663 (get_inner_reference_aff): Take a widest_int pointer
34664 instead of a double_int pointer.
34665 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
34666 * tree-affine.h: Include wide-int.h.
34667 (struct aff_comb_elt): Change type of coef to widest_int.
34668 (struct affine_tree_combination): Change type of offset to widest_int.
34669 (double_int_ext_for_comb): Delete.
34670 (wide_int_ext_for_comb): New.
34671 (aff_combination_const): Use widest_int instead of double_int.
34672 (aff_combination_scale): Likewise.
34673 (aff_combination_add_elt): Likewise.
34674 (aff_combination_constant_multiple_p): Likewise.
34675 (get_inner_reference_aff): Likewise.
34676 (aff_comb_cannot_overlap_p): Likewise.
34677 (aff_combination_zero_p): Use wide-int interfaces.
34678 * tree.c: Include tree.h.
34679 (init_ttree): Use make_int_cst.
34680 (tree_code_size): Removed code for INTEGER_CST case.
34681 (tree_size): Add INTEGER_CST case.
34682 (make_node_stat): Update comment.
34683 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
34684 (build_int_cst_type): Use wide-int interfaces.
34685 (double_int_to_tree): Likewise.
34686 (double_int_fits_to_tree_p): Delete.
34687 (force_fit_type_double): Delete.
34688 (force_fit_type): New.
34689 (int_cst_hash_hash): Use wide-int interfaces.
34690 (int_cst_hash_eq): Likewise.
34691 (build_int_cst_wide): Delete.
34692 (wide_int_to_tree): New.
34693 (cache_integer_cst): Use wide-int interfaces.
34694 (build_low_bits_mask): Likewise.
34695 (cst_and_fits_in_hwi): Likewise.
34696 (real_value_from_int_cst): Likewise.
34697 (make_int_cst_stat): New.
34698 (integer_zerop): Use wide_int interfaces.
34699 (integer_onep): Likewise.
34700 (integer_all_onesp): Likewise.
34701 (integer_pow2p): Likewise.
34702 (integer_nonzerop): Likewise.
34703 (tree_log2): Likewise.
34704 (tree_floor_log2): Likewise.
34705 (tree_ctz): Likewise.
34706 (int_size_in_bytes): Likewise.
34707 (mem_ref_offset): Return an offset_int rather than a double_int.
34708 (build_type_attribute_qual_variant): Use wide_int interfaces.
34709 (type_hash_eq): Likewise
34710 (tree_int_cst_equal): Likewise.
34711 (tree_int_cst_lt): Delete.
34712 (tree_int_cst_compare): Likewise.
34713 (tree_fits_shwi_p): Use wide_int interfaces.
34714 (tree_fits_uhwi_p): Likewise.
34715 (tree_int_cst_sign_bit): Likewise.
34716 (tree_int_cst_sgn): Likewise.
34717 (tree_int_cst_min_precision): Take a signop rather than a bool.
34718 (simple_cst_equal): Use wide_int interfaces.
34719 (compare_tree_int): Likewise.
34720 (iterative_hash_expr): Likewise.
34721 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
34723 (get_type_static_bounds): Use wide_int interfaces.
34724 (tree_int_cst_elt_check_failed): New.
34725 (build_common_tree_nodes): Reordered to set prec before filling in
34727 (int_cst_value): Check cst_and_fits_in_hwi.
34728 (widest_int_cst_value): Use wide_int interfaces.
34729 (upper_bound_in_type): Likewise.
34730 (lower_bound_in_type): Likewise.
34731 (num_ending_zeros): Likewise.
34732 (drop_tree_overflow): Likewise.
34733 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
34734 (gen_conditions_for_pow_cst_base): Likewise.
34735 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
34736 (group_case_labels_stmt): Use wide-int interfaces.
34737 (verify_gimple_assign_binary): Likewise.
34738 (print_loop): Likewise.
34739 * tree-chrec.c (tree_fold_binomial): Likewise.
34740 * tree-core.h (struct tree_base): Add int_length.
34741 (struct tree_int_cst): Change rep of value.
34742 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
34743 (dr_may_alias_p): Likewise.
34744 (max_stmt_executions_tree): Likewise.
34745 * tree.def (INTEGER_CST): Update comment.
34746 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
34747 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
34748 * tree-dump.c: Include wide-int.h and wide-int-print.h.
34749 (dequeue_and_dump): Use wide-int interfaces.
34750 * tree.h: Include wide-int.h.
34751 (NULL_TREE): Moved to earlier loc in file.
34752 (TREE_INT_CST_ELT_CHECK): New.
34753 (tree_int_cst_elt_check_failed): New.
34755 (TREE_INT_CST): Delete.
34756 (TREE_INT_CST_LOW): Use wide-int interfaces.
34757 (TREE_INT_CST_HIGH): Delete.
34758 (TREE_INT_CST_NUNITS): New.
34759 (TREE_INT_CST_EXT_NUNITS): Likewise.
34760 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
34761 (TREE_INT_CST_ELT): Likewise.
34762 (INT_CST_LT): Delete.
34763 (tree_int_cst_elt_check): New (two forms).
34764 (type_code_size): Update comment.
34765 (make_int_cst_stat, make_int_cst): New.
34766 (tree_to_double_int): Delete.
34767 (double_int_fits_to_tree_p): Delete.
34768 (force_fit_type_double): Delete.
34769 (build_int_cstu): Replace with out-of-line function.
34770 (build_int_cst_wide): Delete.
34771 (tree_int_cst_lt): Define inline.
34772 (tree_int_cst_le): New.
34773 (tree_int_cst_compare): Define inline.
34774 (tree_int_cst_min_precision): Take a signop rather than a bool.
34775 (wi::int_traits <const_tree>): New.
34776 (wi::int_traits <tree>): New.
34777 (wi::extended_tree): New.
34778 (wi::int_traits <wi::extended_tree>): New.
34779 (wi::to_widest): New.
34780 (wi::to_offset): New.
34781 (wi::fits_to_tree_p): New.
34782 (wi::min_value): New.
34783 (wi::max_value): New.
34784 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
34785 (copy_tree_body_r): Likewise.
34786 * tree-object-size.c (compute_object_offset): Likewise.
34787 (addr_object_size): Likewise.
34788 * tree-predcom.c: Include wide-int-print.h.
34789 (struct dref_d): Change type of offset to widest_int.
34790 (dump_dref): Call wide-int printer.
34791 (aff_combination_dr_offset): Use wide-int interfaces.
34792 (determine_offset): Take a widest_int pointer rather than a
34793 double_int pointer.
34794 (split_data_refs_to_components): Use wide-int interfaces.
34795 (suitable_component_p): Likewise.
34796 (order_drefs): Likewise.
34797 (add_ref_to_chain): Likewise.
34798 (valid_initializer_p): Likewise.
34799 (determine_roots_comp): Likewise.
34800 * tree-pretty-print.c: Include wide-int-print.h.
34801 (dump_generic_node): Use wide-int interfaces.
34802 * tree-sra.c (sra_ipa_modify_expr): Likewise.
34803 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
34804 (move_fixed_address_to_symbol): Likewise.
34805 (move_hint_to_base): Likewise.
34806 (move_pointer_to_base): Likewise.
34807 (move_variant_to_index): Likewise.
34808 (most_expensive_mult_to_index): Likewise.
34809 (addr_to_parts): Likewise.
34810 (copy_ref_info): Likewise.
34811 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
34812 (indirect_refs_may_alias_p): Likewise.
34813 (stmt_kills_ref_p_1): Likewise.
34814 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
34815 * tree-ssa-ccp.c: Update comment at top of file. Include
34817 (struct prop_value_d): Change type of mask to widest_int.
34818 (extend_mask): New function.
34819 (dump_lattice_value): Use wide-int interfaces.
34820 (get_default_value): Likewise.
34821 (set_constant_value): Likewise.
34822 (set_value_varying): Likewise.
34823 (valid_lattice_transition): Likewise.
34824 (set_lattice_value): Likewise.
34825 (value_to_double_int): Delete.
34826 (value_to_wide_int): New.
34827 (get_value_from_alignment): Use wide-int interfaces.
34828 (get_value_for_expr): Likewise.
34829 (do_dbg_cnt): Likewise.
34830 (ccp_finalize): Likewise.
34831 (ccp_lattice_meet): Likewise.
34832 (bit_value_unop_1): Use widest_ints rather than double_ints.
34833 (bit_value_binop_1): Likewise.
34834 (bit_value_unop): Use wide-int interfaces.
34835 (bit_value_binop): Likewise.
34836 (bit_value_assume_aligned): Likewise.
34837 (evaluate_stmt): Likewise.
34838 (ccp_fold_stmt): Likewise.
34839 (visit_cond_stmt): Likewise.
34840 (ccp_visit_stmt): Likewise.
34841 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
34842 (constant_pointer_difference): Likewise.
34843 (associate_pointerplus): Likewise.
34844 (combine_conversions): Likewise.
34845 * tree-ssa-loop.h: Include wide-int.h.
34846 (struct tree_niter_desc): Change type of max to widest_int.
34847 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
34848 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
34849 (remove_redundant_iv_tests): Likewise.
34850 (canonicalize_loop_induction_variables): Likewise.
34851 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
34852 (constant_multiple_of): Take a widest_int pointer instead of
34853 a double_int pointer.
34854 (get_computation_aff): Use wide-int interfaces.
34855 (ptr_difference_cost): Likewise.
34856 (difference_cost): Likewise.
34857 (get_loop_invariant_expr_id): Likewise.
34858 (get_computation_cost_at): Likewise.
34859 (iv_elimination_compare_lt): Likewise.
34860 (may_eliminate_iv): Likewise.
34861 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
34862 instead of double_int.
34863 (max_loop_iterations): Likewise.
34864 (max_stmt_executions): Likewise.
34865 (estimated_stmt_executions): Likewise.
34866 * tree-ssa-loop-niter.c: Include wide-int-print.h.
34867 (split_to_var_and_offset): Use wide-int interfaces.
34868 (determine_value_range): Likewise.
34869 (bound_difference_of_offsetted_base): Likewise.
34870 (bounds_add): Take a widest_int instead of a double_int.
34871 (number_of_iterations_ne_max): Use wide-int interfaces.
34872 (number_of_iterations_ne): Likewise.
34873 (number_of_iterations_lt_to_ne): Likewise.
34874 (assert_loop_rolls_lt): Likewise.
34875 (number_of_iterations_lt): Likewise.
34876 (number_of_iterations_le): Likewise.
34877 (number_of_iterations_cond): Likewise.
34878 (number_of_iterations_exit): Likewise.
34879 (finite_loop_p): Likewise.
34880 (derive_constant_upper_bound_assign): Likewise.
34881 (derive_constant_upper_bound): Return a widest_int.
34882 (derive_constant_upper_bound_ops): Likewise.
34883 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
34884 (record_estimate): Take a widest_int rather than a double_int.
34885 (record_nonwrapping_iv): Use wide-int interfaces.
34886 (double_int_cmp): Delete.
34887 (wide_int_cmp): New.
34888 (bound_index): Take a widest_int rather than a double_int.
34889 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
34890 (maybe_lower_iteration_bound): Likewise.
34891 (estimate_numbers_of_iterations_loop): Likewise.
34892 (estimated_loop_iterations): Take a widest_int pointer than than
34893 a double_int pointer.
34894 (estimated_loop_iterations_int): Use wide-int interfaces.
34895 (max_loop_iterations): Take a widest_int pointer than than
34896 a double_int pointer.
34897 (max_loop_iterations_int): Use wide-int interfaces.
34898 (max_stmt_executions): Take a widest_int pointer than than
34899 a double_int pointer.
34900 (estimated_stmt_executions): Likewise.
34901 (n_of_executions_at_most): Use wide-int interfaces.
34902 (scev_probably_wraps_p): Likewise.
34903 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
34904 to real_to_integer.
34905 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
34907 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
34908 double_ints. Adjust for trailing_wide_ints <3> representation.
34909 (set_nonzero_bits): Likewise.
34910 (get_range_info): Return wide_ints rather than double_ints.
34911 Adjust for trailing_wide_ints <3> representation.
34912 (get_nonzero_bits): Likewise.
34913 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
34915 * tree-ssanames.h (struct range_info_def): Replace min, max and
34916 nonzero_bits with a trailing_wide_ints <3>.
34917 (set_range_info): Use wide_int_refs rather than double_ints.
34918 (set_nonzero_bits): Likewise.
34919 (get_range_info): Return wide_ints rather than double_ints.
34920 (get_nonzero_bits): Likewise.
34921 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
34922 * tree-ssa-pre.c (phi_translate_1): Likewise.
34923 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
34924 (acceptable_pow_call): Likewise.
34925 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
34927 (vn_reference_fold_indirect): Likewise.
34928 (vn_reference_maybe_forwprop_address): Likewise.
34929 (valueize_refs_1): Likewise.
34930 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
34931 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
34932 tree_int_cst_lt and tree_int_cst_le.
34933 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
34935 (streamer_alloc_tree): Likewise.
34936 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
34937 (streamer_write_tree_header): Likewise.
34938 (streamer_write_integer_cst): Likewise.
34939 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
34940 (build_constructors): Likewise.
34941 (array_value_type): Likewise.
34942 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
34943 (vect_check_gather): Likewise.
34944 * tree-vect-generic.c (build_replicated_const): Likewise.
34945 (expand_vector_divmod): Likewise.
34946 * tree-vect-loop.c (vect_transform_loop): Likewise.
34947 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
34948 (vect_do_peeling_for_alignment): Likewise.
34949 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
34950 * tree-vrp.c: Include wide-int.h.
34951 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
34952 (extract_range_from_assert): Use wide-int interfaces.
34953 (vrp_int_const_binop): Likewise.
34954 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
34955 double_int pointers.
34956 (ranges_from_anti_range): Use wide-int interfaces.
34957 (quad_int_cmp): Delete.
34958 (quad_int_pair_sort): Likewise.
34959 (extract_range_from_binary_expr_1): Use wide-int interfaces.
34960 (extract_range_from_unary_expr_1): Likewise.
34961 (adjust_range_with_scev): Likewise.
34962 (masked_increment): Take and return wide_ints rather than double_ints.
34963 (register_edge_assert_for_2): Use wide-int interfaces.
34964 (check_array_ref): Likewise.
34965 (search_for_addr_array): Likewise.
34966 (maybe_set_nonzero_bits): Likewise.
34967 (union_ranges): Pass an integer of the correct type instead of
34968 using integer_one_node.
34969 (intersect_ranges): Likewise.
34970 (simplify_truth_ops_using_ranges): Likewise.
34971 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
34972 (range_fits_type_p): Likewise.
34973 (simplify_cond_using_ranges): Likewise. Take a signop rather than
34975 (simplify_conversion_using_ranges): Use wide-int interfaces.
34976 (simplify_float_conversion_using_ranges): Likewise.
34977 (vrp_finalize): Likewise.
34978 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
34979 (gimple_stringops_transform): Likewise.
34980 * varasm.c (decode_addr_const): Likewise.
34981 (const_hash_1): Likewise.
34982 (const_rtx_hash_1): Likewise
34983 (output_constant): Likewise.
34984 (array_size_for_constructor): Likewise.
34985 (output_constructor_regular_field): Likewise.
34986 (output_constructor_bitfield): Likewise.
34987 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
34988 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
34990 * gencheck.c: Define BITS_PER_UNIT.
34991 * wide-int.cc: New.
34993 * wide-int-print.cc: New.
34994 * wide-int-print.h: New.
34996 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34998 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
35000 2014-05-06 Richard Biener <rguenther@suse.de>
35002 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
35003 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
35004 (TODO_verify_all): Adjust.
35005 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
35006 TODO_verify_stmts and TODO_verify_rtl_sharing.
35007 * bb-reorder.c: Likewise.
35008 * cfgexpand.c: Likewise.
35009 * cprop.c: Likewise.
35011 * function.c: Likewise.
35012 * fwprop.c: Likewise.
35013 * gcse.c: Likewise.
35014 * gimple-ssa-isolate-paths.c: Likewise.
35015 * gimple-ssa-strength-reduction.c: Likewise.
35016 * ipa-split.c: Likewise.
35017 * loop-init.c: Likewise.
35018 * loop-unroll.c: Likewise.
35019 * lower-subreg.c: Likewise.
35020 * modulo-sched.c: Likewise.
35021 * postreload-gcse.c: Likewise.
35022 * predict.c: Likewise.
35023 * recog.c: Likewise.
35024 * sched-rgn.c: Likewise.
35025 * store-motion.c: Likewise.
35026 * tracer.c: Likewise.
35027 * trans-mem.c: Likewise.
35028 * tree-call-cdce.c: Likewise.
35029 * tree-cfg.c: Likewise.
35030 * tree-cfgcleanup.c: Likewise.
35031 * tree-complex.c: Likewise.
35032 * tree-eh.c: Likewise.
35033 * tree-emutls.c: Likewise.
35034 * tree-if-conv.c: Likewise.
35035 * tree-into-ssa.c: Likewise.
35036 * tree-loop-distribution.c: Likewise.
35037 * tree-object-size.c: Likewise.
35038 * tree-parloops.c: Likewise.
35039 * tree-pass.h: Likewise.
35040 * tree-sra.c: Likewise.
35041 * tree-ssa-ccp.c: Likewise.
35042 * tree-ssa-copy.c: Likewise.
35043 * tree-ssa-copyrename.c: Likewise.
35044 * tree-ssa-dce.c: Likewise.
35045 * tree-ssa-dom.c: Likewise.
35046 * tree-ssa-dse.c: Likewise.
35047 * tree-ssa-forwprop.c: Likewise.
35048 * tree-ssa-ifcombine.c: Likewise.
35049 * tree-ssa-loop-ch.c: Likewise.
35050 * tree-ssa-loop-ivcanon.c: Likewise.
35051 * tree-ssa-loop.c: Likewise.
35052 * tree-ssa-math-opts.c: Likewise.
35053 * tree-ssa-phiopt.c: Likewise.
35054 * tree-ssa-phiprop.c: Likewise.
35055 * tree-ssa-pre.c: Likewise.
35056 * tree-ssa-reassoc.c: Likewise.
35057 * tree-ssa-sink.c: Likewise.
35058 * tree-ssa-strlen.c: Likewise.
35059 * tree-ssa-tail-merge.c: Likewise.
35060 * tree-ssa-uncprop.c: Likewise.
35061 * tree-switch-conversion.c: Likewise.
35062 * tree-tailcall.c: Likewise.
35063 * tree-vect-generic.c: Likewise.
35064 * tree-vectorizer.c: Likewise.
35065 * tree-vrp.c: Likewise.
35066 * tsan.c: Likewise.
35067 * var-tracking.c: Likewise.
35068 * bt-load.c: Likewise.
35069 * cfgcleanup.c: Likewise.
35070 * combine-stack-adj.c: Likewise.
35071 * combine.c: Likewise.
35072 * compare-elim.c: Likewise.
35073 * config/epiphany/resolve-sw-modes.c: Likewise.
35074 * config/i386/i386.c: Likewise.
35075 * config/mips/mips.c: Likewise.
35076 * config/s390/s390.c: Likewise.
35077 * config/sh/sh_treg_combine.cc: Likewise.
35078 * config/sparc/sparc.c: Likewise.
35081 * final.c: Likewise.
35082 * ifcvt.c: Likewise.
35083 * mode-switching.c: Likewise.
35084 * passes.c: Likewise.
35085 * postreload.c: Likewise.
35087 * reg-stack.c: Likewise.
35088 * regcprop.c: Likewise.
35089 * regrename.c: Likewise.
35092 2014-05-06 Richard Biener <rguenther@suse.de>
35094 PR middle-end/61070
35095 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
35096 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
35098 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
35101 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
35103 2014-05-05 Radovan Obradovic <robradovic@mips.com>
35104 Tom de Vries <tom@codesourcery.com>
35106 * target.def (call_fusage_contains_non_callee_clobbers): New
35108 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
35110 (@node Miscellaneous Register Hooks): New node.
35111 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
35112 * doc/tm.texi: Regenerate.
35114 2014-05-05 Marek Polacek <polacek@redhat.com>
35117 * opts.c (common_handle_option): Call error_at instead of warning_at.
35119 2014-05-05 Richard Biener <rguenther@suse.de>
35121 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
35122 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
35123 under the TODO_verify_il umbrella.
35125 2014-05-05 Richard Biener <rguenther@suse.de>
35127 * passes.c (execute_function_todo): Move TODO_verify_flow under
35128 the TODO_verify_ul umbrella.
35130 2014-05-05 Richard Biener <rguenther@suse.de>
35132 PR middle-end/61010
35133 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
35134 X & CST away from a CST that is the mask of a mode.
35136 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35138 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
35139 int argument to enum machine_mode.
35140 (picochip_class_max_nregs): Ditto.
35141 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
35142 (picochip_class_max_nregs): Ditto.
35144 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35146 * target.def: Add new target hook.
35147 * doc/tm.texi: Regenerate.
35148 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
35149 * targhooks.c (default_keep_leaf_when_profiled): New function.
35151 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
35152 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
35154 2014-05-05 Bin Cheng <bin.cheng@arm.com>
35156 PR tree-optimization/60363
35157 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
35158 (copy_phi_args): New parameters. Call get_value_locus_in_path.
35159 (update_destination_phis): New parameter.
35160 (create_edge_and_update_destination_phis): Ditto.
35161 (ssa_fix_duplicate_block_edges): Pass new arguments.
35162 (thread_single_edge): Ditto.
35164 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
35166 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
35167 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
35168 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
35169 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
35170 Use RS6000_BTM_HARD_FLOAT.
35171 (BU_MISC_2): Likewise.
35172 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
35173 RS6000_BTM_HARD_FLOAT.
35174 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
35175 is explicitly used.
35176 (rs6000_invalid_builtin): Add hard floating builtin support.
35177 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
35178 hard float builtins.
35179 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
35181 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
35183 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
35184 Add missing function* argument.
35186 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
35188 * lra-constraints.c (valid_address_p): Move earlier in file.
35189 Add a constraint argument to the address_info version.
35190 (satisfies_memory_constraint_p): New function.
35191 (satisfies_address_constraint_p): Likewise.
35192 (process_alt_operands, curr_insn_transform): Use them.
35193 (process_address): Pass the constraint to valid_address_p when
35194 checking address operands.
35196 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
35198 * config/mips/mips.c (mips_isa_rev): New variable.
35199 (mips_set_architecture): Set it.
35200 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
35202 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
35203 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
35204 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
35205 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
35206 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
35207 conditions in terms of mips_isa_rev.
35208 (mips_isa_rev): Declare.
35210 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
35212 * config/sh/sh-mem.cc: Use tabs instead of spaces.
35213 (prob_unlikely, prob_likely): Make variables const.
35215 2014-05-03 Denis Chertykov <chertykov@gmail.com>
35217 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
35219 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
35221 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
35223 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
35225 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
35226 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
35227 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
35229 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
35230 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
35232 Replace usage of ROUND_REG with sh_round_reg.
35233 Use CEIL instead of ROUND_ADVANCE.
35235 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
35238 * config/sh/sh.c: Include stdlib headers before everything else.
35240 2014-05-02 Jakub Jelinek <jakub@redhat.com>
35242 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
35243 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
35244 (gimplify_adjust_omp_clauses): Simd region is never
35245 directly nested in combined parallel. Instead, for linear
35246 with copyin/copyout, if in combined for simd loop, make decl
35247 firstprivate/lastprivate on OMP_FOR.
35248 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
35249 expand_omp_for_static_chunk): When setting endvar, also set
35250 fd->loop.v to the same value.
35252 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
35254 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
35256 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
35258 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
35261 2014-05-02 Marek Polacek <polacek@redhat.com>
35263 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
35265 2014-05-02 Kito Cheng <kito@0xlab.org>
35267 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
35268 to a C expression marco.
35269 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
35270 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
35271 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
35272 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
35273 HONOR_REG_ALLOC_ORDER.
35274 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
35276 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35278 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
35280 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35282 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
35284 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
35286 * tree-if-conv.c (is_cond_scalar_reduction): New function.
35287 (convert_scalar_cond_reduction): Likewise.
35288 (predicate_scalar_phi): Add recognition and transformation
35289 of simple conditioanl reduction to be vectorizable.
35291 2014-05-01 Marek Polacek <polacek@redhat.com>
35294 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
35296 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
35298 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
35299 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
35300 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
35301 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
35302 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
35303 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
35304 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
35305 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
35307 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
35309 * config/arc/arc.opt (mlra): Move comment above option name
35310 to avoid mis-parsing as language options.
35312 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35314 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
35315 * config/sol2.h: ... here.
35316 * config/sol2-10.h: Remove.
35318 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
35319 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
35320 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
35321 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
35322 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
35323 * config/sol2.h: ... here.
35324 (SECTION_NAME_FORMAT): Don't redefine.
35325 (STARTFILE_ARCH32_SPEC): Rename to ...
35326 (STARTFILE_ARCH_SPEC): ... this.
35327 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
35328 * config/sparc/sol2.h: ... here.
35329 (SECTION_NAME_FORMAT): Don't undef.
35330 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
35331 (SUBTARGET_EXTRA_SPECS): Remove.
35332 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
35334 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
35335 (MD_STARTFILE_PREFIX): Remove.
35336 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
35337 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
35338 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
35339 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
35340 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
35341 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
35342 * config/i386/sol2.h: ... here.
35343 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
35344 * config/i386/sol2-bi.h: Remove.
35345 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
35346 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
35348 * config/i386/t-sol2-64: Rename to ...
35349 * config/i386/t-sol2: ... this.
35350 * config/sparc/t-sol2-64: Rename to ...
35351 * config/sparc/t-sol2: ... this.
35353 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
35354 sol2_tm_file_head, sol2_tm_file_tail.
35355 Include ${cpu_type}/sol2.h before sol2.h.
35357 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
35358 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
35359 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
35360 Reflect i386/t-sol2-64 renaming.
35361 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
35362 Reflect sparc/t-sol2-64 renaming.
35364 2014-04-30 Richard Biener <rguenther@suse.de>
35366 * passes.c (execute_function_todo): Move TODO_verify_stmts
35367 and TODO_verify_ssa under the TODO_verify_il umbrella.
35368 * tree-ssa.h (verify_ssa): Adjust prototype.
35369 * tree-ssa.c (verify_ssa): Add parameter to tell whether
35370 we should verify SSA operands.
35371 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
35372 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
35373 whether we should verify whether not throwing stmts have EH info.
35374 * graphite-scop-detection.c (create_sese_edges): Adjust.
35375 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
35376 * tree-eh.c (lower_try_finally_switch): Do not add the
35377 default case label twice.
35379 2014-04-30 Marek Polacek <polacek@redhat.com>
35381 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
35382 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
35383 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
35384 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
35386 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
35388 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
35389 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
35390 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
35391 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
35392 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
35393 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
35394 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
35395 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
35397 2014-04-29 David Malcolm <dmalcolm@redhat.com>
35399 * tree-cfg.c (dump_function_to_file): Dump the return type of
35400 functions, in a line to itself before the function body, mimicking
35401 the layout of a C function.
35403 2014-04-29 Jakub Jelinek <jakub@redhat.com>
35405 PR tree-optimization/60971
35406 * tree-tailcall.c (process_assignment): Reject conversions which
35409 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
35411 * calls.c (initialize_argument_information): Always treat
35412 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
35413 (expand_call): Likewise.
35414 (emit_library_call_calue_1): Likewise.
35415 * expr.c (PUSH_ARGS_REVERSED): Do not define.
35416 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
35419 2014-04-29 Nick Clifton <nickc@redhat.com>
35421 * config/msp430/msp430.md (umulsidi): Fix typo.
35422 (mulhisi3): Enable even inside interrupt handlers.
35423 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
35424 bigger return address pushed in large mode.
35426 2014-04-29 Nick Clifton <nickc@redhat.com>
35428 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
35429 (arc_init_reg_tables): Use a machine_mode enum to iterate over
35431 * config/m32r/m32r.c (init_reg_tables): Likewise.
35432 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
35433 enum to hold the modes.
35435 2014-04-29 Richard Biener <rguenther@suse.de>
35437 * dominance.c (free_dominance_info): Add overload with
35438 function parameter.
35439 (dom_info_state): Likewise.
35440 (dom_info_available_p): Likewise.
35441 * basic-block.h (free_dominance_info, dom_info_state,
35442 dom_info_available_p): Declare overloads.
35443 * passes.c (execute_function_todo): Verify that verifiers
35444 don't change dominator info state. Drop dominator info
35445 for IPA pass invocations.
35446 * cgraph.c (release_function_body): Restore asserts that
35447 dominator information is released.
35449 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
35451 * doc/invoke.texi: Fix typo.
35452 * tree-vrp.c: Fix typos.
35453 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
35455 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
35457 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
35459 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
35461 * config/aarch64/aarch64-builtins.c
35462 (aarch64_types_storestruct_lane_qualifiers): New.
35463 (TYPES_STORESTRUCT_LANE): Likewise.
35464 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
35465 (st3_lane): Likewise.
35466 (st4_lane): Likewise.
35467 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
35468 (vec_store_lanesci_lane<mode>): Likewise.
35469 (vec_store_lanesxi_lane<mode>): Likewise.
35470 (aarch64_st2_lane<VQ:mode>): Likewise.
35471 (aarch64_st3_lane<VQ:mode>): Likewise.
35472 (aarch64_st4_lane<VQ:mode>): Likewise.
35473 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
35474 * config/aarch64/arm_neon.h
35475 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
35476 use new macro arguments.
35477 (__ST3_LANE_FUNC): Likewise.
35478 (__ST4_LANE_FUNC): Likewise.
35479 * config/aarch64/iterators.md (V_TWO_ELEM): New.
35480 (V_THREE_ELEM): Likewise.
35481 (V_FOUR_ELEM): Likewise.
35483 2014-04-28 David Malcolm <dmalcolm@redhat.com>
35485 * doc/gimple.texi: Replace the description of the now-defunct
35486 union gimple_statement_d with a diagram showing the
35487 gimple_statement_base class hierarchy and its relationships to
35488 the GSS_ and GIMPLE_ enums.
35490 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
35492 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
35493 * config/aarch64/aarch64.c
35494 (aarch64_cannot_change_mode_class): Weaken conditions.
35495 (aarch64_modes_tieable_p): New.
35496 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
35498 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
35500 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
35501 (loadsync_<mode>): Change mode.
35502 (load_quadpti, store_quadpti): New.
35503 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
35504 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
35506 2014-04-28 Martin Jambor <mjambor@suse.cz>
35508 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
35509 same alias type as the original statement.
35510 (subreplacement_assignment_data): New type.
35511 (handle_unscalarized_data_in_subtree): New type of parameter,
35512 generate new memory accesses with same alias type as the original
35514 (load_assign_lhs_subreplacements): Likewise.
35515 (sra_modify_constructor_assign): Generate new memory accesses with
35516 same alias type as the original statement.
35518 2014-04-28 Richard Biener <rguenther@suse.de>
35520 * tree-pass.h (TODO_verify_il): Define.
35521 (TODO_verify_all): Complete properly.
35522 * passes.c (execute_function_todo): Move existing loop-closed
35523 SSA verification under TODO_verify_il.
35524 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
35525 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
35526 Fix tree sharing issue.
35528 2014-04-28 Richard Biener <rguenther@suse.de>
35530 PR middle-end/60092
35531 * builtins.def (DEF_C11_BUILTIN): Add.
35532 (BUILT_IN_ALIGNED_ALLOC): Likewise.
35533 * coretypes.h (enum function_class): Add function_c11_misc.
35534 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
35535 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
35536 (call_may_clobber_ref_p_1): Likewise.
35537 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
35538 (mark_all_reaching_defs_necessary_1): Likewise.
35539 (propagate_necessity): Likewise.
35540 (eliminate_unnecessary_stmts): Likewise.
35541 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
35543 2014-04-28 Richard Biener <rguenther@suse.de>
35545 * tree-vrp.c (vrp_var_may_overflow): Remove.
35546 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
35547 with overflow immediately bump to one before that value and
35548 let iteration figure out overflow status.
35550 2014-04-28 Richard Biener <rguenther@suse.de>
35552 * configure.ac: Do valgrind header checks unconditionally.
35553 Add --enable-valgrind-annotations.
35554 * system.h: Guard valgrind header inclusion with
35555 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
35556 * alloc-pool.c (pool_alloc, pool_free): Use
35557 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
35558 to guard possibly dead code.
35559 * config.in: Regenerated.
35560 * configure: Likewise.
35562 2014-04-28 Jeff Law <law@redhat.com>
35564 PR tree-optimization/60902
35565 * tree-ssa-threadedge.c
35566 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
35567 over real defs when invalidating outputs from statements that do not
35568 produce useful outputs for threading.
35570 2014-04-28 Richard Biener <rguenther@suse.de>
35572 PR tree-optimization/60979
35573 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
35574 SCOPs that end in a block with a successor with abnormal
35577 2014-04-28 Richard Biener <rguenther@suse.de>
35579 * tree-pass.h (execute_pass_list): Adjust prototype.
35580 * passes.c (pass_manager::execute_early_local_passes): Adjust.
35581 (do_per_function): Change callback signature, push all actual
35582 work to the callbals.
35583 (do_per_function_toporder): Likewise.
35584 (execute_function_dump): Adjust.
35585 (execute_function_todo): Likewise.
35586 (clear_last_verified): Likewise.
35587 (verify_curr_properties): Likewise.
35588 (update_properties_after_pass): Likewise.
35589 (execute_pass_list_1): Split out from ...
35590 (execute_pass_list): ... here. Adjust.
35591 (execute_ipa_pass_list): Likewise.
35592 * cgraphunit.c (cgraph_add_new_function): Adjust.
35593 (analyze_function): Likewise.
35594 (expand_function): Likewise.
35595 * cgraph.c (release_function_body): Free dominance info
35596 here instead of asserting it was magically freed elsewhere.
35598 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
35600 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
35601 * configure: Regenerate.
35602 * config/sparc/sparc.opt (muser-mode): New option.
35603 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
35605 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
35606 * doc/invoke.texi (SPARC options): Document -muser-mode.
35608 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
35610 * cselib.c (find_slot_memmode): Delete.
35611 (cselib_hasher): Change compare_type to a struct.
35612 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
35614 (preserve_constants_and_equivs): Adjust for new compare_type.
35615 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
35616 (wrap_constant): Delete.
35617 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
35619 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
35621 * doc/install.texi (Building with profile feedback): Remove
35624 2014-04-26 Tom de Vries <tom@codesourcery.com>
35626 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
35629 2014-04-25 Cary Coutant <ccoutant@google.com>
35632 * dwarf2out.c (should_move_die_to_comdat): A type definition
35633 can contain a subprogram definition, but don't move it to a
35635 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
35636 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
35638 (clone_tree_hash): Rename to...
35639 (clone_tree_partial): ...this; change callers. Copy
35640 DW_TAG_subprogram DIEs as declarations.
35641 (copy_decls_walk): Don't copy children of a declaration into a
35644 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
35647 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
35650 2014-04-25 Jiong Wang <jiong.wang@arm.com>
35652 * config/arm/predicates.md (call_insn_operand): Add long_call check.
35653 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
35655 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
35658 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35660 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
35662 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35664 PR tree-optimization/60930
35665 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
35666 creating a multiply candidate by folding two constant
35667 multiplicands when the result overflows.
35669 2014-04-25 Jakub Jelinek <jakub@redhat.com>
35671 PR tree-optimization/60960
35672 * tree-vect-generic.c (expand_vector_operation): Only call
35673 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
35675 2014-04-25 Tom de Vries <tom@codesourcery.com>
35677 * expr.c (clobber_reg_mode): New function.
35678 * expr.h (clobber_reg): New function.
35680 2014-04-25 Tom de Vries <tom@codesourcery.com>
35682 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
35685 2014-04-25 Radovan Obradovic <robradovic@mips.com>
35686 Tom de Vries <tom@codesourcery.com>
35688 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
35690 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
35691 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
35692 new argument to find_all_hard_reg_sets call.
35694 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35696 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
35697 Use HOST_WIDE_INT_C for mask literal.
35698 (aarch_rev16_shleft_mask_imm_p): Likewise.
35700 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
35703 * config/sparc/sparc.md (ashlsi3_extend): Delete.
35705 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
35707 PR preprocessor/56540
35708 * config/i386/i386-c.c (ix86_target_macros): Define
35709 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
35711 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35713 * configure.ac (tga_func): Remove.
35714 (LIB_TLS_SPEC): Remove.
35715 * configure: Regenerate.
35716 * config.in: Regenerate.
35717 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
35719 2014-04-25 Richard Biener <rguenther@suse.de>
35722 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
35723 call stmt use/clobber sets during stmt walk instead of
35724 walking the possibly incomplete set of caller edges.
35726 2014-04-25 Richard Biener <rguenther@suse.de>
35729 * passes.c (apply_ipa_transforms): Inline into only caller ...
35730 (execute_one_pass): ... here. Properly bring in function
35731 bodies for nodes we want to apply IPA transforms to.
35733 2014-04-24 Cong Hou <congh@google.com>
35735 PR tree-optimization/60896
35736 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
35737 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
35738 (vect_mark_pattern_stmts): Set the def type of all statements in
35739 PATTERN_DEF_SEQ as vect_internal_def.
35741 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
35743 * doc/extend.texi (PowerPC Built-in Functions): Document new
35744 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
35745 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
35747 * config/rs6000/predicates.md (const_0_to_3_operand): New
35748 predicate to match 0..3 integer constants.
35750 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
35751 to support adding miscellaneous builtin functions.
35752 (BU_DFP_MISC_2): Likewise.
35753 (BU_P7_MISC_1): Likewise.
35754 (BU_P7_MISC_2): Likewise.
35755 (BU_P8V_MISC_3): Likewise.
35756 (BU_MISC_1): Likewise.
35757 (BU_MISC_2): Likewise.
35758 (DIVWE): Add extended divide builtin functions.
35759 (DIVWEO): Likewise.
35760 (DIVWEU): Likewise.
35761 (DIVWEUO): Likewise.
35763 (DIVDEO): Likewise.
35764 (DIVDEU): Likewise.
35765 (DIVDEUO): Likewise.
35766 (DXEX): Add decimal floating-point builtin functions.
35768 (DDEDPD): Likewise.
35769 (DDEDPDQ): Likewise.
35770 (DENBCD): Likewise.
35771 (DENBCDQ): Likewise.
35775 (DSCLIQ): Likewise.
35777 (DSCRIQ): Likewise.
35778 (CDTBCD): Add new BCD builtin functions.
35779 (CBCDTD): Likewise.
35780 (ADDG6S): Likewise.
35781 (BCDADD): Likewise.
35782 (BCDADD_LT): Likewise.
35783 (BCDADD_EQ): Likewise.
35784 (BCDADD_GT): Likewise.
35785 (BCDADD_OV): Likewise.
35786 (BCDSUB): Likewise.
35787 (BCDSUB_LT): Likewise.
35788 (BCDSUB_EQ): Likewise.
35789 (BCDSUB_GT): Likewise.
35790 (BCDSUB_OV): Likewise.
35791 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
35792 (UNPACK_TD): Likewise.
35793 (PACK_TF): Likewise.
35794 (UNPACK_TF): Likewise.
35795 (UNPACK_TF_0): Likewise.
35796 (UNPACK_TF_1): Likewise.
35797 (PACK_V1TI): Likewise.
35798 (UNPACK_V1TI): Likewise.
35800 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
35801 support for decimal floating point builtin functions.
35802 (rs6000_expand_ternop_builtin): Add checks for the new builtin
35803 functions that take constant arguments.
35804 (rs6000_invalid_builtin): Add decimal floating point builtin support.
35805 (rs6000_init_builtins): Setup long double, _Decimal64, and
35806 _Decimal128 types for new builtin functions.
35807 (builtin_function_type): Set the unsigned flags appropriately for
35808 the new builtin functions.
35809 (rs6000_opt_masks): Add support for decimal floating point builtin
35812 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
35813 floating point builtin functions.
35814 (RS6000_BTM_COMMON): Likewise.
35815 (RS6000_BTI_long_double): Likewise.
35816 (RS6000_BTI_dfloat64): Likewise.
35817 (RS6000_BTI_dfloat128): Likewise.
35818 (long_double_type_internal_node): Likewise.
35819 (dfloat64_type_internal_node): Likewise.
35820 (dfloat128_type_internal_node): Likewise.
35822 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
35823 2.07 bcd arithmetic instructions.
35824 (UNSPEC_BCDSUB): Likewise.
35825 (UNSPEC_BCD_OVERFLOW): Likewise.
35826 (UNSPEC_BCD_ADD_SUB): Likewise.
35827 (bcd_add_sub): Likewise.
35828 (BCD_TEST): Likewise.
35829 (bcd<bcd_add_sub>): Likewise.
35830 (bcd<bcd_add_sub>_test): Likewise.
35831 (bcd<bcd_add_sub>_test2): Likewise.
35832 (bcd<bcd_add_sub>_<code>): Likewise.
35833 (peephole2 for combined bcd ops): Likewise.
35835 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
35836 decimal floating point builtin functions.
35837 (UNSPEC_DENBCD): Likewise.
35838 (UNSPEC_DXEX): Likewise.
35839 (UNSPEC_DIEX): Likewise.
35840 (UNSPEC_DSCLI): Likewise.
35841 (UNSPEC_DSCRI): Likewise.
35842 (D64_D128): Likewise.
35843 (dfp_suffix): Likewise.
35844 (dfp_ddedpd_<mode>): Likewise.
35845 (dfp_denbcd_<mode>): Likewise.
35846 (dfp_dxex_<mode>): Likewise.
35847 (dfp_diex_<mode>): Likewise.
35848 (dfp_dscli_<mode>): Likewise.
35849 (dfp_dscri_<mode>): Likewise.
35851 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
35853 (UNSPEC_CDTBCD): Likewise.
35854 (UNSPEC_CBCDTD): Likewise.
35855 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
35856 (UNSPEC_DIVEO): Likewise.
35857 (UNSPEC_DIVEU): Likewise.
35858 (UNSPEC_DIVEUO): Likewise.
35859 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
35860 pack/unpack 128-bit types.
35861 (UNSPEC_PACK_128BIT): Likewise.
35862 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
35863 (udiv<mode>3): Use idiv_ldiv mode attribute.
35864 (div<mode>3): Likewise.
35865 (addg6s): Add new BCD builtin functions.
35866 (cdtbcd): Likewise.
35867 (cbcdtd): Likewise.
35868 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
35869 (div_extend): Likewise.
35870 (div<div_extend>_<mode>"): Likewise.
35871 (FP128_64): Add support for new builtin functions to pack/unpack
35873 (unpack<mode>): Likewise.
35874 (unpacktf_0): Likewise.
35875 (unpacktf_1): Likewise.
35876 (unpack<mode>_dm): Likewise.
35877 (unpack<mode>_nodm): Likewise.
35878 (pack<mode>): Likewise.
35879 (unpackv1ti): Likewise.
35880 (packv1ti): Likewise.
35882 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
35884 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
35887 2014-04-24 Jakub Jelinek <jakub@redhat.com>
35889 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
35890 * gimplify.c (omp_is_private): Change last argument's type to int.
35891 Only diagnose lastprivate if the simd argument is 1, only diagnose
35892 linear if the simd argument is 2.
35893 (gimplify_omp_for): Adjust omp_is_private callers. When adding
35894 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
35895 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
35896 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
35897 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
35898 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
35899 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
35900 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
35901 * tree-nested.c (convert_nonlocal_omp_clauses,
35902 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
35904 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
35907 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
35910 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
35912 * flag-types.h (enum ivar_visibility): Add.
35914 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
35916 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
35917 function * argument.
35919 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
35921 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
35923 2014-04-24 Radovan Obradovic <robradovic@mips.com>
35924 Tom de Vries <tom@codesourcery.com>
35926 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
35927 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
35929 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
35930 * emit-rtl.c (try_split): Same.
35932 2014-04-24 Radovan Obradovic <robradovic@mips.com>
35933 Tom de Vries <tom@codesourcery.com>
35935 * common.opt (fuse-caller-save): New option.
35937 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
35939 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
35940 elements for big-endian.
35942 2014-04-24 Richard Biener <rguenther@suse.de>
35944 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
35945 during TER and instead use the sepops interface for expanding
35946 non-GIMPLE_SINGLE_RHS.
35948 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35950 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
35951 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
35953 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35955 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
35956 assembler 64-bit option.
35957 * configure: Regenerate.
35959 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35961 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
35962 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
35963 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
35964 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
35965 (TARGET_CRYPTO): Take TARGET_SIMD into account.
35967 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35969 * config/aarch64/aarch64-builtins.c
35970 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
35971 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
35972 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
35973 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
35975 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
35976 (Vrevsuff): New mode attribute.
35978 2014-04-24 Terry Guo <terry.guo@arm.com>
35980 * config/arm/arm.h (machine_function): Define variable
35981 after_arm_reorg here.
35982 * config/arm/arm.c (after_arm_reorg): Remove the definition.
35983 (arm_split_constant): Update the way to access variable
35985 (arm_reorg): Ditto.
35986 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
35988 2014-04-23 Tom de Vries <tom@codesourcery.com>
35990 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
35992 2014-04-23 David Malcolm <dmalcolm@redhat.com>
35994 * is-a.h: Update comments to reflect the following changes to the
35995 "pointerness" of the API, making the template parameter match the
35996 return type, allowing use of is-a.h with typedefs of pointers.
35997 (is_a_helper::cast): Return a T rather then a pointer to a T, so
35998 that the return type matches the parameter to the is_a_helper.
36000 (dyn_cast): Likewise.
36002 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
36003 pointer from the is-a.h API.
36005 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
36006 (is_a_helper <cgraph_node *>::test): ...this, matching change to
36008 (is_a_helper <varpool_node>::test): Likewise, convert to...
36009 (is_a_helper <varpool_node *>::test): ...this.
36011 (varpool_first_variable): Update for removal of implicit pointer
36012 from the is-a.h API.
36013 (varpool_next_variable): Likewise.
36014 (varpool_first_static_initializer): Likewise.
36015 (varpool_next_static_initializer): Likewise.
36016 (varpool_first_defined_variable): Likewise.
36017 (varpool_next_defined_variable): Likewise.
36018 (cgraph_first_defined_function): Likewise.
36019 (cgraph_next_defined_function): Likewise.
36020 (cgraph_first_function): Likewise.
36021 (cgraph_next_function): Likewise.
36022 (cgraph_first_function_with_gimple_body): Likewise.
36023 (cgraph_next_function_with_gimple_body): Likewise.
36024 (cgraph_alias_target): Likewise.
36025 (varpool_alias_target): Likewise.
36026 (cgraph_function_or_thunk_node): Likewise.
36027 (varpool_variable_node): Likewise.
36028 (symtab_real_symbol_p): Likewise.
36029 * cgraphunit.c (referred_to_p): Likewise.
36030 (analyze_functions): Likewise.
36031 (handle_alias_pairs): Likewise.
36032 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
36033 * gimple-ssa.h (gimple_vuse_op): Likewise.
36034 (gimple_vdef_op): Likewise.
36035 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
36036 * gimple.c (gimple_build_asm_1): Likewise.
36037 (gimple_build_try): Likewise.
36038 (gimple_build_resx): Likewise.
36039 (gimple_build_eh_dispatch): Likewise.
36040 (gimple_build_omp_for): Likewise.
36041 (gimple_omp_for_set_clauses): Likewise.
36043 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
36044 (is_a_helper <gimple_statement_asm *>::test): ...this.
36045 (is_a_helper <gimple_statement_bind>::test): Convert to...
36046 (is_a_helper <gimple_statement_bind *>::test): ...this.
36047 (is_a_helper <gimple_statement_call>::test): Convert to...
36048 (is_a_helper <gimple_statement_call *>::test): ...this.
36049 (is_a_helper <gimple_statement_catch>::test): Convert to...
36050 (is_a_helper <gimple_statement_catch *>::test): ...this.
36051 (is_a_helper <gimple_statement_resx>::test): Convert to...
36052 (is_a_helper <gimple_statement_resx *>::test): ...this.
36053 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
36054 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
36055 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
36056 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
36057 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
36058 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
36059 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
36060 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
36061 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
36062 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
36063 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
36064 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
36065 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
36066 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
36067 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
36068 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
36069 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
36070 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
36071 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
36072 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
36073 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
36074 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
36075 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
36076 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
36077 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
36078 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
36079 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
36080 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
36081 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
36082 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
36083 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
36084 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
36085 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
36086 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
36087 (is_a_helper <gimple_statement_phi>::test): Convert to...
36088 (is_a_helper <gimple_statement_phi *>::test): ...this.
36089 (is_a_helper <gimple_statement_transaction>::test): Convert to...
36090 (is_a_helper <gimple_statement_transaction *>::test): ...this.
36091 (is_a_helper <gimple_statement_try>::test): Convert to...
36092 (is_a_helper <gimple_statement_try *>::test): ...this.
36093 (is_a_helper <gimple_statement_wce>::test): Convert to...
36094 (is_a_helper <gimple_statement_wce *>::test): ...this.
36095 (is_a_helper <const gimple_statement_asm>::test): Convert to...
36096 (is_a_helper <const gimple_statement_asm *>::test): ...this.
36097 (is_a_helper <const gimple_statement_bind>::test): Convert to...
36098 (is_a_helper <const gimple_statement_bind *>::test): ...this.
36099 (is_a_helper <const gimple_statement_call>::test): Convert to...
36100 (is_a_helper <const gimple_statement_call *>::test): ...this.
36101 (is_a_helper <const gimple_statement_catch>::test): Convert to...
36102 (is_a_helper <const gimple_statement_catch *>::test): ...this.
36103 (is_a_helper <const gimple_statement_resx>::test): Convert to...
36104 (is_a_helper <const gimple_statement_resx *>::test): ...this.
36105 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
36106 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
36107 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
36108 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
36109 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
36111 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
36113 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
36115 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
36117 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
36118 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
36119 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
36121 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
36122 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
36124 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
36125 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
36126 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
36127 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
36128 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
36129 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
36131 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
36132 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
36133 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
36134 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
36136 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
36137 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
36138 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
36139 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
36140 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
36141 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
36142 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
36143 (is_a_helper <const gimple_statement_phi>::test): Convert to...
36144 (is_a_helper <const gimple_statement_phi *>::test): ...this.
36145 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
36146 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
36147 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
36148 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
36149 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
36150 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
36151 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
36153 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
36155 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
36156 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
36158 (gimple_use_ops): Update for removal of implicit pointer from the
36160 (gimple_set_use_ops): Likewise.
36161 (gimple_vuse): Likewise.
36162 (gimple_vdef): Likewise.
36163 (gimple_vuse_ptr): Likewise.
36164 (gimple_vdef_ptr): Likewise.
36165 (gimple_set_vuse): Likewise.
36166 (gimple_set_vdef): Likewise.
36167 (gimple_omp_return_set_lhs): Likewise.
36168 (gimple_omp_return_lhs): Likewise.
36169 (gimple_omp_return_lhs_ptr): Likewise.
36170 (gimple_call_fntype): Likewise.
36171 (gimple_call_set_fntype): Likewise.
36172 (gimple_call_set_internal_fn): Likewise.
36173 (gimple_call_use_set): Likewise.
36174 (gimple_call_clobber_set): Likewise.
36175 (gimple_bind_vars): Likewise.
36176 (gimple_bind_set_vars): Likewise.
36177 (gimple_bind_body_ptr): Likewise.
36178 (gimple_bind_set_body): Likewise.
36179 (gimple_bind_add_stmt): Likewise.
36180 (gimple_bind_block): Likewise.
36181 (gimple_bind_set_block): Likewise.
36182 (gimple_asm_ninputs): Likewise.
36183 (gimple_asm_noutputs): Likewise.
36184 (gimple_asm_nclobbers): Likewise.
36185 (gimple_asm_nlabels): Likewise.
36186 (gimple_asm_input_op): Likewise.
36187 (gimple_asm_input_op_ptr): Likewise.
36188 (gimple_asm_output_op): Likewise.
36189 (gimple_asm_output_op_ptr): Likewise.
36190 (gimple_asm_set_output_op): Likewise.
36191 (gimple_asm_clobber_op): Likewise.
36192 (gimple_asm_set_clobber_op): Likewise.
36193 (gimple_asm_label_op): Likewise.
36194 (gimple_asm_set_label_op): Likewise.
36195 (gimple_asm_string): Likewise.
36196 (gimple_catch_types): Likewise.
36197 (gimple_catch_types_ptr): Likewise.
36198 (gimple_catch_handler_ptr): Likewise.
36199 (gimple_catch_set_types): Likewise.
36200 (gimple_catch_set_handler): Likewise.
36201 (gimple_eh_filter_types): Likewise.
36202 (gimple_eh_filter_types_ptr): Likewise.
36203 (gimple_eh_filter_failure_ptr): Likewise.
36204 (gimple_eh_filter_set_types): Likewise.
36205 (gimple_eh_filter_set_failure): Likewise.
36206 (gimple_eh_must_not_throw_fndecl): Likewise.
36207 (gimple_eh_must_not_throw_set_fndecl): Likewise.
36208 (gimple_eh_else_n_body_ptr): Likewise.
36209 (gimple_eh_else_e_body_ptr): Likewise.
36210 (gimple_eh_else_set_n_body): Likewise.
36211 (gimple_eh_else_set_e_body): Likewise.
36212 (gimple_try_eval_ptr): Likewise.
36213 (gimple_try_cleanup_ptr): Likewise.
36214 (gimple_try_set_eval): Likewise.
36215 (gimple_try_set_cleanup): Likewise.
36216 (gimple_wce_cleanup_ptr): Likewise.
36217 (gimple_wce_set_cleanup): Likewise.
36218 (gimple_phi_capacity): Likewise.
36219 (gimple_phi_num_args): Likewise.
36220 (gimple_phi_result): Likewise.
36221 (gimple_phi_result_ptr): Likewise.
36222 (gimple_phi_set_result): Likewise.
36223 (gimple_phi_arg): Likewise.
36224 (gimple_phi_set_arg): Likewise.
36225 (gimple_resx_region): Likewise.
36226 (gimple_resx_set_region): Likewise.
36227 (gimple_eh_dispatch_region): Likewise.
36228 (gimple_eh_dispatch_set_region): Likewise.
36229 (gimple_omp_critical_name): Likewise.
36230 (gimple_omp_critical_name_ptr): Likewise.
36231 (gimple_omp_critical_set_name): Likewise.
36232 (gimple_omp_for_clauses): Likewise.
36233 (gimple_omp_for_clauses_ptr): Likewise.
36234 (gimple_omp_for_set_clauses): Likewise.
36235 (gimple_omp_for_collapse): Likewise.
36236 (gimple_omp_for_index): Likewise.
36237 (gimple_omp_for_index_ptr): Likewise.
36238 (gimple_omp_for_set_index): Likewise.
36239 (gimple_omp_for_initial): Likewise.
36240 (gimple_omp_for_initial_ptr): Likewise.
36241 (gimple_omp_for_set_initial): Likewise.
36242 (gimple_omp_for_final): Likewise.
36243 (gimple_omp_for_final_ptr): Likewise.
36244 (gimple_omp_for_set_final): Likewise.
36245 (gimple_omp_for_incr): Likewise.
36246 (gimple_omp_for_incr_ptr): Likewise.
36247 (gimple_omp_for_set_incr): Likewise.
36248 (gimple_omp_for_pre_body_ptr): Likewise.
36249 (gimple_omp_for_set_pre_body): Likewise.
36250 (gimple_omp_parallel_clauses): Likewise.
36251 (gimple_omp_parallel_clauses_ptr): Likewise.
36252 (gimple_omp_parallel_set_clauses): Likewise.
36253 (gimple_omp_parallel_child_fn): Likewise.
36254 (gimple_omp_parallel_child_fn_ptr): Likewise.
36255 (gimple_omp_parallel_set_child_fn): Likewise.
36256 (gimple_omp_parallel_data_arg): Likewise.
36257 (gimple_omp_parallel_data_arg_ptr): Likewise.
36258 (gimple_omp_parallel_set_data_arg): Likewise.
36259 (gimple_omp_task_clauses): Likewise.
36260 (gimple_omp_task_clauses_ptr): Likewise.
36261 (gimple_omp_task_set_clauses): Likewise.
36262 (gimple_omp_task_child_fn): Likewise.
36263 (gimple_omp_task_child_fn_ptr): Likewise.
36264 (gimple_omp_task_set_child_fn): Likewise.
36265 (gimple_omp_task_data_arg): Likewise.
36266 (gimple_omp_task_data_arg_ptr): Likewise.
36267 (gimple_omp_task_set_data_arg): Likewise.
36268 (gimple_omp_taskreg_clauses): Likewise.
36269 (gimple_omp_taskreg_clauses_ptr): Likewise.
36270 (gimple_omp_taskreg_set_clauses): Likewise.
36271 (gimple_omp_taskreg_child_fn): Likewise.
36272 (gimple_omp_taskreg_child_fn_ptr): Likewise.
36273 (gimple_omp_taskreg_set_child_fn): Likewise.
36274 (gimple_omp_taskreg_data_arg): Likewise.
36275 (gimple_omp_taskreg_data_arg_ptr): Likewise.
36276 (gimple_omp_taskreg_set_data_arg): Likewise.
36277 (gimple_omp_task_copy_fn): Likewise.
36278 (gimple_omp_task_copy_fn_ptr): Likewise.
36279 (gimple_omp_task_set_copy_fn): Likewise.
36280 (gimple_omp_task_arg_size): Likewise.
36281 (gimple_omp_task_arg_size_ptr): Likewise.
36282 (gimple_omp_task_set_arg_size): Likewise.
36283 (gimple_omp_task_arg_align): Likewise.
36284 (gimple_omp_task_arg_align_ptr): Likewise.
36285 (gimple_omp_task_set_arg_align): Likewise.
36286 (gimple_omp_single_clauses): Likewise.
36287 (gimple_omp_single_clauses_ptr): Likewise.
36288 (gimple_omp_single_set_clauses): Likewise.
36289 (gimple_omp_target_clauses): Likewise.
36290 (gimple_omp_target_clauses_ptr): Likewise.
36291 (gimple_omp_target_set_clauses): Likewise.
36292 (gimple_omp_target_child_fn): Likewise.
36293 (gimple_omp_target_child_fn_ptr): Likewise.
36294 (gimple_omp_target_set_child_fn): Likewise.
36295 (gimple_omp_target_data_arg): Likewise.
36296 (gimple_omp_target_data_arg_ptr): Likewise.
36297 (gimple_omp_target_set_data_arg): Likewise.
36298 (gimple_omp_teams_clauses): Likewise.
36299 (gimple_omp_teams_clauses_ptr): Likewise.
36300 (gimple_omp_teams_set_clauses): Likewise.
36301 (gimple_omp_sections_clauses): Likewise.
36302 (gimple_omp_sections_clauses_ptr): Likewise.
36303 (gimple_omp_sections_set_clauses): Likewise.
36304 (gimple_omp_sections_control): Likewise.
36305 (gimple_omp_sections_control_ptr): Likewise.
36306 (gimple_omp_sections_set_control): Likewise.
36307 (gimple_omp_for_set_cond): Likewise.
36308 (gimple_omp_for_cond): Likewise.
36309 (gimple_omp_atomic_store_set_val): Likewise.
36310 (gimple_omp_atomic_store_val): Likewise.
36311 (gimple_omp_atomic_store_val_ptr): Likewise.
36312 (gimple_omp_atomic_load_set_lhs): Likewise.
36313 (gimple_omp_atomic_load_lhs): Likewise.
36314 (gimple_omp_atomic_load_lhs_ptr): Likewise.
36315 (gimple_omp_atomic_load_set_rhs): Likewise.
36316 (gimple_omp_atomic_load_rhs): Likewise.
36317 (gimple_omp_atomic_load_rhs_ptr): Likewise.
36318 (gimple_omp_continue_control_def): Likewise.
36319 (gimple_omp_continue_control_def_ptr): Likewise.
36320 (gimple_omp_continue_set_control_def): Likewise.
36321 (gimple_omp_continue_control_use): Likewise.
36322 (gimple_omp_continue_control_use_ptr): Likewise.
36323 (gimple_omp_continue_set_control_use): Likewise.
36324 (gimple_transaction_body_ptr): Likewise.
36325 (gimple_transaction_label): Likewise.
36326 (gimple_transaction_label_ptr): Likewise.
36327 (gimple_transaction_set_body): Likewise.
36328 (gimple_transaction_set_label): Likewise.
36330 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
36331 * ipa-inline-analysis.c (inline_write_summary): Likewise.
36332 * ipa-ref.c (ipa_record_reference): Likewise.
36333 * ipa-reference.c (analyze_function): Likewise.
36334 (ipa_reference_write_optimization_summary): Likewise.
36335 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
36336 (address_taken_from_non_vtable_p): Likewise.
36337 (comdat_can_be_unshared_p_1): Likewise.
36338 * lto-cgraph.c (lto_output_ref): Likewise.
36339 (add_references): Likewise.
36340 (compute_ltrans_boundary): Likewise.
36341 (output_symtab): Likewise.
36342 (input_ref): Likewise.
36343 (input_cgraph_1): Likewise.
36344 (output_cgraph_opt_summary): Likewise.
36345 * lto-streamer-out.c (lto_output): Likewise.
36346 (output_symbol_p): Likewise.
36347 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
36348 (lsei_start_function_in_partition): Likewise.
36349 (lsei_next_variable_in_partition): Likewise.
36350 (lsei_start_variable_in_partition): Likewise.
36351 * symtab.c (insert_to_assembler_name_hash): Likewise.
36352 (unlink_from_assembler_name_hash): Likewise.
36353 (symtab_unregister_node): Likewise.
36354 (symtab_remove_node): Likewise.
36355 (dump_symtab_node): Likewise.
36356 (verify_symtab_base): Likewise.
36357 (verify_symtab_node): Likewise.
36358 (symtab_make_decl_local): Likewise.
36359 (symtab_alias_ultimate_target): Likewise.
36360 (symtab_resolve_alias): Likewise.
36361 (symtab_get_symbol_partitioning_class): Likewise.
36362 * tree-phinodes.c (allocate_phi_node): Likewise.
36363 (reserve_phi_args_for_new_edge): Likewise.
36364 (remove_phi_args): Likewise.
36365 * varpool.c (varpool_node_for_asm): Likewise.
36366 (varpool_remove_unreferenced_decls): Likewise.
36368 2014-04-23 Jeff Law <law@redhat.com>
36370 PR tree-optimization/60902
36371 * tree-ssa-threadedge.c
36372 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
36373 invalidate outputs from statements that do not produce useful
36374 outputs for threading.
36376 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
36378 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
36379 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
36380 machine descriptions for Stack Smashing Protector.
36382 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
36384 * aarch64.md (<optab>_rol<mode>3): New pattern.
36385 (<optab>_rolsi3_uxtw): Likewise.
36386 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
36388 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
36390 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
36391 (arm_cortex_a12_tune): Likewise.
36393 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36395 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
36397 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36399 * config/arm/arm.md (arm_rev16si2): New pattern.
36400 (arm_rev16si2_alt): Likewise.
36401 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
36403 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36405 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
36406 (rev16<mode>2_alt): Likewise.
36407 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
36408 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
36409 (aarch_rev16_shleft_mask_imm_p): Likewise.
36410 (aarch_rev16_p_1): Likewise.
36411 (aarch_rev16_p): Likewise.
36412 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
36413 (aarch_rev16_shright_mask_imm_p): Likewise.
36414 (aarch_rev16_shleft_mask_imm_p): Likewise.
36416 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36418 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
36419 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
36421 (cortex_a53_extra_costs): Likewise.
36422 (cortex_a57_extra_costs): Likewise.
36423 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
36424 (cortexa7_extra_costs): Likewise.
36425 (cortexa8_extra_costs): Likewise.
36426 (cortexa12_extra_costs): Likewise.
36427 (cortexa15_extra_costs): Likewise.
36428 (v7m_extra_costs): Likewise.
36429 (arm_new_rtx_costs): Handle BSWAP.
36431 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36433 * config/arm/arm.c (cortexa8_extra_costs): New table.
36434 (arm_cortex_a8_tune): New tuning struct.
36435 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
36437 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36439 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
36441 2014-04-23 Richard Biener <rguenther@suse.de>
36443 * Makefile.in (OBJS): Remove loop-unswitch.o.
36444 * tree-pass.h (make_pass_rtl_unswitch): Remove.
36445 * passes.def (pass_rtl_unswitch): Likewise.
36446 * loop-init.c (gate_rtl_unswitch): Likewise.
36447 (rtl_unswitch): Likewise.
36448 (pass_data_rtl_unswitch): Likewise.
36449 (pass_rtl_unswitch): Likewise.
36450 (make_pass_rtl_unswitch): Likewise.
36451 * rtl.h (reversed_condition): Likewise.
36452 (compare_and_jump_seq): Likewise.
36453 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
36455 * loop-unroll.c (compare_and_jump_seq): Likewise.
36457 2014-04-23 Richard Biener <rguenther@suse.de>
36459 PR tree-optimization/60903
36460 * tree-ssa-loop-im.c (analyze_memory_references): Remove
36461 commented code block.
36462 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
36463 loop flags to newly created BBs and edges.
36465 2014-04-23 Nick Clifton <nickc@redhat.com>
36467 * config/msp430/msp430.c (msp430_handle_option): Move function
36469 (msp430_option_override): Simplify mcu and mcpu option handling.
36470 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
36471 support for -mhwmult command line option.
36472 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
36473 -mhwmult command line option.
36474 (msp430_hwmult_enabled): Delete.
36475 (msp43o_output_labelref): Add support for -mhwmult command line option.
36476 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
36477 (umulsidi3): Likewise.
36478 * config/msp430/msp430.opt (mmcu): Add Report attribute.
36479 (mcpu, mlarge, msmall): Likewise.
36480 (mhwmult): New option.
36481 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
36483 (msp430_is_f5_mcu): Remove prototype.
36484 (msp430_use_f5_series_hwmult): Add prototype.
36485 * config/msp430/msp430-opts.h: New file.
36486 * common/config/msp430: New directory.
36487 * common/config/msp430/msp430-common.c: New file.
36488 * config.gcc (msp430): Remove target_has_targetm_common.
36489 * doc/invoke.texi: Document -mhwmult command line option.
36491 2014-04-23 Nick Clifton <nickc@redhat.com>
36493 * config/i386/cygwin.h (ENDFILE_SPEC): Include
36494 default-manifest.o if it can be found in the search path.
36495 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
36497 2014-04-23 Terry Guo <terry.guo@arm.com>
36499 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
36501 2014-04-23 Richard Biener <rguenther@suse.de>
36503 PR middle-end/60895
36504 * tree-inline.c (declare_return_variable): Use mark_addressable.
36506 2014-04-23 Richard Biener <rguenther@suse.de>
36508 PR middle-end/60891
36509 * loop-init.c (loop_optimizer_init): Make sure to apply
36510 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
36512 2014-04-22 Jakub Jelinek <jakub@redhat.com>
36515 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
36517 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
36518 if flag_sanitize_undefined_trap_on_error.
36519 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
36520 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
36521 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
36522 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
36523 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
36524 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
36525 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
36526 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
36527 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
36528 * ubsan.c (ubsan_instrument_unreachable): Return
36529 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
36530 (ubsan_expand_null_ifn): Emit __builtin_trap ()
36531 if flag_sanitize_undefined_trap_on_error and
36532 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
36533 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
36534 instrument_bool_enum_load): Emit __builtin_trap () if
36535 flag_sanitize_undefined_trap_on_error and
36536 __builtin_handle_*_abort () if !flag_sanitize_recover.
36537 * doc/invoke.texi (-fsanitize-recover,
36538 -fsanitize-undefined-trap-on-error): Document.
36540 2014-04-22 Christian Bruel <christian.bruel@st.com>
36542 * config/sh/sh.md (mov<mode>): Replace movQIHI.
36543 Force immediates to SImode.
36545 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
36547 * config/nios2/nios2.md (UNSPEC_ROUND): New.
36548 (lroundsfsi2): New.
36549 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
36550 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
36551 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
36552 (nios2_fpu_insn): Add entry for round.
36553 (N2FPU_NO_ERRNO_P): Define.
36554 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
36556 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
36558 2014-04-22 Richard Henderson <rth@redhat.com>
36560 * config/aarch64/aarch64 (addti3, subti3): New expanders.
36561 (add<GPI>3_compare0): Remove leading * from name.
36562 (add<GPI>3_carryin): Likewise.
36563 (sub<GPI>3_compare0): Likewise.
36564 (sub<GPI>3_carryin): Likewise.
36565 (<su_optab>mulditi3): New expander.
36566 (multi3): New expander.
36567 (madd<GPI>): Remove leading * from name.
36569 2014-04-22 Martin Jambor <mjambor@suse.cz>
36571 * cgraphclones.c (cgraph_function_versioning): Copy
36572 ipa_transforms_to_apply instead of asserting it is empty.
36574 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
36577 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
36578 on count_exp to get mode.
36580 2014-04-22 Andrew Pinski <apinski@cavium.com>
36582 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
36583 Handle TLS for ILP32.
36584 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
36585 (tlsie_small_<mode>): this and handle PTR.
36586 (tlsie_small_sidi): New pattern.
36587 (tlsle_small): Change to an expand to handle ILP32.
36588 (tlsle_small_<mode>): New pattern.
36589 (tlsdesc_small): Rename to ...
36590 (tlsdesc_small_<mode>): this and handle PTR.
36592 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36594 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
36596 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
36598 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
36599 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
36600 (aarch64_types_signed_poly_qualifiers): Likewise.
36601 (aarch64_types_unsigned_signed_qualifiers): Likewise.
36602 (aarch64_types_poly_signed_qualifiers): Likewise.
36603 (TYPES_REINTERP_SS): Type macro added.
36604 (TYPES_REINTERP_SU): Likewise.
36605 (TYPES_REINTERP_SP): Likewise.
36606 (TYPES_REINTERP_US): Likewise.
36607 (TYPES_REINTERP_PS): Likewise.
36608 (aarch64_fold_builtin): New expression folding added.
36609 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
36610 Declarations removed.
36611 (REINTERP_SS): Declarations added.
36612 (REINTERP_US): Likewise.
36613 (REINTERP_PS): Likewise.
36614 (REINTERP_SU): Likewise.
36615 (REINTERP_SP): Likewise.
36616 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
36617 (vreinterpretq_p8_f64): Likewise.
36618 (vreinterpret_p16_f64): Likewise.
36619 (vreinterpretq_p16_f64): Likewise.
36620 (vreinterpret_f32_f64): Likewise.
36621 (vreinterpretq_f32_f64): Likewise.
36622 (vreinterpret_f64_f32): Likewise.
36623 (vreinterpret_f64_p8): Likewise.
36624 (vreinterpret_f64_p16): Likewise.
36625 (vreinterpret_f64_s8): Likewise.
36626 (vreinterpret_f64_s16): Likewise.
36627 (vreinterpret_f64_s32): Likewise.
36628 (vreinterpret_f64_s64): Likewise.
36629 (vreinterpret_f64_u8): Likewise.
36630 (vreinterpret_f64_u16): Likewise.
36631 (vreinterpret_f64_u32): Likewise.
36632 (vreinterpret_f64_u64): Likewise.
36633 (vreinterpretq_f64_f32): Likewise.
36634 (vreinterpretq_f64_p8): Likewise.
36635 (vreinterpretq_f64_p16): Likewise.
36636 (vreinterpretq_f64_s8): Likewise.
36637 (vreinterpretq_f64_s16): Likewise.
36638 (vreinterpretq_f64_s32): Likewise.
36639 (vreinterpretq_f64_s64): Likewise.
36640 (vreinterpretq_f64_u8): Likewise.
36641 (vreinterpretq_f64_u16): Likewise.
36642 (vreinterpretq_f64_u32): Likewise.
36643 (vreinterpretq_f64_u64): Likewise.
36644 (vreinterpret_s64_f64): Likewise.
36645 (vreinterpretq_s64_f64): Likewise.
36646 (vreinterpret_u64_f64): Likewise.
36647 (vreinterpretq_u64_f64): Likewise.
36648 (vreinterpret_s8_f64): Likewise.
36649 (vreinterpretq_s8_f64): Likewise.
36650 (vreinterpret_s16_f64): Likewise.
36651 (vreinterpretq_s16_f64): Likewise.
36652 (vreinterpret_s32_f64): Likewise.
36653 (vreinterpretq_s32_f64): Likewise.
36654 (vreinterpret_u8_f64): Likewise.
36655 (vreinterpretq_u8_f64): Likewise.
36656 (vreinterpret_u16_f64): Likewise.
36657 (vreinterpretq_u16_f64): Likewise.
36658 (vreinterpret_u32_f64): Likewise.
36659 (vreinterpretq_u32_f64): Likewise.
36661 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
36663 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
36664 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
36665 (vreinterpret_p8_s8): Likewise.
36666 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
36667 (vreinterpret_p8_s16): Likewise.
36668 (vreinterpret_p8_s32): Likewise.
36669 (vreinterpret_p8_s64): Likewise.
36670 (vreinterpret_p8_f32): Likewise.
36671 (vreinterpret_p8_u8): Likewise.
36672 (vreinterpret_p8_u16): Likewise.
36673 (vreinterpret_p8_u32): Likewise.
36674 (vreinterpret_p8_u64): Likewise.
36675 (vreinterpret_p8_p16): Likewise.
36676 (vreinterpretq_p8_s8): Likewise.
36677 (vreinterpretq_p8_s16): Likewise.
36678 (vreinterpretq_p8_s32): Likewise.
36679 (vreinterpretq_p8_s64): Likewise.
36680 (vreinterpretq_p8_f32): Likewise.
36681 (vreinterpretq_p8_u8): Likewise.
36682 (vreinterpretq_p8_u16): Likewise.
36683 (vreinterpretq_p8_u32): Likewise.
36684 (vreinterpretq_p8_u64): Likewise.
36685 (vreinterpretq_p8_p16): Likewise.
36686 (vreinterpret_p16_s8): Likewise.
36687 (vreinterpret_p16_s16): Likewise.
36688 (vreinterpret_p16_s32): Likewise.
36689 (vreinterpret_p16_s64): Likewise.
36690 (vreinterpret_p16_f32): Likewise.
36691 (vreinterpret_p16_u8): Likewise.
36692 (vreinterpret_p16_u16): Likewise.
36693 (vreinterpret_p16_u32): Likewise.
36694 (vreinterpret_p16_u64): Likewise.
36695 (vreinterpret_p16_p8): Likewise.
36696 (vreinterpretq_p16_s8): Likewise.
36697 (vreinterpretq_p16_s16): Likewise.
36698 (vreinterpretq_p16_s32): Likewise.
36699 (vreinterpretq_p16_s64): Likewise.
36700 (vreinterpretq_p16_f32): Likewise.
36701 (vreinterpretq_p16_u8): Likewise.
36702 (vreinterpretq_p16_u16): Likewise.
36703 (vreinterpretq_p16_u32): Likewise.
36704 (vreinterpretq_p16_u64): Likewise.
36705 (vreinterpretq_p16_p8): Likewise.
36706 (vreinterpret_f32_s8): Likewise.
36707 (vreinterpret_f32_s16): Likewise.
36708 (vreinterpret_f32_s32): Likewise.
36709 (vreinterpret_f32_s64): Likewise.
36710 (vreinterpret_f32_u8): Likewise.
36711 (vreinterpret_f32_u16): Likewise.
36712 (vreinterpret_f32_u32): Likewise.
36713 (vreinterpret_f32_u64): Likewise.
36714 (vreinterpret_f32_p8): Likewise.
36715 (vreinterpret_f32_p16): Likewise.
36716 (vreinterpretq_f32_s8): Likewise.
36717 (vreinterpretq_f32_s16): Likewise.
36718 (vreinterpretq_f32_s32): Likewise.
36719 (vreinterpretq_f32_s64): Likewise.
36720 (vreinterpretq_f32_u8): Likewise.
36721 (vreinterpretq_f32_u16): Likewise.
36722 (vreinterpretq_f32_u32): Likewise.
36723 (vreinterpretq_f32_u64): Likewise.
36724 (vreinterpretq_f32_p8): Likewise.
36725 (vreinterpretq_f32_p16): Likewise.
36726 (vreinterpret_s64_s8): Likewise.
36727 (vreinterpret_s64_s16): Likewise.
36728 (vreinterpret_s64_s32): Likewise.
36729 (vreinterpret_s64_f32): Likewise.
36730 (vreinterpret_s64_u8): Likewise.
36731 (vreinterpret_s64_u16): Likewise.
36732 (vreinterpret_s64_u32): Likewise.
36733 (vreinterpret_s64_u64): Likewise.
36734 (vreinterpret_s64_p8): Likewise.
36735 (vreinterpret_s64_p16): Likewise.
36736 (vreinterpretq_s64_s8): Likewise.
36737 (vreinterpretq_s64_s16): Likewise.
36738 (vreinterpretq_s64_s32): Likewise.
36739 (vreinterpretq_s64_f32): Likewise.
36740 (vreinterpretq_s64_u8): Likewise.
36741 (vreinterpretq_s64_u16): Likewise.
36742 (vreinterpretq_s64_u32): Likewise.
36743 (vreinterpretq_s64_u64): Likewise.
36744 (vreinterpretq_s64_p8): Likewise.
36745 (vreinterpretq_s64_p16): Likewise.
36746 (vreinterpret_u64_s8): Likewise.
36747 (vreinterpret_u64_s16): Likewise.
36748 (vreinterpret_u64_s32): Likewise.
36749 (vreinterpret_u64_s64): Likewise.
36750 (vreinterpret_u64_f32): Likewise.
36751 (vreinterpret_u64_u8): Likewise.
36752 (vreinterpret_u64_u16): Likewise.
36753 (vreinterpret_u64_u32): Likewise.
36754 (vreinterpret_u64_p8): Likewise.
36755 (vreinterpret_u64_p16): Likewise.
36756 (vreinterpretq_u64_s8): Likewise.
36757 (vreinterpretq_u64_s16): Likewise.
36758 (vreinterpretq_u64_s32): Likewise.
36759 (vreinterpretq_u64_s64): Likewise.
36760 (vreinterpretq_u64_f32): Likewise.
36761 (vreinterpretq_u64_u8): Likewise.
36762 (vreinterpretq_u64_u16): Likewise.
36763 (vreinterpretq_u64_u32): Likewise.
36764 (vreinterpretq_u64_p8): Likewise.
36765 (vreinterpretq_u64_p16): Likewise.
36766 (vreinterpret_s8_s16): Likewise.
36767 (vreinterpret_s8_s32): Likewise.
36768 (vreinterpret_s8_s64): Likewise.
36769 (vreinterpret_s8_f32): Likewise.
36770 (vreinterpret_s8_u8): Likewise.
36771 (vreinterpret_s8_u16): Likewise.
36772 (vreinterpret_s8_u32): Likewise.
36773 (vreinterpret_s8_u64): Likewise.
36774 (vreinterpret_s8_p8): Likewise.
36775 (vreinterpret_s8_p16): Likewise.
36776 (vreinterpretq_s8_s16): Likewise.
36777 (vreinterpretq_s8_s32): Likewise.
36778 (vreinterpretq_s8_s64): Likewise.
36779 (vreinterpretq_s8_f32): Likewise.
36780 (vreinterpretq_s8_u8): Likewise.
36781 (vreinterpretq_s8_u16): Likewise.
36782 (vreinterpretq_s8_u32): Likewise.
36783 (vreinterpretq_s8_u64): Likewise.
36784 (vreinterpretq_s8_p8): Likewise.
36785 (vreinterpretq_s8_p16): Likewise.
36786 (vreinterpret_s16_s8): Likewise.
36787 (vreinterpret_s16_s32): Likewise.
36788 (vreinterpret_s16_s64): Likewise.
36789 (vreinterpret_s16_f32): Likewise.
36790 (vreinterpret_s16_u8): Likewise.
36791 (vreinterpret_s16_u16): Likewise.
36792 (vreinterpret_s16_u32): Likewise.
36793 (vreinterpret_s16_u64): Likewise.
36794 (vreinterpret_s16_p8): Likewise.
36795 (vreinterpret_s16_p16): Likewise.
36796 (vreinterpretq_s16_s8): Likewise.
36797 (vreinterpretq_s16_s32): Likewise.
36798 (vreinterpretq_s16_s64): Likewise.
36799 (vreinterpretq_s16_f32): Likewise.
36800 (vreinterpretq_s16_u8): Likewise.
36801 (vreinterpretq_s16_u16): Likewise.
36802 (vreinterpretq_s16_u32): Likewise.
36803 (vreinterpretq_s16_u64): Likewise.
36804 (vreinterpretq_s16_p8): Likewise.
36805 (vreinterpretq_s16_p16): Likewise.
36806 (vreinterpret_s32_s8): Likewise.
36807 (vreinterpret_s32_s16): Likewise.
36808 (vreinterpret_s32_s64): Likewise.
36809 (vreinterpret_s32_f32): Likewise.
36810 (vreinterpret_s32_u8): Likewise.
36811 (vreinterpret_s32_u16): Likewise.
36812 (vreinterpret_s32_u32): Likewise.
36813 (vreinterpret_s32_u64): Likewise.
36814 (vreinterpret_s32_p8): Likewise.
36815 (vreinterpret_s32_p16): Likewise.
36816 (vreinterpretq_s32_s8): Likewise.
36817 (vreinterpretq_s32_s16): Likewise.
36818 (vreinterpretq_s32_s64): Likewise.
36819 (vreinterpretq_s32_f32): Likewise.
36820 (vreinterpretq_s32_u8): Likewise.
36821 (vreinterpretq_s32_u16): Likewise.
36822 (vreinterpretq_s32_u32): Likewise.
36823 (vreinterpretq_s32_u64): Likewise.
36824 (vreinterpretq_s32_p8): Likewise.
36825 (vreinterpretq_s32_p16): Likewise.
36826 (vreinterpret_u8_s8): Likewise.
36827 (vreinterpret_u8_s16): Likewise.
36828 (vreinterpret_u8_s32): Likewise.
36829 (vreinterpret_u8_s64): Likewise.
36830 (vreinterpret_u8_f32): Likewise.
36831 (vreinterpret_u8_u16): Likewise.
36832 (vreinterpret_u8_u32): Likewise.
36833 (vreinterpret_u8_u64): Likewise.
36834 (vreinterpret_u8_p8): Likewise.
36835 (vreinterpret_u8_p16): Likewise.
36836 (vreinterpretq_u8_s8): Likewise.
36837 (vreinterpretq_u8_s16): Likewise.
36838 (vreinterpretq_u8_s32): Likewise.
36839 (vreinterpretq_u8_s64): Likewise.
36840 (vreinterpretq_u8_f32): Likewise.
36841 (vreinterpretq_u8_u16): Likewise.
36842 (vreinterpretq_u8_u32): Likewise.
36843 (vreinterpretq_u8_u64): Likewise.
36844 (vreinterpretq_u8_p8): Likewise.
36845 (vreinterpretq_u8_p16): Likewise.
36846 (vreinterpret_u16_s8): Likewise.
36847 (vreinterpret_u16_s16): Likewise.
36848 (vreinterpret_u16_s32): Likewise.
36849 (vreinterpret_u16_s64): Likewise.
36850 (vreinterpret_u16_f32): Likewise.
36851 (vreinterpret_u16_u8): Likewise.
36852 (vreinterpret_u16_u32): Likewise.
36853 (vreinterpret_u16_u64): Likewise.
36854 (vreinterpret_u16_p8): Likewise.
36855 (vreinterpret_u16_p16): Likewise.
36856 (vreinterpretq_u16_s8): Likewise.
36857 (vreinterpretq_u16_s16): Likewise.
36858 (vreinterpretq_u16_s32): Likewise.
36859 (vreinterpretq_u16_s64): Likewise.
36860 (vreinterpretq_u16_f32): Likewise.
36861 (vreinterpretq_u16_u8): Likewise.
36862 (vreinterpretq_u16_u32): Likewise.
36863 (vreinterpretq_u16_u64): Likewise.
36864 (vreinterpretq_u16_p8): Likewise.
36865 (vreinterpretq_u16_p16): Likewise.
36866 (vreinterpret_u32_s8): Likewise.
36867 (vreinterpret_u32_s16): Likewise.
36868 (vreinterpret_u32_s32): Likewise.
36869 (vreinterpret_u32_s64): Likewise.
36870 (vreinterpret_u32_f32): Likewise.
36871 (vreinterpret_u32_u8): Likewise.
36872 (vreinterpret_u32_u16): Likewise.
36873 (vreinterpret_u32_u64): Likewise.
36874 (vreinterpret_u32_p8): Likewise.
36875 (vreinterpret_u32_p16): Likewise.
36876 (vreinterpretq_u32_s8): Likewise.
36877 (vreinterpretq_u32_s16): Likewise.
36878 (vreinterpretq_u32_s32): Likewise.
36879 (vreinterpretq_u32_s64): Likewise.
36880 (vreinterpretq_u32_f32): Likewise.
36881 (vreinterpretq_u32_u8): Likewise.
36882 (vreinterpretq_u32_u16): Likewise.
36883 (vreinterpretq_u32_u64): Likewise.
36884 (vreinterpretq_u32_p8): Likewise.
36885 (vreinterpretq_u32_p16): Likewise.
36887 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
36889 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
36891 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
36893 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
36894 (vqnegd_s64): Likewise.
36895 (vqabs_s64): Likewise.
36896 (vqabsd_s64): Likewise.
36898 2014-04-22 Richard Henderson <rth@redhat.com>
36900 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
36901 computation to the top of the loop.
36903 2014-04-22 Renlin <renlin.li@arm.com>
36904 Jiong Wang <jiong.wang@arm.com>
36906 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
36907 * config/aarch64/aarch64.c (aarch64_layout_frame)
36908 (aarch64_initial_elimination_offset): Likewise.
36910 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
36912 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
36915 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
36917 * machmode.h (bitwise_mode_for_mode): Declare.
36918 * stor-layout.h (bitwise_type_for_mode): Likewise.
36919 * stor-layout.c (bitwise_mode_for_mode): New function.
36920 (bitwise_type_for_mode): Likewise.
36921 * builtins.c (fold_builtin_memory_op): Use it instead of
36922 int_mode_for_mode and build_nonstandard_integer_type.
36924 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36926 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
36927 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
36928 (*-*-solaris2*): Simplify.
36929 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
36930 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
36931 *-*-solaris2.9* handling.
36933 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
36935 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
36936 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
36937 handling, simplify.
36938 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
36939 * configure: Regenerate.
36941 * config/i386/sol2-9.h: Remove.
36943 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
36944 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
36945 Remove Solaris 9 references.
36947 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
36949 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
36950 (floatuns<GPI:mode><GPF:mode>2): Remove.
36951 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
36952 and floatuns conversions.
36953 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
36954 and floatuns conversions.
36955 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
36956 (w1,w2): New mode attributes for inequal width conversions.
36958 2014-04-22 Renlin Li <Renlin.Li@arm.com>
36960 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
36961 the output asm format.
36963 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
36965 * config/aarch64/aarch64-simd.md
36966 (aarch64_cm<optab>di): Always split.
36967 (*aarch64_cm<optab>di): New.
36968 (aarch64_cmtstdi): Always split.
36969 (*aarch64_cmtstdi): New.
36971 2014-04-22 Jakub Jelinek <jakub@redhat.com>
36973 PR tree-optimization/60823
36974 * omp-low.c (ipa_simd_modify_function_body): Go through
36975 all SSA_NAMEs and for those refering to vector arguments
36976 which are going to be replaced adjust SSA_NAME_VAR and,
36977 if it is a default definition, change it into a non-default
36978 definition assigned at the beginning of function from new_decl.
36979 (ipa_simd_modify_stmt_ops): Rewritten.
36980 * tree-dfa.c (set_ssa_default_def): When removing default def,
36981 check for NULL loc instead of NULL *loc.
36983 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36985 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
36986 restrictions on core registers for DImode values in Thumb2.
36988 2014-04-22 Ian Bolton <ian.bolton@arm.com>
36990 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
36991 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
36993 2014-04-22 Ian Bolton <ian.bolton@arm.com>
36995 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
36996 (*iordi_notzesidi_di): Likewise.
36997 (*iordi_notsesidi_di): Likewise.
36999 2014-04-22 Ian Bolton <ian.bolton@arm.com>
37001 * config/arm/arm-protos.h (tune_params): New struct members.
37002 * config/arm/arm.c: Initialise tune_params per processor.
37003 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
37004 for speed, based on new tune_params.
37006 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
37008 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
37009 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
37010 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
37011 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
37012 * config/aarch64/arm_neon.h (vrnd_f64): Added.
37013 (vrnda_f64): Likewise.
37014 (vrndi_f64): Likewise.
37015 (vrndm_f64): Likewise.
37016 (vrndn_f64): Likewise.
37017 (vrndp_f64): Likewise.
37018 (vrndx_f64): Likewise.
37020 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
37022 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
37023 GET_MODE_SIZE argument is enum machine_mode.
37025 2014-04-22 Jakub Jelinek <jakub@redhat.com>
37028 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
37029 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
37031 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
37033 PR middle-end/60281
37034 * asan.c (asan_emit_stack_protection): Force the base to align to
37035 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
37036 appropriate bits if STRICT_ALIGNMENT.
37037 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
37039 (expand_used_vars): Leave a space in the stack frame for alignment
37040 if STRICT_ALIGNMENT.
37042 2014-04-21 David Malcolm <dmalcolm@redhat.com>
37044 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
37046 (gimple_store_p): Likewise.
37047 (gimple_assign_load_p): Likewise.
37048 (gimple_assign_cast_p): Likewise.
37049 (gimple_clobber_p): Likewise.
37051 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
37052 rather than a gimple.
37053 (gimple_assign_cast_p): Likewise.
37055 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
37058 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
37059 If mode is DDmode and TARGET_E500_DOUBLE allow move.
37061 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
37062 more debug information for E500 if -mdebug=reg.
37064 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
37067 * config/i386/i386.c (ix86_expand_builtin)
37068 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
37069 register for target RTX.
37070 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
37072 2014-04-18 Cong Hou <congh@google.com>
37074 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
37075 the widen-mult pattern by handling two operands with different sizes,
37076 and operands whose size is smaller than half of the result type.
37078 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
37080 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
37081 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
37082 (do_estimate_edge_time): Compute it.
37083 * ipa-inline.c (want_inline_small_function_p): Bypass
37084 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
37086 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
37088 * ipa-inline.c (spec_rem): New static variable.
37089 (dump_overall_stats): New function.
37090 (dump_inline_stats): New function.
37092 2014-04-18 Richard Henderson <rth@redhat.com>
37094 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
37095 to GET_MODE_SIZE, not a reg_class_t.
37097 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37099 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
37100 (vsx_xxmrglw_<mode>): Likewise.
37102 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
37105 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
37106 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
37107 (rs6000_init_hard_regno_mode_ok): Likewise.
37109 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
37111 * ipa-inline.c (inline_small_functions): Account only non-cold
37113 * doc/invoke.texi (inline-unit-growth): Update documentation.
37115 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
37117 * config/rs6000/rs6000.md (addti3, subti3): New.
37119 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
37122 * config/i386/i386.c (ix86_expand_clear): Remove outdated
37123 comment. Check optimize_insn_for_size_p instead of
37124 optimize_insn_for_speed_p.
37126 2014-04-17 Martin Jambor <mjambor@suse.cz>
37128 * gimple-iterator.c (gsi_start_edge): New function.
37129 * gimple-iterator.h (gsi_start_edge): Declare.
37130 * tree-sra.c (single_non_eh_succ): New function.
37131 (disqualify_ops_if_throwing_stmt): Renamed to
37132 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
37133 having one non-EH successor BB.
37134 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
37135 generate loads into replacements.
37136 (sra_modify_assign): Likewise and and also use the simple path for
37138 (sra_modify_function_body): Commit statements on edges.
37140 2014-04-17 Richard Biener <rguenther@suse.de>
37142 PR middle-end/60849
37143 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
37144 comparison results and add clarifying comment.
37146 2014-04-17 Jakub Jelinek <jakub@redhat.com>
37148 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
37149 (blank_mode): Initialize it.
37150 (emit_mode_size_inline, emit_mode_nunits_inline,
37151 emit_mode_inner_inline): New functions.
37152 (emit_insn_modes_h): Call them and surround their output with
37153 #if GCC_VERSION >= 4001 ... #endif.
37154 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
37155 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
37156 mode_* arrays if the argument is __builtin_constant_p.
37157 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
37158 is enum machine_mode.
37160 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
37162 * passes.c (opt_pass::execute): Adjust.
37163 (pass_manager::execute_pass_mode_switching): Likewise.
37164 (early_local_passes::execute): Likewise.
37165 (execute_one_pass): Pass cfun to the pass's execute method.
37166 * tree-pass.h (opt_pass::execute): Add function * argument.
37167 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
37168 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
37169 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
37170 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
37171 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
37172 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
37173 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
37174 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
37175 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
37176 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
37177 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
37178 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
37179 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
37180 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
37181 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
37182 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
37183 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
37184 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
37185 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
37186 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
37187 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
37188 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
37189 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
37190 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
37191 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
37192 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
37193 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
37194 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
37195 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
37198 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
37200 * passes.c (opt_pass::gate): Take function * argument.
37201 (gate_all_early_local_passes): Merge into
37202 (early_local_passes::gate): this.
37203 (gate_all_early_optimizations): Merge into
37204 (all_early_optimizations::gate): this.
37205 (gate_all_optimizations): Mege into
37206 (all_optimizations::gate): this.
37207 (gate_all_optimizations_g): Merge into
37208 (all_optimizations_g::gate): this.
37209 (gate_rest_of_compilation): Mege into
37210 (rest_of_compilation::gate): this.
37211 (gate_postreload): Merge into
37212 (postreload::gate): this.
37213 (dump_one_pass): Pass cfun to the pass's gate method.
37214 (execute_ipa_summary_passes): Likewise.
37215 (execute_one_pass): Likewise.
37216 (ipa_write_summaries_2): Likewise.
37217 (ipa_write_optimization_summaries_1): Likewise.
37218 (ipa_read_summaries_1): Likewise.
37219 (ipa_read_optimization_summaries_1): Likewise.
37220 (execute_ipa_stmt_fixups): Likewise.
37221 * tree-pass.h (opt_pass::gate): Add function * argument.
37222 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
37223 combine-stack-adj.c, combine.c, compare-elim.c,
37224 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
37225 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
37226 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
37227 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
37228 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
37229 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
37230 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
37231 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
37232 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
37233 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
37234 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
37235 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
37236 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
37237 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
37238 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
37239 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
37240 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
37241 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
37242 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
37243 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
37244 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
37245 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
37246 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
37247 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
37248 var-tracking.c, vtable-verify.c, web.c: Adjust.
37250 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
37252 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
37253 * configure: Regenerate.
37255 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
37257 * passes.c (dump_one_pass): don't check pass->has_gate.
37258 (execute_ipa_summary_passes): Likewise.
37259 (execute_one_pass): Likewise.
37260 (ipa_write_summaries_2): Likewise.
37261 (ipa_write_optimization_summaries_1): Likewise.
37262 (ipa_read_optimization_summaries_1): Likewise.
37263 (execute_ipa_stmt_fixups): Likewise.
37264 * tree-pass.h (pass_data::has_gate): Remove.
37265 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
37266 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
37267 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
37268 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
37269 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
37270 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
37271 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
37272 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
37273 gimple-low.c, gimple-ssa-isolate-paths.c,
37274 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
37275 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
37276 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
37277 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
37278 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
37279 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
37280 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
37281 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
37282 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
37283 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
37284 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
37285 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
37286 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
37287 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
37288 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
37289 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
37290 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
37291 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
37292 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
37293 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
37294 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
37295 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
37298 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
37300 * pass_manager.h (pass_manager::register_dump_files_1): Remove
37302 * passes.c (pass_manager::register_dump_files_1): Merge into
37303 (pass_manager::register_dump_files): this, and remove its handling of
37304 properties since the pass always has the properties anyway.
37305 (pass_manager::pass_manager): Adjust.
37307 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
37309 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
37310 * passes.c (pass_manager::register_dump_files_1): Remove dead code
37311 dealing with properties.
37312 (pass_manager::register_dump_files): Adjust.
37314 2014-03-20 Mark Wielaard <mjw@redhat.com>
37316 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
37317 then represent the bound as normal constant value.
37319 2014-04-17 Jakub Jelinek <jakub@redhat.com>
37322 Forward port from 4.8 branch
37323 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
37325 * config/i386/bmiintrin.h (_blsi_u32): New.
37326 (_blsi_u64): Ditto.
37327 (_blsr_u32): Ditto.
37328 (_blsr_u64): Ditto.
37329 (_blsmsk_u32): Ditto.
37330 (_blsmsk_u64): Ditto.
37331 (_tzcnt_u32): Ditto.
37332 (_tzcnt_u64): Ditto.
37334 2014-04-17 Kito Cheng <kito@0xlab.org>
37336 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
37338 2014-04-17 Richard Biener <rguenther@suse.de>
37340 PR middle-end/60849
37341 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
37342 boolean results for comparisons.
37344 2014-04-17 Richard Biener <rguenther@suse.de>
37346 PR tree-optimization/60836
37347 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
37348 initial PHI args to be gimple values.
37350 2014-04-17 Richard Biener <rguenther@suse.de>
37352 PR tree-optimization/60841
37353 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
37354 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
37355 of stmts to SLP build.
37356 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
37357 (vect_analyze_slp): Likewise.
37358 (vect_analyze_slp_instance): Likewise.
37359 (vect_build_slp_tree): Limit overall SLP tree growth.
37360 * tree-vectorizer.h (vect_analyze_data_refs,
37361 vect_analyze_slp): Adjust prototypes.
37363 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
37365 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
37368 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
37370 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
37371 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
37372 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
37373 for TARGET_SLOW_PSHUFB
37375 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
37377 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
37378 * config/i386/i386.c (intel_cost): Ditto.
37380 2014-04-17 Joey Ye <joey.ye@arm.com>
37382 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
37384 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
37386 * opts.c (common_handle_option): Disable -fipa-reference coorectly
37387 with -fuse-profile.
37389 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
37391 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
37392 (type_all_derivations_known_p): New predicate.
37393 (type_all_ctors_visible_p): New predicate.
37394 (type_possibly_instantiated_p): New predicate.
37395 (get_odr_type): Compute all_derivations_known.
37396 (dump_odr_type): Dump the flag.
37397 (maybe_record_type): Cleanup.
37398 (record_target_from_binfo): Add bases_to_consider array;
37399 record bases for types w/o instances and skip CXX destructor.
37400 (possible_polymorphic_call_targets_1): Add bases_to_consider
37401 and consider_construction parameters; check if type may have instance.
37402 (get_polymorphic_call_info): Set maybe_in_construction to true
37403 when we know nothing.
37404 (record_targets_from_bases): Skip CXX destructors; they are
37405 never called for types in construction.
37406 (possible_polymorphic_call_targets): Do not record target when
37407 type may not have instance.
37409 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
37412 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
37413 external aliases alive, too.
37415 2014-04-16 Andrew Pinski <apinski@cavium.com>
37417 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
37420 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
37422 * final.c (compute_alignments): Do not apply loop alignment to a block
37423 falling through to the exit.
37425 2014-04-16 Catherine Moore <clm@codesourcery.com>
37427 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
37428 Adjust constraints for microMIPS store patterns.
37430 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
37432 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
37434 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
37436 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
37437 (append_use): Run at -O0.
37438 (append_vdef): Likewise.
37439 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
37440 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
37442 2014-04-16 Jakub Jelinek <jakub@redhat.com>
37444 PR tree-optimization/60844
37445 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
37446 (propagate_op_to_single_use, remove_visited_stmt_chain,
37447 linearize_expr, repropagate_negates, reassociate_bb): Use it
37448 instead of gsi_remove.
37450 2014-04-16 Martin Jambor <mjambor@suse.cz>
37452 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
37453 ipa_transforms_to_apply.
37454 (cgraph_function_versioning): Assert that old_node has empty
37455 ipa_transforms_to_apply.
37456 * trans-mem.c (ipa_tm_create_version): Likewise.
37457 * tree-inline.c (tree_function_versioning): Do not duplicate
37458 ipa_transforms_to_apply.
37460 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37463 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
37465 Pass necessary as flags on 64-bit Solaris/x86.
37466 Use lowercase relocs for x86_64-*-*.
37467 * configure: Regenerate.
37469 2014-04-15 Jan Hubicka <jh@suse.cz>
37471 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
37472 (maybe_record_node, likely_target_p): Use it.
37474 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37477 Revert following patch
37479 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
37482 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
37483 software floating point or no floating point registers, do not
37484 allow any type in the FPRs. Eliminate a test for SPE SIMD types
37485 in GPRs that occurs after we tested for GPRs that would never be
37488 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
37489 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
37490 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
37491 specifically allow DDmode, since that does not use the SPE SIMD
37494 2014-03-21 Mark Wielaard <mjw@redhat.com>
37496 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
37497 as unsigned or int depending on type and value used.
37499 2014-04-15 Richard Biener <rguenther@suse.de>
37501 PR rtl-optimization/56965
37502 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
37503 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
37505 * alias.c (true_dependence_1): Do not call
37506 nonoverlapping_component_refs_p.
37507 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
37508 nonoverlapping_component_refs_p.
37509 (indirect_refs_may_alias_p): Likewise.
37511 2014-04-15 Teresa Johnson <tejohnson@google.com>
37513 * cfg.c (dump_bb_info): Fix flags check.
37514 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
37516 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37518 PR rtl-optimization/60663
37519 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
37522 2014-04-15 Richard Biener <rguenther@suse.de>
37524 * lto-streamer.h (LTO_major_version): Bump to 4.
37526 2014-04-15 Richard Biener <rguenther@suse.de>
37528 * common.opt (lto_partition_model): New enum.
37529 (flto-partition=): Merge separate options with a single with argument,
37530 add -flto-partition=one support.
37531 * flag-types.h (enum lto_partition_model): Declare.
37532 * opts.c (finish_options): Remove duplicate -flto-partition=
37534 * lto-wrapper.c (run_gcc): Adjust.
37536 2014-04-15 Richard Biener <rguenther@suse.de>
37538 * alias.c (ncr_compar): New function.
37539 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
37541 2014-04-15 Richard Biener <rguenther@suse.de>
37543 * alias.c (record_component_aliases): Do not walk BINFOs.
37545 2014-04-15 Richard Biener <rguenther@suse.de>
37547 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
37548 Add struct function argument and adjust.
37549 (find_func_aliases_for_call): Likewise.
37550 (find_func_aliases): Likewise.
37551 (find_func_clobbers): Likewise.
37552 (intra_create_variable_infos): Likewise.
37553 (compute_points_to_sets): Likewise.
37554 (ipa_pta_execute): Adjust. Do not push/pop cfun.
37556 2014-04-15 Richard Biener <rguenther@suse.de>
37558 * tree.c (iterative_hash_expr): Use enum tree_code_class
37559 to store TREE_CODE_CLASS.
37560 (tree_block): Likewise.
37561 (tree_set_block): Likewise.
37562 * tree.h (fold_build_pointer_plus_loc): Use
37563 convert_to_ptrofftype_loc.
37565 2014-04-15 Jakub Jelinek <jakub@redhat.com>
37568 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
37571 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
37573 * cfgloop.h (struct loop): Move force_vectorize down.
37574 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
37575 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
37576 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
37577 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
37578 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
37579 * tree-core.h (enum annot_expr_kind): Add new kind values.
37580 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
37581 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
37583 * tree.def (ANNOTATE_EXPR): Tweak comment.
37585 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
37587 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
37590 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
37592 * tree.h (TYPE_IDENTIFIER): Declare.
37593 * tree.c (subrange_type_for_debug_p): Use it.
37594 * godump.c (go_format_type): Likewise.
37595 * dwarf2out.c (is_cxx_auto, modified_type_die,
37596 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
37597 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
37599 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
37602 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
37604 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
37606 * config/i386/i386.c (examine_argument): Return bool. Return true if
37607 parameter should be passed in memory.
37608 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
37609 (construct_container): Update calls to examine_argument.
37610 (function_arg_advance_64): Ditto.
37611 (return_in_memory_32): Merge with ix86_return_in_memory.
37612 (return_in_memory_64): Ditto.
37613 (return_in_memory_ms_64): Ditto.
37615 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
37617 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
37618 * coverage.c (coverage_compute_profile_id): Handle externally visible
37621 2014-04-14 Martin Jambor <mjambor@suse.cz>
37623 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
37624 DECL_DISREGARD_INLINE_LIMITS functions.
37626 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
37629 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
37631 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
37634 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
37635 optimize_insn_for_speed_p instead of
37636 optimize_function_for_speed_p.
37638 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
37640 * doc/invoke.texi (free): Document AArch64.
37642 2014-04-14 Richard Biener <rguenther@suse.de>
37644 PR tree-optimization/60042
37645 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
37646 (insert_into_preds_of_block): Do not prevent PHI insertion
37647 for REFERENCE exprs here ...
37648 (eliminate_dom_walker::before_dom_children): ... but prevent
37649 their use here under similar conditions when applied to the
37650 IL after PRE optimizations.
37652 2014-04-14 Richard Biener <rguenther@suse.de>
37654 * passes.def: Move early points-to after early SRA.
37656 2014-04-14 Richard Biener <rguenther@suse.de>
37658 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
37659 check for which sign-changes we allow when forwarding
37660 a converted value into a switch.
37662 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
37664 * stor-layout.c (place_field): Finalize non-constant offset for the
37667 2014-04-14 Richard Biener <rguenther@suse.de>
37669 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
37671 (expand_switch_using_bit_tests_p): Likewise.
37672 (process_switch): Compute and pass on speed_p based on the
37674 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
37675 optimize_bb_for_speed_p.
37677 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
37679 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
37680 * function.h (struct function): Rename has_force_vect_loops into
37681 has_force_vectorize_loops.
37682 * lto-streamer-in.c (input_cfg): Adjust for renaming.
37683 (input_struct_function_base): Likewise.
37684 * lto-streamer-out.c (output_cfg): Likewise.
37685 (output_struct_function_base): Likewise.
37686 * omp-low.c (expand_omp_simd): Likewise.
37687 * tree-cfg.c (move_sese_region_to_fn): Likewise.
37688 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
37689 (version_loop_for_if_conversion): Likewise.
37690 (tree_if_conversion): Likewise.
37691 (main_tree_if_conversion): Likewise.
37692 (gate_tree_if_conversion): Likewise.
37693 * tree-inline.c (copy_loops): Likewise.
37694 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
37695 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
37696 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
37697 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
37698 * tree-vectorizer.c (vectorize_loops): Likewise.
37699 * tree-vectorizer.h (unlimited_cost_model): Likewise.
37701 2014-04-14 Richard Biener <rguenther@suse.de>
37704 * lto-streamer-out.c (wrap_refs): New function.
37705 (lto_output): Wrap symbol references in global initializes in
37706 type-preserving MEM_REFs.
37708 2014-04-14 Christian Bruel <christian.bruel@st.com>
37710 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
37712 2014-04-14 Christian Bruel <christian.bruel@st.com>
37714 * config/sh/sh.md (setmemqi): New expand pattern.
37715 * config/sh/sh.h (CLEAR_RATIO): Define.
37716 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
37717 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
37719 2014-04-14 Richard Biener <rguenther@suse.de>
37721 PR middle-end/55022
37722 * fold-const.c (negate_expr_p): Don't negate directional rounding
37724 (fold_negate_expr): Likewise.
37726 2014-04-14 Richard Biener <rguenther@suse.de>
37728 PR tree-optimization/59817
37729 PR tree-optimization/60453
37730 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
37731 recursion to catch all CHRECs in the scalar evolution and restrict
37732 the predicate for the remains appropriately.
37734 2014-04-12 Catherine Moore <clm@codesourcery.com>
37736 * config/mips/constraints.md: Add new register constraint "kb".
37737 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
37738 (*movhi_internal): Likewise.
37739 (*movqi_internal): Likewise.
37740 * config/mips/mips.h (M16_STORE_REGS): New register class.
37741 (REG_CLASS_NAMES): Add M16_STORE_REGS.
37742 (REG_CLASS_CONTENTS): Likewise.
37743 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
37745 2014-04-11 Tobias Burnus <burnus@net-b.de>
37748 * doc/invoke.texi (-Wformat-signedness): Document it.
37749 (Wformat=2): Mention that this enables -Wformat-signedness.
37751 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
37753 * common/config/epiphany/epiphany-common.c
37754 (epiphany_option_optimization_table): Enable section anchors by
37755 default at -O1 or higher.
37756 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
37757 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
37758 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
37759 carries no extra cost.
37760 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
37761 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
37762 * config/epiphany/predicates.md (memclob_operand): New predicate.
37763 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
37764 Use memclob_operand predicate and X constraint for operand 3.
37766 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
37768 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
37769 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
37772 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
37774 PR rtl-optimization/60651
37775 * mode-switching.c (optimize_mode_switching): Make sure to emit
37776 sets of a lower numbered entity before sets of a higher numbered
37777 entity to a mode of the same or lower priority.
37778 When creating a seginfo for a basic block that starts with a code
37779 label, move the insertion point past the code label.
37780 (new_seginfo): Document and enforce requirement that
37781 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
37782 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
37783 * doc/tm.texi: Regenerate.
37785 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
37788 * config/arc/arc.c (arc_save_restore): Fix assert typo.
37790 2013-04-11 Jakub Jelinek <jakub@redhat.com>
37792 * BASE-VER: Set to 4.10.0.
37794 2014-04-11 Tobias Burnus <burnus@net-b.de>
37797 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
37798 * doc/gcc.texi (Service): Update description in the @menu
37799 * doc/invoke.texi (Option Summary): Remove misplaced and
37802 2014-04-11 Steve Ellcey <sellcey@mips.com>
37803 Jakub Jelinek <jakub@redhat.com>
37805 PR middle-end/60556
37806 * expr.c (convert_move): Use emit_store_flag_force instead of
37807 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
37810 2014-04-11 Richard Biener <rguenther@suse.de>
37812 PR middle-end/60797
37813 * varasm.c (assemble_alias): Avoid endless error reporting
37814 recursion by setting TREE_ASM_WRITTEN.
37816 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37818 * config/s390/s390.md: Add a splitter for NOT rtx.
37820 2014-04-11 Jakub Jelinek <jakub@redhat.com>
37822 PR rtl-optimization/60663
37823 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
37825 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
37826 Jakub Jelinek <jakub@redhat.com>
37829 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
37830 flag from decl_node to node.
37832 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
37835 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
37836 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
37837 ameliorating the cases where it can be.
37839 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
37842 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
37844 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
37845 (loadsync_<mode>): Change mode.
37846 (load_quadpti, store_quadpti): New.
37847 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
37848 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
37849 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
37851 2014-04-09 Cong Hou <congh@google.com>
37854 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
37857 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37859 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
37860 instead of vnor to exploit possible fusion opportunity in the
37862 (altivec_expand_vec_perm_const_le): Likewise.
37864 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
37866 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
37867 (loadsync_<mode>): Change mode.
37868 (load_quadpti, store_quadpti): New.
37869 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
37870 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
37872 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
37875 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
37876 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
37877 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
37879 2014-04-08 Richard Biener <rguenther@suse.de>
37881 PR middle-end/60706
37882 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
37883 a 64bit widest int print double-int similar to on HWI64 hosts.
37885 2014-04-08 Richard Biener <rguenther@suse.de>
37887 PR tree-optimization/60785
37888 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
37889 default defs properly.
37891 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
37893 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
37894 (Weffc++): Likewise.
37896 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
37898 * ipa-devirt.c (maybe_record_node): When node is not recorded,
37899 set completep to false rather than true.
37901 2014-04-07 Douglas B Rupp <rupp@adacore.com>
37904 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
37905 ARM_TARGET2_DWARF_FORMAT.
37907 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
37910 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
37911 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
37914 2014-04-07 Richard Biener <rguenther@suse.de>
37916 PR tree-optimization/60766
37917 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
37918 (may_eliminate_iv): Convert cand_value_at result to desired type.
37920 2014-04-07 Jason Merrill <jason@redhat.com>
37923 * common.opt (-fno-gnu-unique): Add.
37924 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
37926 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37928 * haifa-sched.c: Fix outdated function reference and minor
37929 grammar errors in introductory comment.
37931 2014-04-07 Richard Biener <rguenther@suse.de>
37933 PR middle-end/60750
37934 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
37935 for noreturn calls.
37936 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
37938 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
37941 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
37942 size accounting for thunks.
37943 (pa_asm_output_mi_thunk): Use final_start_function() and
37944 final_end_function() to output function start and end directives.
37946 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
37948 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
37949 device specific ISA/ feature information. Remove short_sp and
37950 errata_skip ds. Add avr_device_specific_features enum to have device
37952 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
37953 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
37954 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
37955 updated device specific info.
37956 * config/avr/avr-mcus.def: Merge device specific details to
37957 dev_attribute field.
37958 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
37960 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
37961 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
37962 assembler if RMW isa supported by current device.
37963 * config/avr/genmultilib.awk: Update as device info structure changed.
37964 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
37966 2014-04-04 Cong Hou <congh@google.com>
37968 PR tree-optimization/60656
37969 * tree-vect-stmts.c (supportable_widening_operation):
37970 Fix a bug that elements in a vector with vect_used_by_reduction
37971 property are incorrectly reordered when the operation on it is not
37972 consistant with the one in reduction operation.
37974 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
37976 PR rtl-optimization/60155
37977 * gcse.c (record_set_data): New function.
37978 (single_set_gcse): New function.
37979 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
37980 (hoist_code): Likewise.
37981 (get_pressure_class_and_nregs): Likewise.
37983 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
37985 * explow.c (probe_stack_range): Emit a final optimization blockage.
37987 2014-04-04 Anthony Green <green@moxielogic.com>
37989 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
37992 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
37995 * lto-cgraph.c (input_overwrite_node): Check that partitioning
37996 flags are set only during streaming.
37997 * ipa.c (process_references, walk_polymorphic_call_targets,
37998 symtab_remove_unreachable_nodes): Drop bodies of always inline
37999 after early inlining.
38000 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
38002 2014-04-04 Jakub Jelinek <jakub@redhat.com>
38003 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38006 * dwarf2out.c (const_ok_for_output_1): Reject expressions
38009 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38012 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
38014 (cortex_a53_fdivd): Likewise.
38016 2014-04-04 Martin Jambor <mjambor@suse.cz>
38019 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
38020 Adjust all callers.
38021 * cgraph.c (clone_of_p): Also return true if thunks match.
38022 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
38023 cgraph_function_or_thunk_node and an obsolete comment.
38024 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
38026 (build_function_decl_skip_args): Likewise.
38027 (set_new_clone_decl_and_node_flags): New function.
38028 (duplicate_thunk_for_node): Likewise.
38029 (redirect_edge_duplicating_thunks): Likewise.
38030 (cgraph_clone_node): New parameter args_to_skip, pass it to
38031 redirect_edge_duplicating_thunks which is called instead of
38032 cgraph_redirect_edge_callee.
38033 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
38034 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
38036 2014-04-04 Jeff Law <law@redhat.com>
38039 * config/arm/predicates.md (const_int_I_operand): New predicate.
38040 (const_int_M_operand): Similarly.
38041 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
38043 (insv_t2, extv_reg, extzv_t2): Likewise.
38044 (load_multiple_with_writeback): Similarly for const_int_I_operand.
38045 (pop_multiple_with_writeback_and_return): Likewise.
38046 (vfp_pop_multiple_with_writeback): Likewise
38048 2014-04-04 Richard Biener <rguenther@suse.de>
38051 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
38052 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
38054 * gimplify.h (gimple_add_tmp_var_fn): Declare.
38055 * gimplify.c (gimple_add_tmp_var_fn): New function.
38056 * gimple-expr.h (create_tmp_reg_fn): Declare.
38057 * gimple-expr.c (create_tmp_reg_fn): New function.
38058 * gimple-low.c (record_vars_into): Don't change cfun.
38059 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
38060 code generation without cfun.
38062 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
38065 * Makefile.in (install-driver): Fix shell scripting.
38067 2014-04-03 Cong Hou <congh@google.com>
38069 PR tree-optimization/60505
38070 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
38071 threshold of number of iterations below which no vectorization
38073 * tree-vect-loop.c (new_loop_vec_info):
38074 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
38075 * tree-vect-loop.c (vect_analyze_loop_operations):
38076 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
38077 * tree-vect-loop.c (vect_transform_loop):
38078 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
38079 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
38080 of iterations of the loop and see if we should build the epilogue.
38082 2014-04-03 Richard Biener <rguenther@suse.de>
38084 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
38085 (streamer_tree_cache_create): Adjust.
38086 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
38087 to allow optional nodes array.
38088 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
38089 (streamer_tree_cache_append): Likewise.
38090 (streamer_tree_cache_create): Create nodes array optionally
38091 as specified by parameter.
38092 * lto-streamer-out.c (create_output_block): Avoid maintaining
38093 the node array in the writer cache.
38094 (DFS_write_tree): Remove assertion.
38095 (produce_asm_for_decls): Free the out decl state hash table early.
38096 * lto-streamer-in.c (lto_data_in_create): Adjust for
38097 streamer_tree_cache_create prototype change.
38099 2014-04-03 Richard Biener <rguenther@suse.de>
38101 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
38102 set TREE_CHAIN to NULL_TREE.
38104 2014-04-03 Richard Biener <rguenther@suse.de>
38106 PR tree-optimization/60740
38107 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
38108 over all GIMPLE_COND operands.
38110 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
38112 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
38113 (Weffc++): Remove Scott's numbering, merge lists and reference
38116 2014-04-03 Nick Clifton <nickc@redhat.com>
38118 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
38121 2014-04-03 Martin Jambor <mjambor@suse.cz>
38123 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
38124 mention gcc_unreachable before failing.
38125 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
38128 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
38131 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
38132 inconsistent code and instead mark the context inconsistent.
38133 (possible_polymorphic_call_targets): For inconsistent contexts
38134 return empty complete list.
38136 2014-04-02 Anthony Green <green@moxielogic.com>
38138 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
38139 (extendqisi2, extendhisi2): Define.
38140 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
38141 (WCHAR_TYPE): Change to unsigned int.
38143 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
38145 PR tree-optimization/60733
38146 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
38147 insertion point for PHI candidates to be the end of the feeding
38148 block for the PHI argument.
38150 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
38152 PR rtl-optimization/60650
38153 * lra-constraints.c (process_alt_operands): Decrease reject for
38154 earlyclobber matching.
38156 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38158 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
38160 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38162 * config/spu/spu.c (pad_bb): Do not crash when the last
38163 insn is CODE_FOR_blockage.
38165 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38167 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
38168 lies outside the target mode.
38170 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
38173 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
38174 software floating point or no floating point registers, do not
38175 allow any type in the FPRs. Eliminate a test for SPE SIMD types
38176 in GPRs that occurs after we tested for GPRs that would never be
38179 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
38180 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
38181 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
38182 specifically allow DDmode, since that does not use the SPE SIMD
38185 2014-04-02 Richard Biener <rguenther@suse.de>
38187 PR middle-end/60729
38188 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
38189 MODE_INTs. Properly use negv_optab.
38190 (expand_abs): Likewise.
38192 2014-04-02 Richard Biener <rguenther@suse.de>
38195 * Makefile.in (install-driver): Guard extra installs with special
38198 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
38200 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
38201 Document vec_vgbbd.
38203 2014-04-01 Richard Henderson <rth@redhat.com>
38206 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
38207 alternative enabled before register allocation.
38209 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
38211 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
38212 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
38214 (nios2_large_got_address): Remove unneeded 'sym' parameter.
38215 (nios2_got_address): Update nios2_large_got_address call site.
38216 (nios2_delegitimize_address): New function.
38217 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
38218 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
38219 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
38221 2014-04-01 Martin Husemann <martin@duskware.de>
38223 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
38226 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
38228 PR rtl-optimization/60604
38229 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
38230 check from register_operand.
38231 (register_operand): Redefine in terms of general_operand.
38232 (nonmemory_operand): Use register_operand for the non-constant cases.
38234 2014-04-01 Richard Biener <rguenther@suse.de>
38236 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
38238 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
38240 * doc/invoke.texi (mapp-regs): Clarify.
38242 2014-03-31 Ulrich Drepper <drepper@gmail.com>
38244 * config/i386/avx512fintrin.h (__v32hi): Define type.
38245 (__v64qi): Likewise.
38246 (_mm512_set1_epi8): Define.
38247 (_mm512_set1_epi16): Define.
38248 (_mm512_set4_epi32): Define.
38249 (_mm512_set4_epi64): Define.
38250 (_mm512_set4_pd): Define.
38251 (_mm512_set4_ps): Define.
38252 (_mm512_setr4_epi64): Define.
38253 (_mm512_setr4_epi32): Define.
38254 (_mm512_setr4_pd): Define.
38255 (_mm512_setr4_ps): Define.
38256 (_mm512_setzero_epi32): Define.
38258 2014-03-31 Martin Jambor <mjambor@suse.cz>
38260 PR middle-end/60647
38261 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
38262 callsite_arguments_match_p. Updated all callers. Also check types of
38263 corresponding formal parameters and actual arguments.
38264 (not_all_callers_have_enough_arguments_p) Renamed to
38265 some_callers_have_mismatched_arguments_p.
38267 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
38269 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
38271 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
38274 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
38277 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
38279 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
38280 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
38282 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
38283 Use FMAMODE_NOVF512 mode iterator.
38284 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
38285 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
38286 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
38287 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
38289 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
38290 Use VF_128_256 mode iterator.
38291 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
38294 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
38296 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
38297 static chain if needed.
38299 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
38302 * lra-constraints.c (index_part_to_reg): New.
38303 (process_address): Use it.
38305 2014-03-27 Jeff Law <law@redhat.com>
38306 Jakub Jelinek <jakub@redhat.com>
38309 * expr.c (do_tablejump): Use simplify_gen_binary rather than
38310 gen_rtx_{PLUS,MULT} to build up the address expression.
38312 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
38313 creating non-canonical RTL.
38315 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
38318 * ipa-inline.c (want_inline_small_function_p): Short circuit large
38319 functions; reorganize to make cheap checks first.
38320 (inline_small_functions): Do not estimate growth when dumping;
38322 * ipa-inline.h (inline_summary): Add min_size.
38323 (growth_likely_positive): New function.
38324 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
38325 (set_cond_stmt_execution_predicate): Cleanup.
38326 (estimate_edge_size_and_time): Compute min_size.
38327 (estimate_calls_size_and_time): Likewise.
38328 (estimate_node_size_and_time): Likewise.
38329 (inline_update_overall_summary): Update min_size.
38330 (do_estimate_edge_time): Likewise.
38331 (do_estimate_edge_size): Update.
38332 (do_estimate_edge_hints): Update.
38333 (growth_likely_positive): New function.
38335 2014-03-28 Jakub Jelinek <jakub@redhat.com>
38338 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
38339 also if addr has VOIDmode.
38341 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38343 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
38344 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
38346 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
38347 instructions as well as AdvancedSIMD loads.
38349 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38351 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
38352 Use crypto_aese type.
38353 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
38354 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
38355 crypto_aese, crypto_aesmc. Move to types.md.
38356 * config/arm/types.md (crypto_aes): Split into crypto_aese,
38358 * config/arm/iterators.md (crypto_type): Likewise.
38360 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
38362 * cgraph.c: Include expr.h and tree-dfa.h.
38363 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
38366 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
38369 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
38370 regs from checking multi-reg pseudos.
38372 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38374 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
38376 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
38378 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
38379 if it would clobber the stack pointer, even temporarily.
38381 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
38383 * mode-switching.c: Make small adjustments to the top comment.
38385 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
38387 * config/rs6000/constraints.md (wD constraint): New constraint to
38388 match the constant integer to get the top DImode/DFmode out of a
38389 vector in a VSX register.
38391 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
38392 match the constant integer to get the top DImode/DFmode out of a
38393 vector in a VSX register.
38395 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
38398 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
38401 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
38402 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
38404 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
38405 Optimize vec_extract of 64-bit values, where the value being
38406 extracted is in the top word, where we can use scalar
38407 instructions. Add direct move and store support. Combine the big
38408 endian/little endian vector select load support into a single insn.
38409 (vsx_extract_<mode>_internal1): Likewise.
38410 (vsx_extract_<mode>_internal2): Likewise.
38411 (vsx_extract_<mode>_load): Likewise.
38412 (vsx_extract_<mode>_store): Likewise.
38413 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
38414 combined into vsx_extract_<mode>_load.
38415 (vsx_extract_<mode>_one_le): Likewise.
38417 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
38418 define the top 64-bit vector element.
38420 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
38423 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
38424 Document vec_vbpermq builtin.
38427 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
38428 enable use of xxsldwi and xxpermdi builtin functions.
38429 (vec_xxpermdi): Likewise.
38431 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
38432 Document use of vec_xxsldwi and vec_xxpermdi builtins.
38434 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
38436 PR rtl-optimization/60650
38437 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
38439 (find_spills_for): New.
38440 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
38441 Spill all pseudos on the second iteration.
38443 2014-03-27 Marek Polacek <polacek@redhat.com>
38446 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
38449 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38451 * config/s390/s390.c (s390_can_use_return_insn): Check for
38452 call-saved FPRs on 31 bit.
38454 2014-03-27 Jakub Jelinek <jakub@redhat.com>
38456 PR middle-end/60682
38457 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
38458 if they need regimplification, just drop them instead of
38459 calling gimple_regimplify_operands on them.
38461 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
38464 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
38465 (aarch64_frame_pointer_required): Adjust logic.
38466 (aarch64_can_eliminate): Adjust logic.
38467 (aarch64_override_options_after_change): Adjust logic.
38469 2014-03-27 Dehao Chen <dehao@google.com>
38471 * ipa-inline.c (early_inliner): Update node's inline info.
38473 2014-03-26 Dehao Chen <dehao@google.com>
38475 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
38476 compiler inserted conditional jumps for NAN float check.
38478 2014-03-26 Jakub Jelinek <jakub@redhat.com>
38480 * ubsan.h (ubsan_create_data): Change second argument's type
38481 to const location_t *.
38482 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
38484 (ubsan_create_data): Change second argument to const location_t *PLOC.
38485 Create Loc field whenever PLOC is non-NULL.
38486 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
38487 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
38491 * real.c (real_to_integer2): Change type of low to UHWI.
38493 2014-03-26 Tobias Burnus <burnus@net-b.de>
38495 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
38496 (CILK_SELF_SPECS): New define.
38497 (driver_self_specs): Use it.
38499 2014-03-26 Richard Biener <rguenther@suse.de>
38501 * tree-pretty-print.c (percent_K_format): Implement special
38502 case for LTO and its stripped down BLOCK tree.
38504 2014-03-26 Jakub Jelinek <jakub@redhat.com>
38507 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
38509 * tree-vrp.c (simplify_internal_call_using_ranges): If only
38510 one range is range_int_cst_p, but not both, at least optimize
38511 addition/subtraction of 0 and multiplication by 0 or 1.
38512 * gimple-fold.c (gimple_fold_call): Fold
38513 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
38514 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
38515 INTEGER_CSTs, try to fold at least x * 0 and y - y.
38517 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
38519 PR rtl-optimization/60452
38520 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
38521 <case REG>: Return 1 for invalid offsets from the frame pointer.
38523 2014-03-26 Marek Polacek <polacek@redhat.com>
38526 * doc/extend.texi (C Extensions): Mention variable-length arrays in
38529 2014-03-26 Marek Polacek <polacek@redhat.com>
38532 * doc/extend.texi (Designated Inits): Describe what happens to omitted
38535 2014-03-26 Marek Polacek <polacek@redhat.com>
38538 * ira-color.c (update_conflict_hard_regno_costs): Perform the
38539 multiplication in unsigned type.
38541 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
38543 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
38545 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
38547 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
38549 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
38552 * cif-code.def (UNREACHABLE) New code.
38553 * ipa-inline.c (inline_small_functions): Skip edges to
38554 __builtlin_unreachable.
38555 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
38556 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
38557 predicate to __bulitin_unreachable.
38558 (set_cond_stmt_execution_predicate): Fix issue when
38559 invert_tree_comparison returns ERROR_MARK.
38560 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
38561 propagate to inline clones.
38562 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
38564 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
38565 * cgraphclones.c (cgraph_clone_node): If call destination is already
38566 ureachable, do not redirect it back.
38567 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
38570 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
38572 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
38573 Do not modify inline clones.
38575 2014-03-25 Jakub Jelinek <jakub@redhat.com>
38577 * config/i386/i386.md (general_sext_operand): New mode attr.
38578 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
38579 don't generate (sign_extend (const_int)).
38580 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
38581 operands[2]. Use We constraint instead of <i> and
38582 <general_sext_operand> predicate instead of <general_operand>.
38583 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
38584 * config/i386/constraints.md (We): New constraint.
38585 * config/i386/predicates.md (x86_64_sext_operand,
38586 sext_operand): New predicates.
38588 2014-03-25 Martin Jambor <mjambor@suse.cz>
38591 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
38592 inconsistent devirtualizations to __builtin_unreachable.
38594 2014-03-25 Marek Polacek <polacek@redhat.com>
38597 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
38599 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
38601 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
38602 order of elements for big-endian.
38604 2014-03-25 Richard Biener <rguenther@suse.de>
38606 PR middle-end/60635
38607 * gimplify-me.c (gimple_regimplify_operands): Update the
38610 2014-03-25 Martin Jambor <mjambor@suse.cz>
38613 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
38614 (lto_output_varpool_node): Likewise.
38615 (input_overwrite_node): Likewise.
38616 (input_varpool_node): Likewise.
38618 2014-03-25 Richard Biener <rguenther@suse.de>
38620 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
38621 (run_gcc): Likewise.
38623 2014-03-25 Jakub Jelinek <jakub@redhat.com>
38625 * combine.c (simplify_compare_const): Add MODE argument.
38626 Handle mode_width 0 as very large mode_width.
38627 (try_combine, simplify_comparison): Adjust callers.
38629 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
38630 type to avoid signed integer overflow.
38631 * explow.c (plus_constant): Likewise.
38633 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
38635 * doc/generic.texi: Correct typos.
38637 2014-03-24 Tobias Burnus <burnus@net-b.de>
38639 * doc/invoke.texi (-flto): Expand section about
38640 using static libraries with LTO.
38642 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38644 PR rtl-optimization/60501
38645 * optabs.def (addptr3_optab): New optab.
38646 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
38647 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
38648 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
38650 * lra.c (emit_add3_insn): Use the addptr pattern if available.
38652 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
38654 2014-03-24 Ulrich Drepper <drepper@gmail.com>
38656 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
38659 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
38660 (_mm256_undefined_ps): Define.
38661 (_mm256_undefined_pd): Define.
38662 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
38663 (_mm_undefined_pd): Define.
38664 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
38665 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
38666 (_mm512_undefined_ps): Define.
38667 (_mm512_undefined_pd): Define.
38668 Use _mm*_undefined_*.
38669 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
38671 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
38673 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
38674 (lshr_simd): DI mode added.
38675 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
38676 (aarch64_ushr_simddi): Likewise.
38677 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
38678 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
38679 (vshrd_n_u64): Likewise.
38681 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38683 * Makefile.in (s-macro_list): Depend on cc1.
38685 2014-03-23 Teresa Johnson <tejohnson@google.com>
38687 * ipa-utils.c (ipa_print_order): Use specified dump file.
38689 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
38691 PR rtl-optimization/60601
38692 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
38694 * gcc.c (eval_spec_function): Initialize save_growing_value.
38696 2014-03-22 Jakub Jelinek <jakub@redhat.com>
38699 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
38700 code == MINUS_EXPR, never swap op0 with op1.
38702 * toplev.c (init_local_tick): Avoid signed integer multiplication
38704 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
38705 shift by first operand's bitsize.
38707 2014-03-21 Jakub Jelinek <jakub@redhat.com>
38710 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
38711 redefine to 1 or 0.
38712 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
38713 TARGET_ISA_64BIT_P(x).
38715 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
38717 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
38718 pattern for vector nor instead of subtract from splat(-1).
38719 (altivec_expand_vec_perm_const_le): Likewise.
38721 2014-03-21 Richard Henderson <rth@twiddle.net>
38724 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
38725 related insns after epilogue_completed.
38727 2014-03-21 Martin Jambor <mjambor@suse.cz>
38730 * cgraph.h (symtab_node): New flag body_removed.
38731 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
38732 when removing bodies.
38733 * symtab.c (dump_symtab_base): Dump body_removed flag.
38734 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
38735 had their bodies removed.
38737 2014-03-21 Martin Jambor <mjambor@suse.cz>
38740 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
38743 2014-03-21 Richard Biener <rguenther@suse.de>
38745 PR tree-optimization/60577
38746 * tree-core.h (struct tree_base): Document nothrow_flag use
38747 in DECL_NONALIASED.
38748 * tree.h (DECL_NONALIASED): New.
38749 (may_be_aliased): Adjust.
38750 * coverage.c (build_var): Set DECL_NONALIASED.
38752 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
38754 * expr.c (expand_expr_real_1): Remove outdated comment.
38756 2014-03-20 Jakub Jelinek <jakub@redhat.com>
38758 PR middle-end/60597
38759 * ira.c (adjust_cleared_regs): Call copy_rtx on
38760 *reg_equiv[REGNO (loc)].src_p before passing it to
38761 simplify_replace_fn_rtx.
38764 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
38765 into CONST, put pic register as first operand of PLUS. Use
38766 gen_const_mem for both 32-bit and 64-bit PIC got loads.
38768 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38770 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
38772 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
38774 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
38775 around for store forwarding issue in the FPU on the UT699.
38776 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
38777 loads and operations if -mfix-ut699 is specified.
38778 (divtf3_hq): Tweak attribute.
38779 (sqrttf2_hq): Likewise.
38781 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
38783 * calls.c (store_one_arg): Remove incorrect const qualification on the
38784 type of the temporary.
38785 * cfgexpand.c (expand_return): Likewise.
38786 * expr.c (expand_constructor): Likewise.
38787 (expand_expr_real_1): Likewise.
38789 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
38791 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
38794 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
38797 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
38799 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
38801 * config/arm/aarch-common-protos.h
38802 (alu_cost_table): Fix spelling of "extend".
38803 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
38805 2014-03-19 Richard Biener <rguenther@suse.de>
38807 PR middle-end/60553
38808 * tree-core.h (tree_type_common): Re-order pointer members
38809 to reduce recursion depth during GC walks.
38811 2014-03-19 Marek Polacek <polacek@redhat.com>
38814 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
38815 before accessing it.
38817 2014-03-19 Richard Biener <rguenther@suse.de>
38820 * lto-streamer-in.c (input_function): In WPA stage do not drop
38823 2014-03-19 Jakub Jelinek <jakub@redhat.com>
38825 PR tree-optimization/60559
38826 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
38827 with build_zero_cst assignment.
38829 2014-03-18 Kai Tietz <ktietz@redhat.com>
38831 PR rtl-optimization/56356
38832 * sdbout.c (sdbout_parms): Verify that parms'
38833 incoming argument is valid.
38834 (sdbout_reg_parms): Likewise.
38836 2014-03-18 Richard Henderson <rth@redhat.com>
38839 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
38840 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
38841 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
38843 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
38845 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
38846 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
38847 Italicize plugin event names in description. Explain that
38848 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
38849 Remind that no GCC functions should be called after PLUGIN_FINISH.
38850 Explain what pragmas with expansion are.
38852 2014-03-18 Martin Liska <mliska@suse.cz>
38854 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
38855 gimple call statement is update.
38856 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
38857 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
38859 2014-03-18 Jakub Jelinek <jakub@redhat.com>
38862 * ubsan.c (ubsan_instrument_unreachable): Call
38863 initialize_sanitizer_builtins.
38864 (ubsan_pass): Likewise.
38867 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
38868 varpool_finalize_decl instead of rest_of_decl_compilation.
38870 2014-03-18 Richard Biener <rguenther@suse.de>
38872 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
38873 by using bitmap_and_compl instead of bitmap_and_compl_into.
38874 (df_rd_transfer_function): Likewise.
38876 2014-03-18 Richard Biener <rguenther@suse.de>
38878 * doc/lto.texi (fresolution): Fix typo.
38880 2014-03-18 Richard Biener <rguenther@suse.de>
38882 * doc/invoke.texi (flto): Update for changes in 4.9.
38884 2014-03-18 Richard Biener <rguenther@suse.de>
38886 * doc/loop.texi: Remove section on the removed lambda framework.
38887 Update loop docs with recent changes in preserving loop structure.
38889 2014-03-18 Richard Biener <rguenther@suse.de>
38891 * doc/lto.texi (-fresolution): Document.
38893 2014-03-18 Richard Biener <rguenther@suse.de>
38895 * doc/contrib.texi: Adjust my name.
38897 2014-03-18 Jakub Jelinek <jakub@redhat.com>
38900 * internal-fn.c: Include diagnostic-core.h.
38901 (expand_BUILTIN_EXPECT): New function.
38902 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
38903 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
38904 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
38905 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
38906 IFN_BUILTIN_EXPECT.
38907 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
38908 Revert 3 argument __builtin_expect code.
38909 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
38910 * gimple-fold.c (gimple_fold_call): Likewise.
38911 * tree.h (fold_builtin_expect): New prototype.
38912 * builtins.c (build_builtin_expect_predicate): Add predictor
38913 argument, if non-NULL, create 3 argument __builtin_expect.
38914 (fold_builtin_expect): No longer static. Add ARG2 argument,
38915 pass it through to build_builtin_expect_predicate.
38916 (fold_builtin_2): Adjust caller.
38917 (fold_builtin_3): Handle BUILT_IN_EXPECT.
38918 * internal-fn.def (BUILTIN_EXPECT): New.
38920 2014-03-18 Tobias Burnus <burnus@net-b.de>
38923 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
38924 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
38925 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
38927 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
38930 * predict.c (combine_predictions_for_bb): Fix up formatting.
38931 (expr_expected_value_1, expr_expected_value): Add predictor argument,
38932 fill what it points to if non-NULL.
38933 (tree_predict_by_opcode): Adjust caller, use the predictor.
38934 * predict.def (PRED_COMPARE_AND_SWAP): Add.
38936 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
38938 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
38939 proper constant for the store mode.
38941 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
38943 * symtab.c (change_decl_assembler_name): Fix transparent alias
38944 chain construction.
38946 2014-03-16 Renlin Li <Renlin.Li@arm.com>
38948 * config/aarch64/aarch64.c: Correct the comments about the
38949 aarch64 stack layout.
38951 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
38953 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
38954 check for GF_OMP_FOR_KIND_FOR.
38956 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
38958 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
38959 ymm and zmm register names.
38961 2014-03-17 Jakub Jelinek <jakub@redhat.com>
38964 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
38965 note creation for the 2010-08-31 changes.
38967 2014-03-17 Marek Polacek <polacek@redhat.com>
38969 PR middle-end/60534
38970 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
38971 as -fno-tree-loop-vectorize.
38972 (expand_omp_simd): Likewise.
38974 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
38976 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
38977 (eligible_for_call_delay): New prototype.
38978 * config/sparc/sparc.c (tls_call_delay): Rename into...
38979 (eligible_for_call_delay): ...this. Return false if the instruction
38980 cannot be put in the delay slot of a branch.
38981 (eligible_for_restore_insn): Simplify.
38982 (eligible_for_return_delay): Return false if the instruction cannot be
38983 put in the delay slot of a branch and simplify.
38984 (eligible_for_sibcall_delay): Return false if the instruction cannot be
38985 put in the delay slot of a branch.
38986 * config/sparc/sparc.md (fix_ut699): New attribute.
38987 (tls_call_delay): Delete.
38988 (in_call_delay): Reimplement.
38989 (eligible_for_sibcall_delay): Rename into...
38990 (in_sibcall_delay): ...this.
38991 (eligible_for_return_delay): Rename into...
38992 (in_return_delay): ...this.
38993 (in_branch_delay): Reimplement.
38994 (in_uncond_branch_delay): Delete.
38995 (in_annul_branch_delay): Delete.
38997 2014-03-14 Richard Henderson <rth@redhat.com>
39000 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
39001 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
39002 (*floathi<X87MODEF>2_i387_with_temp): Remove.
39003 (floathi splitters): Remove.
39004 (float<SWI48x>xf2): New pattern.
39005 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
39006 code that tried to handle DImode for 32-bit, but which was excluded
39007 by the pattern's condition. Drop allocation of stack temporary.
39008 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
39009 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
39010 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
39011 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
39012 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
39013 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
39014 (*float<SWI48><MODEF>2_sse_interunit): Remove.
39015 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
39016 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
39017 (*float<SWI48x><X87MODEF>2_i387): Remove.
39018 (all float _with_temp splitters): Remove.
39019 (*float<SWI48x><MODEF>2_i387): New pattern.
39020 (*float<SWI48><MODEF>2_sse): New pattern.
39021 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
39022 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
39024 2014-03-14 Jakub Jelinek <jakub@redhat.com>
39025 Marek Polacek <polacek@redhat.com>
39027 PR middle-end/60484
39028 * common.opt (dump_base_name_prefixed): New Variable.
39029 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
39030 if x_dump_base_name_prefixed is already set, set it at the end.
39032 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
39034 PR rtl-optimization/60508
39035 * lra-constraints.c (get_reload_reg): Add new parameter
39037 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
39038 Pass the new parameter values.
39040 2014-03-14 Richard Biener <rguenther@suse.de>
39042 * common.opt: Revert unintented changes from r205065.
39043 * opts.c: Likewise.
39045 2014-03-14 Richard Biener <rguenther@suse.de>
39047 PR middle-end/60518
39048 * cfghooks.c (split_block): Properly adjust all loops the
39049 block was a latch of.
39051 2014-03-14 Martin Jambor <mjambor@suse.cz>
39054 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
39057 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
39060 * config/avr/avr.c (avr_set_current_function): Pass function name
39061 through default_strip_name_encoding before sanity checking instead
39062 of skipping the first char of the assembler name.
39064 2014-03-13 Richard Henderson <rth@redhat.com>
39067 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
39068 (ix86_force_to_memory, ix86_free_from_memory): Remove.
39069 * config/i386/i386-protos.h: Likewise.
39070 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
39071 in the expander instead of a splitter.
39072 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
39073 any possibility of requiring a memory.
39074 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
39075 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
39076 (fp branch splitters): Update for ix86_split_fp_branch.
39077 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
39078 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
39079 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
39080 (*fop_<MODEF>_2_i387): Remove f/r alternative.
39081 (*fop_<MODEF>_3_i387): Likewise.
39082 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
39083 (splitters for the fop_* register patterns): Remove.
39084 (fscalexf4_i387): Rename from *fscalexf4_i387.
39085 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
39087 2014-03-13 Jakub Jelinek <jakub@redhat.com>
39089 PR tree-optimization/59779
39090 * tree-dfa.c (get_ref_base_and_extent): Use double_int
39091 type for bitsize and maxsize instead of HOST_WIDE_INT.
39093 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
39095 PR rtl-optimization/57320
39096 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
39097 the CFG after thread_prologue_and_epilogue_insns.
39099 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
39101 PR rtl-optimization/57189
39102 * lra-constraints.c (process_alt_operands): Disfavor spilling
39105 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
39107 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
39109 2014-03-13 Jakub Jelinek <jakub@redhat.com>
39111 PR tree-optimization/59025
39112 PR middle-end/60418
39113 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
39114 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
39116 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
39119 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
39120 calls of avr_out_plus_1.
39122 2014-03-13 Bin Cheng <bin.cheng@arm.com>
39124 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
39125 BB's single pred and update the father loop's latch info later.
39127 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
39129 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
39133 (VEC_base): Likewise.
39134 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
39135 registers, we need to swap double words in little endian mode.
39137 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
39138 to be a container mode for 128-bit integer operations added in ISA
39139 2.07. Unlike TImode and PTImode, the preferred register set is
39140 the Altivec/VMX registers for the 128-bit operations.
39142 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
39144 (rs6000_split_128bit_ok_p): Likewise.
39146 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
39147 macros for creating ISA 2.07 normal and overloaded builtin
39148 functions with 3 arguments.
39149 (BU_P8V_OVERLOAD_3): Likewise.
39150 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
39151 for use as overloaded functions.
39152 (VPERM_1TI_UNS): Likewise.
39153 (VSEL_1TI): Likewise.
39154 (VSEL_1TI_UNS): Likewise.
39155 (ST_INTERNAL_1ti): Likewise.
39156 (LD_INTERNAL_1ti): Likewise.
39157 (XXSEL_1TI): Likewise.
39158 (XXSEL_1TI_UNS): Likewise.
39159 (VPERM_1TI): Likewise.
39160 (VPERM_1TI_UNS): Likewise.
39161 (XXPERMDI_1TI): Likewise.
39162 (SET_1TI): Likewise.
39163 (LXVD2X_V1TI): Likewise.
39164 (STXVD2X_V1TI): Likewise.
39165 (VEC_INIT_V1TI): Likewise.
39166 (VEC_SET_V1TI): Likewise.
39167 (VEC_EXT_V1TI): Likewise.
39168 (EQV_V1TI): Likewise.
39169 (NAND_V1TI): Likewise.
39170 (ORC_V1TI): Likewise.
39171 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
39172 added in ISA 2.07. Add both normal 'altivec' builtins, and the
39173 overloaded builtin.
39174 (VADDUQM): Likewise.
39175 (VSUBCUQ): Likewise.
39176 (VADDEUQM): Likewise.
39177 (VADDECUQ): Likewise.
39178 (VSUBEUQM): Likewise.
39179 (VSUBECUQ): Likewise.
39181 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
39182 __int128_t and __uint128_t types.
39183 (__uint128_type): Likewise.
39184 (altivec_categorize_keyword): Add support for vector __int128_t,
39185 vector __uint128_t, vector __int128, and vector unsigned __int128
39186 as a container type for TImode operations that need to be done in
39187 VSX/Altivec registers.
39188 (rs6000_macro_to_expand): Likewise.
39189 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
39190 to support 128-bit integer instructions vaddcuq, vadduqm,
39191 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
39192 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
39194 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
39195 for V1TImode, and set up preferences to use VSX/Altivec registers.
39196 Setup VSX reload handlers.
39197 (rs6000_debug_reg_global): Likewise.
39198 (rs6000_init_hard_regno_mode_ok): Likewise.
39199 (rs6000_preferred_simd_mode): Likewise.
39200 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
39201 (easy_altivec_constant): Likewise.
39202 (output_vec_const_move): Likewise.
39203 (rs6000_expand_vector_set): Convert V1TImode set and extract to
39205 (rs6000_expand_vector_extract): Likewise.
39206 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
39208 (rs6000_const_vec): Add support for V1TImode.
39209 (rs6000_emit_le_vsx_load): Swap double words when loading or
39210 storing TImode/V1TImode.
39211 (rs6000_emit_le_vsx_store): Likewise.
39212 (rs6000_emit_le_vsx_move): Likewise.
39213 (rs6000_emit_move): Add support for V1TImode.
39214 (altivec_expand_ld_builtin): Likewise.
39215 (altivec_expand_st_builtin): Likewise.
39216 (altivec_expand_vec_init_builtin): Likewise.
39217 (altivec_expand_builtin): Likewise.
39218 (rs6000_init_builtins): Add support for V1TImode type. Add
39219 support for ISA 2.07 128-bit integer builtins. Define type names
39220 for the VSX/Altivec vector types.
39221 (altivec_init_builtins): Add support for overloaded vector
39222 functions with V1TImode type.
39223 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
39224 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
39226 (rs6000_split_128bit_ok_p): Likewise.
39227 (rs6000_handle_altivec_attribute): Create V1TImode from vector
39228 __int128_t and vector __uint128_t.
39230 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
39231 and mode attributes.
39233 (VSX_M2): Likewise.
39238 (VS_scalar): Likewise.
39239 (VS_double): Likewise.
39240 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
39242 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
39243 we support the ISA 2.07 128-bit integer arithmetic instructions.
39244 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
39245 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
39246 and TImode types for use with the builtin functions.
39247 (V1TI_type_node): Likewise.
39248 (unsigned_V1TI_type_node): Likewise.
39249 (intTI_type_internal_node): Likewise.
39250 (uintTI_type_internal_node): Likewise.
39252 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
39253 128-bit builtin functions.
39254 (UNSPEC_VADDEUQM): Likewise.
39255 (UNSPEC_VADDECUQ): Likewise.
39256 (UNSPEC_VSUBCUQ): Likewise.
39257 (UNSPEC_VSUBEUQM): Likewise.
39258 (UNSPEC_VSUBECUQ): Likewise.
39259 (VM): Add V1TImode to vector mode iterators.
39261 (VI_unit): Likewise.
39262 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
39263 (altivec_vaddcuq): Likewise.
39264 (altivec_vsubuqm): Likewise.
39265 (altivec_vsubcuq): Likewise.
39266 (altivec_vaddeuqm): Likewise.
39267 (altivec_vaddecuq): Likewise.
39268 (altivec_vsubeuqm): Likewise.
39269 (altivec_vsubecuq): Likewise.
39271 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
39273 (BOOL_128): Likewise.
39274 (BOOL_REGS_OUTPUT): Likewise.
39275 (BOOL_REGS_OP1): Likewise.
39276 (BOOL_REGS_OP2): Likewise.
39277 (BOOL_REGS_UNARY): Likewise.
39278 (BOOL_REGS_AND_CR0): Likewise.
39280 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
39281 128-bit integer builtin support.
39282 (vec_vadduqm): Likewise.
39283 (vec_vaddecuq): Likewise.
39284 (vec_vaddeuqm): Likewise.
39285 (vec_vsubecuq): Likewise.
39286 (vec_vsubeuqm): Likewise.
39287 (vec_vsubcuq): Likewise.
39288 (vec_vsubuqm): Likewise.
39290 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
39291 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
39292 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
39293 128-bit integer add/subtract to ISA 2.07.
39295 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
39297 * config/arc/arc.c (arc_predicate_delay_insns):
39298 Fix third argument passed to conditionalize_nonjump.
39300 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
39302 * config/aarch64/aarch64-builtins.c
39303 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
39304 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
39305 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
39306 instead of __builtin_lfloor.
39307 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
39309 2014-03-12 Jakub Jelinek <jakub@redhat.com>
39311 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
39312 (tree_ssa_ifcombine_bb_1): New function.
39313 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
39314 is an empty forwarder block to then_bb or vice versa and then_bb
39315 and else_bb are effectively swapped.
39317 2014-03-12 Christian Bruel <christian.bruel@st.com>
39320 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
39321 REG_CFA_DEF_CFA note.
39322 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
39323 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
39325 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
39327 PR tree-optimization/60454
39328 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
39330 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39332 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
39333 Do not define target_cpu_default2 to generic.
39334 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
39335 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
39336 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
39338 2014-03-12 Jakub Jelinek <jakub@redhat.com>
39339 Marc Glisse <marc.glisse@inria.fr>
39341 PR tree-optimization/60502
39342 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
39343 instead of build_low_bits_mask.
39345 2014-03-12 Jakub Jelinek <jakub@redhat.com>
39347 PR middle-end/60482
39348 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
39349 if there are multiple uses, but op doesn't live on E edge.
39350 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
39351 clobber stmts before __builtin_unreachable.
39353 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
39355 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
39356 hard_frame_pointer_rtx.
39357 * cse.c (cse_insn): Remove volatile check.
39358 * cselib.c (cselib_process_insn): Likewise.
39359 * dse.c (scan_insn): Likewise.
39361 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
39363 * config/arc/arc.c (conditionalize_nonjump): New function,
39365 (arc_ifcvt): ... this.
39366 (arc_predicate_delay_insns): Use it.
39368 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
39370 * config/arc/predicates.md (extend_operand): During/after reload,
39371 allow const_int_operand.
39372 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
39373 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
39374 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
39376 (umulsi3_highpart_i): Likewise.
39378 2014-03-11 Richard Biener <rguenther@suse.de>
39380 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
39381 Add asserts to guard possible wrong-code bugs.
39383 2014-03-11 Richard Biener <rguenther@suse.de>
39385 PR tree-optimization/60429
39386 PR tree-optimization/60485
39387 * tree-ssa-structalias.c (set_union_with_increment): Properly
39388 take into account all fields that overlap the shifted vars.
39389 (do_sd_constraint): Likewise.
39390 (do_ds_constraint): Likewise.
39391 (get_constraint_for_ptr_offset): Likewise.
39393 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
39395 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
39396 (nios2_compute_frame_layout):
39397 Add calculation of cfun->machine->fp_save_offset.
39398 (nios2_expand_prologue): Correct setting of frame pointer register
39400 (nios2_expand_epilogue): Update recovery of stack pointer from
39401 frame pointer accordingly.
39402 (nios2_initial_elimination_offset): Update calculation of offset
39403 for eliminating to HARD_FRAME_POINTER_REGNUM.
39405 2014-03-10 Jakub Jelinek <jakub@redhat.com>
39408 * ipa.c (symtab_remove_unreachable_nodes): Don't call
39409 cgraph_get_create_node on VAR_DECLs.
39411 2014-03-10 Richard Biener <rguenther@suse.de>
39413 PR middle-end/60474
39414 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
39416 2014-03-08 Douglas B Rupp <rupp@gnat.com>
39418 * config/vms/vms.opt (vms_float_format): New variable.
39420 2014-03-08 Tobias Burnus <burnus@net-b.de>
39422 * doc/invoke.texi (-fcilkplus): Update implementation status.
39424 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
39425 Richard Biener <rguenther@suse.de>
39427 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
39428 consistently accross all TUs.
39429 (run_gcc): Enable -fshort-double automatically at link at link-time
39430 and disallow override.
39432 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
39435 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
39436 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
39437 if they can't be used.
39439 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39441 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
39442 for Solaris 11/x86 ld.
39443 * configure: Regenerate.
39445 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39447 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
39448 (LIB_TLS_SPEC): Save as ld_tls_libs.
39449 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
39450 (HAVE_AS_IX86_TLSLDM): New test.
39451 * configure, config.in: Regenerate.
39452 * config/i386/i386.c (legitimize_tls_address): Fall back to
39453 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
39454 cannot support TLS_MODEL_LOCAL_DYNAMIC.
39455 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
39456 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
39458 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
39460 * common.opt (fira-loop-pressure): Mark as optimization.
39462 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
39464 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
39465 an OpenMP mappable type.
39467 2014-03-06 Matthias Klose <doko@ubuntu.com>
39469 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
39470 MULTILIB_OSDIRNAMES is not defined.
39472 2014-03-06 Jakub Jelinek <jakub@redhat.com>
39473 Meador Inge <meadori@codesourcery.com>
39476 * config/arm/arm.c (arm_tls_symbol_p): Remove.
39477 (arm_legitimize_address): Call legitimize_tls_address for any
39478 arm_tls_referenced_p expression, handle constant addend. Call it
39479 before testing for !TARGET_ARM.
39480 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
39482 2014-03-06 Richard Biener <rguenther@suse.de>
39484 PR middle-end/60445
39488 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
39490 * tree-streamer.c (record_common_node): Assert we don't record
39491 nodes with type double.
39492 (preload_common_node): Skip type double, complex double and double
39493 pointer since it is now frontend dependent due to fshort-double option.
39495 2014-03-06 Richard Biener <rguenther@suse.de>
39497 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
39498 or -fno-lto is specified and the linker has full plugin support.
39499 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
39500 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
39501 * lto-wrapper.c (merge_and_complain): Merge compile-time
39502 optimization levels.
39503 (run_gcc): And pass it through to the link options.
39505 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
39509 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
39511 * cselib.c (remove_useless_values): Skip to avoid quadratic
39512 behavior if the condition moved from...
39513 (cselib_process_insn): ... here holds.
39515 2014-03-05 Jakub Jelinek <jakub@redhat.com>
39518 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
39519 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
39522 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
39523 (TM_H): Add x86-tune.def.
39525 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39527 * config/aarch64/aarch64.c (generic_tunings):
39528 Use cortexa57_extra_costs.
39530 2014-03-05 Jakub Jelinek <jakub@redhat.com>
39533 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
39534 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
39535 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
39538 2014-03-04 Heiher <r@hev.cc>
39540 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
39541 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
39543 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
39545 * config/i386/predicates.md (const2356_operand): Change to ...
39546 (const2367_operand): ... this.
39547 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
39549 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
39550 (*avx512pf_scatterpf<mode>sf): Ditto.
39551 (avx512pf_scatterpf<mode>df): Ditto.
39552 (*avx512pf_scatterpf<mode>df_mask): Ditto.
39553 (*avx512pf_scatterpf<mode>df): Ditto.
39554 * config/i386/i386.c (ix86_expand_builtin): Update
39555 incorrect hint operand error message.
39557 2014-03-04 Richard Biener <rguenther@suse.de>
39559 * lto-section-in.c (lto_get_section_data): Fix const cast.
39561 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
39563 * tree-streamer.c (record_common_node): Assert we don't record
39564 nodes with type double.
39565 (preload_common_node): Skip type double, complex double and double
39566 pointer since it is now frontend dependent due to fshort-double option.
39568 2014-03-04 Richard Biener <rguenther@suse.de>
39571 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
39572 (lto_input_toplevel_asms): Likewise.
39573 * lto-section-in.c (lto_get_section_data): Instead do it here
39576 2014-03-04 Richard Biener <rguenther@suse.de>
39578 PR tree-optimization/60382
39579 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
39580 dead PHIs a reduction.
39582 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
39584 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
39586 (_mm_prefetch): Move out of GCC target("sse") pragma.
39587 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
39588 GCC target("prfchw") pragma.
39589 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
39591 * config/i386/i386.c (ix86_option_override_internal): Enable
39592 -mprfchw with -mprefetchwt1.
39594 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
39596 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
39599 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
39601 * opts.h (CL_PCH_IGNORE): Define.
39602 * targhooks.c (option_affects_pch_p):
39603 Return false for options that have CL_PCH_IGNORE set.
39604 * opt-functions.awk: Process PchIgnore.
39605 * doc/options.texi: Document PchIgnore.
39607 * config/arc/arc.opt (misize): Add PchIgnore property.
39609 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39611 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
39612 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
39613 constraint on constants to permit them being loaded into
39614 GENERAL_REGS or BASE_REGS.
39616 2014-03-03 Nick Clifton <nickc@redhat.com>
39618 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
39619 anti-cacnonical alternatives.
39620 (negandhi3_real): New pattern.
39621 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
39623 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
39625 * config/avr/avr-mcus.def: Remove atxmega16x1.
39626 * config/avr/avr-tables.opt: Regenerate.
39627 * config/avr/t-multilib: Regenerate.
39628 * doc/avr-mmcu.texi: Regenerate.
39630 2014-03-03 Tobias Grosser <tobias@grosser.es>
39631 Mircea Namolaru <mircea.namolaru@inria.fr>
39633 PR tree-optimization/58028
39634 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
39637 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39639 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
39640 not handled by recognizers.
39642 2014-03-03 Jakub Jelinek <jakub@redhat.com>
39644 PR middle-end/60175
39645 * function.c (expand_function_end): Don't emit
39646 clobber_return_register sequence if clobber_after is a BARRIER.
39647 * cfgexpand.c (construct_exit_block): Append instructions before
39648 return_label to prev_bb.
39650 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39652 * config/rs6000/constraints.md: Document reserved use of "wc".
39654 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
39657 * ipa.c (function_and_variable_visibility): When dissolving comdat
39658 group, also set all symbols to local.
39660 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
39665 2013-12-14 Jan Hubicka <jh@suse.cz>
39666 PR middle-end/58477
39667 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
39669 2014-03-02 Jon Beniston <jon@beniston.com>
39675 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
39676 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
39677 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
39678 (simple_return, *simple_return): New patterns
39679 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
39680 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
39682 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
39684 * dwarf2out.c (gen_subprogram_die): Tidy.
39686 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
39689 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
39690 (*mov_t_msb_neg_negc): ... this new insn.
39692 2014-02-28 Jason Merrill <jason@redhat.com>
39695 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
39698 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
39701 * dwarf2out.c (decltype_auto_die): New static.
39702 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
39703 (gen_type_die_with_usage): Handle 'decltype(auto)'.
39704 (is_cxx_auto): Likewise.
39706 2014-02-28 Ian Bolton <ian.bolton@arm.com>
39708 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
39709 we are not using general regs only.
39711 2014-02-28 Richard Biener <rguenther@suse.de>
39714 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
39715 previous fix and only allow to remove trivial pre-headers
39716 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
39717 (remove_forwarder_block): Properly update the latch of a loop.
39719 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
39722 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
39723 (cselib_preserved_hash_table): New.
39724 (preserve_constants_and_equivs): Move preserved vals to it.
39725 (cselib_find_slot): Look it up first.
39726 (cselib_init): Initialize it.
39727 (cselib_finish): Release it.
39728 (dump_cselib_table): Dump it.
39730 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
39733 * cselib.c (remove_useless_values): Skip to avoid quadratic
39734 behavior if the condition moved from...
39735 (cselib_process_insn): ... here holds.
39737 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
39740 * var-tracking.c (vt_initialize): Apply the same condition to
39741 preserve the CFA base value.
39743 2014-02-28 Joey Ye <joey.ye@arm.com>
39746 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
39747 if reload in progress or completed.
39749 2014-02-28 Tobias Burnus <burnus@net-b.de>
39751 PR middle-end/60147
39752 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
39755 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
39757 * doc/tm.texi.in (Condition Code Status): Update documention for
39758 relative locations of cc0-setter and cc0-user.
39760 2014-02-27 Jeff Law <law@redhat.com>
39762 PR rtl-optimization/52714
39763 * combine.c (try_combine): When splitting an unrecognized PARALLEL
39764 into two independent simple sets, if I3 is a jump, ensure the
39765 pattern we place into I3 is a (set (pc) ...).
39767 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
39768 Jeff Law <law@redhat.com>
39770 PR rtl-optimization/49847
39771 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
39772 are in different blocks.
39773 * doc/tm.texi (Condition Code Status): Update documention for
39774 relative locations of cc0-setter and cc0-user.
39776 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
39779 * lra.c (lra_emit_add): Check SUBREG too.
39781 2014-02-27 Andreas Schwab <schwab@suse.de>
39783 * config/m68k/m68k.c (m68k_option_override): Disable
39784 -flive-range-shrinkage for classic m68k.
39785 (m68k_override_options_after_change): Likewise.
39787 2014-02-27 Marek Polacek <polacek@redhat.com>
39789 PR middle-end/59223
39790 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
39791 -Wmaybe-uninitialized.
39793 2014-02-27 Alan Modra <amodra@gmail.com>
39796 * reload1.c (emit_input_reload_insns): When reload_override_in,
39797 set old to rl->in_reg when rl->in_reg is a subreg.
39799 2014-02-26 Richard Biener <rguenther@suse.de>
39802 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
39804 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
39806 * common/config/i386/predicates.md (const1256_operand): Remove.
39807 (const2356_operand): New.
39808 (const_1_to_2_operand): Remove.
39809 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
39810 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
39811 (*avx512pf_gatherpf<mode>sf): Ditto.
39812 (avx512pf_gatherpf<mode>df): Ditto.
39813 (*avx512pf_gatherpf<mode>df_mask): Ditto.
39814 (*avx512pf_gatherpf<mode>df): Ditto.
39815 (avx512pf_scatterpf<mode>sf): Ditto.
39816 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
39817 (*avx512pf_scatterpf<mode>sf): Ditto.
39818 (avx512pf_scatterpf<mode>df): Ditto.
39819 (*avx512pf_scatterpf<mode>df_mask): Ditto.
39820 (*avx512pf_scatterpf<mode>df): Ditto.
39821 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
39823 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
39825 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
39826 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
39827 (_mm512_mask_testn_epi64_mask): Move to ...
39828 * config/i386/avx512cdintrin.h: Here.
39829 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
39830 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
39831 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
39832 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
39833 TARGET_AVX512F from TARGET_AVX512CD.
39835 2014-02-26 Richard Biener <rguenther@suse.de>
39838 * ipa.c (walk_polymorphic_call_targets): Properly guard
39839 call to inline_update_overall_summary.
39841 2014-02-26 Bin Cheng <bin.cheng@arm.com>
39844 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
39845 and latches only if requested. Fix latch if it is removed.
39846 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
39847 LOOPS_HAVE_PREHEADERS.
39849 2014-02-25 Andrew Pinski <apinski@cavium.com>
39851 * builtins.c (expand_builtin_thread_pointer): Create a new target
39852 when the target is NULL.
39854 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
39856 PR rtl-optimization/60317
39857 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
39858 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
39859 * lra-assigns.c: Include params.h.
39860 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
39861 other reload pseudos considerations.
39863 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39865 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
39866 to use canonical form for nor<mode>3.
39868 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39871 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
39874 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
39876 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
39877 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
39878 (ix86_handle_option): Handle OPT_mprefetchwt1.
39879 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
39880 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
39882 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
39883 OPTION_MASK_ISA_PREFETCHWT1.
39884 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
39885 (PTA_PREFETCHWT1): New.
39886 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
39887 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
39888 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
39889 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
39890 (*prefetch_avx512pf_<mode>_: Change into ...
39891 (*prefetch_prefetchwt1_<mode>: This.
39892 * config/i386/i386.opt (mprefetchwt1): New.
39893 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
39894 (_mm_prefetch): Handle intent to write.
39895 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
39897 2014-02-25 Richard Biener <rguenther@suse.de>
39899 PR middle-end/60291
39900 * emit-rtl.c (mem_attrs_htab): Remove.
39901 (mem_attrs_htab_hash): Likewise.
39902 (mem_attrs_htab_eq): Likewise.
39903 (set_mem_attrs): Always allocate new mem-attrs when something changed.
39904 (init_emit_once): Do not allocate mem_attrs_htab.
39906 2014-02-25 Richard Biener <rguenther@suse.de>
39909 * lto-opts.c (lto_write_options): Output non-explicit conservative
39910 -fwrapv, -fno-trapv and -fno-strict-overflow.
39911 * lto-wrapper.c (merge_and_complain): Handle merging those options.
39912 (run_gcc): And pass them through.
39914 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
39916 * sel-sched.c (calculate_new_fences): New parameter ptime.
39917 Calculate it as a maximum over all fence cycles.
39918 (sel_sched_region_2): Adjust the call to calculate_new_fences.
39919 Print the final schedule timing when sched_verbose.
39921 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
39923 PR rtl-optimization/60292
39924 * sel-sched.c (fill_vec_av_set): Do not reset target availability
39925 bit fot the fence instruction.
39927 2014-02-24 Alangi Derick <alangiderick@gmail.com>
39929 * calls.h: Fix typo in comment.
39931 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
39933 * config/pa/pa.c (pa_output_move_double): Don't valididate when
39934 adjusting offsetable addresses.
39936 2014-02-24 Guozhi Wei <carrot@google.com>
39938 * sparseset.h (sparseset_pop): Fix the wrong index.
39940 2014-02-24 Walter Lee <walt@tilera.com>
39942 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
39943 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
39945 * common/config/tilegx/tilegx-common.c
39946 (TARGET_DEFAULT_TARGET_FLAGS): Define.
39947 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
39948 (LINK_SPEC): Ditto.
39949 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
39950 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
39951 (tilegx_gimplify_va_arg_expr): Handle big endian.
39952 (tilegx_expand_unaligned_load): Ditto.
39953 (tilegx_expand_unaligned_store): Ditto.
39954 (TARGET_RETURN_IN_MSB): New.
39955 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
39956 (TARGET_ENDIAN_DEFAULT): New.
39957 (TARGET_BIG_ENDIAN): Handle big endian.
39958 (BYTES_BIG_ENDIAN): Ditto.
39959 (WORDS_BIG_ENDIAN): Ditto.
39960 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
39961 (ENDIAN_SPEC): New.
39962 (EXTRA_SPECS): New.
39963 * config/tilegx/tilegx.md (extv): Handle big endian.
39965 (insn_st<n>): Ditto.
39966 (insn_st<n>_add<bitsuffix>): Ditto.
39967 (insn_stnt<n>): Ditto.
39968 (insn_stnt<n>_add<bitsuffix>):Ditto.
39969 (vec_interleave_highv8qi): Handle big endian.
39970 (vec_interleave_highv8qi_be): New.
39971 (vec_interleave_highv8qi_le): New.
39972 (insn_v1int_h): Handle big endian.
39973 (vec_interleave_lowv8qi): Handle big endian.
39974 (vec_interleave_lowv8qi_be): New.
39975 (vec_interleave_lowv8qi_le): New.
39976 (insn_v1int_l): Handle big endian.
39977 (vec_interleave_highv4hi): Handle big endian.
39978 (vec_interleave_highv4hi_be): New.
39979 (vec_interleave_highv4hi_le): New.
39980 (insn_v2int_h): Handle big endian.
39981 (vec_interleave_lowv4hi): Handle big endian.
39982 (vec_interleave_lowv4hi_be): New.
39983 (vec_interleave_lowv4hi_le): New.
39984 (insn_v2int_l): Handle big endian.
39985 (vec_interleave_highv2si): Handle big endian.
39986 (vec_interleave_highv2si_be): New.
39987 (vec_interleave_highv2si_le): New.
39988 (insn_v4int_h): Handle big endian.
39989 (vec_interleave_lowv2si): Handle big endian.
39990 (vec_interleave_lowv2si_be): New.
39991 (vec_interleave_lowv2si_le): New.
39992 (insn_v4int_l): Handle big endian.
39993 * config/tilegx/tilegx.opt (mbig-endian): New option.
39994 (mlittle-endian): New option.
39995 * doc/install.texi: Document tilegxbe-linux.
39996 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
39998 2014-02-24 Martin Jambor <mjambor@suse.cz>
40001 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
40002 there are no parameter descriptors.
40004 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
40006 PR rtl-optimization/60268
40007 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
40008 initialization to ...
40009 (sched_rgn_init): ... here.
40010 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
40012 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
40014 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
40017 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
40019 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
40022 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
40024 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
40025 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
40027 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
40029 * config/microblaze/predicates.md: Add cmp_op predicate.
40030 * config/microblaze/microblaze.md: Add branch_compare instruction
40031 which uses cmp_op predicate and emits cmp insn before branch.
40032 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
40033 to microblaze_expand_conditional_branch and consolidate logic.
40034 (microblaze_expand_conditional_branch): emit branch_compare
40035 insn instead of handling cmp op separate from branch insn.
40037 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40039 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
40042 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40044 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
40045 define_insn with define_expand and new define_insn
40046 *altivec_lve<VI_char>x_internal.
40047 (altivec_stve<VI_char>x): Replace define_insn with define_expand
40048 and new define_insn *altivec_stve<VI_char>x_internal.
40049 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
40051 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
40053 (altivec_expand_stvex_be): New function.
40055 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
40057 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
40058 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
40059 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
40060 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
40062 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
40065 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
40066 instead of emit_move_insn.
40068 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40070 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
40071 vspltw with vsldoi.
40072 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
40073 gen_altivec_vsumsws.
40075 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40077 * config/rs6000/altivec.md (altivec_lvxl): Rename as
40078 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
40079 (altivec_lvxl_<mode>): New define_expand incorporating
40080 -maltivec=be semantics where needed.
40081 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
40082 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
40083 semantics where needed.
40084 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
40085 (altivec_stvx_<mode>): New define_expand incorporating
40086 -maltivec=be semantics where needed.
40087 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
40088 VM2 iterator instead of V4SI.
40089 (altivec_stvxl_<mode>): New define_expand incorporating
40090 -maltivec=be semantics where needed.
40091 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
40092 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
40093 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
40094 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
40095 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
40096 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
40097 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
40098 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
40099 ALTIVEC_BUILTIN_STVXL.
40100 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
40101 (altivec_expand_stvx_be): Likewise.
40102 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
40103 (altivec_expand_lvx_be): Likewise.
40104 (altivec_expand_stvx_be): Likewise.
40105 (altivec_expand_builtin): Add cases for
40106 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
40107 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
40108 (altivec_init_builtins): Add definitions for
40109 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
40110 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
40112 2014-02-21 Catherine Moore <clm@codesourcery.com>
40114 * doc/invoke.texi (mvirt, mno-virt): Document.
40115 * config/mips/mips.opt (mvirt): New option.
40116 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
40118 2014-02-21 Richard Biener <rguenther@suse.de>
40120 PR tree-optimization/60276
40121 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
40122 (STMT_VINFO_MIN_NEG_DIST): New macro.
40123 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
40124 STMT_VINFO_MIN_NEG_DIST.
40125 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
40126 made for negative dependence distances still hold.
40128 2014-02-21 Richard Biener <rguenther@suse.de>
40130 PR middle-end/60291
40131 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
40132 DECL_INITIAL for globals not in the current function context.
40134 2014-02-21 Jakub Jelinek <jakub@redhat.com>
40136 PR tree-optimization/56490
40137 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
40138 * tree-ssa-uninit.c: Include params.h.
40139 (compute_control_dep_chain): Add num_calls argument, return false
40140 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
40141 num_calls to recursive call.
40142 (find_predicates): Change dep_chain into normal array,
40143 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
40144 variable and adjust compute_control_dep_chain caller.
40145 (find_def_preds): Likewise.
40147 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
40149 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
40150 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
40152 2014-02-21 Nick Clifton <nickc@redhat.com>
40154 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
40155 (pushhi1): Likewise.
40156 (popqi1): Add mode to pre_dec.
40157 (pophi1): Likewise.
40159 2014-02-21 Jakub Jelinek <jakub@redhat.com>
40161 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
40162 mode for mask of V8SFmode permutation.
40164 2014-02-20 Richard Henderson <rth@redhat.com>
40167 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
40168 a new pseudo for OLDVAL.
40170 2014-02-20 Jakub Jelinek <jakub@redhat.com>
40173 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
40174 gen_reg_rtx if d->testing_p.
40175 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
40176 if d->testing_p and we will certainly return true.
40177 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
40180 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
40182 * emit-rtl.c (gen_reg_rtx): Assert that
40183 crtl->emit.regno_pointer_align_length is non-zero.
40185 2014-02-20 Richard Henderson <rth@redhat.com>
40188 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
40189 on failure the store back into EXPECT.
40191 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
40192 Sandra Loosemore <sandra@codesourcery.com>
40194 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
40195 * config/nios2/nios2.c (nios2_function_profiler): Add
40196 -fPIC (flag_pic == 2) support.
40197 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
40198 (nios2_large_offset_p): New function.
40199 (nios2_unspec_reloc_p): Move up position, update to use
40200 nios2_large_offset_p.
40201 (nios2_unspec_address): Remove function.
40202 (nios2_unspec_offset): New function.
40203 (nios2_large_got_address): New function.
40204 (nios2_got_address): Add large offset support.
40205 (nios2_legitimize_tls_address): Update usage of removed and new
40207 (nios2_symbol_binds_local_p): New function.
40208 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
40209 (nios2_legitimize_address): Update to use nios2_large_offset_p.
40210 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
40211 (nios2_print_operand): Merge H/L processing, add hiadj/lo
40212 processing for (const (unspec ...)).
40213 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
40215 2014-02-20 Richard Biener <rguenther@suse.de>
40217 * tree-cfg.c (replace_uses_by): Mark altered BBs before
40218 doing the substitution.
40219 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
40221 2014-02-20 Martin Jambor <mjambor@suse.cz>
40224 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
40225 info when checking whether lattices are bottom.
40227 2014-02-20 Richard Biener <rguenther@suse.de>
40229 PR middle-end/60221
40230 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
40233 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
40236 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
40237 parameter specifying the scaling.
40238 (inline_call): Update.
40239 (want_inline_recursively): Guard division by zero.
40240 (recursive_inlining): Update.
40241 * ipa-inline.h (clone_inlined_nodes): Update.
40243 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
40246 * config/i386/i386.c (classify_argument): Pass structures of size
40247 64 bytes or less in register.
40249 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
40250 Kirill Yukhin <kirill.yukhin@intel.com>
40252 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
40253 (_mm_rcp28_round_ss): Ditto.
40254 (_mm_rsqrt28_round_sd): Ditto.
40255 (_mm_rsqrt28_round_ss): Ditto.
40256 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
40257 (_mm_rcp14_round_ss): Ditto.
40258 (_mm_rsqrt14_round_sd): Ditto.
40259 (_mm_rsqrt14_round_ss): Ditto.
40260 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
40261 the first input operand, get rid of match_dup.
40262 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
40264 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
40266 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
40267 operand as the first input operand, set type attribute.
40268 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
40269 Set type attribute.
40270 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
40271 operand as the first input operand, set type attribute.
40273 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40275 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
40278 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
40281 * config/i386/i386.c (construct_container): Remove TFmode check
40282 for X86_64_INTEGER_CLASS.
40284 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
40287 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
40288 only when -Wpsabi is enabled.
40290 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
40293 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
40294 passing arrays in registers are the same as for structs, so remove the
40295 special case for them.
40297 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
40299 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
40300 destination type, extract only the valid bits if the source type is not
40301 integral and has a different mode.
40303 2014-02-19 Richard Biener <rguenther@suse.de>
40306 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
40309 2014-02-19 Richard Biener <rguenther@suse.de>
40312 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
40313 (ipa_modify_call_arguments): Emit an argument load explicitely and
40314 preserve virtual SSA form there and for the replacement call.
40315 Do not update SSA form nor free dominance info.
40317 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
40319 * ipa.c (function_and_variable_visibility): Also clear WEAK
40320 flag when disolving COMDAT_GROUP.
40322 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
40324 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
40325 * ipa-prop.c (ipa_set_jf_known_type): Return early when
40326 not devirtualizing.
40327 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
40328 do more sanity checks.
40329 (detect_type_change): Return true when giving up early.
40330 (compute_complex_assign_jump_func): Fix type parameter of
40331 ipa_set_ancestor_jf.
40332 (compute_complex_ancestor_jump_func): Likewise.
40333 (update_jump_functions_after_inlining): Fix updating of
40335 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
40337 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
40339 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
40340 inline clones when edge disappears.
40342 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
40345 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
40346 Split 64-bit moves into 2 patterns. Do not allow the use of
40347 direct move for TDmode in little endian, since the decimal value
40348 has little endian bytes within a word, but the 64-bit pieces are
40349 ordered in a big endian fashion, and normal subreg's of TDmode are
40351 (mov<mode>_64bit_dm): Likewise.
40352 (movtd_64bit_nodm): Likewise.
40354 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
40356 PR tree-optimization/60174
40357 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
40358 statement of an SSA_NAME that occurs in an abnormal PHI node.
40360 2014-02-18 Jakub Jelinek <jakub@redhat.com>
40363 * final.c (SEEN_BB): Remove.
40364 (SEEN_NOTE, SEEN_EMITTED): Renumber.
40365 (final_scan_insn): Don't force_source_line on second
40366 NOTE_INSN_BASIC_BLOCK.
40368 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
40371 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
40372 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
40373 (type_natural_mode): Warn ABI change when %zmm register is not
40374 available for AVX512F vector value passing.
40376 2014-02-18 Kai Tietz <ktietz@redhat.com>
40379 * config/i386/i386.c (ix86_expand_prologue): Use value in
40380 rax register as displacement when restoring %r10 or %rax.
40381 Fix wrong offset when restoring both registers.
40383 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
40385 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
40386 assertion with conditional return.
40388 2014-02-18 Jakub Jelinek <jakub@redhat.com>
40389 Uros Bizjak <ubizjak@gmail.com>
40392 * config/i386/driver-i386.c (host_detect_local_cpu): If
40393 YMM state is not saved by the OS, also clear has_f16c. Move
40394 CPUID 0x80000001 handling before YMM state saving checking.
40396 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
40398 PR rtl-optimization/58960
40399 * haifa-sched.c (alloc_global_sched_pressure_data): New,
40400 factored out from ...
40401 (sched_init): ... here.
40402 (free_global_sched_pressure_data): New, factored out from ...
40403 (sched_finish): ... here.
40404 * sched-int.h (free_global_sched_pressure_data): Declare.
40405 * sched-rgn.c (nr_regions_initial): New static global.
40406 (haifa_find_rgns): Initialize it.
40407 (schedule_region): Disable sched-pressure for the newly
40410 2014-02-17 Richard Biener <rguenther@suse.de>
40412 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
40413 release SSA defs of pattern stmts.
40415 2014-02-17 Richard Biener <rguenther@suse.de>
40417 * tree-inline.c (expand_call_inline): Release the virtual
40418 operand defined by the call we are about to inline.
40420 2014-02-17 Richard Biener <rguenther@suse.de>
40422 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
40424 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
40425 Ilya Tocar <ilya.tocar@intel.com>
40427 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
40428 arguments order in builtin.
40429 (_mm512_permutexvar_epi64): Ditto.
40430 (_mm512_mask_permutexvar_epi64): Ditto
40431 (_mm512_maskz_permutexvar_epi32): Ditto
40432 (_mm512_permutexvar_epi32): Ditto
40433 (_mm512_mask_permutexvar_epi32): Ditto
40435 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40437 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
40438 (p8_vmrgow): Likewise.
40440 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
40442 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
40445 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
40448 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
40449 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
40450 into 64-bit and 32-bit moves. On 64-bit moves, add support for
40451 using direct move instructions on ISA 2.07. Also adjust
40452 instruction length for 64-bit.
40453 (mov<mode>_64bit, TFmode/TDmode): Likewise.
40454 (mov<mode>_32bit, TFmode/TDmode): Likewise.
40456 2014-02-15 Alan Modra <amodra@gmail.com>
40460 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
40461 find_replacement on parts of insn rtl that might be reloaded.
40463 2014-02-15 Richard Biener <rguenther@suse.de>
40465 PR tree-optimization/60183
40466 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
40467 (tree_ssa_phiprop): Calculate and free post-dominators.
40469 2014-02-14 Jeff Law <law@redhat.com>
40471 PR rtl-optimization/60131
40472 * ree.c (get_extended_src_reg): New function.
40473 (combine_reaching_defs): Use it rather than assuming location of REG.
40474 (find_and_remove_re): Verify first operand of extension is
40475 a REG before adding the insns to the copy list.
40477 2014-02-14 Roland McGrath <mcgrathr@google.com>
40479 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
40480 * configure: Regenerated.
40481 * config.in: Regenerated.
40482 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
40483 instead of ASM_SHORT.
40485 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
40486 Richard Earnshaw <rearnsha@arm.com>
40488 PR rtl-optimization/59535
40489 * lra-constraints.c (process_alt_operands): Encourage alternative
40490 when unassigned pseudo class is superset of the alternative class.
40491 (inherit_reload_reg): Don't inherit when optimizing for code size.
40492 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
40493 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
40494 modes not less than 4 for Thumb1.
40496 2014-02-14 Kyle McMartin <kyle@redhat.com>
40499 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
40501 2014-02-14 Richard Biener <rguenther@suse.de>
40503 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
40504 (get_frame_arg): Drop the assert with langhook types_compatible_p.
40505 Do not strip INDIRECT_REFs.
40507 2014-02-14 Richard Biener <rguenther@suse.de>
40510 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
40511 DECL_FUNCTION_SPECIFIC_TARGET.
40512 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
40513 * tree-streamer-out.c (pack_ts_target_option): Remove.
40514 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
40515 (write_ts_function_decl_tree_pointers): Do not stream
40516 DECL_FUNCTION_SPECIFIC_TARGET.
40517 * tree-streamer-in.c (unpack_ts_target_option): Remove.
40518 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
40519 (lto_input_ts_function_decl_tree_pointers): Do not stream
40520 DECL_FUNCTION_SPECIFIC_TARGET.
40522 2014-02-14 Jakub Jelinek <jakub@redhat.com>
40524 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
40525 (get_initial_def_for_induction, vectorizable_induction): Ignore
40526 debug stmts when looking for exit_phi.
40527 (vectorizable_live_operation): Fix up condition.
40529 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
40531 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
40532 nreverse() because it changes the content of original tree list.
40534 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
40536 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
40537 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
40539 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
40541 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
40542 GNU coding standards.
40544 2014-02-13 Jakub Jelinek <jakub@redhat.com>
40547 * dwarf2out.c (gen_subprogram_die): Don't call
40548 add_calling_convention_attribute if subr_die is old_die.
40550 2014-02-13 Sharad Singhai <singhai@google.com>
40552 * doc/optinfo.texi: Fix order of nodes.
40554 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
40556 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
40557 operands[2], not operands[3].
40559 2014-02-13 Richard Biener <rguenther@suse.de>
40562 * doc/install.texi (ISL): Update recommended version to 0.12.2,
40563 mention the possibility of an in-tree build.
40564 (CLooG): Update recommended version to 0.18.1, mention the
40565 possibility of an in-tree build and clarify that the ISL
40566 bundled with CLooG does not work.
40568 2014-02-13 Jakub Jelinek <jakub@redhat.com>
40571 * expr.c (compress_float_constant): If x is a hard register,
40572 extend into a pseudo and then move to x.
40574 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
40576 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
40577 caused by bad second argument to warning_at() with -mhotpatch and
40578 nested functions (e.g. with gfortran).
40580 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
40582 * opts.c (option_name): Remove "enabled by default" rider.
40584 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
40586 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
40588 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
40589 Uros Bizjak <ubizjak@gmail.com>
40592 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
40593 * configure: Regenerated.
40595 2014-02-12 Richard Biener <rguenther@suse.de>
40597 * vec.c (vec_prefix::calculate_allocation): Move as
40598 inline variant to vec.h.
40599 (vec_prefix::calculate_allocation_1): New out-of-line version.
40600 * vec.h (vec_prefix::calculate_allocation_1): Declare.
40601 (vec_prefix::m_has_auto_buf): Rename to ...
40602 (vec_prefix::m_using_auto_storage): ... this.
40603 (vec_prefix::calculate_allocation): Inline the easy cases
40604 and dispatch to calculate_allocation_1 which doesn't need the
40606 (va_heap::reserve): Use gcc_checking_assert.
40607 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
40608 m_using_auto_storage.
40609 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
40611 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
40612 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
40613 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
40615 2014-02-12 Richard Biener <rguenther@suse.de>
40617 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
40618 when we found a dependence.
40620 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
40622 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
40624 (maybe_fold_stmt): ... into this new function.
40625 * omp-low.c (lower_omp): Update comment.
40627 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
40630 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
40633 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
40635 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
40636 identifiers in comments.
40637 (cortexa53_extra_costs): Likewise.
40638 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
40639 (cortexa7_extra_costs): Likewise.
40640 (cortexa12_extra_costs): Likewise.
40641 (cortexa15_extra_costs): Likewise.
40642 (v7m_extra_costs): Likewise.
40644 2014-02-12 Richard Biener <rguenther@suse.de>
40646 PR middle-end/60092
40647 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
40648 of posix_memalign being successful.
40649 (lower_stmt): Restrict lowering of posix_memalign to when
40650 -ftree-bit-ccp is enabled.
40652 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
40654 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
40656 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
40658 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
40660 PR rtl-optimization/60116
40661 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
40662 other_insn once the combination has been validated.
40664 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
40667 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
40669 * ipa-devirt.c: Include demangle.h
40670 (odr_violation_reported): New static variable.
40671 (add_type_duplicate): Update odr_violations.
40672 (maybe_record_node): Add completep parameter; update it.
40673 (record_target_from_binfo): Add COMPLETEP parameter;
40674 update it as needed.
40675 (possible_polymorphic_call_targets_1): Likewise.
40676 (struct polymorphic_call_target_d): Add nonconstruction_targets;
40677 rename FINAL to COMPLETE.
40678 (record_targets_from_bases): Sanity check we found the binfo;
40679 fix COMPLETEP updating.
40680 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
40681 parameter, fix computing of COMPLETEP.
40682 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
40683 at LTO time do demangling.
40684 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
40685 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
40687 (gimple_get_virt_method_for_binfo): Likewise.
40688 * gimple-fold.h (gimple_get_virt_method_for_binfo,
40689 gimple_get_virt_method_for_vtable): Update prototypes.
40691 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
40694 * genautomata.c (add_presence_absence): Fix typo with
40695 {final_}presence_list.
40697 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
40700 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
40701 for VSX/Altivec vectors that land in GPR registers.
40703 2014-02-11 Richard Henderson <rth@redhat.com>
40704 Jakub Jelinek <jakub@redhat.com>
40707 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
40708 around drhs if type conversion to lacc->type is not useless.
40710 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40712 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
40714 (cortex-a57.cortex-a53): Likewise.
40715 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
40717 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40719 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
40722 2014-02-11 Renlin Li <Renlin.Li@arm.com>
40724 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
40725 add_options_for_arm_vfp3.
40727 2014-02-11 Jeff Law <law@redhat.com>
40729 PR middle-end/54041
40730 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
40731 object with an undesirable mode.
40733 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40736 * config/i386/sol2-9.h: New file.
40737 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
40738 *-*-solaris2.9*): Use it.
40740 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
40742 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
40743 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
40745 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
40747 * config/microblaze/microblaze.c: Extend mcpu version format
40749 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
40751 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
40753 2014-02-10 Richard Henderson <rth@redhat.com>
40756 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
40757 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
40758 ms-abi vs -mno-accumulate-outgoing-args.
40759 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
40760 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
40763 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
40765 PR middle-end/60080
40766 * cfgexpand.c (expand_asm_operands): Attach source location to
40767 ASM_INPUT rtx objects.
40768 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
40770 2014-02-10 Nick Clifton <nickc@redhat.com>
40772 * config/mn10300/mn10300.c (popcount): New function.
40773 (mn10300_expand_prologue): Include saved registers in stack usage
40776 2014-02-10 Jeff Law <law@redhat.com>
40778 PR middle-end/52306
40779 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
40780 when changing the SET_DEST of a prior insn to avoid an input reload.
40782 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
40784 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
40785 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
40786 -mcall-openbsd, or -mcall-linux.
40787 (CC1_ENDIAN_BIG_SPEC): Remove.
40788 (CC1_ENDIAN_LITTLE_SPEC): Remove.
40789 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
40790 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
40791 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
40792 and %cc1_endian_default.
40793 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
40795 2014-02-10 Richard Biener <rguenther@suse.de>
40797 PR tree-optimization/60115
40798 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
40799 MEM_REF handling. Properly verify that the accesses are not
40800 out of the objects bound.
40802 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40804 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
40807 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
40809 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
40810 proper constants and fix formatting.
40811 (possible_polymorphic_call_targets): Fix formatting.
40813 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
40814 Ilya Tocar <ilya.tocar@intel.com>
40816 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
40817 (_mm512_loadu_epi32): Renamed into...
40818 (_mm512_loadu_si512): This.
40819 (_mm512_storeu_epi32): Renamed into...
40820 (_mm512_storeu_si512): This.
40821 (_mm512_maskz_ceil_ps): Removed.
40822 (_mm512_maskz_ceil_pd): Ditto.
40823 (_mm512_maskz_floor_ps): Ditto.
40824 (_mm512_maskz_floor_pd): Ditto.
40825 (_mm512_floor_round_ps): Ditto.
40826 (_mm512_floor_round_pd): Ditto.
40827 (_mm512_ceil_round_ps): Ditto.
40828 (_mm512_ceil_round_pd): Ditto.
40829 (_mm512_mask_floor_round_ps): Ditto.
40830 (_mm512_mask_floor_round_pd): Ditto.
40831 (_mm512_mask_ceil_round_ps): Ditto.
40832 (_mm512_mask_ceil_round_pd): Ditto.
40833 (_mm512_maskz_floor_round_ps): Ditto.
40834 (_mm512_maskz_floor_round_pd): Ditto.
40835 (_mm512_maskz_ceil_round_ps): Ditto.
40836 (_mm512_maskz_ceil_round_pd): Ditto.
40837 (_mm512_expand_pd): Ditto.
40838 (_mm512_expand_ps): Ditto.
40839 * config/i386/i386.c (ix86_builtins): Remove
40840 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
40841 (bdesc_args): Ditto.
40842 * config/i386/predicates.md (const1256_operand): New.
40843 (const_1_to_2_operand): Ditto.
40844 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
40845 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
40846 (*avx512pf_gatherpf<mode>sf): Ditto.
40847 (avx512pf_gatherpf<mode>df): Ditto.
40848 (*avx512pf_gatherpf<mode>df_mask): Ditto.
40849 (*avx512pf_gatherpf<mode>df): Ditto.
40850 (avx512pf_scatterpf<mode>sf): Ditto.
40851 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
40852 (*avx512pf_scatterpf<mode>sf): Ditto.
40853 (avx512pf_scatterpf<mode>df): Ditto.
40854 (*avx512pf_scatterpf<mode>df_mask): Ditto.
40855 (*avx512pf_scatterpf<mode>df): Ditto.
40856 (avx512f_expand<mode>): Removed.
40857 (<shift_insn><mode>3<mask_name>): Change predicate type.
40859 2014-02-08 Jakub Jelinek <jakub@redhat.com>
40861 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
40862 not at the end of datarefs vector use ordered_remove to avoid
40863 reordering datarefs vector.
40866 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
40867 mark local addressable non-static vars as GOVD_PRIVATE
40868 instead of GOVD_LOCAL.
40869 * omp-low.c (lower_omp_for): Move gimple_bind_vars
40870 and BLOCK_VARS of gimple_bind_block to new_stmt rather
40873 PR middle-end/60092
40874 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
40875 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
40876 assume_aligned or alloc_align attributes.
40877 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
40878 arguments. Handle also assume_aligned and alloc_align attributes.
40879 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
40880 calls to functions with assume_aligned or alloc_align attributes.
40881 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
40883 2014-02-08 Terry Guo <terry.guo@arm.com>
40885 * doc/invoke.texi: Document ARM -march=armv7e-m.
40887 2014-02-08 Jakub Jelinek <jakub@redhat.com>
40889 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
40890 flag on __cilkrts_rethrow builtin.
40893 * ipa-cp.c (determine_versionability): Fail at -O0
40894 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
40895 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
40898 2014-02-04 Jakub Jelinek <jakub@redhat.com>
40901 * tree-inline.c (copy_forbidden): Fail for
40902 __attribute__((optimize (0))) functions.
40904 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
40906 * varpool.c: Include pointer-set.h.
40907 (varpool_remove_unreferenced_decls): Variables in other partitions
40908 will not be output; be however careful to not lose information
40909 about partitioning.
40911 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
40913 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
40914 lookup in the vtable constructor.
40916 2014-02-07 Jeff Law <law@redhat.com>
40919 * config/m68k/m68k.md (ashldi_extsi): Turn into a
40920 define_insn_and_split.
40922 * ipa-inline.c (inline_small_functions): Fix typos.
40924 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
40926 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
40927 (s390_can_use_return_insn): Declare.
40928 * config/s390/s390.h (EPILOGUE_USES): Define.
40929 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
40931 (s390_chunkify_start): Handle return JUMP_LABELs.
40932 (s390_early_mach): Emit a main_pool instruction on the entry edge.
40933 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
40934 (s390_can_use_return_insn): New functions.
40935 (s390_fix_long_loop_prediction): Handle conditional returns.
40936 (TARGET_SET_UP_BY_PROLOGUE): Define.
40937 * config/s390/s390.md (ANY_RETURN): New code iterator.
40938 (*creturn, *csimple_return, return, simple_return): New patterns.
40940 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
40942 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
40943 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
40944 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
40945 REG_CFA_RESTORE list when deciding not to restore a register.
40947 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
40949 * config/s390/s390.c: Include tree-pass.h and context.h.
40950 (s390_early_mach): New function, split out from...
40951 (s390_emit_prologue): ...here.
40952 (pass_data_s390_early_mach): New pass structure.
40953 (pass_s390_early_mach): New class.
40954 (s390_option_override): Create and register early_mach pass.
40955 Move to end of file.
40957 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
40959 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
40960 to match for the exit block.
40962 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40964 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
40965 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
40966 Reject misaligned operands.
40968 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40970 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
40972 2014-02-07 Richard Biener <rguenther@suse.de>
40974 PR middle-end/60092
40975 * gimple-low.c (lower_builtin_posix_memalign): New function.
40976 (lower_stmt): Call it to lower posix_memalign in a way
40977 to make alignment info accessible.
40979 2014-02-07 Jakub Jelinek <jakub@redhat.com>
40982 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
40983 __builtin_setjmp_receiver.
40985 2014-02-07 Richard Biener <rguenther@suse.de>
40987 PR middle-end/60092
40988 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
40989 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
40990 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
40991 Handle BUILT_IN_POSIX_MEMALIGN.
40992 (find_func_clobbers): Likewise.
40993 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
40994 (call_may_clobber_ref_p_1): Likewise.
40996 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
40999 * ipa-devirt.c (record_target_from_binfo): Remove overactive
41002 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
41005 * lto-cgraph.c (lto_output_node): Use
41006 symtab_get_symbol_partitioning_class.
41007 (lto_output_varpool_node): likewise.
41008 (symtab_get_symbol_partitioning_class): Move here from
41009 lto/lto-partition.c
41010 * cgraph.h (symbol_partitioning_class): Likewise.
41011 (symtab_get_symbol_partitioning_class): Declare.
41013 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
41015 * ggc.h (ggc_internal_cleared_alloc): New macro.
41016 * vec.h (vec_safe_copy): Handle memory stats.
41017 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
41018 * target-globals.c (save_target_globals): Likewise.
41020 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
41023 * expr.c (emit_move_resolve_push): Export; be bit more selective
41024 on when to clear alias set.
41025 * expr.h (emit_move_resolve_push): Declare.
41026 * function.h (struct function): Add tail_call_marked.
41027 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
41028 * config/i386/i386-protos.h (ix86_expand_push): Remove.
41029 * config/i386/i386.md (TImode move expander): De not call
41031 (FP push expanders): Preserve memory attributes.
41032 * config/i386/sse.md (push<mode>1): Remove.
41033 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
41034 (ix86_expand_push): Remove.
41035 * config/i386/mmx.md (push<mode>1): Remove.
41037 2014-02-06 Jakub Jelinek <jakub@redhat.com>
41039 PR rtl-optimization/60030
41040 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
41041 lopart with paradoxical subreg before shifting it up by hprec.
41043 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41045 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
41046 Remove extra newline at end of file.
41047 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
41048 (arm_issue_rate): Handle cortexa57.
41049 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
41050 (cortex-a57.cortex-a53): Likewise.
41052 2014-02-06 Jakub Jelinek <jakub@redhat.com>
41055 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
41056 don't record in REG_FRAME_RELATED_EXPR registers not set in that
41058 (arm_expand_prologue): Adjust all callers.
41059 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
41060 info, registers also at the lowest numbered registers side. Use
41061 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
41065 * var-tracking.c (adjust_mems): Before adding a SET to
41066 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
41068 2014-02-06 Alan Modra <amodra@gmail.com>
41071 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
41072 change SDmode to DDmode when lra_in_progress.
41074 2014-02-06 Jakub Jelinek <jakub@redhat.com>
41076 PR middle-end/59150
41077 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
41078 free_data_ref on the dr first, and before goto again also set dr
41079 to the next dr. For simd_lane_access, free old datarefs[i] before
41080 overwriting it. For get_vectype_for_scalar_type failure, don't
41081 free_data_ref if simd_lane_access.
41083 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
41086 * tree.h (opts_for_fn): New inline function.
41087 (opt_for_fn): Define.
41088 * config/i386/i386.c (ix86_function_regparm): Use
41089 opt_for_fn (decl, optimize) instead of optimize.
41091 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
41093 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
41094 for SYMBOL_REF in large memory model.
41096 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41098 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
41099 and crypto support.
41100 (cortex-a57): Likewise.
41101 (cortex-a57.cortex-a53): Likewise.
41103 2014-02-06 Yury Gribov <y.gribov@samsung.com>
41104 Kugan Vivekanandarajah <kuganv@linaro.org>
41106 * config/arm/arm.c (arm_vector_alignment_reachable): Check
41108 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
41110 2014-02-06 Richard Biener <rguenther@suse.de>
41112 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
41113 set_loop_copy and initialize_original_copy_tables.
41115 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
41117 * config/aarch64/aarch64-simd.md
41118 (aarch64_ashr_simddi): Change QI to SI.
41120 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
41121 Jakub Jelinek <jakub@redhat.com>
41123 PR middle-end/60013
41124 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
41127 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41129 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
41130 CODE_FOR_altivec_vpku[hw]um to
41131 CODE_FOR_altivec_vpku[hw]um_direct.
41132 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
41133 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
41134 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
41135 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
41137 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41139 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
41140 generation for -maltivec=be.
41141 (altivec_vsumsws): Simplify redundant test.
41143 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41145 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
41146 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
41147 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
41148 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
41149 gen_altivec_vpkuwum.
41150 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
41152 (altivec_vpks<VI_char>ss): Likewise.
41153 (altivec_vpks<VI_char>us): Likewise.
41154 (altivec_vpku<VI_char>us): Likewise.
41155 (altivec_vpku<VI_char>um): Likewise.
41156 (altivec_vpku<VI_char>um_direct): New (copy of
41157 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
41159 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
41160 target is little endian and -maltivec=be is not specified.
41161 (*altivec_vupkhs<VU_char>_direct): New (copy of
41162 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
41163 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
41164 target is little endian and -maltivec=be is not specified.
41165 (*altivec_vupkls<VU_char>_direct): New (copy of
41166 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
41167 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
41168 little endian and -maltivec=be is not specified.
41169 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
41170 little endian and -maltivec=be is not specified.
41172 2014-02-05 Richard Henderson <rth@redhat.com>
41175 * combine-stack-adj.c: Revert r206943.
41176 * sched-int.h (struct deps_desc): Add last_args_size.
41177 * sched-deps.c (init_deps): Initialize it.
41178 (sched_analyze_insn): Add OUTPUT dependencies between insns that
41179 contain REG_ARGS_SIZE notes.
41181 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
41183 * lto-cgraph.c (asm_nodes_output): Make global.
41184 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
41185 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
41186 (driver_handle_option): Handle OPT_fwpa.
41188 2014-02-05 Jakub Jelinek <jakub@redhat.com>
41191 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
41192 a comment typo and formatting issue. If odr_hash hasn't been
41193 created, return vNULL and set *completep to false.
41195 PR middle-end/57499
41196 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
41197 bb with no successors.
41199 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
41202 * doc/invoke.texi (-march): Clarify documentation for ARM.
41203 (-mtune): Likewise.
41206 2014-02-05 Richard Biener <rguenther@suse.de>
41208 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
41209 when not vectorizing because of too many alias checks.
41210 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
41211 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
41213 2014-02-05 Nick Clifton <nickc@redhat.com>
41215 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
41216 accept extended registers in any mode when compiling for the MN10300.
41218 2014-02-05 Yury Gribov <y.gribov@samsung.com>
41220 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
41221 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
41222 sanitization attributes.
41223 (can_inline_edge_p): Likewise.
41224 (sanitize_attrs_match_for_inline_p): New function.
41226 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
41228 * ipa-prop.c (detect_type_change): Shor circuit testing of
41229 type changes on THIS pointer.
41231 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
41234 * config/pa/pa.c (legitimize_tls_address): Return original address
41235 if not passed a SYMBOL_REF rtx.
41236 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
41238 (pa_emit_move_sequence): Simplify TLS source operands.
41239 (pa_legitimate_constant_p): Reject all TLS constants.
41240 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
41241 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
41243 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
41245 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
41246 groups when we know they are controlled by LTO.
41247 * varasm.c (default_binds_local_p_1): If object is in other partition,
41248 it will be resolved locally.
41250 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
41252 * config/host-linux.c (linux_gt_pch_use_address): Don't
41253 use SSIZE_MAX because it is not always defined.
41255 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
41258 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
41259 threshold for pseudo splitting.
41260 (update_ebb_live_info): Process call argument hard registers and
41261 hard registers from insn definition too.
41262 (max_small_class_regs_num): New constant.
41263 (inherit_in_ebb): Update live hard regs through EBBs. Update
41264 reloads_num only for small register classes. Don't split for
41267 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
41270 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
41273 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
41275 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
41276 visibility is safe.
41278 2014-02-04 Marek Polacek <polacek@redhat.com>
41280 * gdbinit.in (pel): Define.
41282 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
41284 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
41287 2014-02-04 Richard Biener <rguenther@suse.de>
41290 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
41291 in function context local.
41292 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
41293 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
41294 similar to LTO_imported_decl_ref.
41296 2014-02-04 Jakub Jelinek <jakub@redhat.com>
41298 PR tree-optimization/60002
41299 * cgraphclones.c (build_function_decl_skip_args): Clear
41300 DECL_LANG_SPECIFIC.
41302 PR tree-optimization/60023
41303 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
41304 false to gsi_replace.
41305 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
41306 has been in some EH region and vec_stmt could throw, add
41307 vec_stmt into the same EH region.
41308 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
41309 has no lhs, ignore it.
41310 * internal-fn.c (expand_MASK_LOAD): Likewise.
41313 * tree-inline.c (copy_forbidden): Fail for
41314 __attribute__((optimize (0))) functions.
41317 * omp-low.c (simd_clone_struct_copy): If from->inbranch
41318 is set, copy one less argument.
41319 (expand_simd_clones): Don't subtract clone_info->inbranch
41320 from simd_clone_struct_alloc argument.
41322 PR rtl-optimization/57915
41323 * recog.c (simplify_while_replacing): If all unary/binary/relational
41324 operation arguments are constant, attempt to simplify those.
41326 PR middle-end/59261
41327 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
41328 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
41330 2014-02-04 Richard Biener <rguenther@suse.de>
41332 PR tree-optimization/60012
41333 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
41334 TBAA disambiguation to all DDRs.
41336 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41339 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
41340 (LINK_SPEC): Use it for -shared, -shared-libgcc.
41342 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
41345 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
41347 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
41349 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
41350 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
41352 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
41355 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
41356 to figure out targets of polymorphic calls with known decl.
41357 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
41358 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
41359 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
41360 (get_polymorphic_call_info): ... here.
41361 (get_polymorphic_call_info_from_invariant): New function.
41363 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
41365 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
41366 lookup via vtable pointer; check for type consistency
41367 and turn inconsitent facts into UNREACHABLE.
41368 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
41369 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
41370 type inconsistent querries; return UNREACHABLE instead.
41372 2014-02-03 Richard Henderson <rth@twiddle.net>
41375 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
41376 already processed this node.
41377 (normalize_one_pred_1): Pass along mark_set.
41378 (normalize_one_pred): Create and destroy a pointer_set_t.
41379 (normalize_one_pred_chain): Likewise.
41381 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
41383 PR gcov-profile/58602
41384 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
41386 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
41389 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
41390 -fno-devirtualize; try to devirtualize by the knowledge of
41391 virtual table pointer given by aggregate propagation.
41392 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
41393 (ipa_print_node_jump_functions): Dump also offset that
41394 is relevant for polymorphic calls.
41395 (determine_known_aggregate_parts): Add arg_type parameter; use it
41396 instead of determining the type from pointer type.
41397 (ipa_compute_jump_functions_for_edge): Update call of
41398 determine_known_aggregate_parts.
41399 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
41400 (gimple_get_virt_method_for_binfo): ... here; simplify using
41401 vtable_pointer_value_to_vtable.
41402 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
41403 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
41404 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
41405 (vtable_pointer_value_to_vtable): Break out from ...; handle also
41407 (vtable_pointer_value_to_binfo): ... here.
41408 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
41410 2014-02-03 Teresa Johnson <tejohnson@google.com>
41412 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
41413 redef of outer loop index variable.
41415 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
41419 * doc/extend.texi (Function Attributes): Typo.
41421 2014-02-03 Cong Hou <congh@google.com>
41423 PR tree-optimization/60000
41424 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
41425 if the vectorized statement is a store. A store statement can only
41426 appear at the end of pattern statements.
41428 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
41430 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
41431 (ix86_option_override_internal): Default long double to 64-bit for
41432 32-bit Bionic and to 128-bit for 64-bit Bionic.
41434 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
41435 TARGET_LONG_DOUBLE_128 is true.
41436 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
41438 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
41439 (mlong-double-64): Negate -mlong-double-128.
41440 (mlong-double-128): New option.
41442 * config/i386/i386-c.c (ix86_target_macros): Define
41443 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
41445 * doc/invoke.texi: Document -mlong-double-128.
41447 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
41449 PR rtl-optimization/60024
41450 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
41452 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
41454 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
41456 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
41458 PR rtl-optimization/57662
41459 * sel-sched.c (code_motion_path_driver): Do not mark already not
41460 existing blocks in the visiting bitmap.
41462 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
41464 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
41465 on the insn being emitted.
41467 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
41468 Will Deacon <will.deacon@arm.com>
41470 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
41472 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41474 * config/arm/arm-tables.opt: Regenerate.
41476 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41478 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
41479 for vector types other than V16QImode.
41480 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
41481 define_expand, and call altivec_expand_vec_perm_le when producing
41482 code with little endian element order.
41483 (*altivec_vperm_<mode>_internal): New insn having previous
41484 behavior of altivec_vperm_<mode>.
41485 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
41486 altivec_expand_vec_perm_le when producing code with little endian
41488 (*altivec_vperm_<mode>_uns_internal): New insn having previous
41489 behavior of altivec_vperm_<mode>_uns.
41491 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41493 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
41494 (altivec_vsumsws): Add handling for -maltivec=be with a little
41496 (altivec_vsumsws_direct): New.
41497 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
41498 gen_altivec_vsumsws.
41500 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
41502 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
41503 vtable_pointer_value_to_binfo): New functions.
41504 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
41505 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
41507 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
41509 * config/nios2/nios2.md (load_got_register): Initialize GOT
41510 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
41511 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
41513 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
41515 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
41516 preserverd by passthrough, do not propagate the type.
41518 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
41520 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
41521 (mips_atomic_assign_expand_fenv): New function.
41522 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
41524 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
41526 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
41527 (__builtin_mips_set_fcsr): Likewise.
41528 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
41529 MIPS_USI_FTYPE_VOID.
41530 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
41531 (mips16_expand_set_fcsr): Likewise.
41532 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
41533 (mips16_set_fcsr_stub): Likewise.
41534 (mips16_get_fcsr_one_only_stub): New class.
41535 (mips16_set_fcsr_one_only_stub): Likewise.
41536 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
41537 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
41538 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
41539 (hard_float): New availability predicate.
41540 (mips_builtins): Add get_fcsr and set_fcsr.
41541 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
41542 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
41543 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
41544 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
41545 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
41548 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
41550 * config/mips/mips.c (mips_one_only_stub): New class.
41551 (mips_need_mips16_rdhwr_p): Replace with...
41552 (mips16_rdhwr_stub): ...this new variable.
41553 (mips16_stub_call_address): New function.
41554 (mips16_rdhwr_one_only_stub): New class.
41555 (mips_expand_thread_pointer): Use mips16_stub_call_address.
41556 (mips_output_mips16_rdhwr): Delete.
41557 (mips_finish_stub): New function.
41558 (mips_code_end): Use it to handle rdhwr stubs.
41560 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
41563 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
41564 when calculating size of integer atomic types.
41566 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
41568 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
41570 2014-02-01 Jakub Jelinek <jakub@redhat.com>
41572 PR tree-optimization/60003
41573 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
41574 * profile.c (branch_prob): Use gimple_call_builtin_p
41575 to check for BUILT_IN_SETJMP_RECEIVER.
41576 * tree-inline.c (copy_bb): Call notice_special_calls.
41578 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
41581 * lra-constraints.c (process_alt_operands): Update reload_sum only
41584 2014-01-31 Richard Henderson <rth@redhat.com>
41586 PR middle-end/60004
41587 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
41588 until after else_eh is processed.
41590 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
41592 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
41593 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
41594 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
41595 in smmintrin.h, remove them.
41596 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
41597 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
41598 * config/i386/i386.md (ROUND_SAE): Fix value.
41599 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
41600 (const48_operand): New.
41601 * config/i386/subst.md (round), (round_expand): Use
41602 const_4_or_8_to_11_operand.
41603 (round_saeonly), (round_saeonly_expand): Use const48_operand.
41605 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
41607 * config/i386/constraints.md (Yk): Swap meaning with k.
41608 * config/i386/i386.md (movhi_internal): Change Yk to k.
41609 (movqi_internal): Ditto.
41610 (*k<logic><mode>): Ditto.
41613 (kandn<mode>): Ditto.
41614 (*<code>hi_1): Ditto.
41615 (*<code>qi_1): Ditto.
41616 (kxnor<mode>): Ditto.
41617 (kortestzhi): Ditto.
41618 (kortestchi): Ditto.
41620 (*one_cmplhi2_1): Ditto.
41621 (*one_cmplqi2_1): Ditto.
41622 * config/i386/sse.md (): Change k to Yk.
41623 (avx512f_load<mode>_mask): Ditto.
41624 (avx512f_blendm<mode>): Ditto.
41625 (avx512f_store<mode>_mask): Ditto.
41626 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
41627 (avx512f_storedqu<mode>_mask): Ditto.
41628 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
41630 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
41631 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
41632 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
41633 (avx512f_maskcmp<mode>3): Ditto.
41634 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
41635 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
41636 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
41637 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
41638 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
41639 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
41640 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
41641 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
41642 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
41643 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
41644 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
41645 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
41646 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
41647 (vec_extract_lo_<mode>_maskm): Ditto.
41648 (vec_extract_hi_<mode>_maskm): Ditto.
41649 (avx512f_vternlog<mode>_mask): Ditto.
41650 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
41651 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
41652 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
41653 (avx512f_<code>v8div16qi2_mask): Ditto.
41654 (avx512f_<code>v8div16qi2_mask_store): Ditto.
41655 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
41656 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
41657 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
41658 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
41659 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
41660 (*avx512pf_gatherpf<mode>df_mask): Ditto.
41661 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
41662 (*avx512pf_scatterpf<mode>df_mask): Ditto.
41663 (avx512cd_maskb_vec_dupv8di): Ditto.
41664 (avx512cd_maskw_vec_dupv16si): Ditto.
41665 (avx512f_vpermi2var<mode>3_maskz): Ditto.
41666 (avx512f_vpermi2var<mode>3_mask): Ditto.
41667 (avx512f_vpermi2var<mode>3_mask): Ditto.
41668 (avx512f_vpermt2var<mode>3_maskz): Ditto.
41669 (*avx512f_gathersi<mode>): Ditto.
41670 (*avx512f_gathersi<mode>_2): Ditto.
41671 (*avx512f_gatherdi<mode>): Ditto.
41672 (*avx512f_gatherdi<mode>_2): Ditto.
41673 (*avx512f_scattersi<mode>): Ditto.
41674 (*avx512f_scatterdi<mode>): Ditto.
41675 (avx512f_compress<mode>_mask): Ditto.
41676 (avx512f_compressstore<mode>_mask): Ditto.
41677 (avx512f_expand<mode>_mask): Ditto.
41678 * config/i386/subst.md (mask): Change k to Yk.
41679 (mask_scalar_merge): Ditto.
41682 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
41684 * doc/extend.texi (Vector Extensions): Document ?: in C++.
41686 2014-01-31 Richard Biener <rguenther@suse.de>
41688 PR middle-end/59990
41689 * builtins.c (fold_builtin_memory_op): Make sure to not
41690 use a floating-point mode or a boolean or enumeral type for
41691 the copy operation.
41693 2014-01-30 DJ Delorie <dj@redhat.com>
41695 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
41696 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
41697 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
41698 whenever main() has an epilogue.
41700 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41702 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
41703 unused variable "field".
41704 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
41705 (vsx_mergeh_<mode>): Likewise.
41706 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
41707 (altivec_vmrghh): Likewise.
41708 (altivec_vmrghw): Likewise.
41709 (altivec_vmrglb): Likewise.
41710 (altivec_vmrglh): Likewise.
41711 (altivec_vmrglw): Likewise.
41712 (altivec_vspltb): Add missing uses.
41713 (altivec_vsplth): Likewise.
41714 (altivec_vspltw): Likewise.
41715 (altivec_vspltsf): Likewise.
41717 2014-01-30 Jakub Jelinek <jakub@redhat.com>
41720 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
41721 frame related instructions.
41723 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
41725 PR rtl-optimization/59959
41726 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
41727 any reload of register whose subreg is invalid.
41729 2014-01-30 Jakub Jelinek <jakub@redhat.com>
41731 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
41732 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
41733 Add missing return type - void.
41735 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41737 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
41738 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
41739 remove element index adjustment for endian (now handled in vsx.md
41741 (altivec_expand_vec_perm_const): Use
41742 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
41743 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
41744 (vsx_xxspltw_<mode>): Adjust element index for little endian.
41745 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
41746 define_expand and a new define_insn *altivec_vspltb_internal;
41747 adjust for -maltivec=be on a little endian target.
41748 (altivec_vspltb_direct): New.
41749 (altivec_vsplth): Divide into a define_expand and a new
41750 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
41751 little endian target.
41752 (altivec_vsplth_direct): New.
41753 (altivec_vspltw): Divide into a define_expand and a new
41754 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
41755 little endian target.
41756 (altivec_vspltw_direct): New.
41757 (altivec_vspltsf): Divide into a define_expand and a new
41758 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
41759 a little endian target.
41761 2014-01-30 Richard Biener <rguenther@suse.de>
41763 PR tree-optimization/59993
41764 * tree-ssa-forwprop.c (associate_pointerplus): Check we
41765 can propagate form the earlier stmt and avoid the transform
41766 when the intermediate result is needed.
41768 2014-01-30 Alangi Derick <alangiderick@gmail.com>
41770 * README.Portability: Fix typo.
41772 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
41774 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
41775 comparison_operator with ordered_comparison_operator.
41777 2014-01-30 Nick Clifton <nickc@redhat.com>
41779 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
41780 Rename to mn10300_store_multiple_regs.
41781 * config/mn10300/mn10300.c: Likewise.
41782 * config/mn10300/mn10300.md (store_movm): Fix typo: call
41783 store_multiple_regs.
41784 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
41785 Call mn10300_store_multiple_regs.
41787 2014-01-30 Nick Clifton <nickc@redhat.com>
41788 DJ Delorie <dj@redhat.com>
41790 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
41791 %fp 2 to keep registers after it properly word-aligned.
41792 (rl78_alloc_physical_registers_umul): Handle the case where both
41793 input operands are the same.
41795 2014-01-30 Richard Biener <rguenther@suse.de>
41797 PR tree-optimization/59903
41798 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
41801 2014-01-30 Jason Merrill <jason@redhat.com>
41804 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
41807 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
41809 2014-01-30 Richard Biener <rguenther@suse.de>
41811 PR tree-optimization/59951
41812 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
41814 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
41817 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
41818 SFmode to DFmode case.
41820 2014-01-29 DJ Delorie <dj@redhat.com>
41822 * config/msp430/msp430.opt (-minrt): New.
41823 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
41825 (ENDFILE_SPEC): Likewise.
41827 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
41829 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
41830 (estimate_function_body_sizes): Use it.
41832 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
41835 * dwarf2out.c (is_cxx_auto): New.
41836 (is_base_type): Use it.
41837 (gen_type_die_with_usage): Likewise.
41839 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41841 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
41842 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
41843 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
41844 -maltivec=be with LE targets.
41845 (vsx_mergeh_<mode>): Likewise.
41846 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
41847 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
41848 (altivec_vmrghb): Replace with define_expand and new
41849 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
41850 (altivec_vmrghb_direct): New define_insn.
41851 (altivec_vmrghh): Replace with define_expand and new
41852 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
41853 (altivec_vmrghh_direct): New define_insn.
41854 (altivec_vmrghw): Replace with define_expand and new
41855 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
41856 (altivec_vmrghw_direct): New define_insn.
41857 (*altivec_vmrghsf): Adjust for endianness.
41858 (altivec_vmrglb): Replace with define_expand and new
41859 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
41860 (altivec_vmrglb_direct): New define_insn.
41861 (altivec_vmrglh): Replace with define_expand and new
41862 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
41863 (altivec_vmrglh_direct): New define_insn.
41864 (altivec_vmrglw): Replace with define_expand and new
41865 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
41866 (altivec_vmrglw_direct): New define_insn.
41867 (*altivec_vmrglsf): Adjust for endianness.
41868 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
41869 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
41870 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
41871 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
41872 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
41873 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
41874 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
41875 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
41877 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
41879 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
41880 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
41883 2014-01-29 Richard Biener <rguenther@suse.de>
41885 PR tree-optimization/58742
41886 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
41887 associate_pointerplus_align.
41888 (associate_pointerplus_diff): New function.
41889 (associate_pointerplus): Likewise. Call associate_pointerplus_align
41890 and associate_pointerplus_diff.
41892 2014-01-29 Richard Biener <rguenther@suse.de>
41894 * lto-streamer.h (LTO_major_version): Bump to 3.
41895 (LTO_minor_version): Reset to 0.
41897 2014-01-29 Renlin Li <Renlin.Li@arm.com>
41899 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
41900 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
41901 (arm_file_start): Generate correct asm header for armv7ve.
41902 * config/arm/bpabi.h: Add multilib support for armv7ve.
41903 * config/arm/driver-arm.c: Change the architectures of cortex-a7
41904 and cortex-a15 to armv7ve.
41905 * config/arm/t-aprofile: Add multilib support for armv7ve.
41906 * doc/invoke.texi: Document -march=armv7ve.
41908 2014-01-29 Richard Biener <rguenther@suse.de>
41910 PR tree-optimization/58742
41911 * tree-ssa-forwprop.c (associate_plusminus): Return true
41912 if we changed sth, defer EH cleanup to ...
41913 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
41914 (simplify_mult): New function.
41916 2014-01-29 Jakub Jelinek <jakub@redhat.com>
41918 PR middle-end/59917
41919 PR tree-optimization/59920
41920 * tree.c (build_common_builtin_nodes): Remove
41921 __builtin_setjmp_dispatcher initialization.
41922 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
41923 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
41924 instead of gsi_after_labels + manually skipping debug stmts.
41925 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
41926 ignore bbs with IFN_ABNORMAL_DISPATCHER.
41927 * tree-inline.c (copy_edges_for_bb): Remove
41928 can_make_abnormal_goto argument, instead add abnormal_goto_dest
41929 argument. Ignore computed_goto_p stmts. Don't call
41930 make_abnormal_goto_edges. If a call might need abnormal edges
41931 for non-local gotos, see if it already has an edge to
41932 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
41933 with true argument, don't do anything then, otherwise add
41934 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
41935 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
41937 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
41938 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
41939 (lower_stmt): Don't set data->calls_builtin_setjmp.
41940 (lower_builtin_setjmp): Adjust comment.
41941 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
41942 * tree-cfg.c (found_computed_goto): Remove.
41943 (factor_computed_gotos): Remove.
41944 (make_goto_expr_edges): Return bool, true for computed gotos.
41945 Don't call make_abnormal_goto_edges.
41946 (build_gimple_cfg): Don't set found_computed_goto, don't call
41947 factor_computed_gotos.
41948 (computed_goto_p): No longer static.
41949 (make_blocks): Don't set found_computed_goto.
41950 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
41951 (make_edges): If make_goto_expr_edges returns true, push bb
41952 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
41953 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
41954 vector. Record mapping between bbs and OpenMP regions if there
41955 are any, adjust make_gimple_omp_edges caller. Call
41956 handle_abnormal_edges.
41957 (make_abnormal_goto_edges): Remove.
41958 * tree-cfg.h (make_abnormal_goto_edges): Remove.
41959 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
41960 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
41961 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
41962 * internal-fn.def (ABNORMAL_DISPATCHER): New.
41963 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
41964 filling *region also set *region_idx to (*region)->entry->index.
41967 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
41968 For REGs set ORIGINAL_REGNO.
41970 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
41972 * doc/md.texi: Mention that a target shouldn't implement
41973 vec_widen_(s|u)mul_even/odd pair if it is less efficient
41976 2014-01-29 Jakub Jelinek <jakub@redhat.com>
41978 PR tree-optimization/59594
41979 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
41980 a copy of the datarefs vector rather than the vector itself.
41982 2014-01-28 Jason Merrill <jason@redhat.com>
41985 * dwarf2out.c (auto_die): New static.
41986 (gen_type_die_with_usage): Handle C++1y 'auto'.
41987 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
41990 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
41993 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
41994 (SPEC_X32): Likewise.
41995 (SPEC_64): Likewise.
41996 * config/i386/i386.c (ix86_option_override_internal): Turn off
41997 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
41999 (x86_file_start): Output .code16gcc for TARGET_16BIT.
42000 * config/i386/i386.h (TARGET_16BIT): New macro.
42001 (TARGET_16BIT_P): Likewise.
42002 * config/i386/i386.opt: Add m16.
42003 * doc/invoke.texi: Document -m16.
42005 2014-01-28 Jakub Jelinek <jakub@redhat.com>
42007 PR preprocessor/59935
42008 * input.c (location_get_source_line): Bail out on when line number
42009 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
42011 2014-01-28 Richard Biener <rguenther@suse.de>
42013 PR tree-optimization/58742
42014 * tree-ssa-forwprop.c (associate_plusminus): Handle
42015 pointer subtraction of the form (T)(P + A) - (T)P.
42017 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42019 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
42022 2014-01-28 Richard Biener <rguenther@suse.de>
42025 2014-01-28 Richard Biener <rguenther@suse.de>
42027 PR rtl-optimization/45364
42028 PR rtl-optimization/59890
42029 * var-tracking.c (local_get_addr_clear_given_value): Handle
42030 already cleared slot.
42031 (val_reset): Handle not allocated local_get_addr_cache.
42032 (vt_find_locations): Use post-order on the inverted CFG.
42034 2014-01-28 Richard Biener <rguenther@suse.de>
42036 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
42038 2014-01-28 Richard Biener <rguenther@suse.de>
42040 PR rtl-optimization/45364
42041 PR rtl-optimization/59890
42042 * var-tracking.c (local_get_addr_clear_given_value): Handle
42043 already cleared slot.
42044 (val_reset): Handle not allocated local_get_addr_cache.
42045 (vt_find_locations): Use post-order on the inverted CFG.
42047 2014-01-28 Alan Modra <amodra@gmail.com>
42049 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
42050 * configure.ac <recursive call for build != host>: Define
42051 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
42052 and LD_FOR_BUILD too.
42053 * configure: Regenerate.
42055 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
42057 * config/i386/i386.c (get_builtin_code_for_version): Separate
42058 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
42059 Broadwell from Haswell.
42061 2014-01-27 Steve Ellcey <sellcey@mips.com>
42063 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
42064 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
42065 * config/mips/mips.c (mips_option_override): Change setting
42067 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
42068 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
42069 Change from Mask to Var.
42071 2014-01-27 Jeff Law <law@redhat.com>
42073 * ipa-inline.c (inline_small_functions): Fix typo.
42075 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
42077 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
42078 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
42079 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
42080 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
42081 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
42082 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
42083 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
42084 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
42085 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
42086 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
42087 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
42088 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
42089 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
42090 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
42091 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
42092 (_mm512_storeu_epi64): Ditto.
42093 (_mm512_cmpge_epi32_mask): Ditto.
42094 (_mm512_cmpge_epu32_mask): Ditto.
42095 (_mm512_cmpge_epi64_mask): Ditto.
42096 (_mm512_cmpge_epu64_mask): Ditto.
42097 (_mm512_cmple_epi32_mask): Ditto.
42098 (_mm512_cmple_epu32_mask): Ditto.
42099 (_mm512_cmple_epi64_mask): Ditto.
42100 (_mm512_cmple_epu64_mask): Ditto.
42101 (_mm512_cmplt_epi32_mask): Ditto.
42102 (_mm512_cmplt_epu32_mask): Ditto.
42103 (_mm512_cmplt_epi64_mask): Ditto.
42104 (_mm512_cmplt_epu64_mask): Ditto.
42105 (_mm512_cmpneq_epi32_mask): Ditto.
42106 (_mm512_cmpneq_epu32_mask): Ditto.
42107 (_mm512_cmpneq_epi64_mask): Ditto.
42108 (_mm512_cmpneq_epu64_mask): Ditto.
42109 (_mm512_expand_pd): Ditto.
42110 (_mm512_expand_ps): Ditto.
42111 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
42112 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
42113 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
42114 * config/i386/i386.c (ix86_builtins): Add
42115 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
42116 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
42117 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
42118 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
42119 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
42120 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
42121 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
42122 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
42123 IX86_BUILTIN_PMOVUSQW512_MEM.
42124 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
42125 __builtin_ia32_pmovsqd512mem_mask,
42126 __builtin_ia32_pmovqd512mem_mask,
42127 __builtin_ia32_pmovusqw512mem_mask,
42128 __builtin_ia32_pmovsqw512mem_mask,
42129 __builtin_ia32_pmovqw512mem_mask,
42130 __builtin_ia32_pmovusdw512mem_mask,
42131 __builtin_ia32_pmovsdw512mem_mask,
42132 __builtin_ia32_pmovdw512mem_mask,
42133 __builtin_ia32_pmovqb512mem_mask,
42134 __builtin_ia32_pmovusqb512mem_mask,
42135 __builtin_ia32_pmovsqb512mem_mask,
42136 __builtin_ia32_pmovusdb512mem_mask,
42137 __builtin_ia32_pmovsdb512mem_mask,
42138 __builtin_ia32_pmovdb512mem_mask.
42139 (bdesc_args): Add __builtin_ia32_expanddf512,
42140 __builtin_ia32_expandsf512.
42141 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
42142 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
42143 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
42144 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
42145 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
42146 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
42147 (avx512f_<code>v8div16qi2_mask_store): This.
42148 (avx512f_expand<mode>): New.
42150 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
42152 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
42154 (_mm512_mask_prefetch_i64gather_pd): Ditto.
42155 (_mm512_prefetch_i32scatter_pd): Ditto.
42156 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
42157 (_mm512_prefetch_i64scatter_pd): Ditto.
42158 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
42159 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
42160 (_mm512_mask_prefetch_i64gather_ps): Ditto.
42161 (_mm512_prefetch_i32scatter_ps): Ditto.
42162 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
42163 (_mm512_prefetch_i64scatter_ps): Ditto.
42164 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
42165 * config/i386/i386-builtin-types.def: Define
42166 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
42167 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
42168 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
42169 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
42170 IX86_BUILTIN_SCATTERPFQPD.
42171 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
42172 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
42173 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
42174 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
42175 __builtin_ia32_scatterpfqps.
42176 (ix86_expand_builtin): Expand new built-ins.
42177 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
42178 fix memory access data type.
42179 (*avx512pf_gatherpf<mode>_mask): Ditto.
42180 (*avx512pf_gatherpf<mode>): Ditto.
42181 (avx512pf_scatterpf<mode>): Ditto.
42182 (*avx512pf_scatterpf<mode>_mask): Ditto.
42183 (*avx512pf_scatterpf<mode>): Ditto.
42184 (GATHER_SCATTER_SF_MEM_MODE): New.
42185 (avx512pf_gatherpf<mode>df): Ditto.
42186 (*avx512pf_gatherpf<mode>df_mask): Ditto.
42187 (*avx512pf_scatterpf<mode>df): Ditto.
42189 2014-01-27 Jakub Jelinek <jakub@redhat.com>
42192 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
42193 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
42196 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
42198 * common/config/arm/arm-common.c
42199 (arm_rewrite_mcpu): Handle multiple names.
42201 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
42203 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
42205 * gimple-builder.h (create_gimple_tmp): Delete.
42207 2014-01-27 Christian Bruel <christian.bruel@st.com>
42209 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
42212 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
42214 * config/pa/pa.md (call): Generate indirect long calls to non-local
42215 functions when outputing 32-bit code.
42216 (call_value): Likewise except for special call to buggy powf function.
42218 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
42219 portable runtime and PIC indirect calls.
42220 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
42221 and PIC call sequences. Use ldo instead of blr to set return register
42222 in PIC call sequence.
42224 2014-01-25 Walter Lee <walt@tilera.com>
42226 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
42227 avoid clobbering a live register.
42229 2014-01-25 Walter Lee <walt@tilera.com>
42231 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
42232 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
42233 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
42234 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
42236 2014-01-25 Walter Lee <walt@tilera.com>
42238 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
42239 arguments on even registers.
42240 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
42242 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
42243 (BIGGEST_ALIGNMENT): Ditto.
42244 (BIGGEST_FIELD_ALIGNMENT): Ditto.
42246 2014-01-25 Walter Lee <walt@tilera.com>
42248 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
42249 insns before bundling.
42250 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
42252 2014-01-25 Walter Lee <walt@tilera.com>
42254 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
42255 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
42256 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
42258 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
42260 * config/mips/constraints.md (kl): Delete.
42261 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
42262 define expands, using...
42263 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
42264 instructions for MIPS16.
42265 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
42266 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
42268 2014-01-25 Walter Lee <walt@tilera.com>
42270 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
42274 2014-01-25 Walter Lee <walt@tilera.com>
42276 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
42277 (TARGET_EXPAND_TO_RTL_HOOK): Define.
42279 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
42281 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
42284 2014-01-25 Jakub Jelinek <jakub@redhat.com>
42286 * print-rtl.c (in_call_function_usage): New var.
42287 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
42288 EXPR_LIST mode as mode and not as reg note name.
42290 PR middle-end/59561
42291 * cfgloopmanip.c (copy_loop_info): If
42292 loop->warned_aggressive_loop_optimizations, make sure
42293 the flag is set in target loop too.
42295 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
42297 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
42299 * builtins.def: Likewise.
42300 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
42301 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
42302 * ira.c (ira_setup_eliminable_regset): Likewise.
42303 * omp-low.c (gate_expand_omp): Likewise.
42304 (execute_lower_omp): Likewise.
42305 (diagnose_sb_0): Likewise.
42306 (gate_diagnose_omp_blocks): Likewise.
42307 (simd_clone_clauses_extract): Likewise.
42310 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
42312 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
42313 correction for little endian...
42314 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
42317 2014-01-24 Jeff Law <law@redhat.com>
42319 PR tree-optimization/59919
42320 * tree-vrp.c (find_assert_locations_1): Do not register asserts
42321 for non-returning calls.
42323 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
42325 * common/config/aarch64/aarch64-common.c
42326 (aarch64_rewrite_mcpu): Handle multiple names.
42327 * config/aarch64/aarch64.h
42328 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
42330 2014-01-24 Dodji Seketeli <dodji@redhat.com>
42332 * input.c (add_file_to_cache_tab): Handle the case where fopen
42335 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
42338 * config/i386/i386.md (pushsf splitter): Get stack adjustment
42339 from push operand if code of push isn't PRE_DEC.
42341 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
42344 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
42345 -mquad-memory-atomic. Update -mquad-memory documentation to say
42346 it is only used for non-atomic loads/stores.
42348 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
42349 -mquad-memory or -mquad-memory-atomic switches.
42351 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
42352 -mquad-memory-atomic to ISA 2.07 support.
42354 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
42355 to separate support of normal quad word memory operations (ldq, stq)
42356 from the atomic quad word memory operations.
42358 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
42359 support to separate non-atomic quad word operations from atomic
42360 quad word operations. Disable non-atomic quad word operations in
42361 little endian mode so that we don't have to swap words after the
42362 load and before the store.
42363 (quad_load_store_p): Add comment about atomic quad word support.
42364 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
42365 options printed with -mdebug=reg.
42367 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
42368 -mquad-memory-atomic as the test for whether we have quad word
42369 atomic instructions.
42370 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
42371 or -mp8-vector are used, allow byte/half-word atomic operations.
42373 * config/rs6000/sync.md (load_lockedti): Insure that the address
42374 is a proper indexed or indirect address for the lqarx instruction.
42375 On little endian systems, swap the hi/lo registers after the lqarx
42377 (load_lockedpti): Use indexed_or_indirect_operand predicate to
42378 insure the address is valid for the lqarx instruction.
42379 (store_conditionalti): Insure that the address is a proper indexed
42380 or indirect address for the stqcrx. instruction. On little endian
42381 systems, swap the hi/lo registers before doing the stqcrx.
42383 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
42384 insure the address is valid for the stqcrx. instruction.
42386 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
42387 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
42388 type of quad memory support is available.
42390 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
42392 PR regression/59915
42393 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
42394 there is a danger of looping.
42396 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
42398 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
42399 force flag_ira_loop_pressure if set via command line.
42401 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
42403 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
42404 (ashr_simd): New builtin handling DI mode.
42405 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
42406 (aarch64_sshr_simddi): New match pattern.
42407 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
42408 (vshrd_n_s64): Likewise.
42409 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
42411 2014-01-23 Nick Clifton <nickc@redhat.com>
42413 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
42414 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
42415 favour of mcu specific scripts.
42416 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
42419 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
42420 Alex Velenko <Alex.Velenko@arm.com>
42422 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
42423 (vaddv_s16): Likewise.
42424 (vaddv_s32): Likewise.
42425 (vaddv_u8): Likewise.
42426 (vaddv_u16): Likewise.
42427 (vaddv_u32): Likewise.
42428 (vaddvq_s8): Likewise.
42429 (vaddvq_s16): Likewise.
42430 (vaddvq_s32): Likewise.
42431 (vaddvq_s64): Likewise.
42432 (vaddvq_u8): Likewise.
42433 (vaddvq_u16): Likewise.
42434 (vaddvq_u32): Likewise.
42435 (vaddvq_u64): Likewise.
42436 (vaddv_f32): Likewise.
42437 (vaddvq_f32): Likewise.
42438 (vaddvq_f64): Likewise.
42439 (vmaxv_f32): Likewise.
42440 (vmaxv_s8): Likewise.
42441 (vmaxv_s16): Likewise.
42442 (vmaxv_s32): Likewise.
42443 (vmaxv_u8): Likewise.
42444 (vmaxv_u16): Likewise.
42445 (vmaxv_u32): Likewise.
42446 (vmaxvq_f32): Likewise.
42447 (vmaxvq_f64): Likewise.
42448 (vmaxvq_s8): Likewise.
42449 (vmaxvq_s16): Likewise.
42450 (vmaxvq_s32): Likewise.
42451 (vmaxvq_u8): Likewise.
42452 (vmaxvq_u16): Likewise.
42453 (vmaxvq_u32): Likewise.
42454 (vmaxnmv_f32): Likewise.
42455 (vmaxnmvq_f32): Likewise.
42456 (vmaxnmvq_f64): Likewise.
42457 (vminv_f32): Likewise.
42458 (vminv_s8): Likewise.
42459 (vminv_s16): Likewise.
42460 (vminv_s32): Likewise.
42461 (vminv_u8): Likewise.
42462 (vminv_u16): Likewise.
42463 (vminv_u32): Likewise.
42464 (vminvq_f32): Likewise.
42465 (vminvq_f64): Likewise.
42466 (vminvq_s8): Likewise.
42467 (vminvq_s16): Likewise.
42468 (vminvq_s32): Likewise.
42469 (vminvq_u8): Likewise.
42470 (vminvq_u16): Likewise.
42471 (vminvq_u32): Likewise.
42472 (vminnmv_f32): Likewise.
42473 (vminnmvq_f32): Likewise.
42474 (vminnmvq_f64): Likewise.
42476 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
42478 * config/aarch64/aarch64-simd.md
42479 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
42480 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
42481 (*aarch64_mul3_elt<mode>): Likewise.
42482 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
42483 (*aarch64_mul3_elt_to_64v2df): Likewise.
42484 (*aarch64_mla_elt<mode>): Likewise.
42485 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
42486 (*aarch64_mls_elt<mode>): Likewise.
42487 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
42488 (*aarch64_fma4_elt<mode>): Likewise.
42489 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
42490 (*aarch64_fma4_elt_to_64v2df): Likewise.
42491 (*aarch64_fnma4_elt<mode>): Likewise.
42492 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
42493 (*aarch64_fnma4_elt_to_64v2df): Likewise.
42494 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
42495 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
42496 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
42497 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
42498 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
42499 (aarch64_sqdmull_lane<mode>_internal): Likewise.
42500 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
42502 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
42504 * config/aarch64/aarch64-simd.md
42505 (aarch64_be_checked_get_lane<mode>): New define_expand.
42506 * config/aarch64/aarch64-simd-builtins.def
42507 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
42508 New builtin definition.
42509 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
42510 Use new safe be builtin.
42512 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
42514 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
42516 (aarch64_be_st1<mode>): Likewise.
42517 (aarch_ld1<VALL:mode>): Define_expand modified.
42518 (aarch_st1<VALL:mode>): Likewise.
42519 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
42520 (UNSPEC_ST1): Likewise.
42522 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
42524 * config/microblaze/microblaze.md: Add trap insn and attribute
42526 2014-01-23 Dodji Seketeli <dodji@redhat.com>
42528 PR preprocessor/58580
42529 * input.h (location_get_source_line): Take an additional line_size
42531 (void diagnostics_file_cache_fini): Declare new function.
42532 * input.c (struct fcache): New type.
42533 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
42534 New static constants.
42535 (diagnostic_file_cache_init, total_lines_num)
42536 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
42537 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
42538 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
42539 (get_next_line, read_next_line, goto_next_line, read_line_num):
42540 New static function definitions.
42541 (diagnostic_file_cache_fini): New function.
42542 (location_get_source_line): Take an additional output line_len
42543 parameter. Re-write using lookup_or_add_file_to_cache_tab and
42545 * diagnostic.c (diagnostic_finish): Call
42546 diagnostic_file_cache_fini.
42547 (adjust_line): Take an additional input parameter for the length
42548 of the line, rather than calculating it with strlen.
42549 (diagnostic_show_locus): Adjust the use of
42550 location_get_source_line and adjust_line with respect to their new
42551 signature. While displaying a line now, do not stop at the first
42552 null byte. Rather, display the zero byte as a space and keep
42553 going until we reach the size of the line.
42554 * Makefile.in: Add vec.o to OBJS-libcommon
42556 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
42557 Ilya Tocar <ilya.tocar@intel.com>
42559 * config/i386/avx512fintrin.h (_mm512_kmov): New.
42560 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
42561 (__builtin_ia32_kmov16): Ditto.
42562 * config/i386/i386.md (UNSPEC_KMOV): New.
42565 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
42567 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
42568 (_mm512_storeu_si512): Ditto.
42570 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
42573 * rtl.h (get_referenced_operands): Declare.
42574 * recog.c (get_referenced_operands): New function.
42575 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
42576 operands have been referenced when recording LO_SUM references.
42578 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
42580 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
42582 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
42584 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
42585 Enable for generic and recent AMD targets.
42587 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
42589 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
42590 ARG_SIZE note when adjustment was eliminated.
42592 2014-01-22 Jeff Law <law@redhat.com>
42594 PR tree-optimization/59597
42595 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
42596 in file. Accept new argument REGISTERING and use it to modify
42597 dump output appropriately.
42598 (register_jump_thread): Corresponding changes.
42599 (mark_threaded_blocks): Reinstate code to cancel unprofitable
42600 thread paths involving joiner blocks. Add code to dump cancelled
42601 jump threading paths.
42603 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
42605 PR rtl-optimization/59477
42606 * lra-constraints.c (inherit_in_ebb): Process call for living hard
42607 regs. Update reloads_num and potential_reload_hard_regs for all insns.
42609 2014-01-22 Tom Tromey <tromey@redhat.com>
42611 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
42613 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
42615 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
42617 PR rtl-optimization/59896
42618 * lra-constraints.c (process_alt_operands): Check unused note for
42619 matched operands of insn with no output reloads.
42621 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
42623 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
42624 (mips_move_from_gpr_cost): Likewise.
42626 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
42628 PR rtl-optimization/59858
42629 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
42630 ira_class_hard_regs_num.
42631 (process_alt_operands): Increase reject for dying matched operand.
42633 2014-01-21 Jakub Jelinek <jakub@redhat.com>
42636 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
42637 smaller than size, perform several stores or loads and stores
42638 at dst + count - size to store or copy all of size bytes, rather
42639 than just last modesize bytes.
42641 2014-01-20 DJ Delorie <dj@redhat.com>
42643 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
42644 that CLOBBERs are REGs before propogating their values.
42646 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
42648 PR middle-end/59789
42649 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
42650 (cgraph_inline_failed_type): New function.
42651 * cgraph.h (DEFCIFCODE): Add type.
42652 (cgraph_inline_failed_type_t): New enum.
42653 (cgraph_inline_failed_type): New prototype.
42654 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
42655 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
42656 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
42657 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
42658 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
42659 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
42660 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
42661 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
42662 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
42663 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
42664 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
42665 OPTIMIZATION_MISMATCH.
42666 * tree-inline.c (expand_call_inline): Emit errors during
42667 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
42669 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
42672 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
42673 mode attribute in insn output.
42675 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
42677 * output.h (output_constant): Delete.
42678 * varasm.c (output_constant): Make private.
42680 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
42682 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
42684 2014-01-20 Jakub Jelinek <jakub@redhat.com>
42686 PR middle-end/59860
42687 * tree.h (fold_builtin_strcat): New prototype.
42688 * builtins.c (fold_builtin_strcat): No longer static. Add len
42689 argument, if non-NULL, don't call c_strlen. Optimize
42690 directly into __builtin_memcpy instead of __builtin_strcpy.
42691 (fold_builtin_2): Adjust fold_builtin_strcat caller.
42692 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
42694 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
42696 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
42697 for SImode_address_operand operands, having only a REG argument.
42699 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
42701 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
42702 loader name using mbig-endian.
42703 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
42705 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
42707 * doc/invoke.texi (-march): Clarify documentation for AArch64.
42708 (-mtune): Likewise.
42711 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
42713 * config/aarch64/aarch64-protos.h
42714 (aarch64_cannot_change_mode_class_ptr): Declare.
42715 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
42716 aarch64_cannot_change_mode_class_ptr): New.
42717 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
42718 backend hook aarch64_cannot_change_mode_class.
42720 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
42722 * common/config/aarch64/aarch64-common.c
42723 (aarch64_handle_option): Don't handle any option order logic here.
42724 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
42725 selected_cpu, warn on architecture version mismatch.
42726 (aarch64_override_options): Fix parsing order for option strings.
42728 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
42729 Iain Sandoe <iain@codesourcery.com>
42732 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
42733 warning. Amend comment to reflect current functionality.
42735 2014-01-20 Richard Biener <rguenther@suse.de>
42737 PR middle-end/59860
42738 * builtins.c (fold_builtin_strcat): Remove case better handled
42739 by tree-ssa-strlen.c.
42741 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
42743 * config/aarch64/aarch64.opt
42744 (mcpu, march, mtune): Make case-insensitive.
42746 2014-01-20 Jakub Jelinek <jakub@redhat.com>
42749 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
42750 if operands[1] is a REG or ZERO_EXTEND of a REG.
42752 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
42754 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
42756 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
42758 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
42759 long non-pic millicode calls.
42761 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
42763 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
42765 2014-01-19 Kito Cheng <kito@0xlab.org>
42767 * builtins.c (expand_movstr): Check movstr expand done or fail.
42769 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
42770 H.J. Lu <hongjiu.lu@intel.com>
42773 * config/i386/i386.md (*lea<mode>): Zero-extend return register
42774 to DImode for zero-extended addresses.
42776 2014-01-19 Jakub Jelinek <jakub@redhat.com>
42778 PR rtl-optimization/57763
42779 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
42780 on the new indirect jump_insn and increment LABEL_NUSES (label).
42782 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
42786 * config.gcc (x86_archs): New variable.
42787 (x86_64_archs): Likewise.
42788 (x86_cpus): Likewise.
42789 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
42790 --with-arch/--with-cpu= options.
42791 Support --with-arch=/--with-cpu={nehalem,westmere,
42792 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
42794 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
42796 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
42797 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
42799 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
42801 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
42803 2014-01-18 Jakub Jelinek <jakub@redhat.com>
42806 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
42807 clear cpp_get_options (parse_in)->warn_unused_macros for
42808 ix86_target_macros_internal with cpp_define.
42810 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
42812 * jump.c (delete_related_insns): Keep (use (insn))s.
42813 * reorg.c (redundant_insn): Check for barriers too.
42815 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
42817 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
42819 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
42821 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
42822 call to $$dyncall when TARGET_LONG_CALLS is true.
42824 2014-01-17 Jeff Law <law@redhat.com>
42826 * ree.c (combine_set_extension): Temporarily disable test for
42827 changing number of hard registers.
42829 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
42831 PR middle-end/58125
42832 * ipa-inline-analysis.c (inline_free_summary):
42833 Do not free summary of aliases.
42835 2014-01-17 Jakub Jelinek <jakub@redhat.com>
42837 PR middle-end/59706
42838 * gimplify.c (gimplify_expr): Use create_tmp_var
42839 instead of create_tmp_var_raw. If cond doesn't have
42840 integral type, don't add the IFN_ANNOTATE builtin at all.
42842 2014-01-17 Martin Jambor <mjambor@suse.cz>
42845 * ipa-cp.c (prev_edge_clone): New variable.
42846 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
42847 Also resize prev_edge_clone vector.
42848 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
42849 (ipcp_edge_removal_hook): New function.
42850 (ipcp_driver): Register ipcp_edge_removal_hook.
42852 2014-01-17 Andrew Pinski <apinski@cavium.com>
42853 Steve Ellcey <sellcey@mips.com>
42856 * config/mips/mips.c (mips_print_operand): Check operand mode instead
42859 2014-01-17 Jeff Law <law@redhat.com>
42861 PR middle-end/57904
42862 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
42863 so that pass_ccp runs first.
42865 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
42867 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
42868 (ix86_adjust_cost): Use !TARGET_XXX.
42869 (do_reorder_for_imul): Likewise.
42870 (swap_top_of_ready_list): Likewise.
42871 (ix86_sched_reorder): Likewise.
42873 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
42875 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
42876 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
42877 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
42878 (intel_memset): New. Duplicate slm_memset.
42879 (intel_cost): New. Duplicate slm_cost.
42880 (m_INTEL): New macro.
42881 (processor_target_table): Add "intel".
42882 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
42883 with PROCESSOR_INTEL for "intel".
42884 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
42885 PROCESSOR_SILVERMONT.
42886 (ix86_issue_rate): Likewise.
42887 (ix86_adjust_cost): Likewise.
42888 (ia32_multipass_dfa_lookahead): Likewise.
42889 (swap_top_of_ready_list): Likewise.
42890 (ix86_sched_reorder): Likewise.
42891 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
42892 instead of TARGET_OPT_AGU.
42893 * config/i386/i386.h (TARGET_INTEL): New.
42894 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
42895 (processor_type): Add PROCESSOR_INTEL.
42896 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
42897 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
42899 2014-01-17 Marek Polacek <polacek@redhat.com>
42902 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
42905 2014-01-17 Richard Biener <rguenther@suse.de>
42907 PR tree-optimization/46590
42908 * opts.c (default_options_table): Add entries for
42909 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
42910 all enabled at -O1 but not for -Og.
42911 * common.opt (fbranch-count-reg): Remove Init(1).
42912 (fmove-loop-invariants): Likewise.
42913 (ftree-pta): Likewise.
42915 2014-01-17 Jakub Jelinek <jakub@redhat.com>
42917 * config/i386/i386.c (ix86_data_alignment): For compatibility with
42918 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
42919 decls to at least the GCC 4.8 used alignments.
42922 * tree-nested.c (convert_nonlocal_reference_stmt,
42923 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
42924 of GIMPLE_BIND stmts, adjust associated decls.
42926 2014-01-17 Richard Biener <rguenther@suse.de>
42928 PR tree-optimization/46590
42929 * vec.h (vec<>::bseach): New member function implementing
42930 binary search according to C89 bsearch.
42931 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
42932 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
42933 bitmap pointer again. Make accesses_in_loop a flat array.
42934 (mem_ref_obstack): New global.
42935 (outermost_indep_loop): Adjust for mem_ref->stored changes.
42936 (mark_ref_stored): Likewise.
42937 (ref_indep_loop_p_2): Likewise.
42938 (set_ref_stored_in_loop): New helper function.
42939 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
42940 (memref_free): Adjust.
42941 (record_mem_ref_loc): Simplify.
42942 (gather_mem_refs_stmt): Adjust.
42943 (sort_locs_in_loop_postorder_cmp): New function.
42944 (analyze_memory_references): Sort accesses_in_loop after
42945 loop postorder number.
42946 (find_ref_loc_in_loop_cmp): New function.
42947 (for_all_locs_in_loop): Find relevant cluster of locs in
42948 accesses_in_loop and iterate without recursion.
42949 (execute_sm): Avoid uninit warning.
42950 (struct ref_always_accessed): Simplify.
42951 (ref_always_accessed::operator ()): Likewise.
42952 (ref_always_accessed_p): Likewise.
42953 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
42954 loop postorder numbers here.
42955 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
42958 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
42961 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
42962 on decls for which assemble_alias has been called.
42964 2014-01-17 Nick Clifton <nickc@redhat.com>
42966 * config/msp430/msp430.opt: (mcpu): New option.
42967 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
42968 (msp430_option_override): Parse target_cpu. If the MCU name
42969 matches a generic string, clear target_mcu.
42970 (msp430_attr): Allow numeric interrupt values up to 63.
42971 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
42972 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
42974 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
42976 * config/msp430/msp430.md (popm): Use %J rather than %I.
42977 (addsi3): Use msp430_nonimmediate_operand for operand 2.
42978 (addhi_cy_i): Use immediate_operand for operand 2.
42979 * doc/invoke.texi: Document -mcpu option.
42981 2014-01-17 Richard Biener <rguenther@suse.de>
42983 PR rtl-optimization/38518
42984 * df.h (df_analyze_loop): Declare.
42985 * df-core.c: Include cfgloop.h.
42986 (df_analyze_1): Split out main part of df_analyze.
42987 (df_analyze): Adjust.
42988 (loop_inverted_post_order_compute): New function.
42989 (loop_post_order_compute): Likewise.
42990 (df_analyze_loop): New function avoiding whole-function
42991 postorder computes.
42992 * loop-invariant.c (find_defs): Use df_analyze_loop.
42993 (find_invariants): Adjust.
42994 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
42996 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
42998 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
42999 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
43001 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
43003 * ipa-ref.c (ipa_remove_stmt_references): Fix references
43004 traversal when removing references.
43006 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
43009 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
43011 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
43013 PR middle-end/56791
43014 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
43015 pushing a reload for an autoinc when we had previously reloaded an
43016 inner part of the address.
43018 2014-01-16 Jakub Jelinek <jakub@redhat.com>
43020 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
43022 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
43023 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
43024 when not giving up or versioning for alias only because of
43026 (vect_analyze_data_ref_dependences): Set to true.
43027 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
43029 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
43030 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
43033 PR middle-end/58344
43034 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
43037 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
43038 operand 0 predicate for gathers, use a new pseudo as subtarget.
43040 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
43042 PR middle-end/59609
43043 * lra-constraints.c (process_alt_operands): Add printing debug info.
43044 Check absence of input/output reloads for matched operands too.
43046 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
43048 PR rtl-optimization/59835
43049 * ira.c (ira_init_register_move_cost): Increase cost for
43052 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
43054 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
43056 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
43059 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
43060 non-register objects. Use gen_(high/low)part more consistently.
43063 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
43066 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
43067 endian support, remove tests for WORDS_BIG_ENDIAN.
43068 (p8_mfvsrd_3_<mode>): Likewise.
43069 (reload_gpr_from_vsx<mode>): Likewise.
43070 (reload_gpr_from_vsxsf): Likewise.
43071 (p8_mfvsrd_4_disf): Likewise.
43073 2014-01-16 Richard Biener <rguenther@suse.de>
43075 PR rtl-optimization/46590
43076 * lcm.c (compute_antinout_edge): Use postorder iteration.
43077 (compute_laterin): Use inverted postorder iteration.
43079 2014-01-16 Nick Clifton <nickc@redhat.com>
43081 PR middle-end/28865
43082 * varasm.c (output_constant): Return the number of bytes actually
43084 (output_constructor_array_range): Update the field size with the
43085 number of bytes emitted by output_constant.
43086 (output_constructor_regular_field): Likewise. Also do not
43087 complain if the total number of bytes emitted is now greater
43088 than the expected fieldpos.
43089 * output.h (output_constant): Update prototype and descriptive comment.
43091 2014-01-16 Marek Polacek <polacek@redhat.com>
43093 PR middle-end/59827
43094 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
43095 it is error_mark_node.
43097 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
43099 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
43100 VALID_AVX256_REG_OR_OI_MODE.
43102 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
43104 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
43105 current procedure should be profiled.
43107 2014-01-15 Andrew Pinski <apinski@cavium.com>
43109 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
43110 of moving from/to the STACK_REG register class.
43112 2014-01-15 Richard Henderson <rth@redhat.com>
43115 * reginfo.c (global_regs_decl): Globalize.
43116 * rtl.h (global_regs_decl): Declare.
43117 * ira.c (do_reload): Diagnose frame_pointer_needed and it
43118 reserved via global_regs.
43120 2014-01-15 Teresa Johnson <tejohnson@google.com>
43122 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
43124 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
43126 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
43127 and vmulosh rather than call gen_vec_widen_smult_*.
43128 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
43129 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
43130 (vec_widen_smult_even_v16qi): Likewise.
43131 (vec_widen_umult_even_v8hi): Likewise.
43132 (vec_widen_smult_even_v8hi): Likewise.
43133 (vec_widen_umult_odd_v16qi): Likewise.
43134 (vec_widen_smult_odd_v16qi): Likewise.
43135 (vec_widen_umult_odd_v8hi): Likewise.
43136 (vec_widen_smult_odd_v8hi): Likewise.
43137 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
43138 vmuloub rather than call gen_vec_widen_umult_*.
43139 (vec_widen_umult_lo_v16qi): Likewise.
43140 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
43141 vmulosb rather than call gen_vec_widen_smult_*.
43142 (vec_widen_smult_lo_v16qi): Likewise.
43143 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
43144 rather than call gen_vec_widen_umult_*.
43145 (vec_widen_umult_lo_v8hi): Likewise.
43146 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
43147 rather than call gen_vec_widen_smult_*.
43148 (vec_widen_smult_lo_v8hi): Likewise.
43150 2014-01-15 Jeff Law <law@redhat.com>
43152 PR tree-optimization/59747
43153 * ree.c (find_and_remove_re): Properly handle case where a second
43154 eliminated extension requires widening a copy created for elimination
43155 of a prior extension.
43156 (combine_set_extension): Ensure that the number of hard regs needed
43157 for a destination register does not change when we widen it.
43159 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
43161 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
43162 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
43163 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
43164 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
43165 (avr-*-rtems*): Likewise.
43166 (bfin*-rtems*): Likewise.
43167 (moxie-*-rtems*): Likewise.
43168 (h8300-*-rtems*): Likewise.
43169 (i[34567]86-*-rtems*): Likewise.
43170 (lm32-*-rtems*): Likewise.
43171 (m32r-*-rtems*): Likewise.
43172 (m68k-*-rtems*): Likewise.
43173 (microblaze*-*-rtems*): Likewise.
43174 (mips*-*-rtems*): Likewise.
43175 (powerpc-*-rtems*): Likewise.
43176 (sh-*-rtems*): Likewise.
43177 (sparc-*-rtems*): Likewise.
43178 (sparc64-*-rtems*): Likewise.
43179 (v850-*-rtems*): Likewise.
43180 (m32c-*-rtems*): Likewise.
43182 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
43184 PR rtl-optimization/59511
43185 * ira.c (ira_init_register_move_cost): Use memory costs for some
43186 cases of register move cost calculations.
43187 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
43188 instead of BB frequency.
43189 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
43190 * lra-assigns.c (find_hard_regno_for): Ditto.
43192 2014-01-15 Richard Biener <rguenther@suse.de>
43194 PR tree-optimization/59822
43195 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
43196 (vectorizable_load): Use it to hoist defs of uses of invariant
43197 loads out of the loop.
43199 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
43200 Kugan Vivekanandarajah <kuganv@linaro.org>
43203 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
43206 2014-01-15 Richard Biener <rguenther@suse.de>
43208 PR rtl-optimization/59802
43209 * lcm.c (compute_available): Use inverted postorder to seed
43210 the initial worklist.
43212 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43215 * config/s390/s390.c (s390_preferred_reload_class): Don't return
43216 ADDR_REGS for invalid symrefs in non-PIC code.
43218 2014-01-15 Jakub Jelinek <jakub@redhat.com>
43221 * builtins.c (determine_block_size): Initialize *probable_max_size
43222 even if len_rtx is CONST_INT.
43224 2014-01-14 Andrew Pinski <apinski@cavium.com>
43226 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
43227 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
43228 (cortexa53_tunings): Likewise.
43229 (aarch64_sched_issue_rate): New function.
43230 (TARGET_SCHED_ISSUE_RATE): Define.
43232 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
43234 * ira-costs.c (find_costs_and_classes): Add missed
43235 ira_init_register_move_cost_if_necessary.
43237 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
43240 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
43242 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
43245 * config/i386/i386.c (type_natural_mode): Add a bool parameter
43246 to indicate if type is used for function return value. Warn ABI
43247 change if the vector mode isn't available for function return value.
43248 (ix86_function_arg_advance): Pass false to type_natural_mode.
43249 (ix86_function_arg): Likewise.
43250 (ix86_gimplify_va_arg): Likewise.
43251 (function_arg_32): Don't warn ABI change.
43252 (ix86_function_value): Pass true to type_natural_mode.
43253 (ix86_return_in_memory): Likewise.
43254 (ix86_struct_value_rtx): Removed.
43255 (TARGET_STRUCT_VALUE_RTX): Likewise.
43257 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
43259 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
43260 converting a conditional jump into a conditional return.
43262 2014-01-14 Richard Biener <rguenther@suse.de>
43264 PR tree-optimization/58921
43265 PR tree-optimization/59006
43266 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
43267 hoisting invariant stmts.
43268 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
43269 invariant loads on the preheader edge if possible.
43271 2014-01-14 Joey Ye <joey.ye@arm.com>
43273 * doc/plugin.texi (Building GCC plugins): Update to C++.
43275 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
43277 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
43278 (_mm_rcp28_round_ss): Ditto.
43279 (_mm_rsqrt28_round_sd): Ditto.
43280 (_mm_rsqrt28_round_ss): Ditto.
43281 (_mm_rcp28_sd): Ditto.
43282 (_mm_rcp28_ss): Ditto.
43283 (_mm_rsqrt28_sd): Ditto.
43284 (_mm_rsqrt28_ss): Ditto.
43285 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
43286 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
43287 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
43288 (IX86_BUILTIN_RCP28SD): Ditto.
43289 (IX86_BUILTIN_RCP28SS): Ditto.
43290 (IX86_BUILTIN_RSQRT28SD): Ditto.
43291 (IX86_BUILTIN_RSQRT28SS): Ditto.
43292 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
43293 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
43294 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
43295 (ix86_expand_special_args_builtin): Expand new FTYPE.
43296 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
43297 (srcp14<mode>): Make insn unary.
43298 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
43299 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
43300 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
43301 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
43302 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
43303 Fix rounding: make it SAE only.
43304 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
43306 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
43308 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
43309 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
43310 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
43311 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
43312 (round_saeonly_mask_scalar_operand4): Ditto.
43313 (round_saeonly_mask_scalar_op3): Ditto.
43314 (round_saeonly_mask_scalar_op4): Ditto.
43316 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43318 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
43319 Implement -maltivec=be for vec_insert and vec_extract.
43321 2014-01-10 DJ Delorie <dj@redhat.com>
43323 * config/msp430/msp430.md (call_internal): Don't allow memory
43324 references with SP as the base register.
43325 (call_value_internal): Likewise.
43326 * config/msp430/constraints.md (Yc): New. For memory references
43327 that don't use SP as a base register.
43329 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
43330 "an integer without a # prefix"
43331 * config/msp430/msp430.md (epilogue_helper): Use it.
43333 2014-01-13 Jakub Jelinek <jakub@redhat.com>
43336 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
43337 AVX512F gather builtins.
43338 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
43339 on gather decls with INTEGER_TYPE masktype.
43340 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
43341 directly into the builtin rather than hoisting it before loop.
43343 PR tree-optimization/59387
43344 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
43345 (scev_const_prop): If folded_casts and type has undefined overflow,
43346 use force_gimple_operand instead of force_gimple_operand_gsi and
43347 for each added stmt if it is assign with
43348 arith_code_with_undefined_signed_overflow, call
43349 rewrite_to_defined_overflow.
43350 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
43351 gimple-fold.h instead.
43352 (arith_code_with_undefined_signed_overflow,
43353 rewrite_to_defined_overflow): Moved to ...
43354 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
43355 rewrite_to_defined_overflow): ... here. No longer static.
43356 Include gimplify-me.h.
43357 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
43358 rewrite_to_defined_overflow): New prototypes.
43360 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43362 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
43364 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
43366 * builtins.c (get_object_alignment_2): Minor tweak.
43367 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
43369 2014-01-13 Christian Bruel <christian.bruel@st.com>
43371 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
43372 optimized non constant lengths.
43374 2014-01-13 Jakub Jelinek <jakub@redhat.com>
43377 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
43378 load as __atomic_load_N if possible.
43380 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
43382 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
43384 (rs6000_expand_builtin): Adjust call.
43386 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
43389 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
43390 * config/rs6000/rs6000.c: Include target-globals.h.
43391 (rs6000_set_current_function): Instead of doing target_reinit
43392 unconditionally, use save_target_globals_default_opts and
43393 restore_target_globals.
43395 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
43397 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
43398 (rs6000_expand_builtin): Handle mffs and mtfsf.
43399 (rs6000_init_builtins): Define mffs and mtfsf.
43400 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
43401 (rs6000_mffs): New pattern.
43402 (rs6000_mtfsf): New pattern.
43404 2014-01-11 Bin Cheng <bin.cheng@arm.com>
43406 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
43407 Start narrowing with START. Apply candidate-use pair
43408 and check overall cost in narrowing.
43409 (iv_ca_prune): Pass new argument.
43411 2014-01-10 Jeff Law <law@redhat.com>
43413 PR middle-end/59743
43414 * ree.c (combine_reaching_defs): Ensure the defining statement
43415 occurs before the extension when optimizing extensions with
43416 different source and destination hard registers.
43418 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
43421 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
43422 vtables into the type inheritance graph.
43424 2014-01-10 Jakub Jelinek <jakub@redhat.com>
43426 PR rtl-optimization/59754
43427 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
43428 modes in the REGNO != REGNO case.
43430 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43432 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
43434 2014-01-10 Jakub Jelinek <jakub@redhat.com>
43436 PR tree-optimization/59745
43437 * tree-predcom.c (tree_predictive_commoning_loop): Call
43438 free_affine_expand_cache if giving up because components is NULL.
43440 * target-globals.c (save_target_globals): Allocate < 4KB structs using
43441 GC in payload of target_globals struct instead of allocating them on
43442 the heap and the larger structs separately using GC.
43443 * target-globals.h (struct target_globals): Make regs, hard_regs,
43444 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
43445 of GTY((skip)) and change type to void *.
43446 (reset_target_globals): Cast loads from those fields to corresponding
43449 2014-01-10 Steve Ellcey <sellcey@mips.com>
43452 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
43453 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
43454 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
43456 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
43459 * aarch64-modes.def (CC_Zmode): New flags mode.
43460 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
43461 represents an equality.
43462 (aarch64_get_condition_code): Handle CC_Zmode.
43463 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
43465 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
43467 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
43468 extraction in good case.
43470 2014-01-10 Richard Biener <rguenther@suse.de>
43472 PR tree-optimization/59374
43473 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
43474 checking after SLP discovery. Mark stmts not participating
43475 in any SLP instance properly.
43477 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43479 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
43480 when handling a SET rtx.
43482 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43484 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
43485 (cortex-a57): Likewise.
43486 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
43488 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43490 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
43491 non-iwmmxt builtins.
43493 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
43497 * ipa-devirt.c record_target_from_binfo): Take as argument
43498 stack of binfos and lookup matching one for virtual inheritance.
43499 (possible_polymorphic_call_targets_1): Update.
43501 2014-01-10 Huacai Chen <chenhc@lemote.com>
43503 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
43504 kernel strings for Loongson-2E/2F/3A.
43506 2014-01-10 Jakub Jelinek <jakub@redhat.com>
43508 PR middle-end/59670
43509 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
43510 is_gimple_call before calling gimple_call_internal_p.
43512 2014-01-09 Steve Ellcey <sellcey@mips.com>
43514 * Makefile.in (TREE_FLOW_H): Remove.
43515 (TREE_SSA_H): Add file names from tree-flow.h.
43516 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
43517 * tree.h: Remove tree-flow.h reference.
43518 * hash-table.h: Remove tree-flow.h reference.
43519 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
43520 reference with tree-ssa-loop.h.
43522 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43524 * doc/invoke.texi: Add -maltivec={be,le} options, and document
43525 default element-order behavior for -maltivec.
43526 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
43527 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
43528 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
43529 when targeting big endian, at least for now.
43530 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
43532 2014-01-09 Jakub Jelinek <jakub@redhat.com>
43534 PR middle-end/47735
43535 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
43536 var satisfies use_register_for_decl, just take into account type
43537 alignment, rather than decl alignment.
43539 PR tree-optimization/59622
43540 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
43541 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
43542 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
43543 Don't devirtualize for inplace at all. For targets.length () == 1,
43544 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
43546 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
43548 * config/i386/i386.md (cpu): Remove the unused btver1.
43550 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
43552 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
43554 2014-01-09 Jakub Jelinek <jakub@redhat.com>
43557 * tree-core.h (struct target_globals): New forward declaration.
43558 (struct tree_target_option): Add globals field.
43559 * tree.h (TREE_TARGET_GLOBALS): Define.
43560 (prepare_target_option_nodes_for_pch): New prototype.
43561 * target-globals.h (struct target_globals): Define even if
43562 !SWITCHABLE_TARGET.
43563 * tree.c (prepare_target_option_node_for_pch,
43564 prepare_target_option_nodes_for_pch): New functions.
43565 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
43566 * config/i386/i386.c: Include target-globals.h.
43567 (ix86_set_current_function): Instead of doing target_reinit
43568 unconditionally, use save_target_globals_default_opts and
43569 restore_target_globals.
43571 2014-01-09 Richard Biener <rguenther@suse.de>
43573 PR tree-optimization/59715
43574 * tree-cfg.h (split_critical_edges): Declare.
43575 * tree-cfg.c (split_critical_edges): Export.
43576 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
43578 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
43580 * cfgexpand.c (expand_stack_vars): Optionally disable
43581 asan stack protection.
43582 (expand_used_vars): Likewise.
43583 (partition_stack_vars): Likewise.
43584 * asan.c (asan_emit_stack_protection): Optionally disable
43585 after return stack usage.
43586 (instrument_derefs): Optionally disable memory access instrumentation.
43587 (instrument_builtin_call): Likewise.
43588 (instrument_strlen_call): Likewise.
43589 (asan_protect_global): Optionally disable global variables protection.
43590 * doc/invoke.texi: Added doc for new options.
43591 * params.def: Added new options.
43592 * params.h: Likewise.
43594 2014-01-09 Jakub Jelinek <jakub@redhat.com>
43596 PR rtl-optimization/59724
43597 * ifcvt.c (cond_exec_process_if_block): Don't call
43598 flow_find_head_matching_sequence with 0 longest_match.
43599 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
43600 non-active insns if !stop_after.
43601 (try_head_merge_bb): Revert 2014-01-07 changes.
43603 2014-01-08 Jeff Law <law@redhat.com>
43605 * ree.c (get_sub_rtx): New function, extracted from...
43606 (merge_def_and_ext): Here.
43607 (combine_reaching_defs): Use get_sub_rtx.
43609 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
43611 * cgraph.h (varpool_variable_node): Do not choke on null node.
43613 2014-01-08 Catherine Moore <clm@codesourcery.com>
43615 * config/mips/mips.md (simple_return): Attempt to use JRC
43617 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
43619 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
43621 PR rtl-optimization/59137
43622 * reorg.c (steal_delay_list_from_target): Call update_block for
43624 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
43626 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
43628 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
43629 two duplicate entries.
43631 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
43634 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
43636 * config/mips/mips.c (mips_truncated_op_cost): New function.
43637 (mips_rtx_costs): Adjust test for BADDU.
43638 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
43640 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
43642 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
43643 (*baddu_si): ...this new pattern.
43645 2014-01-08 Jakub Jelinek <jakub@redhat.com>
43648 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
43650 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
43652 PR middle-end/57748
43653 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
43655 (expand_expr, expand_normal): Adjust.
43656 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
43657 inner_reference_p. Use inner_reference_p to expand inner references.
43658 (store_expr): Adjust.
43659 * cfgexpand.c (expand_call_stmt): Adjust.
43661 2014-01-08 Rong Xu <xur@google.com>
43663 * gcov-io.c (gcov_var): Move from gcov-io.h.
43664 (gcov_position): Ditto.
43665 (gcov_is_error): Ditto.
43666 (gcov_rewrite): Ditto.
43667 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
43668 only part to libgcc/libgcov.h.
43670 2014-01-08 Marek Polacek <polacek@redhat.com>
43672 PR middle-end/59669
43673 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
43675 2014-01-08 Marek Polacek <polacek@redhat.com>
43678 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
43680 2014-01-08 Jakub Jelinek <jakub@redhat.com>
43682 PR rtl-optimization/59649
43683 * stor-layout.c (get_mode_bounds): For BImode return
43684 0 and STORE_FLAG_VALUE.
43686 2014-01-08 Richard Biener <rguenther@suse.de>
43688 PR middle-end/59630
43689 * gimple.h (is_gimple_builtin_call): Remove.
43690 (gimple_builtin_call_types_compatible_p): New.
43691 (gimple_call_builtin_p): New overload.
43692 * gimple.c (is_gimple_builtin_call): Remove.
43693 (validate_call): Rename to ...
43694 (gimple_builtin_call_types_compatible_p): ... this and export. Also
43695 check return types.
43696 (validate_type): New static function.
43697 (gimple_call_builtin_p): New overload and adjust.
43698 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
43699 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
43700 (gimple_fold_stmt_to_constant_1): Likewise.
43701 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
43703 2014-01-08 Richard Biener <rguenther@suse.de>
43705 PR middle-end/59471
43706 * gimplify.c (gimplify_expr): Gimplify register-register type
43707 VIEW_CONVERT_EXPRs to separate stmts.
43709 2014-01-07 Jeff Law <law@redhat.com>
43711 PR middle-end/53623
43712 * ree.c (combine_set_extension): Handle case where source
43713 and destination registers in an extension insn are different.
43714 (combine_reaching_defs): Allow source and destination registers
43715 in extension to be different under limited circumstances.
43716 (add_removable_extension): Remove restriction that the
43717 source and destination registers in the extension are the same.
43718 (find_and_remove_re): Emit a copy from the extension's
43719 destination to its source after the defining insn if
43720 the source and destination registers are different.
43722 PR middle-end/59285
43723 * ifcvt.c (merge_if_block): If we are merging a block with more than
43724 one successor with a block with no successors, remove any BARRIER
43725 after the second block.
43727 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
43729 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
43731 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
43734 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
43735 for 14-bit register offsets when INT14_OK_STRICT is false.
43737 2014-01-07 Roland Stigge <stigge@antcom.de>
43738 Michael Meissner <meissner@linux.vnet.ibm.com>
43741 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
43742 Only check TFmode for SPE constants. Don't check TImode or TDmode.
43744 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
43746 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
43749 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
43751 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
43752 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
43753 rtx is const0_rtx or not.
43755 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
43758 * target-globals.c (save_target_globals): Remove this_fn_optab
43760 * toplev.c: Include optabs.h.
43761 (target_reinit): Temporarily restore the global options if another
43762 set of options are in force.
43764 2014-01-07 Jakub Jelinek <jakub@redhat.com>
43766 PR rtl-optimization/58668
43767 * cfgcleanup.c (flow_find_cross_jump): Don't count
43768 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
43769 to determine what is counted.
43770 (flow_find_head_matching_sequence): Use active_insn_p to determine
43772 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
43774 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
43775 determine what is counted.
43777 PR tree-optimization/59643
43778 * tree-predcom.c (split_data_refs_to_components): If one dr is
43779 read and one write, determine_offset fails and the write isn't
43780 in the bad component, just put the read into the bad component.
43782 2014-01-07 Mike Stump <mikestump@comcast.net>
43783 Jakub Jelinek <jakub@redhat.com>
43786 * tree-core.h (struct tree_optimization_option): Change optabs
43787 type from unsigned char * to void *.
43788 * optabs.c (init_tree_optimization_optabs): Adjust
43789 TREE_OPTIMIZATION_OPTABS initialization.
43791 2014-01-06 Jakub Jelinek <jakub@redhat.com>
43794 * config/i386/i386.h (struct machine_function): Add
43795 no_drap_save_restore field.
43796 * config/i386/i386.c (ix86_save_reg): Use
43797 !cfun->machine->no_drap_save_restore instead of
43798 crtl->stack_realign_needed.
43799 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
43800 this function clears frame_pointer_needed. Set
43801 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
43802 and DRAP reg is needed.
43804 2014-01-06 Marek Polacek <polacek@redhat.com>
43807 * doc/implement-c.texi: Mention that other integer types are
43808 permitted as bit-field types in strictly conforming mode.
43810 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
43812 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
43813 is newly allocated.
43815 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
43817 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
43819 2014-01-06 Martin Jambor <mjambor@suse.cz>
43822 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
43824 * ipa-prop.c (ipa_print_node_params): Fix indentation.
43826 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
43830 * var-tracking.c (add_stores): Preserve the value of the source even if
43831 we don't record the store.
43833 2014-01-06 Terry Guo <terry.guo@arm.com>
43835 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
43837 2014-01-05 Iain Sandoe <iain@codesourcery.com>
43840 * config/darwin.c (darwin_function_section): Adjust return values to
43841 correspond to optimisation changes made in r206070.
43843 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
43845 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
43846 from prefetch_block tune setting.
43847 (nocona_cost): Correct size of prefetch block to 64.
43849 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
43851 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
43852 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
43853 used to save the static chain register in the computation of the offset
43854 from which the FP registers need to be restored.
43856 2014-01-04 Jakub Jelinek <jakub@redhat.com>
43858 PR tree-optimization/59519
43859 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
43860 ICE if get_current_def (current_new_name) is already non-NULL, as long
43861 as it is a phi result of some other phi in *new_exit_bb that has
43864 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
43865 or vmovdqu* for misaligned_operand.
43866 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
43867 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
43868 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
43869 aligned_mem for AVX512F masked aligned load and store builtins and for
43870 non-temporal moves.
43872 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
43874 PR tree-optimization/59651
43875 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
43876 Address range for negative step should be added by TYPE_SIZE_UNIT.
43878 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
43880 * config/m68k/m68k.c (handle_move_double): Handle pushes with
43881 overlapping registers also for registers other than the stack pointer.
43883 2014-01-03 Marek Polacek <polacek@redhat.com>
43886 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
43889 2014-01-03 Jakub Jelinek <jakub@redhat.com>
43892 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
43895 * config/i386/i386.md (MODE_SIZE): New mode attribute.
43896 (push splitter): Use <P:MODE_SIZE> instead of
43897 GET_MODE_SIZE (<P:MODE>mode).
43898 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
43899 (mov -1, reg peephole2): Likewise.
43900 * config/i386/sse.md (*mov<mode>_internal,
43901 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
43902 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
43903 *<code><mode>3, *andnot<mode>3<mask_name>,
43904 <mask_codefor><code><mode>3<mask_name>): Likewise.
43905 * config/i386/subst.md (mask_mode512bit_condition,
43906 sd_mask_mode512bit_condition): Likewise.
43908 2014-01-02 Xinliang David Li <davidxl@google.com>
43910 PR tree-optimization/59303
43911 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
43912 (dump_predicates): Better output format.
43913 (pred_equal_p): New function.
43914 (is_neq_relop_p): Ditto.
43915 (is_neq_zero_form_p): Ditto.
43916 (pred_expr_equal_p): Ditto.
43917 (pred_neg_p): Ditto.
43918 (simplify_pred): Ditto.
43919 (simplify_preds_2): Ditto.
43920 (simplify_preds_3): Ditto.
43921 (simplify_preds_4): Ditto.
43922 (simplify_preds): Ditto.
43923 (push_pred): Ditto.
43924 (push_to_worklist): Ditto.
43925 (get_pred_info_from_cmp): Ditto.
43926 (is_degenerated_phi): Ditto.
43927 (normalize_one_pred_1): Ditto.
43928 (normalize_one_pred): Ditto.
43929 (normalize_one_pred_chain): Ditto.
43930 (normalize_preds): Ditto.
43931 (normalize_cond_1): Remove function.
43932 (normalize_cond): Ditto.
43933 (is_gcond_subset_of): Ditto.
43934 (is_subset_of_any): Ditto.
43935 (is_or_set_subset_of): Ditto.
43936 (is_and_set_subset_of): Ditto.
43937 (is_norm_cond_subset_of): Ditto.
43938 (pred_chain_length_cmp): Ditto.
43939 (convert_control_dep_chain_into_preds): Type change.
43940 (find_predicates): Ditto.
43941 (find_def_preds): Ditto.
43942 (destroy_predicates_vecs): Ditto.
43943 (find_matching_predicates_in_rest_chains): Ditto.
43944 (use_pred_not_overlap_with_undef_path_pred): Ditto.
43945 (is_pred_expr_subset): Ditto.
43946 (is_pred_chain_subset_of): Ditto.
43947 (is_included_in): Ditto.
43948 (is_superset_of): Ditto.
43950 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
43952 Update copyright years.
43954 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
43956 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
43957 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
43958 config/arc/arc.md, config/arc/arc.opt,
43959 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
43960 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
43961 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
43962 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
43963 config/linux-protos.h, config/linux.c, config/winnt-c.c,
43964 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
43965 vtable-verify.c, vtable-verify.h: Use the standard form for the
43968 2014-01-02 Tobias Burnus <burnus@net-b.de>
43970 * gcc.c (process_command): Update copyright notice dates.
43971 * gcov-dump.c: Ditto.
43973 * doc/cpp.texi: Bump @copying's copyright year.
43974 * doc/cppinternals.texi: Ditto.
43975 * doc/gcc.texi: Ditto.
43976 * doc/gccint.texi: Ditto.
43977 * doc/gcov.texi: Ditto.
43978 * doc/install.texi: Ditto.
43979 * doc/invoke.texi: Ditto.
43981 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
43983 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
43985 2014-01-01 Jakub Jelinek <jakub@redhat.com>
43987 * config/i386/sse.md (*mov<mode>_internal): Guard
43988 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
43990 PR rtl-optimization/59647
43991 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
43992 new_rtx into UNSIGNED_FLOAT rtxes.
43994 Copyright (C) 2014 Free Software Foundation, Inc.
43996 Copying and distribution of this file, with or without modification,
43997 are permitted in any medium without royalty provided the copyright
43998 notice and this notice are preserved.